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
2014-01-22 17:36:53
Neo4j Backup: Store copy and consistency check
[ "neo4j" ]
[ "neo4j" ]
One of the lesser known things about the http://docs.neo4j.org/chunked/milestone/backup-embedded-and-server.html[Neo4j online backup tool], which I http://www.markhneedham.com/blog/2014/01/19/neo4j-backup-java-lang-classcastexception-org-jboss-netty-buffer-bigendianheapchannelbuffer-cannot-be-cast-to-org-neo4j-cluster-com-message-message/[wrote about last week], is that conceptually there are two parts to it: . Copying the store files to a location of your choice . Verifying that those store files are consistent. By default both of these run when you run the 'neo4j-backup' script but sometimes it's useful to be able to run them separately. If we want to just run the copying the store files part of the process we can tell the backup tool to skip the consistency check by using the 'https://github.com/neo4j/neo4j/blob/2.0-maint/enterprise/backup/src/main/java/org/neo4j/backup/BackupTool.java#L97[verify]' flag: [source,bash] ---- $ pwd /Users/markneedham/Downloads/neo4j-enterprise-2.0.0 ---- [source,bash] ---- $ ./bin/neo4j-backup -from single://127.0.0.1 -to /tmp/foo -verify false Performing full backup from 'single://127.0.0.1' Files copied ................ done Done ---- If we ran that without the 'verify' flag we'd see the output of the consistency checker as well: [source,bash] ---- $ ./bin/neo4j-backup -from single://127.0.0.1 -to /tmp/foo Performing full backup from 'single://127.0.0.1' Files copied ................ done Full consistency check .................... 10% .................... 20% .................... 30% .................... 40% .................... 50% .................... 60% .................... 70% .................... 80% .................... 90% .................... 100% Done ---- If we already have a backup and only want to run the consistency checker we can run the following command: [source,bash] ---- $ java -cp 'lib/*:system/lib/*' org.neo4j.consistency.ConsistencyCheckTool /tmp/foo Full consistency check .................... 10% .................... 20% .................... 30% .................... 40% .................... 50% .................... 60% .................... 70% .................... 80% .................... 90% .................... 100% ---- The consistency tool itself takes a 'https://github.com/neo4j/neo4j/blob/2.0-maint/enterprise/consistency-check/src/main/java/org/neo4j/consistency/ConsistencyCheckTool.java#L149[config]' flag which gives you some control over what things you want to consistency check. The various options are defined in +++<cite>+++https://github.com/neo4j/neo4j/blob/2.0-maint/enterprise/consistency-check/src/main/java/org/neo4j/consistency/ConsistencyCheckSettings.java#L52[org.neo4j.consistency.ConsistencyCheckSettings]+++</cite>+++. For example, if we want to change the file that the consistency check report is written to we could add the following property to our config file: [source,text] ---- $ tail -n 1 conf/neo4j.properties consistency_check_report_file=/tmp/foo.txt ---- And then run the consistency tool like so: [source,bash] ---- $ java -cp 'lib/*:system/lib/*' org.neo4j.consistency.ConsistencyCheckTool -config conf/neo4j.properties /tmp/foo ---- If there are any inconsistencies they'll now be written to that file rather than to a file in the store directory. You can also pass that 'config' flag to the backup tool and it will make use of it when it runs the consistency check. e.g. [source,bash] ---- $ ./bin/neo4j-backup -from single://127.0.0.1 -to /tmp/foo -config conf/neo4j.properties ---- Most of the time you don't need to worry too much about either of these commands but I always forget what the various options are so I thought I'd better write it up while it's fresh in my mind.
null
null
[ -0.007504874374717474, -0.03868889808654785, -0.030536679551005363, 0.04827894642949104, 0.10661977529525757, -0.010889737866818905, 0.03568154573440552, 0.03220729902386665, 0.0061309742741286755, -0.020278962329030037, -0.013114355504512787, -0.020210543647408485, -0.04970276728272438, 0.03300008550286293, -0.02208498865365982, 0.035215895622968674, 0.07345640659332275, 0.028703276067972183, 0.047009341418743134, -0.025157691910862923, 0.00644463486969471, 0.03555435687303543, 0.0036773583851754665, 0.03241613507270813, 0.005776579026132822, 0.007089560851454735, -0.0034401973243802786, -0.004294064361602068, -0.06375592947006226, 0.006974284071475267, 0.027275824919342995, 0.0002465345896780491, 0.01707557402551174, 0.010897847823798656, 0.025790007784962654, -0.023611711338162422, -0.02683211676776409, 0.03071361966431141, 0.0017016176134347916, -0.006545525509864092, -0.0578656829893589, 0.028257936239242554, -0.0017916708020493388, 0.016307679936289787, -0.06273502111434937, 0.011818083003163338, -0.02897474355995655, 0.016427822411060333, 0.0027840316761285067, 0.0055311075411736965, -0.0872841328382492, 0.0292050763964653, -0.034703802317380905, -0.00676859263330698, 0.01123158447444439, 0.06513509154319763, 0.009626916609704494, -0.07925388962030411, 0.02350660413503647, -0.024255206808447838, -0.04332797974348068, -0.04314444214105606, -0.03153830021619797, 0.040431175380945206, 0.014141708612442017, -0.05879044532775879, 0.03507906571030617, 0.059023257344961166, -0.04337640479207039, -0.012432626448571682, 0.018051117658615112, 0.022408900782465935, -0.017905239015817642, -0.011119880713522434, 0.013959383592009544, -0.0494869165122509, -0.0021056486293673515, 0.04386606439948082, 0.020906059071421623, 0.05242012441158295, -0.04055711627006531, 0.02149478904902935, -0.0024262662045657635, 0.015139339491724968, 0.016399098560214043, -0.031608372926712036, -0.04176890105009079, -0.02242295630276203, -0.06691332161426544, 0.03594863787293434, 0.011441215872764587, -0.04392727091908455, -0.006722890771925449, 0.013427224941551685, -0.02614683471620083, 0.017262225970625877, -0.006478526629507542, 0.011475270614027977, 0.049771733582019806, -0.016179466620087624, -0.04434632882475853, -0.003570712171494961, -0.022551413625478745, 0.015169370919466019, -0.0778975859284401, -0.01805468462407589, -0.02153371274471283, -0.031955864280462265, 0.015967415645718575, -0.03181896358728409, -0.020493585616350174, 0.026757126674056053, -0.035307783633470535, 0.015927564352750778, -0.08947359770536423, 0.04821784049272537, -0.005126930307596922, -0.033757880330085754, 0.002114495960995555, 0.00219881534576416, 0.05490991845726967, 0.06038594990968704, 0.014221567660570145, 0.06771399825811386, -0.021450938656926155, 0.03943560644984245, 0.0026549827307462692, 0.03675452247262001, -0.047161251306533813, -0.06656281650066376, -0.024332813918590546, 0.064605213701725, 0.012352991849184036, 0.020338881760835648, 0.005382528528571129, -0.02075370028614998, -0.02093205414712429, -0.010900766588747501, 0.05500445514917374, 0.019939640536904335, -0.005954993888735771, -0.003735058708116412, 0.01832468993961811, 0.006968348752707243, 0.03231319412589073, 0.013894567266106606, -0.031027037650346756, -0.0396609827876091, -0.02966952882707119, 0.022912852466106415, 0.005647237412631512, 0.05328848958015442, 0.057045165449380875, -0.035058267414569855, 0.014441962353885174, 0.09967625141143799, 0.042488738894462585, 0.02357914112508297, -0.03289175406098366, 0.015062713995575905, 0.05306350812315941, 0.04107951745390892, 0.007301503326743841, 0.06565139442682266, -0.0004914288874715567, -0.004053537268191576, -0.015597199089825153, 0.049748823046684265, 0.0012910317163914442, 0.022627627477049828, -0.038349658250808716, -0.06857328116893768, 0.07141149044036865, -0.029000448063015938, 0.0018958129221573472, 0.04862237721681595, 0.05576135590672493, 0.03214792162179947, 0.01672833226621151, -0.005524482578039169, -0.06084131821990013, 0.048429567366838455, 0.01676628179848194, 0.010291749611496925, -0.015627482905983925, 0.022037411108613014, 0.05571531131863594, 0.028577495366334915, 0.018083052709698677, 0.018588898703455925, -0.09300457686185837, -0.10571799427270889, 0.011883341707289219, -0.008289998397231102, 0.04163572937250137, -0.0186057910323143, -0.00793260894715786, 0.05552562326192856, 0.004136141389608383, 0.02319093979895115, 0.031939271837472916, -0.03186469152569771, 0.020792994648218155, -0.06893680989742279, -0.0590028241276741, 0.06628496199846268, 0.022162094712257385, -0.048071637749671936, -0.04432591795921326, 0.007865152321755886, -0.01688331365585327, 0.04402550309896469, 0.014633961021900177, -0.008840900845825672, 0.05034643039107323, 0.023415295407176018, 0.011745663359761238, -0.0014892019098624587, 0.0401519313454628, -0.038809940218925476, 0.040589120239019394, 0.014788691885769367, -0.0010481777135282755, 0.026830334216356277, 0.017860624939203262, 0.09616033732891083, 0.019223345443606377, -0.033076394349336624, -0.05551625043153763, 0.052298448979854584, 0.02357526309788227, -0.02873281203210354, -0.005752175580710173, -0.02251381054520607, -0.013037377037107944, 0.023915760219097137, -0.033790528774261475, -0.010323600843548775, 0.0031018101144582033, -0.03043564222753048, 0.004290649201720953, 0.04706411063671112, -0.037524133920669556, 0.054071731865406036, 0.011255443096160889, -0.0027384483255445957, 0.012044220231473446, -0.05325062572956085, -0.060599103569984436, 0.016469839960336685, 0.02644989639520645, -0.0032744058407843113, 0.06454021483659744, -0.04086272418498993, -0.025095265358686447, -0.049405280500650406, -0.00037610786966979504, 0.04758110269904137, 0.025028716772794724, 0.059785958379507065, -0.016331901773810387, 0.04144643247127533, -0.03249834477901459, 0.025357522070407867, -0.021360889077186584, -0.028639180585741997, -0.04479154571890831, 0.003918650094419718, 0.02392328530550003, -0.0043056197464466095, 0.008149553090333939, -0.004379015415906906, 0.01799713633954525, 0.0028606366831809282, 0.01868879422545433, -0.006542718503624201, 0.030088655650615692, 0.002250553574413061, 0.003820309415459633, -0.03365374356508255, -0.027074528858065605, 0.04837455227971077, -0.05369779095053673, -0.016141068190336227, 0.0017353527946397662, -0.06807031482458115, 0.04943781718611717, -0.05361899733543396, -0.048828739672899246, 0.013963746838271618, 0.026408737525343895, 0.018114343285560608, 0.04090370982885361, 0.006461406592279673, 0.05698820576071739, 0.021810049191117287, 0.01449628546833992, 0.016371052712202072, 0.0396830253303051, 0.030013572424650192, -0.012517863884568214, 0.029665572568774223, 0.030133988708257675, -0.03203798457980156, -0.003802182385697961, -0.03363240510225296, 0.005568321794271469, -0.02219395525753498, -0.2883266806602478, 0.0684538260102272, -0.021098706871271133, -0.06561697274446487, 0.022874772548675537, -0.04217668995261192, -0.0022200485691428185, -0.02875509299337864, -0.021888528019189835, 0.017705561593174934, -0.018009750172495842, -0.04687228053808212, 0.013797313906252384, 0.02735738269984722, 0.0029068917501717806, 0.01869531348347664, 0.005881129764020443, -0.033596497029066086, 0.00275629386305809, 0.00975080020725727, -0.01732499524950981, -0.03508002683520317, 0.025915179401636124, 0.01131116971373558, 0.027379125356674194, 0.058487795293331146, -0.09195613116025925, 0.037463560700416565, -0.04587092995643616, -0.052453987300395966, 0.006152357440441847, -0.02901642769575119, -0.010492329485714436, 0.009621711447834969, -0.03453656658530235, -0.015511301346123219, 0.02529994025826454, 0.017884396016597748, 0.002154046203941107, 0.022854764014482498, -0.041818033903837204, -0.05425747483968735, -0.015178900212049484, -0.009905470535159111, 0.07214923948049545, -0.017440343275666237, -0.07543561607599258, -0.02556575834751129, -0.030466360971331596, 0.06777164340019226, -0.020534906536340714, -0.016909096390008926, -0.010051405988633633, 0.04225889965891838, -0.022181859239935875, -0.018601609393954277, -0.0346287302672863, 0.007769500836730003, -0.03618156537413597, -0.017702408134937286, -0.00755230663344264, -0.03142914921045303, 0.0031681873369961977, -0.05462833121418953, -0.020335279405117035, -0.06231926381587982, -0.08280505985021591, -0.019934436306357384, 0.05015614256262779, 0.034327466040849686, -0.01678450033068657, 0.035139456391334534, -0.001258397358469665, -0.10511501878499985, -0.029381534084677696, -0.04670655354857445, -0.010477184318006039, -0.00803158525377512, -0.02377880923449993, 0.07472781091928482, -0.04802216589450836, -0.029714450240135193, 0.024223653599619865, 0.007548001129180193, 0.03485618531703949, 0.0014280141331255436, 0.016867781057953835, -0.0014988092007115483, -0.01617417298257351, 0.0017931676702573895, 0.06805364042520523, -0.018714508041739464, -0.020771628245711327, -0.006374753080308437, 0.020424818620085716, 0.05492161214351654, 0.004575981292873621, -0.008322135545313358, 0.00746537558734417, 0.026211876422166824, 0.05086373910307884, -0.010031431913375854, 0.038954462856054306, -0.05104922130703926, -0.016604391857981682, -0.016113853082060814, -0.04297808185219765, 0.03735825791954994, 0.00878742802888155, 0.026207495480775833, -0.01037500984966755, 0.026992006227374077, 0.03981075808405876, -0.05922098085284233, -0.025920720770955086, 0.006663351785391569, -0.01782047562301159, 0.03199952468276024, 0.0368916317820549, -0.04442203417420387, -0.04268408194184303, 0.031719937920570374, 0.048228561878204346, -0.022184599190950394, -0.05196309834718704, -0.0317540168762207, -0.0008913989295251667, -0.008050511591136456, -0.014575136825442314, 0.0022638991940766573, -0.02952541410923004, 0.04655832797288895, 0.04745597764849663, -0.018144594505429268, 0.03570248931646347, -0.014271317049860954, -0.02130696550011635, -0.04048463702201843, -0.009183324873447418, -0.0030905031599104404, -0.004596322309225798, -0.013806993141770363, -0.011497166939079762, 0.06301268935203552, 0.04429250210523605, -0.00011444566189311445, 0.016213752329349518, -0.0055708251893520355, 0.024372205138206482, -0.01344994455575943, 0.014904584735631943, -0.06787176430225372, 0.011331778950989246, -0.03975607082247734, -0.04177848622202873, 0.003792988834902644, 0.035882752388715744, -0.02709868922829628, -0.02166278474032879, -0.0164132472127676, 0.018185829743742943, -0.03194373846054077, 0.02922867424786091, -0.004899486433714628, -0.02817457541823387, 0.0678853765130043, -0.019541729241609573, 0.002338613383471966, -0.044388048350811005, -0.0080559765920043, -0.008131147362291813, 0.0004975476767867804, -0.03463292866945267, -0.005409901961684227, 0.032726533710956573, 0.02196320705115795, -0.0012400600826367736, 0.04462015628814697, 0.03582562133669853, 0.02368185855448246, -0.0033641222398728132, -0.011339480988681316, 0.024891966953873634, 0.011762929148972034, 0.04554920271039009, 0.01115080900490284, -0.025453446432948112, 0.028675666078925133, -0.023802155628800392, -0.008202672936022282, -0.012365343980491161, -0.008669443428516388, -0.02355325035750866, 0.030703065916895866, -0.01675127074122429, -0.062190063297748566, 0.04677143692970276, 0.015118004754185677, 0.01824270561337471, 0.025621730834245682, -0.018039457499980927, -0.00820534024387598, -0.030194582417607307, 0.022454677149653435, 0.049633681774139404, -0.03706717863678932, -0.021153252571821213, 0.009444587863981724, -0.0029635995160788298, 0.00926413107663393, 0.015142375603318214, -0.0700310617685318, -0.04798099398612976, -0.005472182761877775, 0.03440457955002785, -0.04844939708709717, -0.0542018823325634, -0.02350594662129879, -0.0021220077760517597, -0.0012664932291954756, -0.007561771664768457, 0.023807324469089508, 0.020504361018538475, -0.01349818054586649, -0.006760880816727877, 0.006202297750860453, -0.009838164784014225, 0.0015419934643432498, 0.015135172754526138, -0.00134541024453938, 0.026284940540790558, -0.013258318416774273, 0.04323653504252434, 0.022310033440589905, -0.005942251533269882, -0.009388674981892109, -0.021902265027165413, 0.03118380531668663, -0.012178270146250725, 0.016731204465031624, -0.014915529638528824, 0.01710403338074684, -0.021361729130148888, 0.004200146067887545, -0.01343518402427435, -0.015455308370292187, -0.018020452931523323, -0.030506441369652748, -0.0030531317461282015, 0.052445992827415466, 0.017488503828644753, 0.05466730147600174, -0.00954148918390274, -0.02947397157549858, 0.06104084849357605, -0.04904911294579506, -0.041691478341817856, -0.033858731389045715, -0.07364040613174438, 0.010038109496235847, 0.035999517887830734, 0.02057657204568386, -0.026681596413254738, 0.025304459035396576, 0.06284859031438828, -0.004962805192917585, 0.022480972111225128, -0.0263648871332407, 0.020311851054430008, -0.032277848571538925, -0.035477183759212494, -0.06386563181877136, -0.00036012151394970715, 0.05189474672079086, 0.0032618334516882896, 0.007615106645971537, -0.022636787965893745, -0.03773507475852966, -0.006382408086210489, -0.04714741185307503, -0.03833102062344551, 0.03765629231929779, -0.024553216993808746, 0.016747960820794106, -0.016121070832014084, -0.060035426169633865, 0.02933066338300705, 0.05217772722244263, -0.04272420331835747, -0.024629905819892883, -0.05467665195465088, 0.036239441484212875, -0.0013180009555071592, 0.024977734312415123, -0.03942680358886719, -0.030567387118935585, 0.06066622957587242, -0.00013369649241212755, 0.04083704203367233, 0.043958019465208054, -0.01992838643491268, 0.006272641010582447, 0.03698990121483803, -0.007951159961521626, -0.003733853343874216, 0.03634102642536163, -0.04046449065208435, -0.0358654148876667, 0.014919154345989227, 0.009004279039800167, -0.02207918092608452, -0.014618491753935814, 0.04039490967988968, 0.014636745676398277, -0.03983008489012718, -0.07423534244298935, 0.039761800318956375, -0.005979690235108137, -0.02080739103257656, -0.05116181820631027, 0.009262969717383385, -0.0706590935587883, 0.047459620982408524, -0.020479554310441017, 0.021843908354640007, 0.08040519058704376, -0.014357310719788074, 0.004752875305712223, 0.00442430330440402, 0.06356742978096008, 0.1019754558801651, 0.011546602472662926, 0.013852122239768505, 0.04818912222981453, -0.017941901460289955, -0.019701305776834488, -0.02263214811682701, -0.02860887721180916, -0.0041397446766495705, 0.001038036192767322, -0.013951344415545464, 0.059169284999370575, -0.032370731234550476, 0.07210800796747208, -0.021842166781425476, -0.007431054953485727, -0.014476742595434189, 0.049954596906900406, 0.04141947627067566, 0.04698962718248367, 0.006594822742044926, 0.024207981303334236, -0.04225873947143555, -0.031751397997140884, 0.03884892538189888, -0.024702325463294983, -0.025759154930710793, 0.023147480562329292, -0.018610011786222458, 0.009210589341819286, 0.02661190740764141, 0.04525597020983696, 0.06091013923287392, 0.0151783162727952, 0.0031607269775122404, 0.006227924954146147, 0.022472873330116272, -0.007847164757549763, 0.004057189449667931, 0.0025939445476979017, -0.030162066221237183, -0.02889939770102501, -0.04214447736740112, 0.005184513051062822, -0.014307547360658646, -0.03674246743321419, 0.008541187271475792, -0.004082136787474155, 0.01610346883535385, 0.005585635546594858, -0.010660859756171703, -0.033386532217264175, -0.02698669210076332, -0.04992103949189186, -0.06758604943752289, -0.06011022627353668, 0.01909763552248478, -0.006103985011577606, 0.006084540393203497, -0.02302243933081627, -0.0020992765203118324, -0.023530038073658943, -0.010821073316037655, 0.07045537233352661, -0.05543699488043785, 0.014496850781142712, -0.00021763522818218917, 0.025303425267338753, 0.026345903053879738, 0.03694719448685646, 0.06506698578596115, 0.009989336133003235, -0.016848314553499222, -0.018566852435469627, -0.012136939913034439, 0.04330610856413841, 0.00746103934943676, -0.006422722712159157, -0.07731066644191742, -0.0038671856746077538, 0.04616887494921684, 0.013075529597699642, -0.05605926737189293, 0.007946615107357502, 0.07383111119270325, -0.034337468445301056, 0.02740766480565071, -0.021841417998075485, -0.02696574106812477, -0.03731691092252731, 0.004373723641037941, -0.00967096071690321, -0.0014383015222847462, 0.044409651309251785, -0.012068819254636765, 0.07226528972387314, 0.07501058280467987, -0.021107489243149757, -0.044943444430828094, 0.003775689285248518, -0.006250573322176933, -0.007947898469865322, -0.025598876178264618, -0.04281649366021156, -0.04770967736840248, -0.09133825451135635, -0.05910805985331535, -0.0009724770206958055, -0.024231841787695885, -0.02828320302069187, 0.014522122219204903, 0.02764280140399933, -0.04212689399719238, 0.002460973337292671, -0.034611776471138, 0.03291655331850052, -0.024602657184004784, -0.0228352602571249, -0.006342207081615925, 0.004232782404869795, 0.003069414524361491, -0.001535337883979082, 0.046675942838191986, -0.04456020146608353, -0.004356908146291971, -0.02092265710234642, 0.04864862933754921, 0.05366826057434082, 0.02685031294822693, -0.01118718646466732 ]
[ -0.0779976174235344, -0.030568743124604225, -0.037334516644477844, -0.037963710725307465, 0.06067225709557533, -0.05187688022851944, -0.05260374769568443, 0.00028125543030910194, -0.01423877477645874, -0.04783127084374428, 0.017746005207300186, -0.020804185420274734, 0.0023434145841747522, -0.008818741887807846, 0.04908555746078491, 0.005412671715021133, -0.001842851284891367, -0.04563580080866814, 0.01399591751396656, 0.02030886337161064, -0.03743375837802887, -0.05631627142429352, -0.015865596011281013, 0.00040260268724523485, 0.0203887727111578, 0.04572826623916626, 0.055758751928806305, -0.02573724091053009, -0.036349937319755554, -0.22631114721298218, -0.006532585714012384, -0.04287236928939819, -0.027904387563467026, -0.03298700600862503, 0.050278596580028534, 0.042012955993413925, 0.04631665721535683, -0.00029705060296691954, 0.015505661256611347, 0.037399183958768845, -0.009017027914524078, 0.026713257655501366, -0.06477692723274231, -0.043165482580661774, 0.03844171762466431, 0.022756293416023254, 0.0042328000999987125, -0.01785612851381302, 0.031705714762210846, 0.027589160948991776, -0.018767084926366806, 0.015640437602996826, 0.001166093279607594, -0.025035573169589043, -0.018691081553697586, 0.032606471329927444, 0.05751476436853409, 0.122739277780056, 0.03940129280090332, -0.005489855073392391, 0.004985618870705366, -0.000573124794755131, -0.11592569947242737, 0.04826447367668152, 0.04748532176017761, 0.021821318194270134, -0.01578938029706478, -0.036132797598838806, -0.02822546474635601, 0.06056996062397957, -0.011792775243520737, 0.0036047245375812054, -0.052546314895153046, 0.10075834393501282, -0.008278880268335342, 0.010306748561561108, 0.041408248245716095, 0.03806724026799202, -0.026764342561364174, -0.019959885627031326, -0.05269491672515869, 0.020031781867146492, -0.006086633540689945, 0.00236301776021719, -0.05306272581219673, 0.01486944779753685, -0.019415641203522682, 0.07597578316926956, 0.0037365981843322515, 0.0288374200463295, 0.035921573638916016, 0.03910483419895172, 0.10382234305143356, 0.027108103036880493, -0.09898772835731506, 0.0087636923417449, 0.005602477118372917, 0.04418039694428444, 0.048907555639743805, 0.3974894881248474, 0.0035517222713679075, -0.0001865119265858084, 0.029181867837905884, 0.06939560174942017, 0.003896564245223999, -0.023183079436421394, -0.003429766744375229, -0.03817926347255707, 0.029508676379919052, -0.024453790858387947, -0.00815380085259676, -0.01363305188715458, 0.06247508153319359, -0.0818595439195633, -0.001706564798951149, 0.0250504519790411, 0.03907881677150726, 0.024693025276064873, -0.06938844174146652, 0.010778471827507019, -0.0024374276399612427, 0.03317160904407501, 0.0665082111954689, -0.0023133924696594477, 0.024142205715179443, -0.01500727515667677, 0.0003948502999264747, 0.006703910417854786, 0.05338407680392265, 0.052561499178409576, 0.0067560700699687, -0.03238116577267647, -0.0634315088391304, -0.005046383012086153, 0.001950693316757679, 0.013025010004639626, 0.005173807498067617, -0.07043634355068207, -0.005939416587352753, 0.003779538907110691, 0.00693944375962019, -0.02561672404408455, 0.023912370204925537, 0.00987579021602869, -0.026654131710529327, 0.128594771027565, -0.014589260332286358, -0.005757874343544245, 0.0007427214295603335, -0.04253406077623367, -0.01531163975596428, 0.0547814778983593, 0.0006212281296029687, -0.07963988929986954, -0.000575680925976485, -0.005093535874038935, 0.06381610780954361, -0.014712614007294178, -0.07358735799789429, -0.0025669981259852648, 0.008715303614735603, -0.009488766081631184, -0.03317929804325104, 0.07963645458221436, 0.03059588372707367, -0.0729038193821907, -0.018927784636616707, 0.02555638737976551, 0.04266386851668358, -0.06279140710830688, -0.006672678515315056, 0.001345996861346066, -0.014235930517315865, -0.05379360169172287, 0.029118984937667847, -0.019835127517580986, -0.031153937801718712, -0.032534848898649216, 0.02634490467607975, -0.006215559784322977, -0.005418144166469574, -0.013103961013257504, -0.044863488525152206, 0.002555621787905693, -0.029798569157719612, -0.08411142975091934, -0.09238781780004501, 0.013627407141029835, 0.0071111018769443035, 0.010918647982180119, -0.0213974229991436, -0.04446955397725105, -0.06549829989671707, 0.07152163982391357, -0.018282359465956688, -0.032209612429142, -0.05387870967388153, 0.026676120236516, -0.013312323950231075, -0.04373014345765114, 0.046254973858594894, 0.0467456616461277, 0.005760463420301676, 0.02136259898543358, -0.06906178593635559, 0.022362327203154564, 0.04273100942373276, -0.04203782230615616, 0.06355562806129456, 0.037315286695957184, -0.05216760188341141, 0.005368125159293413, -0.003911431413143873, 0.037893444299697876, -0.04592723399400711, 0.0010075895115733147, 0.00564556522294879, 0.01191658154129982, 0.04880429431796074, 0.02907734178006649, -0.02440379373729229, -0.010235466063022614, -0.0015377330128103495, -0.3339069187641144, -0.03934207186102867, -0.03260082006454468, 0.007207239978015423, 0.041131552308797836, -0.024081876501441002, 0.052125878632068634, 0.010245789773762226, 0.011096461676061153, -0.007235911674797535, 0.06808777898550034, -0.015252328477799892, -0.013807806186378002, -0.07589682191610336, 0.006040467880666256, 0.049907997250556946, -0.034578125923871994, -0.00347536220215261, -0.029837392270565033, -0.007458623498678207, -0.01319245807826519, -0.05255004018545151, -0.0593864768743515, -0.010623347945511341, 0.0627310499548912, -0.0356234572827816, 0.08595261722803116, -0.03994622454047203, 0.053682949393987656, -0.0174056775867939, 0.03554484248161316, 0.011491915211081505, -0.011723333038389683, -0.11735174059867859, -0.004330732859671116, 0.0011070932960137725, -0.002500601578503847, 0.015407240018248558, 0.024807393550872803, 0.01567586325109005, -0.026626674458384514, 0.0008275472791865468, -0.058229561895132065, -0.07337874919176102, -0.00033556442940607667, 0.008859126828610897, -0.05362372472882271, 0.01737600937485695, -0.008008920587599277, 0.03411659225821495, 0.0160177294164896, 0.010861080139875412, -0.025888849049806595, 0.0025463474448770285, 0.037952154874801636, -0.029611986130475998, -0.023500654846429825, 0.012516542337834835, 0.05134819075465202, 0.0321451798081398, 0.018677763640880585, 0.04961051046848297, 0.028050996363162994, -0.05983766168355942, 0.030746780335903168, 0.0026909159496426582, -0.019524764269590378, 0.004176492337137461, 0.030046863481402397, -0.029432274401187897, 0.001360093243420124, 0.08623773604631424, -0.03138582035899162, 0.03101232461631298, 0.03551195561885834, 0.04194463789463043, -0.03333859145641327, -0.016309864819049835, 0.05315857008099556, -0.013502671383321285, 0.05975779891014099, -0.026837104931473732, 0.080073282122612, -0.040842510759830475, 0.01828313060104847, 0.06783872842788696, 0.0021345189306885004, -0.012043323367834091, 0.06437105685472488, 0.004831804893910885, 0.006244908552616835, -0.0037313399370759726, -0.034004971385002136, -0.06995538622140884, 0.08145515620708466, -0.016500553116202354, -0.24001489579677582, 0.006299636792391539, -0.011182784102857113, 0.07838274538516998, -0.0022698575630784035, 0.021416185423731804, 0.029923276975750923, -0.02310422621667385, -0.011218703351914883, 0.03755693510174751, 0.005215614102780819, 0.025968613103032112, -0.015643490478396416, 0.0008371259900741279, 0.02221563085913658, 0.027914639562368393, 0.028906771913170815, 0.018907176330685616, 0.05637671425938606, -0.04547961428761482, 0.013901917263865471, -0.03616731986403465, 0.13703663647174835, 0.030473819002509117, -0.0014984795125201344, 0.05214083567261696, -0.019788220524787903, 0.05805444344878197, 0.055347904562950134, -0.013162468560039997, -0.05832887813448906, 0.0306132510304451, -0.02094389870762825, 0.007911398075520992, -0.022191321477293968, -0.038749631494283676, -0.03146672993898392, 0.050555817782878876, 0.03863563761115074, -0.02757374756038189, -0.00680629163980484, 0.015593337826430798, -0.04942694306373596, 0.006165369413793087, 0.0840991660952568, -0.058323558419942856, -0.0004927789559587836, -0.015294370241463184, -0.06472376734018326, -0.016118165105581284, -0.057056840509176254, -0.04572010412812233, -0.007795571815222502, -0.07920514792203903, -0.009718415327370167, 0.07915639877319336, -0.0014092781348153949, -0.02951047010719776, -0.021598903462290764, 0.027032626792788506, 0.026153620332479477, -0.0415930300951004, 0.13087084889411926, -0.012379704974591732, -0.01526501402258873 ]
[ 0.03878369554877281, 0.01288407389074564, -0.04291656240820885, 0.026431074365973473, 0.0020474062766879797, 0.00956604816019535, -0.025399722158908844, 0.02697695791721344, -0.024565620347857475, -0.012664718553423882, -0.02973746508359909, -0.005078474059700966, 0.05638650804758072, -0.021293314173817635, -0.013766337186098099, -0.013006889261305332, -0.010137738659977913, 0.045137953013181686, 0.01859760284423828, -0.03849685937166214, -0.047665227204561234, -0.02199300192296505, 0.053289271891117096, -0.002510103629902005, -0.013715643435716629, 0.04307613894343376, -0.020877448841929436, -0.030274825170636177, -0.006061183754354715, -0.1235455647110939, -0.03760019689798355, -0.014765583910048008, -0.001045316574163735, -0.014759394340217113, 0.019156070426106453, 0.06955345720052719, 0.06399897485971451, 0.04650482162833214, -0.027466705068945885, 0.0100400410592556, 0.04622118920087814, -0.01950887404382229, -0.019359653815627098, -0.03591524437069893, -0.023553961887955666, -0.022602220997214317, -0.06571360677480698, -0.005213129334151745, -0.00020621725707314909, -0.019567618146538734, -0.03444075584411621, -0.007478301413357258, 0.0009848667541518807, 0.013002912513911724, -0.002517109038308263, 0.030106859281659126, 0.007514017168432474, -0.012384796515107155, 0.011742476373910904, -0.01430679764598608, 0.02278413251042366, -0.0034206530544906855, -0.04373404011130333, -0.02341589704155922, 0.0028210212476551533, 0.0037212795577943325, 0.014141305349767208, 0.020940659567713737, -0.010857061482965946, 0.0006281311507336795, -0.026023514568805695, 0.051662180572748184, -0.07823161780834198, -0.0037271298933774233, -0.026483861729502678, 0.05118908733129501, 0.08076804131269455, -0.007183538284152746, -0.024586137384176254, 0.027385223656892776, -0.04361996427178383, -0.010924415662884712, -0.015512892976403236, -0.03857715055346489, -0.07013440132141113, 0.04159523546695709, -0.03911266475915909, -0.007378262467682362, 0.010499859228730202, -0.0024052923545241356, -0.006859890650957823, 0.03138711676001549, -0.02792106196284294, -0.027003463357686996, -0.06330956518650055, -0.040034834295511246, -0.0038742637261748314, 0.009064956568181515, 0.038197387009859085, 0.793244481086731, 0.0021881458815187216, 0.0266056340187788, 0.0435311533510685, 0.007775959558784962, -0.027542291209101677, -0.00202477490529418, 0.046470195055007935, -0.007477079052478075, 0.00792443286627531, 0.002497789217159152, -0.025823265314102173, 0.0019937758333981037, 0.044015415012836456, 0.01845373399555683, 0.012168137356638908, 0.02642286755144596, 0.04558062553405762, -0.00036697558243758976, -0.03277385234832764, 0.029289485886693, 0.048573706299066544, -0.005439259111881256, 0.011736436747014523, 0.03357566520571709, 0.016778012737631798, -0.1616896390914917, -0.008939811959862709, -6.85351703969383e-33, 0.029322944581508636, -0.020490534603595734, 0.05538340285420418, 0.003226405940949917, 0.024482306092977524, 0.02426917664706707, -0.0013828558148816228, 0.0022898006718605757, -0.030017325654625893, -0.034243226051330566, -0.03206600993871689, -0.03756921738386154, 0.013937951065599918, -0.023128150030970573, 0.005718601401895285, -0.020205779001116753, 0.011179937049746513, 0.02332933247089386, 0.003185515059158206, 0.0022966505493968725, 0.023320406675338745, 0.06964195519685745, -0.03194227069616318, 0.03409948945045471, -0.01798502542078495, 0.010077835991978645, 0.020850442349910736, 0.007496096659451723, -0.002651271177455783, -0.04592865705490112, -0.06062229350209236, -0.00034268584568053484, -0.01847689040005207, -0.010729779489338398, 0.006322505418211222, -0.04465707764029503, -0.051427461206912994, 0.017089644446969032, -0.04638451710343361, -0.060951508581638336, -0.0381472148001194, -0.030222062021493912, -0.013144286349415779, -0.022693173959851265, -0.007356768008321524, -0.01521413866430521, -0.008788447827100754, 0.014160699211061, 0.01979910582304001, 0.006062102038413286, 0.014314940199255943, 0.02996230125427246, -0.00780648784711957, -0.013278941623866558, -0.06048399955034256, -0.03953231871128082, 0.008494533598423004, -0.005178375169634819, 0.002522591035813093, 0.01851651445031166, 0.03893006965517998, -0.006516169756650925, -0.042667459696531296, 0.02494250051677227, 0.01993246003985405, 0.012672539800405502, 0.022067168727517128, 0.03237175941467285, 0.0062980554066598415, 0.06865799427032471, -0.030989663675427437, 0.029441915452480316, -0.0031121731735765934, -0.005481374450027943, 0.024148931726813316, -0.04790055379271507, 0.015044002793729305, 0.006655935198068619, -0.010565041564404964, 0.03908773884177208, -0.025447366759181023, -0.041928697377443314, -0.007121325004845858, -0.038446225225925446, 0.005353671498596668, 0.005676737986505032, 0.05619725212454796, 0.00958305224776268, 0.024676138535141945, 0.020930232480168343, 0.04588088393211365, 0.03640208765864372, -0.016324443742632866, -0.030430998653173447, -0.01101422868669033, 6.633728248764864e-33, 0.021859202533960342, -0.037093110382556915, -0.023273102939128876, 0.025300437584519386, 0.004468848463147879, 0.016814617440104485, -0.049812573939561844, 0.019682344049215317, -0.04899052530527115, 0.029900457710027695, -0.012264104560017586, -0.024209516122937202, -0.007312699221074581, -0.0026697854045778513, 0.002345360815525055, -0.004283057991415262, 0.04478052631020546, -0.07778085023164749, 0.01823580265045166, 0.011701629497110844, 0.007404443807899952, -0.012338493950664997, -0.008223376236855984, 0.053934842348098755, 0.03286026790738106, 0.0161437951028347, -0.027351679280400276, 0.023341188207268715, -0.03218650072813034, 0.010484031401574612, -0.00517130084335804, -0.06773314625024796, -0.027507567778229713, -0.0025857114233076572, 0.014867092482745647, 0.012287143617868423, -0.010265073738992214, -0.0023242507595568895, 0.019701335579156876, -0.006022035609930754, 0.003876886796206236, -0.005077164154499769, -0.04755254089832306, 0.056243207305669785, 0.029442401602864265, 0.028458891436457634, 0.0007358222501352429, 0.029888983815908432, -0.010544602759182453, 0.03088921681046486, 0.005887129809707403, 0.05144335329532623, -0.002090452704578638, 0.03767767176032066, 0.0441124327480793, -0.009144539944827557, 0.008172409608960152, 0.032689549028873444, -0.025334468111395836, 0.03459124639630318, -0.00943587627261877, -0.020203134045004845, -0.02178451046347618, 0.018844757229089737, -0.032975707203149796, -0.0632152184844017, 0.025382881984114647, 0.006040523294359446, -0.010000364854931831, 0.010150624439120293, -0.00301689887419343, 0.043444886803627014, -0.004416561685502529, 0.06316585093736649, 0.000933620729483664, -0.03526901826262474, -0.01719396375119686, -0.0026103577110916376, -0.04509120434522629, 0.04075412452220917, -0.006186025682836771, 0.020284226164221764, 0.020755460485816002, -0.014722070656716824, 0.027588121592998505, 0.0011988355545327067, -0.009194384329020977, 0.03171633183956146, -0.021679388359189034, -0.024009132757782936, 0.024580106139183044, -0.030512386932969093, -0.04245954006910324, 0.0456538088619709, -0.04236852750182152, -1.221251810790136e-8, 0.003221532329916954, -0.0033135912381112576, -0.026581674814224243, 0.025877851992845535, 0.0008627897477708757, 0.006613983307033777, -0.02213255688548088, -0.018227364867925644, -0.03285292163491249, 0.035466257482767105, 0.032031845301389694, -0.022484900429844856, -0.02185298129916191, -0.0002400117664365098, 0.023047233000397682, -0.03697149083018303, -0.027722792699933052, -0.000884044507984072, 0.02553490549325943, 0.020866863429546356, 0.02240847796201706, 0.018494199961423874, -0.032852206379175186, 0.003567590145394206, 0.01038979459553957, -0.024396944791078568, 0.04983357712626457, -0.01757715828716755, 0.0033512942027300596, -0.060199812054634094, -0.0006789655308239162, -0.030022509396076202, -0.03812320530414581, -0.007944168522953987, -0.014549454674124718, -0.0017940355464816093, 0.051677603274583817, 0.07018189877271652, 0.0037031439132988453, 0.01877969689667225, 0.018578384071588516, 0.005094672087579966, -0.03154751658439636, -0.030815651640295982, -0.015190746635198593, 0.01115301251411438, -0.058097802102565765, 0.00032602588180452585, 0.036059699952602386, -0.028307467699050903, -0.0033163479529321194, 0.0034971018321812153, 0.07114166766405106, 0.05824395641684532, 0.05441541224718094, -0.030199401080608368, -0.04052460566163063, -0.01235593855381012, 0.011796527542173862, 0.012027318589389324, 0.0414903461933136, -0.008520884439349174, -0.00819087028503418, -0.024900145828723907 ]
neo4j-backup-store-copy-and-consistency-check
https://markhneedham.com/blog/2014/01/22/neo4j-backup-store-copy-and-consistency-check
false
2014-06-27 10:51:25
Neo4j: Cypher - Separation of concerns
[ "neo4j" ]
[ "neo4j" ]
While preparing https://skillsmatter.com/skillscasts/5385-analysing-london-s-nosql-meetups-using-clojure-neocons-luminus[my talk on building Neo4j backed applications with Clojure] I realised that some of the queries I'd written were incredibly complicated and went against anything I'd learnt about separating different concerns. One example of this was the query I used to generate the data for the following page of the meetup application I've been working on: image::{{<siteurl>}}/uploads/2014/06/2014-06-27_08-19-34.png[2014 06 27 08 19 34,600] image::{{<siteurl>}}/uploads/2014/06/2014-06-27_08-31-13.png[2014 06 27 08 31 13,600] Depending on the selected tab you can choose to see the people signed up for the meetup and the date that they signed up or the topics that those people are interested in. For reference, this is an outline of the schema of the graph behind the application: image::{{<siteurl>}}/uploads/2014/06/2014-06-27_11-51-00.png[2014 06 27 11 51 00,600] This was my initial query to get the data: [source,cypher] ---- MATCH (event:Event {id: {eventId}})-[:HELD_AT]->(venue) OPTIONAL MATCH (event)<-[:TO]-(rsvp)<-[:RSVPD]-(person) OPTIONAL MATCH (person)-[:INTERESTED_IN]->(topic) WHERE ()-[:HAS_TOPIC]->(topic) WITH event, venue, rsvp, person, COLLECT(topic) as topics ORDER BY rsvp.time OPTIONAL MATCH (rsvp)<-[:NEXT]-(initial) WITH event, venue, COLLECT({rsvp: rsvp, initial: initial, person: person, topics: topics}) AS responses WITH event, venue, [response in responses WHERE response.initial is null AND response.rsvp.response = "yes"] as attendees, [response in responses WHERE NOT response.initial is null] as dropouts, responses UNWIND([response in attendees | response.topics]) AS topics UNWIND(topics) AS topic WITH event, venue, attendees, dropouts, {id: topic.id, name:topic.name, freq:COUNT(*)} AS t RETURN event, venue, attendees, dropouts, COLLECT(t) AS topics ---- The first two lines of the query works out which people have RSVP'd to a particular event, the 3rd line captures the topics they're interested in as long as the topic is linked to at least one of the NoSQL London groups. We then optionally capture their initial RSVP in case they've changed it before doing a bit of data manipulation to group everything together. If we run a slight variation of that which only shows a few of the topics, attendees and dropouts this is the type of result we get: [source,bash] ---- +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | event.name | venue.name | [a IN attendees[0..5] | a.person.name] | [d in dropouts[0..5] | d.person.name] | topics[0..5] | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | "Building Neo4j backed web applications" | "Skills Matter" | ["Mark Needham","Alistair Jones","Jim Webber","Axel Morgner","Ramesh"] | ["Frank Gibson","Keith Hinde","Richard Mason","Ollie Glass","Tom"] | [{id -> 10538, name -> "Business Intelligence", freq -> 3},{id -> 61680, name -> "HBase", freq -> 3},{id -> 61679, name -> "Hive", freq -> 2},{id -> 193021, name -> "Graph Databases", freq -> 12},{id -> 85951, name -> "JavaScript Frameworks", freq -> 10}] | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ---- The problem is we've mixed together two different concerns - the *attendees* to a meetup and the *topics* they're interested in - which made the query quite hard to understand when I came back to it a couple of months later. Instead what we can do is split the query in two and make two different calls to the server. We then end up with the following: [source,cypher] ---- // Get the event + attendees + dropouts MATCH (event:Event {id: {eventId}})-[:HELD_AT]->(venue) OPTIONAL MATCH (event)<-[:TO]-(rsvp)<-[:RSVPD]-(person) WITH event, venue, rsvp, person ORDER BY rsvp.time OPTIONAL MATCH (rsvp)<-[:NEXT]-(initial) WITH event, venue, COLLECT({rsvp: rsvp, initial: initial, person: person}) AS responses WITH event, venue, [response in responses WHERE response.initial is null AND response.rsvp.response = "yes"] as attendees, [response in responses WHERE NOT response.initial is null] as dropouts RETURN event, venue, attendees, dropouts ---- [source,cypher] ---- // Get the topics the attendees are interested in MATCH (event:Event {id: {eventId}}) MATCH (event)<-[:TO]-(rsvp {response: "yes"})<-[:RSVPD]-(person)-[:INTERESTED_IN]->(topic) WHERE ()-[:HAS_TOPIC]->(topic) RETURN topic.id AS id, topic.name AS name, COUNT(*) AS freq ---- The first query is still a bit complex but that's because there's a bit of tricky logic to distinguish people who signed up and dropped out. However, the second query is now quite easy to read and expresses it's intent very clearly.
null
null
[ 0.005022840574383736, -0.017726629972457886, -0.01085855532437563, 0.04013283550739288, 0.08184126019477844, -0.021324673667550087, 0.02030581422150135, 0.027861306443810463, 0.00934323575347662, -0.004376105032861233, -0.015539279207587242, -0.01119875069707632, -0.07727877050638199, 0.02700382098555565, 0.009496555663645267, 0.06002747267484665, 0.05770474299788475, -0.007868672721087933, 0.010748387314379215, -0.012816280126571655, 0.03030850924551487, 0.048272255808115005, -0.00734718656167388, 0.028249284252524376, 0.05921649560332298, 0.00031620069057680666, -0.0009989019017666578, 0.002849738812074065, -0.06663180887699127, 0.014312476851046085, 0.03152173012495041, -0.003910127095878124, -0.006731893867254257, -0.022987723350524902, 0.021857328712940216, -0.024493195116519928, -0.0193063672631979, 0.006635884754359722, -0.022099832072854042, 0.010075174272060394, -0.07836669683456421, 0.03806612640619278, -0.0131759038195014, 0.004792663734406233, -0.023273849859833717, 0.005617727525532246, -0.03549100458621979, 0.05532996729016304, 0.017785077914595604, 0.020142095163464546, -0.06614454835653305, 0.005663753487169743, 0.000961783982347697, 0.03471413999795914, 0.00028394616674631834, 0.030853165313601494, 0.02294536679983139, -0.07761864364147186, 0.04440424218773842, -0.013318057172000408, -0.007143799681216478, 0.017860624939203262, 0.009809372946619987, 0.0127979451790452, 0.008491459302604198, -0.02518003061413765, -0.013417449779808521, 0.05722185596823692, -0.03807235509157181, -0.012196172028779984, 0.007414474617689848, 0.030771631747484207, -0.007113560568541288, -0.011308707296848297, 0.018788428977131844, -0.030591003596782684, 0.005984843708574772, 0.048508886247873306, 0.028970658779144287, 0.06676524877548218, -0.016523189842700958, 0.01641075313091278, 0.036059651523828506, 0.035235386341810226, 0.012679368257522583, -0.037346355617046356, -0.046053484082221985, -0.035857558250427246, -0.046343978494405746, 0.04213769733905792, 0.032209839671850204, -0.05002560093998909, -0.011161305010318756, 0.0013339354190975428, -0.014215387403964996, 0.029231643304228783, 0.01971081644296646, -0.006888991687446833, 0.009776756167411804, -0.018188532441854477, -0.02939615584909916, -0.023530006408691406, -0.0051047164015471935, 0.007576653268188238, -0.08379922807216644, -0.0194381270557642, -0.04142351448535919, -0.032351505011320114, 0.014205637387931347, 0.007403363939374685, -0.04456678777933121, 0.00256936508230865, -0.014991989359259605, 0.012231283821165562, -0.07836548238992691, 0.060999009758234024, 0.012511094100773335, -0.034884706139564514, -0.007603198289871216, 0.017035244032740593, 0.026010870933532715, 0.02117958292365074, 0.0009715869091451168, 0.06432382762432098, -0.05404975637793541, 0.03271348774433136, 0.009927754290401936, 0.05616667866706848, -0.01459328643977642, -0.041685763746500015, -0.02323993109166622, 0.070675328373909, -0.0028984583914279938, 0.016611842438578606, -0.020138224586844444, -0.040777843445539474, -0.017882006242871284, 0.02070169523358345, 0.0619816854596138, 0.02901489846408367, 0.01412171870470047, -0.052903298288583755, 0.029714401811361313, 0.009591029956936836, 0.04365423694252968, 0.024072039872407913, 0.0005785427638329566, -0.0371667817234993, -0.03444546088576317, -0.002527385950088501, 0.0387846976518631, 0.008077762089669704, 0.04858064651489258, -0.021428562700748444, 0.010908623225986958, 0.10035502165555954, 0.013321476988494396, 0.01724688708782196, -0.01436481811106205, -0.019237292930483818, 0.023766035214066505, 0.017759788781404495, 0.00664488784968853, 0.04606754705309868, 0.020996104925870895, -0.013325090520083904, -0.019613223150372505, 0.061289045959711075, 0.007171506527811289, 0.02034904807806015, -0.05462700501084328, -0.0550837516784668, 0.06406394392251968, -0.03168041259050369, -0.010963059961795807, 0.06006702035665512, 0.08250679820775986, 0.04132673889398575, 0.04271453246474266, -0.005371258594095707, -0.07927784323692322, 0.03158414736390114, 0.007702528033405542, 0.018630631268024445, 0.015896039083600044, -0.011184006929397583, 0.07464997470378876, 0.033781565725803375, -0.006025092676281929, 0.04088541865348816, -0.0956597626209259, -0.06425046175718307, -0.033062320202589035, -0.014006390236318111, 0.06454364955425262, -0.042104873806238174, 0.04781539365649223, 0.05459633469581604, -0.003023798344656825, 0.04130222648382187, 0.027554761618375778, 0.010500255972146988, 0.022429179400205612, -0.02782897837460041, -0.056413643062114716, 0.050531212240457535, 0.037747614085674286, -0.06147373095154762, -0.059455372393131256, 0.015083682723343372, -0.023409081622958183, 0.020436378195881844, 0.02692975476384163, -0.0031313702929764986, 0.04844285920262337, 0.023575857281684875, 0.045170798897743225, -0.026295412331819534, 0.00869532860815525, -0.02617744728922844, 0.06834547221660614, 0.026324264705181122, 0.007369760889559984, -0.013173454441130161, -0.013654065318405628, 0.11161082237958908, 0.05205850675702095, 0.0005403346149250865, -0.05420701578259468, 0.016133075580000877, 0.006586521398276091, -0.0004852388519793749, 0.003829382127150893, -0.038444530218839645, 0.02010762132704258, -0.02716263197362423, -0.006304009351879358, -0.028698137030005455, 0.014959657564759254, -0.03800959140062332, 0.002017080783843994, 0.06259078532457352, -0.014532114379107952, 0.06400284171104431, 0.0014532175846397877, -0.0017215913394466043, -0.022090887650847435, -0.04156558960676193, -0.048006635159254074, 0.028192903846502304, 0.01158742792904377, -0.00928888376802206, 0.046452462673187256, -0.02231542579829693, -0.007475623860955238, -0.017875146120786667, -0.015668213367462158, 0.057856135070323944, 0.05039186775684357, 0.07061184197664261, -0.006809072103351355, 0.04903532937169075, -0.032584309577941895, 0.0037249496672302485, -0.00791244301944971, -0.05117843672633171, -0.05392257124185562, -0.04489303007721901, -0.00907788798213005, 0.022892553359270096, 0.03320647403597832, -0.032815538346767426, 0.03525722771883011, 0.013347660191357136, -0.005168953910470009, -0.021518073976039886, -0.001473578391596675, 0.008030859753489494, 0.014350910671055317, -0.029961228370666504, -0.04342113435268402, 0.04592803493142128, -0.043556421995162964, -0.026002177968621254, -0.006110442336648703, -0.02797788754105568, 0.04173525050282478, -0.04767145961523056, -0.03681172803044319, 0.005424244794994593, 0.04821949079632759, 0.049345482140779495, 0.022067096084356308, -0.004008246585726738, 0.09784946590662003, 0.009742867201566696, 0.023772159591317177, 0.01808968558907509, -0.015207399614155293, 0.042521797120571136, -0.03326457366347313, 0.031443122774362564, 0.03696470335125923, -0.027963435277342796, 0.0018881388241425157, -0.05193556845188141, 0.02663705125451088, -0.03052039071917534, -0.2855277359485626, 0.05654357001185417, -0.02293141931295395, -0.02387321926653385, 0.0022213750053197145, -0.014632703736424446, 0.017451271414756775, -0.027666108682751656, -0.03219163790345192, -0.017238030210137367, -0.013256721198558807, -0.014534923247992992, -0.026572149246931076, 0.023990187793970108, 0.011710516177117825, 0.012655812315642834, 0.0029459332581609488, -0.0510995127260685, -0.0040468680672347546, 0.015024772845208645, -0.0009139188914559782, -0.04259159043431282, 0.011312255635857582, 0.023946652188897133, 0.029475897550582886, 0.03620357811450958, -0.08067800849676132, 0.0050530279986560345, -0.03611372038722038, -0.03040448948740959, 0.029573651030659676, -0.021633459255099297, 0.019735272973775864, -0.0013696003006771207, -0.030439136549830437, -0.00810034479945898, 0.056711554527282715, -0.006464431528002024, 0.0342278853058815, 0.02388381026685238, -0.021320151165127754, -0.04306549206376076, -0.01776060461997986, -0.016488902270793915, 0.0793767124414444, -0.01287891250103712, -0.09377724677324295, -0.003749953117221594, -0.008365688845515251, 0.05760030448436737, -0.029965804889798164, -0.04834335297346115, -0.015415063127875328, 0.04442496970295906, -0.009266301058232784, -0.03435287997126579, -0.013091031461954117, -0.016796758398413658, -0.06769416481256485, -0.05289041996002197, -0.02418053336441517, -0.05192021653056145, -0.004651968367397785, -0.051327891647815704, -0.023985398933291435, -0.0658831000328064, -0.07383447140455246, -0.016529465094208717, 0.05694101005792618, 0.02249489352107048, -0.01754518784582615, 0.02824893593788147, -0.025208787992596626, -0.1033298596739769, -0.042392682284116745, -0.012617955915629864, -0.004610121250152588, -0.0003232266171835363, -0.014352019876241684, 0.030049271881580353, -0.043475545942783356, -0.04456235095858574, 0.0041472469456493855, 0.027225391939282417, 0.03512689843773842, -0.002057059668004513, 0.007963736541569233, -0.020081661641597748, -0.03612038865685463, -0.004232886712998152, 0.059983622282743454, -0.029570447281003, -0.04631184786558151, -0.0036042300052940845, 0.011717721819877625, 0.04358678311109543, 0.00913204625248909, -0.01842423900961876, 0.023847458884119987, 0.05093475058674812, 0.0417197123169899, -0.022733565419912338, 0.011816329322755337, -0.007743107154965401, -0.029022233560681343, -0.008883163332939148, -0.03671200945973396, 0.03473444655537605, 0.02983769401907921, 0.010264757089316845, -0.02589663490653038, -0.03377658501267433, 0.012589012272655964, -0.05795392021536827, -0.03861092031002045, -0.015329391695559025, 0.020056789740920067, 0.014615712687373161, 0.04421140253543854, -0.01984606683254242, -0.057609811425209045, 0.021095626056194305, 0.018173882737755775, -0.015789175406098366, -0.0627397820353508, -0.036120619624853134, -0.027912724763154984, -0.03961413726210594, 0.015395428985357285, 0.015254832804203033, -0.02916843444108963, 0.03464130312204361, 0.005183099303394556, -0.0340612456202507, 0.048726554960012436, -0.0011238377774134278, -0.018555667251348495, -0.033589836210012436, 0.014354158192873001, 0.02692043036222458, -0.005123765207827091, -0.011316954158246517, -0.009582809172570705, 0.054881591349840164, 0.03645750880241394, 0.01987602189183235, -0.000039887483580969274, 0.007412854582071304, 0.0058996970765292645, 0.0000015125608570087934, -0.01229134202003479, -0.0455341711640358, 0.029546670615673065, -0.0369931235909462, -0.018730854615569115, -0.008374090306460857, 0.06167334318161011, -0.009049535728991032, -0.020484559237957, -0.03220566362142563, 0.00837438553571701, -0.08084249496459961, 0.0028472566045820713, -0.010907525196671486, -0.0016413534758612514, 0.04668937623500824, -0.024893619120121002, 0.023368021473288536, -0.0247291661798954, -0.02526850439608097, -0.005221755243837833, 0.012030133046209812, -0.04198068380355835, 0.006650358438491821, 0.012724249623715878, -0.018790479749441147, 0.007486493792384863, 0.034515418112277985, 0.024347305297851562, -0.0041422597132623196, -0.019413575530052185, -0.006728933658450842, 0.023850679397583008, 0.02980734407901764, 0.05733237788081169, 0.03407109156250954, -0.013389823958277702, 0.00243310141377151, -0.009886170737445354, -0.00960928201675415, -0.00848793238401413, -0.006111153867095709, -0.02043050527572632, -0.013463626615703106, -0.02669794298708439, -0.07959385216236115, 0.05251975730061531, 0.004557231441140175, -0.003527224762365222, 0.007769513409584761, 0.03860284388065338, -0.012076122686266899, -0.03246264159679413, 0.0282757505774498, 0.04675323888659477, -0.05894077941775322, -0.022793158888816833, -0.01253976859152317, -0.013626844622194767, -0.001603198703378439, 0.021085767075419426, -0.07369107753038406, -0.02928917109966278, 0.001883692224510014, 0.0018292778404429555, -0.022005842998623848, -0.042728934437036514, 0.0010020891204476357, 0.03442559391260147, 0.003252419177442789, 0.04229145869612694, 0.00914005097001791, 0.0011351320426911116, -0.012091239914298058, -0.0005145519971847534, 0.038347624242305756, -0.026388391852378845, -0.011802774854004383, -0.01419251598417759, -0.009621622040867805, 0.003576524555683136, -0.03360237926244736, 0.038547445088624954, -0.004183244425803423, -0.03346211835741997, -0.012556266039609909, -0.07098333537578583, 0.023870276287198067, 0.004600573796778917, 0.0613710917532444, -0.0007347175851464272, 0.0011523730354383588, -0.025913311168551445, 0.0033534460235387087, -0.01938939094543457, 0.018844710662961006, -0.010739925317466259, 0.0016198476077988744, 0.007921435870230198, 0.014431782066822052, 0.009204324334859848, 0.0301662664860487, -0.020855644717812538, -0.023025110363960266, 0.039961911737918854, -0.045171260833740234, -0.037222255021333694, -0.02041422575712204, -0.07721500098705292, -0.0017141541466116905, 0.01186392642557621, 0.011889888904988766, -0.04234816133975983, 0.047927506268024445, 0.0432194359600544, 0.018832368776202202, 0.026297342032194138, -0.017669595777988434, 0.024971304461359978, -0.024628998711705208, -0.012268196791410446, -0.08758431673049927, -0.0019687223248183727, 0.04670164734125137, -0.003372188890352845, 0.005347412545233965, -0.005882996134459972, -0.018391991034150124, 0.019389742985367775, -0.055376920849084854, -0.009222421795129776, 0.04028473049402237, -0.0319349467754364, 0.014414650388062, 0.022838514298200607, -0.06245725601911545, 0.0061258417554199696, 0.07150094956159592, -0.03896629065275192, -0.019783854484558105, -0.03868117183446884, 0.05264071747660637, -0.04207085072994232, 0.04327135160565376, -0.030310794711112976, -0.01658933237195015, 0.06664250791072845, 0.020741011947393417, 0.009614474140107632, 0.06371219456195831, -0.017035378143191338, 0.02901238389313221, 0.040982384234666824, -0.01420755684375763, 0.015575576573610306, 0.043045900762081146, -0.037041109055280685, -0.06435894966125488, 0.04381726309657097, 0.015426456928253174, -0.020571956411004066, -0.047724317759275436, 0.08964815735816956, -0.005496600177139044, -0.05138758197426796, -0.03860776126384735, 0.028494546189904213, -0.04859793186187744, -0.004668527282774448, -0.0426759198307991, 0.0008906116709113121, -0.029247010126709938, 0.056799277663230896, -0.013413537293672562, 0.03789878636598587, 0.06866007298231125, 0.01452543493360281, 0.0011154341045767069, 0.016044046729803085, 0.07657261937856674, 0.09226370602846146, 0.06338252872228622, 0.030120650306344032, 0.052039116621017456, -0.02667940966784954, -0.038645029067993164, -0.02786659263074398, -0.04012777656316757, -0.031929414719343185, 0.010991173796355724, 0.0036128817591816187, 0.0726916715502739, -0.006323390640318394, 0.07442107796669006, -0.0012210451532155275, 0.003056718735024333, 0.018649781122803688, -0.006817573215812445, 0.05956091359257698, 0.05208968743681908, 0.01361793465912342, 0.019847916439175606, -0.015407840721309185, -0.035118814557790756, 0.024030786007642746, -0.02266225405037403, -0.035217855125665665, 0.012670613825321198, -0.024509180337190628, 0.01778455637395382, 0.01192482654005289, 0.056302186101675034, 0.08555039018392563, -0.016644254326820374, 0.0053266058675944805, 0.00850593950599432, -0.002605556510388851, -0.007571376394480467, 0.017469163984060287, -0.008298363536596298, -0.019818125292658806, -0.020963484421372414, -0.05212947353720665, -0.028283603489398956, -0.013391946442425251, -0.07943884283304214, 0.01569882594048977, -0.0235578715801239, -0.00577067444100976, 0.0004875723388977349, 0.003894462250173092, -0.024776745587587357, -0.05173198878765106, -0.03474443778395653, -0.0395984873175621, -0.07144846022129059, -0.016186721622943878, 0.004445611033588648, -0.0034847313072532415, -0.025347163900732994, 0.002797260880470276, -0.032643795013427734, 0.0087812514975667, 0.041845887899398804, -0.05108500272035599, 0.004240488167852163, 0.013280286453664303, -0.011249369941651821, 0.03943358361721039, 0.00025542572257108986, 0.03491434454917908, 0.006818337831646204, 0.014043860137462616, -0.021798212081193924, 0.008049217984080315, 0.0519842728972435, 0.012606446631252766, -0.006710598710924387, -0.09620192646980286, 0.016815021634101868, 0.03543234243988991, -0.009199227206408978, -0.07264751195907593, 0.02299198880791664, 0.02361466735601425, 0.014843137003481388, 0.04437745362520218, 0.005486611742526293, -0.023742247372865677, -0.025448305532336235, -0.0008804738754406571, -0.0022134219761937857, 0.026561066508293152, 0.033293917775154114, -0.026528457179665565, 0.05400194227695465, 0.045140352100133896, -0.04441289231181145, -0.026259075850248337, -0.036670565605163574, -0.0004937362391501665, 0.0012540840543806553, -0.027183672413229942, -0.037636563181877136, -0.05012967810034752, -0.06946125626564026, -0.04602901265025139, 0.02114788629114628, -0.026834450662136078, -0.016271986067295074, -0.0009327839943580329, 0.0393185093998909, -0.013438500463962555, 0.0416744239628315, -0.03406451269984245, 0.03897387534379959, -0.010219118557870388, -0.023238522931933403, -0.049461543560028076, -0.0020326555240899324, -0.0041638691909611225, -0.003601917065680027, 0.006606644950807095, -0.05490957945585251, -0.009436923079192638, -0.032206855714321136, 0.025072935968637466, 0.012027187272906303, 0.009000388905405998, 0.013260905630886555 ]
[ -0.06642372161149979, -0.02631470561027527, -0.05666916444897652, -0.023203207179903984, 0.038559380918741226, -0.02985289879143238, -0.0164808202534914, 0.006414257455617189, 0.019858360290527344, -0.018197370693087578, 0.019931400194764137, -0.030699431896209717, 0.02873000130057335, 0.006577373016625643, 0.0918525904417038, -0.007999072782695293, -0.014166672714054585, -0.07157298922538757, -0.026369737461209297, 0.05165346339344978, -0.029317140579223633, -0.028907589614391327, -0.029620284214615822, -0.037293270230293274, 0.005558966193348169, 0.05157138407230377, 0.053255096077919006, -0.0512494258582592, -0.02449112758040428, -0.20052975416183472, -0.01263926737010479, 0.020885394886136055, 0.03267841041088104, -0.0026698249857872725, 0.019475601613521576, 0.04554678127169609, 0.0453513003885746, -0.007198355160653591, -0.002087560249492526, 0.040863703936338425, 0.01917516253888607, 0.0004439240146894008, -0.03633483871817589, -0.019200991839170456, 0.05005773529410362, -0.013136589899659157, -0.01253911480307579, -0.004708069376647472, -0.04132711887359619, 0.01380219403654337, -0.04089806228876114, -0.02410777285695076, 0.008215034380555153, -0.012355448678135872, 0.02957947552204132, 0.0640331581234932, 0.04735980182886124, 0.06734580546617508, 0.014355465769767761, 0.04470697417855263, 0.0026552858762443066, 0.007090200670063496, -0.12360475212335587, 0.09203054010868073, 0.01682157814502716, 0.008110307157039642, -0.0445714071393013, -0.0037693341728299856, -0.007518874481320381, 0.076870396733284, 0.040121108293533325, -0.013249964453279972, -0.035697635263204575, 0.06874972581863403, 0.016040505841374397, 0.013731429353356361, -0.03178045526146889, 0.007522547151893377, 0.03708217665553093, -0.024766312912106514, -0.05227280035614967, 0.023696234449744225, -0.03714641556143761, -0.012864293530583382, -0.020091714337468147, 0.026244649663567543, -0.02063385769724846, 0.039235617965459824, 0.010880894027650356, 0.016812866553664207, 0.03211921080946922, 0.005735811777412891, 0.031144484877586365, 0.0209177378565073, -0.08485861867666245, -0.013230854645371437, 0.0067129600793123245, 0.03899835795164108, -0.01219247467815876, 0.39351779222488403, 0.007777462247759104, 0.008624228648841381, 0.024902913719415665, 0.06160622835159302, -0.008103164844214916, -0.030965421348810196, 0.01006366778165102, -0.07394777983427048, 0.03593841567635536, -0.022690623998641968, -0.020362798124551773, -0.04184361919760704, 0.05788181349635124, -0.0737338587641716, -0.0025355354882776737, 0.023114461451768875, 0.07047947496175766, 0.021665051579475403, -0.017498139292001724, 0.02204272709786892, 0.0009645440732128918, -0.007201943546533585, 0.02984805591404438, 0.011907558888196945, 0.026357533410191536, 0.02201971784234047, 0.016736069694161415, 0.0399036630988121, 0.020111555233597755, 0.005267362110316753, 0.06918884068727493, 0.004094250500202179, -0.07313205301761627, 0.024859372526407242, 0.0012886537006124854, 0.0013897409662604332, 0.004559795372188091, -0.036668092012405396, -0.0005880057578906417, 0.026699790731072426, -0.011107907630503178, -0.013659183867275715, 0.03825046494603157, 0.004880748223513365, -0.03832578286528587, 0.13397647440433502, -0.038219574838876724, -0.03123297356069088, -0.024080725386738777, -0.034318190068006516, -0.030149618163704872, 0.02843194641172886, 0.007135846186429262, -0.06680083274841309, -0.007955255918204784, 0.016311272978782654, 0.0850999504327774, -0.016724996268749237, -0.09806312620639801, -0.010504155419766903, -0.0027137689758092165, -0.04816513881087303, -0.03421561047434807, 0.09601592272520065, 0.02722254768013954, -0.13205185532569885, 0.006696463096886873, 0.018081821501255035, 0.001973546575754881, -0.06942819058895111, 0.00653052655979991, 0.0032111727632582188, -0.020979134365916252, 0.0024795960634946823, 0.06372211128473282, -0.018047044053673744, -0.04089973866939545, -0.01180819608271122, 0.050391439348459244, 0.02050148695707321, -0.019641125574707985, -0.0003962300543207675, -0.043749429285526276, 0.01438420545309782, -0.05911833047866821, -0.05581830069422722, -0.06560755521059036, -0.007509891875088215, -0.005774711258709431, -0.016285089775919914, -0.03254610672593117, -0.041546620428562164, -0.08422479033470154, 0.0689409002661705, -0.05177447944879532, -0.019410742446780205, 0.0035598117392510176, -0.011697632260620594, -0.008836220018565655, -0.03536762297153473, -0.009433046914637089, 0.040222082287073135, -0.031133074313402176, 0.029950784519314766, -0.06400442868471146, 0.024465635418891907, 0.046387240290641785, -0.06406629085540771, 0.09415819495916367, 0.0486978255212307, -0.04330149665474892, 0.016329100355505943, -0.041158828884363174, 0.007449380122125149, 0.019971435889601707, -0.0005761890206485987, 0.018656035885214806, -0.01925567351281643, 0.00908601563423872, 0.02583972178399563, -0.028452975675463676, 0.0056474823504686356, -0.019708147272467613, -0.35756951570510864, -0.0343068391084671, -0.01723705604672432, 0.015264923684298992, -0.004062006715685129, -0.049750421196222305, 0.02519974112510681, -0.011706322431564331, -0.015302441082894802, 0.047901492565870285, 0.10181541740894318, 0.011438681744039059, -0.012564927339553833, -0.07292000949382782, 0.00014964396541472524, 0.025023479014635086, -0.024416133761405945, 0.009365243837237358, -0.028202243149280548, 0.024654623121023178, 0.0007575460476800799, -0.05405822768807411, -0.004125016275793314, -0.07052655518054962, -0.019303645938634872, -0.009936117567121983, 0.12484552711248398, 0.026247525587677956, 0.0031197592616081238, -0.05175022408366203, 0.04330850765109062, 0.015784017741680145, -0.040813151746988297, -0.07836657017469406, 0.015911417081952095, -0.023983964696526527, 0.038196954876184464, 0.00556963961571455, 0.008346375077962875, -0.004680137615650892, -0.055696725845336914, 0.0004678254190366715, -0.05410744622349739, -0.058850012719631195, -0.030782710760831833, 0.007983780466020107, -0.033052440732717514, -0.02091149054467678, -0.015672551468014717, 0.08324956893920898, 0.027874141931533813, 0.0022088291589170694, 0.006014880258589983, 0.028676560148596764, 0.026089536026120186, 0.0021298665087670088, -0.0735965147614479, -0.03265107050538063, 0.013293784111738205, 0.02091134339570999, 0.020958278328180313, 0.05679002404212952, 0.025819284841418266, -0.09436699002981186, 0.009350694715976715, 0.0037742294371128082, -0.008520769886672497, 0.008543848991394043, 0.018385736271739006, -0.03438882157206535, -0.05366570129990578, 0.08255664259195328, 0.001263761194422841, 0.020472457632422447, 0.04600175842642784, 0.041628822684288025, -0.040203485637903214, -0.0007445767987519503, 0.0448199063539505, 0.02856343798339367, 0.034937214106321335, -0.015656214207410812, 0.0715453177690506, -0.010878881439566612, -0.030724814161658287, 0.04226871207356453, 0.015118889510631561, -0.028364749625325203, 0.0624736063182354, 0.020294366404414177, -0.0452776700258255, 0.0016093733720481396, -0.03777797147631645, -0.019686227664351463, 0.04789218679070473, -0.026789186522364616, -0.27870994806289673, 0.05358533933758736, 0.029294803738594055, 0.05387730523943901, 0.03291081264615059, 0.005784220993518829, 0.02065441757440567, -0.04775188863277435, -0.031181013211607933, -0.0005838221404701471, 0.04885905981063843, 0.04570206254720688, -0.01124491821974516, -0.021697118878364563, 0.03194202482700348, 0.011214722879230976, 0.01756645366549492, 0.010670358315110207, 0.004094806965440512, 0.00501745892688632, 0.040800366550683975, -0.007691980805248022, 0.19243398308753967, 0.028324399143457413, 0.004025117494165897, 0.03133954480290413, -0.0269696693867445, -0.0010105213150382042, 0.05089475214481354, -0.007893846370279789, -0.03882298618555069, 0.005553733091801405, 0.01311936043202877, 0.03548029065132141, 0.027526158839464188, -0.0385933518409729, 0.0026612619403749704, 0.017372189089655876, 0.026923591271042824, -0.03386937081813812, -0.004389973822981119, 0.0264388769865036, -0.0026397164911031723, 0.03234187141060829, 0.06577929854393005, -0.003243398619815707, 0.03319935500621796, -0.025714879855513573, -0.02563217282295227, -0.01159730926156044, -0.01836092211306095, -0.06317763775587082, -0.020988360047340393, -0.0013823542976751924, 0.00013101370132062584, 0.06501839309930801, 0.028015119954943657, -0.03249836713075638, 0.02316182292997837, 0.018301688134670258, -0.010166541673243046, -0.017803600057959557, 0.10150428861379623, -0.04094979912042618, -0.006010440178215504 ]
[ 0.028639912605285645, 0.05152670666575432, 0.019209783524274826, 0.010123270563781261, 0.014484413899481297, 0.004828384146094322, -0.00929944682866335, -0.0005749614792875946, 0.0005061547853983939, -0.01193378958851099, -0.027285022661089897, 0.011746502481400967, 0.04392018914222717, 0.017321597784757614, 0.027545522898435593, -0.001360357622615993, -0.005573190748691559, 0.0047917147167027, 0.033282335847616196, 0.010681316256523132, -0.055168889462947845, -0.017322104424238205, 0.030912352725863457, -0.03394124656915665, -0.025528697296977043, 0.028455419465899467, 0.003478466998785734, -0.005754235200583935, 0.029011821374297142, -0.09445347636938095, -0.012761143036186695, -0.01732098124921322, -0.011544782668352127, 0.011887914501130581, -0.019162334501743317, 0.010785742662847042, 0.0011247994843870401, 0.022842617705464363, -0.0059090531431138515, 0.02590562216937542, 0.007342553697526455, -0.003446193877607584, -0.015203454531729221, -0.00516915088519454, 0.03735224902629852, 0.0027754383627325296, -0.04102533683180809, -0.029092902317643166, -0.0051971981301903725, -0.03537459671497345, -0.020683521404862404, -0.01331715751439333, -0.010432463139295578, 0.0021798675879836082, 0.00908543262630701, 0.020824190229177475, -0.07883147150278091, -0.03015795908868313, -0.01760050840675831, -0.03735480085015297, 0.020467711612582207, 0.0013759495923295617, -0.055037569254636765, -0.025003980845212936, 0.007364735938608646, -0.013893960043787956, -0.0001246644533239305, 0.029687484726309776, 0.02194674126803875, 0.012509994208812714, -0.018267696723341942, 0.058190394192934036, -0.06288176029920578, -0.022588003426790237, -0.018626712262630463, -0.002362205646932125, 0.015622942708432674, -0.04281890019774437, -0.0012035523541271687, -0.030762961134314537, -0.020049231126904488, -0.016615567728877068, -0.019401203840970993, 0.01412027794867754, 0.0043073794804513454, -0.03641630709171295, -0.0027680997736752033, -0.004970816895365715, 0.000854772690217942, 0.01851019822061062, -0.030476048588752747, 0.029264532029628754, -0.00017170723003800958, -0.008659174665808678, -0.09656194597482681, 0.030983736738562584, 0.0042244442738592625, 0.003240295685827732, 0.017093170434236526, 0.8471320271492004, 0.02433939464390278, -0.0005938030662946403, 0.0003991801058873534, 0.022685471922159195, -0.00006075396595406346, 0.013721399009227753, -0.015434984117746353, -0.005200083367526531, -0.012953798286616802, 0.01848153956234455, -0.019323421642184258, 0.007911957800388336, 0.019183272495865822, 0.022422045469284058, 0.006560217123478651, 0.06932281702756882, 0.012624998576939106, 0.03613601252436638, -0.014466073364019394, 0.02659621834754944, -0.003521042875945568, 0.03006308153271675, -0.005126230418682098, -0.006630093790590763, -0.011697784066200256, -0.1926768273115158, 0.0032332027330994606, -6.46499117749211e-33, 0.08293416351079941, -0.0041305990889668465, 0.048481617122888565, -0.009483891539275646, 0.004211113788187504, 0.010854708962142467, -0.014929431490600109, -0.032237838953733444, -0.031012441962957382, -0.023342089727520943, -0.011980840936303139, 0.013801109977066517, 0.014460825361311436, -0.03764840215444565, 0.021970482543110847, 0.00022844842169433832, 0.008369010873138905, 0.02861291542649269, -0.014938888140022755, 0.0047941929660737514, -0.02536877617239952, 0.020667528733611107, -0.02518283948302269, 0.029644353315234184, 0.010823422111570835, 0.046089496463537216, 0.013499761931598186, 0.018195977434515953, 0.00403578532859683, -0.050904691219329834, -0.03300441801548004, 0.026142016053199768, -0.003085337346419692, -0.008870107121765614, 0.022597571834921837, -0.05293375253677368, -0.02491140551865101, -0.0023041253443807364, -0.04207509011030197, -0.0461142472922802, -0.01871020346879959, -0.017613865435123444, -0.03250596299767494, -0.027357401326298714, -0.04679355397820473, -0.0023864638060331345, -0.009331930428743362, 0.0014478514203801751, -0.010427570901811123, 0.010338147170841694, 0.006281396374106407, 0.001057150075212121, -0.021293997764587402, -0.0027659162878990173, -0.041467051953077316, 0.0036507914774119854, 0.001978083746507764, 0.017878621816635132, -0.02635253220796585, 0.01796577125787735, 0.03442172706127167, -0.016081800684332848, -0.01064612902700901, 0.07348155230283737, 0.012592485174536705, 0.018626688048243523, -0.012706047855317593, -0.03675179183483124, 0.0057117086835205555, 0.01641811989247799, -0.050453122705221176, 0.0873076319694519, -0.011158999055624008, -0.02191038243472576, 0.04196637496352196, -0.057771146297454834, 0.008189165964722633, -0.0085877301171422, 0.011316207237541676, 0.0646367073059082, -0.019815288484096527, -0.01829230599105358, 0.008487324230372906, -0.030921222642064095, 0.002296140883117914, -0.01622414030134678, 0.03088138997554779, 0.011786818504333496, 0.016999434679746628, 0.02004304900765419, 0.026429176330566406, 0.018365008756518364, 0.003468228504061699, -0.006989771034568548, -0.0268775075674057, 6.559569248907363e-33, -0.0053235734812915325, -0.004596341401338577, -0.006852434482425451, 0.005726487375795841, 0.036729369312524796, -0.0028456549625843763, 0.04377153515815735, 0.015860941261053085, -0.02182035706937313, 0.03198559209704399, -0.01645439676940441, -0.017138423398137093, 0.015145886689424515, 0.0028213500045239925, 0.05129052326083183, 0.00444213580340147, 0.0310831181704998, -0.04063136875629425, -0.008941405452787876, 0.010057366453111172, 0.0030830535106360912, 0.008954256772994995, 0.005151140969246626, 0.009909169748425484, 0.024531330913305283, 0.023435035720467567, 0.025681279599666595, -0.0017731784610077739, -0.023932751268148422, -0.014561142772436142, 0.002809113124385476, -0.04973679408431053, -0.012478351593017578, -0.00745413126423955, 0.01600774936378002, 0.020743491128087044, -0.00460214214399457, -0.009256361052393913, -0.011047269217669964, -0.006686247885227203, 0.009424971416592598, 0.02447931282222271, -0.040894459933042526, 0.06610091030597687, 0.008383450098335743, 0.00036991899833083153, -0.0038359863683581352, 0.008951202034950256, 0.016719402745366096, -0.003362577874213457, -0.014376195147633553, -0.0037838732823729515, -0.029431961476802826, 0.007558642420917749, 0.02521982416510582, -0.03794470801949501, -0.017042262479662895, 0.03219875320792198, 0.010904383845627308, -0.0006592043791897595, -0.01723792776465416, -0.01919306069612503, -0.02226988784968853, 0.04621917009353638, 0.005622928962111473, -0.0037458324804902077, -0.02064991556107998, 0.009432516992092133, -0.008410654962062836, -0.003007763298228383, -0.003929506056010723, -0.01944613642990589, -0.015389489009976387, 0.02864140085875988, 0.035492490977048874, -0.009590646252036095, -0.021898267790675163, 0.014459801837801933, 0.0043702200055122375, 0.008009742945432663, 0.01675303466618061, 0.010486413724720478, 0.005402724724262953, 0.023183174431324005, 0.010143441148102283, 0.031676895916461945, -0.021152392029762268, 0.02962297946214676, -0.008731627836823463, -0.008391864597797394, 0.026291729882359505, -0.021955249831080437, 0.0018029470229521394, 0.048435766249895096, -0.025177646428346634, -1.2599353560460713e-8, -0.03334750235080719, -0.008970983326435089, -0.022642070427536964, -0.002881396794691682, 0.0236380435526371, 0.0003835669776890427, 0.03032096102833748, -0.017076458781957626, -0.019914645701646805, 0.006156948395073414, 0.013523563742637634, -0.017421573400497437, -0.002042628824710846, 0.007312345784157515, 0.031672365963459015, -0.03013753332197666, 0.0037178159691393375, -0.007166712079197168, 0.01862199231982231, 0.009240523912012577, 0.01819540187716484, 0.021305665373802185, -0.03207259252667427, 0.010456514544785023, -0.012563814409077168, -0.00636622030287981, 0.015321049839258194, -0.06123918667435646, 0.010533865541219711, -0.03724213317036629, 0.005778676364570856, -0.03154905512928963, -0.002976970514282584, 0.022568797692656517, -0.033096034079790115, -0.042677246034145355, 0.015442348085343838, 0.00914833601564169, 0.025852661579847336, 0.03880320489406586, -0.0060773021541535854, 0.010331299155950546, -0.00971332285553217, -0.029831498861312866, -0.022537700831890106, 0.027732746675610542, -0.025280965492129326, -0.00963120348751545, 0.01468521449714899, -0.023867394775152206, -0.016438771039247513, -0.03258868306875229, 0.027585437521338463, 0.008617578074336052, 0.031518951058387756, 0.0038691742811352015, 0.033116672188043594, -0.0428306981921196, 0.0023947462905198336, -0.031511761248111725, 0.015744926407933235, 0.0015598228201270103, -0.03644714504480362, -0.011906024068593979 ]
neo4j-cypher-separation-of-concerns
https://markhneedham.com/blog/2014/06/27/neo4j-cypher-separation-of-concerns
false
2014-06-29 02:56:53
Neo4j's Cypher vs Clojure - Group by and Sorting
[ "clojure", "neo4j", "cypher" ]
[ "Clojure", "neo4j" ]
One of the points that I emphasised during my talk on https://skillsmatter.com/skillscasts/5385-analysing-london-s-nosql-meetups-using-clojure-neocons-luminus[building Neo4j backed applications using Clojure] last week is understanding when to use Cypher to solve a problem and when to use the programming language. A good example of this is in the meetup application I've been working on. I have a collection of events and want to display past events in descending order and future events in ascending order. First let's create some future and some past events based on the current timestamp of 1404006050535: [source,cypher] ---- CREATE (event1:Event {name: "Future Event 1", timestamp: 1414002772427 }) CREATE (event2:Event {name: "Future Event 2", timestamp: 1424002772427 }) CREATE (event3:Event {name: "Future Event 3", timestamp: 1416002772427 }) CREATE (event4:Event {name: "Past Event 1", timestamp: 1403002772427 }) CREATE (event5:Event {name: "Past Event 2", timestamp: 1402002772427 }) ---- If we return all the events we see the following: [source,cypher] ---- $ MATCH (e:Event) RETURN e; ==> +------------------------------------------------------------+ ==> | e | ==> +------------------------------------------------------------+ ==> | Node[15414]{name:"Future Event 1",timestamp:1414002772427} | ==> | Node[15415]{name:"Future Event 2",timestamp:1424002772427} | ==> | Node[15416]{name:"Future Event 3",timestamp:1416002772427} | ==> | Node[15417]{name:"Past Event 1",timestamp:1403002772427} | ==> | Node[15418]{name:"Past Event 2",timestamp:1402002772427} | ==> +------------------------------------------------------------+ ==> 5 rows ==> 13 ms ---- We can achieve the desired grouping and sorting with the following cypher query: [source,lisp] ---- (def sorted-query "MATCH (e:Event) WITH COLLECT(e) AS events WITH [e IN events WHERE e.timestamp <= timestamp()] AS pastEvents, [e IN events WHERE e.timestamp > timestamp()] AS futureEvents UNWIND pastEvents AS pastEvent WITH pastEvent, futureEvents ORDER BY pastEvent.timestamp DESC WITH COLLECT(pastEvent) as orderedPastEvents, futureEvents UNWIND futureEvents AS futureEvent WITH futureEvent, orderedPastEvents ORDER BY futureEvent.timestamp RETURN COLLECT(futureEvent) AS orderedFutureEvents, orderedPastEvents") ---- We then use the following function to call through to the Neo4j server using the excellent https://github.com/michaelklishin/neocons[neocons] library: [source,lisp] ---- (ns neo4j-meetup.db (:require [clojure.walk :as walk]) (:require [clojurewerkz.neocons.rest.cypher :as cy]) (:require [clojurewerkz.neocons.rest :as nr])) (def NEO4J_HOST "http://localhost:7521/db/data/") (defn cypher ([query] (cypher query {})) ([query params] (let [conn (nr/connect! NEO4J_HOST)] (->> (cy/tquery query params) walk/keywordize-keys)))) ---- We call that function and grab the first row since we know there won't be any other rows in the result: [source,lisp] ---- (def query-result (->> ( db/cypher sorted-query) first)) ---- Now we need to extract the past and future collections so that we can display them on the page which we can do like so: [source,lisp] ---- > (map #(% :data) (query-result :orderedPastEvents)) ({:timestamp 1403002772427, :name "Past Event 1"} {:timestamp 1402002772427, :name "Past Event 2"}) > (map #(% :data) (query-result :orderedFutureEvents)) ({:timestamp 1414002772427, :name "Future Event 1"} {:timestamp 1416002772427, :name "Future Event 3"} {:timestamp 1424002772427, :name "Future Event 2"}) ---- An alternative approach is to return the events from cypher and then handle the grouping and sorting in clojure. In that case our query is much simpler: [source,lisp] ---- (def unsorted-query "MATCH (e:Event) RETURN e") ---- We'll use the https://github.com/clj-time/clj-time[clj-time] library to determine the current time: [source,lisp] ---- (def now (clj-time.coerce/to-long (clj-time.core/now))) ---- First let's split the events into past and future: [source,lisp] ---- > (def grouped-by-events (->> (db/cypher unsorted-query) (map #(->> % :e :data)) (group-by #(> (->> % :timestamp) now)))) > grouped-by-events {true [{:timestamp 1414002772427, :name "Future Event 1"} {:timestamp 1424002772427, :name "Future Event 2"} {:timestamp 1416002772427, :name "Future Event 3"}], false [{:timestamp 1403002772427, :name "Past Event 1"} {:timestamp 1402002772427, :name "Past Event 2"}]} ---- And finally we sort appropriately using these functions: [source,lisp] ---- (defn time-descending [row] (* -1 (->> row :timestamp))) (defn time-ascending [row] (->> row :timestamp)) ---- [source,lisp] ---- > (sort-by time-descending (get grouped-by-events false)) ({:timestamp 1403002772427, :name "Past Event 1"} {:timestamp 1402002772427, :name "Past Event 2"}) > (sort-by time-ascending (get grouped-by-events true)) ({:timestamp 1414002772427, :name "Future Event 1"} {:timestamp 1416002772427, :name "Future Event 3"} {:timestamp 1424002772427, :name "Future Event 2"}) ---- I used Clojure to do the sorting and grouping in my project because the query to get the events was a bit more complicated and became very difficult to read with the sorting and grouping mixed in. Unfortunately cypher doesn't provide an easy way to sort within a collection so we need our sorting in the row context and then collect the elements back again afterwards.
null
null
[ 0.01363515667617321, -0.018375348299741745, -0.02632276713848114, 0.020199302583932877, 0.09117814153432846, -0.005087611265480518, 0.002462124451994896, 0.03842836990952492, 0.004441424272954464, -0.015283988788723946, 0.0030471691861748695, 0.006719677243381739, -0.0691879540681839, 0.03357676789164543, 0.0020762388594448566, 0.06338581442832947, 0.06278615444898605, -0.00633580656722188, 0.02418467216193676, -0.017506783828139305, 0.02562721259891987, 0.040825530886650085, -0.00008434216579189524, 0.025133833289146423, 0.048159319907426834, 0.009087463840842247, -0.016044078394770622, -0.011755981482565403, -0.05707855150103569, 0.01636943407356739, 0.03832850605249405, 0.001344032702036202, -0.012114929966628551, -0.013842388987541199, 0.008261900395154953, -0.01585925742983818, -0.016144834458827972, -0.000557326537091285, -0.023215822875499725, 0.0019569415599107742, -0.06143486872315407, 0.005752842407673597, -0.018154975026845932, 0.00439240038394928, -0.034109197556972504, 0.01138376072049141, -0.04748741537332535, 0.048039354383945465, 0.009870372712612152, 0.018145384266972542, -0.07011958211660385, 0.005759413354098797, 0.009365474805235863, 0.030295126140117645, -0.006406437139958143, 0.021121086552739143, 0.015647603198885918, -0.08289740979671478, 0.04198519513010979, -0.007525246124714613, 0.009301487356424332, -0.00015503358736168593, 0.007849578745663166, 0.028224756941199303, 0.016754038631916046, -0.033203985542058945, -0.001238004770129919, 0.043873269110918045, -0.05669114366173744, -0.01626952923834324, -0.009651146829128265, 0.051419030874967575, -0.005067273508757353, 0.0018375206273049116, 0.008809437043964863, -0.03803247958421707, -0.0048288567923009396, 0.05124816298484802, 0.024425102397799492, 0.06892593204975128, -0.028869930654764175, 0.013052121736109257, 0.031621355563402176, 0.02189662493765354, 0.01475917175412178, -0.027813123539090157, -0.043811697512865067, -0.018951736390590668, -0.0468558743596077, 0.03381624072790146, 0.03660039231181145, -0.05077288672327995, 0.00521213049069047, -0.0016920185880735517, -0.013515999540686607, 0.02297644130885601, 0.0028030581306666136, 0.005552415736019611, 0.0024994087871164083, -0.008540432900190353, -0.029553404077887535, -0.03698350861668587, -0.0019278157269582152, -0.003578090574592352, -0.07953584939241409, -0.03388501703739166, -0.0505235381424427, -0.02394074946641922, 0.015224069356918335, -0.01420974638313055, -0.03890910744667053, 0.005600116215646267, 0.011791743338108063, 0.025419199839234352, -0.06699763983488083, 0.05921247974038124, 0.02398529462516308, -0.026309560984373093, -0.006455389317125082, -0.000716781709343195, 0.04236295819282532, 0.014385641552507877, 0.0023745750077068806, 0.08425594121217728, -0.02373523823916912, 0.02720414288341999, 0.0119665851816535, 0.05649534985423088, -0.011100437492132187, -0.058483581990003586, -0.028443800285458565, 0.0675593838095665, -0.013732757419347763, -0.01293009240180254, -0.006702471990138292, -0.03215634450316429, -0.03021225705742836, 0.016897661611437798, 0.05625429376959801, 0.04957525059580803, 0.0329502709209919, -0.04919715225696564, 0.025921760126948357, -0.004625202622264624, 0.0395229309797287, 0.03703374043107033, -0.03678184002637863, -0.02504505217075348, -0.014592954888939857, 0.016234315931797028, 0.0198030024766922, 0.021200286224484444, 0.0374501496553421, -0.027765685692429543, -0.0014167211484164, 0.10501985251903534, 0.013859455473721027, 0.039408888667821884, -0.03581568971276283, -0.0043734279461205006, 0.029673684388399124, 0.023408448323607445, 0.001333653344772756, 0.06114823743700981, 0.018248802050948143, -0.010916002094745636, -0.012997020035982132, 0.06570141762495041, -0.016443368047475815, 0.017204362899065018, -0.04829179868102074, -0.04620719328522682, 0.06499899178743362, -0.028946343809366226, 0.005038765259087086, 0.061014313250780106, 0.07961110770702362, 0.022790128365159035, 0.034295469522476196, -0.017761144787073135, -0.08180232346057892, 0.028367293998599052, 0.006260845344513655, 0.017632780596613884, 0.016758551821112633, -0.024025099352002144, 0.0719149261713028, 0.026487434282898903, -0.0005787801346741617, 0.04918558895587921, -0.09524165838956833, -0.07554630190134048, -0.02527366392314434, -0.015138432383537292, 0.05820053443312645, -0.03235853835940361, 0.04237562045454979, 0.04786309972405434, -0.019465241581201553, 0.06653974950313568, 0.029155297204852104, -0.011127326637506485, 0.010836783796548843, -0.03240589797496796, -0.04631032049655914, 0.06098151579499245, 0.02859882265329361, -0.05663228780031204, -0.04383017495274544, 0.005291654262691736, -0.015490933321416378, 0.018757794052362442, 0.02838914282619953, -0.006964847445487976, 0.06071612611413002, 0.01677420176565647, 0.03332732245326042, -0.035817231982946396, -0.007667641155421734, -0.02451358549296856, 0.05052292346954346, 0.018280399963259697, -0.011706043034791946, -0.010421848855912685, -0.008210726082324982, 0.11182247847318649, 0.04304184392094612, -0.021425271406769753, -0.04091956466436386, 0.03449646383523941, 0.017900770530104637, -0.013183132745325565, -0.017416032031178474, -0.03682740405201912, 0.015352808870375156, -0.005363352596759796, -0.016078853979706764, -0.026463214308023453, 0.00009838494588620961, -0.02194826304912567, 0.01540369726717472, 0.05588988959789276, -0.04227576404809952, 0.08055305480957031, 0.0035998879466205835, 0.0043701850809156895, -0.021352728828787804, -0.038891762495040894, -0.05250559747219086, 0.019525989890098572, -0.005633557215332985, -0.017128463834524155, 0.0529167577624321, -0.03379068151116371, -0.014482837170362473, -0.018368972465395927, -0.024154508486390114, 0.06317368894815445, 0.04383409395813942, 0.06493198871612549, -0.014996225945651531, 0.03149928152561188, -0.040799207985401154, -0.0048662396147847176, -0.017676420509815216, -0.06764472275972366, -0.02319997362792492, -0.024442344903945923, 0.002732684602960944, -0.0009699951624497771, 0.03602784126996994, -0.02563963271677494, 0.04592272266745567, 0.011308168061077595, -0.0016040400369092822, -0.02958185039460659, 0.009297521784901619, 0.012645660899579525, -0.011787326075136662, -0.03907100856304169, -0.04211139678955078, 0.053324636071920395, -0.056030575186014175, -0.024237949401140213, -0.008003692142665386, -0.04345649853348732, 0.0643518790602684, -0.056360986083745956, -0.022764522582292557, 0.00793861597776413, 0.029629437252879143, 0.05763848498463631, 0.0035316585563123226, 0.015901872888207436, 0.08031874150037766, 0.021155167371034622, 0.013952580280601978, 0.014132891781628132, -0.012106778100132942, 0.030503157526254654, -0.02921903505921364, 0.027728769928216934, 0.037231795489788055, -0.018701205030083656, -0.006946836598217487, -0.03578190878033638, 0.008659671992063522, -0.028156429529190063, -0.26860594749450684, 0.04902193322777748, -0.0379626601934433, -0.032882217317819595, 0.008453687652945518, -0.0044303108006715775, 0.024388466030359268, -0.037586238235235214, -0.021073834970593452, -0.024244241416454315, -0.024606840685009956, -0.0372876338660717, -0.02998279221355915, 0.0391242653131485, 0.005595311988145113, -0.002228575060144067, -0.0005950112245045602, -0.04933992773294449, -0.001695847837254405, 0.024577897042036057, -0.018300911411643028, -0.04421582818031311, -0.004550368059426546, 0.033267792314291, 0.01252525020390749, 0.0366518571972847, -0.08906043320894241, 0.01895124651491642, -0.03556002676486969, -0.02285934053361416, 0.0012115067802369595, -0.02721829153597355, 0.006973902694880962, -0.016578704118728638, -0.025877922773361206, -0.009780761785805225, 0.04872363060712814, -0.008628186769783497, 0.02765272557735443, 0.022074809297919273, -0.015974434092640877, -0.04740918055176735, 0.001132562872953713, -0.0035923097748309374, 0.08227446675300598, 0.017721831798553467, -0.07056930661201477, -0.01563083380460739, -0.011410280130803585, 0.06582357734441757, -0.04078666865825653, -0.034418150782585144, -0.022503431886434555, 0.01092444732785225, -0.017169930040836334, -0.01064073946326971, -0.01348875556141138, -0.0263985525816679, -0.05748878791928291, -0.03464818000793457, -0.02112598903477192, -0.04613272100687027, 0.020094692707061768, -0.05347336083650589, -0.025709005072712898, -0.053023841232061386, -0.07557312399148941, -0.011926156468689442, 0.07333453744649887, -0.006948121357709169, -0.024621201679110527, 0.023577796295285225, -0.02546101249754429, -0.10945000499486923, -0.03889578953385353, -0.0014242479810491204, 0.0055266013368964195, -0.00662012817338109, 0.0019429303938522935, 0.043716199696063995, -0.061276875436306, -0.054944269359111786, 0.004215379245579243, 0.03134114295244217, 0.03983904793858528, 0.0018003021832555532, 0.004778997972607613, -0.030710335820913315, -0.042064156383275986, -0.013709449209272861, 0.04810580983757973, -0.03508050739765167, -0.030613884329795837, -0.012821062467992306, 0.017451882362365723, 0.05127325654029846, 0.011996723711490631, -0.0028534240555018187, 0.04089472442865372, 0.04594285041093826, 0.030567800626158714, -0.05065975710749626, 0.023553771898150444, -0.021714074537158012, -0.0018964993068948388, -0.00030535971745848656, -0.03340836986899376, 0.031315047293901443, 0.04901834949851036, 0.017234530299901962, -0.019875621423125267, -0.0026757996529340744, 0.028222838416695595, -0.04669572412967682, -0.020683301612734795, -0.021712305024266243, 0.039417196065187454, 0.032584935426712036, 0.05162026733160019, -0.021060746163129807, -0.07559260725975037, 0.01487633679062128, 0.005843037273734808, -0.019979290664196014, -0.059539929032325745, -0.05080704763531685, -0.03221908584237099, -0.019350659102201462, 0.00624052481725812, 0.0008211256354115903, -0.03831995278596878, 0.032265640795230865, 0.024692608043551445, -0.030748670920729637, 0.041895486414432526, -0.021724624559283257, -0.03200231119990349, -0.04373554885387421, -0.010632656514644623, -0.0005664760246872902, -0.012706158682703972, -0.013987437821924686, -0.0033709853887557983, 0.043255072087049484, 0.024733340367674828, 0.011282317340373993, -0.005944449920207262, -0.009399681352078915, 0.01447911188006401, 0.019054820761084557, 0.0005920518306083977, -0.018908072263002396, 0.031816598027944565, -0.038256723433732986, -0.00009022123413160443, 0.016368450596928596, 0.05637166276574135, -0.021550942212343216, -0.016738370060920715, -0.042999155819416046, 0.0166251752525568, -0.0664229616522789, 0.0064461687579751015, -0.019189879298210144, 0.00199241004884243, 0.049638532102108, -0.01665560156106949, 0.032479070127010345, -0.027054758742451668, -0.005441832821816206, -0.01638859510421753, -0.003087576013058424, -0.06270171701908112, 0.02608874812722206, 0.022805815562605858, -0.0036903750151395798, 0.017544325441122055, 0.02651152014732361, 0.01313492376357317, 0.004090280272066593, -0.004735877737402916, -0.011438450776040554, -0.0017603347077965736, 0.02386632189154625, 0.05048682168126106, 0.04001195728778839, -0.004888409748673439, 0.009126735851168633, -0.03655463457107544, -0.03696632757782936, -0.003163775196298957, -0.010716317221522331, -0.03242579102516174, -0.02457924373447895, -0.03619951382279396, -0.07435517013072968, 0.045648541301488876, 0.009772160090506077, 0.017681244760751724, 0.0005098620895296335, 0.0290072001516819, -0.02401174232363701, -0.03636722266674042, 0.004643198102712631, 0.06303498893976212, -0.06683411449193954, -0.01865314319729805, -0.007632284425199032, 0.00042021970148198307, 0.0024448931217193604, 0.02399311028420925, -0.06673289090394974, -0.020821761339902878, 0.008333954960107803, -0.006024753209203482, -0.02075781486928463, -0.014669814147055149, 0.006044199224561453, 0.019937163218855858, -0.013849248178303242, 0.05219569429755211, 0.017952505499124527, 0.009281574748456478, -0.010838949121534824, 0.0028665584977716208, 0.027636107057332993, -0.027476735413074493, 0.010942989028990269, 0.024790717288851738, 0.0059877680614590645, 0.013345211744308472, -0.0474085696041584, 0.03290211036801338, 0.017511602491140366, -0.014160172082483768, -0.021691953763365746, -0.058530956506729126, 0.011042007245123386, -0.0030053614173084497, 0.07605795562267303, -0.0018896935507655144, -0.02873333916068077, -0.04636862128973007, -0.004369837231934071, -0.028470953926444054, 0.013738177716732025, 0.0010784817859530449, 0.002235998632386327, 0.000352467322954908, 0.040517065674066544, 0.0049949949607253075, 0.05264841020107269, -0.015989329665899277, -0.01921665109694004, 0.04748252034187317, -0.051594387739896774, -0.028916653245687485, -0.023984812200069427, -0.05874387547373772, -0.0029418172780424356, -0.0018056336557492614, -0.0013166898861527443, -0.06052552908658981, 0.050760794430971146, 0.045852139592170715, 0.032790616154670715, 0.03901611641049385, -0.001059860223904252, 0.02012055739760399, -0.0353444442152977, -0.01678396575152874, -0.08254531770944595, 0.017115512862801552, 0.03917388245463371, -0.003835983108729124, -0.00419201934710145, 0.011418554000556469, -0.02683277800679207, 0.006395306903868914, -0.05605294182896614, -0.0005964329466223717, 0.03388998284935951, -0.03332936391234398, 0.02772371657192707, 0.02250724844634533, -0.08071383833885193, 0.01916232518851757, 0.06480502337217331, -0.031159494072198868, 0.00004198380702291615, -0.0337718166410923, 0.05531354621052742, -0.029358230531215668, 0.03595709428191185, -0.017692510038614273, -0.010636966675519943, 0.08166027814149857, 0.030797764658927917, 0.003606329904869199, 0.07011932134628296, -0.014894748106598854, 0.03858906403183937, 0.04218504950404167, -0.016696985810995102, 0.003800826845690608, 0.03832225501537323, -0.03413098305463791, -0.05857750028371811, 0.027163779363036156, 0.022742820903658867, -0.023195341229438782, -0.04183289036154747, 0.07686077058315277, 0.0029710789676755667, -0.033440686762332916, -0.032683756202459335, 0.01558369118720293, -0.04147898033261299, -0.02066665142774582, -0.041231025010347366, 0.008667876943945885, -0.03870066627860069, 0.06161791458725929, -0.012536206282675266, 0.032738056033849716, 0.07968100905418396, -0.0052133179269731045, 0.01182489562779665, -0.00028200712404213846, 0.07923087477684021, 0.07766193896532059, 0.05630645155906677, 0.01699528843164444, 0.06841299682855606, -0.05343521386384964, -0.011778959073126316, -0.020550522953271866, -0.02152206003665924, -0.01881684549152851, 0.003730509663000703, 0.024643128737807274, 0.08339210599660873, -0.022599929943680763, 0.07217206060886383, 0.005114607512950897, -0.009232702665030956, 0.000004531513241090579, 0.009227732196450233, 0.05332024767994881, 0.0647021159529686, 0.01934891939163208, 0.026911474764347076, -0.0018149546813219786, -0.04262994974851608, 0.044966988265514374, -0.031509555876255035, -0.037039272487163544, 0.028333866968750954, -0.020581601187586784, 0.011512214317917824, 0.024096611887216568, 0.05751864239573479, 0.07761756330728531, -0.016030188649892807, 0.000018896183973993175, 0.01799306645989418, 0.0053118690848350525, 0.005827180575579405, 0.007540806662291288, -0.031278740614652634, -0.002598768100142479, -0.01254972256720066, -0.061179015785455704, -0.026394421234726906, -0.02965589053928852, -0.0643562525510788, 0.027325473725795746, -0.017080476507544518, -0.005391593091189861, 0.0058167725801467896, -0.012763392180204391, -0.019969940185546875, -0.06088317185640335, -0.043850161135196686, -0.05159657821059227, -0.06463491171598434, -0.0012989273527637124, -0.007129653822630644, -0.007926478050649166, -0.013254235498607159, -0.009170493111014366, -0.011792223900556564, -0.0015995552530512214, 0.029251929372549057, -0.04409986361861229, -0.00993839930742979, 0.016318567097187042, -0.014634957537055016, 0.031849928200244904, 0.017895014956593513, 0.04394381120800972, 0.0000919640006031841, 0.006438396405428648, -0.03288881480693817, 0.028031373396515846, 0.03849823400378227, 0.01830521784722805, -0.006512808613479137, -0.08934501558542252, 0.032459601759910583, 0.035649463534355164, -0.01644088141620159, -0.07774803042411804, 0.02839737944304943, 0.009343989193439484, -0.00005216766658122651, 0.04779132083058357, -0.006564883049577475, -0.011860931292176247, -0.026963790878653526, 0.018558884039521217, 0.006360978819429874, 0.03841258957982063, 0.053725406527519226, -0.03203091025352478, 0.05086822062730789, 0.0561865009367466, -0.029520977288484573, -0.03348860517144203, -0.033465705811977386, -0.0003478352155070752, -0.017732977867126465, -0.019633932039141655, -0.021362729370594025, -0.05352329462766647, -0.08051260560750961, -0.04174328222870827, 0.008701303973793983, -0.020924707874655724, -0.039892859756946564, 0.01769898273050785, 0.03649953007698059, -0.008713953197002411, 0.03208004683256149, -0.04429804906249046, 0.038111358880996704, -0.017458273097872734, -0.012032933533191681, -0.0538843497633934, 0.0014829798601567745, 0.002340862527489662, 0.015307161025702953, -0.0046985396184027195, -0.039404913783073425, -0.012675460427999496, -0.03636560216546059, 0.034939244389534, 0.013586517423391342, 0.007187067996710539, -0.0007815993740223348 ]
[ -0.08240233361721039, -0.03245963901281357, -0.049959562718868256, -0.021019794046878815, 0.0448758564889431, -0.020250245928764343, -0.025334922596812248, -0.004724638070911169, 0.021900253370404243, -0.01763240620493889, 0.01255045272409916, -0.010052594356238842, 0.008890986442565918, 0.016234880313277245, 0.07236739993095398, -0.0161210298538208, -0.03702334687113762, -0.07381784915924072, -0.04518258199095726, 0.034091826528310776, -0.011794431135058403, -0.04861080273985863, -0.033563032746315, -0.03241382911801338, 0.02402554824948311, 0.05377591773867607, 0.036765601485967636, -0.03486967086791992, -0.01528442744165659, -0.20837780833244324, -0.01135113462805748, 0.007865175604820251, 0.01470673456788063, -0.01704508066177368, -0.003833628259599209, 0.030761349946260452, 0.040963221341371536, -0.003995602950453758, 0.0010526709957048297, 0.05714807286858559, 0.03253532201051712, -0.00028493633726611733, -0.04024123400449753, -0.032555583864450455, 0.046702731400728226, -0.04305636137723923, 0.018918955698609352, -0.00949792843312025, -0.041419386863708496, 0.03727329894900322, -0.014546331018209457, -0.027460379526019096, 0.007068253587931395, -0.015673985704779625, 0.016110479831695557, 0.05742572993040085, 0.022818004712462425, 0.07375092059373856, 0.027686187997460365, 0.040396254509687424, -0.0036207137163728476, -0.0030911851208657026, -0.14038492739200592, 0.08155018091201782, -0.021102719008922577, 0.01145548839122057, -0.04184272512793541, -0.006775259971618652, -0.019659344106912613, 0.07346827536821365, 0.03061171993613243, -0.021685577929019928, -0.03578638285398483, 0.08377628773450851, 0.0010609892196953297, 0.005136271007359028, -0.009571770206093788, -0.0014347046380862594, 0.03483089804649353, -0.03941730037331581, -0.05015468969941139, 0.03449508175253868, -0.030572762712836266, -0.02316673845052719, -0.029074888676404953, 0.038372550159692764, -0.015302961692214012, 0.060805391520261765, -0.003844070713967085, 0.01843397505581379, 0.019704241305589676, 0.026856964454054832, 0.05352719873189926, 0.03992307931184769, -0.0665053129196167, -0.0016041899798437953, 0.018965531140565872, 0.04511503875255585, -0.01891160197556019, 0.4019981026649475, -0.0019832744728773832, 0.010167792439460754, 0.013058059848845005, 0.06595464795827866, 0.01420542597770691, -0.020734554156661034, 0.0019317470723763108, -0.07561677694320679, 0.04441239684820175, -0.02505200169980526, -0.014916610904037952, -0.038431137800216675, 0.05517067387700081, -0.08170172572135925, 0.011297767981886864, 0.043764419853687286, 0.0769750326871872, 0.012795419432222843, -0.019281867891550064, 0.018939854577183723, 0.03203214332461357, 0.020457951352000237, 0.037712618708610535, -0.0016036384040489793, 0.0006953607662580907, 0.02003084309399128, 0.03239439055323601, 0.03925198316574097, 0.015675660222768784, 0.020864875987172127, 0.05983569473028183, -0.007204078137874603, -0.06354878097772598, 0.02507147006690502, 0.012955505400896072, -0.0030234509613364935, 0.00743057020008564, -0.06530183553695679, 0.007300549186766148, -0.009042255580425262, -0.007597580552101135, 0.00625644950196147, 0.04584308713674545, -0.005862497258931398, -0.03519538789987564, 0.12148948013782501, -0.00864240899682045, -0.03614763543009758, -0.017196157947182655, -0.04908114671707153, -0.032574091106653214, -0.0026726843789219856, 0.01361795887351036, -0.06421863287687302, 0.016164885833859444, 0.018801869824528694, 0.06702311336994171, -0.010037289932370186, -0.08321954309940338, -0.005462349858134985, -0.02716401033103466, -0.03360322490334511, -0.03237178176641464, 0.11324887722730637, 0.017171526327729225, -0.12040458619594574, 0.0027073919773101807, 0.027045441791415215, 0.016756871715188026, -0.08336906880140305, -0.0020431329030543566, 0.021065736189484596, -0.011050465516746044, -0.025176534429192543, 0.08766146004199982, -0.00807762611657381, -0.05291169881820679, -0.03318708389997482, 0.051381416618824005, 0.02861436828970909, -0.018065733835101128, 0.0007693053921684623, -0.023407280445098877, 0.02200075425207615, -0.05897146090865135, -0.07577481865882874, -0.033576373010873795, 0.013486630283296108, -0.019350755959749222, -0.026891769841313362, -0.025479203090071678, -0.02004268579185009, -0.025881564244627953, 0.09383557736873627, -0.05491035804152489, -0.028687167912721634, -0.015618212521076202, -0.009546125307679176, -0.0016655527288094163, -0.06339186429977417, -0.012045534327626228, 0.028019649907946587, -0.007154927123337984, 0.033972468227148056, -0.05203509330749512, 0.006704365834593773, 0.029266072437167168, -0.06801705807447433, 0.07409114390611649, 0.026377981528639793, -0.06054459884762764, 0.01869836449623108, -0.010678914375603199, 0.007514741271734238, -0.0029198939446359873, 0.00406682537868619, -0.015428543090820312, -0.0036636702716350555, 0.006518676411360502, 0.020225156098604202, -0.02758781425654888, 0.0018414948135614395, -0.0215616337954998, -0.35064592957496643, -0.014326834119856358, -0.013792331330478191, 0.0009511992102488875, 0.02247924730181694, -0.02812216617166996, -0.0023999246768653393, -0.02254931628704071, -0.0022339464630931616, 0.01136117335408926, 0.0978880524635315, -0.012645266018807888, -0.0036922490689903498, -0.09008239209651947, 0.004815134219825268, 0.038362596184015274, -0.035103920847177505, -0.0102015295997262, -0.03059932217001915, 0.04336090385913849, -0.013433285988867283, -0.055860668420791626, -0.012541485950350761, -0.06975337117910385, -0.019254986196756363, -0.0003901040181517601, 0.10273439437150955, 0.016084827482700348, 0.020161796361207962, -0.05469982326030731, 0.06156565248966217, 0.0015178420580923557, -0.025187646970152855, -0.05027831718325615, 0.00555464206263423, -0.006501223426312208, 0.035597436130046844, 0.0050604017451405525, -0.009584308601915836, 0.00624430738389492, -0.057549577206373215, 0.003904213896021247, -0.035487424582242966, -0.05169194936752319, -0.046528663486242294, 0.012078600935637951, -0.032795462757349014, -0.03099745884537697, 0.00797511637210846, 0.07042611390352249, 0.016403522342443466, 0.01284159254282713, -0.011536413803696632, 0.034825559705495834, 0.036869220435619354, -0.003998375963419676, -0.05366121605038643, -0.03659834712743759, 0.01059985812753439, 0.02872486226260662, 0.008063175715506077, 0.05862146243453026, 0.013574565760791302, -0.08427213877439499, 0.022582827135920525, 0.007898274809122086, 0.006070041563361883, -0.020097868517041206, 0.025858616456389427, -0.03435788303613663, -0.045187611132860184, 0.08926405012607574, -0.01139522809535265, 0.022605160251259804, 0.056495074182748795, 0.03096713311970234, -0.033889319747686386, 0.014819245785474777, 0.04109625890851021, 0.031009485945105553, 0.03317788243293762, -0.03420994058251381, 0.08781462162733078, -0.0017768071265891194, -0.02191501297056675, 0.02278081327676773, 0.0170461256057024, -0.016032692044973373, 0.037701498717069626, 0.0215266365557909, -0.04541890323162079, 0.002290646778419614, -0.032534487545490265, -0.02946731634438038, 0.05029717832803726, -0.026678113266825676, -0.28733116388320923, 0.0767160952091217, 0.03345236927270889, 0.03724724054336548, 0.04389600455760956, -0.0010732325026765466, 0.0016141015803441405, -0.017133299261331558, -0.026133757084608078, 0.004655348137021065, 0.025557424873113632, 0.046903397887945175, 0.01086246408522129, -0.014005699194967747, 0.028058063238859177, 0.018061090260744095, 0.04004291445016861, -0.005422595422714949, -0.0018190734554082155, -0.013235677033662796, 0.04079178348183632, 0.0005837410571984947, 0.18468917906284332, 0.049372777342796326, 0.019203495234251022, 0.0349605455994606, -0.0257156603038311, -0.0003834964009001851, 0.054149728268384933, 0.00705744419246912, -0.01752661168575287, 0.009073945693671703, 0.005143523681908846, 0.04574461653828621, 0.005163508467376232, -0.04131312668323517, -0.012843187898397446, 0.04670250788331032, 0.0197039432823658, -0.024046700447797775, -0.022479906678199768, 0.03608861193060875, -0.007155728526413441, 0.0072791194543242455, 0.06288481503725052, -0.026840150356292725, -0.002453829860314727, -0.037783391773700714, -0.030609358102083206, -0.006888869218528271, -0.026559220626950264, -0.04703209176659584, 0.0005633239052258432, -0.011861984618008137, -0.034742262214422226, 0.08904965221881866, 0.026968402788043022, -0.02472114749252796, 0.034900084137916565, 0.03719601407647133, 0.004084077663719654, -0.032333023846149445, 0.10140804201364517, -0.048531368374824524, 0.00046951367403380573 ]
[ 0.007097278255969286, 0.055035337805747986, 0.04090481996536255, 0.005508939735591412, 0.009728232398629189, -0.010866501368582249, -0.030318675562739372, -0.010543286800384521, 0.017540907487273216, -0.012348244898021221, -0.04469139501452446, 0.01282323058694601, 0.03313915804028511, 0.0038519902154803276, 0.0024911314249038696, -0.01228222344070673, -0.000623817672021687, 0.02396548166871071, 0.03900255262851715, -0.01909741945564747, -0.048290085047483444, -0.018466684967279434, 0.02119974046945572, -0.0010341251036152244, -0.017228230834007263, 0.019373714923858643, -0.0015911784721538424, 0.02157486043870449, 0.027276447042822838, -0.07169786095619202, -0.040179263800382614, -0.01830316334962845, -0.01935497298836708, 0.009808276779949665, -0.027128176763653755, -0.005929494276642799, 0.007313035428524017, 0.009699869900941849, -0.010673719458281994, -0.0021545386407524347, 0.035951126366853714, -0.010360022075474262, -0.017579078674316406, 0.015394266694784164, 0.03914392739534378, 0.009729685261845589, -0.026841405779123306, -0.04289555922150612, -0.01287779863923788, -0.00514116371050477, -0.026804262772202492, -0.003364227944985032, -0.005262553226202726, -0.01825314573943615, 0.04243471845984459, 0.04883648827672005, -0.05311039835214615, -0.026924310252070427, -0.0034632061142474413, -0.06328145414590836, 0.018900183960795403, -0.03129270300269127, -0.08612648397684097, -0.025317203253507614, 0.0029563785064965487, -0.017907043918967247, 0.011024742387235165, 0.0466531403362751, 0.002724171383306384, -0.0015328843146562576, -0.013966405764222145, 0.050792522728443146, -0.06732942909002304, -0.016165146604180336, 0.006573467515408993, 0.03565746173262596, 0.018149210140109062, -0.037813831120729446, -0.01470800582319498, -0.02275898866355419, -0.018002178519964218, -0.008966566994786263, -0.0030917308758944273, 0.001809092704206705, 0.0036891361232846975, -0.03705601394176483, -0.022575877606868744, 0.03437715768814087, 0.023507801815867424, 0.031089985743165016, -0.03568030893802643, 0.010385188274085522, -0.006901775952428579, 0.0129911620169878, -0.08770139515399933, 0.027647150680422783, 0.0035761308390647173, 0.017884502187371254, 0.024079877883195877, 0.8159725069999695, 0.01654789224267006, 0.015738312155008316, -0.021786335855722427, 0.032517533749341965, -0.007598349824547768, 0.021913280710577965, -0.02315002679824829, -0.013807530514895916, -0.02866458334028721, 0.011045126244425774, -0.011029944755136967, -0.029334114864468575, 0.0026605946477502584, -0.007244172040373087, -0.0022339061833918095, 0.08752709627151489, 0.009417397901415825, 0.038646142929792404, -0.03847737982869148, 0.01867636665701866, -0.0040724012069404125, 0.02520764246582985, -0.005868810229003429, 0.01701536774635315, -0.007413963321596384, -0.17926646769046783, -0.002375863492488861, -6.923912253576792e-33, 0.058999039232730865, -0.008534110151231289, 0.03628840669989586, -0.0290539413690567, 0.011255466379225254, 0.0416092686355114, -0.0002040021208813414, -0.029853185638785362, -0.0040594046004116535, -0.04073901101946831, -0.0008568762568756938, 0.0151410773396492, 0.022108344361186028, -0.0678645595908165, 0.03778553754091263, -0.026062872260808945, 0.006307181902229786, 0.027997056022286415, -0.02454390376806259, -0.005592334549874067, -0.03622540831565857, 0.024447400122880936, -0.03891150653362274, -0.0047014011070132256, 0.02400398999452591, 0.052325159311294556, 0.020936012268066406, 0.012344591319561005, -0.010265359655022621, -0.043125513941049576, -0.056903447955846786, 0.01998661458492279, -0.017983250319957733, 0.008593667298555374, 0.023447122424840927, -0.03909625485539436, -0.03720411658287048, -0.004163939040154219, -0.009400184266269207, -0.06967788189649582, -0.04475220665335655, -0.014352599158883095, -0.02809968777000904, -0.03031632862985134, -0.041437599807977676, -0.030018774792551994, 0.012150784023106098, 0.017287617549300194, 0.002761435229331255, 0.002577772131189704, 0.019101010635495186, 0.01472779642790556, -0.018057405948638916, -0.03771045804023743, -0.010501245968043804, 0.020207960158586502, 0.04481572285294533, 0.03136902675032616, -0.026605088263750076, 0.03398433327674866, 0.007606874220073223, 0.011322188191115856, -0.0010688219917938113, 0.0924854576587677, 0.023865334689617157, 0.02189107984304428, -0.04103415086865425, -0.01987205632030964, 0.019767604768276215, 0.04665355011820793, -0.030080966651439667, 0.046706102788448334, -0.006096304394304752, -0.02231333963572979, 0.054162733256816864, -0.03599939122796059, 0.0024339056108146906, -0.007054953370243311, 0.010814107023179531, 0.06618721783161163, -0.0298084057867527, -0.048128508031368256, -0.00030406969017349184, -0.019361475482583046, 0.01237640529870987, 0.008139397948980331, 0.0036212231498211622, 0.0458357073366642, 0.027571380138397217, 0.030467048287391663, 0.04377804696559906, -0.023587724193930626, 0.04390643537044525, 0.016160031780600548, -0.06012729927897453, 7.075499596955019e-33, -0.003890569554641843, 0.011469843797385693, -0.005439225118607283, 0.012472342699766159, 0.0032974889036267996, -0.011858537793159485, 0.0019229411846026778, -0.01025274395942688, -0.019561413675546646, 0.054246686398983, -0.015848496928811073, -0.00668993080034852, 0.0035468696150928736, 0.0021276928018778563, 0.04365754872560501, -0.0004207031743135303, 0.04270564392209053, -0.030126485973596573, 0.008066868409514427, -0.005445610266178846, -0.00021005510643590242, -0.014416302554309368, -0.00836261734366417, 0.0003444313770160079, 0.02108904905617237, 0.022943465039134026, 0.04837263375520706, -0.00359791680239141, -0.014115759171545506, -0.020723499357700348, -0.032566413283348083, -0.045009419322013855, -0.014639290049672127, 0.010182126425206661, 0.041509680449962616, 0.0013104320969432592, 0.024855369701981544, -0.008535732515156269, 0.004706870764493942, -0.00553519232198596, 0.0007159645901992917, 0.024653559550642967, -0.04927531257271767, 0.04736354947090149, 0.027028542011976242, 0.025647364556789398, -0.019026635214686394, 0.027231154963374138, 0.022433321923017502, 0.015824303030967712, -0.00998771283775568, 0.025934981182217598, -0.022829370573163033, 0.04091382026672363, 0.009416184388101101, -0.03639360889792442, -0.021742887794971466, 0.025302596390247345, 0.02811267040669918, -0.004546599928289652, -0.01198058295994997, -0.017959898337721825, -0.013689112849533558, 0.056100718677043915, 0.02229432761669159, -0.01701142080128193, -0.031499698758125305, 0.011013316921889782, -0.020236004143953323, -0.006802829448133707, 0.004108945839107037, -0.00711841881275177, -0.035808682441711426, 0.021249040961265564, 0.01567704975605011, -0.009014575742185116, -0.00961300265043974, 0.003479045582935214, 0.0028697079978883266, 0.0111609548330307, 0.014078815467655659, 0.011675706133246422, 0.02848193421959877, 0.04094471409916878, -0.01590169593691826, 0.03508339077234268, -0.019650695845484734, 0.04076581820845604, 0.013022361323237419, -0.00944595504552126, 0.01449557300657034, -0.024440443143248558, 0.002121139783412218, 0.07534468919038773, -0.02811462990939617, -1.2322824538557597e-8, -0.02756158821284771, -0.005902392789721489, -0.02734673023223877, -0.013945336453616619, 0.015127814374864101, 0.0016356244450435042, 0.008610352873802185, -0.019388999789953232, -0.007242138963192701, 0.015788719058036804, 0.024837249889969826, -0.026588166132569313, 0.013977188616991043, 0.009812873788177967, 0.028310701251029968, -0.03144519031047821, 0.014207873493432999, -0.02178816869854927, 0.02382790856063366, 0.013839857652783394, 0.01915709674358368, 0.04025926813483238, -0.024545961990952492, 0.004974972922354937, -0.024024853482842445, -0.026443421840667725, 0.0077035208232700825, -0.040811937302351, 0.030155379325151443, -0.03648548573255539, -0.030636362731456757, -0.030574101954698563, -0.010007236152887344, 0.03660254552960396, -0.05586301535367966, -0.06122656911611557, 0.021570168435573578, 0.017992570996284485, 0.05089735612273216, 0.057263702154159546, -0.01999085210263729, 0.010699264705181122, -0.01311750989407301, -0.0178938377648592, -0.02159665711224079, 0.01609916426241398, -0.015335822477936745, -0.024205032736063004, 0.01719561032950878, -0.03966789320111275, -0.0028324052691459656, -0.01314239390194416, 0.049195218831300735, -0.004728809464722872, 0.037443775683641434, 0.02633507549762726, 0.0012762692058458924, -0.03966723382472992, 0.0035911023151129484, -0.02635148912668228, 0.004829061217606068, -0.01043936237692833, -0.039995938539505005, -0.01219460554420948 ]
neo4j-cypher-vs-clojure-for-group-by-and-sorting
https://markhneedham.com/blog/2014/06/29/neo4j-cypher-vs-clojure-for-group-by-and-sorting
false
2014-06-29 08:45:34
Neo4j: Set Based Operations with the experimental Cypher optimiser
[ "neo4j" ]
[ "neo4j" ]
A few months ago I wrote about http://www.markhneedham.com/blog/2014/02/20/neo4j-cypher-set-based-operations/[cypher queries which look for a missing relationship] and showed how you could optimise them by re-working the query slightly. To refresh, we wanted to find all the people in the London office that I hadn't worked with given this model\... image:{{<siteurl>}}/uploads/2014/02/2014-02-18_17-04-01.png[]</img> \...and this initial query: [source,cypher] ---- MATCH (p:Person {name: "me"})-[:MEMBER_OF]->(office {name: "London Office"})<-[:MEMBER_OF]-(colleague) WHERE NOT (p-[:COLLEAGUES]->(colleague)) RETURN COUNT(colleague) ---- This took on average 7.46 seconds to execute using https://github.com/mneedham/cypher-query-tuning[cypher-query-tuning] so we came up with the following version which took 150 ms on average: [source,cypher] ---- MATCH (p:Person {name: "me"})-[:COLLEAGUES]->(colleague) WITH p, COLLECT(colleague) as marksColleagues MATCH (colleague)-[:MEMBER_OF]->(office {name: "London Office"})<-[:MEMBER_OF]-(p) WHERE NOT (colleague IN marksColleagues) RETURN COUNT(colleague) ---- With the http://neo4j.com/blog/neo4j-2-1-graph-etl/[release of Neo4j 2.1] we can now make use of Ronja - the experimental Cypher optimiser - which performs much better for certain types of queries. I thought I'd give it a try against this one. We can use the experimental optimiser by prefixing our query like so: [source,cypher] ---- cypher 2.1.experimental MATCH (p:Person {name: "me"})-[:MEMBER_OF]->(office {name: "London Office"})<-[:MEMBER_OF]-(colleague) WHERE NOT (p-[:COLLEAGUES]->(colleague)) RETURN COUNT(colleague) ---- If we run that through the query tuner we get the following results: [source,bash] ---- $ python set-based.py cypher 2.1.experimental MATCH (p:Person {name: "me"})-[:MEMBER_OF]->(office {name: "London Office"})<-[:MEMBER_OF]-(colleague) WHERE NOT (p-[:COLLEAGUES]->(colleague)) RETURN COUNT(colleague) Min 0.719580888748 50% 0.723278999329 95% 0.741609430313 Max 0.743646144867 MATCH (p:Person {name: "me"})-[:COLLEAGUES]->(colleague) WITH p, COLLECT(colleague) as marksColleagues MATCH (colleague)-[:MEMBER_OF]->(office {name: "London Office"})<-[:MEMBER_OF]-(p) WHERE NOT (colleague IN marksColleagues) RETURN COUNT(colleague) Min 0.706955909729 50% 0.715770959854 95% 0.731880950928 Max 0.733670949936 ---- As you can see there's not much in it - our original query now runs as quickly as the optimised one. Ronja #ftw! Give it a try on your slow queries and see how it gets on. There'll certainly be some cases where it's slower but over time it should be faster for a reasonable chunk of queries.
null
null
[ 0.02504580281674862, -0.0165401604026556, 0.020326146855950356, 0.04349533095955849, 0.08653777092695236, 0.004010489210486412, 0.04063259810209274, 0.03299873694777489, 0.013930135406553745, -0.01814844459295273, -0.01547105610370636, -0.009495888836681843, -0.05852501839399338, 0.013770761899650097, -0.011554684489965439, 0.06813068687915802, 0.05437072739005089, 0.019880851730704308, 0.02040776237845421, -0.020580649375915527, 0.05098928138613701, 0.05778640881180763, 0.007846861146390438, 0.020006943494081497, 0.056558430194854736, 0.010586374439299107, -0.012650704011321068, -0.017474956810474396, -0.04012886807322502, -0.0014749931870028377, 0.060432348400354385, -0.006585622206330299, 0.04159355163574219, -0.01353113166987896, 0.021069856360554695, 0.015543763525784016, -0.040374744683504105, 0.024256093427538872, -0.013523698784410954, -0.0013685269514098763, -0.04715470224618912, 0.04700322821736336, -0.02429257519543171, 0.03844258934259415, -0.05241258069872856, 0.006557487417012453, -0.06802601367235184, 0.041775450110435486, 0.012626869603991508, -0.006053244695067406, -0.07941489666700363, 0.014219672419130802, 0.026938965544104576, -0.00030052493093535304, -0.006534172687679529, 0.032278768718242645, 0.021285878494381905, -0.06942220032215118, 0.03970266506075859, -0.0037006880156695843, -0.007318695075809956, -0.006506255362182856, -0.013545304536819458, 0.024897990748286247, 0.0025613342877477407, -0.034673407673835754, 0.016447121277451515, 0.05672439932823181, -0.03320442885160446, 0.007976011373102665, -0.006457560230046511, 0.013540605083107948, 0.008861861191689968, -0.005529596004635096, -0.007536486256867647, -0.030537668615579605, 0.008677288889884949, 0.037839967757463455, 0.04630676656961441, 0.043635837733745575, -0.01147336233407259, 0.00021329271839931607, -0.010526800528168678, 0.03368654102087021, -0.008304922841489315, -0.02300308831036091, -0.02280058152973652, -0.035596054047346115, -0.05755477398633957, 0.04002763330936432, 0.014865859411656857, -0.05665699020028114, 0.01174988690763712, 0.0059700021520257, -0.015532935038208961, 0.023029042407870293, 0.018149059265851974, 0.004248692654073238, -0.0006447190535254776, -0.03459782525897026, -0.011012500151991844, -0.03838438168168068, -0.03449234738945961, -0.007763821166008711, -0.0774170532822609, -0.025103995576500893, -0.02283819578588009, -0.0082497363910079, 0.003566462779417634, -0.009039710275828838, -0.03447715938091278, 0.00543825002387166, -0.016036314889788628, 0.020678415894508362, -0.08540760725736618, 0.05237777158617973, 0.025295378640294075, -0.005810456350445747, -0.03676532208919525, 0.013570350594818592, 0.006628033239394426, 0.029637228697538376, 0.0163735244423151, 0.06456489861011505, -0.0070047988556325436, 0.06121370568871498, 0.024711988866329193, 0.02399899624288082, -0.025070587173104286, -0.06933405995368958, -0.0027941749431192875, 0.057925671339035034, -0.012779869139194489, 0.013058478944003582, -0.017097515985369682, -0.06454908847808838, -0.013836948201060295, 0.007547139190137386, 0.05441590026021004, 0.02869458682835102, 0.00980054959654808, -0.05011194571852684, 0.047977108508348465, 0.026185424998402596, 0.03219268098473549, 0.024288740009069443, -0.02714722231030464, -0.037467122077941895, -0.01869969256222248, -0.007011516951024532, 0.014935996383428574, 0.027960054576396942, 0.024012327194213867, -0.028324909508228302, 0.030472610145807266, 0.11395972222089767, 0.031117158010601997, 0.0019525013631209731, -0.013935944065451622, 0.015490200370550156, 0.02215038798749447, 0.028837889432907104, -0.00046736947842873633, 0.07221031188964844, 0.0011726459488272667, -0.017319710925221443, 0.006180196534842253, 0.06282695382833481, -0.007089228369295597, 0.02764936350286007, -0.050164274871349335, -0.05987270548939705, 0.05085926875472069, -0.04081213101744652, -0.017828840762376785, 0.05651737004518509, 0.07817436009645462, 0.026863768696784973, 0.011619613505899906, 0.013691301457583904, -0.07262302935123444, 0.0591232106089592, -0.0010612731566652656, 0.01422586478292942, 0.02604084275662899, 0.01702028326690197, 0.07470691949129105, 0.03733766824007034, -0.010409885086119175, 0.037319839000701904, -0.09503021836280823, -0.057549308985471725, 0.002014548983424902, -0.029413601383566856, 0.0681358203291893, -0.03379489853978157, 0.029832756146788597, 0.040856391191482544, 0.0003579881740733981, 0.041210807859897614, 0.019994361326098442, -0.019486980512738228, 0.02208787389099598, -0.03548766300082207, -0.06592681258916855, 0.05215819925069809, 0.03220086172223091, -0.04896647855639458, -0.05931837484240532, 0.010094473138451576, -0.02066330425441265, -0.0025422140024602413, 0.012103470973670483, -0.019717378541827202, 0.02460872009396553, 0.03784745931625366, 0.02363698184490204, -0.004163697827607393, 0.012978652492165565, -0.03548898920416832, 0.03393452242016792, 0.02488742582499981, -0.007050021551549435, 0.008188323117792606, -0.0023398972116410732, 0.11031732708215714, 0.06567603349685669, -0.02614593878388405, -0.062240514904260635, 0.04525238275527954, 0.02767106704413891, -0.020872432738542557, 0.020468108355998993, -0.014075014740228653, -0.006229044869542122, -0.014808344654738903, -0.04871146380901337, -0.042123813182115555, 0.02082563005387783, -0.026303276419639587, -0.005828521680086851, 0.03501684591174126, 0.0008272884297184646, 0.05402221903204918, -0.002881512977182865, 0.0063905795104801655, -0.019860882312059402, -0.04513580724596977, -0.03990622237324715, 0.06335634738206863, 0.009484849870204926, 0.0076411571353673935, 0.040623828768730164, -0.013673655688762665, 0.01209513284265995, -0.03633713349699974, 0.001807998400181532, 0.030888907611370087, 0.05092296376824379, 0.06778111308813095, -0.013425840996205807, 0.054213982075452805, -0.03223774954676628, 0.009662131778895855, -0.005951292347162962, -0.054412730038166046, -0.04743931442499161, -0.04961804300546646, 0.0220580343157053, -0.010960004292428493, 0.017393091693520546, -0.022420324385166168, 0.015013281255960464, -0.010414178483188152, 0.023067640140652657, 0.001051313360221684, 0.021874235942959785, 0.005939105059951544, -0.0016570520820096135, -0.04056667163968086, -0.03703874722123146, 0.04306187853217125, -0.06449127197265625, -0.029822640120983124, -0.02014533244073391, -0.0718245580792427, 0.02214192785322666, -0.06655625998973846, -0.03235602751374245, 0.0002741749631240964, 0.012933727353811264, 0.05344153940677643, 0.008228151127696037, 0.005632087122648954, 0.062412992119789124, 0.013378502801060677, 0.02506152167916298, 0.01783335767686367, -0.00347261899150908, 0.05338020995259285, 0.004515895154327154, 0.04486597329378128, 0.046036627143621445, -0.02298036776483059, 0.0034589290153235197, -0.0504860058426857, 0.011207963339984417, -0.021853066980838776, -0.2833400368690491, 0.05601319670677185, -0.02201569825410843, -0.03386342152953148, 0.0036466054152697325, -0.051693469285964966, 0.009106071665883064, -0.010590438731014729, -0.03516141325235367, -0.0011078296229243279, -0.001567910541780293, -0.02847866155207157, -0.022705664858222008, 0.05518652871251106, 0.005624094977974892, 0.014796018600463867, -0.01134555321186781, -0.059970080852508545, 0.010511535219848156, 0.04294567555189133, 0.02465215139091015, -0.043997474014759064, -0.017238380387425423, -0.00416524475440383, 0.01595989614725113, 0.066202312707901, -0.10688294470310211, -0.003780228551477194, -0.06551939994096756, -0.006860772147774696, 0.000045414850319502875, -0.010709714144468307, -0.001397484797053039, -0.007595267612487078, -0.013782069087028503, -0.028678128495812416, 0.05117381364107132, 0.010596239939332008, 0.006023686844855547, 0.04063060134649277, -0.051512688398361206, -0.03647749871015549, -0.01932610757648945, -0.015206839889287949, 0.08157173544168472, 0.03782222419977188, -0.08675775676965714, -0.022966159507632256, -0.015164891257882118, 0.042104970663785934, -0.030440468341112137, -0.04465753212571144, -0.015082119964063168, 0.026031652465462685, -0.011752861551940441, -0.05317886546254158, -0.019553018733859062, -0.02366163209080696, -0.06006365641951561, -0.04328687861561775, -0.010796482674777508, -0.030907537788152695, 0.0344182550907135, -0.03284267336130142, -0.011008502915501595, -0.04796844720840454, -0.0775299221277237, -0.036294665187597275, 0.0492979921400547, -0.00907494779676199, -0.014095243066549301, 0.039637237787246704, -0.008507370948791504, -0.09897138923406601, -0.06083434447646141, -0.01345815695822239, 0.02068397030234337, 0.03207039088010788, -0.014415942132472992, 0.04282308742403984, -0.03983857110142708, -0.05194687098264694, -0.010696923360228539, 0.017094701528549194, 0.02508481778204441, -0.01649015210568905, -0.0027542116586118937, -0.007845630869269371, -0.03504934906959534, 0.021226970478892326, 0.062097154557704926, -0.03816013038158417, -0.026904158294200897, 0.009447180666029453, 0.01381686981767416, 0.017709236592054367, 0.01766572706401348, -0.001906453282572329, 0.007465872913599014, 0.04402114078402519, 0.036881204694509506, -0.022196276113390923, 0.020767314359545708, -0.02084950916469097, -0.0329105406999588, -0.008900792337954044, -0.03681031987071037, 0.0039694118313491344, 0.020037448033690453, 0.019444415345788002, -0.00467916764318943, -0.029986748471856117, 0.0006794356741011143, -0.02707468345761299, -0.025680935010313988, -0.021644512191414833, 0.03283340856432915, 0.00635204603895545, 0.044356558471918106, -0.023838842287659645, -0.06390109658241272, 0.043845854699611664, 0.03406627103686333, 0.006188702769577503, -0.07369539141654968, -0.021163079887628555, -0.03849129378795624, -0.04090453311800957, 0.014796382747590542, 0.01951640471816063, -0.023528791964054108, 0.049201540648937225, 0.012699111364781857, -0.01600959710776806, 0.05061228573322296, -0.015933258458971977, -0.03322609141469002, -0.01479778066277504, 0.018822718411684036, 0.005161512643098831, -0.012011968530714512, 0.007709816098213196, 0.015985069796442986, 0.07822851091623306, 0.029411161318421364, 0.02893950417637825, 0.027105318382382393, -0.00852180365473032, 0.04461522027850151, 0.009413364343345165, -0.014785608276724815, -0.046358492225408554, 0.010285760276019573, -0.05088208615779877, 0.012378619983792305, 0.0004094942705705762, 0.0383664108812809, -0.014408763498067856, -0.04113859310746193, -0.022657642140984535, 0.02855570800602436, -0.05572140961885452, 0.016923168674111366, -0.019046984612941742, 0.02602824755012989, 0.06231860816478729, -0.035744085907936096, 0.03552604839205742, -0.03743505850434303, -0.006001450587064028, 0.003381455084308982, 0.026394153013825417, -0.04496720805764198, 0.0028786836192011833, 0.004542505368590355, 0.017347536981105804, 0.02091730572283268, 0.045332811772823334, 0.02458321675658226, 0.014192916452884674, -0.012427053414285183, -0.011974960565567017, 0.00656123599037528, 0.03455691784620285, 0.04834452643990517, 0.046860262751579285, -0.010829901322722435, 0.00043775452650152147, -0.0004922861116938293, -0.017827609553933144, -0.012205296196043491, -0.01213944423943758, -0.036330804228782654, 0.013825961388647556, -0.022415444254875183, -0.061858903616666794, 0.043781377375125885, 0.001843173406086862, -0.001962244976311922, 0.05312651768326759, -0.007853620685636997, -0.005575047340244055, -0.01664927415549755, 0.024348704144358635, 0.06762237101793289, -0.05328700318932533, -0.03135298565030098, -0.013087890110909939, -0.03779568895697594, -0.00037134584272280335, 0.015279468148946762, -0.04169320687651634, -0.02688494324684143, -0.002766289049759507, 0.010937035083770752, -0.04425594210624695, -0.0430431142449379, -0.006180490832775831, 0.008603451773524284, 0.0003521799808368087, 0.021539518609642982, -0.0037898339796811342, 0.003671635640785098, 0.0006983017083257437, 0.0013272487558424473, 0.040715932846069336, -0.0151758324354887, -0.030225899070501328, -0.008925323374569416, -0.007512514945119619, 0.02032194659113884, -0.022539736703038216, 0.0231228768825531, 0.021746642887592316, -0.00896087009459734, 0.01657717116177082, -0.04848185554146767, 0.014222283847630024, -0.003451620927080512, 0.020413842052221298, -0.008799007162451744, -0.012767125852406025, -0.020191265270113945, 0.004287499003112316, -0.04432957246899605, 0.01394804660230875, 0.006761426571756601, -0.007260112091898918, -0.006153815425932407, 0.019869178533554077, 0.010656051337718964, 0.053423166275024414, -0.00711008720099926, -0.035686131566762924, 0.03703656420111656, -0.020741555839776993, -0.036346979439258575, -0.01775984652340412, -0.051547300070524216, 0.0030246591195464134, 0.02088465727865696, 0.009366447106003761, -0.03766762092709541, 0.04892449080944061, 0.03013501688838005, 0.046792902052402496, 0.03883160278201103, -0.010302706621587276, 0.029100824147462845, -0.03366897627711296, -0.03180485591292381, -0.08339882642030716, -0.020013004541397095, 0.05280263349413872, 0.017627259716391563, 0.017995884642004967, -0.002056941157206893, -0.03229169920086861, 0.01674456149339676, -0.056232862174510956, -0.03300068527460098, 0.021642722189426422, -0.02017255499958992, 0.01414779108017683, 0.007518355268985033, -0.05189208686351776, 0.003690735436975956, 0.04356423020362854, -0.015603060834109783, -0.037178885191679, -0.03699663653969765, 0.04789414629340172, -0.020547805353999138, 0.04127991199493408, -0.028936240822076797, -0.02169693075120449, 0.052488215267658234, 0.016773993149399757, 0.013178518041968346, 0.04647867754101753, -0.02307794615626335, 0.01668606698513031, 0.04658269137144089, -0.0008317258907482028, -0.0032804973889142275, 0.03628874570131302, -0.03288160637021065, -0.03643137589097023, 0.05664302036166191, -0.005514855030924082, -0.018781354650855064, -0.04707827419042587, 0.06927850097417831, 0.018757518380880356, -0.045434918254613876, -0.04927729442715645, 0.03032512776553631, -0.02580326609313488, -0.02196531742811203, -0.03574212267994881, 0.010474046692252159, -0.03307933732867241, 0.052240751683712006, -0.009026170708239079, 0.021327340975403786, 0.06325159966945648, 0.02725459262728691, 0.003181288717314601, 0.010545204393565655, 0.08185730129480362, 0.11836361885070801, 0.06135028600692749, 0.012847712263464928, 0.07664504647254944, 0.009306099265813828, -0.04122670367360115, -0.013796349987387657, -0.02737552486360073, -0.024567879736423492, 0.007319292053580284, 0.01650204136967659, 0.06062963232398033, -0.04293517768383026, 0.0684749111533165, -0.03294164314866066, -0.036261171102523804, -0.003160447347909212, -0.02693450264632702, 0.042674288153648376, 0.09563067555427551, 0.003811595495790243, 0.0423697791993618, -0.07099276036024094, -0.03928926959633827, 0.01681416854262352, -0.006084755528718233, -0.00783922802656889, 0.037670034915208817, -0.019368566572666168, -0.010433198884129524, -0.001583470730111003, 0.02148415893316269, 0.08526288717985153, -0.04122564196586609, -0.004644574597477913, 0.0076128332875669, 0.0025336788967251778, -0.007595845498144627, 0.010198685340583324, -0.00636310875415802, -0.014112361706793308, -0.033643100410699844, -0.04056253656744957, -0.03086492232978344, -0.013457492925226688, -0.05766789987683296, 0.00866263173520565, -0.04355163872241974, 0.019841762259602547, -0.01978348381817341, 0.0006277369102463126, -0.026661092415452003, -0.04533796012401581, -0.03835968300700188, -0.048227086663246155, -0.05886213481426239, -0.020099332556128502, 0.0038202309515327215, -0.003176814178004861, -0.023876527324318886, 0.011429890990257263, -0.023502476513385773, -0.020495189353823662, 0.050479672849178314, -0.05422919616103172, -0.0026365306694060564, 0.0037161377258598804, -0.001133606070652604, 0.017972387373447418, 0.015498112887144089, 0.057003382593393326, -0.00018718125647865236, 0.024176020175218582, -0.01511024497449398, 0.010479224845767021, 0.038299959152936935, 0.01739591360092163, -0.012435066513717175, -0.08005277067422867, -0.025713685899972916, 0.02090345323085785, -0.055281657725572586, -0.08509284257888794, -0.005380355753004551, 0.03122432716190815, 0.0159846730530262, 0.02078326791524887, 0.001776425400748849, -0.021689139306545258, -0.023947160691022873, 0.021978067234158516, 0.00026137984241358936, -0.00020418550411704928, 0.005440772511065006, -0.01164567843079567, 0.06573072820901871, 0.019295739009976387, -0.037082042545080185, -0.013785384595394135, -0.018626084551215172, 0.003619673429057002, 0.002702781232073903, -0.04576840251684189, -0.04086407646536827, -0.04442126303911209, -0.07930167019367218, -0.05041741579771042, 0.010324793867766857, -0.04807954654097557, -0.022467639297246933, 0.006191625725477934, 0.015342533588409424, -0.02924065850675106, 0.021907338872551918, -0.03821493685245514, 0.04383980855345726, -0.014996756799519062, -0.020915335044264793, -0.026072587817907333, -0.004499263130128384, -0.01942477747797966, 0.009373861365020275, 0.014309042133390903, -0.0654924139380455, -0.001599679933860898, -0.030372263863682747, 0.03367595747113228, 0.02800952084362507, 0.02579396404325962, 0.010192296467721462 ]
[ -0.07011385262012482, -0.005195483099669218, -0.046846307814121246, 0.003537194337695837, 0.0597967728972435, -0.04525524377822876, 0.004806122742593288, 0.018976038321852684, 0.03540726378560066, -0.00008218816219596192, 0.053826235234737396, -0.03456083685159683, 0.03161156177520752, -0.0002695949515327811, 0.06887054443359375, -0.011333175003528595, -0.026369627565145493, -0.07643458247184753, -0.04268844053149223, 0.04360956326127052, -0.05490067973732948, -0.06210172921419144, -0.023333566263318062, -0.04719403386116028, 0.010271603241562843, 0.025634756311774254, 0.021075494587421417, -0.02554253488779068, -0.012435629032552242, -0.21082144975662231, 0.004472458269447088, 0.03322778642177582, 0.032360151410102844, 0.02040412649512291, 0.031873174011707306, 0.03284482657909393, 0.04121566191315651, -0.02532663196325302, 0.0048487489111721516, 0.028563378378748894, 0.02542981132864952, 0.0002999201533384621, -0.04348425939679146, -0.01619175635278225, 0.03964618220925331, 0.02107108198106289, -0.0003961499605793506, -0.03247400373220444, -0.06068015471100807, 0.026758983731269836, -0.023688504472374916, -0.037141770124435425, -0.021244365721940994, 0.02335275523364544, 0.027494873851537704, 0.04445802420377731, 0.057270292192697525, 0.054956935346126556, 0.023905957117676735, 0.04963202401995659, -0.0008182343444786966, -0.008342056535184383, -0.13080981373786926, 0.04843805730342865, 0.0007819174788892269, -0.017694389447569847, -0.03385971114039421, -0.04419328272342682, -0.05265554413199425, 0.0897558182477951, 0.03627559542655945, 0.017673280090093613, -0.04474514722824097, 0.056773170828819275, -0.002434541005641222, 0.03918273374438286, -0.03095673769712448, 0.023490149527788162, 0.050524499267339706, -0.012947280891239643, -0.042030464857816696, 0.015485530719161034, -0.04005732014775276, -0.00589712243527174, -0.031053846701979637, 0.041711512953042984, -0.015901409089565277, 0.04069375619292259, 0.002572957193478942, 0.02744760550558567, 0.04180899262428284, 0.03800823166966438, 0.02147888019680977, 0.030215062201023102, -0.08040083944797516, -0.02907356061041355, 0.024758044630289078, 0.04111320897936821, -0.008422691375017166, 0.4137594699859619, -0.013378195464611053, 0.01504581980407238, 0.04730171710252762, 0.0696161538362503, -0.005767923314124346, -0.03722284734249115, 0.016686707735061646, -0.06472427397966385, 0.03790845721960068, -0.021243605762720108, 0.011331530287861824, -0.04347090423107147, 0.04218508303165436, -0.06964156031608582, 0.011690243147313595, 0.03226935490965843, 0.08235491067171097, 0.025304101407527924, -0.009134507738053799, 0.0021047485060989857, 0.0018428526818752289, -0.005519695580005646, 0.04736306145787239, 0.013300486840307713, 0.02561761625111103, 0.041025180369615555, 0.021536139771342278, 0.04827211797237396, 0.0025723380967974663, 0.03183941915631294, 0.056391991674900055, -0.009233986027538776, -0.0659201443195343, 0.04107658565044403, -0.03310629352927208, 0.014349827542901039, 0.025254374369978905, -0.03561194986104965, -0.0284418947994709, 0.0335141159594059, -0.005208974238485098, -0.03801828622817993, 0.03621359169483185, 0.017636489123106003, -0.01834706962108612, 0.16512514650821686, -0.022359997034072876, -0.03365851938724518, -0.0328025296330452, -0.05923248827457428, 0.0176182072609663, 0.04815882071852684, -0.015058956108987331, -0.06217753142118454, -0.02209590934216976, 0.016952263191342354, 0.09569638222455978, -0.01088104210793972, -0.0929010808467865, 0.008160430938005447, -0.005842885468155146, -0.016853945329785347, -0.052956581115722656, 0.0670371875166893, 0.03143397718667984, -0.1328732967376709, -0.009624590165913105, 0.019374534487724304, -0.004070343915373087, -0.065721295773983, 0.04968717694282532, 0.016085047274827957, -0.04559462517499924, -0.001658536260947585, 0.05030699819326401, -0.022515172138810158, -0.03965055197477341, -0.001850215019658208, 0.027867391705513, 0.006247928831726313, -0.02142721600830555, 0.01086599100381136, -0.05180555209517479, -0.0010823942720890045, -0.06838912516832352, -0.0429842509329319, -0.03988073021173477, 0.04032609239220619, -0.03715169057250023, -0.030717549845576286, -0.04260421544313431, -0.020722180604934692, -0.04380147159099579, 0.08779248595237732, -0.04277738928794861, -0.04905213788151741, -0.03401384502649307, -0.008270212449133396, -0.03701455891132355, -0.02490568347275257, 0.02279917523264885, 0.02855762653052807, -0.0091782221570611, 0.01798173598945141, -0.046673476696014404, 0.03612619265913963, 0.0574280247092247, -0.044308748096227646, 0.06810685247182846, 0.03239232301712036, -0.049095604568719864, -0.01234708447009325, -0.022291433066129684, 0.03765329718589783, 0.006016576662659645, -0.02462819404900074, -0.00528085557743907, -0.014473100192844868, 0.0194279532879591, 0.05226821452379227, -0.009940615855157375, 0.015723424032330513, -0.027725335210561752, -0.3559022545814514, -0.04808296635746956, -0.02220786362886429, 0.010347690433263779, 0.004300625063478947, -0.034084126353263855, 0.03096357174217701, -0.0025348691269755363, 0.011731183156371117, 0.039184365421533585, 0.050576914101839066, 0.015247679315507412, -0.022856174036860466, -0.043238669633865356, 0.014237962663173676, 0.033145781606435776, 0.0017982663121074438, 0.01001232024282217, -0.037211187183856964, -0.01055819634348154, 0.01454668678343296, -0.02773960866034031, -0.015932096168398857, -0.03018527664244175, 0.013468679040670395, -0.017309166491031647, 0.11276262253522873, 0.004904544446617365, -0.006725214887410402, -0.05208292230963707, 0.02904530242085457, 0.008954869583249092, -0.025118891149759293, -0.05357416719198227, 0.01523837074637413, 0.005031374283134937, 0.031514380127191544, -0.013744654133915901, -0.023741954937577248, -0.017483362928032875, -0.055404435843229294, -0.010824833996593952, -0.03373009338974953, -0.024326542392373085, -0.056681472808122635, 0.02275705151259899, -0.04086845740675926, -0.017148476094007492, -0.010658836923539639, 0.09966190159320831, -0.010470813140273094, 0.009973299689590931, 0.014681614935398102, 0.008609330281615257, -0.008183612488210201, -0.032825831323862076, -0.07313639670610428, -0.015626704320311546, -0.013193361461162567, 0.03105139546096325, -0.014964185655117035, 0.016361214220523834, -0.0056005073711276054, -0.086732879281044, 0.03658412769436836, -0.01744907721877098, 0.002968940418213606, 0.007202022708952427, 0.028295962139964104, -0.036418426781892776, -0.038867250084877014, 0.08081544190645218, -0.004321593325585127, 0.030645402148365974, 0.02446095086634159, 0.020972836762666702, -0.013571653515100479, -0.012387936003506184, 0.018570316955447197, -0.004402253311127424, 0.045026298612356186, -0.022153234109282494, 0.07942496985197067, -0.03187521547079086, -0.011185460723936558, 0.06623517721891403, 0.017192427068948746, -0.01949192024767399, 0.07633685320615768, 0.024577058851718903, -0.055245328694581985, -0.001072534010745585, -0.021626479923725128, -0.039073534309864044, 0.06215977296233177, -0.023977773264050484, -0.2591288089752197, 0.04197190701961517, 0.010159585624933243, 0.04587921127676964, 0.017961667850613594, 0.012101697735488415, 0.004448786377906799, -0.029962653294205666, 0.003821019781753421, -0.015478127636015415, 0.05334668606519699, 0.03505333140492439, -0.01006799191236496, -0.016959255561232567, 0.011173629201948643, 0.019813774153590202, 0.008156705647706985, 0.0168558731675148, 0.029919583350419998, -0.0018412708304822445, 0.04767124727368355, -0.034828685224056244, 0.18187254667282104, 0.009979091584682465, 0.013217927888035774, 0.030303070321679115, -0.02994248829782009, -0.027277033776044846, 0.024699535220861435, -0.035262901335954666, -0.02344200573861599, 0.02337343990802765, -0.0002033897180808708, 0.025014953687787056, 0.010437297634780407, -0.03047732263803482, -0.013362723402678967, 0.02674257569015026, 0.012752672657370567, -0.04480618238449097, 0.01570693403482437, -0.007144583389163017, -0.03809026628732681, 0.031081417575478554, 0.08883875608444214, -0.01004695799201727, 0.005928275641053915, 0.0020691752433776855, -0.05473662540316582, -0.0068411557003855705, -0.02312314696609974, -0.06461668759584427, -0.002966613508760929, 0.004276847466826439, 0.030089473351836205, 0.07373259216547012, -0.005124955903738737, -0.01686176098883152, 0.026735300198197365, 0.030857279896736145, -0.0313214510679245, -0.021406516432762146, 0.10814710706472397, -0.022057609632611275, 0.0077466885559260845 ]
[ 0.012098252773284912, 0.052874382585287094, 0.04580523818731308, 0.029210176318883896, -0.014626882039010525, -0.01722688600420952, -0.020836757495999336, -0.005395630374550819, -0.015278591774404049, -0.00147635443136096, -0.014830627478659153, 0.007632268127053976, 0.07379870116710663, 0.01536599826067686, 0.011672540567815304, -0.011186015792191029, -0.01101862546056509, 0.027666015550494194, 0.0172477588057518, -0.011311927810311317, -0.038990311324596405, -0.002512633102014661, 0.03249634429812431, -0.03329673781991005, -0.009024601429700851, 0.012227179482579231, -0.028777290135622025, -0.0049906945787370205, 0.029977135360240936, -0.10984592884778976, -0.031338196247816086, -0.02035890892148018, -0.021819500252604485, 0.03488336503505707, -0.029845520853996277, -0.014983359724283218, 0.00803239457309246, 0.017353389412164688, 0.026093272492289543, 0.017460370436310768, -0.004505754914134741, -0.017372356727719307, -0.03779083117842674, 0.010017628781497478, 0.023158641532063484, 0.005182392429560423, -0.0033440133556723595, -0.021722521632909775, -0.017447099089622498, -0.01777871884405613, -0.04985610395669937, -0.021580731496214867, -0.026955369859933853, 0.01930738054215908, 0.02439628168940544, 0.04093216359615326, -0.05770358070731163, -0.019705118611454964, -0.0013671333435922861, -0.026829056441783905, 0.0258114542812109, -0.018086815252900124, -0.08516962826251984, -0.027251943945884705, -0.013846109621226788, -0.013643814250826836, -0.0033144354820251465, 0.017860278487205505, 0.025448132306337357, 0.008212297223508358, -0.03936180844902992, 0.038788408041000366, -0.06148333102464676, -0.009999627247452736, -0.0026490523014217615, 0.0672505646944046, 0.04257892817258835, -0.032966043800115585, 0.01228440273553133, -0.03691799193620682, 0.0017763382056728005, -0.008659224025905132, -0.018998360261321068, 0.012586948461830616, -0.0141841946169734, -0.01681654527783394, 0.008693651296198368, 0.0015018198173493147, 0.005640762858092785, 0.0018202676437795162, -0.023318851366639137, 0.007016445510089397, -0.01649017445743084, 0.003720283741131425, -0.09522578120231628, -0.0020337707828730345, 0.03896843641996384, -0.0005130820791237056, 0.02648422308266163, 0.817963182926178, 0.03378542512655258, -0.00857015885412693, 0.02259683609008789, 0.010807806625962257, -0.0060339439660310745, 0.01728837937116623, 0.012993563897907734, -0.00020991153724025935, -0.00016659563698340207, -0.016921883448958397, -0.02613416314125061, 0.00013611107715405524, -0.028113102540373802, 0.014009542763233185, -0.015542833134531975, 0.039214082062244415, 0.03536514937877655, -0.0032546238508075476, -0.007631502579897642, 0.0014468843583017588, -0.008541801013052464, -0.005860135890543461, -0.033206261694431305, 0.002014772966504097, -0.023173000663518906, -0.17194227874279022, -0.02529481053352356, -6.750992626467018e-33, 0.04043596237897873, 0.015689527615904808, 0.06545184552669525, 0.00037254678318277, 0.0010703759035095572, 0.04065370932221413, 0.01207736972719431, -0.014447509311139584, -0.04882872477173805, -0.031825561076402664, -0.023389043286442757, 0.009266600012779236, 0.003450939664617181, -0.017549103125929832, 0.009741542860865593, -0.011861862614750862, 0.020066790282726288, 0.025868689641356468, -0.01420672982931137, 0.00824107974767685, 0.0149138905107975, 0.030654611065983772, -0.053666021674871445, 0.022546254098415375, 0.008638590574264526, 0.030648771673440933, -0.01182133425027132, -0.02302553318440914, -0.014114494435489178, -0.06005534157156944, -0.047927841544151306, 0.03350785747170448, 0.011678229086101055, 0.006138415075838566, -0.016491249203681946, -0.07241401076316833, -0.0061086853966116905, -0.017413580790162086, -0.014605637639760971, -0.08563999086618423, -0.04163876548409462, 0.009143284521996975, 0.01123320497572422, -0.02629549615085125, -0.04331912845373154, -0.0025933135766535997, -0.012846934609115124, -0.007907764054834843, -0.010162807069718838, 0.01875697262585163, 0.053090110421180725, 0.009831549599766731, -0.032839953899383545, 0.04241809993982315, -0.04553476721048355, 0.019612044095993042, 0.017404619604349136, 0.012839074246585369, -0.014246976003050804, 0.017905838787555695, 0.027814742177724838, 0.001287681283429265, -0.002038683043792844, 0.06391344219446182, 0.021121563389897346, 0.034100160002708435, -0.02687024511396885, -0.01373797096312046, -0.024898206815123558, 0.03813878446817398, -0.04576122388243675, 0.08000266551971436, -0.02724786289036274, -0.046585168689489365, 0.05030905082821846, -0.04011683166027069, -0.017570845782756805, -0.018236258998513222, -0.005683497525751591, 0.06312371045351028, -0.022319631651043892, 0.0016168555011972785, 0.019458705559372902, -0.026706423610448837, -0.02053873986005783, -0.0229242704808712, 0.053269341588020325, 0.01733754761517048, 0.024572966620326042, 0.012743695639073849, 0.06903666257858276, 0.01124429702758789, -0.01082643959671259, -0.005075611639767885, -0.015526960603892803, 6.247536477533495e-33, -0.018392173573374748, 0.014211450703442097, 0.009573227725923061, -0.004143313970416784, 0.0394219309091568, 0.007071054074913263, 0.03504212200641632, -0.0073479823768138885, -0.03090350702404976, 0.02887462079524994, -0.01272901613265276, -0.029364963993430138, 0.007380098104476929, 0.019897019490599632, 0.039723724126815796, -0.010486956685781479, -0.0010748649947345257, -0.06288059055805206, -0.010475640185177326, 0.03951198235154152, 0.003846073755994439, 0.001687294919975102, 0.021372536197304726, 0.05010640621185303, 0.0073830680921673775, 0.025069689378142357, 0.023611189797520638, -0.008976784534752369, -0.020272647961974144, -0.016123423352837563, -0.013173420913517475, -0.023877087980508804, -0.007009141147136688, -0.015554551035165787, 0.053760629147291183, 0.020242435857653618, -0.02228250354528427, 0.006508735939860344, 0.01947741210460663, -0.0028679834213107824, 0.009266311302781105, 0.03188265860080719, 0.003211772534996271, 0.06873942911624908, 0.02967257983982563, 0.007316255010664463, 0.0024138253647834063, -0.00759778032079339, 0.012371058575809002, 0.0312456414103508, 0.008373388089239597, 0.027674082666635513, -0.028786351904273033, 0.03315986692905426, 0.014200636185705662, -0.04244915395975113, -0.009164155460894108, 0.030782725661993027, 0.026919735595583916, -0.006557726301252842, -0.015198543667793274, -0.029504751786589622, -0.06815825402736664, 0.041981060057878494, 0.013559448532760143, -0.014269252307713032, -0.028416011482477188, 0.023493504151701927, -0.0037383423186838627, 0.015349896624684334, 0.016085369512438774, 0.0034846628550440073, -0.011996977031230927, 0.01649092510342598, 0.048620183020830154, -0.04144915193319321, -0.016005856916308403, -0.01642633229494095, -0.029658358544111252, 0.01327275950461626, 0.029449164867401123, 0.0013761830050498247, 0.019848724827170372, 0.018900683149695396, -0.016051316633820534, -0.0006983035709708929, -0.014795569702982903, 0.026635799556970596, -0.04433664679527283, -0.010299088433384895, 0.032605767250061035, -0.03949683904647827, 0.00036170249222777784, 0.04710295423865318, -0.0028460961766541004, -1.2421025097353322e-8, -0.04792776703834534, 0.0023556326050311327, -0.010684138163924217, -0.01189389731734991, -0.000944181636441499, 0.008314372971653938, 0.028143135830760002, 0.014646651223301888, 0.00014907213335391134, 0.014454011805355549, 0.008524727076292038, -0.02366003207862377, 0.013007471337914467, 0.015897413715720177, 0.003435324877500534, -0.044862233102321625, 0.008635083213448524, -0.014653539285063744, 0.03564366698265076, 0.024735521525144577, -0.03637048602104187, 0.03246746212244034, -0.050080638378858566, 0.01382240280508995, 0.0069827064871788025, 0.007613306399434805, 0.041221629828214645, -0.04610682651400566, 0.014492315240204334, -0.013768653385341167, -0.0042220004834234715, -0.02692645601928234, -0.01173991709947586, 0.027848465368151665, -0.04212859272956848, -0.017376121133565903, 0.02034275233745575, 0.027724670246243477, -0.006320010405033827, 0.029330851510167122, -0.018807079643011093, -0.010843099094927311, -0.02214393950998783, -0.02301299199461937, -0.028183093294501305, -0.021696217358112335, -0.016433270648121834, -0.04556723311543465, 0.04929406940937042, -0.04204792156815529, 0.0004204371361993253, -0.024858374148607254, 0.027217302471399307, 0.00035142566775903106, 0.029401294887065887, -0.014257160015404224, 0.01080495584756136, 0.0036236101295799017, 0.0048391674645245075, -0.02207045629620552, 0.00895117036998272, 0.0034865266643464565, -0.038597140461206436, -0.0028348497580736876 ]
neo4j-set-based-operations-with-the-experimental-cypher-optimiser
https://markhneedham.com/blog/2014/06/29/neo4j-set-based-operations-with-the-experimental-cypher-optimiser
false
2014-06-28 23:35:25
Data Science: Mo' Data Mo' Problems
[ "data-science-2" ]
[ "Data Science" ]
Over the last couple of years I've worked on several proof of concept style Neo4j projects and on a lot of them people have wanted to work with their entire data set which I don't think makes sense so early on. In the early parts of a project we're trying to *prove out our approach* rather than prove we can handle big data - something that http://www.markhneedham.com/blog/2012/09/30/data-science-making-sense-of-the-data/[Ashok taught me a couple of years ago on a project we worked on together]. In a Neo4j project that means coming up with an effective way to model and query our data and if we lose track of this it's very easy to get sucked into working on the big data problem. This could mean optimising our import scripts to deal with huge amounts of data or working out how to handle different aspects of the data (e.g. variability in shape or encoding) that only seem to reveal themselves at scale. These are certainly problems that we need to solve but in my experience they end up taking much more time than expected and therefore aren't the best problem to tackle when time is limited. Early on we want to create some momentum and keep the feedback cycle fast. We probably want to tackle the data size problem as part of the http://thinkrelevance.com/blog/2012/04/04/big-data-reference-model[implementation/production stage] of the project to use Michael Nygaard's terminology. At this stage we'll have some confidence that our approach makes sense and then we can put aside the time to set things up properly. I'm sure there are some types of projects where this approach doesn't make sense so I'd love to hear about them in the comments so I can spot them in future.
null
null
[ 0.019094029441475868, -0.020868632942438126, 0.009495861828327179, 0.05375261232256889, 0.08935091644525528, 0.002912161871790886, 0.03062291443347931, 0.02171100489795208, 0.022380661219358444, -0.014114032499492168, -0.006750066298991442, -0.00901502463966608, -0.050522755831480026, 0.026047881692647934, -0.025214269757270813, 0.05752241611480713, 0.061948422342538834, 0.00676635792478919, 0.03448743373155594, 0.0103389797732234, 0.028472477570176125, 0.04846727475523949, 0.008274735882878304, 0.047492336481809616, 0.03988616168498993, -0.0005826049018651247, 0.006613288074731827, -0.010707274079322815, -0.048834770917892456, -0.007978197187185287, 0.045219868421554565, -0.00981961190700531, 0.0022532118018716574, -0.0019002842018380761, 0.026404546573758125, -0.011447672732174397, -0.052919212728738785, 0.022893324494361877, -0.00508815748617053, -0.0066121299751102924, -0.07541577517986298, 0.054360371083021164, -0.025668589398264885, 0.010496393777430058, -0.046922191977500916, -0.010376510210335255, -0.04763360321521759, 0.01763235218822956, 0.0209532268345356, 0.02052215114235878, -0.08456962555646896, 0.02454148791730404, 0.008384063839912415, 0.023632092401385307, -0.02934332564473152, 0.043414004147052765, 0.018009832128882408, -0.07575775682926178, 0.02336055226624012, -0.023724200204014778, -0.002874542959034443, -0.03378797695040703, -0.020515739917755127, 0.017756227403879166, 0.027324603870511055, -0.04654986038804054, 0.014336597174406052, 0.05989309772849083, -0.03557268902659416, 0.014160772785544395, -0.01535251084715128, 0.007434435188770294, -0.017186686396598816, -0.008198060095310211, -0.016887962818145752, -0.06311076134443283, 0.02595476433634758, 0.04622821509838104, 0.02771828882396221, 0.04149815812706947, -0.03039681725203991, 0.024086154997348785, 0.008882437832653522, 0.02472417801618576, 0.00379701005294919, -0.048691485077142715, 0.000020576822862494737, -0.04760929197072983, -0.06904779374599457, 0.052441954612731934, 0.023654509335756302, -0.06592132151126862, 0.018987007439136505, 0.015091987326741219, -0.008937940001487732, 0.020881323143839836, 0.008809734135866165, 0.019355669617652893, 0.004750068765133619, -0.019572876393795013, -0.027223117649555206, -0.0335325188934803, -0.014924125745892525, 0.007521730847656727, -0.06852065771818161, -0.022252583876252174, -0.02085067331790924, -0.014508627355098724, -0.0128187770023942, -0.003202620428055525, -0.029500218108296394, 0.0104695288464427, -0.019791539758443832, 0.02057027444243431, -0.07668233662843704, 0.05211261287331581, 0.01742573082447052, -0.036545075476169586, -0.041776012629270554, 0.004894166719168425, 0.04231761395931244, 0.03259437158703804, -0.0027754742186516523, 0.06744685769081116, -0.03763031214475632, 0.021750526502728462, -0.008955425582826138, 0.04942241311073303, -0.010592054575681686, -0.05991406366229057, -0.013500703498721123, 0.05794877931475639, -0.0350712388753891, -0.001711407327093184, -0.0021536368876695633, -0.04709869995713234, -0.007085603661835194, 0.029432371258735657, 0.03844786435365677, 0.027228035032749176, 0.017202887684106827, -0.06307671964168549, 0.0410437285900116, 0.03686486929655075, 0.031614888459444046, 0.021321840584278107, -0.00711724441498518, -0.026677777990698814, -0.03871253877878189, -0.029574602842330933, -0.001999457599595189, 0.04016733542084694, 0.01816474460065365, -0.03172914311289787, 0.03899117559194565, 0.12854059040546417, 0.02147260122001171, 0.021122533828020096, -0.012584913522005081, 0.03860600292682648, 0.05136997997760773, 0.019544653594493866, 0.0254087932407856, 0.023687804117798805, -0.006874670274555683, -0.02827891707420349, 0.009391426108777523, 0.051992785185575485, -0.0004294675891287625, 0.03015318512916565, -0.035772379487752914, -0.0490105040371418, 0.06468676030635834, -0.0456986241042614, -0.00785045139491558, 0.06489458680152893, 0.07395516335964203, 0.026110585778951645, 0.011859023943543434, 0.0025478757452219725, -0.08060416579246521, 0.049896784126758575, 0.006204317789524794, 0.007323137484490871, 0.016934800893068314, -0.008685912936925888, 0.06305299699306488, 0.029134580865502357, 0.018195699900388718, 0.0407705083489418, -0.07825405895709991, -0.08278822153806686, -0.01157251838594675, -0.0231837946921587, 0.04224542900919914, -0.00868368148803711, 0.03278312459588051, 0.05286812409758568, -0.0010070166317746043, 0.05029265955090523, 0.040860291570425034, 0.007342033553868532, 0.03016025573015213, -0.05584225431084633, -0.03628060594201088, 0.06178753450512886, 0.03242738917469978, -0.04774584621191025, -0.04355042800307274, 0.021937886252999306, -0.02258320525288582, -0.01839524880051613, 0.03571879863739014, -0.03168487176299095, 0.02901952527463436, 0.029644498601555824, 0.046516239643096924, -0.011433504521846771, 0.014470183290541172, -0.031923193484544754, 0.04305964335799217, 0.0074643599800765514, -0.023176323622465134, 0.006340069230645895, 0.010214108042418957, 0.1140252873301506, 0.059289705008268356, -0.03154047578573227, -0.054176557809114456, 0.03778868913650513, 0.0234326533973217, -0.02960280142724514, 0.012645505368709564, -0.009606176987290382, 0.010084958747029305, -0.006963042542338371, -0.045165568590164185, -0.019770316779613495, 0.010073129087686539, -0.03528188541531563, 0.011478232219815254, 0.0493912398815155, -0.04508752375841141, 0.06541907042264938, 0.005147210322320461, 0.005068799946457148, -0.002394644310697913, -0.037509530782699585, -0.0711314007639885, 0.03251101076602936, 0.0018054487882182002, -0.0042896997183561325, 0.052191514521837234, -0.010444211773574352, -0.016922669485211372, -0.036503322422504425, -0.022617151960730553, 0.019440697506070137, 0.056791048496961594, 0.07298288494348526, -0.006878728978335857, 0.047529932111501694, -0.022948293015360832, 0.02301810123026371, 0.01326126791536808, -0.05093846470117569, -0.04938439279794693, -0.05088352784514427, 0.01953423209488392, 0.005268309731036425, 0.015037637203931808, -0.019818954169750214, 0.043859612196683884, 0.016978146508336067, 0.00416518934071064, -0.03810308501124382, 0.037688493728637695, 0.0029377865139395, -0.01008746400475502, -0.03434555232524872, -0.024263819679617882, 0.05407779663801193, -0.04700382798910141, -0.015096200630068779, 0.003809017362073064, -0.06270243227481842, 0.05369534716010094, -0.056782256811857224, -0.03350098431110382, -0.00139758235309273, 0.02470109425485134, 0.05414589121937752, 0.019622255116701126, -0.012416920624673367, 0.08364106714725494, 0.03489743918180466, 0.011892547830939293, -0.025699498131871223, 0.0021275507751852274, 0.06346382945775986, -0.018448881804943085, 0.026330141350626945, 0.047421347349882126, -0.008829095400869846, -0.013971608132123947, -0.02473991923034191, 0.0370272733271122, -0.02398538775742054, -0.2867419123649597, 0.038321156054735184, -0.012197325006127357, -0.04701175540685654, 0.004632350988686085, -0.055754996836185455, -0.0007496328325942159, -0.026625046506524086, -0.035704340785741806, -0.011870226822793484, -0.034728873521089554, -0.0373501181602478, -0.026703182607889175, 0.05900057032704353, 0.023011306300759315, 0.043414223939180374, 0.01754947192966938, -0.0430501252412796, 0.004491659812629223, 0.04885702207684517, -0.02814571186900139, -0.03519408777356148, -0.01459728553891182, 0.02542104572057724, 0.030008040368556976, 0.04716014489531517, -0.10010920464992523, 0.04529697448015213, -0.07377041131258011, -0.018865035846829414, 0.0006191604188643396, -0.01928272843360901, 0.012978586368262768, -0.02240557223558426, -0.015623136423528194, -0.01792294904589653, 0.04554823040962219, 0.02425812929868698, 0.004220506176352501, 0.013908695429563522, -0.02470344305038452, -0.04719499126076698, -0.02802801877260208, 0.004953330382704735, 0.07248371839523315, 0.004320025444030762, -0.08331423997879028, 0.00012853779480792582, -0.021237507462501526, 0.05226102098822594, -0.03357916697859764, -0.017292745411396027, -0.015063243918120861, 0.01141759566962719, -0.012881276197731495, -0.04136351868510246, 0.008920476771891117, -0.007967006415128708, -0.05102304741740227, -0.025816278532147408, -0.010926361195743084, -0.04318510740995407, 0.010551458224654198, -0.05510455742478371, -0.011674757115542889, -0.05457117408514023, -0.07592152059078217, -0.04407111182808876, 0.06084710359573364, 0.02057979442179203, -0.02247389778494835, 0.042000800371170044, 0.006513588596135378, -0.09790458530187607, -0.018978102132678032, -0.03506496921181679, 0.014351410791277885, 0.004795543849468231, -0.006828796584159136, 0.057988423854112625, -0.025095932185649872, -0.06317677348852158, 0.008396928198635578, 0.009800196625292301, 0.02860291302204132, 0.005418970715254545, 0.03199781849980354, -0.0009223736706189811, -0.03299509733915329, 0.03440093621611595, 0.05666070431470871, -0.007050723303109407, -0.03039689175784588, 0.001001528580673039, 0.020441845059394836, 0.00381267536431551, 0.002504360629245639, -0.013679411262273788, 0.007838801480829716, 0.035994261503219604, 0.014272292144596577, -0.04182625934481621, 0.025480099022388458, -0.006538453046232462, -0.023427218198776245, -0.03618818148970604, -0.04019000008702278, 0.03277919441461563, 0.034151967614889145, 0.029333023354411125, 0.010576721280813217, -0.0030701998621225357, 0.010007523000240326, -0.04223028942942619, -0.03748629614710808, -0.009816705249249935, 0.0029442820232361555, 0.038416340947151184, 0.010557696223258972, -0.018336646258831024, -0.043832775205373764, 0.00622881343588233, 0.03636133670806885, 0.005023062229156494, -0.05926167219877243, -0.0342642106115818, -0.014213040471076965, -0.030025718733668327, -0.006254075560718775, 0.016231829300522804, -0.028700344264507294, 0.036685019731521606, 0.02703520655632019, -0.038484156131744385, 0.03148037567734718, -0.010032017715275288, -0.06579858064651489, -0.027400098741054535, 0.01771993562579155, -0.0018769509624689817, -0.024294450879096985, 0.02057056501507759, 0.0015264952089637518, 0.04833444952964783, 0.04089387506246567, 0.01587585173547268, 0.00205887365154922, -0.004132164176553488, 0.039348304271698, -0.021171264350414276, 0.0045402999967336655, -0.05973821133375168, 0.0007872036076150835, -0.037971097975969315, -0.006362526677548885, -0.02646700106561184, 0.0389300175011158, -0.034929029643535614, -0.016834812238812447, -0.019371770322322845, 0.02453063428401947, -0.07222249358892441, -0.02705143764615059, -0.020820630714297295, 0.023266268894076347, 0.055657241493463516, -0.03319660574197769, 0.014531590975821018, -0.016507234424352646, -0.011537340469658375, 0.014460182748734951, 0.01535660307854414, -0.04335282742977142, -0.024646060541272163, 0.01836922951042652, 0.008821224793791771, -0.0021208012476563454, 0.022755268961191177, 0.04232437536120415, 0.02090861089527607, -0.013558263890445232, -0.018883930519223213, -0.012691779993474483, 0.008750954642891884, 0.05276316776871681, 0.03828279301524162, -0.0009233941091224551, 0.0022562649101018906, -0.011975707486271858, -0.004296449013054371, -0.038999829441308975, 0.006640152540057898, 0.0027310228906571865, 0.030980098992586136, -0.018165748566389084, -0.05643817409873009, 0.07042797654867172, 0.0034098641481250525, 0.00526098208501935, 0.036431994289159775, 0.015113494358956814, -0.013168578036129475, -0.015825912356376648, 0.026645705103874207, 0.06843031197786331, -0.056436989456415176, -0.022310949862003326, -0.000918692268896848, -0.00015386909944936633, 0.012560395523905754, 0.010116584599018097, -0.044148024171590805, -0.04412999749183655, -0.013996278867125511, 0.01802281104028225, -0.04915613308548927, -0.047550637274980545, -0.0018188788089901209, 0.01101074367761612, 0.0022883089259266853, 0.0033201754558831453, 0.0053707691840827465, -0.000012458292985684238, -0.022422270849347115, 0.002874725731089711, 0.019917072728276253, -0.026340531185269356, -0.0018350428435951471, -0.005317084491252899, -0.0318165048956871, -0.005688519682735205, -0.027411354705691338, 0.0036707445979118347, 0.019298894330859184, -0.024235516786575317, 0.0023761875927448273, -0.028481625020503998, 0.04058080539107323, 0.00451707886531949, 0.04576830938458443, -0.00483704311773181, -0.022071542218327522, -0.034501735121011734, 0.004325759597122669, -0.029990417882800102, 0.015461730770766735, -0.02961958386003971, 0.0048303487710654736, 0.00935443490743637, 0.029981546103954315, 0.006253045052289963, 0.024125974625349045, -0.016223330050706863, -0.036462269723415375, 0.049649450927972794, -0.04452165216207504, -0.027348242700099945, -0.05179910734295845, -0.055246349424123764, -0.015591148287057877, 0.006034992169588804, -0.003248922061175108, -0.01824166253209114, 0.0453839972615242, 0.04860464483499527, 0.03966674581170082, 0.03294966742396355, -0.01151361409574747, 0.04030885547399521, -0.05333384871482849, -0.012557093054056168, -0.07450361549854279, -0.0005715716979466379, 0.02196245640516281, -0.00013482972281053662, -0.002906542271375656, -0.013049428351223469, -0.04246607795357704, 0.0220133475959301, -0.06928699463605881, -0.035672564059495926, 0.03962188959121704, -0.013428336940705776, 0.021364150568842888, -0.012335731647908688, -0.0669499933719635, 0.0022872856352478266, 0.035645827651023865, -0.040315140038728714, -0.03987947851419449, -0.043415602296590805, 0.04279150068759918, -0.03067496046423912, 0.029321733862161636, -0.03107457049190998, -0.024675052613019943, 0.07195885479450226, 0.015237048268318176, 0.02427692338824272, 0.04095383360981941, -0.010153536684811115, 0.0409010611474514, 0.03656940534710884, -0.004101720172911882, -0.00804842822253704, 0.03330448269844055, -0.020252708345651627, -0.04324144870042801, 0.045667558908462524, 0.0026036787312477827, -0.021277613937854767, -0.04031972214579582, 0.07554913312196732, 0.03059341013431549, -0.028285760432481766, -0.04601247236132622, 0.018108485266566277, -0.03194362670183182, 0.006233870051801205, -0.025692997500300407, 0.00004418305979925208, -0.037380702793598175, 0.034045785665512085, -0.032247308641672134, -0.0062631238251924515, 0.06589280813932419, -0.008893930353224277, -0.005590349901467562, -0.007334063295274973, 0.0942251980304718, 0.08861075341701508, 0.06951688230037689, 0.008289913646876812, 0.066995769739151, -0.002600212348625064, -0.02715039812028408, 0.0037788688205182552, -0.01085516158491373, -0.013194264844059944, -0.011361564509570599, 0.025724254548549652, 0.052345629781484604, -0.018851395696401596, 0.06965457648038864, -0.0376310832798481, -0.012897476553916931, 0.007483726367354393, 0.010815574787557125, 0.01475362479686737, 0.0706733837723732, 0.01685722917318344, 0.024147171527147293, -0.029707226902246475, -0.04518958181142807, -0.01034952700138092, -0.02208297699689865, -0.023540878668427467, 0.04712839424610138, -0.012736435979604721, -0.0021689634304493666, 0.026136569678783417, 0.03979485481977463, 0.08603565394878387, -0.0333227775990963, 0.002447930397465825, -0.004481217823922634, 0.0360538624227047, -0.0214235782623291, 0.013002783060073853, -0.01585734635591507, -0.012127169407904148, -0.009199410676956177, -0.030573634430766106, -0.03142561763525009, -0.010207554325461388, -0.03420434892177582, 0.011181620880961418, -0.03817623108625412, -0.0246873926371336, 0.0011003423715010285, -0.01648695208132267, -0.02511226013302803, -0.04963730275630951, -0.018649958074092865, -0.040796082466840744, -0.07501573860645294, 0.0018479001009836793, 0.015423089265823364, -0.016731301322579384, -0.0159005057066679, -0.007234693039208651, -0.017469896003603935, -0.0323881097137928, 0.07801304012537003, -0.06774469465017319, -0.0014078872045502067, 0.008377856574952602, 0.028512433171272278, 0.03166300058364868, 0.02712264470756054, 0.03223647177219391, 0.013038095086812973, 0.027371173724532127, -0.013070376589894295, 0.0198711808770895, 0.027598228305578232, 0.021152270957827568, -0.0028740139678120613, -0.07077808678150177, -0.0007379857124760747, 0.02367045357823372, -0.03354376181960106, -0.07504147291183472, 0.0031380525324493647, 0.04060851037502289, 0.0019387189531698823, 0.04566526785492897, -0.01048571802675724, -0.010603842325508595, -0.02519417181611061, 0.0020646241027861834, -0.014246097765862942, 0.004060233477503061, 0.03090755082666874, -0.02057749219238758, 0.07465885579586029, 0.04016029089689255, -0.023938532918691635, -0.02843417227268219, -0.026280229911208153, 0.0016177401412278414, 0.010730854235589504, -0.029403626918792725, -0.041090019047260284, -0.029109109193086624, -0.08684343099594116, -0.041089776903390884, -0.0028479648754000664, -0.03326905146241188, -0.029686758294701576, 0.029576824977993965, 0.034557752311229706, -0.01993679441511631, 0.025760849937796593, -0.0411270335316658, 0.0434308759868145, -0.01583976298570633, -0.012692484073340893, -0.017493300139904022, 0.012530198320746422, -0.01376672089099884, 0.0028399426955729723, 0.011709055863320827, -0.06754708290100098, -0.006510954815894365, -0.010712332092225552, 0.045571740716695786, 0.032235365360975266, 0.03546282649040222, -0.008718840777873993 ]
[ -0.049894560128450394, -0.013813206925988197, -0.044676657766103745, -0.04631299525499344, 0.04898855462670326, -0.011559804901480675, -0.03330949693918228, 0.03460867330431938, 0.00006912411481607705, -0.028503011912107468, 0.029453054070472717, -0.044959135353565216, -0.018227843567728996, 0.014860476367175579, 0.06949681788682938, 0.01991165429353714, -0.0064543928019702435, -0.07932651042938232, 0.012615104205906391, 0.05985239893198013, -0.011688850820064545, -0.030210785567760468, -0.032672710716724396, -0.030391642823815346, 0.01057098712772131, 0.025230560451745987, 0.03716205805540085, -0.043036364018917084, -0.012796444818377495, -0.19591355323791504, -0.0037765963934361935, 0.015096615068614483, 0.04691256210207939, -0.011647727340459824, 0.0322519913315773, 0.052524346858263016, 0.03779683634638786, 0.01549084298312664, -0.012891016900539398, 0.04583210498094559, 0.0230482779443264, 0.015681345015764236, -0.03569735959172249, -0.016559166833758354, 0.044218510389328, 0.03777676820755005, -0.016116680577397346, -0.02379019372165203, -0.047702524811029434, 0.014203899540007114, -0.05676618963479996, -0.03462373465299606, -0.02653590589761734, -0.0004992770263925195, -0.0006759273237548769, 0.04946310073137283, 0.04181027412414551, 0.0591137520968914, 0.022031676024198532, 0.021214591339230537, 0.025805935263633728, 0.009159964509308338, -0.13685421645641327, 0.07248382270336151, 0.03236118331551552, 0.0338166318833828, -0.037231478840112686, -0.02496693655848503, -0.016907677054405212, 0.08645855635404587, 0.02606377750635147, -0.01928483322262764, -0.022701602429151535, 0.0621333047747612, -0.008391955867409706, 0.03827403485774994, -0.007639405317604542, 0.019800236448645592, 0.028341228142380714, -0.050306275486946106, -0.009981025010347366, 0.03912707790732384, -0.03387846052646637, -0.011608569882810116, -0.06656088680028915, 0.036829397082328796, -0.03962007537484169, 0.06175081804394722, 0.003309558844193816, 0.04333370923995972, 0.04599510878324509, 0.025559088215231895, 0.03120437264442444, 0.005146208219230175, -0.06844349205493927, -0.026975302025675774, 0.01282544620335102, 0.021676529198884964, -0.01691393181681633, 0.39558425545692444, -0.008366405963897705, -0.018208133056759834, 0.06238451600074768, 0.05888634920120239, -0.04138676077127457, -0.01975926198065281, -0.006273582577705383, -0.055315397679805756, 0.05983958765864372, -0.014441252686083317, 0.00478256493806839, 0.003258394543081522, 0.030894046649336815, -0.07151316851377487, 0.011272500269114971, -0.005724262911826372, 0.03621641919016838, 0.013045377098023891, -0.023738352581858635, -0.007613354362547398, -0.027848059311509132, 0.03215182200074196, 0.03321120887994766, -0.002948886714875698, -0.0017176374094560742, -0.02014460414648056, 0.0012245525140315294, 0.0617557168006897, 0.03199449181556702, 0.009237723425030708, 0.04526669904589653, -0.007234927266836166, -0.09688744693994522, 0.020584946498274803, -0.007823072373867035, -0.008346730843186378, 0.038666676729917526, -0.017134565860033035, -0.00701526366174221, 0.03452175855636597, 0.004082244820892811, -0.007116117049008608, 0.005084787495434284, -0.0017392316367477179, -0.05474233999848366, 0.13108719885349274, 0.019160449504852295, -0.028751933947205544, -0.014633672311902046, -0.05594685301184654, 0.020257683470845222, 0.04290757328271866, -0.01687590591609478, -0.07815639674663544, 0.024098554626107216, 0.014356529340147972, 0.09916956722736359, -0.021189533174037933, -0.1034807339310646, 0.014912170358002186, -0.042114585638046265, -0.012571240775287151, -0.04985310509800911, 0.06048166751861572, 0.04943586513400078, -0.08898606896400452, -0.00848135631531477, 0.00481044827029109, 0.05525263771414757, -0.0557195283472538, 0.004042474552989006, 0.02497289516031742, -0.02145969681441784, -0.006637780927121639, 0.06244058907032013, -0.029594169929623604, -0.04597238451242447, -0.00607144832611084, 0.01684780977666378, 0.012846152298152447, 0.02089937962591648, -0.019890638068318367, -0.01881800964474678, 0.018927784636616707, -0.07901488989591599, -0.08917426317930222, -0.052591536194086075, 0.02676362544298172, -0.04837753251194954, -0.004601703025400639, -0.014557880349457264, 0.007518468424677849, -0.0808502659201622, 0.09785251319408417, -0.054132334887981415, -0.061828579753637314, 0.004453183151781559, 0.020456261932849884, -0.04660671576857567, -0.02647360973060131, -0.03796869516372681, 0.01839514635503292, -0.03110318072140217, 0.026845844462513924, -0.07111503928899765, 0.04273572936654091, 0.08309875428676605, -0.029936635866761208, 0.09131764620542526, 0.05553644895553589, -0.02207331173121929, -0.02773188054561615, -0.008615406230092049, 0.014356033876538277, -0.009254178032279015, 0.015632428228855133, 0.015038547106087208, -0.007881974801421165, 0.0038790572434663773, 0.03832079842686653, -0.01908470317721367, 0.010777653194963932, -0.013466143049299717, -0.3569299876689911, -0.05872510001063347, -0.011754312552511692, -0.0035428879782557487, 0.03461978957056999, -0.03068706952035427, 0.030459733679890633, -0.011907354928553104, -0.01835518330335617, 0.025421099737286568, 0.05674218386411667, -0.006819478236138821, -0.015329558402299881, -0.10729934275150299, -0.010914137586951256, 0.005910297390073538, -0.02686471678316593, -0.003276701085269451, -0.05179250240325928, -0.017088554799556732, -0.02410755306482315, -0.03260229527950287, -0.024131543934345245, -0.06287068873643875, 0.006086168345063925, -0.029278725385665894, 0.1135198250412941, -0.004991712514311075, 0.04711199179291725, -0.031468283385038376, 0.04027608409523964, -0.013020377606153488, -0.010817604139447212, -0.10322669893503189, 0.012903345748782158, -0.023968975991010666, 0.0268541369587183, 0.03218438848853111, -0.021608708426356316, -0.028699500486254692, -0.027141369879245758, -0.01643500290811062, -0.04798845201730728, -0.032808102667331696, -0.059511978179216385, 0.051098454743623734, -0.03833632171154022, -0.0025806135963648558, -0.02787967212498188, 0.06549599021673203, 0.014472206123173237, 0.029443256556987762, 0.02807544730603695, 0.019011808559298515, 0.00018562329933047295, -0.026897810399532318, -0.09461721032857895, 0.024800430983304977, 0.03220141679048538, 0.025936247780919075, 0.011900385841727257, 0.06276648491621017, 0.021005555987358093, -0.07204373180866241, 0.008817467838525772, -0.0038061507511883974, -0.01594501920044422, 0.008738342672586441, 0.012747388333082199, -0.02863346040248871, -0.006807135418057442, 0.13560019433498383, -0.023951832205057144, 0.008690490387380123, 0.047669604420661926, 0.026787735521793365, -0.024387937039136887, 0.005944937001913786, 0.032602425664663315, 0.029090318828821182, 0.04398437589406967, -0.0361197255551815, 0.03385141119360924, -0.009149281308054924, 0.0037994906306266785, 0.037645041942596436, 0.008979052305221558, -0.07067420333623886, 0.04762005805969238, 0.03195877745747566, -0.00635415967553854, 0.005711093079298735, -0.03556389361619949, -0.05806867778301239, 0.07154404371976852, -0.01103833969682455, -0.23341874778270721, 0.04090569168329239, 0.037517938762903214, 0.06553938239812851, -0.014027098193764687, 0.012737493962049484, 0.02354614809155464, -0.024733619764447212, 0.025289442390203476, 0.006563479080796242, 0.01273985207080841, 0.03027590923011303, 0.012046880088746548, 0.017598075792193413, 0.019820917397737503, -0.01902211271226406, 0.026934493333101273, 0.006473278161138296, 0.03681401163339615, -0.02333836629986763, 0.046990394592285156, -0.019737375900149345, 0.1690259575843811, 0.026952693238854408, -0.0002488194440957159, 0.031211433932185173, -0.025014493614435196, 0.013678223825991154, 0.05579489469528198, -0.02565784566104412, -0.02844209596514702, 0.03373745083808899, -0.017052853479981422, 0.008426026441156864, 0.02218467742204666, -0.041830163449048996, -0.03910738229751587, 0.02524411305785179, 0.03808288648724556, -0.0031671179458498955, 0.03607076406478882, 0.010229693725705147, -0.012480623088777065, 0.044755566865205765, 0.0712989941239357, 0.013980306684970856, 0.02412635087966919, -0.04241451993584633, -0.0907137542963028, -0.01979207433760166, -0.04251997545361519, -0.04518360272049904, -0.017965693026781082, -0.026496076956391335, -0.001514510135166347, 0.0872095376253128, 0.018651561811566353, -0.016259774565696716, 0.03577911853790283, -0.012165830470621586, -0.02827814593911171, -0.03430917486548424, 0.07160372287034988, -0.0038195657543838024, 0.010469658300280571 ]
[ 0.024571452289819717, 0.04201197996735573, 0.002220033435150981, 0.027152396738529205, -0.01821313239634037, -0.013034842908382416, -0.02304326370358467, 0.012183981947600842, -0.02509559504687786, 0.0063781836070120335, -0.045196905732154846, 0.04203629866242409, 0.021835189312696457, -0.006741061806678772, -0.01782296411693096, 0.019843541085720062, 0.015185756608843803, 0.01292335707694292, 0.023115884512662888, -0.007878918200731277, -0.031954724341630936, -0.022287877276539803, 0.015418696217238903, -0.001122374669648707, -0.029316522181034088, 0.031325921416282654, -0.009495259262621403, -0.03316419571638107, 0.01690896414220333, -0.11589034646749496, -0.03142180293798447, -0.009966261684894562, -0.015880824998021126, -0.004080599173903465, -0.008306877687573433, 0.014240812510251999, 0.018414121121168137, 0.01892334595322609, 0.00627079838886857, 0.02793150767683983, 0.05423196777701378, -0.012870987877249718, -0.0017796659376472235, -0.0031091950368136168, 0.01842407137155533, 0.004439112264662981, -0.006762066390365362, -0.050784025341272354, 0.007767663802951574, -0.016318056732416153, -0.05555139482021332, -0.022949716076254845, -0.04739248380064964, 0.016946863383054733, -0.0007130558951757848, -0.015376385301351547, 0.006607125513255596, -0.016941012814641, -0.005151939578354359, 0.019495787099003792, 0.01083450485020876, -0.030019767582416534, -0.04496477171778679, -0.02381010167300701, -0.014151360839605331, 0.00665164552628994, 0.003016257658600807, 0.051524776965379715, -0.008155912160873413, 0.016703136265277863, 0.005379552487283945, 0.06325804442167282, -0.054895706474781036, -0.01747961901128292, -0.00200399081222713, 0.003531541209667921, 0.01230695005506277, -0.02275516651570797, 0.017796825617551804, 0.00006924447370693088, -0.042307090014219284, 0.039076756685972214, -0.0014326691161841154, -0.03512609750032425, -0.02669181115925312, 0.012209350243210793, 0.010168001987040043, -0.013069599866867065, 0.005224365275353193, 0.0071030789986252785, -0.022423654794692993, 0.01658928208053112, -0.030285324901342392, 0.00903231929987669, -0.10093798488378525, -0.014958963729441166, 0.0035187709145247936, -0.0044214301742613316, 0.02831827476620674, 0.8502033352851868, 0.019244255498051643, 0.0189654678106308, 0.014797373674809933, 0.016700102016329765, -0.0001768582733348012, 0.0008836185443215072, 0.019976487383246422, 0.007827227003872395, -0.026567550376057625, -0.0007856356096453965, -0.017838571220636368, 0.029805917292833328, 0.031578436493873596, 0.025121863931417465, 0.014702876098453999, 0.006724212318658829, -0.015550989657640457, 0.005480516701936722, -0.026898929849267006, 0.006747166160494089, -0.007728444412350655, 0.013348727487027645, -0.0016712633660063148, -0.004076350945979357, 0.010998053476214409, -0.13998723030090332, -0.04274957999587059, -8.068012823708463e-33, 0.045073866844177246, -0.0008085821173153818, 0.07085435837507248, -0.000274294288828969, -0.003892801236361265, 0.009148282930254936, 0.012018810957670212, -0.018205177038908005, -0.029838794842362404, -0.007754483260214329, -0.008053932338953018, -0.01579565927386284, 0.006449144799262285, -0.020858075469732285, 0.01873704418540001, -0.015973029658198357, -0.0006889567011967301, 0.00966318417340517, -0.023645110428333282, 0.01596415415406227, 0.02139056846499443, 0.02368246018886566, -0.038494907319545746, 0.039098337292671204, 0.022144274786114693, 0.009823482483625412, 0.01992662250995636, 0.017415368929505348, -0.0221351720392704, -0.03773470222949982, -0.06707286834716797, 0.015255765058100224, -0.016132257878780365, -0.02405155636370182, 0.029157036915421486, -0.05922059714794159, -0.019857805222272873, -0.002595344325527549, -0.009723694063723087, -0.040128443390131, -0.02628554403781891, -0.007945151999592781, -0.03630291298031807, -0.023798728361725807, -0.03626814857125282, 0.006257206201553345, 0.011262807063758373, 0.03628123551607132, -0.0011990047059953213, 0.0025453008711338043, 0.02187321148812771, 0.012913253158330917, -0.0003643003001343459, -0.008492141030728817, -0.029931649565696716, 0.021908119320869446, 0.007411054335534573, -0.02501002885401249, 0.012941724620759487, 0.028613923117518425, 0.025309722870588303, 0.006886515766382217, -0.006606062408536673, 0.021775731816887856, 0.0066312337294220924, 0.01567656174302101, 0.01400453969836235, 0.010525156743824482, 0.016117945313453674, 0.039475031197071075, -0.02554376795887947, 0.00932035967707634, -0.00700027821585536, -0.006772745866328478, 0.03721338510513306, -0.039974506944417953, -0.0058929454535245895, 0.013704792596399784, -0.007494157180190086, 0.04239276796579361, -0.00855244230479002, -0.021390467882156372, 0.013091362081468105, -0.05181506648659706, -0.001079393899999559, -0.0007914450252428651, 0.02693934552371502, 0.01521708071231842, 0.017451325431466103, 0.0048953755758702755, 0.03709816560149193, 0.0023123736027628183, -0.0063077667728066444, -0.032459426671266556, -0.050832632929086685, 8.234588454743643e-33, 0.030066249892115593, 0.0011950323823839426, -0.02290992997586727, 0.016103582456707954, 0.024993332102894783, 0.006864523980766535, -0.009045945480465889, 0.019097499549388885, -0.045539967715740204, 0.052695028483867645, 0.0023128672037273645, -0.025585878640413284, 0.02450927533209324, 0.008401556871831417, 0.025355126708745956, -0.008478052914142609, 0.021385682746767998, -0.05734366551041603, 0.007434268947690725, 0.002806766889989376, -0.009441726841032505, -0.006999759469181299, -0.0006727682775817811, 0.003412370104342699, 0.022273745387792587, 0.022865591570734978, -0.0025916111189872026, 0.0248090922832489, -0.018155332654714584, 0.016027906909585, -0.00811436865478754, -0.054413195699453354, 0.015743466094136238, -0.0039748637937009335, -0.03675876557826996, 0.0035006909165531397, -0.0010550383012741804, -0.02350783348083496, -0.004391659051179886, 0.02486591413617134, 0.010190094821155071, 0.015325239859521389, -0.019875116646289825, 0.06343679875135422, 0.0019510274287313223, 0.015441174618899822, -0.00834927149116993, 0.03193081170320511, 0.002693524584174156, -0.000910226022824645, -0.01192624680697918, 0.03562213107943535, 0.017855865880846977, -0.00811501033604145, 0.00018623449432197958, -0.04381638765335083, -0.020848823711276054, 0.019300689920783043, -0.0201506819576025, 0.02005826123058796, -0.037254780530929565, -0.042082346975803375, -0.002062553074210882, 0.008186369203031063, -0.02809891477227211, -0.009172575548291206, 0.012718670070171356, -0.005196858197450638, -0.001473208307288587, -0.01920054480433464, -0.008775312453508377, 0.004967095330357552, 0.0053357211872935295, 0.0453869067132473, 0.019221598282456398, -0.03511413559317589, -0.06581554561853409, 0.009248957969248295, -0.02977311797440052, 0.046523433178663254, 0.01762772910296917, 0.020088035613298416, 0.026017889380455017, 0.004861463792622089, 0.014457808807492256, 0.009080175310373306, -0.011035222560167313, 0.033640507608652115, -0.029766254127025604, -0.018454335629940033, 0.004466074984520674, 0.004291013348847628, -0.01271099504083395, 0.045778948813676834, -0.014546218328177929, -1.340394373272602e-8, 0.0044240462593734264, 0.02737903967499733, 0.005992664489895105, 0.004796001128852367, 0.01584121771156788, 0.01356328185647726, -0.005318239331245422, 0.02709573321044445, -0.016749683767557144, 0.040753111243247986, 0.042437512427568436, -0.023444877937436104, -0.013996398076415062, -0.01248972024768591, 0.0026176145765930414, -0.039104338735342026, -0.0024774849880486727, -0.041143763810396194, 0.022199805825948715, 0.027865923941135406, 0.012379003688693047, 0.06463931500911713, -0.046623870730400085, 0.019891705363988876, 0.045730601996183395, -0.004225835204124451, 0.017685318365693092, -0.062384892255067825, 0.0019719726406037807, -0.026397330686450005, -0.014497032389044762, -0.0390532985329628, -0.02713841013610363, 0.02404545433819294, -0.02297120727598667, -0.05728720873594284, 0.045401640236377716, 0.05170052498579025, 0.045450299978256226, 0.01740148290991783, -0.014841570518910885, 0.010498546063899994, -0.026987263932824135, -0.030092502012848854, -0.03181878849864006, 0.041402317583560944, -0.048339731991291046, -0.014035215601325035, 0.011035339906811714, -0.0021585607901215553, 0.006149867083877325, 0.011050592176616192, 0.0385737307369709, 0.03378613293170929, 0.02243144065141678, 0.01210777647793293, -0.016273142769932747, -0.0028694861102849245, -0.03643736615777016, -0.018133176490664482, 0.012691889889538288, 0.009419150650501251, -0.046647895127534866, -0.0064401887357234955 ]
data-science-mo-data-mo-problems
https://markhneedham.com/blog/2014/06/28/data-science-mo-data-mo-problems
false
2014-06-28 11:12:30
Neo4j: Cypher - Finding movies by decade
[ "neo4j" ]
[ "neo4j" ]
I was recently asked how to find the *number of movies produced per decade* in the movie data set that comes with the Neo4j browser and can be imported with the following command: [source,bash] ---- :play movies ---- We want to get one row per decade and have a count alongside so the easiest way is to start with one decade and build from there. [source,cypher] ---- MATCH (movie:Movie) WHERE movie.released >= 1990 and movie.released <= 1999 RETURN 1990 + "-" + 1999 as years, count(movie) AS movies ORDER BY years ---- Note that we're doing a label scan of all nodes of type +++<cite>+++Movie+++</cite>+++ as there are no indexes for range queries. In this case it's fine as we have few movies but If we had 100s of thousands of movies then we'd want to optimise the WHERE clause to make use of an http://docs.neo4j.org/chunked/stable/query-where.html#query-where-patterns[IN] which would then use any indexes. If we run the query we get the following result: [source,bash] ---- ==> +----------------------+ ==> | years | movies | ==> +----------------------+ ==> | "1990-1999" | 21 | ==> +----------------------+ ==> 1 row ---- Let's pull out the start and end years so they're explicitly named: [source,cypher] ---- WITH 1990 AS startDecade, 1999 AS endDecade MATCH (movie:Movie) WHERE movie.released >= startDecade and movie.released <= endDecade RETURN startDecade + "-" + endDecade as years, count(movie) ORDER BY years ---- Now we need to create a collection of start and end years so we can return more than one. We can use the http://docs.neo4j.org/chunked/stable/query-unwind.html[UNWIND] function to take a collection of decades and run them through the rest of the query: [source,cypher] ---- UNWIND [{start: 1970, end: 1979}, {start: 1980, end: 1989}, {start: 1980, end: 1989}, {start: 1990, end: 1999}, {start: 2000, end: 2009}, {start: 2010, end: 2019}] AS row WITH row.start AS startDecade, row.end AS endDecade MATCH (movie:Movie) WHERE movie.released >= startDecade and movie.released <= endDecade RETURN startDecade + "-" + endDecade as years, count(movie) ORDER BY years ---- [source,bash] ---- ==> +----------------------------+ ==> | years | count(movie) | ==> +----------------------------+ ==> | "1970-1979" | 2 | ==> | "1980-1989" | 2 | ==> | "1990-1999" | 21 | ==> | "2000-2009" | 13 | ==> | "2010-2019" | 1 | ==> +----------------------------+ ==> 5 rows ---- https://twitter.com/apcj[Alistair] pointed out that we can simplify this even further by using the http://docs.neo4j.org/chunked/stable/syntax-collections.html#_collections_in_general[RANGE] function: [source,cypher] ---- UNWIND range(1970,2010,10) as startDecade WITH startDecade, startDecade + 9 as endDecade MATCH (movie:Movie) WHERE movie.released >= startDecade and movie.released <= endDecade RETURN startDecade + "-" + endDecade as years, count(movie) ORDER BY years ---- And here's a http://gist.neo4j.org/?84dd2c6729b08f674b3b[graph gist] for you to play with.
null
null
[ 0.01339151430875063, -0.013627921231091022, -0.00011957425158470869, 0.022742299363017082, 0.08610869199037552, -0.016016757115721703, 0.020477596670389175, 0.020695647224783897, 0.002356609096750617, 0.009879098273813725, -0.000858426617924124, 0.023853937163949013, -0.05536520108580589, 0.023725351318717003, -0.021341631188988686, 0.07711061090230942, 0.054159633815288544, 0.00009984161442844197, 0.017607348039746284, -0.028052739799022675, 0.007675980217754841, 0.04768235981464386, -0.006592401769012213, 0.061380501836538315, 0.04427488520741463, -0.008247868157923222, -0.004656779579818249, -0.003221516264602542, -0.060017820447683334, 0.010698141530156136, 0.03787326067686081, 0.00020747874805238098, 0.003934904001653194, -0.012977947480976582, 0.029692457988858223, -0.005998845677822828, -0.024289006367325783, 0.001591992098838091, -0.013594774529337883, -0.002502712421119213, -0.047817666083574295, 0.009196470491588116, -0.01644454523921013, -0.0041885231621563435, -0.06532632559537888, 0.041378118097782135, -0.02858363837003708, 0.02390759065747261, 0.012738151475787163, 0.03107098676264286, -0.061759863048791885, 0.02029620110988617, -0.011926734820008278, -0.014654685743153095, -0.003021147334948182, 0.03967904672026634, 0.023518584668636322, -0.06244906038045883, 0.03707220405340195, 0.011825681664049625, 0.03721989691257477, 0.003004644298925996, 0.0013746586628258228, 0.030645962804555893, -0.00734258396551013, -0.036949947476387024, -0.01396916899830103, 0.07099394500255585, -0.046600066125392914, -0.01323749590665102, -0.010099190287292004, 0.011992709711194038, -0.017548808827996254, -0.008342016488313675, -0.001789929810911417, -0.031164763495326042, 0.012626918964087963, 0.03982842341065407, 0.029084505513310432, 0.041287608444690704, -0.03214006870985031, 0.004829948302358389, 0.014494531787931919, 0.013566411100327969, 0.009510680101811886, -0.032851289957761765, -0.015584821812808514, -0.016193538904190063, -0.043285515159368515, 0.022879423573613167, 0.02062426134943962, -0.04864678531885147, -0.011358939111232758, -0.007560269441455603, -0.03012380190193653, 0.014895148575305939, -0.0004238581459503621, -0.027387794107198715, 0.03676498308777809, 0.013165727257728577, -0.01979737915098667, -0.033398378640413284, 0.015575605444610119, -0.015815705060958862, -0.08284877240657806, -0.02671779878437519, -0.010561234317719936, 0.011723935604095459, 0.010075717233121395, -0.0043013128452003, -0.051030922681093216, 0.011975517496466637, -0.01890874281525612, 0.03278660029172897, -0.06259939074516296, 0.05660358443856239, -0.0007352468091994524, -0.041521940380334854, 0.010307117365300655, 0.027624676004052162, 0.03231958672404289, 0.019027503207325935, 0.006778713781386614, 0.07647951692342758, -0.04759315401315689, 0.05703248828649521, 0.020739823579788208, 0.049083638936281204, -0.01885630562901497, -0.10717686265707016, -0.014102797023952007, 0.03493262454867363, -0.005209092982113361, 0.0011956983944401145, -0.02606050670146942, -0.04043405503034592, -0.002904967637732625, 0.010068871080875397, 0.06577441841363907, 0.011186692863702774, 0.025855306535959244, -0.06137779727578163, 0.01226042490452528, -0.0226410161703825, 0.07095585018396378, -0.0029500594828277826, -0.0401284359395504, -0.04035049304366112, -0.03288423269987106, 0.007582539226859808, 0.020926058292388916, 0.04968263953924179, 0.057562198489904404, -0.06767179816961288, -0.009236952289938927, 0.0942494124174118, 0.020687634125351906, 0.008195278234779835, -0.018838752061128616, -0.0006521372124552727, 0.05752262845635414, 0.028517186641693115, 0.0216042622923851, 0.048325713723897934, -0.0057619791477918625, -0.014103498309850693, -0.006951484829187393, 0.04993918910622597, -0.0318610779941082, 0.014337575994431973, -0.03488796204328537, -0.05839992314577103, 0.06450782716274261, -0.049035534262657166, -0.008115213364362717, 0.04325347766280174, 0.06728652864694595, 0.03785189241170883, 0.020908961072564125, -0.013255816884338856, -0.07954110950231552, 0.049502722918987274, -0.008274894207715988, 0.011490577831864357, 0.01569056324660778, -0.006773398257791996, 0.061569083482027054, 0.025600682944059372, 0.019743237644433975, 0.015821851789951324, -0.09010390192270279, -0.08600228279829025, -0.014835016801953316, -0.026341062039136887, 0.04188936948776245, -0.03384939208626747, 0.030308863148093224, 0.03709670156240463, -0.015154723078012466, 0.007731088437139988, -0.003914500121027231, -0.005327645689249039, 0.0690864697098732, -0.04900754988193512, -0.04150236397981644, 0.05584165081381798, 0.012425134889781475, -0.03510380536317825, -0.011612406931817532, 0.022681161761283875, -0.0029143772553652525, 0.02282125875353813, 0.030451614409685135, -0.014491591602563858, 0.036810871213674545, 0.052671462297439575, 0.028333842754364014, -0.018807686865329742, 0.022167960181832314, -0.036186665296554565, 0.04650602489709854, 0.008335904218256474, -0.04706016182899475, -0.029537420719861984, -0.015753211453557014, 0.1261838972568512, 0.04336520656943321, -0.004278405569493771, -0.04715409502387047, 0.05605858191847801, 0.0056152427569031715, -0.003651892999187112, 0.015042233280837536, -0.013265072368085384, 0.015762828290462494, -0.017109200358390808, -0.03946206718683243, -0.004980526398867369, 0.0022722911089658737, -0.023960676044225693, -0.0021057361736893654, 0.04123859852552414, -0.023552611470222473, 0.039309948682785034, 0.017798323184251785, -0.009292942471802235, 0.011378142982721329, -0.03922559693455696, -0.08093126118183136, 0.025989318266510963, 0.00487555144354701, -0.014921421185135841, 0.0423288494348526, -0.02545807883143425, -0.008891566656529903, 0.004055466037243605, -0.022692082449793816, 0.06027432531118393, 0.048516977578401566, 0.0360277034342289, -0.007809919770807028, 0.035230133682489395, -0.014188583008944988, 0.021030209958553314, -0.03295688331127167, -0.029915738850831985, -0.04938777536153793, -0.0264918003231287, 0.0059293657541275024, 0.0011761061614379287, 0.034333858639001846, -0.008201955817639828, 0.04060114547610283, 0.015225033275783062, 0.02179998904466629, 0.002915681805461645, 0.03880972042679787, 0.006611870601773262, -0.022758247330784798, -0.05477273464202881, -0.016002273187041283, 0.04902598634362221, -0.05847892537713051, -0.048635609447956085, -0.02833341620862484, -0.047782063484191895, 0.05845758318901062, -0.035944800823926926, -0.027452904731035233, -0.006004427559673786, 0.032032959163188934, 0.06215041130781174, -0.00209084153175354, 0.0038670117501169443, 0.07549610733985901, 0.00499076209962368, 0.019480040296912193, 0.02839810773730278, 0.015236232429742813, 0.04100494459271431, -0.03509310260415077, 0.02447880059480667, 0.049400608986616135, -0.030605455860495567, -0.011951941065490246, -0.013757712207734585, 0.006441106088459492, -0.026928473263978958, -0.27152159810066223, 0.050124641507864, -0.06298895180225372, -0.038777198642492294, 0.016418417915701866, -0.06209227815270424, 0.01213409099727869, -0.028028098866343498, -0.015465076081454754, -0.006981971673667431, -0.0036128039937466383, -0.04290255531668663, -0.0391894094645977, 0.07235978543758392, 0.020814457908272743, 0.008295051753520966, 0.0067269871942698956, -0.048348356038331985, -0.008300693705677986, 0.037623852491378784, 0.004032630007714033, -0.051511671394109726, -0.013325466774404049, 0.028425663709640503, 0.0040015364065766335, 0.04982571303844452, -0.08810039609670639, 0.029339822009205818, -0.06552740186452866, -0.04147787392139435, -0.014724708162248135, -0.03159591183066368, 0.003497833851724863, 0.01000241469591856, -0.01855580136179924, 0.0012271181913092732, 0.07890354841947556, 0.013818248175084591, -0.009021111764013767, 0.01261452678591013, -0.04848996177315712, -0.03635040670633316, -0.026272447779774666, -0.0008075026562437415, 0.07948509603738785, 0.0019237257074564695, -0.05686401203274727, -0.030761513859033585, -0.003217583056539297, 0.052395299077034, -0.02252533659338951, -0.022086000069975853, -0.029455134645104408, 0.008131313137710094, 0.0026613848749548197, -0.05106852948665619, -0.005139573011547327, 0.00689974008128047, -0.03509753197431564, -0.008478228002786636, -0.020523594692349434, -0.03512177988886833, 0.01690945215523243, -0.03819036856293678, -0.021673817187547684, -0.04556393623352051, -0.07833332568407059, -0.021196750923991203, 0.05145644024014473, -0.006446063984185457, -0.020826803520321846, 0.019120212644338608, -0.019831320270895958, -0.10360715538263321, -0.06373153626918793, -0.020238375291228294, -0.004097289405763149, 0.0013616657815873623, -0.02612055279314518, 0.06684386730194092, -0.04274512454867363, -0.03134166821837425, -0.005334860645234585, 0.048671215772628784, 0.005186175461858511, -0.023090990260243416, -0.0034813210368156433, -0.029071107506752014, -0.017195289954543114, 0.00779029680415988, 0.06411217153072357, -0.053635865449905396, -0.009390531107783318, 0.005659966263920069, 0.009494664147496223, 0.03432687371969223, -0.007722627371549606, -0.0035069359000772238, 0.03237122297286987, 0.04467127472162247, 0.07170500606298447, -0.0375530906021595, 0.015285776928067207, -0.03754377365112305, -0.03079686500132084, -0.011827794834971428, -0.038609813898801804, 0.0405462272465229, 0.019033387303352356, 0.023791395127773285, -0.0031392425298690796, 0.023999076336622238, 0.017601583153009415, -0.02921835146844387, -0.01287261676043272, -0.02358926646411419, 0.016043689101934433, 0.019360505044460297, 0.0437014102935791, -0.02888515032827854, -0.06322905421257019, 0.02896150015294552, 0.023297853767871857, -0.01701735518872738, -0.0536658950150013, -0.055597417056560516, -0.010964597575366497, -0.02425040490925312, -0.004601646680384874, 0.034407105296850204, -0.056579675525426865, 0.04203639551997185, 0.020017877221107483, -0.022499267011880875, 0.07392686605453491, -0.04379580169916153, -0.021630989387631416, -0.014341539703309536, 0.013815863989293575, 0.01641612872481346, -0.02441589906811714, -0.020370766520500183, -0.009193984791636467, 0.0747016966342926, 0.02071499265730381, 0.014414473436772823, 0.033275067806243896, 0.01976190321147442, 0.009638361632823944, -0.006976707372814417, -0.010294225998222828, -0.005432027857750654, -0.003203253261744976, -0.03904874995350838, -0.01074100099503994, -0.0048689888790249825, 0.050893548876047134, -0.03830746188759804, -0.014748339541256428, -0.05706630274653435, 0.04259341210126877, -0.024207057431340218, 0.023445365950465202, -0.020488044247031212, 0.0025148973800241947, 0.0415789894759655, -0.015009754337370396, 0.029553353786468506, -0.024352019652724266, 0.005301476456224918, 0.0013850011164322495, 0.0065913028083741665, -0.0338902622461319, 0.018735216930508614, -0.0006530460668727756, 0.005793335847556591, 0.03203190490603447, 0.036331657320261, 0.022008957341313362, 0.023372897878289223, 0.00031600563670508564, -0.02018675208091736, -0.013563265092670918, 0.028819531202316284, 0.02927468903362751, 0.041186921298503876, -0.040133584290742874, 0.009117559529840946, -0.04182332754135132, -0.029824478551745415, -0.012650186195969582, -0.0006460855947807431, -0.019204337149858475, -0.01947014033794403, -0.03449210897088051, -0.06991017609834671, 0.042832110077142715, 0.01185761857777834, 0.001692957361228764, 0.030830221250653267, 0.027111787348985672, -0.008964466862380505, -0.023746564984321594, 0.043688587844371796, 0.06088021770119667, -0.05362444370985031, -0.014695634134113789, -0.004645351320505142, -0.006477109156548977, -0.0018926744814962149, 0.008811922743916512, -0.06642893701791763, -0.030891673639416695, -0.02099020406603813, 0.018886929377913475, -0.013001583516597748, -0.029154792428016663, -0.01995301991701126, 0.020376993343234062, -0.020988913252949715, 0.045935120433568954, 0.0018785931169986725, 0.013287547044456005, -0.014111149124801159, -0.02704605832695961, 0.045076169073581696, -0.035308632999658585, -0.021308302879333496, 0.014589807018637657, -0.013916216790676117, 0.014254407957196236, -0.03470408543944359, 0.03926080837845802, 0.011359324678778648, 0.005601729732006788, -0.028506483882665634, -0.060771726071834564, 0.029209857806563377, 0.0024767632130533457, 0.054919902235269547, -0.006378932390362024, 0.02976198121905327, -0.00967427808791399, 0.01866077072918415, -0.021727213636040688, -0.0048428066074848175, -0.0009280270314775407, -0.030249098315835, -0.0037051192484796047, 0.04388922452926636, 0.002035602228716016, 0.04292672500014305, -0.018925728276371956, -0.037241384387016296, 0.0479595884680748, -0.04722525179386139, -0.011293324641883373, -0.016627663746476173, -0.0719534158706665, 0.0411795973777771, 0.00529639795422554, 0.03599187359213829, -0.035177186131477356, 0.05323510989546776, 0.05635528266429901, 0.04117322340607643, 0.03821650519967079, -0.002758776070550084, 0.02769283577799797, -0.02751392126083374, -0.0203388798981905, -0.09544560313224792, -0.004317748825997114, 0.0351688452064991, 0.049551092088222504, -0.005076802801340818, 0.003242771839722991, -0.027676628902554512, 0.020576592534780502, -0.06509970873594284, -0.03625423461198807, 0.024186404421925545, -0.04590070992708206, 0.017284194007515907, 0.004923702217638493, -0.06699734926223755, -0.0034236772917211056, 0.05251891165971756, -0.019276978448033333, -0.026091771200299263, -0.07553855329751968, 0.055227313190698624, -0.022398699074983597, 0.03963840380311012, 0.0005110066849738359, -0.022536244243383408, 0.09581190347671509, 0.02302062325179577, 0.01712946407496929, 0.06086830049753189, -0.014274926856160164, 0.005062757525593042, 0.026470333337783813, -0.034322187304496765, -0.004141340963542461, 0.032342229038476944, -0.0038500933442264795, -0.018999414518475533, 0.02077842690050602, 0.009223677217960358, -0.020799674093723297, -0.04941139370203018, 0.06697824597358704, 0.018576597794890404, -0.04548541083931923, -0.05638587102293968, 0.030707236379384995, -0.011037912219762802, -0.015591807663440704, -0.04701051861047745, 0.013475427404046059, -0.04439302906394005, 0.050828322768211365, -0.035707879811525345, 0.025525907054543495, 0.062170132994651794, 0.005460355430841446, 0.006548536475747824, 0.027101071551442146, 0.08277864754199982, 0.08425483852624893, 0.043455712497234344, 0.013551956973969936, 0.06669683754444122, -0.014817187562584877, -0.01275924313813448, -0.024447068572044373, -0.037849392741918564, -0.005495698656886816, 0.004339034669101238, -0.0002614092663861811, 0.06794165819883347, -0.027917686849832535, 0.07277623564004898, -0.021220296621322632, -0.024014318361878395, -0.0005756228347308934, -0.03764534369111061, 0.03497372195124626, 0.05843924731016159, 0.019657425582408905, 0.02572936937212944, -0.03541690111160278, -0.01999547891318798, 0.03225023299455643, 0.0011086196172982454, -0.024643370881676674, 0.030519770458340645, -0.004810682963579893, -0.005519657861441374, 0.0024660415947437286, 0.0484255813062191, 0.08554971218109131, -0.004217216279357672, -0.003608402330428362, 0.0013482788344845176, -0.0029999450780451298, -0.009463919326663017, 0.026955781504511833, -0.019976533949375153, -0.02287103794515133, -0.010333912447094917, -0.04844160005450249, -0.023435194045305252, -0.009040245786309242, -0.04089299961924553, -0.012333037331700325, -0.03808445483446121, -0.002846227027475834, -0.001368514378555119, -0.023403145372867584, -0.005229431204497814, -0.04182009398937225, -0.04551462456583977, -0.036623116582632065, -0.07430017739534378, 0.008566910400986671, 0.025522908195853233, -0.0007790287490934134, -0.012734429910779, -0.009318684227764606, -0.03774786740541458, -0.007757026236504316, 0.05898044630885124, -0.05843258649110794, 0.00383317144587636, -0.001415943494066596, 0.011350263841450214, 0.025222966447472572, 0.028440279886126518, 0.04851049184799194, -0.013876386918127537, -0.0015754839405417442, 0.007525103632360697, 0.04673711583018303, 0.04309350252151489, -0.001469195238314569, 0.003975204657763243, -0.06396963447332382, -0.0009304473642259836, 0.019009742885828018, -0.02021365985274315, -0.07948287576436996, -0.00808970257639885, 0.04099561646580696, 0.0033087884075939655, 0.04562247917056084, -0.0034717018716037273, -0.008598987013101578, -0.03191075474023819, 0.04018593952059746, 0.0010391836985945702, -0.025314893573522568, 0.03584274277091026, -0.0259261317551136, 0.06250657141208649, 0.023030877113342285, -0.027499202638864517, -0.019998135045170784, -0.015775270760059357, -0.0243714340031147, 0.020020248368382454, -0.038450248539447784, -0.01688997447490692, -0.054920271039009094, -0.08792801201343536, -0.05450647696852684, -0.0025400954764336348, -0.02028857171535492, -0.02377248741686344, -0.011316552758216858, 0.05585365369915962, -0.007325815036892891, 0.024011552333831787, -0.034287936985492706, 0.01817760057747364, -0.017933132126927376, -0.033638469874858856, -0.029476048424839973, 0.020698197185993195, -0.022764667868614197, -0.000010718834346334916, 0.019867755472660065, -0.03073858842253685, -0.03480076417326927, -0.03500702977180481, 0.02638489380478859, 0.038855746388435364, 0.040125489234924316, -0.006938724312931299 ]
[ -0.06886494904756546, 0.004426878411322832, -0.03503313660621643, -0.02441561035811901, 0.07166306674480438, -0.01641736552119255, -0.04182400926947594, -0.0037078079767525196, -0.0030069199856370687, -0.04069840908050537, 0.01652228832244873, -0.011145040392875671, 0.0035742861218750477, 0.04430897906422615, 0.039761874824762344, -0.017717285081744194, 0.007760828826576471, -0.06162233650684357, -0.006169270724058151, 0.038933731615543365, 0.003849235363304615, -0.017695678398013115, -0.003927658312022686, -0.04463551193475723, 0.003417207393795252, 0.04575221613049507, 0.03233165293931961, -0.016245175153017044, -0.033053070306777954, -0.21518449485301971, -0.001532196532934904, 0.021856114268302917, 0.027221858501434326, 0.0010096943005919456, -0.024020526558160782, 0.009406768716871738, 0.03988287225365639, -0.018357345834374428, -0.005924013908952475, 0.04690547659993172, 0.01083621010184288, 0.030519111081957817, -0.00876596849411726, -0.06711876392364502, 0.011895845644176006, 0.04434484243392944, -0.022443383932113647, -0.01883077062666416, -0.0032900641672313213, 0.006635819561779499, -0.03149940073490143, -0.004293791949748993, 0.005778749007731676, 0.018495600670576096, -0.07400953024625778, 0.017629865556955338, 0.002915135119110346, 0.06056365370750427, 0.024954894557595253, -0.009522422216832638, 0.0011571621289476752, -0.012874716892838478, -0.15097075700759888, 0.06390300393104553, 0.003145280061289668, 0.018072860315442085, -0.04666212573647499, -0.010921705514192581, -0.048331111669540405, 0.08724003285169601, -0.03764719516038895, 0.005159889347851276, -0.0291419830173254, 0.07600875943899155, -0.024020913988351822, 0.016101764515042305, 0.0004736257833428681, 0.009206252172589302, 0.014577710069715977, -0.06873506307601929, -0.013546858914196491, 0.02648232690989971, -0.04881645366549492, -0.004164440091699362, -0.028375258669257164, 0.05024726688861847, 0.010363255627453327, 0.05955060198903084, 0.023003041744232178, 0.038029901683330536, 0.012091216631233692, 0.05064576491713524, 0.035401247441768646, 0.023642513900995255, -0.08186475932598114, -0.02910359390079975, 0.059188827872276306, 0.044723477214574814, 0.02021769806742668, 0.39933377504348755, 0.023544874042272568, -0.03495938330888748, 0.035884469747543335, 0.058686163276433945, -0.019354013726115227, -0.012495458126068115, -0.02637486718595028, -0.023888735100626945, 0.04345594719052315, -0.014147087931632996, -0.002620269078761339, -0.014375652186572552, 0.07885824888944626, -0.09586254507303238, 0.026826635003089905, 0.010163355618715286, 0.03979045897722244, 0.03727642446756363, 0.02037777565419674, -0.03731684386730194, 0.011562492698431015, -0.02496977336704731, 0.01701872982084751, -0.02479812502861023, 0.004964063875377178, -0.005573981907218695, 0.05545544996857643, 0.05349742993712425, 0.029660897329449654, -0.016310669481754303, 0.051554542034864426, -0.023387575522065163, -0.10125859826803207, 0.05205584689974785, -0.03659342601895332, 0.03585943952202797, 0.03634415566921234, -0.020511122420430183, -0.01595430076122284, -0.017442861571907997, -0.02011997438967228, -0.022724106907844543, 0.04262440651655197, 0.03263608738780022, -0.02691982500255108, 0.13700351119041443, 0.009923093020915985, -0.018978778272867203, -0.03672371059656143, -0.060370199382305145, 0.019078202545642853, 0.06612423807382584, 0.0007216130034066737, -0.048919111490249634, -0.03252626210451126, -0.005546591244637966, 0.09541871398687363, -0.021514223888516426, -0.09577468037605286, 0.012894934974610806, -0.031123869121074677, -0.030915511772036552, -0.024601010605692863, 0.05430697649717331, 0.05708322674036026, -0.07841437309980392, -0.008408650755882263, 0.04234614595770836, 0.027813630178570747, -0.051294341683387756, 0.016764091327786446, -0.005162706598639488, -0.04147152602672577, -0.01258976198732853, 0.06315645575523376, -0.01403129193931818, -0.037238940596580505, 0.009890181943774223, 0.02395273558795452, 0.020726220682263374, -0.04430827498435974, -0.021307561546564102, -0.05686778202652931, 0.012808304280042648, -0.061531029641628265, -0.07724880427122116, -0.0748627632856369, 0.010054985992610455, -0.03373394161462784, -0.002962256781756878, -0.007210215087980032, -0.01325509324669838, -0.03722352534532547, 0.10698278248310089, -0.026818161830306053, 0.0030508870258927345, -0.025386851280927658, 0.04352506250143051, -0.026703771203756332, -0.04458101838827133, 0.010260367766022682, -0.030792858451604843, 0.0012915453407913446, 0.019799798727035522, -0.046942923218011856, 0.043952781707048416, 0.061050113290548325, -0.04391470551490784, 0.07295538485050201, 0.03724028915166855, -0.06049841269850731, -0.008045650087296963, 0.007942751049995422, 0.03665151447057724, -0.016290001571178436, -0.012886841781437397, -0.015278659760951996, -0.029817089438438416, 0.018996290862560272, 0.02646544575691223, -0.0010693490039557219, -0.04904334992170334, 0.009270867332816124, -0.351908415555954, -0.04053841158747673, -0.03431518003344536, -0.002513457089662552, 0.027386043220758438, -0.03278718143701553, -0.015147182159125805, -0.028191333636641502, 0.021797342225909233, 0.05790514871478081, 0.03045775555074215, 0.023186173290014267, -0.0348384827375412, -0.09758979082107544, 0.02026684209704399, 0.02771720476448536, 0.0019999498035758734, 0.002666050335392356, -0.02944621630012989, 0.015966568142175674, 0.02652539499104023, -0.08413437753915787, -0.03237183019518852, -0.04906615987420082, 0.0025875342544168234, -0.025113113224506378, 0.11390787363052368, 0.018685221672058105, -0.0015082071768119931, -0.05367271229624748, 0.06572657823562622, 0.021958686411380768, -0.0451265387237072, -0.0229547880589962, -0.014811077155172825, -0.03223997727036476, 0.014648476615548134, 0.03030935302376747, -0.03575552627444267, -0.01710548996925354, -0.03491751477122307, -0.011921240948140621, -0.056600067764520645, -0.029002362862229347, -0.051340825855731964, 0.010875904932618141, -0.023865526542067528, 0.011753810569643974, 0.02960296720266342, 0.06274804472923279, 0.008170705288648605, 0.008418086916208267, -0.009090375155210495, -0.007995232939720154, 0.01194975059479475, -0.009543108753859997, -0.042759742587804794, -0.027400393038988113, 0.028822513297200203, 0.04158329963684082, -0.006024966947734356, 0.016928598284721375, 0.03448808193206787, -0.0759897232055664, -0.018535280600190163, 0.010220133699476719, -0.0036649543326348066, 0.007432927377521992, 0.006241610739380121, -0.007157964166253805, -0.010067063383758068, 0.10135318338871002, -0.011408049613237381, 0.01153305172920227, 0.04685293883085251, 0.07349153608083725, -0.003784001572057605, 0.03881797567009926, 0.04600856080651283, -0.021525615826249123, 0.05222814530134201, -0.039023540914058685, 0.025731829926371574, -0.019574271515011787, 0.005218046717345715, 0.04581299051642418, 0.033468097448349, -0.058225613087415695, 0.04553409293293953, 0.014325806871056557, -0.003914481028914452, -0.003697505220770836, -0.02332310378551483, -0.051683809608221054, 0.051387883722782135, -0.0051793791353702545, -0.2693573832511902, 0.0282010305672884, 0.013707281090319157, 0.059107568114995956, 0.012559899128973484, -0.017031298950314522, 0.016556940972805023, -0.006068952847272158, 0.0359351746737957, 0.006746077444404364, 0.06259449571371078, 0.040480032563209534, -0.018749287351965904, -0.03364979848265648, -0.01898934505879879, -0.013241443783044815, 0.06171540915966034, 0.03655277192592621, 0.06139076501131058, 0.025950508192181587, 0.06749378144741058, -0.02325168438255787, 0.16423249244689941, 0.0353047177195549, -0.008548182435333729, 0.010693389922380447, -0.04001893475651741, 0.039359722286462784, 0.043956026434898376, -0.04295305907726288, -0.0015947002684697509, 0.019709788262844086, 0.015673693269491196, 0.01151969749480486, 0.012979566119611263, -0.032615356147289276, -0.016877995803952217, 0.06003865599632263, 0.02584623172879219, 0.00016348864301107824, -0.0335979163646698, -0.016313154250383377, -0.03565871715545654, 0.023071998730301857, 0.0827915370464325, -0.022159980610013008, 0.028383910655975342, 0.0008167608757503331, -0.07455629855394363, -0.004961702041327953, -0.06311789155006409, 0.0005857945070602, 0.01147171575576067, -0.00734367361292243, 0.004605282098054886, 0.022676831111311913, 0.028946496546268463, -0.02118542604148388, 0.03166987746953964, -0.0006332913762889802, -0.028827527537941933, -0.049163706600666046, 0.0925329402089119, 0.006663631647825241, 0.01349389087408781 ]
[ 0.03694547340273857, 0.03337343782186508, -0.02293676882982254, 0.01902681402862072, -0.018755486235022545, 0.05901411920785904, -0.04100670665502548, 0.0017947688465937972, -0.016648560762405396, 0.009758281521499157, -0.029279109090566635, -0.009818850085139275, 0.06117262691259384, 0.005892213899642229, -0.0188711229711771, 0.016145266592502594, -0.041413117200136185, 0.022721633315086365, 0.023599540814757347, -0.02264004945755005, -0.031194183975458145, -0.0014465198619291186, 0.04702610895037651, -0.03198561817407608, -0.02257251739501953, 0.012073183432221413, -0.041963715106248856, -0.016009462997317314, 0.021983034908771515, -0.09018860012292862, -0.022023193538188934, 0.023754747584462166, 0.004765685182064772, 0.04191799461841583, -0.016631290316581726, -0.051553841680288315, -0.0025049906689673662, 0.041151903569698334, -0.008445546962320805, 0.03531040996313095, 0.023169981315732002, 0.005981119349598885, 0.001345781609416008, -0.015023867599666119, 0.013378302566707134, -0.021678682416677475, -0.05336529016494751, -0.0157539751380682, 0.02109607495367527, 0.01611480489373207, -0.05962873622775078, 0.016352305188775063, -0.036823004484176636, -0.007361812517046928, 0.0036710144486278296, 0.000004671280294132885, -0.023321310058236122, -0.012471002526581287, -0.013849901966750622, -0.03862921893596649, 0.03990917280316353, -0.045355234295129776, -0.06393279880285263, -0.04995252192020416, -0.024838151410222054, -0.014567382633686066, -0.003817053511738777, 0.028731059283018112, -0.009265035390853882, 0.023528436198830605, -0.031459834426641464, 0.019889531657099724, -0.05492623522877693, -0.021089795976877213, -0.048788879066705704, 0.025169072672724724, 0.03154401853680611, -0.047958336770534515, 0.0013932985020801425, -0.022447189316153526, -0.002081678481772542, 0.0029302681796252728, -0.01181846670806408, -0.031433798372745514, -0.03352241963148117, -0.005490600131452084, 0.01889064535498619, 0.0015679298667237163, 0.008271637372672558, 0.035430632531642914, -0.04320729523897171, -0.0018871474312618375, 0.025881001725792885, -0.00595499761402607, -0.06470659375190735, 0.017491338774561882, 0.01267014630138874, 0.016298364847898483, 0.0315995030105114, 0.8201490044593811, 0.02947220578789711, -0.019935237243771553, -0.016463270410895348, 0.019228411838412285, -0.03504161909222603, 0.009775212034583092, 0.02286423183977604, 0.026305511593818665, 0.002336924197152257, -0.021361753344535828, -0.005844834726303816, 0.04988120123744011, -0.0016174801858142018, 0.004518546164035797, 0.00526853883638978, 0.019161637872457504, 0.03283783793449402, 0.004489716608077288, -0.013228225521743298, 0.01316024735569954, 0.008309456519782543, 0.011107508093118668, 0.01751609891653061, 0.027150942012667656, -0.006746663246303797, -0.1612045019865036, -0.004494344815611839, -6.912952238123313e-33, 0.059808820486068726, -0.01845388114452362, 0.046513378620147705, -0.006516254972666502, 0.0032951943576335907, 0.039778679609298706, -0.005843166261911392, 0.02291816659271717, -0.03433419018983841, -0.03874341771006584, 0.02648581564426422, -0.0015377604868263006, -0.026313068345189095, -0.044284917414188385, 0.02648795209825039, -0.052151162177324295, -0.018823226913809776, 0.0240706168115139, -0.00034285287256352603, -0.04251815378665924, -0.01775185391306877, 0.015402932651340961, -0.022027676925063133, 0.04238275811076164, 0.008212047629058361, 0.020766256377100945, -0.008642181754112244, -0.006851912476122379, -0.02771819196641445, -0.05313723161816597, -0.03839331492781639, 0.0335349440574646, -0.023043833673000336, -0.03786422684788704, 0.02560308575630188, -0.06323333829641342, -0.030217507854104042, 0.012144791893661022, 0.0009089677478186786, -0.0475289449095726, -0.07943809032440186, 0.016881944611668587, -0.028170809149742126, -0.03423045203089714, -0.029910027980804443, -0.012318126857280731, 0.013746440410614014, 0.03708270937204361, -0.032440777868032455, 0.047968652099370956, 0.02215662971138954, 0.009175654500722885, -0.010448195971548557, -0.027456412091851234, -0.011009808629751205, 0.009606857784092426, 0.020599300041794777, -0.019145026803016663, -0.0007323237950913608, 0.01278761401772499, 0.019237026572227478, 0.024581599980592728, -0.007439525332301855, 0.051673419773578644, 0.0244736447930336, 0.060706764459609985, 0.027635639533400536, 0.0035575665533542633, 0.021555546671152115, 0.08548367768526077, -0.026301227509975433, 0.017943590879440308, 0.017316428944468498, -0.03509480878710747, 0.06015905365347862, -0.011049607768654823, -0.02819141559302807, -0.021952904760837555, 0.0018375548534095287, 0.04240339621901512, -0.017070595175027847, 0.011407763697206974, -0.009839558973908424, -0.0530586801469326, -0.0034660629462450743, 0.004880550783127546, 0.021440085023641586, 0.03082863800227642, 0.01371835358440876, -0.006968650966882706, 0.07069401443004608, 0.012434019707143307, -0.01694343239068985, -0.03073035180568695, -0.00543163763359189, 6.477602762508494e-33, -0.002802688628435135, 0.002247581724077463, -0.019484706223011017, -0.0022479244507849216, -0.0028078604955226183, -0.03270683065056801, -0.011323310434818268, -0.009205000475049019, -0.01624887064099312, 0.03358788043260574, 0.0016743199666962028, -0.0023613946978002787, -0.00492921331897378, 0.010039291344583035, 0.024512838572263718, -0.009889279492199421, 0.01697046309709549, -0.0679689347743988, -0.015493592247366905, 0.033829934895038605, 0.0043760258704423904, -0.010071721859276295, -0.006872563157230616, 0.019635187461972237, 0.0023317981977015734, -0.0007738026906736195, 0.01018044538795948, 0.005328280385583639, -0.014450617134571075, 0.005200329702347517, 0.012451997958123684, -0.06449081748723984, -0.013546882197260857, -0.01178938988596201, -0.00843039434403181, 0.009703599847853184, 0.008006932213902473, -0.015256072394549847, -0.00245954398997128, -0.013458107598125935, -0.01055170688778162, 0.031125636771321297, -0.01988854818046093, 0.061941709369421005, 0.014252923429012299, 0.009179597720503807, 0.0015773721970617771, 0.022175228223204613, -0.006191714201122522, -0.022377582266926765, 0.009715178981423378, 0.023369135335087776, -0.011138638481497765, 0.0012779069365933537, -0.01062437891960144, -0.03920092061161995, -0.021210653707385063, 0.04199719801545143, -0.0037399178836494684, -0.0017753374995663762, -0.035152386873960495, 0.007230045273900032, -0.04573661461472511, 0.009458736516535282, -0.016210081055760384, -0.02139321155846119, -0.016771018505096436, 0.018882473930716515, -0.02993549033999443, -0.012000584974884987, 0.042575523257255554, -0.017278283834457397, -0.011943033896386623, 0.055161673575639725, -0.004783888813108206, -0.024832505732774734, -0.02091204933822155, 0.023308346047997475, -0.007928317412734032, 0.057374611496925354, -0.00006542868504766375, 0.027412626892328262, 0.018390042707324028, -0.013432145118713379, 0.0007334859692491591, 0.012377552688121796, -0.025066286325454712, 0.014456993900239468, -0.0107497563585639, -0.014935611747205257, 0.02245187945663929, -0.025454744696617126, 0.01501338742673397, 0.043351080268621445, -0.03161143139004707, -1.2590780862353768e-8, -0.06605898588895798, 0.037353064864873886, -0.009613031521439552, 0.024566499516367912, 0.005629396997392178, -0.011748721823096275, -0.012443399988114834, 0.01575273834168911, 0.01870802976191044, -0.00230239937081933, 0.05067644268274307, -0.020673289895057678, 0.016999971121549606, 0.02085844613611698, 0.016486255452036858, -0.03571152687072754, 0.014154782518744469, 0.003198126098141074, 0.03956528753042221, 0.03907882794737816, -0.010798000730574131, 0.04713379591703415, -0.013272264041006565, 0.008839340880513191, -0.012781038880348206, -0.01675405725836754, 0.041268303990364075, -0.07134367525577545, 0.02416202612221241, 0.0008629453950561583, 0.027730843052268028, -0.005452459212392569, -0.02157219685614109, 0.006119174882769585, -0.010401488281786442, -0.055860720574855804, 0.039646681398153305, 0.04272715002298355, 0.01700112782418728, 0.01374303549528122, 0.008451767265796661, -0.021934734657406807, -0.03323972225189209, -0.020584214478731155, -0.041271377354860306, 0.007206285372376442, -0.00528162345290184, -0.047848328948020935, 0.023583408445119858, -0.07123107463121414, 0.026172060519456863, -0.01007569395005703, 0.03514023497700691, 0.03178004175424576, 0.042173150926828384, 0.0008313815342262387, 0.00906979851424694, 0.025123272091150284, -0.014265189878642559, -0.015066009946167469, 0.027311496436595917, 0.012308308854699135, -0.018376385793089867, 0.008676622062921524 ]
neo4j-cypher-finding-movies-by-decade
https://markhneedham.com/blog/2014/06/28/neo4j-cypher-finding-movies-by-decade
false
2014-06-17 23:41:35
Neo4j: LOAD CSV - Handling conditionals
[ "neo4j", "cypher" ]
[ "neo4j" ]
While http://worldcup.neo4j.org/extending-the-world-cup-graph-domain-model/[building up the Neo4j World Cup Graph] I've been making use of the +++<cite>+++http://neo4j.com/blog/neo4j-2-1-graph-etl[LOAD CSV]+++</cite>+++ function and I frequently found myself needing to do different things depending on the value in one of the columns. For example I have https://raw.githubusercontent.com/mneedham/neo4j-worldcup/master/data/import/events.csv[one CSV file] which contains the different events that can happen in a football match: [source,bash] ---- match_id,player,player_id,time,type "1012","Antonin Panenka","174835",21,"penalty" "1012","Faisal Al Dakhil","2204",57,"goal" "102","Roger Milla","79318",106,"goal" "102","Roger Milla","79318",108,"goal" "102","Bernardo Redin","44555",115,"goal" "102","Andre Kana-biyik","174649",44,"yellow" ---- If the +++<cite>+++type+++</cite>+++ is 'penalty', 'owngoal' or 'goal' then I want to create a SCORED_GOAL relationship whereas if it's 'yellow', 'yellowred' or 'red' then I want to create a RECEIVED_CARD relationship instead. I learnt - from reading https://github.com/cleishm/opendisclosure/blob/master/neo4j/import.cyp#L31[a cypher script written by Chris Leishman] - that we can make FOREACH mimic a conditional by creating a collection with one item in to represent 'true' and an empty collection to represent 'false'. In this case we'd end up with something like this to handle the case where a row represents a goal: [source,cypher] ---- LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/mneedham/neo4j-worldcup/master/data/import/events.csv" AS csvLine // removed for conciseness // goals FOREACH(n IN (CASE WHEN csvLine.type IN ["penalty", "goal", "owngoal"] THEN [1] else [] END) | FOREACH(t IN CASE WHEN team = home THEN [home] ELSE [away] END | MERGE (stats)-[:SCORED_GOAL]->(penalty:Goal {time: csvLine.time, type: csvLine.type}) ) ) ---- And equally when we want to process a row that represents a card we'd have this: [source,cypher] ---- // cards FOREACH(n IN (CASE WHEN csvLine.type IN ["yellow", "red", "yellowred"] THEN [1] else [] END) | FOREACH(t IN CASE WHEN team = home THEN [home] ELSE [away] END | MERGE (stats)-[:RECEIVED_CARD]->(card {time: csvLine.time, type: csvLine.type}) ) ) ---- And if we put everything together we get this: [source,cypher] ---- USING PERIODIC COMMIT 1000 LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/mneedham/neo4j-worldcup/master/data/import/events.csv" AS csvLine MATCH (home)<-[:HOME_TEAM]-(match:Match {id: csvLine.match_id})-[:AWAY_TEAM]->(away) MATCH (player:Player {id: csvLine.player_id})-[:IN_SQUAD]->(squad)<-[:NAMED_SQUAD]-(team) MATCH (player)-[:STARTED|:SUBSTITUTE]->(stats)-[:IN_MATCH]->(match) // goals FOREACH(n IN (CASE WHEN csvLine.type IN ["penalty", "goal", "owngoal"] THEN [1] else [] END) | FOREACH(t IN CASE WHEN team = home THEN [home] ELSE [away] END | MERGE (stats)-[:SCORED_GOAL]->(penalty:Goal {time: csvLine.time, type: csvLine.type}) ) ) // cards FOREACH(n IN (CASE WHEN csvLine.type IN ["yellow", "red", "yellowred"] THEN [1] else [] END) | FOREACH(t IN CASE WHEN team = home THEN [home] ELSE [away] END | MERGE (stats)-[:RECEIVED_CARD]->(card {time: csvLine.time, type: csvLine.type}) ) ) ; ---- You can have a look at the https://github.com/mneedham/neo4j-worldcup/blob/master/data/import/loadEvents.cyp[code on github] or https://github.com/mneedham/neo4j-worldcup#importing-into-neo4j[follow the instructions to get all the World Cup graph into your own local Neo4j]. Feedback welcome as always.
null
null
[ 0.00004584193811751902, -0.002453161170706153, -0.015804655849933624, 0.01254440937191248, 0.08170835673809052, -0.027947379276156425, 0.01891523040831089, 0.023691536858677864, 0.02032511495053768, -0.018223488703370094, 0.01228269562125206, -0.005302981473505497, -0.07025827467441559, 0.017495974898338318, 0.0017667467473074794, 0.060383617877960205, 0.055743131786584854, 0.03330584987998009, 0.004585102666169405, -0.033955030143260956, 0.0013716908870264888, 0.058792442083358765, 0.0035201061982661486, 0.03890643268823624, 0.03505576774477959, 0.01570376567542553, 0.002367548178881407, -0.004752252250909805, -0.04430481418967247, 0.005312545225024223, 0.052315205335617065, 0.0006160946213640273, 0.020118016749620438, -0.033453043550252914, 0.012135467492043972, -0.005540786776691675, -0.04643657058477402, -0.0034491103142499924, 0.0029330886900424957, -0.029695330187678337, -0.0663084015250206, 0.029402274638414383, -0.03856554999947548, -0.007616519927978516, -0.03720764443278313, 0.0023466013371944427, -0.04146701097488403, 0.03211410716176033, -0.015041339211165905, 0.01585518568754196, -0.0717572346329689, 0.02384466491639614, -0.0005117834080010653, -0.00686869490891695, 0.004499722272157669, 0.060701582580804825, 0.009381035342812538, -0.05889411270618439, 0.029285605996847153, -0.04289601370692253, -0.0126113910228014, -0.003984781913459301, 0.0017962873680517077, 0.00889534316956997, 0.021630870178341866, -0.042644958943128586, -0.01473335362970829, 0.04931308701634407, -0.04793623462319374, -0.016529293730854988, -0.0017142941942438483, 0.011033377610147, 0.0023203601595014334, -0.005452723242342472, 0.0137105081230402, -0.06774185597896576, -0.010328690521419048, 0.053164463490247726, 0.024357950314879417, 0.06650513410568237, -0.013750369660556316, 0.02223474346101284, 0.007197089958935976, 0.007890385575592518, 0.02905404195189476, -0.035160984843969345, -0.028687376528978348, -0.02914150431752205, -0.036951854825019836, 0.0362306609749794, 0.010837470181286335, -0.059411220252513885, 0.010059517808258533, 0.011076734401285648, -0.002237530192360282, 0.012481335550546646, -0.007113955449312925, 0.026548555120825768, 0.017608916386961937, -0.02123434469103813, -0.02366192266345024, -0.024873726069927216, 0.00929229985922575, 0.01853940263390541, -0.07907913625240326, -0.02384559065103531, -0.017548808827996254, -0.03131924197077751, 0.009340676479041576, -0.00200429605320096, -0.036609482020139694, -0.0119859017431736, -0.011892994865775108, 0.0038104194682091475, -0.08411512523889542, 0.06104906648397446, 0.036910343915224075, -0.012899456545710564, -0.01262086071074009, 0.0304842758923769, 0.034131746739149094, 0.006731962785124779, 0.0005222392501309514, 0.06751232594251633, -0.00017340420163236558, 0.03368307277560234, 0.006110903341323137, 0.07751590013504028, -0.027070650830864906, -0.08071888983249664, -0.02017940767109394, 0.06479477882385254, -0.026428936049342155, 0.016636166721582413, -0.0023860118817538023, -0.03781532868742943, -0.005604238715022802, 0.0005598578718490899, 0.04711129143834114, 0.0322873629629612, 0.008982086554169655, -0.0518978089094162, 0.025986256077885628, -0.007499191910028458, 0.0167849101126194, 0.024970855563879013, -0.010736456140875816, -0.03315434604883194, 0.0009452202939428389, 0.01671723462641239, 0.030465440824627876, 0.03345444053411484, 0.07287140190601349, -0.023381641134619713, 0.0038670585490763187, 0.128228098154068, 0.05561442673206329, 0.004677286371588707, -0.03386509045958519, 0.020192136988043785, 0.0652904063463211, 0.026215458288788795, 0.020603273063898087, 0.056329354643821716, -0.018350182101130486, -0.03129206597805023, 0.004959148354828358, 0.07170136272907257, -0.013003294356167316, 0.014292733743786812, -0.01223491970449686, -0.05865134298801422, 0.06735299527645111, -0.03690345212817192, 0.0017357364995405078, 0.05231793224811554, 0.06599513441324234, 0.013480051420629025, 0.054186441004276276, -0.00047879823250696063, -0.08782445639371872, 0.03731225058436394, 0.018694790080189705, 0.016827387735247612, 0.0027164164930582047, 0.004950393922626972, 0.08189233392477036, 0.03594684600830078, -0.008889822289347649, 0.06613197177648544, -0.0967409685254097, -0.07141834497451782, -0.022663908079266548, -0.02201944589614868, 0.04857374727725983, -0.03709648922085762, 0.013897307217121124, 0.05343473702669144, 0.011022431775927544, 0.03101850114762783, 0.03004521131515503, 0.00035981499240733683, 0.024375373497605324, -0.016277838498353958, -0.04107074812054634, 0.06267760694026947, -0.0021240219939500093, -0.025045741349458694, -0.05330492556095123, 0.03270227462053299, -0.024981707334518433, 0.010124084539711475, 0.034256163984537125, -0.023880215361714363, 0.024534862488508224, 0.005166367627680302, 0.0348053015768528, -0.003458785591647029, 0.026730380952358246, -0.039915651082992554, 0.037720758467912674, 0.03145807236433029, -0.016409747302532196, -0.00012792083725798875, -0.0018300454830750823, 0.1110493391752243, 0.038461267948150635, -0.02286059968173504, -0.05329430475831032, 0.016510751098394394, 0.006740061566233635, -0.003319472074508667, 0.017619671300053596, -0.020616455003619194, -0.002021916676312685, -0.020345978438854218, -0.028623130172491074, -0.004588933661580086, -0.0011607316555455327, -0.028279686346650124, 0.030272498726844788, 0.07060327380895615, -0.0176487285643816, 0.041987933218479156, -0.018213631585240364, -0.005607519298791885, -0.009414506144821644, -0.027045346796512604, -0.052795153111219406, 0.021864576265215874, 0.00856300350278616, -0.006339424755424261, 0.03503555431962013, -0.02728208899497986, -0.0224665105342865, -0.020495479926466942, -0.01785382069647312, 0.040832486003637314, 0.049395814538002014, 0.054798632860183716, 0.0016385478666052222, 0.02548133209347725, -0.04423515498638153, 0.0033727914560586214, -0.03206195682287216, -0.05308978632092476, -0.042541325092315674, -0.03163449093699455, 0.011743799783289433, -0.01611943542957306, 0.022720038890838623, -0.005564937833696604, 0.01529625989496708, 0.015347125008702278, -0.0005592688685283065, 0.011964987963438034, 0.01656041480600834, 0.01544222328811884, -0.01762494258582592, -0.051786135882139206, -0.0389862135052681, 0.045566245913505554, -0.06219648942351341, -0.05028941482305527, -0.010060523636639118, -0.07656212896108627, 0.0241843331605196, -0.05827813595533371, -0.025479737669229507, -0.015758173540234566, 0.01951965130865574, 0.05539381131529808, 0.016757147386670113, 0.007060902658849955, 0.058189019560813904, 0.0009327406878583133, 0.014342560432851315, 0.03804529458284378, 0.014912826009094715, 0.03871239349246025, -0.02174789272248745, 0.04050106182694435, 0.047485604882240295, -0.051041580736637115, 0.0019628105219453573, -0.027061717584729195, 0.013468273915350437, -0.02234838716685772, -0.2752078175544739, 0.05744832754135132, -0.050782375037670135, -0.0494409054517746, 0.019063910469412804, -0.02987416833639145, -0.002535579027608037, -0.03028944507241249, -0.041777871549129486, -0.011748026125133038, -0.03033132292330265, -0.04936237260699272, -0.021704070270061493, 0.03531186282634735, 0.037275366485118866, 0.013591057620942593, 0.011591545306146145, -0.04823162779211998, -0.012714183889329433, 0.03184225782752037, -0.024148685857653618, -0.02821311727166176, -0.005739150568842888, 0.027539264410734177, 0.02833406627178192, 0.04293060302734375, -0.09283653646707535, 0.014614801853895187, -0.0799727812409401, -0.023937271907925606, 0.009888681583106518, -0.014863558113574982, -0.013606074266135693, 0.004434638191014528, -0.02558271214365959, -0.008748535998165607, 0.034180495887994766, 0.013050674460828304, -0.004109357018023729, 0.004665486980229616, -0.05416090413928032, -0.04600369930267334, -0.008804704062640667, -0.02201826311647892, 0.09332894533872604, 0.007606868632137775, -0.08147338777780533, -0.004526415374130011, -0.03604578971862793, 0.07065527141094208, -0.028158746659755707, -0.03200336918234825, 0.006181050557643175, 0.029370250180363655, -0.02244456857442856, -0.02576056867837906, 0.018691523000597954, -0.02299661934375763, -0.05827882140874863, -0.03761811926960945, -0.012953159399330616, -0.04081585630774498, 0.016299458220601082, -0.037881605327129364, -0.008509973995387554, -0.05255821719765663, -0.06254569441080093, -0.03645770251750946, 0.02998260408639908, 0.018564479425549507, -0.04003049060702324, 0.02595554105937481, -0.016313685104250908, -0.1000402495265007, -0.04993854835629463, -0.038932763040065765, 0.0055685946717858315, 0.003600640222430229, -0.025373708456754684, 0.04533044993877411, -0.056892018765211105, -0.05494702607393265, -0.003173265838995576, 0.020680440589785576, 0.02048151008784771, 0.016790712252259254, 0.017841294407844543, -0.007181782741099596, -0.04075613617897034, 0.010916595347225666, 0.06341083347797394, -0.03472728282213211, -0.0024237448815256357, 0.005166634917259216, -0.002930524991825223, 0.02657817117869854, 0.0071539259515702724, -0.020855478942394257, 0.021009743213653564, 0.03368963301181793, 0.040288083255290985, -0.04875468462705612, 0.004475052934139967, -0.03305709734559059, -0.030860790982842445, -0.013175493106245995, -0.04728996008634567, 0.028373578563332558, 0.03345372527837753, 0.031925104558467865, 0.01724938675761223, 0.002733552595600486, 0.005368717480450869, -0.04270227625966072, -0.03909678757190704, -0.002768340753391385, 0.03338155895471573, 0.022850828245282173, 0.03615058958530426, -0.01803506165742874, -0.0678795576095581, 0.02155202254652977, 0.018177073448896408, -0.02212284691631794, -0.058232080191373825, -0.02067968249320984, -0.03935176879167557, -0.03224300965666771, -0.010019274428486824, 0.0033948179334402084, -0.055079132318496704, 0.036414071917533875, 0.0341179296374321, -0.025819025933742523, 0.03634804114699364, 0.003730908501893282, -0.04596208035945892, -0.03648298606276512, 0.008050885051488876, -0.019002651795744896, -0.0033272888977080584, 0.02034967765212059, -0.01347554661333561, 0.0464254692196846, 0.04350895807147026, 0.0009833044605329633, -0.010801528580486774, 0.018722599372267723, 0.02863878197968006, 0.026701251044869423, -0.004145171958953142, -0.029135286808013916, 0.022517509758472443, -0.041556525975465775, -0.03265544772148132, 0.00845357682555914, 0.037421815097332, -0.015374126844108105, 0.0044789970852434635, -0.0491795688867569, 0.0417628139257431, -0.04211396723985672, 0.01949244551360607, -0.009829869493842125, 0.013466713950037956, 0.06553281098604202, -0.00888340175151825, 0.007499584928154945, -0.02946639060974121, -0.0013843263732269406, 0.011233408935368061, 0.007664951030164957, -0.036284420639276505, -0.001404280075803399, -0.025306595489382744, -0.003027747618034482, 0.0031957807950675488, 0.024050073698163033, 0.02009611763060093, 0.018074315041303635, -0.011626687832176685, -0.02594023011624813, 0.012766126543283463, 0.01616947166621685, 0.048337552696466446, 0.04469221085309982, -0.020604951307177544, 0.0022613804321736097, -0.01763371378183365, -0.010399055667221546, -0.014724904671311378, 0.011291200295090675, -0.025589819997549057, 0.0010517728514969349, -0.030242130160331726, -0.06944946199655533, 0.03250976279377937, 0.008980529382824898, -0.005768625997006893, 0.030180281028151512, 0.015330499969422817, -0.006310352124273777, -0.02545015700161457, 0.02103617414832115, 0.051625944674015045, -0.044565435498952866, -0.023480666801333427, -0.01152795646339655, -0.004238700494170189, -0.012647365219891071, 0.022288698703050613, -0.06380213797092438, -0.03321928158402443, -0.006422258913516998, 0.0324985571205616, -0.018896179273724556, -0.03072737716138363, 0.0039240275509655476, -0.009317047894001007, 0.0013276819372549653, 0.051938027143478394, 0.0175534226000309, 0.02046145126223564, -0.03968261182308197, 0.002490169135853648, 0.02089926414191723, -0.027491362765431404, -0.004806384909898043, 0.02617577277123928, -0.010013274848461151, 0.027217183262109756, -0.026287266984581947, 0.024627020582556725, 0.017001720145344734, 0.011578723788261414, -0.00794897973537445, -0.06296738237142563, 0.05049920082092285, -0.00537896528840065, 0.04942250996828079, -0.010032525286078453, -0.006787518505007029, -0.01355361845344305, 0.019948771223425865, -0.023940416052937508, 0.005784223321825266, -0.01897379942238331, -0.008100567385554314, 0.0038839352782815695, 0.042316071689128876, 0.003269804874435067, 0.04316069558262825, -0.0012005203170701861, -0.025299804285168648, 0.0594961941242218, -0.04780692607164383, -0.0347989983856678, -0.0025915452279150486, -0.031068874523043633, 0.004088144283741713, 0.013422823511064053, 0.02131553739309311, -0.04465596005320549, 0.0779060646891594, 0.060454778373241425, 0.03350221365690231, 0.04689169302582741, 0.020843761041760445, 0.016403602436184883, -0.01752392202615738, -0.031015297397971153, -0.08583513647317886, 0.01695997640490532, 0.06450505554676056, -0.0007563263643532991, 0.01243283785879612, -0.006146826781332493, -0.014888822101056576, 0.005127589218318462, -0.07600165158510208, -0.030981548130512238, 0.01604137010872364, -0.015790216624736786, 0.028327295556664467, 0.0012058090651407838, -0.05781002715229988, -0.02343045361340046, 0.06676706671714783, -0.03570086508989334, -0.027303539216518402, -0.039826419204473495, 0.05394569784402847, -0.029270119965076447, 0.035152655094861984, -0.010988072492182255, -0.0327814556658268, 0.06426558643579483, 0.009988293051719666, 0.04329908266663551, 0.034171558916568756, -0.01924014650285244, 0.03433804586529732, 0.02018086425960064, -0.010418360121548176, 0.015308924950659275, 0.03583870828151703, -0.025769544765353203, -0.06009487062692642, 0.02684817835688591, 0.006572123151272535, -0.00819113664329052, -0.04816048964858055, 0.07269629091024399, -0.016865212470293045, -0.038355324417352676, -0.03034723922610283, 0.016330013051629066, -0.002082920866087079, -0.01930469088256359, -0.025656435638666153, 0.013033319264650345, -0.037358108907938004, 0.05954517796635628, -0.029709553346037865, 0.00534450076520443, 0.07019605487585068, -0.006706845480948687, -0.02313065528869629, -0.007289152126759291, 0.10076664388179779, 0.08750057965517044, 0.02828134037554264, 0.018974334001541138, 0.0778905600309372, 0.004243522882461548, -0.04909491911530495, -0.008276522159576416, -0.025423964485526085, -0.004952766466885805, 0.03359740972518921, -0.014416101388633251, 0.05875428020954132, -0.02133992873132229, 0.071895070374012, 0.004183437209576368, -0.03529306501150131, -0.005692868959158659, -0.013211813755333424, 0.032996587455272675, 0.07262109965085983, 0.036475490778684616, 0.049098167568445206, -0.02071511745452881, -0.02877386286854744, 0.02655869349837303, -0.028168559074401855, -0.012284833937883377, 0.02768903411924839, -0.02100198157131672, 0.00003612236105254851, 0.013676407746970654, 0.04145395755767822, 0.08948379755020142, -0.027868174016475677, -0.0025908593088388443, 0.001338764326646924, 0.02290903963148594, -0.008684290573000908, 0.019130729138851166, -0.01705387607216835, -0.005029093008488417, -0.029450751841068268, -0.0593588761985302, -0.00646837567910552, -0.025814995169639587, -0.04249580577015877, 0.011009147390723228, -0.0004953024908900261, 0.005247239023447037, 0.0016989362193271518, -0.02594485878944397, -0.0376054085791111, -0.05023796856403351, -0.032505813986063004, -0.0766020342707634, -0.08220530301332474, -0.010059247724711895, -0.002203906886279583, 0.01300214882940054, -0.005317664239555597, -0.0011763401562348008, -0.0224886666983366, -0.026087088510394096, 0.039158303290605545, -0.0374741405248642, 0.009945761412382126, 0.004406070802360773, 0.027386143803596497, 0.028859641402959824, 0.025100279599428177, 0.054625004529953, -0.011391792446374893, 0.016662582755088806, -0.02775638923048973, 0.024453751742839813, 0.030616704374551773, 0.017073769122362137, 0.0011334943119436502, -0.07725012302398682, 0.0009684458491392434, 0.04880659282207489, -0.04458646476268768, -0.09147433936595917, 0.022531608119606972, 0.052147772163152695, 0.015226100571453571, 0.03424796834588051, -0.021840475499629974, -0.01411905512213707, -0.02929520606994629, 0.014373699203133583, -0.0011389240389689803, 0.008133403956890106, 0.04025203362107277, -0.03447948396205902, 0.06685354560613632, 0.0525435209274292, -0.013477233238518238, -0.021408941596746445, -0.04363754764199257, -0.005772328935563564, -0.0035193252842873335, -0.036259688436985016, -0.021917138248682022, -0.06340132653713226, -0.09972979128360748, -0.024732325226068497, 0.0005567564512602985, -0.020490409806370735, -0.0346885584294796, -0.008618637919425964, 0.043740998953580856, -0.005620190408080816, 0.016239488497376442, -0.035437289625406265, 0.034243177622556686, -0.022820647805929184, -0.007353803142905235, -0.025201456621289253, 0.028168022632598877, 0.01595884934067726, 0.03140748664736748, 0.006626189686357975, -0.058918021619319916, 0.001880543539300561, -0.009550846181809902, -0.005439530126750469, 0.019524380564689636, 0.010210471227765083, 0.03453147038817406 ]
[ -0.050230901688337326, 0.029746361076831818, -0.028373876586556435, -0.0228880625218153, 0.0837550014257431, -0.0069131734780967236, -0.0020918857771903276, 0.037854764610528946, 0.0494825504720211, -0.006140087731182575, 0.013837151229381561, -0.0802946463227272, -0.019615372642874718, 0.0177871435880661, 0.026449380442500114, -0.0370829738676548, -0.07374349236488342, -0.05130075290799141, -0.05057203024625778, 0.04910503700375557, -0.00008529571641702205, -0.03324475884437561, -0.008749970234930515, -0.057677753269672394, 0.02009616792201996, 0.038766443729400635, 0.06414692848920822, -0.025880519300699234, -0.01840808615088463, -0.2249497026205063, -0.026282256469130516, 0.02844037488102913, -0.010811501182615757, 0.0023783142678439617, -0.0009637504699639976, -0.020140673965215683, 0.009756346233189106, -0.02313528209924698, 0.03863869979977608, 0.040980760008096695, 0.003513431642204523, -0.004179487004876137, -0.020899252966046333, -0.024488702416419983, 0.04043817147612572, -0.007141235284507275, -0.03623976558446884, 0.017440559342503548, -0.013315066695213318, 0.023292219266295433, -0.029267635196447372, 0.022516628727316856, -0.0027539122384041548, -0.021681902930140495, 0.0068881213665008545, 0.07072486728429794, 0.04658094421029091, 0.06006740406155586, 0.020499370992183685, 0.0627642348408699, 0.040077731013298035, 0.013430580496788025, -0.152470663189888, 0.0691867247223854, -0.012222479097545147, 0.00030591932591050863, -0.06364146620035172, 0.028953388333320618, -0.02330973744392395, 0.08865917474031448, 0.014036034233868122, -0.027915313839912415, -0.01208898238837719, 0.05368976294994354, 0.029582809656858444, -0.007364042103290558, -0.02619476243853569, -0.007315406575798988, 0.007619068492203951, 0.009614640846848488, -0.03298503905534744, 0.028557175770401955, -0.060009364038705826, -0.011642912402749062, -0.04978116229176521, 0.031321484595537186, -0.03188982978463173, 0.019872630015015602, -0.022516312077641487, 0.035124845802783966, 0.0012542314361780882, 0.04192747548222542, 0.04461979866027832, 0.04533896967768669, -0.09787384420633316, -0.023255707696080208, 0.013743591494858265, 0.009357926435768604, -0.003985953982919455, 0.40935224294662476, 0.02884562313556671, -0.02274974063038826, 0.004379587713629007, 0.07015673071146011, -0.004610246978700161, -0.022989628836512566, 0.003969500306993723, -0.068701833486557, 0.03474346920847893, -0.012915021739900112, -0.03828879073262215, -0.0331992469727993, 0.016723508015275, -0.08661743253469467, -0.010327127762138844, 0.026129290461540222, 0.03182487189769745, 0.0082246707752347, -0.0109729478135705, 0.0002683599595911801, -0.023827724158763885, 0.0022677434608340263, 0.02055978588759899, -0.00718672527000308, -0.025521084666252136, 0.025910884141921997, -0.002538803033530712, 0.06831914186477661, 0.02781963348388672, 0.022258952260017395, 0.060689568519592285, -0.01717393286526203, -0.08149988204240799, 0.02648329921066761, 0.013706743717193604, -0.009452763944864273, 0.0048500909470021725, -0.023151177912950516, -0.008882827125489712, 0.04717472195625305, 0.0049054925329983234, -0.03826293349266052, 0.02572287619113922, -0.018275994807481766, -0.043047867715358734, 0.11945351958274841, -0.0263584665954113, -0.04569949209690094, 0.005783652421087027, -0.03267060965299606, 0.016863076016306877, 0.03452998772263527, 0.026492904871702194, -0.04002695530653, -0.0496281273663044, 0.03021368570625782, 0.06307569891214371, -0.05867345258593559, -0.08176881074905396, -0.000390974513720721, -0.02956445887684822, -0.038473933935165405, -0.026443185284733772, 0.09129174798727036, 0.01612202264368534, -0.11207901686429977, -0.018290270119905472, -0.012094877660274506, -0.01163394469767809, -0.08770865201950073, 0.01073692087084055, 0.00345870410092175, -0.039144184440374374, 0.015273930504918098, 0.0766354575753212, 0.027885979041457176, -0.02412974275648594, -0.007967012003064156, 0.06197884678840637, -0.006338616833090782, 0.007382365874946117, -0.009368953295052052, -0.055758483707904816, 0.00031989955459721386, -0.05385954678058624, -0.05372133478522301, -0.06528489291667938, 0.016874562948942184, -0.025121591985225677, -0.0348399318754673, -0.01969800889492035, 0.003931790590286255, -0.04968755692243576, 0.07827339321374893, -0.04648580402135849, -0.00010052491415990517, -0.01552821509540081, -0.04150981083512306, -0.014018170535564423, -0.02610907144844532, -0.013724799267947674, 0.01942121610045433, -0.0011919462122023106, 0.003280675271525979, -0.033679310232400894, 0.0006091557443141937, 0.06198672950267792, -0.06108713522553444, 0.035033855587244034, -0.0048696366138756275, -0.039845436811447144, -0.0073795928619802, -0.04047136753797531, 0.01591193862259388, -0.0188908614218235, 0.006240086629986763, -0.014602532610297203, -0.0042133335955441, 0.0010379854356870055, 0.04163598641753197, -0.02568013034760952, -0.019619613885879517, 0.007426923606544733, -0.35892918705940247, -0.014827074483036995, -0.051261771470308304, -0.013972623273730278, 0.009901066310703754, 0.015716543421149254, -0.0052188485860824585, -0.023077717050909996, 0.032840434461832047, 0.052842821925878525, 0.08434978872537613, 0.007802973967045546, -0.024767840281128883, -0.05830904096364975, -0.0036450938787311316, 0.024881761521100998, -0.028104539960622787, -0.0016363293398171663, -0.024175865575671196, 0.03724393621087074, 0.030011111870408058, -0.03350003808736801, -0.021936045959591866, -0.031023243442177773, 0.007201686035841703, -0.047103069722652435, 0.1248488500714302, 0.03807768598198891, -0.005279874429106712, -0.06343436986207962, 0.030416373163461685, 0.014093074947595596, -0.012636130675673485, -0.06969787180423737, 0.02833167091012001, -0.00898709986358881, 0.0004730048531200737, -0.0011068814201280475, 0.018274016678333282, -0.033766794949769974, -0.001518670585937798, -0.013300399295985699, -0.018289167433977127, -0.040249817073345184, -0.01312579307705164, 0.01672998256981373, -0.023121844977140427, -0.025606488808989525, 0.00718388706445694, 0.08370837569236755, 0.01800573244690895, 0.005090491380542517, 0.037247542291879654, 0.020484527572989464, 0.03002072311937809, -0.021612048149108887, -0.0731305181980133, 0.008302879519760609, 0.005306711886078119, 0.013408086262643337, 0.005611827597022057, 0.013799207285046577, 0.06510107964277267, -0.06937903165817261, 0.019252439960837364, 0.013286550529301167, 0.013857579790055752, -0.019855795428156853, 0.04854285717010498, -0.00010436750744702294, -0.0034344748128205538, 0.08198711276054382, 0.03271327167749405, 0.017767440527677536, 0.07723990827798843, 0.04908822849392891, 0.009851847775280476, 0.020171258598566055, 0.028421441093087196, 0.04903994873166084, 0.04479319974780083, -0.04667908698320389, 0.05930586904287338, -0.001535529620014131, 0.009425779804587364, 0.04623391479253769, 0.031466782093048096, -0.0064886282198131084, 0.06389108300209045, 0.015801625326275826, -0.030833853408694267, -0.0066168056800961494, -0.014896731823682785, 0.0019984408281743526, 0.04834546893835068, -0.03839007019996643, -0.2577914595603943, 0.03278833627700806, 0.04935671389102936, 0.05277308449149132, 0.033139243721961975, -0.010998318903148174, 0.011888119392096996, -0.022877991199493408, -0.05751447379589081, -0.010197445750236511, 0.013419365510344505, 0.012955442070960999, 0.01813376694917679, 0.013134108856320381, -0.0316036120057106, -0.002622451866045594, 0.02248496748507023, 0.0061826626770198345, 0.05191013589501381, 0.0146123506128788, 0.04717348888516426, -0.003971354570239782, 0.18758518993854523, 0.02730104885995388, 0.02323424257338047, 0.04865824058651924, -0.00001594035347807221, -0.03919940069317818, 0.040601130574941635, 0.005143283866345882, -0.02481784112751484, 0.03190862759947777, 0.03553997725248337, 0.06662070006132126, 0.011715603992342949, -0.00346923153847456, -0.007752336096018553, 0.0810961201786995, 0.004758634604513645, -0.08219064772129059, -0.0405002161860466, 0.0495491661131382, -0.0465637743473053, -0.005211199633777142, 0.07384873926639557, 0.004755275323987007, -0.02068132720887661, -0.00940191000699997, -0.06598128378391266, -0.019642243161797523, -0.03235308825969696, -0.04871567338705063, -0.024496642872691154, -0.036133356392383575, -0.010049394331872463, 0.03695354610681534, 0.03306972235441208, -0.03514857962727547, 0.0454879105091095, 0.018280429765582085, -0.012468243017792702, 0.0018477601697668433, 0.06677459925413132, -0.022975727915763855, -0.011949004605412483 ]
[ 0.03515445068478584, 0.05637851357460022, -0.021981144323945045, 0.027028333395719528, 0.005231212824583054, 0.028159653767943382, -0.009758751839399338, -0.005393308587372303, 0.01622053235769272, -0.002932804636657238, -0.05677643418312073, -0.005725800525397062, 0.042369499802589417, 0.018450984731316566, 0.017388053238391876, -0.012159452773630619, -0.015295734629034996, -0.0001343670446658507, 0.013518143445253372, -0.01748363859951496, -0.004179405514150858, -0.03409583494067192, 0.014923898503184319, -0.008612195961177349, -0.029779518023133278, 0.004629582166671753, -0.01886736787855625, 0.014850346371531487, 0.001379231340251863, -0.10401032119989395, -0.035541776567697525, -0.04690931737422943, 0.005559487268328667, 0.02094387821853161, -0.027542198076844215, -0.007454171311110258, 0.004870360717177391, 0.011778956279158592, -0.006985224783420563, 0.02804812230169773, 0.021043937653303146, -0.007613578345626593, -0.007768489420413971, 0.01763763278722763, 0.02387012168765068, 0.013947303406894207, -0.04688652604818344, -0.0060525997541844845, 0.008887945674359798, -0.009354351088404655, -0.03290259465575218, -0.01522147934883833, 0.01733846589922905, 0.002283587586134672, 0.04259481281042099, 0.020320020616054535, -0.049673616886138916, -0.02166886255145073, 0.00791000947356224, -0.028731778264045715, 0.021259846165776253, -0.02232668362557888, -0.07838655263185501, -0.019879505038261414, -0.04352789744734764, -0.02903876081109047, -0.027042651548981667, 0.05287783220410347, -0.0029306039214134216, 0.008508804254233837, -0.006179616786539555, 0.0357704795897007, -0.06491800397634506, -0.023180807009339333, 0.009365160018205643, 0.031126834452152252, 0.026707902550697327, -0.023407531902194023, -0.017963549122214317, -0.015873441472649574, -0.04258605092763901, 0.01801876351237297, -0.000017026251953211613, -0.017716433852910995, 0.014087716117501259, 0.001356496592052281, -0.004846044350415468, -0.029077822342514992, 0.006645540706813335, 0.022428104653954506, -0.03553861007094383, 0.01670053042471409, 0.014296337962150574, 0.009321769699454308, -0.0756005123257637, 0.004705846309661865, 0.01884053461253643, -0.01559128612279892, 0.017084240913391113, 0.829727292060852, 0.03934110328555107, 0.009539835155010223, -0.030140485614538193, 0.012355326674878597, 0.005416471511125565, 0.013058786280453205, -0.007569611072540283, 0.036115434020757675, -0.007865088060498238, -0.017181232571601868, -0.0013198426458984613, 0.018547186627984047, 0.02370554208755493, 0.011070616543293, -0.023732801899313927, 0.08797623962163925, -0.015560097992420197, -0.0006116393487900496, -0.016538431867957115, 0.004377020988613367, -0.0033491328358650208, 0.0006877320702187717, -0.027157587930560112, 0.004669846501201391, 0.002705140272155404, -0.183461531996727, -0.011712655425071716, -7.574360297660797e-33, 0.04517165198922157, -0.012772869318723679, 0.02705114707350731, -0.002865710062906146, -0.0109994076192379, 0.04048518091440201, -0.015164906159043312, -0.03244541212916374, -0.018871178850531578, -0.03437051177024841, -0.002406197600066662, 0.027048368006944656, -0.006029170006513596, -0.020586803555488586, 0.023334471508860588, -0.0302315391600132, -0.0035235832910984755, 0.007285053841769695, -0.0025875349529087543, 0.013455720618367195, -0.0020819813944399357, 0.040829941630363464, -0.018113113939762115, 0.04708721861243248, 0.01662301830947399, 0.07904808968305588, -0.042964205145835876, -0.02152150496840477, -0.01882817968726158, -0.03983565419912338, -0.062412016093730927, 0.020218489691615105, -0.021543558686971664, -0.02075270749628544, 0.018717242404818535, -0.051938075572252274, -0.019418038427829742, 0.01683247648179531, -0.037349481135606766, -0.05780411139130592, -0.05549922585487366, -0.00631128391250968, -0.016614248976111412, -0.02945246919989586, -0.0335773229598999, -0.018663449212908745, 0.006020837929099798, 0.01714782789349556, -0.0014900394016876817, 0.011480609886348248, 0.022993499413132668, 0.029935315251350403, 0.020644113421440125, -0.009606238454580307, -0.032312456518411636, 0.003999584354460239, 0.00984799861907959, 0.012650575488805771, -0.01655947044491768, -0.013396323658525944, 0.04194803163409233, -0.01142969261854887, -0.013740097172558308, 0.05223986133933067, 0.04243860021233559, 0.03929350897669792, -0.007729549892246723, -0.011377723887562752, -0.003774499287828803, -0.002661457983776927, -0.04081742465496063, 0.06834307312965393, -0.016046157106757164, -0.026480479165911674, 0.04336414113640785, -0.039985235780477524, 0.0028605570551007986, -0.018940657377243042, -0.0011440240778028965, 0.03117564506828785, -0.024567890912294388, -0.00876558106392622, 0.015961021184921265, -0.02388324961066246, -0.022292718291282654, 0.005057484842836857, 0.04535553231835365, 0.0292891263961792, 0.037729669362306595, 0.011860357597470284, 0.03496546298265457, 0.032124754041433334, -0.00386874470859766, -0.018492022529244423, -0.01891186088323593, 7.278653673451912e-33, -0.012865005061030388, 0.00379771925508976, 0.006358633749186993, -0.007811557035893202, 0.034515611827373505, -0.008305886760354042, 0.01925535872578621, -0.008658085018396378, -0.038420867174863815, 0.044200051575899124, -0.0024100334849208593, -0.02560858614742756, -0.0009560514008626342, 0.04270367696881294, 0.046787213534116745, -0.010689673013985157, -0.011037230491638184, -0.01370981801301241, -0.020962798967957497, 0.004038714803755283, 0.0036074132658541203, 0.010047085583209991, -0.0023222346790134907, 0.015493273735046387, 0.025205766782164574, 0.02811196632683277, -0.005160883069038391, -0.011394139379262924, -0.0176119115203619, -0.004999059252440929, -0.010041754692792892, -0.03762977197766304, -0.024875320494174957, -0.017590852454304695, 0.034544236958026886, 0.020619837567210197, -0.0012015029788017273, -0.002743333112448454, 0.0255377646535635, 0.015499710105359554, -0.004952026065438986, 0.007898136973381042, -0.03868990018963814, 0.05320669338107109, 0.0251003447920084, -0.001396588864736259, -0.012806400656700134, 0.021134547889232635, 0.00202843826264143, 0.013979905284941196, -0.0013650234322994947, 0.015764467418193817, -0.0032995701767504215, 0.027033304795622826, 0.024151954799890518, -0.05857311189174652, 0.006084270775318146, 0.036369651556015015, -0.008489328436553478, -0.021411024034023285, -0.04316611960530281, 0.00847911462187767, -0.03155738487839699, 0.05781684070825577, 0.007501112762838602, 0.0017279604217037559, -0.04381942376494408, 0.006097222678363323, 0.009278028272092342, 0.009098721668124199, 0.0010982424719259143, 0.02030346728861332, -0.01865517906844616, 0.03339235857129097, 0.01758052222430706, -0.006737266667187214, -0.033239271491765976, 0.01324542984366417, -0.03292090818285942, 0.04898529499769211, 0.0021155269350856543, -0.00451176892966032, 0.07275769114494324, 0.008908933959901333, 0.003697557607665658, 0.030474120751023293, -0.00007806567009538412, 0.015393439680337906, -0.006349889095872641, 0.015729522332549095, 0.030210213735699654, -0.00566963292658329, 0.006305272690951824, 0.04235510155558586, -0.02864004857838154, -1.297672902467184e-8, -0.060841742902994156, 0.004551321733742952, -0.041197001934051514, -0.023985229432582855, -0.004836032632738352, 0.030354296788573265, 0.0021666772663593292, -0.04644801840186119, -0.015495697036385536, 0.008050278760492802, 0.026373958215117455, 0.0019597101490944624, 0.029751941561698914, -0.02551327459514141, 0.019639501348137856, -0.030978156253695488, -0.006865642964839935, -0.01178647205233574, 0.032696064561605453, 0.050082046538591385, 0.017147690057754517, 0.03584112599492073, -0.05898319184780121, 0.00695666391402483, 0.0011176238767802715, -0.03959564492106438, 0.002713999478146434, -0.06819929927587509, 0.002278522588312626, -0.02020939625799656, 0.031624797731637955, -0.01863938942551613, 0.006500874180346727, 0.014738949947059155, -0.004378940910100937, -0.020666003227233887, 0.03678608313202858, 0.011272907257080078, -0.004656638018786907, 0.02413202077150345, -0.016754208132624626, 0.007848483510315418, -0.044333312660455704, -0.029295945540070534, -0.013713022693991661, -0.0006042663590051234, -0.041159357875585556, -0.03288375958800316, 0.03643954545259476, -0.029196197167038918, -0.018094157800078392, 0.0045872898772358894, 0.030507398769259453, 0.0049225157126784325, 0.04375038295984268, 0.013321052305400372, 0.0014929648023098707, 0.009166628122329712, -0.009676664136350155, -0.0339236855506897, 0.009263413958251476, 0.004007816314697266, -0.0302919652312994, -0.000976170354988426 ]
neo4j-load-csv-handling-conditionals
https://markhneedham.com/blog/2014/06/17/neo4j-load-csv-handling-conditionals
false
2014-06-30 21:44:14
R: Order by data frame column and take top 10 rows
[ "r-2" ]
[ "R" ]
I've been doing some http://www.markhneedham.com/blog/2014/06/30/neo4jr-grouping-meetup-members-by-join-timestamp/[ad-hoc analysis of the Neo4j London meetup group using R and Neo4j] and having worked out how to group by certain keys the next step was to order the rows of the data frame. I wanted to drill into the days on which people join the group and see whether they join it at a specific time of day. My feeling was that most people would join on a Monday morning. The first step was to run the query using https://github.com/nicolewhite/Rneo4j[RNeo4j] and then group by day and http://stat.ethz.ch/R-manual/R-devel/library/base/html/as.POSIXlt.html[hour]: [source,r] ---- library(Rneo4j) query = "MATCH (:Person)-[:HAS_MEETUP_PROFILE]->()-[:HAS_MEMBERSHIP]->(membership)-[:OF_GROUP]->(g:Group {name: \"Neo4j - London User Group\"}) RETURN membership.joined AS joinDate" timestampToDate <- function(x) as.POSIXct(x / 1000, origin="1970-01-01") meetupMembers = cypher(graph, query) meetupMembers$joined <- timestampToDate(meetupMembers$joinDate) groupBy = function(dates, format) { dd = aggregate(dates, by= list(format(dates, format)), function(x) length(x)) colnames(dd) = c("key", "count") dd } byDayTime = groupBy(meetupMembers$joined, "%A %H:00") ---- This returned quite a few rows so we'll just display a subset of them: [source,r] ---- > byDayTime[12:25,] key count 12 Friday 14:00 12 13 Friday 15:00 8 14 Friday 16:00 11 15 Friday 17:00 10 16 Friday 18:00 3 17 Friday 19:00 1 18 Friday 20:00 3 19 Friday 21:00 4 20 Friday 22:00 7 21 Friday 23:00 2 22 Monday 00:00 3 23 Monday 01:00 1 24 Monday 03:00 1 25 Monday 05:00 3 ---- The next step was to order by the 'count' column which wasn't too difficult: [source,r] ---- > byDayTime[order(byDayTime$count),][1:10,] key count 2 Friday 03:00 1 3 Friday 04:00 1 4 Friday 05:00 1 5 Friday 07:00 1 17 Friday 19:00 1 23 Monday 01:00 1 24 Monday 03:00 1 46 Saturday 03:00 1 66 Sunday 06:00 1 67 Sunday 07:00 1 ---- If we run the order function on its own we'll see that it returns the order in which the current rows in the data frame should appear: [source,r] ---- > order(byDayTime$count) [1] 2 3 4 5 17 23 24 46 66 67 109 128 129 1 21 44 47 48 81 86 87 88 108 130 16 18 22 25 45 53 64 71 75 107 19 26 49 51 55 56 58 59 61 [44] 65 68 77 79 85 106 110 143 50 52 54 82 84 101 127 146 27 57 60 62 63 69 70 73 99 103 126 145 6 20 76 83 89 105 122 131 144 7 13 40 43 72 80 [87] 102 39 78 100 132 147 15 94 121 123 142 14 42 74 104 137 140 12 38 92 93 111 124 8 9 11 90 96 125 139 10 32 34 36 95 97 98 28 135 136 33 35 112 [130] 113 116 134 91 141 41 115 120 133 37 119 138 31 117 118 30 114 29 ---- The first 4 rows in our sorted data frame will be rows 2-5 from the initial data frame, which are: [source,r] ---- key count 2 Friday 03:00 1 3 Friday 04:00 1 4 Friday 05:00 1 5 Friday 07:00 1 ---- So that makes sense! In our case we want to http://www.statmethods.net/management/sorting.html[sort in descending order] which we can do by prefixing the sorting variable with a minus sign: [source,r] ---- > byDayTime[order(-byDayTime$count),][1:10,] key count 29 Monday 09:00 34 30 Monday 10:00 28 114 Tuesday 11:00 28 31 Monday 11:00 27 117 Tuesday 14:00 27 118 Tuesday 15:00 27 138 Wednesday 14:00 23 119 Tuesday 16:00 22 37 Monday 17:00 21 115 Tuesday 12:00 20 ---- As expected Monday morning makes a strong showing although Tuesday afternoon is also popular which is unexpected. We'll need to do some more investigation to figure out what's going on there.
null
null
[ -0.007084943819791079, -0.018466420471668243, 0.016978716477751732, 0.025983113795518875, 0.054594412446022034, -0.01254949439316988, 0.05231889337301254, 0.010835171677172184, 0.016607729718089104, 0.0146319679915905, 0.009294046089053154, -0.008052562363445759, -0.07930341362953186, 0.02291182242333889, -0.029657071456313133, 0.07253854721784592, 0.06749320775270462, -0.019766226410865784, 0.00766264833509922, -0.0252400953322649, 0.028094515204429626, 0.03214798495173454, -0.00849104579538107, 0.05567759647965431, 0.06618846207857132, 0.003222672501578927, -0.004903980530798435, 0.0014614879619330168, -0.02454291842877865, 0.013553284108638763, 0.04790404066443443, -0.0030461966525763273, 0.03368844836950302, 0.011182386428117752, 0.026356320828199387, -0.030936596915125847, -0.0087422551587224, -0.003295998089015484, 0.0007547579007223248, 0.018955020233988762, -0.04595579952001572, 0.018315697088837624, -0.010850919410586357, 0.02567864954471588, -0.037396591156721115, 0.010118967853486538, -0.05422692000865936, 0.05006241425871849, 0.012906723655760288, 0.04506683722138405, -0.06424317508935928, 0.007276653312146664, 0.025363532826304436, 0.007626060862094164, 0.002856164239346981, 0.03961092233657837, 0.023976074531674385, -0.05982174351811409, 0.04570561647415161, -0.013568422757089138, 0.01889798603951931, -0.006195778492838144, 0.011558391153812408, -0.012525596655905247, 0.0025664118584245443, -0.019046932458877563, 0.005667462013661861, 0.04997299239039421, -0.019655263051390648, 0.01974252052605152, -0.01850907877087593, -0.00012914079707115889, -0.0298884529620409, 0.0028388770297169685, -0.00974289420992136, -0.030574847012758255, 0.0080382926389575, 0.042635027319192886, 0.029029889032244682, 0.043953731656074524, -0.012537773698568344, 0.00334183475933969, 0.026661457493901253, 0.04837552830576897, 0.00690688518807292, -0.02834818698465824, -0.03672172874212265, -0.060006674379110336, -0.05337044969201088, 0.05109716206789017, -0.02466355450451374, -0.042580634355545044, 0.0016136860940605402, 0.018592100590467453, -0.03378693014383316, 0.01360753457993269, 0.025084851309657097, -0.005528776440769434, 0.025101248174905777, -0.004694284405559301, -0.04098482429981232, -0.05307472124695778, 0.023716643452644348, 0.015088250860571861, -0.06749513745307922, -0.001897611771710217, -0.04567515850067139, -0.032221466302871704, 0.01941034384071827, -0.013855848461389542, -0.047520726919174194, 0.00976479146629572, -0.0007574052433483303, 0.012423045001924038, -0.05745144188404083, 0.07329897582530975, 0.03133372589945793, -0.038547515869140625, -0.026764119043946266, -0.019407054409384727, 0.03517027571797371, 0.03467400372028351, -0.006331109441816807, 0.060340702533721924, -0.035213127732276917, 0.06208328157663345, 0.009875026531517506, 0.038249753415584564, -0.010769928805530071, -0.08733099699020386, -0.024247122928500175, 0.04751310497522354, -0.005637662019580603, -0.00923263281583786, -0.03589795157313347, -0.05818033218383789, -0.03321894630789757, 0.034607067704200745, 0.05932100489735603, 0.018444551154971123, 0.032064296305179596, -0.04410615563392639, 0.02289079874753952, -0.012112908065319061, 0.03542497009038925, 0.024202121421694756, -0.03233909606933594, -0.06596522778272629, -0.04015783965587616, -0.005458502564579248, 0.02874414250254631, 0.014444333501160145, 0.033781759440898895, -0.024308469146490097, 0.030194927006959915, 0.09522653371095657, 0.01081742811948061, 0.0037143691442906857, -0.005089692305773497, -0.013584056869149208, 0.024150444194674492, 0.04312054440379143, 0.0014742822386324406, 0.06641639769077301, 0.0014321262715384364, -0.012997082434594631, 0.002802810166031122, 0.04634244740009308, -0.014880836941301823, 0.0249305609613657, -0.035520803183317184, -0.062331560999155045, 0.04668470472097397, -0.039854031056165695, 0.005453384947031736, 0.04064590111374855, 0.08231251686811447, 0.023596998304128647, 0.014467009343206882, -0.0019158374052494764, -0.06867846101522446, 0.03344663605093956, 0.0014940928667783737, 0.02078559435904026, 0.013725307770073414, -0.02032598666846752, 0.059913940727710724, 0.02687310427427292, 0.006960124708712101, 0.03996644541621208, -0.08245640248060226, -0.06925283372402191, 0.0021847577299922705, -0.04563121497631073, 0.05300431326031685, -0.0388200506567955, 0.038843508809804916, 0.024637794122099876, -0.018724102526903152, 0.025566894561052322, 0.009825263172388077, 0.022682521492242813, 0.02606147713959217, -0.029581710696220398, -0.04739626497030258, 0.04046148434281349, 0.01947624236345291, -0.04360156133770943, -0.03088236041367054, 0.014034969732165337, -0.03292142599821091, 0.02817593328654766, 0.01031934842467308, -0.027587637305259705, 0.04719254747033119, 0.0386151559650898, 0.05662340670824051, 0.026866573840379715, 0.0032873100135475397, -0.020310956984758377, 0.04309965297579765, 0.01109554897993803, -0.02595425210893154, -0.024495236575603485, -0.01007983647286892, 0.11058924347162247, 0.0585503913462162, -0.022311052307486534, -0.03068397380411625, 0.028734246268868446, 0.00490252859890461, -0.01647593453526497, 0.020022381097078323, -0.014306971803307533, 0.01573682203888893, -0.018064940348267555, -0.02484496869146824, -0.035361018031835556, -0.008546166121959686, -0.02380272001028061, 0.01712082512676716, 0.04183598980307579, -0.0003179072809871286, 0.05428086593747139, -0.004994913470000029, 0.002373539609834552, -0.0029158613178879023, -0.035740625113248825, -0.04750346392393112, 0.033289916813373566, 0.019923103973269463, -0.016109874472022057, 0.04465525969862938, -0.03482368215918541, -0.0036800499074161053, -0.006708393804728985, -0.00969115924090147, 0.049801163375377655, 0.082349494099617, 0.03754130005836487, 0.0004381990875117481, 0.04685048386454582, -0.05172228068113327, -0.007049804087728262, -0.022319011390209198, -0.04217030853033066, -0.06068805605173111, -0.03402113914489746, 0.013953166082501411, 0.00803800206631422, 0.049730438739061356, -0.043011490255594254, 0.013817280530929565, 0.020133785903453827, -0.015481749549508095, -0.027932919561862946, 0.034260641783475876, -0.013045544736087322, 0.0012231062864884734, -0.020429661497473717, -0.02629707381129265, 0.04780573025345802, -0.03680391237139702, -0.02757292427122593, -0.00705799600109458, -0.05447852239012718, 0.06201077997684479, -0.053131356835365295, -0.02146957442164421, 0.019434524700045586, 0.03283482417464256, 0.06706525385379791, 0.021680476143956184, -0.0054221679456532, 0.08078648895025253, 0.015259632840752602, 0.018958013504743576, 0.003181339707225561, -0.010447277687489986, 0.03585547208786011, 0.004688724875450134, 0.026098676025867462, 0.04120281711220741, -0.04151773080229759, 0.0044884770177304745, -0.05950046703219414, -0.016467828303575516, 0.0005273360293358564, -0.2607334852218628, 0.042608555406332016, -0.050806038081645966, -0.03301418572664261, 0.007348709274083376, -0.051887817680835724, 0.03695813938975334, -0.015404146164655685, -0.03310105577111244, -0.009256280027329922, 0.0010711773065850139, -0.024413565173745155, -0.031575217843055725, 0.05393991246819496, 0.029048388823866844, 0.020627757534384727, 0.00550475250929594, -0.05611735209822655, 0.027442138642072678, 0.05443371459841728, 0.04032403603196144, -0.03747154399752617, -0.025162816047668457, 0.014152069576084614, 0.011492420919239521, 0.053739868104457855, -0.071578249335289, 0.007655786350369453, -0.04972289875149727, -0.036348968744277954, 0.016365384683012962, -0.029403794556856155, 0.012876542285084724, -0.018178528174757957, 0.0036220834590494633, -0.007957808673381805, 0.04708679020404816, 0.010350086726248264, 0.0013483314542099833, 0.025105591863393784, -0.03323211148381233, -0.03253593668341637, -0.009304441511631012, -0.004961618222296238, 0.09853122383356094, 0.03993823751807213, -0.06415021419525146, -0.007197688799351454, 0.009837978519499302, 0.0602494440972805, -0.011233801953494549, -0.02591736987233162, 0.00226170988753438, 0.0141519196331501, -0.027541235089302063, -0.057061098515987396, -0.04535878077149391, -0.005840308032929897, -0.04068648815155029, -0.018802396953105927, -0.0058076647110283375, -0.04427599161863327, 0.033972129225730896, -0.04334249347448349, -0.056083694100379944, -0.07357613742351532, -0.10337609797716141, -0.029042605310678482, 0.04096900671720505, 0.012415858916938305, -0.002291982527822256, 0.023476459085941315, -0.03401654586195946, -0.09611254185438156, -0.05264262855052948, -0.0049119326286017895, 0.021452084183692932, -0.016979359090328217, -0.008501398377120495, 0.059861037880182266, -0.04721744731068611, -0.03887605294585228, 0.004827152006328106, 0.01275720726698637, 0.036201171576976776, 0.004684679675847292, -0.013959615491330624, -0.009030037559568882, -0.06741252541542053, -0.0028606364503502846, 0.05467154458165169, -0.04332249239087105, -0.008300955407321453, 0.02283955179154873, -0.0005723235080949962, 0.02617884799838066, -0.0022025795187801123, 0.0042662471532821655, 0.03722469136118889, 0.019928796216845512, 0.020628241822123528, -0.027339516207575798, 0.025368714705109596, -0.05038267374038696, -0.03759465739130974, -0.037548165768384933, -0.050968144088983536, 0.042088285088539124, 0.019701894372701645, 0.02935820445418358, 0.010640363208949566, -0.007035542745143175, 0.028392208740115166, -0.05604449659585953, -0.0025300688575953245, -0.019757183268666267, 0.007403080351650715, 0.015996377915143967, 0.046906061470508575, -0.004525491036474705, -0.06172022596001625, 0.024782760068774223, 0.006385085638612509, -0.027171580120921135, -0.05424284189939499, -0.02004101686179638, -0.03287550061941147, -0.03308352828025818, 0.03327670320868492, 0.0356086827814579, -0.03315265476703644, 0.02488778531551361, 0.042182937264442444, -0.01592528261244297, 0.060551296919584274, -0.018114328384399414, -0.03335743024945259, -0.029496096074581146, 0.0021031268406659365, 0.021557308733463287, -0.005237174686044455, -0.011144503951072693, -0.014896232634782791, 0.058483436703681946, 0.0124355498701334, 0.026066752150654793, -0.0077439253218472, 0.002482486190274358, 0.01747187413275242, 0.013282784260809422, -0.0074635520577430725, 0.0005727640818804502, 0.02342800609767437, -0.04430444911122322, -0.031974874436855316, -0.008485467173159122, 0.06229661405086517, 0.004886406473815441, -0.033860161900520325, -0.04329046979546547, 0.009253676980733871, -0.05436911806464195, 0.016734538599848747, -0.033926960080862045, 0.023584911599755287, 0.06268438696861267, -0.035626403987407684, 0.029535451903939247, -0.0035541013348847628, -0.022541342303156853, -0.026017168536782265, 0.03393305093050003, -0.02259586751461029, 0.03005439043045044, 0.010889165103435516, -0.006407013162970543, 0.041885197162628174, 0.017068395391106606, 0.0320284366607666, 0.0066808792762458324, -0.007495761848986149, 0.014292116276919842, -0.01139914058148861, 0.01457943394780159, 0.04552138224244118, 0.0753449872136116, -0.002643704181537032, -0.008420293219387531, -0.0111171780154109, -0.028282979503273964, -0.0034682736732065678, -0.03172149881720543, -0.02389288693666458, -0.023134617134928703, -0.035313330590724945, -0.07781176269054413, 0.05453663691878319, 0.024319009855389595, -0.010227152146399021, 0.031188400462269783, 0.013465534895658493, -0.017717186361551285, -0.04683467373251915, 0.039523426443338394, 0.04492487385869026, -0.044371966272592545, -0.011187080293893814, -0.0014234055997803807, -0.025160131976008415, 0.0026425919495522976, 0.014490600675344467, -0.06271500885486603, -0.02247980237007141, -0.021332932636141777, 0.03105560690164566, 0.0005838400102220476, -0.03152129426598549, -0.03405362367630005, 0.011493233032524586, 0.0067679095081985, 0.031792882829904556, -0.00044315337436273694, 0.00990036129951477, 0.001654948340728879, 0.00029441076912917197, 0.03432678058743477, -0.021077478304505348, -0.020110324025154114, 0.012667616829276085, -0.0060257031582295895, 0.0019259430700913072, -0.031800203025341034, 0.011849857866764069, 0.012820309959352016, -0.0420214980840683, -0.0022225514985620975, -0.07070342451334, 0.00735664926469326, 0.003971677273511887, 0.06300351768732071, -0.01393724326044321, 0.015548461116850376, -0.028891632333397865, -0.010363288223743439, -0.043498244136571884, 0.001492293318733573, 0.011892218142747879, -0.013496500439941883, 0.01738736219704151, 0.04288717731833458, 0.02164141647517681, 0.022438332438468933, 0.0025013480335474014, -0.026028722524642944, 0.0197818074375391, -0.027953743934631348, -0.06858468055725098, -0.022270677611231804, -0.04595786705613136, 0.006815632339566946, -0.01822846755385399, -0.0007867211825214326, -0.03407589718699455, 0.050920408219099045, 0.04382123425602913, 0.06807167083024979, 0.05404021218419075, 0.002871905453503132, 0.01370345801115036, -0.019193759188055992, -0.03305088356137276, -0.09149464219808578, -0.024433661252260208, 0.01625385694205761, 0.0021184911020100117, -0.024686049669981003, -0.0026385236997157335, -0.008832045830786228, 0.013459242880344391, -0.06621299684047699, -0.041954681277275085, 0.03409945219755173, -0.027973687276244164, 0.024892129004001617, 0.008568593300879002, -0.06319626420736313, -0.014860577881336212, 0.04309994727373123, -0.045326460152864456, -0.021638337522745132, -0.043997425585985184, 0.05055736005306244, -0.05327308550477028, 0.028752051293849945, -0.036307886242866516, -0.033037636429071426, 0.06684277206659317, 0.015833228826522827, 0.001091592712327838, 0.07390346378087997, -0.024534868076443672, 0.02321852557361126, 0.03236770257353783, -0.02178690955042839, -0.014233268797397614, 0.02017480880022049, -0.007086084224283695, -0.0395938865840435, 0.015773026272654533, 0.010077845305204391, 0.000029227052436908707, -0.06130717694759369, 0.08724632859230042, -0.007861270569264889, -0.05160199850797653, -0.03298203647136688, 0.017834702506661415, -0.016772087663412094, -0.0016397034050896764, -0.03205609321594238, -0.003915891516953707, -0.025167042389512062, 0.04787447303533554, -0.02845335565507412, 0.03122449479997158, 0.07847495377063751, 0.013352376408874989, -0.003268119180575013, 0.005542556755244732, 0.07461614161729813, 0.10998454689979553, 0.04232846572995186, 0.008292753249406815, 0.05524739623069763, -0.028901319950819016, -0.049297116696834564, -0.018439849838614464, -0.06637829542160034, -0.029980408027768135, 0.005935189314186573, 0.02439909428358078, 0.07689090818166733, -0.041392210870981216, 0.06372016668319702, -0.014658531174063683, -0.02722514048218727, -0.0017573300283402205, -0.013151850551366806, 0.060059741139411926, 0.06172629073262215, 0.02691161260008812, 0.04943918436765671, -0.03314017876982689, -0.024681802839040756, 0.02659977227449417, 0.006295152939856052, -0.013747879303991795, 0.031249959021806717, -0.010656372644007206, -0.004455366637557745, 0.011625759303569794, 0.02465079352259636, 0.06724492460489273, -0.020987020805478096, -0.017372658476233482, 0.0007424188079312444, 0.025910474359989166, -0.027216836810112, 0.013451666571199894, 0.00947424303740263, -0.013400109484791756, -0.0058951955288648605, -0.04738502576947212, -0.01236854586750269, -0.004970555659383535, -0.05814168229699135, 0.01861034706234932, -0.027898238971829414, 0.007536800112575293, -0.0011750271078199148, -0.006901560816913843, -0.014697998762130737, -0.055988188832998276, -0.019406428560614586, -0.05630303919315338, -0.07046361267566681, -0.0037792071234434843, 0.028255177661776543, -0.013181815855205059, -0.025661632418632507, 0.017734047025442123, -0.019121835008263588, -0.026497013866901398, 0.014367114752531052, -0.051625654101371765, -0.007952393963932991, 0.012964043766260147, 0.00575281074270606, 0.04040440171957016, 0.02161717228591442, 0.03528086841106415, 0.007490111514925957, 0.007607628125697374, -0.035753846168518066, 0.01724238134920597, 0.04287862405180931, 0.004191271495074034, -0.003625154262408614, -0.07376314699649811, 0.017478644847869873, 0.028545403853058815, -0.0320403091609478, -0.09005288779735565, 0.024177957326173782, 0.040283504873514175, 0.019122499972581863, 0.026336565613746643, -0.012093214318156242, 0.005803709849715233, -0.016819020733237267, 0.01369970291852951, 0.019745701923966408, 0.03234909102320671, 0.04047708585858345, -0.040920842438936234, 0.05821571871638298, 0.05421803891658783, -0.02869112230837345, -0.041650790721178055, -0.03256530687212944, 0.0002876510552596301, -0.0017635815311223269, -0.06151673197746277, -0.03920913115143776, -0.07297034561634064, -0.09131266176700592, -0.04586014524102211, 0.014622697606682777, -0.026329373940825462, -0.00130781892221421, 0.008856985718011856, 0.03142401948571205, -0.023452868685126305, 0.023880671709775925, -0.03515774756669998, 0.030367834493517876, -0.028077883645892143, -0.040102533996105194, -0.03355562314391136, 0.016120824962854385, -0.00899384543299675, 0.0066079674288630486, 0.010408255271613598, -0.060938186943531036, -0.001476635574363172, -0.015672514215111732, 0.01875929906964302, 0.03713623806834221, 0.035030871629714966, 0.014261968433856964 ]
[ -0.04907095059752464, -0.04280274733901024, -0.04641353711485863, -0.016530852764844894, 0.06821207702159882, -0.03182489797472954, 0.007816256955265999, -0.005013876128941774, 0.026158692315220833, -0.03256182000041008, 0.043554551899433136, -0.021864941343665123, 0.026753585785627365, 0.008734224364161491, 0.053742554038763046, -0.018071960657835007, -0.04368831589818001, -0.07698861509561539, -0.022306736558675766, 0.05567318946123123, -0.09066461026668549, -0.0504206120967865, -0.038175780326128006, -0.027105743065476418, 0.03806084394454956, 0.036466751247644424, 0.03361600637435913, -0.034896109253168106, -0.025061527267098427, -0.1976551115512848, -0.014010287821292877, 0.022810138761997223, 0.06007884442806244, 0.017425701022148132, 0.012665028683841228, 0.032368969172239304, 0.07266311347484589, -0.006017629988491535, 0.012376328930258751, 0.02597348764538765, 0.012476373463869095, 0.008812369778752327, -0.055716194212436676, -0.010619199834764004, 0.039222270250320435, 0.035765841603279114, -0.04503653198480606, -0.0001214911972056143, -0.04961743950843811, 0.03192957490682602, -0.0035890282597392797, -0.014211248606443405, -0.008577476255595684, 0.01652916893362999, 0.01673738658428192, 0.06699542701244354, 0.040028829127550125, 0.009905480779707432, 0.02077307179570198, 0.02877146005630493, 0.011596675962209702, -0.005777484737336636, -0.15013982355594635, 0.07186546176671982, -0.010894774459302425, -0.004225100390613079, -0.021593531593680382, -0.003996904473751783, -0.02383817359805107, 0.07287463545799255, 0.022173533216118813, 0.012789815664291382, -0.04289169982075691, 0.04731409624218941, 0.0019157598726451397, 0.017382586374878883, -0.021701768040657043, 0.003483812790364027, 0.024817075580358505, -0.03218923881649971, -0.04750596359372139, 0.028422966599464417, -0.016904687508940697, -0.020063139498233795, -0.011237471364438534, 0.04614945501089096, 0.0072826058603823185, 0.04112750291824341, -0.028436537832021713, 0.06686633825302124, 0.01890183612704277, 0.04665014520287514, 0.010234750807285309, 0.029634512960910797, -0.07767103612422943, -0.022332048043608665, 0.022250395268201828, 0.04201412573456764, 0.005382040981203318, 0.388461709022522, -0.01665927842259407, 0.037848763167858124, 0.02599162794649601, 0.06142182648181915, -0.05446993187069893, -0.03815110772848129, -0.005940834525972605, -0.07710538804531097, 0.04224788770079613, -0.02129245549440384, -0.0058890520595014095, -0.018714306876063347, 0.04521500691771507, -0.09583918005228043, 0.010852694511413574, 0.0006298770313151181, 0.07380424439907074, 0.026875367388129234, -0.0043969834223389626, 0.027228444814682007, -0.00435643782839179, -0.007201062981039286, 0.03724576160311699, 0.03460415080189705, 0.0289144329726696, 0.030282223597168922, 0.022513575851917267, 0.05101877450942993, 0.05464984104037285, 0.008863781578838825, 0.06620751321315765, 0.016023222357034683, -0.06931598484516144, 0.01033218577504158, 0.000027583697374211624, 0.009225688874721527, 0.011176962405443192, -0.04360594600439072, -0.015903878957033157, 0.017069939523935318, -0.007717045024037361, -0.04946225509047508, 0.05307362601161003, 0.000008190561857190914, -0.017332669347524643, 0.16675437986850739, -0.031402211636304855, -0.04090980067849159, -0.030269768089056015, -0.03145027160644531, -0.016000691801309586, 0.017913661897182465, -0.018676845356822014, -0.07519448548555374, -0.03552442789077759, 0.004450434818863869, 0.10319016128778458, -0.016833467409014702, -0.07719085365533829, -0.01000012643635273, -0.030882228165864944, -0.014241145923733711, -0.026691043749451637, 0.06056959554553032, 0.06254064291715622, -0.11421787738800049, 0.0018695445032790303, 0.009882448241114616, 0.008912263438105583, -0.09725869446992874, 0.018512843176722527, -0.0009834798984229565, -0.0301695317029953, 0.028837712481617928, 0.08344213664531708, 0.007577776443213224, 0.012152761220932007, -0.0002914290234912187, 0.034661225974559784, 0.014096622355282307, -0.007966111414134502, 0.008113015443086624, -0.05892987921833992, -0.014308270066976547, -0.0452856607735157, -0.029865287244319916, -0.08633000403642654, 0.02322600781917572, -0.022447165101766586, -0.020614784210920334, -0.020532850176095963, -0.02021479420363903, -0.08664685487747192, 0.08625616133213043, -0.0677412673830986, -0.05329710990190506, -0.0017777458997443318, 0.002861885353922844, -0.02191670797765255, -0.027220601215958595, -0.015410258434712887, 0.006782512180507183, -0.03541089966893196, 0.025347687304019928, -0.028592323884367943, 0.043029602617025375, 0.07951317727565765, -0.03540293127298355, 0.08259586989879608, 0.026014521718025208, -0.019535843282938004, -0.010317515581846237, -0.016692211851477623, 0.003972447477281094, 0.0002361204387852922, -0.003943741321563721, 0.014314099214971066, -0.024274643510580063, -0.008598421700298786, 0.04831983149051666, -0.0026022649835795164, -0.0038361011538654566, 0.004896936006844044, -0.32921940088272095, -0.02262292616069317, -0.009376485832035542, 0.01377900131046772, -0.010035648941993713, -0.03227901831269264, 0.02910599112510681, -0.030753450468182564, 0.01892438717186451, 0.06057203561067581, 0.1003689244389534, 0.02009381726384163, -0.01194094680249691, -0.0881996750831604, 0.003311779582872987, 0.0680987611413002, -0.028072461485862732, 0.012754891067743301, -0.02712467685341835, 0.0026891634333878756, 0.008608301170170307, -0.03875176981091499, -0.03830034285783768, -0.04220466688275337, 0.0017640698933973908, -0.0011566448956727982, 0.11549961566925049, 0.01787026785314083, -0.012292196042835712, -0.05195985734462738, 0.04770528897643089, 0.018228698521852493, -0.03585169091820717, -0.05013970658183098, 0.014668386429548264, -0.019413670524954796, 0.026826346293091774, -0.022770462557673454, 0.00793725810945034, -0.007159661967307329, -0.06833654642105103, 0.005470441188663244, -0.04548290744423866, -0.06020252779126167, -0.053535401821136475, -0.0012343823909759521, -0.011748043820261955, 0.017254216596484184, -0.023585453629493713, 0.03237130865454674, 0.036832544952631, -0.03635634481906891, 0.021445248275995255, 0.04460001736879349, 0.02536359801888466, -0.04370689019560814, -0.05805196240544319, -0.02839532680809498, -0.0024537979625165462, 0.03372687101364136, 0.012568414211273193, 0.05096687749028206, 0.007181466091424227, -0.08275657892227173, 0.010766923427581787, -0.010610687546432018, -0.037239428609609604, -0.01322886347770691, 0.019298087805509567, -0.029136162251234055, -0.01639837957918644, 0.061576083302497864, -0.03243696689605713, 0.04488421231508255, 0.04244808107614517, 0.009197887033224106, -0.049864109605550766, -0.014915207400918007, 0.04366760700941086, 0.006950628012418747, 0.035798896104097366, -0.06260311603546143, 0.07873155921697617, -0.022608669474720955, 0.006718112155795097, 0.055760640650987625, 0.024361325427889824, -0.003643655451014638, 0.06476098299026489, 0.02339194342494011, -0.03301161900162697, -0.01532501820474863, -0.043214473873376846, -0.029843337833881378, 0.04242591932415962, -0.024802835658192635, -0.2693672478199005, 0.05971731245517731, 0.004147537052631378, 0.0315287746489048, 0.03618074208498001, 0.00863933376967907, 0.0070229340344667435, -0.014642000198364258, -0.013580983504652977, -0.013611989095807076, 0.052853986620903015, 0.08523060381412506, -0.008308780379593372, -0.019768167287111282, 0.006610893178731203, 0.02890012226998806, 0.006692664232105017, 0.004807221237570047, -0.010509632527828217, -0.006964296568185091, 0.025949284434318542, -0.030797399580478668, 0.18645189702510834, 0.018644170835614204, 0.027646709233522415, 0.0443987213075161, -0.02973671443760395, -0.012544006109237671, 0.044277165085077286, -0.01525434572249651, -0.011310908943414688, -0.007122325710952282, 0.031525857746601105, 0.02206997387111187, 0.02288154326379299, -0.033299677073955536, -0.021775279194116592, 0.031157881021499634, 0.025646204128861427, -0.023432129994034767, -0.0029386901296675205, 0.01778438314795494, -0.02375522255897522, 0.04139746353030205, 0.0818813368678093, -0.02800804004073143, 0.003619969356805086, -0.047755707055330276, -0.027443351224064827, -0.016559183597564697, -0.027792971581220627, -0.043207570910453796, -0.041733477264642715, -0.018593572080135345, -0.0026868246495723724, 0.05117075890302658, 0.014494887553155422, -0.01426404993981123, 0.06062030792236328, 0.032659441232681274, -0.04306411370635033, -0.03284827247262001, 0.0951542928814888, -0.022729117423295975, 0.02073383703827858 ]
[ 0.01578250154852867, 0.06813480705022812, 0.005739295389503241, 0.032762542366981506, -0.002916042460128665, -0.014931789599359035, -0.0024853951763361692, -0.02180548571050167, -0.013559926301240921, -0.042283911257982254, -0.03970978409051895, 0.021250220015645027, 0.04214765131473541, -0.008386759087443352, 0.016351981088519096, -0.007391493767499924, -0.014511621557176113, 0.007400444243103266, 0.03303713724017143, -0.028361927717924118, -0.07347407191991806, -0.02343440055847168, 0.04293656349182129, 0.005890504457056522, -0.01552911102771759, 0.03828861936926842, 0.0007892993744462729, 0.016570527106523514, 0.014432369731366634, -0.086941197514534, -0.04001906141638756, -0.019353441894054413, -0.0016414400888606906, 0.011163858696818352, -0.034566834568977356, -0.008572569116950035, 0.029405998066067696, 0.03882424905896187, 0.019960545003414154, 0.02909422293305397, -0.01099393144249916, 0.008737330324947834, -0.0004218124959152192, 0.007879158481955528, 0.008018577471375465, 0.01480762381106615, -0.009466785937547684, -0.006591843441128731, -0.01912699267268181, 0.016628988087177277, -0.026714850217103958, 0.023584753274917603, -0.02257157862186432, 0.008567177690565586, 0.0176861472427845, 0.03780302032828331, -0.07113822549581528, -0.022373449057340622, -0.008480608463287354, -0.033526089042425156, 0.007726648822426796, -0.023391081020236015, -0.04977872595191002, -0.012112361378967762, -0.01736518181860447, -0.009135709144175053, -0.03103504702448845, 0.02383645437657833, 0.0016071395948529243, 0.020934900268912315, -0.03423963114619255, 0.06107091158628464, -0.05101529508829117, -0.032580506056547165, -0.0294575784355402, 0.03211408108472824, 0.033166803419589996, -0.05446343868970871, 0.02238060161471367, 0.009794994257390499, -0.03848719596862793, 0.02294122241437435, -0.044452931731939316, 0.014266477897763252, -0.0084053510800004, -0.01090338546782732, 0.01788163371384144, -0.012864002957940102, -0.006813152693212032, -0.016681674867868423, -0.046383559703826904, 0.03827665001153946, -0.006113871932029724, -0.019004931673407555, -0.08450955897569656, -0.000289800635073334, 0.024904707446694374, 0.022305989637970924, 0.03140898793935776, 0.8249052166938782, 0.01475916150957346, 0.00988047756254673, -0.033654533326625824, -0.005067326594144106, -0.020572151988744736, 0.004331551026552916, -0.007113066501915455, 0.010936477221548557, -0.014288065955042839, 0.0037651231978088617, -0.027618367224931717, 0.03340084105730057, 0.020258260890841484, 0.01012173667550087, 0.008338285610079765, 0.041406601667404175, 0.017015235498547554, 0.022533418610692024, 0.0024265556130558252, 0.016666004434227943, -0.0011537857353687286, 0.01992352493107319, 0.018376221880316734, 0.01609492115676403, 0.005113172810524702, -0.1561163365840912, 0.012774883769452572, -6.777707204957393e-33, 0.03944844752550125, -0.016003765165805817, 0.08000341802835464, -0.024301914498209953, 0.029295122250914574, 0.011995092034339905, -0.044364310801029205, -0.04570695385336876, -0.0010957352351397276, -0.03173292428255081, -0.011266150511801243, 0.005989722441881895, 0.017181457951664925, -0.039262205362319946, 0.01484775636345148, -0.018851453438401222, 0.019029151648283005, 0.03212874010205269, -0.00795507337898016, -0.0042233834974467754, -0.01537980418652296, 0.03137589618563652, -0.01580279879271984, 0.049749698489904404, -0.018409667536616325, 0.04357396438717842, 0.013813084922730923, 0.012409078888595104, -0.0004142621182836592, -0.047432441264390945, -0.04166804254055023, 0.027684926986694336, -0.040432579815387726, 0.002348526380956173, 0.017492983490228653, -0.06599822640419006, -0.011002019047737122, -0.0015455135144293308, -0.022742995992302895, -0.05289268493652344, -0.03310175612568855, -0.015040487982332706, -0.025396302342414856, -0.059932880103588104, -0.021653493866324425, -0.0014662228059023619, -0.0009241922525689006, 0.04986368119716644, -0.009999615140259266, 0.02176935411989689, 0.0012050980003550649, -0.021304430440068245, 0.0027977721765637398, 0.0008179908618330956, -0.051626063883304596, -0.0004432424029801041, 0.009588692337274551, 0.013774620369076729, 0.0012075513368472457, 0.03098791465163231, 0.0017728678649291396, -0.005414843093603849, 0.017283985391259193, 0.05076010525226593, 0.025221925228834152, 0.012708260677754879, 0.026054777204990387, -0.021036257967352867, 0.010443716309964657, 0.03114994801580906, -0.023399347439408302, 0.03982488811016083, -0.038595106452703476, -0.0013175556669011712, 0.03875452280044556, -0.060732100158929825, 0.012493404559791088, 0.012115202844142914, 0.0338854044675827, 0.04777032881975174, 0.0042848228476941586, -0.02408674731850624, 0.03581699728965759, -0.028440892696380615, -0.014377795159816742, -0.04791906103491783, 0.021071283146739006, 0.04578745737671852, -0.0021837532985955477, 0.028997870162129402, -0.004885822534561157, 0.0027852461207658052, 0.026936225593090057, -0.0004415757139213383, -0.005427781492471695, 6.547007622400888e-33, 0.01922893151640892, -0.009267871268093586, -0.0008932603523135185, 0.0032303754705935717, 0.05349958315491676, 0.00046272078179754317, 0.010718910954892635, 0.0054749553091824055, -0.016596632078289986, 0.03592459857463837, -0.013713400810956955, -0.032706305384635925, 0.005897201132029295, 0.019138235598802567, 0.0606963075697422, 0.0014885494019836187, 0.03542383387684822, -0.025552595034241676, -0.004760820418596268, 0.03580932691693306, -0.026826271787285805, -0.02637959085404873, 0.0023064862471073866, 0.00814451090991497, 0.05050487816333771, 0.0347428023815155, 0.017581012099981308, 0.005126856733113527, -0.021319149062037468, 0.002285008318722248, 0.019815584644675255, -0.01803772896528244, -0.025949731469154358, 0.0007675939123146236, -0.007357593160122633, 0.010488489642739296, -0.010168217122554779, -0.009166360832750797, 0.002249571494758129, -0.007836508564651012, 0.02632475085556507, 0.021618550643324852, -0.001089049270376563, 0.052677616477012634, 0.00610732426866889, 0.03365779295563698, 0.011012570932507515, 0.015323222614824772, -0.0651858001947403, 0.041734300553798676, -0.00018527555221226066, 0.016581017524003983, 0.004743456840515137, 0.0043779704719781876, 0.019525110721588135, -0.031302113085985184, -0.014209837652742863, -0.008893262594938278, -0.011538049206137657, 0.010817390866577625, -0.004732780158519745, -0.005158090498298407, -0.02618568204343319, 0.050103332847356796, -0.0280972458422184, -0.041949354112148285, -0.02633572556078434, -0.01431360375136137, -0.016109542921185493, 0.02568366564810276, 0.0047828140668570995, -0.046722736209630966, -0.019373182207345963, 0.02564653381705284, 0.012653950601816177, -0.013648607768118382, -0.049291808158159256, 0.007811259478330612, -0.0350462906062603, 0.03017902560532093, -0.0067269341088831425, -0.01721903868019581, 0.025893475860357285, 0.014960301108658314, -0.017287740483880043, 0.018135497346520424, -0.028148313984274864, 0.0509805828332901, 0.014026859775185585, 0.021563226357102394, 0.03259832784533501, -0.04926205426454544, -0.03099316917359829, 0.060174521058797836, -0.025388719514012337, -1.2460351861420804e-8, -0.02758527547121048, 0.017204057425260544, -0.01891549490392208, -0.017810767516493797, 0.00805436260998249, -0.015054959803819656, 0.00582533236593008, 0.009343553334474564, 0.0025249032769352198, 0.023623410612344742, 0.034592404961586, -0.040387943387031555, 0.006012077443301678, -0.01718355342745781, -0.009445508942008018, -0.04275105148553848, -0.01927463710308075, -0.028255470097064972, 0.02328493259847164, -0.0050285751931369305, 0.011197637766599655, 0.014445813372731209, -0.032692018896341324, -0.0048662219196558, 0.03967486694455147, 0.023924468085169792, 0.021218659356236458, -0.04040270298719406, 0.00098693766631186, -0.020009364932775497, 0.006154030095785856, -0.02521893009543419, -0.021813591942191124, 0.0017153883818536997, -0.0531252883374691, -0.056637395173311234, 0.024032175540924072, 0.03596165403723717, 0.026744190603494644, 0.03541043400764465, -0.009617852047085762, 0.0018134885467588902, -0.023963525891304016, -0.02779368683695793, -0.04946435987949371, 0.03603879734873772, -0.035589661449193954, -0.0251618605107069, 0.023171747103333473, -0.03501565754413605, 0.006154764909297228, -0.01839114911854267, 0.02378922328352928, 0.019944949075579643, 0.017530521377921104, 0.06090763956308365, -0.004941991996020079, -0.013815879821777344, 0.005802690517157316, -0.06689494103193283, -0.028423503041267395, 0.01771623268723488, -0.039120227098464966, -0.03147212415933609 ]
r-order-by-data-frame-column-and-take-top-10-rows
https://markhneedham.com/blog/2014/06/30/r-order-by-data-frame-column-and-take-top-10-rows
false
2014-06-30 22:47:44
R: Aggregate by different functions and join results into one data frame
[ "r-2" ]
[ "R" ]
In continuing http://www.markhneedham.com/blog/2014/06/30/neo4jr-grouping-meetup-members-by-join-timestamp/[my] http://www.markhneedham.com/blog/2014/06/30/r-order-by-data-frame-column-and-take-top-10-rows/[analysis] of the London Neo4j meetup group using R I wanted to see which days of the week we organise meetups and how many people RSVP affirmatively by the day. I started out with this query which returns each event and the number of 'yes' RSVPS: [source,r] ---- library(Rneo4j) timestampToDate <- function(x) as.POSIXct(x / 1000, origin="1970-01-01") query = "MATCH (g:Group {name: \"Neo4j - London User Group\"})-[:HOSTED_EVENT]->(event)<-[:TO]-({response: 'yes'})<-[:RSVPD]-() WHERE (event.time + event.utc_offset) < timestamp() RETURN event.time + event.utc_offset AS eventTime, COUNT(*) AS rsvps" events = cypher(graph, query) events$datetime <- timestampToDate(events$eventTime) ---- [source,r] ---- eventTime rsvps datetime 1 1.314815e+12 3 2011-08-31 19:30:00 2 1.337798e+12 13 2012-05-23 19:30:00 3 1.383070e+12 29 2013-10-29 18:00:00 4 1.362474e+12 5 2013-03-05 09:00:00 5 1.369852e+12 66 2013-05-29 19:30:00 6 1.385572e+12 67 2013-11-27 17:00:00 7 1.392142e+12 35 2014-02-11 18:00:00 8 1.364321e+12 23 2013-03-26 18:00:00 9 1.372183e+12 22 2013-06-25 19:00:00 10 1.401300e+12 60 2014-05-28 19:00:00 ---- I wanted to get a data frame which had these columns: [source,bash] ---- Day of Week | RSVPs | Number of Events ---- Getting the number of events for a given day was quite easy as I could use the groupBy function I wrote last time: [source,r] ---- groupBy = function(dates, format) { dd = aggregate(dates, by=list(format(dates, format)), function(x) length(x)) colnames(dd) = c("key", "count") dd } > groupBy(events$datetime, "%A") key count 1 Thursday 9 2 Tuesday 24 3 Wednesday 35 ---- The next step is to get the sum of RSVPs by the day which we can get with the following code: [source,r] ---- dd = aggregate(events$rsvps, by=list(format(events$datetime, "%A")), FUN=sum) colnames(dd) = c("key", "count") ---- The difference between this and our previous use of the aggregate function is that we're passing in the number of RSVPs for each event and then grouping by the day and http://stackoverflow.com/questions/1660124/how-to-group-columns-by-sum-in-r[summing up the values for each day] rather than counting how many occurrences there are. If we evaluate 'dd' we get the following: [source,r] ---- > dd key count 1 Thursday 194 2 Tuesday 740 3 Wednesday 1467 ---- We now have two data tables with a very similar shape and it turns out there's a function called http://stat.ethz.ch/R-manual/R-devel/library/base/html/merge.html[merge] which makes it very easy to convert these two data frames into a single one: [source,r] ---- x = merge(groupBy(events$datetime, "%A"), dd, by = "key") colnames(x) = c("day", "events", "rsvps") ---- [source,r] ---- > x day events rsvps 1 Thursday 9 194 2 Tuesday 24 740 3 Wednesday 35 1467 ---- We could now choose to order our new data frame by number of events descending: [source,r] ---- > x[order(-x$events),] day events rsvps 3 Wednesday 35 1467 2 Tuesday 24 740 1 Thursday 9 194 ---- We might also add an extra column to calculate the average number of RSVPs per day: [source,r] ---- > x$rsvpsPerEvent = x$rsvps / x$events > x day events rsvps rsvpsPerEvent 1 Thursday 9 194 21.55556 2 Tuesday 24 740 30.83333 3 Wednesday 35 1467 41.91429 ---- I'm still getting the hang of it but already it seems like the combination of https://github.com/nicolewhite/Rneo4j[R and Neo4j] allows us to quickly get insights into our data and I've barely scratched the surface!
null
null
[ 0.00767191918566823, -0.02450248785316944, 0.00949663296341896, 0.020869551226496696, 0.0646648108959198, -0.004270465578883886, 0.047974616289138794, 0.030249811708927155, 0.015844769775867462, 0.015748338773846626, 0.0011024896521121264, -0.009959444403648376, -0.06703417748212814, 0.024426450952887535, -0.021697280928492546, 0.07112888246774673, 0.06780993938446045, -0.011726508848369122, 0.0030821654945611954, -0.025551075115799904, 0.03331315889954567, 0.03696565330028534, -0.002753110835328698, 0.0521833598613739, 0.05514067783951759, 0.011683868244290352, -0.00393542880192399, -0.0070793041959404945, -0.04064963757991791, 0.00824389886111021, 0.05102216452360153, 0.01994778960943222, 0.011381413787603378, 0.004432001616805792, 0.030801329761743546, -0.029342234134674072, -0.025465229526162148, -0.009896360337734222, -0.0020319230388849974, -0.0016580043593421578, -0.059105027467012405, 0.010031579993665218, -0.01235540583729744, 0.02402435429394245, -0.03986241668462753, -0.0008344101370312274, -0.04864275082945824, 0.04709029942750931, 0.010451248846948147, 0.038803279399871826, -0.07462450116872787, 0.01570807583630085, 0.003938125446438789, 0.016703126952052116, -0.02315392903983593, 0.04115333408117294, 0.01472881156951189, -0.05487118288874626, 0.02225237339735031, -0.0167683195322752, 0.007289587985724211, -0.00798670295625925, 0.0033314756583422422, -0.0011733131250366569, -0.002701555145904422, -0.016840681433677673, -0.005641139578074217, 0.05179060250520706, -0.016526415944099426, 0.022351205348968506, -0.028162788599729538, 0.03362593799829483, -0.02256777137517929, 0.01666317507624626, 0.0012447377666831017, -0.04402149096131325, 0.010586683638393879, 0.054906051605939865, 0.033007506281137466, 0.04646937549114227, -0.013274501077830791, 0.0065200068056583405, 0.03586205467581749, 0.03818022459745407, 0.004940348211675882, -0.026661623269319534, -0.04231996089220047, -0.050915345549583435, -0.057484257966279984, 0.048543594777584076, 0.008352385833859444, -0.05794191360473633, 0.020498359575867653, 0.02305743657052517, -0.013650849461555481, 0.01662549562752247, 0.016324682161211967, -0.008726876229047775, 0.020585013553500175, -0.020872900262475014, -0.03564920648932457, -0.04491054639220238, 0.025705942884087563, 0.022657262161374092, -0.0714513435959816, -0.013401729986071587, -0.04325530305504799, -0.016914598643779755, 0.012061710469424725, 0.0050637973472476006, -0.049864284694194794, 0.016262302175164223, 0.005633410066366196, 0.009586983360350132, -0.07030857354402542, 0.06396055221557617, 0.02731352485716343, -0.034526389092206955, -0.0184878408908844, -0.01814470812678337, 0.02961002103984356, 0.019826354458928108, -0.0001470572460675612, 0.07281827181577682, -0.025699809193611145, 0.059743914753198624, 0.005348078440874815, 0.03970326855778694, -0.02692689374089241, -0.0700472891330719, -0.019427044317126274, 0.058307334780693054, -0.009143676608800888, -0.0023660340812057257, -0.02658950537443161, -0.04127735644578934, -0.03454982489347458, 0.018819771707057953, 0.06186700239777565, 0.03150499239563942, 0.03270520269870758, -0.04704580083489418, 0.011752001009881496, -0.004486304707825184, 0.03840136155486107, 0.02038896642625332, -0.028973126783967018, -0.051720116287469864, -0.027227934449911118, -0.018521005287766457, 0.025368720293045044, 0.012378212064504623, 0.02903185598552227, -0.04963870719075203, 0.02538359723985195, 0.08643363416194916, 0.01944918744266033, 0.004369432106614113, -0.023094352334737778, -0.006785073783248663, 0.032260242849588394, 0.030715400353074074, 0.011535502970218658, 0.07721449434757233, 0.009088350459933281, -0.016546975821256638, 0.0040251752361655235, 0.051895640790462494, -0.014251239597797394, 0.012784436345100403, -0.04004368185997009, -0.055434782058000565, 0.06890375167131424, -0.044232308864593506, 0.00010150541493203491, 0.04160920903086662, 0.08939198404550552, 0.03931542858481407, 0.033501654863357544, -0.003881036536768079, -0.07651516050100327, 0.029725372791290283, 0.004699507728219032, 0.02600986883044243, 0.021513473242521286, -0.021471546962857246, 0.07022122293710709, 0.035933732986450195, 0.01361729297786951, 0.04074583947658539, -0.08899437636137009, -0.07460072636604309, -0.015752675011754036, -0.03622322529554367, 0.06672583520412445, -0.033500734716653824, 0.04402128979563713, 0.022484945133328438, -0.008501453325152397, 0.04077095538377762, -0.008055562153458595, 0.018979394808411598, 0.01955370604991913, -0.020633267238736153, -0.06159922480583191, 0.04704343527555466, 0.011721627786755562, -0.04672512784600258, -0.029178600758314133, 0.0005966745666228235, -0.039156291633844376, 0.042873725295066833, 0.018757972866296768, -0.015088610351085663, 0.042770322412252426, 0.02807242050766945, 0.052514392882585526, 0.010747479274868965, 0.008482850156724453, -0.03766951337456703, 0.04077024757862091, 0.022297516465187073, -0.01779153198003769, -0.01298567932099104, -0.007794288452714682, 0.11219023913145065, 0.06728711724281311, -0.019461648538708687, -0.03502441197633743, 0.022775178775191307, 0.006891291122883558, -0.009744048118591309, 0.009520120918750763, -0.012491635046899319, 0.020173776894807816, -0.024698544293642044, -0.022612160071730614, -0.03471308946609497, -0.006834540981799364, -0.039333272725343704, 0.023478340357542038, 0.04962357506155968, -0.013378153555095196, 0.06839890033006668, -0.027068041265010834, 0.0038484777323901653, -0.0164644755423069, -0.03813895955681801, -0.048825133591890335, 0.015627752989530563, 0.013939784839749336, -0.012076839804649353, 0.052731625735759735, -0.03604431822896004, 0.007964723743498325, -0.019011719152331352, -0.003938284236937761, 0.0535510815680027, 0.07463013380765915, 0.05381624773144722, 0.00004716342664323747, 0.03569409251213074, -0.038671281188726425, -0.00597865367308259, -0.015385173261165619, -0.04869023337960243, -0.06382538378238678, -0.03038237802684307, -0.0002810369187500328, 0.0031206654384732246, 0.0432937927544117, -0.019106874242424965, 0.02632925659418106, 0.021068992093205452, 0.0010861913906410336, -0.02001405693590641, 0.03498300909996033, -0.00018264242680743337, -0.008387669920921326, -0.020074335858225822, -0.026810847222805023, 0.05120447278022766, -0.04206105321645737, -0.041607484221458435, -0.017008772119879723, -0.056804824620485306, 0.05656761676073074, -0.056190602481365204, -0.016545427963137627, 0.009106043726205826, 0.02671198733150959, 0.06537323445081711, 0.03509380668401718, -0.011595740914344788, 0.07795578986406326, 0.014479545876383781, 0.023089881986379623, 0.022667236626148224, -0.012280416674911976, 0.040557265281677246, -0.00983744952827692, 0.024869924411177635, 0.04115215688943863, -0.022784166038036346, 0.004710187669843435, -0.054250601679086685, 0.006432338617742062, -0.024180283769965172, -0.24175624549388885, 0.037802062928676605, -0.03732271119952202, -0.029821764677762985, 0.004142021760344505, -0.02672085352241993, 0.05597996711730957, -0.023891199380159378, -0.03869923949241638, -0.03142312169075012, 0.0030991423409432173, -0.03598774969577789, -0.026106588542461395, 0.04738667234778404, 0.030949750915169716, 0.006204431410878897, 0.009806749410927296, -0.04841345548629761, 0.014735931530594826, 0.03772745281457901, 0.02160591445863247, -0.03410183638334274, -0.012139331549406052, 0.01898786798119545, 0.018140748143196106, 0.05803612247109413, -0.07811416685581207, 0.000765582371968776, -0.057952847331762314, -0.02932550571858883, 0.01917675882577896, -0.025147704407572746, 0.01491166278719902, -0.013285944238305092, 0.004087404347956181, -0.010324881412088871, 0.048766396939754486, 0.004584966227412224, 0.0009701419621706009, 0.02005380392074585, -0.02326357178390026, -0.05414683744311333, 0.007859020493924618, -0.011384422890841961, 0.09389100223779678, 0.04480791091918945, -0.06559017300605774, -0.012658673338592052, -0.0023174325469881296, 0.058753494173288345, -0.032340627163648605, -0.026206806302070618, -0.008969247341156006, 0.008898099884390831, -0.028257664293050766, -0.0564873032271862, -0.04216138273477554, -0.01582765020430088, -0.04233727604150772, -0.029768338426947594, -0.013687944039702415, -0.040601667016744614, 0.022219525650143623, -0.043049320578575134, -0.05129315331578255, -0.06668994575738907, -0.10450369864702225, -0.025407740846276283, 0.05862955376505852, 0.012305302545428276, -0.01803203485906124, 0.007384876720607281, -0.03174053505063057, -0.09451496601104736, -0.05462482571601868, 0.004073523450642824, -0.007012778893113136, 0.01125640980899334, 0.005856428761035204, 0.06222764775156975, -0.05202184244990349, -0.05692450329661369, -0.004792813677340746, 0.014607278630137444, 0.03550611063838005, -0.0037651420570909977, -0.004609119612723589, -0.01296561025083065, -0.05660976842045784, -0.009375512599945068, 0.049376457929611206, -0.040022462606430054, -0.02950623631477356, 0.007702012080699205, 0.006997679825872183, 0.027918094769120216, -0.0013320209691300988, 0.005584412720054388, 0.036616258323192596, 0.0406930036842823, 0.026038018986582756, -0.03836551308631897, 0.03435053676366806, -0.045612238347530365, -0.03984100744128227, -0.013706225901842117, -0.030308609828352928, 0.03163912147283554, 0.027924316003918648, 0.020057646557688713, 0.02495480328798294, -0.01926295831799507, 0.01704886183142662, -0.04680851101875305, -0.01579551212489605, -0.02131902612745762, 0.024868689477443695, 0.024470694363117218, 0.041987281292676926, -0.010219947434961796, -0.055444441735744476, 0.02079189196228981, -0.0034151384606957436, -0.021308355033397675, -0.05267886072397232, -0.01494082622230053, -0.03607016056776047, -0.035540152341127396, 0.02601609379053116, 0.023614011704921722, -0.03437338024377823, 0.024338530376553535, 0.03624698892235756, -0.024269506335258484, 0.051360391080379486, -0.0007443182985298336, -0.034154586493968964, -0.025763913989067078, 0.0034117386676371098, 0.0131264328956604, -0.003345548640936613, -0.0007236028905026615, -0.006630963180214167, 0.053124699741601944, 0.02140524424612522, 0.025885453447699547, -0.015560530126094818, -0.0068609705194830894, 0.028042320162057877, 0.024315765127539635, -0.01128627359867096, -0.01451021246612072, 0.020651061087846756, -0.03966779261827469, -0.02062000147998333, -0.009568006731569767, 0.068023681640625, -0.004027311224490404, -0.02482212893664837, -0.03601182624697685, 0.013092787005007267, -0.06780731678009033, -0.00023099016107153147, -0.022412879392504692, 0.016682500019669533, 0.04681021347641945, -0.019076121971011162, 0.02385571599006653, 0.00004174602509010583, -0.02326790802180767, -0.0248049795627594, 0.019187383353710175, -0.03986873850226402, 0.038900647312402725, -0.002241057576611638, -0.007390470243990421, 0.02799179032444954, 0.015488095581531525, 0.02724909782409668, -0.010974734090268612, -0.010282824747264385, -0.0010808809893205762, -0.0002999402931891382, 0.01829066127538681, 0.04545983299612999, 0.06912235915660858, -0.011788333766162395, -0.01768501289188862, -0.01568537950515747, -0.03649882227182388, 0.005002417601644993, -0.00757609773427248, -0.03586398437619209, -0.022072361782193184, -0.035290226340293884, -0.08656652271747589, 0.05313355103135109, 0.015234404243528843, 0.010530529543757439, 0.02608979120850563, 0.020125996321439743, -0.013565790839493275, -0.04426300525665283, 0.032624538987874985, 0.03641294315457344, -0.05306830257177353, -0.008546403609216213, 0.004674877971410751, -0.016130276024341583, 0.000965244835242629, 0.017768846824765205, -0.05665544047951698, -0.015304233878850937, -0.008058428764343262, 0.021979112178087234, -0.022745870053768158, -0.03287101536989212, -0.023078177124261856, 0.012760785408318043, 0.005722414702177048, 0.04916990175843239, 0.01577339507639408, 0.007573060225695372, -0.011286093853414059, 0.0011915875365957618, 0.04202139377593994, -0.02484816685318947, -0.022316956892609596, 0.005809755064547062, -0.014109528623521328, 0.004111354239284992, -0.04299795627593994, 0.005457291379570961, 0.013684294186532497, -0.026540838181972504, -0.0019867157097905874, -0.07331530749797821, 0.0020436022896319628, -0.010529821738600731, 0.06007887050509453, -0.0201126616448164, 0.0026390559505671263, -0.03632017970085144, -0.010170849040150642, -0.04998556524515152, 0.019132889807224274, 0.011791150085628033, 0.0038157361559569836, 0.015666279941797256, 0.030483011156320572, 0.009951125830411911, 0.015703381970524788, -0.0034044685307890177, -0.024047670885920525, 0.038516540080308914, -0.04017139598727226, -0.043963994830846786, -0.009165721014142036, -0.05378849431872368, -0.01332678273320198, -0.003090932499617338, -0.0076615093275904655, -0.03834688290953636, 0.044671569019556046, 0.035309016704559326, 0.04964706301689148, 0.058162737637758255, -0.00243138219229877, 0.0009896617848426104, -0.003287222934886813, -0.013324344530701637, -0.08718599379062653, -0.0244037676602602, 0.020161109045147896, 0.004627804737538099, -0.01046560425311327, -0.001957244472578168, -0.02823825366795063, 0.015200793743133545, -0.06708633154630661, -0.029988450929522514, 0.02941976860165596, -0.02428397722542286, 0.025887761265039444, 0.02536480315029621, -0.06207592040300369, -0.004390389192849398, 0.048882242292165756, -0.0445663146674633, -0.01643986441195011, -0.03981301188468933, 0.05867447331547737, -0.04595063626766205, 0.03157082200050354, -0.03986452519893646, -0.025416143238544464, 0.06967504322528839, 0.03040107525885105, 0.0020337686873972416, 0.07610694319009781, -0.02833980694413185, 0.022155506536364555, 0.03322964161634445, -0.018297042697668076, -0.0003846921317745, 0.01755329966545105, -0.015211867168545723, -0.05115573853254318, 0.012923932634294033, -0.001471629017032683, 0.0007095075561664999, -0.053475797176361084, 0.09584260731935501, 0.002736087189987302, -0.036148034036159515, -0.023522308096289635, 0.012413126416504383, -0.015305590815842152, -0.0036840573884546757, -0.025875451043248177, 0.0032925796695053577, -0.03464927524328232, 0.05746562033891678, -0.014169786125421524, 0.023665327578783035, 0.06982490420341492, 0.01045998651534319, -0.003233053255826235, 0.011967328377068043, 0.0884552150964737, 0.10324621945619583, 0.04825965687632561, 0.00492793507874012, 0.07306911796331406, -0.03656180202960968, -0.03922427445650101, -0.012208898551762104, -0.04871940240263939, -0.04607103019952774, 0.007616161368787289, 0.02460445649921894, 0.08565948158502579, -0.028906499966979027, 0.07036229223012924, -0.0038271541707217693, -0.02709416300058365, 0.004589616321027279, -0.023086529225111008, 0.07293935120105743, 0.06266462057828903, 0.027023127302527428, 0.036410797387361526, -0.01007012277841568, -0.03501896187663078, 0.044410113245248795, -0.00381244788877666, -0.014679871499538422, 0.029562851414084435, -0.022375047206878662, 0.004875967279076576, 0.012028980068862438, 0.038013409823179245, 0.07059379667043686, 0.0051942868158221245, 0.0003147224197164178, 0.017247039824724197, 0.01007006037980318, -0.01720203086733818, 0.02629893459379673, -0.014453710988163948, 0.00009365267032990232, -0.031382955610752106, -0.05237917974591255, -0.023071078583598137, -0.006995154079049826, -0.07311850041151047, 0.018921829760074615, -0.037891898304224014, 0.01747249811887741, -0.011931250803172588, -0.03524232655763626, -0.022503552958369255, -0.04992019012570381, -0.03747361898422241, -0.051011715084314346, -0.07817181199789047, -0.01306201796978712, 0.016210967674851418, -0.01932676136493683, -0.025170881301164627, 0.009596075862646103, -0.02062712237238884, -0.026340415701270103, 0.0028625833801925182, -0.0653979629278183, -0.0022646314464509487, 0.00788865890353918, -0.008974185213446617, 0.02744372747838497, 0.025611884891986847, 0.05194332078099251, 0.008582721464335918, 0.004313149955123663, -0.04117952659726143, 0.019571395590901375, 0.04969983175396919, 0.030437687411904335, -0.0060335868038237095, -0.08035174757242203, 0.026402974501252174, 0.024571629241108894, -0.03708552569150925, -0.09068570286035538, 0.0285326037555933, 0.022300411015748978, 0.012097325176000595, 0.02622387371957302, -0.010029108263552189, -0.008905980736017227, -0.017460426315665245, 0.011051568202674389, 0.010436324402689934, 0.01891498826444149, 0.04577011242508888, -0.040240585803985596, 0.05082275718450546, 0.06570100784301758, -0.02937336266040802, -0.04051080718636513, -0.02519497461616993, 0.0025536403991281986, -0.008115108124911785, -0.046319980174303055, -0.03195987269282341, -0.05230610445141792, -0.108185313642025, -0.04183703288435936, 0.011038877069950104, -0.017741426825523376, -0.017926236614584923, 0.023023083806037903, 0.024895545095205307, -0.028314603492617607, 0.018331309780478477, -0.03470182046294212, 0.028195999562740326, -0.013843483291566372, -0.030707119032740593, -0.03725781291723251, 0.0051396931521594524, -0.009622842073440552, 0.0086443480104208, 0.001031715888530016, -0.053198833018541336, -0.005463575012981892, -0.02765822596848011, 0.02808038331568241, 0.042740512639284134, 0.042518578469753265, 0.014203842729330063 ]
[ -0.048243407160043716, -0.04256785660982132, -0.040103692561388016, -0.024108774960041046, 0.06286054849624634, -0.03692041337490082, -0.019347134977579117, 0.0030288733541965485, 0.030574483796954155, -0.01668081060051918, 0.04857973754405975, -0.008086939342319965, 0.027050495147705078, 0.00712397787719965, 0.06663986295461655, -0.031070876866579056, -0.032006341964006424, -0.08858881145715714, -0.015851672738790512, 0.06115226820111275, -0.047631729394197464, -0.0312244463711977, -0.02875511161983013, -0.03039093129336834, 0.027925973758101463, 0.042072542011737823, 0.02618076279759407, -0.042517680674791336, -0.049201175570487976, -0.20487673580646515, -0.013035088777542114, -0.001469699782319367, 0.04205704480409622, 0.012585140764713287, 0.016407590359449387, 0.019724583253264427, 0.04966513440012932, -0.008852788247168064, 0.025725232437253, 0.03905998542904854, 0.004546840209513903, -0.002358107129111886, -0.040936533361673355, 0.0021605214569717646, 0.013099780306220055, 0.011925612576305866, -0.04586260765790939, -0.0007631633197888732, -0.04175296798348427, 0.022609857842326164, -0.030203228816390038, 0.004380693193525076, 0.013567134737968445, 0.005212739575654268, 0.01593402773141861, 0.052064698189496994, 0.029495706781744957, 0.04298678785562515, 0.020676620304584503, 0.005057941656559706, -0.002219466958194971, -0.0006093119736760855, -0.17784661054611206, 0.07546848058700562, -0.010565346106886864, -0.015249405987560749, -0.04075012728571892, 0.015763353556394577, -0.015742966905236244, 0.055272627621889114, 0.01566433534026146, 0.022225571796298027, -0.05056696757674217, 0.05883016064763069, -0.006320872809737921, 0.019459210336208344, -0.030686557292938232, 0.003927337937057018, 0.007513666525483131, -0.029140718281269073, -0.029566911980509758, 0.040779318660497665, -0.026119183748960495, -0.020537737756967545, -0.007470136508345604, 0.026096589863300323, 0.00018741075473371893, 0.05750389024615288, -0.0052774143405258656, 0.055733658373355865, 0.020093165338039398, 0.05444679036736488, 0.016707293689250946, 0.023734200745821, -0.09532766789197922, -0.026537662371993065, 0.024822745472192764, 0.045845530927181244, 0.009188706055283546, 0.3876567780971527, 0.0002117701806128025, 0.037114862352609634, 0.010519880801439285, 0.06587298959493637, -0.015533535741269588, -0.047984130680561066, 0.00032028270652517676, -0.0821836069226265, 0.03545183688402176, -0.0167803093791008, -0.0012641992652788758, -0.034855421632528305, 0.0799298956990242, -0.10668951272964478, 0.024055730551481247, 0.019780151546001434, 0.0809788852930069, 0.028850382193922997, -0.00891653262078762, 0.01591908372938633, -0.013378927484154701, -0.00541618000715971, 0.04040826857089996, 0.00991769414395094, 0.0362454392015934, 0.036966778337955475, 0.044880084693431854, 0.05962686985731125, 0.0333840548992157, 0.011879218742251396, 0.07553604990243912, 0.011797696352005005, -0.0731588676571846, 0.018781989812850952, 0.005437048152089119, 0.00847933441400528, 0.01877051405608654, -0.04660023748874664, -0.006250785663723946, 0.016866419464349747, -0.011128632351756096, -0.05045442283153534, 0.0387255921959877, -0.0004770395753439516, -0.023326437920331955, 0.15731209516525269, -0.030971640720963478, -0.05220724642276764, -0.02645038813352585, -0.04845487326383591, -0.026486916467547417, 0.02625073492527008, -0.0010173554765060544, -0.08798345923423767, -0.01787741482257843, 0.006575660314410925, 0.09573923796415329, -0.01136683952063322, -0.08704562485218048, -0.006906752474606037, -0.016764195635914803, -0.021854164078831673, -0.021283801645040512, 0.0985201969742775, 0.03918064385652542, -0.13894057273864746, 0.028764139860868454, 0.016234247013926506, 0.01631905697286129, -0.08755607157945633, 0.015259713865816593, -0.007415178697556257, -0.012350083328783512, 0.00230828276835382, 0.10765761882066727, 0.009397691115736961, -0.01579628325998783, 0.0017246619099751115, 0.04335814714431763, 0.014690069481730461, -0.02195245772600174, -0.00975657720118761, -0.045582082122564316, 0.017771413549780846, -0.049269385635852814, -0.031236322596669197, -0.08248262852430344, 0.0056044659577310085, -0.01087235938757658, -0.01965317316353321, -0.021159017458558083, -0.055764179676771164, -0.08230821043252945, 0.07537627965211868, -0.04546933248639107, -0.03623741865158081, -0.0037044768687337637, 0.006981833837926388, -0.0036477851681411266, -0.021698391065001488, -0.0048801410011947155, -0.02788255177438259, -0.03219754993915558, 0.017225386574864388, -0.042489029467105865, 0.04471086710691452, 0.045436516404151917, -0.035130325704813004, 0.06426525115966797, 0.04359104111790657, -0.031207434833049774, -0.0048216781578958035, -0.0056913187727332115, 0.0012893842067569494, 0.0039863125421106815, 0.0044091795571148396, -0.008476740680634975, -0.019601864740252495, -0.014357556588947773, 0.051082491874694824, -0.002295408397912979, 0.01595722883939743, 0.006730291526764631, -0.3294362425804138, -0.0287137720733881, 0.001212923089042306, 0.003823978593572974, 0.003367395605891943, -0.029038473963737488, 0.028888577595353127, -0.022129302844405174, 0.02760375291109085, 0.060860976576805115, 0.08878795057535172, 0.036273304373025894, -0.014599835500121117, -0.06630439311265945, 0.014427539892494678, 0.04570256918668747, -0.038868993520736694, 0.014034552499651909, -0.01914208196103573, 0.017479348927736282, -0.004790568258613348, -0.043717335909605026, -0.023049714043736458, -0.043791938573122025, 0.006002096924930811, -0.0142351184040308, 0.11770587414503098, 0.04237009957432747, -0.032298821955919266, -0.05354632809758186, 0.04098788648843765, 0.010888797231018543, -0.03996216505765915, -0.053747422993183136, -0.0014548137551173568, -0.0020007428247481585, 0.036637548357248306, 0.021649286150932312, 0.0024337677750736475, -0.009438801556825638, -0.05848969146609306, 0.007045721635222435, -0.042351145297288895, -0.05744299292564392, -0.04810056835412979, 0.00799557939171791, -0.0001495823380537331, -0.007611414883285761, 0.0008296745945699513, 0.0576164573431015, 0.02095319889485836, -0.04166380688548088, 0.014087836258113384, 0.04695940390229225, 0.03809328377246857, -0.025104552507400513, -0.05099830403923988, -0.037732068449258804, 0.00044617088860832155, 0.030123809352517128, 0.001436824444681406, 0.04892328381538391, 0.014395688660442829, -0.0693671777844429, 0.012663114815950394, -0.008752895519137383, -0.01924555003643036, -0.0035310713574290276, 0.019310597330331802, -0.013519011437892914, -0.0335361622273922, 0.07023434340953827, -0.03242834284901619, 0.038004640489816666, 0.026924891397356987, 0.00309384404681623, -0.04172241687774658, -0.01723610609769821, 0.04371976852416992, 0.014058349654078484, 0.05105160176753998, -0.04087833687663078, 0.0770195722579956, -0.01688200607895851, -0.005425672512501478, 0.03914162516593933, 0.0017451575258746743, 0.0013560177758336067, 0.06345439702272415, 0.02430603839457035, -0.019074056297540665, -0.020206645131111145, -0.0432930551469326, -0.014670133590698242, 0.0413326770067215, -0.020190199837088585, -0.27873992919921875, 0.05790562555193901, 0.01779530569911003, 0.031508006155490875, 0.02023327350616455, 0.017731133848428726, 0.004820812959223986, -0.021322516724467278, -0.03881124407052994, -0.010223771445453167, 0.0315798819065094, 0.07523217797279358, -0.0038793347775936127, -0.023959651589393616, 0.02460542321205139, 0.029031243175268173, -0.015949588268995285, -0.0008690804243087769, -0.011522232554852962, -0.014560015872120857, 0.038465987890958786, -0.012023845687508583, 0.18180730938911438, 0.029017765074968338, 0.009534468874335289, 0.046052977442741394, -0.031726934015750885, -0.006619327235966921, 0.04347418621182442, -0.04042001813650131, -0.038423240184783936, -0.017505714669823647, 0.013903783634305, 0.013907619751989841, 0.011195381172001362, -0.009665046818554401, -0.010823982767760754, 0.029723836109042168, 0.02214987762272358, -0.020016200840473175, -0.00616573728621006, 0.029377156868577003, -0.020005153492093086, 0.021990835666656494, 0.07701718062162399, -0.01963355578482151, 0.007746595423668623, -0.05140748620033264, -0.020467247813940048, -0.005556631367653608, -0.025065403431653976, -0.058960385620594025, -0.031329020857810974, 0.0006273388862609863, 0.004530994221568108, 0.07908349484205246, 0.007065656594932079, -0.02807016298174858, 0.05793299153447151, 0.028728876262903214, -0.044101517647504807, -0.040625255554914474, 0.09066729247570038, -0.03348648548126221, 0.008206790313124657 ]
[ 0.011557203717529774, 0.05017222836613655, -0.00053841044427827, 0.04217803478240967, 0.0027828768361359835, -0.004820540081709623, -0.004803633317351341, -0.024361014366149902, -0.01354295201599598, -0.02804400399327278, -0.04126710444688797, 0.013228940777480602, 0.01372018363326788, 0.0003118261229246855, 0.026475129649043083, -0.011353366076946259, -0.019472697749733925, -0.006583948619663715, 0.04236658662557602, -0.019106267020106316, -0.06236591562628746, -0.010401255451142788, 0.022795235738158226, -0.007220487575978041, -0.022395525127649307, 0.040900819003582, -0.004986488725990057, 0.030848737806081772, 0.022547058761119843, -0.08072229474782944, -0.015342931263148785, -0.017393019050359726, -0.010394041426479816, 0.0013755392283201218, -0.025875702500343323, 0.00345254666171968, 0.009634364396333694, 0.027972301468253136, 0.013641681522130966, 0.034113798290491104, -0.003074050648137927, -0.00431240675970912, -0.016143502667546272, -0.005548474378883839, 0.0011863713152706623, -0.004330809228122234, -0.026449574157595634, -0.009217408485710621, -0.01032247208058834, -0.013063756749033928, -0.015028344467282295, 0.02679835818707943, -0.009800783358514309, -0.0021543516777455807, 0.01837247982621193, 0.01855861023068428, -0.06857041269540787, -0.04404028505086899, -0.027754468843340874, -0.06398355960845947, 0.011969693936407566, -0.014469237066805363, -0.05492233857512474, -0.011854792013764381, -0.019271690398454666, -0.008767160587012768, -0.0061598774045705795, 0.03633284568786621, 0.012640910223126411, 0.021415483206510544, -0.04409629479050636, 0.04908980801701546, -0.07205862551927567, -0.012263192795217037, -0.02774268016219139, 0.03164488822221756, 0.014530722051858902, -0.03986400365829468, 0.016332266852259636, -0.0036593209952116013, -0.0395800955593586, 0.002975328592583537, -0.0390302911400795, 0.0248285923153162, -0.0030142725445330143, -0.031504981219768524, 0.025189241394400597, 0.014222169294953346, -0.0010302782757207751, 0.007507265545427799, -0.040236279368400574, 0.04706055670976639, 0.013846168294548988, -0.006797410547733307, -0.10087708383798599, 0.010171201080083847, 0.0017603897722437978, 0.023099731653928757, 0.02838343195617199, 0.830393373966217, 0.0027855492662638426, 0.008779049851000309, -0.025141047313809395, 0.01158710103482008, -0.035714663565158844, 0.004437783267349005, -0.035064343363046646, 0.007009935565292835, -0.017937811091542244, -0.018251756206154823, -0.01936495304107666, 0.022234121337532997, 0.0253464225679636, 0.014508197084069252, 0.018361983820796013, 0.06599584221839905, 0.027199795469641685, 0.033278968185186386, -0.012272396124899387, 0.02702939137816429, 0.0008011149475350976, 0.02879585325717926, 0.004610683303326368, 0.010328149423003197, -0.012560421600937843, -0.15977472066879272, 0.023580843582749367, -5.965946438452031e-33, 0.0396074615418911, -0.010278680361807346, 0.0555773489177227, -0.03505578637123108, 0.03443501517176628, 0.023690130561590195, -0.04729222506284714, -0.039556410163640976, -0.00026000672369264066, -0.02374899946153164, 0.0009967093355953693, 0.0028464028146117926, 0.03333423659205437, -0.05002675950527191, 0.022477682679891586, -0.017337514087557793, 0.013297585770487785, 0.036395441740751266, -0.03422314301133156, -0.02025674656033516, -0.017380936071276665, 0.035889092832803726, 0.006391154136508703, 0.0424128882586956, -0.015282866545021534, 0.05237749218940735, -0.000047495122998952866, 0.011718224734067917, -0.0018828138709068298, -0.055041294544935226, -0.013926955871284008, 0.02544708363711834, -0.02901601418852806, 0.029858006164431572, 0.010679821483790874, -0.041186295449733734, -0.020822588354349136, -0.009793923236429691, -0.025784285739064217, -0.04802371561527252, -0.02779463119804859, 0.0014320446643978357, -0.03232906758785248, -0.03161392733454704, -0.04082811623811722, 0.0035438882187008858, -0.007810952141880989, 0.012382114306092262, 0.004609210416674614, 0.008236928842961788, -0.0008003911934792995, -0.005548873916268349, -0.015720931813120842, -0.007573437411338091, -0.03816410154104233, 0.009103432297706604, 0.030667968094348907, 0.04546155408024788, 0.0011323350481688976, 0.030581200495362282, 0.01885833404958248, -0.030963638797402382, 0.028202252462506294, 0.0480225495994091, 0.025903495028614998, 0.016980506479740143, 0.017217714339494705, -0.019500700756907463, 0.0033858444076031446, 0.01489293947815895, -0.016966072842478752, 0.0846448689699173, -0.016349321231245995, -0.00680904695764184, 0.04422486945986748, -0.04883310943841934, 0.013363444246351719, 0.011008129455149174, 0.019363803789019585, 0.06275945156812668, -0.020573467016220093, -0.012907952070236206, 0.02708260342478752, -0.029213406145572662, -0.010139349848031998, -0.03193872794508934, 0.01982259191572666, 0.023352202028036118, -0.0064615472219884396, 0.03806689754128456, -0.004202993120998144, 0.0036917636170983315, 0.036015454679727554, -0.00628473749384284, -0.017973143607378006, 5.9683422428758006e-33, 0.00557277537882328, -0.012412793934345245, 0.005277674645185471, -0.00498247193172574, 0.0325409360229969, -0.008611190132796764, 0.026383141055703163, 0.019939862191677094, -0.015314306132495403, 0.04676087945699692, -0.019677506759762764, -0.014759994111955166, 0.024535486474633217, 0.02253127098083496, 0.05591734126210213, -0.002134855603799224, 0.054028455168008804, -0.019738784059882164, 0.0031312862411141396, 0.013045436702668667, -0.01550309732556343, -0.004326609428972006, 0.00288168853148818, 0.003591476706787944, 0.05368877202272415, 0.03107493743300438, 0.026854265481233597, -0.008033405989408493, -0.014071066863834858, -0.009985542856156826, 0.018225837498903275, -0.02037959173321724, -0.04010966792702675, 0.0011015946511179209, 0.025129228830337524, 0.021235266700387, -0.004542939830571413, 0.0034847818315029144, 0.007467726711183786, 0.011166434735059738, 0.012790193781256676, 0.04401925951242447, -0.04505356773734093, 0.045653704553842545, 0.014714793302118778, 0.02788274548947811, -0.009732277132570744, 0.017547672614455223, -0.02754686027765274, 0.01853904128074646, -0.019236594438552856, 0.02732144482433796, -0.017104243859648705, 0.025545286014676094, 0.027794715017080307, -0.022511009126901627, -0.0070741805247962475, 0.008804282173514366, -0.006780531257390976, -0.01784525066614151, -0.022887200117111206, -0.004669609945267439, -0.03999939560890198, 0.0483076386153698, -0.009945384226739407, -0.017988154664635658, -0.03548456355929375, -0.028970425948500633, 0.009827835485339165, 0.011509617790579796, -0.006157280877232552, -0.0480382964015007, -0.025537626817822456, 0.01819121278822422, 0.011689175851643085, 0.004156737122684717, -0.02343045361340046, 0.009817495010793209, -0.016516132280230522, 0.007965318858623505, 0.010432396084070206, -0.018538162112236023, 0.02560199610888958, 0.021805359050631523, -0.01638520509004593, 0.021479571238160133, -0.03330722451210022, 0.04029879346489906, 0.0173919890075922, 0.024080608040094376, 0.030042100697755814, -0.05295582488179207, -0.0097509091719985, 0.05732806771993637, -0.018250515684485435, -1.2131324389486053e-8, -0.027149779722094536, -0.015758182853460312, -0.01760074496269226, -0.01177955511957407, 0.045133139938116074, -0.010795037262141705, 0.010299286805093288, -0.009926491416990757, -0.01938946172595024, 0.03696291893720627, 0.03872239962220192, -0.04024964198470116, 0.01632656902074814, 0.00116761215031147, 0.008037639781832695, -0.04149748012423515, 0.005443858914077282, -0.010993645526468754, 0.01721937768161297, -0.006762863602489233, 0.017552893608808517, -0.00667925737798214, -0.03799897059798241, 0.0029426647815853357, 0.015742996707558632, 0.007561910431832075, -0.0009249674039892852, -0.06369441002607346, -0.0013102211523801088, -0.05772499367594719, -0.0016480913618579507, -0.02132655493915081, -0.0230486448854208, 0.020080825313925743, -0.04571876674890518, -0.04901827499270439, 0.004118502605706453, 0.02948550507426262, 0.035040903836488724, 0.028400778770446777, 0.00025544100208207965, -0.0006302223191596568, -0.015519935637712479, -0.01742631383240223, -0.035408373922109604, 0.035180602222681046, -0.04662299156188965, -0.027705524116754532, 0.011914425529539585, -0.045937858521938324, 0.00183992856182158, -0.01270575076341629, 0.028478248044848442, 0.006080037448555231, 0.012052816338837147, 0.031288031488657, -0.0006036384147591889, -0.007742867339402437, 0.0088392598554492, -0.05685245990753174, -0.02332201972603798, 0.002998658921569586, -0.02956288307905197, -0.04797260835766792 ]
r-aggregate-by-different-functions-and-join-results-into-one-data-frame
https://markhneedham.com/blog/2014/06/30/r-aggregate-by-different-functions-and-join-results-into-one-data-frame
false
2014-06-30 00:06:54
Neo4j/R: Grouping meetup members by join timestamp
[ "neo4j", "r-2" ]
[ "neo4j", "R" ]
I wanted to do some ad-hoc analysis on the join date of members of the http://www.meetup.com/graphdb-london/[Neo4j London meetup group] and since cypher doesn't yet have functions for dealings with dates I thought I'd give R a try. I started off by executing a cypher query which returned the join timestamp of all the group members using Nicole White's https://github.com/nicolewhite/Rneo4j[RNeo4j] package: [source,r] ---- > library(Rneo4j) > query = "match (:Person)-[:HAS_MEETUP_PROFILE]->()-[:HAS_MEMBERSHIP]->(membership)-[:OF_GROUP]->(g:Group {name: \"Neo4j - London User Group\"}) RETURN membership.joined AS joinDate" > meetupMembers = cypher(graph, query) > meetupMembers[1:5,] [1] 1.389107e+12 1.376572e+12 1.379491e+12 1.349454e+12 1.383127e+12 ---- I realised that if I was going to do any date manipulation I'd need to translate the timestamp into an R friendly format so I wrote the following function to help me do that: [source,r] ---- > timestampToDate <- function(x) as.POSIXct(x / 1000, origin="1970-01-01") ---- I added another column to the data frame with this date representation: [source,r] ---- > meetupMembers$joined <- timestampToDate(meetupMembers$joinDate) > meetupMembers[1:5,] joinDate joined 1 1.389107e+12 2014-01-07 15:08:40 2 1.376572e+12 2013-08-15 14:13:40 3 1.379491e+12 2013-09-18 08:55:11 4 1.349454e+12 2012-10-05 17:28:04 5 1.383127e+12 2013-10-30 09:59:03 ---- Next I wanted to group those timestamps by the combination of month + year for which the http://www.statmethods.net/management/aggregate.html[aggregate] and http://www.statmethods.net/input/dates.html[format] functions came in handy: [source,r] ---- > dd = aggregate(meetupMembers$joined, by=list(format(meetupMembers$joined, "%m-%Y")), function(x) length(x)) > colnames(dd) = c("month", "count") > dd month count 1 01-2012 4 2 01-2013 52 3 01-2014 88 4 02-2012 7 5 02-2013 52 6 02-2014 91 7 03-2012 12 8 03-2013 23 9 03-2014 93 10 04-2012 3 11 04-2013 34 12 04-2014 119 13 05-2012 9 14 05-2013 69 15 05-2014 102 16 06-2011 14 17 06-2012 5 18 06-2013 39 19 06-2014 114 20 07-2011 4 21 07-2012 16 22 07-2013 20 23 08-2011 2 24 08-2012 34 25 08-2013 50 26 09-2012 14 27 09-2013 52 28 10-2011 2 29 10-2012 29 30 10-2013 42 31 11-2011 2 32 11-2012 31 33 11-2013 34 34 12-2012 7 35 12-2013 19 ---- I wanted to be able to group by different date formats so I created the following function to make life easier: [source,r] ---- groupBy = function(dates, format) { dd = aggregate(dates, by= list(format(dates, format)), function(x) length(x)) colnames(dd) = c("key", "count") dd } ---- Now we can find the join dates grouped by year: [source,r] ---- > groupBy(meetupMembers$joined, "%Y") key count 1 2011 24 2 2012 171 3 2013 486 4 2014 607 ---- or by day: [source,r] ---- > groupBy(meetupMembers$joined, "%A") key count 1 Friday 135 2 Monday 287 3 Saturday 80 4 Sunday 102 5 Thursday 187 6 Tuesday 286 7 Wednesday 211 ---- or by month: [source,r] ---- > groupBy(meetupMembers$joined, "%m") key count 1 01 144 2 02 150 3 03 128 4 04 156 5 05 180 6 06 172 7 07 40 8 08 86 9 09 66 10 10 73 11 11 67 12 12 26 ---- I found the 'by day' grouping interesting as I had the impression that the huge majority of people joined meetup groups on a Monday but the difference between Monday and Tuesday isn't significant. 60% of the joins happen between Monday and Wednesday. The 'by month' grouping is a bit skewed by the fact we're only half way into 2014 and there have been a lot more people joining this year than in previous years. If we https://stat.ethz.ch/pipermail/r-help/2012-July/319446.html[exclude this year] then the spread is more uniform with a slight dip in December: [source,r] ---- > groupBy(meetupMembers$joined[format(meetupMembers$joined, "%Y") != 2014], "%m") key count 1 01 56 2 02 59 3 03 35 4 04 37 5 05 78 6 06 58 7 07 40 8 08 86 9 09 66 10 10 73 11 11 67 12 12 26 ---- Next up I think I need to get some charts going on and perhaps compare the distributions of join dates of various London meetup groups against each other. I'm an absolute R newbie so if anything I've done is stupid and can be done better please let me know.
null
null
[ 0.002811647020280361, -0.01697419211268425, 0.005087096244096756, 0.04716877639293671, 0.08093526214361191, 0.017675315961241722, 0.02819056622684002, -0.0038896542973816395, 0.02386847510933876, 0.0008139736601151526, 0.01824202574789524, -0.007877889089286327, -0.08484703302383423, 0.03404860943555832, -0.019195666536688805, 0.08914206176996231, 0.059996265918016434, -0.025864198803901672, 0.005846431944519281, -0.012002432718873024, 0.027677910402417183, 0.039756402373313904, -0.00903819315135479, 0.04813723266124725, 0.05034896731376648, 0.010558905079960823, -0.022188615053892136, -0.012693788856267929, -0.024981150403618813, 0.006752155255526304, 0.07642405480146408, 0.006116821896284819, 0.018278758972883224, -0.015914907678961754, 0.02465434931218624, -0.004687979817390442, -0.02948092110455036, 0.00927519891411066, -0.0022338684648275375, -0.00710364431142807, -0.03666534274816513, 0.03971487656235695, -0.006266218144446611, 0.02877379022538662, -0.03866175562143326, -0.0027671190910041332, -0.04556083306670189, 0.04817495122551918, 0.020779510959982872, 0.026269417256116867, -0.06151881441473961, 0.003851908026263118, 0.007839297875761986, 0.003979245666414499, 0.00004181549957138486, 0.04442345350980759, 0.017455942928791046, -0.07000421732664108, 0.04777451232075691, -0.021248333156108856, 0.0231187641620636, -0.009440742433071136, 0.011971337720751762, 0.0027484127786010504, -0.03320588544011116, -0.020969614386558533, -0.005801012739539146, 0.03214871510863304, -0.030386367812752724, -0.009765398688614368, -0.01905614323914051, -0.0009769381722435355, -0.021996408700942993, -0.017331993207335472, -0.013875536620616913, -0.01696341671049595, -0.01040808018296957, 0.05995120108127594, 0.030648555606603622, 0.03616870939731598, 0.004091107752174139, 0.0012048521311953664, 0.011289003305137157, 0.019911136478185654, -0.0023678515572100878, -0.02213655598461628, -0.04193217307329178, -0.05097461864352226, -0.05315864831209183, 0.03657056763768196, 0.00012981088366359472, -0.0702623501420021, 0.025823719799518585, -0.0006832550861872733, 0.006144107785075903, 0.01394398882985115, 0.001467660185880959, -0.02092384174466133, 0.038412485271692276, -0.014388137497007847, -0.05015674978494644, -0.02635848894715309, 0.01623992621898651, -0.0005566578474827111, -0.06018678471446037, -0.02023337222635746, -0.04023006558418274, -0.04312792047858238, 0.005549742374569178, -0.006255296524614096, -0.01863345503807068, 0.02034943364560604, 0.016215020790696144, -0.0025875999126583338, -0.05997099354863167, 0.05646636337041855, 0.03574299067258835, -0.015110115520656109, -0.03780636563897133, -0.004940906073898077, 0.026205681264400482, 0.027743024751544, 0.00600848812609911, 0.0549972839653492, 0.013218382373452187, 0.0859280452132225, 0.01605859212577343, 0.03972252085804939, -0.018498841673135757, -0.07413068413734436, -0.017973018810153008, 0.053312864154577255, -0.005555268842726946, 0.0026064536068588495, -0.027355961501598358, -0.04141955077648163, -0.032060205936431885, 0.010836826637387276, 0.06528587639331818, 0.018245013430714607, 0.02485496550798416, -0.027550868690013885, 0.033538468182086945, -0.028490375727415085, 0.029796607792377472, 0.04307075962424278, -0.030776621773838997, -0.057777710258960724, -0.03678322955965996, -0.012377153150737286, 0.023152217268943787, -0.0008872943581081927, 0.05559973791241646, -0.010969736613333225, 0.022522006183862686, 0.08565857261419296, 0.010630760341882706, 0.007211605552583933, -0.020886559039354324, -0.020747719332575798, 0.03929568827152252, 0.027942635118961334, -0.011476962827146053, 0.06107471138238907, -0.010644841007888317, -0.011762785725295544, 0.002556802937760949, 0.03207993879914284, -0.025920551270246506, 0.019631842151284218, -0.03011743724346161, -0.06786709278821945, 0.06239847466349602, -0.023552771657705307, 0.00893798191100359, 0.044697973877191544, 0.0874200165271759, 0.013864200562238693, 0.00399961369112134, 0.019329460337758064, -0.07375460863113403, 0.06590079516172409, -0.0018286736449226737, 0.0008415729971602559, 0.020383669063448906, -0.021679112687706947, 0.07115896046161652, 0.004820461384952068, 0.005917102564126253, 0.05055442079901695, -0.08905328065156937, -0.06717164069414139, -0.0011840966762974858, -0.04774104803800583, 0.05950644612312317, -0.05232147499918938, 0.02580149658024311, 0.035942450165748596, -0.024709422141313553, 0.026736998930573463, -0.0005140279536135495, 0.01710275001823902, 0.024842308834195137, -0.016699999570846558, -0.05244462564587593, 0.018276557326316833, 0.027917390689253807, -0.039403270930051804, -0.019467659294605255, 0.015738192945718765, -0.014694899320602417, 0.040717270225286484, 0.023010151460766792, -0.034971993416547775, 0.051425859332084656, 0.05375847592949867, 0.04422149434685707, 0.0247770007699728, -0.00848789419978857, -0.016738247126340866, 0.06323125958442688, -0.004043916705995798, -0.02888524904847145, -0.03777649253606796, -0.01176212728023529, 0.11386403441429138, 0.06227095425128937, -0.004297797568142414, -0.03490087017416954, 0.03468787297606468, -0.006585452239960432, -0.02848745323717594, 0.02704758383333683, -0.018623007461428642, 0.02323961816728115, -0.024987617507576942, 0.0007841378101147711, -0.013685500249266624, -0.02007095329463482, -0.017920028418302536, 0.01825566403567791, 0.07281727343797684, 0.0054934341460466385, 0.043729737401008606, -0.028768390417099, 0.004684718791395426, -0.019815409556031227, -0.041342053562402725, -0.03603680804371834, 0.050898630172014236, 0.023372966796159744, -0.01135539636015892, 0.053238075226545334, -0.04386967420578003, -0.011144385673105717, -0.006711998954415321, -0.023574603721499443, 0.064969502389431, 0.07998378574848175, 0.03738974779844284, -0.004739351104944944, 0.02270619571208954, -0.06065783277153969, -0.013179127126932144, -0.03489629551768303, -0.04412367567420006, -0.05098586156964302, -0.01944916322827339, 0.008672273717820644, 0.00708055030554533, 0.04980230703949928, -0.03585926815867424, 0.003079531481489539, 0.020477082580327988, 0.0026089646853506565, -0.023833179846405983, 0.0255789402872324, -0.0006014606915414333, -0.01217947993427515, -0.03595218434929848, -0.004756178241223097, 0.05652468651533127, -0.03769990801811218, -0.05600840598344803, -0.02923254854977131, -0.04449235647916794, 0.04819536954164505, -0.01920466125011444, -0.020816391333937645, 0.0046371943317353725, 0.025885088369250298, 0.06872077286243439, 0.006726436782628298, 0.02711058035492897, 0.07338318973779678, 0.010197882540524006, 0.037090618163347244, 0.022292302921414375, -0.005804280750453472, 0.05993035435676575, 0.023136399686336517, 0.03549942746758461, 0.04406915605068207, -0.025521252304315567, -0.00010568682046141475, -0.039697159081697464, -0.01095934584736824, -0.02272822894155979, -0.23667381703853607, 0.038996122777462006, -0.06240217015147209, -0.04013581946492195, 0.002986316801980138, -0.05683636665344238, 0.04334648698568344, -0.02034551277756691, -0.04312862455844879, -0.017937256023287773, 0.02442479133605957, -0.026997588574886322, -0.03038611449301243, 0.04840190336108208, 0.024201910942792892, 0.0028442861512303352, -0.025853104889392853, -0.062168195843696594, 0.0116333719342947, 0.042708221822977066, 0.028786996379494667, -0.02643304131925106, -0.0030356913339346647, 0.02770353853702545, 0.0036363222170621157, 0.047262728214263916, -0.06069839373230934, -0.00629331823438406, -0.05107695609331131, -0.0509088970720768, 0.013060242868959904, -0.019052600488066673, 0.02999892272055149, -0.012271534651517868, 0.000709613086655736, -0.0008898885571397841, 0.03932465240359306, 0.018861565738916397, 0.02369551919400692, 0.017353154718875885, -0.04512849822640419, -0.019829444587230682, -0.0033082240261137486, -0.021563135087490082, 0.0954868420958519, 0.03650751709938049, -0.05820757523179054, 0.0004447671235539019, 0.010862911120057106, 0.071746826171875, -0.023119166493415833, -0.018701009452342987, -0.005594681017100811, 0.011241582222282887, -0.030265502631664276, -0.05974200740456581, -0.04769962653517723, -0.010339430533349514, -0.03650932013988495, -0.015576105564832687, -0.020463306456804276, -0.03486134111881256, 0.03222120553255081, -0.02537522092461586, -0.05624863877892494, -0.07899539917707443, -0.10385483503341675, -0.0397336483001709, 0.030988642945885658, 0.007948738522827625, -0.015357550233602524, 0.0322260819375515, -0.037849247455596924, -0.09715297818183899, -0.045396797358989716, -0.012959213927388191, 0.0068833669647574425, -0.024884600192308426, -0.014125846326351166, 0.05266479030251503, -0.05281686782836914, -0.05447816848754883, -0.004614381585270166, 0.010997585952281952, 0.02879037708044052, 0.03548041731119156, -0.01793028973042965, -0.025972237810492516, -0.06637784093618393, -0.016990765929222107, 0.05299026146531105, -0.04562244936823845, -0.01681477017700672, 0.03778742253780365, -0.003995051141828299, 0.022860785946249962, 0.007659862749278545, -0.002733750268816948, 0.03708980977535248, 0.02927222102880478, 0.023664703592658043, -0.032615456730127335, 0.018803106620907784, -0.05632873252034187, -0.030068155378103256, -0.04508481174707413, -0.040307797491550446, 0.018026551231741905, 0.032689809799194336, 0.022667085751891136, 0.005218598525971174, -0.007971529848873615, 0.02094516158103943, -0.06358283758163452, -0.03515909984707832, -0.022907814010977745, 0.029356714338064194, 0.01030793134123087, 0.033140141516923904, -0.013740641996264458, -0.06679730862379074, 0.022246992215514183, 0.012832523323595524, -0.024027330800890923, -0.04153651371598244, -0.025055689737200737, -0.02793888933956623, -0.03492426127195358, 0.019737957045435905, 0.0412142314016819, -0.04507973790168762, 0.02487446554005146, 0.0341179296374321, -0.013189572840929031, 0.07888542115688324, -0.00886494293808937, -0.02049625851213932, -0.028241008520126343, -0.001926760422065854, 0.014515907503664494, -0.01646864041686058, 0.008195547387003899, -0.022356634959578514, 0.049235016107559204, 0.0018955040723085403, 0.011831417679786682, 0.020279377698898315, 0.006143147125840187, 0.015062839724123478, 0.01759808510541916, -0.02744150720536709, -0.0022561869118362665, 0.013299706391990185, -0.04594298452138901, -0.0008374707540497184, 0.004648283123970032, 0.05811569467186928, -0.005842178128659725, -0.02371317520737648, -0.027710117399692535, 0.01741352304816246, -0.03997335955500603, 0.028467383235692978, -0.03274587169289589, 0.018802430480718613, 0.05400770530104637, -0.01776745542883873, 0.02280779741704464, -0.01980508863925934, -0.024091137573122978, -0.032085176557302475, 0.028969747945666313, -0.019966185092926025, 0.015894751995801926, -0.025992900133132935, -0.0054246047511696815, 0.03496773540973663, 0.01062341034412384, 0.04439900442957878, -0.008681398816406727, -0.03365745022892952, 0.009086641483008862, -0.01455332525074482, 0.005115912761539221, 0.047712091356515884, 0.0659734234213829, -0.0009843431180343032, -0.012912709265947342, -0.03835897520184517, -0.039059288799762726, -0.0043816580437123775, -0.007515423931181431, -0.04238028824329376, -0.016813045367598534, -0.04197198525071144, -0.07179956138134003, 0.030182495713233948, 0.02765158750116825, -0.006530069746077061, 0.03562833368778229, 0.015851406380534172, -0.007605664432048798, -0.017242515459656715, 0.032699085772037506, 0.04338069632649422, -0.04744447022676468, -0.025870706886053085, -0.0009988687233999372, -0.018231002613902092, 0.007960173301398754, 0.025959337130188942, -0.04256487637758255, -0.017130941152572632, -0.012098079547286034, 0.027290474623441696, 0.021718552336096764, -0.027374714612960815, -0.013185152783989906, 0.01224532164633274, 0.006163587793707848, 0.035460565239191055, 0.0077436016872525215, -0.007786840666085482, -0.005673064384609461, 0.01214921660721302, 0.035150930285453796, -0.020528750494122505, -0.01122999843209982, 0.005379528738558292, 0.001114833983592689, 0.01792447827756405, -0.04636567458510399, 0.019066639244556427, 0.011199512518942356, -0.025202497839927673, -0.010382880456745625, -0.09759317338466644, 0.023796167224645615, -0.0028044788632541895, 0.0645303800702095, -0.01697041280567646, 0.022321848198771477, -0.03193512186408043, 0.014280903153121471, -0.043299801647663116, 0.024254990741610527, 0.021893253549933434, -0.016010038554668427, 0.016570698469877243, 0.030510174110531807, 0.01553751528263092, 0.015047957189381123, -0.01810363680124283, -0.03974447026848793, 0.020283322781324387, -0.020958079025149345, -0.06811079382896423, 0.004232561215758324, -0.036702003329992294, -0.005014931783080101, -0.009929264895617962, -0.005965858232229948, -0.043763451278209686, 0.05079418793320656, 0.06587500870227814, 0.05098770186305046, 0.07094432413578033, -0.010426636785268784, 0.003377302782610059, -0.003871967550367117, -0.026580534875392914, -0.08217892795801163, -0.0011242195032536983, 0.02550247125327587, -0.006813195534050465, -0.027694201096892357, -0.006875660736113787, -0.011566746048629284, 0.014487464912235737, -0.051091115921735764, -0.028618698939681053, 0.056409094482660294, -0.020379820838570595, 0.04006033018231392, 0.007811412215232849, -0.05493604764342308, -0.00866091437637806, 0.04081273451447487, -0.035341307520866394, -0.021141596138477325, -0.03914131596684456, 0.05719383433461189, -0.06294962763786316, 0.0422586128115654, -0.01680280640721321, -0.022161271423101425, 0.03976956382393837, 0.01429156493395567, 0.004466075450181961, 0.0659240186214447, -0.026889827102422714, 0.0158404428511858, 0.03489284589886665, -0.02054913155734539, -0.01299865823239088, 0.03719167038798332, -0.002829877659678459, -0.03189433738589287, 0.02021552436053753, 0.00155477540101856, -0.02171611785888672, -0.04477721452713013, 0.09083674103021622, -0.022154370322823524, -0.04508424177765846, -0.02955622412264347, 0.025854362174868584, -0.009196892380714417, -0.00036322648520581424, -0.006129433400928974, -0.010056423023343086, -0.02499738335609436, 0.060636233538389206, -0.029266145080327988, 0.03441862389445305, 0.08163657039403915, 0.011001606471836567, 0.007224550936371088, -0.012519371695816517, 0.07766392827033997, 0.09311716258525848, 0.032427895814180374, 0.018222754821181297, 0.05559511482715607, -0.01981256529688835, -0.04761536419391632, -0.006581326015293598, -0.04141784459352493, -0.01693115569651127, 0.003970937337726355, 0.007706048898398876, 0.09560571610927582, -0.06186839938163757, 0.0502229705452919, -0.0029182794969528913, -0.029305512085556984, 0.006730481516569853, -0.016559597104787827, 0.05623394250869751, 0.04242447391152382, 0.02012265846133232, 0.051612239331007004, -0.03011859394609928, -0.025925612077116966, 0.04399076849222183, 0.00333223445340991, -0.009068629704415798, 0.04601750522851944, -0.025040576234459877, 0.006507982965558767, 0.0033803666010499, 0.013785182498395443, 0.06925944983959198, -0.03521202504634857, -0.005991615820676088, 0.01031468715518713, 0.02808150090277195, -0.012733157724142075, 0.01791972853243351, -0.01653149165213108, -0.015155923552811146, -0.003323785960674286, -0.06705541163682938, -0.007752925623208284, 0.0007858597091399133, -0.058898478746414185, 0.03833501785993576, -0.03988860175013542, -0.007289428263902664, -0.0077385371550917625, -0.05349704623222351, -0.03147400543093681, -0.05253488942980766, -0.02822733484208584, -0.05782024934887886, -0.08544513583183289, -0.014396687038242817, 0.0024646236561238766, -0.025854770094156265, -0.04304668307304382, 0.02109234407544136, -0.017639460042119026, -0.01653345301747322, 0.0031775396782904863, -0.038706421852111816, -0.011296605691313744, 0.016133353114128113, -0.008643757551908493, 0.009787479415535927, 0.020068829879164696, 0.026197202503681183, 0.012912265956401825, -0.00035122327972203493, -0.04372891038656235, 0.008821489289402962, 0.04253613203763962, 0.01558946818113327, -0.01125615369528532, -0.06232216954231262, 0.016648415476083755, 0.03722689673304558, -0.025709984824061394, -0.08820127695798874, 0.020280200988054276, 0.023727968335151672, 0.011647802777588367, 0.02152075804769993, -0.0066706351935863495, -0.004235335625708103, 0.021793833002448082, -0.004229879006743431, 0.026704316958785057, 0.036690566688776016, 0.046474020928144455, -0.04699590802192688, 0.04978388175368309, 0.05217154324054718, -0.026591148227453232, -0.02540314570069313, -0.04623982310295105, 0.022180043160915375, -0.017147717997431755, -0.05427325516939163, -0.03255948796868324, -0.06182147562503815, -0.08961790055036545, -0.03453875333070755, -0.0011289010290056467, -0.05418264493346214, 0.014645717106759548, 0.009605231694877148, 0.043527767062187195, -0.005160734988749027, 0.022339973598718643, -0.0368666872382164, 0.053886912763118744, -0.012440750375390053, -0.02389482595026493, -0.03384442999958992, 0.04134663939476013, -0.0036038761027157307, 0.0028718430548906326, 0.014062806963920593, -0.0746321901679039, 0.0007976965862326324, -0.026095524430274963, 0.017683733254671097, 0.020608890801668167, 0.029610829427838326, 0.032030634582042694 ]
[ -0.0646374300122261, -0.03533705696463585, -0.035128477960824966, -0.003744737012311816, 0.07376086711883545, -0.06229773163795471, 0.007668965961784124, -0.005887644365429878, 0.02461083047091961, -0.016007643193006516, 0.07051748037338257, -0.04516533017158508, 0.031061777845025063, -0.004231104161590338, 0.04662852734327316, -0.023686736822128296, -0.053216274827718735, -0.07561611384153366, -0.027381693944334984, 0.05357401818037033, -0.08710766583681107, -0.04259869456291199, -0.02962455339729786, -0.009105371311306953, 0.051930021494627, 0.0450199693441391, 0.01626085303723812, -0.03300678730010986, -0.04875363036990166, -0.1883152276277542, 0.0032372213900089264, 0.032413505017757416, 0.036677174270153046, 0.02435484156012535, 0.018180634826421738, 0.009002676233649254, 0.07463469356298447, -0.026218628510832787, 0.016963055357336998, 0.03691047430038452, 0.03250008076429367, 0.00567442225292325, -0.054607175290584564, -0.018089458346366882, 0.032009806483983994, 0.03478270769119263, -0.0403393916785717, 0.0011547165922820568, -0.0499524362385273, 0.04462448135018349, -0.015985550358891487, -0.023744013160467148, 0.012759516015648842, 0.013352559879422188, 0.010989893227815628, 0.08654022216796875, 0.03746159374713898, 0.025251479819417, 0.024794505909085274, 0.028633344918489456, -0.00718634482473135, -0.012354254722595215, -0.16651391983032227, 0.07696885615587234, -0.012664195150136948, -0.01612742803990841, -0.018005384132266045, -0.01911175437271595, -0.0327034555375576, 0.04776233434677124, 0.026491038501262665, -0.004544587805867195, -0.07543279230594635, 0.03951866552233696, 0.0005659565795212984, 0.024802014231681824, -0.019077526405453682, -0.0007905529346317053, 0.0322289764881134, -0.025248320773243904, -0.04269787669181824, 0.05522989481687546, -0.01855296455323696, -0.002774834632873535, -0.010849237442016602, 0.027538517490029335, 0.0076788500882685184, 0.033420827239751816, -0.015738768503069878, 0.044341884553432465, 0.02543780766427517, 0.04462920129299164, 0.02236354723572731, 0.03792706876993179, -0.10169192403554916, -0.006269182078540325, 0.039682887494564056, 0.03913707658648491, -0.00994970090687275, 0.37875473499298096, -0.031959619373083115, 0.04298883676528931, 0.0061478884890675545, 0.05979127436876297, -0.03735462203621864, -0.03440844640135765, 0.012101443484425545, -0.07428421080112457, 0.0402112677693367, -0.03669879585504532, -0.006515413988381624, -0.038086555898189545, 0.044069964438676834, -0.09383409470319748, 0.01794132962822914, 0.022292103618383408, 0.06672289222478867, 0.02009834535419941, 0.0004357270081527531, 0.017076920717954636, 0.0037297974340617657, 0.002818378387019038, 0.03240900859236717, 0.042143553495407104, 0.003770658280700445, 0.03205711767077446, 0.03389942646026611, 0.04432941973209381, 0.027082202956080437, 0.02849462255835533, 0.08476290851831436, 0.009085124358534813, -0.06621534377336502, 0.004246617201715708, -0.023547949269413948, 0.01705733686685562, 0.0046436721459031105, -0.027436690405011177, -0.008106057532131672, 0.03315920755267143, -0.02268049493432045, -0.052912637591362, 0.04942813143134117, 0.022999996319413185, -0.023846670985221863, 0.15175184607505798, -0.018119623884558678, -0.03277908265590668, -0.03809385374188423, -0.024412844330072403, -0.016492223367094994, 0.03463968634605408, -0.00826730765402317, -0.07276325672864914, -0.030232755467295647, 0.007608878426253796, 0.09237291663885117, -0.024266483262181282, -0.09026458114385605, -0.009152707643806934, -0.027866264805197716, -0.03336307033896446, -0.062065672129392624, 0.07869085669517517, 0.06754537671804428, -0.13770313560962677, 0.021106375381350517, 0.019920669496059418, 0.011836112476885319, -0.083928681910038, 0.030677948147058487, -0.004330991767346859, -0.002506556222215295, 0.0005666701472364366, 0.07165828347206116, 0.0070401765406131744, 0.0030337972566485405, 0.0004850834666285664, 0.031211797147989273, 0.017464319244027138, -0.02057081274688244, 0.0043950011022388935, -0.06296525150537491, -0.003355882130563259, -0.04962598532438278, -0.021784603595733643, -0.060989852994680405, 0.025083443149924278, -0.010000745765864849, -0.025060642510652542, -0.022522209212183952, -0.012175762094557285, -0.08978164941072464, 0.08905407041311264, -0.0701160579919815, -0.044693537056446075, -0.01310163363814354, 0.0125010060146451, -0.007825286127626896, -0.04115143418312073, 0.0018960146699100733, -0.0033953094389289618, -0.033213235437870026, 0.0023759242612868547, -0.04202153906226158, 0.015815697610378265, 0.07636696845293045, -0.02745814621448517, 0.06707219034433365, 0.04333646968007088, -0.007227208465337753, -0.004549723118543625, -0.01577281393110752, 0.011645474471151829, 0.007568293251097202, -0.006167755927890539, 0.014121883548796177, -0.026988016441464424, -0.004476605448871851, 0.041245825588703156, -0.009150666184723377, 0.010522626340389252, 0.0026768178213387728, -0.34074780344963074, -0.008728908374905586, -0.024429693818092346, 0.020205877721309662, 0.002866853727027774, -0.034656625241041183, 0.017767025157809258, -0.026715759187936783, 0.03818468749523163, 0.06879971921443939, 0.08719652146100998, 0.04369707405567169, -0.03645941615104675, -0.08733239769935608, -0.00433295127004385, 0.038923561573028564, -0.008197065442800522, 0.014463278464972973, -0.023623859509825706, 0.012922520749270916, -0.004444148391485214, -0.048981472849845886, -0.036218006163835526, -0.018313707783818245, 0.014069710858166218, 0.01701606996357441, 0.11673416942358017, 0.028181027621030807, -0.012113389559090137, -0.05994591861963272, 0.043642207980155945, 0.010922367684543133, -0.017365626990795135, -0.05221164971590042, 0.009833624586462975, -0.005432012025266886, 0.025358522310853004, -0.005444027483463287, 0.0034091142006218433, -0.0172283798456192, -0.06085347756743431, -0.0031266766600310802, -0.021425126120448112, -0.028628699481487274, -0.0476745180785656, 0.019856594502925873, 0.011469495482742786, 0.0055640218779444695, -0.03037155233323574, 0.05288530886173248, 0.028321081772446632, -0.019058136269450188, 0.02553819678723812, 0.05916666239500046, 0.03082776814699173, -0.033499713987112045, -0.05960879847407341, -0.025791676715016365, 0.004819199442863464, 0.026311447843909264, 0.002341145882382989, 0.04614253714680672, 0.009821056388318539, -0.0703485980629921, 0.015006935223937035, -0.028027979657053947, -0.02558963932096958, -0.021030785515904427, 0.00996115431189537, -0.02176894061267376, -0.01986457221210003, 0.07469744980335236, -0.0525040403008461, 0.03763569891452789, 0.027205023914575577, 0.009612067602574825, -0.05870239436626434, -0.007924295961856842, 0.03058823011815548, 0.008158744312822819, 0.030604543164372444, -0.06177482381463051, 0.08269339054822922, -0.029122672975063324, 0.002013678662478924, 0.04770740121603012, 0.0067628612741827965, -0.0030036666430532932, 0.06764078140258789, 0.0044082519598305225, -0.039083778858184814, -0.04250369220972061, -0.03818053752183914, -0.02638825960457325, 0.057085346430540085, -0.00694296695291996, -0.2757486402988434, 0.05630013719201088, 0.0005657350993715227, 0.0337638333439827, 0.008139857091009617, 0.013424752280116081, 0.004475765395909548, -0.020406322553753853, -0.045062266290187836, -0.0017269545933231711, 0.044215381145477295, 0.06995080411434174, -0.0069968849420547485, -0.010526848956942558, 0.008632303215563297, 0.03500226140022278, 0.021165795624256134, -0.0019266660092398524, -0.005818689242005348, 0.004451240412890911, 0.03651924431324005, -0.037922248244285583, 0.1802724152803421, 0.027549870312213898, 0.03151782974600792, 0.032992031425237656, -0.03876510635018349, -0.0195932574570179, 0.056056492030620575, -0.02544860914349556, -0.01619204692542553, 0.01026683859527111, 0.02553737908601761, 0.019891347736120224, 0.010632959194481373, -0.011022732593119144, -0.028004826977849007, 0.02979549579322338, 0.017223162576556206, -0.03003319911658764, 0.001773158204741776, 0.0119341891258955, -0.004075236618518829, 0.0334605872631073, 0.07846346497535706, -0.012757462449371815, -0.0027877790853381157, -0.04627443850040436, -0.018547778949141502, -0.0217390488833189, -0.016832945868372917, -0.03801450505852699, -0.033575285226106644, -0.002658514305949211, -0.011741493828594685, 0.05341557413339615, 0.01786903291940689, -0.018495051190257072, 0.043946582823991776, 0.032220952212810516, -0.03463086858391762, -0.03974558785557747, 0.08226565271615982, -0.029025617986917496, 0.009695989079773426 ]
[ 0.002593477489426732, 0.054602984338998795, 0.03108532354235649, 0.02119305729866028, 0.003852307563647628, -0.01423815730959177, -0.02541407011449337, 0.0080081382766366, -0.023443911224603653, -0.01775732822716236, -0.027222363278269768, 0.01594412699341774, 0.038628123700618744, -0.014524445869028568, 0.0056329891085624695, 0.005584406200796366, -0.0017252081306651235, 0.004845151212066412, 0.04657367989420891, -0.0056174807250499725, -0.05634388327598572, 0.00827393401414156, 0.028995847329497337, -0.013800024054944515, -0.002092512557283044, 0.007888088002800941, -0.01955275982618332, 0.03533169999718666, 0.019819442182779312, -0.07234858721494675, -0.03565330430865288, 0.003369451267644763, -0.017948094755411148, 0.029302023351192474, -0.03695705905556679, 0.0023254896514117718, 0.01663132943212986, 0.04101484641432762, 0.02091943845152855, 0.017222357913851738, -0.010368692688643932, -0.0007785291527397931, -0.006223064381629229, -0.00196595280431211, 0.011106621474027634, -0.014672640711069107, -0.006408586632460356, 0.0005274117575027049, -0.033443745225667953, -0.009687895886600018, -0.041977234184741974, 0.008478774689137936, -0.032762136310338974, -0.0016373407561331987, 0.022058434784412384, 0.05420040711760521, -0.08927793055772781, -0.01371626928448677, -0.04666684940457344, -0.046319711953401566, -0.018190870061516762, -0.03043699823319912, -0.07351776957511902, -0.012537064962089062, 0.0030440865084528923, -0.024227933958172798, -0.015968868508934975, 0.01690530963242054, 0.021411051973700523, 0.01833595335483551, -0.020548803731799126, 0.05201989412307739, -0.0744747743010521, -0.013595526106655598, -0.027129076421260834, 0.07621840387582779, 0.03827150911092758, -0.031700652092695236, 0.02152581699192524, -0.01834956184029579, -0.01630340702831745, 0.02563532441854477, -0.03125805780291557, 0.001935735228471458, -0.005978537257760763, -0.049506910145282745, -0.0027384895365685225, 0.01989023946225643, -0.019898926839232445, -0.009797677397727966, -0.022924277931451797, 0.021686172112822533, -0.006028394680470228, -0.004493092652410269, -0.10197483748197556, -0.0022023438941687346, 0.04842078313231468, 0.05278823524713516, 0.03763449564576149, 0.8141298890113831, 0.005506718065589666, -0.006068216636776924, -0.0309066753834486, 0.032022811472415924, -0.007408250588923693, 0.002381333615630865, 0.0026021040976047516, 0.015603385865688324, 0.008856216445565224, -0.006864836905151606, -0.022787922993302345, 0.02120419219136238, -0.010823873803019524, -0.0011316401651129127, -0.0023414907045662403, 0.057044271379709244, 0.004986986052244902, -0.004058271646499634, -0.00024261297949124128, 0.01400204561650753, -0.004423252306878567, 0.0057692029513418674, -0.007292965892702341, 0.007268344517797232, -0.018619056791067123, -0.17614246904850006, 0.023954415693879128, -6.357391567405622e-33, 0.048104509711265564, -0.0025735695380717516, 0.0630466565489769, -0.04109733924269676, 0.02442527748644352, 0.018579663708806038, -0.020367298275232315, -0.04576041176915169, -0.0015668761916458607, -0.024363014847040176, -0.02495202235877514, 0.00947580300271511, 0.004767220001667738, -0.06878415495157242, 0.010620995424687862, 0.004131186753511429, 0.017272597178816795, 0.036644093692302704, 0.016965137794613838, 0.004373942036181688, 0.011115767993032932, 0.0058637578040361404, -0.0210398081690073, 0.051172539591789246, 0.0278447475284338, 0.037099167704582214, 0.00261089694686234, 0.014318385161459446, -0.017759108915925026, -0.05164853483438492, -0.03612593188881874, 0.031159084290266037, -0.034698668867349625, 0.020008159801363945, 0.01634831167757511, -0.054586298763751984, -0.041787583380937576, -0.013598764315247536, -0.018521789461374283, -0.05175549536943436, -0.043228525668382645, -0.010231421329081059, -0.020811254158616066, -0.01892327144742012, -0.026378953829407692, 0.0005180515581741929, -0.040700431913137436, 0.04015283286571503, -0.004436149727553129, 0.052509479224681854, 0.01185991708189249, -0.01117709930986166, -0.010837731882929802, 0.010724306106567383, -0.04912092909216881, 0.011067257262766361, 0.011444183066487312, 0.027327360585331917, -0.013366174884140491, 0.022921821102499962, 0.018013980239629745, -0.005822948180139065, 0.00928570982068777, 0.03638891130685806, 0.0032229425851255655, 0.01666904054582119, -0.008499352261424065, -0.02502795308828354, -0.003117623273283243, 0.05507133528590202, -0.041578225791454315, 0.0701301321387291, -0.02110217697918415, -0.014793111011385918, 0.045907799154520035, -0.03781481459736824, 0.024754337966442108, -0.021110327914357185, 0.0522703193128109, 0.03097880445420742, 0.004736083559691906, -0.010139861144125462, 0.019410807639360428, 0.010658955201506615, -0.01320732943713665, -0.05352329462766647, 0.0200453232973814, 0.02736612968146801, -0.0037868956569582224, 0.008955438621342182, 0.01864909753203392, -0.004018931649625301, 0.022837087512016296, -0.006287973374128342, -0.01130820531398058, 6.690207078902029e-33, 0.026621658354997635, 0.0026179575361311436, 0.0008965451852418482, 0.0041466522961854935, 0.03766481578350067, -0.007978972978889942, 0.02142457664012909, 0.022069264203310013, -0.019356517121195793, 0.032191697508096695, -0.004552295897156, -0.04238476976752281, 0.018464935943484306, 0.029646150767803192, 0.04854985699057579, -0.004583144560456276, 0.04465514421463013, -0.03455965593457222, -0.019370252266526222, 0.026634402573108673, -0.030580636113882065, -0.011282951571047306, 0.01131149847060442, -0.005930512677878141, 0.0613064244389534, 0.02273508347570896, 0.03864588588476181, -0.00557721359655261, -0.020949358120560646, -0.011955550871789455, -0.00015298584185075015, -0.0018979052547365427, -0.0065798331052064896, -0.01119715441018343, 0.016382232308387756, 0.021278850734233856, 0.009842201136052608, -0.030052997171878815, 0.014872955158352852, -0.03270728513598442, 0.014994784258306026, 0.03962599113583565, -0.025234296917915344, 0.05461958050727844, 0.0249191801995039, 0.033229101449251175, 0.012025547213852406, 0.014637538231909275, -0.04254639893770218, 0.024685652926564217, 0.014129996299743652, 0.015040607191622257, 0.0014329291880130768, 0.010861164890229702, 0.017146913334727287, -0.02497822605073452, 0.004923117347061634, 0.025756726041436195, 0.021052701398730278, -0.020618638023734093, -0.009649884887039661, -0.007223408669233322, -0.0616585947573185, 0.04126417636871338, -0.021229011937975883, -0.03860383853316307, -0.012170654721558094, -0.010482925921678543, -0.0186118446290493, 0.027412010356783867, 0.0038530840538442135, -0.03303823620080948, -0.03762471303343773, 0.02630298212170601, 0.021187612786889076, -0.021108396351337433, -0.03207322210073471, -0.010144027881324291, -0.024957993999123573, 0.019210882484912872, -0.0005180113366805017, 0.002401816425845027, 0.037179119884967804, 0.042050059884786606, -0.018066521733999252, 0.02590804733335972, -0.05438554659485817, 0.06336648762226105, -0.003087531542405486, 0.00460964348167181, 0.0169819388538599, -0.04955943673849106, -0.03241107985377312, 0.06785176694393158, -0.01494216825813055, -1.2408903238281255e-8, -0.009773226454854012, 0.01621263474225998, -0.023612340912222862, -0.017366565763950348, 0.015009906142950058, 0.009529084898531437, 0.008201120421290398, -0.015217666514217854, 0.02822180837392807, 0.024647600948810577, 0.042142368853092194, -0.02490879036486149, 0.005584524944424629, -0.021161144599318504, -0.007836825214326382, -0.047837141901254654, -0.014224745333194733, -0.019706757739186287, 0.021652912721037865, 0.008960562758147717, -0.02788987196981907, 0.04290815815329552, -0.03572342172265053, -0.01046119537204504, 0.021891480311751366, 0.0067929551005363464, 0.019582917913794518, -0.0372166782617569, 0.016238048672676086, -0.013667633756995201, -0.011455278843641281, -0.023022422567009926, -0.009283344261348248, 0.016812443733215332, -0.0689164400100708, -0.04826439544558525, 0.018798327073454857, 0.02847037836909294, 0.013696063309907913, 0.04201812297105789, -0.019289521500468254, 0.013480717316269875, -0.012247155420482159, -0.012795869261026382, -0.03000500798225403, 0.006711272988468409, -0.011486531235277653, -0.03866223990917206, 0.03135950490832329, -0.03509892523288727, 0.017433730885386467, -0.008803445845842361, 0.01233371440321207, -0.009157390333712101, 0.02004007250070572, 0.041597139090299606, 0.005269666668027639, -0.016809329390525818, -0.014561113901436329, -0.055021025240421295, -0.03066311404109001, 0.006842905189841986, -0.0207583736628294, -0.04291859641671181 ]
neo4jr-grouping-meetup-members-by-join-timestamp
https://markhneedham.com/blog/2014/06/30/neo4jr-grouping-meetup-members-by-join-timestamp
false
2014-06-08 01:34:03
Ruby: Regex - Matching the Trademark ™ character
[ "ruby" ]
[ "Ruby" ]
I've been http://gist.neo4j.org/?6e24a3bb09766e62b0b1[playing around with some World Cup data] and while cleaning up the data I wanted to strip out the year and host country for a world cup. I started with a string like this which I was reading from a file: [source,text] ---- 1930 FIFA World Cup Uruguay ™ ---- And I wanted to be able to extract just the 'Uruguay' bit without getting the trademark or the space preceding it. I initially tried the following to match all parts of the line and extract my bit: [source,ruby] ---- p text.match(/\d{4} FIFA World Cup (.*?) ™/)[1] ---- Unfortunately that doesn't actually compile: [source,text] ---- tm.rb:4: syntax error, unexpected $end, expecting ')' p text.match(/\d{4} FIFA World Cup (.*?) ™/)[1] ^ ---- I was initially able to work around the problem by http://books.google.co.uk/books?id=0Msuh5Vq-uYC&pg=PT102&lpg=PT102&dq=ruby+regex+trademark+character&source=bl&ots=fIXwQaJOaK&sig=hH8mmjxhHGe8iyvXT0CakRv8Ods&hl=en&sa=X&ei=_1aTU_aGGcWcyAScuYCYDQ&ved=0CCYQ6AEwAA#v=onepage&q=ruby%20regex%20trademark%20character&f=false[matching the unicode code point] instead: [source,text] ---- p text.match(/\d{4} FIFA World Cup (.*?) \u2122/)[1] ---- While working on this blog post I also remembered that you can http://stackoverflow.com/questions/1739836/invalid-multibyte-char-us-ascii-with-rails-and-ruby-1-9[specify the character set of your Ruby file] and by default it's ASCII which would explain why it doesn't like the ™ character. If we add the following line at the top of the file then we can happily use the ™ character in our regex: [source,ruby] ---- # encoding: utf-8 # ... p text.match(/\d{4} FIFA World Cup (.*?) ™/)[1] # returns "Uruguay" ---- This post therefore ends up being more of a reminder for future Mark when he comes across this problem again having forgotten about Ruby character sets!
null
null
[ -0.012287206016480923, 0.024698715656995773, -0.009907931089401245, 0.012373934499919415, 0.043960921466350555, 0.00880714226514101, 0.05038086324930191, 0.045075424015522, 0.020239774137735367, 0.00867841299623251, -0.04349225014448166, -0.013745227828621864, -0.10121632367372513, 0.008667386136949062, 0.030212756246328354, 0.060972124338150024, 0.044886186718940735, 0.030044611543416977, 0.00958167389035225, -0.03705332428216934, 0.016109686344861984, 0.07644099742174149, 0.009452260099351406, 0.03779812157154083, 0.051176153123378754, 0.018531762063503265, 0.020327050238847733, 0.015263507142663002, -0.04717428237199783, 0.035736117511987686, 0.06252991408109665, 0.006069371942430735, 0.04739328473806381, -0.015165049582719803, 0.04885994270443916, -0.003078354522585869, -0.03476971760392189, 0.0015589765971526504, 0.015568534843623638, 0.0025968425907194614, -0.017393579706549644, 0.031472742557525635, -0.018360739573836327, 0.018369875848293304, -0.02562696859240532, 0.02446780912578106, -0.06699638068675995, 0.03960646316409111, -0.017068278044462204, -0.013370208442211151, -0.051021087914705276, 0.022052358835935593, 0.000535540864802897, -0.004242387134581804, -0.012120434083044529, 0.06819985806941986, 0.016783330589532852, -0.046153824776411057, 0.015289715491235256, -0.05376080796122551, -0.015323461033403873, -0.014735215343534946, 0.0021250236313790083, 0.01704680547118187, 0.007487351540476084, -0.030010515823960304, 0.00919534731656313, 0.05148773267865181, -0.030713120475411415, -0.04362111911177635, 0.02334675006568432, -0.018693631514906883, -0.003351185005158186, -0.002918398240581155, 0.04991196095943451, -0.03645683452486992, 0.0014692599652335048, 0.07353922724723816, 0.00012559702736325562, 0.08177772909402847, -0.028340118005871773, 0.012403418309986591, 0.037289880216121674, -0.0008003784460015595, 0.024936936795711517, -0.043427251279354095, -0.04347927123308182, -0.01593022234737873, -0.0288765337318182, 0.018111668527126312, 0.013914125971496105, -0.06261534988880157, 0.03581949695944786, 0.012729043141007423, -0.015844890847802162, 0.009209339506924152, -0.0329919159412384, 0.020769687369465828, -0.014101214706897736, -0.04439764842391014, -0.06009694188833237, -0.03144631162285805, 0.035783614963293076, 0.007987151853740215, -0.07439520210027695, -0.017349543049931526, -0.010566163808107376, -0.014564542099833488, 0.03451245278120041, -0.023442121222615242, -0.014615525491535664, -0.025602959096431732, -0.01765039935708046, -0.02435668185353279, -0.07025864720344543, 0.03993428125977516, 0.019913097843527794, -0.04280965402722359, 0.014657181687653065, 0.04004723206162453, 0.045130111277103424, -0.009896825067698956, -0.009548225440084934, 0.05214907228946686, -0.010659927502274513, 0.029746772721409798, 0.009023494087159634, 0.0755462795495987, -0.07041101157665253, -0.05917402356863022, -0.013926537707448006, 0.05942913144826889, 0.0007919169147498906, 0.026924584060907364, -0.008446196094155312, 0.00062094273744151, -0.017311835661530495, -0.054126277565956116, 0.08244455605745316, -0.008772049099206924, -0.006782223004847765, -0.017923468723893166, -0.04688674956560135, -0.0004002427158411592, 0.03087439388036728, 0.02921699546277523, -0.013421054929494858, -0.03414822742342949, -0.015000236220657825, -0.009297961369156837, 0.024669311940670013, -0.004288339056074619, 0.06875603646039963, 0.003659059526398778, -0.02850962243974209, 0.06974063813686371, 0.02574228309094906, 0.012681085616350174, -0.037441011518239975, 0.01728844828903675, 0.024217037484049797, 0.05762235075235367, -0.009649424813687801, 0.06514947861433029, -0.026716364547610283, -0.0332607626914978, 0.02619442716240883, 0.057693153619766235, -0.050222575664520264, 0.025307025760412216, -0.028734110295772552, -0.03357075899839401, 0.09774183481931686, -0.05790185183286667, -0.006867722608149052, 0.0012090352829545736, 0.0491800531744957, 0.003103742143139243, 0.024618279188871384, 0.000753950618673116, -0.06960798054933548, 0.028303492814302444, 0.0072992644272744656, 0.054910723119974136, 0.00035473989555612206, -0.009223737753927708, 0.1148521825671196, 0.012939115054905415, -0.00325003988109529, 0.03248286247253418, -0.09159760177135468, -0.07403300702571869, -0.03248778358101845, -0.020063655450940132, 0.07523062080144882, -0.02816186659038067, 0.012716710567474365, 0.015599969774484634, 0.024013185873627663, 0.019945137202739716, -0.001384981325827539, 0.006786690559238195, 0.022901665419340134, -0.023220611736178398, -0.03852133825421333, 0.037376366555690765, 0.03029089793562889, -0.029041962698101997, -0.03840737044811249, 0.03397885710000992, -0.008940152823925018, 0.02724384516477585, 0.028423279523849487, -0.02086317352950573, -0.008828921243548393, 0.006178970914334059, 0.04352473095059395, -0.004350495990365744, 0.036011952906847, -0.062045976519584656, 0.03294561430811882, 0.039970315992832184, -0.024086879566311836, -0.038563914597034454, 0.015620628371834755, 0.1475992351770401, 0.021889735013246536, 0.03253863379359245, -0.03465358912944794, -0.033847153186798096, -0.02322298102080822, -0.02223115786910057, 0.024893250316381454, -0.019891416653990746, -0.012777017429471016, -0.03571389615535736, -0.04752124100923538, -0.031352926045656204, 0.0067189414985477924, 0.001024359604343772, -0.012060694396495819, 0.056817974895238876, -0.0013037561438977718, -0.004733064211905003, -0.013625310733914375, -0.012558857910335064, -0.0036217730958014727, -0.043945975601673126, -0.03913817182183266, 0.01658059097826481, 0.04963533952832222, -0.0044715567491948605, -0.008911842480301857, -0.0066606695763766766, -0.039375871419906616, -0.021720604971051216, -0.05525699630379677, 0.029268929734826088, 0.04598977416753769, 0.018346400931477547, -0.012946082279086113, 0.01661211997270584, -0.05096545070409775, 0.011606112122535706, -0.04529840499162674, -0.016295351088047028, -0.05453496053814888, 0.010909812524914742, -0.008822728879749775, 0.01884540729224682, 0.028158877044916153, 0.02942461147904396, -0.01632370799779892, 0.019326290115714073, -0.0032031689770519733, 0.028030015528202057, 0.05036907270550728, -0.009911708533763885, -0.006035603582859039, -0.026987524703145027, -0.045556310564279556, 0.005905255675315857, -0.10073595494031906, -0.07549495249986649, -0.04760999605059624, -0.06885164976119995, 0.02759425900876522, -0.03166098892688751, -0.046683330088853836, -0.009289929643273354, -0.0017429093131795526, 0.052487049251794815, -0.005739982705563307, 0.02027847431600094, 0.05343475192785263, -0.002190605504438281, 0.05419798195362091, 0.0392800010740757, 0.030832579359412193, 0.03558564931154251, 0.007602708414196968, 0.0633084699511528, 0.01239854097366333, -0.038935236632823944, 0.011480907909572124, -0.037943482398986816, -0.017955562099814415, -0.02588620036840439, -0.26481544971466064, 0.07895595580339432, -0.07720091193914413, -0.04538612812757492, 0.04448908194899559, -0.02870902419090271, -0.0029306085780262947, -0.018609492108225822, -0.020579000934958458, 0.002851009601727128, -0.021527251228690147, -0.01741192489862442, 0.017621023580431938, 0.019873501732945442, 0.015893422067165375, -0.009515447542071342, 0.0013852128759026527, -0.034074120223522186, -0.005818753037601709, 0.026788033545017242, 0.015381304547190666, -0.013330052606761456, 0.036549899727106094, 0.06315590441226959, 0.029946021735668182, 0.05757378041744232, -0.06389463692903519, -0.005505100358277559, -0.017624031752347946, -0.01199791394174099, 0.012618607841432095, 0.0005086118471808732, 0.04552214965224266, -0.005629773251712322, -0.005331553518772125, -0.013393647968769073, 0.0069175343960523605, -0.01646646484732628, 0.02340124361217022, 0.0508798211812973, -0.061472512781620026, -0.010667826980352402, 0.0349702350795269, -0.03836960345506668, 0.08870941400527954, 0.011140428483486176, -0.06455112248659134, -0.04190709441900253, 0.002555139595642686, 0.06500347703695297, -0.00920451432466507, -0.037168245762586594, 0.0020446444395929575, 0.03740447759628296, 0.004335458390414715, -0.014593733474612236, 0.003510141745209694, -0.013010752387344837, -0.061693254858255386, -0.02124699205160141, -0.004691791255027056, -0.03708026185631752, 0.004112591966986656, -0.04670790955424309, 0.0029235256370157003, -0.06795080751180649, -0.03593449294567108, -0.004582653753459454, 0.03601337969303131, 0.020896991714835167, -0.03688054904341698, -0.007031104527413845, -0.02658996544778347, -0.09971784800291061, -0.05633148178458214, -0.028701668605208397, -0.01139839831739664, 0.0011051512556150556, -0.024443071335554123, 0.02618214301764965, -0.041299499571323395, -0.015970608219504356, -0.0011558387195691466, 0.03156726062297821, 0.008536792360246181, -0.00950890313833952, 0.004758271388709545, -0.03570275008678436, -0.013919719494879246, 0.0027088557835668325, 0.06961958110332489, -0.03929967060685158, -0.06136354058980942, -0.0076427096500992775, 0.01690570078790188, 0.02357615903019905, 0.013287906534969807, -0.013049531728029251, 0.027276700362563133, 0.037428002804517746, 0.021888310089707375, -0.049528080970048904, 0.002298668259754777, -0.026486005634069443, 0.015325053595006466, 0.03587987273931503, -0.043482705950737, -0.016232911497354507, 0.03727959841489792, 0.016132541000843048, 0.004185819998383522, -0.02197103388607502, 0.0016135415062308311, -0.022339487448334694, -0.05158759281039238, -0.03933904320001602, 0.04144791141152382, -0.03671842813491821, 0.03214253485202789, -0.04790385439991951, -0.013290273025631905, 0.004720374010503292, 0.030595475807785988, -0.0019723959267139435, -0.024001946672797203, -0.058520104736089706, 0.002443907083943486, -0.020780479535460472, 0.0013268492184579372, 0.002168855629861355, -0.010454329662024975, 0.031474124640226364, 0.007715613581240177, -0.03317679092288017, 0.046356964856386185, 0.016619356349110603, -0.0022682235576212406, -0.04268747568130493, 0.023903926834464073, -0.001793840667232871, 0.014487558975815773, -0.016254348680377007, -0.018477585166692734, 0.039429839700460434, 0.048873864114284515, -0.009619656018912792, 0.01019489485770464, -0.03280510753393173, 0.012010197155177593, 0.02289527654647827, -0.02582562156021595, -0.04295320063829422, 0.027276000007987022, -0.014621540904045105, -0.007824973203241825, -0.014805980958044529, 0.033372003585100174, 0.015626363456249237, 0.029890917241573334, -0.037468064576387405, 0.06800895184278488, -0.03510916978120804, 0.0298252385109663, 0.017081761732697487, 0.002208540216088295, 0.028669653460383415, 0.015294849872589111, 0.02096341736614704, -0.01945081725716591, 0.01799555867910385, 0.016541477292776108, 0.02158508077263832, -0.01470304373651743, 0.025622544810175896, -0.010985319502651691, 0.012416763231158257, -0.0034841669257730246, 0.026107406243681908, 0.015002301894128323, 0.011573581956326962, -0.0030934298411011696, -0.029999863356351852, 0.027541249990463257, 0.04704057797789574, 0.039117347449064255, 0.04588274657726288, -0.02212558500468731, 0.0035321637988090515, -0.0478338822722435, -0.014236604794859886, -0.008891734294593334, 0.009326757863163948, -0.03402939438819885, 0.0045747049152851105, -0.0461629293859005, -0.06473352015018463, -0.023543810471892357, 0.021300025284290314, 0.013228191062808037, 0.024061886593699455, -0.001263831160031259, -0.012683035805821419, -0.038264915347099304, -0.008841097354888916, 0.0358421765267849, -0.016363471746444702, -0.03487702086567879, -0.023869408294558525, 0.000697597221005708, 0.02425283007323742, 0.024469416588544846, -0.07728096842765808, -0.01370543148368597, -0.014291956089437008, 0.017556002363562584, -0.005533710587769747, -0.02571200765669346, 0.0037120026536285877, 0.00678160460665822, -0.0027850333135575056, 0.056724779307842255, -0.0025167223066091537, 0.022494001314044, 0.02812061458826065, -0.009838349185883999, 0.036328330636024475, -0.0011113109067082405, -0.03409857675433159, 0.01182541809976101, -0.007966573350131512, 0.018240034580230713, -0.04977661371231079, 0.052470333874225616, 0.04126187041401863, 0.023136740550398827, -0.021024394780397415, -0.07294437289237976, 0.011108282022178173, 0.010354124009609222, 0.03825198858976364, 0.007026315666735172, -0.033045172691345215, 0.01565905660390854, 0.02175290323793888, -0.0448477528989315, 0.008345060050487518, -0.015534765087068081, -0.017095210030674934, -0.004237087909132242, 0.05330333486199379, 0.008449658751487732, 0.050434987992048264, 0.0037417211569845676, -0.03473629802465439, 0.029354948550462723, -0.02669116109609604, -0.050092913210392, 0.008624402806162834, -0.06793238967657089, 0.04846959933638573, 0.020896373316645622, 0.018447207286953926, -0.03137308359146118, 0.03775660693645477, 0.04173142462968826, 0.009270749054849148, 0.030246848240494728, 0.005824977532029152, -0.006546648219227791, -0.04201366752386093, -0.02687660977244377, -0.057692259550094604, 0.055583592504262924, 0.058254674077034, 0.006596627179533243, 0.006205838173627853, -0.018655411899089813, -0.04365887865424156, -0.012362921610474586, -0.020033972337841988, -0.04678491875529289, 0.03451886773109436, 0.008512197993695736, -0.003947222605347633, -0.0002627242065500468, -0.0646105408668518, -0.017655031755566597, 0.03745854273438454, -0.03812756389379501, -0.048433639109134674, -0.06454223394393921, 0.050100382417440414, -0.03865637630224228, 0.03831593319773674, -0.0549251027405262, -0.05770578607916832, 0.04067510366439819, 0.026703327894210815, 0.036112476140260696, 0.024587955325841904, -0.03875691443681717, 0.03360015153884888, 0.019820179790258408, -0.02501824125647545, 0.02600644901394844, 0.013536370359361172, -0.0448492094874382, -0.06103662773966789, 0.029180970042943954, -0.008793806657195091, -0.000005296452400216367, -0.015230851247906685, 0.09082704782485962, -0.0016814757836982608, -0.026237891986966133, -0.023455854505300522, 0.017262442037463188, -0.007139911409467459, -0.025084372609853745, -0.020578423514962196, 0.013823305256664753, -0.058051057159900665, 0.0780453234910965, 0.02074931189417839, 0.033662788569927216, 0.056845758110284805, -0.01880067028105259, -0.011691683903336525, 0.008684991858899593, 0.07183955609798431, 0.06757915765047073, 0.009395708329975605, 0.02281964384019375, 0.035611800849437714, -0.0006298970547504723, -0.053195349872112274, 0.016562316566705704, -0.01221461221575737, 0.015838567167520523, 0.043435998260974884, -0.03432880714535713, 0.03304896503686905, -0.03482424467802048, 0.06528002768754959, 0.001481905346736312, -0.027950851246714592, -0.007335988339036703, -0.017339736223220825, 0.024852288886904716, 0.04209868982434273, 0.020461125299334526, 0.0306522399187088, -0.013489942997694016, 0.004265332594513893, 0.03163659945130348, -0.009780858643352985, -0.013275344856083393, 0.01645168848335743, -0.052161313593387604, 0.0025339301209896803, 0.007560429163277149, 0.029614876955747604, 0.07411667704582214, -0.022054357454180717, -0.02096489444375038, 0.006776661146432161, 0.009908798150718212, 0.0013957321643829346, 0.04160173237323761, -0.00029944611014798284, -0.00010221506090601906, -0.06597333401441574, -0.03776184096932411, -0.008392071351408958, -0.00683774147182703, -0.039363835006952286, 0.00760580925270915, -0.03252487629652023, -0.00891849398612976, 0.01501914020627737, -0.003480653278529644, -0.030417045578360558, -0.03345191106200218, -0.07593010365962982, -0.07850522547960281, -0.10375360399484634, -0.012556884437799454, 0.002368025714531541, 0.016094353049993515, -0.0297558531165123, -0.01643192395567894, -0.04487597569823265, -0.017006907612085342, 0.027417931705713272, -0.05057806521654129, 0.0005414379411377013, 0.013910581357777119, 0.015544000081717968, 0.04221009463071823, 0.039814285933971405, 0.053703080862760544, -0.01995486579835415, 0.028082387521862984, 0.0009456456173211336, 0.0022870467510074377, 0.04236419126391411, 0.02688876911997795, 0.017316050827503204, -0.08215096592903137, -0.0013505677925422788, 0.035982731729745865, -0.015294397249817848, -0.046519797295331955, 0.020014766603708267, 0.017736196517944336, -0.01359531469643116, 0.03261413797736168, -0.03868289664387703, 0.015469225123524666, -0.0274775680154562, -0.017280546948313713, -0.03457403928041458, -0.01871648244559765, 0.008807032369077206, -0.04140140116214752, 0.07012239843606949, 0.03395085781812668, 0.003207421163097024, -0.034288570284843445, -0.03659916669130325, -0.0025971487630158663, 0.018439969047904015, -0.03819961100816727, -0.001389994635246694, -0.07276169955730438, -0.07810846716165543, -0.015318653546273708, 0.027507450431585312, -0.011126245371997356, -0.06348299980163574, -0.007251974195241928, 0.046407029032707214, -0.012342458590865135, 0.05271664634346962, 0.0095294788479805, 0.019476963207125664, -0.009668470360338688, -0.003329459112137556, -0.06073318049311638, 0.03174334391951561, 0.01084848027676344, 0.029152605682611465, 0.024049540981650352, -0.036137014627456665, 0.048065997660160065, -0.019975023344159126, -0.014709142968058586, -0.008971995674073696, 0.004356668330729008, 0.03618583083152771 ]
[ -0.050051603466272354, 0.045555710792541504, -0.018894793465733528, -0.044018812477588654, 0.07887803018093109, -0.05265800282359123, -0.006033365614712238, 0.017418839037418365, 0.03169433772563934, -0.011102769523859024, 0.01499177049845457, -0.07045882940292358, 0.0036102887243032455, -0.022564463317394257, 0.012010430917143822, -0.024937748908996582, -0.04675593227148056, -0.04276663810014725, -0.02911589853465557, 0.04216130077838898, 0.02355271764099598, 0.0029091995675116777, 0.014338423497974873, -0.025440456345677376, 0.014239129610359669, 0.05188904330134392, 0.03618237003684044, -0.02518482506275177, -0.021540341898798943, -0.22186420857906342, -0.0010706750908866525, 0.002705003134906292, -0.025302091613411903, -0.004076868761330843, -0.00033959135180339217, -0.011748791672289371, -0.013972810469567776, -0.04291851818561554, 0.03770967200398445, 0.042075250297784805, -0.009684712626039982, 0.00816961470991373, -0.020782234147191048, -0.014704423025250435, 0.022265225648880005, 0.01582641340792179, -0.03367355838418007, 0.0183103010058403, -0.007914996705949306, 0.05192021280527115, -0.023868918418884277, 0.07167819887399673, 0.0065151723101735115, -0.017459074035286903, 0.020791025832295418, 0.0511193573474884, 0.04962446540594101, 0.05445515736937523, -0.013283034786581993, 0.036537639796733856, 0.02144058793783188, -0.015273096971213818, -0.18215098977088928, 0.10215873271226883, 0.020462682470679283, 0.02695658430457115, -0.023467784747481346, 0.017620787024497986, -0.03860029950737953, 0.07214631885290146, -0.02881425805389881, -0.006997392047196627, -0.03305820748209953, 0.07656804472208023, -0.0011915387585759163, 0.016615942120552063, -0.006862843409180641, 0.0021507306955754757, 0.021825512871146202, 0.003693386446684599, -0.040594760328531265, -0.004772908985614777, -0.05464109033346176, -0.020597392693161964, -0.053077299147844315, 0.019697831943631172, -0.034681063145399094, 0.04112021252512932, 0.014984343200922012, 0.03782022371888161, -0.005798231344670057, -0.006490155588835478, 0.045037560164928436, 0.04748081788420677, -0.09043534100055695, -0.047953732311725616, 0.005787405651062727, 0.04821251332759857, 0.002034506993368268, 0.392631471157074, -0.008347642607986927, -0.026645123958587646, 0.009886076673865318, 0.04885847866535187, 0.024938752874732018, -0.01921025477349758, -0.006239407695829868, -0.0034969421103596687, 0.02348783053457737, -0.053255725651979446, -0.037625301629304886, -0.012078301049768925, 0.05388130992650986, -0.04171629250049591, -0.003382764058187604, 0.030221788212656975, 0.038032978773117065, 0.011223489418625832, -0.008593553677201271, 0.007769671268761158, -0.07415935397148132, -0.00003461789674474858, -0.008635061793029308, -0.005798801779747009, -0.021270735189318657, 0.027715448290109634, 0.03842335194349289, 0.0707254409790039, 0.043060120195150375, 0.026173975318670273, 0.05934479087591171, -0.05230342224240303, -0.07052735239267349, 0.026713233441114426, -0.01783919706940651, 0.007055106572806835, -0.014540272764861584, 0.021115878596901894, -0.0006450202199630439, 0.02712945081293583, -0.010007254779338837, -0.08702750504016876, -0.000032252621167572215, 0.026580248028039932, -0.06150876358151436, 0.06032847613096237, -0.052467890083789825, -0.03300027921795845, -0.028901688754558563, -0.03365255147218704, 0.0027403973508626223, 0.028041746467351913, -0.003024618374183774, -0.009120641276240349, -0.044705845415592194, 0.011462753638625145, 0.07090245187282562, -0.04924092814326286, -0.05529976636171341, -0.00327726686373353, -0.0038239385467022657, -0.06226281449198723, -0.0011476943036541343, 0.0870896428823471, 0.013126316480338573, -0.10613608360290527, -0.04650183394551277, -0.0149171631783247, 0.01236622966825962, -0.09704810380935669, 0.021106131374835968, -0.02191019058227539, -0.025069739669561386, 0.029044155031442642, 0.020135218277573586, 0.0014147950569167733, -0.002702305791899562, 0.013371819630265236, 0.04572312906384468, 0.0007719120476394892, 0.010897837579250336, -0.029219288378953934, -0.03595099598169327, -0.017710629850625992, -0.00859601516276598, -0.06240979582071304, -0.08470713347196579, 0.019637754186987877, 0.017659831792116165, 0.001336282817646861, -0.04533129185438156, 0.0016882530180737376, -0.06242308020591736, 0.0522841177880764, 0.003935099579393864, 0.030440429225564003, -0.02307790517807007, -0.028313228860497475, 0.027812669053673744, -0.03792775049805641, 0.02592426724731922, 0.020007962360978127, -0.00836978293955326, -0.02989637479186058, -0.00019299423729535192, -0.0004089424037374556, 0.11708588153123856, -0.04446285963058472, 0.012026193551719189, 0.024811148643493652, -0.023118112236261368, -0.0025021221954375505, -0.03916807472705841, -0.014563462696969509, 0.0051752617582678795, -0.03517868369817734, -0.0036380637902766466, -0.012438401579856873, -0.010103201493620872, 0.03813327103853226, -0.057750266045331955, -0.04704250767827034, -0.017207814380526543, -0.3279595673084259, 0.005975550971925259, -0.029731955379247665, 0.035350997000932693, 0.03919917717576027, -0.027235768735408783, -0.0030810090247541666, -0.02208442986011505, 0.05077829584479332, 0.05662326514720917, 0.07814905047416687, 0.0016682802233844995, -0.02921002171933651, -0.0376599095761776, -0.0438661202788353, 0.029188701882958412, -0.013390034437179565, 0.02882080338895321, -0.013885348103940487, 0.06598732620477676, 0.014798160642385483, -0.05215779319405556, -0.03275773301720619, -0.011369851417839527, 0.0036001645494252443, -0.06405618786811829, 0.14991092681884766, 0.07680635154247284, -0.0046844822354614735, -0.06228459253907204, 0.0448884554207325, 0.01951143518090248, 0.0393059216439724, -0.09843326359987259, 0.021987471729516983, 0.012749049812555313, 0.011475167237222195, 0.019331328570842743, 0.05007373169064522, -0.03556947037577629, 0.013820107094943523, -0.007895266637206078, -0.007499670144170523, -0.03072749450802803, 0.042961232364177704, 0.023189255967736244, -0.03490961343050003, -0.09507463127374649, -0.0020268424414098263, 0.08284109085798264, 0.06891032308340073, 0.01737944595515728, 0.03954441845417023, 0.003977619111537933, 0.011325673200190067, -0.001674794009886682, -0.09218692779541016, -0.01797338016331196, -0.00750861968845129, 0.00612992187961936, 0.00378558156080544, -0.02672293595969677, 0.06935841590166092, -0.0701502338051796, -0.02645990066230297, 0.034745555371046066, 0.019171513617038727, 0.0014766138046979904, 0.04190903156995773, 0.03974558785557747, -0.029666129499673843, 0.09218409657478333, 0.019420741125941277, 0.00331593188457191, 0.011920828372240067, 0.07314138859510422, 0.014695671387016773, 0.013707004487514496, 0.030938927084207535, 0.020616736263036728, 0.05035356804728508, -0.024254312738776207, 0.0890822634100914, -0.016007322818040848, 0.03309713304042816, 0.06667433679103851, 0.03535318374633789, -0.041179679334163666, 0.08973072469234467, 0.011935013346374035, -0.01982421986758709, -0.003224880900233984, -0.013286971487104893, 0.023275062441825867, 0.021395470947027206, -0.029384629800915718, -0.2568833827972412, 0.026249008253216743, 0.04225156083703041, 0.06396278738975525, 0.023154711350798607, -0.009858472272753716, 0.041962169110774994, -0.06301779299974442, -0.06589333713054657, -0.01154976524412632, -0.01855110190808773, 0.007371352985501289, 0.0069989291951060295, -0.05601806938648224, 0.029255520552396774, -0.02140810713171959, 0.029635287821292877, 0.0074727763421833515, 0.016196181997656822, 0.04650905728340149, 0.05283650383353233, -0.014201384969055653, 0.16244803369045258, 0.013514037244021893, 0.0026740345638245344, 0.022952377796173096, -0.01746310293674469, -0.01879381202161312, 0.06905641406774521, 0.009314370341598988, -0.04101938009262085, 0.02445649728178978, 0.0417666994035244, 0.0285183135420084, -0.010813625529408455, -0.02955618128180504, -0.010359065607190132, 0.029158655554056168, 0.004570903722196817, -0.09700266271829605, -0.05489048734307289, 0.057744331657886505, -0.03135889023542404, -0.011108375154435635, 0.02884051576256752, 0.014173954725265503, 0.009935116395354271, -0.00394888361915946, -0.03476272150874138, -0.020605789497494698, -0.020951705053448677, -0.02765754424035549, -0.043335940688848495, -0.01612197794020176, -0.007368849590420723, 0.04030071571469307, -0.01085816789418459, -0.042365800589323044, 0.04278822988271713, 0.016781337559223175, -0.03478210046887398, -0.016690734773874283, 0.04746906831860542, 0.019543074071407318, -0.023092394694685936 ]
[ 0.017831962555646896, 0.039917316287755966, 0.006322422996163368, -0.014347510412335396, 0.014048784971237183, 0.010719512589275837, -0.005166980903595686, 0.002380118239670992, -0.020908990874886513, 0.0041436608880758286, -0.03422179073095322, -0.003894287394359708, 0.001874474692158401, 0.008985388092696667, 0.00859260093420744, -0.025173967704176903, -0.04442083090543747, -0.036649420857429504, 0.009840400889515877, -0.028955981135368347, -0.008271086029708385, -0.0099263871088624, 0.0016686288872733712, 0.017832322046160698, 0.009169396944344044, 0.03911621868610382, -0.020346349105238914, 0.02195104956626892, 0.01662324368953705, -0.10582353174686432, -0.03218312934041023, -0.041016269475221634, 0.0266875009983778, 0.018909411504864693, 0.03822144493460655, 0.0030691407155245543, -0.024864403530955315, -0.012685173191130161, 0.0005625543999485672, 0.03155091404914856, 0.01131074596196413, -0.036951590329408646, 0.010270203463733196, 0.03529193997383118, 0.021973056718707085, 0.04265640676021576, -0.00031715957447886467, 0.050176605582237244, 0.010474889539182186, -0.012330177240073681, -0.008184276521205902, 0.00796542689204216, 0.009302861988544464, -0.010687466710805893, 0.03070010617375374, 0.007071493659168482, -0.0007639822433702648, -0.0017300865147262812, -0.021722160279750824, -0.03779519349336624, 0.010452588088810444, -0.009024961851537228, -0.049013037234544754, -0.018102414906024933, -0.019707484170794487, -0.03810938075184822, -0.05281916260719299, 0.04211590066552162, -0.022798040881752968, 0.007088812068104744, -0.0017392763402312994, 0.03573749214410782, -0.025582190603017807, 0.024366365745663643, -0.011442851275205612, -0.009954034350812435, -0.023300182074308395, -0.0234238151460886, 0.01661953330039978, 0.004468591883778572, -0.022036319598555565, 0.010656895115971565, 0.04517793655395508, -0.0029313936829566956, 0.01844659447669983, -0.00716730672866106, 0.012540420517325401, -0.022684786468744278, 0.01603909581899643, 0.024549895897507668, -0.05197877809405327, -0.023688077926635742, 0.06961726397275925, 0.03916431590914726, -0.08404207974672318, -0.0011772973230108619, 0.03664042055606842, -0.013024180196225643, 0.005340754985809326, 0.8381232023239136, 0.03009972535073757, -0.006438069511204958, 0.0030075074173510075, 0.010759144090116024, 0.002787521341815591, -0.006328756920993328, -0.0021638532634824514, 0.043030716478824615, 0.03864812105894089, -0.02894696407020092, -0.015582338906824589, 0.00943802297115326, -0.0021269910503178835, 0.017040198668837547, -0.023950036615133286, 0.04526452347636223, 0.025842631235718727, -0.002247028984129429, -0.010569363832473755, 0.017201270908117294, -0.0027713265735656023, 0.013747128657996655, -0.02425391785800457, 0.014052069745957851, 0.005192104261368513, -0.15983203053474426, 0.029170170426368713, -6.879809909585848e-33, 0.022498520091176033, -0.0003053221444133669, -0.043572161346673965, -0.00005716808664146811, -0.017266131937503815, 0.0532863512635231, -0.030780863016843796, -0.02139252796769142, -0.02944249100983143, -0.010935540311038494, 0.008547086268663406, -0.012357519939541817, -0.01931789144873619, -0.012449993751943111, 0.037505991756916046, -0.005907269660383463, 0.002594992285594344, 0.02550515905022621, 0.003774665528908372, 0.03665316849946976, 0.009668570943176746, 0.024298664182424545, 0.03157795965671539, 0.008783886209130287, 0.009813252836465836, 0.03592976555228233, -0.030937397852540016, -0.037520501762628555, 0.010471713729202747, -0.04043180122971535, 0.0015998785383999348, -0.03558690473437309, -0.01340260449796915, -0.04727017879486084, -0.0005764263914898038, -0.0556156225502491, -0.020911909639835358, -0.013058878481388092, -0.03273740038275719, -0.005832514259964228, -0.0368986614048481, -0.02623492293059826, -0.03516387939453125, -0.040955428034067154, 0.026096053421497345, -0.002272956306114793, 0.008746554143726826, -0.001729210838675499, 0.011350369080901146, -0.028276091441512108, 0.04502711445093155, 0.01982780359685421, 0.01722579076886177, -0.01152876392006874, 0.0013048785040155053, -0.01091237273067236, -0.011159704066812992, 0.012477537617087364, -0.011708132922649384, -0.018784569576382637, 0.03548659384250641, 0.0011038772063329816, -0.001110421377234161, 0.0370391421020031, 0.015343000181019306, 0.0369916632771492, 0.05643323063850403, 0.021931517869234085, 0.003627988277003169, -0.014513818547129631, -0.041746627539396286, 0.033187106251716614, -0.02071024850010872, -0.006920135114341974, 0.006804184522479773, -0.028073107823729515, 0.030695712193846703, 0.0027657717000693083, -0.0010735868709161878, 0.03642309457063675, 0.012362253852188587, 0.008871346712112427, 0.029974408447742462, -0.0420023575425148, -0.03845566511154175, 0.04111902043223381, 0.07768595963716507, -0.035836540162563324, -0.005374858621507883, 0.02899974212050438, -0.0043617538176476955, 0.017529532313346863, -0.04589075967669487, -0.00845871027559042, -0.016788074746727943, 6.580067666333796e-33, 0.013356144540011883, -0.05587758496403694, 0.027377484366297722, -0.00516406400129199, 0.012883331626653671, -0.019771214574575424, 0.034494780004024506, 0.04329250752925873, -0.0362480990588665, 0.016202760860323906, 0.00011036912474082783, -0.02474808506667614, -0.008701758459210396, -0.005404014140367508, 0.05127161368727684, -0.011027517728507519, 0.011256692931056023, -0.006048803683370352, 0.019634060561656952, 0.0025184883270412683, -0.015576161444187164, 0.0000865751426317729, 0.02471349574625492, 0.004633557517081499, -0.0073249563574790955, 0.03869504854083061, 0.00021202593052294105, -0.004277938045561314, 0.008158688433468342, -0.011098387651145458, 0.021670980378985405, -0.0066859363578259945, -0.02113262191414833, -0.016896212473511696, -0.038828734308481216, 0.04549500346183777, -0.014801150187849998, 0.02411513216793537, 0.021854769438505173, -0.013560866937041283, 0.02531748078763485, 0.008348002098500729, -0.04357249662280083, 0.0220840685069561, -0.009842349216341972, -0.007199942599982023, -0.02290111780166626, 0.012628684751689434, 0.007874823175370693, 0.008442891761660576, 0.030729278922080994, 0.0020825513638556004, -0.004365961533039808, -0.015204585157334805, 0.010541929863393307, -0.028644390404224396, -0.031239986419677734, 0.026426220312714577, -0.03591416776180267, -0.00933158304542303, -0.040732890367507935, -0.019238635897636414, -0.0179765447974205, 0.03384174406528473, -0.03936268016695976, 0.0012917248532176018, -0.035411570221185684, 0.024707233533263206, 0.049597956240177155, -0.023653775453567505, 0.014810183085501194, -0.014637697488069534, -0.04573381692171097, 0.031528767198324203, 0.013926741667091846, 0.04176817834377289, -0.003410994540899992, 0.03583423048257828, -0.009152567945420742, 0.041793759912252426, -0.004831091966480017, 0.015950452536344528, 0.014910945668816566, 0.011154466308653355, 0.037438470870256424, 0.019135724753141403, -0.04036139324307442, 0.006918476428836584, 0.0333268940448761, -0.011707513593137264, 0.018422923982143402, 0.013664615340530872, -0.0028579258359968662, -0.03379202261567116, -0.008577845059335232, -1.2720866138238307e-8, -0.029166044667363167, 0.002243053400889039, -0.040224894881248474, 0.03412694111466408, -0.04075978323817253, 0.017886240035295486, 0.00202546757645905, -0.04965171962976456, 0.009227302856743336, 0.007466633804142475, 0.033954013139009476, 0.014728188514709473, -0.040614474564790726, 0.005297120660543442, -0.0042703719809651375, -0.02418861724436283, -0.031609706580638885, 0.00940471701323986, 0.023272553458809853, 0.056521181017160416, 0.009940617717802525, 0.048645101487636566, -0.008677555248141289, -0.02059187926352024, -0.00006619263149332255, -0.017394980415701866, -0.006461701355874538, -0.08931705355644226, -0.0046974956057965755, -0.026781944558024406, 0.05563696473836899, -0.03363889083266258, -0.007032919675111771, -0.031902555376291275, 0.024781759828329086, -0.03144094720482826, -0.0035829872358590364, -0.037553172558546066, -0.01100621372461319, 0.0012372136116027832, 0.04169713705778122, 0.011002535000443459, -0.007463236339390278, -0.02715255320072174, -0.05106781795620918, -0.05146317183971405, -0.022114625200629234, -0.034064795821905136, 0.017471982166171074, -0.04177398234605789, 0.010189681313931942, -0.01573437638580799, -0.02091866359114647, 0.01955222897231579, 0.022669192403554916, 0.0075721475295722485, 0.009027895517647266, -0.01533921156078577, -0.028137177228927612, -0.006902385037392378, -0.007802794221788645, -0.024487772956490517, -0.04416368156671524, -0.02396337315440178 ]
ruby-regex-matching-the-trademark-character
https://markhneedham.com/blog/2014/06/08/ruby-regex-matching-the-trademark-character
false
2014-12-04 06:31:02
R: Applying a function to every row of a data frame
[ "r-2", "rstats" ]
[ "R" ]
In my continued exploration of London's meetups I wanted to calculate the distance from meetup venues to a centre point in London. I've created https://gist.github.com/mneedham/7e926a213bf76febf5ed[a gist containing the coordinates of some of the venues that host NoSQL meetups in London town] if you want to follow along: [source,r] ---- library(dplyr) # https://gist.github.com/mneedham/7e926a213bf76febf5ed venues = read.csv("/tmp/venues.csv") venues %>% head() ## venue lat lon ## 1 Skills Matter 51.52482 -0.099109 ## 2 Skinkers 51.50492 -0.083870 ## 3 Theodore Bullfrog 51.50878 -0.123749 ## 4 The Skills Matter eXchange 51.52452 -0.099231 ## 5 The Guardian 51.53373 -0.122340 ## 6 White Bear Yard 51.52227 -0.109804 ---- Now to do the calculation. I've chosen the Centre Point building in Tottenham Court Road as our centre point. We can use the +++<cite>+++distHaversine+++</cite>+++ function in the +++<cite>+++geosphere+++</cite>+++ library allows us to do the calculation: [source,r] ---- options("scipen"=100, "digits"=4) library(geosphere) centre = c(-0.129581, 51.516578) aVenue = venues %>% slice(1) aVenue ## venue lat lon ## 1 Skills Matter 51.52 -0.09911 ---- Now we can calculate the distance from Skillsmatter to our centre point:</pr> ~~~r distHaversine(c(aVenue$lon, aVenue$lat), centre) ## [1] 2302 ~~~ That works pretty well so now we want to apply it to every row in the venues data frame and add an extra column containing that value. This was my first attempt\... ~~~r venues %>% mutate(distHaversine(c(lon,lat),centre)) ## Error in .pointsToMatrix(p1): Wrong length for a vector, should be 2 ~~~ \...which didn't work quite as I'd imagined! I eventually found my way to the by function which allows you to 'apply a function to a data frame split by factors'. In this case I wouldn't be grouping rows by a factor - I'd apply the function to each row separately. I wired everything up like so: ~~~r distanceFromCentre = by(venues, 1:nrow(venues), function(row) { distHaversine(c(row$lon, row$lat), centre) }) distanceFromCentre %>% head() ## 1:nrow(venues) ## 1 2 3 4 5 6 ## 2301.6 3422.6 957.5 2280.6 1974.1 1509.5 ~~~ We can now add the distances to our venues data frame: ~~~r venuesWithCentre = venues %>% mutate(distanceFromCentre = by(venues, 1:nrow(venues), function(row) { distHaversine(c(row$lon, row$lat), centre) })) venuesWithCentre %>% head() ## venue lat lon distanceFromCentre ## 1 Skills Matter 51.52 -0.09911 2301.6 ## 2 Skinkers 51.50 -0.08387 3422.6 ## 3 Theodore Bullfrog 51.51 -0.12375 957.5 ## 4 The Skills Matter eXchange 51.52 -0.09923 2280.6 ## 5 The Guardian 51.53 -0.12234 1974.1 ## 6 White Bear Yard 51.52 -0.10980 1509.5 ~~~ Et voila!
null
null
[ 0.025569558143615723, -0.023823345080018044, 0.008444363251328468, 0.024856677278876305, 0.08285746723413467, 0.03474041447043419, 0.01807936653494835, 0.048197563737630844, 0.028842344880104065, -0.004802157171070576, -0.006844302639365196, -0.04008318483829498, -0.06965410709381104, 0.020841525867581367, -0.01901235431432724, 0.06584678590297699, 0.06970793008804321, 0.0024344585835933685, -0.006080304272472858, 0.014844502322375774, 0.05927959457039833, 0.0840633362531662, 0.015071404166519642, 0.027685992419719696, 0.03811803087592125, 0.009830109775066376, 0.013935033231973648, 0.013784224167466164, -0.05123886838555336, -0.014774319715797901, 0.04629852622747421, 0.02651378884911537, 0.011911817826330662, -0.014695036225020885, 0.034175120294094086, -0.02798105962574482, -0.02480120211839676, 0.01933891698718071, -0.009462584741413593, -0.0056802318431437016, -0.06974145025014877, 0.046685412526130676, -0.02536330558359623, 0.013101938180625439, -0.054305750876665115, -0.008462615311145782, -0.04994283989071846, 0.02102585695683956, -0.022288555279374123, -0.010714956559240818, -0.05310489609837532, 0.0400264672935009, -0.023178832605481148, -0.008398599922657013, -0.018509067595005035, 0.032240599393844604, 0.00805899128317833, -0.09405829012393951, 0.02531326748430729, -0.019628189504146576, -0.009189554490149021, 0.013501669280230999, 0.006079128943383694, 0.025304386392235756, 0.03540339693427086, -0.011875100433826447, -0.01861806958913803, 0.0427328497171402, -0.016277460381388664, -0.004757605958729982, -0.01944657228887081, 0.02894536592066288, -0.0046919044107198715, 0.006098806858062744, -0.01911287195980549, -0.05027933791279793, -0.0025576825719326735, 0.0695275291800499, 0.03484073653817177, 0.051075756549835205, -0.013147509656846523, -0.026283830404281616, -0.0014711691765114665, 0.030427008867263794, 0.004761906806379557, -0.032044101506471634, -0.05499916523694992, -0.04087105765938759, -0.06340901553630829, 0.06942871958017349, 0.00726326135918498, -0.036680396646261215, 0.0037218136712908745, 0.04053690284490585, 0.03520901873707771, 0.0062202150002121925, 0.04045838862657547, -0.025539858266711235, 0.01060697715729475, -0.05248399078845978, -0.03073340468108654, -0.021199315786361694, 0.008389919996261597, 0.018332084640860558, -0.07610639929771423, -0.01719329133629799, -0.03278226777911186, -0.01066264882683754, 0.03081088699400425, -0.0032126877922564745, -0.0269647017121315, 0.019516827538609505, -0.013647418469190598, 0.00249697407707572, -0.06920760124921799, 0.04485955461859703, 0.038851942867040634, -0.03546982631087303, -0.005169205833226442, -0.010038455948233604, 0.03359464555978775, 0.02457905374467373, 0.01747516170144081, 0.07873708754777908, -0.009944082237780094, 0.0364188626408577, -0.006429494358599186, 0.039810940623283386, -0.022714443504810333, -0.04347279667854309, -0.02077440358698368, 0.06557861715555191, -0.01083200890570879, -0.009917899034917355, -0.01923721842467785, -0.045963577926158905, 0.00664625596255064, 0.0013258532853797078, 0.05861755460500717, 0.04091598093509674, 0.02880663424730301, -0.02929454855620861, 0.014534799382090569, 0.012533280998468399, 0.043421484529972076, 0.011768793687224388, 0.0032871882431209087, -0.057314686477184296, -0.02763516455888748, 0.006575172301381826, -0.0017450317973271012, 0.022081710398197174, 0.031227145344018936, -0.050341423600912094, 0.025311611592769623, 0.06596165895462036, 0.03657340630888939, 0.01068407204002142, -0.03249068930745125, 0.02565729431807995, 0.037296779453754425, 0.03579743206501007, -0.0033207193482667208, 0.03581388667225838, 0.008247357793152332, -0.022389227524399757, -0.004798559006303549, 0.04735638201236725, 0.0006975337746553123, 0.0006559715257026255, -0.04987435042858124, -0.06270292401313782, 0.08057253062725067, -0.03433583676815033, -0.015792082995176315, 0.035915300250053406, 0.1022283062338829, 0.06725508719682693, 0.018486328423023224, 0.009216491132974625, -0.08852952718734741, 0.02042362652719021, 0.014743302017450333, 0.0398138202726841, 0.04334168881177902, -0.020389355719089508, 0.07205651700496674, 0.04164088889956474, 0.007857603020966053, 0.043204206973314285, -0.06494642794132233, -0.08741522580385208, -0.041824765503406525, -0.0020153771620243788, 0.056448858231306076, -0.02811676450073719, 0.034358732402324677, 0.05941352993249893, -0.008205301128327847, 0.048016272485256195, -0.013504507020115852, -0.002975582843646407, 0.03898473083972931, -0.01498603168874979, -0.04762999713420868, 0.032696180045604706, 0.005010457709431648, -0.007994797080755234, -0.033678386360406876, 0.022434119135141373, -0.028832893818616867, -0.009690177626907825, 0.03270648419857025, -0.021934982389211655, 0.006823929026722908, 0.001510309986770153, 0.06587404012680054, -0.005797490477561951, 0.03505108132958412, -0.03661637753248215, 0.03533967211842537, 0.0328407920897007, -0.006606068462133408, -0.010960071347653866, 0.009474975056946278, 0.12253565341234207, 0.06812894344329834, -0.0019046067027375102, -0.04063614085316658, 0.0042341845110058784, 0.0011439543450251222, -0.02937348186969757, -0.005202082451432943, -0.02673148736357689, 0.004584862384945154, -0.01601008139550686, -0.02427666448056698, -0.04150879383087158, 0.021331636235117912, -0.042055800557136536, -0.011209893971681595, 0.05051233619451523, -0.01125784870237112, 0.07964368164539337, -0.020852064713835716, 0.009576551616191864, -0.0029660696163773537, -0.025099920108914375, -0.055432241410017014, -0.0022667618468403816, 0.018750615417957306, -0.013098958879709244, 0.023987865075469017, 0.00271378131583333, -0.0004195279034320265, -0.018033646047115326, -0.015313167124986649, 0.04097907990217209, 0.07934810221195221, 0.055663011968135834, -0.014617245644330978, 0.06471631675958633, -0.013810403645038605, 0.010808438993990421, -0.0318203866481781, -0.032503921538591385, -0.03149615228176117, -0.03821037709712982, 0.008805755525827408, 0.014051353558897972, 0.05019865185022354, 0.004812807776033878, 0.022824350744485855, 0.0074430848471820354, 0.004688638262450695, -0.004267331212759018, 0.02081778459250927, 0.003605098929256201, 0.0042828163132071495, -0.02872886136174202, -0.023096362128853798, 0.04809771478176117, -0.04575347900390625, -0.014561659656465054, 0.047498006373643875, -0.05870511010289192, 0.03430342301726341, -0.04573988541960716, -0.01968815177679062, -0.00914952252060175, 0.006532873492687941, 0.035618022084236145, 0.030888982117176056, -0.0032069103326648474, 0.05471990630030632, 0.014696110039949417, 0.02859901264309883, -0.005113182123750448, -0.013202022761106491, 0.017475193366408348, -0.01641351729631424, 0.04534289240837097, 0.038139574229717255, 0.005295992363244295, 0.007999910973012447, -0.06146625429391861, 0.01662997342646122, -0.013700267300009727, -0.2726721167564392, 0.05275893211364746, -0.005074742715805769, -0.0196399949491024, 0.005175737664103508, -0.012463944032788277, 0.01829422637820244, -0.048402100801467896, -0.044033780694007874, -0.013937562704086304, -0.027685411274433136, -0.05636782571673393, -0.03421694040298462, 0.03134918585419655, 0.03265867382287979, 0.020511234179139137, -0.018991751596331596, -0.04599080979824066, 0.003371595637872815, 0.03807315230369568, -0.0072634341195225716, -0.06472806632518768, -0.003953851293772459, 0.04092977195978165, 0.02081289514899254, 0.07703207433223724, -0.06164911389350891, -0.0016457848250865936, -0.05836668983101845, -0.029561655595898628, 0.04153783991932869, -0.01607459969818592, 0.02404284104704857, -0.022583678364753723, -0.013947933912277222, -0.015462851151823997, 0.042677152901887894, -0.02183917909860611, -0.0014762311475351453, -0.017518438398838043, -0.02585705555975437, 0.009485677815973759, 0.008993683382868767, -0.0015597634483128786, 0.09315397590398788, -0.010415582917630672, -0.058228999376297, 0.005340650212019682, -0.04874701425433159, 0.0476904921233654, -0.018395500257611275, -0.023423073813319206, -0.030462153255939484, 0.03151601180434227, -0.04156114161014557, -0.017800072208046913, -0.017579063773155212, -0.01220368966460228, -0.05928131937980652, -0.04211817681789398, -0.010162892751395702, -0.024040641263127327, -0.01613815687596798, -0.05361497402191162, -0.004580268170684576, -0.0724712386727333, -0.07734722644090652, -0.0027629160322248936, 0.060007352381944656, 0.011909342370927334, -0.03509955480694771, -0.018551841378211975, -0.01785438507795334, -0.10098668187856674, -0.038560256361961365, -0.005980707239359617, -0.02201859839260578, 0.013462292961776257, 0.012123078107833862, 0.036435145884752274, -0.061204928904771805, -0.05694962292909622, 0.009378273971378803, 0.02735733613371849, -0.004892132245004177, -0.029349753633141518, 0.014604875817894936, 0.0008081469568423927, -0.04295169189572334, -0.01296499278396368, 0.04697708413004875, -0.04319869726896286, -0.02500339224934578, -0.01619253307580948, -0.011038703843951225, 0.017902638763189316, -0.005343111697584391, -0.0011657709255814552, 0.010737121105194092, 0.05884644389152527, 0.00896166916936636, -0.045997198671102524, 0.01665276102721691, -0.04471937566995621, -0.008837470784783363, 0.007061395328491926, -0.04707575589418411, 0.030296508222818375, 0.02842811681330204, 0.004981777165085077, 0.01398263219743967, -0.023431839421391487, 0.021602079272270203, -0.05581560358405113, -0.036787327378988266, -0.025397442281246185, 0.027011973783373833, 0.030445288866758347, 0.03147493675351143, -0.009472106583416462, -0.06565513461828232, 0.01431787945330143, -0.0035002296790480614, -0.006134461145848036, -0.059064362198114395, 0.004157340619713068, -0.031998708844184875, -0.007503570523113012, 0.030293503776192665, 0.02171102538704872, -0.03147772327065468, 0.03806089237332344, 0.022230632603168488, -0.03469699248671532, 0.01636074297130108, -0.036641400307416916, -0.054112717509269714, -0.03408624604344368, 0.038239430636167526, 0.037023767828941345, -0.0025097571779042482, 0.0035060388036072254, 0.006493858527392149, 0.04653048515319824, 0.04056210070848465, 0.012185112573206425, 0.007526341825723648, -0.009372255764901638, 0.018088292330503464, 0.017276307567954063, -0.00926075130701065, -0.03273160010576248, 0.03085642121732235, -0.02854124829173088, 0.004065595101565123, -0.006761854514479637, 0.02808578498661518, -0.008847120217978954, -0.03002229519188404, -0.019588759168982506, 0.003135283710435033, -0.04468361660838127, -0.029606936499476433, -0.013376174494624138, -0.008000222034752369, 0.05872136726975441, 0.0009384370059706271, 0.014528127387166023, -0.01645255833864212, 0.006778226234018803, 0.016179000958800316, -0.001686100265942514, -0.03612096980214119, 0.012000507675111294, -0.031072191894054413, -0.001015673391520977, 0.0030766900163143873, 0.01751473918557167, 0.04123619571328163, -0.01343792024999857, -0.03397561237215996, -0.007752659264951944, 0.026110313832759857, 0.026654206216335297, 0.044969286769628525, 0.027977056801319122, -0.016265057027339935, -0.004265736788511276, 0.016516519710421562, -0.05395263060927391, -0.025375233963131905, 0.0005918717361055315, -0.02036384679377079, -0.0006808229954913259, -0.036524441093206406, -0.08203818649053574, 0.043536871671676636, 0.014258286915719509, -0.012595501728355885, 0.029411882162094116, -0.007663555443286896, 0.0006454859394580126, -0.03272257745265961, 0.017228731885552406, 0.04961284622550011, -0.05507604032754898, 0.018698660656809807, -0.001728174858726561, 0.011118946596980095, -0.0027789392042905092, -0.015456358902156353, -0.04419012367725372, -0.02070447988808155, -0.012752136215567589, 0.021057039499282837, -0.03720550239086151, -0.025544703006744385, -0.02527703531086445, 0.003922770265489817, -0.011389960534870625, 0.028088724240660667, -0.002399704186245799, -0.026654304936528206, -0.019622305408120155, -0.018292086198925972, 0.03364463895559311, -0.030220743268728256, -0.006261918228119612, 0.018604785203933716, -0.041515517979860306, 0.005698525346815586, -0.03430315852165222, 0.015448017045855522, 0.027850018814206123, -0.014246107079088688, 0.015898719429969788, -0.0702628344297409, -0.0308215394616127, -0.024659594520926476, 0.06645816564559937, -0.011431321501731873, -0.024013618007302284, -0.023738810792565346, 0.0046950471587479115, -0.027927329763770103, 0.0281011201441288, -0.007318485993891954, -0.0012093005934730172, 0.01779153384268284, 0.008845968171954155, 0.004888105671852827, 0.004518982023000717, -0.0175609290599823, -0.024242429062724113, 0.021920975297689438, -0.053733840584754944, -0.014292349107563496, -0.021560221910476685, -0.05491746589541435, 0.0017518698005005717, -0.012346831150352955, 0.013852487318217754, -0.03678238019347191, 0.03691311180591583, 0.02641565352678299, 0.028281109407544136, 0.04380892217159271, -0.026213280856609344, 0.0013288476038724184, -0.04116573557257652, 0.005267053376883268, -0.09847088158130646, 0.010537362657487392, -0.005442165303975344, -0.009285311214625835, -0.04840056970715523, 0.04302213340997696, -0.032939039170742035, 0.041404806077480316, -0.09457961469888687, -0.020374521613121033, 0.05726150423288345, -0.0005915157962590456, -0.009926589205861092, 0.02712693065404892, -0.038266874849796295, 0.009705821983516216, 0.04056599363684654, -0.055362265557050705, 0.0032839837949723005, -0.016084859147667885, 0.04149869084358215, -0.02518763765692711, 0.04797842726111412, -0.02540462836623192, -0.010571137070655823, 0.06941479444503784, 0.042551230639219284, 0.006601921748369932, 0.05243843421339989, -0.032994937151670456, 0.0466608963906765, 0.03353753313422203, -0.020646216347813606, 0.010474290698766708, 0.030034435912966728, -0.016123075038194656, -0.05665929988026619, 0.05779872462153435, -0.000032921365345828235, 0.0007167370640672743, -0.034016188234090805, 0.09426520019769669, 0.01566566526889801, -0.034119460731744766, -0.05177893489599228, 0.02414412423968315, -0.04003051668405533, -0.0005393243045546114, -0.005498748272657394, -0.03285639360547066, -0.020392902195453644, 0.050087686628103256, -0.00226518209092319, 0.031151698902249336, 0.058687154203653336, 0.020540140569210052, -0.021312309429049492, 0.022551165893673897, 0.09537956863641739, 0.07693970203399658, 0.05539710074663162, 0.0058466531336307526, 0.06043119728565216, -0.016694901511073112, -0.03701610490679741, -0.0008774569723755121, -0.04314514994621277, -0.010906528681516647, -0.03234044834971428, 0.0014926193980500102, 0.09023067355155945, -0.020312698557972908, 0.08033999055624008, -0.028800945729017258, -0.015061046928167343, 0.025421325117349625, 0.04159005731344223, 0.04826470836997032, 0.05747763440012932, -0.0015364375431090593, 0.040823373943567276, -0.020673511549830437, -0.04679716378450394, 0.04053906351327896, 0.002616829238831997, -0.025442546233534813, 0.013147379271686077, -0.029578419402241707, 0.04305045306682587, -0.006375851575285196, 0.053636156022548676, 0.07841835170984268, -0.03993689641356468, -0.0037858569994568825, 0.006252587772905827, 0.03883150964975357, -0.0023174837697297335, 0.04009955748915672, -0.0027108504436910152, 0.003689753357321024, -0.00751977413892746, -0.041844915598630905, -0.01961883343756199, 0.0032115401700139046, -0.04972989112138748, 0.00022505717060994357, -0.025130564346909523, 0.017856020480394363, 0.004219574388116598, -0.0043113199062645435, -0.026404207572340965, -0.04485345631837845, -0.04201240837574005, -0.03537864610552788, -0.07219803333282471, -0.019894378259778023, 0.008533147163689137, -0.049776554107666016, -0.04421321675181389, -0.012053895741701126, -0.03504751995205879, -0.006260749883949757, -0.010756991803646088, -0.048877596855163574, -0.0221263375133276, 0.022204088047146797, -0.00231516407802701, 0.01008748821914196, 0.018464477732777596, 0.06266193836927414, 0.006958818528801203, -0.0032454952597618103, -0.02232573740184307, 0.01651691645383835, 0.06028074026107788, 0.020276758819818497, 0.0036819761153310537, -0.08688819408416748, 0.027013584971427917, 0.026412852108478546, -0.006037911865860224, -0.08364617079496384, 0.0352494977414608, 0.017261885106563568, 0.02596435323357582, 0.03316706418991089, -0.00785460788756609, -0.02313677780330181, -0.03436264768242836, -0.0022217966616153717, 0.01606830023229122, -0.0024151743855327368, 0.02227134443819523, -0.03216124325990677, 0.06401018798351288, 0.03815128281712532, -0.020267056301236153, -0.04215746000409126, -0.01525274571031332, 0.016229815781116486, -0.00019248216995038092, -0.05907588452100754, -0.04960063844919205, -0.039331451058387756, -0.09284356981515884, -0.03937631845474243, 0.02790856547653675, -0.034298550337553024, -0.020644471049308777, 0.01931840367615223, 0.012301858514547348, -0.0318906344473362, 0.04480985552072525, -0.027394533157348633, 0.03342435508966446, -0.011996567249298096, -0.008507350459694862, -0.03450750187039375, 0.037014398723840714, 0.023781582713127136, 0.018460027873516083, 0.008663439191877842, -0.049489062279462814, -0.006207301281392574, -0.01754853129386902, 0.004289263393729925, 0.01611917093396187, 0.004280014429241419, 0.025822006165981293 ]
[ -0.0343768335878849, -0.05097866803407669, 0.0007080240175127983, 0.0037930000107735395, 0.04976043105125427, -0.04181894287467003, -0.0007650566985830665, -0.00758776068687439, -0.0027548265643417835, -0.025746945291757584, -0.0026270896196365356, -0.08123745769262314, -0.0030256821773946285, 0.0013554675970226526, 0.04009651765227318, -0.0360354408621788, -0.02652190811932087, -0.07149199396371841, -0.009958921931684017, 0.045390039682388306, -0.008819857612252235, -0.049900706857442856, -0.03213200345635414, -0.01300514955073595, 0.015707898885011673, 0.03368408977985382, 0.043424203991889954, -0.017564311623573303, -0.010067479684948921, -0.18481168150901794, 0.005627765320241451, -0.011414431035518646, 0.041824374347925186, -0.0009748478187248111, -0.028527243062853813, 0.038483403623104095, 0.01966378465294838, 0.017096396535634995, 0.014645320363342762, 0.048420775681734085, 0.07216998189687729, 0.008416848257184029, -0.0007212189957499504, -0.012420120649039745, 0.04887954518198967, 0.01499360240995884, -0.022852342575788498, 0.003038539318367839, -0.03468029201030731, 0.00374044687487185, -0.017249872907996178, -0.018575157970190048, -0.03477918356657028, -0.02632446028292179, -0.008556614629924297, 0.0609639436006546, 0.01766425557434559, 0.047646187245845795, 0.022940456867218018, 0.01628662273287773, 0.02034584805369377, -0.013197275809943676, -0.16942140460014343, 0.08623894304037094, 0.0004088850982952863, -0.0129014877602458, -0.022338561713695526, -0.008860182948410511, -0.020946213975548744, 0.08119851350784302, 0.03640332072973251, -0.015994969755411148, -0.019942525774240494, 0.04165954515337944, 0.04609854146838188, -0.015107785351574421, -0.03902674466371536, 0.03795379772782326, 0.03470737114548683, -0.02008933573961258, 0.0007080205832608044, 0.0020767038222402334, -0.04172872379422188, -0.012076961807906628, -0.015334106981754303, -0.013363962061703205, -0.019916372373700142, 0.046881914138793945, -0.01275950949639082, 0.020365752279758453, 0.028753776103258133, -0.023632625117897987, -0.02714286558330059, 0.01280706562101841, -0.07599769532680511, -0.07084185630083084, 0.026821786537766457, 0.012443273328244686, 0.004028601571917534, 0.42207807302474976, -0.021909136325120926, 0.02823537029325962, 0.02811628393828869, 0.08941061794757843, -0.00652771070599556, -0.023849688470363617, 0.005638383328914642, -0.05800753831863403, 0.03449685499072075, -0.005823394283652306, 0.019837085157632828, -0.010571388527750969, 0.0448516309261322, -0.031037652865052223, 0.0004142038233112544, 0.015625234693288803, 0.09308484196662903, 0.01916133053600788, -0.011681923642754555, 0.0007512757438234985, -0.028092414140701294, -0.0009983605705201626, -0.0016606387216597795, 0.025902150198817253, -0.014816297218203545, -0.001798539306037128, 0.01444356981664896, 0.032155364751815796, 0.04837026447057724, 0.012050573714077473, 0.08022680878639221, -0.04071575775742531, -0.07610777765512466, 0.008126416243612766, -0.02053040824830532, 0.022943317890167236, 0.058680567890405655, -0.020689386874437332, 0.0005461431574076414, 0.05178771913051605, 0.01077212393283844, -0.05317810922861099, 0.050225693732500076, 0.000056527227570768446, 0.004407224711030722, 0.13593274354934692, -0.01483780238777399, -0.09383166581392288, -0.02343059703707695, -0.061067357659339905, 0.024703511968255043, -0.015982097014784813, -0.0091262087225914, -0.05176197737455368, 0.01372381579130888, 0.03731036186218262, 0.09561866521835327, -0.01243711356073618, -0.022933436557650566, -0.00374873960390687, -0.004269033204764128, -0.023072954267263412, -0.032565828412771225, 0.0659032016992569, 0.05621830374002457, -0.1419549584388733, -0.0012240530923008919, 0.00568185793235898, -0.0014645117335021496, -0.08055687695741653, 0.029887255281209946, 0.016802817583084106, -0.005970677826553583, 0.029536794871091843, 0.0956512913107872, -0.014044520445168018, -0.0554821714758873, 0.04573032259941101, 0.06338682025671005, 0.014771409332752228, -0.018802082166075706, -0.0013979910872876644, -0.02925167605280876, -0.009994727559387684, -0.04290022328495979, -0.0525127649307251, -0.07207734882831573, -0.012234375812113285, -0.035211462527513504, 0.029171379283070564, 0.007944025099277496, -0.059231389313936234, -0.08309625089168549, 0.05437186732888222, -0.04947259649634361, -0.033202845603227615, 0.005180140025913715, -0.018533699214458466, 0.004205605946481228, -0.005725175607949495, -0.007500050589442253, 0.0026432909071445465, -0.0660630464553833, 0.01600724831223488, -0.03358431160449982, 0.0481802299618721, 0.09094038605690002, -0.03719990700483322, 0.0661238506436348, 0.06109107285737991, -0.013217244297266006, -0.04850079491734505, 0.032156992703676224, -0.020530033856630325, 0.04499632865190506, -0.017642177641391754, 0.026572631672024727, -0.02289639413356781, -0.004745730198919773, 0.03865369036793709, -0.020980961620807648, -0.026248496025800705, -0.031477466225624084, -0.3493131697177887, -0.033351678401231766, -0.014042017981410027, -0.0018300567753612995, 0.022331198677420616, -0.049944519996643066, -0.017530687153339386, -0.005513379350304604, -0.013098569586873055, 0.04809467867016792, 0.1217183768749237, -0.015065151266753674, 0.0011187409982085228, -0.03311765938997269, -0.008939419873058796, 0.04403048753738403, -0.04550153762102127, 0.009627311490476131, -0.019373541697859764, 0.0012459185672923923, 0.02840305119752884, -0.0012320723617449403, -0.09310153871774673, -0.025575537234544754, -0.021181687712669373, -0.04173058643937111, 0.11189092695713043, -0.011949695646762848, 0.036579735577106476, -0.06271357834339142, 0.04008505865931511, -0.01569635234773159, 0.00420607952401042, -0.07230795174837112, -0.01647440530359745, 0.0005987171898595989, 0.05401863157749176, 0.004243438132107258, 0.006306701339781284, -0.036403555423021317, -0.06919260323047638, 0.04644060134887695, -0.05552433431148529, -0.0262431800365448, -0.06614498794078827, 0.04456103593111038, -0.003916173707693815, -0.007825251668691635, 0.004095620475709438, 0.06516065448522568, 0.017990387976169586, -0.02982090227305889, 0.015769021585583687, 0.007157741580158472, 0.020367762073874474, -0.011610496789216995, -0.05444621667265892, 0.003085108706727624, -0.028543071821331978, 0.018547168001532555, -0.0038953139446675777, 0.03916554898023605, 0.03709748014807701, -0.025070087984204292, -0.015516416169703007, 0.028209013864398003, -0.010934114456176758, -0.01691475138068199, 0.05731917917728424, 0.012315891683101654, -0.0096034100279212, 0.05958595871925354, 0.003491288051009178, 0.015257557854056358, 0.019656406715512276, -0.023145651444792747, -0.002546844771131873, 0.06995188444852829, 0.05903683230280876, 0.011280951090157032, 0.05024271085858345, -0.024164797738194466, 0.03312774747610092, -0.03742934763431549, 0.01016072928905487, 0.04306691884994507, 0.027792278677225113, -0.017942437902092934, 0.03852149844169617, 0.007895641960203648, -0.013912799768149853, 0.0018445277819409966, -0.018132394179701805, -0.04724622145295143, 0.009432222694158554, -0.009831043891608715, -0.2687218189239502, 0.03564852848649025, 0.07084131240844727, 0.02983217127621174, -0.022691022604703903, -0.007571778725832701, 0.03179990127682686, -0.01799914240837097, -0.012266558595001698, 0.01173921674489975, 0.05340804532170296, -0.000622731342446059, -0.0075717284344136715, -0.020046116784214973, 0.03704458847641945, -0.038276635110378265, 0.010585051961243153, 0.032579950988292694, -0.018863853067159653, 0.016101934015750885, 0.049287740141153336, 0.013165878131985664, 0.15658092498779297, 0.023602934554219246, 0.034380413591861725, 0.013736008666455746, -0.02771000936627388, 0.018123304471373558, 0.062098775058984756, -0.024944545701146126, -0.021899456158280373, -0.01620902493596077, -0.008629227988421917, -0.022382276132702827, 0.0185723677277565, -0.03475799411535263, -0.026507675647735596, 0.0660877451300621, 0.01500034611672163, -0.01718561165034771, 0.008479108102619648, -0.008694637566804886, -0.04018101468682289, 0.014925152994692326, 0.06330573558807373, 0.03230106830596924, 0.014999667182564735, -0.018525687977671623, -0.03053298592567444, -0.03112015128135681, -0.02529170922935009, -0.05183606222271919, -0.004191471263766289, -0.0296294204890728, -0.0014841897645965219, 0.07565376162528992, 0.010143562220036983, -0.04954607039690018, 0.013368883170187473, 0.029146337881684303, -0.022272678092122078, -0.03231523558497429, 0.06770101189613342, -0.05518803745508194, 0.039156924933195114 ]
[ 0.02899790368974209, 0.002893170341849327, -0.014013190753757954, -0.0011821355437859893, -0.014343258924782276, 0.011358638294041157, -0.004992818459868431, -0.01245297584682703, -0.03717854619026184, 0.01674455590546131, -0.05034646391868591, 0.012168651446700096, 0.029668837785720825, 0.008991936221718788, 0.026756945997476578, -0.009914646856486797, 0.011957877315580845, -0.005545276682823896, 0.046254225075244904, 0.019994311034679413, -0.05059079825878143, -0.0015105626080185175, 0.00411340594291687, -0.008218956179916859, -0.03654564917087555, 0.025738168507814407, 0.00009904119360726327, 0.026037385687232018, 0.011111296713352203, -0.10534161329269409, -0.0006079335580579937, -0.01274279784411192, -0.016143273562192917, 0.04148538410663605, -0.03416794538497925, 0.013865954242646694, -0.025349866598844528, 0.05084230378270149, 0.020252397283911705, 0.022724095731973648, -0.02930610440671444, -0.025712482631206512, 0.02956668846309185, 0.0050071608275175095, 0.03824004903435707, 0.004341530613601208, -0.05073690414428711, -0.02270575240254402, 0.0064951893873512745, -0.029127363115549088, -0.03865253925323486, -0.04608304798603058, -0.015150262974202633, -0.023137696087360382, 0.006612181197851896, -0.008328179828822613, -0.043373312801122665, -0.009140939451754093, 0.007629556115716696, -0.05874503403902054, 0.000020468956790864468, 0.019801955670118332, -0.05787333846092224, -0.024616394191980362, -0.013780085369944572, -0.04670359194278717, -0.04447149485349655, -0.0018296408234164119, 0.02496453747153282, -0.003699736436828971, -0.004804357886314392, 0.0335402749478817, -0.054384030401706696, -0.055004581809043884, 0.0211231280118227, 0.013089007697999477, -0.03666981682181358, -0.017222054302692413, 0.008133694529533386, -0.019839148968458176, -0.004153133369982243, -0.0008093552896752954, 0.011313896626234055, 0.01966678723692894, -0.0031605332624167204, -0.05387614294886589, 0.020092561841011047, 0.026766151189804077, 0.009347852319478989, -0.006234301719814539, 0.014578048139810562, 0.03195492550730705, -0.011270287446677685, 0.002613223623484373, -0.08846788853406906, 0.007045467849820852, -0.03387695923447609, 0.017590047791600227, -0.0035714118275791407, 0.8400241732597351, -0.030692195519804955, -0.007938948459923267, -0.0051927873864769936, 0.012732780538499355, -0.006321239750832319, 0.0013804998015984893, 0.0008481584955006838, 0.015333887189626694, 0.02743367664515972, -0.05031514912843704, 0.020632702857255936, 0.019381439313292503, 0.0002522583235986531, 0.03951939567923546, 0.012536765076220036, 0.07831009477376938, 0.009356338530778885, 0.01509246975183487, 0.02456788346171379, -0.004523494280874729, 0.00041901643271557987, 0.023369263857603073, -0.005123568698763847, -0.007352830842137337, -0.04634298384189606, -0.18212494254112244, 0.009442174807190895, -6.452280410139874e-33, 0.022854968905448914, -0.014141237363219261, 0.0004967753775417805, -0.02011065185070038, -0.0009391937055625021, -0.018250713124871254, -0.0412900485098362, 0.01708553358912468, 0.0039365533739328384, -0.036254528909921646, 0.010052301920950413, 0.00827804859727621, 0.032224588096141815, -0.028413107618689537, 0.027189329266548157, 0.002638481790199876, 0.027111364528536797, 0.05187332630157471, -0.028782948851585388, -0.019307686015963554, 0.0024563788902014494, 0.0051436033099889755, -0.008703811094164848, 0.020538777112960815, 0.03052649088203907, 0.08054997026920319, -0.008240090683102608, 0.004830962046980858, -0.00008251034887507558, -0.048054538667201996, -0.014813480898737907, 0.03348618745803833, 0.010061726905405521, 0.018794234842061996, 0.029142701998353004, -0.030911998823285103, -0.02405567839741707, -0.0034640186931937933, -0.025524260476231575, -0.03805411234498024, -0.05760762095451355, -0.0013983751414343715, -0.01651175692677498, 0.0029714053962379694, -0.006399514153599739, 0.027118483558297157, 0.008821399882435799, 0.026289159432053566, -0.001964530209079385, 0.030000761151313782, 0.02077360451221466, 0.025917010381817818, -0.03505590185523033, -0.007763574365526438, -0.0008149250643327832, 0.029488923028111458, 0.007722320966422558, 0.04739252105355263, 0.006394187454134226, 0.025131884962320328, 0.03762074187397957, -0.0016387850046157837, -0.001701669185422361, 0.049465399235486984, -0.004813327919691801, 0.000185709708603099, -0.021763209253549576, -0.021192779764533043, 0.054602477699518204, 0.0027892098296433687, -0.05096382647752762, 0.06418915838003159, 0.0062247286550700665, -0.012663926929235458, 0.013163082301616669, -0.019481804221868515, 0.01859191805124283, 0.008583533577620983, 0.008049942553043365, 0.016466986387968063, 0.0018570018000900745, 0.012165822088718414, -0.011748175136744976, -0.03624743968248367, -0.0027776374481618404, 0.0048948959447443485, 0.05371597409248352, -0.021248681470751762, -0.03492934629321098, 0.024245234206318855, 0.0029786282684653997, 0.023000311106443405, -0.04150428622961044, -0.0026850756257772446, -0.013146872632205486, 6.548488010598955e-33, 0.006784565281122923, -0.06865359842777252, -0.01626048982143402, 0.004879434127360582, 0.025384582579135895, -0.008211888372898102, 0.03930245339870453, -0.021940404549241066, 0.005548912566155195, 0.03910728543996811, -0.03635598346590996, -0.007732839323580265, 0.023586921393871307, 0.0021731387823820114, 0.059121012687683105, -0.02188633196055889, 0.0157063789665699, -0.0010947920382022858, -0.012713871896266937, 0.03845697268843651, -0.0011811789590865374, 0.007822535000741482, 0.014209856279194355, 0.003366202348843217, 0.007312125526368618, 0.033676985651254654, -0.0002139167336281389, -0.019401593133807182, -0.014538281597197056, 0.02127806469798088, -0.000009832183422986418, 0.008145897649228573, -0.02162354439496994, 0.0040296101942658424, 0.013249767944216728, 0.04718554764986038, 0.002819100860506296, -0.02530638687312603, 0.0025481039192527533, 0.014164969325065613, 0.025522345677018166, 0.02427464909851551, -0.028719276189804077, 0.02890404686331749, 0.04763108491897583, -0.016195660457015038, -0.016616443172097206, 0.008701442740857601, -0.005502758082002401, 0.006399327423423529, 0.012024402618408203, 0.012113777920603752, -0.03201831877231598, -0.02173023857176304, 0.020900340750813484, -0.0041477917693555355, -0.02879009209573269, 0.006264080759137869, 0.008616062812507153, -0.009302951395511627, -0.005886757746338844, 0.0005164909525774419, -0.021611811593174934, 0.05646805465221405, 0.000644217012450099, 0.01553267240524292, -0.021989518776535988, 0.007033875212073326, -0.025706011801958084, 0.04230314493179321, -0.014325586147606373, -0.0069028958678245544, -0.0009585096850059927, 0.004117891192436218, -0.019864246249198914, 0.0032537253573536873, -0.017515508458018303, 0.017122088000178337, -0.003802840830758214, 0.0191627386957407, 0.031928278505802155, 0.008198069408535957, 0.04538017138838768, -0.009334154427051544, -0.009510922245681286, 0.05898793414235115, -0.027293024584650993, 0.03608701378107071, 0.004581065848469734, -0.015349186025559902, 0.030964422971010208, -0.027160298079252243, 0.007545854430645704, 0.003244253108277917, -0.02095872536301613, -1.2561735651672734e-8, -0.050991326570510864, 0.03369244188070297, -0.028785396367311478, -0.006586179137229919, 0.014466065913438797, -0.0035837823525071144, 0.005617102142423391, -0.024763323366642, -0.025676986202597618, 0.016159944236278534, 0.019065024331212044, -0.030574027448892593, -0.004701399710029364, 0.030281543731689453, 0.00009588214015820995, -0.048874516040086746, 0.006198042072355747, -0.028801223263144493, 0.023086581379175186, 0.024683063849806786, 0.02829567715525627, 0.020842531695961952, -0.011456530541181564, 0.007289508357644081, 0.007852745242416859, -0.04983631893992424, 0.00559918163344264, -0.06201521307229996, 0.013622620142996311, 0.002104848623275757, 0.028222180902957916, -0.032358307391405106, -0.020363865420222282, 0.015529648400843143, -0.013321875594556332, -0.031581781804561615, 0.02722436562180519, 0.02067972719669342, 0.012445023283362389, 0.014059982262551785, -0.034918371587991714, -0.019696420058608055, -0.024196244776248932, -0.02580098994076252, -0.010296020656824112, 0.029037456959486008, -0.001514825620688498, -0.018116576597094536, 0.00833861157298088, -0.028864288702607155, -0.013621954247355461, -0.018415626138448715, -0.009210178628563881, -0.016971001401543617, 0.046013958752155304, 0.0001590219180798158, 0.0022904661018401384, -0.031467072665691376, -0.020497027784585953, -0.039811257272958755, -0.014778828248381615, -0.004102569539099932, 0.006337061990052462, -0.02280028723180294 ]
r-applying-a-function-to-every-row-of-a-data-frame
https://markhneedham.com/blog/2014/12/04/r-applying-a-function-to-every-row-of-a-data-frame
false
2014-12-11 19:03:06
R: data.table/dplyr/lubridate - Error in wday(date, label = TRUE, abbr = FALSE) : unused arguments (label = TRUE, abbr = FALSE)
[ "r-2", "rstats" ]
[ "R" ]
I spent a couple of hours playing around with http://cran.r-project.org/web/packages/data.table/index.html[data.table] this evening and tried changing some code written using a data frame to use a data table instead. I started off by building a data frame which contains all the weekends between 2010 and 2015\... [source,r] ---- > library(lubridate) > library(dplyr) > dates = data.frame(date = seq( dmy("01-01-2010"), to=dmy("01-01-2015"), by="day" )) > dates = dates %>% filter(wday(date, label = TRUE, abbr = FALSE) %in% c("Saturday", "Sunday")) ---- \...which works fine: [source,r] ---- > dates %>% head() date 1: 2010-01-02 2: 2010-01-03 3: 2010-01-09 4: 2010-01-10 5: 2010-01-16 6: 2010-01-17 ---- I then tried to change the code to use a data table instead which led to the following error: [source,r] ---- > library(data.table) > dates = data.table(date = seq( dmy("01-01-2010"), to=dmy("01-01-2015"), by="day" )) > dates = dates %>% filter(wday(date, label = TRUE, abbr = FALSE) %in% c("Saturday", "Sunday")) Error in wday(date, label = TRUE, abbr = FALSE) : unused arguments (label = TRUE, abbr = FALSE) ---- I wasn't sure what was going on so I went back to the data frame version to check if that still worked\... [source,r] ---- > dates = data.frame(date = seq( dmy("01-01-2010"), to=dmy("01-01-2015"), by="day" )) > dates = dates %>% filter(wday(date, label = TRUE, abbr = FALSE) %in% c("Saturday", "Sunday")) Error in wday(c(1262304000, 1262390400, 1262476800, 1262563200, 1262649600, : unused arguments (label = TRUE, abbr = FALSE) ---- \...except it now didn't work either! I decided to check what +++<cite>+++wday+++</cite>+++ was referring to\... ____ Help on topic 'wday' was found in the following packages: Integer based date class (in package data.table in library /Library/Frameworks/R.framework/Versions/3.1/Resources/library) Get/set days component of a date-time. (in package lubridate in library /Library/Frameworks/R.framework/Versions/3.1/Resources/library) ____ \...and realised that data.table has its own wday function - I'd been caught out by R's global scoping of all the things! We can probably work around that by the order in which we require the various libraries but for now I'm just prefixing the call to wday and all is well: [source,r] ---- dates = dates %>% filter(lubridate::wday(date, label = TRUE, abbr = FALSE) %in% c("Saturday", "Sunday")) ----
null
null
[ 0.006163846701383591, 0.024146556854248047, -0.024276411160826683, 0.04780592769384384, 0.06599122285842896, 0.0185213852673769, 0.026074299588799477, 0.002452349988743663, 0.02169688791036606, 0.013373381458222866, 0.0032672204542905092, 0.01458428893238306, -0.072453573346138, 0.03994120657444, -0.05171915516257286, 0.08569830656051636, 0.06395233422517776, -0.023031776770949364, 0.01662556640803814, -0.0069425362162292, 0.04873877018690109, 0.031752873212099075, -0.00867582019418478, 0.0458398312330246, 0.027527935802936554, 0.0014350088313221931, 0.008927910588681698, -0.000731963780708611, -0.052885256707668304, 0.010885990224778652, 0.03307917341589928, 0.046667058020830154, 0.011365968734025955, 0.03191344812512398, 0.028465650975704193, 0.01178894005715847, -0.00655409786850214, -0.026646994054317474, 0.010919020511209965, 0.014436919242143631, -0.07054033130407333, 0.008137134835124016, 0.0005655851564370096, -0.006304624956101179, -0.019506506621837616, 0.041870832443237305, -0.04231146723031998, 0.016949864104390144, -0.011475948616862297, 0.01482483185827732, -0.045556068420410156, 0.034369103610515594, 0.024452704936265945, -0.040982436388731, -0.01795555092394352, 0.051789410412311554, 0.0075440010987222195, -0.07214862108230591, 0.024658922106027603, -0.03360114246606827, 0.026649722829461098, 0.0011446865973994136, -0.014134330675005913, 0.012992845848202705, 0.004829304292798042, -0.02179505117237568, -0.033651743084192276, 0.052340246737003326, -0.03389497101306915, 0.005374557804316282, -0.024269239977002144, -0.012869027443230152, -0.05011281371116638, -0.01976441591978073, 0.004371026065200567, -0.02785874344408512, -0.012623034417629242, 0.024091562256217003, 0.032734498381614685, 0.009947768412530422, -0.020665772259235382, -0.0008588358759880066, 0.020307645201683044, 0.020829513669013977, 0.03914857283234596, -0.007957217283546925, -0.02123050019145012, -0.04832517355680466, -0.06289181113243103, 0.045661263167858124, 0.0062067145481705666, -0.050062961876392365, 0.05011214315891266, 0.038232576102018356, -0.033943142741918564, -0.010335050523281097, 0.005789857357740402, -0.01326145138591528, 0.014046457596123219, -0.019834382459521294, -0.07531893998384476, -0.02872658334672451, 0.07625408470630646, 0.005779922474175692, -0.05949237197637558, 0.004227329045534134, -0.01476568914949894, -0.016617998480796814, 0.021234959363937378, 0.020659850910305977, -0.02047579362988472, 0.03405923768877983, 0.0016353452811017632, -0.0055070240050554276, -0.050605643540620804, 0.05963517725467682, 0.02554328553378582, -0.030999308452010155, -0.0325763076543808, -0.01280471682548523, 0.017813853919506073, -0.01772186905145645, -0.028850708156824112, 0.056072186678647995, -0.01763048581779003, 0.06859004497528076, 0.01074386015534401, 0.04760808125138283, -0.014817863702774048, -0.07481525838375092, 0.006452601402997971, 0.05358758196234703, -0.047017451375722885, 0.0007690022466704249, -0.02489081397652626, -0.012299520894885063, -0.01582283340394497, -0.021906446665525436, 0.09227126091718674, 0.029434707015752792, 0.016387175768613815, -0.009415972977876663, -0.01353690680116415, -0.015104558318853378, 0.024730317294597626, 0.01702648401260376, 0.014460762962698936, -0.05402732640504837, -0.05244273319840431, -0.009293113835155964, 0.0457284189760685, 0.0169127956032753, 0.0509912334382534, -0.04071291163563728, 0.020033732056617737, 0.03943139687180519, -0.024662138894200325, 0.01714763604104519, -0.033483635634183884, -0.010380268096923828, 0.042185913771390915, 0.022374818101525307, -0.00576362106949091, 0.05163917317986488, 0.006199162919074297, -0.043306268751621246, 0.030359534546732903, 0.02014916017651558, -0.023309782147407532, 0.00039705156814306974, -0.07368267327547073, -0.058425091207027435, 0.057641640305519104, -0.04140442982316017, -0.0014011857565492392, 0.07178152352571487, 0.06891036778688431, 0.027490530163049698, 0.02615712583065033, 0.009008162654936314, -0.07553485780954361, 0.013485776260495186, 0.010270020924508572, 0.020781448110938072, 0.04225229099392891, -0.03776056692004204, 0.07546350359916687, -0.01033821702003479, 0.04139409959316254, 0.08447467535734177, -0.07456425577402115, -0.059266652911901474, -0.006259717512875795, -0.03198808431625366, 0.04531089961528778, -0.05639015510678291, -0.026627713814377785, 0.06438463926315308, -0.013579405844211578, 0.05550502613186836, -0.018680976703763008, 0.03387795388698578, 0.013667210005223751, -0.016760138794779778, -0.03926609084010124, 0.011573498137295246, 0.03693955019116402, -0.006947703193873167, 0.026303155347704887, 0.02248423546552658, -0.025791237130761147, 0.02935617044568062, 0.025556761771440506, -0.023223504424095154, 0.04803219437599182, 0.04146238788962364, 0.06310159713029861, -0.0008947347523644567, 0.02652234025299549, -0.055971309542655945, 0.053044695407152176, 0.026071971282362938, -0.021326929330825806, -0.055405374616384506, -0.00191094062756747, 0.11560990661382675, 0.06077634170651436, -0.01026242133229971, -0.04400953650474548, 0.02293187938630581, -0.01568998210132122, -0.009985435754060745, 0.033311087638139725, -0.003310344647616148, 0.02813333459198475, 0.02442462183535099, -0.03790311515331268, -0.029382387176156044, -0.01179922092705965, -0.02332906983792782, 0.013641199097037315, 0.05625275894999504, -0.003916849382221699, 0.030093461275100708, -0.028861209750175476, 0.002815446350723505, -0.00558817945420742, -0.02295137383043766, -0.06291002035140991, -0.00870574451982975, 0.048936061561107635, -0.01854940690100193, 0.039124343544244766, -0.03221162408590317, 0.00023824049276299775, -0.023034296929836273, -0.04324688762426376, 0.05375506728887558, 0.07888163626194, 0.042358748614788055, -0.015384423546493053, 0.005523451138287783, -0.00953551847487688, -0.00974778737872839, 0.01336815394461155, -0.033174458891153336, -0.02744969353079796, -0.00640433793887496, -0.007959014736115932, 0.016659939661622047, 0.03334115818142891, -0.015674954280257225, -0.007406068965792656, 0.025074971839785576, 0.009115721099078655, -0.015000250190496445, 0.040749214589595795, -0.008327875286340714, -0.006481268908828497, -0.012592182494699955, 0.007602558005601168, 0.03180748596787453, 0.004281198605895042, -0.0166526697576046, -0.02254382148385048, -0.052662912756204605, 0.04288501664996147, -0.029896428808569908, -0.059052832424640656, 0.010625162161886692, 0.01101263053715229, 0.05722031742334366, 0.027798961848020554, 0.0030066734179854393, 0.06927907466888428, -0.011597449891269207, 0.013661912642419338, -0.0019494973821565509, 0.0005305539234541357, 0.06425462663173676, 0.03638952970504761, 0.013395421206951141, 0.08169817179441452, -0.010407825000584126, 0.0025053187273442745, -0.04109221324324608, -0.006298247259110212, -0.021237846463918686, -0.23699839413166046, 0.017771784216165543, -0.05784064903855324, -0.04555172845721245, 0.038384802639484406, -0.04518499597907066, 0.04921344667673111, -0.02848595380783081, -0.01213611289858818, -0.00066153216175735, 0.029962241649627686, -0.07020159065723419, -0.03292746841907501, 0.044020067900419235, 0.0408548042178154, 0.004042495507746935, 0.0034074552822858095, -0.04725931957364082, 0.025378236547112465, 0.04287749156355858, 0.030282001942396164, -0.002936973702162504, -0.011852236464619637, 0.04187135025858879, 0.015937235206365585, 0.06179400905966759, -0.026527583599090576, 0.032051242887973785, -0.06728985160589218, -0.0560661219060421, -0.002991048851981759, -0.019091594964265823, 0.04063045606017113, -0.022061746567487717, 0.01720334216952324, -0.011897983960807323, 0.015422162599861622, 0.05152146890759468, 0.04003456234931946, 0.026149775832891464, -0.04074734449386597, -0.023762747645378113, 0.02534908801317215, -0.017309915274381638, 0.08223488181829453, 0.019396783784031868, -0.06886809319257736, 0.015232357196509838, -0.019812319427728653, 0.06837156414985657, -0.017445623874664307, -0.005389609839767218, 0.007635914720594883, 0.004960595164448023, -0.014820167794823647, -0.005326280370354652, -0.020839152857661247, 0.0071525187231600285, -0.012619510293006897, -0.04092169180512428, 0.010406501591205597, -0.02008722350001335, -0.007744767237454653, -0.0518375039100647, -0.06052195280790329, -0.08152639120817184, -0.08585263043642044, -0.01021043211221695, 0.06247670203447342, 0.04629417508840561, -0.045659780502319336, -0.027122868224978447, -0.00803400482982397, -0.10592176020145416, 0.006869640666991472, -0.029767893254756927, -0.01298667211085558, -0.024813925847411156, -0.0004263864830136299, 0.031179193407297134, 0.0004965814878232777, -0.0380999781191349, 0.03588920086622238, 0.032214704900979996, 0.028273548930883408, -0.011361483484506607, 0.025520646944642067, 0.00345412059687078, -0.047457341104745865, -0.03264233097434044, 0.05121591314673424, -0.03386589139699936, -0.029781779274344444, 0.008793860673904419, -0.02400893159210682, 0.04520459845662117, -0.013839880004525185, 0.019441382959485054, 0.0395122691988945, -0.0024666369426995516, 0.00620253337547183, -0.018869899213314056, 0.012844349257647991, -0.06630311161279678, -0.023802367970347404, -0.019199348986148834, -0.057182878255844116, 0.016177084296941757, -0.027573799714446068, 0.04616162180900574, 0.03153769299387932, -0.02652781829237938, 0.009773408062756062, -0.07877273857593536, -0.04501717537641525, -0.019844338297843933, 0.007138104643672705, 0.020407795906066895, -0.004671879578381777, 0.000824392307549715, -0.06657615303993225, 0.010192648507654667, -0.0069641717709600925, -0.019459601491689682, -0.013709734193980694, -0.021713808178901672, 0.039131615310907364, -0.01968209631741047, 0.009867671877145767, 0.05186491459608078, 0.004864874761551619, 0.01688474230468273, 0.04384731873869896, -0.02913198433816433, 0.04049845039844513, 0.005092776846140623, -0.032677534967660904, -0.00752768199890852, -0.0057973782531917095, 0.023749345913529396, -0.03293459489941597, -0.016779357567429543, 0.009669792838394642, 0.004111017100512981, 0.037634409964084625, 0.0065878015011549, 0.014640768058598042, 0.028323503211140633, 0.01015438698232174, 0.019441045820713043, -0.008271122351288795, -0.02907777950167656, 0.007384593598544598, -0.05784761905670166, -0.038710594177246094, -0.009637697599828243, 0.07850783318281174, -0.020774053409695625, -0.010093405842781067, -0.05051589384675026, -0.016896698623895645, -0.05364307761192322, 0.0016795647097751498, -0.004796834196895361, 0.004975147545337677, 0.07445696741342545, -0.015351638197898865, 0.003740302287042141, 0.03078569285571575, -0.04354242607951164, -0.04817187413573265, 0.012676224112510681, -0.043236974626779556, 0.03734781593084335, -0.005376166198402643, -0.019553078338503838, 0.012989787384867668, 0.005540852434933186, 0.020769299939274788, -0.012375936843454838, -0.006501142866909504, -0.001653557177633047, 0.0014991186326369643, 0.001993546262383461, 0.03810705989599228, 0.017605945467948914, -0.009466657415032387, 0.007237754296511412, -0.027483602985739708, -0.048391155898571014, -0.014476136304438114, -0.006501002702862024, -0.0023569336626678705, -0.0020133270882070065, -0.035091232508420944, -0.05723321810364723, 0.027653314173221588, 0.07843558490276337, 0.012004596181213856, -0.0021006502211093903, -0.04235077649354935, -0.021140025928616524, -0.03970054164528847, 0.038056571036577225, 0.0680900365114212, -0.06290991604328156, 0.008892880752682686, 0.02027498371899128, -0.009146190248429775, 0.013406726531684399, 0.010150781832635403, -0.04518074169754982, -0.014960289001464844, -0.015532723627984524, 0.013370213098824024, -0.0064517720602452755, -0.022736627608537674, -0.0712306872010231, 0.027079030871391296, -0.00003937285146093927, 0.027651512995362282, -0.007121414877474308, -0.009119565598666668, 0.011290027759969234, -0.002539090346544981, 0.01878467947244644, -0.046137403696775436, -0.027004238218069077, 0.02647695131599903, 0.013580203987658024, 0.005230992566794157, -0.013055616058409214, 0.01731119118630886, 0.028978364542126656, -0.015887005254626274, -0.013634206727147102, -0.036702778190374374, 0.022312963381409645, 0.014546125195920467, 0.04511154443025589, -0.006923255044966936, 0.029701298102736473, -0.032537106424570084, 0.014809017069637775, -0.020137304440140724, -0.0035651831422001123, -0.028106750920414925, -0.025598548352718353, 0.028308114036917686, 0.0455341674387455, 0.0034281108528375626, -0.0021636509336531162, -0.008659613318741322, -0.010546737350523472, 0.035029876977205276, -0.021789729595184326, -0.03621506690979004, -0.012847705744206905, -0.055897004902362823, 0.04944569617509842, 0.010707126930356026, -0.0010225116275250912, -0.02939499542117119, 0.05393113195896149, 0.026561645790934563, 0.06516380608081818, 0.07566244900226593, 0.008159330114722252, 0.03386532887816429, -0.036507029086351395, -0.008376880548894405, -0.07916031032800674, -0.021049870178103447, 0.012640067376196384, -0.014554365538060665, -0.027722591534256935, -0.03015350177884102, -0.012450335547327995, 0.021836604923009872, -0.055541347712278366, -0.059743981808423996, 0.030619444325566292, 0.0005942207062616944, 0.0017795248422771692, 0.01994364708662033, -0.03281097859144211, 0.011373616755008698, 0.037480778992176056, -0.03679740056395531, -0.012963153421878815, 0.005251971539109945, 0.049334775656461716, -0.044245846569538116, -0.0031464172061532736, -0.023109540343284607, -0.021122438833117485, 0.05079767107963562, 0.024775464087724686, -0.009714650921523571, 0.05493587628006935, -0.016069544479250908, 0.016916649416089058, 0.03900247439742088, -0.0051741530187428, 0.012350738048553467, -0.007333570625633001, 0.019833272323012352, -0.030683403834700584, 0.015421722084283829, 0.0161255095154047, 0.021225303411483765, -0.059561893343925476, 0.10012979805469513, 0.007845024578273296, -0.06034152954816818, -0.030552664771676064, -0.0020992790814489126, -0.04182484745979309, -0.009491031989455223, 0.010867536067962646, -0.01250536274164915, -0.050021588802337646, 0.059387318789958954, -0.011689336970448494, 0.010084554553031921, 0.06684704124927521, 0.025360064581036568, -0.007007098291069269, 0.020052282139658928, 0.054661739617586136, 0.08661143481731415, 0.028930552303791046, 0.006995878182351589, 0.07214712351560593, -0.03411159664392471, -0.04544805735349655, 0.029122212901711464, -0.07214334607124329, -0.02243380807340145, -0.0551760233938694, 0.015986964106559753, 0.06685991585254669, -0.015982316806912422, 0.038745980709791183, 0.0004020100459456444, -0.019597256556153297, -0.008884148672223091, -0.006544224917888641, 0.06571147590875626, 0.04629766196012497, 0.006662341766059399, 0.01536563877016306, 0.016727952286601067, -0.016919046640396118, 0.04339086636900902, -0.014219227246940136, -0.0246494822204113, -0.006243334151804447, -0.0033881363924592733, 0.0006481980090029538, 0.004579161759465933, 0.02684006653726101, 0.07904420047998428, -0.016868915408849716, -0.0013275847304612398, -0.03448082134127617, 0.043039098381996155, -0.00431772880256176, 0.0015038523124530911, -0.011080733500421047, -0.023159876465797424, -0.020766738802194595, -0.06919805705547333, -0.039751019328832626, -0.015298536978662014, -0.032919880002737045, 0.03631474822759628, -0.06358670443296432, 0.030143916606903076, 0.03637012839317322, -0.022016683593392372, -0.043573636561632156, -0.032590992748737335, -0.07000575214624405, -0.04940841719508171, -0.07385368645191193, -0.015835948288440704, 0.01623428985476494, -0.029535146430134773, -0.03264618292450905, 0.0018595127621665597, 0.008517040871083736, -0.03949688374996185, -0.019821682944893837, -0.07170518487691879, -0.06046722084283829, 0.017134839668869972, 0.011162875220179558, 0.01918662339448929, 0.03525157645344734, 0.04731030762195587, -0.005372704938054085, -0.030725006014108658, -0.032779593020677567, -0.0029387727845460176, 0.029179014265537262, 0.02798556722700596, 0.02144734188914299, -0.05490059778094292, 0.024568265303969383, -0.0002583267050795257, -0.024918947368860245, -0.07935153692960739, 0.048045072704553604, 0.01626814715564251, -0.018731163814663887, 0.04824155941605568, -0.005112106446176767, 0.027412014082074165, -0.026005128398537636, -0.03307582065463066, 0.018023908138275146, 0.03205826133489609, 0.011701120994985104, -0.05127550661563873, 0.06655248999595642, 0.053516242653131485, 0.03279305621981621, -0.02620338462293148, -0.03766370564699173, 0.007662474177777767, -0.05617963895201683, -0.0405864454805851, -0.05702600255608559, -0.07040538638830185, -0.08674748986959457, -0.03791338950395584, 0.022050172090530396, -0.044730909168720245, -0.008953629061579704, 0.0016406484646722674, 0.013061711564660072, -0.0650053471326828, 0.022407783195376396, -0.04245975613594055, 0.002979402430355549, -0.027026941999793053, -0.012068831361830235, -0.0002068852772936225, 0.04267089068889618, -0.0035090306773781776, -0.014692883938550949, -0.004887336865067482, -0.028646869584918022, 0.005496362689882517, -0.041514597833156586, 0.013801748864352703, 0.022406302392482758, 0.0027058806736022234, 0.012957528233528137 ]
[ -0.059456199407577515, -0.037048205733299255, -0.04140981659293175, -0.0024570475798100233, 0.07528669387102127, -0.034658294171094894, -0.04635040462017059, 0.018178807571530342, 0.005683605559170246, 0.02817283198237419, 0.04718146100640297, -0.027926508337259293, 0.021188227459788322, 0.012230121530592442, 0.03851327300071716, -0.009810352697968483, -0.05247044935822487, -0.06775106489658356, -0.012128367088735104, 0.042358096688985825, -0.010602102614939213, -0.02286682464182377, -0.06527378410100937, -0.0482960008084774, 0.05802604556083679, 0.05633280426263809, -0.009393355809152126, -0.046647828072309494, -0.020794175565242767, -0.22028794884681702, -0.02649330534040928, 0.00552228232845664, 0.01512536033987999, -0.015942800790071487, 0.029368074610829353, 0.0023122457787394524, 0.03815283626317978, -0.004305803216993809, 0.014398958534002304, 0.03647118806838989, 0.020264139398932457, 0.010816588997840881, -0.03157439082860947, -0.016648389399051666, 0.017695605754852295, 0.02927550859749317, -0.03743969276547432, 0.007411137688905001, -0.00170864665415138, 0.03608231991529465, -0.046160776168107986, -0.011656171642243862, -0.01192172896116972, -0.0024561425670981407, 0.014358081854879856, 0.06324692070484161, 0.02829747274518013, 0.048508062958717346, 0.00031200548983179033, 0.033465225249528885, 0.013267151080071926, -0.001026816200464964, -0.18352250754833221, 0.1019817367196083, -0.005260843317955732, 0.04990656301379204, -0.04089495912194252, 0.0014875223860144615, -0.015347539447247982, 0.052547525614500046, -0.027443788945674896, -0.020080186426639557, -0.01895647868514061, 0.05952988192439079, 0.02599472925066948, -0.03445255011320114, -0.010656037367880344, -0.01989407278597355, 0.05676031485199928, -0.031748607754707336, 0.003448218572884798, -0.005996124818921089, -0.0069727408699691296, -0.05301946774125099, 0.014937464147806168, 0.016700759530067444, -0.033381082117557526, 0.02472376637160778, -0.011096693575382233, 0.010539118200540543, 0.02894815430045128, 0.028351804241538048, 0.050985340029001236, 0.025778230279684067, -0.0885932520031929, -0.015522792004048824, 0.040930647403001785, 0.016393907368183136, -0.01064919214695692, 0.4197729825973511, -0.034067876636981964, -0.005350943189114332, -0.026882335543632507, 0.0838533565402031, -0.029828466475009918, -0.02346615679562092, -0.01911914348602295, -0.06232881918549538, 0.014456203207373619, -0.017756139859557152, -0.01887919381260872, -0.015274956822395325, 0.05365176871418953, -0.06468985229730606, 0.012354349717497826, -0.026900257915258408, 0.007706240750849247, 0.016128351911902428, 0.002523435978218913, 0.039212193340063095, 0.006553362123668194, -0.028523577377200127, 0.044963859021663666, 0.041076622903347015, 0.025532061234116554, -0.004995416849851608, 0.03751109167933464, 0.07760651409626007, 0.03710180148482323, 0.0009279440273530781, 0.06629417091608047, -0.03850981220602989, -0.07185628265142441, -0.017845753580331802, 0.0038298084400594234, -0.014393133111298084, 0.034972310066223145, -0.0230548232793808, 0.014541191048920155, -0.01492148544639349, -0.0344940721988678, -0.02962055616080761, 0.024031735956668854, 0.007714622188359499, -0.0584837906062603, 0.12585550546646118, 0.008584733121097088, -0.01667746715247631, -0.00726543040946126, -0.04779171943664551, -0.02036159299314022, 0.03724442794919014, 0.04276338219642639, -0.04469917342066765, -0.013012656010687351, 0.04509725421667099, 0.06721464544534683, -0.045965056866407394, -0.06231220066547394, -0.044193051755428314, -0.005772567354142666, -0.01212068647146225, -0.04861580580472946, 0.013924489729106426, 0.055611953139305115, -0.07065223902463913, -0.025791581720113754, 0.03949524089694023, 0.024630771949887276, -0.07901167124509811, 0.02060656249523163, -0.004330575466156006, -0.018552418798208237, 0.021818852052092552, 0.0806477963924408, 0.014081108383834362, 0.021357106044888496, 0.0002642855979502201, 0.04831103980541229, 0.0145473787561059, 0.005848299711942673, 0.0034701386466622353, -0.043598148971796036, 0.008690300397574902, -0.0222880020737648, -0.05147964507341385, -0.07410332560539246, 0.006291721016168594, -0.0021050269715487957, -0.019819896668195724, -0.005221252329647541, -0.04479379579424858, -0.06234730780124664, 0.06054637208580971, -0.05545526370406151, -0.05548112466931343, 0.04662241041660309, 0.014428223483264446, -0.003266230458393693, -0.06505756080150604, 0.0034531455021351576, -0.0042728339321911335, 0.04318917542695999, 0.04807894304394722, -0.030722102150321007, 0.007304130122065544, 0.03971926122903824, -0.07651578634977341, 0.06174119934439659, 0.021674195304512978, 0.00042607716750353575, 0.008996950462460518, 0.017849652096629143, -0.02470407448709011, -0.0241934135556221, 0.03925853967666626, 0.007931430824100971, -0.03627324849367142, -0.008172816596925259, 0.031658802181482315, 0.0034712697379291058, -0.029793597757816315, 0.028532490134239197, -0.3512004017829895, -0.012827612459659576, -0.004737464711070061, -0.013206370174884796, 0.024479083716869354, -0.030416887253522873, -0.04179942607879639, -0.014726822264492512, -0.02611817792057991, 0.10251987725496292, 0.05129614472389221, 0.016831694170832634, -0.023334719240665436, -0.10001254081726074, -0.007957017980515957, 0.03173244372010231, -0.003975126426666975, -0.029622437432408333, -0.03468761965632439, -0.016765620559453964, -0.017436398193240166, -0.02852003090083599, -0.01319388672709465, -0.05341809242963791, 0.04214225709438324, -0.008791384287178516, 0.13634608685970306, 0.00038690236397087574, 0.042923156172037125, -0.009765487164258957, 0.024169055745005608, -0.03160284832119942, 0.003282073885202408, -0.05315040051937103, 0.03654585778713226, -0.04316363111138344, -0.010003887116909027, 0.005560762714594603, -0.01618575118482113, -0.07116299122571945, -0.011090255342423916, 0.019267752766609192, -0.021418210119009018, -0.012518825940787792, -0.017362583428621292, 0.033528007566928864, 0.015307209454476833, 0.017110588029026985, -0.03245723620057106, 0.07071457803249359, 0.02072254568338394, -0.01332083623856306, 0.05505204573273659, 0.06463553756475449, 0.0280221626162529, -0.020133469253778458, -0.0719677209854126, 0.026351198554039, 0.0034535988233983517, -0.035790350288152695, 0.03139127790927887, 0.0247404295951128, 0.03651333227753639, -0.05531971901655197, -0.032619547098875046, 0.0027036324609071016, 0.01218100730329752, -0.0420212559401989, 0.012810314074158669, 0.03363551199436188, -0.01638227142393589, 0.08928920328617096, -0.0166902095079422, 0.027484240010380745, 0.04092295840382576, 0.04089987650513649, -0.07809023559093475, -0.013600897043943405, 0.0023900335654616356, 0.0013906594831496477, 0.02676275745034218, -0.0644320547580719, 0.061402998864650726, 0.014307871460914612, 0.05371400713920593, 0.00532327126711607, 0.010811823420226574, 0.0011585168540477753, 0.05027078092098236, 0.0193796269595623, 0.01702139526605606, -0.05733400210738182, -0.02651379257440567, -0.02849976159632206, 0.07349930703639984, -0.0008364829118363559, -0.2847326993942261, 0.038453731685876846, 0.05312848836183548, 0.0033833393827080727, -0.008022043853998184, 0.023283861577510834, -0.04060979187488556, -0.01627933979034424, -0.03248675540089607, -0.011347890831530094, 0.015922753140330315, 0.04312746226787567, 0.03287285566329956, -0.027602439746260643, 0.011958383023738861, -0.016456730663776398, 0.028585851192474365, -0.015131691470742226, 0.017906159162521362, 0.022326374426484108, 0.04180685430765152, -0.00025571693549863994, 0.11835627257823944, 0.01677634008228779, 0.004679068922996521, -0.024968890473246574, -0.01633957400918007, -0.028152871876955032, 0.09622792899608612, 0.03871813416481018, -0.008488038554787636, -0.001039380906149745, 0.046706415712833405, 0.026857078075408936, 0.019887905567884445, 0.0016745432512834668, -0.0487891286611557, 0.04725859314203262, 0.030450042337179184, -0.03127647191286087, -0.03959398716688156, 0.031060434877872467, -0.03914804384112358, 0.024786796420812607, 0.07371556758880615, 0.012650885619223118, 0.00444587180390954, -0.052939966320991516, -0.013638881035149097, -0.02291608601808548, -0.003541789948940277, -0.0015572335105389357, -0.020059825852513313, 0.002714580623432994, -0.013718144968152046, -0.002436312148347497, 0.05776221677660942, -0.009014790877699852, -0.0003712114703375846, -0.0016006105579435825, 0.024725794792175293, -0.043849147856235504, 0.08115347474813461, -0.008384698070585728, 0.0030732890591025352 ]
[ 0.00843081809580326, 0.01635255478322506, 0.031811486929655075, 0.040771760046482086, 0.005060188937932253, -0.004002996254712343, 0.017450327053666115, -0.012860612943768501, -0.01758844032883644, -0.055195655673742294, -0.027563052251935005, -0.025686360895633698, -0.01976732537150383, -0.03634147346019745, 0.008647052571177483, 0.016621997579932213, -0.0174386166036129, -0.029321854934096336, 0.053059279918670654, -0.010787628591060638, -0.03748640790581703, 0.03633305802941322, 0.007284296676516533, -0.00005354578388505615, -0.026768328621983528, 0.07958609610795975, -0.03349573537707329, 0.01492556557059288, 0.02356898784637451, -0.12624801695346832, -0.0416506752371788, 0.0024426074232906103, -0.035447895526885986, 0.01171361468732357, -0.0014972329372540116, -0.007323456462472677, -0.015717580914497375, 0.040811337530612946, 0.038454074412584305, 0.03566860035061836, -0.07296034693717957, 0.0028524543158710003, 0.03680054843425751, 0.0390208400785923, -0.05216209590435028, -0.02109723538160324, 0.006051346659660339, -0.00802799966186285, -0.05700284615159035, 0.026000233367085457, -0.04547908902168274, 0.011745601892471313, -0.010305945761501789, -0.010090140625834465, 0.05334949120879173, -0.03316611051559448, -0.006605766247957945, -0.021141424775123596, 0.011028149165213108, -0.0031262668780982494, -0.04016894847154617, -0.00415952131152153, 0.0015639712801203132, -0.02634352818131447, -0.012358392588794231, -0.027867691591382027, -0.07200402766466141, 0.0024449180345982313, 0.00515656266361475, 0.01941509358584881, -0.03958804905414581, 0.020523248240351677, -0.06354532390832901, -0.007761846762150526, -0.013280603103339672, 0.01990469917654991, 0.03685678914189339, -0.02844078466296196, 0.03894006460905075, -0.01833086647093296, -0.019779473543167114, 0.010155645199120045, 0.003052406944334507, 0.03308830037713051, -0.008654998615384102, -0.029403362423181534, -0.0035939610097557306, 0.014373842626810074, 0.020857766270637512, -0.05639011412858963, -0.0016879315953701735, -0.024007027968764305, 0.03601287305355072, 0.021687932312488556, -0.10124402493238449, -0.006581299006938934, 0.015479227527976036, -0.007515761535614729, 0.02193545736372471, 0.7967639565467834, 0.013083258643746376, -0.0009936278220266104, -0.03680659085512161, 0.02191944420337677, -0.031046787276864052, -0.041021328419446945, -0.013849221169948578, -0.001213973038829863, -0.012503757141530514, -0.0581398606300354, 0.002096998505294323, 0.02080972120165825, 0.026994086802005768, -0.008772150613367558, -0.005312620662152767, -0.0027337446808815002, 0.014277109876275063, 0.013390837237238884, 0.008468701504170895, 0.021793650463223457, 0.00161256967112422, 0.025912566110491753, 0.012184498831629753, -0.015063055790960789, -0.02967444248497486, -0.14333342015743256, 0.026026615872979164, -6.501734192162937e-33, 0.05568592622876167, -0.027402237057685852, 0.03166620060801506, -0.03013722598552704, 0.04132557287812233, -0.012536208145320415, 0.01346656121313572, -0.009503115899860859, 0.027901433408260345, -0.021560104563832283, -0.002520345151424408, -0.017923692241311073, 0.007767285220324993, -0.029009373858571053, 0.01575673744082451, -0.0016832469264045358, -0.01776777394115925, 0.037160780280828476, 0.02934194914996624, 0.022898614406585693, 0.04559257626533508, -0.030835382640361786, 0.047892067581415176, 0.034387219697237015, 0.011328003369271755, -0.021467262879014015, 0.02442978322505951, 0.05213407427072525, 0.025563854724168777, -0.05165708065032959, -0.0063101681880652905, 0.016154130920767784, -0.006124148610979319, -0.01895875483751297, 0.028532156720757484, -0.043265990912914276, -0.006051883567124605, 0.02485252171754837, -0.012324855662882328, 0.017354749143123627, -0.03142467886209488, -0.011925973929464817, -0.024930985644459724, -0.029883679002523422, 0.00921271089464426, 0.019313130527734756, 0.03989122807979584, 0.03389884904026985, -0.012747419066727161, 0.001075390144251287, -0.019957585260272026, 0.00039242993807420135, 0.0271664597094059, -0.00975374411791563, -0.03279273584485054, 0.04431479796767235, 0.023349883034825325, 0.01336166076362133, 0.03664165735244751, -0.010192192159593105, -0.007400257047265768, -0.024824155494570732, 0.016688458621501923, -0.03640035539865494, -0.011736673302948475, 0.04002757370471954, 0.03379411995410919, -0.02448556013405323, 0.04005463793873787, -0.0010778454598039389, -0.018592212349176407, -0.023461146280169487, -0.009051980450749397, -0.03730469569563866, 0.054761823266744614, -0.018958372995257378, 0.006746701896190643, 0.005175992846488953, 0.05777503550052643, 0.03848861902952194, 0.05364520475268364, -0.0031433217227458954, 0.016231544315814972, -0.032815463840961456, -0.021337639540433884, -0.06740035861730576, -0.0007897599134594202, 0.03364713490009308, -0.029942398890852928, -0.00580969825387001, 0.005202854983508587, 0.005652854684740305, -0.017626887187361717, -0.031032254919409752, 0.04512347653508186, 5.9891062485571224e-33, 0.024291109293699265, 0.0012000217102468014, -0.005517497658729553, 0.003166210139170289, 0.059590358287096024, -0.05207580700516701, 0.0000405819846491795, 0.04174813628196716, -0.0025216732174158096, 0.043735917657613754, 0.02843633107841015, -0.02819628082215786, -0.054988764226436615, 0.04242119565606117, 0.036322422325611115, 0.0012632864527404308, 0.0293485876172781, 0.011067679151892662, -0.06981103122234344, 0.020138870924711227, -0.010281914845108986, 0.01524464413523674, -0.00013850675895810127, 0.006817220710217953, 0.042126983404159546, 0.05158715322613716, -0.006211553234606981, -0.001383748254738748, 0.01678759604692459, 0.015365926548838615, 0.009623480029404163, -0.016498439013957977, -0.01654645800590515, -0.051905978471040726, -0.010268460027873516, 0.05793805420398712, -0.003786531277000904, -0.02911405824124813, 0.003295293776318431, -0.024499373510479927, 0.014162692241370678, 0.012780384160578251, 0.016655536368489265, 0.03560659661889076, 0.011365263722836971, 0.04803077131509781, -0.002873489633202553, 0.022739071398973465, -0.03281905874609947, -0.006721242796629667, -0.026714298874139786, 0.026135355234146118, -0.010209181345999241, -0.009464203380048275, 0.030191173776984215, -0.006285665091127157, -0.004504450596868992, 0.00841730646789074, -0.06309690326452255, 0.03198862448334694, -0.061962421983480453, -0.03580382093787193, -0.025942739099264145, 0.012310467660427094, -0.04965588450431824, -0.026233995333313942, -0.03766131401062012, -0.02491542138159275, 0.01266750879585743, 0.003478093771263957, -0.014611946418881416, -0.021727828308939934, -0.0002956192474812269, 0.02362324297428131, -0.020359229296445847, -0.005265394691377878, -0.029381385073065758, 0.01701544225215912, -0.03411020338535309, 0.038968540728092194, 0.011525740846991539, -0.0032783718779683113, 0.01462436094880104, 0.043003056198358536, -0.008538475260138512, -0.02188826911151409, -0.038965854793787, 0.004524618852883577, 0.027069998905062675, -0.0031368948984891176, -0.009019465185701847, -0.06951220333576202, -0.03442542999982834, 0.050128333270549774, 0.027559949085116386, -1.2209741662161377e-8, -0.017702987417578697, 0.010962927713990211, 0.0047630262561142445, 0.02082231268286705, 0.02602461911737919, -0.018891194835305214, -0.005428872536867857, -0.02765648066997528, 0.012431206181645393, 0.01596088521182537, 0.06626544147729874, 0.0035635202657431364, 0.002341154497116804, 0.03290658816695213, -0.034368567168712616, -0.012001747265458107, -0.015978224575519562, 0.007639097515493631, 0.03578469529747963, -0.0017720188479870558, 0.03248939663171768, -0.02299213968217373, 0.03174654766917229, 0.0076094213873147964, 0.045869145542383194, 0.022428059950470924, 0.007474010344594717, -0.061923518776893616, 0.04296969994902611, 0.010513396933674812, 0.02409186400473118, -0.026658765971660614, -0.004751334432512522, -0.010731986723840237, -0.024775303900241852, -0.08562380820512772, -0.0006534380954690278, 0.01843303069472313, -0.027119874954223633, 0.015749918296933174, -0.0048069036565721035, -0.01821361668407917, -0.03721737489104271, -0.012569474056363106, -0.03138916566967964, 0.043775882571935654, -0.06485427916049957, 0.015489975921809673, -0.004620192106813192, -0.04510200396180153, 0.010973076336085796, -0.016378015279769897, 0.02207348309457302, 0.0502176359295845, 0.039724450558423996, 0.05030836537480354, -0.005354276858270168, -0.027937378734350204, -0.04386560246348381, -0.037167422473430634, -0.028860680758953094, 0.01627219095826149, -0.014769680798053741, -0.04533610865473747 ]
r-data-tabledplyrlubridate-error-in-wdaydate-label-true-abbr-false-unused-arguments-label-true-abbr-false
https://markhneedham.com/blog/2014/12/11/r-data-tabledplyrlubridate-error-in-wdaydate-label-true-abbr-false-unused-arguments-label-true-abbr-false
false
2014-12-28 04:28:25
Neo4j 2.1.6 - Cypher: FOREACH slowness
[ "neo4j", "cypher" ]
[ "neo4j" ]
A common problem that people have when using Neo4j for social network applications is updating a person with their newly imported friends. We'll have an array of friends that we want to connect to a single Person node. Assuming the following schema... [source,cypher] ---- $ schema Indexes ON :Person(id) ONLINE No constraints ---- ...a simplified version would look like this: [source,cypher] ---- WITH range (2,1002) AS friends MERGE (p:Person {id: 1}) FOREACH(f IN friends | MERGE (friend:Person {id: f}) MERGE (friend)-[:FRIENDS]->p); ---- If we execute that on an empty database we'll see something like this: [source,text] ---- +-------------------+ | No data returned. | +-------------------+ Nodes created: 1002 Relationships created: 1001 Properties set: 1002 Labels added: 1002 19173 ms ---- This took much longer than we'd expect so let's have a look at the PROFILE output: [source,text] ---- EmptyResult | +UpdateGraph(0) | +Eager | +UpdateGraph(1) | +Extract | +Null +----------------+------+---------+-------------+--------------------------------------+ | Operator | Rows | DbHits | Identifiers | Other | +----------------+------+---------+-------------+--------------------------------------+ | EmptyResult | 0 | 0 | | | | UpdateGraph(0) | 1 | 3015012 | | Foreach | | Eager | 1 | 0 | | | | UpdateGraph(1) | 1 | 5 | p, p | MergeNode; { AUTOINT2}; :Person(id) | | Extract | 1 | 0 | | friends | | Null | ? | ? | | | +----------------+------+---------+-------------+--------------------------------------+ ---- The <cite>DbHits</cite> value on the 2nd row seems suspiciously high suggesting that FOREACH might not be making use of the <cite>Person#id</cite> index and is instead scanning all <cite>Person</cite> nodes each time. I'm not sure how to drill into that further but an alternative approach is to try out the same query but using UNWIND instead and checking the profile output of that: [source,cypher] WITH range (2,1002) AS friends MERGE (p:Person {id: 1}) WITH p, friends UNWIND friends AS f MERGE (friend:Person {id: f}) MERGE (friend)-[:FRIENDS]->p; ---- [source,text] ---- +-------------------+ | No data returned. | +-------------------+ Nodes created: 1002 Relationships created: 1001 Properties set: 1002 Labels added: 1002 343 ms ---- [source,text] ---- EmptyResult | +UpdateGraph(0) | +Eager(0) | +UpdateGraph(1) | +UNWIND | +Eager(1) | +UpdateGraph(2) | +Extract | +Null +----------------+------+--------+-------------------------+--------------------------------------+ | Operator | Rows | DbHits | Identifiers | Other | +----------------+------+--------+-------------------------+--------------------------------------+ | EmptyResult | 0 | 0 | | | | UpdateGraph(0) | 1001 | 0 | friend, p, UNNAMED136 | MergePattern | | Eager(0) | 1001 | 0 | | | | UpdateGraph(1) | 1001 | 5005 | friend, friend | MergeNode; f; :Person(id) | | UNWIND | 1001 | 0 | | | | Eager(1) | 1 | 0 | | | | UpdateGraph(2) | 1 | 5 | p, p | MergeNode; { AUTOINT2}; :Person(id) | | Extract | 1 | 0 | | friends | | Null | ? | ? | | | +----------------+------+--------+-------------------------+--------------------------------------+ ---- That's much quicker and doesn't touch as many nodes as FOREACH was. I expect the index issue will be sorted out in future but until then UNWIND is our friend.
null
null
[ 0.0003396243555471301, -0.009414203464984894, -0.010524274781346321, 0.05342445895075798, 0.08687656372785568, -0.009042820893228054, 0.0209011472761631, 0.016650546342134476, 0.01651763543486595, -0.027384597808122635, -0.01507016085088253, -0.004441933240741491, -0.08854879438877106, 0.002636080142110586, -0.01328368205577135, 0.06945759057998657, 0.06380194425582886, 0.012844658456742764, -0.00522387633100152, -0.011445530690252781, -0.005273712798953056, 0.04487632215023041, -0.007395337801426649, 0.04541721194982529, 0.04244290292263031, 0.01012130081653595, 0.005690337158739567, 0.0028271262999624014, -0.05261320248246193, 0.010775844566524029, 0.04272929206490517, -0.02012506127357483, 0.020358003675937653, -0.03675879165530205, 0.01926484890282154, -0.014279861934483051, -0.03277352824807167, 0.01512852218002081, -0.036424264311790466, -0.003069248516112566, -0.0524185411632061, 0.035479918122291565, -0.010915516875684261, 0.021051371470093727, -0.033427052199840546, -0.00910828448832035, -0.0761057659983635, 0.04568053409457207, 0.0019528918201103806, 0.01200462132692337, -0.08774202316999435, 0.006629907991737127, -0.010705072432756424, 0.016764912754297256, 0.004656026139855385, 0.04188114032149315, 0.007523532956838608, -0.07438310235738754, 0.052782706916332245, -0.016661757603287697, 0.00855350960046053, -0.009802221320569515, 0.0012760561658069491, 0.022169725969433784, 0.0019702762365341187, -0.04083973541855812, 0.01055961288511753, 0.055108074098825455, -0.036472585052251816, -0.008968006819486618, -0.00030774209881201386, 0.013867671601474285, -0.03102256916463375, -0.024951152503490448, -0.01932377927005291, -0.033893462270498276, -0.0004470397543627769, 0.04772985726594925, 0.04244044050574303, 0.05333360657095909, -0.016218062490224838, 0.011882052756845951, 0.0025585051625967026, 0.008781908079981804, 0.01599046215415001, -0.03680850937962532, -0.02452348917722702, -0.029565345495939255, -0.06110528111457825, 0.03389519453048706, 0.008351759985089302, -0.05574823543429375, -0.0017831550212576985, -0.003977449610829353, -0.03593408688902855, 0.007506519556045532, -0.0021461702417582273, 0.014711576513946056, 0.016853388398885727, 0.0024091177619993687, -0.029702289029955864, -0.011231650598347187, 0.0006306438008323312, -0.012494532391428947, -0.07284840941429138, -0.023739587515592575, -0.03775341436266899, -0.017009101808071136, -0.0063933576457202435, -0.022547779604792595, -0.04100707545876503, 0.0013234576908871531, 0.0036354530602693558, 0.03637031465768814, -0.08345546573400497, 0.05512070283293724, 0.009222697466611862, 0.00768238166347146, -0.015684466809034348, -0.002043773652985692, 0.050900641828775406, 0.016560092568397522, 0.020179925486445427, 0.07405686378479004, -0.008164559490978718, 0.052181143313646317, -0.0005749174160882831, 0.03854595497250557, -0.02213168703019619, -0.07957492023706436, -0.015210803598165512, 0.04956202208995819, 0.01836843602359295, -0.0020611474756151438, -0.00539406668394804, -0.03953661769628525, -0.022737903520464897, 0.03757680952548981, 0.03520437702536583, 0.012936323881149292, -0.004563835449516773, -0.04961475357413292, 0.04890028387308121, -0.003209698246791959, 0.049699604511260986, 0.011788798496127129, -0.010221662931144238, -0.05215156450867653, -0.008588217198848724, 0.013208290562033653, 0.024344585835933685, 0.029021238908171654, 0.0539897158741951, -0.039774514734745026, 0.013866392895579338, 0.13940513134002686, 0.00786310900002718, -0.011054297909140587, -0.013764701783657074, -0.004620919469743967, 0.01830228790640831, 0.014434932731091976, 0.014786976389586926, 0.03685512766242027, 0.02217685617506504, -0.016254859045147896, -0.010286087170243263, 0.06688378751277924, -0.006472207140177488, 0.012032346799969673, -0.02097952924668789, -0.0471908263862133, 0.046331316232681274, -0.0372551754117012, -0.013125067576766014, 0.056265223771333694, 0.06771938502788544, 0.006867285817861557, 0.005348627455532551, 0.006002632901072502, -0.06978044658899307, 0.041031576693058014, 0.0018999663880094886, -0.030142970383167267, -0.014419985935091972, 0.030502377077937126, 0.07917141914367676, 0.04384829103946686, 0.011422001756727695, 0.01947144791483879, -0.0865509957075119, -0.05227724090218544, -0.016638828441500664, -0.015775546431541443, 0.06685168296098709, -0.049654945731163025, 0.00232519768178463, 0.04458092898130417, -0.003084794385358691, 0.015858998522162437, 0.023657258599996567, -0.0038763342890888453, 0.045733384788036346, -0.020920280367136, -0.06526374071836472, 0.04354118928313255, 0.006657910067588091, -0.061501555144786835, -0.05735548958182335, 0.026472367346286774, -0.02470187284052372, -0.017292445525527, 0.018212614580988884, -0.02342468500137329, 0.044720206409692764, 0.0333922877907753, 0.03466708958148956, -0.02109130471944809, 0.018222790211439133, -0.03647903352975845, 0.034175194799900055, 0.017070848494768143, -0.02896171621978283, -0.011241740547120571, -0.007432482670992613, 0.11365168541669846, 0.05761401727795601, -0.011633099056780338, -0.056639544665813446, 0.04312671720981598, 0.020715761929750443, -0.01584964245557785, 0.03831184655427933, -0.040434010326862335, 0.0031132472213357687, -0.019689351320266724, -0.026849761605262756, -0.01215829886496067, 0.0080327233299613, -0.026993807405233383, 0.013258236460387707, 0.052193284034729004, -0.015615569427609444, 0.05769027769565582, 0.03909279778599739, -0.009709259495139122, 0.0003447273629717529, -0.0601019524037838, -0.02834148332476616, 0.051479220390319824, 0.03352025896310806, -0.01883561909198761, 0.0626695305109024, -0.03516291826963425, 0.004590395838022232, -0.02474258653819561, -0.000822931295260787, 0.03715973719954491, 0.03496921434998512, 0.049053821712732315, -0.023655995726585388, 0.022727424278855324, -0.027417872101068497, 0.0019597436767071486, -0.02514638379216194, -0.05965043231844902, -0.01963193528354168, -0.018001195043325424, 0.01439754944294691, 0.012446482665836811, 0.03479708358645439, -0.034715693444013596, 0.011799991130828857, -0.010457760654389858, 0.024283332750201225, 0.006886784918606281, 0.03212284296751022, -0.008992371149361134, 0.011787153780460358, -0.0540369413793087, -0.03473946079611778, 0.05675121024250984, -0.050471752882003784, -0.06352241337299347, -0.00941197108477354, -0.05078535154461861, 0.0491892546415329, -0.042340051382780075, -0.04328738525509834, -0.0009832702344283462, 0.03490769863128662, 0.043748755007982254, 0.006189181935042143, 0.0009704705444164574, 0.07874125987291336, 0.011945047415792942, 0.03632394224405289, 0.00046525924699380994, 0.0022057278547436, 0.05996903404593468, -0.012464570812880993, 0.039757899940013885, 0.03294260799884796, -0.034077469259500504, 0.0024105540942400694, -0.03246592357754707, 0.01829041913151741, -0.009850802831351757, -0.25558215379714966, 0.049450796097517014, -0.041960347443819046, -0.06906850636005402, 0.020651398226618767, -0.047500234097242355, 0.028562119230628014, -0.019235163927078247, -0.03390934318304062, 0.03513339161872864, -0.002734922803938389, -0.031351134181022644, 0.00046992962597869337, 0.057648759335279465, 0.015093998983502388, 0.019749101251363754, -0.034152351319789886, -0.0700252428650856, -0.007713263854384422, 0.042568668723106384, -0.003829851746559143, -0.054892148822546005, -0.013223591260612011, 0.0238877534866333, 0.025654902681708336, 0.03482469171285629, -0.08584707975387573, 0.003292981768026948, -0.05307760462164879, -0.031737297773361206, -0.007923007011413574, -0.026530439034104347, 0.016613228246569633, 0.009709677658975124, -0.03039076365530491, -0.025525270029902458, 0.04060203209519386, 0.004225325305014849, -0.007286970037966967, 0.014012956991791725, -0.05040230229496956, -0.03794334828853607, -0.00800236128270626, -0.006207223981618881, 0.09477820992469788, 0.011049005202949047, -0.07028790563344955, -0.008955796249210835, -0.010662311688065529, 0.05037108436226845, -0.02686060592532158, -0.043639954179525375, 0.00015301222447305918, 0.026582052931189537, -0.009540238417685032, -0.03396523371338844, -0.005415620747953653, -0.003683582181110978, -0.06606468558311462, -0.018215082585811615, -0.012497889809310436, -0.046905625611543655, 0.019889604300260544, -0.040276650339365005, -0.005489894654601812, -0.045004379004240036, -0.08559814095497131, -0.03698974847793579, 0.05755562335252762, 0.023234844207763672, -0.014388622716069221, 0.03162452578544617, -0.017460860311985016, -0.11555389314889908, -0.06477594375610352, -0.030504899099469185, -0.015516235493123531, 0.002429878106340766, -0.03022904321551323, 0.07199329137802124, -0.03558021038770676, -0.04699317365884781, -0.0013756973203271627, 0.009316928684711456, 0.036654844880104065, 0.015572044998407364, -0.0021284553222358227, -0.0065024434588849545, -0.04319855943322182, 0.013610213994979858, 0.06402068585157394, -0.006631837692111731, -0.0016309061320498586, -0.0057217576541006565, 0.006390778813511133, 0.04055565595626831, 0.019150931388139725, -0.0012165602529421449, 0.022640004754066467, 0.01588115282356739, 0.06518101692199707, 0.0005784233217127621, 0.017572209239006042, -0.01249433308839798, -0.03301798552274704, 0.00006561428745044395, -0.06367725133895874, 0.02488595061004162, 0.0027948447968810797, 0.044842928647994995, -0.0020108954049646854, -0.003175416262820363, 0.02263050526380539, -0.05508964881300926, -0.0386928915977478, -0.0019229750614613295, 0.00831308402121067, 0.034083396196365356, 0.024048393592238426, -0.010440251789987087, -0.06077052652835846, 0.04131653159856796, 0.05399685353040695, 0.006318358238786459, -0.07371755689382553, -0.03585190698504448, -0.02617095597088337, -0.03436565026640892, -0.009376798756420612, 0.02071029506623745, -0.004072336480021477, 0.03309013694524765, 0.0038563923444598913, -0.021651336923241615, 0.059210389852523804, -0.008233990520238876, -0.014143750071525574, -0.036168407648801804, -0.012960921041667461, 0.0031670881435275078, -0.021546903997659683, 0.00003335129076731391, -0.00998552143573761, 0.05058286711573601, 0.023939743638038635, 0.010439503937959671, 0.02263525500893593, -0.00039946663309819996, 0.007070330902934074, 0.002467135200276971, -0.00996999628841877, -0.026203453540802002, 0.01003857422620058, -0.03687647730112076, -0.026657329872250557, -0.007965696975588799, 0.05097552761435509, -0.053182512521743774, -0.010659021325409412, -0.03526376932859421, 0.005742102861404419, -0.05651359260082245, 0.02101028896868229, -0.012336034327745438, 0.001228556502610445, 0.05479440838098526, -0.019742611795663834, 0.018160302191972733, -0.04284760355949402, -0.015378698706626892, 0.004206082317978144, -0.00013334353570826352, -0.06199020519852638, -0.006628201808780432, 0.018344644457101822, 0.0003180830099154264, 0.018720833584666252, 0.032353539019823074, 0.02145380713045597, 0.021748853847384453, -0.016008896753191948, 0.0016753787640482187, 0.011809013783931732, 0.010372113436460495, 0.06171945482492447, 0.028487250208854675, 0.0006721586687490344, 0.006968548521399498, -0.022941775619983673, -0.03708717226982117, 0.013178056105971336, 0.014338160865008831, -0.010456462390720844, 0.02343558333814144, -0.02536989562213421, -0.034480590373277664, 0.04156580939888954, 0.015958147123456, 0.0010963425738736987, 0.04301901161670685, 0.0017022861866280437, 0.0028633694164454937, -0.017186705023050308, 0.025842199102044106, 0.08268799632787704, -0.050421521067619324, -0.008426503278315067, -0.01773640140891075, -0.024525972083210945, 0.0026971115730702877, 0.025593580678105354, -0.05890461057424545, -0.028886863961815834, -0.014416792429983616, 0.006142855621874332, -0.005988866090774536, -0.0426458902657032, -0.02740890346467495, -0.015897998586297035, -0.010817504487931728, 0.023661766201257706, 0.0018332679755985737, 0.014509795233607292, -0.02625880017876625, -0.010322521440684795, 0.04096420109272003, -0.03353382274508476, 0.00809659156948328, 0.008725016377866268, -0.018116867169737816, 0.030895061790943146, -0.034835655242204666, 0.027306070551276207, 0.017341280356049538, -0.01300384197384119, 0.0019270904595032334, -0.06639710813760757, 0.01858004927635193, 0.013593857176601887, 0.028675708919763565, 0.006453373935073614, -0.0004008572141174227, -0.01837625540792942, -0.010158286429941654, -0.020481210201978683, -0.006843007169663906, 0.0017761655617505312, -0.04025466740131378, -0.006258641369640827, 0.013877762481570244, -0.006916353944689035, 0.034059181809425354, -0.01835891418159008, -0.0333702526986599, 0.07296445965766907, -0.03983980789780617, -0.0717918872833252, 0.007529927883297205, -0.06129050627350807, 0.0011694059940055013, 0.00799974612891674, 0.02359842322766781, -0.04047681763768196, 0.05816991999745369, 0.07122990489006042, 0.025564206764101982, 0.04867546632885933, -0.01896504871547222, 0.04327508434653282, -0.004807435441762209, -0.02782689966261387, -0.06344868242740631, -0.024428023025393486, 0.044820789247751236, 0.004488945938646793, 0.012623162008821964, -0.0326666496694088, -0.00489001302048564, -0.0019124483224004507, -0.044346701353788376, -0.024265293031930923, 0.044812723994255066, -0.029612872749567032, 0.026518160477280617, 0.010340414941310883, -0.046151284128427505, -0.0023545220028609037, 0.030104979872703552, -0.03369511291384697, -0.013752967119216919, -0.028046531602740288, 0.05420679971575737, -0.02352348528802395, 0.04663509875535965, -0.015201876871287823, -0.021639306098222733, 0.05503816157579422, 0.037100378423929214, 0.04842359200119972, 0.057075146585702896, -0.028765251860022545, 0.03280460089445114, 0.026424590498209, -0.012054244987666607, 0.004866214003413916, 0.03928337246179581, -0.014514883980154991, -0.037594299763441086, 0.03772566840052605, 0.006617388688027859, -0.019603589549660683, -0.04912985488772392, 0.07882566004991531, 0.02766191028058529, -0.04560491815209389, -0.045436497777700424, 0.028506973758339882, -0.03737740218639374, -0.0065701925195753574, -0.04097651690244675, 0.005216209217905998, -0.056740276515483856, 0.05075069144368172, -0.020808296278119087, 0.0127585893496871, 0.06046963110566139, -0.014443225227296352, 0.013335078954696655, -0.01263243518769741, 0.09040074795484543, 0.1089361235499382, 0.04419303312897682, 0.019282301887869835, 0.07206538319587708, 0.01252792775630951, -0.04804856702685356, -0.014748349785804749, -0.02166629582643509, -0.01062660664319992, 0.02159879170358181, 0.006858651526272297, 0.06680427491664886, -0.019858036190271378, 0.06859161704778671, -0.012677985243499279, -0.006779306568205357, 0.00014789569831918925, -0.005402447655797005, 0.04638725519180298, 0.06040084734559059, 0.021480053663253784, 0.06161944195628166, -0.03250015154480934, -0.029867257922887802, 0.002265246817842126, -0.015194379724562168, -0.008564320392906666, 0.03555948659777641, -0.03445440158247948, 0.015801580622792244, 0.029563982039690018, 0.05115553364157677, 0.0918060839176178, -0.03882087022066116, -0.024325547739863396, -0.018007950857281685, -0.0018405235605314374, -0.00505923293530941, -0.0034889779053628445, 0.0001503402745584026, -0.04180922359228134, -0.00756513886153698, -0.02878919616341591, -0.026952287182211876, -0.017427649348974228, -0.02177594229578972, 0.007708793506026268, 0.0030945129692554474, -0.014711054973304272, -0.008696398697793484, 0.002024945802986622, -0.04669466242194176, -0.039011355489492416, -0.04615915194153786, -0.071962371468544, -0.06749164313077927, 0.01370583288371563, -0.016024205833673477, 0.008970016613602638, -0.011425185948610306, 0.012634760700166225, -0.031702883541584015, 0.0022665744181722403, 0.0649971067905426, -0.02215929515659809, 0.012525029480457306, -0.0013113046297803521, 0.007242573890835047, 0.04063308984041214, 0.014824716374278069, 0.044138867408037186, 0.014762756414711475, 0.022229939699172974, 0.008341875858604908, 0.016178328543901443, 0.05074846372008324, 0.004769175313413143, -0.018192045390605927, -0.09900899231433868, -0.007464492693543434, 0.021911175921559334, -0.04227815940976143, -0.0774598941206932, 0.008885359391570091, 0.0431804433465004, 0.015784021466970444, 0.024674469605088234, -0.011539452709257603, -0.02947947382926941, -0.023373305797576904, 0.021622460335493088, -0.0031328967306762934, 0.006826669443398714, 0.02858015149831772, -0.039067767560482025, 0.08043871074914932, 0.027513595297932625, -0.0392562597990036, -0.01929270662367344, -0.0034721128176897764, 0.0019172871252521873, 0.02691526710987091, -0.029763013124465942, -0.029706163331866264, -0.04136990010738373, -0.09394199401140213, -0.04091129079461098, 0.0020583553705364466, -0.029352618381381035, -0.018938660621643066, -0.005489462520927191, 0.022006364539265633, -0.03007998876273632, 0.04973089322447777, -0.04575720801949501, 0.05166241526603699, -0.041053708642721176, -0.02014242485165596, -0.04110480472445488, -0.0012961534084752202, -0.013673093169927597, 0.0028491804841905832, 0.01985071413218975, -0.03747544810175896, 0.0037512534763664007, -0.02264164760708809, 0.02871556207537651, 0.005748361349105835, 0.012091228738427162, 0.026287266984581947 ]
[ -0.058890774846076965, -0.026094814762473106, -0.034307435154914856, -0.014830408617854118, 0.03803485631942749, -0.032911088317632675, 0.002112249145284295, 0.006733258720487356, 0.021672436967492104, -0.015806617215275764, 0.06713507324457169, -0.022600840777158737, 0.02933197282254696, -0.009618625044822693, 0.0494084395468235, 0.025744305923581123, -0.02006581425666809, -0.0662510097026825, -0.06658236682415009, 0.049852725118398666, -0.03848538547754288, -0.04926217347383499, -0.019332822412252426, -0.023539483547210693, 0.005762962158769369, 0.052643757313489914, 0.03188686445355415, -0.037933479994535446, -0.024156244471669197, -0.2007966935634613, 0.0024046478793025017, 0.0428016372025013, -0.002462470903992653, 0.016045408323407173, 0.03503236919641495, 0.03597453609108925, 0.06301312893629074, -0.014680434949696064, 0.02926347590982914, 0.04116234555840492, 0.033627163618803024, 0.024264870211482048, -0.05932370200753212, -0.03877074643969536, 0.036321256309747696, 0.021987110376358032, -0.02556798793375492, -0.0029335373546928167, -0.026385825127363205, -0.0024481527507305145, -0.028332052752375603, -0.027408521622419357, -0.013053442351520061, 0.030335882678627968, 0.021312491968274117, 0.05812001973390579, 0.04969872534275055, 0.05110159516334534, 0.017754625529050827, 0.07216820120811462, 0.031177284196019173, 0.0281355082988739, -0.10870571434497833, 0.05112721771001816, 0.005961814429610968, 0.010219324380159378, -0.0568147748708725, -0.015373134054243565, -0.02418457716703415, 0.08279982209205627, 0.04371460899710655, 0.01581178791821003, -0.01655762270092964, 0.061710938811302185, 0.00918503012508154, 0.027684969827532768, -0.0155274523422122, 0.03976497799158096, 0.030609337612986565, 0.002939202357083559, -0.06717894971370697, -0.010961443185806274, -0.030477195978164673, -0.027464093640446663, -0.036750201135873795, 0.0462273545563221, -0.00021072375238873065, 0.026789920404553413, -0.043559327721595764, 0.0391138531267643, 0.00006443180609494448, 0.03167276829481125, 0.06214413046836853, 0.02072766423225403, -0.09265785664319992, -0.01822448894381523, -0.007228393107652664, 0.011117163114249706, -0.02227601781487465, 0.39725273847579956, -0.002887374721467495, 0.013741583563387394, 0.06413134932518005, 0.053499531000852585, -0.024293959140777588, -0.0032528534065932035, 0.0009115093853324652, -0.06866486370563507, 0.04536737501621246, -0.010866038501262665, -0.03637062758207321, -0.03702026605606079, 0.02930707298219204, -0.09816591441631317, 0.02520659938454628, 0.028653528541326523, 0.059204816818237305, 0.03651909530162811, -0.0447186715900898, 0.005622903350740671, -0.002363061998039484, 0.02397819794714451, 0.05113077908754349, 0.031863145530223846, 0.022122658789157867, 0.025405090302228928, 0.02218332700431347, 0.032904818654060364, 0.021739663556218147, 0.04383665323257446, 0.0443466417491436, 0.04432438313961029, -0.06072642654180527, 0.017689870670437813, -0.03717563673853874, -0.003998602274805307, -0.001684659975580871, -0.041704773902893066, -0.04614590108394623, 0.009734490886330605, -0.0024696991313248873, -0.030835742130875587, 0.05252756550908089, 0.01162454579025507, -0.018704382702708244, 0.16197989881038666, -0.0042174337431788445, -0.016926217824220657, -0.027096174657344818, -0.02465236186981201, -0.02551419846713543, 0.038356661796569824, -0.023164594545960426, -0.06373346596956253, -0.016139714047312737, 0.0010525967227295041, 0.08257658779621124, -0.029158731922507286, -0.10884743183851242, 0.026980480179190636, 0.001983811380341649, -0.027728712186217308, -0.04158641770482063, 0.06637544184923172, 0.06763830035924911, -0.11470110714435577, -0.001458824030123651, 0.020885519683361053, -0.0026364277582615614, -0.06734032183885574, 0.009365547448396683, 0.010423150844871998, -0.04289992153644562, -0.03306041285395622, 0.06040691211819649, -0.007438962813466787, -0.025829730555415154, -0.039799097925424576, 0.020449258387088776, -0.008977293036878109, -0.03986640274524689, 0.01827208139002323, -0.0599488839507103, 0.0039445944130420685, -0.08734847605228424, -0.06877465546131134, -0.08334633708000183, 0.025110911577939987, -0.02364204078912735, -0.03578702360391617, -0.023433111608028412, 0.014569295570254326, -0.059977903962135315, 0.07840558141469955, -0.04630744084715843, -0.037963930517435074, -0.02722018025815487, -0.010653519071638584, -0.03695661947131157, -0.030263500288128853, 0.0062721483409404755, 0.04356899484992027, -0.017184318974614143, -0.004485489800572395, -0.06015239283442497, 0.02235625870525837, 0.05798276886343956, -0.04573357477784157, 0.07460702955722809, 0.02372964657843113, -0.035558365285396576, 0.010069861076772213, -0.027632998302578926, 0.028584850952029228, -0.0006599483895115554, 0.004720811732113361, -0.0003831801877822727, -0.0017532111378386617, 0.0430225133895874, 0.05955692008137703, -0.019209397956728935, -0.008631732314825058, 0.018320929259061813, -0.3366352915763855, -0.04601408913731575, 0.0005374327301979065, -0.001256846822798252, -0.008452844806015491, -0.019568830728530884, 0.013305550441145897, -0.02281970903277397, 0.013061895966529846, 0.034366242587566376, 0.07641527056694031, -0.0045903692953288555, -0.01569855585694313, -0.029734663665294647, 0.01467202790081501, 0.03442045673727989, 0.015543614514172077, 0.027093036100268364, -0.013816340826451778, -0.010630971752107143, -0.0321185328066349, -0.028936099261045456, -0.017943283542990685, -0.05110877379775047, -0.0009181509958580136, -0.0070926351472735405, 0.10856050252914429, 0.013100992888212204, 0.0003223918902222067, -0.03548533096909523, 0.04527568072080612, 0.01622471772134304, -0.043423812836408615, -0.06631998717784882, 0.020454518496990204, -0.010762099176645279, 0.032604217529296875, -0.02579544484615326, -0.01789907179772854, -0.00770453130826354, -0.062354594469070435, -0.025834327563643456, -0.03381175920367241, -0.06474520266056061, -0.0237004105001688, 0.018700968474149704, -0.02443663962185383, -0.0160816740244627, 0.005009972490370274, 0.062310393899679184, 0.002915005898103118, 0.04078613594174385, 0.028600098565220833, 0.0201900452375412, 0.027073577046394348, -0.030509144067764282, -0.06170252710580826, -0.012218963354825974, 0.013599789701402187, 0.0351286455988884, 0.006209464743733406, 0.04710536450147629, 0.016452135518193245, -0.10341466218233109, 0.035654954612255096, -0.010837988927960396, -0.025080624967813492, 0.005524584092199802, 0.013909080065786839, -0.017547305673360825, -0.02699432522058487, 0.11341866850852966, 0.02435065619647503, 0.033171992748975754, 0.0330655500292778, 0.023315567523241043, -0.03913456201553345, -0.028054291382431984, 0.024982448667287827, 0.01666431687772274, 0.04284582659602165, -0.049703117460012436, 0.07154354453086853, -0.017490072175860405, -0.04425559192895889, 0.039659321308135986, 0.019840825349092484, -0.03800399973988533, 0.044750507920980453, 0.010043551214039326, -0.01975690759718418, -0.009009077213704586, -0.015598825179040432, -0.06600769609212875, 0.06300964206457138, -0.060089390724897385, -0.2869863510131836, 0.025221040472388268, 0.0064097922295331955, 0.041143108159303665, 0.006386328022927046, 0.014693914912641048, 0.026446176692843437, -0.001877723028883338, -0.008768858388066292, -0.03443603590130806, 0.038212358951568604, 0.034938886761665344, 0.022315120324492455, -0.0016605507116764784, -0.0014588094782084227, 0.024729425087571144, 0.019862202927470207, 0.010795059613883495, 0.020819352939724922, -0.008119111880660057, 0.0335591658949852, -0.045089107006788254, 0.1720392107963562, 0.04044244438409805, 0.01908070594072342, 0.017139440402388573, -0.053707145154476166, 0.03542083874344826, 0.05594311282038689, -0.0035771839320659637, -0.04388907179236412, 0.04606683924794197, 0.008852061815559864, 0.04671143740415573, 0.017899803817272186, -0.05079951882362366, -0.002283212961629033, 0.027061671018600464, 0.016500607132911682, -0.025563718751072884, -0.01749071665108204, -0.005216231103986502, -0.035107389092445374, 0.05090413987636566, 0.06691537797451019, -0.03379368036985397, -0.010554052889347076, 0.009484495036303997, -0.05524152144789696, -0.003061477327719331, -0.03032485768198967, -0.04289374500513077, -0.030522895976901054, -0.016265681013464928, 0.004317400511354208, 0.07181134074926376, -0.003819240489974618, -0.010696823708713055, 0.03711896017193794, 0.007297542877495289, -0.01054262276738882, -0.03366706520318985, 0.0983799621462822, -0.020577624440193176, 0.009365653619170189 ]
[ 0.04370437562465668, 0.04420088604092598, -0.02324793115258217, 0.034997206181287766, -0.020335357636213303, 0.023742083460092545, 0.01841418631374836, -0.00847307313233614, -0.023055987432599068, -0.013529913499951363, -0.009916854090988636, -0.0016701596323400736, 0.046667277812957764, -0.014835178852081299, -0.020305685698986053, 0.0308577548712492, -0.014082708396017551, 0.028900600969791412, 0.02376825362443924, -0.05097679793834686, -0.07715782523155212, -0.02127249538898468, 0.043784838169813156, -0.03262893483042717, 0.0027307074051350355, 0.012332371436059475, -0.013754960149526596, -0.015788167715072632, 0.015112649649381638, -0.07250675559043884, -0.01748727262020111, -0.017143603414297104, -0.016664553433656693, 0.02634586952626705, -0.04640454053878784, -0.008465324528515339, 0.040698420256376266, 0.052078548818826675, 0.005539960693567991, 0.031039010733366013, 0.023169826716184616, -0.023157529532909393, -0.018459467217326164, 0.011720564216375351, -0.007065171375870705, -0.02425810880959034, -0.061115801334381104, -0.01342102698981762, 0.006113826297223568, -0.0288370531052351, -0.05581189692020416, -0.012972908094525337, -0.009860346093773842, 0.02238317020237446, 0.03787536546587944, 0.04007894918322563, -0.04007688909769058, -0.002240494592115283, 0.00016048391989897937, 0.025310400873422623, 0.040384285151958466, -0.019124984741210938, -0.0289933905005455, -0.0115035530179739, -0.016809716820716858, 0.014184823259711266, -0.001954162959009409, 0.04299008473753929, 0.005773383192718029, 0.0024787846487015486, -0.012678702361881733, 0.03777163848280907, -0.10357285290956497, 0.0011183489114046097, -0.03392544761300087, 0.034713830798864365, 0.0501989908516407, -0.026011334732174873, 0.017741965129971504, 0.022107619792222977, -0.017624538391828537, 0.023487726226449013, -0.01903904229402542, -0.031101245433092117, -0.0374186709523201, -0.0004903255612589419, -0.017130428925156593, -0.046110451221466064, 0.0015291707823053002, 0.034152351319789886, -0.045201487839221954, 0.03933718428015709, -0.017108479514718056, -0.03288380056619644, -0.08706443756818771, -0.0016390634700655937, -0.003402209607884288, -0.01313529722392559, 0.01123798917979002, 0.8018003702163696, -0.02250033989548683, 0.021647803485393524, 0.0026095272041857243, 0.013028256595134735, -0.01464962400496006, 0.025887660682201385, 0.035425640642642975, 0.012982162646949291, -0.035321008414030075, 0.016784679144620895, -0.007357878610491753, 0.00026890423032455146, 0.004150742199271917, -0.006892754230648279, 0.0016944743692874908, 0.03503836691379547, 0.022981731221079826, -0.0037399239372462034, -0.026648161932826042, 0.007935388945043087, 0.0037355951499193907, -0.006353655364364386, 0.011809110641479492, 0.0018527746433392167, -0.016388198360800743, -0.1498342603445053, -0.04506390169262886, -7.075593636503085e-33, 0.04975719749927521, 0.012920228764414787, 0.06818018853664398, 0.004114188719540834, 0.011834674514830112, 0.017074843868613243, 0.0022362596355378628, -0.01908140815794468, -0.02274036593735218, -0.04907040670514107, -0.010782013647258282, -0.008126730099320412, 0.029002847149968147, -0.024816889315843582, 0.010490872897207737, -0.018634943291544914, 0.04159941151738167, 0.04021002724766731, -0.011986101977527142, 0.02198336273431778, 0.001165733439847827, 0.05544769763946533, -0.026860127225518227, 0.034839481115341187, -0.0014915155479684472, 0.012511436827480793, -0.004932544659823179, 0.008669696748256683, 0.025358563289046288, -0.04712599888443947, -0.06730639934539795, 0.04217257723212242, -0.005782013293355703, -0.01886867731809616, 0.006486033089458942, -0.05511466786265373, -0.03436999022960663, -0.003687277901917696, -0.03467780724167824, -0.06917491555213928, -0.048534151166677475, 0.0147849777713418, -0.010860507376492023, -0.04577965661883354, -0.022438453510403633, -0.014371768571436405, -0.00019461283227428794, 0.025353679433465004, 0.00648243585601449, 0.017241735011339188, 0.005458272527903318, 0.022232908755540848, -0.03874508664011955, 0.0733393058180809, -0.051362793892621994, 0.008465876802802086, 0.0050161415711045265, 0.013964195735752583, -0.010915905237197876, -0.0005159192951396108, 0.020800922065973282, -0.014947867020964622, -0.026946965605020523, 0.04445350542664528, 0.05063678324222565, 0.04440489783883095, 0.00040042935870587826, -0.024337483569979668, 0.009570292197167873, 0.016402173787355423, -0.03899050131440163, 0.0759761705994606, -0.03216085582971573, -0.044900767505168915, 0.025516506284475327, -0.05182652175426483, -0.02859245426952839, -0.03636811673641205, 0.0019705952145159245, 0.0440300814807415, -0.005411629565060139, 0.012409289367496967, -0.017863750457763672, -0.015089418739080429, -0.008176636882126331, -0.036486584693193436, 0.003682568669319153, 0.05092950910329819, 0.010216914117336273, 0.04143107682466507, 0.0499211810529232, 0.0389467291533947, 0.0016059285262599587, -0.0279352106153965, -0.007053098641335964, 7.364532351987111e-33, 0.0037122236099094152, 0.004318605177104473, -0.0037560234777629375, -0.003691758494824171, 0.04286585748195648, 0.0009967293590307236, 0.022984832525253296, 0.0212765634059906, -0.03493630141019821, 0.040633656084537506, 0.01583024114370346, -0.03047758713364601, 0.029375076293945312, 0.02066546306014061, 0.05161483213305473, 0.020746657624840736, 0.012457270175218582, -0.05251915752887726, -0.00036525557516142726, 0.038878194987773895, 0.025458289310336113, 0.0075005716644227505, -0.0008134404197335243, 0.020541448146104813, 0.04447389394044876, 0.018091196194291115, 0.00407432159408927, 0.00922524556517601, -0.031502339988946915, -0.01825077272951603, 0.02320658229291439, -0.05463916435837746, -0.03512537479400635, -0.019563281908631325, 0.0024078201968222857, 0.020521922037005424, -0.020099200308322906, 0.0030211955308914185, 0.0183243528008461, -0.01657167263329029, -0.019699133932590485, 0.028713243082165718, -0.03751868009567261, 0.07723481953144073, 0.0071342396549880505, 0.027673844248056412, -0.008740625344216824, 0.013462048023939133, -0.01893085427582264, -0.0019351954106241465, 0.010143058374524117, 0.03808852285146713, -0.008089707233011723, -0.000324077729601413, 0.022933755069971085, -0.06333550810813904, 0.01065328624099493, 0.03270404413342476, 0.00022225629072636366, 0.0027661453932523727, -0.008735628798604012, -0.02659551240503788, -0.031293150037527084, 0.060876257717609406, -0.006866951007395983, -0.03686505928635597, -0.020764213055372238, 0.02133694663643837, -0.016662251204252243, -0.0193000677973032, 0.00919041782617569, -0.0003514871932566166, -0.01536114327609539, 0.02350655011832714, 0.05213204398751259, -0.03326299786567688, -0.035012226551771164, -0.01693754643201828, -0.021629059687256813, 0.04196861386299133, 0.015023876912891865, 0.006903493776917458, 0.024590887129306793, -0.010415064170956612, 0.00582588417455554, -0.029799554497003555, -0.0008237049914896488, 0.04333242028951645, -0.0077488659881055355, 0.03388914838433266, 0.013850141316652298, -0.030127637088298798, -0.024329211562871933, 0.020092247053980827, -0.037709854543209076, -1.2508035496239245e-8, -0.03887961059808731, 0.012738222256302834, -0.011951979249715805, -0.005302788224071264, 0.02160276286303997, 0.03199503570795059, -0.0014218278229236603, -0.010969020426273346, -0.014947779476642609, 0.025557368993759155, -0.015830283984541893, 0.004393801558762789, 0.01571328565478325, 0.007996163330972195, 0.030420508235692978, -0.08796682208776474, 0.004620787687599659, -0.04507557302713394, 0.025634128600358963, 0.010618289932608604, -0.0009089021477848291, 0.03009307011961937, -0.07586207985877991, 0.031053751707077026, 0.012198972515761852, -0.01164501067250967, 0.04343237727880478, -0.045468125492334366, 0.01562455203384161, -0.018384793773293495, 0.004481105133891106, -0.019563764333724976, -0.015021423809230328, 0.04000864923000336, -0.04135211929678917, -0.007928766310214996, 0.02529251202940941, 0.05684570223093033, 0.00008005050040083006, 0.04563520848751068, -0.003437211737036705, 0.01679547131061554, -0.03951943665742874, -0.02809588797390461, -0.02659435383975506, 0.0023212130181491375, -0.0274086594581604, -0.010118981823325157, 0.04158945009112358, -0.05089293047785759, 0.0015480739530175924, -0.007426236290484667, 0.013805114664137363, 0.008314116857945919, 0.0408296175301075, -0.018124086782336235, 0.0003162819775752723, 0.03391850367188454, 0.046591103076934814, -0.024572953581809998, 0.004799181595444679, -0.005351152271032333, -0.05392671748995781, -0.017128264531493187 ]
neo4j-2-1-6-cypher-foreach-slowness
https://markhneedham.com/blog/2014/12/28/neo4j-2-1-6-cypher-foreach-slowness
false
2014-12-28 21:55:23
R: Featuring engineering for a linear model
[ "r-2" ]
[ "R" ]
I previously wrote about http://www.markhneedham.com/blog/2014/09/30/r-a-first-attempt-at-linear-regression/[a linear model] I created to predict how many people would RSVP 'yes' to a meetup event and having not found much correlation between any of my independent variables and RSVPs was a bit stuck. As luck would have it I bumped into https://twitter.com/tonkouts[Antonios] at a meetup a month ago and he offered to take a look at what I'd tried so far and give me some tips on how to progress. The first thing he pointed out is that that all my features were related to date/time and that I should try and generate some other features. He suggested I start with the following: * info about organisers (quantify popularity of organisers, how many people work for them) * info about the venue (how many people fit there, how far it is from the centre of the city) * number of tweets for the event, during X days before the event I'd read a lot on http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/7688/feature-engineering-and-beat-the-benchmark-0-59347[Kaggle] http://www.quora.com/What-do-top-Kaggle-competitors-focus-on[forums] about how feature engineering was the most important part of building statistical models but it didn't click what that meant until Antonios pointed it out. The first thing I decided to do was bring in the data for all London's NoSQL meetups rather than just the Neo4j one to give myself a bit more data to work with. == Group Membership Having done that, it seemed from visual inspection that the meetup groups with the most members (i.e. Data Science London, Big Data London) seemed to get the biggest turnouts. I thought it'd be interesting to see what the correlation was between group membership and RSVPs so this was the first new feature I added. I generated this feature by a combination of a Neo4j query and R code which resulted in https://gist.github.com/mneedham/6be0c807674f229ad34c[this data frame as CSV file]. We can quickly preview it to see some of the events and the group membership at that time: [source,r] ---- > df = read.csv("/tmp/membersWithGroupCounts.csv") > df$eventTime = as.POSIXct(df$eventTime) > df %>% sample_n(10) %>% select(event.name, g.name, eventTime, groupMembers, rsvps) event.name g.name eventTime groupMembers rsvps 23 Scoring Models, Apache Drill for querying structured & unstructured data Data Science London 2014-09-18 18:30:00 3466 159 421 London Office Hours London MongoDB User Group 2012-08-22 17:00:00 468 6 304 MongoDB University Study Group London Meet up London MongoDB User Group 2014-07-16 17:00:00 1256 23 43 December Meetup London ElasticSearch User Group 2014-12-10 18:30:00 721 126 222 Intro to Graphs Neo4j - London User Group 2014-09-03 18:30:00 1453 39 207 Intro to Machine Learning with Scikit-Learn Women in Data 2014-11-11 18:15:00 574 41 168 NoSQL panel and LevelDB + Node.js London NoSQL 2014-04-15 18:30:00 183 51 443 London Office Hours London MongoDB User Group 2012-11-29 17:00:00 590 3 79 Apache Cassandra 1.2 with Jonathan Ellis Cassandra London 2013-03-06 19:00:00 399 95 362 Span conference Span: scalable and distributed computing 2014-10-28 09:00:00 67 13 ---- One thing I found difficult was finding features specific to an event - I'm not sure how much that matters. I generated features for the venue or group much more easily. First let's see if there's actually any correlation between these two variables by plotting them: [source,r] ---- ggplot(aes(x = groupMembers, y = rsvps), data = df) + geom_point() ---- image::{{<siteurl>}}/uploads/2014/12/2014-12-28_21-02-21.png[2014 12 28 21 02 21,515] It looks like there's a positive correlation between these two variables but let's create a single variable linear model to see how much of the variation is explained: [source,r] ---- > fit = lm(rsvps ~ groupMembers, data = df) > fit$coef (Intercept) groupMembers 20.03579637 0.05382738 ---- Our linear model equation is therefore: ____ rsvps = 20.03579637 + 0.05382738(groupMembers) ____ Let's see how well correlated our predicted RSVPs and actual RSVPs are: [source,r] ---- > df$predictedRSVPs = predict(fit, df) > with(df, cor(rsvps, predictedRSVPs)) [1] 0.6263096 ---- Not too bad! There is quite a strong correlation between these variables although it's not perfect. == Hours into the day In my first model I'd treated time as a categorical variable but Antonios pointed out that it's often easier to understand the relationship between variables if they're both continuos so I transformed the event time like so: [source,r] ---- df$hoursIntoDay = as.numeric(df$eventTime - trunc(df$eventTime, "day"), units="hours") ---- Let's see how that plots against the RSVP count: [source,r] ---- ggplot(aes(x = hoursIntoDay, y = rsvps), data = df) + geom_point() ---- image::{{<siteurl>}}/uploads/2014/12/2014-12-28_21-27-48.png[2014 12 28 21 27 48,510] It's a bit more difficult to see a trend here as there are quite discrete times at which events happen and the majority start at 6.30 or 7.00. Nevertheless let's build a linear model with just this variable: [source,r] ---- > fit = lm(rsvps ~ hoursIntoDay, data = df) > fit$coef (Intercept) hoursIntoDay -18.79895 4.12984 > > df$predictedRSVPs = predict(fit, df) > with(df, cor(rsvps, predictedRSVPs)) [1] 0.181472 ---- == Distance from the centre of London Next up I tried a feature based on the location of the venue that the events were held at. The hypothesis was that if a venue was closer to the centre of London then people would be more likely to attend. To calculate this distance I used the +++<cite>+++distHaversine+++</cite>+++ function from the geosphere package http://www.markhneedham.com/blog/2014/12/22/r-vectorising-all-the-things/[as shown in a previous blog post]. Let's have a look at the graph for that variable: [source,r] ---- ggplot(aes(x = distanceFromCentre, y = rsvps), data = df) + geom_point() ---- image::{{<siteurl>}}/uploads/2014/12/2014-12-28_21-37-41.png[2014 12 28 21 37 41,512] It's hard to tell much from this plot, mainly because a majority of the points are clustered around the 2,500 metre mark which represents Shoreditch venues. Let's plug it into a linear model and see what we come up with: [source,r] ---- > fit = lm(rsvps ~ distanceFromCentre, data = df) > fit$coef (Intercept) distanceFromCentre 57.243646619 -0.001310492 > > df$predictedRSVPs = predict(fit, df) > with(df, cor(rsvps, predictedRSVPs)) [1] 0.02999708 ---- Interestingly there's barely any correlation here which was surprising to me. I tried combining this variable in a multiple variable model with the others but it still didn't have much impact so I think we'll park this one for now. This is as much as I've done at the moment and despite spending quite a bit of time on it I still haven't really explained very much of the variation in RSVP rates! I have managed to identify some ways that I was able to come up with new features to try out though: * Read what other people are doing e.g. I have some ideas for lag variables (e.g. how many people went to your previous meetup) having read about http://people.duke.edu/~rnau/regexbaseball.htm[this baseball linear model] * Talk to other people about your model - they often have ideas you wouldn't think of being too deep into the problem. * Look at what data you already have and try and incorporate that and see where it leads + </ul> + The next avenue I started exploring is topic modelling as I have a hypothesis that people RSVP for events based on the content of talks but I'm not sure of the best way to go about that. + My current thinking is to pull out some topics/terms by following the example from https://github.com/johnmyleswhite/ML_for_Hackers/blob/master/06-Regularization/chapter06.R[Chapter 6] of http://www.amazon.com/Machine-Learning-Hackers-Drew-Conway/dp/1449303714[Machine Learning for Hackers].
null
null
[ 0.029790779575705528, -0.02140526846051216, 0.02382138930261135, 0.03392745181918144, 0.0794159397482872, 0.022055285051465034, 0.03485969081521034, 0.024060288444161415, 0.009989582002162933, 0.00881994143128395, -0.011355729773640633, -0.01003422960639, -0.0728359967470169, 0.01884007267653942, -0.036681897938251495, 0.06648857891559601, 0.053247563540935516, -0.009176305495202541, 0.01876142807304859, 0.019442124292254448, 0.041654981672763824, 0.06324004381895065, 0.03048735298216343, 0.04899607226252556, 0.047360848635435104, -0.005439917091280222, 0.031063370406627655, -0.010912967845797539, -0.03517906740307808, 0.007499392610043287, 0.044430337846279144, 0.018895164132118225, 0.014405741356313229, -0.002771472092717886, 0.029292039573192596, -0.014122131280601025, -0.008405571803450584, 0.02529006637632847, -0.00042534293606877327, 0.000610855408012867, -0.07497261464595795, 0.047788701951503754, -0.03015235997736454, 0.016944801434874535, -0.0413055494427681, -0.005582436453551054, -0.042060378938913345, 0.03022288717329502, 0.013647301122546196, 0.0191648006439209, -0.0676100105047226, 0.029215306043624878, -0.0025889205280691385, 0.024565167725086212, -0.005349223036319017, 0.03406333550810814, 0.0254183541983366, -0.06218055263161659, 0.01125556230545044, -0.021768873557448387, -0.016737785190343857, 0.011846868321299553, -0.00881500355899334, 0.0057077063247561455, 0.0010652095079421997, -0.02350829914212227, 0.013661691918969154, 0.044895850121974945, -0.01573995314538479, 0.0056363786570727825, -0.019009554758667946, 0.02207207679748535, 0.0017909196903929114, -0.0030628780368715525, -0.0001232725626323372, -0.06415312737226486, 0.010052697733044624, 0.05906979739665985, 0.04049426317214966, 0.026379946619272232, -0.014611585065722466, -0.020878881216049194, 0.014496969990432262, 0.0329611599445343, -0.010153114795684814, -0.044512081891298294, -0.010127243585884571, -0.04442029446363449, -0.07806334644556046, 0.07522759586572647, 0.013080551289021969, -0.047777269035577774, 0.0161154642701149, 0.028749966993927956, 0.00002372595736233052, 0.018605254590511322, 0.027378244325518608, -0.010472848080098629, -0.0047475416213274, -0.0386519655585289, -0.03276464343070984, -0.029003286734223366, -0.0004002113710157573, 0.013987304642796516, -0.09134244173765182, -0.008517775684595108, -0.030621513724327087, 0.005802723113447428, 0.004167506471276283, -0.0049429466016590595, -0.031047498807311058, 0.020932745188474655, -0.021511757746338844, 0.011813058517873287, -0.0786774605512619, 0.06344173103570938, 0.026195349171757698, -0.038052335381507874, 0.0021555281709879637, -0.024008827283978462, 0.04447975382208824, 0.03322433680295944, -0.017591718584299088, 0.06885098665952682, -0.04035888612270355, 0.041789647191762924, 0.008563111536204815, 0.051395170390605927, -0.020585453137755394, -0.04415128752589226, -0.010935717262327671, 0.04380268231034279, -0.030109476298093796, -0.00176200398709625, -0.0030937872361391783, -0.04208818078041077, -0.0032764924690127373, 0.021163759753108025, 0.044682443141937256, 0.04603511840105057, 0.036840733140707016, -0.04945486783981323, 0.02437765523791313, 0.026834968477487564, 0.03406305983662605, 0.0020277854055166245, -0.006154943723231554, -0.04236258566379547, -0.05586952343583107, -0.01994328573346138, 0.03710537031292915, 0.01569366455078125, 0.004284446127712727, -0.054528702050447464, 0.051121748983860016, 0.08334558457136154, 0.038951385766267776, -0.011985672637820244, -0.012275287881493568, 0.01911526545882225, 0.02855648100376129, 0.034959714859724045, 0.018320322036743164, 0.029767688363790512, 0.015829915180802345, -0.015404755249619484, 0.0070320903323590755, 0.05157681927084923, -0.008663440123200417, 0.014573832042515278, -0.04275188967585564, -0.04902547225356102, 0.04354628548026085, -0.031070347875356674, -0.012041889131069183, 0.044709574431180954, 0.08918794989585876, 0.05022229626774788, 0.02975580096244812, 0.01869434490799904, -0.08402109146118164, 0.026294149458408356, 0.017554571852087975, 0.018034236505627632, 0.04584750905632973, -0.030443644151091576, 0.07097003608942032, 0.040989670902490616, 0.0008776562171988189, 0.044725414365530014, -0.07893825322389603, -0.07594210654497147, -0.030628729611635208, -0.024284467101097107, 0.05070790275931358, -0.0273802038282156, 0.0404701866209507, 0.06290591508150101, -0.003817233955487609, 0.042654264718294144, 0.005492118187248707, 0.006877394393086433, 0.024220334365963936, -0.02606557495892048, -0.05852850154042244, 0.046124231070280075, 0.023516075685620308, -0.03492145240306854, -0.05295106768608093, 0.00004603119668900035, -0.03754621371626854, 0.011121894232928753, 0.022177793085575104, -0.03394024446606636, 0.03954164683818817, 0.030514026060700417, 0.04652469977736473, 0.012571820057928562, 0.012349996715784073, -0.011468971148133278, 0.027194080874323845, 0.014496589079499245, -0.01473414245992899, 0.0021324106492102146, 0.01837494596838951, 0.12257785350084305, 0.059265803545713425, -0.018604008480906487, -0.051718875765800476, 0.0219507347792387, 0.017838796600699425, -0.021080257371068, 0.009708690457046032, -0.004912286065518856, 0.01063975878059864, -0.0141225541010499, -0.04174567013978958, -0.04554472491145134, 0.003773673204705119, -0.038728732615709305, 0.011957843787968159, 0.06328330934047699, -0.02197139896452427, 0.06034176051616669, -0.03878829628229141, 0.018704943358898163, -0.011350350454449654, -0.04210934415459633, -0.05655311048030853, 0.013111730106174946, 0.015466251410543919, -0.00857551209628582, 0.03820923715829849, -0.012995480559766293, 0.01109170913696289, -0.01571752317249775, -0.016642097383737564, 0.04312023147940636, 0.05893265828490257, 0.061205390840768814, 0.0018101198365911841, 0.05350085720419884, -0.036720991134643555, 0.013674456626176834, -0.0049582007341086864, -0.04688967019319534, -0.06505593657493591, -0.04615282267332077, 0.0033021082635968924, 0.03601335734128952, 0.03839953616261482, -0.013900410383939743, 0.01852729357779026, 0.015593533404171467, 0.004306182265281677, -0.022065231576561928, 0.020543178543448448, 0.0050877672620117664, -0.010052694007754326, -0.028089432045817375, -0.034968018531799316, 0.05050428584218025, -0.022022349759936333, -0.015623406507074833, 0.01212047878652811, -0.06771057099103928, 0.03539891541004181, -0.04903106018900871, -0.026674950495362282, -0.005495238117873669, 0.008170832879841328, 0.045403607189655304, 0.054788436740636826, -0.012946688570082188, 0.05977378413081169, 0.015394036658108234, 0.026521112769842148, 0.019533991813659668, -0.028365502133965492, 0.03979245945811272, -0.008980517275631428, 0.005783725064247847, 0.034509241580963135, -0.025597570464015007, 0.0042075407691299915, -0.0637233704328537, 0.044700466096401215, -0.03140280023217201, -0.29957303404808044, 0.034840185195207596, -0.0028518440667539835, -0.03440706804394722, 0.0015384996077045798, -0.03570384159684181, 0.043414775282144547, -0.022097500041127205, -0.03636616840958595, -0.010516069829463959, -0.020022019743919373, -0.03537958115339279, -0.03796841576695442, 0.023401927202939987, 0.009240681305527687, 0.026359479874372482, 0.022299446165561676, -0.03717971593141556, 0.02121678553521633, 0.056453410536050797, 0.009609312750399113, -0.061607807874679565, -0.01173497922718525, 0.04233993962407112, 0.00512367207556963, 0.07116314768791199, -0.07872205227613449, 0.012577620334923267, -0.05432581901550293, -0.0071731265634298325, 0.03109412081539631, 0.007879422046244144, 0.001903340220451355, 0.0032292886171489954, 0.0003923827316612005, -0.010849704034626484, 0.05808788165450096, -0.0005389756406657398, -0.006680660881102085, 0.022290142253041267, -0.016080766916275024, -0.0190562903881073, -0.012860148213803768, 0.0018580935429781675, 0.08953778445720673, 0.02710656262934208, -0.06776800006628036, 0.011716180481016636, -0.027950191870331764, 0.05915868654847145, -0.03675296530127525, -0.03473038598895073, -0.017465244978666306, 0.0386202335357666, -0.023985588923096657, -0.029121510684490204, -0.037545617669820786, -0.012116520665585995, -0.04113468527793884, -0.04415789619088173, -0.02042623981833458, -0.03582840412855148, 0.013561716303229332, -0.045163076370954514, -0.023841479793190956, -0.05925220623612404, -0.0818239375948906, -0.0248403400182724, 0.07066413760185242, 0.004178870003670454, -0.025390679016709328, 0.01859855093061924, -0.015759455040097237, -0.09822255373001099, -0.02099398896098137, 0.010732096619904041, -0.00041780428728088737, 0.01738692820072174, 0.023253096267580986, 0.05967768281698227, -0.038993000984191895, -0.06077868863940239, 0.02044048346579075, 0.005298789590597153, 0.03533497080206871, -0.00022846325009595603, 0.013577975332736969, 0.007277899421751499, -0.04740310460329056, -0.010793297551572323, 0.045238591730594635, -0.03205905109643936, -0.03094819374382496, -0.005968623794615269, 0.01272310595959425, 0.013757937587797642, 0.011146650649607182, -0.0010439001489430666, 0.01914716139435768, 0.04796173796057701, 0.009641996584832668, -0.052745040506124496, 0.02297578565776348, -0.04227624833583832, -0.018968285992741585, -0.008290608413517475, -0.053167760372161865, 0.020059170201420784, 0.036985594779253006, 0.008402680978178978, 0.017886746674776077, -0.04331285133957863, 0.014985842630267143, -0.046665627509355545, -0.015934141352772713, -0.014387432485818863, 0.019872333854436874, 0.020451251417398453, 0.005595455877482891, -0.00034633721224963665, -0.05501357093453407, 0.011295219883322716, -0.007945600897073746, -0.005851244553923607, -0.058157920837402344, -0.013421734794974327, -0.02708527445793152, -0.035708069801330566, 0.008112671785056591, 0.0020053195767104626, -0.026268815621733665, 0.028684303164482117, 0.029826035723090172, -0.042378149926662445, 0.04651406407356262, 0.0015091581735759974, -0.06133400276303291, -0.03239261358976364, 0.027752436697483063, 0.013429805636405945, -0.0037134019657969475, 0.007222513668239117, -0.014413322322070599, 0.03527273237705231, 0.030699873343110085, 0.021282460540533066, 0.012586456723511219, -0.008715836331248283, 0.03736652061343193, 0.0007279056590050459, -0.006051862612366676, -0.03431786224246025, -0.0011700476752594113, -0.022747712209820747, -0.011300853453576565, -0.013098184950649738, 0.05697989836335182, -0.0014455477939918637, -0.02596416138112545, -0.02979676052927971, 0.00765648577362299, -0.06205189228057861, -0.0358567051589489, -0.011519841849803925, 0.026542548090219498, 0.05195651948451996, -0.01544790156185627, 0.013301433995366096, 0.002777899382635951, -0.02011042647063732, -0.002252772683277726, 0.012551197782158852, -0.03441733866930008, 0.0000917130455491133, -0.010586563497781754, -0.01719941757619381, 0.009495042264461517, -0.0012585986405611038, 0.03600163385272026, -0.010882987640798092, -0.018552152439951897, -0.027247078716754913, 0.002251663710922003, 0.01661958172917366, 0.05193584784865379, 0.0641128346323967, -0.024649430066347122, -0.007822061888873577, 0.008577576838433743, -0.021439800038933754, -0.05041085183620453, -0.006937041413038969, 0.0048575871624052525, -0.004259217996150255, -0.03616389259696007, -0.08067519962787628, 0.04475611448287964, -0.011673700995743275, -0.0037684522103518248, 0.03051171265542507, 0.006287093739956617, -0.013648721389472485, -0.0054186005145311356, 0.035200685262680054, 0.06891271471977234, -0.0623939223587513, -0.024039212614297867, -0.006151390727609396, -0.014686396345496178, 0.005146034527570009, 0.006885104347020388, -0.05576757714152336, -0.014596645720303059, -0.011795645579695702, 0.0232514888048172, -0.05465535819530487, -0.02711080200970173, -0.016787078231573105, 0.026156790554523468, 0.0032971350010484457, 0.027199096977710724, -0.005109673831611872, -0.016582615673542023, -0.018967455253005028, -0.01892956532537937, 0.0439884178340435, -0.02231612056493759, -0.012889341451227665, 0.004697011783719063, -0.05074256658554077, -0.00860594492405653, -0.02340937964618206, 0.0015769889578223228, 0.026726827025413513, -0.04554923251271248, 0.011806201189756393, -0.05873812735080719, 0.009199309162795544, 0.004706673324108124, 0.044658079743385315, -0.035990986973047256, -0.005345858167856932, -0.051701538264751434, -0.003294936381280422, -0.04361859709024429, 0.01820208691060543, -0.01596451736986637, 0.019171331077814102, 0.04482128098607063, 0.022397514432668686, 0.015786007046699524, 0.011252477765083313, -0.020698556676506996, -0.021181847900152206, 0.024845173582434654, -0.04831307753920555, -0.030991211533546448, -0.04894830286502838, -0.053311996161937714, -0.011681775562465191, -0.004838352557271719, 0.029817303642630577, -0.01810552179813385, 0.03633073344826698, 0.02206668071448803, 0.02296384423971176, 0.040766313672065735, -0.0032250473741441965, 0.014383308589458466, -0.03169066086411476, 0.012320335023105145, -0.09089706093072891, -0.008134400472044945, 0.040525563061237335, -0.0035954469349235296, -0.0005132400547154248, 0.0008354026940651238, -0.03652140870690346, 0.028996651992201805, -0.07045396417379379, -0.02693174034357071, 0.013088594190776348, -0.02016269788146019, 0.014506827108561993, 0.021025406196713448, -0.07070974260568619, -0.01018401887267828, 0.02494794689118862, -0.04919525980949402, -0.013656704686582088, -0.03462224453687668, 0.052733223885297775, -0.03763595595955849, 0.032801736146211624, -0.028518803417682648, -0.031908176839351654, 0.06410788744688034, 0.014941316097974777, -0.00786055438220501, 0.050189413130283356, -0.015141601674258709, 0.04841448366641998, 0.02633162960410118, -0.003850220702588558, 0.01063881441950798, 0.01576884090900421, -0.005503760650753975, -0.0600038580596447, 0.04241626709699631, 0.012524453923106194, -0.012827150523662567, -0.04332295060157776, 0.07040268182754517, 0.016212524846196175, -0.04880662262439728, -0.03214924409985542, 0.016109146177768707, -0.04122987762093544, 0.0061557660810649395, -0.023149199783802032, -0.01848985254764557, -0.048076339066028595, 0.04922187328338623, -0.0025916455779224634, 0.021716414019465446, 0.062451764941215515, 0.012405919842422009, 0.000839819258544594, 0.006340277846902609, 0.09066148847341537, 0.10604611039161682, 0.07640929520130157, 0.01168787106871605, 0.07118459045886993, -0.02270849607884884, -0.05639228597283363, 0.0035703524481505156, -0.02481655962765217, -0.044232483953237534, -0.023376770317554474, 0.013759595341980457, 0.0723869800567627, -0.018900064751505852, 0.07435153424739838, 0.0000029864943371649133, -0.025823548436164856, -0.0036919533740729094, 0.017750965431332588, 0.0390845350921154, 0.06459719687700272, 0.00273195025511086, 0.01738227903842926, -0.029437297955155373, -0.045397453010082245, 0.026311665773391724, -0.021875465288758278, -0.020293202251195908, 0.033936310559511185, -0.008712579496204853, 0.012860734947025776, 0.014253082685172558, 0.048491574823856354, 0.07040237635374069, -0.04495760053396225, 0.01501135341823101, 0.0006545616779476404, 0.023570338264107704, -0.009184343740344048, 0.03040311671793461, -0.00939813069999218, -0.019122686237096786, -0.014482676051557064, -0.038957249373197556, -0.010886505246162415, -0.011553335003554821, -0.033736519515514374, 0.015252836048603058, -0.04339093342423439, -0.013208084739744663, 0.017546480521559715, -0.01223085168749094, -0.033843860030174255, -0.050699926912784576, -0.006700197700411081, -0.054607294499874115, -0.06799817085266113, -0.03594908118247986, 0.0060606105253100395, -0.01000171061605215, -0.027143822982907295, -0.0026611643843352795, -0.039974942803382874, -0.03216523304581642, 0.026466991752386093, -0.06585164368152618, -0.010191372595727444, -0.0044710529036819935, -0.0051300073973834515, 0.03094499185681343, 0.02075110748410225, 0.03494936600327492, 0.007674484048038721, 0.0030651316046714783, -0.025305479764938354, 0.03753837198019028, 0.050639308989048004, 0.03499496728181839, -0.014022015035152435, -0.08344002813100815, 0.03860236331820488, 0.025059031322598457, -0.035346124321222305, -0.07322264462709427, 0.030628357082605362, 0.022427596151828766, 0.033523079007864, 0.02445175126194954, -0.006408724933862686, -0.0031170339789241552, -0.03778073564171791, 0.00924145057797432, -0.02342391014099121, 0.01739720068871975, 0.03257696330547333, -0.025020049884915352, 0.058381542563438416, 0.04416082054376602, -0.029294639825820923, -0.049572836607694626, -0.02501860447227955, 0.013403963297605515, -0.010259370319545269, -0.02918064594268799, -0.057434942573308945, -0.04371342435479164, -0.09829279035329819, -0.03386140987277031, 0.029288381338119507, -0.017583142966032028, -0.00884455069899559, 0.022613218054175377, 0.01845519244670868, -0.003764115273952484, 0.04305937886238098, -0.028111370280385017, 0.039858147501945496, -0.01948815956711769, -0.003858016338199377, -0.026199232786893845, 0.01878337934613228, -0.016803385689854622, 0.007055643014609814, -0.006200639996677637, -0.045769792050123215, -0.00387980486266315, -0.00763445720076561, 0.02694331482052803, 0.01767740212380886, 0.0225323885679245, 0.0013029715046286583 ]
[ -0.04830702021718025, -0.023884477093815804, -0.03601186349987984, -0.01904144138097763, 0.05684219300746918, -0.018857620656490326, 0.001846530707553029, 0.036985475569963455, 0.013140873052179813, -0.03302672877907753, 0.04712599143385887, -0.030257290229201317, 0.011054614558815956, -0.01213686354458332, 0.08379179984331131, -0.008060270920395851, 0.013547428883612156, -0.0978817567229271, -0.014315223321318626, 0.055715784430503845, -0.04858579486608505, -0.043277520686388016, -0.021617412567138672, -0.024309977889060974, 0.023729130625724792, 0.020268887281417847, 0.0352383591234684, -0.04889557510614395, -0.013848256319761276, -0.20444560050964355, 0.009830188937485218, 0.0029591533821076155, 0.0842665359377861, 0.00924541987478733, -0.015354392118752003, 0.04336976259946823, 0.05117350071668625, -0.009313130751252174, 0.005308178253471851, 0.04528059810400009, 0.006562359631061554, -0.01127181388437748, -0.029794417321681976, -0.008391277864575386, 0.04141917824745178, 0.006803352385759354, -0.014834887348115444, -0.00047356763388961554, -0.057933978736400604, 0.0077499402686953545, -0.023457234725356102, -0.03831429034471512, -0.020922865718603134, -0.006262513808906078, 0.004213201813399792, 0.044067539274692535, 0.00989545602351427, 0.04532528668642044, -0.00120923004578799, 0.012435970827937126, 0.0009300942765548825, 0.007407815661281347, -0.15896479785442352, 0.06822089850902557, -0.0014392248122021556, 0.02036339044570923, -0.06362044811248779, 0.004409605171531439, -0.00804681982845068, 0.0671917125582695, 0.04097607359290123, 0.014846590347588062, -0.025699950754642487, 0.02836719900369644, 0.0018905152101069689, 0.032484110444784164, -0.009549052454531193, 0.046134088188409805, 0.01730460673570633, -0.011675727553665638, 0.005447762552648783, 0.04081525653600693, -0.030486488714814186, -0.019687671214342117, -0.027294054627418518, 0.01592380739748478, 0.01688149943947792, 0.05002554878592491, 0.00998556800186634, 0.03268120065331459, 0.0471646673977375, 0.038849104195833206, 0.013913304544985294, -0.02261347509920597, -0.07226641476154327, -0.0212289709597826, 0.026153577491641045, 0.02138436771929264, -0.015363610349595547, 0.43322867155075073, -0.008891086094081402, 0.0037136038299649954, 0.038168154656887054, 0.05928894132375717, -0.012479945085942745, -0.05496440827846527, 0.0033773542381823063, -0.07150934636592865, 0.04559308663010597, -0.002054617740213871, 0.00896154809743166, -0.016196738928556442, 0.04927883297204971, -0.05925958231091499, 0.011159738525748253, -0.0007833814597688615, 0.05678185820579529, 0.03813046216964722, -0.008285591378808022, 0.0022367327474057674, -0.006473951041698456, -0.0004911693977192044, 0.045563336461782455, -0.009782470762729645, 0.01663574017584324, 0.018994463607668877, 0.042210012674331665, 0.06896807998418808, 0.04339825361967087, -0.008478246629238129, 0.061879441142082214, 0.018709369003772736, -0.0958159789443016, 0.01625673659145832, -0.003508302615955472, -0.010210118256509304, 0.044662199914455414, -0.017333699390292168, -0.00004485989848035388, 0.033250000327825546, 0.012678224593400955, 0.004558155778795481, 0.06224789097905159, -0.01837766543030739, -0.03962419182062149, 0.14700165390968323, -0.034653712064027786, -0.05338219180703163, 0.002376740099862218, -0.04345563426613808, 0.032252855598926544, 0.03107001818716526, -0.015479013323783875, -0.07339314371347427, -0.010572663508355618, -0.002459829906001687, 0.08022509515285492, -0.022581083700060844, -0.06733826547861099, 0.00276917009614408, -0.034834206104278564, -0.03539607301354408, -0.029164202511310577, 0.029167499393224716, 0.04939340800046921, -0.1541043221950531, 0.016060281544923782, 0.013096808455884457, 0.014179840683937073, -0.0746113657951355, 0.015442407689988613, 0.005993841681629419, -0.03276575729250908, 0.0038224547170102596, 0.06938453018665314, -0.014975684694945812, -0.03734566271305084, 0.020226193591952324, 0.04102887213230133, 0.019432079046964645, 0.018029244616627693, 0.00021989243396092206, -0.05312851071357727, 0.0021951752714812756, -0.06700467318296432, -0.05882559344172478, -0.051369618624448776, -0.027438495308160782, -0.04094448313117027, 0.005679921247065067, -0.013135746121406555, -0.03859397768974304, -0.10772521048784256, 0.07096031308174133, -0.021899493411183357, -0.00974330399185419, 0.020439809188246727, 0.004580914042890072, -0.010121919214725494, -0.017404599115252495, -0.06657745689153671, 0.0023545767180621624, -0.044083524495363235, 0.005715279374271631, -0.07775953412055969, 0.04509146139025688, 0.06609909981489182, -0.04085508733987808, 0.10225082188844681, 0.0507664829492569, -0.018980396911501884, -0.030227454379200935, -0.014314704574644566, 0.004478000570088625, 0.004625995177775621, 0.016392948105931282, 0.006012498866766691, -0.005541899707168341, -0.011003552004694939, 0.0539020374417305, -0.006050379481166601, 0.026071695610880852, -0.013446265831589699, -0.35974887013435364, -0.03339783102273941, 0.014495366252958775, 0.013148216530680656, 0.0027961863670498133, -0.04661001265048981, 0.036181505769491196, -0.007655056193470955, 0.0006509294034913182, 0.03224871680140495, 0.09653916954994202, 0.04145709425210953, -0.008152048103511333, -0.046655599027872086, 0.01397707313299179, 0.03654550015926361, -0.04727591574192047, -0.005699312314391136, -0.035825248807668686, 0.002349902642890811, -0.027032896876335144, -0.01437435857951641, -0.004735931288450956, -0.02747556008398533, 0.002753045642748475, -0.03668670356273651, 0.07676205784082413, 0.01880495436489582, -0.0015984250931069255, -0.033680904656648636, 0.030037447810173035, 0.03168276697397232, -0.03074251487851143, -0.06890585273504257, 0.012214256450533867, -0.003376421984285116, 0.04422139376401901, 0.0038811101112514734, 0.010461748577654362, -0.023930516093969345, -0.05453425645828247, 0.029451601207256317, -0.04091581702232361, -0.04897374287247658, -0.09011726826429367, 0.026777515187859535, -0.028618916869163513, -0.018299542367458344, -0.011139126494526863, 0.08091150969266891, 0.03431722894310951, -0.01829216070473194, 0.02325441688299179, 0.020566243678331375, 0.01687394268810749, -0.02024897187948227, -0.08414973318576813, -0.007640926167368889, 0.006231310777366161, 0.02884119749069214, 0.006749274209141731, 0.05148400738835335, 0.029812199994921684, -0.08364241570234299, 0.009084360674023628, -0.008185181766748428, -0.02578986994922161, -0.006238941103219986, 0.020083753392100334, -0.013906627893447876, -0.02673536352813244, 0.07735707610845566, -0.018040575087070465, 0.021364351734519005, 0.0403052382171154, -0.007649649865925312, -0.05743022635579109, -0.019810091704130173, 0.028702262789011, 0.02329586260020733, 0.04152572900056839, -0.03580520302057266, 0.049909017980098724, -0.0055526429787278175, -0.011561396531760693, 0.03995361924171448, 0.011058375239372253, -0.02029675617814064, 0.041464388370513916, 0.045676421374082565, -0.01489777397364378, -0.025076430290937424, -0.028636431321501732, -0.014720762148499489, 0.041984640061855316, -0.005293491296470165, -0.26465296745300293, 0.021345723420381546, 0.028317071497440338, 0.04579261690378189, 0.00639947596937418, 0.004200400318950415, 0.03381757810711861, -0.051813073456287384, 0.0012174372095614672, -0.006848795339465141, 0.04799700155854225, 0.04249978065490723, 0.02375304512679577, -0.0010177998337894678, 0.04182742163538933, -0.00561728747561574, -0.010077332146465778, -0.004881680943071842, -0.000937056727707386, -0.029172061011195183, 0.030030712485313416, -0.01181835774332285, 0.1547233909368515, 0.0012261375086382031, 0.009965389966964722, 0.03469785302877426, -0.0438973568379879, -0.024262936785817146, 0.04936574772000313, -0.03163755685091019, -0.0235062837600708, -0.015413086861371994, 0.012557534500956535, 0.007582360878586769, 0.01546772662550211, -0.041999030858278275, -0.028208263218402863, -0.008215831592679024, 0.011480147019028664, -0.008855867199599743, 0.02396732196211815, 0.010526870377361774, -0.01452003326267004, 0.023838644847273827, 0.07141190022230148, -0.007286587730050087, 0.02944238670170307, -0.04035331681370735, -0.04379446059465408, -0.001297871465794742, -0.026820043101906776, -0.05688302218914032, -0.01848611794412136, -0.012537924572825432, 0.022689981386065483, 0.06836151331663132, 0.013938233256340027, -0.022832252085208893, 0.036847446113824844, 0.016635319218039513, -0.02420581690967083, -0.025855926796793938, 0.07476648688316345, -0.0029956416692584753, 0.00941226352006197 ]
[ 0.01892855577170849, 0.003929575905203819, -0.0009431370999664068, 0.04034709930419922, -0.008548188954591751, 0.03537376970052719, -0.007653487846255302, -0.0179593563079834, -0.028631754219532013, -0.00032200466375797987, -0.02983953431248665, 0.029748372733592987, 0.016961613669991493, -0.00036905676824972034, 0.03524117171764374, -0.010205860249698162, 0.015228690579533577, -0.02827688306570053, 0.041095804423093796, -0.001587031176313758, -0.04127341881394386, -0.041407059878110886, -0.008115636184811592, 0.006003094837069511, -0.00404068548232317, 0.009732057340443134, -0.003943831194192171, 0.038694605231285095, 0.030733009800314903, -0.08766458928585052, -0.02933666855096817, -0.015353897586464882, -0.0005469793104566634, 0.0014287043595686555, -0.016993939876556396, -0.00029494499904103577, -0.015434940345585346, 0.04146577790379524, -0.008167184889316559, 0.02802240289747715, 0.00016055363812483847, -0.040701303631067276, -0.013737634755671024, -0.0039881085976958275, 0.020424358546733856, 0.02275797910988331, -0.013738089241087437, -0.0037387674674391747, -0.020986288785934448, -0.046889107674360275, 0.0027889381162822247, -0.009928606450557709, 0.004131259862333536, -0.0015321370447054505, -0.022774673998355865, 0.007519029080867767, -0.043683916330337524, -0.028208980336785316, -0.02035672962665558, -0.01915767230093479, 0.015730826184153557, 0.014541275799274445, -0.044086337089538574, 0.0020368844270706177, -0.01689711958169937, 0.001315946108661592, -0.023423541337251663, 0.058441825211048126, 0.0008858433575369418, 0.006439125165343285, -0.024764925241470337, 0.04328637570142746, -0.0548553392291069, -0.01388655137270689, 0.013260064646601677, 0.008495301008224487, 0.004088403657078743, -0.05660220980644226, 0.023379798978567123, 0.01414279080927372, -0.06572973728179932, 0.020390519872307777, -0.04283033683896065, 0.0061163390055298805, -0.013943384401500225, -0.04262019321322441, 0.03324008360505104, -0.01088776346296072, -0.03045784868299961, 0.007340424694120884, -0.04028719291090965, 0.045864976942539215, 0.0230404119938612, -0.00855855830013752, -0.08962223678827286, 0.015646768733859062, 0.003551408415660262, 0.016310857608914375, 0.03869466483592987, 0.8437255024909973, -0.009343820624053478, 0.027415385469794273, 0.004079518374055624, 0.02021491341292858, -0.01810726709663868, -0.007027017418295145, -0.005155556835234165, 0.0011315846350044012, -0.005686785560101271, -0.02895224094390869, -0.011691960506141186, 0.03195491433143616, 0.014205848798155785, 0.021687565371394157, 0.007384136784821749, 0.057315751910209656, 0.0013130258303135633, 0.05483151972293854, 0.00426570326089859, 0.004578217398375273, -0.00275921868160367, 0.03140760585665703, 0.019927624613046646, 0.0023914382327347994, -0.008430871181190014, -0.1574341505765915, 0.012271047569811344, -6.785643261193382e-33, 0.03844721242785454, -0.03593587130308151, 0.02515185996890068, -0.01865599863231182, 0.02786201983690262, 0.001847203471697867, -0.03988569229841232, -0.022284572944045067, -0.0025906472001224756, 0.0075613958761096, 0.0050994656048715115, -0.005947296507656574, 0.0510844811797142, -0.06418363749980927, 0.042497582733631134, -0.005021665245294571, -0.0006205861573107541, 0.03390808030962944, -0.034605927765369415, -0.015133783221244812, -0.010435063391923904, 0.024307388812303543, -0.0004601885157171637, 0.03306467831134796, -0.002898226259276271, 0.0389157272875309, 0.02152608148753643, 0.014598492532968521, -0.004421420861035585, -0.04676593840122223, 0.002593646990135312, 0.05534294247627258, -0.005453123245388269, 0.01790747605264187, -0.0020798214245587587, -0.038329143077135086, -0.040753547102212906, -0.013486267067492008, -0.02768523246049881, -0.029567690566182137, -0.02117093838751316, -0.015577578917145729, -0.051711395382881165, -0.02880069985985756, -0.03634241223335266, 0.04175441712141037, -0.0033899974077939987, 0.01540473010390997, -0.0035655966494232416, -0.0032434777822345495, 0.02006961591541767, 0.0006854543462395668, -0.022388802841305733, -0.005493524018675089, -0.038579024374485016, -0.009636703878641129, 0.01293764729052782, 0.004666419699788094, 0.03490334004163742, 0.01858971267938614, 0.012131317518651485, -0.021525980904698372, 0.018096119165420532, 0.04069110006093979, 0.0056081353686749935, -0.013942507095634937, 0.038276635110378265, -0.04251872003078461, 0.006956905126571655, -0.011748796328902245, -0.02526744268834591, 0.07032345980405807, -0.02844495326280594, -0.011511438526213169, 0.02692446857690811, -0.0333561934530735, 0.01304918434470892, 0.04078604653477669, 0.02241004817187786, 0.03981030732393265, -0.004289702512323856, 0.008008412085473537, 0.026569770649075508, -0.044605471193790436, -0.011328593827784061, -0.010532476007938385, 0.011383808217942715, -0.01892811991274357, -0.005994066130369902, 0.03424406424164772, -0.002038665348663926, 0.019361868500709534, 0.00842410046607256, -0.020230494439601898, -0.016906820237636566, 7.107453941514184e-33, 0.031475234776735306, -0.008128494024276733, 0.010150430724024773, -0.011345856823027134, 0.037076231092214584, -0.004971313290297985, 0.01994924247264862, -0.004468217957764864, -0.019211139529943466, 0.05170254409313202, -0.017281970009207726, -0.03100297786295414, 0.026459254324436188, 0.017256759107112885, 0.05658147111535072, -0.0055719963274896145, 0.05507819354534149, -0.04685504734516144, -0.0058548059314489365, 0.010860750451683998, 0.006112111732363701, -0.002776270965114236, 0.010824535973370075, -0.014911439269781113, 0.04274920001626015, 0.02518489584326744, 0.010895168408751488, -0.002473557135090232, -0.015091284178197384, -0.001004313351586461, 0.00035903824027627707, -0.016207456588745117, -0.008845968171954155, 0.012443291023373604, -0.012041880749166012, 0.02665972150862217, -0.0045449817553162575, -0.029684877023100853, 0.019242268055677414, -0.0056858486495912075, 0.019181352108716965, 0.04403012990951538, -0.024507729336619377, 0.03849224001169205, 0.016979066655039787, 0.02058209292590618, -0.0031258512753993273, -0.0028701741248369217, -0.01197880320250988, -0.01705927960574627, -0.008107077330350876, 0.00788961537182331, -0.019804224371910095, -0.005897659808397293, 0.022488705813884735, 0.002584384987130761, -0.03308626264333725, 0.007423535455018282, 0.010388136841356754, -0.016772741451859474, -0.010315722785890102, 0.0037620505318045616, -0.021114066243171692, 0.041888199746608734, -0.013331739231944084, -0.023799749091267586, -0.006229916121810675, -0.010697097517549992, 0.002870629308745265, -0.026462052017450333, -0.014093280769884586, -0.03364487737417221, 0.000014094889593252447, 0.03222595900297165, 0.007760901004076004, -0.027516113594174385, -0.025385545566678047, 0.01592976599931717, -0.01233293954282999, -0.002140527591109276, 0.015633326023817062, 0.007209802977740765, 0.015359366312623024, -0.017299525439739227, 0.018827315419912338, 0.04710470139980316, -0.0025725774466991425, 0.053411535918712616, 0.020731287077069283, 0.02633264847099781, 0.012262918055057526, -0.02169433981180191, 0.011948379687964916, 0.036489419639110565, 0.004436738323420286, -1.2800875914820153e-8, -0.017645809799432755, 0.01550103910267353, -0.034607503563165665, -0.006114977411925793, 0.03913485258817673, -0.006058443803340197, 0.030434750020503998, -0.00521876523271203, -0.03242138773202896, 0.04219384118914604, 0.03765103220939636, -0.03878228738903999, -0.021306779235601425, 0.018695926293730736, 0.014620581641793251, -0.05243346095085144, -0.04321574047207832, 0.0031245516147464514, 0.013074214570224285, 0.011448327451944351, 0.04141256958246231, 0.012755769304931164, -0.03155311569571495, 0.005870938301086426, 0.038999613374471664, 0.010402552783489227, -0.019245192408561707, -0.07686769962310791, 0.01079112384468317, -0.05306628346443176, -0.012369389645755291, -0.014955122955143452, -0.0358724370598793, 0.00664867926388979, -0.022513804957270622, -0.03236529231071472, 0.002643111627548933, 0.02133243903517723, 0.035535749047994614, 0.00372599926777184, 0.003594485344365239, -0.008781091310083866, -0.007330888416618109, -0.021830273792147636, -0.03709064796566963, 0.0498448945581913, -0.034043531864881516, -0.01743462309241295, -0.008789526298642159, -0.028530344367027283, 0.010243725962936878, -0.032937321811914444, 0.029797092080116272, 0.022829441353678703, 0.013690575957298279, 0.002662764862179756, 0.013857810758054256, -0.008692645467817783, 0.012398072518408298, -0.06505052000284195, -0.03320462629199028, -0.012874950654804707, -0.02781056798994541, -0.047291986644268036 ]
r-featuring-engineering-for-a-linear-model
https://markhneedham.com/blog/2014/12/28/r-featuring-engineering-for-a-linear-model
false
2014-12-07 19:29:01
R: String to Date or NA
[ "r-2", "rstats" ]
[ "R" ]
I've been trying to clean up a CSV file which contains some rows with dates and some not - I only want to keep the cells which do have dates so I've been trying to work out how to do that. My first thought was that I'd try and find a function which would convert the contents of the cell into a date if it was in date format and NA if not. I could then filter out the NA values using the +++<cite>+++http://www.statmethods.net/input/missingdata.html[is.na]+++</cite>+++ function. I started out with the +++<cite>+++http://www.statmethods.net/input/dates.html[as.Date]+++</cite>+++ function\... [source,r] ---- > as.Date("2014-01-01") [1] "2014-01-01" > as.Date("foo") Error in charToDate(x) : character string is not in a standard unambiguous format ---- \...but that throws an error if we have a non date value so it's not so useful in this case. Instead we can make use of the +++<cite>+++http://stackoverflow.com/questions/14755425/what-are-the-standard-unambiguous-date-formats[strptime]+++</cite>+++ function which does exactly what we want: [source,r] ---- > strptime("2014-01-01", "%Y-%m-%d") [1] "2014-01-01 GMT" > strptime("foo", "%Y-%m-%d") [1] NA ---- We can then feed those values into +++<cite>+++is.na+++</cite>+++.. [source,r] ---- > strptime("2014-01-01", "%Y-%m-%d") %>% is.na() [1] FALSE > strptime("foo", "%Y-%m-%d") %>% is.na() [1] TRUE ---- \...and we have exactly the behaviour we were looking for.
null
null
[ -0.012165556661784649, -0.004355010110884905, -0.009982186369597912, 0.025620609521865845, 0.08534269034862518, -0.00434891739860177, 0.01715799979865551, 0.009242739528417587, 0.01718142442405224, 0.009489772841334343, -0.0157425906509161, 0.017849436029791832, -0.06939607858657837, 0.024158015847206116, -0.014253312721848488, 0.09131287783384323, 0.07390415668487549, -0.031377844512462616, 0.021270979195833206, -0.015591342002153397, 0.015533995814621449, 0.03379792720079422, 0.005859206896275282, 0.03800303861498833, 0.04517761245369911, -0.03715940937399864, -0.021216828376054764, 0.0073339748196303844, -0.044939346611499786, 0.006933283060789108, 0.06063369661569595, 0.041815899312496185, -0.003880211152136326, 0.00961102545261383, 0.025064237415790558, -0.009582944214344025, -0.018557213246822357, 0.016666775569319725, 0.007585963234305382, 0.036025743931531906, -0.075748011469841, 0.013174107298254967, -0.012384308502078056, 0.013103662058711052, -0.014565098099410534, 0.005692291539162397, -0.0039416528306901455, 0.003097397508099675, -0.03247043862938881, 0.018201220780611038, -0.04217099770903587, 0.01107783056795597, 0.0121565330773592, -0.033133167773485184, -0.01792122982442379, 0.053165335208177567, 0.011773476377129555, -0.06978906691074371, 0.01535117533057928, -0.02784072980284691, 0.030976010486483574, -0.028602929785847664, -0.04248562455177307, 0.006302178837358952, 0.01218061987310648, -0.026419363915920258, -0.0008279666071757674, 0.024606529623270035, -0.051003485918045044, -0.030147066339850426, -0.005341161973774433, 0.013658222742378712, -0.025224190205335617, -0.028795382007956505, 0.0019292515935376287, -0.024291152134537697, -0.030068447813391685, 0.038911283016204834, -0.0012880887370556593, 0.041957251727581024, 0.007312051020562649, 0.008601013571023941, 0.029313432052731514, 0.015403895638883114, 0.02269178070127964, -0.03598640486598015, -0.055468134582042694, -0.022615311667323112, -0.05765858665108681, 0.029522215947508812, -0.006506237201392651, 0.0022374994587153196, 0.04978640004992485, -0.00498481560498476, 0.006583790760487318, 0.005056473892182112, 0.009202810004353523, -0.029602253809571266, 0.032842040061950684, 0.007447640877217054, -0.0785166323184967, -0.03737439960241318, 0.057187873870134354, 0.007930111140012741, -0.07817396521568298, -0.019782405346632004, -0.015115167014300823, 0.002305161440744996, 0.018681110814213753, -0.011183158494532108, -0.019366910681128502, 0.006204701494425535, -0.02448847144842148, -0.024504467844963074, -0.06403101235628128, 0.024882787838578224, 0.01868765987455845, -0.019871385768055916, -0.013108961284160614, 0.017502956092357635, 0.040139321237802505, -0.017474515363574028, -0.014097354374825954, 0.06014632061123848, 0.01420671958476305, 0.040986496955156326, 0.026397280395030975, 0.06817533075809479, -0.011774643324315548, -0.06488867849111557, -0.046227678656578064, 0.05051214247941971, -0.021670643240213394, 0.0072041526436805725, -0.0016493421280756593, -0.03333878517150879, -0.042857058346271515, -0.003778766840696335, 0.07305779308080673, 0.029602643102407455, 0.009333723224699497, 0.0006964401109144092, 0.008365659974515438, -0.008273429237306118, 0.034043993800878525, 0.00945417582988739, -0.011772935278713703, -0.03169689327478409, -0.044081687927246094, -0.01804126612842083, 0.04135558381676674, 0.022498775273561478, 0.074443519115448, -0.01595454290509224, 0.012468204833567142, 0.08265186846256256, 0.0035505909472703934, 0.046009890735149384, -0.04251455143094063, 0.00963350385427475, 0.03348172456026077, 0.060785237699747086, -0.016996094956994057, 0.027885515242815018, -0.014213962480425835, -0.015537051483988762, 0.011391118168830872, 0.012610594742000103, -0.034120313823223114, -0.003060536226257682, -0.04934772104024887, -0.042399268597364426, 0.0853375792503357, -0.03188366815447807, 0.005544088315218687, 0.03812412917613983, 0.08436932414770126, 0.015222757123410702, 0.032350003719329834, 0.0022670526523143053, -0.07694859057664871, 0.07767944782972336, -0.014958173036575317, 0.02176152914762497, 0.027264678850769997, 0.004966442938894033, 0.07613295316696167, -0.016354398801922798, 0.03640137240290642, 0.04817693307995796, -0.06912842392921448, -0.05679183453321457, -0.02063840627670288, -0.026844577863812447, 0.02476278506219387, -0.026167236268520355, -0.02169986069202423, 0.08393996953964233, -0.03928838297724724, 0.048924755305051804, 0.01581806316971779, -0.0036082929000258446, 0.03015635348856449, -0.011223142966628075, -0.0322391502559185, 0.02412876859307289, 0.03079891763627529, 0.001872351742349565, 0.05199636518955231, 0.03921636566519737, -0.012148411944508553, 0.04120306298136711, 0.046566881239414215, -0.020590273663401604, 0.04216326028108597, 0.04515160620212555, 0.08243177086114883, -0.004531750455498695, 0.0394497774541378, -0.05628940090537071, 0.050226543098688126, -0.010194951668381691, -0.018962645903229713, -0.0476149320602417, -0.007357683964073658, 0.14007675647735596, 0.05019822344183922, 0.003774886718019843, -0.04347480461001396, 0.023529265075922012, -0.014941029250621796, -0.052127908915281296, 0.016059458255767822, -0.0019845268689095974, 0.0025000665336847305, 0.036820702254772186, 0.004057588521391153, 0.005493693519383669, -0.01615288481116295, -0.0043070497922599316, 0.04123641550540924, 0.06932234764099121, 0.021389788016676903, 0.03917163982987404, -0.02423754334449768, -0.02613692171871662, -0.01894724927842617, -0.018164170905947685, -0.03373844176530838, -0.015389484353363514, 0.024997901171445847, 0.0066414182074368, 0.04680114984512329, -0.025001225993037224, -0.04995279759168625, -0.003558916039764881, -0.07641011476516724, 0.03523741289973259, 0.09040471166372299, 0.02269645594060421, -0.009677333757281303, 0.023416200652718544, -0.04041777551174164, -0.02652640827000141, -0.03399035707116127, -0.050763554871082306, -0.018260452896356583, -0.005622013937681913, 0.009831883013248444, 0.011447401717305183, 0.025747045874595642, -0.000055933687690412626, 0.0002771008003037423, 0.020507384091615677, -0.014609940350055695, -0.01109944935888052, 0.031132278963923454, -0.007707423530519009, -0.018573807552456856, -0.021133940666913986, 0.02147102914750576, 0.062021203339099884, -0.03717247024178505, -0.028200170025229454, -0.023321986198425293, -0.07647779583930969, 0.04686158895492554, -0.02150162309408188, -0.018704060465097427, -0.02637673169374466, -0.007899336516857147, 0.02927383780479431, -0.0018992561381310225, 0.00010307185584679246, 0.059960249811410904, 0.02506500668823719, 0.028617894276976585, 0.008781692013144493, 0.01878373511135578, 0.02856689691543579, 0.018520954996347427, 0.01215401478111744, 0.11149639636278152, 0.008772449567914009, 0.00902480073273182, -0.04313855245709419, -0.01291849184781313, -0.02372339926660061, -0.2427523136138916, 0.03575396165251732, -0.06221889331936836, -0.026703400537371635, 0.016299935057759285, -0.03971918672323227, 0.03511103615164757, -0.03705166280269623, -0.04151948541402817, -0.014193614944815636, -0.00028181527159176767, -0.020314449444413185, -0.0382922999560833, 0.053759656846523285, 0.03379673883318901, -0.030795516446232796, -0.01192203164100647, -0.06723837554454803, 0.025996213778853416, 0.04238084331154823, 0.019139133393764496, -0.03468407317996025, 0.019485699012875557, 0.07703080028295517, 0.008292320184409618, 0.08823887258768082, -0.03904218599200249, 0.03292904794216156, -0.053850408643484116, -0.04202903062105179, -0.002463126555085182, -0.032060399651527405, 0.027728136628866196, -0.0517607219517231, 0.020430512726306915, -0.012719064950942993, 0.03562184423208237, 0.03970011696219444, 0.04209204018115997, 0.037623897194862366, -0.024900589138269424, -0.028387723490595818, 0.012564986944198608, 0.00208834744989872, 0.0713142678141594, 0.015397137962281704, -0.04352588579058647, 0.0016852905973792076, -0.02612365037202835, 0.0639263242483139, -0.02479522116482258, 0.003844649763777852, -0.02658749558031559, 0.01564912125468254, -0.03479735925793648, -0.011738615110516548, -0.0305677130818367, -0.0266646146774292, -0.02257646806538105, -0.02958270162343979, -0.012465354055166245, -0.037672556936740875, -0.0023234898690134287, -0.05114774778485298, -0.043387435376644135, -0.07060537487268448, -0.09404673427343369, -0.03830953314900398, 0.05475286394357681, 0.057956188917160034, -0.032613229006528854, -0.010045877657830715, 0.008318249136209488, -0.09573885798454285, 0.01605326123535633, -0.049010973423719406, -0.02409796230494976, -0.021448390558362007, -0.0334298349916935, 0.03747051581740379, -0.04562614485621452, -0.059070147573947906, 0.028201492503285408, 0.019304944202303886, 0.01621484011411667, -0.045421916991472244, 0.021028054878115654, 0.0014251209795475006, -0.03881366178393364, -0.0385834239423275, 0.0657733678817749, 0.007264285814017057, 0.009282554499804974, 0.0170686487108469, -0.006694093346595764, 0.044098418205976486, 0.004129093140363693, -0.01819222792983055, 0.04528959095478058, -0.0004215340886730701, 0.020245729014277458, -0.06665810942649841, 0.030609194189310074, -0.07344488054513931, -0.002950309542939067, -0.05207919701933861, -0.0459028035402298, 0.04176654666662216, 0.005374389234930277, 0.00897673238068819, 0.01953217014670372, 0.006319815758615732, 0.004662978462874889, -0.06160648539662361, -0.026417287066578865, -0.0017109144246205688, 0.015566864050924778, 0.011355212889611721, 0.028880730271339417, -0.004909534938633442, -0.03311577066779137, -0.011639632284641266, 0.00407816655933857, -0.03381197899580002, -0.044981587678194046, -0.02940014936029911, 0.023991059511899948, 0.007510436233133078, 0.02570769190788269, 0.0029473097529262304, -0.032185107469558716, 0.007029796950519085, 0.0272161066532135, -0.03178234398365021, 0.0417933352291584, -0.015892677009105682, -0.014362185262143612, -0.02444322779774666, 0.001303088036365807, 0.0029673196841031313, 0.02541467174887657, -0.014058089815080166, -0.020722968503832817, 0.016213366761803627, 0.016737202182412148, -0.0016363791655749083, 0.03594348579645157, 0.00914961751550436, 0.011170098558068275, 0.03973691910505295, -0.029647815972566605, -0.03599594533443451, 0.0012947157956659794, -0.012927470728754997, -0.04300880432128906, 0.019977454096078873, 0.044096000492572784, 0.026127435266971588, -0.031836554408073425, -0.0374133326113224, 0.0074555291794240475, -0.027997439727187157, -0.03666406124830246, -0.0572756789624691, -0.03050767444074154, 0.04322679340839386, 0.009660054929554462, 0.03435216471552849, 0.026159850880503654, 0.019140705466270447, -0.02111108787357807, 0.0033525764010846615, -0.00016079616034403443, -0.012132806703448296, 0.0023928782902657986, -0.023620177060365677, 0.0577334426343441, 0.014645891264081001, 0.00891237985342741, 0.004626012407243252, -0.003764413995668292, -0.02829539217054844, -0.015122064389288425, -0.004123687744140625, 0.015179481357336044, 0.03726020082831383, 0.0027621518820524216, -0.019274583086371422, -0.02597063221037388, -0.03900957107543945, -0.05215081572532654, -0.051832858473062515, -0.009065910242497921, -0.05413123592734337, -0.033710770308971405, -0.06767484545707703, 0.003547020023688674, 0.04039992764592171, 0.010347695089876652, 0.015483733266592026, -0.01700173132121563, -0.01369339320808649, -0.050821542739868164, 0.016992662101984024, 0.011714285239577293, -0.05232953652739525, 0.022024452686309814, -0.007951529696583748, -0.016642095521092415, 0.022655006498098373, 0.026861432939767838, -0.03557370975613594, 0.01699052006006241, -0.0028699017129838467, 0.03946080431342125, 0.0007322668679989874, -0.027338366955518723, -0.026786495000123978, -0.000438910472439602, -0.0099393455311656, 0.022903021425008774, -0.0053412732668221, -0.007327189669013023, -0.004542356822639704, 0.01294811349362135, 0.03198578581213951, -0.0103950509801507, -0.0012304693227633834, 0.052284225821495056, 0.011690952815115452, 0.01705799624323845, -0.02985413186252117, 0.011900576762855053, 0.016160577535629272, -0.019397085532546043, -0.05113646760582924, -0.06224067881703377, -0.013516527600586414, -0.014771528542041779, 0.07495134323835373, -0.004334559664130211, -0.004344070330262184, -0.03345896676182747, 0.004070139490067959, -0.014162438921630383, -0.00837709754705429, 0.0028632506728172302, -0.0010591329773887992, 0.03389526531100273, 0.07752779126167297, 0.03266381844878197, 0.01547915767878294, -0.01730869524180889, -0.04294177144765854, 0.04687797650694847, -0.02400503121316433, -0.05694499611854553, 0.00333318579941988, -0.03288282826542854, 0.015432535670697689, 0.0255973432213068, 0.015184404328465462, -0.014037257060408592, 0.050457682460546494, 0.04651586711406708, 0.023154418915510178, 0.07072167098522186, -0.0015570371178910136, 0.02345414273440838, -0.0167721975594759, -0.0064071002416312695, -0.093269944190979, 0.03162636607885361, 0.03756047412753105, 0.0026591052301228046, -0.027895422652363777, -0.01922125183045864, -0.01806308887898922, 0.0038515874184668064, -0.03436610847711563, -0.0500718355178833, 0.04767084866762161, 0.006378252990543842, 0.03996386006474495, 0.0198693685233593, -0.04458662495017052, 0.013691780157387257, 0.05345631390810013, -0.044291410595178604, -0.019870394840836525, -0.04023338109254837, 0.06453241407871246, -0.030394865199923515, 0.006891089025884867, -0.04771706461906433, 0.01423166785389185, 0.0641668513417244, 0.03528488799929619, 0.02718999981880188, 0.03624792397022247, -0.02902393974363804, 0.03147485852241516, 0.03435623273253441, -0.03526287525892258, -0.030713340267539024, 0.01616368629038334, 0.0005308573599904776, -0.04448270797729492, -0.03131109103560448, 0.038815442472696304, -0.013776823878288269, -0.033635303378105164, 0.08166740834712982, -0.023220868781208992, -0.018553797155618668, -0.0521044097840786, -0.020555537194013596, -0.02110161818563938, 0.03457087650895119, -0.0019655765499919653, -0.011659806594252586, -0.024364955723285675, 0.04187192767858505, -0.014257045462727547, 0.0014436485944315791, 0.07449193298816681, -0.006925712805241346, 0.009405536577105522, 0.006083445157855749, 0.06389907002449036, 0.07818280905485153, 0.03329599276185036, -0.002851956756785512, 0.0476408377289772, -0.023445671424269676, -0.033127155154943466, 0.018381474539637566, -0.04514702409505844, 0.015816161409020424, -0.01798417419195175, 0.026147956028580666, 0.07163139432668686, -0.038001593202352524, 0.04094335064291954, -0.017734011635184288, -0.03580739349126816, -0.009123790077865124, -0.04252457618713379, 0.01543586328625679, 0.0012813132489100099, 0.008395838551223278, 0.01053368765860796, 0.014578832313418388, 0.004123732913285494, 0.05869394540786743, 0.01522456668317318, -0.02771182358264923, 0.013223569840192795, 0.001010647974908352, 0.004651394672691822, -0.02783649042248726, 0.04590533673763275, 0.04964526370167732, 0.011355508118867874, -0.006857702042907476, 0.03797946870326996, 0.05643605813384056, -0.018071336671710014, 0.030456922948360443, -0.0009932097746059299, -0.022629685699939728, -0.023908870294690132, -0.03595884516835213, -0.005711684003472328, 0.01819894276559353, -0.038551781326532364, 0.027291499078273773, -0.03432394191622734, 0.008411492221057415, 0.015465069562196732, -0.04689868539571762, -0.04146232828497887, -0.046085555106401443, -0.05852130427956581, -0.04209170490503311, -0.0995626449584961, -0.034979384392499924, 0.018916573375463486, -0.05888151377439499, -0.045593589544296265, -0.010800553485751152, -0.00146463792771101, 0.002966471016407013, -0.015270968899130821, -0.033819254487752914, -0.04132212698459625, 0.0388559028506279, 0.007798420265316963, 0.013071504421532154, 0.020127790048718452, 0.024659289047122, 0.001406925031915307, -0.022961415350437164, -0.010436860844492912, -0.03412720561027527, 0.022778166458010674, -0.003251624759286642, -0.0032476356718689203, -0.06776369363069534, 0.015075134113430977, 0.03173039108514786, -0.03236473351716995, -0.08712010085582733, 0.04121771082282066, 0.022756006568670273, -0.02036663331091404, 0.043863892555236816, -0.016107261180877686, 0.004453696310520172, -0.002660148311406374, -0.045218899846076965, -0.008698133751749992, 0.02993370220065117, 0.03635679930448532, -0.01897030510008335, 0.07547838985919952, 0.06432127952575684, 0.008597739972174168, -0.037008531391620636, -0.026869498193264008, -0.017671039327979088, -0.00007209077739389613, -0.07940834760665894, -0.038875311613082886, -0.07541681826114655, -0.05446861311793327, -0.042086921632289886, -0.005617957562208176, -0.06475361436605453, -0.016238447278738022, 0.03877655416727066, 0.02147781476378441, -0.02738243155181408, 0.017964696511626244, -0.0300340186804533, 0.009885263629257679, -0.0306056197732687, -0.002991980640217662, -0.02392391860485077, 0.0419129952788353, 0.021220117807388306, 0.006916232407093048, 0.01588072068989277, -0.04761257767677307, 0.02859620377421379, -0.013627761974930763, -0.027471624314785004, 0.05702586472034454, 0.0064784809947013855, 0.03204262629151344 ]
[ -0.09252461045980453, 0.005839156918227673, -0.010091135278344154, -0.018293965607881546, 0.06258221715688705, -0.07991426438093185, -0.020260466262698174, -0.01563887670636177, 0.02522553876042366, 0.025368807837367058, 0.04092700779438019, -0.041623201221227646, 0.00909411534667015, -0.010876970365643501, 0.001741382060572505, -0.03831601142883301, -0.064144566655159, -0.05069423094391823, -0.02908620424568653, 0.05660949647426605, -0.011601381935179234, -0.011368721723556519, -0.0644308403134346, -0.044867902994155884, 0.0437290295958519, 0.028760680928826332, 0.00511176185682416, -0.06842759996652603, -0.03112649731338024, -0.22328528761863708, -0.012633290141820908, 0.017968473955988884, 0.007431825622916222, -0.0025104747619479895, 0.010020660236477852, -0.010114054195582867, 0.058494530618190765, 0.009321111254394054, 0.01816975325345993, 0.03989819809794426, 0.006989642512053251, -0.009683013893663883, -0.024962499737739563, -0.032568614929914474, 0.004043833818286657, 0.002753882436081767, -0.029133563861250877, 0.005892501678317785, 0.01591709814965725, 0.0593465194106102, -0.04480534791946411, 0.008175263181328773, -0.014511953108012676, -0.011178896762430668, 0.002410792512819171, 0.053189441561698914, 0.03976837173104286, 0.030789876356720924, -0.0016726570902392268, 0.019882598891854286, -0.014217272400856018, -0.009432884864509106, -0.14441516995429993, 0.12430595606565475, -0.01193710882216692, 0.01820918172597885, -0.02476547099649906, 0.013917269185185432, -0.04761854559183121, 0.03812367096543312, -0.023261524736881256, -0.0277545265853405, -0.048802997916936874, 0.0863361731171608, 0.03747069835662842, -0.03930634260177612, -0.028642049059271812, -0.0035527765285223722, 0.036855123937129974, -0.011971740983426571, -0.04822448641061783, -0.0031275786459445953, 0.021176880225539207, -0.015079475939273834, 0.0004453274596016854, 0.01643241196870804, -0.004206405952572823, 0.015354094095528126, 0.00010174998169532046, 0.014974028803408146, 0.032670196145772934, 0.009480488486588001, 0.031074779108166695, 0.046409722417593, -0.06733047962188721, -0.02384134940803051, 0.014646871946752071, 0.018490411341190338, 0.015826676040887833, 0.404581755399704, -0.05326475575566292, 0.013514397665858269, -0.018402976915240288, 0.029877206310629845, -0.02891896665096283, -0.016256898641586304, 0.004637300036847591, -0.03281260281801224, -0.00208867690525949, -0.04748474061489105, -0.0254200492054224, -0.017435399815440178, 0.042927712202072144, -0.10523652285337448, 0.0350019596517086, 0.032249219715595245, 0.07084773480892181, -0.011831605806946754, -0.012753183953464031, 0.027492230758070946, 0.02058377116918564, -0.024807613343000412, 0.046922020614147186, 0.03687068819999695, 0.018199870362877846, 0.010662606917321682, 0.04874859005212784, 0.0572504885494709, 0.040155671536922455, 0.016742585226893425, 0.07782633602619171, -0.03616933524608612, -0.08569347858428955, -0.00375673221424222, -0.014438212849199772, 0.0037164250388741493, -0.02923000231385231, -0.060792502015829086, -0.012579296715557575, -0.02767908200621605, -0.038438450545072556, -0.05423305183649063, 0.01886868104338646, -0.007407008204609156, -0.04833965748548508, 0.11541732400655746, -0.007089524529874325, -0.025223612785339355, -0.014042512513697147, -0.08563941717147827, -0.023261474445462227, 0.01816345378756523, 0.04559408873319626, -0.05170561745762825, 0.02188548631966114, 0.0192467849701643, 0.08128505200147629, -0.04613525792956352, -0.08669567108154297, -0.037082891911268234, -0.045104220509529114, -0.02364836260676384, -0.05250234156847, 0.0873890295624733, 0.06145045533776283, -0.07896450161933899, -0.04813452437520027, 0.026259005069732666, 0.03782337158918381, -0.06864689290523529, 0.023679940029978752, -0.009702692739665508, -0.02345392107963562, 0.0013904573861509562, 0.08215674012899399, 0.011230175383388996, 0.00721780676394701, -0.010541706345975399, 0.05912429466843605, 0.024214396253228188, -0.012063472531735897, 0.010344494134187698, -0.047816041857004166, 0.06309503316879272, -0.028092799708247185, -0.07130978256464005, -0.023643340915441513, 0.01253246609121561, 0.004412490874528885, 0.025513455271720886, 0.0025094784796237946, -0.04216203838586807, -0.05795074999332428, 0.033650755882263184, -0.06424244493246078, -0.012141893617808819, -0.009214351885020733, 0.020671190693974495, 0.007893850095570087, -0.05771747976541519, 0.00932871364057064, -0.026367133483290672, 0.009274872951209545, 0.0061684586107730865, 0.01818734221160412, -0.018335256725549698, 0.06474722176790237, -0.07421691715717316, 0.06323172152042389, 0.042774662375450134, -0.010222126729786396, 0.031481873244047165, -0.015070521272718906, -0.026275107637047768, 0.028746871277689934, -0.021808715537190437, 0.021597953513264656, -0.04094966873526573, 0.0241328664124012, 0.044743966311216354, -0.03529370203614235, -0.055470164865255356, -0.023820482194423676, -0.32737335562705994, -0.0020524323917925358, 0.0077142068184912205, -0.013805405236780643, 0.05389580503106117, -0.03271118178963661, -0.018385300412774086, -0.018490657210350037, -0.012595782056450844, 0.06440645456314087, 0.039942216128110886, -0.004105766769498587, -0.013215581886470318, -0.09230756014585495, -0.0026887834537774324, 0.020816387608647346, 0.021048998460173607, -0.04646691679954529, -0.0046003712341189384, 0.038720495998859406, 0.022409768775105476, -0.052149273455142975, -0.018142065033316612, -0.01162512507289648, 0.04971228539943695, -0.026692422106862068, 0.10027358680963516, -0.0030106697231531143, 0.06802628934383392, -0.03608720377087593, 0.04091230779886246, 0.010592682287096977, 0.00289277546107769, -0.0751751959323883, -0.02629677765071392, -0.04856950789690018, -0.027953876182436943, 0.044146858155727386, 0.009848819114267826, -0.0077395960688591, -0.013394433073699474, -0.017559714615345, -0.015733784064650536, 0.005423711147159338, 0.022550275549292564, 0.018469709903001785, 0.04109380021691322, 0.01723002828657627, -0.025383392348885536, 0.05042338743805885, 0.01839340664446354, -0.012851335108280182, 0.03161855414509773, 0.07303042709827423, 0.041642263531684875, -0.004814533516764641, -0.06128103658556938, 0.009965470060706139, -0.004384239204227924, -0.043799418956041336, -0.01370567549020052, 0.007665327750146389, 0.037213895469903946, -0.038429081439971924, -0.03253069519996643, 0.03581713140010834, 0.007038495969027281, -0.028151098638772964, 0.009092498570680618, 0.021949687972664833, -0.03817914426326752, 0.07382932305335999, -0.038203977048397064, 0.003555768635123968, 0.004597852937877178, 0.07739696651697159, -0.057104043662548065, 0.0315367616713047, 0.005417096894234419, 0.006093806587159634, 0.024803437292575836, -0.008852874860167503, 0.05228690057992935, 0.007413674611598253, 0.05102239549160004, 0.043311234563589096, -0.013556241057813168, -0.0038955421186983585, 0.01736602745950222, 0.0016256882809102535, 0.007256599608808756, -0.06502571702003479, 0.004872971214354038, -0.04619596153497696, 0.08878815174102783, 0.012758878991007805, -0.25248441100120544, 0.022491848096251488, 0.06485544145107269, 0.0450255423784256, -0.0020555024966597557, -0.0008569772471673787, -0.03890685737133026, -0.05063248053193092, -0.028613992035388947, 0.04380934312939644, 0.005441110115498304, 0.03852180391550064, 0.008813884109258652, -0.023464934900403023, 0.013609320856630802, -0.01066101435571909, 0.06718176603317261, 0.002830083481967449, 0.035830624401569366, 0.032566480338573456, 0.05664416402578354, -0.04885847121477127, 0.1734328418970108, 0.01300348062068224, 0.03181419149041176, 0.02245880477130413, 0.00004470224303076975, -0.0011653121327981353, 0.0796162337064743, 0.0075926571153104305, 0.037652354687452316, 0.009451143443584442, 0.06512674689292908, 0.04575066640973091, 0.010303756222128868, -0.03805897384881973, -0.03321792930364609, 0.0782596543431282, -0.0023408273700624704, -0.046049803495407104, -0.04713616520166397, 0.04238130897283554, -0.05873360112309456, 0.006152207963168621, 0.05778145045042038, -0.0009878959972411394, -0.0012233208399266005, -0.04784540459513664, -0.013231937773525715, -0.04254228249192238, -0.036624182015657425, 0.019176477566361427, -0.025649363175034523, -0.008826844394207, -0.0007785290945321321, 0.04713480919599533, 0.03713938593864441, -0.0410778746008873, 0.04542148485779762, 0.03540307655930519, 0.013236369006335735, -0.04063580557703972, 0.08666006475687027, 0.019310738891363144, -0.0028331559151411057 ]
[ -0.003417144063860178, 0.040637627243995667, -0.0027220132760703564, 0.02792675979435444, -0.009503612294793129, 0.038698311895132065, -0.04783058166503906, 0.005299372132867575, 0.010050097480416298, -0.01792837679386139, -0.01911466009914875, -0.028271423652768135, 0.007392950356006622, -0.06301252543926239, -0.0020455317571759224, -0.022936461493372917, 0.004441229626536369, -0.025458084419369698, 0.07006283849477768, -0.017837321385741234, -0.0034513110294938087, 0.04063393548130989, -0.022960513830184937, -0.0030494199600070715, 0.011861464940011501, 0.03843292221426964, -0.04055939242243767, -0.005146618001163006, -0.00175246293656528, -0.12010938674211502, -0.05963248759508133, 0.01315285637974739, -0.00893594790250063, 0.01913370005786419, -0.0119026442989707, -0.0031628741417080164, -0.03568623960018158, 0.05479533225297928, 0.030640333890914917, 0.018116122111678123, -0.027476418763399124, 0.014553036540746689, 0.05767785757780075, -0.007881088182330132, -0.01626330427825451, -0.01796436868607998, 0.006402431987226009, -0.017714926972985268, -0.052459731698036194, 0.015090576373040676, -0.0421377457678318, -0.006900301668792963, -0.007440394721925259, -0.017626643180847168, 0.03240393474698067, -0.013208323158323765, -0.049283575266599655, -0.016506021842360497, 0.00646153325214982, -0.02758210524916649, -0.010698056779801846, 0.00789470225572586, -0.05267282947897911, -0.016774622723460197, 0.036669984459877014, -0.03816123306751251, -0.04277488961815834, 0.009004682302474976, 0.01891947165131569, -0.008629041723906994, -0.007056651171296835, 0.008727004751563072, -0.03165515512228012, 0.025889556854963303, -0.030635632574558258, 0.03262082859873772, 0.000032316191209247336, -0.05800766870379448, 0.004598882980644703, -0.025734184309840202, -0.015554334968328476, 0.009294040501117706, 0.01377169881016016, 0.024324940517544746, 0.005260305013507605, -0.02946460247039795, -0.031100360676646233, 0.03975426033139229, -0.01010449044406414, -0.056241001933813095, 0.0006712378235533834, 0.008904077112674713, 0.009956440888345242, 0.010038290172815323, -0.05511416494846344, -0.002189768711104989, -0.011568494141101837, 0.003842867910861969, 0.025183817371726036, 0.8050479292869568, 0.03322259709239006, 0.050173502415418625, -0.039671845734119415, 0.027188224717974663, -0.003993217367678881, -0.008568241260945797, 0.03034566342830658, -0.018844880163669586, 0.007863715291023254, -0.017085280269384384, 0.013158275745809078, 0.014201648533344269, 0.02300103008747101, 0.0022829705849289894, 0.0031089254189282656, 0.040032174438238144, 0.03004300408065319, -0.03941556066274643, 0.0082634799182415, 0.0001727955532260239, -0.01692523993551731, 0.006873424164950848, -0.0029547002632170916, -0.01250466424971819, 0.017479658126831055, -0.14382389187812805, 0.03739878535270691, -6.638644753887178e-33, 0.00418411148712039, -0.008439832367002964, 0.030172858387231827, -0.03439009189605713, 0.06434990465641022, 0.022189464420080185, 0.006055301520973444, -0.031538743525743484, 0.037944842129945755, -0.028962671756744385, -0.005921734031289816, -0.009750207886099815, -0.01789967343211174, -0.06728699803352356, 0.013812771067023277, 0.004958158824592829, -0.003455630037933588, 0.02347983606159687, 0.026144618168473244, -0.025215167552232742, 0.041474420577287674, -0.012102109380066395, 0.029236437752842903, 0.04102214425802231, 0.01772339642047882, -0.005039766430854797, -0.00717410072684288, -0.009950513020157814, -0.0103739183396101, -0.051138248294591904, 0.005222153849899769, 0.041855212301015854, -0.026196787133812904, -0.005010499153286219, 0.07094059884548187, -0.05955679714679718, -0.01563313603401184, 0.013786510564386845, -0.012237234972417355, 0.0037666887510567904, -0.061990898102521896, -0.01987886056303978, -0.02621229737997055, -0.014958382584154606, -0.022760801017284393, -0.020417705178260803, 0.017517395317554474, 0.044176239520311356, 0.004871267359703779, 0.06740168482065201, -0.011544722132384777, 0.01016133651137352, 0.012627454474568367, -0.019591091200709343, -0.05313275009393692, 0.0450282022356987, -0.01731063611805439, -0.011427286081016064, 0.016798952594399452, 0.024200405925512314, 0.019034354016184807, 0.01549462415277958, -0.014684159308671951, -0.008856129832565784, -0.014950552955269814, 0.028797490522265434, 0.04242831468582153, -0.016973167657852173, 0.047551579773426056, 0.027000287547707558, -0.010454910807311535, 0.006943112704902887, 0.00100247364025563, -0.007977123372256756, 0.02416301891207695, 0.022522367537021637, 0.03470478951931, 0.008515996858477592, 0.06402189284563065, 0.013928900472819805, 0.04033440351486206, -0.017620326951146126, -0.016075437888503075, -0.016720695421099663, -0.010164739564061165, -0.028003210201859474, 0.01875859498977661, -0.004693471826612949, -0.00007986371201695874, 0.00959763489663601, 0.037064917385578156, -0.0070356931537389755, -0.046390362083911896, -0.03824678435921669, 0.006796533241868019, 6.606193028280821e-33, 0.047720540314912796, -0.010897303000092506, -0.006815166678279638, 0.015735521912574768, 0.038968123495578766, -0.04391855001449585, 0.00277592521160841, 0.032540593296289444, -0.016292838379740715, 0.01971093751490116, 0.04920567572116852, -0.019094260409474373, -0.020299920812249184, 0.050225820392370224, 0.045571357011795044, 0.003243360435590148, 0.006452535279095173, -0.01294921338558197, -0.05448345094919205, -0.0019310308853164315, -0.014404639601707458, 0.00800900999456644, -0.024176092818379402, 0.022710829973220825, 0.048138316720724106, 0.03388410061597824, -0.003109223209321499, -0.012595713138580322, -0.002782885916531086, 0.00478328438475728, -0.010840862058103085, 0.015045571140944958, -0.003994043450802565, -0.058904413133859634, -0.05080300197005272, 0.0441955104470253, 0.004560189787298441, -0.02188601903617382, 0.050731465220451355, -0.015648383647203445, 0.028865033760666847, 0.019769448786973953, -0.01629566214978695, -0.005921047180891037, 0.0365288183093071, 0.06695085763931274, 0.011739171110093594, 0.02816609852015972, 0.01886207051575184, -0.01054653711616993, -0.0043582250364124775, -0.009876319207251072, -0.003933242056518793, -0.01111343689262867, 0.03135424479842186, -0.021723374724388123, 0.018343748524785042, 0.0016561616212129593, -0.05158863589167595, -0.04522651061415672, -0.05327518284320831, -0.009514328092336655, -0.04313254728913307, -0.03566194698214531, -0.03439793735742569, -0.046089157462120056, 0.004201728850603104, -0.03797274827957153, 0.04025503993034363, 0.01274711824953556, 0.0011923715937882662, -0.030136767774820328, -0.020622199401259422, 0.013464015908539295, -0.03442063555121422, -0.011677705682814121, -0.021875688806176186, 0.04577921703457832, -0.025543667376041412, 0.010565019212663174, 0.022457800805568695, 0.034181199967861176, 0.0573592334985733, 0.029457706958055496, 0.0124573465436697, 0.041147198528051376, -0.042182669043540955, -0.023519456386566162, 0.013296944089233875, -0.005367364268749952, -0.04207220673561096, -0.05351847782731056, -0.03237656503915787, 0.06023485213518143, -0.012468951754271984, -1.2608266430902404e-8, -0.011784662492573261, 0.04896870627999306, -0.022098790854215622, -0.022328490391373634, 0.025568850338459015, -0.005961933638900518, -0.03500660881400108, -0.019258789718151093, 0.06157558783888817, 0.022843779996037483, 0.0654553547501564, -0.02764533832669258, 0.013925611041486263, 0.0012107581133022904, -0.007144168019294739, 0.015100556425750256, -0.022789420560002327, -0.011099341325461864, 0.025267062708735466, -0.021710887551307678, 0.01817302405834198, 0.009423093870282173, -0.005093492101877928, 0.010433459654450417, 0.04455063119530678, 0.02546793781220913, -0.019727973267436028, -0.0650525838136673, 0.0202640313655138, -0.009581898339092731, 0.05280003696680069, -0.023731591179966927, 0.012246739119291306, -0.04756610468029976, -0.02483947202563286, -0.04653812572360039, 0.03027954511344433, -0.014743639156222343, -0.03704705834388733, 0.007301707752048969, 0.0014632102102041245, 0.0043517909944057465, -0.05166293680667877, -0.01967587321996689, -0.037255823612213135, -0.022814122959971428, -0.030949808657169342, -0.015385502018034458, -0.006423641461879015, -0.041586197912693024, 0.011692410334944725, -0.004998462274670601, 0.023528622463345528, 0.05488071218132973, 0.04553176835179329, 0.020288189873099327, 0.022156452760100365, -0.013391184620559216, -0.04559081420302391, -0.019390419125556946, 0.0196633692830801, 0.016137035563588142, -0.011111193336546421, -0.03512580320239067 ]
r-string-to-date-or-na
https://markhneedham.com/blog/2014/12/07/r-string-to-date-or-na
false
2014-12-09 18:14:45
R: Cleaning up and plotting Google Trends data
[ "r-2", "rstats" ]
[ "R" ]
I recently came across an excellent article written by Stian Haklev in which he describes http://reganmian.net/blog/2014/10/14/starting-data-analysiswrangling-with-r-things-i-wish-id-been-told/[things he wishes he'd been told before starting out with R], one being to *do all data clean up in code* which I thought I'd give a try. ____ My goal is to leave the raw data completely unchanged, and do all the transformation in code, which can be rerun at any time. While I'm writing the scripts, I'm often jumping around, selectively executing individual lines or code blocks, running commands to inspect the data in the REPL (read-evaluate-print-loop, where each command is executed as soon as you type enter, in the picture above it's the pane to the right), etc. But I try to make sure that when I finish up, the script is runnable by itself. ____ I thought the http://www.google.com/trends/explore#q=neo4j[Google Trends data set] would be an interesting one to play around with as it gives you a CSV containing several different bits of data of which I'm only interested in 'interest over time'. It's not very easy to automate the download of the CSV file so I did that bit manually and automated everything from there onwards. The first step was to read the CSV file and explore some of the rows to see what it contained: [source,r] ---- > library(dplyr) > googleTrends = read.csv("/Users/markneedham/Downloads/report.csv", row.names=NULL) > googleTrends %>% head() ## row.names Web.Search.interest..neo4j ## 1 Worldwide; 2004 - present ## 2 Interest over time ## 3 Week neo4j ## 4 2004-01-04 - 2004-01-10 0 ## 5 2004-01-11 - 2004-01-17 0 ## 6 2004-01-18 - 2004-01-24 0 > googleTrends %>% sample_n(10) ## row.names Web.Search.interest..neo4j ## 109 2006-01-08 - 2006-01-14 0 ## 113 2006-02-05 - 2006-02-11 0 ## 267 2009-01-18 - 2009-01-24 0 ## 199 2007-09-30 - 2007-10-06 0 ## 522 2013-12-08 - 2013-12-14 88 ## 265 2009-01-04 - 2009-01-10 0 ## 285 2009-05-24 - 2009-05-30 0 ## 318 2010-01-10 - 2010-01-16 0 ## 495 2013-06-02 - 2013-06-08 79 ## 28 2004-06-20 - 2004-06-26 0 > googleTrends %>% tail() ## row.names Web.Search.interest..neo4j ## 658 neo4j example Breakout ## 659 neo4j graph database Breakout ## 660 neo4j java Breakout ## 661 neo4j node Breakout ## 662 neo4j rest Breakout ## 663 neo4j tutorial Breakout ---- We only want to keep the rows which contain (week, interest) pairs so the first thing we'll do is rename the columns: [source,r] ---- names(googleTrends) = c("week", "score") ---- Now we want to strip out the rows which don't contain (week, interest) pairs. The easiest way to do this is to look for rows which don't contain date values in the 'week' column. First we need to split the start and end dates in that column by using the +++<cite>+++strsplit+++</cite>+++ function. I found it much easier to apply the function to each row individually rather than passing in a list of values so I created a dummy column with a row number in to allow me to do that (a trick https://twitter.com/tonkouts[Antonios] showed me): [source,r] ---- > googleTrends %>% mutate(ind = row_number()) %>% group_by(ind) %>% mutate(dates = strsplit(week, " - "), start = dates[[1]][1] %>% strptime("%Y-%m-%d") %>% as.character(), end = dates[[1]][2] %>% strptime("%Y-%m-%d") %>% as.character()) %>% head() ## Source: local data frame [6 x 6] ## Groups: ind ## ## week score ind dates start end ## 1 Worldwide; 2004 - present 1 1 <chr[2]> NA NA ## 2 Interest over time 1 2 <chr[1]> NA NA ## 3 Week 90 3 <chr[1]> NA NA ## 4 2004-01-04 - 2004-01-10 3 4 <chr[2]> 2004-01-04 2004-01-10 ## 5 2004-01-11 - 2004-01-17 3 5 <chr[2]> 2004-01-11 2004-01-17 ## 6 2004-01-18 - 2004-01-24 3 6 <chr[2]> 2004-01-18 2004-01-24 ---- Now we need to get rid of the rows which have an NA value for 'start' or 'end': [source,r] ---- > googleTrends %>% mutate(ind = row_number()) %>% group_by(ind) %>% mutate(dates = strsplit(week, " - "), start = dates[[1]][1] %>% strptime("%Y-%m-%d") %>% as.character(), end = dates[[1]][2] %>% strptime("%Y-%m-%d") %>% as.character()) %>% filter(!is.na(start) | !is.na(end)) %>% head() ## Source: local data frame [6 x 6] ## Groups: ind ## ## week score ind dates start end ## 1 2004-01-04 - 2004-01-10 3 4 <chr[2]> 2004-01-04 2004-01-10 ## 2 2004-01-11 - 2004-01-17 3 5 <chr[2]> 2004-01-11 2004-01-17 ## 3 2004-01-18 - 2004-01-24 3 6 <chr[2]> 2004-01-18 2004-01-24 ## 4 2004-01-25 - 2004-01-31 3 7 <chr[2]> 2004-01-25 2004-01-31 ## 5 2004-02-01 - 2004-02-07 3 8 <chr[2]> 2004-02-01 2004-02-07 ## 6 2004-02-08 - 2004-02-14 3 9 <chr[2]> 2004-02-08 2004-02-14 ---- Next we'll get rid of 'week', 'ind' and 'dates' as we aren't going to need those anymore: [source,r] ---- > cleanGoogleTrends = googleTrends %>% mutate(ind = row_number()) %>% group_by(ind) %>% mutate(dates = strsplit(week, " - "), start = dates[[1]][1] %>% strptime("%Y-%m-%d") %>% as.character(), end = dates[[1]][2] %>% strptime("%Y-%m-%d") %>% as.character()) %>% filter(!is.na(start) | !is.na(end)) %>% ungroup() %>% select(-c(ind, dates, week)) > cleanGoogleTrends %>% head() ## Source: local data frame [6 x 3] ## ## score start end ## 1 3 2004-01-04 2004-01-10 ## 2 3 2004-01-11 2004-01-17 ## 3 3 2004-01-18 2004-01-24 ## 4 3 2004-01-25 2004-01-31 ## 5 3 2004-02-01 2004-02-07 ## 6 3 2004-02-08 2004-02-14 > cleanGoogleTrends %>% sample_n(10) ## Source: local data frame [10 x 3] ## ## score start end ## 1 8 2010-09-26 2010-10-02 ## 2 73 2013-11-17 2013-11-23 ## 3 52 2012-07-01 2012-07-07 ## 4 3 2005-06-19 2005-06-25 ## 5 3 2004-12-12 2004-12-18 ## 6 3 2009-09-06 2009-09-12 ## 7 71 2014-09-14 2014-09-20 ## 8 3 2004-12-26 2005-01-01 ## 9 62 2013-03-03 2013-03-09 ## 10 3 2006-03-19 2006-03-25 > cleanGoogleTrends %>% tail() ## Source: local data frame [6 x 3] ## ## score start end ## 1 80 2014-10-19 2014-10-25 ## 2 80 2014-10-26 2014-11-01 ## 3 84 2014-11-02 2014-11-08 ## 4 81 2014-11-09 2014-11-15 ## 5 83 2014-11-16 2014-11-22 ## 6 2 2014-11-23 2014-11-29 ---- Ok now we're ready to plot. This was my first attempt: [source,r] ---- > library(ggplot2) > ggplot(aes(x = start, y = score), data = cleanGoogleTrends) + geom_line(size = 0.5) ## geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic? ---- image::{{<siteurl>}}/uploads/2014/12/2014-12-09_17-57-49.png[2014 12 09 17 57 49,511] As you can see, not too successful! The first mistake I've made is not telling ggplot that the 'start' column is a date and so it can use that ordering when plotting: [source,r] ---- > cleanGoogleTrends = cleanGoogleTrends %>% mutate(start = as.Date(start)) > ggplot(aes(x = start, y = score), data = cleanGoogleTrends) + geom_line(size = 0.5) ---- image::{{<siteurl>}}/uploads/2014/12/2014-12-09_18-00-03.png[2014 12 09 18 00 03,510] My next mistake is that 'score' is not being treated as a continuous variable and so we're ending up with this very strange looking chart. We can see that if we call the +++<cite>+++class+++</cite>+++ function: [source,r] ---- > class(cleanGoogleTrends$score) ## [1] "factor" ---- Let's fix that and plot again: [source,r] ---- > cleanGoogleTrends = cleanGoogleTrends %>% mutate(score = as.numeric(score)) > ggplot(aes(x = start, y = score), data = cleanGoogleTrends) + geom_line(size = 0.5) ---- image::{{<siteurl>}}/uploads/2014/12/2014-12-09_18-02-39.png[2014 12 09 18 02 39,504] That's much better but there is quite a bit of noise in the week to week scores which we can flatten a bit by plotting a http://www.markhneedham.com/blog/2014/09/13/r-calculating-rolling-or-moving-averages/[rolling mean of the last 4 weeks instead]: [source,r] ---- > library(zoo) > cleanGoogleTrends = cleanGoogleTrends %>% mutate(rolling = rollmean(score, 4, fill = NA, align=c("right")), start = as.Date(start)) > ggplot(aes(x = start, y = rolling), data = cleanGoogleTrends) + geom_line(size = 0.5) ---- image::{{<siteurl>}}/uploads/2014/12/2014-12-09_18-05-26.png[2014 12 09 18 05 26,518] Here's the full code if you want to reproduce: [source,r] ---- library(dplyr) library(zoo) library(ggplot2) googleTrends = read.csv("/Users/markneedham/Downloads/report.csv", row.names=NULL) names(googleTrends) = c("week", "score") cleanGoogleTrends = googleTrends %>% mutate(ind = row_number()) %>% group_by(ind) %>% mutate(dates = strsplit(week, " - "), start = dates[[1]][1] %>% strptime("%Y-%m-%d") %>% as.character(), end = dates[[1]][2] %>% strptime("%Y-%m-%d") %>% as.character()) %>% filter(!is.na(start) | !is.na(end)) %>% ungroup() %>% select(-c(ind, dates, week)) %>% mutate(start = as.Date(start), score = as.numeric(score), rolling = rollmean(score, 4, fill = NA, align=c("right"))) ggplot(aes(x = start, y = rolling), data = cleanGoogleTrends) + geom_line(size = 0.5) ---- My next step is to plot the Google Trends scores against my meetup data set to see if there's any interesting correlations going on. _As an aside I made use of http://yihui.name/knitr/[knitr] while putting together this post - it works really well for checking that you've included all the steps and that it actually works!_
null
null
[ 0.0163901187479496, -0.013531806878745556, 0.0019980401266366243, 0.029078396037220955, 0.10681510716676712, 0.026840120553970337, 0.019779065623879433, 0.042051348835229874, 0.02612568810582161, -0.006127588450908661, -0.006917581427842379, -0.01086164265871048, -0.07083763927221298, 0.018079016357660294, -0.01464611291885376, 0.07583137601613998, 0.0704413503408432, 0.008259915746748447, 0.03060283325612545, 0.0011887187138199806, 0.02043355442583561, 0.05415055528283119, -0.007138492073863745, 0.03524283319711685, 0.024965550750494003, -0.009211413562297821, 0.010449171997606754, -0.010835754685103893, -0.06537289917469025, 0.01203737873584032, 0.054642222821712494, 0.01904994249343872, 0.017039751634001732, 0.005259552504867315, 0.017350753769278526, -0.0005650640814565122, -0.01979736052453518, 0.014919358305633068, -0.003907265141606331, 0.011607404798269272, -0.0627247616648674, 0.024918165057897568, -0.035203997045755386, 0.018939746543765068, -0.031020700931549072, 0.004063380416482687, -0.03635409474372864, 0.035758983343839645, -0.0003023082681465894, 0.015803538262844086, -0.05759308859705925, 0.04504523053765297, 0.006464783567935228, -0.03434223681688309, -0.02188323251903057, 0.05069579556584358, 0.029801100492477417, -0.07306636869907379, 0.01851671189069748, -0.04007716476917267, 0.0016910427948459983, -0.02248545177280903, -0.00830712728202343, 0.01862420327961445, 0.0023971828632056713, -0.03479616343975067, -0.0027502747252583504, 0.05225487798452377, -0.028744986280798912, -0.013919907622039318, -0.017210105434060097, 0.015963830053806305, -0.034561239182949066, -0.002076784148812294, -0.00009455010149395093, -0.04632338881492615, 0.0008617127314209938, 0.06712594628334045, 0.017154697328805923, 0.05027057230472565, -0.02681570313870907, 0.0018363556591793895, 0.018307315185666084, 0.0170697420835495, 0.010898287408053875, -0.062109701335430145, -0.010829558596014977, -0.039482299238443375, -0.03994973003864288, 0.040372334420681, 0.005105666350573301, -0.051742929965257645, 0.00901141669601202, 0.024544566869735718, -0.017398351803421974, 0.009855063632130623, 0.014054945670068264, 0.010908168740570545, 0.009579244069755077, -0.02047232910990715, -0.07624241709709167, -0.013213389553129673, 0.020579524338245392, 0.010557764209806919, -0.06317616999149323, -0.011097927577793598, -0.020491773262619972, -0.014389781281352043, 0.02104688435792923, 0.005595130380243063, -0.011423645541071892, -0.0035418332554399967, -0.028881216421723366, 0.010698136873543262, -0.08917158842086792, 0.08097532391548157, 0.009786510840058327, -0.023109493777155876, -0.013449951075017452, -0.0029420715291053057, 0.041971322149038315, 0.036850593984127045, -0.006949612405151129, 0.0728202685713768, -0.019426193088293076, 0.051628123968839645, 0.03329020366072655, 0.03123266063630581, -0.004420878831297159, -0.06715360283851624, -0.01150556281208992, 0.04512419179081917, -0.03734106570482254, 0.009885860607028008, -0.003267816035076976, -0.02277110144495964, -0.021421117708086967, 0.0011472849873825908, 0.0749659612774849, 0.05618598684668541, 0.04779276251792908, -0.037756431847810745, 0.02688411995768547, -0.006213189568370581, 0.05053292587399483, 0.00557325454428792, -0.007834108546376228, -0.024603666737675667, -0.054004184901714325, -0.006409497000277042, 0.035584867000579834, 0.03064647875726223, 0.058546941727399826, -0.023235788568854332, 0.028658395633101463, 0.0937628298997879, 0.02371208555996418, 0.03307836875319481, -0.0028146859258413315, 0.02177778072655201, 0.05990111455321312, 0.06385365128517151, 0.01392974704504013, 0.02912154607474804, -0.010054780170321465, -0.026321619749069214, -0.0010209840256720781, 0.041014838963747025, -0.030459824949502945, 0.011990834958851337, -0.053878188133239746, -0.034541621804237366, 0.06981874257326126, -0.04321470111608505, -0.0053711822256445885, 0.03007759526371956, 0.05700312554836273, 0.027260642498731613, 0.0408073291182518, -0.01733183115720749, -0.07733247429132462, 0.04138834774494171, 0.007978109642863274, 0.007334352005273104, 0.016104858368635178, -0.018769528716802597, 0.09016592055559158, 0.020689133554697037, 0.034758880734443665, 0.02674819342792034, -0.0638381764292717, -0.07167819142341614, -0.013099703006446362, -0.014101454988121986, 0.03514672815799713, -0.029531823471188545, 0.007975543849170208, 0.06536506861448288, -0.005223809275776148, 0.03775479272007942, 0.014122497290372849, -0.0017729856772348285, 0.04113231226801872, -0.031754784286022186, -0.03987729549407959, 0.0018442596774548292, 0.03926542028784752, -0.03979526832699776, -0.00802664365619421, 0.020686741918325424, -0.027754180133342743, 0.037583380937576294, 0.04110245779156685, -0.02176854945719242, 0.04693571850657463, 0.03819833695888519, 0.0536905862390995, 0.011024336330592632, 0.028455300256609917, -0.053350307047367096, 0.032177019864320755, 0.005810294765979052, -0.014438905753195286, -0.017662398517131805, -0.0025740526616573334, 0.12189273536205292, 0.06282949447631836, -0.046322908252477646, -0.06784382462501526, 0.03434949368238449, -0.016375895589590073, -0.025451773777604103, 0.005563951097428799, -0.02411094307899475, -0.015777986496686935, 0.0161368940025568, -0.023898107931017876, -0.029088711366057396, -0.002634855918586254, -0.018805507570505142, 0.00814119353890419, 0.04429950192570686, -0.0086648128926754, 0.045227643102407455, -0.008665024302899837, 0.0019748348277062178, -0.014284886419773102, -0.03402545675635338, -0.0858396664261818, 0.0010068778647109866, 0.01610073447227478, 0.0028166389092803, 0.044460833072662354, -0.03300204500555992, -0.01709417998790741, -0.01275023352354765, -0.06331484764814377, 0.02212350443005562, 0.061719201505184174, 0.06896111369132996, -0.002621190622448921, 0.0371532179415226, -0.031150922179222107, 0.012056352570652962, 0.007627451792359352, -0.03168153762817383, -0.04682793840765953, -0.0583239309489727, 0.00333317369222641, -0.0045747309923172, 0.0066926381550729275, 0.008426196873188019, 0.0011349453125149012, 0.011713442392647266, 0.03271917998790741, -0.037474680691957474, 0.03416508808732033, 0.0037374086678028107, -0.006799706257879734, -0.021505380049347878, -0.01185608934611082, 0.04347139969468117, -0.040093474090099335, -0.0067123728804290295, 0.0008201643358916044, -0.05484194681048393, 0.06203567981719971, -0.02348741888999939, -0.03160308673977852, -0.0016992049058899283, -0.004822518676519394, 0.04886718466877937, 0.00926804170012474, 0.010066560469567776, 0.05775890126824379, 0.014574339613318443, 0.020590946078300476, -0.006773501168936491, -0.011412827298045158, 0.04402324929833412, 0.00873212143778801, 0.02042711153626442, 0.04829901084303856, -0.010812702588737011, -0.019382573664188385, -0.030990030616521835, 0.03001263737678528, -0.03840184211730957, -0.28205353021621704, 0.034999437630176544, -0.023150214925408363, -0.046372491866350174, 0.02542247623205185, -0.04058501124382019, 0.018337249755859375, -0.01066933199763298, -0.0010828369995579123, -0.0012003376614302397, -0.016688553616404533, -0.050302330404520035, -0.049266114830970764, 0.05028727278113365, 0.015552994795143604, 0.03838279843330383, 0.001869379193522036, -0.042475625872612, 0.005991356447339058, 0.0534358024597168, 0.015216030180454254, -0.025950511917471886, 0.006511005572974682, 0.03764515742659569, 0.025207797065377235, 0.06665339320898056, -0.07360932230949402, 0.030630500987172127, -0.06683617830276489, -0.04767978936433792, 0.008458517491817474, -0.024127889424562454, 0.020908595994114876, 0.01238182932138443, 0.002116600750014186, -0.005221109837293625, 0.03403753787279129, 0.024372996762394905, -0.0028768947813659906, 0.02488129585981369, -0.024464845657348633, -0.020409109070897102, -0.029745936393737793, -0.009879487566649914, 0.08028995990753174, 0.01266851183027029, -0.07118517905473709, 0.006994930095970631, -0.010859927162528038, 0.06295757740736008, -0.03692919388413429, -0.018449991941452026, -0.015037850476801395, 0.02467893622815609, -0.03340856730937958, -0.015578128397464752, -0.018672313541173935, -0.002939642174169421, -0.03204202651977539, -0.02175309881567955, -0.0033965997863560915, -0.0464952290058136, 0.022124918177723885, -0.06463220715522766, -0.01827537640929222, -0.07277996838092804, -0.07905174791812897, -0.04387681931257248, 0.07685030996799469, 0.03937101736664772, -0.04612234607338905, 0.03478408604860306, 0.01092058140784502, -0.11372025310993195, -0.01945933699607849, -0.038534097373485565, 0.0023066257126629353, -0.005248788744211197, 0.003465863410383463, 0.05600776895880699, -0.06096454709768295, -0.07662786543369293, 0.037112269550561905, 0.012069541029632092, 0.03249213844537735, -0.027709469199180603, 0.016764335334300995, -0.01841333508491516, -0.04547187685966492, -0.016392596065998077, 0.07180500775575638, -0.07113361358642578, -0.030500339344143867, -0.001085834694094956, -0.0030473251827061176, 0.038131844252347946, 0.015496931970119476, 0.0017642918974161148, 0.012771081179380417, 0.051089316606521606, 0.03849245607852936, -0.06113099679350853, 0.027339795604348183, -0.05581800267100334, -0.02016923762857914, -0.03435895964503288, -0.057835035026073456, 0.030052121728658676, 0.02341017685830593, 0.046429913491010666, 0.02214319258928299, -0.014060133136808872, 0.013693138025701046, -0.06324926763772964, -0.01478744950145483, -0.00002872505137929693, 0.025714552029967308, 0.015784619376063347, 0.009969264268875122, -0.030398352071642876, -0.0616467148065567, -0.00859687477350235, -0.0006468044593930244, 0.004726802930235863, -0.05030939355492592, -0.05124398693442345, 0.006696936674416065, -0.0140738720074296, 0.008059527724981308, 0.015805639326572418, -0.02060587704181671, 0.023817652836441994, 0.02388041280210018, -0.046534109860658646, 0.031043222174048424, -0.008056219667196274, -0.03408919274806976, -0.031942132860422134, -0.0009212210425175726, 0.02873300388455391, -0.019541315734386444, 0.004616088699549437, -0.0033085348550230265, 0.035382334142923355, 0.008166410960257053, -0.0009009023196995258, 0.03974640741944313, 0.011232632212340832, 0.02625509724020958, -0.016684340313076973, -0.007486523594707251, -0.03053734079003334, 0.005650135222822428, -0.04153890907764435, -0.03772147372364998, -0.03613930568099022, 0.04944237694144249, -0.01673094928264618, -0.029531938955187798, -0.030089225620031357, 0.01139795407652855, -0.06104891747236252, -0.013078548014163971, -0.013048035092651844, 0.0012489311629906297, 0.047700028866529465, 0.012610060162842274, 0.03656301647424698, 0.005912935361266136, 0.002713072346523404, -0.012362688779830933, 0.027748532593250275, -0.0390767939388752, -0.015077800489962101, -0.0001909602724481374, 0.0006802415009588003, 0.029141657054424286, 0.010685022920370102, 0.008724480867385864, 0.020267095416784286, -0.0014697365695610642, -0.029868928715586662, -0.019176959991455078, 0.02048485539853573, 0.04540134221315384, 0.04879145324230194, -0.003864916507154703, 0.0025582141242921352, -0.0110528115183115, -0.024808451533317566, -0.05507850646972656, -0.007560056634247303, -0.021107301115989685, 0.004441877361387014, -0.036260247230529785, -0.07403841614723206, 0.03491206467151642, 0.04136011749505997, 0.0013841670006513596, 0.020938370376825333, -0.007145516108721495, -0.003907821141183376, -0.03047715686261654, 0.029085924848914146, 0.060765642672777176, -0.053284015506505966, -0.028151752427220345, -0.008285179734230042, -0.0013228596653789282, 0.014929523691534996, 0.019040007144212723, -0.06738701462745667, -0.019420739263296127, -0.028618372976779938, 0.01497705839574337, -0.01007994543761015, -0.06526896357536316, -0.05290071666240692, 0.011769974604249, -0.018627488985657692, -0.006669855210930109, -0.0033604130148887634, 0.005665588192641735, -0.007179888430982828, 0.0035742123145610094, -0.0011394401080906391, -0.009863391518592834, -0.027471590787172318, 0.02734246291220188, -0.016873478889465332, 0.02133679948747158, -0.013893481343984604, 0.011203653179109097, 0.011667661368846893, -0.00922778807580471, -0.008994735777378082, -0.0022688452154397964, 0.017837774008512497, -0.009972214698791504, 0.03621877729892731, -0.013672368600964546, -0.0058950819075107574, -0.04287311062216759, 0.01985708810389042, -0.020138613879680634, 0.009861640632152557, -0.031643953174352646, -0.014345838688313961, 0.02404455840587616, 0.06998955458402634, 0.030481508001685143, 0.02170509472489357, -0.011692498810589314, -0.04652932658791542, 0.04607834294438362, -0.05784542113542557, -0.03408568352460861, -0.024261971935629845, -0.041707806289196014, 0.015275431796908379, 0.029919754713773727, 0.0008385957917198539, -0.031507622450590134, 0.032978590577840805, 0.040698468685150146, 0.03374364972114563, 0.03021150641143322, 0.023360062390565872, 0.051710642874240875, -0.049901075661182404, 0.017951345071196556, -0.10048127919435501, -0.0026501803658902645, 0.0410442128777504, -0.006175915710628033, -0.01002698577940464, -0.003278222866356373, -0.023102054372429848, 0.01877487637102604, -0.04945430904626846, -0.055279772728681564, 0.05652619153261185, -0.013329417444765568, 0.003600203897804022, 0.0046615926548838615, -0.07456572353839874, 0.0002628194633871317, 0.044095445424318314, -0.05372133105993271, -0.016866052523255348, -0.04332682862877846, 0.04734938219189644, -0.028321074321866035, 0.035200342535972595, -0.04623587802052498, -0.030434681102633476, 0.0653938576579094, 0.014591366052627563, 0.005960108246654272, 0.032932255417108536, -0.02282450720667839, 0.03776323422789574, 0.03245348483324051, -0.011290883645415306, 0.005243256688117981, 0.03448130190372467, 0.0029767609667032957, -0.03717957064509392, -0.005263864528387785, 0.016234265640378, -0.006645188666880131, -0.03554317355155945, 0.0870780274271965, 0.008471072651445866, -0.03681900352239609, -0.03776482865214348, 0.010336754843592644, -0.03703584522008896, -0.0032049643341451883, -0.021160399541258812, -0.009567223489284515, -0.014950641430914402, 0.04741237312555313, -0.026394851505756378, -0.004235498141497374, 0.06406842172145844, -0.014406120404601097, 0.011972682550549507, -0.003855607006698847, 0.07445257157087326, 0.09450418502092361, 0.03875129297375679, -0.008741394616663456, 0.0583539642393589, -0.009120292030274868, -0.046051621437072754, 0.01032271608710289, -0.02520962804555893, 0.0010727446060627699, -0.032299816608428955, -0.005942851770669222, 0.05942559987306595, -0.023714125156402588, 0.0654437467455864, -0.026388874277472496, -0.013578196056187153, -0.019131025299429893, -0.005187697242945433, 0.0243363119661808, 0.05129680410027504, 0.015311198309063911, 0.03524472936987877, -0.03657563403248787, -0.009817345067858696, 0.02719828113913536, -0.03796365112066269, -0.016674529761075974, 0.030444031581282616, 0.0020008219871670008, 0.0028837225399911404, 0.01848558709025383, 0.0460595078766346, 0.07706647366285324, -0.022734124213457108, 0.017999064177274704, -0.017652250826358795, 0.03982138633728027, -0.012996525503695011, 0.014470682479441166, -0.021657977253198624, -0.0287222508341074, -0.0025463493075221777, -0.036727044731378555, -0.02593367174267769, 0.0009540680912323296, -0.05565918609499931, 0.01431265939027071, -0.02285417541861534, -0.000024171404220396653, 0.025005551055073738, -0.0117935910820961, -0.031827956438064575, -0.04625949263572693, -0.045713137835264206, -0.056522928178310394, -0.0624714158475399, -0.032967980951070786, -0.0022018044255673885, 0.0053434656001627445, -0.02524360828101635, -0.02172193117439747, -0.02827448956668377, -0.0310940220952034, 0.03797270730137825, -0.07037404179573059, -0.0036984714679419994, 0.008995886892080307, 0.012459276244044304, 0.023315347731113434, 0.019738102331757545, 0.033215124160051346, 0.007666474673897028, -0.004695049487054348, -0.016944535076618195, 0.014480791054666042, 0.04994908347725868, 0.02344481833279133, 0.008333712816238403, -0.06282726675271988, 0.018715202808380127, -0.009644055739045143, -0.023936806246638298, -0.08680346608161926, 0.0476558655500412, 0.01649758405983448, 0.01295950636267662, 0.03876002877950668, -0.014440457336604595, 0.008752958849072456, -0.01609552837908268, -0.00974486954510212, 0.00884101539850235, 0.003939851187169552, 0.038515180349349976, -0.03160324692726135, 0.08909342437982559, 0.05759383738040924, -0.016447728499770164, -0.05903705209493637, -0.026449162513017654, -0.017501167953014374, -0.009229365736246109, -0.046428825706243515, -0.04464540258049965, -0.03073660098016262, -0.09104917198419571, -0.019000014290213585, 0.016295308247208595, -0.02676507830619812, -0.02369598113000393, 0.02910437621176243, 0.02988371066749096, -0.02315843477845192, 0.027607586234807968, -0.020413130521774292, 0.0345742329955101, -0.0161127969622612, -0.013305691070854664, -0.008285682648420334, 0.041097983717918396, -0.01597936823964119, 0.02545907348394394, -0.017245525494217873, -0.03626824542880058, -0.001960348803550005, -0.025418590754270554, 0.024368908256292343, 0.02863214910030365, 0.017146334052085876, 0.029849916696548462 ]
[ -0.05536596477031708, -0.019702056422829628, -0.021773355081677437, -0.039166517555713654, 0.08051648736000061, -0.030426623299717903, -0.031830426305532455, 0.04587036743760109, 0.0034955875016748905, -0.014629829674959183, 0.020637033507227898, -0.018392901867628098, -0.009128674864768982, 0.0035440237261354923, 0.05698525905609131, 0.010973721742630005, -0.005175096448510885, -0.05665503442287445, -0.015199088491499424, 0.03995078429579735, -0.020654773339629173, -0.035507697612047195, -0.022666219621896744, -0.0627606064081192, 0.009964963421225548, 0.023331699892878532, 0.027102375403046608, -0.0452064611017704, -0.02334520034492016, -0.21056540310382843, -0.002201538998633623, 0.005705412942916155, 0.029340041801333427, -0.008716807700693607, 0.027239743620157242, 0.029218250885605812, 0.03945883363485336, 0.0032101599499583244, -0.0026888884603977203, 0.0358266644179821, 0.017136111855506897, -0.004380758386105299, -0.05972632020711899, 0.0023970194160938263, 0.04389016330242157, 0.01958683505654335, -0.014877389185130596, -0.018838562071323395, -0.012920214794576168, 0.011949112638831139, -0.07415927201509476, -0.00740011828020215, -0.017777908593416214, -0.0035088949371129274, -0.01273155678063631, 0.022186435759067535, 0.04248661547899246, 0.07206682115793228, 0.009469693526625633, 0.02936839871108532, 0.018543442711234093, 0.01983877643942833, -0.13758046925067902, 0.09954381734132767, 0.02634328044950962, 0.030947823077440262, -0.03569517657160759, -0.029394999146461487, -0.01062092650681734, 0.07595976442098618, -0.01831117644906044, -0.02448994293808937, -0.05502881109714508, 0.07291041314601898, 0.0038210549391806126, -0.005103148054331541, -0.026205485686659813, 0.011635255999863148, 0.013050258159637451, -0.04103000834584236, -0.0230717696249485, 0.033614177256822586, -0.022009963169693947, 0.00041874751332215965, -0.05042315274477005, 0.028240211308002472, -0.03618943691253662, 0.061062078922986984, 0.00700443284586072, 0.04315243661403656, 0.06781692802906036, 0.0035113501362502575, 0.06416847556829453, 0.01722906343638897, -0.08938494324684143, -0.02151462808251381, 0.016806375235319138, 0.043951284140348434, 0.017396043986082077, 0.4154311716556549, -0.03145753592252731, -0.02754220739006996, 0.041679251939058304, 0.059683576226234436, -0.008293303661048412, -0.022389600053429604, 0.007932492531836033, -0.04752504453063011, 0.040851689875125885, -0.01803320273756981, 0.021477166563272476, -0.017196916043758392, 0.06367535144090652, -0.06841345876455307, 0.017543388530611992, 0.004750696010887623, 0.03372255712747574, 0.005186508875340223, -0.001489858841523528, -0.0003951150574721396, -0.0015578321181237698, -0.00022785202600061893, 0.036007460206747055, -0.007491010241210461, 0.03426363691687584, -0.01284561026841402, 0.03151832893490791, 0.07590895146131516, 0.03472628816962242, 0.018917903304100037, 0.07285202294588089, 0.00023965720902197063, -0.08465426415205002, 0.041010551154613495, -0.0067351581528782845, 0.00875653326511383, 0.024853922426700592, -0.031698714941740036, -0.0004728581407107413, 0.026822363957762718, -0.027854440733790398, -0.0075784651562571526, 0.02087288908660412, 0.0017149308696389198, -0.023986047133803368, 0.1296595185995102, -0.005585022270679474, -0.03464392572641373, -0.019446011632680893, -0.07923649996519089, 0.03989209607243538, 0.05428502336144447, 0.02512955851852894, -0.08063238859176636, -0.0011790944263339043, 0.02388758584856987, 0.09255833923816681, -0.04185526818037033, -0.09355174005031586, -0.017582641914486885, -0.04813830181956291, -0.028864813968539238, -0.03782212361693382, 0.06224481016397476, 0.0554719977080822, -0.0815814957022667, -0.00823265966027975, 0.006918684579432011, 0.03813594952225685, -0.034714940935373306, 0.03270360454916954, -0.008716006763279438, -0.0424061119556427, -0.014427641406655312, 0.05530482530593872, -0.02639152482151985, -0.027345657348632812, 0.011326608248054981, 0.04960734769701958, 0.018198026344180107, 0.005751725751906633, -0.012922012247145176, -0.03972868248820305, 0.022581791505217552, -0.08671021461486816, -0.07061149179935455, -0.06947143375873566, 0.02649601921439171, -0.023293690755963326, -0.011608080938458443, -0.02380305714905262, -0.013859270140528679, -0.06298825889825821, 0.05506773665547371, -0.032264672219753265, -0.02162749692797661, -0.004661113489419222, 0.007297470699995756, -0.04368412122130394, -0.03914368152618408, -0.010686296969652176, 0.009070764295756817, 0.000702969788108021, 0.015807772055268288, -0.05532102659344673, 0.01506534032523632, 0.060439322143793106, -0.032121025025844574, 0.1028522178530693, 0.06312372535467148, -0.01670955680310726, -0.009714800864458084, -0.007012037560343742, 0.0005077436217106879, -0.015498809516429901, -0.020853545516729355, -0.007656588684767485, -0.033607788383960724, 0.011606873013079166, 0.04269415885210037, -0.0340811125934124, -0.013210957869887352, -0.013034049421548843, -0.351725310087204, -0.05296257883310318, -0.01047566533088684, -0.005665394477546215, 0.02626054175198078, -0.046312376856803894, 0.025742124766111374, -0.00897967629134655, 0.0047893282026052475, 0.04195263236761093, 0.0746472105383873, 0.012506230734288692, -0.00044911858276464045, -0.1107635349035263, 0.007688025012612343, 0.029943525791168213, 0.0018486414337530732, -0.0013263239525258541, -0.03824380040168762, 0.0160636268556118, 0.012261792086064816, -0.04612337797880173, -0.014246314764022827, -0.049134958535432816, 0.0032304045744240284, -0.036676716059446335, 0.09768340736627579, 0.006136222276836634, 0.0673498883843422, -0.04346456378698349, 0.02919001318514347, -0.019322523847222328, 0.0073371645994484425, -0.10772036761045456, 0.0016489444533362985, -0.02658790349960327, 0.015157540328800678, 0.033138107508420944, -0.015714215114712715, -0.019850630313158035, -0.02897694520652294, -0.012171679176390171, -0.045333608984947205, -0.04437143728137016, -0.05283697322010994, 0.022873682901263237, -0.029318351298570633, -0.013410319574177265, -0.026574162766337395, 0.073715940117836, 0.011484908871352673, -0.0030024265870451927, 0.024540822952985764, 0.024792267009615898, 0.01333107240498066, -0.02521442621946335, -0.07663195580244064, 0.016419686377048492, 0.025235595181584358, -0.0027727957349270582, 0.012028674595057964, 0.03459598869085312, 0.038552071899175644, -0.08642509579658508, -0.002077112440019846, -0.009598392993211746, 0.006339795421808958, 0.002181792864575982, 0.037069644778966904, -0.01856950856745243, -0.0240566898137331, 0.1091574877500534, -0.012328128330409527, 0.03918594866991043, 0.007272243034094572, 0.04748719185590744, -0.022954853251576424, 0.008025553077459335, 0.005926862359046936, -0.0005311222048476338, 0.035854652523994446, -0.03126392140984535, 0.038407593965530396, -0.02355559542775154, 0.015158108435571194, 0.03087395615875721, 0.01250092126429081, -0.058197032660245895, 0.048956695944070816, 0.03521377220749855, -0.00709979422390461, -0.008894436061382294, -0.026310168206691742, -0.06656960397958755, 0.08575776219367981, -0.0031482651829719543, -0.2586747407913208, 0.020440874621272087, 0.016015052795410156, 0.06197553873062134, 0.0003836658434011042, 0.005994656588882208, 0.023448722437024117, -0.040357962250709534, 0.0078732306137681, 0.03270253166556358, 0.021598367020487785, 0.05241716280579567, 0.006770205684006214, 0.0032215185929089785, 0.013421659357845783, -0.01702737621963024, 0.046607792377471924, 0.003669647267088294, 0.015364635735750198, 0.008089698851108551, 0.03791103512048721, -0.02909059077501297, 0.15316607058048248, 0.016467314213514328, -0.005766223184764385, 0.03724779188632965, -0.02010532282292843, -0.0014315652661025524, 0.07089799642562866, 0.00168292922899127, -0.016861382871866226, 0.023205852136015892, 0.0008184781763702631, 0.023546380922198296, 0.027101410552859306, -0.032575029879808426, -0.05522440746426582, 0.05174025148153305, 0.0250077061355114, -0.020359760150313377, -0.0034146627876907587, 0.02853185124695301, -0.02367381751537323, 0.02928750589489937, 0.06623504310846329, -0.010847438126802444, 0.0044076042249798775, -0.04444802924990654, -0.07286980003118515, -0.016953539103269577, -0.031186729669570923, -0.03479500114917755, -0.0211692713201046, -0.022034868597984314, -0.000924709893297404, 0.07577043771743774, 0.01646072044968605, -0.011372665874660015, 0.05076267570257187, -0.004692457616329193, -0.007326336111873388, -0.06913237273693085, 0.0969628170132637, 0.013812560588121414, -0.007368721067905426 ]
[ -0.028720814734697342, 0.036807600408792496, -0.045895420014858246, 0.02586071752011776, -0.012685024179518223, -0.02479064278304577, -0.014871438965201378, 0.007204025983810425, -0.011405643075704575, 0.009934392757713795, -0.02036389894783497, -0.001612319378182292, 0.014546830207109451, -0.04825378581881523, 0.0018673604354262352, -0.007661187089979649, -0.014750837348401546, 0.00004602723493007943, 0.033974166959524155, -0.00999895017594099, -0.020120859146118164, 0.03479430451989174, 0.0265780221670866, -0.00033206373336724937, -0.011928902938961983, 0.03434670716524124, -0.03653736412525177, -0.020687637850642204, 0.013075875118374825, -0.13520653545856476, -0.005053753033280373, -0.01583636924624443, 0.011844946071505547, 0.03083203360438347, -0.017782384529709816, 0.05364391952753067, -0.03776973858475685, 0.014711875468492508, -0.021287478506565094, 0.03019862249493599, 0.024416111409664154, -0.02026563510298729, -0.019758224487304688, -0.009929120540618896, 0.012947042472660542, -0.025744441896677017, 0.011914655566215515, -0.020792057737708092, -0.006029871758073568, -0.00037978836917318404, -0.04527624323964119, 0.009643993340432644, -0.032401297241449356, -0.01274824794381857, -0.011559026315808296, -0.031003855168819427, -0.006520234514027834, -0.00013650032633449882, 0.02407674677670002, -0.03470401093363762, 0.003076837630942464, -0.008892209269106388, -0.03408454731106758, -0.030919261276721954, -0.012882940471172333, -0.013163217343389988, 0.000481049733934924, 0.01780957169830799, 0.017627835273742676, 0.0040408167988061905, -0.009247086010873318, 0.04958077147603035, -0.056553881615400314, -0.030305232852697372, -0.026699306443333626, -0.00005956288077868521, 0.015660487115383148, -0.021053006872534752, 0.002208860358223319, -0.00796863716095686, -0.04106317460536957, 0.010277237743139267, 0.014738923870027065, 0.006991090718656778, -0.04015384241938591, 0.005304951220750809, 0.01302881259471178, 0.030244341120123863, 0.03150566294789314, -0.010921637527644634, 0.01333971694111824, 0.015506905503571033, -0.004948291927576065, 0.00418654503300786, -0.09000463783740997, -0.004412286914885044, 0.00732005201280117, -0.015453528612852097, 0.009235805831849575, 0.849769115447998, 0.019319111481308937, 0.008780861273407936, 0.003416892373934388, 0.009021387435495853, -0.020377259701490402, -0.023219864815473557, 0.021897779777646065, 0.011567951180040836, 0.0039948830381035805, -0.060103900730609894, 0.016054321080446243, 0.02854049764573574, 0.021843314170837402, 0.006081439554691315, 0.008295507170259953, 0.01591688022017479, 0.0069265528582036495, -0.006976153235882521, 0.018345994874835014, 0.022429201751947403, 0.0199667289853096, 0.007360051851719618, -0.010856362991034985, 0.003531414782628417, 0.022539997473359108, -0.16911183297634125, 0.01775430515408516, -7.58133465258102e-33, 0.025153283029794693, -0.025248391553759575, 0.01639149710536003, -0.00971101876348257, 0.014568068087100983, 0.03081374056637287, 0.0053373281843960285, 0.003870384767651558, -0.012024011462926865, -0.005626082420349121, 0.002761243609711528, 0.00997888296842575, -0.01301492378115654, -0.002669695531949401, 0.016865378245711327, -0.002115486888214946, 0.0000798111068434082, 0.029671767726540565, 0.011991445906460285, -0.011749663390219212, 0.024364275857806206, 0.040710777044296265, 0.014838023111224174, 0.029938409104943275, 0.011388905346393585, 0.008675542660057545, 0.00015046280168462545, 0.012940200045704842, -0.019909970462322235, -0.04745200648903847, -0.026636678725481033, 0.0063758729957044125, 0.003930515144020319, -0.01850433088839054, 0.019643515348434448, -0.043098073452711105, -0.0363905169069767, 0.003839020151644945, 0.0034594712778925896, -0.017551636323332787, -0.01713867112994194, 0.023133477196097374, -0.025613335892558098, -0.008192659355700016, -0.0402810275554657, -0.015652941539883614, 0.010198087431490421, 0.013230220414698124, -0.0016077331965789199, 0.022361062467098236, 0.022024299949407578, 0.03400888666510582, 0.01706383377313614, -0.025994716212153435, -0.04894757643342018, 0.03007793426513672, 0.013683028519153595, 0.0005941655836068094, 0.002641187747940421, 0.03788062557578087, 0.03526967018842697, 0.005596918053925037, -0.007985320873558521, 0.016333281993865967, 0.007377216126769781, -0.012710612267255783, 0.02278783544898033, 0.03378395736217499, 0.008702249266207218, 0.01538173109292984, -0.05566519871354103, 0.01613469421863556, -0.0008346102549694479, -0.015306202694773674, 0.0423460491001606, -0.0059201717376708984, 0.0035384404473006725, 0.015706047415733337, 0.02495265193283558, 0.02782733552157879, 0.007108261343091726, -0.03139893338084221, -0.003120729234069586, -0.026758596301078796, -0.03211288899183273, 0.01503755059093237, 0.023057222366333008, -0.011628803797066212, -0.013545378111302853, 0.015622965060174465, 0.01036810502409935, 0.008242891170084476, 0.0006381920538842678, -0.03664912283420563, -0.006059885956346989, 7.200686806581716e-33, 0.0010962674859911203, -0.0160861536860466, 0.003370092250406742, 0.024827998131513596, 0.027457373216748238, 0.009862851351499557, 0.023302961140871048, 0.00203886185772717, -0.05056542903184891, 0.03822898119688034, 0.0019895005971193314, 0.0008678663289174438, -0.03018556535243988, 0.050007980316877365, 0.06278005242347717, 0.011562220752239227, -0.011284392327070236, -0.013065886683762074, -0.027649274095892906, 0.008185294456779957, -0.03098989836871624, 0.018539272248744965, 0.0029113953933119774, 0.005620912648737431, 0.04492234066128731, 0.02208046428859234, -0.014263991266489029, 0.013309948146343231, -0.001555643160827458, 0.005414850078523159, -0.00485006719827652, -0.01396487932652235, -0.010964574292302132, -0.023410651832818985, -0.008234454318881035, 0.02655312791466713, 0.015034763142466545, -0.016909383237361908, 0.03938581421971321, 0.01745520904660225, 0.0412466824054718, 0.00890581589192152, 0.009052148088812828, 0.02212369255721569, 0.02743985690176487, 0.049732744693756104, -0.004824195522814989, 0.02401055581867695, -0.03142877295613289, 0.011309455148875713, -0.0081913061439991, 0.05160340666770935, -0.004141706973314285, -0.009128468111157417, 0.021386543288826942, -0.0343964621424675, -0.02551696076989174, -0.0015797093510627747, -0.05445753410458565, -0.018867114558815956, -0.05662543699145317, -0.013387501239776611, -0.014181678183376789, 0.02543410286307335, -0.0268105398863554, -0.01770992949604988, -0.018931172788143158, -0.035159844905138016, 0.009559997357428074, -0.016121990978717804, 0.010200767777860165, -0.03342072665691376, -0.01123279519379139, 0.003621063195168972, -0.013679742813110352, -0.0026933616027235985, -0.03343847393989563, 0.002777043730020523, -0.0037880653981119394, 0.03204626590013504, 0.029707862064242363, 0.008553926832973957, 0.04434815049171448, -0.0156695693731308, 0.00034716303343884647, 0.02838638611137867, -0.028117308393120766, -0.00950972642749548, 0.03464717045426369, -0.008240966126322746, -0.018130388110876083, -0.04588373377919197, -0.012088310904800892, 0.021420899778604507, -0.01226028986275196, -1.2941703708690966e-8, -0.019320230931043625, 0.020774662494659424, -0.010396743193268776, 0.027879858389496803, 0.043599944561719894, 0.021286463364958763, -0.03010343201458454, -0.0058258878998458385, -0.008894835598766804, 0.017056701704859734, 0.06524394452571869, -0.044360969215631485, -0.001705113216303289, 0.002831920050084591, -0.011787069030106068, -0.04169347137212753, 0.002718462375923991, -0.01561258640140295, 0.029521336778998375, 0.018128959462046623, -0.003911442589014769, 0.04616287350654602, -0.026071740314364433, -0.00042391440365463495, 0.037833813577890396, -0.020723894238471985, 0.03988493233919144, -0.08568766713142395, -0.002062182640656829, -0.010055136866867542, 0.03834574669599533, -0.04098536819219589, -0.010967990383505821, 0.012713470496237278, 0.0028803234454244375, -0.0619087778031826, 0.035646166652441025, 0.02209443412721157, 0.021619150415062904, 0.002262681722640991, 0.006768793798983097, -0.016961686313152313, -0.025237610563635826, -0.027919212356209755, -0.042831793427467346, -0.0042010145261883736, -0.034223929047584534, -0.013818561099469662, 0.015754299238324165, -0.04996401444077492, 0.02057952992618084, -0.016681743785738945, -0.006607651710510254, 0.05423567816615105, 0.06146931275725365, -0.0031728772446513176, 0.015668395906686783, -0.008589912205934525, -0.039308998733758926, -0.01062903180718422, 0.017972897738218307, 0.01798531971871853, -0.031091544777154922, -0.0347558818757534 ]
r-cleaning-up-plotting-google-trends-data
https://markhneedham.com/blog/2014/12/09/r-cleaning-up-plotting-google-trends-data
false
2014-12-08 19:02:46
R: dplyr - mutate with strptime (incompatible size/wrong result size)
[ "r-2", "rstats" ]
[ "R" ]
Having worked out http://www.markhneedham.com/blog/2014/12/07/r-string-to-date-or-na/[how to translate a string into a date or NA if it wasn't the appropriate format] the next thing I wanted to do was store the result of the transformation in my data frame. I started off with this: [source,r] ---- data = data.frame(x = c("2014-01-01", "2014-02-01", "foo")) > data x 1 2014-01-01 2 2014-02-01 3 foo ---- And when I tried to do the date translation ran into the following error: [source,r] ---- > data %>% mutate(y = strptime(x, "%Y-%m-%d")) Error: wrong result size (11), expected 3 or 1 ---- As I understand it this error is telling us that we are trying to put a value into the data frame which represents 11 rows rather than 3 rows or 1 row. It turns out that https://github.com/hadley/dplyr/issues/179[storing POSIXlts in a data frame isn't such a good idea!] In this case we can use the +++<cite>+++as.character+++</cite>+++ function to create a character vector which can be stored in the data frame:</a> [source,r] ---- > data %>% mutate(y = strptime(x, "%Y-%m-%d") %>% as.character()) x y 1 2014-01-01 2014-01-01 2 2014-02-01 2014-02-01 3 foo <NA> ---- We can then get rid of the NA row by using the +++<cite>+++is.na+++</cite>+++ function: [source,r] ---- > data %>% mutate(y = strptime(x, "%Y-%m-%d") %>% as.character()) %>% filter(!is.na(y)) x y 1 2014-01-01 2014-01-01 2 2014-02-01 2014-02-01 ---- And a final tweak so that we have 100% pipelining goodness: [source,r] ---- > data %>% mutate(y = x %>% strptime("%Y-%m-%d") %>% as.character()) %>% filter(!is.na(y)) x y 1 2014-01-01 2014-01-01 2 2014-02-01 2014-02-01 ----
null
null
[ -0.0032016714103519917, -0.009194291196763515, -0.017750252038240433, 0.02049841731786728, 0.08489569276571274, 0.05041302740573883, 0.03475917875766754, -0.02565479837357998, 0.012206168845295906, -0.0026461437810212374, 0.023154335096478462, -0.017356324940919876, -0.07157827913761139, 0.008968221955001354, -0.05045824870467186, 0.07748899608850479, 0.06512527167797089, -0.03005262464284897, 0.014247545041143894, 0.021493038162589073, 0.007943500764667988, 0.04948258399963379, -0.001616657362319529, 0.057228874415159225, 0.049016207456588745, -0.03234676271677017, -0.040691718459129333, -0.0005449379677884281, -0.03782430663704872, 0.006298015359789133, 0.05280109494924545, 0.03303929418325424, 0.001253581722266972, -0.005661241710186005, 0.03419884294271469, -0.025488972663879395, -0.0352802500128746, 0.006185509264469147, 0.02285718359053135, -0.014245797879993916, -0.07161307334899902, -0.0018597510643303394, -0.02280917763710022, -0.008309561759233475, -0.0048763020895421505, -0.022158145904541016, -0.031054671853780746, 0.016821861267089844, -0.03310162201523781, 0.02711738832294941, -0.05604994297027588, 0.03622017800807953, -0.0005599050782620907, -0.049092188477516174, -0.0035280566662549973, 0.03740055114030838, 0.01981026865541935, -0.08423562347888947, 0.010769540444016457, -0.03817367181181908, 0.0298441294580698, -0.009193575009703636, -0.012453303672373295, -0.007932178676128387, 0.0010158517397940159, -0.04405587911605835, -0.0045023574493825436, 0.026676425710320473, -0.05125603824853897, -0.01941525563597679, -0.04911104589700699, 0.002936173230409622, -0.01297913771122694, -0.010461230762302876, -0.0003852076770272106, -0.019750716164708138, -0.033918313682079315, 0.05193353071808815, 0.022216107696294785, 0.03720807656645775, 0.016145654022693634, 0.002825883449986577, 0.014831038191914558, 0.004745693877339363, 0.03794277831912041, -0.03826266899704933, -0.04870864748954773, -0.05415138602256775, -0.07136286050081253, 0.06036366894841194, -0.027355745434761047, -0.030147813260555267, 0.015578122809529305, 0.02487565577030182, -0.019112180918455124, 0.008105143904685974, -0.0063042170368134975, -0.01435425877571106, 0.02537686936557293, -0.0034077963791787624, -0.11680766940116882, -0.04320717975497246, 0.04634864628314972, 0.0006355945952236652, -0.06614825874567032, -0.0030368329025804996, -0.04583457484841347, -0.006841289810836315, 0.040109362453222275, -0.0006521748146042228, -0.04361521825194359, 0.028130553662776947, -0.0003987908421549946, -0.041700348258018494, -0.057085443288087845, 0.0337381586432457, 0.04823579266667366, -0.029291344806551933, -0.023583341389894485, 0.0058542219921946526, 0.04405127838253975, -0.00339652132242918, -0.005261881276965141, 0.0650990679860115, -0.006600250490009785, 0.061772044748067856, 0.040001280605793, 0.035146910697221756, -0.03845744580030441, -0.0795384868979454, -0.02196907065808773, 0.05002552270889282, -0.017180105671286583, 0.007125421427190304, -0.0018691105069592595, -0.030513159930706024, -0.023375321179628372, -0.004774175118654966, 0.06964248418807983, -0.006310151424258947, 0.04395643249154091, -0.009048296138644218, 0.0010464292718097568, -0.010527639649808407, 0.06295020878314972, 0.055162981152534485, 0.006668276619166136, -0.034211665391922, -0.05750453844666481, -0.01813100092113018, 0.04118018597364426, 0.03011775203049183, 0.07062123715877533, 0.006657581310719252, 0.03028826415538788, 0.04869413748383522, 0.005989206489175558, 0.018795574083924294, -0.026521341875195503, 0.011665482074022293, 0.02329215034842491, 0.03683558106422424, -0.016258543357253075, 0.03653969243168831, -0.0013822108739987016, -0.03701821342110634, 0.018650274723768234, 0.018866809085011482, -0.045905329287052155, -0.019308067858219147, -0.04030010104179382, -0.04941593110561371, 0.06703740358352661, -0.029130378738045692, 0.018939614295959473, 0.038444891571998596, 0.05050543323159218, 0.039545778185129166, 0.02874039113521576, -0.020943040028214455, -0.07769940048456192, 0.07843872904777527, -0.016951968893408775, 0.04313293844461441, 0.02937360107898712, -0.014116935431957245, 0.09838227182626724, -0.0013813769910484552, 0.05166850984096527, 0.06550522148609161, -0.07087688893079758, -0.07096142321825027, 0.0016011983389034867, -0.020163731649518013, 0.029111472889780998, -0.034475237131118774, -0.022326001897454262, 0.09019686281681061, -0.026577195152640343, 0.008200252428650856, -0.01296006515622139, 0.02511374093592167, 0.04679916054010391, -0.050863247364759445, -0.014205163344740868, 0.0035921477247029543, 0.03806909918785095, 0.0067995875142514706, 0.0084255151450634, 0.04358899965882301, 0.008941617794334888, 0.03784918785095215, 0.026662398129701614, -0.028925186023116112, 0.02661345899105072, 0.016625843942165375, 0.06802025437355042, 0.020145071670413017, 0.027007726952433586, -0.040581729263067245, 0.06247670203447342, 0.013494242914021015, -0.021362492814660072, -0.05632111430168152, -0.0349164679646492, 0.1345171481370926, 0.015456099063158035, 0.0006766906590200961, -0.04803505167365074, 0.027356335893273354, -0.037753213196992874, -0.026951229199767113, 0.01758374087512493, 0.02264276333153248, -0.0068212226033210754, 0.0441700704395771, -0.020815491676330566, 0.001945478725247085, -0.011550947092473507, -0.039113495498895645, 0.0227256640791893, 0.07623863965272903, -0.0030354780610650778, 0.03082454763352871, -0.01906314678490162, -0.012041878886520863, -0.014043747447431087, -0.03174646198749542, -0.05129870027303696, -0.0044106305576860905, 0.05190248042345047, -0.01787835732102394, 0.03799286112189293, -0.021330026909708977, -0.031076986342668533, -0.0048050652258098125, -0.04485424980521202, 0.023146964609622955, 0.06797399371862411, 0.0316152349114418, -0.03685777261853218, 0.018811650574207306, -0.00741660175845027, -0.01584949530661106, -0.0478602796792984, -0.03866826370358467, -0.04316571727395058, -0.026747362688183784, -0.00425534276291728, 0.035621512681245804, 0.06918612867593765, -0.0035953379701822996, -0.009494911879301071, -0.00725013529881835, -0.018344344571232796, -0.032839927822351456, 0.0317649245262146, -0.019896849989891052, -0.009990578517317772, -0.006134007591754198, 0.022234858945012093, 0.050592467188835144, -0.013387701474130154, -0.03638507425785065, 0.003808258567005396, -0.04895814508199692, 0.051082443445920944, -0.020320024341344833, -0.019410431385040283, 0.015222080051898956, 0.0018078818684443831, 0.044944487512111664, 0.005905411671847105, -0.00201547984033823, 0.07272262871265411, 0.03539915382862091, 0.039001837372779846, 0.006843460723757744, 0.025775505229830742, 0.05639276280999184, 0.041369251906871796, 0.017433656379580498, 0.07555857300758362, 0.005955805536359549, 0.006394228432327509, -0.04810018837451935, -0.02127669006586075, -0.00806652382016182, -0.23871800303459167, 0.0066045369021594524, -0.03132656216621399, -0.02246243692934513, 0.03468813747167587, -0.04079613462090492, 0.052428558468818665, -0.01386298518627882, -0.034288182854652405, 0.0021126680076122284, 0.01807737722992897, -0.0548841767013073, -0.03366554155945778, 0.0506088063120842, 0.027151569724082947, 0.0002363876556046307, -0.019619181752204895, -0.029044538736343384, -0.005298777017742395, 0.04959391430020332, 0.048617906868457794, -0.0413762703537941, -0.007339285220950842, 0.05403097718954086, 0.04058751091361046, 0.04518258571624756, -0.052908919751644135, 0.026466766372323036, -0.0467362180352211, -0.04353246092796326, 0.004692926071584225, -0.025099314749240875, 0.04777485877275467, -0.03654053807258606, 0.0033050731290131807, -0.011599003337323666, 0.008611165918409824, 0.02722654677927494, 0.03946583345532417, 0.03282948583364487, -0.023454319685697556, -0.03397824615240097, 0.02990969829261303, -0.015604072250425816, 0.06370644271373749, 0.02611129730939865, -0.05226357281208038, 0.05443178489804268, -0.042607713490724564, 0.06797240674495697, 0.014664301648736, 0.009390036575496197, -0.024141496047377586, -0.005080998409539461, -0.013252449221909046, -0.0033633969724178314, -0.04441944882273674, 0.007520676124840975, -0.013892739079892635, -0.03149513155221939, 0.0068449173122644424, -0.04651844501495361, -0.000683705962728709, -0.02980607934296131, -0.039222437888383865, -0.0715252086520195, -0.08179090172052383, -0.022210650146007538, 0.04999203234910965, 0.057263851165771484, -0.05337151139974594, 0.011478312313556671, -0.013581303879618645, -0.09606435149908066, 0.005976100452244282, -0.04024554044008255, -0.030780930072069168, -0.021952414885163307, -0.029947690665721893, 0.004869614262133837, -0.07208360731601715, -0.05191829055547714, 0.014291721396148205, -0.0014844214310869575, 0.02999812364578247, -0.0008414311450906098, -0.009633812122046947, -0.02057618275284767, -0.0484406016767025, -0.025515936315059662, 0.06211759150028229, -0.035407114773988724, -0.007674018852412701, -0.0006844377494417131, -0.029378032311797142, 0.028630835935473442, 0.006908127572387457, 0.00039479165570810437, 0.030147042125463486, 0.009167005307972431, 0.02844119630753994, -0.046825286000967026, 0.023517951369285583, -0.09067223221063614, -0.0226896982640028, -0.01312846876680851, -0.09771598875522614, 0.024898674339056015, 0.0005737492465414107, 0.029017455875873566, 0.011223319917917252, 0.006910913158208132, 0.030413582921028137, -0.04054325819015503, -0.02852204442024231, 0.021886352449655533, 0.0008562729926779866, 0.017414988949894905, -0.0007505204412154853, -0.007445981726050377, -0.033015016466379166, -0.008727357722818851, 0.011719828471541405, -0.03715686872601509, -0.01927224174141884, -0.028486253693699837, 0.047880932688713074, -0.00400109076872468, -0.012026345357298851, 0.0042135827243328094, -0.01622694917023182, -0.0029221069999039173, 0.05167032778263092, -0.022302819415926933, 0.02943875454366207, 0.012546894140541553, -0.027309132739901543, -0.019455397501587868, 0.015245773829519749, 0.009675764478743076, -0.009083578363060951, -0.014083944261074066, -0.01898914948105812, -0.0024841120466589928, 0.013057381846010685, -0.002454287139698863, 0.07745040208101273, 0.011555514298379421, -0.013963469304144382, 0.015896573662757874, 0.010566793382167816, -0.024716602638363838, 0.010383407585322857, -0.03878089785575867, -0.04152129590511322, 0.025269560515880585, 0.044498998671770096, -0.01714419387280941, 0.004025859758257866, -0.04784984886646271, -0.00632810965180397, -0.03696209192276001, -0.01177798118442297, -0.045498743653297424, -0.022034669294953346, 0.044647570699453354, -0.013537725433707237, 0.015838325023651123, -0.0007053918088786304, 0.0007577231735922396, -0.02139285020530224, 0.005028487183153629, -0.02273331768810749, -0.014316704124212265, -0.009922606870532036, -0.027625756338238716, 0.038107980042696, -0.01023256778717041, 0.02386307343840599, -0.0007347736391238868, -0.0018332387553527951, 0.002033652039244771, -0.0069041126407682896, -0.0100362878292799, 0.012706314213573933, 0.03406095504760742, 0.015997616574168205, 0.002273888560011983, -0.031726427376270294, -0.07875268906354904, -0.027401676401495934, -0.033663149923086166, 0.0042826272547245026, -0.00925750844180584, -0.04437682032585144, -0.04738803580403328, 0.010499212890863419, 0.05534364655613899, -0.009959375485777855, 0.05409830063581467, -0.022021498531103134, -0.0007569298031739891, -0.04526624456048012, 0.026697581633925438, 0.04717439040541649, -0.049263548105955124, -0.026227984577417374, 0.01449588779360056, 0.0004814166168216616, 0.012363140471279621, 0.005854905117303133, -0.028011344373226166, 0.002454505069181323, 0.008939266204833984, 0.026672592386603355, 0.008374898694455624, -0.03696522116661072, -0.054436564445495605, -0.0037412154488265514, -0.01526836957782507, 0.04132501035928726, -0.022880112752318382, 0.008493432775139809, -0.006003206595778465, 0.014544530771672726, 0.00905640609562397, -0.01923220045864582, -0.022160762920975685, 0.06069302558898926, 0.007865521125495434, 0.04378029331564903, -0.010200493969023228, 0.026829279959201813, 0.036530397832393646, -0.01832868531346321, -0.042805641889572144, -0.0712445005774498, 0.03196854516863823, 0.0018548006191849709, 0.037695009261369705, -0.009125812910497189, 0.005125691648572683, -0.03455168753862381, 0.018027225509285927, -0.03049965389072895, -0.006963398773223162, -0.0030089181382209063, -0.018773136660456657, 0.049750763922929764, 0.06046660616993904, 0.03248557075858116, 0.005943921860307455, -0.02400606870651245, -0.032982829958200455, 0.04730738699436188, -0.035894859582185745, -0.054559461772441864, 0.00710556423291564, -0.017138585448265076, 0.013292640447616577, 0.018278200179338455, 0.011999040842056274, -0.04035276547074318, 0.023190200328826904, 0.04004666954278946, 0.03982542082667351, 0.09336455166339874, -0.02047039195895195, 0.025904597714543343, -0.011243867687880993, -0.016066713258624077, -0.07724079489707947, 0.002844255417585373, 0.03372960537672043, -0.0033251559361815453, -0.032102979719638824, -0.025375546887516975, -0.01034628227353096, -0.0015348137822002172, -0.017988676205277443, -0.05232098326086998, 0.06878869980573654, -0.013504527509212494, 0.009978162124752998, 0.020612245425581932, -0.03382686898112297, 0.006709543522447348, 0.024375012144446373, -0.03764323890209198, -0.017812039703130722, -0.01970190927386284, 0.06320563703775406, -0.039375122636556625, 0.0347970686852932, -0.033724345266819, -0.009185166098177433, 0.061692286282777786, 0.031538814306259155, 0.008567092008888721, 0.05019927769899368, -0.056447967886924744, 0.01964595727622509, 0.048320576548576355, -0.012597434222698212, 0.010063150897622108, 0.03826209902763367, -0.001776363467797637, -0.053251978009939194, -0.02324240654706955, 0.04251027852296829, -0.0036182573530822992, -0.042089857161045074, 0.08581677079200745, 0.001052997773513198, -0.05462336912751198, -0.06096705049276352, 0.008937249891459942, -0.02184593304991722, 0.01021728478372097, 0.008978692814707756, -0.008046229369938374, -0.0448828861117363, 0.07238250970840454, -0.009620972909033298, 0.00012615979358088225, 0.07131752371788025, -0.004455495625734329, -0.00595109723508358, -0.01568768173456192, 0.06765231490135193, 0.07957211881875992, 0.042892199009656906, 0.0035426057875156403, 0.05397965386509895, -0.007230103947222233, -0.048266228288412094, 0.03206229582428932, -0.04059838131070137, -0.003760633757337928, -0.027591373771429062, -0.0019818563014268875, 0.07240423560142517, -0.03197155520319939, 0.04682851955294609, -0.005419043358415365, -0.015958774834871292, -0.011644512414932251, -0.014767543412744999, 0.038976166397333145, -0.0001756801357259974, 0.008535538800060749, 0.011960029602050781, 0.00783532951027155, 0.0043665324337780476, 0.00824950821697712, 0.02112462744116783, -0.006262453272938728, -0.00939264427870512, -0.011670761741697788, 0.0004751543456222862, -0.011865419335663319, 0.012391871772706509, 0.056470371782779694, -0.058486830443143845, -0.024117810651659966, -0.008481987752020359, 0.057148441672325134, -0.025539172813296318, 0.02224348485469818, 0.006363340187817812, -0.036794159561395645, -0.011458346620202065, -0.0472528338432312, -0.013128194026648998, 0.035546496510505676, -0.03629222884774208, 0.027773907408118248, -0.05603259429335594, 0.018843762576580048, 0.03203638270497322, -0.05608012154698372, -0.03293319419026375, -0.03609079495072365, -0.053819723427295685, -0.03192370384931564, -0.05689487233757973, 0.001572905806824565, 0.001996999839320779, -0.05528341978788376, -0.034589000046253204, -0.007838514633476734, -0.009141361340880394, -0.0034758076071739197, -0.009627639316022396, -0.04948752373456955, -0.043850842863321304, 0.03929498419165611, 0.00012104256893508136, 0.006766238249838352, 0.0413404256105423, 0.04159993678331375, 0.013993971981108189, 0.007991771213710308, 0.008068644441664219, 0.008469760417938232, 0.01759456843137741, 0.029716307297348976, -0.008420241065323353, -0.06195807456970215, 0.01835918240249157, 0.019959459081292152, -0.01710030809044838, -0.064447782933712, 0.015704797580838203, 0.021082760766148567, -0.008034700527787209, 0.04403850808739662, 0.0029313811101019382, 0.03075665421783924, 0.014180264435708523, -0.01588427647948265, 0.0021655347663909197, 0.022370854392647743, 0.032642196863889694, -0.03769349306821823, 0.04016037657856941, 0.05120445042848587, 0.009530553594231606, -0.05750974267721176, -0.022370576858520508, 0.01789013296365738, -0.000832059420645237, -0.06195325031876564, -0.0455855131149292, -0.0742843821644783, -0.0674649029970169, -0.02200070396065712, 0.006226315628737211, -0.06858433783054352, 0.009262729436159134, 0.007111619226634502, 0.037489283829927444, -0.012771381065249443, 0.0290063563734293, -0.023512817919254303, 0.030379341915249825, -0.032605789601802826, -0.013724273070693016, -0.02720159851014614, 0.051218289881944656, 0.006494521629065275, 0.020406333729624748, 0.019093578681349754, -0.05686451867222786, 0.036269888281822205, 0.026361921802163124, 0.008100741542875767, 0.029683174565434456, -0.0011419296497479081, 0.02672303467988968 ]
[ -0.07902763783931732, -0.02252621203660965, -0.03197595849633217, 0.004196334630250931, 0.022433312609791756, -0.06773576885461807, -0.04664831608533859, 0.008622816763818264, 0.024869676679372787, 0.03390135243535042, 0.0459800660610199, -0.07203365117311478, 0.016167741268873215, 0.009814627468585968, 0.04177865758538246, -0.0117791797965765, -0.045307062566280365, -0.04605597257614136, -0.02835037000477314, 0.04994743689894676, 0.003042077412828803, -0.014451757073402405, -0.060236431658267975, -0.045412518084049225, 0.04772234335541725, 0.04818524420261383, -0.01407616212964058, -0.04110521078109741, -0.012947378680109978, -0.22767676413059235, -0.025693034753203392, 0.02051645517349243, 0.017990902066230774, -0.013215526938438416, 0.015263870358467102, 0.019379494711756706, 0.015003925189375877, -0.0033808588050305843, 0.005954929161816835, 0.05206567049026489, 0.017995964735746384, 0.02981661818921566, -0.04042926803231239, -0.05224769935011864, 0.03810301795601845, 0.01888703554868698, -0.06112930178642273, 0.007956608198583126, -0.009785591624677181, 0.06223488971590996, -0.05904950201511383, 0.020548952743411064, -0.014762994833290577, 0.01364007405936718, 0.032532043755054474, 0.07613532245159149, 0.03177113085985184, 0.041896842420101166, -0.009940155781805515, -0.0005123660084791481, 0.005383914336562157, 0.005225412547588348, -0.15587088465690613, 0.11272390931844711, -0.0028511881828308105, 0.01852530986070633, -0.02482886239886284, 0.022863583639264107, -0.016086358577013016, 0.05049384757876396, -0.0277408454567194, -0.03303806111216545, -0.03913985937833786, 0.07647471874952316, 0.03397964686155319, -0.012075322680175304, -0.020948713645339012, -0.0019143465906381607, 0.048583175987005234, -0.011260516941547394, 0.023968558758497238, -0.01383985485881567, -0.016919231042265892, -0.020465584471821785, -0.010437537916004658, 0.0016143148532137275, -0.004045435227453709, 0.021346578374505043, -0.035034846514463425, 0.025941282510757446, 0.034216832369565964, 0.031811974942684174, 0.036777544766664505, 0.034065768122673035, -0.06825465708971024, 0.015053324401378632, 0.021871114149689674, 0.049736298620700836, 0.006464986130595207, 0.3858020603656769, -0.014985826797783375, -0.008043516427278519, -0.015574871562421322, 0.045791879296302795, -0.01721329241991043, -0.019991397857666016, -0.0216522254049778, -0.0286881010979414, 0.004366956185549498, -0.01765848882496357, -0.01814340054988861, -0.010745570063591003, 0.04764869809150696, -0.08847302943468094, 0.02988404408097267, -0.00565683888271451, 0.03322780132293701, 0.002874674741178751, 0.0007105983095243573, 0.022825105115771294, 0.007017568219453096, 0.0013798048021271825, 0.012859543785452843, 0.0194714292883873, 0.0018090266967192292, -0.016229165717959404, 0.04889175295829773, 0.05381866544485092, 0.03944205120205879, 0.030987771227955818, 0.056081268936395645, -0.0071628945879638195, -0.10202737152576447, -0.008060501888394356, -0.016649791970849037, 0.0016571118030697107, 0.009886379353702068, -0.02528279833495617, -0.00453594047576189, 0.0012825974263250828, -0.019032122567296028, -0.03647349402308464, 0.017379436641931534, 0.03771306946873665, -0.046967245638370514, 0.13884876668453217, -0.004553485196083784, -0.043248169124126434, -0.02773473970592022, -0.05175000801682472, -0.014814356341958046, 0.0349879153072834, 0.022746937349438667, -0.03995887562632561, 0.005780728068202734, 0.004687017761170864, 0.07054857164621353, -0.06930312514305115, -0.10193442553281784, -0.05498095601797104, -0.0414096936583519, -0.028210468590259552, -0.05121459439396858, 0.02587248384952545, 0.059119608253240585, -0.06782711297273636, -0.04729770869016647, 0.060848385095596313, 0.046762168407440186, -0.09730124473571777, 0.031119197607040405, -0.010974125005304813, -0.022373231127858162, 0.0005181279848329723, 0.0717431828379631, 0.01624336838722229, -0.004667375702410936, -0.03193960711359978, 0.036688387393951416, 0.01616491563618183, 0.014530160464346409, -0.01152482908219099, -0.02346855401992798, 0.029138240963220596, -0.03399012237787247, -0.09592689573764801, -0.056634895503520966, 0.0036609668750315905, 0.009513020515441895, -0.0033744811080396175, 0.0008150984067469835, -0.026044165715575218, -0.08419076353311539, 0.06420616060495377, -0.04985344782471657, -0.03798089921474457, 0.03165636584162712, 0.02447769045829773, 0.01325385831296444, -0.04059735685586929, 0.02805677242577076, 0.010069741867482662, 0.010447428561747074, 0.019530940800905228, -0.0355355329811573, -0.004455077461898327, 0.06915482878684998, -0.07289735972881317, 0.03225595876574516, 0.0528164841234684, -0.002826858079060912, 0.023221811279654503, 0.003660074435174465, 0.018393203616142273, -0.022008908912539482, -0.001534358598291874, 0.024636264890432358, -0.02912161312997341, 0.03839768469333649, 0.010181397199630737, -0.01783362217247486, -0.060511264950037, -0.009719771333038807, -0.3526289463043213, -0.016237420961260796, 0.009282735176384449, -0.022905243560671806, 0.05335148423910141, -0.04318097233772278, -0.01659475639462471, -0.0010150409070774913, 0.01763380691409111, 0.03983122855424881, 0.031387414783239365, -0.003514370881021023, -0.009947606362402439, -0.09239530563354492, 0.017381133511662483, 0.010535873472690582, -0.008272332139313221, -0.0029885100666433573, -0.015581382438540459, -0.0126346992328763, -0.03352300822734833, -0.04471348598599434, -0.04168446362018585, -0.05399756133556366, 0.023480836302042007, -0.021578602492809296, 0.13093645870685577, 0.008947262540459633, 0.03617551922798157, -0.03848776966333389, 0.04654553905129433, -0.02143789269030094, -0.001673672697506845, -0.04118914157152176, 0.043786488473415375, -0.044484540820121765, -0.003393840743228793, 0.06158439442515373, 0.017493784427642822, -0.03932878375053406, 0.004264371003955603, -0.024635648354887962, -0.017037587240338326, 0.0027309763245284557, -0.007972540333867073, 0.020377105101943016, 0.004085751716047525, 0.01686524972319603, -0.021761281415820122, 0.07642576843500137, 0.03532817214727402, -0.005319259129464626, 0.04206002131104469, 0.05307340621948242, 0.021832799538969994, -0.008183296769857407, -0.05923294648528099, 0.03385964035987854, 0.03540775552392006, -0.06183339282870293, 0.020764745771884918, 0.013628670014441013, 0.03842213377356529, -0.04634803161025047, -0.03968239948153496, -0.002268054988235235, 0.019478585571050644, -0.021570192649960518, -0.015358212403953075, 0.030413419008255005, -0.020058950409293175, 0.09232214093208313, -0.022565258666872978, 0.03383618965744972, 0.039077065885066986, 0.05967063084244728, -0.07748373597860336, -0.010136844590306282, -0.001288114464841783, 0.012908226810395718, 0.03887035325169563, -0.06132476404309273, 0.06651473045349121, -0.013423547148704529, 0.05243132635951042, 0.016684623435139656, 0.010318713262677193, -0.010806474834680557, 0.03306340426206589, 0.037510234862565994, 0.013605213724076748, -0.05506039410829544, -0.013710647821426392, -0.04516065865755081, 0.052555400878190994, -0.008007350377738476, -0.2900902032852173, 0.028986869379878044, 0.05181831121444702, 0.020163079723715782, -0.024584470316767693, 0.00610758550465107, -0.009915269911289215, -0.05042706057429314, -0.031171806156635284, 0.024264512583613396, -0.01101992093026638, 0.03139113262295723, 0.036190494894981384, -0.015567135065793991, 0.02198975719511509, -0.011165718547999859, 0.035006552934646606, -0.013941790908575058, 0.035540156066417694, -0.0039087519980967045, 0.03743116930127144, -0.03632539510726929, 0.1497475802898407, 0.03602181002497673, -0.022716080769896507, -0.013882255181670189, -0.02030090056359768, -0.022353585809469223, 0.10046545416116714, 0.005639555398374796, -0.018856732174754143, 0.03351227939128876, 0.047237202525138855, 0.016228873282670975, 0.02343035489320755, -0.02802441269159317, -0.052795279771089554, 0.03600740432739258, 0.04668309539556503, -0.010556831024587154, -0.02008054219186306, 0.04876169189810753, -0.028218645602464676, 0.042663395404815674, 0.07351281493902206, 0.003145722672343254, 0.006758159026503563, -0.010462971404194832, -0.041935332119464874, -0.030321313068270683, -0.007888412103056908, 0.0502372570335865, -0.015085574239492416, -0.017818741500377655, -0.017589053139090538, 0.048454053699970245, 0.03192368522286415, -0.048363618552684784, 0.010194506496191025, 0.004015932325273752, 0.02691526524722576, -0.0640505701303482, 0.08813396096229553, -0.010202744044363499, 0.015683839097619057 ]
[ -0.010800843127071857, 0.025338387116789818, -0.002021120162680745, 0.008731621317565441, -0.012840206734836102, 0.011046801693737507, -0.010197531431913376, 0.00036491797072812915, -0.011647429317235947, -0.04167987033724785, -0.004973117727786303, -0.0015294553013518453, -0.014252044260501862, -0.02581479214131832, 0.010549948550760746, -0.005165734328329563, 0.0017197208944708109, 0.006141883321106434, 0.0650339350104332, -0.001429557683877647, 0.00765021750703454, 0.03687017783522606, 0.003662181319668889, 0.02092106267809868, -0.006667391397058964, 0.03352993354201317, -0.04590677097439766, -0.011400529183447361, 0.012792888097465038, -0.12945373356342316, -0.04193736985325813, -0.013237341307103634, -0.017692603170871735, 0.007112440187484026, 0.0016170524759218097, 0.004237726796418428, -0.048056818544864655, 0.029132835566997528, 0.022684207186102867, 0.008096423000097275, -0.03312782943248749, 0.005031154491007328, 0.039749935269355774, -0.011000371538102627, 0.004042477812618017, -0.022932862862944603, 0.02871900610625744, -0.007785179652273655, -0.052330970764160156, 0.005370841361582279, -0.045253951102495193, 0.014658170752227306, 0.0022954163141548634, 0.009221137501299381, 0.01217935886234045, -0.035804543644189835, -0.05679723247885704, -0.01583677902817726, -0.012640213593840599, -0.0402778722345829, -0.02317984402179718, 0.019507184624671936, -0.03177640214562416, -0.0219509769231081, 0.017386600375175476, -0.04256178438663483, -0.04607377573847771, -0.0012200446799397469, 0.014202063903212547, 0.006266312673687935, -0.031517110764980316, 0.02424807846546173, -0.00482220621779561, 0.002982399659231305, -0.04105163738131523, 0.013048749417066574, 0.02190619707107544, -0.0529131256043911, 0.0025588839780539274, 0.008973531424999237, 0.0018549745436757803, 0.015360682271420956, 0.004045819863677025, 0.025498144328594208, 0.0019861022010445595, -0.05236458778381348, 0.0012806188315153122, 0.02726164646446705, -0.01776946894824505, -0.034112073481082916, 0.00836581364274025, 0.029324885457754135, 0.01527347695082426, 0.02407049387693405, -0.08165585249662399, -0.010116171091794968, -0.028100544586777687, 0.005408014636486769, 0.023972071707248688, 0.8114106059074402, 0.012014636769890785, 0.039559461176395416, -0.019457798451185226, 0.0437433198094368, -0.024386199191212654, -0.0052753328345716, 0.0115088215097785, -0.00486970879137516, -0.015557256527245045, -0.038282863795757294, 0.0021206599194556475, 0.03356253355741501, 0.020338235422968864, 0.015934204682707787, 0.02257448621094227, 0.04514564946293831, 0.020009728148579597, -0.01728210411965847, 0.009833721444010735, -0.013391152024269104, -0.02369849570095539, -0.007813265547156334, 0.016476916149258614, 0.006988032255321741, -0.009016004391014576, -0.1453852355480194, 0.0323629230260849, -5.860343699394003e-33, 0.028564101085066795, 0.006630219053477049, -0.004076983314007521, -0.018511496484279633, 0.033676013350486755, 0.021494468674063683, 0.0027715459000319242, -0.03885137289762497, 0.024797899648547173, -0.02601402997970581, 0.003172981319949031, -0.024735581129789352, 0.006124627310782671, -0.06787749379873276, 0.01254858635365963, -0.02541167289018631, 0.0020068532321602106, 0.05402355268597603, 0.039734650403261185, -0.030334878712892532, 0.056101493537425995, -0.000727093021851033, 0.036845795810222626, 0.01844845525920391, -0.011899233795702457, 0.009779308922588825, -0.008007671684026718, 0.006520472466945648, 0.000607446301728487, -0.051994919776916504, -0.0024974148254841566, 0.02973087504506111, -0.017069945111870766, 0.0076356069184839725, 0.060019601136446, -0.06266681849956512, -0.008948424831032753, 0.0014734526630491018, 0.005927462596446276, 0.0009298485820181668, -0.0559646375477314, -0.036197397857904434, -0.020222371444106102, -0.00297958729788661, -0.022232752293348312, -0.01014781091362238, 0.02379256673157215, 0.057216715067625046, 0.003020156640559435, 0.05329781398177147, -0.013838361948728561, -0.013771557249128819, 0.0069046043790876865, -0.014344441704452038, -0.013112826272845268, 0.02008785679936409, -0.008815190754830837, -0.012728827074170113, 0.031014258041977882, 0.035200536251068115, -0.019542662426829338, 0.009848167188465595, 0.015046749264001846, 0.0008848090074025095, -0.004372600000351667, 0.02348053641617298, 0.06380973011255264, -0.01975204609334469, 0.05749332904815674, 0.04206012934446335, -0.0260784812271595, -0.01125988457351923, 0.003038091119378805, 0.005542304366827011, 0.043922845274209976, -0.015986831858754158, 0.028696781024336815, -0.003444093279540539, 0.06410413980484009, 0.054188601672649384, 0.03318319469690323, -0.00867285206913948, -0.03621277958154678, -0.00837565865367651, -0.022244218736886978, -0.025834249332547188, 0.011279580183327198, 0.003851281013339758, -0.010380552150309086, 0.020583108067512512, 0.02344815991818905, -0.0173371322453022, -0.008088062517344952, -0.034196462482213974, 0.03087550774216652, 6.464158780554933e-33, 0.03684256970882416, -0.032580792903900146, 0.001143427100032568, 0.01161415595561266, 0.029716284945607185, -0.07803626358509064, 0.012754212133586407, 0.044261086732149124, -0.02402459643781185, 0.031009633094072342, -0.0016189288580790162, -0.03294012323021889, -0.017185745760798454, 0.04124777764081955, 0.05141356214880943, 0.008237001486122608, 0.01932203769683838, -0.009311269037425518, -0.03900019824504852, 0.012925351038575172, -0.028571750968694687, 0.011540645733475685, -0.03329716995358467, 0.021846279501914978, 0.04995923489332199, 0.0536714643239975, 0.013516668230295181, -0.019983170554041862, 0.00028934821602888405, -0.0024031600914895535, -0.015637554228305817, -0.008926776237785816, -0.01122022420167923, -0.020953848958015442, -0.060399170964956284, 0.05519064515829086, 0.0003572705027181655, -0.0319933146238327, 0.03753174841403961, -0.011387520469725132, 0.029205409809947014, 0.016020696610212326, -0.010792110115289688, 0.007775561418384314, 0.013778919354081154, 0.05697769671678543, -0.00008250276005128399, 0.037322036921978, 0.00715220533311367, 0.016002068296074867, -0.005410254932940006, 0.0008869615267030895, 0.015061287209391594, -0.03002127818763256, 0.03469736874103546, -0.022225158289074898, -0.002709528896957636, -0.008126560598611832, -0.0631440207362175, -0.012062788009643555, -0.04008083790540695, -0.020312685519456863, -0.028610659763216972, -0.02994193322956562, -0.0386417992413044, -0.04072630777955055, 0.027175765484571457, -0.04534024000167847, 0.028598634526133537, 0.009080222807824612, 0.012523754499852657, -0.052644893527030945, -0.023697374388575554, 0.04249477759003639, -0.00569438049569726, -0.017853539437055588, -0.048063889145851135, 0.03392398729920387, -0.0009043453028425574, 0.01884419284760952, 0.014318225905299187, 0.016597189009189606, 0.05672357603907585, 0.020542345941066742, 0.008389830589294434, 0.04531506076455116, -0.043583791702985764, 0.007210525218397379, 0.04747824743390083, -0.020589275285601616, -0.002865499584004283, -0.04518316686153412, -0.025976814329624176, 0.05165824294090271, 0.0016868457896634936, -1.223212642287308e-8, -0.031160710379481316, 0.015048635192215443, -0.009341737255454063, -0.0057253181003034115, 0.02705291099846363, 0.022663021460175514, -0.02821696735918522, -0.02527720108628273, 0.049454186111688614, 0.02206929214298725, 0.06242199242115021, -0.013382907956838608, 0.009073866531252861, -0.0079938480630517, -0.017221389338374138, -0.021365614607930183, 0.005162435583770275, -0.0008108490728773177, 0.02233591116964817, -0.021755019202828407, 0.020513486117124557, 0.03056594729423523, 0.01162948552519083, -0.03095541149377823, 0.03508361056447029, 0.014005491510033607, -0.004196268506348133, -0.04989585280418396, -0.0004031849093735218, -0.029420094564557076, 0.05480537936091423, -0.029946183785796165, -0.0022475970908999443, -0.045265063643455505, -0.02821609005331993, -0.04751893877983093, 0.05256153643131256, 0.00045869435416534543, -0.029246481135487556, -0.00236918474547565, 0.0018004097510129213, 0.012998128309845924, -0.038773633539676666, -0.014777791686356068, -0.052983757108449936, -0.005899536423385143, -0.06476741284132004, -0.028290074318647385, 0.004135743714869022, -0.0268546212464571, 0.03749099373817444, -0.007868239656090736, 0.012370264157652855, 0.05747346207499504, 0.03880191594362259, 0.007123355288058519, 0.01724737323820591, -0.04836156219244003, -0.030401553958654404, 0.0015872915973886847, 0.00420731958001852, 0.02014673687517643, -0.012226855382323265, -0.04543643817305565 ]
r-dplyr-mutate-with-strptime-incompatible-sizewrong-result-size
https://markhneedham.com/blog/2014/12/08/r-dplyr-mutate-with-strptime-incompatible-sizewrong-result-size
false
2014-12-13 19:58:13
R: Numeric representation of date time
[ "r-2", "rstats" ]
[ "R" ]
I've been playing around with date times in R recently and I wanted to derive a numeric representation for a given value to make it easier to see the correlation between time and another variable. e.g. December 13th 2014 17:30 should return 17.5 since it's 17.5 hours since midnight. Using the standard R libraries we would write the following code: [source,r] ---- > december13 = as.POSIXlt("2014-12-13 17:30:00") > as.numeric(december13 - trunc(december13, "day"), units="hours") [1] 17.5 ---- That works pretty well but https://twitter.com/tonkouts[Antonios] recently introduced me to the http://cran.r-project.org/web/packages/lubridate/index.html[lubridate] so I thought I'd give that a try as well. The first nice thing about lubridate is that we can use the date we created earlier and call the +++<cite>+++floor_date+++</cite>+++ function rather than +++<cite>+++truncate+++</cite>+++: [source,r] ---- > (december13 - floor_date(december13, "day")) Time difference of 17.5 hours ---- That gives us back a +++<cite>+++difftime+++</cite>+++\... [source,r] ---- > class((december13 - floor_date(december13, "day"))) [1] "difftime" ---- \...which we can divide by different units to get the granularity we want: [source,r] ---- > diff = (december13 - floor_date(december13, "day")) > diff / dhours(1) [1] 17.5 > diff / ddays(1) [1] 0.7291667 > diff / dminutes(1) [1] 1050 ---- Pretty neat! lubridate also has some nice functions for creating dates/date times. e.g. </p> [source,r] ---- > ymd_hms("2014-12-13 17:00:00") [1] "2014-12-13 17:00:00 UTC" > ymd_hm("2014-12-13 17:00") [1] "2014-12-13 17:00:00 UTC" > ymd_h("2014-12-13 17") [1] "2014-12-13 17:00:00 UTC" > ymd("2014-12-13") [1] "2014-12-13 UTC" ---- And if you want a different time zone that's pretty easy too: [source,r] ---- > with_tz(ymd("2014-12-13"), "GMT") [1] "2014-12-13 GMT" ----
null
null
[ 0.016303736716508865, -0.004185152240097523, 0.0061507741920650005, 0.037212129682302475, 0.08163643628358841, 0.020966310054063797, 0.022039122879505157, 0.02645828016102314, 0.005514766089618206, 0.00981841329485178, 0.01670597679913044, 0.017853422090411186, -0.04916216805577278, 0.020371301099658012, -0.030447302386164665, 0.09535422921180725, 0.0489121712744236, -0.05613448843359947, 0.0007504036766476929, 0.0025793518871068954, 0.020781120285391808, 0.02377459779381752, -0.014377172105014324, 0.018956976011395454, 0.03502143919467926, 0.00346818077377975, -0.017609931528568268, 0.002312292344868183, -0.04127072915434837, -0.011550603434443474, 0.054129574447870255, 0.045734845101833344, -0.004779457580298185, 0.032474320381879807, 0.02041768468916416, 0.0027138011064380407, -0.007647609803825617, -0.009794271551072598, 0.01866084896028042, 0.022500792518258095, -0.049607887864112854, 0.011408068239688873, -0.01732751913368702, -0.008666839450597763, -0.04600578173995018, 0.013212896883487701, -0.018940603360533714, 0.014332362450659275, -0.01006354484707117, 0.03416237235069275, -0.06462343782186508, 0.018747610971331596, -0.00024159159511327744, -0.022978320717811584, -0.012965269386768341, 0.05881473049521446, 0.0454312264919281, -0.06762073189020157, 0.020774900913238525, -0.03711525723338127, 0.03542037680745125, -0.002680680714547634, -0.013520185835659504, -0.006038058083504438, 0.004057088866829872, -0.012250334955751896, -0.008527010679244995, 0.014807276427745819, -0.016970206052064896, -0.0014756809687241912, -0.020883463323116302, 0.002101380843669176, -0.05179743096232414, -0.01308528147637844, -0.03274500370025635, -0.04167110472917557, 0.0026996550150215626, 0.057170409709215164, 0.030003834515810013, 0.04980866611003876, -0.024478677660226822, 0.00005932043131906539, 0.05289715155959129, 0.0255119726061821, 0.01649220660328865, 0.025125710293650627, -0.03337903320789337, -0.019605940207839012, -0.026204096153378487, 0.037074748426675797, -0.02448999509215355, -0.024732360616326332, 0.036806654185056686, 0.019974566996097565, -0.015817422419786453, -0.00469845300540328, 0.009905579499900341, 0.00011965460726059973, 0.021781593561172485, -0.013123571872711182, -0.05590859800577164, -0.04588821530342102, 0.06086886674165726, 0.025548646226525307, -0.05762725695967674, -0.01756223663687706, -0.0489562563598156, -0.03363584727048874, 0.0012213003356009722, 0.023325076326727867, -0.016005996614694595, 0.03410761058330536, -0.022296054288744926, -0.004568951204419136, -0.054666321724653244, 0.0298616886138916, 0.0367242656648159, -0.02941395528614521, -0.003146849572658539, 0.006903583183884621, 0.03426804393529892, 0.003545942483469844, 0.007699495647102594, 0.04213607683777809, 0.013230770826339722, 0.07838162034749985, -0.004501182120293379, 0.030822718515992165, -0.02854197844862938, -0.06462042033672333, 0.006508952006697655, 0.046784255653619766, -0.010899504646658897, -0.004085310269147158, -0.014719518832862377, -0.02084789052605629, -0.036019641906023026, 0.014692384749650955, 0.07396720349788666, 0.030201736837625504, 0.03682495281100273, -0.034206122159957886, 0.00299332058057189, -0.06008650362491608, 0.024796031415462494, 0.0007676868117414415, -0.010295256972312927, -0.03000807575881481, -0.046358611434698105, -0.007059072144329548, 0.03340368717908859, 0.01787603460252285, 0.030665133148431778, -0.04117957875132561, 0.03396529704332352, 0.06105794385075569, 0.001166702713817358, 0.015436218120157719, -0.024659307673573494, 0.0033670393750071526, 0.02175966091454029, 0.018657494336366653, -0.03848855942487717, 0.04400014132261276, -0.010869826190173626, -0.022642722353339195, 0.0295097678899765, 0.03399166092276573, -0.04113268107175827, -0.011045718565583229, -0.05076688528060913, -0.05004392936825752, 0.07322032004594803, -0.032998647540807724, -0.020121874287724495, 0.05159240588545799, 0.09125545620918274, 0.022103702649474144, 0.05553923547267914, 0.0032150200568139553, -0.07537809759378433, 0.040985606610774994, 0.028885765001177788, 0.03828569874167442, 0.03163538873195648, -0.04280022904276848, 0.07391514629125595, -0.01812487281858921, 0.026102881878614426, 0.04852528125047684, -0.06894832849502563, -0.06457340717315674, 0.005696211941540241, -0.0322561152279377, 0.05167190358042717, -0.04033312201499939, -0.018914174288511276, 0.057031963020563126, -0.020953863859176636, 0.043091319501399994, -0.019291123375296593, 0.010239728726446629, 0.03309914842247963, -0.04325413331389427, -0.03623274713754654, 0.023336753249168396, 0.03261124715209007, -0.012458061799407005, -0.006385721266269684, 0.008814690634608269, -0.023468518629670143, 0.04393113777041435, 0.02368568442761898, -0.03917863592505455, 0.01738586835563183, 0.043219707906246185, 0.08523103594779968, 0.005730052478611469, 0.008146404288709164, -0.045054834336042404, 0.048499010503292084, 0.012863371521234512, -0.017875956371426582, -0.034028321504592896, 0.009337249211966991, 0.11580216139554977, 0.08124659955501556, -0.030253885313868523, -0.03787826746702194, 0.04626074433326721, -0.03930017352104187, -0.0485537014901638, 0.028397029265761375, 0.0009061992168426514, 0.0035608888138085604, 0.00881778821349144, -0.009799881838262081, -0.007742813788354397, -0.003975784871727228, -0.03497309610247612, 0.019091622903943062, 0.0743323341012001, -0.0007023982470855117, 0.058014824986457825, -0.0449286624789238, 0.0058144996874034405, -0.01733812876045704, -0.03609137982130051, -0.0916430652141571, -0.0021240718197077513, 0.03314023092389107, -0.007620789110660553, 0.039640944451093674, -0.011188112199306488, -0.010519841685891151, -0.02946421317756176, -0.048164643347263336, 0.0488358810544014, 0.062224242836236954, 0.050125207751989365, 0.0031215460039675236, 0.020247293636202812, 0.004811275750398636, 0.009332585148513317, -0.01957758516073227, -0.051407694816589355, -0.04216601699590683, -0.028039388358592987, 0.002849892247468233, 0.02541278675198555, 0.015503225848078728, 0.013582328334450722, 0.020850788801908493, 0.03749717399477959, -0.007306189741939306, -0.03785177692770958, 0.039049167186021805, -0.0174940824508667, -0.039843812584877014, -0.02444305270910263, 0.018348781391978264, 0.06197032332420349, -0.005664193537086248, -0.029614275321364403, -0.013115812093019485, -0.07142559438943863, 0.046893391758203506, -0.0438096784055233, -0.02874327264726162, -0.014215680770576, -0.01783987320959568, 0.036380261182785034, 0.01787773333489895, 0.043757058680057526, 0.0730278491973877, 0.028167344629764557, 0.019377410411834717, 0.01021852158010006, 0.018790360540151596, 0.03641008213162422, 0.0081589724868536, -0.0019010716350749135, 0.07780691981315613, 0.03664376586675644, -0.010923289693892002, -0.040453534573316574, -0.015229790471494198, -0.01780066080391407, -0.25114765763282776, 0.01102401502430439, -0.06102847680449486, -0.03723503276705742, 0.02881322056055069, -0.044061120599508286, 0.062445010989904404, -0.024137381464242935, -0.023973487317562103, 0.009173378348350525, 0.01175426971167326, -0.03708333894610405, -0.04633426293730736, 0.05205213278532028, 0.03708309680223465, 0.013470800593495369, 0.02801504172384739, -0.022728420794010162, 0.007558824960142374, 0.048005178570747375, 0.016306927427649498, -0.04195309430360794, -0.005226807203143835, 0.05103413760662079, 0.024873996153473854, 0.06602676957845688, -0.0388934463262558, 0.034736353904008865, -0.061328109353780746, -0.05456516891717911, 0.028939513489603996, -0.031404849141836166, 0.03517191484570503, -0.0226590633392334, 0.03022291511297226, -0.016469309106469154, 0.007163843605667353, 0.05282090604305267, 0.03972571715712547, 0.04320637881755829, -0.032467957586050034, -0.004708799533545971, 0.0403778962790966, -0.012436768971383572, 0.08164166659116745, 0.027813037857413292, -0.039403583854436874, 0.03753321245312691, -0.014592017978429794, 0.08742495626211166, -0.014926939271390438, -0.00278077251277864, -0.03709577023983002, -0.018488967791199684, -0.03756703436374664, -0.029618315398693085, -0.04337600991129875, 0.002158447401598096, 0.005120894405990839, -0.03565314784646034, 0.020703323185443878, -0.02202008292078972, 0.00973054300993681, -0.04523715004324913, -0.06155052408576012, -0.06385235488414764, -0.1013089194893837, -0.026867074891924858, 0.06365180760622025, 0.05275176465511322, -0.038415905088186264, -0.04513762518763542, -0.0090729258954525, -0.10713321715593338, -0.035555463284254074, -0.04002001881599426, -0.0358612947165966, -0.03033030778169632, -0.015948722139000893, 0.039798084646463394, -0.05593132600188255, -0.042205508798360825, 0.01855602115392685, 0.018811291083693504, 0.021640146151185036, -0.014431478455662727, 0.0036944677121937275, -0.007078482769429684, -0.02872377075254917, -0.020359963178634644, 0.046956755220890045, -0.02244001440703869, -0.04398307576775551, -0.01536521129310131, -0.009498490020632744, 0.0006530713872052729, 0.006330062169581652, 0.031246520578861237, 0.028172502294182777, 0.003263856051489711, 0.002530992729589343, -0.059040091931819916, 0.033716388046741486, -0.08881615102291107, -0.020224157720804214, -0.029358329251408577, -0.0432220995426178, 0.023236816748976707, 0.008663557469844818, 0.043822165578603745, -0.0034874286502599716, 0.00294012320227921, 0.004808689001947641, -0.06123577430844307, -0.025547802448272705, -0.022411296144127846, 0.009525304660201073, 0.027136949822306633, 0.005793669726699591, 0.014120235107839108, -0.06906089186668396, 0.015746936202049255, -0.016649745404720306, -0.05885256454348564, -0.025510627776384354, 0.0003788141184486449, 0.0011132977670058608, -0.05092158541083336, 0.02565518021583557, 0.027512552216649055, -0.03410148248076439, 0.029654279351234436, 0.044641733169555664, -0.008018762804567814, 0.011299677193164825, 0.0016193430637940764, -0.02245503105223179, -0.02397104725241661, -0.0111235361546278, 0.021653885021805763, -0.01927826553583145, -0.00041127207805402577, 0.006674015428870916, 0.002120418008416891, 0.035133980214595795, 0.012324701994657516, 0.03232351690530777, -0.01226730551570654, 0.0036762661766260862, 0.023646371439099312, -0.016593817621469498, -0.02483934536576271, 0.01008941512554884, -0.05069495737552643, -0.028741421177983284, -0.022542044520378113, 0.050949253141880035, 0.010351170785725117, -0.03340565040707588, -0.05167461931705475, 0.012574353255331516, -0.04006539285182953, -0.024254582822322845, -0.021722663193941116, 0.003958906512707472, 0.04398762807250023, -0.00676501402631402, 0.03265077993273735, 0.030970687046647072, -0.027612168341875076, -0.02210129424929619, -0.009346428327262402, -0.030196774750947952, 0.006507498677819967, -0.032794639468193054, 0.0015793705824762583, 0.022398289293050766, -0.009851520881056786, 0.018278170377016068, 0.0021073222160339355, -0.008516248315572739, -0.00833407137542963, -0.013538551516830921, -0.01652543619275093, 0.02679428830742836, 0.02227121591567993, 0.017434559762477875, -0.01706240512430668, -0.014393137767910957, -0.03538113087415695, -0.010715426877140999, -0.021888911724090576, -0.015596254728734493, -0.021239181980490685, -0.038443416357040405, -0.07877287268638611, 0.03504936024546623, 0.05902102589607239, -0.006695046555250883, 0.015910254791378975, 0.005706173833459616, -0.01108003780245781, -0.04557947814464569, 0.042718928307294846, 0.04963206499814987, -0.061643991619348526, 0.014848854392766953, -0.0025079951155930758, -0.001210494781844318, 0.008324253372848034, 0.022378403693437576, -0.04552430659532547, 0.00019405571219976991, -0.015037201344966888, 0.03886425495147705, 0.014869363978505135, -0.03433923050761223, -0.05341923236846924, 0.00391311664134264, -0.0030083695892244577, 0.014026908203959465, -0.006454287096858025, -0.00098667002748698, -0.021113872528076172, 0.012832223437726498, 0.003362744115293026, -0.044776007533073425, -0.005778379272669554, 0.029969777911901474, 0.0012842218857258558, 0.0201354268938303, -0.03740042448043823, 0.024640338495373726, 0.016016235575079918, -0.02718440443277359, -0.017053164541721344, -0.06005113944411278, 0.005523663945496082, -0.005044564604759216, 0.03547383472323418, -0.006762246135622263, 0.026613418012857437, -0.013713931664824486, 0.0035759485326707363, -0.027602825313806534, -0.010767599567770958, -0.006765497848391533, -0.007286513224244118, 0.010624400340020657, 0.032761815935373306, 0.01142107043415308, -0.023920487612485886, -0.018405098468065262, -0.018150707706809044, 0.060416873544454575, -0.03608454018831253, -0.038147926330566406, 0.0013422714546322823, -0.035841215401887894, 0.031128788366913795, -0.0013447387609630823, -0.0005868504522368312, -0.03927168995141983, 0.03530506417155266, 0.039183758199214935, 0.05645883083343506, 0.08049596846103668, 0.007171168457716703, 0.025548135861754417, -0.009332737885415554, 0.0015621149213984609, -0.08948250859975815, -0.00019564876856748015, 0.02825934998691082, 0.011627737432718277, -0.030678603798151016, 0.022318266332149506, -0.015825288370251656, 0.03582770749926567, -0.06530486047267914, -0.03617984801530838, 0.05923556163907051, -0.0032492775935679674, 0.014446867629885674, 0.019822750240564346, -0.03872251138091087, 0.008275104686617851, 0.04638829454779625, -0.06720095872879028, 0.00020769366528838873, -0.02391674742102623, 0.06616091728210449, -0.04383349046111107, 0.033984653651714325, -0.050959307700395584, -0.008175353519618511, 0.06441367417573929, 0.040865495800971985, -0.016991132870316505, 0.05754556506872177, -0.019450047984719276, 0.04505148157477379, 0.016516434028744698, -0.017003124579787254, -0.0022166308481246233, -0.01780281588435173, 0.010733255185186863, -0.04090910777449608, -0.010639604181051254, -0.001538699259981513, -0.011180639266967773, -0.015506058931350708, 0.06740739941596985, 0.025390764698386192, -0.021481504663825035, -0.055638547986745834, 0.007873711176216602, -0.02865009568631649, 0.009972281754016876, 0.016606075689196587, -0.020613443106412888, -0.030744751915335655, 0.06895175576210022, -0.01594008132815361, -0.0012985138455405831, 0.08746020495891571, 0.021402424201369286, -0.009393646381795406, 0.02112487703561783, 0.061886951327323914, 0.08629065006971359, 0.03126833587884903, -0.006981147453188896, 0.06780970096588135, -0.020343903452157974, -0.025766147300601006, 0.04367832839488983, -0.050918471068143845, -0.010842845775187016, -0.030437979847192764, 0.024060385301709175, 0.09689207375049591, -0.035912200808525085, 0.045109741389751434, -0.016889845952391624, -0.02313835360109806, -0.0082447100430727, -0.0022925520315766335, 0.03545426204800606, 0.0332958959043026, 0.006966458633542061, 0.013832432217895985, 0.00018481504230294377, -0.007496051490306854, 0.03989081084728241, -0.030412938445806503, 0.007491228170692921, -0.0074017466977238655, -0.011298656463623047, 0.0038370948750525713, -0.011035037226974964, 0.04177175462245941, 0.07384655624628067, -0.010793479159474373, -0.008317130617797375, -0.01688603311777115, 0.06426447629928589, -0.0046661654487252235, 0.011131653562188148, -0.023448007181286812, -0.018201425671577454, -0.014409384690225124, -0.040373850613832474, -0.004311439581215382, 0.00992560014128685, -0.03564596176147461, 0.03887190669775009, -0.022218767553567886, 0.01800677739083767, 0.03210216760635376, -0.05207640677690506, -0.0322091169655323, -0.03524918854236603, -0.03807802498340607, -0.04432973265647888, -0.09100829809904099, 0.007186806760728359, 0.021108025684952736, -0.016711916774511337, -0.03580969199538231, 0.014339592307806015, -0.0032488165888935328, -0.013183646835386753, -0.027114717289805412, -0.06447544693946838, -0.0225847065448761, 0.026267435401678085, -0.003756898455321789, -0.0211776252835989, 0.017365362495183945, 0.052757009863853455, 0.003195658791810274, -0.018442563712596893, -0.02868003211915493, 0.014620545320212841, 0.020819909870624542, 0.036751098930835724, 0.003948315046727657, -0.041137512773275375, 0.015166818164288998, -0.002936044940724969, -0.022438500076532364, -0.09065357595682144, 0.012151080183684826, -0.007122227922081947, -0.03352909907698631, 0.03657433018088341, -0.02625717967748642, 0.0285669956356287, -0.020795805379748344, -0.01929517835378647, 0.03189348801970482, 0.04539508745074272, 0.03868710622191429, -0.03666257485747337, 0.06409236043691635, 0.04022552818059921, -0.0004404306528158486, -0.029352374374866486, -0.035449638962745667, -0.021206244826316833, -0.02329532988369465, -0.06962478905916214, -0.03760654106736183, -0.057851389050483704, -0.12608759105205536, -0.046505797654390335, 0.01268339529633522, -0.04293876141309738, -0.03756818547844887, 0.034840285778045654, 0.03534722700715065, -0.04085894674062729, 0.012806318700313568, -0.03422684594988823, 0.006354044191539288, -0.03458332642912865, -0.0059590148739516735, 0.004369063768535852, 0.0314655601978302, 0.005052234046161175, 0.0001751743839122355, 0.006574330851435661, -0.04586818814277649, 0.0004847985692322254, -0.043217096477746964, -0.005159416701644659, 0.05498339608311653, 0.050751522183418274, 0.010446690022945404 ]
[ -0.07319974154233932, 0.008430392481386662, -0.023285772651433945, 0.006896240636706352, 0.06739192456007004, -0.044773343950510025, -0.03229617699980736, 0.02336302027106285, 0.015919603407382965, -0.009107316844165325, 0.024318253621459007, -0.032132588326931, 0.013537922874093056, 0.008425122126936913, 0.04805535823106766, -0.03725379332900047, -0.022236283868551254, -0.034605853259563446, -0.01599322073161602, 0.022974945604801178, 0.0306252334266901, -0.007251313887536526, -0.04547377675771713, -0.03662893921136856, 0.04540625214576721, 0.03667491674423218, -0.014343713410198689, -0.020783474668860435, -0.018527645617723465, -0.2133588045835495, 0.014641922898590565, 0.013794614002108574, 0.012710546143352985, -0.014377600513398647, 0.008252544328570366, 0.03440555930137634, 0.014634215272963047, 0.0077323028817772865, 0.016659539192914963, 0.04454159364104271, 0.028657589107751846, 0.020573874935507774, -0.03773073852062225, -0.04523922875523567, 0.011083316057920456, 0.028491051867604256, -0.06182679906487465, 0.03557153418660164, -0.017805689945816994, 0.02725525014102459, -0.05083745718002319, 0.011193875223398209, -0.0024115298874676228, 0.016920676454901695, -0.008890099823474884, 0.02680600993335247, 0.033226482570171356, 0.02532816119492054, 0.03097696043550968, 0.00434006005525589, -0.0024817418307065964, 0.010007974691689014, -0.1862146109342575, 0.11788247525691986, -0.003987921867519617, 0.01336966548115015, -0.016666943207383156, 0.014595706015825272, -0.011731958016753197, 0.05852576345205307, -0.006506436504423618, -0.027005517855286598, -0.047199077904224396, 0.04780823364853859, 0.012332389131188393, -0.023784415796399117, -0.009906723164021969, 0.0015510475495830178, 0.05740552395582199, -0.020062655210494995, 0.014809496700763702, 0.02585694193840027, -0.013860613107681274, -0.027651013806462288, -0.005904963705688715, -0.002479919232428074, 0.00506145553663373, 0.03647546097636223, 0.0006357991951517761, 0.03753846511244774, 0.005504126660525799, 0.007557377219200134, 0.029727676883339882, 0.02705576829612255, -0.06703976541757584, 0.01966075971722603, 0.04399550333619118, 0.041626106947660446, 0.01341959461569786, 0.39317598938941956, -0.03530595824122429, 0.002139595104381442, -0.003510385053232312, 0.06800635159015656, -0.012495620176196098, -0.013648905791342258, 0.011498603969812393, -0.07027310132980347, -0.004554607905447483, -0.03238263353705406, 0.005931386258453131, -0.021945245563983917, 0.05157845467329025, -0.09520480036735535, 0.039629384875297546, -0.009027833119034767, 0.06475387513637543, 0.01823628693819046, 0.029599357396364212, 0.011978516355156898, -0.004744112957268953, -0.016337499022483826, 0.030643844977021217, -0.008290478028357029, 0.01044816616922617, 0.0012710504233837128, 0.084186851978302, 0.08025965094566345, 0.028922559693455696, 0.01638922467827797, 0.06988109648227692, -0.03073548525571823, -0.07270440459251404, 0.012420941144227982, 0.0024775287602096796, 0.030591579154133797, -0.0031382141169160604, -0.02166564017534256, 0.007072051055729389, -0.001034512766636908, -0.061039913445711136, -0.039572298526763916, 0.04458605870604515, 0.021237138658761978, -0.0457439199090004, 0.14549176394939423, -0.009687431156635284, -0.006605082657188177, -0.034407276660203934, -0.04182541370391846, -0.01680164411664009, 0.016869811341166496, 0.030099304392933846, -0.06752574443817139, -0.0019012438133358955, 0.004488412290811539, 0.11382825672626495, -0.04980975389480591, -0.07148320227861404, -0.023131364956498146, -0.035725392401218414, -0.019261013716459274, -0.020998388528823853, 0.024640675634145737, 0.056749630719423294, -0.0729774683713913, -0.0010644280118867755, 0.04219026118516922, 0.03267127275466919, -0.07032820582389832, 0.03171761706471443, 0.02265431359410286, -0.019369913265109062, -0.020648913457989693, 0.09530086070299149, 0.021457435563206673, 0.029911670833826065, 0.011005248874425888, 0.06286470592021942, 0.007807043846696615, -0.021032674238085747, -0.021215274930000305, -0.03589737042784691, 0.00813222210854292, -0.04450920969247818, -0.057364318519830704, -0.05595364794135094, 0.013778801076114178, -0.0039851428009569645, 0.008835697546601295, 0.035473618656396866, -0.045624829828739166, -0.05233466252684593, 0.06786928325891495, -0.055767301470041275, -0.0249860230833292, 0.014566528610885143, 0.03821827843785286, -0.0014626047341153026, -0.033122193068265915, -0.03508869931101799, -0.006743689067661762, 0.010966036468744278, -0.000629098096396774, -0.01140565425157547, 0.016990145668387413, 0.06508385390043259, -0.04882929101586342, 0.05742769315838814, 0.06268227845430374, 0.020700734108686447, -0.020666467025876045, -0.008638827130198479, -0.03475726395845413, -0.004557899199426174, 0.019946293905377388, 0.0044701360166072845, -0.04467563331127167, -0.00911931786686182, 0.02201945334672928, -0.0011631029192358255, -0.05723125487565994, -0.000642471422906965, -0.3442665934562683, -0.022341202944517136, -0.01597757264971733, -0.03648732230067253, 0.09888522326946259, -0.046765223145484924, -0.021759722381830215, -0.030955668538808823, 0.007548300549387932, 0.06223799288272858, 0.028171706944704056, 0.01728777401149273, -0.05513876676559448, -0.11923201382160187, -0.00227556680329144, 0.04296577349305153, -0.016214901581406593, -0.0063731190748512745, -0.016110125929117203, 0.0023581311106681824, -0.03139788657426834, -0.039310112595558167, -0.03481584042310715, -0.04540034011006355, 0.021302329376339912, -0.02577315829694271, 0.09980344772338867, 0.012808848172426224, 0.029003174975514412, -0.05495673045516014, 0.01629306934773922, -0.0444820374250412, 0.01746806874871254, -0.07056054472923279, 0.0015428164042532444, -0.03791399672627449, 0.028560971841216087, 0.04387987405061722, 0.010973210446536541, -0.050739556550979614, -0.028282254934310913, 0.03202616795897484, 0.0033657322637736797, 0.011594878509640694, -0.047994907945394516, 0.043669987469911575, 0.01961410790681839, -0.009210950694978237, -0.022046400234103203, 0.054973721504211426, 0.021734142675995827, -0.02016947604715824, 0.019327351823449135, 0.006770926993340254, 0.008937804028391838, -0.01771031878888607, -0.07629566639661789, -0.006319812033325434, 0.005423582158982754, -0.04029429331421852, 0.004385501611977816, 0.03334932401776314, 0.03306632488965988, -0.04400178790092468, -0.03837219253182411, 0.004429289139807224, -0.01111198402941227, -0.0554424449801445, -0.023441100493073463, 0.042699284851551056, -0.01016605831682682, 0.12379489839076996, -0.05425179749727249, 0.012930763885378838, 0.025455953553318977, 0.028565259650349617, -0.03543749824166298, 0.03233975172042847, 0.012929233722388744, 0.028385095298290253, 0.032573625445365906, -0.03747842088341713, 0.05803152546286583, -0.01282450370490551, 0.03853241726756096, -0.034332890063524246, -0.0011255142744630575, -0.01189135480672121, 0.023960625752806664, 0.04961977154016495, -0.008152348920702934, -0.060959652066230774, 0.007961605675518513, -0.07914432138204575, 0.062326040118932724, -0.006607203744351864, -0.2865889072418213, 0.037889719009399414, 0.060755405575037, 0.02418406866490841, -0.007136286702007055, -0.022541843354701996, -0.013994408771395683, -0.033252619206905365, -0.04299499839544296, -0.0003023562312591821, 0.016266988590359688, 0.08233144879341125, 0.024008970707654953, -0.007574568968266249, 0.011465266346931458, -0.009088939055800438, 0.038445476442575455, -0.04542175307869911, 0.005127533804625273, 0.004663222935050726, 0.018222544342279434, -0.022169744595885277, 0.14901478588581085, -0.001600668765604496, 0.01386060006916523, 0.015248538926243782, -0.0009175799787044525, 0.017097318544983864, 0.09820868819952011, -0.0037346172612160444, -0.010191837325692177, 0.022937443107366562, 0.02461441420018673, 0.005144952796399593, 0.006383663043379784, 0.0017942332196980715, -0.054410792887210846, 0.0484175868332386, 0.034042712301015854, -0.01007881760597229, -0.0060927835293114185, 0.01058634091168642, -0.04474275931715965, 0.031960077583789825, 0.08557607233524323, -0.019049638882279396, 0.004074480850249529, -0.07633165270090103, -0.02957208640873432, -0.032048337161540985, -0.014115856029093266, -0.006566207390278578, -0.027651634067296982, 0.010594544932246208, 0.012134970165789127, 0.04861456900835037, 0.016862984746694565, -0.03102128952741623, 0.05537288635969162, -0.0004607304581440985, -0.02759646065533161, -0.06467508524656296, 0.08899463713169098, -0.020947249606251717, 0.00433019082993269 ]
[ -0.022371379658579826, 0.019372370094060898, 0.0213247612118721, 0.03616088628768921, 0.003425288014113903, -0.02587072364985943, -0.0150928795337677, 0.016630293801426888, 0.010815393179655075, -0.021779334172606468, -0.01813206635415554, 0.0019662377890199423, -0.025325601920485497, 0.011759505607187748, 0.0019034033175557852, -0.01980574242770672, 0.02158544957637787, 0.017004404217004776, 0.03617599979043007, -0.008999348618090153, -0.01664235256612301, 0.02007056400179863, -0.0007715562242083251, 0.01728023774921894, 0.006174525711685419, 0.04700319841504097, -0.019446799531579018, 0.024049872532486916, 0.016414569690823555, -0.10436224192380905, -0.014548053964972496, 0.016144616529345512, 0.006047811824828386, -0.02786906436085701, -0.04902387037873268, -0.015050290152430534, -0.013452465645968914, 0.022336330264806747, 0.041360240429639816, 0.010026615113019943, -0.0038340764585882425, -0.0008967301691882312, 0.036015257239341736, -0.020059049129486084, -0.014842522330582142, -0.028338532894849777, -0.007575659081339836, 0.002068973844870925, -0.03408224880695343, 0.009994967840611935, -0.015684429556131363, 0.0216421727091074, -0.016141196712851524, 0.026117416098713875, 0.03181033581495285, -0.029377561062574387, -0.030942155048251152, -0.02932467684149742, -0.02033167891204357, -0.050225287675857544, -0.019530462101101875, 0.032487522810697556, -0.058506786823272705, -0.02904849499464035, -0.013084404170513153, -0.052846211940050125, -0.009221621789038181, -0.007258489262312651, 0.02912578172981739, -0.0003216525074094534, -0.026041323319077492, 0.03088253363966942, -0.02247319184243679, -0.01022268459200859, 0.011160752736032009, 0.029314564540982246, 0.008171929977834225, -0.026257801800966263, 0.006116242613643408, -0.03120128996670246, -0.01465141586959362, 0.010516881011426449, 0.028359390795230865, -0.0003518954908940941, -0.014627515338361263, -0.04815905541181564, 0.0428331196308136, 0.04865899682044983, -0.0016645840369164944, -0.027600469067692757, 0.0052293832413852215, 0.006188747473061085, 0.007870444096624851, -0.010545863769948483, -0.07683338969945908, -0.003766651963815093, -0.013761681504547596, 0.02746562473475933, 0.015227674506604671, 0.8473836779594421, -0.00919837411493063, 0.028120256960392, -0.011674698442220688, -0.0031498263124376535, -0.036430202424526215, -0.018006455153226852, -0.0004767478385474533, -0.026533862575888634, -0.011100648902356625, -0.04586656391620636, 0.047347791492938995, -0.018283085897564888, 0.027142465114593506, 0.027285322546958923, 0.034069787710905075, 0.03250580653548241, 0.0035732672549784184, 0.012958533130586147, -0.0020705077331513166, 0.009904762730002403, 0.006120420526713133, 0.002964544575661421, -0.008887182921171188, 0.018274452537298203, -0.006917070597410202, -0.1778794229030609, 0.018086591735482216, -5.7938985138717885e-33, 0.05138703063130379, -0.02560959756374359, 0.014619302935898304, -0.017168661579489708, -0.0008429915178567171, 0.018176212906837463, 0.0054675135761499405, 0.004745197482407093, 0.02839726395905018, -0.007818860001862049, 0.01247849315404892, 0.003273497801274061, -0.009569630026817322, -0.056348055601119995, 0.011601650156080723, 0.0014253798872232437, -0.013082948513329029, 0.017984170466661453, 0.006866218522191048, 0.03007086180150509, 0.024585425853729248, 0.00022345103207044303, -0.0022788874339312315, 0.025599753484129906, 0.035838302224874496, 0.0064586759544909, 0.015729229897260666, -0.001204037107527256, 0.018318088725209236, -0.04888245090842247, -0.011407538317143917, 0.017387185245752335, -0.011518559418618679, 0.018021877855062485, 0.035695113241672516, -0.027934018522500992, -0.03602607175707817, 0.0022327948827296495, -0.002639402635395527, -0.0276729017496109, -0.026404542848467827, -0.007533148396760225, -0.04965483024716377, 0.0006924098706804216, -0.02165563404560089, 0.04407671466469765, 0.02718455344438553, 0.06256517022848129, 0.002237176988273859, 0.033121492713689804, -0.02666350267827511, 0.011082370765507221, 0.009275802411139011, -0.052118413150310516, -0.009775994345545769, 0.029413586482405663, 0.022142382338643074, 0.010364308953285217, 0.010790989734232426, 0.0013785333139821887, -0.014850272797048092, 0.02249038778245449, 0.01754232682287693, 0.009815525263547897, -0.017580777406692505, -0.006071819458156824, 0.03276554495096207, -0.02636219561100006, 0.01679258793592453, 0.04682266712188721, -0.03439662605524063, -0.013572746887803078, -0.004626487847417593, -0.006337293423712254, 0.046688079833984375, -0.0008598878630436957, 0.04580971971154213, 0.012639574706554413, 0.011384437792003155, 0.009827915579080582, 0.0073816790245473385, -0.012065808288753033, 0.025362610816955566, -0.030204735696315765, -0.01880219578742981, -0.030154714360833168, 0.0016124064568430185, 0.0276924017816782, -0.017263848334550858, 0.004620898049324751, 0.03198983892798424, -0.01039230264723301, 0.010669832117855549, 0.0036169642116874456, -0.029235096648335457, 6.837749987029457e-33, -0.0017623432213440537, -0.027764545753598213, -0.0025200897362083197, 0.009572040289640427, 0.004014346748590469, -0.0151432566344738, -0.0007214007782749832, 0.011164514347910881, -0.008800099603831768, 0.03622695058584213, 0.018308991566300392, -0.05446983873844147, -0.05102603882551193, 0.03454291447997093, 0.08246488869190216, -0.013336993753910065, 0.025245724245905876, -0.006522414740175009, -0.03767631575465202, 0.03387274965643883, -0.017674552276730537, -0.019063903018832207, -0.001458579208701849, -0.02461612969636917, 0.02908116579055786, 0.05394066497683525, 0.013332681730389595, -0.01275706011801958, -0.006809505168348551, -0.004607241600751877, -0.03183708339929581, -0.0014864488039165735, -0.01825796626508236, -0.04397435113787651, -0.05447501316666603, 0.04558859020471573, 0.0331139862537384, -0.03620872274041176, -0.023244554176926613, -0.005157129373401403, 0.023564981296658516, 0.015053697861731052, 0.0035698753781616688, 0.01403257716447115, 0.010136031545698643, -0.008022166788578033, 0.0054355463944375515, 0.00110847526229918, -0.005598610267043114, 0.016326867043972015, 0.005397578235715628, -0.019364431500434875, 0.005318251438438892, 0.00892389751970768, 0.015809958800673485, -0.006489628925919533, -0.0048123979941010475, -0.000013165822565497365, -0.018153851851820946, -0.0037923206109553576, -0.021874425932765007, -0.01973119005560875, -0.02730143442749977, 0.03228025883436203, -0.04856341332197189, -0.011383121833205223, 0.011064913123846054, -0.035289064049720764, -0.011843090876936913, 0.009389672428369522, 0.0020467082504183054, -0.010939364321529865, 0.010131456889212132, 0.023095067590475082, -0.012011132203042507, -0.013172963634133339, 0.002600101986899972, -0.000191151411854662, -0.005628000944852829, 0.030627865344285965, 0.021325984969735146, 0.0021600096952170134, 0.009410412050783634, -0.015343472361564636, -0.03442658483982086, 0.012010280042886734, -0.010650367476046085, 0.025599589571356773, 0.054538726806640625, 0.0002972872753161937, -0.0043350826017558575, -0.004314495716243982, -0.02879294380545616, 0.03758568316698074, 0.021035432815551758, -1.2466419008205776e-8, -0.008832287974655628, 0.0029004523530602455, -0.036320365965366364, 0.013155080378055573, 0.010860138572752476, 0.00022393756080418825, 0.0075180563144385815, -0.01763010583817959, -0.005743834190070629, 0.03182833269238472, 0.07605019956827164, -0.029077526181936264, 0.017067624256014824, -0.004295099060982466, 0.018676821142435074, -0.03254419565200806, -0.007483836729079485, -0.013664588332176208, 0.025208331644535065, -0.024160025641322136, 0.054788295179605484, 0.02862747572362423, -0.00853915885090828, 0.025979336351156235, 0.03938986361026764, 0.02406877651810646, -0.007970754988491535, -0.06150313466787338, 0.006910252850502729, -0.019374612718820572, 0.04193805903196335, -0.028577696532011032, 0.007933180779218674, -0.006390127819031477, -0.032698892056941986, -0.06600889563560486, 0.02138090692460537, 0.02883380837738514, -0.009980432689189911, 0.036027684807777405, -0.004837817046791315, 0.012950750067830086, -0.0628034919500351, -0.02309618890285492, -0.009193845093250275, 0.0073961373418569565, -0.03727831691503525, -0.005176248028874397, -0.010876437649130821, 0.004811128135770559, 0.029270565137267113, -0.003629507962614298, 0.02060580439865589, 0.019391128793358803, 0.02955416776239872, 0.0034933078568428755, 0.0181242935359478, -0.04107443988323212, -0.06542342901229858, -0.03297002986073494, -0.007986255921423435, -0.01179948914796114, -0.004455523565411568, -0.034575533121824265 ]
r-numeric-representation-of-date-time
https://markhneedham.com/blog/2014/12/13/r-numeric-representation-of-date-time
false
2014-12-13 20:38:22
R: Time to/from the weekend
[ "r-2", "rstats" ]
[ "R" ]
In my last post I showed some examples using http://www.markhneedham.com/blog/2014/12/13/r-numeric-representation-of-date-time/[R's lubridate] package and another problem it made really easy to solve was working out how close a particular date time was to the weekend. I wanted to write a function which would return the previous Sunday or upcoming Saturday depending on which was closer. lubridate's +++<cite>+++floor_date+++</cite>+++ and +++<cite>+++ceiling_date+++</cite>+++ functions make this quite simple. e.g. if we want to round the 18th December down to the beginning of the week and up to the beginning of the next week we could do the following: [source,r] ---- > library(lubridate) > floor_date(ymd("2014-12-18"), "week") [1] "2014-12-14 UTC" > ceiling_date(ymd("2014-12-18"), "week") [1] "2014-12-21 UTC" ---- For the date in the future we actually want to grab the Saturday rather than the Sunday so we'll subtract one day from that: [source,r] ---- > ceiling_date(ymd("2014-12-18"), "week") - days(1) [1] "2014-12-20 UTC" ---- Now let's put that together into a function which finds the closest weekend for a given date: [source,r] ---- findClosestWeekendDay = function(dateToLookup) { before = floor_date(dateToLookup, "week") + hours(23) + minutes(59) + seconds(59) after = ceiling_date(dateToLookup, "week") - days(1) if((dateToLookup - before) < (after - dateToLookup)) { before } else { after } } > findClosestWeekendDay(ymd_hms("2014-12-13 13:33:29")) [1] "2014-12-13 UTC" > findClosestWeekendDay(ymd_hms("2014-12-14 18:33:29")) [1] "2014-12-14 23:59:59 UTC" > findClosestWeekendDay(ymd_hms("2014-12-15 18:33:29")) [1] "2014-12-14 23:59:59 UTC" > findClosestWeekendDay(ymd_hms("2014-12-17 11:33:29")) [1] "2014-12-14 23:59:59 UTC" > findClosestWeekendDay(ymd_hms("2014-12-17 13:33:29")) [1] "2014-12-20 UTC" > findClosestWeekendDay(ymd_hms("2014-12-19 13:33:29")) [1] "2014-12-20 UTC" ---- I've set the Sunday date at 23:59:59 so that I can use this date in the next step where we want to calculate how how many hours it is from the current date to the nearest weekend. I ended up with this function: [source,r] ---- distanceFromWeekend = function(dateToLookup) { before = floor_date(dateToLookup, "week") + hours(23) + minutes(59) + seconds(59) after = ceiling_date(dateToLookup, "week") - days(1) timeToBefore = dateToLookup - before timeToAfter = after - dateToLookup if(timeToBefore < 0 || timeToAfter < 0) { 0 } else { if(timeToBefore < timeToAfter) { timeToBefore / dhours(1) } else { timeToAfter / dhours(1) } } } > distanceFromWeekend(ymd_hms("2014-12-13 13:33:29")) [1] 0 > distanceFromWeekend(ymd_hms("2014-12-14 18:33:29")) [1] 0 > distanceFromWeekend(ymd_hms("2014-12-15 18:33:29")) [1] 18.55833 > distanceFromWeekend(ymd_hms("2014-12-17 11:33:29")) [1] 59.55833 > distanceFromWeekend(ymd_hms("2014-12-17 13:33:29")) [1] 58.44194 > distanceFromWeekend(ymd_hms("2014-12-19 13:33:29")) [1] 10.44194 ---- While this works it's quite slow when you run it over a data frame which contains a lot of rows. There must be a clever R way of doing the same thing (perhaps using matrices) which I haven't figured out yet so if you know how to speed it up do let me know.
null
null
[ 0.004448979627341032, -0.0012749278685078025, 0.03161221742630005, 0.028758659958839417, 0.08070603013038635, 0.008065578527748585, 0.015371128916740417, 0.020581381395459175, 0.008297734893858433, 0.015183916315436363, 0.006485663820058107, 0.029405875131487846, -0.05249010771512985, 0.012631404213607311, -0.03668691962957382, 0.08477775752544403, 0.06688502430915833, -0.02475542016327381, -0.0020430022850632668, -0.02187786065042019, 0.023344838991761208, 0.054584670811891556, -0.0007743093301542103, 0.03493333235383034, 0.04019021615386009, -0.0032837747130542994, -0.01694449968636036, 0.013921212404966354, -0.04770917445421219, 0.003452771808952093, 0.021293018013238907, 0.01999429240822792, -0.01247771829366684, 0.0010165413841605186, -0.003946946933865547, -0.002929654670879245, 0.009228969924151897, -0.016817312687635422, 0.004660367965698242, 0.02566911093890667, -0.05401478707790375, 0.023953191936016083, -0.007846102118492126, 0.004756905138492584, -0.05453409627079964, 0.025494826957583427, -0.03909129649400711, 0.0022202760446816683, 0.003973603248596191, -0.007651703432202339, -0.06298304349184036, 0.0380590483546257, -0.0024253621231764555, -0.009891152381896973, -0.013200403191149235, 0.06957346200942993, 0.017534686252474785, -0.06810390949249268, 0.01813829131424427, -0.02031630277633667, 0.02953161858022213, -0.01952838897705078, 0.0018184081418439746, 0.02511291764676571, 0.003547545289620757, -0.013180996291339397, -0.009513300843536854, 0.022679466754198074, -0.024684155359864235, 0.00796481966972351, -0.033783070743083954, -0.0017271172255277634, -0.020514285191893578, -0.0125040952116251, -0.03775941580533981, -0.029490550979971886, 0.007542522624135017, 0.04624208062887192, 0.028675798326730728, 0.03498184308409691, -0.017987601459026337, -0.002157726790755987, 0.03257833421230316, 0.024954168125987053, 0.022905603051185608, -0.002685442566871643, -0.03304656594991684, -0.030251363292336464, -0.051689960062503815, 0.06117049977183342, 0.003490509232506156, -0.025930088013410568, 0.02911560796201229, 0.0328080989420414, -0.02659171260893345, 0.005762817803770304, 0.02161269076168537, -0.0012659576022997499, 0.016995441168546677, -0.019450213760137558, -0.04054528474807739, -0.04401610046625137, 0.032359395176172256, 0.020382294431328773, -0.07383017241954803, -0.03201796114444733, -0.041123539209365845, -0.005757945589721203, 0.010233944281935692, 0.01567400060594082, -0.03591439872980118, 0.05264252796769142, 0.012661968357861042, 0.012446940876543522, -0.06322694569826126, 0.03302166983485222, 0.02325299009680748, -0.0357695072889328, -0.023198658600449562, -0.015243807807564735, 0.01070250105112791, 0.00010031162673840299, 0.0079469233751297, 0.07609515637159348, 0.016242722049355507, 0.06749375909566879, 0.005454537458717823, 0.0513949990272522, -0.02723211608827114, -0.056222155690193176, 0.021944522857666016, 0.05699515342712402, -0.018197810277342796, -0.010329701006412506, -0.014505835250020027, -0.03250022977590561, -0.038039375096559525, 0.005260131321847439, 0.07144385576248169, 0.05885687097907066, 0.013014443218708038, -0.041584260761737823, -0.005967932287603617, -0.03398947790265083, 0.024917101487517357, -0.001381821813993156, -0.008509458974003792, -0.037424977868795395, -0.040811602026224136, 0.0017218445427715778, 0.03592745214700699, -0.00362112233415246, 0.012260301038622856, -0.05925694853067398, 0.013206301257014275, 0.0530242994427681, 0.03052567131817341, 0.007830457761883736, -0.026051318272948265, 0.012178098782896996, 0.028805911540985107, 0.04613511264324188, -0.013051532208919525, 0.0369664803147316, -0.013517102226614952, -0.04307720437645912, 0.0213465578854084, 0.046430714428424835, -0.0064751580357551575, 0.0014632047386839986, -0.038305364549160004, -0.039441660046577454, 0.06243271008133888, -0.03352873772382736, -0.027766982093453407, 0.04741252586245537, 0.10665849596261978, 0.03252324089407921, 0.048635244369506836, -0.012043697759509087, -0.07491153478622437, 0.01573806256055832, 0.025152217596769333, 0.04097085818648338, 0.016642579808831215, -0.03918987512588501, 0.05876598134636879, 0.012284612283110619, 0.0008579859277233481, 0.037166476249694824, -0.06514644622802734, -0.08587846159934998, -0.022157054394483566, -0.03827938064932823, 0.05790898948907852, -0.04324410855770111, 0.011932333000004292, 0.053971268236637115, -0.009152187034487724, 0.06192450970411301, 0.006784006021916866, 0.030288197100162506, 0.017827067524194717, -0.030915187671780586, -0.052104562520980835, 0.04230742156505585, 0.027609584853053093, -0.0020776751916855574, -0.014528917148709297, 0.007617710158228874, -0.023257218301296234, 0.027958519756793976, 0.023199643939733505, -0.02537817694246769, 0.03400860354304314, 0.03692333400249481, 0.05744992569088936, -0.016699252650141716, 0.027682460844516754, -0.05567727982997894, 0.04315716028213501, 0.041243623942136765, -0.031936828047037125, -0.016794614493846893, 0.0009679909562692046, 0.1185661032795906, 0.06401942670345306, -0.06056269630789757, -0.034001462161540985, 0.038713082671165466, 0.013902053236961365, -0.021236976608633995, 0.011590603739023209, -0.009318268857896328, 0.020603112876415253, 0.016500547528266907, -0.02566736936569214, -0.04043878987431526, 0.005616647191345692, -0.037473853677511215, 0.010799910873174667, 0.06572306156158447, -0.009047864936292171, 0.0632878914475441, -0.033088892698287964, -0.0075655425898730755, -0.028382843360304832, -0.029273739084601402, -0.048824045807123184, 0.010495542548596859, 0.012737729586660862, -0.022176189348101616, 0.03371136635541916, -0.00733906077221036, 0.0037044472992420197, -0.022310467436909676, -0.048149678856134415, 0.045733727514743805, 0.07228641957044601, 0.0747395008802414, 0.01008853130042553, 0.0584077313542366, 0.0011890425812453032, 0.022180041298270226, -0.014323165640234947, -0.037697527557611465, -0.041033785790205, -0.025478441268205643, -0.006112885195761919, 0.056172195822000504, 0.017309201881289482, 0.011622319929301739, 0.01791561394929886, 0.04466976225376129, -0.02111142873764038, -0.025363922119140625, 0.023903772234916687, -0.012730364687740803, -0.03179129585623741, -0.04032345861196518, 0.00010761513840407133, 0.05819088965654373, -0.026077760383486748, -0.03066745027899742, 0.0026093015912920237, -0.0636407732963562, 0.043343666940927505, -0.05162457749247551, -0.029722705483436584, -0.03046988509595394, -0.03060178831219673, 0.02312423102557659, 0.024538353085517883, 0.020704321563243866, 0.07591215521097183, 0.024917982518672943, 0.025329653173685074, 0.0110931396484375, 0.0021190280094742775, 0.01483091339468956, 0.01292407140135765, -0.007059692405164242, 0.0642671212553978, 0.00046375105739571154, 0.011045649647712708, -0.03042859025299549, 0.0025256474036723375, -0.00040585105307400227, -0.2802576720714569, 0.008218611590564251, -0.047932472079992294, -0.044331397861242294, 0.019803082570433617, -0.021310443058609962, 0.02833869680762291, -0.03875979408621788, -0.015599778853356838, -0.008629354648292065, -0.008365915156900883, -0.03448588401079178, -0.045983389019966125, 0.04967409372329712, 0.020683065056800842, -0.00319964368827641, 0.03269272670149803, -0.025769980624318123, 0.013980396091938019, 0.03750580549240112, -0.0011682603508234024, -0.05031242594122887, -0.007874774746596813, 0.03822699189186096, 0.013851303607225418, 0.10147049278020859, -0.05393914878368378, 0.04133289307355881, -0.059450987726449966, -0.02784339152276516, 0.0014687501825392246, -0.02734152041375637, 0.02771657146513462, -0.007711607962846756, 0.017860297113656998, -0.010751113295555115, 0.01541819516569376, 0.021892542019486427, 0.026956846937537193, 0.026119278743863106, -0.048878759145736694, -0.01638745330274105, -0.00014787913823965937, 0.028337882831692696, 0.09593727439641953, 0.009867636486887932, -0.05218051001429558, 0.007200471591204405, -0.027518831193447113, 0.06494162976741791, -0.02811691351234913, -0.020769279450178146, -0.023498203605413437, -0.008003112860023975, -0.0035638855770230293, -0.04573269933462143, -0.02692590095102787, -0.02274501882493496, -0.013976847752928734, -0.05774259567260742, -0.0023720874451100826, -0.024265475571155548, 0.004098137840628624, -0.03347066417336464, -0.051627978682518005, -0.058772772550582886, -0.08512648940086365, -0.002783783245831728, 0.0660632997751236, 0.02335188165307045, -0.045762643218040466, 0.0022194196935743093, -0.019873121753335, -0.10911082476377487, -0.03673049807548523, 0.004187602084130049, -0.03829210251569748, -0.018150364980101585, 0.012843609787523746, 0.03384636715054512, -0.030864816159009933, -0.05196060612797737, 0.006362732965499163, 0.02952403947710991, 0.023621896281838417, -0.020877894014120102, 0.005544749088585377, -0.005767442286014557, -0.030473507940769196, -0.02197938971221447, 0.06792239099740982, -0.026597384363412857, -0.02616618387401104, -0.01387418620288372, 0.01789277046918869, 0.03786736726760864, -0.010265550576150417, -0.005877167452126741, 0.03112971968948841, 0.010546947829425335, 0.011635988019406796, -0.05589757487177849, 0.033587075769901276, -0.07060062885284424, 0.00048283208161592484, -0.026398777961730957, -0.03562425449490547, 0.03570203483104706, -0.010646120645105839, 0.02958524413406849, 0.011321530677378178, 0.0037438003346323967, 0.012679741717875004, -0.05755149573087692, -0.033641304820775986, -0.041742924600839615, 0.017815131694078445, 0.03850678354501724, 0.0012792556080967188, 0.014790953136980534, -0.07325104624032974, 0.011813215911388397, -0.02432081289589405, -0.020468711853027344, -0.05227882042527199, -0.015904992818832397, -0.017690706998109818, -0.03808782994747162, 0.035785917192697525, 0.04638614133000374, -0.02878326177597046, 0.04978584498167038, 0.04665948823094368, -0.017745984718203545, 0.01504025049507618, -0.013229276053607464, -0.022970356047153473, -0.043234873563051224, 0.0036226387601345778, 0.017269765958189964, -0.011658838950097561, -0.01522912923246622, -0.008078877814114094, 0.024811632931232452, 0.04317530617117882, 0.010534864850342274, 0.018942760303616524, -0.02736213617026806, -0.004239556845277548, 0.04637894406914711, -0.021199312061071396, -0.03081485442817211, 0.020063159987330437, -0.05944459140300751, -0.013148776255548, -0.00969943217933178, 0.046998582780361176, 0.0070222835056483746, -0.048166293650865555, -0.04258669540286064, 0.027271287515759468, -0.05176171660423279, -0.010619803331792355, -0.013062048703432083, 0.005651891231536865, 0.05799292027950287, -0.03450165316462517, 0.04104311391711235, 0.004802463110536337, -0.013511818833649158, -0.02570938691496849, -0.006921110674738884, -0.0476161353290081, 0.020212946459650993, 0.002512912731617689, -0.015720244497060776, 0.010268153622746468, -0.00959842000156641, 0.024666599929332733, -0.0031897041480988264, -0.005443955771625042, -0.025602171197533607, -0.033568911254405975, -0.0027539306320250034, 0.03420482203364372, 0.011215546168386936, 0.002851503435522318, -0.021512789651751518, -0.014871631748974323, -0.040249962359666824, -0.020651433616876602, -0.017854437232017517, -0.0150567926466465, 0.005838635377585888, -0.021292109042406082, -0.10253030806779861, 0.0460311695933342, 0.03220357373356819, 0.0141302440315485, 0.02014037035405636, -0.02260204777121544, -0.0344264917075634, -0.0516340397298336, 0.015120871365070343, 0.0673169419169426, -0.0429760180413723, 0.049139101058244705, 0.009037526324391365, 0.015283195301890373, -0.0017054731724783778, 0.007614902686327696, -0.03691619262099266, -0.020771736279129982, -0.004334311932325363, 0.037815872579813004, -0.0447394959628582, -0.020207541063427925, -0.025372827425599098, 0.009618652053177357, 0.0017028863076120615, 0.027876082807779312, 0.004315793979912996, -0.0005032481858506799, 0.010756039060652256, 0.008891893550753593, 0.02009330503642559, -0.04581618309020996, -0.0006853373488411307, 0.028878431767225266, 0.0001991391327464953, 0.022141199558973312, -0.04242778196930885, 0.012329885736107826, 0.03685168921947479, -0.03455330431461334, -0.0011135387467220426, -0.06010324880480766, 0.002873177407309413, -0.013291926123201847, 0.04731917381286621, 0.006413621362298727, -0.0051038628444075584, -0.019757702946662903, -0.013259069994091988, -0.03477107733488083, 0.0036998882424086332, -0.013631206005811691, -0.012187669984996319, 0.03248590603470802, 0.051545754075050354, 0.01492083165794611, 0.0031888701487332582, -0.022671332582831383, -0.023801105096936226, 0.04638432711362839, -0.03910614550113678, -0.03871665522456169, -0.004581488203257322, -0.03863470256328583, 0.02047543413937092, -0.0009209775016643107, 0.0015053190290927887, -0.04517444223165512, 0.04026094824075699, 0.0416375957429409, 0.07134919613599777, 0.06783563643693924, 0.01652861386537552, 0.020750096067786217, -0.033071283251047134, -0.0009427409968338907, -0.07142315804958344, -0.012144229374825954, 0.019286833703517914, 0.0011558322003111243, -0.026903972029685974, 0.012438647449016571, -0.008963612839579582, 0.02080528251826763, -0.08559662848711014, -0.03808201104402542, 0.02900756150484085, -0.04387281835079193, -0.0028785814065486193, 0.024994350969791412, -0.050997745245695114, 0.01855587027966976, 0.04079292714595795, -0.03768438845872879, -0.014707842841744423, -0.0249208752065897, 0.06905168294906616, -0.02034255862236023, 0.025443952530622482, -0.024766433984041214, 0.020558277145028114, 0.06868539750576019, 0.04455507546663284, 0.0056420848704874516, 0.041404932737350464, -0.011553221382200718, 0.02499598078429699, 0.024760888889431953, -0.011359724216163158, 0.0006761624244973063, -0.0033276632893830538, 0.002556219696998596, -0.04615187644958496, 0.01206638477742672, -0.00624581053853035, -0.02218676172196865, -0.019785426557064056, 0.06541545689105988, 0.027951575815677643, -0.025737466290593147, -0.03897298499941826, 0.007676615379750729, -0.032696280628442764, -0.015357181429862976, -0.009709645062685013, -0.0021868546027690172, -0.04017210751771927, 0.0655379593372345, -0.016520243138074875, 0.010295712389051914, 0.08937063813209534, 0.017757637426257133, 0.007784780114889145, 0.006937458645552397, 0.09050005674362183, 0.0814397931098938, 0.059079594910144806, 0.002036354271695018, 0.08757378160953522, -0.025911882519721985, -0.05143700912594795, 0.011018061079084873, -0.05948985740542412, 0.005189402028918266, -0.02758094295859337, 0.03325272724032402, 0.09549515694379807, -0.028059594333171844, 0.04794992506504059, -0.015937570482492447, -0.030182955786585808, -0.018797140568494797, 0.004570635501295328, 0.04768189787864685, 0.06361440569162369, 0.015262060798704624, 0.02576562575995922, -0.0008320784545503557, -0.026572210714221, 0.07321004569530487, -0.02359715662896633, 0.011355714872479439, 0.01538898330181837, -0.015931999310851097, 0.02982155606150627, -0.012397815473377705, 0.04358762130141258, 0.06542947888374329, -0.016876384615898132, 0.007386468350887299, 0.00937865674495697, 0.020872801542282104, -0.00846906565129757, 0.018467577174305916, -0.01782243140041828, -0.003908335696905851, -0.014012490399181843, -0.03930605575442314, -0.024185732007026672, 0.0009085057536140084, -0.03294865041971207, 0.04891462251543999, -0.03892343118786812, 0.029159482568502426, 0.018298828974366188, -0.028870107606053352, -0.015020412392914295, -0.060835909098386765, -0.04010748863220215, -0.05096779391169548, -0.08163370192050934, -0.007870090194046497, 0.03161904588341713, -0.002998160198330879, -0.039505068212747574, -0.003213151590898633, -0.004428628366440535, -0.03019925206899643, -0.00865142047405243, -0.05577312409877777, -0.019275490194559097, 0.015274040400981903, 0.019448421895503998, 0.023821188136935234, 0.037536319345235825, 0.051814328879117966, -0.013493852689862251, -0.0283999964594841, -0.039333079010248184, 0.00830428209155798, 0.020385026931762695, 0.028676187619566917, 0.006691653281450272, -0.06292358785867691, 0.0314520038664341, 0.005455870646983385, -0.015215815044939518, -0.1004173681139946, 0.020041104406118393, 0.01283983513712883, -0.007315417751669884, 0.032529041171073914, -0.03015771135687828, 0.01840071752667427, -0.030294708907604218, -0.013880478218197823, 0.019760165363550186, 0.018182652071118355, 0.040756624191999435, -0.046947043389081955, 0.06155332922935486, 0.04000111669301987, -0.005382536444813013, -0.026748059317469597, -0.017530426383018494, -0.0017178780399262905, -0.01941762864589691, -0.04402514919638634, -0.06415118277072906, -0.04904693365097046, -0.09654765576124191, -0.059053920209407806, 0.01577162556350231, -0.022628242149949074, -0.04552973061800003, 0.03281223028898239, 0.009407589212059975, -0.037060465663671494, 0.026368185877799988, -0.040251828730106354, 0.013707747682929039, -0.03325144201517105, -0.014663975685834885, -0.0011436289642006159, 0.02206580527126789, 0.014731931500136852, 0.007038413546979427, 0.0169515423476696, -0.03797963634133339, -0.017763210460543633, -0.033390551805496216, -0.00010154015035368502, 0.015516742132604122, 0.03635995835065842, -0.006847647484391928 ]
[ -0.08536843955516815, -0.013764510862529278, -0.010506436228752136, -0.008362319320440292, 0.04945658892393112, -0.052251312881708145, -0.026724757626652718, 0.012001250870525837, -0.005940400063991547, -0.019214516505599022, -0.031235581263899803, -0.005883208941668272, 0.01698305830359459, 0.020941389724612236, 0.06413832306861877, -0.04991401359438896, -0.024710725992918015, -0.05704936385154724, -0.02345852367579937, 0.018083853647112846, 0.04844066873192787, 0.01519250962883234, -0.06499145179986954, -0.045507777482271194, 0.039598219096660614, 0.0623229444026947, 0.026247773319482803, -0.048347052186727524, -0.022825121879577637, -0.17894482612609863, -0.022089967504143715, -0.024230392649769783, -0.001911310013383627, -0.026990611106157303, 0.020369522273540497, 0.034010857343673706, 0.029102493077516556, 0.024408910423517227, 0.0019273736979812384, 0.04950658231973648, 0.039132826030254364, 0.025845125317573547, -0.04180300235748291, -0.029724394902586937, 0.009362934157252312, -0.019152401015162468, -0.015887126326560974, 0.027968788519501686, -0.01345325168222189, 0.03183884546160698, -0.029448622837662697, -0.008608010597527027, -0.009344115853309631, -0.012340031564235687, -0.015167188830673695, 0.029098935425281525, 0.038812678307294846, 0.03531086444854736, 0.007400141097605228, 0.03043999709188938, 0.005345004145056009, 0.0020714544225484133, -0.18227750062942505, 0.11722120642662048, -0.026928916573524475, 0.015486439689993858, -0.050417494028806686, 0.014612036757171154, -0.012971393764019012, 0.1148979514837265, -0.02693183161318302, -0.019899670034646988, -0.031082037836313248, 0.06064514443278313, 0.029900001361966133, -0.02864254266023636, 0.007772662676870823, -0.0023450020235031843, 0.02066151611506939, -0.035477690398693085, -0.018420761451125145, -0.0014389833668246865, -0.002524446928873658, -0.04963352158665657, -0.007262171246111393, 0.001700507360510528, -0.00117273919750005, 0.04289670288562775, 0.011112790554761887, 0.02674284018576145, 0.010687767527997494, -0.02669689804315567, 0.0005176244303584099, 0.012301897630095482, -0.07185816019773483, -0.00739658297970891, 0.05726630613207817, 0.03296227380633354, -0.025532132014632225, 0.39406052231788635, -0.05245901644229889, 0.039238836616277695, 0.0005700131296180189, 0.052150387316942215, -0.008845232427120209, -0.026711774989962578, 0.0017560974229127169, -0.06272736936807632, -0.02895912528038025, -0.05548634007573128, -0.01629265956580639, -0.029562829062342644, 0.07634460180997849, -0.0926218330860138, 0.02077636867761612, 0.021596534177660942, 0.06890498846769333, 0.02588415890932083, 0.026719743385910988, 0.012643889524042606, 0.007519532460719347, -0.03282194584608078, 0.03671177104115486, 0.010186346247792244, -0.008641766384243965, 0.01626444235444069, 0.05377021059393883, 0.058670125901699066, 0.015463683754205704, -0.009196322411298752, 0.0757889449596405, -0.04590476676821709, -0.05035268887877464, 0.006806251127272844, 0.014443621039390564, 0.011671184562146664, -0.00586214754730463, -0.06502297520637512, 0.022563567385077477, -0.017011264339089394, -0.0693119466304779, -0.04632598161697388, 0.02755560167133808, 0.010961208492517471, -0.0514427088201046, 0.1770680695772171, -0.014916516840457916, -0.014773115515708923, -0.022688115015625954, -0.049855787307024, -0.051584724336862564, 0.006029417272657156, 0.036078304052352905, -0.06070150434970856, 0.018698416650295258, 0.014699455350637436, 0.10861026495695114, -0.00466869305819273, -0.027168365195393562, -0.022815123200416565, -0.03447049483656883, -0.024154476821422577, -0.04679082706570625, 0.032589249312877655, 0.04170095920562744, -0.09397470206022263, 0.02177855186164379, 0.028029300272464752, 0.012438843958079815, -0.09547057747840881, 0.026843586936593056, 0.00918374303728342, -0.007649324834346771, -0.0035010213032364845, 0.11197761446237564, 0.018380284309387207, 0.027936654165387154, 0.01121915876865387, 0.056172363460063934, 0.017301365733146667, -0.00150196417234838, 0.0014262805925682187, -0.056458644568920135, 0.010243731550872326, -0.026010815054178238, -0.0599033385515213, -0.05227743834257126, 0.00006870506331324577, -0.00754875922575593, 0.01783241704106331, 0.021752435714006424, -0.07727163285017014, -0.037646111100912094, 0.04474271461367607, -0.03336593136191368, -0.05226798728108406, -0.007928083650767803, 0.02462294138967991, -0.009671205654740334, -0.03828917443752289, -0.028595415875315666, -0.030809367075562477, 0.025290597230196, 0.012787087820470333, 0.004680390004068613, 0.040770720690488815, 0.07311069965362549, -0.0801042690873146, 0.0581357479095459, 0.05835452675819397, -0.020601706579327583, -0.012052303180098534, 0.006758429575711489, -0.0380442813038826, 0.021158691495656967, 0.00850764848291874, 0.012287411838769913, -0.02397066541016102, -0.02114010974764824, 0.01878233812749386, -0.010344894602894783, -0.046862438321113586, 0.034940626472234726, -0.32715991139411926, -0.024334196001291275, -0.009743626229465008, -0.019885322079062462, 0.06514430046081543, -0.04548908397555351, -0.0059815626591444016, -0.04300828278064728, 0.002828369615599513, 0.059051763266325, 0.04410921409726143, 0.004365359898656607, -0.04314492270350456, -0.09602360427379608, -0.004784341435879469, 0.03733467683196068, -0.013126159086823463, -0.020707856863737106, 0.0004736629780381918, 0.03931334242224693, 0.015968013554811478, -0.03291965276002884, -0.02890067920088768, -0.08536921441555023, 0.0014085848815739155, -0.036923639476299286, 0.11234099417924881, -0.004471488296985626, 0.05349316447973251, -0.07948639243841171, 0.033854592591524124, -0.04811123013496399, 0.010889298282563686, -0.06302017718553543, -0.00663686404004693, -0.009178883396089077, 0.04291298985481262, -0.0021568520460277796, 0.000891288451384753, -0.038878560066223145, -0.035481855273246765, 0.05637159198522568, -0.01261865347623825, 0.011943214572966099, -0.05025007203221321, 0.03914450481534004, 0.014621672220528126, -0.024355338886380196, -0.01718999072909355, 0.0508769229054451, 0.019847018644213676, -0.049569446593523026, 0.02038900926709175, 0.00967135839164257, 0.03042665496468544, -0.0018352799816057086, -0.06660555303096771, 0.005644038785248995, -0.0051883975975215435, -0.03020688146352768, 0.0127287358045578, 0.035767555236816406, 0.03711530566215515, -0.000505568808875978, -0.02301465906202793, 0.015295862220227718, -0.0024710288271307945, -0.06553579121828079, 0.010475407354533672, 0.03318723291158676, -0.007538238540291786, 0.06606657058000565, -0.03968195989727974, 0.019253011792898178, 0.020354492589831352, 0.03625084459781647, -0.01071502547711134, 0.05279869586229324, 0.020078739151358604, -0.0008884431445039809, 0.035886798053979874, -0.04496510326862335, 0.06901124119758606, -0.009531483054161072, 0.027849730104207993, 0.005726889241486788, -0.013727228157222271, -0.007872575893998146, 0.03982529416680336, 0.017256243154406548, -0.027415014803409576, -0.03972211107611656, -0.004285065457224846, -0.047960177063941956, 0.06824059039354324, -0.022778453305363655, -0.2721524238586426, 0.058398112654685974, 0.08306031674146652, 0.02001168578863144, 0.036047130823135376, 0.031383197754621506, -0.01637045294046402, -0.025283455848693848, -0.0517510287463665, -0.00020300062897149473, -0.006367009598761797, 0.07008766382932663, -0.004148183856159449, -0.008301646448671818, 0.021133122965693474, -0.003330078674480319, 0.02675621025264263, -0.009408587589859962, -0.015713583678007126, 0.019252868369221687, 0.008448883891105652, -0.0010379248997196555, 0.15307050943374634, -0.00443292735144496, 0.03569898009300232, 0.01422660332173109, 0.02309589460492134, 0.003730954835191369, 0.0989832803606987, 0.015970095992088318, -0.0040412540547549725, -0.01932765729725361, 0.025917988270521164, -0.008560320362448692, -0.007319839205592871, -0.025772156193852425, -0.039474472403526306, 0.07972991466522217, 0.02068118192255497, -0.029534338042140007, -0.02152806520462036, 0.027564380317926407, -0.052438221871852875, 0.008635095320641994, 0.07047951966524124, 0.0022827486973255873, -0.0015773134073242545, -0.05929895490407944, -0.012125897221267223, -0.02650221809744835, -0.032524798065423965, 0.0023306161165237427, -0.01624881848692894, 0.028358839452266693, 0.008299975655972958, 0.059014949947595596, 0.04564444348216057, -0.018492063507437706, 0.03822549805045128, 0.027111224830150604, -0.001453986158594489, 0.001660457463003695, 0.1081753820180893, -0.016640679910779, 0.03827708587050438 ]
[ -0.006491930224001408, 0.04769163578748703, 0.014957924373447895, 0.0028068649116903543, 0.0036931741051375866, 0.0052645448595285416, -0.029666241258382797, 0.025472860783338547, 0.0063196271657943726, -0.05472297593951225, -0.02074841409921646, -0.015230557881295681, -0.01946277543902397, -0.03646291792392731, 0.014535640366375446, -0.01303010992705822, -0.013596119359135628, -0.005803712643682957, 0.05069953203201294, -0.009195494465529919, -0.02897934429347515, 0.03495480492711067, 0.007709975820034742, 0.009142155759036541, -0.02243807353079319, 0.0528734028339386, -0.03014066070318222, 0.038374096155166626, 0.017875822260975838, -0.11329767107963562, -0.050985246896743774, 0.013480077497661114, -0.00868306402117014, 0.004938042722642422, -0.04288450628519058, 0.009407185018062592, -0.009581366553902626, 0.0242476724088192, 0.061617594212293625, 0.021817218512296677, -0.03377246856689453, 0.011307766661047935, 0.036934930831193924, -0.022599730640649796, -0.017789609730243683, -0.028590025380253792, 0.0025686058215796947, 0.018058443441987038, -0.050751473754644394, 0.015867896378040314, -0.010784361511468887, -0.006717721465975046, -0.006385692395269871, 0.022718537598848343, 0.09096916019916534, -0.013727732934057713, -0.029787378385663033, -0.04047777131199837, 0.003009667620062828, -0.04049944877624512, -0.023329049348831177, 0.027456609532237053, -0.03480413928627968, -0.02131757326424122, 0.015488282777369022, -0.037822332233190536, -0.039448339492082596, -0.0010522730881348252, 0.010658368468284607, 0.012781842611730099, -0.03126835823059082, 0.03566411882638931, -0.008631119504570961, 0.006649333983659744, 0.008662676438689232, 0.02501726895570755, -0.010317420586943626, -0.023497240617871284, -0.006804937031120062, -0.023986177518963814, -0.013853296637535095, 0.01119992509484291, -0.00027258507907390594, 0.025629756972193718, -0.030615899711847305, -0.058847419917583466, 0.0194438174366951, 0.05971641466021538, 0.016625074669718742, -0.04896368831396103, -0.00743204215541482, -0.014158782549202442, -0.010229670442640781, -0.03202101215720177, -0.08972254395484924, -0.025388089939951897, -0.05333410203456879, -0.026804393157362938, 0.0041268980130553246, 0.8232046961784363, -0.0015953490510582924, 0.033122673630714417, -0.006078669801354408, -0.03011905401945114, 0.005986885633319616, 0.0031523120123893023, -0.02969242073595524, -0.009319628588855267, 0.00700546195730567, -0.06111552193760872, -0.0024028040934354067, 0.018411491066217422, 0.021161679178476334, -0.00029073600308038294, 0.011545551009476185, 0.04740703105926514, 0.021101901307702065, 0.011652492918074131, -0.0037935746368020773, 0.020023224875330925, 0.030608590692281723, 0.024293821305036545, -0.0003121636400464922, -0.0026195920072495937, -0.003443356603384018, -0.17188358306884766, 0.02458920143544674, -6.908730744035923e-33, 0.0379173718392849, -0.035676222294569016, 0.024398136883974075, -0.033568624407052994, 0.03956937417387962, -0.002169801155105233, 0.025667212903499603, -0.01219273079186678, 0.0010366463102400303, -0.013533679768443108, -0.003895492758601904, -0.010384385474026203, 0.002491011517122388, -0.034336354583501816, 0.029266852885484695, 0.003796887118369341, -0.011421708390116692, 0.03338940441608429, 0.004254257306456566, 0.016820542514324188, 0.031136201694607735, -0.02467757649719715, 0.007503283675760031, 0.023522352799773216, 0.02271399460732937, 0.005520624108612537, 0.0289431344717741, -0.0260328259319067, 0.01800321601331234, -0.057792261242866516, -0.018981097266077995, 0.012972399592399597, -0.010373281314969063, 0.015495591796934605, 0.058266349136829376, -0.036083392798900604, -0.006861743051558733, 0.01454648282378912, -0.0045518819242715836, -0.03972288966178894, -0.035451699048280716, -0.01570884697139263, -0.036938007920980453, -0.00927496887743473, 0.006936234887689352, -0.0018119437154382467, 0.031243065372109413, 0.0066355508752167225, 0.0014587200712412596, 0.04583553969860077, 0.00397756090387702, 0.0016892600106075406, 0.01950397901237011, -0.03556852787733078, -0.00813573319464922, 0.03146101161837578, 0.020010458305478096, 0.02438386157155037, 0.031169375404715538, 0.013891424983739853, -0.003179944818839431, -0.012196239084005356, 0.013350347056984901, -0.010348415933549404, -0.039727628231048584, 0.0033094901591539383, -0.002979077398777008, -0.032039083540439606, 0.0015349830500781536, 0.02587836980819702, -0.02951076626777649, -0.004926635883748531, -0.009523958899080753, -0.0037911534309387207, 0.03235122188925743, 0.007537473924458027, -0.006352969910949469, 0.004379871767014265, 0.03608575090765953, 0.037355631589889526, 0.03409167379140854, -0.0036867272574454546, -0.01405420433729887, -0.0288242194801569, -0.01704283244907856, -0.03404274210333824, 0.03422429785132408, 0.03873066231608391, -0.04036203771829605, 0.013379418291151524, -0.0015197860775515437, -0.0015670390566810966, -0.013474691659212112, -0.019639194011688232, 0.0216220635920763, 6.820005165119826e-33, -0.014172154478728771, -0.040010206401348114, -0.001519268611446023, 0.005951142404228449, 0.018860410898923874, -0.048759736120700836, -0.0014971058117225766, -0.0018938947468996048, -0.039657607674598694, 0.038019150495529175, 0.012682340107858181, -0.023165147751569748, -0.04594096168875694, 0.022672509774565697, 0.07824636995792389, 0.004317817278206348, 0.02436823584139347, 0.023971304297447205, -0.0032441148068755865, 0.010274679400026798, 0.004718164913356304, -0.01398661732673645, -0.021364180371165276, 0.028465133160352707, 0.032222334295511246, 0.05635379999876022, 0.0013297457480803132, 0.009726225398480892, 0.016834460198879242, -0.010282219387590885, -0.02712811529636383, -0.0232084970921278, -0.016148755326867104, -0.024418611079454422, 0.005003991536796093, 0.056542329490184784, 0.009913650341331959, -0.04854839667677879, 0.024996193125844002, -0.023859402164816856, 0.05299451947212219, 0.018899323418736458, 0.008585190400481224, -0.01099361851811409, 0.017240941524505615, 0.027826588600873947, -0.007995101623237133, 0.01656523160636425, 0.005525503773242235, -0.0008828158606775105, -0.010837201029062271, 0.00040443247416988015, 0.005956503562629223, 0.0015441669384017587, 0.03158282861113548, -0.01747538335621357, -0.014181182719767094, -0.016209131106734276, -0.005082684103399515, 0.012402896769344807, -0.024239497259259224, -0.019483456388115883, -0.02549542300403118, 0.017093034461140633, -0.04385780170559883, -0.014053910970687866, -0.0017292596166953444, -0.020486073568463326, -0.0006444690516218543, 0.04136556386947632, -0.02515273168683052, -0.00718072522431612, 0.010138120502233505, 0.04531080648303032, -0.017562292516231537, -0.008817432448267937, -0.007484700996428728, 0.009639968164265156, -0.014979536645114422, 0.02505374141037464, 0.007949373684823513, -0.019807899370789528, 0.01775483228266239, 0.021871553733944893, -0.01374981552362442, 0.010407987982034683, -0.022338535636663437, -0.008796039037406445, 0.04789222404360771, -0.034262318164110184, 0.005685378797352314, -0.022435132414102554, -0.03381920978426933, 0.03310024365782738, 0.015588384121656418, -1.2558186490707612e-8, -0.026436055079102516, -0.008851470425724983, -0.0070398966781795025, 0.014797104522585869, 0.05228229984641075, -0.008378139697015285, 0.005211914423853159, -0.0268989410251379, 0.0009129559621214867, -0.01509879156947136, 0.06820055097341537, -0.03583357855677605, 0.046803221106529236, 0.008836163207888603, -0.022952314466238022, -0.04240921512246132, -0.00014723898493684828, -0.030416512861847878, 0.04463065415620804, -0.023464808240532875, 0.051655691117048264, -0.011630415916442871, 0.021932853385806084, -0.011782776564359665, 0.03805508464574814, 0.027917470782995224, 0.022012339904904366, -0.04325352981686592, 0.03523635119199753, -0.0031737422104924917, 0.044810932129621506, -0.006803994067013264, -0.015584875829517841, -0.0007032559951767325, -0.04129622131586075, -0.06685488671064377, 0.036769069731235504, 0.022657878696918488, -0.02684689685702324, 0.012641890905797482, -0.019556965678930283, -0.030337253585457802, -0.06976865977048874, -0.03839237615466118, 0.004363080020993948, 0.027977583929896355, -0.002829957753419876, 0.0343538336455822, 0.009667601436376572, -0.03316487371921539, 0.029067421332001686, -0.020599668845534325, 0.0635112002491951, 0.01814449578523636, 0.02904895879328251, 0.014796714298427105, 0.030456647276878357, -0.06369837373495102, -0.020611055195331573, -0.03449656441807747, -0.009301462210714817, 0.012214074842631817, 0.005221209023147821, -0.02848086878657341 ]
r-time-tofrom-the-weekend
https://markhneedham.com/blog/2014/12/13/r-time-tofrom-the-weekend
false
2014-12-22 11:46:25
R: Vectorising all the things
[ "r-2", "rstats" ]
[ "R" ]
After my last post about http://www.markhneedham.com/blog/2014/12/13/r-time-tofrom-the-weekend/[finding the distance a date/time is from the weekend] Hadley Wickham suggested I could improve the function by vectorising it\... +++ <blockquote class="twitter-tweet"><p lang="en" dir="ltr"><a href="https://twitter.com/markhneedham?ref_src=twsrc%5Etfw">@markhneedham</a> vectorise with pmin(pmax(dateToLookup - before, 0), pmax(after - dateToLookup, 0)) / dhours(1)</p>&mdash; Hadley Wickham (@hadleywickham) <a href="https://twitter.com/hadleywickham/status/544122663573000192?ref_src=twsrc%5Etfw">December 14, 2014</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> +++ ...so I thought I'd try and vectorise some of the other functions I've written recently and show the two versions. I found the following articles useful for explaining vectorisation and why you might want to do it: * http://www.noamross.net/blog/2014/4/16/vectorization-in-r--why.html[Vectorisation in R: Why?] * http://www.burns-stat.com/pages/Tutor/R_inferno.pdf[Chapters 3 and 4 of R Inferno] * http://nesterko.com/blog/2011/04/29/drastic-r-speed-ups-via-vectorization-and-bug-fixes/[Drastic R speed ups via vectorisation and bug fixes] Let's get started. == Distance from the weekend We want to find out how many hours away from the weekend i.e. nearest Saturday/Sunday a particular date/time is. We'll be using the following libraries and set of date/times: [source,r] ---- library(dplyr) library(lubridate) library(geosphere) options("scipen"=100, "digits"=4) times = ymd_hms("2002-01-01 17:00:00") + c(0:99) * hours(1) data = data.frame(time = times) ---- [source,r] ---- > data %>% head() time 1 2002-01-01 17:00:00 2 2002-01-01 18:00:00 3 2002-01-01 19:00:00 4 2002-01-01 20:00:00 5 2002-01-01 21:00:00 6 2002-01-01 22:00:00 ---- Let's have a look at the non vectorised version first: [source,r] ---- distanceFromWeekend = function(dateToLookup) { before = floor_date(dateToLookup, "week") + hours(23) + minutes(59) + seconds(59) after = ceiling_date(dateToLookup, "week") - days(1) timeToBefore = dateToLookup - before timeToAfter = after - dateToLookup if(timeToBefore < 0 || timeToAfter < 0) { 0 } else { if(timeToBefore < timeToAfter) { timeToBefore / dhours(1) } else { timeToAfter / dhours(1) } } } ---- Now let's run it against our data frame: [source,r] ---- > system.time( data %>% mutate(ind = row_number()) %>% group_by(ind) %>% mutate(dist = distanceFromWeekend(time)) ) user system elapsed 1.837 0.020 1.884 ---- And now for Hadley's vectorised version: [source,r] ---- distanceFromWeekendVectorised = function(dateToLookup) { before = floor_date(dateToLookup, "week") + hours(23) + minutes(59) + seconds(59) after = ceiling_date(dateToLookup, "week") - days(1) pmin(pmax(dateToLookup - before, 0), pmax(after - dateToLookup, 0)) / dhours(1) } > system.time(data %>% mutate(dist = distanceFromWeekendVectorised(time))) user system elapsed 0.020 0.001 0.023 ---- == Extracting start date My next example was from http://www.markhneedham.com/blog/2014/12/09/r-cleaning-up-plotting-google-trends-data/[cleaning up Google Trends data] and extracting the start date from a cell inside a CSV file. We'll use this data frame: [source,r] ---- googleTrends = read.csv("/Users/markneedham/Downloads/report.csv", row.names=NULL) names(googleTrends) = c("week", "score") ---- [source,r] ---- > googleTrends %>% head(10) week score 1 Worldwide; 2004 - present 2 Interest over time 3 Week neo4j 4 2004-01-04 - 2004-01-10 0 5 2004-01-11 - 2004-01-17 0 6 2004-01-18 - 2004-01-24 0 7 2004-01-25 - 2004-01-31 0 8 2004-02-01 - 2004-02-07 0 9 2004-02-08 - 2004-02-14 0 10 2004-02-15 - 2004-02-21 0 ---- The non vectorised version looked like this: [source,r] ---- > system.time( googleTrends %>% mutate(ind = row_number()) %>% group_by(ind) %>% mutate(dates = strsplit(week, " - "), start = dates[[1]][1] %>% strptime("%Y-%m-%d") %>% as.character()) ) user system elapsed 0.215 0.000 0.214 ---- In this case it's actually not possible to vectorise the code using the +++<cite>+++http://stackoverflow.com/questions/3054612/r-strsplit-and-vectorization[strsplit]+++</cite>+++ so we need to use something else. https://twitter.com/tonkouts[Antonios] showed me how to do so using +++<cite>+++substr+++</cite>+++: [source,r] ---- > system.time(googleTrends %>% mutate(start = substr(week, 1, 10) %>% ymd())) user system elapsed 0.018 0.000 0.017 ---- == Calculating haversine distance I wanted to work out the great circular distance from a collection of venues to a centre point in London. I started out with this data frame: [source,r] ---- centre = c(-0.129581, 51.516578) venues = read.csv("/tmp/venues.csv") > venues %>% head() venue lat lon 1 Skills Matter 51.52 -0.09911 2 Skinkers 51.50 -0.08387 3 Theodore Bullfrog 51.51 -0.12375 4 The Skills Matter eXchange 51.52 -0.09923 5 The Guardian 51.53 -0.12234 6 White Bear Yard 51.52 -0.10980 ---- My non vectorised version looked like this: [source,r] ---- > system.time(venues %>% mutate(distanceFromCentre = by(venues, 1:nrow(venues), function(row) { distHaversine(c(row$lon, row$lat), centre) })) ) user system elapsed 0.034 0.000 0.033 ---- It's pretty quick but we can do better - the +++<cite>+++distHaversine+++</cite>+++ function allows us to calculate multiple distances if the first argument ot it is a matrix of lon/lat values rather than a vector: [source,r] ---- > system.time( venues %>% mutate(distanceFromCentre = distHaversine(cbind(venues$lon, venues$lat), centre)) ) user system elapsed 0.001 0.000 0.001 ---- == One I can't figure out\... And finally I have a function which I can't figure out how to vectorise but maybe someone with more R skillz than me can? I have a data frame containing the https://gist.github.com/mneedham/6ec5651f0402fd4ca22e[cumulative member counts of various NoSQL London groups]: [source,r] ---- cumulativeMeetupMembers = read.csv("/tmp/cumulativeMeetupMembers.csv") > cumulativeMeetupMembers %>% sample_n(10) g.name dayMonthYear n 4734 Hadoop Users Group UK 2013-10-26 1144 4668 Hadoop Users Group UK 2013-08-03 979 4936 Hadoop Users Group UK 2014-07-31 1644 5150 Hive London 2012-10-15 109 8020 Neo4j - London User Group 2014-03-15 826 7666 Neo4j - London User Group 2012-08-06 78 1030 Big Data London 2013-03-01 1416 6500 London MongoDB User Group 2013-09-21 952 8290 Oracle Big Data 4 the Enterprise 2012-06-04 61 2584 Data Science London 2012-03-20 285 ---- And I want to find out the number of members for a group on a specific date. e.g. given the following data\... [source,r] ---- > cumulativeMeetupMembers %>% head(10) g.name dayMonthYear n 1 Big Data / Data Science / Data Analytics Jobs 2013-01-29 1 2 Big Data / Data Science / Data Analytics Jobs 2013-02-06 15 3 Big Data / Data Science / Data Analytics Jobs 2013-02-07 28 4 Big Data / Data Science / Data Analytics Jobs 2013-02-10 31 5 Big Data / Data Science / Data Analytics Jobs 2013-02-18 33 6 Big Data / Data Science / Data Analytics Jobs 2013-03-27 38 7 Big Data / Data Science / Data Analytics Jobs 2013-04-16 41 8 Big Data / Data Science / Data Analytics Jobs 2013-07-17 53 9 Big Data / Data Science / Data Analytics Jobs 2013-08-28 58 10 Big Data / Data Science / Data Analytics Jobs 2013-11-11 63 ---- \...the number of members for the 'Big Data / Data Science / Data Analytics Jobs' group on the 10th November 2013 should be 58. I created this data frame of groups and random dates: [source,R] ---- dates = ymd("2014-09-01") + c(0:9) * weeks(1) groups = cumulativeMeetupMembers %>% distinct(g.name) %>% select(g.name) groupsOnDate = merge(dates, groups) names(groupsOnDate) = c('date', 'name') > groupsOnDate %>% sample_n(10) date name 156 2014-10-06 GridGain London 153 2014-09-15 GridGain London 70 2014-11-03 Couchbase London 185 2014-09-29 Hadoop Users Group UK 105 2014-09-29 Data Science London 137 2014-10-13 Equal Experts Technical Meetup Group 360 2014-11-03 Scale Warriors of London 82 2014-09-08 Data Science & Business Analytics London Meetup 233 2014-09-15 London ElasticSearch User Group 84 2014-09-22 Data Science & Business Analytics London Meetup ---- The non vectorised version looks like this: [source,r] ---- memberCount = function(meetupMembers) { function(groupName, date) { (meetupMembers %>% filter(g.name == groupName & dayMonthYear < date) %>% do(tail(., 1)))$n } } findMemberCount = memberCount(cumulativeMeetupMembers) > system.time(groupsOnDate %>% mutate(groupMembers = by(groupsOnDate, 1:nrow(groupsOnDate), function(row) { findMemberCount(row$name, as.character(row$date)) }) %>% cbind() %>% as.vector() )) user system elapsed 2.259 0.005 2.269 ---- The output looks like this: [source,R] ---- date name groupMembers 116 2014-10-06 DeNormalised London 157 322 2014-09-08 OpenCredo Tech Workshops 7 71 2014-09-01 Data Enthusiasts London 233 2014-09-15 London ElasticSearch User Group 614 171 2014-09-01 HPC & GPU Supercomputing Group of London 80 109 2014-10-27 Data Science London 3632 20 2014-11-03 Big Data Developers in London 708 42 2014-09-08 Big Data Week London Meetup 96 127 2014-10-13 Enterprise Search London Meetup 575 409 2014-10-27 Women in Data 548 ---- I've tried many different approaches but haven't been able to come up with a version that lets me pass in all the rows to +++<cite>+++memberCount+++</cite>+++ and calculate the count for each row in one go. Any ideas/advice/hints welcome!
null
null
[ 0.011956293135881424, -0.024131255224347115, 0.019891368225216866, 0.016597852110862732, 0.07265934348106384, 0.0336783230304718, 0.04139205440878868, 0.028877953067421913, 0.015175211243331432, 0.002090689493343234, 0.014698226004838943, -0.01143583096563816, -0.04598347470164299, 0.004295705817639828, -0.024964850395917892, 0.08600813150405884, 0.06899397820234299, -0.017946792766451836, 0.013515905477106571, 0.0008713424322195351, 0.04589793086051941, 0.06669311970472336, 0.02028755284845829, 0.030034294351935387, 0.0537903755903244, -0.00670687947422266, 0.005984458606690168, 0.0001380001485813409, -0.0528910830616951, -0.02479872666299343, 0.04274905472993851, 0.02870478853583336, 0.000858793908264488, 0.00324609549716115, 0.03708893805742264, -0.007633274886757135, -0.002418717835098505, 0.021436449140310287, -0.004129905719310045, 0.0007320293225347996, -0.06076253205537796, 0.02934125065803528, -0.019964691251516342, -0.004217585548758507, -0.03370389714837074, 0.005182448774576187, -0.03625331073999405, -0.010873931460082531, -0.0007032688008621335, -0.030544649809598923, -0.07565613836050034, 0.05638863146305084, 0.016262508928775787, -0.0012573200510814786, -0.014290283434092999, 0.08147567510604858, -0.017246264964342117, -0.08600978553295135, 0.02195879817008972, -0.01933779940009117, 0.0022368798963725567, -0.011893706396222115, -0.015911830589175224, 0.03373041749000549, 0.03266941010951996, -0.015563703142106533, -0.02013552002608776, 0.03735220059752464, -0.040578003972768784, -0.005514203105121851, -0.030457746237516403, 0.03138913959264755, -0.021496588364243507, 0.02005755342543125, -0.025442425161600113, -0.04371391981840134, 0.011088442988693714, 0.05677724629640579, 0.029779650270938873, 0.02985014021396637, 0.0017237213905900717, -0.004536157939583063, 0.012570973485708237, 0.04648445174098015, 0.00799210462719202, -0.025367919355630875, -0.02359888143837452, -0.021374402567744255, -0.056137729436159134, 0.07255755364894867, 0.022859463468194008, -0.0636175200343132, 0.025583451613783836, 0.027952497825026512, -0.011058487929403782, 0.00957264844328165, 0.0011839860817417502, 0.018321042880415916, 0.010016095824539661, -0.012346566654741764, -0.0702274739742279, -0.06321875751018524, 0.03376179561018944, 0.01026253029704094, -0.08861102163791656, -0.01986113376915455, -0.04338983818888664, -0.013114258646965027, 0.022328509017825127, 0.019162358716130257, -0.041818395256996155, 0.028920816257596016, 0.004368491005152464, 0.012284506112337112, -0.050701647996902466, 0.06123410910367966, 0.021952074021100998, -0.02540714293718338, -0.02098797634243965, -0.0024033968802541494, 0.02242087572813034, 0.013621450401842594, -0.00006316697545116767, 0.0711897611618042, 0.020234165713191032, 0.06257825344800949, 0.015364464372396469, 0.02403457835316658, -0.03030269779264927, -0.06567099690437317, 0.031021730974316597, 0.07051914930343628, -0.023830212652683258, -0.002839603228494525, -0.021535176783800125, -0.03039798140525818, -0.010151618160307407, 0.0010938579216599464, 0.0688403770327568, 0.050993889570236206, 0.016805846244096756, -0.03265387937426567, 0.010354548692703247, -0.0116274980828166, 0.01010067667812109, 0.01280941441655159, 0.004463178105652332, -0.04266050085425377, -0.02392936311662197, -0.012732281349599361, 0.037042051553726196, -0.010738961398601532, 0.015992585569620132, -0.03763440623879433, 0.0330999419093132, 0.05854251980781555, 0.0586162805557251, 0.026397250592708588, -0.028974657878279686, 0.005023299250751734, 0.026859162375330925, 0.0437382347881794, 0.005427702330052853, 0.06937990337610245, -0.0075714499689638615, -0.022865792736411095, 0.021446239203214645, 0.036276496946811676, -0.009552856907248497, -0.022827479988336563, -0.05286349356174469, -0.06037023290991783, 0.08041474223136902, -0.029411770403385162, -0.00042902305722236633, 0.0380437932908535, 0.0790615826845169, 0.02863772213459015, 0.03382056951522827, 0.008608128875494003, -0.07069353759288788, 0.04699667543172836, 0.029603587463498116, 0.05580746755003929, 0.023432530462741852, -0.029397685080766678, 0.0716681256890297, 0.04126262292265892, 0.012004395946860313, 0.05827530845999718, -0.07272985577583313, -0.0857485830783844, -0.015232767909765244, -0.022916855290532112, 0.06464622914791107, -0.03996871039271355, 0.013566102832555771, 0.0777304545044899, -0.0012222463265061378, 0.057539794594049454, 0.008851532824337482, -0.007670603692531586, 0.013457061722874641, -0.048052553087472916, -0.07553421705961227, 0.0276473555713892, 0.023572243750095367, -0.01808302104473114, -0.04180111736059189, 0.010947340168058872, -0.028681715950369835, 0.01648230291903019, 0.023422231897711754, -0.008571735583245754, 0.01954745501279831, 0.046754900366067886, 0.06626849621534348, -0.014510879293084145, 0.03544997423887253, -0.060552630573511124, 0.021446799859404564, 0.0025729965418577194, -0.013736020773649216, -0.010240703821182251, -0.010245753452181816, 0.10486124455928802, 0.07244185358285904, -0.053438637405633926, -0.0564483106136322, 0.007960556074976921, -0.0216978807002306, -0.013919562101364136, 0.020581094548106194, -0.006155525799840689, -0.012278354726731777, 0.015813356265425682, -0.02254810743033886, -0.04956655576825142, -0.00998949259519577, -0.045367106795310974, 0.0020245094783604145, 0.07604926824569702, -0.00911185797303915, 0.057372771203517914, -0.023228826001286507, 0.007829460315406322, -0.03468116745352745, -0.020498987287282944, -0.06741319596767426, 0.012021290138363838, 0.019312936812639236, -0.007863078266382217, 0.02732659876346588, -0.044294457882642746, 0.0027657386381179094, -0.022649720311164856, -0.02812645025551319, 0.010221477597951889, 0.07689044624567032, 0.06539765000343323, -0.0013286926550790668, 0.06439834833145142, 0.01767846569418907, 0.021625038236379623, -0.009033366106450558, -0.035834901034832, -0.04678037762641907, -0.02151600457727909, 0.006503702141344547, 0.02670552022755146, 0.02468506433069706, 0.0037457477301359177, 0.0013594123302027583, 0.03423194959759712, 0.003976959269493818, -0.044230613857507706, 0.011408820748329163, 0.0021153627894818783, -0.029953131452202797, -0.010914594866335392, -0.004203497432172298, 0.05575425550341606, -0.02855939231812954, -0.025846030563116074, 0.0051115453243255615, -0.05507113039493561, 0.05396946519613266, -0.0495518334209919, -0.0493643544614315, -0.0006633374141529202, -0.011375289410352707, 0.034499090164899826, -0.0007805781788192689, 0.006329913157969713, 0.04705122858285904, 0.002464680466800928, 0.0061728814616799355, 0.00200483575463295, -0.007959213107824326, 0.04153319075703621, 0.012357099913060665, 0.0038293127436190844, 0.04379748925566673, -0.010475547052919865, -0.0017251629615202546, -0.046062592417001724, -0.008440298959612846, -0.025499463081359863, -0.27628055214881897, 0.055701613426208496, 0.003580757649615407, -0.03037680685520172, 0.03528710827231407, -0.016916662454605103, 0.007227709516882896, -0.029146572574973106, -0.03122136741876602, -0.010015255771577358, 0.004944258835166693, -0.05355861783027649, -0.046063072979450226, 0.01907368190586567, 0.01110655814409256, 0.0025299512781202793, -0.0038467897102236748, -0.04320107027888298, 0.01987791247665882, 0.06131972000002861, 0.01225717831403017, -0.043776094913482666, 0.0005760954227298498, 0.020447472110390663, 0.02641434594988823, 0.06687983125448227, -0.06011199951171875, 0.02754134312272072, -0.05376644432544708, -0.010666495189070702, 0.022775515913963318, -0.0025380351580679417, 0.04090309515595436, -0.013029862195253372, 0.014033389277756214, -0.010198681615293026, 0.02611231617629528, 0.0024736402556300163, 0.04129888117313385, 0.039291687309741974, -0.027256708592176437, -0.035916611552238464, -0.0013200923567637801, -0.00884170737117529, 0.06144212558865547, 0.017656918615102768, -0.05334904417395592, -0.0026968277525156736, -0.026522312313318253, 0.07305018603801727, -0.03330694139003754, -0.029746398329734802, -0.024229805916547775, 0.012111034244298935, -0.04992535337805748, -0.03776165470480919, -0.04093245789408684, -0.037736210972070694, -0.03525065630674362, -0.05041629076004028, -0.0016186187276616693, -0.026003433391451836, -0.015455740503966808, -0.026620157063007355, -0.03024671971797943, -0.06727419048547745, -0.0890645906329155, -0.012257914990186691, 0.07282152771949768, 0.020295269787311554, -0.044184017926454544, -0.005729048978537321, -0.004408059176057577, -0.10850677639245987, -0.0376162976026535, 0.013675040565431118, -0.03912903741002083, 0.007166173774749041, 0.02663227543234825, 0.04032166674733162, -0.04959844797849655, -0.0690445527434349, 0.020471515133976936, 0.004155965056270361, 0.017405664548277855, -0.007900351658463478, 0.008145743049681187, -0.01151339616626501, -0.02311418578028679, -0.004006255883723497, 0.061480116099119186, -0.04454807937145233, -0.017955783754587173, -0.009032195433974266, 0.012037752196192741, 0.018694845959544182, -0.014178870245814323, -0.020129816606640816, 0.030357100069522858, 0.019992079585790634, 0.012917745858430862, -0.06248495355248451, 0.016104867681860924, -0.048659056425094604, -0.02454875223338604, -0.028312187641859055, -0.029954545199871063, 0.02972937747836113, 0.004097817000001669, 0.01943359710276127, 0.002398396609351039, -0.03210297226905823, 0.01180586963891983, -0.05023530125617981, -0.04608818143606186, -0.016067098826169968, 0.009343893267214298, 0.03841222822666168, 0.002279349137097597, -0.011617081239819527, -0.04927863925695419, 0.012134336866438389, -0.009348480962216854, -0.014776586554944515, -0.0441046841442585, 0.001323564094491303, 0.002976077375933528, -0.05497610569000244, 0.028066197410225868, 0.030994480475783348, -0.020007114857435226, 0.017488369718194008, 0.03176012262701988, -0.02310291863977909, 0.015446539968252182, -0.03060247004032135, -0.04579692333936691, -0.03365360572934151, 0.004496254026889801, 0.002840132685378194, 0.01436004787683487, 0.010871382430195808, 0.004705240949988365, 0.02791093848645687, 0.0493147112429142, 0.012298878282308578, 0.0102703757584095, -0.03252491354942322, 0.0033482194412499666, 0.009619882330298424, 0.003116627223789692, -0.023192087188363075, 0.015948612242937088, -0.04744970425963402, -0.020893683657050133, 0.0004562281246762723, 0.04724517837166786, -0.001810989691875875, -0.03337986022233963, -0.03555193543434143, 0.026878759264945984, -0.047701332718133926, -0.03548241779208183, -0.011409773491322994, -0.0027845671866089106, 0.051691778004169464, -0.013125990517437458, 0.031239725649356842, 0.006024247035384178, -0.02680765651166439, -0.02056671865284443, -0.008175007998943329, -0.0342210978269577, 0.000575152225792408, -0.019639385864138603, 0.011298558674752712, 0.018526026979088783, -0.005956547800451517, 0.03392382338643074, 0.023484403267502785, 0.015617400407791138, -0.022366920486092567, 0.003923556301742792, 0.0174552034586668, 0.03779391944408417, 0.04585329070687294, 0.0027411135379225016, 0.0010713526280596852, -0.017467094585299492, -0.020056357607245445, -0.033123403787612915, 0.004274588543921709, -0.01572537235915661, 0.01138621848076582, -0.02977227233350277, -0.07452337443828583, 0.057918157428503036, 0.03670830652117729, 0.01161213405430317, 0.03825723007321358, -0.03686485439538956, 0.0006946551729924977, -0.024547070264816284, 0.05849830433726311, 0.06479012966156006, -0.0575026273727417, -0.014303736388683319, 0.0026794523000717163, -0.005170327611267567, -0.0212198905646801, 0.004786565434187651, -0.04727115482091904, -0.015599406324326992, 0.004248511511832476, 0.033948514610528946, -0.022079497575759888, -0.022655798122286797, -0.04510362818837166, 0.02977493405342102, 0.01161294337362051, -0.005153348203748465, -0.006088218651711941, -0.009935151785612106, 0.004464267287403345, -0.009138661436736584, 0.03386151045560837, -0.018426373600959778, -0.038483500480651855, 0.04462335631251335, -0.018060335889458656, 0.03350776433944702, -0.031243300065398216, 0.02250802144408226, 0.06390005350112915, -0.020855166018009186, -0.006319606211036444, -0.033620238304138184, 0.00017161451978608966, 0.0005537517135962844, 0.02645488828420639, -0.008774397894740105, -0.006936882622539997, -0.03082091361284256, 0.01819240115582943, -0.053035933524370193, 0.009337288327515125, -0.02469111979007721, -0.008436711505055428, 0.008641684427857399, 0.05943375453352928, -0.002054457552731037, 0.028260093182325363, -0.006591943558305502, -0.03155018016695976, 0.02945232205092907, -0.04898270592093468, -0.058143340051174164, -0.026291431859135628, -0.028362058103084564, 0.006385283078998327, -0.005484974943101406, 0.015941273421049118, -0.043372251093387604, 0.032239481806755066, 0.016661209985613823, 0.05966182053089142, 0.0948050245642662, 0.011391768231987953, 0.021868577226996422, -0.027728591114282608, -0.009117892012000084, -0.09925474971532822, -0.03943550959229469, 0.021298715844750404, -0.0017780098132789135, -0.016704004257917404, -0.0009126233635470271, -0.015015634708106518, 0.035399701446294785, -0.05821880325675011, -0.030680155381560326, 0.037774521857500076, -0.013487759977579117, -0.00848547276109457, 0.02281348593533039, -0.043833665549755096, 0.022938687354326248, 0.03572552278637886, -0.0413423627614975, 0.0019260355038568377, -0.0033455193042755127, 0.028729667887091637, -0.030514424666762352, 0.03156076371669769, -0.044706303626298904, -0.007326322607696056, 0.06547335535287857, 0.020147429779171944, -0.015970323234796524, 0.033053670078516006, -0.020223453640937805, 0.021533148363232613, 0.048745352774858475, 0.011319797486066818, -0.010119885206222534, -0.0008609492215327919, 0.0056755864061415195, -0.04915867745876312, 0.0381406769156456, 0.01777602732181549, -0.037205107510089874, -0.028109949082136154, 0.0778195858001709, 0.024268923327326775, -0.03337226063013077, -0.024696525186300278, 0.016343845054507256, -0.044483933597803116, -0.0030067304614931345, -0.004971450660377741, -0.009499221108853817, -0.03200104087591171, 0.0550026074051857, -0.01826617121696472, -0.01439729519188404, 0.09399858117103577, 0.0033456527162343264, -0.0012536784633994102, -0.007780019659548998, 0.09797516465187073, 0.06773737818002701, 0.05440559238195419, -0.0358288548886776, 0.07852394878864288, -0.02230704016983509, -0.05007661134004593, -0.0006019634893164039, -0.03430243581533432, -0.006350745912641287, -0.04858727008104324, 0.03728340566158295, 0.08409333974123001, -0.03642239049077034, 0.059908539056777954, -0.021083589643239975, -0.047207221388816833, -0.008399790152907372, 0.014207234606146812, 0.02300078608095646, 0.03948887065052986, 0.018543601036071777, 0.057793691754341125, -0.022082826122641563, -0.03319549933075905, 0.06290529668331146, -0.02257106453180313, -0.007057261653244495, 0.018692711368203163, -0.007795469835400581, 0.004046826157718897, -0.003987281583249569, 0.02850348688662052, 0.06377841532230377, -0.024211054667830467, 0.005078732036054134, -0.011071320623159409, 0.04689401015639305, 0.002956502139568329, 0.019415173679590225, -0.018184343352913857, -0.005389245692640543, -0.02459133416414261, -0.03035048395395279, -0.02710280381143093, -0.002806398319080472, -0.03737720847129822, 0.04270573705434799, -0.041441354900598526, 0.023478157818317413, 0.010877595283091068, -0.03738892078399658, -0.030496099963784218, -0.051920559257268906, -0.027430681511759758, -0.07467726618051529, -0.0622810423374176, -0.02120905928313732, 0.011641704477369785, -0.01001769956201315, -0.042376887053251266, -0.0007688759942539036, -0.011540094390511513, -0.033773332834243774, 0.010302490554749966, -0.06938197463750839, -0.012288223020732403, -0.0004665797750931233, 0.028721483424305916, 0.015614304691553116, 0.030931128188967705, 0.05061613395810127, -0.01338193193078041, -0.020156240090727806, -0.03209732845425606, -0.0010956634068861604, 0.0285976342856884, 0.05459224060177803, 0.01034898404031992, -0.0794781893491745, 0.026655444875359535, 0.005917062982916832, -0.015347425825893879, -0.08110512793064117, 0.007378988433629274, 0.024017084389925003, -0.022359361872076988, 0.04126550629734993, -0.01801295578479767, 0.020904377102851868, -0.04318070411682129, 0.01475520059466362, 0.0052369125187397, 0.017118031159043312, 0.02976219356060028, -0.03348863869905472, 0.056086648255586624, 0.026277272030711174, 0.0030986261554062366, -0.03365066647529602, -0.01673480123281479, -0.013049626722931862, 0.003302924335002899, -0.03430059552192688, -0.04375693202018738, -0.06786339730024338, -0.08610311150550842, -0.0318414606153965, 0.015594848431646824, -0.013677419163286686, 0.005885196849703789, 0.05584970861673355, 0.026808682829141617, -0.038287676870822906, 0.026739448308944702, -0.029421266168355942, 0.015083041042089462, -0.01967688649892807, -0.004421933088451624, -0.0025367317721247673, 0.018443148583173752, 0.004101632162928581, 0.020152635872364044, 0.013498902320861816, -0.054458945989608765, 0.011311846785247326, -0.0076966178603470325, 0.010619721375405788, 0.019437119364738464, 0.012643246911466122, 0.0024844373110681772 ]
[ -0.0763610452413559, -0.02254265733063221, -0.019546622410416603, -0.004532856401056051, 0.05901971459388733, -0.05232563987374306, -0.023960642516613007, 0.04143087938427925, -0.0017559281550347805, -0.014786971732974052, -0.0015305716078728437, -0.03714697062969208, 0.005430750083178282, 0.01569761335849762, 0.07826779782772064, -0.026981806382536888, 0.013125985860824585, -0.07698385417461395, -0.009565796703100204, -0.00375036196783185, 0.017851844429969788, -0.010428663343191147, -0.040980927646160126, -0.04476050287485123, 0.050425998866558075, 0.04015360772609711, 0.011244961060583591, -0.05176040902733803, 0.0015195690793916583, -0.1770528107881546, 0.0136880399659276, -0.021116919815540314, 0.03208065405488014, -0.017932675778865814, -0.010963798500597477, 0.05290702357888222, 0.021608686074614525, 0.025233160704374313, 0.014270449988543987, 0.029996084049344063, 0.02932347171008587, -0.001564843230880797, -0.04390958324074745, -0.03510208800435066, 0.027936847880482674, 0.01170643512159586, -0.022164441645145416, -0.006891667377203703, -0.03810324892401695, 0.040378715842962265, -0.05588968098163605, -0.01825634017586708, -0.010451531037688255, -0.019362444058060646, 0.021339749917387962, 0.050180982798337936, 0.01901707425713539, 0.06503590196371078, 0.0069036963395774364, 0.00631797406822443, 0.023310789838433266, 0.009685970842838287, -0.1598142683506012, 0.10846815258264542, -0.0010373559780418873, 0.018840134143829346, -0.02115451730787754, -0.005832592956721783, -0.03550800308585167, 0.09305284917354584, -0.001055117347277701, 0.0008663377375341952, -0.020180946215987206, 0.052933286875486374, 0.013953132554888725, -0.005825917236506939, -0.0017786792013794184, 0.002690243534743786, 0.0077042123302817345, -0.029090285301208496, 0.020334770902991295, -0.005242823623120785, -0.015758128836750984, -0.029722120612859726, 0.005044782068580389, -0.008628998883068562, -0.0013113332679495215, 0.03256480023264885, 0.004182508680969477, 0.03043021447956562, 0.015353561379015446, -0.014673464931547642, 0.024622149765491486, -0.0027424038853496313, -0.09497009962797165, -0.0390871986746788, 0.05697304382920265, 0.025489499792456627, -0.01587252877652645, 0.4225520193576813, -0.04310842230916023, 0.03749900311231613, 0.05505453795194626, 0.05023108050227165, -0.022623321041464806, -0.00639067217707634, -0.014616653323173523, -0.07796470820903778, 0.001911881729029119, -0.030887190252542496, -0.008257336914539337, -0.0199747197329998, 0.06297368556261063, -0.050838351249694824, 0.011402669362723827, 0.010710242204368114, 0.05464460328221321, 0.03620484098792076, 0.03172487020492554, 0.02485799416899681, -0.025926455855369568, -0.01405158918350935, 0.03829602524638176, 0.00786188617348671, -0.005988222546875477, -0.0031022001057863235, 0.04898751527070999, 0.05187690258026123, 0.02593833953142166, 0.005249182693660259, 0.0729699358344078, -0.018349971622228622, -0.08242177218198776, 0.024737579748034477, 0.024987846612930298, -0.0009361556149087846, 0.04349150508642197, -0.044013988226652145, 0.013704808428883553, 0.025734741240739822, -0.04429701343178749, -0.04129175841808319, 0.05720074102282524, 0.014694713987410069, -0.020335307344794273, 0.1553099900484085, -0.020676597952842712, -0.0474715419113636, 0.012471663765609264, -0.04462038725614548, -0.006969416048377752, 0.020863737910985947, 0.016513170674443245, -0.070566326379776, 0.014363206923007965, 0.041399095207452774, 0.10475216805934906, -0.023730464279651642, -0.058629706501960754, -0.0034635516349226236, -0.018517259508371353, -0.01912640407681465, -0.025789910927414894, 0.02946714125573635, 0.042088963091373444, -0.137268528342247, -0.00887345988303423, 0.02381247654557228, 0.016738509759306908, -0.09574698656797409, 0.011958369053900242, 0.012222988530993462, -0.013469434343278408, -0.012563172727823257, 0.09726179391145706, -0.006562656257301569, -0.027905456721782684, 0.04204501956701279, 0.05834246799349785, 0.015265845693647861, 0.01224534958600998, -0.020870989188551903, -0.04329349473118782, 0.016461888328194618, -0.05194731429219246, -0.04799948260188103, -0.04041662439703941, -0.009728725999593735, -0.0013625620631501079, 0.010741173289716244, 0.03768080845475197, -0.09536505490541458, -0.05690743029117584, 0.03325863927602768, -0.04332106560468674, -0.041032761335372925, -0.008926383219659328, 0.0018727421993389726, 0.007886277511715889, -0.03714316710829735, -0.027847370132803917, -0.03899795934557915, -0.0030680918134748936, 0.016345608979463577, -0.014941927045583725, 0.04773584008216858, 0.06920307874679565, -0.06715628504753113, 0.05908248573541641, 0.06217586621642113, -0.013119443319737911, -0.06596052646636963, 0.007669089362025261, -0.023578600957989693, 0.00007966999692143872, 0.012348052114248276, 0.01286114938557148, 0.0006594549049623311, -0.009745833463966846, 0.05937870591878891, -0.039189327508211136, -0.04387117549777031, -0.006379962433129549, -0.3428085446357727, -0.05258003994822502, -0.023752594366669655, -0.0009875380201265216, 0.014802509918808937, -0.06402759253978729, -0.020256882533431053, -0.013519829139113426, 0.01563505083322525, 0.03410594165325165, 0.0611748993396759, -0.010740316472947598, -0.0020950734615325928, -0.09615632146596909, 0.0058259544894099236, 0.029589073732495308, -0.02979055978357792, -0.019265824928879738, 0.0007683963631279767, 0.0025473828427493572, 0.009677114896476269, 0.007477143779397011, -0.053325872868299484, -0.06341813504695892, 0.0009201288921758533, -0.050959132611751556, 0.11328969150781631, 0.011241434141993523, 0.06280199438333511, -0.06484859436750412, 0.029457472264766693, -0.03342505171895027, 0.014015243388712406, -0.07404593378305435, -0.010726927779614925, -0.016778001561760902, 0.03308310732245445, -0.007100237067788839, -0.005069856997579336, -0.05415395274758339, -0.037433747202157974, 0.05965208262205124, -0.014654427766799927, -0.028301840648055077, -0.07641614228487015, 0.02686470001935959, 0.015171108767390251, -0.006097189616411924, 0.009029588662087917, 0.07138606905937195, 0.022321388125419617, -0.017331967130303383, 0.01986829750239849, 0.007443412207067013, 0.026403315365314484, -0.022623494267463684, -0.06324932724237442, 0.017323922365903854, -0.03655494749546051, -0.012640373781323433, -0.0052694701589643955, 0.01698310673236847, 0.034278545528650284, -0.04400964453816414, -0.02063816972076893, 0.03550659865140915, -0.01642264612019062, -0.05175165832042694, 0.031491708010435104, 0.034068647772073746, -0.013316689990460873, 0.08969559520483017, -0.04203255847096443, 0.03873976320028305, 0.028227796778082848, 0.018252411857247353, 0.004780338611453772, 0.05877068638801575, 0.030985599383711815, 0.0024116726126521826, 0.029488272964954376, -0.02661801129579544, 0.06652825325727463, -0.02584376558661461, -0.013640467077493668, -0.0050529902800917625, -0.004646612796932459, -0.006829214282333851, 0.024552421644330025, 0.02965220808982849, -0.0059641217812895775, -0.02097395248711109, -0.009528323076665401, -0.06592849642038345, 0.06023278832435608, -0.01964288391172886, -0.2513061463832855, 0.036020178347826004, 0.084841787815094, 0.03197766840457916, 0.0035948902368545532, 0.010787625797092915, 0.019007466733455658, -0.057363517582416534, -0.03447491303086281, -0.013377964496612549, 0.004657686688005924, 0.06454507261514664, 0.013790732249617577, -0.0023058061487972736, 0.02431383542716503, -0.012752443552017212, 0.018598418682813644, 0.021815339103341103, -0.004660014994442463, 0.003032853826880455, 0.04100404307246208, -0.007574193179607391, 0.15498094260692596, 0.0034415144473314285, 0.008916455321013927, 0.008284672163426876, -0.013361180201172829, -0.006282191723585129, 0.07502947002649307, 0.001498122583143413, -0.017229370772838593, -0.018634933978319168, 0.01086893118917942, -0.007010051514953375, 0.01652870699763298, -0.0716228187084198, -0.04541926831007004, 0.04970085620880127, 0.03748965263366699, -0.031502705067396164, -0.0019974811002612114, 0.022789325565099716, -0.04101432487368584, 0.01610753685235977, 0.06779531389474869, 0.027902908623218536, 0.009636222384870052, -0.02562805823981762, -0.058154284954071045, -0.020170724019408226, -0.00815641414374113, -0.025988809764385223, -0.02411496825516224, 0.01473819650709629, 0.01561681553721428, 0.07513979077339172, 0.032156094908714294, -0.01478845626115799, 0.025671541690826416, 0.011365257203578949, -0.003199297934770584, -0.027457524091005325, 0.10057336091995239, -0.011463255621492863, 0.051120176911354065 ]
[ -0.011535661295056343, 0.027701927348971367, 0.020631572231650352, 0.011179338209331036, 0.023144975304603577, 0.03454695641994476, -0.028584493324160576, 0.00005466748552862555, -0.04473772272467613, -0.03691265732049942, -0.020505191758275032, 0.024152003228664398, -0.020558197051286697, -0.013805940747261047, -0.016313428059220314, -0.003723257454112172, 0.0015337440418079495, -0.021968459710478783, 0.04081346094608307, -0.007169026415795088, -0.035105329006910324, 0.02889000065624714, -0.004019863437861204, 0.006022033281624317, 0.010113990865647793, 0.05399993807077408, -0.04060060903429985, 0.013911958783864975, 0.010455555282533169, -0.10998831689357758, -0.010198505595326424, -0.001502264174632728, -0.027873966842889786, -0.010090596973896027, -0.029447104781866074, 0.05105230212211609, -0.0050966935232281685, 0.044888515025377274, 0.0482703261077404, 0.032979220151901245, 0.003245557891204953, -0.015275309793651104, 0.006055743433535099, -0.014325213618576527, 0.008772777393460274, -0.004382261075079441, 0.017243457958102226, 0.0236029252409935, -0.037644874304533005, -0.010541113093495369, -0.038853492587804794, -0.006015613675117493, -0.010415893979370594, 0.0010100272484123707, 0.028141804039478302, -0.015646785497665405, -0.028211265802383423, -0.00831042230129242, -0.016170714050531387, -0.084168441593647, -0.026198549196124077, 0.00007622252451255918, -0.004976942669600248, -0.001388330478221178, -0.002670625690370798, -0.0476350337266922, -0.037703752517700195, 0.033895887434482574, 0.00929152313619852, 0.02138226293027401, -0.026730874553322792, 0.07543854415416718, -0.02574416808784008, 0.0008286912343464792, -0.021512407809495926, 0.012546379119157791, 0.023263121023774147, -0.006043395958840847, 0.005746206734329462, -0.017382828518748283, -0.006277638487517834, 0.011141902767121792, 0.002542911097407341, 0.01304934173822403, 0.003092445433139801, -0.027012208476662636, 0.03838708624243736, 0.032592058181762695, 0.018493488430976868, -0.028238216415047646, 0.005070817191153765, 0.0051533835940063, -0.001005092286504805, 0.005302289500832558, -0.09891992807388306, -0.030790500342845917, -0.004586257040500641, -0.013086209073662758, 0.016054002568125725, 0.8327219486236572, -0.015371671877801418, -0.008782422170042992, -0.015877248719334602, 0.023863807320594788, 0.006665301974862814, 0.011984371580183506, -0.04074759781360626, 0.002148683648556471, 0.023050395771861076, -0.050691187381744385, 0.0023376289755105972, 0.03506651893258095, 0.003677152097225189, 0.004731821361929178, 0.010953965596854687, 0.029506424441933632, 0.012971918098628521, 0.015793342143297195, 0.02574961818754673, 0.01409048493951559, 0.0009692158782854676, -0.0026090473402291536, -0.018290653824806213, -0.01188097707927227, -0.03428824245929718, -0.15044493973255157, 0.04610375687479973, -6.320029214148705e-33, 0.03553948923945427, -0.028707612305879593, 0.02158093824982643, -0.03412894532084465, 0.019517721608281136, 0.00630579050630331, -0.013725108467042446, -0.00042071318603120744, 0.008070453070104122, -0.018119947984814644, -0.01353867445141077, -0.020716454833745956, 0.015583411790430546, -0.029147909954190254, 0.022166023030877113, -0.01995347999036312, 0.009197952225804329, 0.04816645011305809, 0.02216188609600067, -0.008682920597493649, 0.0382588692009449, -0.026625700294971466, -0.013501884415745735, 0.020344670861959457, 0.0028799441643059254, 0.015913167968392372, 0.05716864764690399, -0.023730870336294174, 0.008268045261502266, -0.059356749057769775, 0.006415641866624355, 0.02737133577466011, -0.008249808102846146, 0.014213272370398045, 0.03367569297552109, -0.03149980679154396, -0.027121994644403458, -0.011464893817901611, -0.0035140912514179945, -0.015798084437847137, -0.0384192019701004, -0.03522787615656853, -0.04757307097315788, -0.03574198856949806, -0.030646339058876038, 0.019871952012181282, 0.027863962575793266, 0.018627379089593887, -0.0150736840441823, 0.02034984715282917, 0.007307644933462143, 0.0039650509133934975, 0.005197395570576191, -0.02299739420413971, -0.01613204926252365, 0.02247988060116768, 0.006980937905609608, 0.006564171984791756, 0.02875715121626854, 0.010699167847633362, 0.020343897864222527, -0.028308412060141563, 0.028536692261695862, -0.030953362584114075, -0.004520419519394636, -0.038009509444236755, 0.030048323795199394, -0.025826189666986465, 0.008049464784562588, 0.025973688811063766, -0.038146551698446274, 0.019061697646975517, 0.0009317509247921407, 0.018703684210777283, 0.04487144201993942, -0.0001290214277105406, 0.013400251045823097, -0.013413038104772568, 0.039634037762880325, 0.03607749566435814, 0.039925385266542435, -0.0052696880884468555, 0.02222413755953312, -0.05607310310006142, -0.0077140615321695805, -0.04127094894647598, 0.03310557082295418, -0.00048379579675383866, -0.029620826244354248, 0.0056610191240906715, 0.02085300162434578, 0.021289490163326263, -0.0024429417680948973, -0.01210563350468874, -0.00040280158282257617, 6.548810536861462e-33, -0.006734929513186216, -0.02362951822578907, -0.007212901022285223, -0.004153902176767588, -0.011206385679543018, -0.02080754190683365, 0.0038600771222263575, 0.03152458742260933, -0.03652138635516167, 0.025982389226555824, -0.009187465533614159, -0.056457240134477615, -0.034381233155727386, 0.029473479837179184, 0.0672396868467331, -0.012774867005646229, 0.04451776295900345, 0.009608916938304901, -0.005701666232198477, 0.0013445165241137147, -0.009774120524525642, -0.013060751371085644, -0.0016997319180518389, 0.005615818779915571, 0.05103528872132301, 0.061299510300159454, 0.02712828479707241, -0.0004866532108280808, -0.007576756179332733, 0.006511293817311525, -0.005054647568613291, -0.008630025200545788, -0.021420735865831375, 0.00747649883851409, -0.014555138535797596, 0.08826793730258942, -0.002182383555918932, -0.04162711277604103, 0.029173200950026512, 0.020018691197037697, 0.028856005519628525, 0.03132513165473938, 0.003548705019056797, 0.016744032502174377, -0.017932508140802383, 0.04832477867603302, -0.01194172166287899, 0.02129187434911728, -0.011449876241385937, 0.024424636736512184, -0.006087120622396469, 0.021515624597668648, -0.015046189539134502, 0.011961175128817558, 0.02360907569527626, -0.024231109768152237, -0.01873590238392353, -0.007346079219132662, -0.02713320031762123, -0.012632024474442005, -0.023241162300109863, -0.032681044191122055, -0.0448789969086647, 0.033106110990047455, -0.03319944813847542, -0.025849832221865654, 0.01199058536440134, -0.029844922944903374, 0.024816660210490227, -0.012162113562226295, 0.003286586841568351, -0.007984811440110207, 0.012782263569533825, 0.04507850855588913, 0.015022770501673222, -0.03636680543422699, 0.014719225466251373, 0.01926857978105545, -0.03999140113592148, 0.01028864923864603, 0.01060912199318409, 0.0020011202432215214, 0.0062291668727993965, 0.005187943112105131, -0.03744904696941376, 0.034641847014427185, -0.021109774708747864, -0.0008293596329167485, 0.03873816132545471, -0.03745528683066368, 0.003714397083967924, 0.006909586489200592, -0.01741236075758934, 0.044342271983623505, 0.015479706227779388, -1.2375903857275716e-8, -0.017417889088392258, -0.01683325134217739, -0.01655510999262333, -0.027315348386764526, 0.0229937843978405, 0.010456494987010956, 0.018051758408546448, -0.018755337223410606, -0.020786743611097336, 0.008435032330453396, 0.06745661050081253, -0.04523254185914993, 0.012667855247855186, 0.005658567883074284, -0.02839663252234459, -0.03457805514335632, -0.05704924836754799, -0.004006852861493826, 0.03816092386841774, -0.0020107151940464973, 0.046059347689151764, 0.027484726160764694, -0.010631886310875416, -0.007368889171630144, 0.059893250465393066, 0.02693999372422695, 0.023221485316753387, -0.07771603018045425, 0.025394383817911148, -0.018086062744259834, 0.012061100453138351, -0.019058210775256157, -0.018826086074113846, -0.007599737029522657, -0.040052007883787155, -0.031080950051546097, 0.0069518014788627625, 0.03577485680580139, -0.029565421864390373, 0.021901976317167282, 0.006936610210686922, -0.0023861767258495092, -0.025929326191544533, -0.027791395783424377, -0.02074548229575157, -0.001442135777324438, -0.03241017460823059, -0.014672393910586834, -0.00987379439175129, -0.04349507763981819, 0.016090072691440582, 0.01541164144873619, 0.04590153694152832, 0.05338185653090477, 0.02830030582845211, -0.019711626693606377, 0.004416241776198149, -0.04943632706999779, -0.008548736572265625, -0.030461926013231277, -0.04301727935671806, -0.00280076265335083, -0.00929455365985632, -0.03233526274561882 ]
r-vectorising-all-the-things
https://markhneedham.com/blog/2014/12/22/r-vectorising-all-the-things
false
2022-03-17 02:44:37
Apache Pinot: Failed to generate segment - Input path {} does not exist
[ "pinot" ]
[ "pinot" ]
In this blog post we're going to learn how to work around a bug when trying to ingest CSV files with the same name into Apache Pinot. I came across this issue while writing a recipe showing how to https://dev.startree.ai/docs/pinot/recipes/import-data-files-different-directories[import data files from different directories^]. .Apache Pinot: Failed to generate segment - Input path {} does not exist image::{{<siteurl>}}/uploads/2022/03/no-import-banner.png[] == Setup We're going to spin up a local instance of Pinot and Kafka using the following Docker compose config: .docker-compose.yml [source, json] ---- include::content/2022/03/17/docker/docker-compose.yml[] ---- We can launch all the components by running the following command: [source, bash] ---- docker-compose up ---- == Create Schema We're going to use the following schema: ./config/schema.json [source, json] ---- include::content/2022/03/17/docker/config/schema.json[] ---- We can create the schema by running the following command: [source, bash] ---- docker exec -it pinot-controller-csv bin/pinot-admin.sh AddSchema \ -schemaFile /config/schema.json -exec ---- == Create Table Now let's create an offline table based on that schema: ./config/table.json [source, json] ---- include::content/2022/03/17/docker/config/table.json[] ---- We can create the table by running the following command: [source, bash] ---- docker exec -it pinot-controller-csv bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table.json \ -exec ---- == Ingest CSV files Now we're going to ingest some CSV files into this table. The files are in the `input` directory: [source, bash] ---- tree input/ ---- .Output [source,text] ---- input/ ├── 2000_2009 │   └── movies.csv ├── 2010_2019 │   └── movies.csv └── 2020_present └── movies.csv 3 directories, 3 files ---- We have three files in different directories, all with the same name. Let's now try to import them using the following ingestion spec: ./config/job-spec.yml [source, yaml] ---- include::content/2022/03/17/docker/config/job-spec.yml[] ---- Run the following command: [source, bash] ---- docker exec -it pinot-controller-csv bin/pinot-admin.sh LaunchDataIngestionJob \ -jobSpecFile /config/job-spec.yml ---- We'll see the following output: .Output [source, text] ---- java.lang.IllegalStateException: Input path {} does not exist. [/tmp/pinot-957bc026-8f77-4458-85df-d50d0559c159/input/movies.csv] at shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:518) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] at org.apache.pinot.segment.spi.creator.SegmentGeneratorConfig.setInputFilePath(SegmentGeneratorConfig.java:416) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] at org.apache.pinot.plugin.ingestion.batch.common.SegmentGenerationTaskRunner.run(SegmentGenerationTaskRunner.java:112) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] at org.apache.pinot.plugin.ingestion.batch.standalone.SegmentGenerationJobRunner.lambda$submitSegmentGenTask$1(SegmentGenerationJobRunner.java:263) ~[pinot-batch-ingestion-standalone-0.9.3-shaded.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] 2022/03/10 14:15:59.187 ERROR [SegmentGenerationJobRunner] [pool-2-thread-1] Failed to generate Pinot segment for file - file:/input/2010_2019/movies.csv java.lang.IllegalStateException: Input path {} does not exist. [/tmp/pinot-957bc026-8f77-4458-85df-d50d0559c159/input/movies.csv] at shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:518) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] at org.apache.pinot.segment.spi.creator.SegmentGeneratorConfig.setInputFilePath(SegmentGeneratorConfig.java:416) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] at org.apache.pinot.plugin.ingestion.batch.common.SegmentGenerationTaskRunner.run(SegmentGenerationTaskRunner.java:112) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] at org.apache.pinot.plugin.ingestion.batch.standalone.SegmentGenerationJobRunner.lambda$submitSegmentGenTask$1(SegmentGenerationJobRunner.java:263) ~[pinot-batch-ingestion-standalone-0.9.3-shaded.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] ---- The reason we get this error is that Pinot unpacks all the input files into the same directory. It then creates a job per input file that runs on another thread(s). Once the thread has finished processing a file it deletes it, which is what leads to this error message. Even if we didn't run into this error we wouldn't end up with all our CSV files ingested since the contents of the input file is overwritten by the next one. There is a https://github.com/apache/pinot/pull/8337[PR pending to fix this bug^], but in the mean time we need to make sure that our input files have unique names. In this case we could use the following names: .Output [source,text] ---- input/ ├── 2000_2009 │   └── 2000_2009.csv ├── 2010_2019 │   └── 2010_2019.csv └── 2020_present └── 2020_present.csv ----
In this post we'll learn how to work out a problem when trying to import files with the same name into Apache Pinot.
uploads/2022/03/no-import-banner.png
[ -0.0067378077656030655, -0.00920751504600048, -0.028121761977672577, 0.05244017764925957, 0.08726568520069122, 0.003763026325032115, 0.009415297769010067, 0.058357805013656616, -0.0073649706318974495, -0.028755711391568184, -0.023528048768639565, -0.04379798844456673, -0.05466710776090622, 0.0245630145072937, -0.011711036786437035, 0.06406869739294052, 0.08250951021909714, 0.012619463726878166, 0.020962486043572426, 0.00963838491588831, 0.02829376608133316, 0.03641887381672859, 0.02002684399485588, 0.046954136341810226, 0.02199367620050907, -0.017778368666768074, -0.01685255952179432, 0.0004131157184019685, -0.05373944714665413, -0.02093292772769928, 0.0021863924339413643, -0.00418904609978199, 0.0166980791836977, -0.04254363849759102, 0.016978010535240173, -0.00453860592097044, -0.03089822083711624, 0.009952334687113762, -0.013789529912173748, 0.0363100990653038, -0.06749875843524933, 0.030852733179926872, 0.023281164467334747, 0.01252283900976181, 0.007683272939175367, 0.022751720622181892, -0.030273452401161194, 0.014164701104164124, -0.0010096001205965877, 0.010548634454607964, -0.06953993439674377, 0.0195327065885067, -0.030261974781751633, -0.0031115685123950243, 0.017337940633296967, 0.050071462988853455, -0.005762298125773668, -0.051039136946201324, 0.026769697666168213, -0.028954477980732918, -0.009716469794511795, 0.008545642718672752, 0.005239325575530529, -0.0038048846181482077, 0.014272724278271198, -0.04438575729727745, -0.024368738755583763, 0.04711320623755455, -0.04955698549747467, -0.0026941238902509212, 0.023125197738409042, 0.012208984233438969, -0.004566068761050701, -0.012292219325900078, 0.024327252060174942, -0.037522092461586, -0.03252235800027847, 0.0662328451871872, 0.026661595329642296, 0.04230476915836334, -0.03973861411213875, -0.0005825546686537564, 0.006724258419126272, 0.02382299117743969, 0.00029256424750201404, -0.053052883595228195, -0.0333780013024807, -0.011914021335542202, -0.05060424283146858, 0.07401574403047562, 0.02307003177702427, -0.03442494943737984, 0.034312110394239426, 0.006191514432430267, 0.011672110296785831, 0.010278284549713135, 0.024361105635762215, 0.010276616550981998, -0.00121234857942909, -0.004635319579392672, -0.05404861271381378, 0.014994685538113117, 0.010073819197714329, 0.07507070153951645, -0.0764586329460144, -0.032874464988708496, -0.02459067851305008, -0.013352577574551105, 0.017025988548994064, 0.01629692129790783, -0.010575798340141773, -0.001615281100384891, -0.011119815520942211, 0.011128437705338001, -0.08850536495447159, 0.07907847315073013, 0.021138755604624748, -0.0348694734275341, 0.008615082129836082, 0.012193280272185802, 0.06541748344898224, 0.01861993409693241, -0.02726820483803749, 0.0738232359290123, 0.01619010977447033, 0.022105248644948006, -0.0021570338867604733, 0.04458681493997574, 0.0026867168489843607, -0.06760497391223907, -0.02794339321553707, 0.03971561789512634, 0.016762154176831245, -0.0007892452413216233, -0.007027050480246544, -0.03333122283220291, 0.006286611780524254, 0.0021816652733832598, 0.05868758633732796, 0.03137882053852081, -0.03712527081370354, -0.017370767891407013, 0.02028430625796318, 0.000036040597478859127, 0.03288600966334343, 0.017895149067044258, -0.00974313821643591, -0.05506172403693199, -0.02788263000547886, 0.0361420176923275, 0.016473235562443733, 0.02506355568766594, 0.040006060153245926, -0.03769073262810707, 0.0020619123242795467, 0.08622708916664124, 0.01776810921728611, 0.02757769450545311, -0.05058364197611809, 0.0018337281653657556, 0.05578432232141495, 0.033688176423311234, 0.02497861161828041, 0.016507454216480255, 0.007638015318661928, -0.04630999267101288, 0.007101601455360651, 0.06257680058479309, -0.014421360567212105, 0.0012583290226757526, -0.054062239825725555, -0.04177923873066902, 0.0619041882455349, -0.04608272388577461, 0.020017554983496666, 0.04366594925522804, 0.06532570719718933, 0.03160970285534859, 0.024751659482717514, 0.03684227541089058, -0.07970456033945084, 0.06571677327156067, 0.003959633409976959, -0.021026449277997017, 0.013249739073216915, -0.010951803997159004, 0.06795798242092133, 0.0287251565605402, 0.023026013746857643, 0.035616811364889145, -0.07655025273561478, -0.09458468854427338, -0.018591037020087242, 0.007341026794165373, 0.06336134672164917, -0.023982692509889603, -0.021340643987059593, 0.07920000702142715, 0.014575551263988018, 0.02356516569852829, -0.007287738379091024, 0.03723970800638199, 0.025828324258327484, -0.07691328972578049, -0.0638929083943367, 0.037501730024814606, 0.012910122983157635, -0.028096666559576988, -0.0204626377671957, 0.018935924395918846, -0.047984495759010315, -0.015555199235677719, 0.06505847722291946, -0.04194440320134163, 0.057815201580524445, 0.01868594065308571, 0.030912814661860466, -0.024275455623865128, 0.04902258515357971, -0.06057446449995041, 0.04427003860473633, 0.01854359358549118, -0.028675805777311325, 0.01524102408438921, -0.007719996385276318, 0.12288589030504227, 0.07712219655513763, -0.004794272594153881, -0.05350645259022713, 0.061727914959192276, 0.0004092397284694016, -0.04866842180490494, -0.007306234445422888, 0.001950189471244812, -0.02219766564667225, 0.0012964073102921247, -0.03026936575770378, -0.009384211152791977, 0.01234051026403904, -0.008974540047347546, 0.022020848467946053, 0.08380590379238129, -0.0237121619284153, 0.05030732601881027, 0.0002845225390046835, 0.00013511310680769384, -0.00714202830567956, -0.01687486469745636, -0.06871891021728516, -0.006831828970462084, 0.006232301238924265, -0.003726417664438486, 0.04433343932032585, -0.03703109920024872, -0.029578914865851402, -0.04249623417854309, -0.05575176328420639, 0.013047057203948498, 0.02886105515062809, 0.048137977719306946, -0.04016818478703499, 0.04739962890744209, -0.03253624215722084, 0.010610954836010933, -0.013577209785580635, -0.03797631710767746, -0.02466828189790249, 0.00036159352748654783, 0.03461805358529091, 0.032201215624809265, 0.022880764678120613, 0.0025390014052391052, 0.0016017318703234196, -0.004044351167976856, 0.024301553145051003, 0.016712553799152374, 0.012215306982398033, 0.004393070936203003, 0.015077048912644386, -0.01814807765185833, -0.013835844583809376, 0.0444127656519413, -0.07797717303037643, 0.020893188193440437, 0.003093991195783019, -0.05130763351917267, 0.010029242374002934, -0.05861709266901016, -0.045213665813207626, -0.0018331793835386634, 0.0371004194021225, 0.023238029330968857, 0.008483977988362312, -0.0311571191996336, 0.065492644906044, 0.017038000747561455, -0.010622977279126644, 0.017234796658158302, -0.008968512527644634, 0.05716035142540932, -0.000505299773067236, 0.04654397442936897, 0.05286955088376999, 0.01551186852157116, -0.013188851065933704, -0.020396839827299118, 0.01687716320157051, -0.04395676031708717, -0.2935853600502014, 0.042534250766038895, -0.030725955963134766, -0.01605514995753765, 0.008930339477956295, -0.015929777175188065, 0.0015646653482690454, -0.03573540598154068, -0.0007267565815709531, 0.018783261999487877, -0.04434249922633171, -0.019311197102069855, -0.03164876997470856, 0.02866050973534584, -0.0020365137606859207, 0.01919621042907238, -0.012921527028083801, -0.058025676757097244, 0.021434016525745392, 0.013068149797618389, -0.014188109897077084, -0.04992896690964699, 0.0014121952699497342, 0.05442848801612854, 0.01587492786347866, 0.0172312892973423, -0.07996541261672974, 0.06037962809205055, -0.048254769295454025, -0.020635513588786125, -0.008467452600598335, -0.016702497377991676, 0.010507632046937943, -0.01059757824987173, -0.0029763225466012955, -0.0057603842578828335, 0.019236505031585693, 0.0018950742669403553, 0.018500659614801407, -0.0033876264933496714, -0.020715003833174706, -0.05054328218102455, -0.01947004161775112, 0.010827869176864624, 0.0734412893652916, -0.03689846768975258, -0.08548666536808014, 0.0057749212719500065, -0.0454714260995388, 0.07255935668945312, -0.02176317572593689, -0.051823101937770844, -0.006059490144252777, 0.027227919548749924, -0.011021764948964119, 0.03247920796275139, 0.0051055122166872025, -0.000596580735873431, -0.045775577425956726, -0.019452020525932312, 0.0020103768911212683, -0.043865226209163666, -0.021020907908678055, -0.04226761683821678, -0.02089505083858967, -0.05537062883377075, -0.07560748606920242, 0.012277394533157349, 0.057934585958719254, 0.052632883191108704, -0.03794512525200844, 0.028966758400201797, -0.017076054587960243, -0.11616051942110062, -0.013726914301514626, -0.020814012736082077, -0.05232784524559975, -0.011181185953319073, -0.03051787242293358, 0.04430500045418739, -0.023276204243302345, -0.022009864449501038, 0.024779988452792168, -0.0048861731775105, -0.0033540150616317987, -0.008051620796322823, 0.01926998794078827, -0.027983810752630234, -0.017554568126797676, -0.00899010244756937, 0.05548356845974922, -0.044654279947280884, -0.002957948250696063, -0.031599342823028564, -0.01983502507209778, 0.057738322764635086, 0.022689325734972954, 0.022100407630205154, 0.0033238939940929413, 0.02826828509569168, 0.01107024122029543, -0.05069497227668762, 0.0038662655279040337, -0.030103866010904312, -0.009682434611022472, -0.000838902429677546, -0.064997099339962, 0.028026966378092766, 0.006050323136150837, 0.044280488044023514, 0.016702555119991302, -0.047848377376794815, 0.01144588366150856, -0.057811539620161057, -0.0061007593758404255, 0.01680891029536724, 0.017124542966485023, 0.023807307705283165, 0.040668997913599014, -0.002356767887249589, -0.054131921380758286, 0.01574718952178955, -0.0059143477119505405, -0.023389030247926712, -0.023009441792964935, -0.04250984266400337, -0.00025556894252076745, 0.00041771866381168365, -0.0020333584398031235, 0.007783510722219944, -0.0229836143553257, 0.03317854180932045, 0.054480887949466705, -0.010224499739706516, 0.02466445229947567, -0.028652461245656013, -0.04404886066913605, -0.01446464378386736, 0.013107187114655972, 0.027077436447143555, -0.003129637101665139, 0.011649778112769127, -0.004502087831497192, 0.019500769674777985, 0.04435497522354126, 0.02675783634185791, 0.005059318151324987, 0.002664289902895689, 0.016340943053364754, -0.0002901162952184677, 0.011521877720952034, -0.010069821029901505, 0.023753253743052483, -0.021734310314059258, -0.0418725460767746, -0.02992936596274376, 0.01757001504302025, 0.02099553868174553, -0.005154940765351057, -0.04307692125439644, 0.029466578736901283, -0.06019318848848343, -0.01953938603401184, -0.010059354826807976, -0.025019904598593712, 0.059973690658807755, 0.009194135665893555, 0.0004262914590071887, -0.00011860461381729692, 0.021669479086995125, 0.018519774079322815, 0.005469771102070808, -0.0412198044359684, -0.0111550223082304, -0.022558478638529778, -0.0026762764900922775, 0.028744691982865334, 0.02643352374434471, 0.020452480763196945, -0.009116900153458118, 0.005723239853978157, -0.008199755102396011, 0.03958858922123909, 0.024562807753682137, 0.04521380364894867, 0.023756491020321846, -0.02753765881061554, -0.0007159884553402662, 0.00808728113770485, -0.039427898824214935, -0.046920329332351685, 0.009075641632080078, 0.0028761073481291533, -0.005560004618018866, -0.02343318611383438, -0.05840734764933586, 0.06264325231313705, 0.010541696101427078, 0.004395970143377781, 0.01612437330186367, -0.01168050616979599, -0.00235403492115438, -0.0372481569647789, 0.05760995298624039, 0.09196005761623383, -0.061119768768548965, 0.00270463596098125, -0.0032946018036454916, -0.002883523004129529, -0.008583219721913338, 0.017296625301241875, -0.0659542828798294, 0.0027919926214963198, -0.02931096777319908, 0.02264157310128212, -0.05814797803759575, -0.034996334463357925, -0.024150891229510307, 0.013330715708434582, 0.016248134896159172, 0.008024240843951702, 0.0039025850128382444, 0.0025119611527770758, -0.0016418626764789224, -0.024565700441598892, 0.04366401955485344, -0.007220666855573654, 0.00173828168772161, 0.025560516864061356, -0.024966634809970856, 0.03829099237918854, -0.045316118746995926, 0.019028712064027786, 0.013312739320099354, -0.018899422138929367, -0.012632016092538834, -0.029726935550570488, 0.006676128134131432, 0.0028797518461942673, 0.07635856419801712, 0.014099402353167534, -0.016798492521047592, -0.033508528023958206, 0.001538699259981513, -0.010455501265823841, -0.003293908666819334, -0.013836679048836231, -0.020428895950317383, 0.042681146413087845, 0.05569901689887047, 0.005106918979436159, 0.007569494657218456, -0.01587400585412979, -0.04789852723479271, 0.05057195946574211, -0.06001199781894684, -0.03185049444437027, -0.018460405990481377, -0.06618104875087738, 0.025092653930187225, 0.016566844657063484, 0.03682940453290939, -0.06700507551431656, 0.06294485926628113, 0.03689170628786087, 0.00034547154791653156, 0.013241834938526154, -0.036205776035785675, 0.03104703687131405, -0.02019604668021202, -0.004321757238358259, -0.09511537104845047, -0.0006330953910946846, 0.0498260036110878, -0.03279915079474449, 0.0022184564732015133, -0.0005156880361028016, -0.04659046232700348, 0.036408647894859314, -0.07815500348806381, -0.03532974794507027, 0.0498175248503685, -0.01689726486802101, 0.03286253288388252, -0.011502035893499851, -0.0339529849588871, 0.016246112063527107, 0.027467677369713783, -0.03709333389997482, -0.013386500999331474, 0.006498320028185844, 0.05348484218120575, 0.0126083604991436, 0.023367343470454216, -0.004905488342046738, -0.03806071728467941, 0.059098806232213974, 0.016280105337500572, 0.009087412618100643, 0.04566869139671326, -0.02033158764243126, 0.03882985934615135, 0.027168922126293182, 0.0004350659728515893, 0.016889655962586403, 0.017966214567422867, -0.0477486290037632, -0.06774679571390152, 0.03282630443572998, 0.023529646918177605, 0.021628007292747498, -0.04909331724047661, 0.05653682351112366, -0.005067029502242804, -0.045933354645967484, -0.04440081864595413, 0.009494216181337833, -0.03942357376217842, -0.01827228255569935, -0.012547866441309452, 0.028790472075343132, -0.050716619938611984, 0.03371703624725342, -0.023415500298142433, 0.002525377320125699, 0.06548503786325455, 0.006815431173890829, -0.010936983861029148, 0.024564504623413086, 0.07517827302217484, 0.07630977034568787, 0.009802915155887604, 0.014761202968657017, 0.06664247810840607, -0.02236262336373329, -0.03800434246659279, -0.0295626949518919, -0.02197393774986267, -0.006644871085882187, -0.02617696486413479, 0.010692201554775238, 0.06426086276769638, -0.016375940293073654, 0.08656693249940872, 0.02137789875268936, -0.01274741068482399, -0.019250810146331787, -0.00022231157345231622, 0.0247938334941864, 0.047964032739400864, -0.0029225382022559643, 0.023575419560074806, 0.00017553950601723045, -0.03281516954302788, -0.0034759833943098783, 0.01555826049298048, -0.03480316326022148, 0.013770696707069874, -0.027749929577112198, 0.036215413361787796, 0.009724465198814869, 0.026529604569077492, 0.07061818242073059, -0.03570570796728134, -0.0012835987145081162, 0.0007011591223999858, 0.03131062537431717, -0.008576400578022003, 0.015025637112557888, -0.03281807154417038, -0.01977718621492386, -0.027633333578705788, -0.04865645244717598, -0.012036353349685669, -0.005050101783126593, -0.003642207244411111, 0.013410348445177078, -0.029555488377809525, -0.005676440894603729, 0.03830283135175705, -0.005223338026553392, -0.05247003957629204, -0.044147614389657974, -0.04626287519931793, -0.06798185408115387, -0.05933720991015434, -0.013180384412407875, 0.00882628746330738, -0.014192411676049232, -0.02679556980729103, -0.02062196284532547, -0.01749645173549652, 0.012057346291840076, 0.012739053927361965, -0.0440450944006443, -0.009180023334920406, 0.01334555633366108, 0.038656577467918396, 0.0014448924921453, 0.006742644123733044, 0.059784408658742905, 0.014205284416675568, 0.009142243303358555, -0.020804595202207565, -0.006521806586533785, 0.032717637717723846, -0.013884605839848518, 0.017576662823557854, -0.07553903758525848, 0.0217924602329731, 0.019838983193039894, -0.007500809151679277, -0.05909913405776024, 0.03641507029533386, 0.03376253321766853, -0.018481073901057243, 0.05809443071484566, -0.01822027750313282, 0.019615119323134422, -0.06486475467681885, -0.03534523397684097, -0.029338760301470757, -0.008863645605742931, 0.03362876921892166, -0.014654804952442646, 0.07086387276649475, 0.04412875697016716, -0.02504933997988701, -0.03134198486804962, -0.004421509802341461, -0.0005977418040856719, 0.0316958874464035, -0.029937466606497765, -0.006399561185389757, -0.032085616141557693, -0.07175910472869873, -0.024220040068030357, 0.005489802919328213, -0.021752391010522842, -0.0317537896335125, 0.008781432174146175, -0.026255106553435326, -0.03998055309057236, 0.0027685309760272503, -0.051608338952064514, 0.010954669676721096, -0.02771162986755371, -0.013448728248476982, -0.016376353800296783, 0.01595901884138584, -0.004896186292171478, -0.017358751967549324, 0.016444174572825432, -0.034817881882190704, 0.0009295782656408846, -0.039037249982357025, 0.04669956490397453, 0.04369684308767319, -0.02566796913743019, -0.011741720139980316 ]
[ -0.04743729531764984, -0.06278529018163681, -0.01399527583271265, -0.04736020043492317, 0.07291959226131439, -0.057261936366558075, -0.05657000467181206, -0.0035021661315113306, -0.034890782088041306, 0.0044872756116092205, 0.028600459918379784, -0.06160465255379677, -0.0056465668603777885, -0.0326768159866333, 0.06803330779075623, 0.0033860241528600454, -0.0111010717228055, -0.04256952553987503, -0.009822778403759003, 0.023065004497766495, -0.007143507245928049, -0.027258295565843582, -0.03769040107727051, -0.08371606469154358, -0.01778268627822399, 0.06205316632986069, 0.048355527222156525, -0.0096678975969553, -0.03034142218530178, -0.22368517518043518, 0.01665525510907173, -0.006824372336268425, -0.013506701216101646, -0.02694159746170044, 0.002754269167780876, 0.032870206981897354, 0.02054974064230919, 0.004132517147809267, 0.007237565703690052, 0.038388922810554504, 0.045139800757169724, -0.010284206829965115, -0.05105647072196007, 0.016053223982453346, -0.002319676335901022, -0.01928737387061119, -0.010831501334905624, -0.0003385953896213323, 0.05630306527018547, -0.005827372893691063, -0.05265922471880913, -0.014285209588706493, -0.007302357815206051, -0.0357641726732254, 0.0037168078124523163, 0.041284460574388504, 0.05632847920060158, 0.07303156703710556, 0.015881752595305443, 0.015519874170422554, 0.026929058134555817, 0.008446430787444115, -0.14812733232975006, 0.10138457268476486, 0.04675804823637009, 0.036390990018844604, -0.04555176571011543, 0.008865360170602798, -0.02453475072979927, 0.044582728296518326, 0.014818880707025528, -0.02078176476061344, -0.02586812525987625, 0.09627292305231094, 0.02722206525504589, -0.041028689593076706, -0.015806876122951508, 0.03747639060020447, 0.013562521897256374, -0.010446654632687569, -0.06410349905490875, 0.007654282264411449, -0.041529443114995956, 0.001170193892903626, -0.05732923373579979, -0.0021153849083930254, -0.01845550164580345, 0.059032995253801346, -0.0064208656549453735, 0.01663975976407528, 0.02212494984269142, -0.03508604317903519, 0.04231381043791771, 0.02747594565153122, -0.09538135677576065, 0.0021067392081022263, -0.02159024216234684, -0.02084207534790039, -0.030618902295827866, 0.37114113569259644, -0.0173175111413002, -0.007505080662667751, 0.03682069107890129, 0.003615959780290723, 0.007730161305516958, 0.0324985533952713, -0.03255989030003548, 0.0022641285322606564, 0.05475379526615143, -0.005037256516516209, 0.013415548950433731, -0.0059014358557760715, 0.06260953098535538, -0.05629189684987068, -0.008112424984574318, -0.022075273096561432, -0.009432346560060978, 0.009134632535278797, -0.07322119921445847, 0.019300831481814384, 0.01807492785155773, 0.006969157140702009, 0.038681741803884506, 0.0326041579246521, -0.0020989098120480776, 0.008686709217727184, 0.017463339492678642, 0.02333477884531021, 0.05413613095879555, 0.020930128172039986, 0.03063909336924553, -0.033502545207738876, -0.03877837210893631, -0.012686742469668388, -0.00010016167652793229, -0.011030119843780994, 0.028848960995674133, -0.026300912722945213, -0.01587856560945511, -0.02095944434404373, -0.02196459285914898, -0.031650278717279434, 0.058293964713811874, -0.028153933584690094, -0.0200329702347517, 0.09994469583034515, 0.013717705383896828, -0.00006344517169054598, -0.016782836988568306, -0.03888457641005516, -0.03205875679850578, 0.01152127981185913, 0.009542660787701607, -0.048327554017305374, 0.0035143422428518534, 0.020222773775458336, 0.04000724107027054, -0.004267997108399868, -0.06461987644433975, 0.02730536460876465, -0.016685664653778076, -0.06915558129549026, -0.029796941205859184, 0.021488836035132408, 0.037827808409929276, -0.1305728405714035, -0.031484536826610565, 0.0176237840205431, 0.021846605464816093, -0.001418229308910668, -0.03058900684118271, 0.03157302737236023, -0.02340702712535858, -0.013163457624614239, 0.056131571531295776, -0.040213752537965775, -0.014404808171093464, 0.040402743965387344, 0.050070423632860184, 0.014765366911888123, -0.0005084234871901572, 0.0033442736603319645, -0.029303664341568947, -0.009562250226736069, -0.033215831965208054, -0.09945826232433319, -0.05779411643743515, -0.02173493057489395, -0.03782160207629204, -0.014825616963207722, -0.015650294721126556, -0.01011115126311779, -0.041393082588911057, 0.08715614676475525, 0.02257462404668331, -0.04146623983979225, 0.03098231367766857, 0.011016236618161201, 0.008037379011511803, -0.05280044302344322, 0.02174667827785015, 0.0588872991502285, 0.0030187952797859907, 0.04080819711089134, -0.09173112362623215, 0.016862139105796814, 0.05020894855260849, -0.027927791699767113, 0.033451247960329056, 0.016361955553293228, -0.04655115306377411, 0.011371967382729053, -0.014819725416600704, 0.03981626033782959, -0.01263408549129963, -0.0015726073179394007, -0.004951906856149435, -0.005215147975832224, 0.038967475295066833, 0.05406685546040535, -0.03833543881773949, -0.04953458160161972, -0.03334318473935127, -0.3823925256729126, -0.03284686058759689, -0.03281635046005249, -0.02341635525226593, -0.02472562901675701, -0.03147108107805252, -0.01084181759506464, -0.006737965624779463, -0.01029464416205883, -0.005100145470350981, 0.07349836826324463, -0.04030262678861618, 0.03338727727532387, -0.05490293353796005, -0.009098891168832779, 0.03399740904569626, -0.009808233007788658, -0.017918596044182777, -0.013343513011932373, 0.026232175529003143, -0.011452221311628819, -0.010100074112415314, -0.02965175360441208, -0.01048289705067873, 0.028292888775467873, -0.018699800595641136, 0.10518836230039597, 0.03687799721956253, 0.06998071074485779, -0.06151220574975014, 0.05036851018667221, 0.04739687591791153, 0.005247507710009813, -0.08238398283720016, -0.021432841196656227, -0.03847099468111992, 0.013083216734230518, 0.007846186868846416, -0.0144060542806983, 0.017794642597436905, -0.048827268183231354, 0.038737960159778595, -0.0420483835041523, -0.08467304706573486, 0.005505072884261608, 0.0017120756674557924, -0.013578168116509914, 0.011727533303201199, -0.006605247501283884, 0.05182788521051407, 0.019463783130049706, 0.034031279385089874, 0.01260392740368843, 0.031445279717445374, 0.023725999519228935, -0.015970498323440552, -0.04548052325844765, -0.01691446080803871, 0.032142266631126404, 0.003947688732296228, 0.04431277513504028, 0.07056450843811035, 0.03167107701301575, -0.05449225381016731, 0.017184419557452202, 0.015616947785019875, -0.02357429638504982, -0.0018575851572677493, 0.05939188227057457, -0.026886237785220146, -0.03011191263794899, 0.08265317231416702, 0.023052800446748734, 0.021533695980906487, 0.05409448593854904, 0.045438092201948166, -0.020340140908956528, 0.0006520699243992567, 0.0069238124415278435, -0.019621195271611214, 0.036209601908922195, -0.024904578924179077, 0.05024569481611252, -0.026716886088252068, 0.00464415829628706, 0.08540824055671692, -0.007995981723070145, -0.015071257017552853, 0.0700831189751625, -0.010167224332690239, -0.03646177053451538, -0.009417313151061535, -0.01321330200880766, -0.029512567445635796, 0.07063902914524078, 0.033007510006427765, -0.2721974551677704, 0.0549803264439106, 0.04583965614438057, 0.059797223657369614, 0.015974095091223717, 0.02363641746342182, 0.05252043530344963, -0.05405187979340553, 0.028172366321086884, 0.03721945360302925, 0.018091320991516113, 0.0055203987285494804, 0.030874701216816902, 0.006213116459548473, -0.0018842865247279406, -0.010418806225061417, 0.0666225329041481, 0.010400543920695782, 0.044319670647382736, -0.03880272060632706, -0.0029424421954900026, 0.007906794548034668, 0.18464140594005585, 0.03412070870399475, -0.0427592471241951, 0.013393518514931202, 0.0058022765442729, 0.02309584803879261, 0.025076335296034813, 0.06278473138809204, -0.008488917723298073, 0.006557950749993324, 0.0577528215944767, 0.003878098214045167, 0.052235379815101624, -0.03225666284561157, -0.003767284331843257, 0.03005240485072136, -0.006333210505545139, -0.06804446130990982, -0.06846047937870026, 0.01673605665564537, -0.05537756159901619, 0.02996663562953472, 0.036595944315195084, -0.044347118586301804, -0.011561901308596134, -0.029876820743083954, -0.02416527457535267, -0.013138394802808762, -0.003003394929692149, -0.03780797868967056, -0.005421550013124943, -0.012157813645899296, 0.019721070304512978, 0.06458713114261627, 0.01816539838910103, -0.0054782722145318985, -0.022020308300852776, 0.042538318783044815, 0.001722303801216185, -0.05230297893285751, 0.12324494123458862, 0.03796068951487541, 0.010282573290169239 ]
[ 0.031129542738199234, -0.005244273226708174, -0.03644045814871788, 0.015591170638799667, 0.03101048618555069, -0.023361779749393463, -0.01852930709719658, 0.030340781435370445, -0.001979242078959942, -0.00002965658495668322, 0.006567014381289482, -0.009364779107272625, -0.009038037620484829, -0.011975734494626522, -0.008723401464521885, -0.04325169324874878, 0.01954696699976921, 0.008327680639922619, 0.032867446541786194, 0.0008848304278217256, -0.03749139606952667, 0.02375154197216034, 0.042094636708498, 0.004812459461390972, -0.032032664865255356, 0.015915589407086372, -0.037348322570323944, 0.007641136180609465, 0.007680450100451708, -0.12772464752197266, -0.005961379036307335, 0.0010480288183316588, 0.021371789276599884, -0.011214254423975945, 0.020592210814356804, 0.026399219408631325, 0.024938805028796196, -0.005931846331804991, -0.02426244504749775, -0.026637457311153412, 0.03724199905991554, -0.03896885737776756, 0.0009851745562627912, -0.024451369419693947, 0.0014841918600723147, -0.0480269119143486, -0.06564779579639435, -0.01531230192631483, -0.015030684880912304, 0.05980472266674042, -0.05227852240204811, 0.019401932135224342, 0.015078887343406677, -0.004070339258760214, 0.04143068566918373, 0.03504447638988495, 0.01393716037273407, 0.026808667927980423, 0.03630595654249191, 0.010959475301206112, -0.0011498163221403956, 0.010426194407045841, -0.030352989211678505, -0.04155169799923897, 0.006722124293446541, -0.043774038553237915, -0.03364669904112816, -0.005875470582395792, 0.01000284869223833, 0.010034533217549324, 0.02554583176970482, 0.019862240180373192, -0.029349610209465027, -0.032775409519672394, -0.017065998166799545, 0.002632427727803588, 0.012436828576028347, 0.004858689848333597, -0.029565295204520226, 0.016931479796767235, -0.042321689426898956, -0.004219992086291313, -0.03229625150561333, -0.0359644815325737, -0.04450464993715286, 0.010302006267011166, 0.003086236771196127, 0.02022210694849491, 0.028883568942546844, -0.02948736399412155, 0.0012838830007240176, -0.0027240701019763947, -0.01307497639209032, 0.009004107676446438, -0.050693340599536896, -0.018007483333349228, -0.014058331958949566, -0.029614165425300598, -0.027114257216453552, 0.8266862034797668, -0.014572628773748875, 0.005328964442014694, 0.02950037457048893, 0.007876956835389137, 0.048899490386247635, -0.0052345069125294685, -0.013084469363093376, -0.01035305205732584, -0.005367444362491369, -0.027286995202302933, 0.03704765811562538, 0.014952071011066437, 0.016016997396945953, 0.008659561164677143, 0.014341352507472038, 0.02058040164411068, -0.011547265574336052, -0.021377207711338997, -0.00027254532324150205, 0.0317358523607254, 0.035683125257492065, -0.028008485212922096, 0.008299087174236774, 0.029136497527360916, -0.005626931320875883, -0.18084968626499176, -0.01367862243205309, -7.233934194926785e-33, 0.037841010838747025, -0.07935471087694168, 0.03772975876927376, 0.010544880293309689, 0.08402704447507858, -0.01413901336491108, 0.004040545783936977, 0.014603055082261562, -0.018571700900793076, -0.023084688931703568, -0.007375147193670273, -0.038012828677892685, -0.03296463564038277, 0.00817467924207449, 0.03186146914958954, -0.000655876356177032, -0.02127065509557724, 0.015079440549015999, -0.00021329284936655313, 0.021585065871477127, 0.024544939398765564, 0.008096901699900627, -0.029479049146175385, 0.0195325817912817, 0.04358378052711487, 0.013256406411528587, 0.015271208249032497, -0.040768180042505264, 0.005713251419365406, -0.029437335208058357, -0.0023101584520190954, -0.0025826029013842344, 0.00007375193672487512, -0.04734579101204872, 0.0035994418431073427, -0.050390057265758514, -0.011333984322845936, 0.021666988730430603, -0.07190103828907013, -0.004085112363100052, -0.003335487563163042, -0.02325179986655712, -0.03268270194530487, 0.00811123475432396, -0.03770217299461365, -0.025856364518404007, 0.03212181478738785, 0.054780494421720505, 0.004930824041366577, 0.025627614930272102, 0.02578229457139969, 0.009949008002877235, 0.02353551797568798, 0.014625916257500648, 0.020651107653975487, -0.0046142698265612125, -0.03726222366094589, -0.012834037654101849, 0.016316162422299385, -0.03305741772055626, -0.017755668610334396, -0.009050915949046612, -0.0326281376183033, 0.022240720689296722, -0.02346167527139187, 0.01805572584271431, 0.005350705236196518, 0.032294321805238724, -0.0035729657392948866, 0.03834791108965874, -0.04960101842880249, 0.011336504481732845, -0.02262098528444767, -0.03108946979045868, 0.020664388313889503, -0.02658642828464508, -0.014397300779819489, 0.020125018432736397, 0.013388399966061115, 0.039069242775440216, 0.00884205847978592, 0.025008056312799454, -0.051076989620923996, -0.004907189402729273, -0.06307200342416763, -0.0006120044272392988, 0.016027091071009636, 0.013219504617154598, -0.015603006817400455, 0.007685034070163965, 0.01971755549311638, 0.07913657277822495, -0.010454930365085602, -0.03469832241535187, -0.04438447952270508, 7.306155833157338e-33, -0.01518758200109005, -0.00985030923038721, -0.018795879557728767, 0.012965443544089794, 0.02896023914217949, -0.04300398379564285, 0.049866560846567154, -0.00431016692891717, 0.0022067371755838394, -0.0035288673825562, -0.053195033222436905, 0.026029452681541443, -0.021121418103575706, 0.017923519015312195, 0.03787574917078018, 0.012636273168027401, -0.002419948112219572, 0.033487334847450256, 0.018657859414815903, -0.013162157498300076, 0.020609354600310326, 0.0023693812545388937, 0.03561150282621384, 0.016888059675693512, 0.005845400504767895, 0.026870587840676308, 0.003669734112918377, 0.022030526772141457, -0.06436419486999512, -0.019123023375868797, 0.026636185124516487, -0.0030167335644364357, 0.019349634647369385, 0.006511407904326916, -0.040164344012737274, 0.03664286062121391, -0.039870768785476685, 0.029509050771594048, -0.00021200822084210813, -0.004590356722474098, 0.0095526073127985, 0.014963817782700062, 0.005474458914250135, 0.035277750343084335, -0.03333490714430809, -0.001410396071150899, 0.032856956124305725, 0.005991586018353701, -0.023974599316716194, -0.0010761558078229427, -0.03640931844711304, -0.009269912727177143, 0.02278345637023449, 0.009144430980086327, 0.034094810485839844, -0.007767291273921728, -0.02823355235159397, 0.029874200001358986, -0.026539644226431847, -0.011176045052707195, 0.004590016324073076, 0.006498234812170267, 0.027400802820920944, 0.036711979657411575, -0.01505826972424984, -0.012505649589002132, -0.017244752496480942, 0.011772123165428638, -0.020982354879379272, 0.010801156051456928, 0.016002289950847626, 0.014660234563052654, -0.016463030129671097, 0.07410861551761627, 0.02045145072042942, -0.017005041241645813, -0.040207210928201675, 0.014759714715182781, 0.0001425688387826085, 0.0024619530886411667, 0.003628821112215519, 0.014687116257846355, 0.003658910980448127, -0.040200356394052505, 0.03509848192334175, 0.007300395518541336, -0.019226934760808945, -0.00017114360525738448, 0.018835827708244324, 0.04713194817304611, -0.023664221167564392, -0.0309835784137249, -0.028098374605178833, 0.005601419135928154, -0.0019514731829985976, -1.2603018184620396e-8, -0.0038908261340111494, -0.002925052074715495, -0.02119169943034649, 0.03575492650270462, 0.03872102126479149, 0.010010650381445885, -0.018116485327482224, 0.01466452144086361, -0.006951739080250263, 0.0060424841940402985, 0.0019494417356327176, 0.005297802854329348, -0.009969894774258137, 0.045072805136442184, 0.011645269580185413, -0.009513899683952332, 0.01692097634077072, 0.000017249711163458414, 0.012719175778329372, -0.024061059579253197, 0.013980815187096596, 0.03489970043301582, 0.021807175129652023, -0.016566425561904907, -0.028322521597146988, 0.003819623962044716, 0.0221270639449358, -0.05935727432370186, -0.004013800527900457, -0.0037136119790375233, 0.01636616699397564, -0.03267983719706535, -0.034851111471652985, 0.04637407884001732, -0.026026595383882523, -0.02061762847006321, -0.012558243237435818, 0.023897798731923103, -0.013322064653038979, 0.0044333902187645435, -0.040119778364896774, -0.022857045754790306, -0.026415910571813583, -0.05005338415503502, -0.03329664468765259, -0.003948951605707407, -0.04072733595967293, 0.0577445887029171, 0.006029762327671051, 0.025863170623779297, 0.012127025052905083, -0.006674438714981079, 0.04532177001237869, 0.016862299293279648, 0.06720134615898132, 0.022328967228531837, 0.042548228055238724, -0.00154501770157367, 0.02106815204024315, -0.009489953517913818, 0.03783126920461655, 0.04093429818749428, -0.0075489841401577, -0.0074258348904550076 ]
apache-pinot-failed-to-generated-segment-input-path-does-not-exist
https://markhneedham.com/blog/2022/03/17/apache-pinot-failed-to-generated-segment-input-path-does-not-exist
false
2022-04-05 02:44:37
Apache Pinot: Lookup Join - 500 Error - Unsupported function: lookup with 4 parameters
[ "pinot" ]
[ "pinot" ]
I'm currently working on an Apache Pinot demo using data from https://docs.cryptowat.ch/rest-api/[Crypto Watch^], in which I was using the https://dev.startree.ai/docs/pinot/recipes/lookup-joins[lookup function^] and had a bug in my query that didn't return the clearest error message. In this blog post we'll have a look at the query and how to fix it. .Apache Pinot: Lookup Join - 500 Error - Unsupported function: lookup with 4 parameters image::{{<siteurl>}}/uploads/2022/04/lookup-unsupported-function-banner.png[] The query that I was writing was using the lookup function to return the name of the base asset in a transaction: [source, sql] ---- select currencyPairId, orderSide, sum(amount) AS totalAmount, lookUp('pairs', 'baseName', 'id', currencyPairId) AS baseName from trades group by currencyPairId, orderSide order by totalAmount DESC ---- When I ran this query, I got the following error: .Output [source, text] ---- ProcessingException(errorCode:150, message:PQLParsingError: org.apache.pinot.sql.parsers.SqlCompilationException: 'orderSide' should appear in GROUP BY clause. at org.apache.pinot.sql.parsers.CalciteSqlParser.validateGroupByClause(CalciteSqlParser.java:130) at org.apache.pinot.sql.parsers.CalciteSqlParser.validate(CalciteSqlParser.java:115) at org.apache.pinot.sql.parsers.CalciteSqlParser.queryRewrite(CalciteSqlParser.java:376) at org.apache.pinot.sql.parsers.CalciteSqlParser.compileCalciteSqlToPinotQuery(CalciteSqlParser.java:367)) ---- If we look in the broker's logs, we'll see the following output: [source, text] ---- pinot-broker-crypto | 2022/04/04 08:49:33.068 ERROR [PinotClientRequest] [jersey-server-managed-async-executor-15] Caught exception while processing POST request pinot-broker-crypto | java.lang.IllegalArgumentException: Unsupported function: lookup with 4 parameters pinot-broker-crypto | at shaded.com.google.common.base.Preconditions.checkArgument(Preconditions.java:359) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.core.query.postaggregation.PostAggregationFunction.<init>(PostAggregationFunction.java:42) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.core.query.reduce.PostAggregationHandler$PostAggregationValueExtractor.<init>(PostAggregationHandler.java:221) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.core.query.reduce.PostAggregationHandler.getValueExtractor(PostAggregationHandler.java:120) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.core.query.reduce.PostAggregationHandler.<init>(PostAggregationHandler.java:70) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.core.query.reduce.GroupByDataTableReducer.setSQLGroupByInResultTable(GroupByDataTableReducer.java:210) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.core.query.reduce.GroupByDataTableReducer.reduceAndSetResults(GroupByDataTableReducer.java:128) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.core.query.reduce.BrokerReduceService.reduceOnDataTable(BrokerReduceService.java:286) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.broker.requesthandler.SingleConnectionBrokerRequestHandler.processBrokerRequest(SingleConnectionBrokerRequestHandler.java:115) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.broker.requesthandler.BaseBrokerRequestHandler.handleSQLRequest(BaseBrokerRequestHandler.java:495) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.broker.requesthandler.BaseBrokerRequestHandler.handleRequest(BaseBrokerRequestHandler.java:197) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.broker.requesthandler.BaseBrokerRequestHandler.handleRequest(BaseBrokerRequestHandler.java:102) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.apache.pinot.broker.api.resources.PinotClientRequest.processSqlQueryPost(PinotClientRequest.java:191) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at jdk.internal.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) ~[?:?] pinot-broker-crypto | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] pinot-broker-crypto | at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] pinot-broker-crypto | at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:159) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.server.model.ResourceMethodInvoker.lambda$apply$0(ResourceMethodInvoker.java:381) ~[pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.server.ServerRuntime$AsyncResponder$2$1.run(ServerRuntime.java:819) [pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) [pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) [pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.internal.Errors.process(Errors.java:292) [pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.internal.Errors.process(Errors.java:274) [pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.internal.Errors.process(Errors.java:244) [pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) [pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at org.glassfish.jersey.server.ServerRuntime$AsyncResponder$2.run(ServerRuntime.java:814) [pinot-all-0.9.3-jar-with-dependencies.jar:0.9.3-e23f213cf0d16b1e9e086174d734a4db868542cb] pinot-broker-crypto | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] pinot-broker-crypto | at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] pinot-broker-crypto | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] pinot-broker-crypto | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] pinot-broker-crypto | at java.lang.Thread.run(Thread.java:829) [?:?] ---- This error suggests that the lookup function isn't recognised, which is misleading. I figured out the actual problem after passing an invalid first parameter to the `lookUp` function, as shown below: [source, sql] ---- select currencyPairId, orderSide, sum(amount) AS totalAmount, lookUp(pairs, 'baseName', 'id', currencyPairId) AS baseName from trades group by currencyPairId, orderSide order by totalAmount DESC ---- .Output [source, text] ---- ProcessingException(errorCode:150, message:PQLParsingError: org.apache.pinot.sql.parsers.SqlCompilationException: 'AS(LOOKUP(pairs, null, null, currencyPairId), baseName)' should appear in GROUP BY clause. at org.apache.pinot.sql.parsers.CalciteSqlParser.validateGroupByClause(CalciteSqlParser.java:130) at org.apache.pinot.sql.parsers.CalciteSqlParser.validate(CalciteSqlParser.java:115) at org.apache.pinot.sql.parsers.CalciteSqlParser.queryRewrite(CalciteSqlParser.java:376) at org.apache.pinot.sql.parsers.CalciteSqlParser.compileCalciteSqlToPinotQuery(CalciteSqlParser.java:367)) ---- The error message this time indicates that we need to include the lookup join field in the `GROUP BY` clause, which we've forgotten to do. If we update our original query to do that: [source, sql] ---- select currencyPairId, orderSide, sum(amount) AS totalAmount, lookUp('pairs', 'baseName', 'id', currencyPairId) AS baseName from trades group by currencyPairId, orderSide, baseName order by totalAmount DESC ---- The query now works as expected.
In this post we'll learn how to solve a problem when using Apache Pinot's lookup join function.
uploads/2022/04/lookup-unsupported-function-banner.png
[ -0.03797248750925064, 0.005166477523744106, -0.01476877648383379, 0.04715852439403534, 0.0694916769862175, 0.020043358206748962, 0.032587550580501556, 0.038586754351854324, 0.017957428470253944, -0.013599398545920849, -0.021469835191965103, -0.01073984894901514, -0.05019089952111244, 0.017465807497501373, -0.011082819662988186, 0.07774239033460617, 0.08224834501743317, 0.02858722396194935, 0.03824144974350929, -0.04282984137535095, 0.020134342834353447, 0.043249160051345825, 0.0021960074082016945, 0.03300761431455612, 0.028300227597355843, 0.02969467081129551, -0.022630369290709496, 0.028567178174853325, -0.06373285502195358, -0.039435453712940216, 0.039936404675245285, 0.030963901430368423, 0.011149081401526928, -0.026228509843349457, -0.019041171297430992, 0.026351170614361763, -0.007533126510679722, 0.020621221512556076, 0.005825565196573734, 0.022230098024010658, -0.07575808465480804, 0.02062227576971054, 0.011455133557319641, 0.04289397597312927, -0.02819463238120079, 0.03501521423459053, -0.05106837674975395, 0.004202735144644976, 0.0027335991617292166, 0.01309038233011961, -0.06411995738744736, 0.04395780712366104, -0.009781191125512123, 0.003975728526711464, 0.02426857128739357, 0.050825491547584534, -0.016326632350683212, -0.0799490213394165, 0.05123671889305115, -0.04343661665916443, 0.0038937334902584553, 0.015877332538366318, 0.01875867322087288, -0.02411164529621601, -0.006592653226107359, -0.02302294224500656, -0.0257387924939394, 0.041735775768756866, -0.050788916647434235, -0.026774682104587555, 0.02185206487774849, -0.03476473316550255, -0.0031552643049508333, -0.00249828421510756, 0.023505566641688347, -0.006156559567898512, -0.025117533281445503, 0.08815468102693558, -0.010371231473982334, 0.040888600051403046, -0.0033818769734352827, -0.012065245769917965, 0.012543394230306149, 0.02185502089560032, 0.014905046671628952, -0.037751540541648865, -0.03126729652285576, -0.044903144240379333, -0.01967974752187729, 0.06438487768173218, 0.004659893456846476, -0.04266474395990372, -0.0009562169434502721, 0.000007669800652365666, -0.03015025518834591, 0.026963725686073303, 0.007173770572990179, -0.028251733630895615, 0.015539814718067646, -0.011948555707931519, -0.049087535589933395, -0.01918799616396427, 0.03082479164004326, 0.06659086793661118, -0.053063999861478806, -0.01039554551243782, -0.04664077237248421, -0.016538091003894806, 0.024097496643662453, 0.010270086117088795, -0.04191327467560768, -0.001747645903378725, -0.019178038462996483, 0.005556335207074881, -0.048509128391742706, 0.10033002495765686, 0.03429897502064705, -0.042076319456100464, 0.0020583104342222214, 0.014638204127550125, 0.07668180018663406, 0.04246821999549866, -0.025576025247573853, 0.07856693118810654, 0.006094734184443951, 0.05589447170495987, 0.0006775703513994813, 0.029407376423478127, -0.015641717240214348, -0.05096709355711937, -0.027726169675588608, 0.025745205581188202, 0.008222904987633228, -0.007951533421874046, -0.0019239267567172647, -0.05742849037051201, -0.024825071915984154, -0.010524596087634563, 0.06168967857956886, 0.012405828572809696, -0.02990529127418995, -0.0066099511459469795, -0.002957073273137212, -0.021206339821219444, 0.057078152894973755, 0.04320942983031273, -0.010182159952819347, -0.037270430475473404, 0.003745714668184519, 0.027839595451951027, -0.002652401104569435, 0.016585757955908775, 0.04677907004952431, -0.023470580577850342, 0.028980689123272896, 0.08615770190954208, 0.023662135004997253, 0.014570679515600204, -0.011827824637293816, 0.014291712082922459, 0.029168561100959778, 0.015983883291482925, 0.01871003583073616, 0.029973896220326424, 0.010077311657369137, -0.015857959166169167, 0.009949586354196072, 0.06406558305025101, -0.03613520786166191, 0.019053827971220016, -0.0709649994969368, -0.062258847057819366, 0.052716340869665146, -0.06129755824804306, 0.009739880450069904, 0.0011903186095878482, 0.08697536587715149, 0.013267920352518559, 0.034164536744356155, 0.02555643953382969, -0.07376135885715485, 0.053776878863573074, 0.015529170632362366, -0.005105596501380205, 0.0005131594371050596, -0.007295345887541771, 0.07231016457080841, 0.036907460540533066, 0.036278609186410904, 0.01746409945189953, -0.07524973899126053, -0.06738889962434769, -0.01359314750880003, -0.01636640354990959, 0.056747835129499435, -0.01476675271987915, 0.018083734437823296, 0.05774296820163727, 0.02535293623805046, -0.004305783659219742, -0.005090559367090464, 0.07240457087755203, 0.02081175521016121, -0.06508250534534454, -0.051999643445014954, 0.037635788321495056, 0.05170309171080589, -0.032771676778793335, -0.03243931755423546, 0.028100918978452682, -0.015043833293020725, 0.003669626545161009, 0.020690685138106346, 0.004614220466464758, 0.05861198157072067, 0.02424352988600731, 0.025765905156731606, -0.017567228525877, 0.04765532538294792, -0.04220116510987282, 0.05013096705079079, 0.019502034410834312, -0.00933906715363264, -0.007218072656542063, -0.01620534434914589, 0.13013558089733124, 0.06489873677492142, 0.006399707868695259, -0.052896738052368164, 0.0561416856944561, 0.0017820487264543772, -0.06286698579788208, 0.030654579401016235, -0.039735399186611176, 0.014240318909287453, -0.01625770516693592, -0.043047890067100525, -0.01521949004381895, 0.021954277530312538, 0.008606627583503723, 0.012358343228697777, 0.06473079323768616, -0.0364299975335598, 0.04796720668673515, 0.011768748983740807, -0.021750355139374733, -0.011716981418430805, -0.03085116110742092, -0.04500998929142952, -0.002030469011515379, -0.01546027697622776, -0.0052261860109865665, 0.037210460752248764, -0.025264376774430275, -0.04505856707692146, -0.03501084819436073, -0.06356976926326752, 0.02294238843023777, 0.04725370556116104, 0.055042821913957596, -0.014569466933608055, 0.04534108191728592, -0.020921533927321434, 0.008142323233187199, -0.022090572863817215, -0.03738206624984741, -0.025443419814109802, 0.010647561401128769, 0.011037570424377918, 0.04769672825932503, 0.05888105556368828, 0.0015058193821460009, -0.015427200123667717, 0.003782705869525671, 0.014871426858007908, -0.01187495980411768, 0.009004715830087662, 0.018848136067390442, -0.018612613901495934, -0.018611490726470947, -0.012608897872269154, 0.04511736333370209, -0.05377824604511261, -0.022638434544205666, 0.0014714329736307263, -0.030233433470129967, 0.04510115087032318, -0.05615215003490448, -0.04199676588177681, 0.0024286452680826187, 0.049603335559368134, 0.015334535390138626, 0.0024786691647022963, -0.015371653251349926, 0.07775496691465378, -0.004500257782638073, -0.011204598471522331, 0.02091340720653534, -0.0026249163784086704, 0.04890841618180275, -0.016648346558213234, 0.033416371792554855, 0.05449223518371582, 0.0008837408386170864, 0.011356092058122158, 0.005699753295630217, -0.006288120523095131, -0.027608048170804977, -0.27234983444213867, 0.0328257717192173, -0.02827153354883194, -0.011016151867806911, 0.021783525124192238, -0.030271900817751884, 0.004430207423865795, -0.017176158726215363, -0.009647630155086517, -0.0013678332325071096, 0.011614987626671791, -0.01106505561619997, -0.01627231389284134, 0.01652519591152668, -0.03244328498840332, 0.010493149049580097, -0.009225715883076191, -0.062130849808454514, 0.011803939007222652, 0.027097590267658234, 0.018117040395736694, -0.045003145933151245, 0.010955152101814747, 0.03511280193924904, 0.028340013697743416, 0.04055451229214668, -0.06738921999931335, 0.05047350004315376, -0.019030321389436722, -0.04125404730439186, 0.02829783409833908, -0.0193959828466177, -0.0019610251765698195, 0.009957324713468552, -0.004842956084758043, -0.010541856288909912, -0.008853324688971043, 0.0138250682502985, 0.02162138745188713, 0.014374732039868832, -0.05268065631389618, -0.07076912373304367, -0.0002155016700271517, 0.017903735861182213, 0.07636966556310654, -0.012995044700801373, -0.08119285851716995, 0.014273717999458313, -0.03583887964487076, 0.051551997661590576, -0.028975065797567368, -0.06997896730899811, -0.002187614794820547, -0.0004086359986104071, -0.021112198010087013, 0.011958422139286995, -0.01690543442964554, -0.009273250587284565, -0.04714135080575943, 0.0033922793809324503, 0.018742667511105537, -0.038252752274274826, 0.016627728939056396, -0.04130462929606438, -0.04243627190589905, -0.06682735681533813, -0.045473240315914154, 0.01272007916122675, 0.07943274825811386, 0.0283042062073946, -0.0054765380918979645, 0.02606130950152874, -0.007884116843342781, -0.1124541237950325, -0.03587518632411957, -0.05354415997862816, -0.0012333114864304662, -0.01537800021469593, -0.04843789339065552, 0.03154497593641281, -0.01364173274487257, -0.017606262117624283, 0.025081817060709, 0.011592800728976727, 0.03552970290184021, -0.005582976154983044, -0.017183078452944756, -0.03150215372443199, -0.02965398319065571, -0.0029574078507721424, 0.056390661746263504, -0.04885423555970192, -0.016525691375136375, -0.033160820603370667, -0.02675185352563858, 0.04982733726501465, 0.027441324666142464, -0.0008788679842837155, -0.015035735443234444, 0.047335729002952576, 0.0028051994740962982, -0.03743799030780792, 0.0344996377825737, -0.05869409069418907, -0.001437467522919178, -0.009859484620392323, -0.03043987788259983, 0.04350448399782181, -0.0020620054565370083, 0.03901379927992821, -0.0017375496681779623, -0.042170844972133636, 0.0064993491396307945, -0.047384511679410934, -0.04402613267302513, -0.03249314799904823, 0.011456361971795559, 0.016842560842633247, 0.03630043938755989, -0.033940088003873825, -0.024033501744270325, 0.009096955880522728, 0.027136795222759247, -0.03925585374236107, -0.025763336569070816, -0.038771674036979675, -0.00383141846396029, -0.004023397341370583, -0.006408947519958019, -0.006250245496630669, -0.03609359636902809, 0.03072512522339821, 0.025885287672281265, 0.013156801462173462, 0.02802969701588154, -0.027956698089838028, -0.021082671359181404, -0.019830090925097466, 0.022412801161408424, 0.0011011267779394984, 0.04081457108259201, -0.01126693282276392, -0.021292319521307945, 0.03101552277803421, 0.04589207470417023, -0.0036899077240377665, 0.01014687493443489, -0.015246501192450523, 0.010906546376645565, 0.02926858887076378, -0.012790829874575138, 0.0028039435856044292, 0.035230398178100586, -0.040828362107276917, -0.03710334748029709, -0.012087077833712101, 0.031888507306575775, -0.010351886041462421, -0.038394905626773834, -0.031012479215860367, 0.02707696706056595, -0.04799497872591019, -0.024509266018867493, -0.021358424797654152, -0.028097225353121758, 0.04262317717075348, 0.0030176006257534027, 0.02182014100253582, -0.02967764623463154, 0.014237861149013042, -0.005614824127405882, 0.025300979614257812, -0.0005937900277785957, 0.02838118001818657, -0.0054039862006902695, -0.012684484012424946, 0.020443832501769066, 0.00881135556846857, 0.005599267315119505, -0.02226610854268074, -0.00046170875430107117, -0.013647154904901981, 0.03592624515295029, 0.01236893329769373, 0.034674495458602905, 0.025154588744044304, -0.023082232102751732, 0.017986785620450974, -0.0012957752915099263, -0.029443610459566116, -0.040233075618743896, 0.009944049641489983, -0.02334708720445633, 0.0035226079635322094, -0.022180689498782158, -0.09515082091093063, 0.02664557844400406, 0.04514576122164726, -0.014224513433873653, 0.016678480431437492, 0.018425187095999718, -0.008150494657456875, -0.06282490491867065, 0.03269881755113602, 0.08386100083589554, -0.05854741483926773, 0.02652263455092907, -0.0002509081386961043, -0.022346146404743195, 0.015599125996232033, 0.012976668775081635, -0.049490395933389664, -0.015232142992317677, -0.03797287493944168, 0.0164105873554945, -0.017415836453437805, -0.030688373371958733, 0.006985380779951811, 0.004269514232873917, -0.002388959052041173, 0.020413003861904144, -0.012352078221738338, 0.015119748190045357, -0.007696425076574087, -0.030143866315484047, 0.036632515490055084, 0.005212825257331133, 0.009854242205619812, 0.021626409143209457, -0.009257997386157513, 0.04538499563932419, -0.049152012914419174, 0.0008682437473908067, -0.0002872014883905649, 0.005042888689786196, -0.004302211105823517, -0.0648057609796524, -0.004434195347130299, -0.024886982515454292, 0.08107995986938477, -0.04009317606687546, -0.0007807305664755404, 0.0002401318633928895, 0.008833351545035839, -0.0517774261534214, 0.011323397979140282, 0.019952263683080673, -0.02019008994102478, 0.060834888368844986, 0.05575551837682724, 0.0024297793861478567, 0.043430257588624954, 0.0029194033704698086, -0.004984991624951363, 0.030748045071959496, -0.015927502885460854, -0.03103701025247574, -0.0065125697292387486, -0.08074396848678589, 0.03990240395069122, 0.0020320804324001074, 0.012079326435923576, -0.06090598180890083, 0.04905611276626587, 0.03396909311413765, 0.007635792251676321, 0.030883081257343292, -0.02152000367641449, 0.04573206230998039, -0.01713757961988449, -0.034386176615953445, -0.10490953177213669, -0.015938712283968925, 0.04145512357354164, -0.026359090581536293, -0.030040549114346504, -0.01937948539853096, -0.0503874272108078, 0.016219737008213997, -0.046292681246995926, -0.037097565829753876, 0.053187936544418335, -0.0012968897353857756, 0.01737299934029579, 0.004560553003102541, -0.02877245657145977, -0.007937795482575893, 0.03371191397309303, -0.04599938541650772, -0.04125518351793289, -0.044850703328847885, 0.07806906849145889, 0.02602570690214634, 0.017124440521001816, -0.002077477751299739, -0.021658936515450478, 0.05712039768695831, 0.018433216959238052, 0.02146763727068901, 0.08319665491580963, -0.014108894392848015, 0.049202293157577515, 0.049564022570848465, 0.026739200577139854, 0.029221508651971817, 0.009230251424014568, -0.04078353941440582, -0.06394746899604797, 0.0384228378534317, -0.011792117729783058, -0.004637889098376036, -0.05493549630045891, 0.059273626655340195, -0.00292964861728251, -0.03252190724015236, -0.04880962893366814, -0.028238629922270775, -0.02599569782614708, -0.03706655651330948, -0.02348628081381321, 0.020728200674057007, -0.03923659399151802, 0.051896609365940094, -0.01723918505012989, 0.01576796919107437, 0.06475308537483215, 0.03532949835062027, -0.00017402070807293057, 0.017348764464259148, 0.05102262273430824, 0.058472611010074615, 0.01542248111218214, 0.018871936947107315, 0.022348200902342796, -0.0403544045984745, -0.041777241975069046, -0.02535603567957878, -0.0590999536216259, -0.031283941119909286, -0.00398727972060442, -0.004484953824430704, 0.042802680283784866, -0.030371718108654022, 0.06971586495637894, 0.0014750618720427155, 0.008494856767356396, 0.005542207509279251, -0.013116358779370785, 0.043357282876968384, 0.05967027321457863, -0.02675173617899418, 0.04400237649679184, -0.014980708248913288, -0.02959093078970909, -0.01887054182589054, 0.007691738195717335, -0.03884938359260559, 0.019351061433553696, -0.012602144852280617, 0.016658475622534752, 0.016108831390738487, 0.018098413944244385, 0.07464423030614853, -0.016081828624010086, -0.01830204762518406, 0.011386486701667309, 0.016480859369039536, 0.012240348383784294, -0.012926739640533924, -0.02058381773531437, -0.03662686422467232, -0.02121754176914692, -0.033472005277872086, 0.013436705805361271, -0.01472303457558155, -0.04262838885188103, 0.03453003242611885, -0.03645273670554161, 0.010107441805303097, 0.04653275012969971, -0.011148474179208279, -0.06469986587762833, -0.06956584751605988, -0.043089210987091064, -0.04414398595690727, -0.062203358858823776, -0.017735667526721954, 0.014145394787192345, -0.0024453632067888975, -0.04435301199555397, -0.00749698793515563, -0.010346349328756332, -0.0006223227828741074, 0.0002576288825366646, -0.04623735323548317, -0.03121590055525303, 0.04544026032090187, 0.033933453261852264, 0.01677139662206173, 0.01935592107474804, 0.041692961007356644, -0.015672942623496056, 0.023938363417983055, -0.027022486552596092, -0.006435327231884003, 0.03698037937283516, 0.010340983048081398, 0.013208232820034027, -0.0762653797864914, -0.0037092927377671003, 0.016284769400954247, 0.025281887501478195, -0.07565394043922424, 0.01783403940498829, 0.026456043124198914, -0.051653146743774414, 0.049777623265981674, -0.012519678100943565, 0.024378065019845963, -0.03949863463640213, -0.03801295533776283, -0.0037822455633431673, 0.020970283076167107, 0.03591235727071762, -0.0313284806907177, 0.06858580559492111, 0.02875116467475891, -0.03134481981396675, -0.028903665021061897, 0.004117797594517469, -0.007653259206563234, -0.015619073994457722, -0.03983404114842415, -0.011973907239735126, -0.03191095218062401, -0.05999349430203438, -0.021139606833457947, 0.011831147596240044, -0.056352339684963226, -0.03298565000295639, -0.010446564294397831, 0.035049863159656525, -0.0203001257032156, -0.009531227871775627, -0.04917159304022789, 0.027761496603488922, -0.0028142803348600864, -0.05903255194425583, -0.005942997522652149, 0.009343239478766918, 0.01973237842321396, -0.01532302238047123, 0.004095739219337702, -0.05171315371990204, 0.01411140151321888, -0.02902102842926979, 0.05203111097216606, 0.033186327666044235, -0.015819309279322624, -0.03576739504933357 ]
[ -0.061883360147476196, -0.04301346465945244, -0.051701899617910385, -0.01279018260538578, 0.026885144412517548, -0.08952318131923676, -0.001089234370738268, 0.00777714978903532, -0.0009386390447616577, -0.024276448413729668, 0.05468327924609184, -0.06549518555402756, 0.027050264179706573, 0.00524668674916029, 0.05543992668390274, -0.015596779994666576, -0.021655244752764702, -0.03083990328013897, -0.022033823654055595, 0.041011832654476166, 0.028471270576119423, -0.015981607139110565, -0.04239755496382713, -0.035359710454940796, 0.02796594426035881, 0.0556878037750721, 0.007775935344398022, -0.023423556238412857, -0.048137322068214417, -0.20897087454795837, 0.006680249702185392, -0.028309958055615425, 0.010405928827822208, -0.011850391514599323, 0.025638561695814133, 0.046068985015153885, 0.02905612625181675, 0.0009259851067326963, 0.034819889813661575, 0.029862314462661743, -0.004520712420344353, 0.013594728894531727, -0.052622903138399124, -0.009639132767915726, 0.026114797219634056, -0.03513546660542488, -0.02276846580207348, 0.005707071628421545, 0.02399444580078125, 0.01954454556107521, -0.03824283182621002, 0.02268650196492672, 0.0077597578056156635, 0.006118684075772762, 0.051766473799943924, 0.06593408435583115, 0.04067740961909294, 0.0363597571849823, 0.03970916569232941, 0.023434387519955635, 0.02113756723701954, -0.0010411734692752361, -0.14412423968315125, 0.10230953246355057, -0.012732299044728279, 0.03856627270579338, 0.013256862759590149, 0.024072574451565742, -0.0328071191906929, 0.017714103683829308, 0.062324170023202896, -0.018164094537496567, -0.05203680694103241, 0.06026647239923477, 0.017770705744624138, -0.028728125616908073, -0.018276141956448555, -0.0033346342388540506, -0.008213222958147526, -0.006160837132483721, -0.06661348044872284, 0.004326395690441132, -0.01468918938189745, -0.021852420642971992, -0.026958003640174866, 0.009672810323536396, 0.01673678308725357, 0.06420719623565674, 0.0435926727950573, 0.003016107250005007, 0.03504500910639763, -0.013503714464604855, 0.014357930980622768, 0.013939818367362022, -0.06420750916004181, 0.03749427571892738, 0.0032160317059606314, 0.02162320725619793, -0.03633664920926094, 0.36375460028648376, 0.01260373741388321, 0.024913053959608078, -0.005257981829345226, -0.014139719307422638, -0.005631461273878813, 0.009025760926306248, -0.05839678272604942, -0.0052609010599553585, 0.04815521463751793, -0.03881785646080971, -0.005821298807859421, -0.02689606323838234, 0.10096141695976257, -0.0318819023668766, -0.03353339806199074, 0.030195051804184914, 0.0036961163859814405, -0.03004358895123005, -0.03138620778918266, 0.02824464626610279, 0.004436660557985306, -0.009005174040794373, 0.02295881137251854, 0.051001280546188354, -0.021921994164586067, 0.008696075528860092, 0.03115525096654892, 0.06918740272521973, 0.04890009015798569, 0.02745121531188488, 0.05616803467273712, -0.046156641095876694, -0.08272064477205276, -0.03801310062408447, 0.007510428782552481, 0.030788971111178398, 0.02787747234106064, 0.008315268903970718, 0.028820378705859184, -0.0022978074848651886, -0.047403622418642044, -0.07239820808172226, 0.02874857373535633, -0.0008840497466735542, -0.03795265406370163, 0.12276399880647659, -0.0010291823418810964, -0.0272428747266531, -0.016288328915834427, -0.049352359026670456, -0.0585220567882061, -0.002153522102162242, -0.002972374204546213, -0.05916330963373184, -0.04888267070055008, 0.031206531450152397, 0.05096115544438362, -0.007831382565200329, -0.04767194017767906, -0.020127398893237114, -0.009784451685845852, -0.04494279623031616, -0.054812848567962646, 0.03905274346470833, 0.03407970815896988, -0.12456462532281876, -0.029193252325057983, 0.009352194145321846, -0.035424813628196716, -0.04752684757113457, -0.00867314264178276, 0.01735788583755493, -0.05390232801437378, -0.003460494801402092, 0.0486176423728466, -0.03338518366217613, 0.021743187680840492, -0.010656827129423618, 0.004135774914175272, 0.02694430947303772, -0.014858507551252842, -0.017349475994706154, -0.05817550793290138, -0.016173968091607094, -0.025103101506829262, -0.0731038823723793, -0.06388483196496964, 0.017884034663438797, 0.01431124098598957, -0.007170680910348892, -0.040005795657634735, -0.04800334945321083, -0.09914463013410568, 0.08227775990962982, -0.006906030233949423, -0.038173116743564606, -0.020532973110675812, -0.006033599376678467, -0.0031224607955664396, -0.0408758781850338, 0.07121999561786652, 0.049954161047935486, 0.00005337533002602868, 0.00934518314898014, -0.06778144091367722, 0.04853679612278938, 0.04478983208537102, -0.023348765447735786, 0.0014063052367419004, 0.03789776563644409, -0.022384801879525185, 0.0391991063952446, -0.03909364342689514, 0.04313015192747116, 0.0014928003074601293, -0.028242865577340126, 0.005089443642646074, -0.003868441330268979, 0.025347452610731125, 0.04221973940730095, -0.03742998093366623, -0.006127007771283388, 0.0032500270754098892, -0.38125112652778625, -0.048496637493371964, -0.042984697967767715, -0.006084378343075514, -0.022913159802556038, -0.04769046977162361, 0.026250047609210014, -0.018798962235450745, -0.018573975190520287, 0.0674743801355362, 0.08517809957265854, 0.022950243204832077, 0.0061500826850533485, -0.04515409469604492, -0.002321530831977725, 0.02169211022555828, -0.046448539942502975, -0.020493194460868835, -0.02006351761519909, 0.011531109921634197, -0.0015160217881202698, -0.013759360648691654, -0.01104408223181963, -0.06968286633491516, 0.009680884890258312, 0.022541340440511703, 0.1246802881360054, 0.019520806148648262, -0.03867468610405922, -0.0721941813826561, 0.04734722524881363, 0.028556834906339645, -0.006324092857539654, -0.04711339622735977, 0.02916145883500576, -0.03035680018365383, 0.003799018682911992, 0.02669590897858143, -0.008595038205385208, -0.0040530432015657425, -0.06552525609731674, 0.033125750720500946, -0.022295227274298668, -0.043816421180963516, 0.02377220429480076, -0.006582285743206739, -0.025512516498565674, 0.0016590955201536417, 0.017104212194681168, 0.09883566200733185, 0.03800339251756668, 0.02177681215107441, 0.03323045000433922, 0.04524598643183708, 0.04098419472575188, -0.012057340703904629, -0.0247624684125185, -0.04018919914960861, 0.018000349402427673, -0.0031581863295286894, 0.05629220977425575, 0.04373953491449356, 0.04432858154177666, -0.022058645263314247, 0.027252212166786194, -0.019082020968198776, -0.014159190468490124, -0.029913542792201042, 0.07682972401380539, -0.015302510000765324, -0.036622174084186554, 0.0859161764383316, 0.005992812104523182, 0.028072752058506012, -0.008349727839231491, 0.06481794267892838, -0.006002689711749554, -0.022190025076270103, 0.041297316551208496, -0.0052427989430725574, 0.06251097470521927, -0.019091499969363213, 0.06376416236162186, -0.04070192202925682, -0.03352084010839462, 0.0901988074183464, 0.020048482343554497, 0.015513285994529724, 0.07227567583322525, -0.010253075510263443, -0.05370981618762016, 0.0015592955751344562, -0.07292918860912323, -0.014456440694630146, 0.06374663859605789, 0.010528734885156155, -0.2789960503578186, 0.05171148106455803, 0.022403884679079056, 0.04365864023566246, 0.012051060795783997, 0.030036862939596176, 0.05655650049448013, -0.06722327321767807, -0.030327947810292244, -0.0170914214104414, 0.022727709263563156, 0.03654477745294571, 0.02876911498606205, -0.014850054867565632, 0.005739536136388779, -0.011783002875745296, -0.013296096585690975, 0.008790277875959873, 0.025609953328967094, -0.0002241349866380915, 0.020578961819410324, 0.020687727257609367, 0.1883346438407898, 0.04566340893507004, -0.0032870788127183914, 0.050095271319150925, -0.012034264393150806, -0.002462217817083001, 0.06136837974190712, 0.01813574880361557, -0.00699161272495985, -0.005435716360807419, 0.08285027742385864, -0.036622561514377594, 0.02350626140832901, -0.011972562409937382, 0.010644691064953804, 0.008423015475273132, 0.011128834448754787, -0.036622561514377594, -0.04516231641173363, 0.02549120783805847, -0.041706979274749756, 0.03900890052318573, 0.07695133239030838, 0.0007236405508592725, 0.001984679140150547, -0.027915123850107193, -0.0015475311083719134, 0.01563705876469612, -0.03284795582294464, -0.01894661970436573, -0.02941812388598919, -0.009485642425715923, -0.010319068096578121, 0.04382922872900963, 0.007660020608454943, -0.014432493597269058, -0.011708607897162437, 0.0196819044649601, -0.016621924936771393, -0.04087985306978226, 0.050214361399412155, 0.0075837853364646435, -0.02010370045900345 ]
[ 0.006703194230794907, 0.03478386253118515, -0.04010188207030296, 0.015124727040529251, 0.009252553805708885, -0.021604331210255623, -0.01383358146995306, -0.014525492675602436, -0.002714945003390312, -0.02009560726583004, -0.004615692421793938, 0.028873510658740997, 0.012842639349400997, -0.02079826407134533, -0.01599128544330597, -0.04208249971270561, 0.00040774725493974984, -0.0028226410504430532, -0.003962117712944746, 0.0240095853805542, -0.01049997191876173, -0.04503823444247246, 0.04569676145911217, -0.009725859388709068, -0.0062358444556593895, -0.011599778197705746, -0.018840838223695755, 0.006371140014380217, -0.00009883976599667221, -0.12029669433832169, 0.004705449566245079, -0.011784698814153671, 0.005001366138458252, -0.012618313543498516, -0.004278944805264473, 0.025119062513113022, 0.016243908554315567, -0.024488437920808792, -0.009765350259840488, -0.03325551003217697, -0.001449054921977222, -0.03925088420510292, -0.02931945212185383, 0.00982872024178505, -0.014698611572384834, -0.02348802611231804, -0.01332598365843296, 0.01815761812031269, -0.00117462535854429, 0.007338706869632006, -0.011955006048083305, -0.0016704058507457376, -0.0038386157248169184, 0.02388204075396061, -0.01692691072821617, 0.04403283819556236, -0.04981767013669014, -0.00368584506213665, 0.004628026392310858, -0.013080614618957043, 0.05356926843523979, 0.03483496606349945, 0.010578665882349014, -0.024573665112257004, 0.03947989642620087, -0.008976654149591923, 0.0015792946796864271, 0.018818922340869904, 0.0017723410855978727, -0.010294629260897636, 0.0028780896682292223, -0.01292651891708374, -0.03355035185813904, -0.034760914742946625, -0.04170738160610199, 0.016051609069108963, 0.01655501313507557, -0.0228822473436594, 0.015746843069791794, -0.04143885150551796, -0.0554683655500412, -0.018817905336618423, -0.04746071621775627, 0.010896326042711735, 0.014669930562376976, 0.020917339250445366, -0.001200795522890985, 0.04769616574048996, 0.010321042500436306, -0.027766497805714607, -0.006306113209575415, 0.01069299690425396, 0.004993358161300421, 0.012964921072125435, -0.06194446608424187, 0.011374113149940968, 0.010475712828338146, -0.02124469168484211, -0.04460350051522255, 0.8040383458137512, 0.028271228075027466, 0.03281448408961296, 0.05495564639568329, -0.023600002750754356, 0.015527550131082535, 0.029007548466324806, -0.023585405200719833, 0.03228290379047394, 0.024476081132888794, -0.028761809691786766, 0.005001337267458439, 0.03012431599199772, 0.010624093003571033, 0.02568899281322956, 0.001189929200336337, 0.05226624011993408, -0.04175831750035286, -0.006414140574634075, 0.007486969232559204, 0.04549533128738403, 0.04959484934806824, 0.03755977004766464, -0.007259201258420944, 0.006845597177743912, 0.011532604694366455, -0.19609136879444122, -0.009822476655244827, -6.266655893149619e-33, 0.06761977076530457, -0.013484876602888107, 0.013991430401802063, -0.02444038912653923, 0.019531244412064552, -0.003930755890905857, -0.013160270638763905, -0.010149471461772919, -0.04563898220658302, -0.004523458890616894, 0.04110848158597946, -0.007537530735135078, 0.032563842833042145, -0.03472517058253288, 0.05539703369140625, -0.01200664509087801, 0.005930671934038401, 0.05644958093762398, 0.036525897681713104, -0.0003650140424724668, -0.005612797569483519, 0.013124045915901661, 0.008463113568723202, -0.0013229746837168932, 0.0005547396140173078, 0.06956338882446289, 0.0003435988328419626, 0.008138378150761127, -0.007438480854034424, -0.033543433994054794, -0.008831741288304329, -0.0024648334365338087, 0.008495604619383812, -0.041271355003118515, 0.014368148520588875, -0.04811133071780205, 0.012364860624074936, -0.002010543132200837, -0.06793362647294998, -0.05415487661957741, 0.005745495203882456, 0.008601657114923, -0.019502978771924973, 0.021675586700439453, -0.019966494292020798, -0.01083896029740572, -0.0002956181997433305, -0.005194684024900198, 0.003932091873139143, 0.03861645236611366, -0.02014356292784214, -0.045134879648685455, 0.01909043826162815, -0.014979221858084202, -0.03725571930408478, -0.03566717728972435, -0.016377069056034088, 0.021927936002612114, -0.04311579093337059, -0.04884124919772148, -0.04049306362867355, -0.03765900433063507, -0.04229842126369476, 0.05571499466896057, -0.022670309990644455, 0.02735496684908867, 0.032383132725954056, -0.017413800582289696, -0.05182885378599167, 0.012976676225662231, -0.06496333330869675, 0.0066682700999081135, -0.011727215722203255, 0.011233254335820675, 0.01827908121049404, -0.037693895399570465, -0.0019071487477049232, 0.017088305205106735, 0.024069061502814293, 0.03251851350069046, 0.02815963141620159, -0.002264578826725483, 0.019903341308236122, -0.01964232698082924, -0.04540284723043442, 0.030484892427921295, 0.003937950357794762, 0.006125701125711203, 0.004495583474636078, 0.007903520949184895, 0.03532741963863373, 0.06634198874235153, 0.06214660778641701, -0.02830110862851143, -0.004539267159998417, 6.0450436166089395e-33, -0.0448516346514225, -0.027791228145360947, 0.010113464668393135, 0.015617212280631065, 0.03374408185482025, -0.013418438844382763, 0.010717240162193775, -0.0028857202269136906, 0.012256896123290062, 0.004178664647042751, -0.03919553756713867, -0.040142521262168884, 0.017731089144945145, 0.013844532892107964, 0.08196964859962463, 0.038991257548332214, 0.041590407490730286, 0.02410416677594185, 0.06032227724790573, 0.005692025180906057, 0.018818391487002373, -0.0031018375884741545, 0.0075137801468372345, -0.009400999173521996, 0.045031480491161346, 0.04331500828266144, -0.033539291471242905, 0.0006673748139292002, -0.0028721012640744448, -0.02010173723101616, 0.03173019737005234, -0.027623778209090233, -0.008776579983532429, 0.005138333421200514, -0.03994603455066681, 0.010065831243991852, -0.030093839392066002, -0.026325084269046783, 0.02517091855406761, 0.008976255543529987, 0.005389775149524212, -0.022609764710068703, 0.026488959789276123, 0.04349919781088829, -0.004161980003118515, -0.08359017968177795, 0.005950524937361479, 0.011640733107924461, -0.014554223977029324, 0.03825196251273155, 0.0024310643784701824, 0.00010621140245348215, -0.013525507412850857, 0.0006320878746919334, 0.032290972769260406, -0.01363143976777792, 0.007315091788768768, 0.04063872620463371, -0.03915074095129967, -0.03333991765975952, -0.020720690488815308, 0.04180037975311279, 0.007622830104082823, 0.054145779460668564, -0.01953495852649212, 0.013911529444158077, -0.030752776190638542, -0.01252385787665844, -0.02261953055858612, -0.018210075795650482, -0.013265707530081272, -0.047823451459407806, 0.00023144090664573014, 0.05744921788573265, 0.032317548990249634, 0.002140577882528305, -0.014850296080112457, -0.0256152655929327, 0.007227679714560509, -0.010996838100254536, -0.0006418899865821004, 0.03400241583585739, 0.022346919402480125, -0.004431518260389566, 0.03814676031470299, 0.008177881129086018, -0.02149483934044838, 0.02019757591187954, -0.005284175742417574, -0.013005043379962444, 0.012173662893474102, -0.06778782606124878, 0.005988631397485733, 0.023895664140582085, 0.035742104053497314, -1.2034502283597703e-8, -0.00832195021212101, 0.02597203105688095, -0.045750975608825684, -0.032984230667352676, 0.07635335624217987, 0.02532009594142437, -0.00849698856472969, 0.019458219408988953, -0.023825109004974365, -0.005191219504922628, 0.02385653741657734, -0.00769556500017643, 0.01039054337888956, -0.007754651829600334, 0.02108662761747837, -0.07314809411764145, -0.0072296494618058205, -0.023431284353137016, 0.0009506104397587478, -0.020937679335474968, -0.003400523914024234, 0.021942317485809326, 0.0025260900147259235, -0.05050506070256233, -0.03060895949602127, 0.0216983575373888, 0.05751849710941315, -0.04738999530673027, 0.020413808524608612, -0.005972542334347963, -0.005669170990586281, -0.008720017969608307, -0.0028458312153816223, -0.0045495666563510895, -0.022537240758538246, 0.0171605683863163, 0.004657066892832518, 0.02724173665046692, 0.005104672629386187, 0.06831978261470795, -0.012194854207336903, -0.014521144330501556, -0.00895572081208229, -0.029153555631637573, -0.013906454667448997, -0.03141763433814049, -0.023351090028882027, -0.00044394590076990426, 0.021863387897610664, -0.026378164067864418, -0.01753879524767399, -0.03331631422042847, 0.0010009459219872952, -0.032713234424591064, 0.007493122480809689, 0.033321183174848557, 0.029273223131895065, -0.036205049604177475, 0.0399535670876503, -0.03319048881530762, 0.06658701598644257, -0.013904412277042866, -0.021445846185088158, -0.02421998232603073 ]
apache-pinot-lookup-join-internal-error-unsupported-function
https://markhneedham.com/blog/2022/04/05/apache-pinot-lookup-join-internal-error-unsupported-function
false
2022-04-08 02:44:37
Apache Pinot: Speeding up queries with IdSets
[ "pinot" ]
[ "pinot" ]
As I continue to build an Apache Pinot demo using https://docs.cryptowat.ch/rest-api/[CryptoWatch^] data, I found myself needing to optimise some queries so that the real-time dashboard would render more quickly. I did this using https://docs.pinot.apache.org/users/user-guide-query/filtering-with-idset[IdSets^] and in this blog post we'll learn about those and how to use them. .Apache Pinot: Speeding up queries with IdSets image::{{<siteurl>}}/uploads/2022/04/id-set-banner.png[] == Pinot Schema For the purpose of this blog post we don't need to know how to configure the Pinot schema and tables, but we do need to know that we're working with `trades` and `pairs` tables, whose schemas are shown below: .trades and pairs schemas image::{{<siteurl>}}/uploads/2022/04/trades-pairs.png[] * `trades` is a real-time table that streams data in from a CryptoWatch live stream via a Kafka topic. * `pairs` is a offline dimension table that contains look up data of the available currency pairs used by CryptoWatch `pairs` has `id` as its primary key and we'll be using Pinot's https://dev.startree.ai/docs/pinot/recipes/lookup-joins[lookup join functionality^] to return the human friendly quotes and bases referred to by the `currencyPairId`. ## Querying pairs From our dashboard we want to return the trades for a give base and quote. A base is the asset being purchased and a quote is that asset used to buy it. So to find all the matching rows for buying Bitcoin with US Dollars, we'd write the following query: [source, sql] ---- select count(*) FROM pairs WHERE baseName = 'Bitcoin' AND quoteName = 'United States Dollar' ---- .Results [options="header"] |=== |count(*) |286 |=== From the output we learn that there are 286 different currency pairs representing the purchase of Bitcoin using US Dollars. ## Lookup join of pairs and trades Now let's say we want to find all the trades of Bitcoin using US Dollars. We might write the following query: [source, sql] ---- select avg(price) AS avgPrice, max(price) as maxPrice, min(price) AS minPrice, count(*) AS count, sum(amount) AS amountTraded from trades WHERE lookUp('pairs', 'baseName', 'id', currencyPairId) = 'Bitcoin' AND lookUp('pairs', 'quoteName', 'id', currencyPairId) = 'United States Dollar' ---- If we run this query and look at the query stats for this query, we see the following: .Query Stats [source, json] ---- { "numServersQueried": 1, "numServersResponded": 1, "numSegmentsQueried": 37, "numSegmentsProcessed": 37, "numSegmentsMatched": 37, "numConsumingSegmentsQueried": 1, "numDocsScanned": 310757, "numEntriesScannedInFilter": 32212707, "numEntriesScannedPostFilter": 621514, "numGroupsLimitReached": false, "totalDocs": 16155043, "timeUsedMs": 440 } ---- I ran this query a few times and it takes between 380ms - 700ms each time. It's not an ideal query because we're having to call the `lookUp` function twice per row to check whether it matches the base and quote name. Another approach to finding the matching trades would be to first query the `pairs` table, get all the matching ids, and then use those ids as part of a `WHERE currencyPairId IN ()` clause in a query against the `trades` table. It does seem a bit clunky though. == Querying with IdSets Enter the https://docs.pinot.apache.org/users/user-guide-query/filtering-with-idset[IdSet^]! IdSets are compressed representations of a set of values. For ints Pinot uses a RoaringBitmap, for longs a Roaring64NavigableMap, and for other types a Bloom Filter. The simplest way to generate an IdSet is to use the `ID_SET` function, as shown below: [source, sql] ---- SELECT ID_SET(id) FROM pairs WHERE baseName = 'Bitcoin' AND quoteName = 'United States Dollar' ---- ++++ <style> table td { overflow-wrap: anywhere; } </style> ++++ .Results [options="header"] |=== |idset(id) |AgAAAAABAAAAADowAAACAAAAAAAGAAIAFgEYAAAAJgAAAAkAHwAlAEsAbQCvAFYB6rHwsfixHbInsyizMLM1s02zTrNPs1CzUbNSs1OzVLNVs7Ozt7PEs8izybPNs9Gz17PYs9mz4LPis+Sz6rPzs/az97P4s/mz/rP/swq0C7QRtBK0FbQWtCG0JbQttD60RbRGtEe0SLRLtCe1aLVutXW1drV3tXi1erWDtYe1irWLtZG1krWTtZa1nrX2tQe2DbYWthe2GbYctkm2XLZgtmO2a7Zstm62b7Z+toG2ibaXtpq2m7adtp62oba5tsC2xbbHtsy20bbSttm227bituq2Wrdot5m3mreit6m3vbcFuBG4GbgouCm4LLg1uIq4pbituNW45LjluO+4BbkbuSq5QrlUuVi5Y7luuXW5drmEuYi5mrmgubS5vbnFuca5zrnXueK56rnxuQW6GrobuiC6JrosujG6Nbo2uj+6RbpGukq6T7pWumu6dbqZuqO6pLquurO6xLrNuuW6/LoHuw27DrsTuxq7J7szu0m7Wbtou2m7crt6u5+7s7u6u7+7ybvKu8671LvXu+C75bvyuw68D7wVvDq8Q7xbvG68e7yNvJG8lryXvJ28oLyjvLa8x7zOvNW81rzZvN+857z6vBC+GL40vh+/Lb/Kv2TAaMBuwEfBSsGyxLzEv8TCxMXEyMTLxM7E1MT7xCHFacWnxanFrsW3xX3GXshtyIHI+8hRyQzMwc7EzsjOcc91z/DPBtA40DnQZdC70KzSDNMZ0x/TLNOJ05rTCtRJ1ErU |=== We could then use this value to query the `trades` table, like this: [source, sql] ---- select avg(price) AS avgPrice, max(price) as maxPrice, min(price) AS minPrice, count(*) AS count, sum(amount) AS amountTraded from trades WHERE IN_ID_SET( currencyPairId, 'AgAAAAABAAAAADowAAACAAAAAAAGAAIAFgEYAAAAJgAAAAkAHwAlAEsAbQCvAFYB6rHwsfixHbInsyizMLM1s02zTrNPs1CzUbNSs1OzVLNVs7Ozt7PEs8izybPNs9Gz17PYs9mz4LPis+Sz6rPzs/az97P4s/mz/rP/swq0C7QRtBK0FbQWtCG0JbQttD60RbRGtEe0SLRLtCe1aLVutXW1drV3tXi1erWDtYe1irWLtZG1krWTtZa1nrX2tQe2DbYWthe2GbYctkm2XLZgtmO2a7Zstm62b7Z+toG2ibaXtpq2m7adtp62oba5tsC2xbbHtsy20bbSttm227bituq2Wrdot5m3mreit6m3vbcFuBG4GbgouCm4LLg1uIq4pbituNW45LjluO+4BbkbuSq5QrlUuVi5Y7luuXW5drmEuYi5mrmgubS5vbnFuca5zrnXueK56rnxuQW6GrobuiC6JrosujG6Nbo2uj+6RbpGukq6T7pWumu6dbqZuqO6pLquurO6xLrNuuW6/LoHuw27DrsTuxq7J7szu0m7Wbtou2m7crt6u5+7s7u6u7+7ybvKu8671LvXu+C75bvyuw68D7wVvDq8Q7xbvG68e7yNvJG8lryXvJ28oLyjvLa8x7zOvNW81rzZvN+857z6vBC+GL40vh+/Lb/Kv2TAaMBuwEfBSsGyxLzEv8TCxMXEyMTLxM7E1MT7xCHFacWnxanFrsW3xX3GXshtyIHI+8hRyQzMwc7EzsjOcc91z/DPBtA40DnQZdC70KzSDNMZ0x/TLNOJ05rTCtRJ1ErU' ) = 1 ---- The query stats for this query are shown below: .Query Stats [source, json] ---- { "numServersQueried": 1, "numServersResponded": 1, "numSegmentsQueried": 38, "numSegmentsProcessed": 37, "numSegmentsMatched": 37, "numConsumingSegmentsQueried": 1, "numDocsScanned": 310757, "numEntriesScannedInFilter": 16155043, "numEntriesScannedPostFilter": 621514, "numGroupsLimitReached": false, "totalDocs": 16155043, "timeUsedMs": 125 } ---- This is about 3x faster than our original query - a pretty good improvement! It's still a bit annoying though as we need to pass in that really long string value representing all the ids. Luckily Pinot lets us write sub queries for IdSets, using the `IN_SUBQUERY` function, as shown below: [source, sql] ---- select avg(price) AS avgPrice, max(price) as maxPrice, min(price) AS minPrice, count(*) AS count, sum(amount) AS amountTraded from trades WHERE IN_SUBQUERY( currencyPairId, 'SELECT ID_SET(id) FROM pairs WHERE baseName = ''Bitcoin'' AND quoteName = ''United States Dollar''' ) = 1 ---- We can see the query stats from running this query below: .Query Stats [source, json] ---- { "numServersQueried": 1, "numServersResponded": 1, "numSegmentsQueried": 38, "numSegmentsProcessed": 37, "numSegmentsMatched": 37, "numConsumingSegmentsQueried": 1, "numDocsScanned": 310757, "numEntriesScannedInFilter": 16155043, "numEntriesScannedPostFilter": 621514, "numGroupsLimitReached": false, "totalDocs": 16155043, "timeUsedMs": 132 } ----
In this post we'll learn how to use Apache Pinot's IdSets to speed up our queries.
uploads/2022/04/id-set-banner.png
[ -0.0007356510031968355, -0.013549551367759705, 0.007956747896969318, 0.07225167751312256, 0.07148388773202896, 0.014377249404788017, 0.018272675573825836, 0.051348958164453506, 0.01833377406001091, -0.02222687192261219, -0.025118188932538033, -0.015053915791213512, -0.05059361457824707, 0.027875179424881935, 0.001694197184406221, 0.06725512444972992, 0.07811407744884491, 0.008146797306835651, 0.044451769441366196, -0.027172863483428955, 0.019811434671282768, 0.03134072199463844, 0.013688554055988789, 0.03965563327074051, 0.023747466504573822, 0.01993415132164955, -0.03333912789821625, 0.019755762070417404, -0.050503212958574295, -0.017246147617697716, 0.03172105550765991, -0.004578392952680588, 0.012203085236251354, -0.02118353359401226, -0.0020658397115767, 0.017610173672437668, -0.021227436140179634, 0.02296322025358677, -0.00023980550759006292, 0.032170314341783524, -0.07506310194730759, 0.02099626325070858, 0.023014597594738007, 0.03165383264422417, -0.012220545671880245, 0.015662509948015213, -0.04358845576643944, 0.015911443158984184, 0.02574113756418228, 0.004906700924038887, -0.05082815885543823, 0.04161940887570381, -0.013068747706711292, 0.033006470650434494, 0.0172262042760849, 0.044308070093393326, -0.01787036657333374, -0.06822802126407623, 0.04209810867905617, -0.04478658735752106, -0.006441069301217794, 0.0009717389475554228, 0.01792973093688488, -0.0021440251730382442, 0.008239413611590862, -0.04765589162707329, -0.010746683925390244, 0.03983349725604057, -0.04341011121869087, -0.013478961773216724, 0.032329022884368896, -0.01379526685923338, -0.015397977083921432, -0.016894059255719185, 0.023540299385786057, -0.01997486874461174, -0.031556256115436554, 0.06998920440673828, 0.021378735080361366, 0.04058237373828888, -0.007067443337291479, 0.004347879905253649, -0.0004067707050126046, 0.02741479128599167, 0.003301261691376567, -0.036882176995277405, -0.03206104785203934, -0.024684278294444084, -0.05419579893350601, 0.07044893503189087, 0.00010310308425687253, -0.02543431520462036, 0.01602056622505188, -0.006045153830200434, -0.03330032899975777, 0.011872032657265663, 0.03679336607456207, -0.024034207686781883, 0.010929870419204235, -0.017725693061947823, -0.02060112915933132, -0.018581127747893333, 0.034268997609615326, 0.056475166231393814, -0.060407835990190506, -0.015320582315325737, -0.036713846027851105, -0.02812516689300537, 0.0276483204215765, 0.013070137239992619, -0.03927680850028992, -0.020096248015761375, -0.018903324380517006, 0.021358616650104523, -0.06112883239984512, 0.09121845662593842, 0.031437572091817856, -0.050855666399002075, -0.00033423741115257144, 0.021965457126498222, 0.06803315132856369, 0.03432491421699524, -0.031712207943201065, 0.06819914281368256, 0.0033312980085611343, 0.012330375611782074, 0.01511627808213234, 0.025912748649716377, 0.011015386320650578, -0.0652971863746643, -0.014041602611541748, 0.043656643480062485, 0.011609742417931557, -0.016263039782643318, -0.01562149915844202, -0.05438088998198509, 0.0037331341300159693, -0.017727429047226906, 0.05918822064995766, -0.00023290498938877136, -0.02046128176152706, -0.03316890820860863, 0.006869007367640734, -0.022407134994864464, 0.041997164487838745, 0.02435499243438244, -0.013770310208201408, -0.041729554533958435, -0.024716313928365707, 0.016378076747059822, -0.0008933742647059262, 0.024878239259123802, 0.0446060486137867, -0.04015915095806122, 0.006967861671000719, 0.07687384635210037, 0.014773644506931305, 0.013482811860740185, 0.0012709209695458412, 0.006490121129900217, 0.03951054438948631, 0.023923177272081375, 0.03500949218869209, 0.020246345549821854, -0.0005873879999853671, -0.016986869275569916, 0.014824987389147282, 0.08511491119861603, -0.03688898682594299, 0.015293845906853676, -0.06401123106479645, -0.025864411145448685, 0.06653434038162231, -0.043383173644542694, 0.01758352667093277, 0.04198697209358215, 0.07463742047548294, 0.023513665422797203, 0.03654773160815239, 0.02020270749926567, -0.07169714570045471, 0.05350235849618912, 0.03559010475873947, -0.008428995497524738, 0.011631762608885765, -0.02210378274321556, 0.08208370208740234, 0.038382790982723236, 0.03797648102045059, 0.018182316794991493, -0.07386019080877304, -0.06108098104596138, -0.02100907638669014, -0.004336504731327295, 0.05537255480885506, -0.02836635708808899, 0.0480671264231205, 0.05724189430475235, 0.018963979557156563, 0.021171456202864647, 0.0043858070857822895, 0.033615127205848694, 0.023741664364933968, -0.07619906216859818, -0.0742349773645401, 0.02721306122839451, 0.032073576003313065, -0.06828697770833969, -0.04517272114753723, -0.02151891030371189, -0.03819127008318901, -0.0288146510720253, 0.04342735558748245, -0.01522915717214346, 0.050805337727069855, 0.029942616820335388, 0.04799620062112808, -0.005839223507791758, 0.046156223863363266, -0.03255443647503853, 0.06084827706217766, 0.020309902727603912, -0.014810091815888882, -0.0009748306474648416, -0.007261347956955433, 0.11732691526412964, 0.06385738402605057, -0.029843751341104507, -0.0481368787586689, 0.0394216924905777, 0.01452005747705698, -0.07196357101202011, -0.0025102433282881975, -0.03643388673663139, 0.017011720687150955, 0.014324487186968327, -0.049911048263311386, -0.029221542179584503, 0.04196237772703171, -0.005988932680338621, 0.022472558543086052, 0.05630405247211456, -0.022168276831507683, 0.04362713173031807, 0.029431438073515892, -0.010344605892896652, 0.0030153230763971806, -0.02981138601899147, -0.0790400505065918, 0.00005394627805799246, -0.01286762859672308, -0.0003110716352239251, 0.02667643129825592, -0.0419783852994442, -0.028360752388834953, -0.051265571266412735, -0.03325873240828514, 0.038666874170303345, 0.029955193400382996, 0.0651344284415245, -0.01928234100341797, 0.03691914305090904, -0.014643535949289799, 0.025529751554131508, -0.01477523148059845, -0.04279782623052597, -0.02083909511566162, 0.00852627120912075, 0.01001802645623684, 0.04015512764453888, 0.0430072620511055, -0.001204460160806775, 0.004012482240796089, 0.012538992799818516, 0.017495019361376762, -0.011754726059734821, 0.022699689492583275, 0.03922756388783455, -0.00664210831746459, -0.02702033519744873, -0.02122400514781475, 0.04855171591043472, -0.061306167393922806, 0.007105563767254353, -0.004729323089122772, -0.0677955225110054, 0.03579879552125931, -0.06491895020008087, -0.04622796177864075, -0.0015616754535585642, 0.05141235515475273, 0.0282119307667017, 0.008457014337182045, -0.005626959260553122, 0.07540366798639297, 0.012340983375906944, -0.01371208019554615, 0.012661775574088097, -0.012500736862421036, 0.046436578035354614, -0.004421047400683165, 0.03312718868255615, 0.05394131317734718, -0.011285652406513691, 0.009344140067696571, -0.027167007327079773, 0.015718447044491768, -0.037652477622032166, -0.2766738533973694, 0.03425034135580063, -0.025605343282222748, -0.02698851190507412, 0.022653989493846893, -0.021098673343658447, -0.014054075814783573, -0.026360996067523956, -0.007175038568675518, 0.007898811250925064, -0.002748295199126005, -0.02256964147090912, -0.045848164707422256, 0.01911316066980362, -0.008924798108637333, 0.008126344531774521, -0.01634548045694828, -0.06904510408639908, 0.009656224399805069, 0.010371936485171318, 0.012707510963082314, -0.053565509617328644, 0.013159271329641342, 0.033467162400484085, 0.0284245777875185, 0.03064597025513649, -0.0918765664100647, 0.025120051577687263, -0.04192615672945976, -0.01462769415229559, 0.005815218202769756, -0.019993767142295837, 0.014856192283332348, -0.007010385859757662, 0.012808800674974918, -0.027336664497852325, 0.026342224329710007, -0.005390645004808903, 0.017474031075835228, 0.013082302175462246, -0.05063235014677048, -0.04262109100818634, -0.01988675445318222, 0.019224287942051888, 0.10049132257699966, -0.017226463183760643, -0.07549362629652023, 0.0037656654603779316, -0.02156766876578331, 0.06031189113855362, -0.03657595440745354, -0.06962452828884125, -0.028858501464128494, 0.01544220745563507, -0.04237794503569603, 0.003631491679698229, 0.0014748742105439305, -0.009462718851864338, -0.06659190356731415, -0.013368597254157066, -0.0018646670505404472, -0.02898460254073143, 0.023159664124250412, -0.05047661438584328, -0.005556973163038492, -0.0741867795586586, -0.04403423145413399, 0.02382872998714447, 0.08069830387830734, 0.03046051226556301, -0.026475412771105766, 0.047198280692100525, -0.009791957214474678, -0.11961916089057922, -0.01307319663465023, -0.025715641677379608, -0.004901813343167305, 0.00072378950426355, -0.028962327167391777, 0.037430159747600555, -0.00530962785705924, -0.028751056641340256, 0.01615477353334427, 0.007905052043497562, 0.03976236283779144, -0.029169579967856407, -0.015303000807762146, -0.03878769278526306, -0.02313348650932312, 0.019242141395807266, 0.06163625046610832, -0.044432155787944794, -0.018313253298401833, -0.030366506427526474, -0.017633236944675446, 0.030527831986546516, 0.0140890683978796, 0.013917454518377781, -0.01765190251171589, 0.04427235946059227, 0.022379955276846886, -0.05046233907341957, 0.018426096066832542, -0.0382370688021183, -0.013873796910047531, -0.006169534288346767, -0.02159479632973671, 0.03479507938027382, 0.025294320657849312, 0.03962744027376175, -0.010213904082775116, -0.02147573232650757, -0.0027392557822167873, -0.0402870737016201, -0.020784396678209305, -0.028240961953997612, 0.03193117305636406, 0.015336389653384686, 0.053540028631687164, -0.014601725153625011, -0.021825900301337242, 0.010028660297393799, 0.0437040813267231, -0.030655039474368095, -0.034629371017217636, -0.02601172961294651, -0.004550267942249775, -0.0182192325592041, 0.010857458226382732, 0.001977446023374796, 0.0007748709758743644, 0.029899388551712036, 0.01086008083075285, -0.016894448548555374, 0.02895437180995941, -0.03148753196001053, -0.022410575300455093, -0.027524853125214577, 0.023991908878087997, 0.006197585724294186, 0.013418574817478657, 0.0008140279678627849, -0.002580737927928567, 0.042849913239479065, 0.03552689775824547, 0.015096546150743961, 0.008438877761363983, -0.014416730962693691, 0.007521853782236576, 0.014398381114006042, 0.002468113088980317, -0.022631846368312836, 0.016758713871240616, -0.048289705067873, -0.015524562448263168, -0.012781972996890545, 0.038624174892902374, 0.0001497089833719656, -0.014219081960618496, -0.03944912552833557, 0.029900120571255684, -0.060550738126039505, -0.0157073475420475, -0.014638584107160568, 0.013535527512431145, 0.03990946337580681, -0.02060527913272381, 0.017821693792939186, -0.012543455697596073, 0.01446976512670517, 0.007036513648927212, 0.02201664447784424, -0.04428068920969963, -0.008597112260758877, -0.0063649555668234825, -0.009567857719957829, -0.005333650857210159, 0.014819126576185226, 0.01456775888800621, -0.021171841770410538, 0.027539869770407677, 0.009967157617211342, 0.023045368492603302, 0.01859624683856964, 0.04888736456632614, 0.049159832298755646, -0.0116329500451684, 0.010838434100151062, -0.0028192619793117046, -0.0033047241158783436, -0.024540182203054428, 0.005135777406394482, -0.0059888726100325584, 0.006407677195966244, -0.02527828887104988, -0.07626835256814957, 0.0348525270819664, 0.01330810971558094, -0.014794284477829933, 0.03934764862060547, 0.019497932866215706, -0.015041747130453587, -0.057788532227277756, 0.04758130759000778, 0.09089698642492294, -0.03861594200134277, 0.029801655560731888, 0.009684665128588676, -0.017390381544828415, 0.00020583746663760394, 0.03052523173391819, -0.053940679877996445, -0.006453929003328085, -0.011455800384283066, 0.013443641364574432, -0.04104626923799515, -0.02870757505297661, -0.0344618484377861, -0.01380936335772276, 0.01183813065290451, 0.03671596199274063, -0.00818251445889473, -0.006822754628956318, 0.01772601157426834, -0.03137453272938728, 0.05319327116012573, -0.0018465009052306414, 0.008035173639655113, -0.0046178181655704975, -0.021962812170386314, 0.008666235953569412, -0.047633491456508636, 0.0018108104122802615, 0.02306009642779827, -0.030252449214458466, 0.014673884026706219, -0.05163086578249931, 0.017605390399694443, -0.013642736710608006, 0.07772272080183029, -0.02955661714076996, -0.019448619335889816, -0.03521132841706276, 0.003993215039372444, -0.031071588397026062, -0.0018905311590060592, -0.00016259614494629204, -0.006813888903707266, 0.054186318069696426, 0.05461516231298447, -0.03428390994668007, 0.010972085408866405, -0.0035445434041321278, -0.023447196930646896, 0.034709010273218155, -0.03496590256690979, -0.031314779072999954, -0.022284753620624542, -0.07220499217510223, 0.015808191150426865, 0.012528917752206326, 0.012478282675147057, -0.05538174510002136, 0.04468075931072235, 0.03159085661172867, 0.03033047541975975, 0.022992199286818504, -0.004636351950466633, 0.041257064789533615, -0.02894078753888607, -0.035045426338911057, -0.07453116029500961, -0.009441607631742954, 0.033249031752347946, -0.027626128867268562, -0.013412647880613804, 0.012766831554472446, -0.05046065151691437, 0.02199694886803627, -0.0632159411907196, -0.03951801359653473, 0.0568196102976799, 0.0016007362864911556, 0.011694646440446377, -0.00023966626031324267, -0.03644617646932602, -0.0029267407953739166, 0.038375578820705414, -0.039848875254392624, -0.019744105637073517, -0.0217572208493948, 0.05654599145054817, 0.008985836058855057, 0.040448639541864395, -0.01780289225280285, -0.03141956031322479, 0.06158020347356796, 0.004263054113835096, 0.023995626717805862, 0.09415975958108902, -0.020245768129825592, 0.03363615274429321, 0.022208159789443016, 0.003754932200536132, 0.033862922340631485, 0.01754637062549591, -0.04269540682435036, -0.06126289442181587, 0.05463121831417084, -0.0379972979426384, -0.004562567453831434, -0.05601093918085098, 0.0624532625079155, 0.0034498735330998898, -0.03922935947775841, -0.05491643026471138, 0.013369468972086906, -0.01986927166581154, -0.056949593126773834, -0.024616830050945282, 0.008118745870888233, -0.02599705383181572, 0.05717775598168373, -0.015566815622150898, 0.029367011040449142, 0.08472182601690292, 0.001234592986293137, -0.007966413162648678, 0.025384562090039253, 0.07639453560113907, 0.06957565248012543, 0.04892636463046074, 0.0015891636721789837, 0.05871255695819855, -0.02227012999355793, -0.033452358096838, -0.0265751201659441, -0.03235313296318054, -0.0319075845181942, -0.006500938441604376, 0.007283566053956747, 0.029109058901667595, -0.05316944420337677, 0.07087784260511398, -0.0021839351393282413, -0.0012090228265151381, -0.003211661707609892, -0.009575780481100082, 0.030945558100938797, 0.07734005898237228, -0.01990329846739769, 0.05089588463306427, -0.027069857344031334, -0.04303651303052902, 0.006453877314925194, 0.020932355895638466, -0.027663787826895714, 0.014117895625531673, -0.035058967769145966, 0.016119692474603653, 0.022840136662125587, 0.019898883998394012, 0.07956003397703171, -0.043118663132190704, -0.011733785271644592, 0.002430439693853259, 0.004887779708951712, 0.0019319109851494431, 0.005932879168540239, -0.04311956837773323, -0.0035500377416610718, -0.016509998589754105, -0.04673172906041145, 0.0005837598000653088, -0.01280050165951252, -0.007950302213430405, 0.02823442406952381, -0.01697223074734211, -0.00732247531414032, 0.024253718554973602, -0.0010823528282344341, -0.06429105252027512, -0.06572508811950684, -0.06147082895040512, -0.049798302352428436, -0.0649910420179367, -0.025757012888789177, -0.00048370324657298625, 0.0004352153337094933, -0.039871200919151306, -0.022946450859308243, -0.02779192477464676, 0.002186280209571123, 0.024640405550599098, -0.05509543418884277, -0.047097865492105484, 0.018966257572174072, 0.04452526196837425, 0.006022711284458637, 0.01639227382838726, 0.05257558822631836, -0.024962959811091423, -0.00570702413097024, -0.042681336402893066, 0.0059749772772192955, 0.045489195734262466, 0.00894636008888483, -0.012334603816270828, -0.0792713463306427, 0.005288317799568176, 0.025622181594371796, -0.0017219324363395572, -0.0812213271856308, 0.01333619561046362, 0.007743369322270155, -0.025948256254196167, 0.054039862006902695, -0.014909038320183754, 0.013547972775995731, -0.05856676027178764, -0.03239874541759491, -0.0006367446621879935, 0.015154858119785786, 0.024864437058568, -0.03200197592377663, 0.08092067390680313, 0.00632619159296155, -0.03754683583974838, -0.023151064291596413, -0.015117742121219635, -0.012579724192619324, -0.0005824974505230784, -0.030251260846853256, -0.0005066743469797075, -0.02407318539917469, -0.05566968768835068, -0.030712315812706947, 0.036525316536426544, -0.033123549073934555, -0.03660010173916817, 0.01578153297305107, 0.029450353235006332, -0.018697848543524742, -0.002230121521279216, -0.048476312309503555, 0.016179529950022697, -0.014507601968944073, -0.02888527698814869, -0.005419660825282335, 0.02468935027718544, -0.027643995359539986, -0.009925399906933308, 0.020691335201263428, -0.026218030601739883, 0.010886250995099545, -0.04539845511317253, 0.05046780779957771, 0.017096687108278275, -0.027519837021827698, -0.026688477024435997 ]
[ -0.0581718347966671, -0.0349455364048481, -0.07044197618961334, -0.0159554835408926, 0.04845947027206421, -0.0452084094285965, -0.00952869188040495, 0.0066467225551605225, -0.017004216089844704, -0.0174084659665823, 0.013620142824947834, -0.029855594038963318, 0.0022106089163571596, -0.020160581916570663, 0.07580752670764923, -0.00015615811571478844, 0.004256310872733593, -0.07627356052398682, -0.017346011474728584, 0.07505229115486145, 0.034895386546850204, -0.038211558014154434, -0.04415582865476608, -0.055099066346883774, 0.019522614777088165, 0.035003237426280975, 0.046727824956178665, -0.015776321291923523, -0.021627677604556084, -0.2037811428308487, 0.0408097580075264, -0.004725179634988308, 0.014489603228867054, -0.020188864320516586, 0.028851276263594627, 0.03662770614027977, 0.017248496413230896, 0.0015490793157368898, 0.03306140750646591, 0.027073131874203682, 0.0027765287086367607, 0.005921174306422472, -0.0402638204395771, -0.011296632699668407, 0.039626751095056534, -0.026015808805823326, -0.008256570436060429, 0.00309082237072289, 0.0066205584444105625, 0.036480434238910675, -0.03451127931475639, 0.006419752258807421, 0.010097025893628597, 0.0010019326582551003, 0.041129935532808304, 0.03550317883491516, 0.022091757506132126, 0.04760804772377014, 0.0256542656570673, 0.01012958213686943, 0.03042491525411606, -0.000579024781472981, -0.14101958274841309, 0.09896384179592133, 0.0150549141690135, 0.05970826372504234, -0.01991257816553116, 0.008530939929187298, -0.012179416604340076, 0.042831409722566605, 0.06149103492498398, -0.028621627017855644, -0.030894029885530472, 0.030778231099247932, 0.004219551105052233, -0.024643495678901672, 0.00019158833310939372, 0.02036352828145027, -0.008304290473461151, -0.0008768292027525604, -0.060545437037944794, 0.010162771679461002, -0.025662750005722046, -0.004724588245153427, -0.06325265765190125, -0.001551848603412509, 0.014002754352986813, 0.06176598742604256, 0.0013700295239686966, 0.007388582453131676, 0.04297637194395065, 0.013773703016340733, 0.009989878162741661, -0.0022235927172005177, -0.06446699798107147, 0.019861111417412758, -0.004768030717968941, 0.02541581727564335, -0.017172139137983322, 0.39484867453575134, 0.010994563810527325, 0.012760860845446587, 0.016162719577550888, -0.018864450976252556, 0.002922214101999998, 0.008425326086580753, -0.03472355008125305, -0.028951045125722885, 0.04433537274599075, -0.024409668520092964, 0.008186984807252884, -0.007811757270246744, 0.09213244915008545, -0.0456334613263607, -0.013443373143672943, -0.00943757500499487, -0.01239918265491724, 0.011989986523985863, -0.015128870494663715, 0.03815785050392151, -0.00667669577524066, 0.015103720128536224, 0.040918540209531784, 0.027412397786974907, -0.01469100546091795, -0.019079409539699554, 0.0406704880297184, 0.049934614449739456, 0.03664689138531685, 0.06135162338614464, 0.03446066752076149, -0.025528375059366226, -0.06816735118627548, -0.006946109235286713, -0.0013036250602453947, 0.004158509895205498, 0.002141480566933751, -0.006332277320325375, 0.0008019402739591897, 0.013373552821576595, -0.0504426509141922, -0.001401066780090332, 0.053315453231334686, -0.033896781504154205, -0.028791042044758797, 0.09721894562244415, 0.036835674196481705, -0.030218061059713364, -0.015555921010673046, -0.06972324848175049, -0.026102319359779358, -0.009544634260237217, -0.0003802365972660482, -0.07816567271947861, -0.04376071318984032, 0.026981985196471214, 0.06909758597612381, -0.0025349841453135014, -0.06360450387001038, -0.01735849864780903, -0.010916167870163918, -0.0411369688808918, -0.043269865214824677, 0.0426228865981102, 0.04001278430223465, -0.14884544909000397, -0.0187210850417614, -0.0017867984715849161, 0.007426743395626545, -0.06932099908590317, -0.015920957550406456, 0.028095681220293045, -0.05579531192779541, -0.0029714535921812057, 0.06872610002756119, -0.030380884185433388, -0.013677909038960934, -0.008058559149503708, 0.00329773873090744, 0.022124195471405983, -0.03557639569044113, -0.03245792165398598, -0.05329950898885727, -0.01580519787967205, -0.06101003289222717, -0.07272898405790329, -0.058073706924915314, 0.025650713592767715, -0.03735511377453804, 0.0003477050340734422, -0.041458263993263245, -0.029899848625063896, -0.1036778911948204, 0.11353165656328201, -0.0005514786462299526, -0.02681916393339634, 0.00030412868363782763, 0.020432518795132637, -0.02553042583167553, -0.017313232645392418, 0.015867657959461212, 0.049848031252622604, -0.026116546243429184, 0.0333835668861866, -0.05141231790184975, 0.05375486612319946, 0.03400447592139244, -0.03910676762461662, 0.04553002119064331, 0.046329278498888016, -0.007118819747120142, 0.027859879657626152, -0.03918010741472244, 0.0220777690410614, 0.0026272283867001534, -0.032887887209653854, 0.0005983053706586361, -0.0012784532736986876, 0.01805221289396286, 0.056869588792324066, -0.033578913658857346, -0.05254940316081047, -0.003083338961005211, -0.3832301199436188, -0.056502193212509155, -0.054843753576278687, 0.004603404551744461, 0.04716676473617554, -0.07232826948165894, 0.026373913511633873, -0.025536557659506798, 0.004837458953261375, 0.04818946495652199, 0.06742338091135025, -0.006386963184922934, 0.017833078280091286, -0.06265728920698166, -0.03114810772240162, 0.040666621178388596, -0.042415402829647064, -0.01506250724196434, -0.031562451273202896, 0.021957477554678917, -0.02691398747265339, -0.004886231385171413, -0.02279886044561863, -0.051762841641902924, 0.0005343503435142338, 0.005950427148491144, 0.12408392876386642, 0.004796283319592476, 0.008929293602705002, -0.07337937504053116, 0.03522518649697304, 0.014580288901925087, 0.002906050533056259, -0.08419253677129745, 0.0165385901927948, -0.023740362375974655, 0.044144339859485626, 0.006989447399973869, 0.004266843665391207, -0.01912706159055233, -0.07766200602054596, 0.01228309702128172, -0.020475609228014946, -0.06423478573560715, -0.004923032596707344, 0.023080259561538696, -0.02023099921643734, -0.010609816759824753, -0.012680999003350735, 0.07537545263767242, 0.044283341616392136, 0.03337405249476433, 0.038456689566373825, 0.02975471317768097, 0.02716689743101597, -0.034461118280887604, -0.027287950739264488, -0.04122741147875786, 0.010931871831417084, 0.029078084975481033, 0.021501991897821426, 0.02657647803425789, 0.00042649541865102947, -0.05525390803813934, 0.01831263303756714, 0.016334854066371918, -0.004371109884232283, -0.007584758102893829, 0.04010555520653725, -0.02108154073357582, -0.04372788593173027, 0.08579698950052261, -0.00008984481974039227, 0.03690091148018837, 0.00518879946321249, 0.06868652254343033, -0.001278798095881939, -0.01271610427647829, 0.028668105602264404, 0.03142566606402397, 0.053483493626117706, -0.0157056525349617, 0.05945291742682457, -0.019791293889284134, -0.019557494670152664, 0.09191056340932846, 0.03662228584289551, -0.0165675301104784, 0.07252027839422226, 0.02059543877840042, -0.026906633749604225, -0.009509366005659103, -0.048183806240558624, -0.048878997564315796, 0.049597032368183136, -0.0005052196211181581, -0.26310697197914124, 0.041666850447654724, 0.031426962465047836, 0.03371074050664902, 0.019567856565117836, 0.005839051678776741, 0.08252623677253723, -0.04545307904481888, -0.00496117677539587, 0.0027692627627402544, 0.0087604820728302, 0.06325207650661469, 0.032909221947193146, -0.025104913860559464, 0.015066219493746758, -0.014296484179794788, 0.021269192919135094, -0.01313803717494011, 0.004894275218248367, 0.01767745055258274, 0.01926545985043049, -0.000823876413051039, 0.19108307361602783, 0.06722678989171982, -0.009034319780766964, 0.04306310787796974, -0.01610010676085949, 0.038002729415893555, 0.07009147852659225, 0.02783595584332943, 0.013143356889486313, 0.0008584344177506864, 0.025177961215376854, -0.013053457252681255, 0.03348150849342346, -0.03080924041569233, -0.037207841873168945, 0.022547584027051926, 0.016510454937815666, -0.02601972222328186, -0.02529364451766014, 0.0019117067568004131, -0.03693709522485733, 0.05424150079488754, 0.05762409418821335, -0.018006153404712677, -0.008916059508919716, -0.03708840161561966, -0.010333076119422913, -0.006253558211028576, -0.030376063659787178, -0.02612999640405178, -0.02252068743109703, -0.010914240963757038, 0.00042339900392107666, 0.07012472301721573, 0.015362043865025043, -0.008724145591259003, 0.01693461276590824, 0.025034785270690918, -0.03748562932014465, -0.03993777930736542, 0.0422251895070076, -0.016477806493639946, -0.009058747440576553 ]
[ 0.01679379865527153, 0.04063549265265465, -0.05236078053712845, 0.031292062252759933, 0.006608585361391306, -0.014773582108318806, 0.008660482242703438, -0.012287167832255363, -0.005602809134870768, -0.009179331362247467, -0.013654378242790699, -0.0032266825437545776, 0.021741198375821114, -0.007016141898930073, -0.0006018617423251271, -0.05152580514550209, -0.007809295319020748, -0.019984615966677666, 0.01926952786743641, 0.019237704575061798, -0.010875320062041283, -0.0350487045943737, 0.03174460306763649, -0.014116845093667507, 0.005816869903355837, 0.009821408428251743, 0.005245903506875038, 0.011440025642514229, 0.00786264706403017, -0.13002043962478638, -0.038042064756155014, -0.024610457941889763, 0.009521708823740482, -0.004469310864806175, -0.04446848854422569, -0.0018811102490872145, 0.0285286046564579, -0.002787270350381732, 0.031164919957518578, -0.04703659564256668, 0.009604294784367085, -0.06829206645488739, -0.026290278881788254, 0.007033610716462135, -0.014659933745861053, -0.01566402055323124, -0.019231954589486122, 0.04335006698966026, 0.009294522926211357, 0.013168170116841793, -0.014261933043599129, 0.008099869824945927, 0.01017412357032299, 0.02065552957355976, 0.0017845260445028543, 0.004952702671289444, -0.018550090491771698, 0.0023807473480701447, 0.02590511180460453, -0.013098481111228466, 0.025402074679732323, 0.028478050604462624, 0.007261646445840597, -0.007497850805521011, 0.014745115302503109, -0.0321553610265255, -0.02713835798203945, 0.018860289826989174, -0.0072310869581997395, 0.0018936245469376445, 0.020740477368235588, -0.018107566982507706, -0.06192050129175186, -0.018290136009454727, -0.016687847673892975, -0.014240793883800507, 0.044982247054576874, -0.024883277714252472, 0.0008656168938614428, -0.014051981270313263, -0.04530315846204758, -0.011047447100281715, -0.0037352137733250856, -0.010534368455410004, 0.0014736201846972108, -0.004676968324929476, 0.020874742418527603, 0.026905279606580734, 0.020259981974959373, -0.056155432015657425, 0.0012699649669229984, 0.000028349557396722957, 0.008417600765824318, -0.004436690825968981, -0.06326862424612045, -0.01618102192878723, 0.026237087324261665, 0.013021339662373066, -0.044603131711483, 0.8250423073768616, 0.05162913352251053, 0.014834441244602203, 0.005866541992872953, -0.027162183076143265, 0.0005391978775151074, 0.0033028607722371817, -0.0037639096844941378, 0.03392418846487999, 0.01968064159154892, -0.04708866775035858, -0.003724372014403343, 0.01775553822517395, -0.004743489436805248, 0.0450335294008255, -0.013867414556443691, 0.036905188113451004, -0.046250518411397934, -0.02196459285914898, -0.023125585168600082, 0.017648590728640556, 0.0448799729347229, 0.037270624190568924, -0.006192824803292751, -0.005868443753570318, 0.0013754511019214988, -0.1859663426876068, 0.017171809449791908, -6.642061034344255e-33, 0.02733546309173107, -0.02387254871428013, -0.011559548787772655, -0.04294173792004585, 0.012246278114616871, 0.03412564471364021, 0.014454607851803303, -0.009076487272977829, -0.05518479645252228, 0.003007075982168317, -0.001627268735319376, 0.004029315896332264, 0.002877436112612486, -0.015126028098165989, 0.03746582195162773, -0.021490849554538727, -0.026961205527186394, 0.02155262790620327, 0.05480080470442772, 0.006280952598899603, 0.030617499724030495, 0.010669607669115067, 0.004161734599620104, 0.01794266700744629, 0.005811247043311596, 0.055795926600694656, -0.004587371833622456, -0.020406382158398628, 0.004227742087095976, -0.03756648674607277, 0.003076381515711546, 0.024633746594190598, 0.010200558230280876, -0.027790408581495285, -0.018577976152300835, -0.03916144371032715, 0.0014053162885829806, -0.0019552758894860744, -0.05452478304505348, -0.056904278695583344, -0.0017116105882450938, 0.014144359156489372, -0.017862781882286072, -0.002072405768558383, -0.025966549292206764, 0.02989804558455944, 0.013887089677155018, 0.03819470852613449, -0.01857454888522625, 0.024523135274648666, -0.02240184135735035, -0.00939644780009985, -0.0023348063696175814, -0.013130431063473225, -0.007787113543599844, -0.05093812942504883, -0.017287934198975563, -0.003705622162669897, -0.01165994256734848, -0.01937665417790413, -0.021552320569753647, -0.04293177276849747, -0.01510489173233509, 0.0352383516728878, -0.037132859230041504, 0.03492753952741623, 0.01901688612997532, 0.012462909333407879, -0.049008890986442566, 0.007915900088846684, -0.050637826323509216, 0.029602590948343277, 0.014364434406161308, 0.013353449292480946, 0.018410520628094673, -0.02556530013680458, 0.0005624044570140541, 0.036965511739254, 0.034110359847545624, 0.034248773008584976, 0.00371215445920825, 0.0031989130657166243, -0.004342306405305862, -0.01959688402712345, -0.028387822210788727, 0.025135712698101997, 0.017070796340703964, -0.010375233367085457, -0.0064367433078587055, 0.011105312965810299, 0.026254262775182724, 0.05614764988422394, 0.005153499078005552, -0.05553320795297623, -0.00554322125390172, 6.560674213597136e-33, -0.0245854202657938, -0.01507219672203064, -0.012615147978067398, 0.032233841717243195, 0.022830408066511154, -0.027454646304249763, 0.04476543888449669, 0.02359897643327713, 0.008487805724143982, 0.019008886069059372, -0.00408894894644618, -0.03429019823670387, 0.005874979309737682, 0.019526023417711258, 0.07463950663805008, -0.004405162297189236, 0.017420301213860512, 0.019994743168354034, 0.06317543238401413, 0.0076765199191868305, 0.00252639502286911, 0.004658087622374296, -0.016478156670928, 0.03838006779551506, 0.016775215044617653, 0.036983683705329895, -0.04538783058524132, -0.007508065551519394, 0.0013074134476482868, 0.0050317165441811085, 0.02625441923737526, -0.017872320488095284, -0.0015166668454185128, 0.010091986507177353, -0.05603979155421257, 0.02638719603419304, 0.009539030492305756, -0.008749454282224178, 0.037045832723379135, 0.013637922704219818, 0.016339318826794624, -0.004795760847628117, 0.001289925305172801, 0.0445985272526741, 0.0028590525034815073, -0.03705388680100441, -0.003364823292940855, 0.003750966163352132, 0.0006444355822168291, 0.00143797870259732, 0.009331263601779938, 0.03245983645319939, -0.0184620451182127, -0.019842857494950294, -0.002116752788424492, -0.0034968992695212364, -0.020868811756372452, 0.03584987297654152, -0.021168971434235573, -0.010366413742303848, -0.04514487460255623, 0.060195066034793854, -0.003014312358573079, 0.07494857907295227, -0.015302036888897419, -0.006786441430449486, -0.03455674275755882, -0.011589106172323227, 0.017315857112407684, -0.02488207444548607, -0.00665969867259264, -0.06348931044340134, 0.00583100039511919, 0.03958896920084953, 0.016312455758452415, -0.015080231241881847, -0.038691144436597824, 0.004016537219285965, 0.038731690496206284, 0.023164447396993637, 0.01872149482369423, 0.02095431089401245, 0.04471011832356453, -0.028904227539896965, 0.02219640277326107, 0.03728904202580452, -0.038966719061136246, 0.0058382838033139706, 0.005124229472130537, 0.0005981241702102125, -0.018131505697965622, -0.047537367790937424, -0.02145722508430481, 0.0006946916691958904, 0.01813303306698799, -1.2452328945755653e-8, -0.016884025186300278, 0.00680963508784771, -0.0061807408928871155, -0.000241524787270464, 0.06278350204229355, 0.061561278998851776, -0.016508840024471283, -0.009111536666750908, -0.017460590228438377, -0.012957260012626648, 0.019441349431872368, -0.003548302687704563, -0.015809744596481323, 0.002969568595290184, -0.033217694610357285, -0.045023053884506226, 0.006882515270262957, -0.00863823015242815, 0.025564786046743393, -0.01462007686495781, 0.026587143540382385, 0.03463134542107582, 0.001108489348553121, -0.02903883531689644, 0.000861705164425075, 0.014487141743302345, 0.03581022843718529, -0.037835538387298584, -0.0024224859662353992, -0.004359967540949583, -0.025586063042283058, -0.029857469722628593, 0.002550557954236865, 0.026836613193154335, 0.007312891539186239, -0.015307550318539143, -0.005318531766533852, 0.03804995119571686, -0.003037897637113929, 0.011468607932329178, -0.027981193736195564, -0.04189537838101387, -0.02738962136209011, -0.04088625684380531, -0.028111116960644722, -0.01093855407088995, -0.04285506531596184, 0.02036680467426777, 0.04300037398934364, -0.043868228793144226, 0.008446156978607178, -0.0594586618244648, 0.04344531521201134, -0.01221116166561842, 0.05863448977470398, 0.019253259524703026, 0.0032306851353496313, -0.05898101627826691, 0.03033251129090786, -0.022270947694778442, 0.039209846407175064, 0.004865163937211037, -0.0000725581485312432, -0.009667146019637585 ]
apache-pinot-speeding-up-queries-id-set
https://markhneedham.com/blog/2022/04/08/apache-pinot-speeding-up-queries-id-set
false
2022-04-23 02:44:37
Dash: Configurable dcc.Interval
[ "dash", "plotly" ]
[ "dash" ]
:icons: font As I mentioned in my blog post about https://www.startree.ai/blogs/building-real-time-crypto-dashboard-pinot-dash[building a Real-Time Crypto Dashboard^], I've recently been working with the https://dash.plotly.com/[Dash^] low-code framework for building interactive data apps. I was using the https://dash.plotly.com/dash-core-components/interval[`dcc.Interval`^] component to automatically refresh components on the page and wanted to make the refresh interval configurable. In this blog post we'll learn how to do that. .Dash: Configurable dcc.Interval image::{{<siteurl>}}/uploads/2022/04/dash-banner.png[] == Setup Let's first setup our Python environment: [source, bash] ---- python -m venv .env source .env/bin/activate ---- And install the dash library: [source, bash] ---- pip install dash ---- == Building a refreshing dashboard Now we're going to build a simple dashboard that refreshes a timestamp on the page once every 1,000 milliseconds i.e. once per second. The code to do this is shown below: .dashboard.py [source, python] ---- include::content/2022/04/23/dashboard.py[] ---- [source, bash] ---- python dashboard.py ---- If we navigate to http://localhost:8050, we'll see the timestamp updating once per second, as shown in the following animation: .Refreshing every second image::{{<siteurl>}}/uploads/2022/04/dash-once-second.gif[] The timestamp updates once every second, just as we'd expect. To make this value configurable we will use `dcc.Slider` to set the new refresh rate and we'll add a new callback that updates the refresh interval. .dashboard.py [source, python] ---- include::content/2022/04/23/dashboard2.py[] ---- <1> `dcc.Slider` lets us configure a new refresh rate <2> This callback updates the value of `interval-component` Now if we navigate back to our web browser, we can adjust the interval to be whatever we like: .Refreshing at different intervals image::{{<siteurl>}}/uploads/2022/04/adjustable-interval.gif[]
In this post we'll learn how to make the timeout on Dash's dcc.Interval component configurable.
uploads/2022/04/dash-banner.png
[ 0.009269862435758114, -0.01740945875644684, 0.008478004485368729, 0.051186587661504745, 0.09206755459308624, 0.03525529056787491, 0.01445624977350235, 0.06211133673787117, -0.009063469246029854, -0.004918662831187248, -0.005885102320462465, -0.02299089916050434, -0.056079376488924026, 0.016145024448633194, 0.00005830742884427309, 0.06024377420544624, 0.08154434710741043, 0.021049654111266136, 0.008212493732571602, 0.0157551858574152, 0.01926703006029129, 0.0836535319685936, -0.01909441500902176, 0.032067328691482544, 0.009975527413189411, 0.02047722227871418, 0.013056602329015732, 0.006991070229560137, -0.0734563022851944, -0.016270902007818222, 0.03552304208278656, 0.005999983288347721, -0.007838371209800243, 0.022263146936893463, 0.024192003533244133, -0.0063035208731889725, -0.0004284546594135463, 0.01777641847729683, -0.010018442757427692, 0.009382769465446472, -0.06826300919055939, 0.010447240434587002, 0.010018710047006607, -0.01331048272550106, -0.0243577528744936, 0.004748136270791292, -0.03669276088476181, 0.026006758213043213, 0.017213014885783195, -0.01853064075112343, -0.07037350535392761, 0.018521331250667572, -0.018248576670885086, -0.011588791385293007, -0.020099297165870667, 0.040723513811826706, -0.0028903698548674583, -0.06639077514410019, 0.01141674630343914, -0.03481577709317207, 0.009238094091415405, 0.008356801234185696, 0.024332864210009575, 0.02328626811504364, 0.012103327549993992, -0.030672304332256317, -0.007912993431091309, 0.04865824058651924, -0.05097993463277817, 0.00908192340284586, 0.00921621359884739, 0.0038238693960011005, -0.029330765828490257, 0.028001219034194946, -0.0018135854043066502, -0.03336494043469429, -0.02212691865861416, 0.07390511780977249, 0.02732430212199688, 0.04358106106519699, 0.014880907721817493, -0.014879250898957253, 0.03455733507871628, 0.03335486724972725, -0.01410143543034792, -0.03422647342085838, -0.06211721897125244, -0.016079267486929893, -0.07691622525453568, 0.057275041937828064, 0.022509049624204636, -0.05609949678182602, 0.044495590031147, 0.0256772730499506, 0.005502231884747744, 0.016011588275432587, -0.022834142670035362, -0.0014281002804636955, 0.004164942540228367, -0.02968517318367958, -0.04949851706624031, -0.007109662517905235, 0.01788371615111828, 0.025647103786468506, -0.07217084616422653, 0.0011888170847669244, -0.04670235887169838, -0.025051331147551537, 0.0033727155532687902, 0.00694258464500308, -0.03084050677716732, -0.02688286453485489, -0.0037918901070952415, 0.01646837778389454, -0.05494631081819534, 0.0911773145198822, 0.0062299855053424835, -0.014286516234278679, -0.003784364089369774, -0.002457728609442711, 0.07475095242261887, 0.03467303514480591, -0.03500419482588768, 0.06765767931938171, 0.023287242278456688, 0.05365629866719246, 0.01041986234486103, 0.01839635707437992, 0.0017516881925985217, -0.03473460674285889, -0.02517632767558098, 0.06396885961294174, -0.032006826251745224, -0.0027057169936597347, -0.005172099452465773, -0.023580653592944145, 0.0011851206654682755, -0.008523550815880299, 0.08539100736379623, 0.010604672133922577, 0.01962999813258648, -0.04062073677778244, 0.026937322691082954, -0.008940991014242172, 0.01918889209628105, 0.012064897455275059, 0.015686998143792152, -0.047750599682331085, -0.031271856278181076, 0.015400119125843048, -0.00623315991833806, -0.01399511843919754, 0.03978351876139641, -0.027748743072152138, 0.0011803543893620372, 0.08323407173156738, 0.06711524724960327, 0.010852065868675709, -0.013712484389543533, 0.008590438403189182, 0.03283888101577759, 0.02870989963412285, 0.022446580231189728, 0.03308562934398651, 0.004879513755440712, -0.017909590154886246, -0.006985008716583252, 0.055223263800144196, -0.03868209570646286, -0.01837000623345375, -0.04997335746884346, -0.0316360667347908, 0.05370979383587837, -0.010495069436728954, 0.03280814737081528, 0.06029322370886803, 0.08101338148117065, 0.028312111273407936, 0.01020738948136568, -0.009867478162050247, -0.0870625227689743, 0.049023550003767014, 0.015048230066895485, 0.03749914467334747, 0.029636124148964882, -0.023632239550352097, 0.09753651171922684, 0.01561026368290186, 0.021612077951431274, 0.014106671325862408, -0.05574653670191765, -0.05378720909357071, -0.03192390128970146, -0.012370000593364239, 0.0568816177546978, -0.04952025040984154, 0.012473169714212418, 0.03581184893846512, 0.057288579642772675, 0.054894573986530304, 0.009563728235661983, -0.004880369640886784, 0.0214221253991127, -0.04228246957063675, -0.05749891698360443, 0.019793866202235222, 0.04069118946790695, -0.03641793504357338, -0.018176082521677017, -0.008831197395920753, -0.03328164294362068, -0.01906166970729828, 0.04221145808696747, 0.008624996058642864, 0.050025973469018936, -0.0005733513971790671, 0.028512781485915184, -0.014694442972540855, -0.0028703873977065086, -0.043297674506902695, 0.015364613384008408, -0.006243270356208086, -0.030779549852013588, -0.016441302374005318, 0.0013861291809007525, 0.10567454248666763, 0.0709107369184494, -0.037511903792619705, -0.03396262228488922, 0.016626235097646713, -0.026647981256246567, -0.052796538919210434, 0.0007734340033493936, -0.05809346213936806, -0.026809217408299446, 0.022070130333304405, -0.0028894064016640186, -0.0346980020403862, 0.015751684084534645, -0.05200435221195221, 0.009775630198419094, 0.05451689660549164, -0.011030351743102074, 0.036311931908130646, 0.00698530487716198, -0.03172125294804573, -0.023475507274270058, -0.03256552666425705, -0.08365648984909058, 0.01077537052333355, -0.022141382098197937, -0.013106740079820156, 0.028635699301958084, -0.0491347499191761, -0.008898149244487286, -0.030167559161782265, -0.04173138365149498, 0.022917617112398148, 0.014954743906855583, 0.04973621293902397, -0.006493814289569855, 0.021701021119952202, 0.0003323940036352724, 0.025560270994901657, -0.018528684973716736, -0.04592222720384598, -0.044164322316646576, -0.016312697902321815, 0.029897231608629227, 0.03317110985517502, 0.011834212578833103, 0.014054461382329464, 0.019684938713908195, -0.018122302368283272, 0.02238469570875168, -0.03448208048939705, 0.02234194613993168, 0.016829045489430428, -0.01732897013425827, -0.050047699362039566, -0.01955808512866497, 0.053854431957006454, -0.07035677134990692, -0.022393494844436646, 0.00483339698985219, -0.0416099950671196, 0.05108805373311043, -0.0643630400300026, -0.044744204729795456, -0.0258400347083807, 0.02171935886144638, 0.026076413691043854, 0.009407090954482555, 0.03584900125861168, 0.03625578433275223, 0.026588210836052895, -0.013899271376430988, 0.007734937127679586, -0.014565343037247658, 0.049064330756664276, 0.02040196768939495, 0.001835485571064055, 0.052442193031311035, 0.006956842727959156, -0.0038466656114906073, -0.0429069921374321, -0.01204684004187584, -0.041352223604917526, -0.26399531960487366, 0.02195793204009533, -0.0008290032856166363, -0.06027301028370857, 0.021667027845978737, -0.019454868510365486, -0.008967378176748753, -0.025186078622937202, 0.00995432399213314, -0.0011128977639600635, -0.012796862982213497, -0.04534466937184334, -0.012875941582024097, 0.017227059230208397, 0.003879281459376216, 0.0003566704981494695, 0.028017856180667877, -0.050566744059324265, -0.006367451976984739, 0.01480128150433302, -0.013971855863928795, -0.08172549307346344, 0.022670699283480644, 0.029832806438207626, 0.03224344179034233, 0.037197891622781754, -0.06911005079746246, 0.041024100035429, -0.06255903095006943, -0.0290814358741045, 0.022917769849300385, -0.009350343607366085, -0.0022009226959198713, 0.007333595771342516, -0.0005641738534905016, -0.02309761382639408, 0.028569530695676804, -0.022665733471512794, 0.02502533607184887, -0.013072533532977104, 0.007115099113434553, -0.034063518047332764, 0.016123056411743164, 0.0017114713555201888, 0.10223673284053802, -0.00021331943571567535, -0.08714482933282852, -0.003646454308182001, -0.05031866580247879, 0.08642975240945816, -0.028479255735874176, -0.021703563630580902, -0.03372759744524956, 0.02472030185163021, -0.014843015931546688, 0.012202935293316841, -0.013185592368245125, -0.015026085078716278, -0.05833116173744202, -0.040338389575481415, 0.014003053307533264, -0.016585802659392357, -0.006468180101364851, -0.0377221554517746, 0.0052210185676813126, -0.058769289404153824, -0.05473053827881813, -0.02005370520055294, 0.05882180109620094, 0.0419858917593956, -0.047807808965444565, 0.0071340035647153854, -0.015584740787744522, -0.10892576724290848, -0.016056539490818977, -0.02247622050344944, 0.009919237345457077, 0.005051216576248407, -0.0186128169298172, 0.041264839470386505, -0.02179945819079876, -0.05474155396223068, 0.037284135818481445, -0.006265208590775728, 0.03051076829433441, -0.001438070903532207, 0.01052866317331791, -0.011182529851794243, 0.0012628589756786823, 0.007198472041636705, 0.08009989559650421, -0.03514596447348595, -0.020869389176368713, -0.004026406444609165, 0.009294740855693817, 0.026398194953799248, 0.03547852858901024, 0.020574908703565598, 0.012209497392177582, 0.017343951389193535, 0.014470243826508522, -0.038505569100379944, 0.005951468832790852, -0.04453954100608826, -0.021127110347151756, -0.012693744152784348, -0.04339953139424324, 0.02177094668149948, 0.014940842986106873, -0.012751113623380661, -0.015547351911664009, -0.04552159085869789, -0.0033948798663914204, -0.07280033081769943, -0.020607810467481613, -0.007415297906845808, 0.019308434799313545, 0.027147889137268066, 0.0285948459059, 0.008301998488605022, -0.049087729305028915, 0.028309589251875877, 0.0005416182102635503, 0.02228638157248497, -0.04879916459321976, -0.006419233977794647, -0.002619728446006775, -0.013473263010382652, 0.029613293707370758, -0.0026605508755892515, -0.016886478289961815, 0.017244556918740273, 0.022897683084011078, -0.028425084426999092, 0.016162462532520294, -0.01393059641122818, -0.03928845748305321, -0.04082295671105385, 0.01879711076617241, 0.015223781578242779, -0.004885694477707148, 0.039966076612472534, 0.008935075253248215, 0.0028410612139850855, 0.04862642660737038, 0.007945495657622814, 0.008536675944924355, -0.015664171427488327, 0.013761715963482857, 0.011944087222218513, 0.0014306723605841398, -0.05364125221967697, 0.01059083640575409, -0.05096183717250824, -0.021433068439364433, -0.009398888796567917, 0.03477931767702103, -0.03226013109087944, -0.022898828610777855, -0.024851756170392036, 0.005131210200488567, -0.05826185271143913, -0.021773330867290497, -0.011614874005317688, 0.0021672993898391724, 0.05679596960544586, 0.0010620332323014736, 0.018299585208296776, 0.007911460474133492, -0.005368857644498348, 0.01749807968735695, 0.020730404183268547, -0.032212838530540466, 0.013336793519556522, -0.02470117062330246, -0.0355057530105114, -0.0009029951761476696, 0.03125373646616936, 0.004999004304409027, 0.0055554574355483055, 0.00013561113155446947, 0.011298720724880695, 0.012282261624932289, 0.02437206730246544, 0.034011054784059525, 0.04586825147271156, -0.011782809160649776, 0.0006396339158527553, -0.012407957576215267, 0.0006553529528900981, -0.008835004642605782, 0.004760976415127516, -0.020360851660370827, -0.02469848468899727, -0.021030494943261147, -0.07697125524282455, 0.009143531322479248, 0.031908441334962845, 0.018040422350168228, -0.0007053267909213901, -0.0296346303075552, -0.011571678332984447, -0.04263710975646973, 0.055457472801208496, 0.07462886720895767, -0.06505118310451508, 0.030109364539384842, 0.007165128365159035, 0.017963381484150887, -0.03918493166565895, 0.041156891733407974, -0.08921503275632858, -0.03568168357014656, -0.012883669696748257, 0.025478294119238853, -0.017541753128170967, -0.0383540540933609, -0.07213994860649109, -0.00010307986667612568, -0.00953669659793377, 0.017448551952838898, -0.005569590255618095, 0.022601718083024025, 0.012069832533597946, -0.007261297199875116, 0.02299601025879383, 0.005301271099597216, -0.001721194596029818, 0.023185797035694122, 0.00036709316191263497, 0.015214542858302593, -0.00802701711654663, 0.02567279152572155, 0.03154228255152702, -0.008772827684879303, -0.0313006155192852, -0.06623239070177078, -0.031124714761972427, -0.015733851119875908, 0.04116431623697281, -0.027457116171717644, 0.005777440033853054, -0.057576172053813934, -0.007920227013528347, -0.01785944774746895, -0.004275141283869743, -0.029184356331825256, -0.014646288007497787, 0.0236805472522974, 0.048843543976545334, -0.0027521182782948017, 0.010846716351807117, -0.008987278677523136, -0.036464303731918335, 0.04689354449510574, -0.045764632523059845, -0.03361337631940842, 0.001236380310729146, -0.06878659129142761, 0.0399257056415081, 0.017356695607304573, 0.023449329659342766, -0.049481187015771866, 0.03587758168578148, 0.02334354817867279, 0.03781982883810997, 0.06109689921140671, -0.013103533536195755, 0.04540940001606941, -0.03909600153565407, -0.014461037702858448, -0.10086318850517273, -0.00018897795234806836, 0.005845494102686644, -0.023752762004733086, -0.014165990054607391, 0.03709281608462334, -0.03954056650400162, 0.04051882028579712, -0.06098829582333565, -0.01940137706696987, 0.06899397075176239, 0.013871238566935062, 0.011496100574731827, 0.01264815591275692, -0.045281071215867996, 0.04954154044389725, 0.0435141995549202, -0.036028649657964706, -0.008028536103665829, -0.012711044400930405, 0.061750900000333786, 0.00599382258951664, 0.07597557455301285, -0.026816250756382942, -0.015595094300806522, 0.06772826611995697, 0.021583350375294685, 0.010760870762169361, 0.05775982141494751, -0.004754258319735527, 0.05722792446613312, 0.0020756826270371675, 0.01965329237282276, -0.0037199982907623053, 0.03607972338795662, 0.032527826726436615, -0.07148183137178421, 0.06169018894433975, -0.017134331166744232, -0.003780591068789363, -0.07431332767009735, 0.05691419169306755, -0.0017535326769575477, -0.011411161161959171, -0.043993763625621796, 0.021053044125437737, -0.04159650206565857, -0.020810460671782494, -0.011994059197604656, 0.014169050380587578, -0.022159665822982788, 0.06953094899654388, -0.028390221297740936, 0.003282630816102028, 0.07240943610668182, 0.011165078729391098, 0.0007532050367444754, -0.006430842913687229, 0.0677434653043747, 0.08326975256204605, 0.05883418023586273, 0.01689145900309086, 0.0748281478881836, -0.01716204732656479, -0.060046739876270294, -0.0036031980998814106, -0.02599582076072693, -0.02548774518072605, -0.06025218218564987, 0.027064433321356773, 0.06364177912473679, -0.015808675438165665, 0.06206043064594269, -0.002134572248905897, 0.007371966261416674, -0.028589097782969475, 0.0012546094367280602, 0.019698088988661766, 0.046638123691082, 0.0006306628929451108, 0.051712363958358765, 0.000825970433652401, -0.019302379339933395, 0.05378260836005211, -0.04457727447152138, -0.034558605402708054, 0.02102699875831604, 0.004510950762778521, -0.003620993113145232, 0.016954727470874786, 0.037150174379348755, 0.085075743496418, -0.03150288015604019, -0.006310792174190283, 0.01105336844921112, 0.03529231995344162, 0.015501775778830051, 0.014423883520066738, -0.013211214914917946, 0.007123500574380159, -0.0325220450758934, -0.022767072543501854, -0.03009648621082306, -0.026762640103697777, -0.012204961851239204, 0.06810477375984192, -0.015278186649084091, 0.004991692956537008, 0.038752686232328415, -0.022089380770921707, -0.062045276165008545, -0.03550300747156143, -0.05859925225377083, -0.03718656301498413, -0.052924465388059616, -0.0178653746843338, 0.018670883029699326, -0.004810762125998735, -0.0517675019800663, -0.04794856160879135, -0.00013958504132460803, 0.018376599997282028, -0.019124284386634827, -0.03416477516293526, -0.04304860532283783, 0.010892392136156559, 0.014699302613735199, 0.007280716206878424, 0.016351526603102684, 0.06293318420648575, 0.009421047754585743, -0.022558890283107758, -0.06537172943353653, 0.01891874521970749, 0.04941621795296669, 0.033698856830596924, 0.010231532156467438, -0.0791236013174057, 0.01822737418115139, 0.016839442774653435, 0.0028855116106569767, -0.07516856491565704, 0.040875062346458435, 0.020317811518907547, -0.011725472286343575, 0.07128775119781494, -0.022493423894047737, 0.019123300909996033, -0.043250057846307755, -0.022522293031215668, -0.013239031657576561, 0.027935737743973732, 0.02816106006503105, -0.02587270177900791, 0.06520812213420868, 0.011025823652744293, 0.0020689142402261496, -0.024165408685803413, 0.0020547572057694197, -0.03753112629055977, 0.0041228290647268295, -0.034127190709114075, -0.026960836723446846, -0.0528486892580986, -0.06738395988941193, -0.026730630546808243, 0.025947602465748787, -0.014718394726514816, -0.0315890833735466, 0.0053950403816998005, 0.024543259292840958, -0.03144685924053192, 0.0034674969501793385, -0.0517200343310833, -0.016202956438064575, -0.05000127851963043, -0.0002834373153746128, -0.020040078088641167, 0.012631861492991447, -0.014864225871860981, 0.011845586821436882, 0.02544000931084156, -0.031165147200226784, 0.012750275433063507, -0.03286010026931763, 0.031592659652233124, 0.03218464180827141, -0.0025005245115607977, 0.033834751695394516 ]
[ -0.08405017107725143, -0.017977021634578705, 0.0012843646109104156, -0.026280881837010384, 0.046268660575151443, -0.006429941859096289, -0.05739765241742134, 0.0013167152646929026, -0.033533647656440735, -0.00652854610234499, 0.01945464499294758, -0.04233904555439949, 0.03761819750070572, -0.011178203858435154, 0.00947550032287836, -0.01565120927989483, 0.003191328840330243, -0.04129819571971893, 0.029445968568325043, 0.045447103679180145, 0.02538108639419079, -0.011004076339304447, 0.0017355341697111726, -0.03988397493958473, 0.007724245544523001, 0.052619148045778275, 0.02245442196726799, 0.007861915975809097, -0.06762176752090454, -0.2147613912820816, 0.03933070972561836, 0.0019179286900907755, 0.0007096148910932243, -0.014468426816165447, -0.0053364732302725315, 0.028208987787365913, -0.002250101650133729, 0.03910360485315323, 0.04260975122451782, 0.031902145594358444, -0.011530234478414059, 0.024472782388329506, -0.04610532522201538, -0.03471500054001808, 0.0037433987017720938, -0.0338558703660965, -0.01672970876097679, -0.011760779656469822, 0.003853193949908018, 0.016909286379814148, -0.0007084935787133873, 0.037358976900577545, 0.020597534254193306, 0.027089955285191536, 0.006388197652995586, 0.0387524776160717, 0.05701437219977379, 0.053555384278297424, 0.04288887232542038, -0.05566007271409035, 0.023607570677995682, -0.00451414892449975, -0.12395361065864563, 0.1456574946641922, 0.04604269191622734, 0.003091902006417513, -0.018864858895540237, -0.03988891467452049, 0.0007574590272270143, 0.06449588388204575, -0.018209684640169144, -0.007576815318316221, -0.08872224390506744, 0.004430748056620359, 0.041778210550546646, -0.04424380511045456, -0.03357997536659241, 0.016815198585391045, 0.043922387063503265, -0.042552053928375244, -0.053997643291950226, 0.031706977635622025, -0.056787602603435516, 0.013689378276467323, 0.04410141706466675, -0.011912930756807327, -0.0010401287581771612, 0.023676596581935883, -0.01705130748450756, 0.02742581069469452, -0.012004291638731956, -0.037839893251657486, 0.02173345349729061, 0.02671830914914608, -0.06913316994905472, -0.024218063801527023, 0.04303926229476929, -0.0007365279016084969, -0.012580272741615772, 0.3701588809490204, -0.04861806705594063, 0.01728544943034649, 0.009347327053546906, 0.02704544924199581, 0.02631278708577156, -0.004225457552820444, 0.012948005460202694, 0.005186461843550205, -0.03335443139076233, 0.020800746977329254, 0.04816591739654541, 0.009755789302289486, 0.05653490871191025, -0.08588407188653946, 0.04445721209049225, 0.02038087323307991, -0.05852343514561653, -0.011577151715755463, 0.013221976347267628, 0.03837024047970772, -0.010043207556009293, 0.021727532148361206, 0.03459946811199188, -0.041348062455654144, -0.004164439160376787, 0.046051591634750366, 0.05558859184384346, 0.06799951195716858, 0.03549979254603386, 0.04931704327464104, 0.03876027092337608, 0.0029753590933978558, -0.030528822913765907, 0.029275087639689445, 0.03039448708295822, 0.028936099261045456, -0.00043785833986476064, -0.009697510860860348, -0.01018473319709301, -0.009522097185254097, -0.05686728283762932, -0.007769023533910513, 0.05945755913853645, -0.028414057567715645, 0.013133421540260315, 0.08257807791233063, -0.020825263112783432, 0.03573359176516533, -0.0393233448266983, -0.020523644983768463, -0.04901242256164551, -0.014290845952928066, 0.001462677144445479, -0.019282478839159012, -0.03468114882707596, -0.01074743177741766, 0.07870382815599442, 0.025501443073153496, 0.005821605212986469, -0.030291229486465454, -0.036450210958719254, -0.04662502184510231, -0.01689188927412033, 0.00003054748958675191, 0.0022046570666134357, -0.1815926879644394, -0.014382399618625641, 0.028208052739501, 0.0030818311497569084, -0.06112451106309891, -0.018862150609493256, 0.011511406861245632, -0.012952192686498165, 0.0007205413421615958, 0.10381253808736801, 0.006449062842875719, -0.03539382293820381, 0.0340816006064415, 0.0977037250995636, 0.018004940822720528, -0.04232017695903778, -0.01896570809185505, -0.02903221733868122, 0.019916536286473274, -0.04876427352428436, -0.049593664705753326, -0.05005594342947006, 0.011171326041221619, 0.02628086879849434, 0.0031919097527861595, -0.02560814470052719, -0.0648636594414711, -0.06412902474403381, 0.07515732198953629, -0.0030723686795681715, -0.025944983586668968, -0.0018424149602651596, -0.04387408867478371, -0.024307461455464363, 0.007456071209162474, -0.00008209778025047854, 0.012317253276705742, 0.02805902250111103, -0.0064100525341928005, 0.005392039660364389, 0.02449517324566841, -0.0029037226922810078, -0.04065869748592377, 0.04623430594801903, -0.04412199929356575, -0.052804846316576004, 0.03396839648485184, -0.002446225378662348, -0.022774724289774895, -0.035208698362112045, 0.0011000246740877628, -0.04159335047006607, -0.013816350139677525, -0.000984902959316969, 0.04861430451273918, 0.02292608842253685, 0.009428744204342365, -0.016482088714838028, -0.3604017198085785, -0.04531722888350487, -0.04472241550683975, 0.008468030020594597, 0.00032276511774398386, -0.08713621646165848, 0.014632376842200756, 0.0030287737026810646, 0.04173392802476883, -0.033300355076789856, 0.09895411878824234, 0.021602123975753784, 0.018222162500023842, -0.0733504593372345, -0.01683679223060608, 0.037355706095695496, -0.0396905392408371, -0.015184259042143822, 0.00706719234585762, -0.03151838481426239, -0.024570250883698463, 0.005621255841106176, 0.004284474533051252, -0.09284082055091858, 0.02182159759104252, -0.0040000611916184425, 0.11512113362550735, -0.0024138279259204865, -0.026352327316999435, -0.036704715341329575, 0.02768602780997753, 0.010144076310098171, 0.02345350570976734, -0.04952549189329147, -0.02876085415482521, -0.03261132538318634, 0.01815428026020527, 0.05597805604338646, -0.01972375623881817, 0.02262939140200615, 0.013352388516068459, 0.040612656623125076, 0.0009007419575937092, -0.08603163063526154, -0.015117493458092213, 0.002265745773911476, 0.0035711766686290503, -0.009189065545797348, 0.0012277138885110617, 0.017114149406552315, 0.041965778917074203, 0.00952289067208767, -0.029733657836914062, 0.02424292452633381, 0.013191735371947289, -0.022751765325665474, -0.004256801679730415, -0.017206745222210884, 0.006592108868062496, -0.00955423153936863, 0.004201486241072416, 0.02971004880964756, 0.0530090257525444, -0.044195711612701416, -0.010173693299293518, 0.04588986933231354, 0.02326289378106594, -0.07254216074943542, 0.004791510757058859, 0.002681935438886285, 0.0018303361721336842, 0.14202840626239777, -0.031283434480428696, 0.008740046061575413, 0.06151207536458969, -0.0165002029389143, 0.01914125308394432, 0.018312664702534676, 0.03147458657622337, 0.018848270177841187, 0.001974815269932151, -0.006333743222057819, 0.057235732674598694, 0.031239867210388184, -0.007318141404539347, 0.012414727360010147, 0.003294003428891301, -0.025113923475146294, -0.004285826813429594, 0.0378398634493351, 0.0023923164699226618, -0.04727403074502945, -0.015350845642387867, -0.0368223674595356, 0.03232455626130104, 0.019270988181233406, -0.26449400186538696, 0.00222611241042614, 0.004490438383072615, 0.04792160168290138, 0.000845471047796309, 0.034783877432346344, 0.039896734058856964, -0.008910417556762695, -0.05163057520985603, -0.021606741473078728, -0.06642206013202667, 0.09953879565000534, 0.02047477290034294, -0.016172779724001884, 0.025091074407100677, 0.018516449257731438, 0.0528111457824707, 0.025108089670538902, -0.03543959558010101, -0.0329747274518013, 0.0005877807270735502, -0.04665316641330719, 0.17615178227424622, 0.061592087149620056, -0.0102127306163311, 0.0462883897125721, 0.017089977860450745, -0.026375945657491684, 0.06492964923381805, 0.039873190224170685, -0.004120301455259323, -0.04819190502166748, -0.0018635046435520053, 0.020038163289427757, 0.02300623245537281, -0.008035159669816494, -0.04289351403713226, 0.05169757083058357, 0.0022928600665181875, -0.02094103768467903, -0.03679610416293144, 0.061780668795108795, -0.024528736248612404, 0.007047528866678476, 0.03889041021466255, -0.048308614641427994, -0.003580925753340125, -0.050464775413274765, 0.0021976009011268616, 0.005958392284810543, -0.030806846916675568, -0.08623863756656647, -0.05108918994665146, -0.014763003215193748, -0.007209445349872112, 0.03531217947602272, -0.013135312125086784, 0.01119027379900217, 0.07965543121099472, 0.003290665103122592, 0.03720823675394058, -0.01966148056089878, 0.1547735035419464, -0.00539765227586031, -0.00012632877042051405 ]
[ -0.022275956347584724, 0.044909652322530746, 0.006590635050088167, 0.020829515531659126, 0.010726175270974636, -0.019852278754115105, -0.005980282090604305, 0.04569461941719055, -0.016590455546975136, -0.03081255406141281, -0.005344484932720661, 0.016584482043981552, 0.04752100631594658, 0.017140952870249748, 0.04694903641939163, -0.039045386016368866, 0.01723404973745346, -0.01589909754693508, 0.0034887695219367743, 0.0062135676853358746, -0.002246375195682049, -0.00912677776068449, -0.0178372822701931, -0.004524281248450279, -0.01262727938592434, 0.010099786333739758, -0.06395114213228226, 0.0020976299419999123, 0.03321785852313042, -0.11164692044258118, -0.004544294439256191, -0.03528095781803131, 0.0003617136972025037, -0.021001353859901428, -0.02954116091132164, -0.0236755833029747, 0.037990082055330276, -0.002251789905130863, 0.026099076494574547, -0.008227675221860409, 0.03299829736351967, -0.02688932977616787, -0.02626175433397293, -0.03796881064772606, 0.029776964336633682, -0.03171919286251068, -0.024325797334313393, -0.04535322263836861, -0.018350200727581978, -0.003852492431178689, -0.026392456144094467, 0.033064164221286774, -0.007922479882836342, -0.03325556591153145, -0.06541570276021957, 0.076555997133255, -0.02058594860136509, 0.012979582883417606, 0.07290750741958618, -0.019374573603272438, -0.005761242937296629, -0.0008146393811330199, -0.027987217530608177, -0.036803100258111954, 0.0032155143562704325, -0.026012364774942398, -0.006479545962065458, -0.04169268533587456, 0.031040098518133163, 0.051996197551488876, 0.00994167011231184, 0.004398922901600599, 0.0012002810835838318, -0.02414022758603096, -0.00912143848836422, -0.015028437599539757, -0.021814391016960144, -0.03540773317217827, -0.020456727594137192, -0.025776665657758713, 0.006916307844221592, -0.010829892009496689, 0.014565674588084221, 0.061919115483760834, 0.034021493047475815, -0.01690899394452572, 0.0244105476886034, 0.009660432115197182, -0.0048328423872590065, -0.02076363004744053, 0.012347295880317688, -0.017500868067145348, -0.012124239467084408, 0.013028692454099655, -0.091109499335289, -0.005556710530072451, 0.026734329760074615, 0.011192788369953632, -0.024776706472039223, 0.8286880850791931, -0.019177673384547234, -0.047162070870399475, 0.026930777356028557, 0.041576024144887924, 0.010600308887660503, 0.01869942620396614, -0.02441875822842121, 0.001165979658253491, -0.004894426092505455, 0.026558328419923782, 0.03658253327012062, 0.0064900279976427555, -0.010328991338610649, 0.0007163528935052454, 0.029138363897800446, 0.05145281180739403, -0.04787394404411316, -0.0006334606441669166, 0.0066712102852761745, 0.059678565710783005, 0.07489504665136337, 0.023314600810408592, -0.006385377608239651, 0.010444343090057373, 0.022613337263464928, -0.17090512812137604, 0.0555589534342289, -5.828986652901849e-33, 0.0116162383928895, -0.02231649123132229, 0.012909850105643272, -0.004850000608712435, 0.013956920243799686, 0.014248465187847614, -0.0233477596193552, 0.012368395924568176, 0.023606427013874054, -0.022701872512698174, 0.03047841228544712, 0.020767943933606148, -0.021578731015324593, -0.021821219474077225, -0.010154377669095993, 0.0069450256414711475, 0.019243093207478523, 0.014679409563541412, 0.023550009354948997, 0.011395645327866077, 0.05482912063598633, 0.017732681706547737, -0.004516461864113808, 0.0035704930778592825, 0.011695440858602524, 0.01712610572576523, 0.03193116933107376, 0.0069368877448141575, -0.017136940732598305, -0.03224404528737068, -0.002358623780310154, 0.014895301312208176, 0.036696821451187134, -0.02164875902235508, 0.030031658709049225, -0.04116129130125046, -0.002105492865666747, -0.02468872256577015, -0.02532043494284153, -0.0272830743342638, -0.008300598710775375, -0.012054993771016598, -0.044196341186761856, -0.0275126900523901, -0.04671826958656311, 0.010104593820869923, -0.0011368835112079978, 0.039940666407346725, -0.006689601112157106, 0.043705254793167114, -0.014408574439585209, 0.008677392266690731, -0.035501569509506226, -0.0355980210006237, 0.006652755197137594, -0.012859982438385487, -0.015528593212366104, -0.00857874657958746, 0.0050914231687784195, -0.0034474965650588274, 0.014589555561542511, -0.04672197997570038, -0.02072840929031372, -0.008516973815858364, -0.0030706364195793867, 0.009987691417336464, 0.004111193120479584, 0.033104605972766876, 0.011182649992406368, 0.018325086683034897, -0.058742955327034, 0.009600389748811722, 0.011935773305594921, 0.0012239105999469757, 0.003406757256016135, -0.03167809173464775, 0.011427700519561768, 0.048929616808891296, 0.006630804855376482, 0.03580660745501518, -0.002075450960546732, -0.027893107384443283, -0.00639295531436801, 0.003806761931627989, 0.02467970922589302, -0.058040134608745575, 0.05501055717468262, 0.02109852060675621, -0.06432640552520752, -0.04792395234107971, 0.010679514147341251, 0.028306104242801666, 0.02680075541138649, -0.009666831232607365, -0.062328532338142395, 6.350415743117461e-33, 0.006353483535349369, -0.0043341610580682755, -0.026660973206162453, 0.03621497005224228, 0.01748509705066681, -0.0022089099511504173, 0.024369515478610992, 0.04033871367573738, 0.009685763157904148, 0.03280249238014221, -0.011882136575877666, 0.002156083472073078, 0.00398249039426446, 0.014534516260027885, 0.033178143203258514, 0.004145190119743347, 0.0007193738711066544, -0.018497344106435776, -0.0030502709560096264, 0.02313995733857155, -0.018052222207188606, 0.002620175015181303, -0.007224039174616337, 0.02607167512178421, 0.03284258767962456, 0.017237959429621696, 0.0011612429516389966, -0.0028047431260347366, 0.004318610765039921, 0.007038274314254522, -0.0408613421022892, -0.011058486066758633, 0.015416933223605156, -0.0327170193195343, 0.022786904126405716, 0.032624781131744385, 0.011703694239258766, -0.03109027072787285, -0.027295876294374466, -0.02053385227918625, 0.045037344098091125, -0.014416887424886227, 0.011503334157168865, 0.019730357453227043, 0.011517918668687344, 0.019576940685510635, 0.009461667388677597, 0.03340322896838188, -0.00426819920539856, 0.029696017503738403, 0.005302499048411846, -0.033584654331207275, 0.015856627374887466, 0.0339004322886467, -0.004181408789008856, -0.03873385861515999, 0.01930960640311241, 0.029836172237992287, -0.022964738309383392, 0.0038401447236537933, 0.0008194310939870775, 0.020319079980254173, -0.013554268516600132, 0.01708865351974964, -0.028514321893453598, -0.008505680598318577, -0.055470459163188934, -0.022490190342068672, -0.003311938839033246, 0.005933375097811222, 0.044915731996297836, -0.03936329483985901, -0.017956169322133064, 0.029121847823262215, -0.022300999611616135, -0.03833779692649841, 0.022857800126075745, -0.00863292720168829, -0.012300179339945316, 0.0016034743748605251, -0.0029605862218886614, 0.019646598026156425, 0.00476952875033021, -0.01849227026104927, -0.031051097437739372, 0.034912437200546265, -0.08465903252363205, 0.02287110686302185, 0.02177748829126358, 0.030536845326423645, -0.02991311065852642, 0.002284107729792595, -0.02704467624425888, 0.040875643491744995, 0.029722096398472786, -1.213100819796864e-8, 0.0075041609816253185, 0.03065311163663864, -0.0022771996445953846, 0.0062617105431854725, 0.03660900518298149, 0.017881691455841064, -0.03476399928331375, -0.032410334795713425, -0.029469119384884834, 0.00862098764628172, 0.06093299016356468, -0.04073074460029602, 0.003731962526217103, -0.00041475408943369985, -0.01605278067290783, 0.01756400801241398, 0.0019467371748760343, -0.0018601877382025123, 0.03270314261317253, -0.03712878003716469, -0.016769135370850563, 0.02483457140624523, 0.051276709884405136, -0.011130470782518387, 0.017079150304198265, 0.0023378932382911444, 0.014944917522370815, -0.0524798221886158, -0.035025160759687424, -0.010531395673751831, -0.04589960724115372, -0.026730801910161972, -0.014687630347907543, -0.0017300562467426062, -0.00923458207398653, -0.03609335049986839, -0.016055958345532417, -0.002623432781547308, 0.006097130477428436, -0.023971714079380035, 0.0358683243393898, 0.0017830801662057638, -0.009838618338108063, -0.02192438393831253, -0.0054900008253753185, -0.012967264279723167, -0.01870851404964924, 0.000427293503889814, 0.043316800147295, -0.0016846135258674622, -0.025564156472682953, -0.024205438792705536, 0.007542290724813938, -0.015226829797029495, 0.010628961957991123, -0.0032423739321529865, 0.027613312005996704, -0.04277346655726433, -0.002214290900155902, 0.006003170274198055, 0.03132341802120209, 0.012982011772692204, 0.003435871098190546, -0.016970187425613403 ]
dash-configurable-dcc-interval
https://markhneedham.com/blog/2022/04/23/dash-configurable-dcc-interval
false
2022-02-19 02:44:37
Streamlit: Overwrite previous value in a loop
[ "streamlit" ]
[ "streamlit" ]
I was recently building a Streamlit app in which I was looping through a stream of values and wanted to only print out the most recent value. In this blog post we'll learn how to do that. .Streamlit: Overwrite previous value in a loop image::{{<siteurl>}}/uploads/2022/02/streamlit-banner.png[] == Setup If you want to play along you'll need to create a virtual environment and install Streamlit: [source, bash] ---- python -m venv env source venv/bin/activate pip install streamlit ---- == Streamlit App Now, create a file `app.py` that contains the following: .app.py [source, python] ---- import streamlit as st st.markdown("#### Numbers one after the other") for i in range(0,10): st.write(i) ---- And run the following command from the terminal: [source, bash] ---- streamlit run app.py ---- If we run this command it will open a web browser at http://localhost:8501, and we'll see the following output: .Numbers one after the other image::{{<siteurl>}}/uploads/2022/02/numbers-one-after-the-other.png[width="300px"] The numbers are all printed out, which isn't exactly what we want. In this example we're only printing out 10 numbers, but if we had a bigger stream of values it would eventually crash the browser! Instead we can use a single element container (https://docs.streamlit.io/library/api-reference/layout/st.empty[`st.empty`]) and populate that on each loop. Let's update `app.py` to look like this: .app.py [source, python] ---- import streamlit as st left, right = st.columns(2) with left: st.markdown("#### Numbers one after the other") for i in range(0,10): st.write(i) with right: st.markdown("#### Numbers overwriting each other") numbers = st.empty() for i in range(0,10): with numbers.container(): st.write(i) ---- Now if we go back to our Streamlit app, we'll see the following: .Numbers overwriting each other image::{{<siteurl>}}/uploads/2022/02/numbers-overwriting-each-other.png[width="600px"] We can only see the number 9 because that's the last value that got printed. If we want to see how the output progresses, we'll need to pause the loop for a little bit after each iteration. Update `app.py` to look like this: .app.py [source, python] ---- import streamlit as st import time left, right = st.columns(2) with left: st.markdown("#### Numbers one after the other") for i in range(0,10): st.write(i) with right: st.markdown("#### Numbers overwriting each other") numbers = st.empty() for i in range(0,10): with numbers.container(): st.write(i) time.sleep(0.5) ---- And now if we refresh the page, we'll see it update like this: .Numbers overwriting each other animation image::{{<siteurl>}}/uploads/2022/02/sleep-numbers.gif[width="600px"] Exactly what I wanted - good work Streamlit!
In this post we'll learn how to write out to the screen only the latest value in a loop of values using Streamlit.
uploads/2022/02/streamlit-banner.png
[ 0.004007765091955662, -0.006639185827225447, 0.006918187718838453, 0.01686543971300125, 0.07895686477422714, 0.006774348206818104, -0.002563401125371456, 0.049306146800518036, -0.0010520971845835447, -0.02410285919904709, -0.03930258750915527, -0.02159946970641613, -0.08928945660591125, 0.0064217629842460155, 0.014285244978964329, 0.07215263694524765, 0.08605813980102539, -0.015495385974645615, 0.029755251482129097, 0.0017012672033160925, -0.00048129289643839, 0.05949197709560394, -0.046364620327949524, 0.02508150041103363, 0.005683217663317919, -0.016149966046214104, 0.016812782734632492, -0.02827463485300541, -0.050675638020038605, 0.008591504767537117, 0.0184982530772686, -0.005692904349416494, -0.0008331278804689646, -0.0035046192351728678, 0.03451251611113548, -0.0070062847808003426, 0.005102751776576042, 0.0010780373122543097, -0.029372017830610275, 0.021516745910048485, -0.07849492132663727, -0.005556370597332716, -0.018898041918873787, 0.005302680656313896, -0.014866145327687263, 0.02770482376217842, -0.009655403904616833, 0.01636640727519989, -0.035454265773296356, 0.016366833820939064, -0.060658689588308334, 0.04357963055372238, -0.018257824704051018, -0.024529436603188515, 0.0007501908694393933, 0.04941491410136223, 0.027654092758893967, -0.06782293319702148, 0.029202941805124283, -0.02766137197613716, 0.002107668435201049, -0.009367074817419052, -0.011684665456414223, 0.07095947861671448, 0.01040969043970108, -0.04689260572195053, -0.015163002535700798, 0.04762750491499901, -0.033109039068222046, -0.03469644486904144, -0.00898616574704647, 0.044631943106651306, -0.060696009546518326, -0.02118600904941559, 0.020204173400998116, -0.027853038161993027, -0.012906467542052269, 0.05438883602619171, 0.016031315550208092, 0.035955484956502914, 0.002448167884722352, -0.0030236125458031893, 0.038420241326093674, 0.04048531875014305, 0.010424436070024967, -0.014953571371734142, -0.010690552182495594, -0.016466202214360237, -0.04926801845431328, 0.023295190185308456, 0.00714457081630826, -0.06913580745458603, 0.035973526537418365, 0.02225460112094879, 0.008377991616725922, -0.006260213907808065, -0.03840436786413193, 0.024199029430747032, 0.01671946421265602, -0.02291974425315857, -0.06359986960887909, -0.0032497767824679613, 0.03590536117553711, 0.021451998502016068, -0.07548750936985016, -0.01603231579065323, -0.024254703894257545, -0.02142557129263878, 0.021933285519480705, -0.0012879692949354649, -0.013431351631879807, -0.0026989574544131756, -0.02035943605005741, 0.010901608504354954, -0.07526720315217972, 0.054948557168245316, 0.00566916074603796, -0.039596766233444214, 0.0204139556735754, 0.017491653561592102, 0.021989010274410248, 0.022504884749650955, 0.016876623034477234, 0.07324039936065674, -0.0006106665823608637, 0.017225952818989754, 0.004560430999845266, 0.053767021745443344, -0.012294420041143894, -0.07540257275104523, 0.009024854749441147, 0.07422012835741043, -0.01574782468378544, -0.004022599197924137, -0.009087683632969856, 0.024830985814332962, -0.005679183639585972, -0.02901085838675499, 0.06547906994819641, 0.04593652859330177, -0.01812724955379963, -0.012298948131501675, 0.016163550317287445, -0.0021548550575971603, 0.0012432654621079564, 0.018025118857622147, -0.008500630035996437, -0.03843418508768082, -0.040984634310007095, 0.04079495742917061, 0.012210510671138763, 0.003010421060025692, 0.07955709099769592, -0.018880700692534447, -0.011638023890554905, 0.07142198085784912, 0.03554393723607063, 0.05412885174155235, -0.042296554893255234, 0.010270001366734505, 0.056265708059072495, 0.05773838609457016, 0.02111123874783516, 0.055967144668102264, 0.017642945051193237, -0.012428948655724525, 0.0021892909426242113, 0.012458090670406818, -0.016405554488301277, -0.018061857670545578, -0.033095113933086395, -0.03658026084303856, 0.06626660376787186, -0.018453340977430344, -0.008357437327504158, 0.019947899505496025, 0.07473594695329666, 0.017270538955926895, 0.05037938803434372, 0.017463037744164467, -0.06608039885759354, 0.037425506860017776, -0.011028812266886234, 0.0351637527346611, 0.03259267657995224, 0.0059472061693668365, 0.08169903606176376, 0.03178460896015167, 0.005417370703071356, -0.007933436892926693, -0.06496092677116394, -0.07949326187372208, -0.05676307901740074, -0.008238189853727818, 0.05813974887132645, -0.055498551577329636, -0.0190995242446661, 0.08290953189134598, 0.052832141518592834, 0.05273580178618431, 0.011320186778903008, 0.008815926499664783, 0.004835779778659344, -0.05511985719203949, -0.06930657476186752, 0.005240947473794222, 0.040784236043691635, -0.029130712151527405, -0.024837730452418327, 0.033250246196985245, -0.03276010602712631, 0.003144635586068034, 0.01638987474143505, 0.004185041878372431, 0.041148893535137177, 0.007279340643435717, 0.029586801305413246, -0.03273562341928482, 0.028266794979572296, -0.022528959438204765, 0.009740002453327179, -0.00038407111424021423, -0.007897766306996346, -0.031038308516144753, 0.022502869367599487, 0.1246442198753357, 0.04263930395245552, -0.01537061482667923, -0.06235155463218689, -0.0020195040851831436, -0.025780973955988884, -0.023084504529833794, -0.018128270283341408, -0.01599888503551483, -0.040620483458042145, -0.0019117703195661306, -0.03919821232557297, 0.007376347202807665, -0.011776013299822807, -0.02835783176124096, 0.01079572830349207, 0.06130371242761612, -0.005033936817198992, 0.04242473840713501, 0.027864081785082817, -0.04472114518284798, -0.00947624072432518, -0.021753860637545586, -0.060376137495040894, -0.01619534194469452, 0.03674064576625824, -0.0044653574004769325, 0.037100549787282944, -0.03989976644515991, -0.06054123491048813, 0.01276424340903759, -0.07041450589895248, 0.026950865983963013, 0.03975266218185425, 0.029721397906541824, -0.042357489466667175, 0.026835722848773003, 0.016309451311826706, 0.0016634532948955894, -0.026758067309856415, -0.03924873098731041, -0.04336971417069435, 0.015359904617071152, 0.027961045503616333, 0.0406000092625618, 0.03311280161142349, 0.03209514915943146, -0.010371249169111252, -0.009266437962651253, -0.010240576229989529, -0.007945409044623375, 0.04691353440284729, -0.009409361518919468, 0.010579564608633518, -0.046318475157022476, -0.011704799719154835, 0.06422800570726395, -0.0477212555706501, -0.023282872512936592, 0.0037285019643604755, -0.058466553688049316, 0.023281842470169067, -0.04608124494552612, -0.036931801587343216, -0.0014813566813245416, 0.0021660872735083103, 0.029447857290506363, 0.004095818847417831, 0.026982847601175308, 0.05555092915892601, 0.03471437096595764, 0.004029191564768553, 0.0013824532506987453, 0.000054414231271948665, 0.03937450423836708, 0.014082935638725758, -0.039216309785842896, 0.05654001981019974, -0.007905986160039902, -0.012087969109416008, -0.04168340563774109, 0.022660978138446808, -0.04090321809053421, -0.26701006293296814, 0.027300134301185608, -0.014342224225401878, -0.03269238397479057, 0.014271344989538193, -0.028566351160407066, 0.01991640031337738, -0.03677677735686302, -0.010965538211166859, 0.030352557078003883, -0.0502549447119236, -0.04822595790028572, -0.036285124719142914, 0.02555418573319912, 0.014892549254000187, 0.013375370763242245, 0.014086978510022163, -0.0345478355884552, 0.027051473036408424, 0.03335029259324074, -0.006455091759562492, -0.059641432017087936, 0.007184237707406282, 0.06136677786707878, 0.02466082200407982, 0.027742665261030197, -0.056750666350126266, 0.06525048613548279, -0.03342728316783905, -0.02428911253809929, 0.016567574813961983, -0.055875975638628006, 0.016851982101798058, 0.008729570545256138, -0.025679633021354675, -0.015416244976222515, 0.02797095663845539, -0.016432026401162148, 0.015235111117362976, 0.015167140401899815, -0.023126494139432907, -0.020265696570277214, -0.01598076894879341, -0.012159003876149654, 0.05046484246850014, -0.018205249682068825, -0.05590825527906418, -0.0015451130457222462, -0.02957317791879177, 0.07019898295402527, -0.02730821631848812, -0.02829504758119583, -0.027319684624671936, 0.01976606249809265, -0.034618984907865524, -0.018531206995248795, -0.039547212421894073, -0.007628988474607468, -0.04580450430512428, -0.008284222334623337, 0.005904610734432936, -0.028029948472976685, -0.018670227378606796, -0.02642330341041088, 0.037724774330854416, -0.04472893103957176, -0.05384904518723488, 0.007037159986793995, 0.049751609563827515, 0.040683966130018234, -0.03896946832537651, -0.013763242401182652, -0.015078925527632236, -0.11333326250314713, -0.010535180568695068, -0.03997483104467392, -0.021022971719503403, 0.009881471283733845, -0.01765422150492668, 0.019764741882681847, -0.04483722522854805, -0.04303325340151787, 0.03297022357583046, 0.023095769807696342, 0.008203675970435143, -0.03882117196917534, -0.0003367745375726372, -0.024180017411708832, -0.014049038290977478, -0.010886745527386665, 0.08473894000053406, -0.01929721049964428, 0.006517947185784578, -0.023240795359015465, -0.02524712309241295, 0.038491390645504, 0.012485907413065434, 0.004364477004855871, 0.012766827829182148, 0.038304995745420456, 0.06654711812734604, -0.022212566807866096, -0.013921422883868217, -0.06761474162340164, 0.0206318236887455, 0.0004551914462354034, -0.05981369689106941, 0.011258549988269806, -0.011623242869973183, 0.02559632435441017, -0.02508636936545372, -0.0025386332999914885, 0.0060968478210270405, -0.05320405587553978, -0.001956356456503272, 0.006288343109190464, 0.037067532539367676, 0.006246791686862707, -0.018178235739469528, -0.04541017860174179, -0.06431630998849869, 0.036400873214006424, 0.023328332230448723, -0.018222281709313393, -0.03931260108947754, -0.06399022787809372, -0.005168953910470009, 0.003427207935601473, 0.002262496156617999, -0.005466749891638756, -0.017277656123042107, 0.017811551690101624, 0.03713485226035118, -0.04134457930922508, 0.015310113318264484, -0.018506674095988274, 0.02893315814435482, -0.058113835752010345, -0.0023953611962497234, 0.029479380697011948, -0.017464546486735344, 0.01305654738098383, 0.018193434923887253, 0.03358013182878494, 0.02190401218831539, -0.008792556822299957, 0.041090287268161774, -0.008548697456717491, -0.033348072320222855, -0.012407579459249973, -0.03366141393780708, -0.06405261158943176, 0.04106717184185982, -0.01564284972846508, -0.019313596189022064, -0.015825223177671432, 0.01351587101817131, -0.014382933266460896, -0.017039109021425247, -0.026044482365250587, 0.024567924439907074, -0.026344485580921173, -0.012299977242946625, 0.022307636216282845, -0.02220907434821129, 0.04992007464170456, -0.003011834342032671, 0.038674771785736084, 0.012917987070977688, -0.012049254961311817, 0.024884650483727455, -0.0069536021910607815, -0.012103364802896976, 0.005938549060374498, 0.00007492883742088452, -0.004256283398717642, 0.01619025133550167, 0.013952002860605717, -0.014079485088586807, 0.0070320963859558105, 0.01615888625383377, 0.016723627224564552, 0.006552848033607006, 0.005839965306222439, 0.05946539342403412, 0.03939783573150635, -0.010325370356440544, 0.02069045603275299, -0.03753421828150749, -0.004368128255009651, -0.04831400513648987, 0.0024066949263215065, -0.03929857537150383, -0.006365702021867037, -0.02583109773695469, -0.06402681767940521, 0.010770208202302456, 0.05025078356266022, 0.025234578177332878, -0.008639766834676266, -0.030772440135478973, -0.002407653257250786, -0.02760312892496586, 0.011680587194859982, 0.07496398687362671, -0.04223174974322319, -0.005979468580335379, -0.018864892423152924, 0.007576669566333294, -0.0041800616309046745, 0.02769865281879902, -0.055938441306352615, -0.004478739108890295, -0.014126677997410297, -0.001384277013130486, -0.0019213545601814985, -0.029297614470124245, -0.03826635330915451, 0.004999183118343353, -0.042093392461538315, 0.03041709214448929, 0.002271305536851287, 0.01087303925305605, -0.036050260066986084, -0.05033130571246147, 0.00483702914789319, -0.009898538701236248, -0.018050799146294594, 0.056033726781606674, 0.0006097411969676614, 0.03939109295606613, -0.0363786518573761, 0.03669571876525879, 0.044617559760808945, 0.027271099388599396, -0.012250257655978203, -0.0705641359090805, 0.020656775683164597, -0.007153219077736139, 0.04463023692369461, -0.02119944617152214, -0.015000822022557259, -0.03495136275887489, 0.007809767033904791, 0.030452456325292587, -0.015529923141002655, -0.047533079981803894, -0.0338057242333889, 0.008503749035298824, 0.071897491812706, 0.024802038446068764, 0.03939245268702507, 0.020871972665190697, -0.04181591048836708, 0.06141776964068413, -0.048001788556575775, -0.0338331013917923, -0.014397868886590004, -0.056643035262823105, 0.041893359273672104, 0.0030869313050061464, 0.024972455576062202, -0.0962238758802414, 0.06120189279317856, 0.04986706003546715, 0.012352436780929565, 0.058710288256406784, -0.005178194027394056, 0.019402747973799706, -0.005767835304141045, -0.009027601219713688, -0.11119181662797928, -0.012780039571225643, 0.011152827180922031, 0.006468772888183594, -0.00425823125988245, -0.012284643948078156, -0.030339524149894714, 0.04319436103105545, -0.06449741870164871, -0.023247353732585907, 0.042800113558769226, 0.01773570291697979, -0.007548784837126732, 0.021828489378094673, -0.030912747606635094, 0.061194032430648804, 0.050353627651929855, -0.019946226850152016, -0.008491383865475655, -0.014107703231275082, 0.06439455598592758, -0.005766488146036863, 0.015796521678566933, -0.004297441802918911, -0.0011335297022014856, 0.07675950229167938, 0.022021900862455368, 0.02822895534336567, 0.045797623693943024, -0.004340739920735359, 0.024026941508054733, 0.03392879292368889, -0.0009533913689665496, -0.0030269392300397158, 0.011152079328894615, 0.00910855457186699, -0.04698364436626434, 0.021117640659213066, 0.03510360047221184, -0.003977947868406773, -0.02265629544854164, 0.07223541289567947, -0.0016383557813242078, -0.04233790189027786, -0.045267943292856216, 0.03180817514657974, -0.057705994695425034, -0.027515413239598274, -0.03773199021816254, -0.011318342760205269, -0.05328504368662834, 0.06024551764130592, 0.0025093667209148407, -0.00814902875572443, 0.08149944990873337, -0.02319549396634102, -0.015498429536819458, 0.007312845904380083, 0.06963758170604706, 0.09158783406019211, 0.04397299885749817, -0.008399637416005135, 0.0737764835357666, -0.04311233013868332, -0.04379276558756828, 0.00749296834692359, -0.03519849479198456, 0.0056030647829174995, -0.03606370463967323, 0.01187675166875124, 0.07199236750602722, -0.02265600673854351, 0.09832330048084259, -0.02886248007416725, -0.003974866587668657, -0.010305013507604599, 0.019708877429366112, 0.007670712657272816, 0.058881450444459915, 0.008911790326237679, 0.02792421728372574, -0.015964994207024574, -0.03072253242135048, 0.05082964524626732, -0.023866770789027214, -0.018095549196004868, 0.04090535268187523, 0.016989635303616524, 0.0010415026918053627, 0.012419822625815868, 0.06378595530986786, 0.06230245530605316, -0.03890465199947357, -0.028873205184936523, -0.006836191285401583, 0.06627170741558075, 0.004830571822822094, 0.031690195202827454, -0.002425537910312414, -0.02864786982536316, 0.04207884520292282, -0.024136392399668694, -0.009730350226163864, -0.03996659442782402, -0.019400088116526604, 0.024094989523291588, -0.028679870069026947, -0.0052987365052104, -0.0020109291654080153, -0.007540073245763779, -0.024105839431285858, -0.04619375243782997, -0.041050560772418976, -0.05701962485909462, -0.08842907100915909, -0.009563417173922062, -0.0018499217694625258, -0.002025413094088435, -0.03190692886710167, -0.06174582242965698, -0.017084723338484764, 0.0024467227049171925, 0.01994008757174015, -0.027426827698946, -0.028909912332892418, 0.03068617358803749, 0.03318791463971138, -0.014925409108400345, 0.01847331039607525, 0.03064967878162861, -0.03506940230727196, -0.03266878053545952, -0.02149307355284691, 0.022553205490112305, 0.049485187977552414, -0.015507376752793789, -0.02042890526354313, -0.07964963465929031, 0.043892063200473785, 0.03332466259598732, 0.02724934183061123, -0.064656563103199, 0.012015122920274734, 0.03809278458356857, -0.00638699671253562, 0.036099325865507126, -0.040173597633838654, 0.0039764088578522205, -0.057456422597169876, -0.020094938576221466, -0.017481012269854546, 0.0390065498650074, 0.04158525541424751, -0.006307527422904968, 0.04933568090200424, 0.03586090728640556, 0.017422160133719444, -0.02836751751601696, -0.0242396742105484, -0.0221170075237751, 0.008475379087030888, -0.04931105300784111, -0.021431535482406616, -0.0761033371090889, -0.04941432923078537, -0.018569665029644966, 0.01989889331161976, -0.015097150579094887, -0.03832926228642464, -0.0035146884620189667, 0.03432846814393997, -0.027342066168785095, 0.05286704748868942, -0.031064501032233238, 0.01942230574786663, -0.020404940471053123, -0.00758373225107789, 0.001883086864836514, 0.041687220335006714, 0.013577555306255817, 0.011366542428731918, 0.0020423424430191517, -0.011192573234438896, -0.008262797258794308, -0.018356790766119957, 0.014410327188670635, 0.03073623590171337, -0.0017516408115625381, 0.02776099182665348 ]
[ -0.08547896891832352, -0.037697769701480865, -0.030727950856089592, -0.04777278006076813, 0.03798331320285797, -0.07312246412038803, -0.03859541192650795, 0.007897350937128067, 0.0077485376968979836, 0.03277771547436714, -0.017668934538960457, -0.052126798778772354, -0.02806440182030201, -0.025643084198236465, 0.0498882532119751, -0.01732502318918705, -0.021666277199983597, -0.06914522498846054, -0.05057860165834427, 0.019073471426963806, 0.03720220550894737, -0.031226739287376404, -0.02836083620786667, -0.05405724421143532, 0.018581422045826912, 0.016130356118083, 0.01735370047390461, -0.04974319413304329, -0.010450496338307858, -0.2111600637435913, 0.0263441763818264, -0.04662394896149635, -0.012216330505907536, -0.03872587904334068, -0.014547589235007763, 0.017549987882375717, -0.013034128583967686, 0.021355675533413887, 0.022973373532295227, 0.06301304697990417, 0.020278364419937134, 0.04660413786768913, -0.08794673532247543, -0.0399879589676857, -0.013940700329840183, -0.0007911476423032582, -0.005637322552502155, -0.040774062275886536, 0.037912752479314804, 0.049226611852645874, -0.036517661064863205, -0.0017432752065360546, -0.007243901491165161, -0.029266061261296272, -0.017716189846396446, -0.008772026747465134, 0.032207634299993515, 0.07740273326635361, 0.017132291570305824, 0.011122047901153564, 0.011164591647684574, -0.022818462923169136, -0.11355394870042801, 0.10050420463085175, -0.008228481747210026, 0.03804237022995949, -0.03709413856267929, 0.0034771107602864504, -0.010756568983197212, 0.07841359078884125, 0.004743960220366716, -0.02556433528661728, -0.0385454036295414, 0.08199577033519745, 0.006518253590911627, -0.03314338997006416, -0.03217945992946625, 0.032583486288785934, 0.0367627814412117, -0.02853030525147915, -0.050943367183208466, -0.01717083528637886, 0.02937382087111473, -0.02189612202346325, -0.01829376630485058, -0.0029823246877640486, -0.0014753302093595266, 0.05387458950281143, 0.022251412272453308, -0.003719611093401909, 0.02593551017343998, -0.026976624503731728, 0.022165747359395027, 0.02891470491886139, -0.08151984214782715, 0.0035671743098646402, 0.031113401055336, 0.00517301307991147, -0.0137651851400733, 0.4097951054573059, -0.03723332658410072, 0.0006071822135709226, 0.059278249740600586, 0.06706748157739639, 0.053792525082826614, -0.0028048132080584764, -0.025223109871149063, 0.000642361119389534, -0.021002091467380524, -0.04353499040007591, 0.010266289114952087, -0.026417136192321777, 0.10178699344396591, -0.07359536737203598, 0.018835391849279404, 0.03488469496369362, -0.0024993191473186016, 0.014881223440170288, 0.02445710264146328, 0.04289309307932854, 0.010105996392667294, -0.009020582772791386, 0.015649981796741486, 0.0012600580230355263, 0.026290511712431908, 0.027196144685149193, 0.07110638916492462, 0.07083706557750702, 0.018698351457715034, 0.031132502481341362, 0.05327600613236427, -0.043730586767196655, -0.06390182673931122, 0.00450014416128397, -0.021337799727916718, 0.024068962782621384, 0.02912910468876362, -0.017553336918354034, 0.02468821592628956, 0.027109278365969658, -0.01838420331478119, -0.01638825051486492, 0.022923726588487625, 0.0005821882514283061, 0.010474900715053082, 0.11738892644643784, 0.011571204289793968, -0.013941784389317036, -0.014673874713480473, -0.07339440286159515, -0.004757876507937908, 0.013930527493357658, -0.017694875597953796, -0.06930052489042282, 0.024552520364522934, 0.04465276375412941, 0.06907131522893906, 0.00798032432794571, -0.04901697486639023, -0.013468076474964619, -0.029148386791348457, -0.04512333124876022, -0.045842140913009644, 0.015580096282064915, 0.025076474994421005, -0.10184486210346222, -0.0026928784791380167, -0.0007199863903224468, -0.016293883323669434, -0.043736040592193604, -0.017627514898777008, 0.0027040087152272463, -0.006446979008615017, -0.01747584156692028, 0.053302329033613205, -0.018154526129364967, -0.03571867570281029, -0.000916057382710278, 0.055525898933410645, 0.02938847988843918, -0.0031463741324841976, 0.003446472343057394, -0.0344713032245636, 0.0021389813628047705, -0.051384225487709045, -0.0721646174788475, -0.05350154638290405, -0.012910519726574421, -0.020777519792318344, 0.009217547252774239, -0.01831149309873581, -0.04595552757382393, -0.04967368766665459, 0.05243143066763878, -0.014166411943733692, 0.009750799275934696, 0.03357849270105362, 0.027993135154247284, -0.00428254809230566, -0.037231165915727615, 0.030683264136314392, 0.010863719508051872, -0.009509153664112091, 0.0030582204926759005, -0.05064944922924042, 0.045339178293943405, 0.052825577557086945, -0.0606502965092659, 0.061497148126363754, 0.02973215840756893, -0.024524586275219917, 0.005905656609684229, 0.010601491667330265, 0.00428968807682395, -0.02454868145287037, -0.059369057416915894, -0.020613353699445724, 0.030542496591806412, 0.020650269463658333, 0.03757433965802193, 0.010489571839571, -0.08892218768596649, -0.019618267193436623, -0.3693430423736572, -0.021035514771938324, 0.022654319182038307, -0.022749178111553192, 0.03341123089194298, -0.08824793994426727, -0.009115462191402912, -0.013035518117249012, -0.022253427654504776, 0.030482817441225052, 0.09082335233688354, -0.04015956073999405, 0.015718741342425346, -0.08754149079322815, 0.015398338437080383, 0.024713387712836266, -0.03026197850704193, -0.02018229104578495, 0.007818237878382206, 0.0549481101334095, -0.008861715905368328, -0.019659223034977913, -0.015940913930535316, -0.03770811855792999, 0.028584487736225128, -0.0529908649623394, 0.11093751341104507, 0.026379015296697617, 0.10560149699449539, -0.040820591151714325, 0.03339206799864769, 0.004097774159163237, -0.0514833927154541, -0.03070352040231228, -0.02370261214673519, 0.0002980337885674089, -0.014676163904368877, 0.030055847018957138, -0.0173900555819273, -0.02435367926955223, -0.033676642924547195, 0.02626102603971958, -0.02775268815457821, -0.04810623452067375, -0.01913326233625412, 0.02298017404973507, -0.02955489791929722, -0.03773331642150879, 0.0036112910602241755, 0.07642689347267151, 0.03428086265921593, 0.0005002396646887064, 0.0015969346277415752, 0.0396123006939888, 0.0681983008980751, -0.03346429392695427, -0.058604542165994644, 0.021797383204102516, -0.016043895855545998, -0.03587821498513222, 0.027133889496326447, 0.009784364141523838, 0.027646174654364586, -0.024318277835845947, 0.011870745569467545, 0.039766889065504074, 0.008274578489363194, -0.01596519537270069, 0.045139145106077194, -0.009590375237166882, -0.022495971992611885, 0.09852497279644012, 0.006827730219811201, 0.03509249538183212, 0.009517228230834007, 0.0695280060172081, -0.004966236185282469, 0.03472113981842995, 0.026553086936473846, -0.011411265470087528, 0.027020540088415146, 0.007540053687989712, 0.022311542183160782, -0.0201693307608366, 0.015546629205346107, 0.04207262769341469, -0.026100704446434975, 0.0005863832775503397, 0.03315197676420212, 0.01687490940093994, -0.025577643886208534, -0.014385120943188667, -0.017071912065148354, -0.045612066984176636, 0.04087434336543083, -0.0024375896900892258, -0.272550106048584, 0.00966679584234953, 0.035709209740161896, 0.03488047048449516, -0.01057966984808445, 0.013072805479168892, 0.028354214504361153, -0.025037981569767, -0.021271631121635437, 0.031089475378394127, -0.035416100174188614, 0.0383027084171772, 0.0005550157511606812, -0.003725973656401038, 0.02301313355565071, 0.012541724368929863, 0.032482922077178955, 0.017623059451580048, -0.007900469936430454, 0.010325170122087002, 0.021700603887438774, -0.02221107669174671, 0.16066794097423553, 0.006534956861287355, 0.029899151995778084, 0.046858154237270355, 0.0033550530206412077, 0.030289137735962868, 0.07691305875778198, 0.034927964210510254, -0.008557967841625214, 0.011475005187094212, 0.06057271733880043, -0.0018150777323171496, 0.04453041031956673, -0.05835769325494766, -0.061629150062799454, 0.020461635664105415, 0.0033057243563234806, -0.04880184680223465, -0.000772688421420753, 0.015094384551048279, -0.0750894621014595, 0.011253292672336102, 0.05908135697245598, 0.03135049715638161, -0.00949702225625515, -0.01537795178592205, -0.0382792130112648, 0.00022672780323773623, -0.0357951857149601, -0.007935754954814911, 0.01791881024837494, 0.016284456476569176, 0.021620962768793106, 0.06258657574653625, 0.017413467168807983, -0.027695750817656517, 0.02398109622299671, 0.0036418691743165255, -0.0067761605605483055, -0.05998886749148369, 0.13433782756328583, 0.005340089555829763, 0.008767081424593925 ]
[ 0.007207503076642752, 0.034485604614019394, -0.020905040204524994, -0.00954324472695589, 0.03548230975866318, -0.0032752258703112602, 0.01712030917406082, 0.043599776923656464, -0.01636546291410923, -0.052682045847177505, -0.04413459450006485, 0.022680845111608505, 0.0008929030736908317, 0.020314263179898262, 0.019852930679917336, -0.038557421416044235, -0.04160328209400177, 0.026891326531767845, 0.02791191078722477, -0.04554810747504234, -0.012141772545874119, 0.031725503504276276, 0.03086070902645588, 0.013475479558110237, 0.014367387630045414, 0.0076802014373242855, -0.041884977370500565, -0.012600455433130264, 0.03513255715370178, -0.13168218731880188, -0.007304845843464136, -0.03218131884932518, -0.029568364843726158, -0.02687121368944645, 0.008701225742697716, -0.010172181762754917, -0.018621839582920074, -0.035275984555482864, -0.061236608773469925, 0.013307876884937286, 0.050031084567308426, -0.039107564836740494, -0.012069912627339363, -0.01550811156630516, -0.032253045588731766, 0.01684725284576416, -0.040368225425481796, 0.018909255042672157, -0.029931630939245224, 0.00547593180090189, -0.040941763669252396, 0.00818407628685236, -0.05159619078040123, 0.03156115487217903, 0.014445148408412933, -0.029775841161608696, -0.008005772717297077, -0.023024311289191246, 0.017533347010612488, -0.06788300722837448, 0.005861115176230669, 0.03420986235141754, -0.04134933650493622, -0.017122479155659676, 0.0055632926523685455, -0.011155246756970882, -0.029033776372671127, 0.01431131549179554, 0.03322317823767662, 0.011975984089076519, -0.0012910317163914442, 0.02800580859184265, -0.014784229919314384, -0.028784705325961113, -0.042175713926553726, -0.031128134578466415, 0.011744275689125061, -0.00041257624980062246, -0.03204309940338135, 0.014457249082624912, 0.01355152390897274, 0.005950137507170439, -0.01788952201604843, 0.028503993526101112, -0.012620260939002037, -0.021792633458971977, 0.027003183960914612, 0.02738046832382679, 0.0007193824858404696, -0.00228130747564137, -0.04280048981308937, 0.010132191702723503, 0.020227862522006035, 0.05281595513224602, -0.08412645012140274, 0.037825167179107666, -0.0075228894129395485, 0.0014520938275381923, -0.029002416878938675, 0.8095207810401917, -0.0034319167025387287, 0.003884711069986224, 0.050278469920158386, 0.018247490748763084, 0.06090052053332329, -0.022798748686909676, 0.007712431717664003, 0.0010221191914752126, 0.03360277786850929, -0.08815634250640869, 0.025168895721435547, -0.003319599200040102, 0.01526312530040741, -0.003512171097099781, 0.05928969010710716, 0.018100174143910408, 0.00949737336486578, 0.022275473922491074, 0.0018294191686436534, 0.012656978331506252, 0.04061055928468704, 0.009688067249953747, 0.018462613224983215, 0.008795357309281826, 0.029281383380293846, -0.14329475164413452, 0.025213323533535004, -6.370186088730353e-33, 0.016140125691890717, -0.051178425550460815, -0.002840497763827443, 0.014416019432246685, 0.06656266003847122, 0.001282340264879167, 0.008768913336098194, 0.022433556616306305, -0.0251788217574358, -0.028267761692404747, -0.01068627368658781, -0.01780552975833416, -0.022239642217755318, 0.04456234350800514, 0.051796138286590576, -0.05801486223936081, 0.00011428700236137956, 0.05866366997361183, 0.02152162790298462, 0.015197143889963627, 0.03364697843790054, -0.017076531425118446, 0.00602853624150157, 0.015841923654079437, -0.011155815795063972, 0.04002394527196884, -0.023326538503170013, 0.005594578571617603, -0.005653435364365578, -0.044110335409641266, -0.017017565667629242, 0.04554051160812378, 0.009828965179622173, -0.05496431142091751, 0.028886467218399048, -0.057139843702316284, -0.019810328260064125, -0.005417812615633011, -0.0069310590624809265, -0.026661671698093414, -0.04900519177317619, 0.02536207251250744, -0.05234662443399429, -0.018630966544151306, -0.023328976705670357, -0.013410977087914944, -0.008497679606080055, 0.04498562589287758, -0.008150996640324593, -0.015574134886264801, 0.033677954226732254, 0.030395375564694405, -0.013710183091461658, 0.004309683106839657, 0.01798553392291069, -0.017262080684304237, 0.014199907891452312, 0.009412545710802078, -0.007771920878440142, -0.028842749074101448, 0.04198693111538887, 0.007894064299762249, 0.004193596076220274, 0.039874669164419174, 0.011338266544044018, 0.007619435433298349, 0.05358776077628136, 0.0434613861143589, 0.050543833523988724, 0.003924065735191107, -0.08799320459365845, 0.007633466739207506, -0.043351393193006516, -0.03246905282139778, 0.029715687036514282, -0.02450464852154255, 0.03434646874666214, -0.022845448926091194, 0.005209629889577627, 0.06151462718844414, 0.03122522681951523, -0.010508128441870213, 0.0021424642764031887, -0.029472142457962036, -0.03122611530125141, 0.0072289882227778435, 0.03463010862469673, -0.0012981750769540668, -0.04366022348403931, -0.00828767940402031, 0.007635471876710653, 0.021895775571465492, 0.04136451333761215, -0.04539668932557106, -0.012611979618668556, 6.736721390364067e-33, -0.012797735631465912, -0.0029476135969161987, -0.03455047681927681, 0.015405257232487202, 0.010379970073699951, -0.02705979347229004, 0.05957716330885887, 0.007421079557389021, -0.0016288948245346546, 0.0363776758313179, -0.02536628395318985, 0.00223233993165195, -0.04608980193734169, 0.032167527824640274, 0.044249337166547775, -0.013537891209125519, 0.005548104643821716, 0.01732661761343479, 0.043300800025463104, -0.02657497487962246, -0.020268647000193596, 0.02479010634124279, -0.007225911132991314, 0.004261999856680632, 0.042414844036102295, 0.038125257939100266, 0.021356645971536636, -0.01388985849916935, -0.015082115307450294, -0.020805831998586655, 0.01963871531188488, -0.024381890892982483, 0.0037153251469135284, -0.0009244484826922417, -0.005727025214582682, 0.025314584374427795, 0.025418682023882866, 0.0074326698668301105, 0.027124959975481033, 0.0015107947401702404, 0.07851287722587585, 0.015066450461745262, 0.005744971334934235, -0.01039964985102415, 0.02327146753668785, 0.03366973623633385, 0.0024568529333919287, 0.0031037712469697, -0.01821783557534218, -0.010246007703244686, 0.005184403154999018, 0.007217178121209145, -0.013339334167540073, 0.025380339473485947, -0.011572855524718761, -0.030189888551831245, 0.008874154649674892, 0.04048507288098335, -0.04726513475179672, -0.03177196532487869, -0.02190714329481125, 0.011113941669464111, -0.01030921470373869, -0.00045051288907416165, -0.015486625023186207, -0.006703841034322977, -0.03964696079492569, -0.01808210462331772, -0.015484829433262348, -0.04573686793446541, 0.015560727566480637, -0.03251650929450989, -0.0021784661803394556, 0.053801774978637695, -0.008212539367377758, -0.00047636168892495334, -0.026396526023745537, 0.04661941155791283, -0.009669041261076927, 0.004751288797706366, 0.011687244288623333, 0.013110429979860783, -0.020619427785277367, -0.005501858424395323, -0.014469875954091549, 0.006184268277138472, -0.026032716035842896, -0.042585328221321106, 0.030331844463944435, 0.0033000970724970102, 0.0074250828474760056, -0.014635970816016197, -0.026872120797634125, -0.013958454132080078, 0.016967691481113434, -1.2255514825199043e-8, -0.005299709737300873, -0.005652416963130236, -0.021434811875224113, 0.03203300014138222, 0.025704694911837578, 0.01966208405792713, -0.0367642380297184, -0.015267491340637207, 0.02594589628279209, -0.008412076160311699, 0.007870761677622795, -0.04471592977643013, 0.011895973235368729, 0.015169094316661358, 0.012879504822194576, -0.03223172947764397, 0.0052030012011528015, -0.019540216773748398, 0.01699095033109188, 0.007388654630631208, 0.0025169290602207184, 0.04313080757856369, 0.008077590726315975, 0.0035897528287023306, -0.024305278435349464, -0.010320878587663174, 0.07002021372318268, -0.07424703985452652, -0.0020934101194143295, -0.03103107586503029, 0.037465911358594894, -0.034090977162122726, -0.02603936195373535, 0.047319717705249786, 0.00798276998102665, -0.012673050165176392, 0.0006420417339541018, 0.014504361897706985, 0.008173298090696335, -0.0035056956112384796, -0.023118533194065094, -0.033457860350608826, 0.03099224902689457, -0.034311484545469284, -0.024215729907155037, -0.024494322016835213, -0.024000976234674454, 0.006895723752677441, -0.0007213310454972088, -0.015932278707623482, 0.013323287479579449, 0.010710209608078003, 0.005852545145899057, 0.02110498771071434, 0.013439870439469814, -0.026683194562792778, 0.029370024800300598, -0.04788469150662422, -0.06284576654434204, -0.0023335011210292578, 0.04937098175287247, 0.03808251768350601, -0.006271258927881718, -0.001273344736546278 ]
streamlit-overwrite-previous-value-loop
https://markhneedham.com/blog/2022/02/19/streamlit-overwrite-previous-value-loop
false
2022-02-21 02:44:37
Apache Pinot: Deleting instances in a bad state
[ "pinot" ]
[ "pinot" ]
Sometimes when I start up a local Pinot cluster after doing a hard shutdown (by restarting my computer) I noticed that the Pinot Data Explorer shows controllers, brokers, or servers in a bad state. In this blog post we'll see how to get rid of those bad instances. .Apache Pinot: Deleting instances in a bad state image::{{<siteurl>}}/uploads/2022/02/bad-state-banner.png[] The screenshot below shows several instances in the bad state. .Instances in a bad state image::{{<siteurl>}}/uploads/2022/02/bad-instances.png[] I'm not entirely sure why this happens, but I assume it's something to do with my local IP address changing as far as Pinot's concerned. Having these instances in a bad state doesn't actually cause me any problems, they're more of an irritation. Luckily we can get rid of that irritation with help from the REST API's drop instance endpoint, shown in the screen shot below: .Drop instance endpoint image::{{<siteurl>}}/uploads/2022/02/drop-instance-endpoint.png[] So, what does calling this end point actually do? I had a quick look at the code and learnt that it deletes the following Zookeeper entries: * `INSTANCES/<instanceName>` * `/CONFIGS/PARTICIPANT/<instanceName>` We can see an example of what that part of our Zookeeper metadata looks like below: .Zookeeper meta image::{{<siteurl>}}/uploads/2022/02/zookeeper-metadata.png[] We want to remove the following instances: * Controller_172.21.0.4_9000 * Controller_172.21.0.2_9000 * Controller_172.21.0.5_9000 * Server_172.21.0.3_8098 * Server_172.21.0.4_8098 * Broker_172.21.0.3_8099 Let's try to remove those instances, by running the following command: [source, bash] ---- for instance in "Controller_172.21.0.4_9000" "Controller_172.21.0.2_9000" "Controller_172.21.0.5_9000" "Server_172.21.0.3_8098" "Server_172.21.0.4_8098" "Broker_172.21.0.3_8099"; do curl -X DELETE "http://localhost:9000/instances/${instance}" \ -H "accept: application/json" 2>/dev/null; printf "\n" done ---- .Output [source, json] ---- {"status":"Successfully dropped instance"} {"status":"Successfully dropped instance"} {"status":"Successfully dropped instance"} {"status":"Successfully dropped instance"} {"_code":409,"_error":"Failed to drop instance Server_172.21.0.4_8098 - Instance Server_172.21.0.4_8098 exists in ideal state for races_REALTIME"} {"_code":409,"_error":"Failed to drop instance Broker_172.21.0.3_8099 - Instance Broker_172.21.0.3_8099 exists in ideal state for brokerResource"} ---- We were able to remove four of the instances, but it looks like two of them are still in use. Let's see if we can figure out what's going on. We can return the ideal state for the `brokerResource` by running the following command: [source, bash] ---- curl -X GET "http://localhost:9000/zk/get?path=%2FPinotCluster%2FIDEALSTATES%2FbrokerResource" \ -H "accept: text/plain" 2>/dev/null ---- .Output [source, json] ---- { "id" : "brokerResource", "simpleFields" : { "BATCH_MESSAGE_MODE" : "false", "IDEAL_STATE_MODE" : "CUSTOMIZED", "NUM_PARTITIONS" : "3", "REBALANCE_MODE" : "CUSTOMIZED", "REPLICAS" : "0", "STATE_MODEL_DEF_REF" : "BrokerResourceOnlineOfflineStateModel", "STATE_MODEL_FACTORY_NAME" : "DEFAULT" }, "mapFields" : { "courses_OFFLINE" : { "Broker_172.21.0.3_8099" : "ONLINE", "Broker_172.21.0.5_8099" : "ONLINE" }, "parkrun_REALTIME" : { "Broker_172.21.0.3_8099" : "ONLINE", "Broker_172.21.0.5_8099" : "ONLINE" }, "races_REALTIME" : { "Broker_172.21.0.3_8099" : "ONLINE", "Broker_172.21.0.5_8099" : "ONLINE" } }, "listFields" : { } } ---- Let's create a file, `newBrokerState.json`, that removes the `Broker_172.21.0.3_8099` entry. The file should look like this: .newBrokerState.json [source, json] ---- include::content/2022/02/21/newBrokerState.json[] ---- Now navigate to the Zookeeper browser at http://localhost:9000/#/zookeeper and navigate down to `Pinot Cluster -> IDEALSTATES -> brokerResource`. Click on the edit button, paste in this JSON document, and click *Update*. .Updating the brokerResouce ideal state image::{{<siteurl>}}/uploads/2022/02/update-ideal-state.gif[] And now let's do the same thing for `races_REALTIME`. The ideal state at the moment looks like this: [source, bash] ---- curl -X GET "http://localhost:9000/zk/get?path=%2FPinotCluster%2FIDEALSTATES%2Fraces_REALTIME" \ -H "accept: text/plain" 2>/dev/null ---- .Output [source, json] ---- { "id" : "races_REALTIME", "simpleFields" : { "BATCH_MESSAGE_MODE" : "false", "IDEAL_STATE_MODE" : "CUSTOMIZED", "INSTANCE_GROUP_TAG" : "races_REALTIME", "MAX_PARTITIONS_PER_INSTANCE" : "1", "NUM_PARTITIONS" : "11", "REBALANCE_MODE" : "CUSTOMIZED", "REPLICAS" : "1", "STATE_MODEL_DEF_REF" : "SegmentOnlineOfflineStateModel", "STATE_MODEL_FACTORY_NAME" : "DEFAULT" }, "mapFields" : { "races__0__0__20220127T1647Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__10__20220218T1304Z" : { "Server_172.21.0.4_8098" : "CONSUMING" }, "races__0__1__20220202T1635Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__2__20220203T1636Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__3__20220209T1442Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__4__20220210T1442Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__5__20220212T1807Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__6__20220214T1304Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__7__20220215T1304Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__8__20220216T1304Z" : { "Server_172.21.0.6_8098" : "ONLINE" }, "races__0__9__20220217T1304Z" : { "Server_172.21.0.6_8098" : "ONLINE" } }, "listFields" : { } } ---- And now let's replace `Server_172.21.0.4_8098` with `Server_172.21.0.6_8098` for the consuming segment. .newServerState.json [source, json] ---- include::content/2022/02/21/newServerState.json[] ---- We'll update that node in Zookeeper the same way that we did with the `brokerResource`, and now we can re-run our command to delete these two instances: [source, bash] ---- for instance in "Controller_172.21.0.4_9000" "Controller_172.21.0.2_9000" "Controller_172.21.0.5_9000" "Server_172.21.0.3_8098" "Server_172.21.0.4_8098" "Broker_172.21.0.3_8099"; do curl -X DELETE "http://localhost:9000/instances/${instance}" \ -H "accept: application/json" 2>/dev/null; printf "\n" done ---- .Output [source, json] ---- {"_code":404,"_error":"Instance Controller_172.21.0.4_9000 not found"} {"_code":404,"_error":"Instance Controller_172.21.0.2_9000 not found"} {"_code":404,"_error":"Instance Controller_172.21.0.5_9000 not found"} {"_code":404,"_error":"Instance Server_172.21.0.3_8098 not found"} {"status":"Successfully dropped instance"} {"status":"Successfully dropped instance"} ---- The first 4 instances return a 404 status since we've already deleted them, but the last two have now been deleted! Now if we navigate back to the home page of the Pinot Data Explorer, we'll see that there are no bad instances anymore: .No instances in a bad state image::{{<siteurl>}}/uploads/2022/02/no-more-bad.png[]
In this post we'll learn how to write out to the screen only the latest value in a loop of values using Streamlit.
uploads/2022/02/bad-state-banner.png
[ -0.023416321724653244, -0.019480174407362938, -0.0042539783753454685, 0.055845629423856735, 0.08635394275188446, -0.01337740570306778, 0.010036454536020756, 0.03887223079800606, 0.003787775058299303, -0.007357317954301834, -0.030047977343201637, -0.015823734924197197, -0.060242608189582825, 0.035404272377491, -0.0034131226129829884, 0.06133611127734184, 0.06775186955928802, -0.016522599384188652, 0.033118415623903275, -0.01457248441874981, 0.032874420285224915, 0.042923178523778915, 0.012108945287764072, 0.059369251132011414, 0.03190361708402634, 0.006980884354561567, -0.0018530789529904723, 0.036408424377441406, -0.05347631871700287, 0.015967730432748795, 0.017508599907159805, 0.01201903447508812, 0.02094058319926262, -0.00031810294603928924, 0.01658482290804386, 0.013698810711503029, -0.0163788553327322, 0.020967965945601463, 0.006363218184560537, 0.03691389784216881, -0.08452717214822769, 0.023852739483118057, -0.006895709782838821, -0.0006489984807558358, 0.0031101307831704617, 0.025622554123401642, -0.03125126659870148, -0.005512114614248276, 0.0428612157702446, -0.00005086853707325645, -0.07937420159578323, 0.03355763852596283, -0.010614697821438313, 0.03163700923323631, -0.02202589064836502, 0.03755316138267517, -0.009685992263257504, -0.08029047399759293, 0.03275427967309952, -0.05422062426805496, -0.02056584507226944, -0.01053987443447113, 0.018415246158838272, 0.02457387000322342, -0.0038979563396424055, -0.02318519726395607, 0.014161773957312107, 0.04572020098567009, -0.01567021571099758, -0.0021207474637776613, 0.0031882566399872303, -0.02557641640305519, -0.009984753094613552, -0.015755513682961464, 0.03950762376189232, -0.0008420447702519596, -0.03563801944255829, 0.045661501586437225, 0.0007212182972580194, 0.06066586822271347, -0.02696133591234684, -0.022374281659722328, 0.011267073452472687, 0.0151379918679595, 0.013340586796402931, -0.05953133478760719, -0.06269852817058563, -0.019561339169740677, -0.04880931228399277, 0.05975771322846413, 0.0262454804033041, -0.007717006374150515, 0.02479678951203823, -0.0016527840634807944, -0.0038658699486404657, -0.010883142240345478, 0.030828921124339104, -0.01742463745176792, -0.005006959196180105, -0.015711065381765366, -0.016528768464922905, 0.011310671456158161, 0.0008548239129595459, 0.06907530128955841, -0.058718662708997726, -0.02053091861307621, -0.010295637883245945, -0.005030406638979912, -0.0048724934458732605, 0.01870240643620491, -0.041293639689683914, 0.024965249001979828, -0.020673073828220367, 0.02622838504612446, -0.07439187914133072, 0.08235778659582138, 0.01366442907601595, -0.05649149790406227, 0.044359005987644196, 0.02817099541425705, 0.05198458209633827, 0.03243745490908623, -0.033913563936948776, 0.07090603560209274, -0.021750792860984802, 0.0031583700329065323, 0.00908865500241518, 0.027257762849330902, -0.0037483766209334135, -0.060527075082063675, -0.01042819581925869, 0.05686256289482117, 0.0031727682799100876, 0.006598941516131163, 0.015187975019216537, -0.04029228910803795, 0.011452806182205677, -0.03555150330066681, 0.06294942647218704, 0.015573432669043541, -0.03261063992977142, -0.021403074264526367, -0.02287977933883667, 0.005572901107370853, 0.061870425939559937, 0.021426094695925713, -0.019708069041371346, -0.03168334811925888, -0.0007384416530840099, 0.012459821067750454, 0.027390699833631516, 0.05756990239024162, 0.031252093613147736, -0.04322279617190361, 0.0037243743427097797, 0.07619806379079819, 0.028336908668279648, 0.0015524245100095868, -0.027206115424633026, 0.0008027239236980677, 0.03625902533531189, 0.01542199682444334, 0.02529030293226242, 0.051757991313934326, 0.032088927924633026, -0.039393048733472824, -0.03059680201113224, 0.03999578207731247, -0.01068799663335085, 0.0021249507553875446, -0.09245482832193375, -0.050715506076812744, 0.04271918535232544, -0.055058643221855164, -0.017437966540455818, 0.052037399262189865, 0.0714733749628067, 0.02450689673423767, 0.012319924309849739, 0.03757844120264053, -0.065791554749012, 0.06870512664318085, 0.012024302035570145, 0.010199668817222118, -0.014356574043631554, -0.019467419013381004, 0.07524629682302475, 0.016356682404875755, 0.062054332345724106, 0.012038891203701496, -0.062447112053632736, -0.05840713158249855, -0.0021281091030687094, 0.01609358936548233, 0.04064352810382843, -0.0015140599571168423, -0.01921348087489605, 0.0647287666797638, 0.03589322417974472, 0.03975572809576988, -0.029233049601316452, 0.032070837914943695, 0.0049603902734816074, -0.08567392081022263, -0.08813950419425964, 0.027524422854185104, 0.014153806492686272, -0.05568256974220276, -0.03331474959850311, 0.006359738297760487, -0.06173107400536537, -0.029184876009821892, 0.056577954441308975, -0.01855633407831192, 0.07626204937696457, 0.016614438965916634, 0.024653412401676178, -0.05397486686706543, 0.048200543969869614, -0.058651648461818695, 0.032536495476961136, 0.002735033631324768, 0.007531822193413973, 0.0007080422365106642, 0.004749188665300608, 0.11307007819414139, 0.0721413791179657, -0.0023960706312209368, -0.027626879513263702, 0.04510931298136711, 0.022024331614375114, -0.038894739001989365, -0.02469247207045555, -0.012550986371934414, 0.01498355157673359, 0.03327443078160286, -0.012633250094950199, -0.020112818107008934, 0.02745705284178257, -0.014890920370817184, -0.014206661842763424, 0.06289025396108627, 0.0008290859987027943, 0.05217093601822853, 0.019517580047249794, -0.0021974153351038694, 0.01863425225019455, -0.0171834584325552, -0.07159488648176193, -0.03161075338721275, 0.013113991357386112, 0.0074324537999928, 0.055150970816612244, -0.033462949097156525, -0.026112345978617668, -0.03397211804986, -0.034561071544885635, 0.031059378758072853, 0.009295630268752575, 0.06147605553269386, -0.03181915357708931, 0.04130759835243225, -0.06622426211833954, -0.004598206840455532, 0.005207986570894718, -0.054757919162511826, -0.008862773887813091, 0.012891408056020737, 0.0008174730464816093, 0.012453384697437286, -0.0009473777608945966, -0.033476490527391434, 0.016388116404414177, -0.000057272525737062097, 0.02044224739074707, -0.008974939584732056, 0.008534345775842667, 0.021508868783712387, 0.005097871646285057, 0.008736452087759972, -0.014423937536776066, 0.03674674779176712, -0.03812171146273613, -0.018374135717749596, 0.00048797921044752, -0.07475428283214569, 0.07155882567167282, -0.02646302804350853, -0.064017653465271, -0.0073854136280715466, 0.04857674986124039, 0.005901458207517862, 0.036310117691755295, -0.0000700128439348191, 0.047107499092817307, 0.01678360439836979, -0.006558129098266363, 0.051047004759311676, -0.01075783371925354, 0.041528698056936264, -0.010375294834375381, 0.02058057114481926, 0.007647329475730658, -0.03128507733345032, -0.011036226525902748, -0.01972407102584839, 0.014664622955024242, -0.019448930397629738, -0.26953357458114624, 0.042445942759513855, 0.009637465700507164, -0.013082632794976234, -0.0014965011505410075, -0.03614870458841324, 0.0014495039358735085, -0.014819825068116188, -0.02475283481180668, 0.018150491639971733, -0.01592417247593403, -0.01649031601846218, 0.0030450120102614164, 0.01775066740810871, -0.014754030853509903, 0.006038755644112825, 0.010473332367837429, -0.06336591392755508, -0.011521673761308193, -0.019677165895700455, -0.011513825505971909, -0.04025893658399582, 0.003787904279306531, 0.04816228896379471, 0.020744415000081062, 0.05423331633210182, -0.049400005489587784, 0.038634151220321655, -0.03752067685127258, -0.032137542963027954, 0.007245117332786322, -0.013906871899962425, -0.02963462471961975, 0.0030058918055146933, 0.008138405159115791, -0.022483080625534058, -0.0057829818688333035, -0.0018915736582130194, 0.015630969777703285, 0.013465944677591324, -0.030045153573155403, -0.03141840547323227, 0.009673315100371838, 0.019155340269207954, 0.07083691656589508, 0.01756020076572895, -0.054586030542850494, 0.002912899712100625, -0.02473408728837967, 0.063968226313591, -0.011876200325787067, -0.05611731857061386, -0.00894839409738779, 0.017387038096785545, -0.03251742571592331, 0.02192092314362526, -0.0011134957894682884, 0.020443148910999298, -0.047454532235860825, -0.05530969426035881, -0.007693651132285595, -0.05255921930074692, -0.0067809103056788445, -0.0680941641330719, -0.0005167216877453029, -0.04310949891805649, -0.06055031344294548, 0.020372139289975166, 0.07518113404512405, 0.014841578900814056, -0.04217204824090004, 0.015178387053310871, -0.01761273480951786, -0.11011077463626862, -0.009817441925406456, -0.036729346960783005, -0.048164911568164825, 0.01085236482322216, -0.020222216844558716, 0.04451584815979004, -0.026204070076346397, -0.00726637477055192, 0.029184414073824883, 0.010312049649655819, 0.004261563997715712, -0.048222485929727554, 0.03747496008872986, -0.01773178204894066, -0.009455040097236633, -0.008064587600529194, 0.05556993559002876, -0.02009662240743637, -0.03150598704814911, -0.037512194365262985, -0.004386201035231352, 0.06184440478682518, 0.018141286447644234, -0.005892493762075901, -0.03016788884997368, 0.04501041769981384, 0.0245922040194273, -0.05445240065455437, 0.007465566508471966, -0.041933171451091766, -0.02199774608016014, 0.02702416107058525, -0.037114083766937256, 0.03656897693872452, 0.02001257613301277, 0.0014222371391952038, 0.04213657230138779, -0.049917370080947876, 0.009864937514066696, -0.0725804790854454, -0.027057893574237823, -0.0015125790378078818, 0.010767018422484398, 0.038702670484781265, 0.05723132938146591, -0.027568478137254715, -0.05280814319849014, 0.008578763343393803, 0.015617785975337029, -0.0004788243677467108, -0.04440803825855255, -0.04468858614563942, 0.01913968101143837, -0.010453096590936184, 0.04656856134533882, -0.0003371809143573046, 0.015269421972334385, 0.04096531867980957, 0.05057211220264435, -0.002899695420637727, 0.028872041031718254, -0.011884232982993126, -0.02131666988134384, -0.03947026655077934, 0.020385054871439934, 0.007740928791463375, -0.018040835857391357, 0.01569368503987789, 0.010339858010411263, 0.023983528837561607, 0.05759754404425621, 0.012386861257255077, 0.037597328424453735, -0.012973287142813206, 0.039122387766838074, 0.01624189130961895, 0.00454876571893692, -0.044688012450933456, -0.0018794718198478222, -0.03756556659936905, -0.032045066356658936, -0.03665998578071594, 0.033197157084941864, -0.02661842294037342, -0.031446702778339386, -0.01607499271631241, -0.004149097949266434, -0.05144188180565834, -0.03570166230201721, -0.024569900706410408, -0.021204998716711998, 0.03655904531478882, 0.020663509145379066, 0.010473801754415035, 0.006881442852318287, -0.01767568290233612, 0.006290175020694733, 0.013901535421609879, -0.03583625704050064, 0.006345010828226805, -0.035365208983421326, -0.012094824574887753, 0.0034408033825457096, 0.013091586530208588, 0.024366922676563263, -0.0015080766752362251, -0.0018072626553475857, 0.006865082308650017, 0.0347963385283947, -0.025918852537870407, 0.03584517538547516, 0.03918185457587242, -0.019991647452116013, 0.017859764397144318, 0.029487501829862595, -0.007492854259908199, -0.028231795877218246, 0.0034748450852930546, -0.006589129567146301, 0.058662332594394684, -0.007176706101745367, -0.06676704436540604, 0.05573837831616402, 0.006848764140158892, -0.013816716149449348, 0.0032477094791829586, 0.01082527730613947, 0.019535211846232414, -0.04490475356578827, 0.027464646846055984, 0.06361206620931625, -0.030767103657126427, 0.04000401496887207, 0.03158193454146385, -0.024393873289227486, 0.013782093301415443, 0.003446533577516675, -0.04890859127044678, -0.01564922370016575, -0.025206316262483597, 0.03896162658929825, -0.08721581101417542, -0.0402727872133255, -0.062228973954916, -0.010356628336012363, 0.018594838678836823, 0.01075065415352583, 0.005037609953433275, -0.013675663620233536, -0.0028843781910836697, -0.058921605348587036, 0.03595892712473869, 0.005441584158688784, 0.00305450102314353, 0.028444891795516014, -0.015437963418662548, 0.03955972194671631, -0.010755479335784912, 0.021660204976797104, -0.012496166862547398, -0.02871355414390564, 0.002146112499758601, -0.038706403225660324, 0.00609057629480958, -0.021533556282520294, 0.05577772483229637, -0.03548542410135269, 0.016990868374705315, -0.023180248215794563, -0.0016381795285269618, 0.0030669092666357756, -0.012482549995183945, 0.002607293426990509, -0.009443297982215881, 0.04498567432165146, 0.0607159286737442, 0.009692278690636158, 0.022899774834513664, -0.0033229924738407135, -0.010871551930904388, 0.07320396602153778, -0.06580650806427002, -0.02807297743856907, -0.03777641803026199, -0.049259431660175323, 0.04538703337311745, 0.01750030182301998, 0.032661814242601395, -0.04549989476799965, 0.01404603011906147, 0.025447921827435493, -0.011082937940955162, 0.016525864601135254, -0.031547971069812775, 0.028462311252951622, -0.03782137855887413, -0.003719340544193983, -0.09127693623304367, 0.021094880998134613, 0.052785515785217285, -0.028949065133929253, -0.012611135840415955, -0.0023260179441422224, -0.05190660431981087, 0.016950158402323723, -0.06762227416038513, -0.03996141999959946, 0.02874421700835228, 0.005603869911283255, -0.016487104818224907, 0.0040105837397277355, -0.043845970183610916, 0.006788255181163549, 0.0269782617688179, -0.040866147726774216, -0.0011077538365498185, 0.007887008599936962, 0.04377886280417442, 0.03220255672931671, 0.007260462734848261, -0.012258414179086685, -0.041226062923669815, 0.06964321434497833, -0.008114521391689777, 0.01957298070192337, 0.06388368457555771, -0.04407503455877304, 0.04677623137831688, 0.027369299903512, -0.013728020712733269, 0.013145273551344872, 0.016241177916526794, -0.02596968226134777, -0.04805105924606323, 0.047417011111974716, -0.026294346898794174, 0.013382242992520332, -0.07299934327602386, 0.04997662082314491, 0.0015329878078773618, -0.016171015799045563, -0.02656642347574234, -0.0025161104276776314, -0.02280137874186039, -0.025597507134079933, -0.03663712739944458, 0.03779452666640282, -0.031298503279685974, 0.0583498477935791, 0.01954486034810543, 0.03533944860100746, 0.0763331800699234, -0.0138188935816288, -0.008555423468351364, 0.01823641173541546, 0.07737898826599121, 0.10379233211278915, 0.018115853890776634, -0.008660709485411644, 0.05292122811079025, -0.026580356061458588, -0.04388277232646942, -0.021125275641679764, -0.02154598757624626, -0.051702991127967834, -0.02831738069653511, 0.014628258533775806, 0.04989156499505043, -0.022633109241724014, 0.05666632205247879, -0.007025149650871754, 0.009883497841656208, 0.004491244908422232, -0.001892922562547028, 0.021894145756959915, 0.008673030883073807, -0.030688228085637093, 0.07027486711740494, 0.028497224673628807, -0.03553532436490059, 0.02331036515533924, 0.006688916590064764, -0.034610990434885025, -0.0029267845675349236, -0.04815322905778885, 0.009848097339272499, 0.04384799674153328, -0.00018399850523564965, 0.06868431717157364, -0.01891694776713848, -0.023519791662693024, 0.011779388412833214, 0.02811633236706257, -0.002983823651447892, -0.018451252952218056, -0.035226091742515564, -0.02893199399113655, -0.01106302160769701, -0.03273170441389084, -0.029885346069931984, -0.04097796231508255, -0.033187005668878555, 0.03578304499387741, -0.01479144673794508, -0.007716922555118799, 0.03418354317545891, -0.006037483923137188, -0.03832508251070976, -0.034537605941295624, -0.09972886741161346, -0.03981124237179756, -0.05569333955645561, -0.03731216862797737, -0.010016814805567265, 0.009009436704218388, -0.023500248789787292, -0.027652043849229813, -0.008419303223490715, 0.0009518825681880116, 0.03550257161259651, -0.027831964194774628, -0.04328150674700737, 0.012424125336110592, 0.03874640166759491, 0.02305990643799305, 0.03367854282259941, 0.058536775410175323, 0.006160165648907423, 0.0027124902699142694, -0.028943780809640884, -0.011075428687036037, 0.045483432710170746, -0.008862984366714954, -0.007368057034909725, -0.09493233263492584, 0.03124714270234108, 0.038887765258550644, 0.004957134835422039, -0.06531736254692078, 0.02767948992550373, 0.026476629078388214, -0.005407156888395548, 0.050258979201316833, -0.024729833006858826, -0.004172593355178833, -0.046564362943172455, -0.013344837352633476, -0.046478308737277985, 0.030591174960136414, 0.036548081785440445, -0.003919828217476606, 0.07518657296895981, 0.020089995115995407, -0.04193203151226044, -0.03096253238618374, 0.01709721051156521, -0.0018495547119528055, -0.017313456162810326, -0.05930717661976814, -0.013130792416632175, -0.01995769701898098, -0.04382754862308502, -0.01348266750574112, 0.04493463784456253, -0.013020367361605167, -0.049432944506406784, -0.019058996811509132, -0.011195898056030273, -0.0473988875746727, -0.003257720498368144, -0.04168715700507164, 0.0006604411755688488, -0.03548426181077957, -0.03440498188138008, 0.004675764124840498, 0.04196139797568321, -0.020926089957356453, -0.023936768993735313, 0.016179654747247696, -0.01089534629136324, 0.017033927142620087, -0.045884039252996445, 0.05345684662461281, 0.01816926710307598, -0.02472612075507641, -0.009745094925165176 ]
[ -0.04523565247654915, -0.05113886296749115, -0.02183692902326584, 0.004740355536341667, 0.06046411767601967, -0.06743529438972473, 0.04274243116378784, 0.008096417412161827, 0.008963973261415958, -0.026631083339452744, 0.03029102087020874, -0.056556086987257004, 0.007868891581892967, -0.0034857685677707195, 0.043240468949079514, -0.013629631139338017, 0.018790490925312042, -0.047921955585479736, 0.012624683789908886, 0.019205324351787567, 0.011809163726866245, -0.028947198763489723, -0.06210210174322128, -0.01688641868531704, -0.001473300508223474, 0.028008703142404556, 0.030156482011079788, 0.007762708701193333, -0.05269775167107582, -0.2169615477323532, 0.014391263946890831, -0.043324653059244156, -0.03143765777349472, -0.005846796091645956, 0.01857328973710537, 0.04449926316738129, 0.02744823694229126, 0.01900257170200348, 0.030337795615196228, 0.04330240190029144, 0.05817991495132446, 0.026815291494131088, -0.04465292766690254, -0.00407815957441926, 0.0027688981499522924, -0.02021077275276184, 0.00984967965632677, -0.026611756533384323, 0.035623710602521896, 0.004893656354397535, 0.000933960429392755, 0.0002277802414027974, -0.01714785024523735, -0.004148832522332668, 0.025713514536619186, 0.019015291705727577, 0.05990278720855713, 0.07747533172369003, 0.013797244988381863, 0.010200297459959984, 0.042269494384527206, -0.033465974032878876, -0.14266733825206757, 0.08409854769706726, 0.039957255125045776, 0.07180099934339523, -0.028350912034511566, 0.0057232435792684555, -0.03549007326364517, 0.04664892703294754, -0.010261749848723412, -0.011579771526157856, -0.06361973285675049, 0.029169943183660507, -0.024487042799592018, -0.016928793862462044, 0.018366539850831032, 0.07017853856086731, 0.010439776815474033, -0.014709312468767166, -0.050946202129125595, -0.01932312734425068, 0.01081651821732521, -0.007255482953041792, -0.04051927849650383, -0.0010390349198132753, 0.009523407556116581, 0.0657859593629837, 0.03593870624899864, 0.00760961277410388, 0.033107489347457886, -0.003958099987357855, 0.08564495295286179, 0.0028533227741718292, -0.0473005585372448, 0.02930469438433647, -0.012857586145401001, 0.0259566567838192, -0.034821055829524994, 0.38079822063446045, -0.011726913042366505, -0.026069357991218567, 0.0357389859855175, -0.004270902369171381, 0.023264534771442413, 0.035342805087566376, -0.01644214056432247, -0.03467325121164322, 0.030775072053074837, 0.006897210609167814, 0.03483198583126068, 0.001902964198961854, 0.06975443661212921, -0.024630017578601837, 0.02029402367770672, -0.01379371527582407, 0.01513921469449997, 0.03814395144581795, -0.04390580207109451, 0.04438250884413719, -0.03833303228020668, -0.0013884631916880608, 0.04642847180366516, 0.03746394068002701, 0.03142663463950157, -0.0006043401663191617, 0.0392548143863678, 0.06018339470028877, 0.038623545318841934, -0.018067998811602592, 0.005067888181656599, -0.037688180804252625, -0.03537290543317795, -0.01452057994902134, 0.026329904794692993, 0.005288810934871435, 0.036309607326984406, -0.0108557203784585, 0.019070595502853394, -0.016293756663799286, -0.03952953219413757, -0.027614813297986984, 0.04533163830637932, -0.043937698006629944, -0.012974563986063004, 0.09611237049102783, 0.009390903636813164, -0.04269227385520935, -0.020262913778424263, -0.030480045825242996, -0.04303225502371788, 0.028116164728999138, -0.013940352946519852, -0.04336922615766525, -0.012368726544082165, 0.03716393932700157, 0.055914703756570816, -0.0009006166947074234, -0.011854968965053558, -0.015114137902855873, -0.00333185913041234, -0.048756230622529984, -0.016909554600715637, -0.001833402900956571, 0.07305175811052322, -0.10456575453281403, -0.05378592014312744, 0.010833943262696266, -0.011470867320895195, 0.0032306653447449207, -0.05372064933180809, 0.023078281432390213, 0.0001811435940908268, -0.04830675199627876, 0.02829952910542488, -0.06215232238173485, -0.006859113462269306, 0.02064506895840168, 0.015141800977289677, -0.007421230897307396, -0.05596858635544777, 0.015714459121227264, -0.04376261308789253, -0.02270675264298916, -0.02931142784655094, -0.08739711344242096, -0.0565633550286293, -0.001709225121885538, -0.011884699575603008, -0.024390703067183495, -0.1067105382680893, -0.08372849225997925, -0.08217882364988327, 0.05990144982933998, -0.011336345225572586, -0.018467746675014496, 0.015733622014522552, -0.012240145355463028, 0.005491265561431646, -0.016685502603650093, 0.020517859607934952, 0.04653501138091087, -0.00582422548905015, 0.036083683371543884, -0.07077864557504654, 0.08850771188735962, 0.016229502856731415, -0.04388350620865822, 0.026604676619172096, 0.0008430328452959657, -0.035972047597169876, 0.018605852499604225, -0.03254741430282593, 0.02727956883609295, 0.023028897121548653, -0.017460240051150322, -0.01520046778023243, 0.0010112454183399677, 0.027097752317786217, 0.0409131683409214, 0.0022039837203919888, -0.002742134965956211, -0.013812697492539883, -0.35104870796203613, -0.06604322046041489, -0.0615697056055069, -0.03005020134150982, -0.013163136318325996, -0.06392761319875717, 0.0037605639081448317, -0.02178478240966797, 0.02435893937945366, 0.00974174216389656, 0.0916326642036438, -0.03426624834537506, 0.028056014329195023, -0.029032345861196518, 0.037990350276231766, 0.047096896916627884, -0.010715524666011333, -0.021064674481749535, -0.0689745843410492, -0.0027248135302215815, -0.00028679650858975947, -0.026229165494441986, -0.011449666693806648, -0.017169799655675888, 0.005622193682938814, -0.012357045896351337, 0.10806678235530853, 0.003065774915739894, 0.07093771547079086, -0.03969120606780052, 0.02964191325008869, 0.051666807383298874, -0.00832151249051094, -0.08176037669181824, -0.011886505410075188, -0.02055315487086773, -0.0045072222128510475, 0.008088896982371807, -0.00098693638574332, -0.01493033953011036, -0.050309546291828156, 0.027795473113656044, -0.040260378271341324, -0.07234662026166916, -0.004569530952721834, 0.035769447684288025, 0.01122804544866085, 0.024612123146653175, -0.06249086558818817, 0.06892117857933044, 0.03177229315042496, 0.02299259416759014, 0.001152685028500855, 0.043912116438150406, 0.05004298314452171, -0.004801187198609114, -0.06229223310947418, -0.015852630138397217, 0.0069875568151474, 0.012813019566237926, 0.041184768080711365, 0.04072001948952675, 0.023022852838039398, -0.1138722375035286, 0.04119405522942543, 0.0377434641122818, -0.044403672218322754, -0.017597785219550133, 0.05586211383342743, -0.0125070596113801, -0.05439184233546257, 0.12883751094341278, 0.008525912649929523, -0.015232839621603489, -0.00248072505928576, 0.021644635125994682, -0.0426071397960186, -0.014479685574769974, -0.01779157668352127, -0.013818961568176746, 0.06864727288484573, -0.02824006788432598, 0.0546874962747097, -0.012863225303590298, -0.02049308642745018, 0.06590738147497177, -0.016492309048771858, 0.011363920755684376, 0.08667932450771332, -0.004818495828658342, -0.006800084840506315, -0.003660037647932768, -0.0372241735458374, -0.049596186727285385, 0.07099403440952301, 0.024063244462013245, -0.2656005322933197, 0.020021094009280205, 0.07026715576648712, 0.038678087294101715, 0.03501851484179497, 0.038870085030794144, 0.008842400275170803, -0.01208714209496975, 0.04117743298411369, 0.015762727707624435, 0.014881429262459278, 0.06115586310625076, 0.018429774791002274, -0.02078559435904026, 0.01550205796957016, 0.018216239288449287, 0.002888753777369857, 0.002441023476421833, 0.02619980275630951, -0.04709261655807495, 0.01676957681775093, -0.03609094396233559, 0.1741713583469391, 0.05939280986785889, -0.0062675210647284985, 0.024520495906472206, -0.04991413652896881, 0.033510081470012665, 0.01857847534120083, 0.03818348050117493, 0.00323367933742702, -0.028837615624070168, 0.0567760095000267, -0.01767471246421337, 0.05436941981315613, -0.086420439183712, -0.010074983350932598, -0.05289973318576813, 0.052526891231536865, -0.04145988076925278, -0.03050093539059162, 0.03764835372567177, -0.0382358655333519, 0.009594595991075039, 0.06414692103862762, -0.02307281829416752, -0.01954786479473114, -0.0332866795361042, 0.005310524720698595, 0.011206424795091152, -0.019783103838562965, -0.06759549677371979, -0.025280432775616646, -0.03497591242194176, -0.02660384215414524, 0.0875009074807167, 0.012940884567797184, -0.013417784124612808, -0.02481001615524292, 0.009050983935594559, 0.033736906945705414, -0.0486789308488369, 0.08633594959974289, 0.0054465834982693195, 0.029049349948763847 ]
[ 0.054530367255210876, -0.0025487495586276054, 0.005295855924487114, 0.033725664019584656, 0.046922843903303146, -0.0019698524847626686, -0.0006345389992929995, 0.015225246548652649, 0.0031760979909449816, 0.005835296586155891, 0.00198908313177526, 0.017070753499865532, 0.016822118312120438, 0.0247188750654459, -0.02528553083539009, -0.029919905588030815, 0.011895089410245419, -0.008894902653992176, 0.024792363867163658, -0.007392758969217539, -0.017787501215934753, -0.005065352655947208, 0.04271106421947479, 0.017880504950881004, -0.029040101915597916, 0.0010827718069776893, -0.05387554690241814, 0.012546922080218792, 0.016152065247297287, -0.15707091987133026, -0.02982865273952484, -0.01990390568971634, -0.0038896435871720314, 0.01133060548454523, 0.0030373043846338987, 0.04856077954173088, 0.03872666135430336, 0.013560941442847252, -0.03071678802371025, 0.012649205513298512, 0.0434965118765831, -0.004141406621783972, -0.006128010805696249, -0.03880170360207558, -0.003174522891640663, -0.005163542926311493, -0.03786371275782585, 0.014486189000308514, -0.03237875923514366, -0.02656310610473156, -0.022888043895363808, 0.0440061055123806, -0.008641248568892479, 0.00848255306482315, 0.03786031901836395, -0.002234894782304764, -0.005070733372122049, -0.02819701097905636, 0.03279540315270424, -0.006201838608831167, 0.04153797775506973, 0.022200971841812134, -0.004586068447679281, -0.032211583107709885, 0.02874656766653061, -0.009558185935020447, 0.013736977241933346, -0.017284803092479706, 0.03102697990834713, -0.03718592971563339, -0.019435930997133255, -0.0028524978552013636, -0.017044471576809883, -0.015518611297011375, -0.05270659923553467, 0.06776406615972519, 0.013451033271849155, -0.008689266629517078, 0.013588781468570232, 0.0006578154861927032, -0.01200996246188879, -0.021665876731276512, 0.0030256363097578287, -0.0010640326654538512, -0.003969590179622173, -0.0016179423546418548, -0.01986525021493435, -0.03088325634598732, 0.04699048399925232, -0.04752116650342941, -0.005614733323454857, 0.019781053066253662, -0.014661083929240704, 0.023464437574148178, -0.04432420805096626, -0.04726501554250717, 0.01715429313480854, -0.038381073623895645, -0.03531171754002571, 0.8194490075111389, 0.028533214703202248, 0.014618614688515663, 0.019215231761336327, -0.017705652862787247, 0.013645441271364689, -0.004571528173983097, -0.020984072238206863, 0.007887332700192928, 0.006904206704348326, -0.026402072980999947, 0.007180493790656328, 0.030984774231910706, -0.0048718019388616085, 0.027278590947389603, 0.002875005593523383, 0.03224404901266098, 0.0277620330452919, -0.01606934703886509, -0.043060217052698135, 0.031424250453710556, 0.032254062592983246, -0.023388642817735672, -0.004300875589251518, -0.01025463081896305, 0.003123134607449174, -0.1698916107416153, -0.0337846577167511, -5.865069554026293e-33, 0.03981585055589676, -0.05864260345697403, -0.012600772082805634, 0.01460394449532032, 0.04998878017067909, -0.016735007986426353, -0.03601700812578201, 0.0011973145883530378, -0.00918234046548605, -0.015386651270091534, 0.015978751704096794, -0.03814398869872093, -0.009745688177645206, -0.019676219671964645, 0.0529811717569828, -0.04271112009882927, 0.00004573252226691693, 0.05885300785303116, 0.00295430701225996, 0.004859660752117634, 0.005533427931368351, 0.027840901166200638, -0.028223801404237747, -0.03521178290247917, 0.031833864748477936, 0.027227191254496574, -0.002338612452149391, -0.05163636431097984, 0.021938029676675797, -0.04599897190928459, 0.018856171518564224, -0.01488130260258913, -0.0037714357022196054, -0.028180401772260666, -0.03567242994904518, -0.06315967440605164, -0.008962125517427921, -0.009473413228988647, -0.03687356412410736, -0.03499467298388481, 0.0030989903025329113, 0.0022325017489492893, -0.04514027759432793, 0.008670225739479065, -0.0038479978684335947, -0.002227913588285446, -0.00858114194124937, -0.0071550519205629826, 0.0024919386487454176, -0.010368077084422112, 0.0067580644972622395, -0.02906537614762783, 0.022514281794428825, -0.02793491818010807, -0.01400736067444086, 0.003863033838570118, 0.003330572508275509, -0.0030139402952045202, 0.007993373088538647, -0.03617343679070473, 0.010976108722388744, -0.031192921102046967, -0.07263264805078506, 0.015273434109985828, -0.0006050419178791344, 0.0006777502712793648, 0.026359446346759796, 0.04757707193493843, -0.004637567792087793, 0.018120553344488144, -0.05823304504156113, 0.06085251644253731, -0.01198913250118494, -0.020833883434534073, 0.0023648701608181, -0.022909019142389297, 0.012571570463478565, 0.020896054804325104, -0.021029610186815262, 0.018596865236759186, 0.013025580905377865, -0.0003877734998241067, -0.05729566887021065, 0.01076451689004898, 0.001550377462990582, 0.020468296483159065, 0.04630725085735321, -0.012631908059120178, 0.0004887515096925199, -0.0018712434684857726, 0.03281349316239357, 0.07585149258375168, 0.015745747834444046, -0.05495627969503403, -0.01146511361002922, 6.269012024639048e-33, -0.021998442709445953, -0.010304958559572697, -0.02838064171373844, 0.029015356674790382, 0.0165413711220026, -0.03026009351015091, 0.035983651876449585, 0.0370028093457222, -0.009622601792216301, 0.0073657287284731865, -0.02418236806988716, 0.003051097970455885, -0.0016134462784975767, 0.027307217940688133, 0.03611624985933304, -0.025608645752072334, 0.01808295212686062, -0.015812018886208534, 0.057312093675136566, -0.005740624386817217, -0.0027891849167644978, -0.02056044526398182, 0.01633394882082939, 0.02148929424583912, 0.02702973037958145, 0.07564867287874222, -0.011772864498198032, -0.0010308909695595503, -0.022725243121385574, -0.04571351781487465, 0.046039484441280365, -0.02329457737505436, 0.030479183420538902, 0.025295190513134003, -0.027477320283651352, 0.026813672855496407, -0.013360846787691116, 0.011058127507567406, -0.01280324999243021, -0.06083788722753525, 0.032524388283491135, 0.02564329095184803, -0.02622090093791485, 0.032676685601472855, -0.004415746778249741, 0.000839599350001663, 0.035941239446401596, -0.01682472974061966, 0.008099283091723919, 0.014107765629887581, -0.013385433703660965, -0.019010700285434723, -0.001759273698553443, 0.009811801835894585, -0.005767712835222483, 0.014814169146120548, -0.01644817367196083, 0.018091870471835136, -0.017135845497250557, -0.010220360942184925, -0.00024804382701404393, -0.02311999537050724, -0.020821943879127502, 0.03756481036543846, -0.011727687902748585, -0.037024956196546555, -0.035356633365154266, -0.03348630294203758, -0.005363932810723782, 0.002818496199324727, 0.0032698658760637045, 0.044130612164735794, -0.015274525620043278, 0.06573379039764404, 0.041662510484457016, 0.019974572584033012, 0.004209424834698439, 0.002165143145248294, 0.022907419130206108, -0.013116827234625816, -0.016386691480875015, 0.008504397235810757, -0.031227681785821915, -0.014982758089900017, 0.05184110626578331, 0.013853748328983784, -0.036635033786296844, 0.0605773963034153, 0.01159893162548542, 0.005889588501304388, -0.032686859369277954, -0.036493536084890366, -0.008803222328424454, -0.016171952709555626, -0.010471529327332973, -1.2141454952541153e-8, -0.019049132242798805, -0.012740838341414928, -0.013409201055765152, 0.03403421491384506, 0.02857537567615509, 0.028292344883084297, -0.02493765391409397, 0.02648102305829525, -0.004420498851686716, -0.009647442027926445, 0.039423514157533646, 0.02165275067090988, -0.03417441248893738, 0.001810191199183464, 0.016369514167308807, -0.03170202299952507, -0.0009149081306532025, 0.017867861315608025, 0.042066846042871475, 0.0008691971888765693, -0.013187376782298088, -0.004235853906720877, -0.002375530544668436, 0.004783156793564558, -0.020143110305070877, -0.0030027502216398716, 0.059587761759757996, -0.04342157021164894, -0.03049475885927677, -0.028612904250621796, -0.002654041163623333, -0.02777928300201893, 0.011497064493596554, 0.0490441732108593, -0.02726302482187748, 0.013382947072386742, -0.04054601490497589, 0.055035948753356934, 0.022241318598389626, -0.0003470508963800967, 0.005714347120374441, -0.021849969401955605, -0.02194579876959324, -0.04175034165382385, 0.005711125209927559, -0.00535159558057785, -0.011399577371776104, 0.034509170800447464, 0.009328209795057774, -0.037670545279979706, -0.012622111476957798, -0.027251766994595528, 0.02224208414554596, 0.03599987551569939, 0.028347330167889595, -0.010535693727433681, 0.015992043539881706, -0.028863506391644478, 0.049419037997722626, 0.009221766144037247, 0.03594399243593216, 0.009069972671568394, -0.03799305483698845, -0.018809789791703224 ]
apache-pinot-delete-instances-bad-state
https://markhneedham.com/blog/2022/02/21/apache-pinot-delete-instances-bad-state
false
2022-11-18 02:44:37
Apache Pinot: Inserts from SQL - Unable to get tasks states map - ClassNotFoundException: 'org.apache.pinot.plugin.filesystem.S3PinotFS'
[ "pinot" ]
[ "pinot" ]
I recently wrote a post on the StarTre blog describing the https://startree.ai/blog/apache-pinot-0-11-inserts-from-sql[inserts from SQL^] feature that was added in Apache Pinot 0.11, and while writing it I came across some interesting exceptions due to configuration mistakes I'd made. In this post we're going to describe one of those exceptions. To recap, I was trying to ingest a bunch of JSON files from an S3 bucket using the following SQL query: [source, sql] ---- INSERT INTO "events" FROM FILE 's3://marks-st-cloud-bucket/events/*.json' OPTION( taskName='myTask-s3', input.fs.className='org.apache.pinot.plugin.filesystem.S3PinotFS', input.fs.prop.accessKey='AKIARCOCT6DWLUB7F77Z', input.fs.prop.secretKey='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', input.fs.prop.region='eu-west-2' ); ---- [NOTE] ==== Don't worry, those credentials were deactivated and deleted several days ago. ==== I tried to run the query using an existing Docker setup that I had and got the following exception: [source, text] ---- [ { "message": "QueryExecutionError:\norg.apache.commons.httpclient.HttpException: Unable to get tasks states map. Error code 500, Error message: {\"code\":500,\"error\":\"Failed to create adhoc task: java.lang.ClassNotFoundException: 'org.apache.pinot.plugin.filesystem.S3PinotFS'\\n\\tat java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)\\n\\tat java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)\\n\\tat org.apache.pinot.spi.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:104)\\n\\tat org.apache.pinot.spi.plugin.PluginManager.createInstance(PluginManager.java:354)\\n\\tat org.apache.pinot.spi.plugin.PluginManager.createInstance(PluginManager.java:325)\\n\\tat org.apache.pinot.spi.plugin.PluginManager.createInstance(PluginManager.java:306)\\n\\tat org.apache.pinot.plugin.minion.tasks.segmentgenerationandpush.SegmentGenerationAndPushTaskUtils.getInputPinotFS(SegmentGenerationAndPushTaskUtils.java:47)\\n\\tat org.apache.pinot.plugin.minion.tasks.segmentgenerationandpush.SegmentGenerationAndPushTaskGenerator.getInputFilesFromDirectory(SegmentGenerationAndPushTaskGenerator.java:326)\\n\\tat org.apache.pinot.plugin.minion.tasks.segmentgenerationandpush.SegmentGenerationAndPushTaskGenerator.generateTasks(SegmentGenerationAndPushTaskGenerator.java:211)\\n\\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.createTask(PinotTaskManager.java:194)\\n\\tat org.apache.pinot.controller.api.resources.PinotTaskRestletResource.executeAdhocTask(PinotTaskRestletResource.java:542)\\n\\tat jdk.internal.reflect.GeneratedMethodAccessor257.invoke(Unknown Source)\\n\\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\\n\\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\\n\\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)\\n\\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)\\n\\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)\\n\\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:159)\\n\\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)\\n\\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475)\\n\\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.lambda$apply$0(ResourceMethodInvoker.java:387)\\n\\tat org.glassfish.jersey.server.ServerRuntime$AsyncResponder$2$1.run(ServerRuntime.java:816)\\n\\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)\\n\\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)\\n\\tat org.glassfish.jersey.internal.Errors.process(Errors.java:292)\\n\\tat org.glassfish.jersey.internal.Errors.process(Errors.java:274)\\n\\tat org.glassfish.jersey.internal.Errors.process(Errors.java:244)\\n\\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)\\n\\tat org.glassfish.jersey.server.ServerRuntime$AsyncResponder$2.run(ServerRuntime.java:811)\\n\\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\\n\\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\\n\\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\\n\\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\\n\\tat java.base/java.lang.Thread.run(Thread.java:829)\\n\"}\n\tat org.apache.pinot.common.minion.MinionClient.executeTask(MinionClient.java:123)\n\tat org.apache.pinot.core.query.executor.sql.SqlQueryExecutor.executeDMLStatement(SqlQueryExecutor.java:102)\n\tat org.apache.pinot.controller.api.resources.PinotQueryResource.executeSqlQuery(PinotQueryResource.java:145)\n\tat org.apache.pinot.controller.api.resources.PinotQueryResource.handlePostSql(PinotQueryResource.java:103)", "errorCode": 200 } ] ---- The mistake I've made here is that those option key/value pairs shouldn't be in quotes. If we update it to read this like this: [source, sql] ---- INSERT INTO "events" FROM FILE 's3://marks-st-cloud-bucket/events/*.json' OPTION( taskName=myTask-s3, input.fs.className=org.apache.pinot.plugin.filesystem.S3PinotFS, input.fs.prop.accessKey=AKIARCOCT6DWLUB7F77Z, input.fs.prop.secretKey=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, input.fs.prop.region=eu-west-2 ); ---- It'll work perfectly fine!
In this post we'll learn how to fix the Unable to get tasks states map - Failed to create adhoc task ClassNotFoundException error when using Apache Pinot's inserts from SQL feature.
uploads/2022/11/class-not-found-banner.png
[ -0.0070694200694561005, -0.016793739050626755, -0.01926056109368801, 0.040351372212171555, 0.07129067927598953, 0.009702887386083603, 0.03111988492310047, 0.04549090564250946, -0.012205122038722038, -0.027677172794938087, -0.023898473009467125, -0.025422394275665283, -0.058988455682992935, 0.006484329234808683, -0.011007698252797127, 0.0683366134762764, 0.08108506351709366, 0.012211083434522152, 0.03849874436855316, -0.013055713847279549, 0.026382697746157646, 0.0365423858165741, 0.019938087090849876, 0.04743437096476555, 0.03740677610039711, 0.01630166359245777, -0.020948560908436775, 0.02291928604245186, -0.05048400163650513, -0.013442987576127052, 0.022277068346738815, 0.021937252953648567, 0.008496163412928581, -0.02018834464251995, -0.0006447265041060746, -0.0030632689595222473, -0.017602963373064995, 0.006772071588784456, -0.00967896543443203, 0.04166417196393013, -0.07762542366981506, 0.020964501425623894, 0.00797950103878975, 0.024589188396930695, 0.001396892941556871, 0.030249053612351418, -0.023700041696429253, 0.025611765682697296, 0.005606058519333601, -0.006276470143347979, -0.07360169291496277, 0.03174402564764023, -0.014195405878126621, 0.0039367033168673515, 0.014518638141453266, 0.04983203485608101, 0.022229548543691635, -0.06078406423330307, 0.06396874040365219, -0.04385051503777504, -0.011282740160822868, 0.005792425479739904, -0.011023486033082008, -0.009671169333159924, 0.005134003236889839, -0.01922455057501793, -0.010058139450848103, 0.04662930965423584, -0.038321733474731445, -0.012297322042286396, 0.024809455499053, -0.007402381859719753, -0.014359793625772, -0.019740920513868332, 0.030565941706299782, -0.04682701453566551, -0.01913023740053177, 0.08034036308526993, 0.003789720591157675, 0.04256170243024826, -0.019492942839860916, -0.023238593712449074, 0.01222024392336607, 0.020882155746221542, 0.023724328726530075, -0.06010666862130165, -0.03340935334563255, -0.02339893765747547, -0.008796016685664654, 0.06264300644397736, 0.009709788486361504, -0.025957904756069183, 0.02172057516872883, 0.0026366962119936943, -0.017919979989528656, 0.03444082662463188, 0.011037432588636875, -0.004212534986436367, 0.0012097252765670419, -0.0041596246883273125, -0.04336414858698845, -0.008594662882387638, 0.016886908560991287, 0.05402547866106033, -0.05839577689766884, -0.01496483851224184, -0.03794087469577789, -0.011731709353625774, 0.005396335851401091, 0.011204827576875687, -0.008552213199436665, 0.018686531111598015, -0.003883305937051773, -0.011634896509349346, -0.07691837102174759, 0.08756888657808304, 0.012140018865466118, -0.03680069372057915, 0.020987698808312416, 0.020913727581501007, 0.05500325560569763, 0.005969117395579815, -0.02062779664993286, 0.07923676073551178, 0.001543294289149344, 0.035809315741062164, -0.019153151661157608, 0.02710871770977974, -0.006027979776263237, -0.07081136852502823, -0.03805858641862869, 0.03660660982131958, 0.04358219355344772, 0.005413271952420473, 0.002410748740658164, -0.02648557722568512, -0.01298755407333374, 0.00420442596077919, 0.06293720752000809, 0.02481822855770588, -0.018464108929038048, -0.024165602400898933, 0.004352728370577097, -0.014513657428324223, 0.04691210389137268, 0.032916583120822906, 0.01032551284879446, -0.037639278918504715, -0.03310181573033333, 0.028470775112509727, 0.019791819155216217, 0.032647375017404556, 0.058025795966386795, -0.01938188448548317, 0.0031167594715952873, 0.10830674320459366, 0.014820221811532974, 0.010607462376356125, -0.029841028153896332, 0.015039939433336258, 0.050091058015823364, 0.04062335193157196, -0.0014349508564919233, 0.017817577347159386, 0.011618225835263729, -0.03715956583619118, -0.01844053901731968, 0.03917665034532547, -0.019282575696706772, 0.016412384808063507, -0.05059065669775009, -0.07053358107805252, 0.05946972221136093, -0.06649007648229599, 0.011909428983926773, 0.03315431624650955, 0.08474455028772354, 0.008312881924211979, 0.0387364998459816, 0.027687206864356995, -0.0818728506565094, 0.049060411751270294, 0.001927378703840077, 0.01562341209501028, 0.002160057658329606, 0.01338153425604105, 0.060864999890327454, 0.04327443242073059, 0.0310127604752779, 0.035387154668569565, -0.08756301552057266, -0.10630326718091965, -0.009930538013577461, 0.006447546649724245, 0.06871791183948517, -0.013386406935751438, 0.022529607638716698, 0.061466511338949203, -0.0009849598864093423, 0.011814245022833347, -0.008770301938056946, 0.017371809110045433, 0.017054736614227295, -0.06712216883897781, -0.06640128046274185, 0.029788009822368622, 0.011495167389512062, -0.04921165853738785, -0.05113198235630989, 0.02775733917951584, -0.040248725563287735, -0.01643555425107479, 0.03409171104431152, -0.021665209904313087, 0.07250624150037766, 0.03948366269469261, 0.04321223124861717, -0.04195936396718025, 0.061380043625831604, -0.053557202219963074, 0.03633908927440643, 0.020359409973025322, -0.020665882155299187, -0.012921036221086979, 0.015748046338558197, 0.11707901209592819, 0.05267908051609993, -0.008938814513385296, -0.036374520510435104, 0.0473843552172184, 0.02252921462059021, -0.06522854417562485, 0.015293830074369907, -0.015404356643557549, 0.0014674545964226127, 0.005458835046738386, -0.019965769723057747, -0.024822086095809937, -0.0073556480929255486, -0.020925143733620644, -0.004280716180801392, 0.08700625598430634, -0.03349998593330383, 0.058614764362573624, 0.002606066409498453, -0.022837180644273758, -0.02050900273025036, -0.013953059911727905, -0.039281509816646576, -0.03367316350340843, -0.004912769887596369, -0.008125601336359978, 0.02879086136817932, -0.038199614733457565, -0.03508972004055977, -0.051382869482040405, -0.056212879717350006, 0.013453859835863113, 0.03969971463084221, 0.061414968222379684, -0.04180170223116875, 0.03360632061958313, -0.04174439236521721, 0.003194096963852644, -0.02109329029917717, -0.02425013668835163, -0.022166134789586067, 0.005586808547377586, 0.00650691706687212, 0.020955011248588562, 0.015235542319715023, 0.0053585972636938095, 0.026381878182291985, 0.001043497584760189, 0.01207813061773777, -0.004215666558593512, 0.020045265555381775, 0.004418582655489445, -0.0032129529863595963, -0.004483048338443041, -0.007760319858789444, 0.04095249995589256, -0.051385343074798584, -0.015942562371492386, 0.004988195840269327, -0.05865062400698662, 0.035677727311849594, -0.04641888663172722, -0.06056036800146103, 0.0010110316798090935, 0.05088633671402931, 0.034544896334409714, 0.012654654681682587, -0.030792148783802986, 0.08569794148206711, -0.008976607583463192, -0.003000007476657629, 0.031666938215494156, 0.003104474162682891, 0.05081477761268616, -0.012365073896944523, 0.032463908195495605, 0.015542421489953995, 0.004293801728636026, 0.017016038298606873, -0.02201109565794468, 0.015572096221148968, -0.03696098551154137, -0.28807950019836426, 0.04467586800456047, -0.002981932833790779, -0.007588000502437353, 0.01717357151210308, 0.0005426519201137125, 0.010050845332443714, -0.014832443557679653, -0.011826634407043457, 0.028261344879865646, -0.011402792297303677, -0.018693525344133377, -0.026777757331728935, 0.021911166608333588, -0.006639357656240463, 0.013326977379620075, -0.0029690847732126713, -0.06541911512613297, 0.009990219958126545, 0.01028409879654646, -0.007628502789884806, -0.054879020899534225, 0.002758716233074665, 0.03559908643364906, 0.037102941423654556, 0.04280724748969078, -0.07168232649564743, 0.06274215131998062, -0.03201136738061905, -0.022214578464627266, 0.01598689705133438, -0.034017618745565414, -0.0040812925435602665, -0.0024758721701800823, -0.024976821616292, -0.00210340553894639, 0.024686377495527267, 0.00662003830075264, 0.004494618158787489, -0.0010131081799045205, -0.04682216793298721, -0.08345873653888702, -0.010375633835792542, 0.02413453720510006, 0.07133203744888306, -0.005510715302079916, -0.08545178920030594, -0.004633658565580845, -0.03933735564351082, 0.06352704763412476, -0.03655959293246269, -0.04979916661977768, -0.038300082087516785, 0.012432552874088287, -0.006802336312830448, 0.019142841920256615, -0.008162647485733032, 0.008930063806474209, -0.04578713700175285, -0.017632845789194107, 0.01804983802139759, -0.03570975735783577, -0.00458906777203083, -0.029997223988175392, -0.03208105266094208, -0.053044162690639496, -0.04136904701590538, 0.019055794924497604, 0.07596013695001602, 0.03444009646773338, -0.024274317547678947, 0.04505867511034012, -0.005821811035275459, -0.12620943784713745, -0.02895098738372326, -0.04065805301070213, -0.04996064677834511, 0.0043432158417999744, -0.04234390705823898, 0.04620271176099777, -0.038484685122966766, -0.0012718336656689644, 0.027394544333219528, 0.028412453830242157, 0.018719764426350594, -0.02657647803425789, 0.010478643700480461, -0.04301074147224426, -0.0043807849287986755, 0.007209743373095989, 0.058059997856616974, -0.04428910091519356, -0.015607581473886967, -0.01772504299879074, -0.020116861909627914, 0.07275334745645523, 0.02169533632695675, 0.01230695378035307, -0.013193937949836254, 0.020024405792355537, 0.02162475511431694, -0.05205130577087402, 0.016300974413752556, -0.021217143163084984, 0.0001911638828460127, -0.00040155023452825844, -0.04460032656788826, 0.03489692509174347, 0.02047193981707096, 0.04010414332151413, 0.030649790540337563, -0.02452576905488968, 0.016348624601960182, -0.04489007592201233, -0.016545092687010765, -0.007004822604358196, 0.02156198024749756, 0.022742915898561478, 0.04028666391968727, -0.02735598385334015, -0.060035109519958496, 0.02742147445678711, 0.04313420131802559, -0.028824852779507637, -0.02019234374165535, -0.02857321687042713, -0.014179721474647522, -0.011571230366826057, -0.013277756050229073, -0.012370012700557709, -0.010747173801064491, 0.03412788733839989, 0.05406744033098221, 0.007266443222761154, 0.01816122606396675, -0.04606420174241066, -0.02666424587368965, -0.04035508632659912, 0.036012914031744, 0.0204030591994524, -0.009902429766952991, 0.004319885279983282, -0.02792445942759514, 0.030002105981111526, 0.04830959439277649, 0.010880923829972744, 0.00042879284592345357, -0.017518727108836174, 0.023267051205039024, 0.019804697483778, -0.006368489004671574, -0.022792812436819077, 0.007886417210102081, -0.047781068831682205, -0.05021466687321663, -0.024353358894586563, 0.03612155094742775, -0.010395214892923832, -0.016238996759057045, -0.030791034922003746, 0.027684925124049187, -0.06299684941768646, -0.023963652551174164, -0.017282754182815552, -0.038566265255212784, 0.029754139482975006, 0.004020932596176863, 0.017987120896577835, -0.004990571644157171, -0.008082674816250801, 0.013300458900630474, -0.012532827444374561, -0.03171101212501526, 0.02100442536175251, -0.017082758247852325, -0.007060896139591932, 0.04145636782050133, 0.028831452131271362, -0.002942538820207119, -0.002620720537379384, 0.006317170336842537, -0.0031227085273712873, 0.02437295950949192, 0.026207569986581802, 0.04691251367330551, 0.027405470609664917, -0.01660020835697651, -0.014629343524575233, -0.006684837397187948, -0.02334388718008995, -0.04962122067809105, 0.0027376720681786537, -0.00769620668143034, 0.0398348867893219, -0.011609912849962711, -0.06953223049640656, 0.05540713667869568, 0.016128499060869217, -0.0012554051354527473, 0.022402765229344368, -0.0005751170101575553, -0.010914835147559643, -0.040212489664554596, 0.05331703647971153, 0.09449926018714905, -0.06297134608030319, 0.01601533778011799, -0.007151060272008181, -0.008776111528277397, 0.005133289843797684, 0.014466395601630211, -0.0355810709297657, -0.01928791031241417, -0.022524116560816765, 0.03716639429330826, -0.04331277683377266, -0.02711869217455387, -0.01096558477729559, 0.011282430030405521, 0.0012868477497249842, 0.008223672397434711, 0.011314928531646729, -0.0008752968278713524, -0.02359112724661827, -0.02520632930099964, 0.04210519790649414, -0.012113903649151325, -0.0024032816290855408, 0.02587934583425522, -0.019793855026364326, 0.021736545488238335, -0.04672739654779434, 0.009862709790468216, 0.007805717643350363, -0.022536220028996468, -0.00833711214363575, -0.027687426656484604, 0.0026579154655337334, 0.022126423195004463, 0.07942661643028259, 0.0025596630293875933, -0.0053252666257321835, -0.011571582406759262, -0.010431867092847824, -0.02206830494105816, 0.00490033533424139, -0.0022460180334746838, -0.013448746874928474, 0.04736093059182167, 0.06384687125682831, 0.018327582627534866, 0.011132159270346165, -0.0021501146256923676, -0.011221037246286869, 0.0746319442987442, -0.04956135153770447, -0.03011774830520153, -0.015480770729482174, -0.07468019425868988, 0.03774917498230934, 0.016254333779215813, 0.02002774178981781, -0.05538531765341759, 0.05117024481296539, 0.026639137417078018, -0.008739025332033634, 0.0313858725130558, -0.010776303708553314, 0.024425501003861427, -0.013435660861432552, -0.027355358004570007, -0.09222473949193954, -0.01269509270787239, 0.05750521644949913, -0.016285603865981102, 0.00455077551305294, -0.018308570608496666, -0.06273312866687775, 0.01329722348600626, -0.06233952194452286, -0.03754987567663193, 0.03779805824160576, -0.008282058872282505, 0.004975665360689163, 0.006887482013553381, -0.033910106867551804, 0.007940318435430527, 0.013337680138647556, -0.04108543321490288, -0.03159402310848236, -0.023623250424861908, 0.05274266377091408, 0.01602347195148468, 0.016082018613815308, -0.021066976711153984, -0.03656398877501488, 0.06584782898426056, 0.003644324606284499, -0.013111051172018051, 0.06633654236793518, -0.026124490424990654, 0.03720774129033089, 0.02756042778491974, 0.011011997237801552, 0.019379975274205208, 0.005132889375090599, -0.03559728339314461, -0.06976359337568283, 0.023127101361751556, 0.011746254749596119, -0.005040966905653477, -0.048781655728816986, 0.05419601500034332, 0.004346160683780909, -0.037084970623254776, -0.06073099374771118, 0.0017428494757041335, -0.03170662373304367, -0.04385824874043465, -0.04014265164732933, 0.019951501861214638, -0.04833101108670235, 0.057320281863212585, -0.012517070397734642, 0.013513495214283466, 0.07437041401863098, 0.021593667566776276, -0.012570247054100037, 0.013381621800363064, 0.08358681201934814, 0.06570811569690704, -0.010447772219777107, 0.004159494768828154, 0.04632631316781044, -0.02800602838397026, -0.02708595246076584, -0.006816855166107416, -0.039650026708841324, -0.03582584857940674, -0.024794062599539757, 0.014210302382707596, 0.06545348465442657, -0.010306079871952534, 0.05169916898012161, -0.014691689051687717, 0.007784547749906778, -0.008565861731767654, 0.006634249351918697, 0.02035278081893921, 0.022079788148403168, 0.004216322675347328, 0.043047890067100525, -0.024106062948703766, -0.028544560074806213, -0.006717563606798649, 0.0069608851335942745, -0.03477003425359726, 0.009784760884940624, -0.03661392629146576, 0.021833699196577072, 0.04642310366034508, -0.009767655283212662, 0.07282872498035431, -0.015020297840237617, -0.004346700385212898, 0.004228587727993727, 0.03606140613555908, 0.001369705074466765, 0.030925046652555466, -0.0406799353659153, -0.03286813572049141, -0.020385002717375755, -0.04679559916257858, -0.01340243499726057, -0.007744552567601204, -0.038707319647073746, 0.027624791488051414, -0.02427777461707592, 0.005071551073342562, 0.021174414083361626, -0.011847422458231449, -0.0474521666765213, -0.06548232585191727, -0.052764467895030975, -0.03453486040234566, -0.05290381610393524, -0.02135150320827961, -0.0026650235522538424, -0.008945685811340809, -0.027225840836763382, -0.018699899315834045, -0.0076216403394937515, 0.007838603109121323, 0.029853995889425278, -0.027130695059895515, -0.02502051368355751, 0.023242441937327385, 0.028515273705124855, 0.008493594825267792, 0.02724737673997879, 0.065207339823246, -0.036852262914180756, 0.015622829087078571, -0.022468503564596176, -0.023522786796092987, 0.04433947056531906, 0.007833138108253479, 0.019752584397792816, -0.07261662185192108, 0.028618890792131424, 0.021250667050480843, 0.006129656918346882, -0.045917436480522156, 0.0064886040054261684, 0.05227549374103546, -0.025163773447275162, 0.06196609139442444, -0.008209871128201485, 0.020270969718694687, -0.05074980482459068, -0.023125138133764267, -0.012310514226555824, -0.005316922906786203, 0.05293022468686104, -0.012306774966418743, 0.07163676619529724, 0.04849524050951004, -0.044133260846138, -0.002655044198036194, 0.004406765569001436, 0.005828412715345621, 0.008459649980068207, -0.0592462532222271, -0.035389091819524765, -0.03188491612672806, -0.07577770203351974, -0.03133305534720421, 0.022828377783298492, -0.018519459292292595, -0.02792990207672119, 0.004206681624054909, -0.007280377205461264, -0.04909816384315491, -0.0057635377161204815, -0.05227876454591751, 0.040517207235097885, -0.01581452786922455, -0.02419569157063961, -0.03559992089867592, -0.0016718704719096422, 0.002185313729569316, -0.030014347285032272, 0.004316981881856918, -0.036907706409692764, 0.012111863121390343, -0.03240705654025078, 0.05842951312661171, 0.045893020927906036, -0.025617212057113647, -0.012169314548373222 ]
[ -0.07457008212804794, -0.06016462668776512, -0.05650978907942772, -0.0279946681112051, 0.03188546374440193, -0.06919990479946136, -0.00903607439249754, 0.03745042532682419, -0.0008688393863849342, -0.0310741625726223, 0.007056672591716051, -0.03191982954740524, 0.0066076316870749, -0.02218583971261978, 0.06220485270023346, -0.0036282860673964024, -0.007857474498450756, -0.0642981007695198, -0.02682170644402504, 0.03244376182556152, -0.011694519780576229, -0.03843202441930771, -0.035906530916690826, -0.0464610792696476, -0.015686439350247383, 0.053154148161411285, 0.04072805494070053, -0.030002454295754433, -0.04885687306523323, -0.1884446144104004, 0.025870926678180695, -0.04084806516766548, -0.006693066563457251, -0.012811324559152126, -0.0029014437459409237, 0.049081072211265564, 0.0246177576482296, 0.011251138523221016, 0.0335344560444355, 0.03489077463746071, -0.006510479841381311, -0.002620008308440447, -0.07792932540178299, 0.006113845389336348, 0.011377865448594093, -0.0409146286547184, -0.015172909013926983, -0.0063697719015181065, 0.02946273423731327, 0.0060225375927984715, -0.0732521340250969, -0.01165524311363697, -0.004660768900066614, -0.011077524162828922, 0.01986849121749401, 0.009063314646482468, 0.038756635040044785, 0.06498166918754578, 0.008555931970477104, 0.02652197889983654, -0.004325974266976118, -0.005019357427954674, -0.1402777135372162, 0.09820637106895447, 0.02033853530883789, 0.056412626057863235, -0.011978580616414547, 0.007080348674207926, -0.01351675670593977, 0.046292729675769806, 0.011380338110029697, -0.007908521220088005, -0.03813683241605759, 0.08923254907131195, 0.00552581949159503, 0.004065804183483124, 0.006278726737946272, 0.055509887635707855, 0.01582849957048893, -0.018296753987669945, -0.05693845823407173, -0.018400132656097412, 0.017019079998135567, 0.0036258792970329523, -0.06216220557689667, 0.011094965972006321, -0.013835667632520199, 0.06617730855941772, 0.018728209659457207, -0.0049222479574382305, 0.023897957056760788, -0.0052811698988080025, 0.03861192986369133, 0.009761928580701351, -0.06338941305875778, 0.018117470666766167, -0.01367974653840065, 0.00431637279689312, -0.04738148674368858, 0.3838149607181549, -0.021710915490984917, -0.010471292771399021, 0.023715442046523094, 0.004892807919532061, 0.0013165607815608382, 0.008756915107369423, -0.03056495450437069, -0.03578244149684906, 0.035927824676036835, -0.027181655168533325, 0.03292760252952576, -0.01603514328598976, 0.08794830739498138, -0.04686107859015465, 0.00513170100748539, 0.03662289306521416, 0.021997276693582535, 0.005332011729478836, -0.0580647736787796, 0.04002505913376808, -0.005691352766007185, 0.006824727635830641, 0.008168934844434261, 0.0404198057949543, -0.009019345045089722, -0.02686416544020176, 0.030406400561332703, 0.05838550254702568, 0.043370574712753296, 0.011840274557471275, 0.03456772118806839, -0.01857820525765419, -0.0911966860294342, -0.005810214672237635, 0.007141575682908297, 0.009874813258647919, 0.011090055108070374, -0.02387055940926075, 0.008692292496562004, -0.010156268253922462, -0.027139266952872276, -0.06795697659254074, 0.02962232008576393, -0.04259629547595978, -0.03502216935157776, 0.12617556750774384, 0.00017322080384474248, -0.033848874270915985, -0.0161757692694664, -0.05346965044736862, -0.027000678703188896, 0.03902610391378403, 0.0016452783020213246, -0.036058153957128525, -0.005202384199947119, 0.04354710131883621, 0.06635492295026779, -0.0023264449555426836, -0.05029367655515671, -0.01600325107574463, -0.00508057652041316, -0.06369717419147491, -0.04309467971324921, 0.03739454224705696, 0.05673212558031082, -0.12535206973552704, -0.018830226734280586, 0.00788052100688219, -0.004831885918974876, -0.005492071155458689, 0.006944382097572088, 0.04216403141617775, -0.046246714890003204, -0.02257603220641613, 0.03135695680975914, -0.024764852598309517, -0.006395911797881126, -0.004633455537259579, 0.04558642953634262, 0.027743298560380936, -0.023097746074199677, 0.021324533969163895, -0.019300173968076706, -0.02441488392651081, -0.03921864926815033, -0.09532412886619568, -0.04447596147656441, 0.01682385429739952, 0.017863363027572632, -0.012691393494606018, -0.055265288800001144, -0.04263515770435333, -0.07767529040575027, 0.05810174345970154, -0.0007137437351047993, -0.027550559490919113, 0.023445894941687584, -0.0036789369769394398, 0.009868207387626171, -0.045669037848711014, 0.04219959303736687, 0.0468265525996685, 0.010742182843387127, 0.04172749072313309, -0.054667770862579346, 0.03736996650695801, 0.0289801973849535, -0.02854868955910206, 0.030170200392603874, 0.01101782638579607, -0.03480808809399605, 0.03882160410284996, -0.021876033395528793, 0.025510279461741447, -0.00634670490399003, -0.019272178411483765, -0.02375052496790886, 0.004867880139499903, 0.04442332684993744, 0.024003803730010986, -0.03584928810596466, 0.0015996823785826564, 0.005035416688770056, -0.378553181886673, -0.030735647305846214, -0.03916943073272705, -0.024176472797989845, -0.039977021515369415, -0.03206261247396469, 0.0061718132346868515, -0.011279784142971039, -0.030202005058526993, 0.003860290627926588, 0.1024908646941185, -0.010789074003696442, 0.03212206810712814, -0.05990542843937874, 0.024890383705496788, 0.005356164183467627, -0.05921553820371628, -0.02745089866220951, -0.014646587893366814, 0.0037681034300476313, -0.014872362837195396, -0.020459819585084915, -0.005646211560815573, -0.04131714254617691, 0.007624046877026558, -0.007875695824623108, 0.10755981504917145, 0.017339421436190605, 0.048839226365089417, -0.10021581500768661, 0.06229647248983383, 0.029125042259693146, 0.023735303431749344, -0.0885612890124321, 0.01232088916003704, -0.049217287451028824, -0.0014941596891731024, 0.028832755982875824, 0.010872137732803822, 0.001054651802405715, -0.07685922086238861, 0.03620939329266548, -0.03832289204001427, -0.08008170872926712, 0.019550612196326256, -0.005841915495693684, 0.0028490184340626, -0.014672782272100449, -0.024006668478250504, 0.09470456838607788, 0.01332992222160101, 0.020645232871174812, 0.03840786963701248, 0.03519390895962715, 0.04440806061029434, -0.01048019528388977, -0.06842591613531113, -0.016109976917505264, 0.014152743853628635, 0.004601833410561085, 0.048713039606809616, 0.05775519087910652, 0.03351997211575508, -0.04831186681985855, -0.006056046579033136, 0.0071817622520029545, 0.008527258411049843, 0.013781791552901268, 0.04540017247200012, -0.030770348384976387, -0.066461481153965, 0.10131215304136276, 0.006611808203160763, 0.0140446238219738, 0.019922882318496704, 0.029610831290483475, -0.0033596816938370466, -0.034433454275131226, 0.026206057518720627, -0.0006700203521177173, 0.05380317568778992, -0.02967834658920765, 0.06715790927410126, -0.03521832823753357, 0.0018941180314868689, 0.10549356788396835, 0.003184014465659857, 0.018155593425035477, 0.07693538069725037, -0.008247772231698036, -0.04655995965003967, -0.017970260232686996, -0.0228013526648283, -0.02572089061141014, 0.07412773370742798, -0.011878258548676968, -0.2702075242996216, 0.03460416942834854, 0.04200176149606705, 0.04592995345592499, 0.01570417545735836, 0.020675165578722954, 0.019456665962934494, -0.059149421751499176, 0.02111678197979927, 0.001540259807370603, 0.03741375729441643, 0.010543032549321651, -0.00881770346313715, 0.00303019885905087, 0.02091626636683941, -0.006690440233796835, 0.016898663714528084, 0.032147496938705444, 0.03845378756523132, 0.002959407866001129, 0.02385711669921875, 0.01361227035522461, 0.1652495563030243, 0.053525522351264954, -0.016960738226771355, 0.0559849888086319, -0.009679618291556835, 0.04667355492711067, 0.056421905755996704, 0.05407658964395523, 0.01068656612187624, -0.008895519189536572, 0.045176781713962555, 0.011312258429825306, 0.05642576888203621, -0.055788952857255936, -0.0032888525165617466, 0.026063289493322372, 0.017812155187129974, -0.017709659412503242, -0.04492885619401932, 0.022981101647019386, -0.037945035845041275, 0.0446285717189312, 0.06172112002968788, -0.029470432549715042, 0.013168270699679852, -0.057956237345933914, -0.018429039046168327, 0.0020451731979846954, 0.0015240981010720134, -0.0442517064511776, -0.00460195355117321, -0.008294555358588696, -0.01463650818914175, 0.07593893259763718, 0.030991526320576668, -0.03169795870780945, -0.02860378287732601, 0.03145099803805351, 0.016762273386120796, -0.049528568983078, 0.08359219878911972, 0.03642119839787483, -0.0034924622159451246 ]
[ 0.005613978952169418, -0.022712569683790207, -0.020814351737499237, -0.004643695894628763, 0.01196021307259798, 0.0008182837627828121, 0.011357132345438004, 0.01285525318235159, 0.001865645288489759, -0.020574387162923813, -0.013141797855496407, 0.012278756126761436, 0.0074815088883042336, -0.009859836660325527, 0.006674880627542734, -0.04657397419214249, 0.009165225550532341, 0.01912453956902027, 0.014542829245328903, -0.01278000883758068, -0.021484117954969406, 0.03022526577115059, 0.034612223505973816, -0.00019087940745521337, 0.00988639798015356, 0.022688841447234154, -0.05111071467399597, -0.010735437273979187, -0.0026666754856705666, -0.11388237029314041, -0.008079474791884422, -0.06409817188978195, -0.001206225948408246, -0.0066522108390927315, 0.0319722518324852, 0.0036729706916958094, -0.012209962122142315, 0.0020245653577148914, -0.022920964285731316, -0.00969020463526249, 0.02397146075963974, -0.04514896497130394, -0.03813525289297104, -0.031188324093818665, -0.024981267750263214, -0.03612586483359337, -0.03705822676420212, -0.04607510194182396, -0.016666121780872345, 0.020996801555156708, -0.013918186537921429, -0.009674291126430035, 0.020433757454156876, 0.004834902472794056, -0.008398743346333504, 0.009417370893061161, -0.02688753604888916, 0.012953109107911587, -0.030442416667938232, -0.03383275121450424, 0.004442364443093538, -0.0275295190513134, 0.011964729055762291, -0.02744508534669876, 0.013597593642771244, -0.04746074229478836, -0.0008699243189767003, -0.023030327633023262, 0.032871779054403305, -0.002306436887010932, 0.0018353956984356046, 0.03307656943798065, -0.05611544847488403, -0.004306824412196875, -0.026153983548283577, 0.013556882739067078, 0.029542330652475357, 0.01774856448173523, -0.013566024601459503, -0.0028674511704593897, -0.028555866330862045, -0.01796574331820011, -0.028029922395944595, 0.0503423698246479, -0.020947787910699844, -0.03218233212828636, -0.021787486970424652, 0.019730884581804276, 0.010285567492246628, -0.011555069126188755, -0.05425475537776947, -0.008656331337988377, -0.012408182956278324, 0.013926325365900993, -0.06231241673231125, 0.01410778146237135, -0.012372467666864395, -0.02016850747168064, -0.00898650847375393, 0.822524905204773, 0.0244829673320055, 0.025752494111657143, 0.02726690284907818, 0.008154626004397869, 0.04538919776678085, 0.011316140182316303, -0.06945320963859558, -0.009891652502119541, -0.011357228271663189, -0.037526436150074005, 0.014181196689605713, -0.008680636063218117, 0.040354155004024506, 0.015561053529381752, 0.020604148507118225, 0.0322299599647522, 0.009058687835931778, -0.005752854514867067, -0.013762502931058407, 0.041530266404151917, 0.05221787840127945, -0.027286453172564507, 0.00594318937510252, -0.020736154168844223, -0.0014564752345904708, -0.16792765259742737, -0.015233459882438183, -7.498766460011323e-33, 0.05636226385831833, -0.056213393807411194, 0.01947975903749466, 0.026142550632357597, 0.03570003807544708, -0.01876569166779518, -0.009067084640264511, 0.04724929481744766, 0.022707056254148483, -0.033032096922397614, -0.015045705251395702, -0.040569406002759933, 0.021118106320500374, -0.0570632703602314, 0.02070607803761959, -0.0012928879586979747, -0.02210710383951664, 0.017600132152438164, -0.007514302618801594, 0.004634372424334288, 0.013626894913613796, 0.0248587504029274, -0.0021758091170340776, 0.00241728313267231, 0.041030656546354294, 0.0012237154878675938, 0.0346919447183609, -0.008535685949027538, -0.008244691416621208, -0.029775191098451614, 0.021980561316013336, -0.013947763480246067, -0.024254441261291504, -0.03878052905201912, 0.044986873865127563, -0.04678597301244736, -0.015145627781748772, 0.004270877689123154, -0.04262283444404602, -0.041769176721572876, -0.02783794328570366, -0.025814693421125412, -0.013687621802091599, 0.012710382230579853, -0.04081137105822563, -0.005061928648501635, 0.0007557792705483735, -0.003581080585718155, 0.0027084180619567633, 0.030361950397491455, 0.013855931349098682, -0.00012387573951855302, 0.029732728376984596, 0.0007980995578691363, 0.015410272404551506, 0.005865998100489378, 0.011118977330625057, 0.016348013654351234, -0.017868628725409508, 0.001130637596361339, -0.0437522828578949, -0.005521466489881277, -0.03127787262201309, 0.039959363639354706, 0.00833799410611391, 0.006563915405422449, 0.03005743958055973, 0.025249812752008438, 0.021220490336418152, 0.01585119217634201, -0.02971513383090496, 0.009031608700752258, -0.009244873188436031, 0.00360668427310884, 0.003745343768969178, -0.0383465550839901, 0.007727459073066711, -0.007365725003182888, 0.004943585954606533, 0.037943631410598755, 0.026773730292916298, -0.038978733122348785, -0.028952857479453087, -0.0170685313642025, -0.0576106533408165, -0.016139617189764977, 0.012163379229605198, 0.004964829422533512, 0.009382743388414383, 0.023387061432003975, 0.06145361810922623, 0.07614629715681076, 0.023137539625167847, -0.012178773991763592, -0.03634735941886902, 7.510831440154576e-33, -0.021425826475024223, -0.02045178972184658, -0.01022455096244812, 0.0074743907898664474, 0.05000607669353485, 0.007202243432402611, 0.028859321027994156, 0.03888745978474617, -0.037002209573984146, 0.03513920679688454, -0.07385198026895523, 0.026778794825077057, -0.008032012730836868, -0.00697441166266799, 0.05071825161576271, 0.0029134885407984257, 0.010617099702358246, -0.026312189176678658, 0.03349216282367706, 0.019557978957891464, 0.04935753718018532, 0.016883930191397667, 0.03281702101230621, 0.02667907066643238, 0.030461564660072327, 0.025127772241830826, -0.0233685951679945, -0.00418442115187645, -0.04502762481570244, -0.019435644149780273, 0.03134588524699211, -0.019844332709908485, 0.011898314580321312, -0.03564712405204773, -0.04043671488761902, -0.02375033311545849, -0.00047516205813735723, 0.008946117013692856, 0.006254869978874922, -0.013838554732501507, 0.033983729779720306, -0.012695502489805222, 0.023078352212905884, 0.04881447181105614, 0.01059810072183609, 0.010233508422970772, 0.00993917603045702, 0.02443765290081501, -0.020044445991516113, 0.03335586190223694, -0.02905065007507801, -0.03460972011089325, 0.014396615326404572, 0.027981815859675407, 0.07202423363924026, -0.009295377880334854, -0.025432156398892403, -0.0172258373349905, -0.05081385001540184, 0.011412007734179497, -0.0052667357958853245, -0.0076941801235079765, 0.01171836443245411, 0.02499113418161869, -0.03378812596201897, -0.028951339423656464, -0.032436538487672806, 0.0018020763527601957, -0.021695926785469055, -0.017702478915452957, -0.0160352885723114, -0.030446995049715042, -0.006506803911179304, 0.04514805227518082, 0.06254341453313828, -0.02785743959248066, -0.03799544647336006, 0.01525905542075634, -0.0038117365911602974, -0.003678609849885106, 0.016051584854722023, 0.03190810605883598, -0.007835344411432743, -0.009678814560174942, 0.07208645343780518, 0.006552441045641899, -0.040653329342603683, 0.020255830138921738, -0.017927180975675583, -0.0073045045137405396, -0.03239583596587181, 0.00571373850107193, -0.023163441568613052, 0.030708378180861473, 0.010796130634844303, -1.2719506337077746e-8, -0.008624282665550709, 0.013726289384067059, -0.020594710484147072, 0.02063504047691822, 0.06615505367517471, -0.0020120907574892044, -0.025372609496116638, 0.03592139482498169, 0.00526080746203661, 0.016302647069096565, 0.03181108459830284, 0.00019056061864830554, 0.020230133086442947, 0.022893249988555908, 0.0140273692086339, -0.04486258327960968, 0.023451752960681915, -0.0022299077827483416, 0.014098677784204483, -0.01086509320884943, 0.028540754690766335, 0.05068724974989891, -0.008523364551365376, -0.013341913931071758, 0.005672207102179527, 0.017493925988674164, 0.02908739075064659, -0.05388036370277405, -0.023358792066574097, -0.004598382394760847, -0.010229469276964664, -0.032868560403585434, -0.014601090922951698, 0.013600017875432968, -0.04666750133037567, -0.008858615532517433, 0.016261782497167587, -0.006764673162251711, 0.009600377641618252, 0.009451120160520077, 0.014161166734993458, 0.03127298504114151, 0.011941062286496162, -0.015174251981079578, -0.024181118234992027, -0.0037435777485370636, -0.03154684230685234, 0.06851974874734879, 0.005362582392990589, -0.011553879827260971, -0.03367750719189644, -0.01884884014725685, 0.033856332302093506, 0.019751867279410362, 0.05893092229962349, 0.004335965495556593, 0.05773606523871422, -0.0326680913567543, 0.013283799402415752, 0.03278166428208351, 0.07075878977775574, 0.006879798602312803, -0.01807139813899994, -0.012408491224050522 ]
apache-pinot-inserts-sql-unable-get-tasks-states-map-classnotfoundexception-s3pinotfs
https://markhneedham.com/blog/2022/11/18/apache-pinot-inserts-sql-unable-get-tasks-states-map-classnotfoundexception-s3pinotfs
false
2022-11-18 02:44:37
Apache Pinot: Inserts from SQL - Unable to get tasks states map - NullPointerException
[ "pinot" ]
[ "pinot" ]
I recently wrote a post on the StarTre blog describing the https://startree.ai/blog/apache-pinot-0-11-inserts-from-sql[inserts from SQL^] feature that was added in Apache Pinot 0.11, and while writing it I came across some interesting exceptions due to configuration mistakes I'd made. In this post we're going to describe one of those exceptions. To recap, I was trying to ingest a bunch of JSON files from an S3 bucket using the following SQL query: [source, sql] ---- INSERT INTO "events" FROM FILE 's3://marks-st-cloud-bucket/events/*.json' OPTION( taskName=myTask-s3, input.fs.className=org.apache.pinot.plugin.filesystem.S3PinotFS, input.fs.prop.accessKey=AKIARCOCT6DWLUB7F77Z, input.fs.prop.secretKey=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, input.fs.prop.region=eu-west-2 ); ---- [NOTE] ==== Don't worry, those credentials were deactivated and deleted several days ago. ==== I tried to run the query using an existing Docker setup that I had and got the following exception: [source, text] ---- [ { "message": "QueryExecutionError:\norg.apache.commons.httpclient.HttpException: Unable to get tasks states map. Error code 500, Error message: {\"code\":500,\"error\":\"Failed to create adhoc task: java.lang.NullPointerException\\n\\tat java.base/java.util.HashMap.putMapEntries(HashMap.java:497)\\n\\tat java.base/java.util.HashMap.putAll(HashMap.java:781)\\n\\tat org.apache.pinot.plugin.minion.tasks.segmentgenerationandpush.SegmentGenerationAndPushTaskGenerator.generateTasks(SegmentGenerationAndPushTaskGenerator.java:202)\\n\\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.createTask(PinotTaskManager.java:194)\\n\\tat org.apache.pinot.controller.api.resources.PinotTaskRestletResource.executeAdhocTask(PinotTaskRestletResource.java:542)\\n\\tat jdk.internal.reflect.GeneratedMethodAccessor257.invoke(Unknown Source)\\n\\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\\n\\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\\n\\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)\\n\\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)\\n\\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)\\n\\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:159)\\n\\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)\\n\\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475)\\n\\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.lambda$apply$0(ResourceMethodInvoker.java:387)\\n\\tat org.glassfish.jersey.server.ServerRuntime$AsyncResponder$2$1.run(ServerRuntime.java:816)\\n\\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)\\n\\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)\\n\\tat org.glassfish.jersey.internal.Errors.process(Errors.java:292)\\n\\tat org.glassfish.jersey.internal.Errors.process(Errors.java:274)\\n\\tat org.glassfish.jersey.internal.Errors.process(Errors.java:244)\\n\\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)\\n\\tat org.glassfish.jersey.server.ServerRuntime$AsyncResponder$2.run(ServerRuntime.java:811)\\n\\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\\n\\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\\n\\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\\n\\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\\n\\tat java.base/java.lang.Thread.run(Thread.java:829)\\n\"}\n\tat org.apache.pinot.common.minion.MinionClient.executeTask(MinionClient.java:123)\n\tat org.apache.pinot.core.query.executor.sql.SqlQueryExecutor.executeDMLStatement(SqlQueryExecutor.java:102)\n\tat org.apache.pinot.controller.api.resources.PinotQueryResource.executeSqlQuery(PinotQueryResource.java:145)\n\tat org.apache.pinot.controller.api.resources.PinotQueryResource.handlePostSql(PinotQueryResource.java:103)", "errorCode": 200 } ] ---- A bit of debugging of the https://github.com/apache/pinot[Pinot source code^] made me realise that I was missing the `SegmentGenerationAndPushTask` definition in my table config. This means that the task to do the data ingestion can't be scheduled. The missing configuration is shown below: [source, json] ---- "task": { "taskTypeConfigsMap": { "SegmentGenerationAndPushTask": { } } } ---- Once I added that everything was happy again and the files were ingested into Pinot.
In this post we'll learn how to fix the Unable to get tasks states map - Failed to create adhoc task NullPointerException error when using Apache Pinot's inserts from SQL feature.
uploads/2022/11/npe-banner.png
[ -0.010084370151162148, -0.013606864027678967, -0.022195681929588318, 0.036741383373737335, 0.06471261382102966, 0.015517409890890121, 0.037831179797649384, 0.0441378578543663, -0.014052650891244411, -0.02773069031536579, -0.026072271168231964, -0.03175710141658783, -0.06343942880630493, 0.0062422682531178, -0.010928050614893436, 0.06564442068338394, 0.08844923973083496, 0.00894918106496334, 0.0218524020165205, -0.006555321626365185, 0.028994964435696602, 0.03159193694591522, 0.02526017837226391, 0.05139397084712982, 0.040045324712991714, 0.018163619562983513, -0.016994401812553406, 0.02736404910683632, -0.05497768521308899, -0.016716815531253815, 0.01826317608356476, 0.01938820816576481, 0.014685211703181267, -0.01786036603152752, 0.0036623170599341393, -0.005454954691231251, -0.02157529816031456, 0.004636961966753006, -0.009277190081775188, 0.033120326697826385, -0.08185289055109024, 0.02441002056002617, 0.005098332650959492, 0.028024300932884216, 0.010578286834061146, 0.027818333357572556, -0.022892437875270844, 0.03350631892681122, -0.0011510794283822179, 0.0018330143066123128, -0.07179167866706848, 0.031013429164886475, -0.013176987878978252, 0.015254332683980465, 0.005904668942093849, 0.049115415662527084, 0.02373548597097397, -0.06460509449243546, 0.06413567811250687, -0.04243098944425583, -0.0066167074255645275, 0.003462516237050295, 0.0011885184794664383, -0.004902070853859186, 0.003859805641695857, -0.018770402297377586, -0.01840122602880001, 0.051251061260700226, -0.03427787125110626, -0.01008282694965601, 0.026850905269384384, -0.012679565697908401, -0.015115158632397652, -0.019490327686071396, 0.02171451784670353, -0.0523347370326519, -0.01719266176223755, 0.07760289311408997, -0.0033379390370100737, 0.03928559646010399, -0.02340608462691307, -0.03467489406466484, 0.014411251991987228, 0.0218108631670475, 0.03129800036549568, -0.05839472636580467, -0.02759520150721073, -0.030836006626486778, -0.017242496833205223, 0.06104111671447754, 0.008729656226933002, -0.022134127095341682, 0.020922211930155754, 0.003565293038263917, -0.015155672095716, 0.0250669177621603, 0.012666555121541023, -0.00752456858754158, -0.0009098252048715949, -0.005987029056996107, -0.03471148759126663, -0.008816747926175594, 0.019267644733190536, 0.05498301237821579, -0.06261295825242996, -0.01801658608019352, -0.034025032073259354, -0.013915443792939186, 0.008550232276320457, 0.011927098967134953, -0.010043934918940067, 0.022683806717395782, 0.0016185306012630463, -0.0060110632330179214, -0.07123493403196335, 0.08399907499551773, 0.01598174497485161, -0.03333478048443794, 0.01713331788778305, 0.017737947404384613, 0.058315832167863846, 0.015704292804002762, -0.008688542060554028, 0.08387438207864761, -0.0027780502568930387, 0.03810388222336769, -0.01956028863787651, 0.031225435435771942, -0.0050843991339206696, -0.06908366829156876, -0.03476845100522041, 0.03901463747024536, 0.04176995903253555, 0.005572081543505192, 0.0013886949745938182, -0.030356289818882942, -0.014755379408597946, -0.0014114242512732744, 0.0604708269238472, 0.01726187951862812, -0.0231137927621603, -0.024013414978981018, 0.00660277483984828, -0.020920569077134132, 0.04636042192578316, 0.039645999670028687, 0.007506146095693111, -0.04007631540298462, -0.03243601694703102, 0.03359207883477211, 0.01569126546382904, 0.033365506678819656, 0.050379227846860886, -0.01630316860973835, 0.0028197073843330145, 0.09865468740463257, 0.0027810668107122183, 0.012439229525625706, -0.02123819664120674, 0.023117469623684883, 0.05198965221643448, 0.03847411274909973, 0.0025658761151134968, 0.01817444898188114, 0.001994712743908167, -0.03701947629451752, -0.012303597293794155, 0.04368911311030388, -0.019061479717493057, 0.010278958827257156, -0.05134265124797821, -0.0655488669872284, 0.06054754927754402, -0.05778456851840019, 0.013397226110100746, 0.03201165795326233, 0.08595765382051468, 0.013527159579098225, 0.04191730543971062, 0.031498633325099945, -0.08095278590917587, 0.05016404017806053, 0.003294601570814848, 0.015596872195601463, 0.006235684733837843, 0.009903626516461372, 0.06197161227464676, 0.04522738233208656, 0.028337853029370308, 0.03363935276865959, -0.08785934746265411, -0.10620255023241043, -0.012087971903383732, 0.0034981488715857267, 0.0668196901679039, -0.014905031770467758, 0.026667652651667595, 0.05767171084880829, 0.014158009551465511, 0.011964486911892891, -0.004864943213760853, 0.017980847507715225, 0.017027558758854866, -0.06013351306319237, -0.06697595864534378, 0.028452377766370773, 0.01711028441786766, -0.04875057935714722, -0.058523472398519516, 0.028075193986296654, -0.041458480060100555, -0.019636821001768112, 0.03508303314447403, -0.021335402503609657, 0.06829579919576645, 0.03326902166008949, 0.04495634138584137, -0.03690146282315254, 0.06404663622379303, -0.05375753715634346, 0.033873822540044785, 0.025476664304733276, -0.02218957059085369, -0.0057557555846869946, 0.02175017260015011, 0.11802618950605392, 0.0543891079723835, -0.006557822693139315, -0.03702547028660774, 0.04851606488227844, 0.018587924540042877, -0.05989893153309822, 0.01694122888147831, -0.01717115379869938, 0.006381077226251364, 0.010434693656861782, -0.010159676894545555, -0.021536724641919136, -0.012344461865723133, -0.02316955104470253, -0.007143982220441103, 0.08307938277721405, -0.026882831007242203, 0.05506844446063042, 0.00989918876439333, -0.0221453458070755, -0.028268232941627502, -0.019019246101379395, -0.039557479321956635, -0.0338180810213089, -0.01121494546532631, -0.009942703880369663, 0.0345919132232666, -0.04180242493748665, -0.03067414090037346, -0.048608846962451935, -0.05281154066324234, 0.016277676448225975, 0.039852213114500046, 0.0647071897983551, -0.04803897812962532, 0.04139845073223114, -0.04614792764186859, -0.0022227338049560785, -0.020789509639143944, -0.025564225390553474, -0.019653866067528725, 0.005476885009557009, -0.002392504597082734, 0.029746558517217636, 0.02352803759276867, -0.004115276969969273, 0.026182010769844055, 0.006827632896602154, 0.008499589748680592, -0.010196065530180931, 0.018777096644043922, 0.01268431730568409, -0.0061416709795594215, -0.0038744076155126095, -0.010315957479178905, 0.04799462854862213, -0.053765714168548584, -0.015678688883781433, 0.009107817895710468, -0.056181229650974274, 0.039146844297647476, -0.04832760617136955, -0.05932389572262764, 0.007138321176171303, 0.057759758085012436, 0.03396322578191757, 0.011688059195876122, -0.023588113486766815, 0.08895657956600189, -0.0016897604800760746, -0.003136661369353533, 0.029882580041885376, -0.0076156677678227425, 0.04807979241013527, -0.017197929322719574, 0.04008159041404724, 0.014742971397936344, 0.00397085165604949, 0.010591864585876465, -0.018222270533442497, 0.011818896047770977, -0.028614839538931847, -0.2886451780796051, 0.04029693454504013, -0.006821638438850641, -0.0190255269408226, 0.01406165398657322, 0.006022696383297443, 0.00957472063601017, -0.01623113639652729, -0.015578593127429485, 0.036975786089897156, -0.004530143924057484, -0.022429419681429863, -0.03571261465549469, 0.01573953777551651, -0.0009121003095060587, 0.006247400771826506, -0.007987133227288723, -0.06341879814863205, 0.013478897511959076, 0.005827377550303936, -0.01095543708652258, -0.0526353195309639, 0.006127338390797377, 0.03764290362596512, 0.030318835750222206, 0.049601927399635315, -0.06762541085481644, 0.05995342135429382, -0.028444483876228333, -0.02085021883249283, 0.013263271190226078, -0.037373363971710205, 0.0018481147708371282, -0.008970297873020172, -0.03073909692466259, 0.0048414054326713085, 0.015302194282412529, 0.004074661526829004, 0.005536939483135939, -0.00130984908901155, -0.0457359179854393, -0.08301086723804474, -0.015552818775177002, 0.018458569422364235, 0.073785699903965, -0.018471403047442436, -0.08484508097171783, -0.004048512317240238, -0.03641950711607933, 0.06287678331136703, -0.031125187873840332, -0.05324167758226395, -0.039461057633161545, 0.01708650030195713, -0.009888899512588978, 0.020935313776135445, -0.01374676451086998, 0.0026255338452756405, -0.04751574248075485, -0.019762108102440834, 0.011452988721430302, -0.04867354407906532, -0.011358348652720451, -0.031352464109659195, -0.03005283698439598, -0.05557270348072052, -0.04199656471610069, 0.010145353153347969, 0.08183809369802475, 0.03272458538413048, -0.02165527455508709, 0.036627188324928284, -0.012829641811549664, -0.12570710480213165, -0.035710666328668594, -0.038788802921772, -0.04981055110692978, -0.0023484036792069674, -0.047603145241737366, 0.04179537668824196, -0.042569849640131, -0.010017088614404202, 0.02902812696993351, 0.029396453872323036, 0.022592447698116302, -0.023453770205378532, 0.0067228879779577255, -0.04739430546760559, -0.01051380392163992, 0.009264245629310608, 0.057324185967445374, -0.04482564330101013, -0.015376623719930649, -0.01713324524462223, -0.015902673825621605, 0.07343241572380066, 0.020047612488269806, 0.002754566725343466, -0.012806128710508347, 0.01796901598572731, 0.022159164771437645, -0.048045918345451355, 0.02462642267346382, -0.021326536312699318, -0.0022547671105712652, 0.00183223863132298, -0.04460597038269043, 0.04166141897439957, 0.015994897112250328, 0.03374366834759712, 0.023133112117648125, -0.020529020577669144, 0.015820475295186043, -0.050549399107694626, -0.017383623868227005, -0.004024365916848183, 0.02097485400736332, 0.026084667071700096, 0.049040138721466064, -0.02822788618505001, -0.05989738926291466, 0.025781136006116867, 0.04460017383098602, -0.027142668142914772, -0.01818309910595417, -0.028026029467582703, -0.01726759597659111, -0.012747237458825111, -0.0009896695846691728, -0.001015853020362556, -0.009925033897161484, 0.037354063242673874, 0.05374510958790779, 0.009896918199956417, 0.02303440496325493, -0.04698777571320534, -0.025545231997966766, -0.03986237198114395, 0.026435786858201027, 0.015783140435814857, -0.00983317382633686, 0.0012784874998033047, -0.021515794098377228, 0.025882119312882423, 0.03615162521600723, 0.003502241801470518, 0.0005655790446326137, -0.0268001239746809, 0.017478536814451218, 0.022457601502537727, -0.006012186408042908, -0.02271493710577488, 0.019976671785116196, -0.043350305408239365, -0.03712153062224388, -0.02655579149723053, 0.043772242963314056, -0.01989448070526123, -0.01287500187754631, -0.02951107732951641, 0.02453014627099037, -0.06144637614488602, -0.026203639805316925, -0.013304396532475948, -0.038589030504226685, 0.03251311182975769, 0.0003387262986507267, 0.02158644236624241, -0.007634780369699001, -0.007288212422281504, 0.015333956107497215, -0.02713252604007721, -0.03515950217843056, 0.01577104441821575, -0.02117971144616604, -0.004137052223086357, 0.03221924975514412, 0.03115731105208397, -0.0030697749461978674, -0.003518402809277177, 0.005795584525913, -0.005189818795770407, 0.020297065377235413, 0.024997353553771973, 0.049610160291194916, 0.021898748353123665, -0.008522097021341324, -0.015030096285045147, -0.0013626430882140994, -0.021469831466674805, -0.046371933072805405, 0.003909594379365444, -0.006404279265552759, 0.03362163528800011, -0.012694808654487133, -0.06967860460281372, 0.052949804812669754, 0.010887142270803452, 0.008540666662156582, 0.02946086972951889, 0.0013297031400725245, -0.01782982610166073, -0.03860584646463394, 0.05297558754682541, 0.097432442009449, -0.058751676231622696, 0.015564235858619213, 0.0012164677027612925, -0.010136484168469906, -0.0008305531810037792, 0.011151730082929134, -0.030119607225060463, -0.021009210497140884, -0.01731591671705246, 0.03788080811500549, -0.04243149980902672, -0.026178618893027306, -0.016049114987254143, 0.012779365293681622, 0.004489049315452576, 0.0014846175909042358, 0.014123604632914066, -0.006951261777430773, -0.02686200477182865, -0.021622780710458755, 0.03428870812058449, -0.01803409680724144, 0.00255841133184731, 0.024027474224567413, -0.02798454649746418, 0.014651003293693066, -0.036313705146312714, 0.008478483185172081, 0.01425202190876007, -0.019769536331295967, -0.01723819226026535, -0.024752411991357803, 0.0005428491276688874, 0.022709500044584274, 0.08116942644119263, -0.0020109640900045633, -0.008645101450383663, -0.0150479506701231, -0.002486612880602479, -0.013507462106645107, 0.007928447797894478, -0.0069977412931621075, -0.00984417274594307, 0.050454866141080856, 0.06332215666770935, 0.023115526884794235, 0.01916433870792389, -0.0039178295992314816, -0.022817624732851982, 0.0801091343164444, -0.044785965234041214, -0.03531073406338692, -0.021634293720126152, -0.06855108588933945, 0.029740355908870697, 0.012520182877779007, 0.01084025576710701, -0.0547730028629303, 0.05235255882143974, 0.026284463703632355, -0.01197917852550745, 0.0278196819126606, -0.013276912271976471, 0.028561463579535484, -0.020988553762435913, -0.028297506272792816, -0.08976393938064575, -0.010206932201981544, 0.052009209990501404, -0.020220641046762466, 0.0014872077153995633, -0.015259942039847374, -0.06575901061296463, 0.005671628750860691, -0.06066744029521942, -0.028589457273483276, 0.042576294392347336, -0.0021976071875542402, 0.003384539159014821, 0.005010833498090506, -0.03528345376253128, 0.0162495169788599, 0.011622355319559574, -0.037344563752412796, -0.039310283958911896, -0.02174443192780018, 0.04983214661478996, 0.01766030676662922, 0.01716643013060093, -0.021503539755940437, -0.02912970632314682, 0.06640433520078659, 0.008865565992891788, -0.0037750222254544497, 0.0653630867600441, -0.03456413745880127, 0.04626375436782837, 0.022373156622052193, 0.01739087700843811, 0.010258253663778305, 0.0137568898499012, -0.038847535848617554, -0.07672850787639618, 0.018431348726153374, 0.006637905724346638, -0.006531199906021357, -0.04355844482779503, 0.05242538824677467, 0.006946111097931862, -0.040541354566812515, -0.05581839010119438, 0.005815793760120869, -0.0332326702773571, -0.041160304099321365, -0.041356172412633896, 0.01668243482708931, -0.041939884424209595, 0.05906924232840538, -0.013774105347692966, 0.01394030824303627, 0.07786128669977188, 0.02186635322868824, -0.013201679103076458, 0.013498366810381413, 0.09196597337722778, 0.07119709253311157, -0.006658151280134916, 0.007532322313636541, 0.04744790494441986, -0.03127463161945343, -0.01851741597056389, -0.007005163002759218, -0.031238174065947533, -0.03629589453339577, -0.023401984944939613, 0.010713379830121994, 0.07387159764766693, -0.017393972724676132, 0.04933566972613335, -0.013520965352654457, -0.0019002766348421574, -0.007585978135466576, 0.004671262577176094, 0.029217593371868134, 0.019373033195734024, 0.007507551461458206, 0.046634696424007416, -0.021319294348359108, -0.029926253482699394, -0.0027865259908139706, 0.012430858798325062, -0.030144507065415382, 0.011535330675542355, -0.035661231726408005, 0.023090709000825882, 0.044060755521059036, -0.00804333295673132, 0.0632302314043045, -0.012840194627642632, 0.004660201724618673, 0.00682658888399601, 0.0331181138753891, -0.010129201225936413, 0.0346420481801033, -0.03231959789991379, -0.028091315180063248, -0.01385109405964613, -0.043585360050201416, -0.011491716839373112, -0.004718100652098656, -0.04467878118157387, 0.02719041332602501, -0.0251455195248127, 0.0021740200463682413, 0.013104092329740524, -0.008494267240166664, -0.05046585947275162, -0.05935179069638252, -0.05447397008538246, -0.03843888267874718, -0.05404989793896675, -0.017145782709121704, -0.0055334302596747875, -0.01573372446000576, -0.030942650511860847, -0.015863370150327682, -0.0033709232229739428, 0.007837469689548016, 0.031298402696847916, -0.02417236939072609, -0.024194931611418724, 0.024893732741475105, 0.028027595952153206, 0.008402966894209385, 0.037250496447086334, 0.06042776629328728, -0.03848566114902496, 0.017778009176254272, -0.020050203427672386, -0.02222776599228382, 0.04897630214691162, -0.0005821043159812689, 0.01629374548792839, -0.07100086659193039, 0.02660086750984192, 0.02357688546180725, 0.006705743260681629, -0.0470740981400013, 0.00309348595328629, 0.04787033051252365, -0.028189852833747864, 0.05615612491965294, -0.016091184690594673, 0.020522739738225937, -0.05359034612774849, -0.022917620837688446, -0.018313370645046234, -0.004558903630822897, 0.060788314789533615, -0.015928683802485466, 0.06440296769142151, 0.056185297667980194, -0.04189475625753403, -0.0031354932580143213, 0.00029652946977876127, 0.007946972735226154, 0.008636575192213058, -0.05483028665184975, -0.0375569611787796, -0.03798843175172806, -0.07700631767511368, -0.027526456862688065, 0.02146693505346775, -0.018513139337301254, -0.02740972675383091, 0.0012763632694259286, 0.007487674243748188, -0.048845063894987106, 0.007925531826913357, -0.0512373112142086, 0.045061174780130386, -0.02191372960805893, -0.024127276614308357, -0.04254108667373657, 0.008982792496681213, 0.003503572428599, -0.03628355264663696, 0.005757157225161791, -0.042507145553827286, 0.026367012411355972, -0.02535218372941017, 0.05318436399102211, 0.034466490149497986, -0.026443323120474815, -0.011309863068163395 ]
[ -0.08075979351997375, -0.060204990208148956, -0.05956718698143959, -0.02362116239964962, 0.014923221431672573, -0.05715999752283096, 0.0010386452777311206, 0.03962970897555351, -0.002145409816876054, -0.03620889410376549, 0.010169830173254013, -0.03154037520289421, 0.00908356811851263, -0.012711701914668083, 0.0561659038066864, -0.002889651572331786, -0.0086591811850667, -0.06414530426263809, -0.028303513303399086, 0.03290596231818199, -0.01013835147023201, -0.034896958619356155, -0.035781409591436386, -0.04556902125477791, -0.015734611079096794, 0.05192141979932785, 0.041898228228092194, -0.02818293869495392, -0.048026569187641144, -0.19827678799629211, 0.022633709013462067, -0.04010925069451332, -0.0015723506221547723, -0.008024176582694054, -0.006091252434998751, 0.05565957352519035, 0.019347408786416054, 0.014281353913247585, 0.03150177001953125, 0.02566489763557911, -0.0056635658256709576, -0.002647100016474724, -0.07487153261899948, 0.0039357990026474, 0.01435780618339777, -0.041317909955978394, -0.013990436680614948, -0.004437013994902372, 0.023883817717432976, 0.014906143769621849, -0.0706094279885292, -0.004665833432227373, -0.002621430903673172, -0.003935413435101509, 0.02818603254854679, 0.0006049942458048463, 0.03507203608751297, 0.06280239671468735, 0.008098604157567024, 0.02646956965327263, 0.00488395057618618, -0.008167721331119537, -0.1375000774860382, 0.09556607156991959, 0.01838611625134945, 0.06374718248844147, -0.0011789115378633142, 0.0005098444526083767, -0.014607819728553295, 0.048280827701091766, 0.017667893320322037, -0.006779760587960482, -0.04367063194513321, 0.0824505090713501, 0.008410674519836903, 0.0014958212850615382, 0.0010256922105327249, 0.05159828066825867, 0.018943380564451218, -0.011009407229721546, -0.054019272327423096, -0.022389262914657593, 0.01537944283336401, 0.006505545228719711, -0.06212952360510826, 0.01962156407535076, -0.015578405931591988, 0.06925560534000397, 0.019317757338285446, -0.001069839927367866, 0.026584435254335403, -0.00936994981020689, 0.03375961631536484, 0.003732709214091301, -0.06967589259147644, 0.013089723885059357, -0.010528236627578735, 0.006265188101679087, -0.04390902444720268, 0.38497915863990784, -0.0226193368434906, -0.004867858253419399, 0.022470669820904732, 0.0014614096144214272, -0.0024796510115265846, 0.01150442659854889, -0.030856164172291756, -0.041305940598249435, 0.033666763454675674, -0.024230148643255234, 0.031818244606256485, -0.017694614827632904, 0.08604396879673004, -0.04534342512488365, 0.0054619829170405865, 0.03509144484996796, 0.03427289426326752, 0.010864458978176117, -0.04901982098817825, 0.0292404443025589, -0.0008726318483240902, 0.010315051302313805, 0.0035811637062579393, 0.0355331227183342, -0.00835599098354578, -0.02757916785776615, 0.028933484107255936, 0.059548430144786835, 0.046639714390039444, 0.007992039434611797, 0.04587910696864128, -0.020859917625784874, -0.08781267702579498, 0.0025713315699249506, 0.0024917058181017637, 0.005539651960134506, 0.012828945182263851, -0.020892929285764694, 0.014533210545778275, -0.01169646717607975, -0.02290339581668377, -0.06714961677789688, 0.035667404532432556, -0.04295878857374191, -0.03368467837572098, 0.12796804308891296, 0.0037546821404248476, -0.043699298053979874, -0.02201240137219429, -0.05381549522280693, -0.028416920453310013, 0.03548251464962959, 0.0026431584265083075, -0.030974548310041428, -0.009788358584046364, 0.05067020282149315, 0.06603795289993286, -0.008637198247015476, -0.0575873926281929, -0.01688469760119915, -0.0019211557228118181, -0.06290706247091293, -0.04767367243766785, 0.040936727076768875, 0.06503941863775253, -0.12677933275699615, -0.028337405994534492, 0.005582185462117195, -0.007135418709367514, -0.004289992153644562, 0.013307035900652409, 0.039408110082149506, -0.04666294530034065, -0.027366548776626587, 0.033193543553352356, -0.02030625194311142, -0.00725354952737689, -0.007700780872255564, 0.03851441666483879, 0.025418326258659363, -0.021876612678170204, 0.014089391566812992, -0.019476834684610367, -0.027818137779831886, -0.04183296114206314, -0.09613768756389618, -0.040656667202711105, 0.021849533542990685, 0.018130216747522354, -0.012548808008432388, -0.04927585646510124, -0.04600461572408676, -0.07754222303628922, 0.06315211951732635, -0.00022620285744778812, -0.028250589966773987, 0.018259240314364433, -0.002574736485257745, 0.0077319275587797165, -0.04354800656437874, 0.04334277659654617, 0.04291453957557678, 0.004273653030395508, 0.04794019088149071, -0.05940753594040871, 0.02761068567633629, 0.026893453672528267, -0.033691950142383575, 0.03681698068976402, 0.015482606366276741, -0.032812654972076416, 0.043092966079711914, -0.028329622000455856, 0.029801925644278526, -0.012751336209475994, -0.02163926139473915, -0.02440612204372883, 0.001772464718669653, 0.04552047699689865, 0.02666071429848671, -0.037791088223457336, 0.008294492028653622, 0.011139347217977047, -0.3740934729576111, -0.03729908540844917, -0.046643055975437164, -0.027758987620472908, -0.043814413249492645, -0.032142724841833115, -0.0004892135038971901, -0.014342961832880974, -0.029265210032463074, 0.006971615832298994, 0.09911931306123734, -0.008755337446928024, 0.02287827990949154, -0.05776837840676308, 0.02327331341803074, 0.00881983246654272, -0.060529012233018875, -0.024429572746157646, -0.011440890841186047, -0.0013938043266534805, -0.012936785817146301, -0.023411305621266365, -0.005477804224938154, -0.045425109565258026, 0.004609731025993824, -0.0068914033472537994, 0.1048407033085823, 0.012485065497457981, 0.043904975056648254, -0.10335138440132141, 0.05698282644152641, 0.024308092892169952, 0.021307704970240593, -0.091273732483387, 0.015910955145955086, -0.047433942556381226, -0.0013456603046506643, 0.024958698078989983, 0.01741117425262928, 0.00034634547773748636, -0.07946742326021194, 0.028693856671452522, -0.04114731773734093, -0.07729265093803406, 0.020482715219259262, -0.00023934566706884652, 0.0036571738310158253, -0.011462579481303692, -0.023235362023115158, 0.10233369469642639, 0.01350346952676773, 0.0219197329133749, 0.03294945880770683, 0.035390254110097885, 0.041138868778944016, -0.013650692068040371, -0.06949487328529358, -0.019518757238984108, 0.011897130869328976, 0.0076470584608614445, 0.04431474953889847, 0.05757793411612511, 0.03097960725426674, -0.04213787987828255, 0.0006736386567354202, 0.010639509186148643, 0.008862975053489208, 0.010982840321958065, 0.046477992087602615, -0.03103671409189701, -0.06772693246603012, 0.09579434990882874, 0.0035769902169704437, 0.01276418101042509, 0.016641201451420784, 0.029002729803323746, -0.000961822341196239, -0.031016165390610695, 0.032094940543174744, -0.0010044689988717437, 0.053636424243450165, -0.03533487394452095, 0.06495941430330276, -0.03249302878975868, -0.004811256192624569, 0.1103210598230362, 0.002175372326746583, 0.01075475662946701, 0.07295677065849304, -0.013257410377264023, -0.04018314555287361, -0.020193828269839287, -0.013778013177216053, -0.03275764361023903, 0.06874892115592957, -0.00974472425878048, -0.26365384459495544, 0.03867308795452118, 0.04086741805076599, 0.040831077843904495, 0.01096064131706953, 0.013693291693925858, 0.020060298964381218, -0.05944789573550224, 0.013777116313576698, 0.0001084984396584332, 0.03850480914115906, 0.01971810683608055, -0.01347807515412569, 0.0013559618964791298, 0.023135973140597343, -0.00701498007401824, 0.00886522512882948, 0.0345543771982193, 0.03839830309152603, 0.005051217041909695, 0.02602544240653515, 0.024171890690922737, 0.17088492214679718, 0.05703391507267952, -0.013708163984119892, 0.06107155606150627, -0.003058573231101036, 0.04615544527769089, 0.0662664845585823, 0.05549134314060211, 0.009306752122938633, -0.008468365296721458, 0.04267628490924835, 0.01650356501340866, 0.05899452790617943, -0.06398347020149231, -0.001333807478658855, 0.03481491655111313, 0.01483418419957161, -0.014377227984368801, -0.045081593096256256, 0.020273007452487946, -0.03343603014945984, 0.04778124764561653, 0.06808848679065704, -0.027025843039155006, 0.009472074918448925, -0.056969478726387024, -0.017557349056005478, 0.0066656796261668205, 0.0009476033155806363, -0.044730860739946365, -0.006071408744901419, -0.015226585790514946, -0.012511670589447021, 0.07346505671739578, 0.03179940953850746, -0.026137255132198334, -0.03220662474632263, 0.03408633545041084, 0.01853218302130699, -0.043774161487817764, 0.08001938462257385, 0.031957220286130905, -0.005943569354712963 ]
[ 0.01771148294210434, -0.012011583894491196, -0.010233531706035137, -0.012004981748759747, 0.012827407568693161, 0.00013347060303203762, 0.0005866518476977944, 0.018858525902032852, -0.006303640082478523, -0.016145452857017517, -0.00004997596988687292, 0.00971126276999712, 0.010712096467614174, -0.021925320848822594, -0.0030894321389496326, -0.035692207515239716, 0.0014902716502547264, 0.003936401568353176, 0.02189018577337265, -0.018242377787828445, -0.03853017836809158, 0.02781611494719982, 0.030434787273406982, -0.005705825053155422, -0.0029431309085339308, 0.032604772597551346, -0.04759562388062477, 0.002920908620581031, 0.001682595699094236, -0.11927548050880432, -0.009718351066112518, -0.054776404052972794, 0.005251607391983271, -0.007587563246488571, 0.029285207390785217, 0.011454005725681782, -0.006131384987384081, 0.0011537469690665603, -0.022494371980428696, -0.017417002469301224, 0.022617783397436142, -0.04259360581636429, -0.039971280843019485, -0.024591194465756416, -0.02359553799033165, -0.03861400857567787, -0.02910730615258217, -0.04181750863790512, -0.014470530673861504, 0.0349164642393589, -0.012853839434683323, 0.004178003873676062, 0.028512226417660713, 0.009008930064737797, 0.011663409881293774, 0.020814063027501106, -0.030889954417943954, -0.0019599618390202522, -0.012613644823431969, -0.03370748832821846, 0.00857253186404705, -0.024481957778334618, 0.0007992868195287883, -0.02915887162089348, 0.012071434408426285, -0.04074997454881668, 0.010696290992200375, -0.025362376123666763, 0.015862904489040375, -0.011427304707467556, 0.012527335435152054, 0.031888727098703384, -0.054761096835136414, -0.010963632725179195, -0.02591196820139885, 0.016572659835219383, 0.012650520540773869, 0.008393023163080215, -0.006551820319145918, 0.0041052475571632385, -0.036360543221235275, -0.01783759519457817, -0.03714829683303833, 0.05024890974164009, -0.03993763029575348, -0.029854662716388702, -0.019069021567702293, 0.017181258648633957, 0.01563797891139984, -0.017388544976711273, -0.06160919368267059, -0.010179445147514343, 0.0010175341740250587, 0.01261583250015974, -0.05853653326630592, 0.010261974297463894, -0.0074735949747264385, -0.0209304541349411, -0.003217532532289624, 0.8206561207771301, 0.03050185553729534, 0.0256732776761055, 0.02786257304251194, -0.00588071858510375, 0.04941670596599579, 0.00011072776396758854, -0.06401482969522476, -0.010292379185557365, -0.008998229168355465, -0.03331175446510315, 0.026221372187137604, -0.009118364192545414, 0.03579823300242424, 0.007899577729403973, 0.016781341284513474, 0.03470722213387489, 0.009267838671803474, -0.005888555198907852, -0.006096971686929464, 0.04602570831775665, 0.05255555361509323, -0.01921672746539116, 0.017571579664945602, -0.008871764875948429, 0.0077856192365288734, -0.17015425860881805, -0.025137001648545265, -7.63045194934616e-33, 0.0556136816740036, -0.06652054190635681, 0.022990666329860687, 0.010118349455296993, 0.043972041457891464, -0.016710173338651657, -0.023456035181879997, 0.03807404264807701, 0.021391481161117554, -0.033605072647333145, -0.012787379324436188, -0.047934506088495255, 0.02381603792309761, -0.05354545637965202, 0.024394677951931953, -0.003278241492807865, -0.0002050592447631061, 0.02061850018799305, -0.016060596331954002, 0.009965942241251469, 0.0007751078228466213, 0.02396487258374691, -0.010646228678524494, 0.0013845383655279875, 0.04689670354127884, 0.011127205565571785, 0.02781125344336033, -0.010364779271185398, -0.0006513712578453124, -0.03502050042152405, 0.019054671749472618, -0.008388177491724491, -0.020657051354646683, -0.03650159016251564, 0.03194275125861168, -0.04251842200756073, -0.01877223327755928, 0.008246967568993568, -0.041484054177999496, -0.05414380505681038, -0.02641979046165943, -0.022466162219643593, -0.02883170172572136, -0.003645786549896002, -0.030890723690390587, -0.012656186707317829, 0.0032647927291691303, -0.0009623124497011304, 0.010950305499136448, 0.03259064257144928, 0.011201594956219196, 0.0024395876098424196, 0.028786007314920425, 0.005800474900752306, 0.02310270071029663, 0.0025295468512922525, 0.008844705298542976, 0.009393846616148949, -0.014108346775174141, 0.008919907733798027, -0.04598749056458473, -0.0028433261904865503, -0.028672341257333755, 0.04401330649852753, 0.008005320094525814, 0.0037432280369102955, 0.028137223795056343, 0.032799746841192245, 0.011693228967487812, 0.018254868686199188, -0.037457168102264404, 0.006494146306067705, -0.005866616033017635, 0.00032147104502655566, -0.006311553996056318, -0.037985917180776596, 0.014240019023418427, 0.0021007347386330366, -0.001630007172934711, 0.04481861740350723, 0.01644263230264187, -0.028190240263938904, -0.02838105522096157, -0.01402312982827425, -0.05663624033331871, -0.010952064767479897, 0.003279568860307336, 0.01570560596883297, 0.0015418857801705599, 0.020180992782115936, 0.041294366121292114, 0.07165621221065521, 0.014565899968147278, -0.024545008316636086, -0.03605445846915245, 7.512847412966236e-33, -0.03376206010580063, -0.02326689288020134, -0.006784962024539709, 0.00526204239577055, 0.051209136843681335, 0.0024677992332726717, 0.04149273782968521, 0.025777889415621758, -0.03132186457514763, 0.029957737773656845, -0.07202690094709396, 0.03307459503412247, -0.005294703878462315, -0.00007221856503747404, 0.060639556497335434, 0.011153454892337322, 0.0053229252807796, -0.013334604911506176, 0.03561544418334961, 0.02197781763970852, 0.044758401811122894, 0.015488030388951302, 0.020813066512346268, 0.016138819977641106, 0.03476790711283684, 0.02740471437573433, -0.0156109519302845, -0.0035046893171966076, -0.04650873690843582, -0.027620526030659676, 0.03135373443365097, -0.020209645852446556, 0.014259598217904568, -0.02984805777668953, -0.029963333159685135, -0.0297806765884161, -0.0046092611737549305, 0.006573554128408432, 0.003996912855654955, -0.006428765598684549, 0.024499941617250443, -0.007675560191273689, 0.027224885299801826, 0.040560245513916016, -0.001229303190484643, 0.019876033067703247, 0.018621429800987244, 0.007419908884912729, -0.02586177922785282, 0.028355920687317848, -0.026054738089442253, -0.025916365906596184, 0.014782573096454144, 0.029912468045949936, 0.0534624382853508, -0.008041021414101124, -0.03014659509062767, -0.0031844470649957657, -0.03972151130437851, -0.008842037059366703, -0.010728355497121811, -0.02705422416329384, 0.02669433318078518, 0.03487659990787506, -0.035170603543519974, -0.03163044527173042, -0.045255545526742935, -0.006767058279365301, -0.028628788888454437, -0.016755251213908195, -0.027573855593800545, -0.018636157736182213, -0.007442684378474951, 0.05226515978574753, 0.05367952585220337, -0.020710766315460205, -0.0358956977725029, 0.009286938235163689, -0.001215531723573804, -0.01570846140384674, 0.01460668072104454, 0.03788477182388306, -0.014152692630887032, -0.008350862190127373, 0.072978675365448, 0.011478922329843044, -0.04195370152592659, 0.01566954515874386, -0.02072237618267536, 0.00316648930311203, -0.037772275507450104, 0.007300347555428743, -0.027396803721785545, 0.023650547489523888, 0.0005242421175353229, -1.2809040050854037e-8, -0.0047548022121191025, 0.021424533799290657, -0.017899146303534508, 0.026533357799053192, 0.07259052991867065, -0.00012700058869086206, -0.02091638371348381, 0.02810298092663288, 0.002012093085795641, 0.012971044518053532, 0.027127765119075775, 0.0007707678014412522, 0.008648483082652092, 0.01980772614479065, 0.007102631032466888, -0.04569893330335617, 0.016948310658335686, -0.0004940794315189123, 0.017877528443932533, -0.006293889135122299, 0.019059160724282265, 0.06502183526754379, -0.006845919881016016, -0.011596417054533958, -0.007323588710278273, 0.02021368034183979, 0.04461323842406273, -0.05093982443213463, -0.020425429567694664, -0.022127749398350716, -0.007612960878759623, -0.029794275760650635, -0.01572907343506813, 0.011721157468855381, -0.0521840825676918, -0.01881728135049343, 0.03182615339756012, -0.000874025106895715, 0.005867470987141132, 0.0079065365716815, 0.009170587174594402, 0.03033452294766903, 0.00111381767783314, -0.025893595069646835, -0.03465331718325615, 0.002478098263964057, -0.022464793175458908, 0.07553089410066605, 0.005905515514314175, -0.006947825662791729, -0.03587612137198448, -0.008649571798741817, 0.049150995910167694, 0.011742448434233665, 0.07080179452896118, 0.015089929103851318, 0.06522370874881744, -0.032618775963783264, 0.024157878011465073, 0.038208190351724625, 0.06038224324584007, 0.019446905702352524, -0.02254464291036129, -0.015785133466124535 ]
apache-pinot-inserts-sql-unable-get-tasks-states-map-nullpointerexception
https://markhneedham.com/blog/2022/11/18/apache-pinot-inserts-sql-unable-get-tasks-states-map-nullpointerexception
false
2022-11-18 02:44:37
Apache Pinot: Inserts from SQL - Unable to get tasks states map - No task is generated for table
[ "pinot" ]
[ "pinot" ]
I recently wrote a post on the StarTre blog describing the https://startree.ai/blog/apache-pinot-0-11-inserts-from-sql[inserts from SQL^] feature that was added in Apache Pinot 0.11, and while writing it I came across some interesting exceptions due to configuration mistakes I'd made. In this post we're going to describe one of those exceptions. To recap, I was trying to ingest a bunch of JSON files from an S3 bucket using the following SQL query: [source, sql] ---- INSERT INTO "events" FROM FILE 's3://marks-st-cloud-bucket/events/*.json' OPTION( taskName=myTask-s3, input.fs.className=org.apache.pinot.plugin.filesystem.S3PinotFS, input.fs.prop.accessKey=AKIARCOCT6DWLUB7F77Z, input.fs.prop.secretKey=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, input.fs.prop.region=eu-west-2 ); ---- [NOTE] ==== Don't worry, those credentials were deactivated and deleted several days ago. ==== When I ran this query against a Pinot cluster that contained a controller, broker, and server, I got the following exception: [source, text] ---- [ { "message": "QueryExecutionError:\norg.apache.commons.httpclient.HttpException: Unable to get tasks states map. Error code 400, Error message: {\"code\":400,\"error\":\"No task is generated for table: events, with task type: SegmentGenerationAndPushTask\"}\n\tat org.apache.pinot.common.minion.MinionClient.executeTask(MinionClient.java:123)\n\tat org.apache.pinot.core.query.executor.sql.SqlQueryExecutor.executeDMLStatement(SqlQueryExecutor.java:102)\n\tat org.apache.pinot.controller.api.resources.PinotQueryResource.executeSqlQuery(PinotQueryResource.java:145)\n\tat org.apache.pinot.controller.api.resources.PinotQueryResource.handlePostSql(PinotQueryResource.java:103)", "errorCode": 200 } ] ---- My mistake here was that I **didn't have a minion** in the cluster. The ingestion job is run by the minion component, so without one of those this feature doesn't work! == An update (30th June 2023) Today I learned that you can get this error even if you do have a minion configured. The scenario that results in this error is if no files are found for ingestion. This might happen if you have an invalid glob expression in the `includeFileNamePattern`: For example, the following throws the exception: [source, sql] ---- SET taskName = 'events-task7'; SET input.fs.className = 'org.apache.pinot.spi.filesystem.LocalPinotFS'; SET includeFileNamePattern='glob:customers.csv'; INSERT INTO customers FROM FILE 'file:///input/'; ---- We can fix the query by adding `**/` at the beginning: [source, sql] ---- SET taskName = 'events-task7'; SET input.fs.className = 'org.apache.pinot.spi.filesystem.LocalPinotFS'; SET includeFileNamePattern='glob:**/customers.csv'; INSERT INTO customers FROM FILE 'file:///input/'; ----
In this post we'll learn how to fix the Unable to get tasks states map - No task is generated for table error when using Apache Pinot's inserts from SQL feature.
uploads/2022/11/no-task-banner.png
[ -0.008547976613044739, -0.012815539725124836, -0.022291336208581924, 0.038331009447574615, 0.0674377903342247, 0.008497527800500393, 0.03415248170495033, 0.05316286161541939, -0.0065652295015752316, -0.02029656246304512, -0.02790994942188263, -0.02115037478506565, -0.06233305111527443, 0.008967292495071888, -0.016513440757989883, 0.07719021290540695, 0.0821605995297432, 0.003137726103886962, 0.03912758454680443, -0.028944673016667366, 0.037429265677928925, 0.03591618686914444, 0.03760348632931709, 0.052574194967746735, 0.04254817217588425, 0.027698060497641563, -0.02748979441821575, 0.029073329642415047, -0.05162521451711655, 0.0022173200268298388, 0.015381475910544395, 0.02752813696861267, 0.018256261944770813, -0.04218756780028343, 0.007161951623857021, 0.0038779473397880793, -0.01935196854174137, 0.008501105941832066, -0.011656638234853745, 0.02661188691854477, -0.0796639546751976, 0.023590492084622383, -0.008454347960650921, 0.025172201916575432, 0.007524732034653425, 0.0385180227458477, -0.02095385640859604, 0.021826887503266335, 0.004410746041685343, -0.0021233982406556606, -0.07741881906986237, 0.033719394356012344, -0.01854054071009159, 0.004174234811216593, 0.015703681856393814, 0.05546212196350098, 0.02454088069498539, -0.05559584125876427, 0.05799844488501549, -0.04509890824556351, -0.008527740836143494, 0.0118638277053833, -0.007521077059209347, -0.004790741018950939, 0.004845077637583017, -0.013554723933339119, 0.0021888758055865765, 0.0442904569208622, -0.03509897738695145, -0.005147511139512062, 0.025744952261447906, -0.006788122467696667, -0.011744081042706966, -0.0031807569321244955, 0.03621019050478935, -0.04424711689352989, -0.018764996901154518, 0.07700292021036148, 0.022533206269145012, 0.04561507701873779, -0.005810286849737167, -0.024480849504470825, 0.012948823161423206, 0.019884571433067322, 0.027650557458400726, -0.05065089091658592, -0.03578977659344673, -0.02184476889669895, -0.019988559186458588, 0.05569097399711609, 0.001696706865914166, -0.025984661653637886, 0.024232110008597374, -0.003535278607159853, -0.024594752117991447, 0.032325003296136856, 0.01773645728826523, -0.014142196625471115, -0.002674670657142997, -0.005811105947941542, -0.03634125366806984, -0.009900667704641819, 0.01742282696068287, 0.059175558388233185, -0.06588304042816162, -0.012888536788523197, -0.044457823038101196, -0.005002059042453766, 0.014234902337193489, 0.01483068335801363, -0.010834377259016037, 0.005265918094664812, -0.01526645477861166, -0.011721188202500343, -0.07601829618215561, 0.08731825649738312, 0.015095939859747887, -0.03127645328640938, 0.02550765685737133, 0.007826528511941433, 0.06745481491088867, 0.005722042638808489, -0.014882477931678295, 0.07886846363544464, 0.0017947840970009565, 0.03283302113413811, -0.01674075797200203, 0.023844420909881592, 0.0005804312531836331, -0.06899885088205338, -0.027212543413043022, 0.04397512599825859, 0.04382932558655739, -0.003046568250283599, 0.0051951236091554165, -0.03173496574163437, -0.007141647394746542, -0.008017300628125668, 0.05548124387860298, 0.023383047431707382, -0.01878354325890541, -0.020210733637213707, -0.004403868690133095, -0.013096340000629425, 0.05265771597623825, 0.03794669732451439, 0.006248779594898224, -0.03856222331523895, -0.030196014791727066, 0.03394800424575806, 0.02056979387998581, 0.027035804465413094, 0.050476327538490295, -0.020291578024625778, 0.0021540275774896145, 0.09881799668073654, 0.016078243032097816, 0.014980430714786053, -0.02991330623626709, 0.009671910665929317, 0.05707484856247902, 0.04071981832385063, 0.0036677478346973658, 0.017243852838873863, 0.00461969617754221, -0.03564939275383949, -0.018432902172207832, 0.03970903530716896, -0.02811928652226925, 0.014676444232463837, -0.05630463361740112, -0.05377596244215965, 0.05779486522078514, -0.06542973220348358, 0.006400624290108681, 0.04183436557650566, 0.07702934741973877, 0.0135160181671381, 0.039550188928842545, 0.03669324517250061, -0.08047130703926086, 0.05004977062344551, -0.0011336852330714464, 0.010460242629051208, -0.0029625107999891043, 0.013528014533221722, 0.06493448466062546, 0.03923925384879112, 0.026123305782675743, 0.0295098926872015, -0.08875443041324615, -0.10690093040466309, -0.009605049155652523, -0.0011107039172202349, 0.059625428169965744, -0.011279582977294922, 0.021183116361498833, 0.07423067092895508, -0.00046836648834869266, 0.011925728060305119, -0.0175832100212574, 0.014813931658864021, 0.014979115687310696, -0.06409629434347153, -0.07320429384708405, 0.030261047184467316, 0.011157914064824581, -0.04547756165266037, -0.05042167752981186, 0.021436480805277824, -0.03998751938343048, -0.01001106295734644, 0.03155437111854553, -0.02308223769068718, 0.074982188642025, 0.043443724513053894, 0.042847055941820145, -0.03174908086657524, 0.057189300656318665, -0.05493219196796417, 0.04140269011259079, 0.022077485918998718, -0.01413574069738388, -0.014171413145959377, 0.01281140185892582, 0.11981479078531265, 0.05604378879070282, -0.012258496135473251, -0.03911970928311348, 0.05553044006228447, 0.015696795657277107, -0.06013660132884979, 0.010838538408279419, -0.01900334097445011, 0.0013166997814550996, 0.011489230208098888, -0.024219635874032974, -0.02620227448642254, -0.01040742453187704, -0.019597820937633514, -0.01062502060085535, 0.08890692889690399, -0.03524823486804962, 0.05348741635680199, -0.004058996215462685, -0.01682642474770546, -0.019376488402485847, -0.005779830738902092, -0.03134312108159065, -0.032634902745485306, -0.009126534685492516, -0.008052360266447067, 0.024009378626942635, -0.041932445019483566, -0.027488665655255318, -0.041109975427389145, -0.04610943794250488, 0.022887185215950012, 0.046153176575899124, 0.05223259702324867, -0.0514274500310421, 0.03193753957748413, -0.04216311499476433, -0.0013632095651701093, -0.013353731483221054, -0.025350643321871758, -0.016534952446818352, 0.009956777095794678, 0.0014325365191325545, 0.014277524314820766, 0.024851106107234955, -0.009076830931007862, 0.01620669849216938, 0.011615362018346786, 0.015998801216483116, -0.00587427755817771, 0.014692052267491817, 0.016106771305203438, -0.01093935128301382, -0.006110120564699173, -0.016853081062436104, 0.04220064729452133, -0.05427117645740509, -0.016467155888676643, 0.0031483990605920553, -0.0439876914024353, 0.03237965330481529, -0.05334978550672531, -0.06392161548137665, -0.010590652003884315, 0.04491519182920456, 0.031895268708467484, 0.009421675466001034, -0.02991141751408577, 0.07921604812145233, -0.011357774958014488, -0.0019408866064622998, 0.03496171906590462, 0.0034790323115885258, 0.03524738550186157, -0.00428032549098134, 0.03805352747440338, 0.024364903569221497, -0.0028113804291933775, 0.01464531384408474, -0.013003773055970669, 0.016826536506414413, -0.036186739802360535, -0.28237563371658325, 0.04498811438679695, 0.0054358490742743015, -0.015960250049829483, 0.022965960204601288, -0.0018906668992713094, 0.005422481335699558, -0.010087603703141212, -0.01592642441391945, 0.03160858526825905, -0.008045339025557041, -0.02085038833320141, -0.025348015129566193, 0.01571015641093254, -0.0008152881637215614, 0.00830933079123497, -0.016186978667974472, -0.0751996785402298, 0.015919150784611702, 0.009223113767802715, 0.0008042599074542522, -0.04953522980213165, -0.0016144209075719118, 0.024873312562704086, 0.037429917603731155, 0.04933779686689377, -0.07418425381183624, 0.06519203633069992, -0.028184520080685616, -0.021855423226952553, 0.00402734475210309, -0.02823682874441147, 0.0005333038861863315, -0.008219298906624317, -0.016889609396457672, 0.0010884348303079605, 0.029029415920376778, -0.000582442618906498, 0.01260713953524828, 0.0026546476874500513, -0.042759206146001816, -0.08755864948034286, 0.0015029956120997667, 0.014484268613159657, 0.08247197419404984, -0.001803007791750133, -0.09424208849668503, -0.005310307256877422, -0.03261833265423775, 0.06151952967047691, -0.02554253861308098, -0.03885238245129585, -0.0451170913875103, 0.008642198517918587, -0.012249080464243889, 0.018834352493286133, -0.011148614808917046, 0.0017878829967230558, -0.04212970286607742, -0.009120660834014416, 0.011788158677518368, -0.03753860667347908, 0.0012707108398899436, -0.036868005990982056, -0.02999798394739628, -0.04728810116648674, -0.039296217262744904, 0.020573019981384277, 0.0821836069226265, 0.032144445925951004, -0.019201958552002907, 0.04372374713420868, -0.023235317319631577, -0.12737852334976196, -0.030669549480080605, -0.03801323100924492, -0.043573047965765, 0.011639039032161236, -0.03956448286771774, 0.04521222785115242, -0.032501768320798874, -0.011720667593181133, 0.023468857631087303, 0.015486801974475384, 0.021051686257123947, -0.012914028018712997, 0.007586025632917881, -0.0385589562356472, -0.012434697709977627, 0.001318613300099969, 0.059117820113897324, -0.04301144555211067, -0.019929220899939537, -0.01584745943546295, -0.017284374684095383, 0.06351758539676666, 0.030106088146567345, 0.0017320946790277958, -0.02166084386408329, 0.01855452172458172, 0.014522564597427845, -0.058586157858371735, 0.01586647890508175, -0.035934533923864365, -0.0006374812219291925, 0.0044807870872318745, -0.050666067749261856, 0.04186862334609032, 0.019032131880521774, 0.041121650487184525, 0.023412322625517845, -0.02321775071322918, 0.015302954241633415, -0.045222193002700806, -0.019834529608488083, -0.002842928748577833, 0.021837063133716583, 0.022522632032632828, 0.03374800086021423, -0.02906074933707714, -0.06776562333106995, 0.019851211458444595, 0.035971999168395996, -0.016025925055146217, -0.018712373450398445, -0.03474416211247444, -0.002203266602009535, -0.0021680162753909826, -0.0069328853860497475, -0.013465909287333488, -0.006590900011360645, 0.03573070839047432, 0.05006328225135803, 0.011335019022226334, 0.013277745805680752, -0.036954451352357864, -0.03559999540448189, -0.03542975336313248, 0.03682757541537285, 0.006876800209283829, -0.003726587863638997, 0.0018860329873859882, -0.035324275493621826, 0.01802072674036026, 0.05122297629714012, 0.008656183257699013, -0.002081982558593154, -0.02226981706917286, 0.030321501195430756, 0.03148388862609863, 0.002213374013081193, -0.016168205067515373, 0.011635025031864643, -0.04333917051553726, -0.045122552663087845, -0.033262964338064194, 0.038453228771686554, -0.01497617643326521, -0.012024223804473877, -0.02412603236734867, 0.024177642539143562, -0.06202176585793495, -0.02133677713572979, -0.01736743375658989, -0.02854018285870552, 0.015941817313432693, 0.01077535841614008, 0.011187665164470673, -0.009024647995829582, 0.0005112171056680381, 0.011296517215669155, -0.006320569198578596, -0.03422021493315697, 0.024761149659752846, -0.019402887672185898, -0.005806582514196634, 0.044500596821308136, 0.008756110444664955, -0.004676232114434242, -0.0073701851069927216, 0.013490809127688408, -0.010569177567958832, 0.01713486947119236, 0.02544773370027542, 0.04596227779984474, 0.026831883937120438, -0.014305840246379375, -0.010194593109190464, -0.008240079507231712, -0.01541003119200468, -0.043164122849702835, -0.003927223384380341, -0.013881719671189785, 0.029820065945386887, -0.010376659221947193, -0.06427589058876038, 0.0585421547293663, 0.015525666996836662, -0.005906416103243828, 0.02652611956000328, -0.008472805842757225, -0.009962525218725204, -0.04026218503713608, 0.05427027493715286, 0.10068237781524658, -0.06709762662649155, 0.01766761764883995, -0.001707378076389432, -0.01769300550222397, 0.002913558157160878, 0.017788782715797424, -0.026325972750782967, -0.012109747156500816, -0.02644370310008526, 0.04569196701049805, -0.05080288648605347, -0.022590888664126396, -0.009351322427392006, 0.005190648138523102, 0.003830110188573599, 0.007940815761685371, 0.00926261954009533, -0.011338211596012115, -0.021264266222715378, -0.029930947348475456, 0.043529871851205826, 0.0005888483137823641, -0.005864408798515797, 0.02670966647565365, -0.02902751788496971, 0.02082950435578823, -0.04384423419833183, -0.0027345626149326563, -0.0010974491015076637, -0.02643769606947899, -0.019158516079187393, -0.030235236510634422, -0.001143803820014, 0.021422987803816795, 0.07648171484470367, 0.0014597260160371661, -0.009283019229769707, -0.021520622074604034, -0.007206701207906008, -0.01587558723986149, 0.0030789098236709833, 0.002384530147537589, -0.019189490005373955, 0.04349885135889053, 0.0653674453496933, 0.011014306917786598, 0.007023280952125788, -0.0023855373729020357, -0.006415307987481356, 0.06990943849086761, -0.060107339173555374, -0.03221045807003975, -0.015220068395137787, -0.07906980812549591, 0.03247973695397377, 0.011297468096017838, 0.008892305195331573, -0.05951962620019913, 0.04658515006303787, 0.03577469289302826, -0.0007099590147845447, 0.039190538227558136, -0.013941549696028233, 0.016544774174690247, -0.017090287059545517, -0.020075418055057526, -0.0984351709485054, -0.017026126384735107, 0.053623445332050323, -0.02057083323597908, -0.00608458137139678, 0.001474530785344541, -0.05338166654109955, 0.01665964350104332, -0.06414829939603806, -0.03326999768614769, 0.0400911420583725, 0.007489427458494902, 0.010471386834979057, 0.008136855438351631, -0.0349486842751503, 0.018037643283605576, 0.018613507971167564, -0.03623317554593086, -0.023265866562724113, -0.03093642182648182, 0.05176476761698723, 0.020077848806977272, 0.01718185842037201, -0.020576469600200653, -0.04918595030903816, 0.0624072290956974, -0.0022308146581053734, -0.0037894563283771276, 0.07964528352022171, -0.037333108484745026, 0.03473292291164398, 0.02544265054166317, 0.005207302048802376, 0.016518184915184975, 0.011304485611617565, -0.03599347919225693, -0.06261881440877914, 0.0204929206520319, -0.00007537966303061694, 0.0008384516113437712, -0.04784685745835304, 0.05705415457487106, -0.000842515320982784, -0.039457399398088455, -0.060748592019081116, -0.01973295398056507, -0.028836935758590698, -0.04304485023021698, -0.03760334849357605, 0.025585085153579712, -0.03349047526717186, 0.06730544567108154, -0.016935119405388832, 0.005951109807938337, 0.08197256177663803, 0.02042447403073311, -0.0034384659957140684, 0.009742180816829205, 0.0787922739982605, 0.07283622771501541, 0.006986313033849001, 0.008922391571104527, 0.04304853454232216, -0.03215322270989418, -0.02853088080883026, -0.009762612171471119, -0.03306183964014053, -0.0315551832318306, -0.01794787310063839, 0.01570570282638073, 0.06601270288228989, -0.024193203076720238, 0.04810745269060135, -0.01876804791390896, 0.007408130448311567, 0.0003904228506144136, 0.0026521713007241488, 0.020143011584877968, 0.03179079294204712, -0.004745870362967253, 0.04637075215578079, -0.014317920431494713, -0.026547418907284737, -0.0029254434630274773, 0.0009198649204336107, -0.028494056314229965, 0.01197317149490118, -0.035257380455732346, 0.017366334795951843, 0.04230976104736328, -0.012175501324236393, 0.07744155079126358, -0.016014136373996735, -0.004257679916918278, -0.001973107224330306, 0.032216865569353104, 0.00028167167329229414, 0.026440776884555817, -0.041383206844329834, -0.02994714304804802, -0.023097582161426544, -0.051979031413793564, -0.014888252131640911, -0.013385836035013199, -0.0383453443646431, 0.02152537740767002, -0.029376650229096413, 0.010073118843138218, 0.023652294650673866, -0.008323579095304012, -0.0504300557076931, -0.054603420197963715, -0.05223514512181282, -0.03955614194273949, -0.04647652059793472, -0.015169757418334484, 0.0019047536188736558, -0.002796411281451583, -0.03107181005179882, -0.027592329308390617, 0.0013583754189312458, 0.01659250631928444, 0.030380593612790108, -0.020545555278658867, -0.035742733627557755, 0.01870577782392502, 0.016596460714936256, 0.0007252750219777226, 0.03851791098713875, 0.06726561486721039, -0.02649678848683834, 0.010557563975453377, -0.0333041176199913, -0.020597008988261223, 0.044374704360961914, 0.008729325607419014, 0.016635987907648087, -0.06288231909275055, 0.029326649382710457, 0.01801632158458233, 0.0039854636415839195, -0.05475929006934166, 0.008169681765139103, 0.054501473903656006, -0.02854294888675213, 0.05587076395750046, -0.01310619618743658, 0.019103234633803368, -0.05038934946060181, -0.022400258108973503, -0.011656064540147781, 0.017351768910884857, 0.049616195261478424, -0.020344924181699753, 0.07272251695394516, 0.05320106819272041, -0.041917361319065094, -0.0004445647355169058, 0.0045447321608662605, 0.005096403881907463, 0.0015014586970210075, -0.05874587595462799, -0.02822316810488701, -0.03876831382513046, -0.07427655160427094, -0.03348982334136963, 0.03636179119348526, -0.008775070309638977, -0.03809184208512306, 0.009116508066654205, -0.004105100873857737, -0.0622418113052845, -0.006853439379483461, -0.05876071751117706, 0.03947262093424797, -0.015016922727227211, -0.030658816918730736, -0.028365394100546837, 0.004878818988800049, -0.005039149895310402, -0.03400673717260361, 0.002831898396834731, -0.03991694003343582, 0.012047713622450829, -0.03570989519357681, 0.04981767386198044, 0.04257756099104881, -0.033404286950826645, 0.001278397860005498 ]
[ -0.0794815719127655, -0.058842286467552185, -0.05418843775987625, -0.022736283019185066, 0.022010188549757004, -0.062164124101400375, 0.0037556560710072517, 0.036576781421899796, 0.0010492656147107482, -0.03183397278189659, 0.010402609594166279, -0.02246284857392311, 0.0016046446980908513, -0.013395089656114578, 0.05248790234327316, 0.0026262146420776844, -0.0009673330932855606, -0.06269261986017227, -0.02905050478875637, 0.020049048587679863, -0.006509245373308659, -0.04086587578058243, -0.03644239902496338, -0.04654660075902939, -0.017530806362628937, 0.04855848476290703, 0.03396773338317871, -0.030116388574242592, -0.04888847842812538, -0.19680428504943848, 0.02935653179883957, -0.039996437728405, -0.00843075942248106, -0.007972118444740772, 0.002319436753168702, 0.04877835884690285, 0.013506347313523293, 0.006365518551319838, 0.032537464052438736, 0.02815653756260872, 0.0003620114584919065, 0.0000926655120565556, -0.0772050991654396, 0.009127071127295494, 0.013458944857120514, -0.04428389295935631, -0.014370225369930267, -0.005828055553138256, 0.020609091967344284, 0.017038574442267418, -0.06687024235725403, -0.007263983599841595, -0.0017458267975598574, -0.0020817590411752462, 0.022424614056944847, 0.008550598286092281, 0.03023654967546463, 0.06787562370300293, 0.009753703139722347, 0.03153793513774872, 0.007790218573063612, -0.005994583945721388, -0.14141325652599335, 0.09883865714073181, 0.017528973519802094, 0.05850627273321152, -0.01413499005138874, 0.00008287954551633447, -0.015582356601953506, 0.051929134875535965, 0.015642886981368065, -0.007942949421703815, -0.039048220962285995, 0.08218302577733994, 0.01562504842877388, -0.007899204269051552, 0.0014773912262171507, 0.057125892490148544, 0.016761809587478638, -0.014106500893831253, -0.05506087839603424, -0.017944011837244034, 0.007039794232696295, 0.006747853476554155, -0.06763406842947006, 0.023967240005731583, -0.02328484132885933, 0.07154584676027298, 0.02433422952890396, 0.001233830233104527, 0.026957591995596886, -0.0037650412414222956, 0.0348300077021122, 0.0021777087822556496, -0.06200380623340607, 0.018495921045541763, -0.008589337579905987, 0.008991158567368984, -0.046929121017456055, 0.3863617479801178, -0.022953467443585396, -0.0031826957128942013, 0.016776805743575096, 0.011241268366575241, -0.004056806676089764, 0.008099435828626156, -0.02876557782292366, -0.039548806846141815, 0.030987797304987907, -0.026099368929862976, 0.035186998546123505, -0.011221743188798428, 0.08415429294109344, -0.04389483109116554, 0.010163560509681702, 0.03064039535820484, 0.03320510685443878, 0.009548391215503216, -0.04966943338513374, 0.03780635818839073, 0.0019510469865053892, 0.009863828308880329, 0.011294485069811344, 0.03253132477402687, -0.0018565220525488257, -0.02710728533565998, 0.03447864577174187, 0.06614584475755692, 0.05133862793445587, 0.006923196371644735, 0.04258670285344124, -0.015424094162881374, -0.0810561329126358, 0.0012912211241200566, -0.0008756078314036131, 0.0035534079652279615, 0.013224825263023376, -0.02265756018459797, 0.01031513698399067, -0.01601230725646019, -0.021544937044382095, -0.06497371196746826, 0.033662181347608566, -0.04238978400826454, -0.03151147812604904, 0.13013975322246552, 0.009698799811303616, -0.04577162116765976, -0.02367384545505047, -0.056156571954488754, -0.038113418966531754, 0.039218269288539886, -0.0003060066082980484, -0.03725302591919899, -0.019785646349191666, 0.04954264312982559, 0.06039052829146385, -0.014099497348070145, -0.05503091216087341, -0.016214273869991302, -0.001995514379814267, -0.06253331154584885, -0.04704521223902702, 0.041800376027822495, 0.062016502022743225, -0.1273062378168106, -0.023570895195007324, 0.006572243757545948, -0.005059159826487303, -0.005744162015616894, 0.006007918622344732, 0.03656112402677536, -0.05015736073255539, -0.032783959060907364, 0.034417323768138885, -0.023285167291760445, -0.00631071487441659, -0.0001341212191618979, 0.036991339176893234, 0.02008051425218582, -0.014314135536551476, 0.01783745363354683, -0.02314259670674801, -0.02436465211212635, -0.04203197360038757, -0.0948018729686737, -0.04204503819346428, 0.019170425832271576, 0.020951490849256516, -0.012928804382681847, -0.04901076853275299, -0.04322439804673195, -0.06772571057081223, 0.06497184187173843, 0.002223060466349125, -0.03037302941083908, 0.025403877720236778, 0.001825897372327745, 0.005185510031878948, -0.04553540050983429, 0.03341908007860184, 0.03815646469593048, 0.0027087123598903418, 0.045116815716028214, -0.05860740318894386, 0.03292917087674141, 0.015544296242296696, -0.03144194558262825, 0.03611103072762489, 0.022735999897122383, -0.027003372088074684, 0.03946783021092415, -0.02646733820438385, 0.025172701105475426, -0.007831867784261703, -0.012630080804228783, -0.026598352938890457, 0.0021114724222570658, 0.04736233130097389, 0.027827627956867218, -0.03365710750222206, 0.01188567653298378, 0.009423498064279556, -0.3776664733886719, -0.04223863035440445, -0.0498955063521862, -0.02194758877158165, -0.043756984174251556, -0.03622771054506302, 0.0015855259262025356, -0.015112987719476223, -0.03475528210401535, 0.00781420897692442, 0.09215892106294632, -0.013614443130791187, 0.021967757493257523, -0.06548024713993073, 0.022032374516129494, 0.0088893361389637, -0.06196720525622368, -0.027928698807954788, -0.018904000520706177, 0.0023369581904262304, -0.0018576376605778933, -0.02374952659010887, -0.006465890910476446, -0.04512244090437889, 0.002437397837638855, -0.00873393751680851, 0.10870074480772018, 0.010208295658230782, 0.04811355471611023, -0.09818288683891296, 0.05575435236096382, 0.02065899409353733, 0.02211281843483448, -0.08793564885854721, 0.01095255184918642, -0.04709839075803757, 0.002792233368381858, 0.026224147528409958, 0.014787048101425171, 0.0008008398581296206, -0.08693469315767288, 0.030369823798537254, -0.04172370955348015, -0.07510209083557129, 0.018125278875231743, 0.004397137090563774, 0.00792582705616951, -0.01643223501741886, -0.021856194362044334, 0.10201223939657211, 0.020058240741491318, 0.023721059784293175, 0.03758382052183151, 0.040597714483737946, 0.04231967031955719, -0.015350794419646263, -0.06850861757993698, -0.02128659561276436, 0.0025041408371180296, 0.0011115624802187085, 0.04236600920557976, 0.0515151210129261, 0.024836432188749313, -0.05033215135335922, 0.0035963598638772964, 0.015423578210175037, 0.013950825668871403, 0.006060184445232153, 0.05191276967525482, -0.026597078889608383, -0.06993256509304047, 0.10441382974386215, 0.003411998273804784, 0.008602042682468891, 0.023658165708184242, 0.030208107084035873, -0.010905464179813862, -0.030185459181666374, 0.030326006934046745, -0.0011231204262003303, 0.05486958846449852, -0.03317999839782715, 0.06746389716863632, -0.03063374198973179, -0.0050785960629582405, 0.10026523470878601, -0.0008845850243233144, 0.01046381052583456, 0.07762903720140457, -0.012264534831047058, -0.03955612704157829, -0.018080880865454674, -0.02255949191749096, -0.030317923054099083, 0.07409229129552841, -0.011270934715867043, -0.26522296667099, 0.040392640978097916, 0.04593929648399353, 0.04280170798301697, 0.01429195236414671, 0.01281228382140398, 0.01915905997157097, -0.057870857417583466, 0.011551398783922195, 0.0037131693679839373, 0.042172301560640335, 0.016108501702547073, -0.017258865758776665, 0.0053982543759047985, 0.017019400373101234, 0.002917761215940118, 0.015757804736495018, 0.02815495990216732, 0.03224511072039604, 0.0006642531952820718, 0.02823789045214653, 0.026306618005037308, 0.16751399636268616, 0.0623876191675663, -0.01664029434323311, 0.051951102912425995, -0.009539761580526829, 0.04433522745966911, 0.058990057557821274, 0.057546216994524, -0.0008289833785966039, -0.010982103645801544, 0.04230247810482979, 0.016107212752103806, 0.05738286301493645, -0.059040896594524384, -0.005075807683169842, 0.03130677714943886, 0.019723063334822655, -0.018496280536055565, -0.047390930354595184, 0.012887497432529926, -0.03579995781183243, 0.04473112151026726, 0.07012838125228882, -0.01748201809823513, 0.005593217443674803, -0.06004025787115097, -0.015518815256655216, 0.012484373524785042, -0.001126156304962933, -0.03687619790434837, -0.012388921342790127, -0.013832570053637028, -0.0078408969566226, 0.07080801576375961, 0.03631475195288658, -0.02283003367483616, -0.023061305284500122, 0.031937651336193085, 0.019515665248036385, -0.035936009138822556, 0.08300808817148209, 0.03406081721186638, -0.012795680202543736 ]
[ 0.021885531023144722, -0.038268424570560455, -0.031096167862415314, 0.004960398189723492, 0.007354311645030975, -0.007269439287483692, 0.013686761260032654, 0.01409384235739708, -0.004303882364183664, -0.0145261250436306, 0.008249550126492977, 0.01508826669305563, 0.008127077482640743, -0.020688366144895554, -0.005922449287027121, -0.03152516111731529, 0.009147080592811108, -0.008160179480910301, 0.012994819320738316, -0.00751833338290453, -0.02984224259853363, 0.023923901841044426, 0.03988048806786537, 0.014244643971323967, -0.006956282537430525, 0.009833181276917458, -0.053316619247198105, 0.0014038087101653218, 0.006205281242728233, -0.1117485910654068, -0.009455890394747257, -0.06152372062206268, 0.005979910027235746, 0.01184117328375578, 0.03656237944960594, -0.0007627010927535594, -0.009719817899167538, -0.01257436815649271, -0.027761593461036682, -0.015185545198619366, 0.02811056189239025, -0.04580312594771385, -0.03408203274011612, -0.02505568414926529, -0.021032286807894707, -0.04034046456217766, -0.03864201158285141, -0.04204639419913292, -0.02038501389324665, 0.024947436526417732, -0.005323352292180061, 0.013060771860182285, 0.020652614533901215, 0.011286681517958641, 0.015098321251571178, 0.022499561309814453, -0.019367624074220657, 0.004605381283909082, 0.0024069242645055056, -0.02547929249703884, 0.020521869882941246, -0.016101902350783348, 0.008393459022045135, -0.028620673343539238, 0.0037276074290275574, -0.042276691645383835, 0.0037289795000106096, -0.03006323240697384, 0.023248642683029175, -0.012751222588121891, 0.006869736593216658, 0.01811675913631916, -0.057341527193784714, -0.015205304138362408, -0.023821484297513962, 0.019190801307559013, 0.017850924283266068, 0.010466715320944786, -0.016373295336961746, 0.0070181009359657764, -0.044116560369729996, -0.01673722267150879, -0.03462081030011177, 0.051795147359371185, -0.031784821301698685, -0.021702885627746582, -0.006748699117451906, 0.015990715473890305, 0.017079412937164307, -0.03353559225797653, -0.05555162951350212, -0.01773066446185112, -0.0024286939296871424, 0.014397050254046917, -0.06467557698488235, 0.001975981518626213, 0.012525878846645355, -0.03185182437300682, -0.01917266473174095, 0.8284307718276978, 0.02457374706864357, 0.018534312024712563, 0.02050480991601944, 0.001442697481252253, 0.02929166704416275, 0.0017732706619426608, -0.055639445781707764, -0.0110446373000741, -0.01946970261633396, -0.0529579296708107, 0.01858721673488617, 0.018198689445853233, 0.04364491626620293, 0.008628861978650093, 0.020269358530640602, 0.035389915108680725, 0.006930176168680191, -0.01243317686021328, -0.00719234487041831, 0.052028317004442215, 0.0531126894056797, -0.01866302266716957, 0.013031073845922947, 0.0017739080358296633, 0.011787770316004753, -0.16340896487236023, -0.016645872965455055, -7.395124592467261e-33, 0.05605484917759895, -0.057095784693956375, 0.018442196771502495, 0.0020475846249610186, 0.04409877583384514, -0.014112448319792747, -0.01405490841716528, 0.028214145451784134, 0.011475738137960434, -0.03116345778107643, -0.0036712249275296926, -0.05213022977113724, 0.023841343820095062, -0.05133760720491409, 0.02583703212440014, 0.0037934379652142525, -0.00464348029345274, 0.028565289452672005, -0.006125642918050289, 0.010800263844430447, 0.004429780412465334, 0.02760164998471737, -0.0045448485761880875, 0.001321129035204649, 0.04841015115380287, 0.00431064935401082, 0.02194029651582241, -0.006543189752846956, -0.005536722484976053, -0.03136824816465378, 0.0037359921261668205, -0.006547354627400637, -0.030410338193178177, -0.03233252838253975, 0.020372936502099037, -0.039648327976465225, -0.0025741627905517817, -0.000497768574859947, -0.03588538616895676, -0.045749370008707047, -0.027677977457642555, -0.014016883447766304, -0.03393068537116051, -0.006745883729308844, -0.021531539037823677, -0.0014306548982858658, 0.015547121874988079, -0.001018838258460164, 0.006117133889347315, 0.00808169785887003, 0.010502605699002743, -0.00032559712417423725, 0.040623728185892105, 0.009267776273190975, 0.023806491866707802, 0.008357353508472443, 0.01958184316754341, 0.006990470923483372, -0.00014649737568106502, 0.0014251843094825745, -0.03598058596253395, -0.021014031022787094, -0.04282251372933388, 0.039732351899147034, 0.01166443806141615, -0.004498382098972797, 0.026841985061764717, 0.025187227874994278, 0.011044768616557121, 0.005980649497359991, -0.042411014437675476, -0.0013901748461648822, -0.012602315284311771, -0.005505268927663565, -0.00627544429153204, -0.03030816651880741, 0.0006295818602666259, -0.004254103172570467, -0.0007421967457048595, 0.045101944357156754, 0.020891098305583, -0.019865715876221657, -0.041160762310028076, -0.010067129507660866, -0.055153634399175644, -0.01753200776875019, -0.0029907068237662315, 0.008765863254666328, -0.002794822445139289, 0.019268590956926346, 0.0360894501209259, 0.06422951817512512, 0.03201586380600929, -0.02546917460858822, -0.026182720437645912, 7.358916427726057e-33, -0.040945492684841156, -0.01714758574962616, -0.014505788683891296, 0.010676326230168343, 0.05210179463028908, -0.006710837595164776, 0.029676536098122597, 0.023726020008325577, -0.025959985330700874, 0.019215120002627373, -0.06729011237621307, 0.02545946277678013, -0.005657936446368694, 0.00425336416810751, 0.049933094531297684, 0.026008015498518944, 0.003886783728376031, -0.013621796853840351, 0.04371313750743866, 0.019849281758069992, 0.04570043832063675, 0.01896272785961628, 0.016213584691286087, 0.009597371332347393, 0.026012882590293884, 0.02975141815841198, -0.02205381542444229, -0.006250638514757156, -0.04829444736242294, -0.03420136496424675, 0.026665017008781433, -0.024841902777552605, 0.01370095182210207, -0.026443000882864, -0.04467359930276871, -0.020315511152148247, -0.010158179327845573, -0.009869991801679134, 0.008583723567426205, -0.017752887681126595, 0.0231173038482666, -0.0011256980942562222, 0.03720169886946678, 0.04577222093939781, 0.004850497003644705, 0.014708803035318851, 0.015738580375909805, 0.0003580937336664647, -0.020450854673981667, 0.03490671515464783, -0.02953384816646576, -0.02788405679166317, 0.02206018753349781, 0.03548397868871689, 0.05841473862528801, -0.007926604710519314, -0.022821297869086266, -0.0036150303203612566, -0.04321264103055, -0.018369605764746666, -0.017375418916344643, -0.00008131880167638883, 0.0200374573469162, 0.027339015156030655, -0.02160646766424179, -0.029035812243819237, -0.04441878944635391, -0.004845147021114826, -0.024947337806224823, -0.02731119468808174, -0.015974339097738266, -0.016796233132481575, -0.0038743920158594847, 0.05750342458486557, 0.05118720233440399, -0.01175295002758503, -0.04137582331895828, 0.014049463905394077, -0.001397851505316794, -0.010072777979075909, 0.016601908951997757, 0.03019416145980358, -0.006834737956523895, -0.008119708858430386, 0.06447498500347137, 0.01685102842748165, -0.0390966460108757, 0.010403727181255817, -0.01728200726211071, 0.0029539584647864103, -0.03892926126718521, -0.012036509811878204, -0.020645862445235252, 0.017781833186745644, 0.0038920931983739138, -1.2797682025222912e-8, -0.014144315384328365, 0.02105332352221012, -0.03000592067837715, 0.01856348104774952, 0.07704179733991623, -0.0015960618620738387, -0.0180142130702734, 0.03742270544171333, -0.007249947637319565, 0.014601081609725952, 0.03458482399582863, 0.0032888336572796106, 0.0204092338681221, 0.020408011972904205, 0.012041600421071053, -0.04784639924764633, 0.01779056340456009, -0.007565107196569443, 0.015037978999316692, -0.011034153401851654, 0.023502754047513008, 0.06352145969867706, -0.0031107531394809484, -0.019038395956158638, -0.01718733087182045, 0.013300077058374882, 0.04330527037382126, -0.05201733484864235, -0.023073744028806686, -0.01208325382322073, -0.011849443428218365, -0.03098444640636444, -0.014165127649903297, 0.02246646024286747, -0.049735039472579956, -0.013358687050640583, 0.02728751115500927, 0.009147618897259235, 0.01639171876013279, 0.009290533140301704, 0.011437145061790943, 0.02354017272591591, -0.0016381372697651386, -0.023104961961507797, -0.030724013224244118, 0.004307540599256754, -0.036222584545612335, 0.06699511408805847, 0.014693394303321838, -0.01205500215291977, -0.02359818108379841, -0.02104239910840988, 0.04648837819695473, 0.026258254423737526, 0.06936243176460266, 0.01711309142410755, 0.062222834676504135, -0.01741495355963707, 0.03090866096317768, 0.030566710978746414, 0.04518278315663338, 0.02600717917084694, -0.018069341778755188, -0.014781028032302856 ]
apache-pinot-inserts-sql-unable-get-tasks-states-map-no-task-generated-for-table
https://markhneedham.com/blog/2022/11/18/apache-pinot-inserts-sql-unable-get-tasks-states-map-no-task-generated-for-table
false
2022-11-11 02:44:37
Java: FileSystems.getDefault().getPathMatcher: IllegalArgumentException
[ "java" ]
[ "java" ]
I was debugging something in the https://github.com/apache/pinot/[Apache Pinot code^] earlier this week and came across the `FileSystems.getDefault().getPathMatcher` function, which didn't work quite how I expected. The function creates a `PathMatcher` that you can use to match against Paths. I was passing through a value of `*.json`, which was then resulting in code similar to this: [source, java] ---- import java.nio.file.FileSystems; import java.nio.file.Path; import java.nio.file.PathMatcher; class Main { public static void main(String args[]) { PathMatcher matcher = FileSystems.getDefault().getPathMatcher("*.json"); System.out.println(matcher.matches(Path.of("/tmp", "mark.json"))); } } ---- I've copied that code into https://replit.com/@MarkNeedham/Mark-Needham#Main.java[Replit^] and if we run it on there, we'll see the following exception: [source, text] ---- Exception in thread "main" java.lang.IllegalArgumentException at java.base/sun.nio.fs.UnixFileSystem.getPathMatcher(UnixFileSystem.java:286) at Main.main(Main.java:5) exit status 1 ---- After reading the https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystem.html#getPathMatcher(java.lang.String)[documentation^] I learnt that the pattern needs to be prefixed with `regex:` or `glob:`, otherwise it won't work. Let's update the example to do that: [source, java] ---- import java.nio.file.FileSystems; import java.nio.file.Path; import java.nio.file.PathMatcher; class Main { public static void main(String args[]) { PathMatcher matcher = FileSystems.getDefault().getPathMatcher("glob:*.json"); System.out.println(matcher.matches(Path.of("/tmp", "mark.json"))); } } ---- If we run that again, this time we get a result telling us that the file doesn't exist: [source, text] ---- false ----
In this post we'll learn how to use Java's FileSystems.getDefault().getPathMatcher
uploads/2022/11/path-matcher.png
[ -0.020195208489894867, -0.012346736155450344, -0.034044843167066574, 0.045019857585430145, 0.09218791872262955, 0.010840889997780323, 0.020903244614601135, 0.04441023990511894, -0.012004680000245571, -0.024283302947878838, -0.018636614084243774, -0.0108518460765481, -0.07393090426921844, 0.0031182996463030577, -0.0030261401552706957, 0.06946612149477005, 0.08083425462245941, -0.020740607753396034, 0.02190687134861946, -0.02455400489270687, -0.002845420967787504, 0.054381243884563446, -0.004216671455651522, 0.03510371968150139, 0.029202960431575775, 0.012518581934273243, 0.0009179329499602318, 0.016436081379652023, -0.06387051939964294, 0.012444231659173965, 0.040367066860198975, 0.0226927287876606, 0.029741350561380386, -0.0136884655803442, -0.0051800464279949665, 0.005155869759619236, -0.01708739623427391, 0.02376219630241394, 0.014175347983837128, 0.05752558633685112, -0.04142085462808609, 0.030325597152113914, -0.03052246943116188, 0.022294458001852036, -0.023695964366197586, 0.030821168795228004, -0.05491332337260246, 0.0032746470533311367, -0.020079821348190308, -0.00488359946757555, -0.04148220270872116, 0.029283590614795685, -0.04361601546406746, 0.009131104685366154, 0.014514184556901455, 0.041424307972192764, 0.027821054682135582, -0.05980108678340912, 0.01625533401966095, -0.03317094221711159, -0.017106037586927414, -0.002344008767977357, 0.0007351677631959319, 0.031150398775935173, -0.01274025160819292, -0.013945771381258965, -0.005701326299458742, 0.04318787902593613, -0.05743338540196419, -0.04083354026079178, 0.007665593642741442, 0.008076784200966358, 0.0001920435024658218, -0.013598372228443623, 0.024699971079826355, -0.03137395530939102, -0.03785322979092598, 0.038791999220848083, 0.00418849429115653, 0.046888645738363266, -0.041888728737831116, 0.004129534121602774, 0.03492852300405502, -0.00392538495361805, 0.04810427129268646, -0.03876454010605812, -0.0528499074280262, 0.008107740432024002, -0.016484936699271202, 0.04599735885858536, 0.04600662738084793, -0.05312284827232361, 0.0030101907905191183, 0.005680288653820753, -0.011451655998826027, 0.022436849772930145, 0.008903204463422298, -0.0067345448769629, -0.0046791378408670425, -0.0038381482008844614, -0.0468420647084713, 0.009040944278240204, 0.025101907551288605, 0.04545046016573906, -0.071035236120224, -0.03391247242689133, -0.011810719966888428, -0.026105858385562897, -0.0046145180240273476, 0.0033325818367302418, -0.023190021514892578, 0.02613797038793564, -0.006777426693588495, 0.011870992369949818, -0.08270193636417389, 0.08581817150115967, -0.011615968309342861, -0.034296296536922455, 0.016351688653230667, 0.043596334755420685, 0.06717349588871002, 0.002334326272830367, -0.005084495525807142, 0.0846090242266655, 0.006103724241256714, 0.05571751296520233, 0.002677694894373417, 0.04830654338002205, -0.009765615686774254, -0.04377509653568268, -0.0516381561756134, 0.03738468512892723, 0.030643608421087265, 0.021108092740178108, 0.010163987055420876, -0.005337637383490801, -0.004321673884987831, -0.025016579777002335, 0.0348966047167778, 0.00848838035017252, -0.03790406510233879, -0.01609911397099495, 0.021265244111418724, -0.03171299025416374, 0.028768150135874748, 0.019204869866371155, -0.007378033362329006, -0.05105874687433243, -0.012054882012307644, 0.023078251630067825, 0.028315242379903793, 0.07139865309000015, 0.08349943161010742, -0.028849346563220024, -0.03668367117643356, 0.08741584420204163, 0.007470959797501564, 0.03688853606581688, -0.038512080907821655, 0.018062325194478035, 0.027717284858226776, 0.04302008077502251, -0.007050089538097382, 0.03770773485302925, -0.003896626178175211, -0.00925973616540432, 0.0086020827293396, 0.05552303045988083, 0.001558619667775929, 0.015295612625777721, -0.040299057960510254, -0.07658174633979797, 0.04912305623292923, -0.03610352426767349, 0.0023072590120136738, -0.008709236048161983, 0.07419399917125702, -0.0038714956026524305, 0.02027524635195732, 0.03851256147027016, -0.06297193467617035, 0.04887130483984947, 0.020256804302334785, -0.006525432225316763, 0.027019251137971878, -0.0038402206264436245, 0.07699649780988693, 0.01730635017156601, -0.007633545435965061, 0.01882314309477806, -0.07912535965442657, -0.06711402535438538, -0.024963680654764175, -0.005614249035716057, 0.06898900866508484, -0.03334243595600128, -0.009382971562445164, 0.03365328535437584, 0.020457090809941292, 0.02797667123377323, 0.03610601648688316, -0.00581300538033247, -0.0008922876440919936, -0.06400088965892792, -0.06077149137854576, 0.03173032030463219, 0.0460330992937088, -0.03858119994401932, -0.029993169009685516, -0.0009985072538256645, -0.019641313701868057, 0.02544832043349743, 0.03156552091240883, -0.024164091795682907, 0.0507071316242218, 0.034039828926324844, 0.03111751191318035, -0.04357248172163963, 0.05434393510222435, -0.07833322137594223, 0.008048835210502148, 0.01451462134718895, -0.016244620084762573, -0.01653524488210678, 0.0053084357641637325, 0.12283893674612045, 0.05190778151154518, -0.016947681084275246, -0.03903593122959137, 0.040705472230911255, -0.007305033039301634, -0.05366547778248787, 0.006661044899374247, 0.007484379690140486, -0.027776941657066345, -0.018314091488718987, -0.020362555980682373, -0.02161167375743389, 0.018324382603168488, -0.018287694081664085, 0.004297671373933554, 0.059966493397951126, -0.025936787948012352, 0.03069332055747509, -0.0009821124840527773, -0.034282587468624115, 0.009805561043322086, -0.037633080035448074, -0.05065522715449333, -0.006513535510748625, 0.009703258983790874, -0.01514438446611166, 0.05075348541140556, -0.03049328364431858, -0.04827621206641197, -0.03131808340549469, -0.056903570890426636, -0.0019093967275694013, 0.044515203684568405, 0.06938911229372025, -0.006614661309868097, 0.03118402697145939, -0.004968377761542797, -0.0006267448188737035, -0.02763044647872448, -0.04356159642338753, -0.00640466995537281, 0.04794353246688843, 0.035949647426605225, 0.03297676891088486, 0.006943030748516321, 0.033936355262994766, -0.007588950451463461, -0.006506481673568487, -0.008192479610443115, -0.006961393170058727, 0.037545062601566315, 0.012629065662622452, -0.028613992035388947, -0.018167460337281227, -0.02884492464363575, 0.04681388661265373, -0.03947688639163971, -0.03702319785952568, -0.0037394242826849222, -0.050596684217453, 0.04784700646996498, -0.05112548917531967, -0.043446097522974014, 0.011322151869535446, 0.02579917199909687, 0.037154462188482285, -0.00760527653619647, 0.01504127960652113, 0.08006665855646133, -0.0003191450668964535, 0.022351209074258804, 0.017294909805059433, 0.015932077541947365, 0.027530858293175697, 0.011528491973876953, 0.03347508981823921, 0.034950774163007736, 0.004984974395483732, -0.004470188170671463, 0.0033772559836506844, -0.010074066929519176, -0.02251202054321766, -0.28520190715789795, 0.05696370452642441, -0.00353856198489666, -0.020683491602540016, 0.03136299550533295, -0.017017556354403496, -0.006904663518071175, -0.0310695581138134, -0.00001599889037606772, 0.018048690631985664, -0.03447996824979782, -0.03197662532329559, -0.019425859674811363, 0.038154907524585724, -0.038704607635736465, -0.046844396740198135, -0.014620373025536537, -0.04476502165198326, 0.016051743179559708, 0.032265957444906235, -0.00007939378701848909, -0.06130833551287651, 0.03295624256134033, 0.06470587849617004, 0.011186639778316021, 0.07022388279438019, -0.08054923266172409, 0.04247057065367699, -0.04086730629205704, -0.01324403751641512, 0.0018896795809268951, -0.009218824096024036, -0.010751089081168175, -0.026000212877988815, -0.01694565825164318, -0.026729591190814972, 0.014632461592555046, 0.013438033871352673, 0.0035572100896388292, 0.05256729945540428, -0.03896564245223999, -0.037187181413173676, -0.019854342564940453, 0.009397133253514767, 0.06349477171897888, -0.004450393375009298, -0.06581064313650131, -0.01140572503209114, -0.022561777383089066, 0.059276316314935684, -0.04272892326116562, -0.035761166363954544, -0.0024507618509233, 0.02960852161049843, -0.005322293844074011, -0.016942176967859268, 0.006738691125065088, -0.012252637185156345, -0.03247569128870964, -0.01763547956943512, 0.0036544909235090017, -0.04996378719806671, -0.0003548592794686556, -0.0419798344373703, -0.024386780336499214, -0.05330836400389671, -0.06888327747583389, -0.010229920037090778, 0.07539775967597961, -0.005128629971295595, -0.020544705912470818, -0.001080095418728888, 0.008143885061144829, -0.12539227306842804, -0.023050395771861076, -0.02354275807738304, -0.050701502710580826, -0.05559489130973816, -0.04042089730501175, 0.03443802520632744, -0.04304628446698189, -0.010910063982009888, 0.035382822155952454, 0.010224026627838612, 0.018820159137248993, -0.028902271762490273, 0.01518940832465887, -0.04456927254796028, -0.017086772248148918, -0.005643806420266628, 0.07087220996618271, -0.04133524000644684, -0.0036257978063076735, -0.055754464119672775, 0.024961579591035843, 0.06020719185471535, 0.03902541846036911, 0.0012456567492336035, 0.027391552925109863, 0.034578997641801834, 0.04172966256737709, -0.06703761965036392, 0.016303332522511482, -0.02085050754249096, 0.00676827784627676, -0.0025257966481149197, -0.05178198218345642, 0.01716596633195877, 0.0396239273250103, 0.02662472613155842, 0.002936404896900058, -0.0490763895213604, 0.017631839960813522, -0.05064547806978226, -0.032227836549282074, -0.043056778609752655, 0.00055345194414258, 0.017666559666395187, 0.03974946588277817, -0.022068120539188385, -0.04078954458236694, 0.015535746701061726, 0.012036941945552826, -0.03401288762688637, -0.024103401228785515, -0.056485388427972794, -0.006531756836920977, -0.016210420057177544, -0.0037365772295743227, 0.019955256953835487, -0.031372975558042526, 0.04214310646057129, 0.019293729215860367, -0.03104485757648945, 0.00448406208306551, -0.04039955139160156, -0.00821969285607338, -0.02542015165090561, 0.013079488649964333, 0.0027359016239643097, 0.012375015765428543, -0.008431538939476013, 0.018144279718399048, 0.012767691165208817, 0.05559603497385979, 0.0052352105267345905, 0.03429308906197548, 0.00512405950576067, 0.0012179173063486814, -0.00006391973147401586, -0.026364706456661224, -0.04651623219251633, 0.03566062077879906, -0.025129826739430428, -0.04206918925046921, -0.014801785349845886, 0.005456911399960518, 0.0007584909326396883, -0.028443872928619385, -0.030485857278108597, 0.04990798607468605, -0.06198550760746002, -0.008779048919677734, -0.014855117537081242, -0.05983041971921921, 0.05080646649003029, -0.007348316255956888, 0.0478842556476593, -0.041693199425935745, -0.006944979075342417, 0.004299846477806568, 0.005195312201976776, -0.007268172223120928, 0.03203396499156952, -0.019104503095149994, 0.03354760631918907, 0.028442606329917908, 0.05079932510852814, -0.004224417731165886, 0.005813336931169033, -0.022165121510624886, -0.006063246633857489, 0.023766053840517998, 0.025330500677227974, 0.03335314989089966, -0.02549043856561184, -0.020866474136710167, -0.008204340003430843, -0.024477163329720497, -0.015997089445590973, -0.030020803213119507, -0.014627988450229168, -0.038574934005737305, 0.01738564670085907, -0.02624177746474743, -0.0974232405424118, 0.0064780996181070805, -0.0007360862218774855, -0.0033138608559966087, 0.013731298968195915, -0.0021745890844613314, 0.004306389018893242, -0.012353765778243542, 0.010489552281796932, 0.04786267131567001, -0.054460927844047546, 0.0007037277682684362, 0.008901912719011307, 0.008173256181180477, 0.029709694907069206, 0.009943706914782524, -0.05562501400709152, -0.01077844388782978, -0.01383926160633564, -0.006273781880736351, -0.0334070548415184, -0.03147733956575394, -0.010300593450665474, 0.012271632440388203, -0.004241091199219227, -0.022398093715310097, 0.0020633842796087265, -0.007446693256497383, -0.0008246123907156289, -0.02533479779958725, 0.014198428019881248, -0.0054337442852556705, -0.01993258111178875, 0.011191165074706078, -0.020588014274835587, 0.024048276245594025, -0.03614190220832825, 0.03430149331688881, 0.01832769438624382, -0.019180230796337128, -0.011770596727728844, -0.05006512999534607, -0.0044150627218186855, 0.00017738438327796757, 0.0695619061589241, 0.011089026927947998, -0.01377802062779665, -0.011207223869860172, -0.022201957181096077, -0.03171420469880104, -0.007015870418399572, -0.007326758000999689, -0.04255272075533867, 0.02608761191368103, 0.07701995223760605, 0.023817798122763634, 0.04701343551278114, -0.0034229320008307695, -0.017053043469786644, 0.05894239619374275, -0.04363331198692322, -0.05320798233151436, 0.010777050629258156, -0.057977087795734406, 0.03617888689041138, 0.031043514609336853, 0.01926955208182335, -0.05379493907094002, 0.03343300521373749, 0.04870802164077759, -0.017091073095798492, 0.007100970949977636, -0.02120070345699787, 0.03128590062260628, -0.03196578100323677, -0.023987948894500732, -0.09380995482206345, 0.020518163219094276, 0.0805753692984581, 0.009478683583438396, 0.005916408263146877, -0.0445050410926342, -0.02307465486228466, 0.006923663429915905, -0.06461206823587418, -0.02898847870528698, 0.02893511950969696, -0.0038050489965826273, 0.017770608887076378, 0.025245817378163338, -0.03267349302768707, 0.03549762815237045, 0.049727458506822586, -0.03092476911842823, -0.046211980283260345, -0.04086042940616608, 0.0660175159573555, 0.04406917840242386, 0.028355805203318596, -0.0058144982904195786, 0.003177214413881302, 0.0757155641913414, 0.0215105302631855, 0.035881269723176956, 0.07446436583995819, -0.017877941951155663, 0.04776491969823837, 0.05746414139866829, -0.028112243860960007, 0.009081541560590267, 0.020011991262435913, -0.015933271497488022, -0.05860983207821846, 0.026218650862574577, 0.015984095633029938, -0.04172520712018013, -0.024532347917556763, 0.038576096296310425, 0.013390621170401573, -0.03026524744927883, -0.03837680071592331, -0.016785917803645134, -0.02707241103053093, 0.01519457995891571, -0.027165286242961884, 0.02398606762290001, -0.04950885847210884, 0.04991136118769646, -0.0023944943677634, 0.025069715455174446, 0.060633718967437744, 0.034318748861551285, -0.01952858455479145, 0.029336798936128616, 0.0768769159913063, 0.0955890566110611, -0.012981308624148369, 0.017590787261724472, 0.055868662893772125, -0.0063558779656887054, -0.044793810695409775, -0.0146672073751688, -0.049166373908519745, -0.01485420297831297, 0.001744100940413773, 0.006488521117717028, 0.06639187783002853, 0.008415665477514267, 0.07294326275587082, -0.01796858012676239, 0.007575854659080505, -0.0071329278871417046, 0.009662427939474583, 0.032433588057756424, 0.04041171818971634, 0.005978199653327465, 0.02639024145901203, -0.002669598674401641, -0.010514389723539352, 0.009987246245145798, -0.011322562582790852, -0.024260438978672028, 0.02686857432126999, -0.023756742477416992, 0.005131763406097889, 0.011988034471869469, 0.03332176059484482, 0.06559297442436218, -0.009787228889763355, -0.01198080088943243, -0.010849466547369957, 0.03765040636062622, 0.026726549491286278, -0.015828849747776985, 0.002280052052810788, -0.013639761134982109, 0.005924054887145758, -0.02153080515563488, -0.004757867194712162, -0.021395152434706688, -0.038590025156736374, 0.015397358685731888, -0.037822574377059937, 0.028009837493300438, 0.027207493782043457, -0.005770277231931686, -0.030668359249830246, -0.04999196529388428, -0.05633977800607681, -0.05533614382147789, -0.06033359095454216, -0.033911965787410736, -0.0023026077542454004, -0.00868417788296938, -0.04306308180093765, -0.029573339968919754, -0.010745558887720108, -0.002295610960572958, 0.029349779710173607, -0.05365310609340668, -0.0037583692464977503, 0.03302436321973801, 0.025442594662308693, 0.03098507970571518, 0.021555932238698006, 0.04036247730255127, -0.007358215283602476, -0.0038689500652253628, -0.012917530722916126, -0.044443804770708084, 0.06311331689357758, 0.011343107558786869, 0.015294786542654037, -0.07545521855354309, 0.017966868355870247, 0.04444320872426033, 0.00552178593352437, -0.06934592127799988, 0.012273487634956837, 0.011318689212203026, -0.03923220559954643, 0.06393212080001831, -0.0035931195598095655, -0.0019287969917058945, -0.022417202591896057, -0.039265383034944534, -0.0024230231065303087, -0.013262211345136166, 0.056790273636579514, -0.021357189863920212, 0.06764751672744751, 0.02378888614475727, -0.023691507056355476, -0.023570595309138298, 0.007748953066766262, 0.006706569343805313, -0.0034115719608962536, -0.05027100816369057, -0.037965960800647736, -0.030177976936101913, -0.05390197038650513, -0.015014300122857094, 0.017794927582144737, -0.036520153284072876, -0.06134709715843201, 0.002377412049099803, 0.026058629155158997, -0.05103479325771332, 0.021994393318891525, -0.04666662588715553, 0.05307430773973465, -0.024009745568037033, -0.03429056704044342, -0.008565402589738369, 0.0038581874687224627, 0.0021228380501270294, 0.020984672009944916, 0.04656355082988739, -0.01757754012942314, 0.011534062214195728, -0.0353618748486042, 0.041405126452445984, 0.039306916296482086, -0.029968181625008583, -0.021866604685783386 ]
[ -0.12110111862421036, -0.012643164023756981, -0.0516604483127594, -0.014926915057003498, 0.05318119749426842, -0.09833306819200516, 0.025469785556197166, -0.012611519545316696, -0.029413379728794098, -0.039519984275102615, 0.025279100984334946, -0.0576600655913353, 0.02305133454501629, -0.02083604596555233, 0.07230909913778305, -0.02376386523246765, 0.0024447233881801367, -0.01608075387775898, -0.009191945195198059, 0.021985873579978943, 0.0023007348645478487, -0.008481432683765888, -0.011245292611420155, -0.0712374821305275, 0.0123166898265481, 0.08516018837690353, 0.038214169442653656, -0.010397616773843765, -0.02728305757045746, -0.1889803111553192, 0.0007705440511927009, -0.03611959517002106, 0.010026538744568825, 0.009174994193017483, -0.02416507713496685, 0.016303636133670807, 0.027971968054771423, 0.01458302978426218, 0.029563745483756065, 0.021518461406230927, -0.008807504549622536, 0.02594131790101528, -0.025050805881619453, 0.02466600574553013, 0.0034908170346170664, -0.0032369743566960096, -0.03016657941043377, -0.010738242417573929, -0.012985745444893837, -0.03024931065738201, -0.08590897172689438, -0.06432171911001205, -0.01050215307623148, -0.038785189390182495, 0.008719589561223984, 0.030588114634156227, 0.04729054123163223, 0.08895602077245712, 0.017805786803364754, 0.05271441489458084, 0.02240137755870819, -0.02328551560640335, -0.1120307520031929, 0.08194272220134735, 0.039783548563718796, 0.01101105846464634, 0.013372642919421196, -0.015433112159371376, -0.04505087435245514, 0.06678865104913712, 0.012109247967600822, 0.009613779373466969, -0.04209068790078163, 0.07088878750801086, -0.037525493651628494, -0.029869448393583298, 0.0009151122649200261, 0.024440644308924675, 0.009775985032320023, 0.00597268994897604, -0.10052201896905899, -0.022405916824936867, -0.0028567956760525703, -0.004130554385483265, -0.033004142343997955, 0.025292696431279182, -0.03015812486410141, 0.025750087574124336, 0.005260371137410402, 0.015914078801870346, 0.03815856948494911, -0.017629295587539673, 0.046922143548727036, 0.032228823751211166, -0.0734952837228775, -0.022573668509721756, -0.02307245321571827, 0.027870338410139084, 0.015431350097060204, 0.3811972439289093, -0.04220476746559143, -0.015448169782757759, 0.01468854583799839, 0.0068422905169427395, -0.008694271557033062, 0.004293164238333702, -0.018273895606398582, -0.022983038797974586, 0.05065495893359184, -0.017551273107528687, 0.012407978996634483, -0.04089585319161415, 0.07879975438117981, -0.08384188264608383, 0.013836149126291275, 0.0032907845452427864, 0.020631859079003334, 0.020124034956097603, -0.030745258554816246, 0.05024031549692154, 0.007580938749015331, -0.014919904991984367, -0.006064192391932011, 0.027456292882561684, -0.005504467058926821, -0.01209910400211811, -0.009254548698663712, 0.029370496049523354, 0.07621496170759201, 0.04500984400510788, 0.02747023105621338, -0.08298861235380173, -0.06509257107973099, -0.023733658716082573, 0.013021521270275116, 0.05886683985590935, 0.0037738473620265722, -0.0004240901907905936, -0.04086485132575035, 0.01507519744336605, 0.015514769591391087, -0.04139716550707817, 0.03430524840950966, 0.035760995000600815, -0.042749304324388504, 0.08609778434038162, -0.06276316940784454, -0.01851130835711956, 0.00019390897068660706, -0.04025722295045853, -0.039257798343896866, 0.028458984568715096, -0.05158935487270355, -0.0891541838645935, -0.035592660307884216, 0.04120681434869766, 0.06501877307891846, -0.04139009490609169, -0.04718951880931854, -0.006282097194343805, -0.02002871409058571, -0.02885199896991253, -0.020292602479457855, 0.044460829347372055, 0.043156057596206665, -0.07947628200054169, -0.0051125530153512955, -0.015310087241232395, -0.014065194875001907, -0.05078919604420662, -0.02757440321147442, 0.03423020988702774, 0.019077874720096588, -0.04217973351478577, 0.02173147164285183, -0.0006420699064619839, -0.013287927955389023, 0.008572743274271488, -0.016245516017079353, 0.02696748450398445, -0.017926735803484917, 0.016861431300640106, -0.05682595819234848, -0.007365279830992222, 0.01985558494925499, -0.06116681545972824, -0.0779501348733902, 0.033415380865335464, -0.0014902909751981497, 0.012594531290233135, -0.018907835707068443, -0.025090066716074944, -0.04495751112699509, 0.01797749660909176, -0.0075179897248744965, -0.010336130857467651, 0.004755879752337933, -0.004419348202645779, 0.014303467236459255, -0.03176360949873924, 0.05401144549250603, 0.06864599883556366, 0.028897328302264214, 0.04862985014915466, -0.07902354747056961, 0.01168143656104803, 0.024685505777597427, -0.06421436369419098, -0.023463143035769463, 0.01891290955245495, -0.07321606576442719, -0.0148673290386796, -0.030719615519046783, -0.01071921270340681, -0.01716610975563526, -0.07337414473295212, 0.004737114999443293, 0.020623018965125084, 0.063805490732193, 0.04346982017159462, -0.08197508752346039, -0.03238065168261528, -0.007340062875300646, -0.3601718544960022, -0.01091641467064619, -0.045334018766880035, 0.011959665454924107, 0.01828487031161785, -0.047195110470056534, 0.010802384465932846, -0.01417322177439928, -0.05973437801003456, 0.031489647924900055, 0.09029999375343323, -0.009371713735163212, -0.006923467852175236, -0.031679339706897736, 0.003277585143223405, 0.0027121761813759804, -0.007125329226255417, -0.02278563566505909, -0.0013927578693255782, 0.04981783777475357, 0.026871098205447197, -0.04083457961678505, -0.0021919843275099993, -0.027316996827721596, 0.010738187469542027, 0.00968924444168806, 0.06984435021877289, 0.06591983884572983, 0.06758081912994385, -0.06637020409107208, 0.060616858303546906, 0.024204527959227562, -0.02424159273505211, -0.08148747682571411, -0.009258749894797802, -0.058258429169654846, -0.03247009217739105, -0.010077865794301033, 0.03679979592561722, -0.001285998965613544, -0.03475655987858772, 0.01793856732547283, -0.0029847794212400913, -0.030475709587335587, 0.0072292909026145935, -0.006529052276164293, 0.005607853643596172, -0.026123110204935074, 0.05514220520853996, 0.06499749422073364, -0.006609901320189238, 0.013831805437803268, 0.04979369044303894, 0.024749543517827988, 0.03152906894683838, -0.025597570464015007, -0.02377450279891491, -0.03189768269658089, 0.02263689786195755, -0.02959308587014675, 0.02846115082502365, 0.03477394953370094, 0.04228931665420532, -0.013244474306702614, 0.00650985399261117, 0.028076793998479843, 0.03239322453737259, 0.027970431372523308, 0.045790478587150574, -0.003661971539258957, 0.009038964286446571, 0.0855075865983963, -0.03430299460887909, 0.009505042806267738, 0.050532858818769455, 0.06495924293994904, 0.002517527202144265, -0.012413191609084606, 0.013914892449975014, -0.03206002339720726, 0.0401470772922039, 0.025950128212571144, 0.06452879309654236, -0.03909889608621597, -0.019010307267308235, 0.058004360646009445, 0.03151067718863487, 0.011176514439284801, 0.057483524084091187, -0.028580887243151665, -0.008873089216649532, -0.010231695137917995, -0.020124103873968124, 0.010555494576692581, 0.06427565962076187, 0.005937452428042889, -0.288260281085968, 0.021650398150086403, 0.05903017520904541, 0.053596049547195435, 0.01029297523200512, 0.010018759407103062, 0.06933032721281052, -0.05058272182941437, -0.016971750184893608, 0.011575629934668541, 0.03608626127243042, 0.011654072441160679, -0.044947944581508636, -0.02577649988234043, 0.043237581849098206, -0.014522254467010498, 0.020790809765458107, 0.07058000564575195, 0.048132508993148804, -0.014060179702937603, 0.048442356288433075, -0.015964532271027565, 0.19914884865283966, -0.048947468400001526, 0.015388269908726215, 0.027241317555308342, 0.006046854425221682, 0.007653475739061832, 0.09624700993299484, -0.005728378426283598, 0.02112753503024578, -0.012841771356761456, 0.0817842185497284, -0.02393776923418045, 0.029197655618190765, -0.04468754678964615, 0.016016660258173943, 0.0486304946243763, 0.0013482982758432627, -0.03306199610233307, -0.03121725656092167, -0.0036603379994630814, -0.03150906041264534, 0.0057158502750098705, 0.07518656551837921, -0.005579045973718166, -0.027025965973734856, -0.01220258790999651, -0.019051488488912582, 0.012547763995826244, -0.022466488182544708, -0.03974189981818199, 0.0027897271793335676, -0.00042186162318103015, 0.034731075167655945, 0.059317536652088165, 0.013413446955382824, -0.013680710457265377, -0.0668480172753334, 0.0028768687043339014, 0.016661236062645912, 0.0011367100523784757, 0.09353278577327728, 0.03619040176272392, 0.015508374199271202 ]
[ -0.027620602399110794, 0.003363157156854868, -0.031506262719631195, -0.013654740527272224, 0.01408415287733078, -0.023301705718040466, -0.014448821544647217, 0.051814004778862, -0.02681015059351921, -0.019538117572665215, 0.0035440530627965927, 0.002003733068704605, 0.01717590168118477, 0.02667813003063202, -0.01571423001587391, -0.05535682663321495, -0.02229142002761364, 0.031683024019002914, 0.02375144511461258, -0.02576218545436859, -0.034864939749240875, 0.039794620126485825, 0.03922746330499649, -0.05616340786218643, -0.0253604669123888, 0.02617536671459675, -0.010327278636395931, -0.03662465885281563, 0.0067106978967785835, -0.12658551335334778, 0.00032054531038738787, -0.017154326662421227, -0.004412482026964426, -0.017276648432016373, 0.022878823801875114, 0.012998128309845924, 0.008084318600594997, 0.004959582816809416, -0.008966083638370037, -0.005151446908712387, -0.011585348285734653, 0.013176138512790203, -0.017128396779298782, -0.005064310505986214, -0.02738357149064541, -0.04107260704040527, 0.007615925278514624, -0.02447817102074623, -0.007763647008687258, 0.02028782293200493, -0.04565425589680672, 0.00697154738008976, 0.010876204818487167, 0.006883365102112293, 0.06066043674945831, -0.028641842305660248, 0.004885791800916195, 0.012852107174694538, -0.017969297245144844, -0.02050258219242096, 0.02278566174209118, 0.0036633138079196215, -0.04091983661055565, -0.04889954626560211, 0.005118352361023426, -0.040361952036619186, 0.027320358902215958, 0.0005445383721962571, 0.026339873671531677, -0.024034911766648293, -0.03300236538052559, 0.027647102251648903, 0.006115565076470375, -0.005253147799521685, -0.04782877489924431, 0.04203978180885315, 0.00430110190063715, 0.039387114346027374, 0.03440795838832855, -0.01720951497554779, -0.03482649475336075, -0.016143329441547394, 0.016306567937135696, -0.005326568614691496, -0.016917450353503227, 0.034828975796699524, -0.01982099376618862, 0.04457449913024902, 0.011724223382771015, 0.020047564059495926, -0.02256944589316845, -0.006892699748277664, -0.005251638125628233, 0.005952187813818455, -0.09391632676124573, 0.017201725393533707, -0.04792836681008339, -0.005640263669192791, -0.000576277612708509, 0.8248060941696167, 0.00874475110322237, 0.053029630333185196, 0.055282119661569595, -0.026993652805685997, 0.03523479402065277, 0.030746610835194588, -0.04508557543158531, -0.00033150456147268414, 0.0382673479616642, -0.0251020435243845, 0.008952902629971504, -0.02230583131313324, 0.037916697561740875, 0.010719246231019497, 0.02853449247777462, 0.01598181203007698, 0.026355717331171036, 0.02495233155786991, -0.004245101474225521, 0.04700103774666786, 0.03609047085046768, -0.04135773703455925, -0.004036543890833855, 0.0012713623000308871, 0.006410833448171616, -0.14195427298545837, -0.005025671329349279, -7.791231658547816e-33, 0.026890024542808533, -0.0322624035179615, 0.02561105042695999, -0.020904744043946266, -0.014335216023027897, -0.03809903562068939, -0.031325336545705795, 0.04613928496837616, 0.016666706651449203, -0.03832271695137024, 0.00592303229495883, -0.047673918306827545, -0.015035564079880714, -0.017522068694233894, 0.00092866993509233, -0.010822084732353687, -0.003366874298080802, 0.022207042202353477, -0.038540519773960114, 0.038847170770168304, 0.016131671145558357, 0.018587937578558922, -0.0020719552412629128, -0.011936724185943604, 0.014123458415269852, 0.03604963794350624, 0.02604607678949833, -0.027115045115351677, 0.005037045106291771, -0.04633553698658943, 0.011142557486891747, -0.017853688448667526, 0.019345421344041824, -0.02187836542725563, 0.0456419363617897, -0.05052898824214935, 0.003850540379062295, 0.012363079935312271, -0.02809833362698555, -0.060825370252132416, -0.05167583003640175, -0.011609011329710484, -0.018207401037216187, 0.03306904807686806, 0.0017912917537614703, -0.025555670261383057, 0.005818174686282873, 0.02017827332019806, -0.009041223675012589, 0.015645893290638924, 0.009529698640108109, 0.03229314833879471, 0.023507537320256233, -0.013157746754586697, -0.005277117248624563, 0.007952454499900341, -0.0030326922424137592, 0.022116873413324356, -0.002183546544983983, 0.0019463305361568928, 0.0017351091373711824, 0.001198781537823379, -0.028110826388001442, 0.02854635939002037, -0.02524716593325138, -0.005880092736333609, -0.0061347647570073605, -0.004236143082380295, 0.004014997277408838, 0.07025893032550812, -0.05188841000199318, 0.013731942512094975, -0.0020575672388076782, -0.01629977487027645, -0.010716849938035011, -0.039203036576509476, 0.011612272821366787, -0.013038955628871918, -0.00649767741560936, 0.0000906027780729346, -0.005765851121395826, 0.004585637710988522, 0.008362586610019207, -0.02945706620812416, 0.003622697899118066, 0.008944445289671421, 0.005309767555445433, -0.021141350269317627, -0.0013597956858575344, -0.011397783644497395, 0.06559213250875473, 0.06368247419595718, -0.04007705673575401, -0.018892014399170876, -0.010462847538292408, 7.204223575209752e-33, -0.0032036644406616688, -0.004398772493004799, -0.02669695019721985, -0.021174268797039986, 0.007720000576227903, -0.006267885211855173, 0.0026206444017589092, 0.007015371695160866, -0.02128884755074978, 0.027735635638237, -0.07154978066682816, 0.012495597824454308, -0.012505291029810905, 0.005644155666232109, 0.07895839959383011, -0.04488326236605644, 0.01759742945432663, 0.017525112256407738, 0.03027595952153206, -0.023355478420853615, 0.017149997875094414, -0.005994011647999287, 0.03662482276558876, -0.0077777160331606865, 0.03750761225819588, 0.02666958048939705, -0.03332614153623581, 0.02279619686305523, -0.031806208193302155, 0.010379108600318432, 0.05325929448008537, -0.0305506382137537, -0.017706088721752167, -0.08037503808736801, 0.010201999917626381, 0.010792468674480915, -0.006923454813659191, 0.005023137200623751, 0.01736847311258316, -0.004568880423903465, 0.015876444056630135, -0.018108651041984558, 0.020082278177142143, 0.036746423691511154, -0.014273595996201038, 0.026819247752428055, 0.009799330495297909, 0.028477247804403305, -0.0067184981890022755, -0.011722659692168236, 0.010742868296802044, 0.029642000794410706, 0.021754778921604156, -0.006845714990049601, 0.0449955128133297, 0.016243353486061096, -0.03870677575469017, 0.005202676635235548, -0.05337391421198845, 0.04336171969771385, -0.009842542000114918, -0.04295709729194641, -0.021777279675006866, 0.028422122821211815, -0.04770587384700775, -0.04377495497465134, -0.024213995784521103, -0.014101960696280003, -0.026545213535428047, 0.0007762455497868359, -0.018043112009763718, 0.019224198535084724, -0.013781439512968063, 0.05116528645157814, 0.024380572140216827, -0.024548742920160294, 0.001879066345281899, -0.00012566692021209747, -0.01460236869752407, 0.007899013347923756, 0.007514427416026592, 0.03139183670282364, -0.031722817569971085, -0.007108170073479414, 0.07092095911502838, -0.0024125222116708755, -0.03539539501070976, 0.013455073349177837, -0.00297273020260036, -0.03149711713194847, 0.0027246566023677588, 0.018511004745960236, -0.015726136043667793, -0.007470063399523497, -0.015200820751488209, -1.298475460487225e-8, -0.010219437070190907, -0.0063588861376047134, -0.015187832526862621, 0.003868112340569496, 0.05797591432929039, 0.024425579234957695, -0.031341180205345154, 0.01923913136124611, -0.01573944091796875, 0.024722889065742493, 0.06141498684883118, 0.023286957293748856, -0.011541810818016529, 0.02326473593711853, -0.006029488984495401, -0.034168802201747894, 0.00737956166267395, 0.0010674151126295328, 0.007467489689588547, 0.03266403451561928, 0.015913143754005432, 0.025878500193357468, -0.03349675238132477, 0.017842981964349747, -0.026946742087602615, 0.0017974087968468666, 0.07124974578619003, -0.06377487629652023, -0.018100138753652573, 0.003166157752275467, 0.018642481416463852, -0.021179726347327232, -0.01012356672435999, -0.008769702166318893, -0.04595137760043144, 0.006143295671790838, 0.013763559982180595, 0.05777183175086975, 0.004861911293119192, 0.029996486380696297, -0.0039909956976771355, -0.007318844087421894, -0.007394909393042326, -0.02303745038807392, -0.022350436076521873, -0.03425641730427742, -0.016436662524938583, 0.032414790242910385, -0.017609836533665657, -0.007449178956449032, -0.02248910255730152, 0.00045665979268960655, 0.017245976254343987, 0.004251616075634956, 0.04340977221727371, -0.027929533272981644, 0.02522176504135132, -0.012669599615037441, -0.003119669621810317, 0.02496134117245674, 0.06699422001838684, -0.004919418133795261, -0.017474833875894547, -0.006059020757675171 ]
java-file-systems-path-matcher
https://markhneedham.com/blog/2022/11/11/java-file-systems-path-matcher
false
2022-11-17 02:44:37
Diffing Apache Parquet schemas with DuckDB
[ "duckdb", "parquet" ]
[ "parquet" ]
I've been playing around with DuckDB, the https://techcrunch.com/2022/11/15/motherduck-secures-investment-from-andreessen-horowitz-to-commercialize-duckdb/[new hotness^] in the analytics space, over the last month, and my friend https://twitter.com/mesirii[Michael Hunger^] asked whether you could use it to compute a diff of Apache Parquet schemas. Challenge accepted! image::{{<siteurl>}}/uploads/2022/11/challenge-accepted.gif[Challenge Accepted!] [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/vfIzz2-ZFB0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> ++++ ==== ## Querying the Parquet Schema Let's say we have three Parquet files that represent ATP tennis players - `players1.parquet`, `players2.parquet`, and `players3.parquet`. We can get the list of column names along with their data type and file name by running the following query in the https://duckdb.org/docs/api/cli.html[DuckDB CLI^]: [source, sql] ---- SELECT file_name, name, type FROM parquet_schema('players*.parquet') ORDER BY file_name; ---- If we run this query, we'll see the following results: .Results [opts="header"] |=== | file_name | name | type | players1.parquet | duckdb_schema | BOOLEAN | players1.parquet | player_id | INT32 | players1.parquet | name_first | BYTE_ARRAY | players1.parquet | name_last | BYTE_ARRAY | players1.parquet | hand | BYTE_ARRAY | players1.parquet | dob | INT32 | players1.parquet | ioc | BYTE_ARRAY | players1.parquet | height | INT32 | players1.parquet | wikidata_id | BYTE_ARRAY | players2.parquet | duckdb_schema | BOOLEAN | players2.parquet | player_id | INT32 | players2.parquet | first_name | BYTE_ARRAY | players2.parquet | last_name | BYTE_ARRAY | players2.parquet | hand | BYTE_ARRAY | players2.parquet | dob | INT32 | players2.parquet | ioc | BYTE_ARRAY | players2.parquet | height | INT32 | players2.parquet | wikidata_id | BYTE_ARRAY | players3.parquet | duckdb_schema | BOOLEAN | players3.parquet | player_id | BYTE_ARRAY | players3.parquet | first_name | BYTE_ARRAY | players3.parquet | last_name | BYTE_ARRAY | players3.parquet | hand | BYTE_ARRAY | players3.parquet | dob | BYTE_ARRAY | players3.parquet | ioc | BYTE_ARRAY | players3.parquet | height | BYTE_ARRAY |=== From scanning this list, we can see that there are some differences in the schemas, but it's not entirely obvious what those differences are. Let's see if we can write some queries to figure it out. ## Temporary Tables But first, we're going to create a temporary table per schema file to simplify the queries that we have to write. Temporary tables are stored in memory for the current session and will be gone should we exit the DuckDB CLI. The following code creates the temporary tables: [source, sql] ---- CREATE OR REPLACE TEMP TABLE p1Schema AS SELECT * FROM parquet_schema('players1.parquet'); CREATE OR REPLACE TEMP TABLE p2Schema AS SELECT * FROM parquet_schema('players2.parquet'); CREATE OR REPLACE TEMP TABLE p3Schema AS SELECT * FROM parquet_schema('players3.parquet'); ---- ## Missing fields Now we're going to write a query that finds the fields that are in p1Schema, but not in p2Schema. We'll use SQL's `EXCEPT` clause to do this: [source, sql] ---- SELECT name, type FROM p1Schema EXCEPT SELECT name, type FROM p2Schema; ---- If we run this query, we'll see the following results: .Results [opts="header"] |=== | name | type | name_first | BYTE_ARRAY | name_last | BYTE_ARRAY |=== There are a couple of fields missing in `p2Schema` that are in `p1Schema`. Let's now run the inverse query to discover fields that are in `p2Schema`, but not in `p1Schema`: [source, sql] ---- SELECT name, type FROM p2Schema EXCEPT SELECT name, type FROM p1Schema; ---- The results are as follows: .Results [opts="header"] |=== | name | type | first_name | BYTE_ARRAY | last_name | BYTE_ARRAY |=== It looks like we did some basic field renaming between these two schemas! Let's put both those queries together, along with a description that explains what's going on for missing column: [source, sql] ---- WITH schema1 AS ( SELECT name, type FROM p1Schema ), schema2 AS ( SELECT name, type FROM p2Schema ), notInSchema1 AS ( SELECT * FROM schema1 EXCEPT SELECT * FROM schema2 ), notInSchema2 AS ( SELECT * FROM schema2 EXCEPT SELECT * FROM schema1 ) SELECT *, 'Missing in players2.parquet' AS description FROM notInSchema1 UNION ALL SELECT *, 'Missing in players1.parquet' AS description FROM notInSchema2; ---- If we run this query, we'll see this outpu .Results [opts="header"] |=== | name | type | description | name_first | BYTE_ARRAY | Missing in players2.parquet | name_last | BYTE_ARRAY | Missing in players2.parquet | first_name | BYTE_ARRAY | Missing in players1.parquet | last_name | BYTE_ARRAY | Missing in players1.parquet |=== Now we can clearly see that the first two fields are missing in `players2.parquet` and the latter ones are missing in `players1.parquet`. How about if we do the same thing for `p2Schema` and `p3Schema`? [source, sql] ---- WITH schema1 AS ( SELECT name, type FROM p2Schema ), schema2 AS ( SELECT name, type FROM p3Schema ), notInSchema1 AS ( SELECT * FROM schema1 EXCEPT SELECT * FROM schema2 ), notInSchema2 AS ( SELECT * FROM schema2 EXCEPT SELECT * FROM schema1 ) SELECT *, 'Missing in players3.parquet' AS description FROM notInSchema1 UNION ALL SELECT *, 'Missing in players2.parquet' AS description FROM notInSchema2; ---- And let's run that: .Results [opts="header"] |=== | name | type | description | player_id | INT32 | Missing in players3.parquet | dob | INT32 | Missing in players3.parquet | height | INT32 | Missing in players3.parquet | wikidata_id | BYTE_ARRAY | Missing in players3.parquet | player_id | BYTE_ARRAY | Missing in players2.parquet | dob | BYTE_ARRAY | Missing in players2.parquet | height | BYTE_ARRAY | Missing in players2.parquet |=== `wikidata_id` is missing in players3.parquet, but the other 3 fields are clearly in both schemas, so why are they showing up?! It turns out they have a different data type in each schema. ## Same columns, different type To return an easier to read representation of schemas that have the same fields/columns, with different types, we can write the following query: [source, sql] ---- SELECT schema1.name AS s1Name, schema1.type AS s1Type, schema2.type AS s2Type, schema1.file_name AS s1File, schema2.file_name AS s2File FROM p2Schema AS schema1 INNER JOIN p3Schema AS schema2 ON schema2.name = schema1.name WHERE s1Type <> s2Type; ---- And let's see those results... .Results [opts="header"] |=== | s1Name | s1Type | s2Type | s1File | s2File | player_id | INT32 | BYTE_ARRAY | players2.parquet | players3.parquet | dob | INT32 | BYTE_ARRAY | players2.parquet | players3.parquet | height | INT32 | BYTE_ARRAY | players2.parquet | players3.parquet |=== ## Conclusion It turns out that computing Parquet schema diffs is another thing that DuckDB is really good at! So give it a try the next time you have some mismatched schemas, but you don't know exactly what's not matching!
In this post we'll learn how to diff Apache Parquet schemas using DuckDB.
uploads/2022/11/parquet-diff-banner.png
[ -0.004976344294846058, -0.009407762438058853, -0.006647677626460791, 0.06666366010904312, 0.10209342837333679, -0.0048742750659585, 0.018477821722626686, 0.0467250682413578, 0.011294981464743614, -0.03214466571807861, 0.006954195909202099, -0.029088938608765602, -0.05187446251511574, 0.00236264755949378, -0.013850580900907516, 0.07670284807682037, 0.06599593907594681, -0.0024404525756835938, 0.06111868843436241, -0.002667205175384879, 0.015590756200253963, 0.04063661769032478, 0.010711731389164925, 0.025365181267261505, 0.011214972473680973, 0.021622033789753914, 0.009808937087655067, 0.029730409383773804, -0.06786539405584335, -0.01723039150238037, 0.0374201200902462, -0.016035038977861404, 0.004314496647566557, -0.0187654048204422, 0.03172171860933304, 0.02443544566631317, -0.007611856795847416, 0.03627597540616989, -0.0073859733529388905, 0.02655757963657379, -0.0751088336110115, 0.027823926880955696, -0.004410494584590197, 0.024072054773569107, -0.041931748390197754, 0.014314647763967514, -0.01763947121798992, 0.03919822722673416, 0.012986327521502972, -0.0018274381291121244, -0.051702193915843964, 0.0538921095430851, -0.02195103093981743, 0.02203633263707161, -0.024064911529421806, 0.024497605860233307, 0.0467502623796463, -0.06271493434906006, 0.01653425768017769, -0.021916214376688004, 0.0016889713006094098, -0.0028199017979204655, 0.003150261240079999, 0.015550099313259125, 0.017263084650039673, -0.03571544960141182, 0.0045285592786967754, 0.040703583508729935, -0.03427877277135849, 0.002197622088715434, 0.015597703866660595, -0.011626137420535088, -0.019993595778942108, -0.025560230016708374, 0.01492355391383171, -0.018174804747104645, -0.004050576128065586, 0.06011530011892319, 0.028629081323742867, 0.04423017427325249, -0.012063446454703808, -0.0024141946341842413, -0.0033739523496478796, 0.03449554741382599, -0.02816118486225605, -0.05782000720500946, -0.03470850735902786, -0.015790196135640144, -0.06746962666511536, 0.06179935857653618, -0.0023261175956577063, -0.06100734323263168, 0.019365811720490456, 0.011500757187604904, -0.027054205536842346, 0.00301312655210495, 0.02591053396463394, -0.011350516229867935, 0.013715390115976334, -0.030949197709560394, -0.048540350049734116, -0.029964925721287727, 0.02237735316157341, 0.02211720310151577, -0.07988236099481583, -0.017613112926483154, -0.038516249507665634, -0.01406453549861908, 0.0027926969341933727, 0.020839951932430267, -0.011929422616958618, 0.0050637247040867805, 0.010620848275721073, -0.0035868294071406126, -0.06207256764173508, 0.08835406601428986, 0.0306434016674757, -0.04620270058512688, 0.008951924741268158, 0.04428603872656822, 0.058865152299404144, 0.04146646335721016, -0.006562606897205114, 0.06462612748146057, 0.013507053256034851, 0.004745712969452143, 0.022837024182081223, 0.035375580191612244, 0.004758779425173998, -0.04947680979967117, -0.0007228587637655437, 0.051821477711200714, -0.0008712275302968919, -0.0071778674609959126, 0.01081435102969408, -0.01925703138113022, -0.006918455008417368, -0.027624547481536865, 0.08957839757204056, 0.03848448395729065, 0.007215502206236124, -0.04884880408644676, -0.016469454392790794, -0.008629043586552143, 0.04630248248577118, 0.0030136285349726677, 0.015863928943872452, -0.02565944753587246, -0.04565354436635971, 0.023153742775321007, 0.016785740852355957, 0.01927013508975506, 0.05889490991830826, -0.03503761067986488, 0.003068798454478383, 0.09630215913057327, 0.04264054447412491, -0.017212247475981712, -0.005129008088260889, 0.015700258314609528, 0.03710586950182915, 0.01823492720723152, 0.0035936629865318537, 0.03280465677380562, -0.01710060052573681, -0.013704692013561726, 0.007041424512863159, 0.05046733468770981, -0.028503382578492165, 0.0014493404887616634, -0.07205667346715927, -0.05197300761938095, 0.08509095013141632, -0.008235838264226913, -0.009883838705718517, 0.04819192737340927, 0.07775017619132996, 0.03210468217730522, 0.021053802222013474, 0.016686607152223587, -0.08185990154743195, 0.05061464011669159, 0.012403865344822407, 0.018201714381575584, 0.03808146342635155, 0.020547879859805107, 0.08320899307727814, 0.03205450624227524, 0.020700225606560707, 0.055478014051914215, -0.0640796348452568, -0.08314137905836105, -0.05285853520035744, -0.0028951792046427727, 0.05607914924621582, -0.04074568673968315, 0.04655590280890465, 0.04942692071199417, 0.04239995405077934, 0.030570263043045998, -0.01177950669080019, 0.0011702784104272723, 0.025748951360583305, -0.03918677568435669, -0.04868128523230553, 0.030191950500011444, 0.034944530576467514, -0.04228370636701584, -0.02628331258893013, -0.012485446408390999, -0.02373756654560566, -0.030051730573177338, 0.0116376131772995, -0.03724183142185211, 0.030885668471455574, 0.0017177636036649346, 0.057562001049518585, -0.0053459531627595425, 0.008210215717554092, -0.03817380592226982, 0.033811427652835846, 0.027496889233589172, -0.028753142803907394, -0.00542070996016264, -0.0035504873376339674, 0.12361409515142441, 0.03723708912730217, -0.042585838586091995, -0.0655035525560379, 0.047758493572473526, -0.014267072081565857, -0.023903217166662216, 0.009185237810015678, -0.023061679676175117, -0.00004751922460854985, -0.0014540009433403611, -0.029937325045466423, -0.03657926619052887, 0.021199308335781097, -0.03816613927483559, -0.01861557736992836, 0.06368761509656906, -0.004250610712915659, 0.04973075911402702, -0.01107271108776331, -0.03387002646923065, -0.021763356402516365, -0.011923659592866898, -0.0632072165608406, -0.013504420407116413, 0.014469357207417488, -0.0001715367689030245, 0.02103777416050434, -0.03779689222574234, -0.0075340550392866135, -0.03763674944639206, -0.04844934120774269, 0.04941072314977646, 0.03409548103809357, 0.060013700276613235, -0.006885068025439978, 0.03809409588575363, -0.0004883730434812605, 0.025041062384843826, -0.031947627663612366, -0.04588305577635765, -0.049756113439798355, -0.02046738751232624, 0.008406629785895348, 0.01786591112613678, 0.019896024838089943, 0.01902085170149803, 0.009234108962118626, 0.009684468619525433, 0.012690188363194466, 0.015061082318425179, 0.010180080309510231, -0.007988782599568367, -0.0020893646869808435, -0.020245660096406937, -0.005350193940103054, 0.05874798446893692, -0.035676009953022, -0.03814122453331947, 0.011312408372759819, -0.046056367456912994, 0.0241096094250679, -0.06224849075078964, -0.02908046543598175, 0.025644786655902863, 0.014349236153066158, 0.04007617011666298, -0.003772772615775466, 0.014474483206868172, 0.05780452862381935, 0.006696096155792475, 0.004089348018169403, 0.01143062487244606, 0.0030342384707182646, 0.054166074842214584, -0.010975193232297897, 0.02243157848715782, 0.05179161578416824, -0.003420482389628887, 0.009514648467302322, -0.05583265796303749, 0.016265923157334328, -0.020736979320645332, -0.29034802317619324, 0.029711127281188965, 0.015688562765717506, -0.010537393391132355, 0.03261048346757889, -0.03198772296309471, -0.019905321300029755, -0.03044966794550419, -0.019114527851343155, 0.009975196793675423, -0.0012117803562432528, -0.028812257573008537, -0.02260514721274376, 0.02098911628127098, 0.006450016051530838, 0.01850392110645771, -0.0011776136234402657, -0.03366965427994728, -0.0032650718931108713, 0.022222476080060005, 0.009113164618611336, -0.08038769662380219, 0.00023192624212242663, 0.024389106780290604, 0.032262641936540604, 0.02473670057952404, -0.0742029994726181, 0.027446329593658447, -0.05192985385656357, -0.03196435049176216, 0.025620145723223686, -0.022692248225212097, -0.0024819241371005774, -0.016794545575976372, -0.02526199258863926, -0.016003038734197617, 0.04980257898569107, -0.0069258082658052444, 0.03810995817184448, 0.015767566859722137, -0.03069157712161541, -0.018075037747621536, -0.014889448881149292, 0.0232633575797081, 0.08758772909641266, -0.008077402599155903, -0.06302966922521591, 0.012580144219100475, -0.039056356996297836, 0.049943044781684875, -0.01547770481556654, -0.057545922696590424, -0.021785346791148186, 0.02031443454325199, -0.015348527580499649, 0.006480845157057047, 0.004878866486251354, -0.024673277512192726, -0.044220149517059326, -0.028971362859010696, 0.031044013798236847, -0.028558889403939247, -0.03141767904162407, -0.014785077422857285, 0.008001584559679031, -0.106792151927948, -0.05005444213747978, -0.016721945255994797, 0.09197653830051422, 0.05008729174733162, -0.007663755677640438, 0.026258321478962898, -0.019551478326320648, -0.12513676285743713, 0.0008295029401779175, -0.0042189196683466434, 0.010592596605420113, 0.006146501284092665, -0.0021630784031003714, 0.06125697121024132, -0.021618347615003586, -0.030084388330578804, 0.03316374868154526, 0.014297236688435078, 0.029902653768658638, -0.04028455168008804, 0.013242148794233799, 0.011728883720934391, -0.01680336520075798, 0.011037628166377544, 0.05729912966489792, -0.06820638477802277, -0.018032865598797798, -0.009591390378773212, -0.03990183770656586, 0.05525147169828415, 0.005552645772695541, 0.01948735862970352, 0.010119003243744373, 0.0447520911693573, 0.01564028300344944, -0.037837915122509, 0.00756327947601676, -0.04398730397224426, -0.006789847742766142, -0.019248293712735176, -0.036598123610019684, 0.014449430629611015, 0.0355864092707634, 0.029328592121601105, -0.027633734047412872, -0.05131274089217186, 0.0045583234168589115, -0.0646607056260109, -0.03425800800323486, -0.015544419176876545, 0.004794620908796787, -0.0022384547628462315, 0.015063117258250713, -0.05557381734251976, -0.048997990787029266, -0.006879882421344519, 0.014661592431366444, -0.016428682953119278, -0.05898156389594078, -0.01009452622383833, -0.00020573318761307746, -0.010355271399021149, 0.022622000426054, -0.013001149520277977, -0.02099664695560932, 0.019352596253156662, 0.02906634286046028, -0.009316032752394676, 0.038728658109903336, -0.025786861777305603, -0.04376471787691116, -0.027433454990386963, 0.02396499179303646, -0.008122999221086502, -0.01385185495018959, 0.02529877796769142, 0.04321713745594025, 0.03075264021754265, 0.04602555185556412, 0.006708442233502865, 0.034129463136196136, -0.0007146160933189094, 0.021206635981798172, -0.009366205893456936, 0.017939969897270203, -0.0521104522049427, 0.03150123357772827, -0.04110685735940933, -0.03735119476914406, -0.017238358035683632, 0.0387461893260479, -0.0075424653477966785, -0.013319697231054306, -0.05888069421052933, 0.009902102872729301, -0.03655066713690758, -0.016835937276482582, -0.0056942836381495, 0.010060022585093975, 0.06102021783590317, 0.017631497234106064, 0.035219691693782806, -0.006793363019824028, -0.026400065049529076, 0.006327795796096325, -0.010566811077296734, -0.038257796317338943, -0.015326468273997307, 0.00029794874717481434, -0.007119971793144941, 0.005039619747549295, 0.03889477252960205, 0.010429336689412594, 0.026438020169734955, 0.0016161625972017646, -0.027330081909894943, 0.018420977517962456, 0.012952121905982494, 0.051038023084402084, 0.03719724342226982, 0.002584068337455392, -0.0033782310783863068, 0.006239557638764381, -0.012356498278677464, -0.0315658338367939, -0.009667071513831615, -0.010462689213454723, -0.0054047610610723495, -0.021909847855567932, -0.06237297132611275, 0.054713036864995956, 0.02036692202091217, -0.028405915945768356, -0.0064055416733026505, -0.007650300394743681, -0.00028282077983021736, -0.019663937389850616, 0.08014018088579178, 0.06841116398572922, -0.06995012611150742, -0.004861044697463512, 0.0015855502570047975, 0.0014851460000500083, -0.008936358615756035, 0.012358772568404675, -0.04583331197500229, -0.0034999696072191, -0.017381591722369194, 0.018771452829241753, -0.028814880177378654, 0.01374693214893341, -0.019116288051009178, -0.0013742436422035098, -0.01045093685388565, 0.023231266066432, -0.00957099162042141, -0.0013719771523028612, 0.0005052231717854738, -0.026900514960289, 0.006561840884387493, -0.027973152697086334, 0.0027222016360610723, 0.0160532183945179, -0.024929268285632133, 0.022305481135845184, -0.040781982243061066, -0.0006571435369551182, 0.040083568543195724, -0.029610415920615196, -0.0016449318500235677, -0.03324170783162117, 0.013108497485518456, -0.002698079217225313, 0.03889373317360878, -0.022121785208582878, -0.03204053267836571, -0.03237045183777809, 0.014476761221885681, -0.0298177357763052, -0.009099217131733894, -0.02334696240723133, -0.022440575063228607, 0.055938903242349625, 0.029606936499476433, -0.0026895792689174414, 0.010164177045226097, -0.015603723004460335, -0.028925780206918716, 0.04291919991374016, -0.026647567749023438, -0.014974470250308514, -0.018532946705818176, -0.0691407322883606, 0.03325341269373894, -0.0035452719312161207, 0.034687310457229614, -0.05118826404213905, 0.03743841499090195, 0.01883644424378872, -0.010003731586039066, 0.03718119487166405, -0.01381525956094265, 0.04547765851020813, -0.032994091510772705, -0.022357363253831863, -0.08052528649568558, -0.0200062058866024, 0.025471825152635574, 0.003881444688886404, -0.004629833623766899, 0.010932167991995811, -0.05095641687512398, 0.03433234244585037, -0.06767662614583969, -0.04535260796546936, 0.05516986548900604, -0.024952048435807228, -0.001712992088869214, 0.008045055903494358, -0.03475873917341232, 0.003307961393147707, 0.03731728717684746, -0.00907933060079813, -0.027910945937037468, -0.01144677959382534, 0.04366321116685867, 0.016746336594223976, 0.04460947960615158, -0.010346577502787113, -0.033172957599163055, 0.07058078050613403, -0.005492695607244968, 0.019868923351168633, 0.042474277317523956, -0.014242938719689846, 0.042222313582897186, 0.027693871408700943, 0.0015648884000256658, 0.037826839834451675, 0.019500846043229103, -0.017740150913596153, -0.06320277601480484, 0.012505502440035343, 0.011237744241952896, -0.021933378651738167, -0.05512649565935135, 0.06394606828689575, 0.008980839513242245, -0.04380481690168381, -0.06208643317222595, 0.03542162477970123, -0.020373506471514702, 0.0001959174551302567, -0.01940348371863365, -0.02031223103404045, -0.052465636283159256, 0.05136147886514664, 0.0071679637767374516, 0.018785949796438217, 0.050994545221328735, 0.023273900151252747, -0.013706679455935955, 0.011521895416080952, 0.07426393777132034, 0.08496662229299545, 0.023960156366229057, 0.015435898676514626, 0.07475747913122177, -0.015869004651904106, -0.03855030611157417, -0.00960111990571022, -0.005982993636280298, -0.02883339673280716, -0.03260301798582077, 0.0015150179388001561, 0.06595450639724731, -0.012891043908894062, 0.06897438317537308, -0.014889472164213657, -0.017001843079924583, 0.019375475123524666, 0.0031000415328890085, 0.032229647040367126, 0.044320326298475266, -0.025236351415514946, 0.030913405120372772, -0.01148978155106306, -0.03732840344309807, 0.02236458659172058, -0.012702406384050846, 0.005220402497798204, 0.0018671387806534767, -0.013489531353116035, 0.02535390481352806, -0.0016457586316391826, 0.02529621496796608, 0.07238945364952087, -0.046795785427093506, 0.006456289906054735, -0.022104235365986824, 0.000041578463424229994, 0.01486515998840332, 0.030506301671266556, -0.024161972105503082, -0.03776760771870613, -0.013085492886602879, -0.06252758949995041, -0.009040281176567078, -0.03952192887663841, -0.044794730842113495, 0.013699918985366821, -0.022569067776203156, 0.01579350419342518, 0.03711653873324394, -0.0058937594294548035, -0.044716957956552505, -0.043634235858917236, -0.04373453930020332, -0.03047040104866028, -0.0753721222281456, -0.011379270814359188, 0.02304716780781746, -0.01775449700653553, -0.03519979491829872, -0.028194362297654152, -0.0352330207824707, -0.008409612812101841, 0.02961283177137375, -0.03989442065358162, -0.07429604232311249, 0.01709633879363537, 0.0379074364900589, 0.027886435389518738, 0.023897122591733932, 0.0572674497961998, -0.0007310111541301012, -0.020428692921996117, -0.028950272127985954, 0.0168926864862442, 0.0393492765724659, -0.008520586416125298, -0.0012433110969141126, -0.1038227453827858, 0.02602568455040455, -0.005376614164561033, -0.015999270603060722, -0.06626518815755844, 0.024257777258753777, 0.03799746558070183, -0.011278757825493813, 0.05648622661828995, -0.03153558075428009, 0.005350638180971146, -0.05468839406967163, -0.030295535922050476, -0.01443359162658453, -0.019486600533127785, 0.04719925299286842, -0.02021965943276882, 0.0768299251794815, 0.04023832455277443, -0.015593654476106167, -0.035143621265888214, -0.01301413495093584, -0.02989698201417923, 0.012578328140079975, -0.036675211042165756, -0.03912784531712532, -0.04285356402397156, -0.10609902441501617, -0.015126317739486694, 0.03861275687813759, -0.03736725077033043, -0.0341184139251709, -0.013113245368003845, 0.04241719841957092, -0.00632804911583662, 0.019481118768453598, -0.06546661257743835, 0.015303594060242176, -0.02594919502735138, -0.01115215104073286, -0.03341846168041229, 0.03236592188477516, -0.0006877321284264326, 0.006930177565664053, 0.03690166026353836, -0.04592599347233772, -0.0013690600171685219, -0.011057543568313122, 0.025684816762804985, 0.05308865010738373, 0.010706283152103424, -0.015547418035566807 ]
[ -0.0916571393609047, -0.036912254989147186, -0.051932442933321, -0.058075763285160065, 0.0750691220164299, -0.030049700289964676, -0.02081369422376156, 0.006533911917358637, 0.014107789844274521, -0.01250999141484499, -0.0032791909761726856, -0.07793822139501572, 0.008621112443506718, -0.025632688775658607, 0.06665711104869843, 0.010656283237040043, 0.023404458537697792, -0.05915706977248192, -0.0318802073597908, 0.040003303438425064, -0.027728207409381866, -0.028865447267889977, -0.043915167450904846, -0.04680190607905388, 0.00005378839705372229, 0.007989595644176006, 0.0460832454264164, -0.027827659621834755, -0.0032991385087370872, -0.21894700825214386, 0.01633436791598797, -0.004424767568707466, 0.011941343545913696, -0.013405702076852322, 0.024447452276945114, -0.002690311288461089, 0.023583929985761642, 0.012892408296465874, -0.012536341324448586, 0.026360077783465385, 0.007459296844899654, 0.013483300805091858, -0.039872922003269196, -0.015953626483678818, 0.054853301495313644, -0.012251828797161579, -0.010751108638942242, -0.012273643165826797, -0.0040434072725474834, -0.0031294929794967175, -0.06741401553153992, 0.02531646378338337, -0.013801653869450092, -0.02053752914071083, -0.0036355808842927217, 0.02651643566787243, 0.041042909026145935, 0.06263501197099686, 0.012001103721559048, 0.019923504441976547, 0.042227454483509064, 0.006270151119679213, -0.12262579798698425, 0.10094983130693436, 0.012507021427154541, 0.061390988528728485, -0.015232527628540993, -0.035391516983509064, -0.0006981135811656713, 0.08657389879226685, -0.013513361103832722, -0.03094496577978134, -0.017958810552954674, 0.047862421721220016, 0.01377277821302414, -0.01764783449470997, 0.0032715604174882174, 0.020622683688998222, -0.01499214954674244, -0.026308968663215637, -0.05029748007655144, -0.011717121116816998, -0.051200926303863525, -0.02663588337600231, -0.05133495479822159, 0.030063051730394363, -0.011545480228960514, 0.03956611081957817, -0.00917544774711132, 0.010542402975261211, 0.03679670765995979, 0.015606478787958622, 0.06523540616035461, -0.0019634272903203964, -0.09763996303081512, 0.00743471272289753, 0.0111497538164258, 0.01825147122144699, 0.011982771568000317, 0.4228699803352356, -0.0019139692885801196, -0.04001050814986229, 0.041578859090805054, 0.004682872444391251, 0.003987823147326708, 0.019135355949401855, -0.00446257833391428, -0.03873478248715401, 0.033974822610616684, -0.019233515486121178, 0.00031232298351824284, -0.02812908962368965, 0.07425973564386368, -0.03891003504395485, 0.002586305607110262, 0.014786197803914547, -0.011710435152053833, 0.03932762145996094, -0.023378407582640648, -0.0035383726935833693, -0.02498110756278038, 0.010242164134979248, 0.03545256331562996, 0.018173187971115112, 0.028537042438983917, -0.005134274251759052, 0.01805335097014904, 0.041150640696287155, 0.06147366017103195, 0.020059090107679367, 0.029765482991933823, -0.01189618930220604, -0.07015863060951233, -0.007653628475964069, 0.019602440297603607, 0.01639496348798275, 0.028338147327303886, -0.02720736339688301, 0.00411806209012866, 0.021209582686424255, -0.02798919938504696, -0.022851459681987762, 0.05115079507231712, 0.010452836751937866, -0.06216549873352051, 0.1088276281952858, 0.03583727031946182, -0.04487892612814903, -0.0247906856238842, -0.0415039025247097, 0.00012021752627333626, 0.03290657699108124, 0.02396554686129093, -0.03724009543657303, 0.00463274959474802, 0.01849062368273735, 0.06486285477876663, -0.01999141089618206, -0.09684334695339203, -0.01983378827571869, -0.023370368406176567, -0.040903713554143906, -0.0047142584808170795, 0.034770578145980835, 0.040896736085414886, -0.10728731751441956, -0.013587077148258686, 0.033565446734428406, 0.024461379274725914, -0.051584307104349136, -0.006838639732450247, 0.0003420106368139386, -0.060612376779317856, -0.008815591223537922, 0.034178271889686584, -0.044300876557826996, -0.03368370607495308, 0.009790142998099327, 0.04959750175476074, -0.005093743093311787, -0.029688291251659393, -0.012387723661959171, -0.037875451147556305, -0.00031399211729876697, -0.0586935430765152, -0.08891291916370392, -0.06962703168392181, 0.017816483974456787, 0.0013998870272189379, -0.021257715299725533, -0.03631800785660744, -0.0019132173620164394, -0.08131328225135803, 0.08697126060724258, -0.01571757346391678, -0.029192710295319557, 0.012569067999720573, 0.03202972933650017, 0.009667135775089264, -0.04096085950732231, 0.01219872385263443, 0.03421374410390854, -0.005262670572847128, 0.03238070011138916, -0.06286851316690445, 0.06065148115158081, 0.031788550317287445, -0.05075962096452713, 0.05455945432186127, 0.020597320050001144, -0.027508413419127464, -0.019776340574026108, -0.039295509457588196, 0.02516283094882965, -0.020873596891760826, 0.002732291352003813, 0.01008034311234951, -0.02749309502542019, 0.025506189092993736, 0.03507356718182564, -0.008342965506017208, -0.0185382142663002, -0.03325050324201584, -0.3474377691745758, -0.05002892389893532, -0.05183980613946915, -0.001097524189390242, 0.019816502928733826, -0.03397369012236595, 0.018109207972884178, -0.019045716151595116, 0.03257574513554573, 0.023501528427004814, 0.0498766228556633, -0.028141994029283524, 0.0004615056386683136, -0.10391175001859665, -0.009838268160820007, 0.015946151688694954, -0.017598245292901993, -0.035194311290979385, -0.025832761079072952, 0.008312806487083435, 0.011756149120628834, -0.019420752301812172, -0.06487363576889038, -0.02054591290652752, 0.02386491373181343, -0.03348531574010849, 0.11986492574214935, 0.044489070773124695, 0.07856860756874084, -0.05390770733356476, 0.0630621612071991, -0.0017241101013496518, -0.008920709602534771, -0.06912218779325485, 0.017626024782657623, -0.0337214395403862, 0.015812527388334274, 0.0022968712728470564, 0.02408461645245552, -0.03997712582349777, -0.06667567789554596, 0.002363259205594659, -0.031840093433856964, -0.0701899603009224, -0.03686101734638214, 0.02489081211388111, -0.01140701025724411, -0.02385798655450344, -0.045518144965171814, 0.0869746282696724, 0.02540300413966179, 0.005554202012717724, 0.027854273095726967, 0.00970575399696827, 0.012506101280450821, -0.032648198306560516, -0.05391160398721695, -0.010004391893744469, 0.022878121584653854, -0.0028537155594676733, 0.03803463652729988, 0.03030562587082386, 0.02724182792007923, -0.05257757753133774, 0.007561937905848026, -0.0070535289123654366, 0.005533711984753609, 0.0046754335053265095, 0.05833686888217926, -0.04149153083562851, -0.015247993171215057, 0.08816052973270416, 0.020486770197749138, 0.05328214913606644, 0.0409356988966465, 0.04612332955002785, 0.014983456581830978, 0.008021957240998745, 0.0027580969035625458, 0.014340339228510857, 0.0533265620470047, -0.01414466928690672, 0.05292508006095886, -0.03693026304244995, -0.0018581240437924862, 0.04734945669770241, 0.01653994247317314, -0.03877338394522667, 0.06675518304109573, 0.027956794947385788, -0.01344915572553873, -0.0011653137626126409, -0.05473151057958603, -0.05997082218527794, 0.05140892416238785, 0.005547565873712301, -0.2699022889137268, 0.016523130238056183, 0.0487356036901474, 0.0644703283905983, 0.026129016652703285, -0.006004979833960533, 0.05794234573841095, -0.04513204097747803, 0.031050655990839005, 0.014423157088458538, 0.017293162643909454, 0.03832508251070976, -0.006761808879673481, 0.0016388047952204943, -0.0062200529500842094, -0.0126552889123559, 0.03573281317949295, 0.01478315144777298, 0.032457705587148666, 0.00007326369814109057, 0.04391035437583923, -0.02887178771197796, 0.18059605360031128, 0.019765829667448997, 0.025751924142241478, 0.038413021713495255, -0.0061896322295069695, 0.008866163901984692, 0.07002821564674377, 0.019279908388853073, -0.02640080451965332, -0.0030943190213292837, 0.035700902342796326, 0.013416387140750885, 0.03298167884349823, -0.04450050741434097, -0.04557831212878227, 0.060977037996053696, 0.004787603858858347, -0.006880377419292927, 0.014790792018175125, -0.004258771426975727, -0.04672184959053993, 0.05809534341096878, 0.04954566806554794, 0.0027456406969577074, -0.001129050157032907, -0.012005362659692764, -0.04677876457571983, 0.00649274280294776, -0.028266239911317825, -0.05553549528121948, -0.002222328446805477, -0.01968574710190296, -0.005397620145231485, 0.06632956862449646, 0.033751681447029114, 0.0146265784278512, 0.058499131351709366, 0.007102836389094591, -0.005156103055924177, -0.0429709367454052, 0.08342413604259491, 0.04776490107178688, 0.029427090659737587 ]
[ 0.011933466419577599, -0.004767043981701136, -0.04711238667368889, -0.0034671458415687084, 0.021497776731848717, 0.02732706442475319, 0.04780818149447441, 0.012072336860001087, -0.0023773217108100653, 0.010023019276559353, -0.029923200607299805, 0.0076020280830562115, 0.006335459183901548, 0.00030614971183240414, 0.006577627267688513, -0.04628695547580719, 0.019114719703793526, -0.01640830747783184, 0.032946694642305374, 0.004440587013959885, -0.03958594426512718, -0.0007892798748798668, 0.018608979880809784, 0.003120305249467492, -0.03645842522382736, 0.019948743283748627, -0.03305458277463913, 0.019033970311284065, 0.0012731084134429693, -0.13501761853694916, -0.021131375804543495, -0.04837479069828987, -0.0069585018791258335, 0.02338595688343048, -0.018045010045170784, -0.021756283938884735, -0.03727426007390022, 0.0014282696647569537, -0.0259870495647192, -0.03752871975302696, 0.01527379360049963, -0.03882233425974846, -0.03558440878987312, 0.03924659639596939, -0.007819846272468567, -0.02158123068511486, -0.04204138368368149, 0.016813676804304123, -0.00012734699703287333, 0.012378793209791183, -0.08242476731538773, -0.02296323888003826, -0.01010978128761053, 0.011898832395672798, -0.0041787330992519855, 0.02717883512377739, -0.013449291698634624, 0.038480985909700394, 0.016497494652867317, 0.007628524210304022, 0.026375044137239456, -0.02786964178085327, -0.03550457954406738, -0.018612811341881752, -0.004306832794100046, -0.047588787972927094, -0.014365400187671185, 0.0022929476108402014, -0.015591076575219631, 0.03589223325252533, -0.0022611399181187153, 0.04414033889770508, -0.04142552614212036, -0.03295455500483513, -0.009626011364161968, 0.00852154940366745, 0.0010544857941567898, 0.002838759683072567, 0.0368497408926487, 0.011882295832037926, -0.010976022109389305, -0.016378892585635185, 0.0004692462389357388, 0.003965546377003193, 0.035800203680992126, -0.0188672486692667, 0.012150983326137066, -0.018825393170118332, 0.006639610510319471, -0.03467513993382454, -0.032068297266960144, 0.036429278552532196, 0.030499190092086792, 0.03443373367190361, -0.09928461909294128, 0.02368897944688797, -0.011931853368878365, -0.016217270866036415, -0.014805869199335575, 0.8379113674163818, -0.009337147697806358, -0.010485422797501087, 0.02953418344259262, 0.028976447880268097, 0.020204339176416397, -0.016028324142098427, 0.007923893630504608, 0.00524080591276288, 0.010871410369873047, -0.019033297896385193, -0.009151007048785686, 0.03328504413366318, 0.009283710271120071, 0.008013923652470112, -0.016883986070752144, 0.01942482963204384, -0.004949667956680059, -0.014101439155638218, -0.008733157999813557, 0.006767981685698032, 0.028396684676408768, -0.014221884310245514, 0.019028576090931892, -0.015281768515706062, 0.008204585872590542, -0.14257602393627167, 0.008753087371587753, -6.50577348462595e-33, 0.04436797648668289, -0.047546740621328354, 0.011591456830501556, 0.01607348397374153, -0.001191608258523047, 0.008047915063798428, -0.0016829957021400332, 0.01986248604953289, -0.03712506964802742, -0.018500585108995438, 0.046443112194538116, -0.010497532784938812, 0.01191177312284708, -0.008489887230098248, 0.04858553037047386, 0.01185210794210434, -0.0041353292763233185, 0.04552755877375603, 0.030423417687416077, 0.007102359551936388, 0.04822368547320366, 0.0470966212451458, 0.015579717233777046, 0.015951570123434067, -0.0010009364923462272, 0.032738346606492996, 0.02140973135828972, -0.046863261610269547, -0.012080171145498753, -0.020175037905573845, -0.013697353191673756, -0.04909467697143555, 0.0027969314251095057, -0.05594472214579582, 0.022525103762745857, -0.03655681386590004, -0.03157106041908264, 0.000949770852457732, -0.012915701605379581, -0.013164564967155457, -0.023581380024552345, -0.023563219234347343, -0.034117795526981354, -0.022785108536481857, -0.057257279753685, 0.016279835253953934, 0.019663671031594276, 0.03152850642800331, -0.029648927971720695, 0.023518798872828484, 0.013187428936362267, -0.03272273764014244, 0.01067248173058033, -0.006679985672235489, -0.0013704505981877446, 0.04844091832637787, -0.0009537998121231794, 0.004054922144860029, 0.0009277459466829896, -0.03481944650411606, 0.014038758352398872, -0.012095015496015549, 0.007441768888384104, 0.013996908441185951, -0.007339964620769024, 0.015520410612225533, 0.028661813586950302, -0.010329804383218288, 0.0389459989964962, 0.010015941224992275, -0.04656795412302017, 0.029612967744469643, -0.010388871654868126, -0.03619469702243805, 0.03818650171160698, -0.020010344684123993, 0.007095562294125557, 0.006559658329933882, 0.015241638757288456, 0.01304548978805542, 0.03795026242733002, 0.0025604807306081057, -0.008612222038209438, -0.023655882105231285, -0.04352661222219467, -0.052035439759492874, 0.018026720732450485, -0.004574754275381565, -0.008137252181768417, -0.0238590519875288, 0.054796408861875534, 0.044468868523836136, 0.0034280542749911547, -0.011976819485425949, -0.01945061795413494, 6.8434761138859e-33, 0.007067271042615175, 0.0018250757129862905, -0.01934005133807659, 0.009970689192414284, 0.07307276874780655, -0.04241199791431427, 0.040864940732717514, 0.03080468438565731, -0.0033603073097765446, -0.0021115296985954046, -0.03915863484144211, -0.020063791424036026, -0.07297974079847336, -0.011111149564385414, 0.02114439383149147, -0.004759900271892548, 0.01395239494740963, -0.04268853738903999, -0.0028000252787023783, -0.01982445828616619, -0.004531624726951122, -0.0037530967965722084, 0.06107015162706375, 0.032687559723854065, -0.0059545449912548065, 0.03184744343161583, 0.009093589149415493, -0.004973545204848051, -0.003785383189097047, 0.038550619035959244, 0.007043023128062487, 0.004070248454809189, 0.0015992008848115802, 0.007699115667492151, -0.06713195890188217, 0.01854771561920643, 0.021092984825372696, 0.03951643779873848, -0.004258350469172001, -0.00880146212875843, 0.03212239593267441, 0.020545650273561478, -0.01142127625644207, -0.005071600433439016, -0.0018526611384004354, 0.025439007207751274, 0.03309899941086769, 0.008672538213431835, -0.0223549697548151, 0.017068475484848022, 0.017726687714457512, 0.011072254739701748, -0.00477042980492115, 0.030951347202062607, 0.01016208529472351, -0.02267569676041603, -0.012323576956987381, 0.019771520048379898, -0.01639418862760067, 0.014506256207823753, 0.0020190749783068895, 0.03229178488254547, -0.04593488946557045, 0.04474087059497833, -0.0017062906408682466, 0.006965321023017168, -0.06320541352033615, -0.009294859133660793, -0.027311068028211594, -0.041788406670093536, -0.007543888874351978, -0.007755529601126909, -0.00027107723872177303, 0.06370563805103302, 0.050263237208127975, -0.010261427611112595, -0.01995629258453846, -0.003010313957929611, 0.023395419120788574, 0.06053362041711807, 0.003837348660454154, 0.016710741445422173, -0.012194435112178326, -0.007961340248584747, 0.01518608070909977, 0.03313550725579262, -0.020593315362930298, -0.0012277624337002635, 0.0012306708376854658, -0.000763550924602896, -0.004593900870531797, -0.015371040441095829, -0.0019932975992560387, 0.015771901234984398, 0.028804032132029533, -1.2437206819981839e-8, -0.03685604780912399, 0.01699882373213768, -0.017084047198295593, 0.011363362893462181, -0.0033919711131602526, 0.010798458009958267, -0.005812463350594044, -0.006583241745829582, 0.04282531887292862, -0.005972953978925943, 0.03197032958269119, -0.012729473412036896, 0.024243755266070366, 0.033121105283498764, 0.0005042339325882494, -0.02074240706861019, 0.02483452670276165, -0.03308260068297386, 0.002673522336408496, 0.002468423219397664, 0.0125903794541955, 0.05599178373813629, 0.021026955917477608, -0.009855401702225208, -0.016301235184073448, 0.00879690796136856, -0.015839217230677605, -0.10047908127307892, -0.02025952935218811, 0.00765199726447463, -0.020808158442378044, -0.025860268622636795, 0.011114262975752354, -0.02756904438138008, -0.003065916011109948, -0.012124862521886826, 0.01411166600883007, 0.012386385351419449, 0.02377796173095703, 0.017638862133026123, -0.04475698247551918, 0.00029002263909205794, 0.02370244823396206, -0.026729276403784752, -0.01235661469399929, 0.006660290528088808, -0.015768440440297127, 0.024403177201747894, 0.028189461678266525, -0.0419720783829689, -0.006114128511399031, -0.01410888135433197, -0.012743232771754265, -0.0011324946535751224, 0.01569674350321293, 0.008906574919819832, 0.014313564635813236, -0.01772303134202957, -0.004856734070926905, -0.02265065163373947, 0.027791112661361694, -0.03056192584335804, 0.005235388875007629, -0.0058983308263123035 ]
duckdb-diff-parquet-schema
https://markhneedham.com/blog/2022/11/17/duckdb-diff-parquet-schema
false
2022-11-14 02:44:37
Apache Pinot: Unable to render templates on ingestion job spec template file
[ "pinot" ]
[ "pinot" ]
I was recently trying to ingest some JSON files into Apache Pinot from an S3 bucket and came across an exception when trying to pass a variable to the LaunchDataIngestionJob command I was using the following ingestion job specification: .config/job-spec.yml [source, yaml] ---- executionFrameworkSpec: name: 'standalone' segmentGenerationJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentGenerationJobRunner' segmentTarPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner' segmentUriPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentUriPushJobRunner' jobType: SegmentCreationAndTarPush inputDirURI: 's3://marks-st-cloud-bucket/events/' includeFileNamePattern: 'glob:**/*.json' outputDirURI: '/data' overwriteOutput: true pinotFSSpecs: - scheme: s3 className: org.apache.pinot.plugin.filesystem.S3PinotFS configs: region: 'eu-west-2' - scheme: file className: org.apache.pinot.spi.filesystem.LocalPinotFS recordReaderSpec: dataFormat: 'json' className: 'org.apache.pinot.plugin.inputformat.json.JSONRecordReader' tableSpec: tableName: 'events' pinotClusterSpecs: - controllerURI: 'http://${PINOT_CONTROLLER}:9000' ---- This job spec takes in the `PINOT_CONTROLLER` variable. I initially ran the job like this: [source, bash] ---- docker run \ --network ingest-json-files-s3 \ -v $PWD/config:/config \ -e AWS_ACCESS_KEY_ID=abc \ -e AWS_SECRET_ACCESS_KEY=def \ apachepinot/pinot:0.11.0 LaunchDataIngestionJob \ -jobSpecFile /config/job-spec.yml \ -values PINOT_CONTROLLER pinot-controller ---- Which resulted in the following error: [source, text] ---- 2022/11/10 11:49:43.030 ERROR [LaunchDataIngestionJobCommand] [main] Got exception to generate IngestionJobSpec for data ingestion job - java.lang.RuntimeException: Unable to render templates on ingestion job spec template file - [/config/job-spec.yml] with propertiesMap - [[]]. at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.getSegmentGenerationJobSpec(IngestionJobLauncher.java:85) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.apache.pinot.tools.admin.command.LaunchDataIngestionJobCommand.execute(LaunchDataIngestionJobCommand.java:111) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.apache.pinot.tools.Command.call(Command.java:33) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.apache.pinot.tools.Command.call(Command.java:29) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at picocli.CommandLine.executeUserObject(CommandLine.java:1953) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at picocli.CommandLine.access$1300(CommandLine.java:145) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at picocli.CommandLine$RunLast.handle(CommandLine.java:2346) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at picocli.CommandLine$RunLast.handle(CommandLine.java:2311) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at picocli.CommandLine.execute(CommandLine.java:2078) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.apache.pinot.tools.admin.PinotAdministrator.execute(PinotAdministrator.java:165) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.apache.pinot.tools.admin.PinotAdministrator.main(PinotAdministrator.java:196) [pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] Caused by: groovy.lang.MissingPropertyException: No such property: PINOT_CONTROLLER for class: SimpleTemplateScript1 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:66) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:51) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:310) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at SimpleTemplateScript1.run(SimpleTemplateScript1.groovy:1) ~[?:?] at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:181) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:193) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.apache.pinot.spi.utils.GroovyTemplateUtils.renderTemplate(GroovyTemplateUtils.java:45) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.getSegmentGenerationJobSpec(IngestionJobLauncher.java:82) ~[pinot-all-0.11.0-jar-with-dependencies.jar:0.11.0-1b4d6b6b0a27422c1552ea1a936ad145056f7033] ... 12 more java.lang.RuntimeException: Unable to render templates on ingestion job spec template file - [/config/job-spec.yml] with propertiesMap - [[]]. at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.getSegmentGenerationJobSpec(IngestionJobLauncher.java:85) at org.apache.pinot.tools.admin.command.LaunchDataIngestionJobCommand.execute(LaunchDataIngestionJobCommand.java:111) at org.apache.pinot.tools.Command.call(Command.java:33) at org.apache.pinot.tools.Command.call(Command.java:29) at picocli.CommandLine.executeUserObject(CommandLine.java:1953) at picocli.CommandLine.access$1300(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352) at picocli.CommandLine$RunLast.handle(CommandLine.java:2346) at picocli.CommandLine$RunLast.handle(CommandLine.java:2311) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179) at picocli.CommandLine.execute(CommandLine.java:2078) at org.apache.pinot.tools.admin.PinotAdministrator.execute(PinotAdministrator.java:165) at org.apache.pinot.tools.admin.PinotAdministrator.main(PinotAdministrator.java:196) Caused by: groovy.lang.MissingPropertyException: No such property: PINOT_CONTROLLER for class: SimpleTemplateScript1 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:66) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:51) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:310) at SimpleTemplateScript1.run(SimpleTemplateScript1.groovy:1) at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:181) at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:193) at org.apache.pinot.spi.utils.GroovyTemplateUtils.renderTemplate(GroovyTemplateUtils.java:45) at org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher.getSegmentGenerationJobSpec(IngestionJobLauncher.java:82) ... 12 more ---- I was kinda confused about this since I thought I had passed in this parameter. It turns out that the library used to parse command line arguments expects variables to be specified in the format `-values variable=value` rather than `-values variable value` So I fixed my command to read like the following: [source, bash] ---- docker run \ --network ingest-json-files-s3 \ -v $PWD/config:/config \ -e AWS_ACCESS_KEY_ID=abc \ -e AWS_SECRET_ACCESS_KEY=def \ apachepinot/pinot:0.11.0 LaunchDataIngestionJob \ -jobSpecFile /config/job-spec.yml \ -values PINOT_CONTROLLER=pinot-controller ---- And now Pinot is happy with me again :)
In this post we'll learn about the render templates error when running an Apache Pinot ingestion job spec.
uploads/2022/11/render-templates-banner.png
[ -0.016258085146546364, -0.005476588383316994, -0.052412327378988266, 0.046152930706739426, 0.07849950343370438, 0.03983115777373314, 0.022715438157320023, 0.04662559553980827, -0.02259085141122341, -0.02137860469520092, -0.024811021983623505, -0.02801603451371193, -0.057102084159851074, 0.020871682092547417, -0.012842892669141293, 0.05854202061891556, 0.08520698547363281, -0.009298430755734444, 0.023310886695981026, -0.005443444009870291, 0.034214384853839874, 0.036484189331531525, 0.024586867541074753, 0.029088910669088364, 0.01917419768869877, 0.016666321083903313, -0.014975599013268948, 0.013354608789086342, -0.04507767781615257, 0.00023693914408795536, -0.006271543446928263, 0.011933058500289917, 0.020174425095319748, -0.011459236033260822, 0.005657907109707594, -0.008997381664812565, -0.00890339259058237, -0.019061939790844917, 0.0060227178037166595, 0.040904201567173004, -0.055089373141527176, 0.02444322220981121, -0.007832258939743042, -0.0061306823045015335, -0.005573934409767389, 0.018683310598134995, -0.04050165042281151, 0.017387622967362404, -0.000329444941598922, -0.0034237417858093977, -0.08406797796487808, 0.03182241693139076, -0.042191796004772186, -0.01463767234236002, 0.010699454694986343, 0.028700871393084526, 0.02108691819012165, -0.06324231624603271, 0.041169002652168274, -0.048912908881902695, -0.030700551345944405, -0.007770761381834745, -0.0022925110533833504, -0.007915318012237549, 0.0393083319067955, -0.01626703515648842, 0.01577743887901306, 0.056090276688337326, -0.05272369459271431, -0.04280142858624458, 0.0010004972573369741, -0.010799504816532135, -0.015483362600207329, -0.0009516140562482178, 0.01887127384543419, -0.06586601585149765, -0.015902115032076836, 0.05722551792860031, 0.0031060287728905678, 0.056768748909235, -0.023208918049931526, -0.019643401727080345, 0.026057254523038864, 0.000027513320674188435, 0.004732050467282534, -0.03340942785143852, -0.04068668186664581, -0.013599459081888199, -0.028450066223740578, 0.07151495665311813, 0.022375475615262985, -0.035002920776605606, 0.0015378098469227552, 0.006202307064086199, -0.0011375832837074995, 0.02666812762618065, 0.015355236828327179, -0.01273135095834732, -0.01757183112204075, -0.007087130099534988, -0.05685308948159218, 0.02048325352370739, 0.018793342635035515, 0.04025821387767792, -0.08196745812892914, -0.02004217356443405, -0.02817198634147644, -0.02317032590508461, -0.006423689890652895, -0.0019844286143779755, -0.022075114771723747, 0.018137507140636444, -0.03625265881419182, 0.016097156330943108, -0.074398472905159, 0.08295495808124542, 0.031760524958372116, -0.040662702172994614, 0.053994763642549515, 0.008479734882712364, 0.0674014687538147, 0.022100022062659264, -0.01864861324429512, 0.07312681525945663, -0.00839354656636715, 0.03137541562318802, -0.017778364941477776, 0.025499118492007256, 0.027958331629633904, -0.07553091645240784, -0.03761805221438408, 0.04491031914949417, 0.056785669177770615, -0.010076825506985188, -0.004672851413488388, -0.02384861372411251, -0.018602564930915833, -0.017177078872919083, 0.04755081981420517, 0.022538866847753525, -0.025975773110985756, -0.0018974948907271028, 0.012617835775017738, -0.03497705236077309, 0.04318531975150108, 0.03296390548348427, -0.006196131929755211, -0.04541710391640663, -0.05016893893480301, 0.03166474029421806, 0.032464947551488876, 0.024369725957512856, 0.05486144497990608, -0.028816303238272667, -0.003569930326193571, 0.07561574131250381, -0.00011308666580589488, 0.016346653923392296, -0.025863852351903915, -0.008737561292946339, 0.060751188546419144, 0.022230636328458786, 0.01339610107243061, 0.04238298907876015, 0.010844827629625797, -0.026615524664521217, 0.005858526565134525, 0.038120534271001816, -0.029830653220415115, 0.015407918952405453, -0.058527182787656784, -0.05601946637034416, 0.05140497162938118, -0.043839748948812485, -0.005529055837541819, 0.010728261433541775, 0.05504242703318596, -0.003747014794498682, 0.031251486390829086, 0.038640961050987244, -0.06701123714447021, 0.0566985048353672, 0.007743795868009329, 0.0305536650121212, 0.008789833635091782, -0.0014995355159044266, 0.06306619197130203, 0.014291253872215748, 0.00830546859651804, 0.04353001341223717, -0.09410811215639114, -0.11246710270643234, -0.018435612320899963, 0.0059212855994701385, 0.05142425373196602, -0.009485406801104546, -0.008135666139423847, 0.04472637176513672, 0.03193078190088272, -0.005442795809358358, -0.011910264380276203, 0.01281658560037613, 0.023646922782063484, -0.08099914342164993, -0.056774940341711044, 0.029637714847922325, 0.02852940373122692, -0.025911469012498856, -0.037034645676612854, 0.046640731394290924, -0.04819455370306969, 0.013075994327664375, 0.04569808393716812, -0.036643337458372116, 0.07350216060876846, 0.017282530665397644, 0.028602974489331245, -0.01279006153345108, 0.06337419897317886, -0.05251965671777725, 0.040443696081638336, 0.006713561713695526, -0.022055640816688538, -0.008869755081832409, -0.005228331312537193, 0.12060650438070297, 0.07604897767305374, 0.016330663114786148, -0.03461581841111183, 0.038988299667835236, 0.013638049364089966, -0.07386432588100433, 0.0005912035703659058, -0.008898429572582245, -0.022123252972960472, 0.03578195720911026, -0.049466680735349655, 0.02519516460597515, 0.0062551661394536495, -0.035322386771440506, 0.0010076677426695824, 0.07067566365003586, -0.03235508129000664, 0.05380295589566231, 0.00832640565931797, -0.0005969293415546417, -0.0008502774289809167, -0.03288835659623146, -0.05133141949772835, -0.03180127218365669, -0.013311542570590973, -0.008217407390475273, 0.03353532776236534, -0.028545083478093147, -0.032459087669849396, -0.03016737475991249, -0.054755907505750656, 0.020931070670485497, 0.03858424723148346, 0.06697406619787216, -0.0389292947947979, 0.04137244448065758, -0.05756881833076477, 0.01611831970512867, -0.026062622666358948, -0.037545859813690186, -0.017254425212740898, 0.034452930092811584, 0.0062192585319280624, 0.024124378338456154, 0.017757808789610863, -0.017961718142032623, 0.019941750913858414, 0.004410733003169298, -0.0004903925582766533, -0.017341822385787964, 0.01109040342271328, 0.019505372270941734, -0.014039884321391582, -0.02479325234889984, 0.0038181855343282223, 0.018984783440828323, -0.0439717173576355, 0.012848987244069576, 0.009760978631675243, -0.06784452497959137, 0.024065954610705376, -0.05269358679652214, -0.06745687872171402, -0.026748819276690483, 0.019510218873620033, 0.001458909478969872, 0.01844005100429058, -0.014304937794804573, 0.03671717643737793, -0.023519860580563545, 0.008829997852444649, 0.03678859770298004, 0.021503634750843048, 0.03810930624604225, -0.0031209930311888456, 0.05227123200893402, 0.003557926043868065, -0.0028843029867857695, -0.02190077118575573, -0.0317692868411541, 0.020036153495311737, -0.04835616052150726, -0.27958449721336365, 0.054157909005880356, 0.0036079022102057934, -0.00475847814232111, 0.022402821108698845, -0.008892294950783253, -0.0017354136798530817, -0.02589278854429722, -0.0008268122328445315, 0.031860288232564926, -0.012195535935461521, -0.020410683006048203, -0.005066379439085722, 0.023739654570817947, -0.004622895270586014, 0.010337983258068562, -0.005237713921815157, -0.07775977998971939, 0.02240472100675106, 0.0009269625297747552, -0.0013687796890735626, -0.04210524260997772, -0.009453642182052135, 0.03380702808499336, 0.038284409791231155, 0.029198909178376198, -0.05042460188269615, 0.07308464497327805, -0.03255847468972206, -0.04517921432852745, 0.01732303760945797, -0.02273581735789776, 0.011152956634759903, 0.01159329991787672, 0.0009986195946112275, -0.02028670161962509, 0.021480616182088852, -0.005796641111373901, 0.03219802677631378, -0.004046340007334948, -0.03719264268875122, -0.0802210122346878, -0.020139848813414574, 0.011838074773550034, 0.07499785721302032, -0.02089233696460724, -0.0879780650138855, -0.01327578630298376, -0.049142856150865555, 0.07526348531246185, -0.033520035445690155, -0.044505774974823, -0.04577653482556343, 0.000182806805241853, 0.0008578079286962748, 0.032933615148067474, -0.019630111753940582, 0.040220778435468674, -0.0384187251329422, -0.017710844054818153, 0.001805997220799327, -0.027561379596590996, -0.02166254259645939, -0.03657825291156769, -0.061533428728580475, -0.032544683665037155, -0.05466650426387787, 0.012613767758011818, 0.055906593799591064, 0.006494406145066023, -0.02648286335170269, 0.0226102527230978, -0.012887724675238132, -0.11777360737323761, -0.00802469439804554, -0.036535292863845825, -0.07355448603630066, 0.004005103837698698, -0.020579122006893158, 0.05142470821738243, -0.035631876438856125, -0.033233363181352615, 0.03198184072971344, -0.0066450778394937515, 0.025522923097014427, -0.006737774703651667, 0.026475796476006508, -0.03784122318029404, -0.0023087486624717712, -0.009405739605426788, 0.054666224867105484, -0.021066470071673393, -0.017246484756469727, -0.01736421138048172, -0.012069124728441238, 0.05622679740190506, 0.002509570447728038, 0.0019287175964564085, -0.03250278905034065, 0.02165934070944786, 0.0012646273244172335, -0.05281343683600426, -0.004873191937804222, -0.025419827550649643, -0.0017517353408038616, -0.0047597819939255714, -0.0678931474685669, 0.020302629098296165, 0.005957409739494324, 0.04025113955140114, 0.04674997180700302, 0.005541285965591669, 0.024542178958654404, -0.06486329436302185, -0.0111702810972929, -0.005767013877630234, 0.014211731031537056, 0.022288797423243523, 0.047180648893117905, -0.020378191024065018, -0.06645287573337555, 0.006254717241972685, 0.043310195207595825, -0.018619084730744362, -0.029694024473428726, -0.06208423152565956, 0.003987410105764866, 0.01254239957779646, 0.01249788235872984, -0.012521631084382534, 0.0008051205659285188, 0.041362106800079346, 0.05724336579442024, -0.0019875054713338614, -0.005067427642643452, -0.025821682065725327, -0.03971729800105095, -0.04100017249584198, 0.01169560942798853, 0.0334591269493103, -0.02907717041671276, 0.007466916460543871, -0.016090326011180878, 0.004883427172899246, 0.04719310253858566, 0.015028822235763073, 0.016078341752290726, -0.026248225942254066, -0.0042237816378474236, 0.010699436999857426, 0.012754540890455246, -0.014669641852378845, -0.0016593168256804347, -0.026966828852891922, -0.04549906402826309, -0.016404597088694572, 0.0402958057820797, -0.012305853888392448, -0.017452098429203033, -0.048504821956157684, 0.022870618849992752, -0.0634949579834938, -0.014796121045947075, -0.01455156970769167, -0.02521907538175583, 0.032510366290807724, -0.006468298379331827, 0.009932815097272396, 0.007002887316048145, -0.004498972091823816, 0.0013206710573285818, -0.0029425823595374823, -0.0178306233137846, 0.0209920946508646, -0.038807373493909836, 0.0065878694877028465, 0.0309763140976429, 0.019216177985072136, -0.001967656658962369, -0.006404395680874586, 0.02943911775946617, 0.0038783291820436716, 0.028661038726568222, 0.012644601985812187, 0.05438423529267311, 0.030632248148322105, -0.022853972390294075, 0.012517004273831844, -0.0007787450449541211, -0.019922498613595963, -0.04135265201330185, -0.029045190662145615, -0.0304703526198864, 0.03851030021905899, -0.019599851220846176, -0.059032272547483444, 0.0493270568549633, 0.01890079863369465, -0.0029950446914881468, 0.00014025603013578802, -0.007221492938697338, 0.012830046005547047, -0.04689778760075569, 0.022613221779465675, 0.08182105422019958, -0.06314699351787567, 0.00645850133150816, 0.004751686472445726, 0.01651611551642418, 0.015180297195911407, 0.013402474112808704, -0.02331366576254368, 0.009529415518045425, -0.008310132659971714, 0.057168181985616684, -0.056993383914232254, -0.03188800811767578, -0.016275594010949135, 0.005829864181578159, -0.004471312277019024, -0.0005812556482851505, -0.0029469591099768877, -0.0010061971843242645, -0.018196729943156242, -0.0068941181525588036, 0.04662410542368889, -0.0229569673538208, -0.014076579362154007, 0.05555829778313637, -0.008147785440087318, -0.0023701353929936886, -0.042989905923604965, 0.02954663336277008, 0.015108449384570122, -0.018018689006567, -0.011160610243678093, -0.0332043431699276, 0.015785381197929382, 0.023655157536268234, 0.05691957473754883, 0.013611678965389729, 0.0026502034161239862, -0.017043396830558777, -0.00793671514838934, -0.008686513639986515, -0.016706153750419617, 0.005960989277809858, -0.02260809764266014, 0.042878296226263046, 0.05738705024123192, 0.012886679731309414, 0.021254975348711014, -0.005282625090330839, -0.006879325024783611, 0.07449610531330109, -0.05480800196528435, -0.03398457169532776, -0.023185597732663155, -0.049227554351091385, 0.024888567626476288, 0.03286699578166008, 0.030876269564032555, -0.05491241067647934, 0.0545884408056736, 0.03775076940655708, 0.0048847496509552, 0.0417199470102787, -0.033163346350193024, 0.03408423438668251, -0.048192862421274185, 0.00045683144708164036, -0.08488105982542038, -0.019834401085972786, 0.039176542311906815, -0.020754586905241013, 0.013177571818232536, -0.004018277395516634, -0.060007043182849884, 0.026023538783192635, -0.04470035806298256, -0.03914353623986244, 0.06260445713996887, -0.03149165213108063, 0.015840701758861542, 0.014186231419444084, -0.041312869638204575, 0.02756264992058277, 0.010214458219707012, -0.033994175493717194, -0.005868996027857065, 0.007232039235532284, 0.07029861956834793, -0.00420477706938982, 0.009561418555676937, -0.026029404252767563, -0.04293752834200859, 0.07954235374927521, 0.002866012742742896, -0.0012102944310754538, 0.06777308136224747, -0.03371614217758179, 0.03267127275466919, 0.019971445202827454, -0.009485309012234211, 0.005625061225146055, 0.02541499026119709, -0.03318573161959648, -0.061635419726371765, 0.013428207486867905, -0.0018386967713013291, -0.01947399415075779, -0.03396018221974373, 0.03915528208017349, -0.01957542635500431, -0.03611154481768608, -0.07150158286094666, 0.009099396876990795, -0.013220667839050293, -0.03368855640292168, 0.0003491063544061035, 0.025055240839719772, -0.055220961570739746, 0.05592897906899452, -0.004838682245463133, 0.0249348022043705, 0.07233341038227081, 0.008119640871882439, -0.015265275724232197, 0.018558885902166367, 0.05610622093081474, 0.054948046803474426, -0.004287780728191137, 0.028403613716363907, 0.046716317534446716, -0.03772338479757309, -0.03692285344004631, 0.004477018490433693, -0.004945746157318354, -0.01582096330821514, -0.006333462428301573, 0.008375926874577999, 0.09173161536455154, -0.021577179431915283, 0.0710272267460823, 0.0008525915909558535, -0.004140215925872326, 0.0028489597607403994, 0.022957542911171913, 0.03929726406931877, 0.02762681059539318, 0.010714972391724586, 0.032447800040245056, -0.012906462885439396, -0.04670706018805504, -0.00036227042437531054, -0.006988902110606432, -0.03456073999404907, 0.008000270463526249, -0.04467460885643959, 0.03859291970729828, 0.025927213951945305, 0.0024750344455242157, 0.0711154118180275, -0.019725488498806953, -0.015140173956751823, -0.011980025097727776, 0.03866761177778244, -0.011314686387777328, 0.027619199827313423, -0.02551279589533806, -0.008165555074810982, -0.009638221934437752, -0.04152638465166092, -0.03769875317811966, -0.004179387353360653, -0.02450416423380375, 0.0353233702480793, -0.021454207599163055, 0.041789036244153976, 0.02209646627306938, -0.0023539212998002768, -0.0229338426142931, -0.05306973308324814, -0.07398619502782822, -0.034070294350385666, -0.04066571965813637, -0.0302862748503685, 0.02379210665822029, -0.0013899385230615735, -0.032235436141490936, -0.0022568106651306152, 0.017471736297011375, 0.014419765211641788, 0.016438348218798637, -0.05109645053744316, -0.0011205094633623958, 0.03688648343086243, 0.01883656717836857, 0.034809939563274384, 0.02152998186647892, 0.0536545105278492, 0.00033202755730599165, 0.02109280414879322, -0.020716337487101555, -0.021082637831568718, 0.05648770183324814, -0.003254841547459364, 0.024995751678943634, -0.06313034147024155, 0.021624647080898285, 0.03119615651667118, -0.004134411457926035, -0.05517974868416786, 0.0026204308960586786, 0.03143198788166046, -0.03308432176709175, 0.062217388302087784, -0.018527908250689507, 0.029632849618792534, -0.06421615928411484, -0.04535948857665062, -0.018118051812052727, 0.0029128994792699814, 0.05190756544470787, -0.017781317234039307, 0.0852196142077446, 0.060762032866477966, -0.022804852575063705, -0.0027019716799259186, 0.011013741604983807, 0.0024078162387013435, 0.031031634658575058, -0.029279226437211037, -0.02610645815730095, -0.03711868077516556, -0.07105682790279388, -0.000747766112908721, 0.02732093818485737, -0.012412943877279758, -0.05351466313004494, -0.008095530793070793, -0.004334918688982725, -0.03885115310549736, -0.0031685668509453535, -0.03715135529637337, 0.034892696887254715, -0.0009281481616199017, -0.029854275286197662, 0.006205855868756771, 0.022361284121870995, -0.014734840951859951, -0.00231172819621861, 0.0028620248194783926, -0.027867238968610764, 0.0032893908210098743, -0.028374284505844116, 0.06607601046562195, 0.07286678999662399, -0.04132013022899628, 0.023893946781754494 ]
[ -0.05793263763189316, -0.03158849477767944, -0.023165497928857803, -0.030559560284018517, 0.049984171986579895, -0.08678892999887466, 0.023764923214912415, 0.01681431569159031, -0.03045574575662613, -0.018819579854607582, 0.0014462663093581796, -0.07013389468193054, 0.009507262147963047, -0.031146273016929626, 0.06966779381036758, -0.010735228657722473, -0.016316013410687447, -0.038859590888023376, -0.04817140847444534, 0.016548536717891693, 0.03225225210189819, -0.01806280016899109, -0.02936681918799877, -0.07246056199073792, -0.0028672192711383104, 0.06085340678691864, 0.026520151644945145, -0.01424134150147438, -0.044516321271657944, -0.1907588094472885, 0.02208542823791504, -0.024996915832161903, -0.02173561416566372, -0.012341523543000221, -0.008856088854372501, 0.07905402779579163, 0.015768682584166527, 0.03115255758166313, 0.024470483884215355, 0.05304787680506706, 0.02534952200949192, -0.0014897682704031467, -0.09396298229694366, 0.004750171676278114, -0.04116393253207207, -0.0462946742773056, -0.023539522662758827, -0.030103271827101707, 0.03949344903230667, -0.01676541566848755, -0.046783197671175, -0.01060669869184494, 0.02162494882941246, -0.012174938805401325, 0.009491712786257267, 0.01343178004026413, 0.02936796471476555, 0.05323869735002518, -0.011127580888569355, 0.02048119157552719, 0.0036866916343569756, -0.02894751727581024, -0.14621645212173462, 0.09234127402305603, 0.03820475935935974, 0.02538250759243965, -0.02090981788933277, 0.008948875591158867, -0.04418725147843361, 0.032869692891836166, 0.017393749207258224, -0.01412633154541254, -0.0394824855029583, 0.0973556712269783, 0.010281898081302643, -0.013696812093257904, 0.007975996471941471, 0.04053042456507683, 0.01664074696600437, -0.013765697367489338, -0.045202553272247314, -0.009427673183381557, 0.01060611940920353, 0.0206683948636055, -0.0300550889223814, 0.014767413027584553, 0.004923040512949228, 0.06080515682697296, 0.05934732034802437, 0.029372811317443848, 0.0074957008473575115, -0.019773686304688454, 0.04293881729245186, 0.027944110333919525, -0.07175552099943161, 0.04830554127693176, 0.012799646705389023, -0.003863730002194643, -0.058218903839588165, 0.3666093945503235, -0.013892870396375656, -0.0036404994316399097, -0.012811352498829365, -0.026922743767499924, 0.021398689597845078, 0.036859072744846344, -0.052137479186058044, -0.008539739064872265, 0.038720883429050446, -0.015324863605201244, 0.022245479747653008, 0.009062962606549263, 0.06744448095560074, -0.041634928435087204, -0.008429039269685745, 0.036097846925258636, -0.009675928391516209, 0.006139032542705536, -0.08169086277484894, 0.048340145498514175, 0.008168108761310577, 0.006721480283886194, 0.020204998552799225, 0.03886103630065918, -0.012558139860630035, -0.005414542276412249, 0.03769328445196152, 0.05627214163541794, 0.030909324064850807, 0.012811891734600067, 0.03270664066076279, -0.036465831100940704, -0.07672449201345444, -0.03460676595568657, -0.010172417387366295, 0.02660411410033703, 0.03226508945226669, -0.007842199876904488, -0.004611925687640905, 0.005441405810415745, -0.02421526424586773, -0.054298385977745056, 0.028458286076784134, -0.0288053248077631, -0.006907101720571518, 0.1083107441663742, -0.014592757448554039, -0.033464185893535614, -0.016604775562882423, -0.03537052497267723, -0.042220596224069595, 0.045002199709415436, -0.0012179056648164988, -0.03385845944285393, -0.003955588676035404, 0.04352221265435219, 0.057392630726099014, 0.00507815508171916, -0.02431226521730423, 0.02091168984770775, -0.007322664838284254, -0.06541909277439117, -0.025464005768299103, -0.01384422555565834, 0.052931372076272964, -0.09429752081632614, -0.022551320493221283, 0.003927268553525209, -0.030128467828035355, -0.007608756422996521, -0.0064581348560750484, 0.02513839304447174, -0.06760203093290329, -0.019941316917538643, 0.0339122973382473, -0.01557916309684515, 0.017022384330630302, 0.03758574649691582, 0.03414164483547211, 0.033945247530937195, -0.004117678385227919, -0.004146636929363012, -0.0013304121093824506, -0.02016608975827694, -0.0014638955472037196, -0.06634293496608734, -0.027182605117559433, 0.01080232858657837, -0.03638232871890068, -0.004312643315643072, -0.04278141260147095, -0.01881622150540352, -0.0659993588924408, 0.04156520217657089, 0.04077053442597389, -0.02426379919052124, 0.027778983116149902, -0.0060235243290662766, -0.0020057600922882557, -0.023105734959244728, 0.06599222123622894, 0.06282712519168854, 0.01839449442923069, 0.06522198021411896, -0.06344769150018692, 0.024323349818587303, 0.003954332787543535, -0.0253200214356184, 0.022067485377192497, 0.025635531172156334, -0.05237540975213051, 0.01552544441074133, -0.03472044691443443, 0.030783576890826225, -0.0036581193562597036, -0.021939381957054138, -0.01830996759235859, 0.009108386933803558, 0.043677471578121185, 0.01555704977363348, -0.03884471580386162, 0.005919870920479298, -0.001482688938267529, -0.3963403105735779, -0.0390658862888813, -0.010287338867783546, -0.015497645363211632, -0.02678448148071766, 0.012954950332641602, 0.01122643705457449, -0.0022751425858587027, -0.03333745151758194, -0.012852177023887634, 0.08791379630565643, -0.004140821751207113, 0.03253958374261856, -0.07137525081634521, 0.040902622044086456, 0.0036463674623519182, -0.04091683775186539, -0.03282943740487099, -0.0014704909408465028, 0.04678315296769142, 0.004886706359684467, -0.04713074117898941, -0.028172139078378677, -0.009274511598050594, 0.00249749724753201, -0.01193708274513483, 0.11690282076597214, 0.03435736149549484, 0.0699891448020935, -0.1062823161482811, 0.04106825217604637, 0.04200001433491707, 0.019815223291516304, -0.08336159586906433, 0.003587181679904461, -0.05721722170710564, -0.02317262440919876, 0.028140384703874588, 0.002388878259807825, 0.012946332804858685, -0.06924718618392944, 0.038380883634090424, -0.04281729832291603, -0.07581841945648193, 0.04284638911485672, -0.032847464084625244, -0.014738967642188072, 0.013516071252524853, -0.02298334613442421, 0.05484548211097717, 0.03625888004899025, 0.029420170933008194, 0.02757255733013153, 0.012026875279843807, 0.04105210676789284, -0.013922306708991528, -0.03727540001273155, -0.023860899731516838, -0.00416217278689146, -0.004458222538232803, 0.025786802172660828, 0.052000075578689575, 0.032557010650634766, -0.04626454412937164, -0.004951266571879387, 0.005739802960306406, 0.010872164741158485, 0.011049567721784115, 0.047212641686201096, -0.0219708364456892, -0.03676771745085716, 0.08006826043128967, 0.019817501306533813, 0.0071425591595470905, 0.0046053980477154255, 0.03572151064872742, -0.04945918917655945, -0.03528990596532822, 0.004005298018455505, 0.0011886961292475462, 0.028481001034379005, 0.010103915818035603, 0.052010394632816315, -0.04365428537130356, -0.009200588800013065, 0.09239856898784637, 0.0000296987436740892, 0.023318147286772728, 0.07294654101133347, -0.0010458900360390544, -0.06278233975172043, -0.015559770166873932, -0.04078396037220955, -0.02015974000096321, 0.09015205502510071, 0.028415272012352943, -0.270906925201416, 0.04424767941236496, 0.033088818192481995, 0.042246896773576736, 0.023124167695641518, 0.008270063437521458, 0.032207075506448746, -0.10627160221338272, 0.004650402348488569, 0.03087097778916359, -0.00619115587323904, -0.0025136026088148355, 0.001283650635741651, 0.031508151441812515, 0.019913578405976295, 0.021550845354795456, 0.016798004508018494, 0.031193038448691368, 0.03216009959578514, -0.04822669178247452, 0.023655004799365997, 0.014818670228123665, 0.1585540771484375, 0.03056231327354908, -0.03077235445380211, 0.039696138352155685, -0.006733218673616648, 0.038069963455200195, 0.07960548251867294, 0.017837515100836754, 0.011255983263254166, -0.022530682384967804, 0.11676633358001709, -0.0040589747950434685, 0.058764804154634476, -0.07670826464891434, 0.0054440307430922985, 0.002727410290390253, 0.03354325518012047, -0.044825855642557144, -0.0519990436732769, 0.023805739358067513, -0.02245541661977768, 0.006795051973313093, 0.0625721737742424, -0.03560338914394379, -0.022047851234674454, -0.08324425667524338, 0.0014454248594120145, 0.00027776582282967865, 0.0016013658605515957, -0.03489575907588005, -0.01774696633219719, -0.01670849695801735, -0.010927613824605942, 0.06781589984893799, 0.025528499856591225, -0.020576296374201775, -0.050634413957595825, 0.02745412103831768, -0.000504417868796736, -0.03915886953473091, 0.07442043721675873, 0.011974306777119637, 0.0342516265809536 ]
[ 0.019552450627088547, -0.03221162036061287, -0.05044843629002571, -0.005369060207158327, 0.007307874504476786, 0.008522151969373226, -0.006284691393375397, 0.0010395405115559697, 0.013179262168705463, -0.0103342579677701, 0.005298377480357885, 0.0021466591861099005, -0.004186980426311493, 0.00024453492369502783, 0.04497268423438072, -0.07014667242765427, 0.03587377816438675, 0.013149352744221687, 0.019066685810685158, -0.044402506202459335, -0.02320663444697857, 0.02914438210427761, 0.02398817427456379, 0.004607385024428368, 0.006048153154551983, -0.009052305482327938, -0.04619995877146721, -0.015190273523330688, 0.00792850460857153, -0.10400163382291794, 0.021759945899248123, -0.01100306585431099, 0.04174507036805153, -0.021752510219812393, 0.06851722300052643, 0.008325566537678242, 0.0060888174921274185, -0.015056128613650799, -0.033209048211574554, 0.014245844446122646, 0.04299027845263481, -0.020452847704291344, -0.027541060000658035, -0.05629131942987442, 0.00921805389225483, -0.0012514118570834398, -0.05216890200972557, -0.058744583278894424, -0.011168787255883217, 0.03262241929769516, -0.004894350655376911, -0.004676283802837133, 0.038939863443374634, 0.006108521018177271, 0.015277858823537827, 0.0044756545685231686, -0.011396598070859909, 0.035930290818214417, 0.0038041153457015753, -0.009677424095571041, -0.017125418409705162, -0.014676926657557487, -0.010367585346102715, -0.043072786182165146, 0.03422936797142029, -0.041224464774131775, -0.040173307061195374, -0.027422716841101646, 0.0062597692012786865, 0.02095612697303295, 0.00035880276118405163, -0.030023137107491493, -0.05369316413998604, 0.008406075648963451, -0.049880415201187134, 0.015716254711151123, 0.05495867505669594, 0.010710062459111214, -0.013015682809054852, 0.0007430174737237394, -0.030851401388645172, -0.010668647475540638, -0.017339345067739487, 0.028601039201021194, -0.04834140092134476, -0.02039792202413082, -0.03658270463347435, 0.017829736694693565, 0.009033314883708954, -0.007954396307468414, -0.06863037496805191, -0.029490159824490547, -0.008988832123577595, -0.010358653962612152, -0.033118199557065964, -0.0027278726920485497, -0.017318902537226677, -0.026420490816235542, -0.02701720781624317, 0.78623366355896, 0.027223380282521248, 0.037734437733888626, 0.03184214606881142, 0.0039048437029123306, 0.04039374366402626, 0.055516358464956284, -0.026331821456551552, 0.014754719100892544, -0.020525021478533745, -0.02205769717693329, 0.03486393019556999, 0.01371081080287695, 0.043258342891931534, 0.01124352402985096, 0.023565607145428658, 0.016599353402853012, 0.022278735414147377, -0.017157582566142082, -0.002254420192912221, 0.07483173906803131, 0.052783556282520294, -0.029772039502859116, 0.01676841825246811, 0.010716716758906841, -0.012699729762971401, -0.18497295677661896, 0.0055030039511621, -7.210146597369958e-33, 0.02579093910753727, -0.07663166522979736, 0.00010926667891908437, 0.015610174275934696, 0.04256798326969147, -0.02137957699596882, 0.021456614136695862, 0.013407706283032894, 0.012885880656540394, -0.027463404461741447, -0.027471866458654404, -0.028062188997864723, -0.009317995980381966, -0.01984551176428795, 0.01091653574258089, 0.003054664935916662, -0.029692109674215317, 0.018979042768478394, 0.0012340063694864511, -0.00948280468583107, 0.027738500386476517, -0.002885567955672741, -0.0532139390707016, 0.03100334294140339, 0.05385485291481018, -0.02411397360265255, 0.029591495171189308, -0.046622466295957565, 0.006996286101639271, -0.02001463994383812, 0.02092009037733078, 0.012866157107055187, 0.01894560642540455, -0.06599478423595428, 0.005162014160305262, -0.06118836998939514, -0.015006531961262226, 0.015534916892647743, -0.04730229824781418, -0.0022478390019387007, -0.007524936925619841, -0.01979123055934906, 0.005957701709121466, -0.006796597968786955, -0.06210320442914963, 0.012982968240976334, 0.04111897200345993, 0.04512327164411545, 0.010045464150607586, 0.039194852113723755, 0.01913774386048317, 0.004949246067553759, 0.03488970920443535, 0.011872093193233013, 0.016726192086935043, 0.015045828185975552, -0.004837454296648502, 0.009825830347836018, -0.01083153672516346, -0.010871495120227337, -0.049551498144865036, -0.008469493128359318, -0.03416358307003975, 0.043175261467695236, -0.011969211511313915, 0.012260294519364834, -0.002906009554862976, 0.04698067530989647, -0.028129342943429947, 0.016645409166812897, -0.08569619059562683, 0.030378222465515137, -0.01883961632847786, -0.002215354237705469, 0.008749320171773434, -0.056596193462610245, 0.011878445744514465, 0.038515131920576096, 0.0015608747489750385, 0.005453168414533138, 0.002421113196760416, 0.012240344658493996, -0.026086656376719475, -0.000027594722268986516, -0.05556688457727432, -0.013916083611547947, 0.021789640188217163, -0.022402646020054817, -0.018625939264893532, 0.0007605231367051601, 0.054845407605171204, 0.03827793523669243, 0.019689608365297318, 0.0034193838946521282, -0.030488282442092896, 7.480042304370663e-33, -0.011891055852174759, -0.01619592308998108, -0.02217012085020542, 0.021396884694695473, 0.03693654015660286, 0.0012588462559506297, 0.04254814609885216, 0.013645908795297146, -0.025695115327835083, 0.022891245782375336, -0.08841809630393982, 0.019701648503541946, -0.0060512772761285305, -0.014837044291198254, 0.06246969848871231, -0.009672936052083969, 0.01328691653907299, -0.018693886697292328, 0.016091136261820793, 0.007769784424453974, 0.02589653804898262, 0.004399993922561407, 0.04014190286397934, -0.003487135749310255, 0.001932792947627604, 0.054401978850364685, -0.0052205040119588375, 0.017013205215334892, -0.053317341953516006, 0.01378417294472456, 0.02055182307958603, -0.021774262189865112, 0.006868977099657059, -0.04048499837517738, -0.06471627950668335, -0.018030432984232903, 0.0037438857834786177, 0.029525989666581154, -0.006346519570797682, -0.026523418724536896, 0.04059546813368797, 0.02493906021118164, 0.009104766882956028, 0.04646685719490051, -0.007598144933581352, 0.03655867651104927, 0.020983124151825905, 0.0036195027641952038, -0.0013906670501455665, 0.017794108018279076, -0.045138806104660034, -0.020342614501714706, 0.004647519905120134, 0.024668525904417038, 0.030732836574316025, -0.026193497702479362, 0.0026563045103102922, -0.048113562166690826, -0.07449744641780853, 0.00009681146912043914, -0.0020893740002065897, 0.011354147456586361, 0.025467470288276672, 0.047704488039016724, -0.01787474937736988, -0.031229497864842415, -0.05314619839191437, 0.014400020241737366, 0.007522175554186106, -0.0021369042806327343, 0.006291673053056002, -0.016923919320106506, -0.004843457601964474, 0.04351545125246048, 0.018976038321852684, -0.005540392827242613, -0.03419426456093788, -0.0004998985677957535, -0.005309384316205978, 0.009150423109531403, 0.010124157182872295, 0.029208553954958916, 0.0026228907518088818, -0.010517031885683537, 0.0587192066013813, 0.019096078351140022, -0.04237741604447365, 0.05309225618839264, 0.0019239760003983974, -0.013056809082627296, -0.0392526276409626, -0.010779562406241894, -0.0299041997641325, 0.02226749248802662, 0.01799921877682209, -1.2454989040122655e-8, -0.012991818599402905, 0.03423678129911423, -0.020997123792767525, 0.060727495700120926, 0.03282248601317406, 0.008927181363105774, -0.007786122616380453, 0.04948843643069267, 0.029083482921123505, 0.0032373361755162477, 0.003671918762847781, -0.040789645165205, -0.02070683054625988, 0.017976878210902214, 0.0568426176905632, -0.04672567918896675, 0.01609758473932743, 0.016087034717202187, 0.013171869330108166, -0.033772725611925125, 0.005453736521303654, 0.05373019352555275, 0.01750950515270233, -0.02145536243915558, -0.019137850031256676, 0.041530463844537735, 0.008405723609030247, -0.04322143271565437, -0.028214996680617332, 0.010181963443756104, 0.019199518486857414, -0.04135647043585777, -0.037007782608270645, 0.025954479351639748, -0.0629357323050499, -0.029521526768803596, 0.010540480725467205, -0.003001120639964938, 0.01700793392956257, 0.0142457140609622, -0.026858726516366005, 0.04530886933207512, -0.00988798588514328, -0.01966697908937931, -0.027642114087939262, 0.002718866104260087, -0.006500142626464367, 0.07336674630641937, 0.003284229664131999, -0.013781185261905193, -0.022585362195968628, -0.035648055374622345, 0.01791720651090145, 0.02659398689866066, 0.09347071498632431, 0.008173978887498379, 0.036325179040431976, -0.06026632711291313, 0.012801352888345718, 0.011344010010361671, 0.046869874000549316, 0.001144048641435802, -0.04620230197906494, -0.002828974276781082 ]
apache-pinot-unable-to-render-templates
https://markhneedham.com/blog/2022/11/14/apache-pinot-unable-to-render-templates
false
2022-11-22 02:44:37
Blogging for Google: Why I write about error messages
[ "writing", "blogging", "devrel" ]
[ "Writing" ]
Writing blog posts that aim to go viral on social media is a well-known content strategy, but in this post, I want to persuade you that you should blog for Google as well. == Blog for Google? What does blogging for Google even mean? The easiest demonstration is to look at a screenshot from the Google Console Insights report I was sent last week. This section of the report shows the most used search terms that result in someone ending up on my blog. .Google Console Insights image::{{<siteurl>}}/uploads/2022/11/google-search-insights.png[Google Console Insights] As you can see, 4 of the top 5 search terms are for error messages, and very specific ones at that. I don't think I ever mentioned these blog posts on social media because they're just not that interesting to a general audience. They are useful to a very specific audience though: people who have come across those error messages and don't know what to do next! == When should I wrote about errors? When I get an error message that I don't understand, the first thing that I do is paste it into Google to see if someone else has come across it. If there's already a blog post or a StackOverflow answer that covers the exact same problem I'll probably move on, safe in the knowledge that this error message is already covered. I should say that I sometimes find the answer to my problem under a completely different search term, perhaps buried in the comments of a GitHub issue. In that case I might still write a post and link to the place where I found the answer. == What goes in these posts? Hopefully you're now slightly curious about writing about exceptions or error messages and in this section we're going to learn what these posts should contain. They do tend to be quite short and I follow rougly this template: . Describe what you were doing. . Paste the entire error message that you received. . Explain how you worked around or fixed the error message. . Optionally, if you found the answer to your problem from somewhere, make sure to link to that place or credit that person. The title of the post should contain the error message and/or the search term that you used/would use if you encountered this problem in future. [NOTE] ==== Even if the error message indicates a bug with the product/software, it's still worth writing about because there'll be a period in time where people are still using the version of the software that has the bug! I understand that you might not want to write about error messages in a product made by the company that employees you. My response is that all products have bugs or throw exceptions - at least this way your users will know how to work around them. ==== Below are some recent examples of posts that I've written about error messages: * https://www.markhneedham.com/blog/2022/11/14/apache-pinot-unable-to-render-templates/[Apache Pinot: Unable to render templates on ingestion job spec template file^] * https://www.markhneedham.com/blog/2022/06/23/apache-pinot-skipping-periodic-task-pinot-task-manager/[Apache Pinot: Skipping periodic task: Task: PinotTaskManager^] * https://www.markhneedham.com/blog/2022/04/05/apache-pinot-lookup-join-internal-error-unsupported-function/[Apache Pinot: Lookup Join - 500 Error - Unsupported function: lookup with 4 parameters^] * https://www.markhneedham.com/blog/2020/12/31/materialize-unable-automatically-determine-timestamp-query/[Materialize: Unable to automatically determine a timestamp for your query; this can happen if your query depends on non-materialized sources^] * https://www.markhneedham.com/blog/2020/03/31/streamlit-multiselect-numpy-no-attribute-index/[Streamlit: multiselect - AttributeError: 'numpy.ndarray' object has no attribute 'index'^] Notice that none of these posts are all that long - by my calculations the maximum number of written words in any of them is ~300. == The scratchpad So far we've covered why you should write about error messages and what should go into a post about error messages, but how do we do it? There's certainly a temptation when you come across error messages to try to solve them as quickly as possible and then move on. I would encourage you (and me!) to be a bit more deliberate about it. I try to keep some sort of scratchpad document open on my computer whenever I'm coding. It could be a Google Doc or an empty text file, it doesn't matter. It just needs to be easily accessible so that when you come across an error message, you can paste it into the file. I'd also suggest adding some context around the error message, such as what you were doing when you got it and any search terms that you used when trying to figure it out. When you (hopefully!) solve the problem, you can then copy/paste the context and the error message to your blogging platform, add in the solution, and you're done! == In Summary Write about error messages! These are some of the easiest blog posts that you'll ever write and your users will thank you for it 😊 One of those users might even be your future self - I frequently come across my old blog posts when searching for error messages to the point where Google is almost acting like my external brain.
In this post we'll talk about the benefits of writing about error messages.
uploads/2022/11/blogging-for-google-banner.png
[ 0.011920290067791939, 0.023773731663823128, 0.02945331670343876, 0.021077467128634453, 0.06951762735843658, 0.019842442125082016, 0.05969318002462387, 0.05833839997649193, 0.014516383409500122, -0.003989885561168194, -0.009486708790063858, -0.00783536583185196, -0.055160652846097946, 0.027946162968873978, -0.031968556344509125, 0.06211051717400551, 0.05161195993423462, 0.026786252856254578, 0.019882354885339737, -0.004673507995903492, 0.000824877293780446, 0.04643499478697777, 0.009026474319398403, 0.03582464158535004, 0.06274093687534332, 0.004143572878092527, 0.030947575345635414, 0.022995488718152046, -0.05489751324057579, -0.03804704546928406, 0.03646264225244522, 0.04287923872470856, 0.004831875208765268, -0.0014142281142994761, 0.0211015734821558, -0.008525138720870018, -0.00650419294834137, 0.025980371981859207, -0.004596642218530178, 0.024930020794272423, -0.07855547219514847, 0.013475386425852776, -0.04053232818841934, 0.01552552543580532, -0.03170346841216087, 0.0319037102162838, -0.03621498495340347, 0.002290240488946438, 0.01911459118127823, 0.004741812590509653, -0.07002773135900497, 0.04679132252931595, 0.005458455067127943, 0.0015064376639202237, -0.02507437951862812, 0.050917744636535645, 0.026556598022580147, -0.04311933368444443, 0.0025893368292599916, -0.06043325737118721, 0.002095822710543871, 0.005117072258144617, 0.0023619357962161303, 0.027118129655718803, 0.01894553378224373, -0.016940966248512268, 0.0029162613209336996, 0.04365178570151329, -0.032010577619075775, -0.005771663039922714, -0.024440515786409378, 0.006830030120909214, -0.00875329039990902, -0.004810437560081482, 0.002639656886458397, -0.03300463408231735, -0.0038583907298743725, 0.06457608938217163, 0.030631283298134804, 0.05913862586021423, -0.02783529832959175, 0.020974380895495415, 0.012531029991805553, 0.04285547882318497, -0.02141711488366127, -0.047629464417696, -0.01014347281306982, -0.03897513821721077, -0.04188467934727669, 0.06705840677022934, 0.005415081046521664, -0.08128966391086578, 0.015823151916265488, 0.0427556037902832, -0.009883536957204342, 0.01112234778702259, 0.03674281761050224, -0.012979310937225819, -0.021375669166445732, -0.061170730739831924, -0.06508546322584152, -0.013263742439448833, 0.015043346211314201, 0.049393489956855774, -0.07818152010440826, -0.0006613425794057548, -0.013864919543266296, 0.0008815273176878691, -0.008116088807582855, -0.01020824071019888, 0.0217625442892313, 0.04545748233795166, -0.034650299698114395, -0.0012139108730480075, -0.07461239397525787, 0.0705212652683258, -0.002365783089771867, -0.03911073878407478, 0.001310142339207232, 0.014919187873601913, 0.04727352783083916, 0.01996147818863392, -0.026104891672730446, 0.06970938295125961, 0.007141820155084133, 0.029513387009501457, -0.02678828127682209, 0.04396899417042732, -0.03880934789776802, -0.04306107014417648, -0.013125807046890259, 0.059003427624702454, -0.010833852924406528, -0.0010040238266810775, -0.0017328199464827776, -0.012377796694636345, -0.0021267638076096773, 0.015539376996457577, 0.03869600221514702, 0.026208290830254555, -0.006363180465996265, -0.036248430609703064, -0.0218940619379282, -0.0015774398343637586, 0.0374191552400589, -0.048027556389570236, 0.005734445992857218, -0.020664893090724945, -0.046711210161447525, -0.011109747923910618, 0.019252723082900047, -0.0038479752838611603, 0.023577872663736343, -0.04398233816027641, 0.005271871108561754, 0.04662197083234787, 0.05081898346543312, -0.0005834648618474603, -0.0027781750541180372, 0.051574598997831345, 0.058159392327070236, 0.030544135719537735, 0.0029995583463460207, 0.02915959060192108, 0.003084140596911311, -0.036425355821847916, -0.0007572278846055269, 0.03048817813396454, -0.008468161337077618, 0.0220462866127491, -0.0589120052754879, -0.05230030417442322, 0.05095691606402397, -0.031939856708049774, -0.034195929765701294, 0.06702287495136261, 0.07631039619445801, 0.03939779847860336, 0.04460636526346207, 0.02958826534450054, -0.07925228029489517, 0.05110645666718483, 0.02068186365067959, 0.03427955135703087, -0.011106128804385662, -0.02448800392448902, 0.08655665069818497, 0.02189207635819912, 0.012203888967633247, 0.030249234288930893, -0.08497066795825958, -0.08085542172193527, -0.023785801604390144, 0.005403727758675814, 0.06641886383295059, -0.0379272997379303, 0.019120467826724052, 0.07702992856502533, 0.041741710156202316, 0.05002108961343765, -0.004169930703938007, 0.0001559761440148577, 0.028896458446979523, -0.027641575783491135, -0.06698992848396301, 0.06380566954612732, 0.03306310623884201, -0.030300108715891838, -0.02755497395992279, 0.023946471512317657, -0.016441568732261658, 0.022828321903944016, 0.049487609416246414, -0.02777695842087269, 0.024452678859233856, -0.023107141256332397, 0.0560893677175045, -0.015526850707828999, 0.05442751571536064, -0.03222149237990379, 0.015580659732222557, -0.028649933636188507, -0.00213804398663342, 0.02557504177093506, 0.01682426780462265, 0.12140165269374847, 0.048279933631420135, -0.028097301721572876, -0.02298799343407154, 0.03162536770105362, 0.0065780943259596825, -0.003163093002513051, 0.03221520036458969, 0.0008839611546136439, -0.03466891124844551, 0.022283319383859634, -0.019783873111009598, -0.02810555323958397, 0.02742273174226284, -0.06230362877249718, -0.0018332225736230612, 0.06789448857307434, -0.02126927673816681, 0.06773938983678818, -0.05445559322834015, -0.005820074584335089, -0.019059380516409874, -0.016664357855916023, -0.04771508276462555, 0.005710969679057598, 0.036945898085832596, -0.015054129995405674, 0.045202746987342834, -0.023482296615839005, -0.014258170500397682, -0.023643381893634796, -0.02212013117969036, 0.04509362578392029, 0.05877058580517769, 0.041015151888132095, -0.02442707121372223, 0.03426159918308258, -0.0013860760955139995, 0.02704724110662937, 0.012622611597180367, -0.015385397709906101, -0.050032150000333786, -0.033461395651102066, -0.025050459429621696, 0.02075308747589588, 0.017977776005864143, 0.021829580888152122, 0.01012494694441557, 0.025307655334472656, 0.009483326226472855, 0.006010229233652353, 0.04126418009400368, 0.005130069330334663, 0.014370904304087162, -0.019932633265852928, -0.034176215529441833, 0.05858106166124344, -0.05384788289666176, -0.028562193736433983, 0.011765075847506523, -0.07632577419281006, 0.02778591588139534, -0.05515940859913826, -0.052022770047187805, 0.030722839757800102, 0.004093856085091829, 0.04487477242946625, 0.027765143662691116, 0.010901106521487236, 0.060110751539468765, 0.0168144591152668, -0.006131435744464397, -0.003589535364881158, -0.01856054551899433, 0.05661168321967125, -0.022950848564505577, -0.0034099440090358257, 0.05718335881829262, -0.02330554649233818, -0.006427235435694456, -0.05739181861281395, 0.037738505750894547, -0.03891414776444435, -0.2947380542755127, 0.020922696217894554, 0.024331940338015556, -0.03734506294131279, -0.013842304237186909, -0.027304736897349358, 0.008546613156795502, -0.04616178199648857, 0.0005846743006259203, 0.04244758188724518, -0.012098454870283604, -0.024336645379662514, -0.04367346689105034, 0.0059797391295433044, 0.003850946668535471, 0.0056963167153298855, 0.016052883118391037, 0.0007908304687589407, -0.00609982805326581, 0.01719975844025612, -0.01998087763786316, -0.04099602624773979, -0.020905913785099983, 0.03233354166150093, 0.05956936627626419, 0.04050765931606293, -0.05588417500257492, 0.047656502574682236, -0.04545556381344795, 0.0007203214918263257, 0.017477266490459442, -0.02105242945253849, -0.000948017172049731, -0.02194063365459442, -0.016310404986143112, -0.012624735943973064, 0.02126697078347206, -0.022339610382914543, -0.0065777781419456005, 0.025806620717048645, -0.0334039069712162, -0.033144332468509674, -0.013582158833742142, 0.00644813384860754, 0.07080130279064178, -0.010323622263967991, -0.061793603003025055, 0.015286015346646309, -0.027561983093619347, 0.07047328352928162, -0.03378930687904358, -0.06356541812419891, -0.025014039129018784, 0.03727078065276146, -0.02049602009356022, -0.01782362535595894, -0.01164416316896677, -0.03171660006046295, -0.04691086336970329, -0.03336760029196739, -0.012844863347709179, -0.021083084866404533, -0.03032629005610943, -0.03161275014281273, -0.00813413504511118, -0.06732254475355148, -0.07298708707094193, -0.01161595992743969, 0.08981604129076004, 0.016755132004618645, -0.017667660489678383, 0.021491799503564835, -0.009044825099408627, -0.09360168129205704, -0.01617421768605709, -0.008209637366235256, -0.01650564931333065, 0.037951234728097916, -0.015457677654922009, 0.04041193053126335, -0.03834209591150284, -0.02869642712175846, 0.014015521854162216, -0.004985698498785496, 0.015514703467488289, -0.02326934225857258, 0.033219609409570694, 0.0022398841101676226, -0.0374663770198822, 0.010312696918845177, 0.08716113120317459, -0.00796336866915226, -0.019710004329681396, -0.011917744763195515, 0.0005345055251382291, 0.045843590050935745, 0.02151610143482685, -0.006178020499646664, -0.00352709018625319, 0.05301374942064285, 0.006431418005377054, -0.05204317346215248, 0.02820703387260437, -0.027476664632558823, -0.010786103084683418, 0.02044682204723358, -0.04247326776385307, 0.02415528893470764, 0.026561036705970764, -0.030415112152695656, -0.025395279750227928, -0.031588952988386154, 0.004665507469326258, -0.035887621343135834, -0.04779134690761566, -0.022163692861795425, 0.012969180941581726, 0.04076787084341049, -0.0071772802621126175, -0.05027031898498535, -0.01011733990162611, 0.01347382366657257, -0.004048447590321302, -0.007782291620969772, -0.07141459733247757, -0.013634282164275646, -0.005978224333375692, -0.022612720727920532, 0.020318254828453064, 0.041351255029439926, -0.006778924725949764, 0.018652884289622307, 0.012339349836111069, -0.044238846749067307, 0.03653887286782265, -0.047538552433252335, -0.04159919172525406, -0.02962391823530197, -0.012331175617873669, -0.011674230918288231, 0.0006059477454982698, 0.03534197807312012, -0.01211575884371996, 0.027838535606861115, 0.043607231229543686, -0.0027022368740290403, 0.01713097095489502, 0.006244546268135309, 0.006334344390779734, 0.026654081419110298, -0.026022983714938164, -0.07468238472938538, 0.04789261147379875, -0.027475399896502495, -0.01860293745994568, 0.0016146849375218153, 0.03134540095925331, -0.015355052426457405, -0.047952305525541306, -0.012079829350113869, 0.030999721959233284, -0.07674071192741394, -0.02255723997950554, 0.012464254163205624, 0.008500228635966778, 0.018276289105415344, -0.02569488435983658, 0.015325626358389854, 0.004800617229193449, -0.025199521332979202, 0.0334278903901577, -0.004311678931117058, -0.026263415813446045, -0.015716085210442543, 0.003700191853567958, 0.0017845112597569823, -0.014588352292776108, 0.006090416572988033, 0.02225704863667488, 0.003923372365534306, -0.009106854908168316, -0.020878607407212257, 0.015394934453070164, 0.03867720812559128, 0.0467718131840229, 0.03418220952153206, -0.011593054048717022, -0.026653841137886047, -0.030069993808865547, 0.0032581898849457502, -0.045964743942022324, -0.016737619414925575, 0.005178981460630894, 0.03127269074320793, -0.02533796988427639, -0.07836488634347916, 0.03988108038902283, -0.014184231869876385, 0.008167044259607792, 0.010966452769935131, -0.027768367901444435, 0.00912974588572979, -0.05520426854491234, 0.06620582193136215, 0.03634537383913994, -0.06929809600114822, 0.024126028642058372, -0.002619645558297634, -0.009893826209008694, 0.03586038947105408, 0.016739485785365105, -0.04493621736764908, -0.017344919964671135, -0.03431117907166481, 0.022628221660852432, -0.0693649873137474, -0.020614763721823692, -0.04405207186937332, 0.030803252011537552, 0.005492525640875101, 0.012752052396535873, -0.022392485290765762, 0.004888636060059071, -0.017016177996993065, -0.04063465818762779, 0.012979822233319283, -0.028294917196035385, -0.006348421331495047, 0.03874679654836655, -0.07139329612255096, 0.03604859858751297, -0.016471851617097855, 0.026525048539042473, 0.028760699555277824, -0.022190488874912262, 0.006374250166118145, -0.02428383380174637, -0.01931312493979931, 0.004560360684990883, 0.053960204124450684, -0.019799156114459038, -0.029670216143131256, -0.062454912811517715, -0.03339695557951927, -0.015118378214538097, 0.013190974481403828, -0.04080131649971008, 0.00539239589124918, -0.002383960410952568, 0.06364118307828903, 0.04422047361731529, 0.014192909002304077, -0.016294654458761215, -0.009226402267813683, 0.0498446486890316, -0.06725878268480301, -0.01621439680457115, -0.02050117589533329, -0.03964723274111748, 0.023944880813360214, 0.021238327026367188, 0.007830179296433926, -0.01956828124821186, 0.027512947097420692, 0.004608830902725458, 0.04132477194070816, 0.012801975011825562, 0.0017057929653674364, 0.014897286891937256, -0.03624339401721954, 0.004240247420966625, -0.07617151737213135, 0.012861385010182858, 0.014763500541448593, -0.02330692671239376, 0.0027537711430341005, 0.00211947038769722, -0.010902764275670052, 0.03456788882613182, -0.059624504297971725, -0.011816672049462795, 0.011601084843277931, 0.0024625796359032393, -0.030741145834326744, 0.031315822154283524, -0.0596187449991703, 0.029094107449054718, 0.03425024077296257, -0.03710201382637024, -0.033739108592271805, -0.004505959339439869, 0.04465469345450401, 0.0054932148195803165, 0.038908906280994415, -0.04644991084933281, -0.047971244901418686, 0.07139237225055695, 0.045403555035591125, 0.008921866305172443, 0.0377151183784008, -0.00911900494247675, 0.02660529315471649, 0.05479314923286438, 0.018539022654294968, 0.02647426724433899, 0.00805522222071886, -0.0344962440431118, -0.07022147625684738, 0.04186806082725525, -0.027933085337281227, -0.03555207699537277, -0.03606635704636574, 0.0668761357665062, 0.016785327345132828, -0.04356788471341133, -0.058950699865818024, 0.020471179857850075, -0.03711530193686485, -0.014112088829278946, -0.03632376715540886, -0.03748483583331108, -0.023546218872070312, 0.08330857753753662, 0.013182230293750763, -1.9397445782942668e-7, 0.041413091123104095, -0.03978275507688522, 0.015351451933383942, -0.0225613322108984, 0.07580357044935226, 0.07378801703453064, 0.05962745100259781, -0.02180715836584568, 0.07133404165506363, -0.014503397978842258, -0.04947848618030548, 0.007219950668513775, -0.03326784446835518, -0.04011549800634384, 0.01538509875535965, -0.0004090195579919964, 0.04530447721481323, -0.011187833733856678, 0.07504807412624359, -0.021845029667019844, 0.012615153566002846, 0.017079945653676987, 0.020648503676056862, 0.00015817528765182942, 0.0250575989484787, -0.010132448747754097, 0.02963007055222988, -0.014693346805870533, -0.01189883891493082, 0.014294852502644062, -0.046260956674814224, -0.007470575161278248, 0.02581574209034443, -0.037864863872528076, 0.01644282229244709, -0.004103451501578093, 0.0036704090889543295, 0.05328049510717392, -0.024731483310461044, 0.00656631076708436, -0.0027476437389850616, 0.0235452838242054, -0.013910607434809208, 0.06301872432231903, 0.0011422138195484877, -0.020325880497694016, -0.029854554682970047, -0.02938111685216427, -0.017360065132379532, -0.03521217033267021, -0.05091232433915138, 0.02733195759356022, -0.03647639974951744, -0.012272130697965622, 0.0097481245175004, -0.011216633953154087, -0.027102971449494362, -0.03959844633936882, -0.02583071030676365, -0.05304918438196182, -0.050952132791280746, -0.014687671326100826, -0.006246889475733042, 0.0011235503479838371, -0.03012741357088089, -0.021565759554505348, -0.02579500339925289, -0.045178722590208054, 0.02894255518913269, -0.04639989510178566, -0.0035994998179376125, 0.04516219347715378, 0.027024151757359505, 0.013744613155722618, 0.042477432638406754, 0.041094936430454254, -0.0009674361790530384, -0.0008588936179876328, 0.004187955055385828, 0.015716755762696266, 0.040894895792007446, 0.0033426103182137012, 0.02056153677403927, -0.08911240100860596, -0.015657316893339157, -0.009210215881466866, -0.0028991601429879665, -0.046547066420316696, 0.023693135008215904, 0.03736095130443573, -0.00944138690829277, 0.05859258770942688, -0.018955809995532036, 0.009804203175008297, -0.04065059870481491, -0.0074582393281161785, -0.005591472145169973, -0.002947678091004491, 0.04998830705881119, -0.025692274793982506, 0.08423466980457306, 0.029633989557623863, -0.020199978724122047, -0.02973417565226555, -0.027653498575091362, -0.01920338161289692, 0.003204635577276349, -0.05588945746421814, -0.029133658856153488, -0.038640398532152176, -0.08527369797229767, -0.02972942776978016, 0.04291524738073349, 0.021411627531051636, -0.007318235468119383, 0.0368712842464447, -0.0004136570496484637, -0.026389678940176964, 0.03831801563501358, -0.04912399873137474, 0.021719971671700478, -0.0012167574604973197, 0.0074372561648488045, -0.025911696255207062, 0.03069659322500229, 0.0002071173075819388, -0.02588455006480217, 0.018604537472128868, -0.04617021977901459, 0.01512376219034195, -0.01859738864004612, 0.015669500455260277, 0.014094020240008831, -0.003595811314880848, 0.031217724084854126 ]
[ -0.07382068037986755, -0.02795015089213848, -0.00028212377219460905, -0.025771597400307655, 0.04328123852610588, -0.04732082039117813, -0.0027261306531727314, 0.050271593034267426, -0.018574943765997887, -0.02099287323653698, 0.007071607746183872, -0.0049133142456412315, 0.00003637543704826385, 0.002268456621095538, 0.05961787328124046, 0.053352344781160355, 0.02205643244087696, -0.09345097839832306, -0.0015426601748913527, 0.03427284210920334, 0.01792839728295803, -0.004252416081726551, 0.001464302884414792, -0.022563369944691658, 0.011908035725355148, 0.0004550062876660377, 0.005690494552254677, -0.029463868588209152, -0.03485628589987755, -0.17494261264801025, -0.016569292172789574, -0.0015519828302785754, 0.04071379080414772, -0.02968376874923706, -0.0039869495667517185, 0.03702831268310547, 0.005499920807778835, 0.006344828754663467, -0.0014180639991536736, 0.0500769279897213, 0.026814714074134827, -0.0013852929696440697, -0.03690695762634277, -0.040842823684215546, 0.07334113866090775, -0.004471329506486654, -0.019786402583122253, -0.036129094660282135, -0.02953575737774372, -0.0009995028376579285, -0.06262333691120148, -0.014645549468696117, -0.021980278193950653, -0.0075726923532783985, -0.04399403929710388, 0.02911527268588543, 0.025076204910874367, 0.08641184121370316, -0.004887213930487633, 0.02829517051577568, 0.07069846987724304, -0.028235092759132385, -0.11280474811792374, 0.10738932341337204, 0.019151894375681877, 0.04322788864374161, -0.03126987814903259, 0.011208715848624706, -0.024215925484895706, 0.09500212967395782, 0.0013846452347934246, -0.004656324628740549, -0.04041880741715431, 0.07888361066579819, -0.000681589706800878, 0.018935615196824074, 0.011677979491651058, 0.019308798015117645, 0.0014871000312268734, -0.04520788788795471, -0.03237984701991081, -0.00007196232036221772, -0.0065584308467805386, -0.03417644277215004, -0.017176000401377678, -0.026738760992884636, 0.027866801247000694, 0.059210311621427536, 0.040215346962213516, 0.025565767660737038, 0.07528001815080643, -0.025073092430830002, 0.0459846556186676, 0.001309886109083891, -0.09035526216030121, -0.013947654515504837, 0.01015512365847826, 0.011646775528788567, -0.041901182383298874, 0.46460309624671936, -0.029486892744898796, 0.005055801477283239, 0.08170724660158157, 0.01793721131980419, 0.02441738173365593, -0.013107837177813053, 0.0003028840001206845, -0.020831944420933723, -0.007931512780487537, -0.030204512178897858, 0.02532605454325676, -0.009336606599390507, 0.05813520774245262, -0.014280281029641628, 0.01982785388827324, -0.009162463247776031, 0.03740500658750534, 0.04544750973582268, 0.012584514915943146, -0.020684344694018364, -0.02581368014216423, -0.031289245933294296, 0.030731618404388428, -0.043168894946575165, -0.00013156728527974337, -0.03575913980603218, 0.02038969099521637, 0.06589547544717789, 0.03683513402938843, -0.01636994630098343, 0.031445011496543884, -0.0010685570305213332, -0.06058402732014656, 0.02707478031516075, -0.004846230614930391, 0.01770758628845215, 0.010129080154001713, -0.03955278918147087, 0.0022954815067350864, 0.04850360006093979, 0.01344994455575943, -0.03643391653895378, 0.022919928655028343, -0.009666498750448227, -0.025291085243225098, 0.11054015159606934, 0.010902865789830685, -0.03977201133966446, -0.036613669246435165, -0.05256852135062218, 0.015176313929259777, 0.04809402674436569, 0.008549806661903858, -0.04890497773885727, 0.017709752544760704, 0.02135920338332653, 0.09844864159822464, -0.03623848408460617, -0.07400169223546982, -0.0161456149071455, -0.007555823773145676, -0.028327319771051407, -0.057527441531419754, 0.001914633670821786, 0.03534477576613426, -0.09858579933643341, -0.002827608957886696, 0.003750191070139408, -0.00995339173823595, -0.05183716118335724, 0.002612737473100424, 0.012751772999763489, -0.04867975413799286, -0.027876121923327446, 0.006579988170415163, -0.027459360659122467, -0.02892976999282837, 0.038703396916389465, 0.02625294029712677, 0.03153060004115105, 0.008480064570903778, -0.007803755346685648, -0.044474780559539795, 0.024465089663863182, -0.05275828018784523, -0.09917537122964859, -0.022311681881546974, -0.002833621809259057, 0.014758925884962082, 0.01491508912295103, -0.04423527419567108, -0.06381525099277496, -0.08857926726341248, 0.03604859858751297, -0.02268313430249691, 0.00008215238631237298, -0.00023845139367040247, -0.031109482049942017, 0.01743173412978649, -0.027575518935918808, -0.029742682352662086, -0.01937706395983696, -0.04372040182352066, -0.0161348357796669, -0.03828126937150955, 0.04788711667060852, 0.07355456799268723, -0.05841436982154846, 0.0753229632973671, 0.030377080664038658, -0.04631531983613968, -0.0034542367793619633, 0.0006208509439602494, 0.021477166563272476, 0.025577057152986526, -0.004231694154441357, 0.02988383173942566, 0.029011234641075134, 0.0003328777675051242, 0.03849828243255615, -0.025748133659362793, -0.016895322129130363, -0.04555024951696396, -0.3098843991756439, -0.08472798764705658, -0.027802735567092896, 0.021426595747470856, 0.010149332694709301, -0.03180128335952759, 0.02084416337311268, -0.006525347009301186, -0.007546436972916126, 0.02426011487841606, 0.08548526465892792, -0.05993631109595299, 0.0250149704515934, -0.08154767006635666, 0.022287992760539055, -0.004533449653536081, -0.03954952210187912, -0.00029955856734886765, 0.020171022042632103, 0.0077566527761518955, -0.03337281942367554, -0.029949089512228966, 0.010654467158019543, -0.09542006254196167, 0.0038501357194036245, -0.019822638481855392, 0.0646771639585495, 0.10587102919816971, 0.03938116878271103, -0.05255339294672012, 0.048561811447143555, -0.008058649487793446, 0.030775398015975952, -0.12227832525968552, 0.020319100469350815, -0.0026311837136745453, 0.0023166530299931765, -0.025076868012547493, -0.026747209951281548, -0.03022097982466221, -0.06674978882074356, 0.008241098374128342, -0.06410503387451172, -0.021152392029762268, -0.07441376149654388, 0.032783474773168564, -0.011172374710440636, -0.028217077255249023, -0.030764466151595116, 0.07621835917234421, 0.007093404419720173, -0.005182825494557619, 0.027017507702112198, 0.018758680671453476, -0.018099114298820496, -0.015265311114490032, -0.06936807930469513, 0.034834399819374084, 0.00556960329413414, -0.028630223125219345, 0.03320463374257088, 0.018509143963456154, 0.048547662794589996, -0.06559526175260544, -0.0016112796729430556, 0.0029421579092741013, -0.026164749637246132, 0.027383727952837944, 0.03415234014391899, -0.0004896759055554867, -0.03611049801111221, 0.14631898701190948, -0.01037564780563116, 0.031265988945961, 0.034354738891124725, 0.02613064832985401, 0.005181632470339537, -0.003829277353361249, -0.003537451848387718, -0.017570141702890396, 0.01767730712890625, -0.025876818224787712, 0.07471286505460739, -0.007538593839854002, -0.01958593912422657, 0.05993294343352318, -0.024516180157661438, -0.060099903494119644, 0.08385542035102844, -0.009585271589457989, -0.02470419928431511, 0.027733812108635902, -0.027893660590052605, -0.08869533985853195, 0.057348545640707016, -0.004968509543687105, -0.1989787071943283, 0.014016782864928246, 0.05132734030485153, 0.06196904182434082, 0.010507875122129917, 0.015628661960363388, 0.026395725086331367, -0.03910360857844353, 0.009540476836264133, 0.046772729605436325, 0.02801671251654625, 0.04072302579879761, -0.04400256648659706, -0.006542367860674858, 0.019967319443821907, -0.00972689874470234, -0.013806288130581379, 0.03938193991780281, -0.02149728313088417, 0.02916339598596096, 0.03822922334074974, -0.024070121347904205, 0.1498679369688034, 0.007850703783333302, -0.026500191539525986, 0.014700045809149742, 0.016202116385102272, 0.03458186611533165, 0.04567762836813927, 0.013348433189094067, -0.02598443627357483, -0.022796345874667168, 0.024351954460144043, 0.02162795327603817, 0.03657745569944382, -0.07298970967531204, -0.01433894969522953, 0.001276206225156784, 0.0386919230222702, -0.0008609794313088059, 0.022697236388921738, 0.044284600764513016, 0.016060469672083855, 0.048353321850299835, 0.05420975014567375, 0.0026168334297835827, 0.022027980536222458, -0.032707005739212036, -0.08125165849924088, -0.0015646562678739429, -0.02152201160788536, -0.05057023465633392, -0.006613363046199083, 0.03149927780032158, -0.02165907993912697, 0.05652550980448723, 0.051050879061222076, -0.034646861255168915, 0.04823354259133339, -0.0046553886495530605, -0.01173565723001957, -0.020570356398820877, 0.10431701689958572, 0.023398131132125854, 0.03095194697380066 ]
[ -0.02507581003010273, -0.018840519711375237, 0.015138496644794941, -0.0036032265052199364, 0.026659535244107246, -0.014284134842455387, 0.027554402127861977, 0.02377098798751831, -0.024673981592059135, 0.0026155782397836447, -0.005254744552075863, 0.04678735136985779, 0.06037341058254242, -0.019486501812934875, 0.02110012248158455, 0.019394846633076668, 0.005962390918284655, -0.005762830842286348, 0.025441478937864304, -0.007680140435695648, 0.0023659472353756428, 0.06035342812538147, 0.007154886610805988, 0.013384854421019554, -0.039786990731954575, -0.0067010498605668545, -0.06108812987804413, -0.05246039107441902, 0.03635145351290703, -0.10837267339229584, -0.038473941385746, -0.01995771937072277, -0.0005891848704777658, 0.03304451331496239, 0.009447830729186535, -0.00840577483177185, -0.010310543701052666, -0.029674667865037918, -0.022624218836426735, 0.0040234592743217945, -0.007699667476117611, -0.0737907737493515, -0.051616135984659195, -0.013272592797875404, 0.009515373967587948, -0.035411298274993896, -0.02874918095767498, -0.01806558482348919, 0.013915692456066608, -0.0302358940243721, -0.04428049921989441, -0.03816750645637512, -0.04824134334921837, -0.009699487127363682, -0.023261722177267075, -0.005828272085636854, -0.03689214587211609, 0.007018158212304115, 0.051386818289756775, 0.01644919067621231, 0.054529353976249695, -0.04120132699608803, -0.04107121005654335, -0.016715511679649353, 0.015795011073350906, -0.013053767383098602, 0.0198543518781662, -0.01848510093986988, -0.039344869554042816, 0.01488413754850626, 0.01555496547371149, 0.04269302636384964, -0.062159549444913864, -0.019387757405638695, -0.03981224074959755, 0.017251627519726753, 0.008099432103335857, -0.02359381504356861, 0.005802442319691181, 0.036740947514772415, -0.027396420016884804, 0.03348534554243088, 0.026520684361457825, 0.05274581164121628, -0.004793890286237001, -0.012841260991990566, 0.028025953099131584, 0.01128803938627243, 0.04289974272251129, 0.007979038171470165, -0.026852430775761604, -0.015028349123895168, 0.007225396111607552, 0.008035534992814064, -0.06593654304742813, -0.012760934419929981, -0.0030815061181783676, -0.0413670651614666, 0.01161406934261322, 0.8194997906684875, 0.013474716804921627, 0.011467589065432549, 0.042518798261880875, 0.003408125601708889, 0.017715929076075554, -0.01269067544490099, -0.027636593207716942, 0.04480840265750885, 0.060158707201480865, -0.030660130083560944, 0.005970038939267397, 0.018834451213479042, -0.000682408339343965, 0.001331710140220821, 0.0520973801612854, -0.00036481779534369707, 0.0026457186322659254, -0.039930909872055054, 0.025425124913454056, 0.012527698650956154, 0.042980268597602844, 0.03968092426657677, 0.04458814486861229, -0.01678456738591194, 0.03285291790962219, -0.14984722435474396, 0.024776095524430275, -7.756849183470234e-33, 0.039980944246053696, 0.0060773370787501335, 0.001114459941163659, 0.024147408083081245, -0.017813144251704216, 0.04800671339035034, -0.02462298609316349, 0.014921747148036957, -0.05106731876730919, -0.0266751479357481, 0.014529627747833729, -0.014946836046874523, 0.0073312572203576565, -0.01179776806384325, 0.043263666331768036, 0.00500381039455533, 0.012525239028036594, 0.03426607698202133, 0.03471717983484268, 0.013212821446359158, 0.053198449313640594, 0.027770085260272026, 0.024338848888874054, 0.01570310816168785, -0.00750531442463398, 0.017450975254178047, 0.026335565373301506, -0.006168439984321594, -0.014767850749194622, -0.04766223952174187, -0.005162874702364206, -0.0006126024527475238, -0.020373612642288208, 0.0005424949922598898, -0.008595342747867107, -0.06488630175590515, -0.051450423896312714, -0.005979583598673344, -0.012315988540649414, -0.016261979937553406, -0.023490630090236664, 0.04277447983622551, -0.039247848093509674, -0.036664996296167374, 0.03030862659215927, 0.024514859542250633, 0.0013123631943017244, -0.05383359640836716, 0.005559123586863279, -0.011735761538147926, 0.004242264200001955, 0.03951128572225571, 0.005271298810839653, 0.012530491687357426, -0.003573879599571228, 0.0024685682728886604, 0.020370813086628914, -0.03332224115729332, -0.030198320746421814, -0.0006512243999168277, 0.058725208044052124, 0.004376737866550684, 0.0020665391348302364, 0.017892559990286827, -0.004747866187244654, -0.008569053374230862, 0.0224522203207016, 0.013673077337443829, 0.012035597115755081, 0.013194972649216652, -0.03735143691301346, -0.02802760899066925, -0.010953071527183056, 0.002790777711197734, 0.0052123963832855225, -0.04083635285496712, -0.019244154915213585, 0.02587943524122238, -0.0232272669672966, 0.034486543387174606, 0.01975334621965885, -0.03687615692615509, -0.025524789467453957, -0.021182533353567123, -0.05410543084144592, -0.0008397227502427995, 0.0258451160043478, 0.003479165257886052, -0.0354016087949276, 0.02527885138988495, 0.004266568459570408, 0.03896813839673996, 0.004696730524301529, 0.004903246182948351, -0.037881720811128616, 7.054994567372863e-33, -0.02818666398525238, -0.03423987329006195, 0.007822098210453987, 0.008418256416916847, 0.03743410483002663, -0.014991202391684055, 0.031926531344652176, 0.027335630729794502, -0.042904552072286606, 0.041212983429431915, -0.009653103537857533, 0.010731183923780918, -0.03448377922177315, 0.027920648455619812, 0.02936907671391964, 0.006675567012280226, -0.002969674300402403, -0.06650196015834808, -0.024460112676024437, 0.015006299130618572, 0.014086583629250526, 0.0001337791618425399, 0.017673609778285027, 0.024512071162462234, 0.0505811870098114, 0.05693219602108002, 0.008996502496302128, 0.01940549537539482, 0.015776460990309715, -0.031490687280893326, 0.04190845787525177, -0.0026789489202201366, 0.01531276199966669, -0.006359698250889778, 0.005855827126652002, 0.0271251630038023, -0.010834051296114922, -0.03813675418496132, 0.04637618735432625, -0.04654550179839134, 0.05633050203323364, 0.011638017371296883, 0.022239457815885544, 0.016554851084947586, -0.005661629606038332, -0.00628452654927969, 0.01131867803633213, -0.041992172598838806, -0.01888692006468773, -0.023044388741254807, 0.018672658130526543, -0.019755445420742035, 0.018774349242448807, -0.0046249087899923325, -0.014119443483650684, -0.03295521438121796, -0.015238198451697826, 0.011102000251412392, -0.05956963822245598, -0.013081823475658894, -0.00779366260394454, 0.01713505946099758, -0.014922698959708214, 0.00013059581397101283, -0.05343211814761162, -0.04631885513663292, 0.00045553481322713196, -0.018620869144797325, -0.020722240209579468, -0.021218743175268173, 0.013746817596256733, 0.011806161142885685, 0.012379338964819908, 0.0018800199031829834, 0.02785683423280716, -0.0007129706791602075, 0.016868865117430687, 0.003077339380979538, -0.015513896010816097, -0.013545799069106579, 0.015225647948682308, 0.04118076339364052, 0.034787170588970184, 0.003925591241568327, -0.020798197016119957, 0.008571441285312176, -0.013066970743238926, 0.033283788710832596, -0.0026362736243754625, -0.032295480370521545, -0.031294263899326324, -0.015608293935656548, -0.0035814903676509857, 0.009650439955294132, -0.0019525211537256837, -1.314596875801044e-8, -0.04754703864455223, -0.0008222099277190864, -0.03324606642127037, 0.033386070281267166, 0.03542192280292511, -0.001841024961322546, -0.0065662139095366, -0.008030248805880547, 0.011513849720358849, 0.015520937740802765, 0.02448405511677265, -0.01720457337796688, 0.010983557440340519, 0.03647315129637718, 0.016186833381652832, -0.0359618104994297, -0.038905538618564606, -0.028329310938715935, 0.031242234632372856, 0.011002527549862862, 0.03014359250664711, 0.038610149174928665, -0.006753132678568363, -0.006929799448698759, 0.004632965195924044, -0.026042046025395393, 0.017377911135554314, -0.058515407145023346, -0.01527425367385149, -0.01893584243953228, -0.00911773182451725, -0.051976703107357025, -0.0502912700176239, 0.0013919741613790393, 0.022498464211821556, -0.03322209417819977, 0.02518482692539692, -0.03953297808766365, 0.00893455557525158, -0.03250061720609665, 0.01865733414888382, -0.01533282920718193, 0.042224250733852386, -0.02079257369041443, -0.04519414156675339, -0.016027942299842834, -0.031168801710009575, -0.01023692823946476, 0.03384384140372276, -0.003441196633502841, -0.0008542983559891582, -0.021746104583144188, -0.017069142311811447, 0.058187901973724365, 0.009698682464659214, -0.05918564274907112, 0.04758978262543678, -0.033157750964164734, -0.01995069906115532, -0.02391396462917328, 0.004482992459088564, 0.02904525026679039, -0.004304772708564997, -0.017556805163621902 ]
blogging-for-google-error-messages
https://markhneedham.com/blog/2022/11/22/blogging-for-google-error-messages
false
2022-07-27 02:44:37
Vercel: Redirect wildcard (nested) paths
[ "vercel" ]
[ "vercel" ]
We're deploying the StarTree developer site, https://dev.startree.ai/[dev.startree.ai^], to Vercel, and recently needed to do some redirects of a few pages. I initially added https://nextjs.org/docs/api-reference/next.config.js/redirects[individual redirects^] for each page, but there were eventually too many pages and I wanted to automate it. In this post we'll learn how to do that. .Vercel: Redirect wildcard (nested) paths image::{{<siteurl>}}/uploads/2022/07/vercel-nested-paths-banner.png[] We wanted to redirect everything under https://dev.startree.ai/docs/thirdeye to https://dev.startree.ai/docs/startree-enterprise-edition/startree-thirdeye/ and started off by using wild card path matching, as seen in the `vercel.json` file below: .vercel.json [source, json] ---- { "redirects": [ { "source": "/docs/thirdeye/:path*", "destination": "/docs/startree-enterprise-edition/startree-thirdeye/:path*", "permanent": true } ] } ---- This worked for the top level paths and even ones nested to several levels, like https://dev.startree.ai/docs/thirdeye/concepts/root-cause-analysis: [source, bash] ---- wget -S https://dev.startree.ai/docs/thirdeye/concepts/root-cause-analysis ---- .Output [source, text] ---- --2022-07-27 10:26:17-- https://dev.startree.ai/docs/thirdeye/concepts/root-cause-analysis Resolving dev.startree.ai (dev.startree.ai)... 76.76.21.164, 76.76.21.9 Connecting to dev.startree.ai (dev.startree.ai)|76.76.21.164|:443... connected. HTTP request sent, awaiting response... HTTP/1.1 308 Permanent Redirect Cache-Control: public, max-age=0, must-revalidate Content-Type: text/plain Date: Wed, 27 Jul 2022 09:26:18 GMT Location: /docs/startree-enterprise-edition/startree-thirdeye/concepts/root-cause-analysis Refresh: 0;url=/docs/startree-enterprise-edition/startree-thirdeye/concepts/root-cause-analysis Server: Vercel Strict-Transport-Security: max-age=63072000 X-Vercel-Cache: MISS X-Vercel-Id: lhr1::m8wct-1658913978046-3b7c6c4a96be Transfer-Encoding: chunked Location: /docs/startree-enterprise-edition/startree-thirdeye/concepts/root-cause-analysis [following] --2022-07-27 10:26:18-- https://dev.startree.ai/docs/startree-enterprise-edition/startree-thirdeye/concepts/root-cause-analysis Reusing existing connection to dev.startree.ai:443. HTTP request sent, awaiting response... HTTP/1.1 200 OK ---- I thought this was gonna be the solution, but then I checked a URL that had a trailing slash and the redirection didn't work anymore: [source, bash] ---- wget -S https://dev.startree.ai/docs/thirdeye/concepts/root-cause-analysis/ ---- .Output [source, text] ---- --2022-07-27 10:25:23-- https://dev.startree.ai/docs/thirdeye/concepts/root-cause-analysis/ Resolving dev.startree.ai (dev.startree.ai)... 76.76.21.61, 76.76.21.241 Connecting to dev.startree.ai (dev.startree.ai)|76.76.21.61|:443... connected. HTTP request sent, awaiting response... HTTP/1.1 404 Not Found ---- A bit of searching led me to this https://github.com/vercel/next.js/issues/24288[GitHub issue^], which suggested that I needed to use the https://nextjs.org/docs/api-reference/next.config.js/rewrites#regex-path-matching[regex path matching^] syntax instead of wildcard path matching. I updated my vercel.json file to look like this: .vercel.json [source, json] ---- { "redirects": [ { "source": "/docs/thirdeye/:path(.*)", "destination": "/docs/startree-enterprise-edition/startree-thirdeye/:path", "permanent": true } ] } ---- And now if we try to access the page with the trailing slash again: [source, bash] ---- wget -S https://dev.startree.ai/docs/thirdeye/concepts/root-cause-analysis/ ---- .Output [source, text] ---- --2022-07-27 10:28:34-- https://dev.startree.ai/docs/thirdeye/concepts/root-cause-analysis/ Resolving dev.startree.ai (dev.startree.ai)... 76.76.21.93, 76.76.21.98 Connecting to dev.startree.ai (dev.startree.ai)|76.76.21.93|:443... connected. HTTP request sent, awaiting response... HTTP/1.1 308 Permanent Redirect Cache-Control: public, max-age=0, must-revalidate Content-Type: text/plain Date: Wed, 27 Jul 2022 09:28:34 GMT Location: /docs/startree-enterprise-edition/startree-thirdeye/concepts/root-cause-analysis/ Refresh: 0;url=/docs/startree-enterprise-edition/startree-thirdeye/concepts/root-cause-analysis/ Server: Vercel Strict-Transport-Security: max-age=63072000 X-Vercel-Cache: MISS X-Vercel-Id: lhr1::rz74m-1658914114559-78a83552b924 Transfer-Encoding: chunked Location: /docs/startree-enterprise-edition/startree-thirdeye/concepts/root-cause-analysis/ [following] --2022-07-27 10:28:34-- https://dev.startree.ai/docs/startree-enterprise-edition/startree-thirdeye/concepts/root-cause-analysis/ Reusing existing connection to dev.startree.ai:443. HTTP request sent, awaiting response... HTTP/1.1 200 OK ---- Success!
In this post we'll learn how to do wildcard redirects for nested paths in Vercel.
uploads/2022/07/vercel-nested-paths-banner.png
[ -0.020594539120793343, -0.011849003843963146, -0.0015193840954452753, 0.02748548611998558, 0.06770820915699005, -0.0017066043801605701, 0.03793218359351158, 0.03139756619930267, 0.01885351911187172, -0.01805366389453411, -0.0557844415307045, -0.0074010794050991535, -0.04192763566970825, -0.027809275314211845, 0.010821746662259102, 0.055591970682144165, 0.05856214463710785, -0.0047737183049321175, -0.024315346032381058, -0.03768409788608551, 0.008397973142564297, 0.07686655223369598, 0.003340322757139802, 0.026502497494220734, 0.03469722718000412, 0.00014052736514713615, -0.000688589527271688, -0.010013706982135773, -0.05802493914961815, -0.0016567115671932697, 0.01076538860797882, -0.027265630662441254, 0.003093512263149023, -0.026828059926629066, 0.025972427800297737, -0.01846989616751671, -0.04991574212908745, 0.000858806015457958, -0.023718638345599174, 0.02110723964869976, -0.04540656879544258, 0.036410704255104065, -0.014233652502298355, 0.014452521689236164, 0.006342552602291107, 0.0193634070456028, -0.05429084971547127, 0.029944056645035744, 0.03183441981673241, -0.013736032880842686, -0.08735921233892441, 0.03808097541332245, -0.062019314616918564, -0.029467526823282242, 0.014225482009351254, 0.03956087306141853, 0.009386692196130753, -0.05306191369891167, 0.025520384311676025, -0.017338868230581284, -0.0018981883767992258, 0.017620490863919258, 0.028442522510886192, 0.0826568603515625, -0.0022526392713189125, -0.031626053154468536, -0.010737857781350613, 0.06739453971385956, -0.056893229484558105, -0.05308348312973976, 0.02207978442311287, 0.00824209675192833, -0.02218136005103588, 0.03678204119205475, -0.016497327014803886, -0.0336889810860157, -0.03234543651342392, 0.04129205644130707, 0.027681473642587662, 0.03313307464122772, -0.013260681182146072, 0.026412297040224075, 0.007850817404687405, 0.030985530465841293, -0.017106598243117332, -0.025497978553175926, -0.018592702224850655, 0.000587020069360733, -0.025115402415394783, 0.02738030254840851, 0.006205172277987003, -0.07214606553316116, 0.008034046739339828, 0.01298428699374199, 0.019048525020480156, 0.027690839022397995, 0.0026470129378139973, 0.0274728462100029, 0.012713300995528698, 0.02817479334771633, -0.04001963511109352, -0.014946479350328445, 0.003672923194244504, 0.011378027498722076, -0.03588678315281868, 0.016790220513939857, -0.02020353451371193, -0.038678161799907684, -0.009541220963001251, -0.005976875778287649, -0.04905127361416817, 0.03820572420954704, -0.01334224734455347, 0.026403889060020447, -0.07719916850328445, 0.07103711366653442, -0.002324380213394761, 0.003815991571173072, 0.001187370391562581, 0.013322962448000908, 0.07101370394229889, 0.009556208737194538, -0.011101866140961647, 0.053243108093738556, 0.024418208748102188, 0.030974917113780975, -0.023247694596648216, 0.034732185304164886, -0.0048500001430511475, -0.0725250393152237, 0.0027924624737352133, 0.05784708261489868, -0.014497831463813782, 0.01243739016354084, 0.00787106528878212, -0.0005409983568824828, 0.024741608649492264, 0.015459693036973476, 0.10289034992456436, 0.004622055217623711, -0.029294567182660103, -0.05162497237324715, 0.01879061385989189, -0.04651951417326927, 0.04501409828662872, 0.021380091086030006, -0.022102173417806625, -0.02345968969166279, -0.06420828402042389, 0.033352240920066833, 0.012115626595914364, 0.025979144498705864, 0.06747691333293915, -0.04420068487524986, -0.027064494788646698, 0.09490743279457092, 0.06656326353549957, -0.022778037935495377, -0.031737376004457474, -0.0016321656294167042, 0.05768086016178131, 0.035137031227350235, -0.0190417617559433, 0.060110725462436676, -0.027862191200256348, -0.009024238213896751, -0.018702572211623192, 0.048162877559661865, 0.03552272170782089, -0.0015938769793137908, -0.05083160102367401, -0.06334005296230316, 0.07040593773126602, -0.024441977962851524, 0.018278077244758606, 0.021293416619300842, 0.07635267078876495, -0.010454051196575165, 0.02056216634809971, 0.01172814704477787, -0.06530765444040298, 0.06622345000505447, -0.006193573120981455, 0.027520129457116127, 0.029053963720798492, -0.006372523494064808, 0.08376551419496536, 0.015229029580950737, 0.014694529585540295, 0.04975426569581032, -0.0799826979637146, -0.06007329002022743, -0.03891479969024658, -0.007829473353922367, 0.05924653634428978, -0.025914302095770836, -0.0093242097645998, 0.10579141229391098, 0.01806647889316082, 0.04408442601561546, 0.02236778661608696, -0.037400390952825546, 0.018410062417387962, -0.06842396408319473, -0.05368858948349953, 0.010739270597696304, 0.03248231112957001, -0.03759853541851044, -0.0066683427430689335, 0.02326933853328228, -0.05293421074748039, 0.027649344876408577, 0.02013448253273964, -0.008678559213876724, 0.048284340649843216, 0.03533313423395157, 0.03797178342938423, -0.04411885142326355, 0.05238018557429314, -0.04284054785966873, 0.0430460087954998, 0.007389938458800316, -0.008198374882340431, -0.011698447167873383, -0.011118734255433083, 0.10228884965181351, 0.04942447319626808, -0.0181963499635458, -0.05504441633820534, -0.015357640571892262, -0.01826183870434761, -0.004493332467973232, 0.016003338620066643, -0.017862912267446518, -0.00981393363326788, 0.000745303463190794, -0.017690278589725494, -0.02353048324584961, 0.005923140328377485, -0.04832034185528755, 0.0011117550311610103, 0.04447455331683159, -0.012736011296510696, 0.04506073147058487, 0.029563305899500847, -0.012045253068208694, 0.014235113747417927, -0.026238342747092247, -0.03873495012521744, 0.01171651016920805, 0.00905632134526968, -0.016708455979824066, 0.014238069765269756, -0.04126504063606262, -0.013799929060041904, -0.0269357617944479, -0.03033450059592724, 0.0284257922321558, 0.024288175627589226, 0.07670906186103821, 0.000016367172065656632, 0.044949889183044434, 0.010747252032160759, 0.008121750317513943, 0.019359737634658813, -0.03184321150183678, -0.0831051841378212, -0.0068677375093102455, 0.0269966758787632, 0.01725398749113083, 0.01221512258052826, 0.0026039027143269777, 0.017182117328047752, -0.028194045647978783, 0.018115786835551262, -0.010888817720115185, 0.021154243499040604, -0.011272893287241459, 0.009283672086894512, -0.03216380998492241, -0.0073799449019134045, 0.028341736644506454, -0.03403676301240921, -0.03018159233033657, -0.016407344490289688, -0.029885582625865936, 0.04229607433080673, -0.08318798989057541, -0.0207806583493948, -0.006400634068995714, 0.008988107554614544, 0.04138430207967758, -0.005986963864415884, 0.058131664991378784, 0.04000357538461685, 0.019986644387245178, -0.008720573037862778, 0.005881308577954769, -0.00033905639429576695, 0.03314462676644325, -0.003055546199902892, 0.003956295549869537, 0.03116660565137863, -0.03520750626921654, 0.03593301773071289, -0.01268802396953106, 0.00981082022190094, -0.03725907951593399, -0.2805476784706116, 0.022795796394348145, 0.003183454740792513, -0.019133131951093674, 0.024647196754813194, -0.010998460464179516, 0.006192549131810665, -0.044983718544244766, 0.007025819271802902, 0.02480848878622055, 0.015531908720731735, -0.04793011397123337, 0.006056935992091894, 0.035146329551935196, -0.02741716429591179, 0.03245660662651062, -0.05361216142773628, -0.049891483038663864, 0.01999560557305813, 0.01326136477291584, -0.04051634669303894, -0.052355725318193436, 0.012071525678038597, 0.020245686173439026, 0.013339443132281303, 0.027886277064681053, -0.0752985030412674, 0.04267782345414162, -0.010600273497402668, -0.04389297589659691, 0.032915856689214706, -0.05034109950065613, 0.0002947338798549026, 0.0013942655641585588, -0.034258369356393814, -0.05362539365887642, 0.05717049911618233, -0.016162335872650146, -0.00930618867278099, -0.012800331227481365, -0.03245385363698006, -0.013350442983210087, 0.023243490606546402, -0.01749168150126934, 0.06557992845773697, -0.041722219437360764, -0.07780391722917557, -0.022076036781072617, -0.025821441784501076, 0.058958351612091064, -0.04838882386684418, -0.009648471139371395, -0.03010541945695877, 0.0625518187880516, 0.013557534664869308, -0.046045780181884766, -0.024227403104305267, -0.020619802176952362, -0.045263804495334625, -0.0035202265717089176, 0.02422642707824707, -0.033936019986867905, -0.030564114451408386, -0.04302780702710152, -0.007595889735966921, -0.05610456317663193, -0.051408395171165466, -0.03128260374069214, 0.04185810685157776, 0.0003629126586019993, -0.03663015365600586, 0.02629876881837845, -0.035852447152137756, -0.1161639541387558, -0.022136278450489044, -0.026448240503668785, -0.007777197286486626, -0.011182851158082485, -0.01891310326755047, 0.05700371041893959, -0.021362530067563057, -0.011991554871201515, -0.00019587103452067822, 0.0081368712708354, 0.0046224952675402164, 0.004778838716447353, 0.024546638131141663, -0.020410766825079918, -0.006196653936058283, 0.0019439833704382181, 0.07742125540971756, -0.010529088787734509, -0.03400177136063576, -0.006879717577248812, 0.01337981317192316, 0.010703320614993572, -0.0029959941748529673, -0.023067215457558632, 0.019469404593110085, 0.032022710889577866, 0.05722267925739288, -0.03953867405653, 0.023106640204787254, -0.011297246441245079, -0.0007972281309776008, 0.01113166380673647, -0.03928801789879799, -0.007073441054672003, 0.005648850463330746, 0.03456064686179161, -0.007768465671688318, 0.00007164059934439138, 0.013493245467543602, -0.03961130604147911, -0.03762779384851456, 0.011813066899776459, 0.02687869407236576, 0.02773277647793293, 0.008095797151327133, -0.04113724082708359, -0.07043586671352386, 0.03738807141780853, 0.009225092828273773, -0.004312801640480757, -0.007132214959710836, -0.012324378825724125, 0.005654624663293362, 0.013371591456234455, 0.04777194932103157, 0.012541435658931732, -0.027113772928714752, 0.0065305838361382484, 0.010309085249900818, -0.042656902223825455, 0.02190123312175274, -0.08543676137924194, -0.025438079610466957, -0.02564512938261032, 0.02314043790102005, 0.0027823024429380894, -0.04746780917048454, 0.01533206831663847, 0.0517505444586277, 0.04131012782454491, 0.04975784942507744, 0.0025594509206712246, 0.04944046586751938, -0.009880001656711102, 0.0004898002953268588, -0.03742954507470131, -0.015518906526267529, -0.02138991467654705, 0.017594246193766594, -0.04326806217432022, -0.006033786106854677, -0.04546501487493515, 0.014214679598808289, -0.011741898953914642, -0.03417413681745529, -0.034342192113399506, 0.03748362883925438, -0.053284067660570145, 0.008884215727448463, 0.017472553998231888, -0.008023839443922043, 0.0619778111577034, 0.019901035353541374, 0.013342089019715786, -0.016141854226589203, 0.0008326467941515148, 0.02849244326353073, -0.0034467820078134537, -0.03195859119296074, -0.01766911894083023, -0.047558724880218506, 0.056028421968221664, 0.010806676000356674, 0.02394753135740757, 0.005313436035066843, -0.006461701821535826, -0.0437072291970253, 0.008669368922710419, 0.01269653532654047, 0.029946137219667435, 0.030666053295135498, -0.0183164793998003, -0.02039361000061035, 0.010412728413939476, -0.041983041912317276, -0.05225959047675133, -0.040473468601703644, 0.03353758528828621, -0.05216807872056961, 0.014990214258432388, -0.017763882875442505, -0.07049085944890976, 0.025884518399834633, -0.0002760811476036906, 0.01578405126929283, 0.01536557637155056, -0.04462204873561859, -0.017646675929427147, -0.033915262669324875, 0.0016114558093249798, 0.039310503751039505, -0.05446520075201988, -0.010449567809700966, 0.014550129882991314, 0.016496513038873672, 0.01680625230073929, 0.02531653828918934, -0.06423287093639374, -0.05644802749156952, -0.027462415397167206, 0.023265833035111427, -0.05221182852983475, -0.047598835080862045, -0.02336917258799076, -0.006029857322573662, -0.00580357713624835, 0.026233917102217674, -0.006097070407122374, -0.02265298180282116, 0.01905289851129055, -0.034281108528375626, -0.005699672736227512, 0.007581612560898066, -0.03310588002204895, 0.0009403839358128607, -0.008629563264548779, 0.022104837000370026, -0.013518039137125015, 0.036885570734739304, 0.02741815336048603, -0.019150804728269577, 0.002826862270012498, -0.05329878255724907, 0.010950201191008091, 0.0048907180316746235, 0.023856358602643013, -0.013427875936031342, -0.0034239336382597685, -0.04513366520404816, -0.00545803178101778, -0.00004298162821214646, 0.007764832582324743, -0.06704932451248169, -0.05254694074392319, 0.026166433468461037, 0.061212703585624695, -0.007839309982955456, 0.013298776000738144, 0.0023837988264858723, -0.015399223193526268, 0.0612616166472435, -0.05943892523646355, -0.04092053696513176, -0.010207805782556534, -0.07919760793447495, 0.04501231759786606, 0.033836375921964645, 0.017502931877970695, -0.04752139002084732, 0.046439871191978455, 0.05351237580180168, -0.005473260302096605, 0.010753084905445576, -0.04965676739811897, 0.04168517142534256, -0.021779997274279594, -0.014148572459816933, -0.10318298637866974, 0.012921682558953762, 0.04725031182169914, -0.04208233952522278, -0.011252859607338905, -0.011042172089219093, -0.016415603458881378, 0.03756614029407501, -0.0552055649459362, -0.04285641387104988, 0.030274342745542526, -0.017699068412184715, 0.010635641403496265, 0.0099184550344944, -0.03896568343043327, 0.049458492547273636, 0.04244108870625496, -0.0341193825006485, -0.003664124757051468, -0.035675954073667526, 0.06503909081220627, 0.0030348729342222214, 0.03362072631716728, -0.015320534817874432, -0.03216911107301712, 0.0691709890961647, 0.019280053675174713, -0.009001350030303001, 0.06794466823339462, -0.012162218801677227, 0.04610403627157211, 0.04582846537232399, 0.007198895327746868, -0.029819846153259277, 0.027384188026189804, -0.005542213097214699, -0.042671117931604385, 0.07006602734327316, 0.03496179357171059, -0.014023580588400364, -0.017438244074583054, 0.05703197792172432, 0.014286953024566174, -0.023542916402220726, -0.02807694859802723, 0.019829237833619118, -0.06307713687419891, -0.02981521748006344, -0.03862185776233673, 0.018486330285668373, -0.0021020451094955206, 0.020898547023534775, -0.044622305780649185, 0.021408991888165474, 0.07440299540758133, 0.006229315418750048, -0.0009310077875852585, 0.022208157926797867, 0.049298450350761414, 0.08227468281984329, 0.031043143942952156, 0.00620304187759757, 0.0869920626282692, -0.025417879223823547, -0.045753054320812225, -0.023647435009479523, -0.022808952257037163, 0.00018750598246697336, -0.02852613478899002, 0.02844575047492981, 0.07277994602918625, -0.011985690332949162, 0.06336786597967148, -0.00860838033258915, 0.00018356952932663262, 0.010727670043706894, 0.011215487495064735, 0.0051638344302773476, 0.0702374279499054, 0.024511875584721565, 0.013276699930429459, -0.010267289355397224, -0.028637956827878952, 0.026689674705266953, -0.0013183276169002056, 0.00006129335815785453, 0.048819996416568756, -0.008514775894582272, 0.01679404079914093, 0.004210507031530142, 0.04803406819701195, 0.0669483169913292, -0.024959415197372437, -0.00008566097676521167, 0.0022523347288370132, 0.026955941691994667, 0.01719953492283821, 0.0338166281580925, -0.007586231455206871, -0.02947106398642063, 0.018892277032136917, -0.05227165296673775, -0.032829176634550095, -0.024766037240624428, -0.034783538430929184, 0.044080983847379684, -0.03343906253576279, -0.02439405396580696, 0.01907600462436676, -0.005514087621122599, -0.0047184377908706665, -0.02241446077823639, -0.0548691563308239, -0.03544263541698456, -0.036226026713848114, -0.004142437130212784, 0.01024136133491993, 0.02672308124601841, -0.007677407003939152, -0.028734151273965836, -0.01791095733642578, 0.00546292494982481, 0.03452746197581291, -0.023897306993603706, 0.007312840782105923, 0.0209639985114336, 0.03843003138899803, 0.0032582739368081093, 0.045926716178655624, 0.04840952903032303, -0.019443120807409286, -0.02647566609084606, -0.003098567482084036, 0.006472570821642876, 0.04849403351545334, -0.008167476393282413, -0.006291685625910759, -0.04995264858007431, 0.02571418136358261, 0.02754736877977848, 0.060250308364629745, -0.0718337744474411, 0.025135884061455727, 0.052975717931985855, -0.0182646531611681, 0.05271163210272789, -0.0027994553092867136, 0.0009524340275675058, 0.0026069767773151398, -0.02003353089094162, 0.004211367107927799, -0.006314906291663647, 0.05733788013458252, -0.0002227261575171724, 0.06594525277614594, 0.034839704632759094, -0.030740803107619286, -0.005866409279406071, -0.006198335904628038, -0.006753656547516584, -0.027621665969491005, -0.018656231462955475, -0.022364439442753792, -0.060780636966228485, -0.08578677475452423, -0.05522002652287483, 0.005227837711572647, -0.008926761336624622, -0.05167575553059578, 0.0011183250462636352, 0.008646268397569656, -0.04072778671979904, 0.025631390511989594, -0.04994044080376625, -0.0021722717210650444, -0.012805736623704433, -0.0369902178645134, 0.0015986996004357934, 0.013896145857870579, 0.019962970167398453, 0.007324791979044676, 0.042662788182497025, 0.011981827206909657, 0.0004897569306194782, -0.03221524879336357, 0.02262047491967678, 0.03180000185966492, 0.00636567547917366, -0.02755034901201725 ]
[ -0.08666647970676422, -0.05292942747473717, -0.013735361397266388, -0.01904989406466484, 0.08035164326429367, -0.035781603306531906, -0.06689221411943436, 0.027890749275684357, 0.00882863812148571, -0.025706764310598373, -0.011505761183798313, -0.048648033291101456, -0.018804486840963364, -0.007072329055517912, 0.06055081635713577, 0.002387657295912504, -0.032019130885601044, -0.03421914950013161, -0.06877520680427551, 0.04127806797623634, 0.021357310935854912, -0.027956271544098854, -0.01785990223288536, -0.05568138509988785, -0.0024970145896077156, 0.047638051211833954, 0.025443920865654945, -0.04457024857401848, -0.015963764861226082, -0.17493635416030884, 0.0001277020201086998, -0.022208552807569504, -0.008874981664121151, -0.010055587626993656, 0.00805674772709608, 0.04136775806546211, -0.01209939643740654, 0.03393391892313957, 0.011504238471388817, 0.03355606645345688, 0.049401503056287766, 0.03052498586475849, -0.04929139465093613, -0.013621832244098186, 0.05809483677148819, -0.016196556389331818, 0.003970480058342218, -0.009716186672449112, -0.015522494912147522, -0.017084041610360146, -0.04285569489002228, -0.01684761978685856, 0.011015200056135654, -0.023104656487703323, -0.006385030224919319, 0.030149443075060844, 0.05522681400179863, 0.04064064472913742, 0.016526883468031883, 0.037145715206861496, 0.051757924258708954, -0.014234178699553013, -0.13974934816360474, 0.09048410505056381, 0.016400620341300964, 0.025819621980190277, -0.04104260727763176, -0.015686050057411194, -0.013567180372774601, 0.06612381339073181, 0.010639810003340244, -0.005433660000562668, -0.0531073622405529, 0.020939139649271965, 0.0026073851622641087, -0.021724222227931023, -0.002961050719022751, 0.05466650426387787, 0.062339480966329575, -0.04022730141878128, -0.02901727706193924, -0.03328270465135574, -0.05216764658689499, -0.006953822448849678, -0.01765456795692444, 0.017588697373867035, -0.009428146295249462, 0.04046810418367386, 0.03378511220216751, 0.023432699963450432, 0.08168084919452667, -0.05091966316103935, 0.050401296466588974, 0.004848590586334467, -0.09717684984207153, -0.00870993547141552, 0.009471360594034195, -0.00938658881932497, -0.017971564084291458, 0.3792937397956848, 0.012316737323999405, -0.017947442829608917, 0.049041055142879486, 0.02768596075475216, 0.024128010496497154, -0.0034906722139567137, -0.00643099844455719, -0.02210046350955963, 0.001086080214008689, -0.011765184812247753, 0.018750406801700592, -0.052988190203905106, 0.05323820188641548, -0.05698569491505623, 0.022744586691260338, 0.0006337667582556605, -0.008515710011124611, 0.011464188806712627, -0.027330998331308365, 0.05175178498029709, -0.008431428112089634, -0.0024190654512494802, 0.012316549196839333, 0.02227998711168766, 0.023332873359322548, 0.03755662590265274, 0.03813997283577919, 0.053711023181676865, 0.05245727673172951, 0.06867008656263351, 0.03179454803466797, -0.02225281111896038, -0.07798660546541214, -0.009768257848918438, -0.003812584327533841, 0.0026901012752205133, 0.025535888969898224, -0.030605092644691467, -0.008725831285119057, 0.03328400105237961, -0.03731771185994148, -0.0009775401558727026, 0.03918185830116272, -0.00964135117828846, -0.00729543948546052, 0.08224225044250488, 0.011952098459005356, -0.01743484102189541, -0.0044662258587777615, -0.018767178058624268, -0.03555538132786751, 0.0361168347299099, 0.03538138046860695, -0.059057559818029404, 0.00418974831700325, 0.03607357665896416, 0.04867256060242653, -0.018137251958251, -0.030049631372094154, -0.0037024780176579952, -0.009943261742591858, -0.04973230138421059, -0.032608091831207275, 0.06581678241491318, 0.027538467198610306, -0.12379676103591919, 0.0014829443534836173, 0.024213247001171112, -0.001439212472178042, -0.05352236330509186, -0.02458810806274414, 0.011589142493903637, -0.003387129632756114, -0.02661132998764515, 0.053196366876363754, -0.049149829894304276, -0.051237937062978745, 0.02572409249842167, 0.026985349133610725, 0.02747926115989685, -0.017274893820285797, 0.007510491646826267, -0.058969587087631226, 0.010550384409725666, -0.05823620408773422, -0.06301790475845337, -0.04770001024007797, -0.02056732587516308, -0.022888770326972008, -0.009445849806070328, -0.05193108692765236, -0.04743810370564461, -0.06190213933587074, 0.04044876992702484, -0.015169895254075527, -0.02326310984790325, 0.017301183193922043, -0.0037958864122629166, 0.0009283737163059413, -0.030687257647514343, 0.037169817835092545, 0.04695311561226845, 0.000852802419103682, 0.043510518968105316, -0.11348284780979156, 0.023156477138400078, 0.049701325595378876, -0.036518048495054245, 0.025771910324692726, 0.0343407541513443, -0.07383190840482712, -0.0065088458359241486, 0.018354350700974464, 0.02339949458837509, -0.004896373488008976, -0.008479398675262928, -0.012259000912308693, -0.003710859687998891, 0.04844171181321144, 0.07859616726636887, -0.025392072275280952, -0.014759312383830547, -0.002509291982278228, -0.3905620574951172, -0.06795503199100494, -0.035338256508111954, -0.011772545985877514, 0.014622336253523827, -0.03705253452062607, -0.006142469123005867, 0.010446920990943909, -0.008081622421741486, -0.002275476697832346, 0.11122221499681473, -0.013112307526171207, 0.031985197216272354, -0.04762228950858116, 0.019418200477957726, 0.05249282345175743, -0.0049987477250397205, -0.03542586416006088, -0.03266508877277374, 0.030976662412285805, 0.013952547684311867, -0.060179032385349274, 0.013036428950726986, -0.06435870379209518, 0.01871652901172638, -0.011587219312787056, 0.12279443442821503, 0.039652660489082336, 0.034187644720077515, -0.09012439846992493, 0.055897586047649384, 0.015237733721733093, -0.014043167233467102, -0.0970088392496109, -0.010288809426128864, -0.010507958009839058, 0.024337032809853554, 0.01092560961842537, 0.06504128873348236, -0.0045748017728328705, -0.01788199692964554, 0.03972555696964264, -0.04078655317425728, -0.0642256811261177, -0.03660057857632637, 0.005694527179002762, -0.04202654957771301, -0.011648711748421192, 0.021221458911895752, 0.06173887476325035, -0.0011153749655932188, 0.02923780307173729, 0.009636780247092247, 0.045065563172101974, 0.010992773808538914, 0.0023216824047267437, -0.06578300893306732, -0.0025035422295331955, -0.0015532096149399877, -0.016638455912470818, 0.029981885105371475, 0.0631866380572319, 0.02738076075911522, -0.047633785754442215, 0.014039790257811546, 0.007205987349152565, -0.026500241830945015, -0.00034952283021993935, 0.06424697488546371, -0.02395627461373806, -0.0306134894490242, 0.06316140294075012, 0.01381231565028429, -0.01776762120425701, 0.03790935501456261, 0.06644561886787415, -0.030381379649043083, 0.0163531843572855, -0.0010887254029512405, -0.004005251917988062, 0.013668755069375038, -0.05063728615641594, 0.06005265191197395, -0.014862329699099064, -0.028567370027303696, 0.042917706072330475, -0.04000476375222206, -0.052319757640361786, 0.06397194415330887, -0.00037804595194756985, -0.031035277992486954, -0.017726855352520943, -0.01248825341463089, -0.040428224951028824, 0.08179857581853867, 0.023359639570116997, -0.2561618685722351, 0.03424278646707535, 0.046618662774562836, 0.07926083356142044, -0.005930610466748476, 0.03410158306360245, 0.05277257785201073, -0.06715881079435349, 0.014575832523405552, -0.00007520851795561612, 0.03229245916008949, 0.03631000965833664, 0.007239580154418945, 0.0026401143986731768, 0.005432668142020702, 0.007222132291644812, 0.07619456946849823, 0.0284729041159153, -0.005803904961794615, -0.00283407443203032, 0.033914245665073395, -0.0304331723600626, 0.16236382722854614, 0.037799473851919174, -0.022133156657218933, 0.017465420067310333, -0.05557940527796745, -0.004896930418908596, 0.037257302552461624, 0.026429099962115288, -0.007145604118704796, 0.021151896566152573, 0.057511795312166214, -0.0005977118853479624, 0.06131502240896225, -0.06177068501710892, 0.003498197766020894, 0.022431641817092896, 0.029856033623218536, -0.009727191179990768, -0.031712938100099564, 0.010842809453606606, -0.022968893870711327, 0.035327889025211334, 0.03546547889709473, -0.05917966365814209, 0.0064101614989340305, 0.004132329020649195, -0.04907213896512985, 0.00595209002494812, -0.014492503367364407, -0.035298265516757965, -0.035074278712272644, 0.031385231763124466, -0.001973424106836319, 0.055579736828804016, 0.04728367179632187, -0.04224073514342308, -0.04410868138074875, 0.0032652909867465496, 0.0077695781365036964, -0.03640938177704811, 0.13136999309062958, 0.011573459021747112, 0.030865661799907684 ]
[ 0.00869759451597929, 0.013220558874309063, -0.02439206838607788, 0.011458836495876312, 0.03195993974804878, -0.029265087097883224, -0.041294585913419724, 0.012353169731795788, 0.001410253462381661, 0.010581862181425095, -0.005131457932293415, -0.010314338840544224, -0.018138082697987556, 0.01865185797214508, 0.0005579292774200439, 0.025723997503519058, -0.01696070097386837, 0.024984415620565414, 0.022517798468470573, -0.04751000553369522, -0.014509457163512707, 0.0714275985956192, 0.024923743680119514, -0.010829384438693523, -0.031213846057653427, -0.008304786868393421, -0.04737915098667145, 0.008656264282763004, 0.019250640645623207, -0.14827436208724976, -0.011898850090801716, -0.04500198736786842, 0.018976639956235886, 0.023670507594943047, 0.014451393857598305, -0.0038558365777134895, -0.008623164147138596, -0.0025709911715239286, -0.011887308210134506, 0.019211474806070328, 0.059479422867298126, 0.03379672393202782, 0.00506014097481966, -0.031051605939865112, -0.008317721076309681, -0.034129489213228226, -0.10581495612859726, -0.004739191848784685, 0.0002672307309694588, 0.023237083107233047, -0.027606410905718803, -0.033631786704063416, 0.006018324755132198, -0.010627069510519505, -0.008771393448114395, 0.062287189066410065, 0.027554158121347427, -0.03228781744837761, 0.015859030187129974, -0.033437252044677734, 0.05824893340468407, 0.006807202938944101, -0.05010898783802986, -0.048907920718193054, -0.031555790454149246, -0.01012095995247364, -0.03314356505870819, -0.014011012390255928, 0.010234883055090904, -0.01118132658302784, 0.018527794629335403, 0.006374178919941187, -0.024517934769392014, -0.04106707498431206, 0.0248020701110363, -0.05525604262948036, 0.02480929158627987, 0.015223976224660873, -0.004985326901078224, -0.0369408056139946, -0.03653586655855179, -0.001107740798033774, -0.003418251872062683, 0.03792263939976692, -0.02378835901618004, -0.01377223152667284, -0.02503853477537632, 0.025236546993255615, 0.027017738670110703, -0.014610611833631992, 0.0058965315110981464, -0.023405039682984352, -0.014170096255838871, 0.05256856977939606, -0.09616614133119583, 0.02288973517715931, -0.025357022881507874, -0.04458031430840492, -0.01720893383026123, 0.7852193713188171, -0.010158329270780087, -0.040243908762931824, 0.056872762739658356, 0.004070785362273455, 0.012445018626749516, 0.009807569906115532, -0.00952999573200941, -0.02169877104461193, 0.0066544306464493275, 0.007304181344807148, 0.04644935950636864, 0.00531634408980608, 0.036396127194166183, 0.016559995710849762, 0.02433588169515133, -0.011530488729476929, -0.021463485434651375, -0.020252251997590065, 0.03031281568109989, 0.03442323952913284, 0.08346199989318848, 0.014346077106893063, 0.017396362498402596, 0.03435581177473068, 0.06473992764949799, -0.1977812796831131, -0.016615627333521843, -6.16661324237098e-33, 0.043516743928194046, -0.02933739498257637, 0.0060332161374390125, 0.03800284117460251, 0.02098785527050495, 0.01657116785645485, -0.00896077137440443, 0.0447787269949913, -0.03732755407691002, -0.017115185037255287, -0.02589937299489975, -0.02195638045668602, -0.005679382011294365, -0.04684368148446083, 0.02617672272026539, -0.02602609060704708, -0.0035867562983185053, 0.035108815878629684, 0.0022943690419197083, 0.025441475212574005, 0.03469036519527435, 0.016555508598685265, -0.02669576182961464, -0.0043046544305980206, 0.028608761727809906, 0.02031867392361164, 0.012106184847652912, -0.03148404508829117, 0.009230054914951324, -0.03288372606039047, 0.033585600554943085, 0.01034784596413374, 0.032553449273109436, -0.00004831371552427299, -0.011829705908894539, -0.002816577907651663, -0.02695898339152336, 0.0017931456677615643, -0.020468013361096382, -0.03599116951227188, -0.02218571864068508, 0.02894601970911026, -0.029049614444375038, -0.028809798881411552, -0.029842954128980637, -0.04305484518408775, -0.006995607167482376, 0.027036743238568306, 0.0034690818283706903, 0.05209939554333687, -0.01188685279339552, 0.006430775858461857, 0.007657776586711407, 0.0235707126557827, -0.01437982264906168, 0.01187120471149683, -0.045577529817819595, 0.011104538105428219, 0.025235816836357117, -0.00971374660730362, -0.004722858313471079, -0.02933141402900219, -0.04217006638646126, 0.03385742008686066, -0.0292199794203043, -0.015289193019270897, 0.009153805673122406, 0.03015294298529625, 0.009208682924509048, 0.015643548220396042, -0.03847280889749527, 0.02402043342590332, -0.006676971912384033, -0.044577036052942276, 0.004517707042396069, -0.04177352786064148, -0.009950741194188595, 0.03907442465424538, -0.00809696689248085, 0.049436330795288086, -0.01998617686331272, -0.0031161122024059296, -0.06064875051379204, 0.009383880533277988, 0.014637763611972332, -0.0590810626745224, 0.024647537618875504, 0.02665688842535019, -0.01660802774131298, 0.01746712438762188, 0.023968856781721115, 0.03228143975138664, -0.01179562322795391, 0.004812424536794424, -0.002489735372364521, 6.68224016593933e-33, -0.0223853699862957, -0.03208375349640846, 0.0017228202195838094, -0.009841282851994038, 0.029110457748174667, -0.05411864444613457, 0.03973263502120972, 0.00826629064977169, -0.023097310215234756, 0.02354704588651657, -0.02926732785999775, 0.06581632792949677, -0.02998087741434574, -0.017141761258244514, 0.020679885521531105, -0.020759213715791702, 0.034723009914159775, 0.00744635658338666, 0.03949001431465149, 0.021536067128181458, 0.021320773288607597, 0.024685269221663475, -0.02818894200026989, 0.016510458663105965, 0.01429640594869852, 0.028532393276691437, -0.009107708930969238, 0.01592010259628296, -0.04758371785283089, -0.024937421083450317, 0.03732151910662651, 0.0026086345314979553, 0.011900887824594975, 0.013179934583604336, -0.026166532188653946, 0.04056961089372635, -0.04380321130156517, -0.01419124472886324, 0.022409852594137192, -0.00013482561917044222, 0.06486713886260986, 0.02380787953734398, -0.011912660673260689, -0.01451386883854866, -0.010533374734222889, 0.024660049006342888, 0.0156492218375206, -0.0012134537100791931, 0.0017719308380037546, -0.03195061534643173, -0.01269492693245411, -0.008882686495780945, 0.005070157814770937, 0.009577620774507523, -0.0017610503127798438, -0.028571464121341705, -0.008249988779425621, 0.02079794369637966, -0.032372329384088516, 0.013820369727909565, -0.02015218883752823, 0.026534395292401314, 0.0010760292643681169, -0.002520066685974598, -0.0487041212618351, -0.02917766012251377, -0.05492714047431946, 0.006250189151614904, 0.02515253610908985, -0.008531000465154648, -0.014470511116087437, 0.04205776005983353, -0.010159659199416637, 0.04729020595550537, -0.01894843392074108, -0.06448251754045486, 0.00009505498019279912, -0.034925829619169235, 0.025915011763572693, 0.010973474010825157, -0.000092624883109238, 0.014213561080396175, 0.00014824212121311575, 0.048193059861660004, 0.026580139994621277, -0.018827538937330246, -0.026734713464975357, -0.0009305409621447325, 0.031435780227184296, 0.00452004186809063, -0.01801791414618492, -0.010788707993924618, -0.006448076572269201, 0.038942623883485794, -0.005234419833868742, -1.2349301137248858e-8, -0.04047241061925888, 0.03335508331656456, -0.011025624349713326, 0.012992536649107933, 0.02273683249950409, -0.014132015407085419, -0.012586735188961029, 0.024570634588599205, -0.05243084207177162, 0.00842023640871048, 0.03426142781972885, 0.007507756352424622, -0.010896899737417698, 0.017839061096310616, 0.026782387867569923, 0.00045793960453011096, 0.00973283126950264, -0.03577851504087448, 0.030677102506160736, -0.004758144728839397, 0.005218317732214928, 0.06675556302070618, -0.029568759724497795, -0.010872198268771172, -0.031620994210243225, -0.0042600431479513645, 0.02249646745622158, -0.11488240212202072, 0.010467425920069218, -0.018379416316747665, 0.012105589732527733, 0.004297627601772547, -0.010774405673146248, 0.07285457104444504, -0.02475239336490631, -0.009700612165033817, 0.0076581379398703575, 0.03621172532439232, 0.014810929074883461, -0.00671821553260088, 0.042539265006780624, -0.004592458717525005, -0.000500186812132597, -0.04200742393732071, -0.04961482435464859, -0.029520191252231598, -0.03146429359912872, 0.004118646960705519, 0.060289885848760605, -0.027896277606487274, 0.008663649670779705, -0.0327921137213707, 0.010562686249613762, 0.011906885541975498, 0.035640835762023926, -0.03440456464886665, 0.01910236105322838, -0.040840961039066315, -0.001263647573068738, 0.04135042428970337, 0.0782342255115509, 0.01983991265296936, 0.02375405840575695, 0.004421002231538296 ]
vercel-redirect-wildcards-nested-paths
https://markhneedham.com/blog/2022/07/27/vercel-redirect-wildcards-nested-paths
false
2022-07-11 02:44:37
Docusaurus: Side menu on custom page
[ "docusaurus" ]
[ "docusaurus" ]
I've been working with Docusaurus to build the https://dev.startree.ai/[dev.startree.ai] website over the last few months and I wanted to add https://docusaurus.io/docs/creating-pages[a custom page^] with a sidebar similar to the one that gets automatically generated on documentation pages. All the examples I could find showed you to create a splash page, so it took me a while to figure out how to do what I wanted, but in this post we'll learn how to do it. .Docusaurus: Side menu on custom page image::{{<siteurl>}}/uploads/2022/07/docusaurus-banner.png[] First, let's create a Docusaurus site called `my-website` by running the following command: [source, bash] ---- npx create-docusaurus@latest my-website classic ---- We can run the site locally with the following command: [source, bash] ---- npm run start ---- This will run a local webserver at http://localhost:3000, which will show the following page: .Docusaurus image::{{<siteurl>}}/uploads/2022/07/docusaurus.png[] Custom pages go under `src/pages` and whatever we name our file will be the name of the page. Let's create `myCustomPage.js` with the following contents: .src/pages/myCustomPage.js [source, js,indent=2] ---- include::content/2022/07/11/myCustomPage.js[] ---- If we want to adjust the items show in the side bar we'd need to change the `DocSidebar` component's `sidebar` property. Most of the code shown here describes CSS styles that do change location between minor versions. I'll try to keep the example up to date with the latest version. [NOTE] ==== The version of the docusaurus at the time of writing this blog post is 2.0.0-beta.22. ==== The custom page is created at http://localhost:3000/myCustomPage and looks like this: .Docusaurus Custom Page image::{{<siteurl>}}/uploads/2022/07/docusaurus-myCustomPage.png[]
In this post we'll learn how to add a side menu to a custom page with the Docusaurus static website generator.
uploads/2022/07/docusaurus-banner.png
[ -0.0011570440838113427, -0.0402265340089798, -0.021070821210741997, 0.028659531846642494, 0.07112500071525574, -0.018073905259370804, 0.011135781183838844, 0.040729083120822906, -0.0007005386869423091, -0.03643880411982536, -0.030136067420244217, -0.005940940696746111, -0.05906073376536369, 0.018345844000577927, -0.004777344409376383, 0.04596481844782829, 0.037426479160785675, 0.01428518258035183, 0.0008409013971686363, -0.020890649408102036, 0.014842608943581581, 0.05562245845794678, -0.02357526123523712, 0.015488858334720135, 0.010366572998464108, 0.025780297815799713, 0.04566009342670441, 0.01981128193438053, -0.07270937412977219, -0.020899008959531784, 0.0021309007424861193, -0.005161567125469446, -0.0125280087813735, 0.00047913810703903437, 0.020313994958996773, -0.0152928801253438, -0.045627109706401825, 0.011188365519046783, -0.007163056172430515, 0.008532478474080563, -0.0445995032787323, 0.03321243077516556, 0.0020012306049466133, 0.003834678791463375, -0.040778033435344696, 0.005181597080081701, 0.011107071302831173, 0.015136051923036575, -0.002094079041853547, -0.006008635740727186, -0.061249855905771255, 0.04774155467748642, -0.04391516372561455, -0.014664399437606335, 0.0020674432162195444, 0.045723751187324524, 0.017491426318883896, -0.03304928168654442, 0.017641577869653702, -0.02503226511180401, 0.007433308754116297, 0.012084459885954857, 0.02618815004825592, 0.06684663146734238, 0.010956594720482826, -0.019962355494499207, -0.008832632564008236, 0.04997379332780838, -0.0509786456823349, -0.018145665526390076, -0.004307881463319063, -0.027751382440328598, -0.02467452548444271, 0.014663439244031906, 0.02321646176278591, 0.001869837986305356, -0.005662289448082447, 0.055771972984075546, 0.0012311054160818458, 0.034655164927244186, 0.02193525992333889, 0.0003374485531821847, 0.04558901488780975, 0.02850358560681343, -0.016262643039226532, -0.02940681017935276, -0.038780663162469864, 0.020598305389285088, -0.019036700949072838, 0.05614648759365082, 0.02713318169116974, -0.06211875006556511, 0.03486327826976776, 0.026625365018844604, 0.007890152744948864, 0.0020638066343963146, -0.004678514786064625, 0.030611392110586166, 0.026674475520849228, 0.018646972253918648, -0.05358259752392769, 0.009024408645927906, -0.00206782016903162, 0.00928502157330513, -0.054244741797447205, -0.003281152341514826, -0.030920501798391342, -0.03074519895017147, 0.00004953958705300465, 0.02524424158036709, -0.024948302656412125, 0.018270818516612053, -0.006557711400091648, 0.02259003184735775, -0.05635901540517807, 0.07513662427663803, 0.010242198593914509, -0.017277104780077934, -0.012890816666185856, -0.004358823411166668, 0.03408991917967796, 0.04904376342892647, -0.01488710381090641, 0.08989956229925156, 0.005912247579544783, 0.028586631640791893, -0.017477771267294884, 0.042412612587213516, -0.03150923550128937, -0.05161229148507118, 0.008277617394924164, 0.0335279181599617, -0.004593230318278074, 0.0030842749401926994, -0.01921156235039234, 0.007925610989332199, 0.011095229536294937, 0.007323757745325565, 0.08927585929632187, 0.034483034163713455, -0.02392980270087719, -0.057422857731580734, -0.015794694423675537, -0.03752635046839714, 0.056382916867733, 0.004022721201181412, 0.025104932487010956, -0.04983261972665787, -0.048811838030815125, 0.033826716244220734, 0.017373008653521538, -0.004414675757288933, 0.06027540937066078, -0.03741084039211273, 0.03474821150302887, 0.0766848474740982, 0.08001194894313812, -0.008968700654804707, -0.0012320155510678887, 0.011402012780308723, 0.032617904245853424, 0.04953247681260109, -0.0039042176213115454, 0.06337378174066544, -0.02073732763528824, -0.017698155716061592, -0.011474670842289925, 0.03186427429318428, 0.023635614663362503, -0.012928706593811512, -0.07605521380901337, -0.06265606731176376, 0.07687743753194809, -0.012527838349342346, -0.008925971575081348, 0.043842315673828125, 0.07771617919206619, 0.019654858857393265, 0.03754506632685661, 0.020410403609275818, -0.07464710623025894, 0.031768426299095154, 0.005627778358757496, -0.013010731898248196, 0.03810427710413933, -0.028465233743190765, 0.09091790020465851, 0.03553611785173416, 0.009250887669622898, 0.02382468618452549, -0.07733863592147827, -0.09098996222019196, -0.04716666042804718, -0.00015880500723142177, 0.05337727814912796, -0.024111350998282433, -0.04179290682077408, 0.09247248619794846, 0.033080536872148514, 0.05797041580080986, -0.0007944158860482275, -0.019764702767133713, 0.021543748676776886, -0.029329368844628334, -0.061433106660842896, 0.0231883954256773, 0.036593884229660034, -0.05523116514086723, -0.02624369226396084, 0.0058685424737632275, -0.03399667143821716, 0.023325491696596146, 0.008301403373479843, 0.010044344700872898, 0.031753070652484894, 0.020938904955983162, 0.06128793954849243, -0.057394448667764664, 0.024633700028061867, -0.03604957461357117, 0.04003872349858284, -0.007935908623039722, -0.01600467786192894, -0.02039032243192196, 0.012017094530165195, 0.09848484396934509, 0.033328860998153687, -0.04689399152994156, -0.0697408989071846, -0.0035262545570731163, -0.018869375810027122, -0.00011618788266787305, -0.001420018495991826, 0.040320005267858505, 0.0009981432231143117, -0.010842417366802692, -0.006001591216772795, -0.0265138428658247, 0.008076868951320648, -0.03800985589623451, 0.032301221042871475, 0.07606537640094757, -0.014866958372294903, 0.040826406329870224, 0.00990641862154007, -0.031194856390357018, 0.017248114570975304, -0.01928859017789364, -0.061691414564847946, 0.013376372866332531, 0.035045187920331955, -0.016927598044276237, 0.051843564957380295, -0.03526347875595093, 0.003029168350622058, -0.016063334420323372, -0.05781984701752663, 0.017442243173718452, 0.0004348710644990206, 0.0366448350250721, -0.002430800348520279, 0.05528843030333519, -0.0022484110668301582, 0.008690486662089825, -0.01079059112817049, -0.027387095615267754, -0.05960399657487869, -0.022722605615854263, 0.012845586985349655, 0.045889388769865036, 0.004141864366829395, 0.0037438622675836086, -0.004675632808357477, -0.020136572420597076, 0.00752626359462738, -0.018493851646780968, -0.01547037623822689, -0.029473742470145226, 0.019154515117406845, -0.03973298519849777, -0.030167583376169205, 0.030630024150013924, -0.02277831919491291, -0.056174829602241516, 0.0038916049525141716, -0.07320064306259155, 0.016732074320316315, -0.09716199338436127, -0.05083179101347923, 0.0034271799959242344, 0.01590575836598873, 0.035015977919101715, 0.0034951826091855764, 0.06467632949352264, 0.06283915042877197, 0.00841499213129282, 0.005107808392494917, -0.01154984999448061, -0.02446679398417473, 0.029807548969984055, -0.0012718793004751205, -0.003996603190898895, 0.042792994529008865, -0.020775919780135155, 0.032099638134241104, -0.03453199192881584, 0.03138759732246399, -0.0419156551361084, -0.28662577271461487, 0.02977343648672104, -0.015229502692818642, -0.03614618256688118, 0.033554669469594955, -0.01991049200296402, -0.010759430937469006, -0.05017697066068649, -0.014397778548300266, 0.006514714565128088, -0.03640051931142807, -0.03398796543478966, -0.028097165748476982, 0.04641696438193321, -0.01928113028407097, 0.021869495511054993, -0.020103471353650093, -0.0015566777437925339, -0.020077330991625786, -0.0015986692160367966, -0.00945674255490303, -0.05281493067741394, 0.03265940025448799, 0.01981096714735031, 0.021681319922208786, 0.040577713400125504, -0.05380193144083023, 0.07251245528459549, -0.02678436040878296, -0.03659050911664963, 0.03457086533308029, -0.026009375229477882, 0.016196101903915405, -0.009667429141700268, -0.025946306064724922, -0.04014516621828079, 0.03969256207346916, -0.015231084078550339, -0.010812751948833466, 0.0030336116906255484, -0.023819586262106895, -0.04659357666969299, -0.005937014240771532, -0.028005730360746384, 0.052604369819164276, -0.009337721392512321, -0.07200472056865692, -0.022018879652023315, -0.046976082026958466, 0.0853940024971962, -0.00858073215931654, -0.046872857958078384, -0.0002701186458580196, 0.07386605441570282, -0.007216473110020161, -0.02437414415180683, 0.016537334769964218, 0.021061936393380165, -0.03724769130349159, -0.05287880450487137, 0.01842784695327282, -0.03808249533176422, -0.014312434941530228, -0.03994782269001007, 0.024179905652999878, -0.04673738032579422, -0.06790097057819366, -0.027383944019675255, 0.06296344101428986, 0.033534687012434006, -0.02785814180970192, 0.017787370830774307, -0.03204108774662018, -0.11172911524772644, 0.01386860478669405, -0.04021209105849266, -0.04218688979744911, -0.00796875823289156, -0.02622421458363533, 0.06913621723651886, -0.03381878137588501, -0.01666082628071308, 0.010029972530901432, 0.019064804539084435, 0.0004174286441411823, -0.010344435460865498, 0.05656023696064949, 0.00837810430675745, -0.021320750936865807, -0.0015914109535515308, 0.09055927395820618, -0.01562618650496006, -0.03838697075843811, -0.027292674407362938, 0.0017392875161021948, 0.027418343350291252, 0.00750585226342082, 0.0049226488918066025, 0.03933265060186386, 0.043953850865364075, 0.04206005111336708, -0.031397879123687744, -0.00921045895665884, -0.01658637449145317, -0.013865523040294647, -0.006693222094327211, -0.04170677438378334, 0.008493099361658096, 0.012868962250649929, 0.026674503460526466, -0.027060480788350105, -0.018707843497395515, 0.015082296915352345, -0.05077914148569107, -0.013595114462077618, 0.015895074233412743, 0.020651454105973244, 0.00899261049926281, 0.016486400738358498, -0.007970158010721207, -0.06205391883850098, 0.010640325956046581, -0.0008462377008982003, -0.006241092458367348, -0.0332094207406044, -0.023714831098914146, -0.01562185026705265, -0.02753865160048008, 0.04712507873773575, -0.00419352063909173, -0.0023179538547992706, -0.010802431032061577, 0.000502816285006702, -0.017048830166459084, 0.04343189671635628, -0.03081730753183365, -0.03582368046045303, -0.04127585142850876, 0.007943283766508102, 0.03382192924618721, -0.03507630527019501, 0.015350804664194584, 0.013270827010273933, 0.005197096150368452, 0.050319984555244446, -0.0090243024751544, 0.047907423228025436, 0.03713391721248627, 0.0036891584750264883, -0.01465427502989769, -0.015163712203502655, -0.003747776383534074, -0.005295388400554657, -0.04051362723112106, -0.04023871198296547, -0.04437246173620224, 0.02758774533867836, -0.008248699828982353, -0.004848888143897057, -0.03292381390929222, 0.007000340614467859, -0.08837073296308517, -0.01864561438560486, 0.004241582937538624, 0.006878823507577181, 0.04143444821238518, 0.00814878847450018, 0.030080514028668404, -0.009544922038912773, -0.007897489704191685, 0.05169494450092316, 0.008904358372092247, -0.02120806649327278, -0.01613355614244938, -0.017554448917508125, 0.02030291222035885, 0.009287850931286812, 0.047572217881679535, 0.04013805091381073, 0.01868649385869503, -0.00023918326769489795, 0.0077689215540885925, 0.04552468657493591, -0.015398988500237465, 0.026189791038632393, 0.0026420315261930227, -0.03228026628494263, 0.0009146799566224217, -0.03181740641593933, -0.022663988173007965, -0.026674071326851845, 0.028231075033545494, -0.002837779466062784, 0.010556336492300034, -0.012700003571808338, -0.07726015895605087, 0.04359034076333046, 0.004259467590600252, 0.016321927309036255, -0.013747005723416805, -0.020127641037106514, -0.0017999432748183608, -0.04404104873538017, 0.07116445899009705, 0.03731479123234749, -0.06377478688955307, 0.004140894860029221, -0.0075014024041593075, 0.0211736299097538, 0.008842526003718376, 0.018561730161309242, -0.05746378004550934, -0.027586765587329865, -0.03698902577161789, 0.0019624163396656513, -0.03701414167881012, -0.039523251354694366, -0.08230368793010712, 0.013063007034361362, -0.003455795580521226, 0.022270381450653076, -0.013635052368044853, 0.004777244757860899, 0.016687819734215736, -0.04667169600725174, 0.021608460694551468, -0.03359557315707207, -0.03465026617050171, 0.014839678071439266, -0.03572048246860504, 0.07022930681705475, -0.008222931995987892, 0.021344710141420364, 0.01839173585176468, 0.006787196267396212, -0.01013060100376606, -0.04192449524998665, -0.005401663016527891, -0.00829747598618269, 0.04004298523068428, 0.002734577050432563, 0.02813037671148777, -0.03926179185509682, 0.00004479136623558588, -0.02534441091120243, 0.010155471041798592, -0.04875236377120018, 0.01646258868277073, 0.007622451521456242, 0.06953777372837067, 0.011411653831601143, 0.006952722556889057, 0.008796091191470623, -0.012222273275256157, 0.043079789727926254, -0.06524094939231873, -0.024675277993083, -0.008930538780987263, -0.07846134155988693, 0.043121613562107086, 0.026956284418702126, 0.03880234435200691, -0.059521570801734924, 0.056816257536411285, 0.03699171170592308, -0.026837948709726334, 0.013841497711837292, -0.020718185231089592, 0.0066808718256652355, -0.018771668896079063, -0.015127967111766338, -0.08399703353643417, -0.0003756936057470739, 0.033718694001436234, 0.010714123025536537, 0.0008634330006316304, -0.01390975434333086, -0.02539570815861225, 0.06823363900184631, -0.04256166145205498, -0.025996651500463486, 0.04770360887050629, -0.01178482361137867, -0.01468836609274149, 0.015027408488094807, -0.06425860524177551, 0.030866969376802444, 0.03756910189986229, -0.046757906675338745, -0.0036098388954997063, -0.048803601413965225, 0.06465066224336624, -0.0006328378221951425, 0.01942605711519718, -0.014648093841969967, -0.022820662707090378, 0.08337218314409256, 0.013107407838106155, 0.006073737051337957, 0.051774729043245316, 0.009648546576499939, 0.0519828274846077, 0.0330195352435112, 0.002443753881379962, -0.007674351334571838, 0.015954600647091866, -0.011684441938996315, -0.05316169187426567, 0.042187947779893875, 0.019244065508246422, -0.020496657118201256, -0.043728407472372055, 0.05466209352016449, -0.003824575338512659, -0.04274585843086243, -0.02912266179919243, 0.02426105923950672, -0.05821411311626434, -0.028860943391919136, -0.06090865656733513, -0.025679033249616623, -0.03282349184155464, 0.03943578898906708, -0.025086814537644386, -0.007687516510486603, 0.08341985940933228, -0.028918085619807243, -0.004741999786347151, -0.004910423420369625, 0.04325798153877258, 0.051844146102666855, 0.05038111284375191, 0.00034916543518193066, 0.078875333070755, -0.020338205620646477, -0.07053613662719727, 0.00012169950059615076, -0.029847778379917145, 0.011778576299548149, -0.015083474107086658, -0.0038742057513445616, 0.06397615373134613, -0.015354269184172153, 0.08053787052631378, 0.019823215901851654, -0.008544746786355972, -0.02747209370136261, 0.0031254219356924295, 0.021373245865106583, 0.05016663298010826, 0.02988710068166256, 0.01587178371846676, -0.007717288099229336, -0.02446560375392437, 0.05433030426502228, -0.046338360756635666, -0.010357797145843506, 0.031701840460300446, 0.01664937287569046, -0.014706844463944435, 0.0009053742396645248, 0.05035952851176262, 0.05938001349568367, -0.0064057339914143085, -0.017234165221452713, 0.023911630734801292, 0.0083397775888443, 0.032471202313899994, 0.016362624242901802, -0.006973430048674345, -0.02285398542881012, 0.009375816211104393, -0.024353420361876488, 0.024377670139074326, -0.018255796283483505, -0.033925384283065796, 0.0652388259768486, -0.030807070434093475, -0.00900242943316698, 0.007575730327516794, -0.03057633340358734, -0.04881218075752258, -0.026288675144314766, -0.016826197504997253, -0.03938012942671776, -0.048816096037626266, 0.004789404571056366, 0.003827826352789998, 0.013288856483995914, -0.010933909565210342, -0.057880498468875885, -0.031926315277814865, 0.022545544430613518, 0.03593763709068298, -0.029484355822205544, -0.011953284963965416, 0.01712113246321678, 0.011325647123157978, 0.00014126475434750319, 0.03428114205598831, 0.059574127197265625, -0.023359501734375954, -0.016684727743268013, -0.016939079388976097, 0.03116624616086483, 0.0359402671456337, -0.005607407074421644, 0.011620870791375637, -0.08056126534938812, 0.03646721690893173, 0.00486720958724618, 0.04983461648225784, -0.06273841857910156, 0.04859773442149162, 0.036432020366191864, -0.020248357206583023, 0.06709358841180801, -0.01123075745999813, 0.007790097966790199, -0.027810193598270416, -0.004291927441954613, -0.01518701296299696, 0.0034870337694883347, 0.041377488523721695, -0.011493215337395668, 0.057480547577142715, 0.018542824313044548, -0.017805732786655426, -0.036715611815452576, -0.036346081644296646, -0.015946639701724052, 0.002160800853744149, -0.03350332751870155, -0.01321575790643692, -0.05884845554828644, -0.07746607810258865, -0.040297865867614746, 0.04558420181274414, -0.013033264316618443, -0.012394539080560207, -0.001946161617524922, 0.018901344388723373, -0.05563109740614891, 0.019366074353456497, -0.031018301844596863, -0.014922553673386574, -0.03314835950732231, -0.024390902370214462, 0.00844031572341919, 0.012152817100286484, 0.041913554072380066, 0.0006220937357284129, 0.023706918582320213, 0.006389210466295481, -0.008712508715689182, -0.021002911031246185, -0.01609329879283905, 0.05093211308121681, 0.011603759601712227, -0.0047959741204977036 ]
[ -0.048118602484464645, -0.026983873918652534, 0.02729460597038269, -0.005305960774421692, 0.0652812048792839, -0.042346272617578506, -0.07763715088367462, 0.045106612145900726, -0.042114727199077606, -0.01269292738288641, -0.0027681742794811726, -0.023340115323662758, -0.0050533548928797245, 0.01225702092051506, 0.07444988936185837, -0.002585166832432151, -0.01802336610853672, -0.02346947230398655, 0.006310629192739725, 0.06680856645107269, 0.02152523398399353, 0.0005213150870986283, -0.012475475668907166, -0.03279699757695198, -0.02883985824882984, 0.023527098819613457, 0.0036691338755190372, -0.004110514651983976, 0.03343702852725983, -0.18252764642238617, 0.03145453706383705, -0.04684184491634369, 0.0001646772725507617, -0.020966283977031708, -0.0009652015287429094, 0.06479384005069733, 0.025809740647673607, 0.00905472133308649, -0.0018524747574701905, 0.05753495916724205, -0.000021881705833948217, 0.026705922558903694, -0.05580132082104683, -0.008060066029429436, 0.054570700973272324, -0.019549058750271797, 0.01755690388381481, -0.004554160870611668, -0.010031229816377163, 0.013838076032698154, -0.04169458895921707, -0.039377279579639435, -0.01163150928914547, -0.04293161258101463, 0.0037321457639336586, 0.03197716549038887, 0.048510123044252396, 0.020058978348970413, -0.009274527430534363, 0.018884532153606415, 0.03730565682053566, 0.03716238960623741, -0.15414616465568542, 0.12832239270210266, -0.004869799595326185, 0.058771707117557526, -0.07107086479663849, 0.010223718360066414, 0.01251926552504301, 0.06446695327758789, -0.007166984025388956, -0.021055705845355988, -0.007768549956381321, 0.05328895151615143, 0.03719551861286163, -0.028997201472520828, 0.034306254237890244, 0.027369927614927292, 0.07129660993814468, -0.042701173573732376, -0.06592687964439392, -0.011696204543113708, -0.021438488736748695, -0.0329112783074379, -0.0014426409034058452, 0.0004614725476130843, 0.035971853882074356, 0.04269809275865555, 0.008526311255991459, 0.036353372037410736, 0.045767419040203094, -0.08219655603170395, 0.05621486157178879, -0.018347207456827164, -0.09591395407915115, -0.020668869838118553, 0.011373394168913364, 0.005381109658628702, -0.03237998113036156, 0.4265623092651367, -0.018359048292040825, -0.0024390958715230227, 0.0817418321967125, 0.011124557815492153, 0.026230163872241974, 0.015551608055830002, 0.01889796555042267, -0.02626006491482258, 0.008287112228572369, -0.0032756326254457235, 0.030041348189115524, 0.006405447144061327, 0.010773907415568829, -0.09156636148691177, 0.008234580978751183, -0.0643807053565979, -0.029068252071738243, 0.02985752932727337, 0.00898637343198061, -0.004623258952051401, -0.02057015523314476, -0.01754961535334587, -0.001625878969207406, 0.016547493636608124, 0.015580215491354465, 0.005645187105983496, 0.044577889144420624, 0.03465532884001732, 0.04407024383544922, 0.006947009824216366, 0.043617479503154755, -0.025572873651981354, -0.068768709897995, 0.03470953181385994, 0.032907016575336456, -0.006583063863217831, 0.026367051526904106, -0.02340129017829895, -0.017627324908971786, -0.006612876430153847, -0.010655268095433712, -0.004997427575290203, -0.0029644453898072243, -0.018810681998729706, -0.051913533359766006, 0.08581000566482544, 0.018228115513920784, -0.02058582194149494, -0.03436717763543129, -0.035837944597005844, -0.027178047224879265, 0.03183775022625923, 0.014909455552697182, -0.027431828901171684, 0.0035109177697449923, 0.02135174162685871, 0.03027045540511608, -0.03508453443646431, -0.011650560423731804, -0.01665276288986206, 0.006461711134761572, -0.015074091032147408, -0.00800803117454052, 0.02770497277379036, 0.05451088398694992, -0.15305247902870178, -0.040543749928474426, 0.050360437482595444, 0.0138093838468194, -0.045946065336465836, -0.01830301620066166, 0.003608322236686945, -0.003158167703077197, 0.010265646502375603, 0.07040908187627792, -0.0019207288278266788, -0.04189002141356468, 0.033540233969688416, 0.04503228887915611, 0.009448520839214325, -0.005608015228062868, -0.004959884565323591, -0.0777674987912178, -0.010303049348294735, -0.055901944637298584, -0.07462076842784882, -0.05382467433810234, 0.0012750549940392375, -0.011157514527440071, -0.002961530350148678, 0.036774810403585434, -0.0344928577542305, -0.0413438118994236, 0.05215882882475853, -0.016376100480556488, -0.0031697608064860106, -0.000016913349099922925, -0.04028860479593277, 0.021007025614380836, -0.034395717084407806, 0.0031365803442895412, 0.029157212004065514, -0.02182338573038578, 0.013796454295516014, -0.028049305081367493, 0.012341517023742199, 0.05683792755007744, -0.004609226249158382, 0.06832055747509003, 0.0034018144942820072, -0.09864476323127747, 0.024221068248152733, 0.011053581722080708, -0.0007059616036713123, 0.028910892084240913, -0.039642222225666046, -0.028620215132832527, 0.0025376349221915007, 0.023508932441473007, 0.0553528256714344, -0.01632702723145485, -0.02802022360265255, -0.026490334421396255, -0.32901081442832947, -0.023003652691841125, -0.056970760226249695, 0.021395009011030197, 0.025858193635940552, -0.04726032540202141, 0.028120379894971848, -0.009724291041493416, 0.00030834731296636164, -0.001566608203575015, 0.10208558291196823, -0.029494667425751686, 0.031168173998594284, -0.09164973348379135, -0.009947194717824459, 0.04392137750983238, 0.03702341392636299, -0.05224841833114624, -0.007390505168586969, 0.0005244934582151473, 0.006478866562247276, -0.026586148887872696, -0.020439859479665756, -0.07204048335552216, 0.01717459410429001, -0.03610754385590553, 0.1028868779540062, 0.05403422564268112, 0.03552725911140442, -0.037614092230796814, 0.04337044060230255, -0.002234051004052162, -0.015408351086080074, -0.11670781672000885, -0.02074655331671238, 0.015104587189853191, 0.007680890150368214, -0.019604016095399857, 0.02316144108772278, -0.01587008871138096, -0.02245541289448738, 0.05694251507520676, -0.026722047477960587, -0.06543096154928207, -0.021032344549894333, -0.025352060794830322, -0.029553821310400963, -0.004813991952687502, 0.020348379388451576, 0.044551555067300797, -0.02963506430387497, -0.0010046467650681734, -0.025567658245563507, 0.05058814585208893, -0.03031693771481514, -0.023577377200126648, -0.06405869871377945, -0.00025247063604183495, 0.00646011158823967, -0.04014914482831955, 0.023823944851756096, 0.030684947967529297, 0.0465315617620945, -0.06272891163825989, -0.01770562306046486, 0.026771269738674164, -0.04913748800754547, -0.041544798761606216, 0.05849156528711319, 0.0007953799213282764, -0.020218851044774055, 0.08295249193906784, 0.02917286567389965, 0.029894670471549034, 0.01091601699590683, 0.0502154640853405, 0.03035353682935238, 0.01667330227792263, 0.01796906627714634, -0.011552602984011173, -0.028514251112937927, -0.022913213819265366, 0.04724114388227463, -0.01693585328757763, -0.03635376691818237, 0.05760947987437248, -0.06591106951236725, -0.041007742285728455, 0.0540938563644886, -0.012493964284658432, -0.023837126791477203, 0.006025287322700024, -0.022168589755892754, -0.037100594490766525, 0.03680744394659996, 0.027384843677282333, -0.2792273461818695, 0.04307650029659271, 0.06686896830797195, 0.07623491436243057, -0.02125139907002449, 0.023033902049064636, 0.0516449436545372, -0.045245517045259476, 0.018528297543525696, 0.02679090015590191, 0.002801317721605301, 0.03258752077817917, -0.0003157016180921346, -0.012537582777440548, -0.004709773231297731, 0.0068784295581281185, 0.047938473522663116, 0.012665441259741783, 0.012059380300343037, -0.011078279465436935, 0.017698951065540314, -0.033631037920713425, 0.17574112117290497, 0.02237500436604023, -0.008023037575185299, 0.02585083246231079, -0.023794090375304222, -0.004436401650309563, 0.06672631949186325, 0.060985881835222244, 0.024502843618392944, 0.001832829206250608, 0.03210817649960518, 0.008409548550844193, 0.03088761493563652, -0.04960788041353226, -0.045109815895557404, 0.015447137877345085, 0.017207378521561623, -0.03671875596046448, -0.0394965223968029, 0.03863867372274399, -0.05307968705892563, 0.03731328994035721, 0.04411572590470314, -0.03341956436634064, 0.021328425034880638, 0.009483393281698227, -0.01839408464729786, 0.042322155088186264, -0.04020208120346069, -0.05031084641814232, -0.041351258754730225, 0.00022112669830676168, 0.003251830115914345, 0.051658593118190765, 0.0586235411465168, -0.034929245710372925, -0.013994316570460796, 0.0023513243068009615, 0.010725853964686394, -0.038899797946214676, 0.07763353735208511, 0.03003854490816593, 0.05624178424477577 ]
[ 0.005364342592656612, 0.04690536856651306, 0.04536430165171623, 0.010254115797579288, 0.05130414292216301, -0.019654585048556328, -0.03384840115904808, 0.012712742201983929, 0.006010011304169893, 0.020861638709902763, -0.026265209540724754, 0.027053508907556534, 0.011329509317874908, 0.006873508915305138, 0.016608765348792076, -0.01331701036542654, -0.008178982883691788, 0.0005391097511164844, 0.04204299673438072, 0.02154930867254734, -0.02637188322842121, 0.038086000829935074, 0.027742985635995865, -0.0005854024784639478, -0.03162587806582451, 0.018830686807632446, -0.06475323438644409, 0.004733710084110498, 0.04279741272330284, -0.14088661968708038, 0.03775373101234436, -0.04197021573781967, 0.009717226028442383, -0.022002434358000755, -0.03846205770969391, 0.006113036070019007, 0.012528336606919765, -0.028958432376384735, 0.004825950600206852, 0.020032254979014397, 0.008942346088588238, 0.004463666118681431, -0.02522839419543743, 0.0014618246350437403, 0.011258570477366447, -0.04094403237104416, -0.05130276829004288, 0.015002571977674961, -0.045089539140462875, 0.0242830291390419, -0.015373149886727333, -0.04840875789523125, -0.0005982446600683033, -0.008238913491368294, -0.03669334948062897, 0.019822703674435616, -0.02317694015800953, -0.005056405905634165, 0.036464668810367584, -0.0007633464992977679, 0.019188078120350838, 0.011040937155485153, -0.036133769899606705, -0.03451632708311081, 0.023738425225019455, -0.012404005043208599, -0.011758742853999138, -0.005405023228377104, 0.007125953212380409, 0.030226225033402443, 0.027894511818885803, 0.03729318827390671, 0.013682655990123749, -0.02816728688776493, -0.0008124268497340381, -0.06587859988212585, 0.0037335241213440895, 0.01040102168917656, -0.010075868107378483, -0.005983714479953051, -0.022666435688734055, -0.004248809069395065, -0.012951789423823357, 0.010090536437928677, -0.02885815128684044, 0.002704277401790023, 0.024072276428341866, 0.022378413006663322, 0.05444549024105072, -0.006776295602321625, -0.014395697042346, -0.017168808728456497, 0.007043784949928522, 0.0471072718501091, -0.09427694231271744, -0.003948805388063192, -0.012210586108267307, -0.02497819997370243, -0.01791352592408657, 0.8299579620361328, -0.016071012243628502, -0.0058419471606612206, 0.05882870778441429, 0.003047965932637453, 0.027381708845496178, 0.0037455360870808363, -0.024992333725094795, -0.01708715409040451, 0.011191570200026035, -0.0039259144105017185, 0.03638363257050514, 0.007391835562884808, -0.01625002920627594, 0.014309678226709366, 0.010302861221134663, -0.00602094316855073, 0.016715940088033676, -0.027744945138692856, 0.0024192831479012966, 0.012476377189159393, 0.022944467142224312, 0.014498038217425346, 0.014006977900862694, 0.02384193427860737, 0.005646953359246254, -0.19068126380443573, -0.0010652076452970505, -7.423590657540361e-33, 0.059583473950624466, -0.035086408257484436, -0.021089809015393257, 0.031363558024168015, 0.021754883229732513, 0.025577878579497337, 0.00461351964622736, 0.023389356210827827, -0.04476631432771683, -0.03635517507791519, -0.013949200510978699, -0.011783708818256855, -0.025033609941601753, -0.021393274888396263, 0.028881315141916275, -0.000593024305999279, -0.025019552558660507, 0.04235351085662842, 0.013920563273131847, 0.03651697188615799, 0.03980076313018799, 0.0265760887414217, -0.01640264503657818, 0.012242241762578487, 0.027668312191963196, 0.02495216578245163, 0.034849654883146286, 0.007192148361355066, -0.026519041508436203, -0.055019497871398926, 0.007042309269309044, 0.00046203137026168406, 0.0017776342574506998, -0.0294739231467247, 0.030171573162078857, -0.04213564097881317, -0.015462735667824745, 0.0019041751511394978, -0.03083081915974617, -0.016834251582622528, -0.03731626644730568, 0.00810780469328165, -0.014537262730300426, -0.01461120881140232, -0.03833432123064995, -0.009936447255313396, -0.010157088749110699, 0.011888645589351654, 0.047937553375959396, 0.009709286503493786, -0.024213867262005806, 0.04012329503893852, 0.005865766666829586, 0.025870192795991898, -0.014661149121820927, -0.0026716471184045076, -0.033417314291000366, 0.014214146882295609, 0.03587491810321808, -0.029827043414115906, 0.014891572296619415, -0.03764604404568672, -0.0019516957690939307, 0.01561188604682684, -0.021842900663614273, -0.02656775526702404, 0.024350259453058243, 0.0627150908112526, 0.02612587809562683, -0.01078769937157631, -0.05715343356132507, 0.010562300682067871, -0.018106676638126373, 0.0009750667959451675, 0.05205053836107254, -0.027093956246972084, 0.010771213099360466, 0.01930185966193676, 0.01927458494901657, 0.05137122422456741, 0.013662006705999374, -0.03524250164628029, -0.019627589732408524, -0.010434219613671303, -0.013910259120166302, -0.0054982868023216724, 0.04477062076330185, 0.019945325329899788, -0.019471006467938423, 0.020413335412740707, 0.04590197652578354, 0.013768615201115608, 0.005984263028949499, -0.019053271040320396, -0.01529939379543066, 7.570675122870969e-33, -0.0035913214087486267, -0.04450968652963638, -0.019317660480737686, 0.021671157330274582, -0.00272469874471426, -0.02324354276061058, 0.03361625224351883, 0.0456935316324234, -0.026405107229948044, 0.03133289888501167, -0.01587570458650589, 0.04127940535545349, -0.05082325637340546, 0.011814480647444725, 0.03126915171742439, 0.015171307139098644, -0.003719162894412875, -0.008952508680522442, 0.024727974086999893, -0.00008885002898750827, 0.009970275685191154, 0.021787991747260094, -0.008157605305314064, 0.018062910065054893, 0.009190457873046398, 0.04945460334420204, -0.0005185111658647656, -0.005294070113450289, -0.020408887416124344, -0.02943931333720684, -0.010349385440349579, 0.01211451180279255, 0.010955259203910828, -0.0021840790286660194, -0.012047965079545975, 0.01698085479438305, -0.023486444726586342, 0.004050029441714287, 0.02335287630558014, -0.021479951217770576, 0.04977967590093613, 0.012484601698815823, 0.004265381954610348, 0.015474128536880016, 0.00642427708953619, -0.01650133728981018, 0.01819729432463646, 0.01348923984915018, -0.0013094674795866013, 0.010377463884651661, -0.008356570266187191, -0.01511345524340868, 0.033998873084783554, -0.0036252636928111315, 0.03281887248158455, -0.06839193403720856, -0.03195464611053467, 0.021074770018458366, -0.028069565072655678, 0.035794105380773544, 0.010546264238655567, 0.01260290015488863, -0.03099946677684784, 0.006259199231863022, -0.05051486939191818, -0.010327599942684174, -0.07967080920934677, 0.010085506364703178, -0.00014892840408720076, 0.0397011935710907, -0.005406585987657309, -0.005153296049684286, 0.008409284986555576, -0.0004936817567795515, 0.04249444603919983, -0.022847933694720268, 0.016983194276690483, -0.0416584238409996, -0.008797205053269863, 0.01159536000341177, -0.01259657833725214, 0.019670763984322548, 0.01015504077076912, -0.018154950812458992, 0.009785877540707588, 0.00912528671324253, -0.06128966808319092, -0.0021692162845283747, -0.013916957192122936, 0.003417598083615303, -0.027887452393770218, -0.009167884476482868, -0.009982463903725147, 0.019550416618585587, 0.002369810128584504, -1.2859871389991895e-8, -0.0358654148876667, 0.009634931571781635, -0.009784172289073467, 0.004586561117321253, 0.003044610843062401, -0.008172454312443733, -0.02837875299155712, -0.00823182798922062, -0.021883264183998108, -0.020496128126978874, 0.04696844518184662, -0.005647705867886543, 0.0006124540232121944, 0.04046139866113663, -0.005606398917734623, -0.008240391500294209, 0.005265514831990004, -0.006341566331684589, 0.015447083860635757, -0.05459865927696228, 0.007981364615261555, 0.03881130740046501, 0.04263768717646599, 0.0039372132159769535, 0.007726322393864393, 0.02330421842634678, -0.005481553729623556, -0.06588426977396011, -0.019382089376449585, -0.030206160619854927, 0.016976479440927505, -0.016622332856059074, -0.04969928041100502, 0.01746980845928192, 0.0049467431381344795, -0.0009490677039138973, -0.009481461718678474, 0.018478600308299065, -0.02879074402153492, -0.021276777610182762, 0.0312546007335186, 0.011922313831746578, 0.0023756788577884436, -0.014733457937836647, -0.027573131024837494, 0.00754854641854763, -0.027698282152414322, 0.019971860572695732, 0.02186417393386364, -0.02387060783803463, -0.0011356457835063338, -0.025272315368056297, 0.02237354777753353, 0.007972698658704758, -0.013124772347509861, -0.029322948306798935, 0.02998155727982521, -0.02521156705915928, -0.018211137503385544, -0.007127583958208561, 0.04804924875497818, 0.005670533515512943, 0.030265862122178078, -0.012702513486146927 ]
docusaurus-side-menu-custom-page
https://markhneedham.com/blog/2022/07/11/docusaurus-side-menu-custom-page
false
2022-07-21 02:44:37
Apache Pinot: Import JSON data from a CSV file - Illegal Json Path: $['id'] does not match document
[ "pinot" ]
[ "pinot" ]
I've been working on an Apache Pinot dataset where I ingested a JSON document stored in a CSV file. I made a mistake with the representation of the JSON and it took me a while to figure out what I'd done wrong. We'll go through it in this blog post. .Apache Pinot: Import JSON data from a CSV file - Illegal Json Path: $['id'] does not match document image::{{<siteurl>}}/uploads/2022/07/json-banner.png[] == Setup We're going to spin up a local instance of Pinot and Kafka using the following Docker compose config: .docker-compose.yml [source, json] ---- include::content/2022/07/21/docker-compose.yml[] ---- We can launch all the components by running the following command: [source, bash] ---- docker-compose up ---- == Schema and Table We're going to be using the following schema: .config/schema.json [source, json] ---- { "schemaName": "users", "dimensionFieldSpecs": [ { "name": "json_field", "dataType": "JSON" } ], "dateTimeFieldSpecs": [ { "name": "timestamp_field", "dataType": "TIMESTAMP", "format": "1:MILLISECONDS:EPOCH", "granularity": "1:MILLISECONDS" } ] } ---- And this table config: .config/table.json [source, json] ---- { "tableName": "users", "tableType": "OFFLINE", "segmentsConfig": { "replication": 1, "schemaName": "users", "timeColumnName": "timestamp_field" }, "tenants": {}, "tableIndexConfig": {}, "ingestionConfig": {}, "metadata": {} } ---- We can create them both by running the following command: [source, bash] ---- docker exec -it pinot-controller bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table.json \ -schemaFile /config/schema.json \ -exec ---- == Importing CSV file Next we're going to import the following CSV file: .data/output.csv [format="csv", options="header"] |=== include::content/2022/07/21/data/output-broken.csv[] |=== We'll do this using this job spec: .config/job-spec.yml [source, yml] ---- executionFrameworkSpec: name: 'standalone' segmentGenerationJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentGenerationJobRunner' segmentTarPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.standalone.SegmentTarPushJobRunner' jobType: SegmentCreationAndTarPush inputDirURI: '/data' includeFileNamePattern: 'glob:**/output.csv' outputDirURI: '/opt/pinot/data/crimes/' overwriteOutput: true pinotFSSpecs: - scheme: file className: org.apache.pinot.spi.filesystem.LocalPinotFS recordReaderSpec: dataFormat: 'csv' className: 'org.apache.pinot.plugin.inputformat.csv.CSVRecordReader' configClassName: 'org.apache.pinot.plugin.inputformat.csv.CSVRecordReaderConfig' tableSpec: tableName: 'users' pinotClusterSpecs: - controllerURI: "http://localhost:9000" ---- The following command will ingest the CSV file: [source, bash] ---- docker exec -it pinot-controller bin/pinot-admin.sh LaunchDataIngestionJob \ -jobSpecFile /config/job-spec.yml ---- == Querying the JSON Field Now it's time to write a query that pulls out the `id` field from `json_field`, which we can do with this query: [source, sql] ---- select json_extract_scalar(json_field, '$.id', 'STRING') AS id, json_field from users ---- .Output [source, text] ---- [ { "message": "QueryExecutionError:\njava.lang.IllegalArgumentException: Illegal Json Path: $['id'] does not match document\n\tat org.apache.pinot.core.common.evaluators.DefaultJsonPathEvaluator.throwPathNotFoundException(DefaultJsonPathEvaluator.java:613)\n\tat org.apache.pinot.core.common.evaluators.DefaultJsonPathEvaluator.processValue(DefaultJsonPathEvaluator.java:540)\n\tat org.apache.pinot.core.common.evaluators.DefaultJsonPathEvaluator.evaluateBlock(DefaultJsonPathEvaluator.java:250)\n\tat org.apache.pinot.core.common.DataFetcher$ColumnValueReader.readStringValues(DataFetcher.java:594)", "errorCode": 200 } ] ---- Hmm, that didn't quite work. Let's have a look at the contents of `json_field`: [source, sql] ---- select json_field from users ---- .Results [options="header"] |=== |json_field |"{\"id\": 7886, \"details\": {\"collaborator\": \"Brett Gill\", \"score\": 6056, \"address\": \"2882 Sheila Lakes Apt. 264\\nRhondaville, KS 09803\"}}" |=== We can see from the output that we've actually got a string in this field rather than a JSON document, which is why the JSON path query doesn't work. We'll need to reimport the data after fixing the JSON field, as shown in the CSV file below: .data/output.csv [format="csv", options="header"] |=== include::content/2022/07/21/data/output-working.csv[] |=== Once we've done that we can run the following query again: [source, sql] ---- select json_extract_scalar(json_field, '$.id', 'STRING') AS id, json_field from users ---- .Results [options="header"] |=== |id | json_field |id json_field |8360| {"id":8360,"details":{"collaborator":"Mckenzie Brown","score":1384,"address":"68131 Robinson Vista\nChristianport, HI 60353"}} |=== Success!
In this post we'll learn how to solve a problem when ingesting JSON data from a CSV file into Apache Pinot.
uploads/2022/07/json-banner.png
[ -0.006942604668438435, -0.0008157858392223716, -0.029174061492085457, 0.04612939432263374, 0.07175673544406891, -0.002997947856783867, 0.014249492436647415, 0.06452096998691559, -0.011243780143558979, -0.02501671388745308, -0.003610969288274646, -0.028634924441576004, -0.07648956775665283, 0.013156316243112087, -0.020273791626095772, 0.06727730482816696, 0.08906697481870651, 0.00903667788952589, 0.029101377353072166, -0.010303512215614319, 0.0383865088224411, 0.025272419676184654, -0.0008288674871437252, 0.04339282959699631, 0.008941650390625, 0.0007893805159255862, -0.0041929734870791435, 0.01623297482728958, -0.0503385104238987, -0.010763601399958134, 0.008263401687145233, -0.023964500054717064, 0.011981221847236156, -0.009413626976311207, 0.0033661024644970894, 0.03131204470992088, -0.033986885100603104, -0.0007066270336508751, -0.007801604922860861, 0.046319495886564255, -0.06272197514772415, 0.027180369943380356, 0.01590966060757637, 0.014105861075222492, -0.011555568315088749, 0.018255434930324554, -0.03585602715611458, 0.021699512377381325, -0.005855727009475231, 0.002521276706829667, -0.053588930517435074, 0.02792210690677166, -0.04351726174354553, 0.00461804773658514, 0.014145934954285622, 0.06937721371650696, -0.009385447949171066, -0.05843149498105049, 0.04457983747124672, -0.04503155127167702, -0.003710357937961817, 0.004254473838955164, 0.017256956547498703, -0.0007632644264958799, 0.012403921224176884, -0.027305345982313156, -0.004889399278908968, 0.05024275928735733, -0.042058613151311874, -0.013187163509428501, 0.026589632034301758, 0.027941422536969185, -0.012663044966757298, -0.011584379710257053, 0.013009686954319477, -0.05564093589782715, -0.028117557987570763, 0.05890759825706482, 0.004320948384702206, 0.05576218292117119, -0.03563693165779114, 0.03278651088476181, 0.010577922686934471, 0.023518849164247513, 0.002107126172631979, -0.059509702026844025, -0.045529402792453766, 0.0022423742339015007, -0.03722811117768288, 0.05463056266307831, 0.0373653769493103, -0.017697123810648918, 0.03133072704076767, 0.004507910460233688, 0.010576184839010239, 0.0017696642316877842, 0.01229249220341444, 0.013468440622091293, -0.02023249678313732, 0.003733369056135416, -0.07540195435285568, 0.01123896799981594, 0.025758815929293633, 0.06232079863548279, -0.06632980704307556, -0.03252403810620308, -0.007811195682734251, -0.0029145001899451017, 0.002683098893612623, 0.01806928776204586, -0.022611839696764946, -0.005026848055422306, -0.020637260749936104, 0.007613825146108866, -0.08093756437301636, 0.07607017457485199, 0.031930845230817795, -0.04904412105679512, 0.010395958088338375, 0.02273491397500038, 0.06578437983989716, 0.025060687214136124, -0.02621457353234291, 0.0677938237786293, 0.014363736845552921, 0.011720939539372921, -0.009970230050384998, 0.03510884568095207, 0.014734536409378052, -0.07121019810438156, -0.028139028698205948, 0.04454626515507698, 0.015940476208925247, 0.015583320520818233, 0.003786000655964017, -0.05273359268903732, 0.0018108671065419912, 0.011162208393216133, 0.06341543793678284, 0.01639019511640072, -0.024671131744980812, -0.015503023751080036, -0.0010548330610617995, -0.0012326420983299613, 0.03870239108800888, 0.015995817258954048, -0.018950995057821274, -0.057593703269958496, -0.018459318205714226, 0.03576952591538429, 0.020055649802088737, 0.030828209593892097, 0.06761830300092697, -0.024562988430261612, -0.005558826960623264, 0.09296318143606186, 0.02070591039955616, 0.03793368488550186, -0.03794939070940018, -0.0181770920753479, 0.0478702150285244, 0.03865302354097366, 0.009017786011099815, 0.015846237540245056, -0.008384372107684612, -0.04383956640958786, -0.007613858208060265, 0.07180282473564148, -0.023692680522799492, 0.01401872094720602, -0.048292580991983414, -0.05924588814377785, 0.07452859729528427, -0.039126258343458176, 0.005853598937392235, 0.0577123649418354, 0.06631007045507431, 0.0291629396378994, 0.011269433423876762, 0.04414433613419533, -0.08985941857099533, 0.07585342228412628, 0.021439282223582268, -0.017746880650520325, 0.019950086250901222, -0.0052601066417992115, 0.06762126088142395, 0.008225161582231522, 0.028543099761009216, 0.040814805775880814, -0.06845070421695709, -0.06834330409765244, -0.023363659158349037, -0.007567905820906162, 0.045371443033218384, -0.025366129353642464, -0.006540607661008835, 0.06890658289194107, 0.012715691700577736, 0.03285800665616989, -0.014162542298436165, 0.009569941088557243, 0.03320532292127609, -0.08243250846862793, -0.04994292929768562, 0.02822832018136978, 0.04783162102103233, -0.034351494163274765, -0.0008643139153718948, 0.011274863965809345, -0.04934562370181084, -0.026714641600847244, 0.05090821534395218, -0.03926534205675125, 0.03834688663482666, 0.01673051342368126, 0.04396417364478111, -0.02167610079050064, 0.056030791252851486, -0.06366042792797089, 0.052523333579301834, 0.018822306767106056, -0.0255050640553236, -0.019520509988069534, -0.023200219497084618, 0.1211613193154335, 0.08045719563961029, 0.00972779095172882, -0.04627794027328491, 0.04414971545338631, 0.0020464409608393908, -0.05672633275389671, 0.001463081338442862, -0.013593020848929882, -0.01270324643701315, 0.003607564140111208, -0.031201573088765144, 0.0008172216475941241, 0.020957494154572487, -0.011690156534314156, 0.018461786210536957, 0.06132812425494194, -0.02469741739332676, 0.04883943498134613, 0.014202846214175224, -0.008183790370821953, -0.012646371498703957, -0.025142068043351173, -0.06153245270252228, -0.018490739166736603, 0.00577318761497736, 0.00019144797988701612, 0.03574918210506439, -0.04382234811782837, -0.028804529458284378, -0.04177761822938919, -0.04604914411902428, 0.03220454603433609, 0.03648586571216583, 0.06049319729208946, -0.02751665934920311, 0.0547894649207592, -0.036196742206811905, 0.0008414671756327152, -0.005339136812835932, -0.03346698358654976, -0.015647124499082565, 0.01523591484874487, 0.024903591722249985, 0.008297944441437721, 0.028734857216477394, -0.006190125830471516, 0.0009255893528461456, 0.002896636025980115, 0.011236198246479034, -0.0014968531904742122, 0.02709241583943367, -0.003152466146275401, 0.006313470657914877, -0.017201436683535576, 0.00014904870477039367, 0.05226686969399452, -0.04469222202897072, -0.0010856353910639882, 0.00796788651496172, -0.08571235090494156, 0.02069948799908161, -0.03827488422393799, -0.04029672220349312, -0.015069175511598587, 0.04186728596687317, 0.03146904334425926, 0.010624847374856472, -0.019772479310631752, 0.041146062314510345, 0.014937717467546463, 0.004799778573215008, 0.034035030752420425, -0.0012204719241708517, 0.05943774804472923, 0.00015082809841260314, 0.04910052567720413, 0.06409401446580887, 0.0203834418207407, -0.005898035131394863, -0.02963743358850479, 0.009120204485952854, -0.03215092420578003, -0.27934369444847107, 0.040728747844696045, -0.026707187294960022, -0.01922023855149746, 0.0013533039018511772, 0.0010317654814571142, 0.009403223171830177, -0.04666884243488312, 0.003915451467037201, 0.005719685927033424, -0.02732773683965206, -0.03788004815578461, -0.03401382267475128, 0.03378413990139961, 0.001969472737982869, 0.004124852363020182, -0.024299640208482742, -0.05420063063502312, 0.010161400772631168, 0.022147824987769127, -0.005858755204826593, -0.06869576126337051, -0.010692032054066658, 0.056573718786239624, 0.02188808098435402, 0.04429887980222702, -0.05636538192629814, 0.03656531497836113, -0.05780263617634773, -0.03097786381840706, 0.0021393951028585434, -0.035126276314258575, 0.029256299138069153, -0.019286291673779488, 0.0011699192691594362, -0.019766993820667267, 0.01729494147002697, -0.01052284799516201, 0.008254032582044601, -0.005581337958574295, -0.03865237534046173, -0.045395392924547195, -0.0274923425167799, 0.0069223614409565926, 0.0855318084359169, -0.01704876311123371, -0.07993169873952866, 0.0070436866953969, -0.050771113485097885, 0.07123828679323196, -0.011749430559575558, -0.045696109533309937, -0.02526484616100788, 0.014603854157030582, -0.03219093009829521, 0.03597032651305199, -0.014451669529080391, 0.008087493479251862, -0.05846810340881348, -0.018478069454431534, 0.0027557227294892073, -0.046238794922828674, -0.022010643035173416, -0.04002046585083008, -0.0438336618244648, -0.06095102056860924, -0.07385265827178955, -0.005409018136560917, 0.0686880573630333, 0.041036371141672134, -0.04545721411705017, 0.037591442465782166, -0.011072956025600433, -0.1136658564209938, -0.0005902402917854488, -0.03130831941962242, -0.05992355942726135, -0.009702562354505062, -0.01278662122786045, 0.049861811101436615, -0.029096286743879318, -0.025216011330485344, 0.040396254509687424, 0.0011516967788338661, 0.004805924370884895, -0.031173892319202423, 0.029284216463565826, -0.019203588366508484, -0.003178184852004051, -0.013365241698920727, 0.06244181841611862, -0.04281696304678917, -0.014104725793004036, -0.011728119105100632, -0.025941191241145134, 0.05819743126630783, 0.019476482644677162, 0.0009596972959116101, 0.00789281539618969, 0.038239069283008575, 0.020525937899947166, -0.07014013081789017, -0.00037827747291885316, -0.028088459745049477, -0.010247468017041683, -0.019543346017599106, -0.06604178249835968, 0.036307163536548615, 0.01592494174838066, 0.03792433440685272, 0.0196238961070776, -0.019984034821391106, 0.021773269400000572, -0.05957810953259468, 0.009740985929965973, -0.016520215198397636, 0.03337809070944786, 0.034819647669792175, 0.03998495638370514, -0.014653373509645462, -0.049206964671611786, 0.019832735881209373, 0.012406216003000736, -0.03342045098543167, -0.039174385368824005, -0.04536305367946625, 0.010391122661530972, -0.0027293525636196136, -0.01840217225253582, -0.01777644455432892, -0.02086590602993965, 0.032451923936605453, 0.044116612523794174, -0.01176680438220501, 0.02028110809624195, -0.02797386422753334, -0.0396219864487648, -0.026077279821038246, 0.014024974778294563, 0.011324664577841759, 0.008083728142082691, 0.004877522587776184, -0.009062559343874454, 0.028293125331401825, 0.03338359668850899, 0.017831917852163315, 0.014068073593080044, -0.0030220532789826393, 0.016404664143919945, -0.002106908243149519, 0.0027917760889977217, -0.022377951070666313, -0.012206623330712318, -0.013360796496272087, -0.050612159073352814, -0.012585396878421307, 0.022263899445533752, 0.021015075966715813, -0.016449827700853348, -0.05028616264462471, 0.018903974443674088, -0.0552106536924839, -0.018165649846196175, -0.01780172809958458, -0.022755615413188934, 0.04632912576198578, 0.005501454696059227, 0.0041061281226575375, -0.003467104397714138, 0.009387734346091747, 0.011030024848878384, 0.019272945821285248, -0.028127439320087433, -0.017065832391381264, -0.025192545726895332, -0.013671733438968658, 0.0361151248216629, 0.027307908982038498, 0.01483629085123539, 0.013710206374526024, 0.001595302834175527, 0.00210213172249496, 0.005240880884230137, 0.0284880381077528, 0.04837648198008537, 0.028405364602804184, -0.024689100682735443, -0.030798694118857384, 0.005437609739601612, -0.03533576801419258, -0.03048219531774521, -0.003855092916637659, -0.019942419603466988, -0.006381508428603411, -0.019687432795763016, -0.05955003947019577, 0.04599510133266449, 0.004198315087705851, 0.016960734501481056, 0.02449795976281166, -0.0024822738487273455, 0.0013731499202549458, -0.03266876935958862, 0.03276729956269264, 0.0704265907406807, -0.05371392145752907, -0.018250903114676476, -0.004252946935594082, 0.008838692680001259, 0.010070829652249813, 0.013454318977892399, -0.05731480196118355, -0.00004244131923769601, -0.029815763235092163, 0.022948652505874634, -0.04769377410411835, -0.0421709306538105, -0.033784717321395874, 0.006648114882409573, 0.002850600052624941, -0.004292586352676153, 0.006399568170309067, -0.006737615447491407, -0.00006063809269107878, -0.008362118154764175, 0.055276285856962204, 0.002885087626054883, 0.004748922772705555, 0.020412767305970192, -0.021134693175554276, 0.018393173813819885, -0.045235008001327515, 0.03034956194460392, 0.010198717005550861, -0.04739488661289215, -0.01899476908147335, -0.028200408443808556, 0.004511100240051746, 0.006305349990725517, 0.08592011034488678, 0.013950887136161327, -0.012282279320061207, -0.03157437592744827, -0.0012516475981101394, -0.006964549422264099, -0.005498008336871862, -0.02755110338330269, -0.02494131773710251, 0.04959244281053543, 0.05294841527938843, 0.01081719808280468, 0.0013178056105971336, -0.01100583653897047, -0.05497920513153076, 0.06241295486688614, -0.051636677235364914, -0.019493864849209785, -0.012590953148901463, -0.048737816512584686, 0.024159157648682594, 0.027056120336055756, 0.019122380763292313, -0.0550086684525013, 0.049133267253637314, 0.04617010056972504, 0.014270504005253315, 0.02666379325091839, -0.013764936476945877, 0.03277909383177757, -0.021421603858470917, -0.01873805560171604, -0.0903182402253151, 0.013682265765964985, 0.047670744359493256, -0.028290247544646263, -0.006649579852819443, -0.00792783871293068, -0.05074075981974602, 0.03165261074900627, -0.05942424014210701, -0.04385712742805481, 0.05761602893471718, -0.016517849639058113, 0.030031701549887657, -0.01601686142385006, -0.048645876348018646, 0.04309580475091934, 0.050515856593847275, -0.053073566406965256, 0.004365859087556601, -0.0030824856366962194, 0.07651829719543457, 0.006137817166745663, 0.020857464522123337, -0.005660040769726038, -0.029124796390533447, 0.04930286481976509, 0.009361525066196918, -0.00031466796644963324, 0.05066056549549103, -0.0442354641854763, 0.032601021230220795, 0.01811615191400051, -0.04233384132385254, 0.019854506477713585, 0.02979610301554203, -0.03065449185669422, -0.058551568537950516, 0.03903329372406006, 0.0019079389749094844, -0.012318074703216553, -0.04333554953336716, 0.05869732052087784, -0.0031545686069875956, -0.04019349068403244, -0.04843192175030708, 0.01073408592492342, -0.018787086009979248, -0.024415893480181694, -0.011742701753973961, 0.020301878452301025, -0.03674275428056717, 0.046586986631155014, -0.020329834893345833, 0.014403782784938812, 0.0809386596083641, -0.007906539365649223, 0.015305247157812119, 0.017450103536248207, 0.07310036569833755, 0.0685180202126503, 0.006620681844651699, 0.022488687187433243, 0.05905086547136307, -0.017473869025707245, -0.03338946774601936, -0.00838847178965807, -0.028908640146255493, -0.013895731419324875, -0.0019551743753254414, -0.007531952578574419, 0.07083535939455032, -0.016960542649030685, 0.07756929099559784, 0.016029706224799156, -0.006701587699353695, -0.014760414138436317, -0.012752941809594631, 0.026999467983841896, 0.03593213111162186, -0.0003606787067838013, 0.03571999445557594, -0.015842057764530182, -0.03029182367026806, 0.03127741441130638, 0.022955123335123062, -0.049386005848646164, 0.013840258121490479, -0.04980070888996124, 0.020365657284855843, 0.02307916060090065, 0.023687489330768585, 0.06598082184791565, -0.021885022521018982, -0.014822768047451973, -0.008576378226280212, 0.033807218074798584, 0.0050532082095742226, 0.016059933230280876, -0.026934867724776268, -0.017640264704823494, -0.011366479098796844, -0.06003369763493538, -0.0002615317644085735, -0.004590124823153019, -0.018850864842534065, 0.023693306371569633, -0.009193615056574345, -0.0085532758384943, 0.04250255599617958, 0.013832775875926018, -0.03969666734337807, -0.037324778735637665, -0.06323636323213577, -0.0431646928191185, -0.06398816406726837, -0.023061951622366905, 0.01912265457212925, -0.0171678364276886, -0.015886817127466202, -0.011121565476059914, 0.0008255016291514039, 0.015741519629955292, 0.011609090492129326, -0.05496014282107353, -0.01309486385434866, 0.03768756240606308, 0.04097824916243553, 0.012612506747245789, 0.0015113382833078504, 0.03827347978949547, -0.005959578324109316, -0.001557194977067411, -0.027365386486053467, -0.03696521744132042, 0.0485709123313427, -0.012904953211545944, 0.011811673641204834, -0.0730675533413887, 0.01279421802610159, 0.018211117014288902, -0.027359340339899063, -0.06480438262224197, 0.02805127203464508, 0.02963929809629917, -0.02254914864897728, 0.055533986538648605, -0.0025246725417673588, 0.021003467962145805, -0.04489632323384285, -0.054048553109169006, -0.012491511180996895, -0.0035097417421638966, 0.05371158570051193, -0.014481237158179283, 0.08883685618638992, 0.045175012201070786, -0.04656482860445976, -0.020304473116993904, -0.007655532099306583, 0.01073175948113203, 0.013178869150578976, -0.050945915281772614, -0.0015570111572742462, -0.02798076532781124, -0.05852280929684639, -0.029483862221240997, -0.0010586330899968743, -0.023484954610466957, -0.03677890822291374, 0.014187970198690891, -0.00936959683895111, -0.046599358320236206, 0.008292127400636673, -0.05587219074368477, 0.017104675993323326, -0.021177776157855988, -0.008183309808373451, -0.01480301283299923, 0.016851631924510002, 0.0032517591025680304, -0.014704152941703796, 0.0073317838832736015, -0.037199243903160095, 0.0076281423680484295, -0.02923637069761753, 0.04477550461888313, 0.04831671714782715, -0.045366134494543076, 0.007021836470812559 ]
[ -0.05581272020936012, -0.02548300102353096, -0.03414953127503395, -0.03233002498745918, 0.08774430304765701, -0.061178144067525864, -0.023130588233470917, 0.011911955662071705, -0.03148831054568291, 0.0025100389029830694, 0.011048047803342342, -0.045255158096551895, -0.013363990932703018, -0.036442775279283524, 0.060284871608018875, 0.006888396106660366, -0.0005300187040120363, -0.0636029914021492, -0.03528841212391853, 0.05676668509840965, -0.0022727428004145622, -0.01715202070772648, -0.0458897165954113, -0.06485625356435776, -0.02130238711833954, 0.06743524223566055, 0.04293625429272652, -0.0017330305417999625, -0.01520767342299223, -0.2030974179506302, 0.014115842059254646, -0.03158796951174736, -0.01408552285283804, -0.012739299796521664, 0.016229849308729172, 0.045390572398900986, 0.01675487495958805, 0.007922242395579815, 0.026020292192697525, 0.04957864433526993, 0.0415615439414978, -0.015351644717156887, -0.054289840161800385, -0.011843997053802013, -0.002814539009705186, -0.02259174734354019, -0.0387384407222271, 0.004698628559708595, 0.023153362795710564, 0.006547259632498026, -0.07800699025392532, -0.006735275965183973, -0.0068132285960018635, -0.022683152928948402, 0.008271964266896248, 0.048388201743364334, 0.0563017763197422, 0.06807639449834824, 0.002316507510840893, 0.031226618215441704, 0.01630978472530842, 0.0004937097546644509, -0.12477835267782211, 0.11399630457162857, 0.04518797993659973, 0.05640022084116936, -0.04073914512991905, -0.01664958894252777, -0.03146989643573761, 0.03645618259906769, 0.015364841558039188, -0.02636824920773506, -0.04969702661037445, 0.07156314700841904, 0.010800881311297417, -0.02759367786347866, -0.014348536729812622, 0.04766237735748291, 0.025824949145317078, -0.009196544997394085, -0.06857225298881531, -0.013254933059215546, -0.02757890522480011, -0.027676481753587723, -0.04702211171388626, -0.0006573874852620065, -0.02072787471115589, 0.062146738171577454, 0.002531616948544979, 0.01412014476954937, 0.02720971219241619, -0.016095900908112526, 0.05377337709069252, 0.0343053862452507, -0.10794311761856079, -0.0020955868531018496, -0.018035776913166046, 0.014133838005363941, -0.022736333310604095, 0.40512120723724365, 0.0012075337581336498, -0.030360588803887367, 0.05432972311973572, 0.011749284341931343, 0.018090346828103065, 0.012672189623117447, -0.025206247344613075, -0.033055659383535385, 0.06793166697025299, -0.030146660283207893, 0.016577603295445442, 0.0038364906795322895, 0.05620162934064865, -0.046519774943590164, -0.012391543947160244, 0.0024066967889666557, 0.010192655958235264, 0.019785279408097267, -0.048223141580820084, 0.02269347384572029, 0.004586878698319197, 0.0029105674475431442, 0.02703298069536686, 0.050272926688194275, 0.006908517796546221, -0.012569280341267586, 0.03959669917821884, 0.017382852733135223, 0.045331232249736786, 0.03589218854904175, 0.01740821823477745, -0.042646314948797226, -0.0428861528635025, -0.020839033648371696, -0.002640949562191963, -0.0008070143521763384, 0.014715972356498241, -0.019997958093881607, -0.010341016575694084, 0.025869222357869148, -0.031198447570204735, -0.05110757797956467, 0.02286936156451702, -0.004796511493623257, -0.028548505157232285, 0.10751142352819443, 0.009767293930053711, -0.014061201363801956, 0.0028190987650305033, -0.04831494763493538, -0.02416631579399109, 0.05098029598593712, -0.008691633120179176, -0.046785179525613785, 0.000024761626264080405, 0.02935200370848179, 0.04013841599225998, -0.023760128766298294, -0.05869755521416664, 0.005497573409229517, -0.0068954830057919025, -0.07788192480802536, -0.01432080753147602, 0.043584149330854416, 0.03208613395690918, -0.11880063265562057, -0.011385009624063969, 0.001786821405403316, 0.010640503838658333, -0.03699890151619911, -0.02065047062933445, 0.04253162443637848, -0.01738082990050316, -0.004336027428507805, 0.045061711221933365, -0.020145615562796593, -0.00713053485378623, 0.05177075043320656, 0.029022200033068657, -0.012595314532518387, -0.04219163581728935, 0.012697860598564148, -0.05158979073166847, -0.004239045083522797, -0.01933370903134346, -0.07732751220464706, -0.06946136802434921, 0.01092758122831583, -0.016933772712945938, -0.013335791416466236, -0.01565748080611229, -0.008683484978973866, -0.06202685087919235, 0.07680071145296097, 0.013878724537789822, -0.028321722522377968, 0.020908141508698463, 0.010527472011744976, 0.005278289318084717, -0.05446440726518631, 0.05063784867525101, 0.06505393981933594, 0.007136416155844927, 0.049900420010089874, -0.0691254585981369, 0.029099782928824425, 0.054240189492702484, -0.019169049337506294, 0.024513497948646545, 0.01938449963927269, -0.036126669496297836, 0.006363553926348686, -0.0300819780677557, 0.018314208835363388, 0.004781533498317003, -0.022805504500865936, -0.018381698057055473, 0.005962084978818893, 0.044438447803258896, 0.04420548304915428, -0.05323784053325653, -0.05451660230755806, 0.0067369407042860985, -0.37337562441825867, -0.023861153051257133, -0.023526739329099655, 0.015457792207598686, -0.013539515435695648, -0.03479335829615593, 0.005350369028747082, -0.0035223038867115974, 0.007516578771173954, 0.03816163167357445, 0.07695094496011734, -0.031103311106562614, 0.02549675852060318, -0.06484069675207138, -0.02381070703268051, 0.045994631946086884, -0.018002381548285484, -0.01938534341752529, -0.005607076920568943, 0.03278130665421486, -0.01709207519888878, -0.025598159059882164, -0.058764103800058365, -0.01021138858050108, 0.015814604237675667, -0.013546421192586422, 0.13210098445415497, 0.029941624030470848, 0.05606884881854057, -0.06823553889989853, 0.04959004744887352, 0.033549994230270386, 0.0052565718069672585, -0.08056064695119858, -0.013600739650428295, -0.04429395869374275, -0.007835916243493557, 0.02021387219429016, -0.01127227395772934, 0.009552938863635063, -0.05616086721420288, 0.026824064552783966, -0.017184201627969742, -0.06367696076631546, 0.005527288652956486, 0.008100952953100204, -0.03594636917114258, -0.0030045402236282825, -0.01829412579536438, 0.052339669317007065, 0.019681507721543312, 0.03758188709616661, 0.02810560166835785, 0.05536211282014847, 0.01700778491795063, 0.0025273184292018414, -0.04567302390933037, -0.016920143738389015, 0.013593181036412716, -0.006766107864677906, 0.0384371243417263, 0.04736040532588959, 0.03490240126848221, -0.05009780079126358, 0.001064802403561771, 0.004313448444008827, -0.0005973370280116796, 0.024668816477060318, 0.04914182052016258, -0.027719248086214066, -0.044541675597429276, 0.07519131898880005, 0.01873648166656494, 0.03971512243151665, 0.04139160364866257, 0.06370829045772552, -0.04093319922685623, -0.007585681509226561, 0.018934760242700577, 0.013992288149893284, 0.053423844277858734, 0.0178537480533123, 0.03433370962738991, -0.037577684968709946, 0.0022545699030160904, 0.07093286514282227, 0.002170803491026163, -0.027409115806221962, 0.052026379853487015, -0.022126279771327972, -0.030833695083856583, -0.02416178584098816, -0.0191452968865633, -0.050737835466861725, 0.0622950978577137, 0.02274126559495926, -0.290837824344635, 0.03244219720363617, 0.03093189187347889, 0.08894089609384537, 0.0068757543340325356, 0.020331034436821938, 0.0330004021525383, -0.06480222195386887, 0.00033663221984170377, 0.03431468456983566, 0.000868974078912288, 0.03458226099610329, 0.0160979013890028, -0.027948714792728424, 0.015115165151655674, -0.012121557258069515, 0.03330165892839432, 0.011183146387338638, 0.030873922631144524, -0.008317418396472931, 0.0038905488327145576, -0.012156851589679718, 0.17392809689044952, 0.04449361562728882, -0.03793741390109062, 0.026635123416781425, 0.01572553627192974, 0.04333796352148056, 0.053148847073316574, 0.02651181071996689, -0.011600393801927567, 0.010811913758516312, 0.04992293938994408, 0.023692471906542778, 0.042859576642513275, -0.0650261864066124, -0.0361819714307785, 0.02917507477104664, 0.013820158317685127, -0.04078085720539093, -0.045008234679698944, 0.01619674637913704, -0.049592796713113785, 0.019074855372309685, 0.044848982244729996, -0.03542252257466316, -0.008306466042995453, -0.025604765862226486, -0.025567393749952316, -0.02052902989089489, -0.009207392111420631, -0.06172719597816467, -0.007691733539104462, -0.0185915045440197, 0.0023875513579696417, 0.0747760683298111, 0.01844961568713188, -0.01592259854078293, 0.006228020414710045, 0.010324781760573387, -0.01632469892501831, -0.053524892777204514, 0.07528730481863022, 0.014198984950780869, -0.011221961118280888 ]
[ 0.018212074413895607, 0.012989887036383152, -0.009223664179444313, 0.02867152728140354, 0.02023874968290329, -0.01273119356483221, -0.0052934871055185795, 0.013824029825627804, 0.009985211305320263, -0.01754629984498024, 0.005629785358905792, 0.00648504076525569, -0.011922421865165234, -0.002264790702611208, -0.004871279466897249, -0.031918931752443314, 0.0003168084949720651, 0.012312588281929493, 0.02695370838046074, 0.010346375405788422, -0.05655057728290558, 0.013966422528028488, 0.032390594482421875, 0.0018242241349071264, -0.01456623338162899, 0.022925065830349922, -0.026013929396867752, 0.025543667376041412, 0.003810901427641511, -0.09808408468961716, -0.02621397376060486, -0.011231327429413795, -0.005129843484610319, -0.002855213126167655, 0.01434243656694889, 0.01639450527727604, 0.01764869876205921, -0.008381332270801067, -0.009776449762284756, -0.019262846559286118, 0.03486427664756775, -0.045982565730810165, 0.005433487705886364, -0.02335723489522934, -0.0026045346166938543, -0.039995692670345306, -0.03768184036016464, -0.020060978829860687, -0.020047049969434738, 0.06599535048007965, -0.05423910915851593, 0.02846716344356537, 0.0100856963545084, 0.020029081031680107, 0.033438947051763535, 0.015255952253937721, -0.024921419098973274, 0.04285050183534622, 0.01388116367161274, 0.01303210947662592, 0.0018970981473103166, 0.008513476699590683, -0.025394760072231293, -0.03456767648458481, 0.006375163793563843, -0.044046781957149506, -0.04255106300115585, -0.007925912737846375, 0.029551927000284195, -0.005665033124387264, 0.04158357158303261, 0.005010096821933985, -0.03577384352684021, -0.041353702545166016, -0.028638765215873718, 0.02954430878162384, 0.012692664749920368, -0.012879498302936554, 0.00018989712407346815, 0.010627164505422115, -0.03635162487626076, -0.019518541172146797, -0.028331054374575615, -0.02815846912562847, -0.039566539227962494, -0.007436978630721569, -0.006846816744655371, 0.033752407878637314, 0.014155318029224873, -0.027091627940535545, -0.01592683419585228, -0.01995524950325489, 0.00795088242739439, 0.007857238873839378, -0.043735627084970474, 0.008519238792359829, 0.0030959928408265114, -0.018046891316771507, -0.0323551781475544, 0.8327617049217224, 0.0028608073480427265, 0.03132784739136696, 0.028581731021404266, 0.019394639879465103, 0.04198671504855156, -0.022082561627030373, -0.015940317884087563, -0.0004190489707980305, -0.01697605475783348, -0.035834990441799164, 0.044084493070840836, 0.030265405774116516, 0.00451408326625824, 0.012608342804014683, 0.010552828200161457, 0.03413096070289612, -0.009189922362565994, -0.007392936386168003, -0.020236926153302193, 0.041422974318265915, 0.015237302519381046, -0.04478985816240311, -0.0028038201853632927, 0.009757621213793755, 0.007567120250314474, -0.17160111665725708, 0.0039966413751244545, -7.088987659946736e-33, 0.04851921647787094, -0.054679907858371735, 0.03908289596438408, -0.01600419357419014, 0.05680597573518753, -0.038338955491781235, 0.015410228632390499, 0.0037881743628531694, -0.002047357615083456, -0.030580177903175354, 0.013628335669636726, -0.026135927066206932, -0.020496083423495293, -0.0032054048497229815, 0.009718378074467182, -0.0029232953675091267, -0.01726348139345646, 0.011005081236362457, 0.0030143163166940212, 0.02847725711762905, 0.03589827939867973, 0.006004767492413521, -0.008870307356119156, 0.011218193918466568, 0.03415168076753616, 0.0056797536090016365, 0.006034547928720713, -0.003720242530107498, -0.02058166079223156, -0.03068835474550724, -0.0072939516976475716, 0.004955690819770098, -0.0034729670733213425, -0.04376095533370972, 0.019657932221889496, -0.05908754840493202, -0.011998726055026054, 0.0005485883448272943, -0.05760914832353592, -0.017183426767587662, -0.02874385379254818, -0.025095174089074135, -0.04222140833735466, 0.009446234442293644, -0.03742058202624321, -0.018956676125526428, 0.01868075132369995, 0.02239919640123844, -0.01356370560824871, 0.02011510357260704, 0.027600055560469627, 0.02165503054857254, 0.023365935310721397, 0.02295394241809845, 0.0337987020611763, -0.002373436000198126, -0.0030195359140634537, -0.012483607977628708, 0.0030369043815881014, -0.03773091733455658, -0.005739097483456135, -0.026110317558050156, -0.02142832614481449, 0.02395382523536682, 0.0006565937073901296, 0.013389719650149345, 0.005123673472553492, 0.039193518459796906, -0.012608147226274014, 0.034067485481500626, -0.04659847542643547, 0.035436175763607025, -0.02604006975889206, -0.04406225308775902, 0.01239272952079773, -0.03193468600511551, 0.013639635406434536, 0.01911083236336708, 0.014354471117258072, 0.01519396249204874, 0.015213384293019772, 0.010350966826081276, -0.02334868721663952, 0.004343795124441385, -0.07118919491767883, -0.007654297631233931, 0.016310570761561394, 0.02277512475848198, -0.024691207334399223, -0.010693635791540146, 0.03611183539032936, 0.12159475684165955, 0.015351105481386185, -0.04221101850271225, -0.050080884248018265, 7.001094477967815e-33, -0.006359839346259832, -0.019176697358489037, -0.033203378319740295, 0.0045088124461472034, 0.03991618752479553, -0.04837847128510475, 0.05349118262529373, 0.01580265536904335, 0.011164853349328041, 0.022373434156179428, -0.04839359223842621, -0.00303718913346529, -0.008663645014166832, 0.021202491596341133, 0.037380605936050415, 0.027020584791898727, -0.003577048424631357, 0.02084358222782612, 0.010704598389565945, -0.01845686323940754, 0.025352301076054573, 0.012851234525442123, 0.05091135948896408, 0.022218218073248863, 0.011353916488587856, -0.0011313932482153177, -0.005967976991087198, 0.0052221533842384815, -0.06652049720287323, -0.0164630189538002, 0.025401953607797623, -0.004626275505870581, 0.022556200623512268, -0.01445724070072174, -0.03035823069512844, 0.03358679264783859, -0.001413757330738008, 0.03035459853708744, -0.005693067330867052, -0.007762826047837734, 0.013946888037025928, 0.011538350954651833, -0.009210670366883278, 0.046243418008089066, -0.021946776658296585, -0.000053392272093333304, 0.019127938896417618, 0.022762347012758255, -0.014200391247868538, 0.0075249806977808475, -0.03722818195819855, -0.009366245940327644, 0.033202916383743286, 0.0255911685526371, 0.028754232451319695, -0.010394478216767311, -0.00947441253811121, 0.003441359382122755, -0.03964320942759514, -0.01625671796500683, -0.015193235129117966, -0.03360926732420921, 0.017250236123800278, 0.03437677025794983, -0.00519711384549737, -0.028461003676056862, -0.043147169053554535, -0.004295881371945143, -0.020035643130540848, -0.006597589235752821, 0.005665843840688467, 0.0002941973216366023, -0.017637314274907112, 0.05140223354101181, 0.03623152896761894, -0.02642049267888069, -0.01751941256225109, 0.0058261072263121605, 0.018520791083574295, 0.0001363277406198904, 0.032822560518980026, 0.008573560044169426, 0.0088866101577878, -0.038135919719934464, 0.0372769832611084, 0.018109820783138275, -0.029341308400034904, -0.003643055446445942, -0.014853564091026783, 0.026287343353033066, -0.020784877240657806, -0.029442500323057175, -0.03807610273361206, -0.0013054240262135863, -0.0009624550584703684, -1.2529854487297598e-8, -0.03764715790748596, 0.020637083798646927, -0.019615069031715393, 0.02628658153116703, 0.033756207674741745, 0.004904084373265505, -0.004991712048649788, 0.013907755725085735, 0.03392832353711128, 0.006311256904155016, 0.02704511769115925, -0.010385435074567795, 0.007178942207247019, 0.004533163737505674, 0.011743556708097458, -0.03144564852118492, -0.011880922131240368, -0.003341000759974122, 0.008189708925783634, -0.009488150477409363, 0.029598144814372063, 0.03559393063187599, 0.01931179128587246, -0.021356811746954918, -0.007918467745184898, 0.027121566236019135, 0.004465453792363405, -0.050292812287807465, -0.01683618500828743, -0.0028843795880675316, -0.0008687461959198117, -0.04707390069961548, -0.012437650002539158, 0.015548795461654663, -0.05167292058467865, -0.026494866237044334, 0.026378724724054337, 0.009347538463771343, -0.02495906502008438, 0.03337772563099861, -0.024242205545306206, -0.0050513045862317085, -0.055126503109931946, -0.036592502146959305, -0.03919509798288345, 0.00017382400983478874, -0.031545545905828476, 0.057146646082401276, -0.012335260398685932, 0.009471341036260128, 0.007788762450218201, -0.017662135884165764, 0.05724402144551277, 0.013168339617550373, 0.07500780373811722, 0.03117787092924118, 0.05043734982609749, 0.010928841307759285, 0.017410237342119217, -0.013691931031644344, 0.0389685221016407, 0.04721609875559807, -0.02434653788805008, -0.0072557274252176285 ]
apache-pinot-import-json-data-csv-file-illegal-json-path-does-not-match-document
https://markhneedham.com/blog/2022/07/21/apache-pinot-import-json-data-csv-file-illegal-json-path-does-not-match-document
false
2022-01-20 02:44:37
Apache Pinot: Sorted indexes on real-time tables
[ "pinot" ]
[ "Pinot" ]
I've recently been learning all about Apache Pinot's sorted forward indexes, and in my first blog post I explained https://www.markhneedham.com/blog/2022/01/19/apache-pinot-sorted-indexes-offline-tables/[how they work for offline tables]. In this blog post we'll learn how sorted indexes work with real-time tables. .Apache Pinot: Sorted indexes on real-time tables image::{{<siteurl>}}/uploads/2022/01/sorted-indexes-realtime-banner.png[] == Launch Components We're going to spin up a local instance of Pinot and Kafka using the following Docker compose config: .docker-compose.yml [source, yaml] ---- version: '3.7' services: zookeeper: image: zookeeper:3.5.6 hostname: zookeeper container_name: zookeeper-strava-realtime ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 kafka: image: wurstmeister/kafka:latest restart: unless-stopped container_name: "kafka-strava" ports: - "9092:9092" expose: - "9093" depends_on: - zookeeper environment: KAFKA_ZOOKEEPER_CONNECT: zookeeper-strava-realtime:2181/kafka KAFKA_BROKER_ID: 0 KAFKA_ADVERTISED_HOST_NAME: kafka-strava KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-strava:9093,OUTSIDE://localhost:9092 KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT pinot-controller: image: apachepinot/pinot:0.9.3 command: "StartController -zkAddress zookeeper-strava-realtime:2181 -dataDir /data" container_name: "pinot-controller-strava-realtime" volumes: - ./config:/config - ./data-realtime:/data restart: unless-stopped ports: - "9000:9000" depends_on: - zookeeper pinot-broker: image: apachepinot/pinot:0.9.3 command: "StartBroker -zkAddress zookeeper-strava-realtime:2181" restart: unless-stopped container_name: "pinot-broker-strava-realtime" ports: - "8099:8099" depends_on: - pinot-controller pinot-server: image: apachepinot/pinot:0.9.3 command: "StartServer -zkAddress zookeeper-strava-realtime:2181" restart: unless-stopped container_name: "pinot-server-strava-realtime" depends_on: - pinot-broker ---- We can launch all the components by running the following command: [source, bash] ---- docker-compose up ---- === Create Schema We're going to explore sorted indexes using a dataset of my Strava activities, the same one that we used in the first blog post. The schema is described below: ./config/schema.json [source, json] ---- include::content/2022/01/19/config/schema.json[] ---- We can create the schema by running the following command: [source, bash] ---- docker exec -it pinot-controller-strava-realtime bin/pinot-admin.sh AddSchema \ -schemaFile /config/schema.json -exec ---- == What is a sorted index? Before we ingest any data, let's remind ourselves about the definition of a sorted index. [quote, Sorted forward index with run-length encoding, 'https://docs.pinot.apache.org/basics/indexing/forward-index#sorted-forward-index-with-run-length-encoding[docs.pinot.apache.org/basics/indexing/forward-index#sorted-forward-index-with-run-length-encoding]'] _____ When a column is physically sorted, Pinot uses a sorted forward index with run-length encoding on top of the dictionary-encoding. Instead of saving dictionary ids for each document id, Pinot will store a pair of start and end document ids for each value. _____ A diagram showing how a sorted index works conceptually is shown below: .Sorted Forward Index image::{{<siteurl>}}/uploads/2022/01/sorted-forward.png[width="500px"] The advantage of having a sorted index is that queries that filter by that column will be more performant since the query engine doesn't need to scan through every document to check if they match the filtering criteria. For real-time tables we can specify a sorted index in the `tableIndexConfig`: [source, json] ---- { "tableIndexConfig": { "sortedColumn": [ "column_name" ], } } ---- When Pinot commits the segment it will ensure that the data is sorted based on this sorted column. It will then do a single pass over every other column to check whether the data in those columns is sorted. Columns that contain sorted data will also use a sorted forward index. This means that it's possible that multiple columns will use a sorted index even though one column is guaranteed to use a sorted index. [NOTE] ==== Sorted indexes are determined for each segment. This means that a column could be sorted in one segment, but not in another one. ==== == Data Ingestion into Kafka Now let's ingest some data into a Kafka topic. First let's install the Confluent Kafka client: [source, bash] ---- pip install confluent-kafka ---- And now we'll import some documents into the `activities-realtime` topic. Import the following libraries: [source, python] ---- import json from confluent_kafka import Producer ---- Define an acknowledge function and configure our Kafka producer: [source, python] ---- def acked(err, msg): if err is not None: print("Failed to deliver message: {0}: {1}".format(msg.value(), err.str())) producer = Producer({'bootstrap.servers': 'localhost:9092'}) ---- And finally write some messages to the topic: [source, python] ---- points = [ {'lat': '56.265595', 'lon': '12.859432', 'id': '2776420839', 'distance': '1.5', 'altitude': '11.2', 'hr': '88', 'cadence': '0', 'time': '2019-10-09 21:25:25+00:00', 'rawTime': '0'}, {'lat': '56.265566', 'lon': '12.859438', 'id': '2776420839', 'distance': '4.6', 'altitude': '11.3', 'hr': '89', 'cadence': '79', 'time': '2019-10-09 21:25:27+00:00', 'rawTime': '2'}, {'lat': '56.265503', 'lon': '12.859488', 'id': '2776420839', 'distance': '12.2', 'altitude': '11.4', 'hr': '92', 'cadence': '79', 'time': '2019-10-09 21:25:30+00:00', 'rawTime': '5'}, {'lat': '56.265451', 'lon': '12.85952', 'id': '2776420839', 'distance': '18.4', 'altitude': '11.4', 'hr': '97', 'cadence': '83', 'time': '2019-10-09 21:25:32+00:00', 'rawTime': '7'}, {'lat': '56.26558', 'lon': '12.85943', 'id': '2776420839', 'distance': '3.1', 'altitude': '11.2', 'hr': '89', 'cadence': '79', 'time': '2019-10-09 21:25:26+00:00', 'rawTime': '1'} ] for point in points: payload = json.dumps(point, ensure_ascii=False).encode('utf-8') producer.produce(topic='activities-realtime', key=str(point['id']), value=payload, callback=acked) producer.flush() ---- We can check that those messages have reached the topic by running the following command: [source,bash] ---- docker exec -it kafka-strava kafka-console-consumer.sh \ --bootstrap-server localhost:9092 \ --topic activities-realtime \ --from-beginning ---- .Output [source, text] ---- {"lat": "56.265595", "lon": "12.859432", "id": "2776420839", "distance": "1.5", "altitude": "11.2", "hr": "88", "cadence": "0", "time": "2019-10-09 21:25:25+00:00", "rawTime": "0"} {"lat": "56.265566", "lon": "12.859438", "id": "2776420839", "distance": "4.6", "altitude": "11.3", "hr": "89", "cadence": "79", "time": "2019-10-09 21:25:27+00:00", "rawTime": "2"} {"lat": "56.265503", "lon": "12.859488", "id": "2776420839", "distance": "12.2", "altitude": "11.4", "hr": "92", "cadence": "79", "time": "2019-10-09 21:25:30+00:00", "rawTime": "5"} {"lat": "56.265451", "lon": "12.85952", "id": "2776420839", "distance": "18.4", "altitude": "11.4", "hr": "97", "cadence": "83", "time": "2019-10-09 21:25:32+00:00", "rawTime": "7"} {"lat": "56.26558", "lon": "12.85943", "id": "2776420839", "distance": "3.1", "altitude": "11.2", "hr": "89", "cadence": "79", "time": "2019-10-09 21:25:26+00:00", "rawTime": "1"} Processed a total of 5 messages ---- It's looking good so far. == Unsorted Table Now let's create a real-time table called `activities_realtime` to ingest the data from that Kafka topic into Pinot. This table doesn't specify a sorted column. ./config/table-realtime.json [source, json] ---- include::content/2022/01/20/config/table-realtime.json[] ---- [WARNING] ==== The `realtime.segment.flush.threshold.rows` config is intentionally set to an extremely small value so that the segment will be committed after 5 records have been ingested. In a production system this value should be set much higher, as described in the https://docs.pinot.apache.org/operators/operating-pinot/tuning/realtime#fine-tuning-the-segment-commit-protocol[real time tuning guide^]. ==== We can create a table by running the following command: [source, bash] ---- docker exec -it pinot-controller-strava-realtime bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table-realtime.json \ -exec ---- Once we create this table, Pinot will start ingesting data from the Kafka topic. We can check which segments have been created by navidating to http://localhost:9000/#/tenants/table/activities_realtime_REALTIME. You should see something like the following: .Segments image::{{<siteurl>}}/uploads/2022/01/realtime-segments.png[] If we click on the first segment, we'll see the following: .Segment 0 image::{{<siteurl>}}/uploads/2022/01/segment0.png[] We can see that this segment has been committed by looking at the `segment.realtime.status` property on the right hand side. The `segment.total.docs` property tells us that this segment contains 5 documents. Now let's go back and then click the other segment. If we do that we'll see the following: .Segment 1 image::{{<siteurl>}}/uploads/2022/01/segment1.png[] This one is `IN_PROGRESS` and if add some more messages to the Kafka topic they will go into this segment. Now we're going to check on the sorted status of the columns for all committed segments i.e segment `activities_realtime__0__1__20220119T1541Z` in this case. First let's collect all the columns in the `activities` schema: [source, bash] ---- export queryString=`curl -X GET "http://localhost:9000/schemas/activities" -H "accept: application/json" 2>/dev/null | jq -r '[.dimensionFieldSpecs,.dateTimeFieldSpecs | .[] | .name ] | join("&columns=")'` ---- And now let's call the _getServerMetaData_ endpoint to return the segments for the `activities_realtime` table and filter the response to get the segment name, input file, and column names with sorted status: [source, bash] ---- curl -X GET "http://localhost:9000/segments/activities_realtime/metadata?columns=${queryString}" \ -H "accept: application/json" 2>/dev/null | jq -c '.[] | select(.columns != null) | { segment: .segmentName, columns: .columns | map({(.columnName): .sorted}) }' ---- [NOTE] ==== To refresh our minds, the data in the table was imported in the order shown in the table below: .activities_realtime [format="csv", options="header", cols="10,10,10,10,10,10,8,22,10"] |=== include::content/2022/01/20/data/points.csv[] |=== ==== If we run this command, we'll see the following output: .Output [source, json] ---- { "segment": "activities_realtime__0__0__20220119T1541Z", "importedFrom": null, "columns": [ {"altitude": false}, {"distance": false}, {"hr": false}, {"lon": false}, {"cadence": false}, {"rawTime": false}, {"location": false}, {"id": true}, {"lat": false}, {"timestamp": false} ] } ---- From the output we can see that almost all of the columns aren't sorted. The only sorted column is `id` and that's because we only have one unique value in that column. == Sorted Table Now let's create a real-time table called `activities_realtime_sorted` that specifies `timestamp` as a sorted column. ./config/table-realtime.json [source, json] ---- include::content/2022/01/20/config/table-realtime-sorted.json[] ---- We can create a table by running the following command: [source, bash] ---- docker exec -it pinot-controller-strava-realtime bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table-realtime-.json \ -exec ---- We can call the _getSegments_ endpoint to check which segments have been created for this table: [source, bash] ---- curl -X GET "http://localhost:9000/segments/activities_realtime_sorted" -H "accept: application/json" 2>/dev/null ---- .Output [source, json] ---- [ { "REALTIME": [ "activities_realtime_sorted__0__0__20220120T0952Z", "activities_realtime_sorted__0__1__20220120T0952Z" ] } ] ---- We can then call the `getSegmentMetadata` endpoint to return the metadata for each of these segments: [source, bash] ---- segments=`curl -X GET "http://localhost:9000/segments/activities_realtime_sorted" \ -H "accept: application/json" 2>/dev/null | jq -r '.[] | .REALTIME[]'` for segment in ${segments}; do curl -X GET "http://localhost:9000/segments/activities_realtime_sorted/${segment}/metadata" \ -H "accept: application/json" 2>/dev/null | jq '.' done ---- .Output [source, json] ---- { "segment.crc": "3864673434", "segment.creation.time": "1642672360783", "segment.end.time": "1570656332000", "segment.flush.threshold.size": "5", "segment.index.version": "v3", "segment.name": "activities_realtime_sorted__0__0__20220120T0952Z", "segment.realtime.download.url": "http://172.21.0.3:9000/segments/activities_realtime_sorted/activities_realtime_sorted__0__0__20220120T0952Z", "segment.realtime.endOffset": "5", "segment.realtime.numReplicas": "1", "segment.realtime.startOffset": "0", "segment.realtime.status": "DONE", "segment.start.time": "1570656325000", "segment.table.name": "activities_realtime_sorted", "segment.time.unit": "MILLISECONDS", "segment.total.docs": "5", "segment.type": "REALTIME" } { "segment.creation.time": "1642672361525", "segment.flush.threshold.size": "5", "segment.name": "activities_realtime_sorted__0__1__20220120T0952Z", "segment.realtime.numReplicas": "1", "segment.realtime.startOffset": "5", "segment.realtime.status": "IN_PROGRESS", "segment.table.name": "activities_realtime_sorted", "segment.type": "REALTIME" } ---- From this output we learn that segment `activities_realtime_sorted__0__0__20220120T0952Z` has already been committed and segment `activities_realtime_sorted__0__1__20220120T0952Z` is still in progress. Any new records will be added to segment `activities_realtime_sorted__0__1__20220120T0952Z`. Now let's check on the sorted status of columns in these segments using the _getServerMetaData_ endpoint: [source, bash] ---- curl -X GET "http://localhost:9000/segments/activities_realtime_sorted/metadata?columns=${queryString}" \ -H "accept: application/json" 2>/dev/null | jq -c '.[] | select(.columns != null) | { segment: .segmentName, columns: .columns | map({(.columnName): .sorted}) }' ---- [NOTE] ==== The table below shows the effective order of the data in the segment when it was committed: .activities_realtime_sorted [format="csv", options="header", cols="10,10,10,10,10,10,8,22,10"] |=== include::content/2022/01/20/data/points-sorted.csv[] |=== ==== If we run this command, we'll see the following output: .Output [source, json] ---- { "segment": "activities_realtime_sorted__0__0__20220120T0952Z", "columns": [ {"altitude": true}, {"distance": true}, {"hr": true}, {"lon": false}, {"cadence": true}, {"rawTime": true}, {"location": false}, {"id": true}, {"lat": false}, {"timestamp": true} ] } ---- Now the _timestamp_ field is sorted, which is what we would expect, along with a bunch of other fields as well. It's unlikely that any of the other fields would remain sorted if we we imported any records. _distance_ and _rawTime_ are correlated with _timestamp_ within a single activity, but if a segment contained multiple contained multiple activities that correlation would be lost. == Conclusion That's the end of this mini blog series about Pinot's sorted indexes. Hopefully it all made sense, but if not feel free to ask any questions on the https://communityinviter.com/apps/apache-pinot/apache-pinot[Pinot Community Slack^].
In this post we'll learn all about sorted indexes on offline tables in Apache Pinot.
uploads/2022/01/sorted-indexes-realtime-banner.png
[ -0.017632076516747475, -0.006584845948964357, -0.0014426892157644033, 0.03471983224153519, 0.07879715412855148, -0.0058892834931612015, 0.01392532791942358, 0.064605712890625, -0.0065161180682480335, -0.008184033446013927, -0.0055452678352594376, -0.014742832630872726, -0.049441248178482056, 0.020143067464232445, 0.0143857691437006, 0.06378919631242752, 0.06954821199178696, -0.011689132079482079, 0.031034719198942184, -0.009246575646102428, 0.037286099046468735, 0.027987902984023094, 0.017650919035077095, 0.04483500123023987, 0.01589409075677395, 0.008129239082336426, -0.016324836760759354, 0.024721600115299225, -0.04191874712705612, -0.007684412412345409, 0.030777914449572563, 0.009665296413004398, 0.004372249823063612, -0.010341827757656574, 0.015958547592163086, 0.0034772478975355625, -0.019671926274895668, 0.00613016914576292, 0.0006226405967026949, 0.028409888967871666, -0.08526415377855301, 0.02720220759510994, -0.005023925565183163, 0.020844675600528717, -0.016556838527321815, 0.025920964777469635, -0.047492314130067825, 0.010408897884190083, 0.027503017336130142, 0.025989262387156487, -0.08326893299818039, 0.03150355443358421, -0.014193841256201267, 0.036160048097372055, 0.007246826775372028, 0.036045271903276443, -0.02143215201795101, -0.0480448342859745, 0.02648564800620079, -0.017339540645480156, -0.017599383369088173, -0.027213389053940773, 0.010845715180039406, 0.006073939148336649, -0.009562669321894646, -0.03388747200369835, -0.013099555857479572, 0.04163648933172226, -0.036757778376340866, -0.006281557492911816, 0.0020324978977441788, -0.007091913837939501, 0.011345709674060345, -0.003734488971531391, 0.01994045451283455, -0.02572076953947544, -0.014365068636834621, 0.060242604464292526, 0.018668534234166145, 0.04699549078941345, -0.027425335720181465, -0.02604788914322853, -0.002119094831869006, 0.035310689359903336, -0.007715447340160608, -0.042939458042383194, -0.024989953264594078, -0.030764518305659294, -0.06563816219568253, 0.08474456518888474, -0.010672060772776604, -0.029838547110557556, 0.0068849907256662846, 0.005734899081289768, -0.023657048121094704, 0.020249594002962112, 0.03128225356340408, -0.003064521821215749, 0.0026665343903005123, -0.010583723895251751, -0.019467459991574287, 0.00035889740684069693, 0.011074180714786053, 0.04785164073109627, -0.07824939489364624, -0.04848337918519974, -0.04723944887518883, -0.012820194475352764, -0.0008669254602864385, 0.030909119173884392, -0.032723505049943924, 0.01205122098326683, -0.01498030498623848, 0.02757181040942669, -0.07160148024559021, 0.07629027962684631, 0.0038319926243275404, -0.06303007155656815, 0.05365803465247154, 0.013536417856812477, 0.056611187756061554, 0.030937962234020233, -0.020591221749782562, 0.08742202073335648, -0.006725515704602003, 0.00009951024549081922, -0.001245735096745193, 0.033816609531641006, -0.013873325660824776, -0.0650658831000328, -0.024100011214613914, 0.053449396044015884, 0.022773925215005875, -0.012499945238232613, -0.0009044148027896881, -0.033207572996616364, -0.003270582063123584, 0.014847943559288979, 0.056859780102968216, 0.051388394087553024, -0.013213759288191795, -0.046304851770401, 0.01991252228617668, 0.0076253353618085384, 0.04696187004446983, 0.014056120999157429, 0.00382414273917675, -0.0483383908867836, -0.024641811847686768, -0.000201558752451092, 0.0075985523872077465, 0.03027624823153019, 0.04465007036924362, -0.049389611929655075, 0.010625148192048073, 0.060818884521722794, 0.03163494914770126, 0.0007275945390574634, -0.007047291379421949, 0.01184357050806284, 0.04949134215712547, 0.02430962584912777, 0.02179429493844509, 0.02902238443493843, 0.02075275033712387, -0.03540797159075737, -0.006923882756382227, 0.06433471292257309, -0.009785769507288933, -0.0038704911712557077, -0.03851207718253136, -0.025551624596118927, 0.05830342322587967, -0.04294157028198242, 0.004119224846363068, 0.06362489610910416, 0.08590907603502274, 0.022129515185952187, 0.026287412270903587, -0.0019604796543717384, -0.06938470900058746, 0.05741171911358833, 0.02458573319017887, 0.011521739885210991, 0.0028948490507900715, -0.014081921428442001, 0.05353180691599846, 0.0191387590020895, 0.044378891587257385, 0.014136427082121372, -0.07322452962398529, -0.05632338672876358, -0.03141975775361061, 0.0001830927503760904, 0.07617206126451492, -0.009060396812856197, 0.02387150377035141, 0.07043861597776413, 0.0060022142715752125, 0.017863687127828598, 0.0008067235467024148, 0.03688305988907814, 0.001937775406986475, -0.0908416137099266, -0.07970605790615082, 0.03828335180878639, 0.016199396923184395, -0.05632971599698067, -0.041051898151636124, 0.003781546838581562, -0.05450613796710968, -0.023825407028198242, 0.05049020051956177, -0.033571865409612656, 0.06930262595415115, 0.022591153159737587, 0.05203003063797951, -0.01766556315124035, 0.04250432923436165, -0.03009963408112526, 0.04846477508544922, 0.009888307191431522, -0.028151491656899452, 0.00984021183103323, -0.019007978960871696, 0.11607834696769714, 0.0737534686923027, -0.02328953519463539, -0.03702700883150101, 0.05293228104710579, 0.03561864420771599, -0.04187709465622902, 0.003909560386091471, -0.025322502478957176, 0.005374536383897066, -0.013198422268033028, -0.03977086767554283, -0.03605179488658905, 0.028096366673707962, -0.013771219179034233, 0.021257512271404266, 0.07754909247159958, -0.025602731853723526, 0.07297471165657043, 0.01719636470079422, 0.008077198639512062, 0.004933529533445835, -0.03088531643152237, -0.08310606330633163, -0.00546487420797348, -0.011079572141170502, -0.013307187706232071, 0.04151156172156334, -0.04221140593290329, -0.0400112122297287, -0.04100336506962776, -0.055726975202560425, 0.037137720733881, 0.04170599207282066, 0.038735173642635345, -0.014938806183636189, 0.053888965398073196, -0.04117383807897568, 0.012650690041482449, -0.02164274826645851, -0.05900593101978302, -0.007225114852190018, -0.013699863106012344, 0.0094669871032238, 0.031221603974699974, 0.010381345637142658, -0.005529625806957483, 0.027011556550860405, 0.0030503433663398027, 0.028301483020186424, -0.003013454144820571, 0.02222336083650589, 0.0219088327139616, 0.0034619104117155075, -0.012156849727034569, -0.02756211720407009, 0.038820456713438034, -0.04120786488056183, -0.0072306361980736256, 0.018541503697633743, -0.0665067657828331, 0.04334723949432373, -0.05803322419524193, -0.03123745322227478, -0.00588495098054409, 0.028488313779234886, 0.019817879423499107, 0.011444728821516037, -0.007672707550227642, 0.05753542110323906, 0.03090929239988327, -0.016260381788015366, 0.019757801666855812, -0.020484814420342445, 0.04559731110930443, -0.005535068456083536, 0.01395962480455637, 0.03830123320221901, 0.0020883206743746996, -0.02072141505777836, -0.03880957141518593, 0.012643652968108654, -0.02410224638879299, -0.2974186837673187, 0.0418703593313694, 0.00017252980615012348, -0.023212851956486702, 0.0048068552277982235, 0.014248386956751347, 0.013611341826617718, -0.028015144169330597, -0.002082293154671788, -0.008704342879354954, -0.013206470757722855, -0.005144812166690826, -0.013044379651546478, 0.02971660904586315, -0.015426833182573318, 0.022997988387942314, -0.013123664073646069, -0.07723841071128845, -0.0073827216401696205, 0.012165852822363377, 0.0037379893474280834, -0.06367982178926468, -0.018017573282122612, 0.03133874014019966, 0.028204170987010002, 0.018622538074851036, -0.08768168091773987, 0.05970082804560661, -0.026448670774698257, -0.01007122453302145, -0.012364479713141918, -0.02542496658861637, 0.0037800027057528496, 0.0005272639682516456, -0.0031959242187440395, -0.018694786354899406, 0.016940385103225708, 0.01047433726489544, 0.005724031012505293, 0.013065369799733162, -0.02707495167851448, -0.028980808332562447, -0.004648457746952772, 0.012120665051043034, 0.0803997740149498, 0.021042197942733765, -0.06818033754825592, 0.00694510480388999, -0.006572337821125984, 0.05517438426613808, -0.026422860100865364, -0.06624627113342285, -0.006023098714649677, 0.011836040765047073, -0.01771542616188526, -0.0022248621098697186, -0.003440338186919689, -0.02053673565387726, -0.026331743225455284, -0.039892081171274185, -0.006230602506548166, -0.036889780312776566, -0.0005620982265099883, -0.063245490193367, -0.024861395359039307, -0.05441462621092796, -0.06519828736782074, 0.03404467552900314, 0.08084119856357574, 0.016281073912978172, -0.03726188838481903, 0.023849748075008392, -0.01726345159113407, -0.11603552103042603, -0.026350757107138634, -0.025302203372120857, -0.05394520238041878, -0.01216365396976471, -0.011934458278119564, 0.050326552242040634, -0.02116832323372364, -0.028767824172973633, -0.0015191384591162205, 0.014937490224838257, 0.03652578964829445, -0.03476934880018234, 0.011367201805114746, -0.028013376519083977, -0.02752293460071087, 0.008269290439784527, 0.039356984198093414, -0.045197322964668274, -0.0077024707570672035, -0.01936984248459339, -0.0023683630861341953, 0.04739278927445412, 0.0038746942300349474, 0.016533566638827324, 0.0011599194258451462, 0.06615123897790909, 0.026206254959106445, -0.058016981929540634, 0.005681383889168501, -0.033659566193819046, 0.0010368599323555827, 0.018565621227025986, -0.047480903565883636, 0.01268343348056078, 0.02674093283712864, 0.034900158643722534, 0.004156081937253475, -0.0642574205994606, 0.015925085172057152, -0.07147642970085144, -0.016617851331830025, 0.0033573638647794724, 0.026731492951512337, 0.04598324000835419, 0.00211764476262033, -0.0047059496864676476, -0.050320591777563095, 0.026140550151467323, -0.0014207449276000261, -0.03146131709218025, -0.056381937116384506, -0.0370393767952919, -0.0040950593538582325, -0.019989503547549248, 0.011562492698431015, 0.0028808817733079195, -0.016254644840955734, 0.02105095237493515, 0.04312265291810036, -0.007654234301298857, 0.04146017134189606, -0.023053960874676704, -0.028475111350417137, -0.03210637718439102, 0.03876844421029091, 0.0202579777687788, -0.015320908278226852, 0.006332679186016321, -0.00868774764239788, 0.02742791175842285, 0.03791630268096924, 0.030803462490439415, 0.017775429412722588, -0.011019110679626465, 0.014704473316669464, 0.010576040484011173, 0.009935662150382996, -0.012785851024091244, 0.004718986805528402, -0.02401021309196949, -0.026420973241329193, -0.024661023169755936, 0.038868941366672516, -0.0018049748614430428, -0.01827992871403694, -0.034068409353494644, 0.01564917154610157, -0.07437652349472046, -0.011740753427147865, -0.027503125369548798, -0.003556299488991499, 0.05764809995889664, 0.0069841183722019196, 0.01815909892320633, 0.014405707828700542, -0.010308954864740372, -0.007588453125208616, 0.00900518149137497, -0.024978535249829292, 0.008459142409265041, -0.0035336350556463003, -0.0174661036580801, 0.004863222129642963, 0.03306179121136665, 0.03207800164818764, -0.0038861322682350874, 0.009477525018155575, -0.009318671189248562, 0.024850955232977867, 0.01045355387032032, 0.02905934490263462, 0.040452443063259125, -0.014496833086013794, 0.0027622575871646404, 0.01047211978584528, -0.019799286499619484, -0.013446932658553123, 0.02514311671257019, -0.004139620810747147, 0.020627954974770546, -0.01792234554886818, -0.06404158473014832, 0.05775455757975578, -0.0036505998577922583, -0.015193470753729343, 0.008338977582752705, 0.0026347569655627012, 0.0059814453125, -0.043831709772348404, 0.05444036424160004, 0.08030015230178833, -0.04399160295724869, 0.027276575565338135, 0.011095785535871983, -0.00985714327543974, -0.010110419243574142, 0.009606032632291317, -0.05532427132129669, 0.003945192322134972, -0.004862165544182062, 0.0074524544179439545, -0.06466788798570633, -0.03161271661520004, -0.01627514883875847, -0.018631085753440857, 0.02586463652551174, 0.028702668845653534, -0.0035262461751699448, -0.0084158256649971, -0.021223004907369614, -0.04321414232254028, 0.036671996116638184, 0.021547293290495872, 0.012491649948060513, -0.00173916295170784, -0.028160730376839638, 0.03754911571741104, -0.04003909230232239, 0.0167546346783638, 0.016440000385046005, -0.047556743025779724, 0.01784047856926918, -0.05779609456658363, -0.00879235751926899, -0.01232444029301405, 0.09528563916683197, -0.0026958759408444166, -0.0018721072701737285, -0.04770676791667938, 0.004730645101517439, -0.04160939157009125, -0.0051987068727612495, 0.013290648348629475, -0.0005699902540072799, 0.048782508820295334, 0.024641377851366997, -0.004119638819247484, 0.021199800074100494, -0.009583487175405025, -0.00844830647110939, 0.04677431285381317, -0.05329877883195877, -0.03472563996911049, -0.010306579060852528, -0.066118523478508, 0.024107616394758224, -0.003803856670856476, 0.032407741993665695, -0.053296949714422226, 0.05704820528626442, 0.03729208558797836, 0.01841673254966736, 0.03395352512598038, -0.012056276202201843, 0.026809362694621086, -0.024443279951810837, 0.0013893318828195333, -0.0745655819773674, -0.006469652056694031, 0.033611495047807693, -0.0061407932080328465, 0.00940750539302826, 0.0005998284905217588, -0.048167143017053604, 0.011557643301784992, -0.07945356518030167, -0.03943919762969017, 0.029482007026672363, -0.030505677685141563, -0.007093016989529133, -0.0011783281806856394, -0.03517952188849449, 0.005707420874387026, 0.021902401000261307, -0.03518953174352646, -0.019862839952111244, -0.0015829043695703149, 0.05052570998668671, -0.0087346276268363, 0.04400518536567688, 0.0005397996865212917, -0.055748626589775085, 0.06426331400871277, 0.014448347501456738, -0.0028777385596185923, 0.06932757794857025, -0.03484749421477318, 0.026315467432141304, 0.03664980083703995, 0.00979217141866684, 0.03295077383518219, 0.0013797134160995483, -0.03337286412715912, -0.05020152032375336, 0.016425933688879013, 0.015009772963821888, 0.008629337884485722, -0.04959293454885483, 0.062019962817430496, 0.020105861127376556, -0.034518491476774216, -0.042857516556978226, 0.014288402162492275, -0.037956368178129196, -0.022517461329698563, -0.023692363873124123, 0.05894893780350685, -0.06113783270120621, 0.0482325553894043, -0.004232356324791908, 0.00488096522167325, 0.07242880016565323, -0.0029724747873842716, 0.00010845546785276383, 0.030994929373264313, 0.08108669519424438, 0.0959094986319542, 0.03189491853117943, -0.02798280492424965, 0.06022326648235321, -0.024325110018253326, -0.0319557711482048, -0.02900468185544014, -0.024593885987997055, -0.04651622474193573, -0.03134112432599068, 0.022986169904470444, 0.058762576431035995, -0.03925004228949547, 0.07878751307725906, -0.018572630360722542, -0.004575526341795921, -0.0007233468350023031, -0.004034624435007572, 0.018018703907728195, 0.041392941027879715, -0.012534535489976406, 0.044924549758434296, -0.0013596565695479512, -0.043559618294239044, -0.018426068127155304, 0.012484235689043999, -0.04363143444061279, 0.008319610729813576, -0.04212755709886551, 0.032485056668519974, 0.015115728601813316, 0.0011316249147057533, 0.07115864753723145, -0.03503081202507019, -0.0058058020658791065, 0.004285196773707867, 0.027346692979335785, -0.02300107479095459, 0.005538446828722954, -0.045633714646101, -0.017008570954203606, -0.031400248408317566, -0.03378411754965782, 0.0029574213549494743, -0.007382659707218409, -0.030740508809685707, 0.009631875902414322, -0.04072141647338867, 0.0023819957859814167, 0.0456678569316864, -0.012180526740849018, -0.06564957648515701, -0.04702950268983841, -0.050157610327005386, -0.05388065427541733, -0.06138906627893448, -0.02843334712088108, 0.000037201960367383435, -0.0034946976229548454, -0.04643074423074722, -0.02879589982330799, -0.029244713485240936, -0.0037705947179347277, 0.04458712041378021, -0.04931033030152321, -0.019751155748963356, 0.0017765418160706758, 0.04377366602420807, -0.007547623012214899, 0.024753570556640625, 0.06636855751276016, 0.006173626519739628, 0.0034871750976890326, -0.011979750357568264, 0.005163988098502159, 0.05429437756538391, -0.00970539078116417, -0.02481454238295555, -0.07522851228713989, 0.03724474087357521, 0.03239942342042923, 0.0003969623357988894, -0.057997629046440125, 0.010369272902607918, 0.02009105682373047, -0.010106267407536507, 0.04983191564679146, -0.03456646203994751, 0.03226694092154503, -0.056865766644477844, -0.036559004336595535, -0.022272786125540733, 0.009937198832631111, 0.025900404900312424, -0.009947956539690495, 0.07794087380170822, 0.047429777681827545, -0.017272071912884712, -0.020618880167603493, 0.0111397011205554, 0.0003536924486979842, 0.012404854409396648, -0.043427400290966034, -0.02377472072839737, -0.053136665374040604, -0.048064082860946655, -0.0024858354590833187, 0.04943561926484108, -0.008673036471009254, -0.04004153236746788, 0.023883579298853874, 0.002755026100203395, 0.004276105668395758, 0.005344593897461891, -0.05691490322351456, -0.000568264804314822, -0.015232288278639317, -0.031272031366825104, -0.030324507504701614, 0.013200505636632442, -0.006566353142261505, -0.03783472999930382, 0.013013258576393127, -0.03170166164636612, 0.012926539406180382, -0.006552640814334154, 0.04984254390001297, 0.03509273752570152, -0.000993208377622068, -0.027298791334033012 ]
[ -0.08113869279623032, -0.05136570706963539, -0.030360272154211998, -0.01717374660074711, 0.07372824102640152, -0.05059758201241493, -0.010966075584292412, 0.010641948319971561, 0.011922468431293964, -0.02746022678911686, 0.002839772030711174, -0.033917639404535294, -0.016894439235329628, -0.005970788653939962, 0.08385742455720901, -0.015942543745040894, 0.015397435985505581, -0.04998026043176651, -0.026153022423386574, 0.003532472299411893, 0.013759610243141651, -0.042152244597673416, -0.06426087021827698, -0.0705045536160469, 0.0037715632934123278, 0.04716674983501434, 0.03676749765872955, -0.03172336146235466, -0.016265666112303734, -0.20337456464767456, 0.01923883892595768, -0.03852453827857971, 0.00867447629570961, -0.013250662945210934, 0.0005237190052866936, 0.02185618318617344, 0.016175415366888046, 0.0022321902215480804, 0.03277347981929779, 0.030736299231648445, 0.033937614411115646, -0.005177950020879507, -0.05328274145722389, 0.008148998953402042, 0.0034413873217999935, -0.028188839554786682, -0.006201800424605608, 0.0010342998430132866, -0.0003584707446862012, -0.008006464689970016, -0.06080171838402748, 0.002406965708360076, -0.028850985690951347, -0.025140933692455292, 0.02103620208799839, 0.01603175513446331, 0.06144946813583374, 0.048554886132478714, 0.03624867647886276, 0.029743757098913193, 0.052321892231702805, -0.006689939182251692, -0.13762913644313812, 0.1170392632484436, -0.0025196552742272615, 0.024180226027965546, -0.02025025337934494, 0.002919337246567011, -0.0355876088142395, 0.049809809774160385, 0.032125312834978104, -0.02505643665790558, -0.030695762485265732, 0.07601648569107056, 0.021782448515295982, -0.0438021719455719, -0.018627995625138283, 0.04092786833643913, -0.0010552001185715199, 0.004801813513040543, -0.05389650911092758, -0.00880831852555275, -0.04122525081038475, -0.007247549016028643, -0.05951571837067604, 0.03210996836423874, 0.0001447932154405862, 0.05136280506849289, 0.005808879155665636, 0.020408175885677338, 0.022880207747220993, -0.029437648132443428, 0.057803500443696976, -0.003036784240975976, -0.07516308128833771, 0.012724949046969414, -0.02324254997074604, 0.01211059745401144, -0.04243830591440201, 0.40365299582481384, 0.018633320927619934, 0.02164897508919239, 0.03919424116611481, 0.028203247115015984, 0.007177704479545355, 0.020200258120894432, -0.010316074825823307, -0.0554329976439476, 0.0403301827609539, -0.016809523105621338, 0.027160704135894775, 0.010047780349850655, 0.08573554456233978, -0.029674647375941277, 0.009564295411109924, 0.014161314815282822, 0.005915006622672081, 0.011311329901218414, -0.013300821185112, 0.040765438228845596, -0.023571185767650604, 0.024033676832914352, 0.034724052995443344, 0.016796600073575974, 0.032233189791440964, 0.008723675273358822, 0.031027670949697495, 0.018774256110191345, 0.018688948825001717, 0.037059202790260315, 0.00874633714556694, -0.03225534409284592, -0.04793703183531761, -0.019060954451560974, -0.0008890147437341511, -0.018849557265639305, 0.03606932982802391, -0.053568389266729355, 0.007751347031444311, 0.004828302189707756, -0.052526939660310745, -0.041777752339839935, 0.06199566647410393, -0.046934422105550766, 0.0019304658053442836, 0.14151957631111145, 0.027260728180408478, -0.03342336788773537, -0.015964409336447716, -0.04501166567206383, -0.021526571363210678, 0.013681672513484955, 0.020957419648766518, -0.08114786446094513, 0.002996000461280346, 0.010495488531887531, 0.03916497528553009, 0.0013694165972992778, -0.06042395159602165, -0.006607696879655123, -0.019655777141451836, -0.05958811193704605, -0.02329842559993267, 0.012559395283460617, 0.02576715126633644, -0.14452612400054932, -0.013015640899538994, 0.020624792203307152, 0.009963193908333778, -0.03704322874546051, -0.01352541334927082, 0.042201410979032516, -0.026560969650745392, -0.0077104754745960236, 0.04249444231390953, -0.016900869086384773, 0.0019475845620036125, 0.0025636625941842794, 0.0406792014837265, -0.0006629059207625687, 0.00020165217574685812, 0.022669777274131775, -0.02039104886353016, -0.012107343412935734, -0.04199851676821709, -0.0737236887216568, -0.0643850713968277, -0.021385282278060913, -0.04297623410820961, -0.05038682743906975, -0.05172840878367424, -0.04318609833717346, -0.06167643889784813, 0.10644598305225372, 0.012457279488444328, -0.04023677110671997, 0.03125252574682236, 0.03148176521062851, 0.026723051443696022, -0.021949153393507004, 0.011860121041536331, 0.030377626419067383, -0.014259017072618008, 0.035590387880802155, -0.05897704139351845, 0.04461129009723663, 0.020428143441677094, -0.028630897402763367, 0.05933414399623871, 0.038512978702783585, -0.017860207706689835, 0.016257261857390404, -0.01315777562558651, 0.03256816044449806, 0.011932753026485443, 0.00600271625444293, 0.007753190118819475, 0.010422531515359879, 0.026893898844718933, 0.05017034336924553, 0.004098951350897551, -0.038466520607471466, -0.02557346038520336, -0.37129655480384827, -0.035768553614616394, -0.05353037267923355, -0.01298823207616806, -0.03250047191977501, -0.05916431173682213, 0.004316794220358133, -0.013456675224006176, 0.0018396475352346897, 0.007833538576960564, 0.08601177483797073, -0.04677971452474594, 0.004691829439252615, -0.05671149864792824, -0.0007900031050667167, 0.06449463963508606, -0.017236992716789246, -0.020897548645734787, -0.02489752694964409, -0.007267116568982601, 0.017042601481080055, 0.003146100789308548, -0.02630748227238655, -0.01829073205590248, 0.011385943740606308, -0.0010456504533067346, 0.11367093026638031, 0.012225700542330742, 0.06382616609334946, -0.06503941863775253, 0.04176272079348564, 0.01984477788209915, 0.007187481503933668, -0.083841472864151, -0.003276045201346278, -0.016314538195729256, 0.030954968184232712, -0.018784677609801292, -0.0048876130022108555, 0.002583746798336506, -0.06549806147813797, 0.06755451112985611, -0.04594280570745468, -0.06707502901554108, -0.04967755451798439, 0.016176005825400352, -0.005579890217632055, -0.005476641468703747, -0.015634480863809586, 0.05775588005781174, 0.0030574204865843058, 0.007663561496883631, 0.005176967941224575, 0.018916919827461243, 0.03436722233891487, -0.021345723420381546, -0.030317382887005806, -0.04716785252094269, -0.0037203258834779263, 0.024111654609441757, 0.043286554515361786, 0.03788362443447113, -0.00923236832022667, -0.06187479570508003, 0.012616867199540138, 0.01025458611547947, -0.025779780000448227, 0.00427011214196682, 0.06729673594236374, -0.032415810972452164, -0.04916583374142647, 0.06270497292280197, 0.018298471346497536, 0.01525476761162281, 0.04933071509003639, 0.04653030261397362, -0.008369793184101582, 0.011460169218480587, 0.029593318700790405, 0.007652416825294495, 0.06070452928543091, -0.04182988032698631, 0.057282112538814545, -0.03903508931398392, 0.015788817778229713, 0.06812968850135803, 0.012839763425290585, -0.004955741111189127, 0.06595621258020401, 0.013079492375254631, -0.022042453289031982, 0.0027063502930104733, -0.018403826281428337, -0.07650075852870941, 0.08676443248987198, 0.01591520570218563, -0.2732795774936676, 0.0857062041759491, 0.047043487429618835, 0.033260952681303024, 0.014729749411344528, 0.03699788451194763, 0.0021412523929029703, -0.05493566393852234, 0.02465275675058365, 0.003588172374293208, -0.018147790804505348, 0.06420144438743591, 0.017107613384723663, -0.003661129856482148, 0.012541367672383785, 0.0059990608133375645, 0.027268115431070328, 0.0010800332529470325, 0.021422570571303368, -0.03213540092110634, 0.011131535284221172, 0.009654509834945202, 0.17583386600017548, 0.06329964101314545, -0.004360577557235956, -0.00248725526034832, -0.007264013402163982, 0.031431086361408234, 0.014424541033804417, 0.03170987218618393, 0.017262788489460945, -0.011878091841936111, 0.03726077824831009, -0.014343632385134697, 0.048160333186388016, -0.04746772721409798, -0.0102086141705513, 0.03221040964126587, 0.014415331184864044, -0.03473484143614769, -0.032011598348617554, 0.004461955279111862, -0.05001620203256607, 0.02820560708642006, 0.0551983080804348, -0.031029755249619484, -0.02758912928402424, -0.04409073293209076, -0.026979444548487663, -0.00345700909383595, -0.01820153184235096, -0.07206223905086517, 0.019365867599844933, -0.002368938410654664, -0.0008194162510335445, 0.045500122010707855, 0.029549386352300644, -0.004662202671170235, -0.006784157827496529, 0.025757888332009315, 0.009154780767858028, -0.03652023524045944, 0.09438689798116684, 0.004267723765224218, 0.025231042876839638 ]
[ 0.03611127287149429, 0.006256193853914738, -0.004928058944642544, 0.03966061770915985, 0.023930901661515236, -0.007349193096160889, 0.004870211239904165, 0.012341497465968132, -0.0009974869899451733, -0.0005237234872765839, -0.023392384871840477, 0.04210799187421799, -0.021870234981179237, -0.007150378543883562, -0.0459761768579483, -0.05791349336504936, 0.014636153355240822, 0.006496326066553593, 0.0374327152967453, 0.013188251294195652, -0.04832259193062782, 0.01181477028876543, 0.02454224042594433, -0.01577901467680931, -0.030687818303704262, 0.027435293421149254, -0.07356774061918259, -0.00833899900317192, 0.01914355903863907, -0.11987573653459549, -0.03117792122066021, -0.025262925773859024, 0.008024887181818485, -0.019000139087438583, -0.025877829641103745, 0.016464216634631157, 0.0006328404997475445, -0.03198906034231186, -0.03935227543115616, -0.00006129599933046848, 0.03154575824737549, -0.026728549972176552, -0.0033099905122071505, 0.004747635684907436, -0.02440345473587513, -0.027989912778139114, -0.05201259255409241, -0.00461136968806386, -0.029678476974368095, 0.0026987900491803885, -0.06502674520015717, 0.025152957066893578, -0.013861266896128654, 0.0255978312343359, 0.009883151389658451, 0.03719119727611542, -0.025036146864295006, -0.013756072148680687, 0.048317473381757736, 0.02824394777417183, 0.02212637849152088, 0.04702840745449066, -0.0026253836695104837, -0.03721931576728821, 0.00478461803868413, -0.059051573276519775, 0.001575938193127513, 0.0011292931158095598, 0.030116716399788857, 0.01070145983248949, 0.00036692479625344276, 0.011418254114687443, -0.03560874983668327, -0.051669422537088394, -0.042989782989025116, 0.02629927545785904, -0.0013333817478269339, 0.016280578449368477, -0.022217540070414543, -0.0059589422307908535, -0.03451085835695267, -0.021021684631705284, -0.0103538166731596, 0.009111013263463974, -0.016795232892036438, -0.02304646000266075, 0.0029623552691191435, 0.014515107497572899, 0.03251735493540764, -0.031357936561107635, 0.00537271099165082, 0.004012472927570343, -0.020844483748078346, -0.0022313662339001894, -0.04539506882429123, -0.021809153258800507, -0.005116010084748268, 0.010291687212884426, -0.05155782401561737, 0.8255363702774048, 0.0018231080612167716, 0.02183278650045395, 0.007587183732539415, 0.019128313288092613, 0.06490348279476166, -0.024877816438674927, -0.05162302777171135, -0.004597455728799105, -0.011308535933494568, -0.05511680245399475, 0.008440280333161354, 0.009343446232378483, 0.015253506600856781, -0.0029092116747051477, 0.017287909984588623, 0.016896873712539673, -0.008610652759671211, -0.043151579797267914, 0.004842392168939114, 0.02883562259376049, 0.035878632217645645, -0.009959043934941292, 0.018502065911889076, -0.01373260747641325, 0.013263572938740253, -0.1250859797000885, 0.02022797055542469, -6.1522193140451615e-33, 0.05734499543905258, -0.04243229702115059, 0.024346504360437393, -0.0159155186265707, 0.057336341589689255, -0.0017397953197360039, 0.00810716487467289, -0.04244046285748482, 0.000047087418352020904, -0.01849779114127159, 0.02503858506679535, -0.0079358434304595, -0.0074400887824594975, -0.025917548686265945, 0.02653096802532673, -0.022957663983106613, 0.00023919326486065984, 0.0364055410027504, 0.01071963645517826, 0.009748728945851326, 0.034876126796007156, 0.0233470406383276, -0.03447664529085159, 0.008725649677217007, 0.03685193881392479, 0.017010033130645752, -0.001613829517737031, -0.036496587097644806, 0.019706493243575096, -0.03510762006044388, 0.004897138569504023, -0.012078364379703999, -0.0003982764028478414, -0.037444740533828735, 0.007824665866792202, -0.06620577722787857, -0.06635546684265137, 0.01040735561400652, -0.04539535567164421, -0.03493703901767731, -0.006074274890124798, -0.016257449984550476, -0.04754907265305519, -0.0199494119733572, -0.011890983209013939, -0.0074570500291883945, 0.003270186251029372, 0.05987158417701721, 0.004788744729012251, 0.0148242162540555, 0.009682797826826572, -0.008554412983357906, 0.012473118491470814, 0.030681639909744263, -0.009077496826648712, 0.021576235070824623, 0.03596806898713112, 0.03390808776021004, -0.011900034733116627, 0.007583959959447384, -0.022436540573835373, -0.03595731034874916, -0.015416339971125126, 0.039604391902685165, 0.007444072514772415, -0.011252492666244507, 0.005070670507848263, 0.02687855064868927, -0.007800665218383074, 0.03031815215945244, -0.03781336173415184, 0.02223542332649231, -0.007038791198283434, -0.0073102544993162155, 0.009387712925672531, -0.025477228686213493, -0.016948247328400612, 0.01104747410863638, -0.026016879826784134, 0.014592438004910946, -0.0109398877248168, 0.030836034566164017, 0.016364924609661102, -0.029863236472010612, -0.010023130103945732, -0.03739220276474953, 0.014285584911704063, 0.018929893150925636, -0.01388460397720337, 0.0013078792253509164, 0.026777951046824455, 0.08229827880859375, 0.01643734984099865, -0.043611541390419006, -0.01699606329202652, 6.527465028818468e-33, -0.01652194932103157, 0.0037264369893819094, -0.004657655954360962, 0.01268575806170702, 0.035516683012247086, -0.03557131811976433, 0.03792569786310196, 0.01836990937590599, -0.008188060484826565, 0.010277899913489819, -0.030027467757463455, 0.04421554505825043, -0.027687571942806244, 0.04159962385892868, 0.051862310618162155, 0.006415009032934904, 0.02323807030916214, -0.012470558285713196, 0.023631034418940544, 0.012786542065441608, 0.018949002027511597, -0.014157066121697426, 0.024468520656228065, 0.022230803966522217, 0.002297863131389022, 0.02661401405930519, 0.029073087498545647, 0.03315424919128418, -0.045523591339588165, -0.023275526240468025, 0.05146331340074539, -0.010407820343971252, 0.008250502869486809, 0.01306989323347807, -0.042538613080978394, 0.02765814960002899, -0.0339888371527195, 0.014748536981642246, 0.006881601642817259, 0.014811421744525433, 0.03661920130252838, 0.026281317695975304, -0.0014067705487832427, 0.02943885326385498, -0.03329622000455856, -0.011450665071606636, 0.012861676514148712, -0.00952551607042551, -0.033732302486896515, -0.011917952448129654, -0.028645789250731468, 0.013982042670249939, 0.01726318709552288, -0.00651955371722579, -0.007420724257826805, -0.007051431108266115, -0.03647787496447563, 0.03738855570554733, -0.037702709436416626, 0.03698275610804558, 0.05722916126251221, -0.008462261408567429, 0.02822144143283367, 0.016237696632742882, -0.01942017301917076, -0.015478339046239853, 0.0033967888448387384, -0.0032723513431847095, -0.04169735312461853, -0.021902963519096375, 0.02166004106402397, -0.0011893510818481445, -0.020892886444926262, 0.06712598353624344, 0.05470971763134003, -0.020456742495298386, -0.00854825135320425, 0.04381926357746124, 0.015238986350595951, -0.013235202990472317, 0.028076404705643654, 0.040985215455293655, -0.0007574404589831829, -0.04210040345788002, 0.02611338347196579, 0.0033875086810439825, -0.021800221875309944, 0.04315656051039696, -0.010005983524024487, 0.007666273508220911, 0.004541647620499134, -0.05059313774108887, -0.004752241540700197, -0.0018572333501651883, 0.024436691775918007, -1.206549526955314e-8, 0.0002767705009318888, -0.02332324907183647, -0.01929299905896187, 0.02093377336859703, 0.04144031181931496, 0.00015658827032893896, -0.05227290466427803, 0.007270593196153641, -0.030950453132390976, 0.0019320838619023561, 0.04853959381580353, -0.01820256933569908, -0.0002710783446673304, 0.03789762035012245, 0.029766572639346123, -0.032307520508766174, -0.012643532827496529, -0.040777940303087234, 0.007848035544157028, -0.025720927864313126, 0.005068130791187286, 0.027193844318389893, 0.03253769874572754, -0.01625317893922329, -0.01638246700167656, 0.024548977613449097, 0.048702362924814224, -0.04949652776122093, 0.004010335076600313, 0.03416486829519272, 0.03009072318673134, -0.01647713966667652, -0.010563946329057217, 0.028432834893465042, -0.036658670753240585, -0.008776133880019188, -0.036297526210546494, -0.004247680306434631, 0.0001517610071459785, -0.009011303074657917, -0.04795435443520546, 0.005902869161218405, -0.017539987340569496, -0.04487624764442444, -0.006532691884785891, 0.0026139533147215843, -0.04958759993314743, 0.030237162485718727, 0.05329364910721779, -0.01563533954322338, -0.031012028455734253, -0.014949716627597809, 0.033147554844617844, 0.008443520404398441, 0.08179258555173874, -0.00010255155939375982, 0.03543762490153313, -0.00019380786397960037, 0.018534500151872635, -0.016849780455231667, 0.029714390635490417, 0.012530243955552578, -0.0184169914573431, 0.003974270075559616 ]
apache-pinot-sorted-indexes-realtime-tables
https://markhneedham.com/blog/2022/01/20/apache-pinot-sorted-indexes-realtime-tables
false
2022-01-18 00:44:37
Strava: Export and interpolate lat/long points for an activity
[ "python", "strava" ]
[ "python" ]
:icons: font I've been working with https://www.markhneedham.com/blog/tag/strava/[Strava^] data again recently and wanted to extract all the lat/long coordinates recorded for my runs. Having done this, I realised that my running watch hadn't recorded as many points as I expected, so I needed to interpolate the missing points. In this blog post we'll learn how to do that. .Strava: Export and interpolate lat/long points for an activity image::{{<siteurl>}}/uploads/2022/01/strava-banner.png[] == Setup Let's first install a few libraries that we'll be using: [source, bash] ---- pip install stravalib pandas pyproj ---- Once we've installed those library, let's import them into our Python script: [source, python] ---- import pickle import time import pandas as pd from datetime import timedelta ---- == Creating the Strava client First we'll need to create a Strava client using the stravalib library. This involves generating an access token, which I showed how to do in my blog post titled https://www.markhneedham.com/blog/2020/12/20/strava-export-all-activities-json/[Strava: Export all activities to JSON file]. We'll assume that's already been done and the client has been serialised to `auth/client.pkl`. We can load the client by running the following code: [source, python] ---- def load_object(filename): with open(filename, 'rb') as input: loaded_object = pickle.load(input) return loaded_object client = load_object('auth/client.pkl') ---- == Exporting lat/long points Now that we've got that setup, it's time to export those lat/long points We'll use https://www.strava.com/activities/3092741860[one of my runs^] from my trip to Sweden for the Neo4j Engineering Offsite in February 2020, back in the good old pre-Covid days. We can get the lat/long points for an activity from the https://pythonhosted.org/stravalib/api.html#stravalib.client.Client.get_activity_streams[get_activity_streams^] function, as shown in the following code sample: [source, python] ---- id = 3092741860 response = client.get_activity(id) start = response.start_date response = client.get_activity_streams(id, ["distance", "latlng", "time", "heartrate", "cadence", "altitude"]) latlong = response["latlng"].data time_list = response["time"].data altitude = response["altitude"].data hr = response["heartrate"].data if response.get("heartrate") else 0 cadence = response["cadence"].data if response.get("cadence") else 0 data = pd.DataFrame([*latlong], columns=['lat','lon']) data["id"] = id data["distance"] = response["distance"].data data['altitude'] = altitude data['hr'] = hr data['cadence'] = cadence data['time'] = [(start+timedelta(seconds=t)) for t in time_list] data['rawTime'] = time_list data.to_csv("points.csv", index=False) ---- Below are the first few lines of this file: .points.csv [format="csv", options="header", cols="10,10,10,10,10,10,10,20,10"] |=== include::content/2022/01/18/data/points.csv[lines=1..6] |=== There are 914 points over 86 minutes, or just over 10 points per minute. I want to have one point per second, or around 5,160 points for this activity. == Interpolating points To achieve this we're going to generate/interpolate the missing points. We can do this by computing equally spaced lat/long coordinates in between the points that we do have using the https://pyproj4.github.io/pyproj/stable/[Pyproj library^]. [NOTE] ==== I learnt about the Pyproj library from https://gis.stackexchange.com/questions/311362/interpolating-orthodrome-between-two-lon-lat-points-in-python[Felix's StackOverflow answer^]. ==== Let's learn how to use the library on a couple of the lat/longs from the dataset. We'll have the https://pyproj4.github.io/pyproj/stable/api/geod.html?highlight=npts#pyproj.Geod.npts[`npts`^] function compute two points in between the provided points: [source, python] ---- from pyproj import Geod geoid = Geod(ellps="WGS84") point1 = (56.434604, 12.838070) point2 = (56.434625, 12.838106) points_to_generate = 2 extra_points = geoid.npts(point1[0], point1[1], point2[0], point2[1], points_to_generate) for point in extra_points: print(point) ---- .Output [source, text] ---- (56.434610999999336, 12.838082000000197) (56.43461799999933, 12.838094000000197) ---- So far, so good. We can now use this approach to compute missing points for the whole run. We'll first extract the lat/long points and the rawTime value into a list of tuples: [source, python] ---- import csv from pyproj import Geod points = [] with open("points.csv", "r") as event_file: reader = csv.reader(event_file, delimiter=",") next(reader, None) # skip the headers for row in reader: lat = float(row[0]) lon = float(row[1]) points.append((lat, lon, int(row[8]))) for point in points[0:5]: print(point) ---- .Output [source, text] ---- (56.434599, 12.838058, 0) (56.434604, 12.83807, 1) (56.434625, 12.838106, 4) (56.434717, 12.838408, 11) (56.434718, 12.838463, 12) ---- And now let's fill in the missing points: [source, python] ---- geoid = Geod(ellps="WGS84") all_points = [] for point1, point2 in zip(points, points[1:]): missing_points = (point2[2] - point1[2]) <1> if missing_points > 0: extra_points = geoid.npts(point1[0], point1[1], point2[0], point2[1], missing_points) all_points.append(point1) all_points.extend([extra_points[idx] + (point1[2] + idx,) for idx in range(1,len(extra_points))]) <2> all_points.append(points[-1]) for point in all_points[0:13]: print(point) ---- <1> How many points to generate <2> Add the new points along with the number of seconds into the activity Below are the combined actual points and interpolate points up to the 12th second: .Output [source, text] ---- (56.434599, 12.838058, 0) (56.434604, 12.83807, 1) (56.43461449999925, 12.838088000000225, 2) (56.43461974999944, 12.838097000000166, 3) (56.434625, 12.838106, 4) (56.434647999979404, 12.838181500003664, 5) (56.43465949997426, 12.838219250004581, 6) (56.434670999972546, 12.838257000004889, 7) (56.43468249997426, 12.838294750004582, 8) (56.43469399997941, 12.838332500003668, 9) (56.43470549998799, 12.83837025000214, 10) (56.434717, 12.838408, 11) (56.434718, 12.838463, 12) ----
In this post we'll learn how to export and interpolate the lat/long points for a Strava activity.
uploads/2022/01/strava-banner.png
[ 0.01073588989675045, -0.014088032767176628, -0.00008765803795540705, -0.00523013062775135, 0.08618254214525223, 0.04240856319665909, 0.007967701181769371, 0.04140491038560867, -0.020951692014932632, -0.005625306162983179, 0.005625481251627207, -0.04245421662926674, -0.06189395859837532, -0.0026760657783597708, -0.013050522655248642, 0.061443351209163666, 0.09169886261224747, -0.004359812941402197, 0.007941234856843948, 0.007799061946570873, 0.035574011504650116, 0.05085543170571327, 0.0189828984439373, 0.037164002656936646, 0.00687401182949543, -0.00009040900476975366, 0.015058288350701332, 0.004318352323025465, -0.060107387602329254, -0.012824607081711292, 0.02618134208023548, -0.007845837622880936, -0.004555469378829002, 0.012982742860913277, 0.03658895939588547, -0.018028557300567627, -0.006105516571551561, -0.008538104593753815, 0.0022750154603272676, -0.002119689481332898, -0.05706251040101051, 0.019414296373724937, -0.042423296719789505, 0.01885589212179184, -0.026245171204209328, 0.015194801613688469, -0.020165735855698586, 0.019587041810154915, -0.01664104498922825, -0.00104617013130337, -0.03884531930088997, 0.05547384172677994, -0.02043011598289013, -0.0007443197537213564, 0.008539505302906036, 0.0518900491297245, 0.01567411981523037, -0.0869600772857666, 0.003419961081817746, -0.0484660267829895, -0.002756905509158969, -0.013647387735545635, 0.02935134805738926, 0.02235906757414341, 0.02247847057878971, -0.013257447630167007, 0.015898866578936577, 0.045119758695364, -0.02388845942914486, -0.029530230909585953, -0.01578371785581112, -0.011517309583723545, -0.026621954515576363, 0.00424638856202364, -0.0068547772243618965, -0.045167215168476105, -0.023071227595210075, 0.04512123763561249, 0.026023216545581818, 0.013312709517776966, 0.021544190123677254, -0.04056842252612114, 0.03524504974484444, 0.041524309664964676, -0.00905371643602848, -0.04833005741238594, -0.03771740570664406, -0.04142893850803375, -0.058333221822977066, 0.04009392857551575, 0.011329214088618755, -0.051426127552986145, 0.017676811665296555, 0.013484087772667408, 0.02150619961321354, -0.02963564172387123, -0.006104400381445885, -0.017087137326598167, 0.0034753591753542423, -0.039955612272024155, -0.05609411746263504, -0.012131432071328163, 0.007678247522562742, 0.04997207596898079, -0.06436756253242493, -0.03126822039484978, -0.033224981278181076, -0.015435757115483284, 0.029726721346378326, 0.010275041684508324, -0.03748480603098869, -0.030553817749023438, -0.027618754655122757, -0.008535556495189667, -0.04877634719014168, 0.06280934065580368, 0.015734346583485603, -0.03185092285275459, -0.04890687018632889, 0.000050419253966538236, 0.07148415595293045, 0.028081810101866722, -0.02608599327504635, 0.06537069380283356, 0.012734179385006428, 0.055408623069524765, -0.00725812092423439, 0.056855909526348114, -0.0013295520329847932, -0.04565240815281868, -0.03373030945658684, 0.03519134968519211, -0.02335040085017681, 0.01781487464904785, 0.03179850056767464, -0.02035384625196457, -0.014913766644895077, -0.008592396974563599, 0.05995208024978638, 0.007973230443894863, 0.023696962743997574, -0.02428930439054966, 0.0060150050558149815, 0.012048806995153427, 0.03452001512050629, 0.04205276444554329, 0.002781887538731098, -0.06841295957565308, -0.0475635789334774, 0.002613297663629055, 0.012791232205927372, 0.015879640355706215, 0.08397019654512405, -0.013631840236485004, 0.003382195718586445, 0.09341384470462799, 0.053936537355184555, 0.00897128414362669, -0.021395694464445114, 0.025375839322805405, 0.04851539433002472, 0.037630610167980194, -0.0013763682218268514, 0.059033703058958054, -0.00349087780341506, -0.03374681621789932, 0.022595684975385666, 0.032661110162734985, -0.026871131733059883, -0.0025065564550459385, -0.029798710718750954, -0.04989134520292282, 0.0819847360253334, -0.027957091107964516, -0.02225922979414463, 0.0649915412068367, 0.08273854851722717, 0.03188158944249153, 0.019221002236008644, 0.01389994565397501, -0.08584117889404297, 0.0446639284491539, -0.003411708166822791, 0.012901932001113892, 0.06062319874763489, -0.005159345455467701, 0.09166237711906433, 0.0052492860704660416, -0.02163275144994259, 0.02913362719118595, -0.029403336346149445, -0.04117497429251671, -0.034315139055252075, 0.007689638528972864, 0.06529946625232697, -0.07200832664966583, -0.013086577877402306, 0.047783300280570984, 0.021474018692970276, 0.04541570693254471, 0.013924598693847656, -0.00417944835498929, 0.008706116117537022, -0.04224579036235809, -0.050539497286081314, 0.03693079203367233, 0.03384082019329071, -0.001991281285881996, -0.027377033606171608, 0.03863028064370155, -0.038544900715351105, -0.006738606374710798, 0.039779260754585266, 0.01086013950407505, 0.02115774154663086, 0.013120671734213829, 0.02182864025235176, -0.014422413893043995, 0.022572865709662437, -0.059164661914110184, 0.019227461889386177, -0.0006844566087238491, -0.015152662992477417, -0.037721630185842514, -0.019449325278401375, 0.10882198810577393, 0.047427527606487274, -0.014640686102211475, -0.06492043286561966, 0.00226402236148715, -0.0007434753933921456, -0.04743277281522751, -0.007208072580397129, -0.016916614025831223, -0.02726859413087368, 0.011017422191798687, -0.007227433379739523, -0.04224763438105583, -0.008072656579315662, -0.03965110704302788, -0.0028540664352476597, 0.05065910518169403, -0.021878162398934364, 0.05279230326414108, 0.012146186083555222, -0.029529759660363197, -0.003650371916592121, -0.012673195451498032, -0.07776472717523575, -0.015212521888315678, 0.010573673993349075, -0.01803441531956196, 0.0482872873544693, -0.006281502544879913, -0.03502567484974861, -0.04028024151921272, -0.03603208065032959, 0.031737085431814194, 0.0731036588549614, 0.06478980928659439, -0.011908386833965778, 0.02503514289855957, 0.0082083810120821, 0.0072380853816866875, -0.038579799234867096, -0.054005030542612076, -0.05629623308777809, -0.018499262630939484, 0.03941512852907181, 0.03461678698658943, 0.0217489805072546, 0.023991623893380165, 0.015950143337249756, -0.02306245267391205, 0.017463944852352142, 0.008326745592057705, 0.04394691810011864, 0.000994696980342269, -0.035218577831983566, -0.0035069596488028765, -0.015661844983696938, 0.055856410413980484, -0.048096634447574615, -0.04286159202456474, 0.02216869406402111, -0.07492400705814362, 0.02168266475200653, -0.034892190247774124, -0.028222184628248215, -0.0029909051954746246, -0.002832319587469101, 0.03572237119078636, 0.0006524421041831374, -0.008338410407304764, 0.05447561293840408, 0.04167259857058525, 0.008440646342933178, -0.002055015414953232, -0.029536552727222443, 0.018740305677056313, 0.0003601136268116534, 0.02742680162191391, 0.0685090571641922, -0.011540801264345646, 0.0023730406537652016, -0.03046065755188465, -0.010001746006309986, -0.03607158362865448, -0.27704325318336487, 0.022613121196627617, -0.0018946510972455144, -0.03199335187673569, 0.007443861570209265, 0.016599202528595924, 0.023048067465424538, -0.031140334904193878, -0.049042992293834686, 0.009875981137156487, -0.0016514755552634597, -0.05944369360804558, -0.009212378412485123, 0.021927598863840103, 0.005735835060477257, 0.015158337540924549, -0.025551388040184975, -0.016398461535573006, 0.017825305461883545, 0.060474004596471786, 0.02003742940723896, -0.06576798111200333, -0.006654649041593075, 0.047616273164749146, 0.017909128218889236, 0.06642773747444153, -0.07422840595245361, 0.037226080894470215, -0.04774601757526398, -0.0425320602953434, 0.026476426050066948, -0.02142699994146824, 0.01544869877398014, -0.008425059728324413, 0.0008567398181185126, -0.053314656019210815, 0.04422837495803833, -0.004649584647268057, 0.03494040295481682, -0.0452205128967762, -0.050974950194358826, -0.02016005665063858, 0.015610850416123867, -0.0007586822030134499, 0.08724164962768555, -0.0032322087790817022, -0.06831083446741104, 0.01590154878795147, -0.04285654053092003, 0.06095945090055466, -0.006648899521678686, -0.020380213856697083, -0.0292146448045969, 0.04282938688993454, -0.03329610452055931, -0.029297301545739174, -0.0075321681797504425, -0.0005866348510608077, -0.0450940765440464, -0.03933260589838028, 0.01751496084034443, -0.02972082607448101, -0.02883172407746315, -0.06905005127191544, -0.01259549893438816, -0.06065671145915985, -0.06267228722572327, -0.02261447161436081, 0.03941464051604271, 0.05175431817770004, -0.06680392473936081, -0.0004564957052934915, -0.020610669627785683, -0.09967959672212601, -0.005861867219209671, -0.03345305100083351, -0.015589186921715736, -0.028237074613571167, -0.04156384617090225, 0.04354899376630783, -0.04252171888947487, -0.044775236397981644, 0.03386051580309868, 0.02294451743364334, 0.02546752616763115, -0.029573064297437668, 0.009004393592476845, -0.030984768643975258, -0.015480191446840763, -0.0060760583728551865, 0.07662830501794815, -0.025443710386753082, -0.01380418986082077, 0.006504243705421686, -0.036134637892246246, -0.006346399895846844, 0.04322241246700287, -0.007129226345568895, 0.013566465117037296, -0.005895100999623537, 0.02059556171298027, -0.04128272086381912, -0.020837433636188507, -0.05280553549528122, 0.007514794357120991, -0.015685662627220154, -0.04043653979897499, 0.032063405960798264, 0.007262329570949078, 0.002717221388593316, 0.006282634101808071, -0.05526465177536011, 0.01313389465212822, -0.07658127695322037, -0.013181078247725964, -0.023612573742866516, 0.012131939642131329, 0.049693379551172256, 0.0565125048160553, 0.0031612480524927378, -0.047591887414455414, 0.02695034071803093, 0.015928413718938828, -0.003512005787342787, -0.03517484292387962, -0.016897523775696754, -0.010455447249114513, -0.008870313875377178, -0.009903976693749428, 0.027372930198907852, -0.025581859052181244, 0.029410824179649353, 0.042843420058488846, -0.029035314917564392, 0.01137399673461914, -0.012517297640442848, -0.04537975788116455, -0.024700194597244263, 0.033710066229104996, 0.005300085060298443, -0.0065448228269815445, 0.013028223998844624, 0.005770800169557333, 0.018407883122563362, 0.0501285195350647, 0.005582147277891636, 0.04011924937367439, -0.012360011227428913, 0.010204384103417397, -0.00629049027338624, 0.0032205102033913136, -0.012703466229140759, -0.014455038122832775, -0.002653686096891761, -0.012231316417455673, -0.005560718011111021, 0.005916089750826359, -0.018021637573838234, -0.006563885137438774, -0.024102499708533287, 0.027736341580748558, -0.04193216934800148, -0.03485262393951416, 0.01788496971130371, -0.022151224315166473, 0.032954148948192596, 0.015065591782331467, 0.0032527714502066374, 0.00981233548372984, -0.0262927133589983, 0.03712422773241997, -0.022771423682570457, -0.0058661168441176414, 0.0012025494361296296, -0.04456048458814621, -0.012128995731472969, 0.0014198124408721924, 0.041551947593688965, 0.0032301717437803745, -0.007018514908850193, 0.006161894183605909, 0.007311509922146797, 0.02414354495704174, 0.008273961022496223, 0.02080424688756466, 0.019611628726124763, -0.03802793473005295, -0.03250003606081009, -0.00983240082859993, -0.015178450383245945, -0.031651999801397324, -0.009810520336031914, -0.02249128185212612, -0.0006429403438232839, -0.016581539064645767, -0.07027271389961243, -0.005013731308281422, 0.028470683842897415, 0.00783446989953518, 0.026624932885169983, -0.04058850184082985, -0.010873730294406414, -0.017194237560033798, 0.03144816309213638, 0.05201173946261406, -0.03944064676761627, -0.00003727444709511474, 0.006552122998982668, 0.01213579811155796, 0.0023091130424290895, 0.01335392240434885, -0.07168569415807724, -0.005632684100419283, 0.015806084498763084, 0.009550240822136402, -0.017415573820471764, -0.023732313886284828, -0.06152074411511421, 0.013735568150877953, -0.006166860461235046, 0.032245125621557236, 0.011423246935009956, -0.023906907066702843, -0.027557523921132088, -0.001467638066969812, 0.01294834166765213, -0.009903477504849434, 0.00904502347111702, 0.05672258511185646, 0.008690099231898785, 0.006832404527813196, -0.04342082887887955, 0.0626244992017746, 0.04257017746567726, 0.003619622206315398, 0.00002640823913679924, -0.04398810863494873, -0.00937148928642273, 0.007462529465556145, 0.05974077805876732, 0.01231406256556511, -0.000047143985284492373, -0.007291371002793312, 0.01082385703921318, -0.002176850801333785, 0.025344427675008774, -0.022173993289470673, -0.006407990586012602, 0.011596462689340115, 0.05465858429670334, 0.012898738496005535, 0.01654627174139023, 0.0052932738326489925, -0.06432884931564331, 0.04673956707119942, -0.03867734596133232, -0.053598206490278244, -0.01290697418153286, -0.028634143993258476, 0.008773486129939556, 0.03382781147956848, 0.019423088058829308, -0.04773686081171036, 0.031706374138593674, 0.051141392439603806, 0.03447524830698967, 0.07233645766973495, -0.011276603676378727, 0.043275829404592514, -0.01916711963713169, 0.0111268050968647, -0.09242963790893555, 0.021781347692012787, 0.036933839321136475, -0.004164760932326317, -0.02593417279422283, 0.02886003814637661, -0.05531942471861839, 0.04610753804445267, -0.07027185708284378, -0.013065640814602375, 0.09894271194934845, 0.010695885866880417, 0.004158026538789272, 0.010574114508926868, -0.04040398821234703, 0.033590178936719894, 0.05881506949663162, -0.05476430058479309, 0.014228735119104385, -0.010333764366805553, 0.042414307594299316, -0.009567584842443466, 0.04465136677026749, -0.005787875037640333, -0.021789707243442535, 0.062442194670438766, 0.02595926634967327, -0.009836743585765362, 0.013222537003457546, -0.043554093688726425, 0.05440965294837952, 0.002178649418056011, -0.033049337565898895, -0.012238815426826477, 0.02506951242685318, 0.02193659543991089, -0.06772172451019287, 0.06030038371682167, 0.035147469490766525, 0.006376106292009354, -0.07889216393232346, 0.06110348924994469, 0.020014243200421333, -0.03698345273733139, -0.037980228662490845, 0.022728361189365387, -0.03878035396337509, -0.010333303362131119, -0.005511464551091194, -0.0002797104825731367, -0.0412052683532238, 0.04886236414313316, -0.030906500294804573, -0.016632208600640297, 0.06441732496023178, -0.017440998926758766, 0.011572537012398243, -0.008044810965657234, 0.08339808136224747, 0.0680367574095726, 0.02722530998289585, -0.004595788661390543, 0.06450534611940384, -0.009957727044820786, -0.04000652953982353, 0.00037684879498556256, -0.03154217079281807, -0.03420722857117653, -0.038241658359766006, 0.013876673765480518, 0.06485267728567123, 0.014057451859116554, 0.06115276366472244, -0.043124716728925705, -0.032380279153585434, -0.018951240926980972, -0.00016626586148049682, 0.03446262329816818, 0.004249237943440676, 0.011538879945874214, 0.05780921131372452, -0.024370506405830383, -0.015545018017292023, 0.03751199319958687, -0.0050146980211138725, -0.012194773182272911, 0.045008573681116104, -0.023168180137872696, -0.01029402669519186, 0.012400460429489613, 0.01865760236978531, 0.07464320957660675, -0.03519567847251892, -0.013869286514818668, -0.020346488803625107, 0.04474900662899017, -0.013707338832318783, 0.012088366784155369, 0.003193636890500784, 0.01333450898528099, 0.01326615922152996, -0.015906980261206627, -0.02306603454053402, -0.008941867388784885, -0.022341638803482056, 0.04630926251411438, -0.018127698451280594, 0.038127828389406204, 0.016187909990549088, -0.02556733600795269, -0.07383245974779129, -0.034426361322402954, -0.05942308157682419, -0.04974103718996048, -0.08394552767276764, 0.0014381000073626637, -0.010465210303664207, -0.008248947560787201, -0.03537331521511078, -0.04550612345337868, -0.01965060830116272, 0.01705685257911682, -0.01835622824728489, -0.054421357810497284, -0.034775808453559875, 0.03802289813756943, 0.03578391671180725, 0.002336034318432212, 0.022097015753388405, 0.05963120982050896, -0.017586994916200638, -0.026628682389855385, -0.03816252946853638, 0.006530070677399635, 0.06110119819641113, 0.0035361566115170717, 0.0074462066404521465, -0.052106309682130814, 0.020550545305013657, 0.03309169039130211, -0.008680921979248524, -0.07840166985988617, 0.04028250277042389, 0.04879527911543846, 0.01951635628938675, 0.04210440441966057, -0.025703703984618187, 0.001062040333636105, -0.05745779350399971, -0.020109301432967186, 0.02109326608479023, 0.008502913638949394, 0.04098795726895332, -0.037704601883888245, 0.06295400857925415, 0.0351078137755394, 0.02085028402507305, -0.03617427870631218, -0.012227284722030163, -0.02081255242228508, 0.005126643925905228, -0.03863196447491646, -0.02042749524116516, -0.053898315876722336, -0.05262691527605057, -0.024255769327282906, 0.01570427231490612, -0.028102979063987732, -0.027264611795544624, 0.00617901049554348, 0.011307853274047375, -0.0023427230771631002, 0.07045948505401611, -0.0133206807076931, 0.028670767322182655, -0.04246274009346962, 0.002814729930832982, -0.03172194957733154, 0.04366150498390198, 0.010802222415804863, 0.01722019724547863, 0.02405756711959839, -0.04620795324444771, 0.01874920167028904, -0.0003462651511654258, 0.04117441922426224, 0.04900909587740898, -0.024038778617978096, 0.027299776673316956 ]
[ -0.04964766278862953, -0.05393923819065094, -0.019074691459536552, -0.044791217893362045, 0.05727805942296982, -0.05634273216128349, -0.04445043206214905, 0.03396548330783844, 0.021028807386755943, 0.015973705798387527, 0.013853336684405804, -0.07788180559873581, -0.02903405763208866, -0.01409055944532156, 0.029122577980160713, -0.02732500061392784, -0.031247781589627266, -0.05576621741056442, -0.02901509776711464, 0.04102795943617821, -0.03659692034125328, 0.002128098625689745, -0.021676279604434967, -0.032661374658346176, 0.04353455826640129, 0.04052397236227989, 0.06557315587997437, -0.057840947061777115, 0.0062646036967635155, -0.1997944861650467, 0.01734299585223198, -0.01890506036579609, -0.0027317171916365623, 0.01084462832659483, -0.02430768311023712, 0.06463266909122467, 0.003007067134603858, 0.03418700024485588, -0.0003587946994230151, 0.03868981450796127, 0.026701457798480988, 0.015663566067814827, -0.0533638522028923, -0.03303492069244385, 0.014233804307878017, -0.022085728123784065, -0.036529816687107086, -0.007148217875510454, -0.0008943718275986612, 0.01728942058980465, -0.005908329971134663, 0.03782844543457031, -0.004434165544807911, 0.032290268689394, -0.03179179131984711, 0.0040747784078121185, 0.06115331873297691, 0.062583789229393, 0.03727499768137932, -0.002648149384185672, 0.006021483801305294, -0.045401301234960556, -0.14429770410060883, 0.10145922750234604, -0.03253059834241867, 0.061068493872880936, -0.002804751740768552, 0.03730200231075287, -0.03243713453412056, 0.04373302683234215, -0.03736194968223572, -0.0016750795766711235, -0.04048078879714012, 0.06519459933042526, 0.05364561825990677, -0.04632101580500603, -0.005885631777346134, 0.06721143424510956, 0.012324674054980278, -0.008457843214273453, -0.02173849381506443, -0.008706950582563877, -0.0069274683482944965, 0.022270090878009796, 0.005785402841866016, -0.02583385445177555, -0.009628313593566418, 0.051938120275735855, 0.04116925224661827, 0.04222695156931877, 0.0299063790589571, -0.05883798003196716, 0.02821420505642891, 0.03487972915172577, -0.09949883818626404, -0.026351889595389366, 0.017112966626882553, 0.03729552403092384, -0.012699040584266186, 0.40078863501548767, -0.04734525457024574, 0.017848461866378784, 0.00774631230160594, 0.060155898332595825, 0.0068189240992069244, -0.025359120219945908, -0.03877495974302292, -0.027180392295122147, 0.007112211547791958, 0.005416519939899445, 0.03822088986635208, 0.02717744931578636, 0.036565251648426056, -0.08248196542263031, 0.009140477515757084, 0.018584594130516052, -0.01154482550919056, 0.041662946343421936, -0.03778775781393051, 0.007047533057630062, -0.043001603335142136, 0.009026560001075268, 0.05044838786125183, 0.01089730765670538, 0.02849564328789711, 0.048932258039712906, 0.022381478920578957, 0.0402618870139122, 0.05626334622502327, 0.04585599899291992, 0.02948749251663685, -0.010476398281753063, -0.07670345157384872, 0.0063934288918972015, -0.008811631239950657, 0.010998939163982868, -0.00037254183553159237, -0.04267989099025726, 0.029965825378894806, 0.016665607690811157, -0.013696551322937012, -0.05218949541449547, 0.06631257385015488, -0.006769817788153887, -0.024532420560717583, 0.10533450543880463, 0.015680640935897827, -0.022847434505820274, -0.0329461470246315, -0.06724375486373901, 0.019025893881917, 0.02426154352724552, -0.012735549360513687, -0.048889972269535065, 0.036101169884204865, 0.04106598719954491, 0.08883482217788696, 0.0006349341128952801, -0.09862761944532394, -0.032504308968782425, 0.004678467288613319, -0.06947382539510727, -0.026276256889104843, -0.0024085401091724634, 0.034576110541820526, -0.13380904495716095, -0.0033505852334201336, 0.028730861842632294, -0.0029004826210439205, -0.06315890699625015, -0.0027766297571361065, -0.004886222071945667, 0.00951304193586111, -0.02040066197514534, 0.07162785530090332, 0.018713071942329407, -0.020822659134864807, 0.009204880334436893, 0.05267516151070595, 0.022124407812952995, -0.026954948902130127, -0.004936148878186941, 0.00030008447356522083, -0.0039433641359210014, -0.04059773311018944, -0.051905080676078796, -0.04466111585497856, 0.00668228417634964, -0.018522020429372787, -0.04256145656108856, 0.017641622573137283, -0.043175093829631805, -0.04555491730570793, 0.022681061178445816, 0.006050828844308853, 0.011121841147542, -0.020756445825099945, 0.018302608281373978, 0.020247535780072212, -0.05347086116671562, 0.032803021371364594, -0.012201238423585892, 0.006446957588195801, 0.025462888181209564, 0.0016563519602641463, 0.010783690959215164, 0.050648659467697144, -0.06455209851264954, 0.04882768914103508, 0.031097199767827988, -0.025522779673337936, 0.04059454798698425, 0.007705803960561752, -0.0018967445939779282, 0.01426374725997448, -0.06184498965740204, -0.032643064856529236, -0.030164847150444984, -0.021268971264362335, 0.01540155615657568, -0.03685778006911278, -0.05390444025397301, -0.04061124473810196, -0.3524054288864136, -0.016562029719352722, -0.0011295332806184888, 0.03710982948541641, 0.005813689902424812, -0.07098716497421265, -0.0037373064551502466, 0.029185239225625992, 0.015860171988606453, 0.010715913027524948, 0.1626124382019043, -0.003983788192272186, 0.002973977942019701, -0.0990014374256134, -0.002869984367862344, 0.026234298944473267, -0.0242718905210495, 0.0050480724312365055, -0.017192794010043144, -0.018752656877040863, 0.014946919865906239, -0.023999979719519615, -0.06389583647251129, -0.012813027948141098, 0.006726568564772606, -0.022295627743005753, 0.11928927153348923, 0.008877420797944069, 0.05085219070315361, -0.05359320342540741, 0.03677412495017052, 0.009371660649776459, -0.021561244502663612, -0.08393397927284241, -0.0073225065134465694, -0.028667617589235306, 0.07951514422893524, 0.052541330456733704, 0.0332942008972168, -0.02316945418715477, -0.03674919530749321, 0.03834395483136177, -0.0014791222056373954, 0.015172719024121761, -0.023516211658716202, 0.004365176893770695, 0.00018361366528552026, -0.039879944175481796, 0.01814129948616028, 0.07041754573583603, -0.020446987822651863, 0.021262284368276596, -0.011014973744750023, 0.013625795021653175, -0.002343398053199053, 0.007341194897890091, -0.09748639166355133, -0.0473187118768692, -0.009406118653714657, -0.0037708028685301542, -0.010296251624822617, -0.0022552695591002703, 0.02834099344909191, -0.06581184267997742, 0.022828547284007072, 0.04337296262383461, 0.00831044651567936, -0.03213176503777504, 0.064627505838871, 0.0056828963570296764, -0.04727113991975784, 0.09047906845808029, -0.03205501660704613, -0.0002020482934312895, 0.08215507864952087, 0.03645925968885422, 0.04474957287311554, 0.05811476334929466, 0.05084289610385895, 0.012425334192812443, -0.013214423321187496, -0.0005233046249486506, 0.015359338372945786, -0.014183776453137398, 0.03846750035881996, 0.042464207857847214, -0.03679986298084259, -0.005397862289100885, 0.030262595042586327, 0.02574900910258293, -0.011408391408622265, -0.03921711444854736, 0.007285493891686201, -0.04001754894852638, 0.0396672859787941, 0.02451547607779503, -0.25412070751190186, 0.019293101504445076, 0.07598232477903366, 0.03799145296216011, -0.002495360793545842, -0.04313567280769348, -0.008638336323201656, -0.06321997195482254, -0.02804851345717907, 0.007757955696433783, -0.028880061581730843, 0.03194119408726692, 0.0011971724452450871, 0.014210295863449574, -0.009822850115597248, -0.014161746017634869, 0.0482291504740715, 0.030119234696030617, 0.05499351769685745, -0.016519984230399132, 0.01138387806713581, -0.022236404940485954, 0.14959052205085754, 0.04091939702630043, -0.011065867729485035, -0.01432452816516161, 0.01333507988601923, -0.005670360755175352, 0.05095945671200752, 0.004212884232401848, -0.003971395082771778, -0.029764724895358086, 0.046591244637966156, 0.03941154479980469, 0.025398656725883484, -0.02291790582239628, -0.04672742635011673, 0.02581384778022766, 0.0032775767613202333, -0.031120004132390022, 0.04139414057135582, 0.011801519431173801, -0.018312590196728706, -0.02172873169183731, 0.075785331428051, -0.03393825888633728, -0.01692964695394039, -0.002165844663977623, -0.03978932648897171, -0.020225511863827705, -0.030020490288734436, -0.04539578780531883, -0.045129574835300446, 0.0067968727089464664, 0.013653257861733437, 0.03491974249482155, -0.003386330557987094, -0.025322116911411285, 0.02442651055753231, 0.04471521079540253, 0.01578540727496147, -0.06244407221674919, 0.09127455949783325, -0.020906643941998482, 0.030522597953677177 ]
[ 0.020701345056295395, 0.026500388979911804, -0.03925298899412155, 0.0230703204870224, -0.005389802157878876, 0.03166060894727707, -0.02316071093082428, -0.0023219557479023933, 0.011418720707297325, -0.0040261149406433105, -0.015212859027087688, 0.02667214535176754, 0.0006263893446885049, -0.02037300541996956, 0.06850463151931763, -0.04248879477381706, -0.029439393430948257, -0.0427299365401268, 0.06286824494600296, 0.006615199614316225, -0.0028131448198109865, 0.0009696269989944994, 0.007997214794158936, 0.037659887224435806, -0.0022535400930792093, 0.04897273704409599, -0.035363517701625824, -0.03288087621331215, 0.018157057464122772, -0.13977229595184326, -0.001406663446687162, -0.010187515057623386, 0.010036641731858253, -0.022863633930683136, -0.0322667732834816, 0.032288119196891785, -0.03047407977283001, -0.029402676969766617, -0.052482735365629196, 0.010802249424159527, 0.03555185720324516, -0.021248681470751762, 0.015188333578407764, 0.019045766443014145, -0.016232425346970558, 0.001787336077541113, 0.019008027389645576, -0.010324387811124325, -0.003925326745957136, -0.011304037645459175, -0.014319290407001972, -0.002907457062974572, -0.02706088311970234, -0.007133303675800562, -0.0021660125348716974, -0.014330482110381126, -0.04723995923995972, 0.01886713318526745, 0.0385550782084465, -0.028359483927488327, 0.03446992486715317, 0.028707342222332954, -0.028233643621206284, -0.023678183555603027, -0.009620187804102898, -0.04324072226881981, -0.009184722788631916, -0.015722308307886124, -0.0035894729662686586, 0.0048637413419783115, -0.01992490515112877, 0.014217346906661987, -0.01969444379210472, -0.03152092918753624, -0.042162518948316574, -0.00885928887873888, -0.001091529498808086, -0.03865612670779228, -0.025663739070296288, -0.003957767505198717, -0.019827909767627716, -0.0028048567473888397, -0.014983692206442356, 0.07665769010782242, -0.004325901623815298, -0.0057412730529904366, -0.021580277010798454, -0.014632267877459526, 0.02823576144874096, -0.019918693229556084, 0.025221755728125572, -0.024292077869176865, -0.05192027613520622, 0.02333761565387249, -0.06793353706598282, 0.002555134240537882, -0.012246807105839252, 0.012081732042133808, -0.02960696816444397, 0.812909722328186, -0.0018445252208039165, 0.015924641862511635, 0.010216633789241314, 0.04758148267865181, 0.018692445009946823, 0.006160180550068617, -0.008069192990660667, -0.020237823948264122, 0.009131602942943573, -0.023446498438715935, 0.00851861760020256, 0.0037941772025078535, 0.015041597187519073, -0.008343878202140331, 0.03145037591457367, 0.04580173268914223, 0.007686808239668608, -0.002544525545090437, -0.000898639380466193, 0.019364677369594574, 0.022777540609240532, -0.017900647595524788, 0.03199491277337074, 0.0026736902073025703, 0.04159420728683472, -0.15154528617858887, 0.009240700863301754, -6.0097251541545146e-33, 0.008155733346939087, -0.03967573493719101, 0.07356865704059601, -0.011069070547819138, 0.014155397191643715, -0.008945482783019543, -0.03626371547579765, -0.020923195406794548, 0.011756549589335918, -0.028991060331463814, 0.010051077231764793, 0.02103038690984249, -0.0037018018774688244, 0.014268930070102215, 0.0405317097902298, -0.02913261018693447, 0.02179928869009018, 0.043558381497859955, 0.018306760117411613, 0.009932965971529484, 0.032790765166282654, -0.023360522463917732, 0.007045239210128784, 0.03548992797732353, 0.00035995375947095454, 0.025035301223397255, 0.021487247198820114, 0.018601994961500168, -0.029926443472504616, -0.03457970172166824, -0.02281269244849682, -0.008043421432375908, 0.012155137956142426, -0.032003093510866165, 0.031492456793785095, -0.05896291881799698, -0.052821967750787735, -0.006882697809487581, -0.02521553821861744, -0.04045357182621956, 0.006499362178146839, -0.03484217822551727, -0.03616912290453911, 0.0037832404486835003, -0.035129643976688385, 0.008995136246085167, -0.0017636568518355489, 0.06385429948568344, -0.01055988110601902, 0.03403688967227936, 0.029729481786489487, 0.02962373197078705, -0.030928825959563255, -0.04775625839829445, -0.02621776983141899, 0.046174176037311554, 0.028050066903233528, 0.04177411273121834, 0.013273338787257671, 0.0049979472532868385, 0.02337975800037384, -0.014548356644809246, 0.007367552258074284, 0.02290019392967224, 0.04204145818948746, -0.004607793875038624, 0.012194774113595486, 0.039162956178188324, 0.034982699900865555, -0.02011176198720932, -0.04566202312707901, 0.031365301460027695, 0.010414269752800465, -0.006492962129414082, 0.03526734188199043, -0.021024148911237717, 0.005574815906584263, 0.043414343148469925, 0.03565719723701477, 0.02816307730972767, -0.006172336637973785, -0.044137969613075256, 0.0005664746859110892, -0.05187632516026497, -0.027264900505542755, -0.012813848443329334, 0.03678480535745621, -0.026298820972442627, -0.0466652438044548, 0.004930928349494934, 0.025920037180185318, 0.04384187236428261, 0.02035350538790226, -0.028395390138030052, -0.037372663617134094, 5.813572983226692e-33, 0.008925596252083778, -0.060674212872982025, 0.009791315533220768, -0.003148262854665518, 0.035165734589099884, 0.0009647815604694188, 0.015024813823401928, 0.05969328433275223, -0.03675806149840355, 0.031225167214870453, -0.028039470314979553, -0.02364051528275013, -0.06328233331441879, 0.011024690233170986, 0.0736948773264885, 0.02274535968899727, 0.04125898703932762, 0.019869236275553703, -0.045597851276397705, -0.02622448280453682, -0.014004663564264774, 0.022373653948307037, 0.010378123261034489, 0.03506119176745415, 0.05517120286822319, 0.018610738217830658, 0.023880325257778168, -0.01312965713441372, -0.05780557543039322, -0.0013568854192271829, -0.01933133788406849, -0.038146186619997025, -0.009111257269978523, -0.00301948725245893, -0.020395487546920776, 0.03510484844446182, 0.004143876023590565, 0.010409487411379814, 0.016768120229244232, -0.031377267092466354, 0.0838748887181282, 0.02241940051317215, 0.016371911391615868, 0.020288364961743355, 0.018358556553721428, 0.010722117498517036, -0.04018281400203705, 0.028221389278769493, -0.03321690484881401, 0.024506255984306335, 0.007099445443600416, 0.039865050464868546, -0.00615055812522769, 0.023004692047834396, 0.045112837105989456, -0.02076164074242115, -0.041959185153245926, -0.002696900861337781, -0.02659129910171032, -0.05912164971232414, -0.03932938724756241, -0.03824590891599655, -0.012825158424675465, 0.039734531193971634, 0.009688513353466988, -0.05120401456952095, -0.013097384013235569, -0.023921160027384758, 0.015146818943321705, 0.007858842611312866, 0.0003321365802548826, -0.025955401360988617, -0.03741475194692612, 0.04538062959909439, -0.007755003869533539, -0.016147185117006302, -0.009177548810839653, 0.013229458592832088, -0.021193960681557655, 0.016185197979211807, 0.017378732562065125, -0.020545650273561478, 0.024104561656713486, -0.025864601135253906, 0.006589892785996199, 0.02289980836212635, -0.02932855300605297, 0.01868615671992302, 0.04519885033369064, 0.03656434640288353, -0.01789291761815548, -0.0030160972382873297, -1.8595055450987275e-7, -0.004709532950073481, 0.02924969233572483, -1.1883943606960656e-8, -0.029882144182920456, 0.01093999296426773, 0.0008186041959561408, 0.017060868442058563, 0.03410566970705986, -0.003082939190790057, -0.03839285299181938, -0.023218506947159767, 0.004599136766046286, 0.021394548937678337, 0.041757162660360336, -0.06774644553661346, 0.010451297275722027, 0.004505898803472519, 0.00029522815020754933, -0.013331514783203602, 0.0167476125061512, 0.039103031158447266, 0.011085953563451767, -0.012100941501557827, 0.004334302619099617, 0.027577780187129974, 0.0008396508637815714, 0.004253618884831667, 0.013725350610911846, 0.001695604296401143, -0.012238344177603722, -0.06554475426673889, 0.011946412734687328, -0.018810054287314415, 0.012898201122879982, -0.03509023040533066, -0.03211250901222229, 0.004564296919852495, -0.03627996891736984, -0.046011459082365036, 0.03937626630067825, -0.011947580613195896, 0.0009373369393870234, 0.039376284927129745, -0.03233034908771515, -0.0034222945105284452, 0.015639957040548325, -0.029735319316387177, -0.03018641099333763, 0.01994255557656288, -0.025212794542312622, 0.005526857450604439, 0.010587161406874657, -0.01699988543987274, 0.01679844968020916, -0.0007715456886216998, -0.022945886477828026, 0.029096420854330063, 0.01128832995891571, 0.010044611059129238, 0.005248358007520437, 0.01684316247701645, -0.03178376331925392, -0.01330396719276905, 0.012457356788218021, 0.014251435175538063, -0.053231608122587204, -0.006305645685642958 ]
strava-export-interpolate-lat-long-points-activity
https://markhneedham.com/blog/2022/01/18/strava-export-interpolate-lat-long-points-activity
false
2022-01-19 00:44:37
Apache Pinot: Sorted indexes on offline tables
[ "pinot" ]
[ "Pinot" ]
I've recently been learning all about Apache Pinot's sorted forward indexes. I was initially going to explain how they work for offline and real-time tables, but the post got a bit long, so instead we'll have two blog posts. In this one we'll learn how sorted indexes are applied for offline tables. .Apache Pinot: Sorted indexes on offline tables image::{{<siteurl>}}/uploads/2022/01/sorted-indexes-offline-banner.png[] == Launch Components We're going to spin up a local instance of Pinot using the following Docker compose config: .docker-compose.yml [source, yaml] ---- version: '3.7' services: zookeeper: image: zookeeper:3.5.6 hostname: zookeeper container_name: zookeeper-strava ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 pinot-controller: image: apachepinot/pinot:0.9.3 command: "StartController -zkAddress zookeeper-strava:2181 -dataDir /data" container_name: "pinot-controller-strava" volumes: - ./config:/config - ./data:/data - ./input:/input restart: unless-stopped ports: - "9000:9000" depends_on: - zookeeper pinot-broker: image: apachepinot/pinot:0.9.3 command: "StartBroker -zkAddress zookeeper-strava:2181" restart: unless-stopped container_name: "pinot-broker-strava" ports: - "8099:8099" depends_on: - pinot-controller pinot-server: image: apachepinot/pinot:0.9.3 command: "StartServer -zkAddress zookeeper-strava:2181" restart: unless-stopped container_name: "pinot-server-strava" depends_on: - pinot-broker ---- We can launch all the components by running the following command: [source, bash] ---- docker-compose up ---- == Create Schema We're going to explore sorted indexes using a dataset of my Strava activities. We'll be using the following schema: ./config/schema.json [source, json] ---- include::content/2022/01/19/config/schema.json[] ---- We can create the schema by running the following command: [source, bash] ---- docker exec -it pinot-controller-strava bin/pinot-admin.sh AddSchema \ -schemaFile /config/schema.json -exec ---- == Create Table Now let's create an offline table based on that schema. ./config/table-offline.json [source, json] ---- include::content/2022/01/19/config/table-offline.json[] ---- We can create a table by running the following command: [source, bash] ---- docker exec -it pinot-controller-strava bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table-offline.json \ -exec ---- == What is a sorted index? Before we ingest any data, let's remind ourselves about the definition of a sorted index. [quote, Sorted forward index with run-length encoding, 'https://docs.pinot.apache.org/basics/indexing/forward-index#sorted-forward-index-with-run-length-encoding[docs.pinot.apache.org/basics/indexing/forward-index#sorted-forward-index-with-run-length-encoding]'] _____ When a column is physically sorted, Pinot uses a sorted forward index with run-length encoding on top of the dictionary-encoding. Instead of saving dictionary ids for each document id, Pinot will store a pair of start and end document ids for each value. _____ A diagram showing how a sorted index works conceptually is shown below: .Sorted Forward Index image::{{<siteurl>}}/uploads/2022/01/sorted-forward.png[width="500px"] The advantage of having a sorted index is that queries that filter by that column will be more performant since the query engine doesn't need to scan through every document to check if they match the filtering criteria. When creating a segment Pinot does a single pass over every column to check whether the data is sorted. Columns that contain sorted data will use a sorted forward index. [NOTE] ==== Sorted indexes are determined for each segment. This means that a column could be sorted in one segment, but not in another one. ==== == Ingesting Data Now let's import some data into our table. We'll be importing data from CSV files that contain some of the lat/longs from a few of my Strava runs. `activity1.csv` contains the first 5 recorded points from one run: .activity1.csv [format="csv", options="header", cols="10,10,10,10,10,10,10,20,10"] |=== include::content/2022/01/19/input/activity1.csv[] |=== And `activity2.csv` contains 5 recorded points from two different runs: .activity2.csv [format="csv", options="header", cols="10,10,10,10,10,10,10,20,10"] |=== include::content/2022/01/19/input/activity2.csv[] |=== [source, bash] ---- docker exec \ -it pinot-controller-strava bin/pinot-admin.sh LaunchDataIngestionJob \ -jobSpecFile /config/job-spec.yml ---- Once the job has run we'll have two segments in our table, which we can see by navigating to http://localhost:9000/#/tenants/table/activities_offline_OFFLINE. You should see something like the following: .Segments image::{{<siteurl>}}/uploads/2022/01/segments-table.png[] If the segments are showing up we can be reasonably sure that the import has worked, but let's also navigate to http://localhost:9000/#/query to make sure. If we run a query against the table, we should see something like the following: .Querying the activities_offline table image::{{<siteurl>}}/uploads/2022/01/sorted-query.png[] == Checking sorted status Next, we're going to check on the sorted status of the columns in each segment. First let's collect all the columns in the `activities` schema: [source, bash] ---- export queryString=`curl -X GET "http://localhost:9000/schemas/activities" -H "accept: application/json" 2>/dev/null | jq -r '[.dimensionFieldSpecs,.dateTimeFieldSpecs | .[] | .name ] | join("&columns=")'` ---- And now let's call the _getServerMetaData_ endpoint and filter the response to get the segment name, input file, and column names with sorted status: [source, bash] ---- curl -X GET "http://localhost:9000/segments/activities_offline/metadata?columns=${queryString}" \ -H "accept: application/json" 2>/dev/null | jq -c '.[] | select(.columns != null) | { segment: .segmentName, importedFrom: .custom ["input.data.file.uri"], columns: .columns | map({(.columnName): .sorted}) }' ---- If we run this command, we'll see the following output: .Output [source, json] ---- { "segment": "activities_offline_OFFLINE_1581488399000_1582343333000_1", "importedFrom": "file:/input-blog/activity2.csv", "columns": [ {"altitude": false}, {"distance": false}, {"hr": false}, {"lon": false}, {"cadence": false}, {"rawTime": false}, {"location": false}, {"id": false}, {"lat": true}, {"timestamp": false} ] } { "segment": "activities_offline_OFFLINE_1570656325000_1570656332000_0", "importedFrom": "file:/input-blog/activity1.csv", "columns": [ {"altitude": true}, {"distance": true}, {"hr": true}, {"lon": false}, {"cadence": true}, {"rawTime": true}, {"location": false}, {"id": true}, {"lat": false}, {"timestamp": true} ] } ---- [NOTE] ==== I have formatted the JSON output using the https://j-brooke.github.io/FracturedJson/[FracturedJson tool^] in the web browser to make it easier to read. ==== From this output we can see that the segment created from `activity1.csv` has many more sorted columns than the one created from `activity2.csv.` The only column that was explicitly sorted is `timestamp`, but `rawTime` and `distance` are also sorted because they are correlated with `timestamp` within an activity. For the `activity2.csv` segment the only sorted column is `lat`, which is sorted by chance more than anything else! None of the other columns are sorted. == Summary So that's the end of this first post explaining how sorted indexes work in Apache Pinot. Hopefully it all made sense, but if not feel free to ask any questions on the https://communityinviter.com/apps/apache-pinot/apache-pinot[Pinot Community Slack^]. In our next post we'll learn https://www.markhneedham.com/blog/2022/01/20/apache-pinot-sorted-indexes-realtime-tables/[how sorted indexes work on real-time tables].
In this post we'll learn all about sorted indexes on offline tables in Apache Pinot.
uploads/2022/01/sorted-indexes-offline-banner.png
[ -0.027273615822196007, -0.0031715012155473232, 0.0003491912502795458, 0.04038546234369278, 0.0812172070145607, 0.002179102273657918, -0.0059097763150930405, 0.057738516479730606, -0.018048737198114395, -0.018994199112057686, -0.018895749002695084, -0.009069763123989105, -0.04933631047606468, 0.016427265480160713, 0.015622948296368122, 0.06768303364515305, 0.08016182482242584, -0.007052473723888397, 0.021533045917749405, -0.01594495214521885, 0.03405005484819412, 0.02476879023015499, 0.005959256552159786, 0.044524941593408585, 0.009470006451010704, 0.009379073046147823, -0.018135935068130493, 0.0250808447599411, -0.052278682589530945, -0.00767942750826478, 0.02675049938261509, -0.008357093669474125, 0.007148960139602423, -0.013207254000008106, 0.011989517137408257, 0.00100315036252141, -0.020303873345255852, 0.00998167134821415, -0.006192937958985567, 0.025735272094607353, -0.07690352201461792, 0.020704589784145355, 0.0003356711531523615, 0.008262643590569496, -0.003923103213310242, 0.03438379615545273, -0.05382920429110527, 0.002460601506754756, 0.02394566871225834, 0.025400692597031593, -0.08588270097970963, 0.033099137246608734, -0.024967782199382782, 0.03359357267618179, 0.011584454216063023, 0.034644294530153275, -0.021652106195688248, -0.04057259485125542, 0.0270022451877594, -0.017985086888074875, -0.0211601834744215, -0.015177762135863304, 0.013240312226116657, 0.014593537896871567, -0.015135434456169605, -0.0390278622508049, -0.010425643995404243, 0.03198697790503502, -0.04759208485484123, 0.0004981656093150377, 0.010862122289836407, -0.006120803765952587, 0.007606813218444586, -0.012167597189545631, 0.020299067720770836, -0.01578264683485031, -0.028551282361149788, 0.05379188060760498, 0.02185056358575821, 0.04985053092241287, -0.031314391642808914, -0.02584121748805046, 0.010063580237329006, 0.026891039684414864, -0.00468295905739069, -0.039042726159095764, -0.033540140837430954, -0.02546512894332409, -0.06408100575208664, 0.08262772113084793, -0.007061379961669445, -0.026755891740322113, 0.014144768938422203, -0.00012656678154598922, -0.02928955666720867, 0.019918493926525116, 0.02307385392487049, -0.002205478958785534, 0.017249295487999916, 0.0033561119344085455, -0.01607361249625683, -0.0069159758277237415, 0.019473053514957428, 0.05180217698216438, -0.07694437354803085, -0.04009247198700905, -0.040161360055208206, -0.012239002622663975, -0.013119918294250965, 0.01846725307404995, -0.03793160989880562, 0.0014635652769356966, -0.0164761021733284, 0.03781456500291824, -0.06976066529750824, 0.0788474977016449, 0.014412390068173409, -0.04359305649995804, 0.05646846443414688, 0.012339428067207336, 0.059575457125902176, 0.027818750590085983, -0.028770532459020615, 0.07769865542650223, -0.009395425207912922, 0.004025156144052744, 0.0020945107098668814, 0.042273297905921936, -0.003741581691429019, -0.07886052131652832, -0.02958306297659874, 0.05054153501987457, 0.03242138400673866, -0.02144814468920231, -0.002876761369407177, -0.051112376153469086, -0.011716882698237896, -0.0008312577847391367, 0.06225898489356041, 0.03536177799105644, -0.024019833654165268, -0.026481017470359802, 0.02523520588874817, 0.0025162668898701668, 0.05022383853793144, 0.01741863042116165, 0.0007237138925120234, -0.05882073566317558, -0.029991375282406807, 0.004891142714768648, 0.010902538895606995, 0.02627377212047577, 0.049466222524642944, -0.04698055237531662, -0.004958024714142084, 0.07200348377227783, 0.026703443378210068, 0.008759485557675362, -0.01423170231282711, -0.0017895527416840196, 0.03446629270911217, 0.019660642370581627, 0.02686217799782753, 0.03644489124417305, 0.03289886564016342, -0.04160875454545021, -0.00500852894037962, 0.06800326704978943, -0.016298767179250717, 0.003293528687208891, -0.049187883734703064, -0.025970228016376495, 0.06201443821191788, -0.05476823076605797, 0.00207271589897573, 0.07247301936149597, 0.08599662780761719, 0.028529582545161247, 0.021050486713647842, -0.005071032792329788, -0.07941301167011261, 0.057672709226608276, 0.02398022636771202, 0.004148771520704031, 0.005269151646643877, -0.00980625580996275, 0.056663453578948975, 0.009142009541392326, 0.056551817804574966, 0.012825273908674717, -0.07225553691387177, -0.06582853198051453, -0.02068702131509781, -0.005401654168963432, 0.06275810301303864, -0.0025502287317067385, 0.011017643846571445, 0.0690302699804306, -0.0027792640030384064, 0.020144203677773476, 0.004054673481732607, 0.03403641656041145, 0.013812935911118984, -0.09756071120500565, -0.08027596771717072, 0.02008012868463993, 0.022228747606277466, -0.05641084536910057, -0.035810790956020355, 0.012986814603209496, -0.054692428559064865, -0.03384692594408989, 0.04806738346815109, -0.03055022470653057, 0.07179435342550278, 0.03536194562911987, 0.043252814561128616, -0.029350467026233673, 0.04414203017950058, -0.039452146738767624, 0.0460321269929409, 0.017250346019864082, -0.02556653507053852, -0.0004589276504702866, -0.013862027786672115, 0.11377247422933578, 0.07650161534547806, -0.020427804440259933, -0.03426709398627281, 0.06397809833288193, 0.03977970406413078, -0.05340323597192764, 0.00782553106546402, -0.017737194895744324, 0.010936914011836052, -0.0004512312589213252, -0.04142927750945091, -0.04058600217103958, 0.03994880989193916, -0.0046786777675151825, -0.00036409200401976705, 0.06611613184213638, -0.02345970831811428, 0.06912354379892349, 0.03297732397913933, 0.009826263412833214, 0.000707898463588208, -0.031923968344926834, -0.08611690998077393, -0.020660672336816788, 0.0023265958297997713, -0.010813443921506405, 0.03809204325079918, -0.02853933535516262, -0.032461561262607574, -0.04225602373480797, -0.049531981348991394, 0.034708425402641296, 0.036287158727645874, 0.04447011649608612, -0.014707855880260468, 0.049586132168769836, -0.03833582252264023, 0.009594094008207321, -0.007813909091055393, -0.06000443175435066, -0.0066073741763830185, -0.013086304068565369, 0.008890660479664803, 0.034768715500831604, 0.014932611957192421, -0.0159259382635355, 0.02223086543381214, -0.008189676329493523, 0.04225367680191994, -0.006483013276010752, 0.021848538890480995, 0.02540658786892891, -0.004090922884643078, -0.018643759191036224, -0.008460594341158867, 0.05402103438973427, -0.04084701091051102, -0.0040949927642941475, 0.0058485097251832485, -0.06235303729772568, 0.046358849853277206, -0.06338629126548767, -0.04322163760662079, -0.015269104391336441, 0.040928132832050323, 0.009901772253215313, 0.0064302608370780945, -0.009176877327263355, 0.05732550099492073, 0.03830104321241379, -0.015587063506245613, 0.03391045704483986, -0.019945716485381126, 0.037330031394958496, -0.004906405229121447, 0.003827144857496023, 0.03647150844335556, -0.011361794546246529, -0.01776381954550743, -0.029736177995800972, -0.00419060280546546, -0.028615223243832588, -0.2924537658691406, 0.03895976021885872, -0.015040850266814232, -0.016152583062648773, 0.010126767680048943, -0.004141148179769516, 0.005940686445683241, -0.015998579561710358, 0.0040399846620857716, -0.002133806934580207, -0.015694566071033478, -0.01334109716117382, -0.016321683302521706, 0.01821461319923401, -0.019547397270798683, 0.038715511560440063, 0.0025643787812441587, -0.0797775462269783, -0.0015201112255454063, 0.007034739479422569, 0.007734915241599083, -0.06086497753858566, -0.001850672415457666, 0.025080053135752678, 0.016417304053902626, 0.029401348903775215, -0.08110572397708893, 0.05082760751247406, -0.03586508706212044, -0.0234010461717844, -0.0014187019551172853, -0.02227308414876461, -0.0037641297094523907, 0.018205028027296066, -0.005270030815154314, -0.024402720853686333, 0.02648536115884781, 0.011418144218623638, 0.007892484776675701, 0.006052787881344557, -0.03339975327253342, -0.02935500629246235, -0.002665926469489932, 0.028154578059911728, 0.08026815950870514, 0.005890075117349625, -0.05977126210927963, 0.0016697357641533017, -0.011399742215871811, 0.06222323700785637, -0.024815086275339127, -0.054252706468105316, -0.010709787718951702, 0.0013676383532583714, -0.019170640036463737, 0.006455441005527973, -0.012848874554038048, -0.013069754466414452, -0.04165751859545708, -0.03693753108382225, -0.007273049093782902, -0.04334893450140953, 0.005025496706366539, -0.06955241411924362, -0.018567102029919624, -0.052845973521471024, -0.05886681750416756, 0.034472737461328506, 0.07247546315193176, 0.02240212820470333, -0.014922921545803547, 0.04201474040746689, -0.023314129561185837, -0.11395786702632904, -0.02367209643125534, -0.013991955667734146, -0.0475587360560894, -0.02002127096056938, -0.015202307142317295, 0.05259738117456436, -0.013031466864049435, -0.024398230016231537, 0.015153024345636368, 0.018291117623448372, 0.027202073484659195, -0.037150170654058456, 0.010329823940992355, -0.036887481808662415, -0.01376914419233799, 0.003688995959237218, 0.05261697992682457, -0.05415547266602516, -0.005784589797258377, -0.007264037150889635, 0.004794294945895672, 0.04452342912554741, 0.011710328981280327, 0.00717995036393404, 0.0006793722859583795, 0.05159679055213928, 0.024548927322030067, -0.052531514316797256, 0.0062542567029595375, -0.023794667795300484, 0.0036482245195657015, 0.018185844644904137, -0.052386946976184845, 0.024754414334893227, 0.016571830958127975, 0.04071463271975517, 0.00989984255284071, -0.05197660252451897, 0.023877793923020363, -0.07049164921045303, -0.010319280438125134, 0.0018355872016400099, 0.031611304730176926, 0.041344743221998215, 0.02208521217107773, 0.004540832247585058, -0.05360475927591324, 0.024973545223474503, 0.009479955770075321, -0.03600385785102844, -0.05469384416937828, -0.030016187578439713, 0.0031475552823394537, -0.016366207972168922, 0.02001209370791912, -0.008276120759546757, -0.01539760921150446, 0.036692216992378235, 0.04803254082798958, -0.016786636784672737, 0.03631090372800827, -0.02003489062190056, -0.024552663788199425, -0.02932955138385296, 0.030335944145917892, 0.022254103794693947, -0.01742478832602501, 0.01904747448861599, -0.007294140290468931, 0.024839021265506744, 0.05340707674622536, 0.03508320078253746, 0.020725421607494354, -0.013098559342324734, 0.020558997988700867, 0.009778658859431744, -0.007088554557412863, -0.01761041209101677, -0.0028020397294312716, -0.0299984123557806, -0.02197110839188099, -0.03915826603770256, 0.03417149931192398, -0.007081136107444763, -0.015134117566049099, -0.047053176909685135, 0.013815709389746189, -0.06918417662382126, -0.015070827677845955, -0.039146341383457184, -0.006519298534840345, 0.055001672357320786, 0.016778025776147842, 0.018736887723207474, 0.01895163580775261, -0.003254024079069495, 0.003011522814631462, 0.02075599692761898, -0.028803221881389618, -0.0035700879525393248, -0.013753877952694893, -0.01886933296918869, 0.004233198706060648, 0.027243396267294884, 0.031157871708273888, -0.012286284938454628, 0.01625083200633526, -0.009749652817845345, 0.017938164994120598, 0.008460954762995243, 0.03479989990592003, 0.02895982749760151, -0.02566063217818737, 0.011951236054301262, 0.018699659034609795, -0.017092756927013397, -0.02399163693189621, 0.028201038017868996, -0.013919937424361706, 0.017028838396072388, -0.025117773562669754, -0.06652500480413437, 0.04826631397008896, 0.004016106482595205, -0.023786284029483795, 0.01726098172366619, 0.00805677194148302, -0.005467486567795277, -0.052204497158527374, 0.05189501866698265, 0.09401900321245193, -0.0438864529132843, 0.01917356438934803, 0.013710853643715382, -0.012188985012471676, -0.013303451240062714, 0.01720515452325344, -0.051507432013750076, 0.017784301191568375, -0.011877737939357758, 0.021581662818789482, -0.05612242966890335, -0.043928422033786774, -0.015218455344438553, -0.013106640428304672, 0.00916480366140604, 0.031730446964502335, -0.004900084342807531, -0.014280905947089195, -0.015409519895911217, -0.03903095796704292, 0.03234410285949707, 0.018539877608418465, 0.0045611965470016, 0.012944946065545082, -0.01704632304608822, 0.042075611650943756, -0.03443002700805664, 0.015669580549001694, 0.01704043336212635, -0.034507956355810165, 0.01780705526471138, -0.06094995513558388, -0.00769068393856287, -0.00940208975225687, 0.08385885506868362, -0.007655274588614702, 0.0036133721005171537, -0.03412308543920517, -0.006368091329932213, -0.03860956430435181, -0.01315045915544033, 0.017027901485562325, -0.02320796623826027, 0.048716410994529724, 0.03943382948637009, -0.009601479396224022, 0.015465290285646915, -0.013956980779767036, -0.006575811188668013, 0.052198924124240875, -0.04675285518169403, -0.03419360890984535, -0.015899838879704475, -0.0640496164560318, 0.04775742441415787, 0.002509934362024069, 0.03026999719440937, -0.058926861733198166, 0.041193779557943344, 0.04920748621225357, 0.024624913930892944, 0.017252333462238312, -0.018993955105543137, 0.044663943350315094, -0.01814868673682213, 0.004393754992634058, -0.07408852130174637, -0.0007647126913070679, 0.03545869514346123, -0.011382483877241611, 0.002253341255709529, 0.008998386561870575, -0.043358877301216125, 0.01187869068235159, -0.07685954868793488, -0.04678378626704216, 0.04125804454088211, -0.011278465390205383, 0.006249088793992996, -0.008452816866338253, -0.03919576108455658, 0.013543622568249702, 0.033009082078933716, -0.030378609895706177, 0.0041404408402740955, -0.005074576940387487, 0.061491288244724274, -0.013283923268318176, 0.030817236751317978, -0.004576129838824272, -0.05116880312561989, 0.05827801302075386, 0.010227842256426811, -0.011029490269720554, 0.07354164123535156, -0.033889222890138626, 0.0377490408718586, 0.03518030047416687, -0.0006313517224043608, 0.017234893515706062, 0.0031315910164266825, -0.020981531590223312, -0.043448556214571, 0.02289067953824997, 0.011336917988955975, 0.012919747270643711, -0.06529254466295242, 0.045026399195194244, 0.00992607418447733, -0.039104655385017395, -0.0378764308989048, 0.013220783323049545, -0.03450779989361763, -0.028065988793969154, -0.026561031118035316, 0.05631605535745621, -0.04757676273584366, 0.04343537241220474, -0.006342499051243067, -0.00046675678458996117, 0.07702517509460449, 0.0017970300978049636, -0.015052092261612415, 0.04759090393781662, 0.08023028820753098, 0.09707490354776382, 0.02288541942834854, -0.0234640222042799, 0.06067488342523575, -0.015227881260216236, -0.03464634343981743, -0.023565135896205902, -0.03439509868621826, -0.036142222583293915, -0.029403172433376312, 0.03369620069861412, 0.05707062408328056, -0.04625577852129936, 0.06473483890295029, -0.0030105379410088062, 0.012089005671441555, 0.0022834285628050566, -0.004858479369431734, 0.02562786266207695, 0.03321519494056702, -0.007104124873876572, 0.041043639183044434, -0.0016693418147042394, -0.031185105443000793, -0.014458224177360535, 0.0034403475001454353, -0.034178078174591064, -0.007173048797994852, -0.03228424862027168, 0.018219003453850746, 0.020443689078092575, 0.003198702586814761, 0.06681135296821594, -0.03891468793153763, -0.015339135192334652, 0.007448987569659948, 0.043714724481105804, -0.01456708088517189, 0.004636081866919994, -0.03058919683098793, -0.023012975230813026, -0.028557447716593742, -0.023918552324175835, 0.0015851878561079502, -0.013094312511384487, -0.026323575526475906, 0.016306940466165543, -0.02490941248834133, 0.004004448186606169, 0.056045982986688614, -0.004350570030510426, -0.057142771780490875, -0.04337327927350998, -0.06229862570762634, -0.053480107337236404, -0.06495805084705353, -0.02348092570900917, 0.0033218928147107363, 0.004991477821022272, -0.03917054459452629, -0.0344160757958889, -0.03375012055039406, -0.004965309984982014, 0.03614775091409683, -0.05020904541015625, -0.0178241990506649, -0.0029586569871753454, 0.04488193616271019, 0.005071165971457958, 0.020501207560300827, 0.06248494237661362, 0.003577904775738716, 0.008529250510036945, -0.024729393422603607, -0.0005115571548230946, 0.05593936890363693, -0.006730058696120977, -0.024241816252470016, -0.0714244619011879, 0.04300962761044502, 0.03958751633763313, 0.0031693074852228165, -0.06186072155833244, 0.004433346446603537, 0.01896755024790764, -0.021449249237775803, 0.047625742852687836, -0.04201129823923111, 0.018716543912887573, -0.058705609291791916, -0.024839915335178375, -0.02046235091984272, 0.001980489119887352, 0.02883133850991726, -0.023059923201799393, 0.07218293100595474, 0.0379607267677784, -0.0285356268286705, -0.024083741009235382, 0.02513788267970085, 0.016160883009433746, 0.008916105143725872, -0.05017183721065521, -0.022404808551073074, -0.04340961575508118, -0.04832552745938301, -0.00923069752752781, 0.03977039456367493, -0.02071261778473854, -0.04976538196206093, 0.004595502279698849, -0.0005324023077264428, -0.003748194081708789, 0.01055368222296238, -0.055775053799152374, -0.012112713418900967, -0.02939097210764885, -0.020073870196938515, -0.0071854316629469395, 0.028730830177664757, -0.01919659413397312, -0.025154514238238335, 0.025679979473352432, -0.018289316445589066, 0.006866482086479664, -0.025282781571149826, 0.04636601358652115, 0.02707781456410885, -0.005708442535251379, -0.021052557975053787 ]
[ -0.06998542696237564, -0.04485029727220535, -0.041834235191345215, -0.027129050344228745, 0.07000890374183655, -0.050433650612831116, -0.009783285669982433, 0.008026373572647572, 0.003123562317341566, -0.03024064004421234, 0.004578310996294022, -0.0396331287920475, -0.00818402785807848, -0.008130190894007683, 0.05900516360998154, -0.012935362756252289, 0.011424426920711994, -0.043796464800834656, -0.005361880641430616, 0.010679495520889759, 0.00875101238489151, -0.04100392013788223, -0.05772945657372475, -0.06847542524337769, 0.004899405408650637, 0.04465849697589874, 0.014414643868803978, -0.018226854503154755, -0.010924523696303368, -0.20079708099365234, 0.022156985476613045, -0.02967262826859951, -0.008080174215137959, -0.014919476583600044, 0.005614025983959436, 0.024279575794935226, 0.01555001549422741, 0.005603390280157328, 0.03722343593835831, 0.0291887316852808, 0.02773711271584034, -0.001359788584522903, -0.06617169082164764, 0.003955863416194916, 0.00997229665517807, -0.020973097532987595, -0.00006966433284105733, -0.006037156097590923, 0.014451669529080391, -0.011767148040235043, -0.04060014709830284, -0.006487892474979162, -0.02533925697207451, -0.02247169241309166, 0.020701078698039055, 0.0266838651150465, 0.048211511224508286, 0.044064342975616455, 0.016353674232959747, 0.024450719356536865, 0.044020477682352066, -0.019214555621147156, -0.14090827107429504, 0.11342104524374008, 0.024590851739048958, 0.028384597972035408, -0.026919150725007057, 0.018984228372573853, -0.023404620587825775, 0.05420262739062309, 0.02700422704219818, -0.0229474026709795, -0.0554782934486866, 0.06297764927148819, 0.015556130558252335, -0.04701690748333931, -0.009957825765013695, 0.04585636034607887, 0.008755209855735302, -0.009564699605107307, -0.04298202320933342, -0.015450764447450638, -0.03392891585826874, -0.011728749610483646, -0.037399448454380035, 0.022853516042232513, 0.008074463345110416, 0.061799682676792145, -0.0012272084131836891, 0.013425245881080627, 0.019519321620464325, -0.02252422831952572, 0.049896664917469025, 0.0016540500801056623, -0.06798505038022995, 0.019329622387886047, -0.0015419998671859503, 0.003463005879893899, -0.041160695254802704, 0.41963931918144226, 0.0229704137891531, 0.021454747766256332, 0.029427582398056984, 0.008039241656661034, 0.020487865433096886, 0.025937635451555252, -0.015136059373617172, -0.03483695909380913, 0.03777681291103363, -0.014080298133194447, 0.023600272834300995, 0.012664468958973885, 0.09671864658594131, -0.03384919837117195, 0.0033627571538090706, 0.013686652295291424, -0.019508911296725273, 0.020905964076519012, -0.018307466059923172, 0.029513578861951828, -0.035022493451833725, 0.003949729260057211, 0.042177844792604446, 0.039344098418951035, 0.028005437925457954, 0.003100041300058365, 0.030781544744968414, 0.0225384384393692, 0.019455580040812492, 0.027094686403870583, 0.025306204333901405, -0.029203034937381744, -0.04616553708910942, -0.011047526262700558, 0.01131974346935749, -0.008597785606980324, 0.05539220944046974, -0.04833114147186279, -0.00025244426797144115, 0.00627017579972744, -0.05751479044556618, -0.03482428565621376, 0.07103421539068222, -0.05542841926217079, -0.011669281870126724, 0.1409439742565155, 0.025861622765660286, -0.04365430027246475, -0.016272976994514465, -0.05681634694337845, -0.04212060943245888, 0.002275295089930296, 0.022649437189102173, -0.07113039493560791, -0.013140283524990082, 0.024593431502580643, 0.03773551806807518, -0.00504407100379467, -0.057728108018636703, -0.007188822142779827, -0.0158068910241127, -0.04352772235870361, -0.02592116966843605, 0.016780270263552666, 0.035661857575178146, -0.1463116854429245, -0.029249832034111023, 0.020833095535635948, -0.003708292031660676, -0.025865664705634117, -0.023004867136478424, 0.032840896397829056, -0.003681995440274477, -0.006434413604438305, 0.045770127326250076, -0.03457166254520416, 0.006596245802938938, -0.005274908617138863, 0.0407804399728775, 0.012708437629044056, -0.0027239893097430468, 0.01579209603369236, -0.028700247406959534, -0.010928269475698471, -0.04481428116559982, -0.06424618512392044, -0.07204441726207733, -0.007115448825061321, -0.039690423756837845, -0.04306764155626297, -0.0614951066672802, -0.054380398243665695, -0.06285661458969116, 0.10761889070272446, 0.007527927868068218, -0.04159514605998993, 0.018965216353535652, 0.013742320239543915, 0.01394632551819086, -0.02842632867395878, 0.03216185048222542, 0.02994666062295437, 0.00044584323768503964, 0.04780293628573418, -0.06124035269021988, 0.054447825998067856, 0.026522552594542503, -0.02314462885260582, 0.05001670867204666, 0.042294055223464966, -0.03247358649969101, 0.028968321159482002, 0.0026707237120717764, 0.028308644890785217, 0.011971973814070225, -0.0018570219399407506, 0.009902099147439003, 0.005950417369604111, 0.03275091201066971, 0.053566623479127884, -0.001059616100974381, -0.037963997572660446, -0.01746033877134323, -0.3722878098487854, -0.05346667394042015, -0.057342398911714554, -0.00969154853373766, -0.009979059919714928, -0.0572153739631176, 0.015523651614785194, -0.022035840898752213, -0.013739685527980328, 0.00223130127415061, 0.08624543249607086, -0.0549437440931797, 0.016364574432373047, -0.05340617895126343, -0.008226434700191021, 0.056086208671331406, -0.006002174224704504, -0.027879362925887108, -0.028124919161200523, 0.0021717038471251726, 0.003581208875402808, -0.010805823840200901, -0.036954332143068314, -0.015182122588157654, 0.01431930623948574, -0.00860900804400444, 0.11912176758050919, -0.0055380165576934814, 0.059464313089847565, -0.05848317593336105, 0.039618320763111115, 0.022488217800855637, 0.018315324559807777, -0.0781933069229126, -0.0017854258185252547, -0.01582198776304722, 0.027108242735266685, -0.024357594549655914, -0.005346154328435659, -0.0009284133557230234, -0.05799683928489685, 0.05296134203672409, -0.04126659780740738, -0.05593883991241455, -0.041234634816646576, 0.002782779047265649, -0.004166197497397661, -0.0035848128609359264, -0.012936875224113464, 0.0484517477452755, 0.015182296745479107, 0.0031228670850396156, 0.003385714488103986, 0.019947474822402, 0.03505546227097511, -0.02193222939968109, -0.03761127218604088, -0.029217630624771118, 0.0020250286906957626, -0.001363343559205532, 0.05129798874258995, 0.047069720923900604, 0.002668891567736864, -0.07417970150709152, 0.0025185325648635626, 0.016440199688076973, -0.02197055146098137, -0.007924558594822884, 0.06893643736839294, -0.03810928761959076, -0.05089544504880905, 0.07307129353284836, 0.020800955593585968, 0.02654244750738144, 0.03265010192990303, 0.03065406158566475, -0.023240428417921066, 0.018259817734360695, 0.0319332480430603, -0.009236366488039494, 0.05280396342277527, -0.03131229057908058, 0.05420931428670883, -0.02841724269092083, 0.0074913762509822845, 0.07107776403427124, 0.0036271943245083094, -0.014850416220724583, 0.0764729231595993, 0.03385116532444954, -0.01662544719874859, 0.00887352041900158, -0.017766976729035378, -0.06146322190761566, 0.08538579940795898, 0.022435249760746956, -0.28142401576042175, 0.08063507825136185, 0.053025051951408386, 0.0352947935461998, 0.0059160226956009865, 0.03705530986189842, 0.03454430028796196, -0.04369264096021652, 0.024054216220974922, 0.009676921181380749, -0.009789952076971531, 0.05382315069437027, 0.011071423999965191, 0.00138602324295789, 0.0012661386281251907, 0.0058572483249008656, 0.025450678542256355, -0.0006156017770990729, 0.022599123418331146, -0.03196447715163231, 0.014946576207876205, 0.0048039755783975124, 0.17353039979934692, 0.04523242637515068, 0.004608730785548687, 0.015627706423401833, -0.015869133174419403, 0.029027167707681656, 0.011681796982884407, 0.03876081109046936, 0.014070335775613785, -0.019490033388137817, 0.03508540987968445, -0.03341802582144737, 0.03929988667368889, -0.04523167014122009, -0.00785865355283022, 0.025710085406899452, 0.03472848981618881, -0.03266912326216698, -0.03440619632601738, 0.0012235966278240085, -0.048908770084381104, 0.03578966110944748, 0.054038792848587036, -0.03338135406374931, -0.017665507271885872, -0.03046189807355404, -0.018580295145511627, 0.0027787501458078623, -0.02261636219918728, -0.0561039075255394, 0.0115655567497015, -0.03383684530854225, -0.009192817844450474, 0.04717189446091652, 0.03842238709330559, -0.011389586143195629, -0.009763287380337715, 0.032125573605298996, 0.0032038737554103136, -0.045619383454322815, 0.09653759002685547, 0.018540821969509125, 0.039132457226514816 ]
[ 0.049776993691921234, 0.008269344456493855, 0.0028490154072642326, 0.03196900710463524, 0.01413652766495943, -0.005834533367305994, 0.001468890579417348, 0.001992426812648773, -0.004834708757698536, -0.0070124040357768536, -0.024031445384025574, 0.04821797087788582, -0.016805419698357582, -0.008738142438232899, -0.04135022684931755, -0.05125179514288902, 0.010164803825318813, 0.007291192188858986, 0.04000943526625633, 0.024508951231837273, -0.0474216528236866, 0.028624359518289566, 0.01008573453873396, -0.011547560803592205, -0.030004816129803658, 0.013223348185420036, -0.08126223832368851, -0.003705696202814579, 0.02104855328798294, -0.12430616468191147, -0.02395499125123024, -0.010386087000370026, 0.02350405603647232, -0.024608980864286423, -0.038506172597408295, 0.013522852212190628, 0.009797193109989166, -0.02704031765460968, -0.055733054876327515, -0.002133564790710807, 0.04289211332798004, -0.01552090048789978, 0.004380817990750074, 0.00508209690451622, -0.0157955139875412, -0.03448307141661644, -0.04486198350787163, -0.012332613579928875, -0.026009075343608856, 0.017824118956923485, -0.07674740999937057, 0.013777276501059532, -0.005188686307519674, 0.015935292467474937, 0.004606691654771566, 0.03759734332561493, -0.014386006630957127, -0.011846530251204967, 0.03873511031270027, -0.006072071846574545, 0.0263222549110651, 0.05445115640759468, -0.01554342731833458, -0.054906196892261505, 0.012089898809790611, -0.056370291858911514, 0.004513588733971119, -0.012077963910996914, 0.0222160704433918, 0.007133088074624538, 0.005830748938024044, 0.009630721993744373, -0.027243467047810555, -0.06147239729762077, -0.049372557550668716, 0.04293200746178627, 0.005774873774498701, 0.010043649934232235, -0.02552930824458599, -0.009607109241187572, -0.0324372872710228, -0.021541936323046684, 0.009122692048549652, 0.011808477342128754, -0.015503175556659698, -0.015820886939764023, 0.010690595023334026, 0.018481910228729248, 0.037193022668361664, -0.04186784103512764, 0.00495483260601759, 0.0004764575860463083, -0.024608014151453972, 0.0018786872969940305, -0.038372281938791275, -0.02350241132080555, -0.007026289124041796, 0.018636371940374374, -0.044983092695474625, 0.8171858191490173, -0.006090482696890831, 0.019135816022753716, -0.001001800294034183, 0.013487539254128933, 0.052470721304416656, -0.018727600574493408, -0.03337845206260681, -0.008617729879915714, -0.010658469051122665, -0.05246644839644432, 0.015848133713006973, 0.02089357003569603, 0.011875572614371777, 0.019466686993837357, 0.0141246123239398, 0.031394634395837784, 0.006969902664422989, -0.03767421096563339, -0.00020709927775897086, 0.009767971001565456, 0.04015618935227394, -0.003612549975514412, 0.028909476473927498, -0.015191370621323586, 0.0023028412833809853, -0.1311093270778656, 0.007490707095712423, -6.29566048157219e-33, 0.050961170345544815, -0.0609564445912838, 0.02050241269171238, -0.004023266490548849, 0.06086833402514458, 0.007400479167699814, 0.011979451403021812, -0.019987091422080994, 0.0006564215291291475, -0.012271132320165634, 0.006441069766879082, -0.011115822941064835, -0.013716040179133415, -0.018887924030423164, 0.02796713262796402, -0.047631874680519104, -0.0028832568787038326, 0.0369739755988121, 0.019949838519096375, -0.010381107218563557, 0.04082442820072174, 0.020855743438005447, -0.0541074201464653, 0.01894460804760456, 0.04085030406713486, 0.012903330847620964, 0.00012888939818367362, -0.053250670433044434, 0.01695406064391136, -0.03337829187512398, 0.012154667638242245, -0.013503455556929111, 0.0018639477202668786, -0.0338321179151535, 0.027841128408908844, -0.06456317752599716, -0.05787248536944389, 0.023706259205937386, -0.04701608791947365, -0.0348258912563324, 0.01357100810855627, -0.017910536378622055, -0.050254806876182556, -0.011264988221228123, -0.02357071079313755, -0.01384475827217102, 0.002437724731862545, 0.05461915209889412, 0.01941828988492489, 0.0094760088250041, 0.0006058081053197384, 0.0010338193969801068, -0.004957021679729223, 0.017769580706954002, -0.005277031101286411, 0.013679277151823044, 0.021031204611063004, 0.040556807070970535, -0.02044047601521015, 0.004625295754522085, -0.03209768608212471, -0.031024664640426636, -0.01500212587416172, 0.04575260728597641, -0.00010943006782326847, -0.0007280635181814432, -0.0005621241289190948, 0.030787216499447823, -0.013264588080346584, 0.03423172980546951, -0.034630611538887024, 0.019044198095798492, 0.0006389893824234605, -0.010802559554576874, 0.014962904155254364, -0.027771402150392532, -0.018432270735502243, 0.0006310736644081771, -0.009855657815933228, 0.003995997365564108, -0.012927057221531868, 0.035709019750356674, -0.02149817906320095, -0.015200373716652393, -0.014313807711005211, -0.022357001900672913, 0.014912466518580914, 0.024912988767027855, -0.016856135800480843, 0.006396887823939323, 0.02673526108264923, 0.07541455328464508, 0.018780643120408058, -0.06901945173740387, -0.017665985971689224, 6.740553501947747e-33, -0.039321184158325195, -0.010658826678991318, -0.0038603905122727156, 0.016730638220906258, 0.03198522701859474, -0.03757884353399277, 0.05619248375296593, 0.012147135101258755, -0.0033705353271216154, 0.004852273501455784, -0.04029332101345062, 0.048513635993003845, -0.01907181367278099, 0.04954694211483002, 0.03840172663331032, 0.01003978680819273, 0.010758803226053715, -0.010771596804261208, 0.022510167211294174, 0.015540558844804764, 0.013238410465419292, -0.025415977463126183, 0.022228550165891647, 0.030080802738666534, 0.002499777590855956, 0.03988831862807274, 0.032566703855991364, 0.03022589534521103, -0.0365542471408844, -0.0258770864456892, 0.03790673241019249, -0.010879918932914734, 0.015250890515744686, 0.010953248478472233, -0.0442928746342659, 0.03187226876616478, -0.04200184345245361, 0.0057530635967850685, -0.00046746208681724966, 0.00022120747598819435, 0.028448281809687614, 0.02085224725306034, -0.004709766712039709, 0.025237686932086945, -0.028785841539502144, -0.005973678547888994, 0.020159751176834106, 0.0008148585329763591, -0.022529231384396553, 0.005555171053856611, -0.02771035023033619, 0.019650807604193687, 0.019428199157118797, -0.0015515562845394015, -0.007500356063246727, -0.019496049731969833, -0.03119521401822567, 0.029248759150505066, -0.05044203996658325, 0.03121035546064377, 0.04996631667017937, 0.006572798825800419, 0.019825255498290062, 0.02801475115120411, -0.013219756074249744, -0.02088145725429058, 0.008890293538570404, -0.0072527299635112286, -0.03569287061691284, -0.01144717913120985, 0.03377097100019455, -0.005963328760117292, -0.018477173522114754, 0.06998264044523239, 0.035292383283376694, -0.015495430678129196, -0.012285451404750347, 0.029131347313523293, 0.03152649104595184, -0.006860134657472372, 0.014210698194801807, 0.04497483745217323, 0.005685608834028244, -0.03584296628832817, 0.038955479860305786, -0.0045252600684762, -0.029024088755249977, 0.05792728066444397, 0.01036042906343937, 0.019271453842520714, 0.022601712495088577, -0.05460480600595474, -0.010786165483295918, -0.005671790335327387, 0.03598096966743469, -1.2112490566096312e-8, 0.006977889686822891, -0.03841206431388855, -0.015720922499895096, 0.03768456354737282, 0.0377592034637928, -0.0009349226020276546, -0.05305419862270355, 0.011633324436843395, -0.03155271336436272, 0.0057610562071204185, 0.04888775572180748, -0.00639613252133131, -0.015504298731684685, 0.028360530734062195, 0.024979066103696823, -0.03770463541150093, 0.021740199998021126, -0.03195337578654289, 0.011915157549083233, -0.03318869322538376, -0.02432881109416485, 0.027655502781271935, 0.024765275418758392, -0.016417983919382095, -0.020407967269420624, 0.017547229304909706, 0.03918776288628578, -0.06227412447333336, 0.009929649531841278, 0.013149474747478962, 0.04232630878686905, -0.02104603871703148, -0.013812788762152195, 0.02326381206512451, -0.04718161001801491, -0.011575127951800823, -0.01716223731637001, 0.003343698801472783, 0.014521020464599133, -0.01575518399477005, -0.03640804439783096, 0.002586549147963524, -0.0069943745620548725, -0.04505755007266998, -0.003046797588467598, -0.0027404718566685915, -0.05219678953289986, 0.029560228809714317, 0.0471985787153244, -0.01722770370543003, -0.025246579200029373, -0.016133856028318405, 0.03797663375735283, 0.0195564404129982, 0.08120163530111313, 0.008085383102297783, 0.023376282304525375, 0.0030852544587105513, 0.023099666461348534, 0.002822012174874544, 0.02273344062268734, 0.026947233825922012, -0.016677584499120712, -0.002886604517698288 ]
apache-pinot-sorted-indexes-offline-tables
https://markhneedham.com/blog/2022/01/19/apache-pinot-sorted-indexes-offline-tables
false
2022-01-31 02:44:37
Apache Pinot: Resetting a segment after an invalid JSON Transformation
[ "pinot" ]
[ "pinot" ]
:icons: font I recently had a typo in a https://docs.pinot.apache.org/developers/advanced/ingestion-level-transformations[Pinot ingestion transformation function^] and wanted to have Pinot re-process the Kafka stream without having to restart all the things. In this blog post we'll learn how to do that. .Apache Pinot: Resetting a segment after an invalid JSON Transformation image::{{<siteurl>}}/uploads/2022/01/reset-banner.png[] == Setup We're going to spin up a local instance of Pinot and Kafka using the following Docker compose config: .docker-compose.yml [source, json] ---- include::content/2022/01/31/docker/docker-compose.yml[] ---- We can launch all the components by running the following command: [source, bash] ---- docker-compose up ---- == Create Schema We're going to use the following schema: ./config/schema.json [source, json] ---- include::content/2022/01/31/docker/config/schema.json[] ---- It's only small, but it will be enough for our purposes. We can create the schema by running the following command: [source, bash] ---- docker exec -it pinot-controller-json bin/pinot-admin.sh AddSchema \ -schemaFile /config/schema.json -exec ---- == Create Table Now let's create a real-time table based on that schema: ./config/table.json [source, json] ---- include::content/2022/01/31/docker/config/table.json[] ---- <1> Typo in the JSON path (`'$.ages'`) means that an exception will be thrown when the function is executed. [NOTE] == For documentation on the JSONPATHLONG function, see the https://docs.pinot.apache.org/configuration-reference/functions/jsonpathlong[JSONPATHLONG function page^]. == We can create the table by running the following command: [source, bash] ---- docker exec -it pinot-controller-json bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table.json \ -exec ---- == Ingest Data into Kafka Now let's ingest a few messages into the Kafka `events` topic: [source, bash] ---- printf '{"timestamp": "2019-10-09 22:25:25", "payload": {"age": 18}} {"timestamp": "2019-10-09 23:25:25", "payload": {"age": 14}} {"timestamp": "2019-10-09 23:40:25", "payload": {"age": 16}}\n' | docker exec -i kafka-json /opt/kafka/bin/kafka-console-producer.sh \ --bootstrap-server localhost:9092 \ --topic events ---- We can check that the messages have been ingested by running the following command: [source, bash] ---- docker exec -i kafka-json /opt/kafka/bin/kafka-console-consumer.sh \ --bootstrap-server localhost:9092 \ --topic events \ --from-beginning \ --max-messages 3 ---- .Output [source, text] ---- {"timestamp": "2019-10-09 22:25:25", "payload": {"age": 18}} {"timestamp": "2019-10-09 23:25:25", "payload": {"age": 14}} {"timestamp": "2019-10-09 23:40:25", "payload": {"age": 16}} Processed a total of 3 messages ---- All good so far. Let's navigate to http://localhost:9000/#/query and query the `events` table: .No documents image::{{<siteurl>}}/uploads/2022/01/events-empty.png[] Hmmm, no documents. == The Debug API We can find out what's going on by querying the debug API for this table: [source, bash] ---- curl -X GET "http://localhost:9000/debug/tables/events?verbosity=0" -H "accept: application/json" ---- .Output [source, json] ---- [ { "tableName": "events_REALTIME", "numSegments": 1, "numServers": 1, "numBrokers": 1, "segmentDebugInfos": [ { "segmentName": "events__0__0__20220131T1057Z", "serverState": { "Server_172.24.0.6_8098": { "idealState": "CONSUMING", "externalView": "CONSUMING", "segmentSize": "0 bytes", "consumerInfo": { "segmentName": "events__0__0__20220131T1057Z", "consumerState": "CONSUMING", "lastConsumedTimestamp": 1643626843673, "partitionToOffsetMap": { "0": "3" } }, "errorInfo": { "timestamp": "2022-01-31 10:57:50 UTC", "errorMessage": "Caught exception while transforming the record: {\n \"nullValueFields\" : [ ],\n \"fieldToValueMap\" : {\n \"payload\" : {\n \"age\" : 16\n },\n \"age\" : null,\n \"timestamp\" : \"2019-10-09 23:40:25\"\n }\n}", "stackTrace": "java.lang.RuntimeException: Caught exception while executing function: jsonPathLong(payload,'$.ages')\n\tat org.apache.pinot.segment.local.function.InbuiltFunctionEvaluator$FunctionExecutionNode.execute(InbuiltFunctionEvaluator.java:124)\n\tat org.apache.pinot.segment.local.function.InbuiltFunctionEvaluator.evaluate(InbuiltFunctionEvaluator.java:88)\n\tat org.apache.pinot.segment.local.recordtransformer.ExpressionTransformer.transform(ExpressionTransformer.java:96)\n\tat org.apache.pinot.segment.local.recordtransformer.CompositeTransformer.transform(CompositeTransformer.java:83)\n\tat org.apache.pinot.core.data.manager.realtime.LLRealtimeSegmentDataManager.processStreamEvents(LLRealtimeSegmentDataManager.java:518)\n\tat org.apache.pinot.core.data.manager.realtime.LLRealtimeSegmentDataManager.consumeLoop(LLRealtimeSegmentDataManager.java:420)\n\tat org.apache.pinot.core.data.manager.realtime.LLRealtimeSegmentDataManager$PartitionConsumer.run(LLRealtimeSegmentDataManager.java:568)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\nCaused by: java.lang.IllegalStateException: Caught exception while invoking method: public static long org.apache.pinot.common.function.scalar.JsonFunctions.jsonPathLong(java.lang.Object,java.lang.String) with arguments: [{age=16}, $.ages]\n\tat org.apache.pinot.common.function.FunctionInvoker.invoke(FunctionInvoker.java:131)\n\tat org.apache.pinot.segment.local.function.InbuiltFunctionEvaluator$FunctionExecutionNode.execute(InbuiltFunctionEvaluator.java:122)\n\t... 7 more\nCaused by: java.lang.reflect.InvocationTargetException\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.apache.pinot.common.function.FunctionInvoker.invoke(FunctionInvoker.java:128)\n\t... 8 more\nCaused by: com.jayway.jsonpath.PathNotFoundException: No results for path: $['ages']\n\tat com.jayway.jsonpath.internal.path.EvaluationContextImpl.getValue(EvaluationContextImpl.java:133)\n\tat com.jayway.jsonpath.JsonPath.read(JsonPath.java:187)\n\tat com.jayway.jsonpath.internal.JsonContext.read(JsonContext.java:102)\n\tat com.jayway.jsonpath.internal.JsonContext.read(JsonContext.java:85)\n\tat org.apache.pinot.common.function.scalar.JsonFunctions.jsonPath(JsonFunctions.java:89)\n\tat org.apache.pinot.common.function.scalar.JsonFunctions.jsonPathLong(JsonFunctions.java:152)\n\t... 13 more\n" } } } } ], "serverDebugInfos": [], "brokerDebugInfos": [], "tableSize": { "reportedSize": "0 bytes", "estimatedSize": "0 bytes" }, "ingestionStatus": { "ingestionState": "HEALTHY", "errorMessage": "" } } ] ---- As expected, Pinot failed to find the `ages` property because it doesn't exist in those messages. Let's fix the transformation by applying the following table config: [source, bash] ---- docker exec -it pinot-controller-json bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table-fixed.json \ -exec ---- ./config/table-fixed.json [source, json] ---- include::content/2022/01/31/docker/config/table-fixed.json[] ---- <1> Typo has now been fixed This fixes the table config, but doesn't retrospectively ingest the messages where the exception was thrown. We can return the Kafka offset of the consuming segment by running the following: [source, bash] ---- curl -X GET "http://localhost:9000/tables/events/consumingSegmentsInfo" -H "accept: application/json" ---- .Output [source, json] ---- { "_segmentToConsumingInfoMap": { "events__0__0__20220131T1057Z": [ { "serverName": "Server_172.24.0.6_8098", "consumerState": "CONSUMING", "lastConsumedTimestamp": 1643627394569, "partitionToOffsetMap": { "0": "3" } } ] } } ---- The offset for partition 0 is `3`, but we want to process offsets 0-2. == Resetting the consuming segment To do that we'll need to reset the consuming segment, by running the following command: [source, bash] ---- curl -X POST "http://localhost:9000/segments/events_REALTIME/events__0__0__20220131T1057Z/reset" -H "accept: application/json" ---- .Output [source, json] ---- {"status":"Successfully reset segment: events__0__0__20220131T1057Z of table: events_REALTIME"} ---- If we now go back to the query editor we'll see that those documents have now been ingested: .Documents! image::{{<siteurl>}}/uploads/2022/01/events-full.png[]
In this post we'll learn how to consume messages from a Kafka topic after fixing a faulty JSON transformation.
uploads/2022/01/reset-banner.png
[ -0.007739969063550234, 0.003006322542205453, -0.0014427932910621166, 0.03326084092259407, 0.07369251549243927, 0.022091243416070938, 0.01891709305346012, 0.06627174466848373, -0.04014074057340622, -0.02687378227710724, -0.006037428975105286, -0.02070232294499874, -0.06362875550985336, 0.012047815136611462, -0.01662100851535797, 0.06324899941682816, 0.08291274309158325, 0.0176865067332983, 0.010754358023405075, -0.01675221510231495, 0.044957235455513, 0.05329548195004463, 0.016507979482412338, 0.054075419902801514, 0.01785586029291153, -0.0015292183961719275, -0.011173953302204609, 0.002576156985014677, -0.05442116782069206, -0.012256180867552757, 0.017470378428697586, -0.016767870634794235, -0.0017364866798743606, -0.015988517552614212, 0.006396300625056028, 0.005218666046857834, -0.006082537584006786, 0.0007530982838943601, 0.0011964511359110475, 0.04201599583029747, -0.06799940019845963, 0.021475806832313538, 0.0355101078748703, -0.001041741925291717, 0.002030316973105073, 0.022135164588689804, -0.05560803413391113, 0.0002963930310215801, -0.009437072090804577, -0.017410874366760254, -0.06438858807086945, 0.03067580610513687, -0.02958511747419834, 0.009324676357209682, -0.007686966564506292, 0.06339424848556519, -0.008841943927109241, -0.03848981112241745, 0.011999193578958511, -0.04236632585525513, -0.019873104989528656, 0.0015686687547713518, 0.030673660337924957, 0.012358552776277065, 0.006575202103704214, -0.0221219751983881, -0.01560257375240326, 0.04138535261154175, -0.05163663998246193, -0.004372722934931517, 0.015273082070052624, 0.0016400492750108242, -0.01075663696974516, -0.017397096380591393, 0.03163227438926697, -0.04223732277750969, -0.04611993953585625, 0.06905547529459, 0.00988698098808527, 0.041061338037252426, -0.030423175543546677, -0.008946830406785011, 0.01021395530551672, 0.02080048993229866, 0.01287535484880209, -0.05459635332226753, -0.0386677086353302, -0.004499319940805435, -0.054251763969659805, 0.06525900959968567, 0.025537211447954178, -0.04504994675517082, 0.032595496624708176, 0.003981481306254864, 0.009636970236897469, 0.017417876049876213, 0.010341977700591087, 0.010645102709531784, -0.0033065699972212315, -0.000011023510523955338, -0.055260587483644485, -0.003860434517264366, 0.01986640878021717, 0.06828233599662781, -0.07884115725755692, -0.038999516516923904, -0.033149950206279755, -0.0004979607183486223, 0.007642129436135292, 0.027954699471592903, -0.008139967918395996, 0.00043899196316488087, -0.006979186087846756, 0.02057810127735138, -0.08259138464927673, 0.09574291110038757, 0.028755920007824898, -0.013160882517695427, 0.01342529896646738, 0.025481274351477623, 0.07326608896255493, 0.011819249019026756, -0.0261194109916687, 0.06855247169733047, 0.004610647447407246, 0.024032920598983765, 0.0004787499492522329, 0.03196261078119278, 0.0006806410383433104, -0.06273432821035385, -0.02590780518949032, 0.04281983897089958, 0.01382618211209774, 0.004910887684673071, -0.01102293748408556, -0.03519384190440178, 0.02091999724507332, -0.007149736396968365, 0.05259306728839874, 0.010392589494585991, -0.031084071844816208, -0.01335244532674551, 0.00017020384257193655, 0.002353793242946267, 0.049999602138996124, 0.01937052048742771, -0.005158811807632446, -0.05768800154328346, -0.0076433210633695126, 0.041666872799396515, 0.005261433310806751, 0.012270396575331688, 0.050520043820142746, -0.030678153038024902, 0.0004495219618547708, 0.08175761997699738, 0.024892698973417282, 0.020748646929860115, -0.019318876788020134, -0.003813150804489851, 0.04709601029753685, 0.028475789353251457, 0.02163967490196228, 0.01592421345412731, 0.009857116267085075, -0.04331124946475029, -0.009218268096446991, 0.05979987978935242, -0.019130177795886993, 0.00599717628210783, -0.046747125685214996, -0.056986041367053986, 0.06058652326464653, -0.04585866630077362, 0.015106597915291786, 0.048841703683137894, 0.08103322237730026, 0.026712965220212936, 0.007244160398840904, 0.05455857887864113, -0.0939294844865799, 0.0596734844148159, 0.011882368475198746, -0.021786024793982506, 0.014762393198907375, -0.023441165685653687, 0.05997966229915619, 0.015721643343567848, 0.06105435639619827, 0.026666870340704918, -0.0638430267572403, -0.07442662864923477, -0.017009159550070763, 0.008366778492927551, 0.06588112562894821, -0.033861737698316574, -0.024752870202064514, 0.0650295689702034, 0.009410547092556953, 0.027579832822084427, -0.0008599276188760996, 0.022007210180163383, 0.020886769518256187, -0.062061432749032974, -0.07465849071741104, 0.01884893886744976, 0.02849915623664856, -0.03588753193616867, -0.03526557609438896, 0.0025698754470795393, -0.047005441039800644, -0.020352592691779137, 0.04471658170223236, -0.016378486528992653, 0.044942356646060944, -0.0013235313817858696, 0.022760378196835518, -0.03326447308063507, 0.04114497825503349, -0.07760843634605408, 0.05255462974309921, 0.029923828318715096, -0.017229588702321053, -0.001823027734644711, 0.001187290996313095, 0.10922970622777939, 0.07728832960128784, -0.022685807198286057, -0.03836320340633392, 0.04767012596130371, 0.01618451252579689, -0.0526992566883564, -0.0015405048616230488, -0.005647418554872274, -0.017674865201115608, 0.0041376566514372826, -0.01786654256284237, -0.019247109070420265, 0.016379063948988914, -0.027155663818120956, 0.026035720482468605, 0.06766809523105621, -0.038118015974760056, 0.058647122234106064, 0.031753093004226685, -0.0024025412276387215, -0.0000712737237336114, -0.008962061256170273, -0.06147726625204086, -0.010901273228228092, 0.009493527002632618, -0.012288886122405529, 0.041566528379917145, -0.06271132826805115, -0.013789276592433453, -0.05152492970228195, -0.04695965349674225, 0.03356710448861122, 0.030383115634322166, 0.04902256652712822, -0.029655350372195244, 0.027133816853165627, -0.03281018137931824, -0.006907086819410324, -0.013042991980910301, -0.04403383657336235, -0.0005726664676330984, 0.012092223390936852, 0.01816265657544136, 0.01300180796533823, 0.01735091209411621, -0.009025877341628075, 0.006776429247111082, -0.012531554326415062, 0.010673088021576405, -0.014805098064243793, 0.018469758331775665, -0.005060663912445307, -0.005924975499510765, -0.005384264048188925, -0.013229546137154102, 0.05530507117509842, -0.05666996166110039, -0.00537008885294199, -0.007468097377568483, -0.06923601031303406, 0.023795347660779953, -0.038894154131412506, -0.04085995629429817, -0.019556919112801552, 0.04549720138311386, 0.018483733758330345, 0.007275658659636974, -0.030666673555970192, 0.04115256294608116, 0.008995858952403069, -0.008025633171200752, 0.016316968947649002, -0.022360652685165405, 0.03858572617173195, 0.0016213791677728295, 0.028383031487464905, 0.060342200100421906, 0.024374766275286674, 0.00455665634945035, -0.027916856110095978, 0.009460266679525375, -0.024169059470295906, -0.2695569097995758, 0.024728605523705482, -0.004898957908153534, -0.008798199705779552, 0.0033184101339429617, 0.004144591279327869, 0.003841492347419262, -0.03235432505607605, 0.007887308485805988, 0.004808338358998299, -0.040080249309539795, -0.03618447482585907, -0.021619262173771858, 0.036608174443244934, 0.00007238236867124215, 0.0020224282052367926, -0.008644208312034607, -0.04712173715233803, -0.0007123198010958731, 0.018191589042544365, 0.00016112206503748894, -0.05772959440946579, 0.006691326852887869, 0.042608149349689484, 0.018595708534121513, 0.02175172045826912, -0.09379005432128906, 0.054388586431741714, -0.0467841699719429, -0.012269793078303337, -0.0074790776707232, -0.012999741360545158, 0.01005589123815298, 0.001258205622434616, 0.007076523266732693, -0.005051590036600828, 0.020880358293652534, -0.0029218695126473904, 0.021574512124061584, -0.008142601698637009, -0.010055949911475182, -0.05315415561199188, -0.026756519451737404, 0.010194272734224796, 0.08482953906059265, -0.009681030176579952, -0.09635628014802933, 0.00645181629806757, -0.0494152195751667, 0.07575677335262299, -0.01761702075600624, -0.05719854310154915, -0.018444664776325226, 0.02957100234925747, 0.007024338468909264, 0.017312470823526382, 0.0041045392863452435, 0.002267183968797326, -0.030764419585466385, -0.027969228103756905, 0.006782733369618654, -0.04642451927065849, -0.011188406497240067, -0.04013369604945183, -0.019070548936724663, -0.07052695751190186, -0.0730624720454216, 0.012468786910176277, 0.06844370067119598, 0.037109505385160446, -0.05209861695766449, 0.027902035042643547, -0.019671272486448288, -0.10780216008424759, -0.009232704527676105, -0.03391087055206299, -0.06146441400051117, -0.008576207794249058, -0.045311339199543, 0.04931944981217384, -0.022366533055901527, -0.026325156912207603, 0.02505597658455372, 0.001041689421981573, 0.017688389867544174, -0.027759971097111702, 0.01762579008936882, -0.03430095314979553, -0.005105715710669756, -0.010877768509089947, 0.0652632862329483, -0.042803067713975906, -0.01793978549540043, -0.03030804917216301, -0.008201926946640015, 0.04267510771751404, 0.014071776531636715, 0.017185935750603676, 0.009021403267979622, 0.02674945630133152, 0.0040969643741846085, -0.0699431449174881, 0.009648281149566174, -0.013579010963439941, -0.006690573878586292, -0.0034384566824883223, -0.07640103995800018, 0.010439986363053322, 0.014247003942728043, 0.0348554402589798, 0.018718242645263672, -0.03259402886033058, 0.016827229410409927, -0.058545395731925964, -0.010258917696774006, -0.0013410334940999746, 0.031488072127103806, 0.04922841489315033, 0.03496844321489334, -0.0035462076775729656, -0.04740437865257263, 0.026589900255203247, -0.006394852884113789, -0.021199682727456093, -0.023817947134375572, -0.043669942766427994, 0.009973552078008652, 0.0004885808448307216, -0.012803635559976101, 0.01564757339656353, -0.00968306977301836, 0.03796740993857384, 0.04327334836125374, -0.022560276091098785, 0.035024404525756836, -0.01550288312137127, -0.03734525293111801, -0.028264092281460762, 0.013766428455710411, 0.01311562955379486, 0.003272603265941143, 0.017685798928141594, -0.0016910337144508958, 0.005001331679522991, 0.04376635700464249, 0.025587501004338264, 0.000930065056309104, -0.014097608625888824, 0.015279191546142101, 0.03477102890610695, 0.0023880924563854933, -0.01639048382639885, -0.013437269255518913, -0.029133176431059837, -0.015416072681546211, -0.02882489189505577, 0.01418263092637062, -0.0065682800486683846, -0.004565181210637093, -0.0316711850464344, 0.0011898470111191273, -0.06138046458363533, -0.04059989005327225, -0.020502828061580658, -0.026871252804994583, 0.04401423782110214, 0.005503363907337189, 0.007632427848875523, -0.00826790276914835, 0.0070276279002428055, 0.0166437029838562, 0.0000067052692429570016, -0.044598691165447235, 0.0049186344258487225, -0.01749914512038231, -0.025803185999393463, 0.024315662682056427, 0.025379778817296028, 0.02949610725045204, 0.0021984565537422895, 0.024388177320361137, 0.003505254164338112, 0.02615850418806076, 0.022454537451267242, 0.04663126915693283, 0.026464426890015602, -0.0391889363527298, -0.029774772003293037, -0.026823559775948524, -0.049252670258283615, -0.024196937680244446, 0.0107402503490448, -0.0154270576313138, -0.006391191855072975, -0.02501802332699299, -0.07064277678728104, 0.03389139100909233, 0.014067156240344048, 0.026357140392065048, 0.02870132029056549, -0.0018546958453953266, 0.019408278167247772, -0.050772398710250854, 0.02939971722662449, 0.07594256848096848, -0.06642495840787888, 0.0093358950689435, 0.0030411400366574526, 0.0047162906266748905, 0.002659760881215334, 0.031041095033288002, -0.06005570665001869, 0.0029673981480300426, -0.013502590358257294, 0.012851940467953682, -0.04163830354809761, -0.03626320883631706, -0.027360474690794945, 0.0051974146626889706, 0.012494181282818317, 0.013487417250871658, -0.004107387270778418, -0.019816089421510696, -0.00425330176949501, -0.014151212759315968, 0.04799365997314453, -0.007121512666344643, 0.023313594982028008, 0.02459605596959591, -0.017969876527786255, 0.04325457289814949, -0.0411161407828331, 0.020367514342069626, 0.014475153759121895, -0.020647643133997917, -0.026457495987415314, -0.03779075667262077, -0.0051018730737268925, 0.007185731548815966, 0.08320349454879761, 0.013758408837020397, -0.017367690801620483, -0.046972986310720444, 0.00024389944155700505, -0.02296726033091545, 0.00982708390802145, -0.009191730991005898, -0.0068025486543774605, 0.054623693227767944, 0.06149941682815552, 0.01840081624686718, -0.0014156027464196086, -0.014963778667151928, -0.0379423052072525, 0.060197558254003525, -0.04923124983906746, -0.038169510662555695, 0.008153350092470646, -0.048261452466249466, 0.03954145312309265, 0.01892148330807686, 0.031956300139427185, -0.05224284529685974, 0.03867323696613312, 0.04999122396111488, 0.020489605143666267, 0.011067304760217667, -0.029441148042678833, 0.034331634640693665, -0.012852421030402184, -0.00885720830410719, -0.08522498607635498, -0.011512174271047115, 0.036807261407375336, -0.030055129900574684, 0.0023319581523537636, -0.0004130239540245384, -0.06812281161546707, 0.04264559596776962, -0.06815038621425629, -0.014384173788130283, 0.06415405124425888, -0.0048675984144210815, 0.03046996146440506, 0.01151985116302967, -0.059521351009607315, 0.032851334661245346, 0.026277994737029076, -0.03791964426636696, 0.003973092883825302, 0.025735296308994293, 0.06081749126315117, 0.01788925565779209, 0.028847530484199524, -0.015254364348948002, -0.02043764479458332, 0.05622750148177147, 0.025823194533586502, 0.007056440692394972, 0.06389409303665161, -0.03430050238966942, 0.05341044440865517, 0.030155370011925697, -0.008261042647063732, 0.025089360773563385, 0.04833730682730675, -0.05728784203529358, -0.07144254446029663, 0.035797275602817535, 0.0074988980777561665, -0.002188451122492552, -0.07571454346179962, 0.05309893935918808, -0.004755647387355566, -0.025503898039460182, -0.04712391644716263, 0.005126595497131348, -0.034931544214487076, -0.026328645646572113, -0.016532516106963158, 0.038520216941833496, -0.05987454950809479, 0.05243076756596565, -0.007957224734127522, 0.010641153901815414, 0.08191623538732529, 0.005336589179933071, 0.0005329139530658722, 0.009349088184535503, 0.08729520440101624, 0.08116357773542404, 0.017338315024971962, 0.003915218636393547, 0.06796059757471085, -0.02476813830435276, -0.024204272776842117, -0.022465238347649574, -0.0038783897180110216, -0.04934719577431679, -0.02762640453875065, 0.03335186466574669, 0.07785683125257492, -0.017904402688145638, 0.07350117713212967, 0.004424922168254852, -0.0248312596231699, -0.035180144011974335, -0.007224232889711857, 0.018220329657197, 0.03450040519237518, 0.008079263381659985, 0.0227303896099329, 0.0002998652053065598, -0.038493119180202484, 0.0177536029368639, 0.0278996042907238, -0.044731222093105316, 0.0061716316267848015, -0.036910489201545715, 0.032001394778490067, 0.030018968507647514, 0.022837864235043526, 0.0775599554181099, -0.032837603241205215, -0.005048095248639584, 0.01258721761405468, 0.029204854741692543, 0.00658629322424531, 0.0036547372583299875, -0.030070150271058083, -0.028832564130425453, -0.02058917097747326, -0.02752796746790409, -0.0034846498165279627, -0.005841685459017754, -0.004801493603736162, 0.040762633085250854, -0.015916062518954277, -0.012433674186468124, 0.0320214182138443, -0.00854289811104536, -0.061570391058921814, -0.07040036469697952, -0.06283854693174362, -0.07637059688568115, -0.06344293802976608, -0.027592647820711136, -0.0027524554170668125, -0.025236308574676514, -0.052918046712875366, -0.02893388457596302, -0.016629479825496674, 0.020081914961338043, 0.00852754432708025, -0.04649064317345619, -0.01864546909928322, 0.031533341854810715, 0.03260102495551109, -0.007953746244311333, -0.007428130600601435, 0.05827312171459198, 0.02264174446463585, -0.002480811206623912, -0.037499722093343735, -0.005710056517273188, 0.038932301104068756, -0.004138368181884289, 0.015614516101777554, -0.07452657073736191, 0.011682642623782158, 0.03290649503469467, -0.01442699320614338, -0.06508689373731613, 0.03257976099848747, 0.015057594515383244, -0.025613125413656235, 0.06369677931070328, -0.018191466107964516, 0.028292901813983917, -0.04860129952430725, -0.03954078629612923, -0.013309084810316563, 0.008544336073100567, 0.04975094273686409, -0.03445464372634888, 0.081242635846138, 0.03573526442050934, -0.028760701417922974, -0.022453248500823975, 0.011843026615679264, -0.002505935961380601, 0.009091313928365707, -0.03842717036604881, 0.003991048317402601, -0.0262994933873415, -0.06008337810635567, -0.02870268002152443, 0.013387319631874561, -0.023485345765948296, -0.0365448072552681, 0.01369878277182579, -0.012005363591015339, -0.017402518540620804, 0.01886005327105522, -0.04880334809422493, -0.005034412257373333, -0.016467468813061714, -0.0012537556467577815, -0.008694871328771114, -0.0009827958419919014, 0.0019032981945201755, -0.001603232347406447, 0.025547053664922714, -0.03145422413945198, 0.015568998642265797, -0.027608463540673256, 0.06254522502422333, 0.02989046275615692, -0.024168843403458595, -0.0028147974517196417 ]
[ -0.0699009820818901, -0.06327849626541138, 0.011323108337819576, -0.0392211452126503, 0.06078162044286728, -0.057931169867515564, -0.03352455049753189, 0.014885754324495792, -0.06638709455728531, -0.02139127440750599, 0.008052871562540531, -0.024782193824648857, -0.018603354692459106, -0.04296399652957916, 0.07757069170475006, 0.007972247898578644, -0.007046075537800789, -0.008303339593112469, -0.030230840668082237, 0.0013657569652423263, 0.0241765808314085, -0.02154461480677128, -0.028087366372346878, -0.05706370994448662, 0.009168012998998165, 0.09464261680841446, 0.04095657914876938, -0.014959138818085194, -0.03190268576145172, -0.20564889907836914, -0.0096020782366395, -0.013682096265256405, -0.03184056654572487, -0.01047077402472496, -0.02357546053826809, 0.038545191287994385, -0.009393400512635708, 0.018687009811401367, 0.04826045408844948, 0.05628398060798645, 0.05574503913521767, 0.01377029251307249, -0.03473703935742378, 0.015479492023587227, -0.017249681055545807, -0.03709699958562851, -0.01981758512556553, -0.009624477475881577, 0.05641531944274902, 0.006365348119288683, -0.03656874597072601, -0.007801487576216459, -0.01270277053117752, 0.009920668788254261, 0.04172523692250252, 0.04761483147740364, 0.06808283925056458, 0.08118262887001038, 0.045853231102228165, -0.019778650254011154, 0.027890296652913094, -0.001224301289767027, -0.13835203647613525, 0.1270235925912857, 0.020860841497778893, 0.030225537717342377, -0.010643468238413334, -0.0024617123417556286, -0.027524828910827637, 0.03019830957055092, -0.0008136678952723742, -0.033560313284397125, -0.03206000104546547, 0.05916066840291023, 0.045757636427879333, -0.016025211662054062, -0.03495496138930321, 0.041573140770196915, 0.0001724617904983461, -0.004672208335250616, -0.05112604424357414, 0.015825029462575912, -0.015391895547509193, -0.008790706284344196, -0.06281152367591858, -0.027975693345069885, -0.03813160955905914, 0.040138013660907745, -0.003544056788086891, 0.022407058626413345, 0.007332745473831892, -0.026579994708299637, 0.07205058634281158, 0.04993591830134392, -0.07913823425769806, 0.030445747077465057, -0.0559738390147686, -0.0009090315434150398, -0.0321936197578907, 0.36523109674453735, -0.021190771833062172, 0.017512982711195946, 0.009168092161417007, 0.003068820806220174, 0.024912362918257713, -0.003608805127441883, -0.02564854733645916, 0.014421829022467136, 0.07587157189846039, 0.0054768589325249195, 0.004130255896598101, 0.0034879595041275024, 0.07028595358133316, -0.031488899141550064, -0.01807728409767151, -0.001720099593512714, 0.011012319475412369, 0.04152844101190567, -0.0451631024479866, 0.03266739472746849, 0.0380229689180851, 0.03574849292635918, 0.015362375415861607, 0.013550709933042526, -0.0056534395553171635, 0.008645041845738888, 0.012075287289917469, 0.03231707215309143, 0.06393259763717651, 0.014567242935299873, -0.004287804011255503, -0.02700158767402172, -0.019017832353711128, -0.008221193216741085, -0.011353414505720139, -0.014661602675914764, 0.00862876046448946, -0.05547698587179184, -0.008404701948165894, -0.011915779672563076, -0.020824190229177475, -0.04095156490802765, 0.04019797220826149, -0.008008074015378952, -0.011970432475209236, 0.11949879676103592, -0.007230371702462435, 0.023597348481416702, 0.0010032565332949162, -0.03727243095636368, -0.0385652594268322, 0.011582303792238235, -0.0070687513798475266, -0.046824533492326736, 0.002443216973915696, -0.013928432948887348, 0.05136897787451744, -0.0077415332198143005, -0.04302830249071121, 0.0010809031082317233, -0.020109234377741814, -0.07514653354883194, -0.051094673573970795, -0.019070439040660858, 0.018653420731425285, -0.11867755651473999, -0.01688414067029953, 0.0003043995820917189, -0.018400706350803375, -0.010581904090940952, -0.03169432654976845, 0.04341185837984085, -0.03241225704550743, 0.0024329826701432467, 0.0731162577867508, 0.002702987752854824, 0.016308730468153954, 0.015646329149603844, 0.0661676675081253, 0.014468287117779255, 0.0016006141668185592, -0.004271169193089008, -0.007085330784320831, -0.01892736926674843, -0.02144431881606579, -0.0792529284954071, -0.050232674926519394, -0.0224338136613369, 0.003328317077830434, -0.015752654522657394, -0.016962189227342606, -0.031122075393795967, -0.006840778514742851, 0.0686224028468132, 0.042561136186122894, -0.028973843902349472, 0.011924785561859608, 0.025468938052654266, 0.0007596375071443617, -0.03692832589149475, -0.0010799014708027244, 0.027658611536026, 0.022514475509524345, 0.016881771385669708, -0.05836887285113335, 0.048392802476882935, 0.03919311612844467, -0.02475195750594139, 0.029294177889823914, 0.009572749026119709, -0.0579349622130394, 0.05474607273936272, -0.03831759840250015, 0.03562748059630394, 0.009950404055416584, -0.018854895606637, -0.028804847970604897, 0.0022444669157266617, -0.007915552705526352, 0.040643319487571716, 0.008591728284955025, -0.05149991065263748, -0.03713628649711609, -0.38569217920303345, -0.0199537742882967, -0.013253608718514442, -0.02776571922004223, -0.039663758128881454, -0.05456960201263428, -0.01948823221027851, -0.006209781859070063, 0.00625916663557291, -0.01073438674211502, 0.04547034204006195, -0.05013738200068474, 0.012175459414720535, -0.08062589168548584, 0.0029760797042399645, 0.034271489828825, -0.01956946589052677, -0.03386418893933296, -0.011221900582313538, -0.006154730450361967, -0.014672789722681046, 0.011508547700941563, -0.029549283906817436, -0.04731687903404236, 0.027458136901259422, 0.01966867968440056, 0.10360017418861389, 0.05436163395643234, 0.0679316446185112, -0.08150402456521988, 0.06191686540842056, 0.042983267456293106, 0.017952879890799522, -0.08116300404071808, 0.005135315004736185, -0.038910891860723495, 0.0019461087649688125, 0.008869800716638565, -0.05864750221371651, 0.019669517874717712, -0.022949840873479843, 0.029607728123664856, -0.05673900991678238, -0.09532379359006882, 0.02024000883102417, 0.009056627750396729, -0.027245841920375824, 0.0011767614632844925, -0.0111073087900877, 0.054124508053064346, 0.019883645698428154, 0.038972362875938416, 0.01421764399856329, 0.04591083526611328, 0.023627618327736855, -0.004674358759075403, -0.035301584750413895, -0.06458857655525208, 0.018762459978461266, -0.016269834712147713, 0.036293987184762955, 0.07269642502069473, 0.009533202275633812, -0.05228830873966217, -0.0020147135946899652, 0.022228680551052094, -0.007454738952219486, -0.00043578498298302293, 0.05722273141145706, -0.025825228542089462, -0.04801354557275772, 0.08662145584821701, 0.022047046571969986, -0.0011089344043284655, 0.06756346672773361, 0.057927343994379044, -0.024756090715527534, -0.004315855912864208, -0.010469311848282814, -0.0012684110552072525, 0.03420663997530937, -0.04221737012267113, 0.04173699766397476, -0.03387845307588577, -0.007246324326843023, 0.08145063370466232, 0.0029509596060961485, -0.024858761578798294, 0.04321006312966347, -0.018232928588986397, -0.06873498857021332, -0.0029138631653040648, 0.006097272038459778, -0.008845215663313866, 0.06488806009292603, 0.024735983461141586, -0.2685628831386566, 0.04690592363476753, 0.058394353836774826, 0.06294360756874084, 0.025721926242113113, 0.035893335938453674, -0.0034334275405853987, -0.08071210980415344, -0.005587742663919926, 0.037652332335710526, -0.03162066265940666, 0.03492507338523865, 0.05808817967772484, 0.008266186341643333, 0.033271439373493195, -0.012531171552836895, 0.06136674806475639, 0.02307821810245514, 0.03288811817765236, -0.04414688050746918, 0.007436574436724186, 0.0007419243920594454, 0.17986778914928436, 0.051878541707992554, -0.06755132973194122, 0.00998327974230051, 0.04658256098628044, 0.031066380441188812, 0.03317903354763985, 0.033531997352838516, -0.0011036853538826108, 0.04010547325015068, 0.06143883615732193, 0.030784042552113533, 0.06530293077230453, -0.03577302023768425, -0.0317719541490078, 0.014665254391729832, -0.013237285427749157, -0.06196657940745354, -0.04479334130883217, 0.031673822551965714, -0.028315862640738487, -0.0016051551792770624, 0.07553435117006302, -0.0440056174993515, -0.04093584418296814, -0.05348876491189003, -0.013012722134590149, -0.02886643446981907, -0.015346745029091835, -0.0323355458676815, -0.0037418988067656755, -0.0004555062623694539, -0.025696003809571266, 0.039535459131002426, -0.008211330510675907, 0.016146307811141014, -0.001326955039985478, 0.039515603333711624, 0.0011279467726126313, -0.04905548691749573, 0.08435353636741638, 0.02998209185898304, 0.013896836899220943 ]
[ 0.019215228036046028, 0.010412485338747501, -0.015088139101862907, 0.015133176930248737, 0.01723000779747963, -0.008268915116786957, -0.01907196082174778, 0.015860047191381454, -0.013128632679581642, 0.007340303622186184, -0.0005879116943106055, 0.00990208052098751, -0.018612410873174667, 0.004009990021586418, 0.0037255981005728245, -0.04393428564071655, 0.009653705172240734, 0.010530143976211548, 0.03313358500599861, -0.019028084352612495, -0.02314673736691475, 0.01228461042046547, 0.03369380533695221, 0.011822937056422234, -0.0008247778168879449, 0.005160004366189241, -0.044232506304979324, 0.00020561236306093633, 0.009929773397743702, -0.11896919459104538, -0.005518597550690174, 0.0020959535613656044, 0.012971585616469383, -0.035135846585035324, 0.011233143508434296, 0.030359433963894844, 0.028641335666179657, -0.013203966431319714, 0.0030076312832534313, -0.02882569655776024, 0.03912542760372162, -0.06520940363407135, -0.003432420315220952, -0.028070982545614243, 0.004950412083417177, -0.045011457055807114, -0.05897160992026329, -0.022333648055791855, -0.013719521462917328, 0.06743387877941132, -0.03845660760998726, 0.0035322958137840033, 0.017312899231910706, 0.006149520166218281, 0.050571367144584656, 0.01583883725106716, -0.023983046412467957, 0.02581958845257759, 0.031020479276776314, 0.02431110478937626, -0.005047277081757784, 0.01512045506387949, -0.0315125398337841, -0.035620998591184616, -0.00249059428460896, -0.054211005568504333, -0.013634311966598034, -0.0027404632419347763, 0.029216313734650612, 0.008725641295313835, 0.05224056541919708, -0.0036290104035288095, -0.022248437628149986, -0.02303352579474449, -0.038096897304058075, 0.0284376572817564, 0.017283452674746513, -0.0047583915293216705, -0.022498078644275665, 0.027222007513046265, -0.020444165915250778, -0.019535724073648453, -0.016779890283942223, -0.021388834342360497, -0.03536006808280945, 0.017002852633595467, -0.007489296607673168, 0.007272158749401569, 0.017502546310424805, -0.011276083998382092, -0.024764319881796837, -0.004601918626576662, 0.008097878657281399, -0.009948675520718098, -0.03852449357509613, -0.013897902332246304, -0.03259071335196495, -0.03118930384516716, -0.04558087885379791, 0.8321022987365723, -0.014087285846471786, 0.027164753526449203, 0.033949315547943115, 0.0027654895093292, 0.04279300197958946, -0.02319672517478466, -0.012884537689387798, 0.008334582671523094, -0.01628040336072445, -0.01654786989092827, 0.03183431550860405, -0.008324678055942059, 0.015285965986549854, 0.00625434098765254, 0.02534596435725689, 0.010337644256651402, -0.01837919093668461, -0.024957619607448578, -0.0014552768552675843, 0.046661581844091415, 0.04409674555063248, -0.024663660675287247, 0.028328003361821175, 0.02819627709686756, 0.011464996263384819, -0.16277888417243958, -0.005647226702421904, -6.683766839227461e-33, 0.05487659573554993, -0.05549456551671028, 0.018861403688788414, 0.004999775439500809, 0.0705103874206543, -0.015197014436125755, -0.00046903605107218027, -0.03251582384109497, -0.019520701840519905, -0.029489150270819664, 0.014237104915082455, -0.022521182894706726, -0.033168092370033264, -0.010074562393128872, 0.018467837944626808, -0.0063275620341300964, -0.005811348557472229, 0.03530874475836754, -0.0006593881407752633, 0.030966540798544884, 0.02665792964398861, 0.003076162189245224, -0.03692663460969925, 0.01250288262963295, 0.03558912128210068, 0.008533183485269547, 0.002678538439795375, -0.016101481392979622, -0.012650818563997746, -0.03467727452516556, -0.017095524817705154, 0.007378726731985807, 0.008324932307004929, -0.038145944476127625, -0.0018657575128600001, -0.07812529802322388, 0.010788041166961193, 0.013213462196290493, -0.07157717645168304, -0.00793359987437725, -0.0191365797072649, -0.03176652640104294, -0.04189753904938698, 0.013213638216257095, -0.008170263841748238, -0.022605489939451218, 0.03079487942159176, 0.034344788640737534, -0.002277414547279477, 0.02057052031159401, 0.04352414980530739, 0.02737882360816002, -0.002110654953867197, 0.029999172315001488, 0.017781641334295273, -0.011499715968966484, -0.010494767688214779, -0.0054308148100972176, 0.0008236329886130989, -0.03494938090443611, 0.003580518299713731, -0.021054279059171677, -0.02066393755376339, 0.019972017034888268, 0.004287960939109325, -0.00003727502189576626, -0.007105271331965923, 0.03236014023423195, -0.00882311537861824, 0.04254307597875595, -0.03433391824364662, 0.01198053453117609, -0.012032694183290005, -0.022008102387189865, 0.007979871705174446, -0.039980173110961914, 0.006264204159379005, 0.02317279763519764, -0.0029330174438655376, 0.048584092408418655, 0.016191447153687477, 0.017986619845032692, -0.034737784415483475, 0.017374495044350624, -0.034378208220005035, -0.024529017508029938, 0.03155682235956192, -0.006081141531467438, -0.021634932607412338, -0.0010089963907375932, 0.0313243567943573, 0.06934081763029099, 0.012798663228750229, -0.04208880290389061, -0.04619147628545761, 6.680046399607108e-33, -0.0054345871321856976, -0.011400879360735416, -0.03204924985766411, 0.010596636682748795, 0.0229706559330225, -0.04436058923602104, 0.03923244774341583, 0.022354068234562874, 0.018603460863232613, -0.0057458882220089436, -0.038061901926994324, 0.00952098984271288, -0.039057809859514236, 0.01972142420709133, 0.03362369164824486, 0.0024847849272191525, 0.013061079196631908, 0.01579008251428604, 0.011963156051933765, -0.013014820404350758, 0.03580779954791069, 0.011647732928395271, 0.03271915018558502, 0.02312258817255497, 0.015085753984749317, 0.014453141018748283, -0.009178653359413147, 0.01067566592246294, -0.07283792644739151, -0.012288742698729038, 0.023915020748972893, -0.010346800088882446, 0.02055087499320507, 0.01755845919251442, -0.014195958152413368, 0.030705835670232773, -0.025722596794366837, 0.024130765348672867, -0.006415362004190683, -0.01893758401274681, 0.011863451451063156, 0.005730744451284409, 0.019494010135531425, 0.03727502375841141, -0.026044992730021477, -0.028797408565878868, 0.020677056163549423, -0.0005933913053013384, -0.008064111694693565, -0.0020283921621739864, -0.018807731568813324, 0.0020931600593030453, 0.03014684095978737, 0.027813347056508064, 0.020876191556453705, -0.011542472057044506, -0.019510360434651375, 0.026997419074177742, -0.017772642895579338, 0.00747850863263011, 0.007781637366861105, -0.039483923465013504, 0.030574573203921318, 0.01783892512321472, -0.006179037503898144, -0.021201929077506065, -0.0318237841129303, 0.00007978620124049485, -0.023039130493998528, 0.026399267837405205, 0.036008961498737335, 0.0012838345719501376, -0.02845306321978569, 0.08894571661949158, 0.03671752288937569, -0.033684536814689636, -0.029325976967811584, 0.0337565578520298, -0.0068450672551989555, 0.0023634552489966154, -0.00351161602884531, 0.02087542973458767, -0.03264454007148743, -0.0379079207777977, 0.025670671835541725, -0.006493116728961468, -0.013707268051803112, -0.0012367360759526491, 0.006421053782105446, 0.03150204196572304, -0.01919439621269703, -0.03865240514278412, -0.04049992188811302, -0.003763316199183464, 0.0016092912992462516, -1.2312512787104879e-8, -0.013484064489603043, 0.018899373710155487, -0.03149479627609253, 0.047392938286066055, 0.02511906623840332, -0.0032417827751487494, -0.036881666630506516, -0.011967064812779427, 0.00417037308216095, -0.007901822216808796, 0.0037885832134634256, 0.021686699241399765, 0.000592260155826807, 0.017187368124723434, 0.0299964789301157, -0.028310177847743034, -0.006531043443828821, 0.008744508028030396, 0.004065536893904209, -0.027804624289274216, 0.019919654354453087, 0.043124809861183167, 0.02804749272763729, -0.02562461979687214, -0.06666003167629242, 0.018231352791190147, 0.03710777685046196, -0.03819219768047333, -0.01577736809849739, -0.012426628731191158, 0.02664714679121971, -0.031806159764528275, -0.0292381439357996, 0.04629213362932205, -0.030562710016965866, -0.017040185630321503, 0.018373660743236542, 0.02094380371272564, -0.024596553295850754, 0.018807649612426758, -0.04415323957800865, -0.030181407928466797, -0.02459665574133396, -0.038050223141908646, -0.048986613750457764, 0.002102952217683196, -0.020492924377322197, 0.06393900513648987, -0.010160481557250023, 0.02459019236266613, 0.007081467192620039, 0.019146893173456192, 0.01541703287512064, 0.00414211256429553, 0.04915173724293709, 0.016529886052012444, 0.05334211513400078, 0.011708059348165989, 0.013201680034399033, -0.0002383182436460629, 0.04546947032213211, 0.04165966063737869, -0.016041118651628494, 0.004766990430653095 ]
pinot-resetting-segment-invalid-json-transformation
https://markhneedham.com/blog/2022/01/31/pinot-resetting-segment-invalid-json-transformation
false
2022-01-13 00:44:37
Apache Pinot: Checking which indexes are defined
[ "pinot" ]
[ "Pinot" ]
:icons: font One of the most common questions in the https://communityinviter.com/apps/apache-pinot/apache-pinot[Apache Pinot community Slack^] is how to work out which indexes are defined on columns in https://docs.pinot.apache.org/basics/components/segment[Pinot segments]. This blog post will attempt to answer that question. .Apache Pinot: Checking which indexes are defined image::{{<siteurl>}}/uploads/2022/01/indexes-banner.png[] == Setup First, we're going to spin up a local instance of Pinot using the following Docker compose config: .docker-compose.yml [source, yaml] ---- version: '3.7' services: zookeeper: image: zookeeper:3.5.6 hostname: zookeeper container_name: zookeeper-indexes ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 pinot-controller: image: apachepinot/pinot:0.9.3 command: "StartController -zkAddress zookeeper-indexes:2181 -dataDir /data" container_name: "pinot-controller-indexes" volumes: - ./config:/config - ./data:/data - ./input:/input restart: unless-stopped ports: - "9000:9000" depends_on: - zookeeper pinot-broker: image: apachepinot/pinot:0.9.3 command: "StartBroker -zkAddress zookeeper-indexes:2181" restart: unless-stopped container_name: "pinot-broker-indexes" ports: - "8099:8099" depends_on: - pinot-controller pinot-server: image: apachepinot/pinot:0.9.3 command: "StartServer -zkAddress zookeeper-indexes:2181" restart: unless-stopped container_name: "pinot-server-indexes" depends_on: - pinot-broker ---- [source, bash] ---- docker-compose up ---- == Data We'll be working with the following CSV files that contain transcripts for various students: .transcript1.csv [format="csv", options="header"] |=== include::content/2022/01/13/data/transcript1.csv[] |=== .transcript2.csv [format="csv", options="header"] |=== include::content/2022/01/13/data/transcript2.csv[] |=== We've deliberately got two different files so that we can create one segment based on each. == Create Table Let's create a Pinot schema and table based on this CSV file. The schema is defined below: ./config/schema.json [source.json] ---- include::content/2022/01/13/config/schema.json[] ---- Our table config is defined below: ./config/table.json [source.json] ---- include::content/2022/01/13/config/table.json[] ---- Now let's create the table and schema: [source, bash] ---- docker exec -it manual-pinot-controller bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table.json \ -schemaFile /config/schema.json -exec ---- == Import CSV files After we've done that, it's time to import the CSV file. We'll import the `transcript1.csv` using the ingestion job spec defined below: ./config/job-spec1.yml [source,yaml] ---- include::content/2022/01/13/config/job-spec1.yml[] ---- [source, bash] ---- docker exec -it pinot-controller-indexes bin/pinot-admin.sh LaunchDataIngestionJob \ -jobSpecFile /config/job-spec1.yml ---- And `transcript2.csv` using the ingestion job spec defined below: ./config/job-spec2.yml [source,yaml] ---- include::content/2022/01/13/config/job-spec2.yml[] ---- [source, bash] ---- docker exec -it pinot-controller-indexes bin/pinot-admin.sh LaunchDataIngestionJob \ -jobSpecFile /config/job-spec2.yml ---- We can check which segments have been created by running the following command: [source, bash] ---- curl -X GET "http://localhost:9000/segments/transcript" -H "accept: application/json" ---- .Output [source, json] ---- [ { "OFFLINE": [ "transcript_OFFLINE_1570863600000_1572418800000_0", "transcript_OFFLINE_1641746000037_1642068001037_0" ] } ] ---- We've got two segments - one for each file - which is what we expected. == Check indexes We can check which indexes are defined on the columns in a segment by calling the _getServerMetaData_ endpoint, available at http://localhost:9000/help#/Segment/getServerMetadata. A screenshot of the Swagger documentation for this end point is shown below: .Segment metadata end point image::{{<siteurl>}}/uploads/2022/01/segment-metadata.png[] Let's see what data is returned when we query this end point for the `transcript` table: [source, bash] ---- curl -X GET "http://localhost:9000/segments/transcript/metadata" -H "accept: application/json" ---- .Output [source, json] ---- { "transcript_OFFLINE_1570863600000_1572418800000_0": { "segmentName": "transcript_OFFLINE_1570863600000_1572418800000_0", "schemaName": null, "crc": 1700211719, "creationTimeMillis": 1642069557334, "creationTimeReadable": "2022-01-13T10:25:57:334 UTC", "timeGranularitySec": 0, "startTimeMillis": 1570863600000, "startTimeReadable": "2019-10-12T07:00:00.000Z", "endTimeMillis": 1572418800000, "endTimeReadable": "2019-10-30T07:00:00.000Z", "segmentVersion": "v3", "creatorName": null, "custom": { "input.data.file.uri": "file:/input/transcript1.csv" }, "columns": [], "indexes": {}, "star-tree-index": null }, "transcript_OFFLINE_1641746000037_1642068001037_0": { "segmentName": "transcript_OFFLINE_1641746000037_1642068001037_0", "schemaName": null, "crc": 1556428049, "creationTimeMillis": 1642069571796, "creationTimeReadable": "2022-01-13T10:26:11:796 UTC", "timeGranularitySec": 0, "startTimeMillis": 1641746000037, "startTimeReadable": "2022-01-09T16:33:20.037Z", "endTimeMillis": 1642068001037, "endTimeReadable": "2022-01-13T10:00:01.037Z", "segmentVersion": "v3", "creatorName": null, "custom": { "input.data.file.uri": "file:/input/transcript2.csv" }, "columns": [], "indexes": {}, "star-tree-index": null } } ---- As expected, we have two segments. It also tells us when each of the segments was created, along with the minimum and maximum values for the timestamp column. To get a breakdown of column metadata we'll need to pass in a list of column names. Let's have a look what gets returned if we pass in the `firstName` column: [source, bash] ---- curl -X GET "http://localhost:9000/segments/transcript/metadata?columns=firstName&columns=" -H "accept: application/json" ---- .Output [source, json] ---- { "transcript_OFFLINE_1570863600000_1572418800000_0": { "segmentName": "transcript_OFFLINE_1570863600000_1572418800000_0", "schemaName": null, "crc": 1700211719, "creationTimeMillis": 1642069557334, "creationTimeReadable": "2022-01-13T10:25:57:334 UTC", "timeGranularitySec": 0, "startTimeMillis": 1570863600000, "startTimeReadable": "2019-10-12T07:00:00.000Z", "endTimeMillis": 1572418800000, "endTimeReadable": "2019-10-30T07:00:00.000Z", "segmentVersion": "v3", "creatorName": null, "custom": { "input.data.file.uri": "file:/input/transcript1.csv" }, "columns": [ { "totalDocs": 4, "partitionFunction": null, "partitions": null, "hasDictionary": true, "columnMaxLength": 4, "autoGenerated": false, "paddingCharacter": "\u0000", "maxNumberOfMultiValues": 0, "fieldSpec": { "name": "firstName", "singleValueField": true, "defaultNullValueString": "null", "virtualColumnProvider": null, "maxLength": 512, "dataType": "STRING", "transformFunction": null, "defaultNullValue": "null" }, "bitsPerElement": 2, "totalNumberOfEntries": 4, "sorted": false, "minValue": "Bob", "maxValue": "Nick", "cardinality": 3, "fieldType": "DIMENSION", "singleValue": true, "columnName": "firstName", "dataType": "STRING" } ], "indexes": { "firstName": { "bloom-filter": "NO", "dictionary": "YES", "forward-index": "YES", "inverted-index": "NO", "null-value-vector-reader": "NO", "range-index": "NO", "json-index": "NO" } }, "star-tree-index": null }, "transcript_OFFLINE_1641746000037_1642068001037_0": { "segmentName": "transcript_OFFLINE_1641746000037_1642068001037_0", "schemaName": null, "crc": 1556428049, "creationTimeMillis": 1642069571796, "creationTimeReadable": "2022-01-13T10:26:11:796 UTC", "timeGranularitySec": 0, "startTimeMillis": 1641746000037, "startTimeReadable": "2022-01-09T16:33:20.037Z", "endTimeMillis": 1642068001037, "endTimeReadable": "2022-01-13T10:00:01.037Z", "segmentVersion": "v3", "creatorName": null, "custom": { "input.data.file.uri": "file:/input/transcript2.csv" }, "columns": [ { "totalDocs": 4, "partitionFunction": null, "partitions": null, "hasDictionary": true, "columnMaxLength": 6, "autoGenerated": false, "paddingCharacter": "\u0000", "maxNumberOfMultiValues": 0, "fieldSpec": { "name": "firstName", "singleValueField": true, "defaultNullValueString": "null", "virtualColumnProvider": null, "maxLength": 512, "dataType": "STRING", "transformFunction": null, "defaultNullValue": "null" }, "bitsPerElement": 2, "totalNumberOfEntries": 4, "sorted": false, <1> "minValue": "Jason", "maxValue": "Olivia", "cardinality": 3, "fieldType": "DIMENSION", "singleValue": true, "columnName": "firstName", "dataType": "STRING" } ], "indexes": { "firstName": { "bloom-filter": "NO", "dictionary": "YES", <2> "forward-index": "YES", "inverted-index": "NO", "null-value-vector-reader": "NO", "range-index": "NO", "json-index": "NO" } }, "star-tree-index": null } } ---- <1> The column isn't sorted. <2> The column uses a dictionary based forward index. Along with the segment metadata we've now also got a bunch of information about the _firstName_ column and its indexes. We're mostly interested in the information under `indexes.firstName`, but we can also see whether a https://docs.pinot.apache.org/basics/indexing/forward-index#sorted-forward-index-with-run-length-encoding[sorted forward index column^] has been applied to this column by checking the `columns.sorted` property. Next we're going to extract information about the indexes defined for each column. We'll need to combine the data from `columns` and `indexes`, which will be much easier to do in Python. The following script writes a CSV file describing column names and indexes for each segment: [source, python] ---- import requests import csv pinot_url = "http://localhost:9000" response = requests.get(f"{pinot_url}/schemas/transcript") r = response.json() fields = r["dimensionFieldSpecs"] + r["dateTimeFieldSpecs"] columns = [field["name"] for field in fields] data = { "columns": columns} response = requests.get(f"{pinot_url}/segments/transcript/metadata", params=data) r = response.json() for segment, values in r.items(): with open(f"output/schema_{segment}.csv", "w") as schema_file: writer = csv.writer(schema_file, delimiter=",") print(segment) writer.writerow(["column", "sorted"] + list(list(values["indexes"].values())[0].keys())) for column in values["columns"]: column_name = column["fieldSpec"]["name"] filtered_map = {k:v for k,v in values["indexes"].items() if k == column_name} writer.writerow([column_name, column["sorted"]] + list(filtered_map[column_name].values())) ---- The output files are shown below: .schema_transcript_OFFLINE_1570863600000_1572418800000_0.csv [format="csv", options="header"] |=== include::content/2022/01/13/no-indexes/schema_transcript_OFFLINE_1570863600000_1572418800000_0.csv[] |=== .schema_transcript_OFFLINE_1641746000037_1642068001037_0.csv [format="csv", options="header"] |=== include::content/2022/01/13/no-indexes/schema_transcript_OFFLINE_1641746000037_1642068001037_0.csv[] |=== == Adding new indexes ./config/table-inverted-index.json [source.json] ---- include::content/2022/01/13/config/table-inverted-index.json[] ---- abc [source, bash] ---- curl -X PUT "http://localhost:9000/tables/transcript" \ -H "accept: application/json" \ -H "Content-Type: application/json" \ --data @config/table-inverted-index.json ---- .Output [source, json] ---- {"status":"Table config updated for transcript"} ---- The table is now updated, but the inverted index hasn't been applied to any of the segments yet. To apply this new index, we'll need to call the Reload API. We can reload an individual segment or all of the segments. .Reload API image::{{<siteurl>}}/uploads/2022/01/reload-api.png[] Let's reload just segment `transcript_OFFLINE_1570863600000_1572418800000_0`, using the following command: [source, bash] ---- curl -X POST \ "http://localhost:9000/segments/transcript/transcript_OFFLINE_1570863600000_1572418800000_0/reload?forceDownload=false" \ -H "accept: application/json" ---- ++++ <style> table.inverted-index tbody tr:nth-child(2) { background-color: yellow; } table.inverted-index tbody tr:nth-child(2) td:nth-child(6) { font-weight: 700; } </style> ++++ Now we can re-run our Python script to get the latest state of indexes, which is shown below: .schema_transcript_OFFLINE_1570863600000_1572418800000_0.csv [format="csv", options="header", role="inverted-index"] |=== include::content/2022/01/13/inverted-index/schema_transcript_OFFLINE_1570863600000_1572418800000_0.csv[] |=== .schema_transcript_OFFLINE_1641746000037_1642068001037_0.csv [format="csv", options="header", role="inverted-index"] |=== include::content/2022/01/13/inverted-index/schema_transcript_OFFLINE_1641746000037_1642068001037_0.csv[] |=== We can see that an inverted index has been added to the _firstName_ column for segment `transcript_OFFLINE_1570863600000_1572418800000_0`, but not segment `transcript_OFFLINE_1641746000037_1642068001037_0`. We can apply the inverted index to all segments by running the following command: [source, bash] ---- curl -X POST "http://localhost:9000/segments/transcript/reload?forceDownload=false" -H "accept: application/json" ---- And if we run our Python script one more time, we'll get the following output: .schema_transcript_OFFLINE_1570863600000_1572418800000_0.csv [format="csv", options="header", role="inverted-index"] |=== include::content/2022/01/13/inverted-index-all/schema_transcript_OFFLINE_1570863600000_1572418800000_0.csv[] |=== .schema_transcript_OFFLINE_1641746000037_1642068001037_0.csv [format="csv", options="header", role="inverted-index"] |=== include::content/2022/01/13/inverted-index-all/schema_transcript_OFFLINE_1641746000037_1642068001037_0.csv[] |=== The inverted index on the _firstName_ column is now available on all segments!
In this post we'll learn how to check which indexes are defined on Pinot segments.
uploads/2022/01/indexes-banner.png
[ -0.011182326823472977, -0.004067948088049889, 0.0020967305172234774, 0.03761662542819977, 0.08848386257886887, 0.021606363356113434, 0.013617698103189468, 0.05512874945998192, -0.025565460324287415, -0.011951412074267864, -0.022057775408029556, -0.018195662647485733, -0.048901595175266266, 0.021954337134957314, -0.0029351275879889727, 0.07677512615919113, 0.08760244399309158, 0.023055585101246834, 0.0024589812383055687, -0.010972579009830952, 0.05219557508826256, 0.03752722218632698, 0.007430015131831169, 0.04433499649167061, 0.014153478667140007, 0.004532834980636835, -0.003414276521652937, 0.02276453748345375, -0.04554689675569534, 0.004082100931555033, 0.022551337257027626, -0.002156581962481141, 0.02329219877719879, -0.011132405139505863, -0.0028834904078394175, -0.0027705354150384665, 0.00042338002822361887, 0.0017798829358071089, 0.00884316023439169, 0.02312551811337471, -0.08229002356529236, 0.018255239352583885, 0.019779164344072342, 0.007927670143544674, -0.005796011537313461, 0.02582402341067791, -0.06952937692403793, 0.0018411915516480803, 0.022510362789034843, 0.01999078318476677, -0.06887583434581757, 0.023925811052322388, -0.02247009426355362, 0.02632973901927471, -0.0065915631130337715, 0.051690928637981415, -0.008910702541470528, -0.056602973490953445, 0.023639025166630745, -0.034839045256376266, -0.012619726359844208, 0.0037433505058288574, 0.02872622385621071, 0.009708641096949577, -0.018290581181645393, -0.021406367421150208, -0.010080672800540924, 0.04013892635703087, -0.061907391995191574, 0.004746981896460056, -0.002221280476078391, 0.010507184080779552, 0.0045118737034499645, -0.011993448249995708, 0.0386488102376461, -0.02289987914264202, -0.0454578772187233, 0.06911621987819672, 0.009168501943349838, 0.03497700393199921, -0.03451331704854965, -0.017100011929869652, 0.01314285397529602, 0.016089729964733124, -0.012975418008863926, -0.04104290157556534, -0.04848751053214073, -0.01762007363140583, -0.05639832839369774, 0.07184027880430222, -0.00047110102605074644, -0.03426889330148697, 0.025385543704032898, 0.009744774550199509, -0.00043686601566150784, 0.021617822349071503, 0.029885301366448402, -0.02813582867383957, 0.01698864996433258, 0.004641128703951836, -0.031192772090435028, -0.0149884894490242, 0.031194031238555908, 0.07461724430322647, -0.07738792896270752, -0.04250824451446533, -0.03569155931472778, -0.0019019109895452857, -0.01937551610171795, 0.022003913298249245, -0.02931843139231205, 0.0011909559834748507, -0.012743961997330189, 0.009369956329464912, -0.06422559171915054, 0.09582555294036865, 0.032156843692064285, -0.023645834997296333, 0.045828282833099365, 0.04069763049483299, 0.04274164140224457, 0.02991645224392414, -0.02865622378885746, 0.07081315666437149, -0.004007968120276928, 0.008943373337388039, -0.00045337126357480884, 0.029473429545760155, -0.002627433743327856, -0.07403220236301422, -0.044026754796504974, 0.04408765956759453, 0.014641034416854382, -0.018037479370832443, -0.01715497486293316, -0.04440583288669586, 0.006943222600966692, -0.01451073307543993, 0.04476606845855713, 0.0018541960744187236, -0.028412634506821632, -0.022201761603355408, 0.019979599863290787, -0.0024226231034845114, 0.06304576247930527, 0.020260637626051903, 0.015306083485484123, -0.059093039482831955, -0.023428894579410553, 0.0248704981058836, 0.0006163798389025033, 0.019330263137817383, 0.06017421931028366, -0.030308406800031662, -0.009054997004568577, 0.05993777886033058, 0.034315869212150574, -0.00027152636903338134, -0.02117522805929184, 0.0003602954966481775, 0.04382578283548355, 0.00993521697819233, 0.025674471631646156, 0.04848086088895798, 0.028435399755835533, -0.03616517037153244, -0.009371360763907433, 0.04958704113960266, -0.02674250677227974, 0.00595406349748373, -0.04321546480059624, -0.051406826823949814, 0.05329260230064392, -0.05495164915919304, 0.02202865295112133, 0.046685267239809036, 0.08536920696496964, 0.033687010407447815, 0.021468114107847214, 0.014736825600266457, -0.09133373945951462, 0.047868724912405014, 0.011405978351831436, 0.008857395499944687, 0.012108530849218369, -0.013081041164696217, 0.05866778641939163, 0.009171536192297935, 0.06382486969232559, 0.017989300191402435, -0.06290211528539658, -0.0813366249203682, -0.024527622386813164, -0.0018088368233293295, 0.05822627618908882, -0.02282089553773403, -0.0029902986716479063, 0.048820625990629196, 0.0033945590257644653, 0.016301346942782402, -0.0016996216727420688, 0.01572898030281067, 0.012163594365119934, -0.06085887923836708, -0.07952970266342163, 0.021475663408637047, 0.018343599513173103, -0.0527348592877388, -0.032413385808467865, 0.007930433377623558, -0.03677286580204964, -0.015480604954063892, 0.038573481142520905, -0.005340647883713245, 0.08531402051448822, 0.012404394336044788, 0.0412893146276474, -0.021316634491086006, 0.0454462505877018, -0.06464608013629913, 0.04239166900515556, 0.003245215630158782, -0.007401236332952976, -0.0037991150747984648, 0.00033992406679317355, 0.10329001396894455, 0.09347172826528549, -0.019782070070505142, -0.03683696687221527, 0.03655353561043739, 0.033971868455410004, -0.06492597609758377, 0.012467180378735065, -0.0029759076423943043, -0.006029205396771431, 0.016636690124869347, -0.026176318526268005, -0.03460955619812012, 0.04292900860309601, -0.021640058606863022, -0.005388897377997637, 0.056534841656684875, -0.02491021901369095, 0.059256747364997864, 0.028415296226739883, -0.009843514300882816, -0.005771607160568237, -0.031216152012348175, -0.10159442573785782, -0.021695714443922043, 0.003897585906088352, -0.016002435237169266, 0.04935833811759949, -0.04436681419610977, -0.024968285113573074, -0.051426053047180176, -0.03581681847572327, 0.04079080745577812, 0.04023212939500809, 0.05506252124905586, -0.020326590165495872, 0.04008280858397484, -0.04386349767446518, -0.0024680974893271923, -0.005592793691903353, -0.052626751363277435, 0.00039156811544671655, 0.011324017308652401, 0.010526052676141262, 0.02005797252058983, 0.016551444306969643, -0.0028696295339614153, 0.018843356519937515, -0.009290301240980625, 0.036322612315416336, 0.00018768907466437668, 0.014251514337956905, 0.03578844666481018, 0.016093436628580093, -0.020854083821177483, -0.0074329315684735775, 0.05253133550286293, -0.05078877881169319, -0.018046261742711067, 0.0012374252546578646, -0.047167014330625534, 0.04538656398653984, -0.05659857764840126, -0.04448595643043518, -0.020558524876832962, 0.03825586289167404, 0.011986040510237217, 0.01738140359520912, -0.010183161124587059, 0.03408488631248474, 0.020384881645441055, -0.01348367054015398, 0.04609739035367966, -0.023893816396594048, 0.04122452065348625, -0.010408738628029823, 0.020449740812182426, 0.06366343051195145, -0.017699729651212692, -0.0015836280072107911, -0.019647670909762383, 0.0005797069170512259, -0.030330756679177284, -0.26692795753479004, 0.034379273653030396, -0.014169175177812576, -0.02250279113650322, -0.005388031713664532, -0.014017278328537941, -0.002950521418824792, -0.03321443870663643, 0.0030971600208431482, -0.009005003608763218, -0.03356962278485298, -0.022600827738642693, -0.01617703214287758, 0.015541007742285728, -0.016374824568629265, 0.018735218793153763, 0.011493620462715626, -0.07068637758493423, -0.01506626233458519, 0.010723516345024109, 0.013341941870748997, -0.04426689073443413, 0.008292613551020622, 0.03646828979253769, 0.013938059099018574, 0.05026392266154289, -0.07933573424816132, 0.05194371938705444, -0.03644914552569389, -0.023997649550437927, 0.012419290840625763, -0.02307039499282837, -0.024379286915063858, 0.02102605625987053, 0.0013532850425690413, -0.017044266685843468, 0.023141032084822655, -0.01146054919809103, 0.022224321961402893, -0.000635833537671715, -0.018645847216248512, -0.04616064950823784, 0.004400849808007479, 0.010343932546675205, 0.07233694195747375, 0.008589035831391811, -0.079182468354702, -0.007371239829808474, -0.042060486972332, 0.06557654589414597, -0.023312706500291824, -0.05367128551006317, -0.012606373988091946, 0.008817784488201141, -0.013079092837870121, 0.0032542801927775145, 0.00606425479054451, -0.009005751460790634, -0.0509762205183506, -0.06108551844954491, -0.0045253015123307705, -0.05047765374183655, -0.009942238219082355, -0.056350093334913254, -0.03180453181266785, -0.07345107942819595, -0.052749037742614746, 0.03789416328072548, 0.06441455334424973, 0.029310723766684532, -0.03718014433979988, 0.031907081604003906, -0.026381932199001312, -0.10887367278337479, -0.015717841684818268, -0.016680032014846802, -0.037407778203487396, -0.012765845283865929, -0.04771238565444946, 0.04657847806811333, -0.029077298939228058, -0.03140426427125931, 0.022124886512756348, 0.010819454677402973, 0.005119652021676302, -0.018154453486204147, 0.013418197631835938, -0.03317879140377045, -0.008726553060114384, 0.007830043323338032, 0.05404910445213318, -0.0446883849799633, -0.024527929723262787, -0.028614243492484093, 0.006181882694363594, 0.043756671249866486, 0.03579477593302727, 0.005225923378020525, 0.006512094754725695, 0.05493425950407982, 0.02203255519270897, -0.05388231948018074, 0.014625837095081806, -0.02019626460969448, -0.01458584051579237, 0.01605788618326187, -0.062184520065784454, 0.028038760647177696, 0.027261387556791306, 0.022362861782312393, 0.023799024522304535, -0.06140890344977379, 0.024406040087342262, -0.07340552657842636, -0.02768072858452797, -0.005645877681672573, 0.028032857924699783, 0.03953549638390541, 0.041695572435855865, -0.0025124954991042614, -0.0508003830909729, 0.024792246520519257, 0.015249347314238548, -0.04913468286395073, -0.05500977858901024, -0.011608526110649109, 0.004934938158839941, -0.01470181904733181, 0.018085548654198647, 0.006434244569391012, -0.011844480410218239, 0.04250992834568024, 0.047879502177238464, -0.042389266192913055, 0.03444169461727142, -0.012449849396944046, -0.025844480842351913, -0.02946285903453827, 0.032105524092912674, 0.017757516354322433, -0.012652497738599777, 0.016590649262070656, -0.00002695313742151484, 0.005926262121647596, 0.04924501106142998, 0.03271421045064926, -0.00215523992665112, -0.022800350561738014, 0.0038646969478577375, 0.03023003600537777, 0.0005306311068125069, -0.0012582027120515704, 0.004374869167804718, -0.027646176517009735, -0.02001810446381569, -0.04266252741217613, 0.022557325661182404, -0.009055822156369686, -0.0211810190230608, -0.04220691695809364, 0.005644291173666716, -0.05736799165606499, 0.006759872194379568, -0.03527923673391342, -0.012585214339196682, 0.05945915728807449, 0.01970820128917694, 0.016401082277297974, -0.003862014040350914, 0.004852744285017252, 0.019984986633062363, 0.018066009506583214, -0.02866203896701336, 0.009776687249541283, -0.017686212435364723, -0.02573065645992756, 0.018832162022590637, 0.040210191160440445, 0.028622819110751152, -0.013803862035274506, 0.015288141556084156, -0.010619541630148888, 0.04215268790721893, 0.002877040533348918, 0.042564332485198975, 0.032568249851465225, -0.026508482173085213, -0.001750043360516429, 0.0033793733455240726, -0.025559410452842712, -0.033675312995910645, 0.004185287281870842, -0.010555851273238659, 0.01561379712074995, -0.0361587293446064, -0.07120539993047714, 0.04127441346645355, 0.0015880931168794632, 0.014864624477922916, 0.019984405487775803, -0.0008708281675353646, -0.01177284773439169, -0.06492262333631516, 0.04785420373082161, 0.09512538462877274, -0.05002816021442413, 0.021026352420449257, 0.015984704717993736, -0.01496920920908451, -0.014314760453999043, 0.023039815947413445, -0.07862186431884766, -0.007262170314788818, -0.013366872444748878, 0.03196340799331665, -0.04947906732559204, -0.049546096473932266, -0.02686862275004387, 0.005017824005335569, -0.0004376369761303067, 0.0403708778321743, -0.010893557220697403, -0.006112555507570505, -0.005864836275577545, -0.03148222714662552, 0.050865355879068375, 0.009613343514502048, 0.023523304611444473, 0.028779931366443634, -0.014294923283159733, 0.03022097423672676, -0.02000536397099495, 0.015073871240019798, 0.018398670479655266, -0.037035826593637466, -0.011906555853784084, -0.05372278019785881, -0.014904318377375603, -0.004125428386032581, 0.0781896710395813, -0.005483338143676519, 0.017996300011873245, -0.044388726353645325, -0.0149250952526927, -0.026128971949219704, -0.001828659325838089, 0.014062916859984398, -0.028697295114398003, 0.04949801787734032, 0.05197487026453018, -0.007087786216288805, -0.012603246606886387, -0.013968635350465775, -0.025638602674007416, 0.05387885123491287, -0.03493722528219223, -0.04430228844285011, -0.0053371707908809185, -0.06308794766664505, 0.05766232684254646, 0.01431595254689455, 0.038023654371500015, -0.04202195629477501, 0.030567670240998268, 0.04322883486747742, 0.010263602249324322, 0.01179128885269165, -0.025425603613257408, 0.047264985740184784, -0.014917217195034027, 0.001087662996724248, -0.08144792169332504, 0.0029864534735679626, 0.03176812082529068, -0.027382660657167435, -0.018959734588861465, 0.0038718576543033123, -0.05983695015311241, 0.022244971245527267, -0.06937149912118912, -0.04071910306811333, 0.03786696866154671, -0.0007505262619815767, 0.029026541858911514, 0.011636890470981598, -0.05161683261394501, 0.0262601375579834, 0.043661318719387054, -0.041660722345113754, 0.004568252246826887, 0.004203610587865114, 0.04665409028530121, -0.01922658272087574, 0.03036007471382618, -0.00912450347095728, -0.017813704907894135, 0.0560540109872818, 0.017234954982995987, -0.00016510995919816196, 0.05893080309033394, -0.035492174327373505, 0.05521867424249649, 0.027183542028069496, 0.0010751611553132534, 0.026765136048197746, 0.032609421759843826, -0.04892526566982269, -0.060729339718818665, 0.016609489917755127, -0.003605528036132455, 0.016483070328831673, -0.07207298278808594, 0.03971301019191742, 0.00831465795636177, -0.03295227885246277, -0.028966179117560387, -0.006222967058420181, -0.024029187858104706, -0.018063027411699295, -0.029801148921251297, 0.038046885281801224, -0.028139593079686165, 0.053946610540151596, -0.007376840338110924, 0.009689563885331154, 0.07947667688131332, 0.0021424549631774426, -0.02766769751906395, 0.03707518056035042, 0.09706389904022217, 0.08511348813772202, 0.027464916929602623, -0.01118363905698061, 0.06151491031050682, -0.035970136523246765, -0.046192899346351624, -0.025352051481604576, -0.02352389320731163, -0.032345276325941086, -0.02260563336312771, 0.016509514302015305, 0.06074419245123863, -0.022461965680122375, 0.06394536793231964, -0.007761190179735422, 0.006085752043873072, -0.01823585480451584, -0.004536615218967199, 0.01692432351410389, 0.026206379756331444, -0.01409999094903469, 0.04077541455626488, 0.003906446509063244, -0.023023050278425217, -0.0044349185191094875, 0.018687399104237556, -0.03969636932015419, 0.001226147054694593, -0.02457392029464245, 0.01092037558555603, 0.006879108026623726, 0.0063614570535719395, 0.07476568967103958, -0.043538399040699005, -0.018212443217635155, 0.018503081053495407, 0.042299553751945496, 0.015472762286663055, -0.003940670285373926, -0.035455234348773956, -0.03383432328701019, -0.033231690526008606, -0.018815958872437477, 0.007588859181851149, -0.004444044083356857, -0.01300320029258728, 0.025189686566591263, -0.007354725152254105, 0.0180167518556118, 0.052328985184431076, -0.0004930320428684354, -0.056278664618730545, -0.049216460436582565, -0.055458374321460724, -0.05821266770362854, -0.06688722223043442, -0.011692682281136513, 0.009756011888384819, -0.0014522111741825938, -0.05965737625956535, -0.03168873488903046, -0.03056769073009491, 0.008745337836444378, 0.014623860828578472, -0.030334362760186195, -0.010574047453701496, -0.00007009151886450127, 0.04701175540685654, 0.016699625179171562, 0.002242104383185506, 0.06232032552361488, 0.008574712090194225, -0.004945763386785984, -0.035113152116537094, 0.0019900540355592966, 0.0510898232460022, 0.0032389017287641764, -0.018041307106614113, -0.07501526921987534, 0.037406452000141144, 0.0389334000647068, -0.0078229745849967, -0.07387314736843109, 0.026174386963248253, 0.02426837757229805, -0.02478853054344654, 0.04510607570409775, -0.02367575094103813, 0.0006243383977562189, -0.043237533420324326, -0.018690060824155807, -0.010168450884521008, 0.004033064004033804, 0.0267235916107893, -0.023361803963780403, 0.06004916876554489, 0.036306507885456085, -0.012709489092230797, -0.01894817128777504, 0.014533997513353825, 0.004659431986510754, 0.0027231473941355944, -0.0521550215780735, -0.009634320624172688, -0.04660065099596977, -0.06451433897018433, 0.003540663979947567, 0.03405807167291641, -0.019872941076755524, -0.05164199694991112, -0.002428957726806402, -0.010086813010275364, -0.009340070188045502, 0.02202886901795864, -0.05658234655857086, -0.011228653602302074, -0.007735753431916237, -0.010857205837965012, -0.00029885905678384006, 0.026122530922293663, -0.02196146734058857, -0.00876882579177618, 0.028823228552937508, -0.03902657702565193, 0.008283925242722034, -0.03024238720536232, 0.04891669377684593, 0.043233297765254974, -0.0016081721987575293, -0.015346694737672806 ]
[ -0.046938274055719376, -0.03282216563820839, -0.014885385520756245, -0.0014512598281726241, 0.051841359585523605, -0.05186230316758156, 0.00046804206795059144, 0.013650095090270042, -0.014014080166816711, -0.030266473069787025, 0.019190683960914612, -0.05954020097851753, -0.006477375514805317, -0.04197585582733154, 0.024104023352265358, -0.0198949184268713, -0.0046746083535254, 0.0075685493648052216, 0.00047303439350798726, 0.011893455870449543, 0.03137357160449028, -0.018933046609163284, -0.046483445912599564, -0.07957689464092255, -0.0016889491816982627, 0.11217330396175385, 0.035146310925483704, 0.011848635040223598, -0.009594814851880074, -0.21151413023471832, 0.0023813871666789055, -0.03938465937972069, -0.004966271575540304, -0.0053012920543551445, 0.014257091097533703, 0.014878805726766586, 0.005176148377358913, 0.019628075882792473, 0.04825202748179436, 0.0308742243796587, 0.02464413270354271, -0.012237741611897945, -0.03214680030941963, 0.047654327005147934, -0.01573229767382145, -0.06307226419448853, -0.01832658238708973, -0.017363891005516052, 0.01655295118689537, -0.00994773581624031, -0.019218960776925087, -0.0057753222063183784, -0.03503842651844025, -0.0034879047889262438, -0.006707456894218922, 0.033785492181777954, 0.050738733261823654, 0.015945253893733025, 0.0208550076931715, 0.001992997247725725, 0.040152933448553085, -0.029176348820328712, -0.16063667833805084, 0.15288512408733368, 0.016978910192847252, 0.011194203980267048, -0.041493285447359085, 0.04465543478727341, -0.04416998475790024, 0.03412696719169617, 0.022083865478634834, -0.030375070869922638, -0.06417061388492584, 0.03694303706288338, -0.009717699140310287, -0.04789748415350914, -0.01950130984187126, 0.03663330152630806, -0.020814480260014534, -0.012805690057575703, -0.06698723882436752, -0.00931660458445549, -0.007689232472330332, -0.005002924241125584, -0.01624692603945732, 0.043085601180791855, 0.005658441223204136, 0.02166537381708622, -0.015178430825471878, 0.023319022729992867, -0.022010432556271553, -0.054203424602746964, 0.049919165670871735, 0.010249961167573929, -0.05328745394945145, 0.005251921247690916, 0.005277431569993496, -0.007411743514239788, -0.05949461832642555, 0.38708221912384033, -0.018291527405381203, 0.01384974829852581, 0.009164129383862019, -0.021594827994704247, 0.04015842825174332, 0.018349066376686096, -0.018830666318535805, -0.006618472281843424, 0.04029221832752228, 0.009154358878731728, 0.010665117762982845, 0.0006146826199255884, 0.08455704897642136, -0.044926900416612625, -0.003355387132614851, -0.03181656450033188, -0.05039829760789871, 0.012254009023308754, 0.014733165502548218, 0.04642998054623604, 0.009197218343615532, 0.020306358113884926, 0.03889305517077446, 0.02737356163561344, 0.006443107035011053, 0.0388578325510025, 0.00553191639482975, 0.015506031922996044, 0.03263374790549278, 0.032145123928785324, 0.018235167488455772, 0.013757581822574139, -0.01001125480979681, -0.003594363108277321, 0.023675814270973206, 0.00735491095110774, 0.0612994059920311, -0.046444546431303024, -0.006131304893642664, -0.022500544786453247, -0.028202852234244347, -0.045912884175777435, 0.08379185944795609, -0.04754044488072395, -0.0034196279011666775, 0.13318771123886108, -0.02390497922897339, -0.021985603496432304, -0.04167938232421875, -0.039798978716135025, -0.05518083646893501, 0.021333465352654457, -0.0008040721877478063, -0.04087652266025543, -0.020687224343419075, 0.030511466786265373, 0.052376341074705124, -0.009882771410048008, -0.06922256201505661, -0.01206403598189354, 0.007728909142315388, -0.02079048939049244, -0.021878747269511223, -0.01582479663193226, 0.045188479125499725, -0.11650820821523666, -0.032398756593465805, 0.027233697474002838, -0.015128212980926037, -0.017480889335274696, -0.01741056516766548, 0.05472471937537193, -0.030239632353186607, 0.01582871563732624, 0.025688325986266136, -0.014629480428993702, 0.021719440817832947, 0.02291673980653286, 0.07162508368492126, 0.014845643192529678, -0.007906552404165268, -0.004122748505324125, -0.008811651729047298, -0.014073314145207405, -0.026989156380295753, -0.05781221017241478, -0.058161038905382156, -0.044751256704330444, -0.0071432264521718025, -0.03501763939857483, -0.023121463134884834, -0.061708565801382065, -0.01210902351886034, 0.10908133536577225, 0.02563987858593464, -0.02272781729698181, 0.01904323138296604, -0.02548821270465851, 0.012032536789774895, -0.0389043353497982, 0.05792389065027237, 0.01674330048263073, 0.029483268037438393, 0.03804484009742737, -0.04799189791083336, 0.045192498713731766, 0.022645002231001854, -0.011427531950175762, 0.0021688363049179316, 0.009476023726165295, -0.06950081139802933, 0.05750512704253197, -0.020313557237386703, 0.01987178437411785, 0.0076590413227677345, 0.005869571585208178, 0.014625493437051773, 0.0072272405959665775, 0.028528500348329544, 0.057243235409259796, 0.013192878104746342, -0.06231144070625305, -0.06777942925691605, -0.3535168468952179, -0.05964477360248566, -0.029844429343938828, -0.023842114955186844, -0.05426231771707535, -0.06310663372278214, 0.02777591533958912, 0.020773746073246002, -0.01244397647678852, -0.007002496160566807, 0.048885419964790344, -0.05666461959481239, 0.001109423697926104, -0.055724430829286575, 0.010800576768815517, 0.06280089169740677, 0.013274431228637695, -0.031976062804460526, -0.022388093173503876, -0.011917264200747013, 0.005919781979173422, -0.012005621567368507, -0.03691856935620308, 0.00625540129840374, 0.015949705615639687, -0.0022496103774756193, 0.10667582601308823, 0.0375034436583519, 0.03618326783180237, -0.06845426559448242, 0.053144387900829315, 0.02204146981239319, 0.01924050971865654, -0.06744981557130814, -0.0022757728584110737, -0.04796016216278076, -0.034090086817741394, 0.0065505243837833405, -0.013896763324737549, 0.011953017674386501, -0.006539419759064913, 0.061581771820783615, -0.02259819209575653, -0.04388522356748581, 0.020095843821763992, 0.013410727493464947, 0.035176895558834076, -0.014734389260411263, -0.019962498918175697, 0.007774520665407181, 0.01637325808405876, 0.022656932473182678, -0.014310530386865139, 0.007570591289550066, 0.02947746217250824, 0.02099856361746788, -0.03498588502407074, -0.0581197589635849, 0.0055323210544884205, -0.001710029668174684, 0.038509268313646317, 0.005395424086600542, 0.006815175525844097, -0.07944159209728241, 0.011894826777279377, 0.026405218988656998, -0.026259075850248337, -0.026224572211503983, 0.03700098395347595, -0.02010767161846161, -0.04671493172645569, 0.06164596602320671, 0.022238653153181076, -0.0043320804834365845, 0.0449524000287056, 0.010406606830656528, 0.005793084390461445, -0.023879215121269226, 0.04675992950797081, -0.010387582704424858, 0.02901417762041092, -0.040415771305561066, 0.06253676861524582, -0.05211050808429718, 0.016461070626974106, 0.08725555986166, 0.0014481210382655263, 0.006241518538445234, 0.08286259323358536, 0.014896911568939686, -0.016874440014362335, 0.016487304121255875, 0.0010268428595736623, -0.02921786718070507, 0.05184495076537132, 0.06078639626502991, -0.2659388482570648, 0.10619009286165237, 0.10763195157051086, 0.057588204741477966, 0.025203198194503784, 0.02118883840739727, 0.021475408226251602, -0.0796971470117569, 0.0012328843586146832, 0.014996286481618881, -0.02196960151195526, 0.039663542062044144, 0.05851810798048973, -0.0017692245310172439, -0.008328466676175594, 0.007827592082321644, 0.04787500947713852, 0.0024097594432532787, 0.02298295870423317, -0.05490078032016754, 0.018448328599333763, -0.040325164794921875, 0.19569967687129974, 0.03566744178533554, -0.032417766749858856, -0.0030555331613868475, -0.015687329694628716, 0.006708421278744936, -0.012393294833600521, 0.05249378830194473, 0.05331747978925705, -0.028023160994052887, 0.07837682962417603, -0.025674810633063316, 0.04801921173930168, 0.0009200531640090048, 0.01241028867661953, -0.002353827003389597, 0.034793976694345474, -0.059476032853126526, -0.02017264813184738, 0.02127780392765999, -0.08692143857479095, 0.014251191169023514, 0.02382291480898857, -0.035743143409490585, -0.030380677431821823, 0.004204265307635069, 0.013218793086707592, 0.005004047881811857, -0.01662946306169033, -0.04500151425600052, -0.03234647214412689, -0.02558201551437378, -0.01630396395921707, 0.01670883595943451, -0.002703626174479723, -0.022901102900505066, -0.0027209166437387466, 0.022282132878899574, -0.027863334864377975, -0.04582275450229645, 0.11487085372209549, 0.03682766854763031, 0.04793166369199753 ]
[ 0.03859792277216911, 0.002472125692293048, 0.0044681779108941555, 0.030315697193145752, 0.02149663120508194, -0.0204563420265913, 0.002336923498660326, 0.012349349446594715, -0.0189934354275465, -0.013759797438979149, -0.005092328414320946, 0.014992084354162216, -0.0011171260848641396, 0.015589418821036816, -0.023028938099741936, -0.05102784186601639, 0.009100548923015594, -0.0034508630633354187, 0.03686920553445816, 0.039054203778505325, -0.03707613795995712, 0.012640110217034817, 0.0380808487534523, -0.010629125870764256, -0.02141600102186203, 0.009878624230623245, -0.05587656795978546, 0.011800493113696575, 0.02014004997909069, -0.10854772478342056, -0.01387517899274826, -0.015427102334797382, 0.024049101397395134, -0.0138875562697649, -0.011246171779930592, 0.035990938544273376, 0.02175077609717846, -0.028690481558442116, -0.03622797876596451, 0.0016340079018846154, 0.044068410992622375, -0.02408544160425663, -0.0012997115263715386, -0.004998528398573399, -0.012963647954165936, -0.04228001460433006, -0.04520275071263313, -0.027306603267788887, -0.014282292686402798, -0.0019238402601331472, -0.0695265680551529, -0.00005494475772138685, -0.0010793217225000262, 0.0008496358059346676, 0.012312527745962143, 0.006356742233037949, -0.03012252226471901, -0.008404850028455257, 0.031055279076099396, 0.005680499132722616, 0.027811018750071526, 0.041205476969480515, -0.007889156229794025, -0.041399549692869186, 0.019522057846188545, -0.030177773907780647, -0.012106318958103657, -0.013703405857086182, 0.007455360610038042, -0.0127585269510746, 0.0113210529088974, -0.0018163088243454695, -0.02981901727616787, -0.04743366315960884, -0.04874198138713837, 0.05316038057208061, 0.01843290403485298, 0.023667970672249794, -0.011501967906951904, 0.0012906052870675921, -0.03603673726320267, -0.019934169948101044, 0.028736021369695663, 0.018381431698799133, -0.018795931711792946, -0.015432024374604225, -0.0013411927502602339, 0.005893855821341276, 0.011261989362537861, -0.02997070550918579, 0.010814296081662178, 0.006009013392031193, -0.022166917100548744, 0.004599589388817549, -0.050850264728069305, -0.012025374919176102, -0.0023801710922271013, 0.003322870470583439, -0.04820321872830391, 0.8374113440513611, -0.011823616921901703, -0.00027713977033272386, 0.02978602983057499, -0.008944704197347164, 0.05643082782626152, -0.0069345212541520596, -0.015361028723418713, 0.0041358936578035355, -0.01809595711529255, -0.023801177740097046, 0.011749225668609142, 0.017272386699914932, 0.017734939232468605, 0.02173686772584915, 0.0255570225417614, 0.028255272656679153, 0.00045768034760840237, -0.017265794798731804, -0.006018818821758032, 0.049619439989328384, 0.04566923901438713, -0.008516311645507812, 0.03494228422641754, 0.002000229200348258, -0.005309985484927893, -0.15886713564395905, -0.02452591434121132, -6.536343684587022e-33, 0.04906710982322693, -0.05107324942946434, -0.007886557839810848, 0.0028682469855993986, 0.03733249753713608, -0.007405516225844622, -0.007520212791860104, -0.0020568897016346455, -0.0036790312733501196, -0.014777651987969875, 0.014405566267669201, -0.021909145638346672, -0.015504032373428345, 0.005808249581605196, 0.01808016374707222, -0.03524819016456604, -0.019010821357369423, 0.02972150407731533, 0.015127335675060749, 0.005793561693280935, 0.030309682711958885, 0.005463492590934038, -0.0264419075101614, -0.002286988776177168, 0.01720449887216091, 0.013512812554836273, -0.00002954081901407335, -0.054593201726675034, 0.0008202454191632569, -0.03694114461541176, 0.0028533278964459896, -0.016362668946385384, 0.0189097560942173, -0.03170207142829895, 0.002862623892724514, -0.07069681584835052, -0.016273949295282364, 0.01892845705151558, -0.07322640717029572, -0.009478422813117504, 0.013360773213207722, -0.029423758387565613, -0.032654207199811935, -0.00555742671713233, -0.022098779678344727, 0.008666183799505234, 0.001188935013487935, 0.03716865926980972, 0.013265792280435562, 0.012369118630886078, 0.02881254255771637, 0.00881868600845337, -0.004419700708240271, 0.007472237106412649, -0.0007457640604116023, 0.008528302423655987, -0.0009030676446855068, 0.017951782792806625, -0.03643559664487839, -0.038995545357465744, -0.025923293083906174, -0.030126215890049934, -0.029564527794718742, 0.05339276045560837, -0.008819051086902618, 0.01772773452103138, 0.00839706789702177, 0.02849769964814186, -0.007466619834303856, 0.02546725980937481, -0.04707551747560501, 0.012861475348472595, -0.002015855861827731, -0.01892186887562275, -0.013615059666335583, -0.041861169040203094, -0.0004752432578243315, 0.008543461561203003, -0.0027313169557601213, 0.03026699274778366, -0.03481631353497505, 0.0400419719517231, -0.014897146262228489, -0.010558193549513817, -0.01362189557403326, -0.004382067359983921, 0.05174260213971138, 0.013132738880813122, -0.007860931567847729, -0.013623757287859917, 0.041625477373600006, 0.09132394194602966, 0.004163368605077267, -0.06900010257959366, -0.02312937006354332, 6.602527689958163e-33, -0.015104393474757671, -0.010199617594480515, -0.025103241205215454, 0.0006054721307009459, 0.0301546361297369, -0.03457829728722572, 0.04697088524699211, 0.0034578496124595404, 0.014901379123330116, -0.00844321958720684, -0.0311946552246809, 0.027563579380512238, -0.015577036887407303, 0.041608698666095734, 0.01658192276954651, 0.01520601473748684, 0.0042522987350821495, -0.0020911195315420628, 0.03985351324081421, -0.000706658698618412, -0.01480922568589449, -0.014622621238231659, 0.023435868322849274, 0.02096063271164894, 0.011356925591826439, 0.045847129076719284, 0.00369498529471457, 0.010501866228878498, -0.03432702645659447, -0.03354322537779808, 0.03256317973136902, 0.001434067846275866, 0.015324156731367111, 0.004190822597593069, -0.008826243691146374, 0.047923240810632706, -0.030076757073402405, -0.007028790190815926, -0.027914175763726234, -0.008755623362958431, 0.034699615091085434, -0.009644676931202412, 0.0057950811460614204, 0.03560692071914673, -0.037285566329956055, -0.03336813673377037, 0.028175530955195427, -0.008489418774843216, -0.00785659160465002, 0.016926992684602737, -0.019900880753993988, 0.006509474944323301, 0.026702094823122025, 0.021262284368276596, 0.00391762237995863, -0.010072545148432255, -0.024499375373125076, 0.02542179636657238, -0.0421525239944458, 0.017609596252441406, 0.0394664891064167, -0.01738905906677246, -0.014063474722206593, 0.027894483879208565, -0.017254533246159554, -0.010096609592437744, -0.028639214113354683, -0.008873355574905872, -0.033259857445955276, -0.0008365285466425121, 0.044054437428712845, 0.002552436199039221, -0.01304397452622652, 0.05551192909479141, 0.0333295539021492, -0.013107247650623322, 0.0050683100707829, 0.006611105985939503, 0.007908475585281849, -0.01583295688033104, 0.001502352301031351, 0.036200474947690964, -0.010437877848744392, -0.035423941910266876, 0.020817793905735016, -0.01421608217060566, -0.04291569069027901, 0.049125611782073975, -0.0014809187268838286, -0.010383103974163532, 0.008388862013816833, -0.03592241182923317, -0.009308720007538795, -0.008788036182522774, 0.034579187631607056, -1.2398428950177731e-8, 0.0147854620590806, -0.003339054062962532, -0.04313010349869728, 0.0347796231508255, 0.030437245965003967, 0.004351483192294836, -0.06726045906543732, -0.007979882881045341, -0.037177152931690216, 0.020256293937563896, 0.04312683641910553, 0.012632901780307293, -0.028006790205836296, 0.03768286108970642, 0.020736083388328552, -0.05003538727760315, 0.01988907717168331, 0.01581953652203083, 0.022330906242132187, -0.029942987486720085, -0.01631002500653267, 0.027719147503376007, 0.02850726991891861, -0.022535618394613266, -0.043987423181533813, -0.004126157611608505, 0.021343842148780823, -0.06075550988316536, 0.002762214746326208, 0.017262466251850128, 0.032178908586502075, -0.014991870149970055, -0.017009207978844643, 0.011275090277194977, -0.03383766487240791, -0.011140704154968262, -0.01334234606474638, 0.0016348942881450057, 0.016844861209392548, 0.012145401909947395, -0.017596084624528885, -0.006811513565480709, -0.007433702237904072, -0.048556577414274216, -0.018863452598452568, 0.0006228432175703347, -0.031902607530355453, 0.04896143823862076, 0.03697147220373154, -0.006342139560729265, -0.02636379562318325, -0.00785129051655531, 0.028960267081856728, 0.008185687474906445, 0.07423311471939087, 0.007555066142231226, 0.03480663523077965, 0.027075137943029404, 0.03285446763038635, 0.012754540890455246, 0.02457820251584053, 0.0395742803812027, -0.01055338978767395, -0.007921799086034298 ]
apache-pinot-which-indexes-are-defined
https://markhneedham.com/blog/2022/01/13/apache-pinot-which-indexes-are-defined
false
2022-01-14 00:44:37
Python: Generate WKT from Lat Long Coordinates
[ "python", "wkt" ]
[ "python" ]
Recently I've been playing around with geometry objects in https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry[WKT format^] while documenting https://docs.pinot.apache.org/basics/indexing/geospatial-support[Apache Pinot's Geospatial functions^]. I then wanted to figure out how to generate a WKT string from a list of lat long coordinates, which we'll learn how to do in this blog post. .Python: Generate WKT from Lat Long Coordinates image::{{<siteurl>}}/uploads/2022/01/wkt-banner.png[] We're going to do all this using Python's https://shapely.readthedocs.io/en/stable/manual.html[Shapely^] library, so let's first install that library: [source, bash] ---- pip install shapely ---- [NOTE] ==== I learnt about the Shapely library from https://gis.stackexchange.com/questions/294206/create-a-polygon-from-coordinates-in-geopandas-with-python[Davma's StackOverflow question^]. ==== Let's say we have a bunch of lat/long coordinates defined like this: [source, python] ---- lat_longs = [ (50.854457, 4.377184), (52.518172, 13.407759), (50.072651, 14.435935), (48.853033, 2.349553), (50.854457, 4.377184) ] ---- We're going to create a polygon based on these coordinates using the following code: [source, python] ---- from shapely.geometry import Polygon polygon = Polygon(lat_longs) ---- And getting a WKT string is as easy as calling the `wkt` property: [source, python] ---- print(polygon.wkt) ---- .Output [source, text] ---- POLYGON ((50.854457 4.377184, 52.518172 13.407759, 50.072651 14.435935, 48.853033 2.349553, 50.854457 4.377184)) ---- And finally, we can plot that polygon on a map using the https://clydedacruz.github.io/openstreetmap-wkt-playground/[OpenStreetMap WKT Playground^]. .Polygon visualisation image::{{<siteurl>}}/uploads/2022/01/wkt-diagram.png[width="500px"]
In this post we'll learn how to convert lat long coordinates to the WKT format.
uploads/2022/01/wkt-banner.png
[ -0.0026503638364374638, -0.03290519863367081, -0.004375457298010588, 0.038666754961013794, 0.06834393739700317, 0.04394419863820076, -0.013122593984007835, 0.040026113390922546, 0.020697586238384247, -0.017787402495741844, -0.04789498448371887, -0.042842064052820206, -0.0538480244576931, 0.017128104344010353, -0.009744148701429367, 0.07331451773643494, 0.06874773651361465, 0.006016261875629425, 0.006774605251848698, 0.007762522902339697, 0.046859413385391235, 0.033472418785095215, 0.007355125620961189, 0.014023330062627792, 0.025051532313227654, 0.012822133488953114, -0.006678680889308453, 0.014552424661815166, -0.040296994149684906, 0.002455931855365634, 0.004991073627024889, 0.006880578119307756, -0.0004940814687870443, -0.01633833721280098, 0.01466590166091919, 0.0016928015975281596, -0.029557744041085243, -0.0022772392258048058, -0.002997922943904996, 0.02868111990392208, -0.03572967275977135, 0.03827953338623047, 0.00617374200373888, 0.04094504192471504, 0.005235123913735151, 0.0024408891331404448, -0.04306212067604065, 0.03739798441529274, -0.015307668596506119, 0.004803953226655722, -0.03950270265340805, 0.04500003904104233, -0.038261380046606064, 0.00668369373306632, -0.027078041806817055, 0.05744123458862305, 0.024294186383485794, -0.07618355751037598, 0.04705747961997986, -0.030919628217816353, -0.0138029083609581, 0.00768378097563982, -0.00033563203760422766, 0.02977214753627777, 0.030929729342460632, -0.004675413016229868, -0.03233102709054947, 0.040067531168460846, -0.049100134521722794, -0.014584656804800034, -0.005420670844614506, 0.020612871274352074, -0.008416312746703625, -0.0010666816961020231, 0.0023515610955655575, -0.022615566849708557, -0.03509272262454033, 0.07877270877361298, 0.016065655276179314, 0.04302434250712395, -0.018133113160729408, -0.019565574824810028, 0.00020701834000647068, 0.010939340107142925, -0.015177760273218155, -0.016027912497520447, -0.04304330796003342, -0.0034518304746598005, -0.05719718709588051, 0.043568387627601624, 0.014899712055921555, -0.04716489464044571, 0.02564055658876896, 0.0004347355861682445, 0.037260618060827255, -0.00039558258140459657, -0.009091597981750965, 0.019734371453523636, 0.015012499876320362, -0.028975946828722954, -0.036770302802324295, -0.0016339253634214401, 0.03455153852701187, 0.030482811853289604, -0.06414537131786346, -0.055690791457891464, -0.04058279097080231, -0.022170713171362877, 0.033057600259780884, 0.016071747988462448, -0.05957065895199776, -0.024076372385025024, 0.0014826684491708875, 0.006458288058638573, -0.04729834571480751, 0.06402816623449326, 0.051622867584228516, -0.038483429700136185, -0.003914384171366692, 0.017115743830800056, 0.03448043018579483, 0.012172193266451359, -0.013051977381110191, 0.06933137774467468, 0.019671466201543808, 0.05354156345129013, -0.02143767848610878, 0.05183003842830658, -0.009269414469599724, -0.06295126676559448, -0.0021936087869107723, 0.05102233216166496, 0.016672901809215546, -0.02840638905763626, 0.031009754166007042, -0.019337253645062447, -0.025025879964232445, -0.00958417821675539, 0.04831261560320854, 0.03391405567526817, -0.027008382603526115, -0.026147574186325073, -0.024557482451200485, 0.0001465440000174567, 0.045724984258413315, 0.05034704878926277, -0.018538249656558037, -0.05221204087138176, -0.04256441816687584, 0.03442401438951492, -0.010352851822972298, 0.001511316280812025, 0.039898842573165894, -0.010793141089379787, -0.007609355263411999, 0.06610921025276184, 0.02269090712070465, 0.04868750274181366, -0.011165523901581764, -0.024325016885995865, 0.06057770922780037, 0.04726613685488701, 0.021059202030301094, 0.051285743713378906, 0.01992933824658394, -0.06519128382205963, 0.017304373905062675, 0.052432768046855927, -0.018922952935099602, 0.003627058118581772, -0.0467485673725605, -0.03076862171292305, 0.06409026682376862, -0.0494174100458622, -0.014673539437353611, 0.0074444846250116825, 0.06631214916706085, 0.015341940335929394, 0.017655111849308014, 0.006583658512681723, -0.07600478827953339, 0.05229947715997696, 0.01649368368089199, -0.0318499431014061, 0.04793214052915573, 0.00979209691286087, 0.09119930118322372, 0.023006640374660492, 0.03740667924284935, 0.0002646718639880419, -0.05594382807612419, -0.0911896824836731, -0.05072023719549179, -0.008080892264842987, 0.06518727540969849, -0.027638673782348633, -0.0035786970984190702, 0.067442387342453, 0.010162916034460068, 0.024122027680277824, -0.017624910920858383, 0.024796267971396446, 0.024137666448950768, -0.049174513667821884, -0.03369048982858658, -0.011447093449532986, 0.03156411647796631, -0.0364360548555851, -0.008231859654188156, 0.007327983621507883, -0.03787572309374809, -0.034285325556993484, 0.03768815100193024, -0.029904138296842575, 0.023623423650860786, 0.04772626608610153, 0.06684397906064987, -0.0022599746007472277, 0.041082315146923065, -0.042189501225948334, 0.028613045811653137, 0.03092334419488907, -0.019186705350875854, -0.05013187974691391, 0.004812280647456646, 0.13327795267105103, 0.059298817068338394, -0.0030840993858873844, -0.05621791630983353, 0.0201813243329525, -0.025083305314183235, -0.02167484536767006, 0.004597765393555164, -0.021267477422952652, -0.01820937544107437, -0.013332492671906948, 0.003392932005226612, -0.03152493014931679, -0.0011843377724289894, -0.0245873611420393, -0.004971487447619438, 0.0832250639796257, -0.02704951912164688, 0.05029342323541641, -0.017606118693947792, -0.0005215239943936467, 0.009907754138112068, -0.019015174359083176, -0.0580604150891304, -0.029932135716080666, 0.012976406142115593, -0.010919316671788692, 0.03728049620985985, -0.015377071686089039, -0.03989068791270256, -0.029432890936732292, -0.07403199374675751, -0.004506286699324846, 0.0526418574154377, 0.026683464646339417, -0.021573754027485847, 0.02795005403459072, -0.010724554769694805, 0.009834393858909607, -0.02869884856045246, -0.04108237102627754, -0.01052892953157425, 0.0028666567523032427, 0.02519536390900612, 0.031486690044403076, 0.05860384181141853, 0.021998580545186996, 0.008458496071398258, -0.041593343019485474, -0.0011609132634475827, 0.014759991317987442, 0.008473488502204418, -0.017894964665174484, -0.04364890977740288, -0.04883038252592087, -0.008943620137870312, 0.07041267305612564, -0.03060528077185154, -0.04299645498394966, 0.010750696994364262, -0.06388214230537415, 0.05422373488545418, -0.06424210220575333, -0.047129370272159576, 0.008585752919316292, 0.008313702419400215, 0.021277209743857384, -0.016873054206371307, -0.007464088033884764, 0.07939033210277557, 0.01969718374311924, -0.0009388758335262537, -0.014508361928164959, -0.007301289588212967, 0.02172659896314144, 0.0043166931718587875, 0.036339156329631805, 0.019741695374250412, -0.00928304810076952, -0.0051079862751066685, -0.0025714579969644547, 0.007486283779144287, -0.010144565254449844, -0.2882028818130493, 0.027292003855109215, -0.01635167934000492, -0.02816898189485073, 0.0052497065626084805, -0.00978583749383688, 0.015527095645666122, -0.03661533445119858, -0.014788372442126274, 0.009382126852869987, -0.02994059957563877, -0.037355467677116394, -0.03883209824562073, 0.03548991307616234, 0.01382738072425127, -0.0000912681280169636, -0.03978446498513222, -0.04201744124293327, -0.0004491103463806212, 0.035553425550460815, 0.006106482353061438, -0.04504837468266487, -0.009990205056965351, 0.052281662821769714, 0.01179411355406046, 0.03946598246693611, -0.05795559287071228, 0.04178602248430252, -0.04788225516676903, -0.014823684468865395, 0.018332606181502342, -0.025623267516493797, 0.02924114651978016, 0.01749049313366413, -0.013685478828847408, -0.023322245106101036, 0.018588939681649208, 0.009433289989829063, 0.026393948122859, 0.02449920028448105, -0.057781826704740524, -0.032391779124736786, 0.0031024375930428505, 0.018883610144257545, 0.09416203945875168, -0.029815644025802612, -0.060325101017951965, 0.004647558089345694, -0.046949028968811035, 0.05719838663935661, 0.009659958072006702, -0.04302406311035156, -0.030558845028281212, 0.01773615926504135, -0.046799931675195694, 0.026764605194330215, -0.01600763201713562, -0.01134191732853651, -0.08943626284599304, -0.03203897178173065, 0.0252243485301733, -0.037090402096509933, -0.022718727588653564, -0.055053263902664185, -0.009279106743633747, -0.04901302233338356, -0.0985666960477829, 0.005418827757239342, 0.019806908443570137, 0.05527324602007866, -0.044450219720602036, 0.031480006873607635, -0.03146374225616455, -0.10844875127077103, 0.002127547049894929, -0.030874667689204216, -0.05223957821726799, -0.01962786354124546, 0.02504025399684906, 0.04797716066241264, -0.05544273555278778, -0.05135411024093628, 0.042862843722105026, 0.04031643643975258, -0.016609342768788338, -0.01930856704711914, -0.010648209601640701, -0.03895092383027077, -0.010708133690059185, -0.012346405535936356, 0.07453075796365738, -0.048280078917741776, -0.003343258984386921, 0.0005741454078815877, -0.036410704255104065, 0.00914108194410801, 0.04140467196702957, -0.007162386551499367, 0.0073586939834058285, 0.03341830521821976, -0.007310108281672001, -0.03268763795495033, 0.0022980854846537113, -0.014058500528335571, -0.007454101927578449, -0.01837749220430851, -0.04653086140751839, 0.033221904188394547, 0.04079147055745125, 0.011057783849537373, 0.002563689835369587, 0.003644289681687951, 0.010104701854288578, -0.04924871399998665, -0.020779957994818687, -0.011953769251704216, 0.03402334824204445, 0.023940347135066986, 0.032852355390787125, -0.061350662261247635, -0.04124806821346283, -0.0032657899428159, 0.024895522743463516, -0.009984430857002735, -0.03224021941423416, -0.028350913897156715, -0.029052769765257835, -0.005752513185143471, -0.002098763594403863, 0.011496889404952526, -0.032955385744571686, 0.029611336067318916, 0.04734419286251068, -0.020362598821520805, 0.022831834852695465, 0.004388024564832449, -0.03438030928373337, -0.052803874015808105, 0.008626448921859264, 0.03365949168801308, 0.010050883516669273, 0.015837494283914566, -0.008743609301745892, 0.0159460436552763, 0.04596139118075371, -0.00486310850828886, 0.015411428175866604, 0.00836057960987091, 0.017344743013381958, 0.013059037737548351, 0.00920211710035801, -0.012138297781348228, 0.004991188645362854, -0.006441751029342413, -0.022502103820443153, -0.009348178282380104, 0.02183729037642479, -0.00621072668582201, -0.005100740119814873, -0.035154104232788086, 0.04175881668925285, -0.03817201778292656, 0.0008012120379135013, -0.007967579178512096, -0.010826583951711655, 0.038266368210315704, -0.006130478344857693, 0.05053681507706642, 0.00854630209505558, 0.014163020998239517, 0.060180578380823135, -0.011713678948581219, -0.012352938763797283, 0.012992782518267632, -0.05972787365317345, -0.011767658405005932, 0.03049624152481556, 0.027801863849163055, 0.0139270955696702, 0.00008379848441109061, 0.0012184010120108724, 0.0006507239886559546, 0.0320504866540432, -0.004011574201285839, 0.042538948357105255, 0.04694238677620888, -0.04645945504307747, 0.011456606909632683, -0.03363541141152382, -0.048302169889211655, -0.04785389453172684, 0.006255786400288343, -0.0523432157933712, 0.045712172985076904, -0.024489080533385277, -0.06221635639667511, 0.032642535865306854, -0.00701290974393487, -0.019277971237897873, 0.03548891842365265, -0.02222735621035099, 0.007824030704796314, -0.03501302748918533, 0.028533533215522766, 0.0987386703491211, -0.04820520058274269, 0.0011835061013698578, -0.01734853908419609, 0.014497397467494011, -0.031412605196237564, 0.022785380482673645, -0.039497315883636475, -0.0009426565957255661, -0.016887987032532692, 0.01865422911942005, -0.023329196497797966, -0.02270250767469406, -0.034128058701753616, -0.0019360458245500922, -0.008613464422523975, 0.019393472000956535, -0.0074155377224087715, -0.03615053370594978, -0.018335122615098953, -0.02850131131708622, 0.07013638317584991, -0.01565924659371376, -0.013629124499857426, 0.050027165561914444, -0.015030937269330025, 0.03513580933213234, -0.019123543053865433, 0.01535610668361187, 0.03774796798825264, -0.01527506671845913, -0.0027651421260088682, -0.045254889875650406, 0.0017229350050911307, 0.0030257736798375845, 0.08947210013866425, 0.002186991972848773, -0.013693735003471375, -0.021534843370318413, 0.02004762925207615, -0.024365603923797607, 0.005950006656348705, -0.016247564926743507, -0.005026891827583313, 0.01716430112719536, 0.035010628402233124, 0.012780241668224335, -0.017686856910586357, 0.0055463919416069984, -0.043231457471847534, 0.03580817952752113, -0.03081652894616127, -0.049096085131168365, -0.017059020698070526, -0.048000335693359375, 0.01521423738449812, -0.0014199671568349004, 0.03753309324383736, -0.05384476110339165, 0.05808393284678459, 0.060898154973983765, 0.005591095890849829, 0.04572020471096039, 0.0035782335326075554, 0.00925080943852663, -0.023685278370976448, -0.022636858746409416, -0.07845225930213928, 0.012791022658348083, 0.007052458357065916, 0.0003371517814230174, -0.07880493253469467, -0.0014635028783231974, -0.03489064797759056, 0.03450941666960716, -0.08705751597881317, -0.026753444224596024, 0.06136583164334297, 0.0027659572660923004, -0.011832723394036293, 0.0027794078923761845, -0.02642517164349556, 0.0063850777223706245, 0.059575993567705154, -0.03648779168725014, -0.029756739735603333, -0.019358443096280098, 0.03482985869050026, -0.01580965891480446, 0.015428432263433933, 0.0018442291766405106, -0.012734302319586277, 0.060474321246147156, 0.006001338362693787, 0.0439748577773571, 0.06371719390153885, -0.023260891437530518, 0.049332935363054276, 0.028165258467197418, -0.033684518188238144, -0.008767351508140564, 0.03874776512384415, -0.003348513040691614, -0.06759641319513321, 0.06544962525367737, 0.03206701949238777, 0.03383628651499748, -0.02825327403843403, 0.06188199296593666, 0.01822659745812416, -0.038405004888772964, -0.04229622706770897, 0.019739948213100433, -0.04923326149582863, -0.0021115033887326717, -0.03256915509700775, -0.023328768089413643, -0.0313708633184433, 0.07712219655513763, 0.0005776822217740119, 0.009461811743676662, 0.05574754253029823, -0.0036277854815125465, -0.030206361785531044, 0.019729597494006157, 0.07990190386772156, 0.06525886803865433, 0.03314967826008797, 0.006962852086871862, 0.05528412386775017, -0.017945807427167892, -0.0344325415790081, -0.02660074643790722, -0.013513470068573952, 0.005817694123834372, -0.009002342820167542, -0.002748823259025812, 0.04683365672826767, -0.018474357202649117, 0.06768721342086792, -0.01611756533384323, 0.004319433122873306, -0.024670951068401337, 0.010081153362989426, 0.03896276280283928, 0.029061781242489815, 0.02111845277249813, 0.06113436818122864, -0.018227215856313705, -0.028540993109345436, 0.019843587651848793, -0.015414831228554249, -0.02337346412241459, 0.012560063973069191, -0.04441315680742264, -0.01028940174728632, 0.00971257220953703, 0.04725414887070656, 0.08502309024333954, -0.03248092159628868, -0.0527811199426651, 0.012609070166945457, 0.05398654565215111, -0.001713127945549786, 0.03545764833688736, -0.01179279014468193, 0.0038753002882003784, 0.00108194793574512, -0.04282056540250778, 0.004055947531014681, -0.03646818548440933, -0.014007693156599998, 0.004538832698017359, -0.0112986508756876, 0.021804852411150932, -0.014946678653359413, -0.02310420572757721, -0.07158602774143219, -0.04243112727999687, -0.02486080676317215, -0.05400000512599945, -0.07681118696928024, -0.005754363723099232, 0.009802465327084064, 0.0030090699438005686, -0.02640899084508419, -0.028422823175787926, -0.018206361681222916, 0.009146506898105145, 0.0037975532468408346, -0.03358679637312889, -0.023629523813724518, 0.025703037157654762, 0.05441852658987045, -0.0024879549164325, 0.0349387489259243, 0.051379479467868805, 0.0011591664515435696, -0.0025892117992043495, -0.026199515908956528, 0.004783984273672104, 0.06759519875049591, 0.0287502221763134, -0.0010976730845868587, -0.07117567956447601, 0.006685399450361729, 0.015222452580928802, 0.0063576772809028625, -0.0626191571354866, -0.012110450305044651, 0.04540228471159935, 0.01111630816012621, 0.02747541479766369, -0.007587556727230549, 0.0023288754746317863, -0.049005720764398575, -0.025003304705023766, -0.007335676811635494, 0.01163372304290533, 0.03667102009057999, -0.03410356864333153, 0.047898340970277786, 0.04365669935941696, -0.007339580915868282, -0.0187931377440691, -0.00517454044893384, 0.008511529304087162, 0.01728958450257778, -0.07575186342000961, -0.02596348337829113, -0.04548986628651619, -0.050089769065380096, -0.019157208502292633, 0.03822814300656319, -0.029734056442975998, -0.033769842237234116, -0.015236366540193558, 0.006342125125229359, -0.019581101834774017, 0.07216888666152954, -0.04479550942778587, 0.023943480104207993, -0.024975553154945374, -0.005860872566699982, -0.0034646575804799795, 0.041159965097904205, -0.0007185919093899429, 0.026149755343794823, 0.0266523826867342, -0.02490563504397869, -0.010432927869260311, -0.034612543880939484, 0.044338684529066086, 0.016410814598202705, -0.02033512480556965, 0.03266918659210205 ]
[ -0.025097103789448738, -0.018634095788002014, 0.007727404125034809, -0.023561721667647362, 0.019703051075339317, -0.042636848986148834, -0.04468487575650215, 0.007662077434360981, -0.04106469452381134, -0.00871293991804123, -0.027737287804484367, -0.09503173828125, -0.006091815419495106, -0.009671892039477825, 0.034929897636175156, -0.0169935654848814, -0.01637308858335018, -0.03754700720310211, -0.048994362354278564, 0.02365989238023758, 0.04499019682407379, -0.0268819909542799, -0.035347484052181244, -0.041878968477249146, 0.030599206686019897, 0.04970683157444, 0.039548441767692566, -0.0073579358868300915, 0.001289646839722991, -0.2224878966808319, 0.005960861220955849, 0.009721972979605198, 0.005371249746531248, -0.01368102990090847, -0.022641824558377266, 0.028878066688776016, 0.022974038496613503, 0.03210000693798065, -0.008512262254953384, 0.06221674010157585, 0.06518532335758209, 0.011876743286848068, -0.024795273318886757, -0.027679093182086945, 0.04539685323834419, 0.0035468614660203457, -0.020276984199881554, -0.022605663165450096, -0.010938586667180061, 0.02644217200577259, -0.04417422413825989, -0.02418755367398262, -0.007481204345822334, -0.020696522668004036, 0.03461451455950737, 0.027756260707974434, 0.002216147957369685, 0.06853345036506653, 0.03808080777525902, -0.005923844408243895, 0.014175362884998322, -0.033304613083601, -0.13922454416751862, 0.11471998691558838, -0.012186837382614613, 0.06767555326223373, 0.0049632214941084385, 0.000978238065727055, 0.00486576184630394, 0.040065307170152664, 0.049893904477357864, -0.01788768358528614, -0.008230757899582386, 0.041456907987594604, 0.017210090532898903, -0.040097676217556, -0.03256294131278992, 0.034691959619522095, 0.03507012128829956, -0.03796890750527382, -0.03581009805202484, 0.06858779489994049, -0.012983180582523346, -0.0014203708851709962, -0.013616461306810379, -0.014997358433902264, -0.04514869675040245, 0.039735060185194016, 0.00035472222953103483, 0.043165117502212524, 0.03434516489505768, -0.03355211764574051, 0.0075724003836512566, 0.011246233247220516, -0.061740145087242126, -0.05828177183866501, 0.0010491810971871018, -0.005617247428745031, -0.001946368720382452, 0.3767261505126953, -0.07877914607524872, -0.018902409821748734, 0.06978925317525864, 0.05582840368151665, 0.0007224936271086335, 0.004492711741477251, -0.05889953300356865, -0.038009777665138245, 0.018953582271933556, -0.011116385459899902, -0.0027698783669620752, 0.0016353343380615115, 0.012579857371747494, -0.038518913090229034, -0.013595725409686565, -0.03171152248978615, -0.008390606380999088, 0.03297343850135803, -0.034745194017887115, 0.003624419681727886, -0.029228881001472473, 0.010194344446063042, 0.005506910849362612, 0.029577961191534996, 0.018198136240243912, 0.04014728590846062, 0.01781586743891239, 0.03998993709683418, 0.0718492791056633, 0.04790950566530228, 0.0179994385689497, -0.03185642138123512, -0.08259908854961395, -0.0066431257873773575, -0.015465376898646355, -0.007757571525871754, 0.05631566420197487, -0.01674346998333931, -0.007295490708202124, -0.005057257600128651, 0.002883145585656166, -0.033134832978248596, 0.04448073357343674, 0.02361961081624031, -0.0043373932130634785, 0.11500104516744614, -0.02935890480875969, -0.01570180058479309, -0.04157792776823044, -0.0034065046347677708, -0.01907622069120407, 0.008724220097064972, -0.0033895475789904594, -0.05853039398789406, 0.002473016269505024, 0.06288683414459229, 0.05927323177456856, -0.009471452794969082, -0.060601964592933655, -0.02485467493534088, -0.025927094742655754, -0.024455096572637558, -0.02080444060266018, 0.014505828730762005, 0.02411067672073841, -0.12755855917930603, -0.019979316741228104, 0.018769340589642525, 0.02237420715391636, -0.07308446615934372, 0.010936591774225235, 0.015038933604955673, -0.016382092610001564, -0.00026240269653499126, 0.06296169757843018, -0.027054812759160995, -0.059486664831638336, 0.004757696762681007, 0.09907399117946625, 0.01858699321746826, -0.026154736056923866, 0.0016144285909831524, -0.011609569191932678, -0.018592240288853645, -0.041290465742349625, -0.10014009475708008, -0.03374219313263893, 0.008244733326137066, -0.0036408391315490007, -0.017164964228868484, 0.03673209995031357, -0.027185186743736267, -0.07428956776857376, 0.04297059029340744, 0.011224843561649323, 0.004649757873266935, 0.016758425161242485, 0.006744795013219118, 0.015445999801158905, -0.02469155192375183, 0.019189761951565742, 0.030098598450422287, -0.025237927213311195, 0.02638198621571064, -0.030201539397239685, 0.02149638906121254, 0.0784836858510971, -0.055005185306072235, 0.04076652601361275, 0.0551135279238224, -0.020298685878515244, -0.006317738443613052, 0.007367180660367012, 0.0034652678295969963, -0.008898922242224216, -0.023238105699419975, -0.016334732994437218, 0.0071117691695690155, -0.02366293966770172, 0.01618356630206108, -0.06299363821744919, -0.07577366381883621, -0.03522161766886711, -0.36315175890922546, -0.03481394052505493, 0.0034838002175092697, 0.0024184780195355415, 0.054383233189582825, -0.07581417262554169, -0.0036184878554195166, 0.018296102061867714, 0.008793056942522526, -0.010107344016432762, 0.11444871872663498, -0.0069730523973703384, 0.0111930500715971, -0.08348774164915085, -0.006063317414373159, 0.0514008067548275, -0.05469778925180435, -0.02680995874106884, 0.0025454775895923376, 0.0026795866433531046, -0.028675103560090065, -0.018037157133221626, -0.07423084229230881, -0.054708659648895264, -0.026456193998456, -0.04500183090567589, 0.1262146532535553, -0.002581073436886072, 0.05529005080461502, -0.08633647114038467, 0.043422725051641464, -0.002381204394623637, 0.003934027627110481, -0.074917733669281, -0.01605304516851902, -0.004648776724934578, 0.010409306734800339, 0.022175993770360947, -0.025483399629592896, -0.04029691964387894, -0.03354186564683914, 0.028149347752332687, -0.028210598975419998, -0.018968062475323677, -0.012598957866430283, 0.04963647201657295, -0.035513922572135925, 0.004258257336914539, 0.019730422645807266, 0.06006089970469475, 0.01745121367275715, 0.04214269667863846, 0.04605812951922417, 0.015264979563653469, -0.0021645701490342617, -0.03125195950269699, -0.07192644476890564, -0.007368573918938637, 0.004158481489866972, 0.026058979332447052, 0.016286728903651237, 0.02198307402431965, 0.06016135215759277, -0.047246310859918594, -0.01572069525718689, 0.056815262883901596, 0.014072339981794357, -0.012351528741419315, 0.06268254667520523, -0.021878518164157867, -0.01816060207784176, 0.10641033947467804, 0.008270742371678352, 0.004783594980835915, 0.07501434534788132, 0.034383375197649, 0.01753716729581356, 0.059197984635829926, 0.0545780323445797, -0.01764770969748497, 0.046826910227537155, -0.00042066717287525535, 0.04229281470179558, -0.029050108045339584, -0.0026739896275103092, 0.024246620014309883, 0.007468631491065025, 0.01859157718718052, 0.04030083864927292, 0.019758546724915504, -0.023574549704790115, 0.005035714246332645, 0.016036326065659523, -0.0608241893351078, 0.04569225013256073, -0.009853677824139595, -0.28626883029937744, 0.03337422013282776, 0.0630471482872963, 0.05226752161979675, -0.01910143531858921, -0.014227133244276047, 0.025205068290233612, -0.02425963059067726, 0.004851084202528, -0.018959110602736473, -0.0007845360669307411, 0.04005953669548035, -0.016106387600302696, -0.041230011731386185, 0.022925112396478653, -0.009393569082021713, 0.05275159701704979, 0.0243622288107872, 0.030064811930060387, 0.00434991717338562, 0.004689435940235853, 0.0023709817323833704, 0.1859849989414215, 0.04247838631272316, 0.021815096959471703, -0.02531665563583374, 0.0016473353607580066, -0.01259014755487442, 0.07112879306077957, 0.01936192438006401, 0.0017280718311667442, 0.0016482637729495764, 0.029400741681456566, 0.0027516598347574472, 0.018369000405073166, -0.014197684824466705, -0.028530290350317955, 0.03730607405304909, 0.01943347044289112, -0.030380411073565483, 0.011426245793700218, 0.013268837705254555, -0.03635480999946594, 0.025129569694399834, 0.07975047081708908, 0.029543213546276093, 0.014687415212392807, -0.02021552249789238, -0.023937152698636055, -0.0146091990172863, -0.011205576360225677, -0.034922100603580475, -0.033988043665885925, -0.013731643557548523, -0.03708934411406517, 0.05506172031164169, 0.042856574058532715, -0.051310520619153976, 0.004890150390565395, 0.03869162127375603, 0.014667936600744724, -0.08957962691783905, 0.08995374292135239, -0.018442153930664062, 0.034078944474458694 ]
[ 0.004484472330659628, 0.052590664476156235, -0.023221852257847786, 0.004122413694858551, -0.009632151573896408, -0.044921718537807465, -0.016919681802392006, 0.01115815993398428, -0.021891500800848007, -0.02188856340944767, -0.010245434939861298, 0.04863028600811958, -0.015312347561120987, -0.013872561044991016, 0.018438853323459625, -0.005422252230346203, -0.021389853209257126, -0.006527089513838291, 0.03277241811156273, 0.0006358075770549476, -0.03384146839380264, 0.019820882007479668, 0.0498708039522171, 0.033958375453948975, 0.010525375604629517, 0.018246931955218315, 0.008598578162491322, -0.005403493531048298, 0.008418599143624306, -0.10838701575994492, -0.023453252390027046, -0.02360546961426735, -0.016056979075074196, -0.02768457680940628, -0.024436205625534058, 0.02526397630572319, -0.0035891372244805098, -0.036928895860910416, 0.008444255217909813, 0.029328249394893646, 0.03193281218409538, -0.022487249225378036, -0.00010202664270764217, 0.02849833481013775, -0.022326383739709854, 0.007270693778991699, -0.038051895797252655, -0.009299719706177711, -0.011209764517843723, 0.0006919949082657695, -0.026445085182785988, -0.031345658004283905, -0.03704361245036125, 0.005057740490883589, 0.026930280029773712, -0.009476376697421074, -0.020246682688593864, 0.03786856681108475, 0.02568882517516613, -0.049849748611450195, -0.021080253645777702, 0.02597562037408352, -0.00005472958946484141, -0.01759641058743, -0.010874470695853233, -0.05678480863571167, -0.0029359261970967054, 0.010092809796333313, -0.0006891509983688593, -0.0028816096018999815, -0.03767521679401398, 0.04992641881108284, -0.05557510256767273, -0.006520713679492474, 0.021243024617433548, -0.03795681893825531, 0.00007620977703481913, -0.023239070549607277, -0.01679941825568676, -0.007332435343414545, 0.00478617288172245, 0.010579383932054043, 0.039627041667699814, 0.02524947188794613, -0.02417793869972229, -0.029068009927868843, -0.03876497969031334, 0.05524764955043793, -0.0036782901734113693, 0.006589050404727459, 0.010435322299599648, -0.027753788977861404, -0.011975301429629326, 0.00839712843298912, -0.08192241191864014, 0.0016600748058408499, 0.017888665199279785, 0.002505020471289754, -0.05825237184762955, 0.8223637938499451, 0.006951866205781698, -0.020962925627827644, -0.0029064305126667023, 0.0065926783718168736, 0.03754286468029022, 0.020471012219786644, -0.0023296428844332695, -0.024178871884942055, 0.022632524371147156, -0.052950602024793625, -0.020270738750696182, 0.002356232376769185, 0.0067388336174190044, 0.008488542400300503, 0.003516669385135174, 0.01450959499925375, -0.015891926363110542, 0.026595113798975945, 0.02376815676689148, -0.012596571817994118, -0.01507785078138113, -0.017668260261416435, -0.010256134904921055, -0.008687355555593967, -0.030155060812830925, -0.15053097903728485, -0.005660487338900566, -6.813596516855936e-33, 0.05712762102484703, -0.03619587793946266, 0.042012769728899, 0.00716017559170723, 0.0031671065371483564, 0.004161100368946791, 0.0013618231751024723, -0.02987726218998432, -0.003206768073141575, -0.04392094537615776, -0.013377124443650246, -0.021048512309789658, -0.024312948808073997, 0.005660170689225197, 0.05504468455910683, -0.0003363823052495718, -0.0012946960050612688, 0.06175989657640457, -0.04290222004055977, 0.05580631643533707, 0.026922540739178658, -0.00887847039848566, -0.029069645330309868, -0.018504392355680466, 0.00466251652687788, 0.018568819388747215, -0.027772825211286545, 0.04885261505842209, -0.06748708337545395, -0.040459323674440384, -0.05172223597764969, -0.021171297878026962, 0.009598885662853718, -0.007840191014111042, 0.02286769077181816, -0.07411257922649384, -0.0299368966370821, -0.023698341101408005, -0.03094242326915264, -0.04645739868283272, -0.009677368216216564, -0.02944815717637539, -0.021375201642513275, 0.017467506229877472, -0.015199437737464905, 0.031332578510046005, -0.020323878154158592, 0.07017023861408234, 0.0015722677344456315, 0.060084644705057144, 0.006634989287704229, 0.0738455206155777, -0.028270049020648003, 0.0008432900649495423, -0.014317956753075123, 0.010023366659879684, 0.01600794307887554, -0.0011180280707776546, -0.022786656394600868, 0.017145639285445213, 0.001086984877474606, 0.010403143242001534, 0.010440094396471977, 0.012878559529781342, 0.007204605732113123, -0.0052466485649347305, 0.02736593596637249, 0.015816902741789818, -0.0051610395312309265, 0.003445886541157961, -0.04623383283615112, 0.014216023497283459, -0.021766023710370064, -0.01558094285428524, -0.014001648873090744, -0.0665685161948204, 0.02219460718333721, 0.0008804267854429781, -0.018342597410082817, 0.05029892176389694, 0.022857313975691795, -0.025127561762928963, 0.022419912740588188, -0.055009547621011734, -0.01558147743344307, 0.0032620453275740147, 0.05541519448161125, -0.03315609320998192, 0.0008571744547225535, 0.026407968252897263, 0.026223836466670036, 0.02112622559070587, -0.00389205408282578, -0.014478135854005814, -0.026777582243084908, 7.257071597170814e-33, 0.017687007784843445, -0.03483395650982857, -0.022957012057304382, -0.013310844078660011, -0.02093961462378502, -0.007043665274977684, 0.020786967128515244, 0.026168547570705414, -0.04535578191280365, 0.005155639722943306, -0.02545768953859806, -0.004473178647458553, -0.018514441326260567, 0.023953454568982124, 0.08747880905866623, 0.02922576107084751, -0.010279304347932339, 0.007983017712831497, -0.007771423552185297, -0.04362719878554344, -0.0016865459037944674, 0.00017209933139383793, 0.014383155852556229, 0.0032829646952450275, -0.004481293261051178, 0.017555028200149536, -0.0031987375114113092, 0.008718274533748627, -0.029136069118976593, 0.011289535090327263, -0.007279424462467432, -0.030390603467822075, 0.007042656186968088, 0.018400920554995537, -0.022036133334040642, 0.007928326725959778, 0.003046269528567791, -0.009565253742039204, 0.03447389975190163, -0.014518995769321918, 0.05780555307865143, 0.015253799967467785, 0.010270456783473492, 0.0462074838578701, -0.032280970364809036, -0.008866433054208755, -0.006580135319381952, 0.0069666095077991486, -0.006252961233258247, 0.03044002689421177, -0.0229418333619833, 0.05203790217638016, 0.038006722927093506, 0.04186209663748741, 0.023931100964546204, -0.017138108611106873, -0.05687018856406212, 0.04087485000491142, -0.02105719968676567, -0.03481617569923401, -0.04254758730530739, -0.027095258235931396, 0.014134089462459087, 0.06755635887384415, -0.00019467741367407143, 0.0017918006051331758, -0.017926912754774094, -0.02856392040848732, 0.019520355388522148, -0.010742763988673687, 0.021716957911849022, -0.013245312497019768, -0.023532303050160408, 0.05311915650963783, 0.007885362952947617, 0.0069463360123336315, -0.024266216903924942, 0.022457744926214218, -0.043255094438791275, 0.00891244038939476, 0.03297145664691925, -0.0016960827633738518, 0.029554516077041626, -0.008928321301937103, 0.010355246253311634, -0.041325487196445465, -0.016021283343434334, 0.03322222828865051, 0.0012062654132023454, -0.0075301518663764, 0.00578022375702858, 0.016025448217988014, 0.0010162009857594967, 0.03751256689429283, 0.05881788209080696, -1.2567261009621689e-8, -0.06604951620101929, 0.025083819404244423, -0.017760207876563072, 0.024200771003961563, -0.00990451779216528, 0.04665245860815048, -0.008228549733757973, -0.009806687943637371, -0.022675884887576103, 0.01707342639565468, -0.00020579514966811985, -0.031137855723500252, 0.008101333864033222, 0.00727420998737216, 0.02570071630179882, -0.002995688235387206, -0.006590675562620163, 0.010238504968583584, 0.024403588846325874, 0.018429430201649666, 0.014358616434037685, 0.031713202595710754, 0.00804299395531416, 0.020264308899641037, -0.0288966316729784, 0.046014223247766495, 0.05266609415411949, -0.03174619376659393, 0.029810136184096336, -0.012385690584778786, 0.007760343607515097, -0.03918887674808502, -0.04808361083269119, 0.04573560506105423, -0.02189026027917862, -0.017109422013163567, -0.03232088312506676, 0.025478212162852287, -0.009479202330112457, 0.04188070818781853, -0.04765348881483078, 0.014177635312080383, -0.009974570944905281, -0.01469934731721878, 0.013885056599974632, 0.008372869342565536, -0.009460455738008022, 0.029534952715039253, 0.01458340510725975, -0.002550181932747364, 0.038204606622457504, -0.001593006425537169, 0.02403750829398632, -0.0048376889899373055, 0.04299553856253624, 0.030515804886817932, 0.014393698424100876, 0.038696303963661194, -0.007814808748662472, 0.019176434725522995, 0.003326461184769869, 0.03464622423052788, -0.011832320131361485, -0.003919653594493866 ]
python-generate-wkt-lat-long-coordinates
https://markhneedham.com/blog/2022/01/14/python-generate-wkt-lat-long-coordinates
false
2022-01-22 02:44:37
Kafka: Writing data to a topic from the command line
[ "kafka" ]
[ "kafka" ]
I've been doing more Apache Pinot documentation - this time covering the https://docs.pinot.apache.org/users/user-guide-query/supported-transformations#json-functions[JSON functions^] - and I needed to quickly write some data into Kafka to test things out. I'd normally do that using the https://www.markhneedham.com/blog/2022/01/20/apache-pinot-sorted-indexes-realtime-tables/[Python Kafka client^], but this time I wanted to do it using only command line tools. So that's what we'll be doing in this blog post and it's more for future me than anyone else! .Kafka: Writing data to a topic from the command line image::{{<siteurl>}}/uploads/2022/01/kafka-banner.png[] == Setup Let's start by spinning up Kafka using Docker compose: .docker-compose.yml [source, yaml] ---- version: '3.7' services: zookeeper: image: zookeeper:3.5.6 hostname: zookeeper container_name: zookeeper-blog ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 kafka: image: wurstmeister/kafka:latest restart: unless-stopped container_name: "kafka-blog" ports: - "9092:9092" expose: - "9093" depends_on: - zookeeper environment: KAFKA_ZOOKEEPER_CONNECT: zookeeper-blog:2181/kafka KAFKA_BROKER_ID: 0 KAFKA_ADVERTISED_HOST_NAME: kafka-blog KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-blog:9093,OUTSIDE://localhost:9092 KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT ---- We can spin up that container by running the following command: [source, bash] ---- docker-compose up ---- == Write messages Now it's time to import some data using the `kafka-console-producer.sh` script. If we want to ingest a single message to the `docs` topic, we can run the following: [source, bash] ---- echo '{"timestamp": "2019-10-09 21:25:25", "meta": {"age": 12}}' | docker exec -i kafka-blog /opt/kafka/bin/kafka-console-producer.sh \ --bootstrap-server localhost:9092 \ --topic docs ---- But what about if we have a file full of documents, as shown in the file below: .documents.json [source, json] ---- include::content/2022/01/22/data/documents.json[] ---- We can pipe those into `kafka-console-producer.sh` like this: [source, bash] ---- docker exec -i kafka-blog /opt/kafka/bin/kafka-console-producer.sh \ --bootstrap-server localhost:9092 \ --topic docs \ < documents.json ---- == Read messages So far, so good. We haven't go any errors, but let's double check that our messages have made it into Kafka. We can check the offsets (which in this case indicates the number of documents ingested) for the `docs` topic by running the following command: [source, bash] ---- docker exec -it kafka-blog kafka-run-class.sh kafka.tools.GetOffsetShell \ --broker-list localhost:9092 \ --topic docs ---- .Output [source, text] ---- docs:0:4 ---- The output indicates that partition `0` of the `docs` topic has an offset of 4, which means this partition of the topic contains 4 documents. We imported one message on its own and three from `documents.json`, so that's what we'd expect. We can return a maximum of 4 messages (i.e. all of them) from the `docs` topic, like so: [source, bash] ---- docker exec -i kafka-blog /opt/kafka/bin/kafka-console-consumer.sh \ --bootstrap-server localhost:9092 \ --topic docs \ --from-beginning \ --max-messages 4 ---- .Output [source, text] ---- {"timestamp": "2019-10-09 21:25:25", "meta": {"age": 12}} {"timestamp": "2019-10-09 22:25:25", "meta": {"age": 18}} {"timestamp": "2019-10-09 23:25:25", "meta": {"age": 14}} {"timestamp": "2019-10-09 23:40:25", "meta": {"age": 16}} Processed a total of 4 messages ----
In this post we'll learn how to write data to a Kafka topic from the command line.
uploads/2022/01/kafka-banner.png
[ -0.002487632678821683, -0.01815888285636902, -0.014779835939407349, 0.03855578228831291, 0.08124200999736786, -0.007971443235874176, 0.017557652667164803, 0.07302024215459824, -0.002913373289629817, -0.008991023525595665, -0.002500319154933095, -0.01748702861368656, -0.05493350327014923, 0.015472490340471268, 0.011051070876419544, 0.051701728254556656, 0.0738895907998085, -0.011527540162205696, 0.042347390204668045, -0.006011738907545805, 0.03539884835481644, 0.03373851999640465, 0.009126408025622368, 0.04946516081690788, 0.009531975723803043, 0.004175483714789152, -0.005018330179154873, 0.012498675845563412, -0.04024208337068558, -0.015781106427311897, 0.020037667825818062, 0.00406218133866787, 0.007119475398212671, -0.00672090845182538, 0.0005652357940562069, -0.00649510370567441, -0.027679653838276863, 0.005034409463405609, 0.0064325276762247086, 0.03402423486113548, -0.08888339251279831, 0.034549321979284286, 0.015422076918184757, 0.018727120012044907, -0.018733208999037743, 0.025271326303482056, -0.03288102522492409, 0.017055701464414597, 0.01992826908826828, 0.01164096500724554, -0.08802391588687897, 0.018048936501145363, -0.02642076089978218, 0.028769752010703087, 0.010986301116645336, 0.04461593180894852, 0.0007430780678987503, -0.07305534929037094, 0.021652469411492348, -0.011243176646530628, -0.03232068195939064, -0.006744695361703634, 0.018572896718978882, 0.015132654458284378, -0.0018488661153241992, -0.021543582901358604, -0.013390653766691685, 0.044331278651952744, -0.0175408236682415, -0.014799141325056553, 0.016150876879692078, 0.007497749291360378, -0.0028046444058418274, -0.022051142528653145, 0.02584158256649971, -0.036149416118860245, -0.007200276013463736, 0.05239330977201462, 0.011506709270179272, 0.05574996396899223, -0.014087773859500885, -0.011737266555428505, -0.013167759403586388, 0.021552279591560364, 0.0014898371882736683, -0.04646508768200874, -0.04069532826542854, -0.007669016253203154, -0.05561190843582153, 0.0796867161989212, 0.004216076340526342, -0.04665866121649742, 0.011180946603417397, -0.005615502595901489, -0.008834962733089924, 0.02634919248521328, 0.010099335573613644, 0.01340953167527914, 0.013989313505589962, 0.0008109136251732707, -0.04120061546564102, 0.019023170694708824, 0.0010961921652778983, 0.05200750753283501, -0.0652361810207367, -0.06217825412750244, -0.049851443618535995, -0.024340899661183357, -0.0033170469105243683, 0.0392112098634243, -0.005517756566405296, 0.004239953123033047, -0.01811317540705204, 0.006139570847153664, -0.06979764252901077, 0.0835140272974968, 0.015490168705582619, -0.0628889873623848, 0.034587886184453964, 0.02133631892502308, 0.05339396372437477, 0.03201884776353836, -0.00446938443928957, 0.06780707836151123, -0.019553808495402336, 0.006789652165025473, -0.009705204516649246, 0.04056078568100929, -0.016658680513501167, -0.06050439178943634, -0.02772454544901848, 0.058805596083402634, 0.017467711120843887, 0.00801805593073368, -0.003095559775829315, -0.024873698130249977, -0.0034816379193216562, 0.01665819063782692, 0.06092933192849159, 0.03463191166520119, -0.01747686229646206, -0.03457298502326012, 0.004275194834917784, 0.007780908606946468, 0.04676823690533638, 0.00988711602985859, -0.0029153083451092243, -0.044244688004255295, -0.028303803876042366, 0.017780091613531113, 0.00023160528508014977, 0.03292455896735191, 0.059003062546253204, -0.029517393559217453, 0.016942540183663368, 0.05146407335996628, 0.026609279215335846, 0.022389696910977364, -0.012527418322861195, -0.0013668584870174527, 0.05139156058430672, 0.032919034361839294, 0.023717544972896576, 0.024461237713694572, 0.006702391430735588, -0.04409261792898178, -0.015375259332358837, 0.0535808764398098, 0.00013989860599394888, -0.009247422218322754, -0.03912859410047531, -0.035648297518491745, 0.06199151277542114, -0.035071391612291336, 0.024485137313604355, 0.029007181525230408, 0.08045035600662231, 0.014804810285568237, 0.0443357452750206, 0.022804606705904007, -0.06013701111078262, 0.07315247505903244, 0.027487486600875854, 0.00101165019441396, 0.006158944685012102, -0.018617868423461914, 0.056889768689870834, 0.020529378205537796, 0.035413406789302826, 0.01031479611992836, -0.067051462829113, -0.0604383759200573, -0.022984012961387634, 0.014295895583927631, 0.06747207045555115, -0.02962423674762249, 0.0002682381891645491, 0.07273642718791962, 0.025176718831062317, 0.016969606280326843, -0.002985097235068679, 0.034429315477609634, 0.013570941984653473, -0.09478069841861725, -0.07739236205816269, 0.04034557193517685, 0.01923418417572975, -0.046315182000398636, -0.03648870065808296, 0.0020755091682076454, -0.0752154290676117, -0.0009817314567044377, 0.05986925959587097, -0.03192766755819321, 0.07483980059623718, 0.02508259192109108, 0.045948147773742676, -0.019130632281303406, 0.054179493337869644, -0.04435523599386215, 0.04277007654309273, 0.00775853032246232, -0.016075164079666138, 0.006420679856091738, -0.006976998411118984, 0.11048922687768936, 0.06873895227909088, -0.01408950425684452, -0.048106178641319275, 0.048008959740400314, 0.0078039998188614845, -0.031226836144924164, -0.0037478823214769363, -0.008485253900289536, -0.0029574569780379534, -0.01583552174270153, -0.027945896610617638, -0.014397026970982552, -0.004178442060947418, -0.01047731563448906, 0.029227135702967644, 0.07878100126981735, -0.02813653089106083, 0.07459201663732529, 0.018687205389142036, 0.0016989707946777344, 0.004177440889179707, -0.04305515065789223, -0.08200638741254807, -0.004200093913823366, -0.013093935325741768, -0.009390893392264843, 0.06225130707025528, -0.04525067284703255, -0.05931831896305084, -0.04262587055563927, -0.0540059432387352, 0.037043243646621704, 0.025524577125906944, 0.04757501557469368, -0.013368654996156693, 0.043407849967479706, -0.04295264184474945, 0.012407767586410046, -0.020691877231001854, -0.04632530361413956, -0.005700094625353813, 0.0138426274061203, 0.008325758390128613, 0.019690733402967453, 0.004421500023454428, 0.005806104280054569, 0.03945077210664749, 0.013109896332025528, 0.012107404880225658, -0.0010804807534441352, 0.01801096647977829, 0.0035903288517147303, 0.013161472976207733, -0.008618618361651897, -0.033505283296108246, 0.042384810745716095, -0.05329032242298126, -0.005628830753266811, 0.017607418820261955, -0.07578360289335251, 0.02845618687570095, -0.06859393417835236, -0.03416501730680466, -0.021861013025045395, 0.035075146704912186, 0.027285682037472725, 0.027431270107626915, -0.004161202814429998, 0.049179792404174805, 0.00937942136079073, -0.021407941356301308, 0.006490375380963087, -0.020665083080530167, 0.05158771947026253, -0.01976924203336239, 0.022967057302594185, 0.060338255017995834, 0.007460691966116428, -0.019826846197247505, -0.02997073531150818, 0.01642485149204731, -0.03581259027123451, -0.27943676710128784, 0.05345156788825989, -0.005954256746917963, -0.02716739848256111, 0.00394577719271183, 0.004796826280653477, 0.006614496931433678, -0.05158263444900513, 0.0017093633068725467, -0.0014387950068339705, -0.03227462247014046, -0.0067572034895420074, -0.02472207322716713, 0.041151102632284164, -0.003590785898268223, 0.02571115270256996, -0.022631019353866577, -0.049734488129615784, 0.0009430929785594344, -0.018748214468359947, -0.008518890477716923, -0.056646861135959625, -0.021396683529019356, 0.030468281358480453, 0.03374730795621872, 0.006805846933275461, -0.07608836889266968, 0.06925354897975922, -0.03516184166073799, 0.00031132594449445605, -0.010979746468365192, -0.029723862186074257, -0.002636474324390292, -0.0023382941726595163, -0.0038240354042500257, -0.00018212331633549184, 0.01437905803322792, 0.010082734748721123, 0.010926059447228909, 0.0051232920959591866, -0.02094442956149578, -0.05773962289094925, -0.023708054795861244, -0.002096434822306037, 0.08574625104665756, 0.0019285129383206367, -0.08270253241062164, 0.011917853727936745, -0.01985074020922184, 0.07187611609697342, -0.027698397636413574, -0.07463959604501724, -0.011267498135566711, 0.019181758165359497, -0.030043205246329308, -0.002210236620157957, 0.0036125825718045235, -0.00040880939923226833, -0.02558710239827633, -0.03601319342851639, 0.009269175119698048, -0.036592692136764526, -0.010780999436974525, -0.07176388800144196, -0.028360895812511444, -0.05180716887116432, -0.06595595926046371, 0.014893624931573868, 0.07910121232271194, 0.04032943770289421, -0.06746397167444229, 0.01383118238300085, -0.01933455467224121, -0.11697278171777725, -0.009022756479680538, -0.04370521008968353, -0.06786093860864639, -0.008419159799814224, -0.02748839370906353, 0.06534517556428909, -0.028039582073688507, -0.0299395602196455, 0.0040077148005366325, 0.003865444101393223, 0.020323757082223892, -0.037140391767024994, 0.018345793709158897, -0.036921173334121704, -0.009434626437723637, -0.005484222434461117, 0.0445772148668766, -0.031741801649332047, -0.017056213691830635, -0.028712496161460876, -0.014152626506984234, 0.04985587298870087, 0.01670079305768013, 0.010293738916516304, -0.012120025232434273, 0.059284958988428116, 0.04041386768221855, -0.04757930710911751, 0.0017126762541010976, -0.043111179023981094, -0.0034848791547119617, 0.0016373870894312859, -0.06222520023584366, 0.01350434310734272, 0.0181269533932209, 0.03802751377224922, 0.0032456086482852697, -0.05602380633354187, 0.013403532095253468, -0.06381938606500626, -0.02406460791826248, 0.012359636835753918, 0.03585321083664894, 0.03849368914961815, -0.008494080044329166, -0.014817798510193825, -0.04986350238323212, 0.02256559394299984, 0.011704257689416409, -0.025434833019971848, -0.02763323485851288, -0.04369913786649704, 0.011043890379369259, -0.02302774228155613, 0.013241657055914402, 0.021992865949869156, -0.01306006871163845, 0.023670658469200134, 0.04364309459924698, -0.01348201185464859, 0.026610933244228363, -0.019691763445734978, -0.026769451797008514, -0.038522787392139435, 0.03042694926261902, 0.026662014424800873, -0.02184966765344143, -0.0050505963154137135, -0.010428973473608494, 0.02110900916159153, 0.02525518648326397, 0.02314908243715763, 0.017983058467507362, -0.006944071501493454, 0.011591963469982147, 0.02038685791194439, 0.01688546873629093, -0.01601998694241047, -0.009635604918003082, -0.012418529950082302, -0.030264809727668762, -0.02316363714635372, 0.032403577119112015, -0.006022902205586433, -0.01309330016374588, -0.028232187032699585, 0.015967756509780884, -0.08228858560323715, -0.010181436315178871, -0.006857315544039011, -0.003280679462477565, 0.04030106961727142, -0.0007567547727376223, 0.0218252744525671, 0.008787724189460278, -0.02040240354835987, -0.010350469499826431, 0.007646640762686729, -0.016094183549284935, 0.022814255207777023, -0.0011659518349915743, -0.005605485290288925, 0.006647403351962566, 0.03659166768193245, 0.029048729687929153, -0.0008741269703023136, 0.013094465248286724, -0.006837330758571625, 0.035932302474975586, -0.00421174056828022, 0.043088607490062714, 0.0389178991317749, -0.027056515216827393, 0.0004443769867066294, -0.002960814395919442, -0.012536912225186825, -0.006877759005874395, 0.027206970378756523, -0.010184681043028831, 0.025089215487241745, -0.0030673553701490164, -0.06166074797511101, 0.059976473450660706, 0.012496485374867916, -0.0008541251881979406, 0.013146832585334778, -0.0041019064374268055, 0.01434267871081829, -0.05962469056248665, 0.054458748549222946, 0.08569043129682541, -0.031040653586387634, 0.017201537266373634, -0.01656241901218891, 0.015213575214147568, -0.0061693680472671986, 0.02688484638929367, -0.06195775046944618, -0.009874511510133743, -0.0010342521127313375, -0.00019615179917309433, -0.050320252776145935, -0.041634202003479004, -0.024883484467864037, -0.004276615101844072, 0.04015730693936348, 0.014968303963541985, -0.003993134945631027, -0.005183283239603043, -0.03026137687265873, -0.059935908764600754, 0.058945827186107635, 0.010549360886216164, 0.01916937716305256, -0.008002211339771748, -0.025961073115468025, 0.034203339368104935, -0.039045583456754684, 0.02919229492545128, 0.0014831391163170338, -0.04019690677523613, 0.003097101580351591, -0.04291079565882683, 0.007836440578103065, -0.015570124611258507, 0.0889153853058815, 0.007817191071808338, 0.004856622777879238, -0.051713790744543076, 0.0020705051720142365, -0.03879387676715851, -0.02004108764231205, -0.005950868129730225, 0.011660859920084476, 0.04205399006605148, 0.027492504566907883, -0.010470765642821789, -0.003221134888008237, 0.002263288479298353, -0.04069799929857254, 0.04175262898206711, -0.0555596686899662, -0.031855031847953796, 0.010102353058755398, -0.06381405889987946, 0.02137392945587635, 0.026236264035105705, 0.03409862145781517, -0.05863821879029274, 0.05527900904417038, 0.04024052247405052, 0.0026922260876744986, 0.01906401850283146, -0.01290927268564701, 0.025573303923010826, -0.017740430310368538, 0.002767641097307205, -0.06513034552335739, -0.009890246205031872, 0.052563607692718506, -0.0024954357650130987, -0.0008723126375116408, -0.01897931471467018, -0.06693241745233536, 0.032693490386009216, -0.07012853026390076, -0.02875194512307644, 0.04445923864841461, -0.02709583379328251, -0.001557023380883038, -0.0004659430996980518, -0.0266246534883976, 0.031889621168375015, 0.02238491363823414, -0.04211358353495598, -0.021080732345581055, 0.008989590220153332, 0.0429205447435379, 0.0020859402138739824, 0.04295486956834793, -0.0025299489498138428, -0.047013502568006516, 0.08569716662168503, 0.013835975900292397, 0.012469546869397163, 0.06169954314827919, -0.01753014698624611, 0.03256822004914284, 0.026223650202155113, -0.0021868711337447166, 0.042568083852529526, 0.019728343933820724, -0.055805057287216187, -0.06145840883255005, 0.023380693048238754, 0.006616254802793264, 0.0019776111003011465, -0.03466155380010605, 0.06607669591903687, 0.007472583558410406, -0.04114139452576637, -0.05983949452638626, 0.02053546905517578, -0.04000503569841385, -0.025504298508167267, -0.0211844053119421, 0.05200471356511116, -0.07528239488601685, 0.039039283990859985, -0.0065726968459784985, 0.005364911165088415, 0.06902176141738892, -0.0037393856327980757, 0.0048221261240541935, 0.01622474007308483, 0.06215216964483261, 0.07252927869558334, 0.031171347945928574, -0.00946871004998684, 0.05927296355366707, -0.02134992554783821, -0.028191881254315376, -0.03222024440765381, 0.002125002443790436, -0.0457756370306015, -0.0159770417958498, 0.016090067103505135, 0.05041499808430672, -0.03237307444214821, 0.08363306522369385, -0.000326394074363634, -0.009621097706258297, -0.015315685421228409, 0.013098093681037426, 0.00955343060195446, 0.03074486181139946, -0.007846862077713013, 0.043971896171569824, 0.01371676940470934, -0.053459055721759796, 0.000929727335460484, 0.004260657355189323, -0.043167997151613235, 0.027233436703681946, -0.04300184175372124, 0.027319079264998436, 0.027812477201223373, 0.014292187988758087, 0.06745359301567078, -0.023300638422369957, -0.00630459887906909, 0.013510307297110558, 0.023601502180099487, -0.014894145540893078, -0.006598221603780985, -0.036951694637537, -0.021781975403428078, -0.02696964144706726, -0.041121408343315125, 0.003988268785178661, -0.011013585142791271, -0.03368881717324257, 0.005726051516830921, -0.0277018453925848, -0.00041706804768182337, 0.007162866648286581, -0.02024046517908573, -0.06816858053207397, -0.039814356714487076, -0.03785119205713272, -0.057485658675432205, -0.045629967004060745, -0.030825698748230934, -0.002790002850815654, -0.004958791192620993, -0.05230912193655968, -0.014736605808138847, -0.03407938405871391, 0.009002923965454102, 0.026339968666434288, -0.049534913152456284, -0.016976742073893547, 0.031219879165291786, 0.04286099597811699, -0.004040834028273821, -0.006588063668459654, 0.06148478388786316, 0.023673487827181816, -0.015878424048423767, -0.0002913342323154211, -0.0047006066888570786, 0.045924749225378036, -0.029240138828754425, -0.005482187028974295, -0.07457219064235687, 0.027307024225592613, 0.03438514098525047, 0.010848590172827244, -0.06543189287185669, 0.020166175439953804, 0.030199995264410973, 0.001872530090622604, 0.044361162930727005, -0.01647556945681572, 0.03802122175693512, -0.045360248535871506, -0.046345438808202744, -0.020816346630454063, 0.012701153755187988, 0.031691208481788635, 0.0003798829566221684, 0.0838279128074646, 0.05675450339913368, -0.022750336676836014, 0.007180897984653711, -0.011006166227161884, -0.01986568793654442, 0.010817519389092922, -0.04907441511750221, -0.01938427798449993, -0.03757663071155548, -0.040964581072330475, -0.0024865909945219755, 0.024261444807052612, -0.00422268221154809, -0.02991653047502041, 0.03956492245197296, 0.006776879075914621, -0.0094074085354805, 0.008337307721376419, -0.055647458881139755, -0.008215623907744884, -0.0032287207432091236, -0.030385438352823257, -0.02764451503753662, 0.020841168239712715, 0.005188016686588526, -0.04122122377157211, -0.006652506068348885, -0.043053850531578064, -0.00004891794014838524, -0.005116760265082121, 0.059096843004226685, 0.039359770715236664, -0.022000527009367943, -0.022382164373993874 ]
[ -0.06529155373573303, -0.03995344042778015, -0.007328895386308432, -0.024800458922982216, 0.0693506971001625, -0.06673840433359146, -0.019642066210508347, 0.025259317830204964, -0.029790202155709267, -0.01841157115995884, -0.01581956259906292, -0.048258621245622635, -0.025915447622537613, -0.023227231577038765, 0.09085997939109802, -0.010314234532415867, 0.0016353123355656862, -0.04220438003540039, -0.03823748975992203, 0.01636306382715702, 0.0031415356788784266, -0.0253604743629694, -0.07192429900169373, -0.05624768137931824, -0.001804983476176858, 0.04760723561048508, 0.04751470312476158, -0.012223303318023682, -0.03377458453178406, -0.1838894784450531, 0.01152154989540577, -0.04040566831827164, -0.005885501392185688, -0.01734456792473793, 0.003344297409057617, 0.04767518490552902, 0.029255736619234085, -0.0002705373626668006, 0.024114472791552544, 0.05796439200639725, 0.05653930827975273, -0.029554301872849464, -0.04119235277175903, 0.026362406089901924, 0.003547555999830365, -0.04900277778506279, -0.010353561490774155, -0.021893886849284172, 0.016954071819782257, 0.00024875006056390703, -0.06413833051919937, 0.0026987474411726, -0.02263367734849453, -0.0407819002866745, 0.015169838443398476, 0.006948729977011681, 0.06137768179178238, 0.059416063129901886, 0.03934258595108986, 0.016803830862045288, 0.01456069853156805, 0.005101858638226986, -0.15800851583480835, 0.12806463241577148, -0.012135776691138744, 0.04117097705602646, -0.040636830031871796, 0.004028728231787682, -0.027917660772800446, 0.044885702431201935, 0.01679350435733795, -0.04591517150402069, -0.029279429465532303, 0.06610351800918579, 0.013922206126153469, -0.020377593114972115, -0.03131524473428726, 0.05604562163352966, 0.008531203493475914, -0.02185998670756817, -0.06316587328910828, 0.004126335494220257, -0.03528570011258125, 0.006418693345040083, -0.0675843209028244, 0.013187424279749393, -0.011086640879511833, 0.056868016719818115, 0.001820952515117824, 0.022817349061369896, 0.025909114629030228, -0.03204480558633804, 0.05853967368602753, 0.006181506905704737, -0.10129710286855698, -0.004476899281144142, -0.012455647811293602, 0.004244836512953043, -0.043589767068624496, 0.3673911690711975, 0.0007888736436143517, -0.02319982461631298, 0.04369153827428818, 0.029697338119149208, 0.0014075994258746505, 0.02837884984910488, -0.01854042336344719, -0.05532226711511612, 0.0334056057035923, -0.012901769019663334, 0.013889862224459648, 0.004070774186402559, 0.04551003873348236, -0.03509846329689026, 0.03325972706079483, -0.007414891850203276, 0.01587243191897869, 0.020721126347780228, -0.049167610704898834, 0.04861210659146309, 0.014722603373229504, 0.002881431020796299, 0.03926800936460495, 0.021817486733198166, 0.037709351629018784, 0.013794236816465855, 0.027074387297034264, 0.014916621148586273, 0.05635984241962433, 0.02685474418103695, 0.015984881669282913, -0.021087538450956345, -0.0510050505399704, -0.023137707263231277, -0.006816440261900425, -0.009456208907067776, 0.025273814797401428, -0.05793174356222153, 0.00505242170765996, 0.010905368253588676, -0.03032062016427517, -0.03932074084877968, 0.02932186983525753, -0.026556897908449173, -0.0010298567358404398, 0.12435724586248398, 0.023397069424390793, -0.02662413939833641, -0.02122715674340725, -0.041858214884996414, -0.003967613913118839, 0.06175334379076958, 0.03506484255194664, -0.06607082486152649, 0.028159597888588905, 0.01068922970443964, 0.04509468376636505, 0.0037385178729891777, -0.06498303264379501, -0.004631065763533115, -0.01973281241953373, -0.07674331218004227, -0.026124954223632812, -0.00027946612681262195, 0.024571401998400688, -0.11829842627048492, -0.000005380305083235726, 0.012534817680716515, 0.0141061469912529, -0.038709089159965515, -0.01456843689084053, 0.050528645515441895, -0.03502273932099342, -0.022414760664105415, 0.02738300710916519, -0.02843736670911312, 0.012748624198138714, 0.03991210460662842, 0.04939904808998108, -0.001566766295582056, -0.02164316363632679, 0.039235472679138184, -0.025599680840969086, -0.017190922051668167, -0.019665520638227463, -0.09168825298547745, -0.07418248802423477, -0.009753919206559658, -0.04951399192214012, -0.024520203471183777, -0.04458960145711899, -0.01361455861479044, -0.035422433167696, 0.0813339427113533, 0.020906809717416763, -0.01978742703795433, 0.03789934143424034, 0.044123660773038864, 0.012511896900832653, -0.04030579701066017, -0.016040420159697533, 0.03755643591284752, -0.01466237660497427, 0.035475704818964005, -0.06596183776855469, 0.023697571828961372, 0.03483044356107712, -0.01655931957066059, 0.024810941889882088, 0.037394843995571136, -0.014997448772192001, 0.01221128087490797, -0.021644849330186844, 0.03038860112428665, -0.0327339768409729, 0.007974480278789997, -0.02386060729622841, 0.020056573674082756, 0.028871474787592888, 0.03787151724100113, -0.014946697279810905, -0.05281753093004227, -0.013568807393312454, -0.3734046220779419, -0.02940894477069378, -0.027949590235948563, -0.004637709818780422, -0.00786079652607441, -0.07092080265283585, 0.019422143697738647, -0.00240232702344656, -0.0019518914632499218, 0.014218077063560486, 0.08851418644189835, -0.059739112854003906, 0.024336526170372963, -0.08090418577194214, 0.00409604562446475, 0.05337260290980339, -0.023459671065211296, -0.01991201937198639, -0.010610479861497879, 0.028800183907151222, 0.007324834354221821, -0.015207805670797825, -0.014821037650108337, -0.018994737416505814, -0.006943777669221163, -0.0031416581477969885, 0.10471784323453903, 0.0333845391869545, 0.09574960917234421, -0.07959414273500443, 0.0397634394466877, 0.02839575707912445, 0.01321664359420538, -0.10282514244318008, -0.01710677705705166, -0.01903851516544819, 0.01914081536233425, 0.027519557625055313, 0.007541365921497345, -0.010593091137707233, -0.03951525688171387, 0.07175406068563461, -0.05460701510310173, -0.07452164590358734, -0.024952450767159462, 0.016064709052443504, -0.03301792964339256, -0.008196738548576832, -0.040801551192998886, 0.038028307259082794, 0.0022524241358041763, 0.04484258219599724, 0.006526398938149214, 0.014036129228770733, 0.02379826083779335, -0.0001931750011863187, -0.03630932420492172, -0.045568130910396576, 0.004411766305565834, 0.03791326656937599, 0.0460534505546093, 0.06411770731210709, 0.006280308589339256, -0.05007491633296013, 0.011234013363718987, 0.01048307865858078, -0.0148371746763587, 0.03659600391983986, 0.06737930327653885, -0.025404205545783043, -0.03247332200407982, 0.08972461521625519, 0.008984353393316269, 0.024573132395744324, 0.08304442465305328, 0.05206552892923355, -0.025224287062883377, -0.0015482185408473015, 0.019679080694913864, 0.016656972467899323, 0.053725264966487885, -0.033010274171829224, 0.04275459796190262, -0.04851454868912697, 0.02833891473710537, 0.08992546796798706, -0.0016873470740392804, -0.017686545848846436, 0.054760273545980453, -0.021127404645085335, -0.0417618565261364, -0.006182632874697447, -0.004819758236408234, -0.06495817005634308, 0.07883305847644806, 0.02541498653590679, -0.2640162408351898, 0.05565093830227852, 0.04737454652786255, 0.056567493826150894, 0.028762398287653923, 0.018979735672473907, -0.00725606270134449, -0.07324305921792984, -0.00943798292428255, 0.03863810747861862, 0.004542726557701826, 0.05976049602031708, 0.006608075927942991, 0.015635600313544273, 0.03954318165779114, 0.012778853066265583, 0.024874266237020493, 0.01590418815612793, -0.0014152730582281947, -0.038267433643341064, 0.0011783316731452942, -0.009176349267363548, 0.15744128823280334, 0.054664671421051025, -0.02977016195654869, 0.011131220497190952, 0.014372439123690128, 0.039232037961483, 0.06260820478200912, 0.024824192747473717, 0.02012946642935276, -0.013375488109886646, 0.048613861203193665, 0.006769055500626564, 0.05487430840730667, -0.052177544683218, -0.02470245212316513, 0.007767624221742153, 0.020360255613923073, -0.04090016335248947, -0.03736119344830513, 0.02169494330883026, -0.03164898231625557, 0.024146877229213715, 0.05667824670672417, -0.02052799053490162, -0.017564725130796432, -0.07358233630657196, -0.05401225760579109, -0.017342600971460342, -0.017968257889151573, -0.061299748718738556, 0.007410463411360979, 0.01651560515165329, 0.015370986424386501, 0.058230068534612656, 0.01879952847957611, -0.024229560047388077, -0.010713595896959305, 0.026162907481193542, 0.00639533344656229, -0.041781168431043625, 0.09290724992752075, 0.009950922802090645, 0.01549035869538784 ]
[ 0.007664525881409645, 0.015749134123325348, -0.02477581985294819, 0.02205677703022957, 0.008784825913608074, -0.021651577204465866, -0.01676695980131626, 0.018006492406129837, 0.018779492005705833, -0.004715106915682554, -0.003703834256157279, 0.00976345594972372, -0.012730585411190987, -0.001276349532417953, 0.002708036918193102, -0.043450940400362015, 0.005062003619968891, 0.01329550240188837, 0.01942344382405281, -0.017322633415460587, -0.035083454102277756, 0.011829586699604988, 0.03433546796441078, -0.0029957073274999857, -0.030590509995818138, 0.019058803096413612, -0.04682839289307594, 0.002196951536461711, 0.023260582238435745, -0.12170346081256866, -0.02089843899011612, -0.025824014097452164, -0.004897632636129856, -0.02175033651292324, 0.008752120658755302, 0.01883801631629467, -0.014486272819340229, -0.009896189905703068, -0.004592124372720718, -0.0016665466828271747, 0.04304046928882599, -0.03221770375967026, -0.015323774889111519, -0.004014603793621063, -0.018823955208063126, -0.03624558821320534, -0.03482232615351677, -0.01318784337490797, -0.013545219786465168, 0.016539152711629868, -0.04306130111217499, 0.014231388457119465, 0.00205089314840734, 0.0130645502358675, 0.03208677098155022, -0.0027206530794501305, -0.03270815312862396, 0.01356562040746212, 0.030810125172138214, 0.016865907236933708, 0.007472354453057051, 0.04303904250264168, -0.030690811574459076, -0.018603231757879257, -0.005847272463142872, -0.03557268902659416, -0.001195827149786055, 0.010792293585836887, 0.03356749191880226, 0.020697692409157753, -0.0009300415986217558, 0.002260667271912098, -0.026893993839621544, -0.03953860327601433, -0.0093641122803092, 0.008550322614610195, -0.0034291199408471584, 0.021048808470368385, -0.00685962475836277, 0.007176815066486597, -0.011011697351932526, -0.003322262316942215, -0.02776126004755497, 0.004067085217684507, -0.04242035374045372, -0.0053620655089616776, -0.005269232671707869, 0.023876391351222992, 0.023731976747512817, -0.014712071046233177, 0.0017691703978925943, -0.005231255665421486, -0.01756497658789158, -0.024582820013165474, -0.07401235401630402, -0.007024782244116068, 0.0022118419874459505, -0.008402134291827679, -0.038143616169691086, 0.8566561341285706, -0.0003256180789321661, 0.02171601727604866, 0.01348146889358759, -0.011508157476782799, 0.03760626167058945, -0.021415654569864273, -0.04136402904987335, -0.006593648344278336, -0.0007534614996984601, -0.028463371098041534, 0.02254382148385048, 0.003292412031441927, 0.016375480219721794, -0.0008836531778797507, 0.038964759558439255, 0.002603166038170457, 0.0016633059130981565, -0.027752462774515152, -0.008844483643770218, 0.054422128945589066, 0.03707844391465187, -0.036684371531009674, 0.008064442314207554, 0.015491442754864693, 0.008472857065498829, -0.14338821172714233, 0.018956243991851807, -6.66494276656698e-33, 0.0877571702003479, -0.03932418301701546, 0.018790440633893013, -0.0158219151198864, 0.031056484207510948, -0.008875487372279167, 0.0018937489949166775, -0.040121302008628845, -0.01600516028702259, -0.004520647693425417, 0.02128666080534458, -0.019724324345588684, -0.010668518953025341, -0.025026610121130943, 0.01034916378557682, 0.00715932110324502, -0.012106618843972683, 0.027069944888353348, 0.010873322375118732, 0.034330032765865326, 0.029473409056663513, 0.02284524217247963, -0.018595827743411064, 0.014985007233917713, 0.0471922904253006, 0.009165637195110321, 0.0095618711784482, -0.028704214841127396, 0.0013398659648373723, -0.03452767804265022, -0.02836129628121853, 0.018328161910176277, -0.01692929118871689, -0.02862507477402687, -0.002243595663458109, -0.06782039254903793, -0.026969335973262787, -0.010097423568367958, -0.0403481125831604, -0.04022787883877754, -0.028746481984853745, -0.017814530059695244, -0.037958674132823944, -0.01864524930715561, -0.006733767222613096, -0.014041127637028694, -0.002033070893958211, 0.03793777525424957, 0.008243655785918236, 0.02455766126513481, 0.02874562330543995, 0.005980025976896286, 0.03663969784975052, 0.020125215873122215, 0.004446268081665039, 0.009393279440701008, 0.02834750898182392, -0.0027334075421094894, -0.010181929916143417, 0.007586560677736998, -0.0023676136042922735, -0.025002002716064453, -0.010124714113771915, 0.02225050888955593, 0.015978898853063583, -0.019401855766773224, -0.008935193531215191, 0.03924795240163803, -0.0021630546543747187, 0.041592005640268326, -0.04391028732061386, 0.01426699012517929, -0.03515353426337242, -0.017925389111042023, 0.004533844999969006, -0.03328299522399902, 0.015723509714007378, 0.02896031178534031, -0.018825748935341835, 0.059005361050367355, 0.001982255605980754, 0.015254281461238861, 0.026769498363137245, -0.019815746694803238, -0.004266493488103151, -0.02156458981335163, 0.029521068558096886, 0.012831287458539009, -0.01719062402844429, -0.01341693103313446, 0.017982730641961098, 0.09608086943626404, 0.02201027423143387, -0.031821638345718384, -0.03363353759050369, 6.946469255485103e-33, -0.005387838464230299, -0.0014657593565061688, -0.014017079956829548, 0.010738695040345192, 0.010351351462304592, -0.03774157166481018, 0.014195345342159271, 0.01465193834155798, 0.005103776231408119, 0.03320609778165817, -0.02803211659193039, 0.006112186703830957, -0.0292146485298872, 0.023777596652507782, 0.06315634399652481, -0.008900693617761135, -0.0017419651849195361, -0.00013939458585809916, 0.021409889683127403, -0.007474629208445549, 0.011624072678387165, 0.000983924139291048, 0.02535473369061947, 0.02022731862962246, 0.012299560941755772, -0.0012437531258910894, -0.014994747936725616, 0.023823369294404984, -0.0445968322455883, -0.013741180300712585, 0.03434561565518379, -0.007685912307351828, 0.004668703302741051, -0.010839449241757393, -0.0385204441845417, 0.021750956773757935, -0.0032957971561700106, 0.019077707082033157, 0.01498368103057146, 0.0006640746141783893, 0.05142844095826149, 0.018096208572387695, 0.01556988712400198, 0.02668958716094494, -0.03767067566514015, -0.023898199200630188, 0.01297615747898817, -0.0030813629273325205, -0.00011357748735463247, 0.013699043542146683, -0.025258183479309082, 0.007768245413899422, 0.020171016454696655, 0.013402709737420082, 0.0019260296830907464, -0.00890399795025587, -0.027768565341830254, 0.021733682602643967, -0.019651854410767555, 0.025916529819369316, 0.007510250434279442, -0.030523668974637985, 0.014650454744696617, 0.02992681972682476, -0.022925425320863724, -0.0329698771238327, -0.005002634134143591, -0.004173402674496174, -0.02645547315478325, -0.005737789440900087, 0.026370586827397346, 0.003919863607734442, -0.023346614092588425, 0.063608318567276, 0.06311088055372238, -0.016747785732150078, -0.01006859727203846, 0.033883899450302124, 0.01195293478667736, 0.007491317577660084, 0.02190355956554413, 0.021546248346567154, -0.023550283163785934, -0.026955099776387215, 0.01612720638513565, 0.005158523563295603, -0.021379999816417694, 0.01596274971961975, 0.00437925336882472, -0.005513031035661697, 0.005321450997143984, -0.0340566411614418, -0.007062903139740229, 0.018955964595079422, 0.008086821995675564, -1.266621207918206e-8, -0.0007849967223592103, 0.0013740129070356488, -0.030625110492110252, 0.036930181086063385, 0.03001946210861206, 0.016622886061668396, -0.023436324670910835, -0.011424120515584946, -0.015272869728505611, 0.005364257376641035, 0.04552920162677765, -0.002703526057302952, -0.006179253105074167, 0.02799389138817787, 0.03140120580792427, -0.025418641045689583, -0.017203431576490402, -0.024112297222018242, 0.015453062020242214, -0.011200349777936935, 0.0410052165389061, 0.021588748320937157, 0.01761038228869438, -0.029460178688168526, -0.028611114248633385, 0.015340176410973072, 0.02720247581601143, -0.05231509357690811, -0.030721008777618408, 0.004670146387070417, 0.006746836006641388, -0.036116115748882294, -0.04580884799361229, 0.023692606016993523, -0.03168935328722, -0.022076457738876343, -0.01389754842966795, 0.01438075490295887, -0.010733547620475292, 0.026217199862003326, -0.041094835847616196, -0.001529886620119214, -0.032680854201316833, -0.04439624771475792, -0.0399627648293972, 0.00038623379077762365, -0.01839098520576954, 0.04434031993150711, 0.005701384972780943, -0.01531087327748537, -0.007917694747447968, -0.010408016853034496, 0.0489702932536602, -0.007919014431536198, 0.05179582163691521, 0.014925545081496239, 0.051722440868616104, -0.0087696248665452, 0.004859372042119503, -0.026044664904475212, 0.02773989737033844, 0.018584931269288063, -0.010980933904647827, -0.010593157261610031 ]
kafka-writing-data-topic-command-line
https://markhneedham.com/blog/2022/01/22/kafka-writing-data-topic-command-line
false
2022-06-16 02:44:37
docker exec: Passing in environment variables
[ "docker" ]
[ "docker" ]
I've been working on an https://dev.startree.ai/docs/pinot/recipes/[Apache Pinot recipe^] showing how to ingest data from S3 and I needed to pass in my AWS credentials to the `docker exec` command that I was running. It wasn't difficult to do, but took me a little while to figure out. .docker exec: Passing in environment variables image::{{<siteurl>}}/uploads/2022/06/docker-exec.png[] The command that I was running looked like this: [source, bash] ---- docker exec \ -it pinot-controller bin/pinot-admin.sh LaunchDataIngestionJob \ -jobSpecFile /config/job-spec.yml ---- And the https://docs.pinot.apache.org/basics/data-import/pinot-file-system/amazon-s3[Pinot documentation^] says that I need to pass in `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. I initially came across https://stackoverflow.com/questions/27812548/how-to-set-an-environment-variable-in-a-running-docker-container[a StackOverflow question^] that described a bunch of approaches that didn't work for me, but luckily I found https://devconnected.com/docker-exec-command-with-examples/[a tutorial^] that showed how to do it. Effectively we can set these environment variables via the `-e` parameter, as shown below: [source, bash] ---- docker exec \ -e AWS_ACCESS_KEY_ID=<accessKeyId> \ -e AWS_SECRET_ACCESS_KEY=<secretAccessKey> \ -it pinot-controller bin/pinot-admin.sh LaunchDataIngestionJob \ -jobSpecFile /config/job-spec.yml ---- It's that simple!
In this post we'll learn how to pass environment variables to docker exec.
uploads/2022/06/docker-exec.png
[ 0.011593581177294254, -0.0028735650703310966, -0.012916804291307926, 0.037631966173648834, 0.08606712520122528, 0.03860590606927872, -0.0074572269804775715, 0.021739132702350616, -0.02383638732135296, -0.04523315653204918, -0.020170580595731735, -0.009861862286925316, -0.03675241768360138, 0.01233670860528946, 0.005539810284972191, 0.050158027559518814, 0.08400756865739822, 0.008455591276288033, 0.008686346933245659, 0.014218868687748909, 0.014541611075401306, 0.04505424201488495, 0.009077905677258968, 0.022133760154247284, -0.009194053709506989, 0.021486351266503334, -0.0044809808023273945, 0.0034476849250495434, -0.03148258477449417, -0.014625808224081993, 0.011661088094115257, -0.012711592949926853, 0.01911218836903572, -0.027327461168169975, -0.005128257442265749, -0.012126305140554905, -0.036003511399030685, -0.009075651876628399, 0.0006523357587866485, 0.045006558299064636, -0.08187226951122284, 0.022936660796403885, 0.019129227846860886, -0.002163400873541832, 0.00982754398137331, 0.03182041272521019, -0.03035823442041874, 0.01583006978034973, -0.0018568442901596427, 0.014531776309013367, -0.08473505824804306, 0.013407539576292038, -0.0481548011302948, -0.020697247236967087, 0.05408734828233719, 0.03902191296219826, 0.0145794078707695, -0.04364243894815445, 0.021818332374095917, -0.04011841118335724, -0.018377820029854774, 0.01036505214869976, -0.0006238041096366942, 0.0023948713205754757, 0.031029783189296722, -0.02071632444858551, 0.0016701370477676392, 0.03277065232396126, -0.035127341747283936, -0.011632374487817287, 0.010129635222256184, -0.009193974547088146, -0.015049340203404427, -0.034529611468315125, 0.0168826375156641, -0.04559694230556488, -0.03594188019633293, 0.036319274455308914, 0.028450753539800644, 0.0523931160569191, -0.04881779104471207, -0.034643180668354034, -0.004998328629881144, 0.01440370548516512, -0.0036304753739386797, -0.021771876141428947, -0.044551700353622437, 0.0036884816363453865, -0.05094848573207855, 0.06877877563238144, 0.03659936413168907, -0.04052094370126724, 0.008734001778066158, -0.013585349544882774, 0.03342461958527565, 0.022146575152873993, 0.017545415088534355, -0.029033929109573364, 0.023981019854545593, 0.009666348807513714, -0.04246067628264427, 0.017270442098379135, -0.009562777355313301, 0.029840024188160896, -0.06974805146455765, -0.012642395682632923, -0.04628089442849159, -0.020855408161878586, -0.017431382089853287, 0.01680563949048519, -0.006715460680425167, -0.0005438266671262681, -0.02380407601594925, 0.014852783642709255, -0.08460065722465515, 0.07600843161344528, 0.0364508181810379, -0.01498478278517723, 0.024759188294410706, 0.004687698092311621, 0.043144430965185165, 0.03794034197926521, -0.005610721185803413, 0.05207134783267975, -0.020777450874447823, 0.01437083724886179, -0.0190449021756649, 0.022613704204559326, 0.0015231239376589656, -0.08139755576848984, -0.03103867918252945, 0.037378787994384766, 0.06352023035287857, -0.0018481452716514468, -0.024043940007686615, -0.027923697605729103, -0.026584668084979057, 0.029437430202960968, 0.05347452685236931, 0.025746647268533707, -0.03797346353530884, 0.0008220254094339907, 0.01549052819609642, -0.03442936763167381, 0.04848046228289604, 0.02234962210059166, 0.021037042140960693, -0.06724952906370163, -0.05471178516745567, 0.037918541580438614, 0.03636196628212929, 0.012073173187673092, 0.05147368833422661, -0.05358753353357315, 0.015925144776701927, 0.052494511008262634, 0.024639936164021492, 0.03648000210523605, -0.02342863567173481, -0.0348375029861927, 0.0441303476691246, 0.014545110054314137, 0.050693050026893616, 0.04972252994775772, 0.024240504950284958, -0.03841649740934372, 0.0004948971327394247, 0.03763127699494362, -0.010579240508377552, -0.0004819765454158187, -0.06396852433681488, -0.007633741945028305, 0.06571515649557114, -0.04478557035326958, 0.033192336559295654, 0.010062174871563911, 0.05510794371366501, 0.0011883473489433527, 0.05534367635846138, -0.0052674985490739346, -0.07000146806240082, 0.08136559277772903, -0.002659231424331665, 0.008444786071777344, 0.03159249573945999, -0.014515773393213749, 0.06419044733047485, 0.004977577831596136, 0.05210283771157265, 0.028518490493297577, -0.0875449851155281, -0.10024011880159378, 0.008144577033817768, 0.0061298152431845665, 0.048879750072956085, -0.019341522827744484, -0.03656158596277237, 0.06396070122718811, 0.041362445801496506, 0.00662743765860796, 0.011129962280392647, -0.0066339909099042416, 0.022712580859661102, -0.08875886350870132, -0.0816902369260788, 0.03043895587325096, 0.03683912009000778, -0.042762529104948044, -0.02615431509912014, 0.03617905080318451, -0.06747934967279434, 0.018416527658700943, 0.036176666617393494, -0.03469916433095932, 0.10079003870487213, 0.03966663032770157, -0.004799132701009512, -0.03621402755379677, 0.07361649721860886, -0.03804221376776695, 0.0643741562962532, 0.0322066992521286, -0.012444420717656612, 0.028043556958436966, 0.015730109065771103, 0.10592382401227951, 0.0672379806637764, 0.0003044868353754282, -0.026681989431381226, 0.06462335586547852, 0.020985646173357964, -0.05234900861978531, 0.002459259470924735, 0.018620386719703674, -0.010402388870716095, 0.01784834824502468, -0.018477704375982285, 0.017343277111649513, 0.0031068490352481604, -0.003446921007707715, 0.004899508785456419, 0.05849151685833931, -0.03770987316966057, 0.043143656104803085, 0.01815860904753208, 0.0011021916288882494, -0.00033972697565332055, -0.049376580864191055, -0.0591597817838192, -0.027632828801870346, 0.010461702942848206, -0.00275609502568841, 0.057817745953798294, -0.029093129560351372, -0.029103973880410194, -0.06213913485407829, -0.06709045171737671, 0.007036633789539337, 0.014429385773837566, 0.06193002685904503, -0.04107630252838135, 0.04530508816242218, -0.051864638924598694, 0.02301478199660778, -0.006732903886586428, -0.03610055893659592, -0.034884609282016754, 0.02115754783153534, -0.011109407059848309, 0.03973749279975891, 0.027220528572797775, -0.011551493778824806, 0.030822468921542168, -0.05426349118351936, 0.03626391291618347, -0.020894227549433708, 0.0018766847206279635, -0.004032008349895477, 0.020249178633093834, -0.023128796368837357, 0.0227807704359293, 0.017288288101553917, -0.06838112324476242, 0.030537154525518417, 0.018591372296214104, -0.053347911685705185, 0.01658809371292591, -0.08396092802286148, -0.033718518912792206, -0.03142934292554855, 0.046623822301626205, -0.01103154942393303, 0.02250659465789795, 0.019313309341669083, 0.04638722538948059, -0.00038845016388222575, 0.0036639205645769835, -0.0035695540718734264, 0.02427627705037594, 0.02858579158782959, 0.011524245142936707, 0.013720403425395489, 0.031224118545651436, -0.01662736013531685, -0.005801335442811251, -0.060918763279914856, 0.005482375156134367, -0.05918469280004501, -0.26258185505867004, 0.05575030297040939, -0.02566588670015335, 0.014804172329604626, 0.0064301579259335995, -0.042980123311281204, 0.005739118903875351, -0.01562999002635479, 0.011305966414511204, 0.017631428316235542, -0.020604770630598068, -0.007178974337875843, -0.022432679310441017, 0.022474754601716995, -0.02640894427895546, 0.0424276664853096, -0.008432503789663315, -0.06778961420059204, 0.02373998612165451, -0.0397496223449707, -0.023739662021398544, -0.015512019395828247, 0.02746700309216976, 0.01991754211485386, 0.03160085156559944, 0.0329967625439167, -0.08905807882547379, 0.05956011638045311, -0.046561725437641144, -0.03330158814787865, 0.01944023184478283, -0.027845952659845352, -0.018820302560925484, 0.03247891739010811, -0.0006125360378064215, -0.022077878937125206, 0.028782542794942856, -0.016195617616176605, 0.023533454164862633, -0.014221121557056904, -0.045162446796894073, -0.06097150221467018, -0.03675176948308945, 0.01811421662569046, 0.06074508652091026, -0.038240570574998856, -0.07347846776247025, -0.034499604254961014, -0.02123371511697769, 0.09984050691127777, -0.04496278613805771, -0.04720907658338547, -0.051842741668224335, 0.01055233832448721, -0.0038371935952454805, 0.014159147627651691, -0.01615714281797409, 0.03226340562105179, -0.033275146037340164, -0.013426730409264565, 0.021264972165226936, -0.04132819175720215, 0.010116093792021275, -0.07212912291288376, -0.0180526040494442, -0.034651096910238266, -0.045457445085048676, -0.018400220200419426, 0.0620277114212513, 0.03079092688858509, -0.0325375497341156, 0.012109048664569855, -0.03827919065952301, -0.11446208506822586, -0.0030809249728918076, -0.0413036122918129, -0.06671866774559021, -0.00753248855471611, -0.0010722512379288673, 0.029199419543147087, -0.02650848776102066, -0.0039885323494672775, 0.03658472001552582, 0.014738957397639751, -0.003959465306252241, -0.03358760103583336, 0.021045280620455742, -0.05373801663517952, 0.019651753827929497, -0.02191000245511532, 0.06820466369390488, -0.037459321320056915, -0.019425051286816597, -0.026572536677122116, 0.0038289506919682026, 0.025920705869793892, 0.0061216638423502445, 0.016776597127318382, -0.016254641115665436, 0.008733829483389854, 0.0198836550116539, -0.03308802470564842, -0.0066134389489889145, -0.019837800413370132, 0.018301256000995636, -0.02801433391869068, -0.04591923952102661, 0.017999211326241493, 0.014480525627732277, 0.01674334704875946, 0.02132156677544117, -0.009264477528631687, 0.027140529826283455, -0.062325369566679, 0.0022062608040869236, 0.025778083130717278, 0.04485521838068962, 0.024434689432382584, 0.06635069102048874, -0.01081084180623293, -0.047473277896642685, 0.0100775845348835, 0.03326179087162018, -0.0324074849486351, 0.0019370908848941326, -0.028339911252260208, 0.01612045057117939, -0.0012581016635522246, 0.01855824887752533, -0.0064886994659900665, -0.0074844141490757465, 0.03217454254627228, 0.0667838603258133, -0.016599465161561966, 0.0027375435456633568, -0.03912465646862984, -0.021275630220770836, -0.04454956576228142, 0.013690841384232044, 0.010563399642705917, -0.046858202666044235, 0.001145853428170085, -0.014587260782718658, 0.024717116728425026, 0.05320145562291145, 0.014265813864767551, 0.023172123357653618, -0.0070047504268586636, 0.011060275137424469, 0.009408879093825817, 0.007864915765821934, -0.009531143121421337, -0.011813378892838955, -0.03930574283003807, -0.01091103907674551, -0.02982034906744957, 0.03241520747542381, -0.014107677154242992, -0.01478537730872631, -0.03524495288729668, 0.028095558285713196, -0.054514843970537186, -0.0010867830133065581, -0.0118363993242383, -0.01828891411423683, 0.028314173221588135, -0.0056709484197199345, 0.03394969552755356, -0.0005119830020703375, 0.016706697642803192, -0.0014468275476247072, -0.002959378296509385, -0.031019525602459908, -0.002234615618363023, -0.03316398337483406, -0.026478370651602745, 0.021513450890779495, 0.04189128428697586, -0.004654226824641228, -0.026813365519046783, 0.029830070212483406, 0.0008657858707010746, 0.013263525441288948, 0.004446046426892281, 0.04882589727640152, 0.01384923979640007, -0.009837981313467026, -0.0006977912271395326, -0.007320072501897812, 0.00843056757003069, -0.04949243739247322, -0.01901872456073761, -0.03205801174044609, 0.01928320713341236, -0.006934783887118101, -0.032792218029499054, 0.05309551954269409, 0.03080478124320507, 0.007791486568748951, 0.016893191263079643, -0.02247784659266472, -0.007681556977331638, -0.05030396953225136, 0.043172597885131836, 0.09559494256973267, -0.04063763841986656, 0.0059367758221924305, 0.031769827008247375, 0.02137717232108116, -0.0018595624715089798, 0.040090303868055344, -0.040989045053720474, -0.01606987975537777, 0.00036539474967867136, 0.04476425424218178, -0.05787738412618637, -0.05366595834493637, -0.02191031537950039, -0.009518167935311794, 0.00789279118180275, 0.015585419721901417, 0.01346772164106369, 0.0066005028784275055, -0.01099113654345274, -0.026685763150453568, 0.02327803336083889, -0.008848031051456928, 0.008880937471985817, 0.03817138820886612, -0.013411696068942547, -0.0006802566349506378, -0.03147675096988678, 0.02471185103058815, -0.0008208341896533966, -0.013504579663276672, -0.02387145906686783, -0.04336617514491081, 0.0156583059579134, -0.02057969756424427, 0.06157539412379265, -0.0069023799151182175, -0.0029772294219583273, -0.03500863164663315, -0.031643107533454895, -0.00001393952243233798, -0.04193935543298721, -0.008552774786949158, -0.005900605581700802, 0.04076136648654938, 0.0602208636701107, 0.03111371211707592, -0.00613933801651001, 0.006899799220263958, -0.031431857496500015, 0.03642008453607559, -0.036342691630125046, -0.03517799824476242, -0.0007752999663352966, -0.06260299682617188, 0.037770528346300125, 0.04311797395348549, 0.02405215986073017, -0.06448978185653687, 0.02875354140996933, 0.04599703848361969, -0.00677515659481287, 0.009729909710586071, -0.026307007297873497, 0.024245915934443474, -0.02384190447628498, 0.00831567868590355, -0.08671414852142334, -0.004025451838970184, 0.030622584745287895, -0.019413117319345474, -0.009961249306797981, 0.004434898961335421, -0.05975508689880371, 0.04291609674692154, -0.04858091473579407, -0.043099816888570786, 0.08130085468292236, -0.006145833060145378, -0.0031771743670105934, -0.002952608047053218, -0.055779360234737396, 0.02650480344891548, 0.00728886341676116, -0.01030028611421585, 0.019499870017170906, -0.0007227649330161512, 0.04579180106520653, -0.0048951031640172005, 0.028826061636209488, -0.002584293019026518, -0.03713342174887657, 0.09056825190782547, 0.011230310425162315, -0.01962606981396675, 0.04474480822682381, -0.00368960271589458, 0.041442032903432846, 0.0060450229793787, 0.005787757690995932, 0.0027379035018384457, 0.058451004326343536, -0.06540662795305252, -0.05403777211904526, 0.038458678871393204, 0.017649339511990547, -0.045189712196588516, -0.049303799867630005, 0.03447185456752777, -0.004379716701805592, -0.04548991098999977, -0.04425598308444023, 0.03194465860724449, -0.018617579713463783, -0.039921488612890244, -0.010512358509004116, 0.0404866561293602, -0.07437052577733994, 0.004721116274595261, 0.011493752710521221, 0.022936388850212097, 0.0668458566069603, 0.014192343689501286, -0.02791188657283783, 0.03458932414650917, 0.05907494202256203, 0.07624024897813797, 0.018309473991394043, 0.039339009672403336, 0.027624836191534996, -0.01172500941902399, -0.022780103608965874, -0.006243346258997917, 0.01141175627708435, 0.0030966990161687136, -0.02373936027288437, 0.035949911922216415, 0.0871688723564148, -0.025911489501595497, 0.050645239651203156, 0.00013175960339140147, -0.010434087365865707, -0.014602567069232464, 0.026622651144862175, 0.004950318951159716, 0.018566543236374855, 0.035731106996536255, 0.017308050766587257, -0.004538699984550476, -0.03970310091972351, -0.01930324360728264, -0.004714468028396368, -0.019634567201137543, 0.01101776771247387, -0.019033072516322136, 0.004840339533984661, 0.036716967821121216, -0.006276243831962347, 0.0601787194609642, -0.021988386288285255, -0.005989340599626303, 0.014328748919069767, 0.04817156121134758, -0.0068535469472408295, 0.01760062947869301, -0.020466273650527, -0.021245202049613, -0.029600009322166443, -0.019450359046459198, -0.03855768218636513, 0.010238136164844036, -0.00918025616556406, 0.026543734595179558, -0.006897004321217537, -0.021712776273489, 0.011024987325072289, 0.0025369671639055014, -0.028372447937726974, -0.04509556293487549, -0.04800141975283623, -0.04756658896803856, -0.023602377623319626, -0.044842518866062164, 0.008113588206470013, 0.009704045951366425, -0.008478434756398201, -0.025424813851714134, 0.0021891610231250525, 0.009385628625750542, 0.018390966579318047, -0.03587225824594498, -0.006476880516856909, 0.013466780073940754, 0.04171183332800865, 0.020752571523189545, 0.00476111751049757, 0.039995480328798294, 0.00018418178660795093, 0.004560698289424181, -0.020103439688682556, -0.006512261927127838, 0.03607312962412834, -0.035162121057510376, -0.0017373575828969479, -0.04598284140229225, 0.03651529550552368, 0.03377833217382431, 0.021572982892394066, -0.07488603889942169, 0.0020565602462738752, 0.019208654761314392, -0.021924780681729317, 0.0808810144662857, -0.01643599383533001, 0.038216035813093185, -0.037278395146131516, -0.027228187769651413, -0.004485929850488901, -0.03453536331653595, 0.058976683765649796, 0.00952254980802536, 0.09613385051488876, 0.050520159304142, -0.041826702654361725, -0.015436680987477303, -0.00951764639467001, -0.018980124965310097, 0.03597663342952728, -0.05689815431833267, 0.019023077562451363, -0.03660420700907707, -0.04188321530818939, -0.03322083130478859, 0.021753331646323204, -0.041736286133527756, -0.061574749648571014, 0.006025153212249279, -0.010941625572741032, -0.01578902080655098, -0.006820028182119131, -0.04520954564213753, 0.006118471268564463, -0.026472922414541245, -0.02577080763876438, 0.019665464758872986, 0.02565518580377102, -0.04634462669491768, -0.024035034701228142, 0.00954702403396368, -0.01794104464352131, -0.024540221318602562, -0.04316720366477966, 0.049654070287942886, 0.05919775739312172, -0.014824101701378822, 0.019014714285731316 ]
[ -0.018687086179852486, -0.030659867450594902, -0.008923017419874668, -0.030547888949513435, 0.06302329152822495, -0.07185707241296768, 0.011687630787491798, -0.024415604770183563, -0.04771438241004944, 0.0010157231008633971, 0.002211757469922304, -0.06736339628696442, 0.020123828202486038, -0.06267068535089493, 0.05104142799973488, -0.0013433462008833885, -0.004542734939604998, -0.024747179821133614, -0.05714654177427292, 0.052715953439474106, -0.004967788700014353, -0.007840161211788654, -0.055068280547857285, -0.07492594420909882, -0.045760203152894974, 0.060028038918972015, 0.017623208463191986, -0.019477473571896553, -0.053097888827323914, -0.1748962551355362, 0.014127674512565136, -0.01724380999803543, -0.017114201560616493, -0.008985346183180809, -0.005743209272623062, 0.05357716232538223, 0.05445032939314842, -0.003963957075029612, 0.006378123536705971, 0.048709604889154434, 0.07061433047056198, -0.024762358516454697, -0.04248097911477089, 0.030531752854585648, -0.021468544378876686, -0.03355678543448448, -0.00524185923859477, -0.007658300455659628, 0.05573715642094612, -0.01345246285200119, -0.01648811064660549, 0.025408493354916573, -0.015097130089998245, -0.037590138614177704, 0.031779125332832336, 0.00452303746715188, 0.031392619013786316, 0.025034567341208458, -0.008606977760791779, -0.026405038312077522, -0.015141095034778118, -0.0010992070892825723, -0.1770983338356018, 0.12119700759649277, 0.06143641471862793, 0.05591493844985962, -0.05519511550664902, 0.0018771428149193525, -0.0235451627522707, 0.007215213496237993, -0.010632246732711792, -0.0365791991353035, -0.061312172561883926, 0.0571722611784935, 0.04184158891439438, -0.012445027008652687, -0.02027512714266777, 0.06331443041563034, 0.02041207253932953, -0.06391240656375885, -0.015393359586596489, -0.0036455998197197914, -0.003942224662750959, 0.025827473029494286, -0.022589826956391335, -0.007900478318333626, 0.03931548073887825, 0.04708192124962807, 0.044477835297584534, 0.035569556057453156, -0.005632330663502216, -0.05045529827475548, 0.03515195846557617, 0.022328166291117668, -0.04454157501459122, 0.023744873702526093, 0.015831081196665764, 0.0055226488038897514, -0.07357898354530334, 0.351818710565567, -0.013116644695401192, 0.0015080188168212771, -0.01596955396234989, -0.0462786965072155, 0.010106706991791725, 0.021077902987599373, -0.03638787940144539, 0.00034582585794851184, 0.045046888291835785, 0.005819104146212339, 0.008977798745036125, -0.02057441882789135, 0.05260900780558586, -0.048739634454250336, 0.0007532700547017157, 0.034754663705825806, -0.04315802827477455, 0.032406702637672424, -0.04178796336054802, -0.002324506640434265, 0.02426934987306595, -0.025295257568359375, 0.04064248874783516, 0.03148926421999931, 0.028060615062713623, 0.021901192143559456, 0.06329579651355743, 0.04032841697335243, 0.029369724914431572, 0.024122199043631554, 0.05110974609851837, -0.05105644464492798, -0.06634525209665298, 0.0018328239675611258, -0.022048410028219223, 0.02611907199025154, 0.01717815361917019, -0.012655457481741905, 0.000190056991414167, -0.008176084607839584, -0.04297446459531784, -0.022300276905298233, 0.0849483460187912, -0.0436808206140995, -0.013263936154544353, 0.08600451797246933, 0.005146555602550507, -0.0354560911655426, -0.03873245045542717, -0.06110800430178642, -0.023559752851724625, 0.04880440607666969, 0.018398163840174675, -0.03858406841754913, 0.00475908350199461, 0.015352925285696983, 0.05461690574884415, 0.010849869810044765, -0.03634299337863922, -0.0005205239285714924, -0.022869931533932686, -0.057360053062438965, 0.0031682197004556656, 0.00937046017497778, 0.05714326351881027, -0.11998236179351807, -0.0006927911890670657, 0.013468317687511444, 0.00461734039708972, -0.0032630255445837975, 0.01356626208871603, 0.01171030942350626, -0.06267587840557098, -0.020373959094285965, 0.04406139254570007, -0.05094889923930168, 0.02647545374929905, 0.05842464789748192, 0.05696985870599747, 0.012923532165586948, -0.030540863052010536, -0.012089460156857967, -0.015003052540123463, -0.006784102879464626, -0.03519745171070099, -0.06264997273683548, -0.04229354485869408, 0.010381802916526794, -0.05440053716301918, -0.00300198863260448, -0.037384599447250366, -0.0033653005957603455, -0.05716986954212189, 0.07423218339681625, 0.045193567872047424, -0.02062682807445526, 0.02486424706876278, -0.013999544084072113, -0.013060610741376877, -0.014219940640032291, 0.050348710268735886, 0.04866832122206688, 0.00454407325014472, 0.05575576424598694, -0.09744074195623398, 0.02952779456973076, -0.0005734864389523864, -0.010303881019353867, 0.02837452106177807, 0.05857827514410019, -0.046175990253686905, 0.03646223619580269, -0.024571005254983902, 0.011742311529815197, -0.007605249527841806, -0.02223888970911503, -0.008701927028596401, 0.003375658066943288, 0.0198893491178751, 0.007470311131328344, -0.012323390692472458, -0.0254819355905056, -0.011531959287822247, -0.36662760376930237, -0.04764959588646889, -0.02972346916794777, 0.012112557888031006, 0.024164794012904167, -0.032713741064071655, 0.008482926525175571, 0.007628283929079771, -0.036615438759326935, -0.027112267911434174, 0.09417252987623215, -0.03621727600693703, 0.06714700907468796, -0.05641646310687065, 0.002017168328166008, 0.019038958474993706, -0.01729615032672882, -0.04412935674190521, 0.019283205270767212, 0.05599423125386238, -0.006723633501678705, -0.04732812941074371, -0.017573876306414604, -0.02481771446764469, 0.016948694363236427, -0.018908102065324783, 0.0942668467760086, -0.012606553733348846, 0.08898789435625076, -0.0739106610417366, 0.031025635078549385, 0.04406672716140747, 0.027085594832897186, -0.1064264327287674, -0.008654005825519562, -0.03604317083954811, -0.009289596229791641, 0.02542460709810257, 0.0194229893386364, -0.00895154383033514, -0.01983839087188244, 0.03396796062588692, -0.050668150186538696, -0.061052996665239334, 0.015304082073271275, -0.032565195113420486, 0.0025514974258840084, 0.051709823310375214, -0.019391145557165146, 0.016028348356485367, 0.01780577376484871, 0.0405377559363842, -0.0036413141060620546, -0.010139905847609043, 0.03299195319414139, 0.00003061234747292474, -0.033840689808130264, -0.03262728080153465, 0.0022371052764356136, 0.029641451314091682, 0.03076603263616562, 0.08337153494358063, 0.007944323122501373, -0.04761213809251785, -0.015619511716067791, 0.012069783173501492, -0.05006532743573189, 0.015090479515492916, 0.049591898918151855, -0.03525902330875397, -0.022936848923563957, 0.08828886598348618, 0.017606724053621292, 0.026567550376057625, 0.03256278485059738, 0.026750817894935608, -0.026741715148091316, -0.02871481515467167, 0.01170362439006567, -0.03169001638889313, 0.029523653909564018, -0.030794115737080574, 0.05993760749697685, -0.014929300174117088, 0.027965065091848373, 0.10198229551315308, -0.021093115210533142, 0.0006884272443130612, 0.05001163110136986, 0.015444128774106503, -0.06401049345731735, -0.030689546838402748, -0.047779787331819534, -0.02767224982380867, 0.0879097580909729, 0.03357803076505661, -0.26274290680885315, 0.028638150542974472, 0.04233099892735481, 0.04079359769821167, 0.019731907173991203, -0.029630601406097412, 0.054659631103277206, -0.0819595605134964, -0.007349550724029541, 0.01597822643816471, -0.00012909404176753014, 0.02203388884663582, -0.002293206984177232, 0.05394303798675537, 0.02292725443840027, 0.009633464738726616, 0.05485685542225838, 0.041658852249383926, -0.006095861550420523, -0.005714596249163151, 0.013113516382873058, 0.008111166767776012, 0.15273085236549377, 0.0715252012014389, -0.01064072921872139, 0.054255109280347824, -0.02195677161216736, 0.037760376930236816, 0.05637749284505844, 0.042093973606824875, 0.05936606600880623, -0.010366786271333694, 0.03349974751472473, -0.0575638972222805, 0.04791117459535599, -0.0684119239449501, -0.005089620593935251, 0.018648166209459305, 0.048075009137392044, -0.06505129486322403, -0.033159948885440826, 0.024242328479886055, -0.007285345811396837, 0.0024449198972433805, 0.02604975923895836, -0.07685188204050064, -0.0044054738245904446, -0.06138339266180992, -0.007806988433003426, 0.004435274284332991, -0.013382093980908394, -0.012507602572441101, -0.021741122007369995, -0.03583918884396553, 0.02735406905412674, 0.10576406121253967, -0.0030785705894231796, -0.04022771492600441, -0.043982964009046555, 0.014814859256148338, -0.01958446390926838, -0.05957832932472229, 0.09190528839826584, 0.031197169795632362, 0.08336473256349564 ]
[ 0.0220427755266428, -0.016174281015992165, -0.045800186693668365, 0.002313014818355441, 0.039965081959962845, -0.017543770372867584, -0.009403351694345474, -0.025867899879813194, 0.005313629750162363, 0.005368414334952831, -0.009650053456425667, 0.009883355349302292, 0.002156415954232216, 0.003657694673165679, 0.019678732380270958, -0.08058200776576996, 0.04610064625740051, 0.016518311575055122, 0.009750955738127232, -0.029403576627373695, -0.008416394703090191, 0.020308110862970352, 0.038487017154693604, 0.02399732545018196, -0.024880336597561836, -0.023021845147013664, -0.03811560571193695, 0.0011040900135412812, -0.002903231419622898, -0.12294447422027588, 0.031897105276584625, -0.010781092569231987, 0.05262060463428497, -0.029874054715037346, 0.050652679055929184, 0.04053003340959549, 0.021675635129213333, -0.02340688742697239, -0.04377157241106033, 0.01082028727978468, 0.03718196973204613, -0.016618020832538605, -0.018879545852541924, -0.05452893301844597, 0.005174644757062197, 0.000004046718004246941, -0.03203098848462105, -0.0542728565633297, -0.0022671539336442947, 0.026480749249458313, -0.003932095132768154, -0.023342572152614594, 0.026752259582281113, -0.034196868538856506, 0.011757842265069485, 0.009786214679479599, 0.0018152289558202028, 0.008078341372311115, 0.013472702354192734, -0.021533040329813957, 0.011931456625461578, -0.013361074030399323, 0.00024528714129701257, -0.0352310873568058, 0.04904935881495476, -0.04432336613535881, -0.02690906822681427, -0.01875477097928524, 0.005378935486078262, 0.0093031981959939, -0.011251868680119514, -0.03426172584295273, -0.03778984397649765, -0.01968172751367092, -0.02857370115816593, 0.03221926838159561, 0.03349343687295914, 0.0012881368165835738, -0.028670569881796837, 0.0075662690214812756, -0.039698902517557144, -0.006972992327064276, -0.03296357020735741, 0.0243242084980011, -0.05496078357100487, 0.006160196848213673, -0.02195648103952408, 0.024591293185949326, 0.023621046915650368, -0.010659786872565746, -0.021477244794368744, -0.026677735149860382, -0.03316017985343933, -0.004779759794473648, -0.02120332606136799, -0.015043208375573158, -0.026344774290919304, -0.016641890630126, -0.040152762085199356, 0.7816134691238403, 0.01833208277821541, 0.01866692304611206, 0.024283485487103462, -0.009910893626511097, 0.06659358739852905, 0.03910445421934128, -0.030961841344833374, 0.020247647538781166, -0.04890597239136696, -0.009629367850720882, 0.0068970248103141785, -0.014727366156876087, 0.01966533623635769, 0.025193655863404274, 0.036557670682668686, 0.027201106771826744, -0.007304822094738483, -0.035181522369384766, -0.006961654406040907, 0.04972241818904877, 0.06595446169376373, -0.008148938417434692, 0.02616591565310955, -0.0044144755229353905, -0.03520470857620239, -0.17488758265972137, -0.009951243177056313, -7.319544713813203e-33, 0.032315462827682495, -0.0737956166267395, -0.0021985084749758244, 0.031638868153095245, 0.05370565503835678, 0.009227694012224674, 0.012001157738268375, 0.014361031353473663, 0.01408514566719532, 0.005539874546229839, -0.04293616861104965, -0.021364040672779083, 0.002164569217711687, -0.014243429526686668, -0.0007292470545507967, 0.004395729396492243, -0.043738268315792084, 0.02925279177725315, -0.012587817385792732, 0.017063170671463013, 0.035058971494436264, -0.008914070203900337, -0.08186839520931244, 0.004678517580032349, 0.08221761137247086, -0.022188948467373848, 0.019720902666449547, -0.05285990238189697, 0.029626963660120964, -0.026184609159827232, 0.03023218736052513, 0.018665317445993423, 0.017370903864502907, -0.04018041118979454, 0.0011217687278985977, -0.05444449558854103, -0.009312160313129425, 0.022335529327392578, -0.052958786487579346, 0.010076909326016903, 0.014489452354609966, -0.04248188063502312, 0.035613130778074265, 0.0048535726964473724, -0.04731794446706772, -0.011437846347689629, 0.032576750963926315, 0.04844680055975914, 0.027573423460125923, 0.051076192408800125, 0.030862439423799515, -0.014610730111598969, 0.032590676099061966, -0.00891471654176712, 0.009734430350363255, -0.0140521340072155, -0.03146365284919739, 0.012974783778190613, -0.020648127421736717, -0.0317273810505867, -0.07667246460914612, 0.009081386029720306, -0.043548259884119034, 0.0232569370418787, -0.01843894273042679, 0.03605208173394203, -0.001291987020522356, 0.0702391266822815, -0.014086294919252396, 0.0227638129144907, -0.06142296642065048, 0.021211784332990646, -0.021147293969988823, 0.01707514561712742, -0.008502442389726639, -0.02183670364320278, 0.013940093107521534, 0.02993614412844181, -0.004740534815937281, 0.050060294568538666, -0.010975150391459465, 0.034776072949171066, -0.03924589231610298, 0.010862475261092186, -0.029602885246276855, -0.010183362290263176, 0.03836845979094505, 0.005863722413778305, 0.008362095803022385, 0.02812042273581028, 0.040687765926122665, 0.044134512543678284, 0.01217599306255579, -0.01380855031311512, -0.05627773702144623, 7.306161710629092e-33, -0.018023930490016937, -0.03524235635995865, -0.01609976403415203, 0.021836286410689354, 0.03409711644053459, -0.00438116816803813, 0.04616950452327728, -0.016538867726922035, -0.02347690798342228, -0.0014135148376226425, -0.05473503842949867, 0.01517633255571127, -0.0011799170169979334, -0.0026013432070612907, 0.048264097422361374, -0.022524671629071236, 0.013553879223763943, -0.017707059159874916, 0.030358413234353065, -0.0006104721105657518, 0.021333277225494385, -0.009324691258370876, 0.04047304391860962, 0.015475964173674583, -0.007635579910129309, 0.05268184468150139, 0.009690138511359692, 0.009887822903692722, -0.04615774750709534, -0.0043095131404697895, 0.020605608820915222, -0.019102545455098152, 0.01693381927907467, 0.02142530120909214, -0.051384709775447845, 0.0037258565425872803, -0.030064351856708527, 0.028184806928038597, -0.008026269264519215, -0.02899792604148388, 0.0403527095913887, 0.006399078294634819, 0.015872357413172722, 0.034144576638936996, -0.021936733275651932, 0.013642961159348488, 0.0006759986281394958, -0.018206261098384857, 0.011786730028688908, 0.011355170980095863, -0.03368634730577469, -0.011971354484558105, 0.023643260821700096, 0.017001505941152573, 0.03283517435193062, -0.02737739309668541, -0.0244890209287405, -0.017793461680412292, -0.04744857922196388, 0.01893189549446106, 0.027076661586761475, 0.010002447292208672, 0.04237505793571472, 0.0425543375313282, -0.027613570913672447, -0.016657626256346703, -0.041623830795288086, 0.007188150659203529, -0.009309555403888226, 0.013652430847287178, 0.033046405762434006, -0.028012290596961975, -0.020443491637706757, 0.06976240128278732, 0.010750886984169483, -0.037972137331962585, -0.05557941272854805, -0.005337537731975317, -0.007708676625043154, 0.012921605259180069, 0.004558550659567118, 0.03826520964503288, -0.0010272181825712323, -0.008366107940673828, 0.05788135528564453, 0.017599256709218025, -0.028106000274419785, 0.04270683974027634, 0.02232828550040722, 0.0012766290456056595, -0.040728356689214706, -0.02792452462017536, -0.05142335966229439, 0.010673821903765202, 0.019986800849437714, -1.2384722580804919e-8, 0.01112132053822279, 0.045769333839416504, 0.006727932952344418, 0.043767306953668594, 0.02539285272359848, 0.014152749441564083, -0.032531507313251495, 0.023501968011260033, 0.007460184395313263, -0.0018358604284003377, -0.01364503800868988, -0.042770542204380035, -0.016423523426055908, 0.03595671057701111, 0.051350973546504974, -0.012113829143345356, 0.016874052584171295, 0.002644407330080867, 0.03246278688311577, -0.05097246915102005, -0.004854757338762283, 0.038412027060985565, 0.010346435941755772, -0.03251226246356964, -0.02621323987841606, 0.03726784884929657, 0.012655130587518215, -0.040204018354415894, -0.0008374560857191682, 0.020228387787938118, 0.02528897486627102, -0.04766545817255974, -0.03937068581581116, 0.05132080614566803, -0.04099378362298012, -0.02910996414721012, -0.03850920498371124, -0.02135493978857994, -0.007719155866652727, 0.006833049468696117, -0.04376637935638428, 0.01247414667159319, -0.014269796200096607, -0.04426203668117523, -0.01308901235461235, -0.022225745022296906, 0.007494525983929634, 0.05959320440888405, -0.02037985995411873, -0.01706909015774727, 0.008675352670252323, -0.03295295313000679, 0.03379397094249725, 0.03727709874510765, 0.09996772557497025, 0.006717283744364977, 0.04624170809984207, -0.07023800164461136, 0.012222467921674252, 0.01711568608880043, 0.027654336765408516, 0.015423193573951721, -0.03585730120539665, 0.00930410623550415 ]
docker-exec-environment-variables
https://markhneedham.com/blog/2022/06/16/docker-exec-environment-variables
false
2022-06-23 02:44:37
Apache Pinot: Skipping periodic task: Task: PinotTaskManager
[ "pinot" ]
[ "pinot" ]
As I mentioned in my last blog post, I've been working on an https://dev.startree.ai/docs/pinot/recipes/[Apache Pinot recipe^] showing how to ingest data from S3 and after I'd got that working I moved onto using the https://docs.pinot.apache.org/basics/components/minion#segmentgenerationandpushtask[SegmentGenerationAndPushTask^] to poll S3 and ingest files automatically. It took me longer than it should have to get this working and hopefully this blog post will help you avoid the problems that I had. .Apache Pinot: Skipping periodic task: Task: PinotTaskManager image::{{<siteurl>}}/uploads/2022/06/pinot-no-periodic-task-banner.png[] We're gonna start with a Docker Compose file that spins up Zookeeper and a Pinot Controller, as shown below: .docker-compose.yml [source, yaml] ---- version: '3.7' services: zookeeper: image: zookeeper:3.5.6 hostname: zookeeper container_name: zookeeper ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 pinot-controller: image: apachepinot/pinot:0.10.0 command: "StartController -zkAddress zookeeper:2181" container_name: "pinot-controller" volumes: - ./config:/config - ./input:/input restart: unless-stopped ports: - "9000:9000" depends_on: - zookeeper ---- We can run this by using the `docker-compose up` command. Once we've done that we're going to create an `events` table that ingests files from S3 once a minute. The config for this table is shown below: ./config/table.json [source, json] ---- { "tableName": "events", "tableType": "OFFLINE", "segmentsConfig": { "timeColumnName": "ts", "schemaName": "events", "replication": "1" }, "tableIndexConfig": { "loadMode": "MMAP" }, "tenants": {}, "metadata": {}, "ingestionConfig": { "batchIngestionConfig": { "segmentIngestionType": "APPEND", "segmentIngestionFrequency": "DAILY", "batchConfigMaps": [ { "input.fs.className": "org.apache.pinot.plugin.filesystem.S3PinotFS", "input.fs.prop.region": "eu-west-2", "input.fs.prop.accessKey": "<access-key>", "input.fs.prop.secretKey": "<secret-key>", "inputDirURI": "s3://<bucket-name>", "includeFileNamePattern": "glob:**/*.json", "excludeFileNamePattern": "glob:**/*.tmp", "inputFormat": "json" } ] } }, "task": { "taskTypeConfigsMap": { "SegmentGenerationAndPushTask": { "schedule": "0 */1 * * * ?", "tableMaxNumTasks": 10 } } } } ---- I created this table using the following command: [source, bash] ---- docker exec -it pinot-controller bin/pinot-admin.sh AddTable \ -tableConfigFile /config/table.json \ -schemaFile /config/schema.json -exec ---- I then waited for the JSON documents to be ingested. After a few minutes of not seeing any data in my Pinot table, I started debugging to figure out what was going on. The `SegmentGenerationAndPushTask` is configured by the `PinotTaskManager`, so I looked for any mentions of that class in the Pinot controller logs: [source, bash] ---- docker exec -it pinot-controller grep -rni --color "PinotTaskManager" logs/ ---- .Output [source,text] ---- logs/pinot-all.log:4055:2022/06/20 09:14:38.608 INFO [PeriodicTaskScheduler] [main] Skipping periodic task: Task: PinotTaskManager, Interval: -1s, Initial Delay: 272s ---- Hmmm, the periodic task that would schedule our import job is being ignored, which explains why no data is being ingested. It took me a while to figure out that the task scheduler is disabled by default, and needs to be enabled in the Controller configuration, as shown below: ./config/controller-conf.conf [source, text] ---- controller.access.protocols.http.port=9000 controller.zk.str=zookeeper:2181 controller.helix.cluster.name=PinotCluster controller.host=pinot-controller controller.port=9000 controller.task.scheduler.enabled=true controller.task.frequencyPeriod=5m ---- If we're using Docker, we need to update the command for starting the Pinot Controller to refer to that configuration file, as shown below: [source, yaml] ---- version: '3.7' services: zookeeper: image: zookeeper:3.5.6 hostname: zookeeper container_name: zookeeper ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 pinot-controller: image: apachepinot/pinot:0.10.0 command: "StartController -zkAddress zookeeper:2181 -config /config/controller-conf.conf" container_name: "pinot-controller" volumes: - ./config:/config - ./input:/input restart: unless-stopped ports: - "9000:9000" depends_on: - zookeeper ---- And once we've restarted that container, we can search the logs again: [source, bash] ---- docker exec -it pinot-controller grep -rni --color "PinotTaskManager" logs/ ---- .Output [source,text] ---- 2022/06/23 11:08:34.181 INFO [PeriodicTaskScheduler] [main] Starting periodic task scheduler with tasks: [Task: PinotTaskManager, Interval: 300s, Initial Delay: 280s, Task: RetentionManager, Interval: 21600s, Initial Delay: 183s, Task: OfflineSegmentIntervalChecker, Interval: 86400s, Initial Delay: 215s, Task: RealtimeSegmentValidationManager, Interval: 3600s, Initial Delay: 242s, Task: BrokerResourceValidationManager, Interval: 3600s, Initial Delay: 210s, Task: SegmentStatusChecker, Interval: 300s, Initial Delay: 219s, Task: SegmentRelocator, Interval: 3600s, Initial Delay: 229s, Task: MinionInstancesCleanupTask, Interval: 3600s, Initial Delay: 206s, Task: TaskMetricsEmitter, Interval: 300s, Initial Delay: 263s] ---- Success! Now the `PinotTaskManager` is running and will schedule `SegmentGenerationAndPushTask` as expected.
In this post we'll learn how to solve a problem when periodically importing data into Apache Pinot.
uploads/2022/06/pinot-no-periodic-task-banner.png
[ -0.00483171921223402, -0.02150481753051281, -0.0061694663017988205, 0.04214101657271385, 0.08123137801885605, -0.0016281516291201115, 0.00943337008357048, 0.05711889639496803, -0.01667257584631443, -0.01946362480521202, -0.01841380074620247, -0.024233220145106316, -0.04475197196006775, 0.009888799861073494, -0.00034736841917037964, 0.06520802527666092, 0.07543590664863586, 0.0044608525931835175, 0.016278378665447235, -0.00042599215521477163, 0.03807784616947174, 0.02992987632751465, 0.024891581386327744, 0.03855650871992111, 0.011878605000674725, -0.006789781618863344, -0.017084632068872452, 0.01862453855574131, -0.042988210916519165, -0.008917082101106644, 0.02737879566848278, -0.0009164536604657769, 0.012309808284044266, -0.02404189296066761, -0.0012719143414869905, -0.017684277147054672, -0.040530264377593994, 0.005537953227758408, -0.007374793756753206, 0.027046825736761093, -0.09104105830192566, 0.039816878736019135, 0.02043633721768856, -0.0006454007816500962, 0.003757091937586665, 0.0352877639234066, -0.03431658819317818, 0.015059106983244419, 0.023595543578267097, 0.011252720840275288, -0.08133365958929062, 0.02205525152385235, -0.027194174006581306, 0.015303161926567554, 0.009242472238838673, 0.041825227439403534, -0.0028046288061887026, -0.05204424262046814, 0.028436144813895226, -0.02862527221441269, -0.03206296265125275, -0.004436499904841185, -0.0009038859861902893, -0.006749334745109081, 0.007816826924681664, -0.027960285544395447, -0.0004126538406126201, 0.045579761266708374, -0.031043097376823425, 0.000889361894223839, 0.019902769476175308, -0.0013523095985874534, 0.0006555896834470332, -0.0020277625881135464, 0.03414348512887955, -0.029582887887954712, -0.024995068088173866, 0.07134263217449188, 0.010943199507892132, 0.04382327198982239, -0.03471757471561432, -0.01724812760949135, 0.004376471973955631, 0.017501099035143852, -0.00730267446488142, -0.043646927922964096, -0.028308143839240074, -0.004894849844276905, -0.042124394327402115, 0.08802200853824615, 0.029890207573771477, -0.038997091352939606, 0.0347306914627552, 0.0015066557098180056, 0.004811152350157499, 0.024042189121246338, 0.012909396551549435, -0.0017465529963374138, 0.004434200935065746, -0.0005025698919780552, -0.041172094643116, -0.00142929726280272, 0.014496345072984695, 0.041763775050640106, -0.07325083762407303, -0.05003325641155243, -0.035868089646101, -0.016574328765273094, -0.007575388066470623, 0.015987560153007507, -0.023074626922607422, -0.0024860675912350416, -0.011927920393645763, 0.013194595463573933, -0.07717347145080566, 0.0967334732413292, 0.030378801748156548, -0.03733908385038376, 0.017356717959046364, 0.0011884112609550357, 0.06760963052511215, 0.02072763256728649, -0.026318706572055817, 0.07250485569238663, -0.0043408810161054134, 0.02085583284497261, -0.007673103362321854, 0.03350464254617691, -0.003224765183404088, -0.0684351697564125, -0.03202402964234352, 0.054832469671964645, 0.01682056300342083, 0.004147578962147236, -0.007769851945340633, -0.03042401373386383, -0.006585186347365379, -0.009498817846179008, 0.06743902713060379, 0.04387612268328667, -0.03365546837449074, -0.014939319342374802, 0.022802820429205894, -0.00005242089173407294, 0.05239289999008179, 0.033793795853853226, 0.00107763078995049, -0.05291427671909332, -0.04506431147456169, 0.00625566067174077, 0.01264523807913065, 0.01597866788506508, 0.0259389765560627, -0.03840896114706993, 0.015812911093235016, 0.0680999830365181, 0.023933840915560722, 0.01683756709098816, -0.03409764915704727, 0.0023710126988589764, 0.05639372393488884, 0.02356635220348835, 0.014394997619092464, 0.03466593101620674, 0.022756224498152733, -0.04645509645342827, -0.010017872788012028, 0.05839402228593826, -0.003252622904255986, -0.0026493926998227835, -0.04903148487210274, -0.03284324333071709, 0.06107582151889801, -0.053195975720882416, 0.01306911837309599, 0.04567001014947891, 0.08177118003368378, 0.0025786201003938913, 0.02705840952694416, 0.01857949234545231, -0.08082149922847748, 0.07508070766925812, 0.02124311402440071, 0.01167647447437048, 0.02374403364956379, -0.02261245995759964, 0.06313642859458923, 0.013806326314806938, 0.036212313920259476, 0.029269011691212654, -0.08249538391828537, -0.09507747739553452, 0.004660132806748152, 0.01353174727410078, 0.061504971235990524, -0.0010695955716073513, 0.003149246796965599, 0.07083307206630707, 0.02126375027000904, 0.013974248431622982, -0.002780662849545479, 0.02370232716202736, 0.00945588480681181, -0.07949449121952057, -0.08768216520547867, 0.022813279181718826, 0.013045292347669601, -0.052243687212467194, -0.030391953885555267, 0.015429080463945866, -0.06087128072977066, -0.015107983723282814, 0.06022563949227333, -0.04239387810230255, 0.07657286524772644, 0.035008903592824936, 0.0467895083129406, -0.03544241562485695, 0.05792395398020744, -0.051065899431705475, 0.03756307065486908, 0.02075832523405552, -0.014452577568590641, 0.0013123982353135943, 0.0028076472226530313, 0.1066729947924614, 0.07635217159986496, -0.01039007119834423, -0.054658252745866776, 0.05144152045249939, 0.009572765789926052, -0.047573886811733246, -0.014741809107363224, -0.001954215345904231, -0.004704611841589212, -0.002473362721502781, -0.023842042312026024, -0.014851141721010208, -0.0023783990181982517, -0.013746785931289196, 0.020915614441037178, 0.076039157807827, -0.022886350750923157, 0.05278422683477402, 0.006988207343965769, 0.008685771375894547, -0.012244164943695068, -0.029441503807902336, -0.07533642649650574, -0.022331397980451584, 0.0074802543967962265, -0.007974041625857353, 0.04473375529050827, -0.028903232887387276, -0.0355074368417263, -0.05431300401687622, -0.05136929452419281, 0.014003237709403038, 0.03624410927295685, 0.06309493631124496, -0.024020982906222343, 0.049781329929828644, -0.04980799928307533, 0.007093752734363079, -0.024208346381783485, -0.04837079718708992, -0.027068492025136948, -0.004767637234181166, 0.0026934638153761625, 0.030141795054078102, 0.019619008526206017, -0.005917650647461414, 0.01844162307679653, -0.0022835582494735718, 0.024471713230013847, -0.011768048629164696, 0.009073562920093536, 0.002688049105927348, 0.01705535128712654, -0.00907314196228981, -0.008333886973559856, 0.047401659190654755, -0.04990006983280182, 0.01081046462059021, -0.007107914891093969, -0.0571783147752285, 0.041026853024959564, -0.06349926441907883, -0.03669629245996475, -0.024489006027579308, 0.044744279235601425, 0.014083878137171268, 0.02449697256088257, -0.004629090428352356, 0.06168483942747116, 0.016725189983844757, -0.0060957083478569984, 0.013905706815421581, -0.01041196845471859, 0.05128162354230881, -0.012548907659947872, 0.022835737094283104, 0.038242157548666, 0.0027232414577156305, -0.01227929163724184, -0.03043118491768837, 0.021949179470539093, -0.05348777770996094, -0.29996824264526367, 0.046775978058576584, -0.004932033363729715, -0.015249733813107014, -0.0001325770135736093, -0.0007766791386529803, 0.007757879793643951, -0.032582711428403854, 0.0030443312134593725, 0.02202974632382393, -0.0347309373319149, -0.009987904690206051, -0.01971798576414585, 0.015496117994189262, 0.005348167847841978, 0.03175031766295433, -0.019413357600569725, -0.06603851914405823, -0.0012679818319156766, -0.002904079155996442, -0.007837683893740177, -0.05132945254445076, -0.001079981797374785, 0.0310565996915102, 0.022430865094065666, 0.034975357353687286, -0.06425988674163818, 0.05963628366589546, -0.039567917585372925, -0.018901029601693153, 0.008876577019691467, -0.02771114371716976, 0.010799326002597809, -0.0023949777241796255, 0.008801361545920372, -0.010539455339312553, 0.02677658013999462, 0.0061708055436611176, 0.01909319870173931, -0.003069054102525115, -0.016121050342917442, -0.06631167232990265, -0.009896582923829556, 0.021004166454076767, 0.07984883338212967, -0.013052425347268581, -0.07721147686243057, -0.006442718673497438, -0.036809004843235016, 0.08415054529905319, -0.026110179722309113, -0.055526331067085266, -0.027693597599864006, 0.008761592209339142, -0.01962740533053875, 0.029378741979599, -0.0004516159533523023, 0.005986784119158983, -0.03487088903784752, -0.040767915546894073, -0.007310354616492987, -0.03471929207444191, -0.02011786960065365, -0.035287726670503616, -0.026659468188881874, -0.043948713690042496, -0.05629889667034149, 0.02125471644103527, 0.07095035165548325, 0.03380044549703598, -0.03289845213294029, 0.044342637062072754, -0.01852549985051155, -0.11843361705541611, -0.024407148361206055, -0.02145567163825035, -0.07398652285337448, -0.0014516663504764438, -0.02685539796948433, 0.05617038160562515, -0.0444507822394371, -0.028568804264068604, 0.020738115534186363, 0.02274363860487938, 0.016684701666235924, -0.021068258211016655, 0.014129900373518467, -0.03825686499476433, 0.007457988802343607, -0.007945261895656586, 0.04521478712558746, -0.05172715708613396, -0.030867455527186394, -0.021128982305526733, -0.004863158334046602, 0.06059626117348671, 0.011967754922807217, 0.004645020700991154, -0.006662281230092049, 0.04393801465630531, 0.0307733453810215, -0.04137227311730385, 0.02091205306351185, -0.009459611028432846, -0.004811487160623074, 0.006233553867787123, -0.04982737824320793, 0.003937561064958572, 0.018232014030218124, 0.04281896725296974, 0.02796146832406521, -0.048892904072999954, 0.02074967883527279, -0.06309672445058823, 0.0024625046644359827, 0.025397401303052902, 0.032834675163030624, 0.02751847729086876, 0.03161302208900452, 0.0006046058842912316, -0.05800768733024597, 0.018570205196738243, 0.013934770599007607, -0.014330309815704823, -0.025432750582695007, -0.03618660196661949, 0.00819510966539383, -0.009346505627036095, 0.009875892661511898, -0.0049018943682312965, -0.021208854392170906, 0.03428308293223381, 0.047949932515621185, -0.01346196886152029, 0.022737212479114532, -0.034719884395599365, -0.04222232848405838, -0.04442966356873512, 0.03886599838733673, 0.0264405757188797, -0.028722578659653664, 0.01688426546752453, -0.015009996481239796, 0.020131194964051247, 0.04095207527279854, 0.018399149179458618, 0.01950262486934662, -0.0241975300014019, 0.01878080703318119, 0.013354554772377014, -0.0069892266765236855, -0.017200488597154617, -0.0040283058770000935, -0.029656466096639633, -0.024989353492856026, -0.043368253856897354, 0.04189246892929077, 0.003068410325795412, -0.0032290818635374308, -0.033045679330825806, 0.005245574284344912, -0.06956055760383606, -0.012278654612600803, -0.028815818950533867, -0.01473710685968399, 0.0505891777575016, 0.010264391079545021, 0.006599636282771826, 0.01261165365576744, -0.00006833681982243434, 0.010744908824563026, 0.010986829176545143, -0.023404449224472046, 0.012180223129689693, -0.028380556032061577, -0.015875115990638733, 0.022680092602968216, 0.02243976667523384, 0.018505355343222618, -0.012498327530920506, 0.005161052569746971, -0.004378038924187422, 0.025096843019127846, 0.0008479652460664511, 0.051068052649497986, 0.047847989946603775, -0.010454036295413971, 0.01151062548160553, 0.002807473298162222, -0.009492401964962482, -0.03823777660727501, 0.022727536037564278, -0.00914820283651352, 0.017700335010886192, -0.01891445368528366, -0.05245000496506691, 0.07392699271440506, -0.0021451821085065603, -0.005553288385272026, 0.016890624538064003, -0.0069410367868840694, -0.006566738709807396, -0.05227963253855705, 0.051629241555929184, 0.10678620636463165, -0.05540899559855461, 0.009726827032864094, 0.017396826297044754, 0.018969282507896423, -0.0081527354195714, 0.025339005514979362, -0.053412094712257385, -0.0037898505106568336, -0.02583344280719757, 0.032510530203580856, -0.056498754769563675, -0.03938613086938858, -0.022463267669081688, 0.001451561925932765, 0.020281542092561722, 0.001821689773350954, 0.004632049705833197, -0.02424093522131443, -0.011851407587528229, -0.03444107621908188, 0.04754079133272171, 0.00797362718731165, -0.017915256321430206, 0.013149484992027283, -0.030068838968873024, 0.011482303030788898, -0.038577739149332047, 0.012870903126895428, 0.018521374091506004, -0.03673318028450012, -0.005419648252427578, -0.043723031878471375, 0.014997459016740322, -0.005273750983178616, 0.09052476286888123, 0.004823119845241308, -0.005157507490366697, -0.03462568297982216, -0.00038310702075250447, -0.02737811766564846, -0.019799059256911278, 0.0018939825240522623, -0.005690188147127628, 0.044724006205797195, 0.05336121469736099, 0.01113023329526186, 0.0035628078039735556, -0.013735209591686726, -0.021420879289507866, 0.038892462849617004, -0.06078025698661804, -0.028380010277032852, -0.004190907347947359, -0.06872005760669708, 0.02017354778945446, 0.0001501590304542333, 0.031035546213388443, -0.05946232005953789, 0.04801703989505768, 0.039393603801727295, 0.007389507722109556, 0.030160922557115555, -0.03351449593901634, 0.0314594991505146, -0.016281606629490852, 0.0065059904009103775, -0.07572104781866074, -0.0037604705430567265, 0.03877374902367592, -0.023311272263526917, -0.005437169224023819, 0.00339434202760458, -0.05026165768504143, 0.027890989556908607, -0.06922566890716553, -0.03913036361336708, 0.05470876768231392, -0.014931597746908665, 0.014173590578138828, -0.012579033151268959, -0.046174582093954086, 0.018217358738183975, 0.011917809955775738, -0.030550969764590263, 0.0002419275406282395, 0.00658765435218811, 0.05507930368185043, -0.0037994871381670237, 0.015264630317687988, -0.006650074850767851, -0.04679028317332268, 0.07875033468008041, -0.009374202229082584, -0.01780698262155056, 0.05836785212159157, -0.024290110915899277, 0.044966623187065125, 0.01992315985262394, 0.0025856278371065855, 0.017153140157461166, 0.011586763896048069, -0.0402093343436718, -0.05935507267713547, 0.030358798801898956, -0.0028040658216923475, 0.00746476836502552, -0.04020910710096359, 0.0553494431078434, 0.013728262856602669, -0.04155997559428215, -0.05016322061419487, 0.016441326588392258, -0.027706794440746307, -0.026542166247963905, -0.0014622346498072147, 0.03474217653274536, -0.05808434262871742, 0.033705513924360275, -0.009477803483605385, -0.0050020767375826836, 0.07114535570144653, 0.009813512675464153, -0.010682862251996994, 0.051092132925987244, 0.08090555667877197, 0.07770117372274399, 0.011986823752522469, 0.006898801773786545, 0.06304093450307846, -0.026234220713377, -0.036483172327280045, -0.01928703300654888, -0.012476368807256222, -0.03709420561790466, -0.024799194186925888, 0.02997984178364277, 0.06008636951446533, -0.031208019703626633, 0.07309725135564804, -0.005603958386927843, -0.013341096229851246, -0.007595378439873457, -0.007257855497300625, 0.01617901772260666, 0.028669748455286026, -0.0016134175239130855, 0.04310182109475136, -0.00705319968983531, -0.040812086313962936, -0.008024740032851696, -0.000766273180488497, -0.041524872183799744, 0.012840543873608112, -0.03136639669537544, 0.009723600000143051, 0.017456062138080597, 0.008087635971605778, 0.06204795837402344, -0.03477812558412552, 0.010712814517319202, 0.011747668497264385, 0.04073987901210785, 0.0016248360043391585, 0.01268756203353405, -0.04572271183133125, -0.01363299135118723, -0.027105795219540596, -0.02300974726676941, -0.024049753323197365, -0.0035291893873363733, -0.013754570856690407, 0.021698791533708572, -0.03493308648467064, -0.0052023413591086864, 0.022987063974142075, -0.019967885687947273, -0.04616467282176018, -0.037960514426231384, -0.044468000531196594, -0.06050604209303856, -0.05194329470396042, -0.016714803874492645, 0.006354845594614744, -0.00014155633107293397, -0.03451213985681534, -0.018579674884676933, -0.009160143323242664, 0.0035196037497371435, 0.023753641173243523, -0.05251755937933922, -0.027960989624261856, 0.021298911422491074, 0.03330133855342865, 0.0030010405462235212, 0.012948187999427319, 0.07638663798570633, 0.011676225811243057, 0.006189984269440174, -0.03426623344421387, 0.008356509730219841, 0.04624983295798302, -0.0038110394962131977, -0.005396832711994648, -0.0728815495967865, 0.034799735993146896, 0.03341533616185188, 0.004276538733392954, -0.054068200290203094, 0.015563243068754673, 0.03241344168782234, -0.003782438114285469, 0.06119750812649727, -0.02607445977628231, 0.016889085993170738, -0.07061265408992767, -0.02500663883984089, -0.03289298340678215, -0.005429076496511698, 0.05165372043848038, -0.005742290057241917, 0.0698920339345932, 0.042191118001937866, -0.03759501129388809, -0.006247672718018293, -0.006892018485814333, -0.000352653005393222, 0.028268463909626007, -0.0380609929561615, -0.03223106637597084, -0.02858216129243374, -0.05730469897389412, -0.024472424760460854, 0.023068593814969063, -0.005432600621134043, -0.04093184322118759, 0.02050314098596573, -0.01711823232471943, -0.026465274393558502, 0.003959937021136284, -0.0467168428003788, 0.003108892124146223, -0.007365534082055092, -0.01672527939081192, -0.021673021838068962, 0.007465467322617769, -0.01392887532711029, -0.026377318426966667, 0.008905435912311077, -0.038139939308166504, -0.004982673563063145, -0.02825215645134449, 0.04398377612233162, 0.05760485678911209, -0.007041924633085728, -0.014271830208599567 ]
[ -0.05748140066862106, -0.036286611109972, -0.016911180689930916, -0.02853992022573948, 0.07440397888422012, -0.06325982511043549, -0.008554777130484581, 0.004766720812767744, -0.02723495289683342, -0.00535213528200984, 0.01311407145112753, -0.05084078758955002, 0.0075130825862288475, -0.01588968187570572, 0.07853318005800247, -0.0069350884296, 0.026559730991721153, -0.05609871819615364, -0.010249081999063492, 0.02675272338092327, -0.013557931408286095, -0.040810126811265945, -0.06141643598675728, -0.05173264071345329, 0.012216538190841675, 0.03962382301688194, 0.017827998846769333, -0.006982550956308842, -0.03486797958612442, -0.21710586547851562, 0.03294768184423447, -0.02940288744866848, -0.008187524043023586, -0.02591961994767189, -0.005272462964057922, 0.028716932982206345, 0.02440059185028076, 0.0038028848357498646, 0.03947317227721214, 0.04561769589781761, 0.0314551405608654, 0.010885905474424362, -0.06843450665473938, 0.0036620604805648327, -0.018575189635157585, -0.016774319112300873, -0.016216974705457687, -0.00567066902294755, 0.04502583295106888, -0.023969274014234543, -0.06939108669757843, -0.012083464302122593, -0.003914280328899622, -0.03476420417428017, 0.004792742431163788, 0.016038713976740837, 0.04564686119556427, 0.03511553257703781, 0.034819893538951874, 0.015751229599118233, 0.01792925037443638, -0.005308822263032198, -0.14516404271125793, 0.1128246933221817, 0.0350843109190464, 0.04377545788884163, -0.03893918916583061, 0.027735233306884766, -0.015434491448104382, 0.05976574495434761, -0.006970380432903767, -0.009069886058568954, -0.02577832341194153, 0.05919201299548149, 0.015061545185744762, -0.017344243824481964, -0.006633741781115532, 0.060682594776153564, -0.010088772512972355, -0.016743596643209457, -0.07533837109804153, -0.011115222238004208, -0.008836254477500916, -0.0021301477681845427, -0.04749084264039993, 0.018918730318546295, -0.01518689189106226, 0.0624377466738224, -0.0045354003086686134, 0.025369923561811447, 0.020375560969114304, 0.002451180247589946, 0.05194718390703201, 0.007144767791032791, -0.08849211782217026, 0.027515601366758347, -0.008269631303846836, -0.010666713118553162, -0.05985534191131592, 0.40296226739883423, -0.007143286056816578, 0.005989400669932365, 0.03444771096110344, -0.005179826635867357, 0.014610919170081615, 0.022687319666147232, -0.039015255868434906, -0.029979942366480827, 0.027538152411580086, 0.0017991320928558707, 0.023104891180992126, 0.0017581431893631816, 0.08398391306400299, -0.05671776086091995, 0.02627553418278694, 0.025256246328353882, -0.0009375865920446813, 0.017626263201236725, -0.048906534910202026, 0.04066110774874687, -0.008319654501974583, 0.014329097233712673, 0.03629516810178757, 0.02033926360309124, 0.01822073385119438, 0.010764180682599545, 0.04480089247226715, 0.02293945662677288, 0.024637017399072647, 0.022570176050066948, 0.039259959012269974, -0.037028972059488297, -0.06959669291973114, -0.013621360994875431, 0.01065331231802702, -0.0051661292091012, 0.04456029459834099, -0.05214354023337364, 0.00661994656547904, -0.029792705550789833, -0.03068254329264164, -0.028711462393403053, 0.08027464151382446, -0.07124911993741989, 0.0024593458510935307, 0.10476060956716537, 0.019036753103137016, -0.045048777014017105, -0.006147632375359535, -0.05652608349919319, -0.03593151643872261, 0.02080792747437954, 0.031816981732845306, -0.055547766387462616, 0.0091346874833107, 0.029578430578112602, 0.04467008262872696, 0.01164811011403799, -0.04739576578140259, 0.018492983654141426, -0.025102820247411728, -0.03647354990243912, -0.024180974811315536, -0.01394067145884037, 0.06774940341711044, -0.12928621470928192, -0.014891150407493114, 0.017843153327703476, -0.007838744670152664, -0.005966650787740946, -0.0118410000577569, 0.05867544189095497, -0.04296370968222618, -0.028627846390008926, 0.04862459376454353, -0.028834549710154533, -0.021468112245202065, 0.010856104083359241, 0.06239870935678482, 0.02617269568145275, -0.0156865194439888, 0.016224408522248268, -0.0025549086276441813, -0.01877206563949585, -0.032040465623140335, -0.07629763334989548, -0.053736962378025055, -0.006078616715967655, -0.03963271901011467, -0.017977150157094002, -0.034378428012132645, -0.05662502720952034, -0.03913635015487671, 0.09957945346832275, -0.00017245954950340092, -0.04153091832995415, 0.01870916038751602, -0.0052335518412292, -0.006253804080188274, -0.03516582027077675, 0.007561082020401955, 0.016818257048726082, 0.019512571394443512, 0.04771709442138672, -0.03073021210730076, 0.04685012996196747, 0.0030620028264820576, -0.03916982188820839, 0.05490133911371231, 0.04833981767296791, -0.03442351892590523, 0.012458271346986294, -0.024938981980085373, 0.033894237130880356, -0.008692886680364609, 0.01309848204255104, 0.0005675735301338136, -0.03230713680386543, 0.027488064020872116, 0.037262123078107834, -0.014148912392556667, -0.019551509991288185, -0.04193044826388359, -0.36185649037361145, -0.05537496134638786, -0.038996439427137375, -0.014217352494597435, -0.0009879489662125707, -0.04120125621557236, 0.011641616933047771, -0.030062805861234665, -0.007328378036618233, -0.020191414281725883, 0.06895608454942703, -0.03552790731191635, 0.03781396523118019, -0.052457164973020554, 0.03347807005047798, 0.0325668603181839, -0.01834907941520214, -0.019455673173069954, -0.009207678027451038, 0.03901444375514984, 0.0033449300099164248, -0.04206152632832527, -0.015377252362668514, -0.00818570889532566, 0.00835897121578455, -0.027769554406404495, 0.12031210958957672, 0.016041219234466553, 0.046249907463788986, -0.052258703857660294, 0.02259395644068718, 0.042651765048503876, 0.010297824628651142, -0.07230507582426071, -0.03393276408314705, -0.02892993576824665, 0.010366452857851982, 0.0008927766466513276, -0.012652860954403877, 0.0031318373512476683, -0.065324567258358, 0.07350383698940277, -0.04546653479337692, -0.09163189679384232, -0.019268175587058067, -0.002760842675343156, 0.012846024706959724, 0.0043320185504853725, -0.025717800483107567, 0.040627527981996536, 0.02491227351129055, 0.028885522857308388, 0.005257878918200731, 0.007854762487113476, 0.02227949909865856, 0.002835405059158802, -0.05047178640961647, -0.014551212079823017, 0.0025674260687083006, 0.0008768726838752627, 0.021858083084225655, 0.07026315480470657, 0.01007185410708189, -0.05442346632480621, -0.006602576933801174, 0.055421408265829086, -0.02462739311158657, -0.014502943493425846, 0.037980448454618454, -0.0016980563523247838, -0.0190962553024292, 0.07188871502876282, 0.021460289135575294, 0.008654770441353321, 0.033241454511880875, 0.03392995148897171, -0.02298036217689514, -0.025016503408551216, 0.008530828170478344, -0.0074319601990282536, 0.047365859150886536, -0.031083546578884125, 0.05886107683181763, -0.039651352912187576, 0.010064548812806606, 0.09483806043863297, -0.016180094331502914, -0.009623955935239792, 0.08373047411441803, 0.013385988771915436, -0.022265102714300156, 0.008149797096848488, -0.021661443635821342, -0.04432741552591324, 0.08990108221769333, 0.0358571819961071, -0.27116861939430237, 0.05314086377620697, 0.05551530048251152, 0.04986567422747612, 0.015002848580479622, -0.0011489135213196278, 0.023909904062747955, -0.046966616064310074, 0.008425344713032246, 0.028633588925004005, -0.002727746730670333, 0.03660540655255318, 0.0169492419809103, 0.022906897589564323, 0.01601630449295044, -0.0015036603435873985, 0.022926395758986473, 0.027346471324563026, 0.018534237518906593, -0.05608566850423813, 0.019025595858693123, -0.0021619671024382114, 0.17514295876026154, 0.057131048291921616, -0.024187250062823296, 0.045596037060022354, -0.014813236892223358, 0.02890527807176113, 0.014812342822551727, 0.03176336735486984, 0.006287188269197941, -0.030094105750322342, 0.04432133212685585, -0.016467785462737083, 0.05476939305663109, -0.05500585585832596, -0.013109874911606312, 0.010526971891522408, 0.019609108567237854, -0.03439280763268471, -0.03402533382177353, 0.022522741928696632, -0.06224700063467026, 0.011017784476280212, 0.053073082119226456, -0.06115864962339401, -0.019633466377854347, -0.03835039958357811, -0.027693407610058784, 0.01957898586988449, -0.018944621086120605, -0.06706203520298004, -0.00858101062476635, -0.01452952902764082, -0.000998141011223197, 0.06938135623931885, 0.019945615902543068, -0.0203357245773077, -0.022306013852357864, 0.05356089398264885, 0.0022455002181231976, -0.050592802464962006, 0.10585159063339233, 0.024997297674417496, 0.04186045005917549 ]
[ 0.03138640895485878, -0.02273974008858204, -0.03603668883442879, 0.013243553228676319, 0.036823857575654984, -0.0015385136939585209, 0.00984481442719698, 0.01189520675688982, 0.018451813608407974, -0.006879343651235104, -0.010715808719396591, 0.005949587561190128, -0.013290255330502987, 0.0075164418667554855, 0.001841675490140915, -0.06198129057884216, 0.01838589459657669, 0.007196716032922268, 0.03241724520921707, -0.010031395591795444, -0.03494493290781975, 0.006662006955593824, 0.03346831724047661, 0.016302837058901787, -0.0017642818856984377, 0.00856298953294754, -0.05455179512500763, -0.012827319093048573, 0.012925643473863602, -0.10285132378339767, 0.004125743173062801, -0.01149982400238514, 0.0428726002573967, -0.030094044283032417, 0.023681968450546265, -0.004461632110178471, 0.017906945198774338, -0.014769770205020905, -0.022626321762800217, -0.009737079031765461, 0.03876253217458725, -0.03192899376153946, -0.026296932250261307, -0.038187168538570404, -0.012634556740522385, -0.016018906608223915, -0.07310079038143158, -0.060950908809900284, -0.016696646809577942, 0.03400256112217903, -0.019850829616189003, -0.007399012800306082, 0.0011222953908145428, -0.014291627332568169, 0.029951078817248344, -0.010907997377216816, -0.013936077244579792, 0.0030108417849987745, 0.0066416626796126366, -0.006885908544063568, 0.02810046076774597, -0.00910019688308239, -0.012847648933529854, -0.036719080060720444, 0.03909230977296829, -0.04097164794802666, -0.02363029681146145, -0.026799099519848824, 0.027065036818385124, 0.008006494492292404, 0.0100499726831913, 0.0020906594581902027, -0.02434418722987175, -0.029672276228666306, -0.022949643433094025, 0.008346098475158215, 0.023507051169872284, -0.000778952962718904, -0.019247595220804214, -0.015150957740843296, -0.04926850646734238, 0.001300692674703896, -0.025731097906827927, 0.03463424742221832, -0.04335571825504303, -0.015539913438260555, -0.02998993918299675, 0.03917299583554268, 0.0018540375167503953, -0.04868205264210701, -0.04072951152920723, 0.004272062331438065, -0.026190893724560738, 0.004137108568102121, -0.05125623941421509, -0.012844757176935673, -0.008233675733208656, -0.03142808750271797, -0.030667876824736595, 0.8208972215652466, 0.026741541922092438, 0.03559143468737602, 0.008304472081363201, 0.003658972680568695, 0.06616188585758209, 0.014300305396318436, -0.05491495504975319, -0.012082159519195557, -0.042809344828128815, -0.010576380416750908, 0.01833861693739891, 0.030142219737172127, 0.03191548213362694, 0.015923257917165756, 0.004950975067913532, 0.03090718202292919, -0.0024642478674650192, -0.01978444680571556, -0.003774566575884819, 0.07309343665838242, 0.053009942173957825, -0.011988740414381027, 0.005920172668993473, 0.015115408226847649, 0.01927568018436432, -0.1548471450805664, 0.022516077384352684, -6.252537471312274e-33, 0.034156907349824905, -0.07574291527271271, 0.014388815499842167, 0.008348827250301838, 0.05229165405035019, -0.009471982717514038, 0.014881081879138947, -0.00974198430776596, 0.012355314567685127, -0.014728911221027374, -0.010002881288528442, -0.03513335436582565, -0.017095787450671196, -0.02103709802031517, 0.018719064071774483, -0.02523031271994114, -0.024372410029172897, 0.01401402149349451, 0.0066937548108398914, -0.009727686643600464, 0.005526400171220303, -0.006415059324353933, -0.049549464136362076, 0.007074735127389431, 0.06371673196554184, -0.0015013276133686304, 0.02954680845141411, -0.0446845144033432, -0.0006087517831474543, -0.027514144778251648, 0.02567708119750023, -0.011015159077942371, -0.005114497151225805, -0.03550628572702408, -0.009247721172869205, -0.051294781267642975, -0.004421370569616556, 0.013275339268147945, -0.07270126789808273, -0.008087863214313984, 0.004753527697175741, 0.006597700994461775, -0.014522605575621128, -0.010894172824919224, -0.041832685470581055, 0.01088650431483984, 0.05213705077767372, 0.06188647076487541, 0.001092605642043054, -0.008002309128642082, 0.04764125496149063, 0.0032762750051915646, 0.027623042464256287, -0.01487224455922842, -0.0004253392107784748, 0.018030432984232903, -0.007248543668538332, 0.008673425763845444, -0.0013885204680263996, -0.013435887172818184, -0.023089660331606865, -0.0209638811647892, -0.04322229325771332, 0.03991595655679703, -0.005647912621498108, 0.04380956292152405, 0.010488249361515045, 0.015220697969198227, 0.014526075683534145, 0.04225930944085121, -0.049176473170518875, 0.01118998508900404, -0.007230630610138178, -0.0015382315032184124, 0.02292177453637123, -0.025122927501797676, 0.00026088787126354873, 0.022238055244088173, -0.016869354993104935, 0.019490716978907585, -0.009867205284535885, 0.02027895115315914, -0.0219566710293293, -0.0010949686402454972, -0.03422931954264641, -0.021547485142946243, 0.045063357800245285, 0.006482165772467852, -0.025997567921876907, 0.0018295865738764405, 0.049115970730781555, 0.06414198875427246, 0.02031165361404419, -0.024371609091758728, -0.03328659385442734, 6.996593069288134e-33, -0.03598432242870331, -0.023214668035507202, -0.011462570168077946, 0.01791074499487877, 0.022846244275569916, -0.019323011860251427, 0.022443465888500214, 0.03654130548238754, 0.017835106700658798, 0.03172401711344719, -0.05379980802536011, 0.019334614276885986, -0.021232005208730698, -0.011960245668888092, 0.039867084473371506, 0.017757106572389603, 0.02960391342639923, -0.007600042037665844, 0.03368277847766876, -0.000846928043756634, 0.01678212359547615, 0.022407816722989082, 0.03134556859731674, 0.006716050207614899, 0.0027308061253279448, 0.04933854937553406, 0.006585230119526386, -0.0010487043764442205, -0.034892488270998, -0.017658118158578873, 0.03140654042363167, -0.05083620175719261, 0.007617365103214979, -0.016317319124937057, -0.03279690444469452, 0.011596874333918095, -0.0208372063934803, 0.022329915314912796, -0.005869671702384949, -0.011262303218245506, 0.03088749386370182, 0.02600940689444542, 0.008621174842119217, 0.034512441605329514, -0.02186375856399536, 0.027737880125641823, 0.022580083459615707, 0.00303301471285522, -0.009288566187024117, 0.02937731146812439, -0.027349088340997696, -0.042715080082416534, 0.005121171940118074, 0.022898167371749878, 0.03862284868955612, -0.01697380281984806, -0.004471381660550833, -0.02918262965977192, -0.04924033582210541, -0.011046405881643295, -0.0028521802742034197, 0.00908094272017479, 0.02113664709031582, 0.033253882080316544, -0.004656402859836817, 0.004852775949984789, -0.05694304406642914, -0.0015487511409446597, 0.005084126256406307, -0.002820684341713786, 0.03017396293580532, 0.02646414004266262, 0.004787716548889875, 0.0668991431593895, 0.024116018787026405, -0.007102689240127802, -0.04277364909648895, 0.02541407011449337, 0.0015251260483637452, -0.011625496670603752, -0.004896494094282389, 0.031212959438562393, -0.007684864103794098, -0.013245752081274986, 0.04165602847933769, 0.0069001298397779465, -0.04319482296705246, 0.05178939551115036, 0.0038089898880571127, 0.00028797300183214247, -0.009792841039597988, -0.01643824204802513, -0.019813602790236473, 0.034631043672561646, 0.04771190136671066, -1.2169567575881501e-8, 0.014845320954918861, 0.01598368026316166, -0.02411460690200329, 0.04331057146191597, 0.043601177632808685, 0.011111142113804817, -0.02570854127407074, 0.022601377218961716, 0.007109378464519978, 0.001979563618078828, 0.0253092423081398, -0.006489079911261797, -0.00990334153175354, 0.013795768842101097, 0.026068774983286858, -0.040340129286050797, 0.03600272908806801, -0.01771101914346218, 0.011202622205018997, -0.02562659978866577, -0.004611151292920113, 0.04923931881785393, 0.01408312190324068, -0.05012252554297447, -0.016251515597105026, 0.02066069282591343, 0.00901924166828394, -0.05784023925662041, -0.017717422917485237, -0.007635917980223894, 0.0072737387381494045, -0.03109470009803772, -0.0381489023566246, 0.0604843832552433, -0.052053824067115784, -0.034289322793483734, -0.01156513299793005, 0.007519362960010767, 0.02258266881108284, 0.00848591048270464, -0.01082769688218832, -0.003420394379645586, -0.024796681478619576, -0.0381929948925972, -0.038586605340242386, -0.005971197038888931, -0.033564306795597076, 0.05102374404668808, 0.005501849111169577, -0.015751102939248085, -0.016733849421143532, -0.023760639131069183, 0.04975402355194092, 0.00662310142070055, 0.06746464222669601, 0.012179589830338955, 0.040989819914102554, -0.04774045944213867, 0.01588691957294941, -0.011727381497621536, 0.040744632482528687, 0.03997856006026268, -0.021744482219219208, 0.001996958162635565 ]
apache-pinot-skipping-periodic-task-pinot-task-manager
https://markhneedham.com/blog/2022/06/23/apache-pinot-skipping-periodic-task-pinot-task-manager
false
2022-12-02 02:44:37
Python: Sorting lists of dictionaries with sortedcontainers
[ "python", "sortedcontainers" ]
[ "python" ]
I was recently working on a Kafka streams data generator, where I only wanted to publish events once the time on those events had been reached. To solve this problem I needed a sorted list and in this blog post we're going to explore how I went about doing this. [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/RmNNlC7zhZw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> ++++ ==== == Unsorted lists We're going to start out by created a list of dictionaries that contain a timestamp and name, as shown below: [source, python] ---- import datetime as dt now = dt.datetime.now() items = [ {"timestamp": now, "name": "Mark"}, {"timestamp": now + dt.timedelta(hours=1), "name": "Dunith"}, {"timestamp": now - dt.timedelta(minutes=27), "name": "Michael"} ] ---- If we want to print out this list, we could do so using a for loop: [source, python] ---- for item in items: print(item) ---- We'd see the following output: .Output [source, json] ---- {'timestamp': datetime.datetime(2022, 11, 24, 7, 36, 31, 757235), 'name': 'Mark'} {'timestamp': datetime.datetime(2022, 11, 24, 8, 36, 31, 757235), 'name': 'Dunith'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 9, 31, 757235), 'name': 'Michael'} ---- As you'd probably expect, this is sorted in insertion order. If we want to sort the results we could wrap `items` in the `sorted` function, like this: [source, python] ---- for item in sorted(items, key=lambda x: x["timestamp"]): print(item) ---- In this code sample we're sorting by the `timestamp` property, and if we run this code, we'll see the following output: .Output [source, json] ---- {'timestamp': datetime.datetime(2022, 11, 24, 7, 9, 31, 757235), 'name': 'Michael'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 36, 31, 757235), 'name': 'Mark'} {'timestamp': datetime.datetime(2022, 11, 24, 8, 36, 31, 757235), 'name': 'Dunith'} ---- This time Michael comes first, then Mark, and finally Dunith. When you want to do some adhoc sorting, this is a reasonable approach, but I wanted a list that's always sorted. == sortedcontainers Enter the https://grantjenks.com/docs/sortedcontainers/[sortedcontainers^] library, a collections library written in Python that's super fast and supports sorted lists, maps, and dictionaries. We're only going to use the list, so let's import that: [source, python] ---- from sortedcontainers import SortedList ---- When we create an instance of `SortedList` we need to pass in a lamba expression that describes our sorting key: [source, python] ---- sorted_items = SortedList(key=lambda x: x["timestamp"]) ---- We can have it sort an existing list using the `update` function: [source, python] ---- sorted_items.update(items) ---- Let's print that list: [source, python] ---- for item in sorted_items: print(item) ---- .Output [source, json] ---- {'timestamp': datetime.datetime(2022, 11, 24, 7, 9, 31, 757235), 'name': 'Michael'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 36, 31, 757235), 'name': 'Mark'} {'timestamp': datetime.datetime(2022, 11, 24, 8, 36, 31, 757235), 'name': 'Dunith'} ---- So far so good. We can also add items to the list: [source, python] ---- sorted_items.add( {"timestamp": now + dt.timedelta(minutes=12), "name": "Jennifer"} ) for item in sorted_items: print(item) ---- .Output [source, json] ---- {'timestamp': datetime.datetime(2022, 11, 24, 7, 9, 31, 757235), 'name': 'Michael'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 36, 31, 757235), 'name': 'Mark'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 48, 31, 757235), 'name': 'Jennifer'} {'timestamp': datetime.datetime(2022, 11, 24, 8, 36, 31, 757235), 'name': 'Dunith'} ---- And as we'd expect, the Jennifer list item gets sorted between Mark and Dunith. The classic list operations are sorted as well. .Checking an item exists [source, python] ---- {"timestamp": now, "name": "Mark"} in sorted_items ---- .Output [source, json] ---- True ---- .Concatenating lists [source, python] ---- for item in (sorted_items + sorted_items): print(item) ---- .Output [source, json] ---- {'timestamp': datetime.datetime(2022, 11, 24, 7, 9, 31, 757235), 'name': 'Michael'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 9, 31, 757235), 'name': 'Michael'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 36, 31, 757235), 'name': 'Mark'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 36, 31, 757235), 'name': 'Mark'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 48, 31, 757235), 'name': 'Jennifer'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 48, 31, 757235), 'name': 'Jennifer'} {'timestamp': datetime.datetime(2022, 11, 24, 8, 36, 31, 757235), 'name': 'Dunith'} {'timestamp': datetime.datetime(2022, 11, 24, 8, 36, 31, 757235), 'name': 'Dunith'} ---- .Deleting items [source, python] ---- sorted_items.remove({"timestamp": now, "name": "Mark"}) for item in sorted_items: print(item) ---- .Output [source, json] ---- {'timestamp': datetime.datetime(2022, 11, 24, 7, 9, 31, 757235), 'name': 'Michael'} {'timestamp': datetime.datetime(2022, 11, 24, 7, 48, 31, 757235), 'name': 'Jennifer'} {'timestamp': datetime.datetime(2022, 11, 24, 8, 36, 31, 757235), 'name': 'Dunith'} ---- === In Summary So far my experience with the sortedcontainers library is great - it's done everything I expected and is really easy to use. Give it a try!
In this post we'll learn how to sort lists of dictionaries in Python with the sortedcontainers library.
uploads/2022/12/dictionaries-banner.png
[ 0.026814591139554977, -0.008087944239377975, 0.0032250399235635996, 0.05041644349694252, 0.0723617821931839, 0.0023302710615098476, 0.018846232444047928, 0.04038206487894058, 0.009998663328588009, -0.009299511089920998, -0.002458483912050724, -0.010201660916209221, -0.05864373967051506, 0.030472178012132645, -0.006883866619318724, 0.05681131035089493, 0.060275111347436905, -0.037792470306158066, 0.03698848560452461, 0.0062680174596607685, 0.030635997653007507, 0.036605823785066605, 0.009891927242279053, 0.0448579378426075, 0.007053030654788017, 0.012742350809276104, -0.002465300029143691, 0.01739680767059326, -0.04515299201011658, -0.0052621085196733475, 0.026583507657051086, 0.0007949482533149421, -0.0220797136425972, 0.017573818564414978, 0.029283910989761353, -0.01411863137036562, -0.006553600542247295, 0.021298766136169434, 0.0034566973336040974, 0.03079366497695446, -0.06930075585842133, 0.008007985539734364, -0.023452656343579292, -0.00656420923769474, -0.04098161682486534, 0.03333404287695885, 0.02638564258813858, 0.030636390671133995, -0.0012835885863751173, 0.00631151907145977, -0.05759183689951897, 0.04414748027920723, 0.0005515700322575867, 0.01682855375111103, -0.008217664435505867, 0.04466288164258003, 0.04272851720452309, -0.07687152177095413, 0.028487082570791245, -0.016730602830648422, 0.03211598098278046, -0.02950618602335453, 0.018323110416531563, 0.006694327108561993, 0.009302478283643723, -0.03572846204042435, -0.00927461963146925, 0.06147892773151398, -0.00979520846158266, -0.012675883248448372, -0.01603825017809868, -0.004534899722784758, -0.040781743824481964, -0.00090326729696244, -0.007568845525383949, -0.03712468221783638, -0.004023934714496136, 0.062394581735134125, 0.02603944204747677, 0.042299624532461166, 0.009985484182834625, -0.0007371380343101919, 0.03527745604515076, 0.0588967502117157, -0.019429989159107208, -0.02523694559931755, -0.05697071552276611, -0.024828696623444557, -0.07348700612783432, 0.041126642376184464, -0.01378560159355402, -0.04808386042714119, 0.03438004106283188, 0.01394025981426239, -0.010162976570427418, -0.005727921146899462, -0.0013944111997261643, -0.0005002165562473238, 0.010650036856532097, -0.024260105565190315, -0.04387812316417694, -0.027421316131949425, 0.026866579428315163, 0.04289279505610466, -0.06311987340450287, -0.056784965097904205, -0.026285186409950256, -0.028387470170855522, 0.036322806030511856, 0.028259284794330597, -0.007757666055113077, 0.002866193186491728, -0.012697365134954453, 0.006909215822815895, -0.05889146029949188, 0.06139052286744118, 0.019094282761216164, -0.05198846757411957, 0.0034126483369618654, 0.0203317292034626, 0.0507490299642086, 0.010193029418587685, -0.006280810106545687, 0.08070050925016403, 0.010441744700074196, 0.017125515267252922, 0.02054927684366703, 0.04616819694638252, -0.020767876878380775, -0.04895387589931488, -0.006855286657810211, 0.04116281121969223, -0.001429154071956873, -0.011686906218528748, 0.015234586782753468, -0.0022339823190122843, -0.014955666847527027, 0.018095165491104126, 0.0577542819082737, 0.040522828698158264, 0.016605501994490623, -0.04189123958349228, -0.01367463544011116, -0.015111615881323814, 0.014544116333127022, 0.027606846764683723, -0.02435186505317688, -0.026343151926994324, -0.021423954516649246, 0.03486468270421028, -0.014117873273789883, 0.012373005971312523, 0.06868936866521835, -0.04605933278799057, -0.01465599611401558, 0.054711323231458664, 0.017921270802617073, 0.03739429637789726, -0.03332662209868431, 0.01400939654558897, 0.03057735785841942, 0.055654436349868774, -0.008313377387821674, 0.030322566628456116, 0.010702315717935562, -0.03296693041920662, 0.012856418266892433, 0.020530954003334045, -0.03743058443069458, -0.004317664075642824, -0.04513765498995781, -0.00852599460631609, 0.059181664139032364, -0.02001260407269001, -0.013688407838344574, 0.061850447207689285, 0.10018470883369446, 0.020675742998719215, 0.03341720253229141, -0.00234474940225482, -0.07600550353527069, 0.0306240301579237, -0.004273004364222288, 0.023443099111318588, 0.02716097980737686, -0.02155991829931736, 0.06417691707611084, 0.016368240118026733, -0.0013417445588856936, 0.029658297076821327, -0.06617594510316849, -0.05136232450604439, -0.04419993981719017, -0.004367879591882229, 0.04914453253149986, -0.08740963786840439, 0.011975723318755627, 0.04727653041481972, 0.03432412073016167, 0.058287058025598526, -0.005252912174910307, -0.015868188813328743, -0.0026794171426445246, -0.045942749828100204, -0.05508150905370712, 0.03726322203874588, 0.03133302181959152, -0.035526297986507416, 0.002814618172124028, -0.02283283695578575, -0.03939376398921013, -0.006574682425707579, 0.05352405086159706, -0.01556080486625433, 0.03144833818078041, 0.03869844600558281, 0.049210742115974426, 0.006856197025626898, 0.0242480281740427, -0.04606246203184128, 0.04955241084098816, 0.0031260657124221325, -0.03813040629029274, -0.03334907069802284, -0.025356870144605637, 0.1338115632534027, 0.03716148063540459, -0.03206583485007286, -0.03824234753847122, 0.025381872430443764, -0.013519122265279293, -0.021575555205345154, -0.008161749690771103, -0.016621090471744537, 0.0011526725720614195, 0.024811968207359314, -0.025816624984145164, -0.03414711356163025, -0.005270333494991064, -0.041739124804735184, 0.019067324697971344, 0.06068052351474762, -0.012886906042695045, 0.05581023544073105, 0.017409497871994972, -0.019956305623054504, -0.004342976957559586, -0.012407285161316395, -0.04522665590047836, 0.016516119241714478, 0.002118106000125408, -0.010009128600358963, 0.06411182880401611, -0.06208740174770355, -0.033602938055992126, -0.017778882756829262, -0.05919307842850685, 0.04920164868235588, 0.06260033696889877, 0.04958026483654976, 0.00960930623114109, 0.02431153878569603, -0.015742657706141472, 0.007376206107437611, -0.02832789532840252, -0.06471437215805054, -0.01764146238565445, -0.02991212159395218, 0.0012676207115873694, 0.03631286323070526, 0.026214437559247017, 0.005781006533652544, 0.04623166471719742, 0.03387342020869255, -0.010066523216664791, 0.012829233892261982, 0.044607747346162796, -0.014589858241379261, -0.0073864352889359, -0.02451734058558941, -0.004973408300429583, 0.060142677277326584, -0.04667843133211136, -0.03848724812269211, 0.0031220822129398584, -0.06407634913921356, 0.03980742022395134, -0.0494103878736496, -0.01752532832324505, 0.002564965980127454, 0.009294186718761921, 0.05158180743455887, 0.0022498576436191797, 0.007634815759956837, 0.07727646827697754, 0.037442658096551895, -0.019527960568666458, 0.009768195450305939, -0.01269817166030407, 0.02755959890782833, -0.026118407025933266, 0.0020536251831799746, 0.05817768722772598, 0.01517875399440527, -0.041309699416160583, -0.06578120589256287, 0.025335509330034256, -0.05070691928267479, -0.2775305211544037, 0.024700921028852463, -0.022066250443458557, -0.02454768307507038, 0.009809721261262894, -0.019906820729374886, 0.051071424037218094, -0.056879669427871704, -0.008833256550133228, -0.004459574818611145, -0.02974502183496952, -0.029326224699616432, -0.06616508960723877, 0.05555324628949165, 0.01550891250371933, -0.007272461429238319, -0.01283207256346941, -0.02239353582262993, 0.018398400396108627, 0.02456928789615631, 0.006297117564827204, -0.07637536525726318, -0.03520279750227928, 0.04521666467189789, 0.032119784504175186, 0.013269207440316677, -0.05768045783042908, 0.04594169929623604, -0.03917890414595604, -0.0117650106549263, 0.014653356745839119, -0.04970996454358101, -0.0018306131241843104, -0.04942014813423157, 0.010033289901912212, -0.035123132169246674, 0.05332271009683609, 0.01029997505247593, 0.02018231526017189, 0.0015561222098767757, -0.017106838524341583, -0.030254580080509186, -0.0007761337328702211, -0.007175639271736145, 0.0992644801735878, 0.03019896149635315, -0.04960154369473457, 0.014279011636972427, -0.019550003111362457, 0.06160911172628403, -0.015463686548173428, -0.06109478697180748, -0.013373852707445621, 0.00037508917739614844, -0.04538080841302872, -0.007497000973671675, 0.008642367087304592, -0.008277634158730507, -0.025544658303260803, -0.03193357214331627, 0.010133286006748676, -0.009830942377448082, -0.005244939588010311, -0.039677806198596954, -0.012595533393323421, -0.07422557473182678, -0.04578673839569092, -0.0016770926304161549, 0.08090964704751968, 0.0498720221221447, -0.05970460921525955, -0.004996886942535639, -0.015131909400224686, -0.11907484382390976, 0.014579154551029205, -0.006073783617466688, -0.007632146123796701, 0.005425019655376673, -0.005627100821584463, 0.07728563249111176, -0.03455303981900215, -0.03720318153500557, 0.034039273858070374, 0.0038830596022307873, 0.030363868921995163, -0.03721439093351364, 0.00410651508718729, -0.021555431187152863, -0.002561015309765935, -0.024710698053240776, 0.04884365200996399, -0.03305131942033768, -0.007336961105465889, 0.00671682134270668, -0.01008971780538559, 0.06049046292901039, -0.0013761100126430392, 0.019892023876309395, 0.02494976855814457, 0.022761132568120956, 0.021494833752512932, -0.051334429532289505, 0.00020000631047878414, -0.05751873552799225, 0.029653776437044144, -0.0097003523260355, -0.047512415796518326, 0.021424826234579086, 0.00467999093234539, 0.020900847390294075, -0.02208831161260605, -0.01926659792661667, -0.01595805585384369, -0.05959504470229149, -0.008196641691029072, -0.041413310915231705, 0.023801803588867188, 0.03584682568907738, -0.00384053704328835, -0.01595761813223362, -0.053647369146347046, 0.01314410101622343, -0.005491640418767929, -0.01013972982764244, -0.05395819991827011, -0.030394893139600754, -0.0176420696079731, -0.0221987497061491, 0.025800595059990883, 0.024040255695581436, -0.005243527702987194, 0.009045821614563465, 0.02928760275244713, -0.02049735002219677, 0.048278894275426865, -0.03747788071632385, -0.021568212658166885, -0.04850096255540848, -0.005315331742167473, 0.0018065612530335784, -0.021069446578621864, 0.002493618056178093, 0.00567608792334795, 0.004702574573457241, 0.05761902779340744, 0.02366500534117222, 0.029672536998987198, -0.003427875926718116, -0.01108680572360754, 0.02646670676767826, 0.006015632301568985, -0.036618392914533615, -0.007976296357810497, -0.02982969954609871, -0.022648172453045845, 0.002257860964164138, 0.03348087891936302, 0.0007110570441000164, -0.012447762303054333, -0.0475991815328598, 0.011637330986559391, -0.0706554651260376, -0.03183338791131973, -0.014995682053267956, 0.026304133236408234, 0.04553094506263733, -0.008733074180781841, 0.036942899227142334, 0.0287289097905159, -0.04129762575030327, -0.019522400572896004, -0.013299700804054737, -0.04126429557800293, 0.02069339156150818, 0.03275201842188835, -0.026734311133623123, 0.01898196153342724, 0.02630334533751011, 0.001947541837580502, 0.012366457842290401, 0.0310178454965353, 0.009327073581516743, -0.004411547910422087, -0.016995003446936607, 0.03680597245693207, 0.057519666850566864, -0.021858729422092438, -0.011829845607280731, -0.025991661474108696, -0.03173549100756645, -0.0012457314878702164, -0.007683325558900833, 0.01048465259373188, -0.03150378167629242, -0.0007088807760737836, -0.06754808872938156, 0.03205649182200432, 0.00943019799888134, 0.017054084688425064, -0.037188414484262466, -0.016814259812235832, -0.011408100835978985, -0.0268261581659317, 0.05181405693292618, 0.05461088567972183, -0.052112169563770294, 0.010678358376026154, -0.0017297117738053203, 0.021787680685520172, 0.010221567936241627, 0.02573469653725624, -0.039869699627161026, -0.0025532818399369717, 0.0037242791149765253, 0.003018813207745552, -0.03352409228682518, -0.004411890171468258, -0.0335090309381485, 0.015499483793973923, 0.0024531881790608168, 0.030269306153059006, -0.013257407583296299, -0.013854621909558773, -0.005414401181042194, -0.022617923095822334, 0.014493276365101337, -0.01392900850623846, 0.014153974130749702, 0.019744182005524635, -0.026720592752099037, 0.02540358528494835, -0.04092516377568245, 0.031160486862063408, 0.03452591598033905, -0.02046920359134674, -0.019891725853085518, -0.05733543634414673, 0.0006261193775571883, 0.010748228058218956, 0.07212863117456436, -0.0009272961178794503, -0.018989350646734238, -0.05355865880846977, 0.00010472624126123264, -0.006746766157448292, 0.010397687554359436, -0.0031350289937108755, 0.0240046177059412, 0.031968485563993454, 0.031912483274936676, 0.010148817673325539, 0.010860615409910679, 0.0017912698676809669, -0.04601847752928734, 0.05142221227288246, -0.0753195658326149, -0.019754856824874878, -0.030285732820630074, -0.03321252763271332, 0.017495501786470413, -0.0019325708271935582, 0.020957980304956436, -0.06227649003267288, 0.03792139142751694, 0.03330887481570244, 0.051847126334905624, 0.06471230834722519, 0.030574535951018333, -0.004715599585324526, -0.029907111078500748, -0.0011709965765476227, -0.07577463984489441, -0.03756112605333328, 0.023020779713988304, 0.02691485732793808, -0.014404232613742352, 0.009265859611332417, -0.030029773712158203, 0.043005961924791336, -0.06685511767864227, -0.03236205130815506, 0.060589369386434555, -0.023632889613509178, -0.004772401414811611, 0.020334623754024506, -0.0566110834479332, 0.02976997010409832, 0.03882676735520363, -0.05336255952715874, -0.0031190260779112577, -0.027675630524754524, 0.07156646996736526, -0.009419819340109825, 0.045447539538145065, -0.017058545723557472, -0.013446658849716187, 0.07046955823898315, 0.004441401921212673, 0.020450560376048088, 0.059760794043540955, -0.01120796799659729, 0.024290654808282852, 0.03310505673289299, -0.015164674259722233, 0.009053301066160202, 0.01611965335905552, 0.002128711435943842, -0.06480854004621506, 0.03822557255625725, 0.005363184958696365, -0.012530716136097908, -0.04400921240448952, 0.09984738379716873, 0.011642557568848133, -0.04044834151864052, -0.04656883329153061, 0.02567412704229355, -0.03859219327569008, -0.010469251312315464, -0.019654281437397003, 0.012665355578064919, -0.06607566773891449, 0.061838168650865555, -0.014849035069346428, 0.01919635385274887, 0.06891487538814545, -0.010695423930883408, 0.0122256800532341, -0.008778408169746399, 0.07000305503606796, 0.06932277977466583, 0.028269721195101738, -0.011979225091636181, 0.08140558749437332, -0.025844374671578407, -0.020827675238251686, -0.008585033938288689, -0.011006295680999756, -0.03853176161646843, -0.013416377827525139, 0.015450967475771904, 0.08004751056432724, -0.028760511428117752, 0.05851898714900017, -0.02264772728085518, -0.02331419102847576, -0.0006684667314402759, 0.011792987585067749, 0.030869338661432266, 0.031883422285318375, 0.003400476649403572, 0.03636150062084198, 0.012331243604421616, -0.04595126956701279, 0.05044987425208092, -0.014559962786734104, -0.0013376838760450482, 0.03712829202413559, -0.017537102103233337, 0.014184864237904549, 0.00874826218932867, 0.010948838666081429, 0.044106051325798035, -0.016447337344288826, -0.010075473226606846, -0.013010447844862938, -0.006175713613629341, -0.040493402630090714, 0.028446821495890617, -0.029882997274398804, 0.020464157685637474, -0.013243130408227444, -0.04955100640654564, -0.00161871372256428, -0.03220944106578827, -0.031610433012247086, 0.035071488469839096, -0.02261922135949135, 0.018690621480345726, 0.01820511557161808, -0.0060180663131177425, -0.06734409928321838, -0.033286042511463165, -0.053088560700416565, -0.0515771321952343, -0.06668103486299515, 0.00869205966591835, 0.024418693035840988, -0.008038874715566635, -0.04332014173269272, -0.048287469893693924, -0.005820667836815119, 0.01192069984972477, -0.007645746693015099, -0.05514439195394516, -0.05731604993343353, 0.03172457218170166, 0.008471528999507427, 0.037341974675655365, 0.019872555509209633, 0.04708708077669144, 0.0014496748335659504, -0.03981585055589676, -0.027325339615345, 0.02957324869930744, 0.04192414879798889, -0.009554426185786724, -0.012059313245117664, -0.07486189901828766, 0.026184488087892532, 0.01045731920748949, -0.021839093416929245, -0.07129964977502823, 0.0262285303324461, 0.05459514632821083, 0.010413055308163166, 0.05308914557099342, -0.03280024975538254, -0.0017300233012065291, -0.052282098680734634, -0.02427077852189541, 0.001898638904094696, 0.012741313315927982, 0.06200295314192772, -0.03260402753949165, 0.06623248755931854, 0.05602285638451576, -0.022337067872285843, -0.024202978238463402, -0.016094055026769638, -0.04101763665676117, -0.015510447323322296, -0.040265265852212906, -0.03774327412247658, -0.058597806841135025, -0.06386066228151321, -0.029622452333569527, 0.03896484896540642, -0.0005741770728491247, -0.03171340003609657, 0.03168094903230667, 0.03310449793934822, -0.01405437383800745, 0.01594596356153488, -0.07433091849088669, -0.011267268098890781, -0.04242727905511856, -0.016929198056459427, -0.03524196892976761, 0.025169532746076584, -0.0035582715645432472, -0.014144872315227985, -0.0038611937779933214, -0.04235980659723282, -0.012081513181328773, -0.012438246980309486, 0.034938205033540726, 0.058882519602775574, -0.019764430820941925, -0.0009471877128817141 ]
[ -0.07922100275754929, -0.03026687726378441, -0.020382599905133247, -0.0346006378531456, 0.09782296419143677, -0.04243187978863716, -0.03176802396774292, -0.0030420750845223665, 0.009921249933540821, 0.004111727699637413, -0.014475802890956402, -0.0480082631111145, -0.016324203461408615, 0.0038126048166304827, 0.07861793041229248, 0.0001861880300566554, -0.013702919706702232, -0.0943053737282753, -0.04966701939702034, 0.018094290047883987, 0.033926885575056076, 0.0028922134079039097, -0.05762670934200287, -0.03922247886657715, 0.015168571844696999, 0.027332568541169167, 0.05973567068576813, -0.04040106385946274, -0.02239171601831913, -0.20353862643241882, 0.005788552574813366, -0.052195556461811066, 0.030723152682185173, -0.013517632149159908, 0.0061562443152070045, 0.013835656456649303, 0.03315279260277748, 0.03544382378458977, -0.015263332985341549, 0.05504152178764343, 0.044688787311315536, -0.009008086286485195, -0.059745240956544876, -0.043832357972860336, 0.014199314638972282, -0.014013846404850483, -0.018545009195804596, -0.013674071989953518, 0.007098648697137833, 0.014491296373307705, -0.06922438740730286, 0.007818847894668579, -0.011784194968640804, -0.014846576377749443, 0.004591642878949642, -0.0035152477212250233, 0.05079237371683121, 0.0612993948161602, 0.032978788018226624, 0.019159216433763504, 0.0019067353568971157, -0.006002160720527172, -0.13263793289661407, 0.10180468112230301, -0.01483582891523838, 0.048772603273391724, -0.02459767833352089, -0.021438121795654297, -0.024072134867310524, 0.07030700147151947, 0.006637320388108492, -0.023215120658278465, -0.0069525158032774925, 0.07218471169471741, 0.020678292959928513, -0.03574390709400177, -0.0017721763579174876, 0.014509468339383602, 0.023328587412834167, -0.013809540309011936, -0.05763063207268715, 0.004381516948342323, -0.013035809621214867, -0.022713078185915947, -0.03459945693612099, 0.02531559206545353, -0.014796491712331772, 0.04882388189435005, -0.002227112418040633, 0.046051789075136185, 0.020214734598994255, 0.0016118865460157394, 0.042835671454668045, 0.017384041100740433, -0.08702243119478226, -0.043731171637773514, -0.009722729213535786, 0.019974028691649437, -0.011913350783288479, 0.40640294551849365, 0.0008258351590484381, 0.004853770136833191, 0.052096329629421234, 0.058579057455062866, 0.0063087474554777145, -0.002867705887183547, 0.007990307174623013, -0.06722988933324814, 0.008249910548329353, -0.024363787844777107, 0.0017774448497220874, 0.007677510846406221, 0.06956498324871063, -0.07719449698925018, 0.04036237299442291, 0.008902319706976414, 0.02637973055243492, 0.024979908019304276, -0.03094923496246338, 0.04258864000439644, -0.0059052943252027035, 0.012609594501554966, 0.032068829983472824, -0.00018151158292312175, 0.021009255200624466, 0.024055976420640945, 0.07106318324804306, 0.0484551265835762, 0.028549544513225555, 0.02774767577648163, 0.01571798324584961, -0.05259076505899429, -0.07238961011171341, 0.0003075703571084887, -0.0016853299457579851, 0.005073880776762962, 0.01332860067486763, -0.04638340696692467, 0.02952195703983307, -0.008020651526749134, -0.023398686200380325, -0.02860347554087639, 0.021739622578024864, -0.013810855336487293, -0.018017511814832687, 0.14686699211597443, 0.019635874778032303, -0.0015679708449169993, -0.03335914760828018, -0.031786076724529266, -0.023493267595767975, 0.016148466616868973, 0.0418519526720047, -0.06171253323554993, 0.03672057390213013, 0.0013177007203921676, 0.08362864702939987, -0.02027963101863861, -0.05568627640604973, -0.00818028673529625, -0.035219449549913406, -0.06163785234093666, -0.014234171248972416, 0.030818553641438484, 0.024866729974746704, -0.11925263702869415, -0.0229487307369709, 0.03442957624793053, 0.018268004059791565, -0.0696757435798645, 0.0006093601114116609, 0.038566794246435165, -0.026890378445386887, -0.0013931277208030224, 0.07098786532878876, -0.012638824060559273, 0.013356570154428482, 0.022943245247006416, 0.04857349023222923, -0.007031633984297514, -0.033771827816963196, -0.001418804982677102, -0.029631637036800385, 0.0063277725130319595, -0.03128249570727348, -0.07823308557271957, -0.0453757643699646, 0.010613246820867062, -0.030262097716331482, -0.010211225599050522, -0.030235078185796738, -0.03743324056267738, -0.06021430343389511, 0.06551408767700195, -0.027569811791181564, -0.03827299550175667, 0.02980899065732956, 0.03944944962859154, 0.009422198869287968, -0.04417794570326805, -0.0024700185749679804, 0.007814258337020874, -0.01798316091299057, 0.034678731113672256, -0.052977304905653, 0.03428079932928085, 0.017139337956905365, -0.03542919456958771, 0.08762563765048981, 0.0058922418393194675, -0.00929447915405035, -0.018066581338644028, -0.019336435943841934, -0.002285194117575884, -0.022732490673661232, -0.022622205317020416, 0.002555673476308584, -0.004200448747724295, 0.0179557204246521, 0.03684146702289581, -0.002126068342477083, -0.05404837802052498, -0.0002107941108988598, -0.3588024973869324, -0.03783394396305084, -0.009267404675483704, 0.012072458863258362, 0.0010317041305825114, -0.035239823162555695, 0.0008616620907559991, -0.011382009834051132, -0.008475267328321934, 0.027354808524250984, 0.08712694048881531, -0.037591516971588135, -0.006002996116876602, -0.09904258698225021, -0.025949159637093544, 0.007372995838522911, -0.06421568989753723, -0.03373328968882561, -0.01671108417212963, 0.027985507622361183, 0.0005783269880339503, -0.0318835973739624, -0.027245979756116867, -0.059421829879283905, -0.012256874702870846, -0.03003850392997265, 0.13427673280239105, 0.04723341763019562, 0.05846264213323593, -0.0637945681810379, 0.07305952161550522, 0.032600753009319305, 0.0011809165589511395, -0.07025560736656189, -0.025314010679721832, -0.024075668305158615, 0.0009824750013649464, 0.02016644924879074, -0.0016756760887801647, -0.022568494081497192, -0.06587193161249161, 0.05580401048064232, -0.03402861952781677, -0.04714129865169525, -0.02776424214243889, 0.015116865746676922, -0.009373219683766365, -0.009466384537518024, -0.016842106357216835, 0.052363768219947815, 0.008643127046525478, -0.01629158854484558, 0.015171694569289684, 0.021498149260878563, 0.0202468391507864, -0.026798002421855927, -0.03319229185581207, -0.03125140070915222, -0.00971153099089861, 0.011357692070305347, 0.026863452047109604, 0.03274156153202057, 0.016718093305826187, -0.018958887085318565, -0.0038414723239839077, 0.00442803930491209, -0.006355050951242447, 0.015420176088809967, 0.02428710088133812, -0.01931339129805565, -0.03129379078745842, 0.09081239998340607, -0.014738992787897587, 0.02608678676187992, 0.05206947401165962, 0.05543161928653717, -0.028426652774214745, 0.015113609842956066, 0.033653758466243744, 0.05070921778678894, 0.029460858553647995, 0.005343631375581026, 0.03582201525568962, -0.0037305797450244427, 0.0044925338588654995, 0.04405268281698227, -0.01115760300308466, -0.008987662382423878, 0.03777545318007469, 0.008152281865477562, -0.0027530393563210964, 0.001345771481283009, -0.03110603429377079, -0.03610454499721527, 0.07670881599187851, -0.006758561357855797, -0.27825742959976196, 0.059540219604969025, 0.040365222841501236, 0.03635858744382858, 0.020998960360884666, -0.00612090528011322, -0.013262787833809853, -0.020885199308395386, 0.0037688028533011675, 0.035164326429367065, -0.009531613439321518, 0.0660993680357933, -0.010447507724165916, -0.027018804103136063, -0.0021232832223176956, 0.021868230774998665, 0.031207412481307983, -0.006651821080595255, -0.01881341263651848, 0.00020815916650462896, 0.03615005686879158, -0.006170104723423719, 0.16984131932258606, 0.035626575350761414, -0.012742997147142887, 0.017990417778491974, -0.009376957081258297, 0.02643868327140808, 0.08101534843444824, 0.009669635444879532, 0.01957135833799839, -0.015509208664298058, 0.0461149588227272, 0.03984850272536278, 0.03026530332863331, -0.06072155013680458, -0.026733610779047012, 0.05677303671836853, 0.009601932018995285, 0.00014385450049303472, -0.028065036982297897, 0.013411181978881359, -0.03239372745156288, 0.02222919650375843, 0.06358717381954193, -0.005628890357911587, -0.01606149785220623, -0.08117789030075073, -0.055683963000774384, -0.019860101863741875, -0.02528788335621357, -0.048552244901657104, 0.01047747302800417, 0.03133593872189522, 0.0021777870133519173, 0.08941227942705154, 0.046831563115119934, -0.0029304956551641226, 0.021525368094444275, 0.014443931169807911, -0.003625963581725955, -0.030790232121944427, 0.10390380024909973, 0.0005888008745387197, 0.002047352259978652 ]
[ 0.006938418839126825, 0.013781165704131126, 0.018753839656710625, 0.008466899394989014, 0.03228668496012688, 0.031097503378987312, 0.0018731218297034502, 0.008436869829893112, 0.002609025686979294, -0.0028674621134996414, -0.04247618466615677, 0.004931455943733454, -0.04188285768032074, -0.0005523499567061663, 0.00992145761847496, -0.04189261049032211, 0.04112818464636803, -0.026756329461932182, 0.037448544055223465, -0.04282567650079727, -0.034771304577589035, 0.025641512125730515, 0.028471898287534714, 0.01744265668094158, -0.022871198132634163, 0.03831247612833977, -0.033353544771671295, 0.012844230979681015, 0.04206055402755737, -0.12339209765195847, -0.018202297389507294, -0.07583654671907425, -0.024580489844083786, 0.00814687367528677, -0.0006504436605609953, -0.02665914036333561, -0.02903866581618786, 0.0024439410772174597, -0.014168350957334042, -0.008472152054309845, 0.03379245102405548, -0.03659794479608536, 0.005865097511559725, 0.008520781993865967, -0.010383819229900837, -0.020785989239811897, -0.024907322600483894, -0.011419064365327358, -0.03387065976858139, 0.03844164311885834, -0.05627260357141495, -0.006071219686418772, -0.026607539504766464, 0.0023189273197203875, 0.0025062523782253265, 0.015862053260207176, -0.036278944462537766, 0.0198478102684021, 0.012943755835294724, -0.02095698192715645, -0.004829868208616972, -0.028232280164957047, -0.03099764883518219, -0.012653368525207043, 0.016499435529112816, -0.037563104182481766, -0.011361932381987572, 0.021791405975818634, 0.022683536633849144, 0.02330213598906994, -0.0026342165656387806, 0.03836345300078392, -0.02990984171628952, 0.009976235218346119, -0.012255936861038208, -0.0579364188015461, -0.009170080535113811, -0.01995781622827053, -0.01843666099011898, 0.015671435743570328, 0.020859956741333008, -0.024364687502384186, -0.008306663483381271, 0.01463012583553791, -0.010312773287296295, -0.046070754528045654, -0.011914190836250782, 0.056713636964559555, -0.002215979853644967, -0.011167383752763271, -0.07677190005779266, 0.03170248121023178, 0.04479780048131943, 0.001595621695742011, -0.06267157942056656, 0.038644298911094666, -0.022109704092144966, 0.010026579722762108, -0.026764027774333954, 0.8121980428695679, 0.004736758302897215, -0.0052573103457689285, -0.008800867944955826, 0.04092809930443764, 0.027241965755820274, -0.03570079058408737, -0.03876875713467598, -0.025241252034902573, -0.009723128750920296, -0.03691214323043823, 0.009744211100041866, 0.02173444628715515, 0.004576120059937239, 0.01660747267305851, 0.009374440647661686, 0.01080525666475296, -0.010063515976071358, 0.03282672539353371, 0.013370882719755173, 0.02230145037174225, 0.023321375250816345, -0.017397558316588402, 0.017568888142704964, -0.010401704348623753, -0.004829875193536282, -0.15286299586296082, 0.06294550001621246, -6.831998880918059e-33, 0.058349210768938065, -0.03330286964774132, 0.00580540020018816, -0.02509799599647522, 0.03712865710258484, 0.015671540051698685, -0.0016512734582647681, -0.0070339832454919815, 0.014080720953643322, -0.041696663945913315, 0.03503981977701187, -0.036324236541986465, 0.013327213004231453, -0.020279837772250175, 0.026224179193377495, 0.017727671191096306, 0.004355674143880606, 0.05545797199010849, 0.014334214851260185, 0.017895817756652832, 0.011741419322788715, 0.03674806281924248, 0.009212587960064411, 0.042531050741672516, -0.0318121500313282, 0.03038967400789261, 0.002721295692026615, 0.0062598795630037785, -0.005818554665893316, -0.04554131627082825, -0.04434051737189293, 0.0069450377486646175, -0.002267152536660433, -0.047873929142951965, 0.047058768570423126, -0.04866376146674156, -0.05587844178080559, -0.007229851558804512, -0.0205719992518425, -0.03390757739543915, -0.03967535123229027, -0.001485267304815352, -0.06796346604824066, -0.050942499190568924, -0.059323519468307495, -0.011128619313240051, 0.006235492881387472, 0.01951747015118599, -0.004723017103970051, 0.05346287414431572, 0.020579131320118904, -0.0058293091133236885, 0.00909271091222763, -0.040762368589639664, 0.00964953564107418, 0.016229869797825813, 0.03649524599313736, 0.01637248694896698, 0.0180500540882349, -0.0017640929436311126, -0.0050562662072479725, -0.016202829778194427, 0.05110592767596245, 0.03200654685497284, 0.014717092737555504, 0.0012872342485934496, 0.04922724515199661, 0.014289729297161102, 0.06789243221282959, 0.02025792934000492, -0.04963125288486481, 0.02542937733232975, -0.02597467601299286, -0.0385916493833065, 0.022864583879709244, -0.015074129216372967, 0.008369077928364277, -0.021439548581838608, -0.004917570855468512, 0.035820309072732925, 0.030900122597813606, -0.036449138075113297, 0.05122626572847366, -0.014640795066952705, 0.0028524240478873253, -0.04368845745921135, 0.01730397902429104, 0.015213235281407833, -0.032735757529735565, -0.012149632908403873, 0.023828797042369843, 0.06269778311252594, 0.015795473009347916, 0.002229138044640422, -0.009088104590773582, 7.113972792373463e-33, 0.039625514298677444, 0.02540418691933155, -0.020702222362160683, 0.02064305916428566, 0.0353345088660717, -0.047677092254161835, 0.0013350737281143665, 0.049175407737493515, 0.013630537316203117, 0.03897891193628311, -0.002682269783690572, -0.05407968908548355, -0.051555559039115906, -0.007416060194373131, 0.04421835392713547, -0.01687587797641754, 0.007181866560131311, -0.0005429245647974312, -0.007600525859743357, -0.05501081421971321, -0.013314392417669296, -0.0017086371080949903, 0.025709066540002823, 0.014359787106513977, 0.026664957404136658, 0.018315289169549942, 0.022070860490202904, 0.0012396404054015875, -0.014325480908155441, 0.01637592539191246, 0.019211813807487488, -0.014323635026812553, 0.0017320076003670692, -0.02207944542169571, -0.005308455787599087, 0.03365645185112953, 0.06334252655506134, 0.023186059668660164, 0.00695265457034111, -0.011138280853629112, 0.04437529295682907, 0.05786299705505371, -0.01430112961679697, -0.016715796664357185, -0.024999091401696205, 0.03026077337563038, 0.005588984116911888, 0.03505333513021469, -0.004860216751694679, 0.00976988859474659, 0.006278859917074442, -0.010537386871874332, 0.005227850284427404, 0.0175193902105093, 0.0027661886997520924, -0.00055906135821715, -0.03362366184592247, 0.03779999911785126, -0.013009333051741123, -0.0058165728114545345, -0.033183079212903976, -0.031781185418367386, 0.006085207220166922, 0.02501343935728073, 0.0076995547860860825, -0.00568030122667551, -0.020548881962895393, -0.008045592345297337, -0.0348777212202549, 0.01734127104282379, 0.008364016190171242, -0.0315609946846962, -0.02999410592019558, 0.0546184666454792, 0.030217455700039864, 0.004768289625644684, 0.019481182098388672, 0.016403205692768097, -0.01566404104232788, 0.012341415509581566, 0.008389445953071117, 0.010057899169623852, 0.007511319126933813, -0.023237701505422592, 0.01154361292719841, 0.05027519166469574, -0.0069258008152246475, 0.000582627602852881, 0.024278882890939713, 0.016217295080423355, 0.009900404140353203, -0.032753895968198776, 0.0002649447997100651, 0.03492175042629242, 0.00590588990598917, -1.240026659132809e-8, -0.05416230484843254, 0.0012217276962473989, -0.040232159197330475, 0.041417788714170456, -0.021141434088349342, 0.02454477734863758, 0.0019571329466998577, -0.029058143496513367, 0.04996615648269653, -0.03135579079389572, 0.037047989666461945, -0.055158961564302444, 0.017109349370002747, 0.03539082407951355, 0.012259169481694698, -0.039307717233896255, -0.012419404461979866, -0.04032657667994499, 0.017549840733408928, 0.010258016176521778, 0.033685602247714996, -0.00024152886180672795, 0.03993455320596695, -0.03772641718387604, -0.012344639748334885, 0.018802033737301826, 0.02505841851234436, -0.05371582880616188, 0.007065663114190102, 0.0019985917024314404, 0.003931243438273668, -0.03447345644235611, -0.011372712440788746, -0.019970213994383812, -0.014437434263527393, -0.07708713412284851, 0.007007477805018425, -0.007504991255700588, 0.001991123426705599, 0.02917509526014328, -0.012469330802559853, -0.00722551392391324, 0.010944204404950142, -0.015208750031888485, -0.013815323822200298, 0.0044015031307935715, -0.01684468984603882, 0.01388164795935154, 0.010945354588329792, -0.022861719131469727, -0.025192473083734512, -0.00027598036103881896, 0.00789115484803915, -0.00571360532194376, 0.061486195772886276, 0.02049694024026394, 0.05013754591345787, -0.026764586567878723, -0.026374440640211105, -0.04211713373661041, 0.049448296427726746, 0.006269121076911688, -0.009445554576814175, -0.024988483637571335 ]
python-sorting-lists-dictionaries-sortedcontainers
https://markhneedham.com/blog/2022/12/02/python-sorting-lists-dictionaries-sortedcontainers
false
2022-12-06 02:44:37
kcat/jq: Reached end of topic at offset: exiting
[ "kafka", "kcat", "jq" ]
[ "Kafka" ]
I've recently been working with Debezium to get the https://dev.startree.ai/docs/pinot/demo-apps/pizza-shop[Pizza Shop product catalogue^] from MySQL into Apache Kafka and ran into an issue when querying the resulting stream using https://docs.confluent.io/platform/current/app-development/kafkacat-usage.html[kcat^] and https://stedolan.github.io/jq/[jq^]. In this blog I'll show how I worked around that problem. I configured Debezium to write any changes to the products table into the `mysql.pizzashop.products` topic. I then queriesthis topic to find the changes for just one of the products: [source, bash] ---- kcat -C -b localhost:29092 -t mysql.pizzashop.products -e | jq '.payload | select(.id == 1)' ---- And got the following output: .Output [source, bash] ---- { "id": 1, "name": "Moroccan Spice Pasta Pizza - Veg", "description": "A pizza loaded with a spicy combination of Harissa sauce and delicious pasta.", "category": "veg pizzas", "price": 335, "image": "https://www.dominos.co.in//files/items/MoroccanSpicePPVG_N.jpg", "created_at": "2022-11-22T10:07:36Z", "updated_at": 1669111656000, "__deleted": "false" } % Reached end of topic mysql.pizzashop.products [0] at offset 83: exiting { "id": 1, "name": "Moroccan Spice Pasta Pizza", "description": "A pizza loaded with a spicy combination of Harissa sauce and delicious pasta.", "category": "veg pizzas", "price": 335, "image": "https://www.dominos.co.in//files/items/MoroccanSpicePPVG_N.jpg", "created_at": "2022-11-22T10:07:36Z", "updated_at": 1669117483000, "__deleted": "false" } ---- If I took away the `jq` command I wasn't getting the 'reached end of topic' error message, it was returning both events properly. But the messages don't format so nicely without jq so I still needed a solution. A bit of searching led me to https://ftisiot.net/posts/jq-kcat-consumer/[a blog post^] written by Francesco Tisiot in which he described exactly the same problem that I was having. The solution is to pass in the `-u` flag to kcat, which stops it from buffering the output. We end up with the following command that works perfectly: [source, bash] ---- kcat -C -b localhost:29092 -t mysql.pizzashop.products -e -u | jq '.payload | select(.id == 1)' ---- Thanks Francesco!
In this post we'll learn how to work around a problem when using kcat and jq together.
uploads/2022/12/kcat-jq-exiting-banner.png
[ -0.00617567915469408, -0.004823177121579647, -0.014644211158156395, 0.03710901364684105, 0.0951433852314949, 0.015457465313374996, -0.0030356035567820072, 0.07203634828329086, 0.025612451136112213, -0.010945793241262436, -0.04296564683318138, 0.008774228394031525, -0.06456024199724197, 0.04145915433764458, -0.008457150310277939, 0.05943423509597778, 0.08311000466346741, 0.0195319727063179, 0.02289860136806965, 0.0037309955805540085, 0.02695580944418907, 0.0385650172829628, 0.013370570726692677, 0.044999632984399796, 0.014334377832710743, 0.011743583716452122, 0.015604371204972267, 0.014076855033636093, -0.05544360354542732, -0.0028177970089018345, 0.021879317238926888, 0.00852297805249691, 0.020256416872143745, -0.030576296150684357, 0.018743714317679405, 0.01883608289062977, 0.0015741623938083649, 0.03025241009891033, 0.0007362061296589673, 0.028676969930529594, -0.07709065079689026, 0.03676345944404602, -0.02252625674009323, 0.009858302772045135, -0.023557493463158607, 0.021642761304974556, -0.04225880652666092, 0.009717621840536594, -0.01837702840566635, 0.0007440728368237615, -0.04529189318418503, 0.011330414563417435, -0.025792043656110764, 0.0064931767992675304, 0.0052338773384690285, 0.06258704513311386, -0.030056919902563095, -0.06419844925403595, 0.031846608966588974, -0.04853125661611557, -0.005504099186509848, -0.016129903495311737, 0.020807495340704918, 0.020176203921437263, -0.006588075775653124, -0.04335768148303032, -0.011486186645925045, 0.04656633734703064, -0.03143967315554619, -0.021675866097211838, 0.014464193023741245, 0.014265400357544422, -0.025408171117305756, -0.027834242209792137, 0.01816771924495697, -0.02585390768945217, -0.01570815220475197, 0.07134638726711273, 0.0016787823988124728, 0.03330254927277565, -0.045817047357559204, -0.01026734709739685, 0.028417281806468964, 0.015361659228801727, 0.014120557345449924, -0.05345211550593376, -0.028796985745429993, -0.021418048068881035, -0.042586229741573334, 0.06864869594573975, 0.023547818884253502, -0.03684636577963829, 0.028466923162341118, 0.007780145853757858, -0.017220696434378624, 0.01879362016916275, 0.027608271688222885, 0.003811808302998543, 0.0020504803396761417, -0.010010559111833572, -0.05299554392695427, 0.009442370384931564, 0.015539342537522316, 0.033432528376579285, -0.06563152372837067, -0.007744923699647188, -0.025829773396253586, -0.02134930156171322, 0.0022005822975188494, 0.01510502677410841, -0.01744323968887329, 0.003718059277161956, -0.01693928986787796, 0.02060088701546192, -0.08824174106121063, 0.08630248159170151, 0.007781850639730692, -0.04533390328288078, -0.03133589029312134, 0.014755439944565296, 0.08520299196243286, 0.01527651958167553, -0.012948423624038696, 0.0737481564283371, 0.021793285384774208, 0.011722012422978878, 0.006734173279255629, 0.03222401440143585, -0.004865371622145176, -0.06325230747461319, -0.0057648299261927605, 0.05909372866153717, 0.0015156379668042064, -0.011179054155945778, -0.016702953726053238, -0.0020056646317243576, 0.010795218870043755, -0.0015349275199696422, 0.0758286714553833, 0.019099680706858635, -0.019410589709877968, -0.02909432165324688, -0.019458573311567307, -0.007422070484608412, 0.036077823489904404, 0.019712749868631363, 0.008257782086730003, -0.04554683715105057, -0.020974695682525635, 0.011313259601593018, 0.012570634484291077, 0.013410665094852448, 0.03969251736998558, -0.01148646604269743, 0.006164067890495062, 0.07117297500371933, 0.020507115870714188, -0.004344486631453037, -0.02206004597246647, 0.005061126314103603, 0.0441741906106472, 0.02184176817536354, 0.0270692091435194, 0.03401529788970947, 0.0004670548951253295, -0.03481880575418472, 0.01319154817610979, 0.03948885202407837, -0.020641956478357315, 0.020779084414243698, -0.06842154264450073, -0.05565125122666359, 0.05584815889596939, -0.019947919994592667, -0.002509644255042076, 0.052904605865478516, 0.09227505326271057, 0.02525683119893074, 0.0262081827968359, 0.04265684634447098, -0.0744113028049469, 0.04739129915833473, 0.01838526502251625, -0.01025853306055069, 0.029815608635544777, -0.0034225659910589457, 0.05564868822693825, 0.013364558108150959, 0.03290703520178795, 0.022805584594607353, -0.07799099385738373, -0.06999995559453964, -0.01855984888970852, 0.023577319458127022, 0.05755330249667168, -0.019020266830921173, -0.0003492513787932694, 0.06264985352754593, 0.04460487514734268, 0.01955455355346203, -0.024865224957466125, -0.00020842175581492484, 0.018647905439138412, -0.06714014708995819, -0.06980983167886734, 0.029996996745467186, 0.030997537076473236, -0.04685923457145691, -0.028427736833691597, 0.014753266237676144, -0.04282290115952492, -0.01742359809577465, 0.03790995851159096, -0.03540957346558571, 0.05947372317314148, 0.03376396372914314, 0.04460575804114342, -0.00912146084010601, 0.049305640161037445, -0.06146331876516342, 0.05842500552535057, 0.02390105463564396, -0.030105138197541237, -0.02323397621512413, -0.01968708075582981, 0.12740035355091095, 0.06199420988559723, -0.016658341512084007, -0.03959421440958977, 0.059391267597675323, 0.0025582467205822468, -0.03883172199130058, 0.010854043066501617, -0.016612399369478226, 0.003828462678939104, -0.011908094398677349, -0.02932991087436676, -0.018482599407434464, 0.00772987911477685, -0.03412659093737602, 0.02935703843832016, 0.0794241651892662, -0.04239632934331894, 0.048361197113990784, 0.01835455559194088, -0.027879131957888603, -0.0005923438584432006, -0.01817394234240055, -0.061067719012498856, -0.00022501216153614223, -0.004040742293000221, -0.0002518720575608313, 0.05014855042099953, -0.04242642968893051, -0.023016320541501045, -0.03037680685520172, -0.034905191510915756, 0.04031083732843399, 0.041658442467451096, 0.04855336621403694, -0.02385028637945652, 0.061684392392635345, -0.0096663236618042, 0.010279270820319653, -0.010368824005126953, -0.023596901446580887, -0.0402982197701931, -0.004465572535991669, -0.004952162504196167, 0.032116908580064774, 0.04138939455151558, 0.011876995675265789, -0.0030221594497561455, 0.013225500471889973, 0.0032028991263359785, 0.0107642887160182, -0.006723036058247089, -0.0010714242234826088, 0.01345118135213852, -0.026365021243691444, -0.013972674496471882, 0.052021514624357224, -0.057625800371170044, -0.014879779890179634, 0.0114139374345541, -0.043249644339084625, 0.048863548785448074, -0.06611225008964539, -0.04752353951334953, -0.00758286751806736, 0.03535691648721695, 0.029827140271663666, -0.01755567267537117, -0.03098560869693756, 0.06038498878479004, -0.010120049118995667, -0.010194280184805393, 0.013723806478083134, -0.01449244562536478, 0.027393443509936333, -0.01098836213350296, 0.023370912298560143, 0.04840773344039917, 0.005900789983570576, -0.0001291845692321658, -0.08052763342857361, 0.02769998461008072, -0.03122168779373169, -0.2934369444847107, 0.04812416434288025, -0.023686084896326065, 0.002187309553846717, 0.01705588959157467, 0.0005565938190557063, -0.023171858862042427, -0.04524727910757065, 0.02907167747616768, -0.00074760866118595, -0.020500896498560905, -0.04100475087761879, -0.03727059066295624, 0.038681745529174805, 0.010918849147856236, 0.007745162583887577, -0.01414723601192236, -0.03572159633040428, -0.012932352721691132, 0.003371127648279071, 0.007353364489972591, -0.06833919137716293, -0.012542887590825558, 0.0334213450551033, 0.03561472147703171, 0.02998179756104946, -0.08015333116054535, 0.046076685190200806, -0.050835981965065, -0.02739075943827629, 0.002706521190702915, -0.030719395726919174, -0.003744534682482481, 0.023870740085840225, 0.002933771349489689, -0.0035326655488461256, 0.031104665249586105, -0.03577449917793274, 0.016682729125022888, 0.01962897926568985, -0.0005126416799612343, -0.02181718870997429, -0.005339639261364937, -0.023729443550109863, 0.10530416667461395, -0.006851130165159702, -0.10295027494430542, -0.004948142915964127, -0.03722987696528435, 0.05621303245425224, 0.0019197430228814483, -0.05804687738418579, -0.03273092955350876, 0.061652909964323044, -0.021452054381370544, 0.027564160525798798, -0.006174867041409016, -0.012524103745818138, -0.021548239514231682, -0.025713307783007622, -0.0017242421163246036, -0.04286428168416023, -0.014670434407889843, -0.04746498167514801, -0.0023990508634597063, -0.04819956794381142, -0.052557431161403656, 0.009692675434052944, 0.07365504652261734, 0.04133852198719978, -0.042295001447200775, -0.00989299826323986, -0.03686745837330818, -0.11759116500616074, -0.026833828538656235, -0.02140779048204422, -0.031241843476891518, 0.0021518769208341837, -0.011937190778553486, 0.046514078974723816, -0.00892556644976139, -0.033937305212020874, 0.0160728320479393, -0.019134176895022392, 0.028478281572461128, -0.03848223760724068, 0.0015092811081558466, -0.022506358101963997, -0.0371912382543087, 0.004107759799808264, 0.06778091937303543, -0.04624643549323082, -0.004626634065061808, -0.04376944527029991, -0.011230938136577606, 0.060718413442373276, -0.018503637984395027, 0.0029125052969902754, -0.02213185839354992, 0.07071715593338013, 0.009994221851229668, -0.05688720941543579, 0.0009733952465467155, -0.015534266829490662, 0.004080805461853743, 0.014676395803689957, -0.03771788254380226, 0.01043257862329483, 0.028731955215334892, 0.021856816485524178, -0.018753696233034134, -0.02553297020494938, 0.00738671375438571, -0.04397484287619591, -0.04024093970656395, -0.0036378938239067793, 0.020837707445025444, 0.03164631128311157, 0.01474885456264019, -0.023018479347229004, -0.042016640305519104, 0.013860111124813557, 0.019868625327944756, -0.03105020895600319, -0.04550272598862648, -0.037672314792871475, -0.02901408076286316, -0.016178634017705917, 0.033515565097332, 0.011288254521787167, -0.019504785537719727, 0.010006517171859741, 0.015613093972206116, -0.008907662704586983, 0.04981108754873276, -0.026901880279183388, -0.02893667109310627, -0.044195644557476044, 0.0016132962191477418, -0.00892647635191679, 0.012202523648738861, 0.006903247907757759, 0.020059995353221893, 0.04001200571656227, 0.031558092683553696, 0.009508318267762661, 0.029910970479249954, -0.005312867928296328, 0.004895632620900869, 0.009883296675980091, 0.011376148089766502, -0.0006760540418326855, 0.011075299233198166, -0.009717307053506374, -0.025362210348248482, -0.01236750464886427, 0.045989297330379486, 0.022909272462129593, -0.04064995422959328, -0.034666918218135834, 0.019824299961328506, -0.07074281573295593, -0.007892178371548653, 0.026712646707892418, -0.0180304367095232, 0.050049539655447006, 0.03092346526682377, 0.0035470030270516872, -0.007607041858136654, 0.01571568287909031, -0.01807992532849312, 0.013707592152059078, -0.021747609600424767, -0.00021867781470064074, -0.022891273722052574, -0.015970680862665176, 0.031174881383776665, 0.01099811214953661, 0.01613306999206543, -0.013027345761656761, 0.0003641383955255151, -0.015516551211476326, 0.007889037020504475, 0.01768563687801361, 0.04093238338828087, 0.03531992435455322, -0.03105957992374897, 0.0022207130677998066, -0.008916167542338371, -0.017372768372297287, -0.017162686213850975, 0.01492469385266304, -0.01079611200839281, 0.0037907820660620928, -0.010799024254083633, -0.07804393023252487, 0.04860930144786835, 0.008965631015598774, 0.0065138372592628, 0.0009170423145405948, -0.01159705687314272, 0.03246866911649704, -0.03953717276453972, 0.04618754982948303, 0.0556473582983017, -0.052403923124074936, 0.005598937626928091, -0.00971977598965168, 0.01326240599155426, -0.004202412441372871, 0.025933336466550827, -0.0566391758620739, -0.009089624509215355, -0.00474381260573864, 0.009695503860712051, -0.040806256234645844, -0.03000325709581375, -0.005270882975310087, 0.0031487797386944294, 0.027311231940984726, 0.008849668316543102, 0.0028003978077322245, 0.0038730136584490538, 0.0015929703367874026, -0.029839366674423218, 0.05718820169568062, -0.004054815508425236, -0.007637498434633017, 0.012524810619652271, -0.0075372736901044846, 0.025671420618891716, -0.027580585330724716, 0.018998946994543076, 0.013322101905941963, -0.021501408889889717, 0.030247384682297707, -0.03843417391180992, -0.019570112228393555, -0.002168014645576477, 0.07456664741039276, -0.015307842753827572, -0.015120146796107292, -0.03631976991891861, 0.01592865027487278, -0.014567703008651733, 0.012203714810311794, 0.010853991843760014, -0.010090718045830727, 0.020507602021098137, 0.037469539791345596, -0.01707296632230282, 0.019149253144860268, -0.013693015091121197, -0.02753518335521221, 0.05481383949518204, -0.06394469738006592, -0.030821768566966057, -0.026461485773324966, -0.07324603199958801, 0.002003652974963188, 0.024627234786748886, 0.032942358404397964, -0.052598584443330765, 0.05803309381008148, 0.04609740898013115, 0.018008122220635414, 0.029056217521429062, -0.032255105674266815, 0.013980070129036903, -0.02536471001803875, -0.026962604373693466, -0.09661898016929626, 0.004991455003619194, 0.03945281729102135, -0.01506672240793705, 0.020930498838424683, -0.009148784913122654, -0.0758487656712532, 0.025722645223140717, -0.05652005970478058, -0.015424068085849285, 0.0283321775496006, -0.02462715283036232, 0.0036794403567910194, -0.0005209192750044167, -0.058489955961704254, 0.0035407482646405697, 0.037294868379831314, -0.029369469732046127, -0.008504190482199192, -0.022585976868867874, 0.06869039684534073, 0.0345759354531765, 0.025262435898184776, -0.009116885252296925, -0.03206545487046242, 0.10071916878223419, -0.006832069251686335, 0.018635261803865433, 0.040312182158231735, -0.012836294248700142, 0.023481979966163635, 0.027279147878289223, 0.017135674133896828, 0.03944321349263191, 0.04938388243317604, -0.04048238694667816, -0.05275998264551163, 0.030326921492815018, -0.0013775313273072243, -0.0029752086848020554, -0.05599641054868698, 0.06570842117071152, -0.0014953764621168375, -0.03652355819940567, -0.030666757375001907, 0.02994816191494465, -0.034142039716243744, -0.03645187243819237, -0.026344148442149162, 0.023154964670538902, -0.07597796618938446, 0.06101791560649872, -0.020777450874447823, 0.03241787850856781, 0.05839286744594574, -0.008108438923954964, 0.0015732545871287584, 0.0198656152933836, 0.0762513130903244, 0.05691663175821304, 0.02733864262700081, 0.002079521771520376, 0.04815784469246864, -0.01749180071055889, -0.032467540353536606, -0.02109163999557495, -0.02380281873047352, -0.02247672714293003, -0.002200123853981495, -0.000005112220151204383, 0.0615987665951252, -0.027452856302261353, 0.07561320066452026, 0.0010931455763056874, 0.003917106427252293, 0.0010612367186695337, -0.003907971084117889, 0.007344086188822985, 0.05411412939429283, -0.011512701399624348, 0.05354614928364754, -0.02174469083547592, -0.037274472415447235, 0.009788727387785912, -0.0049619474448263645, -0.04565970227122307, 0.020004119724035263, -0.030145313590765, 0.027956239879131317, 0.03744916990399361, 0.03853602334856987, 0.09096349775791168, -0.02455521561205387, -0.005581649951636791, 0.004483040422201157, -0.02458830177783966, -0.02222047932446003, 0.01579282432794571, -0.021128663793206215, -0.03038853220641613, -0.02382892370223999, -0.05291668698191643, 0.012656849808990955, -0.009136877954006195, -0.03188473731279373, 0.038109902292490005, -0.0016737787518650293, 0.005712846759706736, 0.037374164909124374, -0.00477604940533638, -0.04721866548061371, -0.05194764584302902, -0.03884953260421753, -0.04016198217868805, -0.073713019490242, -0.03670809790492058, 0.0016083483351394534, -0.010835724882781506, -0.03574145585298538, -0.02737337350845337, -0.011349823325872421, -0.0002680098405107856, 0.016603317111730576, -0.03402826189994812, -0.01385692972689867, 0.02616751380264759, 0.016082508489489555, -0.02454984374344349, 0.0012711273739114404, 0.06676115095615387, -0.00480558630079031, 0.002325458452105522, -0.005924613680690527, -0.006725492887198925, 0.036951348185539246, -0.0014684527413919568, 0.019758300855755806, -0.07218100130558014, 0.03992193192243576, 0.01733197271823883, -0.013068899512290955, -0.055912259966135025, 0.02350594848394394, 0.0252196304500103, -0.037993211299180984, 0.06522219628095627, -0.03459405153989792, 0.029998358339071274, -0.04641176387667656, -0.05220988020300865, -0.020399656146764755, 0.0065505169332027435, 0.04696565866470337, -0.01925593800842762, 0.09866995364427567, 0.044286519289016724, -0.026886453852057457, -0.048707764595746994, -0.006090374197810888, 0.007563604507595301, 0.011454619467258453, -0.007260373793542385, -0.025144513696432114, -0.06361164152622223, -0.07712423801422119, -0.02475144900381565, 0.013176738284528255, -0.029640665277838707, -0.040894459933042526, 0.008358057588338852, 0.006800007540732622, -0.021641390398144722, 0.008613121695816517, -0.04060617461800575, 0.008827111683785915, -0.020024098455905914, -0.029726283624768257, -0.02441130019724369, 0.02496364340186119, -0.0021146212238818407, -0.022140368819236755, 0.022989710792899132, -0.03766142949461937, 0.003934868145734072, -0.01771397516131401, 0.029281040653586388, 0.018243635073304176, -0.012164863757789135, 0.001762030879035592 ]
[ -0.07984499633312225, -0.0285678468644619, -0.01341162994503975, -0.009081234224140644, 0.027114050462841988, -0.04796850308775902, -0.024113517254590988, 0.03370104357600212, 0.009131282567977905, -0.017856812104582787, 0.011643857695162296, -0.038779981434345245, 0.014111187309026718, -0.023264871910214424, 0.10575520992279053, -0.034888479858636856, 0.04291575774550438, -0.08695153146982193, -0.0748954489827156, 0.0016690028132870793, 0.0013889218680560589, -0.05136101320385933, -0.059693772345781326, -0.02243099734187126, 0.012539686635136604, 0.04321247339248657, 0.05639103800058365, 0.0025210734456777573, -0.05183639004826546, -0.2059360295534134, 0.041067179292440414, 0.0006673228926956654, 0.04456435889005661, -0.03552991524338722, -0.0030321800149977207, 0.03454190120100975, 0.02511240541934967, -0.028695985674858093, 0.024081053212285042, 0.05898182466626167, 0.07038016617298126, -0.0031715466175228357, -0.039826009422540665, -0.01639609970152378, 0.013814471662044525, -0.030329644680023193, -0.010210209526121616, 0.010654965415596962, 0.042746350169181824, 0.01312857773154974, -0.08303356915712357, 0.01263534463942051, 0.012323496863245964, -0.04318022355437279, 0.017547452822327614, 0.04501282423734665, 0.03292030841112137, 0.05306030809879303, 0.02966105379164219, 0.05040798708796501, 0.03519357368350029, -0.00875793769955635, -0.12701594829559326, 0.09909794479608536, -0.02346768230199814, 0.04635710269212723, -0.061439476907253265, -0.03448719531297684, -0.031779881566762924, 0.04957590997219086, 0.01588590070605278, -0.01459919661283493, -0.02079983800649643, 0.09046029299497604, 0.021626131609082222, -0.018481891602277756, 0.0071950629353523254, 0.015970773994922638, -0.009081345051527023, -0.0013082314981147647, -0.07489447295665741, -0.006416607182472944, -0.028102312237024307, -0.014775118790566921, -0.04238824173808098, 0.0007455372833646834, -0.010821026749908924, 0.06208547577261925, 0.04862382635474205, -0.00038063168176449835, 0.034856121987104416, -0.03786760941147804, 0.03279804438352585, 0.02329314686357975, -0.10890346020460129, -0.015393606387078762, -0.05856430158019066, -0.012224962003529072, -0.026590172201395035, 0.38590550422668457, -0.023048818111419678, -0.02281157672405243, 0.04576529562473297, 0.006426387932151556, 0.002313583856448531, 0.005424197763204575, -0.012544985860586166, -0.01719343475997448, 0.041378725320100784, -0.0015091969398781657, -0.009380728006362915, 0.0008046992006711662, 0.07132738828659058, -0.05262073501944542, 0.013510438613593578, 0.021461253985762596, 0.047337207943201065, -0.011670373380184174, -0.029531456530094147, 0.03403022885322571, -0.0036936267279088497, 0.07049799710512161, 0.02101150155067444, 0.012005062773823738, 0.02896452695131302, -0.0031976087484508753, -0.00875761080533266, 0.06746342778205872, 0.0007146669086068869, 0.02110777050256729, 0.023147450760006905, -0.014953773468732834, -0.033866267651319504, 0.004657066892832518, -0.016441162675619125, 0.025263262912631035, 0.05336792767047882, -0.015616681426763535, -0.004702235106378794, 0.008356871083378792, -0.05157299339771271, -0.032826993614435196, 0.03601188212633133, -0.05079871416091919, 0.0035668015480041504, 0.09787017107009888, 0.03255355730652809, -0.009938543662428856, -0.014976471662521362, -0.029689982533454895, -0.04158775508403778, 0.040095292031764984, 0.03969239816069603, -0.0364956259727478, 0.010158771649003029, 0.025227973237633705, 0.03684241324663162, -0.015902064740657806, -0.028915079310536385, -0.02679482288658619, -0.019520165398716927, -0.0900120809674263, -0.0145412040874362, 0.0688503310084343, -0.005502438172698021, -0.11238327622413635, -0.04347534850239754, 0.00863192230463028, 0.0012556788278743625, -0.07559656351804733, 0.026664171367883682, 0.03404451534152031, -0.06510254740715027, -0.01145016960799694, 0.04540161415934563, -0.012953168712556362, -0.01738082244992256, 0.03354805335402489, 0.025746025145053864, 0.003598927054554224, 0.01604635640978813, 0.025044355541467667, -0.03768038749694824, -0.01725880801677704, -0.03468916565179825, -0.09281154721975327, -0.06868545711040497, 0.005046689882874489, -0.026691747829318047, -0.03094588965177536, -0.028038695454597473, -0.01304871030151844, -0.05686395242810249, 0.07176955789327621, 0.012664581649005413, -0.01214213203638792, -0.01712462492287159, 0.05740692466497421, 0.009037095122039318, -0.03850312903523445, 0.043030790984630585, 0.024950483813881874, -0.033289145678281784, 0.027683498337864876, -0.05846567079424858, 0.031295374035835266, 0.04045949876308441, -0.031476300209760666, 0.08013571798801422, 0.0007711477228440344, -0.042082663625478745, 0.007746693212538958, -0.03521791473031044, 0.036505840718746185, -0.0037554099690169096, 0.015804417431354523, 0.007457745261490345, 0.007361465599387884, 0.012414011172950268, 0.025929052382707596, 0.007959499023854733, -0.01331238728016615, -0.006123750004917383, -0.3525589406490326, -0.03191426768898964, -0.016646964475512505, 0.011984698474407196, -0.02665041759610176, -0.03968308866024017, 0.015562538057565689, -0.032141391187906265, 0.01355701219290495, 0.030658334493637085, 0.09099691361188889, 0.0005102682625874877, 0.03264981880784035, -0.0695444718003273, -0.005568350199609995, 0.01892072893679142, -0.011704263277351856, -0.03443567082285881, -0.002639048034325242, 0.02224412001669407, 0.013533247634768486, -0.0433930866420269, -0.003830189350992441, -0.03997651860117912, 0.002532988553866744, -0.020071787759661674, 0.1365586221218109, 0.07219180464744568, 0.040074028074741364, -0.08205591887235641, 0.06243373081088066, 0.04432907700538635, -0.014522384852170944, -0.07909023016691208, 0.015973500907421112, -0.02944127470254898, 0.0017014793120324612, -0.01611335575580597, -0.006957887671887875, 0.016723426058888435, -0.08447765558958054, 0.013457288965582848, -0.045759882777929306, -0.08371942490339279, 0.0007586731808260083, 0.00019672246708068997, 0.010454690083861351, 0.008518272079527378, -0.009225467219948769, 0.0892358347773552, 0.014544390141963959, 0.013333437032997608, 0.04270462691783905, 0.022457266226410866, 0.025998491793870926, -0.01293244119733572, -0.03879689425230026, -0.05196182429790497, 0.003793202806264162, -0.006434983108192682, 0.006836537271738052, 0.05538115277886391, 0.016997814178466797, -0.048330921679735184, 0.02355187200009823, 0.032458387315273285, -0.0038011788856238127, 0.009539907798171043, 0.042002927511930466, -0.013689114712178707, -0.03260180354118347, 0.07461636513471603, 0.019588090479373932, 0.02635163441300392, 0.03669307380914688, 0.04675470292568207, -0.0009196659666486084, -0.004774232394993305, 0.002531549194827676, -0.00316019169986248, 0.04231323301792145, 0.01113114133477211, 0.056811388581991196, -0.011854744516313076, 0.008725833147764206, 0.057087600231170654, -0.016002964228391647, -0.01929955743253231, 0.07725348323583603, -0.02832137607038021, -0.01816990226507187, -0.02030348591506481, -0.03952759876847267, -0.05672426521778107, 0.07115096598863602, 0.011578671634197235, -0.25884565711021423, 0.08175143599510193, 0.017609737813472748, 0.06513316929340363, 0.016160406172275543, 0.014117228798568249, 0.003485296852886677, -0.06293798983097076, -0.017186330631375313, -0.018644841387867928, 0.03412608802318573, 0.019606195390224457, 0.03170480206608772, -0.03436921909451485, 0.026072250679135323, -0.011724245734512806, 0.018030645325779915, 0.013318809680640697, 0.020297618582844734, 0.027995051816105843, 0.022115064784884453, -0.004797397181391716, 0.1596670299768448, 0.07463742047548294, -0.05528409034013748, 0.013879834674298763, -0.019535057246685028, 0.00845441035926342, 0.03019508719444275, 0.05452781543135643, -0.015598611906170845, 0.025294503197073936, 0.03129483386874199, 0.03583524003624916, 0.05967003107070923, -0.07785993069410324, -0.025462841615080833, 0.014315230771899223, -0.016518788412213326, -0.03675147145986557, -0.06655239313840866, 0.026006625965237617, -0.08149758726358414, 0.009181561879813671, 0.06416088342666626, -0.0476166270673275, -0.01899724453687668, -0.02882125973701477, -0.04598324000835419, 0.0012634044978767633, 0.005219427403062582, -0.0693504735827446, -0.011845461092889309, 0.03272786736488342, -0.008752329275012016, 0.04093434289097786, 0.00626576691865921, -0.02074700966477394, 0.008384150452911854, 0.03481898456811905, -0.0008062879787757993, -0.01562238484621048, 0.07869639247655869, -0.036031629890203476, -0.002884981222450733 ]
[ -0.020510345697402954, 0.031149184331297874, -0.031763121485710144, 0.02765415422618389, -0.008668890222907066, 0.025276342406868935, 0.005979930516332388, 0.063321053981781, 0.008862368762493134, -0.057206396013498306, 0.024672849103808403, -0.009646820835769176, 0.02745378017425537, -0.048580098897218704, 0.00989354494959116, -0.027321070432662964, 0.04854939877986908, -0.006550655700266361, 0.005028177984058857, -0.0252077579498291, 0.0036545575130730867, -0.0038796262815594673, -0.006166649982333183, -0.035031333565711975, -0.001446153037250042, 0.07806102931499481, -0.022008029744029045, 0.00831518042832613, 0.014049356803297997, -0.1476711630821228, -0.013873112387955189, -0.008063438348472118, 0.012375472113490105, 0.015591892413794994, 0.034447938203811646, 0.0004539154761005193, -0.008501145988702774, -0.029473183676600456, 0.03814972937107086, -0.02272462286055088, 0.0503733865916729, -0.029443154111504555, -0.042587537318468094, -0.008732161484658718, -0.026877494528889656, -0.03970244899392128, -0.04911721870303154, 0.03760248050093651, -0.0323948971927166, -0.0021919826976954937, -0.06486216187477112, 0.025885825976729393, -0.00022694394283462316, 0.018765293061733246, -0.0003587493556551635, -0.0035126551520079374, -0.01192227378487587, 0.030774354934692383, 0.0031325221061706543, 0.0033770122099667788, 0.011812295764684677, -0.010418298654258251, -0.03717885538935661, -0.006121174432337284, -0.026921015232801437, -0.007879024371504784, -0.021241875365376472, -0.00852485653012991, -0.03097238764166832, 0.007201658561825752, 0.007961409166455269, 0.015327723696827888, -0.05830010026693344, -0.03600910305976868, -0.00982563104480505, 0.013993683271110058, 0.020985472947359085, -0.04996493086218834, -0.01913822628557682, -0.005292693618685007, -0.048401664942502975, 0.026507491245865822, -0.02464245818555355, -0.023914413526654243, -0.012297612614929676, -0.006189063191413879, -0.024765174835920334, -0.02025844156742096, 0.03896357864141464, -0.006871948018670082, -0.004490166436880827, -0.02021418884396553, -0.01641370728611946, 0.015425384975969791, -0.09763932228088379, -0.011708044447004795, 0.004886995069682598, -0.004853903781622648, -0.018762212246656418, 0.8350548148155212, -0.0054217614233493805, 0.008146598935127258, 0.01979866996407509, 0.007655669003725052, -0.0026273445691913366, -0.02887444570660591, 0.015834925696253777, 0.005404393654316664, 0.025010939687490463, -0.03029223345220089, -0.033132024109363556, -0.002205474302172661, 0.011905960738658905, -0.002947276458144188, -0.003943292889744043, 0.021333850920200348, 0.04204142838716507, -0.018225008621811867, -0.002761073876172304, 0.0013751493534073234, 0.04562456160783768, 0.017768364399671555, 0.0004740593140013516, 0.0019036056473851204, 0.004474032670259476, -0.148016095161438, -0.014854433946311474, -6.603614287548705e-33, 0.027510249987244606, -0.0288388729095459, 0.04891426861286163, 0.021007930859923363, 0.014616098254919052, 0.020646020770072937, 0.007621246390044689, 0.019755344837903976, -0.037637367844581604, 0.010699641890823841, 0.0011827729176729918, -0.00597270205616951, -0.06039479002356529, 0.0035882603842765093, 0.040930673480033875, 0.01798761636018753, -0.0009910250082612038, 0.006321183405816555, 0.01850586198270321, -0.015592615120112896, 0.012411306612193584, 0.011262419633567333, 0.008688489906489849, 0.04177418351173401, -0.03039729781448841, 0.0437358058989048, 0.013948893174529076, -0.0026173104997724295, 0.0021241940557956696, -0.034011729061603546, -0.025965454056859016, 0.03552558645606041, -0.008796594105660915, -0.04473976790904999, -0.045372992753982544, -0.040826473385095596, -0.053133875131607056, 0.00311324093490839, -0.015961019322276115, -0.025866396725177765, -0.04837268218398094, 0.012232634238898754, -0.025546366348862648, 0.0009757553925737739, -0.0149982376024127, 0.003763495711609721, 0.029808765277266502, 0.02064204216003418, -0.026195313781499863, 0.0027217529714107513, 0.02862301841378212, 0.013361356221139431, 0.05008057504892349, 0.013140794821083546, 0.008279703557491302, 0.007723565213382244, -0.004837889224290848, -0.015453471802175045, 0.007486958988010883, -0.01472247764468193, 0.021683359518647194, 0.007630753330886364, -0.004354220815002918, 0.029335228726267815, 0.0037342810537666082, 0.018862558528780937, 0.0414038710296154, 0.00024350019521079957, -0.003458872903138399, 0.042615268379449844, -0.028752287849783897, -0.001573649002239108, -0.000021009591364418156, -0.02070724591612816, 0.02567119151353836, -0.029882246628403664, -0.034497350454330444, 0.02782982587814331, 0.03383282944560051, 0.029727675020694733, 0.04155014455318451, -0.03034304454922676, 0.0324128158390522, -0.04094047099351883, -0.03926219046115875, 0.009191315621137619, -0.0033148559741675854, 0.017218511551618576, 0.01884389854967594, 0.011773047968745232, 0.01536322571337223, 0.08571507781744003, 0.01865539513528347, -0.007878662087023258, 0.0040237316861748695, 6.228974687050041e-33, -0.017880911007523537, -0.02525053545832634, 0.012703663669526577, 0.005768273025751114, 0.020617974922060966, -0.018175313249230385, -0.016882358118891716, 0.0251652542501688, 0.019080692902207375, 0.040658481419086456, -0.028973504900932312, -0.006725840270519257, -0.029764896258711815, -0.00010619045497151092, 0.034660324454307556, 0.026353394612669945, 0.007654064334928989, -0.004476540721952915, 0.03868979960680008, -0.0011215044651180506, 0.0018803086131811142, 0.02317090891301632, -0.002594096353277564, 0.047922104597091675, -0.00659160828217864, 0.007407200522720814, 0.000015133138731471263, 0.02234720066189766, -0.02118876203894615, -0.03452637419104576, 0.024465307593345642, -0.03575706109404564, -0.012540202587842941, -0.015761323273181915, -0.025911511853337288, 0.02079150825738907, -0.04173509404063225, 0.0023725349456071854, 0.038890305906534195, -0.004208855796605349, -0.010405165143311024, -0.01178548950701952, 0.006852844264358282, 0.0559806302189827, 0.0025791344232857227, -0.05357016623020172, 0.022606832906603813, -0.0642533004283905, 0.009968393482267857, 0.02983611449599266, -0.027390141040086746, 0.03813527897000313, -0.002996498718857765, 0.01774982176721096, 0.005273414775729179, -0.019363069906830788, -0.009949183091521263, 0.03863697126507759, -0.01882258802652359, -0.03487011417746544, -0.031431809067726135, 0.032773397862911224, 0.002688715700060129, 0.0024867048487067223, -0.009442565031349659, 0.009757515974342823, 0.017471829429268837, -0.029108455404639244, 0.019787974655628204, -0.025539932772517204, 0.002686938736587763, 0.008730421774089336, -0.022836782038211823, 0.027513783425092697, -0.0005548677290789783, -0.023165365681052208, -0.02790631726384163, 0.024097129702568054, 0.0004973536706529558, -0.0034729677718132734, 0.0228080153465271, -0.018661603331565857, 0.00846144836395979, -0.026490218937397003, -0.004565590526908636, -0.003043230390176177, -0.0247280802577734, -0.0003707197611220181, 0.002494659973308444, 0.01759786158800125, -0.02385050244629383, -0.02292521484196186, -0.004204971715807915, 0.02168581821024418, 0.008474907837808132, -1.2616722777636369e-8, -0.012987672351300716, -0.0187838077545166, -0.02329452522099018, 0.01889915019273758, 0.044460464268922806, -0.015606727451086044, -0.03973869979381561, -0.0072709862142801285, -0.00901613850146532, 0.010787371546030045, 0.015249256044626236, 0.02311495877802372, 0.007774143945425749, 0.04726901650428772, -0.0038993610069155693, -0.0399538092315197, 0.014810320921242237, -0.025677552446722984, 0.038125719875097275, 0.03190326318144798, 0.03522107005119324, 0.05897929519414902, 0.020599685609340668, -0.037648387253284454, 0.02549048699438572, -0.03713085502386093, 0.022674251347780228, -0.06937699019908905, 0.027929645031690598, 0.020550476387143135, 0.024043656885623932, -0.025585943832993507, 0.00012819199764635414, 0.01688343659043312, -0.004576312843710184, -0.0518777072429657, -0.003269403940066695, -0.00041912338929250836, -0.018223928287625313, -0.007853803224861622, -0.013333585113286972, 0.00786829087883234, -0.03082163631916046, -0.02404307760298252, -0.060452818870544434, 0.01572149246931076, -0.0370669811964035, 0.009299644269049168, 0.0007643254357390106, 0.013402983546257019, -0.004725778009742498, -0.028123091906309128, 0.022663459181785583, -0.02358563244342804, 0.021849988028407097, 0.009095443412661552, 0.05443349480628967, -0.010584085248410702, 0.02101103402674198, -0.009699195623397827, 0.011944305151700974, -0.008484763093292713, -0.01218460500240326, -0.017545191571116447 ]
kcat-jq-reached-end-of-topic-exiting
https://markhneedham.com/blog/2022/12/06/kcat-jq-reached-end-of-topic-exiting
false
2024-02-04 00:44:37
LLaVA 1.5 vs. 1.6
[ "ollama", "generative-ai", "llava", "til" ]
[ "TIL" ]
:icons: font https://llava-vl.github.io/[LLaVA^] (or Large Language and Vision Assistant), an open-source large multi-modal model, just released https://llava-vl.github.io/blog/2024-01-30-llava-1-6/[version 1.6^]. It claims to have improvements over version 1.5, which was released a few months ago: [quote] ____ 1. Increasing the input image resolution to 4x more pixels. This allows it to grasp more visual details. It supports three aspect ratios, up to 672x672, 336x1344, 1344x336 resolution. 2. Better visual reasoning and OCR capability with an improved visual instruction tuning data mixture. 3. Better visual conversation for more scenarios, covering different applications. Better world knowledge and logical reasoning. 4. Efficient deployment and inference with SGLang. ____ Both the initial and new versions are available on https://ollama.ai/[Ollama^], so I thought I'd give them a try on some of my images to see how they get on. [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/jXUv8mlQHq0?si=n7NDkvoqV2weOz1e" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> ++++ ==== If you want to follow along, you'll need to install Ollama, launch Ollama (`ollama serve`), and then pull down both models: [source, bash] ---- ollama pull llava:7b-v1.5-q4_0 ollama pull llava:v1.6 ---- Now let's try out the models. == A photo of me We'll start with the following image of me looking through a magnifying glass. .Me with a magnifying glass image::{{<siteurl>}}/uploads/2024/02/images/image1.png[width=500] Let's create a chat session with the 1.5 version of LLaVA: [source, bash] ---- ollama run llava:7b-v1.5-q4_0 ---- We can then ask it to describe the image: [source, text] ---- "Can you describe this image? ./images/image.png" ---- .Output [source, text] ---- Added image './images/image1.png' The image depicts a bald man wearing glasses, holding up a magnifying glass to his eye. He is standing in front of a black background, possibly to focus on the subject matter being observed through the lens of the magnifying glass. His attentive gaze suggests that he might be examining an object or studying something in detail. ---- One neat recent feature of Ollama is that we can switch to another model from within the session by calling the `load` command. So to use the v1.6 model, we would call the following: [source, bash] ---- /load llava:v1.6 ---- .Output [source, text] ---- Loading model 'llava:v1.6' ---- And if we ask this model to describe the image, we'll see the following output: [source, text] ---- In the image, there is a man who appears to be in his middle years. He has a bald head and is wearing glasses with black frames and a thin black strap. The man is holding up what looks like a magnifying glass over his eye, as if examining something closely. He has a slight smile on his face and is looking directly at the camera, creating an engaging perspective. The man is dressed in a casual manner, with a white t-shirt adorned with a small pattern and a pair of dark pants. His stance is relaxed, suggesting he might be in a lighthearted or informal setting. Behind him, there's a plain black background that contrasts with the man and draws attention to him. The image does not contain any text or additional objects. The focus is solely on the man and his interaction with the magnifying glass. ---- 1.6 gives a more detailed answer, but I think it's more or less the same description as 1.5 gave. == Ollama Python For the rest of the examples, we're going to use the Ollama Python library, which we can install by running the following: [source, bash] ---- pip install ollama ---- Next, we'll run the following in a Jupyter notebook or from a Python REPL: [source, python] ---- import ollama def generate(model, image, prompt): stream = ollama.generate( model=model, prompt=prompt, images=[image], stream=True ) response = "" for chunk in stream: response += chunk['response'] print(chunk['response'], end='', flush=True) print("") return response ---- == Captioning an image Next, we're going to ask models to come up with a caption for the following image: .An arrow on bricks image::{{<siteurl>}}/uploads/2024/02/images/image2.png[width=500] We can do this by running the following code: [source, python] ---- image = "images/image2.png" prompt = "Create a caption for this image" for model in ['llava:7b-v1.5-q4_0', 'llava:v1.6']: print(f"Model: {model}") generate(model, image, prompt) ---- .Output [source, text] ---- Model: llava:7b-v1.5-q4_0 A blue brick wall with a white arrow pointing to the left. Model: llava:v1.6 "A playful twist on direction, with a blue wall providing the backdrop." ---- If we update the prompt to include the word 'creative', like this: [source, python] ---- image = "images/image2.png" prompt = "Create a creative caption for this image" for model in ['llava:7b-v1.5-q4_0', 'llava:v1.6']: print(f"Model: {model}") generate(model, image, prompt) ---- We get a slightly better output: .Output [source, text] ---- Model: llava:7b-v1.5-q4_0 "A blue arrow pointing the way, guiding us on our journey." Model: llava:v1.6 "Guiding the way to endless possibilities: a sign pointing towards an unknown adventure." ---- There's not much in it, but it seems to me that version 1.6 has 'understood' the prompt a bit better. == Reading a banner image Next up, let's see if the models can read the text from a banner image of one of my blog posts. .A blog image image::{{<siteurl>}}/uploads/2024/02/images/image3.png[width=500] We'll use the following prompt: [source, python] ---- image = "images/image3.png" prompt = "What text is written on this image?" for model in ['llava:7b-v1.5-q4_0', 'llava:v1.6']: print(f"Model: {model}") generate(model, image, prompt) ---- I ran this a few times because it was giving different answers each time. Here's the output for version 1.5: .Output [source, text] ---- Model: llava:7b-v1.5-q4_0 5 Ways to Use AI in Your Business Running a large language model locally on my laptop. "Hugging Face" ---- And 1.6: .Output [source, text] ---- Model: llava:7b-v1.5-q4_0 The text on the image reads: "HUGGING FACE - RUNNING A LARGE LANGUAGE MODEL LOCALLY ON MY LAPTOP" The text on the image reads: "Hugging Face" followed by a description of how to use Hugging Face for running a large language model locally on one's laptop. The text on the image reads: "Hugging Face Running a Large Language Model Locally On My Laptop" ---- It's by no means perfect, but I think version 1.6 wins this one. == Extracting code from an image But can it extract code from an image? These days lots of people create LinkedIn posts with code on images and I'd quite like to get that code and run it locally. Perhaps LLaVA can help out here. We're going to use the following image: .Python code for a window function image::{{<siteurl>}}/uploads/2024/02/images/image4.png[width=500] And we'll use the following prompt: [source, python] ---- image = "images/image4.png" prompt = "Extract the code from this image" for model in ['llava:7b-v1.5-q4_0', 'llava:v1.6']: print(f"Model: {model}") generate(model, image, prompt) ---- And here's how the models fared, starting with 1.5: .Output [source, text] ---- Model: llava:7b-v1.5-q4_0 ```sql a = A + 1 b = B + 1 c = C + 1 d = D + 1 if (a > b and a > c) then begin RP_RPT("A is greater than B but less than C") end if if (b > a and b > c) then begin RP_RPT("B is greater than A but less than C") end if if (c > a and c > b) then begin RP_RPT("C is greater than A and B") end if if (a = b and b = c) then begin RP_RPT("A,B,C are equal") end if if (a < b and a < c) then begin RP_RPT("A is less than B but greater than C") end if if (b < a and b < c) then begin RP_RPT("B is less than A but greater than C") end if if (c < a and c < b) then begin RP_RPT("C is less than A but greater than B") end if if (a > b or not(b = c)) then begin RP_RPT("A,B are not equal") end if if (a < b and a <= C) then begin RP_RPT("A is less than B but greater than or equal to C") end if if (b >= A and b <= C) then begin RP_RPT("B is within the range of A & C") end if if (c > A and c <= B) then begin RP_RPT("C is within the range of A & B") end if end if if (A = -1024 or B = -1024 or C = -1024) then begin RP_RPT("A,B,C are all equal to the value of -1024") end if if (D >= A + B + C and D <= 2**31 - 1) then begin RP_RPT("D is within the range of A+B+C") ---- And now 1.6 .Output [source, text] ---- Model: llava:v1.6 The image contains a screenshot of a computer screen with a code snippet displayed. Here is the extracted code: ```python import statistics as stats data = [10, 20, 30, 40, 50] mean = stats.mode(data) median = stats.median(data) stdev = stats.stdev(data) print('Mean:', mean) print('Median:', median) print('Standard Deviation (STDEV):', stdev) ``` This code is written in Python and uses the `statistics` module to calculate the mean, median, and standard deviation of a list of numbers. The list `data` contains five elements, which are then processed using the `mode`, `median`, and `stdev` functions from the `statistics` library. ---- Neither model does a good job when it comes to extracting code. == Understanding a diagram And we'll finish off by seeing whether the models can explain this diagram, which shows a relational vs graph approach to modelling a problem. .Relational vs graph modelling image::{{<siteurl>}}/uploads/2024/02/images/image5.png[width=500] We'll use this prompt: [source, python] ---- image = "images/image5.png" prompt = "Can you describe this diagram?" for model in ['llava:7b-v1.5-q4_0', 'llava:v1.6']: print(f"Model: {model}") generate(model, image, prompt) ---- Now, let's see how they get on. First up, 1.5: .Output [source, text] ---- Model: llava:7b-v1.5-q4_0 This diagram displays a network of interconnected files, with multiple layers and different shapes. There is a mix of both square and rectangular shapes, which can be seen in various parts of the image. The relationships between these elements are represented by arrows connecting them to one another, indicating that some files are dependent or related to others. This network diagram appears to represent an intricate system where different files have specific connections with other files within the structure. It provides a visual representation of how these files interact and engage with each other in this complex environment. ---- This doesn't make a whole lot of sense. Let's see if 1.6 does any better: .Output [source, text] ---- Model: llava:v1.6 The image you've shared is a flowchart that describes a process or workflow, likely from an algorithmic or computational context. Here's a description of the elements in the flowchart: 1. **Start Point**: There are two arrows pointing to a starting point labeled "from this..." suggesting the beginning of a process or algorithm. 2. **Sequence of Operations**: The sequence of operations is depicted by a series of boxes, each representing an action or function within the context of the flowchart. These actions seem to be related to data processing or transformation: - "Node1" appears to represent some sort of input or initial stage. - "Node2" and "Node3" seem to be intermediate steps or stages in the process. - "Node4" represents another significant step or decision point. - "Node5" is the final node, indicating the completion of the workflow or the output of the process. 3. **Arrows**: The arrows show the flow or direction of the operations. They indicate that the starting point leads to Node1 and then moves through the subsequent nodes until it reaches Node5. 4. **Labels on Nodes**: Each node has labels that are likely to represent actions, functions, or data elements involved in the process. However, without more context, these labels are not clearly defined. 5. **Final Arrow**: There's an arrow from Node5 pointing back to "from this..." which may indicate that the output of Node5 is being fed back into another part of the system. 6. **Connections Between Nodes**: The lines connecting the nodes represent the flow or relationship between them, showing that one node leads to the next in a logical sequence. 7. **Annotations**: There are annotations within the flowchart, but they're not fully legible due to the quality of the image. One can make out phrases like "Node1" and "Node5", indicating the names or identities of these nodes in the workflow. This type of diagram is commonly used in computer science and software engineering to visualize the steps involved in a process, making it easier to understand and communicate the logic behind a particular algorithm or system. ---- It's slightly better, but still doesn't do a good job of explaining the difference between the approaches.
In this post, we'll learn about LLaVA, an open source large multi-modal model.
uploads/2024/02/llava-banner.png
[ 0.0183156356215477, 0.030563397333025932, 0.01834728941321373, 0.03930581733584404, 0.078638456761837, 0.04236045479774475, 0.033761654049158096, 0.050328660756349564, -0.02094794437289238, -0.021863311529159546, -0.011539113707840443, 0.002964124083518982, -0.07508861273527145, 0.015377070754766464, -0.029430143535137177, 0.071740061044693, 0.06461133062839508, 0.02887308970093727, 0.013103023171424866, 0.03004804067313671, 0.04176323488354683, 0.0717034563422203, 0.022313687950372696, 0.030703632161021233, 0.012329348362982273, -0.0002525029703974724, 0.02698063664138317, 0.026005052030086517, -0.06980069726705551, -0.01384742371737957, 0.03233076632022858, 0.0014489628374576569, -0.01547112874686718, -0.009612114168703556, 0.02942480705678463, 0.0030331502202898264, -0.03084847517311573, 0.01642799749970436, 0.013244464993476868, 0.033972304314374924, -0.06255224347114563, 0.021181346848607063, -0.006013928912580013, 0.00782935693860054, -0.0492166131734848, 0.0031928536482155323, -0.04781702533364296, 0.01927943341434002, 0.010927621275186539, 0.007931378670036793, -0.07210416346788406, 0.03203630447387695, -0.02693266049027443, 0.010532911866903305, -0.018813010305166245, 0.0369865782558918, 0.0278508011251688, -0.07445815950632095, 0.015156513080000877, -0.05533921718597412, 0.004439196549355984, 0.007826433517038822, 0.030106959864497185, 0.018071945756673813, -0.00907824281603098, -0.023640690371394157, 0.013235518708825111, 0.04786061868071556, -0.0628555566072464, -0.02966438978910446, -0.009330549277365208, 0.008056623861193657, -0.03299739584326744, -0.02101673185825348, 0.02641085721552372, -0.0617789551615715, -0.027976935729384422, 0.06306780129671097, 0.030847910791635513, 0.009573761373758316, -0.0069065336138010025, -0.005840939003974199, 0.03080139495432377, 0.049168240278959274, -0.021743422374129295, -0.029059024527668953, -0.018655510619282722, -0.03350087255239487, -0.07786939293146133, 0.059959493577480316, -0.0075211976654827595, -0.052092090249061584, 0.025426791980862617, 0.030372804030776024, -0.005965362768620253, 0.006107516586780548, 0.011229116469621658, -0.005916656460613012, -0.01187516376376152, -0.000905578606761992, -0.02036399580538273, -0.026378750801086426, 0.01145942509174347, 0.023294799029827118, -0.09075235575437546, -0.01160940621048212, -0.030612953007221222, 0.009999487549066544, 0.0008131716167554259, 0.0030455824453383684, -0.014693176373839378, -0.004304529633373022, -0.0043474105186760426, 0.005133010912686586, -0.060548655688762665, 0.06461001187562943, 0.010125608183443546, -0.015382670797407627, -0.011178923770785332, 0.029894936829805374, 0.05759063735604286, 0.03315672650933266, -0.024334285408258438, 0.07659786939620972, 0.007491511292755604, 0.046524129807949066, -0.01365242525935173, 0.03875000402331352, -0.010026316158473492, -0.055748697370290756, 0.0036745641846209764, 0.03973313793540001, -0.013505425304174423, 0.022806618362665176, 0.017593150958418846, -0.024401670321822166, 0.022817350924015045, -0.016164623200893402, 0.04327826946973801, 0.009138142690062523, -0.0004347420472186059, -0.04159088060259819, 0.0006063801702111959, 0.0058736600913107395, 0.04509352147579193, 0.016894668340682983, 0.010954725556075573, -0.032940495759248734, -0.048733122646808624, -0.012278266251087189, 0.007696321699768305, 0.0001918386697070673, 0.039608847349882126, -0.030104193836450577, 0.013579451479017735, 0.0895199179649353, 0.03710516542196274, -0.017542975023388863, 0.019919203594326973, 0.018653789535164833, 0.040652018040418625, 0.02963007241487503, 0.00967338401824236, 0.04490255191922188, 0.0024290664587169886, -0.014084944501519203, -0.00498952018097043, 0.04432152584195137, -0.01600596494972706, 0.0027011476922780275, -0.06586670130491257, -0.05410325527191162, 0.05487138777971268, -0.02762405201792717, -0.04810507223010063, 0.07071938365697861, 0.0986434668302536, 0.0381210595369339, 0.036295194178819656, 0.022133754566311836, -0.08643507957458496, 0.01087064016610384, 0.01974465511739254, 0.0102900555357337, 0.023812783882021904, -0.027455659583210945, 0.10106087476015091, 0.014074856415390968, 0.00777696305885911, 0.028007084503769875, -0.052838824689388275, -0.047360360622406006, -0.022699907422065735, 0.010032049380242825, 0.07106543332338333, -0.028938572853803635, 0.003977502230554819, 0.043855857104063034, 0.027467507869005203, 0.05408688262104988, 0.021279264241456985, -0.00975268054753542, 0.029157033190131187, -0.03546002134680748, -0.04951274022459984, 0.031219420954585075, 0.04130733385682106, -0.009820718318223953, -0.03353199362754822, -0.001486756606027484, -0.022449573501944542, -0.012709197588264942, 0.03752828389406204, -0.005842066369950771, 0.033046938478946686, 0.0031891658436506987, 0.03944563493132591, -0.012450077570974827, 0.03166909143328667, -0.046106740832328796, 0.003438808722421527, -0.00769468117505312, -0.02650274895131588, -0.012087076902389526, -0.003919921349734068, 0.11586424708366394, 0.0595644935965538, -0.042528409510850906, -0.047532301396131516, -0.0020752353593707085, 0.010788521729409695, -0.04488658905029297, 0.007531197741627693, -0.0022150014992803335, -0.013396866619586945, -0.010664106346666813, -0.021689975634217262, -0.03375696763396263, 0.02850508876144886, -0.055913232266902924, -0.00865736324340105, 0.06672489643096924, -0.0037714301142841578, 0.03786281868815422, -0.013911310583353043, -0.015571222640573978, 0.016168205067515373, -0.028843360021710396, -0.06925322860479355, 0.0038373309653252363, 0.003788724774494767, -0.0072035719640553, 0.031452298164367676, -0.024073485285043716, -0.004407172556966543, -0.04243141785264015, -0.023075729608535767, 0.02099696733057499, 0.04918624833226204, 0.05845912545919418, 0.002335987286642194, 0.0435178205370903, -0.012273798696696758, 0.03469330444931984, -0.014450941234827042, -0.055519357323646545, -0.03002014197409153, -0.03726918622851372, -0.004132093396037817, 0.02557629533112049, 0.03200014308094978, 0.02678353525698185, 0.013041935861110687, -0.006288866512477398, 0.026303770020604134, 0.00094089366029948, 0.044578224420547485, 0.011583946645259857, -0.017278188839554787, -0.02105710282921791, -0.02316683903336525, 0.07046066969633102, -0.018890757113695145, -0.03001730516552925, -0.018087288364768028, -0.06802869588136673, 0.0376916378736496, -0.07349046319723129, -0.03722405806183815, -0.01960497908294201, 0.007549355272203684, 0.04485582560300827, 0.0076471795327961445, 0.010972592979669571, 0.02946416102349758, 0.00932121742516756, 0.020847084000706673, -0.00039753183955326676, -0.02575550600886345, 0.039012517780065536, -0.011562694795429707, 0.02807730995118618, 0.04947158321738243, -0.0009099264862015843, -0.006563294678926468, -0.049268148839473724, 0.040112923830747604, -0.04408011585474014, -0.29655933380126953, 0.0065482137724757195, 0.01580466330051422, -0.045586325228214264, 0.01729528233408928, -0.026531001552939415, 0.0011664930498227477, -0.06633631885051727, -0.015345617197453976, 0.010782906785607338, -0.006063160486519337, -0.024251529946923256, -0.0221265759319067, 0.03147118166089058, 0.019862009212374687, -0.003279882250353694, 0.0024281421210616827, -0.029978696256875992, 0.0027621921617537737, 0.03291615843772888, 0.007668000645935535, -0.07029511034488678, -0.0018954920815303922, 0.04553752392530441, 0.017735734581947327, 0.04843590036034584, -0.07268837094306946, 0.021259386092424393, -0.042786236852407455, -0.02379005029797554, 0.006053691729903221, -0.016490347683429718, -0.012215455062687397, 0.0030133759137243032, -0.015486394986510277, -0.017915500327944756, 0.06902249902486801, -0.0009931729873642325, 0.029444588348269463, -0.015332609415054321, 0.005706430412828922, -0.020976407453417778, 0.014063292182981968, 0.008914937265217304, 0.08371039479970932, -0.009994355961680412, -0.08955440670251846, 0.01113772764801979, -0.04139828309416771, 0.07148084044456482, -0.02748558484017849, -0.045899197459220886, -0.022085843607783318, 0.044377800077199936, 0.0021534860134124756, -0.009511997923254967, 0.007716075982898474, -0.005881837569177151, -0.036824677139520645, -0.027995873242616653, -0.0030357057694345713, -0.02564687468111515, -0.051968783140182495, -0.046941760927438736, 0.010903269983828068, -0.08300670981407166, -0.0482712984085083, -0.0052646915428340435, 0.08397871255874634, 0.020292380824685097, -0.04272245615720749, 0.0029883466195315123, -0.02569240890443325, -0.10512388497591019, 0.01092714723199606, -0.015226615592837334, -0.023454878479242325, -0.0067266132682561874, -0.004703763406723738, 0.06643711030483246, -0.029104001820087433, -0.056167252361774445, 0.031182287260890007, 0.014172341674566269, 0.008375856094062328, -0.01437310129404068, 0.029829978942871094, 0.009271099232137203, 0.01769687980413437, -0.0012221740325912833, 0.08161032944917679, -0.024939080700278282, -0.030934404581785202, -0.016850586980581284, -0.01033091451972723, -0.0041301012970507145, 0.018602510914206505, -0.0054079159162938595, 0.01595032401382923, 0.05837642028927803, 0.0034298051614314318, -0.07129058986902237, 0.007583965081721544, -0.031704943627119064, -0.011499375104904175, 0.009152282029390335, -0.051353856921195984, -0.0038875890895724297, 0.0468771830201149, 0.005096441600471735, -0.03264135867357254, -0.05205291509628296, 0.01965929940342903, -0.05674649775028229, -0.04140791296958923, -0.026495611295104027, 0.01988978125154972, 0.054951634258031845, -0.0025976523756980896, -0.024108387529850006, -0.034378450363874435, 0.01597163826227188, -0.015231781639158726, -0.022219879552721977, -0.05555512011051178, 0.0030667693354189396, -0.005984011571854353, -0.005853912327438593, -0.02066589705646038, 0.016721632331609726, -0.010906240902841091, 0.02927827462553978, 0.02092677727341652, -0.04219868779182434, 0.03386714681982994, -0.020802216604351997, -0.029212815687060356, -0.026180284097790718, 0.023138659074902534, -0.0023790323175489902, 0.004971436224877834, 0.014125870540738106, 0.009970770217478275, 0.007094302214682102, 0.037798140197992325, 0.01894965209066868, 0.04277898743748665, -0.019932357594370842, -0.011939533054828644, 0.013801854103803635, 0.0061762044206261635, -0.048981841653585434, 0.007356490008533001, -0.013635525479912758, -0.007195023819804192, -0.021063342690467834, 0.01374103594571352, -0.027502981945872307, -0.016931811347603798, -0.03694513067603111, 0.016232576221227646, -0.039698269218206406, -0.04581247270107269, 0.0032862802036106586, 0.01832338608801365, 0.04342286288738251, 0.024302883073687553, 0.0023347309324890375, 0.02430090866982937, -0.01236699428409338, 0.03075716830790043, -0.005739275366067886, -0.04985407739877701, -0.014926984906196594, -0.003936610650271177, -0.012821618467569351, 0.002021495020017028, 0.013267051428556442, 0.03814411535859108, 0.036323241889476776, 0.006773850414901972, -0.02643035538494587, 0.029801754280924797, 0.0006122599588707089, 0.03598041832447052, 0.008667398244142532, -0.04605801776051521, -0.005968528334051371, -0.01756727136671543, -0.021898183971643448, -0.015430212952196598, 0.0056454832665622234, 0.002554460195824504, -0.0038087337743490934, -0.030003318563103676, -0.0806647464632988, 0.012489311397075653, -0.0036223414354026318, 0.018094399943947792, 0.009263178333640099, -0.015739750117063522, 0.011651454493403435, -0.046465031802654266, 0.030411317944526672, 0.04493182525038719, -0.07832387089729309, 0.02172793075442314, 0.012949079275131226, -0.002406282117590308, 0.009413201361894608, 0.01283323485404253, -0.06038610264658928, -0.019538506865501404, -0.010626452043652534, 0.02284480445086956, -0.04318387061357498, -0.028166376054286957, -0.03329947963356972, 0.003823651233687997, -0.013430440798401833, 0.011956067755818367, -0.021012095734477043, -0.031531743705272675, -0.003977266140282154, -0.024046853184700012, 0.015589585527777672, -0.027837352827191353, 0.022095784544944763, 0.04845809191465378, -0.03520622476935387, 0.030575904995203018, -0.036143913865089417, 0.012898559682071209, 0.05967255309224129, -0.01574159786105156, 0.012105099856853485, -0.05172032117843628, -0.010895593091845512, 0.016703182831406593, 0.03332063928246498, 0.00046616836334578693, 0.00273855309933424, -0.06334817409515381, 0.006101125385612249, -0.019264928996562958, 0.03234085813164711, -0.013391372747719288, -0.0003295842616353184, 0.041681937873363495, 0.033178869634866714, 0.001873563276603818, -0.009513135999441147, -0.014045929536223412, -0.01735934242606163, 0.0536956787109375, -0.0722937136888504, -0.023450667038559914, -0.015499718487262726, -0.03175702318549156, 0.032922714948654175, -0.001464199391193688, 0.021628377959132195, -0.030709797516465187, 0.04501957818865776, 0.02256126143038273, 0.010821707546710968, 0.027943724766373634, -0.012719400227069855, 0.04302578791975975, -0.03998413681983948, 0.014690500684082508, -0.08045400679111481, -0.012069004587829113, 0.023096757009625435, -0.022530805319547653, -0.01838107779622078, 0.0065964264795184135, -0.06090575084090233, 0.05536170303821564, -0.06137891858816147, -0.011069722473621368, 0.042277198284864426, -0.012451833114027977, -0.006047431845217943, 0.013122904114425182, -0.04703037068247795, 0.035277124494314194, 0.0218257624655962, -0.04524725675582886, -0.0030512704979628325, -0.032214440405368805, 0.0691063329577446, -0.009018086828291416, 0.045313138514757156, -0.019598927348852158, 0.009416894987225533, 0.06623609364032745, 0.024937154725193977, 0.009491884149610996, 0.02722158096730709, 0.006845467258244753, 0.05710703134536743, 0.02735111489892006, 0.009133448824286461, 0.012736555188894272, 0.014679529704153538, -0.020204313099384308, -0.08013713359832764, 0.04136533662676811, 0.0006570050027221441, -0.029558034613728523, -0.06674157828092575, 0.06541486829519272, 0.029512690380215645, 0.006456469651311636, -0.03031005710363388, 0.018362926319241524, -0.04664052277803421, -0.012776253744959831, -0.022782232612371445, -0.016499755904078484, -0.04019462689757347, 0.06615991145372391, -0.013005833141505718, 0.014597942121326923, 0.058656711131334305, 0.01078228559345007, -0.009440213441848755, -0.008689668960869312, 0.09439694881439209, 0.06053498014807701, 0.06394074112176895, 0.004932441283017397, 0.09437624365091324, -0.03720201179385185, -0.04460795968770981, 0.03449498862028122, 0.0007245521992444992, -0.042713556438684464, -0.03971017152070999, 0.02021106332540512, 0.07057858258485794, -0.019540641456842422, 0.0626629963517189, -0.0350058488547802, -0.028352836146950722, 0.015414675697684288, 0.00021211919374763966, 0.01226438581943512, 0.04479678347706795, 0.014508304186165333, -0.0037178979255259037, -0.0011887409491464496, -0.025581184774637222, 0.01297181099653244, -0.02020207978785038, 0.0039267772808671, 0.018291685730218887, -0.015407796017825603, 0.029692942276597023, -0.024046562612056732, 0.031779155135154724, 0.09559082984924316, -0.04709426686167717, 0.002678811550140381, -0.01350576151162386, 0.0124561358243227, 0.0333460196852684, 0.03277895599603653, -0.020305829122662544, -0.014530978165566921, -0.0003079494636040181, -0.028911853209137917, 0.0030641427729278803, -0.016022663563489914, -0.002560592256486416, 0.034410182386636734, -0.031070470809936523, -0.007038514129817486, 0.04199090600013733, -0.007851325906813145, -0.05046910047531128, -0.04796344041824341, -0.053608763962984085, -0.05542624741792679, -0.06015941500663757, -0.018221920356154442, 0.001059252885170281, 0.007944746874272823, -0.05698682367801666, -0.04797951504588127, -0.02995498664677143, 0.0002095758100040257, 0.035835105925798416, -0.05320357531309128, -0.03124820627272129, 0.02649853751063347, 0.01873631216585636, 0.003496534889563918, 0.026631386950612068, 0.057217564433813095, 0.00974198430776596, -0.01898687519133091, -0.025437738746404648, 0.023259101435542107, 0.033912088721990585, 0.00832028966397047, 0.011361858807504177, -0.08942694962024689, -0.0009594412986189127, 0.022790832445025444, -0.02776021510362625, -0.06599500775337219, 0.00878366269171238, 0.017764069139957428, 0.002733108587563038, 0.07411443442106247, -0.021908048540353775, 0.015176617540419102, -0.055197834968566895, -0.036528509110212326, -0.027348339557647705, 0.004216599743813276, 0.03588487580418587, -0.025093941017985344, 0.09090572595596313, 0.01961640454828739, 0.0064608207903802395, -0.05390090122818947, -0.0038694634567946196, -0.013549954630434513, 0.0052735088393092155, -0.035921406000852585, -0.01931469887495041, -0.034281570464372635, -0.09416676312685013, -0.017287448048591614, 0.028995471075177193, -0.03058472089469433, -0.04301805421710014, 0.008201337419450283, 0.002466042060405016, -0.013706615194678307, 0.03193734958767891, -0.04069554805755615, -0.008726133033633232, -0.029649147763848305, 0.004081227350980043, -0.004258495289832354, 0.04105251654982567, -0.003784009488299489, 0.009148309007287025, 0.04812970384955406, -0.04873976856470108, 0.0076353722251951694, -0.010935010388493538, 0.02457725815474987, 0.028889620676636696, 0.030429355800151825, 0.0025922234635800123 ]
[ -0.07823746651411057, -0.035733144730329514, -0.009887002408504486, -0.027288474142551422, 0.05569084361195564, -0.01722225733101368, -0.04376939311623573, 0.036169081926345825, -0.0005084682488813996, 0.010103052482008934, -0.008939781226217747, -0.05748806893825531, -0.0045859976671636105, 0.008591079153120518, 0.0848197340965271, -0.007705536670982838, 0.015283457934856415, -0.07741240411996841, -0.015388791449368, 0.020859520882368088, 0.013433930464088917, -0.0182381309568882, 0.005300615448504686, -0.026523439213633537, -0.0135293984785676, 0.020481063053011894, 0.03358394652605057, -0.03707867115736008, 0.03536444157361984, -0.23506847023963928, 0.0006204204983077943, 0.018259752541780472, 0.048198673874139786, -0.02376493439078331, -0.06629598140716553, 0.04414732754230499, -0.019357480108737946, 0.03192109242081642, -0.01760638691484928, 0.025548920035362244, 0.0077975718304514885, 0.007362114731222391, -0.0864531472325325, -0.06620778143405914, 0.04268917068839073, -0.019995685666799545, -0.014569047838449478, -0.025923866778612137, -0.023130139335989952, 0.003494381671771407, -0.04392601177096367, -0.03820111230015755, 0.00040898911538533866, -0.018184751272201538, -0.02011558972299099, 0.01964552327990532, 0.0421467162668705, 0.052528321743011475, 0.02406182512640953, 0.02525470405817032, 0.03190149739384651, -0.0406719371676445, -0.1326400637626648, 0.13115495443344116, -0.021692849695682526, 0.02931872569024563, -0.008746524341404438, -0.02514517866075039, -0.004451891407370567, 0.051693145185709, 0.020296448841691017, -0.010427053086459637, -0.010231228545308113, 0.00586117897182703, 0.00948617048561573, -0.00006342988490359858, 0.016256988048553467, 0.015485101379454136, 0.010449008084833622, -0.05017432942986488, -0.015845302492380142, 0.019453924149274826, -0.01911785639822483, -0.01852986216545105, -0.017378922551870346, 0.03439309448003769, -0.016796011477708817, 0.05338871106505394, -0.008481703698635101, -0.005256655625998974, -0.0003343728603795171, -0.019899878650903702, 0.0492357462644577, -0.0012895641848444939, -0.1009034514427185, -0.025674641132354736, -0.009771516546607018, 0.0011656841961666942, -0.0280653927475214, 0.47945117950439453, -0.02134636975824833, -0.013389812782406807, 0.08670370280742645, -0.008881742134690285, 0.05153535306453705, 0.008562855422496796, -0.015427603386342525, -0.029018260538578033, 0.005333453416824341, 0.01437628734856844, 0.037116724997758865, 0.01171572133898735, 0.04815308377146721, -0.026386365294456482, -0.018802305683493614, -0.005964106414467096, 0.0208270400762558, 0.007031973451375961, 0.014827114529907703, -0.0005237542791292071, -0.03736324608325958, -0.0021214692387729883, 0.006330273114144802, -0.01324396301060915, 0.021825294941663742, -0.036038849502801895, 0.0370158888399601, 0.028209945186972618, 0.05650153383612633, 0.030114009976387024, 0.03997617959976196, -0.025748763233423233, -0.030789673328399658, -0.00037647655699402094, 0.011647935025393963, 0.027194557711482048, 0.053912173956632614, -0.02290913090109825, -0.0013537752674892545, 0.045497629791498184, -0.042514096945524216, -0.012029087170958519, 0.04771389439702034, -0.01452566310763359, -0.011699478141963482, 0.0960315614938736, 0.012563465163111687, -0.02592836134135723, -0.014651454985141754, -0.025318488478660583, 0.011725272051990032, 0.05426943674683571, 0.02602986991405487, -0.016041725873947144, 0.03052159585058689, 0.0010464087827131152, 0.06093558669090271, -0.016723163425922394, -0.09074916690587997, 0.0029029713477939367, 0.005697900895029306, -0.024395430460572243, -0.026959147304296494, 0.007373061031103134, 0.013637377880513668, -0.11586335301399231, -0.0413229838013649, 0.030213894322514534, 0.021286439150571823, -0.03446841984987259, -0.005151134449988604, 0.024282781407237053, -0.03925013914704323, 0.00006494025001302361, 0.07079584151506424, 0.0010838651796802878, -0.04553813859820366, 0.013199281878769398, 0.013771378435194492, 0.005835138261318207, -0.014657728374004364, -0.02161785587668419, -0.02495572157204151, -0.001114347716793418, -0.04996376857161522, -0.06876876205205917, -0.02444358356297016, -0.020952807739377022, 0.008469410240650177, -0.04841073229908943, 0.029010003432631493, -0.0035009051207453012, -0.05242638289928436, 0.080864816904068, -0.008846922777593136, -0.005711185745894909, -0.02535361610352993, -0.011957589536905289, -0.02569287084043026, -0.03967658802866936, 0.009527779184281826, 0.033981803804636, -0.00016266456805169582, 0.04172062501311302, -0.015079139731824398, 0.030429095029830933, 0.028331678360700607, -0.0279697272926569, 0.058704640716314316, 0.02664974331855774, -0.060713622719049454, -0.010806641541421413, 0.03813087195158005, 0.032538700848817825, 0.013397968374192715, -0.02657022885978222, -0.007035969756543636, 0.010989075526595116, 0.017347246408462524, -0.0005953888176009059, -0.012168616987764835, -0.05005186051130295, -0.05308301001787186, -0.32388779520988464, -0.021268848329782486, -0.005837828852236271, 0.02923678420484066, 0.0020266035571694374, -0.07423272728919983, 0.0252204779535532, -0.01315039861947298, 0.0722074881196022, 0.008320034481585026, 0.05922799929976463, -0.008165540173649788, 0.03648972883820534, -0.07726741582155228, 0.0015192613936960697, 0.04783789440989494, -0.01646546833217144, -0.001461994950659573, -0.03262662515044212, -0.0014952656347304583, 0.0007119788788259029, 0.030920131132006645, -0.011762580834329128, -0.04682726413011551, -0.011446389369666576, -0.032339490950107574, 0.12096476554870605, 0.04325456917285919, 0.04865867644548416, -0.0549774244427681, 0.04378087446093559, 0.037297964096069336, -0.02289462834596634, -0.07550640404224396, 0.009732198901474476, 0.0028250226750969887, 0.03702448680996895, -0.0077495332807302475, 0.004472426138818264, -0.029755784198641777, -0.02265923283994198, 0.018236415460705757, -0.03729968145489693, -0.059376008808612823, -0.04693066328763962, 0.020751433447003365, -0.006827780045568943, -0.017602616921067238, -0.03350549563765526, 0.07620861381292343, 0.0006189272389747202, -0.007168875075876713, 0.008674505166709423, 0.018444480374455452, -0.0292812567204237, -0.023000309243798256, -0.08619899302721024, -0.02250182069838047, 0.014050265774130821, -0.023200197145342827, 0.01881060004234314, 0.028941435739398003, 0.021147996187210083, -0.11533714830875397, 0.006264984142035246, 0.029804084450006485, -0.012293964624404907, -0.0305173359811306, 0.06517178565263748, -0.0256497859954834, -0.02782776951789856, 0.08751688152551651, -0.014410067349672318, 0.012680862098932266, 0.05725597217679024, 0.04855554923415184, 0.056287962943315506, 0.04424440488219261, 0.004704380873590708, 0.011982478201389313, 0.01842828094959259, 0.026862140744924545, -0.003378140041604638, -0.04673992469906807, 0.005236809607595205, 0.04181794077157974, 0.0004435844311956316, -0.0611194483935833, 0.023354677483439445, 0.010972332209348679, -0.013430413790047169, 0.0005365077522583306, 0.00030518550192937255, -0.0852600485086441, 0.05632617324590683, 0.027825694531202316, -0.26062142848968506, 0.04600590467453003, 0.07953387498855591, 0.07623053342103958, -0.011108229868113995, 0.040440596640110016, 0.0014516890514642, -0.07055661827325821, 0.00003076085340580903, -0.0038534393534064293, -0.006121957208961248, 0.01649806648492813, 0.02193032205104828, 0.01021484937518835, 0.01407140027731657, -0.021315131336450577, 0.048522405326366425, -0.011563185602426529, 0.0313902422785759, 0.0025738640688359737, -0.020600948482751846, -0.01524803601205349, 0.15813516080379486, -0.005676446948200464, -0.031921256333589554, 0.01570042036473751, -0.003628429723903537, -0.023984558880329132, 0.02906951494514942, 0.016893653199076653, -0.008921550586819649, 0.02342493087053299, 0.05529296025633812, 0.03275531530380249, 0.011458347551524639, -0.036488063633441925, -0.060586798936128616, 0.025289494544267654, -0.0032736321445554495, 0.01943628117442131, 0.04757613688707352, 0.031124526634812355, -0.025640327483415604, 0.021895520389080048, 0.04292294383049011, -0.008418871089816093, 0.004892842378467321, 0.0600481815636158, -0.055389489978551865, -0.023429544642567635, -0.008299593813717365, -0.07095591723918915, -0.03210961073637009, 0.01224226038902998, 0.008383983746170998, 0.04001602903008461, 0.009766196832060814, -0.009515101090073586, 0.042341090738773346, 0.01881350576877594, -0.017980050295591354, -0.03622834011912346, 0.08008405566215515, -0.001993271755054593, 0.02047325298190117 ]
[ 0.03263377770781517, -0.022499941289424896, 0.007401893846690655, -0.028234833851456642, 0.04211485758423805, -0.006916254758834839, 0.0026241776067763567, 0.0195529293268919, 0.0006341423722915351, 0.003197049954906106, 0.00987157877534628, 0.02910308539867401, 0.001965217525139451, 0.0059869010001420975, 0.03695417568087578, -0.005242687650024891, 0.034383807331323624, -0.004264812916517258, -0.00021093567193020135, 0.01787547953426838, -0.0018057860434055328, -0.0038195238448679447, 0.04011279717087746, -0.009808769449591637, 0.007982796989381313, 0.0455671064555645, -0.0393112376332283, -0.008291480131447315, 0.06143802031874657, -0.1589387059211731, 0.007992364466190338, -0.032169777899980545, -0.010277989320456982, 0.015362558886408806, -0.02135143056511879, -0.01630164310336113, -0.018837062641978264, -0.020128093659877777, -0.06181742250919342, -0.004720729310065508, -0.018944885581731796, 0.005355215631425381, -0.002586494432762265, 0.008795931935310364, 0.017788425087928772, -0.031026041135191917, -0.022788528352975845, -0.03295328840613365, -0.003932739607989788, -0.02981794811785221, -0.058083679527044296, -0.04485207051038742, -0.019676754251122475, 0.005724871065467596, -0.031325437128543854, 0.010755927301943302, -0.0017464178381487727, -0.016757678240537643, 0.04261920228600502, 0.028414661064743996, 0.001918957568705082, -0.007442127913236618, -0.021839000284671783, -0.005454258061945438, 0.02537110075354576, -0.021334443241357803, 0.006468287203460932, -0.02843300998210907, -0.02540130354464054, -0.001752300187945366, -0.011969842948019505, 0.03239644318819046, -0.019227610900998116, -0.0032611871138215065, -0.03099990263581276, -0.03384663164615631, 0.02110978402197361, -0.0058025517500936985, 0.02592410333454609, 0.010002678260207176, 0.003602951765060425, 0.017838822677731514, -0.00024171116820070893, 0.0350366048514843, 0.027885543182492256, -0.013938604854047298, -0.01958726905286312, 0.006383153609931469, 0.020172150805592537, -0.030565178021788597, -0.05465542897582054, 0.0024371070321649313, 0.00645100325345993, 0.024983812123537064, -0.06857742369174957, -0.025970755144953728, -0.01097805891185999, -0.06538860499858856, -0.012681497260928154, 0.8478977680206299, 0.004118338692933321, -0.028443247079849243, 0.03687349706888199, 0.021721655502915382, 0.03154226019978523, 0.03078356385231018, 0.027667300775647163, 0.030460473150014877, -0.02107185684144497, -0.03955113887786865, 0.020432578399777412, -0.003134459024295211, 0.02061682753264904, 0.032032351940870285, 0.009203932248055935, 0.011181998066604137, 0.01506535429507494, 0.002788504585623741, 0.012962578795850277, 0.02168724313378334, 0.0019703805446624756, -0.0385819673538208, 0.01523918192833662, -0.006808038335293531, 0.0030308160930871964, -0.1726110875606537, 0.0014827256090939045, -6.489439255937305e-33, 0.0550602562725544, -0.018809471279382706, 0.0035933596082031727, 0.012663348577916622, 0.016279732808470726, 0.03185787796974182, 0.007704338524490595, 0.0077195558696985245, -0.03283983841538429, -0.04874655604362488, 0.013808510266244411, -0.011229131370782852, -0.030808616429567337, 0.023177925497293472, 0.03640273958444595, -0.014027399010956287, 0.015153838321566582, 0.04246664047241211, 0.00953155942261219, 0.0030759216751903296, 0.014145877212285995, 0.02766059711575508, 0.008603634312748909, 0.015913810580968857, -0.029171880334615707, 0.02583414688706398, 0.012518928386271, -0.002507752738893032, -0.005770211573690176, -0.039533134549856186, -0.010632243938744068, -0.005305815953761339, 0.0026920014061033726, -0.03599818795919418, 0.0005189105868339539, -0.03231693059206009, -0.05417830869555473, 0.013585422188043594, -0.018110837787389755, 0.0013144088443368673, -0.02787628024816513, 0.01661914400756359, -0.04294000193476677, -0.03683868795633316, -0.033634647727012634, 0.023142721503973007, 0.013314769603312016, 0.03487695753574371, -0.00801182072609663, 0.011898423545062542, 0.009051869623363018, 0.010369940660893917, -0.029962951317429543, -0.034459687769412994, 0.004036754835397005, 0.02573421038687229, 0.019275957718491554, 0.01813700422644615, 0.02309046871960163, -0.0022144613321870565, -0.01792965643107891, -0.016146114096045494, -0.0019189659506082535, 0.030254967510700226, -0.0012086672941222787, -0.01617557369172573, 0.04161784052848816, -0.01920381560921669, -0.0034223010297864676, 0.0088180648162961, -0.07121943682432175, 0.04430249705910683, -0.013673671521246433, -0.022693749517202377, 0.020154140889644623, -0.04730841889977455, -0.019594117999076843, 0.010137489065527916, 0.010451465845108032, 0.04597260802984238, 0.005341746378690004, 0.015938227996230125, 0.028850344941020012, -0.03929535299539566, -0.025487162172794342, -0.03596989065408707, 0.022571483626961708, -0.016835186630487442, -0.03500290960073471, -0.0028806221671402454, 0.03747989982366562, 0.02107848972082138, -0.0007683989242650568, -0.020710807293653488, -0.0020148123148828745, 7.007904263678922e-33, 0.018933657556772232, 0.04205995425581932, -0.015021688304841518, 0.01822442188858986, 0.031000172719359398, -0.0215050857514143, 0.05855181813240051, 0.03384071961045265, -0.024029433727264404, -0.0063384766690433025, -0.019968068227171898, 0.0034544344525784254, -0.0503753162920475, 0.015203357674181461, 0.059508614242076874, -0.02547452598810196, 0.004542602226138115, -0.024878710508346558, 0.011385750025510788, -0.01695134863257408, 0.009458186104893684, 0.013572375290095806, 0.02389029785990715, -0.000042497224058024585, 0.020177103579044342, 0.04841175675392151, 0.018980681896209717, 0.022113794460892677, -0.025658579543232918, 0.019832201302051544, 0.025945570319890976, -0.023555483669042587, 0.0016686489107087255, -0.005878768861293793, 0.027131862938404083, 0.025446055456995964, 0.009395143017172813, 0.009103653952479362, -0.007988153025507927, 0.024686677381396294, 0.016822725534439087, 0.03141802176833153, -0.006022763904184103, -0.006910800933837891, -0.013008608482778072, 0.0006841715658083558, 0.019440777599811554, 0.003991473000496626, 0.0022263547871261835, -0.018847167491912842, -0.004890937823802233, -0.01683696173131466, 0.018201597034931183, 0.013633920811116695, 0.009087558835744858, -0.027271566912531853, -0.04101314768195152, 0.05074291676282883, 0.008006821386516094, -0.01626654714345932, 0.007910817861557007, -0.02028174325823784, 0.0017803425434976816, -0.014203842729330063, -0.01705351285636425, 0.004037891048938036, -0.014078980311751366, 0.021897779777646065, -0.017116926610469818, 0.00743553601205349, -0.005736475344747305, -0.02257862314581871, 0.004872323013842106, 0.045608967542648315, 0.02155645750463009, -0.0028116428293287754, -0.020256849005818367, 0.0033410396426916122, -0.011659315787255764, 0.006408528424799442, 0.01197862159460783, -0.009815378114581108, 0.015449813567101955, 0.010936928912997246, 0.012149734422564507, 0.048373993486166, -0.006104463245719671, 0.030932093039155006, 0.02603350393474102, -0.008506698533892632, -0.028763964772224426, 0.00911242701113224, 0.015780113637447357, 0.014329175464808941, 0.055911969393491745, -1.2442364472065037e-8, -0.03623364493250847, 0.0019798562861979008, -0.01647339202463627, 0.022744260728359222, -0.006114307790994644, -0.0057610212825238705, -0.010847924277186394, -0.001053300453349948, 0.018005872145295143, -0.012298434972763062, 0.03562374785542488, -0.008133736439049244, -0.010624750517308712, 0.009367729537189007, 0.00509127601981163, -0.012672532349824905, -0.00518461037427187, -0.01252294983714819, 0.02669372595846653, -0.012076644226908684, 0.02646358497440815, 0.025036636739969254, 0.04168879613280296, -0.014963129535317421, -0.01255087647587061, -0.00684564933180809, -0.016619550064206123, -0.05980975925922394, -0.027818234637379646, -0.010088643990457058, 0.008646822534501553, -0.01929597184062004, -0.018924852833151817, -0.02473631128668785, -0.01366307120770216, -0.04150146618485451, 0.006023196503520012, -0.005795174743980169, 0.033993881195783615, -0.004441202152520418, -0.01408514752984047, 0.000999415758997202, 0.03864706680178642, -0.04013600945472717, -0.00650645000860095, 0.03425076976418495, 0.0249931700527668, -0.03472942113876343, 0.0021590867545455694, -0.012437967583537102, -0.020159296691417694, -0.007689096033573151, -0.044513653963804245, 0.057813551276922226, 0.012955260463058949, -0.05236044526100159, 0.021631889045238495, -0.011130441911518574, -0.02587718330323696, 0.006270610261708498, 0.025657398626208305, 0.011381390504539013, -0.014513608068227768, -0.01373656652867794 ]
llava-large-multi-modal-model-v1.5-v1.6
https://markhneedham.com/blog/2024/02/04/llava-large-multi-modal-model-v1.5-v1.6
false
2024-01-03 00:44:37
nvim: Unable to create directory for swap file - recovery impossible: permission denied
[ "nvim", "til" ]
[ "TIL" ]
:icons: font I was playing around with https://neovim.io/[neovim^] last week and despite installing it via Homebrew, ran into a weird permissions error. In this blog post, I'll describe the problem I had and how to solve it. I installed it like this: [source, bash] ---- brew install nvim ---- And then tried to create a new file: [source, bash] ---- nvim foo.py ---- Which resulted in the following error: .Output [source, text] ---- E303: Unable to create directory "/Users/markhneedham/.local/state/nvim" for swap file, recovery impossible: permission denied E303: Unable to open swap file for "foo.py", recovery impossible ---- Hmm, let's take a look at what's in my `~/.local` directory. [source, bash] ---- ls -alh ~/.local ---- .Output [source, text] ---- total 0 drwxr-xr-x 6 markhneedham staff 192B 29 Nov 21:40 . drwxr-x---+ 149 markhneedham staff 4.7K 2 Jan 23:37 .. drwxr-xr-x@ 5 markhneedham staff 160B 19 Dec 06:22 bin drwxr-xr-x@ 6 markhneedham staff 192B 29 Nov 21:40 pipx drwxr-xr-x 5 markhneedham staff 160B 2 Jan 23:31 share drwxr-xr-x 3 root staff 96B 14 Feb 2023 state ---- Weird, it's made `root` the owner of the `state` directory, whereas I need it to be `markhneedham`. But we can fix that using `chown`: [source, bash] ---- sudo chown ~/.local/state markhneedham:staff ---- And now if we open a file with nvim it's happy!
In this post, we'll learn how work about a permissions issue when using nvim.
uploads/2024/01/nvim-banner.png
[ -0.010309956036508083, 0.0320611447095871, -0.020260058343410492, 0.042904358357191086, 0.09718416631221771, 0.02835521101951599, 0.01390642486512661, 0.012915504164993763, -0.013683991506695747, -0.030282316729426384, -0.024087699130177498, 0.016759738326072693, -0.05893060192465782, 0.04585845395922661, -0.001895157154649496, 0.06254584342241287, 0.07699554413557053, 0.023442333564162254, 0.0019000027095898986, 0.0027554279658943415, 0.03532956913113594, 0.028631582856178284, -0.007106701843440533, 0.04726007580757141, 0.01767466589808464, 0.018835492432117462, 0.034977421164512634, -0.022347193211317062, -0.07278793305158615, 0.00007422112685162574, 0.025808589532971382, -0.007318854797631502, 0.017581338062882423, -0.02356286533176899, 0.03783474117517471, 0.01783178187906742, -0.04008685424923897, 0.01849447563290596, 0.020203037187457085, 0.013317137956619263, -0.050469666719436646, 0.01381702907383442, 0.001250523841008544, -0.012553712353110313, -0.011872181668877602, 0.013342509977519512, -0.047148529440164566, 0.01530481968075037, 0.0023132620844990015, 0.010128175839781761, -0.07680458575487137, 0.03937134891748428, -0.00806006882339716, -0.044810857623815536, 0.020478542894124985, 0.02315659075975418, -0.0004884240333922207, -0.06312873214483261, 0.02041633054614067, -0.03992787003517151, 0.002422344172373414, -0.02439269982278347, 0.014956426806747913, 0.028046827763319016, -0.011523640714585781, -0.02956644631922245, 0.016639728099107742, 0.05039872229099274, -0.0681224912405014, -0.012682861648499966, 0.007469311822205782, -0.0019325370667502284, -0.048106055706739426, -0.01788354478776455, 0.04300059378147125, -0.04905420541763306, 0.0011243916815146804, 0.055405572056770325, 0.042442478239536285, 0.04272468388080597, -0.027346190065145493, 0.004246069118380547, 0.025473257526755333, 0.009935419075191021, -0.01565657928586006, -0.07019951939582825, -0.011281294748187065, -0.028104286640882492, -0.04906545206904411, 0.037642404437065125, 0.01701781339943409, -0.0822639912366867, 0.017328685149550438, 0.009507042355835438, 0.01494466420263052, -0.009929584339261055, -0.000641681021079421, 0.018475081771612167, 0.02679235301911831, 0.030485572293400764, -0.024917641654610634, -0.029948392882943153, 0.0040535531006753445, 0.08225925266742706, -0.09219450503587723, 0.005473155993968248, -0.012090767733752728, -0.00972509104758501, 0.014153254218399525, -0.013591442257165909, -0.001996898790821433, 0.02368193306028843, 0.00043706505675800145, -0.0032876059412956238, -0.06301528215408325, 0.09104777127504349, 0.031541258096694946, -0.008567615412175655, 0.012975800782442093, 0.007875657640397549, 0.06715087592601776, 0.038949817419052124, -0.013244994916021824, 0.06515905261039734, 0.0045183924958109856, 0.023681843653321266, 0.005440047942101955, 0.04274062067270279, -0.01999535970389843, -0.08034026622772217, 0.0019321327563375235, 0.07349640130996704, -0.005486012436449528, 0.012907558120787144, -0.006821708288043737, -0.0009626473183743656, 0.0006707163993269205, -0.01422960963100195, 0.033939871937036514, -0.007137293461710215, 0.0008300560293719172, -0.00012006962060695514, -0.015006975270807743, 0.019670361652970314, 0.030778037384152412, 0.023899182677268982, 0.02369886264204979, -0.04339957609772682, -0.047250110656023026, 0.028955215588212013, 0.04096052423119545, 0.005113290622830391, 0.08177399635314941, -0.0379549115896225, 0.0025817984715104103, 0.0759919136762619, 0.04183122143149376, 0.01127190887928009, -0.01805148459970951, 0.01575494557619095, 0.02322276309132576, 0.041693467646837234, 0.013412050902843475, 0.07031609863042831, -0.0010725922184064984, -0.02648165635764599, -0.014490585774183273, 0.030662469565868378, -0.004531016107648611, 0.019685406237840652, -0.06183094158768654, -0.08012732118368149, 0.051213301718235016, -0.03791321441531181, -0.00526782451197505, 0.040634553879499435, 0.08821210265159607, 0.05299006775021553, 0.03554749861359596, 0.020711233839392662, -0.08625481277704239, 0.04127919673919678, -0.015856731683015823, 0.03677567094564438, 0.0034967295359820127, -0.0026666100602597, 0.0701090469956398, 0.007136794272810221, 0.05095551535487175, 0.044329214841127396, -0.06146823987364769, -0.056048206984996796, -0.0013312918599694967, 0.010275684297084808, 0.03761937469244003, 0.00048645026981830597, -0.02229291759431362, 0.03834717348217964, 0.010690719820559025, 0.027430137619376183, 0.013087005354464054, -0.008883820846676826, 0.03274412825703621, -0.05237357318401337, -0.08149047940969467, 0.03337540104985237, 0.03673389554023743, -0.019909141585230827, -0.016497435048222542, 0.002076441654935479, -0.025206532329320908, 0.00033180744503624737, 0.04601207375526428, 0.004907159600406885, 0.07794773578643799, -0.011516543105244637, 0.013120153918862343, -0.03127302601933479, 0.01595243252813816, -0.05110909789800644, 0.013723580166697502, -0.00652574747800827, 0.002006388269364834, -0.00873574335128069, 0.030416935682296753, 0.11483462899923325, 0.051395561546087265, -0.03267446905374527, -0.02785089984536171, 0.011069263331592083, 0.008043363690376282, -0.05072096735239029, 0.029028067365288734, 0.0257478766143322, 0.005772193893790245, 0.01749962382018566, -0.029798591509461403, -0.028721345588564873, 0.015655530616641045, -0.0342554971575737, 0.003595483722165227, 0.05316494405269623, -0.01466158963739872, 0.03584453836083412, 0.02844942733645439, -0.031489912420511246, 0.008179537020623684, -0.017590142786502838, -0.06199229881167412, 0.014095812104642391, 0.034910138696432114, -0.006277047097682953, 0.04120441526174545, -0.041327185928821564, -0.00167642452288419, -0.029004020616412163, -0.0467597171664238, 0.038092173635959625, 0.03340614214539528, 0.0499860979616642, -0.039620254188776016, 0.02789202518761158, -0.0187840573489666, -0.005932083819061518, -0.026230549439787865, -0.04533478990197182, -0.03909231722354889, 0.009491599164903164, 0.0012544714845716953, -0.0023105524014681578, 0.002324601635336876, -0.010243479162454605, -0.028249619528651237, -0.033201999962329865, 0.04297734051942825, -0.018179036676883698, 0.047387734055519104, 0.02237582579255104, 0.005561385303735733, -0.050776027143001556, -0.010839365422725677, 0.044776976108551025, -0.06331363320350647, -0.03704575449228287, -0.01228934433311224, -0.024475907906889915, 0.03553317114710808, -0.0618661530315876, -0.03926664590835571, -0.03718798980116844, 0.007517622783780098, 0.007610939908772707, 0.006176171824336052, 0.0029266367200762033, 0.018670160323381424, 0.01679062843322754, 0.013367034494876862, 0.034100767225027084, -0.004224231466650963, 0.051245883107185364, 0.022459769621491432, 0.00123132998123765, 0.05631699785590172, -0.01852581277489662, 0.005892448592931032, -0.0332612469792366, 0.017372187227010727, -0.03449450805783272, -0.2386014610528946, 0.031394217163324356, -0.02192249707877636, -0.0415179543197155, 0.02326899580657482, -0.03260483220219612, -0.0004597634542733431, -0.036726318299770355, -0.023188574239611626, -0.00015613905270583928, -0.02879570983350277, -0.05045438930392265, 0.013003485277295113, 0.018220961093902588, -0.009757467545568943, -0.0022645534481853247, 0.04211394861340523, -0.05836780369281769, 0.012143950909376144, 0.013680294156074524, -0.0011941645061597228, -0.0463317409157753, 0.018646135926246643, 0.0349014550447464, 0.04104093834757805, 0.06827667355537415, -0.05043847858905792, 0.06022486090660095, -0.05759139358997345, -0.036802925169467926, -0.030781414359807968, -0.015866456553339958, -0.012515576556324959, 0.015322958119213581, -0.006226044148206711, 0.006625336594879627, 0.028934556990861893, -0.013926615007221699, 0.04547608643770218, -0.007077375892549753, 0.015321774408221245, -0.05688321590423584, 0.00941314734518528, -0.013043547980487347, 0.05450614169239998, -0.009620715864002705, -0.09447675198316574, -0.013822860084474087, -0.04318469390273094, 0.08016303181648254, -0.05862107127904892, -0.05214293673634529, -0.015520123764872551, 0.057158440351486206, 0.00640441756695509, 0.012145327404141426, -0.04199227690696716, -0.006153489928692579, -0.05901287496089935, -0.043385911732912064, -0.0047811600379645824, -0.05621272698044777, -0.038485296070575714, -0.05515002831816673, -0.008364787325263023, -0.07361973822116852, -0.06074273958802223, -0.05396677926182747, 0.06687004864215851, 0.035788584500551224, -0.06188671663403511, -0.021935971453785896, -0.029523679986596107, -0.09713952243328094, -0.017780767753720284, -0.013525878079235554, -0.046661701053380966, 0.000753066677134484, -0.028271827846765518, 0.04867056384682655, -0.038612958043813705, -0.02449978142976761, 0.02350628189742565, 0.01602794975042343, -0.00946016050875187, -0.0007885031518526375, 0.011622270569205284, -0.0030572121031582355, -0.007193737663328648, 0.0031116907484829426, 0.06918090581893921, 0.003875360358506441, -0.04565054923295975, -0.018924785777926445, -0.004554614890366793, -0.04679155349731445, 0.00441903667524457, 0.009243878535926342, 0.0317750908434391, 0.05772683396935463, 0.05527319014072418, -0.058173418045043945, -0.013921815901994705, -0.04897608980536461, -0.02634998969733715, 0.012428917922079563, -0.06630881130695343, 0.03118964098393917, 0.0066674454137682915, 0.02005474828183651, -0.0179551150649786, -0.04804035276174545, 0.03889434039592743, -0.07005591690540314, -0.04120023921132088, -0.018162550404667854, 0.0224606990814209, 0.052654530853033066, 0.024761144071817398, 0.017559625208377838, -0.0420212522149086, 0.03242473676800728, -0.006662973202764988, -0.037410762161016464, -0.03421977534890175, -0.010229838080704212, -0.003497496247291565, 0.002584038535133004, -0.015570390969514847, 0.015346202068030834, -0.030212773010134697, -0.006597364321351051, 0.05837477743625641, -0.061320289969444275, 0.04538679122924805, -0.0027028918266296387, -0.04772710055112839, -0.03321678563952446, -0.009259245358407497, -0.004222066141664982, -0.026996923610568047, 0.008532670326530933, 0.02087276801466942, 0.010817614383995533, 0.055846888571977615, 0.00893921684473753, 0.03851670026779175, -0.01536479126662016, -0.0014258631272241473, 0.019612887874245644, -0.014177538454532623, -0.027782896533608437, 0.03419084474444389, -0.034215930849313736, -0.020180564373731613, -0.02126263454556465, 0.014979892410337925, -0.018718723207712173, 0.008758404292166233, -0.02149183116853237, 0.013645244762301445, -0.05075573921203613, -0.009656086564064026, 0.004301378969103098, -0.017158156260848045, 0.054217953234910965, 0.02293068915605545, 0.022829247638583183, -0.012211115099489689, 0.006470914930105209, 0.034025829285383224, 0.06100117415189743, -0.045933425426483154, -0.0028753268998116255, -0.004431096371263266, 0.0024521183222532272, 0.036831047385931015, 0.03964503854513168, 0.031190060079097748, 0.0023035339545458555, -0.005766998045146465, -0.008229614235460758, 0.02508365362882614, 0.027166251093149185, 0.02112387865781784, -0.004133312962949276, -0.05432618409395218, -0.021744221448898315, -0.03939279168844223, -0.05987843498587608, -0.030999384820461273, -0.00221254606731236, -0.008289005607366562, -0.00016119686188176274, -0.04312620684504509, -0.06965278834104538, 0.00013618393859360367, 0.0235610194504261, 0.035465966910123825, 0.018547719344496727, 0.0027702555526047945, -0.013759446330368519, -0.04354676231741905, 0.030231228098273277, 0.0646975040435791, -0.04717855527997017, -0.008692293427884579, -0.005134085658937693, -0.020023392513394356, -0.006519566755741835, 0.03020772896707058, -0.0391300767660141, -0.03421066328883171, -0.004853244870901108, 0.04346304386854172, -0.05480049550533295, -0.030643081292510033, -0.016582859680056572, 0.008385335095226765, 0.005824791733175516, -0.005289721302688122, -0.01226005144417286, 0.027818461880087852, -0.016359111294150352, -0.03205767273902893, -0.007125025615096092, -0.006821573246270418, 0.0005442515830509365, 0.045676421374082565, -0.008808075450360775, 0.03217824548482895, -0.011288848705589771, 0.051114652305841446, 0.01533594075590372, -0.009220598265528679, -0.01789391227066517, -0.03799207881093025, -0.02185920812189579, -0.015676552429795265, 0.024769047275185585, 0.0038650627247989178, 0.03024362027645111, -0.04894033074378967, 0.007722631562501192, -0.017225870862603188, 0.014827081933617592, -0.02953232452273369, -0.009720814414322376, 0.02791709452867508, 0.04078716039657593, -0.011911437846720219, 0.011274240911006927, -0.015389819629490376, -0.044074896723032, 0.07731461524963379, -0.047656819224357605, -0.05694957077503204, 0.009290192276239395, -0.03972075134515762, 0.05048173666000366, 0.034261554479599, 0.034061189740896225, -0.04973483085632324, 0.02308044582605362, 0.051309891045093536, 0.008067477494478226, 0.018067998811602592, 0.0009611814166419208, 0.016737598925828934, -0.03370821103453636, -0.033139605075120926, -0.0835605338215828, 0.007964733056724072, 0.003273723879829049, -0.033586300909519196, -0.0030195473227649927, 0.009290522895753384, -0.034405667334795, 0.03123437613248825, -0.0709148645401001, -0.022929556667804718, 0.05778101831674576, -0.000424327387008816, 0.003732055891305208, 0.026340143755078316, -0.04832564294338226, 0.0378136932849884, 0.0529823862016201, -0.04727215692400932, -0.0033077173866331577, -0.009620269760489464, 0.05481713265180588, 0.0045582083985209465, 0.06202809140086174, -0.025923052802681923, -0.009045135229825974, 0.07781781256198883, 0.028222275897860527, 0.014077176339924335, 0.03892619535326958, -0.04064805060625076, 0.03567477688193321, 0.03345877677202225, -0.003833531169220805, 0.034031424671411514, 0.01782061904668808, -0.033396556973457336, -0.062429409474134445, -0.0059811449609696865, 0.006584527436643839, 0.002141794189810753, -0.05628349632024765, 0.0482451468706131, -0.011853578500449657, -0.008495206944644451, -0.04648904129862785, 0.03569767251610756, -0.045858513563871384, -0.01727311499416828, -0.06468591094017029, 0.013946902006864548, -0.047610923647880554, 0.049155909568071365, -0.0033346551936119795, 0.025908036157488823, 0.06806732714176178, -0.019350802525877953, 0.004903005436062813, 0.023325609043240547, 0.0611773356795311, 0.0680120438337326, 0.029980691149830818, 0.010784105397760868, 0.07731039822101593, -0.05728332698345184, -0.034579355269670486, -0.006153951399028301, -0.0009291709866374731, -0.022831754758954048, -0.019365468993782997, 0.016506673768162727, 0.07305260747671127, -0.033377859741449356, 0.05041787028312683, 0.0162257868796587, 0.008814280852675438, -0.014847605489194393, -0.00949752889573574, 0.029350848868489265, 0.035120684653520584, 0.0018717003986239433, -0.004332813899964094, 0.007448952179402113, -0.005973809398710728, 0.019711405038833618, -0.02425519935786724, 0.0017760565970093012, -0.0062266443856060505, -0.0007483393419533968, 0.00736041646450758, 0.003924787510186434, 0.03341687470674515, 0.06749600172042847, -0.026853712275624275, 0.010923007503151894, 0.017278334125876427, 0.06225426867604256, -0.00027598472661338747, 0.025197692215442657, -0.014548644423484802, -0.013466010801494122, -0.004903024062514305, -0.02130180597305298, -0.021472115069627762, -0.021178659051656723, -0.00648325914517045, 0.043155211955308914, -0.026252426207065582, -0.00995482038706541, 0.021537229418754578, -0.023113729432225227, -0.03575151413679123, -0.027922799810767174, -0.06016471982002258, -0.0563071183860302, -0.06288241595029831, 0.029679154977202415, 0.0014605463948100805, -0.002841578098013997, -0.04690634459257126, -0.01954788528382778, -0.025947656482458115, -0.02581646665930748, 0.008049757219851017, -0.04784926399588585, -0.015870293602347374, -0.005554115399718285, 0.02804022654891014, -0.0011830904986709356, 0.020509669557213783, 0.05194517597556114, -0.0013757379492744803, -0.01891653798520565, -0.03659330680966377, 0.0031976678874343634, 0.03319735452532768, -0.015329818241298199, -0.019930534064769745, -0.09166634827852249, 0.044275347143411636, 0.026905318722128868, 0.008560740388929844, -0.07413900643587112, 0.03249083459377289, 0.03981558978557587, -0.03444012254476547, 0.07823045551776886, -0.028109580278396606, 0.031142275780439377, -0.016597043722867966, -0.012612275779247284, -0.016855837777256966, -0.013193396851420403, 0.05732486769556999, -0.03625283017754555, 0.0682130977511406, 0.04353158175945282, -0.006462300196290016, -0.030576160177588463, -0.004207853227853775, -0.030137931928038597, 0.007737409323453903, -0.026610078290104866, 0.030886871740221977, -0.05709366127848625, -0.09030365198850632, -0.003521380480378866, 0.01058118510991335, -0.04522666707634926, -0.03167867287993431, -0.004688755609095097, 0.0038726956117898226, -0.024464784190058708, 0.0590105876326561, -0.03241636976599693, -0.027661262080073357, -0.017050527036190033, -0.00291740451939404, -0.01943928562104702, 0.03266461566090584, 0.015459827147424221, 0.003059918526560068, 0.028811870142817497, -0.050042249262332916, 0.005481727421283722, 0.0011969348415732384, 0.02986961044371128, 0.02977658249437809, 0.007903852500021458, 0.0546417273581028 ]
[ -0.05879992991685867, -0.01208645012229681, 0.005883520934730768, -0.030589161440730095, 0.027928821742534637, -0.06431854516267776, -0.05359716713428497, 0.014756849966943264, -0.03126325085759163, -0.02346053160727024, 0.001485113287344575, -0.04030396789312363, 0.010354624129831791, -0.03432683274149895, 0.09560814499855042, 0.010605184361338615, -0.042845722287893295, -0.036053821444511414, 0.01401097048074007, 0.06095702946186066, -0.03311607986688614, -0.020587259903550148, -0.016271740198135376, -0.017375707626342773, -0.024883173406124115, 0.07907184213399887, 0.03982027620077133, -0.006540119647979736, -0.0008408344583585858, -0.21139377355575562, -0.015663117170333862, 0.022270381450653076, 0.016297446563839912, -0.020118605345487595, 0.019712161272764206, 0.03884632885456085, -0.014824211597442627, 0.0005288170650601387, 0.003835952840745449, 0.026697959750890732, 0.03534996882081032, 0.02352537214756012, -0.06951823085546494, -0.034336157143116, 0.0620872862637043, -0.014064825139939785, -0.03198202699422836, -0.018850039690732956, 0.03600505739450455, 0.0175169724971056, -0.024058038368821144, -0.004499277099967003, 0.001044210628606379, -0.012560350820422173, -0.019176073372364044, 0.016085850074887276, 0.05938789248466492, 0.0572221465408802, 0.019916940480470657, 0.0033412487246096134, -0.002943809609860182, -0.01885208860039711, -0.13774552941322327, 0.08986423909664154, 0.006508649792522192, 0.02498372085392475, -0.011661817319691181, -0.05116346850991249, -0.04404906556010246, 0.05695218965411186, -0.01065504178404808, -0.012411335483193398, -0.08020132780075073, 0.048293281346559525, -0.008748692460358143, -0.025126993656158447, 0.01668497733771801, -0.01510026678442955, 0.02545318379998207, -0.058227211236953735, -0.04047149047255516, -0.015529578551650047, -0.05649285390973091, 0.005346177611500025, -0.039430372416973114, 0.030605554580688477, -0.007816611789166927, 0.07606858760118484, 0.007548569235950708, 0.0453413724899292, 0.0163551215082407, -0.02565951645374298, 0.08179066330194473, 0.021512269973754883, -0.11546466499567032, 0.012383089400827885, 0.023316074162721634, 0.05359312519431114, -0.03306034952402115, 0.4634840786457062, -0.0042017195373773575, -0.019507940858602524, 0.04478921368718147, 0.001839291537180543, 0.05064018815755844, 0.03716735169291496, -0.006847400683909655, -0.020182369276881218, 0.030778028070926666, 0.007429510820657015, 0.039166878908872604, -0.012480316683650017, 0.07408899068832397, -0.08266936242580414, 0.033935319632291794, -0.01861552521586418, -0.010438789613544941, -0.019879847764968872, -0.02998202107846737, 0.011695798486471176, -0.05815623328089714, 0.03368363529443741, 0.03663135692477226, 0.005930684506893158, 0.05001554638147354, -0.014577975496649742, -0.01073808129876852, 0.028427813202142715, 0.033988382667303085, 0.012666551396250725, -0.0007034603622741997, 0.000048220696044154465, 0.00471834372729063, 0.011349457316100597, -0.0005594287067651749, 0.03549817204475403, 0.03170640394091606, -0.06395266950130463, 0.0003689391305670142, 0.002630324801430106, -0.02195826917886734, -0.035063326358795166, 0.015972953289747238, 0.020621461793780327, -0.008478385396301746, 0.0452851727604866, -0.01515270210802555, -0.005283094011247158, -0.036918990314006805, -0.04026782885193825, -0.014584237709641457, 0.036845721304416656, -0.03687345236539841, -0.0397135466337204, -0.0013067190302535892, 0.0011755304876714945, 0.07891461998224258, -0.014980686828494072, -0.06243075057864189, 0.01238766685128212, 0.03017278015613556, -0.04757349565625191, -0.03518715500831604, 0.047690048813819885, 0.027338886633515358, -0.0750921219587326, -0.026341581717133522, 0.036202289164066315, 0.004471153486520052, -0.055921804159879684, 0.003146195551380515, -0.005550822708755732, -0.019628578796982765, -0.028721589595079422, 0.04201969876885414, -0.01267577987164259, -0.007586047984659672, 0.002676598960533738, 0.018578464165329933, 0.008046709932386875, -0.033160340040922165, 0.010327094234526157, -0.04512827470898628, -0.013425204902887344, -0.05336805060505867, -0.08223177492618561, -0.08791649341583252, -0.012118908576667309, -0.03395315259695053, -0.05349256098270416, 0.008044999092817307, 0.00103879498783499, -0.05263134092092514, 0.03409836068749428, -0.00011823298700619489, -0.005491997580975294, -0.0024808545131236315, 0.005861968267709017, 0.021714257076382637, -0.051263585686683655, 0.03824397176504135, 0.02151215635240078, -0.017437826842069626, 0.02805892564356327, -0.06453495472669601, 0.025636646896600723, 0.06684929132461548, -0.03496003523468971, 0.07318475842475891, 0.026152800768613815, -0.061141300946474075, -0.006222152151167393, 0.011957325041294098, 0.035197168588638306, -0.0077443779446184635, -0.03269065171480179, -0.021671265363693237, 0.004751245491206646, 0.04955442249774933, 0.04383309185504913, -0.016156857833266258, -0.03339357674121857, -0.050315797328948975, -0.33546918630599976, -0.022632461041212082, -0.03339596092700958, 0.027341119945049286, -0.01580425165593624, -0.01798930950462818, 0.04058763384819031, -0.021846506744623184, 0.003695897990837693, 0.0012451444054022431, 0.10062196850776672, -0.016857890412211418, 0.01958886906504631, -0.05774138495326042, 0.0017743805656209588, -0.0067645106464624405, -0.00289069302380085, -0.0029941825196146965, -0.012794212438166142, -0.014677763916552067, -0.0031214554328471422, -0.023054111748933792, -0.028660209849476814, -0.02787134423851967, -0.01800348609685898, -0.012724087573587894, 0.10007669031620026, 0.0320834144949913, 0.07407035678625107, -0.018346590921282768, 0.09260319918394089, 0.0441925935447216, -0.007513278629630804, -0.13067147135734558, -0.013871155679225922, -0.008365652523934841, 0.005738704465329647, 0.04015141353011131, 0.04214593023061752, -0.007116684690117836, -0.03324443846940994, -0.012324071489274502, -0.03990516811609268, -0.0258394293487072, 0.013223043642938137, 0.0052240826189517975, -0.0018677877960726619, -0.00696222297847271, -0.02215135656297207, 0.054033879190683365, 0.023405829444527626, 0.02003352902829647, -0.002635180950164795, 0.03500401973724365, 0.0021406083833426237, -0.04762762412428856, -0.06088452786207199, -0.012116068042814732, 0.06776155531406403, -0.01685226336121559, 0.051631856709718704, 0.04500436410307884, 0.05812763422727585, -0.1168154627084732, -0.015251117758452892, 0.021980728954076767, -0.019237348809838295, -0.015377639792859554, 0.061917468905448914, -0.001491835806518793, -0.011169693432748318, 0.09490777552127838, -0.008526700548827648, 0.01549183577299118, -0.004776881542056799, 0.041834570467472076, 0.015516554936766624, 0.0317390151321888, 0.012038749642670155, -0.028460614383220673, 0.00658976286649704, -0.030761204659938812, 0.056135863065719604, -0.04555901139974594, -0.02492593601346016, 0.04353111609816551, -0.019526446238160133, 0.0003069596132263541, 0.052542343735694885, 0.016840994358062744, 0.0028165453113615513, -0.013487342745065689, -0.007587374188005924, -0.05385405197739601, 0.06728462129831314, 0.01794167049229145, -0.23018725216388702, 0.0018286140402778983, 0.0660698339343071, 0.06590136140584946, 0.00014641253801528364, 0.016720706596970558, 0.026266321539878845, -0.06203451380133629, -0.01494619157165289, -0.004363964311778545, 0.037142787128686905, 0.044943876564502716, -0.015833880752325058, 0.01719623990356922, 0.035632748156785965, -0.024120861664414406, 0.006129275541752577, 0.031162289902567863, 0.01261905301362276, -0.013081524521112442, 0.0043500084429979324, -0.004820368718355894, 0.14393770694732666, 0.023059548810124397, -0.03774575516581535, 0.031703002750873566, 0.014336256310343742, 0.027476519346237183, 0.0100851533934474, 0.02851954847574234, -0.02508426457643509, 0.035484883934259415, 0.030258778482675552, 0.0017568968469277024, 0.06190766766667366, -0.0480775460600853, -0.015536828897893429, 0.016911907121539116, 0.042471155524253845, -0.016289765015244484, -0.03611914813518524, 0.06655082106590271, -0.05905098468065262, 0.030865643173456192, 0.04001231864094734, -0.057511188089847565, 0.03965885937213898, 0.05405740439891815, -0.026847144588828087, 0.02433876134455204, -0.039798106998205185, -0.03199835494160652, -0.026733236387372017, 0.0047411564737558365, -0.002733372850343585, 0.01236086804419756, -0.0034559499472379684, -0.049871183931827545, 0.03874148428440094, 0.0016801095334812999, 0.0023241376038640738, -0.053485993295907974, 0.13000380992889404, -0.01602422632277012, 0.0006209677085280418 ]
[ 0.01771584153175354, 0.021113840863108635, 0.007820074446499348, -0.006002102978527546, -0.013670923188328743, -0.008408594876527786, -0.026087628677487373, 0.0191644374281168, -0.014884923584759235, -0.013480179943144321, -0.023499729111790657, -0.006509195081889629, 0.05030269920825958, -0.006248266901820898, -0.009914088062942028, -0.00996233057230711, 0.006971336901187897, -0.00475659454241395, 0.041092075407505035, 0.021189009770751, 0.0057738530449569225, 0.018702073022723198, 0.03381332382559776, 0.001148670562542975, 0.025326717644929886, 0.052500415593385696, -0.04411754384636879, 0.022596418857574463, 0.024359961971640587, -0.1594989150762558, -0.03567615896463394, -0.011743525974452496, -0.027403119951486588, -0.024897322058677673, -0.00543327908962965, 0.039809782058000565, 0.011082656681537628, -0.00866054929792881, -0.04454836994409561, 0.008032425306737423, 0.03596119582653046, -0.00630131596699357, -0.007831770926713943, -0.02238558791577816, -0.011156448163092136, -0.003544998588040471, -0.020747622475028038, -0.023574329912662506, -0.012387240305542946, 0.01613990031182766, -0.02209729142487049, 0.01056564599275589, 0.0545179545879364, 0.015663638710975647, 0.039384882897138596, 0.018254771828651428, 0.00399459432810545, -0.04327141493558884, 0.007846823893487453, -0.003449556417763233, 0.018467919901013374, 0.027093442156910896, -0.05675733834505081, -0.021648311987519264, -0.01739502139389515, -0.025472111999988556, 0.027792107313871384, -0.013385840691626072, -0.029611729085445404, 0.006399881094694138, -0.01467481255531311, -0.011166744865477085, 0.002397659933194518, -0.01533481664955616, -0.035158921033144, 0.013977657072246075, 0.051728617399930954, -0.029172372072935104, -0.0312099177390337, 0.016900943592190742, -0.048418283462524414, 0.027968084439635277, 0.006732379551976919, 0.012368820607662201, -0.0044337306171655655, 0.004883308429270983, 0.003179140854626894, -0.004362607374787331, 0.02429840713739395, 0.005858651362359524, -0.018240200355648994, 0.007998930290341377, -0.02479744143784046, -0.016466230154037476, -0.06417684257030487, -0.04894093796610832, 0.03717294707894325, 0.011955115012824535, -0.008871766738593578, 0.8111569881439209, -0.03490742668509483, 0.024679651483893394, 0.03944568336009979, 0.0278914961963892, 0.01028946228325367, 0.022060656920075417, 0.005480870604515076, -0.0023268877994269133, -0.041725415736436844, -0.010488501749932766, 0.02810938097536564, -0.003567333333194256, -0.0033273855224251747, 0.006387618370354176, 0.027468109503388405, 0.05360039696097374, 0.014660571701824665, -0.014324399642646313, -0.053891971707344055, 0.04400770366191864, 0.02910262905061245, -0.023360060527920723, -0.0074059078469872475, 0.029076626524329185, -0.006728541571646929, -0.16747094690799713, 0.03137952834367752, -6.586725372463266e-33, -0.007518630009144545, -0.03138634189963341, -0.019130632281303406, 0.0030721358489245176, 0.05173255875706673, 0.0326840803027153, -0.008038700558245182, 0.012033903039991856, -0.013186674565076828, -0.02363809384405613, 0.03189948946237564, 0.010183633305132389, 0.022596290335059166, 0.0011404844699427485, 0.008122092112898827, -0.032536111772060394, 0.030833443626761436, 0.03842724487185478, -0.0109884487465024, -0.01545446552336216, 0.04233160614967346, 0.03466968610882759, 0.011904368177056313, 0.02434070035815239, -0.07357659935951233, 0.020439444109797478, 0.04549170657992363, -0.007147118914872408, 0.043255943804979324, -0.05000101029872894, -0.01057819277048111, -0.013656564056873322, 0.01203235425055027, -0.03672429174184799, -0.014765973202884197, -0.044872965663671494, -0.028847377747297287, -0.01785183697938919, -0.028465697541832924, -0.024028465151786804, -0.005278038792312145, 0.010830766521394253, -0.005467983894050121, -0.031882379204034805, -0.03982207551598549, 0.01052743662148714, -0.03451701998710632, -0.020579855889081955, -0.0033044812735170126, 0.027335841208696365, 0.027907930314540863, 0.025533514097332954, -0.02973681502044201, 0.022918643429875374, 0.03385255113244057, 0.01779588870704174, -0.01964520290493965, 0.035330433398485184, -0.021482836455106735, -0.02216472662985325, 0.01914704404771328, -0.005189139861613512, 0.005578183569014072, 0.022052714601159096, 0.04231122508645058, -0.010193852707743645, 0.026116715744137764, 0.014264670200645924, 0.0024199362378567457, -0.0018966845236718655, -0.08474493026733398, 0.0016936046304181218, 0.008212517015635967, 0.030191896483302116, 0.020603178068995476, -0.019864946603775024, -0.0011722187045961618, 0.028905272483825684, 0.008953402750194073, 0.008818023838102818, 0.011566960252821445, -0.042666733264923096, -0.028757084161043167, -0.017169354483485222, -0.021930908784270287, -0.018608039245009422, 0.050586454570293427, -0.004028716124594212, -0.03188316896557808, 0.015843752771615982, 0.016430003568530083, 0.005365239456295967, 0.022917723283171654, -0.028982041403651237, -0.053465910255908966, 6.450611208161707e-33, 0.005397170782089233, -0.005521438550204039, -0.0048655616119503975, 0.016369540244340897, 0.02501068264245987, 0.014130370691418648, 0.019924404099583626, -0.008615403436124325, -0.03626563400030136, 0.014895446598529816, -0.03405000641942024, 0.04528491944074631, -0.016864435747265816, 0.04626888409256935, 0.03910099342465401, 0.006490284577012062, 0.012501802295446396, 0.0011472937185317278, -0.008030814118683338, 0.01180226169526577, -0.01240051630884409, 0.03301452100276947, -0.014736038632690907, 0.03938489407300949, 0.032376013696193695, 0.04737032204866409, -0.008203678764402866, -0.004230783320963383, -0.05767098814249039, 0.00268333638086915, -0.009489521384239197, -0.033208366483449936, -0.017068173736333847, 0.009184634312987328, -0.008758827112615108, 0.0439029186964035, 0.0036805488634854555, 0.007106105796992779, -0.013007148168981075, 0.03803790733218193, 0.03653687611222267, -0.010792799293994904, -0.005633879918605089, 0.0175650492310524, -0.017839567735791206, 0.031015070155262947, -0.019461557269096375, -0.007798868231475353, -0.01663464494049549, 0.03562423214316368, 0.018077347427606583, 0.05204933136701584, 0.0328981988132, 0.015307623893022537, 0.017759285867214203, -0.04644237086176872, -0.006876536179333925, -0.009424963966012001, -0.0088490666821599, -0.003275288036093116, -0.018024872988462448, 0.015112105756998062, -0.03278464823961258, -0.018205536529421806, -0.0386759452521801, -0.0669635459780693, -0.05170758068561554, -0.030361561104655266, 0.0054711815901100636, -0.00803249143064022, 0.032093849033117294, 0.027538925409317017, 0.014454642310738564, 0.017990319058299065, 0.014532170258462429, -0.008487408980727196, -0.01979363150894642, -0.038753293454647064, -0.03541960194706917, -0.0027852142229676247, 0.0022623534314334393, -0.015499450266361237, 0.022675679996609688, 0.04861338809132576, -0.016627758741378784, 0.01339884102344513, -0.009453152306377888, 0.015482645481824875, 0.0491386242210865, -0.04896020144224167, 0.03481980413198471, -0.02854485623538494, -0.04157739132642746, 0.004090767353773117, 0.024439075961709023, -1.203353239276339e-8, 0.018905971199274063, -0.037330497056245804, -0.047644101083278656, 0.06849557161331177, 0.036105167120695114, 0.006329361815005541, -0.04273436218500137, 0.0004779271548613906, -0.035570066422224045, 0.044335875660181046, 0.06377416104078293, -0.008480221033096313, -0.005108686164021492, -0.001383153721690178, 0.013614103198051453, -0.014321262016892433, 0.05423986166715622, 0.056356217712163925, 0.014949648641049862, -0.014189342968165874, -0.020311983302235603, 0.0406489223241806, 0.03503511846065521, -0.0056793647818267345, 0.012249961495399475, -0.00042675776057876647, 0.03589518368244171, -0.09564996510744095, -0.047939710319042206, 0.009610581211745739, 0.04553300514817238, -0.020577920600771904, -0.033960167318582535, 0.03387955203652382, -0.02053438499569893, -0.024556491523981094, 0.012658525258302689, 0.03870276361703873, 0.03924007713794708, -0.011698092333972454, -0.018846074119210243, -0.011701763607561588, -0.013863260857760906, -0.012307364493608475, -0.06678793579339981, 0.014514652080833912, -0.052637770771980286, -0.027825770899653435, 0.02482607588171959, -0.03024056926369667, -0.009006883949041367, -0.003931088373064995, -0.0016519288765266538, 0.02287423610687256, -0.0328122042119503, 0.000736973132006824, 0.015417209826409817, -0.007484413683414459, -0.022885102778673172, -0.007567506283521652, 0.0268666110932827, 0.02513301558792591, -0.009428068064153194, -0.015042838640511036 ]
nvim-swap-file-permission-denied
https://markhneedham.com/blog/2024/01/03/nvim-swap-file-permission-denied
false
2024-01-04 00:44:37
ClickHouse: Float equality
[ "clickhouse", "til" ]
[ "TIL" ]
I've been playing around with https://numpy.org/doc/stable/index.html[NumPy^] data in ClickHouse this week and wanted to share what I learnt when checking for equality of float values. Let's get going! == Creating arrays We're going to use Python's NumPy library to create 5 arrays containing 10 values each: [source, python] ---- import numpy as np rng = np.random.default_rng(seed=42) rng.random(size=(5, 5)) ---- .Output [source, text] ---- array([[0.28138389, 0.29359376, 0.66191651, 0.55703215, 0.78389821], [0.66431354, 0.40638686, 0.81402038, 0.16697292, 0.02271207], [0.09004786, 0.72235935, 0.46187723, 0.16127178, 0.50104478], [0.1523121 , 0.69632038, 0.44615628, 0.38102123, 0.30151209], [0.63028259, 0.36181261, 0.08764992, 0.1180059 , 0.96189766]]) ---- By default, the type of the values is `float64`: [source, python] ---- rng.random(size=(5, 10)).dtype ---- .Output [source, text] ---- dtype('float64') ---- But we're going to cast that to `float32` since that's the format of the data in the file that I've been working with. We'll then save the arrays to a file: [source, python] ---- values = rng.random(size=(5, 10)) np.save('arrays.npy', values.astype(np.float32)) ---- == Querying in ClickHouse Next, let's download and launch ClickHouse Local: [source, bash] ---- curl https://clickhouse.com/ | sh ./clickhouse local -m ---- We can then read the `arrays.npy` file: [source, sql] ---- FROM file('arrays.npy', Npy) SELECT array, toTypeName(array); ---- .Output [source, text] ---- ┌─array────────────────────────────────────────────────────┬─toTypeName(array)─┐ │ [0.2813839,0.29359376,0.6619165,0.55703217,0.78389823] │ Array(Float32) │ │ [0.66431355,0.40638685,0.8140204,0.16697292,0.022712072] │ Array(Float32) │ │ [0.09004786,0.72235936,0.46187723,0.16127178,0.50104475] │ Array(Float32) │ │ [0.1523121,0.69632035,0.44615626,0.38102123,0.3015121] │ Array(Float32) │ │ [0.6302826,0.36181262,0.08764992,0.1180059,0.9618977] │ Array(Float32) │ └──────────────────────────────────────────────────────────┴───────────────────┘ ---- Next, let's see if we can return only the rows where the first item of the array is `0.99237555`. My first attempt looked like this: [source, sql] ---- FROM file('arrays.npy', Npy) SELECT array, toTypeName(array) WHERE array[1] = 0.66431355 FORMAT Vertical; ---- .Output [source, text] ---- 0 rows in set. Elapsed: 0.002 sec. ---- Computer says no! Let's write a query that returns the type of our float literal: [source, sql] ---- SELECT 0.66431355 AS literal, toTypeName(literal); ---- .Output [source, text] ---- ┌────literal─┬─toTypeName(0.66431355)─┐ │ 0.66431355 │ Float64 │ └────────────┴────────────────────────┘ ---- Aha, it's a `Float64`, which explains why it didn't match our array of `Float32` values. There are at least two ways that I know of to rectify this. We can use the `toFloat32` function to cast the float literal to the right type: [source, sql] ---- FROM file('arrays.npy', Npy) SELECT array, toTypeName(array) WHERE array[1] = toFloat32(0.66431355); ---- Or, we can cast the value to `Float32` [source, sql] ---- FROM file('arrays.npy', Npy) SELECT array, toTypeName(array) WHERE array[1] = CAST(0.66431355 AS Float32); ---- Either way, we get the following result. .Output [source, text] ---- Row 1: ────── ┌─array────────────────────────────────────────────────────┬─toTypeName(array)─┐ │ [0.66431355,0.40638685,0.8140204,0.16697292,0.022712072] │ Array(Float32) │ └──────────────────────────────────────────────────────────┴───────────────────┘ ---- My takeaway when working with floats (or even decimals) is to make sure that you know the underlying data types that you're working with.
In this post, we'll learn how to check for equality of float values in ClickHouse.
uploads/2024/01/clickhouse-floats-banner.png
[ 0.017202096059918404, 0.005230829119682312, -0.049307629466056824, 0.05145001783967018, 0.051864586770534515, 0.06276720762252808, -0.017748000100255013, 0.024675315245985985, -0.04158017039299011, -0.03282088413834572, -0.00581623800098896, -0.014545931480824947, -0.09455429017543793, 0.0035223369486629963, 0.01787659339606762, 0.06501505523920059, 0.0706942081451416, -0.0033529014326632023, 0.0007160130771808326, 0.028726991266012192, -0.017266953364014626, 0.0071804216131567955, -0.041070468723773956, 0.013883931562304497, -0.0031729009933769703, -0.01702546887099743, 0.021678591147065163, -0.030412109568715096, -0.05209161713719368, 0.030377011746168137, 0.006161793600767851, 0.011972444131970406, -0.036572083830833435, 0.01623857021331787, 0.014824665151536465, 0.012311185710132122, -0.016045797616243362, 0.020402569323778152, 0.0009740994428284466, 0.02473198063671589, -0.03708299249410629, -0.010738274082541466, -0.006602232810109854, 0.03449299558997154, -0.06491692364215851, -0.021012695506215096, -0.032113317400217056, 0.0030804285779595375, -0.009776204824447632, 0.052517618983983994, -0.03969519957900047, 0.04394252225756645, -0.01827760972082615, -0.039590004831552505, 0.011763843707740307, 0.0781620442867279, 0.03738629072904587, -0.0501134879887104, 0.010372476652264595, -0.0322737991809845, 0.00998198613524437, 0.016443850472569466, 0.004733034875243902, 0.059549812227487564, 0.032248400151729584, -0.019917115569114685, 0.007632334716618061, 0.05441027507185936, -0.026366369798779488, -0.03519955649971962, -0.03560646250844002, 0.03361397609114647, -0.0124548664316535, -0.04809339717030525, -0.013548733666539192, -0.030300062149763107, -0.03285640850663185, 0.06022108718752861, 0.02072489820420742, 0.04551457241177559, 0.009614369831979275, 0.011423654854297638, 0.05984903499484062, 0.034192584455013275, 0.016175556927919388, -0.04739775508642197, -0.0511389821767807, -0.02777193672955036, -0.04970734193921089, 0.019950231537222862, -0.01555048767477274, -0.03801136836409569, 0.027652926743030548, 0.005583085585385561, -0.016042599454522133, -0.006176014430820942, -0.023099511861801147, 0.011437022127211094, 0.02567548304796219, 0.015378930605947971, -0.05296127870678902, -0.027098149061203003, 0.04723850637674332, -0.00039776216726750135, -0.06468917429447174, -0.008562004193663597, -0.003992494195699692, -0.016778580844402313, -0.010939540341496468, 0.01722612977027893, -0.03444879129528999, -0.00560015719383955, 0.0005558063858188689, -0.007704390212893486, -0.09790340811014175, 0.04272133857011795, 0.006081169005483389, -0.02584749087691307, -0.048969972878694534, 0.0027265551034361124, 0.06382886320352554, 0.04356507211923599, -0.017287636175751686, 0.10168132930994034, -0.009712389670312405, 0.05307162553071976, 0.031160907819867134, 0.07530412822961807, 0.014137066900730133, -0.051994439214468, -0.03104238584637642, 0.05532955005764961, -0.02252565324306488, -0.008556703105568886, 0.0020860382355749607, 0.009456478990614414, -0.07242359220981598, 0.027562597766518593, 0.05546923354268074, 0.02424204908311367, 0.03646746650338173, -0.01662996970117092, -0.00949533935636282, 0.01231296919286251, -0.00019826974312309176, 0.020822463557124138, 0.0029945415444672108, -0.03769050911068916, -0.01912182942032814, 0.0417693667113781, 0.0021121776662766933, 0.037077948451042175, 0.08210648596286774, -0.06253484636545181, 0.00788071472197771, 0.07064873725175858, 0.030815400183200836, 0.05668109655380249, -0.012938286177814007, -0.012044613249599934, 0.04736068844795227, 0.008385146036744118, -0.01902715489268303, 0.03535132855176926, 0.005171974655240774, -0.020338274538517, 0.01517082192003727, 0.07874669134616852, -0.032121311873197556, 0.01837151125073433, -0.029951810836791992, -0.03740569204092026, 0.07557281851768494, 0.0026021148078143597, -0.03316844627261162, -0.006290275603532791, 0.03459031879901886, 0.031169936060905457, 0.06001533567905426, -0.04805932566523552, -0.05606662482023239, 0.011658253148198128, -0.0230666883289814, 0.020165368914604187, 0.04341430962085724, -0.017537245526909828, 0.0900195986032486, 0.006965795531868935, 0.010428315959870815, 0.04268932715058327, -0.03913487493991852, -0.059479597955942154, -0.03176696226000786, -0.03550512343645096, 0.07604743540287018, -0.04943805932998657, -0.01691119372844696, 0.05930459126830101, 0.0348111167550087, 0.02144281379878521, 0.0013445342192426324, 0.0026852490846067667, -0.017275067046284676, -0.054820455610752106, -0.051328934729099274, 0.020264016464352608, 0.06366246193647385, -0.023976963013410568, -0.044584549963474274, 0.017521468922495842, -0.02306036837399006, 0.0016342541202902794, 0.007940911687910557, -0.023169828578829765, 0.02091461792588234, 0.03846561908721924, 0.037248119711875916, -0.020250029861927032, 0.0301358625292778, -0.058845531195402145, 0.024639956653118134, 0.011063254438340664, -0.007703248877078295, -0.053618356585502625, 0.011328475549817085, 0.1419641077518463, 0.07051503658294678, -0.03297549486160278, -0.02521149069070816, -0.008413894101977348, -0.012405086308717728, -0.0011365985265001655, 0.015291174873709679, 0.004117611795663834, -0.03379649668931961, -0.014860667288303375, 0.0071842242032289505, -0.03505193069577217, 0.04185415059328079, -0.020638208836317062, -0.016483506187796593, 0.09600451588630676, -0.06224627047777176, 0.024008434265851974, 0.005309775937348604, -0.033808283507823944, -0.007853563874959946, -0.05639355257153511, -0.05317913740873337, -0.014141814783215523, 0.024248288944363594, 0.004624025896191597, 0.04981622099876404, -0.023319797590374947, -0.06148240715265274, -0.017005041241645813, -0.05026710033416748, 0.005700540728867054, 0.06136637553572655, 0.030922219157218933, -0.03573538362979889, 0.0169870313256979, 0.02260255627334118, -0.020432064309716225, 0.00919285137206316, -0.07206059992313385, -0.04879230633378029, -0.0054788123816251755, 0.007537137251347303, 0.03880411759018898, 0.02546710893511772, 0.03387454152107239, -0.013731785118579865, 0.0025778848212212324, 0.003645301330834627, -0.03198787197470665, 0.0512506440281868, -0.02970144711434841, -0.026556197553873062, -0.03696747496724129, -0.025456352159380913, 0.06937365233898163, -0.030622847378253937, -0.018635841086506844, 0.02618708275258541, -0.049409907311201096, 0.009532111696898937, -0.048925455659627914, -0.02269730158150196, 0.0032802873756736517, 0.0013052118010818958, 0.044621627777814865, -0.01849285699427128, -0.009078595787286758, 0.0784849151968956, 0.012674677185714245, 0.014645104296505451, 0.032227594405412674, 0.031057359650731087, 0.027135170996189117, 0.03452165424823761, 0.024088179692626, 0.05297139659523964, -0.005281472112983465, -0.03988519683480263, -0.028579190373420715, 0.00033598559093661606, -0.03143653646111488, -0.25257208943367004, 0.02289770357310772, -0.03217950835824013, -0.01735236681997776, -0.008772199042141438, -0.016516977921128273, 0.01868499629199505, -0.009596055373549461, -0.00002063095053017605, 0.042003877460956573, -0.02570321410894394, -0.05432906001806259, -0.047111570835113525, 0.048045530915260315, 0.015526745468378067, 0.007365815341472626, 0.018413759768009186, -0.025759978219866753, 0.006666593253612518, 0.034659553319215775, -0.015094811096787453, -0.036260344088077545, -0.028185134753584862, 0.07468598335981369, 0.011823882348835468, 0.05052155628800392, -0.039825066924095154, 0.02078426629304886, -0.0675380676984787, -0.045026715844869614, -0.01793801598250866, -0.025431817397475243, 0.009946035221219063, -0.011810896918177605, 0.010386114940047264, -0.043223194777965546, 0.00998642947524786, -0.014851446263492107, -0.021688396111130714, 0.046298932284116745, -0.041279688477516174, -0.013935425318777561, -0.0011000895174220204, -0.008393270894885063, 0.05605893209576607, -0.016795555129647255, -0.03238707035779953, 0.010160079225897789, -0.04559597000479698, 0.03966087847948074, -0.015931377187371254, -0.020108068361878395, -0.029124857857823372, 0.025279469788074493, -0.02118220180273056, 0.012330086901783943, 0.008257382549345493, 0.025558654218912125, -0.026991723105311394, -0.010682268999516964, 0.025001386180520058, -0.029593737795948982, -0.04902661591768265, -0.025966618210077286, -0.007919001393020153, -0.06199491024017334, -0.0729580968618393, -0.00874994695186615, 0.054874271154403687, 0.05473235994577408, -0.03554395213723183, 0.011906656436622143, -0.013862669467926025, -0.09133128076791763, -0.016372263431549072, -0.0033453505020588636, 0.0042414418421685696, 0.037403520196676254, -0.018245136365294456, 0.02467411570250988, -0.0593436062335968, -0.0390334390103817, 0.05859924480319023, 0.01792512834072113, 0.003101537935435772, -0.031288862228393555, -0.011418316513299942, 0.008224178105592728, -0.005265525076538324, -0.03228246048092842, 0.07910284399986267, -0.022685613483190536, 0.054762888699769974, -0.0013022776693105698, 0.0017973495414480567, 0.033087246119976044, 0.008154990151524544, 0.0017381099751219153, 0.041293662041425705, 0.062172163277864456, 0.04260077700018883, -0.04907741770148277, -0.02326669543981552, -0.055305253714323044, -0.036292415112257004, 0.030862756073474884, -0.034507907927036285, 0.021598512306809425, 0.00259428471326828, 0.022631825879216194, -0.014496195130050182, -0.023159625008702278, 0.01759703829884529, -0.0173703134059906, 0.011909750290215015, -0.04101687669754028, 0.02284182980656624, -0.002321950625628233, -0.030896145850419998, 0.016849972307682037, -0.06444931030273438, 0.008536153472959995, -0.006210797931998968, -0.024563400074839592, -0.045968085527420044, -0.024181189015507698, -0.012784331105649471, -0.024543991312384605, -0.010005554184317589, -0.0019909380935132504, 0.006105401087552309, 0.027348840609192848, 0.03836945816874504, -0.03055422008037567, 0.005392988212406635, -0.010982682928442955, 0.011131159961223602, 0.00498549360781908, -0.008466086350381374, 0.036388102918863297, 0.02749709226191044, -0.0015799233224242926, 0.004699296317994595, 0.016972238197922707, 0.0420125275850296, -0.0185447596013546, 0.05173502862453461, 0.002926799701526761, -0.0017492705956101418, -0.012449326924979687, 0.004580886568874121, -0.03727959841489792, 0.01533704437315464, -0.03491223603487015, -0.051695384085178375, 0.012704131193459034, 0.041660506278276443, 0.012346397154033184, -0.034424975514411926, -0.04438585042953491, 0.011304249055683613, -0.03874452784657478, -0.004605250433087349, -0.02352057956159115, -0.004591956734657288, 0.061791904270648956, 0.006322754546999931, 0.02634851634502411, 0.014401420950889587, 0.01492453645914793, 0.02328348346054554, 0.03256506100296974, -0.00123205513227731, -0.025018392130732536, 0.002101753605529666, -0.02508990466594696, 0.020194556564092636, 0.009465660899877548, -0.009664513170719147, -0.0038260307628661394, -0.01992146112024784, -0.013736657798290253, 0.017561180517077446, -0.007186932023614645, 0.035819150507450104, 0.03880007565021515, -0.026334738358855247, 0.024830350652337074, -0.03201461583375931, -0.040342770516872406, -0.06102636829018593, 0.012290391139686108, -0.020061757415533066, -0.006967867258936167, -0.048343557864427567, -0.05933722108602524, 0.00010698192636482418, 0.037387020885944366, -0.013295329175889492, 0.001746650435961783, -0.01088700070977211, -0.023501424118876457, -0.045258037745952606, 0.0075868526473641396, 0.06294601410627365, -0.04611232876777649, -0.012629994191229343, -0.03817268833518028, 0.026997292414307594, -0.0026029753498733044, 0.029901964589953423, -0.06538232415914536, -0.02104761265218258, -0.026113983243703842, 0.025019604712724686, -0.03090239129960537, -0.07568124681711197, -0.032164640724658966, 0.000020274017515475862, -0.03526684641838074, -0.0022552981972694397, 0.011478561908006668, 0.04506215080618858, -0.03381207957863808, -0.0398733951151371, -0.02294944040477276, -0.011003024876117706, -0.02399764209985733, 0.017706451937556267, 0.008245940320193768, 0.03557195886969566, -0.04042733460664749, 0.03468943014740944, 0.02574271708726883, 0.0014967561000958085, -0.02099122665822506, -0.06895504146814346, 0.015356184914708138, -0.014995187520980835, 0.03984444960951805, -0.03300053998827934, 0.014701264910399914, -0.03818034380674362, 0.0007347398204728961, -0.00902186706662178, -0.02250569686293602, -0.011681674048304558, -0.06975451111793518, 0.009777837432920933, 0.03912925720214844, -0.008932248689234257, 0.03501969575881958, -0.001699392800219357, -0.009640833362936974, 0.04480041563510895, -0.0069619533605873585, 0.004239455796778202, -0.029874442145228386, -0.04124762490391731, 0.001436929334886372, 0.02373168058693409, 0.028564993292093277, -0.09684696793556213, 0.04043274745345116, 0.0035896701738238335, 0.03958844020962715, 0.040400367230176926, -0.012243145145475864, 0.0391993410885334, -0.016567837446928024, -0.012175281532108784, -0.09160362184047699, -0.000595986726693809, 0.016466950997710228, 0.01602141559123993, -0.015068940818309784, -0.04896686598658562, -0.010844794102013111, 0.04994043707847595, -0.08367254585027695, -0.016214735805988312, 0.04552973061800003, 0.00850705336779356, -0.015514660626649857, 0.008765445090830326, -0.018787069246172905, 0.00537496991455555, 0.051990117877721786, -0.03456427901983261, 0.012421260587871075, 0.004484871402382851, 0.06554129719734192, -0.008138113655149937, -0.007887870073318481, -0.007648322731256485, 0.0076533956453204155, 0.06379137188196182, 0.01919277384877205, 0.04610457643866539, 0.02765766717493534, -0.026172420009970665, 0.05762770399451256, 0.013924229890108109, 0.000910191040020436, 0.027583597227931023, 0.02143094316124916, 0.020283276215195656, -0.03369816765189171, 0.018593328073620796, 0.02604375220835209, -0.006825204472988844, -0.05316067859530449, 0.07093951106071472, 0.004948796704411507, -0.049774665385484695, -0.07349720597267151, 0.01997324638068676, -0.06105348840355873, 0.013558325357735157, -0.007066120859235525, -0.054864175617694855, -0.02076961100101471, 0.04291241988539696, 0.017422379925847054, -0.00032868521520867944, 0.038633912801742554, -0.003175610676407814, 0.013890809379518032, 0.07846463471651077, 0.06484758853912354, 0.08891409635543823, 0.03390945866703987, 0.008577360771596432, 0.024096831679344177, 0.004166524391621351, -0.042275745421648026, 0.011826399713754654, -0.04782772809267044, 0.013869810849428177, -0.026826487854123116, -0.0031669943127781153, 0.03671817108988762, 0.027139130979776382, 0.06122929975390434, -0.019602689892053604, 0.051558129489421844, 0.0014099093386903405, 0.011730846017599106, 0.023429282009601593, 0.07665696740150452, 0.015306069515645504, 0.04545899108052254, -0.025673886761069298, -0.03449438884854317, 0.0330360047519207, 0.014628822915256023, -0.023821255192160606, 0.020048271864652634, -0.004641709849238396, 0.02450193651020527, 0.0035450407303869724, 0.04316535219550133, 0.0516367144882679, -0.009549527429044247, -0.055892664939165115, 0.02527497708797455, 0.05014915019273758, -0.011404566466808319, 0.0006731200264766812, 0.016461018472909927, -0.024289973080158234, 0.00033630200778134167, -0.042430706322193146, 0.008223239332437515, -0.08004138618707657, 0.007619040552526712, 0.01944121904671192, -0.01194410864263773, 0.004402907565236092, 0.021474068984389305, 0.011859381571412086, -0.0160792525857687, -0.04601898416876793, -0.030134957283735275, -0.04247867316007614, -0.09353391826152802, 0.040165990591049194, 0.01907920651137829, -0.019428018480539322, 0.0017137518152594566, -0.0307003241032362, -0.02118435502052307, 0.007819999009370804, 0.0106782466173172, -0.05459054559469223, -0.05172482877969742, 0.020051684230566025, 0.046665068715810776, -0.001346165081486106, 0.03785460442304611, 0.026776805520057678, -0.014082148671150208, -0.02777537889778614, 0.0321425125002861, 0.024546710774302483, 0.035946931689977646, 0.022803615778684616, 0.013968592509627342, -0.06551192700862885, 0.005248840432614088, 0.03475060686469078, 0.007486530113965273, -0.06966395676136017, 0.01380707323551178, 0.030134839937090874, -0.0019880698528140783, 0.028386764228343964, -0.0056783235631883144, -0.021564051508903503, -0.014744443818926811, -0.036881618201732635, -0.031242454424500465, -0.01924554444849491, 0.06297482550144196, -0.04059561342000961, 0.07313130795955658, 0.01860148273408413, -0.0022959376219660044, -0.04120665043592453, -0.014510572887957096, -0.012643319554626942, 0.029782725498080254, -0.04560893774032593, -0.06567028164863586, -0.059705063700675964, -0.05086413770914078, 0.008755815215408802, -0.007499173749238253, -0.03323753550648689, 0.0003464922192506492, 0.01393292099237442, 0.042630504816770554, -0.04588186740875244, 0.024554165080189705, -0.02451525442302227, 0.018977707251906395, -0.032914891839027405, -0.022072244435548782, 0.001595672219991684, 0.050631146878004074, -0.015221142210066319, 0.014244037680327892, 0.014844325371086597, -0.028731951490044594, -0.036690518260002136, -0.024119364097714424, 0.03127974271774292, 0.020349856466054916, -0.0032249372452497482, 0.02305668406188488 ]
[ -0.08634788542985916, -0.03460097312927246, -0.06897171586751938, -0.023004233837127686, 0.05350290983915329, -0.025597183033823967, -0.006223528645932674, -0.009811663068830967, 0.021628545597195625, 0.005903663579374552, 0.017548082396388054, -0.09253410995006561, -0.004194165579974651, -0.03268956393003464, 0.028074318543076515, -0.010603399015963078, -0.029822075739502907, -0.07843566685914993, -0.051802054047584534, 0.06004535034298897, 0.025749247521162033, -0.032225966453552246, -0.03871459141373634, -0.0602782741189003, 0.01813032478094101, 0.042546920478343964, 0.020577341318130493, -0.03340653330087662, 0.013587336987257004, -0.22005897760391235, 0.03630600497126579, -0.0314805805683136, 0.007180116605013609, -0.04289748892188072, 0.009523453190922737, 0.02831071801483631, 0.037597235292196274, 0.005999070592224598, 0.015127534046769142, 0.06689494103193283, 0.005599814001470804, 0.023479003459215164, -0.0452224537730217, -0.0525658093392849, 0.06521190702915192, 0.013950472697615623, -0.04198908805847168, 0.012961930595338345, 0.014540430158376694, 0.031203271821141243, -0.050919923931360245, -0.006754578091204166, -0.04548409953713417, -0.021652279421687126, 0.00685430783778429, 0.014163080602884293, 0.04683122783899307, 0.047099847346544266, 0.020409131422638893, 0.01113215647637844, 0.01533134002238512, -0.015765896067023277, -0.11654505878686905, 0.08519608527421951, 0.05953597277402878, 0.04077530652284622, -0.0015665091341361403, -0.03475334495306015, -0.020766016095876694, 0.06510142236948013, 0.03030482679605484, -0.008116708137094975, -0.008508021011948586, 0.04659578576683998, 0.003354474436491728, -0.04667161777615547, 0.007876426912844181, -0.008538777008652687, 0.031839001923799515, -0.0053154462948441505, -0.03187089040875435, -0.010790642350912094, -0.003388690995052457, -0.007276936434209347, 0.015672223642468452, 0.0036044265143573284, -0.004668339621275663, 0.06424473226070404, 0.019701914861798286, -0.011304100975394249, -0.0018981087487190962, 0.02124747633934021, -0.015707047656178474, 0.04068437218666077, -0.030238786712288857, 0.02411610633134842, 0.04591092839837074, 0.013726075179874897, -0.00596069497987628, 0.3803170621395111, 0.009434881620109081, 0.006027726922184229, 0.016857564449310303, 0.04762261360883713, -0.03449415788054466, -0.004006397444754839, -0.015852831304073334, -0.04866372048854828, -0.0016862178454175591, -0.04373389855027199, 0.01607472449541092, -0.015389533713459969, 0.06842149049043655, -0.07994970679283142, -0.018762821331620216, 0.0020293225534260273, -0.007271749433130026, -0.021614819765090942, 0.012320111505687237, -0.01824720948934555, -0.03840279579162598, 0.0164804607629776, 0.043172687292099, -0.0017000779043883085, 0.0025023850612342358, 0.03370140865445137, 0.007304058875888586, 0.08443107455968857, 0.01577773131430149, 0.04609045758843422, 0.05673425644636154, -0.06082438677549362, -0.1007630005478859, 0.011022385209798813, 0.01995902694761753, 0.027656644582748413, 0.029700059443712234, -0.000676448573358357, 0.032363053411245346, 0.0240774042904377, -0.03363284841179848, -0.05814100801944733, 0.03322755545377731, 0.02392277494072914, -0.026737626641988754, 0.12364330142736435, -0.038879282772541046, 0.011127703823149204, -0.027853623032569885, -0.04642700031399727, -0.012182085774838924, 0.01280316710472107, -0.021022513508796692, -0.07411261647939682, -0.005436528939753771, 0.009989773854613304, 0.05535072460770607, -0.024495312944054604, -0.048768796026706696, -0.015202056616544724, -0.062076833099126816, -0.04436459764838219, -0.031562212854623795, 0.013900532387197018, -0.005053673405200243, -0.07982677221298218, 0.014152332209050655, 0.03629543259739876, 0.013469387777149677, -0.08689726889133453, 0.006024220492690802, 0.0011515481164678931, -0.046244435012340546, -0.031997211277484894, 0.08263273537158966, -0.03538025543093681, -0.026191256940364838, 0.005508773028850555, 0.05697445198893547, 0.002361467806622386, -0.01964271441102028, 0.006246558856219053, -0.04227533936500549, -0.006020434200763702, -0.04599256068468094, -0.06820734590291977, -0.040072664618492126, -0.00496000237762928, -0.018754743039608, -0.02379782497882843, -0.006669444497674704, -0.06627487391233444, -0.08799593895673752, 0.053982801735401154, -0.02003128081560135, -0.029858393594622612, 0.051192399114370346, 0.028270678594708443, 0.0019093345617875457, -0.01234979648143053, 0.018301282078027725, 0.027514126151800156, -0.0061192587018013, 0.051913414150476456, -0.0568246990442276, 0.04035847261548042, 0.06789609044790268, -0.05578380078077316, 0.07410972565412521, 0.08964285999536514, 0.006341493688523769, -0.032878149300813675, -0.02894888073205948, 0.0023197124246507883, -0.02272632345557213, -0.02635590173304081, 0.0246893260627985, 0.020619910210371017, 0.00872724037617445, 0.042303286492824554, -0.01234777458012104, -0.10824964940547943, -0.037953414022922516, -0.3578663766384125, -0.04484320804476738, -0.002604988170787692, -0.04297378659248352, 0.04634452238678932, -0.05335179343819618, 0.021986300125718117, -0.009083270095288754, -0.04550744965672493, 0.05239696800708771, 0.06544167548418045, -0.020189383998513222, 0.009194930084049702, -0.09057429432868958, -0.018074126914143562, -0.00833576824516058, -0.04123862460255623, -0.028872063383460045, -0.0010740110883489251, 0.02078104019165039, -0.030608011409640312, -0.013258014805614948, -0.03141208738088608, -0.04047206789255142, 0.01425912044942379, -0.060621608048677444, 0.1410614550113678, -0.010394187644124031, 0.052115291357040405, -0.01251540519297123, 0.02924351394176483, -0.011674878187477589, -0.018741965293884277, 0.0003851957735605538, -0.005095890257507563, -0.01072303019464016, -0.03198045864701271, 0.05914006009697914, -0.0245195459574461, -0.011111250147223473, -0.02040875144302845, 0.0438835583627224, 0.015883419662714005, -0.0314568392932415, -0.05845615267753601, 0.020651085302233696, -0.017171621322631836, -0.015477819368243217, -0.0028801995795220137, 0.07295524328947067, 0.016629047691822052, 0.02456708624958992, 0.0015998065937310457, 0.002628147369250655, 0.017612330615520477, -0.02369595505297184, -0.05737447738647461, -0.01171958353370428, -0.020174197852611542, -0.001772809075191617, 0.025672968477010727, -0.006549656856805086, 0.04190975800156593, -0.04759440943598747, -0.034216150641441345, -0.002319368766620755, 0.008298900909721851, -0.02869442291557789, 0.04281763732433319, -0.00404726667329669, 0.015083178877830505, 0.1112390011548996, 0.0247195977717638, 0.030330758541822433, 0.0405285619199276, 0.0641205832362175, -0.011697347275912762, 0.06206607446074486, 0.03159583359956741, 0.016110548749566078, 0.029727861285209656, 0.028798146173357964, 0.03411887213587761, 0.02978629246354103, 0.03929724171757698, -0.036398448050022125, 0.010289291851222515, 0.036972008645534515, 0.022698985412716866, 0.0060726189985871315, -0.020971983671188354, -0.012420052662491798, 0.0070957401767373085, -0.03579675033688545, 0.03444046527147293, 0.0003792309435084462, -0.2756216824054718, 0.023009948432445526, 0.02729651890695095, 0.032888155430555344, 0.0018764105625450611, -0.008996885269880295, 0.046626150608062744, -0.001978345215320587, -0.03565595671534538, -0.016255775466561317, -0.04088892787694931, 0.051442913711071014, 0.0343937911093235, -0.011677204631268978, -0.0025205055717378855, -0.019560739398002625, 0.057557959109544754, -0.034131523221731186, 0.021538903936743736, 0.007328911684453487, 0.07635777443647385, 0.004952495452016592, 0.17274847626686096, 0.007160048000514507, 0.006262723356485367, 0.024698808789253235, 0.00601511774584651, 0.04178309068083763, 0.09632433205842972, 0.027398105710744858, -0.013232688419520855, 0.013131694868206978, 0.04774260148406029, -0.011254348792135715, 0.03159100189805031, 0.04233875498175621, -0.04273904860019684, 0.014076361432671547, 0.04268007352948189, -0.025496842339634895, 0.015285028144717216, -0.009201588109135628, -0.05399738997220993, 0.05498645827174187, 0.09416286647319794, 0.0030856479424983263, 0.0028077794704586267, -0.0758245512843132, -0.018602265045046806, -0.0034992399159818888, -0.03590375557541847, 0.014184796251356602, 0.02375015802681446, -0.04465823993086815, 0.016840822994709015, 0.039852388203144073, 0.0014748412650078535, -0.00964425504207611, 0.020474521443247795, -0.014662633650004864, 0.004695108160376549, -0.05440881475806236, 0.1006222665309906, -0.007016852498054504, 0.024887437000870705 ]
[ -0.0098921163007617, 0.0355583019554615, -0.038839954882860184, 0.024327408522367477, -0.007264156825840473, -0.0395311564207077, 0.006312328390777111, -0.027129124850034714, -0.0423315092921257, -0.015570233575999737, -0.06679751724004745, 0.028370622545480728, -0.002996682422235608, -0.01400270126760006, -0.013250266201794147, -0.0016874626744538546, -0.050975602120161057, 0.026427017524838448, 0.029621565714478493, -0.012365208007395267, -0.05026645213365555, 0.05804348364472389, 0.02744637243449688, 0.004942295607179403, -0.01335629727691412, 0.0058474913239479065, -0.023965798318386078, 0.017472872510552406, -0.0013115996262058616, -0.11509725451469421, -0.02560398355126381, -0.03846178948879242, 0.011964140459895134, -0.03540854528546333, 0.007191833108663559, 0.021739304065704346, -0.03842344880104065, 0.0002887094160541892, 0.012525362893939018, 0.038692656904459, 0.04027135670185089, -0.012909060344099998, -0.007782620377838612, -0.01682826317846775, -0.008093100041151047, -0.001847841776907444, -0.013763491995632648, 0.004356541205197573, 0.006951782386749983, 0.022476501762866974, -0.05851500481367111, 0.014331984333693981, -0.032465267926454544, -0.006633613724261522, 0.026635751128196716, -0.02173050120472908, 0.020806193351745605, -0.033823635429143906, -0.02042323350906372, -0.03577703237533569, -0.002371382201090455, 0.03798454627394676, -0.04501603543758392, -0.01648211106657982, 0.005550639238208532, 0.0013289606431499124, -0.04140666872262955, 0.036699328571558, 0.033608485013246536, -0.0029202026780694723, -0.002177248476073146, -0.02926083281636238, -0.01790776662528515, -0.009594032540917397, -0.04419843107461929, -0.025615982711315155, 0.01511539239436388, -0.0647129938006401, 0.017893871292471886, 0.021598568186163902, -0.04261954128742218, -0.000250801385845989, 0.026855135336518288, -0.0143355131149292, -0.023979436606168747, -0.044303927570581436, 0.010578134097158909, 0.0653785988688469, -0.005122214090079069, -0.0469449907541275, -0.012017560191452503, -0.004394381772726774, -0.029781803488731384, 0.024525823071599007, -0.058840323239564896, 0.011476355604827404, 0.004190540872514248, -0.010231257416307926, -0.011320258490741253, 0.8014731407165527, 0.03977494686841965, -0.03152865171432495, 0.029762087389826775, 0.014887752942740917, 0.042042411863803864, -0.009225483052432537, 0.07181189954280853, -0.04458070173859596, -0.01731235347688198, -0.03939978405833244, 0.004234647378325462, 0.009906573221087456, 0.028697339817881584, 0.02440764755010605, 0.035155199468135834, 0.021875042468309402, -0.02279653586447239, 0.012609723955392838, 0.006193247623741627, -0.0025802399031817913, 0.010189936496317387, 0.00925158429890871, 0.044747669249773026, 0.05136828497052193, -0.005966756492853165, -0.1606455147266388, -0.0028895707800984383, -6.936386452690925e-33, 0.004841868299990892, -0.04524318128824234, 0.015545404516160488, -0.011034876108169556, 0.06556663662195206, 0.03174438327550888, -0.003633284941315651, -0.019960595294833183, 0.033724915236234665, -0.02074747532606125, 0.0019822472240775824, -0.0068596722558140755, -0.01687472127377987, 0.006157468073070049, 0.011554636992514133, -0.04223918914794922, 0.0021838080137968063, 0.06208469718694687, -0.014458104968070984, 0.010698681697249413, 0.020677883177995682, 0.0655054971575737, -0.002852717647328973, 0.03889166936278343, -0.009834024123847485, -0.012056989595293999, -0.05519753694534302, 0.03533052280545235, -0.002842642366886139, -0.032777175307273865, -0.03564590960741043, 0.04852912202477455, 0.012323396280407906, -0.08606472611427307, 0.023137804120779037, -0.051668766885995865, 0.002605812856927514, 0.01575128547847271, -0.029455002397298813, -0.034988656640052795, -0.01396519597619772, 0.01672980561852455, 0.005742208566516638, -0.013817398808896542, -0.045935530215501785, 0.0162520669400692, 0.02089480496942997, 0.05505630001425743, 0.014669282361865044, 0.004961071535944939, 0.006554585415869951, 0.0067674252204597, -0.009729652665555477, 0.0074204024858772755, -0.007736773695796728, -0.0042014881037175655, 0.03150662034749985, 0.029230164363980293, 0.0003979273315053433, -0.015656229108572006, 0.0264496561139822, -0.02193182334303856, 0.03084919974207878, -0.002216972876340151, -0.004088274668902159, 0.029566215351223946, 0.058044079691171646, 0.05047130212187767, 0.03493841737508774, 0.026730088517069817, -0.05576157942414284, 0.02221008576452732, -0.044445279985666275, -0.030475618317723274, 0.010563944466412067, -0.0194957684725523, 0.02430655248463154, -0.01525096409022808, 0.008953800424933434, 0.002624679356813431, 0.03198257088661194, -0.008416499942541122, -0.032843008637428284, -0.06427112966775894, -0.035165391862392426, 0.006116952281445265, -0.013060811907052994, 0.03890598192811012, -0.030848681926727295, -0.02308548241853714, 0.01676391437649727, 0.027946997433900833, -0.008497475646436214, -0.04822102189064026, -0.03111407160758972, 6.609680573082917e-33, -0.02309890277683735, 0.002434810157865286, -0.048494406044483185, 0.005925673525780439, 0.00702793151140213, 0.0014643988106399775, 0.037251632660627365, -0.03766774386167526, 0.01148528978228569, 0.03793632611632347, -0.036863990128040314, -0.013039260171353817, 0.007485378533601761, 0.013704200275242329, 0.03773348778486252, 0.010439826175570488, 0.0036343690007925034, 0.03035137988626957, 0.028339602053165436, -0.028716592118144035, -0.020196668803691864, 0.00005751684511778876, 0.003513848874717951, 0.01859116181731224, 0.01915738172829151, 0.052800606936216354, -0.013835926540195942, 0.0034176865592598915, 0.013338983990252018, 0.009916954673826694, -0.02947336621582508, -0.0025640532840043306, -0.02549375593662262, -0.019967176020145416, -0.0010435456642881036, 0.040129926055669785, 0.026548070833086967, -0.024100584909319878, -0.010196438059210777, -0.022515438497066498, 0.075810007750988, 0.002063229214400053, -0.013325775973498821, 0.03126540035009384, 0.012527736835181713, 0.011732611805200577, 0.014058352448046207, 0.02912774123251438, 0.009130647405982018, -0.02807699702680111, -0.00886785052716732, -0.008516611531376839, 0.0019339845748618245, -0.01213338878005743, 0.007138801738619804, -0.03639061748981476, -0.01239107083529234, 0.03965195640921593, -0.048377733677625656, -0.01668444834649563, -0.04861707612872124, -0.020995289087295532, -0.028318341821432114, 0.012857254594564438, -0.047427210956811905, 0.031084151938557625, -0.07124768942594528, -0.010777061805129051, -0.0019828095100820065, 0.03071969375014305, -0.009159764274954796, -0.02365894801914692, 0.02087714895606041, 0.005248430650681257, -0.08283691108226776, -0.003983798436820507, -0.006180558819323778, -0.0003454921825323254, 0.0003562395286280662, 0.017751986160874367, 0.023425230756402016, -0.004637295380234718, 0.01749134622514248, 0.019563008099794388, -0.01677517592906952, 0.002915823832154274, -0.0060569532215595245, -0.01605537161231041, 0.049413032829761505, 0.005428606644272804, -0.00956312008202076, 0.0014977799728512764, -0.030832264572381973, -0.0030568791553378105, -0.015132571570575237, -1.2396405679737654e-8, 0.03278842940926552, 0.017094964161515236, 0.006768515333533287, 0.08387475460767746, 0.018786486238241196, 0.05495616793632507, -0.02020377852022648, -0.014169741421937943, 0.02132413536310196, 0.017801377922296524, 0.049256838858127594, -0.023452119901776314, 0.008151186630129814, 0.0075067575089633465, 0.009115483611822128, -0.01283467747271061, -0.011775168590247631, -0.027312051504850388, 0.034678198397159576, -0.019185910001397133, 0.019916027784347534, 0.045435693114995956, -0.000354225339833647, 0.004108686465770006, -0.00711054028943181, 0.016605861485004425, 0.013943434692919254, -0.08290812373161316, 0.005561586935073137, -0.0036476629320532084, 0.05953524634242058, -0.037720877677202225, -0.05463545396924019, 0.0540982149541378, 0.015902791172266006, -0.02239992283284664, 0.029258625581860542, 0.01887102797627449, 0.020205805078148842, 0.025220436975359917, -0.0663294568657875, 0.009451079182326794, -0.01099811028689146, -0.02202630788087845, -0.028889048844575882, -0.01072752382606268, -0.04714906960725784, 0.030534246936440468, 0.051172174513339996, -0.039840832352638245, 0.016252126544713974, -0.005790463648736477, -0.02339675836265087, 0.024531289935112, 0.059149593114852905, -0.0030259049963206053, -0.010539542883634567, -0.01683194749057293, -0.0017696709837764502, 0.008650894276797771, 0.017744824290275574, 0.010529834777116776, -0.011919287033379078, -0.019239891320466995 ]
clickhouse-float-equality
https://markhneedham.com/blog/2024/01/04/clickhouse-float-equality
false
2024-01-05 00:44:37
Pandas: Exclude columns using regex
[ "pandas", "til" ]
[ "TIL" ]
After a few months of using ClickHouse, I've got quite used to using the https://clickhouse.com/docs/en/sql-reference/statements/select#except[`SELECT <expr> EXCEPT`^] modifier, which lets you remove columns based on a regular expression. I wanted to do something similar when working with some data in Pandas and in this blog we'll explore how to do that. We're gonna be working with a CSV file of UK energy and gas tariffs for one of the energy providers. The CSV file looks like this: .tariffs.csv [format="csv", options="header"] |=== include::content/2024/01/05/tariffs.csv[] |=== We can read it with Pandas like this: [source, python] ---- import pandas as pd tariffs = pd.read_csv("tariffs.csv") print(tariffs.to_string(index=False)) ---- .Output [source, text] ---- energyType standingCharge unitRate startDate endDate electricity 47.560 29.380 2024-01-01 2024-03-30 gas 29.600 7.450 2024-01-01 2024-03-30 electricity 44.961 26.758 2023-10-01 2023-12-31 gas 27.726 6.594 2023-10-01 2023-12-31 electricity 44.961 29.428 2023-07-01 2023-09-30 gas 27.726 7.179 2023-07-01 2023-09-30 electricity 44.961 49.117 2023-04-01 2023-06-30 gas 27.726 11.990 2023-04-01 2023-06-30 electricity 40.646 65.555 2023-01-01 2023-03-30 gas 27.128 16.229 2023-01-01 2023-03-30 electricity 40.646 50.630 2022-10-01 2022-12-31 gas 27.128 14.021 2022-10-01 2022-12-31 ---- Now, let's say we only want to return fields that contain the term `Date`. We can use the `loc` function where we only include columns that contain this term as the column argument: [source, python] ---- print( (tariffs .loc[:, tariffs.columns.str.contains("Date")] .to_string(index=False) ) ) ---- .Output [source, text] ---- startDate endDate 2024-01-01 2024-03-30 2024-01-01 2024-03-30 2023-10-01 2023-12-31 2023-10-01 2023-12-31 2023-07-01 2023-09-30 2023-07-01 2023-09-30 2023-04-01 2023-06-30 2023-04-01 2023-06-30 2023-01-01 2023-03-30 2023-01-01 2023-03-30 2022-10-01 2022-12-31 2022-10-01 2022-12-31 ---- And what about if we want to get rid of the `Date` fields? We can add the `~` prefix: [source, python] ---- print( (tariffs .loc[:, ~tariffs.columns.str.contains("Date")] .to_string(index=False) ) ) ---- .Output [source, text] ---- energyType standingCharge unitRate electricity 47.560 29.380 gas 29.600 7.450 electricity 44.961 26.758 gas 27.726 6.594 electricity 44.961 29.428 gas 27.726 7.179 electricity 44.961 49.117 gas 27.726 11.990 electricity 40.646 65.555 gas 27.128 16.229 electricity 40.646 50.630 gas 27.128 14.021 ----
In this post, we'll learn how to exclude columns in Pandas using a regular expression.
uploads/2024/01/pandas-banner.png
[ 0.013168695382773876, 0.02202976495027542, -0.021728862076997757, 0.026031997054815292, 0.09728018194437027, 0.011723116040229797, -0.021981501951813698, 0.05048760771751404, 0.00930472556501627, -0.006614923011511564, -0.02522987686097622, -0.011860511265695095, -0.08353718370199203, 0.01738164760172367, 0.009813377633690834, 0.080595001578331, 0.06384709477424622, 0.02297615073621273, 0.018635515123605728, -0.014797436073422432, 0.03802066296339035, 0.05181906372308731, -0.01932399347424507, 0.036186717450618744, 0.017116501927375793, -0.010401004925370216, 0.015297450125217438, 0.0018956466810777783, -0.033205922693014145, 0.02255496196448803, 0.04609135165810585, 0.002151510678231716, 0.018712032586336136, 0.031930796802043915, 0.027385147288441658, -0.00689792400225997, -0.021858803927898407, 0.008563396520912647, -0.01779876835644245, -0.007090907543897629, -0.07086414098739624, 0.03006930649280548, -0.037244509905576706, 0.031216681003570557, -0.021542616188526154, -0.01921212486922741, -0.02634187415242195, 0.004643773194402456, -0.04939030110836029, 0.002489491831511259, -0.03406723961234093, 0.04823961481451988, -0.023482846096158028, -0.044598132371902466, -0.0007579560624435544, 0.06818507611751556, 0.03145892918109894, -0.040469925850629807, 0.015880446881055832, -0.017182063311338425, 0.0009846703615039587, -0.014388257637619972, -0.006159795448184013, 0.026129083707928658, 0.015974175184965134, -0.009149594232439995, -0.028449658304452896, 0.04034482687711716, -0.021156828850507736, -0.023730380460619926, -0.004606605041772127, 0.01730445586144924, -0.01706511527299881, -0.022974157705903053, 0.0016037129098549485, -0.03423198312520981, -0.01760829985141754, 0.03880775719881058, 0.0162412878125906, 0.06703601777553558, -0.009642912074923515, 0.024986986070871353, 0.020049797371029854, 0.006768007297068834, 0.04487759619951248, -0.04633430764079094, -0.04634017497301102, -0.02155435085296631, -0.034949205815792084, 0.03148116543889046, -0.006515417248010635, -0.012393909506499767, 0.04034453630447388, 0.024199051782488823, -0.025389844551682472, -0.0025550946593284607, 0.015428146347403526, -0.0060616349801421165, 0.03671339899301529, -0.01066396851092577, -0.0751749575138092, -0.011131476610898972, 0.061005763709545135, 0.007875369861721992, -0.06977269798517227, -0.010910472832620144, -0.04094095155596733, -0.012991880998015404, 0.0393562912940979, 0.015410561114549637, -0.03459053114056587, -0.01361783966422081, -0.018460137769579887, -0.005546553060412407, -0.10338876396417618, 0.04734719172120094, 0.0021628804970532656, -0.040863122791051865, -0.0038946259301155806, 0.004886860027909279, 0.05944002792239189, -0.008709185756742954, 0.0006806544261053205, 0.06417349725961685, 0.020124759525060654, 0.008626368828117847, -0.00472529511898756, 0.0653255432844162, -0.007794815581291914, -0.07553528249263763, -0.037404853850603104, 0.04695118963718414, -0.010527150705456734, -0.0037913620471954346, 0.0009759372915141284, -0.007828262634575367, -0.007256827782839537, 0.00955166481435299, 0.0606030598282814, 0.016161976382136345, 0.04023458808660507, -0.004665636457502842, 0.001923887524753809, 0.016124293208122253, 0.00924233254045248, 0.0358743779361248, -0.003959067165851593, -0.05215878412127495, -0.04093915596604347, -0.0008415550109930336, 0.012017886154353619, 0.018632613122463226, 0.07389701902866364, -0.01700388453900814, -0.006569608114659786, 0.11054516583681107, 0.0339713878929615, 0.0002355398319195956, -0.024218454957008362, -0.026334865018725395, 0.03868980333209038, 0.019232451915740967, 0.0060876174829900265, 0.029709020629525185, 0.0018244007369503379, -0.0033691769931465387, -0.016074979677796364, 0.031112199649214745, -0.05526698753237724, 0.0020746004302054644, -0.036524370312690735, -0.05301683768630028, 0.09582185745239258, -0.05403510481119156, 0.022378399968147278, 0.021710706874728203, 0.061865050345659256, 0.0398540198802948, 0.04423314332962036, 0.016827862709760666, -0.06737451255321503, 0.04255402088165283, -0.01664689928293228, 0.016194326803088188, 0.062187276780605316, -0.00108362827450037, 0.06778257340192795, 0.014928082935512066, 0.04162023216485977, 0.05465288832783699, -0.054803695529699326, -0.07963448762893677, -0.04164321720600128, -0.014236741699278355, 0.03213249519467354, -0.04213777557015419, 0.006507922429591417, 0.08034665882587433, 0.0006035896949470043, 0.02448861487209797, -0.009216385893523693, 0.009436650201678276, 0.005907427053898573, -0.023023778572678566, -0.05021491274237633, -0.00622906070202589, 0.03744172304868698, -0.00763801671564579, 0.01548679731786251, 0.04312973469495773, -0.02102767489850521, 0.004252805840224028, 0.0401909276843071, -0.02871505357325077, 0.034032709896564484, 0.031770478934049606, 0.048649534583091736, -0.002956479089334607, 0.024847211316227913, -0.06553368270397186, 0.03462958335876465, 0.036370012909173965, -0.04811442270874977, -0.04587433114647865, -0.0036187684163451195, 0.12249384075403214, 0.05300211161375046, -0.007342195138335228, -0.06721488386392593, 0.007613949477672577, -0.0064420802518725395, -0.03321462497115135, 0.022786512970924377, -0.03967593237757683, 0.018306493759155273, -0.0029057390056550503, -0.04819156229496002, -0.0261019729077816, 0.004249311052262783, -0.017465637996792793, 0.015452994033694267, 0.0493541918694973, 0.007664923556149006, 0.027743011713027954, 0.01287716906517744, -0.02365204319357872, -0.03884396702051163, -0.02545182965695858, -0.03163222596049309, -0.01677032746374607, 0.014920726418495178, -0.004246820695698261, 0.039814647287130356, -0.014852423220872879, -0.041024088859558105, -0.01915227621793747, -0.0791333019733429, 0.02853158302605152, 0.05490828678011894, 0.039411213248968124, -0.0180636215955019, 0.044871896505355835, -0.029743386432528496, -0.015319844707846642, -0.014581812545657158, -0.012957565486431122, -0.057381510734558105, -0.036791056394577026, -0.013513733632862568, 0.0015460513532161713, 0.004099274054169655, 0.02740183286368847, 0.007906416431069374, 0.013054531998932362, 0.016804808750748634, -0.03276737406849861, 0.05455443635582924, -0.008679685182869434, 0.0022566053085029125, -0.03793720901012421, 0.005853896029293537, 0.06398480385541916, -0.03403884172439575, -0.04983224719762802, 0.01036152895539999, -0.08555496484041214, 0.0059782713651657104, -0.04742150753736496, -0.03607742115855217, 0.006399076897650957, 0.01870841719210148, 0.03748910874128342, 0.006237615365535021, 0.006448234897106886, 0.05517904832959175, 0.0018215046729892492, 0.005990937352180481, 0.058630913496017456, 0.042753662914037704, 0.029261991381645203, 0.01592676341533661, 0.0007511205621995032, 0.05866282060742378, 0.003978085238486528, 0.011479330249130726, -0.06175161525607109, -0.018179964274168015, -0.025454597547650337, -0.2814120054244995, 0.05074213817715645, -0.030374066904187202, -0.053115129470825195, 0.034974534064531326, -0.029314273968338966, 0.02037065289914608, -0.03592918813228607, -0.018020804971456528, -0.008312907069921494, -0.0045083556324243546, -0.03875435143709183, -0.023285480216145515, 0.018921280279755592, 0.0033437858801335096, 0.02942400611937046, 0.021836429834365845, -0.04383401572704315, 0.025574101135134697, 0.022233223542571068, 0.02293742261826992, -0.0341668576002121, 0.005162398796528578, 0.0551120825111866, 0.016254689544439316, 0.06373434513807297, -0.028545888140797615, 0.012224333360791206, -0.06246010586619377, -0.04092241823673248, 0.019196931272745132, -0.017183825373649597, -0.0003689407021738589, -0.011673648841679096, -0.015623388811945915, -0.012577439658343792, 0.021762073040008545, 0.01515263319015503, -0.022264741361141205, 0.03431828320026398, -0.030057892203330994, 0.005794938653707504, 0.014871767722070217, 0.010696548968553543, 0.07179474085569382, 0.00019680371042340994, -0.053094614297151566, -0.0033062444999814034, -0.016434524208307266, 0.06159062683582306, 0.0003919833688996732, 0.002353865886107087, -0.024967387318611145, 0.03434523567557335, -0.037294335663318634, 0.016972335055470467, -0.017778264358639717, -0.014643345028162003, -0.040999505668878555, -0.03142336755990982, -0.00783457513898611, -0.04455694556236267, 0.004572547040879726, -0.027177995070815086, -0.01627868227660656, -0.05839191749691963, -0.05686001107096672, -0.02260526455938816, 0.06930707395076752, 0.04865177348256111, -0.03434814512729645, -0.001853476744145155, 0.019470367580652237, -0.1083388701081276, -0.020811064168810844, -0.042262785136699677, -0.004685691092163324, 0.031393878161907196, -0.012594633735716343, 0.013473358936607838, -0.05845826491713524, -0.027789346873760223, 0.04212341830134392, 0.03628772497177124, -0.005775879602879286, -0.07782655954360962, 0.020107414573431015, 0.044738106429576874, -0.023719657212495804, -0.0206729955971241, 0.04852920025587082, -0.04160727933049202, -0.015725385397672653, -0.01686464063823223, -0.016084617003798485, 0.06327960640192032, 0.009634498506784439, -0.012447722256183624, -0.007113188970834017, 0.008489495143294334, -0.005241733975708485, -0.044804882258176804, -0.011225219815969467, -0.06424004584550858, -0.008878489956259727, -0.02031133882701397, -0.04299302026629448, 0.015950096771121025, 0.012375783175230026, 0.023128870874643326, -0.005864932667464018, -0.02628195844590664, 0.01767951436340809, -0.04801390692591667, -0.005303378216922283, -0.020615484565496445, 0.013036995194852352, -0.00031355483224615455, 0.02230466902256012, -0.028007226064801216, -0.06754064559936523, 0.019884541630744934, 0.010705611668527126, -0.02392522431910038, -0.05538024753332138, -0.01649886928498745, 0.009758694097399712, 0.007644372992217541, 0.0053696176037192345, -0.01866629160940647, -0.028800295665860176, 0.004093238152563572, 0.03396235406398773, -0.025639699772000313, 0.021954957395792007, -0.00841301865875721, -0.02493901178240776, -0.02305443026125431, -0.004086694214493036, 0.040383655577898026, -0.004901173058897257, 0.0007504444802179933, 0.003977818880230188, 0.005039587616920471, 0.03310457989573479, -0.011889100074768066, 0.016450809314846992, 0.030933145433664322, 0.015404014848172665, 0.027594415470957756, -0.03382999822497368, -0.021869005635380745, 0.026845259591937065, -0.041140902787446976, -0.05284998565912247, -0.012155995704233646, 0.04373711347579956, 0.004483977798372507, -0.0052529191598296165, -0.04088754206895828, 0.004248226527124643, -0.02993173711001873, -0.0007467673276551068, -0.03641694411635399, 0.040452051907777786, 0.047198209911584854, 0.005327451042830944, 0.029201267287135124, 0.009751711040735245, 0.030222048982977867, 0.018610971048474312, 0.032275550067424774, -0.02327899821102619, 0.026945412158966064, 0.018335172906517982, -0.025491852313280106, 0.04012475162744522, 0.001867184299044311, 0.017919598147273064, 0.02551211602985859, -0.0030751663725823164, -0.017743028700351715, 0.01386344525963068, 0.03211359307169914, 0.030791210010647774, 0.056423336267471313, -0.016004756093025208, 0.0024540082085877657, -0.005267915315926075, -0.034986529499292374, -0.020295986905694008, -0.014087444171309471, -0.005894755478948355, -0.023033756762742996, -0.03988388925790787, -0.0746445506811142, 0.021226702257990837, 0.021242907270789146, -0.028042607009410858, 0.005700412672013044, -0.023720361292362213, -0.009725884534418583, -0.0382719486951828, 0.025157909840345383, 0.06296945363283157, -0.047549061477184296, 0.011291805654764175, -0.03706257417798042, 0.007949508726596832, 0.009386871941387653, 0.022028088569641113, -0.06371905654668808, -0.030230097472667694, -0.001824654988013208, 0.032647937536239624, -0.018403321504592896, -0.017497610300779343, -0.04074535518884659, 0.01702709309756756, -0.01582232303917408, 0.021338190883398056, -0.01290829572826624, -0.004296972882002592, -0.018627386540174484, -0.0010056322207674384, 0.03173889219760895, -0.021414650604128838, -0.0056334082037210464, 0.03099043294787407, -0.026980644091963768, -0.024500422179698944, -0.026905424892902374, 0.025268319994211197, 0.013708088546991348, -0.01041150651872158, -0.014024581760168076, -0.053772978484630585, -0.01124597154557705, -0.0052408152259886265, 0.04979991912841797, -0.00006451360241044313, -0.011807942762970924, 0.005801256280392408, -0.011059729382395744, -0.015621629543602467, 0.000565038644708693, -0.006490244064480066, -0.04485120624303818, 0.018714461475610733, 0.052988406270742416, 0.008175202645361423, -0.004667761269956827, -0.019204717129468918, -0.047773443162441254, 0.04570327699184418, -0.04692516848444939, -0.032523125410079956, -0.00045644590863958, -0.06122972071170807, 0.01713426224887371, -0.001118908287025988, 0.019529495388269424, -0.03843757137656212, 0.06055973470211029, 0.04822533577680588, 0.029620861634612083, 0.03312739357352257, 0.053398989140987396, 0.02752476930618286, -0.03586180880665779, -0.044130511581897736, -0.09189032763242722, 0.00831499882042408, 0.032058559358119965, 0.024758165702223778, -0.018927423283457756, -0.013765275478363037, -0.023347875103354454, 0.02572983130812645, -0.06811994314193726, -0.03381700441241264, 0.05377662181854248, 0.018190372735261917, 0.018906015902757645, 0.024722175672650337, -0.020880287513136864, 0.014710655435919762, 0.04982879012823105, -0.04946397989988327, -0.0357716903090477, -0.01863863505423069, 0.08857569843530655, -0.026917172595858574, 0.00016056440654210746, -0.05073930323123932, -0.014378919266164303, 0.07381431758403778, 0.016028812155127525, 0.011225776746869087, 0.019755804911255836, -0.03574218228459358, 0.04125343635678291, 0.0007977181230671704, -0.010690102353692055, -0.01761355996131897, 0.020214198157191277, -0.0060219792649149895, -0.04189285263419151, 0.014627804979681969, 0.023679254576563835, 0.020748067647218704, -0.04077201709151268, 0.07178007811307907, 0.004300633445382118, -0.005733842961490154, -0.05406470596790314, -0.019932687282562256, -0.051962245255708694, -0.013987412676215172, -0.022189242765307426, -0.028702493757009506, -0.027443794533610344, 0.05703739449381828, -0.027297478169202805, 0.008023128844797611, 0.05899503082036972, -0.006527679972350597, 0.024007141590118408, 0.03071025013923645, 0.06419382244348526, 0.08271927386522293, 0.03084021806716919, 0.023532981052994728, 0.03220593184232712, -0.011393210850656033, -0.05987698957324028, 0.01533211674541235, -0.04144129529595375, 0.03771527484059334, -0.051453445106744766, -0.006845015566796064, 0.0576314739882946, 0.006707407534122467, 0.05983642861247063, 0.008216500282287598, -0.003560796147212386, -0.024539213627576828, -0.008721945807337761, 0.04082595929503441, 0.04096941277384758, 0.02789381332695484, 0.036546703428030014, -0.02921983040869236, -0.008755458518862724, 0.039498381316661835, 0.008823790587484837, -0.05947799235582352, 0.04731573164463043, 0.008500337600708008, 0.014431297779083252, 0.03659282997250557, 0.05611244589090347, 0.06677403301000595, -0.037756264209747314, 0.0023637108970433474, 0.006232006475329399, 0.0498553141951561, -0.013977138325572014, 0.022981127724051476, 0.001642487128265202, -0.008038773201406002, -0.02422161214053631, -0.04241114854812622, 0.015063784085214138, -0.014653056859970093, -0.013957979157567024, 0.009618109092116356, -0.014198178425431252, -0.0150523716583848, 0.05502685531973839, 0.029869774356484413, -0.024880237877368927, -0.040097370743751526, -0.06285291910171509, -0.020314224064350128, -0.09626374393701553, -0.0227951817214489, 0.015579607337713242, -0.03473057970404625, -0.026259109377861023, -0.03136410564184189, -0.025074375793337822, -0.018147844821214676, -0.0054682837799191475, -0.028581924736499786, -0.04597494378685951, 0.0002999033604282886, 0.03185313194990158, 0.0032755646388977766, 0.009008171036839485, 0.07100978493690491, -0.026774754747748375, -0.028871512040495872, 0.002041308907791972, 0.03165870159864426, 0.06214011833071709, -0.023403514176607132, 0.030939606949687004, -0.07576169818639755, 0.013112912885844707, 0.013729751110076904, 0.0042119016870856285, -0.08648203313350677, 0.036124300211668015, 0.014971298165619373, 0.0039200931787490845, 0.051205068826675415, -0.007369177881628275, -0.0071770381182432175, -0.023182425647974014, -0.03368356078863144, 0.017966587096452713, 0.008457859978079796, 0.05158644914627075, -0.0387541763484478, 0.07283350080251694, 0.06122096627950668, -0.020672790706157684, -0.024695470929145813, -0.0023144336882978678, -0.006183984689414501, 0.023586999624967575, -0.0656520277261734, -0.0712619423866272, -0.08011103421449661, -0.07887160032987595, -0.03637244552373886, 0.013549081049859524, -0.04628641903400421, -0.04939644783735275, 0.017480596899986267, 0.035842083394527435, -0.02660422958433628, 0.0065380847081542015, -0.052231501787900925, 0.009486737661063671, -0.019214434549212456, -0.046785254031419754, -0.021135028451681137, 0.0527120903134346, 0.023307528346776962, 0.000710402091499418, 0.003605740377679467, -0.029192911460995674, 0.033739123493433, -0.03386541083455086, -0.007091062609106302, 0.06186247989535332, -0.0012084853369742632, 0.018273266032338142 ]
[ -0.07532968372106552, -0.03949722275137901, -0.019195517525076866, 0.00866679660975933, 0.07214495539665222, -0.05590807646512985, 0.005397428292781115, -0.010653686709702015, 0.03605173900723457, 0.010859562084078789, -0.0026094545610249043, -0.02996465191245079, -0.020043158903717995, -0.051206596195697784, 0.028452076017856598, -0.0060309055261313915, -0.016985425725579262, -0.05576590076088905, -0.053651999682188034, 0.046164169907569885, -0.006453709676861763, -0.04638319090008736, -0.08116032183170319, -0.05780215188860893, 0.024656230583786964, 0.02118699997663498, 0.046223487704992294, -0.03814628720283508, -0.011271107941865921, -0.20081402361392975, 0.036044295877218246, -0.023865291848778725, 0.003265829524025321, -0.021622309461236, 0.03153269365429878, 0.010752272792160511, 0.025273889303207397, -0.005873763933777809, 0.010900580324232578, 0.04498933255672455, -0.00514554139226675, -0.017845503985881805, -0.026524385437369347, -0.02589859627187252, -0.00523775490000844, -0.003892097622156143, -0.004972869995981455, -0.011063694022595882, -0.008720312267541885, 0.02754383161664009, -0.052226725965738297, 0.039389800280332565, -0.0035672676749527454, -0.0013394550187513232, -0.005756981670856476, 0.013422295451164246, 0.05111965909600258, 0.03913794457912445, -0.0007936214678920805, 0.02021099254488945, 0.008084099739789963, -0.002038506790995598, -0.12788844108581543, 0.10990557819604874, 0.0171891450881958, 0.04930972307920456, -0.029471037909388542, -0.034877099096775055, -0.005809782072901726, 0.12723147869110107, -0.010656516067683697, -0.040433961898088455, -0.06408915668725967, 0.06837870925664902, 0.015572345815598965, -0.021374130621552467, -0.024866946041584015, 0.006547609809786081, 0.004201693460345268, -0.004886512644588947, -0.06393887847661972, 0.000010440660844324157, -0.022613627836108208, -0.025641165673732758, -0.0019109315471723676, 0.011584891937673092, -0.0103863924741745, 0.036233991384506226, 0.014788673259317875, 0.0080492552369833, 0.04184412211179733, -0.03520295023918152, 0.018437732011079788, 0.027989264577627182, -0.05969841778278351, -0.038855984807014465, 0.015691837295889854, 0.0362372025847435, 0.0034738073591142893, 0.4007461667060852, -0.042096808552742004, 0.00567262340337038, -0.004145433660596609, 0.01071170810610056, 0.0012331634061411023, 0.0006473990506492555, 0.0019045143853873014, -0.020577967166900635, 0.024533187970519066, -0.060987330973148346, -0.020279550924897194, -0.006492357701063156, 0.0804939717054367, -0.08139366656541824, 0.001571865170262754, 0.004691227804869413, 0.011538878083229065, -0.022801337763667107, 0.012357148341834545, 0.011767891235649586, -0.01421294640749693, -0.0009821022395044565, 0.01068064197897911, 0.0185087863355875, 0.009482931345701218, 0.015639878809452057, 0.058515001088380814, 0.07221416383981705, -0.0011900897370651364, 0.030579417943954468, 0.04499482735991478, -0.07369391620159149, -0.07148192077875137, 0.013269500806927681, 0.014064397662878036, -0.006123055703938007, 0.015164508484303951, -0.00034869430237449706, 0.007154572755098343, 0.027594538405537605, -0.012750191614031792, -0.0891415998339653, 0.016308553516864777, -0.0017669217195361853, -0.005985600873827934, 0.12730605900287628, -0.02658667229115963, -0.03289462998509407, -0.03762345388531685, -0.032243721187114716, -0.014296394772827625, 0.024047106504440308, 0.006112577393651009, -0.0770544782280922, 0.003869209438562393, 0.028041662648320198, 0.07048877328634262, -0.03928490728139877, -0.06532017141580582, -0.047948215156793594, 0.005754394922405481, -0.06287915259599686, -0.049513038247823715, 0.0398794449865818, 0.03213036060333252, -0.12121523171663284, -0.043202634900808334, 0.006653706543147564, 0.00190975540317595, -0.04431641101837158, 0.03409887105226517, 0.005252997390925884, -0.058478713035583496, -0.0034062641207128763, 0.046815503388643265, -0.022014129906892776, -0.02532340958714485, 0.028356272727251053, 0.04752536118030548, 0.012344473972916603, -0.02367040142416954, 0.029833698645234108, -0.020260751247406006, -0.006350362207740545, -0.05280708149075508, -0.06275290250778198, -0.0584975928068161, 0.019903801381587982, -0.01806229166686535, -0.03023901954293251, -0.00015121613978408277, -0.039513010531663895, -0.056450255215168, 0.05746423453092575, -0.044579580426216125, -0.0067174783907830715, 0.021242372691631317, -0.007104219403117895, 0.006070677191019058, -0.04932988062500954, 0.011759666725993156, -0.013818947598338127, -0.014025996439158916, 0.018428388983011246, -0.021622108295559883, 0.037947218865156174, 0.05013208091259003, -0.02666546031832695, 0.06268192082643509, 0.019962670281529427, 0.0022216876968741417, 0.009688543155789375, -0.002518927911296487, -0.00003697613283293322, 0.015850713476538658, 0.00014338362962007523, -0.020954173058271408, 0.0034607835114002228, 0.04882773756980896, 0.022051313892006874, 0.0009500011801719666, -0.03954586386680603, -0.010231134481728077, -0.34640681743621826, -0.031242122873663902, -0.0042472416535019875, -0.001740866806358099, 0.006344052962958813, -0.062418315559625626, -0.0029139635153114796, -0.012984306551516056, -0.02269214205443859, 0.07355690002441406, 0.06498497724533081, -0.03586491942405701, 0.006180695258080959, -0.06808194518089294, -0.035799916833639145, 0.01817561872303486, -0.011296146549284458, -0.046922728419303894, -0.015713537111878395, 0.051549043506383896, 0.02517656795680523, -0.02197525091469288, -0.018683800473809242, -0.04298267140984535, 0.036878425627946854, -0.015140551142394543, 0.1552240550518036, 0.013879303820431232, 0.06802351027727127, -0.05803387612104416, 0.03923211246728897, -0.005253452342003584, 0.01629919931292534, -0.04713471978902817, 0.004296013154089451, -0.033579014241695404, -0.059085339307785034, 0.007668498437851667, -0.012157697230577469, 0.007361691445112228, -0.03498907387256622, 0.015421533957123756, -0.05143182352185249, -0.03064579702913761, 0.009341124445199966, 0.004187398124486208, 0.0014554050285369158, -0.0033466899767518044, -0.04552418366074562, 0.11819848418235779, 0.04006786271929741, 0.014375477097928524, 0.029342137277126312, 0.05998194217681885, 0.05783228576183319, -0.008848052471876144, -0.06138155981898308, 0.010014854371547699, -0.02689436264336109, -0.0386931337416172, 0.01590660586953163, -0.004316712263971567, 0.05102431774139404, -0.023977749049663544, -0.04231954738497734, 0.011959556490182877, 0.02600538171827793, 0.013772859238088131, 0.05523506924510002, 0.018928857520222664, -0.06064388528466225, 0.08484538644552231, -0.007158997468650341, 0.007403400260955095, 0.012394600547850132, 0.0622575581073761, -0.018150843679904938, 0.0564124621450901, -0.0012554001295939088, -0.0003321292460896075, 0.0744258239865303, 0.0034355593379586935, 0.048946503549814224, -0.003277846844866872, 0.04345211014151573, 0.028414446860551834, 0.015090622007846832, 0.01085421722382307, 0.059754785150289536, 0.00936112180352211, -0.032870158553123474, -0.012955992482602596, -0.023426005616784096, -0.023165494203567505, 0.07693977653980255, -0.008244946599006653, -0.2883274257183075, 0.025132404640316963, 0.02934209629893303, 0.05213143303990364, -0.007407332770526409, 0.0032809297554194927, -0.010038604028522968, -0.0483151413500309, 0.0036189367529004812, 0.0020324301440268755, -0.03820018470287323, 0.04800137132406235, 0.012393433600664139, -0.017482401803135872, -0.024461252614855766, -0.03982299193739891, 0.04892992973327637, 0.031223569065332413, 0.04390620440244675, 0.036752741783857346, 0.04417372867465019, -0.023477770388126373, 0.1823309361934662, 0.061475783586502075, 0.019063396379351616, -0.020604724064469337, -0.005442071706056595, -0.0033706738613545895, 0.0508761890232563, 0.041251290589571, 0.03802899643778801, -0.02363261580467224, 0.06085330620408058, 0.007854292169213295, 0.03112509846687317, -0.02359781041741371, -0.04507546126842499, 0.07807803153991699, 0.026682499796152115, -0.03461186960339546, -0.027893973514437675, 0.029979921877384186, -0.051611945033073425, 0.009957053698599339, 0.042812105268239975, -0.0064574372954666615, -0.011926762759685516, -0.051870811730623245, -0.013858024962246418, -0.0016673845238983631, 0.0025883254129439592, 0.017194977030158043, -0.018776902928948402, 0.011882992461323738, 0.01770060323178768, 0.053144458681344986, 0.0419917032122612, -0.006677479948848486, 0.05479130893945694, 0.0027856186497956514, -0.02723725140094757, -0.0477740652859211, 0.09042104333639145, 0.02777734585106373, 0.014385038986802101 ]
[ -0.017594747245311737, 0.077852763235569, -0.03965833783149719, 0.06752344220876694, 0.027033252641558647, -0.057500116527080536, -0.011909843422472477, -0.028873033821582794, -0.002646622946485877, 0.004788863006979227, 0.010987328365445137, -0.008751471526920795, 0.012291637249290943, -0.05202240124344826, 0.014760516583919525, -0.04418375343084335, -0.025191526859998703, -0.02242157980799675, 0.026416031643748283, -0.041045624762773514, -0.02739018201828003, 0.05231969803571701, 0.02640637382864952, -0.005066286772489548, -0.0009440176654607058, 0.04588514193892479, -0.045647941529750824, 0.028558816760778427, 0.009064888581633568, -0.11248105764389038, -0.0493379682302475, -0.02308834344148636, -0.0437910221517086, 0.01558085810393095, 0.003735905047506094, 0.0199782382696867, -0.0032771462574601173, 0.058501530438661575, 0.02041514776647091, 0.011378089897334576, -0.027113428339362144, -0.02478526532649994, 0.011570370756089687, -0.03884396329522133, -0.045345813035964966, 0.0050151292234659195, 0.0026984764263033867, -0.019084319472312927, -0.01362528931349516, -0.02456490322947502, -0.029515011236071587, 0.059123676270246506, -0.053919170051813126, 0.006502207368612289, 0.07266785204410553, 0.011937571689486504, 0.01816614344716072, -0.007335154339671135, 0.02003367617726326, -0.023869335651397705, -0.010721970349550247, -0.0016407123766839504, -0.05478258803486824, -0.031237822026014328, 0.012170834466814995, -0.02683381550014019, -0.0350145548582077, 0.01156070176512003, 0.0031678127124905586, -0.03215081989765167, -0.03444337099790573, -0.02733689360320568, -0.033669814467430115, -0.01979736238718033, -0.011339252814650536, 0.0374356247484684, 0.03639683872461319, -0.03759598359465599, 0.024541884660720825, -0.007940488867461681, -0.050185929983854294, 0.02116852067410946, 0.012276136316359043, 0.029230397194623947, -0.01267800759524107, -0.05107053741812706, 0.017075685784220695, 0.013989786617457867, 0.029087277129292488, -0.028571607545018196, -0.0005105203599669039, -0.01712106540799141, 0.013612103648483753, 0.0158532727509737, -0.0551375150680542, -0.018397342413663864, -0.012429256923496723, -0.03183860704302788, -0.015856171026825905, 0.8116011619567871, 0.04327826574444771, 0.007145460695028305, 0.013034477829933167, 0.006665539462119341, -0.027319034561514854, -0.012065060436725616, 0.013400976546108723, 0.027879660949110985, 0.03185296803712845, -0.04521014541387558, 0.02838699333369732, 0.03593702241778374, 0.008319320157170296, -0.016203099861741066, 0.00767156295478344, -0.0007744385511614382, -0.001903168042190373, -0.04690404236316681, -0.017034975811839104, -0.0270349383354187, 0.013247997500002384, 0.0160586629062891, 0.0012455135583877563, -0.011016777716577053, 0.0031395666301250458, -0.16225646436214447, 0.04474623501300812, -7.908613585685053e-33, -0.020594151690602303, 0.0010284483432769775, 0.029896629974246025, -0.03329740837216377, 0.03603872284293175, 0.04673873260617256, -0.01357328798621893, -0.0033904605079442263, 0.04557269066572189, 0.0380849651992321, 0.019561350345611572, 0.019172504544258118, 0.0020227960776537657, -0.016825329512357712, 0.032453157007694244, -0.059246454387903214, 0.017100155353546143, 0.007503329776227474, -0.005102662835270166, -0.003816569223999977, 0.0590822733938694, 0.05676029622554779, 0.021404772996902466, 0.03854053094983101, 0.06334302574396133, -0.006822963710874319, -0.028852934017777443, -0.023539338260889053, -0.013355772942304611, -0.02782120369374752, -0.007239413447678089, 0.034727226942777634, -0.009530196897685528, -0.02081957645714283, 0.004333553370088339, -0.05695873126387596, 0.009162653237581253, -0.0031991947907954454, -0.03289720043540001, -0.033646803349256516, -0.05487274378538132, 0.018128909170627594, 0.012634524144232273, 0.013190142810344696, -0.04113425314426422, 0.009382300078868866, 0.034805212169885635, 0.02238808199763298, -0.0005491962074302137, 0.008049242198467255, 0.003850930370390415, -0.012773074209690094, 0.01670553907752037, 0.021247662603855133, -0.005606895312666893, 0.02610446698963642, -0.006440514698624611, -0.03648168221116066, 0.01197725348174572, -0.027738232165575027, -0.011164902709424496, -0.010153548792004585, -0.009732653386890888, 0.01479923352599144, 0.007361255120486021, -0.006666950415819883, 0.028968388214707375, 0.021507004275918007, -0.02845471166074276, -0.015975914895534515, -0.0229447390884161, -0.0204327292740345, 0.012584355659782887, -0.04581848159432411, 0.049945637583732605, -0.02638152241706848, -0.013052520342171192, 0.015923824161291122, 0.013954750262200832, 0.027116844430565834, -0.008704296313226223, -0.025004053488373756, 0.006300249136984348, -0.03252536058425903, 0.0024300990626215935, -0.024020446464419365, 0.015093712136149406, 0.039241548627614975, 0.006393453571945429, -0.01932927593588829, -0.01895231567323208, 0.03459211811423302, 0.02104930207133293, -0.01324744988232851, -0.024002032354474068, 7.85789173913104e-33, -0.003204928943887353, -0.01195529941469431, 0.01106942817568779, -0.020237326622009277, 0.03027394227683544, 0.02196556329727173, 0.02751169167459011, -0.032627176493406296, -0.035764094442129135, 0.013492695055902004, -0.01657010056078434, -0.0067956154234707355, -0.020601673051714897, 0.01883859373629093, 0.030191579833626747, 0.042999692261219025, -0.03221554309129715, 0.03149152174592018, -0.012165659107267857, 0.027710068970918655, -0.006652357988059521, 0.002784025389701128, -0.027373360469937325, 0.03664543107151985, 0.00838776770979166, 0.029838236048817635, -0.018585851415991783, -0.006232517305761576, 0.014962735585868359, 0.0061480943113565445, -0.011803003028035164, 0.03226972743868828, -0.030317706987261772, -0.016562068834900856, -0.032615095376968384, 0.03824077546596527, 0.00500522693619132, 0.010703101754188538, -0.011360487900674343, 0.012894723564386368, 0.03257135674357414, 0.014750148169696331, 0.005782687105238438, 0.05495701730251312, 0.0033556828275322914, 0.012272169813513756, 0.008095217868685722, -0.02148444950580597, -0.02488880790770054, 0.04158198833465576, -0.007412530016154051, 0.0219913050532341, -0.010542905889451504, 0.03736424818634987, 0.012896799482405186, -0.020467083901166916, -0.001424078713171184, 0.008259253576397896, -0.05867700278759003, -0.025872323662042618, -0.019739530980587006, 0.015355745330452919, 0.0253415796905756, 0.03853411227464676, -0.018628086894750595, 0.007706030271947384, -0.03977668657898903, -0.013416350819170475, 0.08067058026790619, -0.04725690931081772, -0.015712270513176918, -0.019245179370045662, -0.010652267374098301, -0.015201983042061329, -0.017264528200030327, 0.008314207196235657, -0.0081199174746871, -0.015292988158762455, 0.02812901698052883, -0.004165791906416416, 0.04825308173894882, -0.014684611931443214, 0.045756954699754715, -0.007773357909172773, -0.02197233773767948, 0.004613970872014761, -0.034499771893024445, -0.049140553921461105, 0.057324428111314774, 0.03163041174411774, -0.010646488517522812, -0.05189963057637215, -0.0000018819978322426323, 0.02836093120276928, -0.01787307672202587, -1.3094002326852205e-8, -0.03152135759592056, 0.0254780575633049, -0.0018403837457299232, -0.0089268758893013, 0.020424768328666687, 0.02599010430276394, -0.018634339794516563, -0.012584936805069447, -0.019032681360840797, 0.021147694438695908, 0.07014021277427673, -0.022695504128932953, 0.04877903684973717, 0.019725589081645012, -0.00830844882875681, -0.007082623429596424, 0.03728500381112099, 0.01590447500348091, 0.030927252024412155, 0.01971825771033764, 0.017694780603051186, 0.05062976852059364, -0.014715852215886116, 0.0005270310794003308, 0.023902064189314842, 0.021543461829423904, -0.02035933919250965, -0.10887740552425385, 0.028335517272353172, 0.02092183195054531, -0.0007007675594650209, -0.03914766013622284, -0.03868713602423668, -0.0020415817853063345, -0.016045071184635162, -0.028125537559390068, 0.028117112815380096, -0.01344950683414936, -0.01679292693734169, 0.008057966828346252, -0.011193339712917805, -0.022547975182533264, -0.0215284563601017, -0.0064682736992836, -0.014399501495063305, -0.007577995769679546, -0.06874779611825943, -0.002898045349866152, 0.024059584364295006, -0.003383227391168475, 0.019615938887000084, -0.03172731399536133, 0.022390486672520638, 0.004096951801329851, 0.04432189092040062, 0.012624089606106281, -0.0012773288181051612, 0.02848941646516323, -0.024508804082870483, -0.03238818049430847, 0.00835314579308033, 0.0534554161131382, -0.024971187114715576, -0.017889803275465965 ]
pandas-exclude-columns-regex
https://markhneedham.com/blog/2024/01/05/pandas-exclude-columns-regex
false
2024-01-02 00:44:37
ClickHouse: How does a number have a set number of decimal places?
[ "clickhouse", "til" ]
[ "TIL" ]
:icons: font I've been working with a dataset in ClickHouse where I compute currency values and I really struggled to figure out how to get numbers whose decimal part is divisible by 10 to have a fixed number of decimal places. If you want to do that too, hopefully, this blog post will help. Let's start by seeing what happens if we output the number `12.40` [source, sql] ---- SELECT 12.40 AS number; ---- .Output [source, sql] ---- ┌─number─┐ │ 12.4 │ └────────┘ ---- The trailing `0` has been stripped. But maybe we can fix that by casting it to a Decimal type with 2 decimal places? [source, sql] ---- SELECT CAST(12.40 AS Decimal(10,2)) AS number; ---- .Output [source, sql] ---- ┌─number─┐ │ 12.4 │ └────────┘ ---- Hmm, nope. What about if we coerce the value with the `toDecimal32` function instead? [source, sql] ---- SELECT toDecimal32(12.40, 2) AS number; ---- .Output [source, sql] ---- ┌─number─┐ │ 12.4 │ └────────┘ ---- Still nope. At this point I was pretty stuck - Google didn't have any suggestions and even ChatGPT didn't know what to do. Lucky for me, my colleague https://github.com/Avogar[Pavel^] came to the rescue by pointing me to the https://clickhouse.com/docs/en/operations/settings/formats#output_format_decimal_trailing_zeros[`output_format_decimal_trailing_zeros`^] setting. If we enable that, we'll see our trailing 0 as long as we have a Decimal type. [source, sql] ---- SELECT 12.40 AS number, toDecimal32(number, 2) AS number2, CAST(number AS Decimal(10,2)) AS number3 SETTINGS output_format_decimal_trailing_zeros=1; ---- .Output [source, sql] ---- ┌─number─┬─number2─┬─number3─┐ │ 12.4 │ 12.40 │ 12.40 │ └────────┴─────────┴─────────┘ ---- Thanks Pavel!
In this post, we'll learn how to format a Decimal number to have a set/fixed number of decimal places.
uploads/2024/01/clickhouse-decimal-banner.png
[ 0.016369221732020378, 0.027050824835896492, -0.009467038325965405, 0.035429906100034714, 0.058165449649095535, 0.03614547476172447, 0.009941771626472473, 0.03846650943160057, -0.01669083535671234, -0.005677344277501106, -0.012791969813406467, -0.02997204288840294, -0.07479986548423767, 0.01906217634677887, 0.02111235074698925, 0.07899368554353714, 0.08104903995990753, 0.006157268770039082, -0.0071119824424386024, -0.01980152726173401, -0.0036673133727163076, 0.0022364722099155188, 0.0035140966065227985, 0.031589992344379425, 0.022251995280385017, 0.046654749661684036, 0.008244103752076626, -0.028029711917042732, -0.058636341243982315, -0.005299228709191084, 0.0448785275220871, 0.04091406986117363, 0.014065963216125965, 0.014869769103825092, 0.019368479028344154, -0.00575880566611886, -0.010637771338224411, 0.001618703710846603, 0.005230414215475321, -0.010929117910563946, -0.056763388216495514, -0.018889322876930237, -0.0003295026835985482, 0.05488896742463112, -0.02096383273601532, -0.013424149714410305, -0.03765818849205971, -0.008991257287561893, -0.05928405374288559, 0.01834099553525448, -0.04909922182559967, 0.08853870630264282, -0.002433273009955883, -0.02012115716934204, -0.013513519428670406, 0.04773211106657982, 0.02153853513300419, -0.048310521990060806, -0.016083616763353348, -0.061865441501140594, 0.029567690566182137, 0.008380967192351818, 0.00018858570547308773, 0.021907728165388107, 0.010472477413713932, 0.010887447744607925, -0.01095332857221365, 0.0510498471558094, -0.06093410775065422, -0.01954362913966179, -0.016101207584142685, -0.0021083743777126074, -0.015970783308148384, -0.04593309387564659, 0.02378310263156891, -0.042832233011722565, -0.03866767883300781, 0.05556332692503929, 0.054823312908411026, 0.06309835612773895, -0.026136301457881927, -0.004495625849813223, 0.0663871243596077, 0.012596391141414642, 0.04062081128358841, -0.03172147646546364, -0.03046373836696148, -0.04040633141994476, -0.01791149564087391, 0.025881173089146614, -0.017780117690563202, -0.03028634935617447, 0.039296332746744156, 0.016496676951646805, -0.009290343150496483, 0.00853570457547903, 0.005023895297199488, -0.027912810444831848, 0.03871270269155502, -0.0031080206390470266, -0.04308387264609337, -0.03859759494662285, 0.09216456115245819, 0.00784661527723074, -0.07505704462528229, 0.021156063303351402, -0.058750614523887634, -0.003614850342273712, 0.07570834457874298, 0.05136836692690849, -0.028022445738315582, -0.02558325044810772, -0.029010863974690437, 0.00025062679196707904, -0.0680244043469429, 0.04470032453536987, -0.007179343141615391, -0.03183070942759514, 0.0023780602496117353, 0.018528088927268982, 0.0462794229388237, 0.009401398710906506, -0.03981785476207733, 0.06620165705680847, -0.021944426000118256, 0.05523296445608139, 0.01245872862637043, 0.04875289276242256, 0.0032880085054785013, -0.07979362457990646, -0.004935932345688343, 0.054731130599975586, -0.03012881614267826, -0.0014307827223092318, -0.014881095848977566, -0.003529881127178669, -0.009158708155155182, -0.0190822035074234, 0.05826602131128311, 0.00388028915040195, 0.05146140232682228, -0.01739097572863102, -0.01636863499879837, -0.01970790885388851, 0.013755058869719505, 0.03567636013031006, 0.01542151439934969, -0.03302478790283203, -0.05737720802426338, 0.02391323633491993, 0.010148031637072563, 0.050235897302627563, 0.07456030696630478, -0.04196757450699806, 0.0010425950167700648, 0.06334415078163147, -0.008677958510816097, 0.00039249920519068837, -0.008852211758494377, 0.001502965809777379, 0.0368061400949955, -0.01565508358180523, -0.007243175525218248, 0.039367735385894775, 0.010670478455722332, 0.008673254400491714, 0.005015440285205841, 0.025510571897029877, -0.07089877128601074, -0.005232780706137419, -0.03893542289733887, -0.03787566348910332, 0.10390669107437134, -0.039749324321746826, 0.010339934378862381, 0.02444373071193695, 0.058586038649082184, 0.03990893065929413, 0.038979027420282364, 0.044921740889549255, -0.09369801729917526, 0.018393853679299355, -0.006908143870532513, -0.011129440739750862, 0.04688679054379463, -0.000862864195369184, 0.0694102793931961, 0.03170530125498772, 0.0006119065219536424, 0.06488008052110672, -0.06460625678300858, -0.0763407051563263, -0.02216809056699276, -0.02430952526628971, 0.04173339530825615, -0.05519074201583862, 0.010673758573830128, 0.03809494525194168, 0.039934191852808, 0.03522297739982605, -0.03552022576332092, 0.009310372173786163, 0.03436692804098129, -0.030676452443003654, -0.01517130620777607, 0.036418695002794266, 0.03149968013167381, 0.0368267223238945, -0.010933213867247105, 0.032922204583883286, -0.004022351000458002, -0.013258852064609528, 0.02462545968592167, 0.019297577440738678, 0.019706308841705322, 0.00766167463734746, 0.01105068065226078, -0.02582460083067417, 0.014788514003157616, -0.03106166049838066, -0.01374858245253563, 0.04391146078705788, -0.04382270202040672, -0.036086734384298325, 0.017421351745724678, 0.13185185194015503, 0.062414150685071945, -0.008099018596112728, -0.026670005172491074, 0.026775730773806572, -0.009190869517624378, -0.024644602090120316, 0.04684938117861748, -0.050611454993486404, 0.02611757069826126, -0.009310864843428135, -0.047190118581056595, -0.016383344307541847, 0.037873800843954086, -0.008028712123632431, 0.022073941305279732, 0.05574118345975876, -0.003609787207096815, 0.024503933265805244, 0.001336221699602902, -0.04468928650021553, -0.011253831908106804, -0.03941282257437706, -0.03836555406451225, -0.019996443763375282, 0.012380129657685757, -0.013836776837706566, -0.004755185917019844, -0.036741748452186584, -0.037947285920381546, -0.00955415703356266, -0.025117753073573112, 0.030655039474368095, 0.010816412977874279, 0.023009812459349632, -0.020061146467924118, 0.011021751910448074, 0.009131704457104206, -0.035357195883989334, -0.029322728514671326, -0.03371362015604973, -0.021373655647039413, 0.024827731773257256, 0.03150009363889694, -0.021794842556118965, 0.03717295080423355, 0.04108213633298874, 0.00046711182221770287, -0.010839315131306648, 0.0014793106820434332, -0.010999401099979877, 0.03605552390217781, -0.005353391636162996, -0.036839231848716736, -0.02183627150952816, -0.022899217903614044, 0.08405404537916183, -0.04079882428050041, -0.04681211709976196, 0.015444716438651085, -0.04791618138551712, 0.023693004623055458, -0.0819024071097374, -0.04029368236660957, -0.00916497502475977, 0.02289808914065361, 0.022400952875614166, -0.009387647733092308, 0.02918015420436859, 0.07726731151342392, -0.020784804597496986, 0.02188725955784321, 0.048265352845191956, 0.005000019446015358, 0.01560505386441946, 0.0035880832001566887, 0.030227122828364372, 0.07377282530069351, 0.02333693765103817, -0.003712661564350128, -0.06755131483078003, 0.0022865221835672855, -0.025763725861907005, -0.23743455111980438, 0.04297352209687233, -0.06724023073911667, -0.061408452689647675, 0.017183933407068253, -0.04904999956488609, 0.020184773951768875, -0.020391447469592094, -0.013800709508359432, 0.0075988429598510265, -0.012653914280235767, -0.04425405338406563, -0.03473110869526863, 0.021155603229999542, 0.004273897968232632, 0.02523837983608246, 0.04607071727514267, -0.010593005456030369, 0.014622403308749199, 0.0337417796254158, 0.02658720687031746, -0.04407071694731712, 0.026776643469929695, 0.05478540435433388, 0.028577998280525208, 0.06702180206775665, -0.0384647436439991, 0.007127578370273113, -0.05394870787858963, -0.02207130752503872, -0.0063245827332139015, 0.020231319591403008, 0.006396351382136345, -0.014551619999110699, 0.012099859304726124, -0.016666674986481667, 0.036656927317380905, -0.020678680390119553, 0.02496311254799366, 0.021137207746505737, -0.03304266557097435, -0.01307536568492651, 0.05772142484784126, 0.03367741405963898, 0.07161154597997665, 0.02429771050810814, -0.07506316155195236, 0.01771092787384987, -0.014373156242072582, 0.06012842431664467, -0.011730857193470001, -0.011816577054560184, -0.02966148406267166, 0.026570260524749756, -0.0040336898528039455, -0.013982555828988552, -0.03251556307077408, 0.007465862203389406, -0.020027954131364822, -0.00562584912404418, 0.011163515970110893, -0.03395009785890579, -0.026320230215787888, -0.019744323566555977, 0.0068746088072657585, -0.08424966037273407, -0.04708872362971306, -0.02693651244044304, 0.05057758465409279, 0.041642360389232635, -0.02009687013924122, -0.01936471462249756, -0.006790296174585819, -0.10652358084917068, -0.03642328828573227, -0.02927767112851143, 0.01764563098549843, 0.018756702542304993, -0.0627833753824234, 0.0298936627805233, -0.03820553794503212, -0.021790841594338417, 0.019778205081820488, 0.03914321959018707, 0.012963998131453991, -0.03151635825634003, 0.004455203656107187, -0.0018256272887811065, -0.006427262909710407, -0.0016426414949819446, 0.08809974789619446, -0.03870068117976189, 0.014222681522369385, -0.01867128163576126, -0.021031899377703667, 0.012980812229216099, -0.0002014925266848877, 0.01340673491358757, 0.0023379912599921227, -0.01664380542933941, 0.04142521694302559, -0.07341942936182022, 0.04131389781832695, -0.04838662967085838, -0.03473622351884842, -0.0076020248234272, -0.03893474116921425, 0.021367738023400307, 0.013726061210036278, 0.015457403846085072, -0.02719101309776306, -0.021313294768333435, -0.0013479803455993533, -0.04268031567335129, -0.004120913799852133, -0.03614290431141853, 0.019075337797403336, 0.00014641770394518971, 0.016040990129113197, -0.025983134284615517, -0.05768439918756485, 0.027350688353180885, 0.004476162604987621, -0.005304496269673109, -0.05382656678557396, -0.003910959232598543, -0.022328373044729233, -0.012150970287621021, 0.02756594307720661, 0.01872602105140686, -0.013137991540133953, 0.055085476487874985, 0.028473056852817535, -0.023378679528832436, 0.01500462181866169, -0.008709217421710491, -0.02091877907514572, 0.01295880600810051, 0.005972461774945259, 0.00009245720139006153, 0.014778818003833294, -0.004594941157847643, 0.03893151879310608, 0.011807406321167946, 0.04373462498188019, -0.015237382613122463, 0.01991926319897175, 0.0008831819286569953, 0.010739700868725777, 0.024994025006890297, -0.0010133308824151754, -0.03811052814126015, 0.025193089619278908, -0.034725673496723175, -0.02914433367550373, -0.03673309460282326, 0.003366269636899233, -0.012238697148859501, -0.01827838458120823, -0.049146875739097595, -0.010171032510697842, -0.024279538542032242, -0.03889349475502968, -0.01989881321787834, 0.0024568773806095123, 0.03770854324102402, 0.0051153493113815784, 0.03664899617433548, -0.008168368600308895, 0.008295712992548943, 0.02509758435189724, 0.029483357444405556, -0.027141211554408073, 0.012285906821489334, 0.04655313491821289, -0.043728429824113846, -0.0032119343522936106, 0.017732733860611916, 0.0013542328961193562, 0.01068426575511694, 0.04589159041643143, -0.0006656352197751403, 0.01424324233084917, 0.030683986842632294, 0.028865475207567215, 0.03312762826681137, -0.01048275362700224, 0.019134055823087692, -0.026326818391680717, -0.04244258627295494, -0.030272187665104866, -0.0061209537088871, -0.046622276306152344, -0.003684776369482279, -0.05313125625252724, -0.04836959391832352, -0.008075268007814884, 0.051667481660842896, 0.004658393561840057, 0.022774986922740936, -0.0057980092242360115, -0.01641690917313099, -0.05189618840813637, 0.029991058632731438, 0.06515048444271088, -0.06130566447973251, 0.03671053797006607, -0.0011958255199715495, 0.00595050398260355, 0.006542108487337828, 0.035096701234579086, -0.04580242186784744, -0.03160391002893448, -0.014039140194654465, 0.02268392965197563, -0.04182500019669533, 0.023991864174604416, -0.014494862407445908, -0.004631991032510996, -0.044132787734270096, 0.00946377869695425, -0.0008556515676900744, -0.010131928138434887, -0.008430401794612408, -0.009910410270094872, -0.008509396575391293, -0.009496618062257767, 0.008765572682023048, 0.047880277037620544, 0.008240561932325363, 0.0010483161313459277, -0.03594779968261719, 0.02345348335802555, 0.022721577435731888, 0.025765063241124153, -0.03955402597784996, -0.05707410350441933, -0.008254338055849075, -0.0179549939930439, 0.03579325973987579, -0.024002742022275925, -0.014564530923962593, -0.025791900232434273, -0.0015451950021088123, -0.0037649276200681925, -0.009064575657248497, -0.025324052199721336, -0.08124352991580963, 0.012750380672514439, 0.06267379224300385, 0.012352745980024338, -0.005789603106677532, 0.003630034625530243, -0.015850406140089035, 0.060786452144384384, -0.04340650513768196, 0.0007936155889183283, 0.0057333046570420265, -0.0484810397028923, 0.014417643658816814, -0.024911152198910713, 0.02333536371588707, -0.030629506334662437, 0.05172164365649223, 0.035899918526411057, 0.044655073434114456, 0.024657094851136208, 0.029189830645918846, 0.015606201253831387, -0.011269897222518921, -0.029557468369603157, -0.06510255485773087, 0.01916525699198246, -0.020008452236652374, 0.012579865753650665, -0.04052174463868141, 0.005095669999718666, -0.04097789153456688, 0.000911822950001806, -0.10140916705131531, -0.02639058046042919, 0.024250967428088188, 0.0430045910179615, 0.003040216863155365, 0.02384810708463192, -0.039365094155073166, 0.004075400531291962, 0.021191716194152832, -0.02357238344848156, -0.03700319305062294, 0.000018014656234299764, 0.06050252541899681, 0.03035438060760498, 0.021004389971494675, -0.053082600235939026, 0.012268279679119587, 0.09186162054538727, 0.0469801090657711, 0.019875939935445786, 0.029830563813447952, -0.018102115020155907, 0.045271847397089005, -0.022094935178756714, -0.0175133366137743, 0.013659035786986351, -0.004828750621527433, -0.023073989897966385, -0.05097562074661255, -0.00568895461037755, 0.019517473876476288, -0.0015970676904544234, -0.061362896114587784, 0.0715722069144249, 0.012876053340733051, 0.008017357438802719, -0.08494309335947037, -0.005214876960963011, 0.0033711628057062626, -0.02482646517455578, 0.000491302227601409, -0.027620438486337662, -0.011766212992370129, 0.07532353699207306, -0.010053462348878384, 0.018753768876194954, 0.05858089402318001, 0.024535629898309708, 0.01954762451350689, 0.008360836654901505, 0.0800573080778122, 0.0727197602391243, 0.0349591001868248, 0.016125928610563278, 0.032291438430547714, -0.022792339324951172, -0.061233535408973694, -0.026144584640860558, -0.05022314190864563, -0.0045344773679971695, -0.049555450677871704, 0.01587829180061817, 0.06096808612346649, -0.024524498730897903, 0.045576684176921844, -0.02183648571372032, -0.008737052790820599, -0.007528679445385933, -0.026585804298520088, 0.031311098486185074, 0.04663998633623123, 0.040229715406894684, -0.008432772010564804, -0.007833111099898815, -0.006141501944512129, 0.03164494410157204, -0.011589966714382172, -0.039112988859415054, 0.010955117642879486, 0.002832701662555337, 0.042370256036520004, 0.011737832799553871, 0.0274492260068655, 0.07343492656946182, -0.01984068751335144, -0.03520726040005684, 0.031614188104867935, 0.061796896159648895, -0.010250073857605457, 0.005458405707031488, -0.007633552886545658, -0.01599813997745514, -0.01830703765153885, -0.02136308327317238, 0.023720815777778625, -0.03333783149719238, -0.017261838540434837, 0.03621072322130203, -0.024651501327753067, 0.011313033290207386, 0.03751952201128006, -0.05017315223813057, -0.06811383366584778, -0.057051777839660645, -0.044524166733026505, -0.02221079356968403, -0.09978540241718292, 0.0026233100797981024, 0.007466546725481749, -0.07317668199539185, -0.020642884075641632, -0.03867068514227867, -0.02118523232638836, -0.035774581134319305, -0.022910526022315025, -0.053209658712148666, -0.07921081781387329, 0.033549223095178604, 0.030016448348760605, -0.020534241572022438, 0.03062674216926098, 0.06465756893157959, -0.005203317850828171, -0.004653926473110914, -0.03575662150979042, 0.021685276180505753, 0.05046498402953148, 0.026999806985259056, 0.025081774219870567, -0.03805050626397133, 0.007131032645702362, 0.021297628059983253, -0.008268779143691063, -0.07319159060716629, 0.021748105064034462, 0.02739034779369831, -0.012840528972446918, 0.03659090772271156, -0.016576087102293968, 0.006229247432202101, -0.045602452009916306, -0.024359844624996185, 0.031938210129737854, 0.007603105623275042, 0.05050787702202797, -0.06349371373653412, 0.06977065652608871, 0.010831574909389019, -0.013044986873865128, -0.023934338241815567, -0.0034449559170752764, -0.026047343388199806, 0.02993444912135601, -0.05584151670336723, -0.029758436605334282, -0.06248794123530388, -0.06904122978448868, -0.014157845638692379, 0.0009499475127086043, -0.04678476229310036, -0.03775843232870102, -0.0014557717368006706, 0.030630765482783318, -0.04163440689444542, 0.024321015924215317, -0.05933358147740364, 0.03803102672100067, -0.040244221687316895, -0.02215697430074215, -0.003817300545051694, 0.04640032723546028, 0.028446407988667488, -0.03206707537174225, 0.018032541498541832, -0.04153510928153992, 0.004656404256820679, -0.06044868752360344, 0.01436281856149435, 0.0012708536814898252, 0.03406062349677086, 0.025605598464608192 ]
[ -0.06813971698284149, -0.00699035357683897, -0.07612747699022293, -0.02515767700970173, -0.01854628697037697, -0.029193298891186714, -0.03859831765294075, 0.01052052155137062, -0.03858170658349991, 0.0024373503401875496, 0.04781104251742363, -0.038145869970321655, -0.013123836368322372, 0.006760214921087027, 0.019148262217640877, -0.018359210342168808, -0.03831465169787407, -0.057545073330402374, -0.023681383579969406, 0.05439745634794235, 0.07536983489990234, -0.02930871583521366, -0.026610083878040314, -0.04788617789745331, 0.03537992388010025, 0.04890051484107971, 0.05263187363743782, -0.04265665262937546, -0.009946628473699093, -0.21484333276748657, 0.01890261098742485, -0.009665745310485363, 0.01783757470548153, -0.038887280970811844, 0.00790413934737444, 0.002449230058118701, 0.004208758007735014, 0.020499326288700104, 0.0032165437005460262, 0.03334564343094826, 0.021281549707055092, 0.0384039506316185, -0.01576894335448742, -0.06798696517944336, 0.032015811651945114, 0.013491730205714703, -0.020513201132416725, 0.01218547485768795, 0.013853799551725388, 0.03253965452313423, -0.013833197765052319, 0.04315274581313133, -0.009151608683168888, 0.05824605002999306, -0.016802584752440453, 0.006683066952973604, 0.06376589089632034, 0.04463018476963043, 0.032911766320466995, -0.03463580831885338, 0.0073013617657125, -0.02355070784687996, -0.09598040580749512, 0.10988752543926239, 0.012738138437271118, 0.037582267075777054, 0.04384090006351471, -0.012430302798748016, -0.0358816459774971, 0.048154618591070175, 0.02375214919447899, -0.05338168889284134, -0.050633665174245834, 0.012584742158651352, 0.01642625778913498, -0.0533907525241375, -0.004950245376676321, -0.0033975092228502035, 0.05225042626261711, -0.0015646808315068483, -0.023785153403878212, 0.01614699512720108, 0.013889945112168789, -0.02973981387913227, 0.019096706062555313, -0.0022700512781739235, 0.010544627904891968, 0.04728133976459503, 0.00003391756763448939, -0.027437400072813034, 0.025753386318683624, 0.00677056610584259, 0.020364973694086075, 0.032216623425483704, -0.03955544903874397, 0.004492323845624924, -0.013933046720921993, 0.01925729215145111, 0.008437634445726871, 0.3834471106529236, 0.00995707232505083, -0.009964167140424252, -0.015766644850373268, 0.023578928783535957, -0.018531713634729385, -0.017094997689127922, -0.005069752689450979, -0.004110187292098999, -0.027220474556088448, -0.08759556710720062, -0.022848933935165405, 0.019521363079547882, 0.05488548055291176, -0.06506210565567017, -0.009995391592383385, -0.018742922693490982, 0.0014268953818827868, -0.0006197861512191594, 0.038572926074266434, 0.02399921603500843, 0.006400562357157469, 0.018643297255039215, 0.015171228908002377, 0.01652107760310173, 0.05225462466478348, 0.010431778617203236, 0.022952916100621223, 0.06469540297985077, 0.039819955825805664, 0.08486340194940567, 0.027114709839224815, -0.09299532324075699, -0.07983376830816269, -0.000747287820558995, -0.027651572600007057, 0.03846154734492302, -0.005794505588710308, -0.01661260798573494, 0.00433458061888814, -0.03985479846596718, -0.04795725643634796, -0.0630505234003067, 0.00625790236517787, 0.004902748856693506, -0.004618600010871887, 0.1320163458585739, -0.021970942616462708, -0.02432440035045147, 0.012109161354601383, -0.03271552175283432, 0.0022968424018472433, -0.01011497713625431, -0.035559285432100296, -0.04225458577275276, -0.036614157259464264, 0.04130125418305397, 0.061352696269750595, -0.038795556873083115, -0.0698820948600769, -0.06249108538031578, 0.016123073175549507, -0.04306318610906601, -0.08130863308906555, 0.07554508745670319, 0.03457561507821083, -0.08624803274869919, -0.05170369893312454, 0.03850359469652176, -0.002840709872543812, -0.049516770988702774, 0.009351844899356365, -0.006042643915861845, -0.04353882744908333, -0.012291664257645607, 0.09296175837516785, 0.005265506450086832, 0.008528569713234901, -0.011345839127898216, 0.01202466432005167, 0.029291827231645584, 0.04714255407452583, 0.012589914724230766, 0.003209754591807723, -0.016036026179790497, -0.028471006080508232, -0.0717456042766571, -0.07079538702964783, -0.01912003755569458, 0.014933471567928791, -0.023390604183077812, 0.021225517615675926, -0.06914578378200531, -0.09587859362363815, 0.0707985982298851, -0.021120436489582062, -0.01010211557149887, 0.04167412966489792, 0.03688029199838638, 0.0028698700480163097, -0.02813970483839512, 0.08244591951370239, 0.004054011311382055, -0.02534947544336319, 0.02246158942580223, 0.0017297557787969708, 0.05737268179655075, 0.07190587371587753, -0.06842093169689178, 0.06496656686067581, 0.02891610562801361, -0.009152162820100784, 0.009073813445866108, 0.019325511530041695, 0.010359598323702812, 0.04103318974375725, -0.0011499305255711079, 0.004614978097379208, -0.01975746639072895, 0.008682061918079853, 0.0256593469530344, 0.008802009746432304, -0.10063397884368896, -0.04747417941689491, -0.37135863304138184, -0.038286950439214706, -0.013522150926291943, -0.029053594917058945, 0.0461341068148613, -0.09442217648029327, 0.014823020435869694, 0.023808129131793976, -0.0018410277552902699, 0.07138621807098389, 0.03461477532982826, -0.004189625848084688, -0.038986239582300186, -0.08598054945468903, -0.03969673067331314, 0.01111685298383236, -0.02421879582107067, -0.06669043004512787, -0.012736691161990166, -0.01293517742305994, 0.02058526501059532, -0.0055193244479596615, -0.05835995450615883, -0.0856461450457573, 0.06937963515520096, -0.020739467814564705, 0.09551409631967545, -0.05014069378376007, 0.01554586086422205, -0.06775020062923431, 0.05476098507642746, -0.030605792999267578, -0.005841793958097696, -0.024366455152630806, -0.016465337947010994, -0.039840325713157654, 0.003450938267633319, -0.02534612827003002, 0.014794542454183102, -0.009462215006351471, -0.04292500764131546, 0.02115636318922043, -0.060891661792993546, -0.02883824147284031, 0.0363130047917366, 0.010952874086797237, -0.00916934385895729, -0.021724261343479156, 0.015604539774358273, 0.11346688866615295, 0.01807326450943947, 0.041392989456653595, 0.017089109867811203, 0.03328587859869003, 0.025135435163974762, -0.010183580219745636, -0.02396279014647007, -0.021056504920125008, 0.0035516934003680944, -0.006560856476426125, 0.018096938729286194, 0.006118696182966232, 0.034565459936857224, 0.00010706405737437308, -0.030238911509513855, 0.07208456844091415, -0.017211172729730606, -0.018217619508504868, 0.05752255767583847, 0.001449701259844005, 0.00195911037735641, 0.08625166863203049, -0.01808498427271843, -0.0032444740645587444, 0.006414907518774271, 0.06482311338186264, -0.017620563507080078, 0.05331479758024216, 0.027803635224699974, -0.00705778319388628, 0.024312065914273262, 0.032893940806388855, 0.04338330402970314, -0.0075667910277843475, 0.016113368794322014, 0.037869203835725784, 0.005459327716380358, 0.0010254544904455543, 0.02508959360420704, 0.010900373570621014, -0.04428745433688164, -0.019274545833468437, 0.003306260099634528, -0.01792115531861782, 0.03590282052755356, -0.04538130760192871, -0.235149085521698, 0.03560654819011688, 0.03315090015530586, 0.03946864232420921, 0.02755824476480484, -0.01722165383398533, 0.01757906563580036, -0.03498094156384468, -0.07188156247138977, 0.0012977977748960257, 0.014350803568959236, 0.011137708090245724, 0.05120289698243141, -0.016851872205734253, 0.04738426208496094, -0.030962659046053886, 0.017640789970755577, -0.014655191451311111, 0.008340379223227501, 0.046715930104255676, 0.06525416672229767, 0.002852860139682889, 0.180079847574234, 0.06760475784540176, 0.00518976291641593, -0.03421205282211304, 0.0426451601088047, 0.0009348834864795208, 0.10534732788801193, 0.04924871027469635, -0.024416102096438408, -0.012390345335006714, 0.05966656282544136, -0.037272386252880096, 0.0025634481571614742, -0.024676280096173286, -0.05491463840007782, 0.044741395860910416, 0.006750487256795168, 0.0005683209747076035, -0.0035358797758817673, 0.044867143034935, -0.06334733217954636, 0.0297649335116148, 0.06476656347513199, 0.015691418200731277, -0.011752081103622913, -0.028559008613228798, 0.009013578295707703, -0.01146079320460558, -0.01735716126859188, 0.027967901900410652, 0.013511057943105698, -0.04892083257436752, 0.023016268387436867, 0.01869168132543564, -0.04023360460996628, -0.027211586013436317, 0.007238857448101044, 0.03783419728279114, -0.05059284716844559, -0.04288880527019501, 0.0485253632068634, 0.014999663457274437, -0.0008766078390181065 ]
[ -0.005728618707507849, 0.0028985708486288786, -0.058398496359586716, -0.0023794930893927813, -0.03901776298880577, -0.024544067680835724, 0.05798681825399399, 0.022159483283758163, -0.03302723541855812, -0.007373156491667032, -0.03554336354136467, -0.020546531304717064, 0.014538921415805817, -0.014238591305911541, 0.007333104498684406, -0.03416256979107857, -0.012216346338391304, 0.01867983117699623, 0.01716594398021698, 0.03266626596450806, -0.0042368280701339245, -0.006691862363368273, 0.02156701683998108, 0.017986593768000603, 0.028623342514038086, 0.010272203013300896, 0.008063963614404202, -0.013461655005812645, 0.015137646347284317, -0.10832507908344269, -0.044383663684129715, -0.02066115476191044, -0.00836784765124321, 0.0031110786367207766, 0.026537654921412468, -0.03691350296139717, 0.028250854462385178, 0.035126350820064545, -0.013344243168830872, 0.00010710179049056023, -0.003667009063065052, -0.035159654915332794, 0.000006269161985983374, 0.0029315436258912086, 0.017695659771561623, -0.0025685420259833336, -0.03975210338830948, 0.012585882097482681, -0.01331510953605175, 0.01158114057034254, 0.019652197137475014, 0.011483217589557171, -0.030977481976151466, -0.013181359507143497, 0.026554714888334274, -0.005856616422533989, -0.012319774366915226, 0.036360789090394974, -0.013180124573409557, -0.0014270524261519313, -0.024116547778248787, 0.02592085488140583, -0.026452086865901947, -0.049369607120752335, -0.002787225414067507, -0.008119012229144573, -0.022654175758361816, -0.005774207878857851, -0.010037070140242577, -0.01873316988348961, 0.018446099013090134, -0.03875095024704933, -0.030755408108234406, -0.03771757334470749, -0.050616394728422165, -0.012190909124910831, 0.022054029628634453, -0.022998971864581108, -0.031325362622737885, 0.027006132528185844, -0.02994769625365734, -0.0019011265831068158, 0.04044296592473984, 0.0077653974294662476, 0.03782971575856209, -0.060678284615278244, 0.039573460817337036, -0.0019495905144140124, 0.018485000357031822, -0.022755468264222145, 0.0026635644026100636, 0.032174475491046906, -0.001543936668895185, 0.020095055922865868, -0.05517134442925453, 0.017031827941536903, 0.0030863541178405285, 0.01103068608790636, -0.006608181167393923, 0.8411223292350769, -0.004439740441739559, 0.025175902992486954, -0.009505800902843475, 0.005543078295886517, -0.02261210046708584, 0.0169326514005661, 0.029868273064494133, -0.007325322832912207, 0.015936607494950294, -0.06786065548658371, 0.031064456328749657, 0.009096235036849976, 0.0006456630653701723, 0.00002724936348386109, 0.037108004093170166, -0.016455013304948807, 0.005903672892600298, -0.03451497107744217, -0.012624579481780529, -0.00553468894213438, 0.03340612351894379, 0.0028558033518493176, -0.030774878337979317, 0.03972280025482178, 0.01659352332353592, -0.11668948829174042, 0.0013385871425271034, -6.407405178613264e-33, -0.008096020668745041, -0.021844878792762756, 0.025401689112186432, -0.0371018685400486, 0.005751027259975672, 0.025629175826907158, -0.026126347482204437, 0.013710676692426205, -0.005948690231889486, -0.03187108412384987, 0.0413619801402092, -0.016704317182302475, -0.014508767984807491, -0.005154704675078392, 0.04025221988558769, -0.010574946179986, 0.018043845891952515, 0.033834997564554214, 0.000708100211340934, 0.018212920054793358, 0.012066093273460865, 0.04278233274817467, 0.027015093713998795, 0.030238086357712746, 0.031677912920713425, 0.046725932508707047, -0.05149438604712486, 0.015530606731772423, 0.018427807837724686, -0.03242884576320648, -0.029906637966632843, 0.006325445603579283, 0.004752208478748798, -0.040244560688734055, -0.012381860986351967, -0.043320223689079285, -0.006446793209761381, 0.021588392555713654, -0.01189903449267149, -0.036828137934207916, -0.03463005647063255, -0.01827908307313919, -0.021211884915828705, -0.008641713298857212, 0.016557198017835617, 0.03523840382695198, 0.06673353165388107, 0.0366932712495327, 0.00863216258585453, -0.059729937463998795, -0.011276744306087494, 0.008698790334165096, -0.043179165571928024, -0.010006864555180073, 0.00455471919849515, -0.020308682695031166, 0.029715051874518394, -0.0244215689599514, -0.0010344841284677386, -0.00027491155196912587, -0.006674725562334061, -0.005026869010180235, 0.022008320316672325, 0.021059788763523102, -0.023984132334589958, 0.031057197600603104, 0.029930077493190765, -0.021168097853660583, 0.01997724547982216, 0.024731727316975594, -0.03528441861271858, 0.01938479207456112, 0.00010916213068412617, -0.0048315199092030525, 0.036931317299604416, 0.004709652625024319, 0.026432707905769348, -0.01362136472016573, 0.00902812834829092, 0.032942622900009155, 0.022655000910162926, 0.0026277946308255196, -0.002868690760806203, -0.019858775660395622, 0.005834649316966534, -0.03608296811580658, -0.0035664851311594248, -0.00013434757420327514, -0.01466090977191925, -0.006483415141701698, 0.03737470880150795, -0.01191997341811657, 0.0021221099887043238, -0.05639168620109558, -0.03434957191348076, 6.21859580661625e-33, -0.016631757840514183, 0.015457111410796642, -0.03534553945064545, 0.015117903240025043, -0.04426620155572891, 0.015188254415988922, 0.031945426017045975, 0.012929053045809269, -0.0029100337997078896, 0.04770150035619736, 0.0007332327077165246, 0.0079007213935256, -0.03326142206788063, 0.009203258901834488, 0.005680345464497805, 0.020791543647646904, 0.03439025580883026, 0.0621776357293129, -0.007013882510364056, -0.0022757488768547773, 0.041463084518909454, 0.02648966573178768, 0.01488106232136488, 0.013580376282334328, 0.003583177225664258, 0.035673122853040695, -0.02710392139852047, -0.01805264875292778, 0.0016987768467515707, 0.03447485715150833, -0.016410384327173233, -0.03677530586719513, 0.012682907283306122, -0.06045078858733177, -0.0489661768078804, 0.02804597280919552, 0.02489217184484005, -0.04292914643883705, 0.0009735064231790602, 0.007196784019470215, 0.020825525745749474, -0.02790379896759987, 0.015185872092843056, 0.011215826496481895, -0.025400640442967415, -0.04576921835541725, 0.02046547830104828, 0.03780628368258476, -0.02046571671962738, -0.0341353639960289, 0.05719451233744621, 0.006096073891967535, 0.008854838088154793, 0.0370321162045002, -0.009949875064194202, -0.004714207723736763, -0.04148450493812561, 0.008158472366631031, -0.023306336253881454, -0.007125265896320343, -0.04676961526274681, 0.04428880661725998, 0.00857620406895876, 0.0005934160435572267, -0.020649975165724754, 0.015695123001933098, -0.026558591052889824, -0.0030882300343364477, -0.03931131958961487, -0.013972502201795578, 0.002811070764437318, -0.017904002219438553, 0.019333481788635254, 0.06248033046722412, -0.03476570546627045, 0.01750078797340393, -0.03858386352658272, 0.020780187100172043, 0.03506743907928467, 0.02466222271323204, 0.024482382461428642, -0.007956252433359623, -0.0007364802877418697, -0.012210993096232414, -0.014472881332039833, -0.005505066830664873, -0.043047674000263214, -0.029954081401228905, 0.014577414840459824, 0.0013524388195946813, -0.023044852539896965, -0.041063591837882996, 0.0070275417529046535, 0.07762692123651505, -0.004854070954024792, -1.2340784394382354e-8, 0.006661379709839821, 0.010655063204467297, -0.021492216736078262, 0.00442522345110774, 0.03274714946746826, -0.004526074510067701, -0.05027500540018082, 0.00891998503357172, 0.010141585022211075, 0.01746540516614914, 0.032557714730501175, 0.016220005229115486, -0.0014603380113840103, -0.0051740612834692, 0.020053856074810028, -0.04322480037808418, 0.05574347451329231, -0.051157064735889435, 0.0012355662183836102, -0.028103655204176903, -0.007627689745277166, 0.05605240538716316, -0.028769951313734055, -0.05108201876282692, -0.0020541062112897635, -0.025373870506882668, 0.004284110385924578, -0.004213581793010235, 0.011315588839352131, 0.010150173678994179, 0.03567125275731087, -0.01304525975137949, -0.06410212814807892, 0.02193010039627552, -0.021203959360718727, -0.0452137254178524, 0.051374901086091995, 0.02307000942528248, 0.022405052557587624, 0.005511498544365168, -0.023846464231610298, -0.03932391479611397, -0.026958778500556946, -0.00003414398815948516, -0.0403234101831913, -0.02358713001012802, -0.04702319577336311, 0.004248428158462048, 0.030280843377113342, -0.016162151470780373, 0.03049905225634575, 0.0011488629970699549, -0.011921824887394905, 0.03765714913606644, 0.006590784061700106, -0.002690971130505204, 0.013902868144214153, -0.0025891100522130728, -0.032423220574855804, 0.03573121130466461, 0.008823924697935581, 0.002754188608378172, 0.010898510925471783, 0.006803417112678289 ]
clickhouse-set-number-decimal-places
https://markhneedham.com/blog/2024/01/02/clickhouse-set-number-decimal-places
false
2024-01-28 00:44:37
Ollama is on PyPi
[ "ollama", "generative-ai", "til" ]
[ "TIL" ]
:icons: font This week https://ollama.ai/[Ollama^] released a Python/PyPi library to go with their awesome tool for running LLMs on your own machine. You still need to download and run Ollama, but after that you can do almost everything from the library. In this blog post, we're going to take it for a spin. [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/JwYwPiOh72w?si=oOsZFPmSAhF2kPDK" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> ++++ ==== == Setup You can install the library by running the following command: [source, bash] ---- pip install ollama ---- And then import the library from your Python REPL or Jupyter notebook: [source, python] ---- import ollama ---- The most obvious first task is installing one of the models. At the moment there isn't a way to list all of the available models, but you can see what's available on the https://ollama.ai/library[Ollama models page^]. == Installing a model If we want to install the Mistral 7B model from Mistral AI, we could run the following: [source, python] ---- ollama.pull("mistral") ---- There isn't any feedback when this is running though, so I'd suggest that you run this type of command using the CLI so that you can see how much is left to download. Perhaps that will change in future versions of the library though, we'll have to see. Once the library has installed, you can view it like this: [source, python] ---- ollama.show("mistral") ---- .Output [source, python] ---- { 'license': '...', 'modelfile': '# Modelfile generated by "ollama show"\n# To build a new Modelfile based on this one, replace the FROM line with:\n# FROM mistral:latest\n\nFROM /Users/markhneedham/.ollama/models/blobs/sha256:e8a35b5937a5e6d5c35d1f2a15f161e07eefe5e5bb0a3cdd42998ee79b057730\nTEMPLATE """[INST] {{ .System }} {{ .Prompt }} [/INST]"""\nPARAMETER stop "[INST]"\nPARAMETER stop "[/INST]"', 'parameters': 'stop "[INST]"\nstop "[/INST]"', 'template': '[INST] {{ .System }} {{ .Prompt }} [/INST]', 'details': { 'parent_model': '', 'format': 'gguf', 'family': 'llama', 'families': ['llama'], 'parameter_size': '7B', 'quantization_level': 'Q4_0' } } ---- == The `chat` function There are two functions that you can use to interact with the models - `chat` and `generate`. Let's start with the `chat` function, which we can use like this: [source, python] ---- stream = ollama.chat( model="mistral", messages = [{ "role": "user", 'content': 'What is a Large Language Model in 3 bullet points?' }], stream=True ) for chunk in stream: print(chunk['message']['content'], end='', flush=True) ---- The output varies each time you run this, but this is what it showed when I ran it, taking around 3 seconds: .Output [source, text] ---- 1. A large language model is a type of artificial intelligence (AI) system designed to generate human-like text based on given prompts or context. It uses deep learning techniques, specifically recurrent neural networks and transformers, to analyze vast amounts of text data and learn patterns in language. 2. Large language models can perform various natural language processing tasks such as translation, summarization, question answering, and text generation. They can also be fine-tuned on specific datasets to improve performance in certain domains or applications. 3. The size of a large language model refers to the number of parameters it has, which determines its capacity to learn complex patterns and relationships in language. For example, BERT, a popular large language model, has over 110 billion parameters, making it one of the largest models to date. These models require significant computational resources and advanced hardware such as GPUs to train and run efficiently. ---- If we were building a chat app, we could keep an array of prompts and responses so that the LLM could use the full context when replying to the latest prompt. == The `generate` function Alternatively, if you just want to do a one-off prompt and get a response, you can use the `generate` function. Multi-modal modals are all the rage these days, so let's see if we can get the LLaVA model to describe the following image: .A colourful llama image::{{<siteurl>}}/uploads/2024/01/02024_2475991309.png[width=500] [source, python] ---- file_path = "/Users/markhneedham/Downloads/02024_2475991309.png" stream = ollama.generate( model="llava", prompt="Please describe what's in this image:", images=[file_path], stream=True ) for chunk in stream: print(chunk['response'], end='', flush=True) ---- This one takes between 3-7 seconds to run and the output is as follows: .Output [source, text] ---- The image features a colorful stuffed animal, possibly a llama or an alpaca, wearing a pair of sunglasses and a feathery rainbow-colored scarf. It is standing in front of a pink wall with green dots on it. This fun and playful scene appears to be the focus of the picture. ---- == Configuring your own model You can also create your own model based on any of the other models that you've downloaded or using any of the https://www.markhneedham.com/blog/2023/10/18/ollama-hugging-face-gguf-models/[GGUF files from Hugging Face^]. I'm gonna make a more creative version of the Mistral model by setting the temperature to 0.99, as shown below: [source, python] ---- modelfile=''' FROM mistral PARAMETER temperature 0.99 ''' ollama.create(model='creative-mistral', modelfile=modelfile) ---- The new model will be created almost instantly and is called `creative-mistral`. We can then call that one like this: [source, python] ---- stream = ollama.chat( model="creative-mistral", messages = [{ "role": "user", 'content': 'What is a Large Language Model in 3 bullet points?' }], stream=True ) for chunk in stream: print(chunk['message']['content'], end='', flush=True) ---- .Output [source, text] ---- * A large language model is a type of artificial intelligence (AI) system designed to understand and generate human-like text based on input data. * It is trained on vast amounts of text data using deep learning techniques, allowing it to learn patterns, context, and relationships within language. * Capable of generating coherent and contextually relevant responses or completions to textual prompts, they are used in various applications such as chatbots, content generation, translation, summarization, and more. ---- == Conclusion I'm super excited about this library being released and I think it makes Ollama even more useful than it already was. I'm definitely looking forward to playing around with this more over the coming weeks.
In this post, we'll learn how to use the Ollama library that was recently released on PyPi.
uploads/2024/01/ollama-pypi-banner.png
[ 0.023653971031308174, 0.022091738879680634, 0.00954507477581501, 0.031835444271564484, 0.08811398595571518, 0.03520730137825012, 0.022925814613699913, 0.04906746372580528, -0.02867758832871914, -0.002152840606868267, -0.011367697268724442, -0.0005259811296127737, -0.0752730444073677, 0.03256401792168617, -0.016217023134231567, 0.07529221475124359, 0.07399928569793701, 0.008623712696135044, 0.006512322463095188, 0.029374565929174423, 0.04250608757138252, 0.06896181404590607, 0.02069832570850849, 0.03407399728894234, -0.01211521029472351, 0.016901958733797073, 0.026678796857595444, -0.002440622542053461, -0.06326545774936676, -0.017920106649398804, 0.02569091133773327, -0.023260176181793213, -0.0010479766642674804, -0.010893840342760086, 0.03977762907743454, 0.012829056940972805, -0.012063582427799702, 0.017779620364308357, -0.0036185607314109802, 0.018711069598793983, -0.06033439189195633, 0.026485789567232132, -0.007345691788941622, 0.018993405625224113, -0.05453959107398987, -0.0008600369328632951, -0.03401811420917511, 0.02560177631676197, 0.017685458064079285, -0.01956816017627716, -0.07109297811985016, 0.03757207468152046, -0.026410195976495743, -0.005458976607769728, -0.007717187516391277, 0.03706137090921402, 0.013285943306982517, -0.0844036117196083, 0.011598415672779083, -0.03039231151342392, -0.00680579524487257, 0.009461215697228909, 0.02364996261894703, 0.0135464146733284, -0.003382164752110839, -0.019107550382614136, 0.01658066362142563, 0.05365544930100441, -0.07405909150838852, -0.008344262838363647, -0.013221243396401405, 0.010120058432221413, -0.06059915944933891, -0.012903339229524136, 0.04322228580713272, -0.05399435758590698, -0.02895297296345234, 0.059514958411455154, 0.035889461636543274, 0.015461867675185204, -0.003891784930601716, -0.013201946392655373, 0.04050956666469574, 0.04946865886449814, -0.019346602261066437, -0.03204147145152092, -0.03809688240289688, -0.020053284242749214, -0.0816451758146286, 0.04461505636572838, -0.006075741723179817, -0.05806023254990578, 0.0293816477060318, 0.01375322975218296, 0.00977233424782753, 0.002290233736857772, 0.004201595205813646, -0.010857148095965385, 0.0036666588857769966, -0.006667837966233492, -0.015375293791294098, -0.03806684538722038, 0.016981465741991997, 0.02138584852218628, -0.09046585857868195, -0.014417792670428753, -0.020736386999487877, -0.004187814891338348, 0.010275605134665966, 0.014024704694747925, -0.0037788026966154575, -0.011523429304361343, -0.029305201023817062, -0.004284242633730173, -0.061682332307100296, 0.07362855225801468, 0.020571738481521606, -0.02075965143740177, -0.01167524978518486, 0.04351908341050148, 0.052386537194252014, 0.03070429526269436, -0.036344487220048904, 0.08514027297496796, 0.006936976686120033, 0.052441950887441635, -0.012933427467942238, 0.05177102982997894, 0.0014795131282880902, -0.05374382063746452, 0.013610562309622765, 0.06184683367609978, -0.010739768855273724, 0.015945563092827797, 0.018598772585392, -0.0060152229852974415, -0.0024984204210340977, 0.00014298073074314743, 0.07001028954982758, 0.012973316945135593, 0.0007595662027597427, -0.014354081824421883, -0.014010488986968994, 0.025283370167016983, 0.015221872366964817, 0.018699342384934425, 0.00013911550922784954, -0.04141409695148468, -0.041837193071842194, -0.01312109176069498, 0.014050698839128017, 0.016124989837408066, 0.03169063851237297, -0.03767196089029312, 0.020734598860144615, 0.08899630606174469, 0.03909522667527199, -0.0033521379809826612, -0.003906276077032089, 0.013675814494490623, 0.026865055784583092, 0.032559849321842194, 0.0038182446733117104, 0.05802074819803238, 0.012771060690283775, -0.026844000443816185, -0.0014376483159139752, 0.029891274869441986, -0.010667504742741585, -0.001523733139038086, -0.05461101606488228, -0.04713529720902443, 0.05249664932489395, -0.0324891097843647, -0.047662198543548584, 0.04330809414386749, 0.10460031777620316, 0.03631817176938057, 0.05045203119516373, 0.01675315946340561, -0.08405915647745132, 0.0071155354380607605, -0.0031666818540543318, 0.00979729276150465, 0.0346711166203022, -0.008793862536549568, 0.09681369364261627, 0.0026523892302066088, 0.013937283307313919, 0.015896541997790337, -0.03369424492120743, -0.033423230051994324, -0.018006889149546623, -0.00584926875308156, 0.07669572532176971, -0.02674958109855652, 0.0011780974455177784, 0.04684127867221832, 0.017106806859374046, 0.06011158600449562, 0.020949989557266235, -0.007164517883211374, 0.011996807530522346, -0.05606206879019737, -0.07260655611753464, 0.018611924722790718, 0.03488321229815483, -0.012868842110037804, -0.0064388965256512165, 0.0004949801368638873, -0.03808654472231865, -0.023344237357378006, 0.03634803742170334, -0.020320763811469078, 0.03272828459739685, 0.006772433407604694, 0.015037599951028824, -0.014516173861920834, 0.0364518016576767, -0.044188596308231354, 0.00917382538318634, -0.012826094403862953, -0.032173171639442444, -0.015457619912922382, -0.008047327399253845, 0.12045643478631973, 0.06096509471535683, -0.05553440377116203, -0.05258823558688164, 0.014541920274496078, 0.028543885797262192, -0.06067977845668793, 0.005665170028805733, -0.0006494191475212574, -0.03074606880545616, -0.0030049276538193226, -0.03264442831277847, -0.04585840925574303, 0.0261304322630167, -0.04564322903752327, -0.029134739190340042, 0.07045172154903412, -0.005574604030698538, 0.04552976414561272, 0.006293750833719969, -0.02725336141884327, -0.006486209575086832, -0.03487364575266838, -0.05666673928499222, 0.0032706724014133215, 0.006228098180145025, -0.013354008086025715, 0.03533478453755379, -0.0287819504737854, -0.03714136406779289, -0.04338252171874046, -0.045707669109106064, 0.038572538644075394, 0.05456238240003586, 0.06080884113907814, -0.009431784972548485, 0.03805907070636749, -0.005936308763921261, 0.025454973801970482, -0.00891209114342928, -0.0415760762989521, -0.04190470650792122, -0.03605577349662781, 0.006997247692197561, 0.020928088575601578, 0.021414276212453842, 0.037034425884485245, 0.008066587150096893, 0.008104898035526276, 0.042447529733181, 0.02651122584939003, 0.04036293551325798, 0.005064698401838541, -0.017758652567863464, -0.03932565450668335, -0.015200684778392315, 0.0828302651643753, -0.030703967437148094, -0.021091407164931297, -0.036930203437805176, -0.05028092861175537, 0.03145063668489456, -0.08375220745801926, -0.04573454335331917, -0.01555649098008871, 0.008729038760066032, 0.026821769773960114, 0.013308198191225529, 0.011192101053893566, 0.01684516668319702, 0.01007989700883627, 0.0010453029535710812, 0.01600014604628086, -0.0194109994918108, 0.028219349682331085, -0.011449097655713558, 0.022641537711024284, 0.04003490135073662, -0.00045200149179436266, -0.003905896097421646, -0.053987767547369, 0.03144138678908348, -0.05232219770550728, -0.28187695145606995, 0.013714429922401905, 0.007101572584360838, -0.04750489071011543, 0.00844348780810833, -0.014947387389838696, -0.007375742308795452, -0.05776709318161011, -0.014153601601719856, 0.018043706193566322, -0.0011802405351772904, -0.03219297155737877, -0.02578299678862095, 0.03292660415172577, 0.029363254085183144, 0.012497743591666222, -0.0033837701193988323, -0.0138965779915452, 0.010326597839593887, 0.0359712652862072, -0.001728856354020536, -0.05056019127368927, -0.015311953611671925, 0.05237967520952225, 0.01761621981859207, 0.061127372086048126, -0.050942420959472656, 0.027901673689484596, -0.054630063474178314, -0.01966618187725544, -0.0005178751307539642, -0.01596998982131481, -0.01752161793410778, -0.0030955399852246046, -0.007547525689005852, -0.01839994639158249, 0.06620222330093384, 0.012999232858419418, 0.040377624332904816, -0.0032000408973544836, -0.011714829131960869, -0.037459105253219604, 0.012867240235209465, 0.02556057833135128, 0.09230135381221771, -0.01699559949338436, -0.102288156747818, -0.007570221088826656, -0.04541715607047081, 0.06609660387039185, -0.050082940608263016, -0.04689427837729454, -0.018312465399503708, 0.04585879668593407, -0.004193023778498173, 0.0014584095915779471, -0.008907687850296497, -0.004672570154070854, -0.04932616278529167, -0.030894674360752106, 0.0021507209166884422, -0.018532173708081245, -0.04376629367470741, -0.05010854825377464, 0.012950267642736435, -0.07045784592628479, -0.02610781230032444, -0.011142653413116932, 0.08497197926044464, 0.046760786324739456, -0.053735654801130295, -0.009570644237101078, -0.03437517210841179, -0.09413044154644012, 0.025630775839090347, -0.008854178711771965, -0.022197190672159195, 0.0029906409326940775, -0.013891900889575481, 0.06529907137155533, -0.041377902030944824, -0.05608191713690758, 0.032261256128549576, 0.011056749150156975, 0.0016029650578275323, -0.013219930231571198, 0.017301468178629875, -0.009632201865315437, 0.005791175179183483, 0.0016895263688638806, 0.06714936345815659, -0.01493134442716837, -0.01370245311409235, -0.0075379530899226665, -0.018477432429790497, -0.0019605455454438925, 0.02223731391131878, 0.008586016483604908, 0.02848418429493904, 0.057798393070697784, 0.010550139471888542, -0.0604129321873188, -0.0019668848253786564, -0.03039662353694439, 0.0014884778065606952, 0.021092312410473824, -0.04300694912672043, -0.01670260727405548, 0.04086882621049881, -0.01646696776151657, -0.024167383089661598, -0.04889576509594917, 0.017421303316950798, -0.06109083071351051, -0.03659787401556969, -0.035789940506219864, 0.019545314833521843, 0.045661602169275284, 0.00829751044511795, -0.010029011406004429, -0.06252036988735199, 0.022755570709705353, 0.0001275586982956156, -0.01512298732995987, -0.05494479462504387, -0.0007029372500255704, 0.005628856830298901, -0.008413163013756275, 0.0047029536217451096, 0.004220002796500921, -0.014639855362474918, 0.02993880584836006, 0.04250504821538925, -0.06202589347958565, 0.01713215373456478, -0.029075056314468384, -0.032548632472753525, -0.021176671609282494, 0.009412399493157864, -0.0014211861416697502, -0.0014210789231583476, 0.012349704280495644, 0.015563813969492912, 0.017019785940647125, 0.046520479023456573, 0.019992399960756302, 0.03436165675520897, -0.011798875406384468, -0.011743769980967045, 0.029834425076842308, 0.0012768766609951854, -0.021263523027300835, 0.02885705977678299, -0.021443208679556847, 0.0023024254478514194, -0.021783532574772835, 0.006022287532687187, -0.025162385776638985, -0.008266354911029339, -0.0336386077105999, 0.009831695817410946, -0.038849085569381714, -0.026028329506516457, 0.012960892170667648, 0.013380065560340881, 0.04594281688332558, 0.013838229700922966, 0.013554727658629417, 0.033091433346271515, 0.0026639478746801615, 0.0375075563788414, 0.008174973540008068, -0.028853971511125565, 0.0027770805172622204, -0.008369232527911663, -0.029627250507473946, 0.001962499227374792, 0.008826754055917263, 0.01895194873213768, 0.023408610373735428, -0.0055924393236637115, -0.030531512573361397, 0.02387912943959236, -0.01757253333926201, 0.029168343171477318, 0.019376633688807487, -0.04378262162208557, -0.02719302661716938, -0.010885218158364296, -0.017067350447177887, -0.01958923600614071, 0.016024593263864517, -0.008742265403270721, -0.006247268058359623, -0.025160375982522964, -0.08346287161111832, 0.013788443990051746, 0.00883936882019043, 0.016547657549381256, -0.0036219549365341663, -0.039390016347169876, -0.012518311850726604, -0.044383615255355835, 0.036238811910152435, 0.06101639196276665, -0.07847168296575546, 0.010498513467609882, 0.0037232746835798025, -0.00826918426901102, -0.008251567371189594, 0.01409712340682745, -0.05748932436108589, -0.004542867187410593, 0.011746829375624657, 0.03185040131211281, -0.04369146376848221, -0.025707798078656197, -0.02307824045419693, 0.007727861870080233, -0.004492645151913166, 0.005296465940773487, -0.01889820210635662, -0.013154491782188416, 0.0020684627816081047, -0.032367900013923645, 0.013191639445722103, -0.023926056921482086, 0.01366557739675045, 0.028268110007047653, -0.019745629280805588, 0.046013783663511276, -0.037547189742326736, 0.03557753935456276, 0.04584166780114174, -0.016199173405766487, 0.0029662151355296373, -0.05718899518251419, -0.015674248337745667, -0.007693246938288212, 0.03681982308626175, 0.009878848679363728, 0.008904353715479374, -0.05240483954548836, -0.014024034142494202, -0.015952592715620995, 0.017222758382558823, -0.006898620631545782, -0.01618470996618271, 0.021296508610248566, 0.04287533462047577, 0.003749810392037034, -0.0071416026912629604, 0.0057556345127522945, -0.03592246025800705, 0.05375801399350166, -0.06001203879714012, -0.020540427416563034, -0.003680205438286066, -0.027290619909763336, 0.04212785139679909, 0.012421968393027782, 0.026000777259469032, -0.06272480636835098, 0.046248480677604675, 0.02747729979455471, 0.028249438852071762, 0.04680464416742325, -0.008241604082286358, 0.04146209731698036, -0.03300848230719566, 0.0006556884618476033, -0.07694704085588455, -0.016485903412103653, 0.017176294699311256, 0.007388534024357796, -0.03455064073204994, 0.003634353866800666, -0.061140820384025574, 0.05763081833720207, -0.07598062604665756, -0.026419537141919136, 0.047101300209760666, 0.015934184193611145, -0.011929559521377087, 0.020546594634652138, -0.03602781146764755, 0.03614140674471855, 0.04117000475525856, -0.03293842822313309, 0.004608550108969212, -0.014179093763232231, 0.07268067449331284, -0.011031960137188435, 0.04150426387786865, 0.0035164833534508944, 0.00327578978613019, 0.0558570921421051, 0.030549611896276474, 0.0008473893394693732, 0.032669421285390854, -0.00023873172176536173, 0.054411813616752625, 0.025028180330991745, 0.018830489367246628, -0.003125067800283432, 0.013517851009964943, -0.0020885923877358437, -0.062439534813165665, 0.03939007222652435, -0.011771058663725853, -0.007682292256504297, -0.0634555071592331, 0.06060263141989708, 0.013720317743718624, -0.012111411429941654, -0.024457966908812523, 0.022990677505731583, -0.05552655830979347, -0.02093605138361454, -0.031406380236148834, -0.006250852718949318, -0.04252356290817261, 0.06157658249139786, -0.012987646274268627, 0.009873395785689354, 0.05614536628127098, -0.002131934044882655, -0.01083630695939064, 0.014953927136957645, 0.08157377690076828, 0.06985180824995041, 0.03338481858372688, -0.008120973594486713, 0.09176496416330338, -0.025642193853855133, -0.058174312114715576, 0.019369667395949364, -0.012745169922709465, -0.03789295628666878, -0.042205583304166794, 0.05635923519730568, 0.07066509872674942, -0.03692400082945824, 0.046201273798942566, -0.021389085799455643, -0.025804974138736725, 0.017253462225198746, 0.013407797552645206, 0.0036424261052161455, 0.039189696311950684, -0.001252570073120296, 0.020047510042786598, -0.023820975795388222, -0.04444223642349243, 0.050964854657649994, -0.015526670962572098, -0.0006259421352297068, 0.02825092151761055, -0.015300785191357136, 0.022599857300519943, 0.0044900765642523766, 0.037983186542987823, 0.09015701711177826, -0.04582566022872925, -0.004306791350245476, -0.016176268458366394, -0.0034670124296098948, 0.021304311230778694, 0.021087298169732094, -0.01914065144956112, -0.018026122823357582, -0.006666118744760752, -0.045290507376194, 0.009786940179765224, -0.017301300540566444, -0.0007855196599848568, 0.0380898118019104, -0.035533446818590164, -0.007845651358366013, 0.011800735257565975, 0.006592319812625647, -0.05355152115225792, -0.040647752583026886, -0.05814027041196823, -0.038868922740221024, -0.06180742383003235, 0.0013481463538482785, -0.0026150608900934458, 0.00842932891100645, -0.06169538199901581, -0.03579430654644966, -0.016523094847798347, 0.004191078245639801, 0.00650388840585947, -0.06719744950532913, -0.04499156028032303, 0.01769591122865677, 0.028801165521144867, -0.01057965587824583, 0.023743515834212303, 0.06790143251419067, 0.003296758746728301, -0.04301412031054497, -0.02597183734178543, 0.025686610490083694, 0.0389590822160244, 0.00432829512283206, 0.016198107972741127, -0.07878376543521881, 0.021137237548828125, 0.02614923007786274, -0.02158934809267521, -0.0695440024137497, 0.003643088974058628, 0.053506601601839066, 0.008951804600656033, 0.05118676275014877, -0.017009198665618896, -0.0009340349934063852, -0.057515714317560196, -0.030997401103377342, -0.01745649054646492, 0.0051937042735517025, 0.0428752563893795, -0.02645806595683098, 0.08527175337076187, 0.028617940843105316, 0.01267881877720356, -0.047351181507110596, -0.008343786001205444, 0.002870161086320877, -0.004135484807193279, -0.06125887855887413, -0.015841931104660034, -0.025384586304426193, -0.07268248498439789, -0.01581825688481331, 0.04016664996743202, -0.026726609095931053, -0.02894178032875061, 0.011247021146118641, -0.012176403775811195, -0.021206624805927277, 0.03702617436647415, -0.04331953823566437, -0.013545889407396317, -0.03741094842553139, -0.0010728591587394476, 0.013791563920676708, 0.04186311364173889, 0.004531207960098982, 0.014588896185159683, 0.02391808293759823, -0.040768321603536606, -0.011504440568387508, -0.004682397004216909, 0.03887013718485832, 0.03383570536971092, 0.0009934408590197563, 0.011311624199151993 ]
[ -0.08143410831689835, -0.015253125689923763, -0.018247978761792183, -0.019624391570687294, 0.05171714723110199, -0.04172085225582123, -0.055340204387903214, 0.02356555126607418, -0.006730757188051939, 0.004206542856991291, -0.009673782624304295, -0.06148746609687805, -0.02152729034423828, -0.02758735977113247, 0.06138903647661209, -0.012248475104570389, 0.0002998836862388998, -0.04074208065867424, -0.013883261010050774, 0.03278130665421486, 0.012667887844145298, -0.012542023323476315, -0.02250468172132969, 0.0025126684922724962, -0.013563028536736965, 0.028735797852277756, 0.04073634371161461, -0.01804567687213421, 0.01808198168873787, -0.22997452318668365, -0.020670991390943527, -0.00027270938153378665, 0.03886212036013603, -0.030094534158706665, -0.016975050792098045, 0.055457860231399536, -0.009727498516440392, 0.008283587172627449, -0.020890671759843826, 0.02278951182961464, 0.01724756509065628, 0.01581953652203083, -0.07737213373184204, -0.011358991265296936, 0.09108428657054901, -0.00045354882604442537, -0.02377820387482643, 0.009414556436240673, 0.0026356789749115705, -0.005430832505226135, -0.002656050957739353, 0.009039920754730701, -0.009762967005372047, -0.022342149168252945, -0.027837242931127548, -0.002967382548376918, 0.040836479514837265, 0.04562802612781525, 0.02717106230556965, 0.01428546104580164, -0.010387609712779522, -0.020298538729548454, -0.12068997323513031, 0.12376919388771057, -0.01782197877764702, 0.054404206573963165, 0.0007872548303566873, -0.01270478218793869, 0.01123452465981245, 0.05094567686319351, -0.018396884202957153, 0.002472825348377228, -0.017499510198831558, 0.0022998882923275232, -0.010411398485302925, -0.01528897974640131, 0.04637455940246582, 0.009337413124740124, 0.025092145428061485, -0.03117537312209606, -0.034306298941373825, 0.008077380247414112, -0.0049086688086390495, -0.02773735113441944, -0.019574420526623726, 0.017760777845978737, -0.022322023287415504, 0.061254896223545074, -0.011169579811394215, 0.005817254073917866, -0.016450872644782066, -0.014408856630325317, 0.0350814051926136, 0.014545046724379063, -0.0721849650144577, -0.027339864522218704, -0.007117556873708963, -0.0006170684937387705, -0.03792363777756691, 0.47108644247055054, -0.024622304365038872, -0.019423699006438255, 0.07177085429430008, 0.018898140639066696, 0.045411452651023865, 0.007587550673633814, -0.018323350697755814, -0.019836345687508583, -0.015473775565624237, 0.0030939849093556404, 0.05333342403173447, 0.024571193382143974, 0.07818371057510376, -0.0857008844614029, 0.015221642330288887, -0.03947507590055466, -0.021060064435005188, 0.02344460040330887, -0.003639217931777239, -0.0012092015240341425, -0.03172510117292404, -0.02375253476202488, 0.04190137982368469, 0.005472784396260977, 0.0292789489030838, -0.006414829753339291, 0.02925051748752594, 0.020121922716498375, 0.060138262808322906, 0.03512446582317352, 0.012975912541151047, -0.049301840364933014, -0.05240217223763466, -0.001470350194722414, 0.01212647370994091, 0.030862435698509216, 0.04894464090466499, -0.02663603238761425, 0.0031158311758190393, 0.020947514101862907, -0.041717518121004105, -0.03616349399089813, 0.062270622700452805, -0.03753485903143883, -0.012702342122793198, 0.10240338742733002, 0.037519004195928574, -0.028337853029370308, -0.043042026460170746, -0.014393134042620659, 0.005963414441794157, 0.03375046327710152, 0.015265397727489471, -0.014677777886390686, 0.04659988731145859, -0.004398680292069912, 0.08544870465993881, 0.005046915262937546, -0.05704634636640549, 0.0014751700218766928, -0.03171360120177269, -0.04348158836364746, -0.008373311720788479, 0.009934070520102978, 0.007161588408052921, -0.13736531138420105, -0.040944986045360565, 0.04162432998418808, -0.02838384546339512, -0.04727209731936455, 0.021579477936029434, 0.041700784116983414, -0.03791484609246254, 0.0159018412232399, 0.05723552405834198, -0.03425786271691322, -0.016239186748862267, -0.008761337958276272, 0.03631960228085518, 0.020296718925237656, -0.039692021906375885, -0.015530824661254883, -0.0010056269820779562, -0.015416178852319717, -0.046399421989917755, -0.07532726973295212, -0.03471484035253525, -0.04198611155152321, 0.0008351173019036651, -0.07017944753170013, -0.010784574784338474, -0.00844984594732523, -0.026741042733192444, 0.05744243413209915, -0.009871168062090874, 0.010771130211651325, -0.006757503841072321, -0.009438786655664444, 0.008381050080060959, -0.03405560180544853, -0.010552576743066311, 0.05162511765956879, -0.0013840415049344301, 0.04613501951098442, -0.025099262595176697, 0.0260707326233387, 0.04002004861831665, -0.04573740065097809, 0.07326466590166092, 0.028926799073815346, -0.06229887157678604, -0.0254953745752573, 0.041413892060518265, 0.009246375411748886, -0.015973899513483047, -0.016874300315976143, 0.005986974108964205, 0.01474006287753582, 0.018828166648745537, 0.009013156406581402, -0.010395132936537266, -0.07418914884328842, -0.0423913337290287, -0.332653284072876, -0.033410754054784775, -0.013866563327610493, 0.02932976745069027, 0.003047254169359803, -0.1079414039850235, 0.03788656368851662, -0.017216188833117485, 0.025386206805706024, 0.016603486612439156, 0.09442774206399918, -0.02086997963488102, 0.027990924194455147, -0.09164011478424072, -0.007445071823894978, 0.06316236406564713, -0.017492445185780525, -0.01604781299829483, -0.043153222650289536, 0.020238323137164116, -0.006333674769848585, -0.012525124475359917, -0.022522298619151115, -0.05662887915968895, -0.01964249275624752, -0.03133000433444977, 0.11149989813566208, 0.03874684125185013, 0.06067522242665291, -0.029775669798254967, 0.03707313910126686, 0.0314314179122448, -0.03324185311794281, -0.08822024613618851, -0.023639313876628876, -0.002603523200377822, 0.03229622170329094, 0.02812737599015236, 0.041094664484262466, -0.03101426362991333, -0.010803828947246075, 0.03966064751148224, -0.025324050337076187, -0.04798739030957222, -0.035796113312244415, 0.017918594181537628, 0.02608555369079113, -0.025880983099341393, -0.027668070048093796, 0.06386658549308777, -0.006356826052069664, 0.009836375713348389, 0.029829246923327446, 0.01991434022784233, -0.04788704961538315, -0.044908955693244934, -0.08207613229751587, -0.010403907857835293, -0.000009532337571727112, -0.029188886284828186, 0.030166123062372208, 0.03286091238260269, 0.015514280647039413, -0.09347141534090042, -0.012465416453778744, -0.005921308882534504, -0.011691447347402573, -0.04292095825076103, 0.06851780414581299, -0.010434023104608059, 0.0011093345237895846, 0.09983290731906891, -0.006042162422090769, 0.018804626539349556, 0.049081943929195404, 0.03884927183389664, 0.03023083508014679, 0.04668261110782623, 0.006543492898344994, 0.019707631319761276, -0.002932994393631816, 0.018624743446707726, -0.0012975267600268126, -0.007729621604084969, 0.0007579015218652785, 0.03800280764698982, -0.036666326224803925, -0.031214790418744087, 0.020467130467295647, -0.006384535226970911, -0.01953689008951187, 0.01224065013229847, 0.012146925553679466, -0.03239091485738754, 0.054495882242918015, 0.02692389488220215, -0.24323561787605286, 0.04576925188302994, 0.08318599313497543, 0.08418962359428406, -0.011125925928354263, -0.01040999498218298, 0.02181360498070717, -0.07625684142112732, 0.0009464816539548337, -0.0005094099906273186, 0.00600829254835844, 0.03997572883963585, 0.019100474193692207, 0.006065101828426123, 0.02447572909295559, -0.009963109157979488, 0.05573306232690811, -0.007945772260427475, -0.020001759752631187, 0.008708281442523003, -0.011149084195494652, -0.023887429386377335, 0.14683566987514496, 0.016240499913692474, -0.016441810876131058, 0.006307491101324558, 0.019947413355112076, 0.004854507744312286, 0.03467722237110138, 0.026040976867079735, 0.019690847024321556, 0.002969068242236972, 0.03121870756149292, 0.0046461219899356365, 0.03855940327048302, -0.052987296134233475, -0.05755564197897911, 0.03740627318620682, 0.030320491641759872, 0.005539630074054003, 0.012129235081374645, 0.03322882205247879, -0.07097706198692322, 0.007238249760121107, 0.030491037294268608, -0.011908289045095444, -0.004641670733690262, 0.013375193811953068, -0.06587366759777069, 0.016594231128692627, 0.0073127467185258865, -0.03475897014141083, -0.032048340886831284, 0.012402953580021858, 0.012469724752008915, 0.08156515657901764, -0.0032142065465450287, 0.007820374332368374, 0.050741516053676605, 0.018024694174528122, -0.005684309173375368, -0.0349443219602108, 0.10151214897632599, -0.0036857265513390303, 0.024302957579493523 ]
[ 0.015456421300768852, -0.019303424283862114, -0.0023430930450558662, -0.021554114297032356, 0.03323482349514961, 0.030782004818320274, -0.008032702840864658, 0.005350927356630564, 0.009360901080071926, -0.018715178593993187, -0.017743272706866264, 0.03374162316322327, -0.01758774183690548, -0.018029343336820602, 0.026478182524442673, -0.0024701235815882683, 0.028360290452837944, -0.022060919553041458, 0.013349546119570732, -0.00547198997810483, -0.0016108908457681537, 0.008779048919677734, 0.026610739529132843, 0.03095567412674427, -0.02233213186264038, 0.042698029428720474, -0.034020647406578064, 0.027048766613006592, 0.05710044875741005, -0.15733970701694489, 0.0030753142200410366, -0.017984949052333832, -0.007370031904429197, -0.005557182710617781, -0.023172082379460335, -0.018750041723251343, -0.03620963543653488, -0.02955012023448944, -0.050732553005218506, -0.018744364380836487, 0.043309908360242844, 0.006059689447283745, 0.0416388139128685, -0.0017799369525164366, 0.002908549038693309, -0.030873754993081093, -0.007075244560837746, -0.03538624197244644, 0.006149320863187313, -0.0027041141875088215, -0.06678888201713562, -0.01660739816725254, -0.007897044532001019, -0.011323961429297924, -0.0367714986205101, 0.013108252547681332, 0.0304153710603714, -0.023437079042196274, 0.03671177849173546, 0.008405502885580063, -0.007302751764655113, -0.020531456917524338, -0.015894269570708275, -0.007640905678272247, 0.03030608780682087, -0.02571750432252884, -0.009464779868721962, 0.0019210265018045902, -0.008469781838357449, 0.015444865450263023, -0.010299320332705975, 0.007756942883133888, -0.017836259678006172, 0.024239517748355865, -0.017856264486908913, -0.041127175092697144, 0.009727312251925468, -0.027569731697440147, -0.00024616593145765364, 0.017133474349975586, 0.0002589583455119282, -0.007679087109863758, 0.01639874279499054, 0.012000496499240398, 0.04210185632109642, -0.017026163637638092, -0.011428005993366241, 0.031083865091204643, 0.0221249982714653, -0.027459805831313133, -0.05436624214053154, 0.01940564438700676, -0.013456298969686031, 0.0070684924721717834, -0.05433505028486252, 0.0006414652452804148, 0.004520963411778212, -0.05080196633934975, -0.03479321300983429, 0.8495901226997375, 0.005424018017947674, -0.030608313158154488, 0.03145218640565872, 0.021725589409470558, -0.0036546846386045218, -0.00551233533769846, 0.02395731955766678, 0.007311065681278706, 0.008423120714724064, -0.023450497537851334, 0.015335544012486935, -0.024967582896351814, 0.02679942362010479, 0.009233160875737667, 0.014704719185829163, -0.005809091962873936, -0.010830751620233059, 0.01027024444192648, 0.010807674378156662, 0.030555183067917824, 0.008833682164549828, -0.016066187992691994, 0.044709715992212296, 0.01065665204077959, 0.000027719534045900218, -0.17125236988067627, -0.019053442403674126, -6.838214307298032e-33, 0.04790331795811653, -0.029340000823140144, -0.0034835604019463062, 0.01934932917356491, 0.02539278380572796, 0.02848641201853752, 0.02543703466653824, 0.008906989358365536, 0.012526627629995346, -0.038536347448825836, 0.018858976662158966, -0.019615687429904938, -0.020395807921886444, 0.0048169526271522045, 0.023571684956550598, 0.0013103687670081854, 0.016924956813454628, 0.032851409167051315, 0.005313160363584757, -0.01162412017583847, 0.03781687468290329, 0.0409146212041378, 0.009944992139935493, 0.0182988028973341, -0.04949146881699562, 0.021463287994265556, 0.0037196618504822254, 0.0030983579345047474, 0.006558944471180439, -0.03803303837776184, 0.010692044161260128, -0.004406023304909468, -0.011806176044046879, -0.041694458574056625, 0.03355574235320091, -0.038760434836149216, -0.09084075689315796, 0.01195969246327877, -0.0038946799468249083, -0.0062861330807209015, -0.02163458615541458, 0.00691888527944684, -0.035308487713336945, -0.05045690760016441, -0.054345421493053436, 0.012278036214411259, 0.023573407903313637, 0.020294247195124626, -0.006027624476701021, 0.008050555363297462, 0.020560773089528084, -0.01543792150914669, -0.02773039974272251, -0.053259726613759995, 0.001466035027988255, 0.040183793753385544, 0.023672958835959435, 0.020180221647024155, 0.016169358044862747, -0.02335105650126934, -0.003964479546993971, 0.006031495984643698, 0.011123484931886196, 0.015588670037686825, 0.00019009150855708867, 0.00807682704180479, 0.045545853674411774, 0.007802946958690882, 0.017157895490527153, 0.004409012384712696, -0.053587134927511215, 0.028573650866746902, -0.03727182373404503, -0.01480594091117382, 0.03211503103375435, -0.02680416777729988, -0.0174321997910738, -0.019961608573794365, 0.019132794812321663, 0.04349704459309578, 0.025095198303461075, -0.021706530824303627, 0.021844908595085144, -0.034726936370134354, -0.019508153200149536, -0.033358968794345856, 0.022650491446256638, -0.016394788399338722, -0.0202617347240448, -0.0022394752595573664, 0.03789885714650154, 0.019301405176520348, -0.004987969528883696, -0.0017728840466588736, -0.013929187320172787, 6.817840786146374e-33, -0.0030572772957384586, 0.03412860259413719, -0.002329271286725998, 0.010825760662555695, 0.036719582974910736, 0.0011248053051531315, 0.026502182707190514, 0.028349343687295914, -0.02864685282111168, 0.0015599854523316026, -0.010279467329382896, -0.025331571698188782, -0.05694475769996643, -0.0010154836345463991, 0.049533601850271225, -0.030902670696377754, -0.022374000400304794, -0.008859113790094852, 0.015471668913960457, -0.02235436625778675, -0.02818628028035164, -0.005580241326242685, 0.009127895347774029, 0.0038225091993808746, 0.016255363821983337, 0.03484044596552849, 0.01948469504714012, 0.011499070562422276, 0.008812536485493183, 0.030584853142499924, 0.018616212531924248, 0.002228533150628209, -0.02903892658650875, 0.0050845579244196415, -0.0026343902572989464, 0.046063993126153946, 0.02221073769032955, -0.009032403118908405, -0.029362425208091736, 0.013105190359055996, 0.026471510529518127, 0.037443000823259354, -0.009688111953437328, -0.0243802722543478, -0.011584009975194931, 0.009475097991526127, -0.006780760362744331, 0.0060373516753315926, -0.01619754172861576, -0.014563394710421562, -0.0009836072567850351, 0.0008817184716463089, 0.020675424486398697, 0.0023872784804552794, 0.0038517822977155447, -0.02195216715335846, -0.027474381029605865, 0.05025789514183998, -0.0035742917098104954, -0.014583873562514782, -0.028824763372540474, -0.02797030285000801, -0.01948373205959797, -0.012673658318817616, -0.029924757778644562, -0.00040203751996159554, -0.01680944487452507, 0.02609051950275898, -0.031052257865667343, 0.011523055844008923, 0.019128188490867615, -0.020146148279309273, 0.009229910559952259, 0.042312003672122955, 0.007672552950680256, 0.006398804485797882, -0.013243317604064941, -0.0007230358314700425, -0.011810079216957092, 0.006993435323238373, -0.006004235241562128, -0.00764514459297061, -0.00403749430552125, 0.009943092241883278, 0.024556055665016174, 0.03642026335000992, 0.010642314329743385, 0.012192259542644024, 0.035565152764320374, 0.004403057508170605, 0.02145180106163025, 0.006194783374667168, 0.027632592245936394, 0.02054544910788536, 0.04236504063010216, -1.2604861154841274e-8, -0.04256875440478325, -0.026961777359247208, -0.022520780563354492, 0.036642223596572876, -0.015598024241626263, 0.01538480632007122, 0.008056736551225185, -0.007400952745229006, 0.015285973437130451, -0.007789469324052334, 0.04893369600176811, -0.014598867855966091, -0.002403508173301816, 0.022754834964871407, -0.004728767089545727, 0.0028565821703523397, -0.0020925146527588367, -0.005308391992002726, 0.032248347997665405, -0.003366017248481512, 0.04102182760834694, 0.013841749168932438, 0.04962607100605965, -0.01152202021330595, -0.02029564417898655, -0.01024662796407938, -0.00791427493095398, -0.06874816119670868, -0.035800736397504807, -0.0013992900494486094, -0.0034883436746895313, -0.02810833416879177, -0.014821098186075687, -0.03178997337818146, -0.0117708845064044, -0.02717769332230091, 0.012943558394908905, -0.018917614594101906, 0.03300439938902855, 0.015050397254526615, -0.002512809354811907, -0.01059380266815424, 0.025568189099431038, -0.039209626615047455, 0.0010823191842064261, 0.008517012931406498, 0.008734489791095257, -0.012284822762012482, 0.0026318461168557405, -0.029752274975180626, -0.0008370360010303557, 0.00046354380901902914, -0.024899901822209358, 0.051088716834783554, 0.040128469467163086, -0.02043517492711544, 0.005335411988198757, 0.0015181120252236724, -0.04383905604481697, -0.0014232854591682553, 0.042356159538030624, 0.015167124569416046, -0.013836260885000229, -0.02807549387216568 ]
ollama-now-on-pypi
https://markhneedham.com/blog/2024/01/28/ollama-now-on-pypi
false
2024-01-19 00:44:37
ClickHouse: Configure default output format
[ "clickhouse", "til" ]
[ "TIL" ]
:icons: font When running queries with https://clickhouse.com/docs/en/operations/utilities/clickhouse-local[ClickHouse Local^], the results are rendered back to the screen in a table format in blocks. This default format is called https://clickhouse.com/docs/en/interfaces/formats#prettycompact[`PrettyCompact`] and most of the time this works fine, but sometimes you can end up with multiple mini-tables. In this blog post, we're going to learn how to change the default format so that all the results show in one table. But first, let's see how the problem manifests. I've been playing around with the Kaggle https://www.kaggle.com/datasets/imperialwarrior/singapore-crypto?select=metadata.csv[Singaporean Cryptocurrency / Crypto Dataset^] and I wrote the following query after downloading the ZIP file that contains all the data. [source, sql] ---- from file('data/Singapore Crypto.zip :: metadata.csv', CSVWithNames) select * LIMIT 10; ---- .Output [source, text] ---- ┌─Coin Pair Name──────┬─Coin Pair Symbol─┬─Filename──────┐ │ Bitcoin SGD │ BTC-SGD │ BTC-SGD.csv │ │ Ethereum SGD │ ETH-SGD │ ETH-SGD.csv │ │ Tether USDt SGD │ USDT-SGD │ USDT-SGD.csv │ │ BNB SGD │ BNB-SGD │ BNB-SGD.csv │ │ USD Coin SGD │ USDC-SGD │ USDC-SGD.csv │ │ XRP SGD │ XRP-SGD │ XRP-SGD.csv │ │ Lido Staked ETH SGD │ STETH-SGD │ STETH-SGD.csv │ │ Cardano SGD │ ADA-SGD │ ADA-SGD.csv │ │ Dogecoin SGD │ DOGE-SGD │ DOGE-SGD.csv │ └─────────────────────┴──────────────────┴───────────────┘ ┌─Coin Pair Name───┬─Coin Pair Symbol─┬─Filename─────┐ │ Wrapped TRON SGD │ WTRX-SGD │ WTRX-SGD.csv │ └──────────────────┴──────────────────┴──────────────┘ ---- You can see that the results are rendered in two different tables. We can fix that by specifying `FORMAT PrettyMonoBlock` at the end of the query, like this: [source, sql] ---- from file('data/Singapore Crypto.zip :: metadata.csv', CSVWithNames) select * LIMIT 10 FORMAT PrettyMonoBlock; ---- We then get a single table result: .Output [source, text] ---- ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓ ┃ Coin Pair Name ┃ Coin Pair Symbol ┃ Filename ┃ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩ │ Bitcoin SGD │ BTC-SGD │ BTC-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ Ethereum SGD │ ETH-SGD │ ETH-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ Tether USDt SGD │ USDT-SGD │ USDT-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ BNB SGD │ BNB-SGD │ BNB-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ USD Coin SGD │ USDC-SGD │ USDC-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ XRP SGD │ XRP-SGD │ XRP-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ Lido Staked ETH SGD │ STETH-SGD │ STETH-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ Cardano SGD │ ADA-SGD │ ADA-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ Dogecoin SGD │ DOGE-SGD │ DOGE-SGD.csv │ ├─────────────────────┼──────────────────┼───────────────┤ │ Wrapped TRON SGD │ WTRX-SGD │ WTRX-SGD.csv │ └─────────────────────┴──────────────────┴───────────────┘ ---- So far, so good. But how can we make `PrettyMonoBlock` the default format? When using ClickHouse Local or the ClickHouse Client, we can provide a config file in XML or YAML format. The setting we need to define is `format` and the value should be `PrettyMonoBlock`: .config-local.xml [source, xml] ---- <?xml version="1.0" ?> <clickhouse> <format>PrettyMonoBlock</format> </clickhouse> ---- or .config-local.yaml [source, xml] ---- format: PrettyMonoBlock ---- We can then have ClickHouse Local/Client use the config by passing the file using the `-C` parameter. [source, bash] ---- ./clickhouse local -m -C config-local.xml ---- or [source, bash] ---- ./clickhouse client -m -C config-local.yaml ---- In addition, if you're using ClickHouse Local, it will automatically use a config file named `config.xml`. Once we've got that config setup, we can re-run the query and it will return us a single table without needing to specify the format in the query.
In this post, we'll learn how to configure the default output format used by ClickHouse.
uploads/2024/01/clickhouse-default-format-banner.png
[ -0.0033540346194058657, 0.013249337673187256, -0.019277185201644897, 0.049159128218889236, 0.11511687934398651, 0.02151157334446907, 0.00782359391450882, 0.040691111236810684, -0.0063721733167767525, -0.011613340117037296, -0.0199794452637434, -0.03052428364753723, -0.08228836208581924, 0.02390953339636326, 0.003942398354411125, 0.07720335572957993, 0.06472967565059662, 0.023559516295790672, 0.01955696940422058, 0.003465342568233609, 0.0031650615856051445, 0.04318481311202049, -0.008741329424083233, 0.02998550981283188, 0.020038295537233353, 0.025720054283738136, -0.004045942332595587, -0.01902110129594803, -0.04102158546447754, -0.021381216123700142, 0.044521186500787735, -0.025403887033462524, 0.006392460782080889, 0.012679335661232471, 0.0195478443056345, -0.02040618099272251, -0.02130752243101597, 0.006518519017845392, 0.001919114263728261, 0.006437929812818766, -0.07344592362642288, 0.014448127709329128, 0.008396643213927746, 0.0297244805842638, -0.02019745297729969, -0.013377384282648563, -0.034450139850378036, -0.0071743568405508995, -0.04518228769302368, -0.007328756153583527, -0.022240914404392242, 0.052158426493406296, -0.011886782944202423, -0.03281145170331001, 0.019625118002295494, 0.053024351596832275, 0.018506484106183052, -0.053382694721221924, 0.003003156976774335, -0.03103143535554409, -0.0153428316116333, 0.008598844520747662, 0.014600587077438831, 0.04357682168483734, 0.009842739440500736, -0.03172577917575836, -0.008701513521373272, 0.04384380951523781, -0.040703192353248596, -0.01958695985376835, 0.02082197740674019, 0.02167876996099949, -0.0036158256698399782, -0.0193464532494545, 0.005692091770470142, -0.02213440090417862, -0.03497263789176941, 0.06255298107862473, 0.03291131183505058, 0.0441974475979805, 0.016699086874723434, 0.020080208778381348, 0.04484334960579872, 0.045673854649066925, 0.013552535325288773, -0.05235747620463371, -0.045623909682035446, -0.02850327640771866, -0.03568965941667557, 0.056179244071245193, 0.004685945808887482, -0.03823637217283249, 0.013418758288025856, 0.024703331291675568, -0.02668594755232334, 0.013687518425285816, 0.0061942110769450665, -0.0022513193544000387, 0.030614355579018593, -0.003167616669088602, -0.060150112956762314, -0.013643456622958183, 0.055908408015966415, 0.013644843362271786, -0.06913091242313385, 0.032091908156871796, -0.03565390780568123, -0.03251192718744278, 0.02899227663874626, 0.025034645572304726, -0.016476759687066078, -0.024014072492718697, -0.026003042235970497, 0.011376790702342987, -0.08184165507555008, 0.059805624186992645, 0.0032861989457160234, -0.02509898878633976, -0.03195344656705856, -0.008825515396893024, 0.059002071619033813, 0.02739921770989895, -0.05395097658038139, 0.08356664329767227, 0.016591032966971397, 0.031178466975688934, 0.008178950287401676, 0.03964586555957794, -0.005346540827304125, -0.0609181746840477, -0.008092088624835014, 0.04896688088774681, -0.005092910956591368, 0.020111361518502235, -0.020388737320899963, -0.008915950544178486, 0.01982489414513111, -0.012253571301698685, 0.05788165703415871, -0.005351095926016569, 0.01392363291233778, -0.023792587220668793, -0.0005443983245640993, 0.022284040227532387, 0.039404064416885376, 0.02625415287911892, -0.003028263570740819, -0.0779254212975502, -0.05291443690657616, 0.022441281005740166, 0.005043283104896545, 0.03385943919420242, 0.07056046277284622, -0.03207867965102196, 0.018398771062493324, 0.10061032325029373, 0.029702775180339813, -0.004423879086971283, 0.010186639614403248, -0.018841847777366638, 0.016393262892961502, 0.009792393073439598, 0.011267966590821743, 0.053619250655174255, 0.02961735799908638, 0.003341267118230462, -0.0014305980876088142, 0.04884856939315796, -0.04585883766412735, 0.025324570015072823, -0.06105940043926239, -0.06106754019856453, 0.07960604131221771, -0.035799071192741394, -0.0083510996773839, 0.0342915803194046, 0.07856982201337814, 0.051420971751213074, 0.02230081707239151, 0.005674601532518864, -0.08858934044837952, 0.017021816223859787, -0.013014663010835648, -0.016566958278417587, 0.026059886440634727, -0.008826375007629395, 0.08646570891141891, 0.02850491553544998, -0.020235393196344376, 0.03833295777440071, -0.07465112209320068, -0.06279796361923218, -0.014368066564202309, -0.010625823400914669, 0.06224362924695015, -0.05200999230146408, 0.017041662707924843, 0.06018884479999542, 0.041868776082992554, 0.028071584179997444, -0.01033331174403429, 0.009311570785939693, 0.028753437101840973, -0.05156561732292175, -0.06891846656799316, 0.030039310455322266, 0.05091540887951851, -0.023454906418919563, 0.005941868759691715, -0.0012517636641860008, -0.020139556378126144, 0.009870290756225586, 0.029147475957870483, 0.01729133538901806, 0.052382104098796844, 0.004329555202275515, 0.023734387010335922, -0.005752467550337315, 0.04312890022993088, -0.04210084676742554, 0.03707495704293251, 0.017408473417162895, -0.022191092371940613, -0.018141426146030426, -0.006868734024465084, 0.11735817790031433, 0.06272641569375992, -0.003658983623608947, -0.04215275123715401, 0.029133114963769913, 0.02233503945171833, -0.04746207967400551, 0.023584965616464615, -0.06363262981176376, 0.004952392540872097, -0.007933172397315502, -0.024832285940647125, -0.026297658681869507, 0.02331005595624447, -0.023718954995274544, 0.030067382380366325, 0.04850101098418236, -0.006520538590848446, 0.022248122841119766, 0.01872164011001587, -0.015929987654089928, -0.0033366759307682514, -0.056141044944524765, -0.052163831889629364, -0.009578208439052105, 0.015381758101284504, -0.008843395859003067, 0.029419198632240295, -0.04818874970078468, -0.004383624065667391, -0.024056049063801765, -0.033098455518484116, 0.04124188423156738, 0.03258078545331955, 0.04448996111750603, -0.03606230020523071, 0.04383952543139458, -0.006846120581030846, 0.0015710562001913786, -0.007585326675325632, -0.03320752829313278, -0.028475699946284294, -0.018781723454594612, 0.02563931606709957, 0.0038006368558853865, 0.03213055431842804, 0.02191859669983387, -0.01916934922337532, -0.01940670609474182, 0.01861964911222458, -0.025146974250674248, 0.01877717673778534, -0.0010972436284646392, 0.009238095954060555, -0.026393314823508263, -0.01634666882455349, 0.07429248839616776, -0.05544031411409378, -0.01488167978823185, -0.02547316439449787, -0.0649271309375763, 0.027795689180493355, -0.07961741834878922, -0.03769785165786743, -0.01613299548625946, 0.043995752930641174, 0.046431273221969604, -0.008059833198785782, 0.019184861332178116, 0.07121359556913376, 0.01914445497095585, 0.012230423279106617, 0.018048221245408058, 0.003005202393978834, 0.047920193523168564, 0.0277657900005579, 0.027156945317983627, 0.062153641134500504, -0.006538082845509052, -0.0069491202011704445, -0.05772394686937332, 0.002728088293224573, -0.04186706617474556, -0.26499393582344055, 0.024088138714432716, -0.032629016786813736, -0.037019699811935425, 0.012286782264709473, -0.012613117694854736, 0.01487746275961399, -0.03819485008716583, -0.026892900466918945, 0.016830645501613617, -0.01801873929798603, -0.0383322611451149, 0.003068320220336318, 0.0021421436686068773, 0.01375613734126091, 0.04060054570436478, -0.005553706549108028, -0.028077397495508194, 0.011379122734069824, 0.014395100995898247, 0.004829131532460451, -0.03628656268119812, 0.008088823407888412, 0.05284271389245987, 0.021668611094355583, 0.059859756380319595, -0.05140002816915512, 0.02664140984416008, -0.04224780201911926, -0.045008208602666855, 0.018209585919976234, -0.019568925723433495, -0.0050413035787642, 0.013815371319651604, -0.006032793782651424, -0.010226720944046974, 0.040289975702762604, -0.02121848240494728, 0.006215152330696583, 0.008875276893377304, -0.017445381730794907, -0.009762484580278397, 0.010516870766878128, 0.018867768347263336, 0.07976900786161423, -0.019237296655774117, -0.04771842062473297, 0.005186520516872406, -0.048410072922706604, 0.06909259408712387, -0.013113587163388729, -0.03369062766432762, -0.053641799837350845, 0.059927526861429214, -0.023302938789129257, 0.02398010715842247, -0.006102061830461025, -0.030577771365642548, -0.0370243564248085, -0.025611836463212967, 0.014333323575556278, -0.04586013779044151, -0.027539297938346863, -0.04072035476565361, 0.014988545328378677, -0.06859797239303589, -0.05349712446331978, -0.009890107437968254, 0.0450768917798996, 0.07225582003593445, -0.02554234489798546, 0.003790184622630477, -0.006741155404597521, -0.10301116108894348, -0.007529626600444317, -0.025416331365704536, 0.021792087703943253, 0.020990025252103806, -0.02778291329741478, 0.05209284648299217, -0.013766747899353504, -0.03097161464393139, 0.030383510515093803, 0.016771594062447548, 0.008478160947561264, -0.042706847190856934, -0.0005708931712433696, 0.019297296181321144, -0.04338570684194565, -0.006096006371080875, 0.04098089784383774, -0.03822532668709755, -0.018620507791638374, -0.008047529496252537, -0.03194347396492958, 0.012567820958793163, 0.013567185960710049, -0.0039342232048511505, 0.009910187683999538, 0.03008941188454628, 0.04281507432460785, -0.04807587340474129, -0.001527857268229127, -0.051633890718221664, -0.018233761191368103, -0.00938291847705841, -0.019964221864938736, 0.02677045203745365, 0.02340683527290821, 0.023470990359783173, -0.02591564692556858, -0.03757714107632637, 0.03053337335586548, -0.04719720408320427, 0.008034635335206985, -0.022949133068323135, 0.004464176949113607, 0.01445064414292574, 0.025617389008402824, -0.0336165688931942, -0.053682200610637665, 0.02124118246138096, 0.011986862868070602, -0.0347239188849926, -0.04651821032166481, -0.011305196210741997, -0.02036367543041706, 0.004964343272149563, 0.006907969247549772, -0.01698504015803337, -0.012625312432646751, 0.005685179028660059, 0.016113191843032837, -0.07295414060354233, 0.05147242173552513, -0.016173558309674263, -0.014803838916122913, -0.01098527479916811, 0.006444046273827553, 0.006866293493658304, 0.01807313784956932, -0.016667364165186882, 0.02606184594333172, 0.008128815330564976, 0.03064952790737152, -0.02283135987818241, -0.015310890041291714, 0.021850867196917534, 0.027417432516813278, 0.003668188350275159, -0.02432175539433956, -0.03826750069856644, 0.03535553440451622, -0.042282380163669586, -0.023699916899204254, -0.033183224499225616, 0.007583195809274912, -0.016099601984024048, -0.019782910123467445, -0.04288559406995773, -0.006607893854379654, -0.040353842079639435, -0.0409962497651577, 0.013142543844878674, 0.011112011969089508, 0.060315120965242386, 0.014832423999905586, 0.024202430620789528, -0.001079656882211566, 0.010530851781368256, 0.008668765425682068, 0.021436909213662148, -0.03640010952949524, -0.0421660877764225, 0.013945200480520725, -0.021537605673074722, 0.01248370110988617, 0.01313431654125452, 0.03400411829352379, 0.027059374377131462, 0.01765305921435356, 0.01072587538510561, 0.022537723183631897, 0.017958417534828186, 0.04001152142882347, 0.07256162166595459, -0.02796788699924946, 0.025139059871435165, -0.014605613425374031, -0.026254521682858467, -0.008942744694650173, 0.003033107379451394, -0.014824151061475277, -0.020731531083583832, -0.04114599525928497, -0.0761292427778244, 0.01764662191271782, 0.05013790726661682, 0.017358293756842613, 0.03175574913620949, -0.0030595113057643175, -0.0029049331787973642, -0.03569507598876953, -0.005173173267394304, 0.06159050017595291, -0.0624518059194088, 0.0236806683242321, -0.010287764482200146, -0.00031749336631037295, -0.011031472124159336, 0.034038297832012177, -0.07787153124809265, -0.039466798305511475, -0.014088219031691551, 0.04408068209886551, -0.04421684890985489, -0.02238950878381729, -0.043861351907253265, 0.01304633542895317, 0.0038955709896981716, 0.0011572832008823752, 0.021891765296459198, -0.006821946706622839, -0.00881214626133442, -0.0076491013169288635, 0.026371179148554802, -0.016583530232310295, 0.006011928431689739, 0.03579285740852356, -0.004250606521964073, -0.00013913768634665757, -0.041157495230436325, 0.03301330655813217, 0.007443486712872982, -0.014849253930151463, 0.01686019077897072, -0.026101015508174896, -0.0030232141725718975, -0.02805076539516449, 0.03554815053939819, -0.003627938684076071, 0.015864860266447067, -0.008020756766200066, 0.005239721853286028, -0.011862863786518574, 0.013258024118840694, -0.022819772362709045, -0.03259912133216858, 0.015999477356672287, 0.053028471767902374, -0.011542823165655136, -0.013725200667977333, 0.0046468330547213554, -0.04098333418369293, 0.044252682477235794, -0.055148303508758545, -0.031208109110593796, -0.002485420787706971, -0.07434675097465515, 0.011564845219254494, 0.0002849124721251428, 0.02849316969513893, -0.05301129072904587, 0.05753033235669136, 0.03543265908956528, 0.024944588541984558, 0.024819390848279, 0.0038867825642228127, 0.01888127252459526, -0.018576612696051598, -0.028798239305615425, -0.08539258688688278, 0.03842921182513237, -0.012263935059309006, -0.03690357878804207, -0.022384438663721085, 0.008642072789371014, -0.05035798251628876, 0.011017614044249058, -0.09245886653661728, -0.04010352864861488, 0.03317506983876228, -0.007083797827363014, 0.018326757475733757, 0.027238711714744568, -0.0493902787566185, 0.01720982789993286, 0.026340775191783905, -0.04272766783833504, -0.027654582634568214, 0.0012727362336590886, 0.06127198785543442, -0.0009118806920014322, 0.013394025154411793, -0.046597789973020554, 0.0015953336842358112, 0.06132831797003746, -0.002972735557705164, 0.01295897364616394, 0.03510591387748718, -0.006547027267515659, 0.057689566165208817, 0.011470179073512554, -0.016803959384560585, 0.030314113944768906, 0.015257912687957287, -0.031097449362277985, -0.060069721192121506, 0.03326926752924919, -0.011104016564786434, 0.02267167717218399, -0.05971577391028404, 0.05153663828969002, -0.0032107417937368155, -0.023823147639632225, -0.06819941848516464, -0.0006730211898684502, -0.05086556077003479, -0.030965805053710938, -0.03078959695994854, -0.00045888646855019033, -0.0100662000477314, 0.06543920934200287, -0.005368683487176895, 0.0092477360740304, 0.057853713631629944, 0.02091788500547409, 0.006212966050952673, 0.020996039733290672, 0.0800115168094635, 0.10402591526508331, 0.04018998146057129, 0.028100430965423584, 0.04984218627214432, -0.02873256243765354, -0.048831064254045486, -0.030032018199563026, -0.06146406754851341, -0.014156787656247616, -0.05516871437430382, -0.019712528213858604, 0.06817635148763657, -0.02265249192714691, 0.052941810339689255, -0.0019928193651139736, -0.011335628107190132, -0.014337312430143356, -0.012213329784572124, 0.03848182410001755, 0.043676748871803284, 0.029810374602675438, 0.016139162704348564, -0.04305996745824814, 0.009315671399235725, 0.03716146573424339, 0.020708367228507996, -0.0465543195605278, 0.017517104744911194, 0.01424159575253725, 0.008853534236550331, 0.02231479622423649, 0.03946693241596222, 0.08306064456701279, -0.04005202278494835, -0.0011811170261353254, 0.02292027696967125, 0.03647840768098831, 0.011195473372936249, 0.020916927605867386, -0.015571166761219501, -0.022039063274860382, -0.005713826511055231, -0.03181728348135948, 0.014802898280322552, -0.023661985993385315, 0.009735891595482826, 0.03783196583390236, -0.000836981984321028, -0.0033413597848266363, 0.024142898619174957, 0.005552235525101423, -0.04126694053411484, -0.03607486933469772, -0.0504312627017498, -0.03597019240260124, -0.07700555771589279, -0.0017949121538549662, 0.0032407057005912066, -0.03326813504099846, -0.029771296307444572, -0.03903490677475929, -0.04510331526398659, 0.007589003536850214, -0.021946867927908897, -0.03970584645867348, -0.06843138486146927, 0.017358947545289993, 0.01563584990799427, -0.006314189173281193, 0.03516605868935585, 0.0583222396671772, -0.015743091702461243, -0.01236048061400652, -0.033406082540750504, 0.026827797293663025, 0.04356271028518677, 0.009850193746387959, 0.055669065564870834, -0.07694327086210251, 0.048946138471364975, 0.011543888598680496, -0.009497463703155518, -0.07523394376039505, 0.047945987433195114, 0.04636446014046669, -0.000779832829721272, 0.054841358214616776, 0.009705950506031513, -0.01285021286457777, -0.05177293345332146, -0.03971872478723526, 0.039104774594306946, 0.009754357859492302, 0.021846629679203033, -0.04179580882191658, 0.0987006276845932, 0.03489092364907265, -0.00873157661408186, -0.05756304785609245, -0.006399910897016525, 0.0019352504750713706, 0.010832411237061024, -0.018959946930408478, -0.06216295436024666, -0.056904084980487823, -0.069982148706913, -0.053827881813049316, 0.018393224105238914, -0.03405654430389404, -0.032999321818351746, -0.0076939077116549015, 0.004749366547912359, -0.07600584626197815, 0.008164072409272194, -0.033544402569532394, 0.002222048817202449, -0.030872952193021774, 0.001067736535333097, -0.02247452177107334, 0.03458043932914734, 0.012019488960504532, -0.010527322068810463, 0.026514429599046707, -0.04813290387392044, 0.010733714327216148, -0.0450422428548336, 0.018865160644054413, 0.02075718343257904, 0.009650259278714657, 0.018268879503011703 ]
[ -0.044730257242918015, -0.021316759288311005, -0.023487476631999016, -0.006279637571424246, 0.050717223435640335, -0.04377240687608719, -0.06279599666595459, -0.06251844018697739, 0.030679738149046898, -0.017555616796016693, 0.0283605195581913, 0.020086508244276047, -0.006368979346007109, -0.031839702278375626, 0.07970058172941208, -0.028552893549203873, -0.03988996148109436, -0.06273859739303589, -0.014398169703781605, 0.0887221246957779, 0.022335125133395195, -0.018888210877776146, -0.006728483363986015, -0.06958203762769699, 0.019420742988586426, 0.031051885336637497, 0.04234124347567558, -0.0652586966753006, -0.020023426041007042, -0.23541344702243805, 0.028051529079675674, 0.005533481482416391, 0.0017882711254060268, -0.022457169368863106, 0.043177999556064606, -0.014373539946973324, 0.024406244978308678, -0.0016935736639425159, 0.008917661383748055, 0.018056003376841545, 0.03315720334649086, 0.02143034152686596, -0.016703255474567413, 0.0003020615258719772, 0.044053785502910614, -0.02043195255100727, -0.007283677347004414, -0.01888566091656685, 0.01337970606982708, 0.02440953068435192, -0.03557684272527695, 0.037767618894577026, -0.018122194334864616, 0.020864637568593025, 0.0027377642691135406, 0.011973774991929531, 0.047444116324186325, 0.04211379587650299, -0.022982101887464523, 0.015774397179484367, 0.01252762135118246, 0.025965075939893723, -0.11562278121709824, 0.11013765633106232, 0.037388913333415985, 0.02700025588274002, -0.0206663329154253, 0.015866754576563835, -0.04049462452530861, 0.06466154754161835, 0.027148354798555374, -0.0441180057823658, -0.061480697244405746, 0.03268978372216225, 0.022605951875448227, -0.09226104617118835, -0.058142825961112976, 0.01934962533414364, 0.029713155701756477, -0.01940021850168705, -0.08259019255638123, -0.03426506370306015, -0.016795804724097252, -0.0457720048725605, -0.018460728228092194, -0.019836217164993286, -0.021735573187470436, 0.028204534202814102, 0.027140051126480103, -0.019878458231687546, 0.028134258463978767, -0.016852030530571938, 0.028611890971660614, 0.01479666493833065, -0.05551925674080849, 0.0031106651294976473, -0.009908843785524368, 0.01952224411070347, 0.014277173206210136, 0.4033742845058441, -0.006281336769461632, 0.01996898278594017, -0.01852819137275219, 0.011278687976300716, 0.005028534680604935, -0.04115943983197212, 0.0563671737909317, 0.001852407236583531, 0.0379539392888546, -0.002627338981255889, -0.0030638228636235, -0.020610736683011055, 0.05825594440102577, -0.08883965015411377, -0.03842461481690407, -0.025404570624232292, -0.020674951374530792, -0.02415328472852707, 0.03285820409655571, 0.004064903128892183, -0.008333968929946423, 0.012316581793129444, 0.0251181498169899, -0.027476582676172256, 0.039418306201696396, 0.0523843877017498, 0.03976648300886154, 0.08200639486312866, 0.03973991796374321, 0.01528014987707138, 0.026262469589710236, -0.034579385071992874, -0.04687469080090523, -0.012427790090441704, -0.02001378685235977, 0.020215041935443878, 0.008024967275559902, -0.022727519273757935, 0.008445887826383114, -0.011924016289412975, -0.023177044466137886, -0.021965257823467255, 0.05300017446279526, -0.010837467387318611, -0.020417427644133568, 0.1049896851181984, -0.026509856805205345, -0.008456457406282425, -0.011821674183011055, -0.01684790849685669, -0.00436412962153554, -0.0037612556479871273, 0.006660589948296547, -0.020832672715187073, -0.06633016467094421, 0.013043171726167202, 0.04012108966708183, 0.00013445211516227573, -0.04465293139219284, -0.07549314200878143, -0.00863577052950859, -0.020801257342100143, -0.051894452422857285, 0.06257685273885727, 0.02425263822078705, -0.12487208098173141, -0.07840262353420258, 0.03132254630327225, -0.02531176619231701, -0.084975466132164, 0.0020582794677466154, 0.006886348128318787, -0.02244657464325428, 0.014136604964733124, 0.03567710518836975, -0.007090440019965172, -0.0001010420237435028, -0.0264878086745739, 0.03541586920619011, 0.02580840513110161, 0.013951215893030167, 0.0010149627923965454, -0.01892842911183834, -0.003312324406579137, -0.022183921188116074, -0.07954470813274384, -0.047367192804813385, 0.02317335456609726, -0.01144057884812355, -0.034343164414167404, -0.021335307508707047, -0.05072574317455292, -0.07496073842048645, 0.04812844097614288, -0.024317944422364235, -0.028124241158366203, 0.043774690479040146, -0.011897907592356205, -0.00354783539660275, -0.012774421833455563, 0.06108858808875084, 0.02904646284878254, -0.03827353194355965, 0.04497063532471657, -0.002832649042829871, -0.0009827723260968924, 0.050133489072322845, -0.07065252214670181, 0.06960931420326233, 0.0008924995199777186, -0.06374730169773102, 0.05549396574497223, -0.016355637460947037, -0.01085851900279522, 0.014020565897226334, -0.016184207051992416, 0.006281763315200806, -0.011117428541183472, 0.02162845805287361, 0.040834348648786545, -0.02459445409476757, -0.043727852404117584, -0.029938770458102226, -0.35080447793006897, -0.026086319237947464, -0.02602747455239296, -0.011163383722305298, -0.01278799306601286, -0.05577649921178818, -0.006109581794589758, 0.011517045088112354, 0.010722335427999496, 0.06571021676063538, 0.10729166120290756, 0.01478760875761509, -0.021436544135212898, -0.04896857962012291, -0.07500527054071426, 0.00313218729570508, 0.021193258464336395, -0.024808159098029137, -0.044266849756240845, 0.02512054331600666, 0.04301576316356659, -0.005883054807782173, -0.03728600591421127, -0.08578097075223923, 0.05952603369951248, 0.007932212203741074, 0.11726664006710052, 0.030177313834428787, 0.012123074382543564, -0.045747119933366776, 0.05047775059938431, 0.06923120468854904, -0.01100371778011322, -0.07325152307748795, 0.01927778869867325, -0.0038738076109439135, 0.02629736065864563, 0.0008629510994069278, -0.0041496423073112965, 0.006213340442627668, -0.0691533163189888, 0.006390496157109737, -0.01916387677192688, -0.058696307241916656, 0.027155129238963127, -0.03893410414457321, -0.017550701275467873, 0.009609757922589779, -0.02823529951274395, 0.09258619695901871, 0.025325149297714233, 0.009472904726862907, -0.012167777866125107, 0.07704272866249084, 0.0343383252620697, -0.023803936317563057, 0.0016658958047628403, -0.07107781618833542, 0.04440369829535484, -0.012091223150491714, 0.013291285373270512, 0.019256597384810448, 0.03853323310613632, -0.03828437253832817, 0.00041677564149722457, 0.007048304192721844, -0.024963101372122765, 0.005463781766593456, 0.09303533285856247, -0.033672694116830826, -0.07780902087688446, 0.03892222046852112, -0.016261497512459755, 0.02117513120174408, 0.03861453756690025, 0.06549230217933655, 0.005432730540633202, 0.02659069560468197, 0.012127354741096497, 0.013237162493169308, 0.007835001684725285, 0.03221887722611427, 0.07146643102169037, -0.0038449650164693594, 0.011355962604284286, 0.036146216094493866, -0.003168140072375536, 0.019580457359552383, 0.045321717858314514, -0.000229027631576173, -0.034428052604198456, -0.013545101508498192, -0.004530073143541813, -0.02553733065724373, 0.04223327338695526, -0.011292408220469952, -0.2611365020275116, 0.06377775967121124, 0.04688360542058945, 0.0435185469686985, 0.016493966802954674, 0.02303944155573845, 0.007603436708450317, -0.041944682598114014, -0.03146594017744064, -0.004087589215487242, 0.018237002193927765, 0.04969383403658867, 0.04816746711730957, -0.019471611827611923, 0.027183616533875465, -0.0361432209610939, 0.041309040039777756, 0.03636164963245392, 0.01390820275992155, 0.01129594724625349, 0.025382651016116142, -0.01662563532590866, 0.19713200628757477, 0.06172506511211395, 0.001512067625299096, -0.01965475268661976, 0.033731989562511444, -0.006238933186978102, 0.051276564598083496, 0.05645474046468735, 0.022947313264012337, 0.001398696331307292, 0.04999144375324249, 0.0037022412288933992, 0.011775529943406582, 0.00411618035286665, -0.041472986340522766, 0.013526242226362228, 0.005384527612477541, -0.006742199417203665, -0.037819113582372665, 0.03542027249932289, -0.07053329795598984, 0.011675338260829449, 0.061762213706970215, -0.04480039328336716, -0.01461080927401781, -0.010823818854987621, -0.009142276830971241, 0.0029066235292702913, -0.0336955189704895, -0.03190328925848007, -0.01169554702937603, -0.03585440665483475, 0.003475587349385023, 0.04128800332546234, 0.019694959744811058, 0.036018796265125275, 0.032006651163101196, 0.04581960663199425, 0.003211476607248187, -0.02779536135494709, 0.04606514051556587, 0.0018583665369078517, 0.01758734881877899 ]
[ -0.005579796154052019, 0.03314344212412834, 0.00023949558089952916, 0.033421438187360764, 0.012988480739295483, -0.0010296214604750276, 0.011655082926154137, 0.02429993450641632, -0.0200132317841053, 0.02133624441921711, 0.0028635805938392878, -0.04442264884710312, 0.0246371328830719, -0.028169218450784683, 0.0231862124055624, -0.021838119253516197, -0.0037437870632857084, 0.001278763054870069, 0.01645536534488201, -0.002029402181506157, -0.01593189127743244, -0.041926704347133636, 0.006784466560930014, -0.014555205591022968, -0.01829557679593563, 0.02335014007985592, -0.05032021179795265, 0.020529285073280334, 0.014744069427251816, -0.12652628123760223, -0.03004278987646103, -0.021017655730247498, 0.010427412576973438, 0.0011677320580929518, 0.015295542776584625, 0.03029395267367363, 0.036357712000608444, 0.02509603649377823, 0.006380845792591572, -0.028597433120012283, 0.016726715490221977, -0.028586573898792267, -0.019464507699012756, -0.007510109804570675, -0.035269882529973984, -0.03931283578276634, -0.030352551490068436, -0.04623320698738098, -0.04001859948039055, 0.0007534424657933414, -0.008790929801762104, 0.03570520505309105, -0.014261222444474697, 0.006238759495317936, 0.0007258739206008613, -0.006733078975230455, -0.020767170935869217, 0.0020625032484531403, 0.042464982718229294, 0.026924241334199905, 0.006289918906986713, -0.007138320244848728, -0.026558484882116318, -0.0009290149318985641, 0.00689559243619442, 0.007393148262053728, -0.021989772096276283, -0.00583460321649909, -0.026324555277824402, -0.010836674831807613, -0.001973765669390559, 0.008525194600224495, -0.03502008691430092, 0.025434015318751335, -0.03224291652441025, -0.01797141134738922, 0.053456179797649384, -0.04053455591201782, -0.02971511520445347, -0.006391552742570639, -0.05558830127120018, 0.005522613879293203, 0.005662014242261648, 0.018470950424671173, -0.00631712144240737, -0.019039316102862358, -0.00920647382736206, -0.024890979751944542, 0.028149666264653206, -0.017137326300144196, 0.022601336240768433, 0.03208662196993828, -0.017177129164338112, 0.040239498019218445, -0.048827577382326126, -0.04404730349779129, 0.0025492229033261538, -0.023177653551101685, -0.025028903037309647, 0.8440650105476379, 0.02432471327483654, 0.03726625069975853, 0.026155348867177963, 0.003538792487233877, -0.012257563881576061, -0.025625649839639664, 0.03292376920580864, -0.035783808678388596, -0.009645984508097172, -0.02569415047764778, 0.02495013363659382, 0.00511231180280447, 0.0029227121267467737, -0.013467597775161266, -0.005689555779099464, 0.02524978294968605, -0.04554686322808266, -0.018564200028777122, -0.0005291593261063099, 0.015205180272459984, 0.024213066324591637, 0.017412569373846054, -0.030080588534474373, 0.0010847748490050435, 0.023524830117821693, -0.17415298521518707, 0.03209110349416733, -6.349160902897958e-33, 0.027830637991428375, -0.011715053580701351, 0.02120075561106205, -0.027875199913978577, 0.04983184114098549, 0.006887598428875208, 0.025259068235754967, -0.015140937641263008, -0.023972243070602417, 0.011975263245403767, 0.036400582641363144, -0.014558812603354454, -0.016112299636006355, -0.037105072289705276, 0.033263660967350006, -0.019800502806901932, 0.013307907618582249, 0.0054697743616998196, -0.004803799092769623, -0.004658974707126617, 0.023176830261945724, 0.08899453282356262, 0.05168028920888901, -0.01894771121442318, 0.0064427549950778484, 0.03656013682484627, 0.0043252091854810715, -0.006476320326328278, -0.006754308007657528, -0.026036562398076057, -0.013686430640518665, -0.010183947160840034, 0.022407235577702522, -0.0207841657102108, -0.020132340490818024, -0.023552043363451958, 0.014662584289908409, 0.004914124961942434, -0.00595088629052043, -0.01780378818511963, -0.0008224961929954588, 0.013390244916081429, -0.00475271325558424, -0.017807787284255028, -0.03841060400009155, 0.014562869444489479, 0.0459098219871521, -0.027112554758787155, -0.0004349903028924018, -0.01190242636948824, -0.013200636953115463, -0.0069900802336633205, -0.02529810555279255, 0.032372601330280304, 0.0034343847073614597, 0.022361822426319122, -0.026493968442082405, -0.05323029309511185, 0.01855722814798355, 0.03204896301031113, 0.010831331834197044, -0.03467441722750664, 0.0026430520229041576, 0.016642523929476738, -0.023989873006939888, -0.000051125163736287504, 0.03607521951198578, -0.006655095610767603, -0.017445355653762817, -0.0009213018929585814, -0.04435352981090546, 0.013800754211843014, 0.0328185074031353, -0.040786102414131165, 0.07810470461845398, -0.0044042752124369144, 0.011205040849745274, 0.018070679157972336, 0.007161416113376617, -0.010920502245426178, 0.012196517549455166, 0.004607778508216143, -0.021872075274586678, 0.013480384834110737, -0.051054947078228, 0.007076222915202379, 0.023152312263846397, 0.029480254277586937, -0.020249225199222565, -0.002182385418564081, 0.003921841271221638, 0.00977122038602829, 0.019768916070461273, -0.051489733159542084, -0.05459706485271454, 6.0433556801895556e-33, 0.010453235357999802, -0.021758386865258217, 0.0021755993366241455, 0.004660754464566708, -0.00649815471842885, 0.02240116521716118, 0.03180763125419617, 0.03583265468478203, -0.016853006556630135, 0.061657872051000595, -0.010554674081504345, 0.0071488721296191216, -0.009988872334361076, -0.016985341906547546, 0.04078932851552963, 0.06709116697311401, 0.02995765209197998, 0.010352563112974167, 0.04005861654877663, -0.00199310714378953, 0.01701241359114647, 0.01695147529244423, -0.02170836180448532, 0.03921819478273392, 0.07274319976568222, 0.0271935872733593, -0.009405527263879776, 0.013633363880217075, 0.009246643632650375, -0.01047485787421465, -0.009663992561399937, -0.022334422916173935, -0.02196703851222992, -0.0006530231912620366, -0.05602918565273285, 0.03411300852894783, -0.017385203391313553, -0.00940628070384264, -0.00010318718705093488, 0.026039747521281242, 0.032520417124032974, -0.02080611325800419, 0.0019856246653944254, 0.022683817893266678, 0.011388186365365982, -0.009714373387396336, 0.0022529917769134045, 0.007044217083603144, -0.009893495589494705, 0.008663414977490902, 0.003023921512067318, 0.031010106205940247, -0.01516487542539835, 0.015786398202180862, -0.0007134855259209871, -0.010023761540651321, -0.022629695013165474, 0.03963858261704445, -0.053415797650814056, -0.03751084953546524, -0.014695301651954651, 0.005805454216897488, -0.007353037130087614, 0.006709274370223284, -0.009448925964534283, -0.0023063216358423233, -0.04672127217054367, -0.008206555619835854, 0.011814280413091183, 0.002408184576779604, -0.0006004369934089482, -0.018768860027194023, -0.0003837574040517211, -0.005022192373871803, 0.004300405271351337, 0.006288141943514347, -0.028490843251347542, -0.027562037110328674, 0.03183063119649887, 0.016218002885580063, 0.039220210164785385, -0.0004933719174005091, 0.03154531493782997, -0.014019349589943886, 0.024129441007971764, 0.023441502824425697, -0.021557478234171867, 0.01869134046137333, 0.03129209950566292, 0.004636370576918125, -0.03980142995715141, -0.06494473665952682, 0.00504737813025713, 0.02358369342982769, -0.03435736894607544, -1.2403924998238836e-8, -0.005689430050551891, -0.032126739621162415, -0.014137336052954197, 0.028718585148453712, 0.005950228311121464, 0.00037760217674076557, -0.03182534500956535, -0.006316099315881729, -0.03252311423420906, -0.000614409102126956, 0.050337307155132294, -0.00806623324751854, 0.01687806099653244, 0.023090114817023277, -0.006133394781500101, -0.0050805616192519665, 0.008946400135755539, 0.001027541933581233, 0.02230042777955532, -0.013785941526293755, -0.024686211720108986, 0.057788241654634476, -0.013699387200176716, -0.00033377629006281495, 0.011907028965651989, 0.029486024752259254, 0.0043947091326117516, -0.06829021126031876, -0.025526368990540504, 0.005185889080166817, -0.007939591072499752, -0.02614837884902954, -0.04451093450188637, -0.007899903692305088, -0.010217852890491486, -0.013150544837117195, 0.0066022868268191814, 0.01648576557636261, 0.01820170134305954, -0.008577434346079826, -0.01784146949648857, -0.03296243026852608, -0.0161026231944561, -0.022944794967770576, -0.04769499599933624, 0.01310113538056612, -0.05799305811524391, -0.004024290479719639, 0.049231261014938354, -0.040228258818387985, -0.017250796779990196, -0.019966691732406616, -0.01536822970956564, 0.02057608775794506, 0.023861190304160118, -0.01902337372303009, 0.0004420504264999181, 0.005113031715154648, 0.0012372914934530854, 0.007624809164553881, 0.0146858599036932, 0.027947040274739265, 0.0023170248605310917, -0.010019302368164062 ]
clickhouse-configure-output-format
https://markhneedham.com/blog/2024/01/19/clickhouse-configure-output-format
false
2024-01-12 00:44:37
An introduction to Retrieval Augmented Generation
[ "retrieval-augmented-generation", "rag", "generative-ai", "chromadb", "chroma", "langchain", "til" ]
[ "TIL" ]
Retrieval Augmented Generation (RAG) is a technique used with Large Language Models (LLM) where you *augment* the prompt with data **retrieved** from a data store so that the LLM can *generate* a better answer to the question that is being asked. In this blog post, we're going to learn the basics of RAG by creating a Question and Answer system on top of the https://en.wikipedia.org/wiki/2023_Wimbledon_Championships[2023 Wimbledon Championships^] Wikipedia page. [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/Cim1lNXvCzY?si=FCBtGd7w_TZ_k4W0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> ++++ ==== == Setup I'm using the Poetry package manager, but feel free to use whichever tooling you like to follow along. Below is my Poetry config file: .pyproject.toml [source, toml] ---- [tool.poetry] name = "intro-to-rag" version = "0.1.0" description = "" authors = ["Mark Needham"] readme = "README.md" [tool.poetry.dependencies] python = ">=3.11,<3.12" fastembed = "^0.1.3" chromadb = "^0.4.22" langchain = "^0.1.0" wikipedia = "^1.4.0" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ---- == Initialising an LLM We're going to start by initialising the Mixtral Large Language Model, which we have running locally using https://ollama.ai/[Ollama^]. We'll use the popular https://www.langchain.com/[LangChain^] library to glue everything together. [source, python] ---- from langchain_community.llms import Ollama from langchain.callbacks.manager import CallbackManager from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler llm = Ollama( model="mixtral", callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]), ) ---- We can check that's all wired together by running the following: [source, python] ---- llm.invoke("Who won the men's singles at Wimbledon 2023?") ---- .Output [source, text] ---- I'm unable to provide that information as there has been no Wimbledon tournament held in 2023 yet. The last Men's Singles champion at Wimbledon was Novak Djokovic in 2022. It's recommended to check the official Wimbledon website or reliable news sources for updated and accurate information on the latest championship results. ---- Often an LLM will hallucinate an answer to a question if it doesn't know the answer i.e. it will come up with something plausible but completely made up. In this case, it's actually done a good job by telling us that it doesn't know. == Augmented Generation One way that we could help the LLM out here is by creating a new prompt where we manually paste in the contents of the whole page (which we called the `context`) and ask the LLM to use that context to answer the question. This would work, but it's not all that efficient - although we don't have the issue of having to pay for tokens because we're using a local model, it tends to be the case that an LLM will take longer to answer a longer prompt. So instead, we want to identify the part of the page that likely has the answer to the question and only paste that bit into the prompt. Let's see how the LLM responds to the question if we augment the prompt manually i.e. Augmented Generation! In LangChain we can construct a prompt using the following code: [source, python] ---- from langchain.prompts import PromptTemplate template = """You are a bot that answers user questions about Wimbledon using only the context provided. If you don't know the answer, simply state that you don't know. {context} Question: {input}""" prompt = PromptTemplate( template=template, input_variables=["context", "input"] ) ---- We can then populate the prompt like this: [source, python] ---- prompt.format( context="Gentlemen's singles Carlos Alcaraz def. Serbia Novak Djokovic 1–6, 7–6(8–6), 6–1, 3–6, 6–4", input="Who won the men's singles at Wimbledon 2023?" ) ---- .Output [source, text] ---- You are a bot that answers user questions about Wimbledon using only the context provided. If you don't know the answer, simply state that you don't know. Gentlemen's singles Carlos Alcaraz def. Serbia Novak Djokovic 1–6, 7–6(8–6), 6–1, 3–6, 6–4 Question: Who won the men's singles at Wimbledon 2023? ---- We can then feed that prompt into the LLM like this: [source, python] ---- llm.invoke( prompt.format( context="Gentlemen's singles Carlos Alcaraz def. Serbia Novak Djokovic 1–6, 7–6(8–6), 6–1, 3–6, 6–4", input="Who won the men's singles at Wimbledon 2023?" ) ) ---- .Output [source, text] ---- Based on the provided context, Carlos Alcaraz of Spain won the Gentlemen's singles at Wimbledon in 2023. He defeated Novak Djokovic of Serbia with a score of 1–6, 7–6(8–6), 6–1, 3–6, 6–4. ---- And there we go, now we have the correct answer. But our solution so far requires us to find the appropriate information and feed it to the LLM - it would be better if we could automate that part of the process. == An introduction to vector search The most popular way to do this is to use vector search. At a high level, this involves the following steps: * Create embeddings (arrays of numbers) for each of the chunks of text on our page using an embedding algorithm. Those are our *chunk embeddings*. * Store those embeddings somewhere * Use that same embedding algorithm to create an embedding for our search query. This is our *search query embedding*. * Search the embedding storage system to find the `k` most similar of the *chunk embeddings* to the *search query embedding*. * Retrieve the text for the matching *chunk embedding* and put that text into the prompt as the context === Generate embeddings Let's start by creating embeddings of the Wimbledon 2023 page. We can retrieve the page using the `WikipediaLoader`: [source, python] ---- from langchain.document_loaders import WikipediaLoader search_term = "2023 Wimbledon Championships" docs = WikipediaLoader(query=search_term, load_max_docs=1).load() ---- This gives us back a LangChain `Document` that contains the whole page. As we discussed above, we're going to break the page up into chunks. One way to do this is using the `RecursiveCharacterTextSplitter` which goes through the text and extracts chunks of a certain length with optional overlap between each chunk: [source, python] ---- from langchain.text_splitter import RecursiveCharacterTextSplitter text_splitter = RecursiveCharacterTextSplitter( chunk_size = 150, chunk_overlap = 50, length_function = len, is_separator_regex = False, ) chunks = text_splitter.split_documents(docs) chunks[0] ---- .Output [source, text] ---- Document( page_content='The 2023 Wimbledon Championships was a Grand Slam tennis tournament that took place at the All England Lawn Tennis and Croquet Club in Wimbledon, London, United Kingdom.', metadata={ 'title': '2023 Wimbledon Championships', 'summary': 'The 2023 Wimbledon Championships was a Grand Slam tennis tournament that took place at the All England Lawn Tennis and Croquet Club in Wimbledon, London, United Kingdom.', 'source': 'https://en.wikipedia.org/wiki/2023_Wimbledon_Championships' } ) ---- === Generate and Store embeddings Next, we're going to generate embeddings for each chunk of text using OpenAI and then store the embedding and the text in ChromaDB. [source, python] ---- from langchain.vectorstores import Chroma from langchain_community.embeddings.fastembed import FastEmbedEmbeddings embeddings = FastEmbedEmbeddings(model_name="BAAI/bge-base-en-v1.5") store = Chroma.from_documents( chunks, embeddings, ids = [f"{item.metadata['source']}-{index}" for index, item in enumerate(chunks)], collection_name="Wimbledon-Embeddings", persist_directory='db', ) store.persist() ---- === Querying the embeddings Now we're going to query the embeddings. For some reason that I haven't quite figured out, the similarity search doesn't return the right chunk unless I increase the value of `k`. I've tried some different embedding algorithms, but it doesn't seem to change the result, so we'll work around this for now. [source, python] ---- result = store.similarity_search( query="Who won the men's singles at Wimbledon 2023?", k=10 ) [doc.page_content for doc in result] ---- .Output [source, text] ---- [ 'The 2023 Wimbledon Championships was a Grand Slam tennis tournament that took place at the All England Lawn Tennis and Croquet Club in Wimbledon,', 'two decades since he won the tournament for the first time in 2003.', 'The tournament was played on grass courts, with all main draw matches played at the All England Lawn Tennis and Croquet Club, Wimbledon, from 3 to 16', 'Tennis and Croquet Club, Wimbledon, from 3 to 16 July 2023. Qualifying matches were played from 26 to 29 June 2023 at the Bank of England Sports', "singles & doubles events for men's and women's wheelchair tennis players. This edition features gentlemen's and ladies' invitational doubles", "=== Ladies' singles ===\n\n Markéta Vondroušová def. Ons Jabeur, 6–4, 6–4\n\n\n=== Gentlemen's doubles ===", '26 to 29 June 2023 at the Bank of England Sports Ground in Roehampton.', 'Tour calendars under the Grand Slam category, as well as the 2023 ITF tours for junior and wheelchair competitions respectively.', "=== Gentlemen's doubles ===\n\n Wesley Koolhof / Neal Skupski def. Marcel Granollers / Horacio Zeballos, 6–4, 6–4\n\n\n=== Ladies' doubles ===", "== Events ==\n\n\n=== Gentlemen's singles ===\n\n Carlos Alcaraz def. Novak Djokovic 1–6, 7–6(8–6), 6–1, 3–6, 6–4\n\n\n=== Ladies' singles ===" ] ---- We can see that the chunk that has the answer is in last place. As I said, it's not clear to me why those other chunks are ranking higher, but that's what's happening! == Retrieval Augmented Generation We've now got all the pieces in place to do Retrieval Augmented Generation, so the final step is to glue them all together. In LangChain's terminology, we need to create a _chain_ that combines the vector store with the LLM. We can do this with the following code: [source, python] ---- from langchain.chains.combine_documents import create_stuff_documents_chain from langchain.chains import create_retrieval_chain retriever = store.as_retriever(search_kwargs={ 'k': 10 }) combine_docs_chain = create_stuff_documents_chain(llm, prompt) chain = create_retrieval_chain(retriever, combine_docs_chain) ---- Which we can then call like this: [source, python] ---- result = chain.invoke({ "input": "Who won the men's singles at Wimbledon 2023?" }) ---- .Output [source, text] ---- Carlos Alcaraz of Spain won the men's singles at Wimbledon 2023. He defeated Novak Djokovic in the final with a score of 1–6, 7–6(8–6), 6–1, 3–6, 6–4. ----
In this post, we'll learn how to do Retrieval Augmented Generation with ChromaDB, Ollama, LangChain, and Mixtral from Mistral AI to answer questions about the Wimbledon 2023 tennis tournament.
uploads/2024/01/rag-banner.png
[ 0.02114221826195717, -0.004733509849756956, -0.005250328686088324, 0.04802534729242325, 0.06639319658279419, 0.0031877895817160606, 0.027507469058036804, 0.019210707396268845, -0.001704796333797276, -0.004202509764581919, -0.02888568490743637, 0.0037511910777539015, -0.06595923006534576, 0.013212930411100388, -0.020444830879569054, 0.06750352680683136, 0.06391860544681549, 0.0020516756922006607, 0.036079805344343185, 0.001745537156239152, 0.028414128348231316, 0.05112618952989578, 0.016364935785531998, 0.023936714977025986, 0.03074849396944046, 0.011292751878499985, 0.021452998742461205, 0.006062828470021486, -0.05738689377903938, -0.020686808973550797, 0.023419402539730072, -0.013393918983638287, -0.011200102046132088, -0.00993417389690876, 0.03596163168549538, 0.00919786561280489, -0.042549457401037216, 0.029534224420785904, 0.018972350284457207, 0.006123384460806847, -0.06572332978248596, 0.001671818783506751, -0.012370862066745758, -0.003943109419196844, -0.050654005259275436, -0.0033382480032742023, -0.036695968359708786, 0.025708237662911415, 0.01417312491685152, -0.010833718813955784, -0.07366474717855453, 0.0647754892706871, -0.01644669845700264, -0.01502786111086607, -0.011759663932025433, 0.042673833668231964, 0.03608137369155884, -0.06309985369443893, 0.031602732837200165, -0.03523893281817436, 0.0016950351418927312, 0.014774162322282791, 0.00014146321336738765, 0.012284856289625168, 0.011059639975428581, -0.03608671948313713, -0.008716093376278877, 0.03418218716979027, -0.043065447360277176, -0.013689914718270302, -0.009022695943713188, 0.029230959713459015, -0.03996080532670021, 0.02419084496796131, 0.022053154185414314, -0.03421616554260254, -0.0018264418467879295, 0.05783533677458763, 0.012507928535342216, 0.041509199887514114, -0.013515668921172619, 0.015342635102570057, 0.024710584431886673, 0.037724897265434265, -0.0188056081533432, -0.04834451153874397, -0.019542332738637924, -0.014784443192183971, -0.061910416930913925, 0.026656465604901314, -0.013634280301630497, -0.060149289667606354, 0.019320940598845482, 0.037760570645332336, -0.01796904020011425, 0.0012603264767676592, 0.005181840620934963, -0.01277047861367464, -0.020773643627762794, -0.013623992912471294, -0.02739521861076355, -0.011600542813539505, 0.04937255010008812, 0.008081452921032906, -0.10403180867433548, 0.018339527770876884, -0.02057718299329281, -0.006079270038753748, -0.002829241566359997, -0.00635632174089551, -0.005501925945281982, 0.014319361187517643, -0.01194836851209402, 0.006371552124619484, -0.05862501636147499, 0.059799764305353165, 0.018590686842799187, -0.022777898237109184, -0.01682978682219982, 0.037571292370557785, 0.04409514740109444, 0.016754906624555588, 0.004044422414153814, 0.07470790296792984, -0.013561105355620384, 0.027235668152570724, 0.002350303577259183, 0.0667252242565155, -0.027716943994164467, -0.05757209286093712, 0.0008500530384480953, 0.048645514994859695, -0.00825442373752594, 0.027016092091798782, -0.00629503233358264, 0.0056798383593559265, -0.00006874249083921313, -0.01039932481944561, 0.08569439500570297, 0.04548761621117592, -0.034299612045288086, -0.04215788096189499, -0.022000452503561974, -0.007403244264423847, 0.04039314389228821, -0.006123907398432493, -0.004871469456702471, -0.034591786563396454, -0.02361668460071087, 0.014957801438868046, 0.02378523163497448, 0.012319618836045265, 0.06433053314685822, -0.02031506411731243, 0.00282993889413774, 0.08911275863647461, 0.043202754110097885, 0.020791776478290558, 0.00479132030159235, 0.025376835837960243, 0.020563263446092606, 0.03408476710319519, 0.0064338515512645245, 0.052108313888311386, -0.009947521612048149, -0.019891958683729172, -0.020336855202913284, 0.03415870666503906, -0.020593026652932167, -0.01784377358853817, -0.07158324867486954, -0.036580417305231094, 0.06722220033407211, -0.06500023603439331, -0.04058954119682312, 0.02725764736533165, 0.07957674562931061, 0.056997790932655334, 0.04532752186059952, 0.0009851808426901698, -0.08820048719644547, 0.044317737221717834, 0.023725539445877075, 0.01546727679669857, 0.023708384484052658, -0.028140544891357422, 0.09832686185836792, 0.04784927889704704, 0.02775794267654419, 0.04431447759270668, -0.07631583511829376, -0.06438732892274857, -0.024164311587810516, 0.0013004214270040393, 0.049324020743370056, -0.039236824959516525, 0.024004735052585602, 0.08552373200654984, 0.039390504360198975, 0.042876049876213074, 0.025152232497930527, -0.018581699579954147, 0.018916405737400055, -0.05408217012882233, -0.0427626371383667, 0.029155058786273003, 0.012486808001995087, -0.028593074530363083, -0.02415003813803196, 0.007256798446178436, -0.016357464715838432, -0.008458011783659458, 0.02510629966855049, -0.026813358068466187, 0.015011083334684372, -0.0021084616892039776, 0.03494654595851898, -0.027239307761192322, 0.048494208604097366, -0.0482446514070034, 0.032423172146081924, -0.016940483823418617, 0.010548559948801994, -0.0216521006077528, -0.013701756484806538, 0.12456860393285751, 0.036944855004549026, -0.01946324110031128, -0.05910491570830345, 0.007394860964268446, -0.02321411669254303, -0.0564713180065155, 0.004597081337124109, -0.008775021880865097, -0.010111445561051369, 0.023243220522999763, -0.03391620144248009, -0.021700739860534668, 0.03692694380879402, -0.03846470266580582, -0.030431251972913742, 0.06549502909183502, -0.012089204043149948, 0.050350628793239594, 0.012200586497783661, 0.009279225952923298, -0.010299506597220898, -0.016536444425582886, -0.0356728695333004, 0.007748293690383434, 0.013552862219512463, -0.015869254246354103, -0.0029646879993379116, -0.030540119856595993, -0.0030336647760123014, -0.02654673159122467, -0.05940210819244385, 0.024474073201417923, 0.05307585746049881, 0.05222596973180771, -0.04525155574083328, 0.03981173783540726, 0.009390244260430336, 0.01389771793037653, -0.013140960596501827, -0.04372058063745499, -0.03440652787685394, -0.0413973405957222, -0.013645508326590061, 0.020279202610254288, 0.04325937107205391, 0.0346250906586647, 0.03289095312356949, 0.01710676960647106, -0.005412887781858444, 0.02675453945994377, 0.05959583818912506, -0.00007698047556914389, -0.01487655472010374, -0.016629446297883987, -0.021145008504390717, 0.053362756967544556, -0.04154583811759949, -0.06335156410932541, -0.021719742566347122, -0.08048458397388458, 0.04012468457221985, -0.07377351820468903, -0.02386173978447914, -0.015947693958878517, 0.0061927009373903275, 0.052407171577215195, 0.0076982807368040085, 0.014696918427944183, 0.06461048126220703, 0.00929783470928669, 0.0148816192522645, 0.012646419927477837, -0.011030399240553379, 0.03055710531771183, -0.039149992167949677, 0.010649580508470535, 0.04593730345368385, 0.023448007181286812, -0.005843551363795996, -0.07038716226816177, 0.013896016404032707, -0.03758489713072777, -0.2819322943687439, 0.02051909640431404, -0.00422329269349575, -0.038055017590522766, 0.029516935348510742, -0.007913255132734776, 0.006357518024742603, -0.07113321125507355, -0.026316922158002853, -0.014206535182893276, -0.015215585008263588, -0.0317181758582592, -0.018639011308550835, 0.042153678834438324, 0.01888607069849968, 0.010230678133666515, 0.023599496111273766, -0.022507868707180023, -0.008874092251062393, 0.04664713516831398, 0.017887605354189873, -0.06402689218521118, -0.03268957883119583, 0.059239573776721954, 0.03311099857091904, 0.021005569025874138, -0.04980374872684479, 0.009751981124281883, -0.046884529292583466, -0.007260455749928951, 0.00038748738006688654, -0.00042448582826182246, 0.03000558353960514, 0.01050236914306879, -0.026621440425515175, -0.02007647417485714, 0.06435201317071915, 0.00779739860445261, 0.029528362676501274, 0.00011245416681049392, -0.009675899520516396, -0.05682757869362831, -0.00030641769990324974, 0.0005502762505784631, 0.06452891230583191, -0.012041660957038403, -0.06470155715942383, -0.004300291649997234, -0.02167021669447422, 0.09593875706195831, -0.03116988018155098, -0.05776531994342804, -0.005389497149735689, 0.04564868286252022, 0.0014384770765900612, -0.026219919323921204, 0.012133522890508175, -0.04157914221286774, -0.05211237818002701, -0.050017379224300385, -0.018500933423638344, -0.03215781971812248, -0.023010587319731712, -0.04503171145915985, 0.01069791242480278, -0.07144205272197723, -0.04103390499949455, -0.029284348711371422, 0.0749422088265419, 0.04842253029346466, -0.03142533078789711, 0.02480546198785305, -0.03408391401171684, -0.09899512678384781, 0.0028280268888920546, -0.01568741165101528, -0.01797591708600521, 0.003210614435374737, -0.00940123200416565, 0.053656041622161865, -0.060882844030857086, -0.05510092154145241, 0.011234071105718613, 0.012246857397258282, 0.016163721680641174, -0.015762044116854668, 0.04109014943242073, -0.011154737323522568, -0.01095476932823658, -0.005818332079797983, 0.08268769085407257, -0.003966225311160088, -0.06367424875497818, -0.008660276420414448, 0.030230898410081863, 0.008772376924753189, 0.008315589278936386, 0.01142177078872919, 0.046387460082769394, 0.04691264033317566, 0.04729442298412323, -0.052483931183815, 0.012272890657186508, 0.007304288446903229, -0.014840900897979736, 0.00329143856652081, -0.07507184892892838, 0.017776504158973694, 0.0421079583466053, -0.024129414930939674, -0.04352026805281639, -0.019013727083802223, 0.017612192779779434, -0.022353442385792732, -0.0551735945045948, -0.028306039050221443, 0.029170218855142593, 0.026816410943865776, 0.007580501958727837, -0.026494890451431274, -0.02930905483663082, 0.0176994651556015, 0.004208540543913841, -0.04236767813563347, -0.04510973393917084, -0.041765619069337845, 0.003962318878620863, -0.006717451848089695, -0.004779014736413956, 0.010013852268457413, 0.010322035290300846, -0.012352466583251953, 0.0004941359511576593, -0.03567591682076454, 0.03816443309187889, -0.03533710166811943, -0.03081393428146839, -0.02979970909655094, 0.00455662002786994, 0.019515560939908028, -0.02986031025648117, -0.0008725331863388419, 0.0059201838448643684, 0.020611397922039032, 0.05513046681880951, 0.00830917153507471, 0.032874587923288345, -0.002713212976232171, -0.00548049109056592, 0.0027024545706808567, 0.03105209209024906, -0.027858981862664223, 0.03780396282672882, -0.02576233260333538, -0.00506565161049366, -0.0019780341535806656, 0.029483968392014503, -0.01229484099894762, -0.007319952826946974, -0.05255606770515442, 0.020461225882172585, -0.027136629447340965, -0.0012982259504497051, -0.0058104670606553555, 0.004280294757336378, 0.03164677694439888, -0.006830911617726088, 0.021361375227570534, 0.012147334404289722, 0.012601648457348347, 0.030033806338906288, -0.010962529107928276, -0.018605291843414307, 0.015417547896504402, 0.00035586816375143826, -0.011289437301456928, 0.002672256203368306, 0.031762730330228806, 0.022569190710783005, 0.006941334810107946, 0.004371396265923977, -0.018099946901202202, 0.022407231852412224, 0.018314402550458908, 0.04389074444770813, 0.024590304121375084, -0.01982211507856846, -0.02194877341389656, -0.04176368564367294, -0.021184924989938736, -0.023587100207805634, -0.0018282909877598286, 0.010472659021615982, -0.018862813711166382, -0.03890074044466019, -0.08127058297395706, 0.024949319660663605, 0.019989775493741035, 0.01018952764570713, -0.006275096908211708, 0.0064301872625947, 0.0030590512324124575, -0.034980420023202896, 0.024388665333390236, 0.05135617032647133, -0.08063041418790817, -0.007985768839716911, -0.023391399532556534, -0.00481439707800746, 0.01252689491957426, 0.009738465771079063, -0.06138410419225693, 0.0016447147354483604, 0.005828524474054575, 0.034037694334983826, -0.03237437456846237, -0.056130919605493546, -0.025169549509882927, 0.03695644810795784, -0.008134901523590088, 0.02675764262676239, -0.042423006147146225, -0.004822780843824148, -0.002792642218992114, -0.018166935071349144, 0.007414118852466345, -0.023813311010599136, -0.011698689311742783, 0.023319529369473457, -0.05607596039772034, 0.014725855551660061, -0.03453776240348816, 0.036794260144233704, 0.026868024840950966, -0.005461853463202715, -0.0053395843133330345, -0.03574109822511673, 0.006417316850274801, 0.013790573924779892, 0.026233049109578133, 0.011684384196996689, -0.014668980613350868, -0.06177250295877457, 0.017536094412207603, -0.03693059831857681, 0.0074082412756979465, -0.0302725937217474, -0.016779372468590736, 0.010330775752663612, 0.06291219592094421, 0.025452759116888046, 0.013401028700172901, -0.03177276626229286, -0.0367300845682621, 0.06386972963809967, -0.05839009955525398, -0.03401033580303192, -0.019343148916959763, -0.04031924158334732, 0.044052064418792725, 0.0376509428024292, 0.016054276376962662, -0.055638208985328674, 0.027459563687443733, 0.013747003860771656, 0.023095477372407913, 0.03797971457242966, 0.003134756349027157, 0.03253661096096039, -0.04349284619092941, -0.00888763926923275, -0.08474919945001602, -0.024495676159858704, 0.024873115122318268, 0.00798685010522604, -0.03646067902445793, -0.015062510035932064, -0.035690926015377045, 0.05907513201236725, -0.04166552051901817, -0.024115119129419327, 0.04492609202861786, -0.00848477240651846, -0.012456152588129044, 0.014314505271613598, -0.05313808470964432, 0.025269700214266777, 0.03467690944671631, -0.032266050577163696, -0.024355711415410042, -0.011920704506337643, 0.06288260966539383, -0.003692589234560728, 0.0217730812728405, -0.010543162934482098, 0.005708448588848114, 0.0822671577334404, 0.03061908483505249, 0.012388099916279316, 0.0325542613863945, -0.0158368032425642, 0.029946884140372276, 0.033568695187568665, -0.011168300174176693, 0.027276553213596344, -0.002304298337548971, 0.0015820588450878859, -0.06766719371080399, 0.053196221590042114, -0.028901435434818268, -0.019959868863224983, -0.02826954424381256, 0.0850929543375969, 0.03009721077978611, -0.04410571977496147, -0.07109826058149338, 0.033733490854501724, -0.0397099070250988, -0.02130257710814476, -0.026168912649154663, -0.004680839832872152, -0.0641397163271904, 0.06487388908863068, -0.005515755619853735, 0.005553386639803648, 0.053401194512844086, -0.024723175913095474, -0.027333278208971024, 0.003668419551104307, 0.08193989098072052, 0.07926519960165024, 0.05812669172883034, 0.005397661589086056, 0.07944333553314209, -0.010257086716592312, -0.04613746702671051, 0.014202896505594254, -0.011988058686256409, -0.013301091268658638, -0.01312975212931633, 0.01949872262775898, 0.04662176966667175, -0.010476688854396343, 0.07897930592298508, -0.04419000446796417, -0.018087109550833702, -0.0002639664162416011, 0.0246441550552845, 0.017051424831151962, 0.04089687764644623, 0.008120696991682053, 0.012008264660835266, -0.01622334122657776, -0.0512223020195961, 0.059433408081531525, -0.03039131872355938, 0.0210556797683239, 0.022040104493498802, 0.003083583200350404, 0.01959528774023056, -0.020034894347190857, 0.04402203857898712, 0.09320104867219925, -0.0344223715364933, -0.023511668667197227, 0.0025904488284140825, 0.014758207835257053, 0.0009204365196637809, 0.03367749601602554, -0.002259516855701804, 0.011306075379252434, -0.0191505029797554, -0.04236384108662605, -0.0007347972714342177, -0.005018796771764755, -0.014975354075431824, 0.025474265217781067, -0.03485828638076782, -0.0014309504767879844, 0.0241768267005682, -0.006157963536679745, -0.03947482630610466, -0.030545687302947044, -0.052916575223207474, -0.02683030068874359, -0.04807106778025627, 0.021254215389490128, 0.014500103890895844, 0.017991019412875175, -0.027698008343577385, -0.0347062312066555, 0.0004115825577173382, -0.02222483418881893, 0.02498309314250946, -0.06530410796403885, -0.007517215330153704, 0.004081248305737972, 0.02504083886742592, 0.012993110343813896, 0.024680476635694504, 0.06369155645370483, 0.024278821423649788, 0.0010907815303653479, -0.013718758709728718, 0.005182240158319473, 0.033956073224544525, 0.02510169893503189, 0.011188935488462448, -0.10157901793718338, 0.01884092390537262, -0.0034430543892085552, -0.01700933277606964, -0.06568269431591034, -0.013382377102971077, 0.023425273597240448, -0.00879043061286211, 0.0452842153608799, -0.027698274701833725, 0.011257014237344265, -0.051305320113897324, -0.01383799035102129, -0.00413168128579855, -0.013088881969451904, 0.04326191917061806, -0.03055731952190399, 0.07277485728263855, 0.009703818708658218, 0.01097651943564415, -0.03574094548821449, -0.029407914727926254, 0.006594517733901739, 0.0164523683488369, -0.04336904361844063, -0.0065539442002773285, -0.046304140239953995, -0.09365525841712952, -0.03672497346997261, 0.008373396471142769, -0.04885917529463768, -0.037930261343717575, 0.020180044695734978, 0.013890345580875874, -0.017237035557627678, 0.02865433134138584, -0.026381108909845352, -0.00712946942076087, -0.032241180539131165, -0.005948231555521488, 0.006843751762062311, 0.04732407256960869, 0.0009726554271765053, 0.007453134749084711, 0.036643531173467636, -0.032293837517499924, -0.006022867746651173, -0.015651434659957886, 0.018376067280769348, 0.03348875418305397, 0.0014335229061543941, -0.018470579758286476 ]
[ -0.0717182606458664, 0.007774900179356337, -0.02741129696369171, -0.0008843183168210089, 0.034474488347768784, -0.03761322423815727, -0.0365976057946682, 0.0021946511697024107, 0.0035567507147789, -0.02290860190987587, 0.006474682595580816, -0.05317634716629982, 0.007696414366364479, -0.0003258652286604047, 0.09063487499952316, 0.04140082746744156, 0.01051165908575058, -0.017771484330296516, -0.010644038207828999, 0.006885376293212175, 0.016564486548304558, 0.013083238154649734, -0.027042049914598465, -0.02964547462761402, -0.010369560681283474, 0.013480822555720806, 0.025688178837299347, -0.0320948027074337, -0.022516818717122078, -0.19375140964984894, 0.02501947619020939, 0.0025573321618139744, 0.04539153724908829, 0.0052986363880336285, -0.014552850276231766, 0.08754240721464157, 0.002558101201429963, 0.02961164154112339, -0.010836550034582615, 0.05594149976968765, 0.015638606622815132, 0.0011958254035562277, -0.06406691670417786, -0.024021640419960022, 0.042264673858881, 0.02830272726714611, -0.007452066987752914, -0.03988127037882805, -0.004833487793803215, 0.039617475122213364, -0.04654235020279884, -0.000882043270394206, 0.012694751843810081, 0.003331487998366356, -0.008662019856274128, 0.017622603103518486, 0.04174772650003433, 0.0641530230641365, -0.0014830371364951134, -0.006657693535089493, 0.016135776415467262, -0.008031390607357025, -0.13253436982631683, 0.12199375033378601, 0.010925655253231525, 0.037936341017484665, -0.036433495581150055, -0.005759816616773605, -0.02110050432384014, 0.08293340355157852, 0.011062673293054104, -0.02061583660542965, -0.006836459971964359, 0.06280820816755295, 0.038014817982912064, 0.01775086112320423, 0.016156937927007675, 0.003007052466273308, 0.036945901811122894, -0.040260396897792816, -0.05614520609378815, -0.010713241063058376, -0.05797490105032921, -0.059832219034433365, -0.022359324619174004, -0.0017716167494654655, -0.01877366192638874, 0.031112253665924072, 0.0037142804358154535, 0.011351749300956726, 0.0017362270737066865, -0.018735304474830627, 0.010798504576086998, -0.002824526745826006, -0.06937870383262634, -0.03380659222602844, 0.00039233488496392965, 0.01248176395893097, -0.010659470222890377, 0.44649213552474976, -0.0012233302695676684, 0.00197383644990623, 0.07430636137723923, -0.014334022998809814, 0.014996277168393135, 0.01362574938684702, -0.008377386257052422, -0.028997216373682022, -0.02203604392707348, -0.030415482819080353, 0.014018381014466286, -0.006276566535234451, 0.05188896507024765, -0.04543004557490349, 0.021795498207211494, -0.020488958805799484, 0.04947816953063011, 0.014668029733002186, 0.010782893747091293, -0.018741236999630928, -0.039756085723638535, -0.006911109667271376, 0.0013754990650340915, -0.024244528263807297, 0.006629453971982002, -0.035993609577417374, 0.05255095660686493, 0.06273813545703888, 0.05413992330431938, -0.010204912163317204, 0.05149134248495102, -0.04391079396009445, -0.11661960184574127, -0.02732839435338974, -0.006946687586605549, 0.011771397665143013, 0.026583435013890266, -0.04473904147744179, 0.017704183235764503, 0.04766511544585228, -0.016543613746762276, -0.03745465725660324, 0.017993127927184105, -0.01711898110806942, -0.04245886951684952, 0.1278117299079895, 0.014471365138888359, -0.04161267355084419, -0.02385738305747509, -0.03251751512289047, -0.001953922212123871, 0.008532818406820297, 0.0007545839762315154, -0.05445839837193489, 0.029205992817878723, 0.05273718759417534, 0.06659021228551865, -0.008772066794335842, -0.024374479427933693, -0.006274084560573101, -0.006974914576858282, -0.02786162495613098, -0.0446438305079937, 0.052260663360357285, 0.025085391476750374, -0.09476740658283234, -0.06458237767219543, -0.02101088874042034, -0.026689322665333748, -0.05811404809355736, -0.007640440482646227, 0.0022011788096278906, -0.03950392082333565, 0.029873568564653397, 0.036391690373420715, -0.043520569801330566, -0.03606770187616348, -0.0007751582306809723, 0.029050450772047043, 0.01868657022714615, -0.016071535646915436, -0.017511216923594475, -0.0410778634250164, 0.022339902818202972, -0.043094832450151443, -0.07890338450670242, -0.05089263245463371, -0.02434568852186203, 0.005804595537483692, 0.013724979013204575, 0.01675805263221264, -0.018559740856289864, -0.04663528501987457, 0.05800921469926834, -0.02625376358628273, -0.003537168027833104, 0.014223822392523289, -0.021301934495568275, -0.004140156786888838, -0.023689694702625275, -0.030305901542305946, 0.044079892337322235, -0.00038228617631830275, 0.03221571072936058, -0.0348116010427475, 0.05966737121343613, 0.040188018232584, -0.030813734978437424, 0.09225724637508392, 0.019147804006934166, -0.02113359235227108, -0.038357216864824295, 0.0004313819226808846, 0.014771184884011745, -0.012375712394714355, -0.034725964069366455, -0.019818518310785294, 0.0001736650156090036, 0.03167794644832611, 0.01687869429588318, -0.040846142917871475, -0.08198521286249161, -0.047763943672180176, -0.335203617811203, -0.010782310739159584, -0.007060856558382511, 0.006517721340060234, 0.032523248344659805, -0.05960883945226669, -0.009318762458860874, -0.031680718064308167, 0.01815841719508171, -0.016709301620721817, 0.06633880734443665, -0.011919598095119, 0.03739981725811958, -0.061559922993183136, 0.00010675860539777204, 0.024760471656918526, -0.0399460643529892, 0.00017165334429591894, 0.014501762576401234, 0.02360859327018261, 0.013505780138075352, -0.019345760345458984, -0.013190455734729767, -0.06268543750047684, -0.026314016431570053, -0.03386528044939041, 0.1126188263297081, 0.07815379649400711, 0.0747634619474411, -0.05509378761053085, 0.052050117403268814, 0.017083315178751945, -0.013342014513909817, -0.07864628732204437, -0.04160669818520546, -0.004258580040186644, 0.031529366970062256, 0.03760497272014618, 0.015093307010829449, -0.034590352326631546, -0.06281494349241257, 0.02311313897371292, -0.04580757021903992, -0.04801485314965248, -0.03689732402563095, 0.019285675138235092, -0.0011478719534352422, -0.04253900796175003, -0.0021282925736159086, 0.0717509537935257, 0.02019815519452095, -0.011068670079112053, 0.010725957341492176, 0.01634153537452221, -0.02672642283141613, -0.010117952711880207, -0.10145934671163559, 0.006586295086890459, -0.011694385670125484, -0.03249242529273033, 0.03820918872952461, 0.03398125246167183, 0.07038650661706924, -0.05110938847064972, -0.017526447772979736, 0.00791361927986145, 0.009393113665282726, 0.010944543406367302, 0.025823744013905525, -0.050458263605833054, -0.009798560291528702, 0.09375010430812836, -0.02536478452384472, 0.01998378522694111, -0.004078222904354334, 0.04879807308316231, -0.012705530039966106, 0.012757578864693642, 0.01744634471833706, -0.004218780901283026, 0.04137760028243065, 0.015341490507125854, 0.02815214917063713, -0.035534635186195374, -0.035016853362321854, 0.07129509747028351, 0.000667580112349242, -0.035189539194107056, 0.05661309137940407, 0.006307493895292282, -0.013891271315515041, 0.01989634893834591, -0.02467346377670765, -0.04485118016600609, 0.03040955401957035, 0.0056889960542321205, -0.26472386717796326, 0.036058660596609116, 0.06258933991193771, 0.07581157982349396, -0.014126111753284931, 0.029093505814671516, 0.03214750811457634, -0.05930555611848831, -0.0013533859746530652, 0.05072415620088577, 0.047293055802583694, 0.02591860666871071, -0.0027298100758343935, -0.034181855618953705, -0.0015638808254152536, -0.01584899052977562, 0.06615754216909409, 0.004701324738562107, -0.028118697926402092, 0.006893079727888107, 0.015173033811151981, -0.000710410822648555, 0.17959551513195038, 0.0034460837487131357, -0.010700521990656853, -0.014116046018898487, -0.014323968440294266, 0.0076855942606925964, 0.04018983617424965, 0.006690927781164646, -0.014149939641356468, 0.009438581764698029, 0.05537361279129982, 0.004676829092204571, 0.02042268216609955, -0.07241439819335938, -0.02566894143819809, 0.04643002897500992, 0.0304584838449955, -0.004936894401907921, -0.0004326511698309332, 0.031711969524621964, -0.04516388848423958, 0.04254020005464554, 0.04240020737051964, 0.040563490241765976, 0.04311554506421089, -0.026743890717625618, -0.08377892524003983, 0.001141573186032474, -0.011374155059456825, -0.011588949710130692, -0.017102930694818497, 0.018016912043094635, 0.02271694876253605, 0.0777139738202095, 0.0018339448142796755, -0.02440745197236538, 0.060512617230415344, 0.027087939903140068, -0.01049496978521347, 0.009096411988139153, 0.11165909469127655, 0.02260785922408104, 0.02651338465511799 ]
[ 0.02337934821844101, -0.015065576881170273, 0.007183904759585857, -0.029728638008236885, 0.01232590526342392, 0.03976869955658913, 0.006309277843683958, 0.0010507176630198956, -0.005067687947303057, 0.01083080843091011, -0.011982277035713196, 0.01184147410094738, 0.02307034470140934, -0.02955057844519615, 0.019942397251725197, 0.020140917971730232, 0.033118948340415955, -0.0050420863553881645, 0.01948702707886696, 0.004730474669486284, -0.02646777778863907, 0.00841153971850872, 0.010606225579977036, -0.00360290240496397, 0.018874866887927055, 0.03383827209472656, -0.05659117177128792, 0.04030707851052284, 0.038662753999233246, -0.11507775634527206, -0.022420817986130714, -0.030788952484726906, -0.001087545184418559, -0.0016883967909961939, -0.02892315573990345, -0.00012915382103528827, -0.04101484641432762, 0.033485811203718185, -0.024043630808591843, -0.01814189739525318, -0.003700250294059515, -0.005658979993313551, 0.010741759091615677, 0.01916617341339588, -0.00043175616883672774, -0.017572298645973206, -0.03346722573041916, -0.025480423122644424, -0.014321651309728622, -0.011713511310517788, -0.037362247705459595, -0.01782790571451187, 0.009469190612435341, 0.006805336102843285, -0.0410584956407547, -0.0007779573788866401, 0.013727790676057339, -0.0005976477405056357, 0.015070050954818726, -0.021342497318983078, -0.007537484634667635, -0.04881660267710686, -0.0427367128431797, -0.007875720039010048, 0.023275073617696762, -0.025867920368909836, -0.0256794560700655, 0.023999258875846863, -0.02181246690452099, 0.03206406161189079, -0.03576190397143364, 0.012670555151998997, -0.032667070627212524, 0.008409013971686363, 0.006139004603028297, 0.0011636349372565746, -0.004202328156679869, -0.02884085848927498, -0.024668848142027855, -0.013413996435701847, 0.0065981363877654076, 0.011551979929208755, 0.030141575261950493, 0.016281619668006897, 0.021069103851914406, -0.011220413260161877, -0.010516112670302391, 0.00766165042296052, -0.0036933848168700933, -0.016227561980485916, -0.025580644607543945, 0.013125800527632236, 0.016380837187170982, 0.01569940708577633, -0.05914047360420227, 0.023196615278720856, 0.007645599544048309, -0.0306713730096817, -0.02039204351603985, 0.8444520831108093, 0.008895717561244965, 0.0015002618310973048, 0.043038468807935715, 0.022599060088396072, 0.019034486263990402, -0.01230634655803442, -0.019785456359386444, -0.0030150737147778273, 0.009734689258038998, -0.06561639904975891, 0.027391845360398293, 0.0011829828144982457, 0.012046796269714832, 0.010527350008487701, -0.006070301868021488, 0.007782657165080309, 0.004674151074141264, -0.023920731619000435, -0.006120755802839994, 0.029039230197668076, 0.01322159729897976, 0.008378616534173489, 0.018352754414081573, 0.014556365087628365, -0.03750999644398689, -0.18591967225074768, 0.019268326461315155, -6.963683635568926e-33, 0.039791010320186615, -0.01967821829020977, 0.0015276705380529165, 0.012815697118639946, 0.009366746991872787, 0.010291636921465397, 0.015445386059582233, 0.016635216772556305, 0.0018381285481154919, -0.049486372619867325, 0.029166044667363167, -0.033266693353652954, -0.003573538502678275, 0.0027229811530560255, 0.02849150449037552, 0.02603299729526043, -0.0025172014720737934, 0.008581075817346573, 0.025947658345103264, 0.005689332727342844, 0.014078515581786633, 0.04640479385852814, 0.01174083910882473, 0.000656473042909056, -0.04906933009624481, 0.020331576466560364, 0.015182647854089737, 0.0044321720488369465, -0.005800824612379074, -0.04250719025731087, -0.023749733343720436, -0.00043713857303373516, 0.006088258232921362, -0.027364278212189674, 0.016747191548347473, -0.04669098183512688, -0.06445516645908356, 0.017635853961110115, -0.013634338043630123, -0.01725093647837639, -0.03654983267188072, 0.020035777240991592, -0.04413967952132225, -0.04421615973114967, -0.022055061534047127, 0.0036455513909459114, 0.005669179372489452, 0.03876381739974022, 0.0017766074743121862, 0.0512661412358284, 0.03796777129173279, 0.03052264265716076, -0.029555469751358032, -0.017449310049414635, 0.00963944848626852, 0.02213761955499649, 0.009351237677037716, -0.005618616472929716, 0.000030368002626346424, 0.012496750801801682, -0.014854097738862038, 0.007789141032844782, 0.04288138821721077, 0.038231175392866135, 0.0064130909740924835, 0.005252327304333448, 0.04494762793183327, -0.030696917325258255, 0.046857040375471115, 0.03190875053405762, -0.06880079209804535, 0.019284911453723907, -0.011140955612063408, -0.012460707686841488, 0.027462394908070564, -0.03295169398188591, -0.022171439602971077, -0.022928766906261444, 0.030547557398676872, 0.036705318838357925, 0.021315284073352814, -0.026537753641605377, 0.018100710585713387, -0.054057713598012924, -0.025478219613432884, -0.0677018091082573, 0.01913110911846161, -0.027506569400429726, -0.041014302521944046, 0.0021846711169928312, 0.043221812695264816, 0.04495474696159363, -0.014393843710422516, 0.0006318474770523608, 0.0051466310396790504, 7.294311258204864e-33, 0.04626055434346199, 0.015692826360464096, -0.003806246677413583, 0.0055088987573981285, 0.0397847518324852, 0.0017068454762920737, 0.016202135011553764, 0.012324702925980091, -0.02878466434776783, 0.027677128091454506, -0.006624763365834951, -0.025065138936042786, -0.04967932030558586, 0.016393305733799934, 0.04951511695981026, -0.01878470741212368, 0.0046739960089325905, -0.010928074829280376, -0.0008316673338413239, -0.0043962253257632256, -0.00576517079025507, 0.023912347853183746, 0.026907233521342278, 0.010806387290358543, -0.012656423263251781, 0.019507315009832382, 0.0027366981375962496, 0.013200482353568077, 0.0029477768111974, 0.008992824703454971, 0.018972013145685196, -0.01162884384393692, -0.005566801410168409, -0.01654229871928692, 0.0003936048597097397, 0.03265079855918884, 0.043628595769405365, 0.009480739943683147, -0.026288164779543877, -0.0032841842621564865, 0.038986511528491974, 0.04394702985882759, -0.027749078348279, -0.01459252368658781, -0.01874249428510666, 0.0031738753896206617, -0.012235126458108425, -0.004175616428256035, -0.02580995112657547, -0.006157190538942814, 0.013578644022345543, -0.008432439528405666, 0.04506847634911537, 0.0037129539996385574, 0.008434107527136803, -0.033199142664670944, -0.02846604213118553, 0.03736327961087227, -0.02144157513976097, 0.023960325866937637, -0.010409913957118988, 0.01926437020301819, -0.014152648858726025, -0.0022864430211484432, -0.011471888050436974, 0.007283191196620464, -0.0319647490978241, 0.028071077540516853, -0.07844392210245132, 0.035719212144613266, 0.006548898760229349, -0.02075432613492012, 0.015198945999145508, 0.03014177642762661, 0.04122215881943703, 0.0041154054924845695, 0.0231394711881876, -0.011832358315587044, -0.011126059107482433, -0.026051359251141548, -0.003190011251717806, -0.005748626310378313, 0.033959388732910156, 0.014500830322504044, -0.00046404931345023215, 0.013806773349642754, -0.030460543930530548, 0.011479368433356285, 0.003867760533466935, 0.00042373689939267933, 0.03104720078408718, -0.0016038237372413278, 0.004945480264723301, 0.010305487550795078, 0.05108480900526047, -1.287451567577591e-8, -0.037950072437524796, -0.03535023704171181, -0.03538431227207184, 0.022535055875778198, -0.02199026197195053, 0.02757083810865879, 0.0015515804989263415, -0.002174797235056758, 0.029509905725717545, 0.0023793731816112995, 0.05269499123096466, -0.017458472400903702, 0.010314208455383778, 0.0016494396841153502, -0.004107439890503883, -0.04947652295231819, -0.00206133839674294, -0.01662849634885788, 0.0148554015904665, -0.00959313940256834, 0.013036023825407028, 0.0626910924911499, 0.03695889562368393, -0.03781623765826225, 0.006409742869436741, -0.016426466405391693, 0.01194874756038189, -0.07462634891271591, -0.03352545574307442, -0.00009142857743427157, 0.02925093285739422, -0.03864634037017822, -0.030009949579834938, -0.03483682870864868, -0.003316539106890559, -0.019947541877627373, 0.022576265037059784, -0.017460614442825317, 0.01810383051633835, 0.004129666369408369, -0.027992039918899536, 0.020060447975993156, 0.0012256614863872528, -0.03329292684793472, 0.003710648277774453, -0.005492165684700012, -0.018290184438228607, -0.00649008946493268, 0.01648491993546486, -0.03608371689915657, -0.03713780269026756, 0.0003135518927592784, 0.01567990891635418, 0.010810253210365772, 0.027229808270931244, -0.009114283137023449, 0.025097157806158066, 0.016131887212395668, -0.04650352522730827, -0.008669055998325348, 0.03675425425171852, -0.01104581356048584, 0.002946313703432679, -0.012384636327624321 ]
intro-to-retrieval-augmented-generation
https://markhneedham.com/blog/2024/01/12/intro-to-retrieval-augmented-generation
false
2023-03-20 02:44:37
DuckDB/Python: Cannot combine LEFT and RIGHT relations of different connections!
[ "duckdb" ]
[ "duckdb" ]
I've been playing around with DuckDB over the weekend and ran into an interesting problem while using the Relational API in the Python package. We're going to explore that in this blog post. == Set up To get started, let's install DuckDB: [source, bash] ---- pip install duckdb ---- And now let's open a Python shell and import the package: [source, python] ---- import duckdb ---- Next, let's create a DuckDB connection and import the `httpfs` module, which we'll use in just a minute: [source, python] ---- con = duckdb.connect('file.db') con.sql("INSTALL httpfs") con.sql("LOAD httpfs") ---- == Importing ATP matches We're going to import some matches from the ATP tennis tour using the following code: [source, python] ---- csv_files = [ f"https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_{year}.csv" for year in range(1968,2024) ] con.execute(""" CREATE OR REPLACE TABLE matches AS SELECT * FROM read_csv_auto($1, types={'winner_seed': 'VARCHAR', 'loser_seed': 'VARCHAR'}) """, [csv_files]) ---- We can check that the table has been populated by running the following command: [source, python] ---- con.table("matches").project("tourney_date, winner_name, loser_name, score").limit(5) ---- .Output [source, python] ---- ┌──────────────┬─────────────────┬─────────────────┬─────────┐ │ tourney_date │ winner_name │ loser_name │ score │ │ int64 │ varchar │ varchar │ varchar │ ├──────────────┼─────────────────┼─────────────────┼─────────┤ │ 19680708 │ Douglas Smith │ Peter Ledbetter │ 6-1 7-5 │ │ 19680708 │ Louis Pretorius │ Maurice Pollock │ 6-1 6-1 │ │ 19680708 │ Cecil Pedlow │ John Mulvey │ 6-2 6-2 │ │ 19680708 │ Tom Okker │ Unknown Fearmon │ 6-1 6-1 │ │ 19680708 │ Armistead Neely │ Harry Sheridan │ 6-2 6-4 │ └──────────────┴─────────────────┴─────────────────┴─────────┘ ---- == Nadal vs Djokovic I wanted to find the matches between Rafael Nadal and Novak Djokovic and in order to keep using the Relational API, I needed to use the `sql` function to do this, which meant I couldn't pass in any parameters. I therefore ended up with the following code: [source, python] ---- players_df = pd.DataFrame({"player1": ["Rafael Nadal"], "player2": ["Novak Djokovic"]}) players = duckdb.from_df(players_df).set_alias("players") ---- I then wrote the following code to find the matches won by Nadal: [source, python] ---- matches = con.table("matches") matches.join(players, condition="matches.winner_name = players.player1 AND matches.loser_name = players.player2", how="inner" ) ---- Unfortunately, this threw an error: [source, text] ---- duckdb.Error: Cannot combine LEFT and RIGHT relations of different connections! ---- The mistake I made here is that the `players` and `matches` relations were created on different DuckDB connections, as the error suggests. If we want to get them on the same connection, we need to update the following line: [source, python] ---- players = duckdb.from_df(players_df) ---- To instead read: [source, python] ---- players = con.from_df(players_df).set_alias("players") ---- This will make sure that the `players` relation is part of the same connection as `matches`. I hadn't realised that calling `duckdb.from_df` actually adds the relation to the default DuckDB connection. If we then run the join query again: [source, python] ---- (matches .join(players, condition="matches.winner_name = players.player1 AND matches.loser_name = players.player2", how="inner") .project("tourney_name, tourney_date, round") .limit(5) ) ---- We'll get the following output: [source, text] ---- ┌──────────────────────┬──────────────┬─────────┐ │ tourney_name │ tourney_date │ round │ │ varchar │ int64 │ varchar │ ├──────────────────────┼──────────────┼─────────┤ │ Roland Garros │ 20060529 │ QF │ │ Indian Wells Masters │ 20070305 │ F │ │ Rome Masters │ 20070507 │ QF │ │ Roland Garros │ 20070528 │ SF │ │ Wimbledon │ 20070625 │ SF │ └──────────────────────┴──────────────┴─────────┘ ---- Success!
In this post we'll learn how to solve an error that you might run into when using DuckDB's Relational API.
uploads/2023/03/duckdb-join-banner.png
[ -0.027101049199700356, 0.010639868676662445, -0.023267684504389763, 0.04280476272106171, 0.09568365663290024, 0.0006825421005487442, -0.01477434579282999, 0.06268714368343353, -0.0037735074292868376, -0.01846253126859665, -0.003486836329102516, -0.0072550163604319096, -0.07811043411493301, -0.015353207476437092, -0.003900348674505949, 0.06586188822984695, 0.06489028036594391, -0.010278473608195782, 0.05722951143980026, 0.0014948126627132297, -0.007056918926537037, 0.06256614625453949, -0.035463862121105194, 0.044733885675668716, 0.018799087032675743, 0.030664430931210518, 0.003301703603938222, 0.007673959713429213, -0.06743592023849487, -0.012487459927797318, 0.0457913912832737, -0.025290710851550102, 0.012785378843545914, -0.028506353497505188, 0.012041397392749786, 0.018969550728797913, -0.01105637475848198, 0.027908185496926308, -0.010657141916453838, 0.01854993961751461, -0.05723600462079048, 0.023425161838531494, -0.009672985412180424, 0.006172110792249441, -0.05204474553465843, 0.019251177087426186, -0.0346095971763134, 0.03291187807917595, 0.014829187653958797, -0.001444858149625361, -0.04914732277393341, 0.05527394264936447, -0.035898011177778244, -0.018973438069224358, 0.012403503991663456, 0.01996796205639839, 0.03299684077501297, -0.08428063988685608, 0.019110843539237976, -0.024294942617416382, 0.036076419055461884, -0.005174385849386454, -0.0035294676199555397, 0.014174382202327251, 0.026281148195266724, -0.0034059069585055113, -0.016224676743149757, 0.04804597795009613, -0.04054677486419678, 0.005006498657166958, -0.0004799239686690271, -0.01174190640449524, -0.0513884462416172, -0.04241335019469261, 0.01425367221236229, -0.038133200258016586, -0.002057441044598818, 0.0558648407459259, 0.03587783873081207, 0.06286079436540604, -0.025590160861611366, 0.016034506261348724, 0.0072001004591584206, 0.026266813278198242, 0.008898486383259296, -0.052568137645721436, -0.03092205338180065, 0.008164175786077976, -0.0641610249876976, 0.0370304249227047, 0.02932039275765419, -0.07137579470872879, 0.02060730569064617, -0.007223690859973431, -0.04288816824555397, -0.01620742492377758, -0.002300791209563613, 0.017179366201162338, 0.02137499675154686, -0.0338631309568882, -0.028844190761446953, -0.01949927769601345, 0.0290554016828537, 0.02460305392742157, -0.07121925055980682, -0.010723268613219261, -0.019540047273039818, -0.020506398752331734, -0.0021106568165123463, 0.041726067662239075, -0.017606381326913834, -0.01686474308371544, -0.011675984598696232, -0.01676788181066513, -0.09533069282770157, 0.07502395659685135, 0.005789296235889196, -0.054469894617795944, -0.00806515570729971, 0.02104000188410282, 0.05610129237174988, 0.02375832386314869, -0.01022467389702797, 0.07197324186563492, 0.03132503479719162, 0.011587613262236118, 0.006982777733355761, 0.04834888130426407, 0.016122641041874886, -0.0642547681927681, -0.03168350085616112, 0.0444890595972538, -0.0029687953647226095, 0.009597438387572765, 0.02019049972295761, -0.009927940554916859, -0.00885475892573595, 0.006491184234619141, 0.06592290103435516, 0.03383146971464157, 0.020016537979245186, -0.008355742320418358, -0.01184862945228815, 0.01263678539544344, 0.014137214981019497, 0.025917449966073036, 0.013572508469223976, -0.035153452306985855, -0.026831958442926407, 0.025194821879267693, 0.014577480033040047, 0.023858152329921722, 0.06107229366898537, -0.025913890451192856, 0.003467369358986616, 0.09335063397884369, 0.03539007529616356, 0.023027662187814713, -0.03400339558720589, -0.004378192126750946, 0.0444214828312397, 0.026456443592905998, -0.021570000797510147, 0.021969925612211227, 0.005063299555331469, -0.039991386234760284, 0.012990345247089863, 0.048378873616456985, -0.02310832217335701, 0.026885129511356354, -0.05645047500729561, -0.0685989111661911, 0.08937466889619827, -0.023489581421017647, -0.0052652498707175255, 0.02472376823425293, 0.06483064591884613, 0.03798322007060051, 0.022099342197179794, 0.016618553549051285, -0.0760868489742279, 0.0354405976831913, -0.017124658450484276, 0.014548996463418007, 0.025418167933821678, 0.015672335401177406, 0.08431193232536316, 0.015036732889711857, 0.0017976515227928758, 0.049277856945991516, -0.07837329059839249, -0.10095968097448349, -0.056752290576696396, 0.003284929785877466, 0.04816501960158348, -0.04915482923388481, -0.003827559296041727, 0.06663219630718231, 0.03185638040304184, 0.03551802039146423, -0.014158723875880241, 0.026778096333146095, 0.0004558955552056432, -0.03690710663795471, -0.05027034878730774, 0.03326214477419853, 0.030361300334334373, -0.02181677147746086, -0.018320240080356598, 0.0032447180710732937, -0.03541364148259163, -0.021576441824436188, 0.024669190868735313, -0.04275175929069519, 0.04469083622097969, 0.02729012258350849, 0.03163470700383186, -0.019848022609949112, 0.010914905928075314, -0.055953554809093475, 0.013561691157519817, 0.03621005639433861, -0.015512988902628422, -0.009986058808863163, -0.0019003651104867458, 0.13030165433883667, 0.05176270380616188, -0.025602255016565323, -0.053731519728899, 0.04608398675918579, 0.0059071993455290794, -0.027785776183009148, 0.014462447725236416, -0.03062903694808483, -0.01500203087925911, -0.009511607699096203, -0.030491903424263, -0.03593645989894867, 0.01494711171835661, -0.014780311845242977, -0.00847533717751503, 0.05690216273069382, -0.016840560361742973, 0.04830286651849747, -0.004114140756428242, -0.05098738148808479, -0.036121439188718796, -0.022404823452234268, -0.052178334444761276, -0.01505565457046032, 0.023133160546422005, -0.004968430381268263, 0.037153586745262146, -0.017974259331822395, -0.030257724225521088, -0.013154185377061367, -0.07529626041650772, 0.04954288899898529, 0.04234437271952629, 0.050936318933963776, -0.03327461704611778, 0.04803912714123726, -0.0014890901511535048, 0.032408855855464935, -0.03701162338256836, -0.04218325763940811, -0.049933355301618576, 0.00074080063495785, 0.01071679126471281, 0.021772457286715508, -0.0025367431808263063, 0.014979078434407711, -0.028018563985824585, -0.0015932426322251558, 0.01969168893992901, 0.0018198371399194002, 0.020518947392702103, -0.018767952919006348, -0.009196002967655659, -0.055109720677137375, -0.006665309425443411, 0.038683198392391205, -0.07962971180677414, -0.03882615640759468, 0.022985052317380905, -0.06093067303299904, 0.01264670118689537, -0.06638900935649872, -0.008840996772050858, 0.011750243604183197, 0.03226304054260254, 0.045125432312488556, -0.021541375666856766, 0.008302825503051281, 0.08445847034454346, 0.0021981538739055395, 0.005941540468484163, 0.01618197374045849, 0.03661663830280304, 0.0442030131816864, 0.043107837438583374, 0.024778790771961212, 0.029252903535962105, 0.008962168358266354, -0.010777449235320091, -0.03354803845286369, 0.009565207175910473, -0.03612023964524269, -0.278384804725647, 0.03855530545115471, -0.0030234521254897118, -0.03280755504965782, 0.02587566338479519, -0.019416948780417442, 0.01419892255216837, -0.033471494913101196, -0.02568625845015049, 0.010960389859974384, -0.028564156964421272, -0.05064762756228447, -0.005480314139276743, 0.03452780470252037, 0.0071763889864087105, 0.016560886055231094, 0.00813797302544117, -0.04703442007303238, -0.008960038423538208, 0.06356259435415268, 0.010295486077666283, -0.05580820143222809, 0.010713659226894379, 0.025541536509990692, 0.008872166275978088, 0.044486306607723236, -0.056203532963991165, 0.04252498969435692, -0.06305232644081116, -0.03460218384861946, -0.00023464577679987997, 0.005624102894216776, 0.0002567557676229626, -0.004986024461686611, -0.028819391503930092, -0.01782314106822014, 0.028693566098809242, -0.012926183640956879, 0.012225870974361897, 0.02591029368340969, -0.053309425711631775, -0.032640594989061356, 0.0006683797691948712, 0.011241852305829525, 0.08723808079957962, -0.003756169695407152, -0.05165746435523033, -0.012437030673027039, -0.034882768988609314, 0.06454208493232727, -0.03452064096927643, -0.030505232512950897, -0.02007104642689228, 0.008172520436346531, -0.012582819908857346, 0.03256441652774811, -0.010931570082902908, 0.013261465355753899, -0.033401165157556534, -0.018383760005235672, 0.021992485970258713, -0.010818464681506157, -0.017264598980545998, -0.028311889618635178, 0.013590455055236816, -0.07698822766542435, -0.017767857760190964, -0.00872084405273199, 0.07078814506530762, 0.06937072426080704, -0.031215153634548187, 0.010576489381492138, -0.032089319080114365, -0.10792196542024612, -0.008926378563046455, -0.02938738465309143, -0.0006337942904792726, -0.005941392853856087, 0.007926197722554207, 0.020113082602620125, -0.028971942141652107, -0.026848694309592247, 0.015504513867199421, 0.020791761577129364, 0.021102827042341232, -0.03691466525197029, -0.003960743546485901, 0.015254434198141098, -0.033131808042526245, -0.005939118564128876, 0.057315293699502945, -0.048732928931713104, -0.01720675826072693, -0.01301500666886568, -0.0327756442129612, 0.04565025866031647, 0.001162167638540268, 0.024464596062898636, 0.010021370835602283, 0.03974352777004242, 0.03575507178902626, -0.04814565181732178, -0.028081391006708145, -0.035581935197114944, -0.025712210685014725, -0.016813961789011955, -0.050430215895175934, 0.020611906424164772, 0.030884752050042152, 0.05655914172530174, -0.021487506106495857, -0.04106466844677925, 0.012330112978816032, -0.06409283727407455, -0.010990902781486511, -0.016825808212161064, 0.020987795665860176, -0.0067871687933802605, -0.00309851230122149, -0.01926509290933609, -0.06274072825908661, 0.009522458538413048, 0.016511166468262672, 0.007392348255962133, -0.060065194964408875, -0.023586759343743324, -0.0046232398599386215, -0.013936874456703663, 0.0057909609749913216, -0.01394280418753624, -0.02998526394367218, 0.016265053302049637, 0.05110093206167221, -0.03353926166892052, 0.04104608669877052, -0.020702889189124107, -0.03633738309144974, -0.012199127115309238, -0.006423980928957462, 0.013716466724872589, -0.0026242148596793413, -0.0022641741670668125, 0.024120789021253586, 0.042971909046173096, 0.0292767696082592, 0.0071207438595592976, 0.01251344382762909, -0.004332088399678469, 0.015469244681298733, 0.015888435766100883, 0.011484724469482899, -0.03534572944045067, 0.02782050147652626, -0.05345461890101433, -0.05041036754846573, -0.02175537683069706, 0.031486596912145615, 0.008369618095457554, -0.007647253107279539, -0.026787612587213516, 0.015620531514286995, -0.044244248420000076, 0.02175956964492798, -0.011983620934188366, 0.007003468926995993, 0.07002102583646774, 0.03188444674015045, 0.002833839040249586, -0.011338488198816776, -0.006614110432565212, 0.0034632619936019182, 0.014103027060627937, -0.03430081903934479, -0.002830551704391837, -0.0068754758685827255, -0.005452008452266455, 0.013211616314947605, 0.02669590525329113, 0.0191199891269207, 0.011300327256321907, -0.012874866835772991, -0.02480621449649334, 0.009969341568648815, 0.01811809092760086, 0.05006680265069008, 0.036294061690568924, -0.02853723056614399, -0.009456026367843151, 0.011887500062584877, -0.039313193410634995, -0.013894478790462017, -0.018410565331578255, 0.01678226701915264, 0.007297044154256582, -0.04050096124410629, -0.06864998489618301, 0.02546003647148609, 0.04132501035928726, -0.03594804182648659, 0.00827528815716505, -0.010637369006872177, -0.02534984052181244, -0.01856120489537716, 0.07407421618700027, 0.07038181275129318, -0.0674171894788742, -0.015228371135890484, -0.01918105036020279, 0.006842848379164934, 0.012020316906273365, 0.03860892727971077, -0.04461921006441116, -0.014879843220114708, -0.019156886264681816, 0.016810603439807892, 0.004606422036886215, -0.00819937139749527, -0.011707451194524765, -0.0000712502296664752, 0.015759263187646866, 0.0034080881159752607, 0.0005259633180685341, -0.0010599043453112245, -0.01286759041249752, -0.025035042315721512, 0.010922009125351906, -0.02961081825196743, -0.026690881699323654, 0.013274166733026505, -0.007615000940859318, 0.0391240157186985, -0.049424752593040466, 0.023547248914837837, 0.000053461120842257515, -0.013468446210026741, -0.02443123422563076, -0.05312448367476463, 0.013888109475374222, 0.003507941961288452, 0.030844442546367645, -0.018929846584796906, -0.007937310263514519, -0.006349207367748022, -0.0038049444556236267, -0.04299929365515709, -0.019396092742681503, 0.0022971867583692074, -0.04504920169711113, 0.029061028733849525, 0.042829956859350204, -0.01473697554320097, 0.04141637682914734, -0.0025743949227035046, -0.03664423152804375, 0.046548325568437576, -0.014309211634099483, -0.021373417228460312, 0.016998257488012314, -0.05386078357696533, 0.0332789272069931, 0.006541157606989145, 0.04736732691526413, -0.09109397977590561, 0.06450498104095459, 0.030461620539426804, 0.010880939662456512, 0.0508071593940258, -0.0012745433486998081, 0.055014338344335556, -0.024561364203691483, -0.037145037204027176, -0.09354886412620544, -0.013604781590402126, 0.03072524629533291, -0.008204270154237747, -0.015448532067239285, 0.03439928591251373, -0.044272176921367645, 0.017847111448645592, -0.07180134952068329, -0.013982185162603855, 0.04251382499933243, -0.009770293720066547, 0.001522808917798102, 0.0120455427095294, -0.04745381698012352, 0.007912295870482922, 0.06459172815084457, 0.0008123972220346332, -0.02626367099583149, -0.02659599296748638, 0.08277220278978348, 0.004431547597050667, 0.06241784989833832, -0.007045037113130093, -0.035052914172410965, 0.06395502388477325, -0.0035317610017955303, 0.013640613295137882, 0.022442376241087914, -0.01940884441137314, 0.036389339715242386, 0.03119288943707943, 0.009105215780436993, -0.008513801731169224, 0.009773719124495983, -0.03386972099542618, -0.06358496844768524, -0.008304339833557606, 0.012604761868715286, 0.0040698666125535965, -0.05986184999346733, 0.05551544204354286, -0.004358637612313032, -0.05472666025161743, -0.04786139726638794, 0.018391132354736328, -0.032385606318712234, 0.010885399766266346, -0.024252749979496002, -0.00972685031592846, -0.06719621270895004, 0.056803345680236816, 0.014317497611045837, -0.008397653698921204, 0.04085741192102432, 0.007761042565107346, -0.00775089580565691, 0.034022144973278046, 0.06550896912813187, 0.07949237525463104, 0.030117595568299294, 0.04810592159628868, 0.054137639701366425, -0.017638839781284332, -0.04710500314831734, 0.008862465620040894, -0.028264684602618217, -0.017284365370869637, -0.04404808580875397, -0.019319424405694008, 0.0652269646525383, 0.011342073790729046, 0.06451631337404251, 0.016735060140490532, 0.0037656137719750404, -0.0026769263204187155, -0.0016613189363852143, 0.04037509486079216, 0.045934636145830154, -0.0015735056949779391, 0.04457231983542442, 0.007176253013312817, -0.04030078276991844, 0.038169633597135544, 0.002745221834629774, -0.017567051574587822, 0.007986810058355331, -0.02039147913455963, 0.03182486444711685, 0.019055768847465515, 0.051204755902290344, 0.07916032522916794, -0.012877024710178375, -0.013932265341281891, -0.005439360160380602, 0.03492628037929535, 0.0027719661593437195, 0.046342361718416214, -0.02201179414987564, -0.022984566166996956, -0.017565853893756866, -0.04563849791884422, -0.023193728178739548, -0.012412510812282562, -0.05338899418711662, 0.031904518604278564, -0.016023026779294014, -0.011339959688484669, 0.04665405675768852, 0.002263016765937209, -0.03672284632921219, -0.042189523577690125, -0.044932201504707336, -0.01490116398781538, -0.04113148897886276, -0.02716139517724514, 0.017396150156855583, -0.040473200380802155, -0.021110599860548973, -0.03522094711661339, -0.014414948411285877, -0.020153498277068138, 0.008969423361122608, -0.02584155462682247, -0.06758131831884384, 0.004884305875748396, 0.031101593747735023, 0.03412587568163872, 0.01630539447069168, 0.06531696766614914, -0.014147444628179073, -0.028489282354712486, -0.026484809815883636, 0.020052099600434303, 0.03927208110690117, -0.008945217356085777, 0.025056255981326103, -0.07856492698192596, 0.02702363394200802, 0.011599956080317497, 0.023049473762512207, -0.07435236126184464, 0.023825541138648987, 0.04029102623462677, -0.005762617103755474, 0.0470268689095974, -0.02320375293493271, 0.005969496443867683, -0.0247761569917202, -0.018371857702732086, -0.016033411026000977, 0.016851527616381645, 0.03842301294207573, -0.036501046270132065, 0.07245618104934692, 0.03730440512299538, 0.00023680462618358433, -0.04631757363677025, -0.022477034479379654, -0.015830272808670998, 0.03256780654191971, -0.028752828016877174, -0.03480498492717743, -0.03546461835503578, -0.08953877538442612, -0.015143868513405323, 0.042985234409570694, -0.03897803649306297, -0.02571999654173851, -0.001731772325001657, 0.033021342009305954, -0.0004329809744376689, 0.021210135892033577, -0.046842947602272034, -0.006443670950829983, -0.013378046452999115, -0.031036818400025368, -0.03697197884321213, 0.03829982876777649, -0.02483978122472763, 0.0010716052493080497, 0.01589721441268921, -0.02578621730208397, -0.013940037228167057, 0.00446264399215579, 0.022899052128195763, 0.050398312509059906, -0.022404225543141365, 0.013462873175740242 ]
[ -0.07944419234991074, -0.049712833017110825, -0.05783505365252495, -0.04329812154173851, 0.05468610301613808, -0.05203483998775482, -0.014209747314453125, -0.013300676830112934, 0.03017307072877884, 0.006685708183795214, -0.008313995786011219, -0.08088725805282593, 0.023196380585432053, -0.014573084190487862, 0.0367862842977047, -0.018467947840690613, -0.003882835851982236, -0.09224668145179749, -0.029471686109900475, 0.04735716059803963, -0.04636862874031067, -0.022945458069443703, -0.05532796308398247, -0.05164496600627899, -0.02243519201874733, 0.039576198905706406, 0.05290666222572327, -0.03508064150810242, 0.0035316890571266413, -0.20034217834472656, 0.020785490050911903, -0.021729229018092155, -0.0049902102909982204, 0.005546449217945337, 0.03484589233994484, -0.002153237583115697, 0.04017925262451172, -0.02573619782924652, 0.004171251319348812, 0.022009562700986862, 0.023630337789654732, -0.007596180308610201, -0.052978355437517166, -0.017821451649069786, 0.06651904433965683, -0.008765208534896374, -0.011608945205807686, -0.004570361226797104, 0.0036950118374079466, 0.001603329204954207, -0.061653148382902145, 0.018413012847304344, -0.010783366858959198, -0.0370815247297287, 0.0036216825246810913, 0.04911680519580841, 0.057258784770965576, 0.07144412398338318, -0.013709619641304016, 0.020938942208886147, 0.0394071601331234, 0.011133626103401184, -0.11739291250705719, 0.10546880960464478, 0.013057028874754906, 0.06123596057295799, -0.04380865767598152, -0.004654788412153721, 0.005515129771083593, 0.0796799510717392, -0.022740449756383896, -0.04312311112880707, -0.015570680610835552, 0.07078172266483307, 0.016916533932089806, -0.022701460868120193, -0.011741116642951965, 0.026037471368908882, 0.017785483971238136, -0.003473578719422221, -0.04342466965317726, -0.025503505021333694, -0.04371324181556702, -0.03516348451375961, -0.03500499948859215, 0.024504944682121277, -0.021447446197271347, 0.025579659268260002, -0.00597469974309206, 0.001840125536546111, 0.04431251809000969, 0.013008254580199718, 0.048795416951179504, 0.02815314568579197, -0.07168979942798615, 0.00297152204439044, 0.0295737124979496, 0.007627506274729967, 0.0008680527098476887, 0.4314649701118469, -0.0035753485281020403, -0.004161862190812826, 0.013269378803670406, 0.024871420115232468, -0.015057281590998173, -0.0044288961216807365, -0.0066404687240719795, -0.06578613817691803, 0.02016173116862774, -0.03625357523560524, 0.005478918552398682, -0.023190809413790703, 0.07336797565221786, -0.0449521578848362, 0.011587915010750294, 0.04375794157385826, -0.015588145703077316, 0.02402205392718315, -0.03144330158829689, 0.01056650560349226, -0.020723536610603333, 0.0029418219346553087, 0.02079368196427822, 0.04156767949461937, -0.001681445399299264, 0.0013224605936557055, 0.008704290725290775, 0.05957826226949692, 0.03176829218864441, -0.0028195492923259735, 0.05900802090764046, -0.024758290499448776, -0.0878235399723053, 0.009884624741971493, 0.022877465933561325, -0.005813156254589558, 0.011778227984905243, -0.012709366157650948, 0.017744697630405426, 0.024933991953730583, -0.005229565314948559, -0.08699594438076019, 0.04914844408631325, 0.000005473258624988375, -0.055184125900268555, 0.11470193415880203, 0.02614881657063961, -0.025804199278354645, -0.05606700852513313, -0.04334809258580208, 0.0012376541271805763, 0.011486204341053963, 0.03903144225478172, -0.04603921249508858, -0.00866416934877634, 0.037863556295633316, 0.07117879390716553, -0.0038917327765375376, -0.0820295661687851, -0.03376734256744385, -0.031029289588332176, -0.05658464878797531, -0.03254124894738197, 0.009696455672383308, 0.04984412342309952, -0.14061588048934937, -0.01023837085813284, 0.007599439937621355, 0.007487193681299686, -0.05896709859371185, 0.016510944813489914, 0.006131934467703104, -0.06642390042543411, 0.023894524201750755, 0.02868121676146984, -0.045413676649332047, -0.023324716836214066, 0.00429543387144804, 0.05575542896986008, -0.010644347406923771, -0.012199919670820236, -0.004427921026945114, -0.06302984058856964, -0.020819811150431633, -0.04890793561935425, -0.08456559479236603, -0.08053024858236313, 0.021564606577157974, 0.0018499461002647877, -0.0265814159065485, -0.04540642723441124, -0.01245282031595707, -0.07266870886087418, 0.060609009116888046, -0.014324200339615345, -0.04508252069354057, 0.02780679054558277, 0.018330087885260582, 0.02384253777563572, -0.02871868945658207, 0.005347524303942919, 0.01858322136104107, 0.003084021620452404, 0.03679167106747627, -0.036794133484363556, 0.028388813138008118, 0.02798806130886078, -0.05696942284703255, 0.06858187913894653, 0.027347464114427567, -0.008259950205683708, -0.011156871914863586, -0.03831607475876808, 0.024151071906089783, -0.027875613421201706, -0.017646584659814835, -0.002049423288553953, 0.004253094550222158, 0.029692981392145157, 0.013824377208948135, -0.02198537439107895, 0.0064502134919166565, -0.007923641242086887, -0.3511664867401123, -0.025910044088959694, -0.05266021564602852, -0.009417269378900528, 0.01800098828971386, -0.0345313660800457, 0.009942442178726196, -0.01618894375860691, 0.01008584164083004, 0.05617060884833336, 0.04379347711801529, -0.04329798370599747, 0.02406211569905281, -0.07158712297677994, -0.030650950968265533, 0.03287949040532112, -0.02625170908868313, -0.00782577320933342, -0.01845116727054119, 0.029400665313005447, 0.02292540669441223, -0.015085676684975624, -0.06281083822250366, -0.03080011159181595, 0.01170254498720169, -0.0403134748339653, 0.13442474603652954, 0.02481326088309288, 0.0473874993622303, -0.045563746243715286, 0.06666442006826401, 0.005239652469754219, -0.009650541469454765, -0.08713836967945099, 0.02569514885544777, -0.006992375943809748, -0.008456342853605747, -0.002615120727568865, 0.02088913507759571, -0.04302414879202843, -0.05669138953089714, 0.015383793041110039, -0.0075587378814816475, -0.02789192646741867, -0.023391198366880417, 0.01670202799141407, -0.0002488413010723889, -0.037605974823236465, -0.030584124848246574, 0.10024768859148026, 0.020550444722175598, 0.02513638138771057, 0.034101396799087524, 0.029538171365857124, 0.006417484022676945, -0.02657278999686241, -0.05214961618185043, -0.0030086508486419916, 0.012311897240579128, 0.0051807439886033535, 0.04274732619524002, 0.0246235691010952, 0.0207021813839674, -0.027236470952630043, -0.015142782591283321, -0.02808331698179245, 0.029483972117304802, 0.018532544374465942, 0.04508544132113457, -0.016657071188092232, -0.03024931438267231, 0.07350923120975494, 0.01728859171271324, 0.0518387034535408, 0.022802073508501053, 0.05057530105113983, 0.014780843630433083, 0.008504926227033138, 0.02770352177321911, 0.010084409266710281, 0.06130313500761986, -0.05161454901099205, 0.060550302267074585, -0.011549312621355057, 0.01889972761273384, 0.05647599697113037, 0.033756788820028305, -0.0187799371778965, 0.07875361293554306, -0.005192150827497244, -0.0002456098154652864, -0.005802180152386427, -0.032081834971904755, -0.02787572331726551, 0.04543336108326912, -0.0007651029154658318, -0.27104276418685913, 0.035509102046489716, 0.04618317633867264, 0.05593932420015335, 0.02574189193546772, 0.02034558355808258, 0.0426485650241375, -0.014885392040014267, 0.01029510423541069, -0.0028534620068967342, 0.016578808426856995, -0.0005897778901271522, -0.013182255439460278, 0.0011185342445969582, -0.0043245782144367695, -0.00296573992818594, 0.04526983201503754, -0.0015375952934846282, 0.03274596109986305, 0.019564736634492874, 0.034380991011857986, -0.0013706391910091043, 0.15389342606067657, 0.026554279029369354, 0.0466165766119957, 0.026475975289940834, -0.017484232783317566, 0.025214293971657753, 0.06942635774612427, 0.026808004826307297, -0.013910568319261074, -0.005082444287836552, 0.02465229667723179, 0.0015404464211314917, 0.024683091789484024, -0.03193634748458862, -0.04055974632501602, 0.04193709045648575, 0.015637904405593872, -0.0259019136428833, -0.017909454181790352, 0.014279856346547604, -0.042836230248212814, 0.04624852165579796, 0.0408562570810318, 0.02535037323832512, -0.008316763676702976, -0.037243250757455826, -0.029965415596961975, 0.013908364810049534, -0.015455085784196854, -0.067972332239151, 0.00419586431235075, -0.029550157487392426, 0.008944458328187466, 0.04641781747341156, 0.066426120698452, 0.0013508939882740378, 0.03432250767946243, 0.013453797437250614, 0.016368413344025612, -0.058869607746601105, 0.08332251757383347, 0.05692906305193901, -0.0014573055086657405 ]
[ -0.00275587011128664, 0.009740813635289669, -0.016406366601586342, 0.03870921954512596, -0.010697326622903347, 0.013660956174135208, 0.009876079857349396, -0.002678589429706335, -0.008367067202925682, -0.02938191592693329, -0.05643414333462715, 0.007398515939712524, 0.03523847833275795, -0.006738926749676466, 0.003387803677469492, -0.03787582367658615, -0.019382337108254433, -0.027056913822889328, 0.03640240430831909, -0.00291007780469954, -0.05821923539042473, 0.0409519299864769, 0.04940849915146828, 0.01686782017350197, -0.04427482187747955, -0.009274986572563648, -0.048533644527196884, -0.00633463729172945, -0.0007087248959578574, -0.11557377129793167, -0.0653621181845665, -0.036113232374191284, -0.0032146060839295387, 0.004962381441146135, -0.0013196691870689392, -0.007468337658792734, -0.010013206861913204, 0.019873643293976784, -0.0035654285456985235, -0.0007156756473705173, 0.014225839637219906, -0.05806287005543709, -0.011970175430178642, 0.025292998179793358, -0.016182756051421165, -0.012376389466226101, -0.051276884973049164, 0.03183586522936821, 0.01544046401977539, -0.000008429531590081751, -0.05361165106296539, 0.016669094562530518, -0.022274447605013847, 0.01981666497886181, 0.03556724265217781, 0.04762011393904686, 0.003076593391597271, 0.02590714395046234, -0.024542873725295067, -0.02875632233917713, -0.01581726036965847, -0.012076868675649166, -0.01662379316985607, -0.03429276496171951, -0.015896353870630264, -0.039689090102910995, -0.04736575484275818, 0.015360347926616669, 0.026644762605428696, 0.01080738939344883, -0.03431614860892296, 0.01886826381087303, -0.026751266792416573, -0.018010949715971947, -0.02062266692519188, 0.01912720687687397, 0.013844833709299564, -0.034448206424713135, 0.04590519517660141, 0.024830034002661705, -0.062356993556022644, -0.010946957394480705, 0.003828119719401002, -0.009201365523040295, 0.023336052894592285, -0.045321278274059296, 0.01890694350004196, -0.016450783237814903, -0.009702394716441631, -0.027953796088695526, -0.00661315256729722, -0.012781722471117973, 0.024667175486683846, 0.026463758200407028, -0.08094267547130585, 0.02994866855442524, -0.0011572516523301601, -0.01693698763847351, -0.007011767476797104, 0.8208873271942139, -0.006121894810348749, 0.013748230412602425, 0.020979421213269234, 0.003781695384532213, 0.025582782924175262, 0.011487815529108047, -0.0006668529822491109, -0.028124600648880005, 0.029512226581573486, -0.05299725383520126, -0.00792951975017786, 0.004559295251965523, 0.020491331815719604, 0.013052377849817276, 0.009376799687743187, 0.05469854176044464, -0.016173843294382095, -0.0013991656014695764, -0.012031306512653828, -0.007841987535357475, 0.0361575223505497, -0.01890977844595909, 0.0064728762954473495, -0.010837136767804623, 0.02583206444978714, -0.16213665902614594, 0.010593017563223839, -6.749548237783445e-33, 0.028024693951010704, -0.054633669555187225, 0.047123298048973083, -0.019267793744802475, 0.033990636467933655, 0.019843189045786858, 0.019624490290880203, -0.0014303810894489288, -0.0331089124083519, -0.02673426643013954, 0.021485988050699234, 0.0015757036162540317, 0.002656530821695924, -0.03472353518009186, 0.06556802988052368, 0.010880205780267715, -0.016234466806054115, 0.051349613815546036, 0.029762987047433853, 0.01857142336666584, 0.04439803212881088, 0.06702424585819244, 0.019907401874661446, 0.013987559825181961, 0.03369845449924469, 0.02057536318898201, -0.013363868929445744, -0.0238912645727396, -0.019590016454458237, -0.024813208729028702, -0.07521713525056839, 0.0009030359797179699, -0.02820134535431862, -0.07737943530082703, 0.0049560354091227055, -0.04198997840285301, -0.03471552953124046, -0.02840476483106613, -0.02640761435031891, -0.016266513615846634, -0.05060232803225517, -0.0025965182576328516, -0.004224291071295738, -0.013317425735294819, -0.05312072113156319, 0.00752229243516922, 0.03925550729036331, 0.04764882102608681, -0.016387512907385826, 0.044930748641490936, 0.0237575750797987, -0.042217615991830826, 0.004998687654733658, 0.01250335481017828, 0.014053542166948318, 0.026956869289278984, 0.02109040506184101, 0.009069115854799747, 0.009670757688581944, -0.0216885507106781, 0.023220272734761238, -0.03731325641274452, 0.01434624008834362, 0.0009618696058169007, 0.014966597780585289, 0.003020549425855279, 0.011970583349466324, 0.009424157440662384, 0.02355598844587803, 0.003747427137568593, -0.03867275267839432, 0.025358889251947403, -0.04156098514795303, -0.051991257816553116, 0.025324057787656784, 0.003250726731494069, 0.021513881161808968, -0.01974191516637802, 0.02871527709066868, 0.015081211924552917, 0.03393146023154259, 0.024287478998303413, -0.02268531173467636, -0.03807362914085388, -0.041360218077898026, -0.02267461270093918, 0.00864163413643837, 0.034502554684877396, 0.012055148370563984, -0.01946292631328106, 0.06406823545694351, 0.05775284022092819, 0.021761547774076462, -0.02922757901251316, -0.01283082365989685, 6.847420632116878e-33, 0.01404662150889635, -0.0018125822534784675, -0.0025378058198839426, -0.010108746588230133, 0.06637561321258545, -0.057272471487522125, 0.048257529735565186, -0.009699543938040733, -0.008383670821785927, 0.01582367904484272, -0.043584853410720825, -0.009502814151346684, -0.0050064739771187305, 0.01761777326464653, 0.036207858473062515, 0.021542729809880257, -0.013069571927189827, 0.0036655834410339594, 0.019663358107209206, -0.017400547862052917, -0.00746030593290925, 0.013874414376914501, 0.051391471177339554, 0.02074195072054863, 0.017317943274974823, 0.03015310876071453, 0.0029569813050329685, -0.01278090849518776, 0.009622292593121529, 0.01575031317770481, -0.023988040164113045, 0.0068018813617527485, -0.028244974091649055, -0.0022546544205397367, -0.05132594704627991, 0.011699213646352291, 0.011134026572108269, -0.006733044516295195, 0.027934296056628227, -0.01621788553893566, 0.03530669957399368, 0.03481180593371391, -0.0009293628972955048, 0.025621384382247925, 0.030332354828715324, -0.0016333882231265306, 0.01216982677578926, 0.02630157209932804, -0.021224157884716988, -0.008777198381721973, 0.006197837647050619, 0.004958077799528837, -0.0062651257030665874, -0.00025048860698007047, 0.026134684681892395, -0.017175281420350075, -0.008123180828988552, 0.028549429029226303, -0.016426261514425278, -0.018187155947089195, -0.006523309741169214, 0.020295534282922745, -0.06047559902071953, 0.04142147675156593, -0.021034635603427887, 0.007025883533060551, -0.055944833904504776, -0.0075315493158996105, -0.012540454976260662, -0.03338490054011345, -0.018506823107600212, -0.017661333084106445, 0.017016807571053505, 0.05557730048894882, 0.036833442747592926, 0.015097119845449924, -0.02512437477707863, 0.013419012539088726, 0.011827203445136547, 0.05893993377685547, 0.004684155341237783, 0.0064962985925376415, 0.006514443550258875, -0.005448183510452509, -0.014929092489182949, 0.01599414087831974, -0.007254261989146471, -0.0167649257928133, 0.023768531158566475, 0.002252165926620364, -0.009480740875005722, -0.02682674676179886, -0.005772056058049202, 0.036277517676353455, 0.01011118944734335, -1.2478071909072241e-8, -0.03359585255384445, 0.02259567566215992, -0.008557170629501343, -0.0006568862008862197, 0.06109770014882088, 0.013994673267006874, -0.018449679017066956, -0.011509394273161888, 0.007507597096264362, 0.019215630367398262, 0.013585233129560947, -0.0024104996118694544, 0.03976014629006386, 0.030197544023394585, 0.026219382882118225, -0.012213723734021187, 0.010053131729364395, -0.03375422582030296, -0.0013893039431422949, -0.014464971609413624, -0.004014215432107449, 0.03140629082918167, -0.015723111107945442, 0.005400106776505709, -0.012460854835808277, 0.008387863636016846, 0.03433523327112198, -0.06448265165090561, -0.018916014581918716, 0.005225639324635267, 0.0002668913803063333, -0.03452898561954498, -0.04184668883681297, -0.025915602222085, -0.002087754663079977, -0.0126830218359828, 0.0012659416534006596, 0.010448665358126163, 0.0022012817207723856, 0.031657278537750244, -0.05678286775946617, 0.0030292319133877754, -0.002036969643086195, -0.020464392378926277, 0.0023718480952084064, -0.009611302986741066, -0.015110768377780914, 0.03563584387302399, 0.00971311703324318, -0.05580219626426697, 0.013841653242707253, -0.035448770970106125, 0.009151521138846874, -0.015013281255960464, 0.03522995486855507, 0.05477910861372948, 0.009327860549092293, -0.025461092591285706, -0.007285172585397959, -0.01610877923667431, 0.0168951116502285, -0.015316967852413654, 0.03771571069955826, -0.021181395277380943 ]
duckdb-cannot-combine-left-right-relations
https://markhneedham.com/blog/2023/03/20/duckdb-cannot-combine-left-right-relations
false
2023-03-10 02:44:37
Apache Pinot: Geospatial - java.nio.BufferUnderflowException: null
[ "pinot" ]
[ "pinot" ]
I've been working on a blog post showing how to use https://dev.startree.ai/docs/pinot/recipes/geospatial-indexing?utm_source=medium&utm_medium=direct&utm_campaign=dr_markhneedham_emea_gb[Geospatial indexes^] in Apache Pinot and ran into an interesting exception that I'll explain in this blog post. == Set up But first, let's take a look at the structure of the data that I'm ingesting from Apache Kafka. Below is an example of one of those events: [source, json] ---- { "trainCompany": "London Overground", "atocCode": "LO", "lat": 51.541615, "lon": -0.122528896, "ts": "2023-03-10 11:35:20", "trainId": "202303107145241" } ---- As you've probably guessed, I'm importing the locations of trains in the UK. I created the following schema: .Pinot Schema [source, json] ---- { "schemaName": "trains", "dimensionFieldSpecs": [ {"name": "trainCompany", "dataType": "STRING"}, {"name": "trainId", "dataType": "STRING"}, {"name": "atocCode", "dataType": "STRING"}, {"name": "point", "dataType": "BYTES"} ], "dateTimeFieldSpecs": [ { "name": "ts", "dataType": "TIMESTAMP", "format": "1:MILLISECONDS:EPOCH", "granularity": "1:MILLISECONDS" } ] } ---- The first three columns are automatically mapped from the data source. The `point` column is going to store a `Point` object based on the lat/lon values in the event. We'll create that object in the table config, which you can see below: .Pinot Table Config [source, json] ---- { "tableName": "trains", "tableType": "REALTIME", "segmentsConfig": { "timeColumnName": "ts", "schemaName": "trains", "replication": "1", "replicasPerPartition": "1" }, "fieldConfigList": [ { "name": "point", "encodingType":"RAW", "indexType":"H3", "properties": { "resolutions": "5" } } ], "tableIndexConfig": { "loadMode": "MMAP", "noDictionaryColumns": ["point"], "streamConfigs": { "streamType": "kafka", "stream.kafka.topic.name": "trains", "stream.kafka.broker.list": "kafka-geospatial:9093", "stream.kafka.consumer.type": "lowlevel", "stream.kafka.consumer.prop.auto.offset.reset": "smallest", "stream.kafka.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kafka20.KafkaConsumerFactory", "stream.kafka.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder", "realtime.segment.flush.threshold.rows":"1000", "realtime.segment.flush.threshold.time":"1h" } }, "ingestionConfig": { "transformConfigs": [ { "columnName": "point", "transformFunction": "STPoint(lon, lat, 1)" } ] }, "tenants": {}, "metadata": {} } ---- The function under `ingestionConfig.transformConfigs` creates a Point Geomtry object, which is stored in the `point` column. We also create a Geospatial index on the `point` column, which is defined under `fieldConfigList`. == The BufferUnderflowException Once I'd created this table the data started ingesting, but I was sometimes ending up with the following error on the Pinot server: [source, text] ---- pinot-server-geospatial | 2023/03/09 12:49:05.889 ERROR [BaseCombineOperator] [pqw-5] Caught exception while processing query: QueryContext{_tableName='trains_REALTIME', _subquery=null, _selectExpressions=[ts, trainId, atocCode, trainCompany, stastext(point)], _aliasList=[null, null, null, null, null], _filter=stwithin(point,'84000000010000000600000000bfc097f3a00000004049c107e8691db8bfbbd01b7fffffff4049c10bc3b2dbd8bfbac631c00000014049bf9dcb81ef38bfc0ae8a200000014049be7fdbcf81e0bfc3b13b000000004049bf9dee86bbf8bfc097f3a00000004049c107e8691db8') = '1', _groupByExpressions=null, _havingFilter=null, _orderByExpressions=[ts DESC], _limit=10, _offset=0, _queryOptions={responseFormat=sql, groupByMode=sql, timeoutMs=10000}, _expressionOverrideHints={}, _explain=false} pinot-server-geospatial | java.nio.BufferUnderflowException: null pinot-server-geospatial | at java.nio.Buffer.nextGetIndex(Buffer.java:643) ~[?:?] pinot-server-geospatial | at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:165) ~[?:?] pinot-server-geospatial | at org.apache.pinot.segment.local.utils.GeometrySerializer.readGeometry(GeometrySerializer.java:83) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.segment.local.utils.GeometrySerializer.readGeometry(GeometrySerializer.java:79) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.segment.local.utils.GeometrySerializer.deserialize(GeometrySerializer.java:68) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.core.geospatial.transform.function.BaseBinaryGeoTransformFunction.transformGeometryToIntValuesSV(BaseBinaryGeoTransformFunction.java:99) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.core.geospatial.transform.function.StWithinFunction.transformToIntValuesSV(StWithinFunction.java:46) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.core.operator.dociditerators.ExpressionScanDocIdIterator.processProjectionBlock(ExpressionScanDocIdIterator.java:140) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.core.operator.dociditerators.ExpressionScanDocIdIterator.applyAnd(ExpressionScanDocIdIterator.java:120) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.core.operator.filter.H3InclusionIndexFilterOperator.getFilterBlock(H3InclusionIndexFilterOperator.java:131) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.core.operator.filter.H3InclusionIndexFilterOperator.getNextBlock(H3InclusionIndexFilterOperator.java:113) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.core.operator.filter.H3InclusionIndexFilterOperator.getNextBlock(H3InclusionIndexFilterOperator.java:49) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] pinot-server-geospatial | at org.apache.pinot.core.operator.BaseOperator.nextBlock(BaseOperator.java:43) ~[pinot-all-0.12.0-jar-with-dependencies.jar:0.12.0-118f5e065cb258c171d97a586183759fbc61e2bf] ---- I did a bit of debugging, which revealed that the value in the `point` column was sometimes an empty byte array. It turns out that an empty byte array is actually the default value for the `BYTES` column type and that default value was being inserted when my transformation function failed. And the transformation function failed if either of the lat or lon values were null! I figured this out by running the following command against the Kafka stream: [source, bash] ---- kcat -C -b localhost:9092 -t trains -u | jq 'select(.lat == null or .lon == null)' ---- And eventually saw the following output: [source, text] ---- { "trainCompany": "London Overground", "atocCode": "LO", "lat": null, "lon": null, "ts": "2023-03-10 12:56:13", "trainId": "202303107145033" } % Reached end of topic trains [0] at offset 4475923 ---- This error was stopping any segments being committed, so I needed to fix it. The fix that I've come up with is to create a default value that represents a point near the arctic as I'm fairly sure no UK trains will be going that far North! == Default values for BYTES column The default value goes in the schema config and it should be a hex encoded value. I ran the following query to get a Hex encoded representation of a location in the Arctic: [source, sql] ---- SELECT ST_GeomFromText('POINT (0.6861134172138761 83.5002942140996)') FROM trains ---- This query returns the value `003fe5f4a42008f90c4054e004d205fbe4`, which I added to my schema, as shown below: [source, json] ---- { "schemaName": "trains", "dimensionFieldSpecs": [ {"name": "trainCompany", "dataType": "STRING"}, {"name": "trainId", "dataType": "STRING"}, {"name": "atocCode", "dataType": "STRING"}, {"name": "point", "dataType": "BYTES", "defaultNullValue": "003fe5f4a42008f90c4054e004d205fbe4"} ], "dateTimeFieldSpecs": [ { "name": "ts", "dataType": "TIMESTAMP", "format": "1:MILLISECONDS:EPOCH", "granularity": "1:MILLISECONDS" } ] } ---- When we're querying the table we can filter those values out like this: [source, sql] ---- select $docId, $hostName, $segmentName, * from trains where point <> ST_GeomFromText('POINT (0.6861134172138761 83.5002942140996)') limit 10 ---- == The AddTableCommand When I was trying to create the schema and table from scratch with a default value, I found that I couldn't use the `AddTable` command as it was getting into a mess by trying to decode the default value twice - once in the command itself and once on the Pinot Controller when it received the table config. The error message looked like this: [source, text] ---- 2023/03/10 13:15:04.401 INFO [AddTableCommand] [main] {"code":400,"error":"Invalid TableConfigs. Cannot convert value: 'AD/l9KQgCPkMQFTgBNIF++Q=' to type: BYTES\n at [Source: (String)\"{\"tableName\":\"trains\",\"schema\":{\"schemaName\":\"trains\",\"primaryKeyColumns\":null,\"dimensionFieldSpecs\":[{\"name\":\"trainCompany\",\"maxLength\":512,\"dataType\":\"STRING\",\"transformFunction\":null,\"defaultNullValue\":\"null\",\"singleValueField\":true,\"virtualColumnProvider\":null,\"defaultNullValueString\":\"null\"},{\"name\":\"trainId\",\"maxLength\":512,\"dataType\":\"STRING\",\"transformFunction\":null,\"defaultNullValue\":\"null\",\"singleValueField\":true,\"virtualColumnProvider\":null,\"defaultNullValueString\":\"null\"},{\"name\":\"at\"[truncated 2231 chars]; line: 1, column: 777] (through reference chain: org.apache.pinot.spi.config.TableConfigs[\"schema\"]->org.apache.pinot.spi.data.Schema[\"dimensionFieldSpecs\"]->java.util.ArrayList[3]->org.apache.pinot.spi.data.DimensionFieldSpec[\"defaultNullValue\"])"} ---- I'm not really sure how to get this to work, but luckily there is a workaround. First, create the schema: [source, bash] ---- docker run \ --network geospatial \ -v $PWD/config:/config \ apachepinot/pinot:0.12.0-arm64 AddSchema \ -schemaFile /config/schema.json \ -controllerHost "pinot-controller-geospatial" \ -exec ---- And then create the table using the HTTP API: [source, bash] ---- curl -X POST http://localhost:9000/tables --data @config/table.json ---- Not ideal, but it works! == Conclusion This ended up being super fiddly, but it does work! If you're stuck on something similar, do join the https://dev.startree.ai/slack-invite?utm_source=medium&utm_medium=direct&utm_campaign=dr_markhneedham_emea_gb[StarTree Community Slack^] and I'll do my best to help.
In this post we'll learn about the BufferUnderflowException when storing Geospatial points in Apache Pinot.
uploads/2023/03/geospatial-underflow-banner.png
[ -0.014866434969007969, -0.008547130972146988, -0.008010984398424625, 0.04387430474162102, 0.06109949201345444, 0.01656518504023552, 0.02856840007007122, 0.05656430125236511, 0.004980394151061773, 0.002581644104793668, -0.02488688752055168, -0.02907429076731205, -0.05807339400053024, 0.040795404464006424, -0.013239963911473751, 0.08771029859781265, 0.07915135473012924, -0.009546784684062004, 0.01443236880004406, -0.015550731681287289, 0.049885015934705734, 0.029569409787654877, 0.011439469642937183, 0.05508042871952057, 0.01885046251118183, 0.00893679540604353, 0.0038816104643046856, 0.026558924466371536, -0.04900098219513893, 0.003406031057238579, 0.009209336712956429, 0.02261323109269142, 0.0022021490149199963, 0.0015252995071932673, 0.014183172024786472, 0.024505164474248886, -0.030265238136053085, -0.00025797364651225507, 0.0040151579305529594, 0.03778726980090141, -0.06769683957099915, 0.02194162644445896, -0.0017540216213092208, 0.015973294153809547, -0.013249528594315052, 0.017617635428905487, -0.05770457535982132, 0.023915886878967285, 0.0005141515866853297, 0.01530379056930542, -0.06498555094003677, 0.04019526019692421, -0.022445451468229294, 0.02182691916823387, -0.021554553881287575, 0.047410715371370316, 0.0015159758040681481, -0.07082538306713104, 0.06862055510282516, -0.03585294634103775, -0.006273797247558832, -0.004122087731957436, 0.00001859526673797518, 0.0010132644092664123, 0.0018880213610827923, -0.03180864080786705, -0.016413167119026184, 0.04721398279070854, -0.05101125314831734, -0.01827750913798809, 0.012137624435126781, -0.006807782221585512, -0.008574363775551319, 0.006984427105635405, 0.015285132452845573, -0.04499701410531998, -0.02919095940887928, 0.0689239650964737, 0.018152350559830666, 0.05675284191966057, -0.04026335850358009, -0.028724491596221924, 0.004856131970882416, 0.014879412017762661, 0.012255090288817883, -0.032057106494903564, -0.04901546239852905, -0.026993658393621445, -0.049074530601501465, 0.06842682510614395, 0.020958783105015755, -0.024499287828803062, 0.035022031515836716, -0.000005782385414931923, 0.004896820057183504, 0.0007359857554547489, 0.015888994559645653, -0.025677358731627464, -0.022759245708584785, -0.020250286906957626, -0.04450780898332596, 0.0009898794814944267, 0.030720418319106102, 0.08467293530702591, -0.07030332088470459, -0.04614913836121559, -0.04186585173010826, -0.005185543093830347, 0.010061221197247505, 0.010824228636920452, -0.0423402339220047, -0.008520273491740227, -0.013881074264645576, 0.010165813378989697, -0.0707920640707016, 0.0680399164557457, 0.03309408575296402, -0.03488621488213539, 0.02401934750378132, 0.015442516654729843, 0.08280783891677856, 0.02647358365356922, -0.03252612426877022, 0.07017729431390762, -0.010903333313763142, 0.03326806426048279, -0.013685410842299461, 0.03498212248086929, 0.00926610641181469, -0.06443969160318375, -0.03831649571657181, 0.03417835757136345, 0.011182470247149467, -0.016344532370567322, 0.0053873867727816105, -0.043497610837221146, -0.010495384223759174, 0.010305342264473438, 0.07266108691692352, 0.018730686977505684, -0.01995578408241272, -0.019491756334900856, -0.0013279375853016973, -0.0030598111916333437, 0.0469728484749794, 0.03082488477230072, -0.01155147422105074, -0.04780057445168495, -0.03073541633784771, 0.01305109728127718, 0.013595791533589363, 0.05117062106728554, 0.06151987612247467, -0.02422436699271202, -0.011773827485740185, 0.09098509699106216, -0.002698491094633937, 0.010224167257547379, -0.023666245862841606, -0.0030814444180577993, 0.04943303018808365, 0.029590439051389694, 0.022692421451210976, 0.04074054956436157, 0.007158208638429642, -0.03382866829633713, 0.015623830258846283, 0.0535622164607048, -0.03007499687373638, 0.005800495855510235, -0.05314183607697487, -0.05683872103691101, 0.06775812804698944, -0.058148350566625595, -0.00266103888861835, 0.06397664546966553, 0.0777471587061882, 0.03585929423570633, 0.02696961537003517, 0.015993840992450714, -0.07773681730031967, 0.05576350539922714, 0.01823468878865242, -0.010421985760331154, 0.017515886574983597, -0.0027984369080513716, 0.07113777846097946, 0.012714091688394547, 0.027374187484383583, 0.022798338904976845, -0.0563003309071064, -0.07172662019729614, -0.02615591511130333, -0.014193660579621792, 0.05802514776587486, -0.037538472563028336, 0.017490848898887634, 0.06151304394006729, 0.00610247952863574, 0.03269810229539871, -0.006078609265387058, 0.02666163630783558, 0.015274199657142162, -0.05018050596117973, -0.059742920100688934, 0.015323440544307232, 0.034549515694379807, -0.053641241043806076, -0.01356587652117014, 0.009832228533923626, -0.04182049259543419, -0.018337490037083626, 0.051472004503011703, -0.022456157952547073, 0.0552322082221508, 0.04048265516757965, 0.05517030879855156, -0.02426372841000557, 0.05138702318072319, -0.06544070690870285, 0.0481855534017086, 0.01837712526321411, -0.038448650389909744, -0.016836006194353104, -0.01013956032693386, 0.12469977885484695, 0.07034030556678772, 0.0009288081200793386, -0.0414237417280674, 0.015424148179590702, 0.020648058503866196, -0.0605723075568676, 0.0007921974756754935, -0.020467011258006096, 0.0022716878447681665, -0.0015536067076027393, -0.027603497728705406, -0.024136295542120934, 0.007775996811687946, -0.02518540620803833, 0.014318776316940784, 0.08793095499277115, -0.028555361554026604, 0.05605853348970413, 0.0036111066583544016, -0.013351069763302803, 0.008997482247650623, -0.013862724415957928, -0.0667644515633583, -0.011921376921236515, -0.017883170396089554, -0.011705001816153526, 0.040684863924980164, -0.028327209874987602, -0.04314730316400528, -0.050619419664144516, -0.04509921371936798, 0.04350903630256653, 0.05111754313111305, 0.0473603829741478, -0.008752266876399517, 0.033721499145030975, -0.03502374142408371, 0.017003072425723076, -0.0061485678888857365, -0.04412662982940674, -0.009674512781202793, 0.0034928263630717993, 0.011537550948560238, 0.032805152237415314, 0.030386999249458313, -0.01383734866976738, 0.03517145290970802, 0.0030639527831226587, 0.026565393432974815, -0.012832344509661198, 0.017301272600889206, 0.00465819239616394, -0.015149910934269428, -0.003823254257440567, -0.023060614243149757, 0.034188997000455856, -0.05222129821777344, -0.02151978388428688, 0.005959029775112867, -0.056897036731243134, 0.046986766159534454, -0.053030531853437424, -0.04852500185370445, 0.007542550563812256, 0.03209890425205231, 0.024584928527474403, 0.004814280662685633, -0.02579089254140854, 0.061714623123407364, 0.015163857489824295, -0.004878495819866657, 0.021547576412558556, -0.010673677548766136, 0.04768163710832596, -0.005433514714241028, 0.04287741333246231, 0.043893396854400635, 0.005155873950570822, -0.00439350213855505, -0.026393376290798187, 0.006075192242860794, -0.02148977480828762, -0.27360546588897705, 0.02754240296781063, -0.03448692709207535, -0.029978930950164795, 0.0017146337777376175, -0.006142856553196907, 0.008753510192036629, -0.028439197689294815, -0.010290703736245632, -0.013177625834941864, -0.011647474952042103, -0.05253664031624794, -0.029758475720882416, 0.023871762678027153, 0.009457098320126534, -0.01258178986608982, -0.022365916520357132, -0.07272347062826157, 0.005207567475736141, 0.03194902092218399, 0.009549509733915329, -0.0653509721159935, -0.0008674621349200606, 0.07183147221803665, 0.040561918169260025, 0.053858526051044464, -0.0837203785777092, 0.032146673649549484, -0.0312228761613369, -0.023991255089640617, 0.012877190485596657, -0.0390610545873642, 0.02199569158256054, -0.011079121381044388, -0.00026533377240411937, -0.023602290078997612, 0.0006479406729340553, 0.009886715561151505, 0.015422332100570202, -0.005613790825009346, -0.03853178769350052, -0.039053693413734436, -0.0028106016106903553, 0.01894925720989704, 0.08209607750177383, -0.015444881282746792, -0.0802067294716835, 0.008818739093840122, -0.02254772186279297, 0.048946838825941086, -0.025635970756411552, -0.031265560537576675, -0.030895527452230453, 0.0125983115285635, -0.03795905411243439, 0.007720917463302612, 0.00419897586107254, 0.0022718235850334167, -0.05239277333021164, -0.029152221977710724, 0.015595771372318268, -0.04919061437249184, 0.0005458962405100465, -0.04268432408571243, -0.03181946650147438, -0.06617137044668198, -0.08900169283151627, 0.018432270735502243, 0.07788590341806412, 0.014900296926498413, -0.04801471158862114, 0.008299499750137329, -0.007785583380609751, -0.1223972886800766, -0.025080692023038864, -0.02128594182431698, -0.05576638877391815, -0.013632948510348797, -0.009393255226314068, 0.05882785841822624, -0.03928808122873306, -0.016302142292261124, 0.042550720274448395, 0.01689116284251213, 0.02070474624633789, -0.02427014335989952, 0.0007954478496685624, -0.025755472481250763, -0.01967715658247471, -0.0034021588508039713, 0.05423083156347275, -0.040985871106386185, -0.007343946490436792, -0.021035663783550262, -0.017480364069342613, 0.05274462699890137, 0.026648426428437233, 0.004816716071218252, 0.0015304184053093195, 0.03221776708960533, -0.0088193379342556, -0.06701517850160599, 0.0212233979254961, -0.027848687022924423, 0.00627472810447216, -0.014363340102136135, -0.043251533061265945, 0.03667015954852104, 0.02311454340815544, 0.030407192185521126, 0.02477230690419674, -0.01888086646795273, 0.015241064131259918, -0.06450958549976349, -0.02357426844537258, -0.015305984765291214, 0.02772597409784794, 0.03728509694337845, 0.029774153605103493, -0.029085639864206314, -0.04288932681083679, 0.020202508196234703, 0.012045330367982388, -0.034378714859485626, -0.035953447222709656, -0.03733520209789276, -0.00913180224597454, -0.005348379258066416, -0.014975865371525288, 0.00005513826909009367, -0.02511582337319851, 0.03784596174955368, 0.050767429172992706, -0.013027748093008995, 0.021705934777855873, -0.02166512981057167, -0.03221462666988373, -0.028367124497890472, 0.025098836049437523, 0.026031792163848877, 0.011204974725842476, 0.010036605410277843, 0.0022489416878670454, 0.03833943232893944, 0.04101784899830818, 0.0133458087220788, 0.019837941974401474, -0.014561115764081478, 0.004510140046477318, 0.008585244417190552, 0.012785620056092739, -0.01770148053765297, 0.008887331001460552, -0.030985580757260323, -0.03309100866317749, -0.02032705955207348, 0.019769974052906036, -0.007102093659341335, -0.007164437789469957, -0.043481625616550446, 0.031788017600774765, -0.06577851623296738, -0.022040901705622673, -0.014596549794077873, 0.0002024653076659888, 0.04103213548660278, 0.009907659143209457, 0.022555407136678696, -0.014780227094888687, 0.003748923307284713, 0.020358223468065262, -0.0033366018906235695, -0.04214930906891823, 0.006388089619576931, -0.030899161472916603, -0.005087972618639469, 0.03170989826321602, 0.014670094475150108, 0.027809254825115204, -0.0023760648909956217, 0.012666198424994946, 0.001727805589325726, 0.020019814372062683, 0.026999112218618393, 0.03634343668818474, 0.04096268117427826, -0.02446158416569233, -0.013129201717674732, -0.007953355088829994, -0.04743833467364311, -0.03607749566435814, 0.0008683158666826785, -0.008172507397830486, 0.01236879825592041, -0.032170772552490234, -0.05313429981470108, 0.041321031749248505, -0.003053199965506792, -0.0017204349860548973, 0.02409316413104534, 0.0054140533320605755, -0.0016831801040098071, -0.03508104011416435, 0.047333378344774246, 0.10241540521383286, -0.04946469888091087, 0.014045239426195621, 0.008354335092008114, -0.028503157198429108, -0.0003086493816226721, 0.017428195104002953, -0.04106375202536583, -0.006511408369988203, -0.004356748424470425, 0.018248848617076874, -0.04922986030578613, -0.034412674605846405, -0.029677696526050568, -0.005013412795960903, 0.018238242715597153, 0.011198223568499088, 0.006573888473212719, -0.015639184042811394, -0.014132519252598286, -0.010999023914337158, 0.0601436048746109, 0.01301131397485733, 0.008848587051033974, 0.027103595435619354, -0.027743086218833923, 0.022432176396250725, -0.03649440035223961, 0.007798878476023674, 0.024792440235614777, -0.03638310730457306, -0.02130189724266529, -0.036195166409015656, 0.0023381481878459454, 0.02800523117184639, 0.10008841007947922, 0.015583422034978867, -0.015923941507935524, -0.02429821342229843, 0.008514580316841602, -0.006379253696650267, 0.0028674802742898464, 0.009974266402423382, -0.015770921483635902, 0.033602964133024216, 0.030143477022647858, 0.006131194531917572, 0.0009149726829491556, -0.014732182957231998, -0.0007120700902305543, 0.05937249958515167, -0.04963403195142746, -0.04175490513443947, -0.0043862187303602695, -0.06403183192014694, 0.019744031131267548, 0.01258920505642891, 0.004565091338008642, -0.02714141458272934, 0.04778552055358887, 0.041471563279628754, 0.009607916697859764, 0.03129776567220688, -0.01634780876338482, 0.005438509862869978, -0.027710264548659325, -0.02649546228349209, -0.09426268190145493, 0.005804236978292465, 0.03523838147521019, -0.00012605851225089282, -0.019391430541872978, -0.0065169730223715305, -0.0653526708483696, 0.02523571252822876, -0.05815023556351662, -0.028467336669564247, 0.04890935868024826, 0.007656993810087442, 0.016999786719679832, -0.0011051170295104384, -0.03890053182840347, 0.016123082488775253, 0.041035231202840805, -0.0472780242562294, -0.02113819494843483, -0.015980735421180725, 0.05512337386608124, -0.005386517383158207, 0.03270556405186653, -0.0055826338939368725, -0.022211996838450432, 0.047425948083400726, 0.00967238936573267, 0.009426443837583065, 0.07696597278118134, -0.04782327637076378, 0.047827258706092834, 0.03492897376418114, -0.014805427752435207, 0.01018762681633234, 0.01930784247815609, -0.018352586776018143, -0.061520643532276154, 0.054306045174598694, 0.001124464557506144, -0.00946203712373972, -0.058410849422216415, 0.062965527176857, 0.016363248229026794, -0.023902466520667076, -0.04967174306511879, -0.007273822091519833, -0.03286899998784065, -0.03204292431473732, -0.01820679008960724, 0.009132768958806992, -0.019239069893956184, 0.06530404090881348, -0.019149815663695335, 0.029566343873739243, 0.09205879271030426, -0.0020920969545841217, 0.002033042488619685, 0.03232813999056816, 0.07661788165569305, 0.07698962837457657, 0.017739377915859222, 0.0009989812970161438, 0.07155659049749374, -0.02924737147986889, -0.02239331416785717, -0.007347158621996641, -0.0343029610812664, -0.02597767300903797, -0.02358447201550007, 0.00266097579151392, 0.06755592674016953, -0.01586189493536949, 0.07097869366407394, -0.03200504183769226, -0.0038146309088915586, -0.004053771961480379, -0.0019235287327319384, 0.028629006817936897, 0.03607454150915146, -0.007602724712342024, 0.044162824749946594, -0.011371375061571598, -0.035100288689136505, 0.006277669686824083, 0.006865349132567644, -0.044953685253858566, 0.01272025890648365, -0.04978010058403015, 0.01924409158527851, 0.020834732800722122, 0.011996099725365639, 0.06791239976882935, -0.0203477144241333, -0.014674535021185875, 0.00417648209258914, 0.037049852311611176, -0.008030151948332787, 0.03059164248406887, -0.0365334190428257, -0.010152825154364109, -0.020693598315119743, -0.0439925454556942, -0.007915128022432327, -0.009741670452058315, -0.022877046838402748, 0.024549704045057297, -0.020135244354605675, 0.008428605273365974, 0.019794147461652756, -0.01831986755132675, -0.05942053720355034, -0.05525638908147812, -0.06199938803911209, -0.04120315983891487, -0.0686422660946846, -0.012466811574995518, 0.0005839609075337648, -0.02471703290939331, -0.023940332233905792, -0.02371922880411148, -0.008264245465397835, 0.0037351681385189295, 0.017987921833992004, -0.04479515552520752, -0.031150206923484802, 0.00967407412827015, 0.027735304087400436, 0.015108287334442139, 0.040749214589595795, 0.05529336258769035, -0.021518299356102943, 0.009469171985983849, -0.022073596715927124, -0.017139896750450134, 0.05576777085661888, 0.017783554270863533, 0.00037775863893330097, -0.07642164081335068, 0.008207258768379688, 0.030259674414992332, -0.02130977250635624, -0.0565192885696888, 0.011700454168021679, 0.03078634850680828, -0.02094283513724804, 0.043781593441963196, -0.00407460005953908, 0.024862870573997498, -0.04116237536072731, -0.03874380886554718, -0.006262312643229961, -0.000013171213140594773, 0.03394491225481033, -0.016239825636148453, 0.07685274630784988, 0.05030791461467743, -0.03572978079319, -0.012985103763639927, -0.005090493243187666, 0.01705513894557953, -0.006967890076339245, -0.0539657361805439, -0.02847386710345745, -0.05305273458361626, -0.06814392656087875, -0.020637212321162224, 0.0335165373980999, -0.02548202872276306, -0.04075250029563904, 0.00037617876660078764, -0.005120184272527695, -0.03143914416432381, 0.01449716929346323, -0.042475759983062744, 0.022837670519948006, -0.023136857897043228, -0.01654624566435814, -0.0293095912784338, 0.023969512432813644, -0.010669644922018051, -0.014224302023649216, 0.015298412181437016, -0.03131961449980736, 0.020158501341938972, -0.029195578768849373, 0.05052705109119415, 0.02676203101873398, -0.024984300136566162, 0.007822763174772263 ]
[ -0.04365085810422897, -0.04209953546524048, 0.0036944462917745113, -0.013867641799151897, 0.08001754432916641, -0.0722445398569107, -0.021838128566741943, 0.019421683624386787, -0.016686273738741875, -0.023696286603808403, -0.009136641398072243, -0.07193538546562195, -0.012329098768532276, 0.007532063871622086, 0.05325228348374367, -0.018407216295599937, -0.028949182480573654, -0.07101880013942719, -0.002291223732754588, 0.02794361673295498, 0.04363531246781349, -0.020992882549762726, -0.054678406566381454, -0.0433923676609993, -0.002181512303650379, 0.05421437695622444, 0.024399759247899055, -0.014386069029569626, -0.026028277352452278, -0.20899395644664764, 0.014950060285627842, -0.019015466794371605, 0.003042068099603057, 0.007094854023307562, -0.029162079095840454, 0.048843927681446075, 0.01957324706017971, 0.014933126047253609, 0.0438046008348465, 0.04329327866435051, 0.015316502191126347, -0.017887743189930916, -0.03780024126172066, -0.0028464538045227528, 0.015058379620313644, -0.02810322865843773, -0.008113198913633823, 0.02114115096628666, -0.005540867801755667, 0.007748729549348354, -0.061656124889850616, 0.014704965054988861, -0.020441872999072075, -0.031519778072834015, 0.019269531592726707, 0.04688837006688118, 0.03253863379359245, 0.058522023260593414, 0.01827271096408367, 0.015367241576313972, 0.016191892325878143, -0.006801641546189785, -0.15719613432884216, 0.09562963247299194, 0.008551089093089104, 0.04351028800010681, -0.02823452278971672, 0.012300016358494759, -0.03589513525366783, 0.028490280732512474, 0.019658850505948067, -0.010474177077412605, -0.035041626542806625, 0.05750757083296776, 0.028979206457734108, -0.007982869632542133, -0.033835332840681076, 0.06869485229253769, 0.0023310871329158545, -0.024288998916745186, -0.05096686631441116, 0.00486197043210268, -0.023065537214279175, -0.004791248589754105, -0.02594994753599167, 0.009312862530350685, -0.019677717238664627, 0.06654397398233414, 0.01332007348537445, 0.018090469762682915, 0.02847186289727688, -0.02332778461277485, 0.02828790247440338, 0.02489818073809147, -0.04565349221229553, -0.014279099181294441, 0.00729805463925004, 0.03163669630885124, -0.04421718791127205, 0.38396283984184265, 0.012507044710218906, -0.008908659219741821, 0.028024647384881973, 0.04185938090085983, -0.00014294948778115213, 0.0028878829907625914, -0.01966063492000103, -0.027967114001512527, 0.04395114630460739, -0.013411440886557102, 0.0267556831240654, -0.00973984319716692, 0.06756314635276794, -0.0386711061000824, 0.002237391658127308, -0.0059887501411139965, -0.0012110174866393209, 0.009689570404589176, -0.05049766227602959, 0.03876597806811333, -0.0035503117833286524, 0.02296457253396511, 0.014193820767104626, 0.02834082394838333, -0.004258087836205959, 0.010297958739101887, 0.03571730852127075, 0.04221884906291962, 0.043878961354494095, 0.015971137210726738, 0.02629556506872177, -0.03850165754556656, -0.09377428889274597, -0.010221616365015507, 0.000520391738973558, -0.0035126442089676857, 0.04401349648833275, 0.0011057804804295301, 0.009207217022776604, 0.006200843024998903, -0.0318518690764904, -0.03311578184366226, 0.037892866879701614, -0.0049807182513177395, -0.02514840103685856, 0.13064227998256683, -0.002288839081302285, -0.03618971258401871, -0.008005029521882534, -0.04530508443713188, -0.03230089694261551, 0.005652501247823238, -0.004676388576626778, -0.07740521430969238, 0.0032823646906763315, 0.04562894627451897, 0.055768806487321854, -0.017703140154480934, -0.05416520684957504, -0.005793207325041294, -0.027085060253739357, -0.053616344928741455, -0.03250711411237717, 0.03296634182333946, 0.02064371481537819, -0.13847282528877258, -0.03978343307971954, 0.013865218497812748, 0.004027041140943766, -0.053430914878845215, 0.005075832363218069, 0.03506254777312279, -0.009663324803113937, -0.017713194712996483, 0.050918277353048325, -0.028703970834612846, -0.022412745282053947, 0.03206581622362137, 0.028630228713154793, 0.00035648717312142253, -0.0315016433596611, -0.0004357013094704598, -0.007288639433681965, -0.02018744871020317, -0.04389668628573418, -0.07710777968168259, -0.059329669922590256, -0.00501992367208004, -0.02392519637942314, -0.020195649936795235, -0.028457026928663254, -0.03895869106054306, -0.05501599609851837, 0.07376530766487122, -0.005664110649377108, -0.00784758385270834, 0.01471423078328371, 0.01542737428098917, 0.02433675527572632, -0.03636465221643448, 0.01589875854551792, 0.05085198953747749, -0.0031812998931854963, 0.02091435343027115, -0.06611105054616928, 0.05035415291786194, 0.040269315242767334, -0.03820452839136124, 0.01782313734292984, 0.03664153814315796, -0.02579706907272339, 0.012418482452630997, -0.021857641637325287, 0.012981973588466644, -0.008270015940070152, -0.01691172458231449, -0.0029869219288229942, -0.006798997521400452, 0.02603103406727314, 0.05252141132950783, -0.04697804152965546, -0.033239200711250305, -0.009057179093360901, -0.3944668173789978, -0.0573594830930233, -0.018254512920975685, 0.0060516586527228355, -0.024065367877483368, -0.05521995201706886, 0.0037267832085490227, 0.009163683280348778, 0.00022059501498006284, 0.01243013795465231, 0.11297501623630524, -0.03198886290192604, 0.02362661249935627, -0.05688483640551567, 0.009312380105257034, 0.029984597116708755, -0.04715878888964653, -0.018255267292261124, -0.015544246882200241, 0.01247281115502119, 0.020232900977134705, -0.011464309878647327, -0.055083807557821274, -0.04322916269302368, -0.005657585803419352, -0.012517525814473629, 0.12245635688304901, 0.00128837744705379, 0.06306318938732147, -0.0914950892329216, 0.047724779695272446, 0.00011987453035544604, 0.009920665062963963, -0.07424377650022507, 0.007837923243641853, -0.052519507706165314, 0.016043584793806076, 0.03775101900100708, 0.008558478206396103, 0.011057384312152863, -0.0490705706179142, 0.03625638410449028, -0.015231283381581306, -0.058994125574827194, -0.015729177743196487, 0.02798287756741047, -0.01720024272799492, -0.023232830688357353, 0.006501083727926016, 0.07440050691366196, 0.02265857718884945, 0.024701200425624847, 0.02959631197154522, 0.03828812018036842, 0.0386197529733181, -0.034726887941360474, -0.04964418336749077, -0.0302447322756052, -0.0032552818302065134, 0.006463001947849989, 0.033613309264183044, 0.027502166107296944, 0.03102971613407135, -0.05901394411921501, 0.005147849675267935, 0.03139258921146393, -0.017875192686915398, 0.004637615289539099, 0.04124152660369873, 0.00562983239069581, -0.042347270995378494, 0.09985806047916412, 0.013524597510695457, 0.0001613307249499485, 0.016301676630973816, 0.05169953405857086, -0.013870668597519398, 0.019780220463871956, 0.043238867074251175, 0.017584070563316345, 0.05754617601633072, -0.016841433942317963, 0.05698808655142784, -0.010270166210830212, 0.001110514742322266, 0.06906726211309433, 0.00595884257927537, -0.015172074548900127, 0.06735546886920929, 0.013291236013174057, -0.03619169443845749, -0.016050539910793304, -0.007958495989441872, -0.05123051628470421, 0.07469690591096878, -0.015365536324679852, -0.29653239250183105, 0.044085193425416946, 0.06237107142806053, 0.045179907232522964, 0.006051790900528431, -0.006450164597481489, 0.013875988312065601, -0.04275336116552353, 0.013650519773364067, -0.005204848945140839, 0.007241074927151203, 0.02523876167833805, 0.025681445375084877, -0.016566330567002296, 0.005502659827470779, 0.0008805157849565148, 0.03372524678707123, 0.03993168845772743, 0.036081232130527496, -0.03899788483977318, 0.016264982521533966, 0.006030291318893433, 0.17346741259098053, 0.09208926558494568, 0.003168366616591811, 0.028177518397569656, -0.021687036380171776, 0.01386112067848444, 0.05718251317739487, 0.029850425198674202, 0.014967702329158783, -0.003186193760484457, 0.06554689258337021, 0.009489069692790508, 0.05967089161276817, -0.05126475915312767, -0.021474389359354973, 0.04989377409219742, 0.017108645290136337, -0.055600691586732864, -0.04222744703292847, 0.005795096512883902, -0.05056139826774597, 0.00809350423514843, 0.056889213621616364, -0.012824309058487415, -0.012766839936375618, -0.03208334371447563, -0.03209016099572182, -0.016171609982848167, 0.004019461572170258, -0.035144418478012085, -0.01301907654851675, -0.006708829663693905, -0.018385840579867363, 0.07394735515117645, 0.018310382962226868, -0.030586393550038338, -0.026097919791936874, 0.026868537068367004, 0.008922328241169453, -0.054328206926584244, 0.08034021407365799, 0.0019410738022997975, 0.0008398101781494915 ]
[ 0.028452454134821892, -0.021676046773791313, -0.027726827189326286, 0.04355737566947937, 0.014536531642079353, 0.006334024481475353, -0.0012472060043364763, 0.0064878626726567745, -0.00832698866724968, -0.014177810400724411, -0.010679579339921474, 0.004489424172788858, -0.0357384979724884, -0.01932465471327305, -0.0041750697419047356, -0.0008350862772203982, 0.01768646016716957, -0.011355365626513958, 0.03763895854353905, -0.0015819715335965157, -0.03062400594353676, 0.006416701711714268, 0.02001907117664814, 0.03547978401184082, -0.04301104694604874, 0.03706001490354538, -0.020468607544898987, 0.037303391844034195, 0.02249845489859581, -0.11048491299152374, -0.04508698359131813, -0.050931960344314575, -0.015620620921254158, 0.014821656048297882, -0.01209784671664238, -0.01782892644405365, -0.020547473803162575, -0.002273748628795147, -0.008157911710441113, 0.007806827314198017, 0.03562915697693825, -0.06518400460481644, 0.003442514920607209, 0.007848991081118584, 0.0021903987508267164, -0.021000895649194717, -0.0403255969285965, -0.012873140163719654, -0.019410710781812668, 0.026658693328499794, -0.04083798825740814, -0.00598970428109169, 0.02522788569331169, -0.0014199656434357166, 0.04959191381931305, -0.007266976870596409, -0.046220727264881134, 0.02417515031993389, 0.013628476299345493, -0.024605128914117813, 0.0050010052509605885, 0.01688065193593502, -0.0327700637280941, -0.039811160415410995, -0.0006679084035567939, -0.046609774231910706, -0.02758502960205078, -0.0026923217810690403, 0.020014721900224686, -0.006701073609292507, 0.0180671289563179, 0.023121219128370285, -0.025632189586758614, -0.014306341297924519, 0.005096806213259697, 0.020024336874485016, -0.026345200836658478, 0.008009189739823341, 0.00243637477979064, -0.00855602603405714, -0.022395199164748192, -0.010625971481204033, -0.017382526770234108, 0.018270615488290787, -0.044174257665872574, -0.04644178971648216, 0.006047729402780533, 0.04652469977736473, 0.03746076673269272, -0.0018983939662575722, -0.01902175508439541, -0.011901387944817543, -0.01502615213394165, 0.038108017295598984, -0.07116002589464188, 0.021720275282859802, -0.02108607441186905, -0.009487404488027096, -0.02498532272875309, 0.8420591950416565, 0.004859915003180504, 0.029843389987945557, -0.010184776037931442, 0.03779800981283188, 0.01770596019923687, -0.013732114806771278, -0.02657008357346058, -0.007346984930336475, -0.006330080796033144, -0.04061264172196388, 0.040807146579027176, 0.018873317167162895, 0.02427726984024048, -0.003117314772680402, -0.0004326302441768348, 0.039693184196949005, -0.03493403270840645, 0.003414776874706149, -0.00745651638135314, 0.03726721927523613, 0.002681982470676303, -0.017084622755646706, 0.003919903188943863, 0.006583094131201506, 0.014747986570000648, -0.17605681717395782, 0.0168902650475502, -6.810719494432299e-33, 0.04425886273384094, -0.03443486616015434, 0.010656331665813923, -0.014425013214349747, 0.018589431419968605, -0.0282650925219059, -0.02484637312591076, -0.005459653679281473, -0.0009140741894952953, -0.02302900142967701, 0.014520524069666862, -0.021042125299572945, -0.00338462321087718, -0.05283524841070175, 0.038285333663225174, -0.011636665090918541, -0.010134895332157612, 0.026766210794448853, -0.006893766112625599, 0.03881419077515602, 0.03435160964727402, 0.01886463724076748, -0.022481534630060196, 0.0006927661597728729, 0.031357891857624054, 0.044762611389160156, -0.005665487609803677, -0.00042938286787830293, -0.021893128752708435, -0.023629192262887955, -0.009904406033456326, 0.011969417333602905, -0.02749013341963291, -0.022457076236605644, 0.001554005895741284, -0.06281813234090805, -0.024185286834836006, 0.006870717741549015, -0.04613427817821503, -0.03254787623882294, -0.027391530573368073, -0.007481061387807131, -0.045707665383815765, -0.027735184878110886, -0.03669067844748497, 0.00240373145788908, 0.011642800644040108, 0.03166108578443527, 0.004010375589132309, 0.0067811934277415276, 0.028962578624486923, 0.01301524043083191, 0.026100918650627136, 0.0007177772931754589, 0.033750034868717194, 0.025020917877554893, 0.012802879326045513, 0.012768520042300224, 0.01411533821374178, -0.01998426765203476, -0.013337110169231892, -0.02729756012558937, -0.009306414052844048, 0.022043829783797264, 0.006979150697588921, -0.008293879218399525, -0.0003464149485807866, -0.019874347373843193, 0.010227938182651997, 0.019223010167479515, -0.04889264702796936, 0.0014891914324834943, -0.016028868034482002, -0.019524741917848587, 0.013479990884661674, -0.047146447002887726, 0.01700432226061821, 0.027831697836518288, -0.00044314932893030345, 0.04250155761837959, -0.00955653004348278, -0.016069354489445686, 0.014354860410094261, -0.0184817835688591, -0.03735034540295601, -0.005394172854721546, -0.0028928120154887438, 0.020914088934659958, -0.025004401803016663, -0.00429648207500577, 0.02047393098473549, 0.08256062865257263, 0.00043768875184468925, -0.0180391613394022, -0.018982771784067154, 7.357392693173804e-33, -0.007131877820938826, -0.020451463758945465, -0.006609354633837938, 0.022756600752472878, 0.004233784507960081, -0.04110194370150566, 0.03612576052546501, 0.02219528704881668, -0.0036947994958609343, 0.07016301900148392, -0.03952788561582565, -0.012371571734547615, -0.020460009574890137, 0.008361518383026123, 0.0666203424334526, 0.004078960046172142, 0.0084365364164114, 0.009604346007108688, 0.026413941755890846, 0.006296689622104168, 0.00936178956180811, 0.01687946356832981, -0.0006231372826732695, 0.013857400044798851, 0.021061066538095474, 0.014130222611129284, 0.0035444204695522785, 0.0070255352184176445, -0.05308769270777702, -0.02077488973736763, 0.0164494588971138, -0.015220584347844124, 0.015965573489665985, -0.0295217614620924, -0.040957000106573105, 0.04180305078625679, 0.010862854309380054, 0.0022940151393413544, 0.005544859450310469, 0.01510406844317913, 0.0403018556535244, 0.01395470555871725, -0.0018233265727758408, 0.030920516699552536, 0.0003424705355428159, 0.0014350023120641708, 0.000016871843399712816, 0.013394614681601524, -0.004558138083666563, 0.006444593891501427, -0.016274314373731613, 0.004032954107969999, 0.004055395256727934, 0.01853087916970253, 0.01915687508881092, -0.012811746448278427, -0.016162222251296043, -0.0007013689028099179, -0.025957416743040085, -0.011654796078801155, -0.020075954496860504, 0.0008893389021977782, 0.02564256452023983, 0.038323283195495605, -0.0035121734254062176, -0.014570287428796291, -0.0390830896794796, -0.0009235732140950859, -0.009763075970113277, -0.0048093548975884914, -0.015480689704418182, 0.002167686354368925, -0.0017725046491250396, 0.05048470199108124, 0.03713313862681389, -0.01530638337135315, -0.020959705114364624, 0.02859322354197502, 0.008230446837842464, 0.00649667764082551, 0.023968596011400223, -0.0060885571874678135, 0.04452879726886749, 0.006263261660933495, 0.04510347545146942, 0.04755149781703949, -0.029258878901600838, 0.013507470488548279, -0.0015841816784814, 0.01004493236541748, -0.008320162072777748, -0.018200762569904327, 0.0050715128891170025, 0.017399633303284645, -0.037511155009269714, -1.2587179298861884e-8, -0.06609802693128586, 0.019225947558879852, -0.03138954937458038, 0.04102760925889015, 0.032941363751888275, 0.020016485825181007, -0.021307524293661118, 0.007263615261763334, 0.01890266314148903, 0.00744675612077117, 0.01810036413371563, 0.006781269330531359, -0.0002962868311442435, 0.051057931035757065, 0.01123854797333479, -0.04507242143154144, -0.010164131410419941, -0.006123846862465143, 0.013723544776439667, 0.012670986354351044, 0.0414225272834301, 0.0380571149289608, -0.001493758289143443, -0.022589270025491714, 0.013242736458778381, -0.0023628980852663517, 0.019277548417448997, -0.04327338933944702, 0.016307974234223366, 0.012603779323399067, 0.013696715235710144, -0.03454355150461197, 0.0064291818998754025, 0.05016437545418739, -0.037046365439891815, -0.020460138097405434, 0.014602609910070896, 0.034077178686857224, -0.003018096089363098, 0.016782637685537338, -0.012142683379352093, -0.013252823613584042, -0.03257281705737114, -0.04383556544780731, -0.024529557675123215, 0.039123620837926865, -0.04113829508423805, 0.045896001160144806, 0.010116256773471832, -0.011985083110630512, -0.02920694462954998, -0.019987445324659348, 0.03571572154760361, 0.028413141146302223, 0.074387326836586, 0.010484321974217892, 0.037571851164102554, -0.025947479531168938, 0.020498506724834442, -0.026723112910985947, 0.009912961162626743, 0.026392744854092598, -0.04003935307264328, -0.016895348206162453 ]
apache-pinot-geospatial-buffer-underflow
https://markhneedham.com/blog/2023/03/10/apache-pinot-geospatial-buffer-underflow
false
2023-03-31 02:44:37
Tennis Head to Head with DuckDB and Streamlit
[ "duckdb", "streamlit" ]
[ "duckdb" ]
In this blog post we're going to learn how to build an application to compare the matches between two ATP tennis players. DuckDB and Streamlit will be our partners in crime for this mission. == Set up To get started, let's create a virtual environment: [source, bash] ---- python -m venv .venv source .venv/bin/activate ---- And now install some libraries: [source, bash] ---- pip install duckdb streamlit streamlit-searchbox ---- And now let's open a file, `app.py` and import the packages: [source, python] ---- import streamlit as st import duckdb from streamlit_searchbox import st_searchbox ---- Next, let's create a DuckDB connection and import the `httpfs` module, which we'll use in just a minute: [source, python] ---- atp_duck = duckdb.connect('atp.duck.db', read_only=True) atp_duck.sql("INSTALL httpfs") atp_duck.sql("LOAD httpfs") ---- == Importing ATP matches We're going to import some matches from the ATP tennis tour using the following code: [source, python] ---- csv_files = [ f"https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_{year}.csv" for year in range(1968,2024) ] atp_duck.execute(""" CREATE OR REPLACE TABLE matches AS SELECT * FROM read_csv_auto($1, types={'winner_seed': 'VARCHAR', 'loser_seed': 'VARCHAR'}) """, [csv_files]) ---- We can check that the table has been populated by running the following command: [source, python] ---- atp_duck.table("matches").project("tourney_date, winner_name, loser_name, score").limit(5) ---- .Output [source, python] ---- ┌──────────────┬─────────────────┬─────────────────┬─────────┐ │ tourney_date │ winner_name │ loser_name │ score │ │ int64 │ varchar │ varchar │ varchar │ ├──────────────┼─────────────────┼─────────────────┼─────────┤ │ 19680708 │ Douglas Smith │ Peter Ledbetter │ 6-1 7-5 │ │ 19680708 │ Louis Pretorius │ Maurice Pollock │ 6-1 6-1 │ │ 19680708 │ Cecil Pedlow │ John Mulvey │ 6-2 6-2 │ │ 19680708 │ Tom Okker │ Unknown Fearmon │ 6-1 6-1 │ │ 19680708 │ Armistead Neely │ Harry Sheridan │ 6-2 6-4 │ └──────────────┴─────────────────┴─────────────────┴─────────┘ ---- == Searching for players Now we're going to create a Streamlit app on top of this data. Let's start by adding a title: [source, python] ---- st.title("ATP Head to Head") ---- And now we'll create a function that will let us search for players: [source, python] ---- def search_players(search_term): query = ''' SELECT DISTINCT winner_name AS player FROM matches WHERE player ilike '%' || $1 || '%' UNION SELECT DISTINCT loser_name AS player FROM matches WHERE player ilike '%' || $1 || '%' ''' values = atp_duck.execute(query, parameters=[search_term]).fetchall() return [value[0] for value in values] ---- Next, we're going to need some search boxes for the players, which is where the https://github.com/m-wrzr/streamlit-searchbox[streamlit_searchbox^] library comes in handy. [source, python] ---- left, right = st.columns(2) with left: player1 = st_searchbox(search_players, label="Player 1", key="player1_search") with right: player2 = st_searchbox(search_players, label="Player 2", key="player2_search") st.markdown("***") st.header(f"{player1} vs {player2}") st.error("No matches found between these players.") ---- We can then launch the Streamlit app by running the following command: [source, bash] ---- streamlit run app.py ---- If we navigate to http://localhost:8501, we'll see the following screen where we can search for players: image::{{<siteurl>}}/uploads/2023/03/djok-nadal.png[Djokovic vs Nadal] == Finding matches Let's now update the app to find matches between players: [source, python] ---- matches_for_players = atp_duck.execute(""" SELECT tourney_date,tourney_name, surface, round, winner_name, score FROM matches WHERE (loser_name = $1 AND winner_name = $2) OR (loser_name = $2 AND winner_name = $1) ORDER BY tourney_date DESC """, [player1, player2]).fetchdf() ---- Let's also count the number of wins that each player has and we'll update the header too: [source, python] ---- player1_wins = matches_for_players[matches_for_players.winner_name == player1].shape[0] player2_wins = matches_for_players[matches_for_players.winner_name == player2].shape[0] st.header(f"{player1} {player1_wins}-{player2_wins} {player2}") ---- If we go back to our web browser, we'll see this: image::{{<siteurl>}}/uploads/2023/03/djok-nadal-matches.png[Djokovic vs Nadal Matches] So far, so good. == Aggregation by surface and round Let's now do some aggregations. One of the cool things about DuckDB is that we can query a Pandas DataFrame as if its a table. The code below groups wins by round and surface: [source, python] ---- left, right = st.columns(2) with left: st.markdown(f'#### By Surface') by_surface = atp_duck.sql(""" SELECT winner_name AS player, surface, count(*) AS wins FROM matches_for_players GROUP BY ALL """).fetchdf() st.dataframe(by_surface.pivot(index="surface", columns="player" ,values="wins")) with right: st.markdown(f'#### By Round') by_surface = atp_duck.sql(""" SELECT winner_name AS player, round, count(*) AS wins FROM matches_for_players GROUP BY ALL """).fetchdf() st.dataframe(by_surface.pivot(index="round", columns="player" ,values="wins")) ---- And if we go back to the web browser: image::{{<siteurl>}}/uploads/2023/03/djok-nadal-surface-round.png[Djokovic vs Nadal By Round and Surface] We can now search for other players and see how they've performed against each other. == Summary These two tools make it super easy to quickly create data apps. The full code used in this blog post is on https://gist.github.com/mneedham/e06cc23bccb1da62071efab5ca924ac0[this Gist^].
In this post we'll learn how to build an ATP head to head app with DuckDB and Streamlit.
uploads/2023/03/duckdb-streamlit-banner.png
[ -0.005574581678956747, 0.001609043451026082, -0.0015817225212231278, 0.04232735559344292, 0.09753511846065521, -0.012180639430880547, -0.0019600929226726294, 0.05942567437887192, 0.004149327985942364, -0.018529828637838364, -0.008292957209050655, -0.02111883834004402, -0.07566949725151062, -0.009856794960796833, -0.0039521269500255585, 0.08698190003633499, 0.06407091021537781, -0.001571189728565514, 0.06323689967393875, -0.0013186780270189047, -0.003450745018199086, 0.0625554770231247, -0.004094396252185106, 0.039499782025814056, 0.023343389853835106, 0.017087619751691818, 0.02314726449549198, 0.009427961893379688, -0.0594756193459034, 0.009081820026040077, 0.0608687624335289, -0.02956840768456459, 0.002487166551873088, -0.023707590997219086, 0.02314877137541771, -0.004256067331880331, -0.005162090994417667, 0.032678548246622086, -0.015446009114384651, 0.015622897073626518, -0.06725309789180756, 0.030535709112882614, -0.018790138885378838, 0.009306162595748901, -0.034874171018600464, 0.018881840631365776, -0.021098729223012924, 0.03848438337445259, -0.00470698019489646, -0.013358800671994686, -0.04027803987264633, 0.04285771772265434, -0.03903765603899956, 0.003467637812718749, -0.0004198980168439448, 0.026964016258716583, 0.03370215743780136, -0.06172505393624306, 0.00741547392681241, -0.023255443200469017, 0.022724367678165436, -0.0012017636327072978, 0.0037912160623818636, 0.01960848830640316, 0.018752623349428177, -0.016208777204155922, 0.0021940169390290976, 0.03601835295557976, -0.022642983123660088, -0.0014939687680453062, 0.005480485502630472, -0.003432899946346879, -0.04134931415319443, -0.041536010801792145, 0.02168639935553074, -0.028273355215787888, -0.0016732404474169016, 0.07385295629501343, 0.03110191412270069, 0.04457145184278488, -0.014529536478221416, 0.007221618201583624, 0.0007270103669725358, 0.042288340628147125, -0.007309660315513611, -0.05734919384121895, -0.0233441274613142, -0.004076902288943529, -0.06476057320833206, 0.05274948850274086, 0.023828398436307907, -0.04955120384693146, 0.02000521495938301, 0.005134485196322203, -0.012067263945937157, 0.00003702400499605574, 0.01779886521399021, -0.003827392589300871, 0.014330985955893993, -0.031754251569509506, -0.04033990576863289, -0.018493041396141052, 0.03252122551202774, 0.03228432312607765, -0.07748667150735855, -0.019913021475076675, -0.027231154963374138, -0.022557033225893974, 0.00937980692833662, 0.032822318375110626, -0.00225184578448534, -0.01350260991603136, -0.000524423667229712, -0.00992739200592041, -0.08212468773126602, 0.08344921469688416, 0.01712656579911709, -0.051031485199928284, 0.01094784401357174, 0.030625367537140846, 0.04777061194181442, 0.023324698209762573, -0.008186562918126583, 0.07654572278261185, 0.026044197380542755, 0.014429912902414799, 0.01397028099745512, 0.04816592112183571, 0.012901073321700096, -0.06241809204220772, -0.012969056144356728, 0.04711998254060745, -0.00024413470237050205, 0.00636193435639143, 0.014484199695289135, -0.015973713248968124, -0.0035385352093726397, -0.023776082322001457, 0.06743161380290985, 0.05033585801720619, 0.01992535963654518, -0.017943985760211945, 0.007510744035243988, -0.0011936627561226487, 0.02264959178864956, 0.012165873311460018, 0.021114204078912735, -0.03678179904818535, -0.044885627925395966, 0.003355959430336952, 0.002573782578110695, 0.01448043156415224, 0.05610201880335808, -0.03559122979640961, -0.005522696301341057, 0.09479150921106339, 0.05597125366330147, 0.01382826641201973, -0.03597455471754074, 0.005443773698061705, 0.0510844923555851, 0.022501511499285698, -0.016690166667103767, 0.0302253607660532, 0.00019089857232756913, -0.0232048612087965, 0.0001728730567265302, 0.06403849273920059, -0.0187274981290102, 0.008885713294148445, -0.041908200830221176, -0.062432046979665756, 0.09782526642084122, -0.02674924209713936, -0.003667985089123249, 0.03859705477952957, 0.07262605428695679, 0.03046969510614872, 0.03644286096096039, 0.010959393344819546, -0.0775166004896164, 0.03709157556295395, -0.003535622963681817, 0.026819352060556412, 0.029611116275191307, 0.0026146795134991407, 0.08491865545511246, 0.01666698418557644, -0.00810036901384592, 0.04784797132015228, -0.07556723058223724, -0.0992230698466301, -0.06696499139070511, -0.01255791075527668, 0.04794595390558243, -0.043583545833826065, 0.0189087875187397, 0.07352085411548615, 0.018298480659723282, 0.042876895517110825, -0.004955429583787918, 0.03496918827295303, 0.012776375748217106, -0.05022754147648811, -0.07241324335336685, 0.02413186803460121, 0.036615144461393356, -0.02954534813761711, -0.04555831104516983, 0.009717744775116444, -0.03703244775533676, -0.02036762796342373, 0.02489112690091133, -0.04720358923077583, 0.03505761921405792, 0.01691867783665657, 0.040392570197582245, -0.01602048985660076, 0.018208544701337814, -0.044221654534339905, 0.02253384329378605, 0.03232197090983391, -0.025818316265940666, 0.002364989835768938, -0.004901466891169548, 0.12968483567237854, 0.04461779445409775, -0.0317782424390316, -0.06383540481328964, 0.03079107403755188, -0.0038926454726606607, -0.0329660102725029, 0.001043638214468956, -0.03947991132736206, -0.005082664545625448, -0.020526697859168053, -0.025095948949456215, -0.04714502394199371, 0.010730109177529812, -0.02024291828274727, -0.013573558069765568, 0.06298356503248215, 0.006876586005091667, 0.05837595835328102, -0.0028069207910448313, -0.03634965419769287, -0.029458053410053253, -0.012399254366755486, -0.037825945764780045, -0.013382865116000175, 0.02704080380499363, -0.014453898184001446, 0.02664286457002163, -0.027942264452576637, -0.033945389091968536, -0.02943674847483635, -0.0812455415725708, 0.04085525870323181, 0.05065241456031799, 0.04807721823453903, -0.023544544354081154, 0.03756378963589668, -0.0024270645808428526, 0.027194218710064888, -0.02104889415204525, -0.053994957357645035, -0.04972787946462631, -0.02225647307932377, 0.008744817227125168, 0.026291606947779655, 0.007708751130849123, 0.02013486810028553, -0.009907491505146027, -0.002723919227719307, 0.0008951358613558114, 0.003864429658278823, 0.020328043028712273, -0.004547557793557644, -0.007651861757040024, -0.03756919130682945, -0.006465470883995295, 0.04809224233031273, -0.05868012458086014, -0.022865453734993935, 0.01748245768249035, -0.05429665744304657, 0.013882158324122429, -0.0768030434846878, -0.017417017370462418, 0.01557335164397955, 0.009682100266218185, 0.049068011343479156, 0.00130900414660573, 0.015620428137481213, 0.08185179531574249, 0.003975353669375181, 0.0020429599098861217, 0.007672327104955912, 0.011656437069177628, 0.046251330524683, 0.029412642121315002, 0.014462266117334366, 0.031327635049819946, -0.005932527128607035, 0.00356910633854568, -0.030877482146024704, 0.023289725184440613, -0.03572962433099747, -0.29552969336509705, 0.04169227555394173, 0.012729603797197342, -0.024237344041466713, 0.026424959301948547, -0.0065691242925822735, 0.00856853649020195, -0.033829934895038605, -0.02326674945652485, 0.014972022734582424, -0.036633871495723724, -0.04973287135362625, -0.02472289837896824, 0.02696157433092594, 0.011255180463194847, 0.010165869258344173, 0.005227732937783003, -0.05798592418432236, 0.0020487639121711254, 0.05216064676642418, 0.007141088135540485, -0.060555826872587204, 0.020258890464901924, 0.007866378873586655, 0.03457195311784744, 0.043289460241794586, -0.05961202457547188, 0.03256099671125412, -0.05670629069209099, -0.025410857051610947, 0.008521501906216145, -0.006233325228095055, -0.004219071473926306, 0.00034939846955239773, -0.034086667001247406, -0.01811612956225872, 0.04355766251683235, -0.014349710196256638, 0.005114777013659477, 0.03519665077328682, -0.04570034146308899, -0.01698828861117363, -0.017236651852726936, 0.017947806045413017, 0.08426166325807571, -0.004689343273639679, -0.05792037397623062, 0.005320723168551922, -0.024270014837384224, 0.062429435551166534, -0.032045960426330566, -0.030608724802732468, -0.027213258668780327, 0.030855819582939148, -0.012972619384527206, 0.004420959856361151, -0.01385774090886116, -0.008118334226310253, -0.0383569709956646, -0.024381248280405998, 0.005218468606472015, -0.022249750792980194, -0.022489657625555992, -0.01537599228322506, 0.015754910185933113, -0.07350816577672958, -0.023918800055980682, -0.008146615698933601, 0.0800263062119484, 0.057931967079639435, -0.040014106780290604, 0.01671650819480419, -0.029204366728663445, -0.11166361719369888, -0.004276687279343605, 0.0014405838446691632, -0.008960957638919353, 0.0005217386642470956, 0.0023842218797653913, 0.014302339404821396, -0.04313903674483299, -0.04171612858772278, 0.00840174499899149, 0.01464285608381033, 0.037490684539079666, -0.04092192277312279, 0.004506116732954979, 0.016384145244956017, -0.0220426507294178, -0.0018073745304718614, 0.0754009336233139, -0.05066526308655739, -0.021391693502664566, -0.01877640001475811, -0.03081989660859108, 0.04049878567457199, 0.0012533556437119842, 0.018697448074817657, -0.0004712569934781641, 0.050879959017038345, 0.01247677206993103, -0.04133431985974312, -0.006378138903528452, -0.03430014103651047, -0.0111962566152215, -0.01424579881131649, -0.04949804022908211, 0.007440485525876284, 0.03547997400164604, 0.056064218282699585, -0.008859963156282902, -0.04932764545083046, 0.01761837862432003, -0.04822016879916191, -0.008975808508694172, -0.012702062726020813, 0.030479367822408676, -0.002874344354495406, -0.0010495989117771387, -0.01733553037047386, -0.059450406581163406, 0.01350353006273508, -0.000799555447883904, -0.00581492530182004, -0.06499112397432327, -0.026140471920371056, -0.002131777349859476, -0.016900349408388138, 0.007883484475314617, -0.01659955270588398, -0.028548650443553925, 0.010417360812425613, 0.03196533024311066, -0.03471623361110687, 0.029661815613508224, -0.011816620826721191, -0.03586379438638687, -0.030356628820300102, 0.015320452861487865, 0.023584328591823578, -0.0010331611847504973, 0.019703730940818787, 0.025120733305811882, 0.023696664720773697, 0.037802137434482574, 0.005500925704836845, 0.01960056461393833, -0.008142330683767796, 0.00519965123385191, 0.010570074431598186, -0.013103535398840904, -0.03858557343482971, 0.03416939452290535, -0.04279671609401703, -0.033275753259658813, -0.03456173837184906, 0.02934895269572735, -0.006792194209992886, -0.016388777643442154, -0.02760390006005764, 0.004769777413457632, -0.04133804515004158, 0.0031169753056019545, -0.01807253435254097, 0.018921716138720512, 0.07075197994709015, 0.025539861992001534, 0.01762285642325878, -0.014059623703360558, -0.012605643831193447, 0.015303823165595531, -0.019575394690036774, -0.04405341297388077, -0.019364792853593826, -0.017760779708623886, -0.010396975092589855, 0.014897020533680916, 0.01529588084667921, -0.0012551503023132682, 0.009882978163659573, -0.00730348052456975, -0.03422459587454796, 0.007135486695915461, 0.022672856226563454, 0.053704094141721725, 0.03647633641958237, -0.0031728940084576607, -0.003990704659372568, 0.0033281699288636446, -0.02189294993877411, -0.03622588887810707, 0.0031805215403437614, -0.0007175963837653399, -0.0072097573429346085, -0.03969627246260643, -0.08434709906578064, 0.03615209087729454, 0.0405263677239418, -0.02459009736776352, -0.0056720394641160965, -0.0030000091064721346, -0.03052343614399433, -0.011995016597211361, 0.0637473315000534, 0.07226363569498062, -0.06828583031892776, -0.014093917794525623, -0.014423276297748089, 0.012596066109836102, -0.0034876656718552113, 0.01675025373697281, -0.04552973806858063, 0.0043497332371771336, -0.005372842773795128, 0.016007451340556145, -0.018935618922114372, -0.00567444646731019, -0.013333882205188274, -0.007652227766811848, -0.004380176309496164, 0.004540540277957916, -0.013478891924023628, -0.012474041432142258, -0.01877506449818611, -0.03919434919953346, 0.00579064479097724, -0.025590592995285988, -0.0334307886660099, 0.018137553706765175, -0.01762160286307335, 0.02422032132744789, -0.05097982659935951, 0.015827560797333717, 0.02141987904906273, -0.022428138181567192, -0.019596179947257042, -0.06262458860874176, 0.014795488677918911, 0.01300667505711317, 0.04120221361517906, -0.017286701127886772, -0.02892780303955078, -0.01601213589310646, 0.009700940921902657, -0.034158624708652496, -0.009279618971049786, 0.0018350398167967796, -0.029268579557538033, 0.034668128937482834, 0.051228586584329605, -0.01404469646513462, 0.04334840551018715, 0.00110324053093791, -0.024401316419243813, 0.04289834573864937, -0.045504603534936905, -0.014897260814905167, 0.011588945053517818, -0.0563293881714344, 0.03816859424114227, 0.012074224650859833, 0.031177202239632607, -0.09221947938203812, 0.050397440791130066, 0.025550970807671547, -0.0037184187676757574, 0.05593686178326607, -0.011485378257930279, 0.0432111918926239, -0.022714756429195404, -0.02356007881462574, -0.10515416413545609, -0.009423418901860714, 0.03738962486386299, -0.011058643460273743, -0.00567923579365015, 0.02666621468961239, -0.03652016818523407, 0.008458778262138367, -0.07084140926599503, -0.02081800438463688, 0.04867717996239662, -0.016427114605903625, -0.007228427100926638, 0.0068127671256661415, -0.045449625700712204, 0.018137268722057343, 0.06676287949085236, -0.010436562821269035, -0.019955452531576157, -0.030934153124690056, 0.05471751093864441, -0.005368140060454607, 0.04429691657423973, -0.009925482794642448, -0.02545895054936409, 0.06383316963911057, 0.004241118207573891, -0.0018927103374153376, 0.040307752788066864, -0.011840459890663624, 0.03876406326889992, 0.030393177643418312, -0.003331740153953433, 0.012089733965694904, 0.012041325680911541, -0.024990128353238106, -0.05002600699663162, 0.014989405870437622, 0.01744166761636734, -0.01779588870704174, -0.05575552582740784, 0.06058606505393982, -0.0017866560956463218, -0.048918914049863815, -0.03937982767820358, 0.009573547169566154, -0.04140300676226616, -0.004770932253450155, -0.03464473783969879, -0.008655037730932236, -0.060729656368494034, 0.04725150763988495, -0.0005936389788985252, -0.020126163959503174, 0.05881267786026001, 0.019429193809628487, -0.02584485523402691, 0.027860231697559357, 0.0758175402879715, 0.08544290065765381, 0.030754437670111656, 0.011731711216270924, 0.06250341236591339, -0.0069598848931491375, -0.05470344424247742, 0.0012935784179717302, -0.01619812101125717, -0.015578757040202618, -0.025564763695001602, 0.007467492949217558, 0.05734137073159218, 0.014111189171671867, 0.0773242712020874, 0.0071612694300711155, -0.018566617742180824, 0.012681147083640099, 0.025598958134651184, 0.034411828964948654, 0.04672858864068985, 0.003487783018499613, 0.041745830327272415, 0.004048145841807127, -0.03094089776277542, 0.024902474135160446, -0.004013995174318552, -0.0218921210616827, 0.00368794915266335, -0.015564622357487679, 0.03442290797829628, 0.0018285997211933136, 0.041044749319553375, 0.08321169763803482, -0.031055022031068802, -0.010053891688585281, -0.004760498646646738, 0.03673655539751053, 0.019240770488977432, 0.033922042697668076, -0.03985259309411049, -0.02484729327261448, -0.004863873589783907, -0.036261141300201416, -0.006094522774219513, -0.012427429668605328, -0.034853722900152206, 0.018130172044038773, -0.04399992525577545, -0.0003205268003512174, 0.04115399718284607, 0.013474825769662857, -0.05011674389243126, -0.04867272451519966, -0.03992311283946037, -0.03193911164999008, -0.05379332974553108, -0.028982816264033318, 0.010439393110573292, -0.020460376515984535, -0.03521226719021797, -0.041793882846832275, -0.01740993559360504, -0.03395590931177139, 0.0400426872074604, -0.04922287166118622, -0.04376979172229767, 0.008590159006416798, 0.03870494291186333, 0.020241526886820793, 0.015003551729023457, 0.07657713443040848, -0.0225834883749485, -0.029415840283036232, -0.025618895888328552, 0.0076181706972420216, 0.046509936451911926, -0.00646011671051383, 0.019993912428617477, -0.08723597973585129, 0.04108232259750366, 0.02026330679655075, 0.012821641750633717, -0.07067009806632996, 0.01535793300718069, 0.03426893427968025, 0.0051368833519518375, 0.053610995411872864, -0.024905243888497353, 0.01565472036600113, -0.04790179803967476, -0.017376556992530823, -0.01489612553268671, 0.007982946932315826, 0.057105664163827896, -0.02740383893251419, 0.07311918586492538, 0.02510697953402996, -0.0002302169450558722, -0.037158265709877014, -0.019490467384457588, -0.012031208723783493, 0.007355187088251114, -0.03985070809721947, -0.015339180827140808, -0.043732598423957825, -0.09206873923540115, -0.02585209719836712, 0.02781529538333416, -0.030313344672322273, -0.031126318499445915, 0.00695775356143713, 0.04358275979757309, 0.0032618138939142227, 0.017746733501553535, -0.041844725608825684, 0.003318189876154065, -0.019096780568361282, -0.008829823695123196, -0.021138591691851616, 0.03334580734372139, -0.00968063436448574, 0.013367160223424435, 0.0212363600730896, -0.031365375965833664, -0.005607566796243191, 0.00838983803987503, 0.02631032094359398, 0.050632670521736145, 0.005589051637798548, 0.004061846993863583 ]
[ -0.09758228808641434, -0.04328517988324165, -0.03625310957431793, -0.04397173970937729, 0.04324266314506531, -0.03108508326113224, 0.0026102829724550247, 0.003063733223825693, 0.03196718916296959, 0.006189592182636261, -0.021040398627519608, -0.07286733388900757, 0.009942002594470978, 0.0022998140193521976, 0.035479962825775146, -0.0357249490916729, -0.006720955949276686, -0.06227034330368042, -0.015595265664160252, 0.041644006967544556, -0.0355575866997242, -0.023789547383785248, -0.044967375695705414, -0.05200936645269394, -0.01851074770092964, 0.03195545822381973, 0.04503432288765907, -0.030849000439047813, -0.002157385926693678, -0.2174176126718521, 0.018887881189584732, -0.025944553315639496, -0.007302424870431423, 0.004588333424180746, -0.0028843998443335295, -0.022855965420603752, 0.010155143216252327, -0.00812256708741188, -0.007927440106868744, 0.018824612721800804, 0.01909463107585907, 0.012841255404055119, -0.058488618582487106, -0.0033660733606666327, 0.06096712499856949, -0.006054502911865711, -0.00118179467972368, 0.004847177304327488, 0.01940247230231762, 0.025495989248156548, -0.041703544557094574, 0.013022449798882008, 0.0032533484045416117, -0.03819124773144722, 0.004842911381274462, 0.038711220026016235, 0.05982903763651848, 0.07378092408180237, -0.0031233644112944603, 0.015759510919451714, 0.04708481207489967, 0.019762342795729637, -0.12809216976165771, 0.09598308056592941, -0.009816505946218967, 0.03999385982751846, -0.02623860351741314, 0.012684238143265247, 0.01006088312715292, 0.0872870534658432, -0.007078963331878185, -0.027174105867743492, 0.0003148902324028313, 0.06398960947990417, 0.015160627663135529, -0.0157572440803051, -0.023571249097585678, 0.028094274923205376, 0.0211668498814106, -0.001951380167156458, -0.0437663309276104, -0.026196561753749847, -0.043321963399648666, -0.051712241023778915, -0.04691649228334427, 0.04095227271318436, -0.02315683104097843, 0.028918160125613213, -0.016619157046079636, -0.00013051254791207612, 0.03317834809422493, 0.02693757973611355, 0.034504640847444534, 0.027620527893304825, -0.08876984566450119, -0.004687055479735136, 0.010028430260717869, 0.01037775631994009, -0.000544968992471695, 0.43701791763305664, 0.005967552307993174, 0.012183832004666328, 0.009597190655767918, 0.024366194382309914, 0.004714521113783121, -0.01928379014134407, -0.00484828045591712, -0.04840967804193497, 0.005226699635386467, -0.030000898987054825, 0.016852498054504395, -0.023346422240138054, 0.07701680064201355, -0.030067654326558113, 0.009692342951893806, 0.056293997913599014, -0.004804128780961037, 0.03281769901514053, -0.013953186571598053, 0.016895154491066933, -0.03811143711209297, -0.02672354318201542, 0.0033035017549991608, 0.021556273102760315, 0.013130231760442257, -0.004629157017916441, 0.012252101674675941, 0.06275708228349686, 0.03142973780632019, 0.006043299566954374, 0.06551285833120346, -0.01808970607817173, -0.08501184731721878, 0.014262763783335686, 0.021273791790008545, -0.016061827540397644, 0.002284733112901449, -0.024703480303287506, 0.015811283141374588, 0.03980381786823273, -0.00017307649250142276, -0.07940775901079178, 0.07991013675928116, -0.012682929635047913, -0.05848066508769989, 0.12488772720098495, 0.013105529360473156, -0.03800221532583237, -0.03249620273709297, -0.062356505542993546, 0.015599904581904411, 0.007511771749705076, 0.03508980572223663, -0.04341254383325577, -0.01568065769970417, 0.03664924576878548, 0.07275594025850296, -0.01939585991203785, -0.0705171525478363, -0.04051933065056801, -0.04680913686752319, -0.04727351292967796, -0.028001293540000916, 0.034135911613702774, 0.05307868868112564, -0.13412891328334808, -0.02005951851606369, 0.002593565732240677, -0.008805601857602596, -0.06067363917827606, 0.013293326832354069, -0.016997966915369034, -0.05665794759988785, 0.03012702986598015, 0.028567694127559662, -0.030953414738178253, -0.028458479791879654, -0.00033509396598674357, 0.07154744118452072, -0.00934914406388998, 0.006587589625269175, -0.00674097053706646, -0.06194378063082695, -0.016808537766337395, -0.061104848980903625, -0.05607978627085686, -0.08210298418998718, 0.00702435988932848, 0.005036449991166592, -0.0048582954332232475, -0.0637924000620842, -0.022238481789827347, -0.08208119124174118, 0.08268242329359055, -0.0323326513171196, -0.026759030297398567, 0.024306954815983772, -0.0018934519030153751, 0.03396153077483177, -0.028587164357304573, -0.010992996394634247, 0.017343176528811455, 0.0014790813438594341, 0.028823677450418472, -0.030903104692697525, 0.03932782635092735, 0.02670801244676113, -0.05906408652663231, 0.08127042651176453, 0.023005155846476555, -0.014127477072179317, -0.007463329471647739, -0.0449545793235302, 0.017214417457580566, -0.02569817565381527, -0.021553434431552887, 0.0007331536035053432, 0.005957103334367275, 0.021886777132749557, 0.026236047968268394, -0.0035478128120303154, 0.020341772586107254, -0.016225405037403107, -0.34385398030281067, -0.03867121413350105, -0.05934341624379158, 0.009054609574377537, 0.031182996928691864, -0.03395921364426613, 0.009765858761966228, -0.014272533357143402, 0.024823956191539764, 0.043344397097826004, 0.06370102614164352, -0.028956538066267967, 0.012698950245976448, -0.06467487663030624, -0.014620374888181686, 0.03261062502861023, -0.025103362277150154, 0.0137782609090209, -0.0089294807985425, 0.023645197972655296, 0.039208654314279556, -0.01590326800942421, -0.03634403273463249, -0.028396978974342346, 0.021877406165003777, -0.042729780077934265, 0.1173226460814476, 0.04866216704249382, 0.042007897049188614, -0.047781605273485184, 0.05861968547105789, 0.006070801522582769, -0.029031142592430115, -0.08297836780548096, 0.022663697600364685, -0.000867565453518182, 0.0036079681012779474, -0.010967555455863476, 0.02451992779970169, -0.04804740101099014, -0.040486808866262436, 0.014309147372841835, -0.01929965242743492, -0.05296120047569275, -0.02045278064906597, 0.015585926361382008, -0.0031862889882177114, -0.027563462033867836, -0.03231868892908096, 0.08716895431280136, 0.034256547689437866, -0.0011230680393055081, 0.03219272941350937, 0.018569407984614372, 0.02345493622124195, -0.0334378220140934, -0.06431052833795547, -0.011412505060434341, 0.005066970828920603, -0.011493673548102379, 0.046740032732486725, 0.023424573242664337, 0.025780731812119484, -0.04093622788786888, -0.012606168165802956, 0.0026692345272749662, 0.027008015662431717, -0.005917530972510576, 0.05604058504104614, -0.02726622484624386, -0.04627041518688202, 0.041885774582624435, 0.020038587972521782, 0.04237012192606926, 0.027336642146110535, 0.04732229933142662, 0.02074516750872135, -0.0018409757176414132, 0.03362079709768295, 0.026382217183709145, 0.04929365962743759, -0.039006538689136505, 0.058298323303461075, -0.01786160282790661, 0.013996848836541176, 0.06499329954385757, 0.035474468022584915, -0.02316458895802498, 0.07294910401105881, 0.0032695471309125423, -0.00866016373038292, 0.006677823141217232, -0.030540937557816505, -0.03309690207242966, 0.032312776893377304, -0.0040477304719388485, -0.27719777822494507, 0.03938828408718109, 0.0714670792222023, 0.06056870520114899, 0.012571384198963642, -0.012271770276129246, 0.055005889385938644, -0.02899322099983692, -0.015878358855843544, 0.0016701010754331946, 0.021074693650007248, -0.007367388810962439, -0.027103189378976822, 0.014386461116373539, -0.019728269428014755, 0.00485128303989768, 0.05125045031309128, -0.0043466766364872456, 0.02836119569838047, 0.01652742363512516, 0.03461407124996185, -0.004582775756716728, 0.15553875267505646, 0.0012122069019824266, 0.05280536413192749, 0.045733898878097534, -0.00918695516884327, 0.0015292471507564187, 0.05267319828271866, 0.020464599132537842, -0.019514383748173714, -0.008837305009365082, 0.019904889166355133, 0.005023759324103594, 0.025300167500972748, -0.015744110569357872, -0.03135920315980911, 0.039236586540937424, -0.0074386801570653915, -0.0313764289021492, -0.007243610918521881, 0.0054540554992854595, -0.041156310588121414, 0.04120149463415146, 0.039934951812028885, 0.03432203084230423, 0.0010364920599386096, -0.031508367508649826, -0.0543924942612648, 0.005574073176831007, -0.031239116564393044, -0.06432660669088364, 0.005550892557948828, -0.02834416553378105, -0.0036813707556575537, 0.03557668626308441, 0.066648930311203, -0.014221041463315487, 0.05359998717904091, 0.02080639824271202, 0.018282456323504448, -0.04372071102261543, 0.08806048333644867, 0.039250198751688004, 0.006879047956317663 ]
[ 0.01089269109070301, 0.02809900976717472, -0.023698419332504272, 0.003447224386036396, -0.005158205982297659, 0.034827377647161484, 0.012515797279775143, 0.013703668490052223, 0.0051759337075054646, -0.005873315501958132, -0.05515088140964508, -0.009101358242332935, 0.015640150755643845, 0.011402781121432781, 0.003264789469540119, -0.07728125900030136, -0.023756559938192368, -0.013109537772834301, 0.04857704043388367, -0.010675800032913685, -0.029935535043478012, 0.02198261022567749, 0.043228067457675934, 0.004296635277569294, -0.039758581668138504, 0.0017944553401321173, -0.035969436168670654, 0.008160720579326153, -0.01220093946903944, -0.10097959637641907, -0.06496961414813995, -0.02841724455356598, -0.007627073209732771, 0.004472528118640184, -0.019065406173467636, -0.026105264201760292, -0.03350639343261719, 0.019931146875023842, -0.0219403225928545, -0.026656169444322586, 0.025094402953982353, -0.06730446964502335, -0.017129676416516304, 0.05348668992519379, -0.03441880643367767, -0.013219812884926796, -0.030740568414330482, 0.030066920444369316, 0.015823066234588623, 0.020727476105093956, -0.06738970428705215, 0.0007039602496661246, 0.001780963153578341, 0.009867653250694275, 0.028048407286405563, 0.0225956030189991, -0.002531409729272127, 0.019278377294540405, -0.008146380074322224, -0.06941419094800949, 0.0030243373475968838, -0.0012875021202489734, -0.043135207146406174, -0.0250142402946949, -0.00614455109462142, -0.045781154185533524, -0.03747234120965004, 0.031191987916827202, 0.04583479464054108, 0.008463532663881779, -0.01754702255129814, 0.02356840670108795, -0.02192262001335621, -0.02129409834742546, -0.03008168376982212, 0.003227856243029237, -0.011763221584260464, -0.020693380385637283, 0.051063425838947296, 0.015162608586251736, -0.0440506748855114, -0.007450109347701073, -0.01291721872985363, -0.008396577090024948, 0.01944669708609581, -0.031148679554462433, 0.03737768530845642, -0.014209134504199028, 0.0033606819342821836, -0.023413315415382385, -0.020046113058924675, 0.02413908950984478, 0.02759995497763157, 0.01769857667386532, -0.08432667702436447, 0.036455538123846054, -0.008911777287721634, -0.0046860938891768456, -0.003824898973107338, 0.8176851868629456, 0.012736125849187374, 0.004784691147506237, 0.018562739714980125, 0.006925599183887243, 0.042166560888290405, 0.009951946325600147, 0.0001527159911347553, -0.0242548156529665, 0.04704032838344574, -0.05394731089472771, -0.006830680184066296, 0.009348995983600616, 0.039194222539663315, -0.008407099172472954, 0.011279704049229622, 0.07899999618530273, -0.03498682752251625, 0.019662370905280113, -0.02008753828704357, 0.024612145498394966, 0.015639066696166992, -0.03522420674562454, -0.0021113320253789425, -0.007095035631209612, 0.032700493931770325, -0.14189215004444122, 0.012349969707429409, -6.462676188304959e-33, 0.01654634438455105, -0.060261841863393784, 0.021581007167696953, -0.0035829399712383747, 0.03151048347353935, 0.0071440162137150764, 0.012852407991886139, 0.001521939062513411, -0.03702903538942337, -0.03032838925719261, 0.0020524202845990658, -0.011337494477629662, 0.003475720761343837, -0.019472097977995872, 0.06264413893222809, -0.01363089308142662, -0.016591249033808708, 0.033078767359256744, 0.0194227397441864, 0.011026110500097275, 0.038383953273296356, 0.03891391679644585, 0.025696290656924248, 0.02288653515279293, 0.0059077986516058445, 0.028731465339660645, -0.029960324987769127, -0.04851808026432991, -0.008724745362997055, -0.020902611315250397, -0.05019763112068176, 0.003856851952150464, -0.01466674730181694, -0.07836060225963593, 0.009477684274315834, -0.048272885382175446, -0.02789408713579178, -0.02273419313132763, -0.013568075373768806, -0.011064578779041767, -0.05940086022019386, -0.008923825807869434, -0.025655508041381836, -0.039592716842889786, -0.03985361009836197, -0.007438653614372015, 0.010908985510468483, 0.05962136387825012, -0.025816231966018677, 0.031813833862543106, 0.0444563552737236, -0.021144816651940346, -0.00294348387978971, -0.006090036127716303, 0.02010178565979004, 0.055022213608026505, 0.005538467317819595, 0.040796443819999695, 0.0019188146106898785, -0.021944470703601837, 0.0492449514567852, -0.02206074260175228, -0.0008363667293451726, 0.01297060213983059, 0.022832229733467102, 0.015183293260633945, 0.006125974003225565, -0.010355047881603241, 0.03146623075008392, -0.004336939193308353, -0.05390070378780365, 0.027463743463158607, -0.029706235975027084, -0.053877413272857666, 0.036088407039642334, -0.00897880271077156, 0.05121993646025658, -0.007457883562892675, 0.04136667773127556, 0.02909950725734234, 0.03605382889509201, 0.025606507435441017, -0.01729385182261467, -0.05270153656601906, -0.0493047833442688, -0.006814045365899801, 0.029344942420721054, -0.0010173345217481256, -0.005449742078781128, 0.0020459997467696667, 0.05673076957464218, 0.026734424754977226, 0.01562715508043766, -0.011439279653131962, -0.014090542681515217, 6.476596245470603e-33, 0.003943560644984245, -0.016983838751912117, 0.0015792599879205227, -0.019310237839818, 0.0779186263680458, -0.03504728525876999, 0.03491958603262901, -0.004708665423095226, -0.008518444374203682, 0.014840916730463505, -0.04748174175620079, -0.028379391878843307, -0.022783568128943443, 0.01814137026667595, 0.037372369319200516, 0.003459844272583723, 0.016603544354438782, -0.0011151382932439446, 0.006929910276085138, -0.019079633057117462, 0.009454073384404182, 0.0263527799397707, 0.028301136568188667, 0.01798786036670208, 0.007348273415118456, 0.0040486473590135574, 0.026116397231817245, -0.00246980506926775, -0.00801225658506155, 0.024848539382219315, 0.0012356265215203166, 0.02139519713819027, -0.041369788348674774, 0.002646007342264056, -0.035274215042591095, 0.02280789241194725, 0.033304568380117416, 0.010474026203155518, 0.006895346567034721, 0.005657347850501537, 0.03590613231062889, 0.0375157855451107, -0.009519497863948345, 0.007759090978652239, 0.026813283562660217, 0.02588600479066372, 0.0058556231670081615, 0.029687771573662758, -0.013669442385435104, -0.020583124831318855, 0.018925493583083153, 0.010696734301745892, -0.03115619719028473, 0.0008275600848719478, 0.010437332093715668, -0.007388368248939514, 0.004438670352101326, 0.025035902857780457, -0.028871802613139153, -0.02471442148089409, -0.023505868390202522, 0.01566481590270996, -0.0340980626642704, 0.04243936389684677, -0.0045258114114403725, 0.010372214950621128, -0.06731712073087692, 0.017879221588373184, -0.0008641504682600498, -0.03131462633609772, -0.021696263924241066, -0.027789555490016937, 0.0030543215107172728, 0.04883906617760658, 0.029059428721666336, 0.021527588367462158, -0.02833547629415989, 0.016081955283880234, -0.02230781316757202, 0.05218829959630966, 0.011890381574630737, 0.019886605441570282, -0.0015902520390227437, -0.00783876609057188, -0.012434395030140877, 0.0347786620259285, -0.00740349804982543, -0.026581453159451485, 0.024426627904176712, 0.016063574701547623, -0.004176827147603035, -0.04568984732031822, -0.017218509688973427, 0.012279941700398922, 0.015310605987906456, -1.2245381597608684e-8, -0.03820791468024254, 0.03970491886138916, -0.006642005406320095, 0.025313980877399445, 0.03366963192820549, 0.026317758485674858, -0.02188277617096901, -0.02165081724524498, 0.025963688269257545, -0.0010651667835190892, 0.026526201516389847, -0.013402070850133896, 0.03405584394931793, 0.02346242405474186, 0.027313154190778732, -0.005974218249320984, -0.001623999560251832, -0.007549182046204805, -0.005439830012619495, -0.012169511057436466, 0.007385534700006247, 0.040212877094745636, -0.002825096482411027, 0.022649848833680153, -0.026906561106443405, 0.008954270742833614, 0.036573659628629684, -0.07816480100154877, -0.024371467530727386, -0.007654186338186264, 0.01665954850614071, -0.02828350104391575, -0.02558973990380764, 0.0008280828478746116, -0.0009579722536727786, -0.016784247010946274, -0.000616924196947366, 0.01957434043288231, -0.0017035473138093948, 0.0368579737842083, -0.05559137463569641, -0.013427440077066422, 0.0006750387256033719, -0.020504409447312355, -0.01349726039916277, -0.011074353009462357, -0.02708636038005352, 0.022062180563807487, 0.012375770136713982, -0.07769661396741867, 0.020483098924160004, -0.01787949725985527, -0.0032184943556785583, -0.005629536230117083, 0.04741163179278374, 0.0384056456387043, 0.009957279078662395, -0.026069581508636475, -0.013501866720616817, -0.03698963299393654, 0.03386649489402771, -0.004718626383692026, 0.01076398603618145, -0.016699107363820076 ]
tennis-head-to-head-duckdb-streamlit
https://markhneedham.com/blog/2023/03/31/tennis-head-to-head-duckdb-streamlit
false
2023-04-05 02:44:37
DuckDB/SQL: Convert epoch to timestamp with timezone
[ "duckdb" ]
[ "duckdb" ]
I've been playing around with the Citi Bike Stations dataset on Kaggle with DuckDB and ran into trouble when trying to convert a column containing epoch timestamps to a timestamp with timezone support. In this blog we'll learn how to do that, which will at least be helpful to future me, if noone else! The dataset contains 4GB worth of CSV files, but I've just downloaded a few of them manually for now. Once I downloaded them, I unpacked the ZIP file and put the CSV files into a `data` directory. I installed DuckDB as well and then launched it: [source, bash] ---- ./duckdb bikes.duck.db ---- .Output [source, bash] ---- v0.7.1 b00b93f0b1 Enter ".help" for usage hints ---- Next, we'll create a table called `bikeStations` that's populated from those CSV files, as shown below: [source, sql] ---- CREATE OR REPLACE TABLE bikeStations AS FROM read_csv_auto('data/*.csv', types={"station_id": "VARCHAR"}) WHERE missing_station_information = false; ---- The table contains a column called `station_status_last_reported` that we want to convert to a timestamp type. Let's query that column to view its contents: [source, sql] ---- select station_status_last_reported FROM bikeStations LIMIT 5; ---- .Output [opts="header"] |=== | station_status_last_reported | 1604692013 | 1572853294 | 1630455776 | 1617131040 | 1569461183 |=== We can convert the epoch to a timestamp using the to_timestamp function, like this: [source, sql] ---- select to_timestamp(station_status_last_reported) AS ts FROM bikeStations LIMIT 5; ---- .Output [opts="header"] |=== | ts | 2020-11-06 19:46:53 | 2019-11-04 07:41:34 | 2021-09-01 00:22:56 | 2021-03-30 19:04:00 | 2019-09-26 01:26:23 |=== At the moment this timestamp is using the UTC timezone, but we can't see that unless we cast the result to `timestamptz`: [source, sql] ---- select to_timestamp(station_status_last_reported)::timestamptz AS tstz FROM bikeStations LIMIT 5; ---- .Output [opts="header"] |=== | tstz | 2020-11-06 19:46:53+00 | 2019-11-04 07:41:34+00 | 2021-09-01 00:22:56+01 | 2021-03-30 19:04:00+01 | 2019-09-26 01:26:23+01 |=== But the dataset is actually from New York, so we need to convert it to be in Eastern time instead. We can do that like this: [source, sql] ---- select to_timestamp(station_status_last_reported)::TIMESTAMPTZ AT TIME ZONE 'US/Eastern' AS tstz FROM bikeStations LIMIT 5; ---- .Output [opts="header"] |=== | tstz | 2020-11-06 14:46:53 | 2019-11-04 02:41:34 | 2021-08-31 19:22:56 | 2021-03-30 14:04:00 | 2019-09-25 20:26:23 |=== And if we want to persist that to the table in another column, we can write the following code: [source, sql] ---- ALTER TABLE bikeStations ADD COLUMN ts TIMESTAMP; UPDATE bikeStations SET ts = to_timestamp(station_status_last_reported)::TIMESTAMPTZ AT TIME ZONE 'US/Eastern'; ---- And let's check it worked: [source, sql] ---- select station_status_last_reported, ts from bikeStations LIMIT 5; ---- .Output [opts="header"] |=== | station_status_last_reported | ts | 1604692013 | 2020-11-06 14:46:53 | 1572853294 | 2019-11-04 02:41:34 | 1630455776 | 2021-08-31 19:22:56 | 1617131040 | 2021-03-30 14:04:00 | 1569461183 | 2019-09-25 20:26:23 |===
In this post we'll learn how to convert an epoch timestamp into a SQL timestamp with timezone support using DuckDB.
uploads/2023/04/epoch-timezone-banner.png
[ -0.0164702869951725, -0.022537019103765488, -0.012527472339570522, 0.05480344220995903, 0.11084485799074173, -0.01100172195583582, -0.012694637291133404, 0.05469260737299919, 0.03070758655667305, -0.020814083516597748, 0.011631587520241737, -0.015404250472784042, -0.05698024481534958, 0.02392387203872204, -0.013073264621198177, 0.05699530243873596, 0.05515694245696068, -0.0225030779838562, 0.05038806051015854, -0.0006470963126048446, 0.012292316183447838, 0.011450409889221191, -0.02610155940055847, 0.03044538013637066, 0.002728844992816448, -0.007340067066252232, -0.026234250515699387, 0.006927172187715769, -0.05478569120168686, 0.01635514758527279, 0.04318968579173088, -0.006298026069998741, -0.007082478608936071, 0.009714379906654358, 0.01558081153780222, 0.014213886111974716, -0.023072106763720512, 0.010129300877451897, -0.009487329982221127, 0.0042828223668038845, -0.06830167025327682, 0.018931904807686806, -0.007358118891716003, 0.0237920880317688, -0.03349504619836807, 0.02074243314564228, -0.010480668395757675, 0.02887844108045101, -0.013371278531849384, -0.0043313950300216675, -0.036979030817747116, 0.03400060534477234, -0.011017355136573315, -0.016974501311779022, 0.027995266020298004, 0.04034380614757538, -0.0022146557457745075, -0.06269311159849167, 0.020556962117552757, -0.02327716164290905, 0.05360335856676102, -0.028404565528035164, 0.014521278440952301, 0.013288453221321106, 0.03442598134279251, -0.03134680166840553, -0.004161857534199953, 0.04564760625362396, -0.012008477002382278, 0.001213667681440711, 0.014677629806101322, 0.004490758292376995, -0.029177119955420494, 0.007523425854742527, -0.0064592803828418255, -0.010265019722282887, -0.0025294057559221983, 0.0708293467760086, 0.025722309947013855, 0.06449392437934875, -0.0278768427670002, 0.012637712992727757, 0.030319880694150925, 0.013371155597269535, -0.002504174131900072, -0.04812043160200119, -0.06530368328094482, -0.00942144077271223, -0.056138813495635986, 0.06411856412887573, 0.027924342080950737, -0.0435761995613575, 0.0401698537170887, 0.006978543009608984, -0.025101808831095695, -0.020623840391635895, -0.009465562179684639, 0.020291514694690704, 0.01998530700802803, -0.03695420175790787, -0.06812402606010437, -0.007656927220523357, 0.041344378143548965, 0.03540266677737236, -0.06020805612206459, -0.01958823762834072, -0.04665317386388779, -0.03252779692411423, 0.03318638354539871, 0.014689508825540543, -0.024909747764468193, -0.025134660303592682, -0.005703423172235489, -0.004693577531725168, -0.07522492110729218, 0.03610667586326599, 0.0372585691511631, -0.05756659060716629, -0.004140840377658606, -0.014397707767784595, 0.06295029073953629, 0.04767361283302307, -0.01412759069353342, 0.0430220402777195, 0.016736581921577454, 0.027401704341173172, 0.01177152618765831, 0.03025423362851143, -0.004927023779600859, -0.07064279913902283, -0.042675528675317764, 0.04058804363012314, -0.014855174347758293, 0.004008305724710226, 0.007655459921807051, -0.010869892314076424, -0.022489774972200394, 0.017133967950940132, 0.06793981790542603, 0.044465143233537674, 0.03973501920700073, -0.030694615095853806, 0.0011891730828210711, -0.009088415652513504, 0.01879468560218811, 0.032652974128723145, -0.006077393889427185, -0.05913861468434334, -0.03794954717159271, 0.012797427363693714, 0.009506689384579659, 0.02244105562567711, 0.054439760744571686, -0.0451088547706604, 0.008091973140835762, 0.08295087516307831, 0.01983180083334446, 0.011113204061985016, -0.020378094166517258, -0.003231082810088992, 0.038792647421360016, 0.02432888187468052, -0.006087475456297398, 0.021084262058138847, -0.006315754260867834, -0.03987513482570648, 0.024311309680342674, 0.0464269258081913, -0.025492889806628227, 0.0015191063284873962, -0.044557712972164154, -0.053722020238637924, 0.08207426965236664, -0.019956443458795547, 0.027411315590143204, 0.05497264117002487, 0.08508340269327164, 0.04843808338046074, 0.002769503742456436, -0.001232458045706153, -0.08231906592845917, 0.05856994912028313, 0.0012943053152412176, 0.013614628463983536, 0.04008666053414345, -0.009631435386836529, 0.07040843367576599, 0.03851773962378502, 0.02874867431819439, 0.047266773879528046, -0.06826955825090408, -0.0721273124217987, -0.04909829795360565, 0.0020621411968022585, 0.020779984071850777, -0.06855203211307526, 0.017080770805478096, 0.07091517746448517, 0.01709195412695408, 0.03773827105760574, -0.01695231907069683, 0.008898814208805561, 0.019907616078853607, -0.05289820581674576, -0.0409061424434185, 0.03794180229306221, 0.029105091467499733, -0.019120080396533012, -0.002984751248732209, -0.009858060628175735, -0.031271230429410934, 0.00047908772830851376, 0.030591433867812157, -0.005841753911226988, 0.04609237238764763, 0.0231001153588295, 0.03297046571969986, -0.025701986625790596, -0.0024995007552206516, -0.06425611674785614, 0.03946766257286072, 0.05502292513847351, -0.03349493816494942, -0.02288813516497612, -0.036698758602142334, 0.11762678623199463, 0.047594666481018066, 0.010531234554946423, -0.04766976460814476, 0.03687059506773949, 0.02015029639005661, -0.03616736829280853, -0.01391234714537859, -0.015485124662518501, 0.021865282207727432, 0.009574486874043941, -0.0041036359034478664, -0.027631565928459167, 0.008548893965780735, -0.01327035017311573, 0.023394666612148285, 0.05896151065826416, -0.011819351464509964, 0.0636284202337265, 0.011737670749425888, -0.056555625051259995, -0.01804528199136257, -0.04166404902935028, -0.08548141270875931, -0.03147788718342781, 0.01822615973651409, -0.0011628729989752173, 0.041177697479724884, -0.04069969058036804, -0.022583747282624245, -0.028175409883260727, -0.07576228678226471, 0.058658428490161896, 0.03352653980255127, 0.04839827120304108, -0.006337025668472052, 0.0471920445561409, -0.013646955601871014, 0.017075268551707268, -0.040994249284267426, -0.03925987333059311, -0.04840404912829399, -0.03336739540100098, 0.016887061297893524, 0.0013181768590584397, 0.02312631905078888, 0.017684927210211754, 0.005111053120344877, 0.005375481676310301, 0.0024091352242976427, -0.02324133738875389, 0.0200189221650362, -0.013112770393490791, 0.005938276648521423, -0.028239009901881218, -0.001490385620854795, 0.06134095415472984, -0.057014986872673035, -0.04228045791387558, 0.03774702921509743, -0.061597950756549835, 0.031301792711019516, -0.038472894579172134, -0.027983395382761955, 0.0068433526903390884, 0.031748320907354355, 0.0320901945233345, 0.025475850328803062, 0.021013671532273293, 0.07446634769439697, 0.011974542401731014, 0.02099466882646084, 0.019216513261198997, 0.03131535276770592, 0.05378378555178642, 0.02203495241701603, -0.005654623731970787, 0.06456705927848816, 0.0016544521786272526, -0.03155011683702469, -0.05575772002339363, -0.01372523419559002, -0.04000243544578552, -0.281168133020401, 0.05841296166181564, -0.06259258836507797, -0.0400630421936512, 0.014780224300920963, -0.04904455319046974, 0.037169624119997025, -0.03600218892097473, -0.034300513565540314, 0.004285734612494707, -0.01791713386774063, -0.048381321132183075, -0.01782423071563244, 0.0376603901386261, -0.0029445888940244913, 0.027886496856808662, 0.00924925971776247, -0.03776835277676582, -0.013937892392277718, 0.031142137944698334, 0.001488781999796629, -0.06713086366653442, 0.01983124576508999, 0.053231365978717804, 0.035254642367362976, 0.05906812474131584, -0.05721529573202133, 0.015223503112792969, -0.055403780192136765, -0.047787752002477646, 0.018529079854488373, -0.02234698086977005, 0.00858289748430252, -0.021523086354136467, -0.01921359822154045, -0.026820629835128784, -0.0008983977022580802, 0.011469995602965355, 0.028688794001936913, 0.003719964064657688, -0.047767944633960724, -0.018083859235048294, 0.027356363832950592, 0.011521978303790092, 0.07760857045650482, 0.00880727730691433, -0.051667772233486176, 0.0212384182959795, -0.011768383905291557, 0.06055096164345741, -0.026001786813139915, -0.03505152836441994, -0.03350669890642166, 0.017977267503738403, -0.038828011602163315, -0.010164514183998108, -0.02477640099823475, -0.014934086240828037, -0.031620390713214874, -0.011473817750811577, 0.01806008629500866, -0.03474158048629761, 0.006491606589406729, -0.0373467355966568, -0.0199343990534544, -0.06321803480386734, -0.06961934268474579, -0.013347308151423931, 0.07667388021945953, 0.0731205865740776, -0.0378640741109848, 0.00751666072756052, -0.009571902453899384, -0.11223069578409195, -0.02003719098865986, -0.03527957946062088, -0.003695320338010788, 0.0013698221882805228, -0.025541923940181732, 0.05962439253926277, -0.03588080778717995, -0.01408321876078844, 0.03745284304022789, 0.008176684379577637, 0.0399053692817688, -0.052286531776189804, -0.02383594587445259, 0.0037227701395750046, -0.00889525841921568, -0.016656575724482536, 0.059673380106687546, -0.05808006972074509, 0.003941881004720926, -0.010677781887352467, -0.04978322610259056, 0.04146303981542587, -0.002613890217617154, 0.03323054313659668, 0.0037667297292500734, 0.0004822561168111861, 0.028295548632740974, -0.031089117750525475, -0.020572548732161522, -0.07263980060815811, -0.019411416724324226, -0.04652734100818634, -0.030829602852463722, 0.0397283174097538, 0.021906092762947083, 0.060069359838962555, -0.020368346944451332, -0.03729788586497307, 0.023259075358510017, -0.07836651057004929, -0.014414968900382519, -0.015516974031925201, 0.012727871537208557, -0.0015758108347654343, 0.034386925399303436, -0.02287449687719345, -0.03231191635131836, 0.02354823425412178, -0.00006984316860325634, -0.007195824757218361, -0.051137395203113556, -0.010318773798644543, -0.0024340960662811995, -0.00456865131855011, -0.006929746828973293, -0.010906481184065342, -0.028641439974308014, 0.005363915581256151, 0.03156555816531181, -0.009497194550931454, 0.019448615610599518, -0.011494047939777374, -0.04229816794395447, -0.04757439345121384, 0.011130882427096367, 0.03049146570265293, -0.016450539231300354, 0.004862044006586075, 0.013524740003049374, 0.013997575268149376, 0.027971364557743073, 0.013495618477463722, 0.013127327896654606, 0.0015896182740107179, 0.02154919132590294, 0.018782859668135643, -0.007941250689327717, -0.03706640005111694, -0.021205607801675797, -0.03593685105443001, -0.032835640013217926, 0.007736929692327976, 0.04634759575128555, -0.01407434232532978, 0.004897948354482651, -0.024471232667565346, 0.01798521913588047, -0.05848830193281174, 0.0004723001620732248, -0.022450022399425507, -0.005424105562269688, 0.05032578110694885, 0.02814657986164093, -0.0029587941244244576, 0.015822632238268852, -0.006278263870626688, -0.02860512025654316, -0.003171552438288927, -0.033544011414051056, 0.004573842976242304, 0.02752615138888359, -0.007589308079332113, 0.027734559029340744, 0.01421255525201559, 0.025554340332746506, -0.0010469133267179132, -0.0017765010707080364, 0.023388100787997246, 0.012449324131011963, 0.04004804417490959, 0.04144783690571785, 0.0679493322968483, -0.008359238505363464, 0.004172106273472309, 0.0005678829038515687, -0.03366110473871231, -0.0036417152732610703, -0.006119148340076208, -0.02388940565288067, -0.026470160111784935, -0.014382509514689445, -0.054942261427640915, 0.04128222540020943, 0.05636047571897507, -0.001992979319766164, 0.006455807015299797, -0.004662345629185438, -0.02102058194577694, -0.004338895436376333, 0.04157952219247818, 0.054074663668870926, -0.05397272855043411, 0.0033914190717041492, 0.008860022760927677, 0.009779196232557297, -0.014141003601253033, 0.02810542657971382, -0.047783125191926956, -0.017610693350434303, 0.0008910654578357935, 0.035899899899959564, -0.0071587394922971725, 0.002712822053581476, -0.04078017175197601, -0.019280850887298584, 0.0014714987482875586, 0.02213170751929283, 0.015452300198376179, 0.0018183498177677393, -0.002180066891014576, -0.003998794127255678, 0.0031074611470103264, -0.03501993417739868, -0.0047308714129030704, 0.027262607589364052, 0.006138998549431562, -0.0009975781431421638, -0.04804135859012604, 0.020253391936421394, 0.017323436215519905, -0.008169795386493206, -0.037456344813108444, -0.02564343251287937, -0.0003394253726582974, -0.002918034326285124, 0.07397934049367905, -0.02697746269404888, -0.018556926399469376, -0.013957677409052849, -0.010292137041687965, -0.01637241058051586, -0.009610882960259914, -0.0015823687426745892, -0.0028037496376782656, 0.027768975123763084, 0.03881802782416344, 0.020070422440767288, 0.008989506401121616, -0.023346928879618645, -0.04170552268624306, 0.03896592929959297, -0.048958830535411835, -0.026226311922073364, 0.010847395285964012, -0.04300737753510475, 0.02107984758913517, -0.005545125808566809, 0.032117798924446106, -0.06546333432197571, 0.04597911983728409, 0.027492208406329155, 0.027264360338449478, 0.05781969055533409, 0.011227530427277088, 0.021566716954112053, -0.008259892463684082, -0.02310529723763466, -0.09641636162996292, 0.006782122887670994, 0.016761036589741707, 0.0037802241276949644, -0.016183344647288322, 0.05620499327778816, -0.01221496146172285, 0.019911084324121475, -0.05996056646108627, -0.022563310340046883, 0.0681471973657608, -0.027025684714317322, 0.012874314561486244, 0.0014537916285917163, -0.052872881293296814, 0.01385799702256918, 0.04738834500312805, -0.03900112211704254, -0.00987346563488245, -0.021155597642064095, 0.06386936455965042, -0.005696531850844622, 0.05015178024768829, -0.0374358668923378, -0.0049988823011517525, 0.07615726441144943, 0.005043359939008951, 0.011930647306144238, 0.04163577780127525, -0.023554367944598198, 0.038680411875247955, 0.002322686603292823, -0.03207462280988693, 0.007698144763708115, 0.01135721430182457, -0.006218299735337496, -0.0436694361269474, 0.0046764761209487915, 0.010356228798627853, 0.0052964636124670506, -0.056717194616794586, 0.07538540661334991, -0.004102296195924282, -0.02474302053451538, -0.0747624859213829, 0.004809586331248283, -0.02143242210149765, -0.02343936078250408, -0.003751868847757578, -0.0042595770210027695, -0.03889910876750946, 0.0591663233935833, -0.0029840022325515747, 0.013115907087922096, 0.05595264211297035, 0.005359131842851639, -0.0032516256906092167, 0.013387467712163925, 0.08270158618688583, 0.06686539947986603, 0.032203733921051025, 0.011441306211054325, 0.04646702855825424, -0.016168545931577682, -0.03833955526351929, -0.006950389128178358, -0.0179082490503788, -0.005308302119374275, -0.034797389060258865, -0.028063125908374786, 0.07258018106222153, -0.006373630836606026, 0.07782185822725296, 0.0013563669053837657, -0.002606719732284546, -0.0014431262388825417, 0.012724791653454304, 0.048318035900592804, 0.02479449287056923, -0.009814460761845112, 0.04827118292450905, -0.011859497055411339, -0.025481853634119034, 0.0381399467587471, -0.00018065249605569988, -0.014009399339556694, 0.031899698078632355, -0.02103389799594879, 0.013615759089589119, 0.013606468215584755, 0.050705436617136, 0.04354507103562355, -0.036114051938056946, 0.01562216505408287, 0.01348824705928564, 0.017244668677449226, -0.016769446432590485, 0.03709223121404648, -0.013399146497249603, -0.026271522045135498, 0.002839629538357258, -0.060674987733364105, -0.007212073542177677, -0.003243604674935341, -0.04370088875293732, 0.02323506586253643, -0.0006760951946489513, 0.001021518954075873, 0.04861411452293396, -0.03447026014328003, -0.054631393402814865, -0.04142628610134125, -0.046902503818273544, -0.02149662747979164, -0.08640442043542862, -0.022389618679881096, 0.015507673844695091, -0.037298206239938736, -0.03330644220113754, -0.02499527484178543, -0.03799857199192047, -0.021538499742746353, -0.0037541838828474283, -0.010410681366920471, -0.05573536083102226, 0.012777893804013729, -0.005670606158673763, 0.0045090410858392715, 0.026198694482445717, 0.0500604622066021, -0.011685536243021488, -0.021612176671624184, -0.030848383903503418, 0.011042713187634945, 0.0685565173625946, -0.008507311344146729, 0.021490702405571938, -0.05468488112092018, 0.04088529944419861, 0.010420992970466614, -0.009572900831699371, -0.0747552365064621, 0.03917070850729942, 0.047430142760276794, -0.010744171217083931, 0.06263798475265503, -0.03577271103858948, -0.009205535985529423, -0.028347210958600044, -0.029901977628469467, 0.015734609216451645, 0.021574782207608223, 0.0338912233710289, -0.033096421509981155, 0.07278181612491608, 0.05997422710061073, -0.029356522485613823, -0.025614188984036446, -0.02053464762866497, -0.0036413182970136404, 0.0000699981683283113, -0.04187994450330734, -0.04274612292647362, -0.04942763224244118, -0.07830271124839783, -0.033795032650232315, 0.03335285931825638, -0.015824997797608376, -0.027509218081831932, 0.006507363636046648, 0.02197401411831379, -0.029275864362716675, -0.007040139753371477, -0.059191908687353134, 0.004021104425191879, -0.03364209830760956, -0.03125562146306038, -0.0667380690574646, 0.04351787641644478, -0.005553855560719967, -0.0035927011631429195, 0.005991269834339619, -0.04605422914028168, -0.004845586605370045, -0.019215311855077744, 0.02471502125263214, 0.06686481833457947, -0.008786087855696678, 0.025033026933670044 ]
[ -0.07378982752561569, -0.03876475617289543, -0.03347465395927429, -0.02241213619709015, 0.07659909129142761, -0.0437401719391346, -0.026996659114956856, -0.021603133529424667, -0.004430573899298906, 0.006663844455033541, -0.007376325316727161, -0.055054549127817154, 0.007769390475004911, 0.002368955174461007, 0.039034634828567505, -0.005109218414872885, -0.002560278167948127, -0.08413930982351303, 0.009693751111626625, 0.053066108375787735, -0.03089122846722603, -0.02789749950170517, -0.04155977442860603, -0.014461972750723362, 0.013472788035869598, 0.033190205693244934, 0.041456326842308044, -0.0349983274936676, -0.018236612901091576, -0.2085081785917282, 0.011543160304427147, -0.019830308854579926, 0.02286801114678383, -0.03352545574307442, 0.011564365588128567, -0.004087177570909262, 0.03979462757706642, 0.017757531255483627, 0.0023106022272258997, 0.060197070240974426, 0.04141160473227501, 0.011276914738118649, -0.05318570137023926, -0.03453731909394264, 0.0395013727247715, -0.02111959084868431, -0.013375447131693363, 0.012837434187531471, -0.006821593269705772, 0.021351171657443047, -0.02821987308561802, 0.036573704332113266, -0.004392530303448439, -0.007064243778586388, 0.0077498797327280045, 0.03624565154314041, 0.025701265782117844, 0.05621940642595291, 0.015936026349663734, -0.009427357465028763, 0.006171854678541422, 0.003995759878307581, -0.1523052304983139, 0.08843409270048141, 0.00017955196381080896, 0.05348924919962883, -0.01708589494228363, -0.03199562057852745, -0.0263713039457798, 0.046718865633010864, -0.02228153496980667, -0.0264812633395195, -0.039779651910066605, 0.04641491919755936, 0.01779591478407383, -0.02389879897236824, -0.01818375289440155, 0.025886239483952522, 0.0030921499710530043, -0.041620299220085144, -0.03013564832508564, 0.006908136885613203, -0.027877841144800186, -0.020617058500647545, 0.01159971859306097, -0.0007893917500041425, -0.014996139332652092, 0.05200396478176117, 0.0035918019711971283, 0.04309604689478874, 0.025460539385676384, -0.002720033749938011, 0.07144179940223694, 0.028768086805939674, -0.07475820183753967, -0.015376091003417969, 0.021895280107855797, 0.04588920995593071, -0.0043462952598929405, 0.41015204787254333, -0.014025120064616203, 0.00801412295550108, -0.010068658739328384, 0.050381746143102646, -0.0016085178358480334, -0.020587164908647537, 0.011938933283090591, -0.05058453232049942, 0.014284009113907814, -0.01742416061460972, 0.008317388594150543, 0.006929501425474882, 0.08439324796199799, -0.058883942663669586, 0.00008179985889000818, 0.011497758328914642, 0.021460186690092087, 0.028913268819451332, -0.0165898147970438, 0.02408556081354618, -0.00850876048207283, 0.009021343663334846, 0.014040381647646427, 0.03925555571913719, 0.009939342737197876, -0.012476196512579918, 0.03878819942474365, 0.04474232345819473, 0.03212789446115494, -0.0037135793827474117, 0.05425374582409859, -0.0188975278288126, -0.09244111180305481, 0.005888787563890219, 0.020413516089320183, 0.013426002115011215, 0.03049628809094429, -0.01436438038945198, -0.011607141233980656, 0.0005322688957676291, -0.02551782876253128, -0.05074891075491905, 0.05771220102906227, 0.011511719785630703, -0.05949888005852699, 0.12959620356559753, 0.021097591146826744, -0.016624517738819122, -0.025648202747106552, -0.05975567176938057, -0.022241199389100075, -0.01188361644744873, 0.02387300692498684, -0.05098079517483711, 0.010922504588961601, 0.037611715495586395, 0.06452104449272156, -0.024459417909383774, -0.09957617521286011, -0.018060065805912018, -0.024352505803108215, -0.03730619698762894, -0.03126955032348633, 0.026819299906492233, 0.06741438060998917, -0.11837144196033478, -0.030424147844314575, 0.031627096235752106, 0.04515182226896286, -0.05749386548995972, -0.00516012916341424, -0.005210380535572767, -0.03029278852045536, 0.013597198761999607, 0.09040331840515137, -0.02943180501461029, -0.0033093977253884077, 0.04130635783076286, 0.04515613615512848, 0.0038563949055969715, -0.031630728393793106, -0.018471628427505493, -0.03090698830783367, 0.0019409243250265718, -0.03163342922925949, -0.09319354593753815, -0.07791619002819061, 0.011721287854015827, 0.004290638491511345, -0.02391658164560795, -0.013537435792386532, -0.060783542692661285, -0.06684961915016174, 0.07695851475000381, -0.02690032497048378, -0.05820753797888756, 0.020050112158060074, 0.05409275367856026, 0.03958211839199066, -0.07100638002157211, 0.02053944393992424, 0.001760499901138246, -0.01861303113400936, 0.011610518209636211, -0.04841616004705429, 0.031032081693410873, 0.033569324761629105, -0.06497294455766678, 0.07327429950237274, 0.03840615972876549, 0.027259116992354393, -0.010133870877325535, -0.00600682757794857, 0.027969960123300552, -0.0033081851433962584, -0.0024367489386349916, -0.00510414456948638, -0.02397860214114189, 0.00671169301494956, 0.02926045097410679, 0.0007911010761745274, -0.01335565559566021, -0.015829529613256454, -0.3550751805305481, -0.03193540498614311, -0.026329077780246735, 0.02147175744175911, 0.03250180184841156, -0.05052328109741211, -0.02794477716088295, -0.0040475595742464066, 0.021761454641819, 0.027606096118688583, 0.07385251671075821, -0.0286926981061697, 0.0022043350618332624, -0.08919811993837357, -0.018823936581611633, 0.02488957718014717, -0.029386533424258232, -0.00517545361071825, -0.01991402544081211, -0.017124300822615623, 0.011406715959310532, -0.01779312826693058, -0.07747931033372879, -0.05293673276901245, 0.009990773163735867, -0.016299720853567123, 0.10903062671422958, 0.007709476165473461, 0.06502529233694077, -0.06273802369832993, 0.037045981734991074, -0.03131403401494026, 0.04312456399202347, -0.06468454748392105, 0.013826179318130016, -0.05476691573858261, 0.0184016153216362, 0.012277080677449703, -0.012996025383472443, -0.014694643206894398, -0.0826248750090599, 0.006338602397590876, -0.01604793220758438, -0.037852998822927475, -0.023594116792082787, 0.032293204218149185, 0.011549096554517746, 0.013895045034587383, -0.013976980932056904, 0.049145787954330444, 0.01295006088912487, 0.010598244145512581, 0.00807105377316475, 0.03773188218474388, 0.05134601891040802, -0.0381605289876461, -0.07106340676546097, 0.0026347776874899864, 0.012552745640277863, -0.011370941065251827, 0.03477204218506813, 0.03711334243416786, 0.020136220380663872, -0.031819310039281845, -0.008622311986982822, 0.02082689478993416, -0.02532924897968769, -0.0056879278272390366, 0.03925251588225365, -0.005868087988346815, -0.01720968261361122, 0.10965321213006973, -0.030877508223056793, 0.05127594992518425, 0.03883863985538483, 0.03033950924873352, -0.0013120275689288974, 0.026356371119618416, 0.045407652854919434, 0.011742066591978073, 0.035833101719617844, -0.0558345653116703, 0.04446244612336159, 0.005675675347447395, 0.01525289285928011, 0.072261281311512, 0.03142315521836281, -0.02049233950674534, 0.049945294857025146, 0.040633007884025574, -0.005011587403714657, -0.02046790160238743, -0.017227692529559135, -0.0670456662774086, 0.0792488381266594, -0.010287783108651638, -0.28007203340530396, 0.03103518858551979, 0.03272085264325142, 0.04170943424105644, 0.020502960309386253, -0.015203116461634636, 0.014404566958546638, -0.027847375720739365, -0.01810934580862522, 0.01613137498497963, -0.0081176171079278, 0.04021032899618149, 0.0131234684959054, -0.03182649984955788, 0.018998028710484505, 0.007888156920671463, 0.02456487901508808, 0.026688819751143456, 0.009813889861106873, -0.008463261649012566, 0.017544440925121307, -0.018658624961972237, 0.15043678879737854, 0.06477706879377365, -0.003576197661459446, 0.034798718988895416, -0.02799210324883461, 0.009145100601017475, 0.08315747231245041, 0.03338683024048805, -0.0199623741209507, -0.02688494324684143, 0.040976569056510925, 0.022985151037573814, 0.014076248742640018, -0.008038177154958248, -0.0546029731631279, 0.0799349993467331, -0.009830807335674763, -0.0221894308924675, -0.035436369478702545, 0.025493191555142403, -0.036450617015361786, 0.03139813244342804, 0.060229361057281494, -0.0002691923582460731, -0.026040595024824142, -0.04105718806385994, -0.01527979876846075, -0.013071008026599884, -0.02135615609586239, -0.06057482585310936, -0.016377320513129234, -0.020910650491714478, 0.009891200810670853, 0.07230404019355774, 0.043592534959316254, -0.011743267998099327, 0.029851248487830162, 0.015761982649564743, 0.018310660496354103, -0.07540010660886765, 0.08019942790269852, 0.007290661334991455, -0.027153121307492256 ]
[ 0.015350280329585075, 0.04545179381966591, -0.02245963364839554, 0.019986774772405624, 0.003600380150601268, 0.01607147417962551, -0.0023796381428837776, 0.0467376634478569, -0.03141142800450325, -0.03229144215583801, -0.045282166451215744, -0.047419093549251556, 0.033217187970876694, -0.03724665939807892, 0.0047390456311404705, -0.024861473590135574, 0.0037965753581374884, -0.021657448261976242, 0.026615489274263382, -0.018150554969906807, -0.03281933441758156, 0.03726853057742119, 0.03101801499724388, 0.0439796969294548, -0.018439872190356255, 0.012875104323029518, -0.05947336554527283, 0.023040777072310448, -0.010405141860246658, -0.09380476921796799, -0.06733723729848862, 0.020099474117159843, -0.019452759996056557, 0.011453020386397839, 0.0011792653240263462, 0.004419970326125622, 0.017410045489668846, 0.03242943435907364, -0.01859852485358715, -0.007642226293683052, 0.00655390415340662, -0.03829091787338257, -0.01142471469938755, 0.03333410248160362, 0.04372546449303627, 0.004020394757390022, -0.00162601750344038, 0.01090165227651596, -0.019644567742943764, 0.04386649280786514, -0.03741198405623436, 0.022486811503767967, 0.009711726568639278, 0.016263986006379128, 0.03869647905230522, 0.006523726508021355, -0.027837436646223068, 0.04957814887166023, 0.006066950038075447, -0.04237409681081772, -0.036144886165857315, -0.0183574128895998, -0.03218855708837509, -0.0004891136195510626, 0.010629444383084774, -0.02925247885286808, -0.04111282899975777, -0.00929252989590168, 0.004700866062194109, 0.005814102478325367, 0.0010109397117048502, 0.024311233311891556, -0.044763680547475815, -0.030410122126340866, -0.029436107724905014, 0.01605468988418579, 0.0176396481692791, -0.01805218495428562, -0.0123765142634511, 0.005201878026127815, -0.04821548983454704, 0.015549205243587494, 0.032382771372795105, -0.04195980727672577, -0.005271026398986578, -0.07359057664871216, 0.04753847047686577, 0.009910129941999912, 0.0035422106739133596, -0.019968850538134575, -0.01343689113855362, 0.0011950560146942735, -0.018106145784258842, 0.0007746191695332527, -0.07152395695447922, -0.003696833038702607, 0.01674269698560238, 0.0012093731202185154, 0.012528548017144203, 0.805626392364502, 0.011287324130535126, 0.011554709635674953, -0.04444194585084915, 0.043774593621492386, -0.012526843696832657, 0.006979044526815414, 0.023049768060445786, -0.010288956575095654, -0.013565835542976856, -0.012854062020778656, 0.03494669124484062, 0.04229390248656273, 0.008057220838963985, -0.04419901594519615, 0.03164687752723694, 0.047406189143657684, -0.05415797233581543, -0.024119781330227852, 0.00036650666152127087, 0.013350989669561386, -0.004759994801133871, 0.013437647372484207, -0.02244517020881176, 0.016854219138622284, 0.006972808390855789, -0.12425074726343155, 0.044799450784921646, -5.826427748636903e-33, -0.007434581406414509, -0.03304366394877434, 0.04911703243851662, -0.032335538417100906, 0.044074300676584244, 0.00957332644611597, -0.03319290652871132, 0.012555623427033424, 0.00882897712290287, 0.007072905078530312, 0.008484844118356705, -0.018946610391139984, 0.006539242807775736, -0.04982462152838707, 0.05742283910512924, 0.009533659555017948, -0.027234381064772606, -0.010440453886985779, 0.05969564989209175, -0.006855202838778496, 0.05428222194314003, 0.007244243752211332, -0.021905774250626564, 0.021754080429673195, 0.04775306209921837, 0.055692270398139954, 0.023764634504914284, -0.03853074088692665, -0.02657213993370533, -0.024516239762306213, -0.029081223532557487, 0.010361969470977783, -0.042115021497011185, -0.03835399076342583, 0.023002158850431442, -0.06139233335852623, -0.010520322248339653, 0.026880403980612755, -0.03009740635752678, 0.010385986417531967, -0.008597755804657936, -0.030411237850785255, -0.06822480261325836, -0.025574788451194763, 0.010753928683698177, 0.015664981678128242, 0.04140815883874893, 0.032281164079904556, -0.00564200384542346, -0.02668449841439724, 0.017239397391676903, 0.004361648578196764, 0.012308033183217049, -0.05892803519964218, 0.026589490473270416, 0.04665409028530121, 0.02656572312116623, -0.02330821007490158, -0.01120583526790142, -0.007227115798741579, 0.027880599722266197, -0.015182440169155598, 0.023102153092622757, -0.015071507543325424, 0.005433265585452318, -0.012137895449995995, 0.014062298461794853, 0.024127431213855743, 0.0361986942589283, 0.025125108659267426, -0.02455376461148262, -0.013171758502721786, -0.010222457349300385, -0.04112092778086662, 0.04835189878940582, -0.0029412023723125458, 0.036829907447099686, 0.011505049653351307, 0.04393288493156433, 0.023659028112888336, 0.024132540449500084, -0.03567817062139511, -0.06093067675828934, -0.04235755652189255, -0.04104675352573395, -0.05314864218235016, 0.03761421516537666, 0.022538430988788605, -0.023021655157208443, -0.021365730091929436, 0.02784186415374279, 0.019866574555635452, 0.054359253495931625, -0.016736837103962898, -0.05169228836894035, 6.412788208056061e-33, 0.03731849044561386, 0.008387880399823189, -0.011948579922318459, 0.002863659057766199, 0.04586462676525116, -0.02377493306994438, 0.005730131175369024, 0.043407924473285675, -0.021687248721718788, 0.03400107100605965, 0.004863168112933636, -0.041934117674827576, -0.019000675529241562, 0.030566541478037834, 0.021959561854600906, 0.052338436245918274, 0.031794074922800064, -0.005662443581968546, -0.01679125614464283, -0.015710661187767982, -0.005878613330423832, 0.008520872332155704, -0.007355633191764355, 0.022234946489334106, 0.04879248887300491, 0.02831329219043255, 0.007947389036417007, -0.0004132273606956005, 0.0025006933137774467, 0.015398792922496796, -0.03797994926571846, -0.0024050776846706867, 0.004857972264289856, -0.007999037392437458, -0.0753052607178688, 0.042522940784692764, 0.03873997926712036, -0.00830153375864029, -0.014329561963677406, -0.004264309071004391, 0.014478701166808605, 0.023862648755311966, -0.048469994217157364, 0.023567525669932365, 0.0033136457204818726, 0.05689775571227074, 0.016229482367634773, 0.033393505960702896, -0.029682043939828873, -0.005406416952610016, 0.03382575139403343, 0.0038748509250581264, -0.007949341088533401, 0.01522844098508358, 0.04660128057003021, 0.013498212210834026, -0.010693269781768322, -0.01718231663107872, -0.0497342087328434, -0.02906595915555954, -0.005405548494309187, -0.014900065027177334, 0.0114420335739851, 0.024862447753548622, -0.019698526710271835, -0.026935148984193802, -0.011200464330613613, -0.0010183932026848197, -0.0005793323507532477, -0.02083607390522957, 0.00013944474630989134, -0.0037531976122409105, -0.009331885725259781, 0.0556795708835125, -0.0000072965067374752834, 0.01972578838467598, -0.01695016212761402, 0.013245852664113045, -0.02411770075559616, 0.022299962118268013, 0.012783330865204334, -0.017787694931030273, -0.0007333909161388874, 0.018033944070339203, -0.03218725323677063, 0.04283253848552704, -0.0572073794901371, -0.037431344389915466, 0.05351157858967781, -0.003696778789162636, -0.03433225303888321, -0.01763933338224888, -0.06623660027980804, 0.04564807564020157, -0.038535065948963165, -1.1954249146128859e-8, -0.010881815105676651, -0.0015148635720834136, -0.028866393491625786, -0.009462516754865646, 0.04294268786907196, 0.004879237152636051, -0.04382060840725899, -0.017260849475860596, 0.014836912974715233, 0.006236313376575708, 0.05800306797027588, -0.01617124117910862, 0.03060087002813816, 0.0212542824447155, 0.019253864884376526, -0.02831018529832363, 0.027907703071832657, -0.008528323844075203, 0.011786379851400852, -0.004804782569408417, -0.0007253161165863276, 0.06887724250555038, -0.00850784033536911, -0.03701452165842056, 0.023849720135331154, -0.009770618751645088, -0.0112299220636487, -0.05018724501132965, 0.029750142246484756, -0.00820087268948555, -0.020797226577997208, -0.014991425909101963, -0.031306054443120956, -0.04018267244100571, -0.026714587584137917, -0.06449832022190094, 0.020911293104290962, 0.04751497879624367, 0.006949795875698328, 0.00761142373085022, -0.00993936974555254, -0.03258708491921425, -0.022036919370293617, -0.022496920078992844, -0.040171291679143906, -0.0034445493947714567, -0.013505542650818825, 0.034034982323646545, -0.005053631495684385, -0.04190990328788757, 0.02645699493587017, -0.026701368391513824, 0.04626335948705673, 0.05694417655467987, 0.04887067899107933, 0.028864674270153046, 0.004182410426437855, -0.01676938869059086, -0.015989039093255997, -0.03965790569782257, -0.014649635180830956, 0.015502586960792542, 0.011268301866948605, -0.025906309485435486 ]
duckdb-sql-convert-epoch-timestamp-timezone
https://markhneedham.com/blog/2023/04/05/duckdb-sql-convert-epoch-timestamp-timezone
false
2023-04-20 02:44:37
DuckDB/SQL: Get decade from date
[ "duckdb" ]
[ "duckdb" ]
Working with dates in SQL can sometimes be a bit tricky, especially when you need to extract specific information, like the decade a date belongs to. In this blog post, we'll explore how to easily obtain the decade from a date using DuckDB, a lightweight and efficient SQL database engine. First, https://duckdb.org/docs/installation/[install DuckDB^] and launch it: [source, bash] ---- ./duckdb ---- Next, we're going to create a `movies` table that has columns for `title` and `releaseDate`: [source, sql] ---- create or replace table movies(title VARCHAR, releaseDate DATE); ---- And now let's add some records of famous movies and their release dates: [source, sql] ---- INSERT INTO movies VALUES ('Avatar', '2009-12-10'), ('Star Wars: The Force Awakens', '2015-12-15'), ('Titanic', '1997-11-18'), ('The Avengers', '2012-04-25'), ('Jurassic World', '2015-06-09'), ('Furious 7', '2015-04-01'); ---- The `releaseDate` column contains the actual day the movie was released, but I want to know the decade. We can do this by first extracting the year using the `year` function and then dividing that by 10 and multiplying it by 10. The following query does this: [source, sql] ---- select title, releaseDate, year(releaseDate)/10*10 AS decade From movies; ---- .Output [options="header"] |=== | title | releaseDate | decade | Avatar | 2009-12-10 | 2000 | Star Wars: The Force Awakens | 2015-12-15 | 2010 | Titanic | 1997-11-18 | 1990 | The Avengers | 2012-04-25 | 2010 | Jurassic World | 2015-06-09 | 2010 | Furious 7 | 2015-04-01 | 2010 |=== We could then write a new query that counts the number of movies released per decade: [source, sql] ---- select year(releaseDate)/10*10 AS decade, count(*) From movies GROUP BY ALL ---- .Output [options="header"] |=== | decade | count_star() | 2000 | 1 | 2010 | 4 | 1990 | 1 |=== Tada!
In this post we'll learn how to extract the decade from a date using SQL and DuckDB.
uploads/2023/04/get-decade-from-date-banner.png
[ -0.01365083921700716, 0.010820639319717884, 0.019720792770385742, 0.051876168698072433, 0.09522958099842072, -0.005449897143989801, -0.005570210982114077, 0.05518270656466484, 0.015651600435376167, 0.005869822110980749, 0.007392981089651585, 0.013587532564997673, -0.05811426416039467, -0.009522996842861176, -0.01774589717388153, 0.07863127440214157, 0.04584135860204697, -0.0000810355122666806, 0.045028503984212875, -0.01459537073969841, -0.004969559609889984, 0.05455959588289261, -0.009394089691340923, 0.06547810137271881, 0.055144380778074265, 0.01575801521539688, -0.0032836589962244034, -0.0030241457279771566, -0.07485392689704895, 0.023397423326969147, 0.02664223685860634, -0.021770276129245758, -0.011109093204140663, -0.01291267853230238, 0.004385957960039377, 0.00242003146559, -0.00804395042359829, 0.011398021131753922, 0.0026879250071942806, 0.014049789868295193, -0.059391919523477554, 0.013684548437595367, 0.009867236949503422, -0.019111884757876396, -0.042927611619234085, 0.019210293889045715, -0.03433852270245552, 0.014043428935110569, 0.0021638856269419193, 0.021580640226602554, -0.038082584738731384, 0.05230129510164261, -0.030556444078683853, -0.021258143708109856, -0.00974871963262558, 0.04831411689519882, 0.017747726291418076, -0.0816156417131424, -0.0013277598191052675, 0.0012655811151489615, 0.0802064761519432, -0.007679678965359926, -0.005994102917611599, 0.018406672403216362, 0.02486613020300865, 0.018456080928444862, -0.018488410860300064, 0.04997500777244568, -0.030408158898353577, 0.024458736181259155, -0.009055809117853642, -0.029624225571751595, -0.03660159930586815, -0.03449200838804245, 0.00913248024880886, -0.016873948276042938, 0.013209783472120762, 0.048575304448604584, 0.04514218121767044, 0.04960598051548004, -0.026825381442904472, -0.00862731970846653, 0.003770737908780575, 0.013282546773552895, 0.0012054109247401357, -0.047269221395254135, -0.019222036004066467, -0.01777604967355728, -0.05311095342040062, 0.03317643329501152, 0.011358247138559818, -0.048599500209093094, 0.015273290686309338, 0.01573343761265278, -0.03821609914302826, -0.009410055354237556, 0.011669883504509926, -0.013512342236936092, 0.04447142779827118, -0.003594371024519205, -0.023011406883597374, -0.03786340728402138, 0.04099363833665848, -0.017628401517868042, -0.07975712418556213, -0.003250234527513385, -0.058694396167993546, 0.009027816355228424, 0.02610452100634575, 0.01962684839963913, -0.009682780131697655, 0.01662023924291134, -0.008576021529734135, 0.012513350695371628, -0.056838955730199814, 0.059517696499824524, 0.010324199683964252, -0.032040081918239594, 0.03000197745859623, 0.001575459144078195, 0.03609108552336693, 0.003097880631685257, -0.01277087815105915, 0.06724482774734497, -0.024083690717816353, 0.034307509660720825, 0.002250411780551076, 0.030833091586828232, -0.02094442956149578, -0.09522024542093277, -0.005632377229630947, 0.0009519016603007913, -0.004907228983938694, -0.008456111885607243, 0.00041759887244552374, -0.023860974237322807, -0.02890099212527275, 0.011092986911535263, 0.06900575011968613, 0.017492568120360374, 0.03536498546600342, -0.04513483867049217, -0.016645265743136406, -0.027142688632011414, 0.027213698253035545, -0.0054208943620324135, 0.0011022037360817194, -0.04829990118741989, -0.04573800414800644, 0.02700261026620865, 0.014556271024048328, 0.007502090651541948, 0.011973547749221325, -0.06888696551322937, 0.010802864097058773, 0.10349950939416885, 0.022339360788464546, 0.003189558396115899, -0.0031016399152576923, -0.01800399459898472, 0.06401290744543076, 0.015925023704767227, 0.003000902710482478, 0.015357835218310356, 0.009835990145802498, -0.05070111155509949, 0.015030776150524616, 0.019535521045327187, -0.0512920580804348, 0.00661663431674242, -0.06901881098747253, -0.06193004176020622, 0.08266390860080719, -0.027020609006285667, -0.020601630210876465, 0.059441011399030685, 0.08024859428405762, 0.0618741437792778, 0.02442234382033348, 0.030583258718252182, -0.0849580466747284, 0.023914797231554985, -0.003490583738312125, 0.020522834733128548, 0.03287585824728012, -0.0022222353145480156, 0.07340915501117706, -0.0017310148105025291, 0.022648202255368233, 0.05727096647024155, -0.08377082645893097, -0.10687844455242157, -0.0471346341073513, -0.021884754300117493, 0.017343005165457726, -0.053521834313869476, 0.031187843531370163, 0.08550405502319336, -0.01432948186993599, 0.04257442057132721, -0.034726500511169434, 0.015526763163506985, 0.04758578911423683, -0.034663125872612, -0.03776606544852257, 0.025087453424930573, 0.02556011825799942, 0.0015122509794309735, -0.009970196522772312, 0.0046434891410171986, -0.014291670173406601, -0.0010526591213420033, 0.034363072365522385, -0.01410600170493126, 0.03316926583647728, 0.05037306994199753, 0.022101569920778275, -0.023108216002583504, -0.009383798576891422, -0.05893395096063614, 0.04223932698369026, 0.041689325124025345, -0.05205089971423149, -0.0374595932662487, 0.00947462860494852, 0.13310584425926208, 0.05626913905143738, -0.027256248518824577, -0.03854982927441597, 0.048853449523448944, 0.010507456958293915, -0.00956015009433031, 0.02546195685863495, -0.02600855939090252, 0.04213038086891174, -0.0005772309959866107, -0.031078577041625977, -0.018531423062086105, 0.013857346028089523, -0.006045257672667503, 0.00650036009028554, 0.033775694668293, -0.03213988617062569, 0.05288510024547577, 0.01348925195634365, -0.026342807337641716, -0.013020871207118034, -0.04116622358560562, -0.040323179215192795, -0.013978052884340286, 0.027125081047415733, -0.010184981860220432, 0.026413947343826294, -0.013227090239524841, 0.014773312024772167, 0.00011445485142758116, -0.05556584522128105, 0.04980019852519035, 0.032406654208898544, 0.015978483483195305, -0.03454664722084999, 0.027119504287838936, 0.017342062667012215, 0.03534860908985138, -0.03335892781615257, -0.021312637254595757, -0.040802713483572006, -0.011041411198675632, -0.028774617239832878, 0.03451332077383995, 0.01217713300138712, 0.006805518642067909, 0.015303495340049267, 0.052037861198186874, -0.0031868901569396257, -0.0028655671048909426, 0.020017968490719795, -0.012391893193125725, -0.02031322382390499, -0.06508403271436691, 0.005137607920914888, 0.07474426180124283, -0.04917825013399124, -0.060772549360990524, 0.0007329832296818495, -0.059650011360645294, 0.03816694766283035, -0.024628490209579468, -0.04604710638523102, -0.0009179946500808001, 0.002977235009893775, 0.01843574456870556, -0.00582245085388422, 0.002020752290263772, 0.09568098187446594, 0.005083973985165358, 0.019585222005844116, 0.032934848219156265, 0.033272236585617065, 0.05777576193213463, 0.008418045938014984, -0.001369363279081881, 0.08834131062030792, -0.0030862155836075544, -0.004732942208647728, -0.01831689663231373, 0.028303353115916252, -0.020747169852256775, -0.24112460017204285, 0.030337126925587654, -0.05203099548816681, -0.03806529939174652, 0.02491406910121441, -0.044300004839897156, 0.011468973942101002, -0.03267126530408859, -0.021925879642367363, 0.012646901421248913, -0.0016041237395256758, -0.0484083890914917, -0.018935073167085648, 0.04195050895214081, 0.006859565619379282, 0.006876745261251926, 0.02152445539832115, -0.020928168669342995, -0.015542836859822273, 0.06304949522018433, 0.0041677700355648994, -0.06839119642972946, 0.014971915632486343, 0.02434762939810753, 0.02615673840045929, 0.056569427251815796, -0.05075079947710037, 0.019529826939105988, -0.05858122184872627, -0.0375366248190403, 0.008322561159729958, 0.011045092716813087, 0.04135417938232422, -0.013614987954497337, -0.02860521338880062, -0.022376157343387604, 0.04121452942490578, 0.002633516676723957, 0.011319197714328766, 0.015004848130047321, -0.05751412734389305, -0.04876277595758438, -0.00782828964293003, 0.025365354493260384, 0.08107943087816238, -0.0036903631407767534, -0.03671083226799965, 0.0020080849062651396, -0.0068570701405406, 0.05266660824418068, -0.025324175134301186, -0.020606262609362602, -0.036152783781290054, 0.007285460829734802, -0.006616468075662851, -0.011879543773829937, 0.0019283621804788709, 0.00015625801461283118, -0.03370564803481102, -0.009105109609663486, 0.002237924374639988, -0.02523892931640148, 0.01361312996596098, -0.02419029362499714, -0.02373058721423149, -0.08590629696846008, -0.04593110457062721, -0.008889456279575825, 0.056653331965208054, 0.044561367481946945, -0.03129186853766441, -0.025342196226119995, -0.04759916663169861, -0.10801857709884644, -0.03490396961569786, -0.02116592787206173, -0.016709892079234123, 0.002887388924136758, -0.059268973767757416, 0.042236365377902985, -0.02175779826939106, -0.020742328837513924, 0.02233787439763546, 0.02906319871544838, -0.0007814249838702381, -0.05002937465906143, 0.01659492217004299, 0.008026385679841042, -0.006778927519917488, -0.016487928107380867, 0.07091153413057327, -0.0373813696205616, 0.00047899450873956084, -0.005468640476465225, -0.0072857532650232315, 0.02933700755238533, -0.01847224123775959, 0.015167174860835075, 0.014625885523855686, -0.022836996242403984, 0.0433335117995739, -0.01486025657504797, -0.007349318824708462, -0.04830700159072876, -0.045507971197366714, -0.04143203794956207, -0.026333950459957123, 0.030008109286427498, 0.004633096046745777, 0.04149014130234718, -0.005340906325727701, -0.024264086037874222, 0.008851319551467896, -0.04978403076529503, -0.013668753206729889, -0.0516747310757637, -0.0008638566941954195, 0.025867922231554985, 0.016523968428373337, -0.022029532119631767, -0.07397337257862091, 0.015401440672576427, 0.010001805610954762, 0.0029702894389629364, -0.046134110540151596, -0.03328152745962143, 0.002895384794101119, -0.010542560368776321, 0.00437120208516717, 0.02015821635723114, -0.03267735615372658, 0.03508659079670906, 0.020868513733148575, 0.0009275336633436382, 0.06358280777931213, -0.022094890475273132, -0.01245261449366808, -0.01948368176817894, -0.011855127289891243, 0.01726571097970009, -0.014662512578070164, -0.0026435740292072296, 0.006927146576344967, 0.03143639490008354, 0.020229024812579155, -0.010682587511837482, 0.03061140514910221, 0.00774877006188035, 0.03376024588942528, 0.03917456418275833, -0.023079730570316315, -0.02736925706267357, 0.008214936591684818, -0.06773265451192856, -0.010559695772826672, -0.01610172539949417, 0.0505119152367115, -0.02876877784729004, -0.02050900086760521, -0.05779193714261055, 0.021146386861801147, -0.03741556778550148, 0.00794871523976326, -0.03330545872449875, -0.00439490145072341, 0.04696235805749893, -0.006738693453371525, 0.02151736058294773, 0.00738945510238409, 0.011556877754628658, -0.02098720148205757, -0.007030094508081675, -0.03975830599665642, 0.012242532335221767, 0.005495904013514519, -0.044426556676626205, 0.014265500009059906, 0.0006717315409332514, 0.040299322456121445, 0.0038727170322090387, 0.0009990448597818613, -0.029344795271754265, -0.014785110019147396, 0.028049081563949585, 0.034570373594760895, 0.05111991614103317, -0.03602644428610802, -0.009675625711679459, -0.026319008320569992, -0.04703185707330704, -0.013254910707473755, -0.011975221335887909, -0.011345108039677143, -0.03097423166036606, -0.027928579598665237, -0.06271519511938095, 0.04488407075405121, 0.03241166099905968, -0.0038002044893801212, 0.019623637199401855, 0.01927315443754196, -0.013092747889459133, -0.03468482568860054, 0.06692876666784286, 0.07576907426118851, -0.06772230565547943, 0.003133856924250722, -0.012087561190128326, -0.004186958074569702, 0.004535240586847067, 0.034140244126319885, -0.019481418654322624, -0.014608544297516346, -0.018933892250061035, 0.0355381965637207, 0.008016128093004227, -0.002388016087934375, -0.020431960001587868, 0.019644727930426598, 0.00332189304754138, 0.011911850422620773, -0.009331511333584785, -0.003105425974354148, -0.0014887035358697176, -0.022192180156707764, 0.024425063282251358, -0.044561564922332764, -0.003974960185587406, 0.03792053833603859, 0.001607112237252295, 0.034935496747493744, -0.04891791194677353, 0.003198995254933834, 0.005613693501800299, -0.006753741763532162, -0.026968704536557198, -0.05716044828295708, 0.00933968648314476, 0.008790594525635242, 0.051724039018154144, -0.03683094307780266, -0.011871016584336758, -0.0013597918441519141, 0.0020354511216282845, -0.04331774637103081, -0.0017378970514982939, -0.0017093216301873326, -0.02037842571735382, 0.01379612646996975, 0.036854300647974014, -0.008143234066665173, 0.0033313774038106203, -0.014985358342528343, -0.02297089248895645, 0.04032136872410774, -0.050060391426086426, -0.00326638575643301, -0.020283978432416916, -0.0756460502743721, 0.030540617182850838, -0.0009131482220254838, 0.062358710914850235, -0.04115229845046997, 0.056875720620155334, 0.044879063963890076, 0.04460925608873367, 0.031684260815382004, 0.025263655930757523, 0.06346531212329865, -0.017109340056777, -0.01697155088186264, -0.0839759111404419, -0.0015640200581401587, 0.027737880125641823, 0.018706634640693665, -0.03190670162439346, 0.03730481117963791, -0.03891737014055252, 0.017149697989225388, -0.059145860373973846, -0.03192156180739403, 0.04943803697824478, -0.041607845574617386, -0.012502942234277725, 0.017396554350852966, -0.06576455384492874, -0.0012504978803917766, 0.04779086261987686, -0.022796666249632835, -0.02149651199579239, -0.03215928375720978, 0.08624107390642166, -0.012159071862697601, 0.03940026834607124, -0.024264130741357803, -0.025588346645236015, 0.11181774735450745, 0.02347513474524021, -0.002297184430062771, 0.04393914341926575, -0.025218689814209938, 0.0395020917057991, 0.0037973932921886444, -0.023970013484358788, -0.00027633990976028144, 0.01016269065439701, -0.01999056152999401, -0.03662225231528282, -0.0024936627596616745, 0.004796798340976238, -0.016872623935341835, -0.053696051239967346, 0.08187940716743469, 0.005905358120799065, -0.019469160586595535, -0.07821128517389297, 0.003978819586336613, -0.02661466971039772, 0.0014562621945515275, -0.0012371784541755915, -0.017126336693763733, -0.05614607036113739, 0.06838379800319672, -0.0023926470894366503, 0.019937360659241676, 0.058494336903095245, 0.017384393140673637, 0.0024641118943691254, 0.0020739054307341576, 0.07985159754753113, 0.0627526342868805, 0.05653956159949303, 0.019539274275302887, 0.05367622897028923, -0.033370938152074814, -0.038447462022304535, 0.009573194198310375, -0.02079354040324688, 0.015538272447884083, -0.048481155186891556, -0.0025117634795606136, 0.0797562375664711, -0.005377629306167364, 0.05833764001727104, 0.02084285393357277, -0.011672500520944595, 0.003978875000029802, -0.002601636340841651, 0.04622305557131767, 0.00933492835611105, -0.016250113025307655, 0.0007016686722636223, 0.003376906970515847, -0.0272942166775465, 0.05583364889025688, -0.010575531981885433, -0.0230199433863163, 0.008370072580873966, 0.010716044344007969, 0.03704247251152992, -0.008949130773544312, 0.06391823291778564, 0.0846482366323471, 0.007208606228232384, 0.005070720333606005, -0.005219767801463604, 0.018691865727305412, 0.00818843487650156, 0.035125039517879486, -0.023188039660453796, -0.02629893273115158, 0.0011500455439090729, -0.053402625024318695, -0.01348149124532938, 0.003273191163316369, -0.031764592975378036, 0.03171724081039429, -0.021543191745877266, 0.0009808926843106747, 0.03362761065363884, -0.01964898221194744, -0.02383110485970974, -0.02197740040719509, -0.05820339918136597, -0.0032232089433819056, -0.05267617478966713, -0.003706864081323147, 0.05168202146887779, -0.021132593974471092, -0.017772823572158813, -0.018409311771392822, -0.03699692338705063, -0.015306144952774048, 0.004957043565809727, -0.03679261729121208, -0.04915234073996544, 0.00193409260828048, 0.007716557942330837, 0.012144660577178001, 0.012415017932653427, 0.05741368979215622, -0.008982586674392223, -0.022314678877592087, -0.015566322021186352, 0.03610469773411751, 0.052887264639139175, -0.008411715738475323, 0.012636233121156693, -0.07855503261089325, 0.02465907298028469, 0.010848598554730415, -0.012176425196230412, -0.07824539393186569, 0.021148670464754105, 0.0035266021732240915, -0.036587558686733246, 0.05602549389004707, -0.03834347054362297, 0.013869666494429111, -0.01705494336783886, -0.003639307338744402, 0.012308131903409958, 0.0047824266366660595, 0.03550701588392258, -0.06691918522119522, 0.08129577338695526, 0.03444034978747368, -0.01610524393618107, -0.03539519011974335, -0.009960684925317764, -0.03206309676170349, 0.02812451682984829, -0.03575402870774269, -0.028606338426470757, -0.05367177352309227, -0.09215708076953888, -0.015309587121009827, 0.01229734718799591, -0.038393959403038025, -0.023600228130817413, -0.005668078549206257, 0.049538999795913696, -0.023766733705997467, 0.023188862949609756, -0.046096112579107285, -0.013220911845564842, -0.024458760395646095, -0.03815437853336334, -0.03983316570520401, 0.027156976982951164, -0.018662121146917343, 0.0035702369641512632, 0.004072478506714106, -0.03755331411957741, -0.04315400496125221, -0.005348434671759605, 0.03162012994289398, 0.03692176938056946, 0.025648208335042, 0.0000375460040231701 ]
[ -0.11679358035326004, -0.014236009679734707, -0.03973289579153061, -0.027694523334503174, 0.02469807304441929, -0.037576135247945786, -0.02535674162209034, -0.02875005267560482, -0.017732985317707062, -0.029157793149352074, 0.0044797915033996105, 0.013315879739820957, 0.010069896467030048, 0.037019483745098114, 0.023057999089360237, -0.0025921219494193792, 0.028412476181983948, -0.0761445015668869, -0.0245073065161705, 0.022616278380155563, 0.013162938877940178, 0.004883579909801483, -0.04585328325629234, -0.03758701682090759, 0.010889175347983837, 0.04678139463067055, 0.029831375926733017, -0.04555027559399605, -0.04654168337583542, -0.18755970895290375, 0.021075213328003883, -0.006812012288719416, 0.03134363517165184, -0.006626402959227562, 0.002260541310533881, -0.01013095211237669, 0.03370314836502075, 0.01961580663919449, -0.01156618632376194, 0.027961820363998413, 0.023078594356775284, 0.009322209283709526, -0.02492455579340458, -0.08556675910949707, 0.010819071903824806, 0.028392236679792404, -0.01511100772768259, 0.0021144645288586617, 0.00739099970087409, 0.024978235363960266, -0.046655818819999695, 0.003924946300685406, -0.009816916659474373, 0.035668518394231796, -0.05724116414785385, 0.03289816901087761, -0.004142269026488066, 0.06077955290675163, 0.018150830641388893, -0.000256607832852751, -0.0036304648965597153, -0.021047115325927734, -0.1274726390838623, 0.11099790781736374, -0.007429801858961582, 0.04123847931623459, -0.017540283501148224, -0.00865121092647314, -0.02425779215991497, 0.06992022693157196, -0.017036525532603264, -0.028124555945396423, -0.022345274686813354, 0.06543653458356857, 0.00397885637357831, -0.019713500514626503, 0.011628469452261925, 0.006579007022082806, 0.02863670513033867, -0.0386977382004261, -0.02321956865489483, 0.021050425246357918, -0.014320814050734043, -0.013837547972798347, -0.01980026252567768, 0.030164116993546486, 0.02379235066473484, 0.037912264466285706, 0.01465669460594654, 0.027299704030156136, 0.013006433844566345, 0.03302330523729324, 0.03842063993215561, 0.0019803817849606276, -0.07882054895162582, -0.010924438014626503, 0.031248152256011963, 0.015097022987902164, 0.00946904718875885, 0.39676427841186523, -0.015396223403513432, -0.013006588444113731, 0.003348513273522258, 0.03304898738861084, -0.03225706145167351, -0.024857860058546066, -0.0006107607623562217, -0.056652966886758804, 0.007682493422180414, -0.04549324885010719, -0.02062574215233326, 0.013573196716606617, 0.10660416632890701, -0.07656510174274445, 0.026046911254525185, 0.01744329184293747, 0.023921415209770203, 0.04465494304895401, 0.035415828227996826, -0.04077090322971344, 0.0358872264623642, -0.02090309001505375, 0.005194100551307201, 0.014276719652116299, -0.022957976907491684, -0.030100399628281593, 0.07461977750062943, 0.0401800200343132, 0.030653953552246094, -0.02356893941760063, 0.0722961574792862, -0.054991308599710464, -0.10295235365629196, 0.020158149302005768, -0.010711162351071835, 0.030065715312957764, -0.0035614497028291225, -0.009062384255230427, -0.005474171135574579, -0.03262380510568619, -0.05564647540450096, -0.057067301124334335, 0.04810909181833267, 0.022267507389187813, -0.07118949294090271, 0.1558532416820526, 0.026194293051958084, -0.01863916777074337, -0.05360125005245209, -0.03843066841363907, -0.027161207050085068, 0.01698550581932068, 0.04108339920639992, -0.04310188442468643, -0.0026008691638708115, 0.029112448915839195, 0.10257729887962341, -0.03518133983016014, -0.10136503726243973, -0.002102907281368971, -0.010821050964295864, -0.035714518278837204, -0.05507819727063179, 0.03170648217201233, 0.08164160698652267, -0.09783874452114105, 0.005662774667143822, 0.04375748336315155, 0.04404636472463608, -0.018566817045211792, 0.0012025070609524846, 0.016641894355416298, -0.04424269497394562, 0.003906210185959935, 0.07926418632268906, 0.0017211392987519503, -0.008012783713638783, 0.01727030798792839, 0.018133195117115974, 0.007608076557517052, -0.04795880615711212, -0.02989666536450386, -0.0651698112487793, 0.02090643346309662, -0.03333570435643196, -0.1089659333229065, -0.04256078600883484, -0.009860493242740631, 0.011401035822927952, -0.0003328313759993762, 0.017017850652337074, -0.044823408126831055, -0.05071932077407837, 0.10566836595535278, -0.011735896579921246, -0.011000499129295349, -0.004432104993611574, 0.05004364624619484, -0.003976040985435247, -0.03972582519054413, -0.01108965091407299, -0.04626801982522011, -0.01230795681476593, 0.009916143491864204, -0.0006766142323613167, 0.04667085409164429, 0.05611312389373779, -0.0704006627202034, 0.0826813280582428, 0.021112756803631783, -0.008635410107672215, -0.004211005754768848, -0.0003672564052976668, 0.02772734872996807, -0.003933364991098642, -0.011442451737821102, -0.005890723783522844, -0.020418185740709305, 0.003844804596155882, 0.004166547209024429, 0.013062695972621441, -0.024095064029097557, 0.049349766224622726, -0.34690722823143005, 0.00327482377178967, -0.03710518777370453, -0.015262709930539131, -0.0028610266745090485, -0.05861198157072067, -0.03182394802570343, -0.03592327982187271, 0.02340802177786827, 0.0831160768866539, 0.024183522909879684, -0.013921261765062809, -0.00553706893697381, -0.0917898491024971, 0.0009411770151928067, 0.005819922313094139, -0.02368154190480709, -0.005079408176243305, -0.0077868313528597355, 0.02200358919799328, 0.02657257951796055, -0.039958447217941284, -0.03677884116768837, -0.08899222314357758, 0.02067527361214161, -0.022086316719651222, 0.12188492715358734, 0.017751382663846016, 0.011278129182755947, -0.060042425990104675, 0.07970784604549408, 0.0005519434926100075, -0.022867616266012192, -0.04534435272216797, 0.007634983863681555, -0.04688635095953941, 0.001608729944564402, 0.00009414240048499778, -0.042213715612888336, -0.048639971762895584, -0.05404740944504738, 0.014711140654981136, -0.022410186007618904, -0.016390489414334297, -0.03977973014116287, 0.015269862487912178, 0.03492697700858116, 0.0015961268218234181, 0.007763476110994816, 0.09005925804376602, 0.026047835126519203, -0.0014253946719691157, -0.0008464588318020105, 0.01618555188179016, 0.0001065675969584845, -0.0100061921402812, -0.04600954428315163, -0.0012942791217938066, 0.022804634645581245, 0.008873707614839077, 0.028998607769608498, 0.010965529829263687, -0.0022341469302773476, -0.005578121170401573, -0.027768990024924278, -0.007294155191630125, -0.002798010827973485, 0.0006314037600532174, 0.012639599852263927, -0.009469068609178066, -0.04766197130084038, 0.09124147891998291, -0.023929500952363014, 0.017244620248675346, 0.028988026082515717, 0.05506960302591324, -0.0075589390471577644, 0.04425811767578125, 0.02304018661379814, -0.015689505264163017, 0.044405002146959305, -0.024559490382671356, 0.03411804884672165, -0.010077208280563354, 0.021887918934226036, 0.04076698422431946, 0.03722504526376724, -0.04760447517037392, 0.032572388648986816, -0.003509505884721875, -0.0028893952257931232, -0.02618151158094406, -0.02703886665403843, -0.05952788516879082, 0.04640345647931099, -0.016699455678462982, -0.2810438275337219, 0.04106748104095459, 0.025519853457808495, 0.04470904916524887, 0.01423788070678711, -0.016569215804338455, -0.00520736537873745, 0.005873169284313917, 0.014580480754375458, 0.00502946600317955, 0.04768060892820358, 0.014516019262373447, -0.015139264054596424, -0.060116808861494064, -0.007341079879552126, -0.015622721053659916, 0.06950756162405014, 0.026930827647447586, 0.03163360804319382, 0.04491788148880005, 0.06598752737045288, -0.01109169702976942, 0.16705697774887085, 0.04604522883892059, 0.018137047067284584, 0.025089144706726074, -0.010254097171127796, 0.041039012372493744, 0.0778130292892456, -0.0012670847354456782, 0.011844056658446789, -0.025228478014469147, 0.05663618445396423, 0.015760226175189018, 0.030639827251434326, -0.034103307873010635, -0.03272577002644539, 0.08230078965425491, 0.011936592869460583, 0.03371720761060715, -0.04402061179280281, 0.02066178247332573, -0.03424407169222832, 0.024066753685474396, 0.07844171673059464, 0.0014463611878454685, 0.007955118082463741, -0.003112104022875428, -0.05323181301355362, -0.03224404528737068, -0.03715955466032028, -0.002123885555192828, 0.010947847738862038, 0.006801640149205923, 0.009656062349677086, 0.02160273864865303, 0.061104897409677505, -0.009612333960831165, 0.02183820679783821, 0.02265811897814274, -0.029019638895988464, -0.03804820403456688, 0.0730261504650116, 0.018212705850601196, -0.00309291435405612 ]
[ 0.013497942127287388, -0.01638162136077881, 0.007205015514045954, 0.021940220147371292, 0.016372546553611755, 0.060537248849868774, 0.007777847349643707, 0.023453151807188988, -0.022511066868901253, -0.005637436639517546, 0.015462764538824558, 0.0022411467507481575, 0.011152723804116249, 0.016368530690670013, -0.007072266191244125, 0.002398102078586817, -0.050999149680137634, -0.03250698745250702, 0.02587835118174553, 0.0074974955059587955, -0.018460815772414207, 0.024394696578383446, 0.04479542374610901, 0.0035982036497443914, -0.014680909924209118, -0.007760214619338512, -0.047662101686000824, 0.019288109615445137, 0.007411441765725613, -0.06643811613321304, -0.031775038689374924, 0.018390566110610962, -0.04322845861315727, 0.04151247814297676, 0.008922110311686993, -0.07118544727563858, -0.007116182241588831, 0.05255025625228882, 0.014127900823950768, 0.01709093526005745, -0.03928668051958084, -0.07275430858135223, 0.048271965235471725, -0.025452040135860443, 0.0068692658096551895, -0.017948303371667862, -0.03957914933562279, 0.02717532403767109, -0.012402266263961792, 0.03527712821960449, -0.04235285893082619, 0.013945291750133038, -0.02548881433904171, -0.0061806244775652885, 0.06069381162524223, 0.036869946867227554, -0.010759458877146244, -0.0016592602478340268, -0.04300303012132645, -0.0756976306438446, -0.003987451083958149, -0.005067955236881971, -0.05444351211190224, -0.021282054483890533, -0.030734941363334656, -0.031982701271772385, -0.012311737984418869, 0.03581731393933296, 0.008747530169785023, 0.02755952812731266, 0.012790123000741005, -0.024319512769579887, -0.02202613651752472, -0.0547189898788929, -0.08213314414024353, 0.023841125890612602, 0.03319086134433746, -0.01211251225322485, 0.017904464155435562, -0.021522868424654007, -0.0006679425714537501, 0.012872692197561264, -0.006628415547311306, -0.031148187816143036, -0.05479966849088669, -0.03735873103141785, 0.0699160024523735, 0.0032063417602330446, -0.013726163655519485, 0.013750256970524788, -0.04856861010193825, -0.035901989787817, 0.06345466524362564, -0.0017889575101435184, -0.08678556233644485, 0.0023532926570624113, 0.020599840208888054, 0.004513130523264408, 0.011805001646280289, 0.7866144776344299, -0.002239210531115532, 0.00671943137422204, -0.03871621564030647, 0.028324484825134277, -0.00693577341735363, 0.0009483132162131369, 0.0422523096203804, -0.014147227630019188, 0.008495839312672615, -0.026328688487410545, -0.003040129551663995, 0.08281897008419037, -0.018280699849128723, -0.0015154840657487512, 0.030537893995642662, -0.003906384576112032, -0.014839714393019676, -0.005196262616664171, 0.002684742910787463, -0.007139143999665976, 0.03210883215069771, -0.0112430015578866, 0.031455546617507935, 0.031293969601392746, -0.018836434930562973, -0.1454571634531021, 0.03656800463795662, -6.242647890402012e-33, 0.043150804936885834, -0.023847226053476334, 0.025701405480504036, -0.010735658928751945, 0.022910980507731438, 0.022465063259005547, -0.027923110872507095, 0.04661927744746208, -0.0014378658961504698, -0.01141333021223545, 0.00103759637568146, -0.020280377939343452, -0.0385773628950119, -0.021182436496019363, 0.06458564847707748, -0.020825138315558434, -0.04066462069749832, 0.06274066120386124, 0.014797067269682884, -0.004892753902822733, 0.023128030821681023, -0.0021064034663140774, 0.01120323408395052, 0.03282908722758293, -0.0013952077133581042, 0.013085796497762203, -0.025791900232434273, -0.00021816586377099156, -0.03761321306228638, -0.03868579864501953, 0.01370738260447979, 0.024212371557950974, -0.012799673713743687, -0.060811299830675125, 0.024915535002946854, -0.057428084313869476, -0.014395990408957005, 0.004965185187757015, 0.01489513274282217, -0.012207592837512493, -0.04865546524524689, -0.018897781148552895, -0.05225222185254097, -0.03716498240828514, 0.005400697700679302, 0.0038589078467339277, 0.046031754463911057, 0.005646128207445145, -0.030630696564912796, 0.025849834084510803, 0.004663194064050913, -0.0037242977414280176, -0.006475711707025766, -0.011089802719652653, 0.020477809011936188, 0.01191416010260582, 0.015726426616311073, -0.019955959171056747, 0.03509265556931496, -0.019460299983620644, 0.0108988331630826, 0.01011247280985117, -0.0032815795857459307, 0.006959487218409777, -0.01144472137093544, 0.07206980884075165, 0.07138661295175552, 0.013617231510579586, 0.0701579749584198, 0.0470428392291069, -0.04299871250987053, -0.020927656441926956, -0.00033738702768459916, -0.05238001421093941, 0.05663060396909714, 0.03618345782160759, 0.013815195299685001, -0.021921608597040176, 0.03512908145785332, 0.03888106718659401, 0.032901208847761154, 0.02850666269659996, -0.041646674275398254, -0.025140933692455292, 0.005435024853795767, -0.032693471759557724, -0.019564704969525337, 0.031955938786268234, -0.01871783286333084, -0.012782899662852287, 0.02959243208169937, -0.0044251177459955215, 0.04732911288738251, -0.03903016820549965, 0.012072201818227768, 5.9503222818196795e-33, 0.011027537286281586, -0.02484407089650631, -0.03668444603681564, -0.01791139505803585, 0.029381705448031425, -0.047652460634708405, -0.014551025815308094, 0.029654772952198982, -0.0051530031487345695, 0.0028786470647901297, -0.032828282564878464, 0.01634545810520649, -0.036720987409353256, 0.02752021700143814, 0.045850325375795364, 0.002033289521932602, 0.002339699538424611, -0.035931941121816635, -0.02787768468260765, 0.03131147846579552, 0.031936123967170715, 0.02458367682993412, -0.00747518427670002, 0.006435079500079155, 0.03952164947986603, 0.04332912340760231, 0.008097422309219837, 0.002539996290579438, 0.011038122698664665, 0.022930385544896126, -0.028173791244626045, -0.03949945792555809, -0.03137143701314926, -0.004726601764559746, -0.034135423600673676, 0.013520793989300728, 0.03115244023501873, -0.049427103251218796, -0.028336932882666588, -0.019675180315971375, -0.028172273188829422, 0.022537540644407272, -0.043377745896577835, 0.002655171323567629, 0.015722453594207764, 0.03035079687833786, -0.010217377915978432, 0.02008788473904133, -0.003322616219520569, -0.02848680689930916, 0.042039599269628525, -0.012138837948441505, -0.01713816076517105, -0.008667174726724625, 0.0025532396975904703, -0.02827409654855728, -0.029847577214241028, 0.025998473167419434, -0.03539329022169113, 0.007693581283092499, -0.04991347715258598, 0.008439255878329277, -0.04967804253101349, -0.00023121591948438436, -0.03445567190647125, -0.023463483899831772, 0.005235155113041401, 0.018220864236354828, -0.050274062901735306, -0.043416060507297516, 0.008969706483185291, -0.025374937802553177, 0.00398222217336297, 0.059181731194257736, 0.002893575932830572, 0.006438843440264463, -0.0012019864516332746, 0.009169423021376133, 0.017418868839740753, 0.059312161058187485, -0.011229549534618855, -0.0063201203010976315, -0.01674789935350418, -0.013204350136220455, -0.020263124257326126, 0.03045162931084633, -0.06033750995993614, -0.029844818636775017, 0.02079685963690281, -0.02928963303565979, 0.0021688041742891073, -0.05669655278325081, -0.0008031349861994386, 0.011890539899468422, -0.01940999925136566, -1.2052901787740211e-8, -0.028972983360290527, 0.017353715375065804, 0.01901165023446083, 0.01417631097137928, 0.04834854230284691, -0.043608345091342926, -0.030662350356578827, 0.012137138284742832, 0.05208154395222664, -0.018927408382296562, 0.06630844622850418, -0.018888477236032486, 0.025041112676262856, 0.051644466817379, -0.004530295729637146, -0.05377946421504021, 0.02130020782351494, 0.02197537198662758, 0.013510273769497871, -0.009889660403132439, -0.02143835835158825, 0.059542808681726456, 0.0344415046274662, -0.046990592032670975, -0.018459269776940346, -0.013110445812344551, 0.03779872506856918, -0.06324313580989838, -0.009042184799909592, 0.007589939050376415, 0.05935915559530258, -0.018575873225927353, -0.05135168507695198, 0.0025827677454799414, -0.0026852537412196398, -0.037522513419389725, 0.05538943037390709, 0.016518916934728622, -0.005196078680455685, 0.0014589376514777541, 0.010281724855303764, -0.016826286911964417, -0.0023022412788122892, 0.010162645019590855, -0.045142099261283875, 0.0217453520745039, 0.007254156284034252, 0.002960487036034465, -0.014670141041278839, -0.07215520739555359, 0.024866534397006035, 0.0054021188989281654, -0.006460453849285841, 0.004408049862831831, -0.012587662786245346, 0.04000867158174515, 0.0511021725833416, -0.0005178785650059581, -0.03901756554841995, -0.006722975987941027, 0.03513925150036812, 0.018811693415045738, 0.014004475437104702, -0.0263941902667284 ]
duckdb-sql-decade-from-date
https://markhneedham.com/blog/2023/04/20/duckdb-sql-decade-from-date
false
2023-05-17 02:44:37
Venkat - An inline code snippet execution extension for VS Code (Made in GPT-4)
[ "venkat", "vscode" ]
[ "VSCode" ]
(Co-authored with https://data-folks.masto.host/@mesirii@chaos.social[Michael Hunger^]) https://twitter.com/venkat_s[Venkat Subramaniam^] is a legendary speaker on the tech conference circuit whose https://www.youtube.com/results?search_query=venkat+subramaniam[presentations^] are famous for executing arbitrary code snippets and showing the results as a tooltip directly in the editor. This makes it really great for videos or talks as you don't need a second output terminal to run your code and you can just continue explaining what you're doing. The results go away afterwards, so you don't need to worry about that. image::{{<siteurl>}}/uploads/2023/05/venkat-textmate.png[A screenshot from a talk by Venkat Subramaniam showing code snippets] He even published a https://www.agilelearner.com/presentation/5[dedicated free course^] back in 2013 explaining how he does it using the TextMate editor. I wanted to use a similar effect in my https://youtube.com/@learndatawithmark[LearnDataWithMark videos^], so my friend Michael Hunger and I were unsuccessfully looking for a VS Code extension that does it. So what else could we do at 10 pm than *fire up ChatGPT4* to help us build a VS Code extension. Keep in mind that we've never built a VS Code extension before, nore are we that good at Typescript. We were following in the footsteps of Simon Willisons, https://simonwillison.net/2023/Mar/27/ai-enhanced-development/[who pointed out^] that with the assistance of GPT4, he's now able to take on and complete ambitious projects in a few hours instead of a few days. GPT-4 did an excellent job, guiding us through the initial setup of all the `package.json` and `launch.json` files and putting together a minimal example for executing selected Python code. Initially, just passing the code directly to the interpreter and capturing the result. [source,typescript] ---- import * as vscode from 'vscode'; import { exec } from 'child_process'; export function activate(context: vscode.ExtensionContext) { let disposable = vscode.commands.registerCommand('extension.executePythonAndComment', async () => { let editor = vscode.window.activeTextEditor; if (editor) { let document = editor.document; let selection = editor.selection; let code = document.getText(selection); exec(`python -c "${code}"`, (error, stdout, stderr) => { if (error || stderr) { console.log(`error: ${error ? error.message : stderr}`); return; } editor.edit(editBuilder => { let position = new vscode.Position(selection.end.line + 1, 0); editBuilder.insert(position, `# Result: ${stdout}`); }); }); } }); context.subscriptions.push(disposable); } ---- We evolved it to run the whole file up to the end of the current line, which made it necessary to write out the content to a file and execute that file. This design choice fortuitously opened up the opportunity to support different languages and not have to fiddle around with escaping symbols to avoid shell expansion. Within two hours we had a working prototype and were happy. GPT also provided us with instructions to package and publish the extension. Somewhat surprisingly, it also did a better job of explaining the registration and publication process than the official documentation. The most tricky part was selecting an icon, but we think we came up with a good one in the end! image::{{<siteurl>}}/uploads/2023/05/venkat-marketplace.png[link=https://marketplace.visualstudio.com/items?itemName=MarkNeedham.venkat,alt="Emoji with mustache and glasses, Install Venkat from the VS Code marketplace",target="_blank"] You can install https://marketplace.visualstudio.com/items?itemName=MarkNeedham.venkat[Venkat from the VS Code Marketplace^] and an animation showing how it works in Python is shown below. image::{{<siteurl>}}/uploads/2023/05/venkat-demo.gif[] This was fun, so we continued to add a few more features - GPT-4 helped with all the steps because what do we know! We think it's now in a state where it can be tried out by other people, so we'd love for you to give it a try. And if you have any feature requests please let us know, GPT-4 is patiently waiting for some more work to do!
In this post we introduce venkat, a VS Code extension that lets you execute inline code snippets.
uploads/2023/05/venkat-banner.png
[ 0.03226274996995926, -0.004625030793249607, -0.008165009319782257, 0.046972665935754776, 0.08302080631256104, 0.044643744826316833, 0.027997246012091637, 0.04312014579772949, 0.01274037268012762, -0.014510735869407654, -0.03132258355617523, 0.00839890819042921, -0.07252586632966995, 0.0054568643681705, -0.007898867130279541, 0.08010932803153992, 0.078407421708107, -0.009779823012650013, 0.01956980489194393, 0.013638130389153957, 0.03727124631404877, 0.07503519207239151, 0.0411427840590477, 0.03227365016937256, 0.0034931176342070103, 0.006622020620852709, 0.0000028082233711757, -0.006021860521286726, -0.07193751633167267, -0.019355621188879013, 0.040241267532110214, -0.005424847360700369, 0.0006453673704527318, -0.010846281424164772, 0.015141064301133156, -0.01659657247364521, -0.03954858332872391, 0.03082994557917118, 0.0010044953087344766, 0.04373503848910332, -0.06061462312936783, 0.01885131001472473, -0.007985392585396767, 0.025551702827215195, -0.030813343822956085, 0.013138995505869389, -0.02129843831062317, 0.026702988892793655, -0.02324967458844185, -0.003592441324144602, -0.04885302856564522, 0.034073781222105026, -0.02346612699329853, -0.005701661109924316, -0.013563376851379871, 0.051171187311410904, 0.02905387617647648, -0.05155985802412033, 0.0012444027233868837, -0.05322366580367088, 0.00757372472435236, -0.007320873439311981, 0.0016739038983359933, 0.03911518678069115, 0.02439056523144245, -0.007178313564509153, -0.004041987005621195, 0.039386868476867676, -0.04369958117604256, -0.015668421983718872, -0.004687054082751274, 0.026368580758571625, -0.018723594024777412, 0.012180515564978123, 0.004945484455674887, -0.030165819451212883, -0.005076077301055193, 0.06744061410427094, 0.03171764686703682, 0.04223606362938881, -0.02163098379969597, 0.008517633192241192, 0.021980518475174904, 0.03070000931620598, -0.02505309134721756, -0.03351006656885147, -0.01329041738063097, -0.03856360539793968, -0.060228899121284485, 0.039170823991298676, 0.002234114333987236, -0.04668787121772766, 0.026611683890223503, 0.042753200978040695, 0.008382408879697323, 0.023697232827544212, 0.023851022124290466, -0.005430636927485466, -0.0008738397737033665, -0.0028033109847456217, -0.05379073694348335, -0.026689408347010612, 0.01776437647640705, 0.018098758533596992, -0.06222250312566757, -0.013134917244315147, -0.024695096537470818, 0.007451730314642191, 0.0018143460620194674, 0.006678467616438866, -0.036618538200855255, 0.0023895178455859423, -0.019318167120218277, 0.0032729199156165123, -0.0809241309762001, 0.07678001374006271, -0.018323861062526703, -0.03195410966873169, -0.012070873752236366, -0.005084571428596973, 0.05692903697490692, 0.02524467557668686, 0.005735551472753286, 0.09220961481332779, 0.02055804431438446, 0.031295619904994965, 0.006685848347842693, 0.04277699440717697, 0.011273297481238842, -0.04163069278001785, 0.004987139720469713, 0.056419119238853455, -0.02092941664159298, 0.012754574418067932, 0.0002208349178545177, -0.0002606311172712594, -0.0081168282777071, -0.009985524229705334, 0.04664527624845505, 0.04370485246181488, -0.007524456363171339, -0.03526801988482475, 0.010035180486738682, 0.01098256092518568, 0.032684531062841415, 0.02643187902867794, -0.014471638016402721, -0.04325975850224495, -0.053824201226234436, -0.003455136902630329, 0.006921494845300913, 0.015425263904035091, 0.04321693256497383, -0.03493068367242813, 0.037551719695329666, 0.0813322514295578, 0.04194566234946251, 0.02413608506321907, -0.015850113704800606, 0.033613454550504684, 0.05364936217665672, 0.06407298892736435, 0.03489207103848457, 0.04348006844520569, -0.011712734587490559, -0.01786014251410961, -0.007390734739601612, 0.027426540851593018, -0.0018711485899984837, 0.0009037530981004238, -0.06154599413275719, -0.0398920401930809, 0.06453622132539749, -0.03663153946399689, -0.04651776701211929, 0.028112590312957764, 0.08050158619880676, 0.03273361176252365, 0.03025355562567711, -0.02003776840865612, -0.08711399883031845, 0.03344323858618736, 0.024501094594597816, -0.004670511465519667, 0.019833024591207504, -0.0011066165752708912, 0.07658600807189941, 0.01746758259832859, -0.01372066792100668, 0.029081137850880623, -0.07910865545272827, -0.08258214592933655, -0.02278430387377739, -0.013743785209953785, 0.05599049851298332, -0.03465675562620163, 0.018959257751703262, 0.07085192203521729, 0.038517966866493225, 0.05359609052538872, 0.014385359361767769, -0.008578632958233356, 0.0015155728906393051, -0.047675564885139465, -0.05978671833872795, 0.03988837078213692, 0.04778419807553291, -0.0238337405025959, -0.043849676847457886, 0.0250660739839077, -0.0029087632428854704, -0.01367220003157854, 0.041016217321157455, -0.039876457303762436, 0.04084569960832596, 0.031225604936480522, 0.0500013567507267, -0.023207804188132286, 0.04456225037574768, -0.04912026599049568, 0.022068774327635765, -0.01155471708625555, -0.006962172221392393, 0.01025300845503807, 0.017363905906677246, 0.1259864717721939, 0.06864190101623535, -0.04235294461250305, -0.053649384528398514, 0.016351336613297462, -0.0010255386587232351, -0.03971658647060394, -0.0005691727856174111, -0.0036932562943547964, -0.009763594716787338, -0.017001768574118614, -0.03580765798687935, -0.017851583659648895, 0.003871557768434286, -0.043948668986558914, 0.028402211144566536, 0.07637318968772888, -0.037460941821336746, 0.041374679654836655, -0.016124309971928596, -0.019150791689753532, -0.011046085506677628, -0.0156145254150033, -0.04737803712487221, 0.01662539504468441, 0.01813383772969246, -0.004005119204521179, 0.03546902537345886, -0.03648604080080986, -0.01752081699669361, -0.015147813595831394, -0.05694454908370972, -0.001209994894452393, 0.05601693317294121, 0.061968106776475906, -0.0061139268800616264, 0.03276768699288368, -0.006799638736993074, 0.015373951755464077, 0.0055564455687999725, -0.04767760634422302, -0.03415699303150177, -0.01720394566655159, 0.013291227631270885, 0.02577890083193779, 0.011858907528221607, 0.015240625478327274, -0.02515072003006935, -0.0036800375673919916, 0.010169952176511288, -0.012310867197811604, 0.02282041683793068, -0.01981285586953163, -0.02308211661875248, -0.029876239597797394, -0.014302950352430344, 0.05772663652896881, -0.03820189833641052, -0.03085651434957981, -0.007140434347093105, -0.059476338326931, 0.03573259711265564, -0.07387906312942505, -0.04992293938994408, -0.004108671098947525, 0.00900570210069418, 0.02584763430058956, -0.022137777879834175, 0.01457207091152668, 0.060627907514572144, -0.009912416338920593, 0.00985895749181509, 0.0037076976150274277, -0.004780645482242107, 0.026257691904902458, 0.008143016137182713, 0.030466068536043167, 0.015458188951015472, -0.009040267206728458, -0.0076131620444357395, -0.052346911281347275, 0.03982096165418625, -0.024789564311504364, -0.2847132682800293, 0.03427170217037201, 0.018301531672477722, -0.04723324254155159, 0.017371730878949165, -0.002564933616667986, 0.010609542019665241, -0.06395301222801208, 0.0030977763235569, 0.005644127260893583, -0.031172700226306915, -0.053111523389816284, -0.026117058470845222, 0.03888411074876785, 0.008255518041551113, 0.01411509234458208, -0.006526492070406675, -0.02737152948975563, 0.01519232988357544, 0.05467391386628151, -0.014363963156938553, -0.06678083539009094, 0.0009646070539020002, 0.03772925212979317, 0.04583848640322685, 0.04794618487358093, -0.09420780092477798, 0.0507340282201767, -0.03162616118788719, -0.013042720034718513, -0.01416784804314375, -0.017162416130304337, 0.008268129080533981, -0.007191956974565983, -0.016940677538514137, 0.0014411050360649824, 0.04473703354597092, 0.0022539449855685234, 0.0038670047651976347, 0.01856904663145542, -0.002865645568817854, -0.02251266874372959, -0.00920473039150238, 0.003955070860683918, 0.08891090005636215, -0.005913021042943001, -0.07860768586397171, 0.0027152274269610643, -0.03589741140604019, 0.06953442841768265, -0.04183454066514969, -0.04621070623397827, -0.030035855248570442, 0.04395836964249611, -0.0048122163861989975, -0.01955612562596798, 0.003282239194959402, -0.009606780484318733, -0.031724415719509125, -0.02360852248966694, -0.01763048954308033, -0.03684968128800392, -0.03310784697532654, -0.04300792142748833, 0.0036014278884977102, -0.05557139962911606, -0.0457596480846405, -0.03350669890642166, 0.07129374891519547, 0.023000499233603477, -0.04888049140572548, 0.020222090184688568, -0.008845494128763676, -0.12304964661598206, 0.0010516191832721233, -0.026671085506677628, -0.041432276368141174, 0.009439625777304173, 0.017385175451636314, 0.05788294970989227, -0.04297913983464241, -0.07529421150684357, 0.03266162425279617, -0.0076385014690458775, 0.028670109808444977, -0.007938110269606113, 0.011719200760126114, -0.010679880157113075, 0.0038435065653175116, -0.014025337994098663, 0.07431258261203766, -0.038410063832998276, -0.030072467401623726, -0.018846655264496803, 0.012717720121145248, 0.012687275186181068, 0.029556231573224068, -0.006023209076374769, -0.00005874641647096723, 0.04218113049864769, 0.019164185971021652, -0.07437965273857117, 0.030234506353735924, -0.03620762377977371, -0.0028051971457898617, -0.006706818472594023, -0.0579947754740715, 0.0011303345672786236, 0.025221405550837517, 0.020176712423563004, -0.012007512152194977, -0.03412747010588646, 0.0011188676580786705, -0.05457444116473198, -0.028124280273914337, -0.0008848482393659651, -0.002283189445734024, 0.03940754011273384, -0.007998364046216011, -0.035507310181856155, -0.05034654214978218, -0.010483699850738049, -0.018375352025032043, -0.0013354596449062228, -0.053717970848083496, -0.018007781356573105, -0.00555908540263772, -0.009065018966794014, 0.004926600027829409, 0.020882541313767433, -0.027748463675379753, 0.03383195400238037, 0.02145923674106598, -0.05160288140177727, 0.017452292144298553, -0.020511312410235405, -0.03911299258470535, -0.03068908490240574, 0.011561638675630093, -0.013360565528273582, -0.017175517976284027, 0.03962866961956024, -0.012623858638107777, 0.025363465771079063, 0.041331950575113297, 0.0013906414387747645, 0.054466985166072845, 0.0018080399604514241, 0.024465955793857574, -0.003430677577853203, -0.008846791461110115, -0.07616718113422394, -0.0009695417247712612, -0.0296873040497303, -0.03422660380601883, -0.05040716007351875, 0.03295789659023285, -0.0077435411512851715, -0.012961722910404205, -0.026680007576942444, 0.014341630972921848, -0.06396353244781494, -0.03545299544930458, 0.002568424679338932, 0.01566982828080654, 0.039083968847990036, 0.008348459377884865, 0.020559947937726974, -0.015435558743774891, -0.0009068607469089329, 0.021804576739668846, 0.028873557224869728, -0.03726974129676819, -0.006137861404567957, 0.007214119657874107, -0.007819081656634808, -0.0066491649486124516, 0.011550248600542545, 0.016573496162891388, 0.025774063542485237, 0.015936274081468582, -0.030257750302553177, -0.014473316259682178, 0.02575296349823475, 0.05602225288748741, 0.00772693008184433, -0.007007712963968515, -0.00010637813829816878, -0.021578267216682434, -0.009877150878310204, -0.044116925448179245, -0.00549427280202508, -0.003996891435235739, 0.0012471885420382023, -0.029493702575564384, -0.0759487971663475, 0.04168284311890602, 0.032356202602386475, 0.01628304272890091, 0.008973884396255016, -0.011410241946578026, 0.01424221508204937, -0.0182779673486948, 0.03789205104112625, 0.058894138783216476, -0.06303413212299347, 0.0008749692933633924, -0.00611136294901371, 0.021494373679161072, -0.009495924226939678, 0.01923556439578533, -0.027306927368044853, -0.01939798705279827, -0.026091469451785088, 0.007470889016985893, -0.03951312229037285, -0.01776622235774994, -0.024215679615736008, 0.019560538232326508, -0.002244401490315795, -0.029276886954903603, -0.010400217957794666, -0.024226175621151924, -0.009492176584899426, -0.04079389199614525, 0.010981932282447815, -0.005797501187771559, 0.0018112498801201582, 0.03156083822250366, -0.043883997946977615, 0.005348332691937685, -0.04495502635836601, -0.015987221151590347, 0.05182759091258049, -0.010337965562939644, -0.010237553156912327, -0.03067205846309662, -0.0014540747506543994, -0.016440335661172867, 0.036886684596538544, -0.011993516236543655, -0.025346359238028526, -0.04661747068166733, -0.004243336617946625, -0.057460442185401917, 0.0062505328096449375, -0.018035003915429115, -0.02580408938229084, 0.027093475684523582, 0.05750368908047676, 0.03590776398777962, 0.021000375971198082, -0.03642498701810837, -0.001275733346119523, 0.06199074536561966, -0.0779237374663353, -0.022727981209754944, -0.021671639755368233, -0.05834308639168739, 0.020553506910800934, 0.011700483970344067, 0.024692675098776817, -0.036191098392009735, 0.050840239971876144, 0.036713484674692154, 0.01669062115252018, 0.03960733115673065, -0.012190238572657108, 0.030189184471964836, -0.04591135308146477, 0.004938955884426832, -0.1043003648519516, 0.0018575595458969474, 0.009336494840681553, 0.0008860683883540332, -0.021740533411502838, 0.00005139520362718031, -0.03955039381980896, 0.03798801451921463, -0.07645341008901596, -0.004130139015614986, 0.0456295982003212, 0.00100350147113204, -0.008663448505103588, 0.006410440895706415, -0.07734321057796478, 0.02343311533331871, 0.02200302667915821, -0.0322701595723629, -0.004633981268852949, -0.032571155577898026, 0.051041778177022934, 0.021184120327234268, 0.02611548639833927, -0.03851186856627464, -0.015450995415449142, 0.07533903419971466, 0.0005241346661932766, -0.007608970161527395, 0.03621082007884979, 0.007913828827440739, 0.028057372197508812, 0.054451387375593185, 0.009541871957480907, -0.004972132854163647, 0.03306029736995697, -0.01713908649981022, -0.06406004726886749, 0.044032346457242966, 0.014717978425323963, -0.035557348281145096, -0.029312556609511375, 0.07042491436004639, 0.01818457990884781, -0.03729625046253204, -0.055016178637742996, 0.015957102179527283, -0.05682399496436119, -0.024302784353494644, -0.03595632314682007, -0.0007439046748913825, -0.04587472975254059, 0.05526698753237724, -0.01278307382017374, -0.009134318679571152, 0.06357064843177795, 0.007682069204747677, -0.01733178086578846, -0.013020288199186325, 0.09132570028305054, 0.06845782697200775, 0.03852323442697525, -0.006929443683475256, 0.06879749894142151, -0.029184428974986076, -0.025252841413021088, 0.010166674852371216, 0.004166226368397474, -0.013999072834849358, -0.0380760133266449, 0.023873532190918922, 0.08076219260692596, -0.004221365321427584, 0.07801993936300278, -0.03889593854546547, -0.002143658697605133, 0.00460947398096323, 0.008918007835745811, -0.006934682838618755, 0.07438211143016815, 0.002733181929215789, 0.009652509354054928, 0.0018327815923839808, -0.029488924890756607, 0.03042290359735489, -0.05128888785839081, -0.01950870454311371, 0.01717018522322178, 0.012197555974125862, 0.017600297927856445, 0.009673908352851868, 0.04085763171315193, 0.07927995175123215, -0.027844887226819992, 0.026977412402629852, 0.002704971469938755, 0.045096974819898605, 0.004262433387339115, 0.03566932678222656, -0.05167326331138611, -0.005861917044967413, 0.00855657085776329, -0.028954943642020226, -0.006918573286384344, -0.02533916011452675, -0.018564017489552498, 0.03631221503019333, -0.03151794150471687, 0.014204410836100578, 0.012470986694097519, -0.01121964119374752, -0.03637316823005676, -0.04621592164039612, -0.029226941987872124, -0.03376123309135437, -0.061408933252096176, -0.042202096432447433, 0.02195880003273487, -0.009260661900043488, -0.024315036833286285, -0.03922569379210472, -0.010080131702125072, -0.010851445607841015, 0.03646561875939369, -0.06151295825839043, -0.02068348228931427, 0.014925186522305012, 0.0038546379655599594, 0.016986411064863205, 0.02778244949877262, 0.04438796639442444, 0.007260398473590612, -0.01186170894652605, -0.028513411059975624, 0.03500312939286232, 0.03225423023104668, 0.00545977707952261, 0.03623374551534653, -0.06898318976163864, 0.031277745962142944, 0.014660767279565334, 0.0072751520201563835, -0.06537932902574539, 0.020927760750055313, 0.01734049618244171, 0.017863955348730087, 0.052899789065122604, -0.014761863276362419, 0.013764239847660065, -0.042494989931583405, -0.00935276784002781, -0.010339864529669285, 0.01835879683494568, 0.035692695528268814, -0.018056651577353477, 0.08547765016555786, 0.02860570326447487, 0.003682050621137023, -0.04216078296303749, -0.016575783491134644, 0.003819897072389722, 0.008714835159480572, -0.02130581997334957, -0.021778197959065437, -0.03810445964336395, -0.0742308497428894, -0.017714090645313263, 0.006692672614008188, -0.035236358642578125, -0.04921006038784981, 0.02470526285469532, 0.03129736706614494, -0.03704018518328667, 0.052036382257938385, -0.045861512422561646, 0.024854930117726326, -0.026108425110578537, -0.027519788593053818, 0.016498737037181854, 0.034677352756261826, -0.007184622809290886, 0.002286124275997281, 0.031994711607694626, -0.04226693511009216, -0.01122098509222269, 0.011552023701369762, 0.0410827212035656, 0.03828565403819084, 0.00375825772061944, 0.020882124081254005 ]
[ -0.0917804017663002, -0.00016002407937776297, -0.03015892021358013, -0.04140675067901611, 0.05004129931330681, -0.03981379419565201, -0.022070905193686485, 0.049807704985141754, -0.018030624836683273, -0.013814500533044338, -0.02158709615468979, -0.031337521970272064, -0.0006459180149249732, -0.008190080523490906, 0.10256495326757431, 0.02276650443673134, -0.018657345324754715, -0.060098178684711456, -0.007595363073050976, 0.023071659728884697, 0.023654351010918617, -0.038587287068367004, -0.030047791078686714, -0.0453108474612236, 0.014834334142506123, 0.02111644111573696, 0.032655615359544754, -0.05712241306900978, 0.026419611647725105, -0.21376679837703705, -0.003946429118514061, 0.008598385378718376, 0.03869836404919624, -0.011931529268622398, -0.006670209113508463, 0.03592145815491676, 0.0007670809281989932, 0.007808904629200697, -0.013621744699776173, 0.03732037544250488, 0.01044938713312149, 0.030611807480454445, -0.05694185569882393, -0.0202008206397295, 0.026592236012220383, -0.045694611966609955, -0.012269960716366768, -0.030719656497240067, -0.02856750786304474, 0.006244860589504242, -0.05238880589604378, -0.00560316676273942, -0.016248740255832672, -0.04089650139212608, 0.0036530077923089266, 0.005064737051725388, 0.021503595635294914, 0.07817281037569046, 0.010363803245127201, 0.02164391614496708, 0.01903660222887993, -0.023438185453414917, -0.14049866795539856, 0.10812444984912872, 0.03937260061502457, 0.07381075620651245, -0.05181163549423218, -0.013309300877153873, -0.01298139151185751, 0.06210734695196152, 0.004419050179421902, -0.022367898374795914, -0.02182779274880886, 0.011152859777212143, 0.0034293353091925383, 0.0008781338692642748, -0.0022876658476889133, 0.036451999098062515, 0.04229056462645531, -0.03839930146932602, -0.033579498529434204, -0.02567474916577339, -0.006852708291262388, -0.006964914035052061, -0.037661824375391006, 0.010980210267007351, -0.0073069497011601925, 0.063712477684021, 0.024886008352041245, 0.0356009267270565, 0.03567378595471382, -0.025761406868696213, 0.055662285536527634, 0.0039207711815834045, -0.07057008892297745, -0.0011048305314034224, 0.007721830625087023, 0.028157221153378487, -0.02729690633714199, 0.4566531479358673, -0.026608357205986977, -0.03593564033508301, 0.046999987214803696, 0.03349222242832184, 0.012190479785203934, 0.0011397066991776228, -0.009470188058912754, -0.04917685315012932, 0.03197164461016655, -0.024191448464989662, 0.010128804482519627, 0.014330689795315266, 0.06532000750303268, -0.03467733412981033, 0.005294573027640581, 0.0360574834048748, 0.0036121499724686146, 0.011537493206560612, -0.02580307051539421, 0.0013876111479476094, -0.0032203556038439274, 0.00907318014651537, 0.036557018756866455, -0.007052617147564888, 0.027673812583088875, 0.008746527135372162, 0.05229950323700905, 0.04128115251660347, 0.023815032094717026, 0.02187221124768257, 0.03890618681907654, -0.003204673994332552, -0.048588164150714874, 0.014717135578393936, 0.017838550731539726, 0.008252972736954689, 0.028684131801128387, -0.025676794350147247, -0.00012539624003693461, 0.020482780411839485, -0.007385420612990856, -0.014234496280550957, 0.02391916513442993, 0.011596206575632095, -0.019539769738912582, 0.10067728161811829, 0.006845829077064991, -0.030091779306530952, -0.010228496976196766, -0.03353206068277359, 0.017567498609423637, 0.03666095435619354, 0.007548986002802849, -0.04048266261816025, 0.0342380627989769, 0.008815480396151543, 0.08258921653032303, -0.010694512166082859, -0.08004874736070633, -0.013014932163059711, -0.032823242247104645, -0.02678959257900715, -0.021530762314796448, 0.026303358376026154, 0.04493935406208038, -0.1215934306383133, -0.019407164305448532, 0.032020654529333115, 0.04029310867190361, -0.07925041019916534, -0.011782153509557247, -0.0007343505276367068, -0.03350129723548889, -0.030029436573386192, 0.038266316056251526, -0.03541272506117821, -0.020220138132572174, 0.007940522395074368, 0.04687570035457611, 0.0283561572432518, 0.0031624436378479004, -0.01595958136022091, -0.044931378215551376, 0.0025466580409556627, -0.06869156658649445, -0.060170140117406845, -0.011592037044465542, -0.02100910060107708, -0.01783459261059761, -0.02374797686934471, 0.00986491423100233, 0.00012818360119126737, -0.06865188479423523, 0.06771187484264374, -0.02275005541741848, 0.010263361036777496, -0.007334880996495485, -0.029115550220012665, -0.006152569316327572, -0.02703719586133957, 0.0033613655250519514, 0.011549489572644234, -0.006655291188508272, 0.022300168871879578, -0.0633813887834549, 0.030472727492451668, 0.037194300442934036, -0.049180518835783005, 0.08362525701522827, 0.04598557576537132, -0.042497336864471436, -0.028535503894090652, 0.025953777134418488, 0.02215825952589512, -0.0026315876748412848, -0.03785482421517372, -0.004527505952864885, 0.0264520775526762, 0.0069586001336574554, 0.02956618368625641, -0.055351246148347855, 0.011427436955273151, -0.05687469616532326, -0.32676079869270325, -0.060438744723796844, -0.017921995371580124, -0.0022376643028110266, -0.01215527206659317, -0.07867385447025299, 0.01233732420951128, -0.019015802070498466, 0.0012675648322328925, 0.006387399043887854, 0.08335750550031662, 0.006264747120440006, 0.017401408404111862, -0.10753775388002396, 0.026370398700237274, 0.01761678420007229, -0.00203190790489316, 0.004398670047521591, -0.03363315761089325, 0.007326230872422457, -0.018622081726789474, -0.015849513933062553, -0.05606820061802864, -0.0485483817756176, -0.04496984928846359, -0.05915917828679085, 0.0978570431470871, 0.015529531054198742, 0.10341762751340866, -0.022511642426252365, 0.043660979717969894, 0.011370915919542313, 0.022963475435972214, -0.11524077504873276, -0.013959540985524654, -0.007178212516009808, 0.04620823264122009, 0.015302537009119987, 0.05347321927547455, -0.02532874047756195, -0.0370088666677475, 0.034591298550367355, -0.0267948005348444, -0.054363373667001724, -0.030817966908216476, -0.0069780065678060055, -0.04240691289305687, -0.05314448103308678, -0.04596526548266411, 0.08334433287382126, 0.013151312246918678, 0.018225479871034622, 0.04155328869819641, 0.03108477219939232, -0.030463213101029396, -0.01034187525510788, -0.06619110703468323, -0.017993014305830002, 0.012721185572445393, -0.004191631451249123, 0.013812942430377007, 0.05233021453022957, 0.012980934232473373, -0.04783157259225845, 0.0009094062261283398, 0.011983211152255535, 0.037450119853019714, -0.00892077200114727, 0.05025448277592659, -0.04045296832919121, -0.009410939179360867, 0.09008672088384628, -0.017645295709371567, 0.022672239691019058, -0.017435023561120033, 0.0479927696287632, 0.0236925408244133, 0.024142485111951828, 0.007612340152263641, 0.009134583175182343, 0.01822376623749733, 0.036297548562288284, 0.020986344665288925, -0.04651710018515587, -0.024925069883465767, 0.009605026803910732, -0.023748524487018585, -0.03682835400104523, 0.050246261060237885, 0.035642948001623154, -0.02008751966059208, 0.020056670531630516, -0.009415972046554089, -0.0652402862906456, 0.06778305023908615, 0.0036846580915153027, -0.24320538341999054, -0.006089983507990837, 0.07610726356506348, 0.0012565238866955042, -0.010290498845279217, 0.01171827968209982, 0.022725066170096397, -0.08868624269962311, 0.002343578962609172, 0.01001769583672285, 0.005588764324784279, 0.04691585898399353, 0.012735987082123756, 0.011212137527763844, 0.024651963263750076, -0.006501287687569857, 0.04715210199356079, -0.013275685720145702, 0.018404031172394753, -0.006344939582049847, 0.003618735820055008, -0.01845322735607624, 0.1774393618106842, 0.019356360659003258, 0.029681725427508354, 0.04064212739467621, -0.0044020009227097034, 0.005167486146092415, 0.079366534948349, 0.02554273046553135, -0.018266670405864716, 0.005488824099302292, 0.050200093537569046, -0.0036729930434376, 0.02489973045885563, -0.07771669328212738, -0.01981562189757824, 0.05288364365696907, 0.007856705226004124, 0.01618928648531437, 0.003272262867540121, 0.000760730414185673, 0.015427539125084877, 0.008418668992817402, 0.04050686955451965, 0.0010065280366688967, 0.004793156404048204, -0.043557796627283096, -0.05252475664019585, -0.005026009399443865, -0.04638336971402168, -0.03609805554151535, 0.0037288919556885958, -0.017623627558350563, 0.018240908160805702, 0.07983983308076859, 0.022540276870131493, 0.002628026995807886, 0.01442556083202362, 0.00782036129385233, -0.021702339872717857, -0.06452689319849014, 0.12449723482131958, 0.041556041687726974, 0.040259525179862976 ]
[ 0.004925388842821121, 0.006328994873911142, 0.010524959303438663, 0.003972317557781935, 0.026413358747959137, 0.01767568849027157, 0.0051919929683208466, 0.049472834914922714, -0.02021695114672184, 0.0034755428787320852, -0.008386986330151558, 0.024484671652317047, 0.00586802139878273, 0.02151879481971264, 0.020556367933750153, -0.0020744437351822853, 0.023819686844944954, -0.013346823863685131, 0.030780484899878502, -0.03795668110251427, -0.008261162787675858, 0.009544884786009789, 0.04160797595977783, 0.018357383087277412, -0.006970920599997044, 0.006751177832484245, -0.04236026853322983, -0.0032384234946221113, 0.03585205599665642, -0.1120385229587555, -0.02921445481479168, -0.02255135029554367, -0.0001484827371314168, -0.0075549171306192875, -0.017368339002132416, -0.009616459719836712, -0.010591426864266396, 0.017233487218618393, -0.011286290362477303, 0.01563461869955063, 0.015450621023774147, -0.004106472246348858, 0.0098552405834198, -0.005450118333101273, -0.016497040167450905, -0.022049585357308388, -0.017545418813824654, -0.030425285920500755, -0.006719627417623997, -0.018457340076565742, -0.029475633054971695, -0.01679406501352787, -0.023120202124118805, 0.01051358599215746, -0.021299149841070175, -0.0030842418782413006, -0.005589841865003109, -0.018834568560123444, 0.03185832500457764, -0.003751172451302409, 0.022791016846895218, -0.017149493098258972, -0.038354307413101196, -0.017491955310106277, -0.002600966254249215, -0.0041432068683207035, -0.008686058223247528, 0.033589377999305725, -0.0123494453728199, 0.014737929217517376, -0.003359076799824834, 0.011682651937007904, -0.03688701242208481, -0.02509239688515663, -0.028136642649769783, -0.04257901757955551, 0.019052518531680107, -0.020984932780265808, -0.002266144147142768, 0.0211858619004488, -0.01380990445613861, 0.0011210645316168666, -0.001893768785521388, 0.028004679828882217, -0.00030033255461603403, 0.001384041621349752, 0.008628490380942822, 0.0023982112761586905, -0.02057347074151039, -0.003852976020425558, -0.04900344833731651, 0.0075292871333658695, -0.0036571386735886335, 0.022546665742993355, -0.08621873706579208, -0.00516715319827199, -0.02993937022984028, -0.030143653973937035, -0.019290199503302574, 0.8718361854553223, -0.011779993772506714, 0.006251519545912743, 0.02669360302388668, -0.004646121524274349, 0.03353438153862953, 0.004846146795898676, -0.003968499135226011, -0.011842679232358932, 0.0214279443025589, -0.03941013664007187, 0.0015464922180399299, 0.020824212580919266, 0.015663795173168182, 0.02306929975748062, 0.029224930331110954, 0.013022316619753838, -0.01134449616074562, 0.00008015054481802508, 0.01746455766260624, 0.01130940392613411, 0.026190726086497307, -0.015107832849025726, 0.026311974972486496, -0.003747641807422042, 0.014619464054703712, -0.17415966093540192, 0.014330088160932064, -7.227206693820236e-33, 0.052550770342350006, -0.028851747512817383, 0.003185406094416976, 0.011610498651862144, 0.02649601735174656, 0.03171646595001221, 0.0049352142959833145, 0.011968869715929031, -0.037416573613882065, -0.022812379524111748, 0.004289211239665747, -0.025096602737903595, -0.006427675019949675, 0.010395552963018417, 0.021139489486813545, -0.0067862579599022865, 0.0023060746025294065, 0.03932694345712662, -0.006068988237529993, 0.01431156974285841, 0.0006219594506546855, 0.04708082601428032, 0.0012111782561987638, 0.02675245702266693, -0.0032712738029658794, 0.032091446220874786, 0.018435409292578697, 0.017627909779548645, 0.009164569899439812, -0.0474557988345623, -0.030973801389336586, 0.043573033064603806, -0.01727449707686901, -0.02132926881313324, 0.05224330723285675, -0.036018479615449905, -0.007966575212776661, 0.00411427766084671, -0.006544681265950203, -0.025560511276125908, -0.02269095554947853, 0.005007387138903141, -0.04260962828993797, -0.042382434010505676, -0.026482826098799706, -0.021656829863786697, -0.0009427681216038764, 0.014125173911452293, 0.0074876779690384865, 0.01442849449813366, 0.013326623477041721, 0.033665236085653305, -0.005571302492171526, -0.0073449620977044106, 0.00401691161096096, 0.005910428240895271, -0.005973794497549534, 0.005646579433232546, 0.025952568277716637, -0.00754511309787631, 0.01106883492320776, -0.029570413753390312, -0.007743529975414276, 0.02242707461118698, 0.010692712850868702, -0.00533147482201457, 0.0043677352368831635, -0.022955207154154778, 0.031531382352113724, 0.007974449545145035, -0.04452284052968025, 0.03307361528277397, -0.03556757792830467, -0.007484689354896545, 0.04887276142835617, -0.021980904042720795, -0.004918538965284824, 0.0003703343390952796, 0.025281783193349838, 0.05481991916894913, 0.026562104001641273, -0.03083913028240204, 0.02312971092760563, -0.05183834955096245, 0.0007914822781458497, -0.03753059729933739, 0.03142102435231209, -0.020513899624347687, -0.005541503895074129, 0.021586695685982704, 0.006219080183655024, 0.005466531030833721, -0.005439502187073231, -0.008991560898721218, -0.013823242858052254, 7.720917994585443e-33, 0.01216374896466732, 0.019158637151122093, -0.041894931346178055, 0.011075485497713089, -0.0003076844441238791, -0.009476990438997746, 0.03453316539525986, 0.008035378530621529, -0.03202643245458603, 0.025544865056872368, -0.013616794720292091, -0.02167641930282116, -0.036696262657642365, 0.0014649442164227366, 0.05185569077730179, 0.0017252402612939477, 0.0008342242799699306, -0.028789155185222626, -0.00037113085272721946, -0.05234835296869278, -0.014558966271579266, 0.011356673203408718, 0.01694124937057495, 0.01601785235106945, 0.007349332328885794, 0.039370231330394745, 0.0026883159298449755, 0.036810051649808884, -0.01219944003969431, -0.008444870822131634, -0.004254828207194805, -0.024057069793343544, 0.00004850150071433745, -0.000474439439130947, -0.013390072621405125, 0.048373300582170486, 0.021085362881422043, -0.0006929994560778141, 0.030446253716945648, -0.0076598203741014, 0.04838505759835243, 0.02825712040066719, -0.008869496174156666, 0.007563686463981867, -0.006921104621142149, 0.012158541940152645, -0.025786960497498512, 0.009481705725193024, -0.004464942030608654, 0.0018219978082925081, 0.007458277978003025, -0.0071907066740095615, 0.04558447748422623, -0.012835166417062283, 0.00563431903719902, -0.04851403087377548, -0.015400025062263012, 0.02125394716858864, -0.019037362188100815, -0.002483540214598179, -0.012295382097363472, -0.028293758630752563, -0.008238564245402813, 0.0024688178673386574, -0.03931555151939392, -0.0183341596275568, -0.049817610532045364, -0.005140569526702166, -0.0017007681308314204, -0.0008792200242169201, 0.006894194521009922, -0.026464268565177917, 0.008086741901934147, 0.02607777900993824, 0.025477252900600433, -0.0004778889997396618, -0.01628437079489231, 0.003775902558118105, -0.011472189798951149, 0.015768662095069885, 0.014081195928156376, 0.011948632076382637, 0.02947581745684147, -0.012755105271935463, -0.0023315572179853916, 0.04313967749476433, -0.013608375564217567, 0.027849309146404266, 0.02741711400449276, -0.002580272499471903, -0.009497375227510929, 0.01092018187046051, 0.0014774131122976542, 0.019972817972302437, 0.041792839765548706, -1.3201876924995304e-8, -0.03866610676050186, -0.005707867909222841, -0.020928367972373962, 0.02062390185892582, 0.007343579083681107, 0.0252962876111269, -0.008820334449410439, -0.007043084129691124, 0.009520232677459717, -0.009681698866188526, 0.03396938741207123, -0.02042960189282894, -0.013794166967272758, 0.020261799916625023, 0.012692700140178204, -0.023343650624155998, -0.0022943017538636923, -0.03198694437742233, 0.03130774572491646, 0.01588938944041729, 0.010153035633265972, 0.04816875234246254, -0.00315813603810966, -0.0030088184867054224, -0.029849644750356674, 0.02013368159532547, 0.014876713044941425, -0.06316282600164413, -0.031314536929130554, 0.0174676813185215, 0.026423554867506027, -0.0395212359726429, -0.04452776163816452, -0.008134379051625729, -0.021885719150304794, -0.045534707605838776, 0.009303425438702106, -0.014149296097457409, 0.018256260082125664, 0.005508377216756344, 0.03029279038310051, 0.012152641080319881, -0.005110226105898619, -0.03430814668536186, -0.021732328459620476, 0.004014818463474512, -0.02011195197701454, -0.0018484279280528426, 0.013587819412350655, -0.016413530334830284, 0.003105004085227847, 0.006635620724409819, -0.028837861493229866, 0.027975374832749367, 0.027456924319267273, -0.031736794859170914, 0.024173378944396973, -0.016846464946866035, -0.032987769693136215, -0.006632245611399412, 0.01268505398184061, 0.020686283707618713, -0.022759517654776573, -0.01508206408470869 ]
venkat-inline-code-snippet-execution-vs-code-execution
https://markhneedham.com/blog/2023/05/17/venkat-inline-code-snippet-execution-vs-code-execution
false
2023-05-09 02:44:37
Python 3.10: Pattern matching with match/case
[ "python", "til" ]
[ "TIL" ]
:icons: font I've been reading https://www.oreilly.com/library/view/fluent-python-2nd/9781492056348/[Fluent Python^] and learnt about pattern matching with the match/case statement, introduced in Python 3.10. You can use it instead of places where you'd otherwise use `if`, `elif`, `else` statements. I created a small example to understand how it works. The following function takes in a list where the first argument should be `foo`, followed by a variable number of arguments, which we print to the console: [source, python] ---- def parse_if(x): if x[0] == "foo": if len(x[1:]) > 1: print(f"Multiple values: {'_'.join([str(n) for n in x[1:]])}") elif len(x[1:]) == 1: if x[1] == 5: print(f"Only one value and it's the magical 5") else: print(f"Only one value: {x[1]}") else: print("No values") else: raise SyntaxError(f"Invalid expression: {x}") ---- Let's run that function with some different arguments: [source, python] ---- parse_if(["foo", *(range(0,10))]) parse_if(["foo", 1]) parse_if(["foo", 5dada]) parse_if(["foo"]) parse_if(["bar"]) ---- .Output [source, text] ---- Multiple values: 0_1_2_3_4_5_6_7_8_9 Only one value: 1 Only one value and it's the magical 5 No values Traceback (most recent call last): File "/Users/markhneedham/projects/fluent_python/destruct.py", line 40, in <module> fn(["bar"]) File "/Users/markhneedham/projects/fluent_python/destruct.py", line 14, in parse_if raise SyntaxError(f"Invalid expression: {x}") SyntaxError: Invalid expression: ['bar'] ---- A version of that function rewritten to use pattern matching would look like this: [source, python] ---- def parse_match(x): match x: <1> case ['foo']: print("No values") case ['foo', 5]: <2> print(f"Only one value and it's the magical 5") case ['foo', other]: <3> print(f"Only one value: {other}") case ['foo', *other]: <4> print(f"Multiple values: {'_'.join([str(n) for n in other])}") case _: <5> raise SyntaxError(f"Invalid expression: {x}") ---- <1> `x` is our pattern matching subject <2> We can match literal values inside a case statement <3> Or we can assign to a variable instead. <4> The `*` operator matches multiple values <5> `_` is a wildcard character that matches everything else I think this second example is a little bit easier to read than the first and I can see this syntax being super useful for more gnarly combinations of predicates.
In this post we'll learn about Python 3.10's pattern matching with the match/case statement.
uploads/2023/05/python-pattern-banner.png
[ 0.006851669400930405, 0.021237865090370178, 0.00562444981187582, 0.011314425617456436, 0.08998361229896545, 0.04483676329255104, 0.034719258546829224, 0.0328039675951004, 0.005290101282298565, -0.005285988561809063, 0.0023276328574866056, 0.018727116286754608, -0.10342849791049957, 0.0047908686101436615, -0.025864068418741226, 0.07805550843477249, 0.07906559854745865, -0.012420221231877804, 0.021747082471847534, -0.018430335447192192, 0.006172924768179655, 0.06490084528923035, -0.011299115605652332, 0.040524352341890335, 0.013016194105148315, 0.044731251895427704, 0.007007385138422251, 0.004897279664874077, -0.048913437873125076, -0.001134066958911717, 0.021495331078767776, 0.02213648520410061, -0.00606697890907526, -0.00862959772348404, 0.03063208796083927, 0.016175806522369385, 0.019806820899248123, -0.004913486074656248, -0.00829935260117054, 0.04234253242611885, -0.04870336502790451, 0.010651550255715847, -0.021571116521954536, 0.021791694685816765, -0.048808492720127106, 0.00039380582165904343, -0.052920401096343994, 0.010710261762142181, -0.00653216103091836, -0.005730036646127701, -0.07943491637706757, 0.04270581156015396, -0.010716496035456657, -0.037482067942619324, -0.02402965910732746, 0.061606284230947495, 0.0003220363287255168, -0.05749666690826416, 0.02239135093986988, -0.03681153431534767, -0.006449749693274498, 0.007492587901651859, 0.011300841346383095, 0.05086303874850273, -0.01431209221482277, 0.003492646152153611, -0.00920588057488203, 0.039962466806173325, -0.0715549886226654, -0.03504260256886482, -0.02870934270322323, 0.022907758131623268, -0.0036126933991909027, -0.026496965438127518, -0.01832442544400692, -0.02327176183462143, -0.05336710065603256, 0.05025302246212959, 0.035399165004491806, 0.06532221287488937, 0.030950229614973068, -0.0006936104036867619, 0.034801263362169266, -0.001670548808760941, 0.010342231020331383, -0.01777830719947815, -0.031575459986925125, -0.018460527062416077, -0.0351194329559803, 0.03624214977025986, 0.004576563369482756, -0.07215497642755508, -0.0012196708703413606, 0.00832789670675993, -0.008498352020978928, 0.005163802765309811, -0.010664279572665691, -0.026938604190945625, -0.006303504109382629, -0.004002680536359549, -0.045087780803442, -0.04400211572647095, 0.030605020001530647, 0.027747536078095436, -0.09147863835096359, -0.037156958132982254, -0.03611663356423378, 0.008580772206187248, 0.012725750915706158, -0.004290855955332518, -0.014126439578831196, -0.01631159335374832, -0.019311685115098953, -0.017474999651312828, -0.07199864834547043, 0.06907602399587631, -0.007420149631798267, -0.00011331048881402239, -0.002955246716737747, 0.028993796557188034, 0.029865248128771782, 0.00418767100200057, -0.025879954919219017, 0.07877115905284882, 0.015090709552168846, 0.06402301788330078, 0.012847189791500568, 0.0857357531785965, -0.008063435554504395, -0.03734062984585762, -0.04269741475582123, 0.05560586601495743, -0.023370493203401566, 0.011526775546371937, -0.002322838408872485, -0.017875073477625847, -0.018615584820508957, -0.007316011469811201, 0.05453776568174362, 0.023827699944376945, 0.014499377459287643, -0.01744544692337513, -0.008979393169283867, 0.005812077783048153, 0.041431672871112823, 0.012479513883590698, -0.005087096244096756, -0.025430087000131607, -0.004428205545991659, 0.009746654890477657, 0.025571977719664574, 0.01444988138973713, 0.0694657564163208, -0.014113598503172398, -0.014902965165674686, 0.07456250488758087, 0.04713742807507515, 0.013538423925638199, -0.014446667395532131, 0.0003993118880316615, 0.039307110011577606, 0.04319564253091812, 0.007487577386200428, 0.0585467554628849, 0.037083499133586884, 0.01385502703487873, -0.020031744614243507, 0.05611039698123932, -0.028729187324643135, 0.012686595320701599, -0.038474977016448975, -0.04399868845939636, 0.06311270594596863, -0.03169645741581917, -0.003182877553626895, -0.00172477460000664, 0.07325845211744308, 0.009538266807794571, 0.07777899503707886, -0.01227982435375452, -0.06571472436189651, 0.05084342882037163, -0.026625126600265503, 0.02555878274142742, 0.004252936225384474, 0.013674414716660976, 0.05493985861539841, -0.013274338096380234, 0.02171807922422886, 0.048068877309560776, -0.04641973599791527, -0.07362603396177292, -0.011594482697546482, -0.03602491691708565, 0.05672026425600052, -0.05692693591117859, -0.02351503074169159, 0.04827868193387985, 0.04679114744067192, 0.03311570733785629, 0.016495617106556892, -0.011105986312031746, -0.004800369031727314, -0.017343536019325256, -0.04729047790169716, 0.05107300356030464, 0.044334251433610916, 0.0001674034574534744, -0.030208509415388107, 0.015272782184183598, -0.015440534800291061, 0.03733516111969948, 0.03494299203157425, -0.012579717673361301, 0.04199325665831566, 0.00628427742049098, 0.011416446417570114, -0.013543867506086826, 0.04671528562903404, -0.07698308676481247, 0.014884443022310734, -0.005509747192263603, -0.015415283851325512, -0.028835440054535866, -0.007595766335725784, 0.11608047038316727, 0.07480859756469727, -0.04309806972742081, -0.0478425957262516, 0.025522377341985703, -0.02706420235335827, -0.030966250225901604, 0.026824915781617165, -0.00263238325715065, -0.039801329374313354, 0.01487028133124113, -0.027161721140146255, -0.011199569329619408, 0.01145752239972353, -0.03362074866890907, -0.01172905508428812, 0.0354483500123024, -0.03277088701725006, 0.02963305078446865, 0.03810809925198555, -0.02636357955634594, 0.007590688299387693, -0.0037518837489187717, -0.05022997036576271, 0.0098378024995327, 0.019467540085315704, -0.020824378356337547, 0.05416359379887581, -0.026227526366710663, -0.05014362931251526, -0.033918775618076324, -0.03504365310072899, 0.05416266620159149, 0.039410341531038284, 0.04923052713274956, -0.024036865681409836, 0.035423144698143005, -0.02063583955168724, 0.012093450874090195, 0.005913854576647282, -0.027138065546751022, -0.01736537367105484, 0.005125865340232849, 0.029150214046239853, 0.025175796821713448, 0.026880662888288498, 0.04443218186497688, 0.012918755412101746, 0.002831414807587862, 0.0031642357353121042, -0.004350400064140558, 0.03548360988497734, 0.018437033519148827, -0.04274097457528114, -0.03897244110703468, -0.018199624493718147, 0.06879837065935135, -0.06580665707588196, -0.030980467796325684, -0.01838701032102108, -0.042933933436870575, 0.0063660843297839165, -0.07855388522148132, -0.05228833109140396, -0.005740842316299677, 0.01466250792145729, 0.03010929934680462, -0.03656001389026642, 0.002214904176071286, 0.023737570270895958, -0.0005970201455056667, -0.014133315533399582, 0.05903255566954613, 0.003291105618700385, 0.025250211358070374, 0.03613687679171562, 0.04476011544466019, 0.025839723646640778, 0.013745361007750034, -0.013793321326375008, -0.05813448503613472, -0.016077209264039993, -0.007632413413375616, -0.258532851934433, 0.020986879244446754, 0.008313252590596676, -0.027440456673502922, 0.008041729219257832, -0.04954080283641815, 0.0065456866286695, -0.03618649020791054, 0.003057674737647176, 0.03128660470247269, -0.024045802652835846, -0.05658264085650444, -0.03949463367462158, 0.04741738364100456, -0.0025127222761511803, -0.02019544132053852, 0.006836073473095894, -0.04533107951283455, 0.010614173486828804, 0.04458573833107948, 0.022168973460793495, -0.06981507688760757, -0.0055671869777143, 0.06154102087020874, 0.007269087713211775, 0.044065773487091064, -0.08713431656360626, 0.015731418505311012, -0.05527704581618309, -0.034390438348054886, -0.009159835986793041, 0.004170892760157585, 0.0060459645465016365, -0.010560478083789349, 0.003296250244602561, -0.01256142184138298, 0.025982512161135674, 0.0029291289392858744, 0.012258964590728283, 0.05203581973910332, -0.05172440782189369, -0.03766736388206482, 0.001499726204201579, 0.006092124152928591, 0.08393678069114685, -0.002348095877096057, -0.060774609446525574, -0.02851499803364277, -0.03193360194563866, 0.06871706992387772, -0.06487972289323807, -0.030546028167009354, -0.01191660389304161, 0.035402730107307434, -0.015668243169784546, 0.02626466006040573, -0.000346223619999364, -0.010561494156718254, -0.04218536615371704, -0.016707638278603554, -0.014072885736823082, -0.05356082320213318, -0.02254592813551426, -0.0334526002407074, -0.0007355436100624502, -0.04833531007170677, -0.044701069593429565, -0.012091638520359993, 0.044934362173080444, 0.03536967933177948, -0.043116260319948196, -0.009762054309248924, -0.016975348815321922, -0.09668994694948196, -0.03309154883027077, -0.03813661262392998, 0.004581058863550425, -0.0005614784895442426, 0.0057777524925768375, 0.01966937817633152, -0.042873285710811615, -0.06249479949474335, 0.014942198060452938, 0.01621082052588463, 0.032646894454956055, -0.023236578330397606, 0.01161213032901287, -0.0016956350300461054, 0.0042397440411150455, -0.002023193286731839, 0.06443912535905838, 0.006865665316581726, -0.017334314063191414, 0.01960786059498787, -0.02044820412993431, 0.004279201850295067, 0.04801545292139053, -0.012622789479792118, 0.023288287222385406, 0.025182638317346573, 0.004763870034366846, -0.09036144614219666, -0.011003850027918816, 0.00939852837473154, -0.010857152752578259, 0.006111480761319399, -0.043414175510406494, 0.0018291225424036384, 0.030035896226763725, -0.008608337491750717, -0.030988987535238266, -0.017624706029891968, 0.014592615887522697, -0.04544840008020401, -0.028955036774277687, -0.04932783171534538, 0.020247524604201317, 0.0034579026978462934, 0.018293550238013268, -0.005786343477666378, -0.05314420163631439, 0.04214203730225563, -0.0073814112693071365, -0.02139943093061447, -0.04567016288638115, -0.052541397511959076, 0.01668596640229225, -0.0071607595309615135, -0.007153287995606661, 0.023104477673768997, 0.0047166734002530575, 0.0169510655105114, 0.021178655326366425, -0.04427230730652809, 0.03489535301923752, -0.020983926951885223, 0.00590961379930377, -0.022039685398340225, -0.01758349873125553, -0.022112129256129265, 0.00671283109113574, -0.002750009996816516, 0.020318511873483658, 0.00010493543231859803, 0.02776685729622841, 0.013587027788162231, 0.03860006481409073, -0.01079395692795515, 0.010348266921937466, 0.0626581609249115, 0.040859729051589966, -0.0253494493663311, 0.013187434524297714, -0.038515396416187286, -0.04125512018799782, 0.010652503930032253, 0.017683912068605423, 0.0018827210878953338, -0.031953319907188416, -0.046356432139873505, 0.04553745687007904, -0.04031993821263313, 0.014723182655870914, -0.02067294716835022, 0.0028773779049515724, 0.03203468769788742, -0.01829364150762558, 0.0642734095454216, -0.044037893414497375, 0.004881847649812698, 0.024767177179455757, 0.03358485922217369, -0.0027152940165251493, 0.029052255675196648, -0.015865694731473923, -0.006770485080778599, 0.011875370517373085, 0.03416131064295769, -0.008952121250331402, 0.03249605745077133, 0.01254945620894432, -0.02425619773566723, 0.008801762945950031, 0.005235831718891859, 0.038394033908843994, 0.02460518851876259, -0.0028747532051056623, -0.03526528179645538, -0.027536466717720032, -0.037220850586891174, -0.051378101110458374, -0.04013964161276817, -0.03741142153739929, -0.024845188483595848, -0.032366812229156494, -0.0825338363647461, 0.0014209237415343523, 0.012363594956696033, 0.000655262905638665, 0.012456318363547325, -0.02665713243186474, -0.006072976626455784, -0.02944641001522541, 0.011966624297201633, 0.048332881182432175, -0.05897211283445358, 0.002754116663709283, -0.023847784847021103, 0.020790187641978264, 0.032028522342443466, 0.06418353319168091, -0.07383248209953308, -0.04159167781472206, 0.013957774266600609, -0.015011738054454327, -0.022675074636936188, -0.04996313899755478, -0.011000941507518291, 0.014127576723694801, -0.029012519866228104, -0.0005160810542292893, -0.005452187266200781, 0.01135943178087473, -0.041837260127067566, -0.01554132904857397, 0.005777474492788315, -0.010879237204790115, -0.005655954591929913, 0.053752362728118896, -0.02477055974304676, 0.028223272413015366, -0.029186218976974487, 0.04455256834626198, 0.008768884465098381, -0.00866407435387373, -0.024273885414004326, -0.054703835397958755, -0.015039331279695034, -0.00900392234325409, 0.01399083249270916, 0.0003795555967371911, 0.0018191573908552527, -0.036391545087099075, -0.023306721821427345, -0.02076261304318905, 0.02872309274971485, 0.019466638565063477, -0.07806813716888428, 0.006667750887572765, 0.05482763797044754, -0.014101974666118622, 0.04703338071703911, 0.027997687458992004, -0.03833480179309845, 0.03758533298969269, -0.02182968147099018, -0.02756282314658165, 0.022597363218665123, -0.03862118721008301, 0.027135830372571945, 0.030915135517716408, 0.03085160255432129, -0.04266778752207756, 0.0024773292243480682, 0.05067507177591324, 0.06362486630678177, 0.031228801235556602, 0.0011749344412237406, 0.03806823119521141, -0.019363047555088997, 0.012849696911871433, -0.09444568306207657, -0.0070201377384364605, 0.03747496008872986, 0.003025928046554327, -0.046335361897945404, -0.030649634078145027, -0.015700271353125572, 0.03467334061861038, -0.04632338508963585, -0.0005129497149027884, 0.028258822858333588, 0.03188445791602135, 0.01615309529006481, 0.02930925227701664, -0.031784720718860626, 0.02544477954506874, 0.038172077387571335, -0.04329667612910271, -0.025003403425216675, 0.0040858653374016285, 0.07248494774103165, -0.0007705523166805506, 0.04845010116696358, 0.014809176325798035, 0.0010746704647317529, 0.0737985298037529, 0.0555477999150753, -0.004284103866666555, 0.06653492897748947, -0.020657498389482498, 0.053555797785520554, 0.02323988452553749, 0.003372922772541642, -0.008198426105082035, 0.019150251522660255, -0.020977595821022987, -0.07119589298963547, 0.009069585241377354, -0.012495704926550388, -0.029967203736305237, -0.059926409274339676, 0.05932488664984703, 0.0018210874404758215, 0.00684133218601346, -0.0529010146856308, -0.0038467447739094496, -0.048984624445438385, -0.01243558619171381, -0.03143112361431122, 0.004018111620098352, -0.05871087685227394, 0.0816718339920044, 0.02325419709086418, 0.01204755250364542, 0.06294988095760345, -0.021177029237151146, 0.009667939506471157, 0.007914313115179539, 0.058769598603248596, 0.0758734866976738, 0.05781973525881767, 0.0030848069582134485, 0.031626954674720764, -0.021919211372733116, -0.03222944214940071, 0.02375057153403759, -0.017406849190592766, -0.009623744525015354, -0.011678660288453102, 0.06274229288101196, 0.09219159185886383, 0.003713686717674136, 0.04947759583592415, -0.034437306225299835, -0.000662719423417002, -0.020677415654063225, 0.016890624538064003, 0.029861537739634514, 0.08721921592950821, -0.0013275619130581617, 0.04692120477557182, -0.015272688120603561, 0.00040119956247508526, 0.05166744813323021, -0.027218040078878403, -0.01656094565987587, 0.022829320281744003, -0.013987544924020767, 0.017516648396849632, 0.03722474351525307, 0.035626042634248734, 0.08876779675483704, -0.01904446631669998, -0.034066833555698395, 0.006048958748579025, -0.0016826296923682094, 0.013454621657729149, -0.0012300934176892042, 0.005815879907459021, -0.017794039100408554, -0.0036236816085875034, -0.028826437890529633, -0.03666653111577034, -0.06572560966014862, -0.05340193584561348, 0.016932321712374687, 0.00010725942411227152, -0.007206834852695465, 0.038237154483795166, -0.022597741335630417, -0.03667530044913292, -0.041371822357177734, -0.05570776015520096, -0.029374592006206512, -0.06796804070472717, -0.003055478911846876, -0.0006435880204662681, -0.026037659496068954, -0.028725355863571167, -0.0292644202709198, 0.006387562956660986, -0.04600062593817711, 0.026089249178767204, -0.050885122269392014, -0.014788131229579449, 0.031626660376787186, 0.03241754323244095, 0.007796252612024546, 0.008668079040944576, 0.024188784882426262, -0.009917045012116432, -0.04398825764656067, -0.02280125580728054, 0.014039034955203533, 0.025611937046051025, 0.01835351251065731, -0.0033162932377308607, -0.07876995950937271, -0.007363219745457172, 0.027140488848090172, -0.00315102725289762, -0.07575883716344833, 0.024095552042126656, 0.005530794616788626, 0.010244738310575485, 0.020583584904670715, -0.025626158341765404, -0.01467879582196474, -0.017965132370591164, -0.05704415962100029, 0.016653001308441162, 0.004837914370000362, 0.059560634195804596, -0.04039547219872475, 0.076795794069767, 0.0054055084474384785, -0.004841499030590057, -0.041171807795763016, -0.006139774341136217, -0.03403639420866966, 0.03685145452618599, -0.040012016892433167, -0.02102276310324669, -0.04843297600746155, -0.06344645470380783, 0.0027177250012755394, -0.009190290234982967, -0.02060142531991005, -0.03684157878160477, 0.009511754848062992, 0.02155732549726963, -0.03348490595817566, 0.09731079638004303, -0.039946332573890686, 0.0051339492201805115, -0.03019297868013382, -0.028435755521059036, 0.006009457167237997, 0.029477359727025032, 0.01206873543560505, 0.03799847885966301, 0.033717814832925797, -0.05138750746846199, -0.015843741595745087, -0.03404226526618004, 0.021404363214969635, 0.016111034899950027, -0.0028151769656687975, 0.039651356637477875 ]
[ -0.10011717677116394, -0.0194755420088768, -0.04979517310857773, -0.021836619824171066, -0.004653080366551876, -0.07130412012338638, 0.021139485761523247, 0.02313314564526081, 0.05596521496772766, -0.04000790789723396, -0.005890075583010912, -0.08062810450792313, 0.0414482057094574, -0.06306673586368561, -0.005947190336883068, -0.039561789482831955, -0.042585816234350204, -0.03751879185438156, -0.04946737363934517, -0.00148526590783149, 0.03430664911866188, -0.0039724200032651424, -0.057472847402095795, -0.059204891324043274, 0.03277689591050148, 0.08776684105396271, 0.062060363590717316, -0.029601499438285828, 0.029056739062070847, -0.20460177958011627, -0.03292500227689743, -0.026917440816760063, 0.032342471182346344, -0.013884876854717731, 0.002089786110445857, 0.011104394681751728, -0.010243375785648823, 0.007485479582101107, 0.008071797899901867, 0.07426227629184723, 0.028626706451177597, 0.028501013293862343, -0.018214939162135124, 0.004779615439474583, 0.017263447865843773, -0.021730510517954826, -0.051143065094947815, -0.006384515203535557, -0.0321786031126976, -0.024276448413729668, -0.02179003320634365, -0.0055670784786343575, -0.021843068301677704, -0.03115387074649334, -0.04481009393930435, 0.036090489476919174, 0.03993222862482071, 0.045421991497278214, -0.026142820715904236, 0.015011874958872795, -0.004846292082220316, -0.02126048319041729, -0.11888991296291351, 0.11726599186658859, 0.023409618064761162, 0.04912721365690231, 0.015659641474485397, -0.018565451726317406, -0.023276131600141525, 0.08791656792163849, 0.015611949376761913, -0.015544221736490726, -0.01888607256114483, 0.05407992750406265, -0.010547487065196037, -0.0457465723156929, 0.007199294865131378, -0.014133626595139503, 0.024671688675880432, 0.030432313680648804, -0.05802180990576744, -0.01586875133216381, -0.0029297498986124992, -0.008049308322370052, 0.02790617011487484, 0.045328639447689056, -0.023076312616467476, 0.008509313687682152, 0.01849687658250332, 0.020763278007507324, -0.001785989385098219, -0.016030948609113693, 0.021497266367077827, 0.047908809036016464, -0.03605371713638306, 0.0036082915030419827, 0.03755471110343933, 0.0078159524127841, -0.021720707416534424, 0.4120064973831177, -0.03331008180975914, -0.00215697567909956, -0.03893912211060524, 0.005675304681062698, 0.011833528988063335, -0.018241025507450104, -0.03866402804851532, -0.03495839610695839, 0.03316345438361168, -0.07234005630016327, -0.006647032219916582, -0.036941591650247574, 0.06664735078811646, -0.06578369438648224, -0.02784452773630619, 0.04274781420826912, 0.010102348402142525, -0.022566143423318863, 0.023374062031507492, -0.01186885591596365, -0.03496744856238365, -0.04948040097951889, 0.009900761768221855, -0.02252778597176075, -0.005885162856429815, 0.04037916660308838, -0.0074104382656514645, 0.09335174411535263, 0.012399710714817047, 0.04434182867407799, 0.038794733583927155, -0.089392751455307, -0.011516934260725975, 0.017963793128728867, 0.011898104101419449, 0.02712111920118332, 0.012595966458320618, 0.018021536991000175, 0.026055309921503067, 0.03500572219491005, 0.02050711400806904, -0.08979161083698273, 0.017351850867271423, 0.029522251337766647, -0.0393165647983551, 0.10615688562393188, -0.04167654365301132, -0.031155407428741455, -0.040159672498703, -0.03403853252530098, -0.031584080308675766, 0.04467149078845978, -0.03501714766025543, -0.024303944781422615, -0.034281712025403976, 0.0406857430934906, 0.09976669400930405, -0.039726465940475464, -0.03373625501990318, -0.043667327612638474, -0.0173057671636343, -0.013430015183985233, -0.06744509190320969, 0.05415062606334686, -0.01672143116593361, -0.06975329667329788, -0.013918746262788773, 0.0019472480053082108, -0.02862345613539219, -0.06622317433357239, 0.037629518657922745, -0.006337542086839676, -0.020999643951654434, -0.016032692044973373, 0.021003378555178642, 0.0016749827191233635, -0.008862796239554882, 0.014731128700077534, 0.04914981126785278, 0.052457544952631, -0.01049106102436781, 0.0425504669547081, -0.03148014843463898, 0.019780287519097328, -0.019491735845804214, -0.05396141856908798, -0.05148128420114517, -0.0026937841903418303, 0.022704288363456726, -0.02429615519940853, -0.0023998380638659, -0.04261134937405586, -0.0045459456741809845, 0.03351139277219772, -0.03721220791339874, 0.009954998269677162, 0.024098770692944527, -0.00954107940196991, -0.022911129519343376, -0.0036698428448289633, 0.06347338855266571, 0.013789456337690353, 0.013355990871787071, 0.010456220246851444, 0.008326822891831398, 0.041669804602861404, 0.02460990473628044, -0.03984403982758522, 0.04005281999707222, -0.005008253734558821, -0.04936320707201958, 0.03315429762005806, -0.005738941021263599, -0.009283598512411118, 0.044714510440826416, -0.056502919644117355, 0.009805215522646904, 0.04912716522812843, 0.03941785544157028, 0.03390396386384964, -0.049405261874198914, -0.09022671729326248, -0.021798811852931976, -0.3380909860134125, -0.007226080633699894, -0.03264057636260986, -0.022649982944130898, 0.008031084202229977, -0.051924582570791245, 0.016628090292215347, -0.012812242843210697, -0.06500418484210968, 0.07520704716444016, 0.03743859380483627, -0.007807536516338587, -0.009238623082637787, -0.0772630125284195, -0.025761175900697708, -0.009338158182799816, 0.004194924607872963, -0.02654813975095749, -0.021206827834248543, 0.009280825965106487, 0.01436525583267212, -0.017556877806782722, 0.012467796914279461, -0.07789946347475052, 0.01718069240450859, -0.01653408445417881, 0.13025259971618652, 0.025113655254244804, 0.06403505057096481, -0.017956020310521126, 0.06139668822288513, -0.00640673004090786, -0.03392550349235535, -0.010550625622272491, 0.03754274174571037, -0.020316019654273987, -0.04562416672706604, -0.015313789248466492, 0.025784896686673164, 0.019048063084483147, 0.03200270235538483, -0.000975831993855536, -0.0047068167477846146, -0.021674858406186104, 0.01854535937309265, -0.02590932324528694, -0.000980562181212008, -0.052008192986249924, 0.015562158077955246, 0.11975965648889542, 0.053840599954128265, 0.03313729166984558, -0.004639723803848028, 0.016811136156320572, -0.005725415889173746, -0.04367571696639061, -0.055323220789432526, -0.02507029101252556, -0.020119842141866684, -0.06327416002750397, 0.024607263505458832, -0.02087121456861496, 0.0483168289065361, -0.03345103561878204, 0.021093659102916718, 0.053198982030153275, -0.005467712879180908, -0.038124844431877136, 0.043613482266664505, -0.010968693532049656, -0.034848153591156006, 0.06727546453475952, 0.004205969627946615, -0.024973703548312187, 0.020793497562408447, 0.09246918559074402, -0.0032593123614788055, 0.0880250483751297, 0.013292582705616951, -0.0024185655638575554, 0.06469374895095825, -0.001982766669243574, 0.020621713250875473, -0.023354260250926018, 0.021754775196313858, 0.00301328650675714, 0.00943506695330143, 0.032628122717142105, 0.05219252407550812, -0.02315131574869156, 0.003922703210264444, -0.02907179482281208, 0.01733476296067238, 0.01915876381099224, 0.01555671077221632, 0.0008861826499924064, -0.2625921368598938, 0.012458928860723972, 0.04215117543935776, 0.06333483755588531, -0.00628511281684041, 0.02642420493066311, 0.03408188372850418, -0.05658721178770065, -0.03583701699972153, -0.030239194631576538, -0.026303745806217194, 0.0043772198259830475, 0.03461454063653946, -0.01096135750412941, 0.014561649411916733, -0.041669730097055435, 0.04809928312897682, -0.023925093933939934, 0.008234625682234764, 0.011227298527956009, 0.044358279556035995, 0.003641706658527255, 0.18242616951465607, -0.057855114340782166, 0.031302645802497864, -0.013209431432187557, 0.0481971837580204, -0.04156627878546715, 0.07460162043571472, 0.03250816464424133, 0.0421583391726017, -0.01753741130232811, 0.10452393442392349, -0.02697390876710415, 0.033012669533491135, -0.013701790012419224, -0.02849799580872059, 0.022308310493826866, 0.029247833415865898, -0.03766214847564697, 0.0048438566736876965, 0.03437170758843422, -0.05815732851624489, 0.024209022521972656, 0.04736150801181793, 0.03891650214791298, 0.054769765585660934, -0.011711806058883667, -0.03863530606031418, 0.0035942227113991976, -0.04592399299144745, 0.009070943109691143, -0.03145172446966171, -0.03351830318570137, 0.03713351488113403, -0.0014810060383751988, -0.014995775185525417, 0.01798103377223015, 0.03096775896847248, 0.01698373816907406, 0.0024855013471096754, 0.011279241181910038, 0.0829957127571106, 0.06900117546319962, 0.018141156062483788 ]
[ -0.007734399288892746, 0.01300740335136652, 0.0007921200012788177, 0.00021269000717438757, -0.010550517588853836, -0.03830120339989662, 0.0054795024916529655, 0.015025339089334011, -0.033181458711624146, -0.05323103815317154, -0.017094114795327187, 0.015721583738923073, 0.029170585796236992, -0.011762150563299656, 0.05118374153971672, -0.00670307083055377, -0.03626826032996178, -0.024971919134259224, 0.012866576202213764, -0.020569996908307076, -0.025058533996343613, 0.07172029465436935, 0.010342449881136417, 0.0207771435379982, -0.017593808472156525, 0.011804609559476376, -0.023799283429980278, -0.010252241976559162, 0.023057663813233376, -0.12286512553691864, -0.015897544100880623, -0.02118503861129284, 0.0005321985227055848, 0.0013459293404594064, 0.0056173489429056644, 0.024288682267069817, -0.011430971324443817, -0.008855901658535004, 0.007135413121432066, 0.016531314700841904, -0.042560890316963196, -0.008989430963993073, -0.012458921410143375, -0.004478052258491516, -0.014756353572010994, 0.0073194317519664764, -0.031626492738723755, 0.0036860040854662657, 0.003849282395094633, -0.027703994885087013, -0.023054039105772972, 0.010207204148173332, -0.03206149488687515, -0.005221983417868614, 0.024477694183588028, -0.01101698912680149, 0.010747033171355724, -0.022232864052057266, -0.010987445712089539, -0.042906321585178375, 0.004180262330919504, 0.030653048306703568, -0.023921290412545204, -0.020840249955654144, 0.014304087497293949, -0.025169290602207184, -0.018090398982167244, -0.0004039968771394342, 0.0012994382996112108, 0.006216785870492458, -0.016906730830669403, -0.03867560625076294, -0.004815681837499142, -0.01720123551785946, -0.004740084521472454, -0.006317019462585449, 0.0030461722053587437, -0.054563868790864944, -0.0012369086034595966, -0.0015161811606958508, -0.009752891026437283, 0.00047850384726189077, 0.01715480349957943, 0.025673821568489075, 0.02250940166413784, -0.03888431936502457, -0.010001817718148232, 0.01948348805308342, 0.0014041592366993427, 0.005389327183365822, -0.017149168998003006, -0.03078763373196125, 0.00539608858525753, 0.03243834897875786, -0.09634725749492645, 0.02449936978518963, 0.004130042158067226, -0.01144985482096672, -0.007961280643939972, 0.8548608422279358, -0.019169310107827187, 0.008209394291043282, 0.055126745253801346, 0.009478775784373283, 0.04162624850869179, 0.02414786070585251, 0.00939176045358181, -0.029146810993552208, 0.017716048285365105, -0.057907722890377045, 0.011148819699883461, -0.029157115146517754, 0.027490833774209023, 0.013107812963426113, 0.0338144414126873, 0.02389296516776085, 0.030207237228751183, 0.029606902971863747, 0.008061903528869152, 0.03510177507996559, 0.013436056673526764, -0.016431566327810287, 0.015648402273654938, 0.019195040687918663, 0.010428022593259811, -0.16581539809703827, -0.011035269126296043, -7.117116505077944e-33, 0.01808360032737255, -0.0233201552182436, 0.009785092435777187, -0.015916313976049423, 0.03527778014540672, -0.0009189644479192793, 0.0009449859499000013, 0.023181669414043427, -0.011386888101696968, -0.03316561132669449, 0.04170121252536774, -0.0029703322798013687, -0.0006294481572695076, 0.012269945815205574, 0.027513034641742706, 0.009608983993530273, 0.016769668087363243, 0.06528272479772568, -0.009769863449037075, 0.02197018265724182, 0.04686950892210007, 0.004297519102692604, 0.012047781608998775, 0.008991080336272717, -0.008788639679551125, 0.02094912901520729, 0.00982191413640976, 0.020986340939998627, -0.0005833992618136108, -0.05141492933034897, -0.06619727611541748, -0.0015820013359189034, 0.01111940760165453, -0.02925456501543522, 0.008789785206317902, -0.04989302530884743, -0.0028900799807161093, 0.00537440599873662, -0.004571415483951569, -0.016414819285273552, -0.035797931253910065, 0.0025666216388344765, -0.013302127830684185, -0.03060576133430004, -0.012819183990359306, 0.003193644341081381, -0.028613360598683357, 0.03138255700469017, 0.009820496663451195, 0.030231475830078125, 0.04559909179806709, 0.002894798992201686, 0.0017504000570625067, 0.026067158207297325, -0.005922792945057154, -0.008758488111197948, -0.020589172840118408, 0.022799089550971985, 0.01328249741345644, -0.01634874939918518, 0.021052762866020203, -0.013672889210283756, 0.014441276900470257, 0.04442819580435753, 0.017180342227220535, 0.012272552587091923, 0.03507692366838455, 0.04322108253836632, 0.05377361923456192, 0.012639705091714859, -0.07181215286254883, 0.02113528735935688, -0.02990713156759739, -0.04551426321268082, 0.006031019147485495, -0.0334942489862442, -0.007702366448938847, -0.021954407915472984, -0.0028872513212263584, 0.04296646639704704, 0.017350174486637115, 0.009345853701233864, -0.00403607590124011, 0.006941566243767738, -0.017099035903811455, 0.00771404430270195, 0.03876939415931702, 0.003620927454903722, -0.02356095425784588, -0.018035680055618286, -0.004042226821184158, -0.0038507685530930758, -0.011493909172713757, -0.029372354969382286, -0.0055151041597127914, 6.391134867429945e-33, 0.018030241131782532, -0.02478867769241333, -0.028254035860300064, 0.00243237498216331, 0.013436921872198582, -0.04823054373264313, 0.02781863324344158, 0.03090752847492695, -0.016591176390647888, 0.025053687393665314, -0.0207210723310709, -0.0005682131741195917, 0.007561215665191412, 0.010806853882968426, 0.03270500525832176, 0.03389708697795868, -0.0031334287486970425, 0.031419042497873306, 0.00016301896539516747, -0.007415642961859703, -0.016926322132349014, 0.006028767209500074, 0.014110316522419453, 0.0028480233158916235, 0.0035165601875633, 0.040125370025634766, -0.02057955600321293, -0.026361988857388496, 0.0017119431868195534, 0.011700144037604332, -0.02082168124616146, -0.001137053593993187, 0.007283348590135574, -0.018272683024406433, -0.016335884109139442, 0.03151337429881096, 0.003876268630847335, -0.004989932756870985, 0.00013993433094583452, -0.004461640492081642, 0.0576121024787426, 0.03795577958226204, 0.015061585232615471, 0.032942403107881546, -0.006737324874848127, 0.005527392029762268, 0.004280696623027325, -0.007036795374006033, 0.0030407882295548916, -0.007379448972642422, 0.016176344826817513, 0.021664926782250404, 0.003330314764752984, 0.0174460019916296, -0.026480723172426224, -0.01779812201857567, 0.002938874764367938, 0.03417831286787987, -0.0739707425236702, 0.004342797212302685, -0.04198458418250084, -0.005673046689480543, -0.021986091509461403, 0.012672074139118195, -0.0077164615504443645, -0.012600207701325417, -0.0910995677113533, -0.00906691700220108, -0.0033009659964591265, -0.02477550134062767, -0.008318139240145683, -0.008367756381630898, -0.0046126823872327805, 0.0289762020111084, -0.02630949765443802, 0.014193559065461159, -0.007009555120021105, 0.0076788864098489285, -0.015795452520251274, 0.04151306673884392, 0.04344100505113602, -0.033777497708797455, 0.011178200133144855, 0.025618650019168854, -0.031262900680303574, -0.0002592026721686125, -0.02334497682750225, 0.0022221433464437723, 0.019033439457416534, -0.032612670212984085, 0.011135658249258995, -0.005467771552503109, -0.000636952870991081, 0.0018079814035445452, 0.011359596624970436, -1.2773290869461107e-8, -0.02838326245546341, 0.020113926380872726, -0.02053685300052166, 0.05204452946782112, 0.020857160910964012, 0.011241537518799305, -0.03361931070685387, -0.010302368551492691, -0.010268730111420155, 0.008977530524134636, 0.02036384306848049, -0.015826791524887085, -0.03230033814907074, 0.005522073712199926, 0.01363359484821558, -0.021554330363869667, 0.013420701958239079, 0.004330572206526995, 0.020487839356064796, 0.0015538278967142105, -0.01460288930684328, 0.025182034820318222, 0.004276982508599758, -0.003919394686818123, -0.004564901813864708, -0.002353021875023842, 0.04149650037288666, -0.08450160920619965, 0.003344777273014188, 0.005175591912120581, 0.02588554657995701, -0.04893277958035469, -0.03550990670919418, 0.0025704537983983755, 0.0017659440636634827, -0.033730268478393555, -0.015549748204648495, -0.01821872778236866, 0.015970749780535698, 0.019590357318520546, -0.024882882833480835, -0.002277747495099902, -0.012601285241544247, -0.03466091677546501, -0.018713613972067833, -0.04548351466655731, -0.019119298085570335, 0.0022031411062926054, 0.013524274341762066, -0.02342049404978752, 0.009683264419436455, -0.007611192297190428, 0.009889199398458004, 0.002874546218663454, 0.0263137836009264, 0.03201211988925934, 0.0023456786293536425, 0.004084180574864149, -0.0389147587120533, 0.006723535247147083, 0.03433796390891075, 0.006512067746371031, -0.005933320615440607, -0.007847912609577179 ]
python-pattern-matching-match-case
https://markhneedham.com/blog/2023/05/09/python-pattern-matching-match-case
false
2023-05-31 02:44:37
Debezium: Capture changes from MySQL
[ "debezium", "til" ]
[ "Debezium" ]
I've been working on a Real-Time Analytics https://odsc.com/speakers/building-a-real-time-analytics-application-for-a-pizza-delivery-service/[workshop that I'm going to be presenting^] at the ODSC Europe conference in June 2023 and I wanted to have Debezium publish records from a MySQL database without including the schema. I'm using the `debezium/connect:2.3` Docker image to run Debezium locally and I have a MySQL database running with the hostname `mysql` on port `3306`. Below is the way that I configured this: [source, bash] ---- curl -X PUT \ -H "Content-Type:application/json" \ http://localhost:8083/connectors/mysql/config \ -d '{ "connector.class": "io.debezium.connector.mysql.MySqlConnector", "database.hostname": "mysql", "database.port": 3306, "database.user": "debezium", "database.password": "dbz", "database.server.name": "mysql", "database.server.id": "223344", "database.allowPublicKeyRetrieval": true, "database.history.kafka.bootstrap.servers": "kafka:9092", "database.history.kafka.topic": "mysql-history", "schema.history.internal.kafka.bootstrap.servers": "kafka:9092", "schema.history.internal.kafka.topic": "mysql-schema-history", "database.include.list": "pizzashop", "time.precision.mode": "connect", "topic.prefix": "mysql", "include.schema.changes": false }' ---- My database `pizzashop` contains the tables `products` and `users`, which will map to the following Kafka topics: * `products` -> `mysql.pizzashop.products` * `users` -> `mysql.pizzashop.users` We can use `kcat` to see the messages published to these topics: [source, bash] ---- kcat -C -b localhost:29092 -t mysql.pizzashop.users -c1 -u | jq ---- .Output [source, json] ---- { "before": null, "after": { "id": 1, "first_name": "Kismat", "last_name": "Shroff", "email": "drishyamallick@hotmail.com", "residence": "575, Edwin Circle, Bahraich-255519", "lat": "TYu5Xg==", "lon": "Ac6oUak=", "created_at": "2023-05-31T08:44:19Z", "updated_at": 1685522659000 }, "source": { "version": "2.3.0.Beta1", "connector": "mysql", "name": "mysql", "ts_ms": 1685524951000, "snapshot": "first_in_data_collection", "db": "pizzashop", "sequence": null, "table": "users", "server_id": 0, "gtid": null, "file": "binlog.000002", "pos": 156, "row": 0, "thread": null, "query": null }, "op": "r", "ts_ms": 1685524951843, "transaction": null } ---- We can then go to our MySQL table and update one of the products: [source, sql] ---- update products set name = 'Super Awesome Moroccan Pasta Pizza - Veg' where id = 1; ---- And then if we query the Kafka topic again, we'll see this output: .Output [source, json] ---- { "before": { "id": 1, "name": "Moroccan Spice Pasta Pizza - Veg", "description": "A pizza loaded with a spicy combination of Harissa sauce and delicious pasta.", "category": "veg pizzas", "price": 335, "image": "https://www.dominos.co.in//files/items/MoroccanSpicePPVG_N.jpg", "created_at": "2023-05-31T08:44:19Z", "updated_at": 1685522659000 }, "after": { "id": 1, "name": "Super Awesome Moroccan Pasta Pizza - Veg", "description": "A pizza loaded with a spicy combination of Harissa sauce and delicious pasta.", "category": "veg pizzas", "price": 335, "image": "https://www.dominos.co.in//files/items/MoroccanSpicePPVG_N.jpg", "created_at": "2023-05-31T08:44:19Z", "updated_at": 1685527662000 }, "source": { "version": "2.3.0.Beta1", "connector": "mysql", "name": "mysql", "ts_ms": 1685527662000, "snapshot": "false", "db": "pizzashop", "sequence": null, "table": "products", "server_id": 1, "gtid": null, "file": "binlog.000002", "pos": 414, "row": 0, "thread": 4714, "query": null }, "op": "u", "ts_ms": 1685527691344, "transaction": null } ---- Let's now delete one record: [source, sql] ---- DELETE FROM pizzashop.products WHERE id =1; ---- And back to Kafka: .Output [source, json] ---- { "before": { "id": 1, "name": "Super Awesome Moroccan Pasta Pizza - Veg", "description": "A pizza loaded with a spicy combination of Harissa sauce and delicious pasta.", "category": "veg pizzas", "price": 335, "image": "https://www.dominos.co.in//files/items/MoroccanSpicePPVG_N.jpg", "created_at": "2023-05-31T08:44:19Z", "updated_at": 1685527662000 }, "after": null, "source": { "version": "2.3.0.Beta1", "connector": "mysql", "name": "mysql", "ts_ms": 1685527882000, "snapshot": "false", "db": "pizzashop", "sequence": null, "table": "products", "server_id": 1, "gtid": null, "file": "binlog.000002", "pos": 1143, "row": 0, "thread": 4868, "query": null }, "op": "d", "ts_ms": 1685527882035, "transaction": null } ----
In this post we'll learn how to use Debezium to capture records added, updated, and deleted from a MySQL database.
uploads/2023/02/dbz-banner.png
[ -0.02104264497756958, 0.004954888019710779, -0.01910741627216339, 0.0442059300839901, 0.11408112198114395, 0.0010222851997241378, 0.003692033002153039, 0.07149000465869904, 0.015934551134705544, -0.013185828924179077, -0.014133580960333347, -0.010869134217500687, -0.06163034960627556, 0.04874052852392197, 0.014455028809607029, 0.05839492753148079, 0.08519544452428818, 0.003906417638063431, 0.005846681073307991, 0.007635044399648905, 0.04098336398601532, 0.034043505787849426, 0.0073920260183513165, 0.054793547838926315, 0.031878575682640076, 0.028901638463139534, 0.020108772441744804, 0.0004399819008540362, -0.06042187288403511, -0.003430943237617612, 0.026576440781354904, -0.021420234814286232, -0.00008244422497227788, -0.004797882866114378, 0.031086355447769165, 0.006966787856072187, 0.0015905079199001193, 0.026712480932474136, -0.006052464712411165, 0.01804807409644127, -0.094962939620018, 0.03999863192439079, -0.00629506167024374, 0.0009800320258364081, -0.038764432072639465, 0.03440455347299576, -0.043392471969127655, 0.02069866470992565, 0.0007498172926716506, -0.007348623126745224, -0.04611949250102043, 0.031023841351270676, -0.022308874875307083, 0.04424228519201279, 0.002432703971862793, 0.04810982197523117, -0.0347275473177433, -0.06921177357435226, 0.011142459698021412, -0.04103192314505577, 0.0019892605487257242, -0.01213768869638443, 0.021133344620466232, 0.026310482993721962, 0.015605847351253033, -0.024308927357196808, -0.01371217891573906, 0.03946475312113762, -0.005500794854015112, -0.01198694109916687, 0.020307153463363647, 0.00554451160132885, -0.016565250232815742, -0.024527963250875473, 0.02107071690261364, -0.03224266320466995, -0.00523232901468873, 0.04742937162518501, 0.038053590804338455, 0.054213158786296844, -0.02257601171731949, -0.034311018884181976, 0.01704695075750351, 0.018931156024336815, -0.0006229900172911584, -0.058410096913576126, -0.05055973306298256, -0.012354716658592224, -0.03688160330057144, 0.05518501624464989, 0.01827130652964115, -0.03449946641921997, 0.02248724177479744, 0.008912847377359867, -0.025655105710029602, 0.02952832356095314, 0.02030905894935131, 0.005724675487726927, -0.0010447298409417272, -0.025613347068428993, -0.037483856081962585, -0.00624240143224597, 0.009707956574857235, 0.026806872338056564, -0.071855828166008, -0.009582151658833027, -0.042697176337242126, -0.015122001990675926, -0.005141396075487137, 0.010636542923748493, -0.010952834971249104, -0.0076685757376253605, 0.011823564767837524, 0.01026503648608923, -0.07234399020671844, 0.07453617453575134, 0.006838464643806219, -0.07305164635181427, 0.014340936206281185, -0.010605968534946442, 0.06255655735731125, 0.03436177968978882, -0.025360295549035072, 0.054356615990400314, -0.0203358456492424, 0.0008585681207478046, -0.011266433633863926, 0.0597480833530426, -0.015653682872653008, -0.07373686134815216, -0.02029058337211609, 0.05659741908311844, 0.006193907931447029, 0.011585072614252567, -0.013583892025053501, -0.013304820284247398, 0.017438745126128197, 0.02060728706419468, 0.0734548270702362, 0.03899306431412697, -0.005794350989162922, -0.06195561960339546, -0.014167902059853077, 0.009557121433317661, 0.030555259436368942, 0.005991979967802763, 0.01929035596549511, -0.051676519215106964, -0.020441381260752678, 0.011682873591780663, 0.013952184468507767, 0.03566383570432663, 0.0401727519929409, -0.03874007612466812, 0.007703783456236124, 0.08114523440599442, 0.009196666069328785, -0.014763313345611095, -0.023526648059487343, 0.0006046209600754082, 0.014127114787697792, 0.024945398792624474, 0.017230354249477386, 0.04741246625781059, 0.005741360131651163, -0.036487385630607605, 0.022695669904351234, 0.024863092228770256, -0.01967526040971279, 0.005107535980641842, -0.06238580495119095, -0.05589589104056358, 0.05749538540840149, -0.014990814961493015, 0.017292989417910576, 0.05319521203637123, 0.09607336670160294, 0.028892382979393005, 0.015696290880441666, 0.0069776494055986404, -0.0850052684545517, 0.019581811502575874, 0.0018439998384565115, 0.0021009028423577547, 0.053121063858270645, -0.003041187534108758, 0.05100973695516586, 0.021693628281354904, 0.029893560335040092, 0.03877142444252968, -0.08209679275751114, -0.07427221536636353, -0.008308496326208115, 0.003132297657430172, 0.04571325331926346, -0.055860310792922974, 0.0022498576436191797, 0.06337809562683105, 0.008475878275930882, 0.037477970123291016, 0.0019614698830991983, 0.011677941307425499, 0.04083917289972305, -0.06270857900381088, -0.05383232980966568, 0.048440106213092804, 0.005672698374837637, -0.018110813573002815, -0.030542034655809402, -0.004369803704321384, -0.042311567813158035, -0.03490668907761574, 0.02787221223115921, -0.012113184668123722, 0.04260433837771416, 0.009133795276284218, 0.03538346290588379, -0.02169618010520935, 0.0155100766569376, -0.0366971530020237, 0.07333489507436752, 0.026190919801592827, -0.042445503175258636, -0.014415481127798557, -0.03721604496240616, 0.11991842091083527, 0.056735146790742874, -0.015843303874135017, -0.03245201334357262, 0.05527311936020851, 0.012943331152200699, -0.03065432235598564, -0.0037628719583153725, -0.026458827778697014, 0.0320802703499794, -0.006646219175308943, -0.04081067070364952, -0.037962280213832855, 0.009120000526309013, -0.003201819024980068, 0.03718886524438858, 0.05253459885716438, -0.03425808995962143, 0.07335323095321655, 0.02581951394677162, -0.016684744507074356, -0.0016208374872803688, -0.01769806630909443, -0.054930783808231354, 0.004990990273654461, -0.010443057864904404, -0.007274475414305925, 0.04166462644934654, -0.04550188407301903, 0.00203004595823586, -0.023502951487898827, -0.04091589152812958, 0.06355418264865875, 0.012419108301401138, 0.032058797776699066, -0.03494434431195259, 0.04540332406759262, -0.03698338195681572, 0.024653468281030655, -0.011529817245900631, -0.022682996466755867, -0.018017606809735298, 0.004219735972583294, 0.0064515299163758755, 0.02502521127462387, 0.041382938623428345, -0.013325521722435951, 0.017610501497983932, -0.006550455931574106, 0.005472064949572086, 0.018280314281582832, 0.009710418060421944, 0.010291538201272488, 0.006661097053438425, -0.021749641746282578, -0.028096824884414673, 0.05648626387119293, -0.07457239925861359, -0.01197072584182024, 0.015985798090696335, -0.06369078159332275, 0.054228637367486954, -0.0713944286108017, -0.032053250819444656, -0.03171106055378914, 0.03483789041638374, 0.04537781700491905, 0.015752052888274193, -0.012278962880373001, 0.06532444059848785, 0.012651913799345493, -0.0062567018903791904, 0.001328177284449339, 0.0005884594283998013, 0.030883414670825005, -0.029974719509482384, -0.0033602137118577957, 0.03903922811150551, -0.004954339470714331, -0.008150485344231129, -0.07886272668838501, 0.02508416771888733, -0.021702274680137634, -0.27307915687561035, 0.057579804211854935, -0.03143133223056793, -0.027689129114151, 0.04152321070432663, 0.0069258930161595345, 0.006175902206450701, -0.03386250138282776, -0.013320851139724255, -0.030615072697401047, -0.02818133868277073, -0.04432987794280052, -0.007098688744008541, 0.044079236686229706, 0.01821201667189598, 0.02987331710755825, -0.012191686779260635, -0.029795560985803604, -0.020595241338014603, -0.009266910143196583, -0.00494087440893054, -0.0623214989900589, -0.010120626538991928, 0.02407597377896309, 0.036898933351039886, 0.048388246446847916, -0.09443813562393188, 0.04148862138390541, -0.017615213990211487, -0.020089996978640556, 0.01655195839703083, -0.026578258723020554, -0.0032115280628204346, 0.0003891905944328755, -0.025373509153723717, -0.00950133427977562, 0.020870504900813103, -0.01612561009824276, 0.017362631857395172, -0.004269007593393326, -0.02126445062458515, -0.02739977091550827, -0.0006638035993091762, -0.03094499185681343, 0.10588669776916504, 0.004980177152901888, -0.09248620271682739, 0.007943341508507729, -0.019721100106835365, 0.05198671668767929, -0.01939215324819088, -0.026782860979437828, -0.025033889338374138, 0.053643785417079926, -0.014726410619914532, 0.012095769867300987, -0.009594311937689781, -0.0003071870596613735, -0.03638327121734619, -0.031000005081295967, 0.00951480120420456, -0.021133845672011375, -0.00948275625705719, -0.05379922688007355, -0.012367743998765945, -0.05183810740709305, -0.0482422336935997, -0.00244889035820961, 0.07990093529224396, 0.03611725568771362, -0.03184681758284569, -0.001975877908989787, -0.025190263986587524, -0.11231052875518799, -0.002642684616148472, -0.031866855919361115, -0.0364031083881855, -0.03569411113858223, -0.002215517917647958, 0.06818683445453644, 0.01005243044346571, -0.02038295567035675, 0.01343793235719204, 0.005622160620987415, 0.02363356202840805, -0.024193545803427696, 0.014853035099804401, 0.003376611042767763, -0.04202471673488617, -0.01659075729548931, 0.053038544952869415, -0.03661653771996498, 0.005333041772246361, -0.050508562475442886, -0.018701575696468353, 0.058076269924640656, -0.03388609364628792, -0.00825855229049921, -0.0031294228974729776, 0.042402107268571854, 0.02860780619084835, -0.03588274121284485, -0.0128576485440135, -0.04194645211100578, 0.007721947506070137, -0.018205195665359497, -0.052971433848142624, 0.01581445150077343, 0.02049921825528145, 0.03180868551135063, -0.008669102564454079, -0.024689331650733948, 0.029787449166178703, -0.07764116674661636, -0.02247815951704979, 0.001281909761019051, 0.024865295737981796, 0.02631562575697899, 0.02388819307088852, -0.021262377500534058, -0.04703613743185997, 0.015445701777935028, 0.02437632903456688, -0.023790689185261726, -0.038219232112169266, -0.04458894208073616, -0.016173971816897392, -0.010338235646486282, 0.02636934258043766, 0.004350354894995689, -0.00244238693267107, 0.009299302473664284, 0.037614211440086365, -0.011646045371890068, 0.07132557779550552, -0.018606040626764297, -0.04891413077712059, -0.045464515686035156, 0.02017161436378956, 0.025173237547278404, -0.0228226650506258, -0.015665387734770775, 0.024096108973026276, 0.039314549416303635, 0.03299803286790848, 0.029262833297252655, 0.03190608322620392, 0.0014970686752349138, 0.020603274926543236, 0.004739885684102774, 0.012975115329027176, -0.02133532427251339, 0.014216694980859756, -0.038540083914995193, -0.012845887802541256, 0.014526830054819584, 0.06414403021335602, -0.003590918844565749, -0.009110912680625916, -0.041272908449172974, -0.009152489714324474, -0.06632223725318909, -0.03605179116129875, 0.0018528802320361137, -0.0061611030250787735, 0.0601525604724884, 0.003962296061217785, 0.01617533341050148, 0.019577275961637497, -0.008730207569897175, -0.023141007870435715, -0.009147224016487598, -0.04689008742570877, 0.01464578416198492, 0.010082649998366833, -0.021091405302286148, 0.003629464888945222, 0.02005607634782791, 0.05307050049304962, -0.023800646886229515, -0.002970110159367323, 0.0033451879862695932, 0.0009701804956421256, 0.008725622668862343, 0.05076294392347336, 0.05172042176127434, -0.029222633689641953, -0.010994273237884045, -0.008472221903502941, -0.019576892256736755, -0.002092879731208086, 0.018030500039458275, -0.0163371954113245, 0.0008879461674951017, 0.0004009110270999372, -0.06801275908946991, 0.0594930537045002, 0.010775068774819374, -0.0011012005852535367, 0.00013571378076449037, 0.010533958673477173, 0.015447942540049553, -0.0291738323867321, 0.0415508858859539, 0.06364710628986359, -0.04949025437235832, 0.010958163067698479, -0.008692272938787937, 0.024321766570210457, -0.006121065933257341, 0.025522660464048386, -0.03677566722035408, -0.010751268826425076, 0.022833339869976044, -0.004722148180007935, -0.035273078829050064, -0.021385496482253075, -0.005330050829797983, 0.0037410950753837824, 0.029121311381459236, 0.02333657629787922, 0.0028394211549311876, -0.007558126468211412, -0.009010578505694866, -0.024861404672265053, 0.05558352172374725, -0.00987925287336111, 0.019947873428463936, -0.006127732340246439, 0.0035328143276274204, -0.0035352909471839666, -0.03910510614514351, 0.02490057237446308, -0.016301054507493973, -0.033401332795619965, 0.028159450739622116, -0.03010457567870617, 0.005151125602424145, -0.007632764987647533, 0.05856820195913315, 0.009943712502717972, -0.005505502223968506, -0.03262048587203026, 0.018926842138171196, -0.02907542698085308, 0.016771463677287102, -0.0051626889035105705, 0.017296770587563515, 0.027799179777503014, 0.013746095821261406, -0.034182533621788025, 0.011582541279494762, -0.007410410325974226, -0.04577441141009331, 0.050561245530843735, -0.051403794437646866, -0.03413565084338188, -0.0140931261703372, -0.09964941442012787, -0.006938228849321604, 0.01670050621032715, 0.011939818039536476, -0.05143887922167778, 0.06677980720996857, 0.029339266940951347, 0.018628716468811035, 0.0433448851108551, 0.007610245142132044, 0.01363058015704155, -0.023375559598207474, -0.03463209792971611, -0.07331771403551102, 0.02039526402950287, 0.029454302042722702, -0.015822846442461014, 0.045423634350299835, 0.016965219751000404, -0.053833119571208954, 0.017569733783602715, -0.062411095947027206, -0.029713723808526993, 0.031162351369857788, -0.03657478094100952, -0.0069338660687208176, -0.01064036414027214, -0.06327853351831436, 0.005496237892657518, 0.03780832514166832, -0.03320677578449249, -0.025120282545685768, -0.011499793268740177, 0.05145281180739403, 0.01949422061443329, 0.02762744016945362, -0.023292001336812973, -0.01843133009970188, 0.08897925913333893, 0.0045464239083230495, 0.03188461810350418, 0.0546991191804409, -0.02325974777340889, 0.04316599294543266, 0.004879019223153591, 0.005258393008261919, 0.024833759292960167, 0.023183288052678108, -0.030156923457980156, -0.032314401119947433, 0.03854772076010704, -0.010039282031357288, 0.029151275753974915, -0.052981823682785034, 0.0643659234046936, 0.014638449065387249, -0.047282662242650986, -0.07275135070085526, 0.03358009457588196, -0.031247705221176147, -0.061127472668886185, -0.038980334997177124, 0.023327039554715157, -0.05455208942294121, 0.055122267454862595, -0.01729447953402996, 0.025956757366657257, 0.046534858644008636, -0.010378716513514519, 0.012795209884643555, 0.009854490868747234, 0.07362663000822067, 0.07470047473907471, 0.02898823842406273, 0.002139134332537651, 0.06346962600946426, -0.0223051980137825, -0.02432219497859478, -0.026447530835866928, -0.01978079415857792, -0.03556118533015251, -0.013664692640304565, -0.004100090824067593, 0.049342554062604904, -0.028016701340675354, 0.06835847347974777, -0.012755823321640491, 0.0022589520085603, -0.011165502481162548, 0.028125010430812836, 0.03323303535580635, 0.04115947335958481, -0.001884570810943842, 0.030536700040102005, -0.010932483710348606, -0.05592997372150421, 0.01370364148169756, -0.019527612254023552, -0.04808599129319191, 0.015542523935437202, -0.026852810755372047, 0.01706189289689064, 0.03202250972390175, 0.024123303592205048, 0.09287498891353607, -0.013186969794332981, 0.006932987831532955, 0.0073907505720853806, -0.010739563032984734, -0.046542249619960785, 0.00823508482426405, -0.018930627033114433, -0.024948693811893463, -0.016016434878110886, -0.06667941808700562, 0.02117709070444107, -0.020630622282624245, -0.04537346959114075, 0.022606581449508667, -0.00443912111222744, -0.005745649803429842, 0.03394961729645729, -0.010564927943050861, -0.04294658079743385, -0.041757021099328995, -0.064574234187603, -0.027106530964374542, -0.07319238036870956, -0.0011491021141409874, 0.0005348609993234277, -0.006691354792565107, -0.02792978659272194, -0.00794323068112135, -0.011835851706564426, 0.002844188828021288, 0.01620878092944622, -0.036205120384693146, -0.039048682898283005, 0.02764553390443325, -0.020399706438183784, -0.010504338890314102, 0.015749255195260048, 0.06594417244195938, 0.010508767329156399, -0.0053258370608091354, -0.017708884552121162, 0.007181824184954166, 0.029496680945158005, -0.030215581879019737, 0.004989930894225836, -0.0769146978855133, 0.04807643964886665, 0.03605617955327034, -0.003955257125198841, -0.06513641774654388, 0.02397199533879757, 0.038263045251369476, 0.006531816907227039, 0.04504894092679024, -0.038433343172073364, 0.026374444365501404, -0.036538831889629364, -0.03566399961709976, -0.01080495398491621, 0.023743649944663048, 0.03218374773859978, -0.006664735730737448, 0.08997117727994919, 0.06396304070949554, -0.022199606522917747, -0.0326245054602623, -0.00837626215070486, 0.00657946802675724, -0.016176922246813774, 0.005865151062607765, -0.017091311514377594, -0.0704970732331276, -0.07574184238910675, -0.030575774610042572, 0.016718313097953796, -0.02947034314274788, -0.04561644792556763, 0.004244024399667978, 0.02376464568078518, -0.037268053740262985, -0.002076599048450589, -0.03279087319970131, 0.009660406038165092, -0.03140152245759964, -0.0381203219294548, -0.027701392769813538, 0.023037826642394066, 0.01952880062162876, -0.035394422709941864, 0.02716265805065632, -0.05321600288152695, -0.00879006925970316, -0.012106799520552158, 0.04461142048239708, 0.01891809143126011, -0.00878870114684105, -0.0046764337457716465 ]
[ -0.06285931915044785, -0.0325235091149807, -0.017602378502488136, -0.033805251121520996, 0.0626489594578743, -0.0619000606238842, -0.05399872362613678, 0.009524074383080006, 0.012753122486174107, -0.0006847339682281017, 0.0126597685739398, -0.029307665303349495, 0.013164800591766834, -0.042717013508081436, 0.07225023955106735, -0.012181757017970085, -0.008750740438699722, -0.044060252606868744, -0.025916673243045807, 0.010481378063559532, -0.009060025215148926, -0.04998015984892845, -0.05708610638976097, -0.0353395976126194, -0.012721985578536987, 0.061333999037742615, 0.048955950886011124, -0.02267596125602722, -0.042143408209085464, -0.19024275243282318, 0.029481295496225357, -0.021205760538578033, 0.0026490846648812294, -0.03483821079134941, 0.015137946233153343, 0.009247398935258389, 0.036211349070072174, -0.002147493651136756, 0.007702862378209829, 0.059139352291822433, 0.05369136109948158, 0.004587156232446432, -0.028667394071817398, 0.0018572136759757996, 0.02516046166419983, -0.03487212955951691, 0.002096242504194379, 0.0021029841154813766, 0.0135467778891325, 0.025741782039403915, -0.04661896452307701, 0.03313380852341652, -0.020779991522431374, -0.02495444566011429, 0.003064283635467291, 0.03987102583050728, 0.046027857810258865, 0.03727922961115837, 0.005707623902708292, 0.03548578917980194, 0.03551843389868736, -0.012692398391664028, -0.1408681869506836, 0.10075396299362183, -0.02589445933699608, 0.05652725696563721, -0.04979291558265686, -0.04718644544482231, -0.004271873272955418, 0.05384824052453041, 0.004944297950714827, -0.027542807161808014, -0.023061567917466164, 0.09563572704792023, 0.02634310908615589, -0.023885436356067657, -0.0014642192982137203, 0.03294099494814873, 0.017017478123307228, -0.023166866973042488, -0.05214555934071541, 0.0084511274471879, -0.03299369290471077, -0.01012792345136404, -0.05846354365348816, 0.021656135097146034, -0.005761559586971998, 0.03842275217175484, 0.0047789146192371845, -0.0005082169664092362, 0.03145499527454376, -0.0505281500518322, 0.07067941874265671, 0.005102784838527441, -0.08502503484487534, -0.007727110758423805, -0.04706878215074539, 0.00793350487947464, -0.019359581172466278, 0.37733522057533264, -0.014914250932633877, -0.00666310777887702, 0.004177877679467201, 0.0442725233733654, -0.004365860018879175, -0.005509604699909687, -0.008328107185661793, -0.04588015377521515, 0.03575311228632927, -0.01348818652331829, 0.00787166878581047, -0.007780192885547876, 0.06338309496641159, -0.048334088176488876, 0.024056434631347656, 0.046704091131687164, 0.01693885773420334, 0.010956068523228168, -0.044650547206401825, 0.019613340497016907, 0.007648339960724115, 0.045057713985443115, 0.025205262005329132, 0.047047533094882965, 0.04945508763194084, 0.012820601463317871, 0.012363423593342304, 0.03769369050860405, 0.026209257543087006, 0.0186352226883173, 0.011020970530807972, -0.021786419674754143, -0.06731016933917999, -0.006797183305025101, -0.020134905353188515, 0.00041055824840441346, 0.028961798176169395, -0.020060108974575996, -0.0073063732124865055, 0.021065717563033104, -0.051413826644420624, -0.033503517508506775, 0.029362037777900696, -0.013205090537667274, -0.012809617444872856, 0.09828843176364899, 0.03256002441048622, -0.017651185393333435, -0.029648572206497192, -0.05281885713338852, -0.021754207089543343, 0.03543993830680847, 0.028102753683924675, -0.0397062748670578, 0.005787387024611235, 0.008252161554992199, 0.04226675629615784, 0.0005572010413743556, -0.06086162105202675, -0.0322212353348732, -0.024615805596113205, -0.0871405228972435, -0.005227759014815092, 0.09505870938301086, -0.004724436439573765, -0.11277387291193008, -0.037571679800748825, 0.02628285624086857, 0.02353588305413723, -0.06243173032999039, -0.0041341292671859264, 0.008872894570231438, -0.03866351768374443, -0.0006083722691982985, 0.04361193999648094, -0.01996084861457348, -0.007811008486896753, 0.020415227860212326, -0.0012895340332761407, 0.006438788026571274, 0.01951988972723484, 0.011060437187552452, -0.04421462491154671, -0.041496869176626205, -0.06206455081701279, -0.08549466729164124, -0.06659629195928574, -0.003717367071658373, -0.032700806856155396, -0.04324394091963768, -0.044470932334661484, 0.026074109598994255, -0.05282207578420639, 0.07278721034526825, 0.02928628958761692, -0.031886834651231766, 0.016827844083309174, 0.0412636362016201, 0.009397611021995544, -0.051444537937641144, 0.04917391389608383, 0.054086700081825256, -0.03842570632696152, 0.055558521300554276, -0.06425921618938446, 0.03560791537165642, 0.027936192229390144, -0.018816592171788216, 0.05619141086935997, -0.0038020487409085035, -0.03031153790652752, -0.009483295492827892, -0.04072985798120499, 0.028104379773139954, -0.013813863508403301, 0.013479987159371376, 0.00714529724791646, -0.005889675114303827, 0.024109574034810066, 0.03448047116398811, 0.00030610867543146014, 0.00264801480807364, 0.0037449554074555635, -0.3633064329624176, -0.021246330812573433, -0.030169308185577393, 0.019319115206599236, -0.03870302438735962, -0.060568876564502716, 0.0308933574706316, -0.026484902948141098, -0.008953260257840157, 0.0458284392952919, 0.09731821715831757, -0.020700857043266296, 0.02229321002960205, -0.0758993998169899, -0.030098404735326767, 0.03975364938378334, -0.034420475363731384, -0.04290012642741203, -0.03379029780626297, -0.006182788871228695, 0.0336374007165432, -0.029537148773670197, -0.02256910502910614, -0.03219698742032051, 0.018277741968631744, -0.01780061051249504, 0.1256372183561325, 0.030888134613633156, 0.066144660115242, -0.08984579145908356, 0.07312358170747757, 0.018575292080640793, 0.007003482431173325, -0.1163334771990776, -0.004920964129269123, -0.037267401814460754, -0.0007077680784277618, 0.013127010315656662, 0.005642026197165251, 0.004303595516830683, -0.07757759094238281, 0.038224074989557266, -0.03372791036963463, -0.07883676141500473, -0.016274742782115936, 0.013099631294608116, 0.011148139834403992, -0.0028572645969688892, -0.024842550978064537, 0.08986648172140121, 0.013041969388723373, -0.0014076868537813425, 0.044158246368169785, 0.0487162210047245, 0.01999322697520256, -0.02130391262471676, -0.07293274253606796, -0.048310909420251846, -0.001403840142302215, 0.03481307998299599, 0.026245135813951492, 0.06691001355648041, -0.0032339217141270638, -0.053830888122320175, 0.025915589183568954, -0.0026424697134643793, -0.003994177561253309, 0.015552282333374023, 0.07127856463193893, -0.04784523695707321, -0.023586256429553032, 0.06672153621912003, 0.016578562557697296, 0.0478191114962101, 0.0443730391561985, 0.06254881620407104, -0.0008593547390773892, 0.0013453778810799122, 0.028662769123911858, 0.014213227666914463, 0.04955798014998436, -0.020642951130867004, 0.06472151726484299, 0.024703389033675194, 0.017976338043808937, 0.08719192445278168, 0.011372012086212635, -0.011316951364278793, 0.04189353436231613, -0.020799901336431503, -0.04441934451460838, -0.0249215979129076, -0.031440041959285736, -0.06040097773075104, 0.05707652494311333, -0.0020522710401564837, -0.26832735538482666, 0.060365498065948486, 0.00600104033946991, 0.057039618492126465, 0.02129841223359108, 0.004767554812133312, 0.027013981714844704, -0.04629255458712578, -0.002604142762720585, -0.026113709434866905, 0.03502942621707916, 0.012864857912063599, 0.009229383431375027, -0.022544844076037407, 0.02825200743973255, 0.005051049403846264, 0.020191382616758347, 0.009288311004638672, 0.003948075696825981, 0.00783615093678236, 0.023355839774012566, -0.003179805586114526, 0.1513417661190033, 0.0728243887424469, -0.036271750926971436, 0.053804755210876465, -0.004618421196937561, 0.02967013418674469, 0.05587706342339516, 0.05741386488080025, -0.02429955266416073, 0.006209110375493765, 0.025929786264896393, 0.04382255673408508, 0.03225090727210045, -0.0631638914346695, -0.010492249391973019, 0.04493459686636925, 0.013376927934587002, -0.04099629819393158, -0.07362256944179535, 0.01215128879994154, -0.02884494513273239, 0.0496634840965271, 0.07299080491065979, -0.03919931873679161, -0.03117814101278782, -0.029205966740846634, -0.020278450101614, -0.02272849902510643, -0.012747950851917267, -0.07328705489635468, 0.006791295949369669, 0.03047219105064869, -0.0031317449174821377, 0.061132464557886124, 0.04993116483092308, 0.004484889097511768, 0.02390265464782715, 0.012058128602802753, -0.006467985920608044, -0.023792071267962456, 0.0778331533074379, -0.018956972286105156, -0.01316136121749878 ]
[ -0.01673293299973011, 0.025794129818677902, -0.04730275645852089, 0.0637393668293953, -0.012102818116545677, -0.02804974839091301, 0.027303192764520645, 0.004429604392498732, 0.00898224301636219, 0.003896840615198016, 0.0080017801374197, -0.008648524060845375, 0.05861961469054222, -0.017186501994729042, -0.010275713168084621, -0.00703013688325882, 0.04377938061952591, -0.006568888667970896, 0.03977139666676521, -0.0008688118541613221, -0.04343436285853386, 0.02953905053436756, 0.01164437085390091, -0.0045867301523685455, 0.020255111157894135, 0.03792215511202812, -0.030550196766853333, 0.04448641464114189, 0.017865896224975586, -0.12595829367637634, -0.022485334426164627, -0.01881156489253044, -0.007053699344396591, 0.004063683561980724, 0.029183128848671913, 0.006236638408154249, 0.04186830297112465, -0.029235603287816048, -0.012516943737864494, 0.0033065183088183403, 0.03807694464921951, -0.045617569237947464, 0.0044344752095639706, 0.005063622258603573, -0.02294076606631279, -0.04024862125515938, -0.08123872429132462, 0.016703622415661812, -0.028763050213456154, 0.01818852685391903, -0.049796443432569504, -0.0012660224456340075, 0.023449404165148735, 0.025121858343482018, 0.021260255947709084, 0.05983428284525871, -0.01984483003616333, 0.036873701959848404, -0.008713377639651299, 0.024490997195243835, 0.00820830836892128, 0.0021877086255699396, -0.03801802545785904, -0.009651590138673782, -0.027137454599142075, -0.023928247392177582, -0.0317327156662941, -0.015385676175355911, 0.00013282739382702857, 0.03011852316558361, 0.002336374018341303, 0.028176723048090935, -0.07703337073326111, -0.03997306525707245, -0.004299346357584, 0.007509668357670307, 0.03201989829540253, -0.01688569411635399, -0.03883770853281021, 0.005038290750235319, -0.047847650945186615, -0.020025698468089104, -0.001662886468693614, -0.040040671825408936, -0.04179011285305023, -0.018488718196749687, 0.025360165163874626, -0.0004266458563506603, 0.0048576402477920055, -0.026596667245030403, -0.017579952254891396, -0.00576820457354188, -0.008882379159331322, 0.010032079182565212, -0.08741976320743561, -0.028723562136292458, 0.0080758361145854, 0.0038827694952487946, -0.008523030206561089, 0.810789942741394, 0.008424396626651287, 0.009862801060080528, -0.0011658963048830628, 0.05526147037744522, 0.012682871893048286, -0.05933603271842003, 0.007863628678023815, 0.012274329550564289, -0.017970118671655655, 0.017559679225087166, -0.01806529052555561, 0.0066297901794314384, 0.016335753723978996, 0.005821452010422945, 0.015317920595407486, 0.05831585451960564, 0.010346335358917713, -0.012604656629264355, -0.016292540356516838, 0.012751144357025623, 0.028720200061798096, -0.006498411763459444, -0.008752255700528622, -0.0012465735198929906, 0.007698978763073683, -0.1609092801809311, 0.0007144886767491698, -6.600662327360202e-33, 0.06165632605552673, -0.0605926588177681, 0.02856258861720562, 0.022929545491933823, 0.04125155135989189, 0.04369814321398735, -0.015050922520458698, 0.00857820175588131, -0.008979536592960358, -0.0053041609935462475, -0.019521992653608322, 0.00394645007327199, -0.010622082278132439, -0.006861502770334482, 0.035607222467660904, 0.0511397123336792, -0.01548719871789217, 0.03935223072767258, 0.011785213835537434, 0.01942445896565914, 0.044286634773015976, -0.0013206176226958632, -0.008110436610877514, 0.027106385678052902, 0.03961877524852753, 0.0345025397837162, 0.02248218096792698, 0.003729016287252307, 0.004349949769675732, -0.026197098195552826, 0.03171384707093239, -0.012252099812030792, -0.02662978507578373, -0.05913669988512993, -0.0036348181311041117, -0.05365581065416336, -0.03751607984304428, 0.01884683407843113, -0.04423623904585838, 0.002397438045591116, -0.04121840372681618, -0.02248159423470497, -0.05625361204147339, -0.014939172193408012, -0.01920400746166706, 0.01759052276611328, 0.03755263239145279, 0.010651667602360249, -0.008740607649087906, -0.01604270562529564, 0.02098964899778366, -0.004200113471597433, 0.021333269774913788, 0.03578858822584152, 0.024006865918636322, 0.027571985498070717, -0.007211285177618265, 0.0055037932470440865, -0.008999275043606758, -0.009463978931307793, -0.021155280992388725, -0.009904840029776096, -0.005826492793858051, 0.02810359187424183, 0.026307320222258568, 0.003717924701049924, 0.02118845283985138, 0.04464608430862427, 0.034861691296100616, 0.01841099187731743, -0.021992076188325882, 0.0032049273140728474, -0.011972853913903236, -0.019544299691915512, 0.028986172750592232, -0.04756743088364601, -0.010049263015389442, -0.014408010989427567, 0.017227379605174065, 0.03779971972107887, 0.04430581256747246, -0.03421270102262497, -0.03813110664486885, -0.05519724264740944, -0.02569836936891079, -0.051875073462724686, -0.006247911602258682, 0.006648845970630646, -0.02015167847275734, -0.0003251051821280271, 0.026220262050628662, 0.06425807625055313, 0.014255032874643803, -0.03027317300438881, -0.04044602811336517, 6.609400658490627e-33, -0.0003314889036118984, -0.02588968724012375, -0.011082923039793968, -0.0047948057763278484, 0.03840752691030502, -0.023145979270339012, 0.015631049871444702, 0.03704572096467018, -0.00021489863866008818, 0.013052382506430149, -0.04245598986744881, 0.029384516179561615, -0.04260065406560898, -0.011728253215551376, 0.021607467904686928, 0.011510862968862057, 0.0057984027080237865, -0.06253929436206818, 0.02650250680744648, 0.04073595628142357, 0.0005239405436441302, 0.008753318339586258, 0.0043231649324297905, 0.012762138620018959, 0.016910267993807793, 0.010214007459580898, 0.0011087233433499932, -0.01786956749856472, -0.03819270804524422, -0.0073206666857004166, 0.014908291399478912, 0.00031756304088048637, 0.0020920622628182173, -0.000049660382501315325, -0.0681924819946289, 0.01895085908472538, -0.023241247981786728, 0.03487158566713333, 0.005617545451968908, -0.025768812745809555, -0.008528213016688824, 0.005128877703100443, -0.0068235271610319614, 0.005242503713816404, 0.002767936559394002, 0.021550102159380913, -0.010434921830892563, -0.03517479822039604, -0.03505771979689598, 0.0330415703356266, -0.03353330120444298, -0.009824801236391068, 0.012116405181586742, 0.028532272204756737, 0.03635140135884285, -0.041635606437921524, -0.03871734067797661, 0.009124943986535072, -0.033616967499256134, 0.046388089656829834, 0.028713975101709366, 0.024843284860253334, 0.010142079554498196, 0.034847695380449295, -0.025235095992684364, 0.001183025655336678, 0.021884676069021225, 0.029592091217637062, 0.0027012585196644068, -0.027320949360728264, 0.007686114404350519, 0.00618754094466567, -0.04252981022000313, 0.04471339285373688, 0.04917842894792557, -0.017294464632868767, -0.0349099338054657, 0.03847138583660126, 0.0008158282143995166, 0.03570687025785446, 0.006080979947000742, 0.014573239721357822, -0.01003581378608942, -0.0581904835999012, 0.020789792761206627, -0.030989807099103928, -0.020973632112145424, 0.004193571861833334, 0.026670772582292557, 0.021493535488843918, -0.025307461619377136, -0.02680290676653385, -0.039597734808921814, -0.028072994202375412, -0.01716139353811741, -1.2183400066589911e-8, -0.021417545154690742, 0.010645835660398006, -0.006140038371086121, 0.007253611925989389, 0.03522294759750366, -0.01646009087562561, -0.021747784689068794, 0.014428382739424706, 0.005270869936794043, 0.03449713811278343, 0.03188904747366905, -0.012164810672402382, 0.04646975174546242, 0.03497110679745674, 0.01868506520986557, -0.05190620943903923, 0.03391321748495102, -0.05875437334179878, 0.03304406628012657, 0.006756803952157497, 0.020692504942417145, 0.04170757159590721, 0.01819455437362194, -0.02049790509045124, 0.0350322462618351, -0.011248437687754631, -0.006189798936247826, -0.07223083823919296, -0.00824284553527832, 0.015656474977731705, 0.00040635926416143775, -0.021026169881224632, 0.0010852307314053178, -0.017956005409359932, -0.03336125984787941, -0.027380850166082382, 0.006617674138396978, -0.00047459881170652807, -0.003960090689361095, -0.009120418690145016, 0.004091285634785891, 0.010466627776622772, -0.030601082369685173, -0.02190117910504341, -0.04077758267521858, 0.015730325132608414, -0.05008670687675476, 0.025746464729309082, 0.002844589063897729, 0.015921365469694138, 0.021142348647117615, -0.05704743415117264, 0.0402376651763916, -0.013461670838296413, 0.043138980865478516, 0.05019150301814079, 0.04382995888590813, 0.022390253841876984, 0.00567094050347805, 0.02496694028377533, 0.004377572797238827, 0.013483020476996899, -0.031911175698041916, -0.025322243571281433 ]
debezium-capture-changes-mysql
https://markhneedham.com/blog/2023/05/31/debezium-capture-changes-mysql
false
2023-05-30 02:44:37
Node.js: Minifying JSON documents
[ "til", "nodejs" ]
[ "nodejs" ]
I often need to minimise the schema and table config files that you use to configure Apache Pinot so that they don't take up so much space. After doing this manually for ages, I came across the https://www.npmjs.com/package/json-stringify-pretty-compact[json-stringify-pretty-compact^] library, which speeds up the process. We can install it like this: [source, bash] ---- npm install json-stringify-pretty-compact ---- And then I have the following script: .minify.mjs [source, javascript] ---- import pretty from 'json-stringify-pretty-compact'; let inputData = ''; process.stdin.on('data', (chunk) => { inputData += chunk; }); process.stdin.on('end', () => { const value = JSON.parse(inputData); console.log(pretty(value)); }); process.stdin.resume(); ---- Imagine we then have the following file: .config/schema.json [source, json] ---- { "schemaName": "parkrun", "primaryKeyColumns": ["competitorId"], "dimensionFieldSpecs": [ { "name": "runId", "dataType": "STRING" }, { "name": "eventId", "dataType": "STRING" }, { "name": "competitorId", "dataType": "LONG" }, { "name": "rawTime", "dataType": "INT" }, { "name": "lat", "dataType": "DOUBLE" }, { "name": "lon", "dataType": "DOUBLE" }, { "name": "location", "dataType": "BYTES" }, { "name": "course", "dataType": "STRING" } ], "metricFieldSpecs": [ { "name": "distance", "dataType": "DOUBLE" } ], "dateTimeFieldSpecs": [{ "name": "timestamp", "dataType": "TIMESTAMP", "format" : "1:MILLISECONDS:EPOCH", "granularity": "1:MILLISECONDS" }] } ---- The field specs take up so much unnecessary space, so let's get our script to sort that out: [source, bash] ---- cat config/schema.json | node minify.mjs ---- .Output [source, json] ---- { "schemaName": "parkrun", "primaryKeyColumns": ["competitorId"], "dimensionFieldSpecs": [ {"name": "runId", "dataType": "STRING"}, {"name": "eventId", "dataType": "STRING"}, {"name": "competitorId", "dataType": "LONG"}, {"name": "rawTime", "dataType": "INT"}, {"name": "lat", "dataType": "DOUBLE"}, {"name": "lon", "dataType": "DOUBLE"}, {"name": "location", "dataType": "BYTES"}, {"name": "course", "dataType": "STRING"} ], "metricFieldSpecs": [{"name": "distance", "dataType": "DOUBLE"}], "dateTimeFieldSpecs": [ { "name": "timestamp", "dataType": "TIMESTAMP", "format": "1:MILLISECONDS:EPOCH", "granularity": "1:MILLISECONDS" } ] } ----
In this post we'll learn how to minify JSON documents so that they don't take up so much space.
uploads/2023/05/nodejs-banner.png
[ -0.02261110581457615, -0.025680486112833023, -0.0027342711109668016, 0.031857360154390335, 0.08291914314031601, 0.025256047025322914, 0.006602770648896694, 0.03931249678134918, -0.025713397189974785, -0.02241756208240986, -0.01716519705951214, -0.01740161143243313, -0.07640239596366882, 0.009902650490403175, -0.02644440345466137, 0.0678660124540329, 0.08591612428426743, 0.0028649591840803623, 0.03300090506672859, 0.01914812996983528, 0.028236079961061478, 0.059317659586668015, 0.014211604371666908, 0.038894448429346085, 0.018128331750631332, 0.019824951887130737, 0.003084310796111822, -0.004414462484419346, -0.07966147363185883, 0.005626456346362829, 0.010992300696671009, -0.031741611659526825, -0.01612163335084915, -0.025758424773812294, -0.004598570987582207, -0.005046304315328598, -0.032385919243097305, 0.035777293145656586, -0.015642300248146057, 0.02409834787249565, -0.058239635080099106, 0.024622613564133644, 0.038636215031147, 0.014549091458320618, -0.017552558332681656, 0.02785421721637249, -0.05929388105869293, 0.03548599034547806, -0.023408835753798485, -0.01729271374642849, -0.04786699637770653, 0.028702467679977417, -0.04629302769899368, 0.01808665134012699, 0.0052410089410841465, 0.03028148226439953, 0.0010738067794591188, -0.06345637142658234, 0.023212088271975517, -0.04546644166111946, -0.04634903743863106, 0.004762385040521622, 0.006000840570777655, 0.016198022291064262, 0.02028876543045044, -0.007361972238868475, -0.02401326783001423, 0.042937975376844406, -0.04962458834052086, -0.03340807929635048, 0.05338967591524124, 0.014892175793647766, -0.02784602902829647, -0.017376558855175972, 0.028253760188817978, -0.03442232683300972, -0.020594051107764244, 0.04612378403544426, 0.0011136397952213883, 0.045632150024175644, -0.015084839425981045, 0.007279556710273027, 0.004016336053609848, 0.02035084366798401, 0.011290079914033413, -0.02042439952492714, -0.034388259053230286, 0.017240388318896294, -0.05978303402662277, 0.040304288268089294, 0.03798048198223114, -0.025414835661649704, 0.03134780377149582, -0.0024195536971092224, 0.013997599482536316, 0.025587504729628563, 0.020013023167848587, 0.014355858787894249, -0.00865568034350872, 0.015001722611486912, -0.06053221598267555, -0.005846143700182438, 0.011890437453985214, -0.017913760617375374, -0.07178414613008499, -0.043673135340213776, -0.00943028274923563, -0.007724057883024216, 0.010777032934129238, 0.006565428338944912, 0.012025159783661366, -0.010015042498707771, -0.0054367282427847385, 0.03134014829993248, -0.08146391063928604, 0.08725905418395996, 0.0011480688117444515, -0.014021630398929119, 0.02677304670214653, 0.03310539945960045, 0.0799943059682846, 0.034424640238285065, -0.0054242596961557865, 0.0765073150396347, -0.004608985502272844, 0.04130209982395172, 0.012949964962899685, 0.050917576998472214, 0.038343921303749084, -0.08934559673070908, -0.026449156925082207, 0.04723662883043289, 0.010637781582772732, -0.0019334278767928481, -0.003783944295719266, -0.015042220242321491, 0.005196549464017153, -0.018473327159881592, 0.07736993581056595, 0.018308395519852638, -0.01862819865345955, -0.009932154789566994, 0.021146904677152634, -0.025194263085722923, 0.03771621733903885, 0.011102567426860332, -0.015545855276286602, -0.07224825769662857, -0.03407463803887367, 0.04864473640918732, 0.016570091247558594, 0.03775830194354057, 0.0411175973713398, -0.0287570059299469, 0.0047302525490522385, 0.12709039449691772, 0.0071817426942288876, 0.004847351461648941, -0.04201527684926987, -0.029868781566619873, 0.04801665619015694, 0.022374756634235382, -0.012104731984436512, 0.046023473143577576, -0.007164350710809231, -0.02260774001479149, 0.011629915796220303, 0.06246882677078247, -0.014113744720816612, -0.0038562545087188482, -0.04947277903556824, -0.05035935714840889, 0.07674034684896469, -0.015581520274281502, 0.0019023631466552615, 0.057547781616449356, 0.06830371171236038, 0.02291063219308853, 0.010044917464256287, 0.03327688202261925, -0.08163133263587952, 0.07023928314447403, 0.009904073551297188, -0.0210237056016922, 0.033205803483724594, 0.00013608273002319038, 0.07581092417240143, -0.0004306647169869393, 0.010737672448158264, 0.004090662579983473, -0.0821046233177185, -0.08071534335613251, -0.02919718436896801, 0.00601727282628417, 0.05254080891609192, -0.027831390500068665, -0.03611031919717789, 0.07305748760700226, 0.02811470814049244, 0.03887265920639038, 0.016974352300167084, -0.0058484454639256, 0.019550733268260956, -0.07441446930170059, -0.0682813972234726, 0.011761706322431564, 0.012426246888935566, -0.03149949759244919, -0.015208274126052856, 0.013808977790176868, -0.0454430989921093, -0.05747062340378761, 0.05975271016359329, -0.028065018355846405, 0.047752007842063904, 0.020520247519016266, 0.04098490625619888, -0.022427668794989586, 0.0276582520455122, -0.05468393489718437, 0.04810285195708275, 0.012800103984773159, -0.03484419360756874, -0.00835990160703659, -0.030222035944461823, 0.10531450808048248, 0.06355585902929306, -0.02351183071732521, -0.045122429728507996, 0.06661500036716461, -0.0038976450450718403, -0.06601482629776001, -0.02221118099987507, -0.022924598306417465, -0.009855025447905064, 0.011416925117373466, -0.02059594728052616, 0.022318126633763313, 0.011427351273596287, -0.01517452485859394, 0.01891190931200981, 0.049850091338157654, -0.03203490749001503, 0.06696262955665588, 0.010593436658382416, -0.010115912184119225, -0.02128574624657631, -0.024189233779907227, -0.06998921930789948, -0.01953921467065811, 0.014676758088171482, 0.004944836720824242, 0.03207454830408096, -0.051343485713005066, -0.018048550933599472, -0.030645623803138733, -0.05825125798583031, 0.04568665102124214, 0.03284411504864693, 0.05360158160328865, -0.03521426022052765, 0.008965841494500637, 0.00667024590075016, 0.04792406037449837, -0.0007183672278188169, -0.042849328368902206, -0.005130804609507322, 0.01625312864780426, 0.01946544274687767, 0.010918811894953251, 0.0048513030633330345, 0.005321064963936806, -0.02066211588680744, -0.017607474699616432, 0.02278454788029194, -0.031433749943971634, 0.019588954746723175, -0.025839993730187416, -0.015950683504343033, -0.052046023309230804, -0.008453073911368847, 0.0694233700633049, -0.055157117545604706, -0.002650841372087598, -0.011219905689358711, -0.04857213795185089, 0.024675041437149048, -0.07696347683668137, -0.028202705085277557, -0.010743881575763226, 0.026346959173679352, 0.024566233158111572, -0.025899790227413177, 0.016362518072128296, 0.05679650604724884, 0.013529353775084019, 0.014193518087267876, 0.020157571882009506, 0.020972227677702904, 0.06881634145975113, 0.019663792103528976, 0.04928591102361679, 0.044870443642139435, 0.005212153773754835, -0.015843162313103676, -0.014084422029554844, 0.020122570917010307, -0.04160875454545021, -0.26766932010650635, 0.059073206037282944, -0.01919112354516983, -0.038794245570898056, 0.01864027790725231, -0.019931675866246223, 0.009640646167099476, -0.051017872989177704, -0.004275786690413952, 0.0041522192768752575, -0.022524019703269005, -0.03837333619594574, -0.016332440078258514, 0.04656538367271423, -0.0026441626250743866, 0.023854928091168404, -0.01637229323387146, -0.059527069330215454, -0.0005257462034933269, 0.02043107897043228, -0.0034929413814097643, -0.07190892100334167, 0.028928333893418312, 0.027010953053832054, 0.014527755789458752, 0.04346410930156708, -0.09089567512273788, 0.060445282608270645, -0.04343713819980621, -0.02603147365152836, 0.007189842872321606, -0.0273237694054842, 0.019612986594438553, -0.0021460808347910643, 0.011173542588949203, -0.0021192983258515596, 0.0006957979639992118, -0.004988150205463171, 0.040047984570264816, 0.004910185467451811, -0.00935736857354641, -0.0238642618060112, -0.00627043517306447, -0.006550997029989958, 0.05967388674616814, -0.04843154549598694, -0.08698433637619019, -0.00688793882727623, -0.033752329647541046, 0.06834466755390167, -0.0025795914698392153, -0.038903914391994476, -0.03172032907605171, 0.033273641020059586, -0.02317604050040245, 0.007366723380982876, -0.004751939792186022, 0.02123381197452545, -0.04353754222393036, -0.02499067783355713, 0.013289201073348522, -0.02924587018787861, -0.015591951087117195, -0.025477265939116478, -0.012126155197620392, -0.05400339886546135, -0.07048363983631134, 0.0045866528525948524, 0.06203310564160347, 0.03683196380734444, -0.016798976808786392, 0.008811931125819683, 0.008281470276415348, -0.10656030476093292, -0.008257315494120121, -0.032741203904151917, -0.06860081851482391, -0.017819298431277275, 0.001132553443312645, 0.0508471317589283, -0.015661604702472687, -0.013086054474115372, 0.03605424612760544, -0.013175983913242817, 0.02299300953745842, -0.02262820489704609, 0.014860479161143303, -0.011938801035284996, -0.01325223408639431, -0.03500526770949364, 0.06826850771903992, -0.05628466606140137, 0.0031961980275809765, -0.031662456691265106, -0.016231855377554893, 0.008125057443976402, 0.01798546314239502, 0.010147898457944393, 0.016279740259051323, 0.017920982092618942, 0.013502437621355057, -0.037732988595962524, -0.0027469617780297995, -0.0259581059217453, -0.00949461292475462, -0.03739136457443237, -0.07860302925109863, 0.023026322945952415, 0.03378813713788986, 0.04937899485230446, 0.0012967514339834452, -0.014735734090209007, 0.01878514513373375, -0.064127616584301, -0.0098335025832057, 0.009531956166028976, 0.010644074529409409, 0.014505211263895035, 0.02174283377826214, -0.012134351767599583, -0.049785226583480835, 0.009339818730950356, 0.017829496413469315, -0.018463877961039543, -0.026913724839687347, -0.03744474798440933, 0.010979127138853073, 0.01355328131467104, -0.008724786341190338, -0.01737518236041069, -0.025364316999912262, 0.028107909485697746, 0.03851999342441559, -0.035824939608573914, 0.02584073692560196, -0.044010087847709656, -0.036126453429460526, -0.018262270838022232, 0.02135017141699791, 0.03609004244208336, -0.015872772783041, 0.0020265306811779737, 0.009829338639974594, 0.03717532381415367, 0.025670576840639114, 0.037554193288087845, 0.03361751139163971, -0.014527306891977787, 0.004998737946152687, -0.02071777731180191, -0.006371633615344763, -0.05040537193417549, 0.0017073840135708451, -0.03911152482032776, -0.04147183895111084, -0.041510701179504395, 0.02028188668191433, 0.00519767077639699, -0.00673619844019413, -0.05036390572786331, 0.004268056247383356, -0.05102564021945, -0.06025071069598198, -0.0111791230738163, -0.019474990665912628, 0.05081731826066971, 0.026111256331205368, 0.011849559843540192, -0.02297717146575451, 0.009260157123208046, 0.01017619390040636, 0.014559043571352959, -0.05727071687579155, -0.03168840333819389, -0.02658182568848133, -0.003975981846451759, 0.04287189990282059, 0.024340853095054626, 0.02432979829609394, 0.019219888374209404, 0.03267486020922661, -0.005288455635309219, 0.000029134938813513145, 0.026672447100281715, 0.03666912391781807, 0.014282644726336002, -0.025819648057222366, 0.002943811472505331, -0.014742562547326088, -0.03573150187730789, -0.02291729301214218, -0.001573454588651657, -0.021603623405098915, -0.005809376947581768, -0.013736999593675137, -0.08614394068717957, 0.020077262073755264, 0.040991995483636856, -0.006867405492812395, 0.017910683527588844, 0.02523747645318508, -0.0014640635345131159, -0.04305407032370567, 0.03231319412589073, 0.08970309048891068, -0.05861373618245125, -0.00394457345828414, -0.005195955280214548, 0.010812625288963318, 0.008603568188846111, 0.009317005053162575, -0.05312662944197655, 0.0022869454696774483, -0.018987463787198067, -0.004563008435070515, -0.01669912040233612, -0.015060271136462688, 0.0012879614951089025, -0.012087740004062653, -0.02970518358051777, -0.042129263281822205, -0.011056768707931042, -0.013169935904443264, 0.009573758579790592, -0.018459636718034744, 0.029229210689663887, 0.0013421368785202503, 0.015289263799786568, 0.02708710916340351, -0.004359020385891199, 0.04623672738671303, -0.03611762821674347, 0.018616583198308945, 0.02635842375457287, -0.025693058967590332, 0.025267640128731728, -0.03472881019115448, 0.03607756271958351, 0.029142042621970177, 0.06433405727148056, 0.010483128018677235, -0.005565585568547249, -0.04006648063659668, 0.007886525243520737, -0.024541165679693222, -0.015476574189960957, -0.025163443759083748, -0.02240990847349167, 0.017582451924681664, 0.04197809100151062, 0.0005872795009054244, -0.005924187134951353, -0.020609304308891296, -0.021184716373682022, 0.06923100352287292, -0.06209251657128334, -0.04040000960230827, -0.00020974989456590265, -0.03126148506999016, 0.01591537520289421, 0.012414105236530304, 0.015588621608912945, -0.0632953941822052, 0.06544148176908493, 0.044867243617773056, 0.0051925997249782085, 0.0198409054428339, -0.03847106546163559, 0.03882119059562683, -0.02110159397125244, -0.02863035723567009, -0.07548641413450241, 0.001050331280566752, 0.030461665242910385, -0.03603217005729675, -0.013933171518146992, 0.01598804071545601, -0.0457264743745327, 0.051511723548173904, -0.046757474541664124, -0.03579828888177872, 0.053999289870262146, -0.012709129601716995, 0.0036248459946364164, -0.016974424943327904, -0.05003592371940613, 0.03323889896273613, 0.04993043094873428, -0.021185288205742836, 0.006145347375422716, -0.023214371874928474, 0.04300122335553169, -0.0010502475779503584, 0.017933961004018784, -0.03868134319782257, -0.016843782737851143, 0.06211148947477341, 0.016778573393821716, 0.017253205180168152, 0.02062569372355938, -0.017743850126862526, 0.03868451341986656, 0.04982035234570503, -0.015205704607069492, -0.02024107053875923, 0.036442093551158905, -0.014430823735892773, -0.032602459192276, 0.029938068240880966, 0.010603929869830608, 0.006121606100350618, -0.048920515924692154, 0.0498831681907177, 0.0030409498140215874, -0.046936359256505966, -0.0502953827381134, 0.010097898542881012, -0.025236528366804123, -0.018375439569354057, -0.03478982672095299, -0.0012054413091391325, -0.03141874819993973, 0.059791140258312225, -0.02351391687989235, -0.0026580365374684334, 0.11872237920761108, 0.006351365242153406, 0.006886661518365145, 0.028372962027788162, 0.04908686503767967, 0.09024416655302048, 0.028348151594400406, 0.02259892039000988, 0.0718979761004448, -0.020471828058362007, -0.033272236585617065, 0.011307217180728912, -0.022067083045840263, -0.038653869181871414, -0.027938183397054672, 0.017912257462739944, 0.059942398220300674, -0.021244129166007042, 0.07914315909147263, -0.02677825465798378, 0.006937292870134115, -0.0019249692559242249, 0.02136230655014515, 0.020032264292240143, 0.0421154759824276, -0.002702569356188178, 0.03986643627285957, -0.02031916379928589, -0.0036364137195050716, 0.0018468411872163415, -0.004548706114292145, -0.016986273229122162, -0.00005551813592319377, -0.016782868653535843, 0.016975989565253258, 0.034713540226221085, 0.0307451244443655, 0.06855272501707077, -0.021433021873235703, -0.014803839847445488, 0.01455109566450119, 0.057030629366636276, 0.02622016705572605, 0.0005848626024089754, -0.05201110616326332, -0.019432181492447853, 0.00025839361478574574, -0.030955279245972633, -0.0003092711849603802, 0.01093776524066925, 0.015163236297667027, 0.026279574260115623, -0.014329088851809502, 0.03835555911064148, 0.029733572155237198, -0.00700413528829813, -0.035281576216220856, -0.03946944698691368, -0.054911643266677856, -0.07247491180896759, -0.04971078038215637, -0.01006069965660572, -0.010890046134591103, -0.012117748148739338, -0.014169583097100258, -0.007623330689966679, 0.004643747583031654, 0.02154655009508133, 0.01926547661423683, -0.05689486488699913, -0.03497966378927231, 0.015917550772428513, 0.016523728147149086, 0.008906231261789799, 0.020264295861124992, 0.03858251869678497, -0.007562596816569567, 0.0025065529625862837, -0.014530207961797714, -0.008957833051681519, 0.03510119020938873, 0.010899803601205349, 0.01227350439876318, -0.0585317425429821, 0.033306315541267395, 0.012490272521972656, -0.006164515856653452, -0.05865068733692169, -0.005899961106479168, 0.0269316416233778, -0.030967170372605324, 0.061455387622117996, -0.017932716757059097, 0.012445802800357342, -0.054919518530368805, -0.04556627944111824, -0.0038107989821583033, 0.042239557951688766, 0.01510555949062109, -0.011891327798366547, 0.09183485805988312, 0.023910652846097946, -0.031384993344545364, -0.01342441514134407, 0.004643777851015329, -0.011333192698657513, 0.0041483743116259575, -0.03482623025774956, 0.013785512186586857, -0.04378694295883179, -0.06591308116912842, -0.035508085042238235, 0.004281841684132814, -0.061667319387197495, -0.03637702018022537, 0.006757240276783705, 0.004755678586661816, -0.049199074506759644, 0.014361737295985222, -0.03548910841345787, 0.01371783297508955, -0.010344328358769417, -0.014127724803984165, -0.016816873103380203, 0.00976216048002243, 0.004034736193716526, -0.013582579791545868, 0.010501584969460964, -0.026604970917105675, 0.01731019839644432, -0.009144479408860207, 0.05286432057619095, 0.031388819217681885, -0.023049037903547287, 0.026256272569298744 ]
[ -0.07674730569124222, -0.029791878536343575, 0.0005257038865238428, -0.03511016443371773, 0.08224885165691376, -0.02710818313062191, -0.06061592325568199, 0.0015844085719436407, 0.011328759603202343, -0.015510877594351768, 0.0036285296082496643, -0.02835657447576523, 0.012912517413496971, -0.024139616638422012, 0.09985078126192093, 0.009360619820654392, 0.027999555692076683, -0.024337120354175568, -0.04320307448506355, 0.042449939996004105, 0.03448696434497833, -0.009885626845061779, -0.04349537938833237, -0.04248461872339249, -0.007813205942511559, 0.019235268235206604, 0.03991401195526123, -0.034043289721012115, -0.015119915828108788, -0.20001910626888275, 0.029520109295845032, -0.04467498138546944, -0.007361556403338909, -0.0017733395798131824, 0.01461068820208311, 0.039123211055994034, 0.024593869224190712, 0.004862190689891577, -0.00897399801760912, 0.037305451929569244, 0.017099596560001373, 0.016890842467546463, -0.06897135823965073, -0.028300516307353973, 0.006459870375692844, -0.06450125575065613, -0.029925646260380745, -0.02654889039695263, -0.035456642508506775, 0.012141919694840908, -0.06259753555059433, -0.022600360214710236, -0.016202151775360107, -0.034426696598529816, 0.024835854768753052, 0.03240995109081268, 0.061593301594257355, 0.06710889935493469, 0.02968253195285797, 0.02777097187936306, 0.006238237489014864, -0.00845709815621376, -0.10319135338068008, 0.09263509511947632, 0.01732455939054489, 0.03405081480741501, -0.021382177248597145, -0.029095444828271866, -0.032704029232263565, 0.07815304398536682, 0.014112139120697975, 0.01652093604207039, -0.04898342862725258, 0.06694764643907547, 0.002311526332050562, -0.02865133434534073, -0.0023223592434078455, 0.02978227287530899, 0.03815693408250809, 0.018878687173128128, -0.07156429439783096, -0.019000303000211716, -0.03881363570690155, -0.002182021737098694, -0.018520895391702652, -0.00222972990013659, -0.04025183618068695, 0.06203310191631317, -0.02434118278324604, -0.009103774093091488, 0.03419848158955574, -0.018255064263939857, 0.03597911074757576, 0.02706006169319153, -0.09791414439678192, 0.012199454009532928, -0.006059364415705204, 0.012579827569425106, -0.021975724026560783, 0.38976582884788513, -0.003051057457923889, -0.009769920259714127, 0.039589107036590576, 0.0089116171002388, 0.013241047039628029, 0.03998370096087456, -0.01907282881438732, -0.0016532589215785265, 0.07096222788095474, -0.020862173289060593, -0.016394149512052536, 0.010534350760281086, 0.04126165434718132, -0.0697035863995552, -0.0019022026099264622, -0.0010910003911703825, -0.025587638840079308, 0.02115873247385025, -0.049023739993572235, 0.04766903817653656, 0.020277732983231544, 0.009205151349306107, 0.05348421633243561, 0.023220740258693695, 0.032549526542425156, 0.0030818269588053226, 0.01736820489168167, 0.012245097197592258, 0.05328112095594406, 0.031456246972084045, 0.003855376271530986, -0.014472653158009052, -0.05031069740653038, -0.015229592099785805, 0.021359965205192566, -0.0014601480215787888, 0.016278281807899475, 0.0013986023841425776, 0.023610269650816917, 0.004784468095749617, -0.03473610803484917, -0.018496446311473846, 0.03241651877760887, -0.020264139398932457, -0.037456586956977844, 0.11919113248586655, -0.004678495693951845, 0.001378207583911717, 0.004104900639504194, -0.025999533012509346, -0.019577566534280777, 0.04134896397590637, -0.002551823854446411, -0.07246600091457367, 0.01993260160088539, 0.029770856723189354, 0.038562528789043427, -0.03973753750324249, -0.06822774559259415, -0.019080229103565216, -0.005649661645293236, -0.020543785765767097, 0.0005605221958830953, 0.011160492897033691, 0.0030096431728452444, -0.1351248323917389, -0.034163698554039, 0.027593286707997322, 0.000602947548031807, -0.059387464076280594, -0.03721466660499573, 0.030839556828141212, -0.027088508009910583, -0.03731141611933708, 0.063478022813797, -0.02620246447622776, -0.009936078451573849, 0.00046347282477654517, 0.046875353902578354, 0.0032293314579874277, -0.021974895149469376, 0.030673861503601074, -0.024968283250927925, -0.024388512596488, -0.028877122327685356, -0.08380252867937088, -0.04798055812716484, 0.006892062723636627, -0.019305653870105743, -0.0506395660340786, -0.019703462719917297, -0.04193815588951111, -0.05963652580976486, 0.08680640906095505, -0.006357801612466574, -0.03656557947397232, 0.02289973944425583, -0.005123727023601532, -0.028973372653126717, -0.026391327381134033, 0.03658796101808548, 0.06935115158557892, 0.018683508038520813, 0.05046164244413376, -0.055756404995918274, 0.03455211594700813, 0.05013067275285721, -0.06782325357198715, 0.044461335986852646, 0.042868178337812424, -0.06405379623174667, 0.01859406754374504, -0.0031093661673367023, 0.01564359851181507, -0.001381885027512908, 0.024644847959280014, -0.00645742891356349, -0.004546391777694225, 0.053509730845689774, 0.05303148552775383, -0.030915196985006332, -0.029459331184625626, -0.04580315202474594, -0.36980485916137695, -0.01674613729119301, -0.01556344609707594, -0.025419166311621666, 0.007878408767282963, -0.05937156826257706, 0.0043666670098900795, -0.0012804378056898713, 0.010649021714925766, 0.01202989462763071, 0.08889022469520569, -0.04340949282050133, 0.030717507004737854, -0.022223085165023804, -0.002699921140447259, 0.03223481401801109, -0.019016535952687263, -0.04325374215841293, -0.04157665744423866, 0.012826453894376755, -0.004942175000905991, -0.023928619921207428, -0.04587068036198616, -0.029085297137498856, 0.007434424478560686, -0.019264282658696175, 0.11200054734945297, -0.009856613352894783, 0.05696070194244385, -0.07680056989192963, 0.0650595873594284, 0.005515763070434332, -0.011252357624471188, -0.06422214955091476, -0.011860528960824013, -0.04478110000491142, -0.0030570782255381346, 0.022381898015737534, 0.0077193863689899445, 0.01274945680052042, -0.033889610320329666, 0.047822337597608566, -0.02051577717065811, -0.08023910224437714, -0.005032594781368971, 0.001266278326511383, -0.03643951565027237, -0.029491586610674858, -0.018103305250406265, 0.02578020840883255, 0.002989966655150056, 0.04851729795336723, 0.02541290782392025, 0.05217815935611725, 0.03230123221874237, -0.02565230242908001, -0.05419748276472092, -0.009890954941511154, 0.013190630823373795, -0.014068059623241425, 0.03854961320757866, 0.021371474489569664, 0.028796756640076637, -0.07349760830402374, -0.015548961237072945, 0.009114522486925125, 0.02221144735813141, 0.0174783356487751, 0.068301260471344, -0.03226102143526077, -0.027952590957283974, 0.046542759984731674, 0.007802365347743034, 0.03823209926486015, 0.03426889702677727, 0.04344905540347099, -0.041459426283836365, 0.014373053796589375, 0.019796771928668022, 0.001701821805909276, 0.05259648337960243, 0.029928013682365417, 0.03603464365005493, -0.028725286945700645, -0.04772444814443588, 0.048038896173238754, 0.009724589064717293, -0.0184471532702446, 0.054612744599580765, 0.006473338231444359, -0.01664029434323311, -0.008220991119742393, 0.01366354152560234, -0.027376681566238403, 0.06514295935630798, -0.014648625627160072, -0.2844904959201813, 0.02461402676999569, 0.04823395609855652, 0.04998890683054924, -0.015911737456917763, 0.020540885627269745, 0.010603232309222221, -0.05180737003684044, 0.008552935905754566, 0.04674996808171272, -0.008859147317707539, 0.0572395958006382, 0.015410794876515865, -0.019403640180826187, 0.05247398838400841, 0.008023607544600964, 0.043347686529159546, 0.018073393031954765, 0.03008122555911541, -0.0786261260509491, 0.03603476285934448, -0.016387267038226128, 0.19331496953964233, 0.033343710005283356, -0.0464186817407608, 0.06842228770256042, -0.01773802936077118, 0.024516219273209572, 0.0658305436372757, 0.014085727743804455, 0.00198576133698225, 0.02396438643336296, 0.05988914519548416, 0.027253611013293266, 0.04086751863360405, -0.06834665685892105, -0.03900894522666931, 0.043558813631534576, 0.025043779984116554, -0.028073634952306747, -0.016296502202749252, -0.005511201452463865, -0.04514845460653305, 0.0492321215569973, 0.06320125609636307, -0.0760229229927063, -0.024867333471775055, -0.005503884982317686, -0.05153627693653107, -0.003342611249536276, -0.016269482672214508, -0.020477689802646637, 0.00048002894618548453, -0.02288099192082882, 0.02519715204834938, 0.061625901609659195, 0.04455968365073204, -0.010082020424306393, 0.017337333410978317, 0.012166702188551426, -0.006633973214775324, -0.06454148888587952, 0.08625677227973938, 0.023879999294877052, 0.010123047046363354 ]
[ 0.03966489061713219, 0.03019467182457447, -0.02181972749531269, 0.0465753935277462, 0.02204936556518078, 0.016661906614899635, -0.0011035021161660552, 0.04097922518849373, -0.011155109852552414, -0.011409969069063663, -0.028495091944932938, 0.005670506041496992, -0.004561586771160364, -0.0203381534665823, -0.003975049126893282, 0.013547545298933983, -0.027994008734822273, 0.010064397007226944, 0.007593254558742046, -0.031325530260801315, -0.03510325029492378, 0.00912480242550373, 0.040618058294057846, 0.000714027788490057, -0.024225734174251556, 0.03125673532485962, -0.024331409484148026, 0.049478981643915176, 0.022585652768611908, -0.09249891340732574, -0.024919137358665466, -0.04772762954235077, -0.0016221425030380487, -0.028272666037082672, 0.004487207625061274, 0.053399939090013504, 0.010095142759382725, -0.015324311330914497, -0.011936360970139503, -0.02325940504670143, -0.00921792071312666, -0.022287534549832344, -0.02692856825888157, -0.0017620682483538985, -0.04643881320953369, -0.03519461676478386, -0.0529717281460762, -0.01468142680823803, -0.047887321561574936, 0.0051699187606573105, -0.03665948659181595, -0.0031487462110817432, -0.02121427282691002, 0.0072942511178553104, 0.030397724360227585, -0.02112274244427681, -0.07221607118844986, 0.012225904501974583, 0.015872150659561157, 0.005097920075058937, 0.006707110907882452, -0.013915427960455418, 0.00978429988026619, -0.010320362634956837, 0.014884080737829208, -0.03703838959336281, 0.013368336483836174, -0.005960679147392511, 0.029465455561876297, -0.022698907181620598, 0.029235506430268288, 0.03507872298359871, -0.036843396723270416, -0.016478728502988815, -0.017179669812321663, -0.007139360997825861, 0.0073546357452869415, 0.004317923914641142, 0.023896483704447746, 0.017912812530994415, -0.04678795859217644, -0.014913265593349934, -0.0265048760920763, 0.03029702603816986, -0.05064474791288376, 0.004127840977162123, 0.0028935656882822514, 0.011062823235988617, 0.02841024473309517, -0.026152322068810463, -0.04021115228533745, 0.0052281031385064125, -0.01309470646083355, 0.03760148584842682, -0.08855675160884857, 0.0014693510020151734, -0.010768602602183819, -0.004344737157225609, -0.04026706889271736, 0.8357563614845276, 0.020266637206077576, 0.02231927216053009, 0.04427221417427063, 0.007763334549963474, 0.0114114535972476, -0.02905440516769886, -0.005768345668911934, -0.004245709162205458, 0.0022217745427042246, -0.014777624979615211, 0.030998289585113525, 0.027129661291837692, 0.032337892800569534, 0.022902077063918114, -0.014168675057590008, 0.04352116584777832, 0.0190462376922369, -0.004005888011306524, -0.008381230756640434, 0.058189183473587036, 0.021954478695988655, -0.033886250108480453, -0.0009357827948406339, 0.02050444297492504, 0.027224063873291016, -0.14785076677799225, 0.004314098507165909, -6.58114177429686e-33, 0.05077420547604561, -0.0178544782102108, 0.05159277096390724, -0.013842850923538208, 0.025502780452370644, -0.02971462719142437, 0.04626297950744629, 0.032872557640075684, -0.03492668643593788, -0.02645140513777733, 0.040314022451639175, -0.02514422871172428, -0.010044671595096588, -0.03319493681192398, 0.04312286898493767, -0.04104173555970192, 0.01646391674876213, 0.02885548770427704, -0.012635186314582825, 0.02033279649913311, -0.00839526578783989, 0.03190208971500397, 0.03360164538025856, 0.013802346773445606, 0.0162467360496521, -0.033405788242816925, 0.0319879874587059, 0.031827230006456375, -0.0009238290367648005, -0.03678393363952637, -0.0069067091681063175, 0.008571160957217216, 0.0045948089100420475, -0.0144095029681921, 0.022081082686781883, -0.05099165812134743, -0.01955641619861126, 0.007739960215985775, -0.012928428128361702, -0.01453685387969017, -0.033727675676345825, -0.0036763446405529976, -0.03749028965830803, -0.013108551502227783, -0.016846664249897003, -0.02474506013095379, 0.04767300561070442, 0.01947123371064663, 0.0000632780502201058, -0.03237837180495262, 0.02323814108967781, 0.02628319151699543, 0.015141322277486324, 0.05490034073591232, 0.015557536855340004, 0.022855842486023903, 0.0007511665462516248, -0.03624725714325905, -0.004309195093810558, 0.010354207828640938, -0.006449836306273937, -0.00794549472630024, -0.001903063035570085, 0.016879595816135406, 0.016096090897917747, -0.01683364063501358, 0.030361467972397804, -0.010167310014367104, 0.02057231217622757, 0.02770441584289074, -0.03148447349667549, 0.050787314772605896, -0.02931823767721653, -0.04781578108668327, 0.0420289970934391, -0.050124239176511765, 0.03829527646303177, 0.014165395870804787, 0.011477477848529816, -0.018757566809654236, 0.05192694440484047, 0.001226802822202444, -0.020381245762109756, 0.005869569722563028, -0.05534648522734642, -0.030215855687856674, 0.010005312971770763, 0.03175540268421173, -0.02098681591451168, -0.011317617259919643, 0.022177409380674362, 0.053335435688495636, -0.021127372980117798, -0.0519365593791008, -0.022880345582962036, 6.898545085486047e-33, -0.012964754365384579, -0.02669735997915268, -0.016123292967677116, 0.0389997623860836, 0.031510572880506516, -0.03685086593031883, 0.012528383173048496, 0.049132250249385834, -0.0025066928938031197, 0.04415291175246239, -0.01747846230864525, -0.009207870811223984, -0.012496045790612698, -0.015038540586829185, 0.04852558299899101, 0.03670767322182655, 0.024938831105828285, -0.026968520134687424, 0.04517277702689171, -0.004202341195195913, 0.016575727611780167, 0.010994191281497478, 0.02672736532986164, 0.009247155860066414, 0.025145815685391426, 0.017437011003494263, -0.020271016284823418, 0.004234729800373316, -0.036580707877874374, -0.014019139111042023, 0.0177760049700737, -0.021396229043602943, -0.027613293379545212, -0.028349924832582474, -0.05796291306614876, -0.01462175790220499, -0.015299591235816479, 0.032256558537483215, 0.05017753317952156, 0.0015686086844652891, 0.015188363380730152, 0.017845267429947853, 0.009630859829485416, 0.023138808086514473, 0.0024597025476396084, -0.006405135150998831, -0.003010375425219536, 0.017044086009263992, -0.009205237030982971, -0.0003430987417232245, -0.034020207822322845, 0.011543185450136662, -0.020820792764425278, 0.018776651471853256, 0.008021323010325432, -0.018980443477630615, -0.02771373838186264, -0.006092693191021681, -0.04692962020635605, -0.009336529299616814, -0.01879938691854477, -0.045738935470581055, -0.005995472427457571, 0.013254066929221153, -0.008191820234060287, -0.017963865771889687, -0.04922853037714958, -0.010167086496949196, -0.010941042564809322, -0.007359217386692762, -0.0133731784299016, -0.010645419359207153, -0.01385673601180315, 0.04168801009654999, 0.027244998142123222, -0.03368072211742401, -0.004448844585567713, -0.0013934435555711389, 0.013782071880996227, 0.024421418085694313, 0.047540225088596344, 0.004032506607472897, 0.03347441926598549, -0.040212228894233704, 0.06510826200246811, 0.010124348104000092, -0.02386910282075405, -0.007519733160734177, -0.019586021080613136, 0.05668657273054123, -0.015972454100847244, -0.022707641124725342, -0.0020747024100273848, -0.01255370955914259, -0.020597366616129875, -1.239138125441741e-8, -0.03082098625600338, -0.0033982452005147934, -0.023726101964712143, 0.01788153126835823, 0.045782655477523804, -0.030694445595145226, -0.019237244501709938, 0.013315723277628422, 0.0379444845020771, 0.01871350035071373, 0.023057451471686363, -0.006817421410232782, -0.0032497127540409565, 0.0004722439334727824, 0.007786270696669817, -0.023275839164853096, -0.01843678206205368, -0.03505520522594452, 0.0101130036637187, -0.001387482276186347, 0.01009967178106308, 0.03390071168541908, -0.022214528173208237, 0.02128848247230053, 0.034560516476631165, -0.004437148571014404, 0.03434113413095474, -0.05591347813606262, -0.029337499290704727, -0.00954817607998848, -0.026129906997084618, -0.03210485726594925, -0.008561884053051472, 0.00386714655905962, -0.050083380192518234, -0.00954499002546072, 0.04838908091187477, 0.0232663843780756, -0.00383183965459466, 0.013137977570295334, 0.02353774383664131, 0.006085475906729698, -0.021855752915143967, -0.03341072052717209, -0.019381439313292503, -0.015096745453774929, -0.009928600862622261, 0.046075306832790375, 0.02270294912159443, -0.020549558103084564, 0.0012303361436352134, -0.007729810196906328, 0.009150990284979343, -0.006185326259583235, 0.043559227138757706, -0.0046370141208171844, 0.013204519636929035, 0.003205512883141637, -0.013643932528793812, -0.0014894641935825348, 0.015249751508235931, 0.02677483670413494, -0.024010056629776955, -0.022890252992510796 ]
nodejs-minify-json-documents
https://markhneedham.com/blog/2023/05/30/nodejs-minify-json-documents
false
2023-05-24 02:44:37
DuckDB/SQL: Create a list of numbers
[ "sql", "duckdb", "til" ]
[ "TIL" ]
:icons: font While in DuckDB land, I wanted to create a list of numbers, just like you can with Cypher's https://neo4j.com/docs/cypher-manual/current/functions/list/#functions-range[`range`^] function. After a bit of searching that resulted in very complex solutions, I came across the Postgres https://www.postgresql.org/docs/current/functions-srf.html[`generate_series`^] function, which does the trick. We can use it in place of a table, like this: [source, sql] ---- SELECT * FROM generate_series(1, 10); ---- [options="header"] .Output |=== |generate_series |1 |2 |3 |4 |5 |6 |7 |8 |9 |10 |=== As you can see from the results, this returns 10 rows with one number per row. Alternatively, we can use it inside a `SELECT` clause, like this: [source, sql] ---- SELECT generate_series(1, 10); ---- [options="header"] .Output |=== |generate_series(1, 10) |[1, 2, 3, 4, 5, 6, 7, 8, 9, 10] |=== This time it returns one row with an array containing 10 values. I later learnt that there is also a https://duckdb.org/docs/sql/functions/nested.html#range-functions[`range`^] function, exactly like the Cypher function that I mentioned at the beginning of the post. The difference between `range` and `generate_series` is that for `range``, the stop parameter is exclusive, whereas for `generate_series` it is inclusive. So if we asked `range` to generate numbers between 1 and 11 with a step of 2, it would result in the following output, which excludes 11: [source, sql] ---- SELECT range(1, 11, 2); ---- [options="header"] .Output |=== |range(1, 11, 2) |[1, 3, 5, 7, 9] |===
In this post we'll learn how to create a list of numbers using DuckDB.
uploads/2023/05/range-banner.png
[ -0.007973181083798409, 0.023130983114242554, -0.0001830237451940775, 0.03739339858293533, 0.08926236629486084, 0.01901458576321602, -0.001978209475055337, 0.011108482256531715, -0.004803807009011507, -0.021568061783909798, 0.025074711069464684, -0.007600089535117149, -0.05890870466828346, 0.01823914423584938, -0.003154315985739231, 0.059502389281988144, 0.05901696905493736, 0.03051227517426014, 0.02458866685628891, -0.015264773741364479, 0.012369906529784203, 0.03349333629012108, -0.007600296754390001, 0.05013512074947357, 0.07243765890598297, 0.009587968699634075, 0.008633441291749477, -0.014056327752768993, -0.03824726119637489, -0.005808054003864527, 0.039117176085710526, -0.027340561151504517, -0.010395364835858345, -0.011913606896996498, 0.03489286080002785, 0.01718352735042572, -0.02642248198390007, 0.004883225075900555, -0.008007888682186604, 0.0011083190329372883, -0.06273959577083588, -0.012053059414029121, -0.004854665603488684, 0.00436676200479269, -0.025903761386871338, 0.012820031493902206, -0.04914694279432297, 0.006141040939837694, -0.0242660753428936, 0.02043047919869423, -0.07364476472139359, 0.051284875720739365, -0.017715338617563248, -0.025743534788489342, 0.011993803083896637, 0.030111610889434814, 0.01502340380102396, -0.060447607189416885, 0.03195849806070328, -0.01925555244088173, 0.054194025695323944, -0.0035880589857697487, 0.007814811542630196, 0.032491348683834076, 0.006690744310617447, -0.019634893164038658, -0.016851557418704033, 0.03351324051618576, -0.05473516508936882, 0.006780431605875492, -0.01201191172003746, -0.020235225558280945, -0.006487973500043154, -0.023513616994023323, -0.008359985426068306, -0.025507785379886627, -0.013368847779929638, 0.05657452717423439, 0.043459393084049225, 0.04782692715525627, -0.003416320076212287, 0.01870109513401985, 0.012818283401429653, 0.005443550180643797, 0.013633687980473042, -0.054036885499954224, -0.03541133180260658, -0.02732767164707184, -0.03802183270454407, 0.03033851645886898, 0.00967411044985056, -0.056369002908468246, 0.008732367306947708, -0.02609572932124138, -0.02887747995555401, -0.006239890120923519, -0.014087356626987457, -0.020485777407884598, 0.0070422315038740635, 0.0015377382514998317, -0.05420129746198654, -0.051019761711359024, 0.025586850941181183, -0.017937198281288147, -0.09491892904043198, 0.0011161217698827386, -0.03680342063307762, -0.010854468680918217, 0.032988179475069046, 0.016913311555981636, -0.03306087851524353, -0.029081275686621666, 0.011406410485506058, 0.014466098509728909, -0.05505768954753876, 0.08010650426149368, 0.021504607051610947, -0.01641877554357052, 0.0038049952127039433, 0.008158457465469837, 0.06274934113025665, 0.007228580303490162, -0.004688848741352558, 0.049932196736335754, 0.008116742596030235, -0.0012097186408936977, 0.03691371902823448, 0.041105788201093674, -0.002190942643210292, -0.079790398478508, -0.03739078715443611, 0.04878274351358414, -0.024275077506899834, 0.017418919131159782, -0.012572863139212132, -0.03098994307219982, -0.002751053310930729, -0.006282076705247164, 0.046698469668626785, 0.007631266489624977, 0.03175302594900131, -0.04348016157746315, 0.018865928053855896, -0.027866238728165627, 0.05846334248781204, 0.018965598195791245, -0.009833699092268944, -0.047900620847940445, -0.028602352365851402, 0.02075580321252346, 0.018419375643134117, 0.051126882433891296, 0.05387476459145546, -0.01842011883854866, -0.00022972245642449707, 0.07547969371080399, 0.078581303358078, 0.014521176926791668, -0.0017820156645029783, -0.008400371298193932, 0.039306990802288055, 0.03584715351462364, 0.0009916722774505615, 0.05890480428934097, 0.015827681869268417, -0.0036048886831849813, 0.001564204110763967, 0.0463959276676178, -0.03978179022669792, 0.004837975837290287, -0.036922525614500046, -0.0519171804189682, 0.06735362857580185, -0.004065286368131638, -0.01517468597739935, 0.012424981221556664, 0.07858072221279144, 0.037500519305467606, 0.027517270296812057, 0.013265740126371384, -0.08797097206115723, 0.042305197566747665, -0.02140873298048973, 0.0008133388473652303, 0.00918694119900465, -0.008267797529697418, 0.09549552202224731, 0.056891508400440216, 0.004480898380279541, 0.03804904967546463, -0.07430044561624527, -0.08554103225469589, -0.009276329539716244, 0.004929347895085812, 0.0439867340028286, -0.07300709187984467, 0.014110095798969269, 0.041355982422828674, 0.012635248713195324, 0.032709699124097824, -0.020694933831691742, -0.006775829941034317, 0.018065012991428375, -0.024096639826893806, -0.03720616176724434, 0.037383824586868286, 0.012165874242782593, -0.017195168882608414, -0.018886564299464226, -0.007515954319387674, 0.02385512739419937, 0.0020020233932882547, 0.00462700380012393, -0.010618238709867, 0.06299598515033722, 0.021302171051502228, 0.025616653263568878, -0.03665819391608238, -0.00016499482444487512, -0.03955511748790741, 0.028690332546830177, 0.04424005746841431, -0.026122476905584335, -0.019335787743330002, -0.016451243311166763, 0.14416906237602234, 0.072987861931324, -0.017042165622115135, -0.06343163549900055, 0.047889355570077896, 0.001329407561570406, -0.008176447823643684, 0.03487198054790497, -0.03655044734477997, -0.029781702905893326, -0.014178198762238026, -0.001550092943944037, -0.022287068888545036, 0.008332516998052597, -0.05335785821080208, 0.008508450351655483, 0.05890263617038727, -0.021641431376338005, 0.0357247069478035, 0.015351454727351665, -0.029282432049512863, -0.009311429224908352, -0.035701531916856766, -0.060398321598768234, 0.005777852144092321, -0.0006318396772257984, 0.0072724418714642525, 0.05538037046790123, -0.04740142077207565, 0.00043615835602395236, -0.008205701597034931, -0.025986358523368835, 0.057190198451280594, 0.034416571259498596, 0.05041041970252991, -0.04390143230557442, 0.0254957377910614, 0.008829768747091293, 0.017485886812210083, -0.03725748881697655, -0.0611506812274456, -0.020963894203305244, -0.015216012485325336, 0.04144096374511719, 0.018821563571691513, 0.026164991781115532, 0.012042720802128315, -0.02825067564845085, -0.003533827606588602, 0.01799548603594303, -0.014993463642895222, 0.0008062173728831112, -0.032001521438360214, -0.016487902030348778, -0.06446191668510437, -0.008685247041285038, 0.07961264252662659, -0.050967276096343994, -0.05322016030550003, -0.01593140885233879, -0.022185688838362694, 0.04533613473176956, -0.05893540382385254, -0.016800791025161743, 0.01878342404961586, 0.04978540167212486, 0.04831444099545479, -0.013892450369894505, 0.007706683129072189, 0.0877479761838913, 0.03515946492552757, 0.013312248513102531, 0.023492934182286263, 0.02611793763935566, 0.03753965348005295, -0.001884812954813242, -0.004906827583909035, 0.036788877099752426, 0.01041195448487997, -0.020560400560498238, -0.024749422445893288, -0.010483590885996819, -0.005349429324269295, -0.24455465376377106, 0.029545383527874947, -0.05102980136871338, -0.026244977489113808, 0.0075561185367405415, -0.042870063334703445, -0.0028303288854658604, -0.03553379327058792, -0.008616256527602673, -0.0032187949400395155, 0.0035961272660642862, -0.049380961805582047, -0.02590583823621273, 0.035943951457738876, 0.01044277660548687, 0.003297791350632906, 0.013036064803600311, -0.0472540408372879, 0.026058848947286606, 0.03663567081093788, 0.0171795841306448, -0.07700364291667938, 0.0007843329221941531, 0.016445469111204147, 0.046217065304517746, 0.03765468671917915, -0.07951273769140244, -0.003614495974034071, -0.07121413946151733, -0.03223579004406929, -0.02346523106098175, -0.011478266678750515, 0.0012927219504490495, 0.013242576271295547, -0.021439503878355026, -0.011373682878911495, 0.050035227090120316, -0.014771528542041779, 0.04650936648249626, 0.025797296315431595, -0.03173283487558365, -0.03245208412408829, 0.002122187754139304, 0.019604144617915154, 0.07229183614253998, 0.012846983037889004, -0.07072760909795761, 0.022801242768764496, -0.026327021420001984, 0.05601648613810539, -0.02940521202981472, -0.025670595467090607, -0.03843135014176369, 0.01849163882434368, 0.0031695000361651182, -0.01822459138929844, -0.026055432856082916, 0.004270961042493582, -0.030968399718403816, -0.022465912625193596, 0.026367908343672752, -0.043156810104846954, 0.010277003049850464, -0.013183956034481525, -0.011379520408809185, -0.07795877754688263, -0.06056390330195427, -0.029679985716938972, 0.0691143199801445, 0.03105609305202961, 0.005128536839038134, -0.0009468015050515532, -0.019477343186736107, -0.1200283020734787, -0.05374250188469887, -0.04436253011226654, 0.015835797414183617, -0.013014983385801315, -0.027267925441265106, 0.043144501745700836, -0.01992710493505001, -0.030228588730096817, 0.0052848816849291325, 0.05908540263772011, 0.00885734986513853, -0.016569441184401512, -0.012959192506968975, -0.023139720782637596, -0.0058959112502634525, 0.006039964500814676, 0.07702282816171646, -0.07357167452573776, 0.0017488898010924459, -0.0010648685274645686, -0.007810987997800112, 0.03607352823019028, 0.006830757949501276, 0.009781667962670326, 0.01607741415500641, -0.02914128638803959, 0.036661941558122635, -0.025495560839772224, -0.003807434579357505, -0.04042239859700203, -0.021967394277453423, -0.009774680249392986, -0.04415645822882652, 0.03052506037056446, 0.02780628204345703, 0.014716491103172302, -0.04410804435610771, -0.01951771415770054, 0.03147728741168976, -0.061829593032598495, -0.0205080509185791, 0.0057689230889081955, 0.01947447471320629, 0.016697626560926437, 0.06024981662631035, -0.020990390330553055, -0.06974538415670395, 0.022182364016771317, -0.003680920461192727, -0.03766731172800064, -0.04778119549155235, -0.03326771780848503, -0.013612535782158375, 0.006524727214127779, -0.0029175092931836843, 0.022067110985517502, -0.03288429230451584, 0.018722526729106903, 0.011515898630023003, -0.01402081549167633, 0.05431892350316048, 0.013723778538405895, -0.035229600965976715, -0.01026164274662733, -0.007132393773645163, 0.030374599620699883, 0.001891805906780064, 0.0024655170273035765, 0.03333505615592003, 0.06083594635128975, 0.022943932563066483, 0.006120913662016392, 0.017856864258646965, 0.02215828001499176, 0.0066930437460541725, 0.04144292697310448, -0.012574915774166584, -0.023548172786831856, 0.03353101387619972, -0.05584343150258064, -0.014308217912912369, -0.02795085310935974, 0.05425911024212837, -0.0029058598447591066, -0.030136527493596077, -0.04318227618932724, 0.0194840244948864, -0.05313950777053833, -0.0023999474942684174, -0.01025957427918911, -0.019189802929759026, 0.04872080311179161, -0.012940285727381706, 0.03236815333366394, -0.014947455376386642, 0.01610669307410717, 0.033478058874607086, -0.011115964502096176, -0.033496249467134476, 0.03969264775514603, 0.012789790518581867, -0.007064690813422203, 0.011391118168830872, 0.020840585231781006, 0.017988553270697594, -0.0048958356492221355, 0.007256740238517523, 0.010557204484939575, 0.01918589137494564, 0.03371093049645424, 0.058559272438287735, 0.06628288328647614, -0.02063985913991928, -0.002437892835587263, -0.011657723225653172, -0.04284187778830528, -0.0258241668343544, -0.024887099862098694, -0.02548006922006607, -0.009443430230021477, -0.04525477811694145, -0.05917031317949295, 0.03070228360593319, 0.06214190274477005, -0.020975742489099503, 0.004975814372301102, 0.01706945337355137, -0.030329566448926926, -0.0130842886865139, 0.024243982508778572, 0.033172670751810074, -0.06289219111204147, -0.0037108201067894697, -0.0036694391164928675, -0.005183890927582979, -0.006227301899343729, 0.042760834097862244, -0.04072123020887375, -0.03509426862001419, -0.013062181882560253, 0.008730542846024036, 0.01797097735106945, 0.015116115100681782, 0.0030818432569503784, -0.0006227139965631068, -0.013508254662156105, 0.036856554448604584, 0.015127732418477535, 0.0172091256827116, -0.0186472088098526, -0.004867148585617542, 0.022239303216338158, -0.05490608513355255, -0.019284991547465324, 0.03911976516246796, -0.014488860964775085, 0.0511385053396225, -0.026043657213449478, 0.032310646027326584, -0.003436523489654064, 0.029525404796004295, -0.03121778555214405, -0.06236300244927406, 0.016401194036006927, -0.03358518332242966, 0.06810847669839859, -0.03841208666563034, -0.021161388605833054, -0.019426818937063217, -0.00702122924849391, -0.0206898283213377, -0.0061858161352574825, -0.0003383201255928725, -0.020673364400863647, 0.01982025057077408, 0.040662940591573715, 0.000059781246818602085, 0.04880796745419502, -0.006523868069052696, -0.02108955942094326, 0.048945352435112, -0.010433200746774673, -0.02759179286658764, -0.004908999428153038, -0.054350998252630234, 0.010912992991507053, -0.032742489129304886, 0.05058443173766136, -0.03411075845360756, 0.04431048780679703, 0.046177785843610764, 0.02037881128489971, 0.028723815456032753, -0.009764186106622219, 0.04372397065162659, -0.015718258917331696, -0.027597511187195778, -0.09658800810575485, -0.0001262836594833061, 0.035657040774822235, 0.019332611933350563, -0.018379854038357735, 0.017658783122897148, -0.04185361787676811, 0.004047134891152382, -0.057398319244384766, -0.009673974476754665, 0.0488118976354599, 0.009961110539734364, -0.004612598102539778, 0.008705869317054749, -0.06440389901399612, 0.0065188962034881115, 0.05439772456884384, 0.01655823551118374, -0.019564954563975334, -0.011774401180446148, 0.04905681312084198, -0.03154206648468971, 0.05210303142666817, -0.02207145281136036, -0.011484375223517418, 0.06593986600637436, 0.013578630052506924, 0.011999749578535557, 0.05629800260066986, -0.023067468777298927, 0.0416351817548275, 0.006637840997427702, 0.012076182290911674, 0.02101687155663967, 0.0406876876950264, -0.012174629606306553, -0.040647733956575394, 0.013212298043072224, 0.04444350674748421, -0.03276405483484268, -0.08228258043527603, 0.07696124911308289, -0.0036839405074715614, -0.0404181145131588, -0.07541532814502716, 0.013913961127400398, -0.022287799045443535, -0.017054013907909393, -0.03501977026462555, -0.02199048548936844, -0.029580479487776756, 0.061863016337156296, -0.012028480879962444, 0.003782619722187519, 0.06975477933883667, 0.016877077519893646, -0.02165752276778221, 0.002453891560435295, 0.04920194298028946, 0.08714692294597626, 0.03959736227989197, -0.004103607498109341, 0.05461839959025383, -0.02654484286904335, -0.032608985900878906, -0.0075053260661661625, -0.025212010368704796, -0.027466773986816406, -0.04629611596465111, 0.03200480714440346, 0.07303645461797714, -0.023931674659252167, 0.07550045847892761, -0.0075309970416128635, -0.014422070235013962, -0.008835773915052414, -0.03984932601451874, 0.03744584321975708, 0.07376962900161743, 0.003094043815508485, 0.01540486328303814, -0.010411253198981285, -0.01299330499023199, 0.035573963075876236, -0.017196834087371826, -0.02542835846543312, 0.005472049117088318, 0.013860384002327919, -0.0012586244847625494, 0.021112550050020218, 0.034872159361839294, 0.06888729333877563, -0.051299087703228, -0.014042074792087078, 0.026493439450860023, 0.024243678897619247, -0.008489927276968956, -0.006236487999558449, -0.011593249626457691, -0.023942450061440468, -0.02503461390733719, -0.03779951110482216, -0.022229015827178955, -0.05933571234345436, -0.03104495070874691, 0.026573197916150093, -0.004015906248241663, -0.035763148218393326, 0.015950899571180344, -0.04889821633696556, -0.0329168438911438, -0.06338761746883392, -0.06975626945495605, -0.01809353567659855, -0.09536811709403992, -0.014364458620548248, -0.02703859470784664, -0.054101910442113876, -0.03982017561793327, -0.015438787639141083, -0.015007500536739826, -0.001426941598765552, 0.007681757211685181, 0.002939369063824415, -0.04902951791882515, 0.01087261363863945, 0.0171658955514431, 0.022424550727009773, 0.01921737752854824, 0.05098620802164078, -0.011988169513642788, -0.0070859771221876144, -0.03187118098139763, 0.012717082165181637, 0.0685272067785263, 0.03497380390763283, 0.008608169853687286, -0.04980367049574852, 0.007521336432546377, 0.01317539531737566, 0.006717414129525423, -0.06892985850572586, 0.02262517437338829, 0.03893645852804184, -0.0037402419839054346, 0.04551052302122116, -0.01430125255137682, -0.009861957281827927, -0.048480477184057236, 0.014182453975081444, 0.03540745750069618, -0.011573630385100842, 0.03572240471839905, -0.06398449093103409, 0.040199778974056244, 0.024022163823246956, -0.02951597236096859, -0.015357923693954945, 0.012262209318578243, -0.027050675824284554, 0.008340328931808472, -0.05905696749687195, -0.011447584256529808, -0.044287268072366714, -0.08038343489170074, -0.02142275683581829, 0.011463725939393044, -0.0434890016913414, -0.012765346094965935, -0.019299756735563278, 0.019895412027835846, 0.018155904486775398, 0.05224994570016861, -0.0466013066470623, 0.03811857849359512, -0.03748154640197754, -0.01636267825961113, -0.03156641125679016, 0.046304989606142044, -0.01234079897403717, 0.01908576488494873, 0.020316481590270996, -0.0617387592792511, -0.005305444821715355, -0.05005551874637604, 0.017707079648971558, 0.01574631966650486, 0.016323011368513107, 0.05443783476948738 ]
[ -0.036743391305208206, -0.0441809818148613, -0.034542400389909744, -0.05839565396308899, 0.035020746290683746, 0.008089827373623848, -0.04764510318636894, -0.0017049240414053202, 0.06595263630151749, 0.011877638287842274, 0.012886933982372284, -0.027457373216748238, 0.026279563084244728, -0.010629817843437195, -0.00717560201883316, -0.039504021406173706, -0.030145777389407158, -0.05473380908370018, -0.06594441086053848, 0.034495413303375244, -0.002882236847653985, -0.01973411999642849, -0.04140221327543259, -0.07260233163833618, 0.030776435509324074, 0.032602790743112564, 0.029174471274018288, -0.03918490931391716, -0.0021878548432141542, -0.20471307635307312, 0.006561969872564077, -0.0007663005962967873, 0.041739512234926224, -0.03287063166499138, -0.03405769169330597, -0.015703611075878143, 0.030950849875807762, -0.019110005348920822, 0.05445266515016556, 0.04777708277106285, 0.00861312821507454, 0.021212665364146233, -0.02926763892173767, -0.019086388871073723, 0.014695536345243454, 0.013764453120529652, -0.037776511162519455, -0.012092478573322296, -0.00011834510223707184, -0.0010432355338707566, -0.03852719068527222, 0.02346866950392723, -0.04904869943857193, 0.03926877677440643, 0.015154505148530006, -0.0032181432470679283, 0.03131914138793945, 0.05456019565463066, 0.00734109990298748, -0.005965524353086948, 0.03193124011158943, 0.00985033717006445, -0.14609111845493317, 0.10581007599830627, -0.022633574903011322, 0.00868732575327158, -0.02204831875860691, -0.020845063030719757, -0.018790649250149727, 0.0762157291173935, -0.02098197117447853, -0.03531111776828766, -0.036996401846408844, 0.06469003856182098, -0.0037287247832864523, -0.008418958634138107, -0.06173737347126007, 0.02483903057873249, 0.023533524945378304, -0.036188267171382904, -0.05708741396665573, -0.010318905115127563, -0.07330337911844254, 0.002343544503673911, -0.002484312979504466, 0.03853297978639603, 0.018609432503581047, 0.037619926035404205, -0.014156597666442394, 0.01434637326747179, 0.021527675911784172, 0.03067108616232872, 0.01163448952138424, 0.04387163743376732, -0.06584329158067703, -0.02290218509733677, 0.01693500019609928, 0.018657084554433823, 0.004173583816736937, 0.3503052890300751, -0.015755929052829742, 0.006083635613322258, -0.03580257296562195, 0.01398015022277832, -0.03157198801636696, -0.01860101707279682, -0.0035557416267693043, -0.05269220843911171, -0.0004420157347340137, -0.033535923808813095, -0.00172649254091084, -0.07291248440742493, 0.05354941636323929, -0.11494944989681244, -0.02805858850479126, -0.012092883698642254, -0.00430368073284626, 0.002836412750184536, -0.002053374657407403, -0.0037773780059069395, 0.02256455086171627, 0.020055605098605156, 0.03457789123058319, -0.013117555528879166, 0.08186600357294083, 0.06944115459918976, 0.04728098213672638, 0.07867804169654846, 0.04252876341342926, 0.045293379575014114, 0.04084115847945213, -0.007146535906940699, -0.0590762123465538, 0.01682378724217415, -0.015761999413371086, -0.01866270788013935, 0.023017635568976402, -0.0005239941528998315, 0.01631568744778633, 0.038654375821352005, 0.020728111267089844, -0.007862620055675507, 0.06447473168373108, -0.013492795638740063, -0.0033305641263723373, 0.13199909031391144, -0.002382539911195636, 0.03828928992152214, -0.056458353996276855, -0.05604583024978638, -0.0198916457593441, 0.020460421219468117, 0.052821118384599686, -0.05847448110580444, -0.029420673847198486, 0.06610165536403656, 0.05578411743044853, -0.01879536546766758, -0.06291275471448898, -0.031827013939619064, -0.0378006249666214, -0.01791013404726982, -0.025269117206335068, 0.03397843986749649, 0.0343506783246994, -0.11423582583665848, -0.03114623948931694, 0.06118323281407356, -0.01322344783693552, -0.06532765924930573, 0.015104764141142368, 0.01787593401968479, -0.08371446281671524, -0.005050262901932001, 0.09263164550065994, -0.0012307448778301477, -0.047751858830451965, -0.0005142920999787748, 0.06362731754779816, 0.06649105995893478, -0.03239050507545471, 0.007803101092576981, -0.016324369236826897, -0.014812173321843147, -0.04384363815188408, -0.05754101648926735, -0.06725823134183884, 0.02400447428226471, 0.030716776847839355, -0.025533083826303482, 0.01046185102313757, -0.039576128125190735, -0.030493710190057755, 0.056199364364147186, -0.05605815351009369, -0.06269460171461105, -0.005796586629003286, 0.03786086291074753, 0.06279432773590088, -0.03174809738993645, 0.05607154220342636, -0.0006647603586316109, -0.002683870494365692, 0.005381759721785784, -0.03793497011065483, 0.0216636061668396, 0.0630195215344429, -0.06377571076154709, 0.05622260645031929, 0.034557610750198364, -0.0924995020031929, 0.04756196588277817, -0.024159586057066917, 0.030274687334895134, -0.03679148480296135, -0.014112982898950577, -0.016171837225556374, -0.002381913596764207, 0.018502438440918922, -0.008507350459694862, 0.010962603613734245, -0.03994232416152954, -0.033518776297569275, -0.3522021174430847, 0.007543633226305246, -0.014963511377573013, -0.03759881481528282, 0.003675356274470687, -0.02884593792259693, -0.02359039895236492, -0.0173204205930233, -0.0328177846968174, 0.04414244368672371, 0.07063665986061096, -0.0012483178870752454, -0.011888549663126469, -0.0988009050488472, -0.025969969108700752, 0.03323417156934738, -0.044682905077934265, -0.0659259483218193, -0.011963607743382454, 0.003699942259117961, 0.031143642961978912, -0.028205333277583122, -0.04392854869365692, -0.07670816779136658, 0.009686139412224293, -0.010192746296525002, 0.10800936818122864, -0.04434748739004135, 0.04065387696027756, -0.0822543352842331, 0.09973149746656418, -0.017285743728280067, 0.0021637114696204662, 0.05880557745695114, 0.03172871097922325, -0.051542337983846664, -0.030712101608514786, 0.012699788436293602, -0.02826801687479019, 0.005829024128615856, -0.020285282284021378, 0.026224717497825623, -0.016816643998026848, -0.02496306784451008, -0.000403495563659817, -0.010677441954612732, -0.011338752694427967, -0.01759241707623005, 0.009937025606632233, 0.07046838849782944, -0.004448261111974716, 0.018495220690965652, 0.03352976590394974, 0.021493269130587578, 0.02880237065255642, -0.05225544795393944, -0.069073885679245, -0.0225378330796957, -0.01844067871570587, -0.0021147101651877165, 0.0326995849609375, 0.010951701551675797, 0.030254101380705833, -0.03979841247200966, 0.0008408420835621655, 0.03243129700422287, -0.014392619952559471, 0.016400299966335297, 0.059411004185676575, -0.015317387878894806, -0.018836598843336105, 0.07755226641893387, 0.005800433456897736, 0.08384892344474792, 0.08211465924978256, 0.03042789362370968, -0.00041144504211843014, 0.003741566324606538, -0.014248047955334187, 0.0008113479125313461, 0.008142068982124329, -0.0539579764008522, 0.057320065796375275, -0.012083416804671288, -0.02766484208405018, 0.04066121205687523, -0.005465703085064888, 0.013715152628719807, 0.03145282715559006, -0.01548688393086195, -0.02213352918624878, 0.0010588709264993668, -0.011777122505009174, -0.029394550248980522, 0.06979252398014069, -0.012104627676308155, -0.24285513162612915, 0.018336014822125435, -0.017689993605017662, 0.063496433198452, 0.04677862673997879, 0.016725685447454453, 0.024936212226748466, -0.022627444937825203, -0.031619880348443985, -0.0195989441126585, 0.029059818014502525, 0.026127856224775314, 0.00820133276283741, 0.004775857552886009, 0.003978583496063948, 0.02144782990217209, 0.0007000616169534624, -0.004034500103443861, 0.05222944915294647, 0.0008397079654969275, 0.07833396643400192, -0.043236881494522095, 0.19183596968650818, 0.06104457378387451, -0.0028493725694715977, -0.021610599011182785, -0.009841148741543293, -0.016478225588798523, 0.06911930441856384, 0.015067681670188904, -0.00543615547940135, 0.02481124922633171, 0.06000160798430443, -0.0008002410759218037, 0.010952943935990334, 0.04187036678195, -0.020483151078224182, 0.08439002186059952, -0.010337013751268387, -0.06936810165643692, -0.006366277113556862, 0.01744520105421543, -0.02507016807794571, 0.06236833333969116, 0.08442004024982452, -0.032013654708862305, -0.02941429242491722, -0.03378449007868767, -0.014039160683751106, 0.03479943424463272, -0.04715609550476074, -0.010848484002053738, 0.02727409638464451, -0.00029610274941660464, 0.04933185875415802, 0.06012016534805298, 0.014863090589642525, 0.006172699388116598, 0.04140879213809967, 0.02676142193377018, 0.0011852694442495704, -0.052842043340206146, 0.08201508969068527, 0.052273474633693695, -0.0005482516135089099 ]
[ -0.010744850151240826, 0.0427543967962265, -0.026202961802482605, 0.010754698887467384, 0.003476120997220278, 0.029677502810955048, -0.010709491558372974, 0.0169370174407959, -0.04335702210664749, -0.02713802270591259, -0.08788757026195526, 0.0004962802049703896, 0.03250093758106232, -0.03766641393303871, -0.010882645845413208, -0.010048837400972843, -0.012626410461962223, 0.01860773377120495, 0.050167374312877655, -0.03232808783650398, -0.006359024439007044, 0.06594274938106537, 0.035300545394420624, 0.023812929168343544, -0.0014632107922807336, -0.032153643667697906, -0.04151874780654907, 0.056873906403779984, 0.030998170375823975, -0.11087316274642944, -0.04133370518684387, -0.01420050673186779, -0.00919091422110796, 0.024500487372279167, -0.03727806359529495, -0.027300503104925156, 0.013146135956048965, 0.044828273355960846, 0.003966611344367266, 0.034065790474414825, 0.027063151821494102, -0.021309301257133484, -0.029207972809672356, 0.016715044155716896, -0.0031117540784180164, -0.006519133225083351, -0.05406274273991585, -0.006142462138086557, -0.01970604807138443, 0.008749520406126976, -0.03121587447822094, 0.006977287586778402, -0.009377523325383663, -0.01390719786286354, 0.045013997703790665, 0.02035387232899666, -0.04712536185979843, -0.031649015843868256, 0.02456941269338131, -0.04337368160486221, -0.02316899597644806, -0.023542366921901703, -0.05894950032234192, -0.03333685174584389, -0.0207512229681015, -0.044340502470731735, -0.0158986859023571, 0.02547380141913891, 0.023936444893479347, 0.00004450040069059469, 0.013677624054253101, 0.011781246401369572, -0.05128534510731697, -0.026467083021998405, -0.022052211686968803, 0.07941106706857681, 0.02510087378323078, -0.05088881403207779, -0.013668617233633995, -0.0020052383188158274, -0.024644561111927032, 0.016037261113524437, -0.030171478167176247, -0.010173765942454338, -0.04153412580490112, -0.020146405324339867, 0.016382630914449692, 0.03730742260813713, 0.006939591374248266, -0.004086292814463377, -0.0032217956613749266, 0.015478511340916157, 0.02260676585137844, 0.022600438445806503, -0.1096496507525444, -0.013353430666029453, 0.028753958642482758, -0.021249966695904732, 0.029350735247135162, 0.7977603673934937, -0.00654232082888484, 0.0026762315537780523, 0.010784548707306385, -0.00833571795374155, -0.017797552049160004, -0.010886038653552532, 0.024913400411605835, -0.027488619089126587, 0.003017950803041458, -0.05576884746551514, -0.00875025149434805, -0.0007278727716766298, -0.023407401517033577, -0.020549187436699867, 0.00031940030748955905, 0.019493762403726578, 0.00991209875792265, -0.041302356868982315, -0.0028372909873723984, -0.04625925421714783, 0.0345575176179409, -0.0162909347563982, 0.017755065113306046, 0.0696907564997673, -0.011962084099650383, -0.164445698261261, -0.02438679151237011, -7.24530783745496e-33, 0.025744076818227768, -0.056998711079359055, 0.06835029274225235, 0.005780389998108149, 0.037967126816511154, 0.021287743002176285, 0.001852219458669424, 0.010752050206065178, -0.0005537414108403027, 0.007140649948269129, -0.009119388647377491, 0.003743757726624608, -0.010041436180472374, -0.004816625267267227, 0.04178877919912338, -0.0188333448022604, 0.020473044365644455, 0.0308841522783041, 0.006634584162384272, -0.014284182339906693, 0.012591486796736717, 0.022726673632860184, -0.013463269919157028, 0.03543347492814064, 0.018485350534319878, 0.04021630436182022, -0.008811092004179955, -0.0074344538152217865, -0.059962816536426544, -0.05219532549381256, -0.052681222558021545, 0.0439167357981205, -0.027931159362196922, -0.026432469487190247, 0.03095133975148201, -0.050287023186683655, 0.017358485609292984, 0.0019338354468345642, 0.01038691122084856, -0.03831079229712486, -0.027502579614520073, 0.00564039358869195, -0.0019385371124371886, -0.016419637948274612, 0.022521553561091423, 0.009302910417318344, 0.01569703035056591, -0.0025995199102908373, -0.01020501647144556, 0.001968596363440156, 0.011726586148142815, 0.02545345388352871, -0.006067042704671621, 0.021048177033662796, 0.02926791086792946, 0.006118897348642349, 0.017170162871479988, 0.03279370814561844, 0.05408436059951782, 0.02044415846467018, 0.0017648105276748538, -0.004071087576448917, 0.007584515493363142, 0.03882380947470665, 0.003786474233493209, 0.022675495594739914, -0.0083632105961442, 0.040037740021944046, 0.023427050560712814, 0.035468120127916336, 0.01256495714187622, 0.029823388904333115, -0.00034411405795253813, -0.06017349660396576, 0.0420621819794178, -0.01576223038136959, 0.0039981696754693985, -0.0008344781235791743, 0.025527773424983025, 0.04857164993882179, 0.050473324954509735, 0.020248431712388992, -0.03768572583794594, -0.005661800503730774, -0.019628804177045822, -0.05134103074669838, 0.019404223188757896, 0.0570719949901104, -0.031688060611486435, -0.008530714549124241, 0.01660793460905552, -0.03415733203291893, 0.0467800498008728, -0.03614730387926102, -0.05361677333712578, 6.689842675653274e-33, -0.02014346979558468, 0.028644641861319542, -0.026211824268102646, -0.029235057532787323, 0.010235576890408993, 0.007958834059536457, 0.06012915447354317, -0.002459149807691574, -0.012234176509082317, 0.03140923008322716, -0.03326857462525368, 0.008130792528390884, -0.0032351387199014425, 0.023990361019968987, -0.004658680874854326, -0.0013154573971405625, 0.002096722135320306, -0.01728406921029091, -0.00726316636428237, 0.028278576210141182, 0.004662523977458477, 0.01773759350180626, 0.008001325652003288, 0.04137006402015686, -0.0004251321079209447, 0.011684546247124672, 0.020282268524169922, 0.0017333375290036201, -0.029843665659427643, 0.01916148141026497, 0.0033082193695008755, -0.0305668693035841, 0.02583390288054943, 0.01085174735635519, -0.0010861455230042338, -0.016563961282372475, 0.0322667695581913, -0.006465894170105457, 0.014724126085639, -0.0026616519317030907, 0.006009465083479881, 0.004037731327116489, 0.042332153767347336, 0.02046886645257473, 0.04756792634725571, 0.013952363282442093, 0.016276564449071884, -0.013335024006664753, -0.007792977150529623, 0.0381733663380146, 0.029847722500562668, 0.028317231684923172, -0.061283305287361145, 0.0275267343968153, 0.004108182620257139, -0.03624089062213898, -0.03140846639871597, 0.04069631174206734, 0.01334812305867672, -0.020799100399017334, -0.04856971651315689, 0.01049132738262415, -0.05224477872252464, 0.014862756244838238, 0.005874841008335352, 0.0037270502652972937, -0.02064869925379753, -0.013468665070831776, -0.027535073459148407, -0.016378847882151604, -0.0037938652094453573, 0.0038278934080153704, 0.04014871269464493, 0.04544256627559662, -0.03085939772427082, -0.03201264142990112, -0.027420220896601677, -0.010938361287117004, 0.0031793639063835144, 0.047148361802101135, 0.007399320602416992, -0.048214178532361984, 0.011668902821838856, 0.020854447036981583, -0.013928472995758057, -0.021912895143032074, -0.015498433262109756, -0.015336926095187664, 0.010033778846263885, -0.008628429844975471, 0.022459877654910088, -0.05349624902009964, -0.02916954644024372, 0.045163631439208984, 0.0004022053617518395, -1.239493752080989e-8, -0.00044396246084943414, -0.02074902318418026, -0.009589617140591145, -0.004780870396643877, 0.02854946441948414, 0.00019691823399625719, -0.017865436151623726, -0.018079089000821114, 0.029772356152534485, -0.005477678496390581, 0.004546533338725567, -0.020277690142393112, 0.040350355207920074, 0.03385212644934654, 0.008028220385313034, -0.039082854986190796, 0.018838904798030853, -0.005015358328819275, 0.024094557389616966, -0.030498120933771133, -0.07286878675222397, 0.08938388526439667, -0.027801353484392166, -0.04343055188655853, -0.007050380110740662, -0.00861876830458641, -0.01623184233903885, -0.047219935804605484, 0.022745810449123383, -0.03401773050427437, 0.038066316395998, -0.005163756664842367, -0.06485063582658768, 0.04428819939494133, -0.005799248348921537, -0.03358178213238716, 0.04901197925209999, 0.04287147894501686, 0.03810703009366989, -0.0014857195783406496, -0.05166224390268326, -0.029324335977435112, -0.012237273156642914, -0.02492317371070385, -0.04829653725028038, -0.0163174569606781, -0.03431084379553795, 0.005568424239754677, 0.03988880664110184, -0.04032030329108238, 0.034091148525476456, 0.0071219587698578835, 0.037569236010313034, -0.010924985632300377, 0.03701188787817955, -0.02969583310186863, -0.0034275550860911608, -0.0018919254653155804, 0.003245180007070303, 0.007104585412889719, 0.017568431794643402, 0.010030285455286503, 0.011815833859145641, 0.0047129010781645775 ]
duckdb-sql-create-list-numbers
https://markhneedham.com/blog/2023/05/24/duckdb-sql-create-list-numbers
false
2023-05-23 02:44:37
Arc Browser: Building a plugin (Boost) with help from ChatGPT
[ "chatgpt", "arc", "til" ]
[ "ChatGPT" ]
I've been using the https://arc.net/[Arc Browser^] for a couple of months now and one of my favourite things is the simplicity of the plugin (or as they call it, 'Boost') functionality. I wanted to port over a Chrome bookmark that I use to capture the podcasts that I've listened to on https://player.fm/[Player.FM^]. In this blog post I'll show how ChatGPT helped me convert the bookmark code to an Arc Boost. I started with this code that finds all the listened to podcasts and then writes them out to the console: [source, javascript] ---- javascript:(()=>{ function decodeHtml(html) { var txt = document.createElement("textarea"); txt.innerHTML = html; return txt.value; } let rows = $("article[data-played-at]").map(function(idx, ele) { let row = "* Listened to " + $(ele).attr('data-title') + " by " + $(ele).find("div.title").text() + " - https://player.fm/series/" + $(ele).attr('data-series-id') + "/" + $(ele).attr('data-slug'); return decodeHtml(row); }).get(); setTimeout(async()=>{ console.log(rows.join("\n")); alert(rows.length + " podcasts copied") }, 2000)} )() ---- An example of the output is shown below: [source, text] ---- * Listened to A groundbreaking new proof for Pythagoras’ Theorem? by More or Less: Behind the Stats - https://player.fm/series/1301260/a-groundbreaking-new-proof-for-pythagoras-theorem * Listened to Twitter storm by Trending - https://player.fm/series/1301465/twitter-storm * Listened to After Pulse: Suddenly Unemployed by Community Pulse - https://player.fm/series/1409158/after-pulse-suddenly-unemployed ---- I was relying on jQuery to do find the parts of the page, but that isn't available in an Arc Boost, so I need to use the built in APIs instead. ChatGPT guided me towards the `document.querySelectorAll` function and converted this: [source, javascript] ---- $("article[data-played-at]") ---- to: [source, javascript] ---- document.querySelectorAll("article[data-played-at]") ---- But then I wasn't sure how to call the `map` function on that output, so I asked ChatGPT again. image::{{<siteurl>}}/uploads/2023/04/chatgpt-opener.png[ChatGPT - Iterate over querySelectorAll] So I did that and then needed to work out how to extract attributes from each element. The function calls that ChatGPT told me to make didn't exist, so I had to fall back on the documentation (I know!). I eventually ended up with the following code to extract the rows: [source, javascript] ---- let rows = Array.from(document.querySelectorAll("article[data-played-at]")).map(function(ele) { let row = "* Listened to " + ele.attributes['data-title'].value + " by " + ele.querySelector("div.title").textContent + " - https://player.fm/series/" + ele.attributes['data-series-id'].value + "/" + ele.attributes['data-slug'].value; return decodeHtml(row); }); ---- Next I asked it to add a button to the page that I could click on to copy the listened episodes to the clipboard. It first suggested using `navigator.clipboard`, but that wasn't working for me at the time, so it suggested I used `document.execCommand('copy')` instead. The full code for the plugin looks like this: [source, javascript] ---- function decodeHtml(html) { var txt = document.createElement("textarea"); txt.innerHTML = html; return txt.value; } // Create an image const buttonDiv = document.createElement("div"); buttonDiv.style.display = "flex"; buttonDiv.style.justifyContent = "center"; buttonDiv.style.marginBottom = "16px"; const button = document.createElement("button"); button.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"> <path d="M11 0H3a2 2 0 0 0-2 2v9h2V2h8V2a2 2 0 0 0-2-2zm1 4H4v9h8V4z"/> </svg> Copy Podcasts`; button.style.display = "flex"; button.style.alignItems = "center"; button.style.gap = "8px"; button.style.backgroundColor = "white"; button.style.border = "1px solid #ccc"; button.style.borderRadius = "4px"; button.style.padding = "8px"; button.onclick = function () { let rows = Array.from(document.querySelectorAll("article[data-played-at]")).map(function(ele) { let row = "* Listened to " + ele.attributes['data-title'].value + " by " + ele.querySelector("div.title").textContent + " - https://player.fm/series/" + ele.attributes['data-series-id'].value + "/" + ele.attributes['data-slug'].value; return decodeHtml(row); }); const textToCopy = rows.join("\n"); const textArea = document.createElement('textarea'); textArea.value = textToCopy; document.body.appendChild(textArea); textArea.select(); document.execCommand('copy'); document.body.removeChild(textArea); console.log(textToCopy); alert(rows.length + " podcasts copied") }; buttonDiv.appendChild(button); const preamble = document.querySelector(".preamble"); preamble.insertAdjacentElement("beforebegin", buttonDiv); ---- You can see the Boost in action below: image::{{<siteurl>}}/uploads/2023/05/arc-plugin.gif[Animation of an Arc Boost copying listened episodes from Player.FM to the clipboard]
In this post I'll explain how I built a plugin for the Arc Browser with help from ChatGPT.
uploads/2023/05/arc-banner.png
[ -0.0025100556667894125, -0.01567818969488144, 0.008206010796129704, 0.02861621230840683, 0.033223092555999756, -0.009951441548764706, 0.01345303375273943, 0.04548870027065277, 0.02733764238655567, -0.006543018389493227, -0.017109692096710205, 0.035770729184150696, -0.06635060906410217, 0.0065261851996183395, 0.003812274895608425, 0.05551277473568916, 0.06236596778035164, -0.017576707527041435, 0.011699280701577663, -0.005493407603353262, 0.005278110969811678, 0.05431680753827095, 0.0005885285791009665, 0.04345357045531273, 0.02957695722579956, 0.015167415142059326, 0.010031607933342457, 0.00015157971938606352, -0.0690617710351944, 0.015909461304545403, 0.03914059326052666, 0.020482752472162247, -0.004336370155215263, -0.03846117481589317, 0.033341336995363235, 0.0016028095269575715, 0.0024021107237786055, 0.0258932001888752, -0.0055269659496843815, 0.042745441198349, -0.07569743692874908, 0.0054244473576545715, -0.008773239329457283, 0.041625428944826126, -0.0191936232149601, 0.03783440589904785, -0.038266003131866455, 0.019620854407548904, -0.019471550360322, -0.009699543006718159, -0.06998877227306366, 0.040746890008449554, -0.00660793436691165, -0.0008820169605314732, 0.009044840931892395, 0.0679968073964119, 0.007219388615339994, -0.03816412389278412, 0.026860088109970093, -0.06085284799337387, 0.01043823454529047, 0.003727263305336237, -0.0023737121373414993, 0.02884504199028015, 0.0008735648007132113, -0.015433993190526962, -0.006709676701575518, 0.05744355171918869, -0.013080642558634281, -0.02407730184495449, -0.02287631295621395, 0.0034544740337878466, -0.05309373512864113, -0.015461744740605354, 0.007311417255550623, -0.02862941473722458, -0.023178501054644585, 0.04140668362379074, 0.02075856551527977, 0.01634848490357399, -0.011252006515860558, 0.017335496842861176, 0.024065526202321053, 0.025405140593647957, -0.022821247577667236, -0.0546737015247345, -0.011829176917672157, -0.029292112216353416, -0.06846851855516434, 0.07493404299020767, 0.013843357563018799, -0.06337978690862656, 0.037379033863544464, 0.020070865750312805, 0.017948541790246964, 0.004777126479893923, 0.017907051369547844, -0.002528382232412696, -0.027737556025385857, -0.04195885732769966, -0.032870929688215256, -0.01058419793844223, 0.031794287264347076, 0.0028170289006084204, -0.0716286450624466, 0.011230929754674435, 0.00275070290081203, -0.009912116453051567, 0.018902488052845, 0.00009203021181747317, -0.011741039343178272, 0.011237891390919685, -0.025305459275841713, 0.02292165532708168, -0.06664500385522842, 0.047692738473415375, 0.022139552980661392, 0.00025544592062942684, -0.01892273500561714, 0.028374359011650085, 0.06332986801862717, 0.03586357831954956, -0.016645953059196472, 0.06771296262741089, -0.006814955733716488, 0.01940537430346012, -0.019697248935699463, 0.05305330827832222, -0.01153763011097908, -0.045761678367853165, -0.009692604653537273, 0.03427155688405037, -0.039403416216373444, 0.00088982138549909, 0.022138012573122978, 0.009324080310761929, -0.020728906616568565, 0.023223834112286568, 0.04851382598280907, 0.0558885857462883, -0.007242752239108086, -0.029349176213145256, 0.0026097067166119814, -0.02056841179728508, 0.03885398432612419, -0.00905651319772005, -0.04655906558036804, -0.01965384930372238, -0.027318604290485382, 0.038280390202999115, 0.0015523775946348906, 0.0038804702926427126, 0.061075594276189804, -0.021847395226359367, -0.005350955296307802, 0.05651197209954262, 0.040510088205337524, 0.0021672530565410852, -0.02461276575922966, 0.004462619312107563, 0.05302273854613304, 0.036642398685216904, 0.008359665051102638, 0.08181661367416382, -0.021268706768751144, -0.002758376533165574, 0.00010660389671102166, 0.06305397301912308, -0.01576046086847782, -0.027939459308981895, -0.05663638934493065, -0.018136685714125633, 0.06943973898887634, -0.02607790380716324, -0.018021810799837112, 0.02440638840198517, 0.0970933586359024, 0.01769343949854374, 0.018583564087748528, -0.0045899744145572186, -0.06795317679643631, 0.04552280902862549, 0.03557557240128517, 0.021422673016786575, 0.04526681452989578, -0.011125410906970501, 0.0935656800866127, 0.04278615862131119, 0.019736021757125854, 0.04052159562706947, -0.0838128924369812, -0.07986514270305634, -0.04940301179885864, 0.015447971411049366, 0.0856538712978363, -0.044588472694158554, 0.007240536622703075, 0.0880354791879654, 0.05714864283800125, 0.04238470643758774, 0.00811842642724514, -0.02524542063474655, 0.03750783950090408, -0.0363704189658165, -0.045815639197826385, 0.02700391411781311, 0.03006962686777115, -0.017930367961525917, -0.05824025720357895, -0.003985527902841568, -0.018314722925424576, 0.009316104464232922, 0.03380661457777023, -0.005947662051767111, 0.01459968090057373, -0.007695917505770922, 0.039216697216033936, -0.024448588490486145, 0.025152720510959625, -0.046397194266319275, 0.011466454714536667, -0.02104107104241848, -0.011876418255269527, -0.00880493689328432, -0.0031554054003208876, 0.1430453658103943, 0.061423540115356445, -0.003538282588124275, -0.041521962732076645, 0.026650061830878258, -0.0014904167037457228, -0.03176703676581383, -0.011555004864931107, -0.022784480825066566, -0.013362983241677284, 0.008749605156481266, -0.019510231912136078, -0.01110391691327095, -0.013712167739868164, -0.03330808877944946, 0.0018623386276885867, 0.044572971761226654, -0.0048521412536501884, 0.052441783249378204, 0.006090967450290918, -0.022632762789726257, 0.014496064744889736, -0.011015631258487701, -0.04268280044198036, -0.010203050449490547, 0.02727366052567959, -0.019485317170619965, 0.014629424549639225, -0.017181169241666794, -0.02737892046570778, -0.013468220829963684, -0.044703975319862366, -0.011745410971343517, 0.02596263401210308, 0.05932869762182236, 0.02526187337934971, 0.018463941290974617, -0.022272123023867607, -0.0014352777507156134, -0.01307725254446268, -0.07811452448368073, -0.030789297074079514, -0.02817923203110695, 0.015380249358713627, -0.0072809671983122826, 0.017702363431453705, 0.03878835216164589, 0.0264885351061821, -0.00005795290053356439, -0.022976921871304512, 0.012198042124509811, 0.04155730828642845, -0.02333366498351097, -0.02720784768462181, -0.019334595650434494, -0.02977602370083332, 0.0466194786131382, -0.07702866941690445, -0.03259625658392906, -0.009035290218889713, -0.06908152997493744, 0.01954551786184311, -0.08617321401834488, -0.03879218176007271, 0.005576567258685827, -0.008925487287342548, 0.017613094300031662, 0.012272183783352375, 0.03996177017688751, 0.06496603786945343, -0.0046951440162956715, 0.0327930711209774, -0.0069798962213099, -0.023101596161723137, 0.02718513272702694, -0.0324997715651989, 0.005243601743131876, 0.027526764199137688, -0.017465833574533463, -0.013256321661174297, -0.06539634615182877, 0.008160916157066822, -0.0682731494307518, -0.29684001207351685, 0.058010946959257126, -0.02370857633650303, -0.06377431750297546, 0.026583241298794746, -0.039222072809934616, 0.009668095968663692, -0.06244094669818878, -0.01420425996184349, -0.0014844413381069899, -0.038434505462646484, -0.01846027560532093, -0.016679035499691963, 0.04349005967378616, 0.007731235586106777, -0.002566225826740265, -0.027951547876000404, -0.005088995676487684, 0.01996299810707569, 0.030038246884942055, -0.005210531875491142, -0.07814570516347885, -0.012787369079887867, 0.049298565834760666, 0.03098306618630886, 0.011487024836242199, -0.06196852773427963, 0.03279455751180649, -0.005880651064217091, -0.005278742406517267, 0.045242857187986374, -0.03062637522816658, 0.0038618710823357105, -0.02295413240790367, -0.0019596759229898453, -0.01679202914237976, 0.05845589563250542, 0.014785680919885635, 0.012483248487114906, -0.01788569800555706, -0.01053242664784193, -0.03566666692495346, 0.030836835503578186, 0.01995028927922249, 0.08764002472162247, -0.002492241794243455, -0.07214350998401642, -0.0009237774065695703, -0.05978930741548538, 0.07820766419172287, -0.0258775781840086, -0.048756103962659836, -0.04315311461687088, 0.025617551058530807, -0.025595976039767265, -0.03732472285628319, -0.009539751335978508, -0.008263631723821163, -0.05098694935441017, -0.03387027606368065, -0.0000063847196543065365, -0.014667246490716934, -0.02138429880142212, -0.03458705544471741, 0.025791283696889877, -0.0751437246799469, -0.0584464929997921, -0.02336212247610092, 0.06667524576187134, 0.034077953547239304, -0.041332703083753586, 0.009439436718821526, -0.027773112058639526, -0.11648871004581451, -0.023832257837057114, -0.013704870827496052, 0.020069481804966927, 0.03713300824165344, 0.0020764481741935015, 0.062122754752635956, -0.04377538710832596, -0.04221305251121521, 0.030228108167648315, 0.010796582326292992, 0.028293326497077942, -0.01034474652260542, 0.02165609784424305, 0.013206196948885918, -0.015230932272970676, -0.017920510843396187, 0.07825168967247009, -0.047234807163476944, -0.04129981994628906, -0.02205495350062847, 0.006616424769163132, 0.018950002267956734, 0.01103665679693222, 0.010085186921060085, 0.013634421862661839, 0.045238882303237915, 0.011521298438310623, -0.03920307755470276, 0.011820923537015915, -0.05091192200779915, 0.0008898034575395286, -0.008712365292012691, -0.051127951592206955, 0.0065225292928516865, 0.009330970235168934, -0.0007609110907651484, -0.037659067660570145, -0.0011236059945076704, 0.0018053296953439713, -0.049066849052906036, -0.017606452107429504, -0.01733991503715515, 0.022516053169965744, 0.019340351223945618, 0.0034691705368459225, -0.023648494854569435, -0.043853241950273514, -0.00663057342171669, 0.017940742895007133, -0.03079240582883358, -0.04312501102685928, -0.015075341798365116, -0.012763897888362408, -0.005292143672704697, 0.029643384739756584, 0.0060096425004303455, 0.0011197591666132212, 0.01955599896609783, 0.0006996163865551353, -0.01824738085269928, 0.03138033300638199, -0.04455513879656792, -0.025328271090984344, -0.02941840887069702, 0.039448391646146774, 0.01403557788580656, 0.012536261230707169, 0.0032025130931288004, 0.010551552288234234, 0.022807516157627106, 0.0666731595993042, -0.005731928627938032, 0.02436339482665062, 0.011001545935869217, -0.0007940968498587608, -0.0377981960773468, 0.0007121339440345764, -0.03219005838036537, -0.007013325113803148, -0.027598511427640915, 0.022977130487561226, -0.018227167427539825, 0.04587025195360184, 0.017265576869249344, -0.045837774872779846, -0.059328023344278336, 0.044650547206401825, -0.06123175844550133, -0.008130115456879139, -0.011898933909833431, 0.010647254064679146, 0.045271992683410645, -0.013583020307123661, 0.04481194168329239, 0.0007546067936345935, -0.02326534315943718, -0.00047749478835612535, -0.0174961406737566, -0.004372743424028158, 0.002529347315430641, -0.006835487671196461, 0.0020466954447329044, -0.006545176729559898, 0.005946805700659752, 0.018090086057782173, -0.0035638301633298397, 0.014357120729982853, 0.0009888458298519254, 0.023448893800377846, 0.013764929957687855, 0.056737687438726425, 0.045811958611011505, -0.06285125762224197, 0.04023333266377449, -0.026531202718615532, 0.006309402175247669, -0.02943876013159752, 0.0007281565922312438, -0.039849575608968735, -0.011236881837248802, -0.021267207339406013, -0.0926094576716423, 0.028711417689919472, -0.009156079962849617, -0.0048117870464921, 0.008349232375621796, -0.04487879201769829, 0.013146072626113892, -0.02682197093963623, 0.04388166591525078, 0.06880723685026169, -0.052776191383600235, 0.01277389656752348, -0.014024120755493641, -0.002509096870198846, 0.00547462422400713, 0.01529083400964737, -0.04712541028857231, -0.0015835269587114453, 0.007203178014606237, 0.0340777225792408, -0.013638975098729134, -0.041044846177101135, -0.02130414918065071, 0.011050543747842312, -0.015007699839770794, 0.025676701217889786, -0.028416559100151062, -0.02316366881132126, -0.003960337955504656, -0.031185321509838104, -0.01006350852549076, -0.0020426614210009575, -0.008745518513023853, 0.0057130055502057076, -0.041275568306446075, 0.034410372376441956, 0.0035934073384851217, 0.024827707558870316, 0.04237614944577217, 0.008301207795739174, -0.0029140266124159098, -0.07937102019786835, -0.0015288764843717217, 0.0004049902781844139, 0.05729227513074875, 0.009585162624716759, -0.01615864783525467, -0.009774373844265938, 0.019921312108635902, -0.001304808771237731, -0.0024625523947179317, 0.0032015375327318907, 0.025748927146196365, 0.021175358444452286, 0.06982318311929703, 0.001615729182958603, 0.01342887431383133, -0.024871647357940674, -0.028519554063677788, 0.05909838154911995, -0.08636657148599625, -0.0221193078905344, -0.0032791877165436745, -0.06668147444725037, 0.0314948707818985, 0.025722643360495567, 0.009170426987111568, -0.054003018885850906, 0.04533004015684128, 0.015383937396109104, 0.006286186631768942, 0.009624223224818707, -0.024571415036916733, 0.013418133370578289, -0.020290391519665718, 0.0107517559081316, -0.07485804706811905, 0.031223952770233154, 0.0236272681504488, 0.006411954294890165, -0.01696120761334896, 0.02793905697762966, -0.04103878140449524, 0.05269179865717888, -0.06150628253817558, -0.011138434521853924, 0.045494843274354935, -0.0031834689434617758, -0.02532757818698883, 0.0026218423154205084, -0.029575025662779808, 0.02000090293586254, 0.036774441599845886, -0.0035819734912365675, -0.0021304208785295486, -0.028222830966114998, 0.06636981666088104, 0.018725154921412468, 0.012358438223600388, -0.010877547785639763, -0.023989494889974594, 0.07711494714021683, 0.015463230200111866, 0.021190671250224113, 0.04499010741710663, -0.00024923807359300554, 0.045124102383852005, 0.023725595325231552, -0.0067549883387982845, 0.04882047697901726, 0.001626911573112011, 0.005805242341011763, -0.036878980696201324, 0.04309125617146492, 0.013056198135018349, -0.023380475118756294, -0.03413187339901924, 0.07058259099721909, 0.02868404984474182, -0.026906302198767662, -0.05789319425821304, 0.015780804678797722, -0.030815880745649338, -0.0636516734957695, -0.0002898478414863348, -0.02630121260881424, -0.022595390677452087, 0.04756241291761398, -0.010444344021379948, 0.021446792408823967, 0.05773604288697243, 0.0007864359067752957, -0.006560034584254026, -0.021164001896977425, 0.09825048595666885, 0.07887488603591919, 0.0394272655248642, 0.009231838397681713, 0.07240269333124161, -0.03364839404821396, -0.052523016929626465, -0.01750904694199562, 0.006311679724603891, 0.01555491890758276, -0.021403750404715538, 0.023447243496775627, 0.06206579878926277, -0.016421761363744736, 0.0719345360994339, -0.0529119111597538, -0.024674713611602783, -0.008081403560936451, 0.02904236875474453, 0.01340022124350071, 0.024446001276373863, 0.01858368329703808, 0.035220496356487274, 0.005912897642701864, -0.06209821626543999, 0.0519334077835083, -0.02878778614103794, 0.006224481854587793, 0.04811745509505272, 0.012997729703783989, 0.021383611485362053, -0.002971453359350562, -0.0042282044887542725, 0.06864718347787857, -0.019396446645259857, 0.006332945078611374, 0.0016204991843551397, 0.04764449596405029, 0.001589955878444016, 0.030139612033963203, -0.02127678692340851, -0.013171136379241943, -0.021007806062698364, -0.028997203335165977, -0.004822784569114447, -0.028018256649374962, -0.01103187631815672, 0.052361223846673965, -0.041751254349946976, 0.01810510642826557, 0.007043260149657726, -0.002990185283124447, -0.04981905221939087, -0.06340235471725464, -0.04631725326180458, -0.03225266560912132, -0.08285374939441681, -0.012407947331666946, 0.01771780289709568, 0.00005861059980816208, -0.07528842985630035, -0.0006692729657515883, -0.03117615357041359, 0.013009957037866116, -0.01825263909995556, -0.03339041396975517, -0.028255783021450043, 0.03931930661201477, 0.01587732508778572, 0.039691876620054245, 0.036928124725818634, 0.04321444407105446, 0.004280186723917723, 0.00459221750497818, -0.02486295811831951, 0.019530469551682472, 0.03485729172825813, 0.015657834708690643, 0.0033711432479321957, -0.06420707702636719, 0.0017271103570237756, 0.013910035602748394, -0.008473462425172329, -0.0657912939786911, -0.014208117499947548, 0.03250672668218613, -0.016408797353506088, 0.04526301100850105, -0.02680502086877823, -0.01919148676097393, -0.059545714408159256, -0.007856305688619614, 0.005140817258507013, -0.006951869931071997, 0.027328187599778175, -0.013977386988699436, 0.0874614417552948, 0.009211046621203423, -0.024944746866822243, -0.01590513065457344, -0.012653875164687634, -0.02967558056116104, -0.001865494530647993, -0.050142932683229446, -0.043959587812423706, -0.030677922070026398, -0.0745847150683403, -0.02947647124528885, 0.04305705428123474, -0.014257429167628288, -0.020280418917536736, 0.009476399049162865, 0.01674589514732361, -0.02851291000843048, 0.016185596585273743, -0.04026724398136139, 0.01951478235423565, -0.027665840461850166, -0.018874553963541985, -0.01835966482758522, 0.0177681352943182, 0.0010095821926370263, 0.009190644137561321, 0.023250065743923187, 0.002668475965037942, -0.012530247680842876, -0.05425766482949257, 0.006744494196027517, 0.056397292762994766, -0.010446012020111084, 0.004785978235304356 ]
[ -0.09197556227445602, -0.022784726694226265, -0.022950002923607826, -0.021701151505112648, 0.04801838472485542, -0.04397200047969818, -0.026392171159386635, 0.009696099907159805, 0.01264957245439291, 0.005375589709728956, -0.013503875583410263, -0.016181860119104385, -0.010261062532663345, -0.007307404652237892, 0.0928165540099144, 0.024456776678562164, 0.013633355498313904, -0.06339547038078308, -0.019986514002084732, 0.01964472234249115, 0.01068499218672514, -0.01836387626826763, -0.013966008089482784, -0.03532002493739128, -0.0007273361552506685, 0.011913458816707134, 0.04402778670191765, -0.03904273733496666, -0.0025128466077148914, -0.19132408499717712, -0.002601145301014185, -0.023634081706404686, 0.05399147793650627, -0.018226712942123413, -0.029736585915088654, 0.02129502221941948, 0.00604332285001874, 0.014341430738568306, -0.010575590655207634, 0.045424919575452805, 0.025856081396341324, 0.012397857382893562, -0.08027651906013489, -0.060406748205423355, 0.04563787579536438, -0.006089814938604832, 0.009119309484958649, -0.00877393689006567, 0.009878301993012428, 0.03801201283931732, -0.046399928629398346, 0.017313210293650627, 0.0007173320627771318, -0.03901799023151398, 0.012945386581122875, 0.03068108670413494, 0.023643555119633675, 0.08210014551877975, 0.010118097998201847, 0.0382656566798687, 0.016485465690493584, -0.014553056098520756, -0.13440652191638947, 0.12405670434236526, 0.013174371793866158, 0.06936647742986679, -0.04163438454270363, -0.009830630384385586, -0.00537516176700592, 0.060115959495306015, 0.023752396926283836, -0.013143683783710003, -0.012529815547168255, 0.010252227075397968, 0.022843845188617706, 0.010644208639860153, 0.0036813342012465, 0.03257032483816147, 0.008389714173972607, -0.0500219464302063, -0.059247858822345734, -0.009860011748969555, -0.04758757725358009, -0.023339424282312393, -0.0022341853473335505, -0.010454453527927399, 0.007498257327824831, 0.042982663959264755, -0.005661922041326761, 0.02786787785589695, 0.02535001002252102, -0.009036900475621223, 0.05238443613052368, 0.002403181279078126, -0.07946426421403885, -0.019820762798190117, -0.024820873513817787, 0.005820871330797672, -0.044123802334070206, 0.4408697783946991, -0.016869576647877693, -0.0022086226381361485, 0.0505099892616272, 0.033392246812582016, 0.01774022914469242, -0.014491829089820385, 0.0407244935631752, -0.05840856954455376, -0.0027527378406375647, -0.019162656739354134, 0.0002395053452346474, -0.0037046032957732677, 0.057934846729040146, -0.05194220691919327, 0.03416052088141441, 0.03337187319993973, 0.016324911266565323, 0.03880089148879051, 0.0060570756904780865, 0.005116975866258144, -0.016846824437379837, 0.04116477072238922, 0.014681991189718246, 0.004354631062597036, 0.02761988528072834, -0.028086604550480843, 0.07124678790569305, 0.04114089906215668, 0.03636329993605614, 0.026634346693754196, 0.04381866753101349, -0.016776250675320625, -0.06016016751527786, -0.003016520757228136, 0.0021247779950499535, 0.014252097345888615, 0.035010941326618195, -0.027989063411951065, -0.003296606009826064, 0.075380839407444, 0.009808911010622978, -0.003153502009809017, 0.024475058540701866, -0.008918140083551407, -0.023152858018875122, 0.10716518759727478, 0.025118444114923477, -0.05457665026187897, -0.03545582294464111, -0.03660264238715172, -0.0029955562204122543, 0.0013205028371885419, 0.0034369556233286858, -0.034053366631269455, 0.00037850730586797, 0.018572796136140823, 0.07157324254512787, -0.013505443930625916, -0.042834486812353134, -0.0011824144748970866, -0.015933126211166382, -0.022431762889027596, -0.009544119238853455, 0.02717829868197441, 0.051792893558740616, -0.1075839251279831, -0.022278867661952972, -0.00025968748377636075, 0.009756308980286121, -0.0746769979596138, -0.025691401213407516, -0.002504697535187006, -0.030100267380475998, -0.003818895434960723, 0.06265567988157272, -0.02798127941787243, -0.035596732050180435, 0.002166969934478402, 0.028986122459173203, -0.01038112211972475, 0.017755024135112762, -0.008211793377995491, -0.04793360084295273, 0.007184511981904507, -0.08939288556575775, -0.06922291219234467, -0.042563699185848236, -0.023093005642294884, -0.0009392977808602154, 0.01010831631720066, -0.0015504244947806, -0.02372879907488823, -0.08022966980934143, 0.1023823469877243, -0.02878124825656414, -0.03465736657381058, -0.006603235378861427, -0.0011432754108682275, -0.0039847232401371, -0.024712231010198593, -0.002380587160587311, 0.004027340095490217, -0.04114643111824989, 0.01626219041645527, -0.04313162714242935, 0.06039297580718994, 0.01195914950221777, -0.034538961946964264, 0.08130820840597153, 0.00042881618719547987, -0.0335971899330616, -0.015279453247785568, 0.013435174711048603, 0.009621867910027504, 0.006540064234286547, -0.04508550837635994, -0.0033545433543622494, -0.002425390062853694, 0.02765066735446453, 0.03745640814304352, -0.032993920147418976, -0.010206797160208225, -0.015271205455064774, -0.33473482728004456, -0.018746357411146164, -0.026134472340345383, 0.023012520745396614, 0.01630358397960663, -0.07915039360523224, 0.02792699635028839, -0.015139014460146427, 0.02895636484026909, 0.023420482873916626, 0.09314273297786713, -0.018938040360808372, 0.012984569184482098, -0.08559205383062363, -0.02104947902262211, 0.023664720356464386, -0.05433143302798271, -0.0422515943646431, -0.004324431996792555, 0.027274714782834053, 0.006400800310075283, 0.004964626394212246, -0.017507292330265045, -0.058958135545253754, 0.011608278378844261, -0.027189603075385094, 0.11507508903741837, 0.06455651670694351, 0.04975198581814766, -0.058143481612205505, 0.04394194111227989, 0.008629722520709038, 0.02516358718276024, -0.10011020302772522, -0.016441727057099342, -0.008822796866297722, 0.03921463340520859, -0.011763201095163822, 0.009274041280150414, -0.04250078275799751, -0.09173976629972458, 0.030764302238821983, -0.05292695760726929, -0.07202061265707016, -0.04359544441103935, 0.0107661671936512, -0.03178086876869202, -0.04320511594414711, -0.009691406972706318, 0.0800761952996254, 0.03367764875292778, -0.01966135948896408, 0.00825649406760931, 0.044449884444475174, 0.007105518132448196, -0.0415034294128418, -0.0624534897506237, 0.008047221228480339, 0.004414170980453491, -0.025270376354455948, 0.030074339359998703, 0.045941486954689026, 0.03103763423860073, -0.07353188842535019, 0.012279451824724674, 0.06653217226266861, 0.0012947841314598918, 0.009216925129294395, 0.031731341034173965, -0.03318830206990242, -0.04111407324671745, 0.09200837463140488, 0.005567640066146851, 0.034173011779785156, 0.015500173904001713, 0.028212612494826317, 0.009028347209095955, 0.0073332404717803, 0.02444988302886486, 0.003062112722545862, 0.011939063668251038, -0.010531719774007797, 0.04924089461565018, -0.04313131049275398, -0.03211994841694832, 0.040888670831918716, -0.005105610005557537, -0.07639757543802261, 0.06270594894886017, 0.017651807516813278, -0.010228835977613926, 0.02186589129269123, -0.021733347326517105, -0.09212882071733475, 0.048677969723939896, -0.014406464993953705, -0.26469385623931885, 0.010988066904246807, 0.07219206541776657, 0.04436353221535683, -0.017899082973599434, 0.006866207346320152, 0.04278672859072685, -0.058776549994945526, -0.017343008890748024, 0.026804370805621147, -0.002679752418771386, 0.05304840952157974, -0.022315427660942078, -0.0200051162391901, 0.031810905784368515, 0.019020050764083862, 0.0323304682970047, 0.00586497038602829, 0.01423775963485241, 0.02241976000368595, 0.010367418639361858, -0.0070326789282262325, 0.1621316820383072, 0.05523170158267021, 0.007114028092473745, 0.027288956567645073, -0.018983637914061546, -0.020762501284480095, 0.06633881479501724, 0.016212204471230507, -0.03340495750308037, -0.01363472267985344, 0.0301355067640543, 0.008905435912311077, 0.037396978586912155, -0.06985930353403091, -0.024344852194190025, 0.06376992911100388, -0.0018757767975330353, -0.01770692504942417, 0.016423234716057777, 0.02201690711081028, -0.03491121903061867, 0.03249022364616394, 0.02687443606555462, -0.00872912909835577, -0.01750136725604534, -0.0015422770520672202, -0.05279611051082611, -0.007020089775323868, -0.02467305026948452, -0.026247605681419373, 0.018309473991394043, 0.00843877624720335, 0.007382533513009548, 0.08874257653951645, 0.0020105696748942137, -0.012172037735581398, 0.0412440150976181, -0.0033810962922871113, -0.023687107488512993, -0.02301260642707348, 0.09729977697134018, 0.020603027194738388, 0.05271505191922188 ]
[ -0.01100115105509758, -0.020994046702980995, -0.005950584076344967, 0.027757572010159492, 0.037052303552627563, 0.03474421426653862, 0.007262712344527245, 0.012204105034470558, 0.0019433189881965518, -0.0433524064719677, -0.01291569136083126, 0.024514202028512955, 0.013227071613073349, -0.041725799441337585, -0.006250991486012936, -0.003400341607630253, -0.017290061339735985, -0.040022168308496475, 0.019681379199028015, -0.008880604058504105, -0.028958985581994057, 0.012236954644322395, 0.003315127920359373, -0.007743771653622389, -0.017427176237106323, 0.031013093888759613, -0.003607638878747821, -0.047912128269672394, 0.01532307080924511, -0.12878598272800446, 0.012091276235878468, -0.05505923554301262, 0.018507234752178192, -0.014746935106813908, -0.044807206839323044, -0.006059165578335524, 0.005905010271817446, 0.023822292685508728, 0.011143093928694725, 0.010590840131044388, -0.0017475492786616087, -0.02297821454703808, 0.01157454028725624, 0.00006425711762858555, -0.006395764648914337, -0.0553586408495903, -0.03994499891996384, -0.04195784404873848, -0.022291630506515503, 0.023777924478054047, -0.02200203575193882, -0.019837357103824615, -0.025064485147595406, 0.016131194308400154, -0.01369364932179451, 0.0005164791946299374, -0.022739220410585403, 0.03503049165010452, 0.03631347790360451, 0.026403281837701797, 0.017699744552373886, -0.03956936299800873, -0.016150260344147682, -0.034320808947086334, -0.021080391481518745, -0.03303100913763046, -0.010027068667113781, 0.004618512932211161, -0.006932242773473263, 0.041346143931150436, 0.006724189966917038, 0.035979315638542175, -0.016175929456949234, -0.011745228432118893, -0.003278875257819891, -0.006908678449690342, -0.021616395562887192, 0.00973546877503395, 0.002836761763319373, 0.0023532183840870857, -0.031019726768136024, -0.005619089584797621, -0.012467578053474426, 0.011077231727540493, -0.0015743415569886565, 0.021418342366814613, 0.007693538907915354, -0.010633723810315132, -0.017850074917078018, -0.0043779173865914345, -0.05293767526745796, 0.027392063289880753, 0.019397052004933357, 0.03518730774521828, -0.07512625306844711, 0.018628906458616257, -0.008869510143995285, -0.013544323854148388, -0.0067024994641542435, 0.8680967688560486, 0.022953538224101067, 0.050043120980262756, 0.010938413441181183, -0.020675623789429665, -0.0017602600855752826, -0.042406678199768066, -0.019602127373218536, -0.006551538128405809, 0.020359421148896217, -0.0034254847560077906, 0.029884397983551025, 0.01389011275023222, 0.02992638386785984, 0.025487469509243965, 0.02676227129995823, 0.022512588649988174, 0.018045542761683464, -0.016497772186994553, 0.04205706715583801, 0.055100809782743454, 0.023633910343050957, 0.012840256094932556, 0.0005874911439605057, 0.019025875255465508, 0.009016892872750759, -0.1614370197057724, 0.032665882259607315, -7.189437325644346e-33, 0.040566638112068176, -0.008546529337763786, -0.010213171131908894, -0.018066173419356346, 0.013148443773388863, -0.007159114815294743, -0.0003269649751018733, 0.024455919861793518, -0.011442516930401325, -0.03442750871181488, -0.004467172082513571, 0.006070457864552736, -0.0019287093309685588, -0.009131498634815216, 0.008027596399188042, 0.017779069021344185, -0.011174049228429794, 0.031218146905303, -0.0032259610015898943, -0.02208375744521618, 0.024107223376631737, 0.027408691123127937, 0.010409453883767128, 0.015139661729335785, 0.0051309168338775635, 0.024948759004473686, -0.002415311988443136, -0.0000641965598333627, -0.009902425110340118, -0.04717868193984032, -0.02331475540995598, -0.02527313306927681, -0.022966807708144188, -0.03635958582162857, 0.02630480006337166, -0.025432288646697998, -0.02477443404495716, 0.015490954741835594, -0.0022078261245042086, -0.00012895173858851194, -0.012727913446724415, -0.0038924377877265215, -0.05306394025683403, -0.011952758766710758, -0.04971443489193916, -0.001063713920302689, 0.005361119285225868, -0.013168130069971085, -0.022574469447135925, -0.00013705949822906405, 0.006769221276044846, -0.000056101434893207625, 0.00841960683465004, -0.016737502068281174, 0.000013269652299641166, -0.0001282431185245514, -0.032803140580654144, 0.025436140596866608, 0.02620830573141575, 0.010873689316213131, 0.025441739708185196, -0.017147375270724297, 0.009482474997639656, 0.017362121492624283, -0.024522308260202408, -0.0016142796957865357, 0.00126935844309628, 0.0008865377749316394, 0.03259686008095741, -0.012562410905957222, -0.020874211564660072, 0.011823172681033611, -0.00576846394687891, -0.005610761232674122, -0.006624699104577303, -0.009834435768425465, -0.02658817544579506, 0.005502229556441307, -0.007565379608422518, 0.03353336080908775, -0.023097213357686996, -0.03538716956973076, 0.02172885090112686, -0.033102378249168396, -0.0038695833645761013, -0.020074952393770218, 0.0020251027308404446, -0.009980401955544949, -0.01026005856692791, 0.007957321591675282, 0.02012994885444641, 0.08298579603433609, -0.008267486467957497, -0.0121320690959692, -0.004840834531933069, 7.191141792453039e-33, -0.005601753015071154, -0.007838229648768902, -0.025754772126674652, -0.0009491020464338362, 0.015764158219099045, 0.0017805799143388867, -0.003717028070241213, 0.04414539411664009, -0.03477722778916359, 0.02230200171470642, -0.032804619520902634, -0.005847319029271603, -0.014885734766721725, 0.015821548178792, 0.04112095758318901, -0.025211738422513008, 0.007266276050359011, -0.009579791687428951, -0.0008452259935438633, -0.01494783628731966, 0.013882474973797798, 0.0031257139053195715, 0.013577067293226719, 0.02872386761009693, 0.027220522984862328, 0.05201493948698044, -0.020348073914647102, -0.004143910948187113, 0.0030688701663166285, 0.013274082913994789, 0.021079249680042267, 0.008131461217999458, 0.0025013668928295374, -0.032684992998838425, -0.025902582332491875, 0.039143141359090805, 0.008037006482481956, 0.007611778099089861, 0.004198262467980385, -0.02325529418885708, 0.021089201793074608, -0.001804350409656763, 0.03173224255442619, 0.024519721046090126, 0.012218225747346878, 0.002447588602080941, 0.018767019733786583, 0.010427538305521011, 0.02536850981414318, 0.030021946877241135, -0.003031867789104581, -0.02002721093595028, 0.028847571462392807, 0.04149260371923447, -0.007400201167911291, -0.01452552992850542, -0.020531227812170982, 0.008128637447953224, -0.033334702253341675, 0.004336882848292589, -0.028128108009696007, -0.03268404304981232, -0.01893635094165802, 0.00027092755772173405, -0.034703318029642105, 0.0059980894438922405, -0.016204098239541054, 0.01785275898873806, 0.0007776127313263714, 0.009507580660283566, 0.001255152397789061, -0.012802265584468842, 0.014548929408192635, 0.05122332647442818, 0.004884426482021809, -0.005333163309842348, 0.0140090836212039, -0.0008838274516165257, -0.03721019998192787, 0.026648450642824173, 0.018041038885712624, 0.04128260910511017, 0.022642051801085472, -0.06508001685142517, 0.01696653850376606, 0.03713437169790268, 0.00025010204990394413, -0.011174964718520641, -0.005361455958336592, -0.03166012093424797, 0.007638031616806984, -0.018385864794254303, -0.0488865040242672, -0.006988335866481066, -0.008562293834984303, -1.3093995221424848e-8, -0.03510577976703644, 0.023844359442591667, -0.03746718540787697, 0.021355196833610535, -0.003926650155335665, 0.006533682346343994, -0.012582523748278618, 0.0018768669106066227, -0.008588296361267567, -0.017150407657027245, 0.034401170909404755, -0.05168319121003151, 0.015339475125074387, 0.02445015124976635, 0.01291162334382534, -0.02337356097996235, -0.013539367355406284, 0.002455362118780613, 0.03257331997156143, -0.005230178125202656, 0.014576062560081482, 0.04095190763473511, 0.019824521616101265, 0.010019231587648392, 0.015347296372056007, -0.01168458629399538, 0.023220492526888847, -0.047834232449531555, -0.004608119837939739, -0.016368284821510315, -0.013799469918012619, -0.012603778392076492, -0.02697214111685753, -0.012033401988446712, -0.009098466485738754, -0.005095525644719601, 0.02667929045855999, -0.021701132878661156, -0.020603183656930923, 0.011977349407970905, 0.01963602937757969, 0.0042826090939342976, -0.01758192479610443, -0.03710466995835304, -0.020827824249863625, -0.013715261593461037, -0.00970250740647316, 0.0026661138981580734, 0.045080430805683136, -0.017230527475476265, -0.0031668860465288162, -0.024498702958226204, 0.05266062542796135, 0.005515196826308966, 0.04460743069648743, 0.01349144522100687, 0.005363022908568382, -0.010213262401521206, -0.03981465846300125, -0.013950289227068424, 0.021472036838531494, 0.030576461926102638, 0.0010508598061278462, -0.007892194204032421 ]
arc-browser-creating-boost-plugin-with-chatgpt
https://markhneedham.com/blog/2023/05/23/arc-browser-creating-boost-plugin-with-chatgpt
false
2023-05-15 02:44:37
Cropping a video using FFMPEG
[ "ffmpeg", "til" ]
[ "TIL" ]
:icons: font I needed to crop a video that I used as part of a video on my YouTube channel, https://www.youtube.com/shorts/7950UzRDZBE[Learn Data With Mark^], and Camtasia kept rendering a black screen. So I had to call for FFMPEG! == Cropping the bottom of a video My initial video was 2160 x 3840 but I didn't need the bottom 1920 pixels because I'm using that part of the screen for a video of me. If I was just rendering that video exactly as it is I wouldn't have bothered cropping it, but because I wanted to zoom into different sections I needed to crop out the bottom bit. I adapted an example from https://ottverse.com/crop-a-video-with-ffmpeg-crop-filter/[this article from OTTVerse^] as my first cut: [source, bash] ---- ffmpeg -i ConfigSegThresholdDemo.mp4 \ -filter_complex "[0:v]crop=in_w:in_h-1920:0:0[cropped]" \ -map "[cropped]" \ -r output.mp4 ---- This command tells FFMPEG to crop a region: * whose width is equal to the source video's width, * whose height is equal to the source video's height minus 1920 pixels, * and the origin is at [0,0] This worked, but it lost the quality that I had in the initial video. I fixed this by also passing the https://stackoverflow.com/questions/25569180/ffmpeg-convert-without-loss-quality[`qscale`^] flag: [source, bash] ---- ffmpeg -i ConfigSegThresholdDemo.mp4 \ -filter_complex "[0:v]crop=in_w:in_h-1920:0:0[cropped]" \ -map "[cropped]" \ -qscale 0 \ -r output.mp4 ---- I think it worked out pretty well, but https://youtube.com/shorts/7950UzRDZBE?feature=share[watch the video^] and let me know if you agree! == Cropping the top and bottom of a video For another video that started off 2160 x 3840, I wanted to take off the top 620 pixels and the bottom 370 pixels. I did it by running the following command: [source, bash] ---- ffmpeg -i PivotDemo.mp4 \ -filter_complex "[0:v]crop=2160:2850:0:620[cropped]" \ -map "[cropped]" \ -qscale 0 \ PivotDemo-Cropped.mp4 ---- Let's break down the crop parameters, `crop=2160:2850:0:620` * `2160` - That's the width of region that I want to crop (i.e. keep the width the same) * `2850` - The height of the region that I want to crop (`3840 - 620 (top crop) - 370 (bottom crop)`) * `0`- The `x` pixel from where the cropping should begin (i.e. 0 pixels from the left) * `620` - The `y` pixel from where the cropping should begin (i.e. 620 pixels from the top)
In this post we'll learn how to use the FFMPEG command line tool to crop part of a video.
uploads/2023/05/ffmpeg-banner.png
[ 0.006751829292625189, -0.010982231236994267, 0.018941866233944893, 0.027686307206749916, 0.060073308646678925, 0.05611170828342438, 0.0007059668423607945, 0.043543752282857895, -0.022890295833349228, -0.013985812664031982, -0.030710268765687943, 0.011538872495293617, -0.0674753487110138, 0.020741896703839302, -0.02145771123468876, 0.08653996884822845, 0.053364068269729614, 0.01722443848848343, 0.024997852742671967, 0.029672451317310333, 0.05999213829636574, 0.04246994107961655, 0.026095310226082802, 0.03890272229909897, 0.02488628216087818, -0.0037242805119603872, 0.016216084361076355, 0.045482054352760315, -0.07425433397293091, 0.004192089196294546, 0.036868467926979065, -0.004675084725022316, 0.002497381065040827, -0.030188096687197685, 0.06202908605337143, -0.019415926188230515, -0.019303031265735626, 0.02145994082093239, -0.01702835224568844, 0.02136348746716976, -0.048602089285850525, 0.015578744933009148, -0.01244446076452732, -0.021941829472780228, -0.04354238510131836, 0.006593768950551748, -0.010853360407054424, 0.01729547418653965, -0.01783735677599907, -0.007329103071242571, -0.047190502285957336, 0.05431755632162094, -0.00712033174932003, 0.00044736143900081515, 0.009514247067272663, 0.0595770888030529, 0.02747979573905468, -0.06737891584634781, 0.01793651655316353, -0.05014993995428085, 0.019075294956564903, -0.011761431582272053, 0.02977498434484005, 0.036607351154088974, -0.02613160014152527, -0.02823757193982601, -0.008226394653320312, 0.06488511711359024, -0.048744842410087585, -0.03492219001054764, 0.008877095766365528, 0.003478500759229064, -0.05645130202174187, 0.0038387582171708345, 0.01988624595105648, -0.029034925624728203, -0.021948080509901047, 0.06847070902585983, 0.029536522924900055, 0.02104496769607067, 0.005386424716562033, -0.021632874384522438, 0.04199284315109253, 0.052832890301942825, -0.009873383678495884, -0.0392855629324913, -0.01582981087267399, -0.02565053291618824, -0.05706723406910896, 0.038839928805828094, 0.0070049273781478405, -0.04795417562127113, 0.0345388762652874, 0.018388871103525162, -0.008899817243218422, -0.01743403822183609, -0.025778302922844887, -0.015792852267622948, -0.0019867431838065386, 0.011217961087822914, -0.02439846470952034, -0.037275686860084534, 0.04894384741783142, 0.06301266700029373, -0.08991758525371552, -0.006152808200567961, -0.004661885555833578, -0.008960091508924961, 0.0183250829577446, 0.029980048537254333, 0.006983374711126089, 0.0321081280708313, -0.00964853074401617, -0.02031162567436695, -0.06656774133443832, 0.055590443313121796, 0.027077646926045418, 0.010067861527204514, -0.008351878263056278, 0.05217592045664787, 0.05949462577700615, 0.026650412008166313, -0.023177893832325935, 0.08081502467393875, 0.0050540282391011715, 0.019980348646640778, 0.016114478930830956, 0.04326600208878517, -0.03666820377111435, -0.06974522769451141, 0.002839846070855856, 0.039618849754333496, -0.01502204779535532, 0.006369913928210735, 0.0029000870417803526, -0.03256614878773689, 0.03330172598361969, -0.06808168441057205, 0.02102561667561531, -0.0184163860976696, 0.0021678602788597345, -0.02212904579937458, -0.032068803906440735, -0.016931699588894844, 0.03589700162410736, 0.009614383801817894, 0.0004533156752586365, -0.031703393906354904, -0.01724759116768837, 0.019360745325684547, 0.001683021429926157, -0.01805524341762066, 0.07978742569684982, -0.044108618050813675, -0.006954484153538942, 0.06601300835609436, 0.0403648279607296, -0.01152160856872797, -0.015244737267494202, 0.008595422841608524, 0.03304041922092438, 0.028339432552456856, -0.008687003515660763, 0.044067006558179855, -0.012054981663823128, -0.009307391941547394, 0.015512462705373764, 0.014892105013132095, -0.031745582818984985, 0.023636721074581146, -0.06520704180002213, -0.04818524792790413, 0.07061203569173813, -0.007924383506178856, -0.014366154558956623, 0.053790606558322906, 0.09299749881029129, 0.058856092393398285, 0.004157534800469875, 0.03695410490036011, -0.09053604304790497, 0.01767599955201149, 0.00856360699981451, 0.02588305063545704, 0.011174745857715607, -0.032289180904626846, 0.09912615269422531, 0.027551645413041115, 0.01138420682400465, 0.026130853220820427, -0.06201805919408798, -0.06826722621917725, -0.05080501735210419, 0.014910184778273106, 0.05890607461333275, -0.04356441646814346, 0.006423655431717634, 0.010599242523312569, 0.02815249375998974, 0.04598486050963402, -0.009487781673669815, -0.03620075434446335, 0.03393178805708885, -0.03626211732625961, -0.08482707291841507, 0.011379566974937916, 0.022395359352231026, 0.011592989787459373, 0.009644010104238987, 0.03133364021778107, 0.002184479031711817, 0.014512919820845127, 0.044725727289915085, 0.009874612092971802, 0.016994567587971687, 0.00494557386264205, 0.002005024580284953, -0.0360402874648571, 0.04571178928017616, -0.06278897076845169, -0.0016275352099910378, -0.00022016458387952298, -0.027334537357091904, -0.032672200351953506, -0.015739893540740013, 0.11990302801132202, 0.04895589128136635, -0.027443397790193558, -0.0583546906709671, 0.005013491492718458, -0.02581205777823925, -0.02345491200685501, -0.01089585293084383, -0.012313487939536572, -0.050010986626148224, 0.010269882157444954, -0.022865183651447296, -0.026003612205386162, 0.016381381079554558, -0.05995053052902222, -0.010764806531369686, 0.04188663512468338, 0.031654778867959976, 0.005446027498692274, -0.029898539185523987, -0.048388876020908356, 0.041168615221977234, -0.00362291163764894, -0.04848781228065491, 0.0060350969433784485, 0.02963073179125786, 0.004234247840940952, 0.04226396977901459, -0.04900844395160675, -0.013823870569467545, -0.016168000176548958, -0.016555141657590866, 0.03098306804895401, 0.0696033239364624, 0.045503754168748856, -0.008735406212508678, 0.03828062117099762, 0.016670575365424156, 0.000688685686327517, -0.03900720924139023, -0.01468773651868105, -0.04256090521812439, -0.017019122838974, -0.012728038243949413, 0.01393420435488224, 0.00821403693407774, 0.04461895674467087, 0.01772858388721943, -0.012048302218317986, 0.027451621368527412, -0.010044222697615623, 0.032118331640958786, 0.004451409447938204, -0.005112050101161003, -0.023503433912992477, 0.017696814611554146, 0.06386459618806839, -0.02951033227145672, -0.04062173515558243, -0.014039145782589912, -0.029379287734627724, 0.021749485284090042, -0.041752737015485764, -0.016088446602225304, -0.011387225240468979, 0.014227362349629402, 0.03636087849736214, 0.007256382144987583, 0.01758999563753605, 0.039492417126894, 0.01650143601000309, 0.01475597731769085, -0.002360451966524124, -0.005399041809141636, 0.03236060589551926, -0.013475953601300716, 0.033183805644512177, 0.051322393119335175, -0.01978728361427784, -0.02360556460916996, -0.031287796795368195, 0.008489717729389668, -0.04954433813691139, -0.25897231698036194, 0.020437423139810562, 0.018072262406349182, -0.014426374807953835, 0.025904299691319466, -0.06881465017795563, 0.0020365463569760323, -0.05219545215368271, -0.005359807517379522, 0.020334064960479736, -0.014904102310538292, -0.0360429547727108, -0.058210600167512894, 0.04367357864975929, 0.018424833193421364, -0.007973442785441875, 0.0011515619698911905, -0.017290154471993446, 0.029231088235974312, 0.018120327964425087, 0.038376737385988235, -0.06128563731908798, 0.011703958734869957, 0.04828959330916405, 0.028538553044199944, 0.04938376694917679, -0.06175742298364639, 0.02239183522760868, -0.031204337254166603, -0.04567916691303253, 0.00406218133866787, -0.0337645597755909, 0.016898926347494125, 0.011369775049388409, -0.0032946986611932516, -0.004863890819251537, 0.08327506482601166, -0.02263852022588253, 0.030707869678735733, 0.004335987381637096, -0.01454365998506546, -0.017758486792445183, 0.024700872600078583, 0.008424307219684124, 0.08155336230993271, -0.01289693545550108, -0.05059410259127617, -0.014255689457058907, -0.028151335194706917, 0.07326987385749817, -0.000411695713410154, -0.04266263544559479, 0.00905624683946371, 0.047618795186281204, -0.010488365776836872, 0.004214660730212927, 0.014178724959492683, 0.00684050377458334, -0.03633839637041092, -0.0522322915494442, 0.0041909972205758095, -0.02465190179646015, -0.053219083696603775, -0.027417030185461044, 0.012478597462177277, -0.07781931012868881, -0.0401422455906868, -0.005160442087799311, 0.06812366098165512, 0.04444647580385208, -0.017844293266534805, -0.0035774747375398874, -0.017123479396104813, -0.09978524595499039, 0.008382026106119156, -0.01075440738350153, -0.0182298943400383, 0.024827150627970695, -0.033341776579618454, 0.049264464527368546, -0.015298230573534966, -0.03045974299311638, 0.05658688768744469, 0.014551365748047829, 0.0030731596052646637, -0.022739315405488014, -0.004504204262048006, -0.0011802336666733027, 0.026047253981232643, -0.0017411339795216918, 0.09563413262367249, -0.06238682568073273, -0.038917601108551025, -0.00972774438560009, -0.012524645775556564, 0.010659515857696533, 0.026851365342736244, -0.0037322540301829576, 0.03631933405995369, 0.028836002573370934, 0.026480430737137794, -0.04241660237312317, -0.003632043255493045, -0.023076379671692848, -0.02928985096514225, 0.0072807553224265575, -0.048812009394168854, 0.0311527531594038, 0.018375707790255547, 0.0035810989793390036, -0.027452928945422173, 0.005279007367789745, -0.0006701091770082712, -0.047847311943769455, -0.038225919008255005, 0.003740881569683552, 0.00498584471642971, 0.014239426702260971, 0.06273140013217926, -0.04363906383514404, -0.018920868635177612, 0.010544618591666222, -0.030250390991568565, -0.03087194263935089, -0.06451673805713654, -0.0036563873291015625, -0.0033060689456760883, 0.015990305691957474, -0.036566607654094696, 0.028883492574095726, -0.002995441434904933, 0.010628314688801765, 0.02037305384874344, -0.03074623830616474, 0.06645293533802032, -0.025702916085720062, -0.03606170415878296, -0.03292025625705719, 0.023613493889570236, -0.01412648893892765, -0.025657951831817627, 0.024423671886324883, 0.010376338846981525, 0.027753591537475586, 0.03744989633560181, 0.008102120831608772, 0.052405040711164474, -0.020668644458055496, -0.017882879823446274, 0.02211177907884121, 0.024775546044111252, -0.020477524027228355, 0.013651951216161251, -0.00025085650850087404, -0.01678287424147129, -0.01208451110869646, -0.0027123261243104935, -0.007510188966989517, -0.008545235730707645, -0.03654102236032486, 0.050575029104948044, -0.015121415257453918, -0.046812478452920914, -0.004342325031757355, 0.0034101426135748625, 0.029508505016565323, 0.04527105763554573, -0.003356579225510359, 0.004542872775346041, -0.006677254568785429, 0.016199423000216484, -0.018819337710738182, -0.048166390508413315, -0.01508709043264389, 0.027353616431355476, -0.00793256051838398, 0.03455880284309387, 0.022382160648703575, 0.017305005341768265, 0.0364714041352272, 0.01759761944413185, -0.014030576683580875, 0.052655670791864395, -0.010093200020492077, 0.02349582128226757, 0.027614470571279526, -0.07370902597904205, -0.01643918640911579, -0.03861429914832115, -0.030827557668089867, -0.029127424582839012, -0.0027502523735165596, -0.007757632527500391, -0.000836903287563473, -0.03892461955547333, -0.081723153591156, -0.008117198944091797, 0.002235615160316229, 0.008281463757157326, 0.00019685681036207825, -0.03515377268195152, 0.02404015325009823, -0.00556531036272645, 0.0296817347407341, 0.045767419040203094, -0.07029382139444351, 0.025890490040183067, 0.025285379961133003, -0.020871663466095924, 0.007016680669039488, 0.01878170296549797, -0.0622272789478302, -0.020585117861628532, -0.03889986500144005, 0.023976929485797882, -0.04650074616074562, -0.0118504473939538, -0.030724836513400078, 0.02814464271068573, -0.035383518785238266, 0.007591515313833952, -0.045548129826784134, 0.018574660643935204, -0.004303093068301678, -0.01579895243048668, 0.0043320017866790295, -0.02935260720551014, 0.019131889566779137, 0.04477912560105324, -0.02567657083272934, 0.015069837681949139, -0.020759988576173782, 0.045708902180194855, 0.057146601378917694, -0.0020739277824759483, -0.0165835190564394, -0.07960666716098785, -0.0019570610020309687, -0.01015325915068388, 0.02434857375919819, 0.00022343205637298524, 0.003220265032723546, -0.05173678696155548, 0.05957969278097153, -0.0035629638005048037, 0.023853695020079613, -0.00744226248934865, -0.041004229336977005, 0.0177638940513134, 0.039898261427879333, -0.02494087815284729, 0.023912746459245682, 0.00009202924411511049, -0.02220826782286167, 0.04209846258163452, -0.05586903914809227, -0.03910291567444801, -0.01299066562205553, -0.03411443904042244, 0.07954546064138412, -0.00031256568036042154, 0.02714780904352665, -0.055101171135902405, 0.032638780772686005, 0.03388308733701706, 0.013424134813249111, 0.03547090291976929, -0.00670930091291666, 0.014302822761237621, -0.024692989885807037, -0.002174986992031336, -0.06675750762224197, 0.0003025045443791896, 0.015494449064135551, -0.00919053703546524, -0.015953954309225082, 0.008486988954246044, -0.057330433279275894, 0.047831762582063675, -0.07958529144525528, -0.02345377393066883, 0.038808345794677734, 0.015991762280464172, 0.017316661775112152, 0.024134155362844467, -0.04405199736356735, 0.03401942551136017, 0.029340820387005806, -0.04429567977786064, 0.012565329670906067, -0.009289729408919811, 0.08227591961622238, 0.0067201461642980576, 0.016147153452038765, -0.024442540481686592, -0.03337974473834038, 0.07966834306716919, 0.015018769539892673, 0.022059191018342972, 0.019779464229941368, -0.005527830217033625, 0.023885495960712433, 0.0380157008767128, -0.015232784673571587, 0.009957214817404747, 0.001480734790675342, -0.010869462974369526, -0.0712534487247467, 0.026427285745739937, 0.0013399225426837802, -0.027976615354418755, -0.07205304503440857, 0.0488581508398056, 0.019179940223693848, -0.014654630795121193, -0.02810007892549038, 0.023491721600294113, -0.028250453993678093, -0.026770727708935738, -0.039282795041799545, -0.017035232856869698, -0.03704468160867691, 0.06457924097776413, -0.019012875854969025, 0.005581896752119064, 0.06981400400400162, -0.005474025383591652, -0.0019639271777123213, 0.004333088174462318, 0.06648897379636765, 0.06921528279781342, 0.06366358697414398, -0.015967072919011116, 0.08711932599544525, -0.05154037103056908, -0.02902870997786522, 0.008983874693512917, -0.02197546325623989, -0.02048901468515396, -0.02150905691087246, 0.03242464363574982, 0.09342724829912186, -0.007434397004544735, 0.058078084141016006, -0.048990193754434586, -0.034804441034793854, 0.0021970472298562527, -0.018593793734908104, 0.037081386893987656, 0.027148468419909477, 0.015426736325025558, -0.016767842695116997, -0.0008726840023882687, 0.001767535344697535, 0.03899502381682396, 0.018613507971167564, 0.002546868287026882, -0.011285867542028427, -0.007853014394640923, 0.02465563826262951, -0.004965856671333313, 0.010933684185147285, 0.0513022243976593, -0.02394891157746315, -0.030499782413244247, 0.0032087950967252254, 0.004274426028132439, -0.005215626675635576, 0.03682676702737808, -0.01607394590973854, -0.017705759033560753, -0.004534273408353329, -0.028959300369024277, -0.011983430944383144, -0.012380557134747505, -0.009013226255774498, 0.033014584332704544, -0.004236576613038778, 0.0014610225334763527, 0.035242822021245956, -0.016326814889907837, -0.06412528455257416, -0.044711437076330185, -0.06044356897473335, -0.09447725117206573, -0.035998452454805374, -0.00765844015404582, -0.03472202643752098, -0.01126181986182928, -0.05776282772421837, -0.06370578706264496, -0.05612044408917427, -0.0013479322660714388, 0.017640624195337296, -0.05924594774842262, -0.03002503328025341, 0.016158374026417732, -0.007280560676008463, 0.01596456579864025, 0.020614417269825935, 0.05310734361410141, 0.003533346112817526, -0.02041509747505188, -0.020305298268795013, 0.022249186411499977, 0.04029310867190361, 0.01500446442514658, -0.009864460676908493, -0.08388464152812958, 0.008830718696117401, 0.015436992980539799, -0.016177935525774956, -0.0534525029361248, 0.010529054328799248, 0.029285073280334473, -0.022136790677905083, 0.08710239082574844, -0.046992331743240356, 0.036732520908117294, -0.061982519924640656, -0.007611481007188559, -0.040735840797424316, -0.012726403772830963, 0.051873598247766495, -0.03588206321001053, 0.060084160417318344, 0.006786813028156757, 0.017295122146606445, -0.045370567589998245, 0.0070379250682890415, -0.04568184167146683, 0.04488334059715271, -0.03593587875366211, 0.002017352031543851, -0.050811976194381714, -0.09771142154932022, -0.03156638890504837, 0.027992872521281242, -0.016508027911186218, -0.03726199269294739, -0.01554854679852724, -0.0059110866859555244, -0.034817781299352646, 0.023788070306181908, -0.05013514682650566, -0.0019112525042146444, -0.04049571231007576, 0.003966121934354305, -0.017893092706799507, 0.044128283858299255, -0.0025260881520807743, -0.017591087147593498, 0.041391171514987946, -0.045623529702425, 0.002279177773743868, -0.0202280692756176, 0.022342031821608543, 0.04120194911956787, 0.012227318249642849, 0.003711733967065811 ]
[ -0.05293247848749161, -0.008169492706656456, -0.04039180651307106, -0.030715245753526688, 0.08706729114055634, -0.050153110176324844, -0.0415472686290741, 0.04386674612760544, -0.0036265451926738024, 0.026141515001654625, -0.01939522475004196, -0.10177357494831085, -0.014259214513003826, -0.0018413361394777894, 0.05889638513326645, 0.024639591574668884, 0.04052358493208885, -0.04346088692545891, -0.06028096005320549, 0.03605988994240761, 0.021098803728818893, 0.0003547474625520408, -0.029825307428836823, -0.024431034922599792, 0.016653889790177345, -0.0050398013554513454, 0.03196358680725098, -0.04354935884475708, -0.004380109719932079, -0.2028830498456955, 0.007875217124819756, 0.03973538428544998, 0.07454312592744827, -0.02025504969060421, -0.012518010102212429, 0.02343377284705639, -0.012460075318813324, 0.046484656631946564, -0.022069035097956657, 0.03003724105656147, 0.03978494554758072, 0.018303915858268738, -0.08132657408714294, -0.06977399438619614, 0.041678477078676224, -0.013328666798770428, 0.00607019430026412, -0.029395386576652527, 0.023230357095599174, 0.03297259286046028, -0.01772589236497879, -0.00762711139395833, -0.002233940875157714, -0.0224752239882946, -0.06765632331371307, 0.021125568076968193, 0.03750067949295044, 0.028324460610747337, 0.03154325857758522, -0.0054622250609099865, 0.0006853197701275349, -0.013470553793013096, -0.14137114584445953, 0.11573652923107147, -0.005405540112406015, 0.05198860913515091, -0.029109949246048927, -0.027435583993792534, -0.03285970911383629, 0.08683504909276962, -0.04110317677259445, -0.013781199231743813, -0.01868114247918129, 0.05209776759147644, 0.02421889640390873, -0.058700013905763626, 0.037545595318078995, 0.022348901256918907, -0.012088636867702007, -0.027707470580935478, -0.05481372028589249, -0.007392330095171928, -0.04292254522442818, -0.02994793839752674, -0.018104908987879753, -0.01070600375533104, -0.0012518081348389387, 0.06947074830532074, 0.006667521316558123, 0.047328971326351166, 0.010778739117085934, -0.028425680473446846, 0.0025351669173687696, -0.025838082656264305, -0.11771322041749954, -0.04135745018720627, 0.03404343128204346, -0.0033939885906875134, -0.02071293070912361, 0.4023037552833557, -0.023375192657113075, -0.061863720417022705, 0.0812705010175705, 0.0022527622058987617, 0.02949128858745098, 0.013541266322135925, -0.014549355022609234, 0.025120757520198822, -0.0012717790668830276, 0.02624836564064026, -0.0036445604637265205, -0.013562412932515144, 0.04106386750936508, -0.013088978826999664, 0.01947399228811264, -0.03942191228270531, -0.028957048431038857, 0.032297488301992416, 0.011742988601326942, -0.02166852355003357, 0.0060346052050590515, 0.015550781972706318, 0.029873182997107506, -0.02259182184934616, 0.06373551487922668, -0.000043837677367264405, 0.03971404582262039, 0.05420093610882759, 0.056776754558086395, -0.0008064754656516016, 0.0242804866284132, -0.0582122839987278, -0.018501650542020798, -0.0027498973067849874, -0.00016606019926257432, 0.04404935985803604, 0.05308767780661583, -0.030102858319878578, 0.012516570277512074, -0.0012430422939360142, -0.025473814457654953, -0.020271873101592064, 0.04301018267869949, 0.020149998366832733, 0.014308562502264977, 0.10081615298986435, -0.0332789309322834, 0.0020221311133354902, -0.035125866532325745, -0.056954916566610336, -0.010527458973228931, 0.034876786172389984, -0.015758048743009567, 0.028968434780836105, 0.024723559617996216, -0.01269386988133192, 0.05626261234283447, -0.047397539019584656, -0.04193532466888428, 0.017009960487484932, -0.011807151138782501, -0.057220567017793655, 0.005518078804016113, 0.0023625327739864588, 0.05872819572687149, -0.07429114729166031, -0.04314335808157921, 0.04062790796160698, 0.001881263218820095, -0.0428818054497242, -0.03246980905532837, -0.0385645255446434, -0.01349453255534172, -0.05853927135467529, 0.051319047808647156, -0.007038058713078499, -0.02188418246805668, 0.03587266430258751, 0.028408190235495567, 0.00029853713931515813, 0.02149057388305664, -0.03290807455778122, 0.015915149822831154, 0.0058670202270150185, -0.028980707749724388, -0.09452583640813828, -0.033979009836912155, -0.007717471104115248, -0.0019545971881598234, -0.03394313156604767, -0.012180071324110031, -0.06836257874965668, -0.07925122231245041, 0.07158371061086655, -0.007435162551701069, 0.03735470026731491, 0.022874319925904274, -0.005724392365664244, -0.009877248667180538, -0.02324121631681919, 0.027078263461589813, 0.02436499297618866, 0.014622426591813564, 0.022632207721471786, -0.05404394492506981, 0.035266581922769547, 0.07718130201101303, -0.04024875909090042, 0.07181492447853088, 0.03712551295757294, -0.05223063379526138, -0.010440489277243614, 0.02571745216846466, -0.008442707359790802, 0.003255458315834403, -0.025686753913760185, 0.012359965592622757, 0.007220064755529165, 0.0020824898965656757, 0.05466856062412262, -0.004709248431026936, -0.07294078916311264, -0.060071539133787155, -0.3467090427875519, -0.04007278382778168, -0.02404494769871235, 0.02752075530588627, 0.01437348686158657, -0.04365764558315277, 0.010242978110909462, 0.01744767837226391, 0.029065104201436043, 0.034553322941064835, 0.0871075987815857, -0.04946288466453552, -0.0015048027271404862, -0.13331277668476105, -0.0033375790808349848, -0.018036311492323875, -0.013987189158797264, -0.037274688482284546, -0.032172732055187225, -0.018709685653448105, -0.03647738695144653, -0.008595835417509079, -0.026332542300224304, -0.03624555468559265, 0.01692727953195572, -0.028114138171076775, 0.11323568224906921, 0.054645925760269165, 0.0886145755648613, -0.06851871311664581, 0.05859183892607689, 0.022392546758055687, -0.00493586016818881, -0.05426708981394768, -0.014126542955636978, -0.02501084841787815, 0.02092442288994789, 0.004202424548566341, 0.0003292726760264486, -0.032314736396074295, -0.04897069185972214, 0.01184946671128273, -0.04815085232257843, -0.06255659461021423, -0.0392289012670517, 0.007166634779423475, 0.017148122191429138, -0.004563172813504934, -0.020762428641319275, 0.08682655543088913, -0.021111298352479935, 0.0007181336986832321, 0.019745610654354095, 0.014264553785324097, 0.04019485414028168, -0.0016642773989588022, -0.06342892348766327, -0.03270938619971275, 0.036022596061229706, -0.026237694546580315, 0.04886288940906525, 0.008326009847223759, 0.054319772869348526, -0.10929480195045471, 0.019405998289585114, 0.05593273043632507, 0.013994860462844372, -0.016772199422121048, 0.03697703033685684, -0.01645127311348915, 0.02542155794799328, 0.1131831482052803, 0.0021369399037212133, 0.02582343854010105, 0.0772336795926094, 0.052745621651411057, 0.03145133703947067, 0.027156176045536995, 0.012668391689658165, -0.06783001869916916, 0.046462059020996094, 0.024673886597156525, 0.030246248468756676, -0.03988191857933998, -0.007550932001322508, 0.03993095085024834, -0.02328633889555931, -0.03756284341216087, 0.03553102910518646, -0.017684491351246834, -0.007575604598969221, 0.0010109373833984137, -0.049080364406108856, -0.021301066502928734, 0.03642193228006363, -0.009305951185524464, -0.23618270456790924, 0.025664033368229866, 0.08137699961662292, 0.047319021075963974, 0.013132215477526188, -0.005422856658697128, 0.0702478289604187, -0.055583368986845016, -0.02231038175523281, 0.02860960178077221, -0.043663375079631805, 0.0165869053453207, 0.02189841866493225, 0.01288070809096098, 0.004158847965300083, -0.0020544687286019325, 0.027888992801308632, 0.03170611336827278, 0.00880291499197483, -0.024833735078573227, -0.0060171764343976974, -0.07276201248168945, 0.13313771784305573, -0.030261315405368805, -0.03691135719418526, -0.013921806588768959, -0.006175735965371132, -0.03703927993774414, 0.0727495476603508, -0.0028723750729113817, -0.003871825523674488, 0.03978429362177849, 0.04366736859083176, 0.017881887033581734, 0.021833667531609535, -0.04308457672595978, -0.021182794123888016, 0.037093617022037506, 0.028815485537052155, 0.023123232647776604, 0.01741481013596058, 0.027009839192032814, -0.018782000988721848, 0.023670751601457596, 0.009060720913112164, -0.02164815180003643, 0.05461276322603226, 0.03293873369693756, -0.05996755138039589, 0.013830007053911686, -0.018991297110915184, -0.00874399859458208, 0.00031968363327905536, -0.020632751286029816, 0.0015868016052991152, 0.07005627453327179, -0.010875355452299118, 0.012431921437382698, 0.04240628704428673, 0.055703576654195786, 0.01311464048922062, -0.0391102060675621, 0.06753627210855484, 0.0169045552611351, 0.025739986449480057 ]
[ 0.06411866843700409, 0.004474320448935032, 0.001401138142682612, -0.007251102942973375, 0.027834774926304817, 0.006911099888384342, -0.0026804564986377954, 0.04031751677393913, 0.013683253899216652, -0.010502361692488194, -0.016995929181575775, -0.016074959188699722, -0.02081421948969364, 0.050863705575466156, -0.004317658953368664, -0.03370922431349754, -0.015832427889108658, 0.033023834228515625, -0.025281265377998352, -0.011515538208186626, -0.011979850009083748, -0.012182014994323254, 0.026218650862574577, 0.0011140526039525867, -0.005254929885268211, 0.0353052094578743, -0.06291303783655167, 0.039045192301273346, 0.05001990124583244, -0.12039016932249069, 0.05158165469765663, 0.017930839210748672, 0.03545592352747917, 0.0015888514462858438, 0.008409257978200912, -0.03762628883123398, 0.010030682198703289, -0.02735074795782566, -0.04351416230201721, -0.0006511102546937764, -0.017083734273910522, 0.033260151743888855, 0.004604907240718603, 0.0034376424737274647, -0.00037884627818129957, 0.003686340758576989, 0.030611438676714897, -0.01820504665374756, -0.027987603098154068, -0.000358429184416309, -0.04965110123157501, 0.011816233396530151, -0.044557537883520126, 0.029576284810900688, -0.025864725932478905, 0.018535539507865906, -0.005444492679089308, 0.014137419871985912, 0.04298587888479233, 0.001736299367621541, -0.018511438742280006, -0.031316641718149185, -0.04239453747868538, 0.00022064082440920174, 0.022621670737862587, -0.01985948160290718, -0.002318168058991432, -0.04922187700867653, -0.009073133580386639, 0.028523437678813934, -0.02906084433197975, 0.028685394674539566, -0.02443188801407814, 0.01846502348780632, -0.049459077417850494, -0.037113871425390244, 0.03636745736002922, -0.014278928749263287, 0.0005587287596426904, 0.004739121068269014, 0.048075828701257706, -0.01248505711555481, 0.010298958979547024, 0.018122758716344833, 0.021817751228809357, -0.012318739667534828, -0.0022049585822969675, 0.008262737654149532, 0.014742020517587662, -0.02551838383078575, -0.09726135432720184, 0.01734219677746296, -0.01404678262770176, 0.014862524345517159, -0.07471594959497452, -0.03693860396742821, -0.023055508732795715, -0.05745309218764305, -0.04008195549249649, 0.7903448343276978, -0.004962182603776455, -0.038357097655534744, 0.0023785470984876156, 0.039022672921419144, 0.027035800740122795, 0.024763738736510277, -0.0050365435890853405, 0.013960516080260277, -0.004745746962726116, 0.011369078420102596, 0.005740155931562185, 0.038072619587183, 0.01791132241487503, 0.007228952366858721, 0.013614384457468987, 0.03159414976835251, -0.01422496885061264, 0.008310981094837189, -0.03391893953084946, 0.012303737923502922, -0.03318862244486809, -0.03193587437272072, -0.014766969718039036, 0.029881469905376434, 0.03372257947921753, -0.15317583084106445, 0.0032682258170098066, -7.356563969656474e-33, 0.04353460296988487, -0.039626896381378174, -0.001110138138756156, 0.03729022666811943, 0.03891710937023163, -0.001231553265824914, 0.034339338541030884, 0.016779910773038864, -0.0013725942699238658, -0.06543833017349243, 0.060474932193756104, -0.04112538695335388, -0.035693105310201645, 0.008039618842303753, 0.022759465500712395, 0.006496351212263107, -0.008237523026764393, 0.006465095095336437, -0.03134286031126976, 0.04866499453783035, -0.009079879149794579, 0.052354373037815094, -0.024585220962762833, 0.0619504489004612, -0.01782347448170185, -0.003995510283857584, -0.0012173656141385436, -0.023943647742271423, 0.030642103403806686, -0.029663607478141785, -0.06258191913366318, -0.004308224655687809, 0.0063321394845843315, -0.08071982860565186, 0.029915127903223038, -0.023585211485624313, -0.05272091552615166, 0.024963010102510452, -0.0002884198911488056, -0.007546679582446814, -0.03267719969153404, 0.0013724607415497303, -0.043700240552425385, -0.05331016331911087, -0.03184054419398308, -0.041477128863334656, 0.025984356179833412, 0.0622110478579998, -0.008743050508201122, 0.01069597527384758, 0.04129505157470703, 0.010106091387569904, 0.012799551710486412, -0.05882246419787407, -0.008083400316536427, 0.022641094401478767, 0.03208862990140915, 0.017125697806477547, -0.019987061619758606, -0.0054109422490000725, 0.004085241816937923, -0.015024809166789055, -0.03316177800297737, 0.03265044465661049, 0.0023178388364613056, -0.03266456350684166, 0.07717912644147873, 0.015947265550494194, -0.018894093111157417, 0.047879885882139206, -0.06253282725811005, 0.053285710513591766, -0.0008625568007119, -0.03513934835791588, 0.023397453129291534, 0.0023136036470532417, -0.04116080701351166, 0.023943092674016953, 0.004354444798082113, 0.03869807347655296, 0.014860657043755054, -0.00372714432887733, 0.047677624970674515, -0.03977431729435921, -0.004545625764876604, -0.044450897723436356, 0.05339842662215233, -0.015981217846274376, -0.021890614181756973, 0.008805474266409874, 0.030280791223049164, -0.0038801326882094145, -0.0028311817441135645, -0.011311274021863937, 0.0084834611043334, 8.176105406738326e-33, 0.01175696775317192, 0.05139101296663284, -0.04837046191096306, 0.02236061356961727, 0.003206149209290743, -0.006997951306402683, 0.05186561867594719, 0.005692769773304462, 0.009372219443321228, -0.022325020283460617, -0.016044463962316513, -0.024018865078687668, -0.05971219763159752, 0.011632292531430721, 0.01201719231903553, -0.03145149350166321, -0.006019788794219494, -0.013486675918102264, -0.004017779137939215, -0.0316636897623539, -0.022984031587839127, -0.0004665852175094187, 0.02918166294693947, 0.005793116986751556, -0.004409645218402147, 0.04762617126107216, 0.022628054022789, 0.0471845343708992, -0.02016175538301468, -0.01253498438745737, 0.024757588282227516, -0.05943235382437706, -0.00442481366917491, -0.038602959364652634, 0.01804121397435665, 0.04442097991704941, 0.01711081899702549, -0.009562535211443901, -0.009850181639194489, 0.013220391236245632, -0.018364539369940758, 0.04288346320390701, -0.007751705590635538, -0.031596630811691284, -0.04132503643631935, 0.02288217283785343, 0.028842143714427948, 0.040867727249860764, -0.00957715604454279, -0.02522343210875988, -0.032036516815423965, 0.03924982249736786, -0.02028714306652546, 0.03340214490890503, 0.02771684341132641, -0.027841541916131973, -0.05043938755989075, 0.029609911143779755, 0.00938274897634983, 0.004503875505179167, -0.020976597443223, -0.008574111387133598, -0.0004565718991216272, 0.009018441662192345, -0.019338438287377357, 0.03811953589320183, 0.0015256203478202224, 0.05019093304872513, -0.011375677771866322, 0.023385927081108093, 0.04063675180077553, -0.00890246219933033, 0.01715916022658348, 0.05511888861656189, 0.005014699883759022, -0.003240757156163454, -0.00403860118240118, -0.02758892811834812, 0.009312443435192108, -0.003389513585716486, -0.009514838457107544, -0.02081555686891079, 0.0019396598218008876, 0.02364153228700161, 0.02357741817831993, 0.037296708673238754, -0.017766155302524567, 0.0028148277197033167, 0.02370193414390087, -0.009154580533504486, -0.013489988632500172, 0.013893421739339828, 0.03550517186522484, 0.011413014493882656, 0.05156322568655014, -1.2523491577098866e-8, -0.03159378841519356, -0.002626358065754175, -0.05632280185818672, 0.0597415491938591, -0.03126292675733566, -0.020469771698117256, -0.017697760835289955, -0.00019920404884032905, 0.0426085889339447, -0.030649380758404732, 0.022365210577845573, -0.01673601008951664, -0.010814319364726543, 0.014130924828350544, -0.026811908930540085, -0.030983522534370422, 0.014639833942055702, -0.03626382723450661, 0.03339959681034088, 0.037689823657274246, -0.005142264533787966, 0.041989345103502274, 0.015021066181361675, -0.023927344009280205, -0.031473927199840546, 0.028812147676944733, 0.01919095404446125, -0.08524859696626663, 0.053931593894958496, 0.025005200877785683, 0.008804578334093094, -0.014155380427837372, -0.007255474105477333, -0.027021294459700584, -0.013676239177584648, -0.06997048109769821, -0.006393571849912405, 0.007204523775726557, 0.01520625501871109, 0.011947238817811012, 0.031068990007042885, -0.02216828055679798, 0.040658365935087204, -0.030581491068005562, -0.017063796520233154, 0.06601379811763763, 0.010647082701325417, -0.006776042282581329, 0.025236207991838455, 0.005518736317753792, 0.0012347690062597394, 0.043151214718818665, -0.042767565697431564, 0.0552828349173069, 0.03188847750425339, -0.031266383826732635, 0.013477543368935585, -0.006732236128300428, 0.005137053318321705, -0.025745870545506477, 0.026382382959127426, 0.0265389122068882, -0.02590883895754814, 0.007305156905204058 ]
cropping-video-ffmpeg
https://markhneedham.com/blog/2023/05/15/cropping-video-ffmpeg
false
2023-05-13 02:44:37
Python: Naming slices
[ "python", "til" ]
[ "TIL" ]
:icons: font Another gem from https://www.oreilly.com/library/view/fluent-python-2nd/9781492056348/[Fluent Python^] is that you can name slices. How did I not know that?! Let's have a look how it works using an example of a https://www.autocheck.com/vehiclehistory/vin-basics[Vehicle Identification Number^], which has 17 characters that act as a unique identifier for a vehicle. Different parts of that string mean different things. So given the following VIN: [source, python] ---- vin = "2B3HD46R02H210893" ---- We can extract components like this: [source, python] ---- print(f""" World manufacturer identifier: {vin[0:3]} Vehicle Descriptor: {vin[3:9]} Vehicle Identifier: {vin[9:17]} """.strip()) ---- If we run this code, we'll see the following output: .Output [source, text] ---- World manufacturer identifier: 2B3 Vehicle Descriptor: HD46R0 Vehicle Identifiern: 2H210893 ---- Let's say we want to reuse those slices elsewhere in our code. Maybe when we write the code we can remember what each of the slice indexes mean, but for future us it would help to name them, which we can do using the https://docs.python.org/3.11/library/functions.html#slice[`slice`^] function. Our code would then look like this: [source, python] ---- world_manufacturer_id = slice(0,3) vehicle_descriptor = slice(3,9) vehicle_identifier = slice(9,17) print(f""" World manufacturer identifier: {vin[world_manufacturer_id]} Vehicle Descriptor: {vin[vehicle_descriptor]} Vehicle Identifier: {vin[vehicle_identifier]} """.strip()) ----
In this post we'll learn about Python's named slices and show how to use that to extract parts of a vehicle identification number.
uploads/2023/05/naming-slices-banner.png
[ 0.0020779205951839685, 0.017680544406175613, -0.0016373783582821488, 0.01993376389145851, 0.06677325069904327, 0.047710202634334564, 0.021644700318574905, 0.03415435925126076, 0.008803480304777622, -0.00516219949349761, -0.006652970798313618, 0.017813531681895256, -0.07083868235349655, 0.04812809079885483, -0.017631610855460167, 0.07828355580568314, 0.0920725166797638, 0.015198323875665665, 0.015977490693330765, 0.004514629021286964, 0.029468396678566933, 0.06127746403217316, 0.010013979859650135, 0.042744193226099014, 0.0021613319404423237, 0.02366885542869568, 0.013544789515435696, 0.020614026114344597, -0.05544792488217354, -0.008135979063808918, 0.010559740476310253, -0.0006885763141326606, 0.008339786902070045, 0.004815549589693546, 0.041910070925951004, -0.04172634333372116, -0.02028651535511017, -0.024611029773950577, 0.006506820674985647, 0.02652987465262413, -0.054705530405044556, -0.007709830068051815, -0.014185738749802113, -0.00038438080810010433, -0.03613749518990517, -0.01214218232780695, -0.05554918944835663, 0.008582022041082382, 0.003461075946688652, 0.006999420002102852, -0.02886168844997883, 0.011597019620239735, -0.030667783692479134, -0.018412519246339798, -0.03306261822581291, 0.053956590592861176, 0.02210991270840168, -0.07954659312963486, 0.039342913776636124, -0.0636807307600975, 0.023428017273545265, -0.004792798776179552, 0.03039153665304184, 0.0319964773952961, -0.014923526905477047, -0.037760283797979355, -0.010457831434905529, 0.058531682938337326, -0.04724304750561714, -0.0035781809128820896, -0.03669559583067894, -0.00795870739966631, -0.021832799538969994, 0.014969417825341225, -0.008278056047856808, -0.039842844009399414, -0.025265775620937347, 0.07660555839538574, 0.030227502807974815, 0.055377960205078125, -0.0003268842992838472, 0.015880562365055084, 0.027698075398802757, 0.030705343931913376, -0.026256510987877846, -0.03977356106042862, -0.06507302075624466, -0.02763577736914158, -0.04024505987763405, 0.02110603079199791, -0.037807416170835495, -0.06724032759666443, 0.0032604336738586426, 0.004041448701173067, -0.021149376407265663, -0.02344547212123871, -0.007456677034497261, -0.018098708242177963, -0.016256345435976982, 0.013739854097366333, -0.04937474802136421, -0.05351120978593826, 0.038674287497997284, 0.030542807653546333, -0.06937997043132782, 0.007341483607888222, -0.02330365777015686, 0.0015614890726283193, 0.004425558727234602, -0.0036185558419674635, -0.017026718705892563, -0.04156942293047905, -0.04471403360366821, 0.0054391114972531796, -0.05970602482557297, 0.052935805171728134, -0.013508002273738384, -0.01602821983397007, -0.0016362997703254223, 0.030483392998576164, 0.01750555820763111, 0.0015430777566507459, -0.03328966349363327, 0.07695132493972778, -0.0032305584754794836, 0.024443915113806725, 0.0014496040530502796, 0.059747423976659775, -0.008816825225949287, -0.07204314321279526, -0.017238613218069077, 0.05958596244454384, -0.03246897831559181, -0.0005728850956074893, -0.005119654815644026, -0.009518703445792198, -0.029977601021528244, 0.016123713925480843, 0.06342530995607376, 0.008187421597540379, -0.008448639884591103, -0.000037948611861793324, -0.013326158747076988, 0.008539383299648762, 0.035265564918518066, 0.013775564730167389, -0.01093103364109993, -0.0348830446600914, -0.037994179874658585, -0.002666104817762971, 0.015587002970278263, 0.00825859047472477, 0.05062755197286606, -0.006784551311284304, 0.01848079077899456, 0.07797832787036896, 0.02413933351635933, 0.041110556572675705, -0.015244899317622185, 0.00906494352966547, 0.024739328771829605, 0.013972347602248192, -0.0043421718291938305, 0.06663994491100311, 0.02171350084245205, -0.01105024479329586, 0.021444763988256454, 0.07094994187355042, -0.034030672162771225, -0.026733390986919403, -0.07087543606758118, -0.047290556132793427, 0.06423990428447723, -0.043413516134023666, -0.005784501787275076, 0.023320922628045082, 0.0982515811920166, 0.00506054749712348, 0.04688531160354614, 0.019658327102661133, -0.0764593780040741, 0.03181347995996475, -0.017047224566340446, 0.011742220260202885, 0.018746232613921165, 0.002883023815229535, 0.08193717896938324, 0.018112951889634132, 0.0024352490436285734, 0.035663481801748276, -0.03415939211845398, -0.07147830724716187, 0.0036243009380996227, -0.021302733570337296, 0.06119823455810547, -0.048153385519981384, 0.01454131305217743, 0.05950134992599487, 0.01787586510181427, 0.05671527981758118, -0.0050932057201862335, -0.011777202598750591, -0.007557797245681286, -0.04062103107571602, -0.06072312965989113, 0.03489375859498978, 0.025484411045908928, -0.02525094896554947, -0.02967982180416584, 0.027958471328020096, -0.007536635734140873, 0.0017364677041769028, 0.05320383980870247, -0.01516213733702898, 0.03988683968782425, 0.0022293885704129934, 0.02711796574294567, -0.002503152471035719, 0.04817638918757439, -0.08904523402452469, -0.0012235055910423398, -0.005404708441346884, -0.026172680780291557, -0.0438794381916523, -0.012478127144277096, 0.13197678327560425, 0.08054746687412262, -0.031756844371557236, -0.056407783180475235, 0.017031604424118996, -0.009899605065584183, -0.033055003732442856, 0.009864653460681438, -0.013951543718576431, -0.046537309885025024, 0.02689194865524769, -0.047275375574827194, -0.008033777587115765, 0.007195591926574707, -0.033936548978090286, -0.018131885677576065, 0.04693014547228813, -0.02577449195086956, 0.021479735150933266, 0.05909419059753418, -0.0015126155922189355, 0.020923981443047523, -0.009947438724339008, -0.023554638028144836, 0.005369412712752819, 0.008854914456605911, -0.010427692905068398, 0.04956575855612755, -0.051964230835437775, -0.05292525887489319, -0.028659271076321602, -0.020559264346957207, 0.040088802576065063, 0.0480843223631382, 0.05646192282438278, -0.04825388640165329, 0.048315517604351044, -0.020651116967201233, -0.005288936663419008, 0.0009227931732311845, -0.0489724837243557, -0.04117265343666077, -0.027473704889416695, 0.03666731342673302, 0.024379057809710503, 0.017691627144813538, 0.03707785904407501, 0.0026911403983831406, 0.002706643659621477, 0.00606184545904398, 0.029858428984880447, 0.02013382315635681, 0.006022749003022909, -0.009667939506471157, -0.02886497601866722, -0.04153711721301079, 0.05981225147843361, -0.032909832894802094, -0.04362650588154793, -0.029888564720749855, -0.06774566322565079, 0.0425528921186924, -0.07407554239034653, -0.035560864955186844, -0.031196527183055878, 0.010613974183797836, 0.017902689054608345, -0.029109977185726166, 0.02781844511628151, 0.036409880965948105, -0.002014192519709468, -0.009252171963453293, 0.036064717918634415, -0.003038040129467845, 0.01810465194284916, 0.007285682484507561, 0.027476510033011436, 0.04074928164482117, -0.01422643568366766, -0.0007589722517877817, -0.052205298095941544, 0.006683667656034231, -0.019774358719587326, -0.2547924518585205, 0.0009981398470699787, -0.014167268760502338, -0.02740340679883957, 0.033023882657289505, -0.012835373170673847, 0.005539220292121172, -0.039110083132982254, 0.0000279007635981543, 0.01656014285981655, -0.03145691379904747, -0.05756591632962227, 0.0006676806369796395, 0.03336586058139801, 0.011441638693213463, 0.015535547398030758, -0.00918673723936081, -0.024291587993502617, 0.0005245998618192971, 0.038931798189878464, 0.014522984623908997, -0.07126250118017197, -0.007152735721319914, 0.053200557827949524, -0.007806498557329178, 0.039565425366163254, -0.09063397347927094, 0.02562299184501171, -0.04540235921740532, -0.002148550469428301, -0.007975088432431221, 0.005542082246392965, 0.02347017265856266, -0.023091880604624748, -0.00028534719604067504, -0.08182451874017715, 0.0203647930175066, -0.02263321913778782, -0.004252112004905939, 0.019706357270479202, -0.047751810401678085, -0.02610534429550171, 0.034023135900497437, -0.0018136997241526842, 0.07008496671915054, 0.013987544924020767, -0.08086324483156204, -0.02917645499110222, -0.02245280332863331, 0.07635162025690079, -0.030040379613637924, -0.03187889978289604, -0.0012274796608835459, 0.0439850352704525, -0.025732921436429024, -0.01737668365240097, 0.025743693113327026, 0.01683611236512661, -0.05744103714823723, -0.04142884165048599, 0.001639026333577931, -0.05875452235341072, -0.008663931861519814, -0.05388350039720535, -0.013661499135196209, -0.05196636542677879, -0.041043419390916824, 0.0045425789430737495, 0.036621902137994766, 0.04117109626531601, -0.06260816007852554, -0.008686975575983524, -0.027006711810827255, -0.11218851059675217, 0.028168225660920143, -0.03288286551833153, -0.005636433605104685, 0.004470775835216045, 0.0010709775378927588, 0.06269606947898865, -0.03013852797448635, -0.061280474066734314, 0.0022173088509589434, -0.018215777352452278, -0.008375835604965687, -0.012220131233334541, 0.029968203976750374, -0.009910662658512592, -0.004855116829276085, -0.0025999031495302916, 0.06342574208974838, -0.0007798557635396719, -0.0039049810729920864, -0.020518828183412552, 0.000284594832919538, 0.011261898092925549, 0.05164424329996109, 0.030321145430207253, 0.010287048295140266, 0.029055820778012276, 0.009143167175352573, -0.1028391569852829, -0.027517877519130707, 0.001575323287397623, -0.012965193949639797, -0.002339188242331147, -0.016765322536230087, -0.000018446749891154468, 0.043540552258491516, -0.0047289542853832245, -0.007177762221544981, -0.020557895302772522, 0.016184471547603607, -0.0643203929066658, -0.012237629853188992, -0.036865558475255966, 0.02207864262163639, 0.014922793954610825, 0.045870132744312286, -0.03603113070130348, -0.05580851063132286, 0.040423307567834854, 0.004320218693464994, -0.0011312932474538684, -0.04715128615498543, -0.034325312823057175, 0.0019276770763099194, -0.017276309430599213, 0.030691305175423622, 0.016145842149853706, 0.007570034824311733, 0.02155957743525505, 0.0012765700230374932, -0.033999573439359665, 0.04510178789496422, 0.003949887119233608, -0.015505748800933361, -0.014595456421375275, -0.006087692454457283, -0.009738234803080559, -0.017105260863900185, -0.006366790737956762, 0.027920983731746674, -0.014914308674633503, 0.039794400334358215, 0.02559298276901245, 0.01667916215956211, -0.012555928900837898, -0.019273603335022926, 0.019567321985960007, 0.02171034924685955, -0.012603797018527985, 0.0019864500500261784, -0.013444344513118267, -0.005361106246709824, -0.018035896122455597, 0.019668111577630043, -0.005388293880969286, -0.033185362815856934, -0.02334429696202278, 0.062477000057697296, -0.030892586335539818, 0.0277931559830904, -0.008488569408655167, -0.019110288470983505, 0.02869611419737339, 0.028841931372880936, 0.01241250429302454, -0.015133820474147797, 0.003899854840710759, 0.02483155019581318, 0.02169918641448021, -0.019141368567943573, 0.013340460136532784, -0.024748804047703743, -0.017452381551265717, 0.025220898911356926, 0.021371891722083092, -0.016188621520996094, 0.019525788724422455, 0.021328117698431015, 0.014457153156399727, 0.014256535097956657, -0.008196916431188583, 0.02012353576719761, 0.028647201135754585, -0.017190471291542053, -0.011106650345027447, -0.02170160412788391, -0.02935934253036976, -0.05142834037542343, 0.011827216483652592, -0.05616908520460129, 0.004476490896195173, -0.02272595651447773, -0.07462160289287567, -0.01672002300620079, 0.009205623529851437, 0.01299605704843998, 0.004331882577389479, -0.02612057700753212, 0.026525210589170456, 0.0011719678295776248, -0.004671839531511068, 0.04523013159632683, -0.03883986547589302, 0.012797998264431953, -0.012167676351964474, 0.02084995247423649, -0.006563481409102678, 0.03951722010970116, -0.0907587856054306, -0.04304278641939163, -0.006007201038300991, -0.0036123956087976694, -0.011919479817152023, -0.0391765795648098, -0.009800346568226814, 0.022698920220136642, -0.011906571686267853, 0.027134913951158524, -0.026945652440190315, 0.01786048337817192, -0.018115418031811714, -0.010441211983561516, 0.028641056269407272, -0.009876548312604427, -0.017109453678131104, 0.0555284209549427, 0.0017600484425202012, 0.03235254064202309, -0.013101340271532536, 0.043762415647506714, 0.016234304755926132, 0.0011792599689215422, -0.018594002351164818, -0.04959284886717796, -0.008767375722527504, -0.012345358729362488, 0.05247751995921135, 0.013532893732190132, 0.043225448578596115, -0.049662426114082336, 0.007759932428598404, -0.03270319104194641, 0.007685995660722256, 0.006766825914382935, -0.04148110747337341, 0.006806561257690191, 0.05312499403953552, -0.01689937897026539, -0.00228493963368237, 0.02745022438466549, -0.04500587284564972, 0.060047343373298645, -0.0411643348634243, -0.034996770322322845, -0.0033023145515471697, -0.03257932886481285, 0.03825920447707176, -0.0007485973183065653, 0.05730018764734268, -0.03322853520512581, 0.053785618394613266, 0.03818700090050697, 0.06244240328669548, 0.0013498483458533883, 0.0010245830053463578, 0.02035723812878132, -0.017824919894337654, 0.03453751653432846, -0.07757522910833359, 0.0033821160905063152, 0.05218082293868065, 0.004700332880020142, -0.04849083349108696, 0.001923955511301756, -0.04424932226538658, 0.0437249094247818, -0.06793217360973358, -0.02757422998547554, 0.03551027923822403, 0.025653062388300896, 0.014022616669535637, 0.00476432591676712, -0.03896523267030716, 0.0022757849656045437, 0.030168315395712852, -0.047048211097717285, 0.005878082476556301, 0.0015765605494379997, 0.0711546316742897, -0.020438456907868385, 0.04085353761911392, -0.0003955021093133837, -0.021198345348238945, 0.08920612931251526, 0.034008488059043884, -0.008034591563045979, 0.06361809372901917, -0.00322556309401989, 0.03916936740279198, 0.004017932340502739, -0.00414348766207695, -0.003679797286167741, 0.05341620370745659, -0.015094156377017498, -0.06488041579723358, 0.01880776882171631, 0.011061614379286766, -0.0022055695299059153, -0.05726372078061104, 0.06959029287099838, 0.018908666446805, 0.00893188826739788, -0.04323360696434975, 0.024298841133713722, -0.06562062352895737, -0.017828810960054398, -0.009459150955080986, -0.007739048916846514, -0.05586928501725197, 0.06454841792583466, -0.0029713886324316263, -0.016357218846678734, 0.05174190178513527, -0.0371227040886879, -0.015289870090782642, 0.00007170414028223604, 0.07291774451732635, 0.08064817637205124, 0.07343332469463348, 0.011112501844763756, 0.058553073555231094, -0.021961815655231476, -0.049732886254787445, -0.01891479827463627, -0.021875731647014618, 0.01368208508938551, 0.007640956435352564, 0.026404283940792084, 0.07189211249351501, -0.007185277063399553, 0.0589832179248333, -0.031329136341810226, 0.013878741301596165, -0.015159902162849903, -0.0015116693684831262, -0.003245854051783681, 0.06661007553339005, -0.004519865848124027, 0.04612702876329422, -0.009239844046533108, 0.009938175790011883, 0.028576672077178955, 0.0019671975169330835, -0.01480566244572401, 0.02664780244231224, -0.03335997834801674, 0.03347733989357948, -0.005181266926229, 0.06560122221708298, 0.10773896425962448, -0.03766987845301628, -0.05671118199825287, -0.003881879150867462, 0.02112662047147751, 0.018282528966665268, 0.005674057174474001, 0.012832924723625183, -0.0013017973396927118, 0.018198568373918533, -0.04458731412887573, -0.04736656695604324, -0.03891982138156891, -0.01904747076332569, 0.03495592251420021, 0.005826117470860481, -0.01898198574781418, 0.018907053396105766, 0.0007145231356844306, -0.02873660996556282, -0.014016539789736271, -0.0755264088511467, -0.021387232467532158, -0.05169261619448662, -0.0330028161406517, 0.02461538091301918, -0.021135102957487106, -0.03885342553257942, -0.04494251683354378, 0.008853414095938206, -0.0203787200152874, 0.01582775078713894, -0.032225269824266434, -0.036464888602495193, 0.024382861331105232, 0.027996204793453217, 0.015277646481990814, 0.00850322749465704, 0.049586378037929535, -0.007159361150115728, -0.04253152757883072, -0.03432543948292732, 0.01048311684280634, 0.04020221158862114, 0.024725284427404404, 0.005617091897875071, -0.07318481802940369, 0.0022326719481498003, 0.02909393608570099, -0.004178086295723915, -0.08140431344509125, 0.012272423133254051, 0.01130345556885004, -0.04312976077198982, 0.023313285782933235, -0.01764766499400139, 0.019298743456602097, -0.0399610809981823, -0.03896776959300041, 0.015716493129730225, 0.024763144552707672, 0.030693499371409416, -0.016712289303541183, 0.10262581706047058, 0.015536258928477764, 0.0013731366489082575, -0.037462346255779266, -0.00069375557359308, -0.03410080447793007, 0.02716638892889023, -0.05287005379796028, -0.015693189576268196, -0.03688671067357063, -0.05407483130693436, 0.01942460425198078, 0.020990099757909775, -0.01841595023870468, -0.028164513409137726, 0.011508479714393616, -0.00034919317113235593, -0.03052704595029354, 0.05941247195005417, -0.04225612431764603, 0.008078675717115402, -0.022750116884708405, -0.02687513642013073, -0.00813476461917162, 0.059078119695186615, -0.000899139151442796, 0.05396808311343193, 0.019713841378688812, -0.04679647460579872, 0.004055033437907696, -0.034211013466119766, 0.04681168869137764, 0.035630811005830765, -0.0016537340125069022, 0.03738511726260185 ]
[ -0.04675779491662979, 0.011491482146084309, -0.014783875085413456, -0.00894854310899973, 0.017369089648127556, -0.049013786017894745, -0.004888591356575489, 0.055074144154787064, -0.00620208028703928, -0.024129679426550865, 0.020284214988350868, -0.06567882001399994, -0.0019844158086925745, -0.05458926036953926, 0.02061470039188862, -0.02472582273185253, -0.004133029840886593, -0.020474020391702652, -0.012636319734156132, -0.02263524755835533, 0.016595643013715744, -0.03613518923521042, -0.01404653862118721, -0.01128800306469202, 0.031472738832235336, 0.08489757031202316, 0.04609241336584091, -0.011656898073852062, 0.0038566847797483206, -0.22190888226032257, 0.016867494210600853, 0.03001255914568901, 0.054734814912080765, 0.0026101828552782536, 0.003425933187827468, 0.029758820310235023, -0.02718394435942173, 0.056690141558647156, -0.012769659049808979, 0.011844811029732227, 0.04092845320701599, -0.005868441425263882, -0.05328788235783577, -0.0010256600799039006, 0.02706599421799183, 0.022392094135284424, -0.03175411745905876, -0.014878329820930958, -0.0024627235252410173, -0.0032601270359009504, -0.04576418921351433, 0.020803941413760185, 0.0046280729584395885, -0.0009929543593898416, -0.0379328615963459, 0.023794077336788177, 0.03567707911133766, 0.03932793810963631, 0.02232934907078743, 0.0006810936029069126, 0.01876983791589737, -0.05117981880903244, -0.12262748926877975, 0.10659657418727875, 0.004295486956834793, 0.0495268888771534, -0.05490926280617714, -0.014143121428787708, -0.028306469321250916, 0.07417237013578415, 0.0017003887332975864, -0.04098418727517128, -0.05644114315509796, 0.03610016405582428, -0.03311292454600334, -0.044598791748285294, 0.004492050502449274, -0.012789429165422916, 0.015220209024846554, -0.040784019976854324, -0.051544878631830215, -0.01131161767989397, -0.03003791533410549, -0.042595092207193375, -0.0044418578036129475, 0.014938673935830593, 0.014175915159285069, 0.03490503877401352, 0.03942793235182762, 0.031129056587815285, -0.024094104766845703, -0.04006977379322052, 0.058849651366472244, 0.05072885751724243, -0.11075326800346375, -0.016456762328743935, -0.0006719522643834352, -0.0005219552549533546, -0.013276138342916965, 0.41730329394340515, -0.04093054682016373, 0.0035788111854344606, 0.00577860651537776, -0.017488200217485428, 0.04041381552815437, 0.022421186789870262, -0.0893770158290863, -0.016093289479613304, -0.0334390327334404, -0.027924859896302223, 0.03452510014176369, 0.021018484607338905, 0.03693332150578499, -0.06337746232748032, 0.006939881015568972, -0.0315026231110096, -0.015059498138725758, 0.021853212267160416, 0.022137418389320374, -0.03600842133164406, -0.017715198919177055, 0.008485750295221806, 0.021056270226836205, 0.0006022455636411905, 0.00009032291563926265, 0.03596462681889534, 0.06198374927043915, 0.04458034038543701, 0.02933766506612301, 0.03573323041200638, 0.03306221589446068, -0.01875847391784191, -0.07161295413970947, 0.0221257321536541, 0.028096752241253853, 0.030938973650336266, 0.021359805017709732, 0.0003452521632425487, -0.023091353476047516, 0.0034700871910899878, -0.020509084686636925, -0.028541410341858864, 0.025047186762094498, 0.00594324292615056, -0.04436517506837845, 0.07343503832817078, -0.03699956834316254, -0.006285838782787323, -0.029178142547607422, -0.03892304375767708, -0.02077924832701683, 0.04670159891247749, 0.0064911022782325745, -0.046071894466876984, 0.015773287042975426, 0.027936123311519623, 0.07561276853084564, -0.028062542900443077, -0.045972514897584915, -0.0007594560156576335, 0.03779219090938568, -0.04146299511194229, -0.03829571232199669, 0.04831003397703171, 0.012225590646266937, -0.14558741450309753, -0.0433477908372879, 0.06271196901798248, 0.017605874687433243, -0.06984320282936096, 0.00930522009730339, 0.03910290077328682, -0.059789400547742844, 0.044364869594573975, 0.037638790905475616, 0.043803870677948, -0.050126153975725174, 0.04111756384372711, 0.07003238052129745, 0.003575399983674288, -0.03249033913016319, -0.010131989605724812, -0.03113391250371933, -0.020994408056139946, 0.009852905757725239, -0.05930407717823982, -0.07429428398609161, -0.02870051935315132, -0.01810314506292343, -0.046763669699430466, -0.013524618931114674, 0.012126896530389786, -0.03213179484009743, 0.06335560977458954, -0.04580635949969292, 0.02242748811841011, 0.005249691195785999, -0.003459054743871093, -0.0008703145431354642, -0.044011399149894714, 0.013052352704107761, 0.02352287620306015, 0.028655242174863815, 0.027405640110373497, -0.038925085216760635, 0.01189208310097456, 0.04463806003332138, -0.04738760367035866, 0.02796855941414833, 0.015741219744086266, -0.03834494575858116, -0.019314579665660858, -0.008474844507873058, 0.01797417551279068, -0.00659004645422101, -0.0450146310031414, -0.020875927060842514, 0.04186910763382912, -0.0035342953633517027, 0.006801891140639782, -0.022671328857541084, -0.0827573612332344, -0.019196996465325356, -0.3489428758621216, -0.01467933040112257, -0.012111707590520382, 0.024437200278043747, -0.004892722703516483, -0.05531438812613487, 0.019890693947672844, -0.010584700852632523, 0.0024039698764681816, -0.000936986762098968, 0.06977293640375137, -0.015166567638516426, 0.010245010256767273, -0.08580965548753738, -0.0011012577451765537, 0.075168676674366, -0.015485348179936409, -0.013670005835592747, -0.011438049376010895, 0.055044759064912796, 0.0134523781016469, 0.011990971863269806, -0.02161317504942417, -0.008019261993467808, -0.037770725786685944, -0.030541274696588516, 0.13999763131141663, -0.0008882253896445036, 0.06818569451570511, -0.004294247832149267, 0.04118805751204491, 0.040044330060482025, 0.00591347087174654, -0.03341030701994896, 0.0053992485627532005, -0.07143523544073105, -0.012335317209362984, 0.020129287615418434, -0.00603178795427084, -0.012549255974590778, -0.021453777328133583, 0.0018622445641085505, 0.003645783755928278, 0.0016391167882829905, 0.034018374979496, -0.02815232239663601, -0.0274050273001194, -0.03527892753481865, 0.043621648102998734, 0.07487539947032928, 0.048390552401542664, 0.08450062572956085, 0.013262535445392132, 0.032470814883708954, -0.002225169911980629, -0.0332639217376709, -0.06590931862592697, -0.012626832351088524, -0.010014760307967663, -0.05285909026861191, -0.007220979779958725, -0.014025161974132061, 0.05767054855823517, -0.06756805628538132, -0.01962495781481266, 0.05232406407594681, -0.03145940601825714, -0.03949610888957977, 0.02663443423807621, -0.00594020402058959, -0.061727091670036316, 0.11900816857814789, 0.012509766966104507, -0.017171625047922134, 0.016990432515740395, 0.03362254798412323, 0.013185971416532993, 0.02471292018890381, 0.04352960363030434, -0.019518405199050903, 0.03240625932812691, 0.013116063550114632, 0.06537657231092453, -0.019884593784809113, 0.06169725954532623, 0.02563077211380005, -0.017875662073493004, 0.016038240864872932, 0.038643814623355865, 0.017221812158823013, -0.001705001574009657, 0.021358812227845192, 0.0035808184184134007, -0.03513810411095619, 0.06261846423149109, 0.006048896349966526, -0.24316337704658508, 0.06420604139566422, 0.08015288412570953, 0.06781085580587387, 0.03995587304234505, 0.006921835243701935, 0.01112811453640461, -0.09549649804830551, -0.02305169403553009, -0.021354230120778084, -0.002313409000635147, 0.018071571364998817, 0.05464671924710274, -0.00350290909409523, 0.037498533725738525, 0.0009174086153507233, 0.06198301166296005, 0.0081156175583601, -0.0028322460129857063, 0.040494710206985474, 0.0004073033051099628, -0.014885746873915195, 0.17682290077209473, -0.0025564979296177626, 0.03018369898200035, -0.018352216109633446, -0.014045909978449345, -0.0222554262727499, 0.02993992157280445, 0.06822796911001205, 0.023682398721575737, -0.03376437723636627, 0.06291607022285461, -0.009542861022055149, 0.02167457342147827, -0.03662395104765892, -0.024117447435855865, -0.005547868553549051, 0.008876027539372444, 0.017305241897702217, -0.00024033681256696582, 0.054352402687072754, -0.10574229061603546, 0.0009478231659159064, 0.05023738741874695, -0.005018323659896851, 0.014790021814405918, -0.027433032169938087, -0.021788008511066437, 0.022391745820641518, -0.015279887244105339, -0.012853287160396576, -0.0783272311091423, -0.03648857772350311, 0.01647501438856125, -0.01830635964870453, 0.012964097782969475, -0.03682209551334381, 0.025966865941882133, 0.018153920769691467, -0.026858318597078323, -0.034433748573064804, 0.0871376246213913, 0.04616162180900574, -0.0011536526726558805 ]
[ -0.027515646070241928, 0.02660604938864708, -0.003583227749913931, 0.0021242385264486074, 0.008079893887043, -0.0008233211119659245, -0.02866569720208645, 0.05617107078433037, -0.050234321504831314, -0.03489668294787407, 0.03289855644106865, 0.01648959144949913, 0.018029281869530678, 0.021299339830875397, 0.002115899696946144, -0.014148754067718983, 0.02466924488544464, 0.004614671226590872, -0.021318458020687103, -0.004696875344961882, 0.005761853884905577, 0.061349526047706604, 0.04136035218834877, 0.027126038447022438, -0.028361432254314423, 0.0022064230870455503, -0.022519947960972786, 0.01854928396642208, 0.011021843180060387, -0.1354580521583557, 0.013464228250086308, -0.005468046758323908, -0.004083719104528427, -0.002839038847014308, 0.01067947968840599, -0.036955825984478, -0.03052462451159954, 0.023597830906510353, 0.009220159612596035, -0.047435007989406586, 0.0034982608631253242, -0.06319378316402435, -0.045004431158304214, -0.01349899172782898, 0.02116265520453453, -0.017962580546736717, -0.005613778252154589, 0.0036034516524523497, 0.047197189182043076, -0.026943128556013107, -0.053504012525081635, 0.02168768085539341, 0.00412033312022686, -0.04080939665436745, 0.018098579719662666, -0.03791714087128639, -0.02548098936676979, 0.022736182436347008, 0.003995094448328018, -0.028204595670104027, 0.020002076402306557, 0.009637929499149323, 0.009079753421247005, -0.024309908971190453, -0.012096053920686245, 0.001113034668378532, -0.016315175220370293, 0.0003201304643880576, -0.032369464635849, -0.01895114593207836, 0.009743268601596355, 0.010020007379353046, -0.03034636378288269, -0.036327846348285675, 0.0021710151340812445, -0.013368118554353714, 0.024372726678848267, 0.0048210215754806995, -0.010401914827525616, -0.00402587465941906, -0.03630225360393524, 0.03253705054521561, -0.008853496052324772, 0.004491210449486971, 0.01228433195501566, -0.01744384504854679, -0.013011982664465904, 0.011862984858453274, 0.00571895157918334, 0.04077029973268509, -0.029287148267030716, -0.058956488966941833, 0.031214362010359764, 0.032587651163339615, -0.08530914038419724, -0.0039273216389119625, 0.043629445135593414, -0.01120429951697588, 0.0018906902987509966, 0.809956967830658, 0.018423058092594147, 0.004922090098261833, -0.004280818626284599, 0.033594485372304916, -0.027551811188459396, 0.06320348381996155, 0.01180238276720047, 0.0029073446057736874, -0.010778944008052349, -0.023839745670557022, 0.06259659677743912, 0.028523115441203117, 0.01258107554167509, -0.02712034061551094, -0.00031873685657046735, 0.0167697686702013, 0.011565864086151123, -0.001195932156406343, 0.04313718155026436, 0.016147254034876823, -0.02227337472140789, -0.010576215572655201, 0.02522675320506096, 0.0094455536454916, 0.04388756677508354, -0.1482323855161667, 0.0435580275952816, -6.46159693755411e-33, -0.0096807312220335, 0.008855359628796577, -0.019720125943422318, 0.021016625687479973, -0.0034492891281843185, -0.0016593519831076264, -0.02935868315398693, 0.011238276958465576, 0.005452932324260473, -0.021064963191747665, -0.01596861332654953, 0.01520507037639618, 0.006851844023913145, -0.010445148684084415, 0.02795327827334404, -0.012724467553198338, -0.004155090544372797, 0.027469919994473457, -0.024450337514281273, -0.007346133701503277, 0.030216792598366737, 0.011060095392167568, 0.020247934386134148, 0.01305483840405941, 0.0035584126599133015, 0.04646170511841774, -0.01094428263604641, -0.014306063763797283, -0.005768105387687683, -0.021001644432544708, -0.02947833575308323, 0.011389418505132198, 0.0021442037541419268, 0.0006810119957663119, 0.0006611119024455547, -0.03461749106645584, -0.08113855123519897, -0.030954783782362938, -0.04508398100733757, -0.004197007976472378, 0.002242999617010355, -0.0014263568446040154, -0.048707522451877594, -0.04099365696310997, -0.03238062560558319, 0.011148321442306042, 0.022732026875019073, 0.036248043179512024, -0.021640481427311897, 0.04124936833977699, 0.012002922594547272, -0.009805018082261086, 0.031241852790117264, -0.016837360337376595, -0.0017295333091169596, 0.04248906299471855, 0.02216523140668869, -0.02395343966782093, -0.011709349229931831, -0.03479587286710739, -0.010543225333094597, 0.02153453603386879, -0.014473059214651585, 0.04012394696474075, -0.014157840050756931, 0.03936015069484711, -0.0012298988876864314, 0.027713749557733536, 0.019332027062773705, 0.03778703510761261, -0.04469940438866615, 0.0017612467054277658, -0.02576449140906334, -0.03727918118238449, 0.04149908572435379, -0.03464394807815552, 0.0005139707936905324, -0.05432535335421562, -0.0177595391869545, 0.031554415822029114, -0.014254940673708916, 0.014969369396567345, -0.038701143115758896, -0.048991233110427856, -0.008257742039859295, 0.0450737401843071, 0.027540741488337517, -0.011117327958345413, 0.02385038696229458, 0.03210124373435974, -0.03265747055411339, 0.006559336092323065, -0.028286997228860855, -0.010317841544747353, 0.021073298528790474, 5.877902646259411e-33, 0.01850348711013794, -0.009875222109258175, 0.018464619293808937, 0.011007237248122692, -0.0034448415972292423, -0.08046194165945053, 0.01330625917762518, 0.03215780481696129, -0.06562058627605438, 0.004222068469971418, -0.03598291054368019, -0.043434422463178635, -0.0015376554802060127, 0.016053996980190277, 0.06069314852356911, 0.02305006794631481, 0.018276259303092957, -0.024502623826265335, 0.007846216671168804, 0.0057706027291715145, -0.017439525574445724, 0.0011857624631375074, -0.00044668393093161285, 0.02902916818857193, -0.027477968484163284, 0.04499400034546852, -0.0041376203298568726, 0.01476738229393959, 0.02666403539478779, -0.024953022599220276, -0.012717233039438725, -0.024513987824320793, -0.015539608895778656, -0.0180526040494442, -0.02594289742410183, 0.07193444669246674, -0.00043650672887451947, 0.009191569872200489, -0.016141392290592194, -0.014442963525652885, 0.018861347809433937, -0.030696434900164604, -0.03341939300298691, 0.05502624064683914, -0.03704063594341278, -0.008498829789459705, 0.03257989138364792, 0.01578650251030922, 0.012852465733885765, 0.022189905866980553, 0.05520756542682648, 0.048018645495176315, 0.008229180239140987, 0.05802207440137863, -0.012413687072694302, -0.0033773051109164953, 0.033198997378349304, 0.04345909133553505, -0.04349245876073837, 0.007646807935088873, 0.017041271552443504, 0.004447541665285826, -0.04094383493065834, -0.007115805987268686, -0.021654050797224045, -0.08106669783592224, -0.05336757376790047, -0.044975295662879944, -0.0127634322270751, -0.038435518741607666, -0.01157058123499155, -0.020814035087823868, 0.004579922184348106, 0.015067986212670803, -0.025096353143453598, -0.02077762596309185, -0.031030278652906418, 0.014091011136770248, -0.006974199786782265, -0.008749554865062237, 0.035542357712984085, -0.04331352561712265, 0.03682929649949074, 0.04088950157165527, -0.012648141011595726, 0.033856336027383804, -0.06481664627790451, 0.002229126403108239, 0.042667653411626816, -0.025053495541214943, -0.009848696179687977, 0.010431228205561638, -0.03041045181453228, 0.02168826013803482, -0.06013704091310501, -1.2243017266655443e-8, 0.008291136473417282, 0.03241915628314018, -0.025012074038386345, 0.013797726482152939, -0.03066396899521351, 0.0034777161199599504, -0.02503347024321556, -0.004038079641759396, -0.038868606090545654, 0.014280138537287712, 0.07730259746313095, 0.014811521396040916, -0.028940442949533463, 0.02201952040195465, 0.0002497854584362358, -0.033106204122304916, 0.012655657716095448, 0.021477043628692627, 0.019038839265704155, 0.0063567678444087505, 0.003641843795776367, 0.00932586845010519, -0.012139864265918732, 0.0020718760788440704, -0.0036509542260318995, -0.01954730413854122, 0.02453390508890152, -0.10230547189712524, 0.05077275261282921, -0.005474121775478125, -0.010418386198580265, -0.0029457618948072195, 0.018425744026899338, 0.004147809464484453, 0.036407534033060074, -0.03165983036160469, -0.010591407306492329, 0.033835917711257935, 0.02984693832695484, 0.002728804247453809, 0.025335611775517464, 0.02073521539568901, -0.031901583075523376, -0.02746327966451645, -0.03401600942015648, 0.0018845903687179089, -0.02782408520579338, 0.001978521468117833, -0.003963736817240715, -0.010775845497846603, 0.007519365753978491, -0.02659783698618412, -0.006667319219559431, 0.07436588406562805, 0.011877089738845825, 0.0032747643999755383, 0.02613959088921547, -0.014241673983633518, 0.012271124869585037, -0.00419180141761899, 0.021779052913188934, 0.025861311703920364, -0.006223381031304598, -0.040025532245635986 ]
python-naming-slices
https://markhneedham.com/blog/2023/05/13/python-naming-slices
false
2023-05-25 02:44:37
DuckDB: Ingest a bunch of CSV files from GitHub
[ "duckdb", "til" ]
[ "TIL" ]
:icons: font Jeff Sackmann's https://github.com/jeffsackmann/tennis_atp/[tennis_atp^] repository is one of the best collections of tennis data and I wanted to ingest the ATP Tour singles matches using the DuckDB CLI. In this blog post we'll learn how to do that. Usually when I'm ingesting data into DuckDB I'll specify the files that I want to ingest using the wildcard syntax. In this case that would mean running a query like this: [source, sql] ---- CREATE OR REPLACE TABLE matches AS SELECT * FROM "https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_*.csv" ---- But we can't use that technique for files on GitHub because it's not a file system. If we run the query above, we'll get the following error message: [source, sql] ---- Error: Invalid Error: HTTP Error: Unable to connect to URL "https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_*.csv": 404 (Not Found) ---- So, instead, we need to construct a list of URLs, which we can do using a combination of the `generate_series` function that I https://www.markhneedham.com/blog/2023/05/24/duckdb-sql-create-list-numbers/[covered in my last blog post^] and the `list_transform` function. We'll use `generate_series` to create a list of the years, like this: [source, sql] ---- SELECT range(1968, 1970) ---- [options="header"] .Output |=== |range(1968, 1970) |[1968, 1969] |=== And then we can use `list_transform` to map or project over each value to construct a URL: [source, sql] ---- SELECT list_transform( range(1968, 1970), y -> 'https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_' || y || '.csv' ) AS files; ---- [options="header"] .Output |=== |files |[https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_1968.csv, https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_1969.csv] |=== And then finally we can bring it all together to ingest the files from 1968 until 2023: [source, sql] ---- CREATE OR REPLACE TABLE matches AS SELECT * FROM read_csv_auto( list_transform( range(1968, 2023), y -> 'https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_' || y || '.csv' ), types={'winner_seed': 'VARCHAR', 'loser_seed': 'VARCHAR'} ); ---- It'll take a few seconds, but once it's done we can do an exploratory query to make sure everything was ingested: [source, sql] ---- SELECT count(*) FROM matches; ---- [options="header"] .Output |=== |count(*) |188191 |===
In this post we'll learn how to ingest a collection of CSV files from a GitHub repository.
uploads/2023/05/ingest-banner.png
[ -0.020868772640824318, 0.014607845805585384, -0.030673442408442497, 0.029715517535805702, 0.09344091266393661, -0.0033813545014709234, 0.012301454320549965, 0.042905308306217194, -0.011098742485046387, -0.030993573367595673, 0.0041309865191578865, -0.030701715499162674, -0.08567196130752563, 0.0029579519759863615, 0.000301459280308336, 0.07942357659339905, 0.06334961950778961, 0.008069300092756748, 0.03372405469417572, -0.011303053237497807, -0.0037558593321591616, 0.04883526638150215, -0.006504257675260305, 0.0471656508743763, 0.04902667924761772, 0.030012648552656174, 0.002073033479973674, 0.015816673636436462, -0.051391780376434326, -0.0037710454780608416, 0.054320525377988815, -0.010043983347713947, 0.03367464616894722, -0.008908954448997974, 0.025329504162073135, -0.02366696670651436, 0.005021712277084589, 0.012180580757558346, 0.002430880442261696, 0.015185621567070484, -0.05918349325656891, 0.022531770169734955, -0.017072118818759918, -0.001681760186329484, -0.012130470015108585, 0.029255542904138565, -0.04598437622189522, 0.019744815304875374, -0.029346639290452003, -0.008895369246602058, -0.040357206016778946, 0.043711043894290924, -0.03223999962210655, -0.008465120568871498, -0.007527743931859732, 0.03483893349766731, 0.03950555622577667, -0.05730374529957771, 0.015436099842190742, -0.032189421355724335, 0.01613888144493103, 0.0027125843334943056, 0.0258818157017231, 0.014926863834261894, 0.025562869384884834, 0.0007758586434647441, 0.0019617429934442043, 0.047089796513319016, -0.03986433148384094, 0.003116891486570239, 0.00902495440095663, -0.02969757653772831, -0.03467332199215889, -0.027219470590353012, 0.016107803210616112, -0.02536207064986229, -0.037634339183568954, 0.061693619936704636, 0.01487912517040968, 0.0583060123026371, -0.037098873406648636, 0.026859717443585396, 0.0027336168568581343, 0.020175501704216003, 0.024879345670342445, -0.07004048675298691, -0.03941553831100464, 0.0006017666310071945, -0.07016639411449432, 0.062192417681217194, 0.02662776969373226, -0.04347071051597595, 0.0071912589482963085, -0.006056458689272404, -0.007535342592746019, -0.009660206735134125, 0.0027921125292778015, -0.005691982805728912, 0.008063615299761295, -0.018155764788389206, -0.054226409643888474, -0.013260262086987495, 0.04622628539800644, 0.02561948075890541, -0.09050660580396652, 0.02750714309513569, -0.0327579490840435, -0.022518377751111984, 0.027016881853342056, -0.0022874765563756227, -0.021127276122570038, -0.013402335345745087, -0.01898982934653759, -0.012324017472565174, -0.05834812670946121, 0.08679397404193878, 0.04459964856505394, -0.009767388924956322, 0.010382741689682007, 0.023622700944542885, 0.05306402966380119, 0.0034370184876024723, -0.017133641988039017, 0.07498082518577576, 0.014756085351109505, 0.0016981738153845072, 0.03381158038973808, 0.028103942051529884, -0.003127314615994692, -0.05121420696377754, -0.01767083816230297, 0.061863575130701065, 0.014502111822366714, 0.0032277863938361406, -0.0053257509134709835, -0.022955292835831642, -0.0037295310758054256, -0.024529073387384415, 0.053246933966875076, 0.013647086918354034, 0.016701694577932358, -0.025679923593997955, -0.001481326180510223, -0.020367728546261787, 0.04342295229434967, 0.025906724855303764, 0.036248140037059784, -0.04391932860016823, -0.021086018532514572, 0.01487727276980877, 0.039841365069150925, 0.025115467607975006, 0.061692241579294205, -0.03436589986085892, -0.006424812600016594, 0.10324220359325409, 0.031389493495225906, -0.0006459744763560593, -0.001615982735529542, 0.01145254448056221, 0.043933089822530746, 0.043009202927351, -0.0091905752196908, 0.024639304727315903, 0.014717519283294678, -0.030847910791635513, -0.02739478461444378, 0.03564399480819702, -0.0584387332201004, 0.0012944289483129978, -0.060578037053346634, -0.07436718046665192, 0.09516409039497375, -0.012839701026678085, -0.007152722217142582, 0.027946334332227707, 0.06808296591043472, 0.019481904804706573, 0.04321123659610748, 0.02713027037680149, -0.07846944034099579, 0.046849384903907776, -0.0014746574452146888, -0.004090142901986837, 0.012425052002072334, -0.0035525027196854353, 0.09866801649332047, 0.028691843152046204, 0.004009677097201347, 0.07626115530729294, -0.07103580981492996, -0.09378356486558914, -0.0610443539917469, -0.005952693987637758, 0.04300872981548309, -0.04430992901325226, 0.02868138626217842, 0.05227401852607727, 0.028861496597528458, 0.02810545451939106, -0.010720957070589066, 0.031146340072155, 0.022853294387459755, -0.03792588412761688, -0.06392592191696167, 0.03691038116812706, 0.026916930451989174, -0.031049935147166252, -0.018308455124497414, 0.027316048741340637, -0.015380442142486572, 0.0007713462109677494, 0.01447310671210289, -0.032136134803295135, 0.02023540437221527, -0.0066580395214259624, 0.036334410309791565, -0.012575630098581314, 0.012376958504319191, -0.06001054868102074, 0.03515636548399925, 0.05040330812335014, -0.014351624995470047, 0.0007258359109982848, -0.015810292214155197, 0.14035895466804504, 0.0484737902879715, -0.005571195390075445, -0.05659826099872589, 0.03618667647242546, -0.013413702137768269, -0.027077767997980118, 0.01610979437828064, -0.02278546616435051, -0.012004624120891094, -0.00890066847205162, 0.0030975386034697294, -0.034158673137426376, 0.0023516116198152304, -0.04397154971957207, -0.00005330331259756349, 0.054046597331762314, -0.0014801089419052005, 0.04552534222602844, 0.010002256371080875, -0.06804413348436356, -0.030958615243434906, -0.026641270145773888, -0.04870429262518883, -0.006111886817961931, 0.01953669637441635, -0.011783053167164326, 0.017918793484568596, -0.040259312838315964, -0.022030511870980263, -0.0316295251250267, -0.06281201541423798, 0.0641443207859993, 0.037817563861608505, 0.07299399375915527, -0.0580533966422081, 0.026387060061097145, 0.004279006272554398, 0.02200671099126339, -0.03365486487746239, -0.04129365086555481, -0.025851618498563766, -0.015921298414468765, 0.03097156621515751, 0.0035043300595134497, 0.009554465301334858, 0.016758587211370468, -0.013922437094151974, 0.006593428552150726, -0.011895311996340752, 0.003035299712792039, 0.0114241112023592, -0.02036968059837818, -0.00996103323996067, -0.03147057071328163, 0.006709252949804068, 0.05456572771072388, -0.04789840430021286, -0.04248004034161568, -0.00420161010697484, -0.05438714474439621, 0.03055472858250141, -0.045018769800662994, -0.0367983877658844, 0.009676607325673103, 0.015715599060058594, 0.06156193092465401, -0.011636264622211456, -0.00857230182737112, 0.06382275372743607, 0.010231164284050465, 0.002958429977297783, 0.028499912470579147, 0.017073309049010277, 0.03719246760010719, 0.011358213610947132, 0.006182752549648285, 0.04730262607336044, -0.007931285537779331, -0.004802602343261242, -0.056028127670288086, -0.001973832491785288, -0.006945772096514702, -0.27387771010398865, 0.04123980551958084, -0.006460004951804876, -0.012617215514183044, 0.02580428309738636, 0.0071128555573523045, -0.014226376079022884, -0.028545955196022987, -0.008622457273304462, 0.008162781596183777, -0.0036499006673693657, -0.033471714705228806, -0.01294171903282404, 0.016499556601047516, 0.013256160542368889, 0.007974817417562008, 0.010542034171521664, -0.05457647144794464, -0.004193363711237907, 0.043337784707546234, -0.002522447146475315, -0.05546598508954048, 0.01749335043132305, 0.038538116961717606, 0.04401750490069389, 0.05128488689661026, -0.05510848015546799, 0.019250696524977684, -0.043069954961538315, -0.043264273554086685, -0.010833809152245522, 0.000008274304491351359, -0.0063903555274009705, 0.012752247974276543, -0.030741645023226738, 0.004194630775600672, 0.048334553837776184, -0.007383444812148809, 0.03307598456740379, 0.025035209953784943, -0.0381961427628994, -0.022254599258303642, -0.01705937087535858, 0.002359574194997549, 0.09913001954555511, 0.005534412804991007, -0.06136966869235039, 0.013934087008237839, -0.03004099428653717, 0.059300266206264496, -0.03954058513045311, -0.033634185791015625, -0.02868899516761303, 0.023733627051115036, 0.03574807941913605, 0.005899186711758375, -0.00964273326098919, 0.021800687536597252, -0.04521744325757027, -0.01973964460194111, -0.0020904571283608675, -0.025803856551647186, -0.02209301106631756, -0.02183392457664013, -0.019931085407733917, -0.09089620411396027, -0.028125520795583725, -0.018983284011483192, 0.08635539561510086, 0.06248793005943298, -0.027400527149438858, 0.019446847960352898, -0.032450463622808456, -0.11529652029275894, -0.022168774157762527, -0.023880448192358017, -0.012775791808962822, -0.004610295407474041, -0.04583282768726349, 0.03602110594511032, -0.03698108717799187, -0.030901119112968445, -0.0031096264719963074, 0.03191649913787842, 0.026248250156641006, -0.031963370740413666, 0.005945125594735146, -0.002098497934639454, -0.0035466854460537434, 0.011005083099007607, 0.0684419572353363, -0.04442106932401657, -0.025058530271053314, -0.025093398988246918, -0.03132035955786705, 0.04378571733832359, -0.010542272590100765, 0.012665240094065666, -0.0006747656734660268, 0.0275433287024498, 0.030648479238152504, -0.05242599546909332, 0.00806878786534071, -0.03702803701162338, -0.01693546213209629, 0.004632904194295406, -0.05142862722277641, 0.03203987702727318, 0.019248010590672493, 0.05241524428129196, -0.004906956572085619, -0.045766863971948624, 0.02795601636171341, -0.07551184296607971, -0.03208538889884949, -0.008358797058463097, 0.020869407802820206, -0.004948187153786421, 0.021958118304610252, -0.013077775947749615, -0.05336003005504608, 0.03129221871495247, 0.0062553053721785545, -0.02311130240559578, -0.05139433965086937, -0.040158435702323914, 0.014532849192619324, -0.011688338592648506, 0.003634421154856682, 0.02101704850792885, -0.021196220070123672, 0.020850524306297302, 0.0382559634745121, -0.02893083542585373, 0.04635610431432724, -0.012910386547446251, -0.03401826322078705, -0.022029615938663483, -0.010317722335457802, 0.004494335036724806, -0.014035815373063087, -0.0011374889872968197, 0.0030433612409979105, 0.034494977444410324, 0.05230451747775078, 0.0010477486066520214, 0.01036290917545557, -0.011792661622166634, 0.001199799939058721, 0.02106199413537979, -0.009638187475502491, -0.02416379377245903, 0.05326865240931511, -0.035250045359134674, -0.04335549473762512, -0.042389336973428726, 0.009689527563750744, -0.007269436493515968, -0.017817120999097824, -0.03789689019322395, -0.010502866469323635, -0.04618164896965027, 0.012338020838797092, -0.003966485150158405, -0.01234676968306303, 0.06504166126251221, 0.014950604178011417, 0.010322114452719688, -0.028458066284656525, -0.009408032521605492, 0.02180364355444908, -0.027994541451334953, -0.03632298484444618, -0.0020565891172736883, -0.006217500660568476, -0.015684276819229126, 0.020961355417966843, 0.03350785747170448, 0.023157725110650063, 0.014227429404854774, -0.011922267265617847, -0.02790183760225773, 0.013060496188700199, 0.027445189654827118, 0.05006696283817291, 0.02582150138914585, -0.010423213243484497, -0.009571358561515808, 0.006245213095098734, -0.04721502959728241, -0.025786153972148895, -0.022191070020198822, 0.008338811807334423, 0.00858607329428196, -0.027533601969480515, -0.0677562803030014, 0.051869649440050125, 0.0382862463593483, 0.011426141485571861, 0.012543104588985443, -0.009927753359079361, -0.025727570056915283, -0.0278618223965168, 0.05667070299386978, 0.03423738107085228, -0.07622887194156647, -0.00533056678250432, -0.013600924052298069, 0.004226191900670528, 0.005132375285029411, 0.028506102040410042, -0.045484188944101334, 0.013804709538817406, 0.005371078383177519, 0.033833444118499756, -0.023137880489230156, 0.013035197742283344, -0.0030998887959867716, 0.0034064899664372206, -0.006067059934139252, 0.0015484740724787116, -0.010036689229309559, 0.00034712659544311464, -0.007437285967171192, -0.02323746122419834, 0.01461820863187313, -0.03287499025464058, -0.04806758835911751, 0.027665449306368828, -0.018398987129330635, 0.024222318083047867, -0.03517580404877663, 0.05134393647313118, 0.00820846762508154, 0.006180567666888237, -0.04508153721690178, -0.04540179669857025, -0.0031483236234635115, -0.0001493814488640055, 0.040813151746988297, -0.0011867128778249025, -0.011150718666613102, -0.007891171611845493, 0.008280741982161999, -0.014461989514529705, -0.005117012653499842, 0.005987436976283789, -0.03675166517496109, 0.03783981129527092, 0.037652332335710526, 0.018107736483216286, 0.03010856918990612, -0.005954698659479618, -0.046360865235328674, 0.049056824296712875, -0.024620287120342255, -0.027151692658662796, -0.012875012122094631, -0.06228974089026451, 0.05030757933855057, 0.016220761463046074, 0.04773659631609917, -0.07592587918043137, 0.045284565538167953, 0.048029158264398575, 0.004822380840778351, 0.05296779051423073, -0.0019885418005287647, 0.0342029444873333, -0.030877817422151566, -0.028099745512008667, -0.08793177455663681, -0.031128697097301483, 0.014082033187150955, -0.014565595425665379, -0.0059575666673481464, 0.028083916753530502, -0.044376157224178314, -0.006228957790881395, -0.07785779982805252, -0.026197165250778198, 0.0600067637860775, -0.014501597732305527, -0.00044803970376960933, 0.01175310742110014, -0.046141400933265686, 0.005604516249150038, 0.05809812992811203, -0.026629256084561348, -0.017768550664186478, -0.02468390390276909, 0.05965303257107735, -0.004971140064299107, 0.04096328467130661, -0.03307492658495903, -0.019774936139583588, 0.06243319436907768, -0.00017823489906731993, 0.00988844409584999, 0.051247838884592056, -0.020792799070477486, 0.041137222200632095, 0.01407823245972395, 0.010169816203415394, 0.02625112421810627, 0.024713454768061638, -0.033531710505485535, -0.04563786834478378, 0.029618268832564354, 0.0050843264907598495, -0.03251424431800842, -0.08139001578092575, 0.061276596039533615, -0.002793090883642435, -0.039500679820775986, -0.05735638737678528, 0.010888972319662571, -0.025527220219373703, 0.004828294273465872, -0.005310412961989641, 0.009973875246942043, -0.05435231328010559, 0.0579928457736969, -0.00940371211618185, 0.0129052409902215, 0.05633530765771866, 0.024798324331641197, -0.04175456985831261, -0.0019406536594033241, 0.06908940523862839, 0.084370456635952, 0.009579930454492569, 0.00463706161826849, 0.05678185075521469, -0.004326927475631237, -0.04986900836229324, -0.011076647788286209, -0.02155257761478424, -0.011671065352857113, -0.03545501455664635, 0.005411763675510883, 0.06756453961133957, 0.0044692805968225, 0.06785482913255692, -0.00195632828399539, -0.015393486246466637, -0.01059709768742323, 0.002768150996416807, 0.04794381186366081, 0.023386381566524506, -0.0030461023561656475, 0.0458485372364521, -0.0030578819569200277, -0.01628333143889904, 0.03349800035357475, 0.0031324196606874466, -0.04068559780716896, -0.004384739324450493, -0.028855664655566216, 0.03704901039600372, 0.0055237640626728535, 0.043572697788476944, 0.05454249680042267, -0.03762688860297203, 0.014249158091843128, 0.0015687408158555627, 0.01243248488754034, 0.003607138292863965, 0.019221561029553413, -0.006899294443428516, -0.024493344128131866, -0.021542778238654137, -0.03804972022771835, 0.0011680606985464692, -0.019055893644690514, -0.02966521680355072, 0.0376727432012558, -0.03253994509577751, -0.01079194899648428, 0.03934448957443237, 0.0019363116007298231, -0.04316490888595581, -0.04110446944832802, -0.058745600283145905, -0.03156636655330658, -0.05863156169652939, -0.023859914392232895, -0.007735320832580328, -0.040896251797676086, -0.044746655970811844, -0.04014470428228378, -0.010090150870382786, -0.021332399919629097, 0.018379146233201027, -0.03549430891871452, -0.034035924822092056, 0.004315022844821215, 0.03873221203684807, 0.036449916660785675, 0.008048182353377342, 0.059336237609386444, -0.018078844994306564, -0.019748570397496223, -0.032398246228694916, -0.012266878969967365, 0.05340159311890602, -0.01595272310078144, 0.02237510308623314, -0.06590796262025833, 0.04363104701042175, 0.007949816063046455, 0.0026975395157933235, -0.06682192534208298, 0.02943563088774681, 0.04192523658275604, -0.012014240026473999, 0.056394461542367935, -0.012627252377569675, 0.005371986422687769, -0.05703981593251228, -0.03411518409848213, -0.008822818286716938, 0.0011150779901072383, 0.06246742978692055, -0.03178974241018295, 0.056705594062805176, 0.040476102381944656, 0.0004405688669066876, -0.02810491807758808, -0.016163814812898636, -0.018256962299346924, 0.008443845435976982, -0.03620108217000961, -0.02740207314491272, -0.05017949640750885, -0.09276401996612549, -0.024204766377806664, 0.018144937232136726, -0.012157543562352657, -0.016317659988999367, -0.019640792161226273, 0.025832585990428925, -0.017843138426542282, 0.01200939156115055, -0.03694452717900276, 0.02966713346540928, -0.023164138197898865, -0.012699108570814133, -0.052665673196315765, 0.04767060652375221, 0.013097320683300495, 0.009298538789153099, 0.05411161482334137, -0.04787592217326164, 0.018779147416353226, -0.016014408320188522, 0.019069043919444084, 0.06637182086706161, -0.017465420067310333, 0.010291694663465023 ]
[ -0.08060405403375626, -0.05056939646601677, -0.03837990015745163, -0.04012521728873253, 0.04936201497912407, -0.037482086569070816, -0.032919641584157944, -0.028849244117736816, 0.023561682552099228, -0.016842925921082497, -0.007209703326225281, -0.08100332319736481, 0.026376156136393547, 0.015072105452418327, 0.003281887387856841, -0.038320206105709076, -0.008245104923844337, -0.049153584986925125, -0.016610683873295784, 0.06222270056605339, -0.035084959119558334, -0.011855755932629108, -0.042040083557367325, -0.02928953431546688, -0.02553248405456543, 0.03147890791296959, 0.06597719341516495, -0.042272474616765976, -0.00864523183554411, -0.21030496060848236, -0.01848715916275978, -0.015820283442735672, -0.001710320357233286, 0.027451323345303535, 0.007280257996171713, -0.01587449386715889, 0.02365860901772976, -0.016697106882929802, -0.0162054430693388, 0.04185537248849869, 0.018123621121048927, 0.021187826991081238, -0.03331218287348747, 0.02482672967016697, 0.05757630988955498, 0.000804584298748523, -0.008765388280153275, -0.0013952759327366948, 0.034178949892520905, -0.000028587855922523886, -0.036687929183244705, 0.053728461265563965, -0.02068152278661728, 0.02540646120905876, 0.007146463263779879, 0.04578740894794464, 0.06946467608213425, 0.050195418298244476, -0.01261029951274395, 0.0008288112585432827, 0.0542788952589035, 0.03305407613515854, -0.14002899825572968, 0.09663408249616623, -0.02089034579694271, 0.04577454552054405, -0.0033548243809491396, 0.02430495247244835, 0.020754259079694748, 0.05232202261686325, -0.03486848250031471, -0.04130309447646141, -0.011752041056752205, 0.05779431760311127, 0.020431874319911003, -0.04035848751664162, -0.014693276025354862, 0.0412965789437294, -0.009430390782654285, 0.008880998007953167, -0.03410020098090172, -0.028293512761592865, -0.0382404662668705, -0.03490837290883064, -0.05482226237654686, 0.012036124244332314, -0.019029341638088226, -0.008725589141249657, 0.006867553107440472, 0.010893285274505615, 0.031005749478936195, 0.015096099115908146, 0.050740133970975876, 0.0385371670126915, -0.07091350108385086, -0.014230831526219845, 0.019419033080339432, 0.031512416899204254, 0.024504894390702248, 0.4001610279083252, -0.011863300576806068, -0.0008030157769098878, -0.017672836780548096, 0.016852281987667084, -0.008680437691509724, -0.0018116900464519858, 0.011415036395192146, -0.030455200001597404, 0.024128058925271034, -0.02824786677956581, -0.007943648844957352, -0.044506192207336426, 0.05521007999777794, -0.047636207193136215, 0.0027133130934089422, 0.026897607371211052, -0.0004297373234294355, 0.046550750732421875, -0.05004359409213066, 0.034163542091846466, -0.04982420429587364, -0.030884597450494766, 0.041227713227272034, 0.027369724586606026, -0.0003748687740880996, 0.014310118742287159, -0.0166336540132761, 0.05445818230509758, 0.07991620153188705, 0.011671129614114761, 0.03511674702167511, -0.0014922581613063812, -0.108260877430439, 0.018549131229519844, 0.015619631856679916, -0.019459351897239685, 0.028961047530174255, -0.020023731514811516, 0.028473274782299995, 0.03251215070486069, 0.008210794068872929, -0.054754845798015594, 0.060820188373327255, -0.002167319180443883, -0.04215380176901817, 0.11481411010026932, 0.020294679328799248, -0.02276364155113697, -0.0736805647611618, -0.03768154978752136, -0.005194235127419233, -0.014795846305787563, 0.03954049199819565, 0.00490711722522974, -0.010653589852154255, 0.04155730828642845, 0.0992889478802681, -0.01781538873910904, -0.08409417420625687, -0.04897346720099449, -0.051018960773944855, -0.07592695951461792, -0.03012823686003685, 0.043571993708610535, 0.05924096703529358, -0.12194307893514633, -0.028445562347769737, 0.03171472251415253, -0.02073783427476883, -0.05190972983837128, 0.030983341857790947, -0.01641964353621006, -0.04137004539370537, 0.04979317635297775, 0.024041803553700447, -0.013521489687263966, -0.0026362822391092777, -0.013083857484161854, 0.03794553130865097, 0.01761152781546116, -0.025386646389961243, -0.0018731734016910195, -0.027606016024947166, -0.006463511381298304, -0.03070402704179287, -0.07696318626403809, -0.07081174105405807, 0.032854583114385605, 0.025056712329387665, -0.0030902379658073187, -0.06250323355197906, -0.0511881560087204, -0.1001189723610878, 0.057279590517282486, -0.062420111149549484, -0.04205818474292755, 0.030327176675200462, 0.0012945488560944796, 0.0347287580370903, -0.03289070352911949, 0.008142434060573578, 0.02041078358888626, 0.02359676919877529, 0.014768747612833977, -0.03129908815026283, 0.016154229640960693, 0.017645126208662987, -0.06463655084371567, 0.05004751309752464, 0.00934478547424078, -0.029581908136606216, 0.007454767823219299, -0.04197617992758751, 0.029821103438735008, -0.027869656682014465, -0.042126964777708054, 0.006913886405527592, 0.00360039877705276, 0.026492837816476822, -0.0007608827436342835, -0.006031991448253393, -0.015604621730744839, -0.0491810105741024, -0.34712719917297363, -0.019140690565109253, -0.054354798048734665, 0.01206484530121088, 0.04132619872689247, -0.03241272643208504, -0.02550879865884781, -0.0019480844493955374, 0.0061912438832223415, 0.06209130212664604, 0.03224249556660652, -0.025728585198521614, -0.0058033280074596405, -0.056828681379556656, -0.0056048049591481686, 0.007734562736004591, -0.016057295724749565, -0.039430879056453705, -0.03025090880692005, -0.0012825108133256435, 0.04132218658924103, -0.053852181881666183, -0.048341359943151474, -0.050718922168016434, 0.026561232283711433, -0.02565397508442402, 0.10350354015827179, 0.06338420510292053, 0.009517828933894634, -0.06095855310559273, 0.07507648319005966, 0.013383504003286362, -0.024320412427186966, -0.08438406139612198, 0.03949443995952606, -0.022788237780332565, 0.001620529335923493, 0.016901083290576935, 0.03367401659488678, -0.05933905392885208, -0.019008846953511238, -0.0025041631888598204, -0.013041235506534576, -0.051073260605335236, 0.01165448222309351, -0.004614720121026039, 0.02134459838271141, -0.01946077309548855, -0.017893068492412567, 0.07672546058893204, 0.028908532112836838, 0.024105511605739594, 0.0337526872754097, -0.01144181564450264, -0.009498069994151592, -0.020154504105448723, -0.06094717979431152, -0.01784394681453705, 0.018065016716718674, -0.009602605365216732, 0.03884407877922058, 0.02437753602862358, 0.056004781275987625, -0.019173365086317062, -0.03821312636137009, -0.014331168495118618, 0.034174930304288864, -0.005245474632829428, 0.05722168833017349, -0.03253215551376343, -0.05186924338340759, 0.05088270455598831, -0.00395168224349618, 0.053511474281549454, 0.05730903521180153, 0.047760508954524994, -0.01630401983857155, 0.0058280001394450665, 0.01939838007092476, 0.0020263181068003178, 0.02304585836827755, -0.04099487513303757, 0.07697246223688126, -0.0313107967376709, 0.021120810881257057, 0.08176331222057343, 0.031296778470277786, -0.03457813337445259, 0.07001639902591705, 0.015210318379104137, -0.006620241794735193, -0.016684506088495255, -0.04127771034836769, -0.019576117396354675, 0.05536960810422897, 0.0178031325340271, -0.2648014724254608, 0.029038941487669945, 0.07564481347799301, 0.07158403098583221, 0.01790403015911579, -0.029049107804894447, 0.07801122963428497, -0.033647578209638596, -0.0052799805998802185, -0.013241592794656754, 0.03621279075741768, -0.02839433029294014, -0.010720212943851948, 0.024440089240670204, -0.009149010293185711, -0.016932938247919083, 0.03294322267174721, 0.010644352063536644, 0.026878276839852333, 0.03394140303134918, 0.06867967545986176, -0.014629396609961987, 0.16907697916030884, 0.03934653848409653, 0.01324559934437275, 0.03150957450270653, -0.002771827159449458, -0.00767167005687952, 0.07819624990224838, 0.01406114548444748, -0.014036817476153374, -0.004690843168646097, 0.056925006210803986, -0.015854593366384506, 0.05334298685193062, -0.0024901037104427814, -0.009017503820359707, 0.06122836098074913, -0.00550959724932909, -0.026916271075606346, -0.016908982768654823, 0.012963822111487389, -0.031623754650354385, 0.05001939833164215, 0.0506061427295208, -0.0025099802296608686, 0.002037867670878768, -0.033140599727630615, -0.046016305685043335, 0.016039378941059113, -0.021618440747261047, -0.06568443030118942, 0.0068474747240543365, -0.02192942053079605, 0.00569347757846117, 0.02570563182234764, 0.029498685151338577, -0.015428162179887295, 0.038695719093084335, 0.0335872620344162, 0.04259616881608963, -0.04644441604614258, 0.06874267756938934, 0.03669585660099983, 0.002831416204571724 ]
[ -0.02306784875690937, 0.02471962943673134, -0.019926823675632477, -0.00005211799725657329, -0.015214500948786736, 0.023852333426475525, 0.011222868226468563, 0.02650866098701954, -0.007701169699430466, -0.01217140257358551, -0.04630785435438156, -0.007124645169824362, 0.04762508347630501, -0.0029713683761656284, 0.014265546575188637, -0.016229063272476196, -0.0187360942363739, 0.007911676540970802, 0.04398679360747337, 0.014519646763801575, -0.015962768346071243, 0.040907274931669235, 0.0351511649787426, 0.005457467865198851, -0.025774531066417694, 0.0012214794987812638, -0.04050666466355324, 0.009274681098759174, 0.00005750606578658335, -0.10836677253246307, -0.06182848662137985, -0.013178368099033833, -0.009996079839766026, 0.022780228406190872, 0.0007073932210914791, -0.021851863712072372, -0.03730323165655136, 0.036667317152023315, -0.005851525813341141, 0.010026808828115463, 0.01904105767607689, -0.029841545969247818, -0.021233411505818367, 0.05772952362895012, -0.023118428885936737, -0.021407006308436394, -0.03255040571093559, 0.008648039773106575, 0.02293059416115284, 0.02143806219100952, -0.05741941183805466, -0.017136145383119583, 0.0021846413146704435, -0.0003667096607387066, 0.02957339771091938, 0.008510845713317394, -0.04597080871462822, -0.0006981016485951841, 0.004740412812680006, -0.033308520913124084, 0.010835623368620872, -0.01625383086502552, -0.03628186881542206, -0.036445070058107376, -0.028082560747861862, -0.05521450191736221, -0.0223504900932312, 0.03736236318945885, 0.0370347797870636, -0.003144429065287113, -0.028998803347349167, 0.03568742424249649, -0.05061238631606102, -0.001921859453432262, -0.008002023212611675, 0.018807703629136086, -0.01950802095234394, -0.015378815121948719, 0.02004176937043667, -0.019230565056204796, -0.017918521538376808, -0.0030637390445917845, 0.009148607961833477, -0.019960720092058182, 0.03801710903644562, -0.03117472492158413, 0.047462258487939835, -0.00440102256834507, 0.006761607248336077, -0.019946590065956116, -0.006474172230809927, 0.005787623580545187, 0.03278379887342453, 0.015461809001863003, -0.08608829230070114, 0.02981690689921379, 0.010527370497584343, -0.0077940309420228004, 0.0080725671723485, 0.834425687789917, 0.02409914694726467, 0.002442709868773818, 0.01062596496194601, 0.00672044325619936, -0.012056225910782814, -0.0045348950661718845, -0.0038901420775800943, -0.013315580785274506, 0.03089888207614422, -0.03536351025104523, -0.010073491372168064, 0.011364271864295006, 0.026459481567144394, -0.00913394894450903, -0.0164371095597744, 0.04442944377660751, 0.000453844026196748, -0.009876363910734653, -0.0312783382833004, 0.008104803040623665, 0.0035205536987632513, -0.03787123039364815, 0.003419468877837062, 0.010543697513639927, 0.0011589477071538568, -0.15977473556995392, 0.005879880394786596, -7.216320146763683e-33, 0.041534315794706345, -0.052034713327884674, 0.033775921911001205, -0.019864022731781006, 0.0003963384951930493, -0.01438637264072895, -0.014942710287868977, -0.012212850153446198, -0.0454285703599453, -0.02279328554868698, 0.03341469541192055, 0.001242691883817315, 0.004020006395876408, -0.018574582412838936, 0.04682537913322449, -0.0002950840862467885, 0.0003052244719583541, 0.03899344801902771, 0.02059319242835045, -0.016246050596237183, -0.0015866183675825596, 0.030161913484334946, 0.022612571716308594, 0.0055826581083238125, 0.02531561069190502, 0.061646897345781326, -0.005533882882446051, -0.029440855607390404, -0.026204586029052734, -0.03004962019622326, -0.029399432241916656, -0.018567711114883423, -0.0172402486205101, -0.06263763457536697, 0.02111002616584301, -0.04323473572731018, -0.003639492904767394, -0.008079132996499538, -0.02108851820230484, -0.022613396868109703, -0.055244941264390945, -0.009584145620465279, -0.011145777069032192, -0.024688685312867165, -0.02043135277926922, -0.01161256618797779, 0.0007245487649925053, 0.04743700474500656, -0.0238029845058918, 0.03717675805091858, 0.03914497420191765, -0.016446471214294434, -0.018336251378059387, -0.0194416344165802, 0.0022985371761024, 0.010527863167226315, -0.01640898920595646, -0.0011859163641929626, 0.014726249501109123, 0.017692508175969124, 0.0260944627225399, -0.0008291068370454013, 0.0008798668277449906, 0.014231710694730282, 0.02388034202158451, 0.033350612968206406, -0.005681473296135664, -0.006568378768861294, 0.03741127997636795, 0.026278769597411156, -0.01699400693178177, 0.020245125517249107, -0.004562444519251585, -0.03926166892051697, 0.026021122932434082, 0.00023979661636985838, 0.0315953828394413, -0.016793927177786827, 0.012034761719405651, 0.045358989387750626, 0.026479680091142654, 0.003261902602389455, -0.041958119720220566, -0.024032533168792725, -0.06065395846962929, -0.007589603774249554, 0.030248936265707016, 0.005734720267355442, -0.017105812206864357, -0.005242643412202597, 0.06792633980512619, 0.0525020994246006, -0.0021533756516873837, -0.022365977987647057, -0.04268186539411545, 6.900534609674814e-33, 0.03217408061027527, 0.00697705615311861, 0.011025850661098957, -0.02293606474995613, 0.05871070548892021, -0.03609625995159149, 0.017551500350236893, 0.01798577420413494, -0.01823635771870613, 0.024600258097052574, -0.024643363431096077, 0.006661593448370695, -0.030013903975486755, -0.010784603655338287, 0.03158922865986824, -0.010602368973195553, 0.006745835766196251, -0.015228640288114548, -0.026011209934949875, 0.024784104898571968, 0.009765817783772945, 0.020813487470149994, 0.03224000334739685, 0.03256634250283241, -0.002409587847068906, 0.02375633455812931, -0.018493477255105972, -0.008267284370958805, -0.007170852739363909, 0.018153443932533264, 0.011556633748114109, -0.009557167999446392, -0.017395609989762306, -0.016308389604091644, -0.04809422045946121, 0.01712067425251007, 0.010801626369357109, 0.023865632712841034, 0.014866497367620468, -0.006092872004956007, 0.031838420778512955, 0.027655551210045815, -0.0015445724129676819, 0.02130175195634365, 0.023207005113363266, -0.02274259552359581, 0.010182530619204044, 0.019722145050764084, -0.004904964938759804, -0.0014373988378793001, 0.03298025578260422, 0.02274206653237343, -0.01994980312883854, -0.014773069880902767, 0.01793155074119568, -0.002042712178081274, -0.025510340929031372, 0.04552511125802994, -0.027302207425236702, -0.007073402404785156, -0.03941870108246803, 0.00885025504976511, -0.049861520528793335, 0.02514360100030899, -0.011387444101274014, 0.0026165791787207127, -0.07376234233379364, -0.005840008612722158, -0.026601513847708702, -0.034175772219896317, -0.011939031071960926, -0.0002859733940567821, 0.0016704598674550653, 0.05228697136044502, 0.04132852703332901, -0.02189413271844387, -0.035214636474847794, 0.008644497953355312, 0.00191895489115268, 0.07133947312831879, -0.017786439508199692, 0.017042774707078934, 0.006900944281369448, -0.017515117302536964, -0.00413235928863287, 0.02652265690267086, -0.030797338113188744, -0.011547721922397614, 0.028637222945690155, -0.014769235625863075, 0.012446660548448563, -0.06560539454221725, 0.0006282085087150335, 0.04451359808444977, 0.017489835619926453, -1.2609341126790241e-8, -0.04114306718111038, 0.03758055344223976, -0.010292216204106808, -0.00597727345302701, 0.0253819040954113, 0.022239521145820618, -0.024981698021292686, -0.010311090387403965, 0.04341796785593033, 0.01950930804014206, 0.030244654044508934, 0.02181069180369377, 0.047645896673202515, 0.04633202776312828, 0.025562630966305733, -0.011828411370515823, 0.03233889117836952, -0.00481431046500802, 0.00329203880392015, -0.010189215652644634, -0.030071478337049484, 0.047902993857860565, 0.0006825488526374102, -0.0021435399539768696, 0.0021271887235343456, -0.02132459729909897, -0.007067650556564331, -0.0736045092344284, -0.03363708779215813, 0.0052780937403440475, 0.050253234803676605, -0.014731335453689098, -0.040197309106588364, -0.016768351197242737, 0.0015165075892582536, -0.031061409041285515, 0.009695586748421192, 0.027571389451622963, 0.018108027055859566, 0.009593023918569088, -0.04098805785179138, -0.012501426972448826, -0.012835334986448288, -0.014300662092864513, -0.033835332840681076, -0.02109687030315399, 0.00040603976231068373, 0.005824832245707512, -0.00022677573724649847, -0.049815334379673004, 0.042975250631570816, -0.015946289524435997, 0.027304701507091522, -0.026943916454911232, 0.04070056229829788, 0.01465541124343872, 0.007017915137112141, 0.004405478481203318, -0.009420481510460377, -0.023321369662880898, 0.029739776626229286, -0.02200593426823616, 0.009834135882556438, 0.00437371339648962 ]
duckdb-ingest-csv-files-github
https://markhneedham.com/blog/2023/05/25/duckdb-ingest-csv-files-github
false
2023-02-01 02:44:37
DuckDB: Join based on maximum value in other table
[ "duckdb", "sql" ]
[ "DuckDB" ]
In this blog post we're going to learn how to write a SQL query to join two tables where one of the tables has multiple rows for each key. We want to select only the rows that contain the most recent (or maximum) value from that table. Our story begins with a https://www.youtube.com/watch?v=ogge3kmm_2g[YouTube video^] that I created showing how to query the https://www.kaggle.com/datasets/hugomathien/soccer[European Soccer SQLite database^] with DuckDB. This database contains lots of different tables, but we are only interested in `Player` and `Player_Attributes`. Let's have a quick look at the structure of those tables: [source,sql] ---- DESCRIBE Player; ---- .Output [format="csv", options="header"] |=== column_name,column_type,null,key,default,extra id,BIGINT,YES,,, player_api_id,BIGINT,YES,,, player_name,VARCHAR,YES,,, player_fifa_api_id,BIGINT,YES,,, birthday,VARCHAR,YES,,, height,FLOAT,YES,,, weight,BIGINT,YES,,, |=== [source,sql] ---- DESCRIBE Player_Attributes; ---- .Output [format="csv", options="header"] |=== column_name,column_type,null,key,default,extra id,BIGINT,YES,,, player_fifa_api_id,BIGINT,YES,,, player_api_id,BIGINT,YES,,, date,VARCHAR,YES,,, overall_rating,BIGINT,YES,,, potential,BIGINT,YES,,, preferred_foot,VARCHAR,YES,,, attacking_work_rate,VARCHAR,YES,,, defensive_work_rate,VARCHAR,YES,,, crossing,BIGINT,YES,,, finishing,BIGINT,YES,,, heading_accuracy,BIGINT,YES,,, short_passing,BIGINT,YES,,, volleys,BIGINT,YES,,, dribbling,BIGINT,YES,,, curve,BIGINT,YES,,, free_kick_accuracy,BIGINT,YES,,, long_passing,BIGINT,YES,,, ball_control,BIGINT,YES,,, acceleration,BIGINT,YES,,, sprint_speed,BIGINT,YES,,, agility,BIGINT,YES,,, reactions,BIGINT,YES,,, balance,BIGINT,YES,,, shot_power,BIGINT,YES,,, jumping,BIGINT,YES,,, stamina,BIGINT,YES,,, strength,BIGINT,YES,,, long_shots,BIGINT,YES,,, aggression,BIGINT,YES,,, interceptions,BIGINT,YES,,, positioning,BIGINT,YES,,, vision,BIGINT,YES,,, penalties,BIGINT,YES,,, marking,BIGINT,YES,,, standing_tackle,BIGINT,YES,,, sliding_tackle,BIGINT,YES,,, gk_diving,BIGINT,YES,,, gk_handling,BIGINT,YES,,, gk_kicking,BIGINT,YES,,, gk_positioning,BIGINT,YES,,, gk_reflexes,BIGINT,YES,,, |=== Let's start by writing a query that finds the `overall_rating` for Lionel Messi by joining the `Player` and `Player_Attributes` tables: [source, sql] ---- SELECT date, overall_rating FROM Player JOIN Player_Attributes ON Player_Attributes.player_api_id = Player.player_api_id WHERE PLayer.player_name = 'Lionel Messi' LIMIT 10; ---- .Output [format="csv", options="header"] |=== date,overall_rating "2015-12-17 00:00:00",94 "2015-10-16 00:00:00",94 "2015-09-21 00:00:00",94 "2015-06-26 00:00:00",93 "2015-03-13 00:00:00",93 "2015-02-20 00:00:00",93 "2015-01-23 00:00:00",93 "2014-10-17 00:00:00",93 "2014-09-18 00:00:00",93 "2014-04-25 00:00:00",94 |=== We can see that there are at least 10 entries for Messi in the `Player_Attributes` table. We only want the most recent ranking, which we can do by using a windowing operation that numbers each row and selects the first one. We can write the following query to find the top 10 players ordered by their most recent ranking: [source, sql] ---- SELECT player_name, overall_rating FROM Player JOIN ( select *, ROW_NUMBER() OVER (partition by player_api_id ORDER BY date DESC) rn FROM Player_Attributes ) AS attrs ON attrs.player_api_id = Player.player_api_id AND rn = 1 WHERE overall_rating is not null ORDER BY overall_rating DESC LIMIT 10; ---- .Output [format="csv", options="header"] |=== player_name,overall_rating "Lionel Messi",94 "Cristiano Ronaldo",93 "Luis Suarez",90 Neymar,90 "Manuel Neuer",90 "Zlatan Ibrahimovic",89 "Arjen Robben",89 "Andres Iniesta",88 "Mesut Oezil",88 "Eden Hazard",88 |=== This is the query that I included in the video and I didn't know there was a better way until https://www.linkedin.com/feed/update/urn:li:activity:7022269018371682304?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7022269018371682304%2C7023816359096573952%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287023816359096573952%2Curn%3Ali%3Aactivity%3A7022269018371682304%29[Richard Wesley wrote me the following message^], suggesting that I used the `arg_max` function instead. image::{{<siteurl>}}/uploads/2023/02/richard-wesley-message.png[title="Richard Wesley Message"] I'd not come across this function before, but I updated my query to use it: [source, sql] ---- SELECT player_name, arg_max(overall_rating, date) AS overall_rating FROM Player JOIN Player_Attributes ON Player_Attributes.player_api_id = Player.player_api_id GROUP BY ALL ORDER BY overall_rating DESC LIMIT 10; ---- The results are the same as with the other query and I can also get rid of the `WHERE overall_rating is not null` clause, which is great. Thanks Richard!
In this post we'll learn how to write a SQL join where one of the tables has multiple rows per key.
uploads/2023/02/duckdb-join-banner.png
[ -0.02831447497010231, 0.012329545803368092, 0.006878895219415426, 0.047702569514513016, 0.09480095654726028, -0.004331211093813181, 0.008519338443875313, 0.02857281267642975, 0.013462323695421219, -0.01687670685350895, 0.0034119929186999798, 0.002756765577942133, -0.062330324202775955, 0.0030443938449025154, 0.011733787134289742, 0.07988427579402924, 0.04470203444361687, 0.01496142614632845, 0.051254741847515106, -0.019151367247104645, 0.004258598200976849, 0.05404619127511978, 0.012040886096656322, 0.03427620232105255, 0.040500011295080185, 0.02619396522641182, -0.022507566958665848, 0.010940548032522202, -0.04297364875674248, 0.00316855451092124, 0.03879854455590248, -0.005797867197543383, 0.00659650145098567, -0.008110594935715199, 0.0025363508611917496, -0.019621433690190315, -0.01865914836525917, 0.037060659378767014, -0.00511661684140563, 0.00703912228345871, -0.0840964987874031, 0.032457657158374786, 0.0009136938606388867, 0.03528005629777908, -0.023170076310634613, 0.01431568805128336, -0.047340478748083115, 0.02649518847465515, -0.0098569979891181, 0.017075760290026665, -0.03670361638069153, 0.04717662185430527, -0.022723596543073654, 0.007164298091083765, 0.0047628190368413925, 0.039432343095541, 0.01775219477713108, -0.06262747198343277, 0.024755138903856277, -0.027061650529503822, 0.03249487653374672, 0.0014476996148005128, -0.017413105815649033, -0.00019053068535868078, 0.014039585366845131, -0.0015115531859919429, -0.004070496652275324, 0.050864752382040024, -0.03209872171282768, 0.01200798898935318, -0.013976813293993473, 0.005582750774919987, -0.003431099932640791, -0.01341742929071188, 0.014967800118029118, -0.03199108690023422, 0.008908477611839771, 0.04150495305657387, 0.037184372544288635, 0.05512483790516853, -0.022661784663796425, -0.008918319828808308, 0.014093327336013317, 0.029755612835288048, -0.019043317064642906, -0.05177868902683258, -0.027551118284463882, -0.029856545850634575, -0.036986224353313446, 0.0333247147500515, -0.011488404124975204, -0.0394463874399662, 0.015954162925481796, 0.014920024201273918, -0.05574025958776474, -0.018853578716516495, 0.024310236796736717, -0.01567729376256466, 0.014430014416575432, -0.022947967052459717, -0.025909867137670517, -0.04690549150109291, 0.05032537132501602, 0.018555719405412674, -0.08134095370769501, 0.00439422857016325, -0.08290321379899979, 0.01815059594810009, 0.03181749954819679, 0.031722698360681534, -0.008132047019898891, -0.01178764645010233, -0.006716309580951929, -0.004308070056140423, -0.07263945043087006, 0.05106901004910469, 0.020427899435162544, -0.02354808896780014, 0.013980699703097343, 0.0029389667324721813, 0.03149561211466789, 0.021265506744384766, -0.007570554967969656, 0.06949502229690552, 0.0007386663346551359, 0.012998671270906925, 0.010532817803323269, 0.048664435744285583, -0.01350522693246603, -0.0804814025759697, 0.0003439454594627023, 0.04052751138806343, 0.0044936323538422585, 0.023073535412549973, 0.003338657319545746, -0.023129504173994064, -0.0277470201253891, 0.014657214283943176, 0.05988303944468498, 0.017616217955946922, 0.023138239979743958, -0.05705432593822479, 0.0031277018133550882, 0.011429438367486, 0.03558985888957977, 0.0036209665704518557, -0.005211373325437307, -0.029679926112294197, -0.02697528526186943, 0.02361377142369747, 0.02732132375240326, 0.023735031485557556, 0.04241742193698883, -0.03419744595885277, -0.005496746860444546, 0.11155480891466141, 0.009338924661278725, -0.03562844544649124, -0.019672617316246033, 0.005629635415971279, 0.04944304749369621, 0.02198963239789009, 0.010837195441126823, 0.005075306165963411, 0.0009557445300742984, -0.03132186084985733, 0.018248962238430977, 0.06926252692937851, -0.02846689522266388, 0.0328466072678566, -0.07056211680173874, -0.05251379683613777, 0.06433873623609543, -0.04867660254240036, -0.025800468400120735, 0.06366236507892609, 0.07058267295360565, 0.051253482699394226, 0.047993239015340805, 0.008166699670255184, -0.0762840285897255, 0.02434333972632885, -0.010313419625163078, 0.010915192775428295, 0.03262762725353241, 0.0057401712983846664, 0.08283592015504837, 0.03470030426979065, 0.00010365802882006392, 0.05557816103100777, -0.06369699537754059, -0.07621830701828003, -0.041750285774469376, -0.0171353742480278, 0.049682337790727615, -0.045176416635513306, 0.03754456713795662, 0.09037863463163376, 0.020371239632368088, 0.027539944276213646, -0.009372634813189507, 0.02655383013188839, 0.019865399226546288, -0.04393988102674484, -0.048278938978910446, 0.027397383004426956, 0.046165306121110916, -0.0373639352619648, -0.045974377542734146, 0.02146575227379799, -0.02513604797422886, -0.005990683101117611, 0.002098408993333578, -0.016695581376552582, 0.0485091358423233, 0.009544429369270802, 0.04196155071258545, -0.004744513425976038, 0.03449128940701485, -0.04576605185866356, 0.04636479169130325, 0.04894307628273964, -0.048182323575019836, 0.004537489730864763, -0.0074697257950901985, 0.1357850730419159, 0.04456622898578644, -0.0060868761502206326, -0.05489032343029976, 0.027581145986914635, 0.02361440658569336, -0.014245961792767048, 0.024514980614185333, -0.05278632417321205, 0.0032936888746917248, -0.017796864733099937, -0.03776322677731514, -0.0337555892765522, 0.021896740421652794, -0.017781659960746765, -0.018390163779258728, 0.07649163901805878, -0.01945638470351696, 0.03951934352517128, -0.0008323350921273232, -0.0443916879594326, -0.027264868840575218, -0.008262721821665764, -0.024377873167395592, 0.008533825166523457, 0.027454804629087448, -0.014182483777403831, 0.02608204446732998, -0.02541332319378853, -0.007799911312758923, -0.01961449161171913, -0.05493533983826637, 0.03895266354084015, 0.047236885875463486, 0.04044179245829582, -0.0268381517380476, 0.045832958072423935, 0.013922687619924545, 0.008229906670749187, -0.04569258540868759, -0.032721154391765594, -0.03419571369886398, -0.03149210661649704, -0.0026123824063688517, 0.04663363844156265, 0.01930733025074005, 0.020770229399204254, 0.00019938420155085623, 0.02204047702252865, -0.018410326912999153, 0.009031923487782478, 0.01902102679014206, -0.000364866602467373, -0.008482469245791435, -0.05395837500691414, -0.006929541006684303, 0.05480901151895523, -0.05079404637217522, -0.057215362787246704, 0.023062964901328087, -0.07411057502031326, 0.03690464049577713, -0.058394111692905426, -0.03793100267648697, 0.01922089047729969, 0.013730453327298164, 0.04037327319383621, 0.021025124937295914, -0.013808388262987137, 0.10552806407213211, -0.011771244928240776, 0.014606257900595665, 0.028282029554247856, 0.01190299540758133, 0.049921464174985886, -0.002577525330707431, 0.004660489037632942, 0.05786105990409851, -0.029286803677678108, 0.00956844724714756, -0.04728953540325165, 0.006939931306988001, -0.013427251018583775, -0.25644659996032715, 0.03168165311217308, -0.025674989446997643, -0.04070340469479561, 0.025086505338549614, -0.03165646269917488, 0.007222755346447229, -0.04489443823695183, -0.01156514324247837, 0.010823221877217293, -0.015286150388419628, -0.021893072873353958, -0.02490284852683544, 0.04398301988840103, 0.023973671719431877, 0.04139257222414017, 0.008513899520039558, -0.02433886006474495, -0.0060658748261630535, 0.04928500950336456, 0.01956193335354328, -0.0732012465596199, -0.017495984211564064, 0.02939498983323574, 0.027875784784555435, 0.06190243363380432, -0.054411690682172775, 0.010770194232463837, -0.04275437816977501, -0.026753883808851242, 0.015560036525130272, 0.00278087449260056, 0.006813045125454664, -0.018889615312218666, -0.026417763903737068, -0.014754734002053738, 0.032193612307310104, 0.0014092213241383433, 0.004845945164561272, 0.009551063179969788, -0.055532004684209824, -0.02772768959403038, -0.01164746843278408, 0.011487353593111038, 0.09219983220100403, -0.003580678952857852, -0.0605413056910038, 0.008785910904407501, -0.017816033214330673, 0.04268171265721321, -0.017517080530524254, -0.05830821394920349, -0.021112408488988876, 0.03922114148736, -0.005330305080860853, 0.004398935008794069, 0.0071696690283715725, -0.019376855343580246, -0.04203253984451294, -0.02129308506846428, -0.0022119972854852676, -0.05563465133309364, 0.006437726318836212, -0.01778787560760975, -0.005331128835678101, -0.07410620898008347, -0.034388769418001175, -0.009331724606454372, 0.06114714965224266, 0.052697837352752686, -0.02364364080131054, -0.0035281721502542496, -0.019993163645267487, -0.1159406304359436, -0.010560485534369946, -0.010182625614106655, -0.0023116255179047585, 0.0008221529424190521, -0.028796907514333725, 0.03404165059328079, -0.022975029423832893, -0.02155594527721405, 0.01594305969774723, 0.014918003231287003, 0.016079803928732872, -0.04719817638397217, 0.020733674988150597, 0.015704164281487465, -0.015947069972753525, 0.006231672130525112, 0.07196353375911713, -0.042199257761240005, 0.010131885297596455, -0.0063957516103982925, -0.027039654552936554, 0.0539160892367363, 0.0002097646938636899, -0.007016389165073633, -0.0005209256196394563, 0.023823803290724754, 0.0439685620367527, -0.022989165037870407, -0.00934347789734602, -0.04452031850814819, -0.01639903336763382, -0.013327895663678646, -0.04126032814383507, 0.022996535524725914, 0.023990606889128685, 0.024433478713035583, -0.02049873024225235, -0.034158650785684586, 0.014628901146352291, -0.046266108751297, -0.020698918029665947, -0.05275273323059082, 0.010259619913995266, 0.00019428959058132023, 0.0011324184015393257, -0.03606348857283592, -0.07101213932037354, 0.020850464701652527, 0.02057516574859619, -0.006964743137359619, -0.055730681866407394, -0.042145490646362305, -0.028902998194098473, -0.004401333164423704, -0.02070269174873829, -0.00590378325432539, -0.01901666261255741, 0.009909837506711483, 0.031884338706731796, -0.020575901493430138, 0.061416540294885635, -0.019952626898884773, -0.02402697131037712, -0.019144173711538315, -0.008297671563923359, -0.0013531309086829424, -0.013705763965845108, -0.016454489901661873, -0.010687879286706448, 0.04161951318383217, 0.02450224943459034, -0.008869980461895466, 0.009633613750338554, 0.00019762922602239996, 0.013457795605063438, 0.051293741911649704, -0.02766754850745201, -0.04735863581299782, 0.03888404369354248, -0.05622362717986107, -0.015189616940915585, 0.0002304052613908425, 0.05266861990094185, 0.00823628157377243, -0.013963363133370876, -0.04504679515957832, 0.00402178056538105, -0.04450392723083496, -0.008170939050614834, -0.02963484451174736, 0.019383398815989494, 0.05416684225201607, -0.007874637842178345, 0.02281162329018116, 0.00628318265080452, 0.02911861427128315, 0.010820017196238041, -0.013341017067432404, -0.04312337562441826, 0.009785193018615246, 0.012842036783695221, -0.029971932992339134, 0.015028297901153564, 0.015548642724752426, 0.012926063500344753, 0.004910590127110481, -0.011728749610483646, -0.01274778414517641, 0.0003330776235088706, 0.019020872190594673, 0.04656902700662613, 0.06195124238729477, -0.023278888314962387, -0.027077412232756615, 0.008965841494500637, -0.03965067118406296, -0.035788051784038544, -0.006982794031500816, -0.0015007774345576763, -0.023079169914126396, -0.015312442556023598, -0.05460386723279953, 0.04968218132853508, 0.024010801687836647, -0.01363676693290472, 0.02434602752327919, 0.008433924056589603, -0.023163754492998123, -0.017888406291604042, 0.06261518597602844, 0.07455287873744965, -0.046973854303359985, 0.016021806746721268, -0.010671013966202736, -0.040187522768974304, 0.010683378204703331, 0.020730137825012207, -0.03956146538257599, -0.0012144092470407486, -0.004642320331186056, 0.04063296690583229, -0.028500791639089584, 0.007604656741023064, -0.0062451958656311035, 0.004212362226098776, -0.0007128040888346732, 0.00962377805262804, -0.018399646505713463, 0.009029264561831951, -0.02526048943400383, -0.026287561282515526, 0.05164700001478195, -0.020001454278826714, 0.00439734710380435, 0.04136626794934273, -0.016631361097097397, 0.0022728093899786472, -0.04694794490933418, 0.0016633312916383147, 0.021303584799170494, -0.018782993778586388, -0.008772581815719604, -0.07903829216957092, -0.0034905390348285437, 0.002179327653720975, 0.05505216866731644, -0.021964745596051216, -0.03174547106027603, -0.015621683560311794, -0.0029417199548333883, -0.02618056908249855, 0.017425304278731346, -0.020516622811555862, -0.017214929684996605, 0.0314437635242939, 0.040850140154361725, -0.01132603082805872, 0.028831321746110916, -0.013988375663757324, -0.030939914286136627, 0.05023041367530823, -0.028394078835844994, -0.00868005771189928, -0.03052685223519802, -0.07320529967546463, 0.03286104276776314, -0.006060025654733181, 0.026409929618239403, -0.0403749942779541, 0.056938283145427704, 0.021911917254328728, 0.006589192431420088, 0.0497843399643898, 0.016253063455224037, 0.04553762823343277, -0.019898833706974983, -0.029222551733255386, -0.10541501641273499, -0.002922730054706335, 0.005066486541181803, -0.015393776819109917, -0.015923121944069862, 0.014680659398436546, -0.038565222173929214, 0.005755999591201544, -0.06441044062376022, -0.030527830123901367, 0.02688325010240078, -0.010557737201452255, -0.019284607842564583, 0.028813527897000313, -0.04162364453077316, 0.011620507575571537, 0.030319344252347946, -0.015926867723464966, -0.04372332990169525, -0.03855688497424126, 0.07914762943983078, -0.006808563135564327, 0.03004745952785015, -0.03525529056787491, -0.016225533559918404, 0.08080300688743591, 0.01770038716495037, 0.014305616728961468, 0.03808733820915222, -0.02371167205274105, 0.041393913328647614, 0.012682195752859116, 0.0009970403043553233, 0.02182222716510296, -0.0026704040355980396, -0.02356887236237526, -0.060354117304086685, 0.013083877973258495, 0.02440326102077961, -0.0009487640345469117, -0.05108845233917236, 0.09719568490982056, 0.006073767319321632, -0.030325883999466896, -0.07078929990530014, 0.011421945877373219, -0.039577510207891464, -0.028575515374541283, -0.028080325573682785, -0.017538737505674362, -0.050350114703178406, 0.06829830259084702, -0.007256174460053444, 0.009459461085498333, 0.04943322762846947, -0.00979550275951624, -0.02618715539574623, 0.012150617316365242, 0.09438808262348175, 0.07452881336212158, 0.05501397326588631, 0.010531533509492874, 0.052668072283267975, -0.04350712150335312, -0.04445575177669525, 0.010713780298829079, -0.04082292690873146, 0.009033688344061375, -0.003826719243079424, 0.0036607871297746897, 0.06615805625915527, -0.020658550783991814, 0.07862546294927597, 0.013486672192811966, -0.015757383778691292, 0.008718681521713734, -0.01599137857556343, 0.030091507360339165, 0.06544448435306549, -0.01082975510507822, 0.03458382561802864, -0.023150818422436714, -0.008246169425547123, 0.019162319600582123, -0.003821900812909007, -0.020270850509405136, 0.017704719677567482, -0.02449783682823181, 0.04313785582780838, -0.016629217192530632, 0.04016517847776413, 0.0873788371682167, -0.022260241210460663, -0.0015008319169282913, -0.0006655188044533134, 0.03250804543495178, -0.018078768625855446, 0.029562650248408318, -0.003096881089732051, -0.029763130471110344, -0.010461554862558842, -0.045199789106845856, -0.02033345215022564, -0.0376923643052578, -0.04787566512823105, 0.0006433700327761471, -0.0066341315396130085, -0.00007549455767730251, 0.057579804211854935, 0.013183077797293663, -0.04625160992145538, -0.05025409907102585, -0.06608500331640244, -0.009095665067434311, -0.07454752922058105, -0.0030105693731456995, 0.03767665475606918, 0.0050061712972819805, -0.028026843443512917, -0.026407258585095406, -0.019115347415208817, -0.010577181354165077, 0.037287428975105286, -0.02291274257004261, -0.053915999829769135, 0.015537404455244541, 0.03632339462637901, 0.030199147760868073, 0.01619553379714489, 0.05397391691803932, -0.018890967592597008, 0.004571936093270779, -0.02387617528438568, 0.007933421991765499, 0.05169064551591873, -0.01949881576001644, 0.01343126967549324, -0.08176901191473007, 0.013377789407968521, 0.0021788941230624914, -0.0020379729103296995, -0.0598100982606411, 0.000431354419561103, 0.02216980792582035, 0.016725750640034676, 0.0681816041469574, -0.05045721307396889, 0.021278496831655502, -0.03060019016265869, -0.014096638187766075, -0.0033993450924754143, 0.018575923517346382, 0.023659203201532364, -0.04515242204070091, 0.07125794887542725, 0.047000668942928314, -0.02228889986872673, -0.05454988777637482, -0.007460429333150387, -0.003557058284059167, 0.018682481721043587, -0.041418131440877914, -0.0374988317489624, -0.054632533341646194, -0.10622821748256683, -0.028096800670027733, 0.014736257493495941, -0.024995995685458183, -0.03449492156505585, -0.014830518513917923, 0.05409073084592819, -0.04047900065779686, 0.006947569083422422, -0.054878998547792435, 0.03303433209657669, -0.03871459886431694, -0.03649721294641495, -0.033018749207258224, 0.023685678839683533, -0.012504469603300095, -0.014652795158326626, 0.003007725579664111, -0.043308984488248825, -0.004706446547061205, -0.014793705195188522, 0.016135364770889282, 0.036030080169439316, 0.0013042223872616887, 0.006411655806005001 ]
[ -0.09538550674915314, -0.033517900854349136, -0.04426441341638565, -0.03307024762034416, 0.043474890291690826, -0.03415030613541603, 0.025527674704790115, -0.02043408900499344, 0.05135992169380188, -0.02496945858001709, 0.016586678102612495, -0.04138406366109848, -0.0270021241158247, -0.002537294290959835, 0.04795123636722565, -0.008340995758771896, 0.003771251067519188, -0.06655289232730865, -0.03547254577279091, 0.02565966360270977, -0.04589279368519783, -0.0358712337911129, -0.06183804199099541, -0.048917267471551895, 0.012244083918631077, 0.009476634673774242, 0.04398680478334427, -0.04762125015258789, -0.03176632151007652, -0.2015848159790039, 0.012724633328616619, -0.0025631929747760296, 0.009739495813846588, -0.02576603926718235, 0.010618039406836033, -0.023605722934007645, 0.011431307531893253, 0.006208503618836403, 0.030536724254488945, 0.030051032081246376, 0.007244159933179617, -0.002061691600829363, -0.06340333819389343, -0.011727053672075272, 0.048000115901231766, 0.0018130856333300471, -0.006376917473971844, -0.0026771912816911936, 0.030708637088537216, 0.04060688987374306, -0.06521766632795334, 0.014520179480314255, -0.025541357696056366, -0.006752598565071821, 0.014687865041196346, 0.030795181170105934, 0.017856335267424583, 0.08476173877716064, -0.013155322521924973, 0.06730519235134125, 0.047634609043598175, 0.010008846409618855, -0.09964703023433685, 0.08805994689464569, -0.03215800225734711, 0.03890172392129898, -0.017460890114307404, -0.018796170130372047, 0.0001282572775380686, 0.09742017090320587, 0.02979120798408985, -0.04216542840003967, -0.04116257652640343, 0.06536823511123657, 0.03534704074263573, -0.04230588674545288, -0.02777651697397232, 0.013598625548183918, 0.02842634916305542, 0.002997708972543478, -0.06991033256053925, 0.008580808527767658, -0.0010742651065811515, -0.06355098634958267, -0.03807685151696205, 0.021717343479394913, -0.021375350654125214, 0.040644869208335876, -0.005926292855292559, 0.011868738569319248, 0.04523420333862305, 0.0173990186303854, 0.017216268926858902, -0.00027015971136279404, -0.07622864097356796, -0.013836696743965149, -0.024077795445919037, -0.003453665878623724, -0.02019868977367878, 0.3861159682273865, -0.004631164018064737, -0.004248678684234619, 0.022436443716287613, 0.03028242476284504, -0.03578466922044754, -0.009337452240288258, 0.0078104170970618725, -0.05492062494158745, 0.010195160284638405, -0.02639717422425747, -0.030899610370397568, -0.02386721968650818, 0.05756354704499245, -0.046621259301900864, -0.015093536116182804, 0.038586799055337906, 0.06041060760617256, 0.022918328642845154, 0.015141123905777931, 0.013202618807554245, -0.012568140402436256, -0.011010132730007172, 0.010552952997386456, 0.025461550801992416, 0.012685347348451614, -0.009225673042237759, 0.02746979519724846, 0.07494925707578659, 0.038358502089977264, 0.009473945014178753, 0.05881528556346893, -0.014289548620581627, -0.09863147884607315, -0.007699115667492151, -0.0008268628153018653, -0.014086336828768253, 0.005826846696436405, -0.011616826057434082, 0.0067265331745147705, 0.0005124994204379618, -0.03364294394850731, -0.08948210626840591, 0.0677812322974205, -0.03460543975234032, -0.05783597379922867, 0.1419750303030014, 0.019130857661366463, -0.04331362619996071, -0.029833445325493813, -0.05781888589262962, -0.013266895897686481, 0.010601650923490524, 0.023655546829104424, -0.05083025246858597, -0.03465840592980385, 0.04954105615615845, 0.08093920350074768, -0.028705183416604996, -0.09808433800935745, -0.043354861438274384, -0.020550183951854706, -0.0586518719792366, -0.0363013930618763, 0.07778789848089218, 0.03117186948657036, -0.1359969824552536, -0.028690528124570847, 0.01001601479947567, -0.008343560621142387, -0.055835772305727005, 0.015766441822052002, 0.011205034330487251, -0.07353772222995758, 0.022858742624521255, 0.05392623320221901, 0.012685587629675865, -0.025779157876968384, -0.018069230020046234, 0.03338250517845154, 0.01083494070917368, 0.013687915168702602, 0.0031500929035246372, -0.0713905543088913, 0.008993790484964848, -0.06034117937088013, -0.06230786442756653, -0.044532399624586105, 0.022510359063744545, 0.0029310532845556736, -0.013547743670642376, -0.02099076472222805, -0.013688762672245502, -0.07299380749464035, 0.0738402009010315, -0.054070811718702316, -0.028950056061148643, 0.021469756960868835, 0.02701238915324211, -0.009313846938312054, -0.04956328496336937, -0.008726651780307293, 0.005725177004933357, -0.0392615906894207, 0.039184123277664185, -0.01439414918422699, 0.022567279636859894, 0.04717795178294182, -0.06702743470668793, 0.07440640032291412, 0.015537203289568424, 0.012101205997169018, -0.003687611548230052, -0.055802613496780396, 0.0053632743656635284, 0.010911466553807259, -0.013963588513433933, -0.007566319312900305, 0.012635496445000172, 0.018340427428483963, 0.04030316323041916, -0.008633820340037346, -0.013764808885753155, 0.03881974518299103, -0.33930453658103943, -0.012072769924998283, -0.06662307679653168, -0.005851184017956257, -0.006726131308823824, -0.049125250428915024, -0.00260384613648057, -0.012662651017308235, -0.008848946541547775, 0.05552758648991585, 0.07101577520370483, -0.010184730403125286, -0.013915353454649448, -0.07638515532016754, -0.03259914740920067, 0.02779395319521427, -0.058954380452632904, -0.0038777850568294525, -0.0232071653008461, 0.006993327289819717, 0.05998915061354637, -0.005401420406997204, -0.01411699503660202, -0.06917812675237656, 0.03309301659464836, -0.029271092265844345, 0.1401916742324829, 0.025358574464917183, 0.029767010360956192, -0.0795152559876442, 0.0688348188996315, -0.0028518736362457275, -0.02194943092763424, -0.037986475974321365, 0.01841084286570549, -0.026610463857650757, -0.01492432039231062, -0.022388936951756477, 0.003218855243176222, -0.021955586969852448, -0.06529523432254791, 0.023494407534599304, -0.04953271150588989, -0.06126818433403969, -0.033670827746391296, 0.01998879201710224, 0.027025122195482254, 0.010501348413527012, -0.025539182126522064, 0.12071514129638672, 0.034029990434646606, 0.01321153063327074, 0.04809325560927391, 0.03185955062508583, 0.049120739102363586, -0.030692733824253082, -0.0784803256392479, -0.01204333733767271, -0.017020782455801964, 0.02571529522538185, 0.038002584129571915, 0.012127532623708248, 0.031200304627418518, -0.042844101786613464, 0.004660036880522966, 0.008972800336778164, 0.004284342750906944, -0.005927793215960264, 0.046437181532382965, -0.0480971597135067, -0.05624696984887123, 0.035376835614442825, -0.024551300331950188, 0.03615352138876915, 0.03915737196803093, 0.0698736235499382, 0.02701018936932087, 0.015566040761768818, 0.020119791850447655, 0.01775646209716797, 0.04505815729498863, -0.049925919622182846, 0.04699508473277092, -0.0029192224610596895, 0.04390545189380646, 0.058561958372592926, 0.0316900908946991, 0.01725657656788826, 0.06286131590604782, 0.009180217981338501, -0.015563956461846828, -0.010686663910746574, -0.023360801860690117, -0.04702311009168625, 0.031449269503355026, -0.03229241445660591, -0.23979800939559937, 0.04114171117544174, 0.049791790544986725, 0.03945320099592209, 0.028439579531550407, 0.017360256984829903, 0.007574794348329306, -0.034749917685985565, -0.024254903197288513, -0.02231958694756031, 0.04743020236492157, 0.04736882075667381, -0.003279677126556635, 0.006459980271756649, -0.014548655599355698, -0.024018017575144768, 0.04030117392539978, 0.0040698787197470665, 0.03013431653380394, 0.06750426441431046, 0.042106155306100845, -0.004833171609789133, 0.16033300757408142, 0.039522044360637665, 0.05076596513390541, 0.044936373829841614, 0.0019163180841132998, -0.012411097064614296, 0.039934542030096054, 0.04193451255559921, -0.006611587479710579, 0.005290050525218248, 0.05693593993782997, 0.027678485959768295, 0.027083758264780045, -0.009206743910908699, -0.025558728724718094, 0.07104466110467911, -0.0005708450917154551, -0.024142883718013763, -0.012721591629087925, 0.03798745572566986, -0.05661600083112717, 0.051536157727241516, 0.08721257746219635, 0.022389566525816917, 0.0016296692192554474, -0.031839024275541306, -0.035317499190568924, -0.012774642556905746, -0.025550518184900284, -0.02319163642823696, -0.023146750405430794, -0.015764106065034866, 0.0066595375537872314, 0.03902839869260788, 0.059596747159957886, -0.014396744780242443, 0.05487261340022087, 0.019599711522459984, -0.016749417409300804, -0.006602835841476917, 0.08333321660757065, 0.026462525129318237, 0.015117735601961613 ]
[ 0.03186505660414696, -0.012889347039163113, -0.03526792675256729, -0.010842358693480492, 0.015514818020164967, 0.015973711386322975, 0.032214440405368805, 0.029606923460960388, -0.02443630062043667, -0.004841791000217199, -0.04999770596623421, -0.02184615097939968, 0.04057696461677551, -0.018909065052866936, 0.021631283685564995, -0.00522134592756629, -0.026384849101305008, 0.0039284625090658665, 0.005611198954284191, 0.00046617371845059097, -0.046053603291511536, 0.00047698570415377617, 0.040487952530384064, 0.00035273056710138917, -0.025538703426718712, 0.02262033335864544, -0.013740835711359978, 0.028462477028369904, -0.002441184129565954, -0.12509359419345856, -0.05153735354542732, -0.05120177939534187, -0.007533511146903038, 0.06917425990104675, -0.055833302438259125, -0.045917902141809464, -0.027215508744120598, -0.0051877908408641815, -0.019386466592550278, -0.005459242034703493, -0.018110262230038643, -0.04146280139684677, -0.026230931282043457, 0.025829967111349106, 0.0004238590190652758, 0.03286721929907799, -0.07737347483634949, -0.0030525289475917816, 0.001033165492117405, 0.03887495771050453, -0.08430347591638565, -0.004679074045270681, 0.029624605551362038, 0.005581279750913382, 0.049064069986343384, 0.023086803033947945, -0.003860853612422943, 0.029218751937150955, -0.009502237662672997, 0.014753660187125206, 0.00047511575394310057, -0.012538311071693897, -0.02197130024433136, -0.017191823571920395, -0.008351771160960197, -0.04921829700469971, -0.04361303150653839, 0.009845491498708725, -0.021727673709392548, 0.018533604219555855, -0.011963723227381706, 0.018820960074663162, -0.06392893940210342, -0.009822207503020763, -0.029978709295392036, 0.004597253631800413, 0.00301571493037045, -0.008635197766125202, 0.03504370525479317, -0.013302464969456196, -0.04627039283514023, 0.004078085068613291, -0.015135682187974453, 0.009694727137684822, 0.029395010322332382, -0.03598976880311966, 0.006917847320437431, -0.007480808068066835, 0.00034360081190243363, -0.004707734100520611, -0.03118639625608921, 0.0003243488899897784, 0.025383181869983673, 0.025681283324956894, -0.07891733944416046, 0.04760154336690903, -0.02433725632727146, -0.024203486740589142, 0.0033329897560179234, 0.8093618750572205, -0.02374999411404133, 0.008546153083443642, 0.017826518043875694, 0.04078299179673195, -0.0035742975305765867, -0.023158637806773186, 0.047874853014945984, 0.008937235921621323, 0.010753381066024303, -0.04786643385887146, 0.021964125335216522, 0.04477682709693909, 0.02173645608127117, -0.010691571049392223, -0.012977316975593567, 0.07719813287258148, -0.008267507888376713, 0.002216193825006485, -0.0033230376429855824, 0.0033690077252686024, 0.005502312444150448, -0.02313946560025215, -0.03361789509654045, 0.03199905902147293, 0.04011647030711174, -0.15585924685001373, 0.03523855283856392, -7.961812051899454e-33, 0.02026652731001377, -0.05087152495980263, 0.02924547716975212, -0.025250600650906563, 0.021400457248091698, 0.03129678592085838, 0.0034081514459103346, 0.01839657686650753, -0.00629775645211339, -0.025994157418608665, 0.023317433893680573, 0.002956824144348502, -0.002766871824860573, -0.010271081700921059, 0.049090296030044556, 0.018277620896697044, -0.01166317705065012, 0.04061407223343849, -0.004514005035161972, 0.01349958498030901, 0.06376516073942184, 0.06762845069169998, 0.03404098376631737, 0.04192925989627838, 0.0076264492236077785, 0.026671040803194046, -0.007842794060707092, -0.00908493623137474, -0.01482296921312809, -0.02704816497862339, -0.03836531564593315, -0.013113034889101982, -0.05416851490736008, -0.03830506652593613, 0.032187964767217636, -0.03984101489186287, -0.05541951209306717, 0.009449364617466927, -0.04343988746404648, 0.008661717176437378, -0.02256321720778942, -0.0047440421767532825, -0.04554320499300957, -0.03890381380915642, -0.049985747784376144, 0.012295490130782127, 0.012027009390294552, 0.02025495283305645, -0.01219406072050333, -0.016624988988041878, 0.03651601821184158, -0.006733488291501999, 0.009098665788769722, 0.009145245887339115, -0.003759444458410144, 0.036732256412506104, -0.003065872471779585, -0.0017653510440140963, -0.0016044615767896175, -0.015361816622316837, 0.010655105113983154, -0.019171297550201416, 0.021531321108341217, 0.055283017456531525, -0.0023345830850303173, 0.018335500732064247, 0.06375493109226227, -0.001878795213997364, 0.07555652409791946, -0.024380842223763466, -0.01678469032049179, 0.009601916186511517, 0.002080372301861644, -0.04481607303023338, 0.006416406016796827, -0.04092354699969292, 0.0019775687251240015, -0.009749646298587322, 0.04845369607210159, 0.014649090357124805, 0.02401111274957657, 0.008760407567024231, -0.03698456659913063, -0.03819569572806358, -0.049352362751960754, -0.029921717941761017, -0.009081510826945305, 0.008532545529305935, -0.03170572966337204, 0.006364351604133844, 0.03390183672308922, 0.07046597450971603, 0.004118211567401886, -0.03423845022916794, -0.013678626157343388, 8.275522106775152e-33, 0.014402118511497974, -0.0030105533078312874, 0.01442733034491539, -0.008446025662124157, 0.0578557588160038, -0.03686189278960228, 0.03791225701570511, 0.029694464057683945, -0.030003471300005913, 0.028403855860233307, 0.009548895992338657, -0.029563143849372864, -0.0003425429458729923, -0.006381417158991098, 0.0507114976644516, 0.04949492961168289, 0.0027520381845533848, 0.010522297583520412, 0.01080919336527586, 0.011876270174980164, 0.022587746381759644, 0.008421503938734531, 0.031189575791358948, 0.02880641259253025, 0.024449657648801804, 0.03768017143011093, 0.005117411725223064, 0.0022598528303205967, -0.008910827338695526, 0.004891366232186556, 0.019459014758467674, -0.00214400771073997, -0.007669552695006132, -0.02018187753856182, -0.045813146978616714, 0.011606348678469658, 0.0019135395996272564, -0.009983052499592304, 0.007499185856431723, 0.0025112940929830074, 0.013421737588942051, 0.0008873617625795305, 0.01850731670856476, 0.046040937304496765, 0.012940425425767899, -0.00625945907086134, 0.005592892412096262, -0.0045239608734846115, -0.03102678805589676, -0.04315848648548126, 0.0019384865881875157, -0.01904148980975151, -0.008009837940335274, 0.027761654928326607, 0.029447492212057114, -0.03731154650449753, -0.03559798002243042, 0.015729451552033424, -0.023740289732813835, -0.040873292833566666, 0.021783746778964996, 0.04864348843693733, -0.028296561911702156, 0.029148895293474197, 0.0017409416614100337, 0.019046586006879807, -0.0435359850525856, 0.01876610890030861, -0.032572630792856216, -0.010994798503816128, -0.03155536949634552, -0.012715277262032032, 0.030874229967594147, 0.053788669407367706, 0.005214382894337177, -0.0027271455619484186, -0.04106438159942627, 0.015509678982198238, -0.004489258863031864, 0.029232865199446678, 0.017570508643984795, -0.02340409718453884, 0.024109352380037308, -0.015703348442912102, -0.013347277417778969, 0.034235719591379166, -0.027136126533150673, 0.0003401140565983951, 0.011335257440805435, 0.01072192844003439, 0.0016360192093998194, -0.029382705688476562, -0.007585093379020691, 0.0067407418973743916, -0.02203664928674698, -1.3089325179294065e-8, -0.037434983998537064, 0.021966470405459404, -0.0418119803071022, 0.010126630775630474, 0.023752307519316673, 0.009331053122878075, -0.016220884397625923, 0.03150161728262901, 0.008240357041358948, 0.0033911329228430986, 0.04674433544278145, 0.004006863571703434, 0.04816565290093422, 0.01910896599292755, 0.02598012052476406, -0.03590678796172142, -0.017662646248936653, -0.03715501353144646, 0.01133956853300333, 0.02718997746706009, -0.015421784482896328, 0.06138173118233681, -0.031216494739055634, -0.00788241159170866, 0.014928222633898258, 0.03255804255604744, -0.0217739287763834, -0.07633928209543228, 0.011306952685117722, -0.016079703345894814, 0.017973627895116806, -0.0336725227534771, 0.004062436055392027, -0.021585501730442047, 0.012261882424354553, -0.03494754806160927, 0.03118693083524704, -0.025967663154006004, -0.020381275564432144, 0.022992385551333427, -0.037593774497509, -0.005732176825404167, -0.0005966792814433575, -0.025529012084007263, -0.018699871376156807, 0.007888015359640121, -0.03811349347233772, 0.018504401668906212, 0.005792553536593914, -0.028608430176973343, 0.0284457728266716, -0.0327439121901989, 0.02190530113875866, 0.008702494204044342, 0.012868707068264484, 0.062475673854351044, 0.006740869954228401, 0.03837968036532402, -0.009622902609407902, -0.025173645466566086, 0.009868436492979527, -0.012191101908683777, -0.005354489199817181, 0.007869965396821499 ]
duckdb-join-max-value-other-table
https://markhneedham.com/blog/2023/02/01/duckdb-join-max-value-other-table
false
2023-11-03 00:44:37
ClickHouse: Nested type Array(String) cannot be inside Nullable type (ILLEGAL_TYPE_OF_ARGUMENT)
[ "clickhouse", "clickhouse-local", "til" ]
[ "TIL" ]
:icons: font I've been working with some data that's in CSV format but has tab-separated values in some columns. In this blog post, we're going to learn how to process that data in ClickHouse. The CSV file that we're working with looks like this: .data.csv [format="csv", options="header"] |=== include::content/2023/11/03/data.csv[] |=== We'll launch ClickHouse Local (`clickhouse local`) and then run the following: [source, sql] ---- FROM file('data.csv', CSVWithNames) SELECT *; ---- .Output [source, text] ---- ┌─value─────┐ │ foo bar │ └───────────┘ ---- Let's try to split the `value` field on tab using the `splitByString` function: [source, sql] ---- FROM file('data.csv', CSVWithNames) SELECT splitByString('\t', value); ---- .Output [source, text] ---- Received exception: Code: 43. DB::Exception: Nested type Array(String) cannot be inside Nullable type: While processing splitByString('\t', value). (ILLEGAL_TYPE_OF_ARGUMENT) ---- The problem we've run into here is that ClickHouse's CSV reader assumes that fields are nullable since it's possible that there could be nulls. We can disable the `schema_inference_make_columns_nullable` setting to tell it to not treat fields as nullable. [source, sql] ---- FROM file('data.csv', CSVWithNames) SELECT splitByString('\t', value) SETTINGS schema_inference_make_columns_nullable = 0; ---- .Output [source, text] ---- ┌─splitByString('\t', value)─┐ │ ['foo','bar'] │ └────────────────────────────┘ ---- Alternatively, we can use the `assumeNotNull` function if we want it to keep all other fields nullable: [source, sql] ---- FROM file('data.csv', CSVWithNames) SELECT splitByString('\t', assumeNotNull(value)); ---- .Output [source, text] ---- ┌─splitByString('\t', assumeNotNull(value))─┐ │ ['foo','bar'] │ └───────────────────────────────────────────┘ ---- But this function will return an arbitrary value if a null is found. So let's say we update our CSV file to look like this: .data.csv [format="csv", options="header"] |=== include::content/2023/11/03/data-update.csv[] |=== If we run that last query, we'll see the following output: .Output [source, text] ---- ┌─splitByString('\t', assumeNotNull(value))─┐ │ ['foo','bar'] │ │ [''] │ │ ['mark','bar'] │ └───────────────────────────────────────────┘ ---- So we might prefer to use `ifNull`, which lets us choose our own default value to use if a null value is encountered: [source, sql] ---- FROM file('data.csv', CSVWithNames) SELECT splitByString('\t', ifNull(value, 'N/A')); ---- .Output [source, text] ---- ┌─splitByString('\t', ifNull(value, 'N/A'))─┐ │ ['foo','bar'] │ │ ['N/A'] │ │ ['mark','bar'] │ └───────────────────────────────────────────┘ ----
In this post, we'll learn how to process a tab-separated value inside a CSV file with ClickHouse.
uploads/2023/11/clickhouse-null-banner.png
[ 0.010252600535750389, 0.01240571215748787, -0.0363200381398201, 0.011818015947937965, 0.09896516054868698, -0.003442716784775257, 0.021999990567564964, 0.02391795441508293, -0.021226005628705025, 0.004650781862437725, -0.021744024008512497, -0.02218308299779892, -0.09029319882392883, 0.03977486118674278, 0.012482198886573315, 0.08289969712495804, 0.07501386106014252, 0.006094580981880426, 0.0036486187018454075, -0.006507266312837601, 0.010301405563950539, 0.0396546833217144, -0.004598377272486687, 0.0528329499065876, 0.05480172857642174, -0.005967515986412764, -0.013309499248862267, -0.005475993268191814, -0.03346925601363182, 0.02126370184123516, 0.03412703424692154, -0.0057057603262364864, 0.021542837843298912, 0.010889347642660141, 0.01797868125140667, -0.046003878116607666, 0.007455857936292887, 0.029773974791169167, -0.008098981343209743, -0.010621940717101097, -0.06781574338674545, 0.036702971905469894, -0.008514047600328922, 0.020709354430437088, -0.007185140624642372, -0.004163753241300583, -0.024832898750901222, 0.0025190459564328194, -0.05555367097258568, 0.005288401152938604, -0.036038435995578766, 0.05491500347852707, -0.03237854689359665, -0.03780323266983032, 0.019187476485967636, 0.05225006490945816, 0.02444986253976822, -0.04402012750506401, 0.010855274274945259, -0.044703081250190735, -0.0014942834386602044, -0.015025203116238117, 0.015342400409281254, 0.02993244118988514, 0.014075305312871933, -0.018498431891202927, -0.015186243690550327, 0.059892427176237106, -0.05033254623413086, -0.011211948469281197, -0.010812295600771904, 0.007001176942139864, -0.02018810622394085, -0.04333065450191498, 0.011028731241822243, -0.04786371439695358, -0.04662330076098442, 0.04369758442044258, 0.05288078635931015, 0.05582882836461067, -0.011423388496041298, 0.012947670184075832, 0.04496315121650696, 0.0006412137881852686, 0.0607224740087986, -0.05125322937965393, -0.05250237137079239, -0.02674216963350773, -0.04813000187277794, 0.03602321818470955, 0.014471326023340225, -0.004398057237267494, 0.018579473719000816, 0.030619589611887932, -0.0013276664540171623, 0.028629496693611145, 0.0052375043742358685, -0.013594582676887512, 0.008191882632672787, 0.005227778572589159, -0.058147553354501724, -0.00269637955352664, 0.04123343527317047, 0.02339503914117813, -0.08405987173318863, 0.015361274592578411, -0.04146118462085724, -0.015820398926734924, 0.04778021574020386, 0.030701354146003723, -0.01918742246925831, -0.01995067112147808, -0.027646426111459732, 0.004905250854790211, -0.09177971631288528, 0.0525389164686203, 0.004976145923137665, 0.026794252917170525, 0.0067536113783717155, 0.0215536467730999, 0.056281935423612595, -0.007111664861440659, -0.009180966764688492, 0.07754896581172943, 0.0026377367321401834, 0.0007941851508803666, -0.002894527977332473, 0.05554839223623276, 0.004421781282871962, -0.06297513842582703, -0.03296465426683426, 0.03385653719305992, 0.0002591137890703976, 0.006200199015438557, 0.005232926923781633, -0.022052723914384842, 0.0075965458527207375, -0.0033103006426244974, 0.021739644929766655, -0.00948026217520237, 0.007569804787635803, -0.010082893073558807, 0.006736538838595152, 0.014478259719908237, 0.04346415027976036, 0.01972861960530281, 0.01612512394785881, -0.039239972829818726, -0.02906128764152527, 0.04784160107374191, 0.0459601990878582, 0.039055418223142624, 0.08211711794137955, -0.01938479207456112, -0.018870817497372627, 0.09725107997655869, 0.011989864520728588, 0.003865849692374468, -0.007278216537088156, 0.002182640368118882, 0.05483786016702652, 0.02565406635403633, 0.0019011374097317457, 0.027052251622080803, 0.035367902368307114, 0.009714093990623951, -0.0054730698466300964, -0.000862280314322561, -0.055069904774427414, -0.007646594662219286, -0.04027765244245529, -0.040414150804281235, 0.07079499959945679, -0.06340869516134262, 0.012746797874569893, 0.02956971526145935, 0.07142939418554306, 0.02684430591762066, 0.037014156579971313, 0.013507864437997341, -0.08582901209592819, 0.02627917379140854, -0.05238630995154381, -0.018482549116015434, 0.026524974033236504, 0.02088874578475952, 0.08006397634744644, -0.011536743491888046, -0.004470628220587969, 0.047337718307971954, -0.04671390354633331, -0.09662226587533951, -0.0495976060628891, -0.013677037321031094, 0.054115179926157, -0.05532444640994072, -0.0012899877037853003, 0.06529980152845383, 0.006879639811813831, 0.020007643848657608, -0.011166983284056187, 0.005701777990907431, 0.005861660465598106, -0.040631767362356186, -0.058942895382642746, 0.02306492254137993, 0.048971083015203476, -0.018802309408783913, 0.01644694060087204, 0.03697677329182625, -0.04781458154320717, 0.01046701055020094, 0.05500426143407822, -0.005461515858769417, 0.07495581358671188, 0.007962172850966454, -0.00345621258020401, 0.00925555918365717, 0.032923486083745956, -0.06608223170042038, 0.006794571410864592, 0.015656745061278343, -0.008783220313489437, -0.02480114996433258, 0.000005299012627801858, 0.12453753501176834, 0.04613687843084335, 0.016629550606012344, -0.04437652975320816, 0.035128504037857056, 0.02285446785390377, -0.012108969502151012, 0.052112460136413574, -0.05439780279994011, 0.004121923353523016, 0.008639019913971424, -0.03122192621231079, -0.002605231711640954, 0.009172777645289898, -0.020876742899417877, 0.010629414580762386, 0.04559282213449478, 0.012419660575687885, 0.03440674766898155, 0.01984609290957451, -0.04650118201971054, 0.0024882019497454166, -0.037801723927259445, -0.01982172392308712, -0.0005835496122017503, 0.03627000376582146, -0.012914811260998249, 0.02021464891731739, -0.058984655886888504, -0.01476807426661253, -0.02053818851709366, -0.05332474410533905, 0.008857392705976963, 0.020643126219511032, 0.0416349396109581, -0.034107472747564316, 0.04261203110218048, -0.0329800620675087, -0.03516504541039467, 0.0006338855600915849, -0.03655793517827988, -0.010555816814303398, -0.015209400095045567, 0.036348335444927216, 0.012860286980867386, 0.015028612688183784, 0.012732439674437046, -0.00961582362651825, 0.014953632839024067, -0.006098998244851828, 0.0063125998713076115, 0.01583217829465866, -0.01793433167040348, -0.001859347685240209, -0.04503980651497841, -0.021491749212145805, 0.06423109024763107, -0.02856467105448246, -0.04229902848601341, -0.010318814776837826, -0.06774608790874481, 0.03271474689245224, -0.08046573400497437, -0.0672336295247078, -0.028246186673641205, 0.0352277047932148, 0.017075665295124054, -0.002561139641329646, -0.009427981451153755, 0.05906397104263306, 0.03079434297978878, 0.01594117470085621, 0.03921153396368027, 0.02638339251279831, 0.012913567945361137, 0.02139146253466606, 0.008226561360061169, 0.05698637291789055, 0.00043860002188012004, 0.004101273603737354, -0.041760727763175964, -0.005013512447476387, -0.016233505681157112, -0.25799059867858887, 0.044072311371564865, -0.04351567104458809, -0.07067590206861496, 0.03966008871793747, -0.03010539896786213, 0.01521589607000351, -0.03000226616859436, -0.021187089383602142, 0.01659948006272316, -0.029686808586120605, -0.012048076838254929, -0.0036346346605569124, 0.0378522053360939, 0.020004043355584145, 0.016255099326372147, 0.0023305669892579317, -0.044078972190618515, 0.0308699868619442, 0.050598617643117905, 0.019582601264119148, -0.02238587848842144, 0.014025814831256866, 0.057739924639463425, 0.030897503718733788, 0.0617317333817482, -0.05713571980595589, 0.013271992094814777, -0.030964596197009087, -0.039777614176273346, 0.01721945032477379, -0.029792383313179016, -0.01529565267264843, -0.0013635291252285242, -0.005156290717422962, -0.004306389018893242, 0.050223857164382935, 0.00375318992882967, 0.02224911004304886, 0.028777217492461205, -0.03239875286817551, -0.025251219049096107, 0.010738469660282135, 0.009712974540889263, 0.0681951493024826, 0.0034617658238857985, -0.05257418006658554, -0.006837564520537853, -0.02458660677075386, 0.06757469475269318, -0.03156662732362747, 0.0023342634085565805, -0.038036245852708817, 0.052732858806848526, -0.025803791359066963, -0.009544078260660172, -0.008713184855878353, 0.010618315078318119, -0.014672872610390186, -0.019643140956759453, 0.0018045025644823909, -0.06707555800676346, -0.0025100866332650185, -0.028904518112540245, 0.006278760265558958, -0.07041563838720322, -0.06580155342817307, -0.0147807402536273, 0.05258144065737724, 0.07283201068639755, -0.01411417219787836, -0.013717692345380783, 0.029836256057024002, -0.100812166929245, -0.0013058946933597326, -0.012890835292637348, 0.004543814342468977, -0.02560243010520935, -0.03958818316459656, 0.05721462145447731, -0.02069106511771679, -0.04468684270977974, 0.03667830303311348, 0.016181211918592453, 0.013713099993765354, -0.050966229289770126, 0.003556494601070881, 0.026435833424329758, -0.018272830173373222, -0.03178773075342178, 0.06397735327482224, -0.025023825466632843, 0.011803754605352879, 0.0023298875894397497, -0.03817560523748398, 0.04913397878408432, 0.017913367599248886, -0.003929853439331055, 0.003851932007819414, -0.005440921988338232, 0.027104763314127922, -0.04547526687383652, -0.00585499033331871, -0.05173980072140694, 0.012350750155746937, -0.027417674660682678, -0.0423312671482563, -0.001491872943006456, 0.010306358337402344, 0.01904260367155075, -0.01061417255550623, -0.017631055787205696, 0.015038822777569294, -0.09143616259098053, 0.0016011151019483805, 0.0026682699099183083, 0.001825458137318492, -0.008284974843263626, 0.013510536402463913, -0.019829019904136658, -0.07566449046134949, 0.01230507530272007, 0.013168073259294033, -0.02517050877213478, -0.0641663670539856, -0.03063325770199299, 0.0033030323684215546, -0.009335608221590519, -0.0005808072164654732, -0.02243562415242195, -0.022338010370731354, 0.0025669122114777565, 0.0430290624499321, -0.06848055869340897, 0.026937294751405716, -0.004159725271165371, -0.039393775165081024, -0.01691766269505024, -0.004750601015985012, 0.0014865255216136575, 0.03386503830552101, -0.011582192964851856, 0.015824170783162117, 0.012323345988988876, 0.016853824257850647, 0.0003541473124641925, -0.012014403939247131, 0.023361338302493095, 0.002715176669880748, 0.05225945636630058, -0.04099986329674721, -0.03758617863059044, 0.00286922138184309, -0.003679393557831645, -0.06413064897060394, -0.06733522564172745, -0.003100335132330656, -0.012789935804903507, 0.0026953420601785183, -0.04387107864022255, -0.029775399714708328, -0.04364195838570595, -0.017647461965680122, -0.009121748618781567, -0.013730240054428577, 0.05577835068106651, 0.0032598210964351892, 0.02545820362865925, -0.021047228947281837, 0.015988245606422424, 0.012557036243379116, 0.004008159972727299, -0.03701606020331383, -0.01663740910589695, 0.03269149363040924, -0.012120959348976612, 0.03952470421791077, 0.007100395858287811, -0.017241355031728745, 0.02785746194422245, 0.004819914232939482, -0.014787816442549229, 0.020240670070052147, 0.02600720338523388, 0.0264032743871212, 0.039997830986976624, -0.032567281275987625, -0.00236201542429626, -0.011028217151761055, -0.05204363912343979, -0.027577921748161316, -0.01546921581029892, -0.04236429184675217, -0.021155422553420067, -0.031645987182855606, -0.06920187175273895, 0.022917302325367928, 0.026696790009737015, 0.00573534332215786, 0.025978047400712967, -0.011265366338193417, -0.006432824768126011, -0.014754807576537132, 0.0013414187123999, 0.05735525116324425, -0.05734963342547417, 0.017946861684322357, -0.011471174657344818, -0.024319779127836227, 0.013597970828413963, 0.03194772079586983, -0.0412655770778656, -0.03624262288212776, 0.005071572493761778, 0.0369136705994606, -0.019518043845891953, 0.018974848091602325, -0.03276132419705391, 0.005637757014483213, -0.005723145790398121, -0.012217352166771889, 0.0004640389233827591, 0.006353273056447506, -0.021904779598116875, -0.0016666485462337732, 0.008193247020244598, -0.006880020722746849, -0.026955479755997658, 0.06493742763996124, -0.013767829164862633, -0.009361280128359795, -0.02346501685678959, 0.03182707726955414, 0.013069821521639824, -0.01945745199918747, -0.05971338972449303, -0.04192546010017395, 0.004053828772157431, -0.011110514402389526, 0.03899160027503967, 0.014346504583954811, -0.007243028376251459, -0.0036144109908491373, -0.009100779891014099, 0.001576932379975915, -0.025584345683455467, -0.019337212666869164, -0.03062434308230877, 0.04588092491030693, 0.0513312928378582, 0.0320381224155426, -0.03550935909152031, 0.003111235797405243, -0.06521888077259064, 0.061967525631189346, -0.041955236345529556, -0.04633726552128792, 0.005443934351205826, -0.05042650178074837, 0.018021680414676666, 0.004092000424861908, 0.01704755797982216, -0.03686583414673805, 0.07155042141675949, 0.04406530037522316, 0.0012742970138788223, 0.020611878484487534, 0.014693506993353367, 0.030911419540643692, -0.024560026824474335, -0.040755175054073334, -0.06898584216833115, 0.02443118207156658, 0.01403107214719057, -0.01438804343342781, -0.026523668318986893, -0.02084311656653881, -0.013362124562263489, 0.009058425202965736, -0.06971263885498047, -0.044667478650808334, 0.04966206103563309, 0.019343506544828415, 0.03593041002750397, 0.027724942192435265, -0.026424456387758255, 0.043788228183984756, 0.02942962758243084, -0.0325220450758934, -0.049994513392448425, -0.02138495445251465, 0.06972701102495193, 0.01645038276910782, -0.012202353216707706, -0.046511586755514145, 0.014498897828161716, 0.054138269275426865, 0.011874218471348286, 0.004126292187720537, 0.03553060442209244, -0.0479070320725441, 0.05253854766488075, 0.019023694097995758, -0.02453422173857689, -0.014231964945793152, 0.030443372204899788, -0.005527664441615343, -0.0464639812707901, -0.01993994601070881, 0.047103725373744965, 0.012002167291939259, -0.045128028839826584, 0.06112831085920334, -0.002255429280921817, -0.0033421257976442575, -0.052135225385427475, -0.035793643444776535, -0.036265794187784195, 0.011602761223912239, -0.03461413085460663, 0.021834442391991615, -0.02118801139295101, 0.0702071264386177, -0.040992625057697296, 0.0019264889415353537, 0.07635940611362457, -0.002884821966290474, 0.022394396364688873, -0.017682043835520744, 0.06637158244848251, 0.10711339116096497, 0.040483079850673676, 0.004675581119954586, 0.06848463416099548, -0.023040011525154114, -0.047668203711509705, 0.00006731443863827735, -0.035232145339250565, 0.010587817057967186, -0.037706904113292694, -0.009155415929853916, 0.08253294229507446, 0.01508830115199089, 0.06074673309922218, -0.026440786197781563, -0.020299186930060387, -0.018546728417277336, 0.00988602265715599, 0.03495234251022339, -0.00041874186717905104, 0.020325712859630585, -0.00739231938496232, -0.0030475722160190344, 0.020140523090958595, 0.015678906813263893, 0.0053153978660702705, -0.029517924413084984, 0.04142264649271965, 0.004583331290632486, 0.014643621630966663, 0.02600380964577198, 0.06205208972096443, 0.06019642576575279, -0.014767269603908062, 0.0010125122498720884, 0.005251278169453144, 0.04119347408413887, -0.0075629460625350475, -0.0009502209722995758, 0.016470909118652344, -0.019491415470838547, -0.008741707541048527, -0.020420603454113007, -0.001465924782678485, -0.027218058705329895, -0.026456085965037346, 0.02558349445462227, 0.0020170381758362055, -0.0022311783395707607, 0.02165166474878788, 0.03445815667510033, -0.04774998873472214, -0.06330285966396332, -0.05397990718483925, -0.03476247563958168, -0.08834407478570938, -0.036312833428382874, 0.030813656747341156, -0.03800982981920242, -0.032569520175457, -0.03340049088001251, -0.029388928785920143, -0.0077821481972932816, -0.01904376968741417, -0.03248278424143791, -0.03783799335360527, 0.013041275553405285, 0.03662877902388573, 0.016677159816026688, 0.034081391990184784, 0.03483627364039421, -0.008472560904920101, -0.04350772127509117, 0.0007177852094173431, -0.00438073230907321, 0.04459988325834274, 0.0035366793163120747, 0.03668459132313728, -0.05894859880208969, 0.030474966391921043, 0.013048840686678886, -0.002200313378125429, -0.07717228680849075, 0.046525876969099045, 0.047125525772571564, 0.028434623032808304, 0.0607580803334713, 0.006150681059807539, -0.005462266504764557, -0.06160513311624527, -0.03992357477545738, 0.005303947255015373, 0.004154916387051344, 0.05424927920103073, -0.04663515090942383, 0.07573667168617249, 0.03511502221226692, -0.011732743121683598, -0.03760705515742302, 0.00855306163430214, 0.0070688179694116116, 0.017982404679059982, -0.055958718061447144, -0.05404522269964218, -0.04887887090444565, -0.05268670991063118, -0.03504941239953041, 0.008039797656238079, -0.031370725482702255, -0.018719647079706192, 0.0003888256032951176, 0.03606187552213669, -0.05793648213148117, 0.015839701518416405, -0.041057322174310684, 0.03752145171165466, -0.043142180889844894, -0.02960490994155407, -0.02074180170893669, 0.058972809463739395, 0.03670896589756012, -0.00953274592757225, 0.011894523166120052, -0.036357078701257706, -0.000041540522943250835, -0.0456351637840271, 0.006383288651704788, 0.04829959571361542, -0.015308952890336514, 0.045792896300554276 ]
[ -0.018202869221568108, -0.005971006117761135, -0.05027175322175026, -0.0355873629450798, 0.05040640011429787, -0.04234449937939644, -0.03430333733558655, -0.0369068868458271, 0.017546983435750008, 0.011721232905983925, -0.0010210671462118626, -0.015644794330000877, -0.013717219233512878, -0.021674640476703644, 0.02533329464495182, -0.017580850049853325, -0.0684065967798233, -0.023586705327033997, -0.03388415649533272, 0.07632071524858475, -0.010395280085504055, -0.026920313015580177, 0.006744247395545244, -0.04033156484365463, 0.01193323452025652, 0.004771297797560692, 0.042160335928201675, -0.040461860597133636, -0.024597685784101486, -0.20479938387870789, -0.007610184606164694, -0.043158866465091705, -0.0012343570124357939, -0.04408619552850723, 0.06180480495095253, -0.04051942378282547, 0.07389404624700546, -0.03233430162072182, -0.0013937277253717184, 0.04095213860273361, 0.013947075232863426, 0.003826084779575467, -0.031148333102464676, -0.009267091751098633, -0.013439771719276905, -0.015352428890764713, -0.031897690147161484, -0.015361442230641842, 0.03822185844182968, 0.026069549843668938, -0.06889264285564423, 0.05593438819050789, -0.02305392548441887, 0.036387182772159576, -0.03853270038962364, 0.007589471992105246, 0.03440333530306816, 0.05028344318270683, -0.0469541922211647, -0.0037889142986387014, 0.018640749156475067, 0.011914215050637722, -0.09055154025554657, 0.09456703811883926, 0.027834156528115273, 0.025376955047249794, 0.000705704209394753, -0.01471517514437437, -0.04915887117385864, 0.03675469383597374, -0.011762392707169056, -0.022055519744753838, -0.046421367675065994, 0.0926055908203125, 0.0536281019449234, -0.06630010902881622, -0.07383792847394943, -0.01541448850184679, 0.03503577783703804, -0.020663311704993248, -0.06676371395587921, -0.03762679174542427, 0.014911314472556114, -0.0019713102374225855, -0.0006868920754641294, 0.05717220902442932, -0.01393092330545187, -0.003822274971753359, 0.017146000638604164, -0.017879394814372063, 0.01839512027800083, -0.05306361988186836, 0.06970056146383286, 0.010608267039060593, -0.07142076641321182, -0.027475081384181976, -0.03609117865562439, -0.002030781237408519, -0.0004020954656880349, 0.3477238416671753, -0.06761115044355392, -0.00622381130233407, -0.0065369089134037495, -0.0023836148902773857, -0.01269000768661499, -0.0025765669997781515, 0.013862541876733303, -0.007545719388872385, 0.01762728951871395, -0.008631929755210876, -0.027318237349390984, -0.02434331551194191, 0.02951463684439659, -0.05791335925459862, -0.03980887308716774, 0.008751670829951763, 0.02610192634165287, -0.07744833081960678, 0.005097460001707077, -0.019633151590824127, 0.0268649160861969, 0.007074743043631315, 0.04768923297524452, 0.01257334090769291, 0.017640559002757072, 0.018572714179754257, 0.02442339062690735, 0.09983830153942108, 0.05835212767124176, 0.0440894216299057, 0.06251786649227142, -0.07418138533830643, -0.05860079452395439, 0.021129703149199486, 0.0023704220075160265, -0.00975237786769867, -0.0011582828592509031, -0.032601673156023026, 0.02514091320335865, -0.03750977665185928, -0.023241324350237846, -0.073346808552742, 0.04929213225841522, 0.016137894243001938, -0.043559253215789795, 0.10479480028152466, -0.07140642404556274, -0.031445153057575226, -0.030884960666298866, -0.031014464795589447, -0.0020916718058288097, 0.011430395767092705, -0.03385065495967865, -0.019129307940602303, -0.023202821612358093, 0.036148183047771454, 0.04067796841263771, -0.0038861948996782303, -0.0755220577120781, -0.03281973674893379, -0.03462721407413483, -0.05460265278816223, -0.028407637029886246, 0.08448523283004761, 0.011750808916985989, -0.08556719869375229, -0.07855527848005295, 0.008216802030801773, -0.024938127025961876, -0.02545863948762417, 0.028509842231869698, -0.009211445227265358, -0.07681405544281006, 0.014431871473789215, 0.03965403512120247, 0.015051779337227345, -0.02127721719443798, -0.007184091955423355, 0.037110526114702225, 0.03071310557425022, 0.011350838467478752, 0.0250643752515316, -0.00800672173500061, 0.03379953280091286, -0.017730413004755974, -0.06054777279496193, -0.03358205780386925, -0.01926884427666664, -0.007914072833955288, -0.004609906114637852, -0.02001871168613434, -0.07250458002090454, -0.04679466784000397, -0.005482003092765808, -0.023716682568192482, 0.04903712496161461, 0.05124250426888466, -0.032227806746959686, 0.03189608454704285, 0.004952931776642799, 0.07257065922021866, -0.0038221930153667927, -0.007993355393409729, 0.03511925786733627, 0.013590965420007706, -0.02544180490076542, 0.056964702904224396, -0.04824847728013992, 0.0657733678817749, 0.03192312642931938, -0.03727852553129196, 0.05653083696961403, -0.015190082602202892, -0.022832805290818214, 0.01592138223350048, -0.015948090702295303, 0.019318904727697372, -0.0008442180114798248, 0.04780643433332443, 0.067359060049057, -0.04619203135371208, -0.03637789934873581, -0.03164202719926834, -0.347015917301178, -0.0031303265132009983, -0.02514330856502056, -0.034015677869319916, -0.03193264082074165, -0.01586708053946495, -0.03136854246258736, 0.00005551489448407665, -0.01972418837249279, 0.05173281580209732, 0.10672172158956528, -0.007402065210044384, -0.02933475375175476, -0.048256874084472656, -0.06691404432058334, 0.015423953533172607, 0.010124272666871548, -0.05137588828802109, -0.03923075646162033, 0.05292338877916336, 0.05321931466460228, -0.014485944993793964, -0.03150000050663948, -0.08328095078468323, 0.03584399074316025, -0.013160152360796928, 0.07006248831748962, 0.0020407442934811115, 0.09025494754314423, -0.05699046328663826, 0.06819558888673782, 0.04067619889974594, 0.004680067766457796, -0.061955276876688004, -0.007093446329236031, -0.05781950056552887, -0.05008066073060036, 0.019809439778327942, -0.021970432251691818, 0.02817228063941002, -0.07801204919815063, 0.014026879332959652, -0.00298633286729455, -0.07836925983428955, 0.062213994562625885, -0.0420769527554512, 0.015901120379567146, -0.0012754090130329132, -0.015231593511998653, 0.08383183926343918, 0.054514262825250626, -0.001381957670673728, 0.01290969643741846, 0.09466588497161865, 0.052492301911115646, -0.016062835231423378, -0.013428475707769394, 0.00268475036136806, -0.006455406546592712, -0.012559432536363602, -0.001706714741885662, 0.00590228196233511, 0.07486575096845627, -0.02388042025268078, -0.02534007653594017, -0.005054714623838663, 0.0031614943873137236, 0.014812675304710865, 0.044279903173446655, -0.013230888172984123, -0.05581957846879959, 0.07816725969314575, -0.008790163323283195, 0.03452751785516739, 0.033770669251680374, 0.06973633915185928, -0.018426792696118355, 0.0354607068002224, -0.015515230596065521, -0.01585092768073082, -0.0018939502770081162, 0.0758359506726265, 0.07812574505805969, -0.018560046330094337, 0.04070349410176277, 0.05498833954334259, 0.014517687261104584, 0.021129872649908066, 0.02571824938058853, -0.02631600946187973, -0.019969414919614792, -0.043792519718408585, -0.00031267700251191854, -0.0064989011734724045, 0.061228398233652115, -0.003401001449674368, -0.25093862414360046, 0.0337265245616436, 0.03200133889913559, 0.010715355165302753, 0.0307075846940279, 0.031175684183835983, 0.013609882444143295, -0.05135902762413025, -0.013189331628382206, 0.03965384140610695, 0.0025915484875440598, 0.03975200653076172, 0.052729204297065735, -0.024387581273913383, 0.011051922105252743, -0.00918000377714634, 0.06459907442331314, 0.028210150077939034, 0.0399976409971714, 0.010173880495131016, 0.04157467186450958, -0.025736412033438683, 0.20228815078735352, 0.0507233589887619, 0.029525866732001305, -0.0058539267629384995, 0.04903474077582359, -0.030240032821893692, 0.038909051567316055, 0.07109172642230988, 0.0336063988506794, -0.05778583884239197, 0.09118232876062393, 0.050131674855947495, 0.045533232390880585, -0.008030194789171219, -0.030826549977064133, 0.06653612852096558, -0.0028458067681640387, -0.055163174867630005, -0.053542252629995346, 0.05880386382341385, -0.06258860975503922, 0.017776284366846085, 0.042802806943655014, -0.01981828734278679, -0.03261346369981766, -0.050806332379579544, -0.0015189994592219591, -0.005784685257822275, -0.016462471336126328, 0.0006056887214072049, 0.022188683971762657, -0.028332119807600975, 0.002002820372581482, 0.0424647256731987, 0.04303908720612526, 0.0009512301767244935, 0.02678569220006466, 0.0316343829035759, 0.03241610527038574, -0.061601243913173676, 0.04669121652841568, 0.054906707257032394, 0.03982210531830788 ]
[ -0.003159451996907592, 0.025205207988619804, -0.052023183554410934, 0.032738447189331055, 0.00019932046416215599, -0.024775587022304535, 0.03210493549704552, 0.007561918813735247, -0.02512095868587494, 0.00242526363581419, -0.0049251350574195385, -0.03902242332696915, 0.027135945856571198, -0.08279275894165039, 0.03945964202284813, -0.02041841484606266, -0.011587826535105705, -0.05496158078312874, 0.019223084673285484, -0.026741597801446915, -0.02518082968890667, 0.02779628336429596, 0.004293231293559074, -0.0022448617964982986, 0.009266206063330173, 0.02297421731054783, -0.06090816110372543, 0.006440046709030867, 0.009689094498753548, -0.13112692534923553, -0.0534716434776783, -0.03090979903936386, -0.014777900651097298, 0.011601679027080536, -0.000025649100280134007, -0.0045753358863294125, 0.02050391025841236, 0.05289549008011818, -0.03325508534908295, 0.031067747622728348, -0.032193753868341446, -0.004900951869785786, -0.014446042478084564, -0.005156724713742733, -0.002016624668613076, -0.02556770294904709, -0.032980777323246, -0.012284987606108189, -0.00826079212129116, 0.004039921332150698, -0.06327272951602936, 0.05391615256667137, -0.00012516054266598076, 0.010446696542203426, 0.029711995273828506, -0.013375353999435902, -0.010346557945013046, -0.017780713737010956, 0.0028900636825710535, 0.03388793393969536, -0.03807265684008598, 0.00008878390508471057, -0.022491151466965675, -0.01849530264735222, 0.04252350330352783, -0.040316734462976456, -0.031452976167201996, 0.005301248747855425, 0.02378123626112938, -0.038375645875930786, -0.014090415090322495, 0.0004426233354024589, -0.048260629177093506, 0.023408081382513046, -0.03221244737505913, 0.0049988627433776855, 0.004967385437339544, -0.047945305705070496, 0.004675892181694508, -0.026940666139125824, -0.059604912996292114, -0.021640172228217125, -0.01366607565432787, 0.03532230108976364, 0.0013034860603511333, -0.03009064868092537, -0.028952984139323235, 0.03833427652716637, -0.03212771192193031, 0.0010624948190525174, -0.0065752193331718445, -0.01389485877007246, 0.01268141157925129, 0.0461927130818367, -0.03549913316965103, -0.008328432217240334, -0.011710894294083118, -0.03319348022341728, -0.000445265497546643, 0.799781322479248, -0.009791485033929348, 0.029373951256275177, 0.058138974010944366, -0.00008613806130597368, -0.03510230407118797, -0.036599043756723404, 0.026974588632583618, -0.005558034870773554, 0.017025908455252647, -0.04941066354513168, 0.025046685710549355, 0.007836313918232918, -0.0012869578786194324, -0.03187940642237663, 0.0021948409266769886, 0.03199125826358795, -0.017124783247709274, -0.027336014434695244, 0.02267204225063324, -0.015199083834886551, 0.003957495559006929, -0.02258218638598919, -0.05925285443663597, -0.004867640323936939, 0.02021533064544201, -0.17556066811084747, 0.031009310856461525, -7.353567928429816e-33, -0.003524002619087696, -0.016611840575933456, 0.019274048507213593, 0.002256005071103573, 0.08782371878623962, 0.03228678181767464, -0.041639961302280426, 0.0356835275888443, 0.0037475621793419123, -0.0009874268434941769, 0.042007941752672195, -0.036027297377586365, -0.03259792551398277, -0.02808496542274952, 0.04125608503818512, 0.021571263670921326, -0.0032585521694272757, 0.003321076976135373, -0.02655762992799282, -0.004751913715153933, 0.07182314991950989, 0.06365678459405899, 0.0408051535487175, 0.043197616934776306, 0.020957237109541893, 0.002197063760831952, -0.021795250475406647, 0.014957810752093792, -0.013274546712636948, -0.02851719781756401, -0.03607897832989693, 0.015425914898514748, 0.022851834073662758, -0.032589662820100784, 0.032371021807193756, -0.0512319877743721, -0.02023482322692871, 0.010699160397052765, -0.020443491637706757, 0.040275849401950836, -0.024776805192232132, -0.019864462316036224, 0.019930431619286537, 0.006569037213921547, -0.03625699132680893, 0.02505732886493206, -0.00456539262086153, -0.0002399272780166939, -0.0023986962623894215, -0.007221078034490347, 0.04587693139910698, 0.026550503447651863, 0.020702878013253212, 0.01734796166419983, -0.006082125939428806, 0.019724952057003975, -0.016978014260530472, -0.027558671310544014, 0.01967921108007431, -0.025458142161369324, -0.0035187101457268, -0.01650211215019226, 0.009417803026735783, 0.02093888446688652, -0.022578423842787743, 0.0024201597552746534, 0.06072556599974632, 0.029468990862369537, 0.016197776421904564, -0.016233528032898903, -0.02499404177069664, 0.033980000764131546, 0.0036925957538187504, -0.06099885329604149, 0.008497582748532295, -0.014926066622138023, -0.009100326336920261, -0.03726399317383766, 0.049577731639146805, 0.018002785742282867, 0.02297939918935299, -0.021089764311909676, -0.027520619332790375, -0.019628645852208138, -0.04067308083176613, 0.005775138735771179, 0.029641879722476006, 0.02967282012104988, -0.019751977175474167, -0.04081566631793976, 0.0005311596323736012, 0.06522136926651001, 0.026156099513173103, -0.051357243210077286, -0.011119719594717026, 6.178036843409065e-33, 0.029547998681664467, -0.009080766700208187, -0.002391722286120057, -0.00971510261297226, 0.035044051706790924, 0.03559325635433197, 0.01636437699198723, 0.03951997309923172, 0.002008244628086686, -0.000050110033043893054, -0.024005895480513573, 0.0217557605355978, 0.0024201595224440098, 0.01639765501022339, 0.010204941965639591, 0.03878290578722954, -0.0083240307867527, 0.04333501681685448, -0.016790542751550674, 0.005259342025965452, -0.0039235688745975494, 0.016385089606046677, 0.019458666443824768, 0.04885100945830345, 0.0311968382447958, 0.003905016463249922, -0.015063748694956303, -0.011361312121152878, -0.005234886426478624, 0.035525232553482056, -0.014774846844375134, 0.0010351658565923572, -0.001168511458672583, -0.03557128459215164, -0.052648864686489105, 0.026966145262122154, 0.003375016152858734, -0.010853739455342293, 0.013793690130114555, 0.04178694263100624, 0.006276659667491913, 0.020234806463122368, -0.009330312721431255, 0.032929591834545135, 0.015117218717932701, 0.046278465539216995, 0.022831222042441368, 0.004313055891543627, -0.007304047700017691, 0.031087996438145638, 0.007675134111195803, 0.0028965193778276443, 0.001521112397313118, 0.031157568097114563, 0.04964889958500862, -0.01993565633893013, -0.03521066904067993, 0.02984747476875782, -0.0613829679787159, -0.07083703577518463, -0.07394929975271225, 0.027685681357979774, -0.010563641786575317, 0.014806125313043594, 0.005466296337544918, 0.01755441725254059, -0.053194280713796616, 0.017715327441692352, 0.004089634865522385, -0.04430118203163147, -0.023344555869698524, -0.025385024026036263, -0.007915141060948372, 0.01539150346070528, -0.03342098370194435, 0.024193381890654564, -0.025554092600941658, -0.0015012742951512337, -0.012630731798708439, 0.014192796312272549, 0.06024215370416641, -0.04302458465099335, 0.03640085086226463, -0.0026952314656227827, -0.022721050307154655, -0.0008286173106171191, -0.04717235267162323, -0.04559079557657242, 0.027389882132411003, 0.027088791131973267, -0.03643517568707466, -0.025770219042897224, 0.0145557327196002, 0.0015160697512328625, -0.039958298206329346, -1.2578818875397246e-8, 0.0007387545774690807, 0.0032255391124635935, -0.03494623303413391, 0.02157275192439556, 0.02854575589299202, -0.0048932963982224464, -0.026756640523672104, -0.0010233918437734246, 0.026541059836745262, 0.031515177339315414, 0.014240140095353127, -0.007024018559604883, 0.027789564803242683, 0.01750856637954712, 0.0004090451402589679, -0.018790528178215027, 0.004380634520202875, -0.001534055219963193, 0.01932881586253643, 0.0011990953935310245, 0.0038408117834478617, 0.04759984835982323, -0.0006835254607722163, 0.029241912066936493, 0.02668427675962448, 0.018651673570275307, -0.03232720494270325, -0.07922356575727463, 0.013713356107473373, 0.007054759189486504, 0.010556448251008987, -0.027638515457510948, -0.04356170445680618, -0.009751303121447563, -0.010625181719660759, -0.026653535664081573, 0.043795790523290634, 0.023091120645403862, 0.01603652350604534, 0.004417224787175655, 0.01600620709359646, -0.04560328647494316, -0.026869261637330055, -0.023250747472047806, -0.03969230130314827, -0.06527908891439438, -0.056901589035987854, 0.033819038420915604, 0.026481015607714653, -0.00764795858412981, 0.01819276437163353, -0.00244954414665699, 0.013280265033245087, 0.003602144308388233, 0.028252946212887764, 0.0029280881863087416, 0.016490550711750984, 0.07629262655973434, -0.0007218599203042686, -0.015569495968520641, 0.013917422853410244, 0.005009072832763195, -0.015033102594316006, -0.014890138991177082 ]
clickhouse-nested-type-cannot-be-inside-nullable-type
https://markhneedham.com/blog/2023/11/03/clickhouse-nested-type-cannot-be-inside-nullable-type
false
2023-11-02 00:44:37
Poetry: OSError: Precompiled binaries are not available for the current platform. Please reinstall from source
[ "python", "poetry", "til" ]
[ "TIL" ]
:icons: font I've been playing around with the https://github.com/marella/ctransformers/tree/main[CTransformers^] library recently and getting it installed via Poetry was a bit fiddly. In this post, we'll run through what I've ended up doing. If we try to add the library in the usual way: [source, bash] ---- poetry add ctransformers ---- We'll get the following error: .Output [source, text] ---- OSError: Precompiled binaries are not available for the current platform. Please reinstall from source using: pip uninstall ctransformers --yes CT_METAL=1 pip install ctransformers --no-binary ctransformers ---- Instead, we need to call the following command to tell Poetry to install the library from source: [source, bash] ---- poetry config --local installer.no-binary ctransformers ---- We can then run the following command again: [source, bash] ---- poetry add ctransformers ---- And this time it will install from source. Unfortunately, I still haven't worked out how to have Poetry pickup the `CT_METAL` environment variable, which means it doesn't get installed with GPU support. To get GPU support I'm having to go around Poetry's dependency management by running `pip` directly: [source, bash] ---- CT_METAL=1 poetry run pip install ctransformers ---- Which works, but isn't ideal. If anybody knows how to have Poetry pick up the environment variable, please let me know in the comments.
In this post, we'll learn how to install a library from source using Poetry.
uploads/2023/10/autocomplete-banner.png
[ -0.013899588957428932, -0.007731113117188215, -0.011966164223849773, 0.013297219760715961, 0.07657305151224136, 0.042862668633461, 0.015561765991151333, 0.06294909119606018, -0.009496633894741535, -0.027530040591955185, -0.012752050533890724, 0.004096379969269037, -0.0701904222369194, 0.0431203655898571, -0.009165514260530472, 0.08353970944881439, 0.08304546028375626, -0.012438108213245869, 0.023220378905534744, 0.013656547293066978, 0.03303295746445656, 0.05088569596409798, -0.016971567645668983, 0.02742055058479309, -0.011698747053742409, 0.013768496923148632, 0.022189786657691002, 0.0012125446228310466, -0.053665488958358765, -0.011100186966359615, 0.027939323335886, -0.014342390932142735, -0.012788886204361916, -0.030693398788571358, 0.0186629518866539, -0.0002671627444215119, -0.024985726922750473, 0.016309132799506187, 0.02789199724793434, -0.009435053914785385, -0.040915779769420624, 0.005963174160569906, 0.017851384356617928, 0.0100230248644948, -0.04296450316905975, 0.015991490334272385, -0.055081769824028015, 0.012390028685331345, -0.0021576727740466595, -0.0436219647526741, -0.044354673475027084, 0.038045767694711685, -0.007152522448450327, -0.02559308335185051, 0.027118388563394547, 0.03646821156144142, 0.013821703381836414, -0.06963267177343369, 0.019235344603657722, -0.049513548612594604, 0.0004825593496207148, 0.0033499212004244328, -0.00813453458249569, 0.04135797545313835, -0.005937101319432259, -0.019420163705945015, -0.004598855972290039, 0.016963232308626175, -0.04982498660683632, -0.03898879140615463, 0.004983286838978529, 0.014263248071074486, -0.023857804015278816, -0.006171418819576502, 0.02866162732243538, -0.016335230320692062, -0.03896145522594452, 0.05076080560684204, 0.024005625396966934, 0.047934964299201965, 0.009526688605546951, 0.005917317699640989, 0.052882734686136246, 0.037149980664253235, 0.018147006630897522, -0.06537750363349915, 0.016546033322811127, -0.004217168781906366, -0.06881752610206604, 0.025480519980192184, 0.005901839584112167, -0.05438369885087013, 0.021696515381336212, 0.002131992019712925, 0.018289025872945786, 0.006994057912379503, -0.006105448585003614, 0.010531001724302769, 0.0003590208652894944, -0.0115146953612566, -0.03279716521501541, -0.01046630647033453, -0.008238500915467739, 0.01261684950441122, -0.07608912885189056, -0.011882910504937172, -0.029135659337043762, -0.013754782266914845, 0.008827665820717812, -0.00881858728826046, 0.017777714878320694, -0.006569214630872011, -0.008164259605109692, 0.0036754561588168144, -0.05604569613933563, 0.07988017797470093, 0.012320266105234623, -0.01429659128189087, -0.007009269669651985, 0.0316242016851902, 0.059324637055397034, 0.048311181366443634, -0.02568690851330757, 0.07181132584810257, 0.018939325585961342, 0.054543815553188324, -0.0149347223341465, 0.03905452787876129, -0.0059374114498496056, -0.06549032032489777, 0.01102928351610899, 0.05325424298644066, -0.0029007205739617348, 0.014574060216546059, 0.026369640603661537, -0.02534077689051628, -0.015093103051185608, -0.021809035912156105, 0.052857328206300735, 0.020860495045781136, -0.006337067112326622, -0.017497766762971878, -0.0034774907398968935, 0.010846984572708607, 0.02561725117266178, 0.028945833444595337, 0.01018650084733963, -0.04704483598470688, -0.03213708475232124, 0.05335013195872307, 0.017234832048416138, 0.031089914962649345, 0.05734383314847946, -0.03130751848220825, 0.00005494330980582163, 0.07171422243118286, 0.06060689315199852, 0.024800438433885574, -0.026485249400138855, 0.025900941342115402, 0.014506147243082523, 0.025573506951332092, 0.01811813749372959, 0.026519905775785446, 0.0011066958541050553, -0.028755106031894684, -0.01855534128844738, 0.032100316137075424, -0.0122112687677145, -0.015631776303052902, -0.040754660964012146, -0.08955113589763641, 0.056004248559474945, -0.04027894511818886, 0.016468988731503487, 0.02010386995971203, 0.09208450466394424, 0.027855100110173225, 0.011655723676085472, 0.010000770911574364, -0.09487541764974594, 0.058463506400585175, -0.01661052368581295, 0.017595915123820305, 0.02484440803527832, -0.010607711039483547, 0.08237243443727493, -0.0024132253602147102, 0.014849376864731312, 0.032256755977869034, -0.06601862609386444, -0.07144767791032791, -0.03075825609266758, 0.02089078351855278, 0.040681563317775726, -0.03845770284533501, -0.05582702159881592, 0.04129864647984505, 0.04111439362168312, 0.030031980946660042, 0.016680140048265457, -0.017441321164369583, 0.030510781332850456, -0.06355799734592438, -0.05124375969171524, 0.02579042874276638, 0.032432734966278076, 0.0005655649001710117, -0.02195744588971138, 0.016045674681663513, -0.014661076478660107, -0.023595871403813362, 0.01814325712621212, -0.0024635198060423136, 0.05533558130264282, -0.006691219285130501, 0.004408699460327625, -0.04691677913069725, 0.031925708055496216, -0.056786734610795975, -0.015989571809768677, -0.00788091216236353, 0.0030644135549664497, -0.018650058656930923, -0.023095879703760147, 0.1255427449941635, 0.025929948315024376, -0.014414689503610134, -0.047088563442230225, 0.015044856816530228, 0.004508734680712223, -0.04526035115122795, -0.010163059458136559, -0.01666834205389023, -0.005997598171234131, 0.0010070133721455932, -0.0305935088545084, -0.03848602622747421, 0.023280097171664238, -0.02284396067261696, -0.042105782777071, 0.05713661015033722, -0.01579008437693119, 0.0463302917778492, 0.01988711766898632, -0.015278869308531284, 0.005647444166243076, -0.0435129851102829, -0.053092729300260544, 0.002057343255728483, 0.03419952467083931, -0.013106650672852993, -0.005274634808301926, -0.03698395937681198, -0.032999031245708466, -0.027874285355210304, -0.0463026762008667, 0.025519588962197304, 0.023852374404668808, 0.05028190091252327, -0.05144849792122841, 0.0029759053140878677, 0.01213952898979187, 0.014803429134190083, -0.031988080590963364, -0.0438191294670105, -0.02207944728434086, -0.0180746391415596, 0.037624794989824295, 0.018637893721461296, 0.02432895079255104, 0.02240554615855217, 0.0022138517815619707, 0.0002532907237764448, -0.003943250048905611, 0.013163789175450802, 0.035839006304740906, 0.019618675112724304, -0.0068539525382220745, -0.05544454976916313, -0.009180638939142227, 0.05080701410770416, -0.05829812213778496, -0.025439729914069176, -0.009948941878974438, -0.026257134974002838, 0.021808968856930733, -0.08222538232803345, -0.0160316601395607, -0.04197993874549866, 0.012487228028476238, 0.03801264241337776, 0.01927887089550495, 0.009304734878242016, 0.03289737179875374, 0.04758283868432045, 0.0253769364207983, 0.024749046191573143, -0.011747054755687714, 0.03404596447944641, -0.001353864441625774, 0.0032362882047891617, 0.03512651100754738, 0.02920936793088913, 0.009757204912602901, -0.03306199610233307, 0.00983977597206831, -0.05287802591919899, -0.2640145421028137, 0.025477245450019836, 0.004791636951267719, -0.046061333268880844, 0.030134133994579315, -0.002221475588157773, 0.0185757577419281, -0.02823803573846817, -0.026232687756419182, 0.01801268756389618, -0.02945719286799431, -0.03613516688346863, 0.000801804824732244, 0.03155222162604332, -0.0032399778719991446, -0.0008360650390386581, 0.018972108140587807, -0.03369354456663132, -0.014812156558036804, 0.04369780421257019, 0.01283940114080906, -0.05006047338247299, 0.013688631355762482, 0.042898714542388916, 0.02192995510995388, 0.033982180058956146, -0.05320184677839279, 0.058057449758052826, -0.053172700107097626, -0.009285335429012775, -0.01514354720711708, 0.013519673608243465, 0.004888671915978193, 0.017424624413251877, -0.016400404274463654, -0.0061570871621370316, 0.040095798671245575, 0.013607804663479328, 0.023608719930052757, -0.00781757291406393, -0.006858984474092722, -0.03564063459634781, 0.001025275094434619, -0.013071724213659763, 0.07300907373428345, -0.02448042295873165, -0.09138333797454834, 0.0037626572884619236, -0.04980550706386566, 0.09407669305801392, -0.034738630056381226, -0.0342739038169384, -0.022238662466406822, 0.04745763540267944, 0.01667826622724533, -0.02600279077887535, -0.021341262385249138, -0.012291571125388145, -0.05631832405924797, -0.020904768258333206, -0.026227902621030807, -0.03140602633357048, -0.037889979779720306, -0.04821450635790825, 0.022081492468714714, -0.0619511678814888, -0.04090217500925064, -0.01465696096420288, 0.06473642587661743, 0.041533444076776505, -0.04497193917632103, -0.011160948313772678, -0.0315113291144371, -0.08649548143148422, 0.008566835895180702, -0.031431544572114944, -0.04144318401813507, -0.027780979871749878, -0.005242233630269766, 0.021354859694838524, -0.0507800355553627, -0.06354539841413498, 0.006001159083098173, -0.005099988542497158, 0.007573429029434919, -0.014045300893485546, 0.017876410856842995, 0.0043261670507490635, -0.00041394366417080164, -0.00709588173776865, 0.07655641436576843, -0.024400494992733, -0.0457589216530323, -0.016820793971419334, -0.0038818407338112593, -0.006879637483507395, 0.03961293399333954, 0.02290385030210018, 0.03250317648053169, 0.055984243750572205, 0.038724035024642944, -0.07323388010263443, -0.01489976979792118, -0.00910241063684225, -0.02555445209145546, 0.005674327258020639, -0.07202133536338806, 0.00897929072380066, 0.04082610458135605, -0.01738342083990574, -0.02118060179054737, -0.05474260076880455, 0.05332396924495697, -0.05259539559483528, -0.05743836611509323, 0.00818504486232996, 0.03922035172581673, 0.02361830323934555, 0.02386285550892353, 0.0084083192050457, -0.024036768823862076, 0.05091358721256256, -0.022851236164569855, -0.031967893242836, -0.04819745197892189, -0.016532927751541138, -0.00830772053450346, 0.031311459839344025, -0.015041365288197994, 0.00014793741866014898, -0.030432023108005524, 0.01164835225790739, 0.03777022287249565, -0.04401322081685066, 0.01937808096408844, -0.04454601928591728, -0.06256379187107086, -0.02964375540614128, 0.005333923269063234, 0.0034437512513250113, -0.015604550018906593, -0.005849126726388931, 0.0038279287982732058, -0.004025861620903015, 0.047808803617954254, 0.0056898100301623344, 0.05071306601166725, -0.00718546099960804, -0.009572611190378666, 0.03192729875445366, 0.017749309539794922, -0.03531889617443085, 0.028975272551178932, -0.010111400857567787, -0.005272738169878721, -0.006135734263807535, 0.004796676337718964, -0.011256367899477482, 0.018182042986154556, -0.029731841757893562, -0.0011704926146194339, -0.04301268234848976, -0.0001754919794620946, -0.00010798941366374493, -0.003257074858993292, 0.03501157835125923, -0.015969526022672653, -0.0034312051720917225, -0.004141306038945913, 0.030083555728197098, 0.024628961458802223, 0.04117445647716522, -0.03805064782500267, 0.02983284182846546, -0.007988161407411098, 0.013312398456037045, 0.0031790821813046932, 0.0044674016535282135, 0.03399762138724327, -0.00006933967233635485, 0.0025133113376796246, -0.004872743971645832, 0.043540261685848236, -0.0016018612077459693, 0.018307099118828773, 0.014951633289456367, -0.019407443702220917, -0.025593552738428116, -0.022587424144148827, -0.00031349060009233654, -0.025537969544529915, 0.017492737621068954, -0.025808067992329597, -0.02521645650267601, -0.02974659577012062, -0.08466639369726181, 0.0047471653670072556, 0.036706339567899704, 0.013254924677312374, 0.00045352469896897674, -0.007864533923566341, 0.008277141489088535, -0.04252534732222557, 0.015442670322954655, 0.06744466722011566, -0.08409750461578369, 0.020247744396328926, 0.011869912035763264, 0.014088121242821217, 0.015033915638923645, 0.04097878187894821, -0.05698711797595024, -0.005734664853662252, -0.007227225229144096, 0.022117862477898598, -0.023611657321453094, -0.026939723640680313, -0.038629431277513504, 0.009131810627877712, -0.025397630408406258, 0.004053113982081413, -0.0033636060543358326, -0.009820853359997272, -0.016383813694119453, -0.02819916047155857, -0.004004871938377619, -0.005843582563102245, -0.00797977577894926, 0.025716669857501984, -0.004107112996280193, 0.04413224756717682, -0.034554678946733475, 0.06078432500362396, 0.018142780289053917, 0.002603700617328286, -0.010406959801912308, -0.060161758214235306, -0.02474493719637394, 0.0006327737355604768, 0.01911797747015953, 0.019632747396826744, -0.013867306523025036, -0.04356268793344498, 0.001772032119333744, -0.025526881217956543, 0.014204035513103008, -0.032179392874240875, -0.03156748041510582, -0.006214863155037165, 0.05275018885731697, 0.023944955319166183, 0.006461289245635271, 0.0026732739061117172, -0.04108141362667084, 0.07228211313486099, -0.06110486388206482, -0.0593348890542984, 0.0135037861764431, -0.04883173480629921, 0.041177038103342056, 0.02399981953203678, 0.005861529149115086, -0.07776087522506714, 0.00923025980591774, 0.031198514625430107, 0.010810589417815208, 0.03963537514209747, -0.011383643373847008, 0.03309079632163048, -0.02532171830534935, -0.01137571595609188, -0.09557056427001953, 0.0027484926395118237, -0.00781468115746975, -0.01575613208115101, -0.050007414072752, 0.03838508576154709, -0.030943669378757477, 0.039950888603925705, -0.06162724643945694, -0.02541983686387539, 0.07164058089256287, 0.0102121252566576, 0.018548395484685898, -0.000052295905334176496, -0.05790238082408905, 0.04381081089377403, 0.02971477061510086, -0.03300568833947182, -0.027887731790542603, 0.01478892844170332, 0.05567727982997894, -0.0017502580303698778, 0.03744938597083092, 0.0036894718650728464, 0.017367055639624596, 0.06199013814330101, 0.026254525408148766, 0.04282449558377266, 0.0441407673060894, -0.023967381566762924, 0.060835521668195724, 0.034645382314920425, -0.017207259312272072, -0.013638518750667572, 0.04131614789366722, 0.0016649882309138775, -0.048318520188331604, 0.02742314524948597, -0.01353930588811636, 0.006090741604566574, -0.04968956112861633, 0.062108688056468964, -0.007788951508700848, -0.011408792808651924, -0.06615249812602997, 0.021109530702233315, -0.042499180883169174, -0.02099461667239666, -0.04522452503442764, -0.0028365659527480602, -0.05097780004143715, 0.06834110617637634, 0.0021005228627473116, -0.004752454347908497, 0.07106940448284149, 0.0030830528121441603, -0.008230401203036308, 0.011029848828911781, 0.0672854408621788, 0.07280740141868591, 0.030015720054507256, 0.010384145192801952, 0.055043838918209076, -0.013810960575938225, -0.04374663531780243, 0.010345817543566227, -0.007364470046013594, -0.01583981327712536, -0.05843541398644447, 0.0440959557890892, 0.06714795529842377, -0.01197249349206686, 0.08399971574544907, -0.022844817489385605, 0.00440595718100667, -0.025743402540683746, 0.009042576886713505, 0.02571684867143631, 0.046881988644599915, 0.027942651882767677, 0.01906437613070011, -0.009793192148208618, -0.03175867348909378, 0.05138973891735077, -0.0280632134526968, 0.031861744821071625, 0.041009243577718735, 0.00929995346814394, 0.00023143779253587127, 0.009936303831636906, 0.03942171111702919, 0.0886768326163292, -0.03485310450196266, -0.0395016111433506, -0.016209326684474945, 0.07120834290981293, 0.028199277818202972, 0.007278239820152521, -0.0008193304529413581, -0.030671849846839905, -0.008611934259533882, -0.05226214602589607, -0.012477485463023186, 0.007912409491837025, 0.0015383956488221884, 0.056040603667497635, -0.02743658237159252, 0.02069288119673729, 0.02416190877556801, -0.01460952777415514, -0.07419970631599426, -0.05214017257094383, -0.04267143830657005, -0.055237237364053726, -0.044767238199710846, 0.015376114286482334, 0.0031376557890325785, -0.02383655682206154, -0.04935349151492119, -0.03681501746177673, -0.0003050618397537619, -0.05143992602825165, 0.00860866904258728, -0.049117106944322586, -0.025396456941962242, 0.02264632284641266, 0.023309800773859024, -0.06325697153806686, 0.013285385444760323, 0.07817640155553818, -0.0015840297564864159, -0.02721276506781578, -0.018363455310463905, 0.024256538599729538, 0.04468265920877457, 0.017889047041535378, 0.042651306837797165, -0.094362773001194, 0.03202580660581589, 0.042868152260780334, 0.013416100293397903, -0.07024124264717102, 0.012404236011207104, 0.027709564194083214, -0.03474285826086998, 0.055215075612068176, -0.013223616406321526, -0.0015066636260598898, -0.02114691399037838, -0.012886499054729939, 0.003999518696218729, 0.02431405708193779, 0.07081400603055954, -0.023061266168951988, 0.08523011952638626, 0.03696947917342186, 0.003881175769492984, -0.013874002732336521, -0.009904117323458195, 0.0016565104015171528, 0.019669491797685623, -0.06189548969268799, 0.02699284441769123, -0.0385717935860157, -0.07739526033401489, -0.0003281672252342105, 0.011780298314988613, -0.040011074393987656, -0.05495215579867363, 0.0038916906341910362, -0.0138201043009758, -0.03201381117105484, 0.04605160653591156, -0.038024209439754486, -0.038623787462711334, -0.027540015056729317, -0.014746176078915596, -0.007524383720010519, 0.035503681749105453, 0.03066157177090645, 0.01753954030573368, 0.04545779898762703, -0.03609786182641983, -0.007177408784627914, -0.02385619655251503, 0.028173208236694336, 0.04799904674291611, 0.007944386452436447, 0.0216531865298748 ]
[ -0.05676058307290077, 0.010302579030394554, 0.007664290722459555, 0.024277731776237488, 0.029541904106736183, -0.06827780604362488, -0.09845754504203796, -0.0019086133688688278, -0.05603858083486557, -0.030537689104676247, 0.01207762211561203, -0.027865281328558922, 0.002705621998757124, -0.059033531695604324, 0.0856749415397644, 0.03720713406801224, -0.0134239187464118, -0.02273646742105484, 0.014743423089385033, 0.0017144270241260529, -0.0031876415014266968, 0.010129478760063648, 0.0022489249240607023, -0.047810886055231094, -0.04177441820502281, 0.04598730802536011, 0.013260471634566784, -0.039958011358976364, 0.013097619637846947, -0.19026552140712738, 0.008845697157084942, 0.010425390675663948, -0.011344325728714466, -0.03056870400905609, 0.02448303997516632, 0.06457453966140747, 0.01640443317592144, 0.015872066840529442, -0.022570133209228516, 0.0339408703148365, 0.012702369131147861, 0.00806587003171444, -0.0916973426938057, -0.02262362651526928, 0.08505082130432129, 0.001129682525061071, -0.027963168919086456, -0.016087118536233902, 0.0325678214430809, 0.003879397874698043, 0.0005077359965071082, 0.02184896543622017, 0.020025592297315598, -0.009432182647287846, -0.03711874037981033, 0.058739956468343735, 0.04327550157904625, 0.09626226872205734, 0.05257013440132141, -0.04363970831036568, -0.014264807105064392, 0.0192353967577219, -0.15405970811843872, 0.08949640393257141, 0.017934992909431458, 0.021475527435541153, -0.019369393587112427, -0.015759671106934547, -0.033413562923669815, 0.08845064043998718, -0.009299535304307938, -0.03825616464018822, 0.013460708782076836, 0.04734620079398155, 0.01745804212987423, -0.023425107821822166, 0.03746334835886955, -0.010217676870524883, 0.057952772825956345, -0.05310923978686333, -0.0020024541299790144, 0.010192479938268661, -0.037760261446237564, -0.005847098771482706, -0.005828742403537035, 0.013929629698395729, -0.014105874113738537, 0.0678311213850975, -0.02449984662234783, 0.007229928858578205, -0.015799017623066902, -0.090232253074646, 0.057855527848005295, 0.028424439951777458, -0.09067537635564804, 0.0031073405407369137, 0.04426536709070206, 0.003186335088685155, -0.031148282811045647, 0.4437752664089203, -0.004031062591820955, -0.01942373439669609, -0.006732953246682882, 0.018530113622546196, 0.026400698348879814, 0.012531342916190624, 0.013799038715660572, -0.02961798384785652, -0.01870989426970482, -0.021227819845080376, 0.02986493892967701, -0.0061670090071856976, 0.06273197382688522, -0.047174762934446335, 0.05386313423514366, -0.05649900436401367, -0.020522817969322205, 0.004322434309870005, -0.012307957746088505, 0.038049545139074326, -0.05198783427476883, -0.01014934666454792, 0.020798733457922935, 0.022324780002236366, 0.029239080846309662, -0.007366731762886047, -0.002555354731157422, 0.046802304685115814, 0.023423202335834503, 0.039930783212184906, 0.0230291448533535, -0.021916570141911507, -0.07424642890691757, 0.004038799088448286, -0.009891150519251823, 0.036187756806612015, 0.00959260668605566, -0.07649840414524078, 0.051148924976587296, 0.02588299661874771, 0.005173888523131609, -0.03742406889796257, 0.013474446721374989, 0.03519296273589134, -0.0009330383036285639, 0.024620067328214645, -0.007396123372018337, 0.03822872415184975, -0.060392461717128754, -0.0011470442404970527, 0.0026938444934785366, 0.027351023629307747, -0.03424900770187378, 0.01444743201136589, -0.0010074665769934654, 0.014710476621985435, 0.06744235008955002, -0.03969021141529083, -0.04074329137802124, 0.044255368411540985, 0.03824028745293617, -0.0068683139979839325, 0.013004166074097157, 0.03345488756895065, -0.009901607409119606, -0.06418552994728088, -0.04916062578558922, -0.0019241112750023603, -0.026185300201177597, -0.041039250791072845, 0.005890211556106806, 0.024050138890743256, -0.041337255388498306, 0.002845092210918665, 0.03526534512639046, -0.04024580493569374, -0.024449730291962624, -0.017109699547290802, 0.04826296120882034, 0.03764159604907036, 0.007380181923508644, 0.017975857481360435, -0.01034508179873228, 0.03975607827305794, 0.01049515139311552, -0.1150980144739151, -0.06413000077009201, -0.03149634227156639, -0.021258369088172913, -0.04169005900621414, 0.011150996200740337, 0.022030213847756386, -0.003014968242496252, 0.027301745489239693, -0.014227043837308884, -0.016180993989109993, -0.0015421976568177342, 0.005228753201663494, 0.0030819992534816265, -0.009289092384278774, 0.03650904819369316, 0.06026621535420418, -0.0021047138143330812, 0.01664629392325878, -0.05241209268569946, 0.005364373326301575, 0.01229973416775465, -0.059273991733789444, 0.03435326740145683, -0.03521635755896568, -0.008215310983359814, 0.010916897095739841, 0.0465962179005146, 0.028454577550292015, -0.026777232065796852, -0.012014948762953281, 0.014817423187196255, 0.011903599835932255, 0.03904397413134575, 0.0003163195215165615, -0.015940897166728973, -0.07359395921230316, -0.08207926899194717, -0.3403765857219696, -0.0015540147433057427, -0.006352830212563276, -0.019960608333349228, 0.018392013385891914, -0.04364638030529022, -0.010535608045756817, -0.0355597659945488, 0.012257775291800499, 0.013699316419661045, 0.06440310180187225, -0.018495215103030205, 0.04370607063174248, -0.05980058014392853, 0.0022236895747482777, 0.030259674414992332, -0.0010275784879922867, -0.03730233758687973, -0.007944639772176743, 0.01954563520848751, 0.0035258978605270386, -0.03640037402510643, -0.07064680755138397, -0.07912229746580124, -0.016491638496518135, -0.0011252086842432618, 0.11302784085273743, 0.04479675367474556, 0.07227113097906113, -0.019436776638031006, 0.01346035860478878, 0.03365296125411987, -0.029861634597182274, -0.1292082965373993, 0.016404585912823677, -0.0003032917738892138, 0.04628850892186165, 0.023408448323607445, 0.033663224428892136, 0.020518409088253975, -0.03165412321686745, 0.047978222370147705, -0.08480211347341537, -0.05228660628199577, -0.016442032530903816, 0.01640007272362709, -0.03525319695472717, 0.0073879072442650795, 0.038633283227682114, 0.06752582639455795, -0.05340896174311638, 0.06657804548740387, -0.020152417942881584, 0.024979816749691963, -0.013169504702091217, -0.026034414768218994, -0.08390448242425919, 0.0005230134120211005, 0.04445943236351013, -0.03267055004835129, 0.013865537010133266, 0.02486754208803177, 0.06676322966814041, -0.056766726076602936, -0.013028730638325214, -0.016532743349671364, 0.018253451213240623, -0.03684242442250252, 0.07441020756959915, -0.0024987678043544292, 0.007740066386759281, 0.05779705196619034, -0.014796365983784199, 0.02744145691394806, 0.011256102472543716, 0.04795944318175316, -0.022340690717101097, -0.003982463851571083, 0.03126402944326401, -0.03952700272202492, 0.012342358939349651, 0.018530312925577164, 0.07310791313648224, -0.0007755164988338947, -0.015980008989572525, 0.06034671887755394, -0.015513690188527107, -0.01817168854176998, 0.02273578941822052, -0.0037555452436208725, -0.03226971998810768, 0.00878829788416624, -0.005220100749284029, -0.014215836301445961, 0.05918893218040466, 0.02931368350982666, -0.23730942606925964, -0.0013215062208473682, 0.11367828398942947, 0.02811218984425068, 0.00913946982473135, -0.030480343848466873, 0.06727729737758636, -0.05538104847073555, -0.031073037534952164, 0.006410503294318914, 0.012948884628713131, 0.051539842039346695, -0.03489118069410324, -0.03339910879731178, -0.0046130577102303505, -0.0207061804831028, 0.07999476045370102, -0.033339835703372955, -0.0658927857875824, -0.020072875544428825, -0.014458432793617249, -0.05227641761302948, 0.14497989416122437, 0.01989036239683628, -0.04329283908009529, -0.01074982713907957, 0.011958395130932331, 0.023512981832027435, 0.03685412183403969, -0.003315889509394765, -0.008406879380345345, 0.03511916846036911, 0.014529976062476635, -0.0053595588542521, 0.02388305962085724, 0.0189694631844759, -0.022626115009188652, 0.010700036771595478, 0.04057234153151512, -0.012605312280356884, -0.013058499433100224, 0.08818554133176804, -0.061248719692230225, 0.008007275871932507, 0.03544435277581215, -0.011150575242936611, 0.014586696401238441, 0.03139583021402359, -0.05115121975541115, 0.028035875409841537, -0.02849164791405201, 0.009910011664032936, 0.009625998325645924, -0.01814921759068966, 0.015992576256394386, 0.02163383550941944, 0.001403985545039177, -0.042263906449079514, 0.010779394768178463, 0.00756527716293931, 0.0001998226362047717, -0.05911530554294586, 0.11491715162992477, 0.023867761716246605, -0.009162613190710545 ]
[ 0.012147526256740093, -0.013467521406710148, -0.0072913942858576775, -0.009341712109744549, 0.005800842307507992, 0.009921777993440628, 0.011246263049542904, -0.022633666172623634, -0.042455438524484634, -0.024503497406840324, -0.010980657301843166, -0.004176558926701546, 0.02080899477005005, -0.03264426812529564, 0.00211504427716136, -0.010194586589932442, 0.007968493737280369, -0.06041191518306732, 0.013388385064899921, 0.011177966371178627, -0.018947482109069824, 0.024164581671357155, 0.005457525607198477, 0.04149450734257698, 0.02083403803408146, 0.031051402911543846, -0.059856921434402466, 0.00841471180319786, 0.027469316497445107, -0.10964088141918182, -0.026319032534956932, -0.0011684366036206484, 0.01283075287938118, -0.017075149342417717, -0.00009543640771880746, 0.03550305217504501, -0.009217682294547558, 0.007782809901982546, -0.027761444449424744, -0.0025071564596146345, 0.00021482224110513926, -0.00018938937864731997, -0.002016539452597499, 0.01810339279472828, 0.010264348238706589, -0.04290001466870308, -0.0035050169099122286, -0.015003025531768799, -0.0071163661777973175, 0.0013171836035326123, -0.014725455082952976, -0.0048804571852087975, 0.01477974932640791, -0.004313537385314703, -0.011366709135472775, 0.048645325005054474, 0.027956122532486916, 0.010607052594423294, 0.018251929432153702, -0.0284445621073246, -0.014895997010171413, -0.014114698395133018, -0.06833769381046295, -0.015636932104825974, -0.013538552448153496, -0.008386247791349888, -0.018231887370347977, 0.019940009340643883, 0.010710562579333782, 0.008796034380793571, 0.021110501140356064, 0.011012696661055088, -0.030767424032092094, -0.006661691702902317, -0.02066999115049839, 0.029447687789797783, 0.021157754585146904, -0.04853326082229614, -0.018024684861302376, 0.004774788394570351, -0.03759553283452988, 0.05434658005833626, 0.062269508838653564, -0.029681891202926636, 0.0208056028932333, -0.005780477076768875, -0.013469025492668152, -0.003590118372812867, 0.020168829709291458, -0.003854412119835615, 0.009182346984744072, -0.007955411449074745, -0.0034631628077477217, 0.022968212142586708, -0.07180963456630707, -0.016137512400746346, 0.02381092868745327, -0.031722649931907654, 0.008472607471048832, 0.8294609189033508, 0.006754364352673292, 0.024858735501766205, 0.028333676978945732, 0.015580364502966404, -0.002567022806033492, 0.01619657687842846, -0.003397751832380891, -0.044424593448638916, -0.015250125899910927, -0.019016370177268982, 0.051323626190423965, 0.004182671662420034, 0.020957883447408676, 0.01733540929853916, 0.03574059531092644, -0.019775748252868652, -0.020356768742203712, -0.008025911636650562, 0.009659234434366226, 0.01993633061647415, -0.007301796693354845, -0.04133550450205803, -0.00523314718157053, 0.012449788860976696, 0.0003904082113876939, -0.16794955730438232, -0.03716471046209335, -6.299344186994079e-33, 0.027575377374887466, -0.015765024349093437, 0.031693506985902786, 0.011317466385662556, 0.02162952534854412, 0.01641598902642727, -0.038576144725084305, -0.028352104127407074, -0.008142991922795773, -0.046280987560749054, -0.0033537219278514385, -0.006429707631468773, -0.040661126375198364, 0.015616895630955696, 0.02000449225306511, -0.003649970516562462, 0.006460893899202347, 0.03595712408423424, -0.002229731297120452, -0.010978532023727894, 0.013997292146086693, 0.06069338321685791, 0.0070873131044209, 0.010033831931650639, -0.03762241452932358, 0.038658734411001205, 0.01421381440013647, -0.02158987522125244, -0.012782464735209942, -0.04230852425098419, -0.027647918090224266, 0.002743407618254423, 0.05071578919887543, -0.002532753860577941, -0.006457562558352947, -0.04113119840621948, -0.07681114971637726, 0.004672544542700052, 0.009962640702724457, 0.013041537255048752, -0.020053107291460037, 0.01650501787662506, -0.021899474784731865, -0.00691461656242609, -0.013106102123856544, 0.0284752044826746, -0.01411020290106535, 0.020986361429095268, -0.0014547922182828188, -0.0017372184665873647, 0.0422583743929863, 0.03662773221731186, -0.026726124808192253, 0.028019234538078308, 0.004339473322033882, 0.0019661416299641132, -0.01701497659087181, -0.02588372863829136, 0.049932822585105896, -0.0069003538228571415, 0.003017638111487031, 0.01460967119783163, 0.04087468609213829, 0.008551950566470623, 0.027498414739966393, -0.006730231456458569, -0.012805669568479061, -0.01462742779403925, 0.00793903972953558, 0.009125277400016785, -0.05110682547092438, -0.01369493454694748, 0.0072754304856061935, -0.017675897106528282, 0.06008628383278847, 0.025987768545746803, -0.012240296229720116, -0.05077662691473961, -0.003211546689271927, 0.05149184167385101, -0.025682590901851654, -0.024307722225785255, 0.008117630146443844, -0.042807526886463165, -0.02139618992805481, -0.05593336746096611, 0.028009839355945587, -0.02649204432964325, -0.01930539309978485, 0.029525164514780045, 0.010500852018594742, 0.02677459828555584, 0.008135254494845867, -0.021251685917377472, -0.035728681832551956, 6.280819865393058e-33, 0.02852131798863411, 0.006463163997977972, 0.012087149545550346, 0.0072324941866099834, -0.012181799858808517, -0.005721582565456629, 0.014848745428025723, -0.028851700946688652, 0.00983081292361021, 0.0368201918900013, 0.003961338195949793, 0.05926322191953659, -0.021823124960064888, 0.02994466759264469, 0.04678477346897125, 0.018098600208759308, -0.005119628272950649, 0.03929799795150757, 0.008843953721225262, 0.036962684243917465, -0.01178719848394394, 0.0018836844246834517, -0.011410880833864212, -0.01727031171321869, 0.005480787716805935, 0.05019466206431389, -0.01418623048812151, -0.019683217629790306, 0.007036521565169096, -0.004630747251212597, -0.0007831930997781456, -0.02019689232110977, 0.002635517157614231, -0.005413403734564781, -0.013434521853923798, 0.032277658581733704, 0.01404006127268076, -0.021661153063178062, -0.00955020822584629, 0.047748222947120667, 0.048509132117033005, 0.014891051687300205, -0.016671963036060333, -0.00810748990625143, -0.020495591685175896, -0.01740078628063202, -0.001938473666086793, -0.026435792446136475, 0.0035565048456192017, 0.009869829751551151, 0.013429705053567886, 0.004836317617446184, 0.07035414129495621, 0.03251871466636658, 0.045174986124038696, -0.058498576283454895, -0.004933195188641548, 0.04834425821900368, -0.059712041169404984, 0.009888029657304287, -0.053772833198308945, 0.004785011522471905, -0.00540261622518301, -0.03396200016140938, -0.023867197334766388, -0.008283501490950584, -0.015567703172564507, 0.026615358889102936, -0.028103353455662727, 0.0004265715251676738, 0.013890888541936874, 0.023922940716147423, 0.031185923144221306, 0.022839566692709923, 0.02078205533325672, 0.009337704628705978, -0.019482508301734924, -0.014846221543848515, -0.021689005196094513, -0.0027361446991562843, -0.004846641793847084, -0.002103024162352085, 0.029852697625756264, -0.009622631594538689, 0.0004166859434917569, -0.0020471420139074326, -0.013615250587463379, -0.01793292537331581, 0.02566109411418438, -0.0007447617826983333, 0.023758940398693085, -0.034432269632816315, 0.03572454676032066, 0.005499547813087702, 0.033927761018276215, -1.222981627080344e-8, -0.02978188544511795, -0.029893651604652405, -0.0348331481218338, -0.01998988538980484, 0.016198186203837395, 0.007242939434945583, 0.00843340065330267, -0.005139859393239021, -0.015631407499313354, 0.018198635429143906, 0.07643388956785202, -0.017705697566270828, 0.05027605593204498, -0.04488464072346687, 0.005904728546738625, -0.018361516296863556, 0.013001108542084694, -0.010066633112728596, 0.011796729639172554, -0.04862469434738159, -0.001939771231263876, 0.07893610745668411, 0.0014618905261158943, -0.021544264629483223, -0.04750346764922142, -0.026655985042452812, 0.020944615826010704, -0.09531193226575851, -0.04277467355132103, 0.009937738999724388, 0.00775059312582016, -0.008306937292218208, -0.04776206985116005, 0.006374998018145561, 0.01236964762210846, -0.044890668243169785, 0.026686765253543854, 0.01562798023223877, 0.0420612171292305, -0.007062913849949837, -0.04707680270075798, -0.000956139643676579, -0.017698517069220543, -0.02826235443353653, -0.01505112461745739, -0.02832411229610443, 0.005785682238638401, 0.00864414032548666, 0.009893815964460373, 0.016316447407007217, 0.03044828586280346, 0.047838855534791946, 0.00482376990839839, 0.028202878311276436, 0.015668679028749466, -0.018948107957839966, -0.01897800900042057, 0.05116714909672737, -0.06496547162532806, -0.020585723221302032, -0.014764929190278053, 0.007846085354685783, 0.023438427597284317, -0.03369777277112007 ]
poetry-precompiled-binaries-not-available
https://markhneedham.com/blog/2023/11/02/poetry-precompiled-binaries-not-available
false
2023-11-07 00:44:37
ClickHouse - DB::Exception:: there is no writeable access storage in user directories (ACCESS_STORAGE_FOR_INSERTION_NOT_FOUND)
[ "clickhouse", "til" ]
[ "TIL" ]
:icons: font I've been working with ClickHouse's access control/account management as part of a video that I created showing https://www.youtube.com/watch?v=Rhe-kUyrFUE[how to login to a ClickHouse server with an SSH key^], but getting it all setup locally was a bit fiddly. In this blog post, we'll go through the mistakes I made and how to fix them. I initially tried starting the ClickHouse server: [source, bash] ---- ./clickhouse server ---- Connecting to it with a client: [source, bash] ---- ./clickhouse client ---- And then tried to create a user: [source, sql] ---- CREATE USER mark IDENTIFIED WITH sha256_password BY 'my_password'; ---- This resulted in the following error: .Output [source, text] ---- Received exception from server (version 23.11.1): Code: 514. DB::Exception: Received from localhost:9000. DB::Exception: Could not insert user `mark` because there is no writeable access storage in user directories. (ACCESS_STORAGE_FOR_INSERTION_NOT_FOUND) ---- It turns out I hadn't followed https://clickhouse.com/docs/en/operations/access-rights[these instructions from the documentation^]: [blockquote] ____ Setup a directory for configurations storage. ClickHouse stores access entity configurations in the folder set in the `access_control_path` server configuration parameter. Enable SQL-driven access control and account management for at least one user account. By default, SQL-driven access control and account management is disabled for all users. You need to configure at least one user in the users.xml configuration file and set the values of the `access_management`, `named_collection_control`, `show_named_collections`, and `show_named_collections_secrets` settings to 1. ____ I wasn't sure where I should be setting those properties, but https://www.linkedin.com/in/richraposa[Rich Raposa^] came to the rescue. It turns out that we need to put those values in config files under the `config.d` directory: .config.d/folders.xml [source, xml] ---- include::content/2023/11/07/server/config.d/folders.xml[] ---- .config.d/users.xml [source, xml] ---- include::content/2023/11/07/server/config.d/users.xml[] ---- If we restart the server and then go back to the client, we can try to create the user again: [source, sql] ---- CREATE USER mark IDENTIFIED WITH sha256_password BY 'my_password'; ---- .Output [source, text] ---- Query id: bdccd4a3-91f9-47c1-846c-29229fe95abe Ok. ---- And we can see the user if we call `SHOW USERS`: [source, sql] ---- SHOW USERS; ---- .Output [source, text] ---- Query id: 668a4379-fd56-4dec-ab96-2e914977a60a ┌─name────┐ │ default │ │ mark │ └─────────┘ ---- If we then look under the `my_access_folder` directory, we'll see the following files: .my_access_folder/users.list [source, xml] ---- include::content/2023/11/07/server/my_access_folder/users.list[] ---- .my_access_folder/10471a13-2fb4-1bec-7a81-6afc7296df98.sql [source, xml] ---- include::content/2023/11/07/server/my_access_folder/10471a13-2fb4-1bec-7a81-6afc7296df98.sql[] ---- If you run that yourself, you'll have a different UUID used for the user, but the structure should be similar.
In this post, we'll learn how to convert a date or datetime to epoch in milliseconds in ClickHouse
uploads/2023/11/clickhouse-writeable-access-storage.png
[ 0.009380186907947063, 0.02921079471707344, -0.01090476755052805, 0.03995038568973541, 0.10229286551475525, 0.0030798062216490507, 0.03325747326016426, 0.020916258916258812, -0.026670582592487335, -0.018472053110599518, -0.006629643961787224, -0.02495197020471096, -0.0627281442284584, 0.016451621428132057, -0.010356677696108818, 0.05991782620549202, 0.07838240265846252, 0.008437645621597767, 0.0201425701379776, -0.018734673038125038, -0.0014802003279328346, 0.05616236478090286, 0.010769904591143131, 0.04671956226229668, 0.04692993313074112, 0.05429896339774132, -0.006434715818613768, -0.03728506341576576, -0.05187581107020378, -0.02275734394788742, 0.033399004489183426, -0.022946763783693314, 0.009082477539777756, -0.018302904441952705, 0.007590829860419035, -0.016794687137007713, 0.011119276285171509, 0.002634636126458645, 0.0048164185136556625, 0.02253183349967003, -0.05576242133975029, 0.013404641300439835, -0.009661272168159485, 0.02417866699397564, -0.0033947976771742105, -0.0035819546319544315, -0.040422406047582626, -0.002912031952291727, -0.008849101141095161, -0.003432745113968849, -0.07493297755718231, 0.06431813538074493, -0.02568448893725872, -0.03521205484867096, 0.025440959259867668, 0.020680466666817665, 0.017694054171442986, -0.04903043806552887, 0.012232518754899502, -0.05335043743252754, -0.002543715527281165, 0.024084338918328285, 0.013596023432910442, 0.02802228555083275, -0.0016863460186868906, -0.0040679071098566055, 0.005546979606151581, 0.03753593564033508, -0.04816948249936104, 0.0009456527186557651, 0.010360483080148697, -0.011732409708201885, -0.02875586226582527, -0.016402771696448326, -0.00630185566842556, -0.04993903264403343, -0.027102861553430557, 0.028162650763988495, 0.05095071718096733, 0.04982161521911621, -0.020858043804764748, -0.01155028399080038, 0.013027314096689224, 0.00901721604168415, 0.01949690841138363, -0.05827409401535988, -0.04023391008377075, -0.015249882824718952, -0.039799679070711136, 0.04441819712519646, -0.005248613189905882, -0.05852029472589493, 0.010178066790103912, 0.04740693047642708, -0.023880373686552048, 0.008790295571088791, 0.01516244001686573, -0.009748630225658417, 0.036516446620225906, 0.01014080923050642, -0.03430463746190071, -0.00625592190772295, 0.02612062729895115, 0.02316635474562645, -0.07775276154279709, 0.05784519761800766, -0.048628125339746475, 0.006307558622211218, 0.0037380242720246315, 0.01627131551504135, -0.015858309343457222, 0.0186274666339159, -0.020815979689359665, -0.017367787659168243, -0.05096163973212242, 0.07652788609266281, 0.023618239909410477, -0.0059648798778653145, -0.006218055263161659, 0.018620042130351067, 0.05210838466882706, 0.015848519280552864, -0.033631063997745514, 0.06501242518424988, 0.017177481204271317, 0.017664974555373192, -0.02065560407936573, 0.02724882960319519, -0.005871930625289679, -0.060308098793029785, -0.01911204867064953, 0.047104787081480026, 0.02607618272304535, 0.026112468913197517, -0.0054583000019192696, -0.014353066682815552, -0.0005862307152710855, 0.011272133328020573, 0.048938922584056854, 0.0038518323563039303, 0.016494853422045708, -0.04415608569979668, -0.008416608907282352, 0.005504073109477758, 0.047339919954538345, 0.03074641525745392, 0.03145302087068558, -0.03412507474422455, -0.03532880172133446, 0.038290902972221375, 0.03654852882027626, 0.018396399915218353, 0.06170884892344475, -0.014155665412545204, -0.002407484222203493, 0.10484848916530609, 0.05055704712867737, -0.012673985213041306, 0.005633864551782608, -0.0011144753079861403, 0.03488157317042351, 0.013268481008708477, -0.020662866532802582, 0.05136808007955551, 0.029536088928580284, -0.013357797637581825, -0.052008721977472305, 0.018640197813510895, -0.03642614930868149, 0.004894948564469814, -0.05246669799089432, -0.05943472683429718, 0.05714918300509453, -0.04927563667297363, 0.0014270554529502988, 0.05214254558086395, 0.05919679254293442, 0.04284067079424858, 0.04775910824537277, 0.03701329231262207, -0.08014392852783203, 0.0358322449028492, -0.009275142103433609, -0.019519830122590065, 0.045052848756313324, 0.013661989010870457, 0.07823894172906876, 0.023348910734057426, 0.00790328811854124, 0.04551898315548897, -0.059342484921216965, -0.08369164168834686, -0.012693186290562153, -0.002456765156239271, 0.0689120814204216, -0.025305554270744324, 0.01225034799426794, 0.07035526633262634, 0.016826771199703217, 0.04742702096700668, 0.0030775186605751514, 0.002493696054443717, 0.0246772188693285, -0.0676850900053978, -0.07689031213521957, 0.03195234015583992, 0.04139358550310135, -0.01641341671347618, -0.016903430223464966, -0.007804535329341888, -0.017102787271142006, 0.00945877842605114, 0.0282432921230793, 0.008648444898426533, 0.055202383548021317, -0.0022492227144539356, 0.01126921083778143, 0.0018711043521761894, 0.03978155925869942, -0.04636590927839279, 0.010124066844582558, 0.005160929635167122, 0.010718482546508312, 0.01642078161239624, 0.0024843772407621145, 0.11638367176055908, 0.035619139671325684, -0.02116350084543228, -0.05472337082028389, 0.026805883273482323, 0.016631262376904488, -0.0721970945596695, 0.0412006750702858, -0.011539245955646038, 0.0014528022147715092, 0.025030335411429405, -0.027977846562862396, -0.041187066584825516, -0.0017869718139991164, -0.021586215123534203, 0.019137199968099594, 0.06099840998649597, 0.00220596045255661, 0.03420132026076317, 0.010042638517916203, -0.0384657047688961, -0.008527222089469433, -0.026819156482815742, -0.03726290911436081, 0.008536241948604584, 0.042998798191547394, -0.0219907034188509, 0.03792418912053108, -0.04343285411596298, 0.014881566166877747, -0.040100935846567154, -0.04136976972222328, 0.02344495803117752, -0.010973776690661907, 0.06789453327655792, -0.02507212944328785, 0.06286777555942535, -0.04589585214853287, -0.011640421114861965, 0.002740507246926427, -0.0398731529712677, -0.027744131162762642, -0.005895264446735382, 0.01789405383169651, 0.016269860789179802, 0.030646614730358124, -0.0018569761887192726, 0.011519046500325203, -0.022509237751364708, 0.05837772786617279, 0.01651444286108017, 0.045817095786333084, 0.00747504411265254, 0.00886189192533493, -0.03887961059808731, -0.018990622833371162, 0.0557195246219635, -0.043397851288318634, -0.03444147855043411, 0.021974923089146614, -0.07681305706501007, 0.025182388722896576, -0.10790463536977768, -0.06779629737138748, -0.008105354383587837, 0.022702425718307495, 0.016324063763022423, 0.01817980594933033, 0.01430520974099636, 0.05227653309702873, 0.019260840490460396, 0.0004625620786100626, 0.019254622980952263, -0.006386923603713512, 0.030613137409090996, 0.024434983730316162, -0.004709585569798946, 0.03498648852109909, -0.011368686333298683, 0.02620879001915455, -0.07516945898532867, 0.005585321690887213, -0.048741064965724945, -0.27399736642837524, 0.03858577460050583, 0.006260829046368599, -0.046838272362947464, 0.014750410802662373, 0.004995326977223158, 0.023826317861676216, -0.025370405986905098, -0.015489151701331139, 0.025087103247642517, -0.03475271910429001, -0.02426217496395111, 0.0022522187791764736, 0.01797996647655964, 0.009061291813850403, 0.02427711710333824, 0.024470126256346703, -0.04037993401288986, -0.0007424834766425192, 0.02539580687880516, -0.027957070618867874, -0.03984268382191658, 0.012709896080195904, 0.02985242009162903, 0.022959815338253975, 0.06799118965864182, -0.042120493948459625, 0.02421237714588642, -0.03565389662981033, -0.019613279029726982, 0.02033643051981926, 0.0061673354357481, -0.02073073945939541, -0.005629897117614746, -0.03131432086229324, -0.01623149961233139, 0.05614767596125603, -0.011240450665354729, 0.009434745647013187, -0.01943940855562687, -0.029899239540100098, -0.04902030900120735, 0.0011675707064568996, 0.02448173612356186, 0.07951580733060837, -0.02281372621655464, -0.056147392839193344, 0.0016397220315411687, -0.05847083777189255, 0.07206342369318008, -0.043930377811193466, -0.02674083784222603, -0.029648199677467346, 0.03268378973007202, -0.0061702728271484375, -0.010639461688697338, -0.0030979549046605825, 0.021188292652368546, -0.028588559478521347, -0.022304778918623924, -0.0024649393744766712, -0.031896498054265976, -0.00494643347337842, -0.04077720642089844, 0.0063801356591284275, -0.07734446227550507, -0.04395877569913864, -0.037403807044029236, 0.06839569658041, 0.046662721782922745, -0.042830005288124084, 0.03214477747678757, -0.018661988899111748, -0.1131981760263443, -0.01335118431597948, -0.019697345793247223, -0.010972063057124615, 0.00714419549331069, -0.022175248712301254, 0.029049374163150787, -0.018915900960564613, -0.01179040502756834, 0.00946077425032854, 0.02161923609673977, -0.011829812079668045, -0.020725758746266365, 0.04446081444621086, 0.01889020949602127, -0.02150767855346203, -0.003556536976248026, 0.06266679614782333, -0.013067703694105148, -0.02217298001050949, -0.01738794706761837, -0.03576827421784401, 0.007983124814927578, 0.008074010722339153, 0.00117076828610152, 0.018233591690659523, 0.0034801980946213007, 0.051246680319309235, -0.026444492861628532, 0.017643915489315987, -0.07192052900791168, -0.0028574427124112844, 0.0039024141151458025, -0.04074285179376602, 0.010189629159867764, 0.01844676584005356, 0.03321665897965431, -0.0381043441593647, -0.04077412188053131, 0.0036308313719928265, -0.07665885984897614, -0.003802553052082658, -0.011089407838881016, 0.010286533273756504, 0.012269030325114727, 0.028499724343419075, -0.005290070082992315, -0.07203976809978485, 0.03360225260257721, 0.048838768154382706, -0.018363218754529953, -0.04885479807853699, -0.012384489178657532, -0.029070064425468445, -0.006988781038671732, 0.03590624779462814, 0.007226607296615839, -0.002058277605101466, 0.013664829544723034, 0.037910446524620056, -0.07443161308765411, 0.0365653820335865, -0.031291332095861435, -0.019650017842650414, -0.019609279930591583, -0.019534649327397346, -0.004755234345793724, -0.016332585364580154, -0.007818995043635368, 0.01694653183221817, 0.015041724778711796, 0.07710406184196472, -0.0198067519813776, 0.025611089542508125, 0.016907859593629837, 0.018643952906131744, 0.031073758378624916, -0.0033179689198732376, -0.05194549262523651, 0.03355488181114197, -0.053135503083467484, -0.021640265360474586, -0.04010918736457825, 0.002918774029240012, -0.03444655239582062, -0.025700194761157036, -0.03454677388072014, -0.006267225835472345, -0.07588973641395569, 0.0033530518412590027, 0.016481274738907814, 0.02011130005121231, 0.05190484598278999, 0.00863785482943058, 0.026335561648011208, -0.013304680585861206, 0.010078739374876022, 0.018417777493596077, 0.03882981836795807, -0.02550724521279335, 0.004384837578982115, 0.010349288582801819, -0.05033279210329056, -0.002674149814993143, 0.023880528286099434, 0.023269550874829292, 0.013232868164777756, 0.0003633658343460411, -0.019845519214868546, 0.027456963434815407, 0.0009300369420088828, 0.03151745721697807, -0.0013184468261897564, -0.06234417483210564, -0.0028869982343167067, -0.027172066271305084, -0.033829282969236374, -0.013944962061941624, -0.0254310742020607, -0.025582365691661835, -0.0011903910199180245, -0.009882609359920025, -0.07435215264558792, 0.01752433553338051, 0.02254156768321991, 0.022713394835591316, 0.03304426372051239, -0.004302380606532097, -0.010133020579814911, -0.020229186862707138, 0.06506272405385971, 0.06333627551794052, -0.06156441569328308, 0.010445787571370602, -0.010900027118623257, -0.013162815012037754, 0.01685885712504387, 0.02130972221493721, -0.04618218541145325, -0.010028064250946045, -0.022053562104701996, 0.054511696100234985, -0.02865501306951046, -0.02826639637351036, -0.03515424206852913, 0.004433265421539545, 0.007353366818279028, 0.007710464298725128, 0.004520959686487913, 0.021055152639746666, -0.008016370236873627, -0.040129899978637695, -0.0005430355668067932, -0.022071857005357742, -0.010457955300807953, 0.013014258816838264, -0.0022155970800668, -0.0008693940471857786, -0.028471864759922028, 0.0594215951859951, 0.017592232674360275, -0.023406926542520523, -0.009773303754627705, -0.051924094557762146, -0.0038325930945575237, 0.0063171968795359135, 0.03748277947306633, 0.018337968736886978, 0.0154586685821414, -0.02248278260231018, -0.01807083748281002, -0.010342752560973167, 0.009479067288339138, -0.02117561362683773, -0.006548961624503136, 0.060563165694475174, 0.027047043666243553, 0.01908915303647518, -0.008761881850659847, 0.004546998534351587, -0.028977176174521446, 0.05323166400194168, -0.059276286512613297, -0.01752532459795475, 0.010035421699285507, -0.05769077688455582, 0.040879715234041214, 0.012975648045539856, 0.008616048842668533, -0.03656409680843353, 0.04242774471640587, 0.031120195984840393, -0.013570258393883705, 0.02174789272248745, 0.003819083794951439, 0.030666407197713852, -0.03975959122180939, -0.03648117929697037, -0.0665760189294815, 0.007177789695560932, -0.028489651158452034, -0.038674451410770416, -0.0259194727987051, 0.009147916920483112, -0.040059223771095276, 0.02312283217906952, -0.06961346417665482, -0.03251601755619049, 0.050906457006931305, 0.00714732613414526, -0.013377704657614231, 0.017851892858743668, -0.03982480242848396, 0.04366559535264969, 0.04059190675616264, -0.039260778576135635, -0.02913125790655613, -0.014261878095567226, 0.04997988045215607, 0.02058672346174717, 0.04486510157585144, -0.03145260736346245, -0.03591877967119217, 0.07160308212041855, 0.016845939680933952, -0.0006173050496727228, 0.055231209844350815, -0.039828989654779434, 0.038111068308353424, -0.011026738211512566, 0.002044428139925003, 0.022182248532772064, 0.031321100890636444, -0.02352132834494114, -0.06180509552359581, -0.004780652467161417, -0.0002921275154221803, -0.0215070229023695, -0.08667276054620743, 0.04963206499814987, -0.00309359235689044, -0.010925721377134323, -0.054487332701683044, 0.02280116267502308, -0.037568509578704834, -0.05251311883330345, -0.05504576489329338, 0.0039365254342556, -0.043222393840551376, 0.0681672915816307, 0.005826042965054512, 0.03969423100352287, 0.06772255897521973, -0.011746115982532501, 0.008186954073607922, -0.00786750577390194, 0.08196253329515457, 0.1214674562215805, 0.03451647236943245, 0.007392597384750843, 0.0872809886932373, -0.010299664922058582, -0.03547981381416321, -0.012121620588004589, -0.05477002263069153, -0.013709351420402527, -0.06264734268188477, 0.0002922075509559363, 0.06544744223356247, -0.006106815300881863, 0.015460390597581863, -0.00882298406213522, -0.006661797873675823, -0.006201951298862696, 0.027506623417139053, 0.04050692915916443, 0.00035647605545818806, 0.03072328492999077, -0.014502291567623615, -0.024512775242328644, -0.016965700313448906, 0.02624087780714035, -0.003918485250324011, -0.03437797352671623, 0.03355163708329201, -0.020031502470374107, 0.009141162969172001, 0.021356869488954544, 0.013425366953015327, 0.06751558929681778, -0.039179857820272446, -0.0034979500342160463, -0.017514796927571297, 0.030997443944215775, 0.011037072166800499, 0.04272323101758957, 0.0015908742789179087, -0.005553864408284426, -0.005482344888150692, -0.013784149661660194, 0.0015038687270134687, -0.006461228709667921, -0.019227314740419388, 0.061925988644361496, -0.009886197745800018, -0.00672884238883853, 0.016017282381653786, 0.024145228788256645, -0.04236602783203125, -0.04195565730333328, -0.0623587891459465, -0.01714085415005684, -0.05009493604302406, -0.004810203332453966, 0.005363432690501213, -0.015297419391572475, -0.05067243427038193, -0.014742565341293812, -0.009197433479130268, -0.0008336007012985647, -0.017057551071047783, -0.024104228243231773, -0.04949728772044182, -0.009706695564091206, 0.037157587707042694, 0.03349519148468971, 0.03890751302242279, 0.0579301156103611, -0.01030924916267395, -0.021755140274763107, -0.04940597340464592, -0.004446855746209621, 0.05332820862531662, -0.011833777651190758, 0.006169155705720186, -0.06397944688796997, 0.025393404066562653, 0.010018790140748024, 0.02342422492802143, -0.06623707711696625, 0.008135502226650715, 0.034906066954135895, 0.007841739803552628, 0.08164849877357483, 0.001529714441858232, -0.001288797240704298, -0.033017031848430634, -0.02517673932015896, 0.0019484828226268291, 0.008525142446160316, 0.03645729646086693, -0.010201784782111645, 0.0842212364077568, 0.024839766323566437, -0.029008887708187103, -0.04242394492030144, 0.010429746471345425, 0.0023224218748509884, 0.011066620238125324, -0.03594955429434776, -0.03927623853087425, -0.04561101645231247, -0.09395822882652283, -0.03782818466424942, 0.007043324410915375, -0.04074333980679512, -0.0013289182679727674, -0.014960678294301033, -0.01289844885468483, -0.046023543924093246, 0.019142696633934975, -0.0407421737909317, 0.006149496417492628, -0.04027155414223671, -0.02552308700978756, -0.006244240794330835, 0.035866811871528625, -0.0019551815930753946, -0.03041856735944748, 0.05614962428808212, -0.05203649774193764, -0.02769281528890133, -0.031007740646600723, 0.024421941488981247, 0.036389704793691635, -0.007886411622166634, 0.027934586629271507 ]
[ -0.05380391702055931, -0.0460335910320282, -0.0265304334461689, -0.026097552850842476, -0.024345526471734047, -0.05088301748037338, 0.01553413551300764, -0.032720308750867844, -0.008596159517765045, -0.04181700944900513, 0.015807537361979485, 0.00823551882058382, 0.007112966850399971, -0.03656623885035515, 0.10024510324001312, 0.024699216708540916, -0.03985446318984032, -0.04079112038016319, 0.00540577620267868, 0.07602846622467041, -0.03647066280245781, -0.02383110672235489, -0.0215521901845932, -0.02981635369360447, -0.03446449339389801, 0.014936915598809719, 0.040512293577194214, -0.014119414612650871, -0.03481706604361534, -0.17542247474193573, 0.022816071286797523, -0.036230627447366714, 0.04348587244749069, -0.03780544176697731, 0.018315356224775314, -0.0003638200578279793, 0.027280503883957863, -0.013230969198048115, 0.012436333112418652, 0.010980019345879555, 0.0342513769865036, 0.03720491752028465, -0.04220142215490341, -0.013826803304255009, 0.044433094561100006, 0.0026989285834133625, 0.030961429700255394, -0.016150884330272675, 0.011209948919713497, 0.004998996388167143, -0.03497888892889023, 0.03545459359884262, 0.0024237108882516623, 0.011480797082185745, -0.012580055743455887, 0.007296065334230661, 0.025005558505654335, 0.03141384199261665, -0.02389727719128132, -0.023062648251652718, 0.011883692815899849, -0.0010059954365715384, -0.13006775081157684, 0.12657560408115387, 0.012123829685151577, 0.034471310675144196, 0.0005264708888716996, -0.013653211295604706, -0.019529588520526886, 0.07378651201725006, -0.019081851467490196, -0.04414232820272446, -0.07544206827878952, 0.01841900870203972, 0.015533803962171078, -0.04943271726369858, -0.01822947897017002, 0.008716280572116375, 0.03768809512257576, -0.019013555720448494, -0.040029797703027725, -0.03631821274757385, 0.019380921497941017, -0.032787155359983444, -0.03809148073196411, 0.009607838466763496, -0.01786823756992817, 0.04286153241991997, -0.005821435712277889, 0.04018307104706764, 0.023261280730366707, -0.037393148988485336, 0.08298167586326599, -0.029796527698636055, -0.048316147178411484, 0.01697113737463951, -0.03611105680465698, 0.05060065537691116, -0.09467475116252899, 0.4253450632095337, -0.007791206240653992, 0.011419066227972507, 0.01004695799201727, -0.02717617154121399, 0.004985509905964136, 0.007257665507495403, 0.04186982288956642, -0.007563233375549316, 0.004651118069887161, -0.00997171364724636, 0.009078972972929478, -0.017501164227724075, 0.03594427928328514, -0.0834214985370636, 0.024508759379386902, 0.010326755233108997, 0.006203434895724058, 0.00528023112565279, 0.015889983624219894, -0.0366930328309536, -0.002590390620753169, 0.0029758817981928587, 0.048213712871074677, -0.0017219982109963894, 0.021237824112176895, 0.00533981854096055, 0.02673112228512764, 0.05381440371274948, 0.03638695552945137, 0.011079373769462109, -0.003409608732908964, -0.05638336017727852, -0.042584434151649475, 0.025036873295903206, 0.011005635373294353, 0.05424814671278, 0.015088208019733429, -0.03501303866505623, 0.016063371673226357, -0.01673116907477379, 0.00926907081156969, -0.04893435165286064, 0.06539283692836761, -0.028026752173900604, -0.009931554086506367, 0.12223657965660095, 0.002227503340691328, -0.0389084592461586, -0.032568108290433884, -0.021383516490459442, 0.021071501076221466, 0.0017183301970362663, -0.02836677059531212, -0.011453910730779171, -0.0518646314740181, 0.020181022584438324, 0.0788121223449707, -0.0077717783860862255, -0.017937859520316124, -0.030268777161836624, 0.004348664078861475, -0.025635365396738052, -0.030014541000127792, -0.0037250106688588858, 0.041241198778152466, -0.14572641253471375, -0.0720667615532875, 0.0017756165470927954, -0.03242168575525284, -0.0689656138420105, -0.023056529462337494, -0.0007496669422835112, -0.051143523305654526, 0.012117008678615093, 0.05174662545323372, -0.028717491775751114, 0.006214174907654524, 0.0011086614103987813, 0.014661705121397972, 0.01900186948478222, -0.019239788874983788, -0.0305565744638443, -0.01052199024707079, -0.0309267807751894, -0.049336690455675125, -0.08970042318105698, -0.031309038400650024, 0.010389089584350586, -0.02392801083624363, -0.00923916045576334, -0.03161153197288513, -0.04004921019077301, -0.110773466527462, 0.03622150421142578, -0.011993386782705784, 0.0055431341752409935, 0.017389873042702675, -0.026231983676552773, 0.006583008449524641, -0.022523315623402596, 0.03438086807727814, 0.004358803387731314, -0.023513875901699066, 0.01851668953895569, -0.02592035010457039, 0.05976894870400429, 0.044773466885089874, -0.01266503520309925, 0.10180938988924026, 0.015020708553493023, -0.0748252272605896, 0.03581980615854263, -0.010337252169847488, -0.011754061095416546, 0.006370573304593563, -0.012337478809058666, -0.012131375260651112, 0.008064736612141132, 0.062042467296123505, 0.026384638622403145, 0.0024229553528130054, 0.011777526699006557, -0.04018385335803032, -0.3274545669555664, -0.014641628600656986, -0.016144447028636932, 0.005960306152701378, -0.028315482661128044, -0.054176539182662964, 0.02921002358198166, 0.007770631927996874, -0.013347134925425053, 0.008933966979384422, 0.15071135759353638, -0.0382266491651535, 0.01405573170632124, -0.08007332682609558, -0.020964354276657104, 0.02490062452852726, -0.006185865495353937, -0.01279255747795105, -0.017764709889888763, -0.007275558542460203, 0.01667371764779091, -0.016469741240143776, 0.01087080966681242, -0.03914940357208252, 0.015927642583847046, -0.033118460327386856, 0.07318317890167236, -0.014244148507714272, 0.0925612822175026, -0.06658938527107239, 0.052779972553253174, 0.05392451211810112, -0.02395438216626644, -0.09938184916973114, -0.007329791318625212, 0.016654107719659805, 0.0010026845848187804, -0.006831022445112467, 0.06624770164489746, -0.023545455187559128, -0.1190081238746643, 0.030754895880818367, -0.060896582901477814, -0.07180703431367874, 0.005284707061946392, -0.017664320766925812, 0.007841996848583221, -0.013660907745361328, -0.03165160119533539, 0.08008696138858795, 0.050288669764995575, -0.014629404060542583, -0.015088365413248539, 0.034731145948171616, -0.006738609634339809, -0.034984007477760315, -0.002787374658510089, -0.02997029758989811, 0.0014623199822381139, 0.053351618349552155, -0.0010522403754293919, 0.012127949856221676, 0.04724866524338722, -0.06806717813014984, 0.004578989930450916, -0.019114363938570023, -0.04789227247238159, 0.02791265957057476, 0.0802193135023117, -0.04777425900101662, -0.03686689957976341, 0.06845760345458984, -0.026511574164032936, 0.0677604228258133, 0.05311876907944679, 0.004771552514284849, 0.0005253959679976106, 0.040688324719667435, -0.0018360659014433622, -0.03819333016872406, 0.009840913116931915, 0.008291306905448437, 0.05782944709062576, -0.055893126875162125, 0.015966862440109253, 0.07793115824460983, -0.008622531779110432, 0.021141281351447105, 0.025568705052137375, 0.0070790257304906845, -0.02865673042833805, -0.01708047091960907, -0.0027224738150835037, -0.08969398587942123, 0.032817404717206955, -0.005476694088429213, -0.22270116209983826, 0.0555989034473896, 0.04696842283010483, 0.07229523360729218, 0.0014355460880324244, 0.020662864670157433, 0.023562004789710045, -0.023378102108836174, 0.022046782076358795, -0.004235769156366587, 0.05518508329987526, 0.06215527281165123, 0.016698315739631653, 0.019194908440113068, 0.03649252653121948, -0.04182768613100052, -0.011573669500648975, 0.05901598557829857, 0.02776569500565529, -0.0005214040284045041, 0.026757998391985893, -0.027147604152560234, 0.14865006506443024, 0.0531306117773056, 0.02696741186082363, -0.011804458685219288, 0.07370056957006454, 0.02437824383378029, 0.052197519689798355, 0.04792654886841774, 0.019407501444220543, -0.029612557962536812, 0.019738145172595978, -0.013842090032994747, 0.06849564611911774, -0.050274141132831573, 0.005280185025185347, 0.028500186279416084, 0.025869589298963547, 0.007536901626735926, -0.04729156196117401, 0.032404012978076935, -0.05190484970808029, 0.04280585050582886, 0.05950379744172096, -0.06122232601046562, -0.0003903722681570798, -0.019644668325781822, -0.017110690474510193, 0.013954691588878632, -0.00982405710965395, -0.06075377017259598, 0.016619868576526642, 0.010522342287003994, 0.00730851711705327, 0.06187926232814789, 0.036262836307287216, 0.009546881541609764, 0.014822675846517086, 0.05328606069087982, 0.0048909420147538185, -0.008787713944911957, 0.09747643768787384, -0.022212320938706398, 0.06130334734916687 ]
[ 0.024192094802856445, -0.03581417724490166, -0.03586523234844208, 0.005695910658687353, -0.007020292337983847, 0.0372469425201416, 0.018300684168934822, -0.01648860238492489, -0.04131497070193291, -0.010032789781689644, 0.014708166942000389, 0.007295315619558096, 0.03753172978758812, -0.030108945444226265, 0.022136006504297256, -0.02512492798268795, 0.018197139725089073, -0.030738092958927155, 0.027072926983237267, 0.018594516441226006, -0.018008839339017868, -0.028245974332094193, 0.025208638980984688, -0.006016607396304607, -0.013621272519230843, -0.03908536583185196, -0.040976427495479584, 0.01961907558143139, 0.041616570204496384, -0.1397857964038849, -0.00854070670902729, -0.04277847334742546, -0.00847641285508871, -0.01986725814640522, 0.009410097263753414, 0.0065181371755898, -0.00028390143415890634, 0.0069197965785861015, -0.031943246722221375, -0.029679538682103157, 0.017118824645876884, -0.017295638099312782, 0.009069548919796944, -0.0010352180106565356, -0.0396859347820282, 0.008268452249467373, -0.03130640462040901, -0.0371672622859478, 0.0024387671146541834, 0.0015153243439272046, -0.040241703391075134, 0.028535425662994385, 0.03842988982796669, -0.016364101320505142, 0.013837347738444805, 0.01611269824206829, 0.010014289058744907, 0.033445894718170166, 0.028200939297676086, 0.021066173911094666, 0.014921287074685097, -0.03858419880270958, -0.04792794585227966, -0.02322455495595932, 0.010208713822066784, -0.02138206735253334, -0.03182362765073776, -0.012361429631710052, -0.0333125963807106, -0.0064331465400755405, -0.022318115457892418, -0.01952650584280491, -0.028946487233042717, 0.00011010811431333423, -0.06648140400648117, -0.023914990946650505, -0.014908093959093094, -0.02385878749191761, -0.0035224815364927053, 0.011680832132697105, -0.027485940605401993, -0.005102651659399271, 0.006443619262427092, 0.015343760140240192, 0.014608483761548996, 0.025594396516680717, 0.008239734917879105, -0.0013681366108357906, -0.02910570427775383, 0.009700668975710869, 0.010746335610747337, 0.015612590126693249, 0.0076780072413384914, 0.00008738745236769319, -0.03968758508563042, -0.015079484321177006, -0.04938656464219093, -0.025223979726433754, -0.015021240338683128, 0.8328779339790344, -0.03133760765194893, 0.0438719280064106, 0.028149431571364403, -0.03615260124206543, -0.004611989948898554, -0.018014652654528618, 0.0058354465290904045, 0.026462644338607788, -0.005354303400963545, -0.010797308757901192, 0.0027350541204214096, 0.009046490304172039, 0.017603693529963493, -0.0009744910057634115, 0.03322409465909004, -0.016932377591729164, -0.027786506339907646, -0.03881156072020531, 0.01161598414182663, 0.02276393584907055, 0.07132217288017273, -0.013675374910235405, 0.01024286076426506, 0.03243637457489967, 0.027349120005965233, -0.18893343210220337, 0.014776205644011497, -8.304544327612985e-33, 0.03047347255051136, -0.020757662132382393, -0.024867497384548187, 0.00092931161634624, 0.05055300518870354, 0.02888340875506401, -0.013921382836997509, -0.012360676191747189, -0.014711660332977772, -0.015536924824118614, 0.07085511833429337, -0.023405134677886963, -0.0320427343249321, -0.028424954041838646, 0.020260699093341827, -0.006351844407618046, 0.009865352883934975, 0.03734218329191208, 0.010602274909615517, -0.012657513841986656, 0.0496271587908268, 0.08331320434808731, 0.03618753328919411, 0.03226947411894798, -0.021674932911992073, 0.00974297896027565, -0.013320784084498882, 0.02156473696231842, 0.009873599745333195, -0.03549663722515106, -0.036317307502031326, -0.009121720679104328, -0.013679619878530502, -0.015795107930898666, -0.004739261232316494, -0.05721259489655495, -0.052195701748132706, -0.006320419255644083, -0.034474581480026245, -0.0026925536803901196, 0.006947703193873167, -0.011451785452663898, -0.0008800294017419219, -0.002112227026373148, -0.06452323496341705, 0.020867111161351204, 0.027582112699747086, -0.015768421813845634, 0.0005651571555063128, 0.03277943655848503, -0.005782066844403744, -0.03000914305448532, -0.00845284853130579, -0.00035765854408964515, -0.009562624618411064, 0.0024535555858165026, -0.002825042000040412, -0.02473459579050541, -0.0017542577115818858, 0.000021832016500411555, 0.006682485342025757, -0.009158972650766373, 0.011013349518179893, 0.01597627066075802, 0.0013423679629340768, -0.04625900462269783, 0.03865163028240204, -0.006391584407538176, -0.006653468124568462, 0.017800260335206985, -0.02037491276860237, -0.008221977390348911, -0.002979149343445897, -0.006758670788258314, 0.019966574385762215, -0.04105927422642708, -0.00480608968064189, 0.0348472073674202, 0.028962066397070885, 0.03691934049129486, 0.028059646487236023, -0.0050432574935257435, -0.02907869592308998, -0.0037418296560645103, -0.02556055597960949, -0.0034667011350393295, 0.018713898956775665, 0.003612066386267543, -0.040293868631124496, -0.030531618744134903, 0.031268876045942307, 0.03288170322775841, 0.01823296956717968, -0.031056266278028488, -0.05360908433794975, 6.967536318303746e-33, 0.006736554205417633, -0.011830008588731289, 0.018362663686275482, -0.01157725416123867, 0.05482025444507599, 0.049507398158311844, -0.001225133310072124, -0.002450774423778057, -0.03285558521747589, -0.002129017375409603, -0.028886590152978897, -0.00029828055994585156, -0.02222529426217079, 0.01726851798593998, 0.024250438436865807, -0.01895984262228012, 0.01684778369963169, -0.026240557432174683, -0.012217743322253227, -0.013778213411569595, 0.00045708249672316015, -0.00005360371505958028, 0.004759031347930431, 0.07126524299383163, 0.05319018289446831, 0.03207788243889809, 0.009508243761956692, 0.015720171853899956, 0.00348021206445992, 0.03743794187903404, -0.00972072221338749, 0.008337914943695068, -0.019651027396321297, -0.0038906007539480925, 0.007727603893727064, 0.01757996901869774, 0.02805989235639572, 0.006654773838818073, -0.026230817660689354, 0.008589512668550014, 0.03893764689564705, 0.0029296916909515858, 0.022556034848093987, 0.010061992332339287, 0.020466698333621025, -0.004855039529502392, -0.02762794680893421, -0.0045038978569209576, -0.024848178029060364, 0.012216084636747837, -0.002129519358277321, 0.002517729066312313, 0.05277825891971588, 0.002252073958516121, -0.015459195710718632, -0.005811047274619341, -0.01986226812005043, 0.010436889715492725, 0.010067598894238472, -0.02399390935897827, 0.0023533026687800884, 0.002577583072707057, -0.025933722034096718, 0.05698011443018913, -0.05625336244702339, -0.02032778598368168, -0.007646164391189814, 0.0092089232057333, -0.015108449384570122, -0.006989602465182543, -0.007291916757822037, -0.04252757504582405, 0.008452973328530788, 0.012032917700707912, 0.0052462294697761536, -0.020986175164580345, -0.014346957206726074, 0.013531165197491646, 0.022229144349694252, 0.00887339562177658, 0.01193271018564701, 0.042811062186956406, 0.0020107124000787735, -0.02603297494351864, 0.031758032739162445, -0.0026601857971400023, -0.02860552817583084, 0.005924679338932037, 0.016596347093582153, -0.0032842985820025206, -0.0010680770501494408, -0.014467444270849228, 0.011489973403513432, 0.006193418055772781, -0.006074246950447559, -1.3208541815856734e-8, 0.004080611746758223, -0.031113244593143463, 0.0019725796300917864, -0.005102089606225491, 0.007449830416589975, -0.011960235424339771, -0.024808259680867195, -0.005114742089062929, -0.014294439926743507, 0.01670707017183304, 0.035378217697143555, -0.00012153289571870118, 0.0325780063867569, 0.031903740018606186, 0.015574500896036625, -0.02081921324133873, -0.009502625092864037, 0.015360506251454353, 0.03797316551208496, 0.025693440809845924, 0.014268842525780201, 0.04327180236577988, 0.022178808227181435, -0.013277574442327023, -0.019490137696266174, 0.054881900548934937, 0.0072623249143362045, -0.061761774122714996, -0.04738147556781769, 0.019041741266846657, 0.030185868963599205, -0.008073057979345322, -0.08275247365236282, -0.034141603857278824, -0.03767114877700806, -0.007162823341786861, 0.015973342582583427, -0.013075843453407288, 0.0008938707178458571, 0.014685271307826042, 0.0034696897491812706, -0.027275968343019485, 0.020932912826538086, -0.024379290640354156, -0.062441159039735794, -0.030399981886148453, -0.004250176250934601, 0.03363991901278496, 0.05743737891316414, -0.035915400832891464, -0.004690571688115597, 0.01848473958671093, -0.022213764488697052, 0.020485104992985725, 0.03664310649037361, -0.017009297385811806, 0.030289022251963615, 0.02547391876578331, 0.022067701444029808, -0.01742567867040634, 0.04819919541478157, 0.024941228330135345, -0.0018732377793639898, -0.0156886987388134 ]
clickhouse-no-writeable-access-storage
https://markhneedham.com/blog/2023/11/07/clickhouse-no-writeable-access-storage
false
2023-11-09 00:44:37
ClickHouse - How to get the first 'n' values from an array
[ "clickhouse", "til" ]
[ "TIL" ]
:icons: font I was recently working with some very long arrays in ClickHouse and I wanted to select just a few values so that they didn't take up the entire screen. The way I thought would 'just work' (TM) didn't, so this blog documents how to do it. If you want to follow along, you'll need to https://clickhouse.com/docs/en/install[install ClickHouse^]. On a Mac, Brew is a pretty good option: [source, bash] ---- brew install clickhouse ---- Once you've done that, launch ClickHouse Local: [source, bash] ---- clickhouse local -m ---- .Output [source, text] ---- ClickHouse local version 23.10.1.1976 (official build). MN :) ---- And then we're going to return an array that contains 10 values: [source, sql] ---- SELECT range(0,10); ---- .Output [source, text] ---- ┌─range(0, 10)──────────┐ │ [0,1,2,3,4,5,6,7,8,9] │ └───────────────────────┘ ---- I wanted to get just the first 5 values, so I tried to use the Python-esque syntax: [source, sql] ---- SELECT range(0,10)[:5]; ---- But that wasn't too happy with me: .Output [source, text] ---- Expected one of: token, Comma, ClosingSquareBracket, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, list of elements, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable ---- What we need is the https://clickhouse.com/docs/en/sql-reference/functions/array-functions#arrayslice[`arraySlice`^] function, which lets us extract a variable number of values from an array. We have to specify an `offset` (remembering that array indexing in ClickHouse starts from `1`) and then a `length`, which is the number of values to return. The following does the job: [source, sql] ---- SELECT arraySlice(range(0,10), 1, 5); ---- .Output [source, text] ---- ┌─arraySlice(range(0, 10), 1, 5)─┐ │ [0,1,2,3,4] │ └────────────────────────────────┘ ----
In this post, we'll learn how to get the first few entries from an array in ClickHouse
uploads/2023/11/clickhouse-arrays-slice.png
[ 0.010375515557825565, 0.047299351543188095, -0.015161870047450066, 0.000319713813951239, 0.08768722414970398, 0.02225993573665619, 0.032329000532627106, 0.03019919991493225, -0.028596408665180206, -0.012285484932363033, -0.021521253511309624, -0.004349717404693365, -0.08242113143205643, 0.012824960052967072, 0.006000090390443802, 0.06645894050598145, 0.0861467495560646, -0.0022034163121134043, 0.006438079290091991, -0.0038688345812261105, 0.012635413557291031, 0.03643576800823212, 0.006008492317050695, 0.046176522970199585, 0.034475114196538925, 0.04363061487674713, 0.004012707155197859, -0.021297357976436615, -0.04226623848080635, 0.025815922766923904, 0.020434260368347168, -0.011786537244915962, 0.005849742796272039, -0.014882571995258331, -0.0029721336904913187, 0.003903347533196211, 0.019312966614961624, 0.02106955274939537, 0.0009876469848677516, 0.014469718560576439, -0.058385852724313736, 0.038030821830034256, 0.012266932055354118, 0.02617412991821766, -0.007573569659143686, 0.008056892082095146, -0.06755625456571579, -0.014749975875020027, -0.03444460779428482, 0.018025631085038185, -0.04458591341972351, 0.0466790646314621, -0.015257574617862701, -0.05199065059423447, 0.01980569027364254, 0.05022573471069336, 0.03409874439239502, -0.04139918088912964, 0.005404960364103317, -0.026968898251652718, 0.0013455153675749898, 0.026649456471204758, 0.019519023597240448, 0.053172022104263306, 0.002645546803250909, 0.007815462537109852, -0.0005999854765832424, 0.02786462940275669, -0.03698786720633507, 0.003302168333902955, -0.004840007983148098, 0.0026049125008285046, -0.03957747668027878, -0.04687666520476341, 0.02524912729859352, -0.03305675834417343, -0.03437168896198273, 0.048275016248226166, 0.04572078213095665, 0.05249224230647087, -0.027820711955428123, -0.010185188613831997, 0.0316443145275116, 0.01980806514620781, 0.04765592887997627, -0.04090696945786476, -0.04724033549427986, -0.035451389849185944, -0.05519339069724083, 0.018076235428452492, 0.018976522609591484, -0.027909230440855026, 0.02403262071311474, 0.03979593887925148, -0.011936786584556103, 0.017229493707418442, 0.0059930686838924885, -0.028527524322271347, -0.0021080297883599997, 0.0020117596723139286, -0.05628672614693642, -0.01789187081158161, 0.06328988075256348, -0.007352717686444521, -0.08100488781929016, 0.02344801276922226, -0.03512124717235565, -0.003770747920498252, 0.023710165172815323, 0.01735254004597664, -0.00893938634544611, -0.003731388598680496, -0.004973821807652712, 0.004508221987634897, -0.06500756740570068, 0.061494722962379456, -0.00018919556168839335, 0.002330178627744317, -0.003438733983784914, -0.007916204631328583, 0.05677599087357521, 0.0298138540238142, -0.025124389678239822, 0.08746644109487534, -0.011337404139339924, 0.007518371567130089, -0.004746222402900457, 0.043881673365831375, 0.001612101448699832, -0.07528239488601685, -0.02578914165496826, 0.04444195702672005, 0.005139377899467945, 0.00245155137963593, 0.0030700312927365303, 0.025015652179718018, -0.0045618400909006596, -0.0008525346638634801, 0.053729068487882614, -0.002805094700306654, 0.015233318321406841, -0.02875722013413906, 0.004400845151394606, -0.01454657968133688, 0.05015655234456062, 0.01932426355779171, 0.0036287540569901466, -0.05777032673358917, -0.034667544066905975, 0.04206578806042671, 0.02078588679432869, 0.04291689023375511, 0.06760290265083313, -0.03194168210029602, 0.016282787546515465, 0.10694395005702972, 0.014623151160776615, -0.0020673309918493032, -0.006485546939074993, -0.028198575600981712, 0.03388171270489693, 0.010761839337646961, -0.007065483368933201, 0.03205383941531181, 0.03673017770051956, 0.002090268535539508, -0.015413016080856323, 0.02130713500082493, -0.07276991009712219, 0.004424079786986113, -0.01568944938480854, -0.05222965404391289, 0.08375648409128189, -0.032169703394174576, -0.013257855549454689, -0.004253390710800886, 0.08705181628465652, 0.02915903553366661, 0.03720716014504433, 0.02875622734427452, -0.08269447833299637, 0.03112870082259178, -0.03330467641353607, -0.009851321578025818, 0.0620528943836689, 0.0017777482280507684, 0.07998113334178925, -0.0027665025554597378, -0.005570164881646633, 0.01955474354326725, -0.042474497109651566, -0.10797150433063507, -0.024439677596092224, -0.016603218391537666, 0.07259831577539444, -0.05835920199751854, -0.025161728262901306, 0.07831072807312012, 0.031590741127729416, 0.04174434766173363, -0.0009951659012585878, 0.009901631623506546, 0.009514420293271542, -0.050304166972637177, -0.06903007626533508, 0.0038079358637332916, 0.03780516982078552, -0.01939506083726883, 0.0008796268957667053, 0.024434981867671013, -0.0039117224514484406, -0.013186395168304443, 0.020006518810987473, -0.00566187733784318, 0.07590319961309433, 0.023730987682938576, 0.02452613227069378, -0.018880395218729973, 0.03460494801402092, -0.0566399022936821, 0.020932834595441818, 0.04674145206809044, -0.018109481781721115, -0.02966524101793766, 0.02068709023296833, 0.1334744244813919, 0.05507393181324005, -0.02214011363685131, -0.05677603557705879, 0.021736852824687958, 0.02698598802089691, -0.032786063849925995, 0.03221245855093002, -0.043796878308057785, -0.0015205529052764177, -0.01934760808944702, -0.025300677865743637, -0.02299504168331623, 0.0016746370820328593, -0.03589310124516487, -0.009221194311976433, 0.04797624051570892, -0.003992336802184582, 0.02638116478919983, 0.017712730914354324, -0.05442286655306816, 0.00774498051032424, -0.03974836319684982, -0.02813839353621006, -0.007745454087853432, 0.04693299159407616, -0.02950718253850937, 0.026723066344857216, -0.07035599648952484, -0.01053905300796032, -0.029126444831490517, -0.07078038156032562, 0.03350887447595596, 0.006681626196950674, 0.062091995030641556, -0.03086860477924347, 0.03807522729039192, 0.01163704413920641, -0.025609146803617477, -0.008878469467163086, -0.03988584876060486, -0.01308389101177454, -0.02326980046927929, -0.018387123942375183, 0.006920140236616135, 0.0148716289550066, 0.029919516295194626, -0.00965103879570961, -0.019349390640854836, 0.0028056236915290356, 0.0007711868965998292, 0.006392368581146002, 0.005817509721964598, -0.009693724103271961, -0.04882149025797844, 0.0017789502162486315, 0.061518073081970215, -0.042479030787944794, -0.03723226860165596, -0.017051130533218384, -0.057338740676641464, 0.027930444106459618, -0.09300855547189713, -0.0506480410695076, -0.0360754169523716, 0.025495365262031555, 0.028749914839863777, -0.0045023150742053986, -0.0024816072545945644, 0.06387936323881149, -0.005683116149157286, 0.02288513444364071, 0.035188525915145874, 0.0024731887970119715, 0.017780065536499023, 0.03283581882715225, 0.014805668964982033, 0.03761806711554527, -0.012772231362760067, -0.0003863438032567501, -0.035615865141153336, -0.013689329847693443, -0.04368649795651436, -0.24952642619609833, 0.027572646737098694, -0.046661995351314545, -0.0642019510269165, 0.007115047890692949, -0.05059796944260597, 0.018543243408203125, -0.024916717782616615, 0.008479766547679901, 0.011621298268437386, -0.021715886890888214, -0.02866767905652523, -0.017795663326978683, 0.024099325761198997, 0.011107277125120163, -0.011124331504106522, 0.007143503986299038, -0.029386000707745552, 0.02544482611119747, 0.01422698050737381, 0.024779271334409714, -0.03711344301700592, 0.0134182283654809, 0.0656149610877037, 0.021842926740646362, 0.07343873381614685, -0.040966298431158066, 0.01659327931702137, -0.04093584790825844, -0.02000265382230282, 0.002550556557253003, -0.012759496457874775, -0.016551515087485313, 0.013654881156980991, -0.007853151299059391, 0.014924615621566772, 0.0570528618991375, -0.032822135835886, 0.014086129143834114, 0.014939878135919571, -0.01630227640271187, -0.0006498252623714507, 0.013796697370707989, 0.011743295006453991, 0.06291069090366364, -0.015701105818152428, -0.05348608270287514, -0.013501355424523354, -0.030914654955267906, 0.041810374706983566, -0.02146809548139572, -0.01608996093273163, -0.04547598585486412, 0.051908016204833984, -0.0011540197301656008, -0.008737168274819851, -0.008760216645896435, 0.026411760598421097, -0.030862871557474136, -0.021285073831677437, -0.022833799943327904, -0.03032519482076168, -0.0032710263039916754, -0.009762603789567947, -0.005287430249154568, -0.08230127394199371, -0.04264048859477043, -0.009584351442754269, 0.06974450498819351, 0.046122368425130844, -0.026277488097548485, -0.02367439679801464, -0.008214624598622322, -0.11156576126813889, -0.016938021406531334, 0.012954480946063995, -0.02375849336385727, 0.013411677442491055, -0.016380133107304573, 0.0490848645567894, -0.06522352993488312, -0.02884288690984249, 0.03692677989602089, 0.007954400032758713, 0.015901530161499977, -0.04672987759113312, -0.014837169088423252, 0.04381636530160904, -0.01716560497879982, -0.0008457035874016583, 0.06374134868383408, -0.04395682364702225, -0.0005862854304723442, -0.012723786756396294, -0.019261885434389114, 0.029334114864468575, 0.028670895844697952, -0.0024240673519670963, 0.02868230640888214, 0.007648061960935593, 0.030563881620764732, -0.058863360434770584, -0.003798338118940592, -0.047459591180086136, 0.0007437268504872918, 0.002939725061878562, -0.03735406696796417, 0.007984088733792305, -0.0010043286019936204, 0.023066051304340363, -0.026645375415682793, -0.04259466007351875, 0.02328767627477646, -0.05496881902217865, 0.013545875437557697, -0.03573934733867645, 0.007761799264699221, 0.02102682553231716, 0.018790051341056824, -0.004784076940268278, -0.08502421528100967, 0.01822509616613388, 0.015355704352259636, -0.022094514220952988, -0.04514135420322418, -0.031909260898828506, -0.007668246515095234, -0.008379504084587097, -0.0052298628725111485, -0.003324243240058422, -0.0036106454208493233, 0.028299832716584206, 0.026415487751364708, -0.03566676005721092, 0.020651955157518387, -0.012500851415097713, -0.023608330637216568, -0.005848643835633993, -0.01814793050289154, 0.013383236713707447, 0.005994182545691729, -0.029687421396374702, 0.016537649556994438, 0.01783170737326145, 0.03199406713247299, 0.00664177443832159, 0.012247626669704914, 0.012382132932543755, -0.012751615606248379, 0.042698491364717484, -0.026468973606824875, -0.02635783702135086, 0.0316341333091259, -0.04233550280332565, -0.025311412289738655, -0.053502097725868225, 0.012709657661616802, -0.013348341919481754, -0.017441606149077415, -0.0646933987736702, -0.018628781661391258, -0.03631306812167168, 0.00105228868778795, 0.007099997717887163, -0.0036660167388617992, 0.05050266534090042, 0.034729503095149994, 0.050485167652368546, -0.02361176908016205, 0.016959453001618385, 0.00526073481887579, 0.01989269256591797, -0.03294703736901283, 0.01094596553593874, 0.02371830679476261, -0.035841502249240875, 0.029211781919002533, 0.01632516086101532, 0.016452524811029434, 0.025304477661848068, 0.022995593026280403, -0.0057807727716863155, 0.02294408343732357, 0.034882500767707825, 0.03448839485645294, 0.018810031935572624, -0.06083782762289047, -0.006787590216845274, -0.03655560314655304, -0.04809440299868584, -0.03465036302804947, -0.00669303210452199, -0.004174708854407072, -0.034576430916786194, -0.032682016491889954, -0.0716155469417572, 0.006864332593977451, 0.0484125129878521, 0.015653718262910843, 0.022748557850718498, -0.01442525815218687, -0.026953844353556633, -0.05910180136561394, 0.045683808624744415, 0.08355104178190231, -0.06800325214862823, 0.006867964286357164, -0.007345039397478104, 0.002402125857770443, -0.001506674918346107, 0.036325808614492416, -0.08160968124866486, 0.0041020759381353855, 0.006603680085390806, 0.030263744294643402, -0.007216215133666992, -0.0049556163139641285, -0.025371141731739044, 0.013439026661217213, -0.022735292091965675, -0.010908040218055248, -0.0005786062683910131, 0.006697128992527723, -0.030109182000160217, -0.0198359414935112, 0.018616696819663048, -0.017608053982257843, -0.0196694303303957, 0.05061396211385727, -0.02277217246592045, 0.0023189971689134836, -0.029094742611050606, 0.04301600530743599, 0.028225598856806755, 0.009569386951625347, -0.0105756726115942, -0.06298702955245972, 0.0030513955280184746, -0.009604555554687977, 0.048660796135663986, 0.005856805015355349, 0.008195572532713413, -0.009873940609395504, 0.0007381754694506526, -0.026027286425232887, -0.0216619074344635, -0.03781542554497719, -0.04277190938591957, 0.013300949707627296, 0.03249505162239075, 0.006576211657375097, 0.0009221714572049677, 0.008747321553528309, -0.02066969871520996, 0.059248995035886765, -0.02820211835205555, -0.017745083197951317, 0.042039088904857635, -0.07475952059030533, 0.028449269011616707, 0.01888453960418701, 0.048167336732149124, -0.06119847670197487, 0.05771062895655632, 0.037116363644599915, 0.018492838367819786, 0.01672385260462761, -0.0004381706239655614, 0.03444010764360428, -0.01651802286505699, -0.043399546295404434, -0.08383393287658691, -0.01772528700530529, -0.009581401944160461, -0.009732924401760101, -0.034621234983205795, -0.004433890804648399, -0.028556250035762787, 0.011452301405370235, -0.08403228223323822, -0.011914297938346863, 0.04698207974433899, 0.008395152166485786, -0.015345717780292034, 0.0366985909640789, -0.035075679421424866, 0.033635035157203674, 0.02983611449599266, -0.022954609245061874, -0.03612621873617172, -0.011878617107868195, 0.07539302110671997, 0.01955534517765045, 0.02249244973063469, -0.04030320420861244, -0.0008140203426592052, 0.09262871742248535, 0.021492846310138702, -0.0014361419016495347, 0.048063647001981735, -0.04034005478024483, 0.03796251863241196, -0.007620410993695259, 0.000013123678400006611, 0.0022600465454161167, 0.019251693040132523, -0.008513576351106167, -0.032189156860113144, -0.013471579179167747, 0.014640478417277336, -0.017763806506991386, -0.07736849784851074, 0.0729995146393776, 0.011079225689172745, -0.012821760959923267, -0.047660309821367264, 0.003491679672151804, -0.04324672743678093, -0.013036179356276989, -0.0322108268737793, -0.010148386470973492, -0.05414373055100441, 0.07603204250335693, -0.014683229848742485, 0.0290705356746912, 0.07039492577314377, 0.009682554751634598, 0.01537682767957449, 0.009273194707930088, 0.06119599938392639, 0.08011776208877563, 0.028078775852918625, 0.015527698211371899, 0.06753742694854736, -0.028074249625205994, -0.05944903567433357, -0.0220192801207304, -0.05352163314819336, -0.00850350596010685, -0.05460881069302559, 0.0004440248303581029, 0.06915686279535294, -0.0058105941861867905, 0.045391399413347244, -0.023986846208572388, -0.012668829411268234, -0.01739972084760666, 0.014528658241033554, 0.06002466008067131, 0.04421162232756615, 0.02179516665637493, 0.0240302924066782, -0.01056072860956192, 0.011332569643855095, 0.04001537710428238, -0.021348733454942703, -0.0292497631162405, 0.03522597253322601, -0.005277435295283794, 0.02605285495519638, 0.03827308490872383, 0.05287957563996315, 0.058393821120262146, -0.04116904363036156, -0.013056552968919277, -0.005153208505362272, 0.06004927679896355, -0.00014408689457923174, -0.0018966790521517396, 0.007118127308785915, -0.016184328123927116, -0.023783721029758453, -0.023653484880924225, 0.011900645680725574, -0.03809281438589096, 0.006575021427124739, 0.05326847359538078, -0.00898802187293768, -0.00007504190580220893, 0.03179683908820152, 0.028287772089242935, -0.03420303016901016, -0.040391724556684494, -0.04973381385207176, -0.034850381314754486, -0.05426069721579552, -0.014733667485415936, 0.010417833924293518, -0.02231987938284874, -0.029104555025696754, -0.022899359464645386, -0.002188809448853135, -0.020998047664761543, -0.009157907217741013, -0.04454226419329643, -0.063276007771492, -0.012119604274630547, 0.03662152215838432, 0.033238139003515244, 0.057311274111270905, 0.05216831713914871, -0.01616661436855793, -0.02962404489517212, -0.024314643815159798, 0.01974482648074627, 0.060707561671733856, 0.011491931974887848, 0.026040203869342804, -0.05165385827422142, 0.030370447784662247, 0.003802731167525053, 0.01915011927485466, -0.06386491656303406, 0.021163741126656532, 0.01957080326974392, 0.0000713188637746498, 0.06530194729566574, 0.0025482114870101213, 0.0034627614077180624, -0.067919060587883, -0.02944301627576351, 0.004754548892378807, -0.0025340551510453224, 0.041693057864904404, -0.04915273189544678, 0.08848384767770767, 0.014549991115927696, -0.0002679058234207332, -0.01760159432888031, 0.014192167669534683, 0.014852559193968773, 0.03640389069914818, -0.03436299413442612, -0.06284758448600769, -0.06069618836045265, -0.07418294250965118, -0.04223999008536339, 0.0008342707878910005, -0.009574430994689465, -0.029647814109921455, -0.004288310185074806, 0.043346259742975235, -0.04643576592206955, 0.033633846789598465, -0.042636506259441376, 0.017770880833268166, -0.01652687042951584, -0.04157385975122452, 0.0008135798270814121, 0.032872531563043594, -0.0066068884916603565, -0.023568227887153625, 0.026441216468811035, -0.03221826255321503, -0.0220089852809906, -0.0478360541164875, 0.010470843873918056, 0.020275363698601723, -0.009062213823199272, 0.02655847743153572 ]
[ -0.07044704258441925, -0.012667253613471985, -0.011040536686778069, -0.029163582250475883, 0.00944402813911438, -0.0621335431933403, -0.029951920732855797, 0.004539906047284603, 0.016154799610376358, -0.033294785767793655, 0.02556748501956463, 0.017955943942070007, -0.011829322203993797, -0.043656982481479645, 0.06692808866500854, 0.003136433195322752, -0.024339521303772926, -0.043253831565380096, -0.022162342444062233, 0.04481332004070282, -0.004298564977943897, -0.025845063850283623, -0.014668619260191917, -0.03957853466272354, 0.009537915699183941, 0.039126332849264145, 0.04420386254787445, -0.046186186373233795, -0.008661824278533459, -0.18345630168914795, 0.010079153813421726, -0.012579160742461681, 0.05971674621105194, -0.053606174886226654, 0.021752329543232918, 0.026908094063401222, 0.0032140356488525867, -0.011744675226509571, 0.02899783104658127, 0.04426299408078194, 0.04446171969175339, 0.030855154618620872, -0.05695071443915367, -0.017318513244390488, 0.026875833049416542, -0.0058372607454657555, 0.0026168012991547585, -0.020279914140701294, 0.03261643648147583, 0.030651254579424858, -0.06899749487638474, 0.020289961248636246, 0.0032212845981121063, -0.001821484649553895, -0.0056517827324569225, 0.008235420100390911, 0.02422574907541275, 0.015986735001206398, -0.0006192171131260693, -0.01683139055967331, 0.0022042891941964626, -0.009744626469910145, -0.10999617725610733, 0.13701719045639038, 0.03837776929140091, 0.026311276480555534, -0.004230129066854715, 0.006205430720001459, -0.014889739453792572, 0.07211749255657196, 0.022744765505194664, -0.029027536511421204, -0.009443745017051697, 0.02407584898173809, 0.00321020744740963, -0.0775945633649826, -0.016631504520773888, -0.007524757646024227, 0.049824051558971405, -0.009214925579726696, -0.05781208351254463, -0.05145035311579704, -0.0021748365834355354, -0.05117300897836685, -0.002316262573003769, 0.0052069853991270065, -0.04649714380502701, 0.047972433269023895, 0.019287459552288055, -0.018946196883916855, 0.02870490401983261, -0.06297706812620163, 0.027490243315696716, 0.01780548505485058, -0.053277820348739624, -0.01997658796608448, -0.01983729936182499, 0.000014111704331298824, -0.039618346840143204, 0.3892613649368286, -0.029430590569972992, 0.016822954639792442, 0.0006606145761907101, -0.0023122173734009266, -0.014035524800419807, -0.03015996143221855, -0.006588748190551996, -0.0007171597681008279, -0.02250675857067108, -0.0015821994747966528, -0.004159299191087484, -0.011955996043980122, 0.08797086775302887, -0.08324597030878067, 0.0012745674466714263, 0.002013549441471696, 0.009551962837576866, -0.032992418855428696, 0.047316793352365494, -0.026698976755142212, -0.016891155391931534, -0.007123883813619614, 0.05827534943819046, -0.014018946327269077, 0.039258167147636414, 0.027846962213516235, 0.011902323924005032, 0.06938405334949493, 0.05903269350528717, 0.04519735276699066, 0.029312947764992714, -0.06485530734062195, -0.028462832793593407, 0.008399599231779575, 0.0025481313932687044, 0.055877041071653366, 0.06655782461166382, -0.023165451362729073, 0.021021975204348564, -0.01407264731824398, -0.024720847606658936, -0.058079008013010025, 0.06585446745157242, -0.01861603744328022, -0.018531864508986473, 0.11829011887311935, -0.009615565650165081, -0.011006783694028854, -0.04493483901023865, -0.05009212717413902, -0.022313566878437996, 0.04108741506934166, -0.006409259978681803, -0.02579137310385704, -0.04779982194304466, 0.04778175801038742, 0.07339407503604889, -0.019452132284641266, -0.0452716238796711, -0.06271056830883026, -0.018651319667696953, -0.023537157103419304, -0.04099283367395401, 0.013444955460727215, 0.008827785961329937, -0.1137816533446312, -0.057161565870046616, -0.00482903653755784, -0.061991073191165924, -0.07280100136995316, -0.004171343985944986, 0.027252092957496643, -0.06675082445144653, 0.03535011410713196, 0.06328780204057693, -0.017871879041194916, -0.011934720911085606, 0.033862676471471786, 0.07490935176610947, 0.023255271837115288, -0.00020043934637214988, 0.0010772265959531069, -0.006226939149200916, -0.016458023339509964, -0.019215473905205727, -0.060319509357213974, -0.044213585555553436, -0.009039017371833324, -0.016073985025286674, -0.028466839343309402, 0.003084354568272829, -0.06127948686480522, -0.044521309435367584, 0.038093626499176025, -0.023754479363560677, -0.0143061438575387, 0.024715133011341095, 0.00511751277372241, 0.024743929505348206, 0.0017311351839452982, 0.037792958319187164, -0.02888919599354267, -0.012001329101622105, 0.03185303136706352, -0.010143457911908627, 0.035785309970378876, 0.043423980474472046, -0.030931003391742706, 0.08927783370018005, 0.015255984850227833, -0.0848134309053421, 0.04351860284805298, 0.03757514804601669, -0.02130134589970112, 0.002389413071796298, -0.03565317019820213, -0.006315442267805338, 0.025660816580057144, 0.06163886934518814, 0.03864016756415367, -0.03232688084244728, -0.07911990582942963, -0.044844143092632294, -0.34938713908195496, 0.008375277742743492, -0.021465705707669258, -0.004648114554584026, -0.03626490384340286, -0.0776914581656456, 0.014748828485608101, -0.04667418822646141, -0.00972987711429596, 0.048867832869291306, 0.09650561213493347, -0.035878993570804596, 0.013307242654263973, -0.07614628225564957, -0.06577958166599274, 0.02622593194246292, 0.011196110397577286, -0.016269279643893242, -0.02497464045882225, 0.028318779543042183, 0.05530687794089317, 0.00492493063211441, -0.04756414145231247, -0.07465281337499619, 0.01401396095752716, -0.05614408105611801, 0.1052069142460823, 0.022737344726920128, 0.037731412798166275, -0.06725821644067764, 0.08513836562633514, 0.048715658485889435, -0.018659202381968498, -0.01067136600613594, -0.023053614422678947, -0.006804203614592552, -0.020320434123277664, 0.007604141719639301, -0.00009258529462385923, 0.015178384259343147, -0.07886350154876709, 0.056457605212926865, -0.05078906565904617, -0.05873824283480644, 0.008584542199969292, -0.0246773399412632, 0.025226343423128128, -0.04662328585982323, 0.011491399258375168, 0.09198495745658875, 0.06792975962162018, 0.020782791078090668, 0.006193462293595076, -0.004217401146888733, 0.02834511548280716, -0.019200749695301056, -0.026035243645310402, -0.021787768229842186, -0.011195708066225052, -0.020801877602934837, 0.006610423792153597, -0.0060067372396588326, 0.04169800877571106, -0.03774143382906914, -0.03269193693995476, 0.03698604926466942, -0.013397252187132835, -0.009208639152348042, 0.08012253046035767, -0.021982168778777122, -0.03129841387271881, 0.03486517816781998, 0.003424918744713068, 0.05833001807332039, 0.06599334627389908, 0.03299873322248459, -0.015851596370339394, 0.0640161857008934, 0.029297644272446632, -0.014916129410266876, 0.011322619393467903, 0.06488027423620224, 0.04744965210556984, -0.007674474734812975, 0.04512767866253853, 0.02235317975282669, 0.008374791592359543, 0.018750129267573357, 0.01046051736921072, 0.0037694554775953293, -0.001009046332910657, 0.002773842541500926, 0.009678871370851994, -0.052549365907907486, 0.022575395181775093, -0.00823337770998478, -0.24058911204338074, 0.06328491121530533, 0.040883831679821014, 0.053935401141643524, 0.008699379861354828, 0.009180130437016487, 0.008486857637763023, -0.06703340262174606, 0.005242455750703812, -0.010269399732351303, 0.01616840623319149, 0.03077910654246807, 0.019113630056381226, -0.02720576897263527, 0.04319024458527565, -0.04301025718450546, 0.04838220775127411, 0.0325920470058918, 0.00924732070416212, 0.021928930655121803, 0.03760341927409172, -0.027648409828543663, 0.18953664600849152, 0.03141353651881218, 0.027848150581121445, -0.034925926476716995, 0.036156490445137024, -0.02522173710167408, 0.05001513659954071, 0.04037875309586525, 0.026278039440512657, -0.031471677124500275, 0.08944172412157059, -0.015416904352605343, 0.047570567578077316, -0.0012540215393528342, -0.054181575775146484, 0.03831619769334793, -0.024433936923742294, -0.03567879647016525, -0.03443128988146782, 0.056924007833004, -0.09452719986438751, 0.019930599257349968, 0.05083145201206207, -0.05301642417907715, -0.009403098374605179, -0.0416661836206913, -0.025152772665023804, 0.03765488415956497, -0.04617539048194885, -0.03809477016329765, 0.004823949187994003, -0.02029378153383732, 0.014480642974376678, 0.05458497256040573, 0.01461408194154501, 0.03434770926833153, 0.018566258251667023, 0.05470658838748932, -0.015356196090579033, -0.023797830566763878, 0.09975239634513855, 0.014853709377348423, 0.03784336894750595 ]
[ 0.019304495304822922, 0.019111797213554382, -0.037489499896764755, 0.017760513350367546, -0.004019986372441053, 0.005845317617058754, 0.023709004744887352, 0.001071359496563673, -0.04892617091536522, -0.025623204186558723, -0.0360744334757328, -0.005994434934109449, 0.027591470628976822, -0.0371738001704216, 0.009486071765422821, 0.005335753783583641, -0.017898136749863625, -0.03795471787452698, 0.05255156010389328, -0.012271441519260406, -0.027603065595030785, 0.036486975848674774, 0.01859811320900917, 0.008687031455338001, 0.013634794391691685, 0.042741816490888596, -0.04181286320090294, 0.02873528189957142, 0.015555283986032009, -0.11482153087854385, -0.036970384418964386, -0.014798110350966454, -0.007307250984013081, -0.016024071723222733, -0.014234685339033604, -0.0028120987117290497, -0.008289973251521587, 0.05029004439711571, 0.012491036206483841, -0.00950540415942669, 0.008891339413821697, -0.0196753591299057, -0.008178754709661007, 0.006852942984551191, -0.01504687312990427, -0.01883838139474392, -0.04945768043398857, -0.011766123585402966, -0.041239894926548004, 0.0245094932615757, -0.06000395119190216, 0.013830084353685379, 0.012301381677389145, -0.016119956970214844, 0.0641375407576561, -0.021865271031856537, 0.002906975569203496, -0.008195878937840462, 0.02136242762207985, 0.0019631809554994106, 0.00506047997623682, 0.0028254298958927393, -0.06600398570299149, -0.007905292324721813, -0.016465552151203156, -0.041793279349803925, -0.02827216312289238, 0.011570080183446407, 0.016184356063604355, -0.013917899690568447, -0.002396677853539586, -0.041714899241924286, -0.012772596441209316, -0.016092004254460335, -0.05483740195631981, 0.017134837806224823, 0.021186677739024162, -0.04764265567064285, 0.009286883287131786, 0.008579351007938385, -0.0482792966067791, 0.015379815362393856, -0.009036666713654995, 0.03304314985871315, -0.005404525902122259, -0.020395219326019287, 0.003394440980628133, 0.022954842075705528, 0.001499157166108489, -0.023937005549669266, -0.005064183380454779, -0.02099469117820263, 0.0012924292823299766, 0.03855668008327484, -0.046488527208566666, -0.010722720995545387, -0.027105797082185745, -0.014779757708311081, -0.002471867948770523, 0.8486524820327759, -0.029374953359365463, 0.04401424154639244, 0.022330790758132935, 0.009659333154559135, -0.012144848704338074, -0.01657206378877163, 0.017384123057127, -0.008807158097624779, -0.004489223472774029, -0.03469204902648926, 0.03405109792947769, 0.014762339182198048, 0.028905533254146576, -0.0013728784397244453, 0.04449370875954628, -0.0005756181199103594, -0.0015982219483703375, -0.03623588755726814, 0.024033553898334503, -0.003716456238180399, 0.04069238528609276, -0.01404455117881298, 0.025252392515540123, 0.04624192416667938, 0.03511090949177742, -0.16473552584648132, 0.003068464109674096, -7.236042003234604e-33, 0.02425488457083702, -0.06722960621118546, 0.006106278393417597, -0.014014927670359612, 0.060461606830358505, 0.008203799836337566, -0.008284522220492363, -0.007383646909147501, 0.006673409137874842, -0.0012645748211070895, 0.03652887046337128, -0.010541357100009918, -0.034922949969768524, 0.003199912840500474, 0.027427613735198975, -0.005726888310164213, 0.02181578241288662, 0.0628444254398346, -0.009436477907001972, 0.006637190002948046, 0.009759113192558289, 0.03584977239370346, 0.008006162941455841, 0.0234628114849329, 0.0073738135397434235, 0.016997482627630234, 0.018182775005698204, 0.008380340412259102, 0.0007104950491338968, -0.03537983447313309, -0.02909846045076847, 0.03255312889814377, -0.0047376700676977634, -0.03634099289774895, 0.016206542029976845, -0.06157784163951874, -0.009343715384602547, 0.019275151193141937, -0.01010240986943245, 0.003757431637495756, -0.03615880757570267, -0.011948867700994015, -0.0031578275375068188, -0.00305369240231812, 0.008959502913057804, -0.01948506385087967, -0.00106318318285048, 0.01936357654631138, -0.010743431746959686, 0.01270314957946539, 0.01569482497870922, -0.002720019081607461, -0.00609174557030201, 0.029493004083633423, -0.01571870967745781, -0.0016052828868851066, 0.0029241652227938175, 0.017640436068177223, 0.017966488376259804, 0.009819071739912033, -0.028621062636375427, -0.003076331689953804, 0.021582281216979027, 0.01912863925099373, -0.0013147616991773248, 0.01021463144570589, 0.01756187714636326, 0.0002804801915772259, 0.01794595457613468, 0.05183330178260803, -0.01655104197561741, 0.0022838152945041656, 0.0057099056430161, -0.03766028210520744, 0.03308653458952904, -0.02466343529522419, 0.010252052918076515, -0.0006285611307248473, 0.01463461946696043, 0.023423558101058006, 0.043198082596063614, -0.02626786194741726, -0.05073259398341179, -0.011662674136459827, -0.016890011727809906, -0.025428270921111107, -0.004299394320696592, 0.019336767494678497, -0.03213362395763397, -0.028991905972361565, 0.0036241302732378244, 0.019117770716547966, -0.007157071493566036, -0.04097171127796173, -0.048577725887298584, 6.866468783387984e-33, 0.03293537721037865, -0.008193887770175934, 0.0027048096526414156, -0.00401996960863471, -0.011185944080352783, 0.0036660318728536367, 0.03721611201763153, 0.00033056101528927684, -0.02183721773326397, 0.02345016784965992, -0.03567012771964073, 0.04484199732542038, -0.006992965936660767, 0.033687327057123184, 0.030152522027492523, 0.014875064603984356, 0.034059684723615646, 0.014969883486628532, 0.0051020728424191475, -0.017129119485616684, 0.015857955440878868, 0.006357717327773571, -0.0037677197251468897, 0.03354717418551445, 0.01611381769180298, 0.019854536280035973, -0.022939808666706085, 0.004310410004109144, 0.0017677019350230694, 0.0117681585252285, -0.021919656544923782, -0.02282298356294632, 0.0027213427238166332, -0.004568435251712799, 0.004699883982539177, 0.05863208323717117, -0.004584131762385368, -0.017247114330530167, 0.0023146059829741716, 0.0012709135189652443, 0.034122250974178314, -0.021331369876861572, 0.016156986355781555, 0.013625462539494038, 0.004904613830149174, 0.002302330220118165, -0.001108012511394918, 0.0020278440788388252, -0.0023975647054612637, -0.016381721943616867, 0.019013872370123863, 0.02337726578116417, 0.006703143008053303, 0.014965745620429516, -0.003549879416823387, -0.03486905246973038, -0.02297857031226158, 0.025567738339304924, -0.02358623594045639, -0.027341807261109352, -0.03847093880176544, 0.005197623744606972, 0.0057507045567035675, -0.015463808551430702, -0.015819083899259567, -0.010775999166071415, -0.05396011844277382, -0.006711168214678764, -0.007149328477680683, 0.003612491535022855, -0.00910702534019947, -0.02030828967690468, 0.020503755658864975, 0.04457772150635719, -0.014639636501669884, -0.014983837492763996, -0.0250240508466959, 0.006850303150713444, 0.014797639101743698, 0.03413906693458557, 0.037458281964063644, 0.016492724418640137, 0.006832063663750887, 0.014203445985913277, -0.005357876420021057, 0.003605862148106098, -0.018238509073853493, -0.005723128095269203, 0.03944279998540878, -0.002604854991659522, 0.0068316650576889515, 0.00011313810682622716, -0.016355793923139572, -0.02485654503107071, -0.008753027766942978, -1.2862131804070032e-8, -0.0017942804843187332, -0.019233474507927895, -0.009178650565445423, 0.03580556437373161, 0.047186095267534256, -0.0005685063661076128, -0.042104143649339676, -0.0021033359225839376, 0.00023594708181917667, 0.02080802246928215, 0.05011195316910744, 0.0024075836408883333, 0.012059404514729977, 0.03695076331496239, 0.012450982816517353, -0.04870110750198364, 0.004957995843142271, -0.02728215977549553, 0.021524934098124504, 0.0038422930520027876, -0.013805382885038853, 0.055500298738479614, 0.011824723333120346, -0.013504491187632084, -0.026048924773931503, 0.005718626081943512, -0.008879553526639938, -0.07189635187387466, 0.0049566482193768024, 0.0005717917811125517, 0.03629028797149658, -0.014292328618466854, -0.07455343753099442, 0.027476267889142036, -0.004304468631744385, -0.028241926804184914, 0.04887539520859718, 0.009059244766831398, 0.0077643198892474174, 0.004897531121969223, -0.04789077118039131, -0.052941638976335526, -0.002880092477425933, -0.026761209592223167, -0.07482514530420303, -0.030587153509259224, -0.04565490782260895, 0.01847037672996521, 0.0167221762239933, -0.027243169024586678, 0.03356754779815674, 0.0017620442667976022, -0.008823532611131668, -0.00951255764812231, 0.008856736123561859, -0.022142469882965088, 0.01380390115082264, -0.004005830734968185, 0.03140118345618248, 0.01650155521929264, 0.012648514471948147, 0.03149869665503502, 0.0006506153731606901, -0.027329200878739357 ]
clickhouse-array-first-n-values
https://markhneedham.com/blog/2023/11/09/clickhouse-array-first-n-values
false
2023-11-08 00:44:37
ClickHouse - AttributeError: 'NoneType' object has no attribute 'array'
[ "clickhouse", "python", "til" ]
[ "TIL" ]
I was querying a ClickHouse server from a Python script a couple of days ago and ran into an error message when trying to create a Pandas DataFrame. In this blog, we'll see the error message and how to fix it. I'm gonna assume that we have a ClickHouse Server running and we're going to connect to it like this: [source, bash] ---- ./clickhouse client ---- .Output [source, text] ---- ClickHouse client version 23.10.1.1709 (official build). Connecting to localhost:9000 as user default. Connected to ClickHouse server version 23.11.1 revision 54466. ---- Next, let's create a table with one column and populate it with some values: [source, sql] ---- CREATE TABLE x(value Int32) ENGINE MergeTree() ORDER BY tuple(); INSERT INTO x VALUES(1) (4) (7) (12) (24); ---- Now we're going to query this table from a Python script. We'll first install https://pypi.org/project/clickhouse-connect/[`clickhouse-connect`^]: [source, bash] ---- pip install clickhouse-connect ---- And then we'll try to get back a Pandas DataFrame containing our result: [source, python] ---- import clickhouse_connect client = clickhouse_connect.get_client(host='localhost') client.query_df("FROM x SELECT *") ---- .Output [source, text] ---- File ~/Library/Caches/pypoetry/virtualenvs/fastembed-clickhouse-4QwM5Uh0-py3.11/lib/python3.11/site-packages/clickhouse_connect/datatypes/string.py:40, in String._finalize_column(self, column, ctx) 38 def _finalize_column(self, column: Sequence, ctx: QueryContext) -> Sequence: 39 if ctx.use_extended_dtypes and self.read_format(ctx) == 'native': ---> 40 return pd.array(column, dtype=pd.StringDtype()) 41 if ctx.use_numpy and ctx.max_str_len: 42 return np.array(column, dtype=f'<U{ctx.max_str_len}') AttributeError: 'NoneType' object has no attribute 'array' ---- It looks like we need to install Pandas, which I guess kinda makes sense. [source, bash] ---- pip install pandas ---- And then if we re-run our script, we'll see the following output: .Output [source, text] ---- value 0 1 1 4 2 7 3 12 4 24 ---- Job done.
In this post, we'll learn how to fix an error that we might get when creating a Pandas DataFrame from a query result.
uploads/2023/11/clickhouse-pandas-missing.png
[ 0.01466490887105465, 0.019012058153748512, -0.01880839094519615, 0.024754991754889488, 0.09777717292308807, 0.010005965828895569, 0.01733880490064621, 0.03592510148882866, -0.0037167472764849663, -0.010045074857771397, -0.018200397491455078, -0.014870651997625828, -0.07116889953613281, 0.017899855971336365, 0.0031092369463294744, 0.05765056237578392, 0.09410937130451202, 0.00012010907812509686, 0.03738633915781975, 0.021097538992762566, 0.004882282577455044, 0.04860487952828407, -0.03703610599040985, 0.03618286922574043, 0.027586642652750015, 0.023422865197062492, -0.011413675732910633, -0.006251316051930189, -0.043999508023262024, -0.02880118042230606, 0.025076081976294518, -0.013143873773515224, 0.011184369213879108, -0.02035258524119854, 0.016722271218895912, -0.005512664560228586, -0.004436891060322523, 0.019161446020007133, -0.011901145800948143, 0.020875930786132812, -0.08238182961940765, 0.02771274745464325, -0.01458441000431776, 0.032296739518642426, -0.02914782240986824, -0.007639389950782061, -0.044680267572402954, 0.008795746602118015, 0.006712439935654402, 0.013395349495112896, -0.055309634655714035, 0.06105031445622444, -0.011167130433022976, -0.050871580839157104, 0.02316942624747753, 0.037272579967975616, 0.03285515680909157, -0.051911551505327225, 0.02501562237739563, -0.021770840510725975, -0.010472165420651436, -0.0021947782952338457, 0.006988909095525742, 0.02559288963675499, 0.003996759653091431, -0.019005846232175827, 0.00028390015359036624, 0.06143460422754288, -0.03317898511886597, -0.015559496358036995, -0.005709354300051928, 0.004356920253485441, -0.033898986876010895, -0.022387275472283363, -0.018217509612441063, -0.043640635907649994, -0.011968808248639107, 0.041027747094631195, 0.03812609985470772, 0.04922639578580856, -0.01759941130876541, 0.0037852118257433176, 0.033751778304576874, 0.026077179238200188, 0.019368095323443413, -0.0403069406747818, -0.04423283040523529, -0.02656630612909794, -0.05154787376523018, 0.05618621036410332, -0.013629836961627007, -0.04034370929002762, 0.014652358368039131, 0.017754992470145226, -0.02550668828189373, 0.006937157362699509, 0.025830350816249847, 0.014579737558960915, 0.04493173956871033, -0.03282850608229637, -0.07067811489105225, 0.0008659606683067977, 0.047396764159202576, 0.023432742804288864, -0.06172521412372589, -0.000695707043632865, -0.03145613893866539, -0.027786336839199066, -0.017664752900600433, 0.006622654385864735, -0.030521465465426445, 0.008267299272119999, -0.026692528277635574, -0.0010651963530108333, -0.08383703231811523, 0.0671878308057785, -0.006337691098451614, -0.053281042724847794, -0.019463736563920975, -0.0020988003816455603, 0.05383286997675896, 0.0251026414334774, -0.033790264278650284, 0.08873248100280762, 0.01111074909567833, 0.047098927199840546, -0.033577561378479004, 0.05836861580610275, -0.013613118790090084, -0.05056321993470192, -0.016885900869965553, 0.0621693879365921, 0.002562266541644931, 0.00729651702567935, 0.015264698304235935, 0.0018072412349283695, 0.004021556116640568, 0.011452578008174896, 0.05053034424781799, 0.037916917353868484, 0.01948505826294422, -0.003455342724919319, -0.003600699594244361, 0.0267422404140234, 0.03457655757665634, 0.04787351191043854, -0.0034711759071797132, -0.06317630410194397, -0.03598139435052872, 0.02388422191143036, 0.009555426426231861, 0.04426255077123642, 0.05588652938604355, -0.026615986600518227, 0.0062037804163992405, 0.10222965478897095, 0.022030845284461975, -0.001153972465544939, -0.018872473388910294, -0.004616817459464073, 0.04455787315964699, 0.002159931231290102, -0.008531005121767521, 0.025378840044140816, 0.01441540289670229, -0.004747379571199417, -0.012321645393967628, 0.033937737345695496, -0.03658135235309601, 0.018225304782390594, -0.04201139882206917, -0.06927622109651566, 0.06455432623624802, -0.03386759012937546, 0.007242728024721146, 0.03361452743411064, 0.08329042792320251, 0.030741410329937935, 0.032028716057538986, 0.01770724169909954, -0.07741638273000717, 0.044969551265239716, -0.029089897871017456, -0.009785001166164875, 0.05449647083878517, 0.0033386836294084787, 0.0914604663848877, 0.021734517067670822, 0.0254514217376709, 0.043370261788368225, -0.04756660759449005, -0.08141414821147919, -0.03809225559234619, -0.02489348314702511, 0.0661989152431488, -0.05422840267419815, 0.003533860668540001, 0.08795654773712158, 0.022105127573013306, 0.03180559724569321, -0.01932838186621666, 0.0324728786945343, 0.0032478850334882736, -0.06511884182691574, -0.04475495591759682, 0.01699463650584221, 0.05616763234138489, -0.02340591326355934, 0.009521109983325005, 0.018301619216799736, -0.012317623011767864, -0.011221665889024734, 0.03442142903804779, -0.019967641681432724, 0.07438730448484421, 0.02965790405869484, 0.048965487629175186, -0.01617763377726078, 0.03757749870419502, -0.041638847440481186, 0.030976464971899986, 0.009715226478874683, -0.006002012174576521, -0.04597299173474312, 0.0002667537482921034, 0.12598708271980286, 0.06638838350772858, -0.0033294029999524355, -0.0557139627635479, 0.025368114933371544, -0.0092045022174716, -0.013853427954018116, 0.009697239845991135, -0.03231808543205261, -0.00688662426546216, 0.011086168698966503, -0.04415581002831459, -0.027181945741176605, -0.004809884820133448, -0.03426367789506912, 0.017251906916499138, 0.07193364202976227, -0.022503230720758438, 0.026659321039915085, 0.029221169650554657, -0.034121669828891754, -0.004270187579095364, -0.03049217164516449, -0.03089984878897667, -0.006390235852450132, 0.029003608971834183, -0.020117370411753654, 0.04955843836069107, -0.037191785871982574, -0.04431096091866493, -0.02452792599797249, -0.07035810500383377, 0.04346061870455742, 0.04121232405304909, 0.05786926671862602, -0.015280201099812984, 0.04083560034632683, -0.026281697675585747, -0.01419016532599926, 0.009238247759640217, -0.04059534892439842, -0.04412352293729782, -0.058769091963768005, 0.0004588035517372191, 0.03224977105855942, 0.008826697245240211, 0.004298009909689426, 0.01731872372329235, 0.009525647386908531, 0.0205658208578825, -0.000021324298359104432, 0.032576438039541245, 0.0008066532318480313, 0.011876234784722328, -0.0369216725230217, -0.005720885004848242, 0.028820117935538292, -0.044730834662914276, -0.02661275304853916, -0.003939575515687466, -0.07035733014345169, 0.006399453151971102, -0.07374213635921478, -0.040227655321359634, -0.0033474029041826725, 0.026803748682141304, 0.0447169728577137, 0.009823938831686974, -0.0005455749342218041, 0.05934285745024681, -0.007729492150247097, 0.009846730157732964, 0.015398215502500534, 0.01017748937010765, 0.03961404040455818, 0.030060317367315292, 0.00978785753250122, 0.033390678465366364, -0.014728822745382786, -0.007667665369808674, -0.05080987513065338, 0.0016858314629644156, -0.04817649722099304, -0.29166895151138306, 0.02140139602124691, 0.004628855735063553, -0.04938894137740135, 0.013261880725622177, -0.00024769941228441894, 0.02693272940814495, -0.02653527446091175, -0.02962309680879116, 0.018082311376929283, -0.019168686121702194, -0.03232796490192413, -0.0008042855188250542, 0.030479812994599342, 0.00799110159277916, 0.024813728407025337, -0.00620843842625618, -0.03814033418893814, 0.009788917377591133, 0.021779978647828102, -0.013937371782958508, -0.026000943034887314, -0.027233514934778214, 0.04309859126806259, 0.022846926003694534, 0.04652399197220802, -0.04328939691185951, 0.0264026690274477, -0.060673970729112625, -0.04614407941699028, 0.027418499812483788, -0.014294006861746311, -0.01621607504785061, 0.026122113689780235, -0.016596335917711258, 0.0049775573424994946, 0.0202880147844553, -0.013627421110868454, -0.016375606879591942, 0.0010489255655556917, -0.042185623198747635, -0.019430145621299744, -0.004254733212292194, 0.010090792551636696, 0.06683680415153503, -0.008387051522731781, -0.05100634694099426, 0.016392407938838005, -0.04142206907272339, 0.054663728922605515, -0.034309808164834976, -0.014898178167641163, -0.0270712748169899, 0.025527164340019226, -0.02535141259431839, 0.03563622012734413, -0.01706835627555847, 0.025903353467583656, -0.013815026730298996, -0.03611977398395538, -0.020105956122279167, -0.01754145883023739, -0.03312079235911369, -0.025947609916329384, -0.013614976778626442, -0.05663606524467468, -0.05566555634140968, -0.005466324742883444, 0.054590124636888504, 0.05386163294315338, -0.034386467188596725, 0.014180565252900124, 0.017114289104938507, -0.09607432782649994, 0.003575654700398445, -0.03017398901283741, -0.012340759858489037, 0.003961270209401846, -0.01908857561647892, 0.022680874913930893, -0.05204533040523529, -0.027569856494665146, 0.029186923056840897, 0.013184169307351112, 0.006636420730501413, -0.0228448323905468, 0.009275320917367935, 0.021317800506949425, -0.0361342690885067, -0.01161967869848013, 0.04879514127969742, -0.03164926916360855, -0.008169076405465603, 0.005460826214402914, -0.05054387450218201, 0.05258418619632721, 0.024280358105897903, 0.014485432766377926, 0.004320716951042414, 0.03162350878119469, 0.03197196125984192, -0.04101380705833435, -0.017367975786328316, -0.05764719471335411, -0.0020447608549147844, -0.0019477340392768383, -0.04606808349490166, 0.021355951204895973, 0.006762513425201178, 0.03694045543670654, -0.02008511684834957, -0.033946964889764786, 0.010744267143309116, -0.04646090045571327, -0.0011586875189095736, -0.013558272272348404, 0.004894351586699486, 0.010455694980919361, -0.02101774886250496, -0.01316005177795887, -0.09504204988479614, 0.019907694309949875, 0.02586323395371437, -0.00738100241869688, -0.0491170659661293, -0.01405219454318285, -0.00843039434403181, -0.001989747164770961, 0.010752157308161259, -0.01902337558567524, -0.0013601798564195633, 0.010421933606266975, 0.03578852117061615, -0.025556417182087898, 0.026234034448862076, -0.021180791780352592, -0.030498599633574486, -0.0014373849844560027, 0.011275799944996834, 0.03812149912118912, -0.0032746554352343082, -0.0004820381582248956, 0.002849813085049391, 0.009228733368217945, 0.04016563668847084, -0.0028303994331508875, 0.008405945263803005, 0.019022323191165924, 0.00798586755990982, 0.03396259620785713, 0.003997098654508591, -0.03384103998541832, 0.02761765569448471, -0.05456137657165527, -0.06533166021108627, -0.022031934931874275, 0.021468421444296837, -0.02333209663629532, -0.019913025200366974, -0.033259741961956024, -0.01937987469136715, -0.06250989437103271, 0.005068053491413593, 0.0013417770387604833, 0.010597246699035168, 0.05282636359333992, 0.021251412108540535, 0.020427286624908447, 0.016799770295619965, -0.01350459549576044, 0.007882751524448395, 0.03789212182164192, -0.02073807269334793, -0.005154590122401714, 0.023345913738012314, -0.021210001781582832, 0.011502993293106556, 0.014720985665917397, 0.005260080099105835, 0.012261850759387016, -0.008504589088261127, -0.006684271618723869, 0.034414395689964294, 0.020162325352430344, 0.027364086359739304, 0.018767472356557846, -0.03182812035083771, 0.01833830028772354, -0.02057669311761856, -0.0333331860601902, -0.02563984878361225, -0.00010167393338633701, 0.007291038986295462, 0.00983529444783926, -0.02212928608059883, -0.08355886489152908, 0.031568124890327454, 0.04127492010593414, 0.0066454410552978516, 0.002100251382216811, -0.020816601812839508, 0.00209254352375865, -0.04686693847179413, 0.06353608518838882, 0.09227646142244339, -0.06006978824734688, -0.0005555808311328292, -0.03712920844554901, 0.028491152450442314, -0.009177940897643566, 0.014905080199241638, -0.06849724799394608, -0.0259395744651556, -0.030881591141223907, 0.022344930097460747, 0.0023632259108126163, -0.04030154272913933, -0.041281700134277344, 0.026051830500364304, -0.002557138679549098, 0.022335458546876907, -0.002403352875262499, 0.017294393852353096, -0.03710460662841797, -0.028745343908667564, 0.01267888955771923, -0.01762203685939312, -0.025762803852558136, 0.022397112101316452, -0.015299055725336075, -0.0005995452520437539, -0.03393660485744476, 0.036406390368938446, -0.0011773016303777695, -0.013429651036858559, 0.0015097499126568437, -0.05890017747879028, -0.004213547799736261, 0.00916262436658144, 0.04489881172776222, 0.010552075691521168, 0.04009983688592911, -0.01255483366549015, -0.004601737949997187, -0.010086525231599808, 0.007073761895298958, -0.01477197278290987, -0.03751429542899132, 0.028554653748869896, 0.043918173760175705, 0.007165839429944754, 0.002049600938335061, -0.005792425479739904, -0.0459788478910923, 0.04029260575771332, -0.05364467576146126, -0.00814664177596569, 0.008065223693847656, -0.07085295021533966, 0.02347606047987938, 0.011504597961902618, 0.017221707850694656, -0.06599949300289154, 0.05961788818240166, 0.014367845840752125, 0.037868939340114594, 0.05450309067964554, 0.006591842509806156, 0.039422135800123215, -0.03604232147336006, -0.04316442832350731, -0.085492342710495, -0.009244373999536037, 0.008211989887058735, -0.016067776829004288, -0.02619662508368492, -0.007253881078213453, 0.0063074734061956406, 0.012980709783732891, -0.06990820914506912, -0.006913912016898394, 0.041321638971567154, 0.0011262615444138646, -0.010159377008676529, 0.01879602111876011, -0.013787597417831421, 0.027816718444228172, 0.019245052710175514, -0.03635672479867935, -0.04080873727798462, -0.0168803408741951, 0.06628303229808807, 0.010246865451335907, 0.01875070482492447, -0.03554849699139595, -0.028993580490350723, 0.07640723139047623, 0.018041910603642464, 0.0026320021133869886, 0.04075445607304573, -0.028323553502559662, 0.05028136819601059, 0.006169031839817762, 0.012542692013084888, -0.000584473367780447, 0.02078879252076149, -0.004388574510812759, -0.05437389016151428, 0.016628306359052658, 0.010389345698058605, 0.045567587018013, -0.06156677007675171, 0.06420747190713882, 0.0022965234238654375, -0.028680847957730293, -0.031879935413599014, -0.011860684491693974, -0.058239325881004333, -0.014345282688736916, -0.03787606209516525, -0.0019082953222095966, -0.036320749670267105, 0.0658378005027771, -0.014872698113322258, 0.004785048775374889, 0.04686379432678223, -0.027866989374160767, 0.028386315330863, 0.039735373109579086, 0.05298181250691414, 0.0841912105679512, 0.00947262067347765, 0.039020489901304245, 0.059692732989788055, -0.00016377129941247404, -0.05196872726082802, -0.00792021956294775, -0.08099289983510971, -0.005566623993217945, -0.060693252831697464, -0.007278320379555225, 0.053670257329940796, 0.003704800270497799, 0.04813924804329872, -0.011624297127127647, 0.021447451785206795, -0.0251717958599329, 0.005347813945263624, 0.0455145500600338, 0.037041205912828445, 0.013756700791418552, 0.04396292194724083, -0.016943348571658134, -0.0017486994620412588, 0.0004172828048467636, -0.010419388301670551, -0.04582064226269722, 0.029701927676796913, 0.016816629096865654, 0.025397032499313354, 0.04445852339267731, 0.025941506028175354, 0.07424883544445038, -0.030803333967924118, -0.02227124571800232, 0.007369129452854395, 0.036884285509586334, -0.004905510228127241, 0.027389952912926674, -0.001503645908087492, -0.008725494146347046, 0.0035506479907780886, -0.03527679294347763, -0.0010504634119570255, -0.019255563616752625, -0.045700352638959885, 0.036457933485507965, -0.021543141454458237, -0.004014614038169384, 0.010040883906185627, 0.033656924962997437, -0.015667762607336044, -0.03808973357081413, -0.06273828446865082, -0.016172243282198906, -0.07123185694217682, -0.01829378679394722, 0.015819242224097252, -0.02537701278924942, -0.03131302073597908, -0.03077448531985283, -0.006737475283443928, -0.003920133225619793, -0.02213713899254799, -0.045055460184812546, -0.07145959883928299, 0.03626894950866699, 0.017500368878245354, 0.017235543578863144, 0.045270711183547974, 0.07907280325889587, -0.015902472659945488, -0.005897509399801493, -0.008822625502943993, 0.02428530715405941, 0.047431010752916336, -0.012798896059393883, 0.0408276692032814, -0.07461485266685486, 0.02863139472901821, -0.00547644542530179, 0.03361477330327034, -0.0702928900718689, 0.015512962825596333, 0.0558260977268219, 0.02327262982726097, 0.045838747173547745, 0.007062109187245369, 0.0035338690504431725, -0.057185932993888855, -0.04246601089835167, -0.009358460083603859, 0.020160173997282982, 0.046740759164094925, -0.03652508556842804, 0.07646168023347855, 0.03801135718822479, -0.01413005217909813, -0.021335076540708542, -0.0015759816160425544, 0.006847104988992214, 0.020747601985931396, -0.041449595242738724, -0.09373762458562851, -0.051659706979990005, -0.08680269867181778, -0.029571527615189552, 0.011368775740265846, -0.027113929390907288, -0.01899046078324318, -0.011745158582925797, 0.009869366884231567, -0.054186854511499405, 0.0291146207600832, -0.04595782980322838, 0.0018227045657113194, -0.023001298308372498, -0.056339289993047714, -0.012514614500105381, 0.034333135932683945, 0.014797649346292019, -0.026515619829297066, 0.0191127248108387, -0.0318748839199543, -0.005496609024703503, -0.022905129939317703, 0.014667465351521969, 0.05176756531000137, -0.018945524469017982, 0.03093375265598297 ]
[ -0.07452546060085297, -0.054952386766672134, -0.03892380744218826, -0.013910689391195774, 0.026097219437360764, -0.08145023882389069, -0.04290426895022392, 0.00466781435534358, 0.04266132041811943, 0.009182106703519821, 0.036218248307704926, -0.0780896246433258, 0.00141887494828552, -0.03338785097002983, 0.05264437943696976, 0.013737659901380539, -0.0394982248544693, -0.08341067284345627, -0.030192064121365547, 0.042784787714481354, -0.028325019404292107, -0.03469081595540047, -0.04643373191356659, -0.06742749363183975, -0.013200731948018074, 0.04440999776124954, 0.04599449038505554, -0.05222467705607414, -0.008650838397443295, -0.19306525588035583, 0.02791290171444416, -0.02169008180499077, -0.0024148537777364254, -0.03427182510495186, 0.048501621931791306, 0.008228650316596031, 0.04580147936940193, -0.024347608909010887, 0.02341010607779026, 0.053346797823905945, 0.025776274502277374, 0.003357339883223176, -0.05778416991233826, -0.01004126388579607, 0.05453482270240784, -0.002708347048610449, -0.010058663785457611, -0.0012476876145228744, 0.012938410975039005, -0.0009238229249604046, -0.07796509563922882, 0.011662702076137066, -0.0009751208708621562, -0.031556177884340286, 0.012927591800689697, 0.04175680875778198, 0.05244717746973038, 0.06775572896003723, 0.011366770602762699, 0.0179224144667387, 0.04358430206775665, -0.006468414328992367, -0.12906129658222198, 0.10490811616182327, 0.03597043454647064, 0.042488452047109604, -0.04032444581389427, -0.019300490617752075, -0.007203929126262665, 0.07478971034288406, -0.02171369269490242, -0.0345621295273304, -0.028607675805687904, 0.07449299097061157, 0.012283146381378174, -0.03063952922821045, -0.013569751754403114, -0.0031300606206059456, 0.05407797545194626, -0.0019119695061817765, -0.05515483766794205, -0.014056798070669174, -0.012922392226755619, -0.049460992217063904, -0.015225374139845371, 0.00876749586313963, -0.029499053955078125, 0.06104401871562004, 0.0006971787079237401, -0.00012035735562676564, 0.03964586555957794, -0.03695350140333176, 0.04154568910598755, 0.020488234236836433, -0.07136576622724533, 0.013751478865742683, -0.0019623080734163523, 0.013651573099195957, -0.019392985850572586, 0.3805526793003082, -0.03866836056113243, 0.008744706399738789, 0.0031852517277002335, 0.05625512823462486, 0.009079361334443092, -0.02942872978746891, -0.006044130306690931, -0.027308257296681404, 0.02375187538564205, -0.028967076912522316, -0.008749091997742653, -0.03176216408610344, 0.07012918591499329, -0.08078739792108536, 0.0020454139448702335, 0.004100279416888952, -0.028084563091397285, -0.01881345547735691, -0.0200271587818861, 0.024103449657559395, -0.026544559746980667, -0.005149789620190859, 0.023746432736516, 0.01447378657758236, 0.018846994265913963, 0.0229170061647892, 0.024089457467198372, 0.06148400902748108, 0.021071862429380417, -0.0007712824153713882, 0.022145211696624756, -0.04506174102425575, -0.06739567220211029, 0.01619284600019455, 0.005747389979660511, 0.01612030901014805, 0.04345359280705452, -0.014537671580910683, 0.017359649762511253, 0.001173376920633018, -0.004388068336993456, -0.09666881710290909, 0.01970857009291649, 0.019682159647345543, -0.010737383738160133, 0.12096980959177017, 0.003096130210906267, -0.006817189510911703, -0.03790392354130745, -0.020436279475688934, 0.003202850464731455, 0.04389434680342674, -0.008366569876670837, -0.05629483237862587, -0.012760978192090988, 0.034689683467149734, 0.05241353437304497, 0.01392958965152502, -0.06634098291397095, -0.03956422582268715, 0.009440182708203793, -0.05551794543862343, -0.05792878568172455, 0.007969476282596588, 0.03446872532367706, -0.13117699325084686, -0.05499454587697983, 0.03723091632127762, -0.030585817992687225, -0.06310912221670151, 0.005887403152883053, 0.012388772331178188, -0.07325142621994019, 0.00984806939959526, 0.047288354486227036, -0.04904766008257866, -0.01955682970583439, 0.02852562814950943, 0.07040248811244965, 0.012010638602077961, 0.012930679135024548, 0.023025693371891975, -0.012861156836152077, -0.017185326665639877, -0.046278879046440125, -0.09173884242773056, -0.05357005447149277, -0.005139520391821861, -0.018632909283041954, -0.05979881435632706, -0.013524306938052177, -0.017801441252231598, -0.059435222297906876, 0.08039990812540054, -0.007532800082117319, -0.030571378767490387, 0.0444519929587841, -0.0004966590786352754, 0.020591681823134422, -0.030121833086013794, 0.023038377985358238, -0.002725231694057584, -0.01485677994787693, 0.05305348336696625, -0.06852441281080246, 0.02452089637517929, 0.04162997752428055, -0.014058541506528854, 0.07304322719573975, 0.02353692799806595, -0.02362949401140213, 0.011832905001938343, 0.0015428371261805296, 0.013003790751099586, -0.008777356706559658, 0.022809863090515137, -0.02934746816754341, 0.014344202354550362, 0.024157743901014328, 0.03432247042655945, -0.012166752479970455, -0.016341112554073334, -0.02900448441505432, -0.3666737377643585, -0.037443213164806366, -0.018308453261852264, -0.033382244408130646, -0.019340453669428825, -0.029182570055127144, 0.010302354581654072, 0.009314240887761116, -0.02948911301791668, 0.051209956407547, 0.12346533685922623, -0.007301329169422388, 0.037145283073186874, -0.0827515497803688, -0.047825563699007034, 0.011081686243414879, -0.021870138123631477, -0.023460542783141136, -0.033032242208719254, 0.012923111207783222, 0.013066031970083714, -0.018862754106521606, -0.037348177284002304, -0.03909078240394592, 0.016168879345059395, -0.02230703830718994, 0.13748927414417267, 0.016091033816337585, 0.07218698412179947, -0.05891324579715729, 0.043022993952035904, 0.022518852725625038, 0.005749070085585117, -0.07936728745698929, 0.0045838430523872375, -0.008126011118292809, 0.0031906436197459698, 0.024065475910902023, -0.02525261789560318, -0.004577944986522198, -0.07105744630098343, 0.0366026870906353, -0.04832375422120094, -0.04878750815987587, -0.01123576145619154, 0.001289878971874714, 0.015073702670633793, -0.009686481207609177, -0.0372857041656971, 0.10384566336870193, 0.04196358844637871, 0.029321685433387756, 0.03834851458668709, 0.07708543539047241, 0.0070607103407382965, 0.021107789129018784, -0.051802944391965866, -0.008343052119016647, -0.005693863146007061, -0.016317233443260193, 0.03015967458486557, 0.013135356828570366, 0.04359930381178856, -0.04724235460162163, -0.015403760597109795, -0.026547975838184357, 0.031561654061079025, -0.004692690912634134, 0.08464770019054413, -0.023675374686717987, -0.032333943992853165, 0.10147685557603836, 0.008706404827535152, 0.033682093024253845, 0.024838212877511978, 0.03827233985066414, -0.017459090799093246, 0.019289981573820114, 0.008003007620573044, -0.008037283085286617, 0.05271410569548607, -0.02445216290652752, 0.060712024569511414, -0.009229052811861038, 0.04626474529504776, 0.024630049243569374, 0.006780179683119059, 0.007449370343238115, 0.056556060910224915, -0.005558964796364307, -0.03550649434328079, -0.011338381096720695, -0.03884320333600044, -0.028554286807775497, 0.05056899040937424, 0.019667236134409904, -0.2581635117530823, 0.032680366188287735, 0.026630140841007233, 0.04328346252441406, -0.0073357257060706615, -0.005046480800956488, -0.004518582485616207, -0.033519405871629715, 0.0225428007543087, 0.006157321855425835, 0.01097849477082491, 0.027052395045757294, 0.014329683035612106, -0.007218093611299992, 0.0061988867819309235, -0.013439004309475422, 0.026651740074157715, 0.03675106167793274, 0.0020207776688039303, 0.019102714955806732, 0.031592193990945816, -0.018715737387537956, 0.14120179414749146, 0.053882330656051636, 0.02530612237751484, -0.023100314661860466, 0.009028661996126175, 0.01279854029417038, 0.06961581110954285, 0.038655176758766174, -0.004720580298453569, -0.022013671696186066, 0.030123738572001457, -0.002711531473323703, 0.05063553899526596, -0.03554864227771759, -0.03340426832437515, 0.02658461593091488, 0.030277132987976074, -0.01928665302693844, -0.025813370943069458, 0.029497947543859482, -0.049917638301849365, 0.045745767652988434, 0.048500679433345795, -0.007117875851690769, -0.010838628746569157, -0.059519294649362564, -0.006141346879303455, 0.015142934396862984, -0.026330607011914253, -0.021306611597537994, 0.010885030031204224, 0.001264135236851871, -0.013132891617715359, 0.06714170426130295, 0.0647214725613594, 0.020258331671357155, 0.03746763616800308, 0.022822247818112373, 0.02548176236450672, -0.08096181601285934, 0.10568269342184067, 0.012479505501687527, 0.01990477554500103 ]
[ 0.003307468956336379, -0.022096356377005577, -0.042055923491716385, 0.003404630348086357, -0.017779091373085976, -0.04654973745346069, 0.027110416442155838, -0.001978775952011347, -0.029374338686466217, -0.020314017310738564, 0.0022324472665786743, 0.027545638382434845, 0.0011340354103595018, -0.0391521155834198, -0.014389915391802788, -0.006015182007104158, -0.00365129834972322, -0.0019467726815491915, 0.05082879215478897, -0.013264523819088936, -0.06157882139086723, 0.03539155796170235, 0.021920325234532356, -0.014049593359231949, -0.02099035121500492, -0.015997398644685745, -0.05379840359091759, 0.004671343602240086, 0.020922964438796043, -0.1211896538734436, -0.01902845874428749, -0.03208770602941513, -0.01757398061454296, -0.011095073074102402, 0.027798335999250412, 0.02194293402135372, -0.014220135286450386, 0.015526847913861275, -0.0018951265374198556, 0.002171935047954321, 0.029842067509889603, -0.04206841439008713, -0.008104288019239902, 0.007368628866970539, -0.05069033056497574, 0.011129450984299183, -0.05732513964176178, -0.004149398300796747, 0.0032741723116487265, 0.001280511962249875, -0.04177567735314369, 0.04864638298749924, -0.0031730341725051403, -0.017603810876607895, 0.012203941121697426, -0.0060543459840118885, -0.019792355597019196, -0.003766773035749793, -0.01299266517162323, 0.026401134207844734, -0.00732820387929678, 0.015231318771839142, -0.038322143256664276, -0.029110325500369072, 0.0008564762538298965, -0.008367071859538555, -0.028462514281272888, -0.00893003772944212, -0.023297714069485664, 0.002130966866388917, -0.021348463371396065, 0.0028808151837438345, -0.039519671350717545, -0.028375493362545967, -0.04547570273280144, 0.011867214925587177, 0.004365274682641029, -0.03101668320596218, 0.002410061890259385, -0.003680784720927477, -0.04265885800123215, 0.006722705438733101, -0.023732857778668404, 0.024111006408929825, 0.0029640619177371264, -0.036024075001478195, 0.02080407179892063, 0.016450578346848488, -0.011125807650387287, -0.018436390906572342, 0.011250686831772327, -0.0005037235678173602, -0.003856538562104106, 0.039965029805898666, -0.06279872357845306, 0.016085384413599968, -0.008441289886832237, -0.025970445945858955, -0.0068154167383909225, 0.846871554851532, -0.023599140346050262, 0.017844367772340775, 0.024027343839406967, 0.005590714979916811, -0.025503208860754967, -0.011750924400985241, -0.00955495797097683, -0.00038059803773649037, 0.0016742161242291331, -0.025731874629855156, -0.007344346027821302, 0.0028851847164332867, 0.032219674438238144, -0.015556983649730682, 0.04503411427140236, -0.003030588151887059, -0.020017163828015327, -0.018539706245064735, 0.021375922486186028, -0.007159202825278044, 0.032083138823509216, -0.013433392159640789, -0.021544961258769035, 0.02424532175064087, 0.015688270330429077, -0.16839875280857086, 0.02801228128373623, -7.277408384124009e-33, 0.0014762268401682377, -0.026882924139499664, 0.0014639372238889337, -0.013686140067875385, 0.05916022136807442, 0.031971536576747894, -0.009490537457168102, -0.00859981682151556, -0.019737007096409798, 0.0014196716947481036, 0.026237837970256805, -0.015668364241719246, -0.024109764024615288, -0.03210899606347084, 0.01355341263115406, -0.003526243381202221, -0.0046957144513726234, 0.059644680470228195, -0.010971295647323132, 0.022106243297457695, 0.03877198323607445, 0.07290614396333694, 0.027070676907896996, 0.037832919508218765, 0.04056503251194954, -0.004797069355845451, -0.03004971332848072, 0.04616755247116089, -0.00669662794098258, -0.04017676040530205, -0.05628169700503349, 0.005861443933099508, -0.033539991825819016, -0.024797549471259117, -0.02099388651549816, -0.041757047176361084, -0.0010151367168873549, -0.022837139666080475, -0.018773801624774933, 0.01633186638355255, -0.0487782247364521, 0.005221857689321041, -0.005016965791583061, -0.025700856000185013, -0.04406610131263733, 0.009864692576229572, 0.017868606373667717, 0.020271599292755127, -0.019144335761666298, -0.0031054045539349318, 0.028714919462800026, -0.027832113206386566, 0.01676684059202671, 0.01663677766919136, -0.020152335986495018, 0.00924115814268589, -0.0003587146638892591, -0.0032325568608939648, 0.018603119999170303, 0.014885730110108852, -0.0012470873771235347, -0.030420595780014992, 0.015823248773813248, -0.0072111934423446655, 0.00923007633537054, -0.020089011639356613, 0.0414508581161499, 0.020568307489156723, 0.01572941616177559, 0.003762141102924943, -0.018707597628235817, -0.00207101390697062, -0.018703389912843704, -0.03973063826560974, 0.05722588300704956, -0.03518254682421684, 0.0016166992718353868, -0.007099277805536985, 0.029358135536313057, 0.03134660795331001, 0.02644440159201622, -0.013972935266792774, -0.03056982345879078, -0.005055560730397701, -0.024097612127661705, -0.023977532982826233, 0.008080940693616867, 0.05599774420261383, -0.029212186112999916, -0.020592547953128815, -0.003977982327342033, 0.013892588205635548, 0.03893285617232323, -0.01103394664824009, -0.010094848461449146, 6.361887833297517e-33, 0.000841549423057586, -0.008979356847703457, -0.0009384883451275527, 0.002010401338338852, 0.018556412309408188, 0.025603681802749634, 0.012012938968837261, 0.0069855935871601105, -0.04409664496779442, 0.026189841330051422, -0.02751358412206173, 0.011290565133094788, 0.0077780685387551785, 0.026864180341362953, 0.045297883450984955, 0.02394331432878971, 0.011977986432611942, 0.017940912395715714, -0.02361445687711239, -0.007607261650264263, 0.015124717727303505, 0.014154641889035702, 0.020283935591578484, 0.03291592001914978, 0.05151824653148651, 0.011764660477638245, 0.0006305085262283683, 0.006202442105859518, 0.003894119756296277, -0.019949207082390785, -0.009917337447404861, 0.013764951378107071, -0.011761077679693699, -0.003295155009254813, -0.0015410524792969227, 0.045223865658044815, 0.03302089124917984, -0.013563210144639015, 0.0011255971621721983, -0.003100817324593663, 0.05915582552552223, -0.005113521590828896, 0.005472662393003702, 0.05210858955979347, 0.00672686705365777, 0.015164095908403397, -0.0008947887108661234, 0.02023446187376976, -0.005556483753025532, 0.025156430900096893, -0.0005978720728307962, 0.025329526513814926, 0.02756437286734581, 0.018543938174843788, -0.009521005675196648, 0.00418692734092474, -0.0041526202112436295, 0.017237793654203415, -0.02553008310496807, -0.02874133177101612, -0.014946975745260715, -0.004477619659155607, -0.028562767431139946, 0.044481296092271805, -0.04073202610015869, -0.027016224339604378, -0.056070856750011444, -0.006586259230971336, 0.0011374851455911994, -0.01948930323123932, -0.03836604207754135, -0.012305861338973045, -0.0036726307589560747, 0.024446982890367508, 0.007965353317558765, 0.012598414905369282, -0.010010474361479282, -0.005026943050324917, 0.03485855460166931, 0.03442680463194847, 0.03383438661694527, -0.008627910166978836, 0.0395507737994194, -0.01550128124654293, -0.016217339783906937, -0.008456597104668617, -0.04467129707336426, 0.024509821087121964, 0.0313313864171505, 0.004726964980363846, -0.008412410505115986, -0.03363073617219925, -0.0219874270260334, 0.026933303102850914, -0.016513748094439507, -1.2935391424662157e-8, -0.01092529483139515, 0.018471941351890564, -0.0020869558211416006, 0.012051488272845745, 0.011783570982515812, 0.0021205940283834934, -0.021594412624835968, 0.030733704566955566, -0.017700964584946632, 0.02443019673228264, 0.018527070060372353, -0.000790436752140522, 0.01424406748265028, 0.04680696502327919, 0.019812483340501785, 0.0005223677726462483, 0.006559374742209911, -0.035845644772052765, 0.03494805097579956, 0.019151784479618073, 0.020846806466579437, 0.027665266767144203, 0.012117230333387852, 0.009676190093159676, -0.014769715256989002, 0.014628773555159569, 0.021496718749403954, -0.07723069190979004, -0.03964044526219368, -0.005475446116179228, 0.0193552915006876, -0.026241125538945198, -0.0798008069396019, 0.005789586342871189, -0.032223545014858246, -0.010716277174651623, 0.021907120943069458, 0.0018140524625778198, 0.00007637816452188417, -0.003598694922402501, 0.0023473063483834267, -0.00826064869761467, -0.04482121393084526, -0.02014129050076008, -0.03480127826333046, -0.0078556714579463, -0.05574824661016464, 0.03796316310763359, 0.027583474293351173, -0.05030636861920357, 0.007337287534028292, -0.00511253671720624, 0.01549171656370163, -0.013592173345386982, 0.03393863886594772, 0.0012256550835445523, -0.001149976160377264, 0.023424586281180382, 0.021383769810199738, 0.0014350919518619776, 0.012746920809149742, 0.04341212660074234, -0.010314435698091984, -0.021254319697618484 ]
clickhouse-client-array-nonetype-no-attribute
https://markhneedham.com/blog/2023/11/08/clickhouse-client-array-nonetype-no-attribute
false
2023-11-06 00:44:37
ClickHouse: Convert date or datetime to epoch
[ "clickhouse", "clickhouse-local", "til" ]
[ "TIL" ]
:icons: font I've been working with dates in ClickHouse today and I wanted to convert some values into epoch seconds/milliseconds to use with another tool. We're going to document how to do that in this blog post, for future me if no one else. Let's start an instance of ClickHouse Local: [source, bash] ---- clickhouse local -m ---- And now we'll write a query that returns the current date/time: [source, sql] ---- SELECT now() AS time; ---- .Output [source, text] ---- ┌────────────────time─┐ │ 2023-11-06 14:58:19 │ └─────────────────────┘ ---- If we want to convert this value to epoch seconds, we can use the `toUnixTimestamp` function. [source, sql] ---- SELECT toUnixTimestamp(now()) AS time ---- .Output [source, text] ---- ┌───────time─┐ │ 1699282944 │ └────────────┘ ---- There's an equivalent function, `toUnixTimestamp64Milli`, that will give us epoch millis. Let's try that: [source, sql] ---- SELECT toUnixTimestamp64Milli(now()) AS time; ---- .Output [source, text] ---- Received exception: Code: 43. DB::Exception: The only argument for function toUnixTimestamp64Milli must be DateTime64: While processing toUnixTimestamp64Milli(now()) AS time. (ILLEGAL_TYPE_OF_ARGUMENT) ---- Hmmm, looks like we'll need to do some casting. [source, sql] ---- SELECT toUnixTimestamp64Milli(cast(now(), 'DateTime64')) AS time; ---- Or we could use the https://clickhouse.com/docs/en/sql-reference/data-types/datetime64[`toDateTime64`^] function [source, sql] ---- SELECT toUnixTimestamp64Milli(toDateTime64(now(), 3)) AS time; -- <.> ---- <.> `3` means a granularity of `milliseconds` .Output [source, text] ---- ┌──────────time─┐ │ 1699283200000 │ └───────────────┘ ---- If we genuinely do want the current time down to the millisecond, we'll need to use the `now64` function instead: [source, sql] ---- SELECT toUnixTimestamp64Milli(now64()) AS time; ---- .Output [source, text] ---- ┌──────────time─┐ │ 1699283352267 │ └───────────────┘ ---- How about if we only have a date, without a time? We can get that in epoch seconds like this: [source, sql] ---- select toUnixTimestamp(today()) AS date; ---- .Output [source, text] ---- ┌───────date─┐ │ 1699228800 │ └────────────┘ ---- If we want to get epoch millis, we need to convert the value to a `DateTime64`: [source, sql] ---- SELECT toUnixTimestamp64Milli(toDateTime64(today(), 3)) AS date; ---- .Output [source, text] ---- ┌──────────date─┐ │ 1699228800000 │ └───────────────┘ ----
In this post, we'll learn how to convert a date or datetime to epoch in milliseconds in ClickHouse
uploads/2023/11/clickhouse-date-epoch.png
[ 0.0009953348198905587, 0.021905358880758286, -0.021782400086522102, -0.0026600579731166363, 0.08620533347129822, 0.032470688223838806, 0.015077678486704826, 0.04294422268867493, -0.007729467935860157, -0.0064375936053693295, 0.009818168357014656, -0.003085970412939787, -0.08273491263389587, 0.038135379552841187, 0.006596983876079321, 0.0691208690404892, 0.05970342084765434, -0.018222490325570107, -0.00011304436338832602, -0.015812236815690994, 0.004605565685778856, 0.027292974293231964, -0.0262072142213583, 0.03751254454255104, 0.017250657081604004, 0.05819081887602806, -0.051932547241449356, -0.03461409732699394, -0.048703864216804504, -0.0017966751474887133, 0.015487153083086014, -0.0010263246949762106, 0.004153598565608263, 0.009290334768593311, 0.008747011423110962, -0.015861522406339645, -0.011374135501682758, 0.01204878930002451, 0.01815241202712059, 0.008522074669599533, -0.041413914412260056, 0.001709420932456851, 0.004473793786019087, 0.021891970187425613, -0.03473564237356186, -0.013179127126932144, -0.030506277456879616, 0.0010869535617530346, -0.04439819976687431, -0.0015651211142539978, -0.06401965022087097, 0.046786870807409286, -0.019084813073277473, -0.037725724279880524, -0.003595466958358884, 0.059802450239658356, 0.030038997530937195, -0.04927642643451691, -0.006105658132582903, -0.033936746418476105, 0.032712697982788086, -0.002824641764163971, 0.038147393614053726, 0.010254168882966042, 0.0095759192481637, 0.019325753673911095, -0.004397192969918251, 0.04985543712973595, -0.04380898177623749, 0.0013077548937872052, 0.005455025006085634, 0.0008746813982725143, -0.05885990709066391, -0.008672823198139668, -0.003290976397693157, -0.03829358145594597, -0.021354179829359055, 0.04360632598400116, 0.052736181765794754, 0.05678987503051758, 0.003526304615661502, 0.005657668691128492, 0.07472250610589981, 0.022680578753352165, 0.03363119065761566, -0.01763305440545082, -0.04967411234974861, -0.003774338634684682, -0.044952914118766785, 0.04780561849474907, 0.013675251975655556, -0.045510146766901016, 0.035307057201862335, 0.029498469084501266, -0.005946725141257048, 0.01786825619637966, -0.0132417231798172, -0.008709137327969074, 0.0358455516397953, -0.011306027881801128, -0.0670170933008194, -0.01003189291805029, 0.07553882151842117, 0.01992727443575859, -0.04650036618113518, -0.013097932562232018, -0.07097631692886353, -0.020477307960391045, 0.03573576360940933, 0.012663357891142368, -0.05197588726878166, 0.030651768669486046, -0.010980682447552681, 0.009007163345813751, -0.04948204755783081, 0.037560686469078064, 0.01663036085665226, -0.02659556455910206, -0.009710600599646568, -0.01485191099345684, 0.07090127468109131, 0.014998805709183216, -0.04180968925356865, 0.07462678849697113, 0.014783281832933426, 0.07167710363864899, 0.0032831260468810797, 0.03373473137617111, -0.006938145961612463, -0.0605735257267952, -0.017179222777485847, 0.02691228874027729, -0.018754230812191963, 0.021104130893945694, 0.011148110032081604, 0.0037749025505036116, -0.0005681363400071859, 0.010252637788653374, 0.060955774039030075, 0.010546412318944931, 0.03809762001037598, -0.011485588736832142, -0.003958903718739748, -0.014792162925004959, 0.027506178244948387, 0.0240640752017498, 0.003674641717225313, -0.05614914745092392, -0.0343334898352623, 0.020995527505874634, 0.01287661213427782, 0.0448949821293354, 0.051905978471040726, -0.045647501945495605, 0.004048755392432213, 0.09925071895122528, 0.016436368227005005, -0.012132281437516212, -0.030082805082201958, -0.008446219377219677, 0.043705493211746216, 0.008544784039258957, -0.04148917272686958, 0.021787581965327263, 0.028006648644804955, -0.025210093706846237, 0.006691005080938339, 0.02081356570124626, -0.06295338273048401, -0.000043283402192173526, -0.03213990479707718, -0.06879439949989319, 0.07260638475418091, -0.03852370008826256, -0.011612200178205967, 0.027814749628305435, 0.07754606753587723, 0.04015001282095909, 0.024058399721980095, 0.014694464392960072, -0.09435296803712845, 0.02805386669933796, -0.007241126615554094, -0.015905238687992096, 0.03996873274445534, -0.020607871934771538, 0.0734659731388092, -0.004266077186912298, -0.015800701454281807, 0.02745077945291996, -0.04742204770445824, -0.080726258456707, -0.031214317306876183, -0.01412029005587101, 0.047717951238155365, -0.05580103397369385, -0.009515954181551933, 0.05637383460998535, 0.030207673087716103, 0.04162529855966568, 0.0037209996953606606, 0.014607097022235394, 0.0033624768257141113, -0.04768316075205803, -0.019310683012008667, 0.016994142904877663, 0.06841938197612762, -0.020390508696436882, -0.005118562839925289, -0.011031312867999077, -0.011358394287526608, 0.007112949620932341, 0.03824822977185249, 0.015863727778196335, 0.04365700110793114, 0.04710090905427933, 0.0354706309735775, -0.009476101025938988, 0.013944779522716999, -0.05377413332462311, 0.034150294959545135, 0.043623778969049454, -0.020601660013198853, -0.03978174179792404, 0.01334379892796278, 0.1108725294470787, 0.05230887234210968, -0.012445265427231789, -0.034767035394907, 0.0008286135271191597, 0.004139323253184557, -0.03749355673789978, 0.02102718874812126, -0.01967359520494938, 0.01671551540493965, -0.014729509130120277, 0.0003155500453431159, -0.0007420441834256053, -0.00106158631388098, -0.03276380896568298, 0.021401382982730865, 0.04646840691566467, 0.0010824998607859015, 0.05949806421995163, -0.005463672801852226, -0.04585598409175873, -0.013456553220748901, -0.044272273778915405, -0.04157550632953644, -0.005878960248082876, 0.01759483851492405, -0.021235307678580284, 0.0337919220328331, -0.051246628165245056, -0.02766912244260311, -0.03233734518289566, -0.057289790362119675, 0.055387549102306366, 0.011770244687795639, 0.0625397339463234, 0.014094672165811062, 0.05491109564900398, 0.005090966355055571, 0.012148067355155945, -0.035141125321388245, -0.05000018700957298, -0.04032479599118233, -0.0037187538109719753, 0.010221322998404503, 0.015358403325080872, 0.0406624861061573, 0.03140249475836754, 0.01649637147784233, -0.013661022298038006, -0.026321839541196823, -0.015095415525138378, 0.030690103769302368, -0.018160659819841385, -0.038371503353118896, -0.03553071990609169, -0.006576200481504202, 0.05787745118141174, -0.0369468554854393, -0.04460848495364189, -0.023088159039616585, -0.07830403745174408, 0.04111618921160698, -0.07782935351133347, -0.021244972944259644, -0.028246860951185226, 0.028776997700333595, 0.05177316069602966, 0.005613972432911396, 0.04563479125499725, 0.0794578418135643, -0.006384630687534809, 0.017167070880532265, 0.03462567925453186, 0.007896244525909424, 0.018018553033471107, -0.0021402626298367977, 0.00116591970436275, 0.05617029219865799, 0.004134537652134895, -0.013217388652265072, -0.06669952720403671, -0.006746265105903149, -0.05114752799272537, -0.24917452037334442, 0.023146485909819603, -0.06099562719464302, -0.04869355261325836, 0.022120513021945953, -0.0317036509513855, 0.03940032422542572, -0.052186742424964905, -0.01155244093388319, 0.020946314558386803, -0.0292816162109375, -0.04011256992816925, -0.02201158180832863, 0.03508417680859566, 0.00406324677169323, -0.015916980803012848, 0.006166495848447084, -0.025108668953180313, 0.004279936198145151, 0.04305059835314751, 0.025012178346514702, -0.03922707587480545, 0.0017999649280682206, 0.05114992335438728, 0.01867593452334404, 0.05903424695134163, -0.03703394904732704, 0.003244345774874091, -0.03291185945272446, -0.0232655368745327, 0.006226969417184591, -0.0085885189473629, 0.00866643711924553, 0.010187484323978424, 0.017336908727884293, 0.013944949023425579, 0.018843354657292366, 0.013340363278985023, 0.022326946258544922, -0.009161276742815971, -0.039520058780908585, -0.009743664413690567, 0.025073733180761337, 0.002963189734145999, 0.057791318744421005, 0.02902977354824543, -0.056401289999485016, -0.00014739659673068672, -0.01331399567425251, 0.05357549712061882, -0.028343966230750084, -0.021048834547400475, -0.04867769032716751, 0.009431443177163601, -0.008772763423621655, -0.02474069595336914, -0.016748730093240738, 0.004631111864000559, 0.0017900613602250814, -0.017701856791973114, -0.006892128847539425, -0.03129280358552933, -0.010428517125546932, -0.018570493906736374, -0.02038341574370861, -0.07597042620182037, -0.0751352533698082, -0.036349061876535416, 0.049186963587999344, 0.03274098038673401, -0.03770816698670387, -0.016825228929519653, -0.019304482266306877, -0.10151658952236176, -0.02227186970412731, -0.020651327446103096, -0.011386090889573097, -0.015098264440894127, -0.05876648426055908, 0.05959082394838333, -0.03670783340930939, -0.03616219758987427, -0.003059184178709984, 0.020723730325698853, 0.025343310087919235, -0.04333982244133949, 0.003988237585872412, 0.01184407901018858, 0.005337073467671871, -0.024661635980010033, 0.0706438347697258, -0.033990152180194855, -0.014222734607756138, -0.022459063678979874, -0.032436251640319824, 0.009198812767863274, 0.019294418394565582, 0.004681804217398167, 0.005915967281907797, -0.010112120769917965, 0.004002734087407589, -0.06051620468497276, 0.021527403965592384, -0.06550289690494537, -0.0037719469983130693, -0.028334174305200577, -0.026751475408673286, 0.024501090869307518, 0.021506479009985924, 0.04127883166074753, -0.015954649075865746, -0.005639118608087301, 0.016847841441631317, -0.04904407635331154, -0.022732006385922432, -0.0525473989546299, 0.002862108638510108, 0.023272087797522545, 0.013184881769120693, -0.013219273649156094, -0.08585715293884277, 0.029432006180286407, -0.0078980578109622, -0.005947057157754898, -0.023092219606041908, -0.02873215079307556, -0.009266668930649757, -0.02147391438484192, 0.018344679847359657, 0.005995472427457571, -0.018936317414045334, 0.05496346950531006, 0.03214001655578613, -0.0068523031659424305, 0.028022771701216698, -0.012850998900830746, -0.015477558597922325, -0.03269460052251816, 0.008946591056883335, 0.01439637504518032, 0.00418439693748951, -0.016450494527816772, 0.021368248388171196, -0.014818470925092697, 0.02437220886349678, 0.0012802486307919025, 0.033730894327163696, -0.0025361059233546257, 0.004333905875682831, 0.052736349403858185, 0.00885212142020464, -0.037382036447525024, 0.005536032374948263, -0.05676913633942604, -0.003650104394182563, -0.02351120114326477, 0.012102741748094559, -0.014680833555758, -0.010866398923099041, -0.03875173628330231, -0.022216105833649635, -0.04915992543101311, -0.012970389798283577, -0.028234349563717842, 0.018590200692415237, 0.05881718918681145, 0.022862251847982407, 0.05461463704705238, 0.0035502936225384474, -0.007628503255546093, -0.008608791045844555, 0.010339926928281784, -0.04816250130534172, 0.0014072107151150703, 0.02531236596405506, -0.012778080999851227, 0.01785549335181713, 0.03655823692679405, 0.006355061661452055, 0.01579883135855198, 0.03053280897438526, 0.00735630514100194, 0.01438887044787407, 0.03847615048289299, 0.005457285791635513, 0.024628397077322006, -0.01930631883442402, -0.007697805296629667, -0.05507080256938934, -0.04522719234228134, 0.0001773257099557668, 0.0008429436711594462, -0.016769038513302803, -0.04567348584532738, -0.017753828316926956, -0.07563778012990952, 0.010734181851148605, 0.04894837364554405, 0.02723255194723606, 0.02431897632777691, -0.004353784024715424, -0.01537172868847847, -0.058277957141399384, 0.01884475350379944, 0.05028386041522026, -0.06436994671821594, 0.011266208253800869, -0.011963595636188984, -0.004841635003685951, -0.0030536786653101444, 0.02431473135948181, -0.032458383589982986, -0.011732857674360275, -0.003750300034880638, 0.024467604234814644, 0.001336884219199419, -0.0009053052635863423, -0.03347480669617653, 0.008890065364539623, -0.009816433303058147, 0.01824094168841839, 0.02413114346563816, -0.01116232480853796, -0.010980900377035141, -0.010297447443008423, 0.016095463186502457, -0.03345315530896187, 0.015421496704220772, 0.046704359352588654, 0.009946049191057682, -0.00594139052554965, -0.02665581740438938, 0.05034393444657326, 0.002384716412052512, 0.0014474955387413502, -0.054450299590826035, -0.046814627945423126, -0.006711078807711601, 0.013311034068465233, 0.05844780057668686, 0.007674627471715212, 0.024907713755965233, -0.01900956779718399, -0.0069565484300255775, -0.017185930162668228, 0.02196291647851467, 0.010338022373616695, -0.0181552916765213, 0.005132025573402643, 0.05580740422010422, 0.025534097105264664, 0.010971719399094582, -0.04138168320059776, -0.02370707131922245, 0.05407451093196869, -0.07969917356967926, -0.036219701170921326, 0.03776494786143303, -0.060788072645664215, 0.020750287920236588, 0.013486113399267197, 0.005532145965844393, -0.0705217495560646, 0.06585831195116043, 0.05031396076083183, 0.04180595651268959, 0.0608796551823616, 0.034770652651786804, -0.007187393959611654, -0.018102124333381653, -0.04794378578662872, -0.08070302754640579, -0.02316896989941597, 0.0018405485898256302, 0.026114845648407936, -0.02648000977933407, 0.009641842916607857, -0.006701980251818895, 0.03330651670694351, -0.0865967646241188, -0.011309010908007622, 0.05020967870950699, 0.03482700139284134, 0.0022566495463252068, 0.03131789341568947, -0.047616180032491684, 0.055641040205955505, 0.005423351190984249, -0.039574962109327316, -0.05269736051559448, 0.009291809052228928, 0.07696261256933212, 0.022838618606328964, 0.05191059410572052, -0.06632918119430542, 0.023146098479628563, 0.09564417600631714, 0.013822455890476704, -0.01049311924725771, 0.04053027182817459, -0.01945079304277897, 0.0600770004093647, -0.012454311363399029, -0.013382799923419952, -0.01454253401607275, 0.010331462137401104, -0.019039148464798927, -0.05059267580509186, -0.0009900677250698209, 0.005798955913633108, -0.006434818264096975, -0.07057148963212967, 0.05781279504299164, -0.007339746691286564, 0.006121979560703039, -0.059655580669641495, -0.02669489197432995, -0.0408162958920002, -0.02172413095831871, -0.019077366217970848, 0.0034327039029449224, -0.03669418394565582, 0.09886087477207184, -0.011929161846637726, 0.03284068778157234, 0.07061508297920227, 0.008931049145758152, 0.016739120706915855, 0.0019339114660397172, 0.05516970902681351, 0.08486098796129227, 0.030358027666807175, -0.009110191836953163, 0.047812096774578094, -0.016204046085476875, -0.050498005002737045, -0.0024774037301540375, -0.04225041717290878, -0.01469042245298624, -0.05667949095368385, 0.022038616240024567, 0.09124992787837982, 0.0033590183593332767, 0.02709011733531952, -0.018311070278286934, -0.020238736644387245, -0.021614069119095802, 0.0011246481444686651, 0.03816733509302139, 0.01375166792422533, 0.019297989085316658, 0.0049346936866641045, -0.014719418250024319, -0.014579898677766323, 0.04591236263513565, -0.00023755004804115742, -0.02953602559864521, 0.027093136683106422, -0.0006708560395054519, 0.034937262535095215, 0.013039998710155487, 0.016838308423757553, 0.05160203576087952, -0.008723581209778786, 0.01592157408595085, 0.011549566872417927, 0.025862930342555046, 0.01387111283838749, 0.00424922676756978, 0.004782168194651604, -0.009123047813773155, -0.002940458245575428, -0.027651453390717506, 0.028056230396032333, -0.010748806409537792, -0.023857930675148964, 0.06990030407905579, -0.001289596315473318, 0.012124246917665005, 0.008123443461954594, -0.04259594529867172, -0.03088296204805374, -0.04611454904079437, -0.043195899575948715, -0.01809808239340782, -0.07950855046510696, -0.009271563962101936, 0.03398897871375084, -0.05256203934550285, -0.048039160668849945, -0.019259029999375343, -0.0017446390120312572, -0.023649180307984352, -0.040824100375175476, -0.043854840099811554, -0.06522601842880249, 0.033161573112010956, -0.01171080581843853, 0.012083346024155617, 0.0412462092936039, 0.07154760509729385, -0.010213150642812252, -0.021425696089863777, -0.05305488407611847, 0.014749530702829361, 0.03851756453514099, -0.006579780951142311, 0.04906311258673668, -0.04851855710148811, 0.02468409575521946, 0.03819957375526428, -0.011152421124279499, -0.07416488230228424, 0.027046794071793556, 0.016671884804964066, -0.0036800175439566374, 0.0726495310664177, -5.275019248074386e-7, 0.007358082104474306, -0.0464261956512928, -0.03720266744494438, 0.012501289136707783, 0.02769096940755844, 0.048826057463884354, -0.04205310717225075, 0.07768722623586655, 0.060580845922231674, -0.014165644533932209, -0.013075977563858032, -0.01818697340786457, 0.014156268909573555, 0.008564135991036892, -0.027294302359223366, -0.055274847894907, -0.07949398458003998, -0.08085427433252335, -0.0401519238948822, 0.024813080206513405, -0.01604357734322548, -0.030705437064170837, 0.014724466018378735, 0.033845990896224976, -0.03964807093143463, 0.00854082964360714, -0.06262147426605225, -0.009470261633396149, -0.026682943105697632, -0.03909514844417572, -0.013226526789367199, 0.033196527510881424, 0.004136803559958935, 0.0005280429031699896, 0.016254007816314697, -0.028835851699113846, -0.019512783735990524, -0.03811447322368622, 0.02500714547932148, 0.0384775847196579, 0.040609609335660934, 0.02645369991660118 ]
[ -0.11076376587152481, -0.01615167036652565, -0.017296815291047096, -0.013816958293318748, 0.014299977570772171, -0.07620295137166977, -0.026025647297501564, -0.03449398651719093, 0.01645621843636036, -0.030761536210775375, 0.014323906041681767, -0.01568484865128994, -0.004956885240972042, -0.013128004036843777, 0.0402715764939785, -0.004408809822052717, -0.053598951548337936, -0.06010717526078224, 0.00025116506731137633, 0.03678470477461815, 0.026212841272354126, 0.0007724914466962218, -0.023229189217090607, -0.007969027385115623, 0.0046604773961007595, 0.05971948057413101, 0.03571216017007828, -0.02257697284221649, -0.007995275780558586, -0.184776172041893, 0.021191345527768135, -0.029334403574466705, 0.04538237676024437, -0.06180731579661369, 0.015415290370583534, 0.011183660477399826, 0.02109932154417038, 0.017052123323082924, 0.01708272099494934, 0.05209307745099068, 0.02500111237168312, 0.04731212928891182, -0.054932937026023865, -0.04435647279024124, 0.028895553201436996, -0.02387864701449871, -0.025945154950022697, 0.00878050271421671, 0.000005319739102560561, 0.0491856150329113, -0.03512517735362053, 0.04716048389673233, 0.029001779854297638, 0.004949267487972975, 0.0031274743378162384, 0.019686292856931686, 0.05439181253314018, 0.03387100622057915, 0.032579369843006134, -0.02935248240828514, -0.0017305816290900111, -0.0018366295844316483, -0.15027683973312378, 0.12178710103034973, -0.02696194313466549, 0.010575607419013977, 0.017238663509488106, -0.007617818657308817, -0.028510870411992073, 0.05181124806404114, -0.024130061268806458, -0.03644617274403572, -0.038612645119428635, 0.043447479605674744, 0.011771426536142826, -0.06260755658149719, -0.01972147449851036, -0.029325854033231735, 0.05910763517022133, -0.034443337470293045, -0.03963834419846535, -0.02175595611333847, -0.006724465172737837, -0.0767015814781189, 0.029278036206960678, 0.01720966398715973, -0.002633730648085475, 0.06855523586273193, 0.02059946395456791, 0.03485506772994995, -0.013607015833258629, -0.04299246519804001, 0.032736364752054214, -0.005057430360466242, -0.04110882431268692, 0.019152404740452766, -0.019473280757665634, 0.0631849616765976, -0.03012669086456299, 0.3863135278224945, -0.043067652732133865, 0.034243807196617126, -0.024730967357754707, 0.03296646848320961, 0.010805029422044754, -0.030371373519301414, 0.011479431763291359, -0.032422732561826706, -0.022595239803195, -0.0038907674606889486, -0.024439392611384392, 0.006160338409245014, 0.08516231179237366, -0.08315803855657578, 0.01122064795345068, 0.002301080385223031, 0.044590070843696594, -0.020186366513371468, 0.03621526435017586, 0.022235704585909843, 0.009935131296515465, 0.0032498729415237904, 0.034608300775289536, 0.011067504063248634, 0.03025216981768608, 0.008777180686593056, 0.021760841831564903, 0.050175946205854416, 0.028432196006178856, -0.005860683508217335, 0.050902366638183594, -0.05584827810525894, -0.05367135629057884, 0.0007581745157949626, 0.028984766453504562, 0.060432318598032, 0.027695655822753906, -0.053305935114622116, 0.00764834089204669, -0.04070042446255684, -0.04485122486948967, -0.082117460668087, 0.03440851345658302, 0.01190075185149908, -0.02645612508058548, 0.15077683329582214, -0.013916446827352047, -0.01621428318321705, -0.007648820523172617, -0.04262750595808029, -0.06071298196911812, 0.014656011946499348, -0.004494086839258671, -0.03852736949920654, -0.032138288021087646, 0.024130089208483696, 0.09411363303661346, -0.013233218342065811, -0.04437820613384247, -0.04614701494574547, -0.03848791867494583, -0.02063279040157795, -0.05644688382744789, 0.03882510960102081, 0.047743331640958786, -0.12312684208154678, -0.05552460625767708, 0.015118231996893883, -0.012557025998830795, -0.07255619764328003, 0.005171500146389008, -0.005226477514952421, -0.024628765881061554, -0.0034192248713225126, 0.0947524830698967, 0.00599314970895648, 0.04672078415751457, 0.006999547127634287, 0.034056153148412704, 0.04865332320332527, 0.00971695315092802, -0.019705336540937424, 0.0007969920989125967, -0.008958453312516212, -0.013065282255411148, -0.08258159458637238, -0.04361455887556076, -0.016921794041991234, 0.0010829278035089374, -0.015325618907809258, 0.01663784682750702, -0.07142271846532822, -0.05223170667886734, 0.07674053311347961, -0.037424638867378235, -0.024976864457130432, 0.026625487953424454, 0.02193443849682808, 0.02050628885626793, -0.036469802260398865, 0.03234933689236641, -0.03243904188275337, -0.013929635286331177, 0.01024866383522749, 0.020893584936857224, 0.02934546396136284, 0.06259796023368835, -0.05016857758164406, 0.08353401720523834, 0.02736472152173519, -0.04543909430503845, 0.01627836748957634, 0.03683941811323166, -0.002295255195349455, 0.008285950869321823, -0.001425526337698102, -0.01730973646044731, 0.005532051436603069, 0.01680733822286129, 0.050595540553331375, -0.058654919266700745, -0.0038519417867064476, -0.02705906704068184, -0.3262055814266205, -0.0077498238533735275, -0.0067801689729094505, -0.026554852724075317, 0.005777761340141296, -0.05853008106350899, -0.025419628247618675, -0.04674964398145676, 0.024445954710245132, 0.03173380345106125, 0.09940527379512787, -0.0161233302205801, 0.0009924543555825949, -0.0977792963385582, -0.028820527717471123, 0.03126194328069687, -0.006753658410161734, -0.015939045697450638, -0.010454888455569744, -0.0021159029565751553, 0.035850025713443756, -0.01998814195394516, -0.07149133831262589, -0.09977920353412628, 0.01035690400749445, -0.003254726529121399, 0.09060244262218475, 0.014347981661558151, 0.05980071797966957, -0.0896308496594429, 0.07984622567892075, 0.003387372475117445, 0.014100140891969204, -0.04425232112407684, -0.02210136316716671, -0.0434657447040081, 0.021805470809340477, 0.009345843456685543, 0.026172179728746414, -0.0026647495105862617, -0.09306951612234116, 0.020898815244436264, 0.0037226323038339615, -0.032702602446079254, 0.01862115040421486, -0.007488856557756662, 0.05811021849513054, -0.011873913928866386, -0.005233714357018471, 0.061879053711891174, 0.04690578952431679, -0.0007672547944821417, 0.007359239738434553, 0.004572880920022726, 0.014713969081640244, -0.03209366649389267, -0.022149473428726196, -0.03173409402370453, 0.0032967918086797, -0.022336779162287712, 0.015805959701538086, 0.004494742956012487, 0.05227801576256752, -0.020229633897542953, -0.033392053097486496, -0.002409794833511114, -0.012095059268176556, -0.03900643810629845, 0.039259184151887894, 0.017298555001616478, -0.03153463825583458, 0.09655753523111343, -0.048266906291246414, 0.004683854524046183, 0.057699017226696014, 0.03000466339290142, -0.006535105872899294, 0.05877705663442612, 0.02374708466231823, -0.032372549176216125, -0.02625374309718609, 0.032027922570705414, 0.05941139906644821, -0.008918573148548603, 0.031145840883255005, 0.01101161539554596, -0.0018169671529904008, 0.015381219796836376, 0.02486385777592659, -0.0058457753621041775, -0.02690654806792736, -0.03385566174983978, 0.0013333209790289402, -0.05555032938718796, 0.02929065190255642, -0.036320582032203674, -0.24597713351249695, 0.05914342775940895, 0.07798704504966736, 0.05910789966583252, -0.000669289322104305, -0.0028549162670969963, -0.010529212653636932, -0.0682067722082138, -0.06140424683690071, -0.010139071382582188, -0.002411195309832692, 0.046505849808454514, 0.015220598317682743, 0.010899271816015244, 0.028113098815083504, -0.01338269840925932, 0.04312685877084732, 0.05276183411478996, 0.010366338305175304, -0.006271405145525932, 0.032709598541259766, -0.01758635975420475, 0.17550797760486603, 0.043289851397275925, 0.010318522341549397, 0.021477771922945976, 0.04473912715911865, 0.009685485623776913, 0.08345126360654831, 0.04554344713687897, 0.033398035913705826, -0.014053156599402428, 0.0837126150727272, -0.0007824807544238865, 0.039844170212745667, -0.011152283288538456, -0.048716455698013306, 0.038821034133434296, -0.015267789363861084, -0.008948207832872868, -0.0498836375772953, 0.07143725454807281, -0.04567863047122955, 0.02804185263812542, 0.06988371908664703, -0.01973075047135353, -0.019493669271469116, -0.041424088180065155, -0.06473672389984131, 0.022628892213106155, -0.035620588809251785, -0.024555938318371773, -0.007960917428135872, -0.013442610390484333, -0.03686841204762459, 0.05457853525876999, 0.04080924019217491, -0.005428036209195852, 0.02564859762787819, 0.04793207347393036, 0.021840045228600502, -0.030964070931077003, 0.08065329492092133, -0.016146790236234665, 0.004742058459669352 ]
[ 0.009768831543624401, 0.013145653530955315, -0.015879184007644653, 0.023626284673810005, -0.02760567143559456, 0.013485717587172985, 0.004039503168314695, 0.009839347563683987, -0.02648901753127575, -0.03535625338554382, -0.012917264364659786, -0.030272236093878746, 0.0074897450394928455, -0.059518612921237946, 0.006002977956086397, -0.039111848920583725, 0.014535883441567421, -0.0154702914878726, 0.04619191959500313, -0.0007668156176805496, -0.02157111093401909, 0.010017947293817997, 0.02744460478425026, 0.010800867341458797, 0.008032971993088722, 0.022335363551974297, -0.04026324301958084, 0.0038566328585147858, 0.026565296575427055, -0.11718831956386566, -0.04583385959267616, 0.01907661184668541, -0.02333621308207512, -0.004630368202924728, -0.01009245403110981, 0.023970071226358414, 0.006608631461858749, 0.00709850899875164, -0.0042882137931883335, -0.018923701718449593, -0.008222567848861217, -0.05962361395359039, 0.0055703939869999886, 0.0030427968595176935, 0.02695285901427269, -0.02305031754076481, -0.002675099531188607, -0.011437010020017624, -0.04240453243255615, 0.057908978313207626, -0.03212998807430267, 0.03265409916639328, -0.03106468729674816, -0.010236233472824097, 0.036226168274879456, 0.02774643711745739, 0.013009858317673206, 0.0386538952589035, -0.02020380273461342, 0.00652052229270339, -0.034532755613327026, 0.011356121860444546, -0.02924569509923458, -0.016205118969082832, 0.007865669205784798, -0.037821874022483826, -0.012342175468802452, -0.01676040329039097, 0.017381735146045685, -0.0059898728504776955, 0.015715129673480988, -0.013910101726651192, -0.028767885640263557, 0.02189294435083866, -0.05049269646406174, 0.01966175250709057, 0.04719414934515953, -0.03590615838766098, -0.003283198457211256, -0.03904854133725166, -0.007698016706854105, 0.013601955957710743, 0.011400018818676472, 0.02304130047559738, 0.01718156971037388, -0.035514023154973984, 0.03536827117204666, 0.044950198382139206, 0.026607874780893326, -0.04593556001782417, -0.030844051390886307, -0.009200144559144974, -0.023987874388694763, 0.01820765808224678, -0.04171076416969299, -0.008120780810713768, -0.013119278475642204, 0.008319097571074963, 0.013266751542687416, 0.837455153465271, -0.021168328821659088, 0.038991913199424744, -0.029877400025725365, 0.039033208042383194, -0.011949877254664898, -0.00371637218631804, -0.0038380881305783987, -0.03173848241567612, 0.005293868016451597, -0.01716194674372673, 0.0433061346411705, 0.019274108111858368, 0.01547134481370449, -0.01336650364100933, 0.04253421351313591, -0.018094705417752266, -0.01323564164340496, -0.045307159423828125, 0.014477894641458988, 0.017942430451512337, 0.021962270140647888, 0.005790002644062042, -0.026667390018701553, 0.014304853975772858, 0.01427164115011692, -0.14580529928207397, 0.03960997983813286, -6.981629026202167e-33, 0.00771164009347558, -0.04171167314052582, 0.015772322192788124, -0.0494045652449131, 0.02462492324411869, 0.04078521206974983, -0.002445480553433299, -0.014892599545419216, 0.022816704586148262, -0.021209033206105232, 0.020637016743421555, -0.04351578652858734, -0.018750011920928955, -0.033734653145074844, 0.04949042201042175, 0.010753859765827656, 0.02582901529967785, 0.022155962884426117, 0.020119449123740196, 0.004306824412196875, 0.029795197769999504, 0.03675255551934242, -0.013879199512302876, 0.027093596756458282, 0.02725057490170002, 0.014528017491102219, 0.010995594784617424, 0.009104748256504536, 0.0070836967788636684, -0.040090177208185196, -0.04469752684235573, -0.010122683830559254, -0.006720532197505236, -0.04412401467561722, 0.030858349055051804, -0.07418157160282135, -0.024842683225870132, 0.023727957159280777, -0.020461490377783775, 0.013427221216261387, -0.04548220708966255, -0.006476921495050192, -0.015221791341900826, -0.05424359813332558, -0.004132483154535294, 0.015312235802412033, 0.023195793852210045, 0.018524374812841415, 0.005154486279934645, -0.02749601937830448, 0.023193713277578354, 0.01442011445760727, -0.006067109294235706, -0.009445219300687313, -0.0002804773102980107, 0.01467951387166977, 0.010957232676446438, -0.005457738414406776, 0.00024725383264012635, 0.015075716190040112, 0.003915439825505018, -0.022511076182127, 0.033003613352775574, 0.017275068908929825, -0.00749196158722043, -0.007180849090218544, 0.015688935294747353, 0.02243976667523384, 0.022764232009649277, 0.06057325378060341, -0.039625898003578186, -0.022544050589203835, 0.01104514766484499, -0.019964957609772682, 0.01893499121069908, -0.006234751082956791, 0.03859509900212288, -0.017197556793689728, 0.02585887350142002, 0.02971840277314186, 0.042816199362277985, -0.027492916211485863, -0.05679003894329071, -0.03175627440214157, 0.0031144204549491405, -0.0478612519800663, 0.006058314815163612, 0.002714330330491066, -0.025753160938620567, -0.0020186968613415956, 0.012613127939403057, 0.025946220383048058, 0.02385500632226467, -0.026913423091173172, -0.040471576154232025, 6.547316189667979e-33, 0.019141344353556633, 0.008890952914953232, -0.026348210871219635, 0.01594473421573639, 0.027642399072647095, -0.01445458922535181, -0.010020872578024864, 0.07383852452039719, -0.039270125329494476, 0.041469912976026535, 0.00492535624653101, 0.005086651537567377, -0.01354030892252922, 0.004093562252819538, 0.04114734008908272, 0.021442685276269913, 0.03758711740374565, 0.025651762261986732, -0.010105486959218979, 0.011851483024656773, 0.03606799244880676, 0.0107603520154953, -0.011019229888916016, 0.01823572814464569, 0.05140996724367142, 0.021665383130311966, -0.011348775587975979, 0.00480348477140069, -0.008720598183572292, 0.014481017366051674, -0.018872413784265518, -0.03118632547557354, -0.002368826186284423, -0.035288479179143906, -0.025693196803331375, 0.04196792468428612, 0.02783801779150963, -0.07777781784534454, 0.003966149874031544, -0.0015304316766560078, 0.027450446039438248, -0.018274083733558655, 0.0005315463058650494, 0.038971200585365295, -0.020564762875437737, 0.048897482454776764, 0.016605155542492867, 0.012450139969587326, -0.007424616254866123, 0.004889969248324633, 0.028984898701310158, -0.01073536928743124, 0.002780644688755274, 0.00858263485133648, 0.004392564296722412, -0.03256024792790413, -0.035469524562358856, -0.022703131660819054, -0.02106083370745182, -0.004350846633315086, -0.02868182212114334, -0.017027590423822403, 0.0037737174425274134, -0.01616908609867096, -0.025813110172748566, -0.011431572958827019, -0.017817512154579163, -0.0027615963481366634, -0.04651357978582382, 0.016434915363788605, 0.008528427220880985, -0.011829749681055546, -0.025071239098906517, 0.05334215611219406, -0.01188062597066164, 0.0015034318203106523, -0.028046200051903725, 0.03328317031264305, -0.011981138028204441, -0.003718677209690213, 0.04116760939359665, 0.012682123109698296, 0.002082930179312825, 0.017092067748308182, -0.022203559055924416, 0.018018390983343124, -0.07337293028831482, -0.010116429068148136, 0.021011769771575928, -0.016897644847631454, -0.025093719363212585, -0.04204435274004936, -0.033342812210321426, 0.0391390323638916, -0.008258383721113205, -1.2914064484448318e-8, -0.007803591899573803, 0.003326630452647805, -0.019662098959088326, 0.011386888101696968, 0.006193836219608784, -0.015122734941542149, -0.03047574684023857, 0.006637948099523783, 0.021931860595941544, 0.011379684321582317, 0.07611820846796036, -0.017697306349873543, 0.008485935628414154, 0.004063089843839407, 0.006085589528083801, -0.050671108067035675, -0.010692904703319073, -0.030165551230311394, 0.010295633226633072, -0.02489776909351349, 0.01917223073542118, 0.04838144779205322, 0.009883435443043709, -0.020944669842720032, -0.027924511581659317, 0.024887556210160255, 0.0036297589540481567, -0.04153720661997795, -0.003618405433371663, 0.0033416307996958494, 0.02007215842604637, -0.02251569926738739, -0.04341043159365654, 0.003042607568204403, -0.03884480893611908, -0.08334118872880936, 0.03540918603539467, 0.030217524617910385, 0.0030906612519174814, 0.007801841478794813, 0.006030031945556402, -0.028230838477611542, -0.01498010940849781, -0.002649606904014945, -0.05517511069774628, -0.014246294274926186, -0.017836563289165497, -0.0069150119088590145, 0.009995332919061184, -0.017645495012402534, 0.0199505016207695, -0.009810496121644974, 0.015329423360526562, 0.014732773415744305, 0.03361900523304939, 0.02492905966937542, 0.023268412798643112, -0.0023002116940915585, 0.006511842831969261, 0.0038559064269065857, -0.00009279436198994517, 0.020597724243998528, 0.02347283624112606, -0.01633189059793949 ]
clickhouse-date-to-epoch
https://markhneedham.com/blog/2023/11/06/clickhouse-date-to-epoch
false
2023-11-15 00:44:37
Summing columns in remote Parquet files using ClickHouse
[ "clickhouse", "clickhouse-local", "parquet", "til" ]
[ "TIL" ]
:icons: font I'm an avid reader of https://til.simonwillison.net[Simon Willison's TIL blog^] and enjoyed https://til.simonwillison.net/duckdb/remote-parquet[a recent post^] showing how to sum the size of all the Midjourney images stored on Discord. He did this by querying a bunch of Parquet files stored on Hugging Face with DuckDB. I was curious whether I could do the same thing using ClickHouse and in this blog post, we're going to find out. The dataset that we're going to use is available at https://huggingface.co/datasets/vivym/midjourney-messages[vivym/midjourney-messages^]. It contains just over 55 million records spread over 56 Parquet files. They're a little over 150 MB each, for a total of around 8 GB. The files have the following structure: [source, bash] ---- https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/000000.parquet https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/000001.parquet ... https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/000055.parquet ---- == Setting up ClickHouse Local Let's install ClickHouse on our machine: [source, bash] ---- curl https://clickhouse.com/ | sh ---- And then launch ClickHouse Local: [source, bash] ---- ./clickhouse local -m ---- == Querying one file We'll start by getting a row of one of the files, formatting as JSON. [source, bash] ---- FROM url('https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/000000.parquet') SELECT * LIMIT 1 Format JSONEachRow; ---- .Output [source, text] ---- Received exception: Code: 483. DB::Exception: Too many redirects while trying to access https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/000000.parquet. You can allow redirects by changing the setting 'max_http_get_redirects'. Example: `SET max_http_get_redirects = 10`. Redirects are restricted to prevent possible attack when a malicious server redirects to an internal resource, bypassing the authentication or firewall.: Cannot extract table structure from Parquet format file. You can specify the structure manually. (TOO_MANY_REDIRECTS) ---- Oops, it doesn't like that the URL redirects elsewhere, but we can have it handle that by configuring `max_http_get_redirects`. Let's update our query: [source, sql] ---- FROM url('https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/000000.parquet') SELECT * LIMIT 1 Format JSONEachRow SETTINGS max_http_get_redirects=1; ---- .Output [source, text] ---- {"id":"1144508197969854484","channel_id":"989268300473192561","content":"**adult Goku in Dragonball Z, walking on a beach, in a Akira Toriyama anime style** - Image #1 <@1016225582566101084>","timestamp":"2023-08-25T05:46:58.330000+00:00","image_id":"1144508197693046875","height":"1024","width":"1024","url":"https:\/\/cdn.discordapp.com\/attachments\/989268300473192561\/1144508197693046875\/anaxagore54_adult_Goku_in_Dragonball_Z_walking_on_a_beach_in_a__987e6fd5-64a1-43f6-83dd-c58d2eb42948.png","size":"1689284"} 1 row in set. Elapsed: 3.424 sec. ---- That took a few seconds and I expect that it pulled down the whole file before selecting the first row. Let's configure `nettop`, as described in Simon's post, and then run the query again: [source, bash] ---- nettop -p 70254 -J bytes_in ---- .Output [source, bash] ---- bytes_in clickhouse.70254 152 MiB ---- It downloaded 152MB, which is the size of the file. == Summing the size of one file Let's now see what happens if we sum the `size` column, as Simon did in his post: [source, sql] ---- FROM url('https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/000000.parquet') SELECT sum(size) as totalSize, formatReadableSize(totalSize) SETTINGS max_http_get_redirects=1; ---- .Output [source, text] ---- ┌─────totalSize─┬─formatReadableSize(sum(size))─┐ │ 3456458790156 │ 3.14 TiB │ └───────────────┴───────────────────────────────┘ 1 row in set. Elapsed: 1.097 sec. ---- Just over 3 TB for the first file. And this is the `nettop` output: .Output [source, bash] ---- bytes_in clickhouse.70254 5386 KiB ---- This time it was quicker and only downloaded about 5 MB because ClickHouse also uses HTTP range header tricks to only pull down the `size` column. == Summing the size of all the files Okay, now we're ready to sum up the `size` column in all the files. ClickHouse has quite a neat 'range syntax' for doing this. So to sum the size column in all 56 Parquet files, we can write the following query: [source, sql] ---- SELECT sum(size) AS totalSize, formatReadableSize(totalSize) FROM url('https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/0000{00..55}.parquet') SETTINGS max_http_get_redirects = 1 ---- .Output [source, text] ---- ┌───────totalSize─┬─formatReadableSize(sum(size))─┐ │ 162800469938172 │ 148.07 TiB │ └─────────────────┴───────────────────────────────┘ 1 row in set. Elapsed: 9.798 sec. Processed 54.08 million rows, 8.50 GB (5.52 million rows/s., 867.48 MB/s.) Peak memory usage: 896.00 B. ---- It's kinda insane that Midjourney has created 148 TB of image files! And what does `nettop` have to say? .Output [source, bash] ---- bytes_in clickhouse.70254 287 MiB ---- Again, pretty similar to what Simon saw - ClickHouse has also only downloaded 287 MB of data instead of the full 8 GB to work out the total size.
In this post, we'll learn how to sum columns in remote Parquet files using ClickHouse.
uploads/2023/11/clickhouse-summing-remote-parquet-files.png
[ -0.022659288719296455, -0.015313808806240559, 0.0011226787464693189, 0.029510872438549995, 0.0826774463057518, 0.03562476858496666, 0.03588493540883064, 0.03714975342154503, -0.02266548201441765, -0.017404688522219658, -0.005406420212239027, -0.029160097241401672, -0.07820858806371689, 0.010451501235365868, -0.03473956882953644, 0.07852363586425781, 0.0669625774025917, 0.012899626977741718, 0.035577669739723206, -0.004021684639155865, 0.026584850624203682, 0.06571085751056671, -0.00894632376730442, 0.03988509997725487, 0.021640105172991753, 0.012812829576432705, 0.01655510440468788, -0.015804698690772057, -0.039158500730991364, -0.008622871711850166, 0.04969114437699318, -0.014575928449630737, 0.012184918858110905, 0.0036377289798110723, 0.03285440802574158, 0.005463023204356432, -0.02187199890613556, 0.02027716487646103, 0.009881644509732723, 0.014220756478607655, -0.07108745723962784, 0.03133668377995491, -0.0034675642382353544, 0.015769287943840027, -0.031166255474090576, -0.003134410362690687, -0.050356317311525345, 0.019316693767905235, 0.0010220194235444069, 0.009056225419044495, -0.06697854399681091, 0.0550931915640831, -0.0162231232970953, 0.0018259496428072453, -0.026657473295927048, 0.027511242777109146, 0.01891213096678257, -0.05833500251173973, 0.02903768979012966, -0.03602585196495056, -0.008548694662749767, -0.010084189474582672, 0.005558294244110584, 0.02650906704366207, -0.002894727746024728, -0.013920458033680916, 0.008522695861756802, 0.049835145473480225, -0.05572125315666199, -0.020264053717255592, 0.012566820718348026, -0.0022015240974724293, -0.030387673527002335, -0.005363031290471554, 0.024189436808228493, -0.048504263162612915, -0.016477661207318306, 0.0157158300280571, 0.04678975045681, 0.05374116450548172, -0.024887604638934135, 0.013182972557842731, 0.018064292147755623, 0.0360303558409214, -0.0025834846310317516, -0.05353662371635437, -0.04410843923687935, 0.00004337414065958001, -0.0763409435749054, 0.06574080139398575, 0.026356080546975136, -0.053597282618284225, 0.021432578563690186, 0.02305077761411667, 0.005524753127247095, 0.006763060577213764, -0.0022740401327610016, 0.005100163631141186, 0.00032281610765494406, -0.009998672641813755, -0.05547143146395683, -0.0051176599226891994, 0.015253809280693531, 0.004162854515016079, -0.08372170478105545, -0.014524894766509533, -0.04146971181035042, -0.014788919128477573, 0.021246593445539474, -0.008432864211499691, -0.00492875324562192, -0.013547386974096298, -0.024558188393712044, 0.008326399140059948, -0.06844201683998108, 0.08048952370882034, 0.02089175581932068, -0.03223927691578865, 0.008626291528344154, 0.024305934086441994, 0.05539733171463013, 0.029408995062112808, -0.012746606022119522, 0.06149514019489288, 0.006106771528720856, 0.03182191029191017, 0.010393285192549229, 0.03938760608434677, -0.0005758315091952682, -0.04449097439646721, -0.01373058371245861, 0.0646054744720459, -0.0005722222849726677, -0.0005134352250024676, 0.011954175308346748, -0.021554134786128998, 0.0018154361750930548, 0.0048132692463696, 0.06160170957446098, 0.028376933187246323, 0.02716757357120514, -0.01652463898062706, -0.004740777425467968, 0.0164971724152565, 0.0599234402179718, 0.012434884905815125, -0.004376351833343506, -0.04514261335134506, -0.042671602219343185, 0.0047610849142074585, 0.014431893825531006, 0.02512997016310692, 0.04672998562455177, -0.03142387047410011, 0.02629614993929863, 0.10123784840106964, 0.04816330596804619, 0.0020363193470984697, 0.015440840274095535, -0.008646298199892044, 0.03823350742459297, 0.04029136896133423, -0.0020623328164219856, 0.028771044686436653, -0.008298870176076889, -0.02238333225250244, -0.004289472475647926, 0.04618063569068909, -0.03203132003545761, 0.00831790454685688, -0.06267668306827545, -0.05967169627547264, 0.07265995442867279, -0.010240286588668823, -0.010163549333810806, 0.03278222307562828, 0.10673953592777252, 0.0646977424621582, 0.0016546163242310286, 0.013216116465628147, -0.0877397358417511, 0.04349876567721367, 0.006818536669015884, 0.0037124273367226124, 0.03385937958955765, -0.0022522564977407455, 0.08372683823108673, 0.02321823686361313, -0.0010732747614383698, 0.04317747801542282, -0.07086605578660965, -0.0735085979104042, -0.021313438192009926, 0.0004234664374962449, 0.052295710891485214, -0.057308129966259, 0.019773179665207863, 0.05213376507163048, 0.037887297570705414, 0.039477553218603134, -0.018755730241537094, 0.020367680117487907, 0.031496401876211166, -0.045186251401901245, -0.054154172539711, 0.037215083837509155, 0.025790171697735786, -0.005003294441848993, -0.036125291138887405, -0.006657025311142206, -0.01793498545885086, -0.014255651272833347, 0.019951114431023598, -0.006825536955147982, 0.03285560756921768, -0.009806305170059204, 0.038642533123493195, -0.01931287720799446, 0.030261553823947906, -0.057374484837055206, 0.006633540615439415, 0.02258019708096981, -0.017493348568677902, 0.00895231869071722, -0.009391927160322666, 0.10843726992607117, 0.06460075825452805, -0.01616200990974903, -0.0359855480492115, 0.02784740924835205, -0.01542349811643362, -0.039612818509340286, 0.00013808290532324463, -0.019708866253495216, -0.020846758037805557, 0.005100510083138943, -0.02701939083635807, -0.046429965645074844, 0.014051394537091255, -0.04979686066508293, -0.012107832357287407, 0.05804308503866196, 0.002070740098133683, 0.060523342341184616, 0.011179620400071144, -0.033173542469739914, -0.0015649921260774136, -0.037799108773469925, -0.05736863985657692, 0.0029901135712862015, 0.00009168196265818551, -0.001199445454403758, 0.015257379971444607, -0.04435216635465622, 0.01631024107336998, -0.032082099467515945, -0.03218325972557068, 0.0472329817712307, 0.017761141061782837, 0.07863070070743561, -0.018659720197319984, 0.048019297420978546, -0.018713833764195442, 0.004242685157805681, -0.02148265577852726, -0.04730111360549927, -0.031704191118478775, -0.004555323626846075, 0.03467900678515434, -0.010029180906713009, 0.011167453601956367, 0.03269096463918686, 0.002074920805171132, -0.016894139349460602, 0.024830467998981476, -0.024416636675596237, 0.03377668559551239, -0.006295324768871069, -0.0006394557422026992, -0.036284178495407104, -0.025792554020881653, 0.05389188230037689, -0.04667409881949425, -0.019954638555645943, 0.018974678590893745, -0.055273789912462234, 0.0325167216360569, -0.06384004652500153, -0.04494600370526314, -0.013372821733355522, 0.029240814968943596, 0.035487107932567596, 0.008816379122436047, -0.005766317248344421, 0.043515704572200775, 0.016512339934706688, 0.00416811928153038, 0.012308995239436626, -0.008034897036850452, 0.046276576817035675, -0.005705710966140032, 0.000025648843802628107, 0.04913300648331642, -0.0008601337904110551, 0.009106838144361973, -0.06478703022003174, 0.022682655602693558, -0.023609839379787445, -0.3021526336669922, 0.04317891225218773, 0.005073109641671181, -0.05052714794874191, 0.008423825725913048, -0.025182556360960007, 0.0064566778019070625, -0.047091253101825714, -0.015456492081284523, 0.01082201674580574, -0.03179570287466049, -0.03295008838176727, -0.016805974766612053, 0.02407011389732361, 0.011150631122291088, 0.02230338752269745, 0.00875278003513813, -0.04151447117328644, 0.003247395157814026, 0.016933638602495193, -0.01216629147529602, -0.062271732836961746, 0.0015535104321315885, 0.0509248822927475, 0.0268660057336092, 0.04889845475554466, -0.05110529065132141, -0.004758511204272509, -0.052779052406549454, 0.002647329354658723, 0.02266194298863411, -0.005114008206874132, 0.0031419836450368166, 0.00891028717160225, -0.01665709912776947, -0.013693614862859249, 0.06082799285650253, -0.008908811956644058, 0.016198426485061646, 0.005190784577280283, 0.014632491394877434, -0.025283828377723694, -0.0029865296091884375, 0.010398706421256065, 0.07449624687433243, -0.0053821830078959465, -0.0735514685511589, -0.0033224280923604965, -0.04074046015739441, 0.07002942264080048, -0.03045051544904709, -0.05978059768676758, -0.03891608119010925, 0.02036428265273571, -0.005513851530849934, -0.010098859667778015, -0.02812008559703827, -0.016972331330180168, -0.05211673304438591, -0.0376773476600647, 0.017377490177750587, -0.017323341220617294, -0.0519455224275589, -0.03470660001039505, -0.006403298582881689, -0.08189857006072998, -0.07373568415641785, -0.025925926864147186, 0.08339959383010864, 0.019779637455940247, -0.02538561448454857, 0.0022341646254062653, -0.02155992202460766, -0.11672379076480865, -0.02464159205555916, -0.004439487121999264, -0.032988786697387695, 0.02901478111743927, -0.008939201943576336, 0.07113742083311081, -0.045331526547670364, -0.03049086220562458, 0.03843227028846741, 0.023039378225803375, 0.013500778004527092, -0.03891666606068611, 0.008101804181933403, 0.006991598289459944, -0.008920307271182537, -0.0032176754903048277, 0.0519430935382843, -0.04585684835910797, -0.04098134860396385, -0.011229133233428001, 0.005241111386567354, 0.003792340401560068, 0.009208320640027523, 0.015356775373220444, 0.012688829563558102, 0.04010738059878349, 0.01746148057281971, -0.057433731853961945, 0.0168466717004776, -0.04180271551012993, -0.008940108120441437, -0.009209402836859226, -0.042395059019327164, 0.01992369256913662, 0.04279772564768791, 0.03280172124505043, -0.012538967654109001, -0.05389229953289032, 0.016271214932203293, -0.0728486180305481, -0.012650789692997932, -0.02944169193506241, 0.023727497085928917, 0.03603284806013107, 0.00960044376552105, -0.02495046891272068, -0.05187756568193436, 0.028287796303629875, 0.004596555605530739, -0.007722761016339064, -0.0531114861369133, -0.01540311798453331, -0.006819127593189478, -0.0185606200248003, 0.0019783268216997385, 0.014149989001452923, -0.030137473717331886, 0.02841060608625412, 0.04033881053328514, -0.03313778340816498, 0.029600046575069427, -0.03637953847646713, -0.05311701446771622, -0.04329473152756691, 0.002305639674887061, 0.0027766614221036434, -0.0002348881826037541, 0.01994570903480053, 0.012240909039974213, 0.02811628393828869, 0.04510753974318504, 0.029646901413798332, 0.03876570984721184, -0.01520594023168087, 0.03506726771593094, -0.003386058611795306, -0.008604385890066624, -0.061409223824739456, 0.014378142543137074, -0.03468625620007515, -0.014920723624527454, -0.013386357575654984, 0.009003108367323875, -0.024711791425943375, -0.01872152090072632, -0.03379456698894501, -0.011752700433135033, -0.05217614024877548, -0.0022038163151592016, -0.014708169735968113, 0.0013056618627160788, 0.04874392971396446, 0.010866574943065643, 0.022815892472863197, -0.014080546796321869, -0.01903666742146015, 0.010498694144189358, 0.02411525510251522, -0.027682412415742874, 0.021190624684095383, -0.006105389911681414, -0.009581360965967178, 0.009101878851652145, 0.020203161984682083, 0.028742685914039612, 0.03232213482260704, 0.0029574839863926172, -0.009913858026266098, 0.038526635617017746, 0.03157142922282219, 0.03477584943175316, 0.05707157775759697, -0.028821518644690514, -0.005860709585249424, -0.03897138684988022, -0.013864080421626568, -0.02009342797100544, -0.006143331993371248, -0.012833490036427975, -0.015023993328213692, -0.03536645323038101, -0.08281266689300537, 0.034224241971969604, 0.027489980682730675, 0.006575843784958124, 0.022955797612667084, -0.020735111087560654, 0.006000945344567299, -0.032143574208021164, 0.043626606464385986, 0.04950696974992752, -0.0771043598651886, 0.01733381301164627, 0.0029356786981225014, 0.0038633961230516434, -0.01003324892371893, 0.02895103022456169, -0.031823642551898956, -0.021909872069954872, -0.008565003052353859, 0.043129388242959976, -0.03534965589642525, -0.00178177107591182, -0.042749546468257904, 0.019049059599637985, -0.026395708322525024, 0.0035243448801338673, -0.00024197829770855606, -0.030729716643691063, -0.006296948064118624, -0.019112683832645416, 0.017852846533060074, -0.015648748725652695, -0.03781447187066078, 0.028609124943614006, -0.02794954925775528, 0.00889444537460804, -0.041416093707084656, 0.02102038823068142, 0.03574620187282562, -0.02706538885831833, -0.018993904814124107, -0.024821246042847633, -0.008413841016590595, 0.014978844672441483, 0.03917442634701729, 0.007057689595967531, -0.005441052373498678, -0.024351436644792557, 0.006044822745025158, -0.023941388353705406, 0.007995461113750935, -0.01797390729188919, -0.022000551223754883, 0.03036942332983017, 0.022710083052515984, -0.010437197051942348, -0.015240542590618134, -0.03436633571982384, -0.027881456539034843, 0.04693496227264404, -0.040454279631376266, -0.04695124551653862, -0.009572938084602356, -0.06484095007181168, 0.035594191402196884, 0.010203259065747261, 0.02768983319401741, -0.03133920580148697, 0.04354516416788101, 0.026666728779673576, 0.017675917595624924, 0.048041023313999176, 0.0001826610678108409, 0.040794696658849716, -0.020338580012321472, -0.027069948613643646, -0.08348019421100616, -0.02432060055434704, -0.002893289318308234, -0.03211653232574463, -0.008775082416832447, 0.004668787587434053, -0.056095585227012634, 0.04623652249574661, -0.06988786160945892, -0.02634068951010704, 0.049944642931222916, -0.02033114619553089, 0.007802056614309549, 0.029525069519877434, -0.05071791633963585, 0.0433872826397419, 0.022191986441612244, -0.0370137058198452, -0.01842409372329712, 0.0000328231617459096, 0.05288037285208702, 0.011968595907092094, 0.043880123645067215, -0.027184078469872475, -0.015142296440899372, 0.0704277828335762, 0.006607447285205126, -0.0048933569341897964, 0.04286537691950798, -0.027551166713237762, 0.051855869591236115, 0.011201382614672184, -0.022929241880774498, 0.01669977605342865, 0.0190146304666996, -0.028668221086263657, -0.067778080701828, 0.014830242842435837, 0.007907075807452202, -0.014998214319348335, -0.06031421571969986, 0.06767259538173676, 0.014683467335999012, -0.02039335109293461, -0.07217027246952057, 0.029914628714323044, -0.03380070999264717, 0.009385480545461178, -0.010788029991090298, -0.009718247689306736, -0.045221660286188126, 0.05242971330881119, -0.008065436035394669, 0.02423933893442154, 0.059113189578056335, 0.002339542843401432, 0.009133925661444664, -0.00831516645848751, 0.0928013026714325, 0.09844484180212021, 0.031146274879574776, 0.025493675842881203, 0.07453475892543793, -0.013762842863798141, -0.05391644686460495, -0.002176407491788268, 0.00389456981793046, -0.028310216963291168, -0.03458757698535919, 0.014654042199254036, 0.08118778467178345, -0.011442339047789574, 0.07379721850156784, -0.04392263665795326, -0.01183909922838211, -0.005324996542185545, 0.008116787299513817, 0.03705059736967087, 0.030973557382822037, -0.005673485342413187, 0.025881752371788025, -0.017128439620137215, -0.013765166513621807, 0.04584730789065361, 0.0018009520135819912, -0.013370413333177567, 0.008874880149960518, -0.004899866878986359, 0.01669517159461975, 0.018369698897004128, 0.04187663272023201, 0.07545644789934158, -0.004790423437952995, 0.0002637722936924547, 0.0087813101708889, 0.02896205335855484, 0.022075440734624863, 0.03233129903674126, -0.011640188284218311, -0.028694266453385353, -0.012237598188221455, -0.015169073827564716, -0.008883479982614517, -0.049425091594457626, -0.02785053662955761, 0.03244727477431297, -0.024044370278716087, 0.0022049425169825554, 0.028598306700587273, -0.00881844013929367, -0.05621456727385521, -0.02882521040737629, -0.05398257449269295, -0.025360768660902977, -0.05271761491894722, -0.01068864669650793, 0.00018705957336351275, -0.013103820383548737, -0.043760064989328384, -0.017939183861017227, -0.022921327501535416, -0.03176671266555786, 0.010618748143315315, -0.054675761610269547, -0.03753764554858208, 0.022712212055921555, 0.028954025357961655, 0.023203909397125244, 0.0226468276232481, 0.06903565675020218, 0.008277259767055511, -0.01559145376086235, -0.01495480164885521, 0.018498744815587997, 0.05509759113192558, 0.013183550909161568, 0.012269359081983566, -0.0843941867351532, 0.02931184321641922, 0.030386462807655334, -0.018386907875537872, -0.06476962566375732, 0.028651326894760132, 0.036831747740507126, 0.0039304629899561405, 0.06233512610197067, -0.0077657029032707214, 0.007904238067567348, -0.04082048684358597, -0.02482248656451702, -0.011666081845760345, 0.0025627065915614367, 0.045888230204582214, -0.025079036131501198, 0.07444529980421066, 0.03575946018099785, -0.0224087443202734, -0.04891825467348099, -0.0033131095115095377, -0.005567146930843592, 0.03881340101361275, -0.03206980600953102, -0.03239184245467186, -0.04296795278787613, -0.0863848328590393, -0.057967886328697205, 0.03340698033571243, -0.02940562553703785, -0.031072203069925308, 0.018116753548383713, 0.014413525350391865, -0.026216834783554077, 0.032760024070739746, -0.052060071378946304, -0.003485338296741247, -0.022273769602179527, -0.018193194642663002, -0.02729799412190914, 0.03862861543893814, 0.010501992888748646, 0.0017720041796565056, 0.026922035962343216, -0.036743756383657455, 0.005432771984487772, -0.0013989009894430637, 0.03767552971839905, 0.05375288054347038, 0.016585353761911392, 0.002700098091736436 ]
[ -0.0719795972108841, -0.017702043056488037, -0.015587297268211842, -0.05270512029528618, 0.03912181779742241, -0.021818645298480988, -0.03887166082859039, -0.010566103272140026, 0.0077794212847948074, -0.03184943273663521, 0.03028647042810917, -0.06058235466480255, 0.019864488393068314, -0.012674851343035698, 0.08417418599128723, 0.021478909999132156, 0.019158681854605675, -0.0654980018734932, -0.016813458874821663, 0.058567605912685394, -0.01791113242506981, -0.03505659103393555, -0.014741886407136917, -0.04007621854543686, -0.01623978279531002, 0.04259030148386955, 0.009691937826573849, -0.05812957510352135, 0.0043540108017623425, -0.2115928828716278, 0.026809867471456528, -0.007772968150675297, 0.013272139243781567, -0.03583278879523277, -0.002755077788606286, 0.036002326756715775, 0.04247630387544632, 0.0019634179770946503, 0.02749418281018734, 0.032838210463523865, 0.00784378219395876, 0.03297519311308861, -0.06252451986074448, -0.02260531671345234, 0.04541974142193794, -0.032536424696445465, -0.016533982008695602, -0.013443724252283573, -0.0025816336274147034, 0.022496655583381653, -0.061781398952007294, 0.02881605364382267, -0.0043508089147508144, 0.0070801954716444016, -0.04039722681045532, 0.053781911730766296, 0.03775344789028168, 0.04347441717982292, 0.018750282004475594, -0.01667572557926178, 0.008777962066233158, -0.01496846042573452, -0.10570325702428818, 0.11041411012411118, 0.005333528853952885, 0.015756426379084587, 0.008962887339293957, 0.003361243987455964, -0.02712409384548664, 0.07429894059896469, -0.027626393362879753, -0.036507103592157364, -0.01851719245314598, 0.03114142455160618, -0.0015726092969998717, -0.05173785611987114, -0.021162772551178932, 0.03842904418706894, -0.0026223526801913977, -0.036857426166534424, -0.05332569405436516, -0.01707247644662857, -0.025196203961968422, -0.024602191522717476, -0.030744977295398712, -0.012696947902441025, -0.008217208087444305, 0.04048518091440201, -0.016216102987527847, -0.0115311648696661, 0.05004708096385002, -0.015277091413736343, 0.041541509330272675, -0.0007337421411648393, -0.10465610027313232, 0.016557276248931885, -0.02918291836977005, 0.03444371372461319, 0.01339216623455286, 0.4591198265552521, -0.011386167258024216, -0.0015313968760892749, 0.037899766117334366, 0.0037541694473475218, 0.010087162256240845, 0.004708753898739815, 0.019840257242321968, -0.004918866325169802, 0.020563844591379166, -0.01770506612956524, -0.009615839459002018, -0.03672471642494202, 0.06285978853702545, -0.0788835808634758, 0.03131560981273651, -0.03016052581369877, 0.0094632962718606, 0.019718363881111145, -0.030268920585513115, -0.010740752331912518, -0.03008633852005005, 0.003577787196263671, 0.06628233194351196, -0.00027491769287735224, 0.017318950966000557, 0.027970582246780396, 0.02526617981493473, 0.044147197157144547, 0.08856040984392166, 0.02652270719408989, 0.0015067218337208033, 0.011727122589945793, -0.03814505785703659, -0.011236809194087982, 0.013399292714893818, 0.029306689277291298, 0.07051997631788254, -0.05727729946374893, 0.027553431689739227, -0.01662096567451954, 0.015791552141308784, -0.054313767701387405, 0.04871906712651253, 0.00007510404975619167, -0.045346975326538086, 0.14652596414089203, 0.022087039425969124, -0.02174978516995907, -0.018707741051912308, -0.06266564130783081, -0.0023772423155605793, 0.049498073756694794, -0.005215135868638754, -0.032191768288612366, 0.008090540766716003, 0.02940165437757969, 0.06488052755594254, -0.006717972923070192, -0.06357798725366592, -0.021089965477585793, -0.008844586089253426, -0.04048509523272514, 0.002385738305747509, 0.03437338024377823, 0.015219124965369701, -0.12718018889427185, -0.02765308879315853, 0.009780281223356724, -0.009661477990448475, -0.06737042963504791, -0.0002591981610748917, 0.011671154759824276, -0.020139072090387344, 0.013099859468638897, 0.028583543375134468, -0.038476407527923584, -0.019439373165369034, 0.0018665033858269453, 0.03261723741889, 0.00804207008332014, -0.049931641668081284, 0.0008192000677809119, -0.002793222898617387, -0.0015823118155822158, -0.055673398077487946, -0.06496617197990417, -0.0445362851023674, 0.009153864346444607, 0.006727110594511032, -0.014555132947862148, 0.009260124526917934, -0.0309143103659153, -0.027293648570775986, 0.054294537752866745, -0.02440296672284603, -0.0005529720219783485, 0.015689395368099213, 0.02471359632909298, -0.015426002442836761, -0.047079719603061676, 0.05491185188293457, 0.00014994583034422249, -0.00566880451515317, 0.024221839383244514, -0.02791064977645874, 0.05443568155169487, 0.031821947544813156, -0.02982286363840103, 0.07941193878650665, 0.00036922437720932066, -0.05905373767018318, 0.01613439805805683, 0.006921903695911169, -0.00539665762335062, -0.01675378531217575, -0.003559946548193693, 0.0006158867618069053, 0.0010081961518153548, 0.03542378917336464, 0.04671930521726608, -0.012295430526137352, -0.06950727850198746, -0.06280875205993652, -0.3501453697681427, -0.024646874517202377, -0.0034525608643889427, -0.0070998589508235455, 0.019735626876354218, -0.05595313385128975, 0.019702520221471786, 0.01028069294989109, 0.026530014351010323, 0.02674657106399536, 0.1027432382106781, -0.04603522643446922, -0.024998629465699196, -0.09355907142162323, -0.03253546729683876, 0.008373676799237728, -0.014751392416656017, 0.0011392696760594845, -0.03961125761270523, -0.003425265196710825, 0.02539055421948433, -0.006467780098319054, -0.08714326471090317, -0.026711195707321167, 0.004286862909793854, -0.010441340506076813, 0.09283679723739624, 0.02538098581135273, 0.04211878031492233, -0.06845368444919586, 0.06268816441297531, 0.03820044919848442, -0.0016974183963611722, -0.07243562489748001, 0.0034399423748254776, -0.041001494973897934, -0.010424855165183544, -0.007425992283970118, 0.03164107725024223, -0.020857028663158417, -0.07661344110965729, 0.010313170030713081, -0.01854921504855156, -0.0791955441236496, -0.007214574608951807, 0.001244753715582192, -0.003324694698676467, -0.03318300098180771, -0.02455442026257515, 0.033633001148700714, 0.03426668420433998, -0.02100728265941143, 0.01665121503174305, 0.018094833940267563, 0.017513105645775795, -0.017050813883543015, -0.05219091847538948, -0.05552835017442703, 0.00484322989359498, -0.00817786529660225, 0.009872916154563427, 0.02007492631673813, 0.04204956814646721, -0.07406070828437805, -0.0223162192851305, 0.024801671504974365, -0.0028133399318903685, 0.0014665061607956886, 0.050297174602746964, -0.05382785573601723, -0.021545393392443657, 0.08253948390483856, -0.0020443724934011698, 0.04410723224282265, 0.05388335883617401, 0.028473401442170143, -0.0036440843250602484, 0.055875927209854126, 0.004989630542695522, -0.008204388432204723, 0.028811456635594368, -0.007626319769769907, 0.03690004348754883, -0.04235714673995972, 0.006761758588254452, 0.037415966391563416, 0.010059528984129429, -0.007863915525376797, 0.06076095998287201, 0.013346240855753422, 0.009485763497650623, -0.013194628991186619, -0.025886235758662224, -0.03976435586810112, 0.029466601088643074, 0.021466169506311417, -0.259818971157074, 0.05911685526371002, 0.04501659795641899, 0.06098450720310211, -0.005043814890086651, 0.02476833015680313, 0.042795415967702866, -0.043179623782634735, 0.010012208484113216, 0.001493986346758902, 0.03210034593939781, 0.060202594846487045, 0.017930299043655396, 0.0011614533141255379, 0.009355074726045132, -0.012538804672658443, 0.007465779315680265, 0.03388313576579094, 0.023986930027604103, -0.013383232988417149, 0.01921951025724411, -0.05436206981539726, 0.17964927852153778, 0.03932798281311989, -0.022049205377697945, 0.027549708262085915, 0.033400435000658035, 0.011143227107822895, 0.030047625303268433, 0.02310560643672943, -0.022481711581349373, -0.017430931329727173, 0.012113956734538078, -0.003209826536476612, 0.028556592762470245, -0.03914501145482063, -0.044400036334991455, 0.04100022092461586, 0.0005307221435941756, 0.018092811107635498, 0.023117125034332275, 0.015204527415335178, -0.005178270395845175, 0.0482981912791729, 0.05805987864732742, -0.02789796143770218, 0.0063199070282280445, -0.008780709467828274, -0.02198990248143673, -0.0010982212843373418, -0.010501779615879059, -0.06486738473176956, -0.0018578863237053156, -0.024094615131616592, 0.01773751527070999, 0.07748056203126907, 0.022124283015727997, 0.015134674496948719, 0.03603316843509674, 0.02801455929875374, 0.004803202580660582, -0.0338345505297184, 0.08141295611858368, 0.009525488130748272, 0.04293689504265785 ]
[ -0.0012372755445539951, 0.018739676102995872, -0.014392889104783535, -0.004153928253799677, -0.001636473461985588, 0.012942109256982803, 0.016450878232717514, 0.043458450585603714, -0.008520510047674179, 0.001182453939691186, -0.012958730570971966, -0.009400991722941399, 0.004330331459641457, -0.02860380709171295, 0.001946758246049285, -0.03508696332573891, 0.010089008137583733, -0.0006105156498961151, 0.03618374094367027, 0.030983656644821167, -0.030249707400798798, 0.008628711104393005, 0.020954573526978493, -0.012015295214951038, -0.030177081003785133, 0.008498525246977806, -0.04546327516436577, -0.0031782113946974277, 0.02682083658874035, -0.13779346644878387, -0.016099654138088226, -0.0223398357629776, -0.002853577258065343, 0.014954985119402409, 0.01949384994804859, -0.0016300311544910073, -0.015203024260699749, 0.03612969070672989, -0.03064299002289772, -0.010020080022513866, 0.022637858986854553, -0.005612906068563461, -0.0007841456099413335, 0.003137497464194894, 0.007289076689630747, 0.00018040617578662932, -0.031088195741176605, -0.0007272919174283743, -0.017264684662222862, 0.028907882049679756, -0.061942920088768005, 0.01899242214858532, -0.015007576905190945, 0.023266956210136414, -0.03795500472187996, 0.007158369291573763, -0.03315956890583038, 0.02159746177494526, -0.009855804033577442, -0.013131843879818916, 0.0013911828864365816, -0.006423963699489832, -0.052398085594177246, -0.03313906118273735, -0.01429676916450262, -0.015620404854416847, -0.010964864864945412, 0.003932830411940813, -0.01799093745648861, 0.02037590742111206, -0.01508273370563984, 0.012743242084980011, -0.02048981748521328, -0.002830245066434145, -0.026636505499482155, 0.022945700213313103, 0.0015458862762898207, -0.025927739217877388, 0.009958736598491669, 0.01486440934240818, -0.01657549850642681, -0.0035392793361097574, 0.0192373376339674, 0.026599833741784096, -0.0015280564548447728, 0.003644531359896064, 0.026414627209305763, -0.0007847871165722609, -0.009719807654619217, -0.0347551666200161, 0.010031092911958694, 0.004937501158565283, 0.019981348887085915, 0.048063889145851135, -0.09925306588411331, 0.03108864277601242, -0.02943943813443184, 0.0009350174805149436, -0.022893713787198067, 0.8448618650436401, -0.028343921527266502, 0.003030222374945879, 0.03133625537157059, 0.012203038670122623, 0.0071629066951572895, -0.02749544195830822, -0.0022524690721184015, 0.0014407485723495483, 0.012673231773078442, -0.036876704543828964, 0.03042462095618248, 0.02896631322801113, 0.0223512202501297, 0.00959294568747282, 0.024502309039235115, 0.010829943232238293, 0.018156077712774277, -0.005111290607601404, 0.01260601356625557, -0.01721864566206932, 0.06006256490945816, -0.03042932227253914, 0.01577797345817089, -0.023364823311567307, -0.00023867381969466805, -0.16638822853565216, 0.028547875583171844, -6.61908011978568e-33, 0.040636658668518066, -0.03467055410146713, 0.035620421171188354, -0.006718043703585863, -0.002976873889565468, -0.006327253300696611, -0.0024329477455466986, 0.014306499622762203, -0.04233516380190849, -0.021761160343885422, 0.023080842569470406, -0.04956556856632233, 0.003935278858989477, -0.016755731776356697, 0.006905798334628344, -0.0213804729282856, 0.013242325745522976, 0.03470443934202194, 0.009225264191627502, -0.00842148344963789, 0.05665803328156471, 0.040753621608018875, 0.04550981521606445, 0.04790159687399864, -0.025409922003746033, 0.02423921599984169, 0.019151583313941956, -0.013762407004833221, -0.0016984366811811924, -0.036291029304265976, -0.022049542516469955, 0.011253808625042439, 0.025542011484503746, -0.0163190346211195, 0.02507767826318741, -0.04014763981103897, -0.015603739768266678, -0.01911141537129879, 0.011856787838041782, 0.011271479539573193, -0.03203149139881134, -0.0034926887601614, -0.04138427600264549, -0.031203318387269974, -0.04166597127914429, -0.010267401114106178, 0.016573527827858925, 0.012205381877720356, -0.02704450860619545, 0.001543925958685577, 0.027241341769695282, -0.01414264366030693, -0.015566401183605194, 0.018337242305278778, 0.0017162496224045753, 0.049017470329999924, 0.01667114906013012, 0.009283849969506264, 0.02406572364270687, 0.00962780974805355, 0.016354959458112717, -0.021477311849594116, 0.03607623279094696, 0.014479662291705608, 0.006034371443092823, -0.005445679649710655, 0.019716426730155945, -0.013701100833714008, 0.0008420581580139697, 0.015564748086035252, -0.02460147626698017, 0.039980608969926834, 0.004541481379419565, -0.04222191870212555, 0.05167233198881149, -0.027132315561175346, 0.00018079472647514194, 0.01886844076216221, 0.015470136888325214, -0.0031018827576190233, 0.004854724742472172, -0.0007704048184677958, -0.02251560054719448, -0.005743658635765314, -0.0329107791185379, -0.047740790992975235, 0.03867294266819954, 0.0011578407138586044, -0.03066789172589779, -0.036891430616378784, 0.03957165405154228, 0.053476449102163315, 0.02946554496884346, -0.04860788956284523, -0.02752443589270115, 7.471193035960879e-33, 0.008816247805953026, 0.017193352803587914, -0.027431191876530647, -0.006774529814720154, 0.028671978041529655, -0.006738073658198118, 0.048080187290906906, 0.0075262198224663734, -0.01983918435871601, 0.023206263780593872, -0.04238874837756157, -0.01506160106509924, -0.03183691203594208, -0.006500952877104282, 0.005541021469980478, 0.003651422681286931, 0.03235303610563278, -0.048809848725795746, 0.0035596590023487806, -0.024401672184467316, -0.015220344066619873, -0.0075806803070008755, 0.043692249804735184, 0.05061332508921623, 0.0230360459536314, 0.021319616585969925, -0.0045354533940553665, 0.017053136602044106, -0.032755203545093536, 0.0081748366355896, 0.03198615089058876, -0.013264469802379608, 0.008822595700621605, -0.006265179719775915, -0.038054563105106354, 0.03398066386580467, 0.03578128293156624, 0.02260982245206833, 0.011559577658772469, -0.014245089143514633, 0.01648429036140442, -0.00787543598562479, -0.0029280134476721287, 0.01028261985629797, 0.00004296181214158423, 0.01035989262163639, -0.00432612095028162, 0.020683925598859787, -0.027715615928173065, 0.017042389139533043, 0.003907662350684404, 0.019371623173356056, 0.02624918706715107, 0.034462813287973404, -0.009930447675287724, -0.0165400393307209, -0.013358619064092636, 0.013461718335747719, -0.01970282383263111, -0.003232959657907486, -0.023140890523791313, -0.006989442743360996, -0.06763449311256409, 0.018857404589653015, -0.014967091381549835, -0.011859005317091942, -0.029382502660155296, -0.04935302585363388, -0.016777031123638153, -0.021705949679017067, 0.02154136449098587, 0.0177460964769125, -0.011831635609269142, 0.034310564398765564, 0.04535640776157379, -0.017628492787480354, 0.00016243726713582873, -0.010056210681796074, 0.03080912120640278, 0.03873581811785698, -0.0014859100338071585, -0.005815600976347923, 0.007263253442943096, -0.017343679443001747, -0.0033640859182924032, 0.02370564453303814, -0.03650194779038429, 0.013407737016677856, 0.026121925562620163, -0.005972378887236118, -0.02930871583521366, -0.04480519890785217, 0.008999769575893879, 0.015117727220058441, 0.03780357539653778, -1.2766595780533407e-8, -0.031624775379896164, -0.01223403587937355, -0.0368967205286026, 0.008036156184971333, 0.016349710524082184, -0.00273091159760952, -0.01749754324555397, 0.017743676900863647, 0.012539777904748917, 0.01147674210369587, 0.041920971125364304, -0.028996868059039116, 0.008400370366871357, 0.018729737028479576, 0.022004475817084312, -0.029224790632724762, 0.057241298258304596, -0.0008628902141936123, -0.00042722775833681226, -0.00038489600410684943, 0.0407964289188385, 0.04990506172180176, 0.006774548441171646, -0.015857532620429993, 0.006221678573638201, -0.007854011841118336, -0.020961755886673927, -0.10374093800783157, -0.08033683151006699, 0.0038688837084919214, 0.019535750150680542, -0.026131337508559227, -0.018236784264445305, -0.0028304504230618477, -0.04214326664805412, -0.02186501771211624, 0.020548522472381592, 0.027494965121150017, 0.01577954925596714, -0.0014863080577924848, 0.021645361557602882, -0.017255326732993126, 0.0037588609848171473, -0.026564177125692368, -0.029517265036702156, 0.00510435039177537, -0.011876203119754791, 0.012318682856857777, 0.04011308029294014, -0.016948625445365906, 0.020582035183906555, 0.008305416442453861, 0.007866107858717442, 0.020545193925499916, 0.009662557393312454, -0.01061959657818079, 0.031027648597955704, 0.01822734996676445, -0.0006705720443278551, 0.01940009370446205, 0.021699607372283936, -0.0010323189198970795, 0.005063523072749376, -0.0022656756918877363 ]
clickhouse-summing-columns-remote-files
https://markhneedham.com/blog/2023/11/15/clickhouse-summing-columns-remote-files
false
2023-10-03 00:44:37
Running Mistral AI on my machine with Ollama
[ "ollama", "mistralai", "generative-ai", "llama-index", "til" ]
[ "TIL" ]
:icons: font Last week Mistral AI announced the release of their first Large Language Model (LLM), trained with 7 billion parameters, and better than Meta's Llama 2 model with 13 billion parameters. For those keeping track, https://techcrunch.com/2023/06/13/frances-mistral-ai-blows-in-with-a-113m-seed-round-at-a-260m-valuation-to-take-on-openai/?guccounter=1[Mistral AI was founded in the summer of 2023^] and raised $113m in their seed round. [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/NFgEgqua-fg?si=P67Le7XyVjBwrIHR" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> ++++ ==== == Ollama: Running LLMs locally In this blog post, we're going to try out Mistral AI's LLM on a local machine using a tool called https://ollama.ai/[Ollama^]. We'll choose the Mac option from https://ollama.ai/download[the download page^], move it to our `/Applications` directory and then run it. There is no UI (at least at the moment), so we'll need to head to the terminal. We can run the following command to see what options we have: [source, bash] ---- ollama ---- .Output [source, bash] ---- Large language model runner Usage: ollama [command] Available Commands: serve Start ollama create Create a model from a Modelfile show Show information for a model run Run a model pull Pull a model from a registry push Push a model to a registry list List models cp Copy a model rm Remove a model help Help about any command Flags: -h, --help help for ollama -v, --version version for ollama Use "ollama [command] --help" for more information about a command. ---- If we run `ollama list`, we'll get a list of the models that we've installed locally, which will initially be empty. == Installing Mistral AI Let's rectify that by installing the Mistral AI model. Let's navigate to the https://ollama.ai/library[list of models^] and then scroll down to find the https://ollama.ai/library/mistral[Mistral one^]. This page has information about the model, as well as installation instructions. We can also click on `Tags` to see a bunch of variants of the model that we can use. If we want to run the instruct version of the model, we can execute the following command: [source, bash] ---- ollama run mistral:instruct ---- If the model doesn't exist locally, it will first be downloaded. We can also do the download in a separate step [source, bash] ---- ollama pull mistral:instruct ---- .Output [source, text] ---- pulling manifest pulling 6ae280299950... 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (4.1/4.1 GB, 23 TB/s) pulling fede2d8d6c1f... 100% |████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (29/29 B, 280 kB/s) pulling b96850d2e482... 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (307/307 B, 834 kB/s) verifying sha256 digest writing manifest removing any unused layers success ---- My computer can't download at 23 TB/second, the reason it shows that I've already locally installed `mistral:latest`, which happens to be the same as `mistral:instruct`. Let's have a look at the models that I've installed locally: [source, bash] ---- ollama list ---- .Output [source, text] ---- NAME ID SIZE MODIFIED mistral:instruct 8aa307f73b26 4.1 GB 27 seconds ago mistral:latest 8aa307f73b26 4.1 GB 4 days ago ---- == Running Mistral AI from the CLI Now that we've downloaded the model, it's time to take it for a spin. We're going to interact with the model in interactive mode, by calling the `run` sub-command without providing a prompt: [source, bash] ---- ollama run mistral --verbose ---- .Output [source, text] ---- >>> Send a message (/? for help) ---- Let's start with a question about Apache Pinot that we asked of the `lmsys/fastchat-t5-3b-v1.0` model, in https://www.markhneedham.com/blog/2023/06/23/hugging-face-run-llm-model-locally-laptop/[my previous post about running LLMs on your machine^]. [source, bash] ---- >>> What is Apache Pinot? ---- .Output [source, text] ---- Apache Pinot is an open-source columnar storage database designed to handle large amounts of data in a fast and efficient manner. It is built on top of the Apache Hadoop Distributed File System (HDFS) and is used to store and query massive volumes of structured and semi-structured data. Pinot provides high performance and low latency for real-time analytics, and can scale horizontally to handle large amounts of data across many nodes in a cluster. It also supports advanced analytics capabilities such as filtering, aggregation, sorting, and grouping of data. total duration: 2.497404s load duration: 1.366417ms prompt eval count: 15 token(s) prompt eval duration: 245.655ms prompt eval rate: 61.06 tokens/s eval count: 122 token(s) eval duration: 2.141823s eval rate: 56.96 tokens/s ---- It's not built on top of HDFS, so that's not right, but the rest of the answer isn't terrible. Let's tell it that and see what happens: [source, bash] ---- >>> I don't think it's built on HDFS? ---- .Output [source, text] ---- You are correct, Apache Pinot is not built on top of the Hadoop Distributed File System (HDFS). Instead, it has its own custom storage system called the "column store" which is optimized for storing and querying columnar data. The column store is built using a combination of in-memory and disk-based storage to provide fast read and write performance. Pinot also supports various data ingestion methods such as batch, real-time, and stream processing, making it suitable for use cases that require high throughput and low latency. total duration: 2.740019708s load duration: 2.253375ms prompt eval count: 158 token(s) prompt eval duration: 505.415ms prompt eval rate: 312.61 tokens/s eval count: 118 token(s) eval duration: 2.129927s eval rate: 55.40 tokens/s ---- It is a column store, but it's not called 'column store', but there we go! The description of how it's built isn't quite right either., but let's move on! An https://thenextweb.com/news/mistral-releases-first-generative-ai-model[article from thenextweb.com^] says the following: [blockquote] ____ French AI developer Mistral says its Large Language Model is optimal for low latency, text summarisation, classification, text completion, and code completion. The startup has opted to release Mistral 7B under the Apache 2.0 licence, which has no restrictions on use or reproduction beyond attribution. ____ Let's see how well it gets on with some of these tasks using https://www.bbc.co.uk/sport/football/66989159[this BBC article^] about the use of VAR (Video Assitant Referee) in the Premier League. I've copy/pasted the text into the `bbc.txt` file locally. To programmatically pass in the contents of this file, we're going to exit interactive mode and pass in the prompt directly. First up, summarising the article: [source, bash] ---- ollama run mistral --verbose "Please can you summarise this article: $(cat bbc.txt)" ---- .Output [source, text] ---- In summary, the article reports that Jamie Carragher feels the crisis around VAR has escalated following the disallowed goal scored by Luis Diaz against Tottenham Hotspur on Saturday. The error was attributed to a significant human error and PGMOL, the governing body for referees, apologized for the mistake. However, Liverpool criticized the response of PGMOL and requested audio recordings of the match officials' communication. Shay Given also commented that it was a big mess and questioned how such a big moment could be wrong in a high-profile game. Chris Sutton agreed with Carragher and suggested that Liverpool fans should not see strong repercussions for the referee and the assistants who made the mistake. total duration: 5.61016175s load duration: 1.762583ms prompt eval count: 910 token(s) prompt eval duration: 2.349731s prompt eval rate: 387.28 tokens/s eval count: 153 token(s) eval duration: 3.125673s eval rate: 48.95 tokens/s ---- I'd say it's done a good job with that. How about if we ask for bullet points instead? [source, bash] ---- ollama run mistral --verbose "Can you pull out 5 bullet points from the following article: $(cat bbc.txt)" ---- .Output [source, text] ---- 1. The decision made by VAR during the game between Liverpool and Tottenham was incorrect, resulting in Luis Diaz's disallowed goal. 2. PGMOL, the governing body for referees, admitted that the decision was due to "a significant human error". 3. Jamie Carragher has stated that the feeling around VAR is at a crisis point after this incident. 4. Liverpool are planning to appeal against the red card given to Curtis Jones for fouling Yves Bissouma. 5. The controversy has led to criticism of PGMOL and the referees, with some calling for ex-players or people who understand the game more to be involved in VAR decisions. total duration: 5.490499458s load duration: 4.554ms prompt eval count: 918 token(s) prompt eval duration: 2.308006s prompt eval rate: 397.75 tokens/s eval count: 149 token(s) eval duration: 3.050338s eval rate: 48.85 tokens/s ---- Again, I like what it's come up with. How about if we ask it to categorise the document and detect its sentiment? [source, bash] ---- ollama run mistral --verbose "If you had to categorise this article, what tags would you use?: $(cat bbc.txt)" ---- .Output [source, text] ---- Football, Sports News, VAR, Referees, Human Error, Controversy, Red Cards, Discipline, Video Assistants, Governing Bodies total duration: 3.173798667s load duration: 3.880292ms prompt eval count: 925 token(s) prompt eval duration: 2.358585s prompt eval rate: 392.18 tokens/s eval count: 38 token(s) eval duration: 769.03ms eval rate: 49.41 tokens/s ---- [source, bash] ---- ollama run mistral --verbose "What's the sentiment of this article: $(cat bbc.txt)" ---- .Output [source, text] ---- The sentiment of this article is negative as it discusses criticism and controversy surrounding the video assistant referee (VAR) system. The incorrect decision made by VAR to flag Luis Diaz for offside resulted in a controversial match between Liverpool and Tottenham, with Liverpool losing 2-1 after an own goal deep into stoppage time. The club is appealing against the red card given to Curtis Jones, and there have been criticisms of PGMOL's response to the incident. Many people believe that this mistake was unprecedented and has undermined sporting integrity. total duration: 4.857536625s load duration: 2.101ms prompt eval count: 915 token(s) prompt eval duration: 2.344016s prompt eval rate: 390.36 tokens/s eval count: 118 token(s) eval duration: 2.40703s eval rate: 49.02 tokens/s ---- == Running Mistral AI from the HTTP API Ollama also provides an HTTP API that we can use to interact with the models. Let's give it a try: [source, bash] ---- curl -X POST http://localhost:11434/api/generate -d '{ "model": "mistral", "prompt": "What is the sentiment of this sentence: The situation surrounding the video assistant referee is at crisis point." }' ---- .Output [source, json] ---- {"model":"mistral","created_at":"2023-10-03T06:18:43.766825Z","response":"The","done":false} {"model":"mistral","created_at":"2023-10-03T06:18:43.785518Z","response":" sentiment","done":false} {"model":"mistral","created_at":"2023-10-03T06:18:43.804972Z","response":" of","done":false} {"model":"mistral","created_at":"2023-10-03T06:18:43.825034Z","response":" this","done":false} {"model":"mistral","created_at":"2023-10-03T06:18:43.84423Z","response":" sentence","done":false} {"model":"mistral","created_at":"2023-10-03T06:18:43.862961Z","response":" is","done":false} {"model":"mistral","created_at":"2023-10-03T06:18:43.881794Z","response":" negative","done":false} {"model":"mistral","created_at":"2023-10-03T06:18:43.900369Z","response":".","done":false} {"model":"mistral","created_at":"2023-10-03T06:18:43.91954Z","done":true,"context":[733,16289,28793,1824,349,272,21790,302,456,12271,28747,415,4620,12028,272,3798,13892,1792,14447,349,438,10788,1305,28723,733,28748,16289,28793,13,1014,21790,302,456,12271,349,7087,28723],"total_duration":397082750,"load_duration":1504000,"prompt_eval_count":26,"prompt_eval_duration":240025000,"eval_count":8,"eval_duration":141869000} ---- It works well, but the output is pretty tricky to work with, we'd have to do some work to massage that data. Luckily there are a bunch of LLM libraries that have done hard work for us! == Running Mistral AI with Llama Index Llama Index is a data framework for LLM applications to ingest, structure, and access private or domain-specific data. We can use it to call the Mistral model as part of a Python application: We'll first install Llama Index: [source, bash] ---- pip install llama-index ---- Now let's initialise the model: [source, python] ---- from llama_index.llms import Ollama llm = Ollama(model="mistral:instruct") ---- And call it: [source, python] ---- llm.complete("What is the sentiment of this sentence: The situation surrounding the video assistant referee is at crisis point.") ---- .Output [source, text] ---- CompletionResponse(text='The sentiment in the given sentence is negative, as it mentions that the situation is at a "crisis point" which suggests a state of extreme difficulty and urgency.', additional_kwargs={}, raw=None, delta=None) ----
In this post, we'll learn how to run Mistral AI's Large Language Model (LLM) on our own machine using Ollama.
uploads/2023/10/mistral-banner.png
[ -0.0044886283576488495, 0.015366570092737675, 0.00537920743227005, 0.034019727259874344, 0.07488149404525757, 0.03441242873668671, 0.04373506084084511, 0.055610861629247665, -0.02491600625216961, -0.006489864084869623, -0.008509479463100433, 0.006632651202380657, -0.05925796553492546, 0.02791150100529194, -0.021089350804686546, 0.07943253219127655, 0.06160718947649002, 0.006778945215046406, 0.01125916838645935, 0.014668552204966545, 0.031341440975666046, 0.055851731449365616, 0.04266856610774994, 0.03217730671167374, 0.008832063525915146, 0.01955536939203739, 0.027351442724466324, 0.007072466891258955, -0.05938601493835449, -0.017050154507160187, 0.02868361584842205, -0.019549153745174408, -0.00040432868991047144, -0.008085153996944427, 0.01219442579895258, -0.007104169577360153, -0.01703466661274433, 0.01812834106385708, 0.0008644080371595919, 0.024318253621459007, -0.0652647614479065, 0.038857351988554, -0.005233007948845625, 0.018352672457695007, -0.05543992295861244, -0.00783499889075756, -0.057293735444545746, 0.028096411377191544, 0.028310561552643776, -0.0049363174475729465, -0.08098214864730835, 0.026125537231564522, -0.03826764598488808, -0.010376877151429653, -0.021607397124171257, 0.03984058275818825, 0.012180516496300697, -0.08482470363378525, 0.0005947842146269977, -0.04808115214109421, -0.0005217536818236113, 0.004682566970586777, 0.027811938896775246, -0.003632595995441079, -0.01852402463555336, -0.013448517769575119, 0.01678059995174408, 0.035385891795158386, -0.06417825073003769, -0.012540707364678383, -0.006676145363599062, 0.009802567772567272, -0.03506375849246979, -0.014304573647677898, 0.027835959568619728, -0.06128767505288124, -0.014112350530922413, 0.07012075185775757, 0.023420007899403572, 0.030352620407938957, -0.017930036410689354, 0.0003851147776003927, 0.034972093999385834, 0.04679187759757042, -0.020274950191378593, -0.04134126380085945, -0.009715938940644264, -0.009833483956754208, -0.07791454344987869, 0.05130315199494362, 0.002973692724481225, -0.04988763853907585, 0.020411701872944832, 0.03201194480061531, -0.0007963664829730988, 0.008982282131910324, 0.01481184083968401, -0.011443700641393661, -0.011962664313614368, -0.008146001026034355, -0.024856582283973694, -0.02915053255856037, 0.019321978092193604, 0.02320641651749611, -0.09085538238286972, 0.00025266408920288086, -0.025225332006812096, 0.00607168348506093, 0.014013822190463543, 0.008028664626181126, 0.0031498477328568697, -0.0048846290446817875, -0.009434137493371964, 0.003997093997895718, -0.060215093195438385, 0.06913402676582336, 0.03187459334731102, -0.009350784122943878, 0.022704022005200386, 0.03266775608062744, 0.07207247614860535, 0.03180386498570442, -0.027375688776373863, 0.0868566706776619, -0.011192332953214645, 0.03492039069533348, -0.00490821897983551, 0.04010144621133804, -0.003773867152631283, -0.05489338934421539, 0.014883828349411488, 0.053612686693668365, 0.0017851205775514245, 0.013269354589283466, 0.011547151952981949, -0.018996886909008026, 0.003349720034748316, -0.008571532554924488, 0.06193801760673523, 0.016859842464327812, -0.004536095540970564, -0.037770532071590424, 0.00477644382044673, 0.00250476086512208, 0.03708279877901077, 0.01530411560088396, 0.0024641873314976692, -0.043692830950021744, -0.04124961048364639, -0.011430446989834309, -0.0010265596210956573, 0.019613193348050117, 0.03043440170586109, -0.02977202832698822, 0.0246344693005085, 0.09028957784175873, 0.023073093965649605, -0.017459312453866005, 0.0069488477893173695, 0.026747534051537514, 0.02788895182311535, 0.040669314563274384, 0.01342080719769001, 0.027613412588834763, 0.01623556762933731, -0.030791770666837692, -0.004580633249133825, 0.04476085305213928, -0.03213571384549141, -0.00796956941485405, -0.05754739046096802, -0.04834370315074921, 0.07276249676942825, -0.03388649597764015, -0.033797040581703186, 0.045800093561410904, 0.0947316512465477, 0.03633904457092285, 0.04344050586223602, 0.02062462642788887, -0.09144716709852219, 0.01850372552871704, 0.011293873190879822, 0.027156677097082138, 0.0338357575237751, -0.029100283980369568, 0.08683352917432785, 0.008612316101789474, 0.014186120592057705, 0.026622768491506577, -0.0412425771355629, -0.04388129338622093, -0.01796923577785492, 0.0067403074353933334, 0.07408293336629868, -0.028542257845401764, 0.018521146848797798, 0.057568151503801346, 0.016850240528583527, 0.05064665898680687, 0.017368800938129425, -0.01086507085710764, 0.02433757297694683, -0.04427766054868698, -0.06406712532043457, 0.028202708810567856, 0.03340985253453255, -0.030571458861231804, -0.024513067677617073, 0.011362151242792606, -0.04371631518006325, -0.011297594755887985, 0.039079274982213974, -0.012112235650420189, 0.022066932171583176, -0.00964963436126709, 0.024951722472906113, -0.01673039048910141, 0.03728758543729782, -0.05168437957763672, 0.017175955697894096, -0.00988010410219431, -0.03883528709411621, 0.007178274914622307, -0.006899655796587467, 0.11948255449533463, 0.060609668493270874, -0.0448044091463089, -0.03846639767289162, 0.015346835367381573, 0.03344285115599632, -0.05378100275993347, 0.0018458565464243293, -0.007239182014018297, -0.013228153809905052, -0.0005366058321669698, -0.03200512379407883, -0.031171537935733795, 0.0296673271805048, -0.05750378966331482, -0.01876825839281082, 0.07114231586456299, 0.0014242209726944566, 0.06356152892112732, -0.01256629079580307, -0.011372500099241734, 0.003867895808070898, -0.03804975375533104, -0.04370948299765587, -0.0022886726073920727, -0.0011164718307554722, -0.015806198120117188, 0.020763292908668518, -0.033092062920331955, -0.02123960666358471, -0.0441114716231823, -0.031517334282398224, 0.0315820686519146, 0.062157679349184036, 0.055003076791763306, -0.015520649962127209, 0.04234858229756355, -0.010393909178674221, 0.01943444274365902, 0.003291107015684247, -0.04532003030180931, -0.03749033063650131, -0.03714432567358017, 0.0028616294730454683, 0.017242521047592163, 0.02225835621356964, 0.02042473666369915, 0.013627873733639717, -0.0021917533595114946, 0.04436304047703743, 0.010624329559504986, 0.031061576679348946, 0.010537425987422466, -0.020371362566947937, -0.01950436271727085, -0.025621457025408745, 0.07789576798677444, -0.033963076770305634, -0.017130298539996147, -0.019336188212037086, -0.06833057105541229, 0.039232052862644196, -0.09178221970796585, -0.030920932069420815, -0.007627458777278662, 0.00819708313792944, 0.02295335754752159, 0.008599109947681427, 0.005279549863189459, 0.019642256200313568, 0.0028559237252920866, 0.014143431559205055, 0.013167271390557289, -0.016910135746002197, 0.03890109434723854, -0.02728893607854843, 0.023319778963923454, 0.010633636265993118, -0.001683152629993856, -0.0027543772011995316, -0.04908980056643486, 0.028913121670484543, -0.03268386423587799, -0.281881183385849, 0.007207176648080349, 0.0023790381383150816, -0.0526442751288414, 0.0038595523219555616, -0.019226642325520515, -0.0008410838781856, -0.04995937645435333, -0.014112397097051144, 0.008559922687709332, 0.00015109068772289902, -0.03419896960258484, -0.024217484518885612, 0.036136556416749954, 0.023688362911343575, 0.012865658849477768, -0.01659492217004299, -0.04130205139517784, 0.012285973876714706, 0.027415765449404716, 0.007567985914647579, -0.06297879666090012, -0.0064553506672382355, 0.05707782134413719, 0.034512363374233246, 0.06441829353570938, -0.061478182673454285, 0.013464502058923244, -0.04472964257001877, -0.016024181619286537, -0.0030791377648711205, -0.01816973090171814, 0.005343101918697357, 0.00886212382465601, -0.0030235080048441887, -0.005219015758484602, 0.06320838630199432, 0.006284171249717474, 0.044433001428842545, -0.01054016686975956, 0.0019671255722641945, -0.03791029378771782, 0.00878568459302187, 0.016688505187630653, 0.08990813046693802, -0.011735718697309494, -0.09320371598005295, -0.007558360695838928, -0.03965793922543526, 0.07163707911968231, -0.039678096771240234, -0.045461419969797134, -0.027657784521579742, 0.03287038207054138, -0.0004997227806597948, 0.002821433823555708, -0.006877871695905924, -0.022650087252259254, -0.052429139614105225, -0.02784140408039093, 0.0036340090446174145, -0.0324232317507267, -0.03364109247922897, -0.055269598960876465, 0.015930689871311188, -0.07968413829803467, -0.03313376381993294, -0.0010752590605989099, 0.08568816632032394, 0.02190847136080265, -0.04358896240592003, 0.003663568524643779, -0.03805280104279518, -0.09230241179466248, -0.0029994628857821226, -0.015649134293198586, -0.031029028818011284, 0.007681495975703001, -0.003709284821525216, 0.0651535913348198, -0.03968365490436554, -0.05380915105342865, 0.022608576342463493, 0.0029067920986562967, 0.009180042892694473, -0.016507022082805634, 0.030089301988482475, -0.0058396304957568645, 0.008904795162379742, 0.0005894952919334173, 0.07188031822443008, -0.0272942166775465, -0.017255183309316635, -0.02048339694738388, 0.0117111187428236, -0.004622093867510557, 0.019786765798926353, 0.007176917511969805, 0.022353520616889, 0.05647303909063339, 0.0061235250905156136, -0.06417718529701233, 0.014878395013511181, -0.04000665247440338, -0.013394969515502453, 0.021401144564151764, -0.04752033203840256, -0.003170848824083805, 0.03992575407028198, -0.01012338139116764, -0.014180286787450314, -0.05366997420787811, 0.02261107601225376, -0.05364430323243141, -0.051502350717782974, -0.023228907957673073, 0.011202502995729446, 0.05085671320557594, 0.00594344874843955, -0.013105496764183044, -0.052705734968185425, 0.028543220832943916, -0.006635977420955896, -0.005754607263952494, -0.03150954097509384, -0.018653055652976036, -0.0018211451824754477, 0.0023083072155714035, -0.002556969877332449, 0.006258053705096245, -0.012586305849254131, 0.020829565823078156, 0.03195345774292946, -0.039790451526641846, 0.04045374318957329, -0.024313360452651978, -0.029720768332481384, -0.04210997000336647, 0.013924529775977135, 0.004965959582477808, -0.0030955029651522636, 0.026050211861729622, -0.004203669726848602, 0.002677791053429246, 0.03280984237790108, 0.014127923175692558, 0.041064921766519547, -0.028897449374198914, 0.007237278390675783, 0.02048230916261673, 0.012455049902200699, -0.036589134484529495, 0.03394215181469917, -0.0184618029743433, -0.00392767833545804, -0.02722083404660225, 0.0253308042883873, -0.027660151943564415, -0.026486098766326904, -0.03624105453491211, 0.005061284173280001, -0.03871454671025276, -0.03486175835132599, 0.0022070384584367275, 0.01868986152112484, 0.04717694967985153, 0.012914530001580715, -0.0036529044155031443, 0.022906482219696045, 0.011532203294336796, 0.03439459204673767, -0.002126912586390972, -0.03757357597351074, 0.001582781202159822, -0.01614762470126152, -0.01470055989921093, 0.002217856701463461, -0.0020664529874920845, 0.02633814886212349, 0.03719383105635643, -0.0020005253609269857, -0.026580991223454475, 0.013042355887591839, 0.01748872734606266, 0.03613404929637909, 0.043610699474811554, -0.02885875292122364, -0.00472615472972393, -0.025076542049646378, -0.014351634308695793, -0.026405585929751396, 0.016644567251205444, -0.010534239932894707, -0.014979847706854343, -0.03250572830438614, -0.07383162528276443, 0.034400928765535355, 0.008005030453205109, 0.02357599511742592, 0.02193336933851242, -0.012291868217289448, -0.011496550403535366, -0.0564420223236084, 0.029033584520220757, 0.047963231801986694, -0.09140001982450485, 0.02521529607474804, -0.0010631331242620945, -0.006492680869996548, -0.00241111614741385, 0.010585937649011612, -0.05108639970421791, -0.01320572942495346, -0.01087252888828516, 0.04371146857738495, -0.059636086225509644, -0.03238451108336449, -0.012485313229262829, 0.0016245676670223475, -0.009647980332374573, 0.011307300999760628, -0.017002394422888756, -0.026753881946206093, -0.006892714649438858, -0.03852513059973717, 0.017895439639687538, -0.030772510915994644, 0.016270358115434647, 0.0260415468364954, -0.029628828167915344, 0.03177052363753319, -0.03069019690155983, 0.015921063721179962, 0.045598071068525314, -0.019876236096024513, -0.006865956354886293, -0.04731759428977966, 0.004824907053261995, -0.001507564214989543, 0.0387786366045475, 0.010733352974057198, -0.008855181746184826, -0.04729918763041496, 0.0008828852442093194, -0.030083898454904556, 0.025830350816249847, -0.022402653470635414, -0.020322859287261963, 0.04023722559213638, 0.037340082228183746, -0.004596556071192026, -0.0072291577234864235, -0.017806727439165115, -0.014218974858522415, 0.06281312555074692, -0.0732598602771759, -0.021538540720939636, -0.000027480682547320612, -0.04625614732503891, 0.03763583302497864, -0.00005938990943832323, 0.023855455219745636, -0.05507012456655502, 0.03483851999044418, 0.027536340057849884, 0.013833906501531601, 0.03356334939599037, -0.0063021802343428135, 0.04436676576733589, -0.022876262664794922, 0.009914461523294449, -0.09121864289045334, -0.021363360807299614, 0.021352335810661316, -0.011834284290671349, -0.02079169824719429, 0.005227378103882074, -0.05970463529229164, 0.03951514884829521, -0.06369708478450775, -0.027996167540550232, 0.05000235512852669, -0.00022657059889752418, -0.019736656919121742, 0.029326654970645905, -0.0561244934797287, 0.03090655989944935, 0.0160662978887558, -0.05367976054549217, 0.0013737493427470326, -0.00831663142889738, 0.06772521138191223, -0.013151915743947029, 0.0450638048350811, -0.023982947692275047, -0.005181963089853525, 0.058578599244356155, 0.032031361013650894, 0.01015198789536953, 0.05111495777964592, -0.007354766596108675, 0.05922440439462662, 0.02072381041944027, 0.006287638563662767, 0.0060769314877688885, 0.0008044482092373073, -0.01562652550637722, -0.06782443821430206, 0.022878436371684074, -0.016588974744081497, -0.029612477868795395, -0.06446374207735062, 0.06311286985874176, 0.01824919693171978, -0.00443376787006855, -0.03648662567138672, 0.02693721279501915, -0.05036354437470436, -0.021043596789240837, -0.0294294822961092, -0.005367843899875879, -0.046677932143211365, 0.06322505325078964, 0.003364649834111333, 0.020506011322140694, 0.07004884630441666, -0.0009249607101082802, -0.008845126256346703, -0.00012267347483430058, 0.08154380321502686, 0.05859987065196037, 0.05222223699092865, -0.0055045634508132935, 0.07984786480665207, -0.03884706646203995, -0.05754872411489487, 0.0229725930839777, 0.005200145300477743, -0.03660668432712555, -0.029125194996595383, 0.04689587652683258, 0.0849166288971901, -0.050831038504838943, 0.05712617188692093, -0.028529534116387367, -0.0196228064596653, 0.02050933800637722, 0.01388945896178484, 0.004152604844421148, 0.06103211268782616, 0.005353869870305061, 0.021683990955352783, -0.010686090216040611, -0.03594346344470978, 0.043996602296829224, -0.013666911981999874, -0.008360314182937145, 0.029729770496487617, -0.011113977059721947, 0.02950274758040905, -0.007099836599081755, 0.03656329587101936, 0.09855246543884277, -0.05792686343193054, 0.014917264692485332, -0.001156831276603043, 0.01339364517480135, 0.019175829365849495, 0.03622147813439369, -0.02079923450946808, -0.02406325936317444, -0.016499247401952744, -0.03118508867919445, -0.010357469320297241, -0.013539960607886314, 0.006788807455450296, 0.05030680075287819, -0.0457022562623024, -0.017364410683512688, 0.014526823535561562, -0.003862533252686262, -0.04902440682053566, -0.04927292466163635, -0.046098481863737106, -0.048753444105386734, -0.045703716576099396, -0.0031419636216014624, 0.004221700597554445, 0.010389825329184532, -0.05661074444651604, -0.028166918084025383, -0.029037093743681908, -0.011904515326023102, 0.031000714749097824, -0.06307375431060791, -0.02858228050172329, 0.025540579110383987, 0.013462974689900875, -0.009711973369121552, 0.01738770306110382, 0.06734013557434082, 0.00979445781558752, -0.01429892797023058, -0.02050570584833622, 0.015617316588759422, 0.02193818800151348, 0.003026203950867057, 0.014088400639593601, -0.07404249906539917, 0.004818541929125786, 0.03712426871061325, -0.038036562502384186, -0.07185319811105728, 0.023769186809659004, 0.03596877306699753, 0.007905823178589344, 0.06250695139169693, -0.01653101295232773, 0.010346360504627228, -0.06430225074291229, -0.028762182220816612, -0.005822449456900358, -0.006288884207606316, 0.046223755925893784, -0.014639023691415787, 0.09379817545413971, 0.047888122498989105, -0.009253932163119316, -0.04498117044568062, 0.002772468375042081, -0.004510235507041216, -0.006009204313158989, -0.0458090677857399, -0.013623795472085476, -0.013152910396456718, -0.09666918963193893, -0.00782108772546053, 0.031125452369451523, -0.019201315939426422, -0.04128265380859375, 0.02730565145611763, -0.005568621680140495, -0.02071307972073555, 0.02704835869371891, -0.04738771170377731, -0.011808767914772034, -0.026016436517238617, -0.0131651246920228, -0.007553537376224995, 0.04307078570127487, -0.009619828313589096, 0.02658858895301819, 0.02851909212768078, -0.03708959370851517, 0.0033890199847519398, -0.0038808612152934074, 0.04545799642801285, 0.015991918742656708, 0.01584252528846264, 0.0014680951135233045 ]
[ -0.09371406584978104, -0.02873135358095169, -0.021005677059292793, -0.017877671867609024, 0.05084150657057762, -0.022480571642518044, -0.03532028570771217, 0.03264440596103668, 0.0054975226521492004, -0.024656634777784348, -0.005213102791458368, -0.0389263816177845, -0.012847061268985271, -0.014496476389467716, 0.09374243766069412, 0.0016581251984462142, 0.0005566714680753648, -0.09353702515363693, 0.0032123553100973368, 0.02251538634300232, 0.018001599237322807, -0.0316886305809021, -0.009598102420568466, -0.009548846632242203, -0.017693083733320236, 0.036932323127985, 0.02810736559331417, -0.026094183325767517, 0.022160377353429794, -0.21744662523269653, 0.0030460513662546873, 0.017002355307340622, 0.0496913343667984, -0.013668358325958252, -0.023802457377314568, 0.06573761254549026, -0.010974764823913574, 0.01209268905222416, -0.014021956361830235, 0.023717917501926422, 0.009042452089488506, 0.0136344525963068, -0.05687724053859711, -0.027114612981677055, 0.08106929808855057, -0.01774434559047222, -0.012865358963608742, -0.00969158485531807, -0.01797090470790863, 0.013326406478881836, -0.009882005862891674, -0.020182790234684944, 0.005303754471242428, -0.025341235101222992, -0.004410209134221077, 0.010720969177782536, 0.037029165774583817, 0.0325690433382988, 0.02806836925446987, 0.024819469079375267, 0.014141387306153774, -0.013649476692080498, -0.13987840712070465, 0.11381985992193222, -0.019187241792678833, 0.04238685593008995, 0.0002256901643704623, -0.03363823890686035, -0.014747426845133305, 0.06952108442783356, 0.02923763170838356, -0.017858998849987984, -0.014113320037722588, 0.002619670471176505, -0.0019899317994713783, -0.01023300550878048, 0.028317812830209732, 0.03727944940328598, 0.021350668743252754, -0.05055537074804306, -0.030801571905612946, -0.013916300609707832, -0.04703566059470177, -0.03154440224170685, -0.04028289020061493, 0.020600106567144394, -0.027173038572072983, 0.07757455855607986, -0.012769372202455997, 0.0034332890063524246, 0.011645910330116749, 0.0004973297473043203, 0.049121104180812836, 0.009841696359217167, -0.08837650716304779, -0.025971010327339172, 0.00028299001860432327, 0.013320268131792545, -0.05477505549788475, 0.4568521976470947, 0.009215627796947956, -0.025292949751019478, 0.06062053516507149, -0.01037747971713543, 0.04149089753627777, 0.014001838862895966, -0.004569547716528177, -0.020083114504814148, 0.010848340578377247, 0.00046146384556777775, 0.028006436303257942, 0.024148590862751007, 0.0674583911895752, -0.055631786584854126, 0.01350034773349762, -0.01764032617211342, 0.010300450958311558, 0.004309523850679398, -0.0037537759635597467, 0.005738094449043274, -0.031018303707242012, 0.00857906136661768, 0.017884567379951477, -0.01429632119834423, 0.007631200831383467, -0.04398948699235916, 0.04193633794784546, 0.03740132972598076, 0.039470504969358444, 0.010850316844880581, 0.030007988214492798, -0.03655935078859329, -0.05335612595081329, -0.009349135681986809, 0.0363263301551342, 0.020229950547218323, 0.043768104165792465, -0.042117100208997726, -0.012810439802706242, 0.03336024284362793, -0.04927550628781319, -0.012918433174490929, 0.060998931527137756, -0.026594510301947594, -0.029187025502324104, 0.1018427237868309, 0.03484433889389038, -0.03240577504038811, -0.014607361517846584, -0.017912443727254868, 0.005056013818830252, 0.02558162435889244, 0.022172564640641212, -0.043695271015167236, 0.04116971418261528, 0.017340747639536858, 0.08954984694719315, -0.0030554351396858692, -0.0750088021159172, 0.003081078175455332, -0.00893497932702303, -0.02863425761461258, -0.03444413095712662, 0.02706855535507202, 0.0373404324054718, -0.13191592693328857, -0.060114454478025436, 0.0418245866894722, 0.0030947888735681772, -0.04277605563402176, -0.0031209043227136135, 0.012417483143508434, -0.037605345249176025, 0.00683090602979064, 0.0539407879114151, -0.018907811492681503, -0.042237188667058945, 0.0085143456235528, 0.012869838625192642, 0.01869100332260132, -0.029212435707449913, -0.024602463468909264, -0.0052158827893435955, 0.0023855078034102917, -0.062457237392663956, -0.08125810325145721, -0.031874775886535645, -0.04022008553147316, -0.007056509610265493, -0.05136973410844803, 0.005412530619651079, 0.00854482501745224, -0.048838067799806595, 0.08749615401029587, -0.018730884417891502, -0.0047174254432320595, -0.009194919839501381, 0.010372181423008442, 0.008809631690382957, -0.04109320417046547, -0.024004539474844933, 0.030749782919883728, -0.008872415870428085, 0.02163747139275074, -0.03907950595021248, 0.031703799962997437, 0.04425612464547157, -0.028126511722803116, 0.07620547711849213, 0.048271045088768005, -0.05092231556773186, -0.0035595519002527, 0.0313301682472229, 0.022659871727228165, 0.0027915467508137226, -0.006794988643378019, -0.006591566372662783, 0.00908984337002039, 0.016685180366039276, 0.012618934735655785, -0.0020994991064071655, -0.0364656075835228, -0.04409205541014671, -0.34512701630592346, -0.04112487658858299, -0.02029312588274479, 0.016149096190929413, 0.005525222513824701, -0.09530667215585709, 0.036831844598054886, -0.02011045441031456, 0.05381348729133606, 0.010735416784882545, 0.07146606594324112, -0.029599390923976898, 0.027255762368440628, -0.06966942548751831, -0.00853302888572216, 0.041625358164310455, -0.014788211323320866, -0.0003819319244939834, -0.02162913605570793, 0.018816806375980377, 0.014957624487578869, 0.002887967275455594, -0.03502480313181877, -0.06946592032909393, -0.04932420328259468, -0.029274582862854004, 0.11566197872161865, 0.031132148578763008, 0.061766404658555984, -0.06189197301864624, 0.049052417278289795, 0.016336487606167793, -0.011790488846600056, -0.08753864467144012, -0.0031397133134305477, -0.019738685339689255, 0.03761009871959686, -0.005473091267049313, 0.01662067137658596, -0.03198597952723503, -0.05062258988618851, 0.013402620330452919, -0.048958126455545425, -0.044944096356630325, -0.03400455042719841, 0.0103440061211586, 0.0008360917563550174, -0.022264227271080017, -0.03693435713648796, 0.06567755341529846, 0.003239930374547839, 0.015388360247015953, 0.022090861573815346, 0.023640267550945282, -0.013697279617190361, -0.039380017668008804, -0.0949677899479866, 0.005102332681417465, 0.013607696630060673, -0.03645063191652298, 0.04311750456690788, 0.05353308841586113, 0.01363325584679842, -0.09178983420133591, -0.004816589877009392, 0.0014189939247444272, -0.01716688461601734, -0.007602436933666468, 0.0569002702832222, -0.031953487545251846, -0.021937958896160126, 0.10208230465650558, 0.008304465562105179, 0.0019424045458436012, 0.0556851364672184, 0.02497003972530365, 0.012004946358501911, 0.02082863636314869, -0.006739371921867132, 0.024787506088614464, 0.0279069971293211, 0.007107223384082317, 0.019520653411746025, -0.020822158083319664, -0.014231687411665916, 0.0510641485452652, -0.00024100583686958998, -0.040605660527944565, 0.05853976681828499, 0.0263130571693182, -0.01609715074300766, 0.010024797171354294, -0.005386888049542904, -0.07237336039543152, 0.058532316237688065, 0.0019637125078588724, -0.2530543804168701, 0.042459648102521896, 0.07127203047275543, 0.08856859803199768, -0.004024876747280359, -0.008054028265178204, 0.014224503189325333, -0.06862956285476685, 0.00017714740533847362, 0.02716326341032982, 0.01637364737689495, 0.032572560012340546, -0.0021315866615623236, -0.0068373181857168674, 0.023685069754719734, -0.022415634244680405, 0.02940284088253975, 0.0000032246048249362502, 0.008011847734451294, 0.010149532929062843, -0.0038808954413980246, -0.014134939759969711, 0.16606836020946503, 0.005010624881833792, -0.017844993621110916, 0.019988032057881355, 0.0019429775420576334, 0.007209108676761389, 0.031816739588975906, 0.018022488802671432, 0.010082508437335491, 0.007077003829181194, 0.04032040014863014, 0.005076187197118998, 0.042389217764139175, -0.04422925412654877, -0.04671459272503853, 0.04304078593850136, 0.01830378919839859, 0.024527085945010185, 0.0037021951284259558, 0.04193555563688278, -0.02207602746784687, 0.0049967379309237, 0.04137739539146423, -0.0024058076087385416, 0.017607392743229866, 0.024684032425284386, -0.051272761076688766, 0.002914865268394351, -0.022690938785672188, -0.05378172919154167, -0.02398252673447132, 0.01063788402825594, 0.0103698605671525, 0.07225093245506287, 0.018216941505670547, -0.01669367402791977, 0.03131100535392761, 0.001460663159377873, -0.024217339232563972, -0.03086475282907486, 0.09437581151723862, 0.00023303518537431955, 0.0338403545320034 ]
[ 0.0231808889657259, -0.024180781096220016, -0.01659136265516281, -0.0018375824438408017, 0.05332255735993385, 0.02961103990674019, -0.0020266796927899122, 0.02240660972893238, 0.016614828258752823, -0.020838430151343346, -0.004202169366180897, 0.0014954322250559926, 0.004147439729422331, -0.019442765042185783, 0.01734880730509758, -0.0009861815487965941, 0.018526768311858177, -0.021571524441242218, 0.013211297802627087, 0.007507847156375647, -0.014069114811718464, -0.00732017494738102, 0.01880659908056259, 0.01836053840816021, -0.015961695462465286, 0.04476653039455414, -0.03906475752592087, 0.0023385651875287294, 0.04700912535190582, -0.1525920033454895, 0.012539966963231564, -0.015780899673700333, -0.015482107177376747, 0.005240689497441053, 0.0009483796893619001, -0.015354379080235958, -0.018725989386439323, -0.008690305054187775, -0.04244302585721016, -0.01211821474134922, 0.03029581904411316, -0.000046210621803766116, 0.03615301474928856, -0.01498191338032484, 0.024535540491342545, -0.02011975646018982, -0.021555554121732712, -0.0312100388109684, -0.013115535490214825, 0.015426778234541416, -0.05370117723941803, -0.015703914687037468, -0.01565861888229847, 0.013341742567718029, -0.024009080603718758, -0.008871528320014477, 0.011223945766687393, -0.0010540641378611326, 0.024036606773734093, 0.007283469196408987, -0.004613104742020369, -0.019409770146012306, -0.027945000678300858, -0.01594415307044983, 0.015863114967942238, -0.029991116374731064, -0.02204517461359501, 0.008008448407053947, -0.019649917259812355, 0.002350026275962591, 0.015463195741176605, 0.005946381017565727, -0.0158395878970623, 0.010234396904706955, -0.019346168264746666, -0.007819057442247868, 0.027049720287322998, -0.006069856695830822, 0.0065890587866306305, 0.0010251187486574054, 0.008736131712794304, 0.004395848605781794, 0.004289158619940281, 0.0021181791089475155, 0.031003648415207863, -0.014150538481771946, -0.009009992703795433, 0.012385190464556217, 0.03855231776833534, -0.01662631705403328, -0.033765051513910294, 0.012681586667895317, -0.00610647676512599, 0.025738012045621872, -0.054949238896369934, 0.011994576081633568, 0.003441988956183195, -0.02287815883755684, -0.03162093088030815, 0.8604164719581604, 0.006081709638237953, -0.004767744801938534, 0.029812460765242577, 0.017042020335793495, -0.011240856721997261, -0.007807983551174402, 0.021602177992463112, 0.016677578911185265, 0.013862427324056625, -0.0391981340944767, 0.03513083979487419, -0.0173686221241951, 0.030035357922315598, 0.020269963890314102, 0.028239721432328224, 0.0032228948548436165, -0.010303976014256477, -0.0018469959031790495, -0.008229954168200493, 0.04595880210399628, -0.0009412273648194969, -0.022199248895049095, 0.02680143155157566, 0.01654302142560482, 0.010619240812957287, -0.18316355347633362, -0.0022759772837162018, -6.759456920476908e-33, 0.057792071253061295, -0.039522282779216766, -0.0040276492945849895, 0.008020788431167603, 0.018820323050022125, -0.005833406932651997, 0.02034592442214489, 0.025565441697835922, -0.003931676037609577, -0.036375585943460464, 0.006603347137570381, -0.031108930706977844, -0.03486979007720947, -0.005504073575139046, 0.018107932060956955, -0.008762995712459087, 0.01789657399058342, 0.023748066276311874, 0.007847747765481472, -0.0074968659318983555, 0.04621969163417816, 0.040851544588804245, -0.003839024342596531, -0.01717454381287098, -0.017485901713371277, 0.03613120689988136, 0.017949383705854416, -0.0016494032461196184, 0.009636466391384602, -0.029332561418414116, -0.014594881795346737, -0.005155317950993776, 0.0030894032679498196, -0.03359151631593704, 0.010500529780983925, -0.039570312947034836, -0.0825403556227684, 0.02426178567111492, 0.014715240336954594, -0.002862493973225355, -0.00962806399911642, 0.01235155388712883, -0.035875651985406876, -0.03579900786280632, -0.04593275487422943, -0.007301132660359144, 0.025391779839992523, 0.009946847334504128, 0.002368451561778784, -0.008080979809165001, 0.007114272564649582, 0.0006768617895431817, -0.0312565453350544, -0.020686384290456772, 0.019285980612039566, 0.013376448303461075, -0.0026730303652584553, 0.016111718490719795, 0.00835337769240141, -0.003373965620994568, -0.006172630935907364, -0.007236939389258623, -0.007597522344440222, 0.0349319688975811, -0.0026882514357566833, -0.007963676005601883, 0.023654766380786896, 0.0011719302274286747, 0.025569766759872437, 0.022684386000037193, -0.06406757235527039, 0.007237350568175316, -0.028147004544734955, -0.017432918772101402, 0.027060428634285927, -0.044154826551675797, -0.002909880829975009, -0.00932530127465725, 0.018660612404346466, 0.04943457618355751, -0.007522345054894686, -0.012987770140171051, -0.0019529591081663966, -0.015666315332055092, -0.027723107486963272, -0.025318827480077744, 0.011509810574352741, -0.010906556621193886, -0.021217763423919678, -0.009385976009070873, 0.04190252721309662, 0.037978801876306534, 0.0041692000813782215, -0.014320259913802147, -0.015023811720311642, 7.109111388548844e-33, -0.004293794743716717, 0.027536435052752495, -0.00931849516928196, 0.012895753607153893, 0.017369544133543968, -0.005499302409589291, 0.026264049112796783, 0.0307505801320076, -0.024876954033970833, 0.01544097438454628, -0.030348017811775208, 0.006662581115961075, -0.05398936942219734, -0.0006034036632627249, 0.04134110361337662, -0.03954515978693962, 0.010742031037807465, -0.00985287968069315, 0.023739146068692207, -0.014687753282487392, -0.016085032373666763, 0.0020759780891239643, 0.005365576129406691, -0.004016058053821325, 0.002498697955161333, 0.04976644366979599, 0.017476581037044525, 0.008303134702146053, -0.0036675091832876205, 0.02236834540963173, 0.03702827915549278, -0.009899240918457508, -0.027632933109998703, -0.018182897940278053, -0.009903115220367908, 0.04642282426357269, 0.025485584512352943, 0.005213188473135233, -0.04239555075764656, 0.030112944543361664, 0.03471630811691284, 0.02485004812479019, -0.01709732599556446, -0.01481558196246624, -0.011447306722402573, 0.018780026584863663, 0.0015827250899747014, -0.013536709360778332, 0.005550017114728689, -0.03868270292878151, 0.018443316221237183, -0.012929201126098633, 0.00896316859871149, 0.010163549333810806, -0.005488708149641752, -0.044165000319480896, -0.032189153134822845, 0.03131658583879471, -0.019278403371572495, -0.003378791967406869, -0.017100917175412178, -0.001378352870233357, -0.014063977636396885, -0.03635060414671898, -0.04138561710715294, 0.007948034442961216, -0.02296549268066883, 0.027091756463050842, -0.0315263606607914, 0.020459076389670372, 0.009637785144150257, -0.013092667795717716, -0.002027023583650589, 0.05611938610672951, -0.005216262303292751, -0.006804735399782658, -0.019410861656069756, -0.0015671191504225135, 0.015415911562740803, 0.006119688972830772, 0.008753974922001362, 0.003490723203867674, -0.011307465843856335, -0.017825594171881676, 0.022976776584982872, 0.034780602902173996, -0.017939001321792603, 0.014795765280723572, 0.015741772949695587, 0.009308517910540104, 0.0143631212413311, -0.012036195024847984, 0.016331762075424194, 0.016236290335655212, 0.001977666048333049, -1.2832601647971842e-8, -0.0501692034304142, -0.01647249609231949, -0.012076864019036293, 0.057595666497945786, -0.020925983786582947, 0.007961471565067768, -0.011793110519647598, 0.008013640530407429, 0.036203641444444656, -0.011421766132116318, 0.03876914829015732, -0.01791258342564106, -0.006980992387980223, 0.020880380645394325, 0.0022048894315958023, -0.030479174107313156, 0.008862907998263836, 0.012273453176021576, 0.025616100057959557, -0.008798066526651382, 0.03860916197299957, 0.04924488812685013, 0.029282644391059875, -0.03605819121003151, -0.008487020619213581, -0.01638156548142433, -0.010705213993787766, -0.05934661626815796, -0.02915351837873459, 0.02011346071958542, 0.003983522765338421, -0.025206854566931725, -0.01795767806470394, -0.008724111132323742, -0.005499263759702444, -0.027507323771715164, 0.007177931722253561, -0.015830911695957184, 0.022245554253458977, -0.0019145967671647668, 0.027110759168863297, 0.028857499361038208, 0.017554229125380516, -0.03883194923400879, -0.006563669070601463, -0.0004983276594430208, 0.020675644278526306, -0.016514990478754044, 0.0051939100958406925, -0.04434816911816597, -0.005088991951197386, -0.013612031005322933, -0.014341294765472412, 0.056729432195425034, 0.03985455632209778, -0.0165090449154377, 0.0006736647919751704, -0.023854145780205727, -0.040877021849155426, 0.005064820870757103, 0.03400714695453644, 0.0015051303198561072, -0.012117004953324795, -0.013807463459670544 ]
mistral-ai-own-machine-ollama
https://markhneedham.com/blog/2023/10/03/mistral-ai-own-machine-ollama
false
2023-10-04 00:44:37
Poetry: Updating a package to a new version
[ "poetry", "python", "til" ]
[ "TIL" ]
:icons: font I'm using the Poetry package manager for all my Python projects these days and wanted to upgrade as library that I installed a few weeks ago. I got myself all tangled up and wanted to write down how to do it for future me. Let's create a simple project to demonstrate what to do: [source, bash] ---- poetry init ---- .pyproject.toml [source, toml] ---- [tool.poetry] name = "update-blog" version = "0.1.0" description = "" authors = ["Mark Needham <m.h.needham@gmail.com>"] readme = "README.md" packages = [{include = "update_blog"}] [tool.poetry.dependencies] python = "^3.11" duckdb = "0.8.1" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ---- Next, we're going to add DuckDB version 0.8.1 to our project: [source, bash] ---- poetry add duckdb@0.8.1 ---- I want to update this to version 0.9.0, so I initially did this: [source, bash] ---- poetry update duckdb ---- .Output [source, text] ---- Updating dependencies Resolving dependencies... (0.4s) No dependencies to install or update ---- Hmmm, that doesn't do anything. I came across https://nick.groenen.me/notes/upgrade-python-packages-to-their-latest-version-when-using-poetry/[Nick Groene's] blog post and he said you need to append `@latest` to force an update. Let's try taht: [source, bash] ---- poetry add duckdb@latest ---- .Output [source, text] ---- Using version ^0.9.0 for duckdb Updating dependencies Resolving dependencies... (0.1s) Package operations: 0 installs, 1 update, 0 removals • Updating duckdb (0.8.1 -> 0.9.0) Writing lock file ---- Happy days! I still don't know how to update all the dependencies for a project to the latest version so if you know how to do that, please let me know!
In this post, we'll learn how to update a package when using the Poetry Python package manager.
uploads/2023/10/poetry-update-package-banner.png
[ -0.010168236680328846, -0.00967410672456026, -0.023526130244135857, 0.0005069573526270688, 0.08589635044336319, 0.03784503415226936, 0.00761609710752964, 0.03716307878494263, -0.03103046678006649, -0.020082693547010422, -0.010366357862949371, 0.0066917468793690205, -0.08329981565475464, 0.015129766426980495, -0.03557397052645683, 0.06450176239013672, 0.0998181477189064, 0.00919242575764656, 0.03961346298456192, 0.03402518481016159, 0.022079231217503548, 0.0845583900809288, -0.027784503996372223, 0.04150772467255592, 0.02098664455115795, 0.006585888098925352, 0.037774693220853806, -0.021541457623243332, -0.058679088950157166, -0.027747727930545807, 0.020428113639354706, -0.032116733491420746, -0.010150236077606678, -0.028951726853847504, 0.014429807662963867, 0.04074273258447647, -0.014858388341963291, 0.025342542678117752, 0.0019246701849624515, 0.011480484157800674, -0.053849708288908005, 0.008474167436361313, -0.004390321671962738, -0.019714094698429108, -0.04555296525359154, 0.015080951154232025, -0.048822298645973206, 0.021940574049949646, 0.02927461266517639, -0.029024779796600342, -0.05543190985918045, 0.04610588774085045, -0.020783646032214165, -0.02433556504547596, 0.0008872175822034478, 0.01308844517916441, 0.012601000256836414, -0.08273260295391083, 0.018463095650076866, -0.02451818250119686, 0.0068814572878181934, -0.00987026747316122, -0.0028255705256015062, 0.04814719036221504, 0.008513768203556538, -0.012723181396722794, -0.019084306433796883, 0.013801666907966137, -0.045039813965559006, -0.012174738571047783, 0.010411815717816353, -0.0001940802758326754, -0.05103384703397751, -0.005136888008564711, 0.0386032871901989, -0.0225359033793211, -0.008104813285171986, 0.05580275505781174, 0.00808370765298605, 0.04120774194598198, -0.012015757150948048, -0.012135193683207035, 0.016439221799373627, 0.032543689012527466, -0.013081102631986141, -0.056766327470541, -0.00455299811437726, 0.010320178233087063, -0.07017073035240173, 0.029407257214188576, 0.028398310765624046, -0.08225297182798386, 0.04037162661552429, 0.019632330164313316, 0.013030607253313065, -0.008375450037419796, -0.02479764260351658, 0.04509274289011955, 0.011423916555941105, -0.005553831346333027, -0.020944343879818916, -0.00586773082613945, 0.01645350083708763, 0.006945353467017412, -0.07962969690561295, -0.006763803772628307, -0.023477137088775635, -0.026087768375873566, -0.004388753790408373, -0.011097315698862076, 0.020648445934057236, 0.009260888211429119, -0.010790898464620113, 0.007415601518005133, -0.0625302717089653, 0.07678771764039993, -0.0004475897003430873, -0.03691906854510307, -0.029142001643776894, 0.036134861409664154, 0.04470831900835037, 0.019570190459489822, -0.006055518519133329, 0.06827531009912491, -0.00030884152511134744, 0.03419938310980797, -0.017288416624069214, 0.059534020721912384, 0.004849234130233526, -0.06382590532302856, -0.015012385323643684, 0.04271692410111427, -0.023907840251922607, 0.003912836313247681, 0.0024660832714289427, -0.0063415952026844025, 0.0032270709052681923, 0.004376138560473919, 0.08383403718471527, 0.03416452184319496, -0.021206604316830635, 0.007483412511646748, -0.03037456050515175, 0.014451980590820312, 0.04524658992886543, 0.017250556498765945, 0.01188233494758606, -0.04258691146969795, -0.037464942783117294, 0.0186963751912117, -0.01033084187656641, 0.016769349575042725, 0.06213095039129257, -0.016247905790805817, 0.011786967515945435, 0.08820617198944092, 0.06378442794084549, 0.04154372215270996, -0.015732647851109505, 0.016014182940125465, 0.014337611384689808, 0.033243902027606964, 0.01599282957613468, 0.055216237902641296, -0.01118424255400896, -0.03713005781173706, -0.018452873453497887, 0.016985032707452774, -0.018998421728610992, -0.019062664359807968, -0.04443918541073799, -0.09052840620279312, 0.06433458626270294, -0.03470473363995552, -0.0028909218963235617, 0.0335320383310318, 0.10545910894870758, 0.048611585050821304, 0.007766040973365307, 0.041240233927965164, -0.09393123537302017, 0.06198655813932419, 0.0015392849454656243, 0.008819419890642166, 0.022001976147294044, -0.013268121518194675, 0.07464411854743958, 0.0003037858987227082, 0.016560688614845276, 0.03140068054199219, -0.08757559210062027, -0.08275663107633591, -0.017205186188220978, 0.03024164028465748, 0.022033795714378357, -0.04193588346242905, -0.021719563752412796, 0.05708104372024536, 0.04485749453306198, 0.039454080164432526, 0.008987926878035069, -0.01858956553041935, 0.0016314891399815679, -0.06591204553842545, -0.05678849294781685, 0.037489812821149826, 0.043946512043476105, -0.008181569166481495, -0.03203381597995758, -0.010009948164224625, -0.02939336560666561, -0.04365420341491699, 0.033602237701416016, -0.0268824752420187, 0.047184448689222336, -0.012227177619934082, 0.009359145537018776, -0.059261176735162735, 0.028503593057394028, -0.07303210347890854, 0.01377846673130989, 0.015068951062858105, 0.00036306463880464435, -0.02731619030237198, -0.005794592201709747, 0.10478602349758148, 0.044357094913721085, -0.03627189248800278, -0.047574833035469055, 0.02885355055332184, 0.009976670145988464, -0.048561517149209976, 0.01955573819577694, -0.007516789715737104, -0.004783881362527609, 0.006018348038196564, -0.010569900274276733, -0.040516097098588943, 0.03898207098245621, -0.03483588621020317, -0.0026338042225688696, 0.07394713163375854, -0.02407987415790558, 0.05748746171593666, 0.030200650915503502, -0.03143065795302391, -0.025339556857943535, -0.03603290766477585, -0.05604281648993492, 0.0026621546130627394, 0.019245846197009087, -0.0066195297986269, 0.015140797942876816, -0.04427429288625717, -0.007892431691288948, -0.018891626968979836, -0.06617504358291626, 0.049320120364427567, 0.03656642511487007, 0.049382563680410385, -0.06463176012039185, 0.004218550398945808, 0.012707626447081566, 0.02605280838906765, -0.01948770508170128, -0.015089438296854496, -0.03348926454782486, -0.0013609887100756168, 0.003920049872249365, 0.013886520639061928, 0.024594837799668312, -0.0011332262074574828, -0.006581012159585953, -0.01269881334155798, 0.01001799013465643, 0.004491440486162901, 0.06338565051555634, -0.014541218057274818, -0.01360477413982153, -0.08506988734006882, -0.002847186056897044, 0.037163928151130676, -0.05596136301755905, -0.04849500209093094, 0.0023860458750277758, -0.051604513078927994, 0.012206627987325191, -0.06700969487428665, -0.04053598269820213, -0.018087470903992653, 0.018953649327158928, 0.052586186677217484, -0.007281074766069651, 0.009598556905984879, 0.043748803436756134, 0.01873353123664856, -0.0029508972074836493, 0.008343519642949104, 0.007273081224411726, 0.04192563518881798, 0.030339233577251434, 0.01995851844549179, 0.028863195329904556, 0.04233919456601143, 0.010379292070865631, -0.034582313150167465, 0.02502560429275036, -0.03937102481722832, -0.2392546683549881, 0.04500102251768112, -0.00413797190412879, -0.04729539901018143, 0.018660040572285652, -0.003995790146291256, -0.005786905996501446, -0.0452483668923378, -0.02975757233798504, 0.012992923147976398, -0.022493354976177216, -0.052016694098711014, 0.03823525831103325, 0.03980015590786934, -0.01181582361459732, -0.007728924974799156, 0.0267927348613739, -0.029449932277202606, -0.006010230630636215, 0.06017205864191055, 0.0009585644002072513, -0.07113092392683029, 0.020673973485827446, 0.03236720710992813, 0.01944301463663578, 0.03674269840121269, -0.03696717321872711, 0.06585484743118286, -0.0597221776843071, -0.018273277208209038, -0.0012359009124338627, 0.005881950259208679, 0.004624932073056698, 0.018386686220765114, -0.035581596195697784, -0.004015891347080469, 0.04094327986240387, -0.0042642103508114815, 0.025374244898557663, 0.006332038901746273, -0.008026069961488247, -0.05149448290467262, 0.007111376151442528, -0.007135090418159962, 0.0780525729060173, -0.008148431777954102, -0.10190232843160629, -0.015189673751592636, -0.056324463337659836, 0.09537380188703537, -0.040020354092121124, -0.06303609162569046, -0.013450244441628456, 0.03663279116153717, 0.019279278814792633, 0.0018110376549884677, -0.005669823847711086, -0.011594454757869244, -0.05320777744054794, -0.04082206264138222, -0.0031028587836772203, -0.032050587236881256, -0.046321459114551544, -0.019220950081944466, 0.006896688137203455, -0.07473552227020264, -0.023564841598272324, -0.027221813797950745, 0.06409641355276108, 0.05489365756511688, -0.05201071873307228, -0.018428480252623558, -0.05360530689358711, -0.09354428201913834, 0.017587140202522278, -0.03795996680855751, -0.02995510771870613, -0.01711750216782093, -0.013544656336307526, 0.02306733839213848, -0.035948947072029114, -0.04412524029612541, 0.014102051965892315, 0.027593674138188362, 0.006858334876596928, -0.010404488071799278, 0.006350543349981308, 0.009324641898274422, -0.026265867054462433, 0.004708615131676197, 0.057820286601781845, -0.03617924824357033, -0.031713008880615234, -0.016288746148347855, 0.0020565190352499485, 0.01559664960950613, 0.031855396926403046, 0.028125565499067307, 0.024934448301792145, 0.016862185671925545, 0.030330156907439232, -0.03872885927557945, -0.017351891845464706, 0.007030966226011515, -0.016247209161520004, 0.007683803793042898, -0.06471952795982361, 0.008544502779841423, 0.05201895162463188, 0.01258764136582613, -0.035112060606479645, -0.0607156977057457, 0.014606542885303497, -0.05023929104208946, -0.03829783573746681, -0.02016936056315899, 0.03707597404718399, 0.031967587769031525, -0.004790188744664192, 0.011133852414786816, -0.040214668959379196, 0.02009524405002594, 0.0031192831229418516, -0.015039299614727497, -0.05660250037908554, -0.0173659585416317, -0.0026347453240305185, -0.013242152519524097, 0.012178364209830761, -0.008878826163709164, -0.02116510644555092, 0.01849539764225483, 0.028630554676055908, -0.053331922739744186, 0.025658007711172104, -0.033052802085876465, -0.05009005218744278, -0.043603572994470596, -0.01975059323012829, -0.0010205932194367051, -0.024832088500261307, -0.0023476711940020323, 0.020566489547491074, 0.006449052598327398, 0.03932477533817291, 0.006255581043660641, 0.019948381930589676, -0.02167942374944687, -0.006296370178461075, 0.014244861900806427, 0.025566784664988518, -0.020867720246315002, 0.010166996158659458, -0.031007904559373856, -0.01238415576517582, -0.024566281586885452, 0.010118833743035793, -0.02000425197184086, 0.022339915856719017, -0.014548508450388908, -0.02122895047068596, -0.057100262492895126, 0.007832836359739304, 0.008009839802980423, -0.004298465326428413, 0.03937709331512451, 0.01013145036995411, 0.009146890603005886, -0.017833903431892395, -0.00831359438598156, 0.03230610489845276, 0.02000114507973194, -0.023839443922042847, 0.02498653344810009, -0.007455240935087204, 0.005990196019411087, 0.016295725479722023, 0.03761521354317665, 0.035241901874542236, 0.015682807192206383, -0.005948267877101898, -0.030378472059965134, 0.027886662632226944, 0.012913412414491177, 0.03318501636385918, 0.01685824617743492, -0.023609008640050888, -0.04097413271665573, -0.028878269717097282, -0.03765539452433586, -0.013231136836111546, 0.0009193281293846667, -0.009269081056118011, 0.004750024992972612, -0.03417126089334488, -0.08844330906867981, -0.0004396179865580052, 0.0414886511862278, 0.019256338477134705, -0.003942514304071665, -0.014773056842386723, 0.0019387883367016912, -0.040282562375068665, 0.05243120342493057, 0.08559698611497879, -0.09156817942857742, 0.0011791115393862128, -0.007485499139875174, 0.01585530675947666, -0.012220638804137707, 0.05104302987456322, -0.04717780649662018, -0.007402415387332439, 0.007619602605700493, 0.026245402172207832, 0.0035127776209264994, -0.021231431514024734, -0.018830431625247, 0.007559733930975199, -0.015395648777484894, 0.011457725428044796, -0.012232555076479912, -0.015971729531884193, -0.002830435521900654, -0.01674903742969036, 0.0006857666885480285, -0.004208068363368511, -0.020125824958086014, 0.02570374682545662, -0.023610813543200493, 0.07152140140533447, -0.037232134491205215, 0.043737947940826416, 0.016487855464220047, 0.007616606540977955, -0.003497745143249631, -0.040800999850034714, -0.014368211850523949, 0.013114417903125286, 0.03095974214375019, -0.014210173860192299, -0.0035667598713189363, -0.012285768985748291, -0.01732930727303028, -0.045026231557130814, -0.01357966661453247, -0.025419024750590324, -0.015402769669890404, -0.009768616408109665, 0.05737330764532089, -0.015260353684425354, 0.03302681818604469, -0.00496992003172636, -0.01882725954055786, 0.06504195183515549, -0.022848349064588547, -0.05513732135295868, 0.005486427340656519, -0.053844477981328964, 0.03844330832362175, 0.04529812932014465, 0.025748224928975105, -0.08098999410867691, 0.035965919494628906, 0.028431540355086327, 0.008137322030961514, 0.05742347985506058, -0.03774717450141907, 0.03537723794579506, -0.04754416644573212, -0.06497164070606232, -0.06751095503568649, -0.03253701329231262, 0.0003256441268604249, -0.0186605341732502, -0.03818276524543762, 0.024218354374170303, -0.03975707292556763, 0.03522089496254921, -0.05882216617465019, 0.004651754628866911, 0.06447120010852814, -0.01726115681231022, 0.02943766675889492, 0.04042206332087517, -0.05567340552806854, 0.044556621462106705, 0.04083937406539917, -0.007614892441779375, -0.011603445746004581, 0.0022898665629327297, 0.06197706237435341, 0.006500174291431904, 0.05136910080909729, -0.003894551657140255, 0.0144816217944026, 0.06607124209403992, 0.01201297901570797, 0.025920026004314423, 0.01547329779714346, -0.025780826807022095, 0.03346262872219086, 0.03847254440188408, 0.028156768530607224, -0.013957885093986988, 0.05573742836713791, -0.0203905887901783, -0.03757844865322113, 0.03285233676433563, -0.005513445474207401, 0.0024022175930440426, -0.046792685985565186, 0.06324798613786697, 0.00783082377165556, -0.02737668715417385, -0.06921406090259552, 0.02845490537583828, -0.04380393773317337, 0.0020312222186475992, -0.041515130549669266, -0.010558467358350754, -0.05952506512403488, 0.06870456784963608, 0.022140299901366234, -0.003572144778445363, 0.04012341797351837, -0.008876933716237545, 0.014724742621183395, 0.007538582198321819, 0.059289511293172836, 0.07840090245008469, 0.030021827667951584, 0.030597226694226265, 0.07272105664014816, -0.007411222439259291, -0.039020925760269165, 0.006860788911581039, -0.008042165078222752, -0.029141001403331757, -0.04326154664158821, -0.002284097485244274, 0.06056227535009384, 0.0274110808968544, 0.06908513605594635, -0.0020600007846951485, 0.011972862295806408, -0.007498666178435087, 0.011916973628103733, 0.029637375846505165, 0.03672671690583229, -0.008063801564276218, 0.04313582554459572, -0.005924088414758444, -0.02779204584658146, 0.050758834928274155, -0.031135080382227898, 0.004129898734390736, 0.02655569463968277, -0.0017739847535267472, -0.008994308300316334, 0.029026197269558907, 0.054151829332113266, 0.06785929203033447, -0.009623230434954166, -0.04583650454878807, -0.020269591361284256, 0.025690224021673203, 0.02179812453687191, 0.004618683364242315, -0.010412725619971752, -0.0074706170707941055, -0.00731487525627017, -0.025425899773836136, -0.005444665439426899, -0.013240170665085316, -0.015767162665724754, 0.06170834228396416, -0.015796110033988953, -0.009744919836521149, 0.03093760646879673, -0.026498600840568542, -0.05484726279973984, -0.033922914415597916, -0.021767428144812584, -0.028633631765842438, -0.03419332206249237, 0.00898051355034113, 0.0048578339628875256, -0.020983461290597916, -0.04403305426239967, -0.028031639754772186, 0.0022812788374722004, -0.041733045130968094, -0.0017514012288302183, -0.04524330794811249, -0.023573342710733414, 0.00511705270037055, 0.03957226127386093, -0.019798317924141884, 0.0060100192204117775, 0.06497745960950851, -0.0017299976898357272, -0.03548741340637207, -0.019329601898789406, 0.0241688285022974, 0.03833571821451187, 0.028992241248488426, 0.05420701578259468, -0.06959709525108337, 0.033095940947532654, 0.03262242302298546, 0.019014960154891014, -0.0574723444879055, 0.013941299170255661, 0.03475054353475571, -0.037541139870882034, 0.050891369581222534, 0.0030356606002897024, -0.00993797555565834, -0.01918063499033451, 0.003443848341703415, 0.002442287979647517, 0.021901767700910568, 0.04010465368628502, -0.029300356283783913, 0.08067013323307037, 0.022984709590673447, 0.00891039613634348, -0.018697310239076614, -0.021554259583353996, -0.02521241083741188, 0.007233825046569109, -0.03039642423391342, -0.0006542849587276578, -0.05632132291793823, -0.06587352603673935, -0.022990038618445396, 0.019635917618870735, -0.04837053641676903, -0.028673356398940086, -0.02092297561466694, 0.0121900774538517, -0.0035849239211529493, 0.06448883563280106, -0.05081138387322426, -0.012714996933937073, 0.0032195034436881542, -0.019622089341282845, -0.018267646431922913, 0.043674807995557785, 0.002293890342116356, 0.016746921464800835, 0.025838300585746765, -0.03718210384249687, -0.015059488825500011, -0.01605532318353653, 0.03160988539457321, 0.0447898805141449, -0.019132131710648537, 0.01913198083639145 ]
[ -0.07551810890436172, -0.023576784878969193, -0.014669235795736313, 0.011405476368963718, 0.040140099823474884, -0.07099078595638275, -0.0909460186958313, 0.012930291704833508, -0.026841890066862106, 0.0022106682881712914, 0.003434938844293356, -0.03889327496290207, 0.01295124925673008, -0.05947241187095642, 0.052295319736003876, 0.017388246953487396, 0.0027989086229354143, -0.0861552357673645, -0.03173127397894859, 0.022964918985962868, -0.0168553926050663, 0.023622358217835426, -0.020906852558255196, -0.02328670769929886, -0.008100295439362526, 0.06500820070505142, 0.02491367794573307, -0.00771055743098259, -0.0029264565091580153, -0.18254609405994415, 0.014577497728168964, 0.0144898546859622, 0.004560571629554033, -0.03413432836532593, 0.03929176554083824, 0.09118984639644623, 0.01611555740237236, 0.01171630248427391, 0.011357794515788555, 0.05516001209616661, 0.02099529653787613, 0.0231478251516819, -0.10455021262168884, -0.040799569338560104, 0.06981164962053299, -0.018816573545336723, -0.020627427846193314, -0.034781552851200104, 0.006817567627876997, -0.01785789430141449, -0.02268913760781288, 0.01200004480779171, -0.01908273808658123, -0.008133003488183022, -0.03807573392987251, 0.038592539727687836, 0.043442122638225555, 0.08283038437366486, 0.0060092611238360405, -0.04170738905668259, -0.0028997790068387985, -0.022698240354657173, -0.14574609696865082, 0.14515818655490875, 0.005864416714757681, 0.021680861711502075, -0.05010835453867912, -0.014590339735150337, 0.0008156183757819235, 0.10685141384601593, -0.030430782586336136, -0.03178307041525841, 0.00026243069441989064, 0.05213659629225731, 0.015119358897209167, -0.03267253562808037, 0.02661331556737423, 0.0008940543630160391, 0.05238902568817139, -0.02042822353541851, -0.03682734817266464, -0.007599877193570137, -0.024984806776046753, -0.043403979390859604, -0.002490762621164322, -0.02507755532860756, 0.0012254951288923621, 0.04537109658122063, 0.01957067660987377, -0.0056793903931975365, 0.02686476707458496, -0.046885278075933456, 0.05283403769135475, 0.03285704180598259, -0.08094031363725662, -0.0079718679189682, 0.026648545637726784, -0.009541059844195843, -0.04954763129353523, 0.41946133971214294, -0.03439189866185188, -0.00028280384140089154, -0.010306515730917454, 0.02709954045712948, 0.049765512347221375, -0.0003377201210241765, 0.02155708521604538, -0.03426726907491684, -0.014859218150377274, -0.04902965575456619, 0.008746438659727573, -0.008309319615364075, 0.07943851500749588, -0.056130409240722656, 0.02677415870130062, -0.02975734882056713, -0.0410107783973217, 0.013751334510743618, -0.006884974427521229, 0.016832562163472176, -0.029347578063607216, -0.001494663767516613, 0.051451824605464935, 0.012728299014270306, -0.01135981548577547, 0.013449078425765038, 0.02414868213236332, 0.04109681770205498, 0.02620881423354149, 0.025067999958992004, 0.024412089958786964, 0.008009124547243118, -0.05254244804382324, -0.01649337075650692, 0.018768008798360825, 0.0713881254196167, -0.004401822108775377, -0.00009770425094757229, 0.040667884051799774, 0.03589529171586037, 0.013731037266552448, -0.06827734410762787, 0.03276755288243294, 0.006628700532019138, -0.03433499485254288, 0.10116356611251831, 0.015418496914207935, 0.02418089471757412, -0.0739460289478302, -0.025919131934642792, -0.010594869032502174, 0.02581779658794403, -0.0023910298477858305, -0.020966293290257454, 0.03461054712533951, 0.021785486489534378, 0.05924591049551964, -0.02276923693716526, -0.054131925106048584, 0.014993183314800262, 0.020360540598630905, -0.025356007739901543, -0.05456022545695305, -0.02257547900080681, 0.0072268713265657425, -0.11232104897499084, -0.029355037957429886, -0.025859259068965912, -0.020793991163372993, -0.0439213402569294, 0.007115569896996021, 0.035044021904468536, -0.040304843336343765, 0.020242750644683838, 0.030302656814455986, -0.06244375929236412, 0.020093701779842377, 0.0016634943895041943, 0.10231959074735641, 0.009558743797242641, -0.00643768860027194, 0.020914319902658463, -0.04976365715265274, 0.0051842788234353065, -0.016091441735625267, -0.12552456557750702, -0.04611677676439285, -0.02819608524441719, 0.00030482158763334155, -0.0446392185986042, -0.01569807156920433, 0.027760760858654976, 0.025866687297821045, 0.030335666611790657, -0.0011804731329903007, -0.0005863712867721915, 0.01836065948009491, 0.0012242827797308564, 0.016154281795024872, -0.033835213631391525, 0.016456106677651405, 0.059076178818941116, 0.00000739845654607052, -0.012216386385262012, -0.03840767592191696, 0.011810307390987873, 0.02431553788483143, -0.026065468788146973, 0.06744582206010818, -0.003371339524164796, -0.060698315501213074, 0.001983480527997017, 0.0443556122481823, 0.023319682106375694, -0.037163447588682175, -0.03986367955803871, -0.018599417060613632, 0.013128255493938923, 0.05968094244599342, 0.019732236862182617, -0.026766864582896233, -0.06248913332819939, -0.07757186144590378, -0.3462606370449066, 0.029579365625977516, 0.012000477872788906, -0.03458530455827713, 0.025041969493031502, -0.05235085263848305, -0.009409896098077297, -0.05023900046944618, -0.007907056249678135, 0.03547647222876549, 0.07017932087182999, -0.06734022498130798, 0.08305498957633972, -0.07300592958927155, 0.030205480754375458, 0.02911420911550522, -0.007532005198299885, -0.039878178387880325, 0.00199437839910388, -0.005039941053837538, -0.0038447328843176365, -0.016935234889388084, -0.04321718588471413, -0.06795959174633026, -0.007219952996820211, -0.014275728724896908, 0.09049129486083984, 0.05088266730308533, 0.027431562542915344, -0.03276386484503746, 0.04218920320272446, 0.04222119227051735, -0.012603068724274635, -0.15292896330356598, 0.010887432843446732, 0.029790708795189857, 0.01717020384967327, 0.019312046468257904, 0.008838264271616936, -0.00579163059592247, -0.007836265489459038, 0.060915131121873856, -0.02431831695139408, -0.0345180369913578, -0.038315899670124054, 0.01758621260523796, 0.011655687354505062, -0.051176559180021286, 0.011272060684859753, 0.06533924490213394, -0.030410168692469597, 0.05741587653756142, -0.005206505302339792, 0.005209187977015972, -0.029115991666913033, -0.03546961024403572, -0.06999453157186508, 0.008068537339568138, 0.0411953404545784, -0.04466629400849342, 0.027593549340963364, 0.032236773520708084, 0.04233323037624359, -0.039264827966690063, -0.020913807675242424, -0.015138030052185059, -0.0019024400971829891, -0.017338702455163002, 0.06143491342663765, -0.018153589218854904, 0.018996085971593857, 0.07211770862340927, -0.020187988877296448, 0.03395652770996094, 0.012810606509447098, 0.05460468679666519, 0.012427408248186111, 0.05343777686357498, 0.01998201571404934, -0.019580570980906487, 0.015999607741832733, 0.00016331749793607742, 0.03957054764032364, -0.025416361168026924, -0.03605082258582115, 0.06752892583608627, -0.02758833020925522, -0.02803177572786808, 0.0373004786670208, 0.017620256170630455, -0.01592804677784443, -0.004436864983290434, 0.010744523257017136, -0.018803130835294724, 0.05998134985566139, 0.028461815789341927, -0.2131393402814865, 0.024633513763546944, 0.0860433578491211, 0.02688196301460266, -0.011295351199805737, 0.010064217261970043, 0.020884642377495766, -0.039558399468660355, -0.03761706501245499, -0.008057777769863605, 0.019592277705669403, 0.012425181455910206, -0.026738513261079788, -0.0013312926748767495, 0.005936822853982449, -0.027196848765015602, 0.0967680960893631, -0.009613890200853348, -0.03892944008111954, -0.026788946241140366, -0.002724302466958761, -0.030265962705016136, 0.1499478667974472, 0.026724353432655334, -0.02017577737569809, -0.019488435238599777, -0.0001757143618306145, 0.04470961540937424, 0.04788518324494362, 0.01911514811217785, -0.01207038201391697, -0.0026334398426115513, 0.03140193223953247, -0.009052546694874763, 0.05312001705169678, -0.006617351900786161, -0.03053233027458191, 0.00957358069717884, 0.001528079272247851, -0.00851835310459137, -0.015623862855136395, 0.07498247921466827, -0.07066177576780319, 0.042240653187036514, 0.026322923600673676, -0.02275662124156952, -0.0055398885160684586, 0.01287388801574707, -0.05492524430155754, 0.003575852606445551, 0.0012933852849528193, -0.023544909432530403, -0.005788180977106094, 0.00665893591940403, 0.047307901084423065, 0.048880286514759064, 0.02711154893040657, -0.0038620061241090298, 0.019789202138781548, 0.024334827437996864, 0.0004473090812098235, -0.052163902670145035, 0.11535327881574631, 0.04895623400807381, -0.008971522562205791 ]
[ 0.002493509789928794, -0.006648426875472069, 0.006233932450413704, -0.008436883799731731, 0.04075246676802635, 0.022743528708815575, 0.0009554428979754448, -0.008934981189668179, -0.02565200999379158, -0.009292872622609138, -0.016334563493728638, 0.008334597572684288, 0.026578303426504135, -0.0016750688664615154, 0.02051059529185295, 0.013016894459724426, -0.007189729250967503, -0.0550181120634079, 0.008509530685842037, 0.02085123024880886, -0.015776796266436577, 0.04223848506808281, 0.041458748281002045, 0.033481795340776443, -0.00895658228546381, -0.0023675495758652687, -0.06760784983634949, -0.010354842990636826, 0.01606135070323944, -0.12443362921476364, -0.01021538395434618, 0.0014456668868660927, -0.004145883955061436, -0.02471662126481533, 0.03322897478938103, 0.03759962320327759, 0.014233137480914593, 0.02502255141735077, 0.0013960676733404398, 0.01673368737101555, 0.012475883588194847, -0.023205595090985298, -0.007612462155520916, -0.017857883125543594, -0.01880164071917534, -0.037321582436561584, -0.05096128210425377, -0.025688156485557556, 0.004225445911288261, 0.0021499295253306627, -0.028771303594112396, -0.010984586551785469, -0.007488288916647434, -0.013488315977156162, 0.0034027001820504665, 0.041616782546043396, 0.034821536391973495, 0.03599786013364792, -0.017252936959266663, -0.05270800739526749, -0.0023644526954740286, -0.002438376657664776, -0.03896679729223251, -0.016006657853722572, -0.00022431864636018872, -0.03342462703585625, -0.046404991298913956, -0.015077315270900726, 0.016468500718474388, 0.022875376045703888, 0.0007133167237043381, 0.001734384917654097, -0.017008397728204727, -0.017256582155823708, -0.004666047170758247, 0.014755022712051868, 0.015732930973172188, -0.002739685820415616, -0.008218957111239433, 0.00968345906585455, -0.01558119710534811, 0.03580392524600029, 0.041669607162475586, -0.003796342993155122, -0.0011609100038185716, -0.011242873966693878, 0.011705160140991211, -0.01077145803719759, 0.008987602777779102, -0.008112029172480106, 0.021910324692726135, -0.023319121450185776, 0.008457696996629238, 0.014500620774924755, -0.08232983201742172, 0.018015887588262558, 0.011099426075816154, -0.03394118696451187, -0.01931268535554409, 0.849294900894165, -0.01621122471988201, -0.014833071269094944, 0.032441891729831696, 0.0008079264080151916, 0.05248165503144264, 0.01563975401222706, -0.01034160703420639, -0.05494122579693794, 0.001917684217914939, -0.040810585021972656, 0.04466322809457779, -0.01651393063366413, 0.00859933439642191, -0.001835185568779707, 0.03133990243077278, -0.018094727769494057, 0.006377947982400656, -0.013118943199515343, -0.0034868766088038683, 0.012635808438062668, 0.04131760075688362, -0.005748971365392208, 0.0365169532597065, 0.013918380253016949, -0.024857405573129654, -0.1407652199268341, -0.02210414968430996, -6.216147104946693e-33, 0.043645888566970825, -0.025364641100168228, 0.0021490822546184063, 0.019774846732616425, 0.022973980754613876, -0.0022930840495973825, -0.00443775299936533, 0.015831904485821724, -0.0140609759837389, -0.03630579262971878, 0.017601950094103813, -0.01184810046106577, -0.019802363589406013, 0.01371956616640091, 0.022467084228992462, -0.009942584671080112, -0.0013321219012141228, 0.04665493592619896, 0.009068955667316914, 0.0012477962300181389, 0.03168414160609245, 0.029530469328165054, -0.0003365545126143843, -0.006394301541149616, 0.00447045499458909, 0.007922247052192688, 0.010459251701831818, -0.01509015541523695, -0.026583632454276085, -0.05767250433564186, -0.01472944300621748, 0.005715470295399427, 0.008743052370846272, -0.038537342101335526, -0.0355248786509037, -0.059556744992733, -0.041171904653310776, -0.013161532580852509, -0.022441161796450615, -0.02079305425286293, -0.02837587706744671, 0.019498713314533234, -0.04006032645702362, -0.02452498860657215, -0.006841226946562529, 0.021376322954893112, -0.024148492142558098, 0.03114691749215126, 0.008210031315684319, 0.00829208642244339, 0.04013441875576973, 0.0055390698835253716, -0.013869227841496468, 0.027791185304522514, 0.006413453724235296, -0.011287600733339787, 0.0186022836714983, -0.03098413534462452, 0.04890599101781845, -0.0514344684779644, 0.007552229333668947, -0.019042793661355972, 0.027471426874399185, -0.00084307900397107, 0.04356296360492706, 0.012052626349031925, -0.008960623294115067, 0.009203876368701458, 0.050391629338264465, 0.0029591580387204885, -0.05848291143774986, -0.023889070376753807, -0.009938118048012257, -0.0397430956363678, 0.02363462559878826, -0.0074232034385204315, -0.027954867109656334, -0.026078252121806145, 0.013628830201923847, 0.06263204663991928, 0.0127189252525568, -0.0029898392967879772, -0.019029198214411736, -0.02599276788532734, -0.026145057752728462, -0.0386929027736187, 0.0359809435904026, -0.01918087899684906, -0.029177114367485046, 0.006375504191964865, 0.030733328312635422, 0.04306384176015854, 0.024444669485092163, -0.02702605351805687, -0.029661936685442924, 6.421218706603365e-33, -0.00308313244022429, 0.017296405509114265, -0.02831866592168808, -0.004255394916981459, 0.04007694125175476, -0.020671574398875237, 0.016911400482058525, -0.007716987747699022, 0.00094693893333897, 0.03376562148332596, -0.03592599555850029, 0.03251104801893234, -0.013072372414171696, 0.02499043010175228, 0.04103647172451019, 0.026368534192442894, 0.0014013813342899084, 0.008944720961153507, 0.028913352638483047, 0.02684185281395912, -0.009074332192540169, 0.025961456820368767, -0.012673481367528439, 0.005543320905417204, 0.03269707411527634, 0.01981031335890293, -0.0036691029090434313, -0.003589916042983532, 0.002180699724704027, -0.0382266528904438, -0.0029999446123838425, -0.013402970507740974, -0.016004297882318497, 0.012768534943461418, -0.027135971933603287, 0.020643407478928566, 0.010643405839800835, -0.015173562802374363, -0.004935049917548895, -0.0004772309330292046, 0.060795824974775314, 0.005211799871176481, -0.015522493049502373, -0.003440645756199956, -0.01948896236717701, -0.026777546852827072, -0.014246245846152306, -0.021444715559482574, -0.01648326963186264, 0.010087545029819012, 0.006896276492625475, 0.005655457265675068, 0.03884318470954895, 0.01512716431170702, 0.02352030761539936, -0.035110339522361755, -0.014601378701627254, 0.04949701577425003, -0.03300045430660248, 0.017480822280049324, -0.02074046991765499, 0.025097021833062172, -0.012721731327474117, 0.02018796280026436, -0.029494456946849823, 0.010032393038272858, -0.02746570110321045, 0.01731056347489357, -0.045003268867731094, -0.014094488695263863, 0.027417834848165512, 0.014097866602241993, 0.03507561609148979, 0.053246885538101196, 0.05654813349246979, 0.002572046360000968, -0.013172830455005169, -0.006893615238368511, -0.007681875955313444, -0.00022817612625658512, -0.013527536764740944, 0.002616709563881159, 0.004505734425038099, 0.004136161413043737, -0.02854005992412567, -0.009917470626533031, -0.007691801991313696, -0.025597071275115013, 0.014687547460198402, 0.0036211893893778324, 0.028360765427350998, -0.03037264198064804, 0.01574278436601162, 0.022315414622426033, 0.033956483006477356, -1.277766337182129e-8, -0.010281833820044994, -0.023629680275917053, -0.024841373786330223, -0.0036067035980522633, 0.043603189289569855, -0.010674811899662018, -0.0034384909085929394, -0.020244548097252846, 0.011844899505376816, 0.012405850924551487, 0.039027128368616104, -0.008567391894757748, 0.024042624980211258, 0.0014038633089512587, 0.02886088937520981, -0.03864046186208725, 0.015824278816580772, -0.011942798271775246, -0.0008939126855693758, -0.046824850142002106, -0.018688734620809555, 0.07964883744716644, -0.007935850881040096, -0.026096126064658165, -0.01969842240214348, -0.01918499357998371, 0.017104119062423706, -0.08023928850889206, -0.019059764221310616, -0.00969061441719532, 0.018561525270342827, 0.008663749322295189, -0.058364901691675186, 0.014533092267811298, 0.005419258959591389, -0.025203172117471695, 0.021900296211242676, 0.029521340504288673, 0.0027326224371790886, 0.009102242067456245, -0.04931195452809334, -0.012025569565594196, 0.007423632778227329, -0.034255750477313995, -0.020249182358384132, -0.03778940439224243, -0.01614219881594181, 0.004538991022855043, 0.011407730169594288, 0.005610159132629633, 0.003423987654969096, 0.023560509085655212, 0.012076612561941147, -0.009425444528460503, 0.0019819107837975025, -0.012126924470067024, 0.018093114718794823, 0.02973305620253086, -0.04810509830713272, -0.01950637809932232, 0.009461896494030952, 0.003856422146782279, 0.04774295911192894, -0.0339607335627079 ]
poetry-package-update
https://markhneedham.com/blog/2023/10/04/poetry-package-update
false
2023-10-05 00:44:37
Poetry: The current project's Python requirement is not compatible
[ "poetry", "python", "til" ]
[ "TIL" ]
:icons: font A few times this week I've run into an interesting problem with Python version requirements when trying to install various packages. In this blog post, we'll learn what's going on and how to fix it. Our story begins with the innocent creation of a Poetry project: [source, bash] ---- poetry init ---- Next, we're going to add `dlt`, the data loading tool: [source, bash] ---- poetry add dlt ---- .Output [source, text] ---- Creating virtualenv incompatible-blog-Bp2VMsrx-py3.11 in /Users/markhneedham/Library/Caches/pypoetry/virtualenvs Using version ^0.3.18 for dlt Updating dependencies Resolving dependencies... (2.0s) Package operations: 38 installs, 1 update, 0 removals • Installing six (1.16.0) • Installing smmap (5.0.1) • Installing certifi (2023.7.22): Installing... • Installing certifi (2023.7.22) • Installing charset-normalizer (3.3.0) • Installing gitdb (4.0.10) • Installing idna (3.4) • Installing ply (3.11) • Installing python-dateutil (2.8.2) • Installing pytzdata (2020.1) • Installing types-setuptools (68.2.0.0) • Installing typing-extensions (4.8.0) • Installing urllib3 (2.0.6) • Installing wrapt (1.15.0) • Installing astunparse (1.6.3) • Installing click (8.1.7) • Installing deprecated (1.2.14) • Installing fsspec (2023.9.2) • Installing gitpython (3.1.37) • Installing giturlparse (0.12.0): Installing... • Installing hexbytes (0.3.1): Installing... • Installing giturlparse (0.12.0) • Installing hexbytes (0.3.1) • Installing humanize (4.8.0) • Installing jsonpath-ng (1.6.0) • Installing makefun (1.15.1) • Installing orjson (3.9.7) • Installing packaging (23.2) • Installing pathvalidate (3.2.0): Pending... • Installing pendulum (2.1.2): Installing... • Installing pathvalidate (3.2.0) • Installing pendulum (2.1.2) • Installing pytz (2023.3.post1) • Installing pyyaml (6.0.1) • Installing requests (2.31.0) • Installing requirements-parser (0.5.0) • Installing semver (3.0.1) • Updating setuptools (68.2.0 -> 68.2.2) • Installing simplejson (3.19.1) • Installing sqlalchemy (2.0.21) • Installing tenacity (8.2.3) • Installing tomlkit (0.12.1) • Installing tzdata (2023.3) • Installing dlt (0.3.18) Writing lock file ---- We want to ingest data into DuckDB, so let's add that dependency as well: [source, bash] ---- poetry add duckdb ---- .Output [source, text] ---- Using version ^0.9.0 for duckdb Updating dependencies Resolving dependencies... (0.1s) Package operations: 1 install, 0 updates, 0 removals • Installing duckdb (0.9.0) Writing lock file ---- So far so good. But what about if we want to add pandas as well? [source, bash] ---- poetry add pandas ---- .Output [source, text] ---- Using version ^2.1.1 for pandas Updating dependencies Resolving dependencies... (0.1s) The current project's Python requirement (>=3.11,<4.0) is not compatible with some of the required packages Python requirement: - numpy requires Python <3.13,>=3.9, so it will not be satisfied for Python >=3.13,<4.0 Because no versions of pandas match >2.1.1,<3.0.0 and pandas (2.1.1) depends on numpy (>=1.26.0), pandas (>=2.1.1,<3.0.0) requires numpy (>=1.26.0). Because numpy (1.26.0) requires Python <3.13,>=3.9 and no versions of numpy match >1.26.0, numpy is forbidden. Thus, pandas is forbidden. So, because incompatible-blog depends on pandas (^2.1.1), version solving failed. • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties For numpy, a possible solution would be to set the `python` property to ">=3.11,<3.13" https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies, https://python-poetry.org/docs/dependency-specification/#using-environment-markers ---- Disaster strikes! It's complaining about Poetry's Python requirement being incompatible with numpy's requirement. Our project allows any version from 3.11 -> 4.0 and numpy only allows 3.9 -> 3.13. Right now we're using 3.11, so we're currently fine, but it could break in the future. If we have a look at our `pyproject.toml` file, we can see the Python version is configured like this: [source, toml] ---- [tool.poetry.dependencies] python = ">=3.11" ---- At the moment it will allow any version that's 3.11 or above. We need to restrict the version to a maximum of 3.13, which we can do by updating it to read like this: [source, toml] ---- [tool.poetry.dependencies] python = ">=3.11.0,<3.13.0" ---- And now if we run `poetry add pandas` again: .Output [source, text] ---- Using version ^2.1.1 for pandas Updating dependencies Resolving dependencies... (0.2s) Package operations: 2 installs, 0 updates, 0 removals • Installing numpy (1.26.0) • Installing pandas (2.1.1) Writing lock file ---- Happy days!
In this post, we'll learn how to work around an issue when packages have different Python version requirements.
uploads/2023/10/poetry-not-compatible-banner.png
[ 0.007538495119661093, 0.0033539740834385157, -0.015380588360130787, 0.02322789654135704, 0.08427310734987259, 0.06264609843492508, 0.02518123760819435, 0.032822247594594955, -0.01437874510884285, -0.010172797366976738, -0.02099737338721752, 0.009293612092733383, -0.09115207940340042, 0.006849910132586956, -0.03516840562224388, 0.06539993733167648, 0.0848066434264183, 0.01405214611440897, 0.006549865007400513, 0.01318831741809845, 0.0402735099196434, 0.08487732708454132, -0.023907184600830078, 0.042956721037626266, -0.004657518584281206, 0.01190133299678564, 0.018943272531032562, -0.0188458152115345, -0.0638071596622467, -0.025853842496871948, 0.01926983706653118, -0.014409410767257214, -0.009340949356555939, -0.03158373013138771, 0.023057056590914726, 0.011113318614661694, -0.035135939717292786, 0.025891683995723724, 0.019007600843906403, 0.017624912783503532, -0.0525880791246891, 0.01223035529255867, -0.007689546328037977, 0.011172507889568806, -0.04730119928717613, 0.00315102213062346, -0.058801356703042984, 0.009654557332396507, 0.00635346956551075, -0.020080294460058212, -0.05042671784758568, 0.05189381167292595, -0.039632778614759445, -0.03437182679772377, -0.005960943643003702, 0.02759263850748539, 0.02365618385374546, -0.07798624038696289, 0.02226683869957924, -0.030234500765800476, 0.008369443006813526, -0.016500962898135185, 0.011306515894830227, 0.03162898123264313, 0.008255708031356335, -0.029399540275335312, -0.011639982461929321, 0.041479408740997314, -0.061865221709012985, -0.0359034463763237, -0.004827740602195263, 0.0073959603905677795, -0.044133398681879044, -0.021234745159745216, 0.024316802620887756, -0.05545753240585327, -0.02780122682452202, 0.05707623437047005, 0.033796150237321854, 0.05446217954158783, -0.008879395201802254, 0.024433933198451996, 0.04063285142183304, 0.032921191304922104, -0.0068177212961018085, -0.05685773119330406, -0.010653204284608364, -0.004110107664018869, -0.06321584433317184, 0.05578650161623955, 0.02490554377436638, -0.06593698263168335, 0.04384414106607437, 0.005533895920962095, 0.006240253336727619, 0.009657598100602627, -0.010347859933972359, 0.013480034656822681, 0.01314211543649435, -0.015718255192041397, -0.03812800720334053, -0.00899419654160738, 0.02002057619392872, 0.02650883048772812, -0.08419553190469742, -0.008174140006303787, -0.017479155212640762, -0.004385879263281822, 0.0091260289773345, 0.0019145249389111996, 0.016818145290017128, 0.004050299990922213, -0.004130022134631872, -0.009471761994063854, -0.07312341779470444, 0.07213616371154785, -0.006989955902099609, -0.05423157662153244, -0.021263187751173973, 0.022727811709046364, 0.046167805790901184, 0.031787022948265076, -0.019612951204180717, 0.0802457332611084, 0.020187167450785637, 0.056660234928131104, -0.011249328963458538, 0.05849853530526161, 0.00013060556375421584, -0.05095140263438225, -0.017125772312283516, 0.05992807075381279, -0.01731523871421814, 0.006991022266447544, -0.0015104141784831882, -0.012675278820097446, 0.004700241610407829, 0.0195153821259737, 0.06618231534957886, 0.012322939932346344, -0.01910787634551525, 0.009285652078688145, -0.015142235904932022, 0.023750320076942444, 0.026067787781357765, 0.024053944274783134, 0.02010447159409523, -0.03313499316573143, -0.03586875647306442, 0.017472118139266968, -0.0043952129781246185, -0.00046274287160485983, 0.053573038429021835, -0.015675531700253487, 0.017712270841002464, 0.08703424036502838, 0.0391540564596653, 0.034855157136917114, -0.03307019919157028, 0.015102669596672058, 0.011560771614313126, 0.027348574250936508, 0.007820339873433113, 0.05551647022366524, 0.009731804020702839, -0.03268471732735634, -0.020703935995697975, 0.03420959785580635, -0.008354165591299534, 0.009506791830062866, -0.05204898118972778, -0.08071711659431458, 0.048820752650499344, -0.03633955866098404, -0.012302588671445847, 0.0374976210296154, 0.10186925530433655, 0.05801963806152344, 0.02908690646290779, 0.030383003875613213, -0.08889389038085938, 0.048997268080711365, -0.002363027771934867, 0.02174733392894268, 0.005859637167304754, -0.026952989399433136, 0.09944295138120651, 0.011452537029981613, 0.03297162801027298, 0.02765786647796631, -0.07467740029096603, -0.08071427047252655, -0.035177405923604965, 0.009460266679525375, 0.041379936039447784, -0.03883078321814537, -0.024315401911735535, 0.030090395361185074, 0.013257989659905434, 0.02677820809185505, 0.013881752267479897, 0.009410364553332329, 0.0097314128652215, -0.051637202501297, -0.05255584046244621, 0.042452115565538406, 0.019409511238336563, -0.012319212779402733, -0.034757036715745926, 0.013829353265464306, -0.006399344187229872, -0.026734696701169014, 0.04184846952557564, -0.011014090850949287, 0.022823480889201164, -0.007913973182439804, 0.023821773007512093, -0.03423270583152771, 0.045819684863090515, -0.0768379420042038, 0.0061040460132062435, -0.004353140480816364, -0.011900169774889946, -0.028833888471126556, -0.004274579230695963, 0.10950151830911636, 0.05144556611776352, -0.04245861619710922, -0.026698822155594826, 0.013245724141597748, -0.003989436198025942, -0.05400483310222626, 0.00642570061609149, -0.0031198144424706697, -0.030781157314777374, 0.019086109474301338, -0.03713861480355263, -0.05371123552322388, 0.02507725916802883, -0.036518026143312454, -0.011080911383032799, 0.05721964314579964, -0.02401481382548809, 0.055608078837394714, 0.016303468495607376, -0.030752083286643028, -0.010916313156485558, -0.03447955846786499, -0.054800815880298615, -0.0011920480756089091, 0.03131355345249176, -0.009985602460801601, 0.023075759410858154, -0.017901767045259476, -0.038599494844675064, -0.022719038650393486, -0.05525799095630646, 0.03872862085700035, 0.05622820556163788, 0.0476490743458271, -0.058538977056741714, 0.01365947537124157, -0.003544953651726246, 0.016724659129977226, -0.013581992127001286, -0.03589748218655586, -0.03597981482744217, -0.004568387288600206, 0.011625096201896667, 0.009998264722526073, 0.02880566380918026, 0.025257838889956474, -0.008130474016070366, -0.026568349450826645, 0.014396063052117825, -0.003673721104860306, 0.06190432235598564, 0.007615577895194292, -0.011725055053830147, -0.06545092165470123, -0.008372186683118343, 0.05951199680566788, -0.05895301327109337, -0.034544430673122406, -0.019278191030025482, -0.04571960121393204, 0.024306217208504677, -0.0888095423579216, -0.02998744137585163, -0.022968919947743416, 0.01323326863348484, 0.053131069988012314, -0.007523262407630682, 0.0009349226602353156, 0.03444427251815796, 0.00787146482616663, 0.0007425002986565232, 0.027007855474948883, 0.0037227736320346594, 0.044803209602832794, 0.02498381957411766, 0.03524826094508171, 0.03553711995482445, 0.04582865163683891, 0.006560910027474165, -0.034570466727018356, 0.027605397626757622, -0.035141490399837494, -0.25209537148475647, 0.03308190405368805, 0.002502428600564599, -0.04311059042811394, 0.022276822477579117, -0.014092311263084412, 0.0011445780983194709, -0.05203716829419136, -0.023105349391698837, 0.020952394232153893, -0.03585328534245491, -0.027153346687555313, 0.001951768877916038, 0.03723008185625076, 0.007286709267646074, 0.01004026085138321, 0.034480851143598557, -0.04406020790338516, 0.001160813495516777, 0.05663568899035454, 0.009689340367913246, -0.059223420917987823, 0.020347341895103455, 0.04780910164117813, 0.009041921235620975, 0.057542603462934494, -0.050261400640010834, 0.06570427119731903, -0.06443381309509277, -0.026697253808379173, -0.010690613649785519, -0.0022636177018284798, 0.0025733376387506723, 0.002758630318567157, -0.010840925388038158, -0.007596225012093782, 0.04426714405417442, -0.008025061339139938, 0.00858702789992094, 0.01613614894449711, -0.020740214735269547, -0.05859282985329628, 0.013110642321407795, -0.0053892843425273895, 0.07610659301280975, -0.015461745671927929, -0.08820392936468124, -0.01449548825621605, -0.056092068552970886, 0.09629761427640915, -0.03897760063409805, -0.03344672918319702, -0.019489755854010582, 0.042828336358070374, 0.005162780173122883, 0.012281584553420544, -0.00267961248755455, 0.010170720517635345, -0.05412738397717476, -0.0374574288725853, 0.006689775735139847, -0.0338718481361866, -0.05063216760754585, -0.027640895918011665, 0.0018285933183506131, -0.06051730364561081, -0.03059271350502968, -0.024500589817762375, 0.0613882951438427, 0.05051438510417938, -0.07187343388795853, -0.02087416499853134, -0.023562833666801453, -0.08792663365602493, 0.019804010167717934, -0.030263490974903107, -0.044671643525362015, 0.003613406093791127, -0.0048451852053403854, 0.04068056121468544, -0.033247847110033035, -0.05970212072134018, 0.020329665392637253, 0.00779236014932394, 0.003214779309928417, -0.021861642599105835, 0.022873587906360626, 0.0056837620213627815, -0.0169134009629488, -0.001054306048899889, 0.07168890535831451, -0.02010461688041687, -0.02915608137845993, -0.0002267961244797334, -0.006898465100675821, 0.0028364453464746475, 0.04542674124240875, 0.03662719950079918, 0.014426215551793575, 0.056349530816078186, 0.013831296935677528, -0.07013621181249619, -0.016675418242812157, -0.01694834604859352, -0.02162574790418148, -0.003913911059498787, -0.05595722049474716, 0.013963088393211365, 0.04795415326952934, -0.0022571373265236616, -0.010157231241464615, -0.04516352713108063, 0.02061190828680992, -0.0638442263007164, -0.04440295696258545, -0.024180736392736435, 0.03044292703270912, 0.02747100591659546, 0.0006979881436564028, 0.010783586651086807, -0.04456981271505356, 0.024012362584471703, 0.00722089409828186, -0.012040723115205765, -0.05150207504630089, -0.030429702252149582, 0.0009133244748227298, -0.01168866641819477, 0.002113671274855733, 0.004328152164816856, -0.012038230895996094, 0.020643314346671104, 0.04100616276264191, -0.06474627554416656, 0.02489645779132843, -0.032017823308706284, -0.05110354349017143, -0.02215125970542431, 0.008507580496370792, 0.00557141937315464, -0.020537443459033966, 0.0019348855130374432, -0.0006497500580735505, -0.007974441163241863, 0.05296032503247261, -0.0068278382532298565, 0.032569725066423416, -0.025098629295825958, 0.010289659723639488, 0.021236443892121315, 0.029062731191515923, -0.010159981437027454, 0.021821266040205956, -0.025210488587617874, -0.0317402184009552, -0.014305655844509602, 0.016669729724526405, -0.02691209316253662, 0.0035572443157434464, -0.020332317799329758, 0.012738428078591824, -0.060199838131666183, -0.004125399515032768, 0.0026433919556438923, -0.0033751358278095722, 0.03327423706650734, 0.029851483181118965, -0.011838780716061592, -0.014126979745924473, 0.0011162686860188842, 0.04657416790723801, 0.0434778667986393, -0.015048835426568985, 0.02645467035472393, -0.006224717479199171, -0.008802732452750206, 0.011161386035382748, 0.025909343734383583, 0.0197619441896677, 0.019308753311634064, 0.0014393150340765715, -0.024252999573946, 0.026741553097963333, 0.014828097075223923, 0.028947506099939346, 0.008761290460824966, -0.04277489706873894, -0.018102388828992844, -0.03503647446632385, -0.03387817367911339, -0.0285645704716444, -0.007788621820509434, -0.00167945702560246, -0.010600274428725243, -0.0374072827398777, -0.09354431927204132, -0.0027536393608897924, 0.023379195481538773, 0.03496744483709335, 0.0001556375209474936, -0.027586761862039566, 0.004120505414903164, -0.03953173756599426, 0.01260178629308939, 0.06429949402809143, -0.07575926184654236, 0.004919125698506832, -0.011098606511950493, 0.01827865093946457, -0.01192186214029789, 0.034240346401929855, -0.05603568255901337, -0.03450172021985054, -0.0075709642842411995, 0.013603555969893932, -0.014064021408557892, -0.050872184336185455, -0.006146291736513376, 0.020735671743750572, -0.028426457196474075, 0.0008210670202970505, -0.007977583445608616, -0.006505474913865328, -0.014883849769830704, -0.021725350990891457, 0.017461037263274193, 0.001761044841259718, -0.015967613086104393, 0.02649438939988613, -0.02435697801411152, 0.049281179904937744, -0.03794586658477783, 0.028181197121739388, 0.02003217488527298, -0.0034639297518879175, 0.004722340498119593, -0.04373019561171532, -0.003018885152414441, -0.0025826538912951946, 0.016680262982845306, -0.002850865013897419, 0.007363967597484589, -0.030427666381001472, -0.003413890954107046, -0.02232496067881584, 0.022312238812446594, -0.014146825298666954, -0.030614232644438744, -0.011371753178536892, 0.05337958782911301, -0.015926746651530266, 0.02519328147172928, -0.016907041892409325, -0.0399133674800396, 0.060210514813661575, -0.05078477784991264, -0.06583531945943832, -0.006480988580733538, -0.04443525895476341, 0.03803589195013046, 0.036715198308229446, 0.028527140617370605, -0.0598863884806633, 0.047539547085762024, 0.036398518830537796, 0.012903308495879173, 0.055707454681396484, -0.019018691033124924, 0.0216826219111681, -0.02798185683786869, -0.03222082927823067, -0.07083132863044739, -0.014993301592767239, 0.017736421898007393, -0.035603757947683334, -0.05089513212442398, 0.009716656059026718, -0.03891493007540703, 0.03419943153858185, -0.05490271374583244, -0.012049838900566101, 0.052516691386699677, -0.006459104362875223, 0.02390391379594803, 0.01894453540444374, -0.06122063472867012, 0.043744731694459915, 0.035392843186855316, -0.03451024368405342, -0.005161174573004246, -0.007807695772498846, 0.09332871437072754, -0.0029423683881759644, 0.033827051520347595, -0.015945974737405777, -0.0010612440528348088, 0.06639964878559113, 0.022275973111391068, 0.017992671579122543, 0.02787039615213871, -0.016325654461979866, 0.05568256601691246, 0.04725813493132591, 0.016851745545864105, -0.0027193459682166576, 0.0272962749004364, -0.014030986465513706, -0.0573434941470623, 0.02817961573600769, 0.0021831265185028315, 0.002642847364768386, -0.0390901193022728, 0.06061233952641487, 0.012136105448007584, -0.009783315472304821, -0.05034923553466797, 0.03290427476167679, -0.04649104177951813, -0.003944220021367073, -0.040143538266420364, -0.012252752669155598, -0.04085038974881172, 0.0635940209031105, 0.0026392689906060696, 0.0024241283535957336, 0.05079753324389458, -0.019049089401960373, -0.0007934612222015858, 0.006975631229579449, 0.07303616404533386, 0.07907427847385406, 0.04566717892885208, 0.030260741710662842, 0.06728223711252213, -0.020691322162747383, -0.05829712748527527, 0.009461361914873123, -0.004192298743873835, -0.011253935284912586, -0.041756950318813324, 0.01962186209857464, 0.0605570487678051, 0.01046842709183693, 0.06910629570484161, -0.021360883489251137, 0.018924551084637642, -0.024576708674430847, -0.0017563470173627138, 0.017727486789226532, 0.04667894169688225, 0.006214307155460119, 0.025980425998568535, -0.01389983855187893, -0.020994016900658607, 0.046334147453308105, -0.02327321656048298, -0.011253082193434238, 0.025330116972327232, -0.005624082870781422, 0.00046367887989617884, 0.013533787801861763, 0.05257079005241394, 0.0769926980137825, -0.039152566343545914, -0.016434911638498306, -0.006787747144699097, 0.04611220955848694, 0.02302105352282524, 0.021644489839673042, -0.007492231670767069, -0.007418379653245211, -0.016237318515777588, -0.020801139995455742, 0.007684612181037664, -0.009348511695861816, -0.016328349709510803, 0.05975225195288658, -0.027894094586372375, -0.012320449575781822, 0.024730047211050987, -0.018534235656261444, -0.05003533884882927, -0.03993479534983635, -0.05084134265780449, -0.016553422436118126, -0.04152165353298187, 0.0132426917552948, 0.0033066680189222097, -0.01135049108415842, -0.047673895955085754, -0.050046708434820175, 0.0076863644644618034, -0.03135950490832329, -0.012054950930178165, -0.06227637454867363, -0.02737549878656864, 0.01576058566570282, 0.03569534420967102, -0.028354214504361153, 0.007512379437685013, 0.07073844969272614, 0.004626143258064985, -0.03883940726518631, -0.01682194322347641, 0.022620799019932747, 0.027579307556152344, 0.003427670104429126, 0.021873973309993744, -0.07478613406419754, 0.020533151924610138, 0.050567176192998886, -0.00006494862464023754, -0.06076033413410187, 0.027866460382938385, 0.019605550915002823, -0.014236255548894405, 0.04351552575826645, 0.0028629498556256294, 0.018483085557818413, -0.019072264432907104, -0.015728283673524857, -0.007651066407561302, 0.01785101182758808, 0.037847284227609634, -0.025361349806189537, 0.09036032110452652, 0.027925416827201843, 0.020004406571388245, -0.037929464131593704, -0.001709978561848402, -0.007023641373962164, 0.018377887085080147, -0.018118545413017273, -0.015910020098090172, -0.04613351449370384, -0.08528823405504227, -0.009953596629202366, 0.005303484853357077, -0.05499618873000145, -0.03443051502108574, 0.0012601333437487483, -0.00562046654522419, -0.01786651834845543, 0.06754592806100845, -0.04191243276000023, -0.02242705225944519, -0.012577452696859837, -0.00837612058967352, -0.0045948936603963375, 0.05173875764012337, -0.0012965996284037828, 0.029277896508574486, 0.011684292927384377, -0.03247761353850365, 0.008829116821289062, 0.003721764776855707, 0.04892260208725929, 0.038391027599573135, -0.0058166831731796265, 0.02291114255785942 ]
[ -0.07863059639930725, -0.020662182942032814, -0.01198191475123167, -0.0052950503304600716, 0.019157802686095238, -0.06436056643724442, -0.07932804524898529, 0.010215703397989273, -0.017784101888537407, -0.020728712901473045, 0.021599313244223595, -0.05544787272810936, 0.012019319459795952, -0.049857042729854584, 0.08336643129587173, 0.008289393037557602, 0.0011283650528639555, -0.06778690218925476, -0.010378917679190636, 0.03013606369495392, -0.0009749194723553956, 0.01679231971502304, -0.014168244786560535, -0.029270056635141373, -0.02314124070107937, 0.053142424672842026, 0.041905079036951065, -0.025076089426875114, -0.003063884563744068, -0.20538745820522308, -0.00013320303696673363, 0.015832267701625824, 0.02138216607272625, -0.03138773888349533, 0.04779645428061485, 0.08418913185596466, -0.01591626927256584, 0.014171246439218521, -0.013497426174581051, 0.024046486243605614, 0.022070016711950302, 0.015295453369617462, -0.10057807713747025, -0.052007194608449936, 0.05587251856923103, -0.0021111287642270327, -0.03264172375202179, -0.021482566371560097, 0.010474118404090405, -0.00012406468158587813, -0.0290389284491539, 0.003101504407823086, -0.008594161830842495, -0.023310933262109756, -0.02723354659974575, 0.038952551782131195, 0.064485564827919, 0.09022710472345352, 0.025324618443846703, -0.013261942192912102, -0.00927951093763113, -0.02705809846520424, -0.14226724207401276, 0.1127600222826004, 0.02886028029024601, 0.025931794196367264, -0.04438622295856476, -0.03128911182284355, -0.004430550616234541, 0.09516734629869461, -0.028863366693258286, -0.026035582646727562, -0.04113006591796875, 0.06626962870359421, -0.012264088727533817, -0.007442851550877094, 0.026850447058677673, -0.0004659057012759149, 0.05447802692651749, -0.027355263009667397, -0.03360868990421295, -0.010000191628932953, -0.025039101019501686, -0.046785853803157806, -0.012636655941605568, -0.023307202383875847, -0.0014674378326162696, 0.061312559992074966, -0.007132276427000761, 0.010910318233072758, 0.013819667510688305, -0.036466941237449646, 0.05544744431972504, 0.018541838973760605, -0.08540056645870209, -0.016450192779302597, 0.020402278751134872, -0.024607721716165543, -0.06332828849554062, 0.41544604301452637, -0.02387426607310772, -0.012938297353684902, 0.04026864469051361, 0.043440673500299454, 0.05189409852027893, 0.02163456194102764, -0.007574501447379589, -0.02939072623848915, -0.009328018873929977, -0.05708383396267891, 0.024127300828695297, -0.01223340816795826, 0.08487695455551147, -0.05263934284448624, 0.018816089257597923, -0.021969325840473175, -0.021938495337963104, 0.004955718759447336, 0.008900084532797337, 0.011094041168689728, -0.04272889345884323, -0.004998726304620504, 0.054173216223716736, -0.005637692287564278, 0.014535367488861084, 0.01200846303254366, 0.01090001966804266, 0.04047499969601631, 0.02992716059088707, 0.008707982487976551, 0.011182142421603203, -0.01796388439834118, -0.038113418966531754, -0.000903413281776011, -0.014546845108270645, 0.03810788691043854, -0.0009589099790900946, -0.019814442843198776, 0.03288281708955765, 0.022352242842316628, -0.014751091599464417, -0.07177361100912094, 0.037006571888923645, 0.012647735886275768, -0.019399728626012802, 0.09973423182964325, -0.011019138619303703, 0.029170071706175804, -0.04385160282254219, -0.014793000183999538, -0.019560426473617554, 0.021902553737163544, -0.029178574681282043, -0.028545111417770386, 0.043208543211221695, 0.03681355342268944, 0.08090879768133163, -0.04665825143456459, -0.0639028325676918, 0.013589407317340374, 0.013797330670058727, -0.04460490867495537, -0.06822855025529861, 0.005822491366416216, 0.025521980598568916, -0.09166555851697922, -0.031136980280280113, -0.010480127297341824, -0.0236260574311018, -0.029894685372710228, 0.005852194502949715, 0.036801666021347046, -0.017412986606359482, 0.01041870005428791, 0.016198918223381042, -0.05334533005952835, 0.004239258822053671, 0.027140650898218155, 0.06868736445903778, 0.01832474023103714, -0.016624994575977325, 0.04941876232624054, -0.039223603904247284, -0.006669160909950733, -0.02255330979824066, -0.11075922846794128, -0.06248386949300766, -0.007753105368465185, 0.0011151666985824704, -0.060791973024606705, 0.00848879013210535, -0.007373070809990168, 0.0017661966849118471, 0.0381176583468914, 0.0045529501512646675, 0.011588466353714466, -0.0032514240592718124, 0.006995508447289467, 0.0024701363872736692, -0.04583673179149628, 0.020315734669566154, 0.053569015115499496, 0.0074923718348145485, 0.024901945143938065, -0.055461328476667404, 0.01638389565050602, 0.04957323893904686, -0.053610511124134064, 0.04076605290174484, -0.009098287671804428, -0.04882487282156944, -0.005469342693686485, 0.03556405380368233, 0.016522245481610298, -0.028463298454880714, -0.030529242008924484, -0.0409860834479332, 0.025223083794116974, 0.05801241099834442, 0.0355011522769928, -0.031656764447689056, -0.06150156632065773, -0.04686135798692703, -0.34288865327835083, 0.010218686424195766, 0.0037978303153067827, -0.02415166236460209, 0.030292237177491188, -0.046904902905225754, -0.006494950037449598, -0.040856122970581055, -0.010413754731416702, 0.049985263496637344, 0.08861946314573288, -0.028670065104961395, 0.06525292247533798, -0.08200313150882721, 0.027493450790643692, 0.031331878155469894, -0.019589683040976524, -0.019197138026356697, -0.009710646234452724, 0.003298536641523242, 0.005121193826198578, -0.02189810201525688, -0.060988474637269974, -0.045102573931217194, -0.01773650571703911, -0.02171160653233528, 0.1133594661951065, 0.047230545431375504, 0.0763995349407196, -0.0317770317196846, 0.04637811705470085, 0.036399319767951965, -0.019388649612665176, -0.14211122691631317, -0.005672813858836889, 0.028122678399086, 0.012147177942097187, 0.019225208088755608, 0.0200538020581007, -0.007071032654494047, -0.008711355738341808, 0.0586969219148159, -0.049319252371788025, -0.023479202762246132, -0.03315232694149017, 0.025849878787994385, 0.00047182763228192925, -0.021962163969874382, 0.0027025947347283363, 0.07131605595350266, 0.010462583974003792, 0.05923943966627121, -0.017633002251386642, 0.016311082988977432, -0.01701400801539421, -0.011190945282578468, -0.08786633610725403, -0.003700250992551446, 0.03262946382164955, -0.06730838865041733, 0.04118333011865616, 0.008932143449783325, 0.052546702325344086, -0.0556047260761261, -0.02173655666410923, 0.024206815287470818, 0.022966930642724037, -0.02251601777970791, 0.05776696652173996, 0.01095077395439148, 0.008919845335185528, 0.09217268228530884, -0.03179262951016426, 0.004701095633208752, -0.010116323828697205, 0.03151215240359306, 0.013379737734794617, 0.05992826819419861, 0.05021068826317787, -0.04306812211871147, 0.03184963017702103, 0.00831164326518774, 0.023051420226693153, -0.04227391630411148, -0.007023473270237446, 0.04051817208528519, -0.03843746706843376, -0.03362037241458893, 0.05481957271695137, 0.008338402956724167, 0.0016226745210587978, 0.002555679064244032, 0.01491768378764391, -0.023406745865941048, 0.0901888981461525, 0.024166429415345192, -0.21211481094360352, 0.026407450437545776, 0.1003662571310997, 0.04946611821651459, -0.007676953915506601, 0.0073507544584572315, 0.005550696514546871, -0.053018175065517426, -0.036183204501867294, -0.009912388399243355, 0.037388067692518234, 0.024557961151003838, -0.017675381153821945, -0.008773415349423885, 0.017026307061314583, -0.03273835405707359, 0.09243970364332199, -0.01956935040652752, -0.02888164483010769, -0.003657543333247304, -0.008552818559110165, -0.028065785765647888, 0.14481040835380554, -0.01946612447500229, -0.03991129994392395, -0.02649221010506153, 0.017048362642526627, 0.03845851495862007, 0.019102824851870537, 0.019972460344433784, -0.035717688500881195, 0.011474951170384884, 0.01664353348314762, 0.0019628938753157854, 0.04887384548783302, -0.022825248539447784, -0.01903642527759075, 0.01893753372132778, 0.030860964208841324, 0.024077028036117554, -0.017209917306900024, 0.06401225924491882, -0.07619737833738327, 0.029176851734519005, 0.03571990877389908, -0.01096455566585064, 0.01881745457649231, 0.011469502933323383, -0.044034309685230255, -0.002619990147650242, 0.0032690088264644146, -0.025046221911907196, -0.008232143707573414, 0.007628966122865677, 0.02222660556435585, 0.06917212158441544, 0.014904377050697803, -0.025614095851778984, 0.023801030591130257, 0.02155647799372673, 0.015191246755421162, -0.0647929459810257, 0.12099524587392807, 0.026297688484191895, 0.0017626937478780746 ]
[ 0.02989940159022808, -0.01130816712975502, 0.0036177565343677998, -0.03360476344823837, 0.01811608113348484, -0.010599949397146702, 0.005595351569354534, -0.003628990612924099, -0.04016335681080818, 0.011514967307448387, -0.0035553472116589546, 0.0032646539621055126, 0.015077543444931507, -0.016134297475218773, 0.0223661158233881, 0.002230547135695815, -0.005008393432945013, -0.02982565015554428, 0.03131086006760597, 0.05022397264838219, -0.014659369364380836, 0.03513890504837036, 0.01736164651811123, -0.0006505958153866231, 0.00971758458763361, 0.01584753580391407, -0.07527195662260056, 0.017438914626836777, 0.02517803944647312, -0.1315516233444214, -0.0020956601947546005, -0.01011537667363882, 0.0055109127424657345, -0.013725226745009422, 0.039759229868650436, 0.024687089025974274, -0.005123521666973829, -0.00030761887319386005, -0.05262501910328865, 0.016103748232126236, 0.011288304813206196, -0.01560934353619814, -0.03032791055738926, 0.01942509040236473, -0.0077891359105706215, -0.012446067295968533, -0.015668636187911034, -0.02113194949924946, 0.0013175412314012647, -0.009747009724378586, -0.03984462842345238, 0.005634948145598173, 0.011567098088562489, 0.004254173021763563, -0.010959718376398087, 0.029774539172649384, 0.010258235968649387, 0.022751986980438232, 0.0012628633994609118, -0.05110359936952591, -0.021212896332144737, -0.0005171215743757784, -0.057810742408037186, -0.022852759808301926, -0.016525479033589363, -0.029580766335129738, -0.01817259006202221, 0.011497759260237217, 0.0028797616250813007, 0.012416554614901543, -0.0062389313243329525, 0.020367451012134552, -0.03992383927106857, -0.008022782392799854, -0.02967209927737713, 0.01638285256922245, -0.0029612246435135603, -0.03567793220281601, -0.02451009675860405, -0.0033288849517703056, -0.037305206060409546, 0.028422312811017036, 0.018417324870824814, 0.03432082012295723, -0.01889765076339245, -0.0032108367886394262, 0.016257325187325478, 0.00037252408219501376, 0.012975077144801617, -0.002429540967568755, 0.013106280006468296, -0.018401678651571274, 0.01373520027846098, 0.0080295754596591, -0.08730699867010117, -0.019997991621494293, 0.018624473363161087, -0.0365586057305336, 0.005345028825104237, 0.8420045971870422, 0.0036750249564647675, -0.014203183352947235, 0.030793381854891777, -0.008870941586792469, 0.021892515942454338, 0.0195438452064991, 0.013895909301936626, -0.04321310296654701, -0.019078556448221207, -0.05151492729783058, 0.021742472425103188, -0.006017002742737532, 0.014938412234187126, -0.021924776956439018, 0.05338723957538605, 0.01753210835158825, 0.00837269239127636, 0.02519291266798973, -0.0008734632283449173, 0.003248089225962758, 0.011759856715798378, -0.011175725609064102, 0.024639824405312538, 0.02823515795171261, -0.024543823674321175, -0.17680689692497253, 0.001517725526355207, -6.522189997919153e-33, -0.00137232500128448, -0.013929570093750954, 0.0037981935311108828, 0.008851282298564911, 0.018219763413071632, 0.02530129998922348, -0.021356970071792603, -0.014730729162693024, -0.019940568134188652, -0.04122081398963928, 0.0037021897733211517, -0.033388976007699966, -0.00403877068310976, 0.009849083609879017, 0.025112319737672806, -0.024602333083748817, 0.018047386780381203, 0.0423140786588192, -0.00817770604044199, 0.018230369314551353, 0.04722080007195473, 0.01681124046444893, 0.03128025680780411, -0.0011335075832903385, -0.027777668088674545, -0.026014449074864388, 0.028493884950876236, 0.019737794995307922, 0.0022069946862757206, -0.05710107460618019, -0.030523337423801422, 0.006255485583096743, 0.016247836872935295, -0.021286960691213608, -0.030615078285336494, -0.036666084080934525, -0.057501405477523804, -0.02184794656932354, -0.035904351621866226, -0.003972968552261591, -0.026417188346385956, 0.03294079005718231, -0.010987307876348495, -0.04565944895148277, 0.007488439790904522, 0.04750613495707512, -0.018139228224754333, 0.008110791444778442, -0.00023596349637955427, -0.009284893050789833, 0.04022280126810074, 0.008207937702536583, -0.017267977818846703, 0.003119317814707756, -0.017271749675273895, 0.019949402660131454, 0.02207590639591217, -0.004973805975168943, 0.01487357635051012, 0.006463092286139727, 0.021777745336294174, -0.011487402953207493, 0.03873361647129059, 0.0027053640224039555, 0.028325969353318214, 0.004911571741104126, 0.025888046249747276, 0.018087252974510193, 0.022508656606078148, 0.028454016894102097, -0.05552741885185242, -0.004431203473359346, -0.016777031123638153, -0.017387889325618744, 0.01544747781008482, -0.005755790509283543, -0.01811699941754341, -0.04672076553106308, -0.0020346310921013355, 0.05195124074816704, -0.011465267278254032, -0.01857576332986355, -0.019958533346652985, -0.03606649860739708, -0.02213430032134056, -0.05131448060274124, 0.03269430622458458, -0.010345798917114735, -0.032640859484672546, 0.022613627836108208, 0.02197486162185669, 0.01643431931734085, 0.018040291965007782, -0.0214618518948555, -0.03792025148868561, 6.263149981248292e-33, -0.02449931390583515, 0.03076520934700966, 0.004108081571757793, 0.010792631655931473, 0.018045714125037193, -0.00460662180557847, 0.03934492543339729, 0.014008129946887493, -0.019338734447956085, 0.020492354407906532, -0.03147809952497482, 0.024134129285812378, 0.004591367673128843, 0.04255189746618271, 0.049784913659095764, 0.054802846163511276, 0.011224859394133091, -0.0012699520448222756, 0.0323430635035038, 0.030710643157362938, -0.02302907593548298, 0.01942260004580021, -0.0241011343896389, 0.022937487810850143, 0.0474761538207531, 0.03690743073821068, 0.011633485555648804, 0.0031493573915213346, -0.009005608037114143, -0.02348163165152073, 0.029233969748020172, -0.0051416270434856415, -0.012529971078038216, 0.000053248542826622725, 0.020701168105006218, 0.03121059574186802, 0.009460151195526123, -0.013423135504126549, 0.00825471244752407, 0.016252772882580757, 0.05748997628688812, 0.01054981630295515, -0.008661859668791294, 0.014462064951658249, -0.016603616997599602, -0.0016897807363420725, -0.016628330573439598, -0.0032661946024745703, -0.018997058272361755, -0.0005141068249940872, -0.011233092285692692, 0.004281947389245033, 0.03451007232069969, 0.013746621087193489, 0.030503781512379646, -0.036271583288908005, -0.018325258046388626, 0.06943101435899734, -0.048333220183849335, -0.0005976624088361859, -0.037336211651563644, 0.0003589772095438093, 0.001371480175293982, 0.009982578456401825, -0.016547277569770813, -0.02129780501127243, -0.018632469698786736, 0.00735071487724781, -0.05450807511806488, -0.0299046840518713, 0.017711035907268524, -0.01561189629137516, -0.0034941821359097958, 0.031952351331710815, 0.016009829938411713, 0.010773367248475552, -0.011234248988330364, 0.01012811716645956, -0.03953929990530014, -0.008785909041762352, 0.0061944578774273396, -0.0014779039192944765, 0.007620682008564472, 0.0044312141835689545, -0.01792101562023163, 0.01264510303735733, -0.03905092924833298, -0.019155677407979965, 0.0003759958199225366, 0.008284550160169601, 0.02264251932501793, -0.019237518310546875, 0.015469263307750225, 0.04484442248940468, 0.015652891248464584, -1.2748805566786814e-8, -0.01068746019154787, -0.051406677812337875, -0.0204237662255764, 0.0024411454796791077, 0.03102358616888523, 0.005950570106506348, -0.006434624549001455, 0.005655368324369192, -0.01486753486096859, 0.023983987048268318, 0.04080579802393913, -0.039420660585165024, 0.02178964763879776, 0.017395826056599617, 0.03920463100075722, -0.007280013058334589, -0.0001379643363179639, 0.004860830493271351, -0.0016139938961714506, -0.046953778713941574, 0.019800730049610138, 0.056924495846033096, -0.0018343999981880188, -0.011650887317955494, -0.018975889310240746, -0.02203579619526863, 0.0026218672282993793, -0.08152816444635391, -0.031940311193466187, -0.021285980939865112, 0.052032649517059326, -0.009077164344489574, -0.08143341541290283, -0.004187745042145252, -0.0017417720519006252, -0.014778670854866505, -0.0028763858135789633, 0.003821195801720023, 0.03141815587878227, -0.002980101155117154, -0.020548878237605095, -0.005685282871127129, 0.022115789353847504, -0.03203575685620308, -0.030420497059822083, -0.031193513423204422, -0.013977056369185448, -0.009983132593333721, 0.020659130066633224, -0.009758505038917065, 0.0026934323832392693, 0.046571627259254456, 0.009167545475065708, 0.012013317085802555, 0.008166521787643433, 0.004005642142146826, 0.007664545439183712, 0.050061170011758804, -0.026785362511873245, -0.01876002922654152, -0.013538489118218422, 0.020793739706277847, 0.010300624184310436, -0.026311302557587624 ]
poetry-project-python-not-compatible
https://markhneedham.com/blog/2023/10/05/poetry-project-python-not-compatible
false
2023-10-02 00:44:37
DuckDB: Show a list of views
[ "duckdb", "til" ]
[ "TIL" ]
:icons: font I recently wanted to get a list of the views that I'd created in a DuckDB database and it took me a while to figure out how to do it. So this blog post is for future Mark more than anyone else! We're going to start with the following CSV file: .data/sales.csv [source, csv] ---- date,product_id,quantity,sales_amount 2021-01-01,101,5,50 2021-01-02,102,3,30 2021-02-01,101,4,40 2021-02-02,103,6,60 ---- And now we'll create a table from the https://duckdb.org/docs/api/cli.html[DuckDB CLI^]: [source, sql] ---- CREATE TABLE sales AS SELECT * from 'data/sales.csv'; ---- The next task is to create a view called `monthly_sales` that aggregates the sales by month: [source, sql] ---- CREATE VIEW monthly_sales AS SELECT DATE_TRUNC('MONTH', date) AS month, product_id, SUM(quantity) AS total_quantity, SUM(sales_amount) AS total_sales_amount FROM sales GROUP BY ALL ORDER BY ALL ---- Now that I've created the view, I wanted to figure out how to list the views in my database. It took me a while to figure out how to do this from the docs, but I eventually found the solution on the https://duckdb.org/docs/sql/duckdb_table_functions[DuckDB_% Metadata Functions^] page. To get a list of all the views, we can run this query: [source, sql] ---- FROM duckdb_views(); ---- But that returns a lot of rows as it includes all the internal views as well. To find just the ones that we've defined, we need to add the following `WHERE` clause: [source, sql] ---- FROM duckdb_views() SELECT * EXCLUDE(sql) WHERE NOT internal; ---- .Output [options="header"] |=== | database_name | database_oid | schema_name | schema_oid | view_name | view_oid | internal | temporary | column_count | sales | 992 | main | 994 | monthly_sales | 1006 | false | false | 4 |=== Or, if we want to write even less code, we can query the `duckdb_views` view rather than the function. The view automatically strips out the internal views: [source, sql] ---- FROM duckdb_views SELECT * EXCLUDE(sql); ---- .Output [options="header"] |=== | database_name | database_oid | schema_name | schema_oid | view_name | view_oid | internal | temporary | column_count | sales | 992 | main | 994 | monthly_sales | 1006 | false | false | 4 |=== Job done!
In this post, we'll learn how to get a list of views in DuckDB.
uploads/2023/10/duckdb-views-banner.png
[ -0.007224883884191513, 0.026208406314253807, -0.0031362499576061964, 0.03504369035363197, 0.10921693593263626, 0.003196549601852894, -0.011785226874053478, 0.05067228153347969, -0.022560730576515198, -0.005733303725719452, -0.008080187253654003, 0.007681566756218672, -0.070149265229702, 0.02317078597843647, -0.0011701821349561214, 0.07138603925704956, 0.05840514600276947, 0.026809033006429672, 0.05734400823712349, -0.02000260166823864, 0.016894564032554626, 0.04345807433128357, -0.013292667455971241, 0.05750761926174164, 0.033279694616794586, 0.027567090466618538, 0.016763687133789062, -0.003769498784095049, -0.0517827644944191, -0.010217701084911823, 0.02579759806394577, -0.01703396439552307, 0.0036007477901875973, -0.011272772215306759, 0.007308374159038067, 0.009712272323668003, -0.010314663872122765, 0.003314429894089699, -0.0055237747728824615, 0.006169320549815893, -0.07299284636974335, 0.009872488677501678, -0.0012119896709918976, -0.005779148545116186, -0.05069359391927719, 0.011653007939457893, -0.022972283884882927, 0.030371200293302536, -0.030300848186016083, 0.018384726718068123, -0.05378890037536621, 0.03973398357629776, -0.022960439324378967, -0.023864587768912315, 0.008607575669884682, 0.05061239376664162, 0.03965213894844055, -0.06983516365289688, 0.007184293586760759, -0.026916781440377235, 0.06163790822029114, -0.010813060216605663, 0.0281035415828228, 0.04059287905693054, 0.02122408337891102, 0.0010744569590315223, -0.024330316111445427, 0.04714960977435112, -0.042460884898900986, 0.010215862654149532, 0.020306266844272614, -0.016024474054574966, -0.0471242293715477, -0.005243668332695961, 0.007830006070435047, -0.02874024026095867, -0.016757596284151077, 0.0481683649122715, 0.037022486329078674, 0.03632209450006485, -0.026738926768302917, 0.011181682348251343, 0.007707820739597082, 0.02029326558113098, 0.005055779125541449, -0.06481065601110458, -0.048712048679590225, -0.0014236089773476124, -0.06518232077360153, 0.030634300783276558, 0.022747114300727844, -0.040040772408246994, 0.0034798276610672474, 0.014121665619313717, -0.0268700048327446, -0.022015361115336418, 0.009048279374837875, -0.004247383680194616, 0.012744090519845486, 0.003190118120983243, -0.037592750042676926, -0.040598299354314804, 0.034101713448762894, 0.002595188794657588, -0.08874909579753876, 0.025363175198435783, -0.050817184150218964, -0.008533049374818802, 0.02662225253880024, 0.020295141264796257, -0.022867662832140923, 0.002053217263892293, -0.031010648235678673, -0.006921363528817892, -0.059213168919086456, 0.07169044017791748, 0.02955222688615322, -0.01949743740260601, 0.006662597879767418, 0.004068826325237751, 0.07157683372497559, 0.008660461753606796, -0.01120475772768259, 0.06009893864393234, -0.004693938419222832, 0.01291112881153822, -0.02130257897078991, 0.03724910318851471, -0.004802481271326542, -0.07674496620893478, -0.0290079265832901, 0.022008871659636497, -0.01619948260486126, -0.0005791041767224669, 0.01900242455303669, -0.0430598221719265, 0.0035890203434973955, -0.007788022048771381, 0.047414060682058334, -0.00817169900983572, 0.028938550502061844, -0.03759258612990379, -0.03204384446144104, 0.00012545140634756535, 0.04438941553235054, 0.02572428248822689, 0.007620594464242458, -0.032098282128572464, -0.06821849197149277, 0.024121303111314774, 0.01523244846612215, 0.025638848543167114, 0.04913993552327156, -0.04485300928354263, 0.008074641227722168, 0.10366106033325195, 0.04685148969292641, 0.003926463890820742, 0.010881967842578888, -0.0020838603377342224, 0.05136031284928322, 0.034500427544116974, 0.0035279099829494953, 0.019322041422128677, 0.003095213556662202, -0.02148687094449997, -0.008202780969440937, 0.02400914952158928, -0.02783862128853798, 0.0005772682488895953, -0.059545159339904785, -0.05717356130480766, 0.0759088471531868, -0.01761615462601185, -0.00064997305162251, 0.054244205355644226, 0.07023219019174576, 0.044087156653404236, 0.025040172040462494, 0.03419067710638046, -0.09492527693510056, 0.027596235275268555, -0.02238076739013195, -0.020309966057538986, 0.024429917335510254, -0.006573162507265806, 0.08823878318071365, 0.0408729612827301, 0.016068322584033012, 0.04914974421262741, -0.08351104706525803, -0.08437184244394302, -0.05159487947821617, 0.012608681805431843, 0.030023496598005295, -0.06350536644458771, 0.02175799012184143, 0.07319200783967972, 0.01944630965590477, 0.029362669214606285, -0.0185336172580719, 0.014170272275805473, 0.03340793401002884, -0.030124586075544357, -0.04843561351299286, 0.026362236589193344, 0.022699348628520966, 0.003962692338973284, -0.012323782779276371, 0.011890580877661705, -0.022236483171582222, -0.012340587563812733, 0.03632848337292671, -0.0166837926954031, 0.05352722480893135, 0.024242432788014412, 0.02928640879690647, -0.02064475603401661, -0.0017052603652700782, -0.059319868683815, 0.016568178310990334, 0.04177982360124588, -0.039069730788469315, -0.008520172908902168, -0.0020190663635730743, 0.12184099853038788, 0.05756234750151634, -0.020721329376101494, -0.051298998296260834, 0.019011281430721283, 0.01929636113345623, -0.021385690197348595, 0.030615022405982018, -0.038561008870601654, 0.0015486306510865688, -0.010794791392982006, -0.010186056606471539, -0.012505155988037586, 0.018975378945469856, -0.033677566796541214, 0.030106376856565475, 0.03626633808016777, -0.004634935408830643, 0.050955407321453094, 0.026627030223608017, -0.0632498562335968, -0.004900490865111351, -0.01627243310213089, -0.04389975592494011, -0.007493429817259312, 0.03035443089902401, 0.0004456281312741339, 0.041406963020563126, -0.04254540055990219, -0.0005180893349461257, -0.01970934122800827, -0.03729483112692833, 0.04450152441859245, 0.04261000454425812, 0.06007806211709976, -0.049225058406591415, 0.05637664720416069, 0.003976751118898392, 0.02503553219139576, -0.03943541273474693, -0.03809814155101776, -0.05277721956372261, 0.011232567019760609, 0.009363626129925251, 0.049077440053224564, 0.012838360853493214, 0.0014183823950588703, -0.001600135350599885, 0.010475323535501957, 0.0010845521464943886, -0.008604040369391441, 0.041807323694229126, -0.012873990461230278, -0.01979907415807247, -0.07223323732614517, -0.02488616108894348, 0.06271665543317795, -0.026889745146036148, -0.06729432940483093, 0.015660420060157776, -0.06447667628526688, 0.06074386462569237, -0.04770433530211449, -0.018040133640170097, 0.011447537690401077, 0.02600894123315811, 0.043919455260038376, 0.008211844600737095, 0.005106495227664709, 0.06877346336841583, 0.014617747627198696, -0.0006853509694337845, 0.006712446454912424, 0.00788041390478611, 0.024312442168593407, 0.0006227500853128731, -0.026612073183059692, 0.07733778655529022, -0.002729996107518673, 0.003643791191279888, -0.038915928453207016, 0.01666262373328209, -0.01963081955909729, -0.2561326026916504, 0.0285166148096323, -0.03351156786084175, -0.0347728505730629, 0.020071981474757195, -0.04552416875958443, 0.016102833673357964, -0.04855305328965187, -0.008780285716056824, 0.003759954124689102, -0.026353327557444572, -0.023114312440156937, -0.0381200946867466, 0.044151853770017624, 0.004572437610477209, 0.03280036151409149, 0.034628357738256454, -0.05356229841709137, 0.005371004808694124, 0.04745137691497803, 0.022046847268939018, -0.07482463121414185, 0.001403922215104103, 0.033393122255802155, 0.0204720888286829, 0.04846369847655296, -0.06041128933429718, 0.01967000588774681, -0.05081188678741455, -0.02777056023478508, 0.0029113672208040953, 0.002699623117223382, -0.008426787331700325, -0.015185607597231865, -0.02745071053504944, -0.0190912913531065, 0.0321497805416584, -0.01720375381410122, 0.027673089876770973, -0.004180057439953089, -0.02301759086549282, -0.042680948972702026, 0.00033002771669998765, 0.028677325695753098, 0.09217528253793716, 0.001415833248756826, -0.06313414871692657, -0.00010962740634568036, -0.03702745959162712, 0.07922805100679398, -0.019190466031432152, -0.04129815101623535, -0.004839134402573109, 0.03552573174238205, 0.009578065015375614, -0.016503307968378067, 0.012502368539571762, 0.002795642940327525, -0.037088777869939804, -0.02366855926811695, 0.025842899456620216, -0.04452890530228615, 0.005127036944031715, -0.030137617141008377, 0.0032299652229994535, -0.091769739985466, -0.03915470466017723, -0.027881817892193794, 0.07191809266805649, 0.053714968264102936, -0.023148275911808014, 0.005924064200371504, -0.03998459503054619, -0.11266687512397766, 0.006425512954592705, -0.026160016655921936, 0.008986986242234707, -0.01960926689207554, -0.03476203978061676, 0.023903662338852882, -0.0035458013880997896, -0.015507892705500126, 0.028998346999287605, 0.04125334322452545, 0.011102668941020966, -0.053344983607530594, 0.012962553650140762, -0.00370233366265893, -0.029947875067591667, -0.004698252771049738, 0.058868516236543655, -0.054745014756917953, 0.021973807364702225, 0.012934141792356968, -0.02045562118291855, 0.030429087579250336, 0.013539327308535576, -0.003571463283151388, 0.02626410685479641, 0.0013335567200556397, 0.04593688249588013, -0.042161956429481506, -0.0003474583209026605, -0.037653904408216476, -0.03810444474220276, -0.028949668630957603, -0.04326764866709709, 0.02973915822803974, 0.014988366514444351, 0.01372495573014021, -0.014136903919279575, -0.025468867272138596, 0.011153356172144413, -0.07369893789291382, -0.011739259585738182, -0.01068690326064825, 0.03463386371731758, 0.013498542830348015, 0.016215410083532333, -0.018729811534285545, -0.054397616535425186, 0.009844789281487465, -0.01544671319425106, -0.020127059891819954, -0.07241897284984589, -0.011878320015966892, 0.0022664836142212152, -0.007433242164552212, -0.010357524268329144, 0.012593932449817657, -0.03400058671832085, -0.00789431482553482, 0.021788928657770157, -0.03658968210220337, 0.0468936450779438, -0.029284365475177765, -0.03382903337478638, -0.015506250783801079, -0.012212706729769707, -0.0012023983290418983, -0.00997545663267374, -0.004910262767225504, 0.02037481591105461, 0.04406500607728958, 0.040101151913404465, 0.0038370720576494932, 0.00532043632119894, 0.029174553230404854, -0.001673384802415967, 0.04419538378715515, -0.02342742122709751, -0.030579833313822746, 0.015894735231995583, -0.0387004129588604, -0.04209049418568611, -0.029178038239479065, 0.03688279911875725, -0.029853465035557747, -0.0018445769092068076, -0.03908311575651169, -0.004686513915657997, -0.03973056375980377, -0.004014122765511274, -0.000786511751357466, -0.009771248325705528, 0.05148481950163841, 0.012092487886548042, 0.03425884619355202, 0.006876407656818628, 0.008894951082766056, 0.0006068511283956468, 0.005524397827684879, -0.045097872614860535, 0.014957008883357048, 0.02363358810544014, -0.024023083969950676, 0.031886108219623566, 0.023887034505605698, 0.03002825938165188, 0.028982600197196007, -0.0009796518133953214, -0.01785820536315441, 0.02860836870968342, 0.02247854880988598, 0.03390307351946831, 0.05094912275671959, -0.036473773419857025, -0.033795565366744995, 0.001969639677554369, -0.042777903378009796, -0.00761447986587882, -0.01679220050573349, -0.00943831168115139, -0.030342258512973785, -0.02342897839844227, -0.06871815770864487, 0.031225506216287613, 0.030184714123606682, -0.0005289585678838193, 0.00197811471298337, -0.021702712401747704, -0.02237573079764843, -0.03295932710170746, 0.056567661464214325, 0.03742217645049095, -0.06660773605108261, 0.013641320168972015, 0.008529155515134335, -0.02576758898794651, 0.010317799635231495, 0.03283094987273216, -0.03989244997501373, -0.019308634102344513, 0.0015935621922835708, 0.028354158625006676, -0.003790268674492836, 0.024485869333148003, -0.018378837034106255, 0.008942632004618645, -0.0011433274485170841, 0.027350300922989845, -0.0008795130997896194, 0.02251392789185047, -0.013914031907916069, -0.0037518306635320187, 0.02067715674638748, -0.042507246136665344, 0.005380684044212103, 0.008441735990345478, -0.01777617260813713, 0.01487169973552227, -0.03246442228555679, 0.02990950457751751, 0.005414295941591263, -0.007716241758316755, -0.043510984629392624, -0.05503730848431587, -0.00491132028400898, 0.010433192364871502, 0.05385541170835495, -0.0357079841196537, -0.014868258498609066, -0.028975078836083412, -0.017057854682207108, -0.022815154865384102, -0.0024532373063266277, -0.01621631160378456, -0.025922833010554314, 0.05411598086357117, 0.041975148022174835, 0.01227691862732172, 0.022114599123597145, -0.0038781824987381697, -0.02651759423315525, 0.05407341569662094, -0.016713885590434074, -0.026929043233394623, -0.014053854160010815, -0.0539618544280529, 0.03649229183793068, -0.002914831507951021, 0.0730413943529129, -0.03660430759191513, 0.06807826459407806, 0.028853610157966614, 0.013394547626376152, 0.03038608841598034, 0.00027261272771283984, 0.0696103498339653, -0.009001282043755054, -0.005313077941536903, -0.09050561487674713, -0.00935203954577446, 0.01245877891778946, 0.009587652049958706, 0.004082298371940851, 0.005154687911272049, -0.04870368912816048, 0.0339062325656414, -0.06388387829065323, -0.03768044710159302, 0.028205668553709984, -0.006415328476577997, 0.023361792787909508, 0.020519863814115524, -0.05529213696718216, 0.013750998303294182, 0.08444324880838394, -0.00149718695320189, -0.029226353392004967, -0.018821440637111664, 0.07885918021202087, -0.015349271707236767, 0.0525854155421257, -0.025036823004484177, -0.01301584392786026, 0.07929655909538269, 0.009209128096699715, 0.00838406290858984, 0.0555601641535759, -0.013526789844036102, 0.034603916108608246, 0.012567034922540188, -0.02265239879488945, -0.010743276216089725, 0.053743232041597366, -0.03164096549153328, -0.05635606870055199, -0.004863210953772068, 0.02491944096982479, -0.011361557990312576, -0.07517548650503159, 0.07506238669157028, 0.006489257328212261, -0.021122509613633156, -0.043707963079214096, -0.007966876961290836, -0.016901370137929916, 0.0037107293028384447, -0.03244185075163841, -0.010831140913069248, -0.05496316775679588, 0.061441462486982346, 0.0003558347234502435, 0.01340082474052906, 0.05064728856086731, 0.018109047785401344, 0.0025233228225260973, -0.014086205512285233, 0.05539378151297569, 0.07561526447534561, 0.05302736163139343, 0.025361932814121246, 0.055028773844242096, -0.0455985888838768, -0.0468439981341362, -0.005386678036302328, -0.027604753151535988, -0.033444035798311234, -0.041360560804605484, -0.023779479786753654, 0.08447249233722687, 0.012214144691824913, 0.04102293774485588, 0.00531294010579586, -0.004264302086085081, -0.026652205735445023, -0.012590639293193817, 0.039220310747623444, 0.039288830012083054, 0.005817634519189596, -0.007820498198270798, 0.00483443308621645, -0.02645052783191204, 0.03703538328409195, 0.008555627427995205, -0.023531826213002205, 0.009870698675513268, 0.00306618376635015, 0.0237662885338068, -0.011549842543900013, 0.051807962357997894, 0.0618525929749012, -0.01801513135433197, -0.009632346220314503, -0.01848282478749752, 0.018030263483524323, 0.0011772565776482224, 0.016773290932178497, -0.0069327885285019875, -0.031204519793391228, -0.015290400013327599, -0.028681041672825813, -0.007821306586265564, -0.025751713663339615, -0.04059738665819168, 0.03596549853682518, -0.004339210223406553, -0.03084380365908146, 0.03814379870891571, -0.004633250180631876, -0.05368112400174141, -0.06185942515730858, -0.05219900980591774, -0.03815634921193123, -0.06255502998828888, -0.023675423115491867, 0.017838580533862114, -0.025651417672634125, -0.03996550291776657, -0.03413015231490135, -0.02173883467912674, -0.023401426151394844, 0.0015306813875213265, -0.004959826823323965, -0.05536887049674988, 0.001135840080678463, 0.02877454273402691, 0.016823822632431984, 0.00798442866653204, 0.05244806408882141, -0.020207049325108528, -0.02536906488239765, -0.01653330959379673, 0.01866077445447445, 0.053028084337711334, -0.00020508412853814662, 0.04124682769179344, -0.06551994383335114, 0.028320346027612686, 0.004266675561666489, -0.009575818665325642, -0.07963043451309204, 0.04719989001750946, 0.043644193559885025, -0.024265792220830917, 0.06463810801506042, -0.017797432839870453, 0.00367547944188118, -0.008571352809667587, -0.02276834100484848, 0.011191151104867458, 0.010385055094957352, 0.044419120997190475, -0.039185862988233566, 0.06997907906770706, 0.03639474883675575, -0.0047971890307962894, -0.05208999291062355, 0.009868938475847244, -0.038121547549963, 0.020703908056020737, -0.040390558540821075, -0.005029196850955486, -0.06581796705722809, -0.06470447778701782, -0.03147508576512337, 0.02704925835132599, -0.041879333555698395, -0.03460808843374252, -0.01451210305094719, 0.010308214463293552, -0.016682669520378113, 0.022596480324864388, -0.06565271317958832, -0.004481066018342972, -0.026982732117176056, -0.02343081496655941, -0.05200081691145897, 0.04386163130402565, 0.004524899646639824, 0.00776112824678421, -0.0027762760873883963, -0.05669618397951126, -0.022059684619307518, -0.021889347583055496, 0.004592502489686012, 0.056544821709394455, 0.0016826438950374722, 0.03155764564871788 ]
[ -0.04816194996237755, -0.05428585037589073, -0.043296169489622116, -0.02965979464352131, 0.039533648639917374, -0.0014097957173362374, 0.0035518850199878216, -0.0022846912033855915, 0.014036105014383793, 0.025163644924759865, -0.00683260103687644, -0.034873418509960175, 0.020219001919031143, -0.024248240515589714, 0.02679494395852089, -0.008383277803659439, 0.00301878503523767, -0.07525020837783813, -0.022558264434337616, 0.0657447874546051, -0.03938641771674156, -0.024714717641472816, -0.03773431479930878, -0.021346621215343475, 0.017422039061784744, 0.048513006418943405, 0.03194591775536537, -0.0579843744635582, 0.0017354607116430998, -0.19147323071956635, 0.007381084840744734, -0.010273899883031845, 0.06192145496606827, -0.031317804008722305, 0.05932329595088959, -0.010207248851656914, 0.053503211587667465, 0.02253316529095173, 0.01782171055674553, 0.024767670780420303, 0.026934664696455002, -0.0050775036215782166, -0.0523824617266655, -0.03718483820557594, 0.04598188400268555, -0.01470752339810133, 0.004621732514351606, -0.01102446485310793, 0.027544770389795303, 0.00008360494393855333, -0.039771806448698044, 0.010065359994769096, -0.03684140369296074, -0.005107897333800793, -0.01767939329147339, 0.00653367955237627, 0.0164888147264719, 0.031833548098802567, -0.007772486656904221, 0.0037616281770169735, 0.05681690201163292, -0.007592667825520039, -0.13144944608211517, 0.1360519379377365, -0.039043452590703964, 0.06846132129430771, -0.01679404079914093, -0.01074040587991476, -0.01795358397066593, 0.02881697751581669, -0.006974124815315008, -0.0615205280482769, -0.03256184980273247, 0.027688205242156982, 0.001650748890824616, -0.07238946110010147, -0.02838716469705105, 0.016740696504712105, 0.014984972774982452, -0.02557108923792839, -0.06523887813091278, 0.020244283601641655, -0.026790760457515717, -0.010958429425954819, 0.01614130660891533, 0.035725031048059464, 0.016498373821377754, 0.027400821447372437, 0.022105854004621506, 0.024758659303188324, 0.026261404156684875, 0.0052993763238191605, 0.03167736902832985, 0.030795002356171608, -0.07309842854738235, -0.01018446870148182, 0.017800835892558098, 0.015305264852941036, 0.0314757414162159, 0.3927316963672638, -0.031083235517144203, 0.02680320478975773, 0.009038609452545643, -0.050709642469882965, -0.016558224335312843, 0.0007894503651186824, 0.01994747295975685, -0.02572285383939743, 0.019317718222737312, 0.009829671122133732, -0.017972582951188087, 0.017883513122797012, 0.04451937600970268, -0.11946399509906769, -0.03154310956597328, -0.03493814915418625, -0.028100846335291862, 0.0045519801788032055, 0.008928181603550911, -0.0016862007323652506, 0.026437552645802498, 0.010723975487053394, 0.0636797770857811, 0.016175439581274986, 0.002000189619138837, 0.0020225844345986843, 0.02885131724178791, 0.0793675035238266, 0.0500662587583065, -0.024153850972652435, 0.03937650844454765, -0.011123317293822765, -0.07125254720449448, -0.015746574848890305, 0.02512499690055847, 0.007292973343282938, 0.0473044291138649, -0.009830673225224018, 0.016863202676177025, -0.009160717949271202, 0.008653190918266773, -0.032743316143751144, 0.060386963188648224, -0.015013397671282291, -0.06714850664138794, 0.12500208616256714, 0.004627974703907967, -0.02031727135181427, -0.07486490160226822, -0.04982719570398331, -0.022286251187324524, 0.026440393179655075, 0.05831712856888771, -0.03561190143227577, 0.009059234522283077, 0.05374402180314064, 0.06599410623311996, -0.006652805022895336, -0.0869583860039711, -0.02389664202928543, -0.0064326184801757336, -0.01172645017504692, -0.03564834967255592, 0.007488650269806385, 0.04589173570275307, -0.15362219512462616, -0.027072681114077568, 0.03676512837409973, 0.015073095448315144, -0.038223788142204285, -0.02048819698393345, 0.015730490908026695, -0.0934046059846878, 0.028886212036013603, 0.10781777650117874, -0.0015425569145008922, -0.013182499445974827, 0.022427061572670937, 0.030394278466701508, 0.01360756903886795, -0.01231630239635706, -0.010196791961789131, -0.03221028298139572, -0.02919531986117363, -0.03661489114165306, -0.0919317975640297, -0.0396714061498642, -0.002865683753043413, -0.00039436985389329493, -0.06088763102889061, -0.019905878230929375, -0.06760738790035248, -0.07908374071121216, 0.08227315545082092, -0.028907030820846558, -0.04084383323788643, 0.04022543877363205, 0.03164893016219139, 0.06460966914892197, -0.02317162975668907, 0.02793177403509617, -0.0455750934779644, -0.03613738343119621, -0.0006075417622923851, -0.014151361770927906, 0.012027310207486153, 0.05452524498105049, -0.042936671525239944, 0.07618724554777145, 0.021326608955860138, -0.06590389460325241, 0.054922401905059814, -0.02150660753250122, 0.015900563448667526, -0.007435938809067011, -0.02043130435049534, -0.014294503256678581, -0.016208099201321602, 0.0002753945882432163, 0.01172680500894785, 0.014095955528318882, -0.046757329255342484, 0.0027707796543836594, -0.3282180726528168, -0.004564865957945585, -0.034920740872621536, -0.03235138580203056, -0.010924936272203922, -0.05738808959722519, -0.004098516423255205, -0.016370994970202446, -0.003881131298840046, 0.057457152754068375, 0.06433179974555969, -0.03586755320429802, 0.018957087770104408, -0.10125850886106491, -0.02278617024421692, 0.03771798685193062, -0.034498803317546844, -0.04905414581298828, -0.04238482192158699, -0.014376003295183182, 0.01928386092185974, -0.004057961981743574, -0.029158152639865875, -0.07497914880514145, 0.014379086904227734, -0.0100504569709301, 0.10158514976501465, -0.005980723537504673, 0.037892669439315796, -0.06379683315753937, 0.10340280830860138, 0.03297952935099602, -0.0442473404109478, -0.05778072029352188, 0.018041951581835747, -0.06099782884120941, -0.04911937192082405, 0.03322874754667282, -0.011068624444305897, -0.035457246005535126, -0.03510681912302971, 0.011368906125426292, -0.017368294298648834, -0.027258258312940598, 0.0005376806948333979, -0.008262853138148785, 0.023706980049610138, -0.004692269489169121, -0.01818794012069702, 0.06862164288759232, -0.011358258314430714, -0.009182375855743885, 0.03330068290233612, 0.04004799947142601, 0.0087599977850914, -0.006011262536048889, -0.0753319188952446, -0.012622805312275887, 0.015044386498630047, 0.030309777706861496, 0.043641507625579834, 0.03000372275710106, 0.025558676570653915, -0.04630330577492714, -0.00349064776673913, -0.01920115016400814, -0.019071275368332863, 0.01243583858013153, 0.025924334302544594, -0.0077829076908528805, -0.05860011652112007, 0.04010333493351936, -0.023866988718509674, 0.043725792318582535, 0.06884618103504181, 0.025677813217043877, 0.014627180062234402, 0.010381565429270267, 0.010135095566511154, 0.005934609100222588, 0.0003979093162342906, -0.05807696282863617, 0.0544210784137249, -0.018550826236605644, 0.01704503409564495, 0.0876973420381546, 0.020356955006718636, -0.042292654514312744, 0.046894293278455734, -0.011406755074858665, -0.008734035305678844, -0.02923426404595375, -0.036980465054512024, -0.038105159997940063, 0.08870504051446915, 0.022326374426484108, -0.22450026869773865, 0.012877452187240124, 0.045122262090444565, 0.08548134565353394, 0.03598051518201828, 0.030572380870580673, 0.03241216763854027, -0.027807755395770073, 0.027176735922694206, -0.01910296641290188, 0.014118659310042858, 0.018646996468305588, 0.013290708884596825, -0.038103967905044556, -0.004514351487159729, -0.018659792840480804, 0.05823016166687012, -0.003460839856415987, 0.05168585851788521, 0.034680064767599106, 0.018063204362988472, -0.03328875079751015, 0.17250776290893555, 0.07473514974117279, -0.0015955065609887242, -0.0006793317734263837, -0.011557054705917835, -0.0178028866648674, 0.04356777295470238, 0.055041708052158356, 0.0206416305154562, -0.041089754551649094, 0.09660366177558899, 0.026782315224409103, 0.037006501108407974, 0.014878927730023861, -0.04001511633396149, 0.06470172107219696, 0.014288114383816719, -0.037429675459861755, 0.0017953558126464486, 0.03271382674574852, -0.05000699684023857, 0.0690055638551712, 0.07105997949838638, 0.02753664366900921, -0.019917577505111694, -0.019363243132829666, -0.02894306182861328, -0.011334488168358803, -0.022560859099030495, -0.07046885788440704, -0.013733136467635632, 0.012170810252428055, 0.01998504064977169, 0.04094567522406578, 0.05266660079360008, 0.02903968095779419, 0.020730510354042053, 0.018476566299796104, -0.011528775095939636, -0.04673111066222191, 0.07116833329200745, 0.04877997189760208, 0.012574189342558384 ]
[ -0.004905637353658676, 0.014481071382761002, -0.04249934107065201, 0.030686788260936737, -0.0076444814912974834, 0.02647647261619568, 0.022158564999699593, -0.012113816104829311, -0.0011686813086271286, -0.03667871281504631, -0.01910369098186493, 0.0034006135538220406, 0.023872660472989082, -0.0679132491350174, 0.015756739303469658, -0.023192232474684715, 0.004732763394713402, -0.04612571373581886, 0.04266021400690079, 0.027908658608794212, -0.034518565982580185, 0.055264297872781754, -0.0074110860005021095, 0.025531232357025146, -0.019936511293053627, -0.004643672611564398, -0.04061361029744148, -0.026613056659698486, 0.012779468670487404, -0.1318214237689972, -0.049390170723199844, 0.0014805261744186282, -0.0037943925708532333, 0.04960537329316139, -0.013847473077476025, -0.05526353418827057, 0.029268918558955193, 0.013695989735424519, 0.0189465694129467, -0.017024999484419823, -0.011666410602629185, -0.04237157106399536, -0.047029342502355576, 0.008798545226454735, 0.007849608547985554, -0.02381221018731594, -0.06553555279970169, 0.014436911791563034, 0.023683026432991028, 0.035813894122838974, -0.07370857894420624, 0.01515017170459032, -0.03460096940398216, 0.012866153381764889, 0.0332515649497509, 0.02510141022503376, -0.01071642991155386, 0.011914582923054695, 0.011523927561938763, 0.01097327284514904, 0.012789621949195862, -0.032755520194768906, 0.003230278380215168, 0.0041229743510484695, 0.0010939034400507808, -0.038171734660863876, -0.03313528373837471, 0.00011236077989451587, -0.017364026978611946, -0.020011046901345253, -0.00948876142501831, -0.018832582980394363, -0.03585558757185936, -0.039161257445812225, -0.04758935421705246, 0.0008470874163322151, 0.028982430696487427, -0.056166309863328934, 0.0176880843937397, 0.023938780650496483, -0.06329706311225891, 0.03413283824920654, -0.03430870920419693, 0.01803559437394142, 0.009082673117518425, -0.027791928499937057, 0.005816920660436153, 0.00017207791097462177, 0.009878299199044704, -0.010401013307273388, -0.007877038791775703, 0.0016710052732378244, -0.0007610018947161734, 0.01205455232411623, -0.10194063931703568, -0.003882387652993202, 0.02379036694765091, -0.032246869057416916, 0.01576216332614422, 0.8136205077171326, -0.006513641215860844, 0.012101661413908005, 0.029659545049071312, 0.002069725189357996, -0.02660355344414711, -0.0028507469687610865, 0.023039886727929115, -0.02754012495279312, 0.0020638450514525175, -0.019919587299227715, 0.004914574790745974, 0.027505043894052505, -0.004534740932285786, -0.010638062842190266, 0.022883635014295578, 0.020085319876670837, -0.010920509696006775, -0.03931410238146782, 0.0021338784135878086, -0.024935364723205566, 0.04226085916161537, 0.04155298322439194, 0.005170454271137714, -0.011364455334842205, 0.004829209763556719, -0.13658392429351807, 0.01502395048737526, -6.560242954107178e-33, 0.014365541748702526, -0.04844100400805473, 0.03970930352807045, -0.012370378710329533, 0.05556929484009743, 0.05038146674633026, 0.01165278721600771, 0.034135837107896805, 0.004883001558482647, 0.031137527897953987, 0.0314638614654541, 0.0036711229477077723, -0.025210021063685417, -0.02707393281161785, 0.06858038157224655, 0.010557068511843681, -0.010957536287605762, 0.03762879595160484, 0.023947449401021004, -0.013150575570762157, 0.06261348724365234, 0.03925183787941933, 0.021880365908145905, 0.031325362622737885, -0.01718170940876007, 0.04274652153253555, 0.009152146987617016, -0.010526753030717373, -0.02350492589175701, -0.017122386023402214, 0.007459647487848997, -0.006669692695140839, 0.0012642958899959922, -0.053986407816410065, -0.019671738147735596, -0.060958925634622574, -0.013098126277327538, -0.016096608713269234, -0.002553890459239483, 0.009207411669194698, -0.049984097480773926, -0.002649556379765272, -0.01985003426671028, -0.012573196552693844, -0.04795197769999504, 0.05514806509017944, 0.023006750270724297, 0.03102882392704487, -0.002072676783427596, 0.006487397942692041, -0.04189606010913849, -0.01558803953230381, 0.005425629671663046, 0.007537121884524822, 0.0023224668111652136, 0.011965617537498474, -0.006507387850433588, -0.03385978564620018, 0.009262332692742348, -0.05097097530961037, -0.04307412728667259, -0.02728446200489998, 0.02161332219839096, -0.010964467190206051, -0.039510954171419144, 0.02373204380273819, 0.03938315436244011, 0.011002485640347004, 0.02237590216100216, -0.030175503343343735, -0.0038122686091810465, 0.026341740041971207, 0.01302644144743681, -0.055716224014759064, 0.04884721711277962, -0.01720047928392887, 0.009644645266234875, 0.017605610191822052, 0.0475400947034359, 0.02289997600018978, 0.02902880869805813, 0.04477793723344803, 0.003630185266956687, 0.001516797230578959, -0.024427514523267746, -0.006928466260433197, 0.012488659471273422, 0.03959419205784798, -0.0015683238161727786, -0.02089567296206951, 0.02014974318444729, 0.02822207100689411, 0.03306901082396507, -0.022437268868088722, -0.04547693207859993, 6.077917050813654e-33, 0.026103980839252472, -0.00869747530668974, -0.005438162013888359, -0.022673960775136948, 0.0328555628657341, -0.04667620360851288, -0.005805792286992073, 0.03125656768679619, -0.008373880758881569, -0.014953617006540298, -0.03965085744857788, 0.018122082576155663, -0.031527724117040634, 0.045480962842702866, 0.02714994177222252, 0.03252851590514183, 0.03442462161183357, -0.002495863474905491, -0.013724622316658497, 0.02132485993206501, 0.02983546443283558, 0.01814175210893154, 0.029293972998857498, 0.04715457931160927, 0.004845353774726391, 0.0345478318631649, -0.020200060680508614, -0.012344524264335632, 0.004578780848532915, 0.024981796741485596, -0.0048178937286138535, 0.000431493652286008, 0.004658475983887911, -0.01588422805070877, -0.06898507475852966, -0.009149915538728237, 0.003038028720766306, -0.005646225530654192, 0.01482307631522417, -0.007007481064647436, 0.031362127512693405, 0.009668746963143349, 0.011446448974311352, 0.008837848901748657, 0.008616291917860508, -0.02219148725271225, 0.03194552659988403, -0.00865081325173378, 0.026048533618450165, 0.002696128562092781, 0.01758350245654583, 0.011844653636217117, -0.03412892669439316, 0.033912744373083115, -0.0038700273726135492, 0.01728924736380577, -0.010277355089783669, 0.017112331464886665, -0.03369009867310524, -0.053429290652275085, -0.03145110234618187, 0.024693502113223076, -0.05342147871851921, 0.01048146653920412, -0.007381828036159277, 0.012292164377868176, -0.025088312104344368, -0.022343719378113747, 0.02597733773291111, -0.0729198008775711, -0.01862289197742939, -0.029514087364077568, 0.009106578305363655, 0.04537970945239067, 0.014657906256616116, 0.013258523307740688, -0.028782419860363007, -0.04455636814236641, 0.020479729399085045, 0.06367404013872147, -0.00014842611562926322, -0.025158414617180824, 0.010376425459980965, 0.01885267347097397, -0.04026966542005539, 0.004786110017448664, -0.05090205743908882, -0.04486081749200821, 0.014886273071169853, 0.004887805320322514, -0.0660577192902565, -0.024721581488847733, -0.017079738900065422, 0.041177570819854736, 0.014650293625891209, -1.2508423630208654e-8, -0.0069923619739711285, 0.013044370338320732, -0.0019080709898844361, 0.0206447783857584, 0.029412444680929184, -0.033604882657527924, -0.026385735720396042, -0.023298682644963264, 0.0034551359713077545, 0.0010970582952722907, 0.013110202737152576, -0.00730769382789731, 0.017645742744207382, 0.04588421434164047, -0.008359638042747974, -0.01564338058233261, 0.022963084280490875, -0.024911658838391304, 0.007447574287652969, -0.048868171870708466, -0.0032597004901617765, 0.05070662871003151, 0.02558877319097519, -0.012337951920926571, -0.0008759837946854532, 0.0061713350005447865, -0.02518901601433754, -0.07119599729776382, 0.024982109665870667, 0.007475832477211952, 0.006443040911108255, -0.005072371568530798, -0.02022087760269642, 0.00036487297620624304, 0.006495936773717403, -0.0554257370531559, 0.029896583408117294, 0.03892448544502258, 0.00806442927569151, 0.012998065911233425, -0.024855900555849075, -0.023809606209397316, 0.011585953645408154, -0.012419532053172588, -0.030780641362071037, -0.020253432914614677, -0.033317796885967255, 0.012021324597299099, 0.03876969590783119, -0.05056607723236084, 0.03567604720592499, -0.04359358549118042, 0.021461712196469307, -0.0069475723430514336, -0.000589738308917731, 0.021155379712581635, 0.019047925248742104, -0.005195774137973785, -0.007158162537962198, 0.0005724437069147825, 0.009082888253033161, -0.0032837523613125086, 0.029738930985331535, -0.02055083028972149 ]
duckdb-list-show-views
https://markhneedham.com/blog/2023/10/02/duckdb-list-show-views
false
2023-10-18 00:44:37
Ollama: Running GGUF Models from Hugging Face
[ "ollama", "hugging-face", "gguf", "til" ]
[ "TIL" ]
:icons: font https://medium.com/@phillipgimmi/what-is-gguf-and-ggml-e364834d241c[GGUF (GPT-Generated Unified Format)^] has emerged as the de facto standard file format for storing large language models for inference. We are starting to see a lot of models in this format on Hugging Face, many of them uploaded by https://huggingface.co/TheBloke[The Bloke^]. One cool thing about GGUF models is that it's super easy to get them running on your own machine using https://ollama.ai/[Ollama^]. In this blog post, we're going to look at how to download a GGUF model from Hugging Face and run it locally. [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/7BH4C6-HP14?si=jZMYLcOot5ItDyNZ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> ++++ ==== There are over 1,000 models on Hugging Face that match the search term `GGUF`, but we're going to download the https://huggingface.co/TheBloke/MistralLite-7B-GGUF[TheBloke/MistralLite-7B-GGUF^] model. We'll do this using the Hugging Face Hub CLI, which we can install like this: [source, bash] ---- pip install huggingface-hub ---- We can then download one of the MistalLite models by running the following: [source, bash] ---- huggingface-cli download \ TheBloke/MistralLite-7B-GGUF \ mistrallite.Q4_K_M.gguf \ --local-dir downloads \ --local-dir-use-symlinks False ---- Make sure you specify the name of the `gguf` file that you want to download, otherwise, it will download all of them! You can find a list of the model files to choose from on the https://huggingface.co/TheBloke/MistralLite-7B-GGUF/tree/main[files and versions^] page. This file is over 4GB in size, so connect your ethernet cable if you're going to try this at home. Once it's done, you'll have the file in your `downloads` directory. We're then going to create a `Modelfile` with the following contents: .Modelfile [source, dockerfile] ---- FROM ./downloads/mistrallite.Q4_K_M.gguf ---- We then build an Ollama model using the following command: [source, dockerfile] ---- ollama create mistrallite -f Modelfile ---- And now let's see if we can get the model to tell us all about the Grafana visualisation tool: [source, dockerfile] ---- ollama run mistrallite "What is Grafana?" ---- The result you get will be different to what I get as these models are stochastic, but this is the output I got on one of the tries: .Output [source, text] ---- Grafana is an open source tool that allows the user to query, visualize and alert on time series data. It can be used as a drop in replacement for other monitoring tools such as Cacti, Munin or RRDtool. Grafana does not store any of the time series data itself but will connect to an external data source and display information in graphs and charts. Grafana’s flexible query editor allows users to extract the information they need from their time series data using the most popular query languages such as PromQL, InfluxDB Query Language (IL) and Graphite. It is even possible to create your own custom queries. Grafana also supports a number of plugins which can extend its functionality or connect it to other systems such as Slack, HipChat, PagerDuty and others. Why should I use Grafana? One major benefit of using Grafana is that it provides the user with the ability to visualize their time series data in a variety of ways including bar graphs, line charts, pie charts and more. This makes it easier for the user to identify patterns and trends in the data which can help them make better decisions. Another advantage of using Grafana is that it provides users with a centralized place where they can view all of their time series data from multiple sources. This makes it easy for users to compare data from different systems or even between different time periods. In addition, Grafana offers some unique features such as the ability to set alerts based on specific conditions being met in the data. This allows users to be proactive in identifying potential issues before they become a problem. ---- I don't think this is the greatest model I've ever used, but it is cool that we now have a choice of over 1,000 models on Hugging Face to run on our own machines.
In this post, we'll learn how to run a GGUF model from Hugging Face on our machine using Ollama.
uploads/2023/10/ollama-hugging-face-gguf.png
[ 0.00040436445851810277, 0.009431200101971626, 0.008169070817530155, 0.04911995679140091, 0.07187864929437637, 0.040940769016742706, 0.047314777970314026, 0.03813575208187103, -0.021587537601590157, -0.01068806927651167, 0.00021023215958848596, -0.007301472593098879, -0.08752007782459259, 0.014023014344274998, -0.042034175246953964, 0.07652941346168518, 0.04620456323027611, 0.013601970858871937, -0.003613255685195327, 0.023833932355046272, 0.034514252096414566, 0.0548955537378788, 0.025674257427453995, 0.04050666093826294, 0.024669518694281578, 0.020768841728568077, 0.04361051693558693, 0.019180329516530037, -0.030985716730356216, -0.006486471742391586, 0.03432829678058624, 0.0057032047770917416, 0.009419743902981281, -0.01368903648108244, 0.03269211947917938, -0.010891280137002468, -0.040775757282972336, 0.0293098334223032, 0.01585019938647747, 0.04262930154800415, -0.04962734878063202, 0.02130824699997902, -0.01922532171010971, 0.023611975833773613, -0.056783277541399, 0.013372951187193394, -0.04817741736769676, 0.03403849899768829, 0.009295525960624218, -0.011414534412324429, -0.07041230797767639, 0.03544377163052559, -0.036321040242910385, 0.0034586009569466114, -0.020827094092965126, 0.03484175354242325, 0.028766391798853874, -0.07439583539962769, 0.025664987042546272, -0.03627962991595268, -0.02302395924925804, -0.004330343566834927, 0.019200583919882774, 0.0032764053903520107, -0.025779353454709053, -0.015284255146980286, -0.00041970028541982174, 0.04729805514216423, -0.06363376975059509, -0.028181735426187515, 0.010355798527598381, 0.0001823722559493035, -0.016410671174526215, -0.006524456664919853, 0.03582872450351715, -0.026204101741313934, -0.015160687267780304, 0.03808944672346115, 0.03850165382027626, 0.033704474568367004, -0.01909073255956173, -0.015193890780210495, 0.023674359545111656, 0.02968759648501873, -0.018992898985743523, -0.03822529315948486, -0.015588403679430485, -0.0168989896774292, -0.08539438247680664, 0.07999779284000397, -0.0030360522214323282, -0.05117684602737427, -0.004496974404901266, 0.0035192957147955894, -0.0023061444517225027, 0.012220102362334728, 0.013158246874809265, -0.01310430932790041, 0.00001761878047545906, -0.003799529280513525, -0.03159573674201965, -0.03492548689246178, 0.0008144447929225862, 0.016030851751565933, -0.08999462425708771, -0.015323415398597717, -0.028427161276340485, -0.007146099582314491, 0.0075623877346515656, -0.02298962138593197, 0.009931409731507301, 0.0021470205392688513, -0.013770576566457748, 0.0069900816306471825, -0.06205416098237038, 0.07583710551261902, 0.011278804391622543, -0.04651075601577759, -0.0026212576776742935, 0.04751378297805786, 0.0806320309638977, 0.019625702872872353, -0.03312239795923233, 0.07337895780801773, 0.018405569717288017, 0.039593879133462906, 0.013616252690553665, 0.04291290044784546, -0.027292272076010704, -0.05276864394545555, -0.012981010600924492, 0.040971510112285614, -0.010512813925743103, 0.02643706649541855, 0.02067677676677704, -0.03746413066983223, 0.0012951699318364263, -0.0019467283273115754, 0.05032923072576523, 0.013483152724802494, -0.0001859091717051342, -0.022453412413597107, -0.007268526591360569, 0.0009867623448371887, 0.03984176740050316, 0.0002906763111241162, -0.0017906901193782687, -0.050892818719148636, -0.03956405818462372, 0.0014765748055651784, -0.00025412370450794697, 0.005454888101667166, 0.046789851039648056, -0.034571729600429535, 0.016864195466041565, 0.10005977749824524, 0.040285393595695496, 0.00034610743750818074, 0.010224842466413975, -0.002184273675084114, 0.024035975337028503, 0.02683550864458084, -0.015720102936029434, 0.061314839869737625, 0.026292413473129272, -0.012571390718221664, 0.004217983223497868, 0.05180557817220688, -0.02018805779516697, -0.003371971193701029, -0.04824751242995262, -0.059011973440647125, 0.06441345810890198, -0.03166326880455017, -0.04134233295917511, 0.04508324712514877, 0.0958869531750679, 0.04677165672183037, 0.037373289465904236, 0.011254965327680111, -0.08774708956480026, 0.03404669091105461, 0.03755280002951622, 0.015638915821909904, 0.007327944040298462, -0.01941119134426117, 0.08468485623598099, -0.0038891476579010487, -0.0038675498217344284, 0.044761937111616135, -0.05701456964015961, -0.04498831182718277, -0.00512688746675849, -0.007003412116318941, 0.06317245215177536, -0.027314480394124985, 0.016171563416719437, 0.053320519626140594, 0.021078336983919144, 0.03261056914925575, 0.004423949401825666, -0.013885052874684334, 0.030858635902404785, -0.017430095002055168, -0.05498307943344116, 0.03142508491873741, 0.0172225721180439, -0.004456914961338043, -0.013755640015006065, 0.0034605676773935556, -0.01575523242354393, -0.010204916819930077, 0.04035262390971184, -0.02105846256017685, 0.017184017226099968, 0.00672221090644598, 0.02408672496676445, -0.003531453665345907, 0.02544368803501129, -0.03796888887882233, 0.010031371377408504, -0.0034106725361198187, -0.03924519941210747, -0.004096589051187038, -0.015240075998008251, 0.11575094610452652, 0.07366790622472763, -0.02601095475256443, -0.03426290675997734, 0.02291972003877163, 0.018658779561519623, -0.05343642458319664, 0.018843315541744232, -0.020667623728513718, -0.024452785030007362, 0.017014356330037117, -0.008010572753846645, -0.03850620985031128, 0.026457346975803375, -0.05407140776515007, -0.009455234743654728, 0.06663453578948975, 0.006345187313854694, 0.040101245045661926, -0.02564501203596592, -0.010121587663888931, 0.0031636166386306286, -0.030277784913778305, -0.06285960972309113, -0.0014650787925347686, 0.013386918231844902, -0.0075874337926507, 0.02221097983419895, -0.02770226262509823, -0.012521513737738132, -0.03687664121389389, -0.023391472175717354, 0.030116545036435127, 0.032953985035419464, 0.061393577605485916, 0.008888477459549904, 0.011991008184850216, -0.03840435668826103, 0.03739989548921585, -0.03310162201523781, -0.04140222817659378, -0.029274387285113335, -0.03275782987475395, -0.010788055136799812, 0.017917444929480553, 0.019207550212740898, 0.022397352382540703, -0.005826877895742655, 0.008716283366084099, 0.04219714179635048, 0.008977391757071018, 0.04149094596505165, -0.0008237440488301218, -0.012302935123443604, -0.03391773998737335, -0.035122714936733246, 0.07509151101112366, -0.03918813541531563, -0.015288116410374641, -0.013531302101910114, -0.06333984434604645, 0.03390060365200043, -0.059740446507930756, -0.04603001847863197, -0.018561722710728645, 0.016477299854159355, 0.030127177014946938, 0.016194138675928116, 0.0108091551810503, 0.03022710233926773, 0.028353668749332428, 0.010370979085564613, 0.02112894505262375, -0.00986990425735712, 0.06306552141904831, -0.013894839212298393, 0.014591026119887829, 0.04116619750857353, -0.016493305563926697, -0.016074620187282562, -0.0652829110622406, 0.024045800790190697, -0.03458791598677635, -0.29121989011764526, 0.01626805029809475, 0.008009472861886024, -0.044983815401792526, 0.005696774926036596, -0.03781319782137871, 0.011556575074791908, -0.05871863663196564, -0.03258993476629257, 0.00798118393868208, -0.0070336973294615746, -0.029704853892326355, -0.008914666250348091, 0.0333227775990963, 0.01973024010658264, 0.004104654770344496, -0.007809347007423639, -0.031446464359760284, 0.003519566962495446, 0.028772631660103798, 0.004243266303092241, -0.06724140793085098, -0.015958787873387337, 0.042332619428634644, 0.011556618846952915, 0.03236030787229538, -0.05579681321978569, -0.011840731836855412, -0.050717879086732864, -0.00967345666140318, 0.008200767450034618, -0.02342403680086136, 0.004969683010131121, 0.01076040230691433, -0.0004672847571782768, -0.022652648389339447, 0.06949450820684433, 0.015608025714755058, 0.034432001411914825, 0.009029190056025982, 0.016086488962173462, -0.02574957348406315, -0.00029241174343042076, 0.024956656619906425, 0.09560294449329376, -0.0064803361892700195, -0.07696212083101273, 0.00033538445131853223, -0.039245907217264175, 0.07049306482076645, -0.03497086837887764, -0.029681969434022903, -0.030696537345647812, 0.04935257509350777, 0.008640690706670284, 0.001742958091199398, 0.0021999531891196966, -0.014244706369936466, -0.03481429070234299, -0.05023706704378128, 0.005987641401588917, -0.033740777522325516, -0.040089406073093414, -0.06273920089006424, 0.0021867442410439253, -0.08538154512643814, -0.062442515045404434, -0.028473282232880592, 0.08935937285423279, 0.03990397974848747, -0.0416497103869915, -0.00009204086381942034, -0.0057870191521942616, -0.09945367276668549, -0.0042633977718651295, -0.013286884874105453, -0.03287874534726143, 0.0063595897518098354, 0.010906100273132324, 0.08473280817270279, -0.04976049065589905, -0.052878472954034805, 0.04003368690609932, 0.006444600876420736, 0.01049027033150196, -0.015463820658624172, 0.01584157533943653, 0.00724895391613245, 0.016022957861423492, -0.0006430118810385466, 0.06780193746089935, -0.031123820692300797, -0.024640725925564766, -0.012895546853542328, -0.007050505839288235, -0.0027531313244253397, 0.01725216582417488, 0.015594086609780788, 0.03571781516075134, 0.04528689384460449, 0.008623680099844933, -0.065448097884655, 0.0012443442828953266, -0.021693896502256393, -0.013344931416213512, -0.0015468294732272625, -0.03500612825155258, 0.003038065740838647, 0.04975463077425957, 0.013116463087499142, -0.016937943175435066, -0.04169883951544762, 0.03174701705574989, -0.06713639944791794, -0.04354675114154816, -0.02127470262348652, 0.0038145931903272867, 0.04711339250206947, 0.024603048339486122, -0.018138457089662552, -0.019935887306928635, 0.023263350129127502, -0.004580371081829071, -0.02885257638990879, -0.04431336745619774, -0.007569888606667519, 0.005594729911535978, -0.033963728696107864, -0.002949413610622287, 0.015773465856909752, -0.010562577284872532, 0.036063242703676224, 0.0351683646440506, -0.05855723097920418, 0.05739065259695053, -0.0034952606074512005, -0.03274958208203316, -0.03565850853919983, 0.017230002209544182, -0.025343433022499084, 0.009594165720045567, 0.014396481215953827, -0.004910681862384081, 0.007429114542901516, 0.03535531088709831, 0.00997799914330244, 0.052906911820173264, -0.000727789185475558, 0.003339755116030574, 0.00688085425645113, 0.029401063919067383, -0.04451044276356697, -0.001148192910477519, -0.026413731276988983, -0.01423177495598793, -0.002728426130488515, 0.017159752547740936, -0.006113000679761171, -0.010761437006294727, -0.04511752352118492, 0.0366334542632103, -0.046077340841293335, -0.02836371771991253, -0.013106958009302616, -0.005985913798213005, 0.04848938062787056, 0.01833997294306755, 0.005466650240123272, 0.008039560168981552, -0.009452872909605503, 0.026166221126914024, 0.025780044496059418, -0.03147096186876297, 0.0040240176022052765, 0.0004706317267846316, -0.0034839040599763393, 0.011675911955535412, 0.006377128884196281, 0.03505885228514671, 0.033259861171245575, -0.0047127739526331425, -0.039518073201179504, 0.026683423668146133, -0.006594516336917877, 0.03194957971572876, 0.05029583349823952, -0.036140166223049164, -0.00509810633957386, -0.017256909981369972, -0.008341783657670021, -0.01905619539320469, -0.0022565193939954042, 0.00251326197758317, -0.0036442384589463472, -0.029819337651133537, -0.07763264328241348, 0.013340621255338192, 0.0022342437878251076, 0.009722770191729069, 0.013002526015043259, -0.014637134969234467, 0.02037764899432659, -0.054670657962560654, 0.02483522891998291, 0.04730653762817383, -0.062029846012592316, 0.025057949125766754, 0.0009748461889103055, 0.004141167737543583, -0.006495897192507982, 0.026176735758781433, -0.048762671649456024, -0.05230961740016937, -0.025265857577323914, 0.03155950456857681, -0.05247245728969574, -0.0156063511967659, -0.036310575902462006, 0.009704682976007462, 0.0005734827718697488, -0.0022040947806090117, -0.0031861369498074055, -0.03570796549320221, 0.006565919145941734, -0.0214566420763731, 0.020387250930070877, -0.009470930323004723, 0.00488195288926363, 0.026753470301628113, -0.02393319457769394, 0.02072412148118019, -0.0251671951264143, 0.03545696288347244, 0.045387450605630875, -0.04204185679554939, 0.0016467414097860456, -0.02527455799281597, -0.0010677276877686381, -0.003796516451984644, 0.01938825286924839, 0.038450080901384354, 0.0018516945419833064, -0.04517942667007446, 0.005615795962512493, -0.032579343765974045, 0.02336050197482109, -0.007218696177005768, -0.009689406491816044, 0.02079605497419834, 0.044797804206609726, 0.016568774357438087, -0.003915295470505953, -0.03510579839348793, -0.02608686126768589, 0.05724460259079933, -0.07267434895038605, -0.0398324579000473, -0.00013931692228652537, -0.02281455136835575, 0.03826045244932175, 0.01874094270169735, 0.03670641779899597, -0.028482500463724136, 0.02660617046058178, 0.02711612917482853, 0.007873129099607468, 0.03906993940472603, 0.005082453601062298, 0.03710854426026344, -0.033328019082546234, -0.0010176587384194136, -0.06384284794330597, -0.003427885938435793, 0.006780499592423439, -0.015709688887000084, -0.04494550824165344, -0.0018130375538021326, -0.059607915580272675, 0.05265982449054718, -0.0687357559800148, -0.03348469361662865, 0.03024657815694809, -0.009409693069756031, -0.005790902301669121, 0.009193044155836105, -0.05757557228207588, 0.02875937893986702, 0.01931849867105484, -0.05106760933995247, -0.01505572535097599, -0.0008558426052331924, 0.057832520455121994, -0.02662074565887451, 0.02921285852789879, -0.009099215269088745, -0.006196356378495693, 0.07408621162176132, 0.02940966747701168, 0.004969839937984943, 0.03901343792676926, 0.0019897310994565487, 0.060660816729068756, 0.03137921541929245, -0.01631096377968788, 0.03432073816657066, 0.000039745456888340414, -0.0023147286847233772, -0.08433625102043152, 0.046399012207984924, -0.0036418125964701176, -0.022563040256500244, -0.059475477784872055, 0.05360610410571098, 0.03353339806199074, -0.008522704243659973, -0.06572190672159195, 0.04708867147564888, -0.045374561101198196, -0.013573593460023403, -0.011381571181118488, -0.015586224384605885, -0.031063959002494812, 0.06928493827581406, -0.0033141609746962786, 0.020297646522521973, 0.052327342331409454, 0.01042008027434349, -0.0110291987657547, -0.00389947765506804, 0.09121780097484589, 0.08399815112352371, 0.037788648158311844, 0.021107520908117294, 0.07571219652891159, 0.0068916864693164825, -0.06161627173423767, 0.012136894278228283, 0.017497515305876732, -0.05195086821913719, -0.02671549655497074, 0.025153258815407753, 0.07382207363843918, -0.05372447893023491, 0.07669252157211304, -0.03086802363395691, -0.013729666359722614, -0.004441511817276478, 0.010717462748289108, 0.009144781157374382, 0.034272246062755585, 0.010987060144543648, 0.003818249562755227, -0.03169945627450943, -0.022421089932322502, 0.022750472649931908, -0.01469473261386156, 0.0016276910901069641, 0.009138341061770916, -0.025859156623482704, 0.025641895830631256, -0.0017807469703257084, 0.02875714749097824, 0.07254186272621155, -0.05379838868975639, 0.010742460377514362, 0.01096747163683176, 0.0009770781034603715, 0.014952278696000576, 0.031641751527786255, -0.01746058091521263, -0.04299236461520195, -0.012352608144283295, -0.035337433218955994, -0.008772742934525013, -0.031064996495842934, -0.00013916716852691025, 0.0188552625477314, -0.018908603116869926, -0.00453376118093729, 0.030672332271933556, -0.009651054628193378, -0.04023928567767143, -0.044124871492385864, -0.05228964984416962, -0.059518955647945404, -0.06842303276062012, 0.0030947679188102484, -0.009172284975647926, -0.008465344086289406, -0.05803918093442917, -0.0389120914041996, -0.03323660418391228, -0.028405742719769478, 0.023463064804673195, -0.061653975397348404, -0.042738381773233414, 0.020764874294400215, 0.021216658875346184, 0.012748734094202518, 0.013922210782766342, 0.0693742111325264, 0.026634899899363518, -0.012172212824225426, -0.026350198313593864, 0.030928174033761024, 0.03848616033792496, 0.0213205274194479, 0.007846404798328876, -0.0884818360209465, 0.01511138491332531, 0.030693447217345238, -0.040614258497953415, -0.07331481575965881, 0.015862321481108665, 0.022378630936145782, 0.0056233792565763, 0.050875481218099594, -0.0006756247603334486, 0.00047809004900045693, -0.06001903489232063, -0.031902462244033813, -0.020388176664710045, -0.0021860452834516764, 0.04594492167234421, -0.0076924096792936325, 0.0955776795744896, 0.04277152195572853, -0.01460960227996111, -0.05592169612646103, -0.003046575002372265, 0.02136158011853695, 0.021107977256178856, -0.05759535729885101, -0.010293234139680862, -0.02606027200818062, -0.08783974498510361, -0.0271853506565094, 0.027913348749279976, -0.024625813588500023, -0.020763572305440903, 0.0032890462316572666, -0.016038985922932625, -0.0042280955240130424, 0.027101900428533554, -0.05029523745179176, -0.011811737902462482, -0.026391709223389626, 0.0026863098610192537, -0.03408901020884514, 0.0404675155878067, 0.006926477421075106, 0.00018228036060463637, 0.036289993673563004, -0.05775339528918266, -0.00472154701128602, -0.00938097108155489, 0.03671562299132347, 0.01897592283785343, 0.0189466942101717, 0.018561046570539474 ]
[ -0.04103226587176323, 0.00976026151329279, -0.02481057494878769, -0.035727642476558685, 0.08884044736623764, -0.009626306593418121, -0.06413906812667847, 0.0021984106861054897, -0.024171406403183937, -0.021008461713790894, -0.02899215556681156, -0.07915513962507248, 0.004883438348770142, 0.002032681368291378, 0.08447780460119247, -0.03766372799873352, 0.004921575076878071, -0.04855550080537796, 0.01337866298854351, 0.0355839766561985, 0.022218629717826843, -0.02038218453526497, -0.0007043089135549963, -0.040358833968639374, -0.009693225845694542, 0.022712046280503273, 0.03649064153432846, -0.025807060301303864, 0.03381257504224777, -0.21636363863945007, -0.015910224989056587, 0.01266293041408062, 0.03392452374100685, -0.01661645621061325, -0.028109969571232796, 0.04216436296701431, 0.021831341087818146, 0.007342738565057516, -0.013419333845376968, 0.026080235838890076, 0.005840467754751444, 0.030510064214468002, -0.058426521718502045, -0.005373703315854073, 0.09428223222494125, -0.011366224847733974, -0.04470204561948776, -0.007199709769338369, -0.05419160798192024, -0.0030600731261074543, -0.02839535102248192, 0.017505742609500885, -0.037550218403339386, 0.005781571380794048, -0.03403320163488388, 0.021966958418488503, 0.08759237080812454, 0.0034612976014614105, -0.004321906249970198, -0.002422260120511055, -0.008783802390098572, -0.007925892248749733, -0.09682465344667435, 0.11124630272388458, -0.04263972118496895, 0.041916199028491974, 0.008479532785713673, -0.027022963389754295, 0.0013581890380010009, 0.06253384798765182, -0.00843316875398159, -0.013879631645977497, -0.04311322420835495, -0.002239638939499855, 0.001190492883324623, -0.027497410774230957, 0.04699065163731575, 0.0370408333837986, 0.01031135767698288, -0.0015005344757810235, -0.03309965133666992, 0.016011280938982964, -0.020354587584733963, -0.025751600041985512, -0.02605910785496235, -0.010653085075318813, -0.015161041170358658, 0.024623462930321693, -0.042700767517089844, 0.026352757588028908, 0.027928639203310013, -0.005727422423660755, 0.04257437586784363, -0.003925057128071785, -0.08096961677074432, -0.029390880838036537, -0.019190877676010132, 0.033316392451524734, -0.037163373082876205, 0.4765101671218872, -0.014521868899464607, -0.02779005654156208, 0.04814256355166435, 0.043208248913288116, 0.030309338122606277, 0.014215582050383091, -0.01599426381289959, -0.016713609918951988, 0.006838814355432987, -0.0007238012040033937, 0.021236302331089973, -0.007092389278113842, 0.06482096761465073, -0.04400962218642235, 0.015115299262106419, -0.008762212470173836, 0.0037569040432572365, -0.01379831787198782, -0.00022559845820069313, -0.0206056609749794, -0.03325923904776573, 0.014171610586345196, 0.020970387384295464, -0.03827611729502678, 0.024479759857058525, -0.03409866988658905, -0.01818600483238697, 0.023744923993945122, 0.07291529327630997, 0.015073110349476337, 0.020411228761076927, -0.006421045400202274, -0.05252787098288536, -0.017532626166939735, 0.007902631536126137, 0.009050719439983368, 0.05535774677991867, 0.014842092990875244, -0.029913777485489845, 0.03194505348801613, -0.022588687017560005, -0.013434262946248055, 0.035472527146339417, -0.016880406066775322, -0.0432867631316185, 0.10854773223400116, -0.013002320192754269, -0.025619981810450554, -0.020619792863726616, -0.01114393025636673, 0.035053521394729614, 0.04837312176823616, 0.023343844339251518, -0.00840724352747202, 0.02198168635368347, 0.012251239269971848, 0.08658716827630997, -0.02041434310376644, -0.07607626169919968, 0.007332425564527512, -0.01065772958099842, -0.019263815134763718, -0.032709572464227676, 0.005334748420864344, 0.0442952960729599, -0.12457428872585297, -0.08561519533395767, 0.021319041028618813, 0.016499372199177742, -0.08466777950525284, 0.0353471115231514, 0.022925328463315964, -0.006101851351559162, 0.0039047792088240385, 0.023085087537765503, -0.013166290707886219, -0.028614621609449387, -0.03856964409351349, 0.02408151887357235, 0.015677619725465775, -0.010080259293317795, -0.035307157784700394, -0.04125894978642464, -0.010894608683884144, -0.07380641996860504, -0.08962129801511765, -0.020130008459091187, -0.01869255304336548, 0.005524077918380499, -0.04181463271379471, 0.026898451149463654, 0.002208496443927288, -0.02558169513940811, 0.048476360738277435, -0.015689218416810036, -0.029359187930822372, -0.03691534698009491, -0.0036215598229318857, -0.007368022110313177, -0.03294948861002922, 0.023493865504860878, 0.015792474150657654, -0.02597624808549881, 0.017917761579155922, -0.016904065385460854, 0.05258459225296974, 0.0413162000477314, -0.03367074951529503, 0.053797975182533264, 0.020129507407546043, -0.012320895679295063, -0.010802037082612514, 0.03482745960354805, 0.03352930769324303, -0.008639677427709103, 0.0020122721325606108, 0.019977953284978867, -0.018941257148981094, -0.00017879762162920088, 0.007034223526716232, 0.0018811565823853016, -0.07190734893083572, -0.04798459634184837, -0.33032041788101196, -0.02102827839553356, -0.01810302957892418, 0.006744142156094313, 0.04197569936513901, -0.0914374515414238, 0.030410997569561005, -0.015979837626218796, 0.0540618821978569, 0.026782719418406487, 0.08756337314844131, -0.009951481595635414, -0.03156799077987671, -0.08179762214422226, -0.01603258028626442, 0.03319413587450981, -0.009565815329551697, 0.008730132132768631, -0.04985152930021286, -0.010268842801451683, -0.009888099506497383, -0.02223595790565014, -0.07819990068674088, -0.021310487762093544, 0.004548036027699709, -0.0009160974877886474, 0.10968669503927231, 0.042237699031829834, 0.04238466918468475, -0.05199689418077469, 0.04634757339954376, 0.02303142100572586, 0.0074141258373856544, -0.07967798411846161, 0.0404248982667923, -0.023570571094751358, 0.0008084210567176342, 0.008323638699948788, 0.04772176221013069, -0.02981177344918251, -0.02644665166735649, 0.031462863087654114, -0.0033753560855984688, -0.04077174514532089, -0.03736519441008568, 0.03913482651114464, 0.014128611423075199, -0.04258006811141968, -0.044287797063589096, 0.09148066490888596, 0.021365266293287277, -0.004477373324334621, 0.0014644470065832138, 0.0012945379130542278, -0.036218784749507904, -0.057944729924201965, -0.07550212740898132, -0.03519006446003914, 0.009938410483300686, 0.020109126344323158, 0.049069594591856, 0.024982711300253868, 0.03711647540330887, -0.0963258147239685, -0.006395982578396797, 0.0017236765706911683, -0.016457373276352882, -0.020832428708672523, 0.0617096982896328, 0.018315166234970093, -0.003200272796675563, 0.09047849476337433, -0.0034332196228206158, 0.0237343218177557, 0.05555454269051552, 0.036708906292915344, 0.03230392932891846, 0.022277381271123886, -0.017450062558054924, -0.02799631468951702, 0.027953526005148888, 0.00812241155654192, 0.03413228690624237, -0.04877719283103943, 0.0016309008933603764, 0.034642476588487625, -0.02823122963309288, -0.057759396731853485, 0.05940420180559158, 0.018637336790561676, 0.0015673039015382528, -0.01111767627298832, 0.015016905963420868, -0.048038508743047714, 0.07297081500291824, -0.0015990040265023708, -0.24735763669013977, 0.0575849749147892, 0.08270709961652756, 0.07387645542621613, -0.00816343817859888, -0.014430036768317223, 0.021419383585453033, -0.0688384547829628, -0.011369917541742325, 0.018575286492705345, -0.002487065037712455, 0.03994324058294296, 0.040290892124176025, -0.000793580140452832, 0.0037509289104491472, -0.0006607891991734505, 0.04297756776213646, -0.01706879958510399, 0.037326741963624954, -0.015780162066221237, 0.005792603828012943, -0.0471782311797142, 0.16086170077323914, 0.03322373330593109, 0.005334083456546068, 0.010813535191118717, 0.012931781820952892, -0.03639247640967369, 0.06450396776199341, 0.02961224690079689, 0.008227781392633915, 0.012522839941084385, 0.020884230732917786, 0.007545121945440769, 0.035670969635248184, -0.036657270044088364, -0.03216122090816498, 0.048107683658599854, 0.03724808990955353, 0.02017207443714142, 0.027569320052862167, 0.035939112305641174, -0.017924198880791664, 0.017242226749658585, 0.044224370270967484, -0.055347636342048645, 0.030406532809138298, 0.026024343445897102, -0.08354471623897552, -0.0020087792072445154, 0.0016379898879677057, -0.024609176442027092, -0.007750019431114197, -0.03458957001566887, 0.008184277452528477, 0.033793095499277115, 0.035431329160928726, -0.006696010008454323, 0.018391933292150497, 0.01984868384897709, 0.0015906771877780557, -0.010651479475200176, 0.06633385270833969, 0.0181416105479002, 0.008015284314751625 ]
[ -0.004057770129293203, -0.013667108491063118, 0.008266793563961983, 0.006761489436030388, 0.037354279309511185, 0.019100509583950043, -0.012860631570219994, 0.012924483977258205, -0.0015452289953827858, 0.00161964341532439, 0.009694346226751804, 0.008057080209255219, 0.011884842067956924, -0.012762798927724361, 0.03479098156094551, -0.020220713689923286, 0.020102115347981453, -0.02504168078303337, 0.021376116201281548, 0.02522803097963333, -0.0526447594165802, 0.042226143181324005, 0.010996631346642971, -0.014182057231664658, -0.015405857935547829, 0.00469555426388979, -0.04287909343838692, 0.003915925044566393, 0.06420765072107315, -0.1298673301935196, 0.005334075074642897, -0.050958748906850815, 0.0015175148146227002, 0.00834451150149107, 0.0000013748791616308154, 0.041024867445230484, -0.025244351476430893, 0.006803254596889019, -0.0667097344994545, -0.012851117178797722, 0.005095785483717918, -0.01815926283597946, 0.03112109564244747, -0.006379025522619486, 0.03285824880003929, 0.0060059442184865475, -0.05782439559698105, -0.01455607358366251, -0.008727045729756355, -0.025027085095643997, -0.0612519308924675, -0.03607410565018654, -0.02426113560795784, -0.0103224515914917, -0.041783664375543594, 0.014902595430612564, 0.0007886214298196137, -0.016558533534407616, 0.017583424225449562, 0.016682924702763557, -0.013949683867394924, -0.015721395611763, -0.03962390497326851, -0.023865658789873123, 0.001996476436033845, -0.006110318936407566, -0.009099979884922504, 0.008748590014874935, -0.011125339195132256, 0.028118032962083817, -0.006702113430947065, 0.011908549815416336, -0.0467667281627655, -0.03415682911872864, -0.018470730632543564, -0.02660113014280796, -0.002631343435496092, -0.013257824815809727, 0.010951614938676357, 0.0012689594877883792, -0.010261277668178082, -0.0006159018375910819, 0.030746188014745712, -0.0012906321790069342, -0.0022525403182953596, -0.012025199830532074, -0.0196003969758749, 0.004456707742065191, -0.012949604541063309, 0.00558455241844058, -0.022639412432909012, 0.029962051659822464, -0.016727756708860397, 0.022644296288490295, -0.08231893926858902, -0.008194216527044773, 0.008673916570842266, -0.01434162724763155, -0.03285490348935127, 0.8403018116950989, 0.0005438436637632549, -0.010287594050168991, 0.04272479936480522, 0.03843412548303604, -0.006362379994243383, -0.014731403440237045, -0.01861225627362728, -0.0010358411818742752, 0.021428201347589493, -0.04508151113986969, 0.003642080584540963, -0.008978528901934624, 0.0017709791427478194, 0.0073283519595861435, 0.015843050554394722, 0.001095241867005825, 0.002549499971792102, -0.0006976598524488509, 0.020986713469028473, 0.028923211619257927, 0.025377588346600533, -0.022146405652165413, 0.03657590597867966, -0.01624276302754879, -0.016204312443733215, -0.20017372071743011, -0.01680120639503002, -6.707681537110971e-33, 0.07955240458250046, 0.005702651105821133, 0.022495174780488014, 0.019101664423942566, -0.00913887470960617, 0.04142342880368233, -0.020279262214899063, 0.016384359449148178, 0.004392591770738363, -0.030145317316055298, -0.0015497696585953236, 0.0073998658917844296, -0.009829011745750904, -0.001801050384528935, 0.0041640824638307095, 0.013663897290825844, 0.008134657517075539, 0.040809132158756256, -0.015320544131100178, 0.010048474185168743, 0.0282326377928257, 0.028938928619027138, 0.0038118024822324514, 0.009453698061406612, -0.0532044917345047, 0.03488067165017128, 0.005761823616921902, 0.004087502136826515, 0.0063598803244531155, -0.04331319034099579, -0.028169836848974228, -0.024025434628129005, 0.013269981369376183, -0.031927771866321564, 0.020670998841524124, -0.04555261507630348, -0.058281708508729935, -0.007543337997049093, -0.009323161095380783, -0.018698571249842644, -0.01185807678848505, 0.01486472599208355, -0.035936109721660614, -0.05463041365146637, -0.032733235508203506, 0.020146068185567856, 0.03284898400306702, -0.013336839154362679, -0.009630435146391392, 0.006597669329494238, 0.03373408317565918, 0.00761786475777626, -0.039501119405031204, 0.014413089491426945, -0.042934369295835495, 0.03387212008237839, 0.01013991329818964, 0.017079200595617294, -0.0015291782328858972, 0.015894368290901184, 0.02611052617430687, -0.0042982082813978195, 0.048117972910404205, -0.0029244711622595787, -0.011198634281754494, 0.0011032603215426207, -0.005273501854389906, -0.018109405413269997, 0.022603055462241173, 0.03479945287108421, -0.06165344640612602, 0.04415855184197426, -0.018421389162540436, -0.014781080186367035, 0.0346248522400856, -0.040767937898635864, 0.024209534749388695, 0.028095019981265068, 0.00772591307759285, 0.022883106023073196, -0.008868847973644733, 0.02171199955046177, 0.021994367241859436, -0.015996403992176056, -0.03144071251153946, -0.0721680149435997, 0.013286218047142029, -0.01788126863539219, -0.025787578895688057, -0.00760209746658802, 0.02512860670685768, 0.0311130303889513, 0.024531694129109383, -0.025191856548190117, -0.0026093944907188416, 6.729121084702031e-33, 0.03404393047094345, -0.007159248925745487, 0.003908419515937567, -0.013070439919829369, 0.04554193094372749, -0.0010059805354103446, 0.028593800961971283, 0.040317829698324203, -0.027682429179549217, 0.0038643372245132923, 0.0013054837472736835, -0.006339291576296091, -0.025242486968636513, 0.018712589517235756, 0.0617222934961319, -0.022605735808610916, 0.024173960089683533, -0.04524851590394974, -0.00804735068231821, 0.007662961259484291, 0.017766689881682396, -0.0014357148902490735, 0.03040589578449726, 0.007426388096064329, 0.030051670968532562, 0.03586198389530182, 0.009956397116184235, 0.017417320981621742, 0.011102976277470589, 0.016524428501725197, 0.042345788329839706, -0.014141210354864597, -0.01773790642619133, 0.01762946881353855, 0.024046652019023895, 0.034095168113708496, 0.017637556418776512, 0.033529214560985565, -0.02688121795654297, -0.003091393271461129, 0.021527886390686035, 0.03769473358988762, -0.023498523980379105, 0.021440811455249786, 0.01952296681702137, 0.01991172879934311, -0.001973996637389064, -0.011332711204886436, -0.019412420690059662, -0.010534404776990414, 0.030930986627936363, -0.00035568070597946644, 0.00010809772356878966, -0.012607945129275322, -0.003239886835217476, -0.02693425863981247, -0.005185707937926054, 0.04823169484734535, -0.03402913734316826, -0.001188234076835215, -0.012195552699267864, -0.02456548810005188, -0.03703725337982178, -0.00774760264903307, -0.030359849333763123, 0.005986806005239487, -0.01961805857717991, -0.019117731600999832, -0.025481393560767174, 0.006607447750866413, -0.010552234016358852, -0.009657631628215313, -0.0077154007740318775, 0.05057800933718681, 0.018999630585312843, 0.028159432113170624, 0.0019475157605484128, -0.025762850418686867, 0.017032314091920853, -0.0024880855344235897, 0.0050569260492920876, -0.014928576536476612, 0.02126910910010338, -0.0044772932305932045, 0.01958465576171875, 0.002251384546980262, -0.02689356356859207, 0.035222094506025314, 0.023378416895866394, 0.008762557990849018, -0.03575477376580238, -0.007310986518859863, 0.024899089708924294, 0.023690156638622284, 0.01397883240133524, -1.2622620282343178e-8, -0.04276574030518532, 0.005248950328677893, -0.01982022263109684, 0.0039373235777020454, -0.05692298337817192, 0.026811866089701653, 0.0017008306458592415, -0.05270449444651604, 0.013430421240627766, -0.013658790849149227, 0.03275628015398979, -0.004835369531065226, 0.0006297316867858171, 0.006411535199731588, -0.020312223583459854, -0.014737102203071117, -0.018203388899564743, -0.015034708194434643, 0.0209630336612463, -0.002713155932724476, 0.026251690462231636, 0.036194395273923874, 0.006050091236829758, -0.02380964532494545, 0.004296027589589357, -0.025313539430499077, 0.0108569310978055, -0.051904480904340744, -0.020468413829803467, -0.0034471985418349504, 0.021271897479891777, -0.04078318923711777, -0.018730448558926582, -0.00292162480764091, 0.015277998521924019, 0.0004382434126455337, 0.004585918039083481, -0.01587577722966671, 0.026087386533617973, -0.0031719913240522146, 0.02989848144352436, 0.023293545469641685, 0.009121178649365902, -0.04057983309030533, -0.009652549400925636, 0.02148333750665188, 0.039893098175525665, -0.03012523055076599, 0.007847596891224384, 0.023956594988703728, -0.01887502893805504, 0.0004896038444712758, -0.05121270939707756, 0.07131584733724594, 0.03131701052188873, -0.022295214235782623, -0.0012178773758932948, -0.00641976622864604, -0.00265902909450233, -0.00020080180547665805, 0.011931011453270912, -0.002693942515179515, 0.0017486207652837038, 0.005726948380470276 ]
ollama-hugging-face-gguf-models
https://markhneedham.com/blog/2023/10/18/ollama-hugging-face-gguf-models
false
2023-10-11 00:44:37
Ollama: Experiments with few-shot prompting on Llama2 7B
[ "ollama", "llama2", "til" ]
[ "TIL" ]
:icons: font A problem that I'm currently trying to solve is how to work out whether a given sentence is a question. If there's a question mark on the end we can assume it is a question, but what about if the question mark's been left off? https://www.promptingguide.ai/techniques/fewshot[Few-shot prompting^] is a technique where we provide some examples in our prompt to try to guide the LLM to do what we want. And, this seemed like a good opportunity to try it out on Meta's Llama2 7B Large Language Model using https://ollama.ai/[Ollama^]. [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/ocfzGBnhhDE?si=IpqGQ3C_hvvCDVWv" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> ++++ ==== But before we do that, we're going to create a baseline where we don't provide any examples. I've created a file, `sentences.csv`, which contains sentences in one column and whether I think they're a question in the other. [.scrollable] .sentences.csv [format="csv", options="header"] |=== include::content/2023/10/11/data/sentences.csv[] |=== == A sentence-focused model with no examples Next, we're going to create a model specifically for determining if something is a question. We're going to create a model file, `Modelfile-question-llama2-base`, which should look like this: .Modelfile-question-llama2-base [source, docker] ---- FROM llama2 TEMPLATE """ <s> [INST] {{- if .First }} <<SYS>> {{.System}} <</SYS>> {{- end }} {{.Prompt}} [/INST] """ SYSTEM """You are a question analyzer. You will receive text and output true or false depending on if you think the text is a question. Do NOT try to answer the question.""" ---- The exact format used in the `TEMPLATE` section will vary depending on the model that you're using, but this is the one for Llama2. We can then run the following command: [source, bash] ---- ollama create \ question-llama2-base \ -f Modelfile-question-llama2-base ---- .Output [source, text] ---- parsing modelfile looking for model creating model template layer creating model system layer creating config layer using already created layer sha256:8daa9615cce30c259a9555b1cc250d461d1bc69980a274b44d7eda0be78076d8 using already created layer sha256:8c17c2ebb0ea011be9981cc3922db8ca8fa61e828c5d3f44cb6ae342bf80460b using already created layer sha256:7c23fb36d80141c4ab8cdbb61ee4790102ebd2bf7aeff414453177d4f2110e5d using already created layer sha256:e35ab70a78c78ebbbc4d2e2eaec8259938a6a60c34ebd9fd2e0c8b20f2cdcfc5 writing layer sha256:259d89c66e53cd019f48e7f41127a0f9d7cc522b58c35cfd1411395e5e81cf8f writing layer sha256:04f603753dacd8b5f855cdde37290d26ce45b283114fb40c00646c3f063333f4 writing layer sha256:846424fbd2c37f30a9ccc3a33efe20b24ff44988293b92d35bb80c1d4fcb4b09 writing manifest removing any unused layers success ---- We can then call the model passing in say one of the sentences: [source, bash] ---- ollama run \ question-llama2-base \ "The weather is quite pleasant today." ---- .Output [source, text] ---- True ---- It's kinda working, but we can already see that it's not returning the result in the format that I suggested. Let's have a look at how it gets on with all the sentences using the Llama Index library. We're also going to install a utility library called `mpu` that we'll use to coerce the boolean string in the CSV file to a boolean value, as well as `scikit-learn` to see how well the model does. [source, bash] ---- pip install llama_index mpu scikit-learn ---- We'll first load the sentences: [source, python] ---- import csv from mpu.string import str2bool with open('sentences.csv', 'r') as sentences_file: reader = csv.reader(sentences_file, delimiter=",") next(reader) sentences = [(row[0], str2bool(row[1])) for row in reader] sentences ---- We're also going to create a couple of helper functions to render the results: [source, python] ---- def handle_result(is_sentence, llm_answer): result = f"Actual: {str(is_sentence).ljust(5)} LLM: {llm_answer}" print(f"{sentence.ljust(60)} {result}") def handle_error(is_sentence, ex, llm_says): result = f"Actual: {str(is_sentence).ljust(5)} LLM: {ex} - {llm_says}" print(f"{sentence.ljust(60)} {result}") ---- Now, let's initialise the Llama2 model: [source, python] ---- from llama_index.llms import Ollama base_llama2 = Ollama(model="question-llama2-base") ---- And iterate over each of the sentences, asking the LLM whether it's a sentence, and then checking the answer. We're using the JSON module to parse the result since `true` and `false` are valid JSON values. [source, python] ---- import json llm_answers=[] for sentence, is_sentence in sentences: llm_says = base_llama2.complete(sentence).text try: llm_answer = json.loads(llm_says) handle_result(is_sentence, llm_answer) llm_answers.append(llm_answer) except json.JSONDecodeError as ex: handle_error(is_sentence, ex, llm_says) llm_answers.append(None) ---- If we run that code, we see the following output: .Output [source, text] ---- The weather is quite pleasant today. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True Have you ever been to Paris Actual: True LLM: Expecting value: line 1 column 1 (char 0) - True I enjoy reading books on rainy days. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True What is your favorite type of cuisine Actual: True LLM: Expecting value: line 1 column 1 (char 0) - True The movie last night was exhilarating. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True She has a collection of vintage postcards. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True Can you believe it’s already October Actual: True LLM: Expecting value: line 1 column 1 (char 0) - True I think the library closes at 6 pm. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True Where do you usually go for vacation Actual: True LLM: Expecting value: line 1 column 1 (char 0) - True It’s amazing how time flies. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True The concert last night was incredible. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True Have you finished the report yet Actual: True LLM: Expecting value: line 1 column 1 (char 0) - True He likes to play soccer on weekends. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True What time does the meeting start Actual: True LLM: Expecting value: line 1 column 1 (char 0) - True I can't believe how fast the kids are growing up. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True Is the grocery store open on Sundays Actual: True LLM: Expecting value: line 1 column 1 (char 0) - True She has a knack for solving complex puzzles. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True Guess who just got promoted Actual: True LLM: Expecting value: line 1 column 1 (char 0) - True The painting in the hallway is quite striking. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True Could be that he forgot our appointment. Actual: False LLM: Expecting value: line 1 column 1 (char 0) - True ---- So it hasn't returned a value in the correct format for any of the 20 questions and it's returning `True` every single time, which isn't very useful. We can see how many we computed correctly by running the following code: [source, python] ---- len([ predicted for predicted, actual in zip(llm_answers, [s[1] for s in sentences]) if predicted == actual ]) ---- .Output [source, text] ---- 0 ---- Unsurprisingly we have none right since the LLM didn't return a value in the correct format. == A sentence-focused model with examples Let's see if we fare any better with a model that's been given a few examples of what we want it to do. The Modelfile for this approach is shown below: .Modelfile-question-llama2 [source, docker] ---- FROM llama2 TEMPLATE """ <s> [INST] {{- if .First }} <<SYS>> {{.System}} <</SYS>> {{- end }} My name is Mark [/INST] false </s> <s> [INST] Can you do it with OpenAI? [/INST] true </s> <s> [INST] Will you make another tutorial [/INST] true </s> <s> [INST] {{.Prompt}} [/INST] """ SYSTEM """You are a question analyzer. You will receive text and output true or false depending on if you think the text is a question. Do NOT try to answer the question.""" ---- Let's build that model: [source, bash] ---- ollama create \ question-llama2 \ -f Modelfile-question-llama2 ---- Now let's go back to our Python environment and give this one a try. First up, initialising the model: [source, python] ---- llama2 = Ollama(model="question-llama2") ---- And now let's loop over the sentences like we did before: [source, python] ---- llm_answers=[] for sentence, is_sentence in sentences: llm_says = llama2.complete(sentence).text try: llm_answer = json.loads(llm_says) handle_result(is_sentence, llm_answer) llm_answers.append(llm_answer) except json.JSONDecodeError as ex: handle_error(is_sentence, ex, llm_says) llm_answers.append(None) ---- .Output [source, text] ---- The weather is quite pleasant today. Actual: False LLM: False Have you ever been to Paris Actual: True LLM: False I enjoy reading books on rainy days. Actual: False LLM: True What is your favorite type of cuisine Actual: True LLM: False The movie last night was exhilarating. Actual: False LLM: False She has a collection of vintage postcards. Actual: False LLM: False Can you believe it’s already October Actual: True LLM: True I think the library closes at 6 pm. Actual: False LLM: False Where do you usually go for vacation Actual: True LLM: True It’s amazing how time flies. Actual: False LLM: True The concert last night was incredible. Actual: False LLM: Extra data: line 2 column 1 (char 6) - false </s> Have you finished the report yet Actual: True LLM: True He likes to play soccer on weekends. Actual: False LLM: False What time does the meeting start Actual: True LLM: True I can't believe how fast the kids are growing up. Actual: False LLM: True Is the grocery store open on Sundays Actual: True LLM: True She has a knack for solving complex puzzles. Actual: False LLM: True Guess who just got promoted Actual: True LLM: True The painting in the hallway is quite striking. Actual: False LLM: False Could be that he forgot our appointment. Actual: False LLM: True ---- That looks better already, although it looks like we're sometimes getting an `</s>` token returned as well. Let's update the code to strip those out: [source, python] ---- llm_answers=[] for sentence, is_sentence in sentences: llm_says = llama2.complete(sentence).text try: llm_answer = json.loads(llm_says.replace("</s>", "")) handle_result(is_sentence, llm_answer) llm_answers.append(llm_answer) except json.JSONDecodeError as ex: handle_error(is_sentence, ex, llm_says) llm_answers.append(None) ---- If we run it again, we see the following output: .Output [source, text] ---- The weather is quite pleasant today. Actual: False LLM: False Have you ever been to Paris Actual: True LLM: False I enjoy reading books on rainy days. Actual: False LLM: True What is your favorite type of cuisine Actual: True LLM: False The movie last night was exhilarating. Actual: False LLM: False She has a collection of vintage postcards. Actual: False LLM: False Can you believe it’s already October Actual: True LLM: True I think the library closes at 6 pm. Actual: False LLM: False Where do you usually go for vacation Actual: True LLM: True It’s amazing how time flies. Actual: False LLM: True The concert last night was incredible. Actual: False LLM: False Have you finished the report yet Actual: True LLM: True He likes to play soccer on weekends. Actual: False LLM: False What time does the meeting start Actual: True LLM: True I can't believe how fast the kids are growing up. Actual: False LLM: True Is the grocery store open on Sundays Actual: True LLM: True She has a knack for solving complex puzzles. Actual: False LLM: True Guess who just got promoted Actual: True LLM: True The painting in the hallway is quite striking. Actual: False LLM: False Could be that he forgot our appointment. Actual: False LLM: True ---- Keep in mind that LLMs aren't deterministic, so we may well see different results between runs. Now that we've got a proper result for each sentence, we can compute some metrics. Import the following functions from scikit-learn: [source, python] ---- from sklearn.metrics import confusion_matrix, precision_score, recall_score ---- First, we're going to compute the precision score, which measures the `True Positive / (True Positive + False Positive)`. This metric describes the ability of the LLM not to label as a question a sentence that is not a question. We can compute this metric with the following code: [source, python] ---- precision_score([s[1] for s in sentences], llm_answers, zero_division=0.0) ---- .Output [source, text] ---- 0.5454545454545454 ---- We can also compute the recall score, which measures the `True Positive / (True Positive + False Negative)`. This metric describes the ability of the LLM to find all the questions in the dataset. We can compute this metric with the following code: [source, python] ---- recall_score([s[1] for s in sentences], llm_answers) ---- .Output [source, text] ---- 0.75 ---- We can also compute a confusion matrix, which shows the true/false positives/negatives on a 2x2 grid. [source, python] ---- matrix = confusion_matrix([s[1] for s in sentences], llm_answers) matrix ---- .Output [source, text] ---- array([[7, 5], [2, 6]]) ---- This one is better visualised, so let's create a diagram with the following function, which uses the seaborn library: [source, python] ---- import seaborn as sns def render_confusion_matrix(matrix): ax = sns.heatmap(matrix, annot=False, cmap=['white'], cbar=False, linecolor='black', linewidths=1, xticklabels=['Negative', 'Positive'], yticklabels=['Negative', 'Positive'] ) labels = ['TN', 'FP', 'FN', 'TP'] for i in range(2): for j in range(2): ax.text(j+0.5, i+0.4, f"{str(matrix[i, j])}", fontsize=16, horizontalalignment='center', verticalalignment='center') ax.text(j+0.5, i+0.55, f"{labels[i * 2 + j]}", color='green' if labels[i * 2 + j][0] == "T" else 'red', fontsize=14, horizontalalignment='center', verticalalignment='center') ax.xaxis.tick_top() ax.xaxis.set_ticks_position('top') ax.set_ylabel('Data (Truth)') ax.set_xlabel('LLM prediction') ---- If we render the matrix: [source, python] ---- render_confusion_matrix(matrix) ---- .Confusion matrix of Llama2 predicting questions image::{{<siteurl>}}/uploads/2023/10/confusion-matrix.png[] == Summary Overall, we can see that our LLM isn't doing a great job here! It's better at working out if something isn't a question than if it is a question, but even there it still gets some wrong. My next experiment will be to see if I can get better results with one of the Llama2 models that has more parameters.
In this post, we'll learn how to do few-shot prompting with the Llama2 7B model on our own machine using Ollama.
uploads/2023/10/ollama-few-prompt-learning-banner.png
[ 0.04234912618994713, -0.007168014533817768, -0.003923813346773386, 0.03306315839290619, 0.07971925288438797, -0.0015762137481942773, 0.03451453521847725, 0.04656807705760002, -0.029773270711302757, 0.024679359048604965, -0.047041598707437515, 0.01712038181722164, -0.029167119413614273, 0.024100374430418015, 0.007412353530526161, 0.0544462576508522, 0.051907729357481, 0.03197150304913521, 0.04009165242314339, 0.01637602038681507, 0.019743485376238823, 0.04859547317028046, 0.01786774769425392, 0.00758241955190897, 0.024181578308343887, -0.0027354625053703785, 0.029154097661376, 0.0125607680529356, -0.08158538490533829, 0.026448765769600868, 0.031979698687791824, -0.005223982967436314, 0.008551844395697117, -0.008065775036811829, 0.03838716074824333, -0.01572333090007305, -0.012971383519470692, 0.03488535434007645, 0.025291375815868378, 0.030127672478556633, -0.040953900665044785, -0.009287585504353046, -0.02342928573489189, -0.00844491459429264, -0.042091093957424164, 0.015636617317795753, -0.023760076612234116, 0.0031630233861505985, 0.010374789126217365, -0.006883169990032911, -0.08174274861812592, 0.05600539222359657, -0.007866695523262024, 0.01058300118893385, 0.005796143319457769, 0.0396580696105957, 0.021542930975556374, -0.09177909791469574, 0.02480304427444935, -0.03264578431844711, 0.014134089462459087, 0.00842670165002346, 0.007004415150731802, 0.010709172114729881, -0.00783600378781557, -0.05531929060816765, -0.0011822812957689166, 0.056135836988687515, -0.07828783988952637, -0.028177626430988312, -0.009995604865252972, -0.005736664868891239, -0.02579398825764656, 0.00465075857937336, 0.01215393841266632, -0.0019960342906415462, -0.018785778433084488, 0.05090111494064331, 0.010637512430548668, 0.009725275449454784, -0.019184473901987076, 0.01148862112313509, 0.03543888404965401, 0.034788578748703, -0.0173752773553133, -0.026934219524264336, -0.016690993681550026, -0.03705597668886185, -0.040113963186740875, 0.038084808737039566, 0.019447611644864082, -0.06299039721488953, 0.02266348898410797, 0.023559007793664932, 0.007929413579404354, -0.018971506506204605, 0.018457762897014618, -0.003867615479975939, -0.004203741438686848, 0.0020770642440766096, -0.03767108917236328, -0.027806635946035385, 0.02879156358540058, 0.05454080179333687, -0.07386308908462524, 0.009902282617986202, -0.0036837405059486628, -0.013222583569586277, 0.013911204412579536, 0.01590430736541748, -0.0145192239433527, -0.023935280740261078, -0.030363375321030617, 0.008092605508863926, -0.05645911395549774, 0.04663534089922905, 0.02152489311993122, 0.009364449419081211, -0.036423418670892715, 0.04311949387192726, 0.0027614508289843798, 0.015388322994112968, 0.012775063514709473, 0.06740042567253113, 0.001786691602319479, 0.03374764695763588, 0.036835670471191406, 0.04114272817969322, -0.004342363215982914, -0.06115679070353508, -0.007123610004782677, 0.035061970353126526, -0.015089623630046844, 0.05084144324064255, 0.0077676912769675255, 0.0010905618546530604, -0.00830883625894785, -0.04481733590364456, 0.0543411485850811, -0.0009194407030008733, -0.013055680319666862, -0.01926345005631447, 0.0008029547170735896, 0.015621415339410305, 0.03721225634217262, 0.019132357090711594, -0.03055867739021778, -0.03534476086497307, -0.036748941987752914, 0.05062266066670418, -0.0009189752163365483, -0.005714011378586292, 0.08636531978845596, -0.0323529876768589, -0.028422418981790543, 0.07080350816249847, -0.00015620644262526184, 0.0014455587370321155, 0.00034898336161859334, 0.02410123310983181, 0.03505358844995499, 0.04850253462791443, 0.020139062777161598, 0.055730387568473816, -0.0003117836022283882, -0.003213302930817008, 0.015566234476864338, 0.002370207104831934, -0.028832953423261642, -0.011782119981944561, -0.04845593124628067, -0.056619998067617416, 0.06746785342693329, -0.04620029032230377, -0.03940710797905922, 0.017130393534898758, 0.07095114886760712, 0.058096833527088165, 0.02092907391488552, 0.006024064030498266, -0.07510102540254593, 0.014279576949775219, -0.002738700248301029, 0.036834072321653366, 0.02475392259657383, -0.020647574216127396, 0.09389417618513107, 0.02042040415108204, -0.02811066247522831, 0.014344270341098309, -0.05492589622735977, -0.012143801897764206, -0.03267168626189232, 0.002463121432811022, 0.04604211077094078, -0.05476728081703186, -0.0014554753433912992, 0.06407838314771652, 0.02565212920308113, 0.04808342084288597, 0.007872244343161583, -0.026880981400609016, 0.023731300607323647, -0.01773257367312908, -0.033303335309028625, 0.05953732505440712, 0.06441163271665573, -0.0045820483937859535, 0.007577529642730951, 0.01828583888709545, -0.019484730437397957, 0.02022792212665081, 0.026491530239582062, 0.0217337254434824, 0.019759798422455788, 0.0037859617732465267, 0.02787039801478386, -0.005700636189430952, 0.025962047278881073, -0.05477892607450485, 0.022029923275113106, -0.016809269785881042, -0.017984850332140923, -0.05445052310824394, -0.03753916919231415, 0.09822045266628265, 0.02787530981004238, -0.021859239786863327, -0.04260697588324547, -0.005930542945861816, 0.007288497406989336, -0.038185082376003265, 0.0227979589253664, 0.02481912449002266, -0.017008887603878975, 0.020190224051475525, -0.0017524611903354526, -0.03714219853281975, 0.03347409516572952, -0.03840657323598862, 0.001735458616167307, 0.05750220641493797, 0.012990780174732208, 0.011566008441150188, -0.023588089272379875, -0.013509471900761127, 0.01709417626261711, -0.012995319440960884, -0.07250506430864334, 0.015635531395673752, -0.0037155067548155785, -0.005455817095935345, 0.0055944048799574375, -0.0427173413336277, -0.011081847362220287, -0.01053912378847599, -0.06393172591924667, 0.008461009711027145, 0.06483197957277298, 0.03521379455924034, 0.004573625512421131, 0.05056039243936539, 0.003918339964002371, 0.006241347175091505, -0.03689353168010712, -0.014665085822343826, -0.029016593471169472, -0.032628294080495834, 0.01025219913572073, 0.003704853355884552, 0.010072504170238972, 0.03486107662320137, 0.024078262969851494, 0.01845473237335682, 0.04644588381052017, 0.03994586691260338, 0.03913893550634384, 0.007380967028439045, 0.01575332134962082, -0.006184709258377552, -0.015335781499743462, 0.05527552217245102, -0.0700421929359436, -0.06113477796316147, 0.014130291528999805, -0.062160152941942215, 0.010560586117208004, -0.05243034288287163, -0.07537669688463211, -0.003033814486116171, -0.007053169887512922, 0.041921164840459824, 0.010873893275856972, 0.012747548520565033, 0.054710619151592255, 0.012497637420892715, 0.01547884102910757, -0.013934191316366196, -0.010626784525811672, 0.07317443192005157, -0.03436315059661865, 0.017332512885332108, 0.05353939160704613, 0.0007066765101626515, -0.0046942164190113544, -0.04853346198797226, 0.03357701376080513, -0.03699082136154175, -0.27941516041755676, 0.023615432903170586, 0.0008680400205776095, -0.01632651872932911, 0.0016243262216448784, -0.05931732431054115, 0.018576009199023247, -0.05390523374080658, -0.02549503557384014, 0.030479883775115013, -0.010554120875895023, 0.0015090148663148284, -0.06839334219694138, 0.03415757790207863, 0.028109773993492126, 0.004780125804245472, -0.004488663282245398, -0.011025737971067429, -0.016543928533792496, 0.0338699072599411, -0.00016933292499743402, -0.049950819462537766, -0.01745573617517948, 0.07253576815128326, 0.04246116802096367, 0.06294047832489014, -0.06725402921438217, 0.026933401823043823, -0.021297886967658997, -0.02709970995783806, 0.012888451106846333, -0.02812873013317585, -0.023707550019025803, -0.030625786632299423, -0.02747252583503723, 0.013268931768834591, 0.09080910682678223, -0.009524889290332794, 0.02679494395852089, 0.017848003655672073, 0.005816640332341194, -0.04180802032351494, 0.009236838668584824, -0.025317758321762085, 0.0694962590932846, -0.007876001298427582, -0.06238962337374687, -0.004606727976351976, -0.05219816789031029, 0.05563700571656227, -0.03435610234737396, -0.062046412378549576, -0.019257957115769386, 0.04440753534436226, 0.031045425683259964, 0.00014108986943028867, 0.021227749064564705, -0.03991182893514633, -0.0557318814098835, -0.05214995890855789, 0.0028597451746463776, -0.021871736273169518, -0.06810068339109421, -0.055239878594875336, 0.01454156544059515, -0.07498326152563095, -0.035231005400419235, -0.007108481600880623, 0.07159344851970673, 0.04481913894414902, -0.025614121928811073, -0.0022137360647320747, -0.002785908058285713, -0.09831355512142181, -0.0022596537601202726, -0.03435497730970383, 0.005697781685739756, 0.0018929035868495703, -0.03978851065039635, 0.05726926401257515, -0.05289039760828018, -0.027480801567435265, 0.06867609918117523, -0.010835802182555199, 0.002681334037333727, -0.009347112849354744, 0.03170601651072502, -0.003376323264092207, 0.0029444261454045773, -0.0027120003942400217, 0.07622647285461426, -0.01237467397004366, -0.04825980216264725, 0.014708589762449265, -0.0236374419182539, 0.03651881590485573, 0.020620625466108322, -0.005429738666862249, 0.032116372138261795, 0.037662673741579056, 0.04405127838253975, -0.026410605758428574, -0.0010062063811346889, -0.021883441135287285, -0.011060276068747044, 0.011651026085019112, -0.06846170127391815, 0.024248622357845306, 0.02053157612681389, -0.02880842424929142, -0.07670145481824875, -0.02790415845811367, -0.030986115336418152, -0.04673706740140915, -0.043257132172584534, -0.029502056539058685, -0.007301031146198511, 0.015199188143014908, 0.026376614347100258, -0.0462513193488121, -0.038342684507369995, 0.0058649443089962006, -0.0033105912152677774, -0.0237104669213295, -0.06825067102909088, -0.01883799023926258, 0.02048720419406891, 0.025831544771790504, -0.046112313866615295, 0.002165096579119563, -0.01370230969041586, 0.0027217452879995108, 0.01916535757482052, -0.054790567606687546, 0.04937960207462311, -0.029135622084140778, -0.03723498806357384, 0.010824942961335182, 0.016224341467022896, -0.011292212642729282, 0.011364439502358437, -0.006749900057911873, 0.04541810229420662, 0.03395531326532364, 0.053338807076215744, -0.005824902560561895, 0.008074562065303326, 0.013746256940066814, -0.021087752655148506, 0.017188822850584984, 0.012350977398455143, -0.01597326248884201, -0.01366908848285675, -0.0008498220704495907, 0.0027992648538202047, -0.02436530403792858, 0.0012105029309168458, -0.0019793349783867598, -0.004997141193598509, -0.06027471646666527, 0.026058819144964218, -0.039296455681324005, -0.003729099640622735, 0.002837965963408351, 0.04104429483413696, 0.027571752667427063, 0.01666925475001335, 0.0380096510052681, 0.03802378103137016, 0.02847876586019993, -0.00297467946074903, -0.03477293625473976, -0.049462735652923584, 0.001606843899935484, 0.003627895610406995, -0.006594412494450808, 0.022037435322999954, 0.018323121592402458, -0.004112272523343563, 0.020034948363900185, 0.013891492038965225, -0.04609194025397301, 0.04734676331281662, -0.0044868397526443005, 0.024712515994906425, 0.007106666453182697, -0.0055816397070884705, 0.028083430603146553, -0.021412910893559456, -0.013183378614485264, -0.01837095059454441, -0.007384226657450199, 0.007595960516482592, -0.028470860794186592, -0.04335686191916466, -0.07226166874170303, 0.007722548209130764, 0.001603205455467105, 0.04919041693210602, 0.0077451965771615505, -0.018675748258829117, -0.016394151374697685, -0.026364656165242195, 0.027060573920607567, 0.055574703961610794, -0.08046353608369827, 0.03471360355615616, -0.0047770049422979355, 0.002532968996092677, 0.009879371151328087, -0.012338354252278805, -0.10058917850255966, -0.027810608968138695, -0.015846464782953262, 0.037930071353912354, -0.06402499973773956, -0.020071526989340782, -0.055276110768318176, 0.04168436676263809, -0.017530133947730064, 0.010498876683413982, -0.0258854441344738, 0.010881353169679642, -0.006308938376605511, -0.00881125032901764, -0.017015542834997177, -0.027056992053985596, -0.0036425881553441286, 0.05976108834147453, -0.022800691425800323, 0.04164837673306465, -0.027006160467863083, 0.03476550430059433, 0.05280429869890213, -0.03904324397444725, -0.033812716603279114, -0.07019531726837158, -0.014915193431079388, 0.0009589276742190123, 0.01288785319775343, 0.015304145403206348, -0.003307913662865758, -0.039501309394836426, 0.0067553650587797165, -0.0003349886101204902, 0.03689241409301758, -0.0008673471747897565, 0.002390866866335273, 0.009831387549638748, 0.08901754766702652, 0.0009232934680767357, -0.03274712711572647, -0.0025579514913260937, -0.07112649828195572, 0.05214449018239975, -0.024833478033542633, -0.03673752024769783, -0.01716618239879608, -0.04612690955400467, 0.051598452031612396, 0.017701204866170883, 0.032586224377155304, -0.06871254742145538, 0.01669585518538952, 0.011398451402783394, 0.023356709629297256, 0.033974483609199524, 0.023206794634461403, 0.04312397167086601, -0.017783373594284058, -0.022581741213798523, -0.08442150056362152, 0.0011775766033679247, 0.033599138259887695, -0.005250977352261543, -0.009354200214147568, -0.011815925128757954, -0.03948305547237396, 0.0645364448428154, -0.03740566968917847, -0.030871791765093803, 0.060876116156578064, 0.002317252801731229, 0.011263394728302956, 0.05691090226173401, -0.026270724833011627, 0.01819009892642498, 0.05227088928222656, -0.03151170536875725, -0.014519911259412766, -0.04563009366393089, 0.051024261862039566, -0.0003250325098633766, 0.006874626502394676, -0.012621757574379444, 0.0020549490582197905, 0.02560398355126381, 0.026009920984506607, 0.028410224243998528, 0.007136006373912096, -0.0018087318167090416, 0.032748591154813766, 0.041854921728372574, -0.0026589904446154833, 0.016549617052078247, -0.000004072082447237335, -0.05259111151099205, -0.09330327808856964, 0.06404481083154678, 0.010545612312853336, 0.005115181673318148, -0.05849817022681236, 0.06360475718975067, 0.0017893469193950295, -0.008047946728765965, -0.025255050510168076, 0.004438652656972408, -0.04959651827812195, -0.031553782522678375, 0.009020809084177017, 0.008370094001293182, -0.02443542517721653, 0.05412551015615463, -0.009012671187520027, 0.03620922192931175, 0.06102548912167549, -0.01956557296216488, 0.006140878424048424, -0.004303408786654472, 0.08371049910783768, 0.07042050361633301, 0.04301092401146889, 0.004060464911162853, 0.0594608373939991, -0.03729737550020218, -0.04743330180644989, -0.008201691322028637, -0.030674370005726814, -0.008744090795516968, -0.036005593836307526, 0.009606950916349888, 0.051132380962371826, -0.0359000638127327, 0.0503869354724884, -0.03126784786581993, -0.04182601720094681, 0.03297145664691925, 0.024768853560090065, -0.002534752245992422, 0.030378056690096855, -0.012537377886474133, 0.0050652227364480495, -0.0044933222234249115, -0.01007224153727293, 0.03218476474285126, -0.01913064531981945, -0.011594233103096485, 0.04454023391008377, -0.013698706403374672, -0.007855434902012348, -0.03636781871318817, 0.04770166054368019, 0.0897633507847786, -0.021061785519123077, -0.0015168676618486643, 0.018292201682925224, -0.00818308163434267, -0.0010647348826751113, 0.040063679218292236, 0.006712249480187893, -0.018635712563991547, -0.023748863488435745, -0.03363627567887306, 0.010053121484816074, -0.018162842839956284, -0.0404873825609684, 0.01876864954829216, -0.005050109699368477, 0.023854056373238564, 0.0506751649081707, -0.009934993460774422, -0.08290161192417145, -0.05395642668008804, -0.05904589593410492, -0.04368119686841965, -0.04487960785627365, 0.015166213735938072, 0.020987994968891144, -0.005409942474216223, -0.06357832252979279, -0.04574914649128914, -0.0628458634018898, 0.030323894694447517, 0.009922372177243233, -0.049756620079278946, -0.028597591444849968, 0.03747561573982239, 0.006066340021789074, 0.019771279767155647, 0.02070257067680359, 0.02057032659649849, -0.02612415887415409, -0.00801417138427496, -0.050712522119283676, 0.013949241489171982, 0.02747543528676033, 0.011269274167716503, 0.02291889302432537, -0.0576341450214386, 0.018677547574043274, 0.009426704607903957, -0.005019673146307468, -0.06493877619504929, 0.008793478831648827, 0.029235754162073135, -0.000034382366720819846, 0.07415925711393356, -0.004644208587706089, 0.025608349591493607, -0.050080783665180206, -0.02657751366496086, -0.012731950730085373, 0.009794998914003372, 0.022781500592827797, -0.01245622057467699, 0.053829360753297806, 0.024071941152215004, 0.005787243600934744, -0.046749599277973175, -0.021752838045358658, -0.015694286674261093, -0.0006099950987845659, -0.06333818286657333, -0.019995443522930145, -0.027031421661376953, -0.03473171964287758, -0.03287085145711899, 0.06459835916757584, -0.016360566020011902, -0.020382370799779892, -0.005986115895211697, -0.004977273754775524, -0.03907211869955063, 0.03539770841598511, -0.03929750621318817, 0.006000674329698086, -0.0359598770737648, -0.0090612368658185, -0.009413794614374638, 0.025557588785886765, 0.005351528991013765, -0.02544124238193035, 0.03685479238629341, -0.05203666165471077, 0.012405660934746265, -0.021378623321652412, 0.00370021746493876, 0.04931962117552757, -0.03400913253426552, -0.010631137527525425 ]
[ -0.09279664605855942, 0.005486927926540375, -0.03645241633057594, -0.027827661484479904, 0.046318624168634415, -0.030108636245131493, -0.007493228185921907, 0.03719061613082886, 0.0007081093499436975, -0.02439071796834469, 0.00399547116830945, -0.04356474429368973, 0.006324750371277332, -0.005477765575051308, 0.08254877477884293, 0.006959648337215185, 0.007415891624987125, -0.05944931134581566, -0.031211767345666885, 0.054679129272699356, 0.016151731833815575, 0.006375567056238651, -0.027373718097805977, -0.02403944544494152, 0.012600207701325417, -0.000515242456458509, 0.05129801854491234, -0.04222194850444794, -0.0031568247359246016, -0.1836325228214264, 0.009418908506631851, -0.00829322263598442, 0.03600434213876724, -0.01851639151573181, -0.003688487457111478, 0.07658401876688004, -0.0009206674876622856, 0.006894246209412813, 0.01740195043385029, 0.023187046870589256, 0.03650141507387161, 0.013580936007201672, -0.022064777091145515, -0.057102274149656296, 0.038945410400629044, -0.005118296481668949, -0.008160846307873726, -0.054983071982860565, -0.02172081172466278, 0.0180971622467041, -0.04427976533770561, -0.051494672894477844, -0.02442817948758602, -0.03463812917470932, -0.028417132794857025, 0.007289320696145296, 0.03602474927902222, 0.028877777978777885, 0.026125039905309677, 0.03057955950498581, 0.0055190459825098515, -0.018370890989899635, -0.16039566695690155, 0.13625630736351013, -0.017396772280335426, 0.06426380574703217, -0.02216023951768875, 0.008279695175588131, -0.013711045496165752, 0.10510287433862686, 0.01260025892406702, -0.03125571832060814, -0.009755900129675865, 0.05905076488852501, 0.003712267614901066, -0.007146019488573074, 0.009087257087230682, 0.01055724173784256, 0.03600246086716652, -0.05048046633601189, -0.07982829958200455, -0.012209047563374043, 0.009945048950612545, -0.02729847840964794, -0.03560900315642357, 0.010104203596711159, -0.04389920458197594, 0.0447654128074646, -0.004390102345496416, 0.01895373873412609, 0.01522026862949133, -0.011289829388260841, 0.009692358784377575, 0.02224835753440857, -0.0974031388759613, -0.04550376161932945, -0.011370427906513214, -0.0012211601715534925, -0.0582282654941082, 0.41724905371665955, -0.0275732334703207, -0.03758501261472702, 0.06807328760623932, -0.013414775021374226, 0.016341432929039, 0.006837089546024799, 0.005649566650390625, -0.03148939460515976, 0.0023884454276412725, -0.027297114953398705, -0.0165127944201231, 0.002727932296693325, 0.03859458863735199, -0.047949403524398804, -0.005447336006909609, -0.005146692506968975, 0.05083095654845238, 0.020162690430879593, -0.006911462172865868, -0.03486737981438637, -0.013137334026396275, 0.010378295555710793, 0.0011707668891176581, -0.04216133803129196, 0.015508770011365414, -0.023750562220811844, 0.061992838978767395, 0.04477269574999809, 0.05335191637277603, -0.02121177688241005, 0.04459328204393387, -0.06640450656414032, -0.0374210886657238, 0.0018282034434378147, -0.005622874945402145, 0.01271734293550253, 0.056426484137773514, -0.04017573222517967, 0.0028518151957541704, 0.009488515555858612, -0.016396600753068924, -0.028739096596837044, 0.04205617308616638, -0.024188071489334106, -0.04249458387494087, 0.11578021198511124, 0.002845419803634286, -0.038213782012462616, -0.03289186954498291, -0.04280874505639076, -0.003199518658220768, 0.02138328179717064, -0.00918576680123806, -0.03871196135878563, 0.035932671278715134, 0.021664438769221306, 0.09561335295438766, -0.05407189577817917, -0.07644449174404144, -0.01597403548657894, 0.0007575883064419031, -0.03135230019688606, -0.037933528423309326, 0.008307013660669327, 0.020029256120324135, -0.10158202052116394, -0.06831071525812149, -0.014445926062762737, 0.0050203572027385235, -0.07817467302083969, 0.01778539828956127, 0.03740431368350983, -0.042541831731796265, 0.01911676861345768, 0.04906066879630089, 0.007578408345580101, -0.02972562052309513, 0.017138974741101265, 0.037495989352464676, 0.019383501261472702, -0.004910699091851711, 0.0010223101126030087, -0.023543912917375565, 0.010716471821069717, -0.05302527919411659, -0.06757936626672745, -0.01980109140276909, -0.04496125131845474, -0.001897146226838231, -0.033890191465616226, 0.018111970275640488, -0.029464252293109894, -0.045603323727846146, 0.06513255834579468, -0.055503394454717636, 0.01896153949201107, 0.021881621330976486, -0.018608333542943, -0.010767780244350433, -0.028202226385474205, -0.016682913526892662, 0.03635674715042114, 0.004720267374068499, 0.00288042682223022, -0.0361923947930336, 0.04257231205701828, 0.06765752285718918, -0.02040509693324566, 0.0870078057050705, 0.027149973437190056, -0.04482157900929451, -0.006339774001389742, -0.006485290359705687, -0.0010652525816112757, 0.0046911160461604595, -0.033959195017814636, -0.013268199749290943, -0.0021780342794954777, 0.019419409334659576, 0.048888418823480606, -0.03247102349996567, -0.06763634830713272, -0.012889495119452477, -0.34575530886650085, -0.026474857702851295, -0.006806498393416405, 0.03704508766531944, 0.02501530945301056, -0.07766550034284592, 0.01890556886792183, -0.0004139005031902343, 0.017333827912807465, 0.025169556960463524, 0.06162683293223381, -0.03332725912332535, 0.008234158158302307, -0.09016311168670654, 0.009595077484846115, 0.007614169269800186, -0.020781351253390312, -0.050967223942279816, 0.01120949536561966, 0.02346610091626644, 0.0009088112274184823, -0.015528788790106773, -0.004967460874468088, -0.07216343283653259, 0.013930369168519974, -0.04615062102675438, 0.11316867917776108, 0.07887277007102966, 0.06413047760725021, -0.07820221781730652, 0.07337021082639694, -0.007477990817278624, -0.008388197049498558, -0.0742906853556633, 0.010983340442180634, -0.05168100446462631, -0.01683718152344227, -0.010933649726212025, 0.010323080234229565, -0.028097322210669518, -0.030897580087184906, 0.02017253451049328, -0.03914370387792587, -0.018537169322371483, -0.04351157322525978, 0.00020823640807066113, 0.018279269337654114, -0.02945549786090851, -0.028009217232465744, 0.07403280586004257, 0.012744251638650894, 0.004345062654465437, -0.00413939543068409, 0.024845723062753677, -0.02179773896932602, 0.006500525865703821, -0.10189095884561539, -0.022458035498857498, 0.0021352297626435757, -0.036626897752285004, 0.01963731087744236, 0.06730335205793381, 0.03839778155088425, -0.0679568499326706, -0.006055052392184734, 0.041015248745679855, 0.004912931937724352, -0.03137397766113281, 0.05666264146566391, -0.013277294114232063, -0.016015231609344482, 0.11419413238763809, -0.007019991986453533, 0.03030337020754814, 0.045806728303432465, 0.07611498981714249, 0.03704967722296715, 0.01816803403198719, 0.004935394506901503, -0.015291529707610607, 0.0442836619913578, 0.01312224566936493, 0.00040646331035532057, -0.03085845522582531, 0.023990890011191368, 0.07232312113046646, -0.00968986190855503, -0.036018528044223785, 0.07653021067380905, 0.00076547812204808, 0.010570604354143143, -0.003609588835388422, 0.021941279992461205, -0.07355330884456635, 0.030227895826101303, -0.02398379147052765, -0.22336313128471375, 0.030170900747179985, 0.08086183667182922, 0.1055321916937828, 0.0008596875704824924, 0.0316128209233284, 0.0037252092733979225, -0.04626850783824921, -0.03027523308992386, 0.0513724610209465, -0.0021975936833769083, 0.02963368408381939, 0.020799435675144196, -0.02773422747850418, -0.005289614200592041, -0.03780749812722206, 0.05499940738081932, -0.0007226477609947324, 0.03976495563983917, -0.017919788137078285, 0.025595270097255707, -0.04755120351910591, 0.13746890425682068, -0.003964922856539488, 0.017504315823316574, -0.0015685177640989423, 0.029483692720532417, -0.005442682188004255, 0.07909455895423889, 0.018495138734579086, 0.02400192804634571, 0.000058399575209477916, 0.06151270121335983, 0.032770611345767975, 0.02283455803990364, -0.051995087414979935, -0.03874063491821289, 0.047734521329402924, 0.013832868076860905, 0.0034288836177438498, 0.009290436282753944, 0.034836266189813614, -0.031252894550561905, 0.011031868867576122, 0.05217337980866432, 0.01007287297397852, 0.034468770027160645, 0.0030733204912394285, -0.04840468242764473, 0.0014926505973562598, -0.004192149732261896, -0.025579260662198067, -0.022415446117520332, 0.012800982221961021, 0.02877168357372284, 0.043163567781448364, 0.042794451117515564, -0.010879688896238804, 0.03424965217709541, 0.028512245044112206, -0.026488391682505608, -0.01667751930654049, 0.11315211653709412, 0.03487025946378708, 0.043707624077796936 ]
[ 0.028004402294754982, -0.0029833533335477114, 0.005190569907426834, 0.006103393156081438, 0.04534973204135895, 0.03558231145143509, 0.009982024319469929, 0.01879529468715191, 0.022142622619867325, 0.007081699091941118, -0.0116562619805336, 0.004621585831046104, 0.0027483776211738586, -0.001740256673656404, 0.038856856524944305, 0.0056776013225317, 0.01884172298014164, -0.03595482558012009, 0.008546789176762104, 0.008947315625846386, -0.00824650190770626, 0.01673337258398533, 0.019360225647687912, 0.00903364922851324, -0.027637500315904617, 0.030705157667398453, -0.035840608179569244, 0.023179246112704277, 0.04909364506602287, -0.13626722991466522, -0.007074119057506323, -0.04798971489071846, -0.018223321065306664, 0.0328846238553524, -0.030411479994654655, -0.031365033239126205, -0.009992705658078194, 0.006433284841477871, -0.026659026741981506, 0.00005266023799777031, -0.012966468930244446, 0.0025907019153237343, 0.03014742210507393, 0.01108287088572979, 0.03692850098013878, -0.02133392170071602, -0.014794358983635902, -0.03004949539899826, -0.024436142295598984, -0.0030333702452480793, -0.06430984288454056, -0.02792815864086151, -0.0018866952741518617, -0.008890565484762192, -0.032944463193416595, -0.0068158237263560295, -0.00642892112955451, -0.01129860244691372, 0.03713126853108406, 0.015208509750664234, -0.0012549774255603552, -0.040638912469148636, -0.02736136130988598, -0.0017714658752083778, 0.02571813389658928, -0.02052196115255356, -0.023625904694199562, -0.007905558682978153, -0.015150998719036579, 0.009259901009500027, -0.028127396479249, 0.005291492212563753, -0.021539989858865738, 0.0024440879933536053, -0.03898850455880165, -0.03173086419701576, 0.011044562794268131, -0.030999939888715744, 0.0014418934006243944, 0.013414212502539158, 0.0017255444545298815, -0.029239444062113762, 0.02756376937031746, 0.032370515167713165, 0.016169849783182144, -0.015991272404789925, -0.017184104770421982, -0.0029044421389698982, -0.004687876906245947, -0.017681119963526726, -0.04959268122911453, 0.018193736672401428, 0.02499859593808651, 0.03139878064393997, -0.060984108597040176, 0.009553737938404083, -0.008847620338201523, -0.03551938384771347, -0.05078549310564995, 0.8464406132698059, 0.0021259901113808155, -0.0009617869509384036, 0.032505691051483154, 0.0054293847642838955, 0.008209588006138802, -0.0020159385167062283, 0.01735938899219036, 0.007253355346620083, 0.01650809310376644, -0.055569592863321304, 0.01562756858766079, 0.0153892170637846, -0.0026283864863216877, 0.024374984204769135, 0.008084425702691078, 0.001584081444889307, -0.004205154720693827, 0.003974569030106068, 0.0164601169526577, 0.001115837600082159, -0.011371241882443428, -0.002138229086995125, 0.016514727845788002, -0.003903754288330674, -0.011749491095542908, -0.19406311213970184, 0.014884749427437782, -6.975682494154944e-33, 0.05205393582582474, -0.013219419866800308, -0.012592777609825134, 0.01338957343250513, 0.03696064651012421, 0.012493199668824673, 0.0011377070331946015, 0.050967343151569366, -0.005265733227133751, -0.059861697256565094, 0.055642370134592056, -0.034136783331632614, -0.020486978814005852, 0.0070752413012087345, 0.04415622353553772, 0.007180037442594767, 0.009115029126405716, 0.01725580357015133, 0.016629552468657494, -0.0005236441502347589, 0.04260515794157982, 0.04586745426058769, 0.03645344451069832, 0.005330284591764212, -0.031176267191767693, 0.03545708581805229, 0.008609340526163578, 0.010438194498419762, -0.016203662380576134, -0.03391100466251373, -0.025109408423304558, 0.005177379120141268, -0.005797861609607935, -0.030449913814663887, 0.0424705445766449, -0.03817801550030708, -0.030147891491651535, 0.02630280889570713, -0.004671982489526272, -0.023363113403320312, -0.028549939393997192, 0.018335646018385887, -0.04690207913517952, -0.0357547365128994, -0.044302210211753845, -0.0020622096490114927, 0.021176522597670555, 0.015719354152679443, -0.004983922932296991, 0.015707284212112427, 0.018904609605669975, 0.012682328000664711, -0.025511855259537697, -0.021427536383271217, -0.007894547656178474, 0.025174077600240707, -0.009853975847363472, 0.01393896620720625, 0.014357374981045723, -0.006359484046697617, 0.01109374687075615, -0.01613692380487919, 0.01702822372317314, 0.04381442815065384, 0.005236903205513954, 0.014159144833683968, 0.05388583615422249, -0.006228067446500063, 0.0440722331404686, 0.010200685821473598, -0.041474681347608566, 0.03962546959519386, -0.003292571287602186, -0.020409779623150826, 0.0068922084756195545, -0.027618473395705223, -0.01304817758500576, -0.005534851923584938, 0.03369772806763649, 0.052714236080646515, 0.007924561388790607, -0.027862297371029854, 0.018002500757575035, -0.0434563122689724, -0.012577795423567295, -0.05346102640032768, 0.030204249545931816, -0.0063160783611238, -0.03682337701320648, -0.017142899334430695, 0.03137001022696495, 0.04026321321725845, 0.003463114844635129, -0.02411648817360401, 0.007208454422652721, 6.87731271877432e-33, 0.025599967688322067, 0.029161980375647545, -0.04174843057990074, 0.012860308401286602, 0.03234802559018135, -0.021879151463508606, 0.04180779308080673, 0.029933732002973557, -0.018882954493165016, -0.006944903172552586, -0.0014626579359173775, -0.015661347657442093, -0.03582119941711426, -0.002355189761146903, 0.01959284394979477, -0.02250111848115921, -0.013349954970180988, -0.018951838836073875, 0.0021000218112021685, -0.023281602188944817, 0.0013428558595478535, 0.001982754096388817, 0.009779056534171104, 0.009636810049414635, 0.016635555773973465, 0.03842196613550186, -0.0012463669991120696, 0.007533767260611057, -0.028286969289183617, 0.026584608480334282, 0.0077192652970552444, 0.010811248794198036, -0.0075328960083425045, -0.035031404346227646, -0.034998778253793716, 0.05294768884778023, -0.0026149412151426077, -0.001163057517260313, 0.023186132311820984, 0.024382855743169785, 0.05143386125564575, 0.034377049654722214, -0.011032083071768284, -0.029482204467058182, -0.0003429272910580039, 0.024746878072619438, -0.008098677732050419, 0.010830879211425781, 0.002751170424744487, -0.014672578312456608, -0.002885545836761594, 0.002031863434240222, 0.02079370804131031, 0.012312651611864567, -0.005485753063112497, -0.012987672351300716, -0.03748385235667229, 0.04505280777812004, -0.02889804169535637, -0.008731097914278507, -0.019033385440707207, -0.0012862741714343429, -0.020953740924596786, -0.02774546667933464, -0.002963667968288064, 0.000288040580926463, -0.05836494266986847, 0.01892095059156418, -0.024873683229088783, 0.017296968027949333, 0.001235355855897069, -0.02442503161728382, 0.005875554867088795, 0.04145761579275131, -0.018749922513961792, 0.006045746151357889, -0.005004748702049255, -0.004896574653685093, -0.005923611111938953, 0.003643820295110345, 0.02695322223007679, -0.009650619700551033, 0.009009026922285557, -0.008695404045283794, 0.008002574555575848, 0.022029772400856018, -0.026584096252918243, 0.0017921108519658446, -0.009380577132105827, 0.018757469952106476, -0.01000581867992878, -0.006879121530801058, 0.03059125691652298, 0.007662381511181593, 0.013797680847346783, -1.2802061633010453e-8, -0.05139482021331787, -0.023188425227999687, -0.019543427973985672, 0.025289887562394142, -0.015843814238905907, 0.022189397364854813, -0.039773669093847275, -0.009677535854279995, 0.03532533720135689, -0.03151921555399895, 0.031606193631887436, -0.003631441155448556, -0.00983064528554678, 0.03830873593688011, -0.015964264050126076, -0.02228834666311741, -0.00036103258025832474, -0.01398963201791048, 0.027807485312223434, -0.01561223529279232, 0.028776565566658974, 0.03430037945508957, 0.021048571914434433, -0.0014070821925997734, -0.006380997598171234, 0.0014279520837590098, -0.021352676674723625, -0.0765877440571785, -0.026147091761231422, 0.020125089213252068, 0.005061556119471788, -0.03126047924160957, -0.004232335835695267, -0.03201323747634888, -0.004293916746973991, -0.035433631390333176, 0.030877387151122093, -0.03905898705124855, 0.009023409336805344, -0.012880265712738037, 0.018164046108722687, 0.003808351932093501, 0.014549501240253448, -0.03182688355445862, -0.013116799294948578, 0.014167171902954578, 0.0022705337032675743, -0.020743971690535545, 0.017786415293812752, -0.025495903566479683, -0.007458683103322983, -0.011215496808290482, -0.022282134741544724, 0.04674409702420235, 0.021756712347269058, -0.012464316561818123, 0.015197516418993473, 0.017236534506082535, -0.03983253240585327, -0.012445404194295406, 0.040416836738586426, 0.02629474364221096, -0.012555553577840328, -0.012815665453672409 ]
ollama-few-shot-prompting-experiments-llama2-7b
https://markhneedham.com/blog/2023/10/11/ollama-few-shot-prompting-experiments-llama2-7b
false
2023-10-29 00:44:37
iPython: How to disable autocomplete
[ "python", "ipython", "poetry", "til" ]
[ "TIL" ]
:icons: font I've been toying with the idea of using iPython as the Python REPL for videos on https://www.youtube.com/channel/UCKEk670ECmteGBehmDjVSSg[@LearnDataWithMark^], but I wanted to disable the autocomplete functionality as I find it too distracting. In this blog post, I'll show how to do it. First, let's install iPython: [source, bash] ---- poetry add ipython ---- And now we'll launch the iPython REPL: [source, bash] ---- poetry run ipython ---- .Output [source, text] ---- Python 3.11.4 (main, Jun 20 2023, 17:23:00) [Clang 14.0.3 (clang-1403.0.22.14.1)] Type 'copyright', 'credits' or 'license' for more information IPython 8.16.1 -- An enhanced Interactive Python. Type '?' for help. ---- Now, let's say I type `x = ` to populate a variable. It will suggest something like the following: .Not so helpful autocomplete image::{{<siteurl>}}/uploads/2023/10/ipython-autocomplete.png[] I've only just started the session so this isn't particularly useful. I'm not sure where it's getting the suggestions from - perhaps from my previous normal Python REPL? In any case, I want to turn them off, which we can do from the https://ipython.org/ipython-doc/3/config/intro.html[iPython configuration file^]. You can create one of those by running the following command: [source, bash] ---- poetry run ipython profile create ---- .Output [source, text] ---- [ProfileCreate] Generating default config file: PosixPath('/Users/markhneedham/.ipython/profile_default/ipython_config.py') ---- If we open that file, the first few lines will read like this: .~/.ipython/profile_default/ipython_config.py [source, python] ---- # Configuration file for ipython. c = get_config() #noqa ---- To disable autocomplete, let's add the following line: [source, python] ---- c.TerminalInteractiveShell.autosuggestions_provider = None ---- If we then close the iPython REPL and launch it again, we can try the `x = ` code fragment again: .No autocomplete image::{{<siteurl>}}/uploads/2023/10/ipython-autocomplete-off.png[] Job done!
In this post, we'll learn how to disable autocomplete when using the iPython REPL.
uploads/2023/10/autocomplete-banner.png
[ 0.012221368961036205, -0.002425338374450803, -0.008637500926852226, 0.023256130516529083, 0.08079174160957336, 0.045548681169748306, 0.018458103761076927, 0.042015548795461655, -0.021185724064707756, -0.018066421151161194, -0.02680780179798603, -0.007333208806812763, -0.07341554760932922, 0.002928032074123621, -0.028428539633750916, 0.06767033785581589, 0.07706668972969055, -0.00003057639332837425, 0.02622801810503006, 0.020736318081617355, 0.030225276947021484, 0.06160490959882736, 0.007288544904440641, 0.037024933844804764, -0.01253828126937151, 0.02971574291586876, 0.014055822975933552, 0.0014317441964522004, -0.06847510486841202, -0.022740688174962997, 0.02767573855817318, -0.02658095955848694, 0.006527632940560579, -0.003716518171131611, 0.03894361853599548, 0.009677325375378132, -0.006645913701504469, 0.002563982969149947, 0.012058933265507221, 0.04107005521655083, -0.061378851532936096, -0.00992104783654213, -0.023526564240455627, 0.006886807270348072, -0.04731385409832001, 0.008136737160384655, -0.05325789377093315, 0.01807781681418419, -0.007073835004121065, -0.01965177059173584, -0.055325403809547424, 0.050528012216091156, -0.026974255219101906, -0.051244474947452545, -0.009369769133627415, 0.03765171766281128, 0.044832345098257065, -0.09344056993722916, 0.025045080110430717, -0.018124399706721306, -0.010752873495221138, -0.0004242767463438213, 0.021183909848332405, 0.05506259575486183, 0.0009447054471820593, -0.04148809239268303, -0.01283972430974245, 0.04228919744491577, -0.08254661411046982, -0.010170422494411469, -0.012304999865591526, 0.012704355642199516, -0.04067547991871834, -0.015115187503397465, 0.02089550346136093, -0.031726256012916565, -0.0144163453951478, 0.04552481323480606, 0.035934947431087494, 0.06947914510965347, -0.012280520983040333, 0.033377353101968765, 0.029181212186813354, 0.03753166273236275, -0.024986423552036285, -0.03832302615046501, -0.020011382177472115, -0.013876821845769882, -0.04043601453304291, 0.012511402368545532, 0.030549699440598488, -0.06094398349523544, 0.03207870200276375, 0.0007806580397300422, 0.009937829338014126, -0.0071993195451796055, -0.009513302706182003, -0.028472818434238434, -0.0031497131567448378, 0.021500999107956886, -0.035781797021627426, -0.03526109829545021, 0.012568313628435135, 0.02182689867913723, -0.10155631601810455, -0.005582267884165049, -0.032524194568395615, 0.003599215531721711, 0.0037716275546699762, 0.011559572070837021, -0.009777330793440342, -0.003034701105207205, -0.021090324968099594, 0.005728014279156923, -0.062126874923706055, 0.06804446130990982, 0.0018695618491619825, -0.018941085785627365, -0.00974573940038681, 0.03928845748305321, 0.02298976294696331, 0.03742217272520065, -0.01152288168668747, 0.08233920484781265, 0.009536714293062687, 0.03521476313471794, 0.0052102915942668915, 0.04757944867014885, 0.007470185402780771, -0.04948315769433975, -0.015181511640548706, 0.04715033248066902, -0.004817196633666754, 0.00007693947554798797, 0.005973194260150194, -0.019366107881069183, 0.002895574551075697, 0.004068946465849876, 0.06824994087219238, 0.02962430752813816, -0.022526146844029427, -0.011085881851613522, -0.003494385862722993, 0.0053134881891310215, 0.04395723342895508, 0.01374150812625885, -0.009278763085603714, -0.038907598704099655, -0.022121746093034744, -0.00021263860980980098, -0.005209334194660187, 0.0032773942220956087, 0.08098526298999786, -0.0196306761354208, 0.003674344392493367, 0.08252005279064178, 0.08464747667312622, 0.030130358412861824, -0.01274550799280405, 0.00400138832628727, 0.030026135966181755, 0.04837202653288841, -0.012446409091353416, 0.04122566059231758, 0.01697813905775547, -0.015092629007995129, -0.04713839292526245, 0.039395496249198914, -0.016134344041347504, -0.019816607236862183, -0.05081717297434807, -0.058677297085523605, 0.06748897582292557, -0.027116326615214348, -0.011696966364979744, 0.007282878737896681, 0.10853579640388489, 0.06135046109557152, 0.026337025687098503, 0.029770396649837494, -0.08537070453166962, 0.05085591599345207, -0.032700296491384506, 0.00709790363907814, 0.024768251925706863, -0.019574681296944618, 0.0906783863902092, 0.03827325254678726, -0.00040308627649210393, 0.025902578607201576, -0.04786266013979912, -0.060516782104969025, -0.04230967164039612, 0.0004805338685400784, 0.05589975416660309, -0.07060464471578598, -0.012391000986099243, 0.046903859823942184, 0.024342091754078865, 0.06639529019594193, -0.00021209190890658647, -0.032335277646780014, 0.005823659710586071, -0.06123855710029602, -0.06769566982984543, 0.020117931067943573, 0.0369536392390728, -0.01772976480424404, -0.023229580372571945, -0.00902110617607832, -0.0053856284357607365, -0.008147035725414753, 0.034705135971307755, 0.0002439415402477607, 0.010816967114806175, 0.010061470791697502, 0.009535419754683971, -0.03054964169859886, 0.03031071461737156, -0.02954276278614998, 0.006020278669893742, 0.003221452236175537, 0.009544553235173225, -0.022287458181381226, -0.008315726183354855, 0.11401930451393127, 0.04119708016514778, -0.040003493428230286, -0.0561644472181797, 0.008334380574524403, -0.02159423753619194, -0.03702457621693611, 0.0007835122523829341, -0.009989768266677856, -0.040819138288497925, 0.013125213794410229, -0.037579312920570374, -0.046161264181137085, 0.02260046824812889, -0.0487341545522213, -0.011797125451266766, 0.06522699445486069, -0.03713027760386467, 0.04205210506916046, 0.005514885764569044, -0.007019187789410353, -0.006955619435757399, -0.03280556946992874, -0.047221288084983826, 0.006664781365543604, 0.029714370146393776, -0.0016865661600604653, 0.02411249279975891, -0.03472033143043518, -0.019303658977150917, -0.022006383165717125, -0.044068824499845505, 0.023159751668572426, 0.03329601511359215, 0.06353240460157394, -0.03335950896143913, 0.030589396134018898, -0.013473155908286572, 0.011286607012152672, -0.011381817981600761, -0.04300083592534065, -0.0384693443775177, -0.02362857013940811, 0.016803167760372162, 0.011957506649196148, -0.006283114664256573, 0.038795940577983856, -0.01859179697930813, -0.03149828687310219, 0.029531177133321762, 0.023697003722190857, 0.031094223260879517, -0.012203304097056389, -0.021167540922760963, -0.047462351620197296, -0.01477569155395031, 0.055662188678979874, -0.05073336139321327, -0.03212244063615799, -0.026125608012080193, -0.051859546452760696, 0.004734813701361418, -0.07077709585428238, -0.03400218486785889, -0.03177783638238907, 0.007344565819948912, 0.048569925129413605, -0.008027054369449615, 0.03159318491816521, 0.04907159507274628, 0.030848966911435127, 0.015966610983014107, 0.019389672204852104, -0.02277529612183571, 0.03430255129933357, 0.0002331938740098849, 0.023899108171463013, 0.03568518906831741, 0.0016875480068847537, 0.016034362837672234, -0.03259049355983734, 0.022908426821231842, -0.03810883313417435, -0.251567542552948, 0.023468412458896637, 0.011282697319984436, -0.04974396899342537, 0.02242639847099781, -0.008824776858091354, -0.01507494319230318, -0.0279656071215868, -0.02328161709010601, 0.009922553785145283, -0.025595517829060555, -0.029815157875418663, -0.017703531309962273, 0.030274540185928345, 0.005316360853612423, 0.01917782425880432, 0.014563892036676407, -0.029029633849859238, 0.01844763569533825, 0.03719568997621536, -0.0016972520388662815, -0.06314703822135925, 0.00043825258035212755, 0.04612969979643822, 0.019033458083868027, 0.03567885980010033, -0.05473257228732109, 0.049219489097595215, -0.0792246013879776, -0.0007405048818327487, -0.02078855223953724, -0.014055160805583, -0.004000912886112928, -0.010191603563725948, -0.010694902390241623, -0.021675681695342064, 0.06872083246707916, -0.022884080186486244, 0.018186982721090317, 0.020298510789871216, -0.02037961035966873, -0.047657981514930725, 0.002392246387898922, -0.007924179546535015, 0.07434893399477005, -0.008599158376455307, -0.08105313032865524, -0.041959892958402634, -0.05015804246068001, 0.08736118674278259, -0.04713398590683937, -0.05363518372178078, -0.018729550763964653, 0.04224593564867973, 0.014349816367030144, 0.012569203972816467, -0.009514234028756618, -0.019994379952549934, -0.03577379509806633, -0.04227275401353836, -0.02234315313398838, -0.02963254041969776, -0.045980483293533325, -0.039583969861269, 0.02048303186893463, -0.07740627974271774, -0.028717827051877975, -0.029681041836738586, 0.06901439279317856, 0.0319548137485981, -0.04132084548473358, -0.003013879293575883, -0.053164292126894, -0.1076175719499588, -0.012950520031154156, -0.0026200702413916588, -0.02640361711382866, 0.01330992765724659, -0.008081438019871712, 0.05340709164738655, -0.06139753386378288, -0.03880482167005539, 0.03778313845396042, 0.017096316441893578, -0.006153749767690897, -0.02231547236442566, 0.013952688314020634, -0.015225663781166077, 0.00906738918274641, -0.008000636473298073, 0.06864377856254578, -0.04039684683084488, -0.03689124435186386, -0.011499514803290367, -0.011847403831779957, 0.028051631525158882, 0.05650334805250168, 0.01831977441906929, 0.0359027162194252, 0.04246010631322861, 0.02756514959037304, -0.054919030517339706, -0.007994210347533226, -0.02199699357151985, -0.0027529168874025345, 0.004314447287470102, -0.06915593147277832, 0.007271070498973131, 0.04039616137742996, -0.0097914794459939, -0.04818132892251015, -0.04299553856253624, 0.009768332354724407, -0.06392230838537216, -0.03891425207257271, -0.045206137001514435, 0.028603948652744293, 0.01438924577087164, 0.015541213564574718, -0.00713393883779645, -0.07189247757196426, 0.04432559013366699, -0.0003160236810799688, 0.0026968959718942642, -0.05194244161248207, -0.0451052263379097, 0.012872840277850628, -0.003979390952736139, 0.027894001454114914, 0.004241967108100653, -0.014258068986237049, 0.023689445108175278, 0.0010854048887267709, -0.020453324541449547, 0.03464854881167412, -0.036591969430446625, -0.02739499881863594, -0.020075969398021698, 0.008366440422832966, 0.003334803506731987, -0.0355432853102684, 0.013038987293839455, -0.011093134991824627, 0.009244048036634922, 0.07154768705368042, 0.02267213724553585, 0.05882912874221802, 0.00894287321716547, -0.003921182360500097, 0.02978004701435566, 0.034734394401311874, -0.03811591491103172, 0.004320613574236631, -0.03498402610421181, -0.00817628763616085, -0.020395560190081596, 0.0036860511172562838, -0.023246120661497116, 0.005047451239079237, -0.017478633671998978, 0.005562852136790752, -0.0205197986215353, 0.016179628670215607, -0.008519047871232033, 0.002303374232724309, 0.030080784112215042, 0.027388600632548332, 0.034482963383197784, 0.0008016665233299136, -0.010663020424544811, 0.03383438661694527, 0.028540676459670067, -0.01443492528051138, 0.010217939503490925, 0.027684789150953293, -0.021498918533325195, 0.016877230256795883, 0.03914262354373932, 0.00230979616753757, 0.008983075618743896, 0.014912364073097706, -0.019344642758369446, 0.02050672471523285, 0.02400256134569645, 0.038925543427467346, 0.02513100579380989, -0.024581406265497208, -0.03767320513725281, -0.012876412831246853, -0.0039391061291098595, -0.013417677953839302, -0.01657087914645672, -0.0055861398577690125, -0.03165442869067192, -0.043256975710392, -0.06598924100399017, 0.03282720223069191, 0.01981697604060173, 0.013818563893437386, -0.0025117381010204554, -0.02421092428267002, 0.006094018928706646, -0.040274932980537415, 0.023780884221196175, 0.05310969799757004, -0.06432902812957764, 0.007218847516924143, -0.014541293494403362, -0.013960478827357292, 0.006100906990468502, 0.04370729625225067, -0.05601529777050018, -0.027764173224568367, -0.00876674521714449, 0.011236201040446758, -0.010261827148497105, -0.024772901087999344, -0.0250033400952816, 0.0466727539896965, -0.012938120402395725, 0.03490819036960602, -0.010379527695477009, -0.0014083426212891936, -0.0016415093559771776, -0.01170737948268652, 0.02595355734229088, -0.012775256298482418, 0.003860476892441511, 0.02011183835566044, -0.01483418419957161, 0.04162207245826721, -0.04875172674655914, 0.04542631655931473, 0.03673363849520683, -0.009535342454910278, -0.029544470831751823, -0.03323476389050484, 0.004045603796839714, 0.0014675304992124438, 0.030500784516334534, 0.0037334291264414787, 0.010776665061712265, -0.05587507784366608, -0.014282623305916786, -0.016308540478348732, 0.0065107401460409164, -0.010387507267296314, -0.0030249711126089096, 0.011399180628359318, 0.08306468278169632, 0.015459617599844933, 0.029434530064463615, -0.03970129415392876, -0.041691843420267105, 0.05727928876876831, -0.05463052913546562, -0.03924643620848656, -0.014251204207539558, -0.05099654942750931, 0.05193459615111351, 0.034251075237989426, 0.03785600885748863, -0.04813503101468086, 0.02366020902991295, 0.03761683404445648, -0.0037563603837043047, 0.05103969946503639, -0.02594280056655407, 0.02985255792737007, -0.030341265723109245, -0.015492396429181099, -0.08095501363277435, -0.03609728068113327, 0.01142268255352974, -0.0023538076784461737, -0.037509024143218994, 0.0031602380331605673, -0.033971432596445084, 0.05344738811254501, -0.05594800040125847, -0.012439697980880737, 0.053602688014507294, -0.008815594017505646, 0.024380512535572052, 0.03534235805273056, -0.07020481675863266, 0.05020847171545029, 0.048080042004585266, -0.02305079624056816, -0.006855752319097519, -0.01640463061630726, 0.07021820545196533, 0.010461824014782906, 0.016291595995426178, -0.003665005089715123, -0.01647910848259926, 0.0744994729757309, 0.010974077507853508, -0.01513544749468565, 0.05618888884782791, -0.009985722601413727, 0.04174508526921272, 0.03203033655881882, 0.010298287495970726, 0.0011856998316943645, 0.02567249909043312, 0.0008216423448175192, -0.07203038036823273, 0.038582831621170044, 0.012668970040977001, -0.01659514755010605, -0.04420851916074753, 0.06639823317527771, 0.011645566672086716, -0.01935397833585739, -0.0512215755879879, 0.045666519552469254, -0.04341188818216324, -0.03684346750378609, -0.0184611938893795, -0.02185356616973877, -0.06065365672111511, 0.05474618449807167, 0.002028560033068061, -0.005355012137442827, 0.04674853757023811, -0.008509145118296146, 0.015303688123822212, -0.0037051313556730747, 0.06982853263616562, 0.08856432884931564, 0.03399126976728439, 0.010750965215265751, 0.059807054698467255, -0.012878370471298695, -0.0487617552280426, 0.0007290163193829358, -0.0020558463875204325, -0.007852541282773018, -0.031472112983465195, 0.013892916962504387, 0.07550550252199173, -0.013002656400203705, 0.062056221067905426, -0.009887906722724438, 0.0037058552261441946, -0.03914646804332733, -0.019167132675647736, 0.024436157196760178, 0.04688854515552521, 0.03544515743851662, 0.04612676426768303, -0.03181222453713417, -0.01786864548921585, 0.040734920650720596, -0.02700521983206272, -0.00610368000343442, 0.017077146098017693, -0.00343571905978024, 0.0057860324159264565, 0.010725471191108227, 0.05835120752453804, 0.08262930065393448, -0.03224283084273338, -0.034129876643419266, 0.018661607056856155, 0.03216147422790527, 0.0029764005448669195, 0.04827888682484627, 0.01790941134095192, 0.016772111877799034, -0.00047724705655127764, -0.014568865299224854, -0.005369104910641909, -0.0196346715092659, -0.015058030374348164, 0.04553944617509842, -0.0011569363996386528, -0.023783812299370766, 0.03631381690502167, 0.0013876089360564947, -0.04304824024438858, -0.041452184319496155, -0.04811357334256172, -0.035126861184835434, -0.0578889437019825, -0.007144876755774021, 0.0034042769111692905, -0.025759216398000717, -0.057542283087968826, -0.06021798774600029, 0.0012849189806729555, -0.008713453076779842, 0.0011546004097908735, -0.06679296493530273, -0.039956264197826385, 0.022042755037546158, 0.01029708981513977, -0.0022701637353748083, 0.017944810912013054, 0.06968947499990463, 0.0013392145046964288, -0.020923996344208717, -0.016632700338959694, 0.02799636870622635, 0.03975464031100273, -0.017388004809617996, 0.02073468640446663, -0.07751158624887466, 0.0135408416390419, 0.037646546959877014, 0.003974386025220156, -0.06342379003763199, 0.0323408879339695, 0.030314387753605843, 0.001031915657222271, 0.05326811224222183, -0.019695280119776726, 0.002877658698707819, -0.05786430090665817, 0.004524859134107828, -0.017490943893790245, 0.005738944746553898, 0.07181255519390106, -0.02569408155977726, 0.057438746094703674, 0.010123520158231258, -0.019540173932909966, -0.02793937176465988, 0.0002899142855312675, -0.029057078063488007, 0.025204738602042198, -0.034640125930309296, -0.010549488477408886, -0.037172261625528336, -0.05903276428580284, -0.026141932234168053, 0.010074828751385212, -0.04418395459651947, -0.04918551817536354, 0.00472291000187397, -0.005984968040138483, -0.00576392887160182, 0.062230244278907776, -0.05082758143544197, -0.011075625196099281, -0.03097005933523178, -0.005586149636656046, -0.0031423598993569613, 0.021484028548002243, 0.011892957612872124, 0.04027245566248894, 0.0388757586479187, -0.01063366699963808, -0.0032162514980882406, -0.023804113268852234, 0.036703843623399734, 0.05380115285515785, -0.005188663024455309, 0.018177669495344162 ]
[ -0.0655965656042099, -0.006155498791486025, -0.034293033182621, -0.00782786961644888, 0.0401538647711277, -0.038317348808050156, -0.03339172899723053, -0.012084520421922207, -0.03211246430873871, -0.033775024116039276, -0.02463401108980179, -0.03659921884536743, 0.004787059035152197, -0.031142735853791237, 0.050648774951696396, 0.01607070118188858, -0.0002379597135586664, -0.03447580337524414, -0.0415010042488575, 0.016772054135799408, 0.017054155468940735, 0.004567129537463188, -0.0017678611911833286, -0.04458282142877579, 0.007353919558227062, 0.014124857261776924, 0.031959425657987595, -0.02835043892264366, -0.01170075312256813, -0.19009821116924286, 0.04520151764154434, -0.0024953593965619802, 0.02609141729772091, -0.0024696781765669584, -0.010564790107309818, 0.06479157507419586, -0.059073556214571, 0.0032345557119697332, -0.01506070327013731, 0.04669244587421417, 0.021373342722654343, -0.003637421177700162, -0.07678443938493729, -0.002055963734164834, 0.0521249994635582, -0.015456090681254864, 0.016050370410084724, -0.041002269834280014, 0.017279494553804398, 0.02233896404504776, -0.024146562442183495, 0.037343382835388184, -0.006790942046791315, -0.01760261133313179, -0.04291398823261261, 0.004436202812939882, 0.02713528461754322, 0.0769265666604042, 0.046930886805057526, -0.02423243224620819, 0.0035627209581434727, -0.024010565131902695, -0.12418098747730255, 0.12784592807292938, -0.0026343779172748327, 0.016834553331136703, -0.02879931405186653, 0.0059298500418663025, -0.01581203192472458, 0.0846482589840889, -0.043022170662879944, -0.005526933819055557, -0.053680580109357834, 0.033705633133649826, -0.035239078104496, -0.03753660246729851, 0.008950542658567429, 0.0032314867712557316, 0.045361027121543884, -0.028823865577578545, -0.046269964426755905, -0.02767561376094818, -0.012687181122601032, -0.050757814198732376, -0.0012194366427138448, -0.010105626657605171, -0.019177138805389404, 0.03736760839819908, 0.018052678555250168, -0.011621839366853237, 0.027790607884526253, -0.06530746072530746, 0.032464902848005295, 0.03579115867614746, -0.07512810081243515, 0.004707373678684235, 0.025295257568359375, 0.017870698124170303, -0.046556126326322556, 0.4133921265602112, -0.016891375184059143, -0.0033142725005745888, 0.027904782444238663, -0.020242178812623024, 0.05024872347712517, 0.020194875076413155, -0.004583786707371473, 0.013217308558523655, -0.02565646916627884, -0.04598357155919075, 0.015740297734737396, -0.0068837362341582775, 0.1014324501156807, -0.04922126978635788, 0.05163491144776344, -0.0036633608397096395, -0.024270903319120407, 0.0023090550675988197, 0.012328429147601128, 0.04261886700987816, -0.03199446201324463, -0.008342423476278782, 0.0275725107640028, 0.004616986494511366, 0.004781905096024275, 0.03164483606815338, 0.05359143018722534, 0.03403123468160629, 0.06179321929812431, 0.028205370530486107, 0.033525500446558, -0.0030759621877223253, -0.031032895669341087, -0.0006780463154427707, -0.037171438336372375, 0.03349654749035835, 0.023119831457734108, -0.032875921577215195, 0.05971293896436691, 0.0143352672457695, 0.01839892938733101, -0.05922658368945122, 0.028298048302531242, 0.028872866183519363, 0.015802737325429916, 0.07253959029912949, -0.015322376042604446, 0.009285244159400463, -0.04773373529314995, -0.01415268611162901, -0.03006955422461033, 0.005017820745706558, -0.017069218680262566, -0.01656171679496765, 0.025751393288373947, 0.032453496009111404, 0.08524163067340851, -0.02568669803440571, -0.04214830324053764, 0.018942728638648987, -0.01698988862335682, -0.026377510279417038, -0.027461431920528412, 0.0031475434079766273, 0.02761451154947281, -0.10913075506687164, -0.04256795346736908, 0.0070076584815979, -0.026007885113358498, -0.03621850535273552, -0.026095395907759666, 0.0046126265078783035, -0.01143177505582571, 0.0016891094855964184, 0.031404636800289154, -0.015986748039722443, -0.038474272936582565, 0.007866762578487396, 0.10047609359025955, 0.04550524055957794, -0.03256872668862343, 0.00028826724155806005, 0.0027265697717666626, -0.005317308008670807, -0.02860148251056671, -0.08822043240070343, -0.06178072839975357, -0.008573902770876884, 0.008640163578093052, -0.018194783478975296, -0.0004424619546625763, -0.004579757805913687, -0.013737130910158157, 0.010612091980874538, -0.016326168552041054, -0.0038124597631394863, 0.04468997195363045, -0.04002062603831291, 0.004317034501582384, -0.016878705471754074, 0.002397563075646758, 0.04812651500105858, 0.013345811516046524, 0.006964212749153376, -0.037338901311159134, 0.012962421402335167, 0.03648524731397629, -0.020823415368795395, 0.08524847030639648, -0.019219007343053818, -0.0546748973429203, -0.030289875343441963, -0.0010330016957595944, -0.02735981158912182, -0.040942151099443436, -0.07950669527053833, -0.026586979627609253, 0.008987068198621273, 0.06585916876792908, 0.028010031208395958, -0.05797616392374039, -0.0835188776254654, -0.04932553321123123, -0.34302234649658203, -0.012740672565996647, 0.01414364855736494, -0.02427780069410801, 0.025208035483956337, -0.10594530403614044, -0.009263135492801666, -0.027885211631655693, -0.00143763842061162, -0.0006488895160146058, 0.09501317888498306, -0.03240039199590683, 0.06911935657262802, -0.08289666473865509, 0.022762084379792213, 0.05821346491575241, -0.012052975594997406, -0.03268102556467056, -0.03647570312023163, 0.05994052812457085, 0.019081085920333862, -0.039710305631160736, -0.02031150832772255, -0.0728602185845375, -0.006395514588803053, -0.023050114512443542, 0.08559896796941757, 0.029583802446722984, 0.06949561089277267, -0.03166764974594116, 0.049496643245220184, 0.0308748260140419, -0.038194894790649414, -0.14078772068023682, -0.04873262718319893, -0.018223045393824577, 0.029602104797959328, 0.08022253960371017, 0.02353413589298725, -0.009690039791166782, -0.00460404297336936, 0.04325109347701073, -0.03251802548766136, -0.04759029671549797, -0.02246658131480217, 0.0035432560835033655, -0.004525919910520315, -0.027201490476727486, -0.0038814786821603775, 0.08043808490037918, 0.0032600548584014177, 0.036510903388261795, 0.001986629096791148, 0.022195877507328987, -0.028554154559969902, -0.014693640172481537, -0.060781627893447876, 0.002127027604728937, -0.0050134300254285336, -0.01487675216048956, 0.04571176692843437, 0.038547080010175705, 0.04418209195137024, -0.08173912018537521, -0.003331027692183852, 0.010744808241724968, 0.007524670101702213, 0.012021920643746853, 0.08015582710504532, 0.013640479184687138, 0.0007210291223600507, 0.11858483403921127, -0.012821383774280548, 0.026289111003279686, 0.00645532226189971, 0.062208063900470734, 0.005895748734474182, 0.05313025042414665, 0.016930870711803436, -0.0409633107483387, 0.039818134158849716, 0.04246893897652626, 0.03057069517672062, -0.03622787073254585, -0.017175108194351196, 0.047532275319099426, -0.031288906931877136, -0.009872719645500183, 0.06752713024616241, -0.01405511237680912, -0.008439617231488228, -0.00045803230023011565, -0.024799074977636337, 0.019449429586529732, 0.07707279920578003, 0.025807011872529984, -0.24232248961925507, 0.01381908543407917, 0.04271175339818001, 0.09275894612073898, 0.011461148038506508, -0.018441738560795784, 0.03245445340871811, -0.08755377680063248, -0.05417874455451965, 0.022025752812623978, -0.0016676929080858827, 0.040301788598299026, 0.011419976130127907, 0.008209946565330029, -0.01694050244987011, 0.007277023047208786, 0.08233653008937836, 0.010287822224199772, 0.0031667568255215883, 0.001084841787815094, -0.020212562754750252, -0.02247064933180809, 0.15261361002922058, -0.012743552215397358, -0.00041862696525640786, -0.015304489061236382, -0.019597047939896584, -0.02105247974395752, 0.02930467389523983, 0.02695149928331375, -0.017151039093732834, -0.003571596462279558, 0.008969953283667564, -0.004968160297721624, 0.05905815213918686, -0.048509154468774796, -0.018252551555633545, -0.004322639666497707, 0.026607360690832138, -0.03423421084880829, -0.03413109481334686, 0.03639168664813042, -0.06612928211688995, -0.016875198110938072, 0.02099212259054184, 0.02564243972301483, 0.02304365485906601, 0.03128574416041374, -0.03791985660791397, 0.014169140718877316, -0.007575074676424265, -0.023658834397792816, -0.0396939255297184, 0.014400297775864601, 0.030007274821400642, 0.05183753743767738, 0.05859171599149704, 0.03606373816728592, 0.04357662424445152, 0.0220964178442955, 0.011869176290929317, -0.07944411039352417, 0.11449427157640457, 0.06891202926635742, -0.013621127232909203 ]
[ 0.01108046155422926, 0.00015047138731461018, -0.003933836705982685, -0.013853203505277634, 0.03035096451640129, 0.02924422174692154, 0.022102991119027138, 0.027003087103366852, -0.023536687716841698, -0.016800997778773308, -0.009024807251989841, 0.03710290417075157, 0.004725015722215176, 0.01953119784593582, 0.027791546657681465, -0.029366014525294304, 0.007632188033312559, -0.028359530493617058, 0.009728439152240753, -0.04834359511733055, -0.022136438637971878, 0.0244398545473814, 0.04961029067635536, 0.00008513655484421179, 0.01108506228774786, -0.010208697989583015, -0.05742799863219261, 0.012091604992747307, 0.03497372567653656, -0.12881352007389069, -0.030133845284581184, -0.026843952015042305, 0.011171828955411911, -0.018186507746577263, 0.0065367501229047775, 0.014102214016020298, -0.015661338344216347, 0.024738723412156105, -0.021496092900633812, 0.004714771173894405, 0.030657898634672165, -0.008079824037849903, -0.01001791562885046, 0.0016248213360086083, -0.01409261766821146, -0.033242225646972656, -0.010072104632854462, -0.0318477526307106, 0.006141419522464275, -0.021482400596141815, -0.03519831970334053, 0.017603611573576927, 0.008991550654172897, -0.0026313767302781343, -0.0037555035669356585, 0.009507590904831886, 0.015569852665066719, 0.005545975640416145, 0.028257284313440323, -0.023633312433958054, -0.017891574651002884, -0.014711359515786171, -0.05707791447639465, -0.018839707598090172, 0.004885641857981682, -0.04301771894097328, 0.009602471254765987, 0.008969232439994812, 0.015459041111171246, 0.01800132915377617, 0.011558991856873035, 0.0015904117608442903, -0.049060314893722534, 0.009207645431160927, 0.0006254325271584094, -0.015088727697730064, -0.02303621545433998, -0.04010152444243431, -0.018015814945101738, -0.00010232694330625236, -0.029664065688848495, 0.014226787723600864, 0.0495833121240139, 0.02021965943276882, 0.012213297188282013, -0.007596808951348066, -0.006736732553690672, 0.02103433385491371, -0.015670910477638245, -0.02398848347365856, -0.008196876384317875, -0.029055271297693253, -0.004654767457395792, 0.027764376252889633, -0.08871246129274368, 0.013709831051528454, 0.03498365357518196, -0.04893847182393074, -0.024144262075424194, 0.8279997706413269, 0.016400685533881187, -0.005856253206729889, 0.03044205531477928, 0.0013674829388037324, 0.03855925053358078, 0.022767025977373123, 0.006949855946004391, -0.028172658756375313, 0.02060188539326191, -0.02734537608921528, 0.020433148369193077, -0.05354933813214302, 0.011550203897058964, 0.02091338112950325, 0.02928111143410206, 0.008275630883872509, 0.005322260316461325, 0.01883331686258316, 0.012440395541489124, 0.0201809611171484, -0.0022143821697682142, -0.005056023597717285, 0.016441386193037033, 0.025442197918891907, -0.030163636431097984, -0.17190712690353394, 0.00858212634921074, -6.389057915848836e-33, 0.022215088829398155, -0.043598972260951996, 0.015293496660888195, -0.0022738794796168804, 0.015907341614365578, 0.009159122593700886, 0.010045377537608147, 0.028518589213490486, -0.013328121043741703, -0.04525327682495117, 0.006179324351251125, -0.04190688952803612, -0.034447070211172104, 0.00589091656729579, -0.01330425776541233, 0.0037551173008978367, -0.008608001284301281, 0.054532911628484726, 0.013516928069293499, 0.03885006159543991, 0.04017652943730354, 0.05015971511602402, 0.009295410476624966, 0.014856213703751564, -0.026207417249679565, 0.004230494610965252, 0.02043619006872177, 0.006412486545741558, 0.0011251862160861492, -0.038060616701841354, -0.01817173697054386, 0.012996760196983814, 0.01867634244263172, -0.0404181033372879, -0.025752130895853043, -0.04955897480249405, -0.03691432997584343, -0.007190094795078039, -0.013083888217806816, -0.013561850413680077, -0.038767009973526, 0.023807259276509285, -0.06292521953582764, -0.04315129294991493, -0.05399148166179657, 0.03829892724752426, -0.020242413505911827, 0.05584275722503662, -0.01663322001695633, 0.03122120350599289, 0.03041534125804901, 0.02974075824022293, -0.0182619821280241, 0.005579070653766394, -0.007945637218654156, 0.017602453008294106, -0.014489668421447277, -0.00794579740613699, 0.03944716230034828, -0.026505926623940468, 0.026183415204286575, -0.008779557421803474, 0.0021433616057038307, 0.0278149601072073, 0.02228795550763607, 0.015649426728487015, 0.007821625098586082, 0.016297638416290283, 0.019584421068429947, 0.012610148638486862, -0.07672414928674698, 0.015563400462269783, -0.033354707062244415, -0.029316239058971405, 0.02498221956193447, -0.01549967285245657, -0.021399129182100296, -0.016532232984900475, 0.009715726599097252, 0.058255385607481, -0.005961896385997534, -0.007484201341867447, 0.006368355825543404, -0.04906599223613739, -0.017991485074162483, -0.03364263474941254, 0.06432793289422989, -0.01972220651805401, -0.02429639734327793, 0.009287667460739613, 0.041393984109163284, 0.03201670199632645, 0.007159859407693148, -0.001518131117336452, -0.03671509772539139, 6.442919067003513e-33, 0.016974134370684624, 0.04036656394600868, -0.03202817216515541, 0.010373566299676895, 0.032350778579711914, -0.030124343931674957, 0.04295772314071655, 0.004098525270819664, -0.016883190721273422, -0.0028516463935375214, -0.027108347043395042, -0.0012676686746999621, -0.01654454506933689, 0.01827595941722393, 0.015144283883273602, 0.003307236358523369, -0.022602040320634842, 0.02727874554693699, 0.02677028439939022, 0.006059976760298014, -0.051193010061979294, -0.010320547968149185, -0.011409896425902843, 0.008673630654811859, 0.015513335354626179, 0.021797560155391693, -0.009323072619736195, 0.00031347869662567973, -0.0022444897331297398, 0.014935704879462719, 0.015344539657235146, 0.011484970338642597, -0.02536274679005146, -0.022738244384527206, 0.009307377971708775, 0.04131835699081421, 0.021472245454788208, 0.005185566842556, -0.00901140458881855, 0.020390471443533897, 0.07582852989435196, 0.04726448655128479, -0.02151579223573208, 0.013477616012096405, 0.0034794900566339493, 0.0007508643320761621, -0.010213715024292469, 0.009938518516719341, -0.0006036703707650304, -0.005202773027122021, -0.014154146425426006, 0.0022965960670262575, 0.04920642450451851, 0.00427109282463789, 0.03296288102865219, -0.02273447997868061, -0.0012799795949831605, 0.06917602568864822, -0.0403050035238266, -0.011567899957299232, -0.050661005079746246, -0.02710963413119316, 0.0017739671748131514, 0.017780302092432976, -0.03567134961485863, -0.01831240952014923, -0.03272061049938202, 0.025834443047642708, -0.008165501989424229, -0.011124184355139732, 0.0294012613594532, -0.029683582484722137, 0.023498769849538803, 0.044941361993551254, 0.01263618003576994, 0.00601534266024828, 0.022645458579063416, 0.028067490085959435, -0.031168494373559952, 0.015154157765209675, 0.010008827783167362, 0.024472879245877266, -0.015742775052785873, -0.00902953464537859, -0.004093905910849571, 0.021504772827029228, -0.029067886993288994, 0.028502753004431725, 0.02968982793390751, 0.029521280899643898, 0.028644271194934845, 0.018809914588928223, 0.004313772544264793, 0.04463508725166321, 0.044947993010282516, -1.2566213847264862e-8, -0.037967827171087265, -0.03337262198328972, -0.006731950677931309, 0.034774526953697205, -0.012361868284642696, 0.01725858822464943, -0.008652946911752224, -0.0153047451749444, 0.0014580792048946023, -0.02122347243130207, 0.047066327184438705, -0.01808570884168148, -0.003777044592425227, 0.012858439236879349, -0.012744516134262085, 0.005383944604545832, 0.016974205151200294, 0.012481891550123692, 0.02094140648841858, -0.016428999602794647, -0.03392629325389862, 0.019323257729411125, 0.0018459113780409098, -0.01234588772058487, -0.0697217732667923, -0.01135921385139227, 0.02344784140586853, -0.07447275519371033, -0.06288634240627289, -0.011730007827281952, 0.01009298674762249, -0.025845319032669067, -0.03555716946721077, -0.02118329331278801, 0.02274402603507042, -0.029145419597625732, -0.0187394917011261, -0.011075333692133427, 0.029223134741187096, -0.005311809480190277, -0.02342205122113228, -0.019240397959947586, 0.03816825523972511, -0.05325604975223541, 0.00961072463542223, -0.04424338787794113, -0.02177361026406288, 0.013901302590966225, 0.0014728421811014414, -0.02114241197705269, 0.022135498002171516, 0.0016624436248093843, 0.030189136043190956, 0.023330269381403923, 0.05098455026745796, 0.00043218908831477165, -0.015512091107666492, 0.023732947185635567, -0.06045476347208023, -0.02801079861819744, 0.0029874586034566164, 0.009214421734213829, 0.017235292121767998, -0.02031549997627735 ]
ipython-disable-autocomplete
https://markhneedham.com/blog/2023/10/29/ipython-disable-autocomplete
false
2023-10-16 00:44:37
ClickHouse: Code: 60. DB::Exception: Table does not exist
[ "clickhouse", "clickhouse-local", "til" ]
[ "TIL" ]
:icons: font I've been playing with https://www.markhneedham.com/blog/2023/07/03/clickhouse-unpack-unnest-array/[clickhouse-local again^] this week and ran into an interesting issue when persisting a table that I thought I'd document for future Mark. You can install ClickHouse on your machine by running the following command: [source, bash] ---- curl https://clickhouse.com/ | sh ---- Or you could use HomeBrew if you're working on a Mac: [source, bash] ---- brew install clickhouse ---- We can then launch clickhouse-local, which lets you run ClickHouse in what I think of as an embedded mode. I'm also going to specify a directory for it to store any data that I create: [source, bash] ---- ./clickhouse local -m --path people.chdb ---- We're going to create a table based on the following CSV file: .people.csv [format="csv", options="header"] |=== include::content/2023/10/16/data/people.csv[] |=== Which we can do by running this query: [source, sql] ---- create table people ENGINE=MergeTree() ORDER BY tuple() AS select * from file('people.csv', CSVWithNames); ---- If we then query the `peoples` table: [source, sql] ---- SELECT * FROM people ---- .Output [source, text] ---- Query id: 8567a2c0-5a98-4981-9097-fd5ed33d173e ┌─name────┬─hobby────┐ │ Mark │ tennis │ │ Michael │ football │ │ James │ cricket │ └─────────┴──────────┘ 3 rows in set. Elapsed: 0.002 sec. ---- All good so far! But if we close that session, launch ClickHouse Local again, and then re-run the query we'll get the following error: .Output [source, text] ---- Query id: ffab38e6-b39c-4be4-88b0-834f43a67cd9 0 rows in set. Elapsed: 0.262 sec. Received exception: Code: 60. DB::Exception: Table _local.people does not exist. (UNKNOWN_TABLE ---- The problem that we've run into is described on https://github.com/ClickHouse/ClickHouse/issues/31163[this GitHub issue^]: [quote] ____ The behavior is expected. The default database of clickhouse-local is using the Memory engine that does not persist the `.sql` metadata files. ____ So if we want the data to be persisted, we need to first create a database, rather than using the default one. Let's do that: [source, sql] ---- CREATE DATABASE mark; ---- .Output [soruce, text] ---- Query id: 104191d4-9d63-4888-8e40-f754270233d4 Ok. 0 rows in set. Elapsed: 0.003 sec. ---- Not forgetting to then switch to that database: [source, sql] ---- USE mark; ---- And then we'll run our create table command again. Once we've done that, we'll close clickhouse-local and launch it again. Let's check that our database is still there: [source, sql] ---- SHOW DATABASES: ---- .Output [soruce, text] ---- Query id: 56eb7dd5-20b5-46db-89da-f0f0d0b87293 ┌─name───────────────┐ │ INFORMATION_SCHEMA │ │ _local │ │ information_schema │ │ mark │ │ system │ └────────────────────┘ 5 rows in set. Elapsed: 0.001 sec. ---- And we can query it too: [source, sql] ---- select * from mark.people; ---- .Output [soruce, text] ---- Query id: 77c8c500-3309-4dd3-8244-e178af40fb41 ┌─name────┬─hobby────┐ │ Mark │ tennis │ │ Michael │ football │ │ James │ cricket │ └─────────┴──────────┘ 3 rows in set. Elapsed: 0.002 sec. ----
In this post, we'll learn how to make sure a table is really persisted when using clickhouse-local.
uploads/2023/10/clickhouse-table-banner.png
[ 0.0010864592622965574, 0.04093542322516441, 0.0059958104975521564, 0.0120047926902771, 0.10884201526641846, 0.002813647734001279, 0.020338213071227074, 0.05365651100873947, -0.02709425799548626, -0.015684427693486214, -0.01881721243262291, -0.020376306027173996, -0.06771907210350037, 0.024029241874814034, -0.0019039380131289363, 0.06886337697505951, 0.08578827977180481, 0.016812613233923912, 0.013361901976168156, 0.002105836058035493, 0.019139502197504044, 0.05332539975643158, -0.01523458119481802, 0.05495711788535118, 0.030595440417528152, 0.02664467878639698, 0.004988902248442173, -0.01891176961362362, -0.06279625743627548, -0.0057323225773870945, 0.021058470010757446, -0.012507972307503223, 0.022966429591178894, -0.025111794471740723, 0.020545125007629395, -0.0036654765717685223, -0.007401031907647848, 0.026871686801314354, 0.005328596103936434, 0.008515439927577972, -0.07791569828987122, 0.015859093517065048, -0.0014726630179211497, 0.013353751972317696, -0.02313927747309208, 0.005783264059573412, -0.042061977088451385, -0.0014645173214375973, -0.018601208925247192, 0.002886475995182991, -0.05069458857178688, 0.04836630821228027, -0.028677020221948624, -0.04641694203019142, 0.021859709173440933, 0.03551347553730011, 0.029138270765542984, -0.04911495000123978, 0.01595049723982811, -0.03374751657247543, 0.009701722301542759, -0.0031236442737281322, 0.013891973532736301, 0.03478439897298813, 0.0027801361866295338, -0.0311747957020998, 0.000048571062507107854, 0.0370047390460968, -0.04904630035161972, -0.002888969611376524, -0.0019926216918975115, 0.0014219207223504782, -0.038292426615953445, -0.038478508591651917, 0.024643784388899803, -0.04359637573361397, -0.02328156866133213, 0.041536394506692886, 0.04519034922122955, 0.0640036091208458, -0.027526991441845894, 0.0018980156164616346, 0.031065087765455246, 0.033046260476112366, 0.019513044506311417, -0.0579313188791275, -0.027592474594712257, -0.029007213190197945, -0.059484995901584625, 0.057722270488739014, 0.02392440475523472, -0.03695838898420334, 0.011099355295300484, 0.032308295369148254, 0.0022757158149033785, 0.009199939668178558, 0.012328394688665867, 0.010884471237659454, -0.004525876138359308, -0.016139857470989227, -0.0524970106780529, -0.0051569887436926365, 0.022674281150102615, 0.04280078783631325, -0.09333775192499161, 0.036119624972343445, -0.015018658712506294, -0.0067679001949727535, 0.013922435231506824, 0.0012532203691080213, -0.006640106905251741, 0.0004432489804457873, -0.016903234645724297, 0.005099273752421141, -0.08507287502288818, 0.07406817376613617, 0.022776568308472633, -0.017505735158920288, -0.0009676612680777907, 0.011038613505661488, 0.04976990818977356, 0.03359387442469597, -0.020057175308465958, 0.08523429185152054, 0.007872355170547962, 0.016149977222085, -0.01916806772351265, 0.0341620072722435, -0.000014594994354411028, -0.0757795125246048, -0.008061072789132595, 0.05173170194029808, 0.0013075792230665684, 0.021229764446616173, 0.011473561637103558, -0.0026630491483956575, 0.007123136892914772, -0.013174845837056637, 0.05448390543460846, 0.01908855326473713, 0.01222771406173706, -0.015802757814526558, 0.019791392609477043, 0.022982118651270866, 0.041902173310518265, 0.005185573827475309, 0.00465155765414238, -0.056992411613464355, -0.03839873522520065, 0.037137314677238464, 0.03243967145681381, 0.03141217306256294, 0.07200583815574646, -0.05463980510830879, 0.019280415028333664, 0.12141282856464386, 0.035812631249427795, -0.009971249848604202, -0.007797034457325935, -0.0025703199207782745, 0.03194551542401314, 0.026915179565548897, 0.006119932979345322, 0.020222118124365807, 0.025344962254166603, -0.01282892283052206, -0.0073632001876831055, 0.024518253281712532, -0.030376659706234932, 0.0036139211151748896, -0.05044453218579292, -0.06578834354877472, 0.07617346942424774, -0.039626218378543854, 0.0029422950465232134, 0.037075258791446686, 0.09033381193876266, 0.04745534062385559, 0.03129497915506363, 0.022507594898343086, -0.09607505053281784, 0.03565377742052078, -0.013678676448762417, -0.01276910025626421, 0.024618271738290787, -0.004134348127990961, 0.0769607424736023, 0.020752212032675743, 0.0027366336435079575, 0.04601036012172699, -0.06374289095401764, -0.08391636610031128, -0.022276731207966805, -0.014476271346211433, 0.06083707511425018, -0.04525602236390114, 0.0036165856290608644, 0.06760562211275101, 0.018760718405246735, 0.04429814592003822, -0.02123918943107128, 0.019612431526184082, 0.037843845784664154, -0.05559021979570389, -0.07018115371465683, 0.02805476076900959, 0.03468380868434906, -0.0032459974754601717, 0.0016240776749327779, 0.019509732723236084, -0.008500328287482262, -0.002253886079415679, 0.04449966549873352, -0.0037385541945695877, 0.04983825981616974, -0.005308729596436024, 0.026693115010857582, -0.009255860932171345, 0.04080842062830925, -0.05162009969353676, 0.0015047844499349594, 0.03406553342938423, -0.010940003208816051, 0.0018695201724767685, 0.009001536294817924, 0.12436780333518982, 0.051450442522764206, -0.026997976005077362, -0.04515600949525833, 0.025865381583571434, 0.021468479186296463, -0.03662848845124245, 0.020526664331555367, -0.02645290456712246, -0.00695202499628067, 0.009764027781784534, -0.02578282356262207, -0.030717313289642334, 0.008390508592128754, -0.0425165593624115, 0.01070797722786665, 0.05529249459505081, -0.0031235499773174524, 0.0385635606944561, 0.013883584178984165, -0.04289090260863304, 0.005115121603012085, -0.04089333862066269, -0.05315360054373741, 0.0010120715014636517, 0.03282974287867546, -0.01862458698451519, 0.025038432329893112, -0.042757775634527206, -0.015113894827663898, -0.032014183700084686, -0.047605689615011215, 0.0472935289144516, 0.018943123519420624, 0.06223989650607109, -0.02643464505672455, 0.04956112429499626, -0.02240745536983013, -0.0016971646109595895, -0.005441192537546158, -0.03429019823670387, -0.031139248982071877, -0.027587300166487694, -0.0005643486510962248, 0.004319815430790186, 0.003981723450124264, 0.014392041601240635, 0.002534489845857024, -0.015050533227622509, 0.026442155241966248, -0.006873054895550013, 0.025738578289747238, 0.0022436650469899178, -0.00301579968072474, -0.037743132561445236, -0.016132166609168053, 0.04757482558488846, -0.05404987558722496, -0.017877640202641487, 0.014164001680910587, -0.05931993946433067, 0.022369656711816788, -0.07412952929735184, -0.04814349114894867, -0.02401142008602619, 0.02338014729321003, 0.04018883407115936, 0.009145510382950306, -0.00265640951693058, 0.05631377920508385, 0.016257204115390778, 0.013369714841246605, 0.024246105924248695, -0.012921289540827274, 0.035744499415159225, 0.025283487513661385, 0.020341502502560616, 0.0418696254491806, -0.017091253772377968, 0.005486117675900459, -0.052022095769643784, 0.011494657956063747, -0.05103447288274765, -0.2788558602333069, 0.03048465959727764, -0.030104124918580055, -0.04800746962428093, 0.020829353481531143, -0.017234502360224724, 0.014924061484634876, -0.039732351899147034, -0.015097531490027905, 0.01393621414899826, -0.02607049234211445, -0.03387003019452095, -0.01296552550047636, 0.007526458706706762, 0.025747323408722878, 0.016823088750243187, 0.02452229894697666, -0.04446575790643692, 0.013229770585894585, 0.0385555699467659, -0.0041074929758906364, -0.038902219384908676, 0.008963990956544876, 0.03972471132874489, 0.03135763108730316, 0.06648807972669601, -0.050785455852746964, 0.02180294133722782, -0.053995028138160706, -0.03076894022524357, 0.001188008114695549, -0.009143221192061901, -0.004268655553460121, 0.00792573019862175, -0.017114784568548203, 0.0014996646204963326, 0.039715930819511414, -0.0051401881501078606, 0.01401863805949688, -0.0006438145646825433, -0.013212322257459164, -0.009267403744161129, -0.0066424766555428505, 0.00996074266731739, 0.07733462005853653, -0.016320545226335526, -0.06737899780273438, -0.00503005925565958, -0.03752667456865311, 0.06952281296253204, -0.035235077142715454, -0.04323115199804306, -0.0325637087225914, 0.04360790550708771, 0.0013724843738600612, 0.007285777945071459, -0.010347056202590466, 0.00747497845441103, -0.037816599011421204, -0.03096579760313034, -0.018239762634038925, -0.031015673652291298, -0.017334146425127983, -0.0281115360558033, 0.004395242314785719, -0.07713592797517776, -0.05576061084866524, -0.016393281519412994, 0.07558178156614304, 0.042292602360248566, -0.03734486922621727, -0.008050234988331795, -0.01233557891100645, -0.10294518619775772, -0.016759276390075684, 0.003119208151474595, -0.02344692498445511, 0.0052956403233110905, -0.014977696351706982, 0.059830497950315475, -0.029296142980456352, -0.03430911526083946, 0.031198350712656975, 0.003347469959408045, 0.0200966764241457, -0.029140736907720566, 0.009664187207818031, 0.024944158270955086, -0.02877170220017433, -0.004377167206257582, 0.055511124432086945, -0.03257844224572182, -0.027129560708999634, -0.01653248257935047, -0.03184008225798607, 0.024874068796634674, 0.014580742456018925, -0.013219512067735195, 0.008966214023530483, 0.03731975704431534, 0.025082256644964218, -0.06130228936672211, -0.0000450635161541868, -0.05062231048941612, -0.008223948068916798, -0.0018469674978405237, -0.04905107617378235, 0.014586838893592358, 0.011220240034162998, 0.03994418680667877, -0.007442241534590721, -0.04553257301449776, 0.02411348931491375, -0.0703328400850296, -0.009930651634931564, -0.02563288062810898, 0.019760916009545326, 0.03244112432003021, 0.008880321867763996, -0.0017863085959106684, -0.06999870389699936, 0.016987578943371773, -0.00857300404459238, -0.023359429091215134, -0.06284584850072861, -0.016187740489840508, 0.0017767103854566813, -0.009198760613799095, 0.0039713382720947266, -0.0037658498622477055, -0.02136325277388096, 0.013868497684597969, 0.04509156942367554, -0.04818710312247276, 0.038941390812397, -0.004693540278822184, -0.056168071925640106, -0.018313834443688393, -0.01963656209409237, 0.007387829944491386, -0.010433022864162922, -0.011115140281617641, 0.01857820525765419, 0.0158438328653574, 0.04841926693916321, 0.0013930222485214472, 0.003755734534934163, 0.017124734818935394, 0.016971061006188393, 0.017449241131544113, -0.01012696698307991, -0.032285675406455994, 0.028376327827572823, -0.046323519200086594, -0.04315745830535889, -0.05225757136940956, 0.009711318649351597, -0.01662415824830532, -0.014679021202027798, -0.04022351652383804, -0.019000370055437088, -0.06168453022837639, -0.020513111725449562, 0.007094160187989473, -0.0002537280379328877, 0.06270978599786758, 0.03010769747197628, 0.02134195901453495, -0.014111842028796673, 0.0058531914837658405, 0.023836331441998482, 0.023851808160543442, -0.05257917195558548, -0.0258397925645113, 0.01761685311794281, -0.023732872679829597, 0.013862988911569118, 0.015573336742818356, 0.02619929611682892, 0.02132655866444111, 0.0019626577850431204, -0.013457254506647587, 0.021417886018753052, 0.024350127205252647, 0.03899379447102547, 0.009937252849340439, -0.03979594632983208, 0.00250031566247344, -0.018036264926195145, -0.042171549052000046, -0.01795237883925438, -0.0031152700539678335, 0.0014755574520677328, -0.022593524307012558, -0.041782476007938385, -0.06682092696428299, 0.02046809159219265, 0.03469204530119896, 0.017107145860791206, 0.012375582940876484, -0.024739103391766548, -0.0018889191560447216, -0.038301292806863785, 0.03557875007390976, 0.08888272196054459, -0.06803156435489655, 0.007620893884450197, -0.01621510647237301, -0.005061795003712177, -0.005808966234326363, 0.027486346662044525, -0.058334775269031525, -0.00005915345172979869, -0.015619073994457722, 0.05052081122994423, -0.03511927276849747, -0.014623903669416904, -0.030698250979185104, 0.02868179976940155, -0.003692031605169177, 0.0004766541824210435, 0.0024819846730679274, 0.0007699931156821549, -0.014065663330256939, -0.017119625583291054, 0.013938085176050663, -0.017247023060917854, -0.021365134045481682, 0.04001089558005333, -0.0332416333258152, 0.03167243301868439, -0.039565540850162506, 0.03375857323408127, 0.020546169951558113, -0.013521411456167698, -0.014329764991998672, -0.042848631739616394, -0.00707532512024045, 0.0036109958309680223, 0.038055360317230225, 0.006667811423540115, 0.011321533471345901, -0.016640838235616684, -0.0048089404590427876, -0.01758042350411415, -0.0020983254071325064, -0.024355612695217133, -0.020959246903657913, 0.026994502171874046, 0.05600084736943245, 0.007184067275375128, 0.016290316358208656, -0.014433067291975021, -0.03658926859498024, 0.04402231425046921, -0.05554240942001343, -0.04165981709957123, 0.029485566541552544, -0.0663565918803215, 0.03183335065841675, 0.012055507861077785, 0.034699421375989914, -0.06491488963365555, 0.04453890770673752, 0.03042615018785, 0.003846900537610054, 0.03304162248969078, -0.007835867814719677, 0.03400639072060585, -0.03686884045600891, -0.03902347758412361, -0.07832097262144089, 0.0022751919459551573, -0.0007875380688346922, -0.028585555031895638, -0.011393698863685131, 0.008829611353576183, -0.030040385201573372, 0.011292070150375366, -0.07313589006662369, -0.03150656074285507, 0.03930109366774559, -0.009751832112669945, 0.009450549259781837, 0.02593960054218769, -0.035798393189907074, 0.03296778351068497, 0.030348798260092735, -0.03701036423444748, -0.026710741221904755, -0.014827080070972443, 0.06214389577507973, 0.0147892776876688, 0.042575620114803314, -0.044079165905714035, -0.02110307291150093, 0.08430743217468262, 0.015368963591754436, 0.0008236196590587497, 0.05191478878259659, -0.02464243210852146, 0.0602642185986042, 0.014793001115322113, -0.008400424383580685, 0.0166715607047081, 0.020374318584799767, -0.028640765696763992, -0.04859458655118942, 0.0032078195363283157, 0.007760701701045036, -0.0027083493769168854, -0.06739185005426407, 0.06547915190458298, -0.0025004977360367775, -0.013426616787910461, -0.04027675837278366, 0.019453952088952065, -0.04572046548128128, -0.0031319912523031235, -0.043839339166879654, 0.0052703735418617725, -0.05434550344944, 0.05780189111828804, 0.0003475421108305454, 0.019644588232040405, 0.06565108150243759, -0.008487403392791748, 0.008220166899263859, -0.010115738958120346, 0.08265171945095062, 0.09757076948881149, 0.02470802702009678, 0.017087839543819427, 0.07855265587568283, -0.021786149591207504, -0.05682859942317009, -0.021653590723872185, -0.03420969471335411, -0.023134712129831314, -0.05382426455616951, 0.006838183384388685, 0.07497865706682205, -0.009834625758230686, 0.05255839601159096, -0.002717201365157962, -0.021006636321544647, -0.004036448430269957, 0.006953389849513769, 0.04082868993282318, 0.033422909677028656, 0.018097979947924614, 0.022666040807962418, -0.01242171972990036, -0.01109920535236597, 0.031856682151556015, 0.00132781732827425, -0.017177166417241096, 0.02426544576883316, -0.001005246420390904, 0.029024148359894753, 0.018153589218854904, 0.032957449555397034, 0.07906392961740494, -0.024733319878578186, -0.00016976759070530534, -0.021490924060344696, 0.039789799600839615, 0.018679626286029816, 0.01986175775527954, -0.01172894798219204, -0.013076559640467167, -0.020556863397359848, -0.021399855613708496, -0.00185302272439003, -0.029010431841015816, -0.014899909496307373, 0.04530870541930199, -0.019583728164434433, -0.0003504018532112241, 0.034388892352581024, 0.00480593740940094, -0.042142029851675034, -0.037570636719465256, -0.04814165085554123, -0.04034002870321274, -0.064948171377182, -0.014032215811312199, 0.00349638843908906, -0.027614958584308624, -0.041217368096113205, -0.022922497242689133, -0.024439867585897446, -0.02556825429201126, -0.006999616511166096, -0.07109120488166809, -0.05378104746341705, 0.00017179422138724476, 0.029723698273301125, 0.03148999065160751, 0.04343250393867493, 0.06240346282720566, -0.015217892825603485, -0.014891508035361767, -0.03408408164978027, 0.0176347978413105, 0.03761160001158714, -0.00912582315504551, 0.02967759594321251, -0.07809726148843765, 0.05219046771526337, 0.0030405602883547544, -0.0010696742683649063, -0.07311307638883591, 0.0388934463262558, 0.03577648103237152, -0.007367195561528206, 0.07614456117153168, 0.00531705841422081, 0.012502073310315609, -0.06892097741365433, -0.012496096082031727, -0.0029096025973558426, -0.0014293279964476824, 0.04199637845158577, -0.03270113840699196, 0.0876997858285904, 0.03774942085146904, -0.018024049699306488, -0.04635818302631378, -0.005712436977773905, 0.019924644380807877, 0.019726896658539772, -0.022341083735227585, -0.04684941843152046, -0.04034857451915741, -0.08598840236663818, -0.02863527275621891, 0.013197037391364574, -0.019338766112923622, -0.03639945387840271, 0.0014756695600226521, 0.00526661891490221, -0.0397811233997345, 0.025708088651299477, -0.054636888206005096, 0.0030462611466646194, -0.023171599954366684, -0.021590618416666985, -0.014502591453492641, 0.040977153927087784, 0.0032568552996963263, -0.008967203088104725, 0.03395669162273407, -0.02669096179306507, 0.012766656465828419, -0.03261791169643402, -0.002642785431817174, 0.0378955714404583, 0.00840210635215044, 0.014829043298959732 ]
[ -0.06702782213687897, -0.025043921545147896, -0.006958200130611658, -0.030531344935297966, 0.015878722071647644, -0.06506900489330292, -0.060157667845487595, -0.013134636916220188, 0.009787381626665592, -0.027510810643434525, 0.035599227994680405, 0.009930984117090702, -0.0206503514200449, -0.053140584379434586, 0.07132748514413834, 0.02547888271510601, -0.04954031482338905, -0.049607113003730774, 0.012927724979817867, 0.05304695665836334, -0.02160799503326416, -0.016656089574098587, -0.01772100292146206, -0.057252973318099976, -0.020618442445993423, 0.04018951579928398, 0.03318627551198006, -0.04741613566875458, -0.006096975412219763, -0.20574937760829926, 0.0027205711230635643, -0.01164921373128891, 0.03026675246655941, -0.040325555950403214, 0.021322036162018776, 0.00726158544421196, 0.034969836473464966, -0.014597494155168533, 0.006301544141024351, 0.03171162307262421, 0.0053138514049351215, 0.033285561949014664, -0.059446077793836594, -0.017063403502106667, 0.0607253797352314, -0.0029413141310214996, 0.015265301801264286, -0.013217679224908352, 0.02749190293252468, 0.023159069940447807, -0.05846016854047775, 0.026073750108480453, -0.000617446843534708, -0.026874911040067673, -0.014727992936968803, 0.037363141775131226, 0.04500971734523773, 0.03171614930033684, -0.0030943758320063353, 0.011463429778814316, 0.01790897361934185, 0.0024707727134227753, -0.12797795236110687, 0.1453106850385666, 0.03433696925640106, 0.033052291721105576, -0.017120424658060074, 0.006032888777554035, -0.012583992443978786, 0.06492193788290024, -0.01432176772505045, -0.034906771034002304, -0.02359238639473915, 0.05897785350680351, 0.023559406399726868, -0.06070219725370407, -0.028306955471634865, -0.012822991237044334, 0.030333708971738815, -0.03600236028432846, -0.05625322461128235, -0.05204300954937935, -0.016440648585557938, -0.06210225075483322, -0.034881461411714554, 0.014341705478727818, -0.031611476093530655, 0.05634116008877754, 0.0038642629515379667, 0.006600045133382082, 0.027538243681192398, -0.0426536425948143, 0.07370731979608536, -0.006745428312569857, -0.0840807631611824, -0.007842490449547768, -0.014803564175963402, 0.01342947781085968, -0.04601941630244255, 0.42925629019737244, -0.030157621949911118, 0.004145944956690073, 0.01873120665550232, 0.022562213242053986, 0.019628198817372322, -0.019893473014235497, 0.017002511769533157, -0.003528955392539501, 0.002438274212181568, -0.011300550773739815, -0.005738301668316126, 0.005645022261887789, 0.06591113656759262, -0.07167159020900726, 0.006329360883682966, -0.006691396236419678, 0.02251196838915348, -0.021431710571050644, 0.008645257912576199, -0.03014610894024372, 0.00031637150095775723, 0.025434954091906548, 0.041368842124938965, 0.0004938039346598089, 0.04481352120637894, -0.002604531357064843, 0.02396892011165619, 0.05949455127120018, 0.05039465054869652, 0.006077892147004604, 0.012578151188790798, -0.03399138152599335, -0.027118174359202385, 0.02099234238266945, 0.0071208542212843895, 0.036373332142829895, 0.03703897073864937, -0.04072393849492073, 0.00314348004758358, -0.01715480349957943, -0.0030542972963303328, -0.04314381629228592, 0.048681724816560745, -0.003201205050572753, -0.01581784524023533, 0.07721637934446335, -0.004702006001025438, -0.006774997804313898, -0.0329970121383667, -0.032370422035455704, -0.014063123613595963, 0.0011575923999771476, -0.012030016630887985, -0.02374236099421978, -0.03714512661099434, 0.01119475718587637, 0.0711476281285286, -0.010751696303486824, -0.061653539538383484, -0.03812383860349655, -0.0006038055289536715, -0.0538962185382843, -0.037822175770998, 0.02681027539074421, 0.01635248027741909, -0.11683786660432816, -0.06417729705572128, 0.009850135073065758, -0.018114134669303894, -0.06567797809839249, 0.000029255143090267666, 0.00038589746691286564, -0.04788518697023392, 0.04462752491235733, 0.055336132645606995, -0.024999437853693962, -0.015737956389784813, 0.03252814710140228, 0.05975500866770744, 0.02096240036189556, 0.022748902440071106, -0.0004139823140576482, -0.006362936459481716, -0.017003722488880157, -0.0428449884057045, -0.09480699151754379, -0.046736352145671844, -0.012675916776061058, -0.008326827548444271, -0.023203033953905106, 0.0062654949724674225, -0.045106153935194016, -0.05598125979304314, 0.03525543957948685, -0.01326536014676094, 0.004551959224045277, 0.032806504517793655, -0.01748048886656761, 0.042353954166173935, -0.04029339551925659, 0.030540980398654938, -0.007551896385848522, -0.018872033804655075, 0.02244213968515396, -0.03139312192797661, 0.02949187345802784, 0.05247662961483002, -0.03618968278169632, 0.09620938450098038, 0.0121696088463068, -0.07919150590896606, 0.023032696917653084, 0.033655084669589996, -0.004761872347444296, 0.012835098430514336, -0.020821185782551765, -0.02294640988111496, 0.012962428852915764, 0.05741742253303528, 0.05101616308093071, -0.048119716346263885, -0.02646479383111, -0.036963142454624176, -0.3423028290271759, -0.022074325010180473, -0.021511344239115715, -0.012828565202653408, -0.04381271451711655, -0.0442938394844532, 0.011583995074033737, -0.02174191176891327, -0.0015256922924891114, 0.0318211205303669, 0.10473679006099701, -0.04447579011321068, 0.023202402517199516, -0.0460171103477478, -0.045414216816425323, 0.016479624435305595, 0.004143531899899244, -0.025407930836081505, -0.02680117078125477, 0.02240115776658058, 0.05074658617377281, 0.003311599139124155, -0.054559752345085144, -0.07655955851078033, 0.011698141694068909, -0.04695691540837288, 0.0946776494383812, 0.03965817391872406, 0.07043164223432541, -0.06594128161668777, 0.06944191455841064, 0.05220538005232811, -0.007540381047874689, -0.08584102988243103, -0.022822193801403046, 0.005402473267167807, 0.008009485900402069, -0.0068596224300563335, 0.014178957790136337, -0.001981626497581601, -0.09187142550945282, 0.03322652354836464, -0.042996589094400406, -0.056643664836883545, 0.0012559454189613461, -0.03254213184118271, 0.019717350602149963, -0.009067466482520103, -0.02961738407611847, 0.10129028558731079, 0.06593158096075058, -0.0032195961102843285, 0.017953835427761078, 0.04332217946648598, 0.010563754476606846, -0.023623865097761154, -0.024076687172055244, -0.03381883352994919, 0.023222822695970535, -0.023175345733761787, 0.026565175503492355, 0.0092390151694417, 0.05921509116888046, -0.056932222098112106, -0.006119417026638985, 0.016529347747564316, -0.012488734908401966, -0.009765151888132095, 0.08518797159194946, -0.028114743530750275, -0.04968804493546486, 0.05837472900748253, 0.006809588056057692, 0.03180815652012825, 0.02985139936208725, 0.037182532250881195, 0.0024798132944852114, 0.04721945524215698, -0.001367330551147461, -0.03085317276418209, 0.023531390354037285, 0.021320704370737076, 0.0830099955201149, -0.02568594180047512, 0.034858014434576035, 0.045068878680467606, 0.004611727315932512, -0.0070746829733252525, 0.05237706005573273, 0.004229542333632708, -0.010023636743426323, 0.003376185428351164, -0.005067291669547558, -0.06130976974964142, 0.03835160285234451, -0.0037612603046000004, -0.253172904253006, 0.046299614012241364, 0.05779348686337471, 0.06417661905288696, 0.000472838495625183, 0.012446585111320019, 0.005646595265716314, -0.04857901856303215, 0.016568316146731377, 0.005815678276121616, 0.013560437597334385, 0.02540866658091545, 0.02300543338060379, -0.0013535749167203903, 0.0379028357565403, -0.04677608981728554, 0.03296893462538719, 0.036246735602617264, 0.01971706934273243, 0.005859459284693003, 0.02789817564189434, -0.01151394285261631, 0.18003615736961365, 0.03696725144982338, 0.02394898608326912, -0.010503395460546017, 0.03945710137486458, -0.004100917372852564, 0.05065282806754112, 0.046019915491342545, -0.006696002557873726, -0.01640321873128414, 0.03990476578474045, 0.014821678400039673, 0.03803364560008049, -0.03266585245728493, -0.03233441710472107, 0.03195321932435036, -0.006910612341016531, -0.030682971701025963, -0.04082852229475975, 0.06635231524705887, -0.05532966926693916, 0.03916977345943451, 0.02454966865479946, -0.021749110892415047, -0.009889408946037292, -0.013770239427685738, -0.02177833765745163, 0.013557732105255127, -0.026367362588644028, -0.054636675864458084, -0.007611933629959822, -0.03031296096742153, -0.0032282054889947176, 0.05317307636141777, 0.04051889479160309, 0.022840920835733414, 0.012754633091390133, 0.04050721600651741, 0.020451711490750313, -0.03430745378136635, 0.11017856746912003, 0.01832197792828083, 0.020248426124453545 ]
[ 0.0042741307988762856, 0.01670030504465103, -0.031956128776073456, 0.02475544437766075, 0.01586933620274067, 0.003588966792449355, 0.023397892713546753, 0.0015923958271741867, -0.024641526862978935, -0.01796465925872326, -0.02836853638291359, -0.025048144161701202, 0.036707803606987, -0.04781279340386391, 0.020716222003102303, -0.004525852855294943, -0.008416232652962208, -0.03862548992037773, 0.030590254813432693, 0.00690762372687459, -0.021140696480870247, 0.025144297629594803, 0.03375707194209099, -0.021721143275499344, -0.005671533290296793, 0.0283490177243948, -0.04156041517853737, 0.015190365724265575, 0.01337971817702055, -0.144242063164711, -0.01731862500309944, -0.02024485357105732, -0.011295745149254799, -0.007457504980266094, 0.0014161317376419902, -0.0035767487715929747, 0.019898822531104088, 0.035846129059791565, -0.006606719456613064, 0.009947928600013256, 0.00037871606764383614, -0.027701273560523987, -0.007547059096395969, 0.013144299387931824, -0.010575832799077034, -0.027621179819107056, -0.05085431784391403, 0.01600516401231289, -0.022339599207043648, 0.01631123572587967, -0.040080368518829346, 0.022460155189037323, 0.011011897586286068, -0.016111938282847404, 0.04116952791810036, -0.010990766808390617, 0.004630871582776308, 0.01337927021086216, 0.017957624047994614, 0.02715826779603958, 0.010399353690445423, -0.012327735312283039, -0.04514452442526817, -0.018260175362229347, 0.005589607637375593, -0.03263319656252861, -0.025712383911013603, -0.014816834591329098, 0.0005753986188210547, -0.006435250397771597, -0.0049364143051207066, -0.016811911016702652, -0.018287479877471924, 0.008156204596161842, -0.03448638692498207, -0.0029422363732010126, 0.00046422038576565683, -0.037399325519800186, -0.007578888442367315, 0.010591618716716766, -0.05039148032665253, -0.008295059204101562, -0.002086951630190015, 0.03657221421599388, 0.015557950362563133, -0.01003444753587246, 0.005486178677529097, -0.0014184571336954832, -0.01301815640181303, -0.0067534963600337505, -0.006808392237871885, -0.004003328271210194, 0.015688858926296234, 0.02349172532558441, -0.06490126252174377, -0.013492155820131302, 0.0023965875152498484, -0.008791320957243443, -0.009000547230243683, 0.8453652262687683, -0.030269213020801544, 0.02945002168416977, 0.03063918463885784, 0.00966695137321949, -0.02045956626534462, -0.032547492533922195, -0.019360072910785675, 0.01007156167179346, -0.004068511072546244, -0.0369577594101429, 0.034191593527793884, -0.005366104189306498, -0.0031440239399671555, -0.0017136282986029983, 0.013358973897993565, 0.021162567660212517, -0.011239094659686089, -0.02770843915641308, 0.013578904792666435, 0.004678774159401655, 0.022651012986898422, -0.007511603645980358, -0.02065955102443695, 0.0191169623285532, 0.026865171268582344, -0.1719944328069687, 0.036990679800510406, -6.867113101229029e-33, 0.012615774758160114, -0.046197205781936646, -0.004145854618400335, -0.01055202353745699, 0.06492254883050919, -0.0007764770998619497, -0.01142582856118679, 0.008683780208230019, -0.00874685775488615, -0.01631738990545273, 0.05575371906161308, -0.012809966690838337, -0.042371783405542374, -0.026687774807214737, 0.032863687723875046, 0.0059389895759522915, 0.017259715124964714, 0.03232983499765396, -0.008002360351383686, 0.017980869859457016, 0.047100577503442764, 0.08244305849075317, 0.04128998890519142, 0.021264340728521347, -0.013406485319137573, 0.03720738738775253, 0.003877894952893257, -0.013882043771445751, 0.008411752991378307, -0.033383119851350784, -0.03926871344447136, -0.0009865887695923448, -0.006050558295100927, -0.05447463318705559, -0.014834125526249409, -0.047135237604379654, -0.026868194341659546, 0.006023843307048082, -0.024469630792737007, 0.038704801350831985, -0.02573295310139656, -0.00695605855435133, -0.00398755120113492, -0.028318364173173904, -0.017783917486667633, 0.0024288881104439497, 0.001556970295496285, -0.017192762345075607, -0.03121817484498024, 0.02016121707856655, 0.025597749277949333, -0.014000024646520615, 0.030794944614171982, 0.033493004739284515, -0.017624234780669212, 0.012983878143131733, -0.012236537411808968, -0.0034086471423506737, 0.013346261344850063, -0.00013322950690053403, 0.018654365092515945, -0.023817135021090508, 0.011208168230950832, 0.01381930336356163, -0.0005449287127703428, -0.009688097983598709, 0.036921676248311996, 0.003146757837384939, 0.012512769550085068, 0.02669157087802887, -0.017731329426169395, 0.02280784770846367, 0.022022191435098648, -0.038820572197437286, 0.027524370700120926, -0.010020976886153221, -0.03501846641302109, 0.014662167057394981, 0.018490584567189217, 0.0359065867960453, 0.029172640293836594, -0.01830405555665493, -0.05356520414352417, -0.015521279536187649, -0.01819949969649315, -0.021488677710294724, 0.017520787194371223, 0.01276034489274025, -0.040331803262233734, -0.005082766525447369, 0.0017601401777938008, 0.05622989684343338, 0.004974838811904192, -0.03620461747050285, -0.04537176713347435, 6.326434188992748e-33, 0.044568706303834915, 0.0010446280939504504, 0.000901183404494077, 0.0096595985814929, 0.01946086622774601, 0.03992407023906708, 0.029580093920230865, 0.017380131408572197, -0.017859794199466705, 0.010271547362208366, -0.021554790437221527, 0.04331832751631737, -0.00667837169021368, 0.012953052297234535, 0.037980880588293076, 0.011557464487850666, 0.0034666613209992647, 0.024583157151937485, -0.0464974120259285, -0.000010553440915828105, 0.00833568163216114, -0.005511187948286533, 0.019250109791755676, 0.04271179065108299, 0.036489300429821014, -0.00040312486817128956, -0.019472308456897736, 0.004959745332598686, -0.006962952669709921, 0.027867570519447327, 0.00043567450484260917, 0.011141019873321056, -0.011181982234120369, -0.019740024581551552, -0.029452014714479446, 0.05720407888293266, -0.011489251628518105, 0.027424907311797142, -0.0034457328729331493, 0.01864008605480194, 0.04060636833310127, 0.0018437684047967196, -0.005029191728681326, 0.029777375981211662, 0.020870087668299675, 0.022363858297467232, -0.015749197453260422, -0.0008770626154728234, -0.024299971759319305, 0.031525544822216034, 0.01750846952199936, 0.027882389724254608, 0.004409749526530504, -0.0014785780804231763, 0.015244723297655582, -0.005182916298508644, -0.041187211871147156, 0.01968451589345932, -0.028232241049408913, -0.01592158153653145, -0.048450395464897156, 0.002998056123033166, -0.027602577582001686, 0.017507003620266914, -0.02323087491095066, -0.015386464074254036, -0.07094766944646835, -0.004065994638949633, -0.002950068097561598, 0.0014254720881581306, -0.017403418198227882, -0.0007708488265052438, -0.011937892995774746, 0.02596946805715561, -0.00520387664437294, -0.0021660246420651674, -0.02400439977645874, -0.0013475680025294423, 0.0023241015151143074, 0.042638421058654785, 0.03084554150700569, 0.019162693992257118, 0.01683059148490429, -0.013452730141580105, 0.001044837525114417, 0.00804115366190672, -0.04712822288274765, -0.002355195814743638, 0.042819131165742874, 0.012719666585326195, -0.0012745601125061512, -0.004231735598295927, -0.016223426908254623, -0.024449896067380905, -0.021100010722875595, -1.2431880413998897e-8, -0.02128351666033268, -0.01239742897450924, -0.02812855876982212, 0.05009187385439873, 0.0345500111579895, -0.006406622938811779, -0.041861359030008316, -0.0006685504340566695, 0.005822871811687946, 0.013649936765432358, 0.0362262949347496, 0.0027512055821716785, 0.012722986750304699, 0.03118225187063217, 0.010562117211520672, -0.037172190845012665, 0.035410091280937195, -0.009894130751490593, 0.018985139206051826, 0.010636079125106335, -0.006185342092067003, 0.040400270372629166, 0.00900846254080534, 0.008872847072780132, -0.005671077407896519, -0.0027488379273563623, -0.009937762282788754, -0.0790172889828682, -0.02148534543812275, 0.03721129521727562, 0.021476229652762413, -0.02210957743227482, -0.06460192054510117, 0.008544625714421272, -0.0027062809094786644, -0.04712929204106331, 0.03611978143453598, 0.019710717722773552, 0.014155295677483082, -0.0035492845345288515, -0.004751717206090689, -0.033819831907749176, -0.025163808837532997, -0.031199447810649872, -0.0475030392408371, -0.032346468418836594, -0.06018129363656044, 0.02106429450213909, 0.026046469807624817, -0.01919415220618248, 0.03030277043581009, -0.023771235719323158, -0.00873054750263691, 0.007924375124275684, 0.03305983915925026, -0.003022468416020274, 0.006537836045026779, 0.01619325764477253, 0.016116967424750328, -0.0008779410854913294, 0.028635302558541298, 0.02103789523243904, 0.006705822888761759, -0.021588746458292007 ]
clickhouse-local-table-does-not-exist
https://markhneedham.com/blog/2023/10/16/clickhouse-local-table-does-not-exist
false
2023-10-26 00:44:37
Poetry: Install does not contain any element
[ "python", "poetry", "til" ]
[ "TIL" ]
:icons: font I've run into an interesting error a few times when using the Poetry package manager over the last few weeks and wanted to document it in case anyone else has the same problem. I'm still not sure how to avoid it in the first place, so if you know, please let me know! Anyway, let's get started. Imagine we're creating a new project and we type the following: [source, bash] ---- $ poetry init ---- It will pop up the following dialogue and we'll select the defaults, won't define anything interactively, and will then have it create the file: .Output [source, text] ---- This command will guide you through creating your pyproject.toml config. Package name [tei-tutorial]: Version [0.1.0]: Description []: Author [Mark Needham <m.h.needham@gmail.com>, n to skip]: License []: Compatible Python versions [^3.11]: Would you like to define your main dependencies interactively? (yes/no) [yes] no Would you like to define your development dependencies interactively? (yes/no) [yes] no Generated file [tool.poetry] name = "tei-tutorial" version = "0.1.0" description = "" authors = ["Mark Needham <m.h.needham@gmail.com>"] readme = "README.md" packages = [{include = "tei_tutorial"}] [tool.poetry.dependencies] python = "^3.11" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ---- As you can see from the output at the end, this is what my `pyproject.yaml` file contains: [source, toml] ---- [tool.poetry] name = "tei-tutorial" version = "0.1.0" description = "" authors = ["Mark Needham <m.h.needham@gmail.com>"] readme = "README.md" packages = [{include = "tei_tutorial"}] [tool.poetry.dependencies] python = "^3.11" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" ---- If I then run the following: [source, bash] ---- poetry install ---- I get the following error message: .Output [source, text] ---- Installing dependencies from lock file No dependencies to install or update /Users/markhneedham/projects/learndatawithmark/tei-tutorial/tei_tutorial does not contain any element ---- The line in `pyproject.toml` that's causing the problem is this one: [source, toml] ---- packages = [{include = "tei_tutorial"}] ---- I'm not entirely sure what makes that line get added because for some of my projects, it's added and for others, it isn't! The line itself does make sense if you're using Poetry to create a library as you'd probably then have your code under the `tei-tutorial` directory in this case. But in my case, I'm using Poetry to manage projects with a few scripts in the root directory, so I don't have that folder. So if we want to get rid of the error, we either need to create the `tei_tutorial` directory or we need to delete the `packages` line in `pyproject.toml` I'm going to delete it, and if I then run `poetry install` again, it's happy: .Output [source, text] ---- Installing dependencies from lock file No dependencies to install or update ----
In this post, we'll learn how to work around the Poetry 'does not contain any element' error message
uploads/2023/10/poetry-install-banner.png
[ -0.0034917460288852453, 0.023836273699998856, -0.027452053502202034, -0.004488477949053049, 0.08605766296386719, 0.04217039793729782, 0.039402492344379425, 0.012668854556977749, -0.0027701067738234997, -0.006806910969316959, -0.0338670052587986, 0.01250936184078455, -0.07060810178518295, 0.031224584206938744, -0.028841348364949226, 0.07011464983224869, 0.087882399559021, 0.021749312058091164, -0.015887565910816193, 0.03125685825943947, 0.03415220230817795, 0.07723809778690338, -0.01912349835038185, 0.014092485420405865, 0.011218801140785217, 0.01271791197359562, 0.026413219049572945, -0.014888483099639416, -0.07186563313007355, 0.0004873292928095907, 0.0015255933394655585, -0.038802120834589005, 0.000495947664603591, -0.017329707741737366, 0.0032562450505793095, 0.023321976885199547, -0.010495617985725403, 0.03848927468061447, 0.012401120737195015, 0.017654255032539368, -0.03220731392502785, -0.007063400931656361, -0.010918972082436085, -0.010752815753221512, -0.026131875813007355, 0.02902749925851822, -0.05103696510195732, 0.004644174128770828, -0.006581832189112902, -0.033743999898433685, -0.06355738639831543, 0.03899936005473137, -0.02900092862546444, -0.04082082584500313, -0.0011221233289688826, 0.02560821734368801, 0.0004323344037402421, -0.1025359258055687, 0.02907700277864933, -0.039506856352090836, 0.0024070884101092815, -0.0069943806156516075, 0.00023507543664891273, 0.04242740944027901, -0.005055676214396954, -0.028053762391209602, -0.0073751965537667274, 0.03620573878288269, -0.056952666491270065, -0.03884240612387657, -0.006993406917899847, 0.006207311991602182, -0.045749980956315994, -0.0032891882583498955, 0.03176570311188698, -0.014208289794623852, -0.01734580658376217, 0.06319598108530045, 0.03211049363017082, 0.04613020271062851, -0.006734380964189768, 0.0006689919391646981, 0.032303906977176666, 0.02117496356368065, -0.023731190711259842, -0.054268017411231995, -0.008674422279000282, 0.00538943987339735, -0.035046011209487915, 0.03519153222441673, 0.03829169273376465, -0.06918118894100189, 0.03171733394265175, 0.019830239936709404, 0.015081414952874184, 0.013952616602182388, -0.020969556644558907, 0.04081243276596069, -0.0002864076232071966, -0.0034888365771621466, -0.025885064154863358, -0.005293095950037241, 0.009954948909580708, 0.03474630042910576, -0.07658334821462631, 0.0024287626147270203, -0.027666185051202774, -0.018113067373633385, 0.017171228304505348, -0.0011165449395775795, 0.0020913463085889816, -0.009560712613165379, -0.015959830954670906, -0.00958484411239624, -0.06305310130119324, 0.08561484515666962, 0.008150080218911171, -0.030694879591464996, -0.01023865956813097, 0.04305966570973396, 0.05544079467654228, 0.02962789684534073, 0.00294498004950583, 0.08099963515996933, 0.009652485139667988, 0.05017891526222229, -0.0036798431538045406, 0.05373169854283333, 0.002889916067942977, -0.055224642157554626, -0.03861256688833237, 0.06359150260686874, -0.01265022438019514, 0.016109783202409744, 0.0122216260060668, 0.007292445283383131, 0.011453519575297832, 0.0017091876361519098, 0.05473187193274498, 0.010658484883606434, -0.04571014642715454, 0.022548263892531395, -0.0281241275370121, 0.004416023846715689, 0.04974772781133652, 0.043077994138002396, 0.013261660002171993, -0.03925954923033714, -0.033539656549692154, 0.03878176957368851, 0.015203218907117844, 0.029677309095859528, 0.08325967192649841, 0.0048114219680428505, -0.014627250842750072, 0.07068227976560593, 0.059739015996456146, 0.04548189043998718, -0.03026188164949417, 0.009235420264303684, 0.022403715178370476, 0.04653535783290863, 0.015880946069955826, 0.05168534070253372, 0.0002244481584057212, -0.024563075974583626, -0.005412138067185879, -0.0016402492765337229, -0.009248415939509869, -0.008867309428751469, -0.05220767483115196, -0.0852205753326416, 0.05317433550953865, -0.026110563427209854, -0.01692681573331356, 0.039036910980939865, 0.08703579008579254, 0.04214366525411606, 0.0160606000572443, 0.022022530436515808, -0.09266562014818192, 0.05768831819295883, -0.01186634786427021, 0.006443510297685862, 0.026772378012537956, -0.017218463122844696, 0.07214231044054031, 0.0134233133867383, 0.013731000944972038, 0.017649883404374123, -0.06519399583339691, -0.07212908565998077, 0.017695045098662376, 0.008113224990665913, 0.030939262360334396, -0.04058687388896942, -0.027457520365715027, 0.05825928598642349, 0.05747729167342186, 0.030818268656730652, 0.015685055404901505, -0.0186134222894907, 0.001204194501042366, -0.05451058968901634, -0.041574008762836456, 0.024245453998446465, 0.05769946053624153, -0.014756751246750355, -0.02076711505651474, 0.0019117827760055661, -0.028661256656050682, -0.014001287519931793, 0.044496286660432816, 0.012934467755258083, 0.05514995753765106, 0.012905657291412354, 0.007044636644423008, -0.033265795558691025, 0.03776632249355316, -0.07902497798204422, 0.0036942698061466217, 0.0019519035704433918, 0.02354949340224266, -0.025708891451358795, -0.027257531881332397, 0.10464702546596527, 0.041594523936510086, -0.020423373207449913, -0.016088636592030525, 0.023387599736452103, 0.00016538349154870957, -0.03205907717347145, 0.024680372327566147, -0.016441702842712402, -0.02112276293337345, 0.0003997614257968962, -0.012664973735809326, -0.038345497101545334, 0.027699414640665054, -0.038196031004190445, -0.009847985580563545, 0.06662803888320923, -0.03483152389526367, 0.03907312825322151, 0.01570219174027443, -0.017622385174036026, -0.028756150975823402, -0.021436678245663643, -0.07369989156723022, 0.008700643666088581, 0.02353776805102825, -0.00386135489679873, 0.008957604877650738, -0.030284715816378593, -0.04534714296460152, -0.02265169285237789, -0.07439529895782471, 0.04377194494009018, 0.03045342117547989, 0.047568101435899734, -0.05291026458144188, 0.029745450243353844, -0.004737747833132744, 0.03553435578942299, -0.00432239007204771, -0.02322530560195446, -0.020046720281243324, -0.0005232710391283035, 0.00677871098741889, 0.009817894548177719, 0.04005817323923111, 0.01746702566742897, -0.03821469098329544, -0.010780112817883492, 0.011564678512513638, 0.025189364328980446, 0.03121550939977169, -0.016898464411497116, 0.002198080997914076, -0.05646669492125511, 0.01538503635674715, 0.03358711674809456, -0.066581130027771, -0.06148865073919296, -0.012187485583126545, -0.04308241233229637, 0.01859869435429573, -0.06686507910490036, -0.05198954790830612, -0.029240930452942848, 0.00480120861902833, 0.04565481096506119, -0.019848449155688286, 0.016589337959885597, 0.05627892166376114, 0.015974244102835655, -0.0019423584453761578, 0.036739472299814224, -0.0014191889204084873, 0.056453969329595566, 0.021017368882894516, 0.023446617648005486, 0.04595416411757469, 0.003821908961981535, 0.011938161216676235, -0.03252540901303291, 0.02825545333325863, -0.03777866065502167, -0.26149532198905945, 0.02898440882563591, 0.0016504594823345542, -0.03884175792336464, 0.02551284432411194, -0.006999567151069641, 0.008088672533631325, -0.05257756635546684, -0.0106840580701828, 0.005577426869422197, -0.012892890721559525, -0.04073862358927727, 0.0189516544342041, 0.020182210952043533, 0.002801055321469903, -0.004123092629015446, 0.020378287881612778, -0.024903539568185806, 0.010086425580084324, 0.045495033264160156, -0.0075599029660224915, -0.05447901785373688, 0.019442671909928322, 0.044190969318151474, 0.012931468896567822, 0.025393396615982056, -0.026935461908578873, 0.06359381973743439, -0.039624836295843124, -0.03282962366938591, -0.0014901282265782356, -0.01682182215154171, -0.004061735235154629, 0.026312343776226044, 0.0006399443955160677, -0.01016258541494608, 0.0337572880089283, 0.0031864268239587545, 0.010921922512352467, 0.01090647280216217, 0.004637146834284067, -0.0506010428071022, 0.02904294617474079, -0.03286290541291237, 0.05946340039372444, -0.026632346212863922, -0.0901116356253624, -0.016559097915887833, -0.05792173370718956, 0.09301624447107315, -0.0666118934750557, -0.05161863937973976, -0.015070538967847824, 0.04655890911817551, 0.03021293506026268, 0.006037665065377951, -0.004822759423404932, -0.021520867943763733, -0.059319619089365005, -0.030377991497516632, -0.010570692829787731, -0.05307284742593765, -0.053992919623851776, -0.02445550449192524, -0.004581477027386427, -0.0646485686302185, -0.029610564932227135, -0.018889548256993294, 0.06145460903644562, 0.021526049822568893, -0.0435214601457119, -0.03141014650464058, -0.035773634910583496, -0.0947536900639534, 0.02961583063006401, -0.025328731164336205, -0.01710912212729454, -0.011222507804632187, -0.03847503662109375, 0.036268167197704315, -0.060445159673690796, -0.05945518612861633, 0.022143036127090454, 0.006343930959701538, -0.0037418093997985125, -0.00874023325741291, 0.017083950340747833, -0.0001929905847646296, -0.030257651582360268, 0.009504924528300762, 0.06172357499599457, -0.024093307554721832, -0.04567793011665344, -0.01658153347671032, -0.00029056743369437754, 0.0024108916986733675, 0.06092178076505661, 0.032376471906900406, 0.03323505073785782, 0.036247916519641876, 0.017635170370340347, -0.05408037081360817, -0.010912504978477955, -0.003188525093719363, -0.0020446754060685635, 0.017513178288936615, -0.061528924852609634, 0.01547952089458704, 0.04321012645959854, -0.0017226290656253695, -0.016836844384670258, -0.0418693870306015, 0.004956899210810661, -0.049587901681661606, -0.058414556086063385, -0.02403709851205349, 0.01510036364197731, 0.05138959363102913, 0.021770747378468513, -0.010194730013608932, -0.050433412194252014, 0.028065625578165054, -0.006779703311622143, -0.031427301466464996, -0.04176654666662216, -0.024342622607946396, -0.004003231879323721, -0.012959319166839123, 0.02144460752606392, -0.00480862008407712, -0.030789412558078766, 0.008262060582637787, 0.029487019404768944, -0.05566886067390442, 0.03389837220311165, -0.03797989338636398, -0.03999387472867966, -0.0454840324819088, -0.013012032955884933, -0.011317399330437183, 0.010663044638931751, 0.0001560758100822568, 0.02788589894771576, 0.0023718844167888165, 0.071962371468544, -0.013484656810760498, 0.005850865039974451, -0.021825581789016724, -0.015122807584702969, 0.006155686918646097, 0.029127877205610275, -0.03680790960788727, 0.03261807560920715, -0.028820538893342018, -0.030906034633517265, -0.024082748219370842, 0.0016352083766832948, -0.018705423921346664, 0.00004787374928127974, -0.010464869439601898, 0.02034912444651127, -0.045345745980739594, -0.019326359033584595, 0.01205359771847725, -0.0013867862289771438, 0.04507019743323326, 0.02003282681107521, 0.009406443685293198, -0.025130461901426315, 0.006999207194894552, 0.042891908437013626, 0.018820814788341522, -0.016682753339409828, 0.011902263388037682, -0.025777090340852737, 0.022593488916754723, 0.009134764783084393, 0.01913473755121231, 0.02122008241713047, 0.017342835664749146, -0.0020872389432042837, -0.035704828798770905, 0.036342550069093704, 0.010293264873325825, 0.023506643250584602, -0.025358254089951515, -0.019595017656683922, -0.015738070011138916, -0.04167870804667473, -0.05596686899662018, -0.02771526388823986, 0.010729234665632248, -0.010814584791660309, -0.0005929196486249566, -0.030461624264717102, -0.08790800720453262, 0.007316174451261759, 0.028856489807367325, 0.03718462213873863, 0.010985849425196648, -0.01850164495408535, 0.005054390523582697, -0.05684966593980789, 0.020565178245306015, 0.09142819792032242, -0.07703036814928055, -0.02071773074567318, -0.014695622026920319, -0.004749798681586981, -0.00457664392888546, 0.02464836649596691, -0.05523325875401497, -0.023806247860193253, -0.007158833090215921, 0.011761946603655815, -0.03308634087443352, -0.02958204410970211, -0.011024782434105873, 0.020853672176599503, -0.01087716594338417, 0.011681213974952698, 0.0017458273796364665, -0.002228658413514495, -0.013510726392269135, -0.022853324189782143, 0.0041907960548996925, 0.002552586607635021, -0.021915409713983536, 0.023267537355422974, -0.001674992498010397, 0.06485327333211899, -0.02032696083188057, 0.043265726417303085, 0.031912051141262054, 0.006496956571936607, -0.023435121402144432, -0.04462645202875137, -0.01554238609969616, 0.0031771697103977203, 0.020168179646134377, -0.00292428070679307, 0.013722802512347698, -0.014216856099665165, -0.019532011821866035, -0.02132648602128029, 0.005152703728526831, -0.03579012304544449, -0.029382020235061646, -0.011443241499364376, 0.0684378519654274, 0.00962771475315094, 0.03825095295906067, -0.024648329243063927, -0.02368231862783432, 0.07714774459600449, -0.03331557661294937, -0.06296063959598541, 0.014133783988654613, -0.04800285026431084, 0.05509141832590103, 0.06233779713511467, 0.014902634546160698, -0.07246889919042587, 0.030712518841028214, 0.04168844595551491, 0.01107106264680624, 0.0578431598842144, -0.025353386998176575, 0.027568237856030464, -0.03962764889001846, -0.04380941763520241, -0.07917863875627518, -0.007657740730792284, -0.009696069173514843, -0.047262683510780334, -0.047880515456199646, 0.006237874273210764, -0.044092655181884766, 0.04066848382353783, -0.05272924154996872, -0.019028984010219574, 0.04546329379081726, -0.008064564317464828, 0.00632995693013072, 0.0472954660654068, -0.047061458230018616, 0.025859223678708076, 0.038541652262210846, -0.04661034792661667, -0.024335209280252457, -0.009727009572088718, 0.051064345985651016, -0.002689784625545144, 0.02940499782562256, -0.009624207392334938, 0.003699817694723606, 0.04732454940676689, 0.024435842409729958, 0.0035431585274636745, 0.025407487526535988, -0.01665511541068554, 0.051669977605342865, 0.042121823877096176, 0.021913083270192146, 0.00991236511617899, 0.03347618132829666, -0.017850246280431747, -0.05540558695793152, 0.039360854774713516, 0.0004663442086894065, 0.01231474056839943, -0.026678860187530518, 0.05615510791540146, 0.004042076412588358, -0.025430258363485336, -0.05934426188468933, 0.03417905047535896, -0.05809636414051056, -0.003468175418674946, -0.056143686175346375, -0.0007624190766364336, -0.04017098993062973, 0.06860025972127914, 0.006947025656700134, 0.007372386287897825, 0.047571029514074326, -0.018317557871341705, 0.009058023802936077, 0.008642823435366154, 0.05754966661334038, 0.08627226203680038, 0.021371454000473022, 0.015435190871357918, 0.06283015757799149, -0.030502868816256523, -0.05576063692569733, 0.014346115291118622, -0.01857195980846882, -0.023372843861579895, -0.024261197075247765, 0.012407233938574791, 0.061442334204912186, 0.02796308323740959, 0.06849025934934616, -0.018912389874458313, 0.003911152016371489, -0.024698399007320404, 0.026408826932311058, 0.015219621360301971, 0.03581145405769348, 0.002145349746569991, 0.03885044530034065, 0.0018188339890912175, -0.023493589833378792, 0.03260818496346474, -0.03572840616106987, 0.0004118717333767563, 0.024022301658988, -0.01096461620181799, -0.015466702170670033, 0.01636374182999134, 0.04985302686691284, 0.062159258872270584, -0.01956610009074211, -0.04357612133026123, 0.016882646828889847, 0.034855566918849945, 0.0038957311771810055, 0.024528440088033676, -0.017969543114304543, -0.009078506380319595, -0.010754584334790707, -0.025570621713995934, -0.0033067683689296246, -0.02490517869591713, -0.008659263141453266, 0.07488787919282913, -0.018455270677804947, 0.0322146899998188, 0.019117338582873344, -0.002083299681544304, -0.04503026604652405, -0.030941016972064972, -0.029971102252602577, -0.016155149787664413, -0.04302901774644852, 0.03697732836008072, 0.0014196123229339719, -0.006199519615620375, -0.04685746505856514, -0.0443190298974514, -0.008333312347531319, -0.02568243257701397, -0.004477016162127256, -0.06590498238801956, -0.01820039190351963, 0.01788667030632496, 0.02412308007478714, -0.0069809271954, 0.016992688179016113, 0.038340017199516296, 0.0030460509005934, -0.031091202050447464, -0.0185789093375206, 0.017135197296738625, 0.029113467782735825, 0.011520144529640675, 0.056526873260736465, -0.09801468253135681, 0.029109427705407143, 0.0535440593957901, 0.02847435139119625, -0.04786963760852814, 0.018562076613307, 0.04183031618595123, -0.047015510499477386, 0.047841548919677734, 0.04145142436027527, 0.014052108861505985, -0.049811482429504395, -0.011569509282708168, -0.016299007460474968, 0.021617453545331955, 0.05722244456410408, -0.024905018508434296, 0.07429974526166916, 0.025392932817339897, 0.013906908221542835, -0.006227939389646053, -0.009153074584901333, -0.013403278775513172, -0.0032512955367565155, -0.036327678710222244, -0.015333867631852627, -0.05716483294963837, -0.04735097661614418, -0.014088066294789314, 0.018305381760001183, -0.03658133000135422, -0.029989032074809074, 0.0011090723564848304, -0.007142824586480856, -0.04010723903775215, 0.06331551820039749, -0.054240722209215164, -0.02731006219983101, -0.007211876101791859, -0.02724093571305275, -0.010796857066452503, 0.04179949685931206, 0.019010495394468307, -0.016049157828092575, 0.022863026708364487, -0.03027176856994629, -0.004056463483721018, -0.02474524825811386, 0.03212323412299156, 0.015835216268897057, -0.02520401030778885, 0.051571521908044815 ]
[ -0.0670883059501648, 0.005503812339156866, 0.0032108607701957226, 0.005087217781692743, 0.012918474152684212, -0.07622241228818893, -0.06507880240678787, 0.0072991931810975075, -0.018946778029203415, -0.03299225494265556, 0.001095307874493301, -0.03418843075633049, 0.011413994245231152, -0.037513069808483124, 0.0816526934504509, 0.022858433425426483, -0.005329489707946777, -0.06360658258199692, -0.005414394196122885, 0.012388894334435463, 0.02869524620473385, 0.007784154731780291, -0.020527221262454987, -0.026999356225132942, -0.028530707582831383, 0.061541277915239334, 0.02922172099351883, 0.00012847153993789107, -0.006554451771080494, -0.20229505002498627, 0.0011948486790060997, 0.029381128028035164, 0.007615918759256601, -0.023537909612059593, 0.033697694540023804, 0.10811986029148102, -0.026562266051769257, 0.01935104839503765, 0.0013421026524156332, 0.02415982447564602, -0.0014175133546814322, 0.017939096316695213, -0.07010714709758759, -0.042508870363235474, 0.08361104875802994, -0.024360375478863716, -0.0428733229637146, -0.031349800527095795, -0.003887761617079377, 0.018183577805757523, -0.051772624254226685, 0.009226934053003788, 0.010570751503109932, -0.003118026303127408, -0.02771224081516266, 0.04827352240681648, 0.05686948820948601, 0.08892543613910675, 0.01676027663052082, -0.0022567997220903635, -0.005103991366922855, -0.019566040486097336, -0.15342405438423157, 0.11452343314886093, 0.017435068264603615, 0.008773565292358398, -0.05113408714532852, 0.004849649965763092, -0.022327538579702377, 0.07070064544677734, -0.002844056347385049, -0.006016216240823269, -0.0135796582326293, 0.05512980744242668, 0.021011490374803543, -0.03116871975362301, 0.03630159795284271, -0.0001514675241196528, 0.0389065183699131, -0.02829589881002903, -0.02191661112010479, -0.02272406779229641, -0.029505396261811256, -0.04140148684382439, -0.0260152630507946, -0.012097525410354137, -0.010654421523213387, 0.05837952345609665, 0.02293883077800274, -0.0042566778138279915, 0.019576461985707283, -0.0758587196469307, 0.031981296837329865, 0.021252276375889778, -0.10095608979463577, -0.009530655108392239, 0.025930602103471756, 0.007516241632401943, -0.06186265870928764, 0.44253960251808167, -0.028388570994138718, -0.008782492950558662, 0.025861583650112152, 0.03577587381005287, 0.028433827683329582, 0.008838366717100143, -0.008425897918641567, -0.03850643336772919, -0.009219219908118248, -0.02881048619747162, 0.002014891942963004, -0.01750820502638817, 0.07202431559562683, -0.0724882036447525, 0.015012133866548538, -0.042410481721162796, -0.01452065072953701, 0.008332404308021069, -0.015994276851415634, 0.0006566141964867711, -0.03643737733364105, -0.006260667461901903, 0.028629008680582047, 0.019073819741606712, -0.013275676406919956, -0.004934659227728844, 0.03480574116110802, 0.03083212673664093, 0.026506880298256874, 0.015403283759951591, 0.025829466059803963, -0.004985848441720009, -0.047272391617298126, -0.00654477346688509, 0.022877737879753113, 0.060148268938064575, 0.0007290667854249477, -0.03698653727769852, 0.03900576010346413, 0.030048342421650887, 0.01113311666995287, -0.03152281418442726, -0.0013001093175262213, 0.01399159338325262, 0.005076907575130463, 0.09072672575712204, -0.0019980883225798607, -0.0001330942614004016, -0.0455632358789444, -0.00590235460549593, -0.026574131101369858, 0.026446500793099403, -0.012617332860827446, -0.011405744589865208, 0.04071446508169174, 0.03212377429008484, 0.06382542848587036, -0.03458551689982414, -0.04364734888076782, 0.016019003465771675, 0.04868398606777191, -0.04667459428310394, -0.03817296400666237, 0.03019595891237259, 0.009661823511123657, -0.057444069534540176, -0.03321666643023491, -0.024066830053925514, -0.03468910977244377, -0.06735727936029434, -0.0008346482645720243, -0.0017707068473100662, -0.017133837565779686, 0.016307011246681213, 0.008679852820932865, -0.04801855981349945, 0.010453402996063232, 0.003552252659574151, 0.06566902250051498, 0.009866142645478249, -0.003911430481821299, 0.02841448225080967, -0.0344226099550724, 0.012176468037068844, -0.01776299998164177, -0.10127375274896622, -0.03541862592101097, -0.04475099593400955, -0.016326138749718666, -0.04610622674226761, -0.005727012641727924, 0.024682242423295975, 0.004288064315915108, 0.04107854142785072, -0.023027120158076286, -0.0006959346355870366, 0.019610919058322906, -0.010033879429101944, -0.010800941847264767, -0.04074091836810112, 0.03586108237504959, 0.058124616742134094, 0.0016409822273999453, 0.018132243305444717, -0.047412481158971786, 0.032945942133665085, 0.02670188620686531, -0.022778920829296112, 0.04954151809215546, -0.008543331176042557, -0.06086809188127518, -0.0015993136912584305, 0.045532792806625366, 0.018217267468571663, -0.03057231567800045, -0.0009765424183569849, -0.01078020129352808, 0.01927763596177101, 0.0477166585624218, 0.026533691212534904, -0.04303210973739624, -0.06806023418903351, -0.07784716784954071, -0.3464229106903076, 0.014225863851606846, -0.0024487250484526157, -0.03604300692677498, -0.027249347418546677, -0.05971778929233551, -0.023564768955111504, -0.015697797760367393, -0.0015523209003731608, 0.03805561736226082, 0.08585616201162338, -0.03734542429447174, 0.0654715970158577, -0.07376277446746826, 0.02983712963759899, 0.03194809705018997, -0.01913059502840042, -0.025056518614292145, 0.0026927771978080273, -0.007245863322168589, -0.0040617273189127445, -0.03285481780767441, -0.043973397463560104, -0.04849976673722267, -0.022977055981755257, -0.0017585811438038945, 0.10009702295064926, 0.07290275394916534, 0.03689618781208992, -0.04706576466560364, 0.06309304386377335, 0.056192073971033096, -0.027055831626057625, -0.13318921625614166, -0.005811626557260752, 0.01932608149945736, -0.0019013858400285244, 0.02580658718943596, 0.030683202669024467, -0.011412170715630054, -0.01991090178489685, 0.03850521147251129, -0.044825777411460876, -0.005234644282609224, -0.018367072567343712, -0.003541935933753848, -0.023843878880143166, -0.035805340856313705, 0.009183979593217373, 0.07233968377113342, 0.0010123694082722068, 0.032198451459407806, -0.001850696513429284, 0.010259856469929218, -0.0004581536923069507, -0.018413469195365906, -0.08237318694591522, 0.014429851435124874, 0.03568573296070099, -0.0808367058634758, 0.0508529469370842, 0.02811313606798649, 0.07595821470022202, -0.0541921891272068, -0.03033890388906002, -0.016305705532431602, 0.0010593908373266459, -0.0234956257045269, 0.08108936995267868, -0.016610508784651756, 0.01728547178208828, 0.09206318110227585, -0.022016094997525215, 0.022951822727918625, -0.0007888031541369855, 0.024514691904187202, 0.005544889252632856, 0.009911089204251766, 0.030915334820747375, -0.03942259028553963, 0.016683071851730347, 0.04461193084716797, 0.05588258430361748, -0.037483785301446915, -0.0372270904481411, 0.06334345042705536, -0.03201501816511154, -0.04174893721938133, 0.06549127399921417, -0.006460769567638636, 0.011913778260350227, 0.019352950155735016, 0.01718335598707199, -0.0019483460346236825, 0.06742485612630844, 0.03055647388100624, -0.23255357146263123, 0.02683725394308567, 0.10740017145872116, 0.04472314566373825, 0.007369793951511383, 0.007583820726722479, 0.025445198640227318, -0.0585288442671299, -0.029115168377757072, -0.005838851444423199, 0.019208189100027084, 0.019014285877346992, -0.01501639373600483, -0.008404447697103024, 0.004162694327533245, -0.022722773253917694, 0.06339658796787262, -0.007301315665245056, -0.018609395250678062, -0.008830009959638119, -0.009915641508996487, -0.024934517219662666, 0.16250810027122498, -0.010886842384934425, -0.03308290243148804, -0.006708530709147453, 0.011405758559703827, 0.028194494545459747, 0.0446937158703804, 0.030827250331640244, -0.012260428629815578, 0.009524853900074959, 0.03438527137041092, 0.006142193917185068, 0.06455446034669876, -0.023791266605257988, -0.02467377483844757, 0.003521659877151251, 0.01991673931479454, -0.0034093460999429226, -0.02219635806977749, 0.0578668937087059, -0.05559651926159859, 0.014200921170413494, 0.004288817755877972, -0.015512478537857533, 0.007606889121234417, 0.0246437881141901, -0.06153961271047592, 0.004791740793734789, -0.004657650366425514, -0.010130958631634712, -0.024369550868868828, 0.0161037165671587, 0.013572580181062222, 0.04285762831568718, 0.0394999235868454, -0.025411145761609077, 0.016077863052487373, 0.02248947136104107, -0.003104014089331031, -0.05510144680738449, 0.1246880441904068, 0.03341127187013626, -0.004750278312712908 ]
[ 0.0026747402735054493, 0.023147137835621834, 0.009807949885725975, -0.014801756478846073, 0.02759704925119877, 0.004423402715474367, 0.007188570220023394, -0.01765328086912632, -0.02286749705672264, 0.004652667324990034, 0.007790717761963606, -0.0009736396605148911, 0.03411120921373367, -0.022224463522434235, 0.03851575404405594, 0.008665503934025764, 0.0008989482303149998, -0.06405584514141083, 0.030716992914676666, -0.0004675946256611496, -0.027372457087039948, 0.035446275025606155, 0.033006083220243454, 0.021396653726696968, -0.021906955167651176, 0.023380741477012634, -0.05971112102270126, 0.025943312793970108, 0.021791407838463783, -0.1041022315621376, -0.02749895304441452, -0.01106570940464735, -0.014310128055512905, -0.030583970248699188, 0.017365187406539917, 0.04610837996006012, -0.0012860294664278626, 0.0046417671255767345, 0.0033350521698594093, 0.006679143290966749, -0.002173369051888585, -0.008146386593580246, -0.024183524772524834, -0.008839882910251617, -0.016123147681355476, -0.056637413799762726, -0.03471700847148895, -0.03491300716996193, -0.009067408740520477, -0.0021972283720970154, -0.0347137413918972, -0.004745942074805498, -0.0004334936384111643, -0.006291219964623451, 0.008347241207957268, 0.025026367977261543, 0.02062949538230896, 0.0216290894895792, -0.02639058791100979, -0.0402621291577816, -0.013744938187301159, -0.007334645371884108, -0.05315606668591499, -0.02652803622186184, 0.005670377518981695, -0.019788099452853203, -0.06484819203615189, -0.00044266055920161307, 0.005628195591270924, 0.010791006498038769, -0.004058311227709055, -0.004710139241069555, -0.010541034862399101, -0.002934314077720046, -0.007807668764144182, 0.0007548756548203528, 0.016055915504693985, -0.017290689051151276, -0.024433473125100136, 0.009761977940797806, -0.02779451571404934, 0.033160045742988586, 0.028123101219534874, 0.006858368869870901, -0.013271523639559746, -0.024758191779255867, 0.01078562717884779, -0.0037096012383699417, 0.018114935606718063, -0.0018501430749893188, 0.014196174219250679, -0.022541075944900513, 0.0217889454215765, 0.03997271507978439, -0.06459067016839981, 0.005568991880863905, 0.0029500210657715797, -0.04713907837867737, -0.020921740680933, 0.8539453148841858, -0.03481917083263397, 0.004126035142689943, 0.04418257996439934, -0.015638113021850586, 0.045647330582141876, 0.023843081668019295, -0.0022954645100980997, -0.05099845677614212, 0.016359670087695122, -0.0448489710688591, 0.034738849848508835, -0.029498852789402008, 0.0013362569734454155, 0.019852468743920326, 0.030249787494540215, -0.004574643447995186, 0.0011857900535687804, 0.006467060651630163, 0.00459963409230113, 0.019401689991354942, 0.03954044356942177, -0.007459379732608795, 0.015466862358152866, 0.015447504818439484, -0.01026552077382803, -0.166470006108284, -0.007900836877524853, -6.946663212052989e-33, 0.04435538500547409, -0.009541979059576988, 0.0019832258112728596, 0.03269018605351448, 0.03159719333052635, -0.002046085661277175, 0.0029088191222399473, 0.021453676745295525, -0.016177447512745857, -0.040695834904909134, 0.013240423053503036, -0.020788541063666344, -0.032831232994794846, 0.027390779927372932, 0.018772335723042488, -0.019268399104475975, 0.003161070868372917, 0.03690510615706444, 0.005057834088802338, 0.005006848368793726, 0.012542824260890484, 0.03772460296750069, 0.018547052517533302, -0.006875158287584782, -0.00920093059539795, 0.029724441468715668, 0.0112010408192873, 0.008547372184693813, 0.000630763010121882, -0.05438711866736412, -0.013631587848067284, 0.015929555520415306, 0.014134133234620094, -0.041380662471055984, -0.007625152822583914, -0.04148050397634506, -0.04334472864866257, 0.0014884790871292353, -0.017004288733005524, -0.025243356823921204, -0.03986925631761551, 0.018451906740665436, -0.010134700685739517, -0.008466917090117931, -0.02471623197197914, 0.013313859701156616, -0.002782943192869425, 0.01622464694082737, 0.01938622258603573, 0.01809481345117092, 0.014290811493992805, 0.014086882583796978, -0.017395759001374245, 0.041116032749414444, 0.0009737503132782876, -0.014401227235794067, -0.0030444846488535404, -0.01343525294214487, 0.037205759435892105, -0.0488763190805912, -0.0015256775077432394, -0.019200505688786507, 0.037583574652671814, 0.037297021597623825, 0.03794306144118309, -0.003115840954706073, -0.0028360828291624784, -0.02005782164633274, 0.033936258405447006, 0.017161447554826736, -0.08126663416624069, -0.004494762513786554, -0.007017981726676226, -0.0422852523624897, 0.02768011763691902, -0.02350752428174019, -0.004794678185135126, -0.028556356206536293, 0.007210412994027138, 0.064081110060215, 0.001870550331659615, -0.010519900359213352, 0.003395809093490243, -0.0353400819003582, -0.04602085053920746, -0.021603314206004143, 0.026709716767072678, 0.001944931922480464, -0.011531396768987179, 0.02435974031686783, 0.01896180585026741, 0.042740728706121445, -0.01009391713887453, -0.020392227917909622, -0.03325936198234558, 6.704540763142368e-33, 0.01687188446521759, -0.0022277419921010733, -0.021809907630085945, -0.003566797124221921, 0.03710312396287918, -0.02108336240053177, 0.010930188931524754, -0.006164663005620241, -0.008365386165678501, 0.03570292890071869, -0.019937241449952126, 0.023210138082504272, -0.023974573239684105, 0.029761340469121933, 0.043935082852840424, 0.015926383435726166, -0.017329346388578415, 0.013432411476969719, 0.035866498947143555, 0.007393887732177973, -0.02007312886416912, 0.014815273694694042, 0.012579353526234627, -0.008404252119362354, 0.01635269820690155, 0.03827957063913345, -0.0024935000110417604, -0.0042516193352639675, -0.017075464129447937, -0.027253108099102974, -0.003476819721981883, -0.012004963122308254, -0.03104466386139393, -0.009646551683545113, -0.010562178678810596, 0.03520683944225311, -0.004538047593086958, -0.010641591623425484, -0.0003163872752338648, 0.03473789244890213, 0.07133873552083969, -0.0016417992301285267, 0.004172738175839186, -0.02122313901782036, -0.019733764231204987, -0.022241711616516113, -0.011171472258865833, -0.021982507780194283, -0.02195694111287594, 0.02512640319764614, -0.009962726384401321, 0.01036873646080494, 0.03636950999498367, 0.007483930326998234, 0.043075356632471085, -0.02982904203236103, -0.006691358983516693, 0.03540567681193352, -0.03950600326061249, 0.0016364814946427941, -0.0103341955691576, 0.01871553063392639, -0.0017888413276523352, 0.009946486912667751, -0.04300069063901901, 0.010204656980931759, -0.04488019272685051, 0.011891964823007584, -0.012715728022158146, 0.023596709594130516, 0.013085618615150452, -0.0001260072604054585, 0.01858624257147312, 0.01601719669997692, 0.029912477359175682, 0.00635064160451293, -0.004023758694529533, -0.0040599387139081955, -0.03244543448090553, -0.00814078375697136, 0.011602068319916725, -0.002268982818350196, 0.019027061760425568, 0.013932332396507263, -0.015664808452129364, -0.0023191780783236027, -0.02000507153570652, -0.018993135541677475, 0.01966044120490551, 0.019380278885364532, 0.02712491899728775, -0.02899550274014473, 0.026176564395427704, 0.01869482547044754, 0.013467874377965927, -1.3058611969540834e-8, -0.0364953950047493, -0.023815322667360306, -0.028292464092373848, 0.013185321353375912, 0.034385502338409424, -0.005685230251401663, -0.0004680970450863242, -0.02470923773944378, 0.008782991208136082, 0.019691552966833115, 0.04325241222977638, -0.023746361956000328, 0.01309131644666195, -0.004795167129486799, 0.010542386211454868, -0.03124796412885189, -0.005074933636933565, -0.006269680801779032, 0.008578095585107803, -0.03936164081096649, -0.011402102187275887, 0.07509876787662506, -0.0079518873244524, -0.004733638372272253, -0.00334096304140985, 0.0018211125861853361, 0.011520368047058582, -0.08109559118747711, -0.05021674185991287, 0.014572753570973873, 0.03559722378849983, -0.01897921971976757, -0.033348869532346725, 0.005461646243929863, 0.007148900534957647, -0.03144819289445877, 0.026060616597533226, 0.010825514793395996, 0.0029564497526735067, 0.00022544118110090494, -0.025144360959529877, 0.004682763945311308, -0.003560502314940095, -0.041835300624370575, -0.0220046304166317, -0.031437668949365616, -0.024590831249952316, 0.022227270528674126, 0.020900212228298187, 0.004663330037146807, -0.003984692972153425, 0.011163825169205666, 0.019682208076119423, 0.0006472368258982897, 0.019177919253706932, -0.002575283171609044, 0.02510039508342743, 0.017369914799928665, -0.04647625982761383, -0.028288595378398895, 0.0065479641780257225, 0.016823003068566322, 0.023634709417819977, -0.036842018365859985 ]
poetry-install-does-not-contain-any-element
https://markhneedham.com/blog/2023/10/26/poetry-install-does-not-contain-any-element
false
2023-10-09 00:44:37
Poetry/Dagster: ImportError: cannot import name 'appengine' from 'requests.packages.urllib3.contrib'
[ "poetry", "python", "dagster", "til" ]
[ "TIL" ]
:icons: font I'm taking some tentative steps into the world of batch data pipelines and I've been following https://docs.dagster.io/integrations/duckdb/using-duckdb-with-dagster[Dagster's DuckDB tutorial] when I ran into a dependency issue that I had to work around. In this blog post, I'll share the steps that I took in case you run into the same issue. I'm using the https://python-poetry.org/[Poetry^] dependency management tool, but I think you'd get the same issue even if you used `pip` directly. We're going to start by adding the following dependencies: [source, bash] ---- poetry add dagster duckdb dagster-duckdb dagster-duckdb-pandas dagster-webserver ---- And then we'll create a file called `dagster_iris.py` that defines one asset, which ingests the Iris dataset into DuckDB. .dagster_iris.py [source, python] ---- from dagster_duckdb import DuckDBResource from dagster import Definitions, asset @asset def iris_dataset(duckdb: DuckDBResource) -> None: iris_df = pd.read_csv( "https://docs.dagster.io/assets/iris.csv", names=[ "sepal_length_cm", "sepal_width_cm", "petal_length_cm", "petal_width_cm", "species", ], ) with duckdb.get_connection() as conn: conn.execute("CREATE TABLE iris.iris_dataset AS SELECT * FROM iris_df") defs = Definitions( assets=[iris_dataset], resources={ "duckdb": DuckDBResource( database="/tmp/iris.duckdb", # required ) }, ) ---- Next, we're going to launch Dagster's UI so that we can materialise this asset: [source, bash] ---- poetry run dagster dev -f dagster_iris.py ---- But we immediately run into this error: .Output [source, text] ---- Traceback (most recent call last): File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/requests_toolbelt/_compat.py", line 48, in <module> from requests.packages.urllib3.contrib import appengine as gaecontrib ImportError: cannot import name 'appengine' from 'requests.packages.urllib3.contrib' (/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/urllib3/contrib/__init__.py) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/dagster_webserver/__main__.py", line 1, in <module> from .cli import main # pragma: no cover ^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/dagster_webserver/cli.py", line 28, in <module> from .app import create_app_from_workspace_process_context File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/dagster_webserver/app.py", line 9, in <module> from .webserver import DagsterWebserver File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/dagster_webserver/webserver.py", line 17, in <module> from dagster_graphql import __version__ as dagster_graphql_version File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/dagster_graphql/__init__.py", line 3, in <module> from .client import ( File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/dagster_graphql/client/__init__.py", line 1, in <module> from .client import DagsterGraphQLClient as DagsterGraphQLClient File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/dagster_graphql/client/client.py", line 12, in <module> from gql.transport.requests import RequestsHTTPTransport File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/gql/transport/requests.py", line 11, in <module> from requests_toolbelt.multipart.encoder import MultipartEncoder File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/requests_toolbelt/__init__.py", line 12, in <module> from .adapters import SSLAdapter, SourceAddressAdapter File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/requests_toolbelt/adapters/__init__.py", line 12, in <module> from .ssl import SSLAdapter File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/requests_toolbelt/adapters/ssl.py", line 16, in <module> from .._compat import poolmanager File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/requests_toolbelt/_compat.py", line 50, in <module> from urllib3.contrib import appengine as gaecontrib ImportError: cannot import name 'appengine' from 'urllib3.contrib' (/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/urllib3/contrib/__init__.py) 2023-10-09 10:54:31 +0100 - dagster.daemon - INFO - Instance is configured with the following daemons: ['AssetDaemon', 'BackfillDaemon', 'SchedulerDaemon', 'SensorDaemon'] 2023-10-09 10:54:35 +0100 - dagster - ERROR - An unexpected exception has occurred Traceback (most recent call last): File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/tmp-Ef4UpWP3-py3.11/lib/python3.11/site-packages/dagster/_cli/dev.py", line 176, in dev_command raise Exception( Exception: dagster-webserver process shut down unexpectedly with return code 1 2023-10-09 10:54:35 +0100 - dagster - INFO - Shutting down Dagster services... 2023-10-09 10:54:35 +0100 - dagster.daemon - INFO - Received interrupt, shutting down daemon threads... 2023-10-09 10:54:35 +0100 - dagster.daemon - INFO - Daemon threads shut down. 2023-10-09 10:54:35 +0100 - dagster - INFO - Dagster services shut down. ---- I came across https://stackoverflow.com/questions/76175487/sudden-importerror-cannot-import-name-appengine-from-requests-packages-urlli[this thread^], which describes a way to fix it. [quote] ____ The cause is that the latest version of requests does not support urllib3 2.0.0. This is fixed in kfp-2.0.0b16 (see PR with the change), so you can either upgrade to that, or create a new image that downgrades urllib. ____ So I ran the following command: [source, bash] ---- poetry add urllib3==1.26.15 requests-toolbelt==0.10.1 ---- When I then re-run the `dagster dev` command, I can happily load the UI: [source, text] ---- 2023-10-09 10:55:58 +0100 - dagster - INFO - Using temporary directory /private/tmp/tmpswb90dld for storage. This will be removed when dagster dev exits. 2023-10-09 10:55:58 +0100 - dagster - INFO - To persist information across sessions, set the environment variable DAGSTER_HOME to a directory to use. 2023-10-09 10:55:58 +0100 - dagster - INFO - Launching Dagster services... 2023-10-09 10:55:59 +0100 - dagster.daemon - INFO - Instance is configured with the following daemons: ['AssetDaemon', 'BackfillDaemon', 'SchedulerDaemon', 'SensorDaemon'] 2023-10-09 10:56:00 +0100 - dagster-webserver - INFO - Serving dagster-webserver on http://127.0.0.1:3000 in process 31935 ----
In this post, we'll learn how to work around a dependency issue when trying to run Dagster.
uploads/2023/10/dagster-banner.png
[ -0.027122370898723602, -0.0007783296750858426, -0.02868649922311306, 0.04338996857404709, 0.09535687416791916, 0.039184052497148514, 0.002249321201816201, 0.04834799841046333, -0.018558861687779427, -0.006953746546059847, -0.0037952158600091934, -0.010942697525024414, -0.07114525139331818, 0.008417675271630287, -0.017671776935458183, 0.06852946430444717, 0.07110761851072311, -0.002515624277293682, 0.045702122151851654, 0.0142545560374856, 0.024201245978474617, 0.04445573315024376, -0.010553589090704918, 0.058569613844156265, 0.033086586743593216, 0.03030102699995041, 0.030662182718515396, 0.0005332681466825306, -0.0418379008769989, -0.028341593220829964, 0.03257089480757713, -0.009740901179611683, 0.023723434656858444, -0.016937581822276115, 0.036294881254434586, 0.0071398550644516945, -0.03301838040351868, 0.02095220610499382, 0.0027899770066142082, -0.0020712099503725767, -0.0856366753578186, -0.00519821560010314, -0.01593906059861183, -0.0017198693240061402, -0.04706578329205513, 0.005566765554249287, -0.06118118017911911, 0.03398410230875015, 0.007570364512503147, -0.006432662717998028, -0.07980242371559143, 0.023900913074612617, -0.00504618976265192, -0.015270980075001717, -0.01029755175113678, 0.013806414790451527, 0.01520141027867794, -0.08562083542346954, 0.02550317905843258, -0.01565268263220787, 0.029313331469893456, -0.017702577635645866, 0.002073937328532338, 0.022122975438833237, 0.03897246718406677, -0.006035415455698967, -0.012050967663526535, 0.021440686658024788, -0.05853164196014404, -0.015175005421042442, 0.024524327367544174, -0.006771390326321125, -0.04943983256816864, 0.0038378448225557804, -0.0012830094201490283, -0.045200642198324203, -0.020207995548844337, 0.02967454306781292, 0.027020812034606934, 0.05837446078658104, -0.011806316673755646, -0.007686922326683998, 0.011325912550091743, 0.020739329978823662, -0.01752316765487194, -0.05942448228597641, -0.03941047191619873, 0.013092376291751862, -0.07177431136369705, 0.04136419668793678, 0.026294657960534096, -0.07337882369756699, 0.007627276703715324, -0.0018487724009901285, -0.029865439981222153, -0.001366843469440937, -0.011863685213029385, 0.0004216746601741761, 0.015197884291410446, -0.01696060411632061, -0.03888684883713722, -0.029773272573947906, 0.01300592627376318, 0.034061238169670105, -0.08238308131694794, -0.0005404690746217966, -0.05751706659793854, -0.022772660478949547, 0.008623289875686169, 0.005953552667051554, -0.014175058342516422, 0.0028298147954046726, -0.024755606427788734, -0.018665973097085953, -0.05835860222578049, 0.067083440721035, 0.038621652871370316, -0.019892290234565735, 0.01570385880768299, 0.04407978802919388, 0.07120179384946823, 0.029506489634513855, -0.02931143157184124, 0.06325072050094604, -0.012552454136312008, 0.022655697539448738, -0.0012459654826670885, 0.044698894023895264, -0.0051357136107981205, -0.043941278010606766, -0.0522228442132473, 0.04754846543073654, -0.015674028545618057, 0.001495069358497858, 0.013908052816987038, -0.021808579564094543, 0.0011711809784173965, 0.01894819736480713, 0.07034600526094437, 0.021105891093611717, 0.007497545797377825, -0.020069899037480354, 0.002068133093416691, 0.004673247691243887, 0.04361916705965996, 0.0021155059803277254, 0.01604185812175274, -0.030879706144332886, -0.030286723747849464, 0.029409188777208328, -0.004286949057132006, 0.01766924187541008, 0.07710196077823639, -0.026859041303396225, 0.010234465822577477, 0.07754839211702347, 0.023891659453511238, 0.012449489906430244, -0.018678203225135803, 0.018594518303871155, 0.029378730803728104, 0.011666529811918736, -0.010413093492388725, 0.03544875234365463, 0.004344682674854994, -0.035221319645643234, -0.0019574682228267193, 0.0288965106010437, -0.03654082119464874, 0.012898202054202557, -0.04044334962964058, -0.0847700759768486, 0.07856658846139908, -0.020370757207274437, 0.019199708476662636, 0.021694714203476906, 0.061889082193374634, 0.033826880156993866, 0.024254418909549713, 0.03816542774438858, -0.08745487034320831, 0.06430837512016296, -0.004467656835913658, 0.003581390017643571, 0.01151082944124937, -0.0011875299969688058, 0.10660120844841003, 0.026549197733402252, 0.016118068248033524, 0.053479649126529694, -0.07565377652645111, -0.07695409655570984, -0.029326003044843674, 0.023004921153187752, 0.044437944889068604, -0.052764009684324265, -0.01256225723773241, 0.040250033140182495, 0.03978746756911278, 0.040515244007110596, 0.0071824826300144196, -0.005375731270760298, 0.009404447861015797, -0.05807814374566078, -0.04960720241069794, 0.036499928683042526, 0.028951697051525116, -0.020353524014353752, -0.035401005297899246, -0.015628432855010033, -0.021246308460831642, -0.027056999504566193, 0.027650730684399605, -0.026709847152233124, 0.07399183511734009, -0.005731615703552961, 0.014083825051784515, -0.03531993180513382, 0.024523308500647545, -0.06443535536527634, 0.017729241400957108, 0.014844515360891819, -0.007507756352424622, 0.00013747718185186386, 0.014842772856354713, 0.11364098638296127, 0.04989106208086014, -0.015532020479440689, -0.04368343576788902, 0.014264913275837898, 0.011630109511315823, -0.04640341177582741, 0.02531568519771099, -0.03211265802383423, -0.018185433000326157, 0.025198623538017273, -0.026011724025011063, -0.01909969002008438, 0.04206505045294762, -0.034283291548490524, 0.0039803264662623405, 0.0381905734539032, -0.022706544026732445, 0.049794092774391174, 0.03895699232816696, -0.03613715246319771, -0.014072527177631855, -0.03416392579674721, -0.05812375247478485, -0.021201031282544136, 0.015999214723706245, 0.006191123742610216, 0.02343781292438507, -0.01936095766723156, 0.01065079029649496, -0.018427832052111626, -0.056852515786886215, 0.039802372455596924, 0.042575910687446594, 0.07270023971796036, -0.05889619514346123, 0.025704188272356987, 0.019824694842100143, 0.012565117329359055, -0.01886340230703354, -0.040396034717559814, -0.03328543156385422, 0.011344474740326405, 0.04328436031937599, 0.01565556973218918, 0.011602836661040783, 0.027140334248542786, 0.014341994188725948, -0.004649205598980188, 0.005331533960998058, -0.006956724915653467, 0.028721416369080544, 0.007148370146751404, -0.01602785289287567, -0.05430776998400688, -0.021609824150800705, 0.05551482364535332, -0.06692460179328918, -0.027640359476208687, 0.024666711688041687, -0.04947690665721893, 0.03757943958044052, -0.06773202866315842, -0.021889450028538704, -0.013706673868000507, 0.01647697575390339, 0.038485947996377945, -0.011043502017855644, -0.002002763096243143, 0.04345240443944931, 0.00997741799801588, -0.000004969975634594448, 0.0034498923923820257, -0.006215727888047695, 0.04623318091034889, 0.016149617731571198, 0.051368433982133865, 0.04991575703024864, 0.02275564707815647, -0.0033255494199693203, -0.03367279842495918, 0.000017690043023321778, -0.02770473062992096, -0.2664342522621155, 0.04463602229952812, 0.002181009389460087, -0.02717975527048111, 0.02512645348906517, -0.030528923496603966, 0.017169682309031487, -0.0225441362708807, -0.025174612179398537, -0.0026273273397237062, -0.031037455424666405, -0.06733955442905426, 0.0005449492600746453, 0.0311444029211998, 0.003377131652086973, 0.00941715482622385, 0.014362162910401821, -0.04164024814963341, 0.01100002508610487, 0.05503150820732117, -0.014251232147216797, -0.05790374055504799, -0.005946354474872351, 0.04537424072623253, 0.023755664005875587, 0.023663651198148727, -0.060641810297966, 0.031070049852132797, -0.05614226311445236, -0.03283315896987915, 0.030290674418210983, 0.017377609387040138, -0.018478238955140114, 0.0038105424027889967, -0.024531105533242226, -0.03699830174446106, 0.04200752452015877, -0.001887448481284082, 0.04140443354845047, -0.0174592025578022, 0.007652738597244024, -0.048554956912994385, 0.009228503331542015, 0.0002439828822389245, 0.07395901530981064, -0.022579437121748924, -0.07983531057834625, -0.011307368054986, -0.053556520491838455, 0.07788504660129547, -0.04348061606287956, -0.04430320858955383, -0.020109886303544044, 0.021302442997694016, 0.011508350260555744, 0.019460149109363556, 0.011320468969643116, 0.013324305415153503, -0.0366782546043396, -0.02799937129020691, 0.009260068647563457, -0.022673344239592552, -0.012742003425955772, -0.04199758917093277, -0.008266880176961422, -0.06883595138788223, -0.04502660781145096, -0.04175320267677307, 0.05288480967283249, 0.05734431743621826, -0.0560479611158371, -0.008808035403490067, -0.011492908000946045, -0.10588326305150986, 0.017902981489896774, -0.03077765926718712, 0.007922891527414322, -0.02653839811682701, -0.014744989573955536, 0.04495937377214432, -0.02080446295440197, -0.044356875121593475, 0.02854308672249317, 0.00825098343193531, 0.0002009967720368877, -0.029056929051876068, 0.01033004466444254, 0.0003068060614168644, -0.0126864118501544, 0.01852884143590927, 0.05164717882871628, -0.016572101041674614, -0.005930627230554819, -0.023523952811956406, -0.01792028360068798, 0.030251385644078255, 0.04672332853078842, 0.016373584046959877, 0.004568880423903465, 0.010549134574830532, 0.053670838475227356, -0.04246171563863754, -0.027033496648073196, -0.02008972130715847, -0.014309938065707684, -0.010045119561254978, -0.06761570274829865, 0.02596951834857464, 0.0275428369641304, 0.021471401676535606, -0.022714843973517418, -0.06157182902097702, 0.03161179646849632, -0.07827963680028915, -0.020946092903614044, -0.030561022460460663, 0.028753498569130898, 0.023120904341340065, 0.02379574626684189, 0.0011459983652457595, -0.042555686086416245, 0.027445882558822632, -0.009516434744000435, -0.011994707398116589, -0.053046662360429764, -0.022980161011219025, 0.0026793498545885086, -0.00042147558997385204, -0.011064290069043636, -0.01480482891201973, -0.03098522312939167, 0.0019327648915350437, 0.030457213521003723, -0.055462051182985306, 0.03629562631249428, -0.04251667484641075, -0.0409177727997303, -0.0367773063480854, 0.0007382042240351439, -0.0051848385483026505, -0.020085079595446587, -0.012637165375053883, 0.046224433928728104, 0.008328638039529324, 0.06594286859035492, 0.01602846570312977, 0.025904139503836632, -0.007026629988104105, 0.010386998765170574, 0.00785430520772934, 0.03215183690190315, -0.018360240384936333, 0.021520016714930534, -0.02916906215250492, -0.020356981083750725, -0.022854121401906013, 0.022203508764505386, -0.017396429553627968, 0.018487034365534782, -0.03805556893348694, 0.018900191411376, -0.057447563856840134, 0.0037013425026088953, -0.04010830074548721, -0.015176666900515556, 0.06289117783308029, 0.012977836653590202, 0.005519401282072067, -0.005266797728836536, -0.023223798722028732, 0.01517615094780922, -0.0036802052054554224, -0.02790459617972374, 0.01772972196340561, 0.011525492183864117, 0.015185010619461536, 0.015519593842327595, 0.047141943126916885, 0.03865659981966019, 0.027107663452625275, -0.018196484073996544, -0.011797899380326271, 0.03137470781803131, 0.03373240306973457, 0.03165033459663391, 0.05001821741461754, -0.019397443160414696, -0.02038782835006714, -0.007963082753121853, -0.03436247631907463, -0.018477952107787132, -0.024149151518940926, -0.013980883173644543, 0.015350425615906715, -0.025412479415535927, -0.08056967705488205, 0.00901701394468546, 0.050833508372306824, 0.012377535924315453, -0.00740649551153183, -0.007491596043109894, -0.007233749609440565, -0.03619636222720146, 0.05050176382064819, 0.0612509623169899, -0.08411094546318054, -0.011461740359663963, -0.0005069769104011357, -0.004005878232419491, 0.004450640175491571, 0.04715447872877121, -0.05576704442501068, -0.022493306547403336, 0.001313359709456563, 0.03639153018593788, -0.018046244978904724, -0.014537186361849308, -0.03190207853913307, 0.023181376978754997, 0.003201160579919815, 0.01286701112985611, -0.00931672751903534, 0.015326082706451416, 0.006323299836367369, -0.01234935037791729, 0.0032137904781848192, -0.027544233947992325, -0.0013956129550933838, 0.003193051088601351, -0.004304403439164162, 0.02832106500864029, -0.0272018201649189, 0.03926454856991768, 0.006351456046104431, 0.008589955046772957, -0.007017225027084351, -0.03945988789200783, -0.00862355250865221, 0.004493435379117727, 0.005899757146835327, 0.007213633041828871, -0.009893177077174187, -0.010176737792789936, -0.004255405627191067, -0.01441370788961649, -0.02283046767115593, -0.01588989607989788, -0.019501931965351105, 0.01905612275004387, 0.01375722698867321, -0.022209757938981056, 0.028920238837599754, -0.006684870459139347, -0.03134502097964287, 0.07111790776252747, -0.046039022505283356, -0.041083093732595444, -0.011657625436782837, -0.059167858213186264, 0.06421859562397003, 0.03686710074543953, 0.033777374774217606, -0.0417676605284214, 0.04824299365282059, 0.040359657257795334, 0.007080890703946352, 0.04600078612565994, -0.024278787896037102, 0.06868824362754822, -0.03395805135369301, -0.022672047838568687, -0.07016418874263763, -0.04244652017951012, 0.021245794370770454, -0.01093481108546257, -0.04344625398516655, 0.0215486790984869, -0.054277125746011734, 0.027901576831936836, -0.03994559869170189, -0.029326217249035835, 0.05413380265235901, -0.01039233710616827, 0.032902102917432785, 0.024821599945425987, -0.04243987053632736, 0.02417534962296486, 0.04450253024697304, -0.012916800566017628, -0.03654154762625694, 0.007735381834208965, 0.07335027307271957, -0.011008097790181637, 0.04970650002360344, 0.0011751310667023063, -0.022461319342255592, 0.09039557725191116, 0.019269034266471863, 0.025303762406110764, 0.034111350774765015, -0.01572447270154953, 0.048531338572502136, 0.008983389474451542, -0.00673374067991972, 0.016762783750891685, 0.06337502598762512, -0.020354032516479492, -0.03877884894609451, 0.015615406446158886, 0.007766310125589371, -0.033629827201366425, -0.05693378672003746, 0.05375383049249649, -0.0004813683917745948, -0.031311940401792526, -0.06881317496299744, 0.008245074190199375, -0.008151469752192497, -0.0044836439192295074, -0.02764303795993328, 0.004714349750429392, -0.04220755398273468, 0.04847151041030884, 0.0033064191229641438, -0.010979718528687954, 0.04387567937374115, 0.00885117519646883, -0.0017978653777390718, 0.0010216800728812814, 0.055932145565748215, 0.09198103100061417, 0.016596445813775063, 0.030267659574747086, 0.06929511576890945, -0.020224682986736298, -0.0427258126437664, 0.010333373211324215, 0.00160182174295187, -0.026614168658852577, -0.05594053119421005, -0.010906166397035122, 0.09139388799667358, 0.03376607596874237, 0.06537111848592758, -0.024388035759329796, -0.009356112219393253, -0.006730744615197182, 0.009730905294418335, 0.02534312754869461, 0.013494014739990234, -0.02025359496474266, 0.036857545375823975, 0.006125973537564278, -0.02605041116476059, 0.035535406321287155, -0.012877415865659714, -0.01910519227385521, 0.00039549791836179793, 0.008583160117268562, 0.0008648989605717361, 0.02503669075667858, 0.058851439505815506, 0.05251166224479675, -0.025803064927458763, -0.0412907600402832, -0.02909260056912899, 0.023030171170830727, 0.0009157393942587078, 0.026906002312898636, -0.017615975812077522, -0.0024965850170701742, -0.009225266054272652, -0.01607152633368969, -0.035615209490060806, -0.015033221803605556, -0.02241542376577854, 0.06535019725561142, -0.025762710720300674, -0.009203435853123665, 0.030694754794239998, -0.016101818531751633, -0.038302455097436905, -0.058203697204589844, -0.03210662305355072, -0.029624762013554573, -0.047955796122550964, 0.006943106651306152, 0.010651547461748123, -0.02387508749961853, -0.05298605561256409, -0.03755108639597893, 0.009201932698488235, -0.0324726328253746, 0.003868347266688943, -0.03790825605392456, -0.049777064472436905, -0.003204838139936328, 0.03469124808907509, 0.010122020728886127, 0.009594987146556377, 0.05365308001637459, -0.0032681170850992203, -0.035378724336624146, -0.026162810623645782, 0.03472765535116196, 0.04066813737154007, 0.012378625571727753, 0.04976130649447441, -0.0791654884815216, 0.023720260709524155, 0.02290334552526474, -0.019720224663615227, -0.08427097648382187, 0.037907447665929794, 0.050807978957891464, -0.03197495639324188, 0.048483189195394516, 0.0007856821175664663, -0.0007177880615927279, -0.017759941518306732, 0.004155253525823355, 0.002311952644959092, 0.011928243562579155, 0.048589129000902176, -0.0369921438395977, 0.05833360180258751, 0.04249633476138115, 0.02145421877503395, -0.030654335394501686, -0.026245595887303352, -0.040809813886880875, 0.03113582730293274, -0.03369544818997383, -0.01836761087179184, -0.05116906389594078, -0.0967833548784256, -0.04787299409508705, 0.030864456668496132, -0.05554169788956642, -0.037759557366371155, 0.004004539921879768, -0.011121631599962711, -0.0016494931187480688, 0.03860560432076454, -0.05201580002903938, -0.014043298549950123, -0.014482789672911167, -0.013446737080812454, -0.02590971440076828, 0.05295377969741821, 0.006578900385648012, 0.023690687492489815, 0.010561184026300907, -0.03899916633963585, -0.03894317150115967, -0.019774792715907097, 0.047490425407886505, 0.04230508580803871, -0.005966939032077789, 0.02105140872299671 ]
[ -0.07664898782968521, -0.023767760023474693, -0.04021616652607918, -0.02928454987704754, 0.03920018672943115, -0.06383786350488663, -0.06079978123307228, -0.020625386387109756, -0.021050719544291496, -0.008520637638866901, -0.00607267813757062, -0.06165358051657677, -0.00047708681086078286, -0.04714685678482056, 0.05458765849471092, 0.01352583710104227, 0.004559655208140612, -0.07772288471460342, -0.040614187717437744, 0.023085789754986763, -0.0071609048172831535, -0.025859253481030464, -0.0453973263502121, -0.05516770854592323, -0.024820366874337196, 0.05639724060893059, 0.031908221542835236, -0.03878621384501457, 0.011880489997565746, -0.20547129213809967, 0.03598843887448311, 0.008369033224880695, 0.020266851410269737, -0.03369002416729927, 0.02019629254937172, 0.05801091343164444, 0.0360395610332489, 0.0615653358399868, -0.003959859721362591, 0.018537446856498718, 0.014247281476855278, -0.0041320547461509705, -0.09944742172956467, -0.037957265973091125, 0.06757412850856781, -0.034833844751119614, -0.031341128051280975, -0.03413153067231178, -0.0025760347489267588, -0.006756321061402559, -0.027050262317061424, -0.0019454139983281493, -0.019765540957450867, -0.022050440311431885, -0.01518914382904768, 0.0670306384563446, 0.04583430290222168, 0.05585625395178795, 0.025783175602555275, -0.02172115445137024, 0.006516564637422562, -0.02725752256810665, -0.1317051500082016, 0.1293422281742096, 0.0006333646597340703, 0.05140473693609238, -0.031392164528369904, -0.04408491402864456, -0.02084413915872574, 0.08773427456617355, -0.024256451055407524, -0.025302626192569733, 0.008409485220909119, 0.051424991339445114, -0.003954114858061075, -0.029131758958101273, 0.024245083332061768, 0.006366248708218336, 0.03381972759962082, -0.02687191031873226, -0.04695265740156174, -0.006094368640333414, -0.01513624843209982, -0.0201918613165617, -0.02077019400894642, -0.00019652202900033444, -0.01763114146888256, 0.044837262481451035, -0.008260203525424004, 0.014357088133692741, 0.022570554167032242, -0.01441211998462677, 0.07614783197641373, 0.046867355704307556, -0.0901443362236023, -0.020625343546271324, 0.039838749915361404, -0.01110790017992258, -0.042449742555618286, 0.4270499050617218, -0.04518913850188255, -0.01041946467012167, -0.0145226139575243, 0.002571580931544304, 0.014612843282520771, 0.019720112904906273, 0.01455505471676588, -0.04544413834810257, 0.005005179904401302, -0.0223875530064106, 0.01937848888337612, -0.012311330996453762, 0.07228060066699982, -0.07379575073719025, 0.00653082225471735, -0.024504758417606354, -0.05960787832736969, -0.00022600527154281735, -0.013992237858474255, 0.01629764959216118, -0.010170398280024529, 0.013888578861951828, 0.009684540331363678, 0.05046027898788452, 0.028062302619218826, 0.02089112624526024, 0.024700870737433434, 0.05238790437579155, 0.03256130963563919, 0.018740655854344368, 0.017356544733047485, -0.0080211590975523, -0.07938408851623535, -0.019652053713798523, -0.00043850138899870217, 0.042745672166347504, 0.0457979217171669, -0.028954746201634407, 0.007726794108748436, 0.019729673862457275, -0.003385275136679411, -0.042354732751846313, 0.03916013985872269, 0.032665908336639404, -0.024358130991458893, 0.10106018930673599, 0.01042484026402235, -0.0003068965161219239, -0.06352967768907547, -0.03975658118724823, -0.005458308383822441, 0.030777301639318466, 0.010995421558618546, -0.019800586625933647, 0.02430129423737526, 0.059536922723054886, 0.060742467641830444, -0.013789273798465729, -0.06158064678311348, -0.0010535339824855328, 0.01675938256084919, -0.0557936392724514, -0.037953756749629974, -0.008196976035833359, 0.0042640091851353645, -0.10931622236967087, -0.05769932642579079, 0.003455662401393056, 0.006622785702347755, -0.03919437527656555, -0.0018036060500890017, 0.00004114290277357213, -0.04372847080230713, 0.0069450135342776775, 0.01970922388136387, -0.057084571570158005, -0.004974050913006067, 0.014653165824711323, 0.04467777535319328, 0.02674921229481697, -0.0057713487185537815, 0.015786122530698776, -0.011097606271505356, -0.0031615919433534145, -0.026712020859122276, -0.1233421340584755, -0.058722030371427536, -0.003126239636912942, -0.023166777566075325, -0.04443344101309776, -0.008329169824719429, 0.0281110517680645, 0.00874343328177929, 0.04821574687957764, 0.004501864314079285, -0.04877924919128418, 0.03650250285863876, 0.011456483975052834, -0.006202516611665487, -0.047598402947187424, 0.0418025366961956, 0.06018399819731712, 0.009621655568480492, 0.014803954400122166, -0.043809354305267334, 0.027180802077054977, 0.017906565219163895, -0.04261390119791031, 0.04973858222365379, -0.0072517115622758865, -0.02981233038008213, 0.011753740720450878, 0.027777720242738724, 0.004456439055502415, -0.03854403272271156, -0.0009648751583881676, -0.0030855194199830294, 0.025830822065472603, 0.04604078456759453, 0.019654182717204094, -0.015584629029035568, -0.053600553423166275, -0.05732540786266327, -0.3780020475387573, 0.006178719457238913, -0.007418717257678509, -0.025250902399420738, -0.006605492904782295, -0.03985276445746422, 0.013836240395903587, -0.014660513959825039, -0.006343809422105551, 0.026362605392932892, 0.07238803058862686, -0.07474128156900406, 0.06688037514686584, -0.08799479901790619, -0.0004555151390377432, 0.04581049829721451, -0.02125263214111328, -0.04730205610394478, -0.025356216356158257, 0.015998871996998787, 0.008514328859746456, -0.012557233683764935, -0.04863794520497322, -0.04937830567359924, 0.01311162207275629, -0.0027492321096360683, 0.12121624499559402, 0.013066817075014114, 0.06522965431213379, -0.040842678397893906, 0.05543513968586922, 0.049490638077259064, -0.01876223087310791, -0.09897269308567047, 0.014706015586853027, -0.02435758151113987, 0.0023016193881630898, 0.02366621419787407, 0.024718433618545532, 0.0030850169714540243, -0.03376198932528496, 0.053638480603694916, -0.04020142927765846, -0.041179072111845016, -0.0018711767625063658, 0.00484996335580945, -0.011745993047952652, -0.02848094329237938, -0.009802015498280525, 0.05938979610800743, -0.005234834272414446, 0.036329492926597595, -0.005075456108897924, 0.015067536383867264, 0.0012522093020379543, -0.016581639647483826, -0.07461728155612946, 0.025328796356916428, 0.02230721525847912, -0.02985675260424614, 0.05379154160618782, 0.020944546908140182, 0.04398038238286972, -0.06068380922079086, -0.00608950387686491, -0.01989118382334709, -0.010099311359226704, -0.002160499105229974, 0.041917577385902405, -0.011147876270115376, -0.008107548579573631, 0.0737450048327446, -0.0034297360107302666, 0.04959782958030701, 0.06430070102214813, 0.04368721693754196, -0.0044166697189211845, 0.03184058517217636, -0.004831376485526562, -0.03134860470890999, 0.03399757295846939, -0.011243238113820553, 0.036644741892814636, -0.019876819103956223, 0.012729085981845856, 0.06295072287321091, 0.024170540273189545, -0.028525926172733307, 0.06576104462146759, -0.0055874790996313095, -0.010161292739212513, -0.020517047494649887, 0.0014674082631245255, -0.02962827868759632, 0.07176893949508667, 0.019775960594415665, -0.23459403216838837, 0.020564459264278412, 0.056267544627189636, 0.06782983988523483, 0.015949228778481483, 0.002505896845832467, 0.03771849349141121, -0.046412866562604904, 0.002841553883627057, -0.01791820488870144, 0.002373186405748129, 0.004035727586597204, -0.003163826186209917, -0.014444191940128803, 0.0032719725277274847, -0.009327586740255356, 0.08934278041124344, -0.02212814800441265, -0.01722177304327488, -0.023697063326835632, 0.004914464894682169, -0.023556124418973923, 0.14654338359832764, 0.028122553601861, -0.035699233412742615, -0.010636118240654469, -0.007096599787473679, 0.020991140976548195, 0.06595198065042496, 0.045712169259786606, 0.0033960442524403334, 0.0044204555451869965, 0.03780753165483475, 0.01075155008584261, 0.07182224094867706, 0.0016482268692925572, -0.04170285910367966, 0.03367151319980621, 0.03388471156358719, 0.0014921287074685097, -0.006186902057379484, 0.06210418790578842, -0.04422314465045929, 0.027298200875520706, 0.013748523779213428, -0.03017393872141838, -0.019884290173649788, 0.013921605423092842, -0.026313725858926773, 0.023107066750526428, 0.01341256033629179, -0.019838308915495872, -0.009892430156469345, -0.017691992223262787, 0.025271672755479813, 0.04911971464753151, 0.05092889070510864, 0.03074374794960022, 0.03996679186820984, 0.020594213157892227, 0.008243297226727009, -0.025769036263227463, 0.08771665394306183, 0.023845691233873367, 0.0007774521363899112 ]
[ -0.015310694463551044, 0.008922483772039413, -0.01582387462258339, 0.021880818530917168, -0.00309573533013463, -0.01448914036154747, 0.021040234714746475, -0.004246311727911234, -0.007316707633435726, -0.025811340659856796, -0.053694434463977814, -0.011418850161135197, 0.0029509426094591618, -0.04289518669247627, 0.01201385073363781, -0.02184465527534485, -0.0011840499937534332, -0.02919071726500988, 0.002203619107604027, 0.007176332641392946, -0.022005559876561165, 0.05510775372385979, 0.03589576855301857, 0.0007102465606294572, -0.0029089145828038454, -0.0034268752206116915, -0.0500822514295578, -0.007018973119556904, 0.03102470561861992, -0.15003110468387604, -0.0047148605808615685, -0.00586870638653636, -0.008835614658892155, -0.0009075202979147434, 0.010161853395402431, -0.0047314101830124855, 0.02547302097082138, 0.022966373711824417, 0.00902163702994585, 0.02550511620938778, 0.031614162027835846, -0.005962737835943699, -0.009350487031042576, -0.0005206321948207915, -0.0040223365649580956, -0.03364834934473038, -0.053989678621292114, 0.005664888769388199, 0.011617748066782951, 0.004826377145946026, -0.057288169860839844, 0.03261515870690346, -0.013886654749512672, 0.014879325404763222, 0.00857827439904213, 0.039031073451042175, 0.03771064057946205, 0.02503073588013649, -0.012211848981678486, 0.007873071357607841, -0.023174680769443512, 0.0012695236364379525, -0.031151454895734787, -0.023237241432070732, 0.011287461966276169, -0.024797683581709862, -0.04263485223054886, -0.010371952317655087, 0.024355130270123482, -0.0021602504421025515, -0.010372104123234749, -0.022582704201340675, -0.03925705701112747, -0.006693619769066572, -0.041187211871147156, 0.002156551694497466, 0.035575609654188156, -0.0033631916157901287, 0.02748953178524971, 0.02105802670121193, -0.03184982016682625, 0.027074985206127167, 0.05613381788134575, 0.019036510959267616, 0.01712908037006855, -0.030289968475699425, -0.017967887222766876, -0.006087047979235649, 0.017809754237532616, -0.01586896739900112, -0.012112509459257126, -0.02446023002266884, 0.018908444792032242, 0.04443559795618057, -0.06891476362943649, -0.003922594245523214, 0.060169849544763565, -0.028937360271811485, -0.011173657141625881, 0.8251465559005737, -0.026722976937890053, -0.0022109784185886383, 0.04108738526701927, 0.013937828131020069, 0.030112378299236298, -0.022972846403717995, 0.018947456032037735, -0.0574524886906147, 0.014368936419487, -0.009745743125677109, 0.043546248227357864, -0.0040053073316812515, 0.024659179151058197, 0.021714847534894943, 0.04391423240303993, -0.026962272822856903, -0.017525535076856613, -0.04408184811472893, -0.012553834356367588, 0.004114271141588688, 0.02086491510272026, -0.0032263738103210926, 0.01844303123652935, 0.017553556710481644, 0.005461946129798889, -0.16535304486751556, -0.020554572343826294, -6.185206624265112e-33, 0.02158249169588089, -0.03596105799078941, 0.0478866845369339, 0.006720039527863264, 0.03187844157218933, -0.01351888757199049, 0.009679509326815605, 0.018215306103229523, -0.020716454833745956, -0.04102550074458122, 0.016055576503276825, -0.004968102555721998, -0.0468493215739727, 0.026259753853082657, 0.021856410428881645, -0.013389558531343937, 0.005077848210930824, 0.03609597310423851, 0.035996679216623306, 0.011385545134544373, 0.05899575352668762, 0.06189832091331482, 0.01663871854543686, 0.01690288446843624, 0.023723054677248, -0.004808396566659212, -0.003189950017258525, -0.03868468478322029, -0.0141420504078269, -0.025300389155745506, -0.05236086994409561, -0.021882912144064903, 0.035656992346048355, -0.06199660897254944, -0.05005278438329697, -0.06278691440820694, -0.060880035161972046, -0.014312743209302425, 0.005842444021254778, 0.024016328155994415, -0.011077298782765865, -0.0021027796901762486, -0.019612103700637817, -0.010209595784544945, -0.023242002353072166, 0.03999291732907295, 0.005521676037460566, 0.04889809340238571, -0.01676797866821289, 0.0402054563164711, 0.015114122070372105, -0.015472184866666794, -0.0035863930825144053, 0.03025730885565281, 0.011918400414288044, 0.0211630929261446, -0.02436893992125988, -0.03163709491491318, 0.02929585799574852, -0.037127330899238586, -0.006261997390538454, -0.022213684394955635, 0.007558668497949839, 0.009500008076429367, 0.02998877502977848, -0.01188031304627657, 0.017374491319060326, 0.03403441607952118, 0.02392946183681488, -0.0009011153597384691, -0.047772329300642014, 0.0006923742475919425, -0.023321010172367096, -0.07671984285116196, 0.03682183474302292, -0.007675264496356249, -0.018613969907164574, 0.02681342326104641, 0.01965388096868992, 0.037561893463134766, 0.011318407021462917, 0.04241009056568146, -0.011630005203187466, -0.0416092574596405, -0.020119410008192062, -0.055764976888895035, 0.036241449415683746, 0.017969626933336258, -0.04083126783370972, -0.022654198110103607, 0.019028132781386375, 0.043327875435352325, 0.013446944765746593, -0.034527696669101715, -0.010054080747067928, 5.9992908050810436e-33, 0.026531405746936798, 0.01513731013983488, -0.020484954118728638, 0.027190029621124268, 0.055909186601638794, -0.03599563613533974, 0.022752512246370316, 0.010540208779275417, 0.013645912520587444, 0.014940200373530388, -0.038482896983623505, 0.027703652158379555, -0.022085966542363167, 0.0006997995660640299, 0.02209683135151863, 0.004672992043197155, -0.013010465539991856, 0.024222899228334427, 0.026902662590146065, 0.01995321922004223, -0.004819444380700588, 0.006379351019859314, 0.016085390001535416, -0.007832014933228493, -0.0026859797071665525, 0.014721434563398361, -0.009454320184886456, -0.03352562338113785, -0.0047722551971673965, 0.0056473566219210625, -0.0023579245898872614, 0.016414618119597435, 0.00027558396686799824, -0.018231533467769623, -0.040447305887937546, 0.02905312553048134, 0.004380403086543083, 0.002283905167132616, -0.030113091692328453, 0.0018534610280767083, 0.043752800673246384, 0.008406870067119598, -0.010007890872657299, -0.020092789083719254, -0.002782888012006879, -0.010823332704603672, 0.009704958647489548, -0.01569264382123947, 0.007510365452617407, 0.023979630321264267, 0.022411609068512917, 0.006937663536518812, 0.011793415062129498, 0.02985544130206108, -0.0054545230232179165, -0.014833777211606503, 0.010303826071321964, 0.046636998653411865, -0.06314937025308609, 0.005679576192051172, -0.022312266752123833, 0.017368078231811523, -0.04069407656788826, -0.007584445644170046, -0.024312755092978477, 0.010093938559293747, -0.04745053872466087, 0.013563264161348343, -0.017519883811473846, -0.04323456808924675, -0.008177916519343853, -0.010597683489322662, 0.03086893819272518, 0.029444178566336632, 0.024097399786114693, 0.017116235569119453, -0.020023632794618607, -0.022111181169748306, 0.019037984311580658, 0.03774347901344299, -0.022843800485134125, -0.018132474273443222, -0.0007175719947554171, 0.006935623940080404, -0.016966141760349274, 0.0013491475256159902, -0.036134738475084305, -0.024022694677114487, 0.00009267202403862029, 0.013617265969514847, -0.027521226555109024, -0.0297861248254776, 0.0045067924074828625, 0.023040417581796646, 0.027026033028960228, -1.2324167464328184e-8, 0.008336566388607025, 0.012105167843401432, -0.015951333567500114, 0.01742332987487316, 0.015002272091805935, -0.015904612839221954, -0.03654307872056961, -0.01675892248749733, 0.00611639441922307, 0.018284298479557037, 0.0403861403465271, 0.011120162904262543, 0.02639768086373806, 0.004219199065119028, 0.0225407462567091, -0.051345713436603546, 0.03880767896771431, -0.04179790988564491, 0.0023459603544324636, -0.04767812415957451, 0.005538464989513159, 0.052819255739450455, -0.006223909091204405, 0.007028950843960047, -0.018065912649035454, 0.0005401985254138708, 0.0014245474012568593, -0.09386962652206421, -0.026064077392220497, 0.03602350875735283, 0.002191188745200634, -0.007457757368683815, -0.05256497487425804, 0.016578853130340576, 0.010185514576733112, -0.07009401172399521, 0.032252416014671326, 0.0030781610403209925, 0.04097551479935646, -0.011332718655467033, -0.023906437680125237, -0.030491409823298454, 0.013945191167294979, -0.026913009583950043, -0.007803299929946661, -0.021457666531205177, -0.008920777589082718, 0.021969418972730637, 0.026660505682229996, -0.009979263879358768, -0.004059433937072754, -0.00030569362570531666, -0.0036604944616556168, -0.0013966605765745044, 0.02569536305963993, 0.014291559346020222, 0.000011861057828355115, 0.019997870549559593, -0.02794758230447769, 0.016162559390068054, 0.022021407261490822, 0.005721316207200289, 0.03329623118042946, -0.017102891579270363 ]
dagster-poetry-importerror-cannot-import-appengine-requests
https://markhneedham.com/blog/2023/10/09/dagster-poetry-importerror-cannot-import-appengine-requests
false
2023-10-01 00:44:37
dbt-duckdb: KeyError: "'winner_seed'"
[ "duckdb", "dbt", "til" ]
[ "TIL" ]
:icons: font I've been building a little demo with dbt and DuckDB to transform CSV files from https://github.com/JeffSackmann/tennis_atp/[Jeff Sackmann's tennis dataset^] and ran into an error that initially puzzled me. In this blog post, we'll learn how to deal with it. But first things first, we're going to install https://github.com/duckdb/dbt-duckdb[`dbt-duckdb`^] as well as the latest version of DuckDB, which at the time of writing is 0.9.0. [source, bash] ---- pip install dbt-duckdb duckdb ---- I then cloned Mehdi Ouazza's https://github.com/mehd-io/dbt-duckdb-tutorial[demo project] and adjusted it to work with my dataset. I want to create a pipeline that takes one CSV file and removes all the columns that start with `w_` or `l_`. The following query returns one row from the 2023 CSV file with the `winner_seed` and `loser_seed` fields explicitly coerced to a `VARCHAR` type: [source, sql] ---- .mode line FROM read_csv_auto('https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_2023.csv', types={'winner_seed': 'VARCHAR', 'loser_seed': 'VARCHAR'} ) LIMIT 1; ---- .Output [source, text] ---- tourney_id = 2023-9900 tourney_name = United Cup surface = Hard draw_size = 18 tourney_level = A tourney_date = 20230102 match_num = 300 winner_id = 126203 winner_seed = 3 winner_entry = winner_name = Taylor Fritz winner_hand = R winner_ht = 193 winner_ioc = USA winner_age = 25.1 loser_id = 126610 loser_seed = 5 loser_entry = loser_name = Matteo Berrettini loser_hand = R loser_ht = 196 loser_ioc = ITA loser_age = 26.7 score = 7-6(4) 7-6(6) best_of = 3 round = F minutes = 135 w_ace = 15 w_df = 2 w_svpt = 85 w_1stIn = 52 w_1stWon = 45 w_2ndWon = 16 w_SvGms = 12 w_bpSaved = 0 w_bpFaced = 0 l_ace = 7 l_df = 2 l_svpt = 97 l_1stIn = 62 l_1stWon = 47 l_2ndWon = 15 l_SvGms = 12 l_bpSaved = 9 l_bpFaced = 9 winner_rank = 9 winner_rank_points = 3355 loser_rank = 16 loser_rank_points = 2375 ---- You can see that there are a lot of fields that begin with `w_` and `l_`, but I'm not particularly interested in them for my use case. So, I created a source that contained the `read_csv_auto` part of the query as the `external_location`: .models/atp/sources.yml [source, yml] ---- version: 2 - name: github_2023 meta: external_location: > read_csv_auto( 'https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_2023.csv', types={'winner_seed': 'VARCHAR', 'loser_seed': 'VARCHAR'} ) tables: - name: matches_file ---- Once I'd done that, I created a model to query that CSV file, removed the fields, and wrote the output to a new CSV file. The model file looks like this: .models/atp/matches_csv.sql [source, sql] ---- {{ config(materialized='external', location='output/matches_2023.csv', format='csv')}} -- <.> SELECT COLUMNS(col -> NOT regexp_matches(col, 'w_.*') AND NOT regexp_matches(col, 'l_.*')) FROM {{ source('github', 'matches_file') }} -- <.> ---- <.> Write the results to `output/matches_2023.sql` <.> Query the CSV file that we defined in the sources file I then ran the following command: [source, bash] ---- dbt run ---- Which resulted in the following error: .Output [source, text] ---- 16:03:38 Running with dbt=1.6.4 16:03:38 Registered adapter: duckdb=1.6.0 16:03:38 Encountered an error: "'winner_seed'" 16:03:38 Traceback (most recent call last): File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/cli/requires.py", line 87, in wrapper result, success = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/cli/requires.py", line 72, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/cli/requires.py", line 143, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/cli/requires.py", line 172, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/cli/requires.py", line 219, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/cli/requires.py", line 246, in wrapper manifest = ManifestLoader.get_full_manifest( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/parser/manifest.py", line 316, in get_full_manifest manifest = loader.load() ^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/parser/manifest.py", line 505, in load patcher.construct_sources() File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/parser/sources.py", line 85, in construct_sources parsed = self.parse_source(patched) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/parser/sources.py", line 189, in parse_source parsed_source.relation_name = self._get_relation_name(parsed_source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/parser/sources.py", line 290, in _get_relation_name return str(relation_cls.create_from(self.root_project, node)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/adapters/base/relation.py", line 259, in create_from return cls.create_from_source(node, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-pipeline-fzeuMXbM-py3.11/lib/python3.11/site-packages/dbt/adapters/duckdb/relation.py", line 34, in create_from_source ext_location = ext_location_template.format_map(source_config.as_dict()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyError: "'winner_seed'" ---- It seems to be treating the `{}` in the `external_location` as if it were a Jinja template variable, which isn't what we want. Luckily https://github.com/duckdb/dbt-duckdb#configuring-dbt-duckdb-plugins[the docs describe a way to work around this^], by specifying `formatter: oldstyle`: .models/atp/sources.yml [source, yml] ---- version: 2 - name: github_2023 meta: external_location: > read_csv_auto( 'https://raw.githubusercontent.com/JeffSackmann/tennis_atp/master/atp_matches_2023.csv', types={'winner_seed': 'VARCHAR', 'loser_seed': 'VARCHAR'} ) formatter: oldstyle tables: - name: matches_file ---- Once we make that change the pipeline runs as expected and writes the results to `output/matches_2023.csv`.
In this post, we'll learn how to work around an error when using the dbt-duckdb library.
uploads/2023/10/dbt-duckdb-banner.png
[ -0.0316799059510231, 0.0004978092620149255, -0.010006747208535671, 0.03693762049078941, 0.10407622903585434, 0.015957742929458618, -0.00248739100061357, 0.057520948350429535, -0.005532677751034498, -0.01706496998667717, 0.007797368802130222, -0.024295387789607048, -0.06544189900159836, 0.017569808289408684, -0.018168751150369644, 0.08287197351455688, 0.064099982380867, 0.02209017425775528, 0.04388722777366638, -0.004551861900836229, 0.0064331116154789925, 0.0383305661380291, -0.019896360114216805, 0.059162773191928864, 0.028913311660289764, 0.019858989864587784, 0.011762337759137154, 0.004810601472854614, -0.05613813176751137, -0.01158941350877285, 0.049731090664863586, -0.017985165119171143, 0.02361578308045864, -0.020147908478975296, 0.01399860717356205, -0.00254391529597342, -0.021251479163765907, 0.023944193497300148, 0.004328940063714981, 0.0008277766173705459, -0.0872967317700386, 0.01934281922876835, -0.017180349677801132, 0.01426576916128397, -0.03424598649144173, 0.011063451878726482, -0.045636411756277084, 0.014003142714500427, -0.01586131751537323, -0.006062696687877178, -0.046765368431806564, 0.05816872417926788, -0.023074038326740265, -0.006963144056499004, 0.0029752524569630623, 0.032064713537693024, 0.02211904712021351, -0.051896680146455765, 0.009017562493681908, -0.04118458181619644, 0.02071337401866913, -0.01772676594555378, 0.02024306356906891, 0.021237872540950775, 0.00802532397210598, -0.02132383920252323, -0.0028797630220651627, 0.05082062631845474, -0.04319575056433678, -0.012081407941877842, 0.0068630436435341835, -0.020929895341396332, -0.028191784396767616, -0.03452691808342934, 0.018510453402996063, -0.04978840798139572, -0.028068112209439278, 0.052206844091415405, 0.03098602592945099, 0.06187989190220833, -0.023771874606609344, 0.0036280613858252764, 0.013455848209559917, 0.024005673825740814, 0.023236723616719246, -0.07658419758081436, -0.04058530926704407, -0.0203775092959404, -0.06868056207895279, 0.04612131416797638, 0.030944913625717163, -0.04141455516219139, 0.016014209017157555, 0.008113279938697815, -0.01642937771975994, 0.008120646700263023, -0.002931851428002119, 0.019759099930524826, 0.002300150692462921, -0.032312363386154175, -0.04159041494131088, -0.021658435463905334, 0.03283993527293205, 0.03501606360077858, -0.0894823670387268, 0.01187335979193449, -0.02492784522473812, -0.003189384937286377, 0.03185838833451271, 0.021045232191681862, -0.012191778980195522, -0.030441252514719963, -0.026669753715395927, -0.007167868781834841, -0.0851743295788765, 0.08039052784442902, 0.03128296509385109, -0.014175666496157646, 0.009925398044288158, 0.026343466714024544, 0.05758293345570564, 0.009433094412088394, -0.014759423211216927, 0.08004331588745117, 0.009793541394174099, 0.017728177830576897, 0.009850725531578064, 0.040036194026470184, 0.004303527995944023, -0.058103375136852264, -0.024378731846809387, 0.05005338788032532, -0.006567560136318207, 0.006570807192474604, 0.014249344356358051, -0.029828663915395737, 0.01441800594329834, -0.007748061791062355, 0.05049683526158333, 0.012731635011732578, 0.029923971742391586, -0.020651811733841896, -0.0040441411547362804, 0.010766033083200455, 0.03477773815393448, 0.023946702480316162, 0.01804489642381668, -0.03977970778942108, -0.020456308498978615, 0.03606192395091057, 0.014425806701183319, 0.01979159750044346, 0.06489026546478271, -0.030055416747927666, 0.0024159003514796495, 0.10725604742765427, 0.045835498720407486, -0.0014907442964613438, -0.0064531476236879826, 0.019134191796183586, 0.03422832489013672, 0.03992106020450592, 0.010037628002464771, 0.0241263285279274, 0.01642726920545101, -0.033533383160829544, 0.011073225177824497, 0.035299595445394516, -0.048284683376550674, 0.014275623485445976, -0.0646095722913742, -0.07007217407226562, 0.08760780841112137, -0.02276002988219261, 0.01852121204137802, 0.020491618663072586, 0.07465628534555435, 0.031187059357762337, 0.023363830521702766, 0.018135428428649902, -0.08774439990520477, 0.05144861713051796, -0.011190938763320446, 0.012504257261753082, 0.024835772812366486, -0.010690376162528992, 0.08987622708082199, 0.03378167748451233, 0.029154926538467407, 0.05952681973576546, -0.08025005459785461, -0.08709218353033066, -0.05921290069818497, -0.0017107643652707338, 0.04169226810336113, -0.049510445445775986, 0.013438189402222633, 0.04469677433371544, 0.02364230342209339, 0.03013118915259838, -0.015572242438793182, 0.01029926910996437, 0.026085730642080307, -0.030351169407367706, -0.054323919117450714, 0.04018862545490265, 0.04344964772462845, -0.018279382959008217, -0.016284795477986336, 0.0181789081543684, -0.026502355933189392, -0.0018232630100101233, 0.018410682678222656, -0.014741407707333565, 0.04313402622938156, 0.0021308378782123327, 0.02419927343726158, -0.02108014188706875, 0.01799355261027813, -0.08567142486572266, 0.02131534367799759, 0.03522966057062149, -0.013056045398116112, 0.004252322483807802, -0.007881499826908112, 0.1330241560935974, 0.05227665230631828, -0.014618714340031147, -0.04725775495171547, 0.03452995792031288, -0.01393480971455574, -0.018887875601649284, 0.022251781076192856, -0.02110009454190731, -0.013302122242748737, -0.003177178092300892, -0.028291482478380203, -0.05313797667622566, 0.0252432432025671, -0.02703763172030449, -0.004170915577560663, 0.04951775446534157, -0.011118615977466106, 0.04303399473428726, 0.017598604783415794, -0.05570933222770691, -0.008194386027753353, -0.021710103377699852, -0.0569942481815815, -0.01879086159169674, 0.02177773416042328, 0.0026838290505111217, 0.010407882742583752, -0.03908831626176834, -0.019600490108132362, -0.023350277915596962, -0.055447276681661606, 0.050682906061410904, 0.03954417631030083, 0.057918548583984375, -0.057430341839790344, 0.026419633999466896, -0.019376298412680626, 0.023801401257514954, -0.02025320753455162, -0.02655768394470215, -0.028882957994937897, -0.0023052473552525043, 0.025644483044743538, -0.0024215851444751024, 0.005526232533156872, 0.020708467811346054, -0.023688770830631256, -0.011998539790511131, 0.0019445676589384675, -0.0037457351572811604, 0.03376399725675583, -0.014940740540623665, -0.011743854731321335, -0.04475124925374985, -0.004971354268491268, 0.04872184246778488, -0.06377007812261581, -0.04869263991713524, 0.03275012597441673, -0.049859046936035156, 0.024967258796095848, -0.051290642470121384, -0.02537583000957966, -0.020335927605628967, 0.010583269409835339, 0.059432804584503174, 0.000968820764683187, -0.012726866640150547, 0.05733867734670639, 0.010561270639300346, 0.012145607732236385, 0.016500510275363922, 0.023548206314444542, 0.03995438665151596, 0.020887842401862144, 0.0302553940564394, 0.06221173331141472, 0.000775077030993998, -0.004596858751028776, -0.037075672298669815, 0.0027278016787022352, -0.016449755057692528, -0.2693016827106476, 0.04119209200143814, -0.0028563239611685276, -0.02092188037931919, 0.04157585650682449, -0.028241820633411407, 0.004187094978988171, -0.023249324411153793, -0.018399199470877647, -0.005283745005726814, -0.023785077035427094, -0.036652807146310806, -0.03186674788594246, 0.02858688309788704, 0.007389261852949858, 0.0096365287899971, 0.01715146377682686, -0.05253724381327629, -0.01746237277984619, 0.04944956302642822, -0.0016035750741139054, -0.04383281245827675, 0.01589174196124077, 0.021895891055464745, 0.045858435332775116, 0.0669766217470169, -0.0738786831498146, 0.024968601763248444, -0.053937654942274094, -0.0479428805410862, 0.009753035381436348, -0.005336038768291473, -0.004108467139303684, 0.01576446369290352, -0.022016426548361778, -0.00518120639026165, 0.04023825377225876, -0.005365589167922735, 0.025918861851096153, 0.02126993238925934, -0.025099938735365868, -0.04127757251262665, 0.00972811970859766, 0.006806125398725271, 0.08810898661613464, -0.005307281855493784, -0.0634298026561737, 0.004119251389056444, -0.036441266536712646, 0.0809316411614418, -0.020351024344563484, -0.04110349714756012, -0.02967856079339981, 0.03911494091153145, 0.02940979041159153, 0.029177233576774597, -0.013713830150663853, 0.001400195062160492, -0.042219363152980804, -0.00835270993411541, 0.005276699084788561, -0.04100485146045685, -0.022663312032818794, -0.040671300143003464, 0.00464159669354558, -0.09152450412511826, -0.04201004281640053, -0.014702928252518177, 0.0831529051065445, 0.06911087781190872, -0.030133768916130066, 0.01799626648426056, -0.020149793475866318, -0.10374464839696884, -0.004058166407048702, -0.019410409033298492, 0.0075310226529836655, -0.00889337994158268, -0.030497703701257706, 0.030293378978967667, -0.024545125663280487, -0.05093502625823021, 0.027206378057599068, 0.019443321973085403, 0.023845594376325607, -0.0307113379240036, 0.007138365879654884, 0.008547949604690075, -0.010089883580803871, -0.0009141004411503673, 0.05476959049701691, -0.04059407487511635, -0.006801454816013575, -0.027254153043031693, -0.03625395894050598, 0.045981019735336304, 0.00013442456838674843, 0.004902908578515053, -0.01029987819492817, 0.024452105164527893, 0.024440079927444458, -0.05882008746266365, -0.01650518923997879, -0.04590827599167824, -0.025692464783787727, -0.018452757969498634, -0.06123596802353859, 0.02829502522945404, 0.008720405399799347, 0.04343627393245697, -0.0026119661051779985, -0.05979687720537186, 0.031148936599493027, -0.07650540769100189, -0.023993372917175293, -0.013028151355683804, 0.018016990274190903, 0.0037513391580432653, 0.01728224568068981, -0.012560497038066387, -0.03048255667090416, 0.037281524389982224, -0.008757163770496845, -0.019831344485282898, -0.05623526871204376, -0.01482587680220604, 0.016944434493780136, -0.0014598764246329665, -0.012434236705303192, -0.013891317881643772, -0.019459504634141922, 0.0020368408877402544, 0.03204531967639923, -0.02313789166510105, 0.04308544099330902, -0.009262654930353165, -0.04437558352947235, -0.024440143257379532, -0.008172505535185337, 0.004198815673589706, 0.013156677596271038, 0.001487897476181388, 0.02305709384381771, 0.0024900115095078945, 0.05161690339446068, 0.004828736186027527, -0.0018448312766849995, -0.009523297660052776, 0.021624865010380745, 0.01910930499434471, -0.0038092113099992275, -0.030780700966715813, 0.024780772626399994, -0.042337607592344284, -0.049723293632268906, -0.02983756549656391, 0.020331859588623047, -0.01911388710141182, 0.00040861370507627726, -0.033292219042778015, -0.018058929592370987, -0.04221877455711365, 0.0028908068779855967, -0.010039348155260086, 0.012619515880942345, 0.05759758874773979, 0.036616213619709015, 0.0016866419464349747, -0.016145704314112663, 0.0029224329628050327, 0.01878315955400467, -0.002805923344567418, -0.045287374407052994, -0.01946457102894783, 0.002548924181610346, -0.0015456643886864185, 0.029284264892339706, 0.02051442116498947, 0.022130519151687622, 0.025842197239398956, -0.005865079816430807, -0.024277865886688232, 0.01656094752252102, 0.035219453275203705, 0.04934718832373619, 0.04436183720827103, -0.011901028454303741, -0.0115903215482831, -0.009538454003632069, -0.02881537191569805, -0.02594960667192936, -0.029365703463554382, -0.00993236806243658, -0.007393664680421352, -0.03895740211009979, -0.06547202914953232, 0.028757451102137566, 0.04389164596796036, 0.0073812417685985565, 0.01108284667134285, -0.013779938220977783, -0.002637711353600025, -0.02629060670733452, 0.03452281653881073, 0.055246442556381226, -0.08159476518630981, 0.003649329300969839, -0.020342078059911728, -0.0033169116359204054, 0.010958408936858177, 0.03557296842336655, -0.05429357662796974, -0.005190687254071236, -0.008635150268673897, 0.03491213172674179, -0.026996226981282234, 0.010266688652336597, -0.02409600093960762, 0.012104741297662258, -0.009355287998914719, 0.0036128093488514423, -0.007550970651209354, 0.0090569406747818, -0.00452912412583828, -0.017733626067638397, 0.02153824083507061, -0.039433687925338745, -0.016174940392374992, 0.03029434196650982, -0.010248284786939621, 0.0314859040081501, -0.046346716582775116, 0.02091510035097599, 0.01469290442764759, -0.00581559119746089, -0.047096144407987595, -0.03414974361658096, 0.003452300326898694, 0.00930988509207964, 0.013859475962817669, -0.010502415709197521, -0.020810257643461227, -0.0203247107565403, 0.005207802634686232, -0.010060000233352184, -0.002147483406588435, -0.011631304398179054, -0.03110976330935955, 0.034074053168296814, 0.04875776544213295, 0.0024750831071287394, 0.037623461335897446, -0.016958685591816902, -0.03994555398821831, 0.05627501755952835, -0.03051941655576229, -0.02730627730488777, -0.008621706627309322, -0.05325755476951599, 0.0532999113202095, 0.01005425676703453, 0.04370017349720001, -0.05712969973683357, 0.0358794666826725, 0.036802683025598526, 0.0011017615906894207, 0.0449080653488636, -0.00287260883487761, 0.03791462630033493, -0.01579166390001774, -0.024800226092338562, -0.09606689214706421, -0.004681241698563099, 0.011671211570501328, -0.028785908594727516, 0.009424985386431217, 0.01649072766304016, -0.04468454420566559, 0.010001784190535545, -0.0555250346660614, -0.017718851566314697, 0.05337299406528473, -0.018628200516104698, 0.016546957194805145, 0.021371012553572655, -0.045326340943574905, 0.02789204940199852, 0.051105938851833344, -0.02834433503448963, -0.02135573700070381, -0.020738190039992332, 0.06367551535367966, -0.0028485816437751055, 0.052092548459768295, -0.024555537849664688, -0.01562918908894062, 0.046615008264780045, 0.013783625327050686, 0.018289506435394287, 0.04583211615681648, -0.02589804120361805, 0.06179281324148178, 0.017997629940509796, -0.017211515456438065, 0.0231521837413311, 0.04436088353395462, -0.04010162875056267, -0.049918677657842636, 0.010199911892414093, 0.02316645346581936, -0.02080554887652397, -0.07192720472812653, 0.06057029217481613, -0.008250054903328419, -0.025906698778271675, -0.04179289937019348, -0.0022995055187493563, -0.02613920532166958, 0.004971758928149939, -0.03769400715827942, 0.0047056907787919044, -0.05817192792892456, 0.04474550113081932, 0.0031334799714386463, -0.0001402351335855201, 0.05980782210826874, -0.0005886521539650857, -0.006506585981696844, -0.0058548045344650745, 0.07768142968416214, 0.09389422088861465, 0.026732781901955605, 0.023750297725200653, 0.05091529339551926, -0.018007591366767883, -0.04663856327533722, 0.003037176327779889, -0.007943172007799149, -0.015428176149725914, -0.059520184993743896, -0.020764730870723724, 0.07101235538721085, 0.009165472351014614, 0.06975238770246506, 0.00516641978174448, -0.009296043775975704, -0.021427232772111893, 0.004470721818506718, 0.03546017035841942, 0.027915602549910545, 0.004587207920849323, 0.02776017226278782, 0.004081559367477894, -0.010690056718885899, 0.035954419523477554, 0.003260103054344654, -0.013408022932708263, 0.00138970953412354, -0.013980908319354057, 0.01703655533492565, 0.007196707185357809, 0.0392080694437027, 0.07089850306510925, -0.018110936507582664, 0.004604975692927837, -0.006256082095205784, 0.04100663214921951, 0.007083152420818806, 0.02085847221314907, -0.018692530691623688, -0.03771757334470749, -0.029805246740579605, -0.026504069566726685, -0.005301910452544689, -0.01096639409661293, -0.03262653201818466, 0.039360903203487396, -0.028332265093922615, -0.01655365154147148, 0.04904508218169212, -0.00966353714466095, -0.07263481616973877, -0.052323464304208755, -0.05111345648765564, -0.043262090533971786, -0.06854073703289032, -0.02565581537783146, 0.001712211174890399, -0.02989347279071808, -0.039888713508844376, -0.04357157275080681, -0.04017901048064232, -0.015649117529392242, 0.009046603925526142, -0.04095299169421196, -0.04033203423023224, 0.0058326879516243935, 0.024554021656513214, 0.012855802662670612, 0.0189327634871006, 0.06659842282533646, -0.016709420830011368, -0.029939798638224602, -0.026637807488441467, -0.01064770296216011, 0.034987710416316986, 0.0011476046638563275, 0.04864707961678505, -0.08287984132766724, 0.04003695398569107, 0.014017260633409023, -0.0237459484487772, -0.07519031316041946, 0.06530012935400009, 0.05829804390668869, -0.010500391013920307, 0.05267006903886795, -0.020868828520178795, -0.004777384456247091, -0.04588725045323372, -0.01640009693801403, -0.010884958319365978, 0.007775989826768637, 0.05670563131570816, -0.029197433963418007, 0.07213661819696426, 0.044376570731401443, 0.007732599973678589, -0.05088091641664505, -0.014863716438412666, -0.014029999263584614, 0.011677075177431107, -0.04413039609789848, -0.005274997558444738, -0.057230547070503235, -0.08030455559492111, -0.005318671464920044, 0.03224414959549904, -0.047067657113075256, -0.03748719021677971, -0.0027442944701761007, 0.0199677012860775, -0.007253340911120176, 0.026752393692731857, -0.04509907215833664, -0.010636044666171074, -0.037603963166475296, -0.008351427502930164, -0.04264087975025177, 0.04507249966263771, 0.004856579937040806, 0.020169710740447044, 0.03538163751363754, -0.036688536405563354, 0.020942773669958115, -0.016987446695566177, -0.004299147520214319, 0.03741219639778137, 0.002448376500979066, 0.014757380820810795 ]
[ -0.0746513158082962, -0.03035837598145008, -0.044803932309150696, -0.031411513686180115, 0.051342107355594635, -0.012890453450381756, -0.03589942678809166, -0.013901458121836185, 0.030408838763833046, 0.008390119299292564, -0.008579643443226814, -0.07777866721153259, 0.00044692042865790427, -0.03681183606386185, 0.01895095780491829, -0.01873236708343029, -0.0056692082434892654, -0.04503646865487099, -0.018732769414782524, 0.07388138771057129, -0.04991964250802994, -0.03067493624985218, -0.046326857060194016, -0.04370724782347679, -0.008876371197402477, -0.0023378650657832623, 0.056193336844444275, -0.050783589482307434, -0.003962521441280842, -0.22823207080364227, 0.006163813639432192, -0.014908975921571255, 0.007261151913553476, -0.007069219835102558, 0.02614196017384529, -0.018571851775050163, 0.022004004567861557, -0.0008224435732699931, -0.024157896637916565, 0.026125965639948845, 0.012502734549343586, 0.006159819662570953, -0.04658551141619682, -0.013597109355032444, 0.062052853405475616, -0.010475482791662216, -0.012685873545706272, -0.012082567438483238, 0.014656263403594494, 0.017469344660639763, -0.0497271902859211, 0.04548973590135574, -0.02684343047440052, -0.012760365381836891, 0.0018191600684076548, 0.04056534171104431, 0.06955281645059586, 0.05434712395071983, -0.013765286654233932, 0.005047347396612167, 0.03810887038707733, 0.03154139593243599, -0.14896300435066223, 0.11393992602825165, -0.008077758364379406, 0.05677299574017525, -0.022979971021413803, 0.0012984952190890908, 0.010871030390262604, 0.08815167099237442, -0.025773003697395325, -0.045310813933610916, -0.002382483799010515, 0.06219867244362831, 0.015802161768078804, -0.025939151644706726, -0.032209720462560654, 0.0073854317888617516, -0.0023153028450906277, 0.0004640461120288819, -0.06433244049549103, -0.01936016045510769, -0.03744114935398102, -0.034004729241132736, -0.044724058359861374, 0.02152128517627716, -0.02091766521334648, 0.02257109433412552, -0.013395184651017189, 0.01556715089827776, 0.03723220154643059, 0.02640758641064167, 0.07225026935338974, 0.04862304404377937, -0.09620765596628189, -0.015388096682727337, 0.01065690629184246, 0.01361014787107706, 0.021364791318774223, 0.4265907108783722, -0.03056562878191471, -0.011871430091559887, -0.010675130411982536, 0.0017221556045114994, 0.017530586570501328, -0.018486615270376205, 0.01531307864934206, -0.03583170473575592, 0.020961733534932137, -0.020130055025219917, -0.0036036616656929255, -0.01968657411634922, 0.07246091216802597, -0.038308996707201004, 0.0012772068148478866, 0.027509896084666252, -0.010888953693211079, 0.029575323686003685, -0.029461678117513657, 0.036146219819784164, -0.025467973202466965, 0.010168229229748249, 0.005461842752993107, 0.023586522787809372, 0.0012916279956698418, -0.004263607319444418, -0.0011889595771208405, 0.0664772167801857, 0.05608399212360382, -0.011118368245661259, 0.06071129068732262, 0.009808228351175785, -0.10535970330238342, 0.0037761814892292023, 0.027249015867710114, 0.0030869150068610907, 0.010415878146886826, -0.021691540256142616, -0.00513120461255312, 0.006218265276402235, 0.015270180068910122, -0.056228090077638626, 0.07958466559648514, -0.012699078768491745, -0.04980291426181793, 0.10353259742259979, -0.015063712373375893, -0.024229498580098152, -0.025279944762587547, -0.048007071018218994, 0.00016979473002720624, 0.005164207890629768, 0.014703758992254734, -0.015619796700775623, -0.009074833244085312, 0.040502216666936874, 0.04947075620293617, -0.026116076856851578, -0.09527204185724258, -0.05187319964170456, -0.03881499171257019, -0.059845831245183945, -0.03329949080944061, 0.026798756793141365, 0.05771782621741295, -0.12478036433458328, -0.03415355086326599, 0.008781339041888714, 0.00976881105452776, -0.06005415320396423, 0.019188111647963524, -0.030600443482398987, -0.06226625293493271, 0.0334821417927742, 0.03931634873151779, -0.02645036391913891, -0.00684439716860652, -0.009475523605942726, 0.06268095225095749, 0.01805729791522026, 0.009912997484207153, -0.0065514398738741875, -0.02783292531967163, 0.003450349671766162, -0.05461033433675766, -0.08108904212713242, -0.06550995260477066, -0.005382502917200327, 0.031808752566576004, -0.018152527511119843, -0.04218079894781113, -0.03807554766535759, -0.07497298717498779, 0.06580903381109238, -0.026084549725055695, -0.03999317064881325, 0.04519543796777725, -0.01049225777387619, 0.048057328909635544, -0.040728501975536346, -0.0021119832526892424, 0.020252611488103867, 0.005306118167936802, 0.004311966709792614, -0.03291982412338257, 0.017603229731321335, 0.03619949147105217, -0.08376648277044296, 0.062044236809015274, 0.015353883616626263, -0.023396676406264305, 0.010060988366603851, -0.04805328696966171, 0.01009346079081297, -0.0052082897163927555, -0.013388102874159813, 0.011238525621592999, 0.005402950569987297, 0.014746353030204773, 0.01878306455910206, -0.005163153633475304, 0.00020355630840640515, -0.027388030663132668, -0.34729164838790894, -0.03341371938586235, -0.05029967427253723, -0.012547984719276428, 0.030242057517170906, -0.0029547447338700294, -0.010529124177992344, -0.008837513625621796, 0.022305497899651527, 0.04242958128452301, 0.05788161978125572, -0.028343359008431435, -0.016067998483777046, -0.07902274280786514, -0.013480528257787228, 0.00852441880851984, -0.024102725088596344, 0.005546007305383682, -0.031872253865003586, -0.00282812281511724, 0.04894106090068817, -0.0010858987225219607, -0.0328720323741436, -0.054376211017370224, 0.01815185509622097, -0.033512912690639496, 0.10736612230539322, 0.04789816215634346, 0.05639426410198212, -0.05266101658344269, 0.06569080054759979, 0.037589576095342636, -0.009379328228533268, -0.08342799544334412, 0.04250548034906387, -0.035892896354198456, -0.013487095013260841, 0.007796319201588631, 0.02682460844516754, -0.03257817402482033, -0.03796565160155296, -0.005458718165755272, -0.009431909769773483, -0.07103778421878815, 0.007722260896116495, -0.0012993903364986181, 0.01032075472176075, -0.007981196977198124, -0.037398312240839005, 0.09020522981882095, 0.024200262501835823, 0.017515236511826515, 0.04297278821468353, 0.026571674272418022, 0.05053368955850601, -0.007919996045529842, -0.08849991858005524, 0.002375202951952815, 0.021329421550035477, -0.023172318935394287, 0.0450262688100338, 0.009368008002638817, 0.042031027376651764, -0.04096148908138275, -0.0426962785422802, 0.012254028581082821, 0.013997391797602177, -0.0052672699093818665, 0.050511278212070465, -0.03133738413453102, -0.04289819300174713, 0.04505997151136398, 0.015767455101013184, 0.04439941793680191, 0.0567014254629612, 0.06739608943462372, 0.02510930225253105, 0.012181119062006474, 0.018968386575579643, 0.0073694586753845215, 0.032432325184345245, -0.04182274639606476, 0.06566555052995682, -0.01851571537554264, 0.032331548631191254, 0.07647398859262466, 0.040269885212183, -0.0129965515807271, 0.07210433483123779, 0.01669841818511486, 0.014111504890024662, 0.00174714217428118, -0.031088098883628845, -0.025267669931054115, 0.04090491682291031, 0.015526113100349903, -0.254067599773407, 0.04246615245938301, 0.07209821045398712, 0.06271155178546906, 0.033048804849386215, -0.004090416245162487, 0.047472674399614334, -0.03268285095691681, -0.006800366565585136, -0.011353397741913795, 0.0008005607523955405, -0.0022596248891204596, 0.00104817736428231, -0.0010659476974979043, -0.011980043724179268, -0.03035389445722103, 0.037140142172575, 0.004521624650806189, 0.037130553275346756, 0.034330468624830246, 0.02790057100355625, -0.0023236176930367947, 0.1543273627758026, 0.02540811151266098, 0.019901569932699203, 0.020265843719244003, -0.0031757671386003494, -0.019955942407250404, 0.07048232108354568, 0.0274035707116127, -0.01879962719976902, 0.002653174102306366, 0.04968566074967384, 0.012840978801250458, 0.02650541067123413, -0.001747280708514154, -0.02430480159819126, 0.05157427862286568, -0.006781973876059055, -0.04736710339784622, -0.002882491797208786, 0.023096736520528793, -0.030235955491662025, 0.031714603304862976, 0.03748933970928192, 0.01803598366677761, 0.001479991595260799, -0.022012293338775635, -0.035257548093795776, 0.0003492832474876195, -0.015965551137924194, -0.04612015560269356, -0.009058969095349312, -0.04920351132750511, -0.010816593654453754, 0.03782406821846962, 0.05403308570384979, -0.017260035499930382, 0.053682390600442886, 0.02427067421376705, 0.02257501892745495, -0.042632244527339935, 0.051039498299360275, 0.053751688450574875, -0.013495240360498428 ]
[ -0.00881937425583601, 0.017743470147252083, -0.026390016078948975, 0.002584474626928568, 0.0018849271582439542, 0.012318585999310017, 0.02486954815685749, 0.02069631777703762, -0.01058159675449133, -0.02221089042723179, -0.0543140284717083, -0.00514760660007596, 0.027733679860830307, -0.010269785299897194, -0.001952693215571344, -0.02983618527650833, -0.009714620187878609, -0.02815053053200245, 0.02016056515276432, 0.015283074229955673, -0.03069705329835415, 0.03581446036696434, 0.033353857696056366, 0.020909961313009262, -0.028938638046383858, 0.00026225237525068223, -0.05387260392308235, 0.00986267440021038, 0.005495298188179731, -0.11918379366397858, -0.058050353080034256, -0.03734653815627098, -0.002993157133460045, 0.013968738727271557, -0.005799747537821531, -0.02333339862525463, -0.011735637672245502, 0.02036924846470356, -0.0013171653263270855, 0.00560802174732089, 0.022443227469921112, -0.05103103071451187, -0.024878371506929398, 0.03433450311422348, 0.011369556188583374, -0.01690482534468174, -0.05786863714456558, 0.0130671551451087, 0.013908792287111282, 0.01702798716723919, -0.042367856949567795, -0.010633226484060287, 0.014249410480260849, 0.015689628198742867, 0.04255930706858635, 0.03182554990053177, 0.012613772414624691, 0.044836413115262985, 0.004246873315423727, -0.022947054356336594, 0.0055913967080414295, 0.0031154141761362553, -0.03739872947335243, -0.02316047064960003, -0.01891820877790451, -0.04227066785097122, -0.045490801334381104, 0.0005062906420789659, 0.006272777449339628, -0.0015391428023576736, -0.024526864290237427, 0.008525311946868896, -0.045469898730516434, -0.017064284533262253, -0.0057114893570542336, 0.029795313253998756, 0.014160181395709515, -0.04100503399968147, 0.030557431280612946, 0.03764452412724495, -0.05804675072431564, -0.0009593871654942632, 0.01100026722997427, -0.020217102020978928, 0.010446211323142052, -0.039678480476140976, 0.01779329776763916, -0.013746519573032856, 0.017125433310866356, -0.009558368474245071, -0.018738096579909325, -0.0006143248756416142, 0.007691304199397564, 0.04752089083194733, -0.08942697197198868, 0.018140878528356552, 0.01195449661463499, -0.00782635249197483, -0.004252322018146515, 0.8440390229225159, -0.016325144097208977, 0.013444725424051285, 0.031567998230457306, 0.003074516775086522, 0.019200488924980164, -0.011056262068450451, 0.01696690358221531, -0.02307800017297268, 0.0023990345653146505, -0.057274799793958664, 0.004916677717119455, 0.002491974039003253, 0.029791830107569695, -0.01334101427346468, 0.007524170912802219, 0.06674874573945999, -0.03196701779961586, 0.003014751709997654, -0.03505059331655502, -0.003216102486476302, 0.01406545378267765, -0.01810307614505291, 0.0066944146528840065, 0.0008393423049710691, 0.024169042706489563, -0.15156477689743042, 0.00007580762030556798, -6.5731763307021e-33, 0.05106964334845543, -0.06542619317770004, 0.029497724026441574, 0.0011384952813386917, 0.025761861354112625, 0.023319924250245094, -0.012111124582588673, 0.005074790213257074, -0.017945313826203346, -0.01240383367985487, 0.017362382262945175, -0.017035841941833496, -0.008683068677783012, -0.022330839186906815, 0.058765821158885956, -0.0005647868383675814, 0.0048094564117491245, 0.023696325719356537, -0.0038048215210437775, 0.011597906239330769, 0.050931744277477264, 0.06641347706317902, 0.015489022247493267, -0.017033152282238007, 0.018110360950231552, 0.022317104041576385, -0.014282812364399433, -0.046746741980314255, -0.02753460220992565, -0.022257231175899506, -0.06734081357717514, -0.026182731613516808, -0.022282753139734268, -0.056527845561504364, -0.006041910964995623, -0.047225575894117355, -0.01513162162154913, -0.013968565501272678, -0.01215228158980608, -0.012616615742444992, -0.03491232916712761, -0.015200719237327576, -0.01873868517577648, -0.025237414985895157, -0.005546717904508114, 0.013410704210400581, 0.035542525351047516, 0.0391620472073555, -0.019249936565756798, 0.011984122917056084, 0.029530417174100876, -0.004917108919471502, 0.013342862017452717, 0.004470014479011297, 0.031080562621355057, 0.03116559609770775, 0.006437189877033234, 0.002330096671357751, 0.0006321874097920954, -0.008716386742889881, 0.019767779856920242, -0.015411540865898132, -0.0028571216389536858, 0.01967635750770569, 0.02699073776602745, -0.00491998391225934, 0.029856745153665543, 0.004258929286152124, 0.026476750150322914, -0.014585016295313835, -0.028208628296852112, 0.0040897889994084835, -0.01225683931261301, -0.061971329152584076, 0.039542458951473236, -0.00542469834908843, 0.022054685279726982, 0.010652417317032814, 0.021679064258933067, 0.017360638827085495, 0.03434865176677704, 0.03424246981739998, -0.028456879779696465, -0.04566533491015434, -0.03954601660370827, -0.013211499899625778, 0.025248020887374878, 0.00946460198611021, -0.004822517745196819, -0.013258007355034351, 0.03363725170493126, 0.05515231564640999, 0.022808419540524483, -0.032536622136831284, -0.041998326778411865, 6.687415279818826e-33, 0.013389158062636852, -0.009824550710618496, -0.006972574628889561, -0.021768132224678993, 0.051922090351581573, -0.03214254975318909, 0.0335598960518837, -0.0003488637739792466, -0.003791430965065956, -0.001422754256054759, -0.04619381204247475, -0.0069587454199790955, -0.008728953078389168, 0.01752055250108242, 0.013556788675487041, 0.016518982127308846, -0.014673802070319653, -0.0007442120695486665, -0.010550498962402344, 0.0027158858720213175, 0.023937448859214783, 0.023052973672747612, 0.019839219748973846, 0.017180191352963448, -0.006416873075067997, 0.019543690606951714, -0.0009639108902774751, -0.004459423013031483, 0.0018576051807031035, 0.027700338512659073, -0.024132709950208664, 0.013660667464137077, -0.008331215009093285, 0.016277166083455086, -0.06037772074341774, 0.019801411777734756, 0.015624253079295158, 0.02323463372886181, 0.013730128295719624, 0.004934493452310562, 0.029382212087512016, 0.008542200550436974, -0.02638937160372734, -0.002422229154035449, 0.02577304281294346, 0.006574947852641344, 0.005215356592088938, -0.004385810345411301, -0.021898452192544937, 0.0045597064308822155, 0.004857941530644894, 0.013811451382935047, -0.00483854953199625, 0.02226051315665245, 0.02316715195775032, -0.0033388310112059116, -0.018636155873537064, 0.01937306486070156, -0.012217662297189236, -0.01904117316007614, -0.015911415219306946, 0.024602022022008896, -0.04392247274518013, 0.02251783385872841, -0.015141953714191914, 0.011501201428472996, -0.05335362255573273, -0.01540714967995882, 0.01337922178208828, -0.06174994632601738, -0.015620405785739422, -0.0003196764155291021, 0.027318699285387993, 0.05786774307489395, 0.03369540721178055, 0.023646213114261627, -0.035920146852731705, -0.0024208761751651764, 0.016769621521234512, 0.05260235816240311, 0.014399848878383636, -0.015035100281238556, 0.01387113332748413, -0.009101749397814274, -0.00005473639248521067, 0.01798727922141552, -0.03444761037826538, -0.045470088720321655, 0.012041201815009117, 0.005948666948825121, -0.011953354813158512, -0.02100161649286747, 0.009100111201405525, 0.0416683703660965, 0.019715946167707443, -1.2503672763841678e-8, -0.00400025537237525, 0.0205646101385355, -0.005561299622058868, 0.0029693192336708307, 0.03022131137549877, 0.012118600308895111, -0.029215574264526367, -0.007532257121056318, -0.002945991000160575, 0.016062991693615913, 0.03481364622712135, 0.004620867781341076, 0.028543632477521896, 0.03155422583222389, 0.03375638276338577, -0.018053725361824036, 0.02821095660328865, -0.014102666638791561, -0.0009229924180544913, -0.024141820147633553, -0.010383202694356441, 0.06326206028461456, -0.008342086337506771, -0.0097868787124753, -0.010704240761697292, -0.007344319485127926, -0.012422614730894566, -0.0782894492149353, -0.012748620472848415, 0.0014501371188089252, 0.013957892544567585, -0.012227713130414486, -0.03311352804303169, -0.008002666756510735, -0.0031883378978818655, -0.02177615649998188, 0.0073365820571780205, 0.016073938459157944, 0.0244669858366251, 0.028360387310385704, -0.02652277797460556, -0.012860946357250214, -0.008731669746339321, -0.027503160759806633, -0.02452034503221512, -0.01142528373748064, -0.008646816946566105, 0.03596707433462143, -0.0002599815488792956, -0.056026604026556015, 0.03634762391448021, -0.025482144206762314, 0.009504461660981178, -0.0070555503480136395, 0.029678868129849434, 0.03195196017622948, -0.0007853598217479885, 0.012641029432415962, -0.012194009497761726, -0.0030624130740761757, -0.0038585092406719923, 0.0005245860083959997, 0.0322132483124733, -0.02436290681362152 ]
dbt-duckdb-key-error
https://markhneedham.com/blog/2023/10/01/dbt-duckdb-key-error
false
2023-10-13 00:44:37
Apache Superset: Refusing to start due to insecure SECRET_KEY
[ "apache-superset", "til" ]
[ "TIL" ]
:icons: font I've been trying to install https://pypi.org/project/apache-superset/[Apache Superset^] so that I can use it for a demo and ran into an issue with a secret key when trying to install it. In this blog post, I'll explain how to work around it. We're going to be using Poetry and will follow the https://superset.apache.org/docs/installation/installing-superset-from-scratch[installing from scratch^] guide. First up is installing the library: [source, bash] ---- poetry add apache-superset ---- And then after initialising the database with `poetry run superset db upgrade`, we'll try to create the admin user: [source, bash] ---- export FLASK_APP=superset poetry run superset fab create-admin ---- Running this command resulted in the following output: .Output [source, text] ---- -------------------------------------------------------------------------------- WARNING -------------------------------------------------------------------------------- A Default SECRET_KEY was detected, please use superset_config.py to override it. Use a strong complex alphanumeric string and use a tool to help you generate a sufficiently random sequence, ex: openssl rand -base64 42 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Refusing to start due to insecure SECRET_KEY ---- I learnt that it wants me to specify the `SUPERSET_SECRET_KEY`, a problem that's been https://github.com/apache/superset/discussions/23598[encountered by several others^]. So let's set that environment variable and try again: [source, bash] ---- export SUPERSET_SECRET_KEY="oh-so-secret" # <.> poetry run superset fab create-admin ---- <.> I should probably use a more secret, but this is just for fun so I'll be lazy for now. And this time it's happy: .Output [source, text] ---- logging was configured successfully 2023-10-13 13:54:52,555:INFO:superset.utils.logging_configurator:logging was configured successfully 2023-10-13 13:54:52,557:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'> /Users/markhneedham/Library/Caches/pypoetry/virtualenvs/data-app-er_2mvJz-py3.11/lib/python3.11/site-packages/flask_limiter/extension.py:336: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend. warnings.warn( Username [admin]: User first name [admin]: User last name [user]: Email [admin@fab.org]: Password: Repeat for confirmation: Recognized Database Authentications. Admin User admin created. ----
In this post, we'll learn how to configure a secret for using Apache Superset.
uploads/2023/10/superset-banner.png
[ 0.012075823731720448, 0.00903964415192604, -0.014341386035084724, 0.03533528745174408, 0.1028466671705246, 0.038840845227241516, 0.012557333335280418, 0.012163940817117691, -0.011743790470063686, -0.028146794065833092, -0.031974341720342636, -0.011469274759292603, -0.07244207710027695, 0.014023903757333755, -0.03443614020943642, 0.06659270077943802, 0.07388551533222198, 0.01647202856838703, 0.02437814138829708, 0.026850847527384758, 0.0452001616358757, 0.06936908513307571, -0.015232893638312817, 0.037907395511865616, -0.00769056985154748, 0.027136677876114845, 0.006145000923424959, -0.018835976719856262, -0.06598903983831406, -0.04421953856945038, 0.026027098298072815, -0.04429089277982712, 0.0035218442790210247, -0.044869374483823776, 0.005441428627818823, 0.006679697427898645, -0.021193427965044975, -0.006656141020357609, 0.021770115941762924, 0.020149316638708115, -0.05667371675372124, 0.006078716367483139, 0.015896480530500412, 0.0192619189620018, -0.040468402206897736, 0.019280018284916878, -0.06546695530414581, 0.033326406031847, 0.00988210178911686, -0.006086181383579969, -0.048804957419633865, 0.05372942239046097, -0.009907478466629982, -0.026412857696413994, 0.019904032349586487, 0.02596324123442173, 0.008803954347968102, -0.0820438414812088, 0.03933076933026314, -0.038972798734903336, 0.0017879623919725418, 0.014119724743068218, 0.01854035258293152, 0.027205441147089005, -0.008397361263632774, -0.027305375784635544, 0.00577554851770401, 0.043408095836639404, -0.05285658687353134, -0.032506853342056274, 0.023483460769057274, 0.021939247846603394, -0.01344871986657381, -0.029994644224643707, 0.03436199948191643, -0.03259271755814552, -0.026012983173131943, 0.05391298234462738, 0.025661712512373924, 0.047829363495111465, -0.02039225399494171, -0.004104349762201309, 0.041220493614673615, 0.041981812566518784, -0.0039632669650018215, -0.04220930486917496, -0.019099794328212738, -0.013288265094161034, -0.04099012911319733, 0.03610236942768097, 0.013279848732054234, -0.07082956284284592, 0.030275139957666397, 0.017962098121643066, 0.007198266219347715, -0.006490708328783512, -0.0075463117100298405, -0.00841907411813736, 0.01813533715903759, 0.01716524362564087, -0.021932533010840416, -0.020383525639772415, 0.006455739960074425, 0.0223736260086298, -0.08551064133644104, 0.011964995414018631, -0.04553893581032753, -0.01214746106415987, 0.0027782924007624388, -0.016279088333249092, 0.005950439255684614, -0.01842867210507393, -0.016269585117697716, -0.0067041292786598206, -0.04691597446799278, 0.0801379382610321, -0.009836649522185326, -0.03398200497031212, 0.006836459506303072, 0.034481219947338104, 0.03746916726231575, 0.02743266336619854, -0.04685989394783974, 0.06750467419624329, -0.0052445740438997746, 0.04223077371716499, 0.006764595862478018, 0.045360565185546875, 0.007575062569230795, -0.04359227046370506, -0.02256297692656517, 0.06501099467277527, 0.009659543633460999, 0.0028496435843408108, 0.008099439553916454, 0.008256571367383003, -0.013806330971419811, 0.006826542317867279, 0.07474643737077713, 0.03591638803482056, 0.0038971654139459133, 0.0019300348358228803, -0.030572986230254173, 0.009610595181584358, 0.055696189403533936, 0.03722262382507324, 0.018987728282809258, -0.034321997314691544, -0.06032733991742134, 0.02036716230213642, 0.024976199492812157, 0.022001096978783607, 0.03767066448926926, 0.0005777457263320684, 0.007655633147805929, 0.08163187652826309, 0.06377183645963669, 0.030158396810293198, -0.02620219625532627, -0.0057501713745296, 0.00022467791859526187, 0.030361145734786987, 0.014082811772823334, 0.06772460788488388, 0.01592659018933773, -0.03040306828916073, -0.01400565356016159, 0.06531742215156555, -0.028395812958478928, 0.012493831105530262, -0.062398798763751984, -0.07666117697954178, 0.057536669075489044, -0.0490366593003273, 0.01365580316632986, 0.014524361118674278, 0.10123814642429352, 0.031058765947818756, 0.0555935837328434, 0.028672369197010994, -0.08851182460784912, 0.03263414651155472, -0.001600784482434392, 0.021658016368746758, 0.03154135122895241, -0.014911728911101818, 0.08262559026479721, 0.03292451426386833, 0.03257322311401367, 0.01724943332374096, -0.08189181983470917, -0.08620890229940414, -0.02726733684539795, 0.010868046432733536, 0.04739905893802643, -0.020439157262444496, 0.00487988768145442, 0.030013417825102806, 0.03271915391087532, 0.045255135744810104, 0.04197512939572334, -0.002664770931005478, 0.01528271846473217, -0.07512681931257248, -0.04263462498784065, 0.026663580909371376, 0.04133637249469757, -0.03449033200740814, -0.030118031427264214, -0.018627671524882317, -0.00432999525219202, -0.023163584992289543, 0.027529658749699593, -0.02536686137318611, 0.06360454112291336, -0.011351672932505608, 0.01940995082259178, -0.04240778088569641, 0.03473246470093727, -0.04833519458770752, 0.04127698019146919, -0.0105991056188941, 0.015777191147208214, -0.0022578276693820953, -0.008655775338411331, 0.11694828420877457, 0.05324692651629448, -0.03001486323773861, -0.047453369945287704, 0.014068074524402618, -0.0016221352852880955, -0.05874326452612877, 0.0107516935095191, -0.00605141231790185, -0.014369177632033825, 0.0153676588088274, -0.04182393476366997, -0.03959208354353905, 0.027657071128487587, -0.045498576015233994, -0.014761880040168762, 0.07371014356613159, -0.04338135942816734, 0.051001325249671936, 0.027058517560362816, -0.028045853599905968, -0.029077474027872086, -0.03104127198457718, -0.06797409802675247, 0.013290492817759514, 0.008833445608615875, -0.022398579865694046, 0.012983596883714199, -0.0277513787150383, -0.03587128594517708, -0.016727566719055176, -0.03806207329034805, 0.025338200852274895, 0.02152019366621971, 0.06177765876054764, -0.07735975831747055, 0.03291799873113632, 0.002754968823865056, 0.009690452367067337, -0.01866912841796875, -0.041378237307071686, -0.00989770982414484, 0.005676542408764362, 0.025505444034934044, 0.012119495309889317, 0.018028881400823593, 0.027946678921580315, 0.009825611487030983, -0.008698160760104656, 0.020154979079961777, 0.039343684911727905, 0.05702003464102745, -0.01394681166857481, -0.0007276430260390043, -0.036630671471357346, 0.008120138198137283, 0.05331915244460106, -0.04616950452327728, -0.040105756372213364, -0.016435090452432632, -0.05374695733189583, 0.04389750212430954, -0.09350394457578659, -0.04132744297385216, -0.032122377306222916, 0.016780922189354897, 0.03418998420238495, -0.0102104302495718, 0.00996459648013115, 0.04448315128684044, -0.0002736049355007708, -0.01411378849297762, 0.024878397583961487, -0.0041012088768184185, 0.036643318831920624, -0.0025973953306674957, 0.03824818879365921, 0.010927884839475155, 0.0020157070830464363, 0.006406971253454685, -0.03608264401555061, 0.002853458048775792, -0.033860981464385986, -0.25409597158432007, 0.051094312220811844, -0.003509220900014043, -0.03821186348795891, 0.005836849100887775, -0.025834688916802406, -0.008480976335704327, -0.039848558604717255, -0.022439470514655113, 0.015503570437431335, -0.03424270078539848, -0.04625800997018814, -0.009481417946517467, 0.023374557495117188, -0.02857789397239685, 0.003135842736810446, -0.002337138867005706, -0.03330313786864281, -0.01071726530790329, 0.019692497327923775, -0.018554994836449623, -0.0562535859644413, 0.020746536552906036, 0.03845442458987236, 0.03470395505428314, 0.06514378637075424, -0.05214901641011238, 0.03293149545788765, -0.05109990015625954, -0.0291161946952343, 0.008204971440136433, -0.021375734359025955, -0.004290693439543247, 0.021620163694024086, -0.03745592385530472, -0.0027010065969079733, 0.04755813628435135, -0.012434306554496288, 0.011229095980525017, 0.014410470612347126, 0.0012268879218026996, -0.0879741683602333, -0.0004418775497470051, -0.012925890274345875, 0.07677332311868668, -0.02153368480503559, -0.08927683532238007, -0.01006308849900961, -0.044078174978494644, 0.08370113372802734, -0.0432441420853138, -0.030989162623882294, -0.019232716411352158, 0.04703217372298241, 0.005083069670945406, 0.034304793924093246, -0.002984951715916395, -0.0070068854838609695, -0.049916986376047134, -0.033561185002326965, -0.003362323623150587, -0.03753586858510971, -0.02581268548965454, -0.043394412845373154, 0.021053364500403404, -0.05940009281039238, -0.018228087574243546, -0.023056939244270325, 0.058977022767066956, 0.043178677558898926, -0.04080758988857269, -0.007336433045566082, -0.009549100883305073, -0.09532701224088669, 0.007075417321175337, -0.04106367751955986, -0.029925573617219925, -0.015708696097135544, -0.019311489537358284, 0.0352521687746048, -0.04962930828332901, -0.031280264258384705, 0.013007287867367268, 0.01821402832865715, 0.0037756485398858786, -0.02105720527470112, 0.029460929334163666, -0.020324837416410446, -0.01017580647021532, 0.015459087677299976, 0.04830664396286011, -0.025956787168979645, -0.04656045138835907, -0.013187436386942863, -0.028960401192307472, 0.026049243286252022, 0.03342313691973686, 0.04189332574605942, 0.01295007299631834, 0.03443073481321335, 0.030729850754141808, -0.057087454944849014, -0.0028819164726883173, -0.01586015336215496, -0.004863102920353413, 0.005532628390938044, -0.05820908024907112, -0.0003389673074707389, 0.0495995469391346, -0.009908482432365417, -0.016181575134396553, -0.05899772793054581, 0.033899471163749695, -0.05400891974568367, -0.027594704180955887, -0.04216642305254936, 0.03375927731394768, 0.007604106795042753, 0.034072503447532654, 0.013286998495459557, -0.06157603859901428, 0.0542212575674057, 0.019935866817831993, -0.024919072166085243, -0.05443139001727104, -0.029548637568950653, 0.00042526531615294516, -0.01958020031452179, 0.00022766493202652782, -0.013573179952800274, -0.0050185429863631725, 0.009342978708446026, 0.016911590471863747, -0.05135772004723549, 0.024037795141339302, -0.016803158447146416, -0.03460761159658432, -0.033213380724191666, -0.005737174768000841, 0.00018101063324138522, -0.003992806654423475, -0.00485899718478322, 0.01683749072253704, 0.012316866777837276, 0.06012801453471184, -0.007857930846512318, 0.042193494737148285, -0.03274303302168846, 0.006955193355679512, 0.0069158636033535, 0.018714886158704758, -0.015272101387381554, 0.019711539149284363, -0.046884674578905106, -0.022425396367907524, -0.003319848095998168, 0.008074743673205376, -0.025074882432818413, 0.001714240643195808, -0.021524230018258095, -0.003907331731170416, -0.088572196662426, -0.004316041711717844, 0.010637392289936543, 0.017103321850299835, 0.039428140968084335, -0.008508780039846897, 0.019333353266119957, -0.008922859095036983, 0.022830558940768242, 0.05646483600139618, 0.03752143308520317, -0.03076012060046196, 0.012453683651983738, -0.009278415702283382, -0.016408728435635567, 0.014843226410448551, 0.03987285494804382, 0.0081573985517025, 0.0035718195140361786, 0.0027815792709589005, -0.0046977754682302475, 0.031003154814243317, 0.0031430756207555532, 0.03984459489583969, -0.00033161265309900045, -0.06216328963637352, -0.015535395592451096, -0.030319368466734886, -0.03501114249229431, -0.009092092514038086, -0.0035305859055370092, -0.03246067091822624, -0.0018189267721027136, -0.01902186870574951, -0.10364948213100433, -0.023271476849913597, 0.051773130893707275, 0.017799317836761475, -0.0019377092830836773, -0.020301511511206627, -0.011122798547148705, -0.03948671743273735, 0.03992188349366188, 0.06034684181213379, -0.0679139643907547, 0.007633384317159653, -0.010687565430998802, 0.013660836964845657, 0.004432836081832647, 0.027276044711470604, -0.05313757434487343, -0.025327982380986214, 0.013569848611950874, 0.02524571679532528, -0.033888671547174454, -0.0354427732527256, -0.013128023594617844, 0.019664965569972992, -0.011821020394563675, 0.03232081979513168, -0.009672536514699459, -0.002254999941214919, -0.004626587498933077, -0.00740849319845438, 0.009843569248914719, -0.007905480451881886, -0.03151227906346321, 0.028809191659092903, -0.0030938000418245792, 0.056883007287979126, -0.019112233072519302, 0.032508671283721924, 0.006147557403892279, -0.0067047132179141045, -0.007085904944688082, -0.02833763137459755, -0.029038824141025543, 0.011286433786153793, 0.05190358683466911, -0.0014205625047907233, 0.0077017187140882015, -0.01742919720709324, -0.027156347408890724, -0.015717092901468277, 0.013774991966784, -0.020589005202054977, -0.004387366585433483, 0.020547157153487206, 0.05490228906273842, -0.006630846299231052, 0.013365058228373528, 0.006679802667349577, -0.05702144652605057, 0.06197760999202728, -0.03606829792261124, -0.04182839021086693, -0.012293786741793156, -0.058655086904764175, 0.054273821413517, 0.024186503142118454, 0.00980380829423666, -0.03295447304844856, 0.04237636178731918, 0.038778502494096756, 0.004261174239218235, 0.025053249672055244, -0.012590606696903706, 0.028463801369071007, -0.03562873229384422, -0.017717333510518074, -0.08003371208906174, -0.006807370577007532, 0.009624200873076916, -0.02252074144780636, -0.033238526433706284, 0.002387091051787138, -0.05564169958233833, 0.0338122621178627, -0.05356176197528839, -0.003984042908996344, 0.05496736615896225, -0.002039241371676326, 0.0032372570130974054, 0.022389952093362808, -0.0694369301199913, 0.03331449255347252, 0.037637364119291306, -0.03981954604387283, -0.001269318163394928, -0.001873222878202796, 0.05014956369996071, 0.007834933698177338, 0.03941275551915169, -0.00014900288078933954, 0.018445292487740517, 0.05352548882365227, 0.021074343472719193, 0.02446611039340496, 0.04363243654370308, -0.004661207552999258, 0.04127063974738121, 0.01662500947713852, 0.009839498437941074, 0.0006807667668908834, 0.06384653598070145, -0.034445587545633316, -0.07102638483047485, 0.05461302772164345, -0.012755739502608776, -0.007173694670200348, -0.059011783450841904, 0.06222211942076683, 0.009775960817933083, -0.036432426422834396, -0.033320602029561996, 0.036530423909425735, -0.037058837711811066, -0.041672877967357635, -0.03966004028916359, 0.009719951078295708, -0.038492318242788315, 0.08282612264156342, 0.0024688399862498045, 0.02100001834332943, 0.05672521889209747, -0.026537388563156128, -0.002479937858879566, 0.025585923343896866, 0.058088187128305435, 0.06356995552778244, 0.005060151685029268, 0.018403777852654457, 0.0548362098634243, -0.017144208773970604, -0.03585483133792877, 0.009864960797131062, -0.019338693469762802, -0.02909620851278305, -0.04269690811634064, 0.01237488817423582, 0.0499875508248806, -0.015607715584337711, 0.06283976137638092, 0.008872263133525848, 0.004847789648920298, -0.013286679983139038, 0.04143659770488739, 0.026248125359416008, 0.03984734043478966, 0.009995381347835064, 0.03269306197762489, -0.004903555382043123, -0.015141782350838184, 0.03506483882665634, -0.01609630323946476, -0.006361486855894327, 0.016831615939736366, -0.008632022887468338, -0.010494619607925415, 0.03536238148808479, 0.02113027684390545, 0.06722497940063477, 0.00008171360241249204, -0.04917587339878082, 0.011551085859537125, 0.01715843938291073, 0.02517666108906269, 0.03453977778553963, -0.030920255929231644, 0.0022843957412987947, 0.0031212635803967714, -0.006334050092846155, -0.0031753936782479286, -0.02980160154402256, 0.0023258859291672707, 0.053659453988075256, -0.018229911103844643, -0.026718372479081154, 0.01742984913289547, -0.006380186416208744, -0.06269797682762146, -0.031521450728178024, -0.0564512275159359, -0.02561754733324051, -0.0569794736802578, 0.0029737220611423254, 0.003515798132866621, -0.013502427376806736, -0.038178451359272, -0.028366906568408012, -0.0021670248825103045, -0.017125258222222328, -0.011951399967074394, -0.02755614183843136, -0.035010043531656265, 0.02080763876438141, 0.04388631880283356, -0.019875168800354004, 0.0121975252404809, 0.06040084734559059, -0.011090580374002457, -0.02524593658745289, -0.029154036194086075, -0.005826964974403381, 0.04277057200670242, 0.007553791627287865, 0.02069501206278801, -0.07862652838230133, 0.03318221867084503, 0.03747574985027313, 0.01681326888501644, -0.06313192844390869, 0.006712712813168764, 0.03836113214492798, 0.00013297429541125894, 0.069266676902771, -0.008716602809727192, 0.022550027817487717, -0.02712889388203621, -0.007839927449822426, -0.02182675339281559, 0.020436162129044533, 0.06534958630800247, -0.016896210610866547, 0.08147218823432922, 0.029657619073987007, 0.0034013106487691402, -0.030073868110775948, -0.012769578956067562, -0.034115828573703766, 0.02564430981874466, -0.01973665878176689, 0.01689188927412033, -0.04676467925310135, -0.07302020490169525, -0.017672110348939896, 0.010805395431816578, -0.07211890071630478, -0.054683469235897064, -0.01895890012383461, -0.014708539471030235, -0.001356047810986638, 0.05702061578631401, -0.05500650405883789, -0.018254444003105164, -0.03189755976200104, -0.030448058620095253, -0.016262155026197433, 0.02548743225634098, 0.006842582020908594, 0.010011791251599789, 0.05285782739520073, -0.03610007464885712, -0.018130866810679436, 0.006192713975906372, 0.049005161970853806, 0.021074984222650528, -0.045315392315387726, 0.026509996503591537 ]
[ -0.04857621341943741, -0.006111541762948036, -0.029854297637939453, -0.027536412701010704, 0.008755668997764587, -0.047550514340400696, -0.049483802169561386, -0.012631813995540142, -0.019088204950094223, -0.027475129812955856, 0.004615891259163618, -0.041658081114292145, 0.017378516495227814, -0.027777858078479767, 0.07571303844451904, 0.011229299008846283, -0.025274839252233505, -0.061085473746061325, -0.04152858629822731, 0.06767262518405914, 0.020668618381023407, 0.022581294178962708, -0.03221665695309639, -0.04803547263145447, -0.042355410754680634, 0.048900339752435684, 0.04205714911222458, -0.015499493107199669, -0.01940280757844448, -0.1959814727306366, 0.015621911734342575, -0.002709576627239585, 0.05811535567045212, -0.03445849195122719, 0.012964654713869095, 0.05797842517495155, -0.02061878889799118, 0.030683159828186035, 0.00119423633441329, 0.006949203088879585, 0.04008585959672928, 0.005238542333245277, -0.07246309518814087, -0.0374668724834919, 0.07791915535926819, 0.006648242939263582, 0.02214893326163292, -0.03057139925658703, -0.0032229942735284567, -0.004261618014425039, -0.01774473674595356, 0.05233894661068916, 0.028466325253248215, 0.038274429738521576, -0.005045328754931688, -0.007747536059468985, 0.050825364887714386, 0.03959488123655319, 0.025113333016633987, -0.004873317666351795, -0.03724028915166855, 0.007311930879950523, -0.14526328444480896, 0.10108551383018494, 0.01652456633746624, 0.03217398002743721, -0.02222292870283127, -0.021319756284356117, 0.011125849559903145, 0.04944327473640442, -0.01720765046775341, -0.00240679201669991, -0.03854377195239067, 0.03439387306571007, -0.0191313736140728, -0.00603452417999506, -0.010813227854669094, 0.004523684736341238, 0.02445845678448677, 0.003730128286406398, -0.031803738325834274, -0.026600128039717674, -0.009532722644507885, -0.011304082348942757, -0.057653602212667465, -0.007281898055225611, 0.009154786355793476, 0.07516445964574814, 0.0014977582031860948, 0.042370256036520004, 0.0034869990777224302, -0.035435277968645096, 0.06595572084188461, 0.031160954385995865, -0.10531020909547806, 0.011076219379901886, -0.037648871541023254, 0.010585377924144268, -0.08023335784673691, 0.4168996512889862, -0.026925137266516685, -0.02357271872460842, 0.006491187494248152, 0.00733527634292841, 0.04182925820350647, 0.039017751812934875, 0.007118698675185442, -0.017196189612150192, 0.008927210234105587, -0.04283460974693298, 0.0028455976862460375, -0.02713172510266304, 0.08189891278743744, -0.06666935980319977, 0.013739724643528461, -0.006551695521920919, 0.009562859311699867, 0.052040889859199524, -0.034235235303640366, -0.010175476782023907, -0.017218677327036858, -0.002099160570651293, 0.06231291592121124, 0.0058982945047318935, 0.026146141812205315, 0.033172350376844406, 0.03440558537840843, 0.04266652464866638, 0.033815279603004456, 0.030971135944128036, 0.007324489764869213, -0.0002941387065220624, -0.032643482089042664, -0.010964925400912762, -0.027958180755376816, 0.04595709592103958, 0.002821083413437009, 0.024349931627511978, 0.017879372462630272, -0.0021260457579046488, -0.013634570874273777, -0.014275721274316311, 0.0667075663805008, -0.010013705119490623, -0.020505452528595924, 0.1001250296831131, 0.007602017372846603, -0.011334925889968872, -0.050306808203458786, -0.002339013619348407, 0.018341178074479103, 0.010854121297597885, -0.016356658190488815, -0.011011296883225441, 0.03157658874988556, 0.020880024880170822, 0.06660708785057068, -0.006286342162638903, -0.07034238427877426, -0.012238477356731892, 0.005095947999507189, -0.044771019369363785, -0.030812174081802368, -0.01712559536099434, 0.05890250578522682, -0.11134950071573257, -0.018269704654812813, -0.023320229724049568, -0.010204744525253773, -0.0778297558426857, -0.022634893655776978, 0.014312262646853924, -0.02666405960917473, 0.003861757228150964, 0.01799611747264862, -0.04010657221078873, 0.01733395829796791, -0.016319308429956436, 0.028145911172032356, 0.03897872939705849, -0.024629855528473854, 0.012559503316879272, -0.043539971113204956, -0.0030795710626989603, -0.054146647453308105, -0.09228486567735672, -0.042118463665246964, -0.009711508639156818, -0.0471252016723156, -0.027450917288661003, -0.009103077463805676, 0.03574535250663757, -0.07292795926332474, 0.03371959552168846, -0.003400585614144802, -0.00576381292194128, 0.03884938359260559, -0.030973469838500023, -0.03105471283197403, -0.05519362539052963, 0.04069124162197113, 0.07111434638500214, -0.028623228892683983, 0.0055577512830495834, -0.050020892173051834, 0.011501271277666092, 0.042472854256629944, -0.04860382899641991, 0.04236069321632385, 0.012583178468048573, -0.06452310085296631, 0.009145493619143963, 0.017158927395939827, 0.026643091812729836, -0.026249658316373825, 0.010227703489363194, -0.057476453483104706, -0.010165436193346977, 0.010057592764496803, 0.010386621579527855, -0.004495740402489901, -0.08860493451356888, -0.0866689458489418, -0.3528149724006653, 0.0122079411521554, -0.009485839866101742, -0.04411108419299126, 0.024849632754921913, -0.034741099923849106, 0.024636145681142807, -0.03217156231403351, 0.022750819101929665, 0.018087543547153473, 0.10210808366537094, -0.02010800689458847, 0.06935892254114151, -0.06808619946241379, 0.002073804847896099, 0.07253561913967133, -0.0017695189453661442, -0.04645618423819542, -0.003217725781723857, -0.013522760942578316, 0.013181022368371487, 0.014189094305038452, 0.0037182653322815895, -0.049241796135902405, -0.013838977552950382, 0.000991105567663908, 0.1001436784863472, 0.0401664674282074, 0.09517630934715271, -0.07523463666439056, 0.05142628401517868, 0.033215686678886414, -0.025477582588791847, -0.11176273971796036, -0.011787118390202522, -0.002515273168683052, 0.0032129662577062845, 0.015479568392038345, 0.05777587741613388, -0.03626915067434311, -0.022556766867637634, 0.042471591383218765, -0.04822028428316116, -0.027687596157193184, -0.014171664603054523, -0.021533653140068054, 0.0068185883574187756, -0.015902869403362274, -0.023148367181420326, 0.0836377739906311, 0.024855250492691994, 0.04879935458302498, 0.006026250775903463, 0.03128940612077713, -0.009929669089615345, -0.03903554379940033, -0.06691313534975052, -0.022388096898794174, 0.02399362251162529, -0.004219584167003632, 0.06605776399374008, 0.06430626660585403, 0.05433852970600128, -0.06468185037374496, -0.018303576856851578, 0.02194289304316044, -0.05602366477251053, 0.021966226398944855, 0.061800017952919006, -0.024850375950336456, -0.012061545625329018, 0.0780426561832428, 0.00010412035771878436, 0.06884513795375824, 0.01177456695586443, 0.03601222485303879, -0.0032805216033011675, 0.0025383424945175648, 0.009619035758078098, -0.02485300600528717, 0.050394270569086075, -0.00930833537131548, 0.027177290990948677, -0.0377889946103096, -0.019650885835289955, 0.0710691288113594, -0.006856060121208429, -0.019042158499360085, 0.048235516995191574, 0.0029021254740655422, 0.01032840646803379, -0.016593599691987038, 0.004589147865772247, -0.04520720615983009, 0.0553131178021431, -0.0036320488434284925, -0.23569327592849731, 0.03451995551586151, 0.054878659546375275, 0.06167168170213699, 0.0019122175872325897, -0.01125981006771326, 0.04343689978122711, -0.0656416118144989, -0.04553171992301941, 0.008295107632875443, 0.01919678784906864, 0.04590542986989021, 0.021222885698080063, 0.015829788520932198, -0.002661681966856122, -0.02994934283196926, 0.04525502398610115, -0.0013683420838788152, 0.0033090724609792233, -0.018671169877052307, -0.03824121877551079, -0.016410676762461662, 0.1486290693283081, 0.022699713706970215, -0.017339542508125305, -0.01224092859774828, 0.02821514941751957, 0.00819834042340517, 0.01753004640340805, 0.03249866142868996, 0.0061192563734948635, 0.012424754910171032, 0.012951050885021687, 0.029306484386324883, 0.06499239802360535, -0.04139959439635277, -0.04611770063638687, 0.019056282937526703, 0.02018248289823532, -0.006810203660279512, -0.021351775154471397, 0.0674818828701973, -0.06207234039902687, 0.045005638152360916, 0.04683315381407738, -0.06790664047002792, 0.025747224688529968, 0.048698727041482925, -0.03331616148352623, 0.005696847103536129, 0.003016909584403038, -0.030240971595048904, -0.01888243854045868, -0.005520933773368597, -0.0015224161325022578, 0.07964788377285004, 0.0019461867632344365, -0.049528367817401886, 0.02053612656891346, 0.031680092215538025, -0.010367427952587605, -0.0408901572227478, 0.10994040966033936, 0.011873372830450535, -0.02209080383181572 ]
[ 0.005688185337930918, -0.014792576432228088, -0.03902704641222954, 0.00756167434155941, 0.020934879779815674, 0.01159760169684887, -0.003498262958601117, 0.014383607544004917, -0.0663985013961792, -0.01851283758878708, 0.02527952380478382, 0.03216802328824997, 0.031393393874168396, -0.03403330221772194, -0.005518011748790741, 0.01126152090728283, 0.00021646391542162746, -0.056666240096092224, -0.0060564735904335976, 0.013925055041909218, 0.008133395574986935, 0.006259421352297068, 0.04449118673801422, 0.01059990655630827, -0.0051600090228021145, 0.02059948444366455, -0.07979868352413177, 0.031208861619234085, 0.020324135199189186, -0.09536566585302353, 0.0005436015781015158, -0.0020985789597034454, 0.0003938789595849812, -0.009524759836494923, 0.0010754527756944299, 0.045521412044763565, -0.004919966217130423, -0.024765631183981895, -0.004501905757933855, -0.034857481718063354, 0.008121098391711712, -0.017135128378868103, -0.0383145734667778, 0.02799871936440468, -0.0028304888401180506, -0.03369251638650894, -0.035689376294612885, 0.00016352620150428265, -0.019485963508486748, -0.013518961146473885, -0.02752523310482502, -0.00833582878112793, 0.036182425916194916, -0.0018232171423733234, -0.014744873158633709, 0.05685688555240631, 0.009801740758121014, 0.029702400788664818, -0.008811765350401402, -0.007852145470678806, 0.005924171302467585, -0.016375429928302765, -0.0579443983733654, -0.024371666833758354, -0.006015661172568798, -0.020555242896080017, -0.030693845823407173, -0.0047866362147033215, 0.015404094010591507, 0.02868058532476425, 0.016431430354714394, 0.010241049341857433, -0.032755933701992035, -0.001129163196310401, -0.0012705239932984114, 0.0009436304098926485, -0.015829050913453102, -0.010667480528354645, -0.03083740547299385, -0.0038644575979560614, -0.009336454793810844, 0.006868856959044933, 0.031484004110097885, -0.0033614153508096933, 0.023391541093587875, -0.030300850048661232, 0.023155471310019493, 0.020921381190419197, 0.00960515160113573, 0.014043592847883701, 0.0007276785327121615, -0.029369371011853218, -0.005256277974694967, 0.0175794530659914, -0.09775857627391815, 0.026734041050076485, 0.056343648582696915, -0.0182638019323349, -0.01269683986902237, 0.8262427449226379, -0.0004965072148479521, -0.019863786175847054, 0.03275062143802643, -0.032500024884939194, 0.02301754429936409, -0.00040301861008629203, -0.013355178758502007, 0.0028965123929083347, 0.0019063587533310056, -0.06414057314395905, 0.048569679260253906, -0.0285788644105196, 0.0252476055175066, -0.007475643884390593, 0.020711198449134827, 0.005922742187976837, 0.002762816846370697, 0.007599666714668274, -0.03923182561993599, 0.029338903725147247, 0.001168467104434967, -0.0016040357295423746, 0.03743407130241394, 0.04126743599772453, -0.004045019391924143, -0.14967390894889832, -0.05954962968826294, -7.191886761997872e-33, 0.04405144974589348, -0.03006811812520027, -0.0029007080011069775, -0.009102188982069492, 0.02896626852452755, -0.01523848157376051, -0.008554961532354355, 0.030984913930296898, -0.005637210328131914, -0.031247708946466446, 0.06289840489625931, -0.04139593988656998, 0.004830034915357828, 0.013960236683487892, 0.04591257497668266, -0.013862688094377518, 0.01532428152859211, 0.016474144533276558, 0.027124937623739243, -0.010275431908667088, 0.018216384574770927, 0.050006672739982605, 0.030136164277791977, -0.011673817411065102, -0.009009190835058689, 0.011966167017817497, 0.05486317723989487, 0.011695627123117447, -0.02250947244465351, -0.02974618226289749, -0.02020188793540001, 0.002598619321361184, 0.0010940488427877426, -0.034281790256500244, 0.007567217107862234, -0.034873999655246735, -0.041922491043806076, -0.010740498080849648, -0.013911450281739235, -0.013002126477658749, 0.005838669370859861, 0.016559405252337456, -0.020908614620566368, -0.014290884137153625, -0.004847102798521519, 0.0026946375146508217, -0.002642130246385932, 0.07709438353776932, 0.021668456494808197, 0.01063067652285099, 0.00357974786311388, -0.006040794774889946, 0.007601887919008732, 0.017277909442782402, 0.021921992301940918, 0.011399004608392715, 0.0043601044453680515, 0.0034595609176903963, 0.038835182785987854, -0.02637934871017933, -0.025487937033176422, -0.00949245598167181, 0.016406791284680367, 0.051877137273550034, -0.012686561793088913, -0.022851748391985893, 0.018136151134967804, 0.0013690615305677056, 0.045179907232522964, 0.03011242300271988, -0.04293669015169144, -0.000616032222751528, -0.021882323548197746, -0.016229024156928062, -0.03702615201473236, 0.002099731471389532, -0.02347877062857151, -0.0050661154091358185, -0.0005885764257982373, 0.08695980906486511, 0.012331891804933548, 0.010291116312146187, -0.018110690638422966, -0.015891414135694504, -0.050113845616579056, -0.009479239583015442, 0.013455449603497982, -0.0156874842941761, -0.025589993223547935, 0.00633819168433547, 0.02376020886003971, 0.03303709626197815, 0.044986385852098465, -0.03430234268307686, -0.04197101667523384, 7.336235264226941e-33, 0.008783343248069286, 0.03086371161043644, 0.0006417466211132705, 0.005435071885585785, 0.051526956260204315, -0.0020480970852077007, -0.003475928446277976, -0.004323244094848633, -0.00680968863889575, 0.027747653424739838, -0.011098905466496944, 0.06662407517433167, 0.02758796699345112, -0.012052389793097973, 0.03689901903271675, -0.002485404722392559, -0.0015349939931184053, 0.01709390990436077, 0.050984304398298264, 0.019425874575972557, -0.01375448890030384, 0.01704801432788372, 0.001778867095708847, 0.019446467980742455, 0.04746782407164574, 0.008311034180223942, -0.03262970224022865, 0.023250507190823555, -0.03200430050492287, 0.0019066581735387444, 0.015291744843125343, -0.004145519342273474, -0.01606697030365467, 0.006421122699975967, -0.028424613177776337, -0.002265368355438113, -0.005419468507170677, -0.005843096878379583, -0.016758831217885017, 0.04035342112183571, 0.022444162517786026, 0.01787777990102768, -0.001873200060799718, 0.020094919949769974, -0.010836203582584858, -0.02043856307864189, -0.008297352120280266, -0.046445250511169434, -0.013927227817475796, -0.004550098441541195, -0.00506727397441864, -0.020836012437939644, 0.03126596659421921, 0.028205206617712975, 0.029152071103453636, -0.057804521173238754, -0.054677464067935944, 0.058722201734781265, -0.06587307900190353, -0.0025337589904665947, 0.012815256603062153, 0.00558174354955554, -0.0019261768320575356, 0.012120569124817848, -0.04729948565363884, -0.013700723648071289, -0.036822084337472916, 0.006663719657808542, -0.05579875037074089, -0.009059503674507141, 0.016005871817469597, -0.03595155477523804, 0.00048395522753708065, 0.07639376074075699, 0.025701476261019707, -0.030857251957058907, -0.034301310777664185, 0.011297942139208317, -0.03639829531311989, 0.0039073750376701355, 0.021486638113856316, 0.009368178434669971, -0.019696341827511787, 0.00262050935998559, 0.025226926431059837, 0.0019746306352317333, -0.027768855914473534, -0.001823751488700509, -0.008617904968559742, -0.009774481877684593, -0.006101482547819614, -0.011625716462731361, 0.009921811521053314, 0.00039081633440218866, 0.03294415771961212, -1.2572643370845071e-8, -0.0013027969980612397, -0.011644669808447361, -0.006148562766611576, 0.00470486655831337, 0.05655822902917862, -0.009054458700120449, -0.013407469727098942, -0.002150945831090212, -0.011000823229551315, 0.019840529188513756, 0.05197861045598984, -0.03317980468273163, 0.027331041172146797, -0.00010337433923268691, -0.010378926992416382, -0.050823621451854706, 0.005226548761129379, 0.02147274650633335, 0.003419897984713316, -0.07704559713602066, -0.015162193216383457, 0.06327266246080399, 0.0008456307114101946, -0.015548024326562881, -0.009057797491550446, -0.03386342525482178, 0.00922541692852974, -0.07982924580574036, -0.02700834535062313, 0.002514992840588093, -0.015201998874545097, -0.03184177726507187, -0.028861166909337044, -0.013294043950736523, -0.010570877231657505, -0.00021047347399871796, -0.004959095735102892, -0.001795367687009275, 0.037100568413734436, 0.014774731360375881, -0.02600155398249626, 0.024893753230571747, 0.015381446108222008, -0.02712167240679264, -0.030971108004450798, -0.03961101919412613, 0.04470932111144066, 0.03109247423708439, 0.041907377541065216, 0.02394053526222706, 0.05306428670883179, 0.024447714909911156, 0.01124071329832077, -0.006710738874971867, 0.03414325416088104, 0.00616341270506382, -0.0052579110488295555, 0.0348915234208107, -0.04374502971768379, 0.0065742479637265205, 0.03637983649969101, 0.004251168109476566, 0.00019272581266704947, -0.04009723290801048 ]
apache-superset-refusing-start-insecure-key
https://markhneedham.com/blog/2023/10/13/apache-superset-refusing-start-insecure-key
false
2023-07-03 04:44:37
ClickHouse: How to unpack or unnest an array
[ "clickhouse", "clickhouse-local", "til" ]
[ "TIL" ]
:icons: font I recently came across https://clickhouse.com/docs/en/operations/utilities/clickhouse-local[clickhouse-local^] via https://www.vantage.sh/blog/clickhouse-local-vs-duckdb[this article^] in the https://motherduck.com/blog/duckdb-ecosystem-newsletter-seven/[MotherDuck monthly newsletter^] and I wanted to give it a try on my https://github.com/mneedham/xg[expected goals dataset^]. One of the first things that I wanted to do was unpack an array and in this blog post, we'll learn how to do that. I installed Clickhouse by running the following command: [source, bash] ---- curl https://clickhouse.com/ | sh ---- And then launched the clickhouse-local CLI like this: [source, bash] ---- ./clickhouse local -m # <1> ---- <1> I'm passing in the `-m` flag to enable multi-line queries, otherwise queries are executed when you press enter. This dataset consists of a bunch of JSON files that live in the `data` directory. Let's start by having a look at one row of one of them, which I initially tried to do like this: [source, sql] ---- SELECT * FROM file('data/*.json') LIMIT 1 FORMAT Vertical ---- But that didn't work so well: .Output [source, text] ---- Query id: 6b1ed5fa-4e7a-4844-87f5-6c89169e63ea 0 rows in set. Elapsed: 0.411 sec. Received exception: Code: 117. DB::Exception: Expected field "meta" with columns names and types, found field h: Cannot extract table structure from JSON format file. You can specify the structure manually. (INCORRECT_DATA) ---- We need to tell it how to process the files. There are a series of options that you can pass in, one of which is `JSONEachRow`, so let's try that: [source, sql] ---- select * from file('data/*.json', 'JSONEachRow') LIMIT 1 FORMAT Vertical; ---- Note that I'm using `FORMAT Verticall` as the structure of the data messes up the column view. The result of running this query is shown below: .Output [source, text] ---- Query id: 33b54e04-c73e-4fde-a0fb-5fb9b00fba99 Row 1: ────── h: ['{"id": "54521", "minute": "43", "result": "MissedShots", "X": "0.9419999694824219", "Y": "0.52", "xG": "0.07078909873962402", "player": "Chancel Mbemba", "h_a": "h", "player_id": "849", "situation": "FromCorner", "season": "2015", "shotType": "Head", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Papiss Demba Ciss\\u00e9", "lastAction": "Pass"}','{"id": "54522", "minute": "44", "result": "MissedShots", "X": "0.6940000152587891", "Y": "0.3840000152587891", "xG": "0.033031001687049866", "player": "Georginio Wijnaldum", "h_a": "h", "player_id": "771", "situation": "DirectFreekick", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": null, "lastAction": "Standard"}','{"id": "54525", "minute": "50", "result": "MissedShots", "X": "0.9319999694824219", "Y": "0.39", "xG": "0.12170200049877167", "player": "Georginio Wijnaldum", "h_a": "h", "player_id": "771", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Moussa Sissoko", "lastAction": "Pass"}','{"id": "54527", "minute": "54", "result": "BlockedShot", "X": "0.785", "Y": "0.4809999847412109", "xG": "0.03719690069556236", "player": "Georginio Wijnaldum", "h_a": "h", "player_id": "771", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Jack Colback", "lastAction": "Pass"}','{"id": "54528", "minute": "68", "result": "MissedShots", "X": "0.925", "Y": "0.31799999237060544", "xG": "0.027039799839258194", "player": "Georginio Wijnaldum", "h_a": "h", "player_id": "771", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Moussa Sissoko", "lastAction": "Cross"}','{"id": "54534", "minute": "92", "result": "Goal", "X": "0.889000015258789", "Y": "0.5609999847412109", "xG": "0.3565869927406311", "player": "Georginio Wijnaldum", "h_a": "h", "player_id": "771", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Moussa Sissoko", "lastAction": "Throughball"}'] a: ['{"id": "54518", "minute": "1", "result": "BlockedShot", "X": "0.8109999847412109", "Y": "0.500999984741211", "xG": "0.03640669956803322", "player": "Martin Skrtel", "h_a": "a", "player_id": "607", "situation": "FromCorner", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": null, "lastAction": "None"}','{"id": "54519", "minute": "20", "result": "MissedShots", "X": "0.9669999694824218", "Y": "0.48200000762939454", "xG": "0.5759689807891846", "player": "Christian Benteke", "h_a": "a", "player_id": "606", "situation": "FromCorner", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Joe Allen", "lastAction": "HeadPass"}','{"id": "54520", "minute": "30", "result": "BlockedShot", "X": "0.7480000305175781", "Y": "0.28899999618530275", "xG": "0.014502700418233871", "player": "Nathaniel Clyne", "h_a": "a", "player_id": "603", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Christian Benteke", "lastAction": "Pass"}','{"id": "54523", "minute": "45", "result": "MissedShots", "X": "0.8069999694824219", "Y": "0.7290000152587891", "xG": "0.023353099822998047", "player": "Jordon Ibe", "h_a": "a", "player_id": "481", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Christian Benteke", "lastAction": "Pass"}','{"id": "54524", "minute": "45", "result": "MissedShots", "X": "0.8580000305175781", "Y": "0.764000015258789", "xG": "0.024165699258446693", "player": "Roberto Firmino", "h_a": "a", "player_id": "482", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "James Milner", "lastAction": "Pass"}','{"id": "54526", "minute": "52", "result": "MissedShots", "X": "0.7930000305175782", "Y": "0.49700000762939456", "xG": "0.04398920014500618", "player": "Joe Allen", "h_a": "a", "player_id": "480", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Roberto Firmino", "lastAction": "Pass"}','{"id": "54529", "minute": "68", "result": "OwnGoal", "X": "0.03200000047683716", "Y": "0.5520000076293945", "xG": "0", "player": "Martin Skrtel", "h_a": "a", "player_id": "607", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": null, "lastAction": "None"}','{"id": "54530", "minute": "73", "result": "MissedShots", "X": "0.7030000305175781", "Y": "0.51", "xG": "0.014298499561846256", "player": "Daniel Sturridge", "h_a": "a", "player_id": "483", "situation": "OpenPlay", "season": "2015", "shotType": "LeftFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Jordon Ibe", "lastAction": "Pass"}','{"id": "54531", "minute": "74", "result": "MissedShots", "X": "0.899000015258789", "Y": "0.345", "xG": "0.09887190163135529", "player": "Daniel Sturridge", "h_a": "a", "player_id": "483", "situation": "OpenPlay", "season": "2015", "shotType": "RightFoot", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Adam Lallana", "lastAction": "Throughball"}','{"id": "54532", "minute": "85", "result": "MissedShots", "X": "0.9540000152587891", "Y": "0.46599998474121096", "xG": "0.12833499908447266", "player": "Dejan Lovren", "h_a": "a", "player_id": "602", "situation": "FromCorner", "season": "2015", "shotType": "Head", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "James Milner", "lastAction": "Cross"}','{"id": "54533", "minute": "88", "result": "SavedShot", "X": "0.8930000305175781", "Y": "0.5720000076293945", "xG": "0.039151400327682495", "player": "Dejan Lovren", "h_a": "a", "player_id": "602", "situation": "FromCorner", "season": "2015", "shotType": "Head", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Alberto Moreno", "lastAction": "Cross"}'] 1 row in set. Elapsed: 0.011 sec. ---- We have two properties, `h` and `a`, which both contain arrays of objects. When I analysed this dataset with DuckDB, I was able to unpack the arrays using the `unnest` function: .DuckDB [source, sql] ---- FROM 'data/shots_*.json' SELECT unnest(h) AS row LIMIT 1; ---- The equivalent function in ClickHouse is https://clickhouse.com/docs/en/sql-reference/functions/array-join[`arrayJoin`^], so let's give that a try: [source, sql] ---- SELECT arrayJoin(h) FROM file('data/*.json', 'JSONEachRow') LIMIT 1 FORMAT Vertical; ---- .Output [source, text] ---- Query id: ac00a1d1-3109-4d9b-997f-e7daaf277f70 Row 1: ────── arrayJoin(h): {"id": "54521", "minute": "43", "result": "MissedShots", "X": "0.9419999694824219", "Y": "0.52", "xG": "0.07078909873962402", "player": "Chancel Mbemba", "h_a": "h", "player_id": "849", "situation": "FromCorner", "season": "2015", "shotType": "Head", "match_id": "229", "h_team": "Newcastle United", "a_team": "Liverpool", "h_goals": "2", "a_goals": "0", "date": "2015-12-06 20:00:00", "player_assisted": "Papiss Demba Ciss\u00e9", "lastAction": "Pass"} 1 row in set. Elapsed: 0.004 sec. ---- Not bad! Alternatively, we can use the https://clickhouse.com/docs/en/sql-reference/statements/select/array-join[`ARRAY JOIN`^] clause: [source, sql] ---- SELECT h FROM file('data/shots_*.json', 'JSONEachRow') ARRAY JOIN h LIMIT 1 FORMAT Vertical; ---- This clause lets us do more things than `arrayJoin`, but for this use case, either option will do. To unpack all the shot events, we end up with the following query: [source, sql] ---- SELECT h AS shot FROM file('data/shots_*.json', 'JSONEachRow') ARRAY JOIN h UNION ALL SELECT a AS shot FROM file('data/shots_*.json', 'JSONEachRow') ARRAY JOIN a FORMAT Vertical; ---- .Truncated Output [source, text] ---- Query id: 21c865f6-6130-4fb1-8b6e-8fb948415ec7 Row 1: ────── shot: {"id": "186307", "minute": "28", "result": "MissedShots", "X": "0.91", "Y": "0.34200000762939453", "xG": "0.013558999635279179", "player": "Harry Maguire", "h_a": "h", "player_id": "1687", "situation": "OpenPlay", "season": "2017", "shotType": "Head", "match_id": "7334", "h_team": "Leicester", "a_team": "Huddersfield", "h_goals": "3", "a_goals": "0", "date": "2018-01-01 15:00:00", "player_assisted": "Christian Fuchs", "lastAction": "Aerial"} ... Row 10000: ────────── shot: {"id": "14564", "minute": "42", "result": "BlockedShot", "X": "0.8819999694824219", "Y": "0.655", "xG": "0.06507989764213562", "player": "Charlie Austin", "h_a": "h", "player_id": "848", "situation": "OpenPlay", "season": "2014", "shotType": "LeftFoot", "match_id": "4751", "h_team": "Queens Park Rangers", "a_team": "Hull", "h_goals": "0", "a_goals": "1", "date": "2014-08-16 15:00:00", "player_assisted": null, "lastAction": "BallRecovery"} Showed first 10000. 81860 rows in set. Elapsed: 0.260 sec. Processed 1.43 thousand rows, 8.41 MB (5.49 thousand rows/s., 32.38 MB/s.) ----
In this post, we're going to learn how to unnest an array when using clickhouse-local.
uploads/2023/07/clickhouse-unnest-banner.png
[ -0.005391761194914579, 0.016386853531003, -0.016003044322133064, 0.03545087203383446, 0.09311511367559433, 0.021594787016510963, 0.017497394233942032, 0.05464589223265648, -0.03770047053694725, -0.005407936405390501, -0.00012259230425115675, -0.017657101154327393, -0.08123818039894104, -0.004839289002120495, -0.00985447596758604, 0.06555750966072083, 0.08882810175418854, 0.00001054396307154093, 0.03382294252514839, 0.003660398069769144, 0.010147127322852612, 0.05186183378100395, -0.0015769654419273138, 0.052842315286397934, 0.04549645632505417, 0.03655111789703369, 0.024237660691142082, -0.019040463492274284, -0.046264950186014175, 0.011805343441665173, 0.01826469413936138, -0.02522987127304077, 0.014878025278449059, -0.009944156743586063, 0.011888588778674603, 0.010131084360182285, -0.002336869016289711, 0.005528287496417761, 0.012849963270127773, 0.020247552543878555, -0.086907759308815, 0.021066179499030113, 0.0007503483793698251, 0.020333368331193924, -0.02493719942867756, 0.0021274767350405455, -0.051749035716056824, 0.008808155544102192, -0.020224640145897865, 0.005137436091899872, -0.05041557177901268, 0.05238446965813637, -0.029485825449228287, -0.03410586714744568, -0.0005733967409469187, 0.0380600169301033, 0.0428280308842659, -0.04428078606724739, 0.00591457961127162, -0.03291982412338257, -0.000842263747472316, 0.003010030370205641, 0.02990676648914814, 0.04165598377585411, 0.02352204918861389, 0.007031438872218132, -0.0067139435559511185, 0.04934896156191826, -0.051230404525995255, 0.011098621413111687, 0.016379280015826225, -0.002582842716947198, -0.04784088954329491, -0.02726961299777031, 0.022850792855024338, -0.05390474572777748, -0.024728205054998398, 0.028754711151123047, 0.03528883680701256, 0.06212042272090912, -0.026185888797044754, 0.007853284478187561, 0.029043734073638916, 0.023971393704414368, 0.029733482748270035, -0.061411961913108826, -0.035958439111709595, -0.006187937688082457, -0.06700887531042099, 0.04125302657485008, 0.02180158905684948, -0.05656841769814491, 0.008189784362912178, 0.029189318418502808, -0.006250763777643442, 0.026164939627051353, 0.005072019994258881, 0.01170623954385519, 0.007146637421101332, -0.010649454779922962, -0.06014210358262062, 0.007723937276750803, 0.039683133363723755, 0.017851557582616806, -0.08064105361700058, 0.021599680185317993, -0.022107334807515144, -0.015774942934513092, 0.010582437738776207, 0.009624878875911236, -0.012136849574744701, -0.0026561934500932693, -0.02771480195224285, 0.002849564189091325, -0.07554446160793304, 0.08347219973802567, 0.01082516834139824, -0.00797825213521719, -0.004533921368420124, 0.01642664708197117, 0.06969478726387024, 0.013968750834465027, -0.027720211073756218, 0.07197313755750656, 0.012676055543124676, 0.0161909032613039, -0.02085229940712452, 0.0352589413523674, 0.009740130044519901, -0.058207083493471146, -0.030438870191574097, 0.04600739851593971, 0.0008098363759927452, 0.018593015149235725, 0.006185553036630154, -0.029681874439120293, 0.015413140878081322, -0.006845630705356598, 0.05953064560890198, 0.02284100465476513, 0.0030153507832437754, -0.027959385886788368, -0.007268276531249285, -0.008041149005293846, 0.043896809220314026, 0.014289187267422676, -0.007955259643495083, -0.06383377313613892, -0.05286126583814621, 0.03940751031041145, 0.029346313327550888, 0.03376739099621773, 0.061094656586647034, -0.031028617173433304, 0.005447375122457743, 0.09934183210134506, 0.03529322147369385, -0.005740618798881769, 0.007098502479493618, -0.01981508545577526, 0.04038826376199722, 0.031748298555612564, -0.01554794516414404, 0.028468383476138115, 0.006184592377394438, -0.02612212672829628, -0.011625674553215504, 0.01340293139219284, -0.04144946485757828, 0.007120687980204821, -0.0432177297770977, -0.06793355196714401, 0.09018339216709137, -0.009369205683469772, 0.004376728553324938, 0.0314076766371727, 0.07867644727230072, 0.047868769615888596, 0.016754018142819405, 0.04442651569843292, -0.08899134397506714, 0.03557344898581505, -0.011745516210794449, -0.031740639358758926, 0.052549611777067184, -0.0019787505734711885, 0.08356501162052155, 0.012533736415207386, -0.0028404509648680687, 0.052635226398706436, -0.06931426376104355, -0.09605353325605392, -0.0370180644094944, 0.004603697452694178, 0.062219180166721344, -0.04763316735625267, 0.0043699005618691444, 0.0831630676984787, 0.03901553526520729, 0.05127301067113876, -0.010773110203444958, 0.006178052164614201, 0.03086206689476967, -0.05803488940000534, -0.05064069479703903, 0.01704900711774826, 0.051732137799263, -0.024394864216446877, 0.006278289947658777, 0.00240388629026711, -0.02442668378353119, -0.019241569563746452, 0.03113766945898533, -0.005302019417285919, 0.0632958859205246, 0.008143434301018715, 0.028436044231057167, -0.013221539556980133, 0.023419182747602463, -0.04965619370341301, 0.015128720551729202, 0.038135968148708344, -0.026055604219436646, -0.025456516072154045, 0.025590253993868828, 0.11166277527809143, 0.05781623348593712, -0.00965255219489336, -0.057163238525390625, 0.03523874655365944, 0.028224928304553032, -0.03915870562195778, 0.021697189658880234, -0.03207792341709137, -0.004153696820139885, -0.00003625902536441572, -0.03047700971364975, -0.014378614723682404, 0.014306132681667805, -0.03962329030036926, 0.018975326791405678, 0.055772822350263596, -0.009446204639971256, 0.0377039760351181, 0.026188146322965622, -0.05243096500635147, 0.0005598847637884319, -0.040178414434194565, -0.054050445556640625, -0.00915471464395523, 0.020237375050783157, -0.015585060231387615, 0.0278240367770195, -0.0503828339278698, 0.0144056910648942, -0.029010917991399765, -0.03998788446187973, 0.050440892577171326, 0.011573085561394691, 0.056685201823711395, -0.024453964084386826, 0.03831678256392479, -0.01653328165411949, -0.0008346140384674072, -0.007383169140666723, -0.028341472148895264, -0.03387518227100372, -0.004812406841665506, 0.01925319992005825, 0.01750187762081623, 0.0006335015059448779, 0.025187257677316666, -0.0036272562574595213, -0.014696856029331684, 0.015310890041291714, -0.00962055753916502, 0.031442791223526, 0.0031544826924800873, -0.010502536781132221, -0.03684869781136513, -0.03265943005681038, 0.055727120488882065, -0.04437778890132904, -0.0368993766605854, 0.009897925890982151, -0.06775054335594177, 0.0339784100651741, -0.06680205464363098, -0.047535981982946396, -0.02472883276641369, 0.028491171076893806, 0.0418059304356575, -0.010329409502446651, 0.00026309487293474376, 0.046061255037784576, 0.007658086717128754, 0.025679124519228935, 0.017339179292321205, -0.004944986663758755, 0.0334547758102417, 0.019982539117336273, 0.011124907992780209, 0.04867471009492874, 0.00011316760355839506, 0.011392646469175816, -0.04294135421514511, 0.008692053146660328, -0.02899029850959778, -0.27075859904289246, 0.030144445598125458, -0.022672101855278015, -0.047960445284843445, 0.02637495845556259, -0.021507013589143753, 0.004215344320982695, -0.03487883880734444, 0.009211949072778225, 0.011650482192635536, -0.0167281124740839, -0.04087537154555321, -0.00514794047921896, 0.018892157822847366, 0.01454949751496315, 0.014217711985111237, 0.021955208852887154, -0.024464216083288193, -0.0014535060618072748, 0.03608081489801407, -0.006545251235365868, -0.037172913551330566, -0.00023366534151136875, 0.05487755313515663, 0.022872956469655037, 0.05379469692707062, -0.05319025740027428, 0.0029918779619038105, -0.03754740580916405, -0.03352954983711243, 0.030384888872504234, -0.005609316285699606, -0.018849166110157967, 0.005299792159348726, -0.01513723749667406, 0.012238391675055027, 0.05470399931073189, -0.008767732419073582, 0.016683943569660187, 0.001779251149855554, -0.011881599202752113, -0.012371592223644257, -0.003575071459636092, 0.014016922563314438, 0.08592343330383301, -0.02754082903265953, -0.05999010056257248, -0.013389497995376587, -0.048231907188892365, 0.07370226085186005, -0.024853503331542015, -0.03468853607773781, -0.047312814742326736, 0.04567757248878479, 0.004839787259697914, 0.0006361771374940872, -0.01967587321996689, 0.020699238404631615, -0.03139194846153259, -0.03256458789110184, -0.0037684785202145576, -0.02936825156211853, -0.03031976707279682, -0.021026453003287315, -0.017538294196128845, -0.09284107387065887, -0.05539492890238762, -0.022396504878997803, 0.07268005609512329, 0.03869759663939476, -0.02359934337437153, 0.006831954699009657, -0.030339373275637627, -0.12010026723146439, -0.0005316052120178938, -0.01148778386414051, -0.029247798025608063, 0.0013347873464226723, -0.012857820838689804, 0.04530295729637146, -0.03197913616895676, -0.01767279952764511, 0.041901253163814545, 0.018859900534152985, 0.006341965869069099, -0.03301403298974037, 0.013558832928538322, 0.005971972830593586, -0.023058196529746056, -0.02189323678612709, 0.055291760712862015, -0.04908902570605278, -0.006780446507036686, -0.00981220044195652, -0.025806259363889694, 0.024419324472546577, 0.004185200203210115, -0.013218840584158897, 0.00902834814041853, 0.015750473365187645, 0.03380879759788513, -0.057620588690042496, 0.001649193582125008, -0.0454360768198967, 0.0004325792833697051, -0.02315744385123253, -0.047768108546733856, 0.028306784108281136, 0.022122522816061974, 0.03925994411110878, -0.026334846392273903, -0.04282006621360779, 0.026669690385460854, -0.06491314619779587, 0.008236107416450977, -0.01700436696410179, 0.006582849659025669, 0.0224299319088459, 0.01254651416093111, -0.019615530967712402, -0.08136176317930222, 0.0176045261323452, 0.008448228240013123, -0.02888929843902588, -0.06154812127351761, -0.030503299087285995, -0.009753569029271603, 0.0008772302535362542, -0.009000799618661404, -0.0014265176141634583, -0.0017818076303228736, 0.025979934260249138, 0.03581048548221588, -0.041766636073589325, 0.027417292818427086, -0.00808129832148552, -0.04130115360021591, -0.015794459730386734, -0.012740991078317165, 0.017925472930073738, -0.01313020195811987, 0.0015532849356532097, 0.03382918983697891, 0.028320422396063805, 0.042870428413152695, 0.005188184790313244, 0.004693419206887484, 0.012122610583901405, 0.01938358135521412, 0.009104723110795021, -0.024356253445148468, -0.049635112285614014, 0.025907764211297035, -0.04396693781018257, -0.02519218437373638, -0.052397776395082474, 0.010751252993941307, -0.018091848120093346, -0.020897381007671356, -0.05526771396398544, -0.023448161780834198, -0.06247808784246445, -0.006445414386689663, 0.002243816154077649, -0.02197960577905178, 0.05864298716187477, 0.01841418445110321, 0.020060548558831215, -0.004894339945167303, -0.004232296720147133, 0.01452814880758524, 0.01087991613894701, -0.03845806419849396, -0.019605809822678566, 0.00858206395059824, -0.031096672639250755, 0.009331225417554379, 0.03480818495154381, 0.025639131665229797, 0.02584848366677761, 0.0005130227073095739, -0.02185150235891342, 0.030555948615074158, 0.03389660641551018, 0.03875907137989998, 0.026233693584799767, -0.04203302040696144, -0.009013987146317959, -0.0234206710010767, -0.05022599920630455, -0.02510484866797924, -0.01839902065694332, -0.013397488743066788, -0.03208617866039276, -0.03011082485318184, -0.08102285861968994, 0.01948654279112816, 0.03723794221878052, 0.019568482413887978, 0.02317836321890354, -0.0309713426977396, -0.001369671430438757, -0.04039046913385391, 0.058884214609861374, 0.06611078232526779, -0.07401080429553986, -0.006872409954667091, 0.002453326713293791, 0.0029744915664196014, -0.007796692196279764, 0.03276201710104942, -0.062237974256277084, -0.01644568145275116, -0.019736774265766144, 0.03807614743709564, -0.02091573178768158, -0.004886442329734564, -0.04224858060479164, 0.020080897957086563, -0.0060053421184420586, -0.01315213367342949, 0.0077585517428815365, -0.01290793064981699, -0.00243684696033597, -0.0015069422079250216, 0.005326508078724146, -0.0335688591003418, -0.021529091522097588, 0.03148946911096573, -0.015589057467877865, 0.012067691422998905, -0.03258080035448074, 0.0426056794822216, 0.012267502024769783, -0.013375985436141491, -0.01438692957162857, -0.034717168658971786, -0.009132403880357742, 0.010984212160110474, 0.04524628072977066, 0.011175270192325115, 0.003229189896956086, -0.004838671535253525, -0.001274380018003285, -0.007759429048746824, -0.005945342127233744, -0.017902975901961327, -0.030304204672574997, 0.04857885092496872, 0.04710588976740837, 0.004330011550337076, -0.003313373075798154, -0.010020239278674126, -0.02133096009492874, 0.060549214482307434, -0.045100197196006775, -0.02738005854189396, 0.01893172785639763, -0.05201748013496399, 0.039181243628263474, 0.0211336649954319, 0.03821491450071335, -0.0608363151550293, 0.06568890064954758, 0.036559849977493286, 0.015092860907316208, 0.026897363364696503, -0.0052068778313696384, 0.05157046392560005, -0.026742495596408844, -0.04530356451869011, -0.07745400816202164, -0.014107558876276016, -0.005558359436690807, -0.03824770823121071, -0.008600389584898949, -0.001814481569454074, -0.04726417735219002, 0.03533283993601799, -0.06400177627801895, -0.013635353185236454, 0.05036810413002968, 0.0005909602041356266, -0.001380797242745757, 0.0287453755736351, -0.044436726719141006, 0.03627368062734604, 0.041548773646354675, -0.020125657320022583, -0.03523362800478935, -0.013645881786942482, 0.06045714393258095, 0.022133328020572662, 0.037331268191337585, -0.02657357230782509, -0.01402509119361639, 0.0797550231218338, 0.009254703298211098, -0.013116707094013691, 0.044915150851011276, -0.042717430740594864, 0.04210048168897629, -0.014776306226849556, -0.013797551393508911, 0.014009185135364532, 0.030395593494176865, -0.030645303428173065, -0.04357890412211418, 0.013022657483816147, 0.021345781162381172, -0.02882792055606842, -0.06818070262670517, 0.054177429527044296, -0.0027048566844314337, -0.024877985939383507, -0.05771084129810333, -0.01067144051194191, -0.04120895266532898, -0.005568516906350851, -0.02813967503607273, 0.002352897310629487, -0.04151853919029236, 0.06906924396753311, 0.0015444494783878326, 0.031148459762334824, 0.06173183396458626, 0.003685134695842862, 0.013820403255522251, -0.02089984342455864, 0.07268822938203812, 0.09726089984178543, 0.015941252931952477, 0.01751178503036499, 0.06821580976247787, -0.01783876307308674, -0.04759247601032257, -0.017924124374985695, -0.03734602779150009, -0.012274152599275112, -0.06728406995534897, -0.018054958432912827, 0.09295759350061417, 0.015774764120578766, 0.03910498321056366, -0.00845537893474102, -0.016172505915164948, -0.005547021981328726, 0.010811390355229378, 0.048916783183813095, 0.025760561227798462, 0.017916860058903694, 0.0075788237154483795, -0.0026436003390699625, -0.015586883760988712, 0.05125508829951286, -0.0030505333561450243, -0.03836226463317871, 0.021634723991155624, 0.008533606305718422, 0.019158978015184402, 0.03220624104142189, 0.04950045421719551, 0.06205455958843231, -0.016575872898101807, 0.013851500116288662, -0.017193347215652466, 0.04359246790409088, 0.01913931407034397, 0.036375757306814194, -0.00977578666061163, -0.01496072206646204, -0.015370353125035763, -0.031335268169641495, -0.007197387050837278, -0.030701490119099617, -0.008061949163675308, 0.05769211798906326, -0.020348738878965378, -0.005237146746367216, 0.020677044987678528, 0.002239135792478919, -0.02000700868666172, -0.04517568275332451, -0.05073503032326698, -0.011823402717709541, -0.05121545121073723, -0.02206766977906227, 0.017782729119062424, -0.03392518684267998, -0.03502744436264038, -0.013355281203985214, -0.006463238969445229, -0.02753347158432007, -0.0010130387963727117, -0.04751384258270264, -0.054200123995542526, 0.006528034806251526, 0.02418297715485096, 0.027578936889767647, 0.04326228052377701, 0.051873695105314255, -0.014190781861543655, -0.040846750140190125, -0.034946706146001816, 0.015963084995746613, 0.0474502332508564, 0.013115152716636658, 0.04386809840798378, -0.05789495259523392, 0.04107510298490524, -0.0012192816939204931, 0.007746863178908825, -0.05973385274410248, 0.0411720871925354, 0.029792441055178642, -0.009494803845882416, 0.07154302299022675, -0.00008053157216636464, 0.007832659408450127, -0.04269728809595108, -0.0354655385017395, -0.0018084751209244132, -0.0029790368862450123, 0.04134653881192207, -0.036173850297927856, 0.07038778811693192, 0.02855292148888111, -0.011953082866966724, -0.036463744938373566, -0.009261015802621841, 0.012851377949118614, 0.015952972695231438, -0.017933456227183342, -0.05923027917742729, -0.0387176051735878, -0.08969888836145401, -0.06179560348391533, 0.01618308201432228, -0.025775384157896042, -0.02921961061656475, 0.002178320661187172, 0.0006422948790714145, -0.0575779490172863, 0.017114421352744102, -0.05579180642962456, 0.007958978414535522, -0.00959753803908825, -0.024184800684452057, -0.011089527048170567, 0.02880837395787239, 0.00887623243033886, -0.009648785926401615, 0.01697089709341526, -0.031391020864248276, -0.00274550705216825, -0.04578539729118347, 0.020670942962169647, 0.04502665624022484, 0.00031359438435174525, 0.015324963256716728 ]
[ -0.0602380596101284, -0.043330658227205276, -0.031543243676424026, -0.034818027168512344, 0.04702732339501381, -0.061285898089408875, -0.052986990660429, -0.03236290439963341, -0.007165355142205954, -0.030412405729293823, -0.0062801712192595005, -0.0004832016711588949, -0.0012411674251779914, -0.048790886998176575, 0.07875152677297592, 0.003364030970260501, -0.03254460170865059, -0.05036327242851257, -0.02058795467019081, 0.06391391903162003, -0.012713235802948475, -0.0013799660373479128, -0.020967019721865654, -0.049505095928907394, 0.010618654079735279, 0.06546146422624588, 0.04673660174012184, -0.055477675050497055, -0.008249360136687756, -0.19798113405704498, 0.009253669530153275, -0.018567312508821487, 0.044464752078056335, -0.030660606920719147, 0.03097209706902504, 0.019412633031606674, 0.05645488575100899, 0.013022647239267826, 0.02265382930636406, 0.037008218467235565, 0.011515878140926361, 0.025675451382994652, -0.044091228395700455, -0.03495929017663002, 0.019776906818151474, -0.013429386541247368, -0.00929725170135498, -0.002265252871438861, 0.015217886306345463, 0.005017134360969067, -0.06692063808441162, 0.023168716579675674, -0.023051012307405472, -0.0163730438798666, 0.001674023224040866, 0.04420521855354309, 0.014111284166574478, 0.04186165705323219, -0.006692452821880579, -0.012253955006599426, 0.026599515229463577, 0.0097433403134346, -0.11676499247550964, 0.146993950009346, 0.04772935062646866, 0.06432922929525375, -0.0025981771759688854, -0.013637817464768887, -0.002514586551114917, 0.04419717565178871, -0.028355123475193977, -0.036263249814510345, -0.01625898666679859, 0.052540577948093414, 0.01657543145120144, -0.06991230696439743, -0.0290677510201931, -0.011624774895608425, 0.03574026748538017, -0.01981445401906967, -0.055946771055459976, -0.04177575930953026, -0.01650143228471279, -0.034911204129457474, -0.007262001279741526, 0.025213666260242462, -0.047945812344551086, 0.04148543253540993, 0.0020230684895068407, 0.004062135238200426, 0.023957261815667152, -0.021778013557195663, 0.06587979942560196, 0.0013288917252793908, -0.06712918728590012, 0.015432260930538177, -0.030048465356230736, 0.01211897749453783, -0.028679845854640007, 0.40166011452674866, -0.03382065147161484, -0.02423739619553089, -0.0030670794658362865, 0.0019107655389234424, -0.01693679951131344, -0.05236789211630821, 0.019474586471915245, -0.02052820473909378, 0.01423573587089777, -0.010069909505546093, 0.00324395508505404, -0.014912066981196404, 0.029825003817677498, -0.08321567624807358, -0.008810549043118954, -0.020962586626410484, -0.005946219898760319, -0.013752685859799385, -0.00291640916839242, -0.01752573437988758, -0.017893362790346146, 0.006522583309561014, 0.03920993208885193, -0.005692729260772467, 0.015064106322824955, 0.025139445438981056, 0.0015301434323191643, 0.06557635962963104, 0.08851117640733719, 0.03015495091676712, -0.00040094571886584163, -0.03891127556562424, -0.051691047847270966, -0.025227222591638565, -0.003652754472568631, 0.021852247416973114, 0.028903035447001457, -0.015836438164114952, -0.002265132265165448, 0.01895006187260151, -0.006378909107297659, -0.0693143755197525, 0.029005877673625946, -0.0020557669922709465, -0.046363648027181625, 0.10546723753213882, -0.008814497850835323, 0.01764111965894699, -0.03560740500688553, -0.03219139203429222, -0.020345933735370636, 0.028305036947131157, -0.018389692530035973, -0.01829744502902031, -0.03830193355679512, 0.023755285888910294, 0.041544392704963684, 0.0036405178252607584, -0.03526974096894264, -0.04104485735297203, -0.008895350620150566, -0.0629604235291481, -0.03150350600481033, 0.034108489751815796, -0.004710468929260969, -0.13100150227546692, -0.044172633439302444, 0.005315227899700403, -0.025541653856635094, -0.06074998155236244, 0.018055081367492676, 0.024035800248384476, -0.04119846969842911, 0.038389574736356735, 0.04200848191976547, -0.019543830305337906, -0.0027523066382855177, 0.025358470156788826, 0.049391623586416245, 0.022449763491749763, -0.007802154868841171, 0.008292444050312042, 0.00869091134518385, -0.014082714915275574, 0.02709715999662876, -0.07682982832193375, -0.02897954173386097, -0.0002952578943222761, -0.0021256706677377224, -0.04200129956007004, -0.023485813289880753, -0.03748654946684837, -0.051167480647563934, 0.024529311805963516, -0.00992235355079174, -0.00043349547195248306, 0.06702175736427307, 0.00288598146289587, 0.04212489724159241, -0.04642248898744583, 0.03238114342093468, 0.01764112524688244, -0.008716597221791744, 0.048381902277469635, -0.03384523466229439, 0.02320472151041031, 0.0477202944457531, -0.0371776819229126, 0.05315087363123894, -0.00657533248886466, -0.08892949670553207, 0.03457561135292053, 0.007066600956022739, -0.013296200893819332, 0.01619751565158367, -0.01750568114221096, 0.0017201951704919338, 0.011523796245455742, 0.03394594043493271, 0.07197676599025726, -0.04669131711125374, -0.05806976184248924, -0.05114639922976494, -0.3462796211242676, -0.0030893664807081223, 0.001483693951740861, -0.004796340595930815, -0.05921307951211929, -0.06638487428426743, -0.0007461353088729084, -0.02640494331717491, -0.0015642554499208927, 0.07124080508947372, 0.1118694469332695, -0.016771290451288223, 0.019224785268306732, -0.07420007884502411, -0.044274795800447464, 0.03985406830906868, -0.005237082485109568, -0.017360806465148926, -0.03547026216983795, 0.023182814940810204, 0.051628462970256805, -0.009080376476049423, -0.06813602894544601, -0.08225942403078079, 0.0420808270573616, -0.02208813838660717, 0.09683185815811157, 0.012584736570715904, 0.04072975739836693, -0.07984597235918045, 0.08964647352695465, 0.06493225693702698, 0.007408487144857645, -0.05993492901325226, -0.012755023315548897, -0.025737779214978218, -0.010936949402093887, -0.005693973507732153, -0.0029431150760501623, 0.017496297135949135, -0.1052624061703682, 0.034864235669374466, -0.029624344781041145, -0.07222873717546463, 0.024596519768238068, -0.020954381674528122, 0.006165091414004564, -0.01666082628071308, -0.00900119449943304, 0.0634709894657135, 0.02900232933461666, 0.004881082568317652, 0.023460160940885544, 0.03327332064509392, -0.011563284322619438, -0.007785822730511427, -0.017217157408595085, -0.03058318793773651, -0.0020761697087436914, -0.014193092472851276, 0.02932341769337654, 0.04093341529369354, 0.05663113668560982, -0.03335510566830635, -0.020149974152445793, 0.011271744035184383, -0.012419777922332287, 0.05039632320404053, 0.06865549832582474, -0.021483968943357468, -0.04672829806804657, 0.04993534833192825, 0.008915870450437069, 0.06753471493721008, 0.05083496868610382, 0.05405284836888313, 0.0032078581862151623, 0.028576472774147987, -0.0003556429874151945, -0.006393072661012411, 0.014007357880473137, 0.030415698885917664, 0.07800740003585815, -0.026414904743433, 0.031897857785224915, 0.06126140058040619, 0.010452833026647568, -0.01550158578902483, 0.03328835591673851, -0.0028727881144732237, -0.005490074399858713, -0.02621157094836235, -0.026565756648778915, -0.058026380836963654, 0.035244863480329514, 0.006080607883632183, -0.2525825500488281, 0.026938242837786674, 0.0552000030875206, 0.03984912857413292, 0.032411158084869385, 0.03213624656200409, 0.023988671600818634, -0.04657458886504173, 0.0037619906943291426, -0.001964540919288993, -0.0015392698114737868, 0.04326724261045456, 0.03643399477005005, -0.02683914080262184, 0.03515169024467468, -0.02096446417272091, 0.029840832576155663, 0.05768710374832153, 0.01805838569998741, -0.01534655224531889, 0.024821188300848007, -0.02400905080139637, 0.1926138997077942, 0.04649664834141731, -0.008123026229441166, -0.017820850014686584, 0.04883718118071556, -0.00912066176533699, 0.06357161700725555, 0.031008481979370117, 0.027371026575565338, -0.010222152806818485, 0.0783533975481987, 0.018214980140328407, 0.07979486137628555, -0.014397872611880302, -0.03480278328061104, 0.05980006977915764, -0.022383563220500946, -0.03974264860153198, -0.022138508036732674, 0.057113900780677795, -0.04678310081362724, 0.03618275374174118, 0.033975809812545776, -0.05630907043814659, -0.021511884406208992, -0.05233240872621536, -0.008183963596820831, 0.026652533560991287, -0.015547466464340687, -0.06758397817611694, 0.003836945164948702, -0.0441790409386158, -0.014940348453819752, 0.04716232419013977, 0.040181759744882584, 0.03656541556119919, 0.012531744316220284, 0.0372963510453701, 0.0397459976375103, -0.037509817630052567, 0.05869714170694351, 0.026030974462628365, 0.025511853396892548 ]
[ -0.027311358600854874, 0.018331915140151978, -0.03467831760644913, 0.023260198533535004, 0.018431471660733223, -0.013877003453671932, 0.010357243940234184, 0.010581569746136665, -0.029592381790280342, -0.019513476639986038, -0.018639588728547096, -0.005205102264881134, 0.036271654069423676, -0.03569955751299858, 0.021832311525940895, 0.001953008701093495, -0.032096900045871735, -0.005953678861260414, 0.033864639699459076, 0.019224289804697037, -0.0196069423109293, 0.017550425603985786, 0.023638954386115074, 0.004669487942010164, -0.007901378907263279, 0.02640952728688717, -0.048248808830976486, 0.010942669585347176, 0.009455516934394836, -0.13337936997413635, -0.021133825182914734, -0.018738357350230217, 0.0015818739775568247, -0.001558299525640905, 0.015866750851273537, 0.03180566430091858, 0.03162885084748268, 0.011990065686404705, 0.007876433432102203, -0.003127795411273837, 0.014854557812213898, -0.025138067081570625, -0.012977762147784233, -0.036011938005685806, -0.005315542221069336, -0.03766730800271034, -0.05404357984662056, -0.00821120385080576, -0.030449796468019485, 0.029459519311785698, -0.05722009763121605, 0.01711663231253624, -0.008152466267347336, 0.007098009809851646, 0.038781240582466125, -0.008335010148584843, -0.02171984501183033, 0.02947320230305195, 0.00278477999381721, 0.011075278744101524, -0.00012978479207959026, 0.002014677971601486, -0.060517318546772, -0.014330033212900162, -0.00923250988125801, -0.03166782110929489, -0.03901781514286995, -0.0012297843350097537, 0.005729378201067448, -0.01629079319536686, -0.002152572153136134, -0.002497537527233362, -0.02261020615696907, -0.012871311977505684, -0.045167870819568634, -0.001762055791914463, 0.022928748279809952, -0.02811608277261257, 0.012842593714594841, 0.02299484983086586, -0.03698888421058655, 0.0010715401731431484, -0.006377203390002251, 0.010320506058633327, 0.006371966563165188, -0.0041315737180411816, 0.0006315006758086383, 0.0016597307985648513, 0.00642399163916707, -0.015122869051992893, 0.009714669547975063, -0.024411195889115334, 0.0050092642195522785, 0.056328076869249344, -0.06547924131155014, -0.019946731626987457, -0.015364985913038254, -0.02862018160521984, -0.014193608425557613, 0.8532276153564453, -0.003573976457118988, 0.04250338673591614, 0.034205760806798935, 0.0009850660571828485, -0.0012269795406609774, -0.03652287274599075, -0.0014988043112680316, 0.0060970173217356205, -0.02105039544403553, -0.02270137332379818, 0.03415839001536369, 0.015024387277662754, 0.026998702436685562, -0.019373508170247078, 0.008441112004220486, 0.021391665562987328, -0.009516065940260887, -0.02198944054543972, -0.0008118494297377765, 0.030073948204517365, 0.04323091357946396, -0.009816008619964123, 0.012133374810218811, 0.030235113576054573, 0.03743424639105797, -0.17568250000476837, 0.018468152731657028, -7.206103631487099e-33, 0.0277393851429224, -0.03758610039949417, 0.018712598830461502, -0.02162761613726616, 0.033969007432460785, -0.009451169520616531, -0.007668137550354004, 0.009049545973539352, -0.00859479047358036, -0.017818907275795937, 0.032929591834545135, -0.013910339213907719, -0.018325824290513992, -0.011097468435764313, 0.014238599687814713, -0.012403629720211029, 0.016268480569124222, 0.04464036598801613, 0.007426833733916283, 0.03289998322725296, 0.024394165724515915, 0.05682576820254326, 0.038102250546216965, 0.019921045750379562, -0.0016780432779341936, 0.022838490083813667, 0.01637699455022812, 0.0031458325684070587, -0.02127794176340103, -0.02718394063413143, -0.022964468225836754, -0.009874305687844753, -0.00815005786716938, -0.017345372587442398, 0.0030322372913360596, -0.05805923417210579, -0.01583949290215969, -0.01102366391569376, -0.021920667961239815, 0.03383735939860344, -0.02107589691877365, -0.013828285969793797, -0.0051387641578912735, -0.014663885347545147, -0.008548064157366753, 0.014002793468534946, 0.022751381620764732, -0.0143975168466568, -0.019359417259693146, 0.011840258724987507, 0.02479354292154312, -0.009226159192621708, -0.00402658199891448, 0.025850260630249977, 0.004144665785133839, 0.009706991724669933, 0.006889987736940384, -0.005969583988189697, 0.029325909912586212, 0.004904116503894329, -0.013125627301633358, -0.02130155637860298, 0.017212558537721634, -0.0019649758469313383, 0.008549782447516918, -0.0264351274818182, 0.012285412289202213, 0.0026791158597916365, -0.0016019742470234632, 0.03857867792248726, -0.011066453531384468, 0.0072069596499204636, 0.014654288999736309, -0.04870458319783211, 0.0310256015509367, -0.02141844667494297, -0.008734273724257946, 0.03545067086815834, 0.04419368505477905, 0.030089234933257103, 0.05468495190143585, -0.008027913980185986, -0.04497789964079857, -0.01992012746632099, -0.03942425921559334, -0.00970019306987524, 0.0146997831761837, 0.013748575933277607, -0.038033392280340195, -0.010432742536067963, 0.029206987470388412, 0.05440976470708847, -0.009923482313752174, -0.06494038552045822, -0.04809653386473656, 7.03026437028347e-33, 0.02899591252207756, 0.008615110069513321, -0.004516719374805689, -0.008948705159127712, 0.013875989243388176, 0.0014266197104007006, 0.026263786479830742, 0.014111113734543324, -0.012233939953148365, 0.04667762294411659, -0.03761730343103409, 0.01275679562240839, -0.012783261016011238, 0.0038628492038697004, 0.05098613724112511, 0.0173804871737957, 0.027240576222538948, -0.00022821835591457784, 0.004038635641336441, -0.005102940835058689, 0.0011214067926630378, 0.0025642921682447195, 0.005961172748357058, 0.05890469253063202, 0.030196528881788254, 0.008087133057415485, -0.029794448986649513, 0.004293973091989756, -0.002896539866924286, 0.006805302109569311, -0.00640993844717741, -0.026763366535305977, -0.0033751321025192738, 0.004647244233638048, -0.014029338024556637, 0.04724549129605293, -0.010198022238910198, 0.005743599031120539, 0.026519011706113815, -0.017229657620191574, 0.0417938269674778, -0.0062491693533957005, 0.007493874523788691, 0.026665547862648964, 0.005804501939564943, -0.014822661876678467, -0.010924341157078743, 0.016099784523248672, -0.009899749420583248, -0.0014997032703831792, -0.010875370353460312, 0.019891053438186646, 0.023757794871926308, 0.01231809426099062, 0.0037677930667996407, -0.028461216017603874, -0.03993915766477585, 0.016406185925006866, -0.015852199867367744, -0.010534330271184444, -0.03165217489004135, -0.012483356520533562, -0.03594360128045082, 0.017822599038481712, -0.02158978022634983, -0.021154683083295822, -0.034183938056230545, -0.034343041479587555, -0.010509670712053776, 0.00664953887462616, -0.002003852277994156, 0.0008357872138731182, 0.010706578381359577, 0.008579033426940441, 0.014433665201067924, -0.010491851717233658, -0.033794716000556946, 0.007733653765171766, -0.0003004774043802172, 0.03744632005691528, 0.029422808438539505, 0.0011725290678441525, 0.017136983573436737, -0.0029967245645821095, -0.004197732545435429, 0.017467135563492775, -0.034702666103839874, 0.010481683537364006, 0.02894582971930504, -0.02713102288544178, 0.0014402569504454732, -0.03869154676795006, -0.010579880326986313, 0.0031464938074350357, 0.000013275840501592029, -1.2734644450063115e-8, -0.01479226816445589, -0.03360607475042343, -0.018198447301983833, 0.028098592534661293, 0.035017773509025574, 0.000013044827028352302, -0.035884689539670944, -0.0002701590128708631, 0.007365993689745665, 0.022001929581165314, 0.06318847090005875, 0.016485484316945076, 0.004371315240859985, 0.026127686724066734, 0.01016333419829607, -0.05519716441631317, 0.017574217170476913, -0.004235721658915281, 0.01923646591603756, 0.00746734905987978, 0.02314447984099388, 0.05662691965699196, 0.007307674735784531, -0.014326706528663635, 0.008023803122341633, 0.022168343886733055, -0.00374279054813087, -0.06525733321905136, -0.01815853640437126, 0.014046384021639824, 0.02546309307217598, -0.026926305145025253, -0.05894501879811287, 0.003352478379383683, -0.0280131958425045, -0.05219113081693649, 0.06710969656705856, 0.028232242912054062, 0.008689605630934238, -0.007285455707460642, -0.0024708341807127, -0.014673297293484211, -0.023437123745679855, -0.0251658633351326, -0.05860783904790878, -0.013938567601144314, -0.039829012006521225, 0.02550859935581684, 0.014972892589867115, -0.025264116004109383, 0.02202768623828888, -0.01077110692858696, -0.0052934084087610245, 0.007220279425382614, 0.01036201510578394, -0.019431980326771736, 0.010344592854380608, -0.0016928951954469085, 0.013705996796488762, 0.02185193821787834, 0.020793277770280838, 0.018709903582930565, 0.0032830426935106516, -0.014447827823460102 ]
clickhouse-unpack-unnest-array
https://markhneedham.com/blog/2023/07/03/clickhouse-unpack-unnest-array
false
2023-07-20 04:44:37
Docker: Failed to create network: Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
[ "docker", "til" ]
[ "TIL" ]
:icons: font I use Docker for pretty much every demo I create and this sometimes results in me running out of IP addresses to serve all those networks. In this blog post, we'll learn how to diagnose and solve this issue. Our story starts with the following command on a new project: [source, bash] ---- docker compose up ---- Usually this purs along nicely and all our components spin up just fine, but today is not our lucky day and we get the following error: [source, bash] ---- [+] Building 0.0s (0/0) [+] Running 1/0 ✘ Network avro-ingestion Error 0.0s failed to create network avro-ingestion: Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network ---- Hmmm, we're out of IPv4 addresses, that doesn't sound too good! We can run the following command to check how many networks we have: [source, bash] ---- docker network ls ---- I get the following results when running it right now: .Output [source, bash] ---- NETWORK ID NAME DRIVER SCOPE 49a68a4670a5 avro-ingestion bridge local 286c2a9ed537 bridge bridge local e3d97260204b filtering bridge local ... 8ef1a57d8df2 stock-upserts bridge local a86781534e85 traffic-upserts bridge local ---- If you see a lot of results then it's probably the case that, like me, you've run out of local IP addresses to assign to new networks. You can also run the following script to check which of these networks are in use by running containers: [source, bash] ---- for network in $(docker network ls --format "{{.Name}}"); do container_names=$(docker network inspect $network | jq -r '.[] | .Containers[] | .Name' ) echo "$network:" if [ -z "$container_names" ]; then echo -e "\tNo containers" else while IFS= read -r line do echo -e "\t$line" done <<< "$container_names" fi done ---- If I run this, I see the following (truncated) output: .Output [source, text] ---- avro-ingestion: No containers bridge: No containers filtering: No containers ... traffic-upserts: zookeeper-traffic-upserts pinot-controller-traffic-upserts pinot-broker-traffic-upserts pinot-server-traffic-upserts kafka-traffic-upserts ---- It's very likely that nearly all our your networks won't have any running containers, in which case you can prune them using the following command: [source, bash] ---- docker network prune ---- You'll see the following output as it iterates through all the networks that aren't currently in use: [source, text] ---- Deleted Networks: avro-ingestion filtering ... traffic-upserts ---- And now you should be able to create a new network. If this doesn't solve the problem, check out this https://stackoverflow.com/questions/43720339/docker-error-could-not-find-an-available-non-overlapping-ipv4-address-pool-am[StackOverflow^] thread for some other things to try.
In this post, we're going to learn how to deal with a Docker error when we've run out of IP addresses.
uploads/2023/07/docker-network-banner.png
[ -0.020894067361950874, -0.00662898039445281, -0.0037841403391212225, 0.004541072528809309, 0.07750029116868973, 0.044003549963235855, -0.0037054962012916803, 0.050865963101387024, -0.04875000938773155, -0.04476755112409592, 0.0228103119879961, -0.002512202598154545, -0.07971814274787903, 0.031219935044646263, -0.00015501875896006823, 0.051006998866796494, 0.10071302205324173, 0.01079248171299696, 0.0022284979932010174, 0.024870816618204117, 0.00402516545727849, 0.05070428550243378, -0.014146922156214714, 0.04256609454751015, 0.00032063620164990425, 0.0038928932044655085, -0.002281374530866742, 0.003807902568951249, -0.0636814758181572, -0.024840950965881348, 0.04147091880440712, -0.010599923320114613, 0.029116932302713394, -0.011967605911195278, 0.008234189823269844, -0.01735774427652359, -0.005668663419783115, -0.015458744950592518, -0.008010659366846085, 0.021975820884108543, -0.08939018100500107, -0.0023574475198984146, -0.003977030515670776, -0.008042708039283752, -0.009760158136487007, 0.011474932543933392, -0.05687903240323067, -0.006107344292104244, 0.034569669514894485, 0.011649062857031822, -0.08820398896932602, 0.030750591307878494, -0.055513449013233185, 0.0007831768598407507, 0.02195034548640251, 0.025189774110913277, 0.03306809440255165, -0.10444147139787674, 0.021139560267329216, -0.041633427143096924, -0.0007596895447932184, 0.006050207652151585, 0.04036568105220795, 0.02207660861313343, 0.010301688686013222, 0.0012096563586965203, -0.0028806026093661785, 0.0363873727619648, -0.04421771690249443, 0.0027834426146000624, -0.010135733522474766, 0.016018129885196686, -0.04015635326504707, -0.03995829448103905, 0.04005586728453636, -0.03482484817504883, -0.02467525750398636, 0.016013935208320618, 0.05223991349339485, 0.06911466270685196, -0.03765314817428589, -0.007838158868253231, 0.02339998073875904, 0.026542648673057556, 0.03606390580534935, -0.042936790734529495, -0.03914763778448105, 0.006430643144994974, -0.06391575187444687, 0.0441049300134182, 0.07145293056964874, -0.019878238439559937, 0.006938619073480368, 0.007408204022794962, 0.013745796866714954, 0.00018360899412073195, -0.01191217452287674, 0.018838267773389816, 0.016962628811597824, 0.0034346815664321184, -0.025767240673303604, 0.016414755955338478, -0.0008968899492174387, 0.036201123148202896, -0.06886673718690872, 0.002734155859798193, -0.024754522368311882, -0.005895706824958324, -0.005032064393162727, -0.0023744720965623856, -0.011652855202555656, 0.03434091433882713, 0.0026794164441525936, 0.0011210317024961114, -0.08829838782548904, 0.08592779189348221, 0.020048493519425392, -0.024897143244743347, 0.012548884376883507, 0.01385780144482851, 0.015401012264192104, 0.036430880427360535, -0.017984796315431595, 0.058930184692144394, -0.020168142393231392, 0.021425502374768257, -0.024361098185181618, 0.049351971596479416, -0.038747638463974, -0.05500712990760803, -0.020336953923106194, 0.054012641310691833, 0.021197915077209473, 0.04589511826634407, -0.017486335709691048, -0.022134631872177124, -0.02213326096534729, -0.0068428656086325645, 0.0587279349565506, -0.005062524229288101, -0.030819972977042198, -0.023302417248487473, 0.024520935490727425, 0.012159609235823154, 0.03585817292332649, 0.023185260593891144, 0.02887309156358242, -0.06218641251325607, -0.016019750386476517, 0.03173809126019478, 0.01019648090004921, 0.02892266772687435, 0.053598999977111816, -0.030060693621635437, -0.00263806851580739, 0.06320559978485107, 0.03833642229437828, 0.030459482222795486, -0.03527851030230522, 0.016496893018484116, 0.012391394935548306, 0.003303279634565115, 0.01277285534888506, 0.05624479055404663, 0.01801595464348793, -0.04398529604077339, -0.02904694713652134, 0.05504957586526871, 0.00016517161566298455, -0.010294335894286633, -0.034537699073553085, -0.09036073088645935, 0.07645689696073532, -0.03946208953857422, 0.025626765564084053, 0.001797890174202621, 0.06727820634841919, 0.04525935649871826, 0.01998288556933403, 0.030734576284885406, -0.08908520638942719, 0.046544093638658524, -0.01799715869128704, 0.022493066266179085, 0.018526585772633553, -0.008606651797890663, 0.05982758849859238, 0.03509729728102684, 0.02448015846312046, 0.057887349277734756, -0.05263398960232735, -0.08122657239437103, -0.015146421268582344, 0.015070070512592793, 0.018105803057551384, -0.047008391469717026, -0.07245435565710068, 0.028827758505940437, 0.035760872066020966, 0.025585783645510674, -0.0025412568356841803, 0.01634683646261692, 0.02035902999341488, -0.06673897057771683, -0.07867901027202606, 0.04609261825680733, 0.012799389660358429, -0.01542703341692686, -0.05831180512905121, 0.012820198200643063, -0.03874574974179268, -0.03504354879260063, 0.016849106177687645, -0.024304451420903206, 0.06368745118379593, 0.0012530498206615448, 0.017144737765192986, -0.02895369380712509, 0.035815782845020294, -0.037390079349279404, 0.010374092496931553, -0.003701835172250867, -0.00879601575434208, 0.022782405838370323, 0.010500974953174591, 0.10751616954803467, 0.053135570138692856, -0.012217285111546516, -0.05068464204668999, 0.0368773452937603, 0.03126488998532295, -0.02545250952243805, -0.012790011242032051, -0.0246437955647707, -0.003714979626238346, 0.03153189644217491, -0.013741321861743927, -0.04125550016760826, 0.014995217323303223, -0.016122404485940933, -0.007974102161824703, 0.05447551608085632, -0.01939375139772892, 0.05064696818590164, 0.031850747764110565, -0.026135986670851707, 0.005111473612487316, -0.06740876287221909, -0.06104166805744171, -0.016034312546253204, 0.04129985347390175, -0.012167060747742653, 0.023626256734132767, -0.045539066195487976, -0.005084522068500519, -0.07143261283636093, -0.021493960171937943, 0.0374995619058609, 0.023535490036010742, 0.06685294210910797, -0.05400160700082779, 0.056917328387498856, -0.013676431030035019, 0.022180741652846336, -0.02547471784055233, -0.03452075645327568, -0.020699413493275642, 0.02616717480123043, 0.013076802715659142, -0.013712193816900253, 0.033755701035261154, -0.0009844301966950297, 0.0037311147898435593, -0.03769226372241974, 0.013165424577891827, -0.015116721391677856, 0.011931201443076134, -0.00004987852298654616, 0.023851415142416954, -0.03473582863807678, -0.004844236187636852, 0.047403816133737564, -0.06112203747034073, -0.012405889108777046, 0.013882817700505257, -0.08107175678014755, 0.02462354488670826, -0.05362963303923607, -0.037282515317201614, -0.04356284439563751, 0.03003004752099514, 0.00028779145213775337, -0.004011414013803005, 0.008806884288787842, 0.04851797595620155, 0.07056280970573425, 0.0024841693229973316, 0.03508098050951958, 0.006060002371668816, 0.026478951796889305, 0.0005369914579205215, 0.01410790253430605, 0.024712199345231056, -0.01163210067898035, -0.02369040995836258, -0.053636617958545685, 0.013631046749651432, -0.03325079753994942, -0.25401440262794495, 0.03349415957927704, -0.015475782565772533, -0.023180726915597916, 0.011760088615119457, -0.020875919610261917, 0.02202005125582218, -0.030433231964707375, -0.004293093457818031, 0.02153407409787178, -0.05762549862265587, -0.05227770283818245, 0.0117954658344388, 0.02273615449666977, -0.024551955983042717, 0.02463858760893345, 0.032676633447408676, -0.047047216445207596, 0.024746673181653023, -0.012239825911819935, -0.0026693108957260847, -0.05363955348730087, 0.00861432682722807, 0.04855658859014511, -0.010324519127607346, 0.07016997039318085, -0.044549837708473206, 0.035844892263412476, -0.05020436644554138, 0.003181563224643469, -0.015820980072021484, -0.00047372261178679764, -0.01371228601783514, -0.0020553816575556993, -0.04146885871887207, 0.006344506051391363, 0.017318405210971832, -0.03479698300361633, 0.027253378182649612, -0.011740393005311489, -0.038980938494205475, -0.03937026858329773, -0.003084898693487048, -0.029439272359013557, 0.06527064740657806, -0.010698363184928894, -0.0755327045917511, -0.009831907227635384, -0.038996826857328415, 0.07062242925167084, -0.052237484604120255, -0.01863468624651432, -0.006337263155728579, 0.021953800693154335, -0.018383881077170372, -0.0015556273283436894, -0.0373205728828907, 0.0036143208853900433, -0.049996379762887955, -0.026962513104081154, 0.004318230785429478, -0.026397690176963806, -0.03199276328086853, -0.05912253260612488, 0.006680939346551895, -0.052212368696928024, -0.03606070950627327, -0.03403812646865845, 0.08294697105884552, 0.023677119985222816, -0.04270331561565399, 0.0009518808801658452, -0.03478376194834709, -0.0990830659866333, 0.0012251598527655005, 0.0007255940581671894, -0.07199965417385101, 0.007573921233415604, -0.023899080231785774, 0.042336948215961456, -0.0385001003742218, -0.03262917697429657, 0.010431312955915928, 0.02188856527209282, -0.007777829188853502, -0.02148347534239292, 0.026858726516366005, -0.005594441667199135, -0.020560704171657562, 0.0006175806047394872, 0.049563709646463394, -0.010156110860407352, -0.008938897401094437, -0.028167402371764183, -0.02150709740817547, 0.0277581587433815, 0.004624249879270792, 0.03787832334637642, 0.027300769463181496, 0.05064767226576805, 0.05679100379347801, -0.05909823626279831, -0.024235306307673454, -0.04345490783452988, -0.03070128709077835, 0.009534760378301144, -0.035087209194898605, 0.03438112139701843, 0.016123473644256592, 0.005637819878757, 0.01612323336303234, -0.06279061734676361, 0.02016742154955864, -0.07386445254087448, 0.003356069326400757, -0.006500165443867445, 0.021848078817129135, 0.06587439030408859, 0.041346654295921326, 0.003033651504665613, -0.04911856725811958, 0.04549841955304146, 0.04085934907197952, -0.01264385785907507, -0.02859393320977688, -0.036143749952316284, -0.0031579015776515007, -0.010444922372698784, 0.030425015836954117, 0.022602887824177742, 0.002771456493064761, 0.046791236847639084, 0.036554861813783646, -0.04254809394478798, 0.018147021532058716, -0.03281737118959427, -0.02712154947221279, -0.03433604538440704, -0.007592816837131977, 0.01608838513493538, -0.032982103526592255, 0.01411682739853859, -0.0038099363446235657, 0.031070547178387642, 0.03485807403922081, 0.02794182114303112, 0.03339238092303276, -0.02418503910303116, 0.01372248213738203, 0.02337353490293026, 0.012553904205560684, -0.03711045905947685, 0.0008440609090030193, -0.016942327842116356, -0.00028468025266192853, -0.0037885273341089487, 0.03186066821217537, -0.03177483752369881, -0.046201303601264954, -0.0326060950756073, 0.017186464741826057, -0.0681726261973381, -0.01868259161710739, 0.015600436367094517, -0.02334844134747982, 0.05999530479311943, 0.00014674171688966453, -0.0015812688507139683, 0.007307831197977066, -0.0038701409939676523, 0.0064160809852182865, 0.017726486548781395, -0.015916848555207253, 0.023123273625969887, -0.0004536919586826116, -0.019553283229470253, 0.0041629658080637455, 0.033358752727508545, 0.05248009040951729, 0.016303181648254395, 0.009982726536691189, -0.007907168939709663, 0.023715440183877945, 0.04027421772480011, 0.0416136160492897, 0.011192233301699162, -0.024426329880952835, -0.013499128632247448, -0.006734782829880714, -0.02095472253859043, -0.024601677432656288, 0.01059167180210352, 0.0036502606235444546, -0.0028450218960642815, -0.029489263892173767, -0.03866249695420265, 0.02817174792289734, 0.023160913959145546, 0.02162124775350094, 0.029900144785642624, -0.01601487211883068, 0.009678781032562256, -0.06069491431117058, 0.011816253885626793, 0.0764126256108284, -0.04165387898683548, -0.015419840812683105, 0.007399986498057842, -0.004896156489849091, 0.020601138472557068, 0.046266477555036545, -0.05404377356171608, -0.01896248385310173, 0.002971681533381343, 0.02969272993505001, -0.03419968858361244, -0.03916443884372711, -0.01902339607477188, 0.0293576680123806, -0.018587561324238777, 0.01726013980805874, -0.00522499717772007, -0.012380940839648247, -0.02693985588848591, -0.03722454607486725, 0.03513393923640251, -0.020609736442565918, -0.008471210487186909, 0.02542050927877426, 0.014656548388302326, 0.01987418718636036, -0.030872266739606857, 0.048480138182640076, 0.01282181590795517, -0.00445799995213747, -0.021485930308699608, -0.02627115696668625, -0.01795174367725849, -0.028429951518774033, 0.03374237194657326, 0.006555459927767515, 0.002755291759967804, -0.07189255952835083, 0.0019069635309278965, -0.019157391041517258, 0.00808807834982872, 0.018831107765436172, -0.011360042728483677, 0.03762153163552284, 0.03687164932489395, 0.01090957410633564, 0.01871751807630062, -0.013463768176734447, -0.04117922857403755, 0.060669735074043274, -0.07117536664009094, -0.029435794800519943, -0.005284050013870001, -0.04044895991683006, 0.022984396666288376, -0.009208557195961475, 0.02946147322654724, -0.060574404895305634, 0.03945765644311905, 0.05808350816369057, -0.006303418427705765, 0.028586022555828094, 0.0013827505754306912, 0.029981281608343124, -0.009868010878562927, -0.03038833476603031, -0.07443717867136002, -0.003999206703156233, -0.003592078574001789, -0.0286165289580822, 0.01279403455555439, 0.015728875994682312, -0.032584358006715775, 0.003268521511927247, -0.08668114989995956, -0.02863282524049282, 0.06051298603415489, -0.00703246658667922, -0.005631200037896633, 0.017264749854803085, -0.06416086107492447, 0.038938265293836594, 0.03794387727975845, -0.05133965611457825, 0.008020741865038872, 0.020064447075128555, 0.036523766815662384, -0.005200139246881008, 0.028613898903131485, -0.022097617387771606, -0.01397028286010027, 0.07983611524105072, 0.030479703098535538, 0.012493755668401718, 0.0419713594019413, -0.041433628648519516, 0.06340309232473373, -0.0012678747298195958, -0.014090029522776604, 0.007118239998817444, 0.020308421924710274, -0.0335388258099556, -0.05051467940211296, 0.029476461932063103, -0.002350759692490101, -0.04239054024219513, -0.0798189640045166, 0.05386113375425339, 0.008250937797129154, -0.05529829487204552, -0.04025306552648544, 0.03713138774037361, -0.01823611557483673, -0.027548808604478836, -0.004886792507022619, 0.012678023427724838, -0.07335437089204788, 0.033288903534412384, 0.008116137236356735, 0.03341948986053467, 0.06428202241659164, 0.019530532881617546, -0.014798053540289402, 0.007090506609529257, 0.10548243671655655, 0.10113868862390518, 0.003204774810001254, 0.020575780421495438, 0.07025201618671417, -0.03688916563987732, -0.030159341171383858, -0.016213012859225273, -0.02077876590192318, -0.04056144505739212, -0.02314917743206024, 0.02077668346464634, 0.08323448151350021, -0.020245373249053955, 0.0694747194647789, 0.009198776446282864, 0.012523205019533634, -0.00570280896499753, 0.006781699601560831, 0.041862666606903076, -0.006239747628569603, 0.03437323123216629, 0.027088919654488564, 0.04263634607195854, -0.026578404009342194, 0.006365669891238213, 0.009271843358874321, -0.03543417155742645, -0.01013006642460823, 0.008292258717119694, 0.004428947810083628, 0.03527280315756798, 0.031674474477767944, 0.06644968688488007, -0.022411033511161804, -0.01245369203388691, 0.0032022360246628523, 0.06437786668539047, 0.0009792470373213291, 0.013528036884963512, 0.006707042921334505, -0.011990048922598362, -0.014624561183154583, -0.025905251502990723, -0.011482053436338902, -0.04227045178413391, -0.01052816305309534, 0.03914734721183777, -0.010692990384995937, -0.00721328891813755, 0.030658051371574402, -0.013824655674397945, 0.003531473223119974, -0.04965205863118172, -0.05888060852885246, -0.03782045468688011, -0.0406532809138298, -0.016676465049386024, 0.006124748848378658, -0.040631189942359924, -0.029577042907476425, -0.02496027760207653, -0.003975983709096909, -0.054902028292417526, 0.031167680397629738, -0.06172756478190422, -0.010063430294394493, 0.021276088431477547, 0.025887195020914078, 0.0296926386654377, -0.003648095764219761, 0.05790281668305397, -0.005249144043773413, 0.015998054295778275, -0.02867492102086544, 0.00913676805794239, 0.028699899092316628, -0.03590434417128563, -0.014679918996989727, -0.07671196758747101, 0.02842237800359726, 0.05185732617974281, 0.022821832448244095, -0.0683370977640152, 0.03186162933707237, 0.011442763730883598, -0.014730355702340603, 0.05533089116215706, -0.03543305769562721, -0.0028216149657964706, -0.04122147709131241, -0.0071608624421060085, 0.0137062668800354, -0.02738603577017784, 0.03329457342624664, -0.0069599817506968975, 0.05529813468456268, 0.04268961772322655, 0.005834302399307489, -0.017312543466687202, 0.013461214490234852, 0.007540049962699413, 0.024068672209978104, -0.029902182519435883, -0.025137832388281822, -0.0216791033744812, -0.0776924192905426, -0.012205610983073711, -0.013234545476734638, -0.007864825427532196, -0.027597779408097267, 0.023010266944766045, -0.010084659792482853, -0.0313875786960125, 0.019797177985310555, -0.023790979757905006, -0.0034648017026484013, -0.014405976049602032, -0.010733225382864475, -0.028090154752135277, 0.03246164321899414, -0.011205996386706829, 0.005095795728266239, 0.02019212394952774, -0.04430593550205231, 0.009352821856737137, -0.03436453640460968, 0.07925259321928024, 0.0462152473628521, 0.010064290836453438, 0.01515940297394991 ]
[ -0.0626298040151596, -0.06695018708705902, -0.026317516341805458, -0.02198994904756546, 0.04673326760530472, -0.0698041170835495, -0.02815241739153862, 0.00004002837522421032, 0.003512466559186578, -0.028193596750497818, 0.037705130875110626, -0.052181657403707504, 0.024191025644540787, -0.04769149050116539, 0.05854765325784683, 0.01039537787437439, -0.0306245069950819, -0.08115438371896744, 0.015247036702930927, 0.019747614860534668, -0.035603683441877365, -0.053628016263246536, -0.02755710296332836, -0.03934105113148689, -0.01080374326556921, 0.0833597481250763, 0.0428474135696888, -0.03328637033700943, 0.020468750968575478, -0.2015461027622223, 0.009058180265128613, 0.016446612775325775, 0.016696656122803688, 0.0007101327064447105, 0.04053144156932831, 0.02984279952943325, -0.005370729602873325, -0.0008390425355173647, 0.002418867079541087, 0.028679022565484047, 0.05553372949361801, 0.024230876937508583, -0.04864557087421417, -0.023958146572113037, 0.011752319522202015, -0.00023457834322471172, -0.006004874594509602, -0.024208394810557365, 0.07279152423143387, -0.043959666043519974, -0.017461542040109634, -0.0009909366490319371, -0.011859344318509102, -0.015798693522810936, -0.008489531464874744, 0.025590453296899796, 0.04106944799423218, 0.060493435710668564, 0.007345601450651884, -0.004731856286525726, 0.0324702151119709, -0.022853726521134377, -0.1422082930803299, 0.09794825315475464, 0.06443231552839279, 0.013616026379168034, -0.04409874975681305, 0.03255628049373627, -0.041716985404491425, 0.050728123635053635, 0.021044952794909477, -0.011450527235865593, -0.04680081084370613, 0.0868639424443245, 0.020448248833417892, 0.01890837587416172, -0.011188911274075508, 0.054592497646808624, 0.03922486677765846, -0.03753126040101051, -0.010935849510133266, -0.057574525475502014, -0.01375593338161707, -0.008983597159385681, -0.042852047830820084, -0.013416186906397343, -0.0033561233431100845, 0.07069738954305649, 0.017624855041503906, 0.012979264371097088, -0.012093162164092064, -0.008633377961814404, 0.07375416904687881, 0.024736331775784492, -0.08567053079605103, -0.00018856688984669745, -0.00160508556291461, -0.01126551441848278, -0.07601451873779297, 0.42507117986679077, -0.0075319972820580006, -0.019760917872190475, 0.043416447937488556, 0.013557898811995983, 0.05229513719677925, 0.03277916833758354, 0.0033855868969112635, -0.005951780825853348, 0.013758162036538124, 0.009651070460677147, 0.032554954290390015, -0.018987024202942848, 0.09133997559547424, -0.054282382130622864, 0.012918713502585888, -0.021987691521644592, -0.024562565609812737, 0.022640971466898918, -0.02783476747572422, 0.016262417659163475, -0.051244836300611496, -0.01863212138414383, 0.045256588608026505, 0.034976113587617874, 0.04600434750318527, -0.016012975946068764, 0.023400399833917618, 0.045370329171419144, -0.000034439693990862, 0.029329385608434677, 0.004291870631277561, -0.016371268779039383, -0.0037910286337137222, 0.010777730494737625, 0.026574721559882164, 0.002199075184762478, 0.05788733437657356, -0.0832081139087677, -0.03357500210404396, 0.040537044405937195, -0.00796997919678688, -0.018325818702578545, 0.03537983447313309, -0.025293216109275818, -0.013535717502236366, 0.1252611130475998, 0.023778950795531273, -0.0027393889613449574, -0.021023523062467575, -0.06301702558994293, -0.035743653774261475, 0.030138952657580376, -0.006369836162775755, -0.04141226410865784, -0.013298716396093369, 0.005406203679740429, 0.09923044592142105, 0.01143449917435646, -0.05519569665193558, 0.011107255704700947, -0.03305492177605629, -0.0336679182946682, -0.05794902890920639, 0.0538373626768589, 0.019998889416456223, -0.10572103410959244, -0.03617965802550316, 0.024967022240161896, -0.024788329377770424, -0.03576049581170082, -0.05776996538043022, 0.005328048951923847, 0.023321354761719704, -0.011748386546969414, 0.04219406098127365, -0.04200588911771774, -0.022054098546504974, 0.020768243819475174, 0.024906964972615242, 0.016906142234802246, -0.014767514541745186, 0.01751098781824112, -0.04176599532365799, 0.0007463827496394515, -0.01798303611576557, -0.0816265419125557, -0.06956062465906143, -0.013416774570941925, -0.03536083176732063, -0.061656977981328964, -0.07655336707830429, -0.05541060119867325, -0.021786678582429886, 0.0876735970377922, -0.0025211337488144636, -0.04082605987787247, 0.009526574052870274, -0.00034523665090091527, 0.02146163210272789, -0.05569333955645561, 0.06455399096012115, 0.028594406321644783, 0.007782577537000179, 0.018827030435204506, -0.1064426451921463, 0.029966231435537338, 0.042497649788856506, -0.01814105361700058, 0.03902007266879082, 0.01889907754957676, -0.04606454074382782, 0.013725475408136845, 0.04701121151447296, 0.03123595379292965, 0.013343813829123974, -0.024603931233286858, 0.0028780715074390173, 0.05138210579752922, 0.026634816080331802, 0.020972564816474915, 0.014736900106072426, -0.04644235968589783, -0.06146806851029396, -0.33070889115333557, -0.030507516115903854, -0.007426159456372261, -0.015947364270687103, 0.016654811799526215, -0.05099361017346382, -0.005221023224294186, 0.025150835514068604, -0.014124272391200066, 0.002158366609364748, 0.06973610073328018, -0.04010409116744995, 0.04309573769569397, -0.06574075669050217, -0.01735977828502655, 0.01976250857114792, 0.012217030860483646, -0.008260493166744709, -0.02684025652706623, 0.01811574585735798, -0.014825030229985714, -0.027698123827576637, -0.05306495726108551, -0.007236060686409473, 0.016708724200725555, 0.015488817356526852, 0.09725270420312881, 0.018303848803043365, 0.07067852467298508, -0.032237887382507324, 0.08253326267004013, 0.0670548528432846, 0.0027254840824753046, -0.07667738944292068, -0.009417412802577019, -0.00884214136749506, 0.01770700328052044, -0.003017046023160219, 0.011548697017133236, 0.022242361679673195, -0.09165918827056885, 0.020085636526346207, -0.04288964718580246, -0.01826229877769947, -0.007806778885424137, -0.034227099269628525, -0.008071372285485268, -0.011783644556999207, -0.04527593031525612, 0.01534010749310255, 0.009783129207789898, 0.019244957715272903, -0.005287634674459696, -0.012563975527882576, 0.03127351403236389, -0.0035365475341677666, -0.054972581565380096, -0.03250287473201752, 0.016161739826202393, -0.026610858738422394, 0.04885316267609596, 0.06601683795452118, 0.030034232884645462, -0.07788869738578796, 0.024158556014299393, 0.0203473512083292, -0.03163393586874008, 0.022396383807063103, 0.04014608636498451, -0.025534244254231453, -0.0038549937307834625, 0.10450595617294312, 0.02728484757244587, 0.03919728100299835, 0.03746351599693298, -0.000838981126435101, -0.014938998967409134, -0.0006035784026607871, 0.006952363532036543, -0.05335910990834236, 0.02325340546667576, -0.05265124514698982, 0.0412260927259922, -0.010796311311423779, 0.01087722647935152, 0.06947097927331924, -0.012207345105707645, 0.012839872390031815, 0.0690913200378418, 0.006501602940261364, -0.008514382876455784, 0.008870434947311878, -0.003402779344469309, -0.06009695306420326, 0.07560591399669647, 0.023200638592243195, -0.23562316596508026, 0.03103533573448658, 0.07542695105075836, 0.06417489796876907, -0.0025360507424920797, 0.0064725507982075214, 0.054610393941402435, -0.012453817762434483, 0.013616859912872314, 0.029626253992319107, 0.005229652393609285, 0.006899234373122454, -0.01548590324819088, -0.016606459394097328, -0.005613876972347498, -0.0060960580594837666, 0.033218611031770706, -0.013295800425112247, -0.008585191331803799, -0.005845546722412109, 0.019884195178747177, -0.02445836178958416, 0.16166804730892181, -0.02544385753571987, 0.003512357361614704, 0.01794460043311119, 0.0009002331644296646, 0.02938947267830372, 0.005641566589474678, 0.033060528337955475, 0.013629332184791565, 0.00022206704306881875, 0.017186172306537628, -0.052211932837963104, 0.04655151441693306, -0.008707712404429913, 0.0174594484269619, 0.0086903627961874, 0.018530914559960365, -0.051639825105667114, -0.024395665153861046, -0.003333479166030884, -0.04084348306059837, 0.030452270060777664, 0.026571882888674736, -0.048321742564439774, 0.0018379237735643983, -0.025629090145230293, -0.003044592449441552, 0.010165027342736721, -0.04401371255517006, -0.07106496393680573, 0.038718026131391525, -0.00845207367092371, 0.004427468869835138, 0.062380485236644745, -0.00067812082124874, -0.055033933371305466, -0.0076544443145394325, 0.027594441547989845, 0.0035178770776838064, -0.06749477237462997, 0.11694600433111191, 0.0004752803943119943, 0.05739019066095352 ]
[ 0.03212529420852661, 0.057376112788915634, 0.00642524566501379, 0.01010440569370985, 0.00533200241625309, 0.012383063323795795, 0.001267510000616312, -0.016824234277009964, -0.021351512521505356, 0.0047297789715230465, -0.02555568888783455, -0.018658485263586044, 0.027982650324702263, -0.021334180608391762, -0.04446696862578392, -0.004248626064509153, 0.009380599483847618, 0.006836869288235903, 0.024664301425218582, 0.01528576947748661, -0.045198678970336914, 0.014547644183039665, 0.0107657415792346, -0.05993737652897835, 0.00923994928598404, 0.03279978781938553, -0.03316135331988335, 0.012458215467631817, 0.0214527677744627, -0.15695300698280334, -0.018239496275782585, -0.00033645538496784866, 0.015007944777607918, -0.01373165100812912, 0.02625998668372631, 0.010746384970843792, 0.006982147227972746, 0.043541815131902695, -0.014467478729784489, -0.012498118914663792, 0.03161117061972618, -0.00919453427195549, 0.024045566096901894, 0.010779883712530136, 0.00019252031052019447, -0.02771409973502159, -0.04200463369488716, -0.03401748090982437, 0.023636655882000923, -0.01269107311964035, -0.02048417180776596, -0.012190579436719418, 0.046775221824645996, -0.01699138805270195, 0.023741737008094788, 0.03272951766848564, -0.04777650907635689, 0.027855366468429565, 0.013842056505382061, -0.000402863573981449, 0.010683536529541016, 0.014281871728599072, -0.04439398646354675, -0.015818873420357704, 0.012855825014412403, -0.01335219107568264, -0.019065696746110916, 0.024003125727176666, -0.03558473289012909, 0.032478053122758865, 0.021561210975050926, 0.03451903909444809, -0.03749775514006615, -0.019359875470399857, -0.0038228400517255068, 0.08350777626037598, 0.03706949204206467, -0.022700678557157516, -0.013141708448529243, 0.04407472535967827, -0.02110932767391205, 0.014197086915373802, -0.0071843089535832405, -0.019769679754972458, -0.004551050253212452, 0.008149429224431515, -0.010468847118318081, -0.014601306989789009, 0.028917737305164337, -0.015364794060587883, -0.006009792443364859, 0.014563851058483124, -0.02681094966828823, -0.007103140465915203, -0.04912635684013367, -0.013340082950890064, -0.029577234759926796, -0.03208278864622116, -0.01987181045114994, 0.8161863088607788, -0.010633203200995922, -0.01043813768774271, 0.04131634533405304, 0.014483239501714706, 0.04680434614419937, 0.02419440634548664, 0.019343843683600426, -0.010370216332376003, -0.007826976478099823, -0.019867120310664177, -0.0015046801418066025, 0.008464617654681206, -0.01565021090209484, 0.015074505470693111, 0.018123146146535873, -0.007971435785293579, 0.02289133332669735, -0.02856600284576416, -0.01658945530653, -0.0018363840645179152, 0.012594841420650482, -0.02804412692785263, 0.028404995799064636, -0.025302298367023468, -0.030397923663258553, -0.17171576619148254, -0.001385602168738842, -6.804586352656883e-33, 0.021885108202695847, -0.059136051684617996, 0.014882240444421768, 0.009020992554724216, 0.0810679942369461, -0.005536158103495836, 0.006340855732560158, -0.005872796755284071, -0.011010808870196342, -0.030675483867526054, -0.044104475528001785, 0.0070251524448394775, -0.004122841637581587, -0.006339124869555235, 0.0053505063988268375, -0.038999952375888824, 0.0061970059759914875, 0.03575069084763527, 0.009905199520289898, 0.013391018845140934, 0.047690294682979584, -0.007842408493161201, -0.02697116509079933, -0.0006875062827020884, 0.01759224385023117, -0.026315908879041672, 0.05319757014513016, -0.05308697000145912, 0.011847050860524178, -0.04728744179010391, -0.02802075259387493, 0.02372671477496624, 0.01842699944972992, -0.05864505097270012, -0.02405322715640068, -0.05448037013411522, -0.023448964580893517, 0.025919999927282333, -0.033816516399383545, 0.004786632023751736, -0.033695925027132034, -0.0379820317029953, -0.017889950424432755, 0.0028144726529717445, 0.0034285886213183403, -0.026585329324007034, -0.019047271460294724, 0.02183287777006626, -0.01818149723112583, 0.04875129088759422, 0.023756088688969612, 0.0005189486546441913, -0.05738658830523491, 0.014940937049686909, 0.012193513102829456, 0.011144072748720646, -0.007124755531549454, 0.017599670216441154, -0.003231324953958392, -0.0066310628317296505, -0.04796696826815605, -0.0033129185903817415, -0.010917429812252522, 0.02435913309454918, 0.022676464170217514, 0.02741064690053463, -0.0056937076151371, 0.017526568844914436, -0.027035348117351532, 0.02978065051138401, -0.03730509802699089, -0.033027634024620056, -0.0065910895355045795, -0.009531260468065739, 0.04981448873877525, -0.0014398236526176333, -0.04124990850687027, -0.006667167879641056, -0.0014966848539188504, 0.05056707561016083, 0.0007330973749049008, 0.04872623831033707, -0.015353123657405376, 0.0019632766488939524, -0.00139775185380131, -0.04282960295677185, 0.03100074827671051, -0.022794758901000023, -0.014917257241904736, 0.027365246787667274, 0.0373847633600235, 0.04789451137185097, -0.002276504645124078, -0.024454282596707344, -0.04723097383975983, 6.624583637399436e-33, 0.004107712302356958, 0.020221654325723648, -0.02525012567639351, -0.012841988354921341, 0.0008892823243513703, -0.03899340331554413, 0.08682579547166824, 0.005717387888580561, 0.002224236261099577, 0.006209793034940958, -0.023731471970677376, 0.03673727810382843, -0.02107437327504158, 0.02081909589469433, 0.03887780010700226, 0.008174200542271137, 0.012562000192701817, -0.002339709550142288, 0.02345728874206543, 0.036186106503009796, 0.008649193681776524, 0.011523803696036339, 0.008986849337816238, 0.012159031815826893, 0.008412996307015419, 0.045974571257829666, 0.04781871289014816, 0.006201290991157293, -0.0236853938549757, -0.013288939371705055, -0.008659185841679573, -0.009896749630570412, 0.02706000953912735, 0.041621897369623184, 0.018819358199834824, 0.07026969641447067, 0.003379336092621088, 0.03703172877430916, -0.029962172731757164, -0.04232872277498245, 0.037470798939466476, 0.016966039314866066, -0.03567538410425186, 0.020641446113586426, -0.03167000785470009, -0.019779406487941742, 0.009823089465498924, -0.014712118543684483, -0.02979632467031479, -0.0023152250796556473, -0.03350914642214775, 0.009675545617938042, 0.019893525168299675, 0.02022266760468483, 0.02400984615087509, -0.023826085031032562, -0.037035614252090454, 0.023662611842155457, -0.034615304321050644, 0.05941228196024895, 0.010870137251913548, -0.024656228721141815, -0.01729283481836319, 0.049835000187158585, -0.0296209417283535, 0.00301944138482213, -0.033361293375492096, -0.005221397150307894, -0.03939647227525711, -0.021111629903316498, 0.01835872232913971, -0.0071672857739031315, -0.0029182282742112875, 0.052436333149671555, 0.005588257685303688, -0.03380369022488594, 0.004116755910217762, -0.0032127483282238245, -0.014749019406735897, 0.018707193434238434, -0.014876656234264374, 0.013448042795062065, -0.011941911652684212, -0.03347548842430115, 0.012141243554651737, -0.02224419079720974, -0.019714919850230217, 0.0076818885281682014, 0.05411355569958687, 0.016100451350212097, 0.017115391790866852, -0.017494337633252144, -0.039413005113601685, 0.02280411310493946, -0.023221850395202637, -1.2362494139495084e-8, 0.0170741006731987, -0.00016419653547927737, -0.0030572249088436365, 0.03896646201610565, -0.007340712007135153, -0.0022833317052572966, -0.02414277382194996, -0.009115171618759632, -0.02415565773844719, -0.0013217054074630141, 0.006367871072143316, -0.01135912723839283, -0.02336375042796135, 0.014792789705097675, 0.03982984274625778, 0.012359190732240677, 0.008684681728482246, 0.010843824595212936, 0.023021798580884933, -0.022593233734369278, -0.016682138666510582, 0.05033421888947487, 0.006712374277412891, -0.005356886424124241, -0.028564849868416786, -0.005774051882326603, 0.0005971653154119849, -0.10898687690496445, -0.010022742673754692, 0.013045404106378555, 0.019179483875632286, 0.005046573467552662, -0.045098982751369476, 0.02993662655353546, 0.0009673504973761737, -0.010925001464784145, 0.013500983826816082, 0.00036642738268710673, 0.019977843388915062, -0.0058323596604168415, -0.07649672776460648, -0.021495450288057327, 0.007472590077668428, -0.04148654639720917, -0.017674140632152557, -0.005979172885417938, -0.02671721950173378, 0.033419739454984665, 0.059355080127716064, -0.028017520904541016, 0.021555770188570023, 0.01504424773156643, 0.01604369282722473, -0.006631822325289249, 0.03765572980046272, 0.019755320623517036, 0.030269557610154152, 0.0017603595042601228, -0.021834533661603928, -0.02665053680539131, -0.013230525888502598, 0.03795105963945389, 0.01155853271484375, -0.0059855906292796135 ]
docker-network-could-not-find-non-overlapping-address-pool
https://markhneedham.com/blog/2023/07/20/docker-network-could-not-find-non-overlapping-address-pool
false
2023-07-18 04:44:37
Redpanda: Configure pruning/retention of data
[ "redpanda", "til" ]
[ "TIL" ]
:icons: font I wanted to test how Apache Pinot deals with data being truncated from the underlying stream from which it's consuming, so I've been trying to work out how to prune data in Redpanda. In this blog post, I'll share what I've learnt so far. We're going to spin up a Redpanda cluster using the following Docker Compose file: .docker-compose.yml [source, yaml] ---- version: '3.7' services: redpanda: container_name: "redpanda-pruning" image: docker.redpanda.com/vectorized/redpanda:v22.2.2 command: - redpanda start - --smp 1 - --overprovisioned - --node-id 0 - --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 - --advertise-kafka-addr PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092 - --pandaproxy-addr 0.0.0.0:8082 - --advertise-pandaproxy-addr localhost:8082 ports: - 8081:8081 - 8082:8082 - 9092:9092 - 9644:9644 - 29092:29092 ---- We can launch Redpanda by running `docker compose up`. Next, we're going to ingest some data using the following script: .datagen.py [source, python] ---- import datetime, uuid, random, json def generate(sleep): while True: ts = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%fZ") id = str(uuid.uuid4()) count = random.randint(0, 1000) print(json.dumps({"tsString": ts, "uuid": id, "count": count})) if __name__ == '__main__': generate() ---- We'll pipe the output of that script into a combination of jq and kcat, as shown below: [source, bash] ---- python datagen.py --sleep 0.0001 2>/dev/null | jq -cr --arg sep 😊 '[.uuid, tostring] | join($sep)' | kcat -P -b localhost:9092 -t events -K😊 ---- The data will now be ingested into the `events` topic. We can then get an overview of the `events` topic by running the following command [source, bash] ---- rpk topic describe events -a ---- .Output [source, text] ---- SUMMARY ======= NAME events PARTITIONS 1 REPLICAS 1 CONFIGS ======= KEY VALUE SOURCE cleanup.policy delete DEFAULT_CONFIG compression.type producer DEFAULT_CONFIG message.timestamp.type CreateTime DEFAULT_CONFIG partition_count 1 DYNAMIC_TOPIC_CONFIG redpanda.datapolicy function_name: script_name: DEFAULT_CONFIG redpanda.remote.read false DEFAULT_CONFIG redpanda.remote.write false DEFAULT_CONFIG replication_factor 1 DYNAMIC_TOPIC_CONFIG retention.bytes -1 DEFAULT_CONFIG retention.ms 604800000 DEFAULT_CONFIG segment.bytes 1073741824 DEFAULT_CONFIG PARTITIONS ========== PARTITION LEADER EPOCH REPLICAS LOG-START-OFFSET HIGH-WATERMARK 0 0 1 [0] 0 55585 ---- Redpanda stores data in segment files, which have a default size of 1GB. All log rotation and truncation happen https://docs.redpanda.com/docs/manage/cluster-maintenance/disk-utilization/[when we reach a segment rotation^], so if we want to increase the frequency or size of rotation, we need to first reduce segment size. The segment size is controlled at the topic level by the `segment.bytes` property (or `log_segment_size` globally). We can run the following command using the rpk command line tool to set the segment size to 100MB: [source, bash] ---- rpk topic alter-config events --set segment.bytes=10000000 ---- We can check the size of the segment files by running the following commmand: [source, bash] ---- docker exec -it redpanda-pruning sh -c \ "ls -alh --full-time /var/lib/redpanda/data/kafka/events/**/*.log | cut --d ' ' -f5-" ---- .Output [source, text] ---- 153M 2023-07-18 14:08:47.463652007 +0000 /var/lib/redpanda/data/kafka/events/0_15/0-1-v1.log ---- We'll need to wait for this file to get to 1GB before the updated segment size config gets used. We can check that the config has been picked up by re-running `rpk topic describe events -a`: .Output [source, text] ---- SUMMARY ======= NAME events PARTITIONS 1 REPLICAS 1 CONFIGS ======= KEY VALUE SOURCE cleanup.policy delete DEFAULT_CONFIG compression.type producer DEFAULT_CONFIG message.timestamp.type CreateTime DEFAULT_CONFIG partition_count 1 DYNAMIC_TOPIC_CONFIG redpanda.datapolicy function_name: script_name: DEFAULT_CONFIG redpanda.remote.read false DEFAULT_CONFIG redpanda.remote.write false DEFAULT_CONFIG replication_factor 1 DYNAMIC_TOPIC_CONFIG retention.bytes -1 DEFAULT_CONFIG retention.ms 604800000 DEFAULT_CONFIG segment.bytes 10000000 DYNAMIC_TOPIC_CONFIG PARTITIONS ========== PARTITION LEADER EPOCH REPLICAS LOG-START-OFFSET HIGH-WATERMARK 0 0 1 [0] 0 1824800 ---- While we're waiting, we're also going to reduce the retention time for the topic so old data gets purged sooner. We can do that with a couple of properties, `retention.ms` (`delete_retention_ms` globally) and `retention.bytes` (`retention_bytes` globally): [source, bash] ---- rpk topic alter-config events --set retention.ms=60000 # <1> rpk topic alter-config events --set retention.bytes=100000000 # <2> ---- <.> Delete segments that are older than 60 seconds. <.> Default 100 million bytes per partition on disk before triggering deletion of the oldest messages. We're setting the retention time to 60 seconds and the retention size to 100,000,000 bytes. These parameters will be applied straight away, but they won't have any impact until we have a segment rotation. If we re-run `rpk topic describe events -a` again, we'll see that the following output: .Output [source, text] ---- SUMMARY ======= NAME events PARTITIONS 1 REPLICAS 1 CONFIGS ======= KEY VALUE SOURCE cleanup.policy delete DEFAULT_CONFIG compression.type producer DEFAULT_CONFIG message.timestamp.type CreateTime DEFAULT_CONFIG partition_count 1 DYNAMIC_TOPIC_CONFIG redpanda.datapolicy function_name: script_name: DEFAULT_CONFIG redpanda.remote.read false DEFAULT_CONFIG redpanda.remote.write false DEFAULT_CONFIG replication_factor 1 DYNAMIC_TOPIC_CONFIG retention.bytes 100000000 DYNAMIC_TOPIC_CONFIG retention.ms 60000 DYNAMIC_TOPIC_CONFIG segment.bytes 10000000 DYNAMIC_TOPIC_CONFIG PARTITIONS ========== PARTITION LEADER EPOCH REPLICAS LOG-START-OFFSET HIGH-WATERMARK 0 0 1 [0] 0 4437102 ---- If we wait a little bit longer, the segment file will have reached 1GB and our settings will kick into action. We'll see something like the following entry in the Docker logs: .Output [source, text] ---- redpanda-pruning | INFO 2023-07-18 14:24:43,377 [shard 0] storage - segment.cc:623 - Creating new segment /var/lib/redpanda/data/kafka/events/0_15/7589093-1-v1.log redpanda-pruning | INFO 2023-07-18 14:24:44,272 [shard 0] storage - disk_log_impl.cc:997 - remove_prefix_full_segments - tombstone & delete segment: {offset_tracker:{term:1, base_offset:0, committed_offset:7589092, dirty_offset:7589092}, compacted_segment=0, finished_self_compaction=0, generation={98553}, reader={/var/lib/redpanda/data/kafka/events/0_15/0-1-v1.log, (1107034409 bytes)}, writer=nullptr, cache={cache_size=49276}, compaction_index:nullopt, closed=0, tombstone=0, index={file:/var/lib/redpanda/data/kafka/events/0_15/0-1-v1.base_index, offsets:{0}, index:{header_bitflags:0, base_offset:{0}, max_offset:{7589092}, base_timestamp:{timestamp: 1689689163391}, max_timestamp:{timestamp: 1689690283332}, index(31961,31961,31961)}, step:32768, needs_persistence:0}} ---- And the output of the Docker command that tails the log directory will look like this: .Output [source, text] ---- 9.9M 2023-07-18 14:24:53.697925010 +0000 /var/lib/redpanda/data/kafka/events/0_15/7589093-1-v1.log 9.9M 2023-07-18 14:25:04.066882001 +0000 /var/lib/redpanda/data/kafka/events/0_15/7659797-1-v1.log 9.9M 2023-07-18 14:25:14.705882006 +0000 /var/lib/redpanda/data/kafka/events/0_15/7730618-1-v1.log 9.9M 2023-07-18 14:25:25.243882011 +0000 /var/lib/redpanda/data/kafka/events/0_15/7801321-1-v1.log 9.9M 2023-07-18 14:25:35.684553002 +0000 /var/lib/redpanda/data/kafka/events/0_15/7872140-1-v1.log 300K 2023-07-18 14:25:35.989553002 +0000 /var/lib/redpanda/data/kafka/events/0_15/7942843-1-v1.log ---- And for old time's sake, let's describe the topic again: .Output [source, text] ---- SUMMARY ======= NAME events PARTITIONS 1 REPLICAS 1 CONFIGS ======= KEY VALUE SOURCE cleanup.policy delete DEFAULT_CONFIG compression.type producer DEFAULT_CONFIG message.timestamp.type CreateTime DEFAULT_CONFIG partition_count 1 DYNAMIC_TOPIC_CONFIG redpanda.datapolicy function_name: script_name: DEFAULT_CONFIG redpanda.remote.read false DEFAULT_CONFIG redpanda.remote.write false DEFAULT_CONFIG replication_factor 1 DYNAMIC_TOPIC_CONFIG retention.bytes 100000000 DYNAMIC_TOPIC_CONFIG retention.ms 60000 DYNAMIC_TOPIC_CONFIG segment.bytes 10000000 DYNAMIC_TOPIC_CONFIG PARTITIONS ========== PARTITION LEADER EPOCH REPLICAS LOG-START-OFFSET HIGH-WATERMARK 0 0 1 [0] 7730617 8227515 ---- 7 million messages have been truncated, just like that!
In this post, we're going to learn how to prune data in Redpanda.
uploads/2023/07/redpanda-pruning-banner.png
[ 0.0011004277039319277, -0.040414635092020035, 0.004227915778756142, 0.04023806378245354, 0.0879688635468483, 0.0544813871383667, -0.013853081502020359, 0.051825810223817825, -0.04894304275512695, -0.009699247777462006, -0.009426062926650047, -0.009893749840557575, -0.06283486634492874, 0.02174018882215023, 0.014847534708678722, 0.08225157111883163, 0.08713514357805252, 0.004893394187092781, 0.03126857429742813, 0.010812142863869667, 0.04654494300484657, 0.04824790731072426, -0.02754569798707962, 0.058328207582235336, 0.00867960974574089, 0.0016321315197274089, -0.0041089304722845554, 0.011207286268472672, -0.056216999888420105, -0.025096671655774117, 0.02823130041360855, -0.0007592241745442152, 0.01625254563987255, 0.027803806588053703, 0.021351773291826248, -0.029409775510430336, -0.018679488450288773, 0.0009041207958944142, -0.007179275620728731, 0.047545842826366425, -0.08857464045286179, 0.025179576128721237, 0.017544077709317207, 0.018888188526034355, -0.008030662313103676, 0.03213264420628548, -0.03540433943271637, 0.012659795582294464, 0.006184305064380169, 0.008002047426998615, -0.08930587768554688, 0.028977112844586372, -0.0139154102653265, 0.0036526741459965706, 0.013147607445716858, 0.050026364624500275, 0.006428142543882132, -0.059866227209568024, 0.035489436239004135, -0.04732029512524605, 0.015265888534486294, -0.015515239909291267, 0.02304118126630783, 0.03101312927901745, -0.004117375239729881, -0.012860032729804516, -0.0007401172770187259, 0.05986233055591583, -0.035506315529346466, -0.022472362965345383, 0.009737000800669193, 0.013791592791676521, -0.05393725633621216, 0.0008127958280965686, 0.011364958249032497, -0.05124269798398018, -0.03770085796713829, 0.05161694064736366, 0.010282576084136963, 0.06987180560827255, -0.03349796310067177, -0.02572336234152317, 0.016331464052200317, 0.025864548981189728, 0.01833983138203621, -0.06951284408569336, -0.059580978006124496, -0.006486002821475267, -0.07027376443147659, 0.04210961237549782, 0.012774878181517124, -0.024119507521390915, 0.033065345138311386, 0.004215340595692396, -0.016368957236409187, 0.02357635647058487, -0.009286860004067421, 0.0033958000130951405, 0.015565683133900166, 0.013715273700654507, -0.04720243811607361, -0.025674911215901375, 0.030570870265364647, 0.07125472277402878, -0.05157650262117386, -0.027003521099686623, -0.03401847183704376, -0.02015499398112297, 0.0037677318323403597, 0.01691557839512825, -0.014107057824730873, -0.0064218840561807156, -0.01968810334801674, 0.0031491213012486696, -0.08821109682321548, 0.08297820389270782, 0.018372908234596252, -0.01994001492857933, 0.015973005443811417, 0.0018513163086026907, 0.06133865937590599, 0.01886020414531231, -0.014962608925998211, 0.06313908100128174, -0.01958298496901989, 0.014435798861086369, 0.012612164951860905, 0.03878404200077057, -0.0008466641884297132, -0.0637984573841095, -0.020161455497145653, 0.07213831692934036, 0.019269319251179695, -0.0020543832797557116, -0.0011478147935122252, -0.022243889048695564, -0.010840397328138351, -0.002913918113335967, 0.06176216900348663, -0.003947519697248936, -0.009681187570095062, -0.02228359878063202, -0.0037901748437434435, 0.011061646975576878, 0.024416618049144745, 0.028487946838140488, 0.027905797585844994, -0.06275579333305359, -0.01928815431892872, 0.026194017380475998, -0.0028795539401471615, 0.02256675995886326, 0.055904582142829895, -0.019975610077381134, 0.0012468741042539477, 0.06917808204889297, 0.008133606053888798, 0.012649585492908955, -0.024967467412352562, 0.003423843765631318, 0.03795037791132927, 0.03411135450005531, 0.017913542687892914, 0.0247593205422163, 0.03911193087697029, -0.037050578743219376, -0.009963731281459332, 0.05268053337931633, -0.027068709954619408, 0.012514852918684483, -0.05877925083041191, -0.05655856430530548, 0.08051583915948868, -0.028901156038045883, 0.009509527124464512, 0.017910905182361603, 0.07264287024736404, 0.019450483843684196, -0.0015665721148252487, 0.02174513041973114, -0.08251948654651642, 0.05342249199748039, 0.003643776522949338, 0.020539620891213417, -0.005063949152827263, -0.012901011854410172, 0.06471466273069382, 0.005576724652200937, 0.05393848195672035, 0.05226420983672142, -0.053423166275024414, -0.06114662438631058, -0.03015214018523693, 0.0014668717049062252, 0.05574572831392288, -0.035611607134342194, -0.028353722766041756, 0.054156821221113205, 0.04004080593585968, 0.02142627164721489, -0.0041824402287602425, 0.01717071607708931, 0.00608870992437005, -0.07191427052021027, -0.0822509229183197, 0.014041309244930744, 0.005493017844855785, -0.023624304682016373, -0.029843349009752274, 0.0118721267208457, -0.05499432235956192, -0.02820216305553913, 0.027145138010382652, -0.040267862379550934, 0.05806261673569679, 0.011360855773091316, 0.006560957059264183, -0.02867901884019375, 0.02952950820326805, -0.08053743839263916, 0.06264495104551315, -0.0006821571732871234, -0.006191257853060961, -0.024403266608715057, 0.009014212526381016, 0.12146125733852386, 0.07432955503463745, 0.005293429829180241, -0.03562728688120842, 0.06503140181303024, 0.004752843640744686, -0.04314270615577698, 0.018944604322314262, -0.026861973106861115, -0.020099950954318047, 0.016174079850316048, -0.024686390534043312, -0.028394365683197975, 0.022205810993909836, -0.019899597391486168, -0.005303822923451662, 0.04792821407318115, -0.03225655108690262, 0.044555507600307465, 0.02925349399447441, -0.015961451455950737, 0.007055734749883413, -0.05408196523785591, -0.05767170712351799, -0.010186445899307728, 0.03382283076643944, -0.011072714813053608, 0.03559301048517227, -0.0578443743288517, -0.01903107576072216, -0.04985913634300232, -0.056027330458164215, 0.015528568997979164, 0.04082528129220009, 0.059165626764297485, -0.05230649933218956, 0.016519691795110703, -0.03518378734588623, -0.020131520926952362, -0.030599316582083702, -0.04794995114207268, 0.0030361695680767298, 0.005025917664170265, 0.02976025454699993, 0.01360520999878645, 0.015219802968204021, -0.008792090229690075, 0.02012956701219082, -0.010441971011459827, 0.0009511039825156331, -0.01857001520693302, 0.028026757761836052, -0.007449317257851362, -0.00909213162958622, -0.02841273695230484, -0.0064796158112585545, 0.06259477883577347, -0.04810251295566559, -0.02138337679207325, -0.0028229618910700083, -0.05845116451382637, 0.027595195919275284, -0.011813221499323845, -0.041017189621925354, -0.022331472486257553, 0.03043733909726143, 0.024918312206864357, 0.016818994656205177, -0.026187986135482788, 0.05690031498670578, 0.03536912426352501, -0.01683604158461094, 0.01764942705631256, -0.010285071097314358, 0.02729944698512554, 0.000008977866855275352, 0.01923106424510479, 0.058975521475076675, 0.004162430297583342, -0.001095448387786746, -0.05414319038391113, 0.01194707304239273, -0.01809597760438919, -0.2701924443244934, 0.025803450495004654, 0.0030622030608356, 0.008335824124515057, 0.007567351683974266, -0.015494710765779018, 0.004630780313163996, -0.024171747267246246, 0.012852503918111324, -0.00046765399747528136, -0.046125780791044235, -0.0480702742934227, -0.010953494347631931, 0.02621868997812271, -0.003878199029713869, 0.011002589948475361, 0.0038645253516733646, -0.04727973788976669, 0.004326572176069021, -0.004795328248292208, -0.014995748177170753, -0.027448678389191628, 0.007499191910028458, 0.04812339320778847, 0.014212056063115597, 0.03968147188425064, -0.05718189477920532, 0.04974079877138138, -0.04669729247689247, -0.019347691908478737, -0.001561108510941267, -0.028741484507918358, -0.003742085536941886, 0.012395156547427177, -0.0020364862866699696, -0.025545453652739525, 0.01749856024980545, 0.0020054352935403585, 0.030527345836162567, 0.012052341364324093, -0.029158808290958405, -0.04719150811433792, -0.0008099994738586247, -0.012838147580623627, 0.06669066101312637, -0.014512978494167328, -0.08653803914785385, -0.019185617566108704, -0.026799099519848824, 0.07557705789804459, -0.03174222633242607, -0.05598483979701996, -0.03556124493479729, 0.0023796106688678265, -0.01454776618629694, 0.00910187978297472, -0.029688891023397446, 0.013149969279766083, -0.03464370593428612, -0.01203909981995821, 0.009185335598886013, -0.03869742900133133, -0.02305343560874462, -0.04913979396224022, -0.051531314849853516, -0.06171221658587456, -0.057350873947143555, -0.008875081315636635, 0.07186377793550491, 0.04107633978128433, -0.07236023247241974, 0.01173882745206356, 0.005984164774417877, -0.10677525401115417, -0.0026061723474413157, -0.045237068086862564, -0.046812400221824646, 0.0025929135736078024, -0.03959672898054123, 0.05818891525268555, -0.035836219787597656, -0.03649348393082619, 0.007029180880635977, 0.014405306428670883, 0.01068332139402628, -0.03664647415280342, 0.022393476217985153, -0.049910642206668854, 0.003200582228600979, -0.0011364377569407225, 0.06265368312597275, -0.04107588157057762, -0.009113892912864685, -0.01095949113368988, -0.019873833283782005, 0.04824662208557129, 0.003762819105759263, 0.028602704405784607, -0.013064124621450901, 0.025697870180010796, 0.025366123765707016, -0.07482174038887024, -0.021690083667635918, -0.03418036922812462, -0.00004038807674078271, -0.007697306573390961, -0.05534907057881355, 0.03167977184057236, 0.005563812796026468, 0.0026909324806183577, 0.03638985753059387, -0.01885223016142845, 0.017731880769133568, -0.06215512752532959, -0.006152394227683544, -0.01851554587483406, 0.02045011892914772, 0.05425311252474785, 0.03744664043188095, -0.004121166653931141, -0.03439052030444145, 0.01604621112346649, 0.025395851582288742, -0.011326425708830357, -0.028098849579691887, -0.04458974674344063, 0.018494928255677223, -0.019409364089369774, -0.006212621461600065, 0.012597205117344856, -0.004861786030232906, 0.01740601845085621, 0.055331144481897354, -0.01268339715898037, 0.027951830998063087, -0.04360152408480644, -0.03819536045193672, -0.04125665873289108, 0.03075450100004673, 0.03593750670552254, 0.010623656213283539, 0.023756781592965126, -0.00774252088740468, 0.010091106407344341, 0.04949584975838661, 0.011611243709921837, 0.014343313872814178, -0.01807459443807602, 0.029594143852591515, 0.00930202566087246, 0.012053754180669785, -0.008750858716666698, 0.010250803083181381, -0.00891802553087473, -0.016628483310341835, -0.0364307202398777, 0.016368938609957695, -0.0021934888791292906, -0.00744460616260767, -0.040189750492572784, 0.007095952518284321, -0.05199867859482765, -0.026330046355724335, -0.01613112911581993, -0.019225725904107094, 0.03634145110845566, 0.004519688431173563, 0.02007307857275009, 0.029621118679642677, -0.019450020045042038, 0.024339426308870316, -0.001256578485481441, -0.021626876667141914, 0.026687124744057655, -0.007691108155995607, -0.0020756369922310114, 0.025839051231741905, 0.05560136213898659, 0.02365642599761486, 0.017644649371504784, 0.014283808879554272, 0.011775693856179714, 0.013091395609080791, 0.002173306653276086, 0.04055628180503845, 0.0676952674984932, -0.02980652078986168, -0.015596164390444756, -0.021568547934293747, -0.012678936123847961, -0.028435377404093742, 0.014658263884484768, -0.015842020511627197, -0.00569838797673583, -0.018444892019033432, -0.07979804277420044, 0.03946985304355621, 0.025917768478393555, 0.002939904574304819, 0.008817976340651512, -0.0035747119691222906, 0.011924008838832378, -0.04864829406142235, 0.015792785212397575, 0.05477738752961159, -0.060311079025268555, 0.007848548702895641, -0.003897508606314659, 0.0071855871938169, 0.011910513043403625, 0.024168966338038445, -0.061763688921928406, -0.022096529603004456, 0.0032282290048897266, 0.022463440895080566, -0.03175049647688866, -0.03043207898736, -0.029342494904994965, 0.04249253869056702, 0.005072366446256638, 0.022815760225057602, 0.0017075765645131469, -0.022143952548503876, -0.0008720685145817697, -0.012789779342710972, 0.04214299097657204, 0.010485232807695866, -0.010256814770400524, 0.01155421044677496, -0.006965546403080225, 0.01352726761251688, -0.03590577840805054, 0.014918056316673756, 0.010420277714729309, -0.03169054538011551, -0.038346752524375916, -0.03262360766530037, -0.005217528436332941, -0.002868324751034379, 0.059190407395362854, 0.004406475927680731, -0.008291306905448437, -0.0376146025955677, 0.0034299709368497133, -0.0116476034745574, 0.008846316486597061, -0.004363491665571928, -0.0069836899638175964, 0.020486731082201004, 0.03960743546485901, 0.009331448934972286, -0.008056692779064178, -0.021115034818649292, -0.05252567306160927, 0.05888346582651138, -0.018883083015680313, -0.04428878054022789, -0.024371786043047905, -0.050641197711229324, 0.020964650437235832, 0.016797857359051704, 0.032889995723962784, -0.03239861875772476, 0.023879362270236015, 0.06086296588182449, 0.026106303557753563, 0.04500599205493927, -0.005870698019862175, 0.04285035654902458, 0.004780484363436699, 0.01110098697245121, -0.0832572728395462, 0.0064462716691195965, 0.0287344828248024, -0.037400394678115845, 0.01915103942155838, -0.014304591342806816, -0.062247153371572495, 0.03995245322585106, -0.07513647526502609, -0.014582227915525436, 0.07135797291994095, 0.014698651619255543, 0.0226107370108366, 0.017451494932174683, -0.05162765458226204, 0.03680183365941048, 0.03686961904168129, -0.05098838359117508, -0.012906130403280258, 0.01832417957484722, 0.04670355096459389, 0.004711327608674765, 0.023409301415085793, -0.014752790331840515, -0.029976405203342438, 0.06896067410707474, 0.022690903395414352, 0.005910535808652639, 0.04749858006834984, -0.03151078522205353, 0.04968848079442978, 0.01397817675024271, -0.025544550269842148, 0.0055227926932275295, 0.041912924498319626, -0.03368952125310898, -0.07615981996059418, 0.046704988926649094, 0.006539767142385244, -0.0008413667674176395, -0.061423931270837784, 0.07577410340309143, -0.004294140730053186, -0.04082672297954559, -0.028852513059973717, 0.012305052019655704, -0.02064584195613861, -0.00885060615837574, -0.021614475175738335, 0.038735441863536835, -0.04305771738290787, 0.045366980135440826, -0.022326460108160973, 0.01018999982625246, 0.0791882649064064, -0.006553792394697666, 0.006450954359024763, 0.02865266241133213, 0.10217326134443283, 0.07523126900196075, 0.010893973521888256, -0.0076995850540697575, 0.056679900735616684, -0.029324457049369812, -0.032729022204875946, -0.0017270526150241494, -0.0004466454265639186, -0.05103167146444321, -0.044255055487155914, 0.048277586698532104, 0.07180485129356384, -0.035501301288604736, 0.05522509291768074, 0.0007997705833986402, 0.002968540880829096, -0.03174516558647156, 0.012371599674224854, 0.025091324001550674, -0.0021948469802737236, 0.0018601821502670646, 0.039633575826883316, 0.0016185161657631397, -0.019760848954319954, 0.0395917184650898, 0.021333768963813782, -0.04709986597299576, 0.006885138340294361, -0.025860706344246864, 0.007068561855703592, 0.030054425820708275, 0.02770157903432846, 0.06499921530485153, -0.020645298063755035, -0.011803977191448212, 0.004567192867398262, 0.050558362156152725, 0.0037824015598744154, 0.0011089964536949992, -0.0044464110396802425, -0.008582526817917824, -0.021321076899766922, -0.01216093823313713, -0.013452616520226002, -0.03071419708430767, -0.004727437626570463, 0.012440383434295654, -0.026149926707148552, -0.004840829409658909, 0.009784327819943428, -0.03756681829690933, -0.07939192652702332, -0.0391867533326149, -0.07928211241960526, -0.05507044121623039, -0.07209529727697372, -0.015422331169247627, 0.004522879607975483, -0.02802911587059498, -0.01973741687834263, -0.05342617258429527, -0.023793576285243034, 0.009684422984719276, 0.008528840728104115, -0.03892362490296364, -0.02752588503062725, 0.008785867132246494, 0.02923356369137764, 0.013931920751929283, 0.016773149371147156, 0.07867816090583801, 0.01699468307197094, -0.0043047768995165825, -0.022850893437862396, 0.008760007098317146, 0.044404491782188416, -0.001601812313310802, -0.008294343017041683, -0.06272327154874802, 0.02005055919289589, 0.012752987444400787, -0.018377188593149185, -0.07182282209396362, 0.01961854286491871, 0.020091362297534943, 0.003753497265279293, 0.05889208987355232, -0.03785458579659462, 0.005697479005903006, -0.02197192795574665, -0.03790053352713585, 0.0006873635575175285, 0.007876063697040081, 0.04813292995095253, -0.021679304540157318, 0.07321415096521378, 0.05796850472688675, -0.005405554082244635, -0.023396378383040428, 0.01640481874346733, -0.029925059527158737, 0.03872480243444443, -0.06780800968408585, 0.0002362424711463973, -0.03787672892212868, -0.04921211302280426, -0.007390075363218784, 0.012554284185171127, -0.04926679655909538, -0.045234035700559616, 0.034944791346788406, -0.0024202833883464336, 0.000868754752445966, 0.020760105922818184, -0.055860571563243866, -0.017932627350091934, -0.030790887773036957, -0.0049756779335439205, -0.02737436816096306, 0.03844624012708664, 0.005289127584546804, -0.0002644882188178599, 0.031099975109100342, -0.026931244879961014, 0.004091967828571796, -0.017928823828697205, 0.04963601008057594, 0.05676515772938728, -0.011711988598108292, -0.00352560356259346 ]
[ -0.049729686230421066, -0.015965290367603302, -0.027985867112874985, 0.0017077341908589005, 0.06976465880870819, -0.105845145881176, -0.03261418640613556, 0.01979060098528862, -0.025540431961417198, -0.01647057570517063, 0.030860871076583862, -0.044505853205919266, -0.0017467366997152567, -0.02321765571832657, 0.0883440226316452, -0.0013989420840516686, -0.009640512987971306, -0.033503759652376175, -0.05845957249403, 0.04137376695871353, 0.022101780399680138, -0.03709171339869499, -0.04765327647328377, -0.03875942900776863, 0.019076738506555557, 0.05092919245362282, 0.019787585362792015, -0.057878363877534866, -0.0073192426934838295, -0.21613168716430664, -0.01283291820436716, -0.04542126879096031, 0.009777065366506577, -0.027748851105570793, 0.024121999740600586, 0.06312641501426697, -0.013918472453951836, 0.006344788242131472, 0.00976948905736208, 0.027436215430498123, 0.017892606556415558, 0.02862980216741562, -0.07227715104818344, 0.01310813706368208, -0.0010862643830478191, -0.003343646414577961, -0.033077605068683624, 0.014877907931804657, 0.036985572427511215, -0.00037827741471119225, -0.03963137045502663, 0.01269619632512331, -0.002979233395308256, -0.016530435532331467, 0.035049691796302795, 0.0243252944201231, 0.051195766776800156, 0.011533612385392189, 0.014069637283682823, 0.0020787811372429132, 0.004254067316651344, 0.008418204262852669, -0.12374261766672134, 0.12701483070850372, 0.03336358442902565, 0.018578413873910904, 0.015732109546661377, 0.009863121435046196, -0.0279084425419569, 0.04467838630080223, 0.003720139153301716, -0.019593389704823494, -0.04190539941191673, 0.056737083941698074, -0.028973259031772614, -0.0383155457675457, -0.0018106887582689524, 0.02879304438829422, 0.032744958996772766, 0.010337766259908676, -0.048424091190099716, 0.013333131559193134, 0.0001374155981466174, 0.01599062979221344, -0.02640347182750702, -0.015583214350044727, -0.025356873869895935, 0.026807619258761406, -0.0006234637112356722, 0.04586511477828026, -0.011174739338457584, -0.01689188927412033, 0.04613422229886055, 0.009715748019516468, -0.09363919496536255, 0.031671617180109024, -0.025559499859809875, 0.028413884341716766, -0.031304407864809036, 0.36889222264289856, -0.018099898472428322, 0.0023147326428443193, 0.0010478231124579906, 0.0291760116815567, 0.010150548070669174, 0.0003477487189229578, 0.033528514206409454, 0.004513664171099663, 0.0428350530564785, 0.004663224797695875, 0.040045980364084244, -0.029111037030816078, 0.04647866263985634, -0.04159441590309143, 0.010308505035936832, -0.02874896116554737, 0.005184712819755077, 0.004849298391491175, -0.05368490144610405, 0.04093439131975174, -0.05571732297539711, -0.01138739101588726, 0.050908755511045456, 0.04535205662250519, 0.04889555647969246, 0.02998463436961174, 0.03119424358010292, 0.03174564242362976, 0.0012497483985498548, 0.036882344633340836, -0.03252406790852547, -0.05402732640504837, -0.03219885379076004, 0.020253263413906097, -0.023026594892144203, 0.022087639197707176, 0.05925391986966133, -0.04041600972414017, 0.0038530402816832066, -0.0040719714015722275, -0.04026900604367256, -0.03200894594192505, 0.04378294572234154, -0.022370576858520508, -0.009463815949857235, 0.11023380607366562, -0.0015863802982494235, 0.02158541977405548, -0.032068487256765366, -0.04820695519447327, -0.013051259331405163, 0.02205708809196949, -0.00419164402410388, -0.06905017793178558, -0.02462810091674328, 0.02150474674999714, 0.08265351504087448, 0.00580720417201519, -0.027421031147241592, 0.020791349932551384, -0.033662036061286926, -0.0793357640504837, -0.044887397438287735, -0.013190601952373981, 0.006052690092474222, -0.10673206299543381, -0.014724885113537312, 0.03353147581219673, -0.00468407291918993, -0.011301491409540176, -0.048177093267440796, 0.03779294341802597, 0.006060791201889515, -0.02511703036725521, 0.03409290686249733, 0.006519152782857418, 0.0415414534509182, -0.009989408776164055, 0.09613252431154251, -0.0089871222153306, -0.04360416904091835, 0.01477824430912733, -0.026975976303219795, 0.01421597134321928, 0.002467087935656309, -0.10814595967531204, -0.04488610476255417, 0.0024820321705192327, -0.011461177840828896, -0.043974608182907104, -0.06562122702598572, -0.059761203825473785, -0.015154950320720673, 0.09147694706916809, 0.015947988256812096, -0.04157818853855133, 0.027458956465125084, 0.005972931627184153, -0.018432047218084335, -0.04904938489198685, 0.057360801845788956, 0.058947671204805374, 0.0008613741374574602, 0.006191608030349016, -0.040964916348457336, 0.028911761939525604, 0.04958070442080498, -0.008287135511636734, 0.05056986212730408, 0.05643089488148689, -0.03103676810860634, 0.029388461261987686, 0.0006741785909980536, 0.041974443942308426, 0.004779137670993805, -0.014804554171860218, 0.016988618299365044, 0.044026680290699005, 0.008674700744450092, 0.062262363731861115, 0.028861816972494125, -0.09075283259153366, -0.04668628051877022, -0.38402673602104187, -0.01056827511638403, -0.018006976693868637, -0.03356226161122322, -0.014382469467818737, -0.0716567113995552, 0.0037610346917062998, 0.023896168917417526, 0.036767903715372086, 0.02801072970032692, 0.04649830609560013, -0.03558962792158127, 0.0027525865007191896, -0.048141028732061386, 0.024578845128417015, 0.009038852527737617, 0.024560214951634407, -0.045255862176418304, -0.024308297783136368, -0.005360040348023176, -0.009188009425997734, -0.020894864574074745, -0.03385322913527489, -0.05895620211958885, 0.010702047497034073, 0.007724902126938105, 0.09874673932790756, 0.022312317043542862, 0.033376991748809814, -0.0944327563047409, 0.04091135784983635, 0.06640486419200897, -0.01439057569950819, -0.05967665836215019, 0.028037890791893005, -0.056740667670965195, -0.0021443720906972885, 0.03386366367340088, -0.012109869159758091, -0.008023799397051334, -0.007662490010261536, 0.046227484941482544, -0.001525069703347981, -0.09483521431684494, 0.01741807349026203, -0.0037530167028307915, -0.024859420955181122, -0.04323930665850639, 0.027382031083106995, 0.05163445323705673, 0.012713530100882053, 0.09121129661798477, 0.018399083986878395, 0.05403679609298706, 0.03194113448262215, 0.014579471200704575, -0.055253416299819946, 0.0043144733645021915, -0.007785047870129347, -0.012450803071260452, 0.030991168692708015, 0.03052060306072235, 0.04505445063114166, -0.07627321034669876, -0.03334965929389, 0.03854285180568695, -0.04997499659657478, -0.003687399672344327, 0.05397545173764229, -0.005267200991511345, -0.043465755879879, 0.11417319625616074, -0.004530034493654966, 0.011782791465520859, 0.05373333767056465, 0.07563749700784683, -0.022561203688383102, 0.03608886897563934, -0.0009273720788769424, 0.014202688820660114, 0.05013598874211311, 0.009906466118991375, 0.06193412095308304, -0.007228006608784199, -0.009254039265215397, 0.062498725950717926, 0.00397069938480854, -0.0037002803292125463, 0.040980201214551926, 0.030302001163363457, -0.017301736399531364, 0.015380299650132656, -0.018239077180624008, -0.04580818861722946, 0.022548455744981766, 0.020246129482984543, -0.2571091651916504, 0.03336947783827782, 0.030693605542182922, 0.03657239302992821, -0.009659327566623688, 0.02007434517145157, 0.0011386574478819966, -0.054613083600997925, -0.00789381843060255, 0.011206114664673805, -0.043801143765449524, 0.07663822174072266, 0.0504235103726387, -0.04072032496333122, 0.002544078975915909, 0.02155495434999466, 0.051818497478961945, 0.02496453747153282, 0.02283395081758499, -0.06812235713005066, -0.009633122943341732, -0.05103340744972229, 0.16262999176979065, 0.04816965386271477, -0.0298334751278162, 0.012472464703023434, 0.011867654509842396, 0.0028993210289627314, 0.011353463865816593, 0.01685469038784504, 0.0018860776908695698, 0.008079583756625652, 0.09555502980947495, -0.020568881183862686, 0.027890680357813835, -0.043118108063936234, -0.01646099053323269, 0.02042326331138611, 0.013328720815479755, -0.055476825684309006, -0.03266483545303345, 0.03909432888031006, -0.030496718361973763, 0.006860892288386822, 0.043629780411720276, -0.02450919710099697, -0.03425988182425499, -0.04467376321554184, -0.04072873666882515, -0.011914841830730438, -0.014017497189342976, -0.06006578356027603, -0.017427662387490273, -0.0023583488073199987, -0.0013029050314798951, 0.0403776578605175, -0.05093200132250786, -0.028685761615633965, 0.03609073907136917, 0.001777550089173019, 0.0006120486650615931, -0.053844232112169266, 0.07434521615505219, -0.013049058616161346, 0.019080396741628647 ]
[ 0.017906658351421356, 0.004622539505362511, -0.04514148458838463, 0.04291008785367012, -0.004911922384053469, -0.012063069269061089, 0.008011159487068653, -0.0065483516082167625, -0.02254079096019268, -0.015067433938384056, 0.004734257701784372, 0.015832077711820602, -0.019075872376561165, -0.041063327342271805, -0.0036238757893443108, -0.03536301478743553, 0.023128580302000046, -0.014445935375988483, 0.013712960295379162, -0.03933110460639, -0.045917753130197525, 0.03737647086381912, 0.02854529768228531, -0.006547905970364809, -0.012738813646137714, 0.011645825579762459, -0.001076428685337305, 0.001925579272210598, 0.014051579870283604, -0.14405639469623566, 0.02107575535774231, -0.032035283744335175, 0.026186423376202583, -0.044895872473716736, 0.00265974341891706, 0.04177190735936165, -0.0039594657719135284, -0.020155880600214005, -0.049777448177337646, -0.0037226518616080284, 0.04262375831604004, -0.019035080447793007, -0.00782384816557169, 0.03644225001335144, -0.005247379187494516, -0.041418563574552536, -0.05420805141329765, -0.013089116662740707, -0.005651422310620546, -0.01944698952138424, -0.03062370792031288, 0.02161562256515026, -0.025333166122436523, 0.03437501937150955, 0.003255314426496625, -0.010786432772874832, -0.021972429007291794, -0.007300055585801601, 0.010272025130689144, 0.01449916698038578, 0.014034859836101532, 0.012211373075842857, -0.04339529573917389, -0.04205779358744621, -0.009770778007805347, -0.045104362070560455, 0.017438745126128197, 0.020533524453639984, 0.01075954269617796, -0.008917750790715218, 0.022565342485904694, -0.0048195961862802505, -0.02227937988936901, -0.022156016901135445, -0.03280069679021835, -0.00014222919708117843, 0.03909920156002045, -0.02463064156472683, -0.04531673714518547, 0.012338362634181976, -0.03238282352685928, 0.009975988417863846, 0.035852864384651184, -0.008563337847590446, 0.0047493744641542435, 0.001995641039684415, -0.029424196109175682, 0.007975858636200428, 0.003980865702033043, -0.024110572412610054, -0.01630987785756588, 0.040993914008140564, 0.014016624540090561, 0.00889667309820652, -0.057543978095054626, -0.0013169440208002925, -0.03124900534749031, -0.014563116244971752, -0.030840707942843437, 0.8180469274520874, 0.011831690557301044, 0.026420753449201584, 0.023497585207223892, -0.0014132075011730194, 0.022337714210152626, 0.002730055246502161, -0.015554938465356827, -0.025569571182131767, 0.008332641795277596, -0.03687403351068497, 0.029601184651255608, -0.0018895226530730724, 0.014873667620122433, 0.013331485912203789, -0.004147473257035017, -0.005590341053903103, 0.0010692451614886522, -0.01758318953216076, -0.029934503138065338, 0.016172586008906364, 0.031675491482019424, -0.02416042611002922, 0.009012453258037567, -0.009010517038404942, -0.012323183938860893, -0.1818666309118271, -0.020754972472786903, -5.487919538404655e-33, 0.018192769959568977, -0.04246870428323746, 0.022001070901751518, -0.001015939167700708, 0.09267129004001617, 0.007872257381677628, -0.025444673374295235, -0.01571359671652317, 0.005958454683423042, -0.02805652655661106, -0.0021376023069024086, 0.0014900709502398968, -0.03165766969323158, -0.02413906715810299, 0.009846851229667664, -0.029596297070384026, 0.014777450822293758, 0.06993880867958069, -0.018245752900838852, -0.0005031678592786193, 0.01191974151879549, 0.0009264163672924042, -0.02347414568066597, -0.04389464482665062, 0.03126051276922226, -0.0030771996825933456, -0.016063997521996498, -0.010920836590230465, -0.012036602012813091, -0.04459334909915924, -0.019206231459975243, 0.006429449189454317, -0.015245960094034672, 0.010085000656545162, -0.01576293259859085, -0.0727563127875328, -0.014090701006352901, -0.012236841022968292, -0.03372592106461525, -0.014108041301369667, -0.03332538530230522, 0.01952580362558365, -0.03899603337049484, 0.0035735503770411015, -0.011570218950510025, -0.00959006603807211, 0.02898700162768364, 0.023070288822054863, 0.012104238383471966, 0.05972498282790184, 0.03401678428053856, 0.0069581735879182816, 0.020932810381054878, 0.0495457723736763, -0.03017265722155571, 0.0069537656381726265, 0.01159162912517786, 0.03472748026251793, 0.02235865592956543, 0.02624628320336342, -0.03150217607617378, -0.0021092360839247704, -0.005191577132791281, 0.020597420632839203, 0.02506675198674202, 0.04058367758989334, 0.02213515155017376, 0.040349461138248444, 0.015662124380469322, 0.025335896760225296, -0.04495672881603241, 0.025350721552968025, -0.005498999264091253, -0.029997512698173523, 0.01926691271364689, -0.049055758863687515, 0.023037375882267952, 0.02188107930123806, -0.03193840757012367, 0.024493616074323654, 0.0046896375715732574, -0.011438409797847271, -0.0032388800755143166, 0.027256304398179054, -0.031836215406656265, -0.00982357095927, 0.04919440299272537, 0.034188561141490936, -0.014549949206411839, -0.020970419049263, 0.036202214658260345, 0.048820510506629944, 0.02203274518251419, -0.05277322605252266, 0.0021062325686216354, 5.388912057338709e-33, -0.007910487242043018, 0.008334883488714695, -0.05076706036925316, 0.0024152055848389864, 0.04026635363698006, -0.06281041353940964, 0.06147213280200958, 0.04927773401141167, -0.01960095763206482, -0.0038610866758972406, -0.008244611322879791, 0.0076661547645926476, -0.010557536967098713, 0.03835609182715416, 0.013029539957642555, 0.024933239445090294, 0.02668694406747818, 0.0403609424829483, 0.02713157795369625, -0.003766219364479184, -0.016377868130803108, 0.0037164895329624414, 0.01786172017455101, 0.02329086884856224, 0.004647258203476667, 0.008389224298298359, 0.01586511731147766, -0.006949672941118479, -0.04160485416650772, -0.023777317255735397, 0.03535601496696472, -0.012406953610479832, -0.014244738034904003, -0.015099813230335712, -0.025596553459763527, 0.020317332819104195, -0.012479042634367943, 0.019861100241541862, -0.009127126075327396, 0.00031045899959281087, 0.07230284065008163, 0.010988685302436352, -0.040199991315603256, 0.032087959349155426, -0.01991054229438305, -0.017906008288264275, -0.0055791414342820644, 0.024456655606627464, -0.02156749553978443, -0.0002454339701216668, -0.008360792882740498, 0.03763040527701378, 0.04950921609997749, 0.04140573367476463, -0.003931598737835884, -0.0416402705013752, -0.0026148802135139704, 0.05305192619562149, -0.0393778532743454, 0.03041354939341545, -0.015322912484407425, -0.03945092111825943, -0.0224210973829031, 0.03704006224870682, 0.013932728208601475, -0.02859451249241829, 0.0005944047006778419, 0.001454401295632124, -0.022086208686232567, 0.020369742065668106, 0.025175996124744415, -0.003252347931265831, -0.024914290755987167, 0.07105175405740738, -0.03795577213168144, -0.009264455176889896, 0.008416863158345222, -0.0018380453111603856, 0.0027094045653939247, 0.03907383233308792, 0.049684543162584305, -0.031840067356824875, 0.01681298017501831, -0.029620077461004257, 0.03242238610982895, -0.010348355397582054, -0.01653946377336979, -0.003299652598798275, 0.02655234932899475, 0.0011981084244325757, 0.01785012148320675, -0.04222654923796654, -0.015748968347907066, 0.03438766673207283, 0.013003675267100334, -1.1865756377460457e-8, 0.01838264986872673, -0.0005583909223787487, -0.004402168095111847, 0.018989475443959236, 0.03098328225314617, 0.025118384510278702, -0.029407745227217674, -0.009714075364172459, -0.029835183173418045, 0.010658211074769497, 0.014344451017677784, -0.014899276196956635, -0.010183819569647312, 0.0036424093414098024, 0.02950146049261093, 0.0017984912265092134, 0.004160841461271048, 0.013788538984954357, 0.0330941341817379, -0.013288919813930988, 0.02330642193555832, 0.024818895384669304, -0.012992164120078087, -0.02122056856751442, -0.04892101138830185, -0.0020807168912142515, 0.06113889813423157, -0.06204811483621597, -0.003686299081891775, -0.03198232129216194, 0.002507914789021015, -0.02989182434976101, -0.016824375838041306, 0.052438147366046906, -0.020902160555124283, -0.025551337748765945, -0.001737578073516488, 0.03252681717276573, -0.017707888036966324, -0.0011793609010055661, -0.05028567090630531, -0.01964060589671135, 0.005035975016653538, -0.04766517132520676, -0.038897380232810974, 0.011255593039095402, -0.02669409103691578, 0.01890401728451252, 0.057263486087322235, -0.008231442421674728, 0.026838472113013268, -0.012580697424709797, 0.020305685698986053, -0.028588267043232918, 0.02225523442029953, 0.007519317790865898, -0.01715025305747986, 0.05789311230182648, 0.001557028735987842, 0.008588593453168869, 0.031924549490213394, 0.03267301619052887, -0.0418645478785038, -0.012882610782980919 ]
redpanda-prune-retention
https://markhneedham.com/blog/2023/07/18/redpanda-prune-retention
false
2023-07-27 11:44:37
Python/Poetry: Library not loaded: no such file, not in dyld cache
[ "poetry", "python", "til" ]
[ "TIL" ]
As I https://www.markhneedham.com/blog/2023/07/24/vscode-poetry-python-interpreter/[mentioned in a previous blog post^], I've been using Python's Poetry library, but today it stopped working! In this blog post, I'll explain what happened and how I got it working again. It started off innocent enough, with me trying to create a new project: [source, bash] ---- poetry init ---- But instead of seeing the usual interactive wizard, I got the following error: .Output [source, text] ---- dyld[20269]: Library not loaded: /opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/Python Referenced from: <1B2377F9-2187-39A9-AA98-20E438024DE2> /Users/markhneedham/Library/Application Support/pypoetry/venv/bin/python Reason: tried: '/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.11/Python' (no such file, not in dyld cache) ---- It seems to be looking for Python version 3.11.3 in a variety of different places. I installed Python using brew, so let's check what's in that directory: [source, bash] ---- ls -lh /opt/homebrew/Cellar/python@3.11 ---- .Output [source, text] ---- total 0 drwxr-xr-x@ 13 markhneedham admin 416B 30 Jun 12:50 3.11.4_1 ---- There isn't a Python 3.11.3 and I don't recall moving it, but it is possible that a `brew update` might have updated the Python version. It also mentions that the Python version was referenced from `/Users/markhneedham/Library/Application Support/pypoetry/venv/bin/python`, which I thought might be a symbolic link that I could update. Unfortunately, it's a binary file so we can't do that. [source, bash] ---- file "/Users/markhneedham/Library/Application Support/pypoetry/venv/bin/python" ---- .Output [source, text] ---- /Users/markhneedham/Library/Application Support/pypoetry/venv/bin/python: Mach-O 64-bit executable arm64 ---- Luckily https://stackoverflow.com/questions/70920378/poetry-returns-dyld-library-not-loaded-image-not-found-following-brew-ins[StackOverflow came to the rescue^] with some classic turn it off and on again advice. So let's first uninstall Poetry: [source, bash] ---- curl -sSL https://install.python-poetry.org | python - --uninstall ---- And then reinstall it: [source, bash] ---- curl -sSL https://install.python-poetry.org | python - ---- It works for me after doing this and Poetry's `python` executable now uses brew's version of Python: [source, bash] ---- "/Users/markhneedham/Library/Application Support/pypoetry/venv/bin/python" --version ---- .Output [source, text] ---- Python 3.11.4 ----
In this post, we'll learn how to work around an error when using Python's Poetry library.
uploads/2023/07/poetry-python-reinstall-banner.png
[ 0.00629486283287406, -0.00838233157992363, -0.01773332618176937, 0.011685204692184925, 0.08541609346866608, 0.03180307149887085, 0.022946109995245934, 0.038008809089660645, -0.016521206125617027, -0.037820469588041306, -0.02253902517259121, -0.015833429992198944, -0.07933125644922256, 0.020038170740008354, -0.016660941764712334, 0.06824996322393417, 0.09122540056705475, -0.005660629365593195, 0.03169192373752594, 0.02426224574446678, 0.01801920123398304, 0.07612205296754837, -0.030980682000517845, 0.019570939242839813, 0.0036320642102509737, 0.009161111898720264, 0.03162481635808945, -0.009834043681621552, -0.07045948505401611, -0.020957130938768387, 0.01142145600169897, 0.0027038685511797667, 0.009783027693629265, -0.04752769321203232, 0.02706429548561573, 0.050448592752218246, -0.04139179736375809, 0.03295798972249031, -0.004922827240079641, 0.030175887048244476, -0.05809682607650757, 0.015417101792991161, 0.019313106313347816, 0.024892587214708328, -0.04731062054634094, 0.0373537577688694, -0.040053483098745346, 0.01619410328567028, 0.0313224196434021, -0.006869220174849033, -0.037935689091682434, -0.001621159608475864, -0.01029249094426632, -0.056026287376880646, 0.025176921859383583, 0.03682161122560501, -0.007429997902363539, -0.08380003273487091, 0.04136989638209343, -0.00021427034516818821, 0.008221127092838287, -0.006776501424610615, -0.0178496353328228, 0.03537565842270851, 0.017570732161402702, -0.0352068655192852, -0.030275970697402954, 0.03334824740886688, -0.04640091955661774, -0.005399040412157774, 0.02370825968682766, 0.043389759957790375, -0.035987529903650284, -0.006989323068410158, 0.032808538526296616, -0.008303257636725903, -0.012258238159120083, 0.06937060505151749, 0.027606284245848656, 0.05281709134578705, 0.0005189284565858543, 0.026845302432775497, 0.02186676673591137, 0.035480428487062454, -0.01620876044034958, -0.017008228227496147, -0.00918822456151247, 0.004227230791002512, -0.03726715222001076, 0.030370384454727173, -0.000006096468041505432, -0.06456093490123749, 0.03333611786365509, 0.010032379999756813, -0.0007026558741927147, 0.0006886215414851904, -0.005537078715860844, 0.023628603667020798, 0.009561155922710896, 0.0029849715065211058, -0.045562684535980225, -0.04194140061736107, 0.011572666466236115, 0.014567256905138493, -0.0635107085108757, -0.002904260065406561, -0.018762556836009026, -0.018772711977362633, -0.0007149151642806828, 0.004868987947702408, 0.012908009812235832, 0.031854815781116486, -0.0066536362282931805, -0.025815891101956367, -0.06283615529537201, 0.06511124223470688, 0.00816822424530983, -0.061394572257995605, -0.018215347081422806, 0.02966696210205555, 0.03733697906136513, 0.025393540039658546, -0.02992917038500309, 0.08054586499929428, 0.013954490423202515, 0.043772608041763306, -0.02226262539625168, 0.06868702173233032, 0.0024941989686340094, -0.06696158647537231, -0.02216457761824131, 0.05398213490843773, -0.015519102104008198, -0.006448463071137667, -0.01030382513999939, 0.014285209588706493, -0.011133543215692043, 0.0031588219571858644, 0.061973366886377335, 0.04393450915813446, -0.03356762230396271, -0.007990112528204918, -0.016704563051462173, 0.018846983090043068, 0.036451369524002075, 0.04049915447831154, -0.009408120065927505, -0.03737588971853256, -0.03159081190824509, 0.003375330939888954, 0.0017234187107533216, 0.029544992372393608, 0.06509596109390259, -0.02506801299750805, 0.012776179239153862, 0.08808846771717072, 0.058371614664793015, 0.03893519937992096, -0.053602006286382675, 0.00039554445538669825, 0.02096829004585743, 0.04623250290751457, 0.014792096801102161, 0.07035405933856964, 0.01648959331214428, -0.018208328634500504, -0.011864383704960346, 0.03619597852230072, -0.023292580619454384, 0.020190933719277382, -0.05096416175365448, -0.08616382628679276, 0.06821832060813904, -0.04817507043480873, -0.02269313670694828, -0.00017140178533736616, 0.09490177035331726, 0.03857028856873512, 0.056597594171762466, -0.0021879079286009073, -0.08454844355583191, 0.0586618110537529, -0.002700397279113531, 0.038869597017765045, 0.01948167197406292, -0.013279798440635204, 0.08967754989862442, 0.009736876003444195, 0.006748326122760773, 0.03477596864104271, -0.07764331996440887, -0.06743938475847244, -0.027785349637269974, 0.007779071573168039, 0.06186262518167496, -0.04841654747724533, -0.0313425175845623, 0.04485613480210304, 0.041441790759563446, 0.05202347785234451, 0.03341248258948326, 0.0032582436688244343, 0.0028945854865014553, -0.0642746165394783, -0.05258825793862343, 0.04466324299573898, 0.056523121893405914, -0.03213765099644661, -0.03933627903461456, -0.0003496139543130994, -0.015832940116524696, -0.034509893506765366, 0.024900274351239204, -0.041292399168014526, 0.06742748618125916, 0.017119383439421654, 0.03235657140612602, -0.051507461816072464, 0.04697997868061066, -0.043684594333171844, 0.03563637286424637, -0.028956245630979538, 0.009667611680924892, -0.052908699959516525, -0.010752469301223755, 0.11322493851184845, 0.06694589555263519, -0.049801141023635864, -0.0616820827126503, -0.017625192180275917, 0.006960767786949873, -0.0521639809012413, -0.014256628230214119, 0.012064597569406033, -0.012707050889730453, -0.0011562755098566413, -0.047063492238521576, -0.0138120511546731, 0.0313781313598156, -0.018743528053164482, 0.007736797910183668, 0.06592252105474472, -0.028582748025655746, 0.03392985463142395, -0.009623019956052303, -0.00503822136670351, -0.018381183966994286, -0.03745218366384506, -0.03972155600786209, -0.01203950960189104, 0.049945149570703506, -0.004199941176921129, 0.035526540130376816, -0.023039503023028374, -0.02459579147398472, -0.009378544986248016, -0.06960748881101608, 0.006771068088710308, 0.04772195965051651, 0.03615541383624077, -0.05209996551275253, 0.021237894892692566, -0.007649813778698444, 0.018503328785300255, -0.011515523307025433, -0.027317294850945473, -0.026217948645353317, -0.03777393698692322, 0.015046090818941593, 0.03634464740753174, 0.01525224931538105, 0.021752040833234787, -0.008597780019044876, 0.012859201058745384, 0.02325565554201603, 0.029382500797510147, 0.04772896319627762, -0.008706822991371155, -0.006924668326973915, -0.060091450810432434, -0.01863483153283596, 0.049160853028297424, -0.06412012875080109, -0.015709038823843002, -0.040367599576711655, -0.03917057439684868, 0.025903480127453804, -0.07622061669826508, -0.03883953019976616, -0.030962424352765083, 0.010327625088393688, 0.0406242273747921, 0.008686271496117115, 0.005197939462959766, 0.03958612307906151, 0.02581733651459217, 0.006578410975635052, 0.028260890394449234, -0.0025028521195054054, 0.05945643410086632, 0.024660363793373108, 0.023950260132551193, 0.03934202343225479, 0.009616930037736893, -0.002405068837106228, -0.02040080912411213, 0.010149732232093811, -0.026652228087186813, -0.25923091173171997, 0.03194892778992653, -0.023217935115098953, -0.03589034080505371, 0.012627004645764828, -0.010016459040343761, -0.002610366092994809, -0.04119736701250076, -0.03268614038825035, -0.020533058792352676, -0.04132017865777016, -0.051256563514471054, 0.007431117817759514, 0.042690735310316086, -0.018024906516075134, -0.005030028056353331, -0.01515071839094162, -0.04566085711121559, 0.01042652316391468, 0.02007770910859108, -0.005866517778486013, -0.04250049218535423, -0.0077413409017026424, 0.032402168959379196, 0.006036241538822651, 0.04265619069337845, -0.07008472830057144, 0.05981237441301346, -0.05230534449219704, -0.009378938935697079, -0.02755279839038849, -0.02406064234673977, -0.0028623270336538553, 0.007681176066398621, -0.020088862627744675, -0.011919576674699783, 0.01926734857261181, -0.007504220120608807, 0.02614678628742695, 0.015105105936527252, -0.020058533176779747, -0.05089378356933594, -0.012435831129550934, -0.011464294977486134, 0.0788155198097229, -0.019927920773625374, -0.0996144488453865, -0.00020131700148340315, -0.04463914781808853, 0.05803658813238144, -0.047274090349674225, -0.06365956366062164, -0.03531479090452194, 0.04173298552632332, 0.023355143144726753, 0.006665055174380541, -0.0011533854994922876, -0.02530229091644287, -0.034500785171985626, -0.03067871741950512, -0.011777625419199467, -0.027760669589042664, -0.02513151429593563, -0.04682422801852226, -0.009475188329815865, -0.04716235026717186, -0.036706261336803436, -0.01882491447031498, 0.048175618052482605, 0.0437178798019886, -0.05850176885724068, 0.015002647414803505, -0.0193164125084877, -0.09629424661397934, 0.00375485816039145, -0.0125096645206213, -0.04854172095656395, -0.0025499272160232067, 0.01687992550432682, 0.04346073418855667, -0.050806351006031036, -0.026262085884809494, 0.01366772223263979, -0.006429680157452822, -0.019180813804268837, -0.007709668483585119, 0.0040164305828511715, 0.015856515616178513, -0.005994301289319992, -0.0011183872120454907, 0.05136900395154953, -0.018792707473039627, -0.04244060814380646, 0.00016497155593242496, -0.002406933344900608, 0.010479849763214588, 0.05089695006608963, 0.015489582903683186, 0.020389685407280922, 0.07856456190347672, 0.02325313910841942, -0.048591498285532, -0.029276415705680847, -0.030329404398798943, 0.0014239635784178972, 0.004674100317060947, -0.05279530584812164, 0.006919069215655327, 0.03767302632331848, 0.028458869084715843, -0.02049306593835354, -0.05348341912031174, 0.020969295874238014, -0.03378242254257202, -0.016214441508054733, -0.04272078350186348, 0.046064190566539764, 0.01927156373858452, 0.0020874766632914543, 0.02464965172111988, -0.055088624358177185, 0.038125306367874146, 0.007477629464119673, -0.013087090104818344, -0.052830860018730164, -0.044244732707738876, 0.0006496708374470472, -0.001903301919810474, 0.0010955884354189038, -0.0034098553005605936, -0.03176979348063469, 0.012044192291796207, 0.029293665662407875, -0.035585902631282806, 0.029824471101164818, -0.02413015253841877, -0.018878363072872162, -0.03006068803369999, 0.01181868091225624, 0.005873770918697119, -0.020215455442667007, -0.0004073547606822103, 0.019345419481396675, 0.01577817089855671, 0.032289180904626846, 0.03533405438065529, 0.028322700411081314, 0.012454143725335598, -0.009669037535786629, -0.01971512846648693, 0.016557861119508743, -0.03812747448682785, 0.014073618687689304, -0.0336831733584404, -0.040807727724313736, -0.005485209636390209, 0.022442707791924477, -0.0066866809502244, 0.01893077977001667, -0.03625829145312309, 0.044953905045986176, -0.06282924860715866, -0.014591197483241558, 0.005905488505959511, -0.011517113074660301, 0.04144550859928131, 0.014863811433315277, 0.03774601221084595, -0.01649961993098259, 0.002436318201944232, 0.0058607617393136024, 0.06444474309682846, -0.019308554008603096, 0.019335944205522537, -0.00017258079606108367, -0.004652625415474176, 0.007792492862790823, 0.020012520253658295, 0.013952980749309063, 0.009141160175204277, -0.00040110177360475063, -0.04653661698102951, 0.03152138367295265, 0.01820165477693081, 0.04709966480731964, 0.013408243656158447, -0.033460620790719986, -0.004939665552228689, -0.020006908103823662, -0.016996487975120544, -0.05055602639913559, 0.029682675376534462, -0.00042281573405489326, 0.025485839694738388, -0.025550825521349907, -0.09039240330457687, -0.0017853140598163009, 0.032948270440101624, -0.01123992633074522, -0.004967507440596819, -0.018033452332019806, -0.0027973393443971872, -0.02668551355600357, 0.01543634943664074, 0.08096440136432648, -0.06323006749153137, -0.005457757972180843, -0.015440734103322029, 0.020655591040849686, 0.006628046743571758, 0.03286304324865341, -0.06258435547351837, -0.02039782702922821, -0.005958098452538252, 0.018175292760133743, -0.024835212156176567, -0.028568794950842857, 0.008316844701766968, 0.024379819631576538, -0.006432904861867428, 0.02563748136162758, -0.03529985249042511, -0.012664664536714554, -0.009687136858701706, -0.04343923181295395, -0.0001932228624355048, -0.0018848649924620986, -0.0027134933043271303, 0.00543036637827754, -0.007756759878247976, 0.049575239419937134, -0.026440246030688286, 0.04153797775506973, 0.007330048829317093, -0.012131692841649055, 0.028647150844335556, -0.035281743854284286, 0.009361750446259975, -0.019013455137610435, 0.02391848713159561, 0.006919428240507841, 0.011356208473443985, -0.0063311867415905, -0.02533414587378502, -0.046305738389492035, 0.009891115128993988, -0.02912052348256111, -0.011113044805824757, -0.011512162163853645, 0.048047762364149094, -0.010602892376482487, 0.04261429235339165, 0.006952111143618822, -0.04114606976509094, 0.04993663355708122, -0.05340809375047684, -0.02746601030230522, -0.014704341068863869, -0.0694471001625061, 0.01790812239050865, 0.023825641721487045, 0.009143868461251259, -0.06218862906098366, 0.040979012846946716, 0.015524731948971748, 0.018848810344934464, 0.06995951384305954, -0.025378337129950523, 0.02683921903371811, -0.05206848308444023, -0.04218930006027222, -0.10223034024238586, -0.02509036660194397, 0.02382405288517475, -0.004966327454894781, -0.03037494607269764, 0.013868195004761219, -0.015570931136608124, 0.027964908629655838, -0.05947456881403923, -0.040108922868967056, 0.03614411503076553, -0.02815343625843525, 0.004845381714403629, 0.008274237625300884, -0.04155811294913292, 0.030383292585611343, 0.03448501601815224, -0.038203828036785126, -0.030622849240899086, 0.0032830664422363043, 0.0570441335439682, -0.005204054061323404, 0.01586081273853779, 0.005412463564425707, -0.0173746719956398, 0.06458581984043121, 0.016691749915480614, 0.027935074642300606, 0.03168181702494621, -0.002771056955680251, 0.02369784191250801, 0.04348403215408325, 0.00652407668530941, 0.026859618723392487, 0.014001058414578438, -0.0012647800613194704, -0.04065944254398346, 0.05172552540898323, -0.0015168589306995273, 0.014075110666453838, -0.016354896128177643, 0.06118052825331688, 0.008578715845942497, -0.01717802882194519, -0.036432746797800064, 0.012454572133719921, -0.047604601830244064, -0.04556291922926903, -0.02758053131401539, 0.01277126930654049, -0.03555474802851677, 0.06529318541288376, -0.008168278262019157, -0.0029177905526012182, 0.06253787130117416, -0.013141159899532795, -0.005531770642846823, 0.04012952744960785, 0.06910676509141922, 0.058852419257164, 0.009400631301105022, 0.03461020439863205, 0.06922353804111481, -0.03929675370454788, -0.036950383335351944, -0.0137901920825243, -0.007679858710616827, -0.02474275603890419, -0.043439120054244995, 0.02072649821639061, 0.05395164340734482, -0.006697074975818396, 0.07981085032224655, -0.022583559155464172, 0.03321879357099533, -0.020331602543592453, 0.03981786221265793, 0.006108971778303385, 0.04806893318891525, -0.00639282027259469, 0.03947855159640312, -0.02859468199312687, -0.0206634271889925, 0.030468260869383812, -0.038661278784275055, 0.0008848465513437986, 0.02318347617983818, 0.030114034190773964, 0.005861958954483271, 0.022190313786268234, 0.0615980289876461, 0.06526757031679153, -0.044809285551309586, -0.048517856746912, -0.0036433490458875895, 0.03176822513341904, 0.004401742946356535, -0.0002750326821114868, -0.0170869342982769, 0.00019018497550860047, 0.007218048442155123, -0.04770807921886444, -0.01504945196211338, -0.022386614233255386, 0.006655603181570768, 0.0371130146086216, -0.0317876860499382, -0.0008680847240611911, 0.020249536260962486, 0.007020070217549801, -0.03753826022148132, -0.04144314303994179, -0.04252495616674423, -0.027538621798157692, -0.06610716879367828, 0.0029221419245004654, 0.019907396286725998, -0.017136026173830032, -0.023666376248002052, -0.04661092162132263, 0.005479872692376375, 0.009205417707562447, 0.014894968830049038, -0.05587496608495712, -0.05182581767439842, 0.005862636025995016, 0.019991513341665268, -0.010071735829114914, 0.028826942667365074, 0.07023431360721588, -0.011223264038562775, -0.006095037329941988, -0.01603347808122635, 0.026178020983934402, 0.04915797710418701, 0.024914640933275223, 0.034015953540802, -0.08916028589010239, 0.04074697196483612, 0.01859907992184162, 0.04021510109305382, -0.061243366450071335, -0.0009295556810684502, 0.033078934997320175, -0.006738107185810804, 0.04688430577516556, -0.0024910918436944485, 0.023585539311170578, -0.04221192002296448, -0.02782028168439865, 0.014985534362494946, 0.004544219933450222, 0.04264068603515625, -0.026469308882951736, 0.08188090473413467, 0.009080951102077961, 0.004886787384748459, -0.0238816998898983, -0.021998871117830276, 0.0012014645617455244, -0.0055969273671507835, -0.012138030491769314, -0.004653312265872955, -0.05817435309290886, -0.049650851637125015, 0.011305626481771469, 0.0023248926736414433, -0.06438792496919632, -0.0540023073554039, -0.011096213944256306, 0.008056413382291794, -0.025213416665792465, 0.04816533997654915, -0.036785949021577835, -0.02214534394443035, 0.0033817701041698456, -0.05139053985476494, 0.010746942833065987, 0.02688603661954403, 0.03386567533016205, 0.017226196825504303, 0.01145367231220007, -0.0465603768825531, -0.03142160549759865, 0.010709761641919613, 0.02992291748523712, 0.03204234316945076, -0.033664219081401825, 0.02067456766963005 ]
[ -0.08342462033033371, -0.02895459160208702, -0.032507285475730896, -0.0077867996878921986, 0.02360193431377411, -0.09334412217140198, -0.07657291740179062, 0.006595959886908531, -0.025839926674962044, -0.018585942685604095, 0.024658866226673126, -0.036312494426965714, 0.009277411736547947, -0.031173987314105034, 0.07776288688182831, 0.013877185992896557, 0.00014449241280090064, -0.08435681462287903, -0.017552495002746582, 0.015034599229693413, -0.010303828865289688, 0.023432809859514236, -0.01133770402520895, -0.05602942407131195, -0.036588314920663834, 0.06282917410135269, 0.018194910138845444, -0.028547480702400208, -0.004252475220710039, -0.18205654621124268, 0.024501806125044823, -0.002972519025206566, 0.01686440408229828, -0.03112584538757801, 0.027720822021365166, 0.07220583409070969, 0.008939365856349468, -0.009953945875167847, -0.0071680922992527485, 0.06020686775445938, 0.04248414188623428, 0.030948301777243614, -0.08752269297838211, -0.01109889056533575, 0.04694409668445587, -0.0035244838800281286, -0.0243380144238472, -0.019021552056074142, 0.00021144300990272313, -0.01734299771487713, -0.04952551797032356, 0.00805235281586647, -0.010255479253828526, -0.018878035247325897, -0.016192713752388954, 0.02744278497993946, 0.04123573750257492, 0.11245878040790558, 0.003920442890375853, -0.02407822199165821, -0.002856663428246975, -0.026579005643725395, -0.14711132645606995, 0.10022244602441788, 0.00977606512606144, 0.037669118493795395, -0.04772774502635002, -0.03345957398414612, -0.0005159088177606463, 0.08169148117303848, -0.02221095561981201, -0.026195675134658813, -0.022471949458122253, 0.06335162371397018, 0.007216565310955048, -0.02736709453165531, 0.034233152866363525, -0.008005006238818169, 0.07526865601539612, -0.030114341527223587, -0.028034478425979614, -0.02043372578918934, -0.0032167688477784395, -0.03402618691325188, -0.029436523094773293, 0.0031057402957230806, -0.013093633577227592, 0.07480915635824203, 0.02828977443277836, -0.0074168541468679905, 0.0217286329716444, -0.04303836449980736, 0.04478127881884575, 0.03797907382249832, -0.09614883363246918, -0.017940178513526917, 0.04018644243478775, 0.01745009981095791, -0.04898069053888321, 0.4065302014350891, -0.02527173049747944, -0.01510525867342949, 0.03589554503560066, 0.030239807441830635, 0.024525851011276245, 0.0028263956774026155, -0.019883450120687485, -0.02310509979724884, 0.011192689649760723, -0.030066316947340965, 0.02906578779220581, -0.019624702632427216, 0.10607291758060455, -0.052517618983983994, 0.04537477344274521, -0.02803376317024231, -0.032027799636125565, 0.002607436617836356, -0.02422214113175869, 0.028026636689901352, -0.0395190455019474, -0.005405636038631201, 0.03876607120037079, 0.003565874183550477, 0.01196496281772852, 0.013996007852256298, 0.0028626995626837015, 0.05059385672211647, 0.012654834426939487, -0.012957933358848095, 0.02390262857079506, -0.03299865126609802, -0.060726508498191833, -0.027151010930538177, -0.0036354928743094206, 0.04170611873269081, 0.00553573714569211, -0.010051000863313675, 0.04776255413889885, -0.0034798893611878157, 0.017929155379533768, -0.05976921319961548, 0.018652137368917465, 0.037048738449811935, -0.014945423230528831, 0.05519461631774902, 0.011652423068881035, 0.0011292152339592576, -0.04550105705857277, 0.008792226202785969, 0.0053975824266672134, 0.025027628988027573, -0.030787533149123192, -0.02598239853978157, 0.03926931321620941, 0.046981558203697205, 0.0720326378941536, -0.02445407770574093, -0.05248629301786423, -0.0015955949202179909, -0.0068510365672409534, -0.03923540562391281, -0.042222317308187485, -0.003832802874967456, 0.0032661643344908953, -0.08509226888418198, -0.03735284507274628, -0.0020110327750444412, -0.011706223711371422, -0.05912582948803902, 0.034467440098524094, 0.004281015135347843, -0.024651922285556793, 0.009047434665262699, 0.016111062839627266, -0.06653713434934616, -0.03025083988904953, 0.029424935579299927, 0.08677603304386139, 0.03778242692351341, -0.011212692596018314, 0.02430388517677784, -0.027637625113129616, -0.0008511574706062675, -0.03721241652965546, -0.09518945217132568, -0.04644555598497391, -0.02696124278008938, 0.007081239018589258, -0.020802654325962067, -0.014361864887177944, -0.002646421315148473, -0.027459247037768364, 0.009533735923469067, -0.003301711520180106, 0.010137301869690418, 0.018060870468616486, -0.014541547745466232, 0.008264703676104546, -0.01785130985081196, 0.003726137802004814, 0.07337893545627594, 0.0008179520373232663, 0.030932554975152016, -0.056181661784648895, 0.020669829100370407, 0.02903755195438862, -0.04996298998594284, 0.05717656388878822, 0.011983961798250675, -0.04560096561908722, -0.021770834922790527, 0.017941026017069817, -0.0009382382850162685, -0.04146737605333328, -0.037049371749162674, -0.04660584032535553, -0.004815765656530857, 0.03455383703112602, 0.02155688963830471, -0.08191902190446854, -0.09056282043457031, -0.07116685807704926, -0.34375834465026855, 0.015829283744096756, -0.0041176313534379005, -0.030915744602680206, 0.012115135788917542, -0.061408113688230515, -0.015214327722787857, -0.047607455402612686, -0.033906690776348114, 0.046982552856206894, 0.08121177554130554, -0.013534060679376125, 0.06953804939985275, -0.06490238010883331, 0.040900975465774536, 0.028352320194244385, -0.01705467887222767, -0.038012728095054626, -0.034590549767017365, 0.014340490102767944, 0.007867405191063881, -0.04846755042672157, -0.03076746314764023, -0.05848781019449234, -0.031743697822093964, -0.03888875991106033, 0.10836334526538849, 0.04446278512477875, 0.09929268062114716, -0.00928198266774416, 0.04437534138560295, 0.027923572808504105, -0.03309401124715805, -0.14220181107521057, -0.012427864596247673, 0.027063902467489243, 0.035130031406879425, 0.044336289167404175, 0.031542494893074036, -0.01266663707792759, -0.022900793701410294, 0.04928109794855118, -0.02173273265361786, -0.006638271268457174, -0.022926170378923416, 0.01143624633550644, 0.009400907903909683, -0.02562086284160614, -0.004996456205844879, 0.0629911795258522, -0.00024846510495990515, 0.06735505163669586, -0.013678454793989658, 0.04060962051153183, -0.044180937111377716, 0.0018269678112119436, -0.08564525842666626, 0.007644671015441418, 0.014083202928304672, -0.0157445278018713, 0.04793039709329605, 0.06465812027454376, 0.038629185408353806, -0.040936995297670364, -0.011918369680643082, -0.013182761147618294, 0.023986589163541794, -0.014034353196620941, 0.0801129937171936, 0.000440862902905792, 0.008803518489003181, 0.09023213386535645, -0.03006030060350895, 0.007511877454817295, -0.005072667729109526, 0.06256742030382156, 0.02111544832587242, 0.042723532766103745, 0.04090086743235588, -0.025215288624167442, 0.02706926502287388, 0.008114340715110302, 0.02984463982284069, -0.0410182811319828, -0.007262558676302433, 0.03263447433710098, -0.03941318020224571, -0.007987797260284424, 0.05543709546327591, 0.00985998660326004, 0.0007131098536774516, 0.0017087840242311358, 0.010520093142986298, -0.02018064633011818, 0.07890351116657257, 0.043289173394441605, -0.21898625791072845, 0.015049797482788563, 0.07180290669202805, 0.036592304706573486, -0.0120887765660882, 0.02483651228249073, 0.04363858699798584, -0.07055867463350296, -0.03190980851650238, 0.0028778882697224617, 0.06040618568658829, 0.023138079792261124, -0.012046078220009804, -0.007101592142134905, 0.0009075452690012753, -0.026771487668156624, 0.08963599801063538, -0.005919006187468767, -0.004843816626816988, 0.008578414097428322, -0.001069774036295712, -0.01704554818570614, 0.143535777926445, 0.008483835496008396, -0.03234099596738815, -0.024209458380937576, -0.004839221481233835, 0.03982428461313248, 0.024878252297639847, 0.018623722717165947, -0.037960220128297806, 0.014430301263928413, 0.030820000916719437, -0.020826591178774834, 0.03239387273788452, -0.03881964460015297, -0.014862638898193836, 0.023407738655805588, 0.0530928336083889, 0.00000746640716897673, -0.0387469120323658, 0.0495382696390152, -0.06482700258493423, 0.026661718264222145, 0.035067275166511536, 0.014189246110618114, 0.010125202126801014, -0.024312300607562065, -0.056779440492391586, -0.003979186061769724, -0.000856458384077996, -0.014929544180631638, 0.014164880849421024, 0.02670385129749775, 0.037721145898103714, 0.07558383792638779, 0.02519974485039711, -0.008997039869427681, 0.011494052596390247, 0.014963881112635136, 0.020466355606913567, -0.05229520797729492, 0.14959803223609924, 0.023031659424304962, -0.012366507202386856 ]
[ 0.006589589640498161, -0.017904071137309074, -0.03540557995438576, -0.008191985078155994, 0.03114720806479454, -0.0057951658964157104, -0.022166699171066284, 0.008026324212551117, -0.009614850394427776, -0.06153323873877525, -0.02305651642382145, 0.016567083075642586, 0.010752595961093903, 0.017668472602963448, 0.021826663985848427, -0.0002729797561187297, 0.007450282573699951, 0.0046180724166333675, 0.022509997710585594, -0.003398136468604207, -0.03210175782442093, 0.06681233644485474, 0.05003919079899788, 0.023772787302732468, 0.024825824424624443, 0.013201218098402023, -0.06209269538521767, 0.02671448513865471, 0.016398081555962563, -0.10906887799501419, -0.014674955978989601, -0.001423204317688942, 0.009208252653479576, -0.0437852181494236, 0.04082345962524414, 0.02350580133497715, 0.002395674819126725, 0.028253113850951195, -0.0033513163216412067, 0.012326724827289581, -0.004372784402221441, 0.002746336627751589, -0.018885020166635513, 0.017086170613765717, -0.0364762581884861, -0.014988311566412449, -0.04677373543381691, 0.009050536900758743, -0.02440400794148445, -0.01480285543948412, -0.022353118285536766, -0.0001765602792147547, 0.009990794584155083, 0.01606629230082035, 0.022264637053012848, 0.029104961082339287, 0.04148537293076515, 0.0025360912550240755, 0.017272869125008583, -0.02726106159389019, 0.009707911871373653, 0.006295194383710623, -0.047864172607660294, -0.021843213587999344, -0.01089440193027258, -0.04398033767938614, -0.022840548306703568, -0.0035276582930237055, 0.03460236266255379, 0.01925252564251423, -0.010721351020038128, -0.018847044557332993, -0.012733533047139645, -0.015749767422676086, 0.029026253148913383, 0.0014628212666139007, 0.01229631807655096, -0.03584325313568115, -0.013248599134385586, 0.006457432173192501, -0.05240493267774582, 0.02985559031367302, 0.018660979345440865, 0.03093106485903263, 0.004941812250763178, -0.04252417013049126, 0.034747228026390076, 0.0003980591718573123, 0.0018612983403727412, -0.009093781001865864, -0.009502310305833817, -0.03914400562644005, 0.003786445129662752, 0.014480052515864372, -0.10075832903385162, 0.008952452801167965, 0.02634783275425434, -0.028251830488443375, 0.007781265769153833, 0.8263987898826599, -0.018198344856500626, -0.02612982876598835, 0.05753560736775398, 0.0022096342872828245, 0.047055914998054504, 0.03689204528927803, -0.015898307785391808, -0.0478980615735054, 0.019504493102431297, -0.044363558292388916, 0.043030109256505966, -0.04345802962779999, 0.03222080320119858, 0.024890398606657982, 0.05547640845179558, -0.013072899542748928, 0.006608474999666214, 0.00867316871881485, -0.016697727143764496, 0.0098179392516613, 0.018983298912644386, -0.04383360221982002, 0.039396122097969055, 0.02810779958963394, -0.003977290354669094, -0.15888869762420654, -0.01483848225325346, -6.815837302962191e-33, 0.02611052244901657, -0.053734973073005676, 0.0027337069623172283, 0.021388525143265724, 0.02758433297276497, -0.006142123602330685, -0.021185152232646942, 0.013410018756985664, -0.017116675153374672, -0.015699949115514755, 0.005456254817545414, -0.011815103702247143, -0.00022816326236352324, 0.027333948761224747, 0.012804421596229076, -0.01006022933870554, 0.008773830719292164, 0.04563191533088684, -0.005671721417456865, 0.030979888513684273, 0.04548069089651108, 0.007543395273387432, -0.003897897433489561, 0.0228127408772707, -0.017917972058057785, 0.002232170198112726, 0.04614138975739479, 0.0017727694939821959, 0.017736703157424927, -0.04533834755420685, -0.03319375589489937, -0.016939526423811913, 0.02511684037744999, -0.02098277397453785, -0.04536128789186478, -0.04558959975838661, -0.04039805009961128, -0.0033142061438411474, -0.007272894494235516, -0.012334046885371208, -0.019313324242830276, 0.04084842652082443, -0.02691410295665264, -0.047859519720077515, -0.013028651475906372, 0.019115539267659187, -0.023149384185671806, 0.056610651314258575, -0.008892565034329891, 0.05057213082909584, 0.036392223089933395, -0.00794160645455122, 0.017960568889975548, 0.022518333047628403, -0.01593143865466118, 0.00044644580339081585, -0.003842601552605629, 0.004763354081660509, 0.05443697050213814, -0.04787198081612587, -0.003222603350877762, -0.0035377482417970896, 0.02823345735669136, 0.024184904992580414, 0.0578712560236454, -0.002494381507858634, 0.02121007815003395, -0.0052168951369822025, 0.03421684727072716, 0.01762702502310276, -0.0875641480088234, 0.004529627040028572, -0.020686164498329163, -0.017779765650629997, 0.034510377794504166, -0.03386829048395157, -0.018118426203727722, -0.015062316320836544, 0.021052351221442223, 0.044352248311042786, 0.004880237393081188, -0.010692333802580833, -0.019598226994276047, -0.0359194315969944, -0.029394175857305527, -0.029031332582235336, 0.007259764708578587, -0.022197334095835686, -0.04167109355330467, 0.03156193345785141, -0.006616948172450066, 0.024931829422712326, 0.016442466527223587, -0.0028589419089257717, -0.01398672629147768, 7.165054634072415e-33, 0.0180937759578228, 0.021407322958111763, -0.012709355913102627, 0.003141962457448244, 0.01971522532403469, -0.02204509638249874, 0.016160614788532257, -0.009724058210849762, -0.01189176645129919, 0.022086339071393013, -0.00858235452324152, 0.016336627304553986, 0.0005583105375990272, 0.0502641499042511, 0.04406500980257988, 0.016292329877614975, -0.011732683517038822, 0.023849356919527054, 0.029574308544397354, 0.00754916574805975, -0.010210508480668068, 0.016453946009278297, -0.013252788223326206, 0.004251119215041399, 0.0142049016430974, 0.023688314482569695, 0.005195228848606348, 0.002051983494311571, -0.0046032993122935295, -0.010826554149389267, 0.008340545929968357, 0.00034813853562809527, -0.021588042378425598, -0.015936672687530518, -0.01327337883412838, 0.02033713273704052, 0.01036317553371191, -0.01659548655152321, -0.0025983089581131935, 0.0035400765482336283, 0.06326874345541, 0.01890922710299492, -0.017001640051603317, 0.0051522888243198395, -0.00113538873847574, 0.009042574092745781, 0.00484632421284914, 0.0038687195628881454, 0.008239912800490856, -0.012324905954301357, -0.0030687672551721334, 0.0202826838940382, 0.017212580889463425, 0.004135308787226677, 0.034140244126319885, -0.027838202193379402, 0.014947027899324894, 0.045285552740097046, -0.060207948088645935, 0.008805334568023682, -0.050073232501745224, 0.01661500707268715, -0.0114141209051013, 0.013409112580120564, -0.05414615198969841, 0.010544170625507832, -0.06431382894515991, 0.012052953243255615, -0.026715436950325966, -0.05050376057624817, 0.03364399075508118, 0.012818283401429653, 0.0076101901941001415, 0.043933700770139694, 0.008287357166409492, -0.011040225625038147, -0.022345522418618202, 0.003032919019460678, -0.020457416772842407, 0.0012837956892326474, 0.005911832209676504, -0.0011437596986070275, 0.0040107169188559055, 0.009912345558404922, -0.01943643018603325, 0.012774182483553886, -0.016006316989660263, -0.008752374909818172, 0.025750042870640755, -0.00304176053032279, 0.036027487367391586, -0.00468074344098568, 0.012749534100294113, -0.004320782609283924, 0.041067901998758316, -1.2670633431355327e-8, -0.023317895829677582, -0.019341042265295982, -0.008491638116538525, 0.020348073914647102, 0.03595864400267601, 0.023299532011151314, 0.028605880215764046, 0.003403826616704464, -0.01666140928864479, 0.014466656371951103, 0.052102670073509216, -0.014406606554985046, -0.0005282958154566586, 0.0026844278909265995, 0.02131795510649681, -0.006677705328911543, -0.0018277514027431607, 0.003282444551587105, 0.009189403615891933, -0.015855951234698296, -0.002831927500665188, 0.05733572691679001, -0.010722493752837181, -0.013932117260992527, -0.039948657155036926, -0.03847704455256462, 0.03887204825878143, -0.10136895626783371, -0.02363978885114193, -0.0269322469830513, 0.025638621300458908, -0.027428148314356804, -0.07191780209541321, 0.018258720636367798, -0.013100889511406422, -0.0549243688583374, -0.02144685573875904, 0.020566128194332123, -0.0008199400035664439, 0.005925313103944063, -0.03446997329592705, -0.01940792240202427, -0.009777502156794071, -0.052279796451330185, -0.029568608850240707, -0.022416599094867706, -0.029620399698615074, 0.01619001105427742, -0.013299290090799332, 0.02050175331532955, 0.023339660838246346, 0.008968321606516838, 0.03149693086743355, -0.01137387566268444, 0.0016121850349009037, 0.02690909057855606, -0.0023892621975392103, -0.004361347295343876, -0.06706705689430237, -0.030082853510975838, 0.02171649970114231, 0.024924801662564278, 0.025414496660232544, -0.039728179574012756 ]
poetry-library-not-loaded-no-such-file-dyld-cache
https://markhneedham.com/blog/2023/07/27/poetry-library-not-loaded-no-such-file-dyld-cache
false
2023-07-27 01:44:37
OpenAI/GPT: Returning consistent/valid JSON from a prompt
[ "gpt", "openai", "python", "til" ]
[ "TIL" ]
:icons: font When using OpenAI it can be tricky to get it to return a consistent response for a prompt. In this blog post, we're going to learn how to use functions to return a consistent JSON format for a basic sentiment analysis prompt. [NOTE] ==== I've created a video showing how to do this on https://www.youtube.com/@learndatawithmark[my YouTube channel, Learn Data with Mark^], so if you prefer to consume content through that medium, I've embedded it below: ++++ <iframe width="560" height="315" src="https://www.youtube.com/embed/lJJkBaO15Po" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> ++++ ==== Let's start by installing OpenAI and Pandas: [source, bash] ---- pip install openai pandas ---- And now, we'll open a Python REPL and import the following libraries: [source, python] ---- import openai import json import pandas as pd ---- We're going to analyse the sentiment of some reviews from goodreads about https://www.goodreads.com/book/show/22085568-the-culture-map?from_search=true&from_srp=true&qid=JOGX5h8YsY&rank=1[The Culture Map book^]. I've put these into a CSV file, which we can load using the following code: [source, python] ---- reviews_df = pd.read_csv("reviews.csv") reviews = reviews_df['review'].tolist() reviews ---- .Output [source, text] ---- ["Possibly the worst book I've ever read.It's a huge collection of biases for all the possible countries and cultures. The whole book is structured with examples like: if you are working with Chinese people, you should take this approach, instead if your team is composed by German people you should do this etc....", 'A book full of oversimplifications, generalisations and self-contradiction. Plus many of the examples felt simply made up. Although it had one or two good ideas thrown in there, I am honestly not sure if this book can hardly help anyone.', 'I had it on my recommendations list for a long time, but my impression was always like: "damn, I don\'t need a book on cultural differences; I\'ve worked in many international enterprises, I have been trained, I have practical experience - it would be just a waste of time". In the end, it wasn\'t (a waste of time).', 'Candidate for the best book I have read in 2016 unless another one can beat it. The author made is fun to read with great examples that I could easily relate to.', 'A practical and comprehensive guide to how different cultures should be approached regarding business relations, but it can also be used outside of that.', 'The book was OK. It offers a good overview of differences between cultures. Sometimes we may assume that 2 cultures are similar, but in the end there is a possibility of conflict, because they have different "mentality" on a certain point (trust or time perception, for instance). But Erin often limits herself to personal stories and doesn\'t cite almost any researcher or study.'] ---- We're then going to write a function that computes the sentiment for a list of reviews using OpenAI: [source, python] ---- def analyse_reviews(user_input): prompt = f""" # <.> {user_input} Analyse the sentiment of the reviews above and return a JSON array as the result. Provide sentiment on a scale of 1-100? The JSON must have these fields: sentiment, sentiment_score. """ completion = openai.ChatCompletion.create( # <.> model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You are a helpful review analysis tool."}, {"role": "user", "content": prompt}, ] ) try: generated_text = completion.choices[0].message.content # <3> return json.loads(generated_text) except Exception as e: print(f"An error occurred: {e}") return None ---- <1> Create a prompt asking GPT to return the sentiment of provided reviews <2> Create and execute prompt <3> Parse result We can then run the prompt like this: [source, python] ---- analyse_reviews(reviews) ---- If we run that a few times, we'll likely get a different result each time: .Output [source, text] ---- {'sentiment': 'mixed', 'sentiment_score': 64.2} ---- .Output [source, text] ---- [{'sentiment': 'negative', 'sentiment_score': 15}, {'sentiment': 'negative', 'sentiment_score': 25}, {'sentiment': 'positive', 'sentiment_score': 70}, {'sentiment': 'positive', 'sentiment_score': 85}, {'sentiment': 'positive', 'sentiment_score': 90}, {'sentiment': 'neutral', 'sentiment_score': 50}] ---- .Output [source, text] ---- {'reviews': [{'sentiment': 'negative', 'sentiment_score': 12}, {'sentiment': 'negative', 'sentiment_score': 22}, {'sentiment': 'neutral', 'sentiment_score': 50}, {'sentiment': 'positive', 'sentiment_score': 85}, {'sentiment': 'positive', 'sentiment_score': 70}, {'sentiment': 'neutral', 'sentiment_score': 65}]} ---- .Output [source, text] ---- {'reviews': [{'review': "Possibly the worst book I've ever read.It's a huge collection of biases for all the possible countries and cultures. The whole book is structured with examples like: if you are working with Chinese people, you should take this approach, instead if your team is composed by German people you should do this etc....", 'sentiment': 'negative', 'sentiment_score': 15}, {'review': 'A book full of oversimplifications, generalisations and self-contradiction. Plus many of the examples felt simply made up. Although it had one or two good ideas thrown in there, I am honestly not sure if this book can hardly help anyone.', 'sentiment': 'negative', 'sentiment_score': 20}, {'review': 'I had it on my recommendations list for a long time, but my impression was always like: "damn, I don\'t need a book on cultural differences; I\'ve worked in many international enterprises, I have been trained, I have practical experience - it would be just a waste of time". In the end, it wasn\'t (a waste of time).', 'sentiment': 'positive', 'sentiment_score': 80}]} ---- These are just 4 of the responses that I saw after running this multiple times. Either way, we need a more deterministic response. Lucky for us, OpenAI recently added the concept of https://platform.openai.com/docs/guides/gpt/function-calling[functions^]. With functions, you can tell OpenAI that you're going to pass its response to a function that takes in a specific JSON structure. We aren't going to pass the result to a function, but we'll co-opt this functionality to get ourselves a consistent response! Using this functionality, we end up with the following function: [source, python] ---- def analyse_reviews(user_input): prompt = f""" {user_input} Analyse the sentiment of the reviews above and return a JSON array as the result. Provide sentiment on a scale of 1-100? The JSON must have these fields: sentiment, sentiment_score. """ completion = openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You are a helpful review analysis tool."}, {"role": "user", "content": prompt}, ], functions=[{"name": "dummy_fn_set_sentiment", "parameters": { # <.> "type": "object", "properties": { # <.> "sentiments": { "type": "array", "items": { "type": "object", "properties": { "sentiment": {"type": "string", "description": "Sentiment of the review"}, "sentiment_score": {"type": "integer","description": "Score between 1-100 of the sentiment"} } } } } }}], ) try: generated_text = completion.choices[0].message.function_call.arguments return json.loads(generated_text) except Exception as e: print(f"An error occurred: {e}") return None ---- <1> Specify a function name (we'll use a made-up name since we aren't going to call it) <2> Define the arguments expected by this function in JSON schema format. We can then call this function the same way as we did with the other one: [source, python] ---- sentiments = analyse_reviews(reviews) sentiments ---- .Output [source, text] ---- {'sentiments': [{'sentiment': 'negative', 'sentiment_score': 30}, {'sentiment': 'negative', 'sentiment_score': 25}, {'sentiment': 'positive', 'sentiment_score': 70}, {'sentiment': 'positive', 'sentiment_score': 90}, {'sentiment': 'positive', 'sentiment_score': 80}, {'sentiment': 'neutral', 'sentiment_score': 50}]} ---- We won't get the same `sentiment` or `sentiment_score` each time, but the structure will be consistent. Finally, let's put everything together into a nice DataFrame: [source, python] ---- sentiment_df = pd.DataFrame(sentiments["sentiments"]) result = pd.concat([reviews_df, sentiment_df], axis=1) pd.set_option('max_colwidth', 100) result ---- .Output [opts="header", cols="2,1,1"] |=== |review | sentiment | sentiment_score |Possibly the worst book I've ever read.It's a huge collection of biases for all the possible cou... |negative |30 |A book full of oversimplifications, generalisations and self-contradiction. Plus many of the exa... |negative |25 |I had it on my recommendations list for a long time, but my impression was always like: "damn, I... |positive |70 |Candidate for the best book I have read in 2016 unless another one can beat it. The author made ... |positive |90 |A practical and comprehensive guide to how different cultures should be approached regarding bus... |positive |80 |The book was OK. It offers a good overview of differences between cultures. Sometimes we may ass... |neutral |50 |===
In this post, we'll learn how to return a consistent and predictable JSON response to a sentiment analysis prompt in OpenAI/GPT.
uploads/2023/07/openai-json-banner.png
[ 0.007322437595576048, 0.009779877960681915, 0.006981776095926762, 0.039064593613147736, 0.06677676737308502, 0.05981180816888809, 0.010197431780397892, 0.045760467648506165, -0.00602673040702939, -0.007050457876175642, 0.005440741311758757, -0.015969671308994293, -0.08191768825054169, -0.0005045377765782177, -0.0326896533370018, 0.05781536176800728, 0.06762909144163132, 0.02798268012702465, 0.02954655885696411, -0.003672700608149171, 0.022617479786276817, 0.054844412952661514, 0.014135097153484821, 0.042422883212566376, 0.017766015604138374, -0.026896758005023003, 0.03306954726576805, 0.010188000276684761, -0.06492026150226593, -0.00700550340116024, 0.015813130885362625, 0.010366073809564114, -0.021548114717006683, -0.0071634589694440365, 0.01736338436603546, 0.004383148159831762, -0.02753691002726555, 0.037821099162101746, 0.019962405785918236, 0.03446117788553238, -0.050434011965990067, 0.013491305522620678, -0.006197264883667231, 0.014933156780898571, -0.04519373178482056, 0.029672399163246155, -0.04205155000090599, 0.03334628418087959, -0.0023191962391138077, -0.008412035182118416, -0.04537052661180496, 0.06312628835439682, -0.013913515955209732, -0.04107831045985222, -0.0014125509187579155, 0.06431984156370163, 0.023187797516584396, -0.0737798810005188, 0.0003305179125163704, -0.04158090054988861, 0.011056045070290565, 0.010111297480762005, 0.02486155927181244, 0.011852452531456947, 0.0037556139286607504, -0.00965279433876276, -0.007995318621397018, 0.06490051001310349, -0.05084839463233948, -0.0204757247120142, -0.03261028975248337, 0.018698936328291893, -0.03448937088251114, -0.0013381674652919173, 0.001918785274028778, -0.0463201068341732, -0.005403254646807909, 0.07009018212556839, 0.024333955720067024, 0.021052386611700058, -0.0037596228066831827, 0.02013072557747364, 0.03229542076587677, 0.03372545167803764, -0.011453229933977127, -0.052841316908597946, -0.01355842687189579, -0.048342034220695496, -0.056383874267339706, 0.03192653879523277, 0.002023465698584914, -0.04172379523515701, 0.02864113822579384, 0.01630745641887188, -0.020451009273529053, 0.002402073936536908, -0.008542604744434357, -0.010359727777540684, -0.010646126233041286, -0.013431484811007977, -0.06545022875070572, -0.033192865550518036, 0.02864108607172966, 0.03624267876148224, -0.07492978125810623, -0.018965646624565125, 0.009045521728694439, -0.0007584363338537514, 0.017836738377809525, 0.022826597094535828, -0.02081386186182499, -0.004826833494007587, -0.017330192029476166, -0.001867645769380033, -0.06499233841896057, 0.05390997231006622, -0.004988193511962891, -0.02920381911098957, -0.045440204441547394, 0.028187667950987816, 0.06088844686746597, 0.039306044578552246, -0.024109074845910072, 0.07209164649248123, 0.01623043604195118, 0.03440236672759056, -0.010873503983020782, 0.04916810244321823, 0.007977589033544064, -0.045619040727615356, -0.006240176502615213, 0.03422681987285614, -0.031378746032714844, 0.028089798986911774, 0.010003947652876377, -0.019011488184332848, 0.021802643314003944, -0.008264860138297081, 0.05318005383014679, 0.009916777722537518, 0.009607886895537376, -0.03474816679954529, -0.01528012752532959, 0.016734957695007324, 0.03316580876708031, 0.013032244518399239, -0.023010363802313805, -0.04778062924742699, -0.037460941821336746, 0.0032232797238975763, 0.006833790801465511, -0.0028725715819746256, 0.07775897532701492, -0.02371653914451599, -0.019328754395246506, 0.08312101662158966, 0.05522139370441437, 0.023386701941490173, 0.01956024579703808, 0.033118195831775665, 0.0389498695731163, 0.032914403825998306, 0.003665952943265438, 0.021313495934009552, -0.013521277345716953, -0.03274362534284592, 0.005629639606922865, 0.04696701094508171, -0.0363842137157917, 0.0013637690572068095, -0.030278122052550316, -0.03695853054523468, 0.060909539461135864, -0.009229522198438644, -0.017273498699069023, 0.034479957073926926, 0.0706915482878685, 0.05574684962630272, 0.029191801324486732, 0.025109730660915375, -0.08022109419107437, 0.03226081654429436, 0.015728147700428963, 0.013427870348095894, 0.0407269112765789, -0.0028903638012707233, 0.0761336013674736, 0.013715877197682858, 0.02940722368657589, 0.05730066075921059, -0.04513512924313545, -0.043892644345760345, -0.03375409543514252, 0.016026880592107773, 0.06434402614831924, -0.07238275557756424, -0.021365249529480934, 0.07672085613012314, 0.048698946833610535, 0.03503510355949402, 0.01702072285115719, -0.023568522185087204, 0.02752005122601986, -0.03722847253084183, -0.03589919954538345, 0.02412332594394684, 0.0486944206058979, -0.006724342703819275, -0.005126536823809147, 0.01683189533650875, -0.04762586951255798, 0.006738812196999788, 0.03699576109647751, 0.004147897940129042, 0.024903103709220886, 0.015527528710663319, 0.05776519328355789, -0.00635323952883482, 0.02751188725233078, -0.06951887160539627, 0.04618382826447487, -0.031158573925495148, -0.003304332261905074, -0.0484137162566185, -0.02859901823103428, 0.12691402435302734, 0.07354451715946198, -0.019922584295272827, -0.05390124395489693, 0.011096134781837463, -0.03896148502826691, -0.05337011069059372, 0.0213273074477911, -0.017841361463069916, -0.04043443128466606, 0.001041836105287075, -0.03369732201099396, -0.03435966745018959, 0.03196314349770546, -0.03632328659296036, -0.0310214813798666, 0.06357412040233612, -0.012157239019870758, 0.03362708166241646, 0.008560560643672943, -0.025110164657235146, -0.0038772919215261936, -0.013279142789542675, -0.041087016463279724, 0.004380271304398775, -0.0030544481705874205, -0.012172495014965534, 0.017100749537348747, -0.042832884937524796, -0.024650368839502335, -0.01917351223528385, -0.031875576823949814, 0.02193244732916355, 0.07306534796953201, 0.05012167617678642, -0.015204284340143204, 0.027564726769924164, -0.023056086152791977, -0.0010681581916287541, -0.0045537627302110195, -0.0340338796377182, -0.044271305203437805, -0.02888575941324234, 0.005988711025565863, 0.015116062015295029, 0.016467733308672905, 0.012873634696006775, 0.0071291448548436165, 0.011277246288955212, -0.012208699248731136, 0.01673300750553608, 0.039650674909353256, -0.015623755753040314, 0.0004374012933112681, -0.029058316722512245, -0.0008377694757655263, 0.06505216658115387, -0.03406655415892601, -0.04513963684439659, -0.013577991165220737, -0.09411442279815674, 0.016284463927149773, -0.061594463884830475, -0.026976948603987694, -0.008864444680511951, 0.012015682645142078, 0.03422517701983452, 0.014755737036466599, 0.0006202179938554764, 0.04785072058439255, 0.012318911962211132, 0.00402926467359066, 0.03039916604757309, -0.012224060483276844, 0.04341283440589905, -0.016752997413277626, 0.0031012764666229486, 0.07873070985078812, 0.02015474997460842, 0.0003335107467137277, -0.05186951160430908, 0.00861077755689621, -0.03875109180808067, -0.29027223587036133, 0.010081818327307701, 0.0195319727063179, -0.01940123923122883, 0.009665381163358688, -0.03252686187624931, 0.024476634338498116, -0.056501083076000214, -0.005033631343394518, 0.013353819958865643, -0.00971115380525589, -0.01725153438746929, -0.05052005127072334, 0.044796913862228394, 0.003352666739374399, 0.015215766616165638, 0.004986778367310762, -0.021046530455350876, 0.005052109248936176, 0.057474665343761444, 0.005600971635431051, -0.047868095338344574, 0.003924824297428131, 0.048890482634305954, 0.028690017759799957, 0.04405897483229637, -0.0666303038597107, 0.022461136803030968, -0.03276027366518974, -0.03180669993162155, 0.003149858210235834, -0.01691048964858055, 0.002366830827668309, -0.011573941446840763, 0.02102963998913765, -0.01445326954126358, 0.06131424009799957, -0.00349221914075315, -0.008707390166819096, 0.013035406358540058, -0.016053447499871254, -0.02438911236822605, -0.014285961166024208, 0.01091784704476595, 0.0964515209197998, -0.0034934733994305134, -0.0853748619556427, 0.016427749767899513, -0.05580075830221176, 0.08022196590900421, -0.039123598486185074, -0.056669410318136215, -0.05647268518805504, 0.041086453944444656, -0.006546761840581894, 0.008153755217790604, -0.0010399672901257873, -0.0050344704650342464, -0.05086428299546242, -0.054910384118556976, 0.007074351888149977, -0.02311038412153721, -0.03930271416902542, -0.0412268191576004, -0.024537188932299614, -0.08176292479038239, -0.03852982074022293, -0.01600906252861023, 0.057177599519491196, 0.05373226851224899, -0.06440578401088715, -0.004727278836071491, -0.010562211275100708, -0.10399255156517029, -0.0017147843027487397, -0.04246034473180771, -0.0064844838343560696, 0.01090218871831894, -0.027936799451708794, 0.08014752715826035, -0.05318024009466171, -0.04742955416440964, 0.0337451696395874, 0.006164025980979204, 0.001952173886820674, -0.01784791238605976, 0.039368920028209686, -0.004803081974387169, -0.013453245162963867, -0.01249510608613491, 0.07121440768241882, -0.03748614713549614, -0.038374800235033035, -0.00501510314643383, 0.008248241618275642, 0.019567126408219337, 0.03590892627835274, -0.00847096461802721, 0.020175596699118614, 0.025150582194328308, 0.008564339950680733, -0.0664055272936821, -0.020076321437954903, -0.04724942892789841, 0.005387029144912958, 0.0024844733998179436, -0.07096415758132935, 0.019030414521694183, 0.016969244927167892, -0.006571682635694742, -0.018626414239406586, -0.044915925711393356, 0.014566176570951939, -0.039423298090696335, -0.02905934303998947, -0.021481694653630257, 0.01821933314204216, 0.04821993038058281, 0.012531241402029991, 0.0009377379319630563, -0.039702191948890686, 0.021030079573392868, -0.010108032263815403, -0.013766834512352943, -0.05470746383070946, -0.024383746087551117, 0.014397429302334785, -0.01905360072851181, -0.01935538835823536, -0.0050095790065824986, -0.0028619887307286263, -0.0016824757913127542, 0.027914324775338173, -0.018941707909107208, 0.027499370276927948, -0.017116090282797813, -0.023554420098662376, -0.02112562209367752, 0.02511986531317234, 0.00850194413214922, 0.006878522224724293, -0.0016805544728413224, -0.002789375837892294, 0.010933395475149155, 0.039301540702581406, 0.00799599289894104, 0.016628386452794075, -0.002301762579008937, 0.01078746933490038, 0.013011230155825615, 0.00001646675809752196, -0.01790858991444111, 0.001832274836488068, -0.004919768311083317, -0.029492538422346115, -0.016283636912703514, 0.016485407948493958, -0.002659737830981612, -0.02599797397851944, -0.0301192793995142, 0.04586293175816536, -0.05242364853620529, -0.02468107081949711, 0.004521643277257681, 0.011283336207270622, 0.0025494699366390705, 0.01744656451046467, 0.025968873873353004, 0.01606491021811962, -0.006045298185199499, 0.032064538449048996, 0.00919523648917675, -0.01993701048195362, -0.001207783818244934, -0.018147040158510208, -0.019359920173883438, 0.018216002732515335, 0.0174858495593071, 0.016243038699030876, 0.023169467225670815, 0.005400900263339281, -0.03205506131052971, 0.019373586401343346, 0.023161858320236206, 0.039752114564180374, 0.040217865258455276, -0.020609509199857712, -0.013654248788952827, -0.008517180569469929, -0.027003886178135872, -0.04886496439576149, -0.016314446926116943, -0.007741294335573912, -0.03059147298336029, -0.024738091975450516, -0.08296338468790054, 0.016724081709980965, -0.010256653651595116, -0.007575126364827156, 0.029633382335305214, -0.033191315829753876, 0.011016302742064, -0.06892240047454834, 0.01619592122733593, 0.04309143126010895, -0.0683685839176178, -0.004925827961415052, -0.0036409664899110794, 0.013323813676834106, -0.001134244492277503, 0.017133386805653572, -0.09457945823669434, -0.03236762434244156, -0.019209502264857292, 0.027066361159086227, -0.02841258980333805, -0.04258302226662636, -0.05608370900154114, 0.03175416961312294, -0.009082897566258907, 0.00466067623347044, -0.02232036553323269, -0.024724557995796204, -0.018408503383398056, 0.015044025145471096, 0.014562138356268406, -0.037195056676864624, -0.004915195982903242, 0.0353170782327652, -0.03163384646177292, 0.024048417806625366, -0.016945702955126762, 0.03859076276421547, 0.050362929701805115, -0.017405278980731964, -0.013594895601272583, -0.03771767392754555, -0.007602329831570387, 0.010085653513669968, 0.0618540458381176, -0.013337621465325356, -0.006066738627851009, -0.03623779118061066, 0.014045977033674717, -0.01654273271560669, 0.023280492052435875, -0.024884777143597603, -0.011045862920582294, 0.03832380846142769, 0.056210264563560486, 0.012148396112024784, -0.004167646635323763, -0.026960676535964012, -0.058215536177158356, 0.0627484992146492, -0.06671298295259476, -0.037880271673202515, -0.005316655617207289, -0.03435913845896721, 0.045027703046798706, 0.006082918960601091, 0.024218622595071793, -0.03231699392199516, 0.05477546527981758, 0.00025273405481129885, 0.03197154030203819, 0.04547330364584923, 0.012400719337165356, 0.036591846495866776, -0.026549525558948517, -0.004915257450193167, -0.1034909188747406, 0.0035396944731473923, 0.04689205437898636, -0.012082925997674465, -0.01996365375816822, -0.004435807466506958, -0.029381951317191124, 0.06234004721045494, -0.05660361424088478, -0.007988414727151394, 0.0685868188738823, -0.012603932060301304, 0.0199857447296381, -0.0007575869676657021, -0.06811089813709259, 0.03540966659784317, 0.04840465262532234, -0.04520286247134209, -0.005797147285193205, -0.019407158717513084, 0.08043675124645233, -0.007529102731496096, 0.033790409564971924, -0.024086570367217064, -0.006415900308638811, 0.033834267407655716, 0.013615112751722336, -0.015083356760442257, 0.03367512300610542, -0.020669370889663696, 0.05074532702565193, 0.027058007195591927, 0.004564640577882528, 0.020475203171372414, 0.03864109888672829, -0.009752831421792507, -0.08117469400167465, 0.04888385906815529, 0.0014875358901917934, -0.023877473548054695, -0.054715827107429504, 0.07507448643445969, 0.010109683498740196, -0.03440228849649429, -0.050018612295389175, 0.004411546513438225, -0.05843913182616234, -0.008410079404711723, -0.01578199304640293, -0.025076905265450478, -0.0400303490459919, 0.05560051277279854, 0.00578107638284564, 0.024708490818738937, 0.06731228530406952, -0.023950960487127304, -0.0012514995178207755, -0.011847171932458878, 0.08247193694114685, 0.0564454086124897, 0.05562640726566315, -0.0033878611866384745, 0.051192473620176315, -0.004749863408505917, -0.06245550885796547, -0.004214554559439421, -0.00743575906381011, -0.00902333203703165, -0.023872114717960358, 0.00913206022232771, 0.06155598536133766, -0.016484597697854042, 0.06987883150577545, -0.032612141221761703, -0.02285180054605007, 0.0022849570959806442, 0.03039667010307312, -0.00764111615717411, 0.03371984884142876, 0.00015969066589605063, 0.033069804310798645, -0.01291827391833067, -0.002515306230634451, 0.03632171079516411, -0.016614845022559166, -0.02464507706463337, 0.027020109817385674, 0.004941271152347326, 0.038279980421066284, -0.013709691353142262, 0.056063808500766754, 0.07278241962194443, -0.05106697231531143, -0.005926326848566532, 0.019879452884197235, 0.022656908258795738, 0.00039004519931040704, 0.012641040608286858, 0.004823585972189903, -0.014615220949053764, -0.009413976222276688, -0.03038153611123562, 0.008936596103012562, -0.009685262106359005, -0.0077520632185041904, 0.009368290193378925, -0.03491801396012306, -0.005504262167960405, 0.03890971466898918, -0.010512935929000378, -0.048210617154836655, -0.04171380028128624, -0.06227954477071762, -0.026782214641571045, -0.059045154601335526, -0.02126193605363369, 0.009755612351000309, -0.0012943688780069351, -0.05524331331253052, -0.05831202119588852, -0.02405487559735775, 0.03169342130422592, 0.004777822643518448, -0.021478570997714996, -0.015263991430401802, 0.03627779707312584, 0.026316162198781967, 0.014259113930165768, 0.007330264430493116, 0.06661820411682129, 0.015567848458886147, -0.03517613187432289, -0.015039941295981407, 0.03871975839138031, 0.038641300052404404, 0.006695754826068878, 0.02303561381995678, -0.06854775547981262, -0.009610934183001518, 0.0058005573228001595, -0.011670472100377083, -0.07170838862657547, 0.02801530249416828, 0.03488713502883911, 0.0002743823570199311, 0.04226217046380043, 0.007891383953392506, 0.021041275933384895, -0.029245495796203613, -0.023731211200356483, -0.00570090813562274, 0.027940085157752037, 0.0441322959959507, -0.036480169743299484, 0.0988188311457634, 0.016408482566475868, -0.008008723147213459, -0.03883440047502518, -0.0014486178988590837, -0.02140258066356182, -0.006625160574913025, -0.04767410829663277, -0.018625695258378983, -0.02872224897146225, -0.05922039598226547, -0.0148081099614501, 0.027818264439702034, -0.02937212586402893, -0.022346142679452896, 0.015083693899214268, 0.01665400341153145, -0.01920233480632305, 0.04043295979499817, -0.049303628504276276, 0.011281018145382404, -0.017688440158963203, -0.007061959709972143, -0.010330353863537312, 0.028213830664753914, 0.011524444445967674, 0.0008660370367579162, 0.023151837289333344, -0.05537983030080795, 0.014241760596632957, -0.004932239186018705, 0.011146473698318005, 0.051394473761320114, -0.022034915164113045, -0.011181921698153019 ]
[ -0.06679648160934448, -0.021138951182365417, -0.033343687653541565, -0.0015870393253862858, 0.06220242753624916, -0.032022420316934586, -0.00728955352678895, 0.02666615881025791, 0.007639753632247448, 0.00894706416875124, -0.00917933788150549, -0.04883421212434769, -0.00012841708667110652, 0.007337160408496857, 0.07184827327728271, 0.020721500739455223, 0.01806875877082348, -0.0826403871178627, -0.048062656074762344, 0.0414486788213253, 0.005281904712319374, -0.01411787886172533, -0.002671673661097884, -0.05008535459637642, -0.004172599408775568, 0.009186051785945892, 0.05394028127193451, -0.019534790888428688, 0.010786187835037708, -0.19772742688655853, -0.000050964048568857834, 0.006199329160153866, 0.061434026807546616, -0.016324885189533234, -0.0049898321740329266, 0.07078880071640015, 0.004220506176352501, 0.007381737232208252, 0.008842796087265015, 0.01989937014877796, 0.01337091438472271, 0.012768596410751343, -0.026301132515072823, -0.03791659325361252, 0.08903631567955017, -0.012569901533424854, -0.028502250090241432, -0.015229002572596073, -0.02393343858420849, 0.010006087832152843, -0.04998013749718666, -0.013824558816850185, 0.01575692556798458, -0.0063164206221699715, 0.0042617423459887505, 0.035556893795728683, 0.043419938534498215, 0.07141584903001785, 0.022660374641418457, 0.02212589420378208, 0.03188829496502876, -0.02188948355615139, -0.11026385426521301, 0.12443088740110397, -0.00035700039006769657, 0.048583466559648514, -0.03566691651940346, 0.008735008537769318, -0.03494614362716675, 0.05000383406877518, -0.005325134843587875, -0.02785058133304119, -0.0023520933464169502, 0.02328936755657196, -0.01566668413579464, 0.009620231576263905, 0.028932178393006325, 0.015947993844747543, 0.01844462752342224, -0.035687170922756195, -0.03989114612340927, 0.018381506204605103, -0.015972064808011055, -0.03436999022960663, 0.014852989464998245, 0.0175675917416811, -0.02715972810983658, 0.07217071950435638, 0.0035529357846826315, 0.021837040781974792, 0.026784252375364304, -0.017658164724707603, 0.023916658014059067, 0.016575558111071587, -0.10247483104467392, -0.04703802987933159, 0.0024809292517602444, 0.013888640329241753, -0.04685034602880478, 0.4149560332298279, -0.020429560914635658, 0.0006845477619208395, 0.04042500630021095, 0.011650100350379944, 0.029175929725170135, -0.04213998094201088, -0.002223528455942869, -0.049677830189466476, 0.01350676640868187, -0.0011561930878087878, -0.018266044557094574, -0.024304265156388283, 0.04687479883432388, -0.06948386132717133, -0.0020643286406993866, 0.003016348462551832, 0.01684878021478653, 0.028771214187145233, 0.019164366647601128, -0.034525468945503235, -0.007465747185051441, -0.008108965121209621, 0.002071325434371829, -0.05051916092634201, -0.006795952562242746, -0.03297298401594162, 0.048247504979372025, 0.03589668497443199, 0.049357667565345764, -0.017030024901032448, 0.031869929283857346, -0.030451122671365738, -0.07359308004379272, -0.009189128875732422, -0.0057988339103758335, 0.018136041238904, 0.03279963508248329, -0.03154942765831947, 0.017952127382159233, 0.031148117035627365, 0.006430849898606539, -0.01600073277950287, 0.02589542418718338, 0.0017705330392345786, -0.05705193057656288, 0.1259385645389557, 0.021657804027199745, -0.01337552722543478, -0.018239811062812805, -0.019782233983278275, 0.013630866073071957, 0.02906891144812107, -0.011514009907841682, -0.04132729768753052, 0.030900483950972557, 0.017101379111409187, 0.06201262027025223, -0.03491910547018051, -0.055251240730285645, -0.005148777738213539, -0.00018844408623408526, -0.06170252710580826, -0.061476029455661774, 0.024417078122496605, 0.05007193610072136, -0.10040275007486343, -0.04062013700604439, 0.01780434511601925, -0.007576054893434048, -0.06146549805998802, 0.026418615132570267, 0.021981896832585335, -0.035141393542289734, 0.021568171679973602, 0.06431207805871964, -0.006701266393065453, -0.00548152020201087, 0.0014505945146083832, 0.04230428487062454, 0.008591012097895145, -0.03858327865600586, 0.0037792669609189034, -0.0110089760273695, 0.03003501147031784, -0.042352527379989624, -0.06547503173351288, -0.044904861599206924, -0.030270950868725777, 0.0022889079991728067, -0.044667065143585205, -0.004128209315240383, -0.031928032636642456, -0.04950777068734169, 0.09769156575202942, -0.01367991790175438, 0.0034170448780059814, -0.004176706075668335, -0.02621583454310894, 0.014664691872894764, -0.034343913197517395, -0.001480148290283978, 0.008656468242406845, -0.014784488826990128, -0.0002539429406169802, -0.026228051632642746, 0.0399034358561039, 0.0738491415977478, -0.0141521617770195, 0.04893504083156586, 0.023001397028565407, -0.06301892548799515, 0.005049339961260557, -0.019557654857635498, 0.026143299415707588, -0.003996382467448711, -0.030335670337080956, 0.007429452147334814, 0.007134589366614819, 0.009158074855804443, 0.03840111941099167, -0.03316953778266907, -0.06348246335983276, -0.06470999866724014, -0.3693559467792511, -0.041892699897289276, 0.007500414736568928, 0.012406554073095322, 0.022524598985910416, -0.07167398184537888, 0.026732537895441055, -0.007163201458752155, 0.05529920756816864, 0.07219719141721725, 0.06523506343364716, 0.00577359925955534, 0.02486506849527359, -0.07357784360647202, 0.02949824184179306, 0.02184162475168705, -0.01844327710568905, -0.009021327830851078, -0.01359826885163784, 0.029885804280638695, 0.002547134878113866, 0.009079886600375175, -0.01793774403631687, -0.06890332698822021, 0.009425417520105839, -0.030085977166891098, 0.11739145219326019, 0.03101499378681183, 0.06420860439538956, -0.06017934903502464, 0.030823230743408203, 0.018206259235739708, 0.00034329984919168055, -0.09272724390029907, 0.030961083248257637, -0.02689436636865139, 0.031830716878175735, 0.01767456904053688, -0.02602999657392502, -0.03070162422955036, -0.01689096726477146, 0.043611813336610794, -0.026985105127096176, -0.03442416712641716, -0.039469797164201736, 0.004285288974642754, -0.01681087724864483, -0.04659896343946457, -0.040122140198946, 0.06597783416509628, -0.017076244577765465, 0.012794694863259792, 0.018253715708851814, 0.06635012477636337, -0.01850414089858532, 0.0002419410739094019, -0.0953424721956253, -0.01661914959549904, 0.009859527461230755, -0.04480951279401779, 0.013459481298923492, 0.009318924508988857, 0.04214540496468544, -0.06736476719379425, -0.010680760256946087, 0.025278620421886444, 0.04217245802283287, 0.00900723971426487, 0.05038406327366829, 0.002105118939653039, -0.05678253620862961, 0.10718656331300735, -0.021702567115426064, 0.012664112262427807, 0.07213231921195984, 0.0567924790084362, 0.005236583296209574, -0.006326505448669195, 0.035032883286476135, 0.03737675026059151, 0.03776971250772476, 0.018663592636585236, 0.013560117222368717, -0.030548708513379097, 0.004486061632633209, 0.029799917712807655, -0.035059262067079544, -0.07000020146369934, 0.07460794597864151, 0.014203984290361404, 0.01383674144744873, 0.023943811655044556, -0.026473334059119225, -0.046312324702739716, 0.05074331909418106, 0.019254498183727264, -0.2678956985473633, 0.02616419643163681, 0.056549072265625, 0.07826761901378632, 0.0065957470797002316, 0.008954137563705444, 0.01088754553347826, -0.06937626749277115, -0.0576053224503994, 0.0413636676967144, -0.016805602237582207, 0.04292356222867966, 0.01735084503889084, -0.043871425092220306, -0.01166277565062046, -0.03903225064277649, 0.056032273918390274, 0.004081845749169588, 0.033142417669296265, -0.026081304997205734, 0.005210116505622864, -0.021006783470511436, 0.17673781514167786, 0.016626687720417976, -0.010889784432947636, -0.021309971809387207, 0.008693295530974865, -0.03004262037575245, 0.044040437787771225, -0.014452395029366016, 0.03565201163291931, -0.022096462547779083, 0.023861108347773552, 0.0496646873652935, 0.04279768094420433, -0.05903325602412224, -0.06811784207820892, 0.030943328514695168, 0.005108904093503952, 0.006495873909443617, 0.009210792370140553, 0.04439232125878334, -0.06449177861213684, 0.008531625382602215, 0.019063426181674004, 0.0008377337944693863, -0.004584391135722399, 0.0018667957047000527, -0.047657184302806854, 0.004280697088688612, 0.0035462738014757633, -0.04136360436677933, -0.01590912789106369, 0.005412376951426268, -0.0031419596634805202, 0.05768624693155289, 0.023907475173473358, -0.022699976339936256, 0.028719983994960785, 0.013919287361204624, -0.009718585759401321, -0.042632199823856354, 0.0952790305018425, 0.022730857133865356, -0.008600285276770592 ]
[ 0.012597090564668179, 0.01742233894765377, -0.01782052218914032, 0.0033695786260068417, 0.0301116481423378, 0.00826767086982727, 0.0010029490804299712, -0.0310368575155735, -0.00653896015137434, 0.004030375741422176, 0.028273548930883408, 0.002399338874965906, 0.0007940607611089945, -0.013903806917369366, 0.04537284001708031, -0.02675204910337925, 0.021515388041734695, -0.037796273827552795, 0.009350121952593327, -0.008568843826651573, -0.014344556257128716, 0.024864891543984413, 0.04172678664326668, 0.015016277320683002, -0.01593133620917797, 0.006475162226706743, -0.01237023901194334, 0.018937015905976295, 0.042332638055086136, -0.14019888639450073, -0.0019636594224721193, -0.034618623554706573, 0.006453635171055794, 0.009677576832473278, -0.034699611365795135, 0.006170891225337982, -0.011861077509820461, -0.03326041251420975, -0.014705038629472256, 0.002130219480022788, -0.007586570922285318, 0.018552931025624275, 0.03564286231994629, 0.013159875757992268, 0.022851981222629547, -0.017740298062562943, -0.018635671585798264, -0.013491271063685417, -0.012383626773953438, 0.0010482289362698793, -0.054666824638843536, 0.012834310531616211, 0.0038109964225441217, -0.015566135756671429, -0.018179645761847496, 0.007269847206771374, -0.013122144155204296, 0.015390676446259022, 0.02565985545516014, -0.0010328697971999645, -0.009361330419778824, -0.03987594693899155, -0.022239556536078453, -0.00493967579677701, 0.02627861313521862, -0.04155735671520233, -0.05195527523756027, -0.008200926706194878, -0.025170443579554558, 0.005093132611364126, -0.017792988568544388, 0.005975008942186832, -0.0019203497795388103, 0.0003145836235489696, -0.038431115448474884, -0.021166983991861343, -0.010190713219344616, -0.04515410587191582, -0.0025316590908914804, 0.0023609758354723454, -0.002197893802076578, 0.0011924485443159938, 0.03752550110220909, 0.00011323345825076103, 0.021284546703100204, -0.02677476406097412, 0.013253570534288883, 0.0027156220749020576, 0.007945851422846317, 0.01871834322810173, -0.031074997037649155, 0.015840141102671623, 0.049039650708436966, 0.03441375866532326, -0.07626307010650635, -0.009774545207619667, -0.005681042093783617, -0.03573654964566231, -0.039327237755060196, 0.8506409525871277, 0.020066633820533752, -0.00246163597330451, 0.033994924277067184, 0.022824879735708237, -0.017999693751335144, -0.03465595468878746, -0.0019660238176584244, 0.020591653883457184, 0.007210171315819025, -0.027803337201476097, 0.0091637521982193, 0.028013022616505623, -0.00018542863836046308, 0.0005770926363766193, 0.014687900431454182, -0.009376700967550278, 0.017458617687225342, -0.000604290864430368, 0.009817040525376797, 0.003341840347275138, 0.011854154989123344, 0.0009535887511447072, -0.015357733704149723, -0.013388887979090214, 0.009723367169499397, -0.15977352857589722, 0.007479894440621138, -6.541504839471101e-33, 0.04922982305288315, -0.014808482490479946, -0.002189955208450556, -0.005161133594810963, 0.006729779299348593, 0.004301133565604687, 0.013316992670297623, 0.009786214679479599, -0.005071636755019426, -0.04403017833828926, 0.019949300214648247, 0.005340376868844032, -0.031030036509037018, 0.003375923726707697, 0.03069562464952469, 0.014407994225621223, -0.00843041017651558, 0.03757137060165405, 0.009325136430561543, -0.006538412533700466, 0.04799037054181099, 0.03220320865511894, 0.053463537245988846, -0.003167400835081935, -0.04149080067873001, 0.0028623598627746105, 0.004547768738120794, 0.0031488067470490932, -0.02144363708794117, -0.03823259472846985, -0.01778821274638176, -0.02560216188430786, 0.0044032190926373005, -0.03926945477724075, 0.02327386848628521, -0.04696228727698326, -0.03932364284992218, 0.011326545849442482, -0.007161507848650217, 0.0001731305819703266, -0.02266591042280197, 0.018731942400336266, -0.047771155834198, -0.008641377091407776, -0.031278908252716064, 0.03968459367752075, 0.02300502359867096, 0.010990365408360958, -0.00965623464435339, 0.04967530071735382, -0.018617207184433937, 0.0035982239060103893, -0.013509671203792095, -0.029461275786161423, 0.01809104159474373, 0.018712710589170456, 0.023154668509960175, 0.0037346913013607264, 0.014184449799358845, -0.04617255926132202, -0.019735319539904594, -0.005537708289921284, 0.015124018304049969, 0.03171788901090622, -0.006144583225250244, 0.008123179897665977, 0.04857075586915016, 0.015120510943233967, -0.004512718413025141, -0.03365325182676315, -0.047781191766262054, 0.03858943283557892, -0.006890786346048117, -0.029506437480449677, 0.01400656346231699, -0.024248436093330383, -0.018630828708410263, -0.027122845873236656, 0.02805384248495102, 0.040596723556518555, 0.0005193540710024536, -0.008608014322817326, 0.007011202163994312, -0.038493264466524124, -0.032138749957084656, -0.0245459396392107, 0.036045294255018234, -0.010606537573039532, 0.0013539574574679136, 0.02009993977844715, 0.008089017122983932, 0.05842476338148117, 0.0008961248095147312, -0.011788911186158657, 0.0075671677477657795, 6.687744418237056e-33, 0.006962125189602375, 0.007999607361853123, -0.004997887182980776, 0.0038962538819760084, 0.011210296303033829, -0.021983863785862923, 0.02781798131763935, 0.033785734325647354, -0.009835607372224331, 0.0014041838003322482, -0.014094856567680836, -0.06358856707811356, -0.02300267107784748, 0.031001538038253784, 0.016141073778271675, -0.02237422950565815, 0.009735471569001675, 0.03333728760480881, -0.007214292883872986, -0.015338683500885963, -0.026722490787506104, 0.0044025578536093235, 0.0003040565934497863, 0.015679625794291496, 0.042828772217035294, 0.040935516357421875, 0.009204527363181114, -0.009995042346417904, -0.019097333773970604, 0.023910002782940865, 0.013830145820975304, 0.002972308313474059, -0.008299728855490685, 0.02387869358062744, 0.006140260025858879, 0.03964171186089516, 0.013423879630863667, 0.000984039856120944, -0.0017401175573468208, 0.0012454011011868715, 0.01635093241930008, 0.028205156326293945, -0.004529387690126896, -0.007439759094268084, -0.015846699476242065, 0.008032272569835186, -0.011369016952812672, 0.011887632310390472, -0.02966913767158985, -0.027933744713664055, -0.011936943046748638, 0.0231985654681921, 0.012361656874418259, 0.02402995526790619, 0.0032386500388383865, -0.012135932222008705, -0.020427672192454338, 0.02140503190457821, -0.017412787303328514, -0.033779311925172806, -0.0432949997484684, -0.036794718354940414, -0.02941540814936161, -0.0014966734452173114, -0.009364272467792034, -0.01977563463151455, 0.00909599382430315, 0.043141718953847885, 0.010552429594099522, 0.0027070099022239447, 0.014328976161777973, -0.025193797424435616, 0.005688096396625042, 0.03866511210799217, 0.0045445701107382774, 0.040003012865781784, 0.021102480590343475, 0.0030862793792039156, -0.004382916260510683, 0.016766604036092758, 0.01328141801059246, -0.03091239742934704, 0.019411450251936913, -0.012999777682125568, 0.02126801572740078, 0.0390390008687973, -0.023358814418315887, -0.01123849768191576, 0.0326426737010479, 0.014597851783037186, -0.011790799908339977, -0.015049908310174942, 0.014495777897536755, 0.012710519134998322, 0.04061838611960411, -1.253438242088123e-8, -0.07593466341495514, -0.05717511475086212, -0.028899436816573143, 0.06327858567237854, -0.02766059711575508, 0.013615019619464874, 0.004311747848987579, -0.029284024611115456, 0.03448987752199173, -0.0017449583392590284, 0.043052226305007935, 0.014069145545363426, -0.0019604507833719254, 0.014006977900862694, -0.01290714181959629, -0.01863870397210121, 0.008945033885538578, 0.04277665168046951, 0.04348607361316681, 0.009364821016788483, 0.022622888907790184, 0.024407491087913513, 0.05887496843934059, -0.04326903820037842, -0.008307368494570255, -0.004358780104666948, -0.026619549840688705, -0.08689238876104355, -0.025240235030651093, -0.01130563486367464, 0.023926859721541405, -0.04949210584163666, -0.023831266909837723, -0.04549785330891609, -0.0023856721818447113, -0.03421464562416077, 0.03792188689112663, -0.01777571812272072, 0.008457627147436142, 0.008830898441374302, 0.0020146798342466354, -0.020578235387802124, -0.0034946065861731768, -0.04220450296998024, -0.019729256629943848, 0.006611167453229427, -0.007438185159116983, -0.011387277394533157, 0.021898718550801277, -0.013509077951312065, -0.011347202584147453, -0.01939072459936142, 0.004146749619394541, 0.028845757246017456, 0.024332409724593163, -0.01651582308113575, 0.02333054132759571, 0.02107500471174717, -0.04309508949518204, 0.022634951397776604, 0.03989621251821518, 0.026980187743902206, -0.012613706290721893, -0.016944916918873787 ]
return-consistent-predictable-valid-json-openai-gpt
https://markhneedham.com/blog/2023/07/27/return-consistent-predictable-valid-json-openai-gpt
false
2023-07-11 04:44:37
Quix Streams: Consuming and Producing JSON messages
[ "python", "quixstreams", "til" ]
[ "TIL" ]
:icons: font I've been meaning to take https://quix.io/docs/client-library/quickstart.html[Quix Streams^] for a spin for a while and got the chance while building a recent demo. Quix Streams is a library for building streaming applications on time-series data, but I wanted to use it to do some basic consuming and producing of JSON messages. That's what we're going to do in this blog post. We're going to use Redpanda to store our messages. We'll launch a Redpanda instance using the following Docker Compose file: .docker-compose.yml [source, yml] ---- version: '3.7' services: redpanda: container_name: "redpanda-quix" image: docker.redpanda.com/vectorized/redpanda:v22.2.2 command: - redpanda start - --smp 1 - --overprovisioned - --node-id 0 - --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 - --advertise-kafka-addr PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092 - --pandaproxy-addr 0.0.0.0:8082 - --advertise-pandaproxy-addr localhost:8082 ports: - 9093:9092 ---- Run `docker compose up` to start the cluster and then we're going to create some topics: [source, bash] ---- rpk topic create \ -c cleanup.policy=compact \ -r 1 -p 5 \ events big-events ---- `events` is where we'll write our generated data and `big-events` will be used later in the blog post. Our data generator is shown below: [source, python] ---- import datetime import uuid import random import json while True: ts = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%fZ") id = str(uuid.uuid4()) count = random.randint(0, 1000) print( json.dumps({"tsString": ts, "uuid": id[:3], "count": count}) ) ---- We can then call it to generate some data and ingest it into Redpanda using the kcat tool: [source, bash] ---- python datagen.py 2>/dev/null | jq -cr --arg sep 😊 '[.uuid, tostring] | join($sep)' | kcat -P -b localhost:9092 -t events -K😊 ---- Let's check the messages have been ingested using the https://docs.redpanda.com/docs/reference/rpk/[rpk^] tool: [source, bash] ---- rpk topic consume events --brokers localhost:9092 | jq -Cc '.value | fromjson' | head -n5 ---- .Output [source, text] ---- {"tsString":"2023-07-11T13:42:34.986675Z","uuid":"7cc","count":779} {"tsString":"2023-07-11T13:42:34.986734Z","uuid":"122","count":234} {"tsString":"2023-07-11T13:42:34.986811Z","uuid":"1b9","count":13} {"tsString":"2023-07-11T13:42:34.986819Z","uuid":"22f","count":298} {"tsString":"2023-07-11T13:42:34.986841Z","uuid":"688","count":986} ---- So far, so good. Next, let's install Quix Streams: [source, bash] ---- pip install quixstreams ---- And now we're going to create a little application that consumes data from the `events` topic and writes to the `big-events` topic any events that have a `count` bigger than 500: .filter_events.py [source, python] ---- import quixstreams as qx from quixstreams import StreamConsumer, EventData import json client = qx.KafkaStreamingClient('127.0.0.1:9092') topic_consumer = client.get_topic_consumer( #<1> topic="events", auto_offset_reset=qx.AutoOffsetReset.Earliest, consumer_group="events-consumer-group" ) def on_event_data_received_handler(stream: StreamConsumer, data: EventData): with data: payload = json.loads(data.value) if payload["count"] > 500: # <2> with (producer := client.get_raw_topic_producer("big-events")): # <3> message = qx.RawMessage(json.dumps(payload, indent=2).encode('utf-8')) message.key = payload["uuid"].encode('utf-8') producer.publish(message) # <4> def on_stream_received_handler(stream_received: StreamConsumer): stream_received.events.on_data_received = on_event_data_received_handler print("Listening to streams. Press CTRL-C to exit.") topic_consumer.on_stream_received = on_stream_received_handler topic_consumer.subscribe() qx.App.run() ---- <.> Create consumer for `events` topic <.> Only keep events that have a `count` bigger than 500 <.> Create producer for `big-events` topic <.> Publish to `big-events` Let's run this file: [source, bash] ---- python filter_events.py ---- We can then check if any events have made it into the `big-events` topic: [source, bash] ---- rpk topic consume big-events --brokers localhost:9092 | jq -Cc '.value | fromjson' | head -n5 ---- .Output [source,text] ---- {"tsString":"2023-07-11T13:42:34.986716Z","uuid":"277","count":794} {"tsString":"2023-07-11T13:42:34.986975Z","uuid":"280","count":585} {"tsString":"2023-07-11T13:42:34.987040Z","uuid":"92c","count":505} {"tsString":"2023-07-11T13:42:34.987062Z","uuid":"d12","count":929} {"tsString":"2023-07-11T13:42:34.987081Z","uuid":"6f6","count":582} ---- Job done!
In this post, we're going to learn how to consume and produce JSON messages using the Quix Streams stream processor.
uploads/2023/07/quix-banner.png
[ 0.0021285628899931908, -0.035329099744558334, 0.0065336101688444614, 0.0335039384663105, 0.08249840140342712, 0.04235958680510521, -0.02282540127635002, 0.0729854479432106, -0.040865708142519, -0.019920511171221733, -0.010569694451987743, -0.01886208914220333, -0.0803513303399086, 0.02098570577800274, 0.008236526511609554, 0.08227113634347916, 0.07994247227907181, 0.0071364836767315865, 0.022348836064338684, 0.005507081281393766, 0.04250553250312805, 0.06651262193918228, -0.006950618699193001, 0.06474805623292923, 0.0012275800108909607, 0.006397291086614132, -0.001257184543646872, -0.010584034956991673, -0.04880629852414131, -0.03529113158583641, 0.04211056977510452, -0.0059697856195271015, -0.00594719173386693, 0.018955940380692482, 0.02103099413216114, -0.015045440755784512, -0.017372187227010727, 0.016646316275000572, -0.0013939585769549012, 0.03624371811747551, -0.07844572514295578, 0.03241807594895363, 0.025667842477560043, 0.001391624566167593, -0.023475777357816696, 0.023096956312656403, -0.036199282854795456, -0.004411359783262014, -0.025264404714107513, -0.007224597502499819, -0.07536166161298752, 0.03594549372792244, -0.024067096412181854, 0.006672036834061146, 0.002822168869897723, 0.040737446397542953, 0.009367795661091805, -0.05185598134994507, 0.017764966934919357, -0.03386668115854263, 0.02329542674124241, -0.006737542804330587, 0.024203216657042503, 0.05060753598809242, 0.014345820061862469, -0.009775704704225063, -0.0061406586319208145, 0.03989160433411598, -0.03775821998715401, -0.01943979412317276, 0.0022893953137099743, 0.042720310389995575, -0.03350982442498207, -0.017670702189207077, -0.0004640957631636411, -0.0476820282638073, -0.017139088362455368, 0.05146001651883125, 0.020580926910042763, 0.05248711258172989, 0.000989069347269833, 0.002347349189221859, 0.01264278870075941, 0.044294875115156174, -0.019025687128305435, -0.05781063809990883, -0.04224977642297745, 0.009485549293458462, -0.07076864689588547, 0.05988435447216034, 0.02814972773194313, -0.054467927664518356, 0.034320052713155746, 0.004207572899758816, -0.016449246555566788, 0.020365359261631966, -0.006959248334169388, 0.003302337834611535, 0.019986378028988838, 0.001156760030426085, -0.05349995195865631, -0.014932071790099144, 0.03512617573142052, 0.049360040575265884, -0.07512856274843216, -0.03510813042521477, -0.03820208087563515, -0.03118140436708927, 0.02061859890818596, 0.01055349875241518, 0.01004638709127903, 0.01404824759811163, -0.007062834221869707, -0.0028632855974137783, -0.07601482421159744, 0.07793229073286057, 0.0041826143860816956, -0.018579095602035522, 0.003918759059160948, 0.005644519347697496, 0.054331663995981216, 0.01704351231455803, -0.0217877309769392, 0.07251092791557312, 0.0123946787789464, 0.01604318432509899, 0.0006327561568468809, 0.054253771901130676, -0.01513234619051218, -0.05914155766367912, 0.0021432461217045784, 0.0702400952577591, 0.0055945622734725475, -0.0009896650444716215, 0.0082129817456007, -0.005624167155474424, -0.005369887687265873, 0.006337710190564394, 0.06151017174124718, 0.026490194723010063, 0.01332355197519064, -0.047032374888658524, 0.010319762863218784, 0.008624974638223648, -0.013878990896046162, 0.02680893987417221, 0.016609225422143936, -0.05473959818482399, -0.03030107170343399, 0.024083644151687622, 0.0018178343307226896, 0.00645968085154891, 0.05896797776222229, -0.030389033257961273, 0.006463055033236742, 0.07278388738632202, 0.04223329946398735, 0.014380031265318394, -0.02739429660141468, 0.010163659229874611, 0.027064425870776176, 0.034085504710674286, 0.001265158411115408, 0.01835058070719242, 0.010928800329566002, -0.0192823838442564, -0.006688451394438744, 0.02219252474606037, -0.01800423301756382, -0.004256883170455694, -0.03649383783340454, -0.060228828340768814, 0.07771798223257065, -0.0014906576834619045, 0.014359401538968086, 0.03631236031651497, 0.0805724486708641, 0.0275882575660944, 0.018296565860509872, 0.029526693746447563, -0.08790251612663269, 0.02570711076259613, -0.010040136985480785, 0.021672477945685387, 0.028384026139974594, -0.033219076693058014, 0.07350094616413116, 0.04220457747578621, 0.005873200483620167, 0.04287507012486458, -0.06468446552753448, -0.04923320189118385, -0.04321664571762085, -0.0029715129639953375, 0.0558050274848938, -0.06348675489425659, -0.02191142551600933, 0.0546925887465477, 0.023698389530181885, 0.02294299751520157, -0.010133890435099602, 0.012306224554777145, 0.0031262137927114964, -0.061117369681596756, -0.0925794467329979, 0.03348081558942795, 0.027731357142329216, -0.020421355962753296, -0.04215441271662712, -0.005980145651847124, -0.039443884044885635, -0.010097391903400421, 0.030859101563692093, -0.023023607209324837, 0.028517920523881912, -0.008157442323863506, 0.009977670386433601, -0.02521023154258728, 0.023830493912100792, -0.06135852262377739, 0.03888711333274841, -0.013947248458862305, -0.0015519227599725127, -0.008365809917449951, -0.024260008707642555, 0.11960707604885101, 0.051702309399843216, -0.026854850351810455, -0.01645619049668312, 0.043583232909440994, 0.0005541277932934463, -0.020332563668489456, -0.0052080582827329636, -0.029930995777249336, -0.022591175511479378, -0.002343175932765007, -0.033284105360507965, -0.017922895029187202, 0.0010988733265548944, -0.023128027096390724, 0.01410742662847042, 0.0540459081530571, -0.05030128359794617, 0.055468473583459854, 0.0339791364967823, -0.03189033642411232, -0.009504159912467003, -0.05728258565068245, -0.06954308599233627, -0.008813638240098953, 0.009196382947266102, -0.007026217877864838, 0.06324023008346558, -0.053915537893772125, -0.0031647775322198868, -0.020044947043061256, -0.04320104047656059, 0.03179275617003441, 0.04828547686338425, 0.05802658945322037, -0.038914766162633896, 0.02526838146150112, -0.0032380344346165657, 0.0013946190010756254, -0.015878647565841675, -0.054455988109111786, -0.009983633644878864, 0.0009085148922167718, 0.021580159664154053, 0.020314780995249748, 0.02996300347149372, 0.015818558633327484, 0.027071552351117134, -0.009028328582644463, 0.006782465614378452, -0.010481996461749077, 0.04592224583029747, 0.010209842585027218, 0.0025192387402057648, -0.031648557633161545, -0.01819322071969509, 0.0765899196267128, -0.04594292491674423, -0.012204136699438095, 0.017077434808015823, -0.04749054089188576, 0.015090291388332844, -0.03079574927687645, -0.034842390567064285, -0.010816824622452259, 0.017686249688267708, 0.02682914398610592, 0.015773829072713852, -0.0016353294486179948, 0.04285794496536255, 0.03856503963470459, -0.011436804197728634, 0.002935460302978754, -0.02136392891407013, 0.03527504950761795, -0.010028261691331863, -0.0055199614726006985, 0.09277848899364471, 0.027869202196598053, -0.0064099677838385105, -0.049956753849983215, 0.015133852139115334, -0.020825976505875587, -0.2707933187484741, 0.012620356865227222, 0.006785898003727198, -0.01362111046910286, 0.01769750565290451, 0.0063440934754908085, 0.020403999835252762, -0.032162439078092575, -0.0114054623991251, 0.012181117199361324, -0.04006446897983551, -0.07267458736896515, -0.026359999552369118, 0.014901768416166306, 0.0056641907431185246, 0.01209063921123743, 0.012099510990083218, -0.0325343944132328, 0.014079960063099861, 0.010601901449263096, -0.018559353426098824, -0.05799862742424011, -0.0013911437708884478, 0.044871244579553604, 0.04175030440092087, 0.02562566287815571, -0.07995229214429855, 0.03263117000460625, -0.053493425250053406, -0.012320148758590221, 0.023203054443001747, -0.014732139185070992, -0.0014803477097302675, -0.016718881204724312, -0.01957160048186779, -0.034775760024785995, 0.032115302979946136, -0.01573161594569683, 0.03138161450624466, -0.0047616614028811455, -0.02618010714650154, -0.0401349775493145, 0.0019562416709959507, -0.011103175580501556, 0.07581689953804016, 0.004977308213710785, -0.07551714032888412, -0.004005259368568659, -0.04017341136932373, 0.07888194173574448, -0.03762633353471756, -0.04571227356791496, -0.021611051633954048, 0.03095053881406784, -0.005664367228746414, -0.02280757762491703, -0.034015852957963943, -0.0021270005963742733, -0.028339926153421402, -0.03439263999462128, 0.02522112801671028, -0.01629321090877056, -0.03141727298498154, -0.036801278591156006, -0.018060779199004173, -0.057703182101249695, -0.07116378843784332, -0.019216718152165413, 0.08326040953397751, 0.04264935106039047, -0.058202099055051804, -0.02333172969520092, 0.00014767285028938204, -0.10470453649759293, -0.008663048036396503, -0.01226795744150877, -0.04548044130206108, 0.015659285709261894, -0.015729859471321106, 0.05077106133103371, -0.04575858265161514, -0.04371250420808792, 0.025342868641018867, 0.009409945458173752, 0.012580057606101036, -0.035257287323474884, 0.019577844068408012, -0.017235849052667618, -0.004966776352375746, 0.0028087866958230734, 0.05881151929497719, -0.04588882997632027, -0.01855188049376011, -0.005262621212750673, 0.00457253260537982, 0.038148410618305206, 0.003079793183133006, 0.006742833647876978, 0.021568074822425842, 0.03132528439164162, 0.03335494175553322, -0.053362250328063965, -0.010463105514645576, -0.040347978472709656, 0.004795676097273827, -0.006166635546833277, -0.039315976202487946, 0.004492858424782753, 0.016412464901804924, 0.010588151402771473, 0.004222255200147629, -0.02800850011408329, 0.011626862920820713, -0.06892388314008713, -0.02248828299343586, -0.01611991785466671, 0.027139868587255478, 0.06100008636713028, 0.026109540835022926, -0.003219702048227191, -0.059194181114435196, 0.042002804577350616, 0.01431016344577074, -0.015643594786524773, -0.05152931809425354, -0.02396000735461712, 0.0036183129996061325, -0.020984863862395287, -0.010217689909040928, -0.005532845854759216, -0.015486286021769047, 0.005755394231528044, 0.04216407984495163, -0.044705431908369064, 0.030997609719634056, -0.04218674823641777, -0.044615909457206726, -0.04139384999871254, 0.009685580618679523, 0.017731688916683197, -0.02119951881468296, 0.01960623450577259, -0.009349078871309757, 0.015442992560565472, 0.047152016311883926, 0.013805546797811985, 0.01182208489626646, 0.0014607977354899049, 0.03141922503709793, 0.009230510331690311, 0.012768063694238663, -0.03282224386930466, 0.002757360227406025, -0.016691243276000023, -0.03024771250784397, -0.006451693829149008, 0.026256756857037544, -0.017131291329860687, -0.012096571736037731, -0.04593828320503235, 0.003915534354746342, -0.06451576948165894, -0.010249419137835503, -0.011956761591136456, 0.012316735461354256, 0.04691518470644951, -0.00964355655014515, 0.022064726799726486, 0.0065892543643713, -0.009574927389621735, 0.010696429759263992, -0.000004493042979447637, -0.03369617089629173, 0.03736842796206474, -0.004309023730456829, -0.007774514611810446, 0.001045744400471449, 0.021499011665582657, 0.03185563161969185, 0.026784829795360565, 0.0084339315071702, 0.0005383033421821892, 0.021687518805265427, 0.01489243470132351, 0.038386020809412, 0.06745313107967377, -0.013615506701171398, -0.005037650465965271, -0.04188685491681099, -0.028289256617426872, -0.01845298893749714, 0.014145893044769764, -0.00942237302660942, -0.015392469242215157, -0.034513480961322784, -0.07351069152355194, 0.03608417510986328, 0.019081536680459976, 0.01488401461392641, 0.009104622527956963, -0.03641236200928688, 0.018264206126332283, -0.03309939429163933, 0.03332652524113655, 0.04578127712011337, -0.069715216755867, -0.018949080258607864, -0.00866206455975771, 0.01807286962866783, -0.009025567211210728, 0.020739639177918434, -0.044268202036619186, -0.009700426831841469, 0.009801180101931095, 0.007984636351466179, -0.02380143105983734, -0.016530102118849754, -0.03361416980624199, 0.03893964737653732, 0.005714908242225647, 0.029405314475297928, 0.005193277727812529, -0.024394579231739044, -0.02259419858455658, -0.022237777709960938, 0.03799985721707344, -0.028110142797231674, -0.0024326692800968885, 0.01214782614260912, -0.025297364220023155, 0.01464439183473587, -0.037059735506772995, 0.03594373166561127, 0.008769460953772068, -0.024505484849214554, -0.006796705070883036, -0.03903818503022194, -0.012587741017341614, 0.0006721278186887503, 0.04305027797818184, 0.009902325458824635, -0.016534974798560143, -0.05003221705555916, 0.004770351108163595, -0.025292430073022842, 0.0026398003101348877, 0.0012753396295011044, 0.00599381048232317, 0.010611060075461864, 0.031196599826216698, -0.01267135702073574, -0.005242978222668171, -0.024536795914173126, -0.05801454186439514, 0.0628809928894043, -0.06425679475069046, -0.05003401264548302, 0.001452167402021587, -0.04493469372391701, 0.0025506759993731976, -0.006027902942150831, 0.03189217671751976, -0.05592707544565201, 0.03223809972405434, 0.041115712374448776, 0.05235486477613449, 0.04619769752025604, 0.013309172354638577, 0.04216471314430237, 0.009114209562540054, 0.0022189058363437653, -0.10157017409801483, -0.004186153411865234, 0.018468353897333145, 0.0028301437851041555, 0.0035263365134596825, 0.0019457570742815733, -0.059540022164583206, 0.054319098591804504, -0.04390912875533104, -0.022533858194947243, 0.07811888307332993, -0.0009824532316997647, 0.012557548470795155, 0.022756733000278473, -0.07165969908237457, 0.04972745105624199, 0.05497577041387558, -0.04615596681833267, -0.007802803535014391, 0.008564263582229614, 0.04981822147965431, 0.0049941507168114185, 0.02289656735956669, -0.004961926490068436, -0.03357217088341713, 0.07190577685832977, 0.011289735324680805, 0.003205530345439911, 0.05470487102866173, -0.013631003908813, 0.04442669451236725, 0.032301731407642365, -0.03277302160859108, 0.019159698858857155, 0.019138270989060402, -0.01709766685962677, -0.06696382164955139, 0.03965725004673004, 0.003581488272175193, -0.024416152387857437, -0.047806140035390854, 0.0633903443813324, -0.0015684915706515312, -0.04811334237456322, -0.04052073881030083, 0.009166643023490906, -0.0538162998855114, 0.00003228239802410826, -0.02492893487215042, 0.03270842134952545, -0.038240596652030945, 0.04297175630927086, -0.010870134457945824, 0.0004255380481481552, 0.09608416259288788, -0.004257856868207455, -0.006841103080660105, -0.0007347959326580167, 0.10399071127176285, 0.07154494524002075, 0.039984676986932755, -0.009870667941868305, 0.07285523414611816, -0.059670623391866684, -0.031163539737462997, 0.012605617754161358, 0.012808093801140785, -0.03740617260336876, -0.03161885216832161, 0.03332345560193062, 0.09422345459461212, -0.015503275208175182, 0.06345558911561966, -0.005111420527100563, -0.015775790438055992, -0.012617712840437889, 0.02951069548726082, 0.01454950962215662, 0.0027674054726958275, -0.007981335744261742, 0.035031355917453766, 0.0005031016771681607, -0.04543416574597359, 0.04749957472085953, 0.003012864151969552, -0.047135066241025925, 0.0254339762032032, 0.0006799754919484258, 0.013622533529996872, 0.019119108095765114, 0.0292607843875885, 0.06409590691328049, -0.022538313642144203, -0.013377870433032513, -0.001341077033430338, 0.0035601139534264803, 0.02222614735364914, 0.006419464014470577, -0.013451207429170609, -0.017561795189976692, -0.006321398075670004, -0.027416786178946495, -0.008562230505049229, -0.04190482199192047, -0.020087236538529396, 0.045660991221666336, -0.018089091405272484, -0.00713316211476922, 0.02242199331521988, -0.022838901728391647, -0.0381837859749794, -0.0484955757856369, -0.06408186256885529, -0.04854680597782135, -0.0637708306312561, 0.002228612545877695, 0.004415436647832394, -0.013232548721134663, -0.0247181486338377, -0.0512549951672554, -0.015853770077228546, 0.02748863957822323, -0.013340561650693417, -0.05627638101577759, -0.02412077598273754, 0.01595289073884487, -0.0006608606781810522, -0.013150095008313656, 0.0038389330729842186, 0.07054200023412704, 0.0014438070356845856, -0.010997254401445389, -0.017153220251202583, 0.04050607234239578, 0.03561670705676079, 0.0049794865772128105, 0.009854987263679504, -0.06753270328044891, 0.021506523713469505, 0.03495629131793976, -0.008106826804578304, -0.07099056243896484, 0.028627051040530205, 0.0412311777472496, 0.0002208124496974051, 0.0697951391339302, -0.006883568596094847, 0.0069362930953502655, -0.028135722503066063, -0.020406285300850868, 0.018046364188194275, 0.024739475920796394, 0.060698799788951874, -0.027940979227423668, 0.07817866653203964, 0.05841495469212532, -0.009300037287175655, -0.028569044545292854, -0.0003775184159167111, -0.01690026745200157, 0.010392026975750923, -0.02434835024178028, -0.010520213283598423, -0.04395931959152222, -0.09456697851419449, -0.022907422855496407, -0.00048692477867007256, -0.025106176733970642, -0.0318608395755291, 0.01946832798421383, 0.020483573898673058, -0.0025526010431349277, 0.011690347455441952, -0.06546798348426819, -0.0069128042086958885, -0.015375886112451553, -0.012756368145346642, -0.030405687168240547, 0.02141893468797207, 0.004919521044939756, -0.0198306143283844, -0.005871073808521032, -0.05832565203309059, 0.004032934550195932, 0.008688545785844326, 0.05896088108420372, 0.05810268595814705, 0.010103642009198666, -0.008811757899820805 ]
[ -0.06554929912090302, -0.008426367305219173, -0.02288738265633583, -0.011332531459629536, 0.07233325392007828, -0.0681043192744255, -0.04465741291642189, 0.05432472005486488, -0.013434194028377533, -0.01736420765519142, -0.017630595713853836, -0.037469860166311264, 0.014591493643820286, -0.021397899836301804, 0.09319397062063217, -0.0016667317831888795, 0.015511849895119667, -0.07801684737205505, -0.06200442835688591, 0.0385981947183609, -0.014508833177387714, -0.016547823324799538, -0.05435136705636978, -0.02269006334245205, 0.018527882173657417, 0.03397871181368828, 0.033345580101013184, -0.043310072273015976, 0.017971590161323547, -0.1878802329301834, -0.021467283368110657, -0.033235613256692886, 0.021492864936590195, -0.007621730677783489, -0.00010108191781910136, 0.027186213061213493, 0.010061250999569893, -0.005704997107386589, 0.0014465885469689965, 0.03169091045856476, 0.04514697194099426, 0.005891094449907541, -0.04893099516630173, 0.026067553088068962, 0.014254530891776085, -0.03746408596634865, -0.042327020317316055, 0.0035585295408964157, 0.02946040965616703, 0.014674990437924862, -0.023291192948818207, 0.007336307782679796, 0.02888740785419941, -0.028494473546743393, 0.019438622519373894, 0.025534015148878098, 0.02920944057404995, 0.034889135509729385, 0.008215042762458324, -0.012527198530733585, 0.030138760805130005, -0.01872088573873043, -0.1508847326040268, 0.12488489598035812, -0.008012605831027031, 0.007029639091342688, 0.004955264274030924, 0.03774821385741234, -0.0419880747795105, 0.02803959883749485, -0.011081000789999962, -0.009405492804944515, -0.020577674731612206, 0.05536261200904846, -0.01515019778162241, -0.021296165883541107, -0.0026058373041450977, -0.008132483810186386, 0.03852532058954239, -0.022273670881986618, -0.03597475588321686, -0.026853244751691818, 0.0035779818426817656, -0.007776692509651184, 0.015661893412470818, 0.00981302559375763, 0.002822289476171136, 0.019882135093212128, 0.02639102376997471, 0.04663073644042015, -0.011312378570437431, -0.0009833223884925246, 0.06859079748392105, 0.042388394474983215, -0.08542684465646744, 0.018916765227913857, -0.012716472148895264, 0.05492173135280609, -0.047827474772930145, 0.3964938819408417, -0.002769829472526908, 0.009211733005940914, -0.02182171680033207, 0.025856345891952515, 0.04560726508498192, -0.04369546100497246, 0.035000789910554886, -0.025650423020124435, 0.027348175644874573, 0.004630011972039938, 0.00987513642758131, -0.03925337642431259, 0.05645151436328888, -0.06726354360580444, -0.0053083281964063644, -0.03505393862724304, 0.000029027483833488077, 0.010622113011777401, 0.011375827714800835, 0.027957674115896225, -0.010284815914928913, -0.021334761753678322, 0.05012251064181328, 0.0179063118994236, 0.05167549103498459, 0.021640431135892868, 0.040658749639987946, 0.03655984252691269, -0.04507586732506752, 0.03143378347158432, 0.015999671071767807, -0.01755513623356819, -0.019673267379403114, 0.003013406880199909, 0.03244723007082939, 0.021128350868821144, 0.06111534684896469, -0.05082195624709129, -0.006626507733017206, 0.037921350449323654, -0.01892509125173092, -0.026723898947238922, 0.043303146958351135, -0.02421814575791359, -0.008558759465813637, 0.10357804596424103, 0.03669639304280281, -0.014367001131176949, -0.03687901794910431, -0.043991416692733765, -0.003811831120401621, 0.03946014866232872, 0.01040872186422348, -0.05560046806931496, -0.010941036976873875, 0.02614295668900013, 0.09111564606428146, -0.017034320160746574, -0.05854707211256027, 0.030897609889507294, -0.025037985295057297, -0.05760340020060539, -0.0400482714176178, 0.0032348318491131067, 0.018110426142811775, -0.15013563632965088, -0.017788860946893692, 0.03964897617697716, 0.009422367438673973, -0.027643928304314613, -0.026710063219070435, 0.03777555376291275, 0.014932530000805855, -0.021080005913972855, 0.006563917268067598, -0.009532906115055084, -0.026180710643529892, 0.012430518865585327, 0.0657864511013031, -0.02460469864308834, -0.03816608712077141, -0.024860017001628876, 0.007446712348610163, 0.011046573519706726, -0.02729235403239727, -0.08396512269973755, -0.012007813900709152, -0.017534293234348297, -0.0024163874331861734, -0.05480588972568512, -0.05547912046313286, -0.025194412097334862, 0.014339006505906582, 0.08964111655950546, 0.018482260406017303, -0.030395179986953735, 0.018910784274339676, -0.028643058612942696, -0.0014151347568258643, -0.06937693059444427, 0.04414238780736923, 0.03040836937725544, 0.03009035810828209, 0.04372910410165787, -0.047231435775756836, 0.004493508953601122, 0.033103104680776596, -0.005332677625119686, 0.07200141251087189, 0.01762339659035206, -0.07424907386302948, 0.026287319138646126, 0.01983637735247612, 0.034493956714868546, -0.027900556102395058, 0.014167812652885914, 0.02597491443157196, 0.04585771635174751, -0.009508212096989155, 0.04224495589733124, 0.01763007417321205, -0.09178502857685089, -0.0618026964366436, -0.3743817210197449, 0.003944890107959509, -0.011799648404121399, -0.0021364972926676273, -0.006272233556956053, -0.035332776606082916, -0.028093712404370308, 0.01340426504611969, 0.004782544448971748, 0.052324652671813965, 0.05801644176244736, -0.07156224548816681, 0.00742731150239706, -0.10745341330766678, 0.0026339730247855186, -0.008428418077528477, -0.021955430507659912, -0.016301147639751434, -0.0042368024587631226, 0.02510121837258339, -0.017455894500017166, -0.01856255903840065, -0.036412596702575684, -0.06423211842775345, 0.024998685345053673, 0.039638880640268326, 0.07352660596370697, 0.05313891917467117, 0.05224672332406044, -0.0860678032040596, 0.07604830712080002, 0.0027799131348729134, -0.014912662096321583, -0.10967079550027847, -0.007456779945641756, 0.0000046083173401711974, 0.037977930158376694, 0.0380801223218441, -0.007458685897290707, -0.0029088244773447514, -0.025525396689772606, 0.0310344435274601, 0.006073152180761099, -0.0789242833852768, -0.006116770673543215, -0.03403940424323082, -0.023569662123918533, -0.041212789714336395, 0.009011451154947281, 0.026549657806754112, 0.01910373941063881, 0.04789091274142265, 0.010218234732747078, 0.03578595817089081, -0.01862051524221897, -0.014756305143237114, -0.0441921167075634, 0.012442059814929962, -0.01896784082055092, -0.012131991796195507, 0.032822951674461365, 0.06445056945085526, 0.04520038142800331, -0.030874550342559814, -0.04378105700016022, 0.01437739934772253, -0.00910196639597416, 0.00006234407919691876, 0.032478295266628265, -0.03405133634805679, -0.037048809230327606, 0.12610548734664917, -0.019488757476210594, 0.04653865471482277, 0.06848759949207306, 0.056417517364025116, 0.00036747887497767806, 0.02009740099310875, 0.023609763011336327, 0.038235653191804886, 0.017685772851109505, 0.007192422170192003, 0.048576582223176956, 0.008390062488615513, 0.006170580629259348, 0.04289412871003151, -0.014043252915143967, -0.02187010645866394, 0.02127727121114731, 0.031483959406614304, -0.012221463955938816, 0.03807472810149193, -0.03578812628984451, -0.08006945252418518, 0.020117124542593956, 0.005885675549507141, -0.2604498565196991, 0.008390888571739197, 0.03044232539832592, 0.02894480898976326, -0.02622073143720627, -0.018940823152661324, 0.009229837916791439, -0.06646434962749481, -0.011480730958282948, 0.03292212635278702, 0.0017496270593255758, 0.042884379625320435, 0.025319525972008705, -0.007971261627972126, 0.011931397952139378, 0.022491170093417168, 0.09292958676815033, 0.01684340462088585, -0.008315155282616615, -0.023836566135287285, -0.02084929496049881, -0.02932991273701191, 0.16875320672988892, 0.03591172769665718, -0.012577042914927006, 0.017252080142498016, -0.016608204692602158, -0.008608543314039707, 0.043216124176979065, 0.020123329013586044, 0.029803402721881866, -0.0010591057362034917, 0.08427989482879639, -0.019109729677438736, 0.040793079882860184, -0.05611272528767586, -0.006232998333871365, 0.026750367134809494, -0.010697166435420513, -0.03977702558040619, -0.018201502040028572, 0.054163891822099686, -0.017945248633623123, 0.019433384761214256, 0.012688961811363697, -0.0033215940929949284, -0.014459862373769283, -0.06325235962867737, -0.069544218480587, -0.0031508849933743477, -0.018705375492572784, -0.06358622759580612, -0.001370778540149331, -0.0026569594629108906, -0.009169560857117176, 0.03609711676836014, -0.029703669250011444, -0.04266125708818436, 0.03188734129071236, 0.020765982568264008, 0.01560855284333229, -0.04470445215702057, 0.09730623662471771, 0.000019997050912934355, 0.025677470490336418 ]
[ 0.002800002694129944, 0.0196092389523983, -0.014750181697309017, 0.00946510024368763, 0.00988569762557745, -0.008271349593997002, 0.013308541849255562, 0.019095823168754578, -0.0017436235211789608, -0.014764591120183468, -0.015998132526874542, 0.0007704300805926323, -0.024057166650891304, -0.010650891810655594, 0.01763608492910862, -0.03992043435573578, 0.034664928913116455, -0.030396776273846626, 0.036602821201086044, -0.032195962965488434, -0.04240882024168968, 0.02045196108520031, -0.0018961526220664382, 0.004183005075901747, -0.005595129914581776, 0.009112587198615074, -0.014992752112448215, 0.009718899615108967, 0.021135807037353516, -0.11983812600374222, 0.01601843163371086, -0.011296301148831844, 0.028527598828077316, -0.05041815713047981, 0.0012428122572600842, 0.03449113667011261, 0.026645705103874207, -0.020893733948469162, -0.045256681740283966, -0.003910949919372797, 0.07022085785865784, -0.012993555516004562, -0.0021244953386485577, 0.007893381640315056, -0.007549177389591932, -0.029429346323013306, -0.01786390319466591, -0.029498694464564323, -0.01569358818233013, 0.018519561737775803, -0.05394617095589638, 0.014805639162659645, -0.03637082129716873, 0.037286657840013504, 0.003460782812908292, 0.029038360342383385, -0.02342059276998043, -0.008002656511962414, 0.013623501174151897, -0.003237889613956213, -0.009975743480026722, -0.009443217888474464, -0.05663127824664116, -0.03199983760714531, -0.015904461964964867, -0.03300042822957039, -0.017820367589592934, 0.018560562282800674, 0.008935773745179176, 0.012505949474871159, 0.019473295658826828, 0.006131632253527641, -0.03659785911440849, -0.043203070759773254, -0.024771064519882202, -0.013428201898932457, 0.0363885834813118, -0.04426540806889534, -0.03546317294239998, 0.010714025236666203, -0.030170978978276253, 0.012650609016418457, 0.027953293174505234, -0.0063911122269928455, 0.0034403533209115267, 0.004268897231668234, -0.0035908794961869717, 0.0033951797522604465, 0.008461196906864643, -0.023296978324651718, -0.00942360982298851, 0.04123010113835335, 0.02561364136636257, 0.0009115799330174923, -0.05016779154539108, 0.020917847752571106, -0.04173443838953972, -0.004616537131369114, -0.014176408760249615, 0.8337926864624023, 0.02996624819934368, 0.020831802859902382, 0.014453662559390068, 0.011096176691353321, 0.0184416975826025, -0.014721324667334557, -0.008925444446504116, -0.016306590288877487, -0.0002822664682753384, -0.011795955710113049, 0.02339145354926586, -0.0008700577891431749, 0.02752765826880932, 0.0013705374440178275, 0.007296096533536911, 0.023373018950223923, -0.010907400399446487, -0.014098198153078556, -0.03902158886194229, 0.02363760396838188, 0.03569342568516731, -0.023089347407221794, 0.007890445180237293, 0.0017230802914127707, 0.015758192166686058, -0.18042340874671936, 0.000503940274938941, -5.866623777963271e-33, 0.028954070061445236, -0.046583469957113266, 0.020212244242429733, 0.00838114507496357, 0.05990327522158623, 0.012346475385129452, -0.0003360433620400727, -0.007362401578575373, -0.0083444369956851, -0.023776130750775337, -0.009291986003518105, -0.0018174141878262162, -0.03965273126959801, -0.031983084976673126, -0.014400302432477474, -0.024333199486136436, -0.0025855805724859238, 0.05007005110383034, -0.010386212728917599, 0.003599960822612047, 0.0241746436804533, 0.018540965393185616, -0.03414974734187126, -0.03122594766318798, 0.03571630269289017, 0.000890966213773936, 0.010094985365867615, -0.012019759975373745, -0.010304545983672142, -0.04554581642150879, -0.023004675284028053, 0.00239553302526474, -0.01843283511698246, 0.0028120940551161766, 0.020467720925807953, -0.06447847932577133, -0.018671849742531776, -0.004172616172581911, -0.036284975707530975, -0.01165982149541378, -0.060594040900468826, 0.017253786325454712, -0.060571733862161636, -0.02038622833788395, -0.03719709441065788, -0.01569398120045662, 0.022505778819322586, 0.02489648573100567, 0.018277999013662338, 0.04098682478070259, 0.024496739730238914, 0.003376282285898924, -0.003518675686791539, 0.023938888683915138, -0.019953802227973938, 0.026713332161307335, 0.013956828974187374, 0.031503766775131226, 0.02810855768620968, 0.011500319465994835, -0.022803079336881638, 0.00873888935893774, 0.005471478682011366, 0.021480893716216087, 0.02369317226111889, 0.023071402683854103, 0.022083980962634087, 0.02592509798705578, 0.0108315609395504, 0.04159005358815193, -0.04268433898687363, -0.003890494117513299, -0.006542818155139685, -0.04920387640595436, 0.061776597052812576, -0.039761461317539215, 0.030573777854442596, 0.01172802597284317, -0.018297288566827774, 0.04659254476428032, 0.03306780755519867, -0.03240147978067398, 0.0030854602809995413, 0.027393383905291557, -0.02181469090282917, -0.04034068435430527, 0.04151246324181557, 0.03579028323292732, -0.007537177298218012, -0.00928619597107172, 0.041205644607543945, 0.03031214140355587, 0.025415148586034775, -0.03714052960276604, -0.03969493508338928, 6.620316592905951e-33, -0.003397092455998063, -0.020835882052779198, -0.048643551766872406, -0.005139647051692009, 0.022094979882240295, -0.04371633008122444, 0.06379503756761551, 0.03010494075715542, -0.013239061459898949, 0.023069899529218674, -0.01803026907145977, -0.010388471186161041, -0.030923087149858475, 0.03233874961733818, 0.01410595141351223, 0.013385837897658348, 0.02836150862276554, 0.009424145333468914, 0.022439952939748764, -0.01961894892156124, -0.017011765390634537, -0.015238061547279358, 0.010725829750299454, 0.027208661660552025, 0.011641805991530418, 0.012003723531961441, 0.033047933131456375, -0.0015122630866244435, -0.03459906578063965, -0.0316602997481823, -0.003452933393418789, -0.022384997457265854, -0.006096408236771822, -0.010693163610994816, -0.02159479632973671, 0.02295837551355362, -0.004309013951569796, 0.00503887515515089, -0.01439311821013689, -0.01765904761850834, 0.056408513337373734, 0.012170693837106228, -0.030789146199822426, 0.016547730192542076, -0.027717310935258865, -0.0016725210007280111, -0.012659027241170406, 0.024819733574986458, -0.009377287700772285, 0.016446292400360107, -0.020287776365876198, 0.016853589564561844, 0.04109837859869003, 0.03617639094591141, 0.0035437436308711767, -0.04581030458211899, 0.03001134656369686, 0.0315869115293026, -0.022573910653591156, 0.0068085575476288795, -0.019706008955836296, -0.05510898679494858, -0.014439046382904053, 0.027354594320058823, 0.014144938439130783, -0.020823638886213303, -0.014234393835067749, -0.0051594870164990425, -0.012277566827833652, 0.015756582841277122, 0.03701198473572731, -0.017804142087697983, -0.03060802072286606, 0.052498746663331985, -0.022135958075523376, -0.010374341160058975, 0.018211396411061287, -0.006893596611917019, 0.008516622707247734, 0.03313335031270981, 0.02294156141579151, -0.0003659984504338354, 0.0038285101763904095, -0.01034418772906065, 0.009448048658668995, -0.007646388374269009, -0.011558917351067066, 0.0030738275963813066, 0.0386124849319458, -0.00018402421846985817, 0.02187163382768631, -0.036627624183893204, -0.021907418966293335, 0.03963093087077141, 0.013929746113717556, -1.2372925795034462e-8, -0.01656411774456501, -0.02663256600499153, -0.004541267640888691, 0.04647095128893852, -0.0006021320004947484, 0.009522314183413982, -0.009723642840981483, -0.012264246121048927, -0.006065829191356897, 0.027502156794071198, 0.02560241147875786, -0.02589687891304493, -0.007914363406598568, -0.007614106871187687, 0.052902378141880035, 0.006667356938123703, -0.0028947163373231888, -0.009004703722894192, 0.03496035188436508, -0.015090358443558216, 0.06034476310014725, 0.06323040276765823, -0.0031505373772233725, -0.01980147324502468, -0.04551170393824577, 0.012140467762947083, 0.047360941767692566, -0.06191477179527283, -0.01945389062166214, -0.03516890108585358, -0.002254168502986431, -0.03285429999232292, -0.036357127130031586, 0.02982872724533081, -0.04244805499911308, -0.0339849591255188, 0.0006783172721043229, 0.0406021848320961, 0.003373092971742153, -0.000567641865927726, -0.02687397599220276, 0.010464313440024853, -0.009417726658284664, -0.03862134367227554, -0.0466386042535305, 0.021636847406625748, -0.022859537973999977, 0.01903955638408661, 0.06095727160573006, 0.006828192621469498, 0.020996253937482834, 0.008018792606890202, 0.02859746292233467, -0.013450756669044495, 0.01165479514747858, 0.0274696983397007, 0.011806946247816086, -0.0053431070409715176, 0.001783305429853499, 0.0038992895279079676, 0.04134580120444298, 0.042016319930553436, -0.021454766392707825, -0.005119530949741602 ]
quix-streams-consume-produce-json-messages
https://markhneedham.com/blog/2023/07/11/quix-streams-consume-produce-json-messages
false
2023-07-28 11:44:37
Apache Pinot: Experimenting with the StarTree Index
[ "poetry", "python", "til" ]
[ "TIL" ]
:icons: font My colleagues Sandeep Dabade and Kulbir Nijjer recently wrote a https://startree.ai/blog/star-tree-indexes-in-apache-pinot-part-1-understanding-the-impact-on-query-performance[three^] https://startree.ai/blog/star-tree-indexes-in-apache-pinot-part-2-understanding-the-impact-during-high-concurrency[part^] https://startree.ai/blog/star-tree-index-in-apache-pinot-part-3-understanding-the-impact-in-real-customer[blog post series^] about the StarTree index, an Apache Pinot indexing technique that dynamically builds a tree structure to maintain aggregates across a group of dimensions. I've not used this index before and wanted to give it a try and in this blog post, I'll share what I learned. I've put all the code in the https://github.com/startreedata/pinot-recipes/tree/main/recipes/startree-index[startreedata/pinot-recipes^] GitHub repository in case you want to try it out yourself. == Setup Let's start by cloning the repository and navigating to the StarTree index recipe: [source, bash] ---- git clone git@github.com:startreedata/pinot-recipes.git cd pinot-recipes/recipes/startree-index ---- We can then spin up Apache Pinot and friends using Docker Compose: [source, bash] ---- docker compose up ---- == Data Generator I've created a data generator that simulates website traffic. It used the Faker library, so make sure that you install that: [source, bash] ---- pip install faker ---- Now let's run it and have a look at one of the generated messages: [source, bash] ---- python datagen.py 2>/dev/null | head -n1 | jq ---- .Output [source, json] ---- { "ts": 1690559577897, "userID": "a56717ef", "timeSpent": 622, "pageID": "page032", "country": "Saint Lucia", "deviceType": "Mobile", "deviceBrand": "Dell", "deviceModel": "Google Pixel 6", "browserType": "Chrome", "browserVersion": "92.0.4515.159", "locale": "zh_CN" } ---- We have a variety of information about the page visit, including details about the device and browser used. We're going to ingest that data into Apache Kafka, so let's first create a topic: [source, bash] ---- rpk topic create -p 5 webtraffic ---- And now let's ingest data into that topic: [source, bash] ---- python datagen.py 2>/dev/null | jq -cr --arg sep ø '[.userID, tostring] | join($sep)' | kcat -P -b localhost:9092 -t webtraffic -Kø ---- == Apache Pinot Tables We're going to create several tables in Apache Pinot to explore this dataset: `webtraffic`:: No indexes `webtraffic_inverted`:: Inverted index on `country`, `browserType`, and `deviceBrand`. The config looks like this: [source, yml] ---- { "tableIndexConfig": { "invertedIndexColumns": [ "country", "browserType", "deviceBrand" ] } } ---- `webtraffic_stree`:: StarTree index splitting on `country`, `browserType`, and `deviceBrand`, aggregating `COUNT(*)`, `SUM(timeSpent)`, and `AVG(timeSpent)`. The config looks like this: [source, yml] ---- { "tableIndexConfig": { "starTreeIndexConfigs": [ { "dimensionsSplitOrder": [ "country", "browserType", "deviceBrand" ], "skipStarNodeCreationForDimensions": [], "functionColumnPairs": [ "COUNT__*", "SUM__timeSpent", "AVG__timeSpent" ], "maxLeafRecords": 10000 } ] } } ---- == Queries Once I'd created the tables, I waited for the data generator to get a bunch of data ingested. I stopped the generator once it had got to 175 million rows, which isn't big data, but should be enough records for us to see how the indexes work. From my understanding, the StarTree index should work well when we have to do filtering and then aggregation of data. An inverted index is also good at filtering, so that configuration will serve as a useful comparison. I came up with the following queries to kick the tyres: Aggregating time spent by country:: This is a pure aggregation query, so the inverted index shouldn't help at all. [source, sql] ---- select country, sum(timeSpent) AS totalTime from webtraffic group by country order by totalTime DESC limit 10 ---- Filtering by country and aggregating by count:: This query filters by the `country` column and then counts the records returned (2.2 million) by browser type. We'd expect the inverted index to do better than the one with no indexes, but StarTree's pre indexing should give it the edge. [source, sql] ---- select browserType, count(*) from webtraffic WHERE country IN ('Germany', 'United Kingdom', 'Spain') GROUP BY browserType limit 10 ---- == Comparing query performance I ran these queries a few times in the Pinot UI to see how well they performed, but I figured that I should probably use a load generator to get more consistent results. I'm going to use a Python performance testing tool called https://docs.locust.io/en/stable/what-is-locust.html[Locust^] to do this. [NOTE] ==== Keep in mind that I'm doing all these experiments on my laptop, so you can undoubtedly achieve better results if you use a cluster and don't have the load-testing tool running on the same machine. But for my purposes of doing something quick and dirty to understand how these indexes help with query performance, this setup does the job. ==== After installing Locust: [source, bash] ---- pip install locust ---- I created a `locustfile.py` that looked like this: .locustfile.py [source, python] ---- from locust import FastHttpUser, task import requests import random query1 = """ select country, sum(timeSpent) AS totalTime from webtraffic group by country order by totalTime DESC limit 10 """ query2 = """ select browserType, count(*) from webtraffic WHERE country IN ('Germany', 'United Kingdom', 'Spain') GROUP BY browserType limit 10 """ class PinotUser(FastHttpUser): @task def run_q1(self): with super().rest("POST", "/query/sql", json={"sql": query3}, name="Web Traffic (StarTree)") as r: if r.status_code == requests.codes.ok: # print("/query/sql - q1" + ': success (200)') pass elif r.status_code == 0: print("/query/sql - q1" + ': success (0)') r.success() else: print("/query/sql - q1" + ': failure (' + str(r.status_code) + ')') r.failure(r.status_code) ---- I then ran the load generator configured to simulate a single user executing the query lots of times: [source, bash] ---- locust --host http://localhost:8099 \ --autostart \ -u 1 \ # <1> --run-time 1m \ --autoquit 5 # <2> ---- <1> Simulate having 1 user. <2> Exit 5 seconds after the test has been completed. I ran this script 3 times for each query, manually updating the script to run each query against each table. I then collected the results that were printed to the console into the tables shown below: .Aggregating time spent by country [options="header", cols="2,1,1,1,1,1,1"] |=== | Name | # reqs| Avg | Min | Max | Med | req/s | Web Traffic | 223 | 266 | 242 | 547 | 250 | 3.74 | Web Traffic (Inverted) | 187 | 317 | 271 | 859 | 300 | 3.14 | Web Traffic (StarTree) | 610 | 97 | 56 | 223 | 98 | 10.19 |=== I asked ChatGPT to create a box and whisker plot of this data, which is shown below: .Box and whisker chart - aggregate time spent by country query image::{{<siteurl>}}/uploads/2023/07/box_whisker_plot_web_traffic.png[] .Filtering by country and aggregating by count [options="header", cols="2,1,1,1,1,1,1"] |=== | Name | # reqs | Avg | Min | Max | Med | req/s | Web Traffic Filter | 501 | 118 | 114 | 706 | 120 | 8.38 | Web Traffic Filter (Inverted) | 2741 | 20 | 18 | 766 | 20 | 45.79 | Web Traffic Filter (StarTree) | 7288 | 7 | 6 | 158 | 7 | 121.73 |=== .Box and whisker chart - aggregate time spent by country query image::{{<siteurl>}}/uploads/2023/07/box_whisker_plot_filter.png[] From these results, we can see that the StarTree index does best on both queries, but there's not much in it on the filtering query. I still haven't quite worked out how many records you need in the aggregation step to see a noticeable improvement compared to doing normal aggregation. A fun experiment though and I'll have to do some more of these!
In this post, we'll experiment with Apache Pinot's StarTree index.
uploads/2023/07/pinot-startree-banner.png
[ -0.010674604214727879, -0.0036196550354361534, 0.01370603870600462, 0.027997490018606186, 0.08132319152355194, 0.038408394902944565, 0.035919614136219025, 0.04067368060350418, -0.020904116332530975, -0.016288623213768005, -0.03126491233706474, -0.008282898925244808, -0.04952313378453255, 0.017794577404856682, -0.024434376507997513, 0.07872825860977173, 0.0682511031627655, 0.017378274351358414, 0.008021203801035881, -0.018053168430924416, 0.03848525136709213, 0.05754172056913376, 0.013695675879716873, 0.06786670535802841, 0.02307330071926117, -0.0005455985083244741, 0.009600739926099777, 0.01664803735911846, -0.04578692838549614, -0.009255565702915192, 0.023256221786141396, 0.015372679568827152, 0.011447614058852196, -0.02186412550508976, 0.008847363293170929, -0.000015086483472259715, -0.033257532864809036, 0.017457440495491028, 0.006735130678862333, 0.028216999024152756, -0.08004920184612274, 0.011820957064628601, -0.004387610126286745, 0.013861116021871567, -0.008488482795655727, 0.017680583521723747, -0.06482886523008347, 0.017218846827745438, 0.01638411544263363, 0.025881901383399963, -0.07963957637548447, 0.034069616347551346, -0.01766952872276306, -0.0008106744498945773, -0.01595485210418701, 0.06190534681081772, 0.018713155761361122, -0.04422174394130707, 0.023084156215190887, -0.04554639384150505, -0.012008572928607464, -0.004060546867549419, 0.015530847012996674, 0.002151220105588436, -0.000794323452282697, -0.02355242893099785, -0.0017974593210965395, 0.04038872569799423, -0.05745489522814751, -0.005131544545292854, 0.007620050571858883, -0.00896638073027134, -0.029618319123983383, -0.006361549254506826, 0.022846225649118423, -0.054351188242435455, -0.04232088103890419, 0.0770132914185524, 0.0200323648750782, 0.03158585727214813, -0.027094155550003052, -0.012562463991343975, -0.003394677769392729, 0.015788231045007706, -0.008914908394217491, -0.039047759026288986, -0.025902749970555305, -0.022378697991371155, -0.06851501762866974, 0.07064006477594376, 0.009582835249602795, -0.042394887655973434, 0.03046690858900547, -0.00021017251128796488, -0.013248494826257229, 0.029689252376556396, 0.041717853397130966, -0.010878834873437881, -0.004405840765684843, 0.005548714194446802, -0.032992590218782425, -0.023759959265589714, 0.017402654513716698, 0.052128978073596954, -0.07152986526489258, -0.015314299613237381, -0.043443720787763596, -0.0006723733386024833, -0.003078809240832925, 0.004265943076461554, -0.024876531213521957, 0.007771993055939674, -0.018591606989502907, 0.015415298752486706, -0.07774022966623306, 0.09664373099803925, 0.023329557850956917, -0.03244027495384216, -0.004148859065026045, 0.015942944213747978, 0.07756640017032623, 0.025607243180274963, -0.016143957152962685, 0.07946621626615524, 0.015531023032963276, 0.029851537197828293, 0.00584952300414443, 0.026123574003577232, -0.00035851748543791473, -0.06106022000312805, -0.009736977517604828, 0.03991928696632385, 0.008880904875695705, -0.021099835634231567, 0.000655856158118695, -0.05259573459625244, 0.017213815823197365, 0.007170282769948244, 0.05827034264802933, 0.0036954169627279043, -0.011224794201552868, -0.022288614884018898, 0.02629062719643116, -0.020474614575505257, 0.049176719039678574, 0.02100491337478161, 0.005998816806823015, -0.043305233120918274, -0.02425428293645382, 0.01317342184484005, 0.005297951865941286, 0.010675947181880474, 0.038950856775045395, -0.03847290202975273, 0.012498700991272926, 0.0845639556646347, 0.030357904732227325, 0.002083038678392768, -0.01269019115716219, 0.01793038100004196, 0.048117171972990036, 0.027947820723056793, 0.012383654713630676, 0.024273928254842758, 0.006367046851664782, -0.016082903370261192, -0.0003778143727686256, 0.050258833914995193, -0.025890694931149483, -0.0003553863789420575, -0.053535353392362595, -0.03739875555038452, 0.055638931691646576, -0.06462789326906204, 0.006371078081429005, 0.047271713614463806, 0.08370155096054077, 0.0229048989713192, 0.022629300132393837, 0.01439907681196928, -0.09285599738359451, 0.06056392565369606, 0.007196386344730854, -0.00315082143060863, 0.001657856279052794, 0.000648476998321712, 0.08531991392374039, 0.015491844154894352, 0.07469013333320618, 0.03357880190014839, -0.06644705682992935, -0.08363857120275497, -0.0048365541733801365, -0.011110375635325909, 0.06319791078567505, -0.02918238937854767, -0.0004828716046176851, 0.0625682920217514, 0.021048694849014282, 0.014081621542572975, -0.005480244290083647, 0.007625975646078587, 0.018342776224017143, -0.05752227082848549, -0.08284486085176468, 0.0015840954147279263, 0.025344369933009148, -0.055142927914857864, -0.032568417489528656, 0.0070784008130431175, -0.042274340987205505, -0.031910333782434464, 0.03446044400334358, -0.019864970818161964, 0.04380717873573303, 0.027650605887174606, 0.03694292530417442, -0.02643468603491783, 0.03732403740286827, -0.06270137429237366, 0.011047963052988052, 0.012610189616680145, -0.02362646721303463, -0.007737140171229839, 0.007303985767066479, 0.12884964048862457, 0.07680398970842361, -0.02308323234319687, -0.03434141352772713, 0.05062482878565788, 0.010493378154933453, -0.06257705390453339, 0.011946017853915691, -0.0014483478153124452, -0.018399113789200783, 0.018063142895698547, -0.04617122560739517, -0.025216128677129745, 0.02034066431224346, -0.04393165186047554, 0.005054146982729435, 0.05871496722102165, -0.04083549231290817, 0.05317189544439316, 0.008901305496692657, -0.018552981317043304, -0.0006779676768928766, -0.0348493717610836, -0.07305081933736801, -0.004541735164821148, -0.005992121063172817, -0.004481443669646978, 0.03309812396764755, -0.029222941026091576, -0.02418207935988903, -0.062182970345020294, -0.03141626715660095, 0.0455702543258667, 0.039273153990507126, 0.06391900777816772, -0.03074740432202816, 0.01931738294661045, -0.015063382685184479, 0.021659696474671364, 0.009384158998727798, -0.051996562629938126, -0.02488814666867256, -0.009025726467370987, 0.007772303186357021, 0.014394103549420834, 0.00859019160270691, -0.00583209004253149, 0.019501475617289543, -0.004399168770760298, 0.022995922714471817, -0.019219962880015373, 0.012702559120953083, 0.010451124049723148, -0.0164253618568182, -0.034375403076410294, -0.010855826549232006, 0.04171360656619072, -0.057393793016672134, -0.009768694639205933, -0.002426574472337961, -0.042009107768535614, 0.04355039820075035, -0.04205182567238808, -0.0426652729511261, -0.0038006193935871124, 0.025118138641119003, 0.025866424664855003, 0.0022239969111979008, -0.012049331329762936, 0.047525398433208466, 0.023307517170906067, -0.0038872852455824614, 0.025564908981323242, -0.025280755013227463, 0.03332553431391716, 0.002751785796135664, 0.024943238124251366, 0.04599549621343613, 0.004884568974375725, 0.00789061188697815, -0.0037220236845314503, 0.018945880234241486, -0.02767130732536316, -0.28710752725601196, 0.021377641707658768, -0.00485125370323658, -0.030610142275691032, 0.011143780313432217, -0.0015695394249632955, -0.011745337396860123, -0.03809028118848801, 0.014142320491373539, -0.0013486695243045688, -0.013854083605110645, -0.04018881916999817, -0.026713408529758453, 0.024636466056108475, 0.001077997381798923, 0.02397981658577919, -0.0007378333830274642, -0.04893975332379341, 0.014728394336998463, 0.03536531329154968, 0.00560133857652545, -0.04852859675884247, 0.007673107553273439, 0.026325803250074387, 0.02280537784099579, 0.03273800387978554, -0.08138413727283478, 0.04541270062327385, -0.05193905904889107, -0.01762128621339798, 0.005715637467801571, -0.02321726828813553, 0.0024150714743882418, 0.007614403497427702, 0.0020011980086565018, -0.025475159287452698, 0.02953367307782173, 0.0025536499451845884, 0.01774902455508709, 0.0022370885126292706, -0.018741030246019363, -0.04392416402697563, -0.006746906787157059, 0.0013385879574343562, 0.09131966531276703, -0.0000702770848874934, -0.08162139356136322, -0.011209288612008095, -0.043769702315330505, 0.07374212145805359, -0.022465340793132782, -0.046541452407836914, -0.02062477357685566, 0.0036941112484782934, -0.0015077089192345738, -0.008832786232233047, -0.005087602883577347, 0.013719365932047367, -0.05547671392560005, -0.03356552869081497, -0.00800018198788166, -0.028908148407936096, -0.0025617675855755806, -0.037978433072566986, -0.014730104245245457, -0.061094895005226135, -0.054071106016635895, -0.0028226282447576523, 0.06881839781999588, 0.029282525181770325, -0.03853727877140045, 0.02818191982805729, -0.025544915348291397, -0.11067696660757065, -0.022993171587586403, -0.019990183413028717, -0.03259343281388283, 0.0006833086954429746, -0.02552657015621662, 0.052342623472213745, -0.03023756481707096, -0.02929300256073475, 0.01786547526717186, 0.008572506718337536, 0.011933119967579842, -0.008080799132585526, 0.012361384928226471, -0.029973117634654045, -0.014225922524929047, 0.012294440530240536, 0.06298409402370453, -0.03898714855313301, -0.0173781905323267, -0.011851304210722446, 0.021924613043665886, 0.0379486046731472, 0.04760453477501869, 0.0074386573396623135, 0.009395357221364975, 0.03539657965302467, 0.003099170746281743, -0.06240769848227501, 0.015339315868914127, -0.009527912363409996, -0.011379561387002468, 0.005542017985135317, -0.07261199504137039, 0.019697895273566246, 0.02592218481004238, 0.01964823342859745, 0.018668100237846375, -0.03991461917757988, 0.01017926074564457, -0.06324509531259537, -0.011546669527888298, -0.0050363135524094105, 0.024386655539274216, 0.03944454714655876, 0.031099533662199974, 0.004076177254319191, -0.05012651905417442, 0.015103821642696857, 0.005948740988969803, -0.033795084804296494, -0.02875378727912903, -0.03863058611750603, -0.0033666612580418587, -0.009767680428922176, -0.0037790797650814056, 0.001886305632069707, -0.018237560987472534, 0.04704644903540611, 0.04924815520644188, -0.010910996235907078, 0.02386588044464588, -0.020067507401108742, -0.044824182987213135, -0.037473347038030624, 0.030118662863969803, 0.016812928020954132, -0.008088484406471252, 0.02785572037100792, -0.005843127146363258, 0.01604253612458706, 0.057749778032302856, 0.019069138914346695, 0.012031009420752525, -0.03728852793574333, 0.017843693494796753, 0.019776545464992523, -0.0033399658277630806, -0.011055838316679, 0.020034415647387505, -0.05086817219853401, -0.01816871017217636, -0.046425215899944305, 0.02411053329706192, -0.015889963135123253, -0.042393166571855545, -0.03592957556247711, 0.02864740416407585, -0.06206166744232178, -0.012345660477876663, -0.034311048686504364, -0.012487797066569328, 0.06000138074159622, 0.0171215757727623, 0.030212702229619026, -0.012086828239262104, 0.0019484339281916618, 0.031183522194623947, 0.021368999034166336, -0.04100070148706436, -0.004945158492773771, -0.018294930458068848, -0.022154904901981354, 0.0135218920186162, 0.040340837091207504, 0.03686966374516487, 0.005846023093909025, 0.003144029760733247, -0.005956029053777456, 0.007646890822798014, 0.025944575667381287, 0.05455223470926285, 0.027034683153033257, -0.021690137684345245, -0.016186438500881195, -0.007473411969840527, -0.017801566049456596, -0.04268671199679375, 0.003605179488658905, -0.01050306111574173, -0.008219382725656033, -0.02933533303439617, -0.06967055052518845, 0.03852645307779312, 0.008811588399112225, 0.0016866920050233603, 0.036047667264938354, -0.004219439812004566, -0.008110708557069302, -0.058421675115823746, 0.04881169646978378, 0.08130662143230438, -0.06867855787277222, -0.005068440455943346, 0.01928308792412281, -0.020372387021780014, 0.003047595964744687, 0.03154310584068298, -0.04860592260956764, -0.012009025551378727, -0.019375307485461235, 0.02568945661187172, -0.03833615034818649, -0.05565784499049187, -0.012442434206604958, 0.003420390421524644, -0.011589359492063522, 0.019212469458580017, -0.018113408237695694, -0.006757427006959915, 0.0035786910448223352, -0.02605162188410759, 0.046085670590400696, 0.008147744461894035, 0.0009528567898087204, 0.02244296483695507, -0.02461610548198223, 0.03392735868692398, -0.0341787151992321, 0.0014735839795321226, 0.01660373993217945, -0.0144950021058321, -0.00032792615820653737, -0.048011407256126404, -0.0038380774203687906, 0.00837041437625885, 0.0605897419154644, -0.012501814402639866, 0.005483272951096296, -0.059024225920438766, -0.010046688839793205, -0.026161707937717438, 0.002327547874301672, -0.004664856940507889, -0.016849391162395477, 0.0401180163025856, 0.050564952194690704, 0.0032632562797516584, 0.0037996566388756037, -0.025999709963798523, -0.02270342782139778, 0.05578339099884033, -0.06447862088680267, -0.05827954038977623, -0.021617693826556206, -0.05869756266474724, 0.04013526812195778, 0.03062611073255539, 0.033757276833057404, -0.020410509780049324, 0.03671102970838547, 0.0443386510014534, 0.021809205412864685, 0.01952359452843666, -0.037128280848264694, 0.046371959149837494, -0.025346700102090836, -0.0038243569433689117, -0.09666907042264938, -0.021352263167500496, 0.045301653444767, -0.03591304272413254, -0.014152445830404758, -0.008983706124126911, -0.049305807799100876, 0.02964356541633606, -0.07063593715429306, -0.029076050966978073, 0.05111429840326309, -0.006807222962379456, 0.019687646999955177, 0.013197081163525581, -0.06257475167512894, 0.024496374651789665, 0.04906950891017914, -0.03276367485523224, -0.0030402576085180044, -0.031412720680236816, 0.07898346334695816, 0.005988184362649918, 0.05428903177380562, -0.0029369534458965063, -0.02503012679517269, 0.060858383774757385, 0.004683620296418667, 0.001214075949974358, 0.0632261335849762, -0.027659866958856583, 0.046591442078351974, 0.05079140141606331, 0.004967654123902321, 0.0058683957904577255, 0.03226981684565544, -0.04158056527376175, -0.062168851494789124, 0.035644084215164185, 0.0020400630310177803, -0.0031719966791570187, -0.06007774919271469, 0.05491398647427559, 0.011809836141765118, -0.022695226594805717, -0.02643369510769844, 0.005358595866709948, -0.028679661452770233, -0.010976944118738174, -0.02610834129154682, 0.0164567269384861, -0.05065913125872612, 0.05180729553103447, -0.015322118066251278, 0.015124637633562088, 0.07585935294628143, 0.007818403653800488, -0.021947650238871574, 0.010007123462855816, 0.08251173049211502, 0.09555008262395859, 0.025518931448459625, 0.0033078377600759268, 0.07768737524747849, -0.023446841165423393, -0.04940149560570717, -0.014906021766364574, -0.00514660868793726, -0.03235740587115288, -0.029261386021971703, 0.03133541718125343, 0.06578022241592407, -0.02928614616394043, 0.0633714571595192, -0.015016231685876846, 0.004704940598458052, -0.020400183275341988, -0.0008412317256443202, 0.013753537088632584, 0.05698766931891441, 0.008343599736690521, 0.03300047665834427, -0.015160344541072845, -0.03171325474977493, -0.004361441358923912, -0.006225142627954483, -0.02286400832235813, 0.017931481823325157, -0.021443068981170654, 0.016223419457674026, 0.02682710811495781, 0.02550199255347252, 0.07907473295927048, -0.040772050619125366, -0.01510672178119421, 0.0024195113219320774, 0.05037451162934303, 0.031559430062770844, 0.007055716589093208, -0.022017808631062508, -0.024651648476719856, -0.03651624917984009, -0.026423973962664604, 0.0032448354177176952, -0.01431369036436081, -0.02247128076851368, 0.0305201206356287, -0.009415511973202229, -0.0085915457457304, 0.032768286764621735, -0.022585783153772354, -0.04355167970061302, -0.04564560949802399, -0.04244371876120567, -0.052976638078689575, -0.05008881911635399, -0.027496088296175003, -0.00910500530153513, 0.00504168588668108, -0.04657060652971268, -0.03195523843169212, -0.004295718856155872, 0.0007938410271890461, 0.022768545895814896, -0.062133558094501495, 0.0023765137884765863, 0.011058593168854713, 0.044870927929878235, 0.003957187291234732, 0.005919523537158966, 0.05636730417609215, 0.005859000608325005, -0.002601786982268095, -0.027585314586758614, 0.011154922656714916, 0.042582716792821884, 0.016717873513698578, -0.015544772148132324, -0.07900428026914597, 0.02899494580924511, 0.03466378152370453, -0.015006591565907001, -0.06819631159305573, 0.035196542739868164, 0.019686980172991753, -0.021843643859028816, 0.05078718066215515, -0.0210692398250103, 0.026106124743819237, -0.04000438004732132, -0.016432011500000954, -0.020486095920205116, -0.0006428197957575321, 0.04034435749053955, -0.026776744052767754, 0.0807415023446083, 0.02752971462905407, -0.016461975872516632, -0.028068779036402702, 0.006740499287843704, 0.011180776171386242, -0.007341401651501656, -0.05801816284656525, 0.004097851924598217, -0.024438701570034027, -0.07716089487075806, -0.02028781548142433, 0.02811950258910656, -0.029607202857732773, -0.053548794239759445, -0.003434537909924984, -0.005985743831843138, -0.0013287620386108756, 0.010837361216545105, -0.039824943989515305, 0.014394475147128105, -0.005231122486293316, -0.006604320369660854, -0.014645525254309177, 0.012631382793188095, -0.021994439885020256, -0.0021431029308587313, 0.029831096529960632, -0.028513861820101738, 0.005108589772135019, -0.024310432374477386, 0.06478577107191086, 0.04485711455345154, 0.002477468689903617, -0.018386032432317734 ]
[ -0.0804089903831482, -0.037796929478645325, -0.04276503622531891, -0.010279522277414799, 0.08354991674423218, -0.039195481687784195, -0.02681026980280876, 0.043443940579891205, 0.0005430821911431849, -0.025446558371186256, 0.028882188722491264, -0.03452280908823013, 0.0052569215185940266, -0.03124573826789856, 0.07324038445949554, 0.0009324756101705134, -0.0023347593378275633, -0.06058081239461899, -0.011590964160859585, 0.036945026367902756, 0.02503659576177597, -0.017009535804390907, -0.01616554707288742, -0.04947007820010185, 0.01938285306096077, 0.04896644502878189, 0.017936795949935913, -0.015151329338550568, -0.020486170426011086, -0.21633218228816986, 0.027698971331119537, 0.00463578337803483, 0.05802947282791138, -0.012863858602941036, -0.0172581747174263, 0.04478674381971359, 0.02744680643081665, 0.019742561504244804, 0.03076852485537529, 0.014340296387672424, 0.014429687522351742, -0.00242464616894722, -0.060537368059158325, 0.0064285434782505035, 0.04520205408334732, -0.011350256390869617, -0.008529094979166985, -0.0027944985777139664, 0.002927475143224001, -0.0012253501918166876, -0.07268723845481873, -0.019020946696400642, -0.017896287143230438, -0.006143502425402403, 0.00312069826759398, 0.011049644090235233, 0.04789354279637337, 0.016511190682649612, 0.0265144482254982, 0.01533144898712635, 0.02344701997935772, -0.008987450040876865, -0.12676607072353363, 0.1031896248459816, 0.031134093180298805, 0.04124928638339043, -0.025500640273094177, 0.02373882383108139, -0.00008896874351194128, 0.05853583663702011, 0.012995842844247818, -0.0033038121182471514, -0.042920175939798355, 0.01571837067604065, 0.01353465672582388, -0.0028349393978714943, -0.010937073267996311, 0.042315732687711716, 0.024221833795309067, -0.024885831400752068, -0.07258632779121399, -0.008863365277647972, -0.030074311420321465, -0.026367999613285065, -0.051473263651132584, 0.01721395179629326, -0.012336389161646366, 0.0642220750451088, 0.01965155266225338, 0.020470719784498215, 0.029033157974481583, -0.008890845812857151, 0.03411322459578514, -0.0013938589254394174, -0.07117825001478195, 0.013121247291564941, 0.007680785376578569, -0.0010594794293865561, -0.029921818524599075, 0.4298671782016754, -0.02587842009961605, -0.012972910888493061, 0.049890078604221344, -0.010715632699429989, 0.022831540554761887, -0.010574495419859886, -0.021779965609312057, -0.025333182886242867, 0.032657377421855927, -0.0015273622702807188, 0.03194698318839073, -0.020764410495758057, 0.09205692261457443, -0.029628608375787735, 0.004177918657660484, -0.027688883244991302, -0.009761561639606953, 0.011833605356514454, -0.013771180994808674, 0.03651721775531769, -0.025532502681016922, 0.04337715730071068, 0.026502398774027824, 0.015933353453874588, 0.02690783701837063, 0.0030271257273852825, 0.017304785549640656, 0.034128133207559586, 0.042540330439805984, 0.03457467257976532, 0.01947718858718872, -0.010101409628987312, -0.05884980410337448, 0.017485113814473152, 0.004230604972690344, 0.005952384788542986, 0.051191989332437515, -0.032982781529426575, -0.0018119866726920009, 0.012610777281224728, -0.02815442718565464, -0.02803266979753971, 0.060999512672424316, -0.013980190269649029, -0.02087695151567459, 0.10919059067964554, 0.03774094209074974, -0.015535927377641201, -0.03078385628759861, -0.05357154831290245, -0.038567256182432175, 0.01630556583404541, 0.00010393556294729933, -0.06497271358966827, -0.007814806886017323, 0.04677555710077286, 0.08781330287456512, -0.013048332184553146, -0.04453934356570244, -0.0005397252389229834, -0.021190818399190903, -0.017438439652323723, -0.03627784550189972, 0.0031237455550581217, 0.0472448505461216, -0.15338151156902313, -0.025009699165821075, 0.036582134664058685, -0.00020100679830648005, -0.040230125188827515, 0.015883756801486015, 0.03948608413338661, -0.02367689274251461, -0.013002143241465092, 0.03925196826457977, -0.05218500643968582, -0.012221838347613811, 0.002081064973026514, 0.04095285013318062, 0.013480794616043568, -0.016310200095176697, -0.0054907784797251225, -0.013414986431598663, 0.025954443961381912, -0.05353522300720215, -0.06261537224054337, -0.05828917771577835, 0.009347163140773773, -0.026257066056132317, -0.0328848697245121, -0.03886789828538895, -0.05006173253059387, -0.060783784836530685, 0.10231886804103851, -0.019492270424962044, -0.031048143282532692, -0.008282202295958996, 0.010374637320637703, -0.017474355176091194, -0.038488999009132385, 0.01062463503330946, 0.023324113339185715, -0.0014416939811781049, 0.023950276896357536, -0.0723806843161583, 0.07104186713695526, 0.02226387895643711, -0.02728666178882122, 0.057650092989206314, 0.006688075140118599, -0.04202524945139885, 0.008122275583446026, 0.013710906729102135, 0.017427515238523483, -0.0262761227786541, -0.015776272863149643, 0.020084545016288757, -0.0023873895406723022, 0.020716236904263496, 0.05284625291824341, -0.009013811126351357, -0.039758987724781036, -0.059639159590005875, -0.3781569004058838, -0.0799613818526268, -0.04476560279726982, 0.000958000891841948, -0.004437306430190802, -0.03402102366089821, 0.0021644814405590296, -0.02635004185140133, -0.0029799442272633314, -0.006702890619635582, 0.0899515226483345, -0.02185354195535183, 0.0282486192882061, -0.0722065344452858, 0.016629720106720924, 0.021964576095342636, -0.019220296293497086, -0.01728922687470913, -0.028301848098635674, -0.020769502967596054, 0.009573154151439667, 0.013444721698760986, -0.0039873551577329636, -0.04156789928674698, -0.006222548894584179, -0.01699230447411537, 0.10090844333171844, 0.02546452172100544, 0.030584877356886864, -0.046728815883398056, 0.040805425494909286, 0.02120986394584179, -0.011996408924460411, -0.07436919957399368, 0.013663440942764282, -0.03033696487545967, 0.018021125346422195, -0.0031900329049676657, 0.0003786150482483208, 0.0004735777620226145, -0.04558506980538368, 0.032365474849939346, -0.05530521273612976, -0.0786154717206955, -0.04372764006257057, 0.011607288382947445, 0.001620819908566773, -0.015031835995614529, -0.02173290029168129, 0.07479001581668854, 0.017490023747086525, 0.02909628301858902, 0.018157165497541428, 0.012486612424254417, 0.004133004229515791, -0.048180192708969116, -0.06934929639101028, -0.01285583060234785, 0.027416514232754707, -0.03477496653795242, 0.03820260614156723, 0.03947480767965317, 0.009388644248247147, -0.07727890461683273, 0.0074777305126190186, 0.01741817593574524, -0.04052069038152695, -0.0036560131702572107, 0.020664475858211517, -0.014333758503198624, -0.047952938824892044, 0.09410959482192993, -0.002380799036473036, -0.016090329736471176, 0.04857347160577774, 0.05011852830648422, -0.0004515090258792043, -0.0017364217201247811, 0.02674819715321064, -0.002600781386718154, 0.04158011078834534, -0.03042726404964924, 0.05984613299369812, -0.023180879652500153, -0.01569463685154915, 0.05452846363186836, -0.024953333660960197, -0.03778611496090889, 0.09381420165300369, -0.002956115175038576, -0.0036295740865170956, 0.021089822053909302, -0.010907653719186783, -0.04849475622177124, 0.054899729788303375, 0.02498054876923561, -0.2710341513156891, 0.03997928649187088, 0.05374820902943611, 0.05956440418958664, 0.013375163078308105, 0.01253232266753912, 0.04248933121562004, -0.05913687124848366, 0.043466486036777496, -0.0030883627478033304, 0.012986455112695694, 0.041600003838539124, 0.0024473760277032852, -0.0153303612023592, -0.007529458496719599, -0.014118734747171402, 0.03751644119620323, 0.021714162081480026, -0.008427244611084461, -0.01837020181119442, 0.023684021085500717, -0.02536913938820362, 0.1846546083688736, 0.05990944430232048, 0.013577448204159737, 0.008729623630642891, -0.02509136125445366, 0.00984047818928957, 0.007271758280694485, 0.018392853438854218, 0.008149887435138226, 0.010127665475010872, 0.0495130829513073, -0.014618871733546257, 0.048882659524679184, -0.02946319244801998, -0.008926239795982838, 0.04263400286436081, -0.009646723046898842, -0.02397844009101391, 0.001076609012670815, 0.030441977083683014, -0.061322715133428574, 0.029170526191592216, 0.04935574159026146, -0.024941161274909973, 0.006804193835705519, -0.010591627098619938, -0.027026815339922905, 0.013703458942472935, -0.009772866033017635, -0.025969527661800385, -0.013538419269025326, -0.019131455570459366, -0.014799142256379128, 0.0768495500087738, -0.014383364468812943, -0.01863735355436802, -0.0027722222730517387, 0.028861261904239655, -0.02456071227788925, -0.01230955496430397, 0.0930580273270607, 0.03166782483458519, 0.03368392214179039 ]
[ 0.023078560829162598, 0.0011309526162222028, 0.006892847362905741, 0.037088677287101746, -0.009874630719423294, -0.024044780060648918, 0.0011388048296794295, 0.005107884295284748, -0.007385634817183018, -0.010688131675124168, -0.01585271768271923, 0.016706503927707672, -0.007179650012403727, -0.04726877808570862, -0.023826338350772858, -0.03035677969455719, 0.0048101190477609634, 0.008114933967590332, 0.052468784153461456, -0.003695801366120577, -0.026272490620613098, 0.03184855356812477, 0.017897464334964752, -0.002213002648204565, -0.02706650272011757, 0.009244485758244991, -0.056061699986457825, -0.003769104601815343, 0.024255836382508278, -0.14200472831726074, 0.004811308346688747, -0.0008256009896285832, 0.025690289214253426, 0.01970190554857254, -0.023590419441461563, 0.015876758843660355, 0.017325960099697113, -0.028897814452648163, -0.03458355739712715, 0.007600340060889721, 0.06101125106215477, 0.002512096893042326, -0.01503169909119606, -0.015725132077932358, -0.01965652033686638, -0.04539087414741516, -0.06802639365196228, -0.008567174896597862, 0.0030123693868517876, 0.004269037861377001, -0.0603761225938797, -0.025523658841848373, 0.026725037023425102, -0.0002885700378101319, 0.034740205854177475, -0.0038501759991049767, -0.003046781523153186, -0.029955441132187843, 0.033852409571409225, -0.013968932442367077, 0.03775550797581673, 0.03669031336903572, -0.019345499575138092, -0.03360697627067566, 0.015514245256781578, -0.03935961425304413, -0.01521117240190506, -0.0037888558581471443, -0.00030402388074435294, -0.005211034789681435, 0.0017567070899531245, -0.0014629249926656485, -0.0565204881131649, -0.024330008774995804, -0.01900516077876091, 0.017907066270709038, 0.005204187240451574, -0.009940470568835735, -0.005681568756699562, -0.0013714279048144817, -0.043062757700681686, -0.00695642177015543, 0.01860755868256092, 0.007720544468611479, -0.05692403391003609, -0.009757203049957752, -0.0009351450717076659, 0.04549475759267807, 0.00730940792709589, -0.028473755344748497, 0.002304071094840765, 0.016003137454390526, -0.01905171573162079, 0.020069139078259468, -0.06690233200788498, -0.003943292424082756, -0.01326618529856205, -0.027868613600730896, -0.024755461141467094, 0.8362592458724976, -0.01929616369307041, 0.006110346410423517, 0.03559187427163124, -0.0000010107856951435679, 0.012442629784345627, -0.017425773665308952, -0.018747273832559586, -0.031846605241298676, -0.005963311064988375, -0.0031349940691143274, 0.024425083771348, 0.008306097239255905, 0.012157842516899109, 0.008946780115365982, 0.027478516101837158, 0.02812810055911541, 0.013624928891658783, -0.006711604539304972, 0.030984953045845032, 0.032130807638168335, 0.05676807835698128, 0.002476805355399847, 0.01376857329159975, 0.010993302799761295, -0.0009972832631319761, -0.15687201917171478, -0.021848008036613464, -6.454746009540724e-33, 0.05264747515320778, -0.03362278640270233, 0.008416554890573025, 0.015896786004304886, 0.03490118309855461, -0.012795443646609783, -0.029153915122151375, -0.0002535781532060355, -0.004219803027808666, -0.021835237741470337, -0.006772918161004782, -0.01905669830739498, 0.014290571212768555, -0.020074695348739624, 0.03136937692761421, -0.027316516265273094, -0.012496978044509888, 0.03972563147544861, 0.022693630307912827, -0.013080624863505363, 0.034344349056482315, 0.011405879631638527, -0.021379705518484116, 0.018531160429120064, 0.012194551527500153, 0.01433279737830162, 0.0069627356715500355, -0.026243845000863075, 0.01836066134274006, -0.04160004109144211, 0.013065818697214127, -0.00636655930429697, 0.02262817695736885, -0.0023200977593660355, -0.034990619868040085, -0.04971029609441757, -0.032032087445259094, 0.004029193427413702, -0.044911161065101624, -0.04410391300916672, -0.012701366096735, 0.01073018554598093, -0.030719125643372536, -0.028965149074792862, -0.04159441590309143, 0.015732416883111, -0.022808721289038658, 0.021914253011345863, 0.014275932684540749, 0.04489269107580185, 0.025082705542445183, 0.007198037579655647, -0.012561582960188389, 0.022757703438401222, -0.0075379288755357265, 0.04273796081542969, 0.003862586570903659, -0.010164451785385609, -0.006909457966685295, -0.0068967598490417, -0.011454685591161251, -0.035878803580999374, -0.014851548708975315, 0.024990176782011986, 0.0002521075657568872, 0.026714012026786804, 0.019772736355662346, 0.030744973570108414, -0.010468941181898117, 0.03786352649331093, -0.03417309746146202, 0.013548213057219982, -0.0015239176573231816, -0.004257922992110252, -0.007881538942456245, -0.02827509306371212, 0.007656736299395561, 0.01721392385661602, -0.014831895008683205, 0.061086058616638184, -0.01636330410838127, -0.0016363146714866161, 0.011844919994473457, -0.02270081453025341, 0.013212481513619423, -0.031279534101486206, 0.037314120680093765, 0.03319317847490311, -0.026097727939486504, -0.003424091963097453, 0.031149623915553093, 0.07641855627298355, 0.01197722740471363, -0.04538353532552719, -0.03678333759307861, 6.424554171823823e-33, -0.036424387246370316, -0.005794939585030079, 0.00521377008408308, 0.0006178752519190311, 0.037622421979904175, -0.02475854381918907, 0.03011632151901722, -0.02035810984671116, -0.01123487576842308, 0.023969514295458794, -0.05030571669340134, 0.016278868541121483, -0.02975437231361866, 0.010549667291343212, 0.053415119647979736, 0.00004668245310313068, 0.016200534999370575, 0.015823163092136383, 0.02756701409816742, 0.025759734213352203, -0.0033184948842972517, 0.003351085353642702, -0.017838148400187492, 0.021990304812788963, -0.0026625129394233227, 0.0028338825795799494, -0.0057829758152365685, 0.005483112297952175, -0.04625610634684563, -0.019007019698619843, 0.04915836080908775, -0.011669880710542202, 0.0069937254302203655, 0.012112142518162727, -0.004216209519654512, 0.034742455929517746, -0.049875009804964066, -0.020531751215457916, 0.01710285060107708, 0.025018155574798584, 0.02513921447098255, 0.022267572581768036, 0.010219800285995007, 0.02408311888575554, -0.012819439172744751, -0.01915416494011879, 0.013643934391438961, -0.008500178344547749, -0.007416998501867056, -0.003814896335825324, -0.008005902171134949, 0.02325158566236496, 0.052357133477926254, 0.03227674216032028, -0.016878653317689896, -0.01175809558480978, -0.0031810083892196417, 0.050130922347307205, -0.022870594635605812, 0.014492805115878582, -0.011813434772193432, -0.025058213621377945, -0.00559193966910243, 0.0055557116866111755, -0.02884708344936371, -0.05005158856511116, -0.020424827933311462, -0.02167266607284546, -0.029571494087576866, -0.014608897268772125, 0.0007722715381532907, -0.0040403809398412704, 0.007710970006883144, 0.061883363872766495, 0.016612425446510315, -0.021905256435275078, -0.02756291814148426, 0.01666180230677128, -0.0015212944708764553, 0.0019073457224294543, -0.007932170294225216, 0.057972729206085205, -0.005214521661400795, -0.018427874892950058, 0.03440351039171219, -0.0074270740151405334, -0.03051069937646389, 0.02377638965845108, 0.02324606478214264, 0.008764276280999184, -0.006418497767299414, -0.02857089973986149, 0.004096785094588995, 0.0034053779672831297, 0.010171676054596901, -1.2391102366393625e-8, -0.007416880689561367, 0.005211021285504103, -0.03151415288448334, 0.05151958391070366, 0.035094741731882095, 0.01173310074955225, -0.04482699930667877, 0.011171330697834492, -0.043459489941596985, 0.00862058624625206, 0.023869046941399574, 0.035228438675403595, -0.01985630951821804, 0.05240815132856369, 0.017822597175836563, -0.05183692276477814, 0.004166522994637489, -0.01598779484629631, 0.01938518136739731, -0.0061470563523471355, 0.010890998877584934, 0.057367779314517975, 0.017565159127116203, -0.02371925674378872, -0.03847775608301163, -0.0018419764237478375, 0.036861252039670944, -0.06290658563375473, -0.016406822949647903, -0.013458539731800556, 0.027099227532744408, 0.0047324891202151775, -0.04318097606301308, 0.027790525928139687, -0.038019850850105286, -0.008111480623483658, -0.0027122804895043373, 0.03770209848880768, 0.0121379429474473, 0.022211801260709763, 0.015028780326247215, -0.01891745626926422, 0.0014335352461785078, -0.0474906824529171, -0.05141901597380638, -0.00988087896257639, -0.04067268222570419, 0.032125215977430344, 0.052206505089998245, -0.024051036685705185, -0.0031089819967746735, -0.006664639338850975, 0.013731916435062885, -0.004768221639096737, 0.042443808168172836, -0.02878776378929615, -0.0017693061381578445, 0.01029358059167862, 0.031034991145133972, 0.012772063724696636, 0.04958546906709671, 0.015961308032274246, 0.007620462216436863, 0.0026755668222904205 ]
apache-pinot-experimenting-with-startree-index
https://markhneedham.com/blog/2023/07/28/apache-pinot-experimenting-with-startree-index
false
2023-07-17 04:44:37
Puppeteer: Button click doesn't work when zoomed in
[ "puppeteer", "javascript", "til" ]
[ "TIL" ]
:icons: font I'm still playing around with https://pptr.dev/[Puppeteer^], a Nodejs library that provides an API to control Chrome/Chromium. I want to load the Pinot UI zoomed to 250% and then write and run some queries. We can install Puppeteer by running the following command: [source, bash] ---- npm i puppeteer-core ---- I then created the file `drive_pinot.mjs` and added the following code, which opens the Pinot query console and then clicks on the 'Run Query' button: .drive_pinot.mjs [source, javascript] ---- import puppeteer from 'puppeteer-core'; async function run() { const browser = await puppeteer.launch({ headless: false, executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', ignoreDefaultArgs: ['--enable-automation'], defaultViewport: null, args: ['--start-maximized', '--disable-infobars',], }); const page = await browser.newPage(); await page.goto('http://localhost:9000/#/query'); const [initPage] = await browser.pages(); initPage.close() const runQueryButton = await page.$x("//button[contains(., 'Run Query')]"); await runQueryButton[0].click() // <1> await new Promise(r => setTimeout(r, 1000)); await browser.close(); } run(); ---- <1> Click on the run query button This works completely fine although there isn't a useful result as we haven't written a query yet. Next, I tried zooming the page to 250% after navigating to the Pinot query console: [source, javascript] ---- import puppeteer from 'puppeteer-core'; async function run() { const browser = await puppeteer.launch({ headless: false, executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', ignoreDefaultArgs: ['--enable-automation'], defaultViewport: null, args: ['--start-maximized', '--disable-infobars',], }); const page = await browser.newPage(); await page.goto('http://localhost:9000/#/query'); await page.evaluate(() => document.body.style.zoom = "250%" ); // <1> const [initPage] = await browser.pages(); initPage.close() const runQueryButton = await page.$x("//button[contains(., 'Run Query')]"); await runQueryButton[0].click() await new Promise(r => setTimeout(r, 1000)); await browser.close(); } run(); ---- <.> Zoom the page several times But this time when it clicked the 'Run Query' button nothing happened. I came across a https://stackoverflow.com/questions/49979069/puppeteer-element-click-not-working-and-not-throwing-an-error/50032302#50032302[StackOverflow thread^] that suggested the issue might be that the location of the button had moved because of the zoom. I'm not entirely sure that would be the case when I selected the button after zooming the page, but I thought I'd give the solution a try: [source, javascript] ---- import puppeteer from 'puppeteer-core'; async function run() { const browser = await puppeteer.launch({ headless: false, executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', ignoreDefaultArgs: ['--enable-automation'], defaultViewport: null, args: ['--start-maximized', '--disable-infobars',], }); const page = await browser.newPage(); await page.goto('http://localhost:9000/#/query'); await page.evaluate(() => document.body.style.zoom = "250%" ); const [initPage] = await browser.pages(); initPage.close() const runQueryButton = await page.$x("//button[contains(., 'Run Query')]"); await page.evaluate((el) => { // <1> el.click(); }, runQueryButton[0]); await new Promise(r => setTimeout(r, 1000)); await browser.close(); } run(); ---- <.> Click the button inside `page.evaluate` And now the button happily clicks at 250% zoom!
In this post, we're going to learn how to solve the problem of clicking a button when the browser is zoomed using Puppeteer.
uploads/2023/07/puppeteer-button-click-banner.png
[ -0.0477311834692955, -0.007413421757519245, -0.00214397138915956, -0.005657132714986801, 0.05989018455147743, 0.01263243518769741, 0.030680177733302116, 0.06183578073978424, -0.033058274537324905, -0.017794648185372353, -0.020367814227938652, -0.0017737415619194508, -0.058995697647333145, -0.0026945576537400484, 0.03330732509493828, 0.07875940203666687, 0.10565372556447983, -0.00034492716076783836, 0.0066937971860170364, -0.046600379049777985, 0.019387228414416313, 0.04898928478360176, 0.011215989477932453, 0.04682548716664314, 0.030723070725798607, -0.0026884148828685284, 0.0026620596181601286, -0.010568388737738132, -0.08000504225492477, 0.009087142534554005, 0.0012667587725445628, 0.003924593795090914, 0.000938809069339186, -0.030775848776102066, -0.009581639431416988, -0.005929731298238039, 0.022406889125704765, 0.01340637169778347, -0.008941675536334515, 0.022175833582878113, -0.05121753737330437, 0.016464095562696457, 0.03524845838546753, 0.01623794622719288, -0.017114004120230675, 0.05004134029150009, -0.009606119245290756, 0.02257845737040043, 0.001385279931128025, -0.02142917364835739, -0.0638706311583519, 0.039052873849868774, -0.03479272499680519, -0.0004227573808748275, -0.006777592934668064, 0.024017350748181343, 0.004963420331478119, -0.06539840996265411, 0.0015299541410058737, -0.06667252629995346, -0.000689797627273947, 0.05461573973298073, 0.029121261090040207, 0.03419772908091545, -0.002857393119484186, 0.007367411628365517, -0.027029648423194885, 0.05724170058965683, -0.06442413479089737, -0.04693019390106201, 0.020371736958622932, -0.0026143791619688272, -0.029684606939554214, 0.00043924679630436003, 0.03220111131668091, -0.03243641555309296, -0.029691720381379128, 0.045661430805921555, 0.015865987166762352, 0.025366367772221565, -0.007781579624861479, -0.0005740217748098075, 0.060402028262615204, 0.02147606387734413, 0.006715097930282354, -0.035676419734954834, -0.036923281848430634, -0.009246911853551865, -0.03968596085906029, 0.0507563054561615, 0.058177243918180466, -0.04870135337114334, 0.02302417904138565, 0.006013196427375078, 0.02214669995009899, 0.005640787072479725, 0.0006428554188460112, -0.012855938635766506, -0.017749493941664696, 0.007237396668642759, -0.014205578714609146, -0.005178401712328196, 0.02605339325964451, 0.003952828701585531, -0.06795817613601685, -0.0018299623625352979, -0.014796517789363861, 0.009280126541852951, 0.0025703981518745422, 0.023027874529361725, -0.03766215592622757, -0.021077105775475502, -0.006173359230160713, 0.0270400233566761, -0.06379014253616333, 0.09232529997825623, 0.017437823116779327, -0.012432882562279701, 0.013132861815392971, 0.026141854003071785, 0.07451094686985016, 0.04679374769330025, -0.0161854587495327, 0.05676393583416939, -0.016202116385102272, 0.05809348076581955, 0.007963413372635841, 0.018859729170799255, 0.03398790955543518, -0.06730063259601593, 0.00279267318546772, 0.05611111968755722, 0.005460328422486782, -0.03494448587298393, -0.049894317984580994, -0.0002120360150001943, 0.013856909237802029, -0.017580291256308556, 0.06059890612959862, 0.029957430437207222, -0.03167584538459778, -0.033218659460544586, 0.019320048391819, -0.016492193564772606, 0.06894196569919586, 0.023219671100378036, 0.034794650971889496, -0.03383120521903038, -0.007608355488628149, 0.05731944739818573, 0.013241054490208626, 0.009190685115754604, 0.03297610953450203, -0.015444952994585037, -0.014972911216318607, 0.05457344651222229, 0.011624517850577831, -0.026105836033821106, -0.012765069492161274, -0.011047033593058586, 0.049957696348428726, 0.013167724013328552, 0.0002537431719247252, 0.05353892222046852, 0.016434114426374435, -0.0354699082672596, -0.00849900022149086, 0.057125844061374664, 0.001915985019877553, -0.011245440691709518, -0.05611877515912056, -0.024560363963246346, 0.03408988565206528, -0.06434419751167297, -0.04052049294114113, 0.047312669456005096, 0.06697221845388412, -0.013718278147280216, 0.036365099251270294, 0.01993350312113762, -0.08870794624090195, 0.07408630847930908, 0.017644677311182022, -0.025038938969373703, 0.0003749066381715238, 0.001070548896677792, 0.0775366872549057, -0.0035581649281084538, 0.013484703376889229, -0.006795499008148909, -0.05003273859620094, -0.05959631875157356, -0.03144632279872894, 0.011308169923722744, 0.07928068935871124, -0.031315095722675323, -0.019805775955319405, 0.045620787888765335, 0.04703954607248306, 0.022927476093173027, -0.011447527445852757, -0.01225217618048191, 0.05548100546002388, -0.054438892751932144, -0.08181799948215485, -0.0018400336848571897, 0.024352867156267166, -0.03532879427075386, -0.014515475369989872, 0.032721348106861115, -0.06769028306007385, 0.0004795876157004386, 0.03446890413761139, 0.01298864558339119, 0.0636453926563263, 0.009477033279836178, 0.03334168344736099, -0.046083882451057434, 0.02431548200547695, -0.061521247029304504, 0.036777496337890625, 0.005209656897932291, 0.026348460465669632, 0.005681593902409077, -0.012378926388919353, 0.1120280995965004, 0.06773966550827026, -0.031300827860832214, -0.04474959895014763, 0.04393742233514786, 0.0015510286903008819, -0.05266166850924492, 0.011880798265337944, -0.028468655422329903, -0.021702038124203682, 0.00035672730882652104, 0.002775935223326087, -0.02001510187983513, 0.009979793801903725, -0.031539008021354675, 0.017336180433630943, 0.05185338482260704, -0.020317763090133667, 0.07321181148290634, 0.017459912225604057, -0.01965438760817051, 0.008958891034126282, -0.001744549721479416, -0.04302825406193733, -0.023221224546432495, 0.0014297557063400745, -0.012490296736359596, -0.007842827588319778, -0.05322152003645897, 0.012116417288780212, -0.052487559616565704, -0.05432061105966568, 0.029610617086291313, 0.012746383436024189, 0.0798952654004097, -0.022516164928674698, 0.008864330127835274, 0.0007333957473747432, 0.016718747094273567, -0.005318721756339073, -0.04847036302089691, -0.007427338045090437, 0.0076814922504127026, 0.04073900729417801, 0.03661287948489189, -0.018367087468504906, -0.021365726366639137, 0.005518375430256128, -0.04485340416431427, 0.01151164248585701, 0.010186863131821156, 0.001009441097266972, -0.00503993546590209, -0.011683591641485691, -0.034438606351614, -0.009219510480761528, 0.04096212238073349, -0.061669640243053436, -0.025554275140166283, 0.019535230472683907, -0.028563762083649635, 0.04618909955024719, -0.09633410722017288, -0.03730647265911102, -0.018364744260907173, 0.042312413454055786, 0.016747519373893738, 0.013322156853973866, 0.014150918461382389, 0.04112505912780762, -0.01811746507883072, 0.021053960546851158, 0.0264567993581295, -0.0045518395490944386, 0.00797659158706665, -0.014755785465240479, 0.011416356079280376, 0.017277082428336143, -0.014943254180252552, 0.03176012262701988, -0.04969651624560356, 0.03627552092075348, -0.049332164227962494, -0.2499033361673355, 0.04531364515423775, 0.01307430025190115, 0.006989818532019854, 0.00628977594897151, -0.005503152962774038, 0.016526618972420692, -0.03287040814757347, 0.0035196924582123756, 0.0006950931274332106, -0.020961318165063858, -0.00863699521869421, -0.056689996272325516, 0.05456462875008583, -0.010402786545455456, 0.015629518777132034, -0.02182692289352417, -0.04655533656477928, -0.013658738695085049, 0.0020032802131026983, -0.00874716229736805, -0.06629688292741776, 0.04033390060067177, 0.005514878313988447, 0.04963104426860809, 0.023694422096014023, -0.07815470546483994, 0.07304838299751282, -0.03653089329600334, -0.039919301867485046, 0.009520410560071468, -0.021161694079637527, 0.008262591436505318, 0.02070194110274315, 0.02234610728919506, -0.0001224853767780587, 0.053719907999038696, -0.0011090930784121156, 0.02938423678278923, -0.023648260161280632, -0.03268967196345329, -0.038137029856443405, 0.010724663734436035, -0.009433705359697342, 0.06506597995758057, -0.03458963707089424, -0.0877198576927185, -0.017742596566677094, -0.04866506904363632, 0.0597742535173893, -0.03702498972415924, -0.07327881455421448, -0.03153352811932564, 0.016458991914987564, 0.03036796860396862, -0.001767354435287416, -0.007813890464603901, 0.018983637914061546, -0.04903704300522804, -0.019056985154747963, -0.002447807230055332, -0.047329436987638474, -0.02240908332169056, -0.028372853994369507, -0.01295904815196991, -0.06126876547932625, -0.04489906132221222, 0.00032263598404824734, 0.07647095620632172, 0.023830877617001534, -0.039282433688640594, 0.014038840308785439, -0.009771764278411865, -0.1124432161450386, -0.03775859996676445, -0.017658673226833344, -0.03276783972978592, -0.04159374162554741, -0.042782120406627655, 0.047128260135650635, -0.04116014018654823, -0.02033214643597603, 0.01863047480583191, 0.014750504866242409, 0.013517923653125763, -0.022584738209843636, -0.028133150190114975, -0.05071912333369255, -0.0021178012248128653, 0.00028388682403601706, 0.07995884865522385, -0.058298204094171524, -0.015921128913760185, -0.025045201182365417, -0.026571249589323997, 0.03759147599339485, 0.030599050223827362, 0.03571641817688942, -0.02363472990691662, 0.03455965220928192, 0.02392955683171749, -0.023173373192548752, 0.003037351416423917, -0.008309997618198395, 0.01584004797041416, 0.018995210528373718, -0.07953587919473648, 0.02618180587887764, 0.028869757428765297, 0.03884344547986984, 0.01900579035282135, -0.018505020067095757, 0.005701686721295118, -0.05021429434418678, -0.031358685344457626, 0.0005557516706176102, 0.013678222894668579, 0.022347193211317062, -0.003356293309479952, -0.004915342200547457, -0.053170014172792435, 0.013951437547802925, 0.003027042606845498, -0.014689511619508266, -0.02703821286559105, -0.03941509127616882, 0.019957279786467552, -0.0009060255251824856, 0.02852664701640606, 0.005808764602988958, -0.031870659440755844, 0.03684807941317558, 0.02568533644080162, -0.023364126682281494, 0.042524635791778564, -0.05075232312083244, -0.010723677463829517, -0.05116052180528641, 0.04252789169549942, 0.013649740256369114, -0.0035100621171295643, -0.00951920822262764, 0.03952602669596672, 0.013185386545956135, 0.022462649270892143, 0.026302825659513474, 0.025335274636745453, 0.0020201951265335083, -0.003926882054656744, 0.03227108344435692, -0.018275048583745956, 0.013481920585036278, -0.028850700706243515, -0.026712486520409584, -0.03767343983054161, -0.05502565577626228, -0.0017042005201801658, -0.01665492169559002, -0.0056275008246302605, -0.04301804304122925, 0.010243088938295841, -0.07734538614749908, 0.010318484157323837, 0.0113443648442626, -0.012875635176897049, 0.0342148132622242, 0.044211093336343765, 0.030477801337838173, -0.01926974020898342, 0.0012622372014448047, 0.007894732058048248, 0.025079870596528053, -0.0295556653290987, 0.006500096060335636, -0.03191167116165161, -0.009505829773843288, 0.01681552827358246, 0.03812529891729355, -0.01707693375647068, -0.009455433115363121, 0.05397443845868111, 0.008755281567573547, 0.04444076865911484, 0.007450297940522432, 0.027682825922966003, -0.012294148094952106, -0.02248234860599041, 0.013689177110791206, -0.017995530739426613, -0.02338060736656189, -0.026688063517212868, 0.03864283859729767, -0.03223593160510063, -0.011730042286217213, -0.02606918103992939, -0.06722342222929001, 0.031870897859334946, 0.022106125950813293, 0.032839205116033554, 0.022556716576218605, -0.004759394098073244, -0.006447935942560434, -0.03566144034266472, 0.05733710899949074, 0.07978497445583344, -0.065621517598629, 0.019702725112438202, -0.0039017656818032265, -0.00881909765303135, 0.004080992192029953, 0.015089554712176323, -0.09340962022542953, -0.002781157847493887, 0.00628501083701849, -0.0049827927723526955, -0.0298598725348711, -0.0318593755364418, -0.04082132875919342, 0.011519888415932655, -0.012498429045081139, 0.00404864177107811, 0.008610413409769535, -0.023113708943128586, -0.01621943898499012, -0.010178002528846264, 0.015310291200876236, 0.008047090843319893, -0.026744531467556953, 0.02576461061835289, -0.0272663664072752, 0.049009792506694794, -0.0033325853291898966, 0.03930088132619858, 0.026744401082396507, -0.0019358976278454065, -0.004771425388753414, -0.0461522601544857, 0.007096453569829464, 0.006918415427207947, 0.06762100011110306, -0.01437865849584341, 0.018566938117146492, -0.021158140152692795, -0.014858224429190159, 0.0007278570556081831, -0.003490881063044071, -0.01181721780449152, -0.041561491787433624, 0.009834879077970982, 0.05416152998805046, 0.017395520582795143, -0.018263453617691994, 0.021195372566580772, 0.009403379634022713, 0.0394911952316761, -0.05013498663902283, -0.0308940801769495, 0.010458437725901604, -0.07911467552185059, 0.017195578664541245, 0.019656412303447723, 0.02260017767548561, -0.07977202534675598, 0.036840036511421204, 0.0430498830974102, 0.009498589672148228, -0.014488644897937775, -0.05789206549525261, 0.032810408622026443, 0.0033182718325406313, 0.008865097537636757, -0.08862941712141037, -0.006165489088743925, 0.006250682286918163, -0.009743351489305496, 0.007401722948998213, 0.0189667921513319, -0.05009962618350983, 0.0576324388384819, -0.06842836737632751, -0.012947321869432926, 0.07090479880571365, 0.013490931130945683, -0.022128483280539513, -0.014048833400011063, -0.06024179607629776, 0.043748889118433, 0.03719858080148697, -0.021627333015203476, 0.0002946042804978788, 0.024956360459327698, 0.04574798792600632, -0.0027466113679111004, 0.026746293529868126, -0.01742425188422203, 0.003908512648195028, 0.057894814759492874, 0.004278607200831175, -0.018925631418824196, 0.0541783832013607, -0.03342656046152115, 0.049212224781513214, 0.02318514883518219, 0.03286686912178993, 0.0025972926523536444, 0.05943296104669571, -0.024771451950073242, -0.047289859503507614, 0.0327586829662323, -0.009459545835852623, 0.013541783206164837, -0.06799729913473129, 0.041228219866752625, -0.006470793858170509, -0.04482370615005493, -0.03056035004556179, -0.007741725537925959, -0.039692893624305725, -0.05222950503230095, -0.03143685311079025, 0.016840115189552307, -0.030973952263593674, 0.06454052031040192, -0.000743131444323808, 0.006063923239707947, 0.10115393251180649, -0.0163593590259552, 0.02098383568227291, 0.026044534519314766, 0.05679904296994209, 0.07282451540231705, 0.03490925207734108, -0.015777135267853737, 0.08292876929044724, -0.02313598431646824, -0.03291565552353859, -0.028483347967267036, -0.03435298800468445, -0.03931053355336189, -0.05563828721642494, 0.00295609375461936, 0.07132123410701752, -0.025668317452073097, 0.058520879596471786, -0.027572128921747208, -0.00332520785741508, -0.012811578810214996, 0.02041546441614628, -0.0022078165784478188, 0.054185979068279266, -0.008387777954339981, 0.02453414723277092, -0.01647168956696987, -0.0005758284823969007, 0.04869994521141052, -0.003900442970916629, -0.010835650376975536, 0.024392524734139442, -0.03361595794558525, -0.01106706727296114, 0.00976406130939722, 0.01124507375061512, 0.0760471299290657, -0.013195795938372612, -0.004559860099107027, 0.007786417845636606, 0.027970368042588234, 0.022541936486959457, -0.011529919691383839, -0.028443284332752228, -0.020817440003156662, -0.04191496595740318, -0.003885684534907341, -0.011718579567968845, 0.006625711917877197, -0.02893405593931675, 0.028597448021173477, -0.04027546942234039, 0.011274621821939945, -0.009619713760912418, -0.04307876154780388, -0.07707574963569641, -0.01462511532008648, -0.037766218185424805, -0.05871359258890152, -0.04899204894900322, -0.02920367754995823, -0.0008501263801008463, -0.010197178460657597, -0.03127012401819229, -0.016231855377554893, 0.032715994864702225, 0.012118442915380001, -0.03720882907509804, -0.01629680208861828, -0.03206896036863327, 0.020166022703051567, 0.0240770410746336, 0.018839837983250618, 0.021336033940315247, 0.07874958962202072, 0.00839006993919611, -0.0045848870649933815, -0.03889569640159607, 0.011808122508227825, 0.04249660298228264, 0.008099275641143322, 0.03487769514322281, -0.04864802956581116, 0.009346929378807545, -0.006878828164190054, -0.01731305941939354, -0.053954411298036575, 0.030994107946753502, 0.043150320649147034, -0.029387816786766052, 0.059119243174791336, -0.008055755868554115, 0.03602112457156181, -0.06487468630075455, -0.0276880394667387, 0.008741931058466434, 0.011090494692325592, 0.04732361435890198, -0.022331323474645615, 0.08463504165410995, 0.011694423854351044, -0.0015703857643529773, -0.017678864300251007, -0.0030175643041729927, -0.009913020767271519, 0.0007000241312198341, -0.053452908992767334, 0.03397132828831673, -0.047565314918756485, -0.03759654611349106, -0.018078669905662537, 0.03357713297009468, -0.01873646304011345, -0.0296449176967144, -0.01175207830965519, 0.007177993189543486, -0.019834153354167938, 0.044105034321546555, -0.02714337594807148, -0.013359788805246353, -0.009243959560990334, -0.02000581845641136, 0.027986599132418633, 0.034709181636571884, -0.014190713874995708, -0.02747243456542492, 0.03641294315457344, -0.013898138888180256, -0.048991456627845764, -0.040150854736566544, 0.02928883209824562, 0.034724872559309006, -0.030593611299991608, 0.01521053072065115 ]
[ -0.06483756005764008, 0.01079961471259594, -0.014009110629558563, -0.02238166332244873, -0.0008068765164352953, -0.038410503417253494, -0.02999403513967991, 0.02100679650902748, -0.04474377632141113, -0.02193683572113514, -0.007473265752196312, -0.02043144777417183, 0.028334835544228554, -0.026624415069818497, 0.06941401213407516, -0.027985215187072754, 0.031826864928007126, -0.0198526568710804, -0.037292640656232834, 0.0347580760717392, 0.025626733899116516, -0.023431899026036263, 0.008461331017315388, -0.052243832498788834, -0.03628542646765709, 0.06385447084903717, -0.006448551546782255, -0.03080705925822258, 0.010434890165925026, -0.1800377517938614, 0.009561166167259216, -0.06043212115764618, -0.010081845335662365, -0.005975250154733658, -0.0007157467189244926, 0.027582919225096703, 0.07816827297210693, -0.03252347931265831, 0.04742339998483658, 0.04061003774404526, 0.012969153001904488, 0.035214271396398544, -0.10516676306724548, -0.00553158251568675, 0.06615379452705383, -0.0010685562156140804, -0.022604014724493027, -0.005310473497956991, 0.013563460670411587, -0.01995236985385418, -0.03721986338496208, -0.003082424169406295, 0.002994365291669965, -0.028287336230278015, 0.011148318648338318, 0.03340696170926094, 0.01939081959426403, 0.031809527426958084, 0.04626961424946785, 0.017671192064881325, 0.004053342621773481, -0.0036112333182245493, -0.12880674004554749, 0.12191715091466904, 0.025660831481218338, 0.05030139163136482, -0.07411547005176544, -0.0014074646169319749, -0.06634602695703506, 0.04440126568078995, 0.012476738542318344, 0.021849431097507477, -0.01515420712530613, 0.048516664654016495, -0.007824040949344635, -0.0732014998793602, -0.03958301991224289, 0.03126480057835579, 0.03102443739771843, -0.018147194758057594, -0.06759852916002274, -0.031659893691539764, 0.00842037983238697, 0.010266742669045925, 0.006660387851297855, 0.024698490276932716, -0.01068036537617445, 0.04619095101952553, 0.0029858180787414312, 0.026120366528630257, 0.03568551316857338, -0.04024810716509819, 0.01581384614109993, -0.005749020259827375, -0.04305756092071533, 0.026145976036787033, 0.009940634481608868, 0.021994395181536674, -0.023148007690906525, 0.37833085656166077, 0.008397388271987438, 0.026072926819324493, 0.035354480147361755, -0.028729334473609924, 0.020531291142106056, 0.004957542289048433, 0.026141198351979256, 0.02387281134724617, 0.030269837006926537, 0.024218007922172546, 0.01659366488456726, 0.012607892975211143, 0.06077050045132637, -0.07838838547468185, 0.010490132495760918, -0.019986793398857117, -0.05311552807688713, 0.019870638847351074, 0.0035654304083436728, 0.06561227142810822, 0.030737871304154396, 0.017140010371804237, 0.0269964300096035, 0.016248906031250954, 0.059058208018541336, 0.04144600033760071, 0.03365568816661835, 0.03591879457235336, 0.03630030155181885, 0.016810636967420578, 0.017178917303681374, -0.02474610134959221, -0.03994768485426903, -0.01338487770408392, 0.025438601151108742, 0.037575844675302505, 0.027706461027264595, -0.018100054934620857, 0.016329282894730568, -0.005993170198053122, -0.021936217322945595, -0.03313177078962326, 0.07697143405675888, -0.03345238417387009, -0.0006090640090405941, 0.07916010171175003, 0.00011487082520034164, 0.0039792307652533054, -0.041376397013664246, -0.0330611914396286, -0.02340182475745678, 0.009049986489117146, -0.00977914035320282, -0.0438983179628849, -0.06155123561620712, 0.010699355974793434, 0.06831339746713638, 0.03264155238866806, -0.04348673298954964, -0.0022759586572647095, -0.009623833931982517, -0.017289524897933006, 0.034654635936021805, -0.0414506271481514, 0.021206462755799294, -0.12761257588863373, -0.028081508353352547, 0.049111004918813705, -0.023421907797455788, -0.0550181046128273, -0.06713733077049255, 0.03398069366812706, -0.07821253687143326, -0.003985823132097721, 0.0742863193154335, -0.04317396506667137, -0.025473659858107567, 0.031369175761938095, 0.050293684005737305, 0.060101352632045746, -0.026544874534010887, -0.04133081063628197, 0.0001431391283404082, -0.02898922562599182, -0.045277442783117294, -0.06740131974220276, 0.01048749964684248, 0.00041995354695245624, 0.005005726125091314, -0.042279601097106934, -0.0028591013979166746, -0.053810711950063705, -0.009711329825222492, 0.06647657603025436, 0.0025339708663523197, 0.013303151354193687, -0.027818595990538597, -0.026160942390561104, -0.015819352120161057, -0.04387546703219414, 0.04222791641950607, 0.004700977820903063, 0.00016444388893432915, 0.026574954390525818, -0.017322368919849396, 0.07099930197000504, -0.001262771082110703, -0.04534891992807388, 0.05804552510380745, 0.03235367313027382, -0.07150737196207047, 0.0340937040746212, 0.009019140154123306, 0.030266160145401955, -0.005043826997280121, -0.06840406358242035, -0.07903537899255753, -0.007810181938111782, 0.024274587631225586, 0.05580032244324684, -0.024408819153904915, -0.00708545558154583, -0.09763284772634506, -0.35275140404701233, -0.028939971700310707, -0.07700885087251663, -0.012889139354228973, -0.014529215171933174, -0.05813705176115036, 0.03619058430194855, -0.00938316062092781, -0.0070037441328167915, -0.023644892498850822, 0.09987474977970123, -0.014794429764151573, 0.052828967571258545, -0.03244267776608467, -0.00027820761897601187, 0.001583161880262196, -0.012091350741684437, -0.04008280485868454, -0.037260595709085464, 0.019054068252444267, 0.009657111018896103, -0.026999596506357193, -0.04898667335510254, -0.06728868931531906, 0.0036446594167500734, -0.034101538360118866, 0.10222332179546356, 0.010896923020482063, 0.02047489397227764, -0.09266315400600433, 0.05288088694214821, 0.04181927070021629, -0.02217559516429901, -0.05277829244732857, 0.009815086610615253, -0.026177117601037025, 0.04086265712976456, 0.01616041362285614, -0.016302799805998802, -0.0020086064469069242, -0.08272890746593475, 0.04812305048108101, -0.027273358777165413, -0.06664880365133286, -0.011620872654020786, 0.0021608485840260983, 0.005485691130161285, 0.021869486197829247, -0.01874346286058426, 0.05479557067155838, 0.01012175902724266, 0.01610010676085949, 0.015231713652610779, 0.018060652539134026, -0.031259968876838684, 0.0020386488176882267, -0.03986579552292824, -0.05322674661874771, -0.002761388663202524, 0.0053620608523488045, 0.01688869670033455, -0.012714745476841927, 0.04065842553973198, -0.09457940608263016, -0.009912311099469662, 0.04015139117836952, 0.02613646164536476, -0.028553958982229233, 0.046628132462501526, -0.0077027552761137486, -0.034149933606386185, 0.07703225314617157, 0.04469143971800804, 0.06392589956521988, 0.02645338885486126, 0.030420107766985893, 0.04735863208770752, 0.04305962473154068, 0.04979904368519783, 0.015677114948630333, 0.021819813176989555, 0.009759786538779736, 0.08152350783348083, -0.013921151868999004, -0.045136064291000366, 0.030900081619620323, -0.001865130034275353, -0.0279469583183527, 0.01362292468547821, 0.020343506708741188, -0.03851103037595749, 0.03389973193407059, -0.00965038314461708, -0.023466527462005615, 0.024297300726175308, -0.005772764328867197, -0.27682799100875854, 0.04828516021370888, 0.07208731770515442, 0.06131517514586449, 0.03986401855945587, -0.020468678325414658, 0.014341108500957489, -0.10352537035942078, -0.023739071562886238, 0.025518713518977165, -0.023309987038373947, 0.06180493161082268, 0.022610966116189957, -0.0047030700370669365, 0.012228035368025303, 0.0019351261435076594, 0.038236796855926514, 0.01521866675466299, -0.0014254959532991052, -0.033286407589912415, 0.06417332589626312, -0.023530876263976097, 0.18541620671749115, 0.08533681929111481, -0.011466463096439838, 0.05230539292097092, 0.003993261605501175, 0.003099696012213826, 0.055718306452035904, -0.0030299280770123005, 0.010615435428917408, -0.03061867505311966, 0.03576480224728584, -0.016464874148368835, 0.04252324998378754, -0.03172621876001358, -0.020827997475862503, 0.037007011473178864, -0.0050910054706037045, -0.03035627119243145, -0.01719081774353981, 0.028374098241329193, 0.02029765397310257, -0.006074367556720972, 0.05896881967782974, -0.060093171894550323, -0.020224280655384064, 0.012953490950167179, -0.034123439341783524, 0.01685202866792679, -0.02914060465991497, -0.05074569582939148, -0.026221754029393196, -0.03717486560344696, 0.00703809317201376, 0.08260351419448853, 0.020048225298523903, -0.017643345519900322, 0.0119866244494915, -0.006467314437031746, -0.012907802127301693, -0.0696825161576271, 0.07000678032636642, 0.03272302821278572, 0.03284628316760063 ]
[ -0.0033176045399159193, -0.0009292770992033184, -0.011881723999977112, 0.041025467216968536, 0.008428972214460373, 0.007774144411087036, -0.03462420776486397, 0.029682306572794914, -0.046692170202732086, -0.019157756119966507, 0.008524506352841854, 0.033531419932842255, 0.02439298667013645, -0.032065339386463165, -0.025098130106925964, 0.00555579224601388, -0.007519627921283245, 0.0005945543525740504, 0.01068228017538786, 0.01122406218200922, -0.015587824396789074, -0.004365766886621714, 0.06298346072435379, 0.009287683293223381, -0.024413209408521652, -0.021634284406900406, -0.018859056755900383, -0.04743169993162155, 0.026362253352999687, -0.13698948919773102, -0.018140902742743492, -0.01380898617208004, 0.022020986303687096, -0.014061711728572845, -0.022192228585481644, 0.02048017457127571, -0.024246178567409515, -0.04064533859491348, -0.0299497339874506, -0.04350807145237923, 0.034421250224113464, 0.022322021424770355, -0.008463124744594097, 0.004040009807795286, 0.026128923520445824, -0.05042421817779541, -0.033837925642728806, -0.0012216516770422459, -0.013743019662797451, 0.012859505601227283, -0.02537752501666546, -0.0051726470701396465, 0.029430067166686058, -0.03871353715658188, -0.0438142828643322, -0.02448551543056965, -0.011030786670744419, -0.014964642934501171, 0.0553903691470623, 0.035366423428058624, 0.042211733758449554, 0.00801442563533783, 0.0071990578435361385, -0.03369548171758652, 0.030960602685809135, 0.02755429781973362, -0.005770436953753233, -0.038422420620918274, -0.021845383569598198, -0.006301759742200375, 0.02842576801776886, -0.012652045115828514, -0.0009106052457354963, -0.017395487055182457, -0.03028354048728943, -0.07282968610525131, -0.01210166234523058, 0.007545083295553923, -0.019779106602072716, 0.03826591372489929, -0.052756503224372864, -0.01761888898909092, -0.01819920353591442, 0.037830810993909836, 0.001166702015325427, 0.03437361121177673, -0.011316278018057346, 0.016634050756692886, -0.03544294834136963, -0.02468224987387657, -0.05710669979453087, -0.022449912503361702, -0.018005495890975, 0.04574653133749962, -0.052633918821811676, 0.0007448091637343168, 0.01675274223089218, -0.008302716538310051, -0.025509534403681755, 0.8085103631019592, 0.0038976771757006645, 0.028804685920476913, 0.011076797731220722, -0.03497723489999771, -0.014681970700621605, 0.006451139692217112, 0.0174257755279541, 0.0036636542063206434, -0.022151634097099304, -0.014735251665115356, 0.02775626815855503, 0.00658763013780117, 0.03860688582062721, 0.016497887670993805, 0.0060174427926540375, -0.017360180616378784, 0.0007786184432916343, -0.004857458174228668, 0.07144222408533096, 0.08019907772541046, 0.056517891585826874, 0.004378428217023611, -0.03094114363193512, -0.010105092078447342, 0.04535131901502609, -0.19555218517780304, 0.011513059027493, -6.783254803609305e-33, 0.045826978981494904, -0.07504841685295105, 0.033401403576135635, 0.0028481576591730118, 0.04545653611421585, 0.04173555597662926, 0.02823144756257534, -0.007846124470233917, -0.05783046782016754, -0.029606956988573074, 0.03581703454256058, -0.021462149918079376, -0.04291906952857971, -0.026453198865056038, -0.002371834823861718, 0.01683993823826313, 0.0006427104817703366, 0.04557888209819794, 0.018182430416345596, -0.00010356530401622877, 0.03617376461625099, 0.0186909306794405, -0.015535438433289528, 0.033549100160598755, 0.037942688912153244, 0.04144608974456787, -0.010126384906470776, 0.026568535715341568, -0.01785401999950409, -0.037168994545936584, -0.026878174394369125, 0.02163216657936573, -0.026415761560201645, -0.0069656334817409515, -0.02090611308813095, -0.047029756009578705, -0.01856168545782566, -0.021899212151765823, -0.04595223814249039, -0.02650080807507038, -0.004419355653226376, -0.021457888185977936, -0.029483752325177193, -0.04685831442475319, -0.0557793565094471, -0.004795948509126902, 0.014636596664786339, -0.006842940114438534, -0.001471032272092998, -0.0026082415133714676, 0.01733328588306904, 0.023659871891140938, 0.027427727356553078, -0.01587551273405552, -0.011706201359629631, -0.013083342462778091, 0.010973555967211723, 0.0032753366976976395, -0.019513865932822227, -0.01811288669705391, 0.011801411397755146, -0.03356638923287392, -0.012611141428351402, -0.014918200671672821, -0.000843015790451318, -0.007994327694177628, -0.0066378675401210785, 0.04262944310903549, -0.002980818971991539, 0.007345551624894142, -0.02119513973593712, -0.023190688341856003, -0.021638723090291023, -0.004058098420500755, 0.00357719580642879, -0.013249063864350319, 0.00648375041782856, 0.008499989286065102, 0.00023954887001309544, 0.032544687390327454, -0.012036249972879887, -0.017823724076151848, -0.02574213407933712, -0.010263446718454361, 0.01206931471824646, 0.0007093531894497573, 0.005608358420431614, -0.001537603442557156, 0.007610810920596123, 0.006327860523015261, 0.006914264522492886, 0.03406352549791336, -0.012677335180342197, -0.045462094247341156, -0.04585609957575798, 6.40914564493645e-33, -0.02005081996321678, 0.007280741352587938, -0.011619199067354202, 0.042529478669166565, -0.00910948496311903, -0.027830196544528008, 0.008359193801879883, 0.026632755994796753, -0.0026744194328784943, 0.015384328551590443, -0.04915260896086693, 0.035222481936216354, -0.015956278890371323, 0.01802753657102585, 0.05760183557868004, 0.022714363411068916, 0.041947245597839355, -0.033148545771837234, 0.03935635834932327, -0.028329238295555115, -0.015396984294056892, 0.021173136308789253, 0.02549334615468979, 0.004449108149856329, 0.013308003544807434, 0.05593567714095116, -0.024045340716838837, 0.0321476049721241, 0.0007328541832976043, 0.011503363028168678, 0.014719583094120026, 0.0022968831472098827, 0.02736736088991165, 0.007326649501919746, -0.014160471968352795, 0.023857126012444496, -0.028137430548667908, 0.003640288021415472, 0.02520035207271576, 0.0018008713377639651, 0.004431328270584345, -0.03338903561234474, 0.01886124536395073, 0.010603053495287895, 0.04586036503314972, -0.03178160637617111, 0.01602768339216709, 0.006438671611249447, 0.016866417601704597, 0.023477576673030853, 0.01396290585398674, 0.036300476640462875, 0.018455782905220985, 0.01321246288716793, 0.01978515088558197, -0.04950555041432381, -0.06542102992534637, -0.007787879090756178, -0.0008364410023204982, -0.03727470710873604, 0.0019689355976879597, -0.024787792935967445, -0.026481207460165024, 0.03923161327838898, -0.04934728145599365, -0.006505497731268406, -0.043989188969135284, 0.008171535097062588, 0.024390941485762596, 0.052210357040166855, 0.016548622399568558, 0.039090950042009354, 0.019404860213398933, 0.05742209777235985, -0.009168089367449284, -0.0006389240152202547, 0.008314118720591068, -0.018667394295334816, 0.03666185960173607, -0.005030689295381308, 0.0038892035372555256, 0.0643777921795845, -0.0009216784383170307, -0.018895873799920082, 0.030079752206802368, 0.007967410609126091, -0.05666876584291458, 0.028047963976860046, 0.02674083411693573, 0.005902651697397232, -0.015521069057285786, 0.007168934680521488, -0.03606301546096802, -0.011393187567591667, -0.02482089214026928, -1.2202601595845408e-8, -0.002189944265410304, 0.04366238787770271, -0.011042648926377296, 0.018383095040917397, 0.03365543112158775, -0.023700181394815445, -0.055690567940473557, -0.010348507203161716, -0.034069862216711044, 0.02572917565703392, 0.07193082571029663, -0.020876798778772354, 0.004266494419425726, 0.03637101128697395, 0.026349714025855064, -0.040290478616952896, 0.00953429564833641, 0.015370192937552929, 0.022720659151673317, -0.02441350184381008, -0.012761515565216541, 0.03594888746738434, 0.020602688193321228, 0.04159337282180786, -0.02113710530102253, 0.002510816091671586, 0.02241165190935135, -0.045411404222249985, -0.02229364402592182, 0.016855070367455482, -0.02765638567507267, -0.015832988545298576, -0.025211714208126068, 0.004105248488485813, -0.024470627307891846, -0.022019678726792336, -0.011320989578962326, 0.0111696170642972, 0.01307152584195137, -0.007656424771994352, 0.02002345770597458, -0.0022843568585813046, 0.003365302924066782, -0.019033873453736305, -0.043511271476745605, -0.035616833716630936, -0.013631054200232029, 0.043347690254449844, 0.0415998212993145, -0.0318608321249485, -0.012684821151196957, -0.01455705612897873, -0.006464571692049503, 0.021826885640621185, 0.0482160784304142, 0.005515018478035927, 0.0410819910466671, -0.012483895756304264, -0.01610196940600872, -0.022669725120067596, 0.03375507891178131, 0.039819907397031784, -0.01465781219303608, -0.006004944443702698 ]
puppeteer-button-click-not-working-after-zoom
https://markhneedham.com/blog/2023/07/17/puppeteer-button-click-not-working-after-zoom
false
2023-07-19 04:44:37
Plotly: Visualising a normal distribution given average and standard deviation
[ "plotly", "javascript", "til" ]
[ "TIL" ]
:icons: font I've been playing around with Microsoft's https://trueskill.org/[TrueSkill^] algorithm, which attempts to quantify the skill of a player using the Bayesian inference algorithm. A rating in this system is a Gaussian distribution that starts with an average of 25 and a confidence of 8.333. I wanted to visualise various ratings using Plotly and that's what we'll be doing in this blog post. To save you from having to install TrueSkill, we're going to create a named tuple to simulate a TrueSkill `Rating` object: [source, python] ---- from collections import namedtuple Rating = namedtuple('Rating', ['mu', 'sigma']) base = Rating(25, 25/3) ---- If we print that object, we'll see the following output: .Output [source, text] ---- Rating(mu=25, sigma=8.333333333333334) ---- To create a visualisation of this distribution, we'll need to install the following libraries: [source, bash] ---- pip install plotly numpy scipy kaleido==0.2.1 ---- Next, import the following libraries: [source, python] ---- import numpy as np from scipy.stats import norm import plotly.graph_objects as go ---- Next, we're going to create some values for the x-axis. We'll use numpy's https://numpy.org/doc/stable/reference/generated/numpy.arange.html[`arange`^] function to create a series of values starting from -4 standard deviations to +4 standard deviations: [source, python] ---- x = np.arange(base.mu-4*base.sigma, base.mu+4*base.sigma, 0.001) ---- .Output [source, text] ---- array([-8.33333333, -8.33233333, -8.33133333, ..., 58.33066667, 58.33166667, 58.33266667]) ---- Next, we're going to run scipy's probability density function over the x values for our mu and sigma values. In other words, we're going to compute the likelihood of each of those x values for our normal distribution: [source, python] ---- y = norm.pdf(x, base.mu, base.sigma) ---- .Output [source, text] ---- array([1.60596271e-05, 1.60673374e-05, 1.60750513e-05, ..., 1.60801958e-05, 1.60724796e-05, 1.60647669e-05] ---- Now that we've got x and y values, we can create a visualisation by running the following code: [source, python] ---- fig = go.Figure() fig.add_trace(go.Scatter(x=x, y=y, mode='lines', fill='tozeroy', line_color='black')) fig.write_image("fig1.png", width=1000, height=800) ---- If we run that code, the following image will be generated: .Normal distribution with mu=25, sigma=8.33 image::{{<siteurl>}}/uploads/2023/07/fig1.png[] We can then wrap that all together into a function that can take in multiple ratings: [source, python] ---- def visualise_distribution(**kwargs): fig = go.Figure() min_x = min([r.mu-4*r.sigma for r in kwargs.values()]) max_x = max([r.mu+4*r.sigma for r in kwargs.values()]) x = np.arange(min_x, max_x, 0.001) for key, value in kwargs.items(): y = norm.pdf(x, value.mu, value.sigma) fig.add_trace(go.Scatter(x=x, y=y, mode='lines', fill='tozeroy', name=key)) fig.write_image(f"fig_{'_'.join(kwargs.keys())}.png", width=1000, height=800) ---- Let's give it a try with 3 different ratings: [source, python] ---- visualise_distribution(p1=Rating(25, 8.333), p2=Rating(50, 4.12), p3=Rating(10, 5.7)) ---- We can see the resulting image below: .A visualisation of multiple normal distributions image::{{<siteurl>}}/uploads/2023/07/fig_p1_p2_p3.png[] We can see that the curve for `p2` is much narrower than the other two, which is because we used a small sigma value. `p1` is the default score and as a result we have the most uncertainty in that rating. `p3` hasn't performed well and there's reasonably certainty around their low score.
In this post, we're going to learn how to visualise normal distribution curves using Plotly.
uploads/2023/07/plotly-banner.png
[ 0.0000854355312185362, 0.0010537123307585716, -0.007291072979569435, 0.014468097127974033, 0.07287786900997162, 0.04863700270652771, 0.019786853343248367, 0.0261278934776783, -0.023065991699695587, -0.00474571343511343, -0.012913193553686142, -0.004248685669153929, -0.07695991545915604, 0.033442988991737366, -0.028564954176545143, 0.08378264307975769, 0.09292253106832504, 0.02608424425125122, -0.0068879565224051476, 0.005392023827880621, 0.017570046707987785, 0.05403822660446167, -0.011479676701128483, 0.051930829882621765, 0.01956668309867382, 0.0047612665221095085, 0.05203428864479065, -0.002920773345977068, -0.028930919244885445, 0.0009594488074071705, 0.02613634429872036, -0.006413683295249939, -0.004353777505457401, -0.008507206104695797, 0.022671066224575043, 0.015625106170773506, -0.03226937726140022, 0.019206706434488297, 0.008684651926159859, 0.02593696489930153, -0.05782230570912361, 0.016822118312120438, -0.017288321629166603, 0.000701186538208276, -0.026494251564145088, -0.004152620676904917, -0.03755783289670944, 0.020358514040708542, 0.016764404252171516, 0.001354892272502184, -0.0502987876534462, 0.03695444390177727, -0.03372018039226532, -0.043725673109292984, -0.03346232324838638, 0.04987384378910065, 0.01886730268597603, -0.07215455919504166, 0.015207919292151928, -0.05411521717905998, -0.014308762736618519, -0.006147959269583225, -0.0026593818329274654, 0.051892563700675964, 0.014205168932676315, -0.0006067071226425469, -0.020571602508425713, 0.04974522441625595, -0.04868288338184357, -0.014974424615502357, -0.03152116388082504, -0.02226027473807335, -0.04247765988111496, -0.030795808881521225, 0.0019026611698791385, -0.06129981949925423, -0.02211766131222248, 0.06819874048233032, 0.03820802643895149, 0.031014492735266685, 0.0032048553694039583, 0.012833314016461372, 0.04465403035283089, 0.03868095576763153, -0.021144915372133255, -0.03713217005133629, -0.027887148782610893, -0.03924904763698578, -0.07863248884677887, 0.03936503455042839, 0.012655258178710938, -0.04563198611140251, 0.029887035489082336, 0.015501298010349274, -0.008851524442434311, 0.0131066357716918, -0.011522351764142513, -0.0060239131562411785, -0.025626439601182938, -0.020097950473427773, -0.044391781091690063, -0.015085375867784023, 0.03137270733714104, 0.033833231776952744, -0.08195427805185318, 0.00991931464523077, 0.004480893723666668, -0.002485881559550762, -0.021458595991134644, 0.007379763759672642, -0.03583215922117233, -0.02599528431892395, -0.026823069900274277, 0.004382813349366188, -0.07286490499973297, 0.0675136148929596, 0.028016287833452225, -0.009559678845107555, -0.0182308591902256, 0.02514773979783058, 0.05257561057806015, 0.00829414650797844, -0.026378262788057327, 0.07568176835775375, -0.0006591517594642937, 0.044695835560560226, 0.0012165212538093328, 0.06447066366672516, 0.01882524974644184, -0.05617325007915497, -0.020556651055812836, 0.05831083655357361, -0.025167150422930717, 0.0022998361382633448, 0.0018631244311109185, -0.0168803371489048, 0.013671339489519596, 0.007044493220746517, 0.016878219321370125, 0.025184927508234978, 0.016469214111566544, -0.029670897871255875, 0.01418987661600113, 0.02237009070813656, 0.03555331751704216, -0.010041446425020695, 0.00006235191540326923, -0.04446813836693764, -0.043202806264162064, 0.0251839030534029, 0.0021079941652715206, 0.02040751650929451, 0.04273958131670952, -0.02279398776590824, 0.018932778388261795, 0.06242009624838829, 0.05008462816476822, 0.004020820837467909, 0.01657911203801632, 0.0021391292102634907, 0.04078274220228195, 0.03281984105706215, 0.009032550267875195, 0.033425815403461456, 0.026002611964941025, -0.026551077142357826, 0.003946155309677124, 0.058307331055402756, -0.05547509714961052, -0.01021028496325016, -0.047931965440511703, -0.041475601494312286, 0.04558607563376427, -0.0196376945823431, -0.02827094867825508, 0.05359727144241333, 0.07486337423324585, 0.041411034762859344, 0.034449461847543716, -0.011631176806986332, -0.07712340354919434, 0.040087778121232986, 0.008222080767154694, 0.00938655249774456, 0.03257592394948006, -0.015860918909311295, 0.09290041774511337, -0.0014289210084825754, 0.03632090985774994, 0.03395302966237068, -0.05493512377142906, -0.060070935636758804, -0.03248157352209091, -0.016088517382740974, 0.05821936950087547, -0.039327044039964676, -0.011285627260804176, 0.04729771986603737, 0.025528350844979286, 0.007021280936896801, -0.007599585223942995, -0.002984864404425025, 0.009695631451904774, -0.024609223008155823, -0.07778418064117432, 0.014829820953309536, 0.05152605473995209, -0.02108871191740036, -0.038281362503767014, 0.017120247706770897, -0.02645854465663433, -0.03389443829655647, 0.037924330681562424, -0.014487026259303093, 0.030181825160980225, 0.015132244676351547, 0.03462772071361542, -0.01770545169711113, 0.03188629075884819, -0.05195107311010361, -0.011538970284163952, 0.004005782771855593, -0.0012781259138137102, -0.04410716891288757, 0.019198864698410034, 0.12844103574752808, 0.07343622297048569, -0.03871491551399231, -0.0595182366669178, 0.005501152947545052, -0.023483801633119583, -0.05060479789972305, 0.04928627610206604, -0.01027728896588087, -0.039589256048202515, -0.0017507632728666067, -0.03657569736242294, -0.046197559684515, 0.012154150754213333, -0.06211806461215019, -0.005357723217457533, 0.07588931173086166, -0.016102368012070656, 0.07716011255979538, 0.003256515134125948, -0.007856949232518673, 0.0245725829154253, -0.01891379989683628, -0.05783487856388092, 0.010194431059062481, 0.019320663064718246, -0.011588999070227146, 0.02584231272339821, -0.0017601611325517297, -0.036671530455350876, -0.013550534844398499, -0.06113475188612938, 0.0200190432369709, 0.04699007794260979, 0.04478195682168007, -0.0016372520476579666, 0.00007241811545100063, -0.014283725991845131, -0.000048596393753541633, 0.0073167383670806885, -0.04494976997375488, -0.023145271465182304, -0.014324072748422623, 0.030404197052121162, 0.014828842133283615, 0.01418249774724245, 0.007286739069968462, 0.02058517374098301, -0.02099536545574665, 0.027639338746666908, -0.02009628713130951, 0.05135991424322128, 0.0036951713263988495, -0.020058168098330498, -0.04593360424041748, 0.002918372629210353, 0.06936542689800262, -0.03725983574986458, -0.034224845468997955, -0.0018412689678370953, -0.06482505053281784, 0.03426920622587204, -0.05143193155527115, -0.015088550746440887, -0.019218089058995247, 0.00029041472589597106, 0.057426903396844864, 0.024945883080363274, -0.01589578203856945, 0.02082264982163906, 0.012107825838029385, 0.01527249626815319, 0.03084859624505043, -0.016824236139655113, 0.038980431854724884, 0.017533402889966965, 0.011261094361543655, 0.03574148193001747, 0.0037020896561443806, 0.019317202270030975, -0.0334957093000412, 0.01973642222583294, -0.014882088638842106, -0.27770140767097473, 0.030154023319482803, 0.00944454874843359, -0.03944560885429382, 0.024352962151169777, -0.03897491842508316, -0.0051209889352321625, -0.04217930883169174, -0.00802487600594759, 0.019289720803499222, -0.010805304162204266, -0.03674669563770294, -0.03161220625042915, 0.042049746960401535, 0.04583311080932617, -0.007117359433323145, 0.018081240355968475, -0.027251169085502625, 0.028185058385133743, 0.05993711203336716, 0.0006125902873463929, -0.05149339139461517, 0.002785212593153119, 0.023860756307840347, 0.03317467123270035, 0.05756878852844238, -0.05479783937335014, 0.03267128765583038, -0.06715834140777588, -0.024667348712682724, 0.006950009614229202, -0.02280600368976593, -0.0175100639462471, 0.02136423997581005, -0.0031641884706914425, -0.03188534080982208, 0.04346579313278198, 0.005332034546881914, 0.0018567447550594807, 0.018320357427001, -0.02801869995892048, -0.03125140815973282, -0.01072037871927023, 0.0029467917047441006, 0.0985800251364708, -0.013282627798616886, -0.07265304774045944, 0.008874354884028435, -0.05038955435156822, 0.0759919211268425, -0.04422147944569588, 0.007522118277847767, -0.041476815938949585, 0.039831917732954025, -0.03285340964794159, 0.005374510306864977, -0.0009748488082550466, 0.027581870555877686, -0.061961837112903595, -0.04870431497693062, -0.0024547225330024958, -0.01585187390446663, -0.011069674976170063, -0.03381577506661415, -0.0046400828287005424, -0.08067453652620316, -0.048230309039354324, -0.04016052186489105, 0.045035652816295624, 0.025338957086205482, -0.05066441744565964, -0.046969663351774216, -0.02865285985171795, -0.09604635834693909, 0.0008880437235347927, -0.0077951704151928425, -0.00213239504955709, 0.00284092640504241, -0.011113991029560566, 0.04630912095308304, -0.042991336435079575, -0.07665055245161057, 0.052978187799453735, 0.018150566145777702, 0.012529270723462105, -0.009583811275660992, 0.005611203610897064, 0.010263200849294662, -0.015639686957001686, -0.026116054505109787, 0.06350501626729965, -0.017873911187052727, 0.004314115736633539, 0.009381073527038097, -0.016728930175304413, 0.026945866644382477, 0.061244476586580276, 0.02217632159590721, 0.01934785023331642, 0.04130657762289047, 0.010372164659202099, -0.07562089711427689, -0.003158082254230976, -0.03715480864048004, -0.02941920980811119, 0.009447787888348103, -0.04626704007387161, 0.00839058868587017, 0.015600337646901608, -0.01802915707230568, -0.0016130037838593125, -0.04233086109161377, 0.03968677297234535, -0.032232966274023056, 0.008724924176931381, -0.03755210340023041, 0.024886615574359894, 0.03374917060136795, 0.003143639536574483, 0.000466404773760587, -0.0774519070982933, 0.01344984583556652, -0.01620389334857464, -0.01736961118876934, -0.0587754100561142, -0.0313967801630497, 0.03098261170089245, -0.026338133960962296, -0.004934376571327448, -0.011852461844682693, -0.0283957626670599, 0.05083812400698662, 0.03576863184571266, -0.048106975853443146, 0.022491179406642914, -0.0011946464655920863, -0.03343896567821503, -0.03307875245809555, 0.011663137003779411, 0.02022741176187992, 0.015506736002862453, 0.00630231574177742, 0.007794585078954697, 0.002562104258686304, 0.07601851224899292, -0.014297389425337315, 0.029758188873529434, -0.02863442525267601, 0.0029179537668824196, 0.03377663716673851, -0.004257391672581434, -0.01686129905283451, 0.005379257258027792, -0.024982556700706482, -0.0385151207447052, -0.013793238438665867, 0.01054611150175333, -0.025241071358323097, -0.03224300965666771, -0.03836090862751007, -0.0034138511400669813, -0.030806943774223328, -0.04459080845117569, -0.03167375549674034, 0.005870852619409561, 0.03879412263631821, 0.0000366348831448704, 0.02278812788426876, 0.021841708570718765, 0.018613697960972786, 0.035658080130815506, 0.0070330980233848095, -0.016422729939222336, -0.003811528207734227, -0.038907695561647415, -0.010222161188721657, 0.027254771441221237, 0.0022880726028233767, -0.006961773615330458, 0.013546934351325035, -0.02225331962108612, -0.024233004078269005, 0.011563987471163273, -0.000610875606071204, 0.036026470363140106, 0.04298071563243866, -0.05466511473059654, -0.025182276964187622, -0.03854532539844513, -0.01565554551780224, -0.0399046316742897, -0.007929608225822449, -0.0294218510389328, 0.01613791286945343, -0.03518915921449661, -0.07451263815164566, -0.008421635255217552, 0.0008369132410734892, 0.012332732789218426, 0.009336672723293304, -0.009725234471261501, -0.005980118177831173, -0.02547908015549183, 0.010924472473561764, 0.07987561076879501, -0.06490427255630493, 0.016772400587797165, -0.0048726690001785755, -0.001967452000826597, -0.01122500654309988, 0.023625733330845833, -0.05972769856452942, -0.029505888000130653, 0.004845597315579653, 0.022248223423957825, -0.015839634463191032, -0.03276072070002556, -0.04778119921684265, 0.008486920036375523, -0.021106891334056854, -0.009922864846885204, -0.02013644389808178, -0.005029736552387476, -0.039635781198740005, 0.0020024986006319523, 0.012369820848107338, -0.002294883131980896, -0.015285460278391838, 0.043197039514780045, -0.008022251538932323, 0.04107224941253662, -0.026767177507281303, 0.023599974811077118, 0.04028661176562309, -0.006842151749879122, -0.003982513677328825, -0.05574003979563713, 0.0006108295056037605, 0.02208096720278263, 0.029652411118149757, -0.008939677849411964, 0.01892826333642006, -0.032083261758089066, -0.000253205158514902, -0.00421712314710021, -0.0037693132180720568, -0.024390270933508873, -0.011043074540793896, 0.02173762582242489, 0.03962928056716919, -0.02290695533156395, -0.017518138512969017, -0.003980147186666727, -0.014774374663829803, 0.062299735844135284, -0.04489167407155037, -0.03360208496451378, -0.0057793776504695415, -0.04886375740170479, 0.03756692260503769, 0.022991003468632698, 0.02415004000067711, -0.061158858239650726, 0.0556485690176487, 0.04292953386902809, 0.02365231141448021, 0.057083215564489365, 0.0033908330369740725, 0.03497590497136116, -0.024784304201602936, 0.0022037760354578495, -0.08967293053865433, -0.011085698381066322, 0.0315052755177021, -0.004559020511806011, -0.029326464980840683, 0.023349186405539513, -0.02523910254240036, 0.022638831287622452, -0.07895985245704651, -0.020120052620768547, 0.050518643110990524, 0.007050376385450363, 0.003936842083930969, 0.01898876018822193, -0.0522814579308033, 0.045804932713508606, 0.03880545496940613, -0.04879214987158775, 0.0031446916982531548, -0.005778009537607431, 0.06666490435600281, -0.003769209375604987, 0.019242174923419952, -0.01553822960704565, -0.0037116517778486013, 0.07265245169401169, 0.03928438574075699, 0.02220298908650875, 0.05547526851296425, -0.01933882012963295, 0.04884748533368111, 0.013197964988648891, 0.008104593493044376, 0.019350310787558556, 0.0371408611536026, 0.012227247469127178, -0.053452033549547195, 0.036822762340307236, 0.018388081341981888, -0.001993652665987611, -0.07320491969585419, 0.05557675659656525, -0.0021927624475210905, -0.02672722563147545, -0.0619904063642025, 0.020560838282108307, -0.033248793333768845, 0.010458946228027344, -0.030978448688983917, -0.02323104441165924, -0.028841130435466766, 0.07895425707101822, -0.02403918094933033, -0.018592489883303642, 0.06353424489498138, -0.01576678454875946, 0.0035654730163514614, 0.022402124479413033, 0.07971537113189697, 0.08977924287319183, 0.045867662876844406, 0.020709024742245674, 0.08205779641866684, -0.02150844596326351, -0.05672970414161682, -0.016675952821969986, -0.028910066932439804, -0.013082839548587799, -0.029200255870819092, 0.04087097570300102, 0.05703281611204147, 0.01486013550311327, 0.06170648708939552, -0.04006706550717354, 0.0037514783907681704, 0.00597608694806695, 0.03497403860092163, 0.0004047550028190017, 0.056493062525987625, 0.0009361122502014041, 0.019085051491856575, -0.0033391951583325863, -0.016521509736776352, 0.0288357175886631, -0.01401580311357975, -0.02033727429807186, 0.001113256555981934, -0.024541590362787247, 0.0015082446625456214, 0.027850758284330368, 0.04311611130833626, 0.09629906713962555, -0.028010332956910133, -0.03662756457924843, 0.0010285682510584593, 0.04156883433461189, 0.022184977307915688, -0.012812159955501556, -0.0063058459199965, -0.012879698537290096, -0.03328756242990494, -0.007719169370830059, -0.010549759492278099, -0.04885734245181084, 0.006579120177775621, 0.02246616594493389, -0.023662790656089783, -0.011339536868035793, 0.03738420456647873, -0.02128148078918457, -0.06134077161550522, -0.03256634622812271, -0.041764069348573685, -0.04814867675304413, -0.06150490418076515, -0.012955336831510067, -0.00015134642308112234, -0.0003429200442042202, -0.040075305849313736, -0.009613646194338799, -0.0019091529538854957, -0.016699770465493202, 0.0032039720099419355, -0.053706590086221695, -0.030514158308506012, 0.019616611301898956, 0.03585848957300186, -0.013056515716016293, 0.00625827768817544, 0.054312318563461304, -0.005410266574472189, -0.04647199437022209, -0.013748045079410076, 0.010783051140606403, 0.03254127502441406, 0.0331554189324379, 0.03636963665485382, -0.07036655396223068, -0.008458631113171577, 0.027934499084949493, -0.022246014326810837, -0.07501744478940964, 0.028245635330677032, 0.04460231587290764, 0.008824302814900875, 0.04649052023887634, -0.0018899273127317429, -0.0015051800291985273, -0.04231416434049606, -0.0022189521696418524, -0.013743501156568527, 0.017956707626581192, 0.05483337119221687, -0.061834800988435745, 0.08351943641901016, 0.022316569462418556, -0.003479923587292433, -0.04230432212352753, -0.011432028375566006, -0.02643703855574131, 0.006064391694962978, -0.045654792338609695, -0.0009430989157408476, -0.03478773683309555, -0.08351695537567139, -0.00016571518790442497, 0.03891746327280998, -0.03580702841281891, -0.03072141855955124, -0.005253015551716089, 0.009949213825166225, -0.0037671830505132675, 0.04794307053089142, -0.02823372557759285, 0.021817469969391823, -0.017727740108966827, 0.005576601251959801, 0.005209443159401417, 0.04635448381304741, 0.00622776011005044, 0.03631711006164551, 0.01665712706744671, -0.032193079590797424, -0.007286168169230223, -0.0184482391923666, 0.038721662014722824, 0.01660812832415104, 0.016664786264300346, 0.04305136576294899 ]
[ -0.06905823200941086, -0.03453074395656586, -0.031017698347568512, -0.0007439324981532991, 0.048284441232681274, -0.00938974879682064, -0.014552664011716843, 0.011546940542757511, 0.006631890777498484, 0.02027222327888012, 0.03041023574769497, -0.08110778033733368, 0.008659923449158669, -0.0007652752683497965, 0.016331201419234276, 0.01462238933891058, -0.010000624693930149, -0.05701039731502533, -0.01940644159913063, 0.012021945789456367, 0.051015425473451614, -0.031903836876153946, -0.00925765372812748, -0.056546468287706375, 0.0508737750351429, 0.03630774840712547, -0.011754491366446018, -0.023937508463859558, -0.016916340216994286, -0.2259289026260376, -0.011045381426811218, -0.007636872585862875, 0.06652238965034485, -0.02970263361930847, -0.014256589114665985, 0.0272202268242836, 0.022075334563851357, 0.03182228282094002, 0.016562750563025475, 0.038291312754154205, 0.017294641584157944, 0.0060792225413024426, -0.029423795640468597, -0.021069174632430077, 0.048813771456480026, -0.003130306489765644, -0.021627141162753105, 0.003942748997360468, -0.0035130600444972515, 0.043470267206430435, -0.04034392163157463, -0.025701725855469704, -0.04304279386997223, 0.0002500954142306, -0.004796344321221113, 0.0024383491836488247, 0.07073516398668289, 0.026173971593379974, 0.07199521362781525, 0.024440757930278778, 0.011848042719066143, 0.009138246066868305, -0.1264941394329071, 0.07251205295324326, 0.022786034271121025, 0.045307815074920654, -0.03920762985944748, -0.03240588679909706, -0.01969146728515625, 0.049905113875865936, -0.00870367418974638, -0.027613211423158646, -0.015465758740901947, 0.046328235417604446, 0.02701825462281704, -0.05791546404361725, 0.006077001336961985, -0.002871749922633171, 0.03666537627577782, -0.018242033198475838, -0.07385586202144623, 0.011737552471458912, -0.02818189561367035, -0.004406443797051907, 0.011355932801961899, 0.01883881911635399, 0.0004945285618305206, 0.0508851557970047, -0.0026997097302228212, 0.029648922383785248, 0.04351508244872093, 0.039843376725912094, -0.015226341784000397, 0.021392133086919785, -0.054996103048324585, -0.023485280573368073, -0.002079457975924015, -0.031003201380372047, -0.02766973339021206, 0.3947664201259613, -0.050437167286872864, -0.015685321763157845, 0.03302398696541786, 0.026067420840263367, 0.019680315628647804, -0.04924893006682396, 0.012088874354958534, -0.04637184739112854, 0.00028739613480865955, -0.02478599362075329, 0.006109507754445076, -0.003937460016459227, 0.03446270897984505, -0.050005268305540085, 0.014370495453476906, 0.001697833533398807, 0.015330745838582516, -0.004301622975617647, 0.028067974373698235, -0.001388148171827197, 0.0005441932007670403, 0.04266659542918205, 0.04998939111828804, -0.003368521574884653, 0.05431123077869415, 0.05485120415687561, -0.006858259439468384, 0.06994887441396713, 0.02752406895160675, -0.0076057519763708115, 0.050274014472961426, -0.03317127004265785, -0.10498417913913727, 0.01760604791343212, -0.007403737865388393, -0.004441078286617994, 0.039283450692892075, -0.0057344865053892136, 0.023073600605130196, 0.039356209337711334, -0.014675703831017017, -0.018935006111860275, 0.047181423753499985, 0.00718663539737463, -0.038215380162000656, 0.09488260000944138, -0.039160508662462234, 0.017323331907391548, -0.010120315477252007, -0.04115362465381622, -0.0006483187316916883, -0.0008497805101796985, -0.02923208847641945, -0.04795387014746666, 0.014407794922590256, 0.01752910017967224, 0.046021029353141785, -0.008092486299574375, -0.04605107381939888, -0.01597653143107891, -0.07220612466335297, -0.0513044111430645, -0.04213762655854225, 0.03604482114315033, 0.03612295538187027, -0.08503703027963638, -0.03160174563527107, 0.045508868992328644, -0.02984284795820713, -0.05394984409213066, 0.02910746820271015, 0.022517772391438484, -0.054264239966869354, -0.0009850460337474942, 0.030946897342801094, 0.0003489893861114979, -0.038828521966934204, 0.0038909309078007936, 0.07237540185451508, -0.017845869064331055, 0.008585825562477112, 0.024882936850190163, -0.04669623821973801, 0.0017084111459553242, -0.061082541942596436, -0.02094454877078533, -0.05721493065357208, -0.014894997701048851, -0.02038385160267353, -0.02925296314060688, 0.02127876691520214, -0.06822995841503143, -0.02999235689640045, 0.05914963409304619, -0.02223985269665718, 0.002218915382400155, 0.02412540465593338, -0.0022770091891288757, -0.019386548548936844, -0.01569318026304245, 0.0008587760385125875, -0.0011429686564952135, -0.015375415794551373, -0.0005013954360038042, -0.024602927267551422, 0.0706585943698883, 0.06497122347354889, -0.02135225012898445, 0.0893290564417839, 0.04461527615785599, -0.03008905239403248, -0.0430004708468914, -0.020621282979846, 0.04695481061935425, -0.0457424595952034, 0.017674645408988, 0.0002691432891879231, -0.013304129242897034, 0.006027039140462875, 0.03640329837799072, -0.016275128349661827, -0.05807190760970116, -0.0659874901175499, -0.38248810172080994, -0.012016940861940384, 0.011335053481161594, 0.012693755328655243, 0.04613257199525833, -0.07644378393888474, 0.015058929100632668, -0.021139420568943024, 0.014737645164132118, 0.05067979544401169, 0.08617018163204193, 0.011956523172557354, 0.01529355626553297, -0.09785973280668259, -0.00567798875272274, 0.023501962423324585, -0.06302150338888168, -0.03727716580033302, -0.04831826314330101, -0.018895631656050682, 0.0032263481989502907, 0.03856688365340233, -0.03884321078658104, -0.06387785077095032, 0.022534791380167007, -0.028652997687458992, 0.12104913592338562, -0.011261342093348503, 0.05479691922664642, -0.06411775946617126, 0.001534800510853529, -0.02678026631474495, -0.029982248321175575, -0.02507632225751877, 0.023345796391367912, -0.041698429733514786, 0.015613742172718048, 0.021308645606040955, -0.019986266270279884, -0.05081811174750328, -0.034059543162584305, 0.017888372763991356, -0.03786664828658104, -0.034149859100580215, -0.06682811677455902, 0.02966390922665596, 0.003991309553384781, 0.01680401898920536, -0.02775067649781704, 0.07592260837554932, 0.005992370657622814, 0.023019278421998024, 0.04247915372252464, -0.019747089594602585, -0.015481006354093552, -0.01826620101928711, -0.10618580877780914, 0.006906592752784491, 0.000778601854108274, 0.010561083443462849, 0.034147411584854126, 0.0021830762270838022, 0.040864113718271255, -0.08277015388011932, -0.034612685441970825, -0.007310736924409866, 0.022410470992326736, -0.002285850467160344, 0.045404259115457535, -0.009125039912760258, -0.02111995592713356, 0.07496081292629242, 0.006065812427550554, 0.020159132778644562, 0.05903094261884689, 0.05944497510790825, 0.017424793913960457, 0.03406783193349838, 0.020276719704270363, 0.006819537375122309, 0.02332318015396595, 0.033652327954769135, 0.030379045754671097, -0.020138878375291824, 0.0007982765673659742, -0.03805670514702797, -0.03768030181527138, 0.0048104156740009785, 0.05593842640519142, 0.023321619257330894, -0.020498747006058693, -0.010115374810993671, 0.005382771138101816, -0.029395554214715958, 0.03905336186289787, 0.024999205023050308, -0.27068179845809937, 0.009899950586259365, 0.02975468710064888, 0.08815594762563705, -0.00327716744504869, -0.022748718038201332, 0.08694320917129517, -0.033893804997205734, -0.02870856411755085, -0.021775629371404648, -0.016342392191290855, 0.05021786317229271, 0.031191159039735794, 0.002393311122432351, -0.00610547186806798, -0.053606074303388596, 0.051221515983343124, -0.016441384330391884, 0.0512382797896862, 0.020597193390130997, 0.04964671656489372, -0.03343304246664047, 0.17493169009685516, 0.037821270525455475, 0.005544207990169525, 0.02121017687022686, 0.004291216377168894, -0.0384356714785099, 0.02084304578602314, -0.013701793737709522, 0.031115824356675148, 0.025250136852264404, 0.030311578884720802, 0.03762579336762428, 0.05776989087462425, 0.02007022313773632, -0.04204309731721878, 0.027292538434267044, -0.003918116446584463, -0.041388172656297684, 0.02576853334903717, 0.023429732769727707, -0.05315754935145378, 0.03623288869857788, 0.09766896814107895, 0.017100626602768898, 0.03346001356840134, -0.03357812389731407, -0.027111008763313293, -0.008580771274864674, -0.054181452840566635, -0.009427621960639954, -0.0017909532180055976, -0.018419299274683, 0.008262754417955875, 0.023429572582244873, 0.05565902963280678, 0.019149668514728546, 0.019596610218286514, -0.027229612693190575, -0.00858126487582922, -0.04558384418487549, 0.11828763782978058, 0.010126396082341671, -0.011923148296773434 ]
[ 0.01240459457039833, 0.01117958128452301, -0.014714215882122517, 0.008702337741851807, -0.015586523339152336, 0.0174655020236969, 0.017387455329298973, 0.009886977262794971, -0.0317743681371212, -0.01232968457043171, -0.01696460135281086, 0.030953824520111084, 0.031158022582530975, -0.011299734003841877, -0.003321124007925391, 0.010969612747430801, 0.0405460000038147, -0.016646964475512505, 0.02643413655459881, -0.003639180213212967, -0.02086583524942398, 0.02175530605018139, 0.004728720057755709, 0.008878853172063828, 0.018006645143032074, 0.014012659899890423, -0.0057847946882247925, 0.0274438988417387, 0.024929923936724663, -0.12646161019802094, -0.03812732174992561, -0.04989731311798096, 0.023127153515815735, -0.024695279076695442, -0.02827269770205021, -0.013103009201586246, -0.029225535690784454, -0.005398486740887165, -0.010779946111142635, 0.02648644894361496, 0.0144581887871027, 0.02435554377734661, 0.008633770048618317, 0.018683355301618576, -0.00821098405867815, -0.017938071861863136, -0.03680150955915451, -0.04864910989999771, 0.016649464145302773, 0.014035847969353199, -0.07205309718847275, -0.013933577574789524, -0.007437325082719326, -0.0089566083624959, 0.003546836320310831, 0.0043508196249604225, -0.013763410970568657, -0.023784345015883446, 0.004868203308433294, -0.0033007715828716755, 0.004570185672491789, -0.011433194391429424, -0.03689434006810188, -0.030621811747550964, 0.007008473854511976, -0.0034203906543552876, -0.02565009519457817, 0.017805198207497597, -0.025752337649464607, 0.034280482679605484, 0.0025297945830971003, 0.01134779304265976, -0.030196305364370346, -0.024325130507349968, -0.014841202646493912, 0.009026614017784595, -0.01707512140274048, -0.03167901188135147, 0.011225567199289799, 0.004694634582847357, -0.05102620646357536, 0.012881738133728504, 0.012448486872017384, 0.0021586075890809298, -0.013566937297582626, -0.03895539045333862, -0.004421202931553125, 0.00951371993869543, 0.009758059866726398, 0.013999775052070618, -0.03507014364004135, 0.004314355086535215, -0.03560822829604149, 0.00905539095401764, -0.08926159143447876, 0.011452974751591682, 0.011171533726155758, -0.030270786955952644, -0.016787515953183174, 0.8570335507392883, -0.0018204165389761329, -0.007566636893898249, 0.035551391541957855, 0.011326741427183151, -0.004963650368154049, 0.012783098965883255, 0.03304571285843849, -0.032578300684690475, -0.023398365825414658, -0.05548958480358124, -0.006216708105057478, 0.013346442952752113, 0.0199112631380558, 0.039849720895290375, 0.03672626242041588, 0.03711691126227379, -0.0012024356983602047, 0.026114771142601967, -0.017028653994202614, 0.0070320311933755875, 0.007355873938649893, 0.005632444750517607, 0.00615620007738471, 0.017937125638127327, 0.00673784501850605, -0.14549030363559723, 0.014918694272637367, -7.05639487501828e-33, 0.05034833401441574, -0.026640785858035088, 0.021974962204694748, 0.014299686998128891, -0.003830574220046401, 0.046115633100271225, -0.00424586096778512, -0.03136173263192177, -0.021697551012039185, -0.023702459409832954, 0.025889849290251732, 0.018458763137459755, -0.0043876455165445805, -0.0010689041810110211, 0.06379939615726471, 0.008902334608137608, 0.022410880774259567, 0.04634140059351921, -0.018002457916736603, 0.017974872142076492, 0.04784321412444115, 0.028872773051261902, -0.0018135133432224393, 0.02766433358192444, -0.035003550350666046, 0.029827823862433434, 0.004537252709269524, 0.0009999873582273722, -0.021362949162721634, -0.04316900297999382, -0.028139596804976463, 0.05135471001267433, -0.00952409952878952, -0.060118597000837326, 0.036188721656799316, -0.051625438034534454, -0.026659345254302025, 0.010542712174355984, 0.011549144983291626, -0.01839255914092064, -0.022942885756492615, 0.007636618800461292, -0.010886267758905888, 0.0018405537120997906, -0.04075320437550545, 0.017979323863983154, -0.025744516402482986, 0.01078825443983078, 0.01767951063811779, -0.0008798809139989316, -0.00834749173372984, 0.0007340654265135527, 0.019309258088469505, 0.026937361806631088, -0.00588251743465662, 0.02524532750248909, 0.002867505419999361, 0.024078328162431717, -0.025859763845801353, -0.030086107552051544, 0.027717797085642815, -0.006512159015983343, 0.013805892318487167, 0.004374085459858179, 0.004183577839285135, 0.020543446764349937, 0.03862269967794418, -0.0024611856788396835, 0.0007696431712247431, -0.01038498617708683, -0.044422250241041183, 0.014489672146737576, -0.03677113726735115, -0.01301681436598301, 0.0013086688704788685, -0.031903404742479324, -0.00558202201500535, -0.004263691604137421, 0.00557146267965436, 0.010021677240729332, -0.011809519492089748, -0.01239775586873293, -0.03112129122018814, -0.06485357880592346, -0.005683575756847858, 0.010985853150486946, 0.03407645598053932, -0.0045098960399627686, -0.008013189770281315, 0.00035382757778279483, 0.03249448165297508, 0.007374901324510574, 0.0113649507984519, 0.0028805325273424387, -0.05769867077469826, 7.381605672748835e-33, -0.011844956316053867, 0.007094176951795816, -0.008294775150716305, 0.01917262002825737, 0.012664067558944225, -0.01697332039475441, 0.007958278991281986, -0.021580824628472328, -0.0244753360748291, 0.03685230761766434, -0.040717534720897675, -0.032383937388658524, -0.008454767987132072, 0.017387622967362404, 0.0621538870036602, 0.010180572979152203, 0.003985182847827673, 0.02113250643014908, -0.02479291707277298, -0.04218712076544762, 0.0014097326202318072, 0.005082906689494848, -0.0013243434950709343, -0.004778546746820211, 0.009986181743443012, 0.04311676695942879, -0.0031498270109295845, 0.0028382965829223394, -0.003954621031880379, 0.018746893852949142, -0.02028876729309559, -0.0003883190220221877, -0.010440925136208534, -0.023268917575478554, -0.01090078242123127, 0.027874376624822617, 0.013140550814568996, -0.027728211134672165, -0.009104359894990921, 0.002247776370495558, 0.03407930210232735, -0.008218535222113132, -0.017587898299098015, 0.037721604108810425, 0.006768084596842527, -0.002144303871318698, -0.021258695051074028, 0.005587801802903414, -0.006741846911609173, 0.015572866424918175, -0.02007366716861725, 0.024663740769028664, 0.004185136407613754, 0.04545799270272255, -0.008392572402954102, -0.02368231676518917, -0.03724232688546181, 0.025468483567237854, -0.023601369932293892, 0.019120847806334496, -0.027716482058167458, -0.006651798728853464, -0.037501707673072815, -0.0021032525692135096, -0.016750464215874672, 0.03914107754826546, -0.022901350632309914, 0.010799621231853962, -0.014591471292078495, 0.02372204326093197, -0.019665420055389404, 0.0013934971066191792, 0.025969812646508217, 0.022337161004543304, 0.015188923105597496, 0.020316047593951225, -0.013306754641234875, 0.026157982647418976, -0.02607201412320137, 0.03762839734554291, 0.032414671033620834, 0.0015171606792137027, 0.032814040780067444, -0.006295708939433098, 0.020031549036502838, -0.013795873150229454, 0.0041002435609698296, 0.024103665724396706, 0.03742431476712227, -0.014141833409667015, 0.03138435259461403, -0.009368028491735458, 0.018761176615953445, 0.04198295250535011, 0.015444343909621239, -1.2998476961456618e-8, -0.010669342242181301, 0.012504740618169308, -0.015410886146128178, 0.033004991710186005, 0.011678284034132957, 0.02565588988363743, -0.012087607756257057, -0.0009112915140576661, -0.03339928016066551, 0.011465939693152905, 0.03285741060972214, -0.04014003649353981, -0.0023707051295787096, -0.025212060660123825, 0.03399293124675751, 0.013239843770861626, -0.0070479195564985275, 0.0030703998636454344, 0.029421266168355942, 0.004539318848401308, 0.02113415114581585, 0.008066702634096146, 0.001311922911554575, 0.03507861867547035, -0.039748433977365494, 0.020813703536987305, 0.0036205726210027933, -0.07836595922708511, -0.01665547303855419, 0.016905738040804863, 0.03969806432723999, -0.05074022710323334, 0.009693782776594162, 0.038863494992256165, -0.005734892096370459, -0.04192638769745827, 0.00848403014242649, -0.0008055980433709919, 0.029875807464122772, 0.019799308851361275, -0.03700703755021095, 0.016509033739566803, -0.025913875550031662, -0.028099453076720238, -0.007771010044962168, 0.03305159509181976, -0.05143972113728523, -0.02255290560424328, 0.04191708564758301, -0.01011903490871191, -0.03162328526377678, -0.018407905474305153, 0.015188407152891159, 0.02821933664381504, -0.0004005812224932015, 0.0057739741168916225, 0.023567115887999535, 0.007345943711698055, -0.053907185792922974, -0.0035182274878025055, -0.008976910263299942, -0.0009212087607011199, -0.027554091066122055, -0.013579249382019043 ]
plotly-normal-distribution-average-stdev
https://markhneedham.com/blog/2023/07/19/plotly-normal-distribution-average-stdev
false
2023-07-26 04:44:37
How to delete a Kafka topic
[ "kafka", "redpanda", "til", "docker" ]
[ "TIL" ]
A few years ago I wrote a blog post showing https://www.markhneedham.com/blog/2019/05/23/deleting-kafka-topics-on-docker/[how to delete a Kafka topic when running on Docker^] and while that approach still works, I think I've now got a better way. And that's what we're going to learn about in this blog post. == Spin up Kafka Cluster We're going to spin up Kafka using the following Docker Compose file: .docker-compose.yml [source] ---- version: "3" services: zookeeper: image: zookeeper:3.8.0 hostname: zookeeper container_name: zookeeper-delete ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 kafka: image: wurstmeister/kafka:latest restart: unless-stopped container_name: "kafka-delete" ports: - "9092:9092" expose: - "9093" depends_on: - zookeeper environment: KAFKA_ZOOKEEPER_CONNECT: zookeeper-delete:2181/kafka KAFKA_BROKER_ID: 0 KAFKA_ADVERTISED_HOST_NAME: kafka-delete KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-delete:9093,OUTSIDE://localhost:9092 KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT ---- A `docker compose up` later and we're ready to go. == Installing Redpanda Keeper As with the other post, we want to create a topic called `blog-dummy`, but this time we're going to use a command line tool called https://docs.redpanda.com/docs/reference/rpk/[Redpanda Keeper^] or `rpk` for short. The name of the tool might imply that it only works with https://redpanda.com/[Redpanda^], but I was pleased to learn that it also works with Kafka as well. `rpk` can be https://docs.redpanda.com/docs/get-started/rpk-install/[installed in a variety of ways^] depending on your operating system, but I'm going to use brew since I'm using a Mac. The following command does the trick: [source, bash] ---- brew install redpanda-data/tap/redpanda ---- We can then check the version that we've installed: [source, bash] ---- rpk version ---- When I ran this initially I got the following version: .Output [source, text] ---- v23.1.8 (rev e8cf768bd) ---- Which is a little bit behind, but we can just re-run the installation command and it will update to the latest version: .Output [source, text] ---- v23.2.2 (rev 3aae933c6) ---- == Creating a topic Now that we've done that, let's create the topic: [source, bash] ---- rpk topic create blog-dummy -p5 ---- This creates a topic with 5 partitions and if we run the command, we'll see the following output: .Output [source, text] ---- TOPIC STATUS blog-dummy OK ---- We can list all the topics in Kafka using the following command: [source, bash] ---- rpk topic list ---- .Output [source, text] ---- NAME PARTITIONS REPLICAS blog-dummy 5 1 ---- There's our topic! == Describing a topic We can also describe the topic: [source, bash] ---- rpk topic describe blog-dummy ---- .Output [source, text] ---- SUMMARY ======= NAME blog-dummy PARTITIONS 5 REPLICAS 1 CONFIGS ======= KEY VALUE SOURCE cleanup.policy delete DEFAULT_CONFIG compression.type producer DEFAULT_CONFIG delete.retention.ms 86400000 DEFAULT_CONFIG file.delete.delay.ms 60000 DEFAULT_CONFIG flush.messages 9223372036854775807 DEFAULT_CONFIG flush.ms 9223372036854775807 DEFAULT_CONFIG follower.replication.throttled.replicas DEFAULT_CONFIG index.interval.bytes 4096 DEFAULT_CONFIG leader.replication.throttled.replicas DEFAULT_CONFIG max.compaction.lag.ms 9223372036854775807 DEFAULT_CONFIG max.message.bytes 1048588 DEFAULT_CONFIG message.downconversion.enable true DEFAULT_CONFIG message.format.version 2.8-IV1 DEFAULT_CONFIG message.timestamp.difference.max.ms 9223372036854775807 DEFAULT_CONFIG message.timestamp.type CreateTime DEFAULT_CONFIG min.cleanable.dirty.ratio 0.5 DEFAULT_CONFIG min.compaction.lag.ms 0 DEFAULT_CONFIG min.insync.replicas 1 DEFAULT_CONFIG preallocate false DEFAULT_CONFIG retention.bytes -1 DEFAULT_CONFIG retention.ms 604800000 DEFAULT_CONFIG segment.bytes 1073741824 STATIC_BROKER_CONFIG segment.index.bytes 10485760 DEFAULT_CONFIG segment.jitter.ms 0 DEFAULT_CONFIG segment.ms 604800000 DEFAULT_CONFIG unclean.leader.election.enable false DEFAULT_CONFIG ---- There's a lot of information going on here, but I'm mostly interested in the offsets for each of our partitions. We can return that data by passing in the `-p` flag: [source, bash] ---- rpk topic describe blog-dummy -p ---- .Output [source, text] ---- PARTITION LEADER EPOCH REPLICAS LOG-START-OFFSET HIGH-WATERMARK 0 0 0 [0] 0 0 1 0 0 [0] 0 0 2 0 0 [0] 0 0 3 0 0 [0] 0 0 4 0 0 [0] 0 0 ---- We have no data, which is pretty much what we'd expect. == Ingesting some records Let's put some dummy data in, just for fun: [source, bash] ---- for ((i=1; i<=10; i++)) do echo '{"name": "Mark"}' | kcat -P -b localhost:9092 -t blog-dummy done ---- Let's check on the partition offsets again: [source, bash] ---- rpk topic describe blog-dummy -p ---- .Output [source, text] ---- PARTITION LEADER EPOCH REPLICAS LOG-START-OFFSET HIGH-WATERMARK 0 0 0 [0] 0 0 1 0 0 [0] 0 4 2 0 0 [0] 0 1 3 0 0 [0] 0 2 4 0 0 [0] 0 3 ---- We have data! == Deleting a topic It's time to delete that topic, which we can do with the following command: [source, bash] ---- rpk topic delete blog-dummy ---- .Output [source, text] ---- TOPIC STATUS blog-dummy OK ---- And now if we list all topics: [source, bash] ---- rpk topic list blog-dummy ---- .Output [source, text] ---- NAME PARTITIONS REPLICAS ---- It's gone!
In this post, we're going to learn how to delete a Kafka with the Redpanda Keeper CLI tool.
uploads/2023/07/kafka-delete-topic-banner.png
[ -0.006638384889811277, -0.019586695358157158, -0.010971617884933949, 0.04408234357833862, 0.09008028358221054, 0.0012482558377087116, 0.008450989611446857, 0.06056179851293564, -0.012919529341161251, -0.003622740041464567, -0.003636571578681469, 0.0046001579612493515, -0.06009488180279732, 0.032580044120550156, 0.005685009062290192, 0.04521067067980766, 0.05374778434634209, 0.0028634059708565474, 0.013864564709365368, 0.02786502242088318, 0.02997499518096447, 0.047892015427351, 0.017153846099972725, 0.043310005217790604, 0.02992423251271248, 0.008000035770237446, 0.014027107506990433, 0.01346432976424694, -0.04004128277301788, -0.023029161617159843, 0.04596978425979614, 0.015758614987134933, 0.003513801610097289, 0.0042838845402002335, 0.04028211906552315, -0.0213072020560503, -0.032680973410606384, 0.0065981303341686726, -0.0047891708090901375, 0.03153768554329872, -0.10302704572677612, 0.06008635088801384, 0.00374075910076499, 0.027141079306602478, -0.03085760399699211, 0.010196241550147533, -0.023087820038199425, 0.0036193844862282276, 0.03048141859471798, -0.008806157857179642, -0.09267662465572357, 0.01389403734356165, -0.019241712987422943, 0.01763700321316719, -0.006039139814674854, 0.0397050604224205, 0.012048249132931232, -0.07364439219236374, 0.01382180955260992, -0.008023357950150967, -0.018755417317152023, -0.030403705313801765, 0.008436879143118858, 0.037654075771570206, 0.0027784905396401882, -0.026555228978395462, -0.004468549974262714, 0.051046572625637054, -0.024210035800933838, -0.015957370400428772, 0.003197190584614873, 0.0034913483541458845, -0.002919665537774563, -0.015004289336502552, 0.03078673966228962, -0.03130653128027916, 0.009414217434823513, 0.04806799069046974, 0.01966550573706627, 0.05495161563158035, -0.031046023592352867, -0.011736541986465454, -0.008759201504290104, 0.026927022263407707, 0.014643870294094086, -0.05121094733476639, -0.04447208717465401, -0.0019429897656664252, -0.05783891677856445, 0.048456259071826935, 0.023419473320245743, -0.0407976359128952, 0.008586031384766102, 0.007625296246260405, -0.007474070880562067, 0.024667130783200264, 0.005997426342219114, 0.020322399213910103, 0.01793965883553028, -0.005306093487888575, -0.035689495503902435, 0.02266678959131241, -0.015314609743654728, 0.033704448491334915, -0.06912358105182648, -0.0514199361205101, -0.04051239788532257, -0.013243349269032478, 0.005385763011872768, 0.02080129086971283, 0.003960845060646534, 0.030938824638724327, -0.00310946605168283, 0.012078391388058662, -0.08596539497375488, 0.0742243081331253, 0.0004384928324725479, -0.060706909745931625, 0.038486093282699585, 0.01789393275976181, 0.028214018791913986, 0.0389237217605114, 0.0015552579425275326, 0.06634069979190826, -0.008228239603340626, -0.0029780648183077574, -0.0005927821039222181, 0.053680166602134705, -0.04300163686275482, -0.05233064666390419, -0.014187196269631386, 0.060390766710042953, 0.008514842949807644, 0.018846683204174042, -0.00836419127881527, -0.010977379977703094, 0.000959055672865361, 0.021329663693904877, 0.0750507190823555, 0.062166478484869, -0.017188943922519684, -0.062355346977710724, 0.008531688712537289, 0.027127422392368317, 0.022916927933692932, -0.001457122853025794, 0.010866766795516014, -0.029584182426333427, -0.01797736994922161, 0.01386131253093481, 0.003054311964660883, 0.023622360080480576, 0.05326830595731735, -0.04641691595315933, 0.021817969158291817, 0.046784788370132446, 0.029650654643774033, -0.007804974913597107, -0.025290099903941154, 0.02186187542974949, 0.035330016165971756, 0.029042595997452736, 0.004504277370870113, 0.01979231648147106, 0.01066410169005394, -0.04360690712928772, -0.011255025863647461, 0.03355866298079491, 0.017593497410416603, -0.012252907268702984, -0.04767893999814987, -0.0494588166475296, 0.058314599096775055, -0.029152140021324158, 0.023462824523448944, 0.025090651586651802, 0.07374517619609833, 0.028222383931279182, 0.04418519511818886, 0.012737587094306946, -0.06997597217559814, 0.05864856019616127, 0.005371086299419403, 0.03220992162823677, 0.01801232248544693, -0.026902927085757256, 0.0461340993642807, 0.03312310948967934, 0.024625152349472046, 0.03120448999106884, -0.08448099344968796, -0.06415047496557236, -0.007842755876481533, 0.015089042484760284, 0.0743652880191803, -0.04374333471059799, -0.01830570586025715, 0.073753222823143, 0.029620252549648285, 0.032733142375946045, 0.004179802257567644, 0.02059660106897354, 0.01436509471386671, -0.07675357162952423, -0.08947056531906128, 0.05935105308890343, 0.007192561402916908, -0.02634618990123272, -0.0416618250310421, -0.0009533572010695934, -0.06103353574872017, -0.004498615860939026, 0.02970496378839016, -0.04820850118994713, 0.0752154216170311, 0.0064927879720926285, 0.016504572704434395, -0.027613259851932526, 0.048814576119184494, -0.025104153901338577, 0.02228904888033867, -0.003952659200876951, -0.02038092352449894, 0.026273610070347786, 0.008016065694391727, 0.10775517672300339, 0.05549498647451401, -0.02091694436967373, -0.03476332128047943, 0.05237831175327301, 0.026386482641100883, -0.017283830791711807, -0.012949331663548946, -0.015053203329443932, 0.007025444880127907, 0.0013563354732468724, -0.03388480097055435, -0.04667472839355469, 0.0029054118786007166, -0.029450342059135437, 0.020585542544722557, 0.06925612688064575, -0.020121917128562927, 0.0768781527876854, 0.014293970540165901, -0.001444486784748733, -0.004526591394096613, -0.0571695938706398, -0.09241984784603119, 0.007268654182553291, 0.01794663816690445, -0.0075256009586155415, 0.05155755579471588, -0.055954139679670334, -0.01964126154780388, -0.04177265241742134, -0.05003513768315315, 0.013602056540548801, 0.02490478940308094, 0.047753289341926575, -0.025696823373436928, 0.06530872732400894, -0.05285119265317917, 0.009552783332765102, -0.02804507687687874, -0.037423402070999146, -0.012563236057758331, -0.006026815623044968, 0.009900106117129326, 0.01586899161338806, -0.010569612495601177, 0.016566801816225052, 0.03230104595422745, -0.0017681135796010494, 0.010448207147419453, -0.0010679976548999548, 0.017893638461828232, 0.0037791780196130276, 0.021429425105452538, -0.008892175741493702, -0.04564223065972328, 0.040239375084638596, -0.05277362838387489, 0.006058643572032452, 0.024756532162427902, -0.0803079903125763, 0.045599572360515594, -0.05606910586357117, -0.0335567481815815, -0.01711936667561531, 0.0271120835095644, 0.017621997743844986, 0.028428733348846436, 0.02006000280380249, 0.05119021609425545, 0.013900998048484325, -0.02110528200864792, -0.0009669055580161512, -0.0018146183574572206, 0.04485941678285599, -0.017798062413930893, 0.01548763643950224, 0.05838147923350334, -0.0015564800705760717, -0.009865480475127697, -0.04978516697883606, 0.022649401798844337, -0.017638739198446274, -0.28069791197776794, 0.05437764152884483, 0.010249524377286434, -0.03483171388506889, 0.005144461989402771, 0.012697332538664341, 0.03107503056526184, -0.06345339119434357, -0.00897490605711937, -0.013593840412795544, -0.03931281343102455, -0.020593730732798576, 0.003501329105347395, 0.04559716954827309, -0.0060412646271288395, 0.029081610962748528, 0.006913275923579931, -0.026737332344055176, -0.015989312902092934, -0.019989922642707825, -0.04079151526093483, -0.05571052059531212, -0.003974840976297855, 0.02456129714846611, 0.041945815086364746, 0.02835739031434059, -0.07051072269678116, 0.05991506204009056, -0.026995321735739708, 0.0009840007405728102, -0.006286848336458206, -0.021907387301325798, 0.0039152721874415874, -0.021850524470210075, -0.019792670384049416, -0.0034690501634031534, 0.015497857704758644, 0.0063760848715901375, 0.00790642574429512, 0.018072759732604027, -0.01762097142636776, -0.029039543122053146, 0.001043680589646101, -0.011331034824252129, 0.07119760662317276, 0.016650395467877388, -0.06066069379448891, -0.010944201610982418, -0.021539973095059395, 0.07828864455223083, -0.024437883868813515, -0.06488370150327682, -0.0042904336005449295, 0.035089343786239624, -0.01811843179166317, -0.0010341552551835775, -0.017596915364265442, -0.023659197613596916, -0.024107307195663452, -0.03469986468553543, 0.011491713114082813, -0.03138353303074837, -0.014904223382472992, -0.06241614744067192, -0.030590500682592392, -0.054945021867752075, -0.0738462507724762, -0.007698505651205778, 0.08511480689048767, 0.02322233095765114, -0.07064183056354523, -0.008316583931446075, -0.003911934792995453, -0.10516387224197388, -0.008716274984180927, -0.028932170942425728, -0.0736444890499115, 0.001767955720424652, -0.013537551276385784, 0.053036656230688095, -0.04721368849277496, -0.030417639762163162, 0.005318164359778166, 0.021236635744571686, 0.0058964011259377, -0.04385881498456001, 0.04398545250296593, -0.007629006635397673, -0.009552253410220146, -0.003738917876034975, 0.03692471235990524, -0.026666603982448578, -0.038483746349811554, -0.027746938169002533, -0.005528917070478201, 0.04997599497437477, 0.006211459171026945, -0.00946318544447422, -0.019214119762182236, 0.06280062347650528, 0.059829726815223694, -0.041923411190509796, 0.002283514244481921, -0.036481231451034546, -0.010792174376547337, 0.009806429035961628, -0.040807850658893585, -0.010534294880926609, 0.023822685703635216, 0.024370618164539337, 0.0007251432980410755, -0.06926468014717102, 0.020434575155377388, -0.06959058344364166, -0.018899517133831978, 0.009231103584170341, 0.02150818146765232, 0.049061138182878494, 0.019005127251148224, -0.026615507900714874, -0.04544264078140259, 0.031310275197029114, -0.00765973050147295, 0.005236316937953234, -0.05310630425810814, -0.04615287855267525, 0.0242508165538311, -0.023031014949083328, 0.02033381350338459, 0.03625766187906265, -0.004527056589722633, 0.02678435482084751, 0.036174412816762924, -0.02706042118370533, 0.044528938829898834, -0.029989946633577347, -0.04042850434780121, -0.05483681336045265, 0.02085775136947632, 0.030502011999487877, -0.03234719857573509, -0.0020945973228663206, 0.001195578253827989, 0.022929882630705833, 0.031045300886034966, 0.010875324718654156, 0.034644708037376404, 0.004483923781663179, 0.022829154506325722, 0.012207684107124805, 0.008256478235125542, -0.03126593306660652, 0.01581268012523651, -0.02729199454188347, -0.0104536022990942, -0.021507149562239647, 0.046994611620903015, -0.012532047927379608, -0.014593224041163921, -0.01854597218334675, 0.0049430690705776215, -0.06916347146034241, -0.027865620329976082, -0.02920633554458618, 0.0026721921749413013, 0.04937012866139412, -0.010105110704898834, 0.02357431873679161, 0.025163698941469193, -0.046456318348646164, -0.014550711959600449, -0.010864532552659512, -0.025901038199663162, 0.022718099877238274, 0.007854802533984184, -0.01362866722047329, -0.0004453539731912315, 0.036793846637010574, 0.03662274405360222, -0.00026939480449073017, 0.0026389446575194597, -0.0032756535802036524, 0.033531248569488525, 0.002709080697968602, 0.03238610178232193, 0.05112789571285248, -0.006801726762205362, 0.0003724402340594679, -0.020858045667409897, 0.004650086630135775, -0.025607312098145485, 0.039105530828237534, -0.01260622963309288, 0.031576115638017654, -0.012900874949991703, -0.06981726735830307, 0.039723679423332214, 0.008512078784406185, 0.00995371863245964, 0.00629842933267355, -0.011074335314333439, 0.02548600174486637, -0.040416404604911804, 0.052617475390434265, 0.06694526225328445, -0.049056828022003174, 0.03084302507340908, -0.012417128309607506, 0.019227810204029083, 0.012568510137498379, 0.01837671920657158, -0.05721417814493179, -0.010934083722531796, -0.004282890819013119, 0.009318191558122635, -0.06364651769399643, -0.03119443915784359, -0.03595510497689247, 0.01836983673274517, 0.028850866481661797, 0.021796341985464096, 0.019044578075408936, -0.0036301633808761835, -0.014953053556382656, -0.04586199298501015, 0.03094445914030075, -0.015001428313553333, 0.005386531352996826, -0.018159832805395126, -0.03170579671859741, 0.014715624041855335, -0.035473328083753586, 0.04494626075029373, 0.008103126659989357, -0.03989533334970474, -0.0040464201010763645, -0.03119613789021969, -0.005785002838820219, -0.021468788385391235, 0.07372575253248215, 0.008209074847400188, -0.013139509595930576, -0.05926569923758507, -0.0004539828805718571, -0.035626187920570374, 0.005658423528075218, -0.011459589935839176, 0.03371404856443405, 0.036774832755327225, 0.015012930147349834, 0.008335131220519543, 0.015231660567224026, -0.01783805899322033, -0.05255358666181564, 0.05486191436648369, -0.060837410390377045, -0.02411303110420704, -0.01251300796866417, -0.060816921293735504, 0.000999337062239647, 0.018225250765681267, 0.045293744653463364, -0.05986158549785614, 0.046957433223724365, 0.035072777420282364, -0.003207639092579484, 0.021490566432476044, -0.003423028625547886, 0.01904592663049698, -0.0266890712082386, 0.0007885739905759692, -0.07730226218700409, 0.006330323405563831, 0.04526485875248909, -0.0019764010794460773, 0.030134759843349457, -0.0063382904045283794, -0.06810819357633591, 0.029696639627218246, -0.05869031324982643, -0.02957080490887165, 0.0340748056769371, -0.030742187052965164, -0.025225387886166573, 0.01633600704371929, -0.045226942747831345, 0.02476722002029419, 0.0009587643435224891, -0.031869616359472275, -0.03834943100810051, -0.0048347641713917255, 0.028274239972233772, -0.009739589877426624, 0.0256922896951437, -0.0074109951965510845, -0.03991693630814552, 0.09290191531181335, 0.02178768813610077, 0.014405992813408375, 0.04647349566221237, -0.021381955593824387, 0.04206634312868118, 0.013060194440186024, -0.009587149135768414, 0.02791673317551613, 0.004962699022144079, -0.03466587886214256, -0.05766419693827629, 0.03715621307492256, 0.016767824068665504, -0.011092806234955788, -0.026147669181227684, 0.0689498782157898, 0.024625929072499275, -0.046365585178136826, -0.061270374804735184, 0.03178941458463669, -0.049663394689559937, -0.011739109642803669, -0.024489592760801315, 0.03394972160458565, -0.0712999477982521, 0.032152749598026276, -0.009603512473404408, 0.002085267100483179, 0.055456917732954025, -0.007907269522547722, 0.003117223270237446, 0.011996329762041569, 0.08188887685537338, 0.09357593953609467, 0.04740680381655693, -0.0190389733761549, 0.05807977542281151, -0.03722762688994408, -0.034394409507513046, 0.009187131188809872, 0.008535635657608509, -0.03856409713625908, -0.02599484473466873, 0.034690532833337784, 0.05905155837535858, -0.026850078254938126, 0.07681071758270264, -0.01413352508097887, -0.021278826519846916, -0.013124541379511356, 0.009189162403345108, 0.012580843642354012, 0.029691630974411964, 0.003749599913135171, 0.0292196162045002, 0.012078897096216679, -0.058238908648490906, 0.024749016389250755, -0.004341316409409046, -0.04049810394644737, 0.03274914249777794, -0.01961449719965458, 0.024204842746257782, 0.027933824807405472, 0.015592380426824093, 0.06435782462358475, -0.006621180102229118, 0.008799499832093716, 0.022556122392416, 0.013460377231240273, -0.007662681862711906, -0.0008825602126307786, -0.031928759068250656, -0.013212583027780056, -0.016296226531267166, -0.026110533624887466, -0.009187083691358566, -0.026412364095449448, -0.04290933161973953, 0.0077552651055157185, -0.020249366760253906, -0.004316303879022598, 0.015190484002232552, -0.013428576290607452, -0.056132722645998, -0.048233550041913986, -0.04860476404428482, -0.051319222897291183, -0.03972543403506279, -0.02788112685084343, -0.004793793428689241, 0.009836067445576191, -0.041219562292099, -0.019067827612161636, -0.032620303332805634, -0.008864512667059898, 0.052024513483047485, -0.04910525307059288, -0.022758079692721367, 0.029110286384820938, 0.020824093371629715, -0.009305369108915329, 0.0012984136119484901, 0.06086856126785278, 0.027859531342983246, -0.01429092325270176, 0.007972653955221176, 0.016700904816389084, 0.044729869812726974, -0.02478339523077011, -0.0188218392431736, -0.06907589733600616, 0.018821947276592255, 0.03226199746131897, 0.0022231247276067734, -0.06045704707503319, 0.02236069366335869, 0.020698724314570427, 0.03363743796944618, 0.053139034658670425, -0.03415507823228836, 0.00550816161558032, -0.03152734413743019, -0.017782095819711685, -0.025371305644512177, -0.008120223879814148, 0.02551736868917942, 0.0028541209176182747, 0.07634188234806061, 0.04081527143716812, -0.016874387860298157, -0.032578110694885254, -0.015608644112944603, -0.03054950200021267, 0.013804586604237556, -0.04235129803419113, -0.0210284274071455, -0.027059338986873627, -0.062746562063694, -0.01624189503490925, 0.021887555718421936, -0.003148838644847274, -0.034931283444166183, 0.05835505574941635, 0.006868697237223387, -0.015740828588604927, 0.0015533098485320807, -0.06302173435688019, -0.002186500234529376, -0.008804875425994396, -0.009896649979054928, -0.03756527602672577, 0.00981538463383913, 0.012375535443425179, -0.05165199190378189, 0.005516294855624437, -0.037324968725442886, -0.009442003443837166, -0.005841009318828583, 0.05539130046963692, 0.05008312687277794, 0.005332026164978743, -0.022166749462485313 ]
[ -0.0672416165471077, -0.03779905289411545, 0.0032899717334657907, -0.022613124921917915, 0.068934366106987, -0.0773213803768158, -0.004269051365554333, 0.009709727950394154, -0.02009708061814308, -0.014226570725440979, 0.0028149031568318605, -0.05054592341184616, -0.008330179378390312, -0.006956698838621378, 0.08345751464366913, -0.004280751571059227, -0.02379349246621132, -0.010738984681665897, -0.05242693051695824, 0.011842923238873482, -0.0016748575726523995, -0.054787877947092056, -0.06910956650972366, -0.037673331797122955, 0.02406846173107624, 0.04066786542534828, 0.03712865710258484, -0.029106687754392624, -0.033747073262929916, -0.18312913179397583, 0.0025740312412381172, -0.041598524898290634, 0.0010590610327199101, -0.028635403141379356, 0.005728342570364475, 0.05014447495341301, 0.03313714638352394, 0.004419675096869469, 0.005414487794041634, 0.06267355382442474, 0.07316122204065323, -0.006197676528245211, -0.021715771406888962, 0.004846759140491486, 0.006352804601192474, -0.0020800651982426643, -0.016196604818105698, -0.02950158528983593, 0.03361828252673149, -0.019270485267043114, -0.04785199090838432, -0.013627664186060429, -0.05439510568976402, -0.04174140840768814, -0.009415628388524055, 0.007386133074760437, 0.07011795043945312, 0.06137058883905411, 0.027548853307962418, 0.014769762754440308, 0.03354461491107941, -0.0017200771253556013, -0.13346755504608154, 0.11354514956474304, -0.002800373127683997, 0.036015477031469345, -0.0017752471612766385, -0.023197179660201073, -0.007884969934821129, 0.05740366503596306, 0.008763150312006474, -0.02825840376317501, -0.016560280695557594, 0.06493876874446869, 0.006720188073813915, -0.002917603589594364, -0.022801797837018967, 0.04606539011001587, 0.021186035126447678, -0.026153596118092537, -0.08347911387681961, 0.008543130941689014, -0.0223704744130373, -0.0007094393949955702, -0.07495984435081482, 0.004928956273943186, -0.015912862494587898, 0.024127766489982605, -0.0022544146049767733, 0.04644560068845749, 0.027858231216669083, -0.02940323017537594, 0.11725550889968872, -0.00355295417830348, -0.11743050068616867, 0.00842064619064331, -0.04426395148038864, 0.03490283712744713, -0.048652343451976776, 0.3711777329444885, -0.008246374316513538, -0.01225085649639368, 0.02531926892697811, 0.018299054354429245, 0.014629587531089783, 0.010549928992986679, 0.0026390887796878815, -0.060128726065158844, 0.030239269137382507, -0.002726001664996147, 0.019397100433707237, -0.012512284331023693, 0.04385017231106758, -0.025837423279881477, 0.044715765863657, 0.008804356679320335, 0.055317483842372894, 0.046537917107343674, -0.044832054525613785, 0.02853555977344513, -0.014645197428762913, -0.013139993883669376, 0.04900602996349335, 0.023792073130607605, 0.05816460773348808, 0.035729821771383286, 0.025284815579652786, 0.01788465306162834, 0.023047637194395065, 0.009568452835083008, -0.008552884683012962, -0.05371991544961929, -0.05503002554178238, -0.014466432854533195, 0.009762682020664215, -0.017402881756424904, 0.030978426337242126, -0.08234433084726334, -0.026158953085541725, 0.003074215492233634, -0.046266112476587296, -0.05751432105898857, 0.03535846620798111, -0.03883381187915802, 0.007759187836199999, 0.10332654416561127, 0.015250836499035358, -0.044794052839279175, -0.0023974927607923746, -0.03707112371921539, -0.0014665862545371056, 0.06376870721578598, 0.02368103340268135, -0.06685110181570053, 0.0307132788002491, -0.00989246740937233, 0.04752570018172264, 0.016591425985097885, -0.05873699486255646, 0.018769456073641777, -0.051364123821258545, -0.08621019870042801, -0.03987251967191696, 0.012534131295979023, 0.027003739029169083, -0.09655944257974625, 0.001680665765888989, 0.00003086940705543384, 0.012288623489439487, 0.005602241959422827, -0.03066861443221569, 0.05366719514131546, 0.004631293471902609, -0.035228580236434937, 0.01943311095237732, -0.029502812772989273, 0.0171952024102211, 0.02665812335908413, 0.04587794095277786, -0.010781441815197468, -0.02272300235927105, 0.04277961701154709, -0.04490173980593681, -0.005835351999849081, -0.016653580591082573, -0.09503834694623947, -0.053585924208164215, -0.019526071846485138, -0.023922964930534363, -0.038635287433862686, -0.07677614688873291, -0.019223032519221306, 0.01261130254715681, 0.07160619646310806, 0.009977695532143116, -0.021061215549707413, 0.02200005203485489, 0.014625233598053455, 0.02143772318959236, -0.032957058399915695, -0.014207543805241585, 0.047652848064899445, -0.04518107697367668, 0.02828914299607277, -0.05840511620044708, 0.050256356596946716, 0.0315457321703434, -0.04259994626045227, 0.05446847528219223, 0.044441062957048416, -0.022065674886107445, 0.011180010624229908, -0.04673934355378151, 0.030994746834039688, -0.0044221654534339905, 0.004392221570014954, 0.008216461166739464, 0.010710651986300945, 0.015144351869821548, 0.011964095756411552, 0.01853223890066147, -0.031881220638751984, -0.019234411418437958, -0.3564574122428894, -0.02323383092880249, -0.04109467193484306, -0.014584348537027836, -0.002161503303796053, -0.08986914157867432, 0.02202017977833748, -0.009597298689186573, 0.008250100538134575, 0.0019296488026157022, 0.05956993252038956, -0.0774204432964325, 0.012450278736650944, -0.05340345576405525, 0.04223790764808655, 0.04436160624027252, -0.014963450841605663, -0.010821233503520489, -0.014350773766636848, 0.0048050591722130775, 0.01869235560297966, -0.018699444830417633, -0.002229678677394986, -0.008676189929246902, 0.02848839946091175, -0.015416857786476612, 0.10833786427974701, 0.0484699048101902, 0.09837076812982559, -0.04503653571009636, 0.047805991023778915, 0.04623027890920639, 0.03264176845550537, -0.10146048665046692, -0.03779244050383568, -0.005816833581775427, 0.0026031082961708307, -0.008635930716991425, 0.002001233631744981, -0.00517973443493247, -0.03606740012764931, 0.06192841753363609, -0.07789946347475052, -0.1089206412434578, -0.028499947860836983, 0.008661644533276558, -0.033495817333459854, 0.020175637677311897, -0.028908319771289825, 0.059492822736501694, 0.005297421012073755, 0.047100652009248734, -0.00037647492717951536, 0.024928392842411995, 0.029584942385554314, 0.02631978690624237, -0.022619502618908882, -0.044071946293115616, -0.0120930764824152, 0.04375561326742172, 0.030801305547356606, 0.07508206367492676, 0.017666395753622055, -0.05748205631971359, 0.007707444950938225, 0.028880631551146507, -0.04257061704993248, 0.05382004752755165, 0.050766006112098694, -0.059065937995910645, -0.03159864619374275, 0.09118588268756866, 0.006677097175270319, -0.0023007343988865614, 0.07527542114257812, 0.05084335431456566, -0.04004707932472229, 0.01426716335117817, -0.012315107509493828, 0.01832221820950508, 0.06125910207629204, -0.04007626697421074, 0.050225500017404556, -0.003667245153337717, 0.03260064497590065, 0.07657748460769653, -0.03297301381826401, -0.01918627694249153, 0.061616964638233185, -0.016396228224039078, -0.03812361881136894, 0.00033120918669737875, -0.02146429941058159, -0.08136041462421417, 0.07973115891218185, 0.017143307253718376, -0.23756137490272522, 0.0423053503036499, 0.06601779907941818, 0.042604994028806686, 0.0316048301756382, 0.02931584231555462, -0.009556223638355732, -0.03541925922036171, 0.016966357827186584, 0.02194375731050968, -0.0304541178047657, 0.06375358253717422, 0.0015922640450298786, -0.001717140432447195, 0.025356151163578033, -0.015288664028048515, 0.011255390010774136, 0.014176461845636368, 0.0070950984954833984, -0.005735534708946943, -0.01305519137531519, -0.03500420227646828, 0.1324414163827896, 0.05487968400120735, -0.03082628734409809, -0.007162863854318857, 0.02121410146355629, 0.04237901419401169, 0.026989426463842392, 0.020754501223564148, 0.00597388157621026, 0.004309630487114191, 0.03588785603642464, -0.010436826385557652, 0.051435112953186035, -0.0658937469124794, -0.01434013806283474, 0.013359465636312962, 0.01992962695658207, -0.05899300053715706, -0.016034578904509544, 0.055934417992830276, 0.01700764149427414, 0.016362322494387627, 0.07771655172109604, -0.048960041254758835, -0.015029373578727245, -0.06762058287858963, -0.04250438138842583, -0.03359423950314522, -0.014255430549383163, -0.06492747366428375, 0.01684059575200081, 0.010131774470210075, 0.024451611563563347, 0.06903667747974396, 0.016234567388892174, -0.03824201226234436, -0.006677581928670406, 0.00528202299028635, 0.016282888129353523, -0.020135561004281044, 0.10709571093320847, -0.01691870577633381, 0.04830225929617882 ]
[ 0.005400140769779682, -0.0015517272986471653, -0.024442236870527267, 0.03275064751505852, 0.016416124999523163, 0.004526492673903704, 0.0023409156128764153, -0.0011545714223757386, 0.007179727777838707, 0.016917245462536812, -0.01623445749282837, -0.011969354934990406, 0.002566895680502057, -0.007689428515732288, 0.012004682794213295, -0.040771372616291046, 0.0409885011613369, 0.026224786415696144, 0.007380913011729717, -0.005083868280053139, -0.05926671624183655, 0.01867862418293953, 0.01904604770243168, 0.012356530874967575, -0.03144736588001251, 0.02546817995607853, -0.04788435250520706, -0.018067654222249985, 0.010368549264967442, -0.10520593076944351, -0.01212934497743845, -0.013807780109345913, 0.024384690448641777, -0.025939416140317917, 0.04149962589144707, 0.0474524050951004, -0.014083070680499077, 0.004950425587594509, -0.01654716208577156, 0.007211537100374699, 0.0330083966255188, -0.03355660289525986, -0.002625278430059552, 0.004305862355977297, -0.02710924670100212, -0.03830692544579506, -0.08131884783506393, -0.008306778967380524, -0.010848008096218109, -0.03657583147287369, -0.0419522188603878, 0.0037436489947140217, -0.036709729582071304, 0.016312692314386368, 0.01337486319243908, 0.015767507255077362, -0.022520245984196663, -0.005381221882998943, 0.02355281077325344, 0.01280372403562069, 0.022659635171294212, 0.01721617951989174, -0.04696575179696083, -0.02697175182402134, 0.01367926225066185, -0.035296060144901276, -0.014988160692155361, 0.004493054933845997, 0.02537200227379799, 0.030321907252073288, -0.006653767544776201, 0.023960605263710022, -0.028294483199715614, -0.05155003443360329, -0.0005279268370941281, 0.027033906430006027, 0.039964016526937485, 0.004355921410024166, -0.017082804813981056, -0.001658388995565474, -0.026915544643998146, -0.0008252696716226637, 0.00043002000893466175, 0.01162638422101736, -0.0275886207818985, -0.015777423977851868, -0.037773244082927704, -0.026232358068227768, 0.052367083728313446, -0.014114627614617348, 0.0028540862258523703, 0.044517796486616135, -0.002488567028194666, -0.0325213186442852, -0.054103296250104904, -0.024231981486082077, -0.032998256385326385, -0.010433382354676723, -0.013552934862673283, 0.8064875602722168, 0.0073990304954349995, 0.01526709459722042, 0.016467086970806122, 0.012454528361558914, 0.021230796352028847, -0.02138509601354599, -0.034196604043245316, -0.029256701469421387, 0.011818851344287395, -0.010702789761126041, 0.008473429828882217, -0.0036139553412795067, 0.0006208402919583023, 0.023189257830381393, 0.020685411989688873, 0.022070573642849922, 0.04016802832484245, -0.055093374103307724, -0.02519105188548565, 0.03518029302358627, 0.048094846308231354, -0.05942705646157265, 0.011487958021461964, -0.0006324250716716051, -0.010889166034758091, -0.17673704028129578, 0.014249448664486408, -6.018359160161304e-33, 0.05847626179456711, -0.0610806830227375, 0.029234368354082108, 0.006531786639243364, 0.08934959024190903, 0.016261015087366104, -0.018005244433879852, -0.04012184590101242, -0.0022804848849773407, -0.00016387282812502235, -0.019132370129227638, 0.009609882719814777, -0.030912252143025398, -0.05028219148516655, 0.015511290170252323, -0.0061250426806509495, -0.013800985179841518, 0.047312088310718536, -0.010633346624672413, -0.011563693173229694, 0.05139563977718353, 0.04611598327755928, -0.036394327878952026, -0.0055646998807787895, 0.054374366998672485, -0.003683977760374546, 0.02002287469804287, -0.0519467256963253, -0.006881666369736195, -0.03739890828728676, -0.020193375647068024, 0.003886535996571183, -0.04860347509384155, -0.004472666885703802, -0.029095955193042755, -0.06937228888273239, -0.03301586955785751, -0.003211450995877385, -0.046627599745988846, -0.02955276146531105, -0.052037276327610016, -0.025405829772353172, -0.03943212702870369, -0.016443731263279915, 0.0024368667509406805, 0.0019979653880000114, 0.022903786972165108, 0.0380479171872139, 0.029224202036857605, 0.04079720377922058, 0.06630365550518036, -0.03746833652257919, 0.01195450872182846, 0.05452006310224533, -0.03523645177483559, 0.03219947591423988, 0.04338084161281586, 0.007285832893103361, 0.007310823537409306, 0.006404650863260031, -0.009229113347828388, -0.0008934186189435422, -0.0007400556933134794, 0.021272020414471626, 0.0353546068072319, 0.019483348354697227, 0.022626280784606934, 0.049181580543518066, 0.002726649632677436, 0.04575299471616745, -0.040553998202085495, 0.017420010641217232, -0.024645758792757988, -0.02653309516608715, 0.025658244267106056, -0.0343284085392952, 0.022779010236263275, 0.015569332055747509, -0.042761821299791336, 0.049581028521060944, 0.029205897822976112, 0.013839728198945522, -0.006353761535137892, -0.006931432988494635, -0.017479702830314636, -0.041960544884204865, 0.04169008880853653, 0.01292742695659399, 0.001776634599082172, -0.00830245204269886, 0.05651276558637619, 0.06839032471179962, 0.031199702993035316, -0.030553437769412994, -0.046445753425359726, 6.272210838641224e-33, -0.008548344485461712, -0.030950510874390602, -0.018863607197999954, -0.0015549957752227783, -0.0027866275049746037, -0.026402639225125313, 0.04750148206949234, 0.05529139190912247, 0.000007196204023784958, 0.012745987623929977, -0.020642591640353203, 0.0081808315590024, -0.023375213146209717, 0.05573798343539238, 0.026949064806103706, -0.004060128703713417, 0.005479172337800264, 0.0011131236096844077, 0.02252579852938652, -0.0003799026890192181, 0.019413426518440247, -0.017967162653803825, 0.015368461608886719, 0.05526236817240715, 0.0029240003786981106, 0.01215299591422081, 0.005319396033883095, 0.009989353828132153, -0.03147885203361511, -0.03338206186890602, 0.02496406063437462, 0.0036436261143535376, 0.009780872613191605, -0.0023931993637233973, -0.03767641633749008, 0.020740773528814316, -0.02156725898385048, 0.033797647804021835, -0.018844420090317726, -0.04289764165878296, 0.03870789334177971, -0.00364765920676291, -0.01507995929569006, 0.033066701143980026, -0.04067520052194595, -0.025191590189933777, 0.027376441285014153, 0.02310599759221077, -0.0008145277970470488, 0.008874256163835526, -0.024080898612737656, -0.02220977656543255, 0.02893652580678463, 0.03022311069071293, 0.0018612424610182643, -0.015649190172553062, -0.01906975544989109, 0.03143271058797836, 0.012366662733256817, 0.03585591912269592, 0.04599033296108246, -0.015991125255823135, -0.03766655921936035, 0.03409150242805481, -0.017451893538236618, -0.031886789947748184, 0.02986958622932434, -0.00337841990403831, -0.023354461416602135, 0.02519243396818638, 0.029389627277851105, 0.049273498356342316, -0.015292792581021786, 0.05736066773533821, 0.04500088095664978, -0.006721127312630415, 0.01963380165398121, 0.004636039026081562, 0.0032941182143986225, 0.020885996520519257, 0.030379410833120346, 0.018358096480369568, -0.011771144345402718, -0.030216993764042854, -0.0025875945575535297, -0.02878677099943161, -0.0038534398190677166, 0.02154703438282013, 0.04628649353981018, 0.004415813833475113, -0.01396987959742546, -0.0721457451581955, -0.013964426703751087, 0.03084770403802395, -0.028816411271691322, -1.193419674194729e-8, 0.030872534960508347, -0.019681818783283234, -0.014889154583215714, 0.03919754549860954, 0.010049327276647091, 0.008432012051343918, -0.006618165876716375, -0.004599220585078001, -0.04479296877980232, 0.021372171118855476, 0.008095767349004745, -0.017142413184046745, -0.013915502466261387, 0.026280419901013374, 0.045387353748083115, -0.018076248466968536, 0.0016315996181219816, -0.016197817400097847, 0.031191056594252586, -0.013651526533067226, 0.03418276086449623, 0.015269182622432709, 0.011235987767577171, -0.024627190083265305, -0.010545074008405209, 0.0065615978091955185, 0.011577156372368336, -0.05583931878209114, -0.01828022673726082, -0.020884502679109573, 0.0014051244361326098, -0.03835856541991234, -0.025019388645887375, 0.03665848821401596, -0.0342738963663578, -0.005221853964030743, -0.04250432923436165, 0.039032310247421265, -0.005015576723963022, -0.0023777561727911234, -0.0645390972495079, 0.016984542831778526, -0.022669995203614235, -0.044313061982393265, -0.04449523612856865, 0.031285546720027924, -0.01978861726820469, 0.020410733297467232, 0.034791525453329086, -0.00605526240542531, -0.012623078189790249, -0.0231762882322073, 0.037596430629491806, -0.013568727299571037, -0.004850415512919426, 0.02471799962222576, 0.024028802290558815, 0.0016874317079782486, 0.0018147780792787671, -0.03018258325755596, 0.023812659084796906, 0.016965484246611595, -0.003600515192374587, -0.018124382942914963 ]
how-to-delete-kafka-topic
https://markhneedham.com/blog/2023/07/26/how-to-delete-kafka-topic