index
int64 0
731k
| package
stringlengths 2
98
⌀ | name
stringlengths 1
76
| docstring
stringlengths 0
281k
⌀ | code
stringlengths 4
8.19k
| signature
stringlengths 2
42.8k
⌀ | embed_func_code
listlengths 768
768
|
|---|---|---|---|---|---|---|
722,950
|
gitdb.db.ref
|
update_cache
| null |
def update_cache(self, force=False):
# re-read alternates and update databases
self._update_dbs_from_ref_file()
return super().update_cache(force)
|
(self, force=False)
|
[
0.02810100093483925,
-0.018369728699326515,
-0.019375814124941826,
0.04298412427306175,
0.049228791147470474,
-0.024336853995919228,
-0.058144789189100266,
0.028066309168934822,
0.07028719782829285,
-0.03920263051986694,
-0.023139961063861847,
-0.01566370576620102,
-0.011899559758603573,
0.06647101044654846,
0.01248066034168005,
-0.04652277007699013,
-0.045620761811733246,
0.007263761945068836,
0.0011730433907359838,
-0.018196266144514084,
-0.004909002222120762,
0.004462334793061018,
0.03597621992230415,
-0.038092467933893204,
0.03174372389912605,
-0.020104357972741127,
0.03653130307793617,
-0.010667972266674042,
0.05811009556055069,
0.04763293266296387,
-0.03533440828323364,
0.022515494376420975,
0.009739945642650127,
0.0022029797546565533,
0.01859522983431816,
-0.03101518005132675,
0.022671610116958618,
0.00008422440441790968,
-0.0036340493243187666,
0.01137049775570631,
0.01766720414161682,
-0.009202210232615471,
0.03837000951170921,
-0.0351782888174057,
0.007736448664218187,
-0.0043192277662456036,
-0.04142295569181442,
0.02404196746647358,
0.03266307711601257,
-0.0386822409927845,
0.0379536971449852,
-0.008504021912813187,
0.029263203963637352,
0.05339190363883972,
0.02534293942153454,
-0.024614395573735237,
-0.019566623494029045,
0.04170049726963043,
0.015498916618525982,
-0.0038638876285403967,
0.027684690430760384,
-0.10345331579446793,
-0.0037034344859421253,
-0.004202140495181084,
0.019185004755854607,
-0.003532139817252755,
0.016921313479542732,
0.029592782258987427,
0.0548836849629879,
0.03415485844016075,
-0.026314333081245422,
-0.024753166362643242,
0.016366232186555862,
0.011812828481197357,
-0.04537791386246681,
0.046279922127723694,
-0.017467720434069633,
-0.029592782258987427,
-0.015204029157757759,
0.015438204631209373,
0.0218216422945261,
-0.04693907871842384,
0.019410505890846252,
-0.0200696662068367,
-0.04353920742869377,
0.003590683452785015,
0.02459704875946045,
-0.05859579145908356,
-0.010425124317407608,
-0.012445968575775623,
-0.020642094314098358,
0.04888186603784561,
0.01677386835217476,
0.006214310880750418,
0.05800601840019226,
-0.05089403688907623,
-0.02052067033946514,
-0.054571449756622314,
-0.030425405129790306,
-0.03351304680109024,
0.015672380104660988,
0.0035364762879908085,
0.043504513800144196,
-0.019636008888483047,
0.015906553715467453,
-0.04954102262854576,
0.016990698873996735,
-0.06723424792289734,
-0.006270686164498329,
-0.02128390595316887,
-0.07819710671901703,
-0.02117982879281044,
0.04381674528121948,
0.011344478465616703,
0.0015503253089264035,
-0.02027782052755356,
-0.03533440828323364,
-0.03151822090148926,
0.037155769765377045,
0.05606323108077049,
-0.023452194407582283,
0.03646191582083702,
0.029957054182887077,
0.0059454431757330894,
0.008026999421417713,
0.03498747944831848,
-0.04430244117975235,
0.003235084470361471,
0.03387731686234474,
0.003222074592486024,
0.03443240001797676,
-0.019740086048841476,
-0.015906553715467453,
0.0004398912424221635,
0.03833531588315964,
-0.016713157296180725,
0.07646247744560242,
-0.003915926441550255,
0.009835350327193737,
0.0429147407412529,
-0.0049133384600281715,
0.004718192853033543,
0.060469191521406174,
-0.018924809992313385,
0.017537105828523636,
0.018196266144514084,
0.0053556691855192184,
0.0121510811150074,
-0.06869133561849594,
-0.06660977751016617,
0.08950689435005188,
-0.016192767769098282,
-0.03639253228902817,
0.022688956931233406,
-0.07382584363222122,
0.03304469585418701,
-0.07569923996925354,
-0.016739176586270332,
-0.002187801757827401,
-0.003378191264346242,
0.0008488844032399356,
0.03306204080581665,
-0.0076020145788788795,
0.002406798768788576,
-0.023556271567940712,
0.005242918152362108,
-0.03151822090148926,
-0.016825908794999123,
-0.008460656739771366,
-0.019219696521759033,
-0.001232671202160418,
-0.004466671496629715,
-0.024735819548368454,
0.019757432863116264,
0.026557181030511856,
0.026106176897883415,
-0.012125061824917793,
-0.014943835325539112,
0.0484655536711216,
0.04593299329280853,
-0.01878603920340538,
-0.051345039159059525,
-0.004278030712157488,
-0.013512765057384968,
0.002513044746592641,
0.022324685007333755,
0.024354200810194016,
0.005980135872960091,
0.07320137321949005,
0.02466643415391445,
0.0329926572740078,
0.03259369358420372,
-0.012836259789764881,
-0.0802786648273468,
-0.004414632450789213,
-0.04881247878074646,
-0.039931174367666245,
-0.03443240001797676,
-0.015420857816934586,
0.04319227859377861,
-0.029401972889900208,
-0.03191718831658363,
0.027025530114769936,
-0.013200531713664532,
0.06213443726301193,
0.0163141917437315,
0.0013226551236584783,
-0.057971324771642685,
0.010850109159946442,
0.07764202356338501,
-0.011916905641555786,
0.046557459980249405,
0.01197761856019497,
-0.06244666874408722,
0.018994195386767387,
0.0031765406019985676,
-0.01202098373323679,
0.03965363651514053,
-0.04815332219004631,
-0.0009063440375030041,
0.006877806968986988,
-0.0037229489535093307,
-0.05776317045092583,
0.012775547802448273,
-0.051345039159059525,
-0.02763265185058117,
0.024284815415740013,
0.00151454855222255,
-0.021613486111164093,
0.026192909106612206,
-0.005026089493185282,
0.02404196746647358,
-0.00337168644182384,
-0.050512418150901794,
0.10726950317621231,
-0.050963420420885086,
-0.009696580469608307,
0.04353920742869377,
-0.01695600524544716,
0.004592432174831629,
-0.035768065601587296,
0.02348688617348671,
0.03488340228796005,
-0.0015134643763303757,
-0.05072057247161865,
-0.004527383483946323,
0.02761530503630638,
-0.06595062464475632,
-0.00005932298154220916,
-0.007536965887993574,
0.023278729990124702,
-0.009948101826012135,
-0.01677386835217476,
0.03424159064888954,
-0.03505686670541763,
-0.09595971554517746,
-0.02973155304789543,
0.013877037912607193,
-0.007723438553512096,
-0.01409386657178402,
0.005442400928586721,
-0.00716402055695653,
-0.020971672609448433,
-0.011422536335885525,
-0.04669623076915741,
0.013408687897026539,
0.003924599848687649,
0.011674057692289352,
-0.030165210366249084,
0.03746800124645233,
0.04124949499964714,
-0.02973155304789543,
0.011934252455830574,
0.019410505890846252,
-0.05731216445565224,
0.016721829771995544,
0.03094579465687275,
0.027146954089403152,
-0.09901266545057297,
0.017467720434069633,
0.01413723174482584,
-0.01482241041958332,
0.015681052580475807,
-0.010650626383721828,
-0.055022455751895905,
-0.060087572783231735,
-0.03139679878950119,
0.06865664571523666,
-0.04669623076915741,
0.016643771901726723,
0.04142295569181442,
0.01321787852793932,
0.014007135294377804,
-0.017719242721796036,
-0.030321327969431877,
0.012506680563092232,
-0.027424495667219162,
0.015438204631209373,
0.05564692243933678,
0.06095488741993904,
-0.042394351214170456,
-0.021214520558714867,
0.010355738922953606,
0.0260541383177042,
0.10428594052791595,
-0.05148380994796753,
-0.01146590244024992,
-0.03673945739865303,
0.023781772702932358,
0.07528293132781982,
0.002235504100099206,
-0.011058264411985874,
-0.04808393493294716,
0.038890399038791656,
-0.021509408950805664,
-0.055126532912254333,
-0.07861341536045074,
0.04346982017159462,
0.022619571536779404,
0.015125971287488937,
-0.06990557909011841,
0.05370413511991501,
0.0025564106181263924,
0.026401063427329063,
-0.017936071380972862,
0.0025780934374779463,
0.03764146566390991,
0.034484438598155975,
0.05158788710832596,
-0.019445199519395828,
0.03077233023941517,
-0.024475624784827232,
0.02477051131427288,
-0.0009757291991263628,
-0.05745093524456024,
0.041284188628196716,
0.01705140992999077,
-0.08402546495199203,
0.048118628561496735,
0.016331538558006287,
0.03528236970305443,
0.04464937001466751,
0.004466671496629715,
-0.043053507804870605,
-0.0053513324819505215,
0.008994054980576038,
0.043435126543045044,
0.0051561868749558926,
0.026817375794053078,
-0.0451003722846508,
-0.013018395751714706,
-0.05578569322824478,
0.022272644564509392,
0.07493600249290466,
0.06633224338293076,
-0.04513506591320038,
0.016817234456539154,
-0.023330770432949066,
0.001266279723495245,
-0.0913802906870842,
-0.05526530370116234,
-0.018005456775426865,
-0.02551640383899212,
0.036982305347919464,
0.00833923276513815,
0.0044840178452432156,
-0.027094915509223938,
-0.014631601981818676,
0.011613345704972744,
-0.061475276947021484,
-0.04336574301123619,
0.023712387308478355,
0.03628845512866974,
-0.0023959572426974773,
0.04426775127649307,
-0.05637546628713608,
-0.06102427467703819,
0.05956718325614929,
0.009141498245298862,
0.025204170495271683,
0.0017877527279779315,
0.014596909284591675,
0.025273554027080536,
-0.03566398844122887,
-0.013816325925290585,
-0.009523116983473301,
0.022081837058067322,
-0.012532699853181839,
0.04804924130439758,
0.0031613626051694155,
0.004974050913006067,
-0.00495236786082387,
-0.008768552914261818,
0.005186542868614197,
-0.0719524398446083,
0.05339190363883972,
0.06581185013055801,
-0.0014115548692643642,
0.0020989018958061934,
-0.05755501240491867,
-0.015073931775987148,
-0.03628845512866974,
0.054744914174079895,
0.02293180488049984,
-0.029436666518449783,
-0.011552633717656136,
0.04693907871842384,
0.010338393040001392,
-0.008803245611488819,
0.009982793591916561,
-0.11046122014522552,
-0.003226411296054721,
-0.023989928886294365,
0.02551640383899212,
0.036808840930461884,
-0.030546829104423523,
0.056410159915685654,
-0.055022455751895905,
0.015178009867668152,
0.11552634090185165,
0.03361712396144867,
0.04190865531563759,
0.004852626472711563,
0.0340854749083519,
-0.0218216422945261,
-0.02763265185058117,
-0.011517941020429134,
0.01583716832101345,
-0.0789603441953659,
0.07125858962535858,
0.02256753295660019,
-0.01584584265947342,
-0.003445408307015896,
-0.009835350327193737,
-0.004115408752113581,
0.01850849948823452,
0.02163083292543888,
-0.040937259793281555,
-0.05002672225236893,
0.00014215832925401628,
0.0802786648273468,
-0.01868196204304695,
-0.004713856149464846,
-0.02690410614013672,
0.0408678762614727,
-0.04288004711270332,
-0.0010055431630462408,
0.029141779989004135,
-0.005325313191860914,
0.016097363084554672,
-0.03545583039522171,
0.01573309116065502,
-0.03705168887972832,
-0.013937749899923801,
-0.08832734823226929,
-0.00651353457942605,
-0.020971672609448433,
0.003226411296054721,
0.006825767923146486,
0.01293166447430849,
-0.01325257122516632,
0.013556131161749363,
0.014657621271908283,
-0.023625656962394714,
0.022324685007333755,
-0.04874309524893761,
-0.026817375794053078,
0.008573407307267189,
-0.06574246287345886,
-0.05172665789723396,
0.024753166362643242,
-0.08284591138362885,
-0.030685599893331528,
-0.10754704475402832,
-0.05314905568957329,
0.00672169029712677,
-0.011387843638658524,
0.009453731589019299,
0.01721620000898838,
-0.03398139774799347,
-0.04190865531563759,
0.05155319347977638,
0.0015047913184389472,
0.023816466331481934,
0.016452962532639503,
-0.10928167402744293,
0.008634119294583797,
-0.00292501924559474,
-0.03491809591650963,
-0.056687697768211365,
-0.02744184248149395,
0.0032329161185771227,
-0.013278590515255928,
0.03514359891414642,
0.0037771561183035374,
0.021578794345259666,
-0.01693865843117237,
0.02393789030611515,
0.01202098373323679,
-0.020746171474456787,
0.022706303745508194,
-0.09249045699834824,
-0.020555362105369568,
0.07840526103973389,
-0.034293629229068756,
0.03146618232131004,
-0.014891795814037323,
-0.029696861281991005,
0.0732707604765892,
0.00741120520979166,
-0.05311436206102371,
-0.0049133384600281715,
0.07625432312488556,
0.007198713254183531,
0.008412954397499561,
0.005047772545367479,
-0.065534308552742,
-0.016366232186555862,
-0.03406812623143196,
0.009410366415977478,
0.01007819827646017,
-0.027042876929044724,
0.044892217963933945,
-0.03398139774799347,
-0.022220605984330177,
-0.03805777430534363,
0.04749416187405586,
0.0007404700736515224,
0.06098958104848862,
-0.029575437307357788,
0.0031288382597267628,
0.0021845493465662003,
0.011543960310518742,
0.00402650935575366,
0.025620480999350548,
-0.006986221298575401,
0.03205595538020134,
-0.03885570541024208,
-0.07188305258750916,
-0.06258544325828552,
0.015542281791567802,
0.020416591316461563,
0.06376498937606812,
-0.0541551411151886,
-0.027476534247398376,
-0.015351473353803158,
-0.0011275092838332057,
0.02936728112399578,
0.029506051912903786,
-0.015455550514161587,
-0.07025250047445297,
0.01247198786586523,
0.04742477461695671,
-0.0032177381217479706,
0.02494397573173046,
-0.04312289506196976,
-0.01852584443986416,
-0.028066309168934822,
0.00293369241990149,
0.012506680563092232,
0.04579422250390053,
-0.015880534425377846,
0.023625656962394714,
0.05928964167833328,
0.007263761945068836,
-0.006062530912458897,
0.024996014311909676,
0.05866517499089241,
0.01989620365202427,
0.06567308306694031,
0.03667007386684418,
-0.009818004444241524,
0.04353920742869377,
-0.005906414240598679,
0.02338280901312828,
-0.007870882749557495,
-0.019080927595496178,
-0.008321885950863361,
0.027285724878311157,
-0.08999259024858475,
0.00637910095974803,
-0.038543473929166794,
0.04069441184401512,
0.016071343794465065,
0.04881247878074646,
-0.0243021622300148,
0.0007014409056864679,
0.14987200498580933,
0.035698678344488144,
0.0013985452242195606,
-0.044337134808301926,
0.0023634328972548246,
0.023885851725935936,
-0.054467372596263885,
-0.012445968575775623,
0.015403511933982372,
-0.004479681141674519,
-0.01804014854133129,
-0.02366034872829914,
0.010017486289143562,
0.04586360976099968,
0.0242327768355608,
0.017736589536070824,
-0.0429147407412529,
-0.04263719916343689,
0.03920263051986694,
-0.017884032800793648,
0.00023756295558996499,
-0.007628034334629774,
0.05339190363883972,
-0.010867455042898655,
0.017814647406339645,
0.03231615200638771,
0.006981884595006704,
0.008274183608591557,
0.004275862127542496,
-0.032177381217479706,
-0.010390431620180607,
-0.02402462065219879,
-0.019670700654387474,
-0.030234595760703087,
0.039931174367666245,
0.013191859237849712,
-0.029315242543816566,
-0.043226972222328186,
0.05526530370116234,
0.02515213005244732,
-0.0016500664642080665,
-0.0020858922507613897,
0.046279922127723694,
0.047147236764431,
-0.02485724352300167,
0.022810380905866623,
0.06765055656433105,
0.01326124370098114,
-0.00013666984159499407,
0.004787577781826258,
0.01610603742301464,
-0.03169168531894684,
0.012506680563092232,
0.040000561624765396,
0.013200531713664532,
-0.00596278952434659,
0.015568302012979984,
-0.06428537517786026,
-0.03410281985998154,
-0.014293348416686058,
-0.03207330405712128,
0.05672239139676094,
-0.0029206827748566866,
-0.04669623076915741,
-0.03113660402595997,
0.018560538068413734,
-0.0013909562258049846,
0.05141442269086838,
-0.001151360454969108,
0.022584877908229828,
-0.025724558159708977,
-0.005784990265965462,
-0.05928964167833328,
-0.03552521765232086,
-0.012506680563092232,
-0.030234595760703087,
-0.036323145031929016,
0.03628845512866974,
-0.04610645771026611,
0.020139051601290703,
0.04579422250390053,
-0.005546478554606438,
0.034293629229068756,
-0.01491781510412693,
-0.014605581760406494,
-0.040382180362939835,
0.0004884066875092685,
0.004221654962748289,
-0.08222144842147827,
-0.011127649806439877,
0.003111492143943906,
0.03830062225461006,
0.07479723542928696,
-0.005529132205992937,
0.021197175607085228,
-0.0016229628818109632,
0.0583876371383667,
-0.05471022054553032,
0.04797985777258873,
0.01823095791041851,
0.0008472581976093352,
0.011812828481197357,
-0.01628817245364189,
0.009427712298929691,
-0.017901377752423286,
0.021041058003902435,
-0.013460726477205753,
-0.012697489000856876,
-0.018647270277142525,
-0.001440826803445816,
0.0048396168276667595,
0.007636707276105881,
0.007103308569639921,
0.04315758869051933,
0.033304888755083084,
0.03432832285761833,
0.012047003023326397,
0.01989620365202427,
0.018300343304872513,
-0.030737638473510742,
-0.008213471621274948,
-0.12399133294820786,
0.0407291054725647,
0.013642862439155579,
0.03351304680109024,
0.022897111251950264,
0.022255299612879753,
0.00939301960170269,
-0.03646191582083702,
0.008638455532491207,
-0.05939372256398201,
0.019289081916213036,
0.022966496646404266,
-0.048569630831480026,
0.00541204446926713,
-0.0270775705575943,
-0.041110724210739136,
0.05054710805416107,
-0.012966357171535492,
-0.06896887719631195,
-0.005646219477057457,
-0.051171574741601944,
0.02015639655292034,
0.018734000623226166,
-0.030702946707606316,
0.06938518583774567,
0.00860810000449419,
0.03469259291887283,
0.012680143117904663,
0.026782682165503502,
-0.006574246566742659,
0.020884942263364792,
0.023348115384578705,
0.002212736988440156,
-0.01593257300555706,
-0.059914108365774155,
0.05266335606575012,
0.004987060558050871,
-0.011257747188210487,
0.006275022868067026,
0.045169755816459656,
-0.00674337288364768,
-0.00496971420943737,
0.0035841786302626133,
0.03819654509425163,
0.016825908794999123,
0.06813625246286392,
0.05311436206102371,
0.01334797590970993,
-0.013868364505469799,
0.005923760589212179,
0.04284535348415375,
-0.022359376773238182,
0.049020636826753616,
-0.035403791815042496,
-0.053912289440631866,
0.018404420465230942,
0.0006179618067108095,
-0.03233349695801735,
0.0224808007478714,
0.003501783823594451
] |
722,951
|
gitdb.stream
|
Sha1Writer
|
Simple stream writer which produces a sha whenever you like as it degests
everything it is supposed to write
|
class Sha1Writer:
"""Simple stream writer which produces a sha whenever you like as it degests
everything it is supposed to write"""
__slots__ = "sha1"
def __init__(self):
self.sha1 = make_sha()
#{ Stream Interface
def write(self, data):
""":raise IOError: If not all bytes could be written
:param data: byte object
:return: length of incoming data"""
self.sha1.update(data)
return len(data)
# END stream interface
#{ Interface
def sha(self, as_hex=False):
""":return: sha so far
:param as_hex: if True, sha will be hex-encoded, binary otherwise"""
if as_hex:
return self.sha1.hexdigest()
return self.sha1.digest()
#} END interface
|
()
|
[
-0.03148169443011284,
-0.03460985794663429,
-0.004760446958243847,
0.015313453041017056,
0.050159744918346405,
-0.017632296308875084,
-0.06485483795404434,
0.03353682532906532,
-0.025661855936050415,
-0.010966760106384754,
0.06052633374929428,
0.06187216937541962,
-0.004301225300878286,
0.0811140164732933,
-0.04215746372938156,
-0.0006570053519681096,
0.03006310947239399,
0.04270307347178459,
-0.01836887001991272,
0.03642855957150459,
-0.005615235771983862,
0.05634332448244095,
0.0300449226051569,
0.04506738483905792,
-0.03639218583703041,
0.018859917297959328,
0.04266669973731041,
-0.026771262288093567,
0.002366583328694105,
-0.034682609140872955,
-0.011648773215711117,
-0.08933454006910324,
0.05314240977168083,
0.010212000459432602,
0.05205119028687477,
-0.05918049439787865,
-0.0014742836356163025,
0.046886082738637924,
-0.06256327778100967,
0.008434221148490906,
0.05659794062376022,
0.056306950747966766,
0.008270537480711937,
-0.050887223333120346,
-0.010884919203817844,
0.0554339736700058,
-0.010812170803546906,
0.06943796575069427,
-0.05281504616141319,
-0.04361242428421974,
-0.005760732106864452,
0.02518899366259575,
0.0055015673860907555,
0.004637684673070908,
0.062381405383348465,
0.03079058974981308,
0.041320860385894775,
0.01404945645481348,
-0.021860772743821144,
0.026171091943979263,
-0.02464338392019272,
0.00990282092243433,
0.1015562042593956,
-0.02540723793208599,
-0.005878947675228119,
-0.005210575181990862,
-0.017568640410900116,
0.004742260091006756,
-0.018441617488861084,
0.0315544418990612,
0.010011943057179451,
-0.010375683195888996,
-0.016959376633167267,
0.027771547436714172,
-0.02124241553246975,
0.0590713731944561,
-0.061835795640945435,
0.029026450589299202,
0.03515546768903732,
-0.04226658493280411,
0.06881960481405258,
-0.02846265397965908,
-0.006351809483021498,
-0.012840021401643753,
-0.008679745718836784,
0.0025439064484089613,
0.017386771738529205,
-0.014595067128539085,
-0.04164822772145271,
0.017314022406935692,
-0.024734318256378174,
0.042957693338394165,
0.010866732336580753,
0.009702764451503754,
0.04750443994998932,
-0.05641607195138931,
-0.01614096201956272,
-0.009170793928205967,
-0.018823543563485146,
0.0253890510648489,
-0.05081447586417198,
0.06245415657758713,
-0.03366413712501526,
0.019551023840904236,
-0.04317593574523926,
-0.015686286613345146,
0.008961644023656845,
-0.005342430900782347,
-0.02320661023259163,
-0.022951992228627205,
0.004137542098760605,
-0.03370051085948944,
-0.030717842280864716,
-0.020642243325710297,
0.01124865934252739,
-0.017714137211441994,
-0.005351524334400892,
-0.009329930879175663,
0.004537656437605619,
-0.03040866181254387,
0.07234787940979004,
0.021715277805924416,
-0.00038647372275590897,
0.031063394621014595,
0.04070250317454338,
0.01539529487490654,
-0.003626032965257764,
-0.018414337188005447,
0.027116816490888596,
0.0026984959840774536,
-0.015968184918165207,
0.0586712583899498,
0.044194407761096954,
0.04535837471485138,
0.01396761555224657,
-0.023697659373283386,
0.0009758461965247989,
0.04237570986151695,
-0.03833819553256035,
0.03173631429672241,
0.02249731868505478,
-0.04957776144146919,
-0.0022904251236468554,
-0.021842585876584053,
-0.006856498774141073,
0.008325099013745785,
-0.01681387983262539,
-0.041502732783555984,
0.00473316665738821,
0.022370008751749992,
0.014886058866977692,
-0.013940335251390934,
0.014513225294649601,
0.08926179260015488,
0.01188520435243845,
0.009161700494587421,
-0.011312313377857208,
-0.03793808072805405,
-0.029481125995516777,
0.0098118856549263,
0.005974429193884134,
-0.02144247107207775,
0.025298116728663445,
-0.023988651111721992,
-0.023643098771572113,
0.02897188998758793,
-0.005678890272974968,
0.01764138974249363,
-0.005751638673245907,
-0.02035125158727169,
-0.005660703405737877,
-0.02284287102520466,
-0.045285627245903015,
0.062235910445451736,
0.010603020898997784,
0.041138991713523865,
-0.008220523595809937,
0.026898572221398354,
-0.01223075669258833,
-0.03671954944729805,
-0.046013109385967255,
-0.05888950452208519,
-0.03852006420493126,
-0.007615806069225073,
0.04175734892487526,
0.011639679782092571,
0.02053312212228775,
0.028226222842931747,
0.08387844264507294,
-0.026898572221398354,
-0.014649627730250359,
-0.026043782010674477,
-0.028899142518639565,
0.013303790241479874,
0.05386989191174507,
-0.01818699948489666,
-0.021005984395742416,
-0.050523482263088226,
0.02360672503709793,
-0.006988354492932558,
-0.03515546768903732,
0.04055700823664665,
-0.002484798664227128,
-0.04284856840968132,
0.011103162541985512,
0.00008944309229264036,
0.042957693338394165,
0.04477639123797417,
-0.08140500634908676,
-0.020915048196911812,
0.03671954944729805,
-0.034318868070840836,
0.01143962237983942,
0.07183864712715149,
0.007515777368098497,
-0.0894072875380516,
0.04957776144146919,
-0.02573460340499878,
0.018050596117973328,
0.01745951920747757,
0.08271447569131851,
0.012758179567754269,
-0.0641273558139801,
0.021351536735892296,
-0.014104017987847328,
-0.014222233556210995,
0.042775820940732956,
-0.04303044080734253,
-0.031263452023267746,
-0.057361796498298645,
0.06398186087608337,
-0.005015064962208271,
0.01539529487490654,
0.06780113279819489,
-0.020842300727963448,
0.0113305002450943,
-0.020624056458473206,
-0.0005785739049315453,
-0.07234787940979004,
0.0013140107039362192,
-0.02089686132967472,
-0.012476281262934208,
0.08344195038080215,
0.06863773614168167,
-0.0063108885660767555,
-0.03380963206291199,
-0.01764138974249363,
0.05674343556165695,
-0.032682038843631744,
-0.02144247107207775,
-0.03615575283765793,
0.0016504701925441623,
-0.04885027930140495,
-0.04281219467520714,
0.03786533325910568,
-0.017595922574400902,
-0.03346407786011696,
-0.05146920680999756,
-0.004915036726742983,
-0.018323400989174843,
0.014595067128539085,
-0.02917194738984108,
0.006329075898975134,
0.01313101314008236,
0.0457221157848835,
-0.02662576735019684,
-0.01251265499740839,
-0.0008030696772038937,
-0.02664395421743393,
0.0297357439994812,
0.10221093893051147,
0.001681160763837397,
-0.00918443500995636,
-0.0032759332098066807,
-0.046558719128370285,
-0.06139931082725525,
0.03837456926703453,
0.038447316735982895,
0.03870193287730217,
0.011766988784074783,
0.02866271138191223,
-0.004330778960138559,
0.04102987051010132,
-0.03906567394733429,
0.06590968370437622,
0.021187854930758476,
0.03442798927426338,
0.0009417455294169486,
0.0012208023108541965,
-0.05132371187210083,
0.031936369836330414,
0.02668032795190811,
-0.03373688459396362,
-0.031627193093299866,
0.049941498786211014,
0.04215746372938156,
-0.08751583844423294,
0.00024381946423090994,
0.051214590668678284,
-0.062017668038606644,
-0.066746287047863,
-0.0036737737245857716,
-0.03113614208996296,
-0.01767776347696781,
-0.07394833862781525,
-0.04524925351142883,
-0.0021040085703134537,
-0.006906513124704361,
0.0219517070800066,
-0.011939764954149723,
0.002326799090951681,
0.03173631429672241,
-0.022570066154003143,
0.020096633583307266,
0.006279061548411846,
-0.00199033971875906,
0.04604948312044144,
0.009611829183995724,
0.0013606149004772305,
0.08562438935041428,
-0.03460985794663429,
-0.012558123096823692,
0.02086048759520054,
-0.05066898092627525,
0.027844294905662537,
-0.052669551223516464,
0.010248374193906784,
-0.013140106573700905,
-0.007079289294779301,
0.007656726520508528,
-0.07536692172288895,
0.0270076934248209,
0.07380284368991852,
0.01108497567474842,
-0.04193922132253647,
-0.008838881738483906,
0.010912199504673481,
-0.02429783158004284,
-0.0447036437690258,
-0.07358460128307343,
0.03311852365732193,
-0.033591385930776596,
0.044594522565603256,
-0.004696792457252741,
-0.02628021314740181,
-0.04084800183773041,
-0.04928676784038544,
-0.03026316687464714,
0.004392160102725029,
-0.013303790241479874,
0.05557946860790253,
0.021824399009346962,
0.010502992197871208,
0.013867586851119995,
0.0958818569779396,
-0.018678048625588417,
-0.034118808805942535,
-0.04172097519040108,
-0.0300449226051569,
-0.025334490463137627,
0.0021960800513625145,
0.018414337188005447,
-0.027407808229327202,
-0.006324529182165861,
-0.05296054109930992,
-0.0030713295564055443,
-0.03244560584425926,
-0.0028121648356318474,
0.022715561091899872,
0.022460943087935448,
0.0011054285569116473,
-0.024952562525868416,
-0.07856783270835876,
-0.07216601073741913,
-0.00944814644753933,
0.0013856219593435526,
0.018623488023877144,
0.00937539804726839,
-0.0641273558139801,
-0.06092644855380058,
0.04630409926176071,
0.025079872459173203,
-0.013849399983882904,
0.023461228236556053,
-0.015558977611362934,
0.0031804514583200216,
-0.006606427486985922,
-0.0017971028573811054,
0.02698950655758381,
0.09580910950899124,
-0.0210423581302166,
0.03006310947239399,
-0.006106284912675619,
-0.03370051085948944,
-0.02791704423725605,
0.015413481742143631,
0.010903106071054935,
0.06252690404653549,
-0.06827399134635925,
-0.007652179803699255,
0.012876395136117935,
-0.0325729139149189,
0.005497020669281483,
0.04972325637936592,
-0.01585906371474266,
-0.04284856840968132,
0.054451875388622284,
-0.02897188998758793,
0.011012228205800056,
0.018950853496789932,
-0.00962092261761427,
-0.006770110223442316,
-0.016841161996126175,
-0.012158009223639965,
0.05528847873210907,
-0.048559289425611496,
0.04877753183245659,
-0.0940631628036499,
0.017932381480932236,
0.04917764663696289,
-0.029390189796686172,
0.047249823808670044,
0.003219098784029484,
0.053942639380693436,
-0.023915903642773628,
-0.021533407270908356,
-0.022024456411600113,
0.013558408245444298,
-0.0038533704355359077,
0.010139252059161663,
0.03239104524254799,
-0.011757895350456238,
-0.018641674891114235,
-0.022206325083971024,
-0.017468612641096115,
-0.02866271138191223,
-0.038301821798086166,
-0.036446746438741684,
0.06081732362508774,
0.051942069083452225,
0.0493595153093338,
-0.00006408075569197536,
0.02431601844727993,
-0.003639673115685582,
0.011594211682677269,
-0.001059392699971795,
-0.022733749821782112,
0.04157548025250435,
0.019696520641446114,
0.006256327498704195,
0.014649627730250359,
-0.0033645948860794306,
-0.039720404893159866,
-0.041357237845659256,
0.010739423334598541,
-0.07762211561203003,
0.005433366168290377,
-0.05241493135690689,
0.00760671216994524,
-0.028899142518639565,
0.024516073986887932,
0.03366413712501526,
-0.021915333345532417,
0.011776082217693329,
-0.03693779557943344,
-0.0471407026052475,
0.011394155211746693,
0.0043716998770833015,
0.006147205829620361,
0.009311744011938572,
0.051032718271017075,
0.021733464673161507,
-0.019842015579342842,
0.012348972260951996,
0.04594035819172859,
0.006174486130475998,
-0.03566470369696617,
-0.04586761072278023,
-0.07336635142564774,
-0.021660715341567993,
-0.06136293336749077,
-0.01044843066483736,
0.025316303595900536,
0.016759319230914116,
0.016923002898693085,
-0.01668657176196575,
0.06056270748376846,
-0.05001424625515938,
0.06863773614168167,
0.04735894501209259,
0.018041502684354782,
0.013712997548282146,
-0.049432262778282166,
0.002505259122699499,
-0.02289743162691593,
0.011757895350456238,
0.0017334483563899994,
0.04215746372938156,
-0.09857353568077087,
-0.04263032600283623,
-0.04219383746385574,
-0.04266669973731041,
-0.01548623014241457,
-0.02991761453449726,
0.06823761761188507,
-0.0196237713098526,
-0.03764708712697029,
-0.07074742764234543,
-0.012649058364331722,
-0.009088953025639057,
-0.03615575283765793,
-0.05601595714688301,
-0.024425139650702477,
0.020569495856761932,
0.01610458828508854,
0.012358065694570541,
-0.021024171262979507,
0.01513158343732357,
-0.05761641263961792,
-0.05525210499763489,
-0.00403524050489068,
0.027062254026532173,
0.012703618966042995,
-0.03855643793940544,
-0.0343916155397892,
-0.02755330316722393,
0.009098046459257603,
-0.03928391635417938,
0.03433705493807793,
0.025680042803287506,
-0.012439907528460026,
-0.008734306320548058,
-0.06398186087608337,
-0.040411513298749924,
0.0424848310649395,
0.04353967681527138,
-0.020242130383849144,
-0.008061387576162815,
0.01582268998026848,
-0.046376846730709076,
-0.013540220446884632,
-0.007179317995905876,
-0.03046322427690029,
-0.061835795640945435,
-0.059362366795539856,
0.02951749972999096,
0.014740562997758389,
0.009757325053215027,
0.025243554264307022,
-0.04695883020758629,
-0.05296054109930992,
-0.06158117949962616,
0.009957382455468178,
-0.022206325083971024,
0.006497305352240801,
0.007424842566251755,
0.02900826372206211,
-0.0064018238335847855,
0.026407523080706596,
0.059907976537942886,
0.03113614208996296,
0.0600898452103138,
-0.023879529908299446,
-0.0030349555891007185,
-0.013576595112681389,
0.028589962050318718,
0.07573066651821136,
-0.05241493135690689,
-0.021660715341567993,
-0.02196989580988884,
-0.012903675436973572,
0.09355392307043076,
0.015522603876888752,
0.026553018018603325,
-0.014467758126556873,
0.0068246712908148766,
-0.022788310423493385,
0.040593381971120834,
0.017632296308875084,
-0.03273659944534302,
0.010921292938292027,
0.012067073956131935,
-0.06358174979686737,
-0.0576527863740921,
0.03599207103252411,
-0.0021915333345532417,
0.0011230472009629011,
0.03635581210255623,
-0.042230211198329926,
0.03793808072805405,
-0.04757719114422798,
-0.07176589965820312,
-0.031936369836330414,
-0.05379714444279671,
0.016722945496439934,
0.010557552799582481,
0.011039508506655693,
-0.06092644855380058,
-0.008311458863317966,
0.043103188276290894,
-0.046376846730709076,
0.008525155484676361,
-0.04801367595791817,
-0.0024870720226317644,
0.04706795513629913,
0.03184543550014496,
-0.008552436716854572,
0.03188180923461914,
-0.008416034281253815,
0.001940325484611094,
-0.026207465678453445,
0.06139931082725525,
0.020605869591236115,
-0.0025711869820952415,
-0.01179426908493042,
0.03693779557943344,
0.0014117658138275146,
-0.03804720193147659,
-0.03764708712697029,
0.04448540136218071,
0.01385849341750145,
0.022733749821782112,
-0.05910774692893028,
-0.0313543863594532,
-0.029081011191010475,
0.0069792610593140125,
0.012949143536388874,
0.02969937026500702,
0.0005595344118773937,
-0.06067182868719101,
-0.03921116888523102,
0.005324244033545256,
0.06034446135163307,
-0.03208186477422714,
0.05648881942033768,
0.02213357761502266,
-0.05368802323937416,
0.026698514819145203,
0.010884919203817844,
0.032300110906362534,
0.01836887001991272,
0.001768685644492507,
0.002941747196018696,
-0.02791704423725605,
-0.015431668609380722,
-0.01288548856973648,
0.036464933305978775,
-0.03895655274391174,
-0.02036943845450878,
-0.0859881341457367,
0.01703212410211563,
0.0333731435239315,
0.03902930021286011,
0.01223075669258833,
0.058634884655475616,
0.003330494277179241,
0.02755330316722393,
-0.022460943087935448,
0.00816141627728939,
0.009420865215361118,
0.03550102189183235,
-0.051942069083452225,
0.07358460128307343,
0.0035805655643343925,
0.021642528474330902,
0.014194953255355358,
0.036828674376010895,
-0.004012506455183029,
-0.007456669583916664,
-0.027298685163259506,
-0.010766703635454178,
0.08067753165960312,
0.02086048759520054,
-0.047795433551073074,
-0.00490594282746315,
-0.0341915600001812,
0.03932029381394386,
0.009339024312794209,
-0.009848260320723057,
0.01288548856973648,
-0.06638254970312119,
0.018359774723649025,
0.011139537207782269,
-0.06387273967266083,
0.011194097809493542,
0.055033858865499496,
-0.018232466652989388,
-0.013776651583611965,
-0.054306380450725555,
-0.06081732362508774,
-0.01701393723487854,
-0.020660430192947388,
0.024443326517939568,
-0.0076430863700807095,
-0.02013300731778145,
0.024970749393105507,
0.03370051085948944,
-0.02326117269694805,
-0.006929246708750725,
-0.050159744918346405,
0.04084800183773041,
-0.0023961372207850218,
0.07376646995544434,
0.0293356291949749,
0.003462349995970726,
-0.017232181504368782,
-0.013094639405608177,
-0.02198808267712593,
0.053942639380693436,
-0.0018596206791698933,
-0.010457524098455906,
0.04506738483905792,
0.02668032795190811,
0.06398186087608337,
0.03815632313489914,
-0.005819839891046286,
-0.05514298006892204,
0.06849224120378494,
0.019678333774209023,
0.02919013425707817,
-0.018150625750422478,
0.019350966438651085,
0.03779258579015732,
0.011485089547932148,
-0.033409517258405685,
-0.04321230947971344,
-0.00792953185737133,
0.005819839891046286,
0.02018756978213787,
0.006147205829620361,
0.005101453047245741,
-0.016695665195584297,
-0.055397599935531616,
0.04139361158013344,
0.008634277619421482,
-0.0004342145984992385,
0.025461798533797264,
-0.019751081243157387,
0.04586761072278023,
0.0016129594296216965,
0.024934375658631325,
-0.019041787832975388,
0.0011111119529232383,
-0.01757773384451866,
0.05423363298177719,
-0.05496111139655113,
0.0406661294400692,
0.05961698293685913,
-0.025898287072777748,
0.011576024815440178,
0.038811057806015015,
0.012139822356402874,
-0.06507308036088943,
0.05474286898970604,
0.07762211561203003,
-0.0471407026052475,
0.0038942911196500063,
0.02249731868505478,
-0.013267415575683117,
-0.05165107920765877,
-0.0187144223600626,
-0.006179032847285271,
0.015267985872924328,
0.005715264473110437,
0.059325993061065674,
0.058234769850969315,
0.009921007789671421,
0.04463089630007744
] |
722,952
|
gitdb.stream
|
__init__
| null |
def __init__(self):
self.sha1 = make_sha()
|
(self)
|
[
-0.03865617513656616,
-0.033117130398750305,
0.007066047750413418,
0.06335596740245819,
-0.015077581629157066,
-0.04260546341538429,
-0.026021797209978104,
0.05589247867465019,
0.020265206694602966,
0.0013230536133050919,
0.025235285982489586,
0.07430017739534378,
-0.009153648279607296,
0.061347853392362595,
-0.034573011100292206,
-0.0012163725914433599,
0.01974644511938095,
0.03504157066345215,
-0.01865871623158455,
-0.025252019986510277,
-0.010768505744636059,
0.03678193688392639,
0.02799644134938717,
0.08527786284685135,
0.0028908459935337305,
0.03617950156331062,
0.03715008869767189,
-0.006660241633653641,
0.0515080988407135,
-0.03007149137556553,
0.011245432309806347,
-0.030155163258314133,
0.04903142526745796,
0.06128091365098953,
0.03902433067560196,
-0.09324338287115097,
0.011697257868945599,
0.05518963932991028,
-0.07048476487398148,
0.005472107790410519,
0.05960748717188835,
0.04518254101276398,
-0.006559835746884346,
-0.03781946003437042,
0.021754557266831398,
0.03547666221857071,
0.012533972039818764,
0.04591885209083557,
-0.05154156684875488,
-0.02821398712694645,
-0.03052331693470478,
0.02881642058491707,
0.02945232391357422,
0.007032578811049461,
0.01213234942406416,
0.07356387376785278,
0.06402533501386642,
0.019980724900960922,
-0.060109514743089676,
0.07624135911464691,
-0.027645021677017212,
0.028682546690106392,
0.05120687931776047,
-0.02510141208767891,
-0.02058315835893154,
0.0011860417434945703,
-0.058034464716911316,
0.030439646914601326,
0.0389573909342289,
0.050370167940855026,
0.023210439831018448,
0.020014192909002304,
-0.01951216533780098,
0.005208543036133051,
0.022976160049438477,
0.02034887857735157,
-0.049299173057079315,
0.01578042097389698,
0.00704931328073144,
-0.010241376236081123,
0.018006078898906708,
-0.027879301458597183,
-0.03557706996798515,
0.0022654023487120867,
-0.017604457214474678,
-0.0006568203098140657,
0.015161252580583096,
-0.008869165554642677,
-0.01359659805893898,
0.04086510092020035,
-0.038120679557323456,
0.044513169676065445,
-0.03681540489196777,
0.027276868000626564,
0.053047649562358856,
-0.042638931423425674,
-0.0012257855851203203,
0.003853066824376583,
0.005806793458759785,
0.006425961386412382,
-0.011052988469600677,
0.02054969035089016,
-0.07155575603246689,
0.01329538132995367,
-0.030054757371544838,
-0.017269771546125412,
-0.0034953716676682234,
-0.04873020946979523,
-0.016960186883807182,
-0.0013868530513718724,
-0.00251432484947145,
-0.016642237082123756,
-0.011814397759735584,
0.025168349966406822,
-0.005907198879867792,
-0.060711950063705444,
0.004039235413074493,
-0.014341273345053196,
0.03962676227092743,
0.0006275352789089084,
0.027896035462617874,
0.0184746403247118,
-0.053047649562358856,
0.048428989946842194,
0.0789857804775238,
0.02700912021100521,
0.015194721519947052,
-0.038120679557323456,
0.013822510838508606,
-0.059071991592645645,
0.04601925611495972,
0.035610537976026535,
-0.01587245985865593,
0.018541576340794563,
-0.009379561059176922,
-0.09003040194511414,
0.027544615790247917,
0.0394928902387619,
-0.007735418621450663,
0.06670282036066055,
0.015629813075065613,
0.01887626200914383,
0.02284228429198265,
-0.041869156062603,
-0.0008518791873939335,
0.04320789873600006,
-0.0531480573117733,
-0.026507090777158737,
-0.017487317323684692,
0.01762119121849537,
0.08059226721525192,
-0.0353093184530735,
0.047659214586019516,
0.05585901066660881,
-0.023361047729849815,
-0.01204031053930521,
-0.000020231476810295135,
-0.05599288269877434,
-0.0017403645906597376,
0.0056227161549031734,
0.02635648287832737,
-0.018324030563235283,
0.016064904630184174,
-0.07450099289417267,
-0.006630956195294857,
0.024967538192868233,
-0.0018972484394907951,
-0.02597159519791603,
-0.027025854215025902,
-0.02761155366897583,
-0.0646277666091919,
-0.06496245414018631,
-0.06496245414018631,
0.051608502864837646,
-0.0027360538952052593,
0.010325047187507153,
-0.009906690567731857,
0.006074541714042425,
-0.03380323573946953,
0.0050286496989429,
-0.051809314638376236,
-0.04876367747783661,
-0.012048677541315556,
0.0042128534987568855,
0.05401824042201042,
0.023996951058506966,
0.04297361895442009,
0.06563182920217514,
0.08179713785648346,
-0.02841479890048504,
-0.021101919934153557,
-0.0152449244633317,
-0.03919167071580887,
0.02471652440726757,
0.05669572204351425,
-0.0034514442086219788,
-0.031259626150131226,
-0.03090820647776127,
-0.006932173389941454,
0.02864907868206501,
-0.03771905601024628,
0.008936102502048016,
-0.011889702640473843,
-0.059306271374225616,
0.009471599943935871,
-0.0077939885668456554,
-0.0025582523085176945,
0.05207706242799759,
-0.019679507240653038,
-0.018926464021205902,
0.02595486119389534,
-0.03915820270776749,
-0.02203904092311859,
0.08547867834568024,
-0.024582650512456894,
-0.12316426634788513,
0.0456845685839653,
-0.01588919386267662,
0.031895529478788376,
0.060611542314291,
0.09806285053491592,
0.00456427363678813,
-0.04655475169420242,
-0.03835495933890343,
-0.033317942172288895,
0.025469565764069557,
0.02575404942035675,
-0.027929505333304405,
-0.024432040750980377,
-0.08387218415737152,
0.02637321688234806,
-0.04109938070178032,
0.0311257503926754,
0.045383352786302567,
0.029335184022784233,
-0.01971297524869442,
0.009789550676941872,
0.018959933891892433,
-0.07865109294652939,
-0.04217037186026573,
0.007170636672526598,
-0.00792786292731762,
0.0759066715836525,
0.06492898613214493,
0.0209345780313015,
-0.013019265606999397,
-0.025787517428398132,
0.052579089999198914,
-0.04053041338920593,
-0.05207706242799759,
-0.025871189311146736,
0.013630066998302937,
-0.026055265218019485,
-0.04960039258003235,
0.02717646211385727,
-0.02675810642540455,
0.031443703919649124,
-0.017386911436915398,
0.03427179530262947,
-0.0030247201211750507,
0.03350201994180679,
-0.016868149861693382,
0.0004714358947239816,
0.011446244083344936,
-0.010969317518174648,
-0.015914294868707657,
-0.012835188768804073,
0.04029613360762596,
-0.0253022238612175,
0.012123982422053814,
0.050738319754600525,
-0.016374487429857254,
0.0016943453811109066,
0.02618914097547531,
-0.03842189535498619,
-0.08239956945180893,
0.001191271236166358,
0.03236408904194832,
-0.016767743974924088,
0.01130400225520134,
0.04960039258003235,
-0.016407957300543785,
0.048897549510002136,
-0.0029682419262826443,
0.0071413516998291016,
0.0018324031261727214,
0.01183113269507885,
0.02324390783905983,
-0.0278458334505558,
-0.045383352786302567,
0.014450046233832836,
0.04109938070178032,
-0.010007096454501152,
-0.026289544999599457,
0.0627869963645935,
0.016558565199375153,
-0.04029613360762596,
0.049064893275499344,
0.04401114210486412,
-0.02364552952349186,
-0.06037726253271103,
-0.003007985884323716,
-0.0638914629817009,
-0.033133864402770996,
-0.047023311257362366,
-0.015529407188296318,
0.017060592770576477,
0.01496044173836708,
0.0242981668561697,
0.010835442692041397,
0.04009532183408737,
0.09036508202552795,
0.0027193196583539248,
0.060912761837244034,
0.013178241439163685,
-0.0042170374654233456,
0.06248578056693077,
-0.04237118363380432,
0.012057045474648476,
0.08179713785648346,
-0.026222608983516693,
-0.013412521220743656,
0.010007096454501152,
-0.00805336982011795,
0.048295117914676666,
-0.023729201406240463,
0.0005475245416164398,
-0.002987068146467209,
-0.028130315244197845,
0.03510851040482521,
-0.06342290341854095,
0.0172028336673975,
0.0997362807393074,
0.007814906537532806,
-0.06312168389558792,
-0.008254180662333965,
0.0028908459935337305,
-0.02615567110478878,
-0.05087219551205635,
-0.10140970349311829,
0.042873211205005646,
-0.044546641409397125,
-0.005995053797960281,
0.009103445336222649,
-0.0147428959608078,
-0.05545738711953163,
-0.04548376053571701,
-0.05130728706717491,
-0.003547666361555457,
-0.09873221814632416,
-0.00016198254888877273,
0.005175074562430382,
0.007651747204363346,
0.03490769863128662,
0.11145026981830597,
-0.0030184448696672916,
-0.04377686232328415,
-0.03197919949889183,
-0.01234152726829052,
-0.025419363752007484,
0.040195729583501816,
-0.026891980320215225,
-0.03899085894227028,
-0.023963481187820435,
-0.016566932201385498,
0.012467035092413425,
-0.02285902015864849,
0.0008199794683605433,
-0.0035016469191759825,
-0.003371956292539835,
0.004265148192644119,
-0.02737727388739586,
-0.05776671692728996,
-0.027444209903478622,
0.011713992804288864,
-0.01658366620540619,
-0.015378798358142376,
0.012433566153049469,
-0.06676975637674332,
-0.042270779609680176,
-0.0012257855851203203,
0.03611256554722786,
-0.013312115333974361,
0.030238835141062737,
-0.03301672264933586,
0.004769268445670605,
0.033702827990055084,
-0.0004967987770214677,
0.09418050199747086,
0.09444824606180191,
-0.014240867458283901,
-0.01827382855117321,
0.030606988817453384,
-0.01161358691751957,
0.03735090047121048,
0.01787220500409603,
0.028063379228115082,
0.03510851040482521,
-0.04524948075413704,
-0.045149073004722595,
0.03219674527645111,
-0.03671500086784363,
0.0398610420525074,
0.02471652440726757,
-0.02510141208767891,
-0.023310845717787743,
0.01762119121849537,
0.008120306767523289,
-0.01027484517544508,
-0.007413283921778202,
-0.02469979040324688,
-0.01969624124467373,
-0.019863585010170937,
-0.07255981862545013,
0.03251469507813454,
-0.06014298275113106,
0.06104663386940956,
-0.04073122516274452,
0.04601925611495972,
0.008329485543072224,
-0.019863585010170937,
0.03919167071580887,
-0.016566932201385498,
0.03510851040482521,
-0.05753243714570999,
0.03855577111244202,
0.021101919934153557,
0.023612061515450478,
-0.0004978446522727609,
0.017102429643273354,
-0.010174439288675785,
0.039927978068590164,
0.015738585963845253,
0.010525858961045742,
-0.004112448077648878,
-0.00704931328073144,
-0.019779913127422333,
-0.04026266559958458,
0.014692693017423153,
0.07563892006874084,
-0.00933772511780262,
-0.01057606190443039,
0.038087207823991776,
-0.011965006589889526,
0.01652509719133377,
-0.01700202375650406,
-0.05893811583518982,
0.06318861991167068,
0.021737823262810707,
-0.01927788555622101,
-0.023394515737891197,
0.01131237018853426,
-0.017370177432894707,
-0.06787421554327011,
0.00022931185958441347,
-0.03922513872385025,
-0.062351908534765244,
-0.03698274865746498,
0.012065412476658821,
-0.0018449538620188832,
-0.03668152913451195,
0.044713981449604034,
-0.018223624676465988,
0.016031434759497643,
-0.033970579504966736,
-0.0415010005235672,
0.005484658759087324,
0.007714500650763512,
0.012483769096434116,
0.005731489043682814,
0.020466018468141556,
-0.005576697178184986,
-0.019344821572303772,
0.004798553418368101,
0.013663535006344318,
-0.0004894775338470936,
0.006593304220587015,
-0.05518963932991028,
-0.10268151015043259,
-0.06348983943462372,
-0.05318152531981468,
-0.020800704136490822,
0.031677983701229095,
0.06385799497365952,
0.006689526606351137,
-0.031410232186317444,
0.037919867783784866,
-0.05900505185127258,
0.08112776279449463,
0.009588739834725857,
-0.029653135687112808,
0.03547666221857071,
-0.0473245307803154,
0.05080525949597359,
-0.022105976939201355,
0.034121185541152954,
-0.01535369735211134,
0.010860544629395008,
-0.08413993567228317,
-0.034154653549194336,
-0.030389443039894104,
0.007404916454106569,
0.009781183674931526,
0.008952837437391281,
0.043676458299160004,
-0.018725654110312462,
-0.07296144217252731,
-0.04561763256788254,
-0.011647054925560951,
-0.021637417376041412,
0.010040564462542534,
-0.05709734559059143,
-0.01994725503027439,
0.000718527939170599,
0.0353093184530735,
0.023361047729849815,
-0.058436088263988495,
-0.01807301677763462,
-0.0586034320294857,
0.017888939008116722,
-0.01078523974865675,
0.0296698696911335,
0.04384379833936691,
-0.0671713799238205,
-0.021436605602502823,
-0.034974634647369385,
-0.0025770782958716154,
-0.015914294868707657,
0.04213690385222435,
0.0522444061934948,
-0.028113581240177155,
-0.03551013022661209,
-0.0424046516418457,
0.00030879967380315065,
0.005982503294944763,
0.07570585608482361,
-0.061515193432569504,
-0.026607496663928032,
-0.01578042097389698,
-0.06449389457702637,
-0.005915566347539425,
-0.007170636672526598,
-0.0011410684091970325,
-0.034941166639328,
-0.030004555359482765,
0.024013685062527657,
-0.016299184411764145,
0.040998972952365875,
-0.048696741461753845,
-0.042839743196964264,
-0.016332652419805527,
-0.03308366239070892,
-0.006990743335336447,
-0.05234481021761894,
0.024331634864211082,
-0.041601408272981644,
0.051876250654459,
-0.004689780529588461,
0.024013685062527657,
0.0618833489716053,
0.022172914817929268,
0.04397767409682274,
-0.022490864619612694,
0.01787220500409603,
-0.06794115900993347,
0.003438893472775817,
0.005969952791929245,
-0.007965514436364174,
0.0033949660137295723,
-0.00871018972247839,
-0.03201266750693321,
0.031677983701229095,
0.010818708688020706,
0.0609796978533268,
-0.017704863101243973,
0.009806284680962563,
-0.02864907868206501,
0.027293602004647255,
0.006024338770657778,
-0.009622207842767239,
0.03179512172937393,
-0.0012895850231871009,
-0.04913182929158211,
-0.012525605037808418,
-0.030406177043914795,
0.011287268251180649,
0.022758614271879196,
0.04725759103894234,
-0.027343805879354477,
-0.005041200201958418,
-0.0373174324631691,
-0.04384379833936691,
-0.04545028880238533,
0.005216910038143396,
-0.02411409094929695,
-0.020616626366972923,
0.0338534377515316,
-0.0602433905005455,
-0.012818454764783382,
0.008383871987462044,
0.011421142145991325,
0.016851413995027542,
-0.02510141208767891,
0.03423832729458809,
0.05662878602743149,
0.019763179123401642,
-0.030824534595012665,
0.03681540489196777,
-0.029385386034846306,
0.011161761358380318,
0.008442441932857037,
0.020700298249721527,
0.023712467402219772,
0.001041185692884028,
-0.00010060175554826856,
0.020281940698623657,
-0.003472361946478486,
-0.01368863694369793,
-0.056126758456230164,
0.015663281083106995,
-0.028113581240177155,
0.03571094200015068,
-0.03966023027896881,
0.030456380918622017,
-0.04381033033132553,
0.0045140706934034824,
0.03129309415817261,
-0.028732750564813614,
0.009053242392838001,
-0.045751508325338364,
-0.016868149861693382,
-0.0027444211300462484,
0.027962973341345787,
-0.036045629531145096,
0.09879916161298752,
0.01027484517544508,
0.011270534247159958,
0.030858002603054047,
0.025820985436439514,
0.048060838133096695,
0.0015845266170799732,
-0.030824534595012665,
-0.015989599749445915,
0.009279155172407627,
-0.024967538192868233,
-0.008070103824138641,
-0.022072508931159973,
-0.05144116282463074,
-0.014558819122612476,
-0.07758010178804398,
-0.008852431550621986,
0.01318660844117403,
0.02136966958642006,
0.048295117914676666,
0.017370177432894707,
-0.0172028336673975,
0.0026774839498102665,
0.008337852545082569,
0.02846500091254711,
-0.025636909529566765,
-0.0037087337113916874,
0.002462030155584216,
0.03959329426288605,
0.0336693599820137,
0.00040711351903155446,
0.02324390783905983,
0.03251469507813454,
-0.033937107771635056,
-0.02680830843746662,
0.018139954656362534,
-0.009270788170397282,
0.0527799017727375,
0.035610537976026535,
-0.0070702312514185905,
0.0018533209804445505,
-0.048864081501960754,
0.02409735508263111,
0.039994917809963226,
0.02259127050638199,
0.03301672264933586,
-0.04464704543352127,
0.024365104734897614,
0.0024515711702406406,
-0.0544198602437973,
0.015437368303537369,
0.06881133466959,
-0.0013125946279615164,
0.02635648287832737,
0.007488587871193886,
-0.055925946682691574,
-0.043509114533662796,
-0.05381742864847183,
0.01690998487174511,
0.020700298249721527,
-0.028314393013715744,
0.054687611758708954,
-0.03328447416424751,
-0.05234481021761894,
0.015487571246922016,
-0.016140207648277283,
0.01535369735211134,
0.00488640833646059,
0.0034681784454733133,
0.020616626366972923,
-0.0016295000677928329,
-0.028565406799316406,
-0.018390968441963196,
-0.012165817432105541,
0.010299946181476116,
0.005526494234800339,
0.024984272196888924,
0.014090259559452534,
0.012082146480679512,
0.01483493484556675,
0.04417848587036133,
0.022089242935180664,
-0.050504039973020554,
0.030422911047935486,
-0.017470583319664,
-0.0029033967293798923,
-0.00535078439861536,
-0.025820985436439514,
0.06164906919002533,
-0.00032945603015832603,
0.04856286570429802,
-0.01867545023560524,
0.018541576340794563,
-0.015947764739394188,
0.005714755039662123,
0.012525605037808418,
0.0018941106973215938,
-0.004719065502285957,
-0.03922513872385025,
0.04009532183408737,
0.01579715497791767,
-0.051173411309719086,
0.05703040957450867,
0.01422413345426321,
-0.005949034821242094,
0.04046347737312317,
-0.013613332994282246,
-0.06211762875318527,
-0.01254233904182911,
0.023946747183799744,
0.029151106253266335,
0.0003004325262736529,
0.04464704543352127,
0.009245687164366245,
-0.029569463804364204,
0.008049186319112778,
-0.007919495925307274,
0.041835688054561615,
-0.01027484517544508,
0.021670885384082794,
0.04213690385222435,
-0.015587977133691311,
-0.01849137432873249,
0.06472817808389664,
0.002752788132056594,
-0.02699238620698452,
-0.011571750976145267,
-0.06994926929473877,
0.00922895222902298,
0.0028490102849900723,
0.07537117600440979,
0.037451308220624924,
0.052579089999198914,
0.023143501952290535
] |
722,954
|
gitdb.stream
|
write
|
:raise IOError: If not all bytes could be written
:param data: byte object
:return: length of incoming data
|
def write(self, data):
""":raise IOError: If not all bytes could be written
:param data: byte object
:return: length of incoming data"""
self.sha1.update(data)
return len(data)
|
(self, data)
|
[
-0.0764865130186081,
-0.01894763670861721,
0.007755656260997057,
0.09492957592010498,
0.048091158270835876,
0.009595612995326519,
-0.0630543977022171,
0.015493912622332573,
0.010230679996311665,
-0.04603806138038635,
0.03977438062429428,
0.003732110373675823,
0.003336280584335327,
-0.009865298867225647,
-0.004382402170449495,
-0.036886125802993774,
-0.001157041173428297,
0.005119689740240574,
0.020182974636554718,
0.03619016334414482,
0.0066464622505009174,
0.04569007828831673,
0.029247913509607315,
-0.024010781198740005,
-0.03025706298649311,
0.011022340506315231,
0.03138800710439682,
0.02173149585723877,
0.0469428151845932,
0.004212760832160711,
-0.05306730419397354,
-0.0437413789331913,
0.054702822118997574,
0.005197986029088497,
0.05480721592903137,
-0.008316777646541595,
0.01242296863347292,
-0.04311500862240791,
-0.016102882102131844,
0.022375263273715973,
-0.013997589237987995,
0.033249709755182266,
-0.03754729405045509,
-0.034711237996816635,
0.047917164862155914,
0.024863336235284805,
-0.025472305715084076,
0.094094417989254,
-0.0037864826153963804,
-0.032692939043045044,
-0.040887922048568726,
0.023871587589383125,
0.0047978064976632595,
0.0007992719183675945,
0.10787452012300491,
0.04450694099068642,
0.03208396956324577,
0.0031079170294106007,
-0.03493742644786835,
0.05699950456619263,
0.009047540836036205,
-0.028952129185199738,
0.021714096888899803,
-0.1101016104221344,
-0.008186284452676773,
0.028256164863705635,
-0.007416373118758202,
0.004863053094595671,
0.006968345958739519,
0.018460461869835854,
0.010030590929090977,
0.027038225904107094,
-0.021696697920560837,
0.05480721592903137,
-0.025628898292779922,
0.08024472743272781,
0.07011843472719193,
0.04492451623082161,
0.031179215759038925,
0.019382614642381668,
0.060966502875089645,
-0.08685638755559921,
0.04603806138038635,
0.0469428151845932,
-0.004915250465273857,
0.011796601116657257,
-0.02068754844367504,
0.025141723453998566,
-0.080662302672863,
-0.03831285238265991,
-0.0013516938779503107,
0.04562048241496086,
0.024758942425251007,
0.0019878491293638945,
0.08219342678785324,
-0.06500309705734253,
-0.029160918667912483,
0.027629796415567398,
0.0009303090046159923,
0.042627833783626556,
-0.04603806138038635,
0.100706085562706,
0.0357377864420414,
-0.017590506002306938,
-0.007059691473841667,
-0.04440254345536232,
0.001782321953214705,
0.03559859097003937,
-0.06169726699590683,
-0.014597858302295208,
0.014023687690496445,
-0.05679071694612503,
-0.005076192319393158,
-0.03966998681426048,
-0.0017518735257908702,
-0.0031361905857920647,
0.029282713308930397,
0.0031274911016225815,
0.02564629726111889,
0.017686201259493828,
0.05383286625146866,
0.0468384213745594,
0.0550508052110672,
-0.021470509469509125,
0.04596846550703049,
0.005006595514714718,
-0.013649607077240944,
-0.008951845578849316,
-0.02394118346273899,
-0.03632935509085655,
0.010265478864312172,
0.05759107321500778,
0.04868272691965103,
0.03389347717165947,
-0.019713198766112328,
-0.010813551023602486,
0.03486783057451248,
0.012875346466898918,
-0.0275775995105505,
-0.03507661819458008,
0.033110518008470535,
-0.04718640446662903,
0.010474268347024918,
0.009169334545731544,
0.06037493422627449,
0.032066572457551956,
0.0014952365309000015,
-0.005032694432884455,
-0.0011124559678137302,
0.00006507677608169615,
0.007638211827725172,
-0.015476513653993607,
0.024167371913790703,
0.023593202233314514,
0.001519160345196724,
0.010230679996311665,
-0.018443062901496887,
-0.08922266960144043,
-0.07036202400922775,
-0.01853005960583687,
-0.02220127172768116,
-0.018303871154785156,
0.004428075160831213,
0.000909647555090487,
-0.017938489094376564,
0.014014988206326962,
-0.06510749459266663,
0.03333670645952225,
0.02178369276225567,
-0.017312120646238327,
0.004602066241204739,
0.034763433039188385,
0.012362072244286537,
0.024254368618130684,
0.026081275194883347,
0.02601167932152748,
-0.030935628339648247,
-0.05063143000006676,
-0.004073568154126406,
-0.035424601286649704,
-0.06528148055076599,
-0.027925580739974976,
0.024637147784233093,
0.027421006932854652,
0.004404151346534491,
-0.010587362572550774,
-0.02253185585141182,
0.04005276411771774,
0.013806198723614216,
-0.003782132873311639,
-0.03486783057451248,
-0.039426397532224655,
-0.03331930935382843,
0.048056360334157944,
0.04457653686404228,
0.01960880309343338,
0.012240278534591198,
-0.0012777475640177727,
0.012318573892116547,
0.013510413467884064,
-0.016998937353491783,
-0.032640740275382996,
0.007929647341370583,
-0.03866083547472954,
-0.022914636880159378,
-0.010935344733297825,
0.07843521237373352,
0.08629961311817169,
-0.038904424756765366,
-0.056651521474123,
0.04436774551868439,
0.008260230533778667,
0.020113378763198853,
0.030187467113137245,
-0.0020161226857453585,
-0.08984903246164322,
0.011979291215538979,
-0.08713477104902267,
0.008799603208899498,
0.019313018769025803,
-0.004410676192492247,
0.0632631853222847,
-0.03370208665728569,
0.015276423655450344,
-0.02484593726694584,
-0.01598108746111393,
-0.006820453330874443,
0.011283326894044876,
0.011814000084996223,
-0.0057721566408872604,
0.023575803264975548,
0.04471572861075401,
0.04349778965115547,
0.058287039399147034,
0.005254533141851425,
-0.01913902722299099,
-0.02394118346273899,
0.006098390091210604,
-0.06876130402088165,
-0.00017249592929147184,
-0.06065331771969795,
-0.04638604447245598,
0.02907392382621765,
0.09117136895656586,
-0.01234467327594757,
-0.04774317517876625,
0.020113378763198853,
0.0015224226517602801,
0.0314750000834465,
-0.01536341942846775,
-0.02314082533121109,
-0.008660410530865192,
-0.06281080842018127,
-0.05873941630125046,
0.025820288807153702,
-0.0051370891742408276,
0.03180558606982231,
-0.04012236371636391,
0.0029382756911218166,
0.012083685956895351,
0.010752653703093529,
0.020113378763198853,
0.005445923190563917,
0.009856599383056164,
-0.014954539947211742,
-0.0438457727432251,
-0.0018519184086471796,
0.0067378077656030655,
-0.023732393980026245,
0.030152669176459312,
-0.018582256510853767,
-0.014406467787921429,
0.009064939804375172,
-0.013971490785479546,
-0.012214179150760174,
-0.0583566352725029,
0.09562554210424423,
0.0234714075922966,
0.04412415996193886,
0.0009460769360885024,
0.06350677460432053,
0.050039857625961304,
0.01192709431052208,
-0.05720829591155052,
0.008238481357693672,
0.03799967095255852,
0.020617952570319176,
0.022131675854325294,
-0.07081440091133118,
-0.03025706298649311,
-0.010743954218924046,
0.0026403157971799374,
-0.03841724991798401,
0.020061181858181953,
0.01668575219810009,
0.020061181858181953,
-0.03765168786048889,
0.04816075414419174,
0.061871256679296494,
-0.03855644166469574,
-0.05581636354327202,
-0.00817758496850729,
-0.024393560364842415,
-0.0209659356623888,
-0.06340237706899643,
-0.052858516573905945,
0.023628000169992447,
-0.019452212378382683,
-0.03218836337327957,
-0.027403607964515686,
-0.013406018726527691,
0.027508003637194633,
-0.006933548022061586,
0.01927822083234787,
0.04457653686404228,
-0.013980190269649029,
0.03204917162656784,
0.03293652832508087,
-0.027751591056585312,
0.04151429235935211,
0.009978393092751503,
-0.01806028187274933,
0.036781731992959976,
-0.042071063071489334,
0.01432817243039608,
-0.016424765810370445,
0.053624074906110764,
-0.013962790369987488,
0.010013191029429436,
-0.06420274078845978,
-0.022427460178732872,
-0.01644216477870941,
0.07495539635419846,
-0.02794298157095909,
-0.04189707338809967,
-0.04628165066242218,
0.01739041693508625,
-0.03173598647117615,
-0.023506205528974533,
0.012083685956895351,
-0.009700007736682892,
0.02228826843202114,
0.08998823165893555,
-0.015250325202941895,
0.02294943481683731,
-0.018025483936071396,
-0.03831285238265991,
-0.03276253491640091,
-0.05386766418814659,
0.03646854683756828,
0.014684854075312614,
0.019904589280486107,
0.02206207998096943,
-0.03140540421009064,
0.061906054615974426,
-0.03215356543660164,
0.02087893895804882,
-0.04492451623082161,
0.009604312479496002,
0.018512658774852753,
-0.002992647932842374,
0.010743954218924046,
-0.021139925345778465,
-0.0032101368997246027,
-0.03671213611960411,
-0.00855601578950882,
-0.04892631620168686,
0.03866083547472954,
0.021557504311203957,
0.03674693405628204,
-0.010108886286616325,
-0.05640793591737747,
-0.055537980049848557,
-0.062950000166893,
0.03646854683756828,
0.005837403703480959,
0.02427176758646965,
0.003940899856388569,
-0.033162716776132584,
-0.05136219039559364,
-0.011083236895501614,
-0.017747098580002785,
-0.036224961280822754,
-0.013310323469340801,
0.025159122422337532,
0.01242296863347292,
-0.02002638205885887,
-0.012736152857542038,
0.002775158965960145,
0.07084920257329941,
-0.036364153027534485,
0.047047208994627,
0.015633106231689453,
-0.025611499324440956,
-0.0388348288834095,
0.04669922962784767,
0.012692655436694622,
0.022166473791003227,
-0.020617952570319176,
-0.0022444860078394413,
0.002705562626942992,
-0.013980190269649029,
0.034050069749355316,
0.040609538555145264,
0.0093346256762743,
-0.012431668117642403,
0.0029665492475032806,
-0.04370658099651337,
-0.013580010272562504,
0.0023380061611533165,
-0.05821744352579117,
0.07940956950187683,
0.039148010313510895,
0.004728209692984819,
0.0178688932210207,
-0.016433464363217354,
0.054180849343538284,
-0.07599934190511703,
0.024706745520234108,
0.02813437022268772,
-0.03977438062429428,
0.00841682218015194,
0.05317169800400734,
0.08379414677619934,
0.0038778281304985285,
-0.04113151133060455,
-0.02691643312573433,
-0.019643602892756462,
-0.03050065040588379,
0.034380652010440826,
0.026046477258205414,
-0.02851715125143528,
0.01034377422183752,
0.01880844496190548,
-0.0283257607370615,
-0.007037942297756672,
-0.02225347049534321,
-0.04948308691382408,
0.030326658859848976,
0.029387107118964195,
0.05118820071220398,
-0.003771258518099785,
0.011918394826352596,
-0.011814000084996223,
-0.013701803982257843,
-0.028743339702486992,
0.0013375570997595787,
-0.02294943481683731,
0.02371499501168728,
0.02719481848180294,
0.010813551023602486,
-0.058843810111284256,
-0.030953027307987213,
-0.023628000169992447,
-0.0186170544475317,
-0.00911713670939207,
-0.03105742298066616,
-0.02049615979194641,
-0.02319302223622799,
-0.07161476463079453,
-0.02771679125726223,
0.046072859317064285,
0.026133472099900246,
0.008016643114387989,
-0.020339567214250565,
-0.05860022455453873,
-0.05376327037811279,
-0.012170681729912758,
0.023575803264975548,
-0.027073025703430176,
0.01129202637821436,
0.04335859790444374,
0.0029752489645034075,
0.02162710204720497,
0.04067913442850113,
-0.00712928781285882,
0.004915250465273857,
0.001533297123387456,
-0.04189707338809967,
-0.01729472167789936,
0.0006883525638841093,
0.018982436507940292,
0.04649043828248978,
0.0013092835433781147,
-0.01593759097158909,
-0.06479430943727493,
0.00011513321078382432,
-0.044750526547431946,
0.032257962971925735,
0.00735112652182579,
0.03347589820623398,
-0.015850594267249107,
-0.03657294064760208,
-0.022044681012630463,
-0.012797050178050995,
0.0005845015402883291,
0.009987092576920986,
-0.0347808338701725,
-0.08073189854621887,
-0.03946119546890259,
-0.060444530099630356,
0.005519869737327099,
0.050318244844675064,
-0.02521131932735443,
0.005880901124328375,
-0.0029382756911218166,
0.01442386768758297,
-0.03671213611960411,
0.05275411903858185,
0.018773647025227547,
-0.05720829591155052,
0.007899198681116104,
0.01880844496190548,
0.030605046078562737,
0.012144583277404308,
0.017025034874677658,
0.0073859249241650105,
0.004045294597744942,
-0.1117023229598999,
-0.014876244589686394,
-0.05278891697525978,
0.031144417822360992,
0.03180558606982231,
-0.014249876141548157,
-0.015772297978401184,
-0.013745301403105259,
-0.005393725819885731,
-0.07711288332939148,
-0.0390436165034771,
0.03692092373967171,
-0.021748894825577736,
0.01114413421601057,
0.012292475439608097,
-0.01284054759889841,
0.0015409091720357537,
0.0003338455280754715,
-0.01842566393315792,
-0.015111132524907589,
-0.014858845621347427,
-0.03540720045566559,
-0.00782090239226818,
-0.04057474061846733,
0.006272381171584129,
-0.05320649594068527,
-0.07039682567119598,
0.04572487622499466,
-0.0063985250890254974,
-0.025472305715084076,
-0.002416302217170596,
-0.007733907084912062,
-0.04983107000589371,
-0.022705847397446632,
0.022601451724767685,
0.02427176758646965,
0.03629455715417862,
-0.013701803982257843,
0.029543699696660042,
-0.013310323469340801,
0.007847001776099205,
0.03751249611377716,
0.026690244674682617,
-0.0035581192933022976,
0.0162159763276577,
-0.0029382756911218166,
-0.008986643515527248,
0.012875346466898918,
0.007603413891047239,
-0.05212775245308876,
-0.030883431434631348,
-0.002136829076334834,
-0.00990009680390358,
0.07217153161764145,
-0.0419318713247776,
-0.02446315810084343,
0.04283662512898445,
-0.030222265049815178,
-0.09931415319442749,
0.02653365209698677,
0.004815205466002226,
-0.06897009909152985,
-0.014710952527821064,
-0.006102739833295345,
-0.0437413789331913,
-0.004628164693713188,
0.03058764711022377,
-0.0018856292590498924,
-0.012014090083539486,
0.023645399138331413,
-0.051675375550985336,
0.03587697818875313,
-0.04586407169699669,
-0.0517449714243412,
-0.022827640175819397,
-0.03653814271092415,
0.02093113772571087,
0.04631644859910011,
0.007638211827725172,
-0.04603806138038635,
0.021609703078866005,
0.006663861684501171,
0.016346469521522522,
0.030326658859848976,
-0.055155199021101,
0.040226757526397705,
0.013379920274019241,
0.0332845076918602,
-0.06549027562141418,
0.10168043524026871,
0.01716422848403454,
-0.014884944073855877,
0.001626817393116653,
0.042767029255628586,
0.03445025160908699,
-0.013675705529749393,
-0.03973958268761635,
0.04708200693130493,
0.009221531450748444,
-0.006720408797264099,
0.012092385441064835,
0.06340237706899643,
0.014858845621347427,
0.003649464575573802,
-0.02738620899617672,
-0.016720550134778023,
-0.06141887977719307,
0.03352809697389603,
-0.0020324343349784613,
0.08894427865743637,
-0.03177078440785408,
-0.06841332465410233,
-0.029352309182286263,
0.008325477130711079,
-0.0015713577158749104,
0.029421905055642128,
0.08852670341730118,
0.0166422538459301,
-0.07975754886865616,
0.004423725418746471,
0.008429871872067451,
0.01790369115769863,
0.08059270679950714,
0.028029976412653923,
0.0023923784028738737,
-0.028812935575842857,
0.01432817243039608,
0.05383286625146866,
0.03706011921167374,
0.0008150398498401046,
-0.0746770054101944,
-0.04325420409440994,
0.01552871149033308,
-0.027264414355158806,
0.06020094081759453,
0.04826514795422554,
0.07899198681116104,
-0.015406917780637741,
0.09437280893325806,
-0.0026011678855866194,
-0.023488806560635567,
-0.04151429235935211,
0.0008846363052725792,
-0.019504409283399582,
0.045794472098350525,
-0.04245384410023689,
0.010735254734754562,
0.011535613797605038,
0.034519847482442856,
-0.03411966562271118,
0.014789248816668987,
-0.012457767501473427,
-0.019382614642381668,
0.07182355225086212,
-0.008020992390811443,
0.024532753974199295,
0.05414605140686035,
-0.02870854176580906,
0.055155199021101,
-0.030518049374222755,
0.005880901124328375,
0.05094461143016815,
-0.06531628221273422,
-0.018982436507940292,
-0.012074986472725868,
-0.062288835644721985,
0.04589886963367462,
0.07314588129520416,
-0.0024228268302977085,
-0.021696697920560837,
-0.011405120603740215,
-0.014432567171752453,
0.0027033877559006214,
-0.04990066587924957,
-0.00008584016904933378,
-0.000973263056948781,
-0.03544199839234352,
-0.0013060211203992367,
-0.005263232626020908,
0.03946119546890259,
-0.040470343083143234,
-0.04370658099651337,
0.03408486768603325,
0.0389392226934433,
0.045829273760318756,
0.003064419375732541,
-0.014467365108430386,
-0.030326658859848976,
-0.017460012808442116,
-0.020235171541571617,
0.029091322794556618,
-0.015807097777724266,
0.005237134173512459,
0.03331930935382843,
-0.013310323469340801,
0.010369873605668545,
-0.010961443185806274,
0.035702984780073166,
-0.05292811244726181,
0.033997874706983566,
-0.008408122695982456,
0.02441095933318138,
-0.02115732617676258,
0.03361509367823601,
0.026133472099900246,
-0.028430156409740448,
-0.0567559152841568,
-0.07244992256164551,
0.0023249569348990917,
-0.022914636880159378,
0.0141367819160223,
0.03897402063012123,
-0.013353821821510792,
-0.06350677460432053,
0.008125387132167816,
-0.009743505157530308,
-0.0015887568006291986,
0.03152719885110855,
-0.015859294682741165,
-0.02371499501168728,
0.025367911905050278,
0.0043976265005767345,
0.056059952825307846,
0.02468934655189514,
-0.0020269970409572124,
-0.054320041090250015,
0.08922266960144043,
-0.04506371170282364,
0.017703600227832794,
0.03657294064760208,
0.0017377367476001382,
0.0074424720369279385,
-0.004863053094595671,
0.014128082431852818,
-0.07669530063867569,
-0.024724144488573074,
0.03706011921167374,
0.033441100269556046,
-0.04930909350514412,
0.04656003415584564,
0.02639445848762989,
0.011970591731369495,
0.026185669004917145,
-0.01592889055609703,
-0.004793456289917231,
0.015467814169824123,
0.022305667400360107,
0.051918961107730865,
0.016694452613592148,
0.05358927696943283
] |
722,955
|
gitdb.stream
|
ZippedStoreShaWriter
|
Remembers everything someone writes to it and generates a sha
|
class ZippedStoreShaWriter(Sha1Writer):
"""Remembers everything someone writes to it and generates a sha"""
__slots__ = ('buf', 'zip')
def __init__(self):
Sha1Writer.__init__(self)
self.buf = BytesIO()
self.zip = zlib.compressobj(zlib.Z_BEST_SPEED)
def __getattr__(self, attr):
return getattr(self.buf, attr)
def write(self, data):
alen = Sha1Writer.write(self, data)
self.buf.write(self.zip.compress(data))
return alen
def close(self):
self.buf.write(self.zip.flush())
def seek(self, offset, whence=getattr(os, 'SEEK_SET', 0)):
"""Seeking currently only supports to rewind written data
Multiple writes are not supported"""
if offset != 0 or whence != getattr(os, 'SEEK_SET', 0):
raise ValueError("Can only seek to position 0")
# END handle offset
self.buf.seek(0)
def getvalue(self):
""":return: string value from the current stream position to the end"""
return self.buf.getvalue()
|
()
|
[
-0.020647365599870682,
-0.01388844195753336,
-0.023117991164326668,
0.06822454184293747,
0.07168342173099518,
-0.02906513772904873,
-0.08336594700813293,
0.046412453055381775,
-0.008488361723721027,
-0.011982531286776066,
0.061342086642980576,
0.05957735702395439,
-0.02331211045384407,
0.042035918682813644,
-0.029735736548900604,
0.00030910386703908443,
-0.021388553082942963,
0.051071345806121826,
0.0022158417850732803,
0.039177052676677704,
0.029965151101350784,
0.03171223774552345,
0.02634745091199875,
0.03386520966887474,
-0.027053343132138252,
-0.02565920539200306,
0.012106061913073063,
-0.004125061444938183,
0.02805924043059349,
-0.011232519522309303,
-0.005541258957237005,
-0.09247196465730667,
0.03487110510468483,
0.022270919755101204,
0.05463610589504242,
-0.06829513609409332,
0.0070853992365300655,
0.05809498205780983,
0.012503126636147499,
-0.03677701577544212,
0.06681276112794876,
0.03518875688314438,
0.014276682399213314,
-0.048812489956617355,
0.03003573976457119,
0.04058883711695671,
-0.02174150012433529,
0.03607112541794777,
-0.007914823479950428,
-0.03476522117853165,
0.0033926975447684526,
0.03072398528456688,
0.029788678511977196,
-0.008691305294632912,
0.08477772772312164,
0.04316534847021103,
0.04507125914096832,
0.016023768112063408,
-0.008241298608481884,
0.015803176909685135,
-0.01791203022003174,
-0.017373787239193916,
0.08738953620195389,
-0.024618012830615044,
-0.031394585967063904,
-0.01370314508676529,
-0.03160635381937027,
-0.026329802349209785,
-0.011620760895311832,
0.05004780367016792,
0.01667671836912632,
-0.024935664609074593,
-0.013579613529145718,
0.036141712218523026,
-0.052306659519672394,
0.09635437279939651,
-0.047153640538454056,
0.030529865995049477,
0.01764732040464878,
-0.03741231933236122,
0.019288521260023117,
-0.07447169721126556,
0.0012275917688384652,
0.012564892880618572,
0.002433124464005232,
-0.010914867743849754,
0.02280033938586712,
-0.003964029718190432,
0.006547156255692244,
-0.007173635996878147,
-0.04030648246407509,
0.057247910648584366,
0.0018331154715269804,
-0.013067841529846191,
0.03677701577544212,
-0.08054237067699432,
-0.01782379485666752,
0.007138341199606657,
-0.038082920014858246,
0.06282446533441544,
-0.028712190687656403,
0.03344167396426201,
-0.01320019643753767,
0.015309050679206848,
-0.027053343132138252,
0.006551567930728197,
0.019359111785888672,
-0.026294508948922157,
-0.046235982328653336,
-0.02225327119231224,
-0.0015816411469131708,
-0.0634244754910469,
0.004720658529549837,
-0.05396550893783569,
-0.016226712614297867,
-0.02631215564906597,
-0.018759101629257202,
0.004773600492626429,
0.0004036824684590101,
-0.03035339154303074,
0.09106017649173737,
0.03822409734129906,
0.007438345812261105,
0.02299445867538452,
-0.0012143562780693173,
-0.0006557082524523139,
0.012609010562300682,
-0.036882899701595306,
-0.006900102365761995,
0.0005090149352326989,
-0.0075089349411427975,
0.0748952329158783,
-0.00507801678031683,
0.039918240159749985,
0.016253182664513588,
0.004041236359626055,
0.0015220814384520054,
0.02431800775229931,
-0.07588347792625427,
0.04905955120921135,
0.03012397699058056,
-0.046271275728940964,
0.03529464080929756,
-0.0089957220479846,
-0.01305901724845171,
0.024582717567682266,
-0.01819438859820366,
-0.031253404915332794,
0.02285328134894371,
-0.04468301683664322,
0.027300406247377396,
-0.015159049071371555,
0.00699275080114603,
0.08202474564313889,
0.01787673681974411,
-0.02542978897690773,
-0.015114930458366871,
0.02717687375843525,
-0.033053431659936905,
0.017435552552342415,
-0.007301579229533672,
0.01921793259680271,
0.0027618056628853083,
-0.037200551480054855,
-0.0371299646794796,
0.0038052035961300135,
-0.008603068999946117,
0.017920855432748795,
-0.014894339255988598,
-0.010314859449863434,
0.016314947977662086,
0.02059442363679409,
-0.01476198434829712,
0.04951838403940201,
-0.006428036838769913,
0.03868292644619942,
-0.04916543513536453,
0.0024860664270818233,
-0.004248592536896467,
-0.03123575821518898,
-0.04365947097539902,
-0.03617700934410095,
-0.0549890510737896,
0.025129785761237144,
0.035682883113622665,
-0.0035669647622853518,
0.023559173569083214,
0.01667671836912632,
0.08738953620195389,
-0.02285328134894371,
-0.05763614922761917,
-0.004003736190497875,
-0.0280062984675169,
-0.023417994379997253,
0.043094757944345474,
0.01870615966618061,
0.003240489400923252,
-0.07644819468259811,
0.03850645571947098,
0.00939719844609499,
-0.058942053467035294,
0.033882856369018555,
0.032135773450136185,
-0.06113031879067421,
-0.014735513366758823,
0.014682571403682232,
0.05477728322148323,
0.01833556592464447,
-0.09268373250961304,
0.008201592601835728,
0.07468346506357193,
0.0036177008878439665,
-0.012238416820764542,
0.0736246258020401,
-0.003858145559206605,
-0.09451904892921448,
0.0033816678915172815,
-0.0052633136510849,
0.0842130184173584,
0.028623955324292183,
0.022923870012164116,
0.002980191260576248,
-0.08195415884256363,
0.037659384310245514,
0.02408859319984913,
-0.002918425714597106,
0.06003618612885475,
-0.04009471461176872,
-0.04238886386156082,
-0.02257092297077179,
0.027388641610741615,
-0.0427418127655983,
0.02414153516292572,
0.033053431659936905,
-0.008528067730367184,
-0.029012195765972137,
-0.007663349155336618,
-0.03755350038409233,
-0.02777688391506672,
-0.009794263169169426,
-0.00022789860668126494,
-0.030441628769040108,
0.0748952329158783,
0.054883167147636414,
-0.017629673704504967,
-0.03935352712869644,
-0.01967676356434822,
0.04288299009203911,
0.011417816393077374,
-0.013553142547607422,
0.0038118213415145874,
0.037518203258514404,
-0.02156502567231655,
-0.04041236639022827,
0.06345976889133453,
-0.04330652579665184,
0.014294330030679703,
-0.06215386465191841,
0.00684274872764945,
-0.013650203123688698,
-0.026788633316755295,
-0.04365947097539902,
0.007848646491765976,
-0.04238886386156082,
0.02027677185833454,
-0.02114148996770382,
0.013120783492922783,
-0.059083230793476105,
-0.024812133982777596,
0.047788944095373154,
0.07076575607061386,
-0.0066177453845739365,
-0.017779676243662834,
0.020117945969104767,
-0.022976811975240707,
-0.04362417757511139,
0.05396550893783569,
0.022235624492168427,
-0.025323905050754547,
0.019694410264492035,
0.02920631691813469,
-0.0012904603499919176,
0.019288521260023117,
-0.035224054008722305,
0.04831836372613907,
0.036424070596694946,
0.029365142807364464,
0.004085354972630739,
0.008016295731067657,
-0.044753607362508774,
0.017726734280586243,
0.06254210323095322,
-0.047788944095373154,
-0.05580082908272743,
0.005157429724931717,
-0.00011732710845535621,
-0.0755305364727974,
-0.023135637864470482,
0.05978912487626076,
-0.03587700426578522,
-0.07510700076818466,
0.0032846075482666492,
-0.018176740035414696,
-0.0010979942744597793,
-0.016412008553743362,
-0.016800248995423317,
-0.0015981855103746057,
0.01207076758146286,
-0.00519272405654192,
0.03457110375165939,
0.016253182664513588,
0.02182973548769951,
-0.040518250316381454,
-0.023735646158456802,
-0.018776750192046165,
-0.0023404760286211967,
0.05255372077226639,
0.008947191759943962,
-0.046730104833841324,
0.0868954062461853,
-0.046694811433553696,
0.0006430242792703211,
-0.03363579511642456,
-0.055589061230421066,
0.02428271435201168,
-0.022870928049087524,
-0.011364874430000782,
-0.01898851804435253,
0.017841441556811333,
0.02640039287507534,
-0.07778938859701157,
0.02911807969212532,
0.04178885743021965,
0.026135683059692383,
-0.0075574652291834354,
0.028412187471985817,
0.018741454929113388,
-0.010561921633780003,
0.0015695085749030113,
-0.05738908797502518,
0.034906402230262756,
-0.008806013502180576,
0.015626702457666397,
0.007504523266106844,
-0.07182459533214569,
-0.022182682529091835,
-0.022447392344474792,
-0.030071035027503967,
-0.032312244176864624,
0.039635881781578064,
0.026241566985845566,
-0.02276504412293434,
-0.00036756059853360057,
0.018176740035414696,
0.08435419201850891,
-0.019464995712041855,
-0.013438435271382332,
-0.022059151902794838,
-0.008400124497711658,
-0.02502390183508396,
-0.018529687076807022,
-0.037800561636686325,
0.006785395089536905,
-0.009626613929867744,
-0.031765177845954895,
-0.02565920539200306,
0.012344300746917725,
0.0015264932299032807,
-0.006983927451074123,
0.01027074083685875,
0.008470714092254639,
-0.04062413424253464,
-0.030759280547499657,
-0.030529865995049477,
-0.012423713691532612,
-0.0105266273021698,
0.02408859319984913,
-0.010544274002313614,
-0.059542059898376465,
-0.042494747787714005,
0.044612426310777664,
0.018264977261424065,
0.03386520966887474,
0.040200598537921906,
0.019800294190645218,
0.0027551879175007343,
0.017338493838906288,
-0.017585555091500282,
0.025835677981376648,
0.06631863117218018,
0.003141223220154643,
0.014250211417675018,
-0.027670999988913536,
-0.047471292316913605,
0.012229593470692635,
0.02797100320458412,
-0.004478007555007935,
0.06458919495344162,
-0.06215386465191841,
0.012388419359922409,
0.022676806896924973,
-0.0775776207447052,
0.03194165229797363,
0.04930661618709564,
-0.0008310785051435232,
-0.04680069535970688,
0.018176740035414696,
-0.03882410749793053,
0.006079501938074827,
0.011991354636847973,
-0.017206137999892235,
0.01006779633462429,
0.030282802879810333,
-0.016253182664513588,
0.02620627172291279,
-0.013173725455999374,
0.03910646215081215,
-0.0948014110326767,
0.0017923060804605484,
0.04814189299941063,
0.00570008484646678,
0.08414242416620255,
-0.014911985956132412,
0.02542978897690773,
-0.002700040116906166,
-0.059542059898376465,
-0.024723896756768227,
-0.009900147095322609,
-0.052130185067653656,
0.023135637864470482,
0.05523611605167389,
-0.03663583844900131,
-0.017012016847729683,
0.03541817516088486,
0.0006998265744186938,
0.027670999988913536,
-0.021123843267560005,
-0.0009242784581147134,
0.006308917421847582,
0.05784791707992554,
0.03737702593207359,
0.0058897933922708035,
0.015335521660745144,
0.014479626901447773,
0.023206226527690887,
-0.016297301277518272,
-0.02505919523537159,
0.0510360524058342,
0.003028721548616886,
0.043235935270786285,
0.02248268760740757,
-0.000047254838136723265,
-0.04468301683664322,
-0.0013411963591352105,
-0.01375608704984188,
-0.036282893270254135,
0.00805159006267786,
-0.03621230274438858,
-0.019429700449109077,
-0.003708143252879381,
0.03194165229797363,
0.0032956372015178204,
0.026929812505841255,
-0.033565204590559006,
-0.03289460763335228,
-0.046094801276922226,
-0.009732497856020927,
0.003935352433472872,
0.01819438859820366,
-0.006683922838419676,
0.06158915162086487,
-0.0008283211500383914,
-0.053012553602457047,
0.024159181863069534,
0.024035651236772537,
-0.006710393819957972,
-0.012150180526077747,
-0.027388641610741615,
-0.039177052676677704,
-0.03308872878551483,
-0.06949514895677567,
0.0008840204682201147,
0.021917972713708878,
0.012732542119920254,
0.01695907488465309,
-0.05661260709166527,
0.09014251828193665,
-0.03340638056397438,
0.08287181705236435,
0.05160076543688774,
-0.007610407192260027,
0.029329847544431686,
-0.05837733671069145,
0.06829513609409332,
-0.017779676243662834,
0.018088504672050476,
-0.009353079833090305,
-0.005483904853463173,
-0.0993897095322609,
-0.053789034485816956,
-0.003458874998614192,
-0.020117945969104767,
0.006851572543382645,
-0.019835589453577995,
0.06384801119565964,
-0.019041460007429123,
-0.044577132910490036,
-0.051847830414772034,
-0.004484625533223152,
-0.021547378972172737,
-0.04030648246407509,
-0.04447124898433685,
-0.02708863839507103,
0.005395668558776379,
0.004411830101162195,
0.05022427439689636,
-0.038859400898218155,
-0.002576508792117238,
-0.048530131578445435,
-0.026682749390602112,
-0.017144372686743736,
0.058942053467035294,
0.002382388338446617,
-0.03510052338242531,
-0.041118256747722626,
-0.023559173569083214,
0.017091430723667145,
-0.0223944503813982,
0.031906355172395706,
0.025835677981376648,
-0.05188312381505966,
0.004870660603046417,
-0.03603582829236984,
-0.02482978068292141,
0.0649421438574791,
0.018547333776950836,
-0.03769467771053314,
-0.014682571403682232,
-0.005554494448006153,
-0.09600142389535904,
-0.02220032922923565,
-0.004760365001857281,
-0.019041460007429123,
-0.13094311952590942,
-0.05357726663351059,
0.03587700426578522,
-0.016147298738360405,
0.015229637734591961,
0.010182504542171955,
-0.0034853459801524878,
-0.04267122223973274,
-0.06416565924882889,
0.037024080753326416,
-0.0009728085715323687,
0.017356140539050102,
-0.02777688391506672,
-0.027035696431994438,
0.005188312381505966,
0.0007494596648029983,
0.058765579015016556,
0.06229504197835922,
0.08181297779083252,
-0.009944265708327293,
0.02031206712126732,
-0.030159272253513336,
0.037659384310245514,
0.08266004920005798,
-0.030882811173796654,
0.00045883035636506975,
0.010676628910005093,
-0.02571214735507965,
0.07076575607061386,
-0.014726689085364342,
0.0012331065954640508,
0.02008265070617199,
0.01045603770762682,
-0.025676852092146873,
-0.014400213956832886,
0.04496537521481514,
-0.027353348210453987,
0.03924764320254326,
0.028676897287368774,
-0.025676852092146873,
-0.05731849744915962,
0.04793012514710426,
0.010597215965390205,
0.005607436411082745,
0.07090693712234497,
-0.034906402230262756,
0.049765445291996,
-0.04390653595328331,
-0.047612473368644714,
-0.03146517276763916,
-0.05520081892609596,
0.03398874029517174,
-0.007080987561494112,
-0.008457479067146778,
-0.07327167689800262,
-0.004144914448261261,
0.03892999142408371,
-0.01605023816227913,
-0.025182727724313736,
-0.07270696014165878,
-0.0099530890583992,
0.04496537521481514,
0.0180532094091177,
-0.03924764320254326,
0.03555935248732567,
-0.04891837388277054,
0.015167872421443462,
-0.005307431798428297,
0.05156547203660011,
0.027423936873674393,
0.012909015640616417,
-0.02340034767985344,
0.013359022326767445,
-0.034024033695459366,
-0.04577714949846268,
-0.041577089577913284,
0.04514184594154358,
0.0024375361390411854,
0.008775130845606327,
-0.06861278414726257,
-0.009476611390709877,
-0.03656524792313576,
-0.01627965457737446,
0.04782424122095108,
0.08068355172872543,
0.007910411804914474,
0.0017139960546046495,
-0.02160032093524933,
0.029735736548900604,
0.08477772772312164,
-0.012953133322298527,
0.06003618612885475,
0.014417861588299274,
-0.0620126873254776,
0.02571214735507965,
-0.012079590931534767,
-0.01188547071069479,
0.011206048540771008,
-0.008797189220786095,
0.004769188351929188,
-0.045177143067121506,
-0.03836527466773987,
-0.03457110375165939,
0.08251887559890747,
-0.004888307768851519,
-0.04944779351353645,
-0.05993030220270157,
0.00013456081796903163,
-0.008431008085608482,
0.028253361582756042,
0.019359111785888672,
0.03217106685042381,
0.010508979670703411,
0.027953356504440308,
0.003558141179382801,
-0.00544861052185297,
-0.00830747652798891,
0.006833924911916256,
-0.05791850760579109,
0.03280637040734291,
0.023241521790623665,
0.04002412408590317,
0.02077089622616768,
-0.004508890677243471,
0.015864942222833633,
0.04845954477787018,
-0.020347360521554947,
0.00435447646304965,
0.04905955120921135,
-0.013923736289143562,
-0.034112270921468735,
0.008920720778405666,
-0.04524772986769676,
0.02528861165046692,
0.013764910399913788,
-0.032047536224126816,
0.018229681998491287,
-0.039635881781578064,
0.02068266086280346,
-0.00574861466884613,
0.006176562514156103,
0.031041637063026428,
0.05481258034706116,
-0.008400124497711658,
0.006083914078772068,
-0.03836527466773987,
-0.05442433804273605,
0.009900147095322609,
-0.034676987677812576,
0.03829468786716461,
-0.000020060040696989745,
-0.038082920014858246,
-0.027212169021368027,
0.02708863839507103,
-0.006392742041498423,
0.019606173038482666,
-0.06458919495344162,
0.013023722916841507,
0.0038912342861294746,
0.0756717100739479,
0.0137472627684474,
0.03187106177210808,
-0.019747352227568626,
-0.03155340999364853,
-0.019641468301415443,
0.019376758486032486,
0.00420447438955307,
-0.023435642942786217,
0.02202385663986206,
0.022782690823078156,
0.0688951388001442,
0.012317829765379429,
0.019923824816942215,
-0.012909015640616417,
0.032135773450136185,
0.009494259022176266,
0.0006921058520674706,
-0.016862016171216965,
0.04041236639022827,
-0.0019511319696903229,
0.004597126971930265,
-0.013138430193066597,
-0.05216548219323158,
-0.027388641610741615,
0.005651554558426142,
-0.010553098283708096,
0.040200598537921906,
-0.021953267976641655,
-0.03594759479165077,
0.00574861466884613,
0.015406111255288124,
0.014832573011517525,
0.004760365001857281,
0.01312960684299469,
-0.009300137870013714,
-0.022906223312020302,
0.038118213415145874,
0.02929455228149891,
-0.035682883113622665,
-0.017091430723667145,
0.033688735216856,
0.05657730996608734,
-0.04969485476613045,
0.03141223266720772,
0.03003573976457119,
-0.053012553602457047,
0.004155944101512432,
0.04930661618709564,
-0.0062427399680018425,
-0.040835902094841,
0.05449492856860161,
0.05565965175628662,
-0.020982664078474045,
-0.01057074498385191,
0.0016511274734511971,
-0.010323682799935341,
-0.011364874430000782,
-0.00997073668986559,
-0.05689496174454689,
-0.02662980742752552,
-0.02929455228149891,
0.08266004920005798,
0.04288299009203911,
-0.018229681998491287,
0.046235982328653336
] |
722,956
|
gitdb.stream
|
__getattr__
| null |
def __getattr__(self, attr):
return getattr(self.buf, attr)
|
(self, attr)
|
[
0.06609181314706802,
-0.02351813018321991,
-0.028404168784618378,
0.02205231972038746,
0.013013148680329323,
-0.02065165527164936,
0.04843692481517792,
0.04830663278698921,
0.017231428995728493,
-0.013876348733901978,
0.0024084097240120173,
0.023176107555627823,
0.00253666820935905,
0.0362544022500515,
-0.043974343687295914,
0.0667107105255127,
-0.01047240849584341,
-0.0015472454251721501,
-0.0030843117274343967,
0.06078231707215309,
-0.010830718092620373,
0.03213384374976158,
-0.00814339704811573,
0.023599565029144287,
-0.0001921332732308656,
0.08071735501289368,
0.0224594883620739,
-0.049218691885471344,
0.08514735847711563,
-0.02586342953145504,
-0.004955257289111614,
-0.08547309786081314,
0.03745962679386139,
0.0035403419751673937,
-0.023729858919978142,
-0.004081877879798412,
-0.04068441316485405,
0.011938219889998436,
-0.051270827651023865,
-0.030065422877669334,
0.038176245987415314,
-0.01465811487287283,
-0.01032582763582468,
-0.05723179504275322,
0.016905691474676132,
-0.007707725279033184,
0.0024735569022595882,
0.05296465381979942,
-0.02278522588312626,
-0.03162895515561104,
0.02270379103720188,
0.06322533637285233,
0.018110916018486023,
-0.01474769227206707,
-0.009877940639853477,
0.017492016777396202,
-0.0047109550796449184,
0.06873027235269547,
-0.016775397583842278,
0.0509125180542469,
-0.04772030562162399,
0.010928438976407051,
0.02167772315442562,
-0.043746329843997955,
-0.011840499006211758,
-0.06775306165218353,
-0.01219880860298872,
0.023941587656736374,
0.008974023163318634,
0.020309632644057274,
0.0013090510619804263,
0.035570356994867325,
-0.03423484042286873,
0.011384469456970692,
-0.02671034261584282,
-0.019120696932077408,
-0.023322688415646553,
0.022768938913941383,
0.024088168516755104,
-0.011270461603999138,
0.008517993614077568,
0.059414226561784744,
-0.0013161766109988093,
0.008102680556476116,
-0.06573349982500076,
-0.06286702305078506,
-0.0014149151975288987,
-0.05697120726108551,
-0.05697120726108551,
0.04094500094652176,
-0.04508184641599655,
0.054202452301979065,
-0.03654756769537926,
0.05993540212512016,
-0.015724899247288704,
-0.053257815539836884,
0.02050507441163063,
0.038762569427490234,
0.0026099588721990585,
0.02785041742026806,
-0.03947918862104416,
0.04905582219362259,
-0.014283518306910992,
-0.021726584061980247,
-0.016237933188676834,
0.006787521298974752,
0.0024959512520581484,
-0.03973977640271187,
0.034984033554792404,
0.03390910476446152,
0.027540968731045723,
0.010504982434213161,
-0.04824148491024971,
0.033550795167684555,
0.009153177961707115,
0.012882853858172894,
-0.04703626036643982,
-0.028664758428931236,
-0.004126666579395533,
-0.004723170306533575,
0.020423639565706253,
-0.0059853969141840935,
-0.009397480636835098,
-0.025114236399531364,
-0.02091224305331707,
0.04153132438659668,
0.015521314926445484,
-0.03213384374976158,
0.05609171837568283,
-0.018208635970950127,
-0.047231703996658325,
-0.005342068616300821,
0.02780155837535858,
0.04996788501739502,
0.024674493819475174,
0.012149948626756668,
0.037622492760419846,
0.017850326374173164,
-0.041140440851449966,
0.04970729723572731,
0.045993905514478683,
0.010000091977417469,
0.051531415432691574,
-0.07947955280542374,
-0.022247761487960815,
0.010504982434213161,
0.0627041608095169,
-0.008941450156271458,
-0.017817752435803413,
-0.02788299135863781,
-0.019348710775375366,
-0.007622219622135162,
-0.011034303344786167,
0.045212142169475555,
0.05661289766430855,
0.06296474486589432,
-0.07752513885498047,
0.0014719190075993538,
-0.014478960074484348,
-0.05921878293156624,
-0.016759110614657402,
-0.006225626915693283,
-0.04970729723572731,
-0.07224822044372559,
0.05638488009572029,
0.06299731880426407,
-0.0019004653440788388,
-0.00041734910337254405,
-0.020667942240834236,
0.0065025025978684425,
-0.04970729723572731,
0.0013304274762049317,
0.005101838149130344,
0.05550539493560791,
0.03775278851389885,
0.06364879012107849,
-0.04918611794710159,
0.06436540931463242,
0.0031433512922376394,
0.004535872023552656,
-0.010667850263416767,
0.004719098564237356,
-0.01783403940498829,
0.005578226875513792,
0.02146599441766739,
0.002646604087203741,
0.06107547879219055,
-0.017329148948192596,
0.015676040202379227,
-0.006034257356077433,
0.021335700526833534,
-0.0008357161423191428,
0.011221601627767086,
-0.06576607376337051,
-0.01429166179150343,
-0.026107730343937874,
-0.015325873158872128,
0.016197217628359795,
0.03947918862104416,
0.08540794998407364,
-0.01498385053128004,
0.00767515180632472,
-0.040488969534635544,
0.05498421564698219,
-0.0320524126291275,
-0.009674355387687683,
0.035244621336460114,
0.021140258759260178,
-0.07980529218912125,
0.01438123919069767,
-0.005154770333319902,
-0.018078342080116272,
0.05993540212512016,
0.009478914551436901,
0.07368145883083344,
0.011189027689397335,
-0.04322515055537224,
0.009226469323039055,
0.014177653938531876,
0.028827626258134842,
0.09837223589420319,
0.0025407399516552687,
-0.016237933188676834,
-0.01395778264850378,
-0.01705227419734001,
-0.013705337420105934,
0.024413904175162315,
-0.021856877952814102,
-0.06013084575533867,
-0.011563624255359173,
0.04618934914469719,
0.028241300955414772,
0.07094527781009674,
0.02718265913426876,
0.013200446963310242,
0.028094720095396042,
0.01804576814174652,
0.053616125136613846,
-0.03830653801560402,
-0.015334016643464565,
0.001750830328091979,
0.06547291576862335,
0.03980492427945137,
0.028567036613821983,
0.01574118621647358,
-0.009291616268455982,
0.026091443374753,
0.05465847998857498,
-0.02307838760316372,
-0.01695455238223076,
0.0523783303797245,
0.03423484042286873,
-0.05283436179161072,
-0.030651746317744255,
0.023746145889163017,
-0.08058705925941467,
-0.0640396773815155,
-0.016417087987065315,
0.014006642624735832,
-0.007068468723446131,
-0.04338802024722099,
-0.027133798226714134,
0.013469179160892963,
0.008013103157281876,
0.024413904175162315,
0.04625449702143669,
-0.009234611876308918,
-0.010496838949620724,
-0.011254174634814262,
0.060033123940229416,
0.006131977774202824,
-0.01190564688295126,
-0.016710251569747925,
0.016197217628359795,
-0.04527728632092476,
-0.0319221168756485,
0.025505119934678078,
-0.003206462599337101,
0.032671310007572174,
-0.027231520041823387,
0.020749375224113464,
-0.004307857248932123,
-0.007850234396755695,
0.00479646073654294,
-0.015505027957260609,
-0.03022829070687294,
0.03807852417230606,
0.060033123940229416,
-0.008574997074902058,
-0.009478914551436901,
0.05195487290620804,
0.034690871834754944,
-0.020114190876483917,
-0.031091490760445595,
0.048404350876808167,
-0.024625632911920547,
-0.05462590605020523,
0.05716664716601372,
0.025847142562270164,
0.0021763229742646217,
-0.06312761455774307,
-0.034430284053087234,
-0.04149875044822693,
0.06866512447595596,
-0.02557026594877243,
0.034756019711494446,
0.0028054004069417715,
0.028843913227319717,
-0.027492107823491096,
0.022654930129647255,
0.08508221060037613,
0.054463040083646774,
-0.02223147451877594,
0.025667987763881683,
0.005187343806028366,
0.04387662187218666,
0.014356808736920357,
0.08071735501289368,
0.0009069708758033812,
0.09224840253591537,
-0.03811109811067581,
-0.047231703996658325,
-0.010423548519611359,
-0.009991948492825031,
0.010048951953649521,
0.034462857991456985,
0.0025020588655024767,
0.003106706077232957,
-0.006950389593839645,
0.02149856835603714,
-0.03166152909398079,
0.036710433661937714,
-0.020814523100852966,
-0.009853510186076164,
-0.021042538806796074,
0.03162895515561104,
-0.05674318969249725,
-0.035863522440195084,
-0.007569287437945604,
-0.026531187817454338,
-0.0034202267415821552,
-0.0407169871032238,
-0.010488695465028286,
-0.018110916018486023,
0.02223147451877594,
-0.0067834495566785336,
0.006017970386892557,
0.05837187170982361,
0.05791584029793739,
-0.007381989620625973,
0.012948001734912395,
-0.09557090699672699,
0.022003458812832832,
0.05775297060608864,
-0.012019653804600239,
-0.000168084807228297,
-0.0021437492687255144,
0.02454419806599617,
-0.006229698657989502,
0.031563807278871536,
0.005553796887397766,
0.008196328766644001,
0.0052077025175094604,
-0.05413730442523956,
-0.027671262621879578,
-0.01148219034075737,
-0.04830663278698921,
-0.004788317251950502,
0.017475729808211327,
0.01775260642170906,
-0.025651700794696808,
0.031824395060539246,
-0.04996788501739502,
-0.0040778061375021935,
-0.020863384008407593,
-0.03537491708993912,
-0.02861589752137661,
-0.004173491150140762,
-0.01698712632060051,
-0.006343706510961056,
0.009617351926863194,
-0.020342206582427025,
0.035244621336460114,
0.04241081327199936,
-0.02032591961324215,
-0.014153224416077137,
-0.043974343687295914,
-0.006832309998571873,
0.0017834039172157645,
0.02017933875322342,
-0.009804650209844112,
-0.02557026594877243,
-0.07609190046787262,
-0.004159240052103996,
-0.04449552297592163,
-0.0508473701775074,
0.029267368838191032,
-0.05166171118617058,
0.0032899323850870132,
-0.031238071620464325,
-0.017361722886562347,
0.03859970346093178,
-0.07159674912691116,
0.04416978731751442,
0.010635276325047016,
0.04853464663028717,
0.012255812995135784,
0.025472545996308327,
-0.02656376175582409,
-0.055309951305389404,
-0.018224922940135002,
0.036319550126791,
-0.0002542266738601029,
-0.07361631095409393,
0.05550539493560791,
-0.014071790501475334,
0.04094500094652176,
-0.020570220425724983,
0.0024694851599633694,
0.03420226648449898,
-0.061140626668930054,
0.003110777586698532,
-0.024055594578385353,
-0.02073308825492859,
-0.03576580062508583,
-0.02785041742026806,
0.0037032098043709993,
-0.02281779795885086,
0.011099450290203094,
0.05162913724780083,
-0.014161367900669575,
0.0067630913108587265,
-0.005252491217106581,
-0.013127156533300877,
0.029283655807375908,
-0.003697102190926671,
-0.04876266047358513,
-0.03459315001964569,
-0.023990448564291,
0.03980492427945137,
0.02744324877858162,
0.04886038228869438,
0.044593241065740585,
0.001401682267896831,
-0.026645194739103317,
-0.03599381446838379,
-0.005883604288101196,
0.07153160125017166,
0.0002103286824421957,
-0.04329029843211174,
0.014943134039640427,
0.009560348466038704,
0.031172923743724823,
-0.009397480636835098,
0.00020625698380172253,
-0.06351849436759949,
0.01698712632060051,
-0.061173200607299805,
0.008534280583262444,
-0.0017070595640689135,
-0.045733317732810974,
0.025667987763881683,
-0.022687504068017006,
-0.08247632533311844,
-0.05934907868504524,
0.04452809691429138,
0.021596288308501244,
0.03140093758702278,
-0.04319257661700249,
-0.01443824265152216,
0.018876394256949425,
-0.018176062032580376,
-0.0507822260260582,
-0.05889304727315903,
0.01944643259048462,
0.003996372222900391,
0.005887676030397415,
0.018762387335300446,
-0.05723179504275322,
-0.053583551198244095,
-0.0609777569770813,
-0.06566835194826126,
0.010171103291213512,
-0.036189258098602295,
-0.0196255873888731,
-0.009658069349825382,
0.008412129245698452,
0.017882900312542915,
0.05661289766430855,
-0.03019571676850319,
-0.014332379214465618,
0.11583168059587479,
-0.01219880860298872,
-0.016156500205397606,
0.038501981645822525,
0.06156408041715622,
0.008078250102698803,
0.019169555976986885,
-0.02601001039147377,
-0.0319221168756485,
-0.05566826090216637,
-0.07817661017179489,
-0.014348665252327919,
-0.03749220073223114,
-0.03368109092116356,
-0.011612484231591225,
-0.022361768409609795,
0.02952795848250389,
0.029104501008987427,
-0.029267368838191032,
0.04563559591770172,
0.040228381752967834,
-0.0727042481303215,
-0.006543219555169344,
0.014226514846086502,
-0.02211746573448181,
-0.03407197445631027,
-0.04827405884861946,
-0.042019929736852646,
0.017361722886562347,
0.07140130549669266,
0.02416960336267948,
-0.024935081601142883,
-0.056547749787569046,
-0.0069137439131736755,
-0.042866840958595276,
-0.037948232144117355,
-0.0008682897314429283,
-0.03184068202972412,
-0.005561940371990204,
0.030358584597706795,
-0.010969155468046665,
0.026319459080696106,
0.006864883936941624,
0.0623784214258194,
0.058534737676382065,
-0.0030822758562862873,
-0.0027402532286942005,
-0.08247632533311844,
-0.01392520871013403,
0.012687413021922112,
-0.058534737676382065,
-0.004250853322446346,
-0.05410473048686981,
-0.014478960074484348,
-0.01848551072180271,
-0.0623784214258194,
-0.013485465198755264,
0.07309513539075851,
-0.048697516322135925,
-0.05400700867176056,
-0.01710113324224949,
-0.03599381446838379,
-0.0050774081610143185,
0.005602657329291105,
0.006368136499077082,
-0.025765707716345787,
-0.02553769387304783,
0.0188275333493948,
0.007842091843485832,
0.024967655539512634,
0.024674493819475174,
-0.005105909891426563,
0.03804595023393631,
-0.00395361939445138,
0.02486993558704853,
0.027394387871026993,
0.04335544630885124,
0.0066857291385531425,
-0.07752513885498047,
0.009267185814678669,
0.02355070412158966,
-0.011563624255359173,
0.026319459080696106,
0.038762569427490234,
0.05211774259805679,
-0.0018668738193809986,
0.03755734860897064,
0.018811246380209923,
-0.0017946010921150446,
0.03459315001964569,
0.022182613611221313,
-0.033143624663352966,
-0.04501669853925705,
-0.031791821122169495,
-0.034462857991456985,
-0.006722374353557825,
0.00605461560189724,
0.005806242115795612,
-0.03368109092116356,
-0.019055549055337906,
-0.06218298152089119,
-0.03863227739930153,
-0.0030741323716938496,
0.06061944738030434,
0.022150039672851562,
-0.00935676321387291,
-0.002180394483730197,
-0.07648278772830963,
-0.00646585738286376,
0.05140112340450287,
-0.016335655003786087,
-0.001092233113013208,
0.020863384008407593,
0.005382785573601723,
0.01219880860298872,
-0.07426778227090836,
0.0449841246008873,
-0.0028074360452592373,
0.08612456917762756,
-0.03719903901219368,
0.019169555976986885,
0.018078342080116272,
0.048111189156770706,
0.0052565629594028,
-0.0043730041943490505,
-0.013216733001172543,
0.016498522832989693,
0.006302989553660154,
0.015048997476696968,
0.0188926812261343,
0.020635368302464485,
-0.00013818326988257468,
0.03078204020857811,
-0.032703883945941925,
-0.030326010659337044,
0.02560283988714218,
-0.03889286518096924,
-0.024560485035181046,
-0.014853556640446186,
-0.014829126186668873,
0.01819234900176525,
0.04824148491024971,
-0.005040762946009636,
-0.03892543911933899,
-0.017361722886562347,
0.02091224305331707,
-0.03570065274834633,
-0.027964426204562187,
0.02091224305331707,
0.006925959140062332,
-0.01947900652885437,
-0.01592034101486206,
-0.06742732971906662,
-0.034137122333049774,
-0.006873026955872774,
-0.011555480770766735,
-0.030016561970114708,
-0.02135198749601841,
-0.03309476748108864,
-0.026645194739103317,
-0.036514993757009506,
-0.02161257527768612,
0.021808017045259476,
0.05732951685786247,
-0.009527774527668953,
0.01313529908657074,
0.05645002797245979,
0.03166152909398079,
0.02700350433588028,
-0.055081937462091446,
-0.012605979107320309,
0.02604258432984352,
-0.040260955691337585,
-0.029658252373337746,
-0.01047240849584341,
-0.04123816266655922,
-0.004666166380047798,
0.007895023562014103,
-0.020097903907299042,
0.019902462139725685,
0.0898379534482956,
-0.02692207135260105,
-0.060293711721897125,
-0.01646594889461994,
0.001394556718878448,
0.03547263890504837,
-0.05462590605020523,
0.04162904620170593,
0.018094629049301147,
0.021009964868426323,
0.046905968338251114,
0.019511578604578972,
0.01628679409623146,
0.01570046879351139,
0.012532687745988369,
0.07693881541490555,
0.023615851998329163,
0.030749468132853508,
-0.11693917959928513,
-0.01610763929784298,
-0.029104501008987427,
-0.006111619528383017,
0.03843683376908302,
-0.03641727194190025,
-0.036189258098602295,
0.025781994685530663,
-0.04553787782788277,
0.06729703396558762,
0.018176062032580376,
0.03110777772963047,
-0.016921978443861008,
0.03309476748108864,
-0.041107866913080215,
0.008860016241669655,
-0.022329194471240044,
-0.0038660778664052486,
-0.01705227419734001,
-0.02003275603055954,
0.026286885142326355,
-0.008542423136532307,
0.04918611794710159,
-0.006107547786086798,
-0.055049363523721695,
0.06019598990678787,
0.052508626133203506,
-0.0465802326798439,
0.02498394250869751,
-0.014161367900669575,
0.08104308694601059,
-0.028697330504655838,
-0.0006255147163756192,
0.0449189767241478,
0.05426759645342827,
0.0024735569022595882,
0.0028135436587035656,
-0.06547291576862335,
0.03941404074430466,
-0.030879762023687363,
0.017410583794116974,
0.03635212406516075,
-0.012524544261395931,
-0.03330649435520172,
0.008884445764124393,
-0.02949538454413414,
-0.037948232144117355,
-0.03521204739809036,
-0.04384405165910721,
0.06286702305078506,
0.07107556611299515,
-0.07342086732387543,
0.030879762023687363,
0.024446478113532066,
0.05791584029793739,
-0.021335700526833534,
-0.014576680958271027,
0.02817615307867527,
0.037622492760419846,
-0.006775306537747383,
-0.017182568088173866,
0.04566816985607147,
0.007198763079941273,
-0.004332287237048149,
0.07504954934120178,
0.07348601520061493,
-0.049577001482248306,
-0.020374778658151627,
0.004715026821941137,
0.03257358819246292,
0.025700561702251434,
-0.05843701586127281,
0.013338884338736534,
-0.020879670977592468,
0.05586370453238487,
-0.05162913724780083,
0.01903926208615303,
-0.027931852266192436,
0.05117310583591461
] |
722,957
|
gitdb.stream
|
__init__
| null |
def __init__(self):
Sha1Writer.__init__(self)
self.buf = BytesIO()
self.zip = zlib.compressobj(zlib.Z_BEST_SPEED)
|
(self)
|
[
-0.01155622024089098,
-0.01576174981892109,
-0.004762672353535891,
0.007651727180927992,
0.019428107887506485,
-0.016965897753834724,
-0.08310414105653763,
0.08605160564184189,
-0.06484423577785492,
0.00936359353363514,
0.06811519712209702,
0.0764184221625328,
-0.048345617949962616,
0.04219907522201538,
-0.0305350199341774,
0.008743547834455967,
-0.0020656967535614967,
0.04291796684265137,
-0.013119813986122608,
0.05078985542058945,
-0.043421193957328796,
0.026203684508800507,
-0.0005964573356322944,
0.07135022431612015,
-0.005149077624082565,
0.04316958039999008,
-0.015923500061035156,
-0.02354377694427967,
0.009183869697153568,
-0.02846819907426834,
-0.013569123111665249,
-0.052802760154008865,
0.03278156369924545,
0.04471520334482193,
0.04410414397716522,
-0.046404603868722916,
0.007575344759970903,
0.02552073448896408,
-0.053809210658073425,
-0.012050459161400795,
0.0923059806227684,
-0.0016264974838122725,
-0.01232903078198433,
-0.031110135838389397,
0.01921243965625763,
0.042989857494831085,
-0.00807857047766447,
-0.0027048385236412287,
0.0025677992962300777,
-0.020003223791718483,
-0.03400368243455887,
0.02643732540309429,
0.03048110380768776,
-0.0035967163275927305,
0.016597464680671692,
0.07735298573970795,
0.029690319672226906,
0.0471234992146492,
-0.028108753263950348,
0.0008879463421180844,
-0.05348571017384529,
-0.002257776213809848,
0.06646174192428589,
-0.02257326990365982,
-0.044032253324985504,
-0.011493316851556301,
-0.0735069066286087,
0.0017624134197831154,
0.0004804795025847852,
0.05406082421541214,
0.026850689202547073,
0.005445621442049742,
-0.02011105790734291,
0.06035114452242851,
-0.03684331476688385,
0.0655631273984909,
-0.06178893521428108,
-0.009255759418010712,
-0.004459389019757509,
-0.048381563276052475,
0.018583407625555992,
-0.01103502232581377,
-0.028288476169109344,
0.0107654370367527,
0.005063709337264299,
-0.029726264998316765,
0.028396310284733772,
-0.02255529724061489,
-0.005351266823709011,
0.007085598539561033,
-0.05808662995696068,
0.050969578325748444,
0.003953916486352682,
0.009642165154218674,
0.030265435576438904,
-0.04022211581468582,
0.003363075666129589,
-0.021980181336402893,
0.00008656213321955875,
0.03734653815627098,
-0.06372994929552078,
-0.00539619754999876,
-0.036124419420957565,
-0.015087786130607128,
-0.02106359228491783,
0.007314745802432299,
0.029744235798716545,
-0.024945620447397232,
-0.05068202316761017,
-0.016022348776459694,
0.06337050348520279,
-0.0313258022069931,
-0.000355234689777717,
-0.021944237872958183,
-0.021243315190076828,
-0.02956451289355755,
-0.023849306628108025,
-0.024370504543185234,
0.014755298383533955,
0.008730067871510983,
0.06358616799116135,
0.02598801627755165,
-0.03892810642719269,
0.053917046636343,
0.022411517798900604,
0.00019895951845683157,
0.0403299480676651,
-0.036070503294467926,
0.0125087546184659,
0.0031721193809062243,
0.0018915897235274315,
0.056684788316488266,
-0.011664054356515408,
0.031703222543001175,
-0.006272349506616592,
-0.01860138028860092,
0.009237786754965782,
0.010432948358356953,
-0.07965344935655594,
0.021800458431243896,
0.04683594033122063,
-0.02997787669301033,
0.05787096172571182,
-0.03186497464776039,
-0.007975229993462563,
0.045002762228250504,
-0.0019331506919115782,
-0.04471520334482193,
-0.008752533234655857,
-0.04636865854263306,
0.04683594033122063,
-0.019428107887506485,
-0.0011086692102253437,
0.033662207424640656,
0.0033855410292744637,
-0.04557787626981735,
-0.01622004434466362,
0.01960783265531063,
0.01470138132572174,
0.00936359353363514,
-0.009597234427928925,
0.023903222754597664,
-0.03673547878861427,
-0.044427644461393356,
-0.029744235798716545,
-0.004183064214885235,
-0.019859444350004196,
0.012427878566086292,
-0.00010783409379655495,
-0.022249767556786537,
0.014314975589513779,
-0.022699076682329178,
-0.04928017780184746,
0.038101378828287125,
-0.003100230125710368,
0.03328479081392288,
-0.022501381114125252,
0.04471520334482193,
-0.02940276265144348,
0.02118939906358719,
-0.038568660616874695,
0.008739054203033447,
-0.053845155984163284,
0.02021889202296734,
0.026652993634343147,
-0.005751151591539383,
0.07857510447502136,
0.01495299395173788,
0.0659225732088089,
-0.022842854261398315,
-0.011322579346597195,
0.026904605329036713,
-0.007867395877838135,
-0.03526174649596214,
0.03576497361063957,
-0.01863732561469078,
0.03592672571539879,
-0.06150137633085251,
0.00688790250569582,
0.04723133146762848,
-0.06570690870285034,
0.03630414232611656,
0.016956910490989685,
-0.06042303517460823,
0.012113362550735474,
0.043564971536397934,
0.013596081174910069,
0.026922577992081642,
-0.07886266708374023,
0.02264515869319439,
0.041552070528268814,
-0.037094928324222565,
0.013596081174910069,
0.03828110173344612,
0.011879722587764263,
-0.04424792155623436,
-0.02158479019999504,
0.003983121830970049,
0.06754008680582047,
0.024963591247797012,
0.044463589787483215,
0.03982672467827797,
-0.07627464830875397,
-0.011160828173160553,
0.004843547940254211,
-0.002197119640186429,
0.03835299238562584,
-0.04460736736655235,
-0.06408939510583878,
-0.02992396056652069,
0.011214745230972767,
-0.03472257778048515,
0.04022211581468582,
0.026922577992081642,
-0.012589629739522934,
-0.015393316745758057,
0.008136981166899204,
-0.02503548189997673,
-0.08030045032501221,
-0.05114930495619774,
0.013191703706979752,
-0.017765667289495468,
0.055822115391492844,
-0.011205758899450302,
-0.010127418674528599,
-0.00043049390660598874,
-0.022699076682329178,
0.02611382305622101,
-0.002134216483682394,
-0.017549999058246613,
-0.00015037800767458975,
-0.000638018362224102,
-0.050286632031202316,
-0.05362948775291443,
0.024442393332719803,
-0.060243312269449234,
0.04777050390839577,
-0.08526082336902618,
0.012355989776551723,
-0.001786002074368298,
-0.037058982998132706,
-0.03501013293862343,
-0.013721887953579426,
-0.028252530843019485,
0.016543546691536903,
0.015096772462129593,
-0.008011174388229847,
-0.03536958247423172,
-0.02401105687022209,
0.032206449657678604,
0.11502303183078766,
-0.001648962963372469,
-0.011951611377298832,
0.02255529724061489,
-0.022501381114125252,
-0.036573730409145355,
0.03749031946063042,
-0.03427326679229736,
0.02465806156396866,
0.03276359289884567,
0.059776030480861664,
0.0008536865352652967,
0.035477414727211,
-0.016354836523532867,
0.016112210229039192,
-0.009534331038594246,
0.022986633703112602,
0.02845022827386856,
-0.006083639804273844,
-0.05564239248633385,
-0.006829492282122374,
0.07649031281471252,
-0.03846082463860512,
-0.03695114701986313,
0.05219170078635216,
-0.0035427992697805166,
-0.020919812843203545,
-0.014926034957170486,
0.03731059655547142,
-0.03184700012207031,
-0.07142211496829987,
-0.037598151713609695,
0.014243085868656635,
0.021728569641709328,
-0.028863592073321342,
-0.007170966826379299,
-0.030750688165426254,
0.004275172483175993,
-0.007332717999815941,
0.03767004236578941,
0.03191889077425003,
0.05104146897792816,
0.0031316818203777075,
0.008438017219305038,
-0.030660826712846756,
0.004387499764561653,
0.07142211496829987,
0.044427644461393356,
-0.00883790198713541,
0.09173086285591125,
-0.06789953261613846,
-0.008478455245494843,
0.007085598539561033,
-0.07807188481092453,
0.019931335002183914,
0.008770505897700787,
0.022752992808818817,
-0.018817048519849777,
-0.0045447577722370625,
0.005063709337264299,
-0.09223408997058868,
0.034668661653995514,
0.040150225162506104,
0.01230207271873951,
-0.007090091239660978,
0.02156681753695011,
-0.020326726138591766,
-0.04999907314777374,
-0.03294331580400467,
-0.08389492332935333,
0.02072211727499962,
-0.03242211788892746,
0.021009676158428192,
0.04945990443229675,
-0.04701566323637962,
-0.06196865811944008,
-0.037166815251111984,
-0.06520368158817291,
-0.021728569641709328,
0.02990598790347576,
0.005207487847656012,
0.011295621283352375,
0.026293545961380005,
0.09122764319181442,
0.06552718579769135,
0.016300920397043228,
-0.03695114701986313,
0.001256941119208932,
-0.008298732340335846,
-0.014512671157717705,
0.005207487847656012,
0.027767278254032135,
-0.026239627972245216,
-0.010118432343006134,
-0.02992396056652069,
-0.03675345331430435,
0.019571887329220772,
-0.007247349712997675,
-0.012095390819013119,
0.02697649411857128,
0.0007963996613398194,
-0.021890319883823395,
-0.06876220554113388,
0.0012086404021829367,
-0.020758062601089478,
-0.013946542516350746,
-0.016876034438610077,
0.01350621972233057,
-0.047914281487464905,
-0.03734653815627098,
0.004055011086165905,
0.048417504876852036,
0.0235617496073246,
0.02217787876725197,
0.0007823588093742728,
-0.0003670290461741388,
-0.009372579865157604,
0.018295850604772568,
0.028342394158244133,
0.04428386688232422,
0.01398248691111803,
0.014126265421509743,
-0.0236516110599041,
-0.07541197538375854,
0.024927647784352303,
0.03554930537939072,
-0.006968778092414141,
0.07994100451469421,
-0.03885621577501297,
0.024208752438426018,
0.0032664742320775986,
-0.06534745544195175,
0.018053224310278893,
0.06754008680582047,
-0.01667833887040615,
-0.04582948982715607,
0.08123501390218735,
-0.03576497361063957,
0.03878432884812355,
0.000282222026726231,
0.005953340325504541,
-0.0236516110599041,
-0.001039026421494782,
-0.03738248348236084,
-0.018340781331062317,
-0.0034664166159927845,
0.026167739182710648,
-0.07178156077861786,
0.02553870715200901,
0.012068431824445724,
0.013344468548893929,
0.10093270987272263,
0.018924882635474205,
0.02072211727499962,
-0.0022712554782629013,
-0.06969676911830902,
-0.024837786331772804,
-0.02111751027405262,
-0.030588937923312187,
-0.005000805947929621,
0.0038033982273191214,
-0.00007052040746202692,
-0.0023027071729302406,
-0.01623801700770855,
0.01817903108894825,
0.04910045489668846,
-0.03445299342274666,
0.0035517853684723377,
0.011439399793744087,
0.0670728012919426,
0.06994838267564774,
-0.02401105687022209,
0.014836173504590988,
-0.0036034558434039354,
-0.020811978727579117,
0.005324308294802904,
-0.011870736256241798,
0.053341928869485855,
0.010136404074728489,
0.00465034507215023,
0.04331335797905922,
0.006869930308312178,
-0.01769377663731575,
-0.029798153787851334,
-0.0152675099670887,
-0.03544146940112114,
0.051329027861356735,
-0.01869124174118042,
-0.02747972123324871,
-0.0075483862310647964,
0.022842854261398315,
-0.01103502232581377,
0.03993455693125725,
-0.02268110401928425,
-0.03236819803714752,
-0.011403455398976803,
0.01567188836634159,
0.019769582897424698,
0.02845022827386856,
-0.026383407413959503,
0.031182024627923965,
0.03581888973712921,
-0.039035942405462265,
0.006645275745540857,
0.043564971536397934,
-0.013649998232722282,
-0.01374884694814682,
-0.00883790198713541,
-0.018942855298519135,
-0.010927188210189342,
-0.05459999293088913,
-0.023669583722949028,
0.02451428398489952,
0.032673727720975876,
-0.008020160719752312,
-0.04291796684265137,
0.04877695441246033,
-0.056684788316488266,
0.06473639607429504,
0.029834099113941193,
-0.00047963703400455415,
0.07814376801252365,
-0.06545529514551163,
0.029330871999263763,
0.012706450186669827,
0.06994838267564774,
0.007058640010654926,
-0.008999653160572052,
-0.08382303267717361,
-0.03197280690073967,
-0.013838708400726318,
-0.039143774658441544,
-0.0735069066286087,
-0.06473639607429504,
0.02264515869319439,
-0.016831103712320328,
-0.026652993634343147,
-0.08741750568151474,
-0.023669583722949028,
0.002161175012588501,
-0.0451824851334095,
-0.012634561397135258,
-0.10344883799552917,
0.04036589339375496,
0.014288016594946384,
0.08137879520654678,
-0.06027925759553909,
-0.014126265421509743,
-0.08669860661029816,
-0.037166815251111984,
0.001466992893256247,
0.04529031738638878,
0.025664513930678368,
-0.07713732123374939,
-0.021728569641709328,
-0.031739167869091034,
0.023346081376075745,
-0.013856681063771248,
0.053809210658073425,
0.0382092110812664,
-0.06337050348520279,
-0.049495846033096313,
-0.03792165592312813,
-0.010163363069295883,
0.07199722528457642,
0.019302302971482277,
-0.0195898599922657,
-0.0021387094166129827,
0.002927246270701289,
-0.08835206180810928,
-0.007431566249579191,
-0.03380598872900009,
0.03874838352203369,
-0.13385805487632751,
-0.02259124256670475,
0.01812511309981346,
-0.00931866280734539,
0.037130873650312424,
0.00251612882129848,
-0.014548616483807564,
-0.011412440799176693,
-0.08806450664997101,
0.010459906421601772,
0.015384330414235592,
0.004928916692733765,
0.003580990480259061,
0.005400690715759993,
-0.033141009509563446,
0.0057466584257781506,
0.052766814827919006,
0.023939168080687523,
0.06638985872268677,
-0.017936402931809425,
0.026652993634343147,
-0.0511852465569973,
0.028342394158244133,
0.05751151591539383,
0.020434560254216194,
0.0038685479667037725,
0.001183928456157446,
-0.007660713512450457,
0.026670964434742928,
-0.009687095880508423,
0.01726244017481804,
-0.004111174494028091,
0.016049306839704514,
-0.01630990579724312,
0.035153914242982864,
0.03687926009297371,
-0.029151149094104767,
0.037598151713609695,
0.03867649286985397,
-0.05693639814853668,
-0.04115667939186096,
0.03139769285917282,
-0.027893085032701492,
0.00392021844163537,
0.016911979764699936,
-0.0014411576557904482,
0.015321427024900913,
-0.015842625871300697,
-0.056217506527900696,
-0.02304054982960224,
-0.03964700177311897,
-0.014314975589513779,
0.0075483862310647964,
0.021441010758280754,
-0.07142211496829987,
-0.012418893165886402,
0.023256218060851097,
-0.019859444350004196,
0.0171186625957489,
-0.07203317433595657,
0.00832119770348072,
0.07620275765657425,
0.03623225539922714,
-0.05909308046102524,
0.03179308399558067,
-0.03190091997385025,
0.031289856880903244,
0.002242050366476178,
0.03702303767204285,
0.031074190512299538,
-0.037094928324222565,
-0.01524055190384388,
0.0036394004710018635,
-0.03982672467827797,
-0.023364052176475525,
-0.0022094754967838526,
0.060171421617269516,
0.022375574335455894,
0.006771082058548927,
-0.043457139283418655,
0.003235022770240903,
-0.03799354285001755,
0.0066317967139184475,
0.044930871576070786,
-0.022411517798900604,
0.043564971536397934,
-0.0014063363196328282,
0.005252419039607048,
0.0029407255351543427,
0.08863962441682816,
-0.011628109030425549,
0.03576497361063957,
0.02710230089724064,
-0.06027925759553909,
0.03261981159448624,
0.04374469444155693,
0.02108156494796276,
0.03337465226650238,
-0.014081334695219994,
0.03788571059703827,
-0.04327741637825966,
-0.03982672467827797,
-0.050286632031202316,
0.06523962318897247,
-0.016327878460288048,
-0.05740367993712425,
-0.032278336584568024,
-0.026635020971298218,
0.006847464945167303,
-0.0013400631723925471,
0.04507464915513992,
0.02208801545202732,
0.0004128023865632713,
0.002933985786512494,
0.010432948358356953,
0.018080182373523712,
0.007593317423015833,
0.009462441317737103,
-0.03046313114464283,
0.03479446470737457,
0.029223037883639336,
0.04471520334482193,
0.022735020145773888,
-0.0013995966874063015,
-0.010082487016916275,
0.020416587591171265,
-0.016876034438610077,
-0.016336863860487938,
0.07764054834842682,
-0.009013133123517036,
-0.041084788739681244,
0.010612672194838524,
0.008752533234655857,
0.02268110401928425,
-0.01470138132572174,
0.012652533128857613,
0.02703041210770607,
-0.05452810600399971,
0.029600458219647408,
0.04820183664560318,
-0.03784976527094841,
-0.002918260172009468,
0.05359354242682457,
-0.02997787669301033,
-0.002691359259188175,
-0.028252530843019485,
-0.0299599040299654,
0.012976035475730896,
-0.0009238910279236734,
0.026688937097787857,
-0.02406497485935688,
0.003987614996731281,
0.004618893377482891,
0.01772073470056057,
-0.036106448620557785,
0.01719953678548336,
-0.05805068463087082,
0.01814308576285839,
-0.024244697764515877,
0.0177387073636055,
0.013596081174910069,
0.014063362963497639,
-0.0019488765392452478,
-0.03524377569556236,
-0.00762027595192194,
0.029690319672226906,
0.006276842672377825,
0.002859849948436022,
0.06613824516534805,
0.012499768286943436,
0.03145160898566246,
-0.022806910797953606,
0.05172441899776459,
-0.018062209710478783,
0.058194465935230255,
0.012571658007800579,
0.00125806441064924,
-0.031056217849254608,
0.018107140436768532,
-0.000024080138246063143,
0.03001382201910019,
-0.0037404950708150864,
-0.0442119762301445,
-0.06674930453300476,
0.01576174981892109,
-0.01714562065899372,
0.0007261952268891037,
0.008703109808266163,
-0.018439630046486855,
-0.051832251250743866,
0.02115345373749733,
-0.0066317967139184475,
-0.02359769307076931,
0.010154376737773418,
0.015060828067362309,
0.03472257778048515,
0.04191151633858681,
-0.0013703915756195784,
-0.022717047482728958,
-0.017945390194654465,
0.05064607784152031,
0.0017253455007448792,
-0.01812511309981346,
0.061645153909921646,
0.02106359228491783,
-0.04122856631875038,
0.022249767556786537,
0.024460365995764732,
-0.006613824050873518,
-0.021746542304754257,
0.0736866295337677,
0.04133640229701996,
-0.04169584810733795,
-0.028234560042619705,
0.01725345477461815,
-0.012391934171319008,
-0.03382395952939987,
-0.03328479081392288,
-0.05262303724884987,
0.005566935054957867,
-0.016822118312120438,
0.049891240894794464,
0.05661289766430855,
0.025305066257715225,
0.011340552009642124
] |
722,958
|
gitdb.stream
|
close
| null |
def close(self):
self.buf.write(self.zip.flush())
|
(self)
|
[
0.03818847984075546,
0.013830332085490227,
-0.03721616789698601,
0.04422353580594063,
0.03356160596013069,
-0.06269750744104385,
-0.08449075371026993,
0.0962926372885704,
0.0023008643183857203,
0.030493786558508873,
-0.0031118246261030436,
-0.09703025966882706,
-0.014534421265125275,
0.012849635444581509,
-0.025833383202552795,
0.02135738544166088,
-0.04241301864385605,
-0.00853708665817976,
-0.007455806247889996,
0.08113794773817062,
-0.0100668054074049,
-0.006713997572660446,
-0.02745949476957321,
-0.022765565663576126,
0.014065028168261051,
0.014551186002790928,
-0.011139703914523125,
-0.020435363054275513,
-0.0003415672981645912,
-0.027325382456183434,
-0.03899315372109413,
-0.07268887013196945,
0.038624346256256104,
0.0240731593221426,
0.01594260148704052,
0.030124977231025696,
0.006730761844664812,
-0.021776486188173294,
0.097231425344944,
0.02725832723081112,
0.046067580580711365,
0.00718339066952467,
0.002246381249278784,
-0.01570790447294712,
0.006927738897502422,
0.0038263918831944466,
-0.02635306864976883,
-0.018842779099941254,
0.052504971623420715,
-0.008273052982985973,
0.01152527704834938,
0.055455438792705536,
0.03547270596027374,
-0.03560682013630867,
0.04871629551053047,
0.024576080963015556,
0.0445588156580925,
0.018826015293598175,
0.004000318702310324,
-0.01605156809091568,
-0.002321819309145212,
-0.02928677573800087,
-0.02202794700860977,
-0.051264431327581406,
-0.023771407082676888,
0.03731675073504448,
-0.030359674245119095,
0.007317502982914448,
0.020720351487398148,
0.04378766939043999,
-0.0028415045235306025,
0.01017577201128006,
-0.05820474401116371,
0.05803710222244263,
-0.03627737984061241,
0.020167138427495956,
-0.014911612495779991,
-0.028079764917492867,
-0.006529593374580145,
-0.07812041789293289,
0.016445521265268326,
-0.02533046342432499,
-0.009806962683796883,
0.08167439699172974,
0.01956363394856453,
-0.014819410629570484,
0.06152402237057686,
-0.010041659697890282,
-0.026889517903327942,
0.016680218279361725,
-0.008968761190772057,
0.08040033280849457,
-0.005578233860433102,
-0.03852375969290733,
0.06829669326543808,
-0.0674249678850174,
-0.03684735670685768,
0.017702825367450714,
-0.01594260148704052,
0.028884438797831535,
-0.044022366404533386,
-0.024006104096770287,
-0.009362715296447277,
-0.04858218505978584,
-0.013436377048492432,
-0.000979124684818089,
0.028297698125243187,
-0.05280672386288643,
-0.051733825355768204,
-0.0011745304800570011,
-0.019530104473233223,
-0.06480977684259415,
-0.04492762312293053,
-0.026537474244832993,
-0.018792487680912018,
-0.02973940409719944,
0.004727459046989679,
0.07094541192054749,
0.02973940409719944,
0.009069344960153103,
0.05542191118001938,
0.04405589401721954,
-0.03129846230149269,
-0.012757433578372002,
-0.013830332085490227,
0.04864924028515816,
0.01413208432495594,
0.034299224615097046,
0.006529593374580145,
0.05830532684922218,
-0.015372623689472675,
0.07362765818834305,
-0.025028709322214127,
-0.011810265481472015,
0.013151388615369797,
0.0009461204172112048,
0.0073761772364377975,
-0.03161697834730148,
-0.02531369961798191,
0.042915940284729004,
-0.01604318432509899,
-0.01136601809412241,
0.024341383948922157,
0.009471681900322437,
0.002543943002820015,
0.04083719849586487,
0.0007669547921977937,
-0.03530506417155266,
-0.06511152535676956,
-0.06658676266670227,
0.04804573580622673,
0.000058215744502376765,
-0.04707342013716698,
0.015330713242292404,
0.035204481333494186,
-0.04469292610883713,
-0.046067580580711365,
0.09126342833042145,
0.0064499638974666595,
-0.03718263655900955,
-0.03547270596027374,
0.032052841037511826,
-0.02554839476943016,
0.015406151302158833,
-0.005536323878914118,
-0.0445588156580925,
-0.02351994626224041,
0.08301552385091782,
-0.007355222012847662,
-0.011550422757863998,
-0.020955048501491547,
0.013109478168189526,
0.0029630439821630716,
-0.017334016039967537,
-0.03942902013659477,
0.07812041789293289,
-0.01554026361554861,
-0.019178060814738274,
0.010770894587039948,
0.005997335072606802,
-0.013101096265017986,
-0.04646991565823555,
-0.04056897386908531,
0.06588267534971237,
0.030124977231025696,
-0.05180088058114052,
-0.0012311091413721442,
-0.01991567760705948,
0.0019027184462174773,
-0.025280170142650604,
-0.03694794327020645,
0.019278645515441895,
-0.00377190881408751,
-0.016093477606773376,
0.006529593374580145,
-0.015976129099726677,
0.01808839850127697,
-0.03439980745315552,
0.03312573954463005,
-0.004564009606838226,
-0.05558955296874046,
0.008675389923155308,
0.040770143270492554,
-0.051733825355768204,
0.026537474244832993,
0.04006605222821236,
0.03614326938986778,
-0.04915216192603111,
-0.06239575147628784,
0.020603002980351448,
0.07315826416015625,
0.018239274621009827,
0.013461523689329624,
-0.04804573580622673,
0.018021341413259506,
-0.06537975370883942,
-0.06732437759637833,
-0.022463811561465263,
0.043251220136880875,
0.035204481333494186,
-0.04412294924259186,
-0.025045474991202354,
-0.02759360708296299,
0.0343327522277832,
-0.02507900260388851,
0.005532132927328348,
0.021089160814881325,
0.004362841136753559,
-0.022530868649482727,
0.0027555888518691063,
-0.03718263655900955,
-0.01751841977238655,
0.015112780965864658,
-0.03604268282651901,
-0.018742196261882782,
-0.04123953729867935,
-0.0431506372988224,
0.023000260815024376,
-0.06501094251871109,
-0.012707141228020191,
0.02861621417105198,
-0.04475998505949974,
0.006575694307684898,
0.005234571173787117,
-0.011332490481436253,
0.004802897106856108,
0.019278645515441895,
-0.008558041416108608,
0.07630990445613861,
-0.018121926113963127,
0.026939811185002327,
-0.030896123498678207,
0.00706604216247797,
-0.03165050595998764,
0.05911000072956085,
-0.08697183430194855,
0.02102210558950901,
-0.097231425344944,
0.027627136558294296,
0.009572266601026058,
-0.02351994626224041,
-0.029823224991559982,
0.009513592347502708,
-0.03936196491122246,
0.040870726108551025,
0.03480214625597,
0.034668032079935074,
-0.08013210445642471,
0.012388625182211399,
0.015557028353214264,
0.06651970744132996,
-0.02192736230790615,
-0.04509526491165161,
0.0009545024367980659,
-0.026537474244832993,
0.015783343464136124,
0.021323857828974724,
-0.03828906640410423,
-0.054114315658807755,
-0.01080442313104868,
0.05847296863794327,
0.02737567573785782,
0.024928126484155655,
-0.007535435259342194,
-0.015867162495851517,
0.006181739270687103,
0.014215905219316483,
0.04593346640467644,
-0.01954687014222145,
-0.031281694769859314,
-0.012690377421677113,
0.06739143282175064,
-0.0036210324615240097,
-0.006005716975778341,
0.03828906640410423,
-0.001462662359699607,
-0.016093477606773376,
-0.005506986752152443,
0.028130056336522102,
0.009563883766531944,
-0.06457507610321045,
-0.0493198037147522,
0.02973940409719944,
0.030342910438776016,
-0.02543104626238346,
0.030812302604317665,
0.003356998786330223,
0.0006726570427417755,
-0.0018807156011462212,
0.0724206492304802,
0.07309120893478394,
0.014266196638345718,
-0.03282398730516434,
-0.01708255521953106,
-0.005787784233689308,
0.004962155595421791,
0.03414834663271904,
0.04435764625668526,
-0.016445521265268326,
0.06024995446205139,
-0.04952096939086914,
-0.05679656192660332,
0.03151639178395271,
0.014685298316180706,
0.02259792387485504,
0.026855990290641785,
0.004400560166686773,
0.028968259692192078,
0.04023369401693344,
-0.027442730963230133,
-0.03074524737894535,
0.045497599989175797,
0.013830332085490227,
0.01942952163517475,
0.04180951416492462,
0.014953522942960262,
0.0011430978775024414,
-0.05776887759566307,
0.03267311304807663,
-0.04170892760157585,
-0.03708205372095108,
-0.009605794213712215,
0.028197113424539566,
0.01652096025645733,
-0.10775924474000931,
0.012112017720937729,
-0.045497599989175797,
-0.01988214999437332,
-0.008742446079850197,
0.06635206937789917,
0.021759722381830215,
-0.015665994957089424,
0.0576682947576046,
0.022983497008681297,
-0.0028037854935973883,
0.016093477606773376,
0.013478287495672703,
0.03336043655872345,
0.04851512983441353,
0.01887630857527256,
-0.0035665491595864296,
-0.012665231712162495,
-0.010167389176785946,
0.012229366227984428,
-0.009857255034148693,
-0.06296572834253311,
-0.0026340496260672808,
0.0334777869284153,
-0.03493625670671463,
0.03946254774928093,
-0.02373787946999073,
-0.02690628170967102,
-0.02296673320233822,
0.006600840482860804,
0.009228602983057499,
0.007367794867604971,
0.0056075709871947765,
-0.0057165371254086494,
-0.013218444772064686,
-0.02149149775505066,
-0.0005725966766476631,
0.013771657831966877,
0.00019723939476534724,
0.017887229099869728,
0.024006104096770287,
-0.03580798581242561,
-0.01165100745856762,
-0.016914915293455124,
-0.02160884626209736,
0.01672212965786457,
0.04982272535562515,
-0.025581924244761467,
0.01570790447294712,
-0.047978680580854416,
0.022564396262168884,
0.013427995145320892,
-0.008943614549934864,
0.0007103761308826506,
-0.00564948096871376,
0.03218695521354675,
-0.016546105965971947,
0.011969523504376411,
-0.009597412310540676,
0.03054407797753811,
0.051264431327581406,
-0.013662691228091717,
-0.010502669960260391,
-0.07476761192083359,
0.060551706701517105,
-0.03240488842129707,
-0.007149862591177225,
-0.002925324719399214,
0.013327411375939846,
-0.030795538797974586,
0.027291854843497276,
0.04043486341834068,
0.046168163418769836,
-0.043016523122787476,
0.0571989007294178,
0.015112780965864658,
0.04214479401707649,
0.09642675518989563,
0.02802947349846363,
-0.0011116652749478817,
-0.029001787304878235,
-0.10138890892267227,
0.00023508945014327765,
-0.0017822268418967724,
-0.04942038655281067,
0.03084583207964897,
0.014324870891869068,
-0.04472645744681358,
-0.02861621417105198,
0.04972213879227638,
0.021877070888876915,
0.081003837287426,
-0.018608083948493004,
-0.01719990372657776,
-0.0158420167863369,
0.05961292237043381,
0.08368608355522156,
0.006035054102540016,
-0.014903230592608452,
-0.04117247834801674,
0.01430810708552599,
-0.027845067903399467,
0.026202192530035973,
0.0016544010723009706,
0.038020841777324677,
0.026252485811710358,
0.038959626108407974,
-0.025716036558151245,
-0.01753518544137478,
-0.04023369401693344,
-0.051733825355768204,
0.005221998319029808,
0.07604168355464935,
-0.029102372005581856,
-0.07510289549827576,
0.004387987311929464,
0.025598688051104546,
-0.00043376951362006366,
0.021323857828974724,
-0.026721877977252007,
-0.030795538797974586,
-0.035338595509529114,
-0.041675399988889694,
-0.018004577606916428,
0.0016868814127519727,
-0.010603254660964012,
0.02464313805103302,
-0.0023658249992877245,
-0.03631090745329857,
0.019630689173936844,
0.025481339544057846,
0.014106938615441322,
0.011567186564207077,
0.05123090371489525,
-0.00017785598174668849,
-0.021977655589580536,
-0.0657820850610733,
-0.019077476114034653,
0.004584964830428362,
0.004937009420245886,
-0.04083719849586487,
-0.022681744769215584,
0.07456644624471664,
-0.036445021629333496,
0.03976429998874664,
0.034533921629190445,
0.028197113424539566,
0.023939047008752823,
-0.05481840670108795,
-0.02070358768105507,
0.03376277536153793,
0.017350779846310616,
-0.05740007013082504,
-0.06330101191997528,
-0.04083719849586487,
-0.12016463279724121,
-0.0055405148304998875,
-0.03222048282623291,
-0.05428195744752884,
-0.0073761772364377975,
0.00779946893453598,
-0.016655072569847107,
0.013855477795004845,
-0.08060149848461151,
-0.0030070494394749403,
-0.0004311501106712967,
-0.06024995446205139,
0.0004568200674839318,
-0.04445823282003403,
0.03007468581199646,
0.02928677573800087,
0.02995733730494976,
-0.03708205372095108,
-0.005896750837564468,
0.005582424812018871,
0.001326454570516944,
0.01696520671248436,
0.06152402237057686,
0.01899365521967411,
-0.042815353721380234,
-0.008214378729462624,
-0.05304142087697983,
0.01773635298013687,
0.009714760817587376,
0.005863222759217024,
0.020636532455682755,
-0.027057157829403877,
-0.03480214625597,
0.025263406336307526,
-0.058841776102781296,
0.058741193264722824,
-0.0051046498119831085,
-0.02838151715695858,
-0.039294905960559845,
-0.036679718643426895,
-0.04942038655281067,
-0.009915929287672043,
-0.03275693207979202,
0.0006014098762534559,
-0.10621695220470428,
-0.0343327522277832,
0.0352715365588665,
-0.011969523504376411,
0.002784925978630781,
0.02972264029085636,
0.030477022752165794,
-0.0325389988720417,
-0.0032270774245262146,
0.054986048489809036,
0.050359174609184265,
-0.010259591974318027,
0.04164187237620354,
-0.0440894216299057,
0.006106301210820675,
0.007422278169542551,
-0.009639322757720947,
0.03989841416478157,
0.0834178552031517,
-0.0064499638974666595,
0.017619004473090172,
0.02135738544166088,
0.008495177142322063,
0.0674249678850174,
0.02149149775505066,
0.015339095145463943,
-0.009966220706701279,
-0.011567186564207077,
-0.00607277313247323,
0.04566524177789688,
-0.028532393276691437,
0.11426369100809097,
-0.029588527977466583,
0.011114558205008507,
0.033880122005939484,
0.03922785073518753,
-0.027660664170980453,
-0.002286195755004883,
-0.0013170248130336404,
-0.02487783320248127,
-0.07463350147008896,
-0.0011326203821226954,
-0.004886717535555363,
0.011407928541302681,
-0.013402849435806274,
0.02363729476928711,
0.015649231150746346,
-0.006156593095511198,
-0.033075448125600815,
-0.007195963524281979,
-0.06018289923667908,
-0.0025020327884703875,
-0.002990285400301218,
0.0198989138007164,
-0.0011839602375403047,
-0.050258588045835495,
0.02249734103679657,
0.033293381333351135,
0.00435026828199625,
-0.05143207311630249,
0.028917966410517693,
0.008683771826326847,
0.05166676640510559,
-0.0805344432592392,
0.04522937536239624,
-0.021323857828974724,
0.05589130520820618,
-0.01899365521967411,
-0.03232106566429138,
0.04589993879199028,
0.004279020708054304,
-0.033980708569288254,
-0.008775974623858929,
-0.02779477648437023,
-0.014970286749303341,
-0.040535446256399155,
0.0934092253446579,
0.007107952609658241,
-0.02861621417105198,
-0.00927051343023777,
0.0246599018573761,
-0.03694794327020645,
0.03694794327020645,
0.012522737495601177,
0.06330101191997528,
0.02068682387471199,
0.045832883566617966,
-0.02373787946999073,
0.03694794327020645,
0.070543073117733,
0.03718263655900955,
0.04258066043257713,
0.02655423805117607,
-0.0343327522277832,
0.023788170889019966,
0.00034628217690624297,
-0.03627737984061241,
0.057835932821035385,
0.005154942162334919,
0.019949207082390785,
-0.04965508356690407,
-0.04070308804512024,
-0.05223674699664116,
0.0676596611738205,
-0.019077476114034653,
-0.03946254774928093,
-0.07845570147037506,
-0.039160795509815216,
-0.008394592441618443,
0.009781816974282265,
0.005318391136825085,
-0.007342649158090353,
-0.013930915854871273,
0.06420627236366272,
0.031147584319114685,
-0.016319792717695236,
0.05428195744752884,
-0.0063703348860144615,
-0.038154952228069305,
0.015204982832074165,
-0.03268987685441971,
0.016252735629677773,
0.01818898133933544,
-0.03232106566429138,
0.021960891783237457,
0.001956153893843293,
-0.05900941789150238,
-0.015171455219388008,
0.043251220136880875,
-0.033310145139694214,
-0.028649741783738136,
-0.03141580894589424,
0.025011945515871048,
0.019043948501348495,
-0.011818647384643555,
-0.026034552603960037,
0.053980205208063126,
-0.029823224991559982,
0.0010781371966004372,
0.037920255213975906,
-0.0037425716873258352,
0.017468128353357315,
0.059747032821178436,
-0.05176735296845436,
0.02316790260374546,
-0.031482864171266556,
-0.030896123498678207,
0.05015800520777702,
-0.0051046498119831085,
0.00319354934617877,
-0.03721616789698601,
-0.04221184924244881,
-0.017334016039967537,
-0.0008643957553431392,
-0.017903992906212807,
0.0016334460815414786,
-0.02870003506541252,
0.010251210071146488,
-0.02236322872340679,
0.060786403715610504,
-0.0122712766751647,
0.027677427977323532,
0.00865024421364069,
-0.037249695509672165,
-0.017887229099869728,
-0.046302273869514465,
0.07255475968122482,
0.010385322384536266,
0.016914915293455124,
-0.04217832162976265,
0.028113292530179024,
0.008935232646763325,
0.05042622983455658,
-0.04305005073547363,
-0.016093477606773376,
0.02330201491713524,
0.012237748131155968,
-0.024911362677812576,
0.03808789700269699,
-0.010963681153953075,
-0.0030510551296174526,
0.0030049539636820555,
-0.04589993879199028,
-0.09079403430223465,
0.037584975361824036,
-0.036445021629333496,
0.03564034774899483,
-0.05019153282046318,
-0.040501918643713,
-0.0014479939127340913,
0.02217882312834263,
-0.01580848917365074,
-0.008369446732103825,
-0.014844556339085102,
0.01991567760705948,
0.02318466641008854,
0.006475110072642565,
0.006114683113992214,
-0.011047502048313618,
-0.006563121452927589,
0.025011945515871048,
0.058405909687280655,
-0.03290781006217003,
0.03076201118528843,
0.03165050595998764,
-0.03718263655900955,
-0.0007030419073998928,
0.019362464547157288,
0.008193423971533775,
0.017903992906212807,
0.05971350520849228,
0.051163848489522934,
0.03966371715068817,
-0.02544781193137169,
0.009974603541195393,
-0.017568713054060936,
0.041340120136737823,
0.03684735670685768,
-0.029772933572530746,
-0.014282961376011372,
-0.025414282456040382,
0.07268887013196945,
0.043921783566474915,
-0.014324870891869068,
0.033310145139694214
] |
722,959
|
gitdb.stream
|
getvalue
|
:return: string value from the current stream position to the end
|
def getvalue(self):
""":return: string value from the current stream position to the end"""
return self.buf.getvalue()
|
(self)
|
[
0.026807060465216637,
-0.015686411410570145,
-0.06915785372257233,
0.026958134025335312,
0.05327840521931648,
0.02069699764251709,
0.014427470043301582,
0.008241870440542698,
0.07996796816587448,
-0.08352657407522202,
-0.003002575598657131,
0.004248927813023329,
-0.042233292013406754,
0.026454558596014977,
0.009987602941691875,
0.0460604727268219,
0.017255891114473343,
-0.02440667897462845,
0.00742355827242136,
0.09299381077289581,
-0.014368719421327114,
-0.02098235860466957,
0.0025283743161708117,
-0.0025367671623826027,
-0.04747048765420914,
-0.03138960897922516,
0.05562843009829521,
-0.08748804032802582,
0.007490701973438263,
0.01598016358911991,
-0.029123513028025627,
-0.07896081358194351,
0.001035479363054037,
-0.04696691036224365,
-0.0005048880120739341,
0.00950081180781126,
-0.03790253400802612,
-0.040554702281951904,
-0.034142494201660156,
-0.010054746642708778,
-0.01796089857816696,
-0.028116360306739807,
-0.00885455496609211,
-0.023936673998832703,
-0.008795804344117641,
-0.001783500425517559,
-0.02769671380519867,
0.0334039144217968,
0.012774059548974037,
0.007524273823946714,
0.05693772807717323,
0.09373239427804947,
-0.0466647669672966,
-0.02299666590988636,
0.010398857295513153,
-0.0021412495989352465,
0.024138106033205986,
0.00658426433801651,
-0.030567100271582603,
0.06962785869836807,
-0.024591324850916862,
-0.010633859783411026,
0.016517313197255135,
-0.03961469233036041,
0.028250647708773613,
0.016181595623493195,
0.03713038191199303,
-0.01014706864953041,
0.0030256561003625393,
0.02766314148902893,
-0.012513878755271435,
-0.02135164849460125,
-0.09104665368795395,
0.006651407573372126,
-0.04431474208831787,
-0.024792755022644997,
-0.002738197799772024,
0.05975775793194771,
-0.016290703788399696,
-0.004030711017549038,
0.06432352215051651,
0.06073134019970894,
0.08184798806905746,
0.009400096721947193,
0.01666838489472866,
-0.0237184576690197,
-0.020226994529366493,
0.007310253567993641,
-0.01864911988377571,
0.10507965087890625,
0.011162614449858665,
0.0016072486760094762,
-0.03578751161694527,
0.05962346866726875,
0.026941347867250443,
-0.05092838034033775,
-0.007473916281014681,
0.028519222512841225,
-0.029207443818449974,
0.018279829993844032,
-0.04639619216322899,
0.12307412177324295,
0.006894803140312433,
-0.04078970476984978,
-0.0209655724465847,
0.032833196222782135,
0.007964903488755226,
0.005472199060022831,
0.053211260586977005,
0.009945637546479702,
0.015476588159799576,
-0.012161375023424625,
-0.06301421672105789,
-0.004137720912694931,
-0.024473823606967926,
0.012790845707058907,
-0.03447820991277695,
0.029576731845736504,
-0.010961184278130531,
0.014645686373114586,
0.031104248017072678,
0.01434354018419981,
0.018229473382234573,
-0.033152125775814056,
-0.022190943360328674,
0.07191073894500732,
0.019740203395485878,
-0.019270198419690132,
0.03298426792025566,
0.0002045779983745888,
0.004013925325125456,
0.016517313197255135,
0.03525036200881004,
-0.006500334478914738,
-0.0050189802423119545,
0.015350693836808205,
0.023097380995750427,
0.018263045698404312,
-0.03914468735456467,
0.0031977114267647266,
0.02004234865307808,
0.020864857360720634,
0.0606977678835392,
-0.06143634766340256,
0.027125993743538857,
0.012992276810109615,
0.07466362416744232,
0.0029752985574305058,
-0.019102338701486588,
-0.013772820122539997,
0.00982813723385334,
0.007520077284425497,
-0.01385674998164177,
0.042166147381067276,
0.05170053243637085,
0.032161761075258255,
0.008418122306466103,
-0.03402499109506607,
-0.02304702252149582,
-0.045154035091400146,
-0.027595998719334602,
-0.012387984432280064,
0.012992276810109615,
-0.06768069416284561,
0.02232522889971733,
0.08104225993156433,
0.01300906203687191,
0.04998837038874626,
-0.01831340231001377,
0.00274449260905385,
-0.003697091480717063,
0.03696252405643463,
-0.02536347508430481,
0.027931716293096542,
0.03595536947250366,
0.016978925094008446,
-0.04575832933187485,
0.09769386053085327,
0.031255319714546204,
0.01201869547367096,
-0.05146552994847298,
-0.005543539300560951,
-0.03974898159503937,
0.014209253713488579,
0.04280401021242142,
-0.005984168499708176,
0.04428116977214813,
-0.014016215689480305,
0.031523894518613815,
-0.02668956108391285,
-0.012287269346415997,
-0.013445495627820492,
-0.01770910993218422,
-0.028284220024943352,
0.0026353842113167048,
-0.014100144617259502,
0.022895948961377144,
0.03669394925236702,
0.019286984577775,
0.02831779047846794,
-0.01431836187839508,
-0.03528393432497978,
-0.02741135284304619,
-0.02705884911119938,
-0.05502413585782051,
-0.023584170266985893,
0.018531618639826775,
0.04841049760580063,
-0.07580506801605225,
0.02633705735206604,
-0.034813929349184036,
-0.001789795234799385,
0.021250933408737183,
-0.017507679760456085,
0.02400381863117218,
-0.11293544620275497,
-0.06180563569068909,
-0.048544783145189285,
0.022593803703784943,
0.0533791221678257,
0.07191073894500732,
-0.06308136135339737,
0.013202100060880184,
-0.022577017545700073,
-0.010952791199088097,
-0.0028787795454263687,
-0.030231382697820663,
-0.05629986524581909,
-0.03639180213212967,
-0.02262737601995468,
0.06727783381938934,
0.05136481299996376,
0.058179885149002075,
0.053244832903146744,
0.015082119032740593,
0.022493088617920876,
-0.019605915993452072,
0.03102031908929348,
-0.08366086333990097,
0.009903673082590103,
-0.024171676486730576,
0.03558608144521713,
0.03447820991277695,
0.08043797314167023,
-0.022476302459836006,
0.010952791199088097,
0.059824902564287186,
0.07681221514940262,
0.02235880121588707,
0.02232522889971733,
0.059892043471336365,
0.0022933718282729387,
-0.04065541923046112,
-0.02272809110581875,
0.010432428680360317,
-0.02496061474084854,
-0.0007291369838640094,
-0.013596568256616592,
0.020075920969247818,
0.009123129770159721,
-0.025799907743930817,
-0.06737855076789856,
-0.015669625252485275,
0.01737339235842228,
-0.005027373321354389,
0.022140584886074066,
-0.034813929349184036,
-0.024457037448883057,
0.024188462644815445,
0.06774783879518509,
0.053144119679927826,
-0.004700048360973597,
-0.06935928761959076,
-0.04102470725774765,
-0.04800763726234436,
-0.06848641484975815,
0.011515118181705475,
0.027612784877419472,
0.03998398408293724,
-0.05304340273141861,
-0.0210495013743639,
0.031473539769649506,
-0.009928852319717407,
-0.056534867733716965,
-0.008921698667109013,
-0.004569957498461008,
0.051163382828235626,
-0.06687497347593307,
0.01166619174182415,
-0.012262090109288692,
0.005799524020403624,
-0.0014593229861930013,
-0.06573352962732315,
-0.03666037693619728,
0.07600649446249008,
-0.05928775295615196,
-0.04431474208831787,
-0.006240153685212135,
0.0263034850358963,
0.0219559408724308,
-0.02934173122048378,
-0.03143996745347977,
-0.0893680602312088,
0.06684140115976334,
-0.0507940948009491,
0.01622355915606022,
0.022795233875513077,
0.011011541821062565,
-0.015518552623689175,
-0.00300467386841774,
0.013479067012667656,
0.011884408071637154,
0.01965627446770668,
-0.012732095085084438,
-0.00799847487360239,
0.00015881023136898875,
0.02036128006875515,
0.050223372876644135,
0.0069955182261765,
0.04005112498998642,
-0.0276799276471138,
-0.0507940948009491,
0.04794049263000488,
-0.0347803570330143,
0.011078685522079468,
0.009492418728768826,
-0.046564050018787384,
0.030432812869548798,
0.037499669939279556,
0.015577303245663643,
-0.035384651273489,
-0.024272391572594643,
-0.03531750664114952,
0.02964387647807598,
0.05005551502108574,
0.007776062004268169,
-0.022073442116379738,
-0.00797329656779766,
-0.0016366239869967103,
-0.02402060478925705,
0.032144974917173386,
-0.06942642480134964,
0.03367248922586441,
0.004452456720173359,
0.039883267134428024,
0.010214212350547314,
0.012136195786297321,
0.008355175144970417,
0.0832579955458641,
-0.02707563526928425,
-0.006521317176520824,
-0.03370606154203415,
-0.014368719421327114,
0.011800478212535381,
-0.015216406434774399,
0.032547835260629654,
0.014167288318276405,
-0.007964903488755226,
0.02704206295311451,
0.020478781312704086,
-0.021620221436023712,
0.008669910952448845,
0.0017688128864392638,
0.011901194229722023,
-0.058851320296525955,
-0.013982643373310566,
-0.07083643972873688,
0.015216406434774399,
0.059220608323812485,
0.0644913762807846,
-0.06486066430807114,
0.032833196222782135,
-0.003088603261858225,
-0.021939154714345932,
-0.02934173122048378,
-0.029123513028025627,
-0.025581691414117813,
-0.0035544114653021097,
-0.01700410433113575,
-0.05334554985165596,
0.03729823976755142,
-0.004737816751003265,
-0.07278360426425934,
0.012589415535330772,
0.02198951132595539,
0.03140639513731003,
-0.05401698499917984,
-0.0289724413305521,
-0.04710119962692261,
0.024792755022644997,
-0.026185983791947365,
0.01551015954464674,
-0.0359889417886734,
-0.053244832903146744,
-0.020411638543009758,
0.0023835960309952497,
0.02536347508430481,
-0.02230844460427761,
0.031104248017072678,
0.0017992372158914804,
0.0026983313728123903,
0.06690854579210281,
-0.0290563702583313,
0.032497476786375046,
0.0030760138761252165,
-0.032833196222782135,
0.02071378380060196,
-0.04240114986896515,
-0.03474678471684456,
-0.029492802917957306,
-0.024809541180729866,
-0.0420990027487278,
0.002316452329978347,
-0.041192565113306046,
0.01905198208987713,
-0.03491464629769325,
-0.0020688604563474655,
-0.012941918335855007,
0.012555843219161034,
0.04008469730615616,
-0.08057225495576859,
0.009777778759598732,
-0.040554702281951904,
0.003923701122403145,
-0.042468294501304626,
-0.023483455181121826,
-0.002717215334996581,
-0.0021297093480825424,
-0.011112256906926632,
0.04028612747788429,
0.015275157056748867,
-0.06321565061807632,
-0.0359889417886734,
-0.00043512164847925305,
-0.038876112550497055,
0.034192852675914764,
-0.026588844135403633,
-0.027545640245079994,
0.019740203395485878,
0.0466647669672966,
0.01604730822145939,
0.0660356804728508,
0.03608965501189232,
0.0513983853161335,
0.04166257008910179,
-0.014805152080953121,
-0.023080594837665558,
0.03239676356315613,
-0.01896805129945278,
-0.02496061474084854,
-0.03498178720474243,
-0.021133432164788246,
0.004376919940114021,
-0.0031851220410317183,
-0.023752029985189438,
-0.02898922748863697,
-0.01997520588338375,
-0.0263874139636755,
-0.0011792085133492947,
-0.04538903757929802,
-0.009601526893675327,
0.044482599943876266,
-0.014603721909224987,
-0.05737416073679924,
-0.02606848254799843,
0.00999599602073431,
0.025833480060100555,
0.03130567818880081,
-0.05633343756198883,
0.00034201244125142694,
-0.006068097893148661,
-0.004460849333554506,
-0.04199828952550888,
-0.012211732566356659,
0.050223372876644135,
-0.0153255145996809,
0.010919219814240932,
0.001203338266350329,
0.01972341723740101,
-0.03293390944600105,
-0.08211655914783478,
-0.043509017676115036,
-0.004762995522469282,
0.0036068675108253956,
-0.043173301964998245,
0.02200629748404026,
0.02667277492582798,
-0.02032770961523056,
0.0553598552942276,
-0.001704816590063274,
0.01248030737042427,
0.08708517998456955,
-0.029224229976534843,
-0.03692895174026489,
-0.0009116834844462574,
0.04599333181977272,
0.017944112420082092,
-0.011154222302138805,
-0.020562712103128433,
0.03501535952091217,
-0.06536424160003662,
0.012748881243169308,
-0.016483740881085396,
-0.029794950038194656,
-0.006005151197314262,
-0.04340830445289612,
-0.022593803703784943,
-0.01035689190030098,
0.00004006319068139419,
-0.015988556668162346,
0.04471760243177414,
0.04008469730615616,
-0.03706323727965355,
-0.01930377073585987,
-0.02939208783209324,
-0.04397902265191078,
0.01114582922309637,
0.003166237846016884,
-0.05532628297805786,
-0.013076205737888813,
0.00030057228286750615,
0.047168340533971786,
-0.013554603792726994,
-0.014603721909224987,
-0.0347803570330143,
-0.012304055504500866,
-0.10373678058385849,
-0.030231382697820663,
-0.049182649701833725,
0.0024780165404081345,
0.010507965460419655,
-0.023919889703392982,
0.025917408987879753,
0.01737339235842228,
0.059556327760219574,
-0.03071817383170128,
0.0347803570330143,
0.012102624401450157,
-0.09400096535682678,
-0.024255607277154922,
0.002746590645983815,
-0.05935489758849144,
0.002412971341982484,
-0.014855509623885155,
-0.0025388654321432114,
0.007234717253595591,
-0.0019356225384399295,
0.029778163880109787,
0.060563478618860245,
-0.01762518100440502,
-0.032816410064697266,
-0.0506262332201004,
0.031255319714546204,
-0.023752029985189438,
0.02301345020532608,
0.009358132258057594,
-0.049149077385663986,
0.045892614871263504,
0.005195232108235359,
-0.011238151229918003,
0.08668231964111328,
0.03405856341123581,
-0.05572914332151413,
0.04102470725774765,
-0.044214025139808655,
0.010071531869471073,
-0.023550599813461304,
-0.01232084073126316,
0.006097473204135895,
-0.03696252405643463,
0.011120649985969067,
0.026420986279845238,
0.019404485821723938,
0.009215451776981354,
0.04871264472603798,
0.04901478812098503,
-0.02900601178407669,
0.04243472218513489,
0.02999638020992279,
0.02598455362021923,
0.04471760243177414,
-0.007369004189968109,
0.03907754644751549,
-0.031137820333242416,
0.038842543959617615,
0.022778447717428207,
0.000279852218227461,
0.0019272296922281384,
0.021267719566822052,
-0.006961946375668049,
0.010768146254122257,
-0.021485935896635056,
-0.018581977114081383,
0.00006543873314512894,
0.049854084849357605,
-0.0036068675108253956,
-0.017944112420082092,
0.018850551918148994,
-0.026471342891454697,
0.007725704461336136,
0.006173009984195232,
0.029123513028025627,
-0.0014173582894727588,
0.01150672510266304,
0.012992276810109615,
-0.003940486814826727,
-0.05264054238796234,
0.049249790608882904,
0.04260258004069328,
0.07922938466072083,
0.00642060162499547,
-0.029073156416416168,
-0.020260564982891083,
-0.0047671920619904995,
-0.024507394060492516,
0.05700487270951271,
-0.0126565583050251,
-0.01733982190489769,
-0.03541821986436844,
0.03830539435148239,
0.07728222012519836,
0.06281279027462006,
-0.05247268080711365,
0.0035523134283721447,
0.008275441825389862,
-0.02732742391526699,
0.013495853170752525,
0.014444255270063877,
-0.012102624401450157,
-0.027763856574892998,
-0.014116930775344372,
0.009131522849202156,
0.0387418270111084,
0.008115976117551327,
-0.03367248922586441,
0.030919604003429413,
-0.017423750832676888,
-0.016433382406830788,
-0.026622416451573372,
0.032816410064697266,
0.003802003338932991,
0.030416026711463928,
-0.010566716082394123,
-0.048880502581596375,
-0.020562712103128433,
0.010936005041003227,
0.0012956606224179268,
0.005279161501675844,
-0.014897475019097328,
-0.035518936812877655,
0.033185698091983795,
-0.0070248935371637344,
0.05579628795385361,
0.039211831986904144,
0.012085838243365288,
-0.021553078666329384,
0.08903234452009201,
0.05969061329960823,
-0.005350501276552677,
0.014251218177378178,
-0.07311931997537613,
-0.0401182696223259,
0.013898714445531368,
-0.06506209820508957,
-0.034176066517829895,
-0.014729615300893784,
-0.06395422667264938,
0.07446219772100449,
0.04911550506949425,
-0.03632465749979019,
0.009299381636083126,
0.017096426337957382,
-0.041864000260829926,
-0.036492519080638885,
-0.000675631919875741,
-0.032833196222782135,
0.02596776746213436,
-0.022090226411819458,
0.03293390944600105,
0.03132246434688568,
0.013730855658650398,
0.03128889203071594,
0.016576062887907028,
-0.012270483188331127,
-0.010440821759402752,
-0.010063138790428638,
-0.00009061756281880662,
0.03196032717823982,
0.0006200287025421858,
-0.0869508907198906,
-0.02098235860466957,
-0.03298426792025566,
-0.032228901982307434,
-0.009358132258057594,
-0.02569919265806675,
0.006580067798495293,
0.009878494776785374,
-0.005807917099446058,
0.008288031443953514,
0.03234640508890152,
-0.01728946343064308,
-0.04310615733265877,
0.05606486275792122,
-0.03441106900572777,
0.04162899777293205,
-0.016836244612932205,
0.018414117395877838,
-0.03632465749979019,
-0.05895203351974487,
0.013907107524573803,
0.007016500923782587,
0.057575590908527374,
-0.07694650441408157,
-0.030466385185718536,
-0.0027654748409986496,
0.058179885149002075,
-0.0814451202750206,
0.07486505806446075,
-0.007893563248217106,
0.10789968073368073,
-0.040823277086019516,
0.006894803140312433,
0.04297187179327011,
0.040453989058732986,
-0.0010113497264683247,
0.03699609637260437,
-0.0401182696223259,
0.05311054736375809,
-0.014763187617063522,
0.04206543415784836,
-0.023550599813461304,
-0.01684463769197464,
0.022140584886074066,
0.0032732479739934206,
-0.02267773263156414,
0.006546495947986841,
-0.03179246932268143,
-0.03924540430307388,
0.0427032969892025,
0.007452933583408594,
0.0001358607696602121,
0.028066003695130348,
0.015434622764587402,
-0.011406010016798973,
0.0027801624964922667,
-0.03498178720474243,
0.012463521212339401,
0.000774249027017504,
-0.012765667401254177,
-0.026840632781386375,
0.02640420012176037,
0.0010601336834952235,
0.006269528530538082,
0.02736099623143673,
0.040218986570835114,
-0.024843113496899605,
-0.03298426792025566,
0.04642976447939873,
-0.00901402160525322,
0.06445780396461487,
-0.03800324723124504,
0.01181726437062025,
0.0038439680356532335,
0.07493220269680023,
-0.05069337785243988,
0.04277044162154198,
-0.052875544875860214,
0.06381994485855103
] |
722,960
|
gitdb.stream
|
seek
|
Seeking currently only supports to rewind written data
Multiple writes are not supported
|
def seek(self, offset, whence=getattr(os, 'SEEK_SET', 0)):
"""Seeking currently only supports to rewind written data
Multiple writes are not supported"""
if offset != 0 or whence != getattr(os, 'SEEK_SET', 0):
raise ValueError("Can only seek to position 0")
# END handle offset
self.buf.seek(0)
|
(self, offset, whence=0)
|
[
0.03438928350806236,
0.0154415313154459,
-0.0489099882543087,
0.03268929570913315,
0.02307375706732273,
0.004798916168510914,
-0.024153955280780792,
0.05829532444477081,
-0.006760097108781338,
-0.020382113754749298,
0.003512859810143709,
-0.05482451990246773,
0.04345586895942688,
0.0008184498874470592,
-0.0024725045077502728,
0.07345352321863174,
0.0074462890625,
-0.015237887389957905,
-0.007322331890463829,
0.08358260244131088,
0.058968234807252884,
-0.008902786299586296,
-0.010474387556314468,
-0.030936187133193016,
-0.04551002010703087,
0.01639777235686779,
-0.044341277331113815,
0.01845192164182663,
0.02936016023159027,
-0.052805788815021515,
0.03102472797036171,
-0.047741249203681946,
0.02215293049812317,
-0.00905330665409565,
-0.01258166041225195,
0.005724168848246336,
0.012953532859683037,
0.023250838741660118,
0.09038254618644714,
-0.0065298909321427345,
0.014981118962168694,
0.036549679934978485,
-0.005139798857271671,
-0.021426895633339882,
-0.011253547854721546,
0.05464743822813034,
-0.03329137712717056,
0.028616417199373245,
0.003116639330983162,
0.023268546909093857,
0.0007448502583429217,
0.10610740631818771,
0.008353833109140396,
-0.020523779094219208,
0.01831025630235672,
-0.012935824692249298,
0.01928420551121235,
0.007114260923117399,
-0.058932818472385406,
0.011094173416495323,
0.0050822473131120205,
0.029838280752301216,
0.010748864151537418,
-0.01831025630235672,
-0.002088458277285099,
-0.0595703125,
0.01652173139154911,
-0.03279554471373558,
0.009465021081268787,
0.044199611991643906,
-0.01373269222676754,
0.028651833534240723,
-0.018752960488200188,
0.00737988343462348,
-0.021692518144845963,
0.04101214185357094,
-0.02160397730767727,
0.06775148957967758,
-0.0022588996216654778,
0.022719593718647957,
-0.015999339520931244,
0.06651192158460617,
0.0040883757174015045,
0.016061317175626755,
0.011501462198793888,
0.04193296656012535,
0.009465021081268787,
0.015485801734030247,
0.012484265491366386,
-0.00614473782479763,
-0.013281133957207203,
0.061164047569036484,
0.006698118522763252,
-0.014219667762517929,
0.07012438774108887,
-0.012386870570480824,
-0.05018497630953789,
0.019585246220231056,
-0.07331185787916183,
0.047351669520139694,
-0.07037229835987091,
0.014786329120397568,
0.08223678171634674,
-0.0032737995497882366,
-0.01592850685119629,
-0.01600819267332554,
0.01475976686924696,
0.012980095110833645,
0.0022201628889888525,
-0.04384544864296913,
0.0058259908109903336,
-0.03562885522842407,
-0.047457918524742126,
-0.049228735268116,
-0.014387895353138447,
0.01631808653473854,
0.003917934373021126,
0.011722814291715622,
0.02594248205423355,
0.004767926875501871,
0.06746815890073776,
0.0029639063868671656,
-0.031609099358320236,
-0.04983081296086311,
0.021391479298472404,
-0.01885920949280262,
0.032441381365060806,
0.07593266665935516,
0.030227860435843468,
-0.041897550225257874,
-0.032972630113363266,
0.004524439573287964,
-0.0035615575034171343,
-0.0195144135504961,
-0.027784131467342377,
0.06853064894676208,
-0.025482069700956345,
-0.01757536642253399,
-0.10830321907997131,
-0.0014598179841414094,
0.00283552217297256,
-0.019107123836874962,
0.0009866775944828987,
-0.0013325404142960906,
0.01652173139154911,
0.07104521244764328,
-0.027376843616366386,
-0.020169615745544434,
-0.008260865695774555,
0.0036080414429306984,
0.01979774422943592,
-0.011368650943040848,
-0.00860617496073246,
0.029855988919734955,
0.04129547253251076,
-0.01031501404941082,
-0.026987263932824135,
0.006312965415418148,
-0.022046681493520737,
0.043951697647571564,
-0.042003799229860306,
-0.015485801734030247,
0.03786008432507515,
-0.015600904822349548,
0.0018992021214216948,
0.07359518855810165,
-0.1403196007013321,
0.0024171662516891956,
-0.016087880358099937,
-0.025499777868390083,
0.08223678171634674,
0.07579100131988525,
0.06920356303453445,
-0.0329195037484169,
0.07699515670537949,
0.003178618149831891,
-0.019089415669441223,
-0.01133323460817337,
-0.02280813455581665,
-0.0592515654861927,
0.010465533472597599,
0.01276759710162878,
-0.01871754415333271,
-0.027128929272294044,
-0.010492095723748207,
0.007242645137012005,
-0.04455377534031868,
0.004110510926693678,
0.01189104188233614,
0.0154415313154459,
-0.0240654144436121,
0.03228200972080231,
-0.030280984938144684,
-0.01831025630235672,
0.013971752487123013,
0.028598709031939507,
0.08655757457017899,
-0.002481358591467142,
0.05861407145857811,
0.05312453582882881,
-0.01845192164182663,
0.03998506814241409,
0.03061744011938572,
-0.045014191418886185,
-0.038320496678352356,
0.0412246398627758,
0.05315995216369629,
0.03226429969072342,
-0.09604915976524353,
0.01871754415333271,
-0.02063002809882164,
-0.0037386391777545214,
0.015361844561994076,
0.0007348894141614437,
0.014848307706415653,
0.020931066945195198,
-0.008260865695774555,
-0.03431845083832741,
0.03610697761178017,
0.07281602919101715,
0.05999530851840973,
-0.011262401938438416,
-0.06042030453681946,
0.00368994171731174,
0.029678907245397568,
0.02022274024784565,
0.009314501658082008,
-0.1059657409787178,
-0.02078940160572529,
0.004967144224792719,
-0.013351966626942158,
0.03206951171159744,
-0.0047900620847940445,
-0.0035017922054976225,
0.03199867904186249,
0.01605246402323246,
0.02280813455581665,
0.003426532493904233,
-0.060030724853277206,
-0.026031022891402245,
-0.0437391996383667,
0.027536217123270035,
-0.002192493760958314,
0.07051396369934082,
-0.018664419651031494,
0.0031387745402753353,
0.018540462478995323,
0.007154104299843311,
0.03474344685673714,
0.006853064987808466,
0.006910616531968117,
0.04752875119447708,
-0.03888716176152229,
-0.039418406784534454,
0.08712423592805862,
0.0012008358025923371,
-0.047351669520139694,
0.005582503043115139,
-0.036408014595508575,
0.027359135448932648,
-0.09137420356273651,
-0.06215570494532585,
-0.020134199410676956,
-0.10398242622613907,
-0.012679055333137512,
0.012457703240215778,
0.009969704784452915,
-0.03871007636189461,
-0.04455377534031868,
0.07621599733829498,
0.06420985609292984,
0.04508502408862114,
-0.02279042638838291,
0.01953212171792984,
-0.002585394075140357,
-0.017141517251729965,
0.030263276770710945,
0.0025765399914234877,
0.030812229961156845,
0.04260587692260742,
0.033663246780633926,
-0.0001744532200973481,
0.0037386391777545214,
0.054718270897865295,
-0.0011300031328573823,
-0.029572658240795135,
-0.002268860349431634,
0.06010155752301216,
0.012324891984462738,
-0.024649783968925476,
-0.00699915736913681,
0.017424847930669785,
0.01859358698129654,
-0.038462162017822266,
0.013245717622339725,
-0.03415907546877861,
-0.06151821091771126,
0.003419891931116581,
0.030369525775313377,
-0.04490794241428375,
-0.05386827886104584,
-0.013228009454905987,
-0.05195579677820206,
0.10114911198616028,
0.02638518624007702,
0.009518145583570004,
0.019496705383062363,
-0.05464743822813034,
0.02268417738378048,
-0.01462695561349392,
0.01926649734377861,
0.018363380804657936,
-0.06559108942747116,
0.0027779703959822655,
0.004190197680145502,
0.02679247409105301,
0.03237054869532585,
0.034495532512664795,
0.009739498607814312,
0.05733908340334892,
-0.02185189165174961,
-0.042712125927209854,
0.025747692212462425,
-0.08195345103740692,
-0.0448371097445488,
0.008942630141973495,
-0.012475411407649517,
0.03630176559090614,
0.0013768108328804374,
0.006485620513558388,
-0.05397452786564827,
-0.014361333101987839,
-0.006122602615505457,
0.02119668945670128,
-0.017646199092268944,
0.0014786329120397568,
-0.058932818472385406,
-0.07072646170854568,
0.040516313165426254,
-0.0019301914144307375,
-0.002941771177574992,
-0.03630176559090614,
0.03268929570913315,
-0.048307910561561584,
0.014945702627301216,
0.07062021642923355,
0.026296645402908325,
-0.03254763036966324,
0.023463336750864983,
0.0801118016242981,
-0.0006474552792496979,
0.019496705383062363,
-0.028350794687867165,
-0.026261229068040848,
-0.0031520556658506393,
-0.008960338309407234,
0.02472061663866043,
-0.050503723323345184,
-0.018894625827670097,
-0.032707005739212036,
-0.0423225462436676,
-0.0073975916020572186,
0.02307375706732273,
-0.04480169340968132,
-0.03047577477991581,
-0.05999530851840973,
-0.04632459580898285,
-0.023250838741660118,
-0.00043412705417722464,
0.03415907546877861,
-0.06095154955983162,
-0.0614473782479763,
-0.03839132934808731,
0.011120735667645931,
0.006405933760106564,
-0.01702641323208809,
-0.019709203392267227,
0.036000728607177734,
0.0049317278899252415,
-0.0019224440911784768,
0.059782810509204865,
-0.037930916994810104,
-0.027199761942029,
0.034336157143116,
-0.007433007936924696,
-0.03566427156329155,
-0.02254251204431057,
-0.02294979989528656,
0.00025898212334141135,
0.033928871154785156,
0.016025900840759277,
0.019744619727134705,
0.019496705383062363,
-0.024295620620250702,
0.01004053745418787,
0.07819931954145432,
-0.012634784914553165,
-0.011448337696492672,
-0.06335986405611038,
-0.020559195429086685,
0.013892065733671188,
-0.016778498888015747,
-0.06516609340906143,
0.05177871510386467,
0.029183078557252884,
0.024702908471226692,
-0.03658509626984596,
-0.029289327561855316,
-0.039701737463474274,
0.026420602574944496,
-0.05698492005467415,
-0.02036440558731556,
0.040764227509498596,
0.0154415313154459,
0.04526210576295853,
0.012679055333137512,
0.0010503163794055581,
-0.07058479636907578,
0.02789038047194481,
0.05415160953998566,
-0.03523927554488182,
-0.0166191253811121,
0.03130805864930153,
0.04983081296086311,
0.017035268247127533,
-0.04306628927588463,
-0.020134199410676956,
-0.04427044466137886,
-0.03199867904186249,
0.06215570494532585,
0.01373269222676754,
0.0277487151324749,
-0.0341767854988575,
0.055674511939287186,
-0.015193616971373558,
0.03679759427905083,
0.006760097108781338,
-0.011297818273305893,
-0.05383286252617836,
0.009748352691531181,
0.08429092913866043,
-0.01818629913032055,
0.011165006086230278,
-0.012811867520213127,
-0.016433190554380417,
0.007189520634710789,
-0.022436263039708138,
0.03507990017533302,
-0.02077169343829155,
0.038214247673749924,
0.0489099882543087,
0.01688474789261818,
-0.02596019022166729,
0.026951847597956657,
-0.036000728607177734,
-0.038178831338882446,
-0.06527234613895416,
-0.011528024449944496,
0.03803716599941254,
-0.0658390074968338,
-0.008513206616044044,
0.03330908343195915,
-0.03242367506027222,
-0.07387851923704147,
0.037647586315870285,
0.04349128529429436,
-0.0017176932888105512,
0.010244181379675865,
-0.038320496678352356,
-0.0371517576277256,
0.019762327894568443,
-0.04083506017923355,
-0.029997654259204865,
-0.001538397977128625,
0.022188346832990646,
-0.019160248339176178,
0.0004327436035964638,
0.007269207388162613,
0.029572658240795135,
0.022028973326086998,
-0.03130805864930153,
-0.04951206594705582,
0.0031808316707611084,
0.020984191447496414,
-0.02130293846130371,
-0.06608692556619644,
-0.030812229961156845,
-0.042712125927209854,
-0.005308026447892189,
0.010961362160742283,
0.03651426360011101,
0.0015538926236331463,
0.00957127008587122,
-0.023020632565021515,
0.005591357126832008,
0.04682042449712753,
0.012634784914553165,
0.012555098161101341,
-0.04473085701465607,
-0.056772422045469284,
-0.00976606085896492,
0.012661347165703773,
-0.018204007297754288,
-0.05043289065361023,
-0.05312453582882881,
0.008429093286395073,
-0.024136247113347054,
-0.06240361928939819,
-0.010261889547109604,
-0.039807986468076706,
0.03973715379834175,
0.045014191418886185,
-0.016344647854566574,
0.029183078557252884,
0.0057861474342644215,
0.03469032049179077,
-0.021816475316882133,
-0.013104052282869816,
0.0032605184242129326,
-0.03810799866914749,
-0.0011117415269836783,
0.032742422074079514,
0.018257131800055504,
0.0006795513327233493,
0.022861259058117867,
-0.014821745455265045,
-0.022843550890684128,
-0.004296446684747934,
0.007433007936924696,
-0.030705980956554413,
-0.0050689661875367165,
-0.007667641155421734,
0.005339015740901232,
-0.011218131519854069,
0.09321585297584534,
-0.041189223527908325,
0.03690384328365326,
-0.023126881569623947,
-0.024915406480431557,
0.025375820696353912,
-0.014060293324291706,
-0.012174372561275959,
-0.012076977640390396,
-0.04947664961218834,
0.012634784914553165,
0.003209607442840934,
-0.06520151346921921,
-0.03541635721921921,
0.07196603715419769,
0.0029904686380177736,
-0.011377505026757717,
-0.05493076890707016,
0.0437391996383667,
0.05121205374598503,
0.030670564621686935,
-0.0014996613608673215,
0.03743508830666542,
0.02801433764398098,
0.02075398527085781,
0.0027204188518226147,
0.0066804103553295135,
0.045014191418886185,
-0.01603475585579872,
-0.019443580880761147,
0.03920590877532959,
-0.023056048899888992,
0.02596019022166729,
-0.016238398849964142,
0.055674511939287186,
-0.01993940956890583,
0.009553561918437481,
0.09222419559955597,
0.007039000745862722,
0.01831025630235672,
0.03771841898560524,
0.005033549852669239,
0.006481193471699953,
-0.027252886444330215,
0.03761216998100281,
-0.009075441397726536,
0.03373407945036888,
-0.03651426360011101,
-0.010341576300561428,
-0.04111839085817337,
0.05829532444477081,
-0.020169615745544434,
0.031095560640096664,
-0.04083506017923355,
-0.011350942775607109,
-0.017318598926067352,
-0.04097672551870346,
-0.019868576899170876,
0.031095560640096664,
-0.03470803052186966,
0.01928420551121235,
0.0023773228749632835,
0.0023640417493879795,
-0.05645367130637169,
0.015291011892259121,
0.056772422045469284,
-0.006405933760106564,
0.020559195429086685,
-0.025889357551932335,
0.01134208869189024,
-0.004329649731516838,
0.032317426055669785,
-0.05829532444477081,
0.07387851923704147,
0.01475976686924696,
0.0633244439959526,
-0.02730601094663143,
0.028439335525035858,
0.012422286905348301,
-0.013104052282869816,
-0.041720468550920486,
0.022436263039708138,
-0.018788376823067665,
-0.017725886777043343,
0.01045667938888073,
0.06495359539985657,
0.02939557656645775,
-0.01359102688729763,
-0.03180388733744621,
0.015379552729427814,
-0.0655202567577362,
-0.012324891984462738,
0.022347720339894295,
-0.008610601536929607,
-0.0374705046415329,
-0.01277645118534565,
-0.012811867520213127,
0.049405816942453384,
0.002468077465891838,
0.000124441459774971,
-0.015361844561994076,
0.0024592233821749687,
-0.070230633020401,
-0.04558085277676582,
0.003979912959039211,
0.028262251988053322,
0.03146743401885033,
0.01928420551121235,
0.08351176977157593,
-0.07221395522356033,
-0.035186149179935455,
-0.04087047651410103,
0.047635000199079514,
0.015335282310843468,
0.0010912665165960789,
-0.009181690402328968,
0.016468606889247894,
-0.004493450280278921,
0.04494335874915123,
0.0029129954054951668,
0.028935164213180542,
-0.0037718419916927814,
-0.024100830778479576,
-0.0332382507622242,
0.044057946652173996,
-0.002346333581954241,
-0.008553050458431244,
-0.031077852472662926,
0.008592893369495869,
0.010846259072422981,
-0.0019456860609352589,
0.023711251094937325,
-0.04320795461535454,
-0.002842162735760212,
0.012980095110833645,
-0.01843421347439289,
-0.0771368220448494,
0.047635000199079514,
-0.03398199379444122,
-0.03201638534665108,
0.01119156926870346,
-0.026066439226269722,
0.08181178569793701,
-0.0166191253811121,
-0.007340040057897568,
0.04933498427271843,
-0.01832796446979046,
0.05666616931557655,
-0.01954982988536358,
0.03486740216612816,
0.014325916767120361,
0.09548249840736389,
-0.02583623304963112,
0.004066240508109331,
0.026119563728570938,
-0.03863924369215965,
0.04455377534031868,
-0.016371211037039757,
-0.03739967197179794,
0.03562885522842407,
-0.03761216998100281,
-0.0617661252617836,
-0.029466409236192703,
-0.034495532512664795,
-0.006857492029666901,
0.027093512937426567,
0.03796633332967758,
0.03608926758170128,
0.026172688230872154,
-0.06973480433225632,
-0.03619551658630371,
-0.07175353914499283,
-0.06927439570426941,
0.004338503815233707,
-0.0034154648892581463,
-0.015760278329253197,
-0.025606026872992516,
0.013422799296677113,
-0.002494639717042446,
-0.03362783044576645,
0.0235164612531662,
0.020399821922183037,
-0.0195144135504961,
0.02762475796043873,
-0.00008784917008597404,
0.007525975815951824,
0.005967656150460243,
0.01981545239686966,
-0.02009878307580948,
0.018611295148730278,
-0.02746538445353508,
-0.06658275425434113,
-0.03584135323762894,
0.011899895966053009,
-0.042960040271282196,
-0.028457043692469597,
0.021391479298472404,
-0.0662994235754013,
0.0040994430892169476,
-0.033822622150182724,
0.0052062044851481915,
-0.03453094884753227,
-0.02939557656645775,
-0.017832135781645775,
0.022453971207141876,
0.0019025224028155208,
-0.04033923149108887,
0.002702710684388876,
-0.07387851923704147,
-0.031910136342048645,
0.017221203073859215,
-0.04834332689642906,
0.056099507957696915,
0.007800452411174774,
-0.021001899614930153,
0.0374705046415329,
0.041472554206848145,
-0.06651192158460617,
0.015955068171024323,
0.07402018457651138,
0.03361012414097786,
0.00536557799205184,
-0.04519127309322357,
0.05393911153078079,
0.01729203574359417,
0.02089565061032772,
-0.017061829566955566,
0.030989311635494232,
-0.022648761048913002,
0.05461202189326286,
-0.03047577477991581,
0.03729342296719551,
-0.011058757081627846,
0.0540807768702507
] |
722,962
|
gitdb.stream
|
write
| null |
def write(self, data):
alen = Sha1Writer.write(self, data)
self.buf.write(self.zip.compress(data))
return alen
|
(self, data)
|
[
-0.03365662693977356,
-0.0038236090913414955,
0.011065192520618439,
0.01405314914882183,
0.08483314514160156,
-0.02725512906908989,
-0.07873310148715973,
0.025659188628196716,
-0.015046179294586182,
0.01393788680434227,
0.037841539829969406,
0.009894835762679577,
-0.017679482698440552,
0.02071177028119564,
-0.0023761792108416557,
-0.02950717881321907,
-0.007443292532116175,
0.021935325115919113,
0.026953672990202904,
0.09419599920511246,
-0.002184444572776556,
0.03129817917943001,
-0.013459104113280773,
0.01381375826895237,
-0.008183632045984268,
0.029826367273926735,
0.021119622513651848,
0.00611777463927865,
-0.00424254359677434,
-0.030216487124562263,
-0.025552792474627495,
-0.0790877565741539,
0.05146023631095886,
-0.0033248774707317352,
0.08625175803899765,
0.0038635076489299536,
0.003174149664118886,
-0.01895623467862606,
0.01831785775721073,
-0.006813782267272472,
0.06018471717834473,
-0.01319311372935772,
-0.012918257154524326,
-0.030092358589172363,
0.030535675585269928,
0.03074846789240837,
0.0008173657115548849,
0.01984286867082119,
0.04649508744478226,
-0.020942294970154762,
0.0036351995076984167,
0.0032073985785245895,
0.02023298852145672,
-0.03314238041639328,
0.06834174692630768,
0.05575154721736908,
0.03438366577029228,
0.02324754372239113,
0.0224850382655859,
-0.01721843332052231,
0.002741915639489889,
-0.03324877470731735,
0.07490283995866776,
-0.06961850076913834,
-0.018495185300707817,
0.03972120210528374,
-0.03576681762933731,
-0.008241263218224049,
-0.025588257238268852,
0.04674334451556206,
-0.006796049885451794,
-0.012474940158426762,
-0.01920449174940586,
0.05709923058748245,
-0.038231659680604935,
0.0810738131403923,
-0.011020860634744167,
-0.0049474178813397884,
0.004907519090920687,
-0.033195577561855316,
0.04429623484611511,
-0.07398074120283127,
-0.004129497800022364,
0.05050267279148102,
-0.0060512772761285305,
0.00087444280507043,
0.014514198526740074,
-0.013015787117183208,
-0.07440632581710815,
-0.03211388364434242,
-0.016003744676709175,
0.03730955719947815,
0.005421767011284828,
0.017422357574105263,
0.04440263286232948,
-0.05422653630375862,
-0.004827721975743771,
-0.007620619144290686,
-0.00022886240913067013,
0.08036450296640396,
-0.01971874013543129,
0.060326576232910156,
-0.005953747313469648,
-0.012200083583593369,
0.0013654163340106606,
-0.0027374825440347195,
0.010852400213479996,
0.022910622879862785,
-0.09809718281030655,
0.01141984574496746,
0.0242228414863348,
-0.056318990886211395,
-0.00031724871951155365,
-0.06660394370555878,
-0.01984286867082119,
-0.037096768617630005,
0.001329950988292694,
0.006574391387403011,
-0.014425535686314106,
0.010400217026472092,
0.04762997850775719,
0.023761792108416557,
0.01809619925916195,
0.025942910462617874,
-0.012262147851288319,
0.009965766221284866,
0.008822008036077023,
-0.016650985926389694,
-0.024080978706479073,
-0.03851538151502609,
-0.020250720903277397,
0.09511809796094894,
0.013778292573988438,
0.028975199908018112,
-0.004153880290687084,
-0.008245696313679218,
0.02849641628563404,
-0.0007015491719357669,
-0.07071793079376221,
0.036706648766994476,
0.04195551946759224,
-0.05525503307580948,
0.04060783609747887,
0.023158879950642586,
0.04018225148320198,
-0.02739698998630047,
0.034472331404685974,
0.01631406508386135,
0.015746619552373886,
-0.029578110203146935,
0.03975667059421539,
0.0041627464815974236,
0.05245326831936836,
0.003985419869422913,
0.023389404639601707,
-0.04784277081489563,
-0.015258971601724625,
-0.0033958081621676683,
-0.012288747355341911,
-0.004406570922583342,
-0.007500923704355955,
0.02824815921485424,
-0.05865970626473427,
0.008569317869842052,
-0.02760978229343891,
-0.04206191748380661,
-0.040004927664995193,
0.06937024742364883,
0.02560598962008953,
-0.0462113656103611,
0.02071177028119564,
-0.01734256185591221,
-0.05014801770448685,
0.06114228069782257,
-0.04043051227927208,
0.0020071177277714014,
-0.039118293672800064,
0.024524295702576637,
0.03335517272353172,
-0.021261483430862427,
-0.06766790896654129,
0.013609832152724266,
-0.03915375843644142,
0.057808537036180496,
-0.003018988762050867,
-0.05965273454785347,
0.025304535403847694,
0.009079132229089737,
0.03869270905852318,
-0.012208950705826283,
-0.02298155426979065,
-0.008391991257667542,
-0.014354604296386242,
-0.03335517272353172,
0.008037337101995945,
-0.01605694182217121,
0.009877102449536324,
-0.05358815938234329,
-0.02438243478536606,
-0.007917641662061214,
-0.04358692839741707,
-0.01413294579833746,
0.05628352612257004,
-0.03184789419174194,
0.021296948194503784,
0.024417901411652565,
0.03883456811308861,
-0.0061798389069736,
-0.03908282518386841,
-0.006929044611752033,
0.08050636947154999,
0.032840922474861145,
0.006069009657949209,
-0.010586409829556942,
0.0009980173781514168,
-0.04525379836559296,
-0.007022141478955746,
-0.02924118936061859,
0.06380218267440796,
0.019913800060749054,
-0.07185281813144684,
0.030110090970993042,
-0.04369332268834114,
0.046530552208423615,
-0.008498387411236763,
-0.01424820814281702,
0.023141147568821907,
-0.018158264458179474,
-0.04532473161816597,
-0.023832721635699272,
0.017289362847805023,
-0.03425953909754753,
0.03103218972682953,
-0.00934512261301279,
-0.05234687030315399,
-0.017369160428643227,
-0.00848065409809351,
-0.03528803214430809,
-0.06397950649261475,
0.010214023292064667,
0.02486121840775013,
-0.04837474972009659,
0.05348176509141922,
0.03833805397152901,
-0.011526241898536682,
-0.03417087346315384,
0.011535108089447021,
-0.0012545870849862695,
0.05965273454785347,
-0.021030958741903305,
0.00031336970278061926,
-0.0027374825440347195,
-0.035731349140405655,
-0.019630076363682747,
0.029950495809316635,
-0.022573702037334442,
0.06344752758741379,
-0.08823781460523605,
0.010816934518516064,
-0.0015427431790158153,
-0.03101445734500885,
-0.017910007387399673,
-0.006219737697392702,
-0.039260152727365494,
0.029932763427495956,
0.005537029355764389,
-0.0123596778139472,
-0.026847276836633682,
-0.0028593947645276785,
0.03360342979431152,
0.06064576655626297,
0.01319311372935772,
-0.0013221929548308253,
0.030039159581065178,
0.006618722807615995,
-0.011588306166231632,
0.07121444493532181,
-0.0008882964611984789,
0.011277984827756882,
0.004809989593923092,
0.03603280708193779,
0.033816222101449966,
0.006197571754455566,
-0.06309287250041962,
0.03851538151502609,
-0.010719405487179756,
0.030978992581367493,
0.03918922320008278,
0.014638327062129974,
-0.06440509110689163,
-0.00022623021504841745,
0.06993769109249115,
-0.05638992413878441,
-0.040997955948114395,
0.05341083183884621,
0.021013226360082626,
-0.0035465359687805176,
-0.002866044407710433,
0.07887496054172516,
-0.046388689428567886,
-0.01970100775361061,
-0.031067656353116035,
0.06380218267440796,
-0.005421767011284828,
-0.05837598443031311,
-0.015267837792634964,
-0.0351107083261013,
0.034472331404685974,
-0.05032534524798393,
0.012474940158426762,
-0.010435681790113449,
0.008866339921951294,
-0.015161441639065742,
-0.005949314218014479,
-0.035731349140405655,
-0.04454449191689491,
0.055042240768671036,
0.04536019638180733,
0.0017100953264161944,
0.05277245491743088,
-0.032858654856681824,
-0.050680000334978104,
0.026545822620391846,
-0.07568307965993881,
0.05287885293364525,
-0.0032716793939471245,
0.013370441272854805,
-0.03417087346315384,
0.027716178447008133,
-0.030819397419691086,
-0.04429623484611511,
0.017245031893253326,
0.04121074825525284,
0.019364086911082268,
-0.010391350835561752,
-0.0018453070661053061,
0.026421694085001945,
-0.03344383463263512,
-0.027414724230766296,
-0.026333030313253403,
-0.01797207072377205,
0.010719405487179756,
0.04195551946759224,
0.03681304305791855,
-0.05110558494925499,
-0.017883408814668655,
-0.05326897278428078,
-0.05309164524078369,
-0.06124867871403694,
0.05082185938954353,
0.009841637685894966,
-0.020303918048739433,
0.05649631842970848,
0.04152993857860565,
0.06993769109249115,
-0.04642415791749954,
-0.0219885241240263,
-0.006827082019299269,
-0.019062630832195282,
0.011597172357141972,
0.03314238041639328,
0.01219121739268303,
-0.004623796325176954,
0.024967612698674202,
-0.04085609316825867,
-0.04812649264931679,
-0.005466098431497812,
0.03103218972682953,
0.0007165111019276083,
0.027219664305448532,
0.019399551674723625,
-0.02498534694314003,
-0.041636332869529724,
-0.0036906141322106123,
0.02335393987596035,
0.016003744676709175,
0.01984286867082119,
-0.018353324383497238,
-0.05727655813097954,
-0.05397827923297882,
0.010613009333610535,
0.0434805303812027,
0.006392631214112043,
0.020020196214318275,
0.07142723351716995,
0.018796641379594803,
-0.00947811733931303,
0.0007974164327606559,
-0.02901066467165947,
0.04028864949941635,
-0.021669335663318634,
0.014806787483394146,
-0.0077048493549227715,
-0.04358692839741707,
-0.02333620749413967,
0.04316134378314018,
-0.00822796393185854,
0.044509027153253555,
-0.027946703135967255,
0.04192005470395088,
0.0008955003577284515,
-0.05578701198101044,
0.04152993857860565,
0.01481565460562706,
0.002781814197078347,
-0.07603773474693298,
0.04465088993310928,
-0.057205624878406525,
0.03062433935701847,
-0.00255793915130198,
-0.02032165229320526,
0.05341083183884621,
0.041494470089673996,
-0.011074058711528778,
0.01984286867082119,
0.021279215812683105,
0.038728173822164536,
-0.04418984055519104,
-0.009504716843366623,
0.005599093623459339,
-0.006299534812569618,
0.0615324005484581,
0.016509125009179115,
0.03993399441242218,
0.010400217026472092,
-0.0978843942284584,
-0.040359579026699066,
-0.020782701671123505,
-0.07568307965993881,
0.020268453285098076,
0.061319608241319656,
-0.05628352612257004,
0.017271630465984344,
-0.0297731701284647,
0.015640223398804665,
0.03090806119143963,
-0.043374136090278625,
-0.04160086810588837,
0.02135014720261097,
0.03062433935701847,
0.09497623145580292,
-0.025446396321058273,
-0.01594167947769165,
-0.010143092833459377,
-0.006100041791796684,
-0.01325517799705267,
-0.01957687921822071,
0.010054429993033409,
0.054049208760261536,
-0.008671280927956104,
0.07320050150156021,
-0.011818830855190754,
-0.00841858983039856,
-0.009593379683792591,
0.003856858005747199,
-0.015028445981442928,
0.046885207295417786,
-0.07277491688728333,
-0.026794079691171646,
-0.02374405786395073,
0.022910622879862785,
-0.030854864045977592,
0.03376302123069763,
-0.016996774822473526,
0.008427456021308899,
-0.023017019033432007,
-0.056070733815431595,
0.001134337391704321,
0.027308328077197075,
-0.050041623413562775,
0.03317784518003464,
0.013565500266849995,
-0.005492697469890118,
0.02046351321041584,
0.04692067205905914,
0.014221609570086002,
-0.0442253053188324,
0.007939807139337063,
-0.026457158848643303,
0.0014396719634532928,
-0.033461567014455795,
0.00349777122028172,
0.01306011900305748,
0.018548384308815002,
-0.01932862214744091,
-0.03406447917222977,
0.08298894017934799,
-0.01644706167280674,
0.05234687030315399,
0.024524295702576637,
0.03791246935725212,
0.045892175287008286,
-0.054049208760261536,
0.03200748935341835,
-0.03225574642419815,
0.0474526509642601,
0.004054133780300617,
-0.05546782165765762,
-0.08873432874679565,
-0.006623155903071165,
-0.014026549644768238,
-0.047913700342178345,
-0.053800951689481735,
-0.06855454295873642,
0.04379972070455551,
-0.012395143508911133,
0.000027031946956412867,
-0.05823412165045738,
-0.020534442737698555,
0.018903037533164024,
-0.07419353723526001,
-0.0075363889336586,
-0.0637667179107666,
0.02312341518700123,
0.008024037815630436,
0.07291678339242935,
-0.03688397631049156,
-0.015977144241333008,
-0.09951580315828323,
-0.01973647251725197,
-0.056957367807626724,
0.03975667059421539,
0.008755510672926903,
-0.013707362115383148,
-0.026847276836633682,
-0.02725512906908989,
-0.0023894787300378084,
-0.019523680210113525,
-0.009398320689797401,
0.04305494576692581,
-0.08681920170783997,
-0.021296948194503784,
-0.014079747721552849,
0.0008024037815630436,
0.024329237639904022,
0.0361923985183239,
-0.04177819564938545,
0.02638622745871544,
0.037983402609825134,
-0.06607196480035782,
-0.01518804021179676,
-0.047133464366197586,
0.008325492963194847,
-0.1364707052707672,
-0.049793366342782974,
0.039224687963724136,
-0.026279831305146217,
0.015879614278674126,
0.009021501056849957,
-0.001966110896319151,
-0.05348176509141922,
-0.06114228069782257,
0.049190454185009,
0.06720685958862305,
0.03431273624300957,
-0.009584513492882252,
-0.01667758636176586,
-0.011685836128890514,
-0.01957687921822071,
0.04404797777533531,
0.015427432022988796,
0.047168929129838943,
-0.022644633427262306,
0.004880920052528381,
-0.014274807646870613,
0.0595463402569294,
0.04560845345258713,
-0.00026973069179803133,
-0.018495185300707817,
-0.013450237922370434,
0.036210134625434875,
0.0170588381588459,
-0.010533211752772331,
-0.019771939143538475,
0.02385045401751995,
-0.013361574150621891,
-0.03253946825861931,
0.013858089223504066,
0.008742211386561394,
-0.05479397997260094,
0.023814989253878593,
0.006383765023201704,
-0.06855454295873642,
-0.02700687199831009,
0.035358965396881104,
-0.03367435932159424,
-0.001791000715456903,
0.03314238041639328,
-0.02814176306128502,
0.015888480469584465,
0.006499027367681265,
-0.043019481003284454,
-0.008932837285101414,
-0.033567965030670166,
0.027680713683366776,
-0.005098145455121994,
0.003151983954012394,
-0.04926138371229172,
0.003411324229091406,
0.031954288482666016,
0.002444893354550004,
0.0019284290028735995,
-0.07376795262098312,
0.021811196580529213,
0.06142600253224373,
0.044012513011693954,
-0.06270276010036469,
0.020818166434764862,
-0.03475605323910713,
-0.0049607171677052975,
-0.007226067129522562,
0.05490037798881531,
0.015853015705943108,
-0.03996945917606354,
-0.027414724230766296,
0.02044578082859516,
-0.013760560192167759,
-0.036848507821559906,
-0.021066423505544662,
0.04440263286232948,
0.04046597704291344,
-0.006756151095032692,
-0.033869419246912,
-0.007975272834300995,
-0.008671280927956104,
0.0007192818447947502,
0.056957367807626724,
0.06539812684059143,
0.03851538151502609,
-0.02220131643116474,
-0.0022232348565012217,
0.02133241482079029,
0.03943748027086258,
0.005962613504379988,
0.0247193556278944,
0.04958057403564453,
-0.07788193225860596,
0.040111321955919266,
0.014966381713747978,
-0.007186168804764748,
0.045750316232442856,
0.00860478263348341,
0.023283008486032486,
-0.05447479337453842,
-0.009327389299869537,
-0.024577494710683823,
0.0694766417145729,
-0.010976528748869896,
-0.11029727011919022,
-0.05791493505239487,
-0.047665443271398544,
-0.02651035599410534,
-0.00031420093728229403,
0.052063148468732834,
0.04699160158634186,
0.0501834861934185,
0.08447849005460739,
0.02938305027782917,
-0.03954387828707695,
-0.015454030595719814,
-0.0017300446052104235,
-0.006219737697392702,
0.0342063382267952,
-0.014833386987447739,
0.02463069185614586,
0.039118293672800064,
-0.006889146286994219,
0.010435681790113449,
0.05912075564265251,
-0.023052483797073364,
-0.02450656332075596,
0.05578701198101044,
-0.035571757704019547,
-0.012705464847385883,
0.0612841434776783,
-0.015454030595719814,
0.010036696679890156,
-0.046034038066864014,
-0.023708593100309372,
0.0056434255093336105,
-0.06387311220169067,
-0.0055769276805222034,
0.06117774546146393,
-0.029294388368725777,
-0.015994876623153687,
0.0442253053188324,
-0.03741595521569252,
-0.007239366881549358,
-0.022289978340268135,
-0.023176612332463264,
0.014922050759196281,
-0.03656478598713875,
0.0055769276805222034,
-0.04202645272016525,
0.03248627111315727,
0.03330197185277939,
0.029666773974895477,
-0.010267221368849277,
0.004331206902861595,
-0.03681304305791855,
0.020552176982164383,
0.0030655369628220797,
0.05887249857187271,
0.019381819292902946,
0.025818781927227974,
-0.004880920052528381,
0.025960642844438553,
-0.0434805303812027,
-0.016154471784830093,
-0.005457232240587473,
-0.01794547215104103,
0.05741841718554497,
-0.024293771013617516,
0.0622771717607975,
-0.026333030313253403,
0.007620619144290686,
-0.04606950283050537,
0.03454326093196869,
0.039614807814359665,
0.036210134625434875,
-0.022360909730196,
0.03691944107413292,
-0.004721326287835836,
-0.009744107723236084,
-0.05309164524078369,
-0.029666773974895477,
-0.03688397631049156,
-0.021953057497739792,
-0.005373002029955387,
0.021899860352277756,
-0.03090806119143963,
-0.0449700765311718,
0.038231659680604935,
0.012616802006959915,
0.002259808359667659,
0.039863064885139465,
-0.04369332268834114,
0.0015615841839462519,
-0.0016757382545620203,
0.020250720903277397,
0.040395043790340424,
0.03631652891635895,
-0.007917641662061214,
0.00010639608080964535,
0.009074699133634567,
-0.02246730588376522,
0.05412013828754425,
0.0020747235976159573,
-0.03801886737346649,
0.024666158482432365,
0.0031453340779989958,
0.013707362115383148,
-0.05082185938954353,
0.032220277935266495,
0.03972120210528374,
0.022928355261683464,
-0.02498534694314003,
0.023141147568821907,
0.017023373395204544,
-0.03289412334561348,
0.008631382137537003,
0.0026466024573892355,
-0.020818166434764862,
-0.006725118961185217,
0.01683717966079712,
0.05287885293364525,
0.028656011447310448,
0.028549615293741226
] |
722,963
|
gitdb
|
_init_externals
|
Initialize external projects by putting them into the path
|
def _init_externals():
"""Initialize external projects by putting them into the path"""
if 'PYOXIDIZER' not in os.environ:
where = os.path.join(os.path.dirname(__file__), 'ext', 'smmap')
if os.path.exists(where):
sys.path.append(where)
import smmap
del smmap
# END handle imports
|
()
|
[
0.04428120702505112,
-0.041989583522081375,
-0.003437434323132038,
0.04583245888352394,
-0.03881656751036644,
-0.008690538816154003,
-0.0038032126612961292,
0.06363660842180252,
-0.0026353662833571434,
0.03624289855360985,
0.001701089320704341,
-0.010717744007706642,
-0.003598288632929325,
0.03909861296415329,
-0.04763050004839897,
-0.0036445618607103825,
0.0006527820369228721,
0.07033519446849823,
-0.016640707850456238,
-0.06314302235841751,
-0.06282572448253632,
-0.010162466205656528,
-0.014992502517998219,
0.05365923047065735,
0.0025714654475450516,
0.10414544492959976,
0.018914703279733658,
-0.012057461775839329,
0.05510471761226654,
-0.06980635970830917,
-0.006513497326523066,
0.021171070635318756,
-0.0031950511038303375,
0.011775416322052479,
0.03225899860262871,
0.013502947054803371,
0.07558830082416534,
-0.005209035240113735,
-0.023621344938874245,
-0.0042461128905415535,
0.0757998377084732,
0.017583798617124557,
0.09688276797533035,
-0.029191751033067703,
0.04791254550218582,
0.012083903886377811,
-0.03294648602604866,
-0.007663716096431017,
0.03871079906821251,
0.06733845919370651,
-0.018667912110686302,
0.03372211381793022,
0.038393497467041016,
0.03056672401726246,
-0.03892233222723007,
0.07012366503477097,
0.009457351639866829,
0.028557147830724716,
0.006742659956216812,
-0.0296324472874403,
0.004076444543898106,
-0.0018608418758958578,
0.019619816914200783,
0.03340481221675873,
0.012110345996916294,
-0.002895377343520522,
-0.015389129519462585,
-0.019443539902567863,
-0.014067038893699646,
0.054963693022727966,
-0.0564444363117218,
-0.007773890160024166,
-0.024961061775684357,
-0.06430646777153015,
0.06670385599136353,
0.05880656838417053,
-0.05309513956308365,
-0.06021679937839508,
-0.006861648056656122,
-0.03613713011145592,
0.01828010007739067,
0.018879447132349014,
-0.06814934313297272,
-0.001379380701109767,
0.010497395880520344,
0.0037723639979958534,
0.03275258094072342,
0.022969113662838936,
0.0649058148264885,
-0.006650113500654697,
-0.01645561493933201,
0.046326037496328354,
0.01645561493933201,
0.004825628828257322,
0.023321669548749924,
-0.01760142669081688,
-0.0031201327219605446,
-0.018156705424189568,
-0.003970677498728037,
0.009765839204192162,
0.0231806468218565,
-0.06631603837013245,
-0.03680698946118355,
-0.03146574646234512,
-0.006861648056656122,
-0.01693156734108925,
0.04533887654542923,
-0.0365249440073967,
0.03966270387172699,
0.015574222430586815,
-0.09201747179031372,
-0.023691855370998383,
-0.04978110268712044,
-0.004724268801510334,
-0.02841612510383129,
-0.02282808907330036,
0.04533887654542923,
0.040473587810993195,
0.06437698006629944,
-0.0013672615168616176,
-0.03874605521559715,
0.06465902179479599,
-0.025049202144145966,
0.009210561402142048,
0.07061724364757538,
-0.028909703716635704,
0.07460114359855652,
0.061309728771448135,
0.00601110327988863,
-0.07826773822307587,
0.06451799720525742,
-0.03361634537577629,
-0.04572669044137001,
-0.07713955640792847,
-0.020324932411313057,
-0.010144838131964207,
0.004422391764819622,
-0.006936566438525915,
0.004561210982501507,
-0.0060728006064891815,
-0.044069670140743256,
0.032135605812072754,
-0.06293149292469025,
-0.002580279251560569,
-0.0019467778038233519,
0.057043783366680145,
-0.004614094737917185,
-0.012859529815614223,
-0.05683225020766258,
0.02566617727279663,
0.030355188995599747,
-0.0736139789223671,
-0.050979796797037125,
-0.02423832006752491,
-0.04914649948477745,
-0.01220729947090149,
0.04724268987774849,
-0.04167228192090988,
0.05729057267308235,
0.03656020015478134,
-0.010241791605949402,
0.05246053636074066,
-0.009210561402142048,
-0.0056321038864552975,
-0.03941591456532478,
0.02168227918446064,
-0.0637776255607605,
-0.05746685341000557,
-0.01685224287211895,
-0.03994474932551384,
-0.013423621654510498,
-0.00439815316349268,
0.005848045460879803,
-0.06293149292469025,
0.0988570898771286,
-0.018491635099053383,
-0.01873842440545559,
0.02794017270207405,
-0.00876105111092329,
0.07269733399152756,
-0.0016988858114928007,
0.07171016931533813,
-0.01999000273644924,
0.06754999607801437,
0.004702234175056219,
0.039063356816768646,
0.018156705424189568,
-0.025983478873968124,
-0.0011458115186542273,
0.010920464992523193,
-0.01731938123703003,
0.058171965181827545,
0.025225479155778885,
0.014084666967391968,
-0.005451418459415436,
0.03945117071270943,
0.05633866786956787,
-0.007165728602558374,
-0.07446011900901794,
0.07290886342525482,
-0.10188908129930496,
0.054188068956136703,
-0.0296324472874403,
-0.008232214488089085,
0.0002506462624296546,
-0.030231794342398643,
-0.04248316213488579,
-0.00974821113049984,
-0.016217639669775963,
0.059970010071992874,
0.01645561493933201,
-0.03641917556524277,
0.0028733424842357635,
-0.007588797248899937,
0.028345612809062004,
-0.01808619312942028,
-0.011158441193401814,
0.03694801405072212,
0.03188881278038025,
-0.008686132729053497,
-0.030531467869877815,
-0.009862792678177357,
0.000440145842730999,
-0.014208062551915646,
-0.02434408664703369,
0.024502737447619438,
-0.005790754687041044,
0.030919281765818596,
0.014005341567099094,
-0.016341034322977066,
0.021241581067442894,
0.018808936700224876,
-0.025507526472210884,
-0.05746685341000557,
0.018015682697296143,
-0.05602136626839638,
0.009915675967931747,
0.008703759871423244,
-0.012806646525859833,
-0.06254367530345917,
0.006451799999922514,
0.00660604378208518,
-0.038217220455408096,
-0.054857928305864334,
-0.006332811899483204,
0.0016019325703382492,
-0.037265315651893616,
-0.03913386911153793,
0.006905717775225639,
0.009686513803899288,
0.03389839082956314,
-0.0007750753429718316,
0.024467481300234795,
-0.006086021661758423,
-0.03000263310968876,
-0.026388918980956078,
0.013547017239034176,
0.014780967496335506,
0.023921018466353416,
-0.04438697174191475,
-0.02178804576396942,
0.02281046286225319,
-0.005156151484698057,
0.0494285449385643,
-0.032329510897397995,
0.009378026239573956,
0.010708929970860481,
0.015591849572956562,
0.01344124972820282,
-0.027499474585056305,
0.07283835113048553,
0.07209797948598862,
-0.02281046286225319,
-0.0012901396257802844,
0.01958456262946129,
-0.019337771460413933,
-0.054117556661367416,
-0.05686750262975693,
0.007302344776690006,
0.044633764773607254,
0.024767154827713966,
0.004010340198874474,
-0.016226453706622124,
0.04858240485191345,
-0.002666215179488063,
-0.09653020650148392,
-0.016261707991361618,
-0.033545833081007004,
-0.07082877308130264,
-0.0471721775829792,
-0.01093809213489294,
0.03613713011145592,
-0.024291202425956726,
-0.006645706482231617,
0.01657900959253311,
-0.012718507088720798,
-0.021911440417170525,
0.04343506693840027,
-0.010559093207120895,
-0.01828010007739067,
0.00601551029831171,
0.05919438228011131,
-0.005187000147998333,
0.047207433730363846,
0.011537440121173859,
0.01552133820950985,
-0.03983898460865021,
-0.036489687860012054,
0.030055515468120575,
0.0036886315792798996,
0.005781941115856171,
-0.008976992219686508,
0.019725585356354713,
-0.012048648670315742,
0.052777837961912155,
-0.018773680552840233,
0.026547569781541824,
0.01202220655977726,
-0.028186962008476257,
0.0009838554542511702,
0.03275258094072342,
0.003726090770214796,
0.0037216837517917156,
-0.02406204119324684,
-0.01070011593401432,
-0.05686750262975693,
0.04622027277946472,
-0.010021443478763103,
0.030989792197942734,
-0.02688249945640564,
-0.05697327107191086,
0.01930251531302929,
0.03067249059677124,
-0.006372474599629641,
0.06698589771986008,
-0.02772863768041134,
-0.021752789616584778,
-0.07008840888738632,
-0.027217429131269455,
-0.029650075361132622,
0.03039044514298439,
-0.010982162319123745,
-0.0774921104311943,
0.024097297340631485,
-0.032329510897397995,
0.0033228532411158085,
-0.00024265862884931266,
-0.03097216598689556,
-0.05961745232343674,
-0.07107556611299515,
0.03425094857811928,
0.04459850862622261,
-0.01273613516241312,
0.032805465161800385,
0.027305567637085915,
0.04706640914082527,
-0.06610450893640518,
-0.0008665199275128543,
0.04022679477930069,
0.029279889538884163,
0.03548489883542061,
0.026106873527169228,
-0.020765628665685654,
-0.025877710431814194,
-0.04808882623910904,
-0.06539939343929291,
0.025066828355193138,
-0.043329302221536636,
0.011660834774374962,
-0.0005971440696157515,
0.01301818061619997,
-0.04551515728235245,
-0.026388918980956078,
0.02859240211546421,
0.03955693915486336,
0.02027204819023609,
-0.010673674754798412,
0.006513497326523066,
-0.03291122987866402,
0.008161703124642372,
-0.020941907539963722,
0.036313410848379135,
0.011290649883449078,
-0.051438119262456894,
0.038393497467041016,
-0.021188698709011078,
0.05083877220749855,
0.025313619524240494,
0.010823511518537998,
-0.014692828990519047,
0.03106030449271202,
-0.021629394963383675,
0.041425492614507675,
-0.011634393595159054,
0.07728057354688644,
0.01570643112063408,
-0.04117869958281517,
0.011986950412392616,
0.057607874274253845,
0.010153652168810368,
0.017865844070911407,
-0.010770627297461033,
0.04516259953379631,
0.04089665412902832,
0.04022679477930069,
-0.00135624420363456,
-0.021171070635318756,
-0.02014865353703499,
0.005680580623447895,
0.04639654979109764,
-0.04981635510921478,
-0.026847243309020996,
0.01220729947090149,
-0.05101505294442177,
-0.035449642688035965,
0.008479004725813866,
-0.013026994653046131,
0.009853978641331196,
0.05309513956308365,
-0.02774626575410366,
0.004025764297693968,
-0.04583245888352394,
0.018967587500810623,
-0.0009744905983097851,
0.0015512524405494332,
0.00042141624726355076,
-0.01836823858320713,
-0.006323997862637043,
-0.01902046985924244,
0.023021996021270752,
-0.01645561493933201,
0.022369764745235443,
0.015785755589604378,
-0.07040570676326752,
0.022563671693205833,
0.05602136626839638,
0.005305988248437643,
0.004711047746241093,
-0.029191751033067703,
-0.06074563413858414,
0.04357609152793884,
0.023021996021270752,
-0.004843256901949644,
-0.04339981451630592,
0.022757578641176224,
0.05989949777722359,
-0.04156651347875595,
0.10752999782562256,
0.025419386103749275,
-0.010039071552455425,
-0.04459850862622261,
-0.05436434596776962,
-0.022687066346406937,
-0.014005341567099094,
0.06867817789316177,
-0.03941591456532478,
-0.002904191380366683,
0.016790544614195824,
-0.03444485366344452,
0.007958983071148396,
-0.012612739577889442,
-0.025013945996761322,
0.018191959708929062,
-0.002734523033723235,
0.03931014612317085,
0.03183593228459358,
0.00828069169074297,
-0.006156533025205135,
0.006993856746703386,
-0.027323195710778236,
0.031183699145913124,
0.003007755149155855,
0.023339297622442245,
-0.028856821358203888,
0.025225479155778885,
-0.024220691993832588,
-0.027094034478068352,
0.024502737447619438,
0.051085565239191055,
0.0003029789950232953,
-0.013846690766513348,
0.014516550116240978,
0.05376499891281128,
0.001092377002350986,
-0.028839193284511566,
-0.033845506608486176,
0.0384640097618103,
-0.08165229111909866,
0.01808619312942028,
-0.019161492586135864,
0.01799805462360382,
0.06504683196544647,
0.014428410679101944,
-0.005702615715563297,
-0.010426884517073631,
-0.014243317767977715,
0.04191907122731209,
0.007650495041161776,
0.07446011900901794,
-0.01676410250365734,
0.031959325075149536,
-0.025719059631228447,
-0.06331930309534073,
0.023638971149921417,
0.013053436763584614,
0.042377397418022156,
-0.0136880399659276,
-0.03920438140630722,
-0.011607951484620571,
0.043117765337228775,
-0.006222637835890055,
-0.03680698946118355,
0.02196432463824749,
-0.04678436368703842,
0.036313410848379135,
-0.0370890349149704,
-0.03292885795235634,
0.053165651857852936,
-0.02413255162537098,
0.026106873527169228,
0.009871606715023518,
-0.041601769626140594,
0.01579456962645054,
-0.03275258094072342,
-0.005746684968471527,
-0.038217220455408096,
-0.03425094857811928,
0.03002026118338108,
-0.015494896098971367,
0.04745422303676605,
0.004499513655900955,
-0.04674910753965378,
-0.03966270387172699,
-0.011872369796037674,
0.04755999147891998,
0.010550279170274734,
0.03740633651614189,
-0.05863029137253761,
0.08799832314252853,
-0.02980872616171837,
0.004069834016263485,
-0.04622027277946472,
0.02889207750558853,
-0.0009342770208604634,
0.047101665288209915,
0.010726558044552803,
-0.04040307551622391,
0.008188145235180855,
-0.006354846525937319,
0.025137340649962425,
0.058171965181827545,
0.006826391909271479,
-0.0001244279701495543,
0.029332773759961128,
0.017645496875047684,
-0.06673911213874817,
-0.006046358961611986,
-0.035731688141822815,
-0.006165347062051296,
0.019954746589064598,
0.03067249059677124,
0.04301200062036514,
-0.07460114359855652,
0.019549306482076645,
-0.03342244029045105,
-0.05573932081460953,
-0.0774921104311943,
0.01940828375518322,
-0.002353320363909006,
0.0020955128129571676,
0.03761787340044975,
-0.03389839082956314,
0.027146916836500168,
-0.0017220224253833294,
-0.03206509351730347,
0.05045095831155777,
0.005314802285283804,
0.004684606101363897,
0.034515365958213806,
-0.013388366438448429,
-0.00016897964815143496,
0.006491462700068951,
0.016720034182071686,
0.016702406108379364,
0.05083877220749855,
-0.06867817789316177,
0.008289504796266556,
0.024273574352264404,
-0.008069156669080257,
-0.028557147830724716,
-0.013414807617664337,
0.0014520956901833415,
0.0008384254761040211,
-0.0065884157083928585,
-0.018244843930006027,
-0.015133525244891644,
-0.013749737292528152,
0.007773890160024166,
0.006390102207660675,
-0.029896864667534828,
-0.036101873964071274,
0.05147337540984154,
-0.0040323748253285885,
-0.04801831394433975,
0.028733426705002785,
-0.018139077350497246,
-0.029932120814919472,
-0.010664860717952251,
-0.0014377729967236519,
0.09173543006181717,
-0.023815250024199486,
-0.03002026118338108,
-0.00035365912481211126,
-0.04029730707406998,
-0.0006533328560180962,
-0.02508445642888546,
0.005821603816002607,
0.00208449549973011,
0.033545833081007004,
-0.0014542991993948817,
-0.022969113662838936,
-0.00613449839875102,
-0.014675200916826725,
-0.03199458122253418,
0.02519022487103939,
-0.0009359296527691185,
0.02586008422076702,
-0.04357609152793884,
0.02309250831604004,
0.06123921647667885,
0.01882656291127205,
0.03002026118338108,
0.024502737447619438,
-0.04449274018406868,
0.033545833081007004,
-0.005407348740845919,
0.02386813424527645,
-0.02196432463824749,
0.03123658336699009,
0.06060461327433586,
0.0027389300521463156,
0.031483374536037445,
0.01112318504601717,
-0.002835883293300867,
-0.009809908457100391,
-0.0025846862699836493,
-0.041425492614507675,
0.02215823158621788,
0.0023158611729741096,
0.022493161261081696,
0.004680199082940817,
-0.021999580785632133,
-0.0106031633913517,
0.0657166913151741,
-0.024167807772755623,
0.035537783056497574,
-0.04375236853957176,
-0.026935383677482605,
0.05919438228011131,
-0.004041188862174749,
-0.011925253085792065,
-0.008360017091035843,
-0.017160730436444283,
0.019760841503739357,
-0.00007663990982109681,
-0.06695064157247543,
0.05633866786956787,
-0.02660045400261879,
0.017284125089645386,
0.010594349354505539,
-0.011907625012099743,
-0.014930805191397667,
0.027217429131269455,
-0.024961061775684357,
-0.04724268987774849,
-0.014675200916826725,
-0.004314420744776726,
0.020959535613656044,
-0.02242264896631241,
0.030355188995599747,
-0.06557567417621613,
0.02945616841316223,
-0.01958456262946129,
0.04421069473028183,
-0.045303624123334885,
0.008430528454482555,
0.012956483289599419,
0.015644732862710953,
0.06698589771986008,
0.05341244116425514,
-0.03495606407523155,
0.02906835451722145,
0.04808882623910904,
0.019760841503739357,
-0.030601980164647102,
-0.013749737292528152,
-0.020871397107839584,
-0.09779941290616989,
-0.039063356816768646,
-0.020113397389650345,
0.08962008357048035,
-0.01865028589963913,
-0.057220060378313065,
-0.02016628161072731,
-0.028839193284511566,
0.01958456262946129,
-0.05415281280875206,
0.020994791761040688,
-0.03881656751036644,
-0.01847400702536106,
0.01986660808324814,
-0.06673911213874817,
0.0007337600109167397,
-0.059300150722265244,
0.04117869958281517,
-0.04382288083434105,
0.03305225446820259,
0.032805465161800385,
0.009289886802434921,
-0.046819619834423065,
0.05683225020766258,
-0.0012284420663490891,
0.04449274018406868,
-0.007654902059584856,
0.002860121661797166,
0.014269759878516197,
-0.07678699493408203,
-0.027323195710778236,
0.02633603662252426,
0.0037657534703612328,
-0.05545727536082268,
-0.03775889426469803,
-0.06416544318199158,
0.06370712071657181,
-0.013670411892235279,
-0.039028100669384,
0.0255604088306427,
0.036101873964071274,
-0.033827878534793854,
-0.07171016931533813,
-0.004380525555461645,
-0.04784203693270683,
0.003428620519116521,
0.01206627581268549,
-0.011801858432590961,
0.02235213667154312,
0.09018417447805405,
-0.051261842250823975,
-0.03211797773838043,
0.03966270387172699,
0.031113188713788986,
0.01845637895166874,
0.02573668770492077,
-0.0068352059461176395,
-0.032823093235492706,
-0.019566934555768967,
-0.04213060438632965,
0.03439197316765785,
-0.03181830421090126,
-0.0325763002038002,
-0.0010284759337082505,
-0.04667859524488449,
0.003986101597547531,
-0.05133235454559326,
0.13072827458381653,
0.04068512097001076,
-0.00836883019655943,
-0.002659604651853442
] |
722,980
|
pyopenstates.core
|
APIError
|
Raised when the Open States API returns an error
|
class APIError(RuntimeError):
"""
Raised when the Open States API returns an error
"""
pass
| null |
[
-0.029722917824983597,
-0.07238298654556274,
-0.03682389482855797,
0.0406905822455883,
-0.001576489070430398,
-0.05521777272224426,
-0.0405098982155323,
0.0471230186522007,
0.04090740904211998,
-0.03776346519589424,
0.043111782521009445,
0.02059825323522091,
0.05897605046629906,
-0.005262492224574089,
-0.022658077999949455,
0.04784576594829559,
0.004173856694251299,
0.04126878082752228,
-0.005185700487345457,
-0.0437261164188385,
-0.03367995098233223,
0.04267813265323639,
-0.004842396359890699,
0.002004490001127124,
0.005912963300943375,
0.07986339926719666,
0.0075346240773797035,
0.006834464147686958,
-0.0016815130366012454,
-0.08940364420413971,
-0.06887766718864441,
-0.008465158753097057,
0.0027825708966702223,
0.04842396080493927,
-0.012268608435988426,
0.00007368618389591575,
0.011238696053624153,
0.028331631794571877,
-0.11462747305631638,
-0.0027125549968332052,
-0.13327430188655853,
-0.0004302595625631511,
-0.05373614281415939,
-0.004797224886715412,
0.03812483698129654,
-0.022694215178489685,
-0.053230222314596176,
0.01607205718755722,
-0.05286885052919388,
-0.012629981152713299,
-0.052073828876018524,
0.002723847981542349,
0.019676752388477325,
-0.006405333988368511,
0.026018844917416573,
0.047303706407547,
-0.0036972961388528347,
0.035902392119169235,
0.004991462454199791,
0.002863879781216383,
-0.01322624646127224,
0.04383452609181404,
0.0025137998163700104,
-0.01908048614859581,
0.03328244015574455,
0.02061632089316845,
-0.025494854897260666,
-0.004223545081913471,
-0.017165210098028183,
0.030012015253305435,
0.05456729978322983,
0.03758277744054794,
-0.0405098982155323,
0.022513529285788536,
0.08109206706285477,
-0.009224042296409607,
-0.08701858669519424,
0.022387048229575157,
-0.002319562016054988,
-0.009982924908399582,
0.020236879587173462,
-0.014608497731387615,
-0.03928123041987419,
0.02773536741733551,
0.010850219987332821,
-0.04795417934656143,
0.03355346992611885,
-0.05297726020216942,
-0.044737961143255234,
0.034167803823947906,
-0.05536232143640518,
0.024537216871976852,
-0.08644038438796997,
-0.006811878178268671,
0.02059825323522091,
0.04791804030537605,
0.018466152250766754,
-0.034511107951402664,
-0.020146537572145462,
-0.06876925379037857,
0.028982102870941162,
0.02038142830133438,
-0.02946995571255684,
0.013497276231646538,
0.0067983269691467285,
-0.032939136028289795,
0.018321603536605835,
-0.02213408797979355,
0.02491665817797184,
-0.006256267428398132,
-0.048785336315631866,
-0.017065832391381264,
-0.06338480114936829,
0.009982924908399582,
-0.00944990012794733,
-0.03268617391586304,
0.07202161103487015,
0.008442573249340057,
-0.055037084966897964,
0.002640280406922102,
0.024067431688308716,
-0.005447695963084698,
-0.04976104199886322,
0.02067052759230137,
0.0646134689450264,
0.03967874124646187,
-0.007286180276423693,
0.03270424157381058,
0.03666127473115921,
-0.022947175428271294,
-0.03331857547163963,
-0.0029248616192489862,
-0.05174859240651131,
-0.03924509137868881,
-0.00383281079120934,
0.01902628131210804,
0.051893141120672226,
-0.006644743494689465,
-0.014075472950935364,
-0.013542448170483112,
-0.0204356350004673,
0.03666127473115921,
-0.002263097558170557,
-0.018339673057198524,
0.03554102033376694,
0.0015019559068605304,
-0.06110814958810806,
-0.031529780477285385,
0.030319182202219963,
0.033101752400398254,
0.04972490668296814,
0.00346240377984941,
0.01171751506626606,
-0.007254560012370348,
-0.08311575651168823,
-0.02645249292254448,
0.017029695212841034,
-0.06107201427221298,
0.030066221952438354,
0.023001382127404213,
-0.031385231763124466,
-0.019550271332263947,
-0.010064234025776386,
-0.05138722062110901,
-0.043328605592250824,
0.005257974844425917,
-0.01543062087148428,
-0.05268816277384758,
-0.02773536741733551,
0.016713494434952736,
-0.03402325510978699,
0.015873301774263382,
-0.059337422251701355,
0.007390074897557497,
-0.0039050853811204433,
0.019297311082482338,
0.0037966736126691103,
0.07697241753339767,
-0.03620956093072891,
-0.02359764836728573,
0.05008627846837044,
-0.013497276231646538,
-0.1053040474653244,
-0.0013991905143484473,
0.0010366883361712098,
0.038197111338377,
-0.015791993588209152,
0.05445889011025429,
0.026904208585619926,
0.044665686786174774,
0.003986394498497248,
-0.031728535890579224,
0.06558917462825775,
0.020164605230093002,
0.010768910869956017,
-0.030246907845139503,
-0.023109793663024902,
-0.010010028257966042,
0.035739775747060776,
0.021031899377703667,
-0.03559522703289986,
0.06902221590280533,
0.0051902178674936295,
-0.010651464574038982,
-0.013714100234210491,
-0.002147909952327609,
-0.0013280452694743872,
-0.0680103749036789,
-0.021049968898296356,
-0.022585803642868996,
-0.03993169963359833,
0.007543658372014761,
-0.03483634442090988,
0.08051387220621109,
0.04802645370364189,
-0.02332661859691143,
0.036119215190410614,
-0.00954927783459425,
0.024374598637223244,
0.01465366967022419,
0.04802645370364189,
-0.03321016579866409,
0.06298729032278061,
-0.06826332956552505,
0.003191374009475112,
0.04434045031666756,
-0.01918889954686165,
-0.01767113246023655,
-0.02211601845920086,
-0.05995175614953041,
-0.0014409743016585708,
0.008054097183048725,
0.001731201889924705,
-0.011591034010052681,
0.035793982446193695,
-0.002430232474580407,
0.017951196059584618,
-0.036119215190410614,
0.013099766336381435,
-0.003512092400342226,
0.011780754663050175,
-0.023091726005077362,
-0.018773319199681282,
0.029722917824983597,
0.001084118615835905,
-0.02616339549422264,
-0.012973285280168056,
0.021357135847210884,
-0.041702426970005035,
-0.028421975672245026,
0.02188112586736679,
-0.03526999056339264,
-0.01165427453815937,
-0.04108809307217598,
0.053483184427022934,
-0.1285041868686676,
0.008528399281203747,
-0.012810667976737022,
0.06110814958810806,
0.013271418400108814,
-0.013840580359101295,
0.04126878082752228,
-0.02074280194938183,
0.09908843785524368,
-0.0347098633646965,
-0.024446872994303703,
0.011301935650408268,
0.04383452609181404,
0.04990559071302414,
0.04209993779659271,
0.13558709621429443,
0.04856851324439049,
-0.04397907480597496,
-0.011889167129993439,
-0.023073656484484673,
-0.01610819436609745,
-0.030319182202219963,
0.025494854897260666,
0.013406933285295963,
-0.003575332695618272,
0.04383452609181404,
-0.005321215372532606,
0.00472043314948678,
0.05297726020216942,
-0.005262492224574089,
-0.022640008479356766,
0.004232579376548529,
0.009576380252838135,
-0.01312686875462532,
-0.022278636693954468,
0.053555458784103394,
0.014084506779909134,
-0.00346240377984941,
0.0006013470119796693,
0.02914472110569477,
-0.01609916053712368,
-0.05716918408870697,
0.04387066513299942,
0.05391683056950569,
-0.02914472110569477,
0.032722312957048416,
0.04195538908243179,
0.03505316749215126,
0.0006499065202660859,
-0.02927120216190815,
-0.04679778590798378,
0.030337251722812653,
0.017237484455108643,
-0.04293109476566315,
-0.02511541359126568,
-0.00006581644265679643,
-0.013804443180561066,
-0.0051134261302649975,
-0.009305351413786411,
0.01601785235106945,
0.018267398700118065,
-0.005583210848271847,
-0.03693230450153351,
0.0011038811644539237,
0.07003405690193176,
-0.062083855271339417,
-0.008618742227554321,
0.03358960524201393,
-0.019297311082482338,
-0.02900017239153385,
-0.038847580552101135,
0.024013226851820946,
0.003274941584095359,
-0.01927924156188965,
-0.02175464667379856,
-0.010398504324257374,
-0.05991562083363533,
0.039028268307447433,
0.013470172882080078,
-0.039028268307447433,
-0.03322823345661163,
0.04267813265323639,
-0.024609491229057312,
0.03906440734863281,
-0.003222994040697813,
0.02186305820941925,
0.004860464949160814,
-0.010434641502797604,
0.05388069152832031,
0.0032523556146770716,
-0.021248724311590195,
0.005321215372532606,
-0.05174859240651131,
0.05416979268193245,
-0.027247512713074684,
-0.05406137928366661,
0.06927517801523209,
-0.010786979459226131,
0.03369801864027977,
0.05174859240651131,
-0.014418777078390121,
-0.025458717718720436,
-0.05416979268193245,
0.010470778681337833,
-0.04358156770467758,
0.02202567644417286,
-0.04867692291736603,
-0.06179475784301758,
0.012223436497151852,
-0.055037084966897964,
-0.010543053038418293,
0.035938531160354614,
-0.023959020152688026,
0.018411947414278984,
-0.02222442999482155,
-0.05250747501850128,
-0.0464002750813961,
-0.06118042394518852,
0.03313789144158363,
0.01018168032169342,
0.04275040701031685,
0.0145904291421175,
-0.009368591010570526,
-0.06446892023086548,
0.06403526663780212,
0.02468176558613777,
-0.020001986995339394,
-0.04094354435801506,
-0.04994172975420952,
0.038919854909181595,
-0.025549061596393585,
-0.0406905822455883,
0.033065617084503174,
0.00005452354162116535,
0.0322163887321949,
0.010028096847236156,
-0.009260179474949837,
-0.00037153647281229496,
0.03064441867172718,
-0.03100579045712948,
-0.008799429051578045,
-0.00043336511589586735,
-0.03405939042568207,
0.016858043149113655,
-0.003076186403632164,
0.007936650887131691,
0.06511938571929932,
-0.004350025672465563,
0.011491657234728336,
0.024230049923062325,
0.009142733179032803,
0.019857438281178474,
-0.015006007626652718,
-0.01239508856087923,
-0.03512544184923172,
0.0018486480694264174,
-0.040256936103105545,
-0.0881749764084816,
-0.07726151496171951,
-0.03246935084462166,
0.014707875438034534,
0.01886366307735443,
0.035685569047927856,
-0.008668431080877781,
-0.016930317506194115,
0.05463957414031029,
-0.009991959668695927,
0.07820108532905579,
0.06927517801523209,
-0.022495459765195847,
0.015114420093595982,
0.0036430901382118464,
-0.00037294806679710746,
0.047773491591215134,
0.014906629920005798,
0.012169230729341507,
0.02067052759230137,
-0.04654482379555702,
-0.061975445598363876,
-0.009594449773430824,
-0.025765884667634964,
-0.03657093271613121,
-0.021664302796125412,
-0.0030874793883413076,
0.06609509885311127,
0.04950807988643646,
0.022603871300816536,
0.02930733934044838,
0.07697241753339767,
0.09063231199979782,
-0.028566524386405945,
0.006581502966582775,
-0.01328948698937893,
0.09612517803907394,
-0.01031719520688057,
-0.05138722062110901,
-0.04434045031666756,
0.025675540789961815,
-0.002604143228381872,
-0.011563931591808796,
-0.037293680012226105,
-0.08008022606372833,
0.037618912756443024,
-0.013903820887207985,
-0.01321721263229847,
-0.01768016628921032,
0.03496282547712326,
-0.03644445165991783,
-0.03787187486886978,
-0.017255553975701332,
0.0190985556691885,
0.019893575459718704,
-0.00692480755969882,
0.015557100996375084,
-0.01242219191044569,
0.02802446484565735,
0.0014590428909286857,
0.03644445165991783,
-0.00942279677838087,
0.023182068020105362,
0.02059825323522091,
-0.0012218919582664967,
0.012322814203798771,
0.007706276141107082,
-0.054820261895656586,
0.0437261164188385,
-0.023977089673280716,
0.012629981152713299,
-0.01462656632065773,
-0.002570264507085085,
-0.0492551214993,
-0.016587013378739357,
-0.01584620028734207,
0.011816892772912979,
-0.03626376762986183,
-0.009775135666131973,
-0.007254560012370348,
-0.0029135686345398426,
-0.02048984169960022,
0.03328244015574455,
-0.0034307835157960653,
-0.035866256803274155,
0.04531615599989891,
0.00736748892813921,
-0.04939967021346092,
0.028891758993268013,
-0.011446485295891762,
-0.009973891079425812,
-0.02330854907631874,
0.03805256262421608,
-0.018592633306980133,
0.02610918879508972,
0.018646840006113052,
0.06342093646526337,
-0.0011513113277032971,
-0.01533124316483736,
0.04434045031666756,
0.05156790465116501,
-0.013135903514921665,
0.009693826548755169,
0.005280560813844204,
0.013271418400108814,
0.05677167698740959,
-0.0159275084733963,
0.0729973167181015,
0.03938964009284973,
-0.00627885339781642,
0.056157343089580536,
-0.02760888636112213,
-0.019387653097510338,
-0.04256972298026085,
0.0011490527540445328,
-0.04043762385845184,
-0.023633785545825958,
0.051820866763591766,
0.015475792810320854,
0.015439655631780624,
0.03487247973680496,
0.019803231582045555,
0.018014436587691307,
0.00012238681665621698,
-0.046291861683130264,
0.025494854897260666,
-0.020128468051552773,
0.02923506312072277,
0.012169230729341507,
0.04856851324439049,
-0.00944990012794733,
0.0103533323854208,
-0.0161985382437706,
-0.08383850008249283,
-0.04148560389876366,
0.02634408138692379,
-0.025422580540180206,
0.007570761255919933,
0.001833967282436788,
-0.007539140991866589,
0.07487645745277405,
-0.013587619177997112,
-0.018574565649032593,
0.029885536059737206,
0.03848620876669884,
0.012196334078907967,
0.03787187486886978,
-0.012855838984251022,
-0.030228840187191963,
0.006355645135045052,
0.020020056515932083,
-0.025386443361639977,
-0.028674935922026634,
0.0442681759595871,
-0.014996973797678947,
0.009029803797602654,
0.022730352357029915,
-0.003911861218512058,
0.04405135288834572,
-0.01168137788772583,
0.031276822090148926,
0.016858043149113655,
-0.010118439793586731,
0.016903216019272804,
0.02507927641272545,
0.025747815147042274,
0.02643442526459694,
-0.026850003749132156,
0.025874296203255653,
-0.04242517426609993,
-0.02343503013253212,
-0.08448897302150726,
-0.00870908610522747,
0.011979510076344013,
-0.03651672601699829,
0.0054838331416249275,
0.03362574428319931,
0.006689914967864752,
-0.018249329179525375,
-0.0408712700009346,
-0.005158597603440285,
-0.025494854897260666,
0.0036205044016242027,
0.061975445598363876,
0.021573958918452263,
-0.06486643105745316,
0.0018362258560955524,
0.020092330873012543,
-0.022567734122276306,
0.08766905218362808,
0.030481800436973572,
-0.07885155826807022,
0.0444488599896431,
-0.0011744617950171232,
-0.038197111338377,
0.01631598360836506,
-0.01759885810315609,
-0.004374870099127293,
0.04994172975420952,
-0.0323067344725132,
-0.05156790465116501,
-0.010000993497669697,
-0.04871306195855141,
-0.0042348382994532585,
0.044737961143255234,
0.0408712700009346,
0.017896991223096848,
-0.007317800540477037,
0.02627180702984333,
-0.025223825126886368,
-0.03816097229719162,
0.01388575229793787,
-0.038883719593286514,
0.03393290936946869,
0.036010805517435074,
-0.021537821739912033,
-0.08730768412351608,
-0.08499489724636078,
-0.01031719520688057,
0.05879536271095276,
-0.009169836528599262,
-0.09482423961162567,
-0.02189919538795948,
0.025802021846175194,
0.04271427169442177,
0.008727154694497585,
0.02950609289109707,
0.038919854909181595,
-0.015638411045074463,
0.02780764177441597,
-0.04513546824455261,
0.05456729978322983,
-0.020182674750685692,
0.06587827205657959,
-0.05865081399679184,
-0.022368980571627617,
0.05810875445604324,
-0.01018168032169342,
-0.0004943467793054879,
0.014328434132039547,
-0.028566524386405945,
0.01768016628921032,
-0.0014082248089835048,
0.02207988128066063,
-0.026741592213511467,
-0.0132533498108387,
0.02764502353966236,
-0.012548672035336494,
-0.0378357395529747,
-0.00817154347896576,
-0.03779960051178932,
0.0013551481533795595,
0.008058615028858185,
0.014753046445548534,
0.003096513682976365,
-0.05850626528263092,
-0.01105800922960043,
0.028801416978240013,
0.0021885642781853676,
-0.011672343127429485,
0.08036932349205017,
0.014996973797678947,
0.035938531160354614,
0.012666118331253529,
-0.026615111157298088,
-0.010000993497669697,
0.007060321979224682,
0.026091119274497032,
0.0010536276968196034,
0.029668711125850677,
-0.059409696608781815,
-0.02348923496901989,
-0.014536223374307156,
0.0471230186522007,
-0.04405135288834572,
0.05149563029408455,
0.0032410628627985716,
-0.037402089685201645,
-0.04791804030537605,
0.02905437722802162,
-0.06360162049531937,
0.06128883734345436,
-0.04860464856028557,
-0.0615779347717762,
-0.05106198415160179,
-0.029650643467903137,
0.026850003749132156,
0.05135108157992363,
0.06378231197595596,
0.01031719520688057,
-0.015204763039946556,
-0.02932540699839592,
0.049218982458114624,
0.022405117750167847,
-0.006129786837846041,
-0.006622157525271177,
0.03653479740023613,
-0.009495072066783905,
0.040329210460186005,
-0.0010937175247818232,
0.0031190994195640087,
-0.03794414922595024,
0.0034895066637545824,
-0.00664926040917635,
0.018330637365579605,
0.031403299421072006,
-0.030373388901352882,
0.03635410964488983,
-0.034601449966430664,
-0.018701044842600822,
0.004453920293599367,
-0.01889980025589466,
0.012214402668178082,
0.03189115598797798,
-0.012774530798196793,
-0.0034488521050661802,
0.016903216019272804,
0.08463352173566818,
0.031222615391016006,
0.01105800922960043,
-0.1087009534239769,
0.050339240580797195,
0.0017808906268328428,
-0.009341488592326641,
-0.018122848123311996,
0.01777051016688347,
0.0437261164188385,
0.05453116446733475,
0.04434045031666756,
-0.008469676598906517,
0.0010660499101504683,
-0.10234079509973526,
-0.030066221952438354,
0.012693221680819988,
0.010479812510311604,
0.01915276050567627,
0.00035770266549661756,
0.062083855271339417,
0.014048369601368904,
0.022676147520542145,
0.04531615599989891,
0.012503501027822495,
-0.0014827579725533724,
-0.01610819436609745,
-0.0076159327290952206,
0.018773319199681282,
-0.012937148101627827,
-0.00589489471167326,
-0.01629791595041752,
-0.010506915859878063,
-0.020887350663542747,
-0.004273233935236931,
0.010335263796150684,
0.02618146315217018,
-0.04246130958199501,
0.009892581962049007
] |
722,981
|
pyopenstates.core
|
NotFound
|
Raised when the API cannot find the requested object
|
class NotFound(APIError):
"""Raised when the API cannot find the requested object"""
pass
| null |
[
-0.00601296266540885,
-0.03577904775738716,
-0.039432063698768616,
0.014808361418545246,
0.01435600221157074,
-0.034532926976680756,
0.009729989804327488,
0.019664820283651352,
0.048718228936195374,
-0.003612471977248788,
0.03987588733434677,
-0.028507161885499954,
0.06216951087117195,
-0.041753605008125305,
-0.008765525184571743,
0.026270970702171326,
0.009738524444401264,
0.04277781397104263,
0.022566746920347214,
-0.05267850309610367,
-0.0005595810944214463,
0.04438240826129913,
0.0025989313144236803,
0.005377099383622408,
0.004975950811058283,
0.07251402735710144,
0.02068903110921383,
-0.013237906619906425,
0.04475795105099678,
-0.043255776166915894,
-0.03142615780234337,
-0.020347626879811287,
0.013621984981000423,
0.06326200067996979,
-0.04025143012404442,
0.02429083362221718,
-0.0056075467728078365,
0.05814095586538315,
-0.11047805845737457,
-0.004997288342565298,
-0.08678467571735382,
0.04373374208807945,
-0.06602736562490463,
-0.047591596841812134,
0.0673929825425148,
-0.017053086310625076,
-0.02207171358168125,
0.006900610867887735,
-0.06933897733688354,
0.015772825106978416,
-0.050254542380571365,
-0.016600728034973145,
0.007848004810512066,
-0.0018286405829712749,
0.02534918300807476,
0.0016312669031322002,
0.002626670291647315,
0.07599633932113647,
-0.03057265095412731,
0.029138758778572083,
-0.007754118647426367,
0.03239915892481804,
0.016600728034973145,
0.017266463488340378,
-0.0038919958751648664,
0.031016474589705467,
-0.002872053999453783,
0.016711683943867683,
-0.0034908470697700977,
0.039910025894641876,
0.05558042973279953,
0.00998604204505682,
-0.023232484236359596,
0.047352615743875504,
0.07469900697469711,
-0.027090338990092278,
-0.00755781214684248,
-0.01235025841742754,
0.04339233785867691,
0.010959040373563766,
0.05476106330752373,
-0.035983890295028687,
-0.07900068908929825,
-0.007724246010184288,
-0.007028636988252401,
-0.021559609100222588,
0.013809757307171822,
-0.0850093811750412,
-0.001176773919723928,
0.00966170895844698,
-0.08227815479040146,
-0.004043493419885635,
-0.046806368976831436,
-0.020586609840393066,
0.02038176730275154,
0.020808521658182144,
0.036871537566185,
-0.048718228936195374,
0.02027934603393078,
-0.028046267107129097,
0.04451896995306015,
0.02116699516773224,
0.0009553953423164785,
0.03270642086863518,
0.010557891800999641,
-0.04031971096992493,
0.008138197474181652,
-0.03270642086863518,
0.008057113736867905,
0.046567387878894806,
0.0015213777078315616,
0.02326662465929985,
-0.04694293066859245,
-0.003313744207844138,
-0.024205481633543968,
-0.006179396994411945,
0.011334584094583988,
0.0008044311543926597,
-0.0256735160946846,
-0.034293945878744125,
0.02599784918129444,
0.0002664544736035168,
-0.07169465720653534,
-0.04725019261240959,
0.08965246379375458,
0.01828213781118393,
-0.029719144105911255,
0.02565644681453705,
0.02999226562678814,
0.0025477209128439426,
-0.04124150052666664,
-0.0035527264699339867,
-0.08432657271623611,
-0.00365087972022593,
-0.02446153573691845,
0.042709533125162125,
0.023044710978865623,
0.010395725257694721,
-0.01795780472457409,
0.024256693199276924,
-0.050152119249105453,
0.04605528339743614,
0.007293224334716797,
-0.003253998700529337,
0.00024885087623260915,
0.01639588549733162,
-0.03154565021395683,
-0.05397583544254303,
0.03144323080778122,
0.01719818264245987,
0.03755434602499008,
0.009311771020293236,
0.04349476099014282,
0.0212523452937603,
-0.048718228936195374,
-0.011308979243040085,
0.0012717266799882054,
-0.06193052977323532,
0.030111756175756454,
-0.007801061496138573,
0.008825271390378475,
-0.04748917743563652,
0.03857855498790741,
-0.06800750643014908,
-0.01680556870996952,
0.034293945878744125,
-0.026527024805545807,
-0.016387350857257843,
-0.027960916981101036,
0.03296247124671936,
-0.05677534267306328,
-0.0013794820988550782,
-0.07510869204998016,
-0.033559929579496384,
0.026100270450115204,
0.018982013687491417,
0.014407212845981121,
-0.0005081038689240813,
-0.005069836508482695,
-0.025246761739253998,
0.042948514223098755,
-0.030606791377067566,
-0.051688436418771744,
-0.002850716235116124,
-0.005987357348203659,
0.03263814002275467,
-0.025076059624552727,
0.04434826597571373,
-0.0015427154721692204,
0.051859136670827866,
0.02254967764019966,
0.012691661715507507,
0.05848235636949539,
0.02896805666387081,
-0.011087066493928432,
-0.017531050369143486,
0.013144020922482014,
0.012802617624402046,
0.026834286749362946,
0.03625701367855072,
-0.0059276120737195015,
0.0770205482840538,
0.012324653565883636,
0.01050668116658926,
0.0017784970114007592,
0.033798910677433014,
0.0333038754761219,
-0.03936378285288811,
-0.05653636157512665,
-0.010370120406150818,
-0.04001244902610779,
0.037349503487348557,
-0.009644638746976852,
0.03905652090907097,
0.021286485716700554,
0.046328406780958176,
-0.0005289081600494683,
-0.033884260803461075,
0.03142615780234337,
0.010378655046224594,
0.006465321872383356,
-0.030367808416485786,
0.023317834362387657,
-0.025229692459106445,
-0.004502254072576761,
0.020313486456871033,
0.04195844754576683,
-0.008748454973101616,
-0.016532447189092636,
-0.09955315291881561,
-0.019613610580563545,
0.014774220995604992,
-0.010438401252031326,
0.024563955143094063,
0.03178463131189346,
0.005266143474727869,
0.020415907725691795,
0.0009351245244033635,
0.02142304740846157,
-0.02944602072238922,
0.035574205219745636,
-0.035096243023872375,
-0.03874925523996353,
0.045918721705675125,
0.008364376612007618,
-0.004536394029855728,
-0.03272349014878273,
0.013784151524305344,
-0.014586448669433594,
-0.06968037784099579,
0.0224472563713789,
-0.016669008880853653,
-0.012597776018083096,
-0.02541746385395527,
0.05622909590601921,
-0.10836135596036911,
-0.06998763978481293,
-0.0617598295211792,
0.04421170800924301,
0.02229362539947033,
-0.08453141897916794,
0.030845774337649345,
-0.017821243032813072,
0.09156432002782822,
-0.024444464594125748,
-0.02452981472015381,
-0.01949412003159523,
0.059882111847400665,
0.017078692093491554,
0.05223467946052551,
0.11757924407720566,
0.021115783601999283,
0.011402864940464497,
0.004310214426368475,
0.0067256418988108635,
-0.022805729880928993,
-0.012896503321826458,
0.054487939924001694,
0.005637419410049915,
0.00023884883557911962,
-0.0063415635377168655,
-0.042231567203998566,
0.008193675428628922,
-0.025605235248804092,
0.0008503071730956435,
-0.017266463488340378,
0.010549357160925865,
0.040865954011678696,
-0.0706021711230278,
-0.030180037021636963,
0.06612978875637054,
0.002562657231464982,
-0.04803542047739029,
0.006815260276198387,
-0.013963388279080391,
0.04209500551223755,
-0.07818131893873215,
0.03680325672030449,
0.048888929188251495,
-0.026527024805545807,
-0.017531050369143486,
0.025315042585134506,
0.02092801220715046,
-0.008052846416831017,
-0.0016718085389584303,
-0.008496670983731747,
0.042402271181344986,
0.0013048001565039158,
-0.011513820849359035,
0.005347226746380329,
-0.017616402357816696,
0.005543533246964216,
-0.0007638895185664296,
0.03601803258061409,
-0.026117339730262756,
0.0561608150601387,
-0.011334584094583988,
-0.008492402732372284,
-0.004182188306003809,
0.059472426772117615,
-0.018009016290307045,
0.03820301219820976,
-0.019272206351161003,
-0.030896984040737152,
-0.008010171353816986,
-0.029070477932691574,
0.0009767330484464765,
0.03178463131189346,
-0.020654890686273575,
0.00593187939375639,
0.034191522747278214,
-0.042402271181344986,
0.01715550757944584,
-0.03354285657405853,
-0.058277517557144165,
-0.04178774356842041,
0.01299038901925087,
-0.057150885462760925,
0.04718191549181938,
0.03175049275159836,
0.024171343073248863,
-0.0441092848777771,
-0.001637668232433498,
0.04346061870455742,
-0.039671044796705246,
-0.015909386798739433,
0.04346061870455742,
-0.030265389010310173,
0.009303235448896885,
-0.03472070023417473,
-0.03547178581357002,
0.07374307513237,
-0.010796873830258846,
0.016660472378134727,
0.03970518335700035,
-0.024103062227368355,
0.0047156307846307755,
-0.05240538343787193,
-0.03258692845702171,
-0.05086906626820564,
-0.009320305660367012,
-0.02918996848165989,
-0.05984796956181526,
-0.025366254150867462,
-0.04509935528039932,
0.0008785796235315502,
0.037656765431165695,
-0.04059283435344696,
0.006102581042796373,
-0.043665461242198944,
-0.054487939924001694,
-0.026987917721271515,
-0.05913102254271507,
-0.007604754995554686,
0.017146972939372063,
0.011880828998982906,
-0.0043336860835552216,
0.00013949518324807286,
-0.06247677281498909,
0.07046560943126678,
0.013860967010259628,
-0.010412795469164848,
-0.07237746566534042,
-0.011940575204789639,
0.05677534267306328,
-0.028046267107129097,
-0.03118717670440674,
0.04291437566280365,
-0.0010786205530166626,
0.03470362722873688,
0.0240518506616354,
-0.07394792139530182,
-0.0005510459886863828,
0.009243490174412727,
-0.028455952182412148,
-0.044621389359235764,
0.006921948865056038,
-0.013417143374681473,
-0.01715550757944584,
0.009354446083307266,
0.03125545755028725,
0.04926447197794914,
0.0016430026153102517,
0.026663584634661674,
0.04144633933901787,
0.02142304740846157,
0.04854752495884895,
-0.015354606322944164,
-0.020074505358934402,
-0.006990229245275259,
-0.0067171067930758,
-0.04451896995306015,
-0.03639357537031174,
-0.05841407552361488,
0.02270330861210823,
0.013656125403940678,
0.04161704331636429,
0.03224552795290947,
-0.016822639852762222,
-0.00117357331328094,
0.0353010855615139,
-0.0505276657640934,
0.09170088171958923,
0.030777493491768837,
-0.03963690623641014,
0.007101185154169798,
0.0023194076493382454,
0.003821581369265914,
0.04796713963150978,
0.01310988049954176,
-0.004173653200268745,
-0.019289277493953705,
-0.04772815853357315,
-0.06271575391292572,
-0.018896663561463356,
-0.03560834750533104,
-0.02270330861210823,
-0.05766298994421959,
-0.011206557974219322,
0.06599322706460953,
0.05496590584516525,
0.007105452939867973,
0.01973310112953186,
0.05039110407233238,
0.028729073703289032,
-0.011018786579370499,
0.004197124857455492,
0.026834286749362946,
0.08869653195142746,
-0.03234794735908508,
-0.009234954603016376,
-0.03816886991262436,
0.03833957388997078,
0.01062617264688015,
-0.027568303048610687,
-0.08255127817392349,
-0.09518319368362427,
0.00030993003747425973,
0.014509633183479309,
0.017266463488340378,
-0.029241178184747696,
0.06387652456760406,
-0.07749851047992706,
-0.055955976247787476,
-0.021627888083457947,
0.019067365676164627,
0.004052028525620699,
-0.01511562429368496,
0.014509633183479309,
-0.00847960077226162,
0.007613290101289749,
-0.005338691640645266,
-0.01359638012945652,
-0.04178774356842041,
0.018384559080004692,
0.021781520918011665,
0.011932039633393288,
-0.001364545663818717,
-0.0029936786741018295,
-0.030060546472668648,
0.04499693214893341,
-0.05366857349872589,
-0.002231922931969166,
-0.014057273976504803,
0.004173653200268745,
-0.047045353800058365,
-0.0240689218044281,
0.0497424378991127,
0.009311771020293236,
-0.03936378285288811,
0.027482952922582626,
0.005692897364497185,
-0.031084755435585976,
-0.007182268425822258,
0.023317834362387657,
0.02053539827466011,
-0.04670394957065582,
0.01812850683927536,
-0.05059594660997391,
-0.02743174135684967,
0.026509953662753105,
-0.048649948090314865,
0.007207873743027449,
-0.022498466074466705,
0.012324653565883636,
-0.06473003327846527,
0.008014438673853874,
0.011411399580538273,
0.07517696917057037,
0.003087564604356885,
-0.013835362158715725,
0.07408448308706284,
0.0465332493185997,
0.0020057433284819126,
0.026663584634661674,
0.035813190042972565,
-0.00555206835269928,
0.00918374489992857,
0.045987002551555634,
0.031323738396167755,
0.0489230714738369,
-0.02101336233317852,
0.06872445344924927,
-0.03946620225906372,
0.010455471463501453,
-0.011462610214948654,
-0.006281817797571421,
-0.04742089658975601,
-0.014509633183479309,
0.06869031488895416,
0.015619193203747272,
0.029019266366958618,
0.022327765822410583,
-0.00037287623854354024,
0.02519555203616619,
0.02029641717672348,
-0.035983890295028687,
0.01990380324423313,
0.018657682463526726,
0.04762573912739754,
0.020910942927002907,
0.05657050013542175,
0.01695920154452324,
0.01680556870996952,
0.0018137041479349136,
-0.0770205482840538,
-0.04981071874499321,
0.008876482024788857,
0.017027482390403748,
-0.004766841419041157,
0.017445700243115425,
0.0044595785439014435,
0.02912168763577938,
-0.043119218200445175,
-0.022583818063139915,
0.0625109151005745,
-0.004963147919625044,
0.014449887908995152,
0.06360340118408203,
0.029633792117238045,
-0.016711683943867683,
0.01058349758386612,
0.058038532733917236,
-0.03987588733434677,
-0.027414672076702118,
0.008961832150816917,
0.0023322103079408407,
-0.03200654312968254,
0.016472700983285904,
-0.02196929231286049,
-0.018401628360152245,
0.0001711016520857811,
0.016276394948363304,
0.013263512402772903,
0.03279177099466324,
0.040456272661685944,
0.013988994061946869,
-0.012922109104692936,
-0.0083174342289567,
-0.061554986983537674,
0.009567823261022568,
-0.023044710978865623,
0.008496670983731747,
-0.07865928113460541,
-0.010105532594025135,
-0.037178803235292435,
-0.029002197086811066,
-0.020979223772883415,
0.04035384953022003,
-0.023847009986639023,
0.002665078267455101,
0.0016227317973971367,
0.0026160015258938074,
-0.04540661722421646,
0.031323738396167755,
0.09252025187015533,
-0.037349503487348557,
-0.04786472022533417,
0.007728513330221176,
-0.0008700445760041475,
-0.009465401992201805,
0.0713532567024231,
-0.004655885510146618,
-0.05342959240078926,
0.039671044796705246,
0.03151150792837143,
-0.037178803235292435,
-0.026987917721271515,
-0.004387030377984047,
-0.0417194627225399,
0.04154876247048378,
-0.02261795848608017,
-0.04257297143340111,
-0.009098393842577934,
-0.01910150609910488,
-0.021457187831401825,
0.03222845494747162,
0.02070610038936138,
-0.0033628209494054317,
-0.01419383566826582,
0.01567893847823143,
-0.024683447554707527,
-0.006307423114776611,
0.020347626879811287,
-0.053293030709028244,
0.05510246753692627,
0.03738364204764366,
-0.03306489437818527,
-0.054658643901348114,
-0.03064093180000782,
-0.007020101882517338,
0.07155809551477432,
-0.0417194627225399,
-0.03874925523996353,
-0.02092801220715046,
-0.025963708758354187,
0.0256735160946846,
-0.0361204519867897,
0.016105692833662033,
0.08439485728740692,
-0.017872454598546028,
0.029685003682971,
-0.07920552790164948,
0.07346995919942856,
-0.05086906626820564,
0.01812850683927536,
-0.02045004814863205,
-0.06722227483987808,
0.06810992956161499,
-0.025536954402923584,
-0.024342043325304985,
0.02302764169871807,
-0.02695377729833126,
-0.019698960706591606,
0.009508077055215836,
0.011326049454510212,
-0.04257297143340111,
-0.026578234508633614,
0.029309459030628204,
-0.018247997388243675,
0.004497986286878586,
-0.0457138791680336,
-0.0023791531566530466,
-0.01773589290678501,
0.006802457384765148,
0.019135646522045135,
0.015226580202579498,
-0.1379268616437912,
0.00103007722645998,
0.018947875127196312,
-0.01468033529818058,
0.02830231934785843,
0.06455933302640915,
0.003300941549241543,
-0.02116699516773224,
0.01997208409011364,
-0.024171343073248863,
0.027209829539060593,
0.015175369568169117,
0.028831494972109795,
-0.011949109844863415,
-0.028216969221830368,
-0.06073561683297157,
0.05267850309610367,
-0.02302764169871807,
0.070533886551857,
-0.041275639086961746,
-0.014117020182311535,
0.011693057604134083,
-0.008646034635603428,
-0.030453160405158997,
-0.015448492020368576,
-0.02760244347155094,
0.041753605008125305,
-0.05278092622756958,
-0.07374307513237,
-0.037178803235292435,
0.0046516177244484425,
0.023300765082240105,
0.05998453125357628,
0.05435137823224068,
0.007574882358312607,
0.027004988864064217,
-0.011744268238544464,
0.014117020182311535,
0.022157063707709312,
-0.003382024820894003,
-0.020979223772883415,
-0.009465401992201805,
-0.029787423089146614,
-0.004064830951392651,
0.03113596700131893,
0.03758848458528519,
-0.0625450536608696,
0.022344835102558136,
0.020091574639081955,
0.0316992811858654,
0.02589542791247368,
-0.02816575951874256,
0.03591560944914818,
0.027875566855072975,
-0.009123998694121838,
-0.012862362898886204,
0.02992398478090763,
0.009098393842577934,
-0.006209269631654024,
-0.02808040753006935,
-0.048001281917095184,
0.026356322690844536,
0.06606150418519974,
0.08705779910087585,
0.04346061870455742,
-0.08091254532337189,
0.03915894031524658,
0.03400375321507454,
-0.0529174879193306,
0.0018137041479349136,
0.006875005550682545,
0.037178803235292435,
0.04189016669988632,
0.0035825991071760654,
0.021849801763892174,
-0.014501098543405533,
-0.0673929825425148,
0.007566347252577543,
0.016293464228510857,
0.03135787695646286,
0.04468967020511627,
-0.004877797327935696,
0.039978306740522385,
0.04916205257177353,
-0.020723169669508934,
0.027568303048610687,
0.03881753608584404,
-0.030845774337649345,
-0.006414111703634262,
0.018247997388243675,
0.05022040009498596,
0.026885496452450752,
0.017334744334220886,
-0.03820301219820976,
-0.028336459770798683,
-0.027636583894491196,
-0.0034268340095877647,
-0.01632760465145111,
0.023778729140758514,
-0.009098393842577934,
0.018009016290307045
] |
722,984
|
pyopenstates.core
|
get_bill
|
Returns details of a specific bill Can be identified by the Open States
unique bill id (uid), or by specifying the state, session, and
legislative bill ID
Args:
uid: The Open States unique bill ID
state: The postal code of the state
session: The legislative session (see state metadata)
bill_id: Yhe legislative bill ID (e.g. ``HR 42``)
**kwargs: Optional keyword argument options, such as ``fields``,
which specifies the fields to return
Returns:
The :ref:`Bill` details as a dictionary
|
def get_bill(uid=None, state=None, session=None, bill_id=None, include=None):
"""
Returns details of a specific bill Can be identified by the Open States
unique bill id (uid), or by specifying the state, session, and
legislative bill ID
Args:
uid: The Open States unique bill ID
state: The postal code of the state
session: The legislative session (see state metadata)
bill_id: Yhe legislative bill ID (e.g. ``HR 42``)
**kwargs: Optional keyword argument options, such as ``fields``,
which specifies the fields to return
Returns:
The :ref:`Bill` details as a dictionary
"""
args = {"include": include} if include else {}
if uid:
if state or session or bill_id:
raise ValueError(
"Must specify an Open States bill (uid), or the "
"state, session, and bill ID"
)
uid = _fix_id_string("ocd-bill/", uid)
return _get(f"bills/{uid}", params=args)
else:
if not state or not session or not bill_id:
raise ValueError(
"Must specify an Open States bill (uid), "
"or the state, session, and bill ID"
)
return _get(f"bills/{state.lower()}/{session}/{bill_id}", params=args)
|
(uid=None, state=None, session=None, bill_id=None, include=None)
|
[
-0.01896457001566887,
-0.04397159442305565,
0.016989851370453835,
0.00990998838096857,
-0.03250548988580704,
-0.022877605631947517,
0.01808186247944832,
-0.023714812472462654,
-0.05951453372836113,
-0.07094423472881317,
-0.0735650584101677,
-0.004531840793788433,
-0.036218322813510895,
0.01260361261665821,
-0.006351856980472803,
0.014050525613129139,
0.026262834668159485,
-0.008240124210715294,
0.017417555674910545,
0.0046342164278030396,
0.009709786623716354,
0.01925577223300934,
0.004499990493059158,
0.04371679201722145,
-0.059041328728199005,
-0.0033897804096341133,
0.02023858204483986,
0.007971671409904957,
0.013095017522573471,
0.025753231719136238,
0.10563374310731888,
-0.04014955833554268,
0.02755504660308361,
-0.01090189814567566,
-0.05350847914814949,
0.0168442502617836,
0.05099685862660408,
0.0015197136672213674,
-0.05423648655414581,
-0.027172842994332314,
-0.02187659591436386,
-0.0357087217271328,
0.14116045832633972,
0.006647609639912844,
-0.026171835139393806,
-0.0038220342248678207,
0.003116777865216136,
-0.04218797758221626,
-0.051761262118816376,
0.07702308893203735,
0.0468108206987381,
0.030084868893027306,
-0.06865101307630539,
-0.05947813391685486,
0.0020168055780231953,
-0.06493818014860153,
-0.05831332132220268,
-0.021730994805693626,
0.052052468061447144,
0.025898832827806473,
-0.028920060023665428,
0.010792696848511696,
0.03159548342227936,
-0.0524892695248127,
0.0144145293161273,
0.0006341619300656021,
0.009268432855606079,
0.0014287128578871489,
-0.011793705634772778,
-0.02072998508810997,
0.048849236220121384,
0.022240599617362022,
0.012539912015199661,
0.045791611075401306,
-0.018009060993790627,
-0.03938515484333038,
-0.02040238305926323,
-0.0003227685228921473,
-0.030339671298861504,
-0.003778808983042836,
0.001872341730631888,
0.009445884265005589,
-0.06832341104745865,
0.04673801735043526,
-0.03836594521999359,
0.02455201931297779,
0.057840120047330856,
0.02187659591436386,
-0.010874597355723381,
0.03447110950946808,
-0.06570258736610413,
-0.006797760725021362,
-0.01375932339578867,
0.03121327981352806,
0.0028619756922125816,
-0.03203228861093521,
-0.05030525103211403,
0.0735650584101677,
-0.024624820798635483,
0.04207877814769745,
-0.04313438758254051,
-0.06348216533660889,
-0.07964391261339188,
0.04317078739404678,
-0.05088765546679497,
0.016789650544524193,
0.021002987399697304,
0.011420601978898048,
0.02797365002334118,
-0.04011315852403641,
-0.0774598941206932,
-0.01700805313885212,
-0.04306158423423767,
-0.00010564625699771568,
0.004832143429666758,
0.014505529776215553,
0.009773487225174904,
0.0484488345682621,
-0.07447506487369537,
-0.04142357036471367,
-0.031158680096268654,
-0.06406457722187042,
-0.008217373862862587,
-0.03931235149502754,
0.05820412188768387,
0.05572890117764473,
-0.015124335885047913,
-0.01137510221451521,
0.07877030968666077,
0.01729925535619259,
0.02418801747262478,
-0.056566108018159866,
-0.002889275783672929,
-0.004124612081795931,
-0.008212823420763016,
0.033251699060201645,
0.007912521250545979,
0.03858434408903122,
0.022677402943372726,
0.05074205622076988,
0.013340719975531101,
-0.03694633021950722,
0.023478209972381592,
-0.03963995352387428,
-0.03410710394382477,
0.009186532348394394,
0.017444856464862823,
-0.03822034224867821,
-0.04742962494492531,
0.029302261769771576,
0.03869354724884033,
-0.0029484264086931944,
0.046374015510082245,
-0.02311420626938343,
-0.04724762216210365,
-0.005833152215927839,
0.05154286324977875,
0.011629904620349407,
0.005023245234042406,
0.043862391263246536,
0.024333618581295013,
0.051106058061122894,
0.006138004828244448,
-0.07112623751163483,
-0.03314249590039253,
0.030958477407693863,
-0.062499359250068665,
-0.0394943542778492,
0.03483511134982109,
-0.016380146145820618,
-0.044517599046230316,
0.04408079385757446,
-0.01466023176908493,
0.009373083710670471,
-0.05441848933696747,
-0.024952422827482224,
-0.08575917035341263,
-0.023714812472462654,
-0.0394943542778492,
-0.01524263620376587,
0.02275020442903042,
-0.03126788139343262,
-0.0023182458244264126,
0.03396150469779968,
-0.04848523437976837,
0.014842232689261436,
0.004795743152499199,
-0.005218896549195051,
0.02875625714659691,
0.03503531217575073,
0.0002963214064948261,
0.03474410995841026,
0.012712813913822174,
-0.00774416932836175,
-0.06504738330841064,
-0.021203190088272095,
-0.002925676293671131,
0.011256800964474678,
-0.05128806084394455,
0.04317078739404678,
0.03614552319049835,
0.05070565268397331,
-0.02438821829855442,
0.00980988796800375,
0.018727967515587807,
-0.011511603370308876,
-0.02755504660308361,
-0.02484322339296341,
0.019110171124339104,
0.011329601518809795,
0.028101051226258278,
-0.02134879119694233,
-0.059332530945539474,
0.036254726350307465,
0.0427703820168972,
0.06515658646821976,
-0.04877643659710884,
0.04673801735043526,
0.0006170992855913937,
-0.033834103494882584,
0.04215157777070999,
-0.037492334842681885,
0.02409701608121395,
0.025316426530480385,
-0.05798571929335594,
0.05001404881477356,
0.05041445046663284,
0.010929198004305363,
0.014760332182049751,
-0.019838178530335426,
-0.011711805127561092,
-0.030376072973012924,
0.03587252274155617,
0.06777741014957428,
0.03352469950914383,
-0.04564600810408592,
-0.04753882437944412,
-0.01406872645020485,
0.0500868484377861,
0.0017290154937654734,
0.031122278422117233,
0.003289679531008005,
0.0628269612789154,
0.004295238293707371,
-0.03650952875614166,
-0.03982195630669594,
-0.02742764540016651,
0.029429662972688675,
-0.0406227633357048,
-0.037492334842681885,
-0.027609648182988167,
0.026681439951062202,
0.06442857533693314,
0.010246692225337029,
0.006629409268498421,
-0.06049734354019165,
-0.03727393224835396,
-0.04058636352419853,
-0.03967635706067085,
-0.02406061626970768,
0.026426637545228004,
-0.028064651414752007,
0.003938060253858566,
-0.003501256462186575,
0.006606659386307001,
0.03281489387154579,
-0.03068547509610653,
-0.030976677313447,
0.03199588507413864,
-0.037492334842681885,
0.05307167395949364,
0.05729411169886589,
-0.03134068101644516,
-0.030903877690434456,
-0.02216779813170433,
-0.0789887085556984,
0.052416469901800156,
0.012840215116739273,
-0.04553680866956711,
-0.012803814373910427,
-0.06675820052623749,
-0.03319709748029709,
0.022386200726032257,
0.04393519461154938,
-0.018855368718504906,
-0.04211517795920372,
0.003785633947700262,
0.010747196152806282,
-0.00799897126853466,
0.028155652806162834,
0.013850323855876923,
0.03155908361077309,
-0.05802211910486221,
0.010719896294176579,
-0.025898832827806473,
0.01912837103009224,
-0.029375063255429268,
-0.0026003483217209578,
0.04404439404606819,
0.020220382139086723,
-0.056456904858350754,
0.02295040525496006,
0.0614437498152256,
-0.036218322813510895,
0.000908870657440275,
-0.03417990729212761,
0.04535480588674545,
-0.0746934711933136,
-0.02184019610285759,
-0.003116777865216136,
0.013531820848584175,
-0.005278047174215317,
0.031395282596349716,
0.01416882686316967,
-0.02060258388519287,
-0.11684504896402359,
-0.08706957846879959,
0.008563176728785038,
0.018655167892575264,
0.010010089725255966,
-0.0370919331908226,
-0.013668322935700417,
0.01769055798649788,
0.03183208405971527,
-0.020911987870931625,
-0.013058616779744625,
-0.04742962494492531,
0.04935884103178978,
-0.013022216968238354,
0.08335674554109573,
-0.07877030968666077,
-0.006415557581931353,
-0.015169835649430752,
0.04812123253941536,
-0.033579301089048386,
-0.02093018777668476,
-0.0017938535893335938,
-0.039239551872015,
-0.01776335947215557,
-0.0020634434185922146,
0.0666125938296318,
-0.018818968906998634,
0.010546994395554066,
0.028719857335090637,
0.034562110900878906,
-0.0027846249286085367,
0.05161566287279129,
0.00430888868868351,
0.01003738958388567,
0.0064019071869552135,
-0.004677441902458668,
-0.0144145293161273,
0.04462679848074913,
-0.02464302070438862,
0.04429919645190239,
0.0006921749445609748,
0.0026276486460119486,
0.02147619239985943,
-0.01297671627253294,
-0.014341728761792183,
0.028264854103326797,
-0.06289976090192795,
-0.014287128113210201,
0.015087935142219067,
-0.01847316510975361,
0.03916675224900246,
-0.025243626907467842,
-0.02850145474076271,
0.00922293309122324,
0.030812876299023628,
-0.026262834668159485,
-0.0031804784666746855,
-0.03250548988580704,
0.08575917035341263,
0.003216878743842244,
0.061625752598047256,
0.0206935852766037,
-0.07181784510612488,
-0.01789076067507267,
0.06137095019221306,
-0.02072998508810997,
-0.016698649153113365,
0.01137510221451521,
0.042915984988212585,
-0.01046509388834238,
-0.05125166103243828,
-0.038183942437171936,
0.005419098772108555,
-0.04313438758254051,
-0.04455399885773659,
0.01674414984881878,
0.011675404384732246,
0.008945380337536335,
0.0039244103245437145,
-0.10898257791996002,
-0.057148512452840805,
0.13002195954322815,
0.0006944499909877777,
0.021166790276765823,
-0.04881283640861511,
0.018036361783742905,
0.009718887507915497,
-0.012485312297940254,
-0.004704742226749659,
-0.06646699458360672,
0.005632950458675623,
-0.04848523437976837,
-0.04812123253941536,
-0.0014435003977268934,
-0.027282044291496277,
0.04084116593003273,
-0.019765377044677734,
-0.002005430404096842,
-0.012084907852113247,
0.01941957324743271,
0.018818968906998634,
0.02262280322611332,
0.05481889098882675,
-0.018009060993790627,
-0.04342558979988098,
0.029993869364261627,
-0.04750242456793785,
-0.008544976823031902,
0.019674375653266907,
-0.003660507733002305,
-0.02187659591436386,
0.024897823110222816,
0.0186733677983284,
0.07185424119234085,
0.00789887085556984,
0.013668322935700417,
0.013686522841453552,
-0.05569249764084816,
-0.006351856980472803,
0.06679459661245346,
0.0034830563236027956,
0.013559121638536453,
0.01524263620376587,
0.017672358080744743,
-0.0068933116272091866,
0.00033613425330258906,
0.008044471964240074,
0.020966587588191032,
-0.001580001669935882,
-0.04833963140845299,
-0.03620012477040291,
-0.002338720951229334,
-0.023423610255122185,
0.0789887085556984,
-0.03982195630669594,
0.018373064696788788,
-0.037492334842681885,
0.0290838610380888,
-0.00835842452943325,
0.02262280322611332,
-0.0595509335398674,
-0.02631743624806404,
-0.018100062385201454,
0.0072982655838131905,
0.021166790276765823,
-0.034161705523729324,
0.013895824551582336,
0.011639004573225975,
0.04127797111868858,
0.002416071714833379,
0.020475182682275772,
0.0281374529004097,
-0.0023705712519586086,
0.014014125801622868,
-0.00835842452943325,
0.046374015510082245,
0.03339729830622673,
-0.01149340346455574,
0.010519694536924362,
0.023496409878134727,
-0.029957467690110207,
-0.006251756101846695,
0.019801776856184006,
0.014796732924878597,
-0.02553482912480831,
0.03534471616148949,
-0.002873350866138935,
-0.012357911095023155,
-0.016179945319890976,
-0.054673291742801666,
-0.006174405105412006,
0.030667275190353394,
0.041314370930194855,
-0.013677422888576984,
-0.01100199855864048,
0.002284120535477996,
0.029265861958265305,
0.005532849580049515,
-0.04560960829257965,
-0.01266731321811676,
0.016216345131397247,
0.031249679625034332,
-0.013823023997247219,
0.0023705712519586086,
-0.037565138190984726,
0.030175870284438133,
0.002361471066251397,
0.03636392578482628,
0.026026234030723572,
-0.05292607471346855,
-0.02282300405204296,
-0.008417575620114803,
0.0012273734901100397,
0.039093948900699615,
-0.0168442502617836,
-0.03512631356716156,
0.04429919645190239,
0.030376072973012924,
0.0040336111560463905,
-0.060278940945863724,
-0.018536865711212158,
0.015916042029857635,
0.013604622334241867,
-0.03741953521966934,
0.004904943984001875,
0.11953867226839066,
0.009919089265167713,
0.012885715812444687,
-0.009855388663709164,
0.005318997893482447,
0.020475182682275772,
0.037601538002491,
0.029811866581439972,
-0.03241449221968651,
-0.0028073752764612436,
-0.04651961848139763,
0.005341747775673866,
0.003760608611628413,
0.0019633425399661064,
-0.03723753243684769,
-0.025425627827644348,
-0.032960496842861176,
0.011821005493402481,
-0.023132408037781715,
0.011229501105844975,
0.01958337612450123,
-0.021658193320035934,
0.0005195577978156507,
0.032268889248371124,
-0.013995925895869732,
0.026754239574074745,
0.008786128833889961,
0.014733032323420048,
0.0196197759360075,
0.005887752864509821,
0.05605650320649147,
-0.05441848933696747,
0.047939229756593704,
0.014942334033548832,
0.01920117251574993,
-0.003731033531948924,
-0.0074757169932127,
0.037856340408325195,
-0.028428655117750168,
-0.05285327509045601,
-0.024297216907143593,
-0.020092980936169624,
0.031850285828113556,
0.049832046031951904,
0.004240638110786676,
-0.023296209052205086,
0.02105758897960186,
0.015779541805386543,
0.060351740568876266,
-0.02780984900891781,
0.022877605631947517,
0.03836594521999359,
0.03359750285744667,
0.07447506487369537,
-0.03075827658176422,
-0.019310373812913895,
-0.0016391521785408258,
-0.010947397910058498,
0.024988824501633644,
0.03745593503117561,
0.06330017000436783,
0.0018268413841724396,
0.00774416932836175,
-0.003451206022873521,
0.019874578341841698,
0.021148590371012688,
-0.06970662623643875,
-0.03745593503117561,
0.05511009320616722,
-0.06239015981554985,
0.02455201931297779,
-0.06592099368572235,
-0.020493384450674057,
0.01416882686316967,
0.038802746683359146,
0.07309185713529587,
-0.03270569443702698,
-0.05423648655414581,
-0.03476231172680855,
-0.008563176728785038,
0.03960355371236801,
0.06268136203289032,
0.03228709101676941,
-0.04444479942321777,
0.01340442057698965,
0.0657389909029007,
-0.017963560298085213,
-0.028938259929418564,
-0.0007564442930743098,
-0.0035217315889894962,
0.0029689015354961157,
-0.032760292291641235,
0.02072998508810997,
0.08350234478712082,
-0.06224455684423447,
-0.023532811552286148,
0.03822034224867821,
-0.04342558979988098,
-0.028592456132173538,
-0.028719857335090637,
0.03345189988613129,
-0.019401373341679573,
0.0011511603370308876,
0.04400799423456192,
-0.009309383109211922,
-0.03660052642226219,
0.005305347498506308,
-0.044117193669080734,
0.026335636153817177,
0.016989851370453835,
-0.017708757892251015,
0.05580170080065727,
0.07320105284452438,
0.013886724598705769,
-0.010292191989719868,
0.051470059901475906,
0.107744961977005,
0.009591486304998398,
-0.0015515638515353203,
0.05106965824961662,
-0.02344181016087532,
0.05405448377132416,
0.002131693996489048,
0.008276524022221565,
0.03159548342227936,
0.02566223032772541,
-0.05066925287246704,
0.004832143429666758,
0.06872381269931793,
0.00019494080333970487,
-0.05088765546679497,
0.006761360447853804,
-0.010610694997012615,
0.021439792588353157,
0.032268889248371124,
0.03989475592970848,
-0.025807831436395645,
0.023915015161037445,
0.039712756872177124,
0.01694435253739357,
-0.05409088358283043,
-0.044772401452064514,
-0.02142159268260002,
-0.04841243475675583,
-0.0803719237446785,
-0.023460010066628456,
-0.07232744991779327,
-0.027737049385905266,
-0.005337197799235582,
-0.013377119787037373,
-0.005337197799235582,
0.04018596187233925,
0.04255198314785957,
-0.03822034224867821,
-0.04943164438009262,
0.008399375714361668,
0.0018075037514790893,
0.021075788885354996,
-0.033743102103471756,
-0.01700805313885212,
0.0698886290192604,
-0.011156699620187283,
0.013477221131324768,
-0.030539873987436295,
0.05194326490163803,
0.03640032559633255,
-0.025698630139231682,
0.0035945321433246136,
-0.04233358055353165,
0.006447407882660627,
0.03388870507478714,
-0.0598057359457016,
0.022531801834702492,
0.035927120596170425,
0.007853370159864426,
-0.012594512663781643,
-0.019110171124339104,
0.07436586916446686,
-0.0016493897419422865,
0.021494392305612564,
-0.02298680692911148,
0.021203190088272095,
0.05609290301799774,
0.0215125922113657,
0.00406318623572588,
-0.00233417097479105,
-0.03441650792956352,
-0.012003007344901562,
-0.0065702591091394424,
0.024934222921729088,
0.009928189218044281,
0.012576312758028507,
0.04127797111868858,
0.016361946240067482,
0.03636392578482628,
-0.031977687031030655,
-0.03796553984284401,
0.043825991451740265,
-0.07877030968666077,
0.00633365660905838,
-0.0014673881232738495,
-0.0034898812882602215,
0.04393519461154938,
-0.030776476487517357,
0.014332628808915615,
0.04338918998837471,
0.025880631059408188,
0.003417080733925104,
-0.024206217378377914,
0.017417555674910545,
0.048630837351083755,
0.017180953174829483,
-0.015233536250889301,
-0.037565138190984726,
0.008590476587414742,
-0.010073790326714516,
0.007220914587378502,
-0.043243587017059326,
0.05259847268462181,
0.015042434446513653,
-0.006779560819268227,
0.04255198314785957,
0.018727967515587807,
0.050851255655288696,
-0.09245682507753372,
0.004550040699541569,
-0.024006014689803123,
-0.02220419980585575,
0.014032325707376003,
-0.01266731321811676,
0.02615363523364067,
-0.014041425660252571,
0.07527587562799454,
-0.006274506449699402,
0.03774713724851608,
0.0002846619172487408,
-0.06442857533693314,
0.044517599046230316,
0.00860412698239088,
-0.026026234030723572,
-0.024825021624565125,
0.013659222051501274,
-0.018400365486741066,
0.025243626907467842,
0.013577321544289589,
-0.022732004523277283,
-0.030285071581602097,
0.0031349780037999153
] |
722,985
|
pyopenstates.core
|
get_legislator
|
Gets a legislator's details
Args:
leg_id: The Legislator's Open States ID
fields: An optional custom list of fields to return
Returns:
The requested :ref:`Legislator` details as a dictionary
|
def get_legislator(leg_id):
"""
Gets a legislator's details
Args:
leg_id: The Legislator's Open States ID
fields: An optional custom list of fields to return
Returns:
The requested :ref:`Legislator` details as a dictionary
"""
leg_id = _fix_id_string("ocd-person/", leg_id)
return _get("people/", params={"id": [leg_id]})["results"][0]
|
(leg_id)
|
[
0.025538261979818344,
0.035236112773418427,
0.02384861744940281,
0.044634755700826645,
0.01649162732064724,
-0.014089164324104786,
0.01904369331896305,
0.019782911986112595,
-0.016095615923404694,
-0.03678495064377785,
-0.05241415649652481,
-0.009838654659688473,
-0.04273390769958496,
0.021014943718910217,
-0.023725414648652077,
0.0058389510959386826,
-0.08976232260465622,
0.02926955744624138,
-0.04804924502968788,
-0.02119094878435135,
0.007400991395115852,
-0.012936335057020187,
0.05882072448730469,
0.005434140563011169,
-0.0189380906522274,
0.050161298364400864,
-0.003242884064093232,
-0.010850680992007256,
-0.0012023311574012041,
0.001915149623528123,
0.040481049567461014,
-0.06779695302248001,
-0.03717216104269028,
0.007563795894384384,
-0.08018767833709717,
0.01366675365716219,
0.008342616260051727,
0.01767965778708458,
-0.08427098393440247,
0.020486930385231972,
-0.03138161078095436,
0.05132292956113815,
0.03773537650704384,
-0.031575217843055725,
-0.05311817675828934,
-0.033898476511240005,
-0.047626834362745285,
-0.04150187596678734,
-0.02805512584745884,
-0.009618649259209633,
0.0036674949806183577,
-0.029903173446655273,
0.004008503630757332,
-0.04998529329895973,
0.02413022518157959,
-0.06645932048559189,
0.002283659065142274,
0.002589466981589794,
0.05058370903134346,
-0.0047653233632445335,
-0.002272658748552203,
-0.031135205179452896,
-0.053540587425231934,
0.0029084752313792706,
0.03586972877383232,
-0.013385146856307983,
0.01685243658721447,
0.021120546385645866,
-0.023338204249739647,
-0.01597241312265396,
-0.007616597227752209,
0.016421224921941757,
-0.02557346224784851,
-0.024147825315594673,
-0.006718974094837904,
0.02545025944709778,
0.00028325733728706837,
-0.06248161569237709,
0.035288915038108826,
-0.009680250659584999,
-0.05068931356072426,
-0.005262536462396383,
-0.005029330030083656,
0.028917549178004265,
-0.036221738904714584,
-0.026471085846424103,
0.05815190449357033,
-0.04005863517522812,
-0.010058660060167313,
-0.012408320792019367,
-0.018568480387330055,
-0.00873422622680664,
-0.013253143057227135,
-0.011053086258471012,
-0.020944541320204735,
-0.03674975037574768,
-0.0066573722288012505,
0.12552644312381744,
0.046852413564920425,
0.05558224022388458,
0.005108532030135393,
-0.03044878877699375,
-0.046077992767095566,
0.07138744741678238,
-0.014229968190193176,
-0.011281891725957394,
-0.0019745510071516037,
-0.030519189313054085,
0.028248731046915054,
-0.012566725723445415,
-0.10475791245698929,
-0.031170407310128212,
0.019800512120127678,
0.03745377063751221,
-0.014221168123185635,
0.06568489968776703,
0.029023151844739914,
0.023866217583417892,
-0.005750949028879404,
-0.016060415655374527,
0.02545025944709778,
0.019906114786863327,
-0.03643294423818588,
-0.03215603157877922,
-0.028811946511268616,
0.038052186369895935,
-0.054385408759117126,
-0.010305066592991352,
0.01964210905134678,
-0.03256084397435188,
0.050724513828754425,
0.021278951317071915,
-0.03210322931408882,
-0.021173348650336266,
0.023338204249739647,
-0.004296711180359125,
-0.012584325857460499,
0.060862377285957336,
0.05132292956113815,
0.04449395090341568,
-0.02356700971722603,
-0.014793182723224163,
0.026189478114247322,
-0.0017875463236123323,
-0.007876204326748848,
0.001788646331988275,
-0.046570803970098495,
0.06652972102165222,
-0.0009966257493942976,
0.0064725675620138645,
-0.026752691715955734,
0.007418591994792223,
0.04653560370206833,
-0.004501316696405411,
-0.0307655967772007,
0.006714573595672846,
-0.04262830317020416,
-0.011026685126125813,
0.0808916911482811,
-0.01574360765516758,
0.030853599309921265,
-0.038052186369895935,
0.0378761813044548,
-0.06695213168859482,
0.012267517857253551,
-0.008883830159902573,
0.013965961523354053,
-0.026523886248469353,
0.02750951237976551,
0.024658238515257835,
-0.01920209638774395,
0.014969187788665295,
-0.05244935676455498,
-0.035218510776758194,
-0.040586650371551514,
0.018515679985284805,
0.025872670114040375,
0.04030504450201988,
0.007185386028140783,
-0.013112339191138744,
-0.03335286304354668,
0.04100906103849411,
-0.03535931557416916,
0.03338806331157684,
0.02235257811844349,
0.009873855859041214,
0.03011437878012657,
0.0030954801477491856,
-0.0037422969471663237,
0.02152535691857338,
-0.03720736503601074,
-0.00834701582789421,
-0.008083009161055088,
0.009829854592680931,
-0.02363741211593151,
0.022000569850206375,
0.018198871985077858,
-0.017486052587628365,
-0.046676408499479294,
0.015224394388496876,
0.03370487317442894,
0.04931647703051567,
-0.019853314384818077,
0.01587561145424843,
-0.037770576775074005,
0.04509236663579941,
-0.021718962118029594,
-0.011070686392486095,
0.00005617020360659808,
0.00006235786713659763,
0.06966260075569153,
-0.013675553724169731,
-0.04449395090341568,
-0.002171456115320325,
-0.0034628896974027157,
-0.05241415649652481,
-0.022546183317899704,
-0.007211786694824696,
0.028935149312019348,
-0.018955690786242485,
-0.01574360765516758,
-0.08251093327999115,
0.032631244510412216,
-0.023707814514636993,
-0.03330006077885628,
-0.0123731205239892,
0.006648572161793709,
0.00776180112734437,
-0.00278747221454978,
-0.03344086557626724,
0.027315907180309296,
-0.08955112099647522,
0.024693438783288002,
-0.06656492501497269,
-0.013842758722603321,
-0.05206214636564255,
0.005359338596463203,
0.02423582784831524,
0.028917549178004265,
0.019166896119713783,
0.030923999845981598,
0.025309454649686813,
0.012971536256372929,
0.028847146779298782,
-0.04044584557414055,
-0.016060415655374527,
0.014097965322434902,
-0.018462877720594406,
-0.025890270248055458,
-0.06170719861984253,
-0.02196536771953106,
-0.013121139258146286,
0.036996155977249146,
0.04554997757077217,
0.03734816610813141,
-0.07835722714662552,
-0.036996155977249146,
-0.03377527371048927,
-0.0027368708979338408,
-0.08511580526828766,
-0.02185976505279541,
0.04921087250113487,
-0.06103837862610817,
0.01638602465391159,
-0.04118506610393524,
-0.0009817754616960883,
0.01981811225414276,
-0.0456203818321228,
0.0537869930267334,
-0.038721002638339996,
0.0882134810090065,
0.0347961001098156,
-0.07786441594362259,
-0.014661179855465889,
-0.022106172516942024,
-0.019061293452978134,
0.05533583089709282,
-0.0045497179962694645,
-0.007616597227752209,
0.053329382091760635,
-0.06371364742517471,
0.015708407387137413,
-0.03314165771007538,
0.055863846093416214,
-0.062446415424346924,
0.021982969716191292,
-0.025168651714920998,
0.01703724078834057,
-0.023056596517562866,
0.007189786061644554,
0.039706628769636154,
0.017301248386502266,
-0.02263418585062027,
0.028653541579842567,
0.09314160794019699,
0.021613359451293945,
-0.007915805093944073,
-0.014845984056591988,
0.024429433047771454,
-0.026471085846424103,
-0.0022198574151843786,
0.0096538495272398,
-0.0008415217744186521,
-0.019835714250802994,
-0.027650315314531326,
-0.027826320379972458,
-0.010058660060167313,
-0.07469633221626282,
-0.03780577704310417,
0.020733335986733437,
-0.018304474651813507,
-0.005803750362247229,
0.002422262681648135,
-0.04065705090761185,
-0.00592255312949419,
-0.030307983979582787,
-0.03678495064377785,
-0.001406936440616846,
0.023936619982123375,
0.057694293558597565,
0.0048753260634839535,
0.033018454909324646,
0.06607211381196976,
-0.005434140563011169,
0.020486930385231972,
-0.07223226875066757,
0.059137530624866486,
0.028847146779298782,
0.033124055713415146,
0.0021934567485004663,
-0.06371364742517471,
-0.050055697560310364,
0.010093861259520054,
-0.04417714476585388,
0.06202400475740433,
0.05185094103217125,
0.05695507302880287,
-0.016086816787719727,
-0.03476089984178543,
-0.019184496253728867,
0.019624508917331696,
-0.02585506998002529,
-0.03308885544538498,
0.04794364050030708,
0.03938981890678406,
0.055476635694503784,
-0.005165733862668276,
0.011721903458237648,
0.02601347304880619,
-0.05090051889419556,
-0.028759144246578217,
-0.0539981983602047,
-0.012672328390181065,
0.014159566722810268,
0.004602519329637289,
0.04681721329689026,
-0.019554106518626213,
0.050055697560310364,
0.03164561837911606,
0.04741562902927399,
0.0025564662646502256,
-0.12073912471532822,
-0.008791427128016949,
-0.016790835186839104,
-0.03592253103852272,
-0.027474312111735344,
-0.00047576232464052737,
-0.055159829556941986,
0.04808444529771805,
0.023602211847901344,
-0.022053370252251625,
0.002917275531217456,
-0.004791724029928446,
0.004870926029980183,
-0.00012691578012891114,
0.007128184661269188,
0.043965939432382584,
0.0029194755479693413,
-0.04885886609554291,
0.03734816610813141,
0.001106078620068729,
0.03497210517525673,
0.0538925938308239,
0.05727188289165497,
-0.00784540269523859,
-0.05251976102590561,
-0.016245219856500626,
0.022387780249118805,
-0.0072557879611849785,
-0.031680818647146225,
0.03430328890681267,
-0.008809028193354607,
0.002633468247950077,
0.03242003917694092,
-0.0064329663291573524,
-0.005337337963283062,
0.01577000878751278,
-0.018058067187666893,
0.020627733319997787,
-0.059630341827869415,
0.023549409583210945,
0.013050737790763378,
-0.02263418585062027,
-0.002095554256811738,
-0.03674975037574768,
0.024992646649479866,
0.015594003722071648,
0.02423582784831524,
-0.02833673357963562,
-0.042417097836732864,
-0.005442941095679998,
0.04822525009512901,
0.030343186110258102,
-0.04111466556787491,
0.027139902114868164,
0.03344086557626724,
-0.01685243658721447,
0.09792893379926682,
-0.033176857978105545,
0.04118506610393524,
0.014599577523767948,
-0.06026396155357361,
-0.026101475581526756,
0.06469927728176117,
-0.020627733319997787,
0.005526543129235506,
-0.025555862113833427,
0.02756231278181076,
0.017670856788754463,
0.004406713880598545,
0.060967978090047836,
0.004760923329740763,
0.04378993436694145,
-0.03963622450828552,
0.0229685939848423,
-0.003891900647431612,
-0.029674367979168892,
0.10236424952745438,
0.02191256731748581,
-0.040868256241083145,
0.05906713008880615,
0.007907005026936531,
0.06512168794870377,
-0.045690782368183136,
0.011792304925620556,
-0.034373689442873,
0.012109113857150078,
0.026875896379351616,
0.07342910021543503,
-0.021208548918366432,
0.042593102902173996,
-0.031064804643392563,
0.05656786262989044,
0.036996155977249146,
-0.028935149312019348,
0.02201816998422146,
-0.03907301276922226,
0.021789364516735077,
-0.01870928518474102,
0.026330281049013138,
-0.043367523699998856,
-0.021349351853132248,
0.036996155977249146,
0.05600465089082718,
-0.00968905072659254,
0.031188007444143295,
-0.019131695851683617,
0.003179082414135337,
-0.05230855569243431,
-0.0015906412154436111,
0.0380873866379261,
0.020117320120334625,
0.041537076234817505,
-0.007427392061799765,
0.04111466556787491,
0.05104131996631622,
-0.03217363357543945,
-0.010850680992007256,
0.013622752390801907,
-0.005429740529507399,
-0.010085061192512512,
-0.00424611009657383,
0.005236135330051184,
0.012522724457085133,
-0.028195930644869804,
-0.022704588249325752,
-0.0806804895401001,
0.03083599917590618,
-0.06628331542015076,
-0.01726604625582695,
0.009803453460335732,
0.04847165569663048,
0.01579640805721283,
-0.0344792939722538,
0.010357867926359177,
0.0612143836915493,
0.04822525009512901,
-0.05290697142481804,
0.031909625977277756,
0.04255790263414383,
-0.021947767585515976,
-0.02451743558049202,
-0.011466696858406067,
-0.004584918729960918,
0.0498092882335186,
-0.05484301969408989,
-0.07490754127502441,
0.04283950850367546,
0.011070686392486095,
0.03706656023859978,
-0.02640068344771862,
-0.04871806129813194,
0.06705773621797562,
0.027474312111735344,
-0.06997941434383392,
0.0008541721035726368,
0.008210612460970879,
0.017582854256033897,
-0.06522728502750397,
0.05156933516263962,
0.04442355036735535,
0.0385097973048687,
0.010393069125711918,
-0.021278951317071915,
0.05512462556362152,
-0.03724256530404091,
-0.0210325438529253,
0.001570840715430677,
-0.02185976505279541,
0.0041757081635296345,
0.010217064060270786,
-0.05251976102590561,
0.002171456115320325,
-0.003724696347489953,
-0.028635941445827484,
0.007414191961288452,
-0.06051036715507507,
-0.038544997572898865,
-0.054878219962120056,
0.016421224921941757,
0.035341713577508926,
-0.034496892243623734,
0.01886768825352192,
-0.002879874547943473,
0.02699909918010235,
-0.050161298364400864,
-0.061179183423519135,
0.008153410628437996,
0.029515964910387993,
-0.00038390993722714484,
0.07399231195449829,
-0.013121139258146286,
-0.010604274459183216,
-0.013402746990323067,
-0.07652678340673447,
0.004571718163788319,
-0.04537397623062134,
0.02428862825036049,
-0.008237013593316078,
-0.053434982895851135,
0.002126354956999421,
-0.00038748502265661955,
0.015285995788872242,
0.020733335986733437,
0.03403928130865097,
-0.00568494712933898,
0.04400113970041275,
0.03219123184680939,
-0.010243465192615986,
-0.03104720450937748,
-0.019360501319169998,
0.03553532063961029,
-0.018234072253108025,
0.06469927728176117,
-0.029515964910387993,
0.005909353028982878,
-0.008690224960446358,
-0.0068817781284451485,
0.05572304129600525,
-0.009249038994312286,
0.02545025944709778,
0.0342680886387825,
-0.023338204249739647,
-0.011466696858406067,
-0.010472270660102367,
0.03159281611442566,
-0.024147825315594673,
0.035218510776758194,
0.0060325562953948975,
-0.04952768236398697,
0.014757982455193996,
-0.021454954519867897,
-0.03741857036948204,
-0.004340712446719408,
0.04442355036735535,
0.0890583023428917,
-0.043473124504089355,
0.008215012960135937,
0.003339686430990696,
0.02363741211593151,
-0.04445875063538551,
0.011308292858302593,
-0.03812258690595627,
-0.027826320379972458,
-0.0033132857643067837,
-0.022950993850827217,
0.051780540496110916,
-0.03917861357331276,
-0.0016500427154824138,
-0.05185094103217125,
0.01858608052134514,
-0.04428274556994438,
0.01029626652598381,
-0.017380449920892715,
-0.0006600170745514333,
-0.06364324688911438,
0.06881777942180634,
-0.009495445527136326,
0.004338512197136879,
-0.0010026759700849652,
0.016614830121397972,
-0.025203851982951164,
-0.006952180061489344,
0.04537397623062134,
-0.03227923437952995,
-0.0534701831638813,
0.05558224022388458,
-0.0072469874285161495,
0.026981499046087265,
-0.021947767585515976,
-0.044810760766267776,
0.03755937144160271,
-0.03481370210647583,
-0.05230855569243431,
0.03498970717191696,
0.03938981890678406,
0.05596945062279701,
-0.05375179275870323,
-0.021226149052381516,
0.035834528505802155,
-0.10356108099222183,
0.08511580526828766,
-0.04111466556787491,
0.006164559628814459,
-0.01068347692489624,
0.052167750895023346,
0.005126132629811764,
0.02970956824719906,
0.0006534169078804553,
-0.030800797045230865,
-0.03875620290637016,
0.06431206315755844,
-0.01987091451883316,
-0.0010648275492712855,
-0.0014245369238778949,
-0.049386877566576004,
-0.017644457519054413,
0.02706950157880783,
-0.05396299809217453,
0.05558224022388458,
0.04245229810476303,
-0.03900260850787163,
0.08849509060382843,
-0.0877910703420639,
0.02052213065326214,
0.010269866324961185,
0.0014388372655957937,
0.03706656023859978,
0.08061008900403976,
-0.004386913497000933,
-0.03509530797600746,
-0.0064725675620138645,
0.07779401540756226,
-0.017230845987796783,
0.001291433465667069,
-0.02002931758761406,
0.025362256914377213,
-0.003484890330582857,
0.03315925970673561,
0.012329119257628918,
-0.021490156650543213,
0.059137530624866486,
0.0005742148496210575,
-0.029427962377667427,
-0.00484452536329627,
0.013147540390491486,
0.017556454986333847,
-0.023320604115724564,
0.039213813841342926,
-0.006331763695925474,
-0.03154001757502556,
-0.02851273864507675,
0.016218820586800575,
-0.003456289414316416,
0.04537397623062134,
-0.015426799654960632,
-0.03083599917590618,
-0.003568492364138365,
0.014511575922369957,
0.016095615923404694,
0.04459955543279648,
0.014696380123496056,
0.01641242578625679,
0.04234669730067253,
0.02529185451567173,
-0.046852413564920425,
0.030079178512096405,
-0.007550595328211784,
-0.035781726241111755,
-0.024834243580698967,
-0.03099440224468708,
0.02335580438375473,
0.03498970717191696,
-0.023813417181372643,
0.07166905701160431,
-0.07892044633626938,
-0.023584609851241112,
0.030237583443522453,
-0.00357729266397655,
-0.013367545790970325,
0.059911951422691345,
0.007686999160796404,
0.041255466639995575,
0.014221168123185635,
0.06420645862817764,
0.03928421810269356,
0.026875896379351616,
-0.01582280918955803,
-0.0951128602027893,
0.00834701582789421,
-0.017512453719973564,
-0.036010533571243286,
-0.05512462556362152,
0.004320912063121796,
0.0032868850976228714,
0.01858608052134514,
0.009601048193871975,
0.04547957703471184,
0.03175122290849686,
-0.0056893471628427505,
0.024218227714300156,
0.02673509158194065,
0.03664414957165718,
-0.01488998532295227,
0.0193076990544796,
0.03537691757082939,
0.0001975926134036854,
-0.03713696077466011,
-0.011325892992317677,
0.022405380383133888,
0.0725138783454895,
-0.03370487317442894,
0.00749779399484396,
-0.04745082929730415,
-0.016588428989052773,
-0.039706628769636154,
-0.052766166627407074,
0.018128469586372375,
0.007946605794131756,
0.030255183577537537,
0.03282485157251358,
-0.015453199855983257,
0.02728070691227913,
-0.04484596103429794,
0.030747996643185616,
-0.029920775443315506,
-0.04065705090761185,
0.016016414389014244
] |
722,986
|
pyopenstates.core
|
get_metadata
|
Returns a list of all states with data available, and basic metadata
about their status. Can also get detailed metadata for a particular
state.
Args:
state: The abbreviation of state to get detailed metadata on, or leave
as None to get high-level metadata on all states.
include: Additional includes.
fields: An optional list of fields to return; returns all fields by
default
Returns:
Dict: The requested :ref:`Metadata` as a dictionary
|
def get_metadata(state=None, include=None, fields=None):
"""
Returns a list of all states with data available, and basic metadata
about their status. Can also get detailed metadata for a particular
state.
Args:
state: The abbreviation of state to get detailed metadata on, or leave
as None to get high-level metadata on all states.
include: Additional includes.
fields: An optional list of fields to return; returns all fields by
default
Returns:
Dict: The requested :ref:`Metadata` as a dictionary
"""
uri = "jurisdictions"
params = dict()
if include:
params["include"] = _include_list(include)
if state:
uri += "/" + _jurisdiction_id(state)
state_response = _get(uri, params=params)
if fields is not None:
return {k: state_response[k] for k in fields}
else:
return state_response
else:
params["page"] = "1"
params["per_page"] = "52"
return _get(uri, params=params)["results"]
|
(state=None, include=None, fields=None)
|
[
-0.010542450472712517,
-0.07373402267694473,
0.009577486664056778,
-0.034341875463724136,
0.021788330748677254,
0.03511745110154152,
-0.012382193468511105,
-0.02736167050898075,
-0.00027956883423030376,
-0.01550254225730896,
-0.036506276577711105,
0.05667130649089813,
0.002383098704740405,
-0.0018949806690216064,
0.03169047832489014,
0.023736294358968735,
-0.030229507014155388,
0.05396580323576927,
0.01789240539073944,
-0.05558910593390465,
0.002281642286106944,
0.03176262602210045,
0.007034312468022108,
-0.005275734234601259,
0.028263505548238754,
-0.018045715987682343,
0.025900699198246002,
-0.07560984045267105,
0.06576180458068848,
0.05299181863665581,
0.003345807548612356,
-0.014384266920387745,
-0.018686018884181976,
0.043684884905815125,
-0.08484462648630142,
0.00973981712013483,
0.02783062495291233,
-0.00020051735918968916,
-0.08253592997789383,
-0.01844252459704876,
-0.030500056222081184,
-0.0670965164899826,
0.061396922916173935,
-0.01732424832880497,
0.04664290323853493,
-0.00047966346028260887,
-0.01562879979610443,
-0.054975856095552444,
0.0017067225417122245,
-0.017955532297492027,
0.038923196494579315,
0.036686643958091736,
-0.03722774609923363,
-0.009460248053073883,
0.029508039355278015,
0.00702980300411582,
-0.016765110194683075,
0.01400549616664648,
0.020489688962697983,
0.02595480903983116,
-0.03405328467488289,
0.02323126792907715,
0.018487615510821342,
-0.022852497175335884,
-0.02270820364356041,
-0.003650176804512739,
0.010840055532753468,
-0.03681290149688721,
-0.04152048006653786,
-0.05075526982545853,
-0.006457137875258923,
0.0049510737881064415,
0.05158495903015137,
0.030969010666012764,
-0.011786982417106628,
-0.027433818206191063,
-0.0706317126750946,
-0.026279469951987267,
-0.007043330930173397,
-0.010307973250746727,
-0.0976867601275444,
0.00311133055947721,
-0.07546554505825043,
-0.015331193804740906,
-0.00014443449617829174,
0.03035576269030571,
0.03578481078147888,
-0.009568468667566776,
0.033458076417446136,
-0.009613560512661934,
-0.04404561594128609,
0.026153212413191795,
0.02070613019168377,
0.04534425958991051,
0.009857055731117725,
-0.0010213280329480767,
-0.046498607844114304,
0.05602198466658592,
-0.046751122921705246,
0.033277709037065506,
-0.025052974000573158,
-0.08578253537416458,
-0.03524370864033699,
0.024872606620192528,
0.011399193666875362,
-0.025558002293109894,
-0.045272111892700195,
-0.015646835789084435,
0.013897276483476162,
-0.019732147455215454,
-0.05346077308058739,
-0.03082471713423729,
-0.013139734975993633,
-0.03906748816370964,
0.06406635046005249,
0.03517156094312668,
0.09523376822471619,
0.008968748152256012,
-0.03228569030761719,
-0.06864767521619797,
0.005483156070113182,
0.022509800270199776,
0.01076790876686573,
-0.0435405895113945,
0.036452166736125946,
0.0447310134768486,
0.007025294005870819,
-0.013184826821088791,
-0.012328083626925945,
0.009757854044437408,
-0.05984576418995857,
0.007918110117316246,
-0.005063802935183048,
0.02618928626179695,
0.015718983486294746,
0.05454297736287117,
0.006191096734255552,
-0.014041570015251637,
-0.007494247984141111,
0.009884110651910305,
-0.014366229996085167,
-0.0009232534794136882,
0.026568057015538216,
-0.018424486741423607,
-0.00029253269894979894,
-0.04101545363664627,
0.05840282887220383,
-0.03946429491043091,
-0.024024881422519684,
0.006155023351311684,
0.05241464450955391,
-0.06976594775915146,
-0.00501420209184289,
-0.05796995013952255,
-0.06987416744232178,
0.009496321901679039,
0.06439100950956345,
-0.0027753969188779593,
-0.026676276698708534,
0.03625376522541046,
0.03776884451508522,
0.02177029475569725,
-0.03583892062306404,
0.005726651754230261,
-0.0829688087105751,
-0.005117913242429495,
0.006804344244301319,
-0.07113673537969589,
-0.015096716582775116,
-0.010650670155882835,
-0.022275323048233986,
-0.014591689221560955,
0.0009418538538739085,
-0.03376469761133194,
-0.04361273720860481,
0.027307560667395592,
0.001069801626726985,
-0.03118545189499855,
-0.027451854199171066,
-0.0002632230753079057,
-0.025738367810845375,
-0.06485996395349503,
-0.09898540377616882,
0.030157359316945076,
-0.006696124095469713,
0.03993324935436249,
-0.017261119559407234,
0.02983269840478897,
0.04458671808242798,
0.0682147964835167,
0.021157046779990196,
-0.0261712484061718,
-0.029273562133312225,
0.017549706622958183,
-0.03820172697305679,
-0.05457904934883118,
0.0270550474524498,
-0.023339487612247467,
0.03131170943379402,
0.08866840600967407,
-0.013482431881129742,
0.008414119482040405,
-0.002118184696882963,
0.04812191054224968,
0.0027145231142640114,
0.054615121334791183,
-0.03233980014920235,
-0.04963699355721474,
-0.03895926848053932,
-0.025630148127675056,
0.01547548733651638,
-0.05313611403107643,
-0.05144066363573074,
0.043324150145053864,
0.010749871842563152,
0.01623302884399891,
-0.01373494602739811,
0.0288406815379858,
0.051224224269390106,
-0.03975288197398186,
0.03787706792354584,
-0.050502754747867584,
0.03275464475154877,
0.03082471713423729,
-0.034215617924928665,
0.03748025745153427,
0.019046753644943237,
0.011687780730426311,
-0.017522651702165604,
-0.07777424156665802,
-0.00902736745774746,
0.0411958172917366,
0.06536499410867691,
0.001234386581927538,
0.08773049712181091,
-0.018343321979045868,
0.03701130673289299,
-0.0279388464987278,
0.023898625746369362,
0.009370064362883568,
-0.017603818327188492,
-0.00015725746925454587,
-0.02306893654167652,
-0.006006220355629921,
-0.0594128854572773,
-0.07914502918720245,
0.010885147377848625,
0.014384266920387745,
0.007818908430635929,
-0.04548855498433113,
-0.029724478721618652,
0.008346482180058956,
0.05266715958714485,
-0.01700860634446144,
0.04848264530301094,
-0.04386524856090546,
0.03917570784687996,
-0.04216980189085007,
0.014348193071782589,
-0.03592910245060921,
0.018162954598665237,
-0.08672044426202774,
-0.017342286184430122,
0.009153624065220356,
-0.012156734243035316,
-0.008648596704006195,
0.02947196550667286,
0.01405960600823164,
-0.06262341886758804,
-0.036867011338472366,
0.09609952569007874,
0.04408169165253639,
-0.03729989379644394,
-0.07330114394426346,
-0.03172655403614044,
-0.043035563081502914,
0.08066011220216751,
-0.10843662917613983,
-0.018631909042596817,
-0.01370789110660553,
-0.042386241257190704,
-0.02676646038889885,
0.024385616183280945,
0.04523603990674019,
0.014492487534880638,
-0.007232715841382742,
-0.021788330748677254,
0.05100778117775917,
-0.01747756078839302,
0.03181673586368561,
0.04336022213101387,
0.037913139909505844,
-0.04429813101887703,
-0.02306893654167652,
-0.0019750185310840607,
0.007656578440219164,
-0.07950576394796371,
0.01826215721666813,
0.0347026064991951,
-0.018794240429997444,
-0.03982502967119217,
0.007634032517671585,
0.0541100949048996,
-0.013202862814068794,
-0.011200789362192154,
-0.01940748654305935,
0.012066551484167576,
-0.026261432096362114,
-0.02642376348376274,
-0.0028092158026993275,
-0.00701627554371953,
0.01768498308956623,
-0.014961441047489643,
0.0511881485581398,
-0.05014201998710632,
-0.08679259568452835,
-0.05194569006562233,
0.014357211999595165,
0.004243133123964071,
0.021139010787010193,
-0.01841546967625618,
-0.003298461204394698,
0.03125759959220886,
-0.017703019082546234,
0.052450720220804214,
-0.03217747062444687,
-0.04242231324315071,
-0.004430264234542847,
0.035207636654376984,
0.0036479223053902388,
-0.009230280295014381,
-0.04083508625626564,
0.01305856928229332,
0.04624609276652336,
-0.03971680998802185,
-0.02258194610476494,
-0.011525450274348259,
-0.036848973482847214,
0.01828921213746071,
-0.006601431407034397,
0.013112680055201054,
-0.060747601091861725,
-0.04494745284318924,
0.00776479858905077,
0.054687269032001495,
0.0065924134105443954,
0.05573339760303497,
-0.03095097467303276,
0.005613922141492367,
-0.0653289183974266,
-0.0011994404485449195,
0.018559763208031654,
0.06017042696475983,
0.0323578380048275,
0.024980826303362846,
-0.014330157078802586,
-0.034089360386133194,
-0.022870533168315887,
-0.01935337670147419,
0.05035846307873726,
0.00040385295869782567,
-0.024800460785627365,
0.008373537100851536,
0.010073496028780937,
-0.0009052167879417539,
-0.025107083842158318,
-0.01197636779397726,
0.035279780626297,
0.027560075744986534,
-0.05703204125165939,
-0.02083238586783409,
-0.07791853696107864,
-0.04570499435067177,
0.05620235204696655,
0.014934386126697063,
0.01370789110660553,
0.023321451619267464,
-0.013572615571320057,
-0.05317218601703644,
0.058619268238544464,
-0.06128869950771332,
0.004272442776709795,
-0.04729222133755684,
-0.02606302872300148,
0.003650176804512739,
0.020038772374391556,
0.06431886553764343,
-0.0040109106339514256,
-0.04895159974694252,
-0.0176398903131485,
-0.05223427712917328,
0.002516119508072734,
-0.046678975224494934,
-0.0035893029998987913,
-0.005929564591497183,
-0.041628699749708176,
0.046678975224494934,
0.01758578047156334,
0.02952607534825802,
-0.021373488008975983,
0.05623842403292656,
-0.04487530514597893,
0.002477791393175721,
0.012508450075984001,
0.003318752394989133,
-0.021499743685126305,
-0.03194299340248108,
-0.032971084117889404,
-0.04170084744691849,
-0.031077230349183083,
0.08087655901908875,
-0.03852638602256775,
-0.01966000162065029,
-0.023105010390281677,
-0.00701627554371953,
0.06428278982639313,
-0.01400549616664648,
0.03349414840340614,
-0.0009271990275010467,
0.03737203776836395,
0.058222461491823196,
-0.090616375207901,
0.022870533168315887,
0.017901422455906868,
0.0004283715970814228,
0.007444647140800953,
-0.010686744004487991,
0.025810515508055687,
0.04429813101887703,
0.025684257969260216,
0.019389450550079346,
0.03834602236747742,
-0.03888712078332901,
-0.007318390533328056,
0.023339487612247467,
-0.005636468064039946,
-0.00005463851266540587,
-0.0002767505939118564,
-0.04390132427215576,
0.015231992118060589,
0.011074532754719257,
-0.009212243370711803,
0.008215716108679771,
0.020273249596357346,
0.008783872239291668,
-0.012382193468511105,
0.02270820364356041,
-0.020453615114092827,
0.06911662966012955,
-0.007340936455875635,
-0.025558002293109894,
-0.010632633231580257,
0.022852497175335884,
-0.035802844911813736,
0.07517696171998978,
-0.010605578310787678,
0.023159120231866837,
0.02671235054731369,
-0.03910356014966965,
-0.012454340234398842,
-0.004694050643593073,
-0.014348193071782589,
0.011462321504950523,
-0.02983269840478897,
0.05631057173013687,
-0.08693688362836838,
-0.04148440435528755,
-0.020615946501493454,
-0.0037155598402023315,
-0.008968748152256012,
0.024620093405246735,
0.09133783727884293,
-0.0006307208095677197,
0.021788330748677254,
0.046678975224494934,
-0.04552462697029114,
-0.053568992763757706,
-0.001516209915280342,
-0.00901383999735117,
-0.07012668251991272,
0.04833834990859032,
0.038165654987096786,
0.016954496502876282,
-0.01521395519375801,
-0.003835052950307727,
-0.025341561064124107,
0.06662756204605103,
-0.02959822118282318,
0.037444185465574265,
-0.03574873507022858,
0.03587499260902405,
0.015935422852635384,
0.03729989379644394,
-0.0022523326333612204,
-0.03288090229034424,
0.009117551147937775,
0.017414432018995285,
0.00773774366825819,
0.06374169141054153,
0.02783062495291233,
0.0405825711786747,
-0.05396580323576927,
0.054326534271240234,
0.02135545015335083,
-0.03805743530392647,
-0.0032759152818471193,
0.045849286019802094,
-0.018740128725767136,
0.04494745284318924,
0.028389763087034225,
-0.0013426067307591438,
0.06071152538061142,
0.04823013022542,
-0.007133514154702425,
-0.02135545015335083,
-0.01797357015311718,
-0.05667130649089813,
0.046282168477773666,
0.023159120231866837,
0.051981765776872635,
0.02388058789074421,
0.0027686331886798143,
-0.0012276227353140712,
-0.006813362706452608,
-0.017333267256617546,
0.010596560314297676,
0.017107808962464333,
0.0035419566556811333,
-0.05631057173013687,
0.019263193011283875,
-0.049853432923555374,
-0.04729222133755684,
-0.049456626176834106,
0.033205561339855194,
-0.03877890110015869,
-0.035802844911813736,
-0.03143796697258949,
0.03087882697582245,
0.060386866331100464,
-0.0025206285063177347,
0.06323666125535965,
-0.03924785554409027,
-0.000343824562150985,
0.043396297842264175,
-0.007440138142555952,
0.009992331266403198,
-0.013491450808942318,
-0.007449156604707241,
0.04924018681049347,
0.01326599158346653,
0.014483468607068062,
-0.06662756204605103,
-0.009397120214998722,
-0.012228881940245628,
0.07618701457977295,
0.022149065509438515,
0.04905981943011284,
-0.01594444178044796,
-0.03690308332443237,
-0.036145541816949844,
0.01555665209889412,
-0.014122734777629375,
-0.003787706606090069,
0.017225047573447227,
-0.012012440711259842,
0.01776614785194397,
0.040041469037532806,
0.045741066336631775,
-0.011850111186504364,
-0.0314740389585495,
0.05659915879368782,
0.10136624425649643,
-0.014582670293748379,
0.05800602212548256,
0.03284482657909393,
-0.028461910784244537,
0.03693915903568268,
0.007566394750028849,
0.09898540377616882,
0.023988809436559677,
0.04263875633478165,
-0.034395985305309296,
0.07009060680866241,
0.0400053970515728,
-0.014961441047489643,
0.07095637172460556,
-0.017387377098202705,
0.018226083368062973,
0.05620235204696655,
-0.019623927772045135,
0.0009457993437536061,
-0.011363119818270206,
0.04617394879460335,
0.009550431743264198,
0.04429813101887703,
-0.009135588072240353,
0.006407537031918764,
-0.04664290323853493,
-0.011408211663365364,
-0.04007754474878311,
-0.008314917795360088,
0.01323893666267395,
-0.02323126792907715,
-0.07604271918535233,
-0.0016526124672964215,
0.0062632435001432896,
0.002696486422792077,
0.06478781998157501,
-0.02905712090432644,
-0.05670737847685814,
-0.029904846101999283,
-0.050105948001146317,
0.003352571278810501,
-0.052270352840423584,
0.006254225037992001,
0.014465431682765484,
0.005492174532264471,
-0.004644449800252914,
0.0013899530749768019,
-0.08203090727329254,
0.01877620257437229,
-0.02595480903983116,
0.02523334138095379,
0.045380331575870514,
-0.020579872652888298,
0.004707578103989363,
0.0010765654733404517,
-0.011642688885331154,
-0.07892858982086182,
-0.00881994515657425,
0.02658609300851822,
0.019443560391664505,
0.01450150553137064,
0.004910490941256285,
0.03277268260717392,
0.029201414436101913,
0.06262341886758804,
-0.002062947256490588,
0.005023220553994179,
0.04170084744691849,
-0.04902374744415283,
0.02977858856320381,
-0.03419758006930351,
0.009748835116624832,
-0.0030842754058539867,
0.01479911059141159,
-0.0446949377655983,
0.0006425573956221342,
0.05512015148997307,
-0.045272111892700195,
-0.028552092611789703,
0.01450150553137064,
-0.0010991112794727087,
0.03488297387957573,
0.03740811347961426,
-0.034341875463724136,
-0.031618330627679825,
0.025900699198246002,
-0.014041570015251637,
-0.02117508463561535,
-0.015105734579265118,
-0.004080803133547306,
0.025864625349640846,
-0.024800460785627365,
0.028317617252469063,
-0.06972987949848175,
-0.06954950839281082,
-0.03372862562537193,
0.04166477173566818,
-0.009153624065220356,
0.05548088252544403,
0.03982502967119217,
0.09112139791250229,
0.012436303310096264,
-0.01693646050989628,
0.0288406815379858,
0.021986735984683037,
0.013121698051691055,
0.015935422852635384,
0.02265409380197525,
0.07243537902832031,
0.009315954521298409,
0.022094955667853355,
0.03946429491043091,
0.01906478963792324,
-0.011462321504950523,
0.027902772650122643,
0.007561885751783848,
-0.02065202035009861,
0.04996165260672569,
-0.01023582648485899,
-0.04476708546280861,
0.019732147455215454,
0.028047066181898117,
0.018541725352406502,
0.011859129182994366,
-0.013157771900296211,
-0.02341163530945778,
0.06182980164885521,
-0.032808754593133926,
0.0025183740071952343,
0.038273874670267105,
0.02364611066877842,
0.006434591952711344,
0.030373800545930862,
0.01782025769352913,
0.0025724840816110373,
0.005126931704580784,
-0.04570499435067177,
-0.03583892062306404,
-0.024331506341695786,
0.009031876921653748,
0.02777651511132717,
0.025052974000573158,
0.054687269032001495,
-0.04422598332166672,
0.035622477531433105,
0.01964196376502514,
0.011759927496314049,
0.04231409355998039,
0.042746976017951965,
-0.013347156345844269,
-0.005361408460885286,
0.03605535998940468,
-0.03183477371931076,
0.00311133055947721,
0.0031767135951668024,
-0.011678761802613735,
-0.001781123923137784,
0.012661762535572052,
-0.0062812804244458675,
-0.015511560253798962,
-0.0382377989590168,
-0.017883386462926865,
-0.0039274911396205425,
-0.010091532953083515,
0.047039709985256195,
0.020074844360351562,
0.01714388094842434,
0.02977858856320381,
0.003952291328459978,
0.07604271918535233,
0.039392150938510895,
0.019678037613630295,
-0.04188121482729912,
-0.015755055472254753,
-0.02434954233467579,
-0.04242231324315071,
-0.03971680998802185,
-0.0037561424542218447,
0.017567744478583336,
0.02819135971367359,
0.015728000551462173,
-0.07009060680866241,
-0.0032849337439984083,
-0.005415518768131733,
-0.029904846101999283,
0.023736294358968735,
0.011038459837436676,
0.008066913112998009,
-0.03270053490996361,
-0.028966937214136124,
0.013752982020378113,
0.02018306590616703,
0.03573070093989372,
0.028155285865068436,
-0.03141992911696434,
-0.03605535998940468
] |
722,987
|
pyopenstates.core
|
get_organizations
| null |
def get_organizations(state):
uri = "jurisdictions"
uri += "/" + _jurisdiction_id(state)
state_response = _get(uri, params={"include": "organizations"})
return state_response["organizations"]
|
(state)
|
[
-0.03332112357020378,
-0.05940075218677521,
-0.03275751695036888,
-0.0185136329382658,
0.009922897443175316,
0.018001263961195946,
-0.05864927917718887,
-0.09721365571022034,
0.03140827640891075,
-0.04016980156302452,
-0.0002050814073299989,
-0.021246273070573807,
-0.04901672154664993,
0.010298635810613632,
0.008612084202468395,
0.01724124886095524,
0.03253548964858055,
0.005554943811148405,
0.019504215568304062,
0.010221780277788639,
-0.015584585256874561,
-0.0011795182945206761,
0.019213872030377388,
-0.03511441871523857,
0.00015931502275634557,
-0.03173277899622917,
0.03144243359565735,
-0.04194601997733116,
0.028094951063394547,
-0.029222164303064346,
-0.004056261852383614,
-0.013876685872673988,
0.005354265682399273,
0.020938850939273834,
0.02534523233771324,
0.07439611107110977,
0.07945149391889572,
0.040238119661808014,
-0.007659930270165205,
0.005042573902755976,
-0.05909333378076553,
-0.034516654908657074,
0.03993069753050804,
0.00790757592767477,
0.042595021426677704,
0.010904939845204353,
0.011161125265061855,
-0.0403747521340847,
-0.033935967832803726,
-0.0026814027223736048,
-0.011801587417721748,
-0.019948270171880722,
-0.005862365942448378,
-0.04071633145213127,
0.010896400548517704,
-0.05140778422355652,
0.007685549091547728,
-0.02109256200492382,
0.07658222317695618,
0.017796315252780914,
-0.05396963283419609,
-0.04519102722406387,
0.027667976915836334,
-0.05653148144483566,
-0.009461765177547932,
0.027907082810997963,
-0.02604547142982483,
0.01716439239680767,
-0.018803976476192474,
0.0037894025444984436,
0.01621650904417038,
0.04163859784603119,
0.017429117113351822,
-0.02391059696674347,
-0.023978913202881813,
-0.005776971112936735,
-0.008146681822836399,
0.01964084804058075,
-0.056838903576135635,
-0.04396133869886398,
-0.03668568655848503,
0.01830868609249592,
-0.021280430257320404,
0.047411296516656876,
0.040101487189531326,
-0.012382273562252522,
0.03873516619205475,
-0.006639460567384958,
-0.035182736814022064,
-0.016447074711322784,
0.05127115175127983,
0.010392569936811924,
0.054037947207689285,
-0.021365826949477196,
0.04519102722406387,
0.03914506360888481,
-0.057180482894182205,
0.06148439273238182,
-0.030144430696964264,
-0.024627914652228355,
-0.015516269020736217,
-0.02087053470313549,
-0.008552308194339275,
0.03661737218499184,
-0.002749718725681305,
0.023022489622235298,
-0.013475329615175724,
-0.0036463660653680563,
0.009094566106796265,
0.02377396449446678,
-0.06380713731050491,
0.024832863360643387,
0.019350504502654076,
-0.03613916039466858,
0.04519102722406387,
0.045395974069833755,
0.004794928710907698,
0.010648755356669426,
-0.008270504884421825,
-0.015960322692990303,
-0.014056014828383923,
0.051544416695833206,
0.025652654469013214,
0.023944754153490067,
0.0330820195376873,
0.07398621737957001,
-0.03825695440173149,
0.022493040189146996,
-0.009103105403482914,
-0.0673595666885376,
-0.006801710929721594,
0.009043329395353794,
-0.03890595585107803,
-0.04891424998641014,
0.03133996203541756,
-0.01205777283757925,
-0.04286828264594078,
-0.039794065058231354,
-0.023295752704143524,
0.06179181486368179,
-0.03222806751728058,
0.016131114214658737,
0.0040925550274550915,
0.02761673927307129,
0.009624015539884567,
0.0449177622795105,
0.029700376093387604,
0.003048601094633341,
0.025293994694948196,
0.006267992313951254,
0.007706897798925638,
-0.024166781455278397,
-0.008543768897652626,
-0.012962959706783295,
-0.07576243579387665,
-0.013714435510337353,
-0.022851698100566864,
-0.022971251979470253,
0.01605425775051117,
0.0036613100674003363,
-0.03434586524963379,
0.03074219636619091,
-0.0627823919057846,
-0.016694720834493637,
-0.041126225143671036,
-0.021280430257320404,
0.04095543548464775,
-0.0459766611456871,
0.002647244604304433,
-0.06783778220415115,
-0.055711690336465836,
-0.030349379405379295,
-0.04163859784603119,
-0.027343476191163063,
-0.01420118659734726,
0.02121211588382721,
-0.0018754873890429735,
0.04891424998641014,
-0.01853071339428425,
0.017659682780504227,
-0.04334649443626404,
-0.0009313391055911779,
-0.07016052305698395,
0.02828281931579113,
-0.011716192588210106,
0.02736055478453636,
-0.033935967832803726,
-0.0008849055739119649,
0.041331175714731216,
0.0314253568649292,
-0.002574658952653408,
-0.0034969248808920383,
-0.015354018658399582,
-0.0001098126158467494,
-0.004449078813195229,
-0.016344601288437843,
0.005670227110385895,
0.04577171429991722,
-0.060869548469781876,
0.017010681331157684,
-0.021707406267523766,
0.025089047849178314,
-0.037539638578891754,
0.040238119661808014,
-0.01762552559375763,
0.033935967832803726,
-0.06428534537553787,
-0.05308152362704277,
0.04645487293601036,
0.035182736814022064,
0.006276531610637903,
0.005994728300720453,
-0.07200505584478378,
-0.014124331064522266,
-0.019504215568304062,
-0.027855845168232918,
-0.023398226127028465,
-0.005089541431516409,
0.03689063340425491,
0.0017986319726333022,
0.00008979816630017012,
-0.06370466202497482,
0.16081583499908447,
-0.04297075793147087,
-0.025396469980478287,
-0.005862365942448378,
-0.02198066934943199,
0.012817787937819958,
-0.006011807359755039,
-0.023022489622235298,
0.036412421613931656,
-0.005332916975021362,
0.07166347652673721,
-0.02761673927307129,
0.034499574452638626,
-0.012544523924589157,
0.000480346818221733,
-0.06004975736141205,
0.0002988824562635273,
0.05646316707134247,
-0.043722234666347504,
-0.023056646808981895,
0.01531986054033041,
0.0235690176486969,
-0.06459277123212814,
0.016148192808032036,
0.006139899604022503,
0.005943491123616695,
0.00048088052426464856,
-0.08512172102928162,
-0.05314984172582626,
0.007612963207066059,
0.021399984136223793,
-0.004173680208623409,
0.0403747521340847,
-0.05523347854614258,
-0.029341718181967735,
-0.019111398607492447,
-0.001846666680648923,
-0.011536862701177597,
0.017386419698596,
-0.018359921872615814,
-0.012160246260464191,
0.06691551208496094,
-0.03689063340425491,
-0.035421840846538544,
0.013424091972410679,
-0.0038982811383903027,
-0.01262137945741415,
0.03321865200996399,
0.030554326251149178,
0.013219144195318222,
-0.01996534876525402,
-0.06411455571651459,
0.03969158977270126,
0.02133166790008545,
0.04648903012275696,
-0.009299513883888721,
0.005435390863567591,
0.020836377516388893,
-0.015336940065026283,
0.039657432585954666,
-0.015849309042096138,
0.039657432585954666,
0.00594776077196002,
-0.06718877702951431,
-0.03610499948263168,
-0.017762158066034317,
0.004666836000978947,
0.051885996013879776,
0.06411455571651459,
0.008180839940905571,
-0.03634410724043846,
0.022475961595773697,
0.021809879690408707,
-8.964805715550028e-7,
0.03352607414126396,
0.026096709072589874,
0.05038304254412651,
-0.038564376533031464,
-0.011588100343942642,
0.03914506360888481,
-0.03152782842516899,
-0.0029397225007414818,
0.027633817866444588,
-0.004054127261042595,
-0.008338820189237595,
-0.0348069965839386,
-0.012237101793289185,
0.0975552350282669,
-0.07002388685941696,
-0.04621576890349388,
0.0003896146372426301,
0.04064801335334778,
-0.033816415816545486,
-0.05977649241685867,
-0.03400428593158722,
-0.035182736814022064,
0.046044979244470596,
0.016711799427866936,
-0.02121211588382721,
-0.008898157626390457,
0.07343968749046326,
-0.0840969830751419,
-0.025157364085316658,
-0.04239007085561752,
0.0013919383054599166,
0.13062018156051636,
0.014841648750007153,
-0.0005315837915986776,
-0.04802614077925682,
-0.0897672101855278,
0.0012008670018985868,
0.007822181098163128,
0.03217682987451553,
-0.04317570477724075,
0.06274823844432831,
-0.008308932185173035,
0.039452485740184784,
-0.025977155193686485,
-0.025328153744339943,
-0.018991844728589058,
-0.029239244759082794,
0.024627914652228355,
0.04836772009730339,
0.04631824046373367,
-0.0077026281505823135,
0.03634410724043846,
-0.00209751445800066,
-0.10418188571929932,
-0.0031233218032866716,
0.056258220225572586,
0.0471038743853569,
-0.0007327957428060472,
-0.042458388954401016,
0.07699212431907654,
-0.024935336783528328,
0.005648878403007984,
0.02254427783191204,
0.08020297437906265,
-0.00608439277857542,
-0.06090370565652847,
-0.01853071339428425,
-0.020392322912812233,
0.010085147805511951,
0.0015018843114376068,
-0.015072215348482132,
-0.036651529371738434,
0.07589906454086304,
-0.06876004487276077,
0.016190890222787857,
-0.05444784462451935,
-0.027463028207421303,
0.0005265134968794882,
-0.012715313583612442,
0.035182736814022064,
0.019026003777980804,
-0.032484252005815506,
-0.013987699523568153,
0.004884593188762665,
-0.015405256301164627,
-0.009641094133257866,
0.030810512602329254,
0.03863269463181496,
-0.030246904119849205,
-0.014278042130172253,
-0.011024492792785168,
0.001596886315383017,
-0.04085296392440796,
0.015635821968317032,
-0.007032277528196573,
-0.008659051731228828,
0.009231198579072952,
0.016993602737784386,
-0.011400231160223484,
-0.011818666011095047,
-0.0009526878129690886,
-0.052022628486156464,
0.03277459740638733,
-0.0003226329281460494,
0.055267635732889175,
0.031801093369722366,
0.053901318460702896,
-0.002181841991841793,
-0.022493040189146996,
-0.05509684607386589,
0.007928924635052681,
0.003917495254427195,
-0.03791537508368492,
-0.008300392888486385,
0.028453610837459564,
-0.008889618329703808,
0.003291976870968938,
-0.038325272500514984,
0.009145802818238735,
-0.00549943745136261,
0.02502073161303997,
0.05523347854614258,
0.034038443118333817,
0.0157126784324646,
0.04119454324245453,
-0.0448494479060173,
0.023722728714346886,
0.01783047430217266,
-0.0018039691494777799,
0.00011575024109333754,
-0.01931634731590748,
-0.0011837880592793226,
0.005008416250348091,
0.030930064618587494,
0.04635240137577057,
0.021058404818177223,
0.013048354536294937,
-0.03028106316924095,
0.028351135551929474,
0.002538366010412574,
0.00581112876534462,
0.047650404274463654,
-0.002382520120590925,
0.021639090031385422,
0.04139949008822441,
0.04802614077925682,
-0.0330820195376873,
0.043483126908540726,
0.05092957243323326,
0.012664076872169971,
-0.016062797978520393,
0.020255690440535545,
0.05410626530647278,
-0.012971499003469944,
0.021604932844638824,
-0.06035717949271202,
-0.05475526675581932,
-0.033731020987033844,
0.013663197867572308,
0.019367583096027374,
0.04085296392440796,
0.035865895450115204,
-0.018342843279242516,
0.039315853267908096,
0.00887253973633051,
-0.030605563893914223,
0.0975552350282669,
0.015302781946957111,
0.027326395735144615,
-0.07282484322786331,
-0.03873516619205475,
-0.0023013949394226074,
0.028351135551929474,
0.0459766611456871,
-0.026540761813521385,
0.08607815206050873,
-0.039554957300424576,
-0.016139652580022812,
0.011092809028923512,
-0.014927043579518795,
0.014218265190720558,
0.014850188046693802,
0.008761526085436344,
-0.02433757111430168,
-0.05888838320970535,
0.05489189922809601,
-0.016062797978520393,
-0.0002935452794190496,
-0.008586466312408447,
-0.019213872030377388,
-0.02737763337790966,
0.01762552559375763,
0.02882934734225273,
0.0123395761474967,
0.04143364727497101,
0.008291853591799736,
-0.03801785036921501,
-0.07576243579387665,
-0.0038961463142186403,
-0.009675252251327038,
-0.017309565097093582,
-0.04116038605570793,
0.00591787276789546,
0.0061612483114004135,
0.030486010015010834,
-0.032842911779880524,
0.08396035432815552,
-0.04351728782057762,
-0.009308054111897945,
-0.03140827640891075,
-0.042799968272447586,
-0.028419451788067818,
0.015601664781570435,
0.030127352103590965,
0.012228562496602535,
0.025174442678689957,
0.022749224677681923,
-0.04877761751413345,
-0.03658321127295494,
-0.00218824646435678,
0.011237980797886848,
0.040101487189531326,
-0.003768053837120533,
0.0448494479060173,
0.007151830475777388,
0.01704484038054943,
-0.012886104173958302,
0.07589906454086304,
0.013005657121539116,
-0.03610499948263168,
0.02242472395300865,
0.009453224949538708,
-0.09530080854892731,
-0.02153661660850048,
-0.03186941146850586,
-0.03859853371977806,
-0.05530179291963577,
0.08177424222230911,
-0.035968370735645294,
-0.016626404598355293,
-0.052569154649972916,
-0.03880348429083824,
0.04993898794054985,
0.042150966823101044,
0.01032425370067358,
-0.03736884519457817,
0.02727515995502472,
0.07255158573389053,
-0.028077872470021248,
0.010290096513926983,
-0.0404089093208313,
-0.02983700856566429,
0.05844432860612869,
0.023159120231866837,
0.009325132705271244,
0.009393448941409588,
0.0516127310693264,
-0.01160517893731594,
0.03245009481906891,
-0.011161125265061855,
0.011374612338840961,
0.016711799427866936,
-0.05314984172582626,
-0.011255059391260147,
0.001119741820730269,
0.01447445061057806,
-0.05451615899801254,
0.030041957274079323,
0.046181607991456985,
0.026848183944821358,
0.0007408015080727637,
0.04300491511821747,
0.0336797833442688,
0.008407136425375938,
0.021143799647688866,
0.03388473019003868,
-0.07460106164216995,
0.012433510273694992,
0.0024849942419677973,
-0.018428238108754158,
-0.012254180386662483,
0.01861610822379589,
0.07391790300607681,
0.041911859065294266,
0.03525105118751526,
-0.0437563918530941,
0.020665587857365608,
-0.002380385296419263,
0.01829160563647747,
0.07542085647583008,
-0.01732664369046688,
0.005230443086475134,
0.011997995898127556,
-0.08361877501010895,
0.029546666890382767,
0.0246791522949934,
0.019248031079769135,
-0.005593371577560902,
-0.0008384720422327518,
-0.0008891753386706114,
-0.004675375763326883,
0.005008416250348091,
-0.07077536731958389,
-0.0673595666885376,
-0.008863999508321285,
0.042458388954401016,
-0.033508993685245514,
0.04256086051464081,
0.0070707048289477825,
0.00019320615683682263,
-0.004841895774006844,
0.019162636250257492,
-0.020955929532647133,
-0.037539638578891754,
0.014551306143403053,
-0.05567753314971924,
-0.04047722369432449,
-0.0976235494017601,
-0.018223291262984276,
-0.024183860048651695,
0.04655734822154045,
0.01830868609249592,
-0.03801785036921501,
-0.011015953496098518,
0.032501332461833954,
0.020836377516388893,
0.0008448766893707216,
0.03890595585107803,
-0.04061385616660118,
-0.026113787665963173,
0.03771042823791504,
-0.007843529805541039,
0.014773333445191383,
0.010956177487969398,
-0.011015953496098518,
0.013244763016700745,
-0.052808262407779694,
-0.056599799543619156,
0.03579757735133171,
0.045498449355363846,
0.021929433569312096,
0.014346358366310596,
-0.03120332956314087,
0.037642110139131546,
-0.04812861606478691,
0.00109412323217839,
-0.02298833057284355,
0.01368881668895483,
-0.036207474768161774,
0.027582582086324692,
-0.029034296050667763,
0.07548917084932327,
-0.02478162571787834,
-0.03504610434174538,
-0.004726612474769354,
-0.022271012887358665,
0.06083539128303528,
0.003360292874276638,
-0.02951250784099102,
-0.037403006106615067,
0.03212559595704079,
0.005354265682399273,
0.016848431900143623,
0.010588978417217731,
0.048401881009340286,
-0.015097834169864655,
-0.010631675831973553,
0.0179500263184309,
0.07774359732866287,
-0.02221977524459362,
-0.039554957300424576,
0.0029717455618083477,
0.024200940504670143,
-0.0011891252361238003,
0.025328153744339943,
-0.0016032909043133259,
0.06496850401163101,
-0.010375491343438625,
-0.04946077615022659,
0.016856970265507698,
0.06045965105295181,
0.044610340148210526,
0.07699212431907654,
0.04993898794054985,
-0.025157364085316658,
-0.006673618219792843,
0.003861988428980112,
-0.004957179073244333,
0.01649831235408783,
-0.021058404818177223,
0.00740374531596899,
-0.014594003558158875,
0.0274801068007946,
-0.009436146356165409,
-0.03829111158847809,
-0.0605962835252285,
-0.015840770676732063,
0.04659150540828705,
0.07794854789972305,
0.009846041910350323,
-0.008479722775518894,
0.017488893121480942,
0.022749224677681923,
0.041467808187007904,
0.07610401511192322,
0.01391938328742981,
0.0263699721544981,
-0.005708654876798391,
0.023705648258328438,
0.041228700429201126,
0.04433707892894745,
0.003059275448322296,
-0.03478991985321045,
-0.009743568487465382,
-0.02592591941356659,
-0.01726686581969261,
-0.0089835524559021,
0.002174369990825653,
0.11237980425357819,
-0.0024294874165207148,
-0.017258327454328537,
0.03268920257687569,
-0.049768198281526566,
-0.0013844663044437766,
0.008612084202468395,
0.017377879470586777,
-0.01211754884570837,
-0.020563112571835518,
0.04423460364341736,
-0.0063149593770504,
0.002512747421860695,
0.016993602737784386,
-0.04194601997733116,
0.05779532715678215,
-0.04614745080471039,
-0.01617381162941456,
-0.012578682042658329,
-0.014909964986145496,
-0.028795190155506134,
0.01694236509501934,
0.007963082753121853,
0.005063922610133886,
-0.02993948385119438,
-0.03133996203541756,
0.006075853481888771,
0.04242423176765442,
0.005431121215224266,
-0.03352607414126396,
0.030895907431840897,
-0.038427744060754776,
-0.02097300998866558,
-0.08143266290426254,
0.004517395049333572,
0.03682231903076172,
0.04286828264594078,
0.0493583045899868,
0.06107449531555176,
-0.06749619543552399,
-0.006221024785190821,
-0.07883665710687637,
-0.0061441692523658276,
0.024320492520928383,
-0.0258063655346632,
0.004427730105817318,
-0.03374809771776199,
-0.03648073971271515,
0.02075098268687725,
-0.06865756958723068,
0.06544671952724457,
0.002647244604304433,
-0.02983700856566429,
-0.09625723212957382
] |
722,988
|
pyopenstates.core
|
locate_legislators
|
Returns a list of legislators for the given latitude/longitude coordinates
Args:
lat: Latitude
long: Longitude
fields: An optional custom list of fields to return
Returns:
A list of matching :ref:`Legislator` dictionaries
|
def locate_legislators(lat, lng, fields=None):
"""
Returns a list of legislators for the given latitude/longitude coordinates
Args:
lat: Latitude
long: Longitude
fields: An optional custom list of fields to return
Returns:
A list of matching :ref:`Legislator` dictionaries
"""
return _get(
"people.geo/", params=dict(lat=float(lat), lng=float(lng), fields=fields)
)["results"]
|
(lat, lng, fields=None)
|
[
0.04968063160777092,
0.019113389775156975,
0.017508788034319878,
0.056560032069683075,
-0.020549554377794266,
0.0342019759118557,
0.02675520069897175,
-0.02632967010140419,
-0.006985784508287907,
0.009556694887578487,
0.008674606680870056,
-0.02482258528470993,
0.0014538943069055676,
-0.00231603579595685,
-0.027641721069812775,
-0.026631087064743042,
-0.11496403068304062,
-0.011755267158150673,
-0.02554953284561634,
-0.021294232457876205,
-0.03377644717693329,
-0.007127628196030855,
0.06865217536687851,
0.03234028071165085,
-0.000040689923480385914,
0.05418415740132332,
0.04333314299583435,
0.017597440630197525,
0.02780129574239254,
0.02737576514482498,
-0.023811951279640198,
-0.05216288939118385,
-0.003067362355068326,
-0.011037184856832027,
-0.042056549340486526,
-0.05535436421632767,
0.04925509914755821,
0.032819002866744995,
-0.045070722699165344,
0.03079773671925068,
-0.027145270258188248,
0.0013829725794494152,
0.01778360828757286,
-0.03602821007370949,
-0.019716225564479828,
-0.026489244773983955,
-0.01018612552434206,
-0.041311874985694885,
-0.048404041677713394,
-0.03583317622542381,
-0.01149817556142807,
-0.036950189620256424,
0.0015181669732555747,
-0.04163102060556412,
0.021790683269500732,
-0.02336869016289711,
0.018262330442667007,
0.024964427575469017,
0.04152463749051094,
-0.023102734237909317,
-0.009033648297190666,
-0.04191470891237259,
-0.04932602122426033,
-0.010700306855142117,
0.056524571031332016,
-0.006316461134701967,
-0.054716069251298904,
-0.019556650891900063,
-0.017969777807593346,
0.015452058985829353,
-0.018297791481018066,
0.01447688601911068,
0.010044281370937824,
0.01034569926559925,
-0.00314493291079998,
0.04812035337090492,
-0.032074324786663055,
-0.03601047769188881,
0.027216192334890366,
-0.026223288848996162,
-0.05741109326481819,
0.00723844300955534,
0.011613423936069012,
-0.0008743312209844589,
0.020567284896969795,
-0.012934340164065361,
-0.0005006072460673749,
-0.043581366539001465,
0.039432451128959656,
0.03904237970709801,
-0.0674465075135231,
0.000896494253538549,
0.014175469055771828,
-0.021719761192798615,
-0.04251754283905029,
0.02780129574239254,
0.006139157339930534,
0.0917726457118988,
0.003585977014154196,
0.024255212396383286,
0.06577984988689423,
-0.058368533849716187,
-0.01749992184340954,
0.05588627606630325,
0.007123195566236973,
-0.06436141580343246,
-0.033918287605047226,
-0.06514155864715576,
0.045460790395736694,
0.015611632727086544,
-0.09914849698543549,
-0.017544249072670937,
0.005518592428416014,
0.03684380650520325,
-0.04003528505563736,
0.05365224555134773,
0.059857890009880066,
-0.0037034410052001476,
0.010975128971040249,
-0.02265947312116623,
0.016507018357515335,
0.02521265484392643,
-0.05485791340470314,
0.026258748024702072,
0.00910456944257021,
0.03975159674882889,
0.016187870875000954,
0.03413105383515358,
0.006356354802846909,
0.004924623761326075,
0.0925527811050415,
0.009574425406754017,
-0.016436098143458366,
0.005390047095716,
0.031400568783283234,
0.02264174446463585,
0.01744673028588295,
0.0077703557908535,
0.015718014910817146,
-0.022145291790366173,
-0.009530100040137768,
-0.008111665956676006,
0.018705591559410095,
0.02445024624466896,
-0.007703866343945265,
0.018989278003573418,
-0.055070679634809494,
0.06634722650051117,
-0.010514137335121632,
-0.010753498412668705,
0.014468020759522915,
-0.01782793551683426,
0.03737572208046913,
0.026560166850686073,
-0.06783657521009445,
0.006990217138081789,
-0.030620431527495384,
0.016241062432527542,
0.0629429817199707,
-0.03523033857345581,
-0.011586828157305717,
0.009193222038447857,
-0.004097942728549242,
-0.03563813865184784,
0.001341970986686647,
-0.009077973663806915,
-0.03329772502183914,
-0.01856374740600586,
0.010877611115574837,
-0.019397076219320297,
-0.012109875679016113,
-0.006077100522816181,
0.013430791907012463,
-0.029361572116613388,
-0.044609732925891876,
0.0009912411915138364,
0.019716225564479828,
0.011418389156460762,
-0.003933936357498169,
0.004292977508157492,
-0.019503459334373474,
0.013927243649959564,
-0.006795182824134827,
-0.021258771419525146,
0.029875753447413445,
0.03129418566823006,
-0.004818241111934185,
-0.024397054687142372,
-0.04333314299583435,
-0.0027105375193059444,
-0.043865054845809937,
-0.0006876077386550605,
-0.01637404039502144,
0.003262396901845932,
-0.040992725640535355,
0.04514164477586746,
-0.05163097754120827,
0.03147149085998535,
-0.10418393462896347,
0.05560259148478508,
0.007708298973739147,
0.0795741155743599,
-0.031684257090091705,
-0.04790759086608887,
0.021046005189418793,
0.058723144233226776,
-0.030886387452483177,
-0.013413061387836933,
0.02553180232644081,
-0.02407790720462799,
0.06780111789703369,
-0.008089503273367882,
-0.046560078859329224,
0.006165752653032541,
0.004991112742573023,
-0.009778325445950031,
0.020549554377794266,
0.01996445097029209,
0.028404129669070244,
-0.03157787397503853,
0.0674465075135231,
-0.0921272486448288,
0.01589532010257244,
-0.034343820065259933,
-0.0011668831575661898,
-0.008089503273367882,
0.008838613517582417,
0.0009458069689571857,
-0.008080638013780117,
-0.0690067857503891,
-0.0009258602513000369,
-0.06670182943344116,
0.010983994230628014,
-0.07624080032110214,
0.022145291790366173,
0.009778325445950031,
0.04003528505563736,
0.058723144233226776,
0.03230481967329979,
0.05663095414638519,
-0.007446775678545237,
0.0429430715739727,
-0.023173656314611435,
-0.00929960422217846,
-0.017889991402626038,
0.009175491519272327,
-0.022003447636961937,
-0.036489199846982956,
-0.01781906932592392,
-0.038333162665367126,
-0.03037220612168312,
-0.00961875170469284,
0.03448566421866417,
-0.008116099052131176,
0.026950234547257423,
-0.060212500393390656,
-0.0225530918687582,
-0.012925474904477596,
0.021329693496227264,
-0.03904237970709801,
0.0020755671430379152,
0.054680608212947845,
-0.032446663826704025,
-0.013643556274473667,
0.023545995354652405,
0.025389958173036575,
0.04404235631227493,
-0.012721574865281582,
0.06038980185985565,
0.02521265484392643,
0.0839003399014473,
0.059538744390010834,
-0.05226927250623703,
0.0017132016364485025,
-0.006054937839508057,
0.0023093868512660265,
0.03893599659204483,
-0.013262352906167507,
-0.005944122560322285,
0.0474465973675251,
-0.0024711769074201584,
0.011143567971885204,
-0.04255300387740135,
0.022127561271190643,
-0.01773041859269142,
-0.009042513556778431,
0.014051356352865696,
0.09262370318174362,
-0.06326212733983994,
-0.0004526797274593264,
0.030230361968278885,
-0.014920146204531193,
0.013200296089053154,
-0.02934384159743786,
0.09070881456136703,
0.04113456979393959,
0.013679017312824726,
-0.017898857593536377,
-0.0018284493125975132,
-0.01890062540769577,
0.02851051278412342,
-0.019024739041924477,
0.022074369713664055,
0.002273926045745611,
0.028457321226596832,
-0.04485795646905899,
-0.04255300387740135,
-0.037233877927064896,
0.021010546013712883,
0.015132911503314972,
-0.019733954221010208,
0.016471557319164276,
0.04191470891237259,
-0.07985780388116837,
-0.05187920108437538,
-0.07886490225791931,
0.00407577957957983,
0.043191298842430115,
-0.027677182108163834,
0.010771228931844234,
-0.0008327755494974554,
0.046134546399116516,
0.0327303521335125,
0.02822682447731495,
0.00023063394473865628,
0.01297866553068161,
0.03367006406188011,
0.056914642453193665,
0.012109875679016113,
-0.02265947312116623,
-0.02450343780219555,
-0.03929060697555542,
-0.022535361349582672,
-0.021365152671933174,
0.010842150077223778,
0.04996431618928909,
0.04549625143408775,
-0.024538898840546608,
-0.03666650503873825,
-0.035053037106990814,
-0.0010333509417250752,
-0.018315522000193596,
-0.05163097754120827,
0.036116860806941986,
-0.016161276027560234,
0.033173613250255585,
0.005257068667560816,
0.010124068707227707,
0.0001058284324244596,
0.024343863129615784,
0.012393562123179436,
-0.05808484926819801,
-0.024556629359722137,
-0.007743760012090206,
0.05180828273296356,
0.04670191928744316,
-0.002621885621920228,
0.00658685015514493,
0.035425376147031784,
0.045425329357385635,
0.04308491572737694,
-0.11007043719291687,
0.033173613250255585,
-0.0578366219997406,
-0.042340237647295,
-0.03484027087688446,
0.0319502130150795,
-0.015664823353290558,
0.05443238466978073,
0.014663055539131165,
-0.010292507708072662,
-0.004144485108554363,
-0.01037229411303997,
0.0022761423606425524,
-0.025443149730563164,
0.019450267776846886,
0.08219821751117706,
0.05219835042953491,
-0.08801379054784775,
0.02118784934282303,
-0.047269292175769806,
-0.010700306855142117,
0.11858103424310684,
0.033847369253635406,
0.010540733113884926,
-0.02668427862226963,
-0.012136471457779408,
0.03228709101676941,
0.001327565056271851,
-0.004022588487714529,
0.03634735569357872,
-0.012154201045632362,
0.01780133880674839,
0.020638206973671913,
-0.0170123353600502,
0.016826165840029716,
0.02409563772380352,
-0.022109830752015114,
0.03599274903535843,
-0.08191452920436859,
-0.060318879783153534,
-0.003969397395849228,
-0.05865222215652466,
0.03379417583346367,
-0.005678166169673204,
0.05680825933814049,
0.008683471940457821,
-0.004326221998780966,
-0.00874996092170477,
-0.018014105036854744,
0.005788981448858976,
-0.009822651743888855,
0.06503517180681229,
-0.032021135091781616,
0.0036923594307154417,
0.03634735569357872,
-0.06496424973011017,
0.08460955321788788,
0.0013408628292381763,
0.013209161348640919,
0.001117570442147553,
-0.11347467452287674,
-0.0016245495062321424,
0.014069086872041225,
0.052091967314481735,
-0.004275246988981962,
-0.04070904105901718,
-0.052127428352832794,
0.0010477568721398711,
0.008962726220488548,
0.026524705812335014,
-0.0126417875289917,
0.013856321573257446,
-0.06379404664039612,
0.0127924969419837,
-0.029946675524115562,
-0.0488295704126358,
0.07581526786088943,
-0.011152433231472969,
-0.0664890706539154,
0.08290743082761765,
0.002610804047435522,
0.06088625639677048,
-0.027570798993110657,
0.005270366556942463,
-0.03712749481201172,
0.04145371541380882,
-0.0036369520239531994,
0.055035218596458435,
-0.013413061387836933,
-0.024361593648791313,
-0.030620431527495384,
0.06911316514015198,
0.02443251572549343,
0.02406017668545246,
0.01849282532930374,
-0.0729074776172638,
-0.007296066731214523,
-0.02407790720462799,
0.054006852209568024,
0.0234218817204237,
-0.024166559800505638,
0.0026817256584763527,
0.03925514593720436,
0.008949428796768188,
0.004066914785653353,
0.012074414640665054,
0.016888223588466644,
-0.021755222231149673,
-0.05553166940808296,
0.024538898840546608,
-0.021737491711974144,
0.042482081800699234,
-0.03684380650520325,
0.002424634527415037,
0.033900558948516846,
-0.019432537257671356,
0.017296021804213524,
0.02739349566400051,
-0.0474465973675251,
-0.04890049248933792,
-0.025691375136375427,
0.01742900162935257,
-0.011320872232317924,
0.028421860188245773,
-0.022322596982121468,
-0.1007796972990036,
-0.029946675524115562,
-0.09702084958553314,
0.011258815415203571,
-0.00582887465134263,
0.029184266924858093,
0.02154245786368847,
-0.04117003083229065,
0.026241017505526543,
0.023829681798815727,
0.0964534729719162,
-0.018634669482707977,
0.03670196607708931,
0.023439612239599228,
-0.03457431495189667,
-0.008023014292120934,
0.023545995354652405,
0.0230318121612072,
0.054999757558107376,
-0.04106364771723747,
0.05854583904147148,
0.033209074288606644,
-0.014822629280388355,
0.044716112315654755,
-0.04038989171385765,
-0.02258855290710926,
0.053545862436294556,
0.04046081379055977,
-0.06602807343006134,
-0.03804947808384895,
-0.0072827693074941635,
-0.00435946648940444,
-0.025336766615509987,
0.08780103176832199,
0.035762254148721695,
0.06184369698166847,
0.01317370031028986,
-0.03081546537578106,
0.052127428352832794,
-0.019733954221010208,
0.03854592889547348,
-0.03475162014365196,
-0.027606260031461716,
-0.0005150132346898317,
0.03225162997841835,
-0.04826219752430916,
0.010895341634750366,
-0.001792988507077098,
0.01259746216237545,
0.04673738032579422,
0.013998164795339108,
-0.023634646087884903,
0.0016511451685801148,
0.00007909428677521646,
0.031365107744932175,
-0.004275246988981962,
0.0041356198489665985,
0.015265889465808868,
0.03968067467212677,
-0.00812496431171894,
-0.04038989171385765,
-0.005385614465922117,
0.011835053563117981,
-0.0010028767865151167,
0.08687904477119446,
0.013634691014885902,
-0.017916588112711906,
-0.0206913985311985,
-0.04716291278600693,
0.05698556452989578,
-0.05269480124115944,
-0.000478721281979233,
-0.01594851166009903,
-0.023599186912178993,
0.01710098795592785,
-0.027251651510596275,
-0.024237481877207756,
0.025354497134685516,
-0.043865054845809937,
-0.03152468428015709,
0.049893394112586975,
0.01171094086021185,
-0.002949898364022374,
-0.013909513130784035,
-0.00016816193237900734,
0.04996431618928909,
-0.0185282863676548,
-0.003989343997091055,
0.007929929532110691,
0.007296066731214523,
0.0011369630228728056,
-0.06485787034034729,
0.021755222231149673,
-0.054999757558107376,
-0.0035061901435256004,
0.00020902500546071678,
-0.07326208800077438,
-0.002240681555122137,
0.01671978458762169,
0.045070722699165344,
-0.023882873356342316,
-0.00836432445794344,
-0.024361593648791313,
-0.0008200317970477045,
0.04968063160777092,
0.02741122618317604,
-0.025372227653861046,
0.0018062862800434232,
-0.03608139976859093,
0.01998218148946762,
-0.04709199070930481,
-0.00584660517051816,
-0.035354454070329666,
-0.004769482184201479,
-0.07390037924051285,
-0.01921977289021015,
-0.022801317274570465,
-0.06780111789703369,
0.055106136947870255,
-0.011418389156460762,
0.020514093339443207,
-0.009405986405909061,
-0.0311700738966465,
-0.0006116994190961123,
-0.0026063714176416397,
-0.019148850813508034,
0.058723144233226776,
-0.018262330442667007,
-0.021010546013712883,
-0.05925505608320236,
0.04712745174765587,
0.009193222038447857,
0.023829681798815727,
-0.007792518474161625,
-0.03897145763039589,
-0.028404129669070244,
0.063723124563694,
0.020531823858618736,
-0.01600170135498047,
-0.03586863353848457,
-0.008958294056355953,
0.00759305153042078,
0.035726793110370636,
0.019928989931941032,
-0.06797841936349869,
0.023829681798815727,
-0.012544270604848862,
-0.04755298048257828,
0.05131182819604874,
-0.011143567971885204,
0.021702030673623085,
-0.07780107110738754,
-0.03588636592030525,
-0.03182610124349594,
-0.1270207166671753,
0.09865204244852066,
-0.00752212991937995,
-0.03604593873023987,
-0.008089503273367882,
-0.024308402091264725,
0.01187051460146904,
0.020141754299402237,
0.02895377203822136,
-0.03918422386050224,
-0.01499106828123331,
0.09432582557201385,
-0.017632899805903435,
0.0033665630035102367,
-0.01959211193025112,
-0.029414763674139977,
-0.046560078859329224,
0.026613356545567513,
0.027216192334890366,
0.015744611620903015,
0.04038989171385765,
-0.009884707629680634,
0.058439455926418304,
-0.062481991946697235,
-0.034272897988557816,
0.0355849489569664,
0.023226847872138023,
0.03494665399193764,
0.008444111794233322,
-0.0006288757431320846,
-0.040283508598804474,
-0.023599186912178993,
0.050283465534448624,
0.018989278003573418,
0.0370565727353096,
0.019450267776846886,
-0.0564536489546299,
-0.017561979591846466,
-0.02737576514482498,
0.016861626878380775,
-0.02675520069897175,
0.02778356522321701,
-0.03776578977704048,
0.011746401898562908,
-0.005713627208024263,
0.049467865377664566,
0.026613356545567513,
-0.010593924671411514,
0.05496429651975632,
0.04226931557059288,
0.010097472928464413,
0.015310215763747692,
0.02746441774070263,
0.042092010378837585,
0.02154245786368847,
0.02597506158053875,
-0.029769372195005417,
-0.01738467440009117,
0.0229431614279747,
0.019343886524438858,
0.03462750464677811,
0.018475094810128212,
0.003264613216742873,
0.07390037924051285,
-0.006281000562012196,
-0.0142641207203269,
0.008949428796768188,
0.018758781254291534,
-0.047304753214120865,
0.021223310381174088,
0.003535002004355192,
-0.02003537304699421,
0.022694934159517288,
-0.04975155368447304,
-0.00436611520126462,
-0.04180832579731941,
0.04968063160777092,
-0.008967158384621143,
0.010336834006011486,
-0.005057601723819971,
0.09205632656812668,
-0.009778325445950031,
0.04226931557059288,
0.008129396475851536,
-0.01354603935033083,
-0.012508809566497803,
-0.008869641460478306,
0.011764132417738438,
-0.06035434082150459,
-0.00836875755339861,
-0.05187920108437538,
-0.017145313322544098,
-0.07014153152704239,
0.055779892951250076,
-0.01710098795592785,
-0.020549554377794266,
-0.017109854146838188,
0.035762254148721695,
0.010655981488525867,
-0.019858067855238914,
0.05276572331786156,
0.015106315724551678,
0.024166559800505638,
-0.011081511154770851,
-0.0355849489569664,
0.015124046243727207,
-0.007739327382296324,
0.011976897716522217,
-0.019503459334373474,
-0.009574425406754017,
0.019007008522748947,
0.0055762166157364845,
0.017242832109332085,
-0.018386444076895714,
-0.017632899805903435,
-0.022801317274570465,
-0.01019498985260725,
-0.014379369094967842,
-0.03758848458528519,
-0.00874996092170477,
0.03734026104211807,
0.01932615600526333,
-0.05666641518473625,
-0.0051772817969322205,
0.017508788034319878,
-0.030602701008319855,
-0.023670107126235962,
0.007189684547483921
] |
722,989
|
pyopenstates.core
|
search_bills
|
Find bills matching a given set of filters
For a list of each field, example values, etc. see
https://v3.openstates.org/docs#/bills/bills_search_bills_get
|
def search_bills(
jurisdiction=None,
identifier=None,
session=None,
chamber=None,
classification=None,
subject=None,
updated_since=None,
created_since=None,
action_since=None,
sponsor=None,
sponsor_classification=None,
q=None,
# control params
sort=None,
include=None,
page=1,
per_page=10,
all_pages=True,
# alternate names for other parameters
state=None,
):
"""
Find bills matching a given set of filters
For a list of each field, example values, etc. see
https://v3.openstates.org/docs#/bills/bills_search_bills_get
"""
uri = "bills/"
args = {}
jurisdiction = _alt_parameter(state, jurisdiction, "state", "jurisdiction")
if jurisdiction:
args["jurisdiction"] = jurisdiction
if session:
args["session"] = session
if chamber:
args["chamber"] = chamber
if classification:
args["classification"] = classification
if subject:
args["subject"] = subject
if updated_since:
args["updated_since"] = updated_since
if created_since:
args["created_since"] = created_since
if action_since:
args["action_since"] = action_since
if sponsor:
args["sponsor"] = sponsor
if sponsor_classification:
args["sponsor_classification"] = sponsor_classification
if q:
args["q"] = q
if sort:
args["sort"] = sort
if include:
args["include"] = include
results = []
if all_pages:
args["per_page"] = 20
args["page"] = 1
else:
args["per_page"] = per_page
args["page"] = page
resp = _get(uri, params=args)
results += resp["results"]
if all_pages:
while resp["pagination"]["page"] < resp["pagination"]["max_page"]:
args["page"] += 1
sleep(1)
resp = _get(uri, params=args)
results += resp["results"]
return results
|
(jurisdiction=None, identifier=None, session=None, chamber=None, classification=None, subject=None, updated_since=None, created_since=None, action_since=None, sponsor=None, sponsor_classification=None, q=None, sort=None, include=None, page=1, per_page=10, all_pages=True, state=None)
|
[
0.035626232624053955,
-0.028957370668649673,
-0.08943706005811691,
-0.05133432522416115,
-0.030319446697831154,
-0.019812006503343582,
-0.05628732591867447,
-0.03919947147369385,
-0.02952342852950096,
-0.04383406415581703,
-0.08306891471147537,
0.010560506954789162,
-0.01428410317748785,
0.009145364165306091,
-0.01332003716379404,
0.008928670547902584,
0.03069092147052288,
0.02780756726861,
-0.0017656125128269196,
-0.01582307182252407,
0.023385243490338326,
0.010118274949491024,
0.0102420998737216,
0.11505115777254105,
-0.015310082584619522,
-0.033043596893548965,
0.008857913315296173,
-0.007557750213891268,
-0.008473170921206474,
0.058940719813108444,
0.07825742661952972,
-0.000011669058949337341,
-0.001400770852342248,
-0.04641670361161232,
-0.05596892163157463,
-0.00214261538349092,
0.08703131973743439,
0.023898232728242874,
-0.012621309608221054,
0.024747319519519806,
-0.023933611810207367,
-0.019033677875995636,
0.08759737759828568,
0.002730784472078085,
-0.0025561025831848383,
0.0031840726733207703,
-0.01216138806194067,
-0.015849605202674866,
0.017936941236257553,
0.04004855826497078,
-0.009260344319045544,
0.025914812460541725,
-0.01825534924864769,
-0.023579826578497887,
0.0041989958845078945,
0.006637906655669212,
-0.03548472002148628,
-0.012179077602922916,
0.050945162773132324,
0.0045638373121619225,
0.006593683734536171,
-0.0038695326074957848,
0.05897609889507294,
-0.02165169268846512,
-0.009286878630518913,
0.025561027228832245,
0.015584265813231468,
0.040473099797964096,
-0.025879433378577232,
-0.040225449949502945,
0.04655821621417999,
0.03295515105128288,
0.00690324604511261,
0.034405674785375595,
-0.06852831691503525,
-0.0214924905449152,
0.02715306356549263,
-0.01885678619146347,
-0.045284587889909744,
-0.024198951199650764,
0.08405951410531998,
-0.025189552456140518,
-0.05419998988509178,
-0.0021205039229243994,
-0.010569351725280285,
-0.009614130482077599,
0.0429849810898304,
0.004753997083753347,
-0.0008960731793195009,
-0.01534546073526144,
-0.04033158719539642,
-0.005881689488887787,
0.026781588792800903,
-0.023473691195249557,
0.01709670014679432,
0.05476604774594307,
-0.03322048857808113,
0.05430612713098526,
-0.051192812621593475,
0.04171134904026985,
-0.04662897437810898,
-0.04302035644650459,
0.033998820930719376,
0.014912073500454426,
-0.034971728920936584,
-0.0036108267959207296,
-0.024393534287810326,
-0.021174082532525063,
0.05221879109740257,
-0.01982969604432583,
-0.07217231392860413,
-0.013948006555438042,
-0.056959521025419235,
-0.04970690980553627,
-0.013399638235569,
0.0793895423412323,
0.04355103522539139,
-0.002197894500568509,
-0.02269536256790161,
-0.04885782301425934,
0.01527470350265503,
-0.08512087166309357,
0.006363722961395979,
-0.043515659868717194,
0.08016787469387054,
0.008707554079592228,
-0.017308972775936127,
0.0013786591589450836,
0.00927803386002779,
0.023473691195249557,
-0.04425860941410065,
0.02032499574124813,
-0.013903783634305,
-0.033645033836364746,
0.04521382972598076,
-0.0024057438131421804,
-0.04132218658924103,
-0.00907460693269968,
-0.00016929204866755754,
0.08023862540721893,
0.006730775814503431,
-0.06962504982948303,
0.01936977542936802,
-0.03817349299788475,
-0.03422877937555313,
-0.03898720070719719,
0.014346015639603138,
-0.013912628404796124,
0.030407892540097237,
0.03725364804267883,
0.006009936798363924,
-0.016795983538031578,
-0.005939179565757513,
0.017061322927474976,
-0.01155110727995634,
-0.006147028878331184,
0.02639242447912693,
0.007314522285014391,
0.029364224523305893,
0.015646178275346756,
0.04539072513580322,
-0.0066290623508393764,
-0.021262528374791145,
-0.03277825936675072,
-0.06407061219215393,
0.03955325856804848,
-0.05218341201543808,
0.03803197667002678,
-0.014832471497356892,
-0.011851825751364231,
-0.0017324450891464949,
0.02492421306669712,
-0.05607505515217781,
0.010569351725280285,
-0.04358641430735588,
0.01218792237341404,
-0.032035306096076965,
0.006991692818701267,
0.048362523317337036,
-0.05384620651602745,
-0.07875272631645203,
-0.023792097344994545,
-0.0045638373121619225,
-0.0343702957034111,
-0.034918662160634995,
-0.01855606772005558,
-0.022076236084103584,
0.031115464866161346,
0.01734434999525547,
0.06145260110497475,
-0.012347125448286533,
-0.035980019718408585,
0.027825256809592247,
0.014089521020650864,
-0.09615898877382278,
-0.0033255869057029486,
0.01698172092437744,
-0.007562172133475542,
-0.02805521711707115,
0.03019562177360058,
0.001003314508125186,
0.023880545049905777,
-0.010613575577735901,
-0.014982830733060837,
0.026215530931949615,
0.016415663063526154,
-0.06813915073871613,
0.018414553254842758,
0.017724670469760895,
-0.09382400661706924,
-0.020059656351804733,
0.01577000319957733,
-0.03859803453087807,
0.006713086273521185,
-0.013903783634305,
0.05405847728252411,
0.012851270847022533,
-0.026923103258013725,
-0.00005462260014610365,
-0.05784398317337036,
0.0038009865675121546,
-0.061664871871471405,
-0.02089105360209942,
-0.016459885984659195,
-0.027117684483528137,
0.06046200171113014,
0.03877492994070053,
0.060143593698740005,
0.028886614367365837,
-0.07868196815252304,
0.0001604474091436714,
-0.0214924905449152,
0.04008393734693527,
0.013620754703879356,
-0.007814244367182255,
-0.09361173212528229,
-0.04425860941410065,
-0.002573791891336441,
0.0036041932180523872,
0.029718009755015373,
0.04974228888750076,
-0.028957370668649673,
0.05536748468875885,
0.018750648945569992,
0.008968470618128777,
-0.06240782141685486,
-0.016194546595215797,
-0.019652802497148514,
-0.009163053706288338,
-0.04638132452964783,
-0.06109881401062012,
0.004229952115565538,
0.045178450644016266,
-0.01400991901755333,
0.05090978369116783,
-0.05395234003663063,
-0.01901598833501339,
-0.009773333556950092,
-0.04570912942290306,
-0.025507958605885506,
0.016362594440579414,
-0.058268528431653976,
-0.00482917670160532,
0.0028833546675741673,
-0.0343702957034111,
0.05869306996464729,
-0.004475391004234552,
0.0070668719708919525,
0.0718185231089592,
-0.0032725189812481403,
-0.02372134104371071,
-0.036581456661224365,
-0.03362734243273735,
-0.011842980980873108,
-0.033043596893548965,
0.005634039640426636,
0.02826748788356781,
0.0480441153049469,
-0.061204951256513596,
-0.039871662855148315,
-0.04054385796189308,
-0.045532237738370895,
0.03341507166624069,
-0.015425062738358974,
0.051900383085012436,
-0.01860913448035717,
0.011444971896708012,
0.08023862540721893,
0.014602510258555412,
0.012117165140807629,
0.02448198013007641,
0.0063858344219625,
0.013753424398601055,
-0.023031458258628845,
-0.04004855826497078,
0.014814781956374645,
-0.010127119719982147,
-0.02407512627542019,
0.07118171453475952,
-0.03803197667002678,
-0.03654607757925987,
-0.01006520725786686,
0.07648850232362747,
-0.013762269169092178,
-0.08780964463949203,
-0.0021105536725372076,
0.022730739787220955,
-0.02067878283560276,
-0.04273733124136925,
0.009242654778063297,
0.01188720390200615,
-0.00715531874448061,
0.05947139859199524,
-0.06527348607778549,
-0.00226865173317492,
-0.11901355534791946,
-0.0773375853896141,
-0.025614093989133835,
-0.00735874567180872,
0.01790156401693821,
0.07556865364313126,
0.001191816059872508,
0.0002511050261091441,
0.025224929675459862,
-0.05830390751361847,
-0.05925912782549858,
-0.009826401248574257,
0.0793895423412323,
-0.003944712225347757,
-0.02244771085679531,
0.0014151433715596795,
0.012877804227173328,
0.04850403964519501,
-0.01855606772005558,
0.04436474293470383,
-0.004524036310613155,
-0.03311435505747795,
-0.023402933031320572,
0.012612464837729931,
-0.03093857131898403,
0.025454891845583916,
-0.05285560339689255,
0.0260386373847723,
0.03479483723640442,
0.06127570569515228,
0.0007960181683301926,
0.07022649049758911,
0.0252779982984066,
0.007301255129277706,
-0.02492421306669712,
0.05582740530371666,
0.04454163834452629,
0.03884568437933922,
0.06109881401062012,
0.026870034635066986,
-0.022359265014529228,
0.007641774136573076,
-0.0026091705076396465,
-0.004833599086850882,
0.021563246846199036,
-0.023296797648072243,
-0.04648745805025101,
-0.027736809104681015,
0.036793727427721024,
0.04503693804144859,
0.0047451527789235115,
0.004371466115117073,
-0.0480441153049469,
-0.023827476426959038,
-0.026569316163659096,
0.007685997523367405,
-0.023933611810207367,
-0.047053515911102295,
0.07188928127288818,
0.0025959035847336054,
0.04638132452964783,
0.016707535833120346,
-0.026940790936350822,
-0.0038717438001185656,
0.08306891471147537,
-0.026020947843790054,
-0.046699732542037964,
0.007265876512974501,
0.003504690947011113,
0.022129304707050323,
-0.0013156411005184054,
-0.0368998646736145,
0.016557177528738976,
-0.024694250896573067,
-0.004608060698956251,
0.017715826630592346,
-0.0470181368291378,
-0.016406819224357605,
0.03735978528857231,
-0.0793895423412323,
-0.018237659707665443,
0.07854045927524567,
-0.03322048857808113,
-0.0012338281376287341,
-0.032795947045087814,
0.034158021211624146,
-0.027648363262414932,
-0.021563246846199036,
0.0010442209895700216,
-0.07210155576467514,
-0.006704241503030062,
-0.01673407107591629,
-0.0004870083066634834,
-0.026109395548701286,
-0.014752869494259357,
0.039517879486083984,
-0.0252779982984066,
-0.036581456661224365,
0.01714092306792736,
-0.02448198013007641,
-0.006200097035616636,
0.030107174068689346,
0.01612379029393196,
-0.022164683789014816,
0.022323885932564735,
0.05674725025892258,
-0.08377648890018463,
0.06308001279830933,
0.04503693804144859,
-0.0126389991492033,
0.05122818797826767,
0.04454163834452629,
-0.03525475785136223,
-0.01342617254704237,
-0.04723041132092476,
0.021722450852394104,
0.013107765465974808,
-0.0803801417350769,
-0.012479795143008232,
0.01775120384991169,
0.016822516918182373,
-0.02755991742014885,
-0.004554992541670799,
0.04984842613339424,
-0.02372134104371071,
-0.006425635423511267,
-0.003927022684365511,
0.0328667052090168,
-0.006461014039814472,
-0.013974540866911411,
0.005527903791517019,
0.05228954553604126,
-0.024588115513324738,
0.03697061911225319,
-0.0037169624119997025,
0.02356213703751564,
-0.09155977517366409,
0.03115084394812584,
0.01961742527782917,
0.014567132107913494,
-0.04050847887992859,
0.03249523043632507,
0.023031458258628845,
0.0050945160910487175,
0.0027396290097385645,
0.05335090309381485,
-0.01627414859831333,
0.041286807507276535,
0.05232492461800575,
-0.04609829559922218,
0.057419441640377045,
0.012249834835529327,
-0.033397383987903595,
0.021103326231241226,
0.029806457459926605,
-0.0018982820911332965,
0.0389518216252327,
0.0022907634265720844,
0.0029718009755015373,
0.04514307156205177,
0.021209461614489555,
-0.019847385585308075,
-0.022536158561706543,
-0.0026556048542261124,
-0.00432282080873847,
-0.004585948772728443,
-0.024552736431360245,
-0.022943012416362762,
-0.0001673572842264548,
-0.012603620998561382,
-0.07401199638843536,
0.033450450748205185,
0.03601539880037308,
0.032849013805389404,
-0.034653324633836746,
-0.04631056636571884,
0.02549026906490326,
0.06173563003540039,
-0.02851513959467411,
0.020148104056715965,
0.004687662236392498,
-0.008017671294510365,
0.04429398849606514,
0.017689291387796402,
0.0007938069757074118,
0.02165169268846512,
0.008225521072745323,
0.030920881778001785,
-0.013302347622811794,
-0.02128021791577339,
-0.04761957377195358,
0.03827962651848793,
-0.031469251960515976,
-0.005019336473196745,
-0.000546156894415617,
0.0003637360641732812,
-0.002717517549172044,
-0.008884446695446968,
-0.012170232832431793,
-0.04072074964642525,
-0.04486004635691643,
-0.012824736535549164,
0.012064097449183464,
0.00844221469014883,
0.027825256809592247,
0.09778640419244766,
-0.001617464586161077,
0.016212236136198044,
-0.058020878583192825,
0.006509659346193075,
-0.016866739839315414,
0.023243729025125504,
0.009507994167506695,
-0.03884568437933922,
-0.013258124701678753,
-0.04036696255207062,
0.014885539188981056,
-0.02533106692135334,
-0.01448753010481596,
-0.019705871120095253,
0.030832435935735703,
0.029116574674844742,
-0.024305086582899094,
0.0672193095088005,
0.018520688638091087,
-0.016849050298333168,
0.06311539560556412,
0.006372567266225815,
0.033344317227602005,
-0.03256598487496376,
0.03594464063644409,
-0.09078145027160645,
0.02908119559288025,
-0.012709756381809711,
0.004307342693209648,
0.0005638462025672197,
-0.007164163049310446,
-0.010250944644212723,
0.02715306356549263,
0.03249523043632507,
0.0017722459742799401,
-0.0018617979949340224,
-0.0014339382760226727,
0.009127674624323845,
0.026781588792800903,
0.0179546307772398,
-0.0027352068573236465,
-0.01099389512091875,
0.010737400501966476,
0.05805625766515732,
0.018060768023133278,
0.07670076936483383,
-0.006500815041363239,
0.021457111462950706,
-0.026109395548701286,
0.03169921040534973,
0.05724254995584488,
-0.010374769568443298,
0.05752557888627052,
0.010286323726177216,
-0.042348165065050125,
-0.014151433482766151,
-0.051546595990657806,
-0.00042039708932861686,
-0.0037987753748893738,
0.09071069210767746,
-0.018839096650481224,
-0.03969477117061615,
-0.03605077788233757,
0.038350384682416916,
0.022217750549316406,
-0.07309215515851974,
-0.026074016466736794,
-0.003663894720375538,
-0.0019049156690016389,
0.03849190101027489,
-0.019812006503343582,
-0.03205299749970436,
-0.009799867868423462,
-0.02083798684179783,
0.08717282861471176,
-0.048716310411691666,
-0.03442336246371269,
-0.026109395548701286,
-0.004718618467450142,
0.02380978688597679,
0.02407512627542019,
-0.001711438992060721,
0.004873400088399649,
0.02138635329902172,
0.01880371756851673,
0.004639016930013895,
-0.005399656482040882,
-0.008464326150715351,
0.0015323349507525563,
0.0020022066310048103,
-0.02589712291955948,
0.026215530931949615,
0.051405083388090134,
-0.01198449544608593,
-0.004024313762784004,
0.05391696095466614,
-0.021315596997737885,
0.07903575897216797,
-0.01814921386539936,
-0.014346015639603138,
-0.019705871120095253,
0.0338749960064888,
0.08122923225164413,
-0.013841871172189713,
-0.027542227879166603,
-0.004298497922718525,
-0.042701952159404755,
0.03803197667002678,
0.003955767955631018,
-0.00841568037867546,
0.04991918057203293,
0.07050951570272446,
-0.00039165199268609285,
-0.07344593852758408,
0.08512087166309357,
0.08802191913127899,
0.021917032077908516,
-0.042100515216588974,
-0.013956851325929165,
-0.028745099902153015,
-0.004983957856893539,
-0.00199115090072155,
0.04333876445889473,
0.01352346409112215,
-0.010472061112523079,
-0.03619229048490524,
0.021067947149276733,
0.01844993233680725,
0.046345945447683334,
-0.03254829719662666,
-0.006987270433455706,
-0.057313304394483566,
0.040579237043857574,
-0.023526757955551147,
-0.019122125580906868,
-0.000951352238189429,
0.04595677927136421,
0.023597516119480133,
0.00025359258870594203,
-0.0031973395962268114,
-0.04790260270237923,
0.0018474254757165909,
0.0019734615925699472,
-0.007314522285014391,
-0.017972320318222046,
0.002019895939156413,
-0.051440462470054626,
-0.015849605202674866,
0.039517879486083984,
0.02557871676981449,
0.04064999148249626,
0.045886024832725525,
-0.04570912942290306,
-0.03272518888115883,
0.03877492994070053,
-0.008950782008469105,
0.045178450644016266,
0.020466510206460953,
-0.008760621771216393,
0.04889320209622383,
-0.026127085089683533,
-0.025614093989133835,
0.04277270659804344,
0.08030938357114792,
0.007871734909713268,
-0.031186221167445183,
0.003188494825735688,
-0.033698100596666336,
0.018732959404587746,
0.007898269221186638,
-0.027736809104681015,
0.01820228062570095,
0.010914293117821217,
0.01489438395947218,
0.010012139566242695,
-0.025755608454346657,
0.0033012640196830034,
0.054836805909872055,
-0.00234604231081903,
0.0596482940018177,
0.06435364484786987,
0.035873882472515106,
0.00841568037867546,
-0.006567149888724089,
0.006147028878331184,
0.008924247696995735,
0.020112724974751472,
0.0753563866019249,
0.010498594492673874,
0.015283548273146152,
0.02609170600771904,
0.01301931869238615,
-0.00938416924327612,
0.051900383085012436,
0.00199115090072155,
-0.02255384810268879,
0.023279108107089996,
-0.04086226597428322,
0.017724670469760895,
0.0384211428463459,
-0.006452169269323349,
0.05586278438568115,
-0.022783808410167694,
0.030071796849370003,
-0.020395753905177116,
0.06591030210256577,
0.013638444244861603,
-0.014062986709177494,
0.024747319519519806,
0.030071796849370003,
0.031734589487314224,
-0.055898163467645645,
-0.03700599819421768,
0.0454968586564064,
-0.09396551549434662,
0.0009408491896465421,
-0.05349241942167282,
0.05547361820936203,
0.03155769780278206,
-0.004260908346623182,
-0.003144271671772003,
0.023279108107089996,
-0.027878323569893837,
-0.03311435505747795,
0.01814921386539936,
0.03139849379658699,
-0.09587596356868744,
0.013948006555438042,
-0.0333796925842762,
0.011215011589229107,
-0.023119904100894928,
0.029116574674844742,
-0.04432936757802963,
0.006996115203946829,
0.04595677927136421,
-0.011179632507264614,
-0.003630727296695113,
-0.06891748309135437,
-0.04910547286272049,
-0.014982830733060837,
0.03276056796312332,
0.010710866190493107,
-0.014575976878404617,
0.015646178275346756,
0.009561062790453434,
0.004046425689011812,
-0.017362039536237717
] |
722,990
|
pyopenstates.core
|
search_districts
|
Search for districts
Args:
state: The state to search in
chamber: the upper or lower legislative chamber
fields: Optionally specify a custom list of fields to return
Returns:
A list of matching :ref:`District` dictionaries
|
def search_districts(state, chamber):
"""
Search for districts
Args:
state: The state to search in
chamber: the upper or lower legislative chamber
fields: Optionally specify a custom list of fields to return
Returns:
A list of matching :ref:`District` dictionaries
"""
if chamber:
chamber = chamber.lower()
if chamber not in ["upper", "lower"]:
raise ValueError('Chamber must be "upper" or "lower"')
organizations = get_organizations(state=state)
for org in organizations:
if org["classification"] == chamber:
return org["districts"]
|
(state, chamber)
|
[
-0.008359475992619991,
0.020582767203450203,
0.007482163142412901,
-0.02496478706598282,
-0.019382711499929428,
0.024692047387361526,
0.006154829170554876,
-0.040583688765764236,
0.00029887742130085826,
-0.06749401986598969,
-0.056402601301670074,
0.06294835358858109,
-0.05989367142319679,
-0.02031002752482891,
-0.015882549807429314,
-0.014882504008710384,
-0.04549300670623779,
0.0055138906463980675,
-0.020091835409402847,
-0.06931228935718536,
-0.027201253920793533,
-0.02152826450765133,
0.011827818118035793,
0.0289286058396101,
-0.02023729681968689,
-0.05171147361397743,
0.008609487675130367,
-0.018964510411024094,
-0.006877589970827103,
0.0474930964410305,
0.03521980345249176,
-0.05040232464671135,
-0.0735306590795517,
0.022691955789923668,
-0.010273200459778309,
-0.012173288501799107,
0.11055055260658264,
0.03832903876900673,
-0.06411204487085342,
0.04992957413196564,
-0.03567437082529068,
-0.012600581161677837,
0.058220867067575455,
0.020982785150408745,
0.02341926097869873,
-0.016209838911890984,
-0.001456885365769267,
-0.0528024323284626,
-0.03443795070052147,
0.01498250849545002,
-0.04032913222908974,
-0.02496478706598282,
-0.008254925720393658,
-0.035383448004722595,
0.0727669894695282,
-0.03380155935883522,
0.005518435966223478,
0.0267830528318882,
0.1013137623667717,
0.057566288858652115,
-0.008986777625977993,
-0.015309796668589115,
0.028455857187509537,
-0.03851086646318436,
-0.053929757326841354,
0.026946697384119034,
-0.03134689852595329,
0.021819187328219414,
-0.015191609039902687,
-0.030765054747462273,
-0.01790991611778736,
0.005918454844504595,
0.02218284085392952,
0.03400156646966934,
0.03760173171758652,
0.038692694157361984,
-0.006632124073803425,
0.04578392952680588,
0.01038229651749134,
0.021710092201828957,
0.00886859092861414,
-0.037274446338415146,
-0.08371295034885406,
0.022946512326598167,
0.017564445734024048,
0.015591627918183804,
0.010336840525269508,
-0.01715533621609211,
0.007763994392007589,
-0.03196511045098305,
0.013309704139828682,
0.0014534761430695653,
0.028055839240550995,
0.0076639894396066666,
0.012818772345781326,
0.059639111161231995,
-0.03683806210756302,
0.044911161065101624,
-0.04651123657822609,
0.04516571760177612,
-0.00028623477555811405,
-0.017191700637340546,
0.09629534929990768,
-0.022419216111302376,
-0.05014776438474655,
-0.010327748954296112,
-0.034274306148290634,
-0.031292352825403214,
0.018655404448509216,
0.013418800197541714,
-0.10996870696544647,
-0.056657157838344574,
0.03854723274707794,
0.000005326950031303568,
-0.025582997128367424,
0.009882274083793163,
0.03601984307169914,
-0.029146797955036163,
-0.010655036196112633,
-0.019382711499929428,
0.020328208804130554,
0.007618532981723547,
-0.003445613430812955,
0.025473902001976967,
0.08545848727226257,
0.042583782225847244,
-0.06273016333580017,
-0.0012648310512304306,
-0.017600812017917633,
0.04138372465968132,
0.012455119751393795,
0.03883815556764603,
-0.034728873521089554,
-0.07334883511066437,
0.05240241438150406,
0.02243739739060402,
0.00033041296410374343,
-0.013182425871491432,
0.056075312197208405,
0.04207466542720795,
-0.015218883752822876,
-0.05116599425673485,
0.04156555235385895,
-0.02918316423892975,
0.03451068326830864,
0.06142101436853409,
-0.041165534406900406,
0.01925543323159218,
-0.01100050751119852,
0.04454750940203667,
-0.035910747945308685,
0.005509344860911369,
0.01799173839390278,
0.005318426992744207,
-0.06498481333255768,
-0.008191286586225033,
-0.048474960029125214,
0.019146336242556572,
0.06294835358858109,
0.03945636376738548,
-0.020546400919556618,
-0.002470568520948291,
-0.038692694157361984,
0.04152918606996536,
0.02263740636408329,
0.0032478768844157457,
-0.028328578919172287,
-0.011664173565804958,
0.013918823562562466,
-0.01294605154544115,
-0.04054732248187065,
0.011418708600103855,
-0.13636992871761322,
0.02309197373688221,
-0.01294605154544115,
0.030437767505645752,
-0.008523120544850826,
0.044911161065101624,
0.002897860947996378,
-0.04727490618824959,
-0.028074020519852638,
0.035201624035835266,
0.00749125424772501,
0.0130733298137784,
0.013136968947947025,
0.003752445802092552,
-0.026492130011320114,
0.0474930964410305,
0.010245926678180695,
0.03205602243542671,
-0.02627393789589405,
-0.043565645813941956,
0.005891180597245693,
-0.007313973270356655,
0.012091466225683689,
-0.019928190857172012,
-0.02751035988330841,
0.001209146692417562,
-0.05345701053738594,
0.019837278872728348,
0.002538753440603614,
-0.005077506881207228,
-0.007736720144748688,
0.01760990172624588,
0.020382758229970932,
0.058475423604249954,
-0.04960228502750397,
-0.034274306148290634,
0.030910516157746315,
-0.04014730453491211,
0.022946512326598167,
-0.019019057974219322,
0.03509252518415451,
-0.01038229651749134,
0.05520254373550415,
-0.045383911579847336,
0.03016502596437931,
-0.01287332084029913,
0.025855736806988716,
-0.051275089383125305,
0.030765054747462273,
-0.05538437142968178,
0.034747056663036346,
0.006327564362436533,
-0.021491900086402893,
-0.02205556258559227,
-0.03698352351784706,
0.008336747996509075,
-0.013573353178799152,
-0.07964003086090088,
-0.05014776438474655,
0.01788264326751232,
0.022728320211172104,
-0.05149328336119652,
0.01758262887597084,
-0.03683806210756302,
-0.021691909059882164,
0.01300059910863638,
0.07171239703893661,
-0.004413839895278215,
0.005177511367946863,
0.003036503680050373,
-0.013618809171020985,
-0.044729333370923996,
0.046474870294332504,
-0.034728873521089554,
-0.004668396897614002,
-0.03572892025113106,
-0.011409617029130459,
-0.014100650325417519,
-0.08000368624925613,
-0.035510726273059845,
-0.03192874416708946,
-0.018964510411024094,
0.03261968493461609,
-0.11207789182662964,
-0.04549300670623779,
0.04229285940527916,
0.01129142940044403,
-0.03361973166465759,
0.0024478400591760874,
-0.04992957413196564,
0.020200930535793304,
0.06254833936691284,
-0.03741990774869919,
0.032328762114048004,
0.045638468116521835,
-0.07018505036830902,
0.026710322126746178,
0.013046056032180786,
0.04487479478120804,
0.018428122624754906,
-0.003516071243211627,
-0.02483750879764557,
-0.05796630680561066,
0.05643896386027336,
0.01378245372325182,
-0.014800682663917542,
-0.044911161065101624,
0.027492176741361618,
-0.03585619851946831,
0.013846092857420444,
0.00760489609092474,
0.04512935131788254,
0.016782591119408607,
-0.011991461738944054,
0.004052459727972746,
-0.021782822906970978,
0.011873274110257626,
0.04523845016956329,
0.042329225689172745,
-0.05993003398180008,
0.0016796229174360633,
-0.016355298459529877,
-0.003693351987749338,
-0.013736996799707413,
0.04029276594519615,
-0.03138326480984688,
0.007241243030875921,
-0.038765422999858856,
0.01177326962351799,
0.018928145989775658,
0.043747469782829285,
0.024346577003598213,
0.012573306448757648,
0.003663805313408375,
0.022073743864893913,
-0.010873228311538696,
-0.008104919455945492,
-0.026964878663420677,
-0.05589348450303078,
-0.02303742617368698,
-0.019964557141065598,
-0.04778401926159859,
-0.028110386803746223,
-0.07898546010255814,
-0.06793040037155151,
-0.0014205200131982565,
-0.06207558885216713,
0.025182979181408882,
0.0032046930864453316,
0.017237158492207527,
0.048365864902734756,
0.04872952029109001,
-0.02349199168384075,
-0.00336606428027153,
0.024692047387361526,
0.07076689600944519,
0.05480252578854561,
0.04385656863451004,
-0.041020072996616364,
-0.03349245339632034,
0.013709723018109798,
0.005995730869472027,
0.0970226526260376,
-0.0034797058906406164,
0.02316470444202423,
-0.0221101101487875,
0.009782268665730953,
-0.01970999874174595,
0.020073652267456055,
0.014991600066423416,
0.010027734562754631,
0.004127462860196829,
0.054911620914936066,
-0.003484251443296671,
-0.018509944900870323,
0.0386563278734684,
0.014609764330089092,
0.013536987826228142,
0.006359383929520845,
0.025783006101846695,
0.030328670516610146,
0.04792948067188263,
0.010809589177370071,
0.05472979694604874,
0.025546632707118988,
0.04389293119311333,
0.00031478723394684494,
0.002636485267430544,
0.04992957413196564,
-0.05200239643454552,
-0.037274446338415146,
0.018237203359603882,
0.0009761813562363386,
0.006954865995794535,
-0.0030274123419076204,
-0.02932862378656864,
0.0469839833676815,
-0.03191056102514267,
0.00031308262259699404,
-0.03774719312787056,
-0.05694808065891266,
0.0328378789126873,
0.018100833520293236,
-0.007673081010580063,
0.010782315395772457,
-0.011673265136778355,
0.008068554103374481,
0.09811361134052277,
-0.07585804164409637,
-0.04138372465968132,
0.037456270307302475,
0.001764854067005217,
-0.0031660550739616156,
-0.022328302264213562,
-0.00021506672783289105,
0.06654851883649826,
-0.002105778781697154,
-0.012218745425343513,
0.017473531886935234,
-0.020091835409402847,
-0.014846138656139374,
0.06058461219072342,
-0.021837370470166206,
-0.004327472299337387,
0.014164289459586143,
-0.03920180723071098,
0.034874334931373596,
-0.006550301797688007,
-0.007482163142412901,
-0.021037332713603973,
-0.026292121037840843,
0.01239148061722517,
-0.050365958362817764,
0.015882549807429314,
-0.0045161172747612,
-0.022219205275177956,
0.0039842743426561356,
-0.034874334931373596,
0.03872905671596527,
-0.022019196301698685,
0.007377612870186567,
0.0011085738660767674,
-0.019964557141065598,
-0.04949318990111351,
-0.001290968619287014,
0.05531163886189461,
-0.035074345767498016,
0.006645760964602232,
0.03358336538076401,
-0.0836402177810669,
0.022037379443645477,
0.0346197783946991,
0.03847450017929077,
0.0261466596275568,
-0.0002055492514045909,
-0.004297925159335136,
0.030437767505645752,
-0.02945590391755104,
0.019437259063124657,
0.07607623189687729,
-0.06363929808139801,
-0.05389339476823807,
0.013355161063373089,
-0.003977456130087376,
-0.01773718185722828,
0.04254741594195366,
0.02120097726583481,
-0.012418754398822784,
-0.01972818188369274,
0.026346668601036072,
-0.02465568110346794,
0.005482071079313755,
0.015300705097615719,
0.011955096386373043,
0.056002579629421234,
-0.03236512839794159,
0.08887682110071182,
-0.06320291012525558,
0.0020910054445266724,
-0.09193150699138641,
-0.05360247194766998,
0.03236512839794159,
0.01758262887597084,
0.04418385401368141,
-0.017091697081923485,
0.02523752674460411,
-0.04327472299337387,
0.036801695823669434,
0.037529002875089645,
-0.029492268338799477,
0.012191470712423325,
0.05014776438474655,
-0.025983015075325966,
0.018382664769887924,
0.00028495630249381065,
-0.0038751785177737474,
0.0568389818072319,
0.027001244947314262,
0.008177649229764938,
0.007077598944306374,
-0.03807448223233223,
-0.03261968493461609,
0.057384464889764786,
-0.012809681706130505,
0.006277562119066715,
-0.03898361325263977,
0.014327933080494404,
-0.022491944953799248,
0.04400203004479408,
0.06280289590358734,
-0.02574664168059826,
-0.003484251443296671,
-0.01685532182455063,
-0.06825768947601318,
0.012846047058701515,
0.010318657383322716,
0.0040410952642560005,
-0.04643850401043892,
-0.007900363765656948,
-0.04378383606672287,
0.002961500082165003,
-0.10015007108449936,
0.06680308282375336,
-0.003556982148438692,
-0.03883815556764603,
0.0011028917506337166,
0.007854907773435116,
0.007809450849890709,
0.008854953572154045,
0.03274696320295334,
-0.017800820991396904,
-0.012527850456535816,
-0.02549208328127861,
0.020073652267456055,
0.031946927309036255,
-0.015037056989967823,
0.05843905732035637,
0.019491806626319885,
0.02354653924703598,
-0.00895495805889368,
0.02374654822051525,
-0.01765535958111286,
-0.023055607452988625,
-0.030510496348142624,
-0.02180100418627262,
-0.008254925720393658,
-0.08240380138158798,
0.06749401986598969,
0.07109418511390686,
0.04222012683749199,
-0.01907360553741455,
0.041747380048036575,
0.056911714375019073,
0.003541072364896536,
0.0346197783946991,
-0.030783237889409065,
-0.053420644253492355,
-0.01073685847222805,
-0.009050416760146618,
-0.03203783929347992,
-0.000017871918316814117,
0.05454796925187111,
0.031946927309036255,
0.033310625702142715,
0.06123918667435646,
0.009773178026080132,
-0.003004683880135417,
0.011782361194491386,
0.023728366941213608,
-0.0381472110748291,
0.015155243687331676,
0.0576026551425457,
0.020510036498308182,
0.02198283188045025,
-0.05662079155445099,
-0.06869407743215561,
-0.006300290580838919,
0.0432019904255867,
0.030146844685077667,
-0.010891411453485489,
0.004445659462362528,
-0.039674557745456696,
0.06647579371929169,
0.014809773303568363,
-0.049456823617219925,
-0.00366607797332108,
-0.0015682540833950043,
-0.003250149777159095,
-0.001865995116531849,
-0.042511049658060074,
0.007982186041772366,
0.04523845016956329,
0.033056069165468216,
0.0005548550980165601,
0.038365405052900314,
-0.007827633991837502,
-0.011373251676559448,
0.005686625838279724,
-0.013136968947947025,
0.032528772950172424,
-0.06698490679264069,
0.08298564702272415,
-0.03178328275680542,
0.03392883762717247,
-0.006268470548093319,
-0.06971230357885361,
0.07607623189687729,
-0.031565092504024506,
0.004143372643738985,
-0.05585712194442749,
-0.05040232464671135,
0.03431067243218422,
-0.004384293220937252,
0.060620974749326706,
-0.0024205660447478294,
-0.026164842769503593,
-0.012773316353559494,
-0.03380155935883522,
0.057384464889764786,
-0.027874011546373367,
0.014027919620275497,
0.008041279390454292,
-0.04040186107158661,
0.054584335535764694,
-0.044329315423965454,
0.012627854943275452,
0.006836678832769394,
-0.0330924354493618,
-0.0046729426831007,
0.013764270581305027,
0.010073191486299038,
-0.030565045773983,
0.06309381872415543,
0.025710275396704674,
0.08778586238622665,
0.014100650325417519,
-0.011782361194491386,
0.004627486225217581,
-0.04189284145832062,
-0.049856845289468765,
0.051093265414237976,
0.03749263659119606,
-0.025783006101846695,
-0.013155152089893818,
0.0533115491271019,
-0.01790991611778736,
0.008427660912275314,
0.04392929747700691,
-0.019182702526450157,
-0.0264012161642313,
0.052911531180143356,
0.05385702848434448,
0.009800451807677746,
-0.0517842061817646,
0.0034251578617841005,
-0.01912815496325493,
0.02483750879764557,
-0.024182932451367378,
-0.010991415940225124,
0.035510726273059845,
-0.005113872233778238,
-0.003927453886717558,
-0.047129444777965546,
0.05418431758880615,
0.047456733882427216,
0.0008528802427463233,
-0.042911067605018616,
-0.04832949861884117,
-0.07876726984977722,
0.07062143832445145,
-0.002189873717725277,
0.03345608711242676,
-0.047638557851314545,
0.005918454844504595,
-0.006741219665855169,
0.012191470712423325,
-0.005563892889767885,
-0.0038615416269749403,
0.005959365516901016,
-0.005954819731414318,
-0.002010319847613573,
0.01446430291980505,
-0.006000276654958725,
-0.04280197247862816,
0.02354653924703598,
0.011136877350509167,
-0.003500161226838827,
0.02731034904718399,
0.04385656863451004,
0.02367381937801838,
-0.0031796919647604227,
-0.016964418813586235,
0.0020035014022141695,
-0.03683806210756302,
0.03371064364910126,
-0.03145599365234375,
-0.03945636376738548,
0.044911161065101624,
-0.0029546816367655993,
-0.00894132163375616,
0.02912861481308937,
-0.0389108844101429,
-0.04662033170461655,
0.017264431342482567,
0.004704762250185013,
-0.00617755763232708,
0.04131099581718445,
-0.0036865335423499346,
0.027546724304556847,
0.028001289814710617,
-0.0011273246491327882,
-0.016782591119408607,
0.07985822856426239,
0.04418385401368141,
-0.03054686263203621,
-0.0242556631565094,
0.035128891468048096,
-0.020710045471787453,
-0.037201713770627975,
-0.09382250905036926,
0.0019216794753447175,
-0.012318749912083149,
0.058548152446746826,
-0.005068415310233831,
0.02789219468832016,
-0.0025319349952042103,
0.01748262345790863,
0.048293136060237885,
0.020291844382882118,
0.06040278449654579,
-0.0072594257071614265,
0.026764869689941406,
-0.0017375800525769591,
-0.049274999648332596,
0.003568346379324794,
0.050620514899492264,
0.052693337202072144,
0.016291659325361252,
0.021837370470166206,
-0.04512935131788254,
-0.0018614494474604726,
0.015227974392473698,
0.04462023824453354,
-0.03465614467859268,
0.013446073979139328,
0.035910747945308685,
-0.01702805794775486,
-0.07753084599971771,
0.041165534406900406,
-0.0057184454053640366,
0.028455857187509537,
0.03345608711242676,
0.026255754753947258,
-0.04600211977958679,
-0.0027660366613417864,
0.01604619435966015,
-0.027746733278036118,
-0.021364621818065643,
-0.0485113263130188,
0.004454750567674637,
-0.04516571760177612,
-0.03503797948360443,
-0.04967501759529114,
-0.028455857187509537,
-0.008854953572154045,
-0.002266013529151678,
-0.032401494681835175,
-0.0013898367760702968,
0.016555309295654297,
0.041165534406900406,
0.06756675243377686,
-0.07985822856426239,
0.010709584690630436,
0.00582299567759037,
-0.0004863860667683184,
-0.04665669426321983,
-0.01255512423813343,
-0.061457376927137375,
0.01674622669816017,
0.03581983223557472,
0.045820292085409164,
0.013255156576633453,
-0.0346197783946991,
-0.050620514899492264,
-0.011464164592325687,
-0.05440250784158707,
-0.02140098623931408,
-0.015855276957154274,
-0.015455258078873158,
-0.030455948784947395,
-0.02574664168059826,
-0.04207466542720795,
0.023382896557450294,
0.004977501928806305,
0.016437120735645294,
0.01242784596979618
] |
722,991
|
pyopenstates.core
|
search_legislators
|
Search for legislators.
Returns:
A list of matching :ref:`Legislator` dictionaries
|
def search_legislators(
jurisdiction=None,
name=None,
id_=None,
org_classification=None,
district=None,
include=None,
):
"""
Search for legislators.
Returns:
A list of matching :ref:`Legislator` dictionaries
"""
params = _make_params(
jurisdiction=jurisdiction,
name=name,
id=id_,
org_classification=org_classification,
district=district,
include=include,
)
return _get("people", params)["results"]
|
(jurisdiction=None, name=None, id_=None, org_classification=None, district=None, include=None)
|
[
0.0524386428296566,
0.01678568124771118,
0.008609858341515064,
0.02122347801923752,
-0.0013198239030316472,
0.028841253370046616,
-0.02170180343091488,
-0.030807703733444214,
-0.000049687165301293135,
0.034085117280483246,
-0.02097545750439167,
-0.01396887470036745,
0.008290974423289299,
-0.01557215116918087,
-0.013756286352872849,
-0.03971872851252556,
-0.027654297649860382,
0.026644499972462654,
-0.06381215900182724,
-0.027512572705745697,
-0.02414657734334469,
-0.009601940400898457,
0.032171815633773804,
0.05548575520515442,
-0.004871833603829145,
-0.035732682794332504,
-0.0273885615170002,
0.034049686044454575,
0.008096101693809032,
0.02297733724117279,
-0.008707295171916485,
-0.019930226728320122,
-0.036884207278490067,
-0.02329622209072113,
-0.05537945777177811,
-0.03957700356841087,
0.058107685297727585,
0.012781918980181217,
0.035130348056554794,
-0.009734809398651123,
0.006709843408316374,
0.03939984366297722,
0.011462095193564892,
-0.033695369958877563,
-0.018955860286951065,
0.005084422416985035,
-0.04698219150304794,
-0.0059524946846067905,
-0.025156376883387566,
-0.022640738636255264,
-0.0471593476831913,
-0.02106403559446335,
-0.03259699419140816,
-0.00019501174392644316,
-0.005124283023178577,
-0.0002655979769770056,
0.007281176280230284,
0.01248960942029953,
0.07943745702505112,
-0.053182706236839294,
0.0021679659839719534,
-0.07079216837882996,
0.031162017956376076,
0.05236778035759926,
0.021914392709732056,
0.01563415676355362,
-0.0471593476831913,
0.02005423791706562,
-0.03645902872085571,
0.0018059000140056014,
0.016573091968894005,
0.02510322816669941,
0.019469618797302246,
0.011019201017916203,
0.005651326850056648,
0.06685926765203476,
0.01837124116718769,
-0.03525435924530029,
0.03371308743953705,
-0.01177212130278349,
-0.010762322694063187,
-0.03383709862828255,
-0.04071081057190895,
-0.0018424388254061341,
-0.0032862729858607054,
-0.023278506472706795,
-0.005584892816841602,
-0.04340360686182976,
0.025829574093222618,
-0.007577915210276842,
-0.036529891192913055,
0.015935324132442474,
0.025439828634262085,
-0.02854008600115776,
-0.019274745136499405,
0.062111448496580124,
-0.007608918007463217,
0.04836401715874672,
0.021081751212477684,
0.05208432674407959,
0.02662678435444832,
-0.021046319976449013,
0.04134858027100563,
0.02526267059147358,
-0.0033969965297728777,
-0.04471457377076149,
-0.05608808994293213,
-0.04007304459810257,
0.013339965604245663,
0.015226693823933601,
-0.09658630937337875,
0.01661738008260727,
0.03755740821361542,
0.014987531118094921,
-0.04400594159960747,
0.049143511801958084,
0.03419141098856926,
-0.022304140031337738,
-0.013233670964837074,
-0.017113422974944115,
0.02097545750439167,
0.014774941839277744,
-0.0002820680965669453,
-0.019558196887373924,
0.00147594406735152,
0.0035874410532414913,
-0.04375792294740677,
0.043368175625801086,
0.013898012228310108,
-0.019823933020234108,
0.05523773282766342,
0.03645902872085571,
-0.021949823945760727,
-0.05116310715675354,
0.029408158734440804,
0.01703370176255703,
-0.016263065859675407,
0.009876535274088383,
0.009283057413995266,
0.06763876229524612,
-0.040887970477342606,
-0.05555661767721176,
0.032171815633773804,
0.05297011509537697,
-0.021347487345337868,
-0.020071953535079956,
-0.03784085810184479,
0.07419359683990479,
0.0008116031531244516,
0.003755740588530898,
0.03394339233636856,
-0.02710510976612568,
0.04815142974257469,
0.023827694356441498,
-0.07646121084690094,
0.005943636875599623,
-0.035768114030361176,
-0.014836947433650494,
0.05017102509737015,
-0.021241193637251854,
0.005602608434855938,
-0.05204889550805092,
-0.01751202717423439,
-0.0025333533994853497,
-0.007861367426812649,
-0.00868957955390215,
-0.018601546064019203,
0.031002575531601906,
0.01509382575750351,
0.0010264067677780986,
0.0031024720519781113,
0.00732546579092741,
0.0021679659839719534,
-0.013269102200865746,
-0.06377673149108887,
0.015492429956793785,
0.00907046813517809,
0.002980676246806979,
0.05793052911758423,
0.0042252084240317345,
-0.030152220278978348,
0.015837887302041054,
-0.01929246075451374,
-0.04992300644516945,
0.02205611765384674,
-0.011134353466331959,
-0.03449258208274841,
0.03723852336406708,
0.03562638908624649,
0.02129434049129486,
-0.02970932610332966,
-0.048222292214632034,
0.013065371662378311,
0.031604912132024765,
-0.05545032396912575,
0.055025145411491394,
-0.016059335321187973,
0.016245350241661072,
-0.07816192507743835,
-0.0071660238318145275,
0.02885896898806095,
0.04903721809387207,
-0.018406672403216362,
-0.03181749954819679,
-0.0021989685483276844,
0.04035649821162224,
-0.07146536558866501,
-0.005797481629997492,
0.06207601726055145,
-0.08234284073114395,
0.03381938114762306,
0.006027786526829004,
-0.06661125272512436,
0.03566182032227516,
-0.014075169339776039,
0.009522220119833946,
-0.014916667714715004,
-0.015448140911757946,
0.05697387829422951,
-0.051375698298215866,
-0.019026724621653557,
-0.07298891991376877,
0.027990898117423058,
-0.0542810820043087,
0.0031866219360381365,
-0.030913997441530228,
0.02917785383760929,
-0.02338480018079281,
-0.00578419491648674,
-0.07553999125957489,
0.03167577460408211,
-0.09977515041828156,
0.05183630809187889,
-0.08383096754550934,
0.008543424308300018,
-0.062430329620838165,
-0.0013463975628837943,
0.05679671838879585,
0.05824941024184227,
0.025120943784713745,
-0.0023584102746099234,
0.029815619811415672,
0.025918154045939445,
0.0018723341636359692,
0.005921491887420416,
-0.010275139473378658,
-0.010496586561203003,
-0.0342622771859169,
-0.0030006065499037504,
-0.037805426865816116,
-0.056619562208652496,
-0.012569330632686615,
-0.0010867509990930557,
-0.015501287765800953,
0.05569834262132645,
-0.07787847518920898,
-0.00877372920513153,
-0.0008354086894541979,
0.009699377231299877,
-0.000051555623940657824,
-0.003917396999895573,
0.04829315468668938,
-0.03259699419140816,
0.011143211275339127,
-0.03562638908624649,
0.01527098286896944,
0.000014956321138015483,
-0.01412831712514162,
0.06476881355047226,
-0.004938267637044191,
-0.049745846539735794,
0.035325221717357635,
-0.04234066233038902,
-0.0049338387325406075,
-0.023880841210484505,
0.004681388847529888,
0.013304534368216991,
0.004907264839857817,
-0.01808778941631317,
0.011851841583848,
-0.03226039558649063,
-0.029992777854204178,
-0.01543042529374361,
0.020355405285954475,
0.010062550194561481,
0.028717244043946266,
-0.025811858475208282,
0.08567340672016144,
-0.07950831949710846,
0.015138114802539349,
0.026254752650856972,
-0.009655088186264038,
0.02885896898806095,
-0.03695506975054741,
0.03066597692668438,
0.018353525549173355,
0.06048159673810005,
-0.02361510507762432,
0.043368175625801086,
-0.030683692544698715,
0.004628241527825594,
-0.006793993059545755,
0.06809937208890915,
-0.021967539563775063,
-0.05052534118294716,
-0.04864747077226639,
-0.02361510507762432,
-0.00867629237473011,
-0.05020645633339882,
0.05863915756344795,
-0.031888365745544434,
-0.01591760851442814,
0.01716656982898712,
-0.0929723009467125,
-0.048257723450660706,
-0.10480642318725586,
0.008605428971350193,
-0.005013559479266405,
0.005491884890943766,
-0.007453904952853918,
0.032933592796325684,
0.065831758081913,
0.009752525016665459,
-0.0233316533267498,
-0.005961352493613958,
-0.04411223530769348,
0.06285551190376282,
0.05853286385536194,
-0.0011814195895567536,
-0.01697169616818428,
-0.008299832232296467,
-0.025050081312656403,
-0.004200849216431379,
-0.055025145411491394,
0.02593586966395378,
0.04223436489701271,
0.06423734128475189,
0.017529742792248726,
0.01528869941830635,
-0.021985255181789398,
-0.013862580992281437,
-0.043297313153743744,
-0.03275643661618233,
0.039647866040468216,
0.027477139607071877,
0.0453169085085392,
-0.014881236478686333,
0.090137779712677,
-0.008933170698583126,
-0.02494378760457039,
0.013570270501077175,
0.013942301273345947,
-0.00031168662826530635,
0.03950614109635353,
0.028274349868297577,
0.00907046813517809,
0.002743727993220091,
0.025067796930670738,
0.0299041997641325,
0.054706260561943054,
0.03206552192568779,
-0.12223873287439346,
-0.03486461192369461,
-0.013534839265048504,
-0.00559375062584877,
0.0024757771752774715,
-0.0017483239062130451,
-0.053501587361097336,
0.05704474076628685,
-0.02170180343091488,
-0.016511086374521255,
-0.006147367879748344,
-0.030329378321766853,
0.0116658266633749,
0.008406126871705055,
0.005026846192777157,
0.09708235412836075,
0.022711601108312607,
-0.06522942334413528,
0.06133195385336876,
-0.037415679544210434,
-0.012595904059708118,
0.10012946277856827,
0.021967539563775063,
0.014535779133439064,
-0.04836401715874672,
0.00015376723604276776,
0.006736416835337877,
-0.005531745497137308,
0.03674248233437538,
0.03390796110033989,
-0.04166746139526367,
0.005159714259207249,
0.06129652261734009,
-0.03601613640785217,
0.02949673682451248,
0.010638312436640263,
-0.03505948558449745,
-0.025439828634262085,
-0.008671863935887814,
-0.011479810811579227,
-0.02209155075252056,
-0.01667938567698002,
0.009212194010615349,
-0.0014859092188999057,
0.04099426418542862,
0.03443943336606026,
0.020426269620656967,
-0.03245526924729347,
0.011143211275339127,
0.03443943336606026,
0.017644895240664482,
-0.010062550194561481,
0.02141835168004036,
-0.0022631881292909384,
0.03590984269976616,
-0.026130743324756622,
0.07383927702903748,
-0.032561562955379486,
0.05325356870889664,
0.021436067298054695,
-0.11522328853607178,
0.03957700356841087,
0.07181968539953232,
-0.00295188813470304,
0.051978033035993576,
-0.004096768796443939,
-0.024394597858190536,
-0.006687698420137167,
-0.08496477454900742,
0.01248960942029953,
0.04315558448433876,
0.02462490275502205,
-0.05665499344468117,
0.003574154106900096,
-0.014686362817883492,
-0.06016271188855171,
0.061792563647031784,
-0.0055007426999509335,
-0.0819176658987999,
0.05856829509139061,
-0.023951705545186996,
0.02701652981340885,
-0.018424388021230698,
0.003443500492721796,
-0.010239708237349987,
0.03365993872284889,
0.03222496435046196,
0.029195569455623627,
-0.023650536313652992,
0.022764747962355614,
-0.045458633452653885,
0.0697646513581276,
0.0381951741874218,
-0.006032215431332588,
0.04414767026901245,
-0.007604489102959633,
-0.010691460222005844,
0.012028999626636505,
0.032721005380153656,
0.0450688898563385,
-0.0542810820043087,
0.031286027282476425,
0.07029612362384796,
-0.0015445926692336798,
0.01471293717622757,
0.018477534875273705,
-0.03334105759859085,
-0.02177266590297222,
-0.03491775691509247,
0.053218137472867966,
0.005204003769904375,
0.034811463207006454,
-0.030081355944275856,
0.03086085058748722,
0.04744280129671097,
-0.005026846192777157,
-0.009832245297729969,
0.02993963100016117,
-0.01722857542335987,
0.028150338679552078,
-0.037486542016267776,
0.0060189287178218365,
-0.0018900498980656266,
0.010381434112787247,
-0.0892874225974083,
-0.046131834387779236,
-0.00000824803464638535,
-0.05892261117696762,
-0.005979068111628294,
-0.014898952096700668,
0.051340267062187195,
0.031091155484318733,
-0.04340360686182976,
0.06487510353326797,
-0.010735749267041683,
0.04524604603648186,
-0.029815619811415672,
0.016502227634191513,
0.009610798209905624,
-0.015386135317385197,
-0.009637372568249702,
0.004606097005307674,
0.013180524110794067,
0.04124228283762932,
-0.018920429050922394,
0.05300554633140564,
-0.0033150610979646444,
-0.008512421511113644,
0.026591353118419647,
-0.040817104279994965,
-0.022445864975452423,
0.043297313153743744,
0.019558196887373924,
-0.04400594159960747,
-0.08588599413633347,
0.005912634078413248,
-0.0074937655590474606,
-0.03162262961268425,
0.048576608300209045,
0.04290756583213806,
0.049852143973112106,
0.009973972104489803,
-0.02714054100215435,
0.034049686044454575,
-0.03031166084110737,
0.05123397335410118,
-0.03082541935145855,
-0.040214769542217255,
0.011001485399901867,
0.0067275590263307095,
-0.03801801800727844,
-0.0033172755502164364,
0.01699827052652836,
-0.02818576991558075,
0.04744280129671097,
-0.024554040282964706,
-0.0003166691749356687,
-0.025404397398233414,
0.03645902872085571,
0.03342963382601738,
0.033004455268383026,
-0.011019201017916203,
0.018034640699625015,
0.029479021206498146,
-0.012037857435643673,
-0.08631116896867752,
0.025953585281968117,
-0.014872378669679165,
0.0000931461327127181,
0.06937491148710251,
0.01853068359196186,
-0.04000218212604523,
0.028717244043946266,
-0.04134858027100563,
0.005540603306144476,
-0.025847291573882103,
-0.021967539563775063,
-0.01388915441930294,
0.020869161933660507,
-0.004871833603829145,
-0.027831455692648888,
-0.0015844530425965786,
-0.02154236100614071,
0.04861203953623772,
-0.024323735386133194,
0.05020645633339882,
-0.021560076624155045,
-0.06650495529174805,
0.007458333857357502,
-0.024872923269867897,
0.0639893189072609,
-0.015554435551166534,
0.0579659603536129,
-0.06597348302602768,
0.029390443116426468,
-0.0018047927878797054,
-0.0421280711889267,
0.013375396840274334,
-0.05704474076628685,
0.028114907443523407,
0.019327891990542412,
-0.04152573645114899,
0.0028145909309387207,
0.04287213459610939,
0.032880447804927826,
-0.015324130654335022,
0.004645957611501217,
-0.06887886673212051,
-0.05739905685186386,
0.018548399209976196,
0.017299437895417213,
-0.054422806948423386,
0.01769804209470749,
-0.010337145067751408,
0.07568171620368958,
-0.04932067170739174,
-0.018707839772105217,
0.005456453189253807,
-0.018388956785202026,
-0.029443589970469475,
-0.015545577742159367,
-0.03479374945163727,
-0.028646379709243774,
0.0208160150796175,
0.008166964165866375,
0.030595114454627037,
-0.0068515692837536335,
-0.031799785792827606,
-0.017972636967897415,
-0.022587591782212257,
-0.020390836521983147,
0.06111936643719673,
-0.0727054700255394,
-0.011453237384557724,
-0.04386421665549278,
0.05959580838680267,
0.022250991314649582,
0.053182706236839294,
0.014836947433650494,
0.0006803958094678819,
-0.058462001383304596,
0.05736362561583519,
0.043935079127550125,
-0.0023517669178545475,
-0.06076505035161972,
-0.018406672403216362,
0.02710510976612568,
0.07146536558866501,
0.06476881355047226,
-0.04567122459411621,
0.05467082932591438,
0.0014836947666481137,
-0.028805822134017944,
0.03723852336406708,
0.056832149624824524,
0.05240321159362793,
-0.038655783981084824,
-0.018070073798298836,
-0.048930924385786057,
-0.12216786295175552,
0.05665499344468117,
0.008220111951231956,
0.01721971668303013,
0.006103078369051218,
0.02682165801525116,
0.009796814061701298,
0.03454572707414627,
0.008463703095912933,
0.02657363750040531,
-0.03341192007064819,
0.040533654391765594,
-0.012604761868715286,
0.006355528254061937,
-0.016484512016177177,
-0.07210313528776169,
-0.07922486960887909,
-0.00393289839848876,
-0.008804732002317905,
0.02586500719189644,
0.015244409441947937,
0.0015833458164706826,
-0.005722189787775278,
-0.020408552139997482,
0.0072413161396980286,
0.01837124116718769,
0.014642073772847652,
-0.022587591782212257,
0.023313937708735466,
0.019168449565768242,
-0.04464371129870415,
0.027884602546691895,
0.059702105820178986,
-0.00590377626940608,
-0.0026972240302711725,
0.004344789776951075,
-0.021808097139000893,
-0.008995176292955875,
0.013100802898406982,
-0.015492429956793785,
-0.002987319603562355,
0.0005890489555895329,
-0.0007352039683610201,
0.00732546579092741,
0.03947070986032486,
0.0038952522445470095,
0.02354424260556698,
-0.04907264932990074,
0.07121734321117401,
0.029762472957372665,
-0.026431910693645477,
0.05860372632741928,
0.025333533063530922,
0.010540875606238842,
0.051978033035993576,
-0.003467859700322151,
-0.0174411628395319,
-0.04063994809985161,
0.004964841064065695,
0.01161267887800932,
0.046131834387779236,
0.061225660145282745,
-0.00017037575889844447,
0.04659244418144226,
-0.005584892816841602,
0.04847031459212303,
0.014659789390861988,
0.01954048126935959,
0.020284542813897133,
0.0031622627284377813,
0.017644895240664482,
-0.005987926386296749,
0.02593586966395378,
-0.007467192132025957,
0.04290756583213806,
-0.03254384547472,
0.017210857942700386,
-0.026874804869294167,
0.017139995470643044,
-0.0024912783410400152,
0.10608195513486862,
-0.0022941906936466694,
0.04995843768119812,
0.007613346911966801,
0.0032131955958902836,
-0.015058394521474838,
-0.006196086294949055,
-0.044891729950904846,
-0.033730801194906235,
0.023685967549681664,
-0.020107384771108627,
0.03638816624879837,
-0.08801188319921494,
0.04499802365899086,
-0.005173001438379288,
-0.05002930015325546,
-0.0006488396320492029,
0.021648656576871872,
-0.024713482707738876,
-0.0039550429210066795,
-0.0044112238101661205,
0.0001649779878789559,
0.039258118718862534,
-0.03482918068766594,
0.014367479830980301,
0.012764203362166882,
-0.005518458783626556,
-0.022109266370534897,
-0.024802060797810555,
0.040250200778245926,
0.03957700356841087,
-0.028274349868297577,
0.017715757712721825,
-0.037203092128038406,
-0.024128861725330353,
0.01002711895853281,
-0.022304140031337738,
-0.020603425800800323,
-0.034687455743551254,
-0.017432305961847305,
0.002367268083617091,
0.029071558266878128,
-0.025439828634262085,
-0.07681552320718765,
0.04921437427401543,
-0.03791172057390213,
0.008632003329694271,
0.02354424260556698
] |
722,992
|
pyopenstates.core
|
set_api_key
|
Sets API key. Can also be set as OPENSTATES_API_KEY environment
variable.
|
def set_api_key(apikey):
"""Sets API key. Can also be set as OPENSTATES_API_KEY environment
variable."""
session.headers["X-Api-Key"] = apikey
|
(apikey)
|
[
-0.06621534377336502,
-0.051367055624723434,
-0.04895922541618347,
0.05195077136158943,
-0.021269172430038452,
0.0084091667085886,
-0.00996878370642662,
0.05344654619693756,
-0.015687381848692894,
0.0009211776778101921,
-0.024114789441227913,
-0.08850602060556412,
0.015559693798422813,
0.024224236607551575,
-0.004332271404564381,
-0.015267835929989815,
0.09127867221832275,
0.023403385654091835,
0.03431158885359764,
-0.032633401453495026,
0.010999408550560474,
0.006972676608711481,
-0.017693907022476196,
-0.016024842858314514,
-0.010962926782667637,
0.049725353717803955,
0.03660997375845909,
0.051622431725263596,
0.044581349939107895,
-0.0822310671210289,
-0.0004166961007285863,
-0.04447190463542938,
0.02291087433695793,
-0.018086092546582222,
-0.002033887431025505,
-0.010288003832101822,
0.014547310769557953,
-0.02280142717063427,
-0.11170875281095505,
-0.003383731935173273,
-0.003536501433700323,
0.021342135965824127,
0.0675651878118515,
-0.030207330361008644,
0.022710222750902176,
0.04968887194991112,
-0.030827529728412628,
0.03566143289208412,
0.03538781404495239,
0.023312179371714592,
-0.06026873365044594,
-0.003504579421132803,
0.02862035110592842,
-0.019755156710743904,
-0.03064511902630329,
0.0071368468925356865,
0.002574281068518758,
-0.034931786358356476,
-0.01939033344388008,
0.01607956737279892,
-0.011136217042803764,
0.005850846413522959,
-0.019590986892580986,
-0.011646969243884087,
0.06253063678741455,
0.009047606028616428,
-0.045785266906023026,
0.0342751070857048,
0.013735580258071423,
-0.02604835107922554,
0.00455800537019968,
0.014830048196017742,
-0.04352336376905441,
-0.028693316504359245,
-0.001509454450570047,
0.02511805295944214,
-0.11652441322803497,
0.026777995750308037,
-0.08317960798740387,
-0.024260718375444412,
0.030718082562088966,
-0.03239626809954643,
-0.03896307945251465,
0.026777995750308037,
-0.03431158885359764,
0.002416951349005103,
-0.0011982150608673692,
-0.01886134035885334,
0.039145492017269135,
0.025884181261062622,
0.013243068940937519,
0.00621110899373889,
-0.004724455997347832,
0.03228682279586792,
0.02973306179046631,
0.007611116394400597,
0.040385887026786804,
0.010333606973290443,
-0.022436603903770447,
0.004259306471794844,
-0.03325360268354416,
0.01586979441344738,
-0.0019438216695562005,
0.022473087534308434,
-0.003693831153213978,
-0.03721192851662636,
0.042538344860076904,
-0.01248606201261282,
0.030170848593115807,
0.03980217128992081,
-0.052023738622665405,
-0.08646301180124283,
-0.03445751592516899,
-0.00837724469602108,
-0.014702360145747662,
0.01268671452999115,
0.05304523929953575,
0.00923913810402155,
0.02292911522090435,
0.017192276194691658,
0.011783777736127377,
-0.027927188202738762,
0.027489401400089264,
0.04206407442688942,
0.03474937379360199,
0.00708668353036046,
0.05797034874558449,
0.07945841550827026,
0.045675817877054214,
-0.024753229692578316,
-0.05552603676915169,
0.019445057958364487,
-0.025263981893658638,
-0.016927780583500862,
0.008089946582913399,
0.0016895857406780124,
0.022965596988797188,
-0.0007666979799978435,
-0.022345399484038353,
0.01255902647972107,
-0.043632812798023224,
-0.031174112111330032,
0.040641263127326965,
-0.010780515149235725,
0.01955450512468815,
-0.01982812210917473,
-0.04936052858829498,
-0.01734732650220394,
0.016517354175448418,
-0.004254746250808239,
0.0345669649541378,
0.030754566192626953,
0.022199470549821854,
-0.0740225538611412,
-0.03856177255511284,
0.0064528039656579494,
0.0041635408997535706,
0.03593504801392555,
0.08514965325593948,
0.05187780782580376,
0.02168871834874153,
-0.006940754596143961,
0.0077479248866438866,
-0.05092926695942879,
-0.01968219317495823,
-0.026905683800578117,
-0.03896307945251465,
0.005928371101617813,
0.015614417381584644,
0.017064588144421577,
-0.006493846420198679,
-0.058116279542446136,
-0.03715720772743225,
-0.016444388777017593,
0.01802224852144718,
-0.04461783170700073,
-0.006767463870346546,
0.005153122823685408,
0.023914137855172157,
0.029131103307008743,
0.014656757935881615,
0.013525807298719883,
-0.0737306997179985,
0.017858078703284264,
-0.025811215862631798,
-0.004428037442266941,
0.014118644408881664,
0.04450838640332222,
-0.010844359174370766,
0.052315596491098404,
0.014519949443638325,
-0.016508232802152634,
0.032505713403224945,
-0.05315468832850456,
-0.02265549823641777,
-0.014519949443638325,
0.03173958882689476,
-0.08639004826545715,
-0.02550111711025238,
0.015203991904854774,
-0.03323535993695259,
0.02223595231771469,
0.00902936514467001,
0.013525807298719883,
0.06891503185033798,
-0.02010173909366131,
0.008149229921400547,
-0.06975412368774414,
0.004375593736767769,
0.04421652853488922,
0.022491328418254852,
-0.028857486322522163,
-0.007962258532643318,
-0.00867366325110197,
-0.04410708323121071,
-0.014547310769557953,
-0.02548287622630596,
0.014565551653504372,
0.05614623427391052,
-0.002822816837579012,
0.040750712156295776,
-0.026923926547169685,
0.011993550695478916,
-0.11564884334802628,
0.030207330361008644,
0.020977312698960304,
0.01717403531074524,
-0.029094621539115906,
-0.09186238795518875,
-0.05187780782580376,
0.005267129745334387,
0.002546919509768486,
-0.029404720291495323,
-0.015970120206475258,
-0.049579422920942307,
-0.10791459679603577,
-0.022327158600091934,
-0.006279513239860535,
0.010242401622235775,
-0.028419699519872665,
0.05545307323336601,
-0.012048274278640747,
0.034548722207546234,
0.0068267472088336945,
-0.09062199294567108,
0.018934305757284164,
-0.04534747824072838,
0.020648973062634468,
-0.015614417381584644,
-0.003504579421132803,
0.023512832820415497,
-0.07168769091367722,
-0.014255452901124954,
-0.0036550688091665506,
0.05727718770503998,
-0.04979831725358963,
-0.0406777486205101,
0.02170695923268795,
-0.01953626237809658,
-0.029878990724682808,
-0.03192199766635895,
0.08507668972015381,
-0.05140353739261627,
0.004505562130361795,
0.00322184176184237,
0.06807594001293182,
0.045675817877054214,
0.037102483212947845,
0.04950645938515663,
-0.013516685925424099,
0.08113659918308258,
0.015185751020908356,
-0.014492587186396122,
-0.004345952067524195,
0.04242889583110809,
-0.020813142880797386,
-0.034804098308086395,
0.023677002638578415,
-0.0054267398081719875,
-0.02141510136425495,
0.06121727451682091,
-0.046733807772397995,
0.034402795135974884,
0.077634297311306,
-0.0357891209423542,
-0.04246537759900093,
-0.026376690715551376,
0.045529890805482864,
-0.0010494356974959373,
-0.047426968812942505,
0.02468026429414749,
0.03080928884446621,
0.004874945152550936,
0.05443156883120537,
-0.06183747202157974,
-0.014656757935881615,
-0.030718082562088966,
0.016991624608635902,
0.048922743648290634,
-0.00447820033878088,
0.019499780610203743,
0.05559900030493736,
-0.042538344860076904,
-0.02309328503906727,
0.047281041741371155,
0.011072373017668724,
-0.010862600058317184,
0.016763608902692795,
-0.05906481668353081,
0.009786373004317284,
-0.00644368352368474,
0.028985174372792244,
-0.032615162432193756,
-0.03028029575943947,
-0.012495182454586029,
-0.07807208597660065,
-0.00950363464653492,
-0.029641855508089066,
0.025045087561011314,
0.03356369957327843,
0.015213112346827984,
-0.08507668972015381,
-0.009403308853507042,
0.011674330569803715,
0.03352721780538559,
-0.001901639043353498,
0.1103953942656517,
-0.04596767947077751,
-0.015769466757774353,
0.0007969099096953869,
-0.058809440582990646,
0.036555249243974686,
-0.020794901996850967,
0.02322097308933735,
-0.010561620816588402,
-0.03150245174765587,
-0.015960998833179474,
-0.005230647511780262,
0.018770135939121246,
0.04337743669748306,
-0.059903912246227264,
-0.02048480324447155,
-0.03338129073381424,
-0.00471989531069994,
-0.023312179371714592,
-0.03943734988570213,
-0.007661279756575823,
-0.01391799096018076,
0.014903012663125992,
-0.061655059456825256,
-0.008308839984238148,
0.0012586388038471341,
0.06643424183130264,
0.007962258532643318,
0.065412737429142,
-0.034421034157276154,
-0.02511805295944214,
-0.010370089672505856,
-0.008874315768480301,
-0.01715579442679882,
0.010680188424885273,
-0.028693316504359245,
-0.04264779016375542,
0.009603961370885372,
-0.054212674498558044,
0.005417619366198778,
-0.03246923163533211,
-0.04848495498299599,
0.032232098281383514,
0.0263037271797657,
0.010616344399750233,
-0.0035000192001461983,
-0.010014386847615242,
0.05589085817337036,
-0.006115342956036329,
0.07219844311475754,
-0.007875612936913967,
-0.03360018506646156,
-0.04848495498299599,
0.006699059624224901,
0.0711769387125969,
-0.0024397526867687702,
0.06548570096492767,
0.045529890805482864,
0.015906276181340218,
-0.02577473409473896,
-0.015787707641720772,
-0.04910515621304512,
0.07139582931995392,
0.032067928463220596,
0.0553436242043972,
0.032067928463220596,
0.053555991500616074,
0.058116279542446136,
-0.0009394187945872545,
-0.05195077136158943,
-0.019846362993121147,
-0.0406777486205101,
0.08792230486869812,
-0.01287824660539627,
0.0685502141714096,
0.026376690715551376,
0.004801980685442686,
-0.015404644422233105,
0.03947383165359497,
0.04501913860440254,
-0.03164838254451752,
-0.06333324313163757,
-0.027051614597439766,
-0.058408137410879135,
-0.0009570899419486523,
-0.043742258101701736,
-0.007091243751347065,
-0.012093877419829369,
0.011957068927586079,
0.017921922728419304,
0.012403976172208786,
0.06876910477876663,
0.02374996617436409,
0.0033654908183962107,
0.024880917742848396,
-0.0013521246146410704,
-0.0033107672352343798,
0.036135703325271606,
-0.057313669472932816,
0.03639107942581177,
0.03161190077662468,
-0.05548955500125885,
0.01854212023317814,
-0.03863473981618881,
0.024917399510741234,
0.011364231817424297,
0.005171363707631826,
0.029258791357278824,
-0.019171440973877907,
-0.00015818490646779537,
0.012841763906180859,
0.0060743005014956,
-0.025008605793118477,
-0.0018298145150765777,
-0.0093257836997509,
-0.025464633479714394,
-0.007342059630900621,
-0.003458976512774825,
0.010497776791453362,
0.08033399283885956,
-0.02345810830593109,
0.0526074543595314,
0.08412814885377884,
-0.02265549823641777,
0.016444388777017593,
-0.006270392797887325,
-0.023567555472254753,
-0.029368238523602486,
0.03091873601078987,
-0.025063328444957733,
-0.012732316739857197,
-0.0026951287873089314,
0.04122498258948326,
-0.007711442653089762,
0.04301261156797409,
0.02769005298614502,
0.01812257431447506,
0.040495336055755615,
0.008869755081832409,
0.030900495126843452,
0.04749993234872818,
0.014392261393368244,
0.04881329461932182,
-0.007515350356698036,
-0.02539166994392872,
0.008737507276237011,
0.005235207732766867,
0.022582534700632095,
0.036318112164735794,
0.03735785931348801,
-0.029003415256738663,
0.014419622719287872,
-0.07062970101833344,
0.008878875523805618,
-0.054066743701696396,
0.04071423038840294,
0.00227102218195796,
-0.03965624421834946,
0.03947383165359497,
-0.010105593129992485,
0.009307542815804482,
-0.0011263905325904489,
-0.032706368714571,
-0.04819309711456299,
0.00854597520083189,
0.03173958882689476,
-0.0242972020059824,
0.015495849773287773,
0.022892633453011513,
0.027215784415602684,
0.03297998383641243,
0.02387765422463417,
-0.0008715845760889351,
-0.023950619623064995,
-0.02061249129474163,
-0.024205995723605156,
-0.028930451720952988,
0.01228540949523449,
0.014100402593612671,
0.020977312698960304,
-0.05118464305996895,
-0.029532408341765404,
0.0026039229705929756,
0.002478515263646841,
0.0014068480813875794,
0.009977905079722404,
-0.022728463634848595,
-0.05607327073812485,
0.03816046938300133,
-0.004086015745997429,
-0.03504123538732529,
0.007711442653089762,
-0.035351332277059555,
0.01702810637652874,
-0.005353775341063738,
-0.027726536616683006,
0.07953137904405594,
0.00969516672194004,
0.047828275710344315,
0.018642447888851166,
-0.011355111375451088,
0.0068313078954815865,
-0.04042237251996994,
0.06253063678741455,
-0.09127867221832275,
0.02199881710112095,
0.005162243265658617,
0.08354443311691284,
0.040239959955215454,
-0.019372092559933662,
-0.026103073731064796,
0.03648228570818901,
0.034530483186244965,
-0.009850217029452324,
0.002209458267316222,
0.016781849786639214,
-0.03841584548354149,
-0.0553436242043972,
-0.03323535993695259,
0.0014820927754044533,
-0.06136320158839226,
-0.0013133622705936432,
-0.04355984553694725,
-0.001511734677478671,
-0.04337743669748306,
-0.0013361636083573103,
0.03352721780538559,
0.007027400191873312,
-0.08369036018848419,
-0.030024919658899307,
0.0070000384002923965,
0.023166250437498093,
0.0006184887024573982,
0.021779922768473625,
-0.010059989988803864,
-0.013334275223314762,
0.011117976158857346,
-0.026923926547169685,
0.0035707035567611456,
-0.03801453858613968,
-0.057860903441905975,
0.015167509205639362,
0.04221000149846077,
-0.011145337484776974,
0.06285897642374039,
-0.029204068705439568,
0.03679238259792328,
0.004585367161780596,
-0.08668190985918045,
-0.0059557328931987286,
0.05395729839801788,
0.04264779016375542,
0.02212650515139103,
-0.00923913810402155,
-0.00928474124521017,
-0.0028114160522818565,
0.04542044550180435,
-0.02360403724014759,
-0.020411837846040726,
-0.033162396401166916,
0.06705443561077118,
-0.006890591233968735,
0.00352738075889647,
-0.04210055619478226,
-0.08697376400232315,
-0.047682344913482666,
0.040896639227867126,
-0.03000667877495289,
-0.07008247077465057,
0.02387765422463417,
0.019481539726257324,
-0.041443873196840286,
0.05049148201942444,
-0.005654754117131233,
0.043742258101701736,
0.03557022660970688,
0.017748631536960602,
-0.010069110430777073,
0.0002784624230116606,
0.026358449831604958,
-0.02604835107922554,
0.005850846413522959,
0.0015151548432186246,
0.0022733022924512625,
-0.00634791748598218,
-0.010953805409371853,
-0.023020321503281593,
0.037394341081380844,
-0.07048377394676208,
0.047682344913482666,
0.050272587686777115,
-0.01221244502812624,
-0.007209811359643936,
-0.049324046820402145,
0.01627109944820404,
-0.018633326515555382,
-0.03918197378516197,
-0.0005837165517732501,
-0.028164323419332504,
-0.0015003338921815157,
0.09069495648145676,
-0.02349459007382393,
-0.015340800397098064,
-0.018222900107502937,
-0.02088610827922821,
0.024771470576524734,
0.006694498937577009,
-0.03287053853273392,
0.03009788505733013,
0.01356228906661272,
0.016179893165826797,
0.03287053853273392,
0.02918582782149315,
0.005061917006969452,
0.018222900107502937,
0.027069855481386185,
0.013589650392532349,
0.039145492017269135,
0.016681523993611336,
0.060049839317798615,
-0.05694884434342384,
0.025592321529984474,
-0.026504378765821457,
-0.03686534985899925,
-0.012258047237992287,
-0.04151684045791626,
-0.030207330361008644,
0.03961975872516632,
-0.007369421422481537,
-0.03201320394873619,
-0.012714075855910778,
0.0336366668343544,
0.005504264496266842,
-0.040750712156295776,
0.02878452278673649,
-0.01614341139793396,
-0.007880173623561859,
-0.022564291954040527,
-0.010816996917128563,
-0.040933120995759964,
-0.028839245438575745,
-0.03192199766635895,
-0.021925853565335274,
0.03055391274392605,
0.034001488238573074,
-0.0464419461786747,
0.015213112346827984,
0.007962258532643318,
0.07453330606222153,
0.0006635215249843895,
-0.011464557610452175,
-0.00831340067088604,
0.002537798834964633,
-0.01234925352036953,
-0.03234154358506203,
0.04680677130818367,
0.049579422920942307,
-0.026632066816091537,
-0.03474937379360199,
-0.010087351314723492,
0.009859337471425533,
0.05092926695942879,
0.008395485579967499,
-0.011400713585317135,
-0.0015915395924821496,
-0.015276956371963024,
-0.034676410257816315,
-0.010789635591208935,
-0.0877034142613411,
-0.0669814720749855,
-0.002155875088647008,
0.03951031342148781,
0.01248606201261282,
0.020247668027877808,
-0.01829586550593376,
0.03987513482570648,
0.004934228956699371,
0.01854212023317814,
-0.013863268308341503,
-0.0009211776778101921,
0.025957144796848297,
0.02697864919900894,
-0.0000837952466099523,
-0.012203323654830456,
0.042939648032188416,
-0.05782442167401314,
-0.017247000709176064,
-0.008108187466859818,
0.05019962415099144,
0.010443054139614105,
-0.020192943513393402,
-0.018277624621987343,
-0.009813734330236912,
0.04666084051132202,
-0.004975271411240101,
0.047682344913482666,
-0.015131027437746525,
0.0019996853079646826,
0.018031368032097816,
-0.024260718375444412,
0.03679238259792328,
0.04465431720018387,
0.0028250969480723143,
-0.007009158842265606,
0.043340954929590225,
-0.0012631991412490606,
-0.09638619422912598,
0.004015331622213125,
0.0023576675448566675,
-0.00401989184319973,
-0.04494617506861687,
-0.02944120392203331,
0.023512832820415497,
0.060706522315740585,
-0.03721192851662636,
-0.021798165515065193,
-0.03179430961608887,
-0.06679905951023102,
-0.028547387570142746,
0.047426968812942505,
0.04195462539792061,
-0.0819392129778862,
0.02562880516052246,
0.0727456733584404,
-0.02309328503906727,
0.042137037962675095,
0.02903989888727665,
-0.022710222750902176,
0.024716747924685478,
0.03951031342148781,
-0.0782180204987526,
0.08945456147193909,
0.04746345058083534,
0.0024876357056200504,
-0.005627392325550318,
-0.032213855534791946,
-0.046478431671857834,
-0.02103203721344471,
0.052425041794776917,
0.027452919632196426,
0.035077717155218124,
0.03055391274392605
] |
722,993
|
pyopenstates.core
|
set_user_agent
|
Appends a custom string to the default User-Agent string
(e.g. ``pyopenstates/__version__ user_agent``)
|
def set_user_agent(user_agent):
"""Appends a custom string to the default User-Agent string
(e.g. ``pyopenstates/__version__ user_agent``)"""
session.headers.update({"User-Agent": f"{DEFAULT_USER_AGENT} {user_agent}"})
|
(user_agent)
|
[
-0.051679641008377075,
-0.012845336459577084,
-0.038815658539533615,
0.0053972783498466015,
-0.0017676319694146514,
-0.012416536919772625,
-0.015147802419960499,
0.027331296354532242,
0.0031227776780724525,
-0.022446712478995323,
0.011810624971985817,
0.004828653298318386,
-0.0525745265185833,
0.0591743066906929,
0.010915739461779594,
0.016024043783545494,
0.010347113944590092,
0.04925599321722984,
0.04858482629060745,
-0.03512425720691681,
-0.04358838498592377,
-0.02796517312526703,
0.016601990908384323,
-0.013283457607030869,
-0.029754944145679474,
0.04030713811516762,
-0.024572065100073814,
0.014840185642242432,
0.0438121035695076,
-0.04504257068037987,
0.026119472458958626,
-0.08635645359754562,
-0.04302908107638359,
-0.002945664804428816,
0.05719809979200363,
-0.02272636443376541,
-0.015651175752282143,
0.030183743685483932,
-0.08434296399354935,
-0.015604566782712936,
-0.0942612737417221,
-0.035459838807582855,
-0.0014308847021311522,
-0.015735071152448654,
-0.023975474759936333,
0.0029293519910424948,
0.007466701325029135,
0.061970822513103485,
0.05827942118048668,
0.018960386514663696,
-0.00909334234893322,
-0.0013947630068287253,
0.03583270683884621,
-0.012276710942387581,
-0.03475138917565346,
0.014346133917570114,
-0.010132714174687862,
-0.026044897735118866,
-0.04209690913558006,
0.07994310557842255,
-0.00248190900310874,
0.02891598828136921,
-0.011428434401750565,
-0.05775740370154381,
0.01950104720890522,
0.01687232032418251,
0.001289893640205264,
0.020712871104478836,
0.02541102096438408,
-0.01905360445380211,
-0.022987373173236847,
-0.025970324873924255,
0.017058756202459335,
-0.0032998903188854456,
0.03219723701477051,
0.02578388899564743,
-0.1416902095079422,
0.02798381634056568,
-0.06338772922754288,
0.004828653298318386,
0.026622844859957695,
-0.021458609029650688,
-0.0222789216786623,
-0.022465355694293976,
-0.05339483544230461,
-0.029829518869519234,
-0.019025638699531555,
-0.010076784528791904,
0.06898076087236404,
0.0016581016825512052,
0.015362202189862728,
-0.0037636461202055216,
0.02988544851541519,
0.03367006778717041,
-0.02337888441979885,
0.03570220619440079,
0.03111591562628746,
0.0003341255651321262,
-0.007681101094931364,
-0.004416166804730892,
-0.005965903401374817,
0.04265620931982994,
-0.03754790499806404,
-0.027890600264072418,
-0.027219435200095177,
-0.03710046410560608,
0.025746602565050125,
-0.023826327174901962,
0.06174710392951965,
0.026026254519820213,
-0.08285148441791534,
-0.09403755515813828,
-0.0018130753887817264,
0.006445972248911858,
-0.01737569458782673,
0.006129033863544464,
0.07367891073226929,
-0.004145836923271418,
0.07058409601449966,
0.04519172012805939,
-0.03967325761914253,
0.022912798449397087,
-0.0015299280639737844,
0.06398431956768036,
-0.007806944195181131,
-0.034061580896377563,
-0.00016997581406030804,
0.04698149114847183,
0.01351650059223175,
0.037510618567466736,
0.017627380788326263,
-0.02761094830930233,
0.01810278929769993,
-0.02651098370552063,
0.03367006778717041,
0.011987737379968166,
-0.0665198266506195,
0.02395683154463768,
0.07554325461387634,
0.013376674614846706,
-0.05395413935184479,
-0.06976378709077835,
0.04060543328523636,
-0.07778047025203705,
0.030109168961644173,
0.05954717472195625,
-0.011391147039830685,
0.020041707903146744,
-0.04314094036817551,
-0.056638795882463455,
0.06152338162064552,
0.0489204078912735,
-0.03001595288515091,
-0.06532664597034454,
-0.037641122937202454,
0.023099232465028763,
-0.02375175431370735,
-0.03471410274505615,
0.001507788896560669,
0.05936074256896973,
0.020545080304145813,
-0.019668838009238243,
0.000050905353418784216,
0.026119472458958626,
-0.03174979239702225,
-0.009051394648849964,
-0.0013399978633970022,
-0.000680485856719315,
0.03570220619440079,
0.02498222142457962,
-0.03128370642662048,
-0.04545272886753082,
0.006115050986409187,
0.016918929293751717,
0.04347652196884155,
0.006981971673667431,
-0.024422917515039444,
-0.003463020548224449,
-0.08203117549419403,
0.01722654700279236,
0.05417786166071892,
-0.009815775789320469,
-0.05223894491791725,
-0.039113953709602356,
0.00035014728200621903,
0.005784130189567804,
-0.009503497742116451,
-0.027480443939566612,
-0.044147685170173645,
0.08061427623033524,
0.03818178176879883,
0.016611313447356224,
0.004609592724591494,
-0.05238809064030647,
0.05872686207294464,
-0.012770762667059898,
0.017179938033223152,
-0.06883161514997482,
-0.007709065917879343,
0.025168655440211296,
-0.03760383650660515,
0.07241115719079971,
-0.003411751240491867,
-0.011549616232514381,
0.026249974966049194,
0.025075439363718033,
0.016182513907551765,
-0.05719809979200363,
0.00963866338133812,
0.0044697667472064495,
-0.052910108119249344,
0.02820753864943981,
-0.00615699915215373,
-0.00905605498701334,
-0.03767840936779976,
0.017729919403791428,
-0.0013889368856325746,
0.0313955694437027,
-0.023341597989201546,
0.013553787022829056,
0.01474696770310402,
-0.019967133179306984,
-0.05067289248108864,
-0.0634995847940445,
0.010179323144257069,
-0.014299524948000908,
-0.023546675220131874,
-0.08352264761924744,
-0.01347921323031187,
0.004847296513617039,
-0.013171596452593803,
0.03247688710689545,
0.035888638347387314,
0.05507274717092514,
-0.013339387252926826,
0.0365411601960659,
0.016788424924016,
0.024702569469809532,
-0.08434296399354935,
0.0018759970553219318,
-0.039188530296087265,
-0.0003568472748156637,
-0.0021742922253906727,
0.014103769324719906,
-0.007583222817629576,
0.006380720529705286,
-0.011885198764503002,
0.008440821431577206,
0.0007090336875990033,
0.012062311172485352,
0.02701435796916485,
-0.035534411668777466,
0.005523121915757656,
0.0066277459263801575,
0.003964063245803118,
0.014448672533035278,
0.02278229407966137,
0.05074746906757355,
-0.032980259507894516,
-0.02052643708884716,
0.0002717865281738341,
-0.022894155234098434,
-0.030109168961644173,
-0.03963597118854523,
-0.03689538687467575,
0.06674354523420334,
0.012407215312123299,
0.03398700803518295,
-0.0387037992477417,
-0.032402314245700836,
0.122748464345932,
0.05455072969198227,
-0.03555305674672127,
-0.031209133565425873,
0.058615002781152725,
-0.0328684002161026,
-0.035758133977651596,
-0.011055565439164639,
-0.033054836094379425,
-0.00044948188588023186,
0.07688558101654053,
0.028971919789910316,
0.044445980340242386,
0.04549001529812813,
-0.042320627719163895,
-0.015119836665689945,
-0.012947875075042248,
0.042395204305648804,
0.011549616232514381,
-0.08628188073635101,
0.02088066190481186,
-0.017478233203291893,
0.028244825080037117,
0.006045138463377953,
0.006371398456394672,
-0.04034442454576492,
0.02255857363343239,
0.053506698459386826,
0.020507793873548508,
0.00884165521711111,
0.01011407095938921,
-0.004059610888361931,
-0.03532933443784714,
-0.04142574220895767,
0.04187318682670593,
-0.04608660563826561,
0.01796296238899231,
-0.009051394648849964,
-0.04925599321722984,
-0.033781930804252625,
-0.019025638699531555,
0.013945300132036209,
-0.03687674179673195,
-0.008165830746293068,
-0.0314328558743,
0.002304796362295747,
-0.009191220626235008,
-0.03862922638654709,
0.04493071138858795,
-0.05779469013214111,
-0.002143996534869075,
-0.04470698907971382,
-0.021123027428984642,
-0.005173556972295046,
-0.01789771020412445,
0.016126582399010658,
0.034583598375320435,
0.029046492651104927,
-0.07386534661054611,
0.04000883921980858,
0.007946769706904888,
-0.029195640236139297,
-0.020768802613019943,
0.01914682239294052,
0.018718022853136063,
-0.004047958645969629,
0.004870600998401642,
0.02350938878953457,
0.001295719644986093,
-0.01544609759002924,
-0.08605816215276718,
0.02352803200483322,
-0.01855023205280304,
0.047652654349803925,
0.024348344653844833,
-0.02518729865550995,
-0.004262358415871859,
0.001573040965013206,
0.00839887373149395,
-0.0059752254746854305,
-0.002098553115502,
0.007201032247394323,
0.009946280159056187,
-0.013674969784915447,
0.03059390000998974,
-0.004411506000906229,
-0.02000441960990429,
-0.037137750536203384,
0.0054671913385391235,
-0.07073324173688889,
-0.05365584418177605,
-0.0040502892807126045,
0.05063560605049133,
0.009359011426568031,
-0.021272175014019012,
-0.019892560318112373,
0.01628505252301693,
0.03937496244907379,
0.0387037992477417,
0.008599290624260902,
-0.017030790448188782,
-0.034863248467445374,
-0.003957071807235479,
0.0774075984954834,
0.023024659603834152,
0.005648965016007423,
-0.04496799781918526,
-0.04541544243693352,
-0.06741470843553543,
-0.004796027205884457,
-0.0022010921966284513,
0.020489150658249855,
0.027741452679038048,
-0.010468296706676483,
0.058465857058763504,
-0.007331536151468754,
0.06588594615459442,
0.03708181902766228,
0.008105238899588585,
-0.05018816515803337,
-0.02783466875553131,
-0.006576476618647575,
0.06834688037633896,
0.03777162730693817,
-0.03922581672668457,
-0.05775740370154381,
-0.04045628383755684,
-0.01569778472185135,
0.035385265946388245,
-0.02746180072426796,
0.02658555842936039,
0.010020853951573372,
-0.0109530258923769,
-0.010225932113826275,
-0.01708672009408474,
0.027275364845991135,
-0.04008341580629349,
-0.05585577338933945,
0.018876491114497185,
0.0012794067151844501,
-0.046123892068862915,
-0.027592305094003677,
-0.002435300499200821,
-0.002833804115653038,
0.009177237749099731,
0.05264909937977791,
0.03394972160458565,
0.004311297554522753,
0.09030886739492416,
0.005359991453588009,
-0.000655433745123446,
0.029382076114416122,
-0.01493340265005827,
0.0547744520008564,
-0.0028664302080869675,
-0.025094082579016685,
0.03788348659873009,
-0.0335954949259758,
-0.005038392264395952,
-0.028729554265737534,
0.04701877757906914,
-0.002759230323135853,
-0.03270060941576958,
0.04485613852739334,
0.01197841577231884,
-0.009014107286930084,
-0.005457869730889797,
-0.0019622230902314186,
-0.05682523176074028,
0.005182878579944372,
0.0006338772363960743,
-0.05924887955188751,
-0.010020853951573372,
0.03855465352535248,
0.05574391037225723,
0.007709065917879343,
-0.06916719675064087,
0.02615675888955593,
0.03689538687467575,
-0.0284871906042099,
-0.02731265313923359,
-0.052910108119249344,
-0.03454631194472313,
0.027443157508969307,
-0.013805474154651165,
0.05820484831929207,
-0.002231387887150049,
0.012090276926755905,
0.017496876418590546,
-0.003728689858689904,
0.034509025514125824,
0.0011891024187207222,
0.0038242375012487173,
0.031097272410988808,
0.010906417854130268,
0.0774075984954834,
0.012425858527421951,
-0.016322338953614235,
-0.030426109209656715,
0.0020053358748555183,
-0.020060351118445396,
-0.005103643983602524,
-0.0017501537222415209,
-0.04220876842737198,
-0.0011838589562103152,
-0.013619039207696915,
-0.08516327291727066,
0.02416190877556801,
-0.044893424957990646,
0.024963578209280968,
-0.03076169081032276,
0.022334851324558258,
0.06301485747098923,
-0.006054460071027279,
0.015017298050224781,
0.023434815928339958,
0.052686385810375214,
-0.033781930804252625,
0.026566915214061737,
0.00792346615344286,
-0.000133562833070755,
0.04638490080833435,
-0.03971054404973984,
-0.03559034317731857,
0.025075439363718033,
0.06965192407369614,
0.04433412104845047,
0.019556976854801178,
0.02570931613445282,
0.004837974905967712,
0.007415431551635265,
-0.04858482629060745,
-0.03777162730693817,
0.01717061549425125,
0.010142035782337189,
-0.019967133179306984,
-0.016900286078453064,
-0.014756289310753345,
0.010197966359555721,
0.020395932719111443,
0.019743412733078003,
0.0540287159383297,
-0.012593649327754974,
-0.03549712523818016,
0.03600050136446953,
-0.009675949811935425,
-0.0259330365806818,
0.03978512063622475,
0.004285662900656462,
-0.014700359664857388,
0.010356435552239418,
0.0036471246276050806,
0.012258067727088928,
-0.010002209804952145,
0.03637336939573288,
0.020060351118445396,
0.03885294869542122,
0.06297756731510162,
0.06420803815126419,
0.024646639823913574,
-0.044147685170173645,
0.06040477380156517,
-0.01970612443983555,
0.10552191734313965,
0.06469276547431946,
0.05712352693080902,
0.02578388899564743,
0.04075457900762558,
0.04720521345734596,
-0.013824117369949818,
0.02841261588037014,
0.02007899433374405,
0.008501412346959114,
-0.006143016275018454,
-0.015492705628275871,
-0.0511203370988369,
-0.023211093619465828,
0.007266283966600895,
-0.021384036168456078,
-0.03441580757498741,
-0.05238809064030647,
-0.003684411523863673,
0.02438563108444214,
0.009135290049016476,
-0.017030790448188782,
-0.04858482629060745,
-0.0006292163743637502,
0.03482596203684807,
0.04929327964782715,
0.021570470184087753,
-0.014728324487805367,
-0.0343412309885025,
0.022185703739523888,
0.027666877955198288,
0.009084020741283894,
0.00924248993396759,
-0.04754079505801201,
0.02548559382557869,
-0.0219060517847538,
-0.036261506378650665,
0.04537815600633621,
-0.06972649693489075,
-0.01544609759002924,
0.03208537399768829,
-0.05738453567028046,
0.03169386461377144,
0.04545272886753082,
0.04716792702674866,
0.02125353179872036,
-0.0026240653824061155,
-0.033707354217767715,
0.003236968768760562,
0.012863979674875736,
-0.09098003059625626,
-0.023117875680327415,
-0.0511203370988369,
0.05119490996003151,
0.05171692743897438,
-0.06521478295326233,
0.021346749737858772,
-0.054737165570259094,
-0.06748928129673004,
-0.022595860064029694,
-0.013320744037628174,
-0.08195660263299942,
0.0057701473124325275,
0.017851103097200394,
-0.0482119582593441,
0.009741201996803284,
0.044595129787921906,
0.01489611528813839,
0.05003901571035385,
0.02270772121846676,
0.02526187337934971,
0.007569240406155586,
0.003665768075734377,
-0.0700993686914444,
0.011158104054629803,
0.025299159809947014,
-0.030351534485816956,
-0.014523246325552464,
0.07621441781520844,
-0.04981529340147972,
0.10626766085624695,
-0.0964239165186882,
0.022446712478995323,
0.01538084540516138,
-0.012612293474376202,
-0.01710536517202854,
-0.03243960067629814,
-0.01731044240295887,
-0.009685271419584751,
0.010095427744090557,
-0.039188530296087265,
0.0009758680243976414,
-0.044147685170173645,
0.020619655027985573,
0.01935189962387085,
-0.004045628476887941,
-0.02075015939772129,
-0.039039380848407745,
-0.047950949519872665,
0.03717503696680069,
0.013674969784915447,
0.017851103097200394,
-0.023789040744304657,
-0.04302908107638359,
0.01781381480395794,
0.0033558206632733345,
-0.04571373760700226,
-0.003765976754948497,
0.056787945330142975,
0.02701435796916485,
0.014085125178098679,
-0.040717292577028275,
0.03788348659873009,
-0.06476733833551407,
0.056937091052532196,
0.0284871906042099,
0.0028850736562162638,
0.057086240500211716,
0.0007859378820285201,
0.049852583557367325,
0.045751024037599564,
-0.029176997020840645,
0.058913297951221466,
-0.004381210543215275,
0.0313955694437027,
0.06491649150848389,
-0.08225489407777786,
0.011325894854962826,
-0.0036680984776467085,
0.09142747521400452,
-0.022222990170121193,
0.013563108630478382,
0.012146206572651863,
-0.03402429446578026,
-0.010039497166872025,
0.0277600958943367,
-0.01854090951383114,
0.020041707903146744,
-0.01621047779917717,
0.023267023265361786,
0.008300995454192162,
0.07319418340921402,
-0.0489576980471611,
0.02606354095041752,
-0.04679505527019501,
-0.023621249943971634,
-0.043774817138910294,
-0.01985527202486992,
0.01870870031416416,
0.008342943154275417,
-0.08426839113235474,
-0.04496799781918526,
-0.012696188874542713,
0.012537719681859016,
0.053581271320581436,
-0.001971544697880745,
-0.0005313382716849446,
-0.006874771788716316,
-0.05581848695874214,
-0.010142035782337189,
0.06323857605457306,
-0.00396173307672143,
0.0020134923979640007,
-0.006059120874851942,
-0.004101558588445187,
-0.02037728950381279,
0.018018893897533417,
0.0032323079649358988,
0.032905686646699905,
-0.008175152353942394,
0.07535681873559952,
-0.03186165541410446,
-0.021421322599053383,
-0.017692632973194122,
0.006343433633446693,
0.009223846718668938,
-0.044818852096796036,
0.020358646288514137,
-0.06596051901578903,
0.03521747514605522,
0.05085932835936546,
0.03376328572630882,
-0.018755309283733368,
0.008748438209295273,
0.0005389121943153441,
-0.06461819261312485,
0.015791000798344612,
-0.01927732676267624,
0.001315528410486877,
-0.005868025589734316,
0.024217840284109116,
0.012369927950203419,
-0.03848007693886757,
-0.030183743685483932,
0.006525206845253706,
0.02075015939772129,
0.0343412309885025,
0.003966393880546093,
0.012761441059410572,
0.03622421994805336,
0.000017396303519490175,
-0.05880143865942955,
0.010384401306509972,
-0.02913971059024334,
0.01673249527812004,
-0.023770397529006004,
0.06883161514997482,
-0.04176132380962372,
-0.02673470601439476,
-0.04541544243693352,
0.008445482701063156,
-0.05816756188869476,
-0.0040526194497942924,
0.005266774445772171,
-0.028673624619841576,
0.0336141400039196,
0.10328470915555954,
-0.006026494782418013,
-0.05365584418177605,
-0.0080306651070714,
0.010729304514825344,
0.045266292989254,
0.01180130336433649,
-0.013935977593064308,
-0.001345823984593153,
0.05238809064030647,
0.009139950387179852,
-0.008981481194496155,
-0.0013190240133553743,
-0.04425954818725586,
-0.01249111071228981,
0.02418055385351181,
0.007862874306738377,
0.0036261507775634527,
-0.01935189962387085
] |
722,994
|
pyvat.item_type
|
ItemType
|
Item type.
If no item type matches the type of item being sold, it is currently not
supported by pyvat.
|
class ItemType(Enum):
"""Item type.
If no item type matches the type of item being sold, it is currently not
supported by pyvat.
"""
generic_physical_good = 1
"""Generic physical good.
"""
generic_electronic_service = 2
"""Generic electronic service.
Any electronic service that is not covered by a more specific item type.
"""
generic_telecommunications_service = 3
"""Generic telecommunications service.
Any telecommunications service that is not covered by a more specific item
type.
"""
generic_broadcasting_service = 4
"""Generic broadcasting service.
Any broadcasting service that is not covered by a more specific item type.
"""
prepaid_broadcasting_service = 5
"""Pre-paid service provided by broadcasting company.
"""
ebook = 6
"""E-book.
"""
enewspaper = 7
"""E-newspaper.
"""
@property
def is_electronic_service(self):
return self in frozenset([ItemType.generic_electronic_service,
ItemType.ebook,
ItemType.enewspaper])
@property
def is_telecommunications_service(self):
return self in frozenset([ItemType.generic_telecommunications_service])
@property
def is_broadcasting_service(self):
return self in frozenset([ItemType.generic_broadcasting_service,
ItemType.prepaid_broadcasting_service])
|
(value, names=None, *, module=None, qualname=None, type=None, start=1)
|
[
0.08424434065818787,
-0.08836662024259567,
-0.0531773678958416,
-0.05467637628316879,
0.017622731626033783,
-0.09638632088899612,
0.00006942434993106872,
-0.09391295164823532,
0.015411692671477795,
-0.0644199401140213,
-0.0005937483510933816,
0.035133037716150284,
0.011420579627156258,
-0.013341185636818409,
-0.05130360275506973,
0.013575405813753605,
-0.048305585980415344,
0.03041115775704384,
0.0596231073141098,
-0.0016746748005971313,
0.04403340816497803,
0.09826008230447769,
-0.008122758008539677,
0.001605579862371087,
0.06018523499369621,
0.032228708267211914,
0.00227779196575284,
0.010568018071353436,
-0.015486642718315125,
-0.0644199401140213,
-0.030036404728889465,
-0.0041574095375835896,
0.005302746314555407,
-0.016348574310541153,
-0.03653835877776146,
0.004328390117734671,
0.004593058954924345,
0.02643878199160099,
-0.03904920071363449,
0.08341988176107407,
-0.03473954647779465,
-0.024115316569805145,
0.038149796426296234,
-0.02954922616481781,
-0.02833128161728382,
-0.021567000076174736,
-0.04200974479317665,
0.03387761861085892,
0.012432411313056946,
0.001542340382002294,
0.02582043968141079,
0.015692757442593575,
0.008905054070055485,
-0.012010814622044563,
-0.05711226537823677,
0.04156004264950752,
-0.005686867516487837,
0.09691096842288971,
0.005705605261027813,
0.08791691064834595,
-0.020536432042717934,
0.04062316194176674,
-0.000611314841080457,
-0.09661117196083069,
0.01040874794125557,
-0.014577868394553661,
-0.02812516875565052,
-0.017678944393992424,
-0.03801863268017769,
0.04215964674949646,
0.012095133773982525,
0.00296757067553699,
-0.009134589694440365,
0.035301677882671356,
0.007621527183800936,
-0.04114781320095062,
0.022072916850447655,
-0.017575887963175774,
0.02634509466588497,
-0.0500294454395771,
0.06708067655563354,
-0.036407195031642914,
0.03867444768548012,
-0.029436800628900528,
0.010277585126459599,
0.058161571621894836,
0.016901332885026932,
-0.02724449895322323,
0.05557578057050705,
0.011223834939301014,
-0.028762247413396835,
0.020686332136392593,
-0.012441779486835003,
-0.017828846350312233,
-0.0123012475669384,
0.013022646307945251,
0.04414583370089531,
-0.07749879360198975,
-0.07914770394563675,
-0.00317602651193738,
-0.025389475747942924,
0.032378606498241425,
-0.05287756398320198,
-0.050966326147317886,
0.00816960260272026,
-0.009485919959843159,
-0.037287864834070206,
0.008043123409152031,
0.01002462673932314,
-0.0009725996060296893,
-0.004913941025733948,
-0.012928958050906658,
-0.009612399153411388,
-0.015561593696475029,
-0.007340462878346443,
0.0008361663203686476,
-0.012020183727145195,
-0.008263290859758854,
-0.04658172279596329,
0.002698217285797,
0.01816612295806408,
0.029474277049303055,
0.046319395303726196,
0.07719899713993073,
0.05145350471138954,
-0.0331655889749527,
0.024714920669794083,
0.0035343836061656475,
0.017885059118270874,
0.09353820234537125,
-0.029361851513385773,
0.0022379744332283735,
0.014727769419550896,
-0.006914181634783745,
0.014071952551603317,
0.040960438549518585,
-0.015299267135560513,
0.020480219274759293,
-0.030336206778883934,
0.06895444542169571,
0.0019299748819321394,
0.032022591680288315,
-0.024021629244089127,
-0.016264254227280617,
-0.008553723804652691,
0.008994057774543762,
-0.054638899862766266,
0.007654317654669285,
-0.06123454123735428,
0.016629638150334358,
-0.02984902821481228,
-0.018924996256828308,
-0.07952246069908142,
0.06539429724216461,
0.014118797145783901,
-0.02025536820292473,
-0.02582043968141079,
-0.05051662400364876,
-0.009321966208517551,
0.010755393654108047,
-0.032940737903118134,
0.004829621408134699,
-0.013584774918854237,
0.034833237528800964,
-0.04362117871642113,
0.0200117789208889,
-0.05231543630361557,
-0.03556400164961815,
0.020124204456806183,
0.014783982187509537,
-0.015908239409327507,
-0.011317522265017033,
-0.03938647732138634,
-0.03211628273129463,
0.004293257370591164,
0.0327533595263958,
0.01039001066237688,
-0.03132930025458336,
0.06160929426550865,
-0.028387494385242462,
-0.0067877029068768024,
-0.024358905851840973,
-0.0692167654633522,
-0.027375662699341774,
0.010127684101462364,
-0.03155415132641792,
0.026476256549358368,
-0.008876947686076164,
0.016039403155446053,
0.0185689814388752,
0.01196397002786398,
-0.02194175310432911,
0.02128593623638153,
-0.004658640827983618,
-0.04047325998544693,
-0.014418598264455795,
-0.002585791517049074,
0.007677739951759577,
-0.06041008606553078,
-0.004536846186965704,
-0.04133519157767296,
0.004904571920633316,
0.036013707518577576,
0.05696236714720726,
-0.04748113080859184,
0.02057390660047531,
0.04215964674949646,
-0.07877295464277267,
-0.03374645486474037,
-0.04684405028820038,
-0.06708067655563354,
0.02205417864024639,
0.009781037457287312,
0.034477222710847855,
-0.004672694019973278,
-0.023440763354301453,
-0.008670833893120289,
0.03164783865213394,
-0.055763158947229385,
0.03535788878798485,
0.00672212103381753,
-0.051678355783224106,
0.01827854849398136,
0.0007834667339920998,
0.07348894327878952,
-0.0015575647121295333,
-0.032584723085165024,
0.04650677368044853,
-0.04163499176502228,
0.03191016614437103,
-0.018503399565815926,
-0.005120054818689823,
0.05793672055006027,
0.03020504303276539,
-0.041934795677661896,
-0.01002462673932314,
0.01816612295806408,
-0.022222816944122314,
-0.03934900090098381,
0.028743509203195572,
0.024771133437752724,
0.003614018438383937,
-0.021548263728618622,
0.031216874718666077,
-0.05074147507548332,
-0.0144935492426157,
0.037231650203466415,
0.033352963626384735,
-0.023365812376141548,
-0.021323412656784058,
-0.02383425273001194,
-0.04538251459598541,
0.005490122828632593,
0.009752931073307991,
0.03608865663409233,
-0.05531345307826996,
-0.08409444242715836,
-0.004843674600124359,
0.011542374268174171,
-0.013631618581712246,
-0.009307912550866604,
0.025951603427529335,
0.016470368951559067,
0.020180417224764824,
-0.04287167638540268,
-0.0200117789208889,
0.07611221075057983,
0.022222816944122314,
-0.004853043705224991,
0.04527008906006813,
0.11452433466911316,
0.011308154091238976,
0.010212003253400326,
0.03307189792394638,
-0.010933401063084602,
0.03923657536506653,
-0.01817549206316471,
0.016320466995239258,
-0.006811124738305807,
-0.05456395074725151,
-0.026120241731405258,
0.04174741730093956,
0.03726912662386894,
0.04935489222407341,
0.010624230839312077,
-0.055613256990909576,
-0.0011570480419322848,
-0.019262272864580154,
-0.020405268296599388,
0.026869747787714005,
-0.0028668558225035667,
0.01587076485157013,
0.06389528512954712,
-0.024171529337763786,
0.06288345158100128,
0.04455805942416191,
0.030354944989085197,
-0.0261764544993639,
0.04770598188042641,
-0.038562022149562836,
0.014128165319561958,
0.04467048496007919,
0.02465870790183544,
-0.033146850764751434,
-0.05711226537823677,
0.042084693908691406,
0.05145350471138954,
-0.020536432042717934,
0.02250388264656067,
0.01156111154705286,
-0.01801622100174427,
0.00969671830534935,
0.021248461678624153,
-0.01954333856701851,
0.006295840255916119,
-0.011308154091238976,
-0.08252047747373581,
-0.02374056540429592,
0.030486108735203743,
0.017875690013170242,
-0.032697148621082306,
0.07742384821176529,
-0.04710637778043747,
0.008249237202107906,
-0.03226618096232414,
-0.030767172574996948,
-0.02205417864024639,
0.014343648217618465,
-0.04804325848817825,
-0.024152792990207672,
-0.01576770655810833,
0.0009046757477335632,
0.007209299132227898,
0.029174474999308586,
-0.01694817654788494,
-0.007307671941816807,
0.06018523499369621,
0.013313079252839088,
0.030654747039079666,
0.008286712691187859,
0.055088602006435394,
0.0126104187220335,
-0.03020504303276539,
-0.004829621408134699,
0.01770705170929432,
-0.025239573791623116,
0.016039403155446053,
0.013275603763759136,
0.07101558148860931,
0.07176508754491806,
0.0005053302156738937,
-0.012263772077858448,
0.03889929875731468,
0.009818512946367264,
0.038711924105882645,
-0.07929760962724686,
0.008980004116892815,
-0.07929760962724686,
0.039423953741788864,
0.05179078131914139,
0.06779270619153976,
-0.0014100059634074569,
-0.019009316340088844,
0.03087959811091423,
-0.07135285437107086,
-0.06464479118585587,
0.04433320835232735,
-0.03923657536506653,
0.03976123034954071,
-0.013284972868859768,
0.008160233497619629,
-0.03582632914185524,
-0.015955083072185516,
-0.01293832715600729,
0.044782910495996475,
0.010380641557276249,
0.014399860985577106,
-0.0024194952566176653,
-0.014128165319561958,
0.01623614877462387,
0.030336206778883934,
0.021567000076174736,
-0.0047827777452766895,
0.06164677068591118,
0.04706890136003494,
-0.01293832715600729,
0.07165265828371048,
0.013163178227841854,
-0.0038786872755736113,
0.03310937434434891,
-0.023909203708171844,
0.016039403155446053,
-0.00966861192137003,
0.001169930212199688,
-0.009204856120049953,
-0.060147762298583984,
-0.06955404579639435,
-0.04684405028820038,
-0.008239868097007275,
0.007185877300798893,
0.06329567730426788,
-0.012048290111124516,
0.004801515024155378,
-0.03206006810069084,
-0.025895390659570694,
-0.004653956275433302,
0.023871727287769318,
-0.023609401658177376,
-0.037175439298152924,
0.018503399565815926,
0.02300979755818844,
0.018437817692756653,
-0.042534396052360535,
-0.06734300404787064,
-0.07734889537096024,
-0.04500776529312134,
0.045644842088222504,
0.016601530835032463,
0.02623266912996769,
0.017885059118270874,
0.048717811703681946,
0.005419856868684292,
0.04512019082903862,
0.03400878235697746,
0.018793832510709763,
-0.03404625505208969,
0.02205417864024639,
0.010015257634222507,
-0.006689330562949181,
0.0009807973401620984,
0.056625086814165115,
-0.01268536876887083,
-0.05122865363955498,
-0.08941592276096344,
0.059435732662677765,
-0.05696236714720726,
-0.03170405328273773,
-0.09391295164823532,
-0.07184003293514252,
0.03260345757007599,
-0.026757322251796722,
-0.02321591228246689,
-0.008848841302096844,
0.05778682231903076,
0.01040874794125557,
-0.0400235578417778,
-0.029530489817261696,
-0.006309893447905779,
0.053514644503593445,
-0.0540018230676651,
-0.05763692036271095,
0.023403286933898926,
0.032228708267211914,
0.005841453094035387,
0.009968413971364498,
-0.02256009541451931,
-0.024733658879995346,
0.010998982936143875,
-0.02848118357360363,
-0.014774613082408905,
0.05595053359866142,
0.01785695180296898,
-0.027956528589129448,
-0.030767172574996948,
0.004965469241142273,
0.007715214975178242,
0.005719658453017473,
-0.03833717107772827,
0.025445688515901566,
0.050703998655080795,
-0.029324375092983246,
0.013303710147738457,
0.0535895936191082,
0.008820734918117523,
-0.027319449931383133,
0.03567642718553543,
-0.0022813051473349333,
-0.0032275549601763487,
-0.050441674888134,
-0.05081642419099808,
0.08934096992015839,
0.01791316457092762,
-0.037681352347135544,
0.027787890285253525,
-0.017903795465826988,
0.021923014894127846,
0.004719538148492575,
0.051565930247306824,
-0.001073314342647791,
-0.004951416049152613,
-0.008605252020061016,
-0.02782536670565605,
0.009134589694440365,
0.044895339757204056,
0.041672468185424805,
-0.006801756098866463,
-0.01378151960670948,
0.03211628273129463,
0.028350019827485085,
0.016086246818304062,
0.07019112259149551,
-0.005143476650118828,
-0.01801622100174427,
-0.005818031262606382,
0.025951603427529335,
-0.0719524621963501,
0.008839472196996212,
-0.02424648031592369,
-0.013744044117629528,
-0.023459499701857567,
-0.00966861192137003,
-0.004267492797225714,
0.09788532555103302,
-0.009036216884851456,
0.022091655060648918,
-0.0038458965718746185,
0.0058695594780147076,
-0.009204856120049953,
0.04826810956001282,
-0.011242572218179703,
-0.02537073753774166,
-0.0600353367626667,
0.036819424480199814,
0.0022250923793762922,
-0.023646876215934753,
0.0439959317445755,
-0.026476256549358368,
-0.032378606498241425,
-0.002325806999579072,
-0.027881579473614693,
0.032022591680288315,
-0.000237587169976905,
-0.023609401658177376,
0.0008876947686076164,
0.014240591786801815,
-0.049017615616321564,
0.007242090068757534,
-0.01258231233805418,
0.008750468492507935,
0.04339632764458656,
0.06288345158100128,
0.031123187392950058,
0.006872022058814764,
-0.026101505383849144,
0.021267198026180267,
0.001045793411321938,
0.005021682009100914,
-0.054526474326848984,
0.0011798845371231437,
-0.020349055528640747,
0.007649633567780256,
0.011476792395114899,
-0.0029769393149763346,
-0.04751860350370407,
0.04410835728049278,
0.012029551900923252,
-0.007129664532840252,
0.009251699782907963,
0.018194228410720825,
0.013640987686812878,
-0.004361181054264307,
0.007195245940238237,
-0.014774613082408905,
-0.010483698919415474,
0.013125702738761902,
-0.016470368951559067,
-0.002759114606305957,
0.017135553061962128,
0.04954226687550545,
0.017126183956861496,
0.0703035518527031,
-0.05242786183953285,
-0.0026279513258486986,
0.03946142643690109,
-0.008043123409152031,
-0.016507843509316444,
-0.010137052275240421,
-0.04283419996500015,
-0.032284919172525406,
-0.021885540336370468,
-0.05160340666770935,
-0.021304674446582794,
-0.0483805350959301,
-0.06708067655563354,
-0.002398415468633175,
0.007869800552725792,
0.009270437993109226,
0.03132930025458336,
-0.017678944393992424,
0.03567642718553543,
-0.00012216050527058542,
0.03670699894428253,
0.03352160379290581,
0.0043541546911001205,
-0.044070880860090256,
0.014943252317607403,
0.03123561292886734,
-0.0029160422272980213,
-0.02392794005572796,
0.03185395523905754,
-0.01674206368625164,
0.06603137403726578,
0.00969671830534935,
-0.0005211400566622615,
0.07697414606809616,
-0.013519193045794964,
0.005419856868684292,
-0.018241073936223984,
-0.0023913888726383448,
-0.05497617647051811,
0.018297286704182625,
0.001472074305638671,
-0.019056160002946854,
0.007021923083811998,
0.048005782067775726,
-0.014915145933628082,
-0.015196209773421288,
0.007874485105276108,
0.027881579473614693,
-0.0592108815908432,
-0.10463087260723114,
0.01576770655810833,
-0.04354622960090637,
0.01959955133497715,
-0.04699395224452019,
-0.0063005248084664345,
-0.018409712240099907,
-0.029980191960930824,
-0.005199689418077469,
-0.1184217631816864,
0.052840087562799454,
0.01577707566320896,
0.05883612856268883,
-0.03174152970314026,
-0.023665614426136017,
0.008225815370678902,
-0.0169950220733881,
0.03067348338663578,
-0.018559612333774567,
0.04021093249320984,
0.007626211270689964,
0.03372771665453911,
-0.009846619330346584,
0.05456395074725151,
0.0011002495884895325,
-0.001067458768375218,
-0.05628781020641327,
-0.04751860350370407,
0.032584723085165024,
0.00025295786326751113,
-0.004815568216145039,
0.041822366416454315,
-0.006375475320965052,
-0.039274051785469055,
-0.032790835946798325,
0.05501365289092064,
0.03597623109817505,
-0.013865838758647442,
0.018250441178679466,
-0.04624444618821144,
-0.04174741730093956,
0.013650355860590935,
0.022129129618406296,
-0.008211761713027954,
0.06247122585773468,
-0.00913927424699068,
0.02214786782860756,
-0.05164087936282158,
0.056887414306402206,
0.022091655060648918,
0.08356978744268417,
0.0707157775759697,
-0.004602428060024977,
0.0027310082223266363,
-0.0439959317445755,
0.039686281234025955,
-0.005391750019043684,
0.05947320535778999,
0.04808073490858078,
-0.02480860985815525,
0.00818833988159895,
-0.019861876964569092,
-0.010296322405338287,
0.0045298198238015175,
0.03301568701863289,
-0.018896890804171562,
-0.06007280945777893,
-0.025089673697948456,
-0.06363295763731003,
-0.08491889387369156,
-0.019843140617012978,
-0.051378555595874786,
-0.03571390360593796,
0.03665078431367874,
0.019824402406811714,
0.006197467911988497,
-0.0035414102021604776,
-0.03147920221090317,
-0.031066974624991417,
0.020611383020877838,
0.01304138358682394,
-0.04950479418039322,
0.021754376590251923,
0.022485144436359406,
-0.03226618096232414,
0.021510787308216095,
-0.0191873237490654,
-0.030654747039079666,
0.04118528962135315,
0.0007781967869959772,
0.027188286185264587,
0.05883612856268883,
-0.041222766041755676,
-0.031010761857032776,
0.026007816195487976,
0.013978264294564724,
-0.010577386245131493,
0.0148027203977108,
-0.029080785810947418,
0.013865838758647442,
-0.013097596354782581,
-0.01811927929520607,
-0.03408373147249222,
0.03507682681083679,
-0.018250441178679466,
-0.0011716868029907346,
-0.005134108010679483,
0.02700091153383255,
-0.018662670627236366,
0.009968413971364498,
0.05898602679371834,
0.00023861188674345613,
-0.024227742105722427,
-0.042384497821331024,
0.035807590931653976,
0.028462445363402367,
-0.013416135683655739,
0.0005726685049012303,
0.0011225005146116018,
0.0635954812169075,
0.011308154091238976,
0.06640612334012985,
-0.02853739634156227,
-0.03770009055733681,
-0.10433106869459152,
0.050554100424051285,
0.007738637272268534,
0.037231650203466415,
0.004871781449764967,
0.020555170252919197,
-0.00837103184312582,
0.010258846916258335,
-0.018297286704182625,
-0.007897906936705112,
0.08769205957651138,
0.02107982337474823,
-0.0045626102946698666,
-0.02454628236591816,
-0.04909256473183632,
-0.029642915353178978,
-0.028743509203195572,
-0.0483805350959301,
0.024059103801846504,
0.01974945142865181,
0.011345628648996353,
-0.011354997754096985,
-0.05827399715781212,
0.017210504040122032
] |
722,995
|
pyvat.party
|
Party
|
Trading party.
Represents either a consumer or business in a given country acting as a
party to a transaction.
:ivar country_code:
Party's legal or effective country of registration or residence as an
ISO 3166-1 alpha-2 country code.
:type country_code: str
:ivar is_business: Whether the part is a legal business entity.
:type is_business: bool
|
class Party(object):
"""Trading party.
Represents either a consumer or business in a given country acting as a
party to a transaction.
:ivar country_code:
Party's legal or effective country of registration or residence as an
ISO 3166-1 alpha-2 country code.
:type country_code: str
:ivar is_business: Whether the part is a legal business entity.
:type is_business: bool
"""
def __init__(self, country_code, is_business):
"""Initialize a trading party.
:param country_code:
Party's legal or effective country of registration or residence as
an ISO 3166-1 alpha-2 country code.
:type country_code: str
:param is_business: Whether the part is a legal business entity.
:type is_business: bool
"""
self.country_code = country_code
self.is_business = is_business
def __repr__(self):
return '<pyvat.Party: country code = %s, is business = %r>' % (
self.country_code, self.is_business,
)
|
(country_code, is_business)
|
[
0.010955693200230598,
-0.06871961057186127,
-0.048708055168390274,
0.035119738429784775,
-0.026163389906287193,
-0.10262707620859146,
-0.002947000088170171,
-0.00005954642256256193,
0.0003338840324431658,
-0.05587313324213028,
-0.005532127805054188,
-0.001467845868319273,
-0.027176633477211,
0.017270371317863464,
-0.11225288361310959,
0.042158160358667374,
0.0007893346482887864,
-0.011127582751214504,
-0.02261703833937645,
-0.03609679266810417,
-0.009164423681795597,
0.02498730458319187,
0.0011551652569323778,
0.05406377092003822,
0.011607063934206963,
0.04074685648083687,
-0.008730176836252213,
0.003442313289269805,
-0.0442570224404335,
-0.06763399392366409,
0.027285195887088776,
-0.029365962371230125,
0.0017878769431263208,
0.028479374945163727,
0.0008826299454085529,
0.02382931113243103,
0.017894601449370384,
0.06209734082221985,
-0.06046891584992409,
0.057320624589920044,
-0.010756663978099823,
-0.0002640539314597845,
0.062242090702056885,
0.01005101203918457,
-0.04852711781859398,
0.015533382073044777,
-0.006292060017585754,
0.06524563580751419,
-0.0015718841459602118,
-0.022418009117245674,
0.007866205647587776,
0.01883547008037567,
0.013832581229507923,
-0.043388526886701584,
-0.035915859043598175,
0.004057496786117554,
0.04436558485031128,
0.09437637776136398,
0.015008666552603245,
0.06882817298173904,
-0.0316457599401474,
0.004858139902353287,
0.030234457924962044,
-0.03832231089472771,
0.005269770044833422,
0.06122884899377823,
-0.04190484806895256,
-0.0010940992506220937,
-0.007400295231491327,
0.039263177663087845,
0.06756161898374557,
0.010720476508140564,
-0.015750505030155182,
0.06520944833755493,
0.06795968115329742,
-0.026434794068336487,
-0.03493880107998848,
0.005048123188316822,
0.03492070734500885,
-0.0075179035775363445,
0.03694719448685646,
-0.05377427116036415,
-0.028967903926968575,
-0.03209809958934784,
0.020789582282304764,
0.016537578776478767,
-0.0036797921638935804,
-0.050300292670726776,
0.04071066901087761,
0.029076464474201202,
-0.047839559614658356,
0.04856330528855324,
-0.013199304230511189,
0.027791816741228104,
0.06195259094238281,
-0.042520031332969666,
0.029040277004241943,
-0.010946646332740784,
0.005581885110586882,
0.018817376345396042,
-0.038503248244524,
0.03622344881296158,
-0.11963509023189545,
-0.0018229333218187094,
0.0065906052477657795,
-0.009661998599767685,
-0.033889371901750565,
-0.0068801031447947025,
0.042121972888708115,
0.02547583170235157,
-0.033455122262239456,
-0.04277334362268448,
-0.0623144656419754,
0.026832854375243187,
-0.001189656206406653,
-0.03571682795882225,
0.011616110801696777,
0.02211041748523712,
-0.016419969499111176,
0.01975824497640133,
0.04389514774084091,
-0.020210586488246918,
-0.05916617438197136,
0.07165078073740005,
0.016311408951878548,
-0.01294599287211895,
0.03170004114508629,
-0.004147964995354414,
0.021278109401464462,
-0.05634356662631035,
0.03864799439907074,
0.009119190275669098,
-0.02426355890929699,
-0.04812905937433243,
0.0024494254030287266,
0.02265322580933571,
0.04020404815673828,
-0.007314350455999374,
-0.021296203136444092,
0.026615731418132782,
-0.005803531967103481,
-0.008381874300539494,
0.010865225456655025,
-0.01603095792233944,
-0.013009320944547653,
0.024046435952186584,
-0.061807844787836075,
-0.061445970088243484,
-0.012801243923604488,
-0.0032591153867542744,
-0.04849093034863472,
0.006875579711049795,
-0.020789582282304764,
0.03618726134300232,
-0.03741762787103653,
-0.030994389206171036,
-0.002220993163064122,
-0.06155453249812126,
0.008137610740959644,
0.013642597943544388,
-0.046971067786216736,
-0.003462668741121888,
0.030469674617052078,
0.018672626465559006,
0.02581961080431938,
0.030469674617052078,
0.016537578776478767,
-0.10479830950498581,
-0.0188535638153553,
0.0022809284273535013,
-0.054425641894340515,
-0.049902234226465225,
-0.06868342310190201,
0.020861957222223282,
-0.025566300377249718,
0.029709741473197937,
0.03314753249287605,
0.01107330247759819,
-0.011616110801696777,
-0.013506895862519741,
0.06209734082221985,
0.015451961196959019,
-0.11008165031671524,
-0.014511091634631157,
0.049504175782203674,
-0.02060864493250847,
0.030216364189982414,
0.021440953016281128,
0.07758548855781555,
0.0012857787078246474,
-0.0024539486039429903,
0.001966551411896944,
0.03609679266810417,
0.03455883637070656,
-0.016609953716397285,
-0.02878696657717228,
0.007404818665236235,
0.027212820947170258,
-0.10863415896892548,
0.041253477334976196,
0.03933555260300636,
-0.018672626465559006,
-0.009087526239454746,
0.004579950124025345,
-0.006133740767836571,
0.044908393174409866,
-0.033545590937137604,
-0.018464550375938416,
-0.04610257223248482,
-0.048708055168390274,
0.024733994156122208,
-0.0647028237581253,
0.012774103321135044,
0.0009764906717464328,
0.05424470454454422,
-0.042483843863010406,
-0.016772795468568802,
-0.01169753260910511,
0.01416731346398592,
0.03445027396082878,
0.05511320009827614,
-0.0348302386701107,
0.04555976390838623,
-0.005925664212554693,
0.035065457224845886,
0.0028248680755496025,
-0.04031261056661606,
0.023666469380259514,
-0.0337265282869339,
-0.03363605961203575,
0.004236171487718821,
0.021531421691179276,
-0.025168240070343018,
-0.02918502688407898,
-0.003799662459641695,
-0.006052319426089525,
0.017894601449370384,
0.011019021272659302,
-0.040421172976493835,
0.03041539341211319,
0.058949049562215805,
-0.0018659057095646858,
0.004405799321830273,
-0.012692682445049286,
-0.05558363348245621,
0.0025670339819043875,
0.02882315404713154,
-0.02012011781334877,
0.012385090813040733,
-0.020427709445357323,
-0.055257949978113174,
-0.03338275104761124,
-0.009101096540689468,
0.0334189347922802,
0.06672931462526321,
-0.062676340341568,
-0.019251624122262,
-0.035861577838659286,
0.004708867520093918,
0.02961927466094494,
-0.03086773492395878,
0.06861104816198349,
0.005391901824623346,
0.06835773587226868,
-0.008938253857195377,
0.017532728612422943,
-0.01623903401196003,
-0.029745928943157196,
0.03705575689673424,
-0.04440177232027054,
0.07990147173404694,
0.006843916140496731,
0.026561450213193893,
0.019034499302506447,
-0.04769480973482132,
-0.05254390463232994,
-0.0005167993367649615,
0.021839013323187828,
-0.024788275361061096,
0.015488147735595703,
0.00626039644703269,
0.014067797921597958,
0.033853184431791306,
0.036295823752880096,
-0.0038200179114937782,
-0.052869588136672974,
-0.03535495325922966,
-0.010421931743621826,
0.005672353319823742,
-0.047911934554576874,
-0.031464822590351105,
0.009616765193641186,
0.08880354464054108,
0.024516869336366653,
0.0738220140337944,
0.04092779383063316,
-0.01148040872067213,
0.017776992172002792,
0.02057245932519436,
-0.06669312715530396,
0.04758625105023384,
0.05511320009827614,
0.0647028237581253,
-0.009625812061131,
-0.008680419065058231,
-0.03627773001790047,
0.031338170170784,
-0.012059405446052551,
-0.006545370910316706,
0.003023897996172309,
0.01937827840447426,
-0.00983388815075159,
0.057754870504140854,
0.019884901121258736,
0.021260015666484833,
-0.015117228962481022,
-0.03969742730259895,
-0.07023947685956955,
0.017351791262626648,
0.05011935904622078,
0.007938580587506294,
-0.03369034081697464,
0.01887165755033493,
0.05348477140069008,
-0.0036481283605098724,
-0.029384056106209755,
-0.029492618516087532,
0.06582462787628174,
-0.02259894460439682,
-0.017822226509451866,
-0.09003391116857529,
-0.015035807155072689,
0.004240694921463728,
0.05084310472011566,
-0.001212273258715868,
-0.01173372007906437,
0.007061039563268423,
-0.06368958204984665,
0.006721783895045519,
-0.0068167755380272865,
0.05142210051417351,
-0.015714319422841072,
-0.051132600754499435,
0.0559455081820488,
0.0018738217186182737,
-0.009815794415771961,
-0.06372576951980591,
-0.020246773958206177,
0.07758548855781555,
0.03828612342476845,
-0.0418686605989933,
-0.016519485041499138,
0.044618893414735794,
0.030071614310145378,
0.01764129102230072,
-0.007572184782475233,
0.010666195303201675,
0.011616110801696777,
-0.014845823869109154,
0.024444496259093285,
0.06698261946439743,
-0.05840624123811722,
-0.015053900890052319,
0.00040201787487603724,
-0.08395444601774216,
-0.018799282610416412,
0.03944411501288414,
-0.006273966748267412,
-0.006812252104282379,
0.0100691057741642,
-0.027249008417129517,
-0.06206115335226059,
-0.04874424263834953,
0.0012529839295893908,
0.005871383473277092,
0.007698839996010065,
0.015035807155072689,
0.03533685952425003,
-0.009933403693139553,
-0.030324924737215042,
-0.0013649383326992393,
0.0267785731703043,
0.015922395512461662,
0.055619820952415466,
-0.014465858228504658,
-0.010005777701735497,
0.01923353038728237,
0.01977633871138096,
0.0058532897382974625,
0.06173546984791756,
0.03832231089472771,
0.000726572354324162,
0.018446456640958786,
-0.031084857881069183,
-0.026905229315161705,
-0.07490763068199158,
-0.030632516369223595,
-0.0632915198802948,
-0.015542428940534592,
-0.03774331510066986,
0.03294850140810013,
-0.03573492169380188,
-0.04270096868276596,
-0.012186060659587383,
-0.04237528517842293,
0.01292789913713932,
0.037924252450466156,
0.02469780668616295,
-0.0013185733696445823,
-0.003781568957492709,
-0.021549515426158905,
0.002804512856528163,
0.0010420801118016243,
-0.06206115335226059,
-0.018175052478909492,
-0.021639982238411903,
0.044582705944776535,
-0.014664888381958008,
0.028624124825000763,
-0.0218209195882082,
0.050336480140686035,
0.008571857586503029,
0.05952804535627365,
0.019450653344392776,
-0.017957929521799088,
-0.00862161535769701,
-0.012167966924607754,
-0.008413538336753845,
0.05757393315434456,
0.00988816935569048,
0.03218856826424599,
-0.019486840814352036,
-0.06318295747041702,
-0.0434609018266201,
0.05131353810429573,
0.011507549323141575,
0.005097880493849516,
-0.019124967977404594,
0.03662151098251343,
0.021658075973391533,
-0.028587937355041504,
0.03291231393814087,
-0.012683635577559471,
0.011607063934206963,
-0.02676047943532467,
-0.056054070591926575,
-0.04465508088469505,
-0.03488451987504959,
0.05996229499578476,
-0.011742766946554184,
0.02095242403447628,
0.005423565860837698,
0.014673934318125248,
-0.0031505534425377846,
-0.03897368162870407,
-0.013289771974086761,
0.05905761197209358,
-0.024010248482227325,
-0.014067797921597958,
-0.01559671014547348,
-0.011887515895068645,
0.024933023378252983,
0.07758548855781555,
0.0013852936681360006,
-0.004557333420962095,
0.03864799439907074,
0.020427709445357323,
-0.06962428987026215,
-0.024028342217206955,
0.009553437121212482,
0.018220286816358566,
0.014818684197962284,
0.02551201917231083,
-0.013045508414506912,
0.02840700000524521,
0.02871459163725376,
-0.0214228592813015,
-0.009517249651253223,
-0.07838161289691925,
-0.07454576343297958,
-0.004000954329967499,
0.043388526886701584,
-0.01479154359549284,
0.023539813235402107,
-0.026959510520100594,
-0.0048309992998838425,
0.008766364306211472,
0.017822226509451866,
-0.0254939254373312,
-0.019993461668491364,
-0.015741458162665367,
0.014067797921597958,
0.0075812311843037605,
-0.03539114072918892,
-0.0016205108258873224,
0.04501695558428764,
0.0005631642416119576,
0.053629521280527115,
-0.00014616260887123644,
-0.06499232351779938,
-0.014872964471578598,
-0.01811172440648079,
-0.006147311069071293,
-0.03524639457464218,
0.019197342917323112,
-0.044618893414735794,
-0.03423314914107323,
0.02296081744134426,
0.003625511424615979,
0.0706375390291214,
-0.018564065918326378,
-0.00606136629357934,
0.018500737845897675,
-0.04451033100485802,
0.005409995559602976,
0.03973361477255821,
0.024770181626081467,
0.02057245932519436,
-0.0535571463406086,
-0.03861180692911148,
0.08062522113323212,
0.01580478623509407,
0.05967279523611069,
0.026905229315161705,
0.047007251530885696,
0.021983761340379715,
-0.05829767882823944,
-0.007481716573238373,
-0.01271982304751873,
-0.026109108701348305,
0.03995073586702347,
-0.0329304076731205,
-0.021097173914313316,
-0.012448417954146862,
-0.0008306107483804226,
0.014854870736598969,
-0.02055436559021473,
-0.04013167321681976,
0.03703766316175461,
0.029347868636250496,
0.015587663277983665,
0.020807676017284393,
-0.05507701262831688,
0.006314677186310291,
0.025711050257086754,
-0.031084857881069183,
0.0024516868870705366,
-0.056488316506147385,
-0.029275495558977127,
0.035915859043598175,
0.05826149135828018,
-0.02173045091331005,
0.040891606360673904,
0.016347596421837807,
0.07266402244567871,
0.03238759934902191,
-0.0262900460511446,
-0.007346014026552439,
0.00472243782132864,
0.003299826057627797,
0.028244158253073692,
-0.001467845868319273,
-0.025747237727046013,
0.0018003162695094943,
-0.028153689578175545,
-0.025113960728049278,
0.025982454419136047,
-0.03208000957965851,
0.035083550959825516,
-0.00394667312502861,
0.03875655680894852,
-0.007029375527054071,
0.01603095792233944,
0.06969666481018066,
-0.04309903085231781,
0.023576000705361366,
-0.025584394112229347,
-0.0002543003356549889,
0.019106874242424965,
-0.0048038591630756855,
-0.022761788219213486,
-0.011471361853182316,
-0.0358072966337204,
-0.08236220479011536,
-0.045849259942770004,
0.010114340111613274,
-0.009291079826653004,
-0.0015040331054478884,
0.03249616175889969,
-0.01883547008037567,
0.028153689578175545,
-0.04570451006293297,
0.012602213770151138,
0.011326612904667854,
0.009861028753221035,
-0.00646394956856966,
-0.015759551897644997,
-0.020029649138450623,
0.023214127868413925,
-0.05533032491803169,
-0.019993461668491364,
0.012312715873122215,
-0.011353753507137299,
-0.012195107527077198,
0.053231462836265564,
0.013742112554609776,
-0.0565606914460659,
-0.036404386162757874,
0.008277836255729198,
-0.021929480135440826,
0.016229987144470215,
0.0013513680314645171,
-0.01743321307003498,
-0.035065457224845886,
0.010159573517739773,
-0.03495689481496811,
-0.02180282585322857,
0.023720750585198402,
-0.04110873118042946,
0.042447660118341446,
-0.03904605656862259,
0.006920814048498869,
-0.002476565772667527,
0.047043439000844955,
-0.05221821740269661,
-0.047477688640356064,
-0.0007209181203506887,
-0.08684942871332169,
0.03396174684166908,
-0.05290577560663223,
0.009191564284265041,
0.037996623665094376,
-0.03490261361002922,
-0.06484757363796234,
0.011263285763561726,
0.004138918127864599,
0.023232221603393555,
-0.015813833102583885,
-0.0029560469556599855,
0.007264592684805393,
-0.049504175782203674,
0.030885828658938408,
-0.050336480140686035,
0.02504158578813076,
-0.031121045351028442,
0.01111853588372469,
-0.1091407835483551,
-0.019848713651299477,
-0.0008696251315996051,
-0.038032811135053635,
-0.021585701033473015,
0.05268865451216698,
0.026995697990059853,
-0.008020002394914627,
-0.0559455081820488,
0.06557131558656693,
0.03734525293111801,
0.049467988312244415,
0.06441332399845123,
0.0607222244143486,
-0.033835090696811676,
0.002308068796992302,
0.03824993595480919,
-0.019541122019290924,
0.06712736934423447,
0.027719441801309586,
0.017767945304512978,
-0.05008317157626152,
-0.009218704886734486,
-0.013597363606095314,
-0.003378985682502389,
0.05706731230020523,
0.03868418186903,
0.014067797921597958,
-0.05829767882823944,
-0.016528531908988953,
-0.008119517005980015,
0.00025613795151002705,
0.018582159653306007,
0.02088005095720291,
0.07490763068199158,
-0.018256474286317825,
0.03003542684018612,
-0.07251927256584167,
0.03828612342476845,
0.06242302805185318,
-0.030994389206171036,
0.005229059141129255,
-0.024842554703354836,
-0.1131213828921318,
-0.025747237727046013,
-0.06520944833755493,
0.014882011339068413,
0.023684563115239143,
0.06861104816198349,
0.003942149691283703,
-0.02171235717833042,
-0.0434609018266201,
-0.024498775601387024,
0.015524335205554962,
0.044546518474817276,
0.016591859981417656,
0.02225516550242901,
0.04327996447682381,
-0.03128388896584511,
0.04429320991039276,
-0.010385744273662567,
0.014031610451638699,
0.06195259094238281,
-0.002852008678019047,
0.012593166902661324,
0.05627119168639183,
0.014384436421096325,
-0.04407608509063721,
0.07118034362792969,
0.032604724168777466,
0.009318220429122448,
0.05381045863032341,
-0.03575301542878151,
-0.010928553529083729,
0.011887515895068645,
0.012095591984689236,
0.022074230015277863,
-0.055185575038194656,
-0.003338275011628866,
0.02587389200925827,
0.019143061712384224,
0.004494005814194679,
-0.04972129687666893,
0.003519211197271943,
0.020753394812345505,
0.034269336611032486,
-0.0565606914460659,
-0.037128131836652756,
-0.009508202783763409,
-0.003976075444370508,
-0.008897542953491211,
0.01214082632213831,
0.024480681866407394,
0.031844791024923325,
-0.03781569004058838,
0.05876811221241951,
0.013280725106596947,
-0.009716279804706573,
-0.024136904627084732,
0.05703112483024597,
-0.0019292334327474236,
-0.0027230915147811174,
0.03159147873520851,
0.06633125245571136,
0.019414465874433517,
0.05721206218004227,
0.015062947757542133,
-0.003428742988035083,
0.03170004114508629,
-0.025602487847208977,
0.02623576484620571,
0.004371873568743467,
-0.04277334362268448,
-0.06036035344004631,
-0.04961273446679115,
0.0011953104985877872,
0.04327996447682381,
0.004417107440531254,
0.04530645161867142,
0.011308519169688225,
-0.040095485746860504,
0.04157916456460953
] |
722,996
|
pyvat.party
|
__init__
|
Initialize a trading party.
:param country_code:
Party's legal or effective country of registration or residence as
an ISO 3166-1 alpha-2 country code.
:type country_code: str
:param is_business: Whether the part is a legal business entity.
:type is_business: bool
|
def __init__(self, country_code, is_business):
"""Initialize a trading party.
:param country_code:
Party's legal or effective country of registration or residence as
an ISO 3166-1 alpha-2 country code.
:type country_code: str
:param is_business: Whether the part is a legal business entity.
:type is_business: bool
"""
self.country_code = country_code
self.is_business = is_business
|
(self, country_code, is_business)
|
[
-0.019485538825392723,
-0.04303696006536484,
-0.00042492765351198614,
-0.004605280701071024,
-0.059377193450927734,
-0.07621607929468155,
-0.009896199218928814,
0.0030661914497613907,
0.006573492661118507,
-0.04760148376226425,
0.0037182667292654514,
0.023915814235806465,
-0.03722582012414932,
0.01615803875029087,
-0.0734543427824974,
0.03243114799261093,
0.0012897662818431854,
-0.0019022853812202811,
-0.030896853655576706,
-0.04365067556500435,
-0.014729226939380169,
0.029937921091914177,
-0.020329400897026062,
0.0782490149140358,
0.04940428212285042,
0.0937453880906105,
-0.01552514173090458,
0.01847865805029869,
-0.03461751714348793,
-0.040313586592674255,
0.03759021311998367,
-0.01004003919661045,
-0.013204521499574184,
0.06589794903993607,
-0.004005946684628725,
0.024548711255192757,
0.009205766953527927,
0.024280209094285965,
-0.09919213503599167,
0.0481768436729908,
0.01179488841444254,
-0.005446745082736015,
0.046795979142189026,
0.02629397064447403,
-0.05684560909867287,
0.0017081012483686209,
-0.0282501969486475,
0.00782010704278946,
-0.011229117400944233,
-0.010749650187790394,
0.0014108316972851753,
0.02410760149359703,
0.009747564792633057,
-0.04119580611586571,
-0.07383792102336884,
0.01461415458470583,
0.03879847005009651,
0.08453962206840515,
0.012446963228285313,
0.07567907124757767,
-0.05726753920316696,
0.008414645679295063,
0.0004896557074971497,
-0.040313586592674255,
-0.0033778450451791286,
0.05492774024605751,
-0.05807304382324219,
-0.0004782683390658349,
0.022554127499461174,
0.049711138010025024,
0.08400262147188187,
0.043727390468120575,
-0.028691306710243225,
0.056807249784469604,
0.04468632489442825,
-0.025008998811244965,
-0.058149758726358414,
0.012485320679843426,
-0.008424235507845879,
0.024126779288053513,
0.019888291135430336,
0.008136555552482605,
-0.037877894937992096,
-0.015237461775541306,
0.026083005592226982,
-0.012859305366873741,
0.013329182751476765,
-0.03009134903550148,
0.04480139911174774,
0.03734089061617851,
-0.060873132199048996,
0.0026394659653306007,
-0.013194932602345943,
0.02358977682888508,
0.05807304382324219,
-0.032488685101270676,
0.039930012077093124,
-0.003950808197259903,
0.02922830916941166,
0.016589557752013206,
-0.006050873547792435,
-0.006036489736288786,
-0.06670345366001129,
-0.023282917216420174,
0.02729126252233982,
-0.023934993892908096,
-0.023148667067289352,
-0.03404215723276138,
0.029017344117164612,
-0.003394626546651125,
-0.009886609390377998,
-0.04242324084043503,
-0.04491646960377693,
0.02458706870675087,
-0.003725458635017276,
-0.019408823922276497,
0.04879056289792061,
0.02961188182234764,
-0.0001786014618119225,
0.023397989571094513,
0.014594975858926773,
-0.013712756335735321,
-0.05481266975402832,
0.051092006266117096,
0.05220436677336693,
0.013386718928813934,
0.027425512671470642,
-0.002459665760397911,
0.0347517691552639,
-0.04510825499892235,
0.10555946081876755,
-0.029017344117164612,
-0.01315657515078783,
-0.06647330522537231,
-0.0163881815969944,
-0.01907319761812687,
0.06574451923370361,
0.007767365779727697,
-0.034924376755952835,
0.023282917216420174,
-0.014412778429687023,
0.004996046423912048,
-0.004761107265949249,
0.0021576015278697014,
-0.018891001120209694,
0.04913577809929848,
-0.060105983167886734,
-0.06417186558246613,
-0.012648339383304119,
0.01492101326584816,
-0.00912425760179758,
0.010663346387445927,
-0.030551638454198837,
0.027809087187051773,
-0.0423465259373188,
-0.057190824300050735,
0.0204444732517004,
-0.058149758726358414,
0.008582459762692451,
0.03538466617465019,
-0.011698994785547256,
0.006026900373399258,
0.02031022310256958,
0.006103615276515484,
-0.0010991781018674374,
0.007331050466746092,
-0.025546003133058548,
-0.09175080806016922,
-0.010049629025161266,
-0.017586849629878998,
-0.026946045458316803,
-0.061218347400426865,
-0.06355814635753632,
0.013904543593525887,
-0.020233508199453354,
0.02754058502614498,
0.04211638122797012,
0.016225162893533707,
-0.013377130031585693,
-0.011114045046269894,
0.05822647362947464,
0.041387591511011124,
-0.10264429450035095,
0.006870762445032597,
0.04902070760726929,
-0.017164919525384903,
0.012562035582959652,
0.03519287705421448,
0.059262122958898544,
0.013722346164286137,
0.0237240269780159,
0.005221395753324032,
-0.008400262333452702,
0.019754040986299515,
-0.01448949333280325,
-0.05017142742872238,
0.027828264981508255,
0.0022355150431394577,
-0.0984249860048294,
0.0459904745221138,
0.03513534367084503,
0.04879056289792061,
0.008740684017539024,
-0.015448426827788353,
0.029420096427202225,
0.03463669866323471,
-0.020406115800142288,
0.007613935973495245,
-0.03866421803832054,
-0.04050537198781967,
0.013146985322237015,
-0.07122962176799774,
0.021576015278697014,
0.016723809763789177,
0.035653166472911835,
-0.03977658227086067,
-0.016225162893533707,
-0.007359818555414677,
0.021480122581124306,
0.04522332921624184,
0.07736679911613464,
-0.03208593279123306,
0.06240742653608322,
-0.023685669526457787,
0.05051664263010025,
0.025411751121282578,
-0.02886391431093216,
-0.01590871624648571,
-0.05454416573047638,
-0.009877020493149757,
-0.05811140313744545,
-0.0011291448026895523,
-0.019044429063796997,
-0.028211839497089386,
-0.0019837948493659496,
-0.05001799762248993,
0.007661882787942886,
0.0007923192461021245,
-0.08737806975841522,
-0.019475949928164482,
0.06678016483783722,
0.008443414233624935,
-0.005274137016385794,
-0.00024033283989410847,
-0.06758566945791245,
0.013549737632274628,
0.003948410972952843,
0.019485538825392723,
-0.00721597857773304,
-0.03856832534074783,
-0.062330711632966995,
-0.037724465131759644,
-0.015064853243529797,
0.03477094694972038,
0.024299388751387596,
-0.02004172094166279,
0.00522619066759944,
-0.03306404501199722,
0.027003582566976547,
0.027847444638609886,
-0.023781564086675644,
0.016838882118463516,
-0.016589557752013206,
0.08561363071203232,
0.014048383571207523,
-0.006904324982315302,
-0.009723590686917305,
0.008438619785010815,
0.03902861475944519,
-0.055733244866132736,
0.15204857289791107,
-0.004133005626499653,
0.029305024072527885,
0.0219020526856184,
-0.02055954560637474,
-0.07870930433273315,
0.01614844985306263,
-0.009215355850756168,
-0.027444692328572273,
0.021844517439603806,
0.07395299524068832,
0.018008781597018242,
0.03910532966256142,
0.042883530259132385,
-0.0036631280090659857,
-0.0369381383061409,
-0.01149761863052845,
-0.007374202832579613,
-0.020233508199453354,
-0.03879847005009651,
-0.04296024516224861,
0.03596002608537674,
0.06708702445030212,
0.054122235625982285,
0.08400262147188187,
0.014930603094398975,
0.030052991583943367,
-0.0143072959035635,
0.01094143744558096,
-0.057459328323602676,
0.04660419374704361,
0.029784491285681725,
0.05600174888968468,
0.023302096873521805,
-0.035288773477077484,
-0.03837653994560242,
-0.006468010134994984,
0.004780285991728306,
-0.0008936066296882927,
0.01552514173090458,
0.019658148288726807,
0.03459833934903145,
0.04725626856088638,
0.02203630469739437,
0.025469288229942322,
-0.015927894040942192,
-0.012753822840750217,
-0.07713665068149567,
0.0044278777204453945,
0.050209786742925644,
0.002185171004384756,
-0.07383792102336884,
0.03363940492272377,
-0.004667611327022314,
-0.0226308424025774,
-0.03611345589160919,
-0.014029204845428467,
0.02228562720119953,
-0.010816776193678379,
-0.019773218780755997,
-0.0770982950925827,
-0.00746050663292408,
0.018564961850643158,
0.01725122332572937,
-0.01885264366865158,
-0.027694014832377434,
-0.012072979472577572,
-0.045952118933200836,
-0.018938947468996048,
-0.019965006038546562,
0.06869803369045258,
-0.028940629214048386,
-0.043497245758771896,
0.04675762355327606,
-0.0004264259769115597,
-0.029209129512310028,
-0.06198549643158913,
-0.06002926826477051,
0.060988202691078186,
-0.002577135106548667,
-0.03780118003487587,
-0.04821520298719406,
0.041272521018981934,
0.035288773477077484,
0.04641240835189819,
0.006722127553075552,
-0.009867430664598942,
0.028902271762490273,
0.010835954919457436,
-0.011037331074476242,
0.07809558510780334,
-0.04430275037884712,
-0.011708584614098072,
0.019869113340973854,
-0.06758566945791245,
-0.006252249702811241,
0.02815430238842964,
0.02677343785762787,
0.004025125410407782,
0.005120707675814629,
-0.0031213301699608564,
-0.08668763935565948,
-0.025239143520593643,
0.0069618611596524715,
0.02115408517420292,
-0.011027741245925426,
0.0013437062734737992,
0.021576015278697014,
-0.040697161108255386,
-0.015975840389728546,
-0.044839754700660706,
0.019380057230591774,
0.009651671163737774,
0.03816557303071022,
-0.025967933237552643,
-0.023819921538233757,
-0.019658148288726807,
0.040198516100645065,
0.025852860882878304,
0.0445328950881958,
0.020885583013296127,
0.010020860470831394,
0.024510353803634644,
-0.03571070358157158,
-0.006089230999350548,
-0.028825556859374046,
-0.02717619016766548,
-0.02470214106142521,
-0.016666272655129433,
-0.014460724778473377,
0.04207802563905716,
-0.05653874948620796,
-0.019054019823670387,
0.004797067493200302,
-0.027962516993284225,
0.03045574389398098,
0.028441982343792915,
0.019610200077295303,
0.0018483453895896673,
0.00715364795178175,
-0.006448831409215927,
-0.004274448379874229,
-0.02568025328218937,
-0.057689469307661057,
-0.04656583443284035,
0.017711510881781578,
0.026255613192915916,
0.00734063982963562,
0.016944363713264465,
-0.042499955743551254,
0.04533839970827103,
-0.003054204862564802,
0.04039030149579048,
0.035173699259757996,
0.004077867139130831,
0.04008344188332558,
0.010663346387445927,
0.009503035806119442,
0.04990292713046074,
-0.01228394452482462,
-0.011488029733300209,
0.01564021408557892,
-0.059875842183828354,
-0.019475949928164482,
0.02238151989877224,
0.02754058502614498,
-0.030379028990864754,
-0.02322538197040558,
0.02815430238842964,
-0.005120707675814629,
-0.014019615016877651,
-0.004432672634720802,
0.004710763227194548,
0.010816776193678379,
-0.049979642033576965,
-0.05116872116923332,
-0.03828064724802971,
-0.017932066693902016,
0.05074678733944893,
-0.023397989571094513,
0.031011926010251045,
0.01967732608318329,
0.007374202832579613,
-0.023282917216420174,
-0.010059217922389507,
-0.03534630686044693,
0.0012837728718295693,
-0.004025125410407782,
-0.016215573996305466,
-0.007968741469085217,
-0.027559764683246613,
0.025872040539979935,
0.03755185753107071,
0.0005301107303239405,
0.035058628767728806,
0.064517080783844,
0.007177621126174927,
-0.02583368308842182,
-0.002394937677308917,
-0.00012526076170615852,
-0.03404215723276138,
0.020943118259310722,
0.02729126252233982,
0.017586849629878998,
0.028844734653830528,
0.011842834763228893,
-0.03427230194211006,
-0.014384010806679726,
-0.07222691178321838,
-0.05419895052909851,
0.018075905740261078,
0.031376320868730545,
-0.023282917216420174,
0.026869330555200577,
-0.011238707229495049,
-0.048637133091688156,
0.010912668891251087,
-0.01364563126116991,
-0.023934993892908096,
-0.00855369120836258,
-0.02115408517420292,
0.03743678331375122,
0.03647784888744354,
-0.04675762355327606,
0.03312158212065697,
0.025277500972151756,
0.004025125410407782,
0.04714119806885719,
0.014757994562387466,
-0.02556518092751503,
-0.03390790894627571,
-0.018133442848920822,
-0.01821974664926529,
-0.04706448316574097,
0.03536548838019371,
-0.03490519896149635,
-0.06781581789255142,
0.022074662148952484,
-0.018766338005661964,
0.03939301148056984,
-0.02215137518942356,
-0.011085277423262596,
0.00879821926355362,
-0.02422267384827137,
0.024433638900518417,
0.03118453361093998,
0.0004851606790907681,
0.030666710808873177,
-0.05554145947098732,
0.013923722319304943,
0.05696067959070206,
0.028595412150025368,
0.045184969902038574,
-0.004113826900720596,
0.05519624426960945,
-0.006338553968816996,
-0.018938947468996048,
-0.023954171687364578,
0.015947073698043823,
-0.03047492355108261,
0.027061117812991142,
-0.05895526334643364,
-0.008606432937085629,
0.032584577798843384,
-0.012715465389192104,
0.013866186141967773,
-0.04503154009580612,
-0.01603337749838829,
0.04645076394081116,
0.016359414905309677,
0.019485538825392723,
0.03367776423692703,
-0.022956879809498787,
-0.02004172094166279,
0.01834440790116787,
-0.027828264981508255,
-0.004727544728666544,
-0.018200566992163658,
-0.030359851196408272,
0.029995456337928772,
0.05884019285440445,
-0.04748641327023506,
0.0021588001400232315,
0.003430586541071534,
0.06547601521015167,
0.023800741881132126,
-0.002610697876662016,
0.015074443072080612,
0.02358977682888508,
-0.011938728392124176,
-0.005916622933000326,
-0.016071734949946404,
-0.06091148778796196,
0.01210174709558487,
-0.033812012523412704,
-0.012351070530712605,
0.008846166543662548,
-0.05857168883085251,
-0.005705657415091991,
0.005331673193722963,
0.04806177318096161,
-0.021096548065543175,
0.03461751714348793,
0.0966605469584465,
-0.05151393637061119,
0.008659174665808678,
-0.016071734949946404,
0.01798001304268837,
0.017212865874171257,
-0.009037952870130539,
-0.02301441691815853,
-0.012437374331057072,
-0.05638531967997551,
-0.03996837139129639,
-0.03791625052690506,
0.004523771349340677,
-0.021115727722644806,
-0.03323665261268616,
0.023397989571094513,
-0.040812231600284576,
0.027713192626833916,
-0.03889436274766922,
0.01783617213368416,
0.006631028838455677,
-0.021844517439603806,
0.006539930123835802,
0.0081940907984972,
-0.0716899111866951,
0.020482830703258514,
-0.028921449556946754,
-0.029937921091914177,
0.0489056371152401,
-0.03484766185283661,
0.02913241647183895,
0.07153648138046265,
0.038587506860494614,
-0.06720209866762161,
-0.006779663730412722,
-0.008261216804385185,
-0.01107568759471178,
0.027310440316796303,
0.00025576568441465497,
-0.022419877350330353,
-0.036631278693675995,
0.012303123250603676,
-0.04211638122797012,
0.014700458385050297,
-0.006765279453247786,
-0.006511162035167217,
0.0197156835347414,
-0.04284517094492912,
0.010298951528966427,
0.012360659427940845,
0.060105983167886734,
-0.08814521878957748,
-0.03682306781411171,
-0.008409851230680943,
-0.08822192996740341,
-0.028058409690856934,
-0.05366194620728493,
0.027962516993284225,
0.027003582566976547,
-0.0405820868909359,
-0.07939973473548889,
0.026869330555200577,
0.01934169977903366,
0.021710265427827835,
0.014901834540069103,
0.02800087444484234,
0.01627311110496521,
-0.0383957177400589,
0.07955316454172134,
-0.013990847393870354,
0.0047155581414699554,
-0.021077370271086693,
0.01437442097812891,
-0.10157029330730438,
-0.03904779255390167,
0.015036085620522499,
-0.02508571371436119,
-0.04917413741350174,
0.050708431750535965,
0.02006090059876442,
0.0438041053712368,
-0.04027522727847099,
0.04418767988681793,
0.01567857153713703,
0.05799632892012596,
0.07261048257350922,
-0.01653202250599861,
-0.05147557705640793,
0.013214111328125,
0.0229952372610569,
-0.0071009062230587006,
0.014988139271736145,
-0.0011273467680439353,
0.015496374107897282,
-0.07027068734169006,
-0.02556518092751503,
-0.005696068052202463,
-0.03095439076423645,
0.06271428614854813,
0.025718610733747482,
0.02228562720119953,
-0.005398798733949661,
0.017816994339227676,
-0.043995894491672516,
-0.03743678331375122,
0.04932756721973419,
0.03826146945357323,
0.038971077650785446,
-0.013501791283488274,
0.014988139271736145,
-0.09689069539308548,
-0.0011369361309334636,
0.05446745082736015,
-0.03179825097322464,
0.021576015278697014,
-0.023551419377326965,
-0.07510371506214142,
-0.05324001610279083,
-0.0438041053712368,
-0.008726299740374088,
0.018430711701512337,
0.08944936841726303,
-0.003269965061917901,
-0.05074678733944893,
-0.046680908650159836,
-0.004013138823211193,
0.033831194043159485,
0.03922040015459061,
0.022419877350330353,
-0.004895358346402645,
0.0474480539560318,
-0.04100402072072029,
0.03411887213587761,
-0.004948099609464407,
-0.008558486588299274,
0.0459904745221138,
-0.01626352034509182,
0.021556837484240532,
0.03782035782933235,
-0.007407765369862318,
-0.03484766185283661,
0.014662100933492184,
0.024893926456570625,
0.008448208682239056,
0.06608973443508148,
-0.03580659627914429,
-0.033217474818229675,
0.04833027347922325,
-0.002199554815888405,
0.005149475764483213,
-0.054620880633592606,
0.007992714643478394,
0.0024081231094896793,
-0.02322538197040558,
0.003797378623858094,
-0.003996357321739197,
-0.010960616171360016,
0.015860768035054207,
0.0044350698590278625,
-0.0644020065665245,
-0.0025939166080206633,
-0.018862232565879822,
-0.016100501641631126,
0.028614591807127,
0.032718829810619354,
0.04583704471588135,
0.022170554846525192,
-0.004204925615340471,
0.06332800537347794,
0.025718610733747482,
0.011651048436760902,
-0.013348361477255821,
0.08990965783596039,
0.003485725261271,
-0.05324001610279083,
0.0413108766078949,
0.06463215500116348,
-0.0233596321195364,
0.015716928988695145,
0.013712756335735321,
0.0058111404068768024,
-0.001366480952128768,
-0.006348143331706524,
-0.0000979910691967234,
0.02629397064447403,
-0.044724684208631516,
-0.0275214072316885,
-0.03421476483345032,
-0.0052789319306612015,
0.07644622027873993,
-0.009469473734498024,
0.07479685544967651,
-0.009675644338130951,
-0.004914537072181702,
0.029688596725463867
] |
722,997
|
pyvat.party
|
__repr__
| null |
def __repr__(self):
return '<pyvat.Party: country code = %s, is business = %r>' % (
self.country_code, self.is_business,
)
|
(self)
|
[
0.02071445807814598,
-0.07806380838155746,
0.059030838310718536,
0.007987051270902157,
-0.014668269082903862,
-0.10181925445795059,
0.020964890718460083,
-0.04210866242647171,
0.035668935626745224,
-0.0746292918920517,
-0.02164464071393013,
-0.0118598323315382,
-0.03357602655887604,
0.014060072600841522,
-0.059030838310718536,
0.057027366012334824,
0.001442230655811727,
-0.04833373427391052,
0.016215592622756958,
-0.012074489146471024,
-0.018532104790210724,
0.02049979940056801,
0.0267606470733881,
0.03845948353409767,
0.04479188472032547,
0.035382725298404694,
-0.02509704977273941,
-0.008192764595150948,
-0.007513015531003475,
-0.02049979940056801,
-0.01965905725955963,
-0.04990788921713829,
0.009963690303266048,
-0.022682152688503265,
-0.0160814318805933,
0.07033614069223404,
-0.015160192735493183,
0.01520491298288107,
-0.046401817351579666,
0.050337206572294235,
0.022395942360162735,
-0.01777186058461666,
0.0020638431888073683,
0.0009391269413754344,
-0.027225738391280174,
-0.03366546705365181,
0.025687359273433685,
0.029336538165807724,
0.018818315118551254,
-0.05978213995695114,
-0.010706047527492046,
0.04711734130978584,
-0.022914698347449303,
-0.01569683663547039,
-0.07978107035160065,
-0.023218795657157898,
0.03724309056997299,
0.06375330686569214,
0.03008783981204033,
0.07491549849510193,
-0.10153304040431976,
0.0056302896700799465,
-0.0017664531478658319,
-0.04425524175167084,
0.03731464594602585,
0.01965905725955963,
-0.06443305313587189,
0.013952743262052536,
-0.023451341316103935,
0.032466959208250046,
0.08321559429168701,
0.004429548978805542,
-0.02846001833677292,
0.044684555381536484,
0.0005123273003846407,
-0.010929648764431477,
0.0037073155399411917,
0.004816379863768816,
0.009489654563367367,
-0.03870991989970207,
0.046115607023239136,
0.005572153255343437,
-0.029103992506861687,
-0.01729782484471798,
-0.0020560172852128744,
-0.011636230163276196,
-0.0024148980155587196,
-0.03749352693557739,
-0.011484181508421898,
0.04650914669036865,
-0.020768122747540474,
-0.00046257593203336,
-0.023487119004130363,
0.04239487275481224,
-0.0038437123876065016,
-0.024631958454847336,
0.032717395573854446,
-0.0028911693952977657,
0.06833266466856003,
-0.01151101291179657,
0.004550293553620577,
-0.027959151193499565,
-0.12149620056152344,
-0.034702979028224945,
-0.015974102541804314,
-0.014131625182926655,
-0.028942998498678207,
0.00430880393832922,
-0.010553997941315174,
0.025043385103344917,
-0.005397744011133909,
0.03475664183497429,
-0.032180748879909515,
-0.009936857968568802,
0.04275263845920563,
-0.000905586697626859,
0.008546055294573307,
0.023379789665341377,
0.01732465624809265,
0.033522360026836395,
0.02033880725502968,
-0.008259844966232777,
-0.013192498125135899,
0.030857028439641,
-0.016922174021601677,
0.04786864295601845,
-0.017601922154426575,
0.005670538172125816,
0.04150046780705452,
-0.08035349100828171,
0.07101588696241379,
-0.04389747604727745,
-0.03362968936562538,
-0.06353864818811417,
0.0016714223893359303,
-0.0017776332097128034,
0.05781444534659386,
-0.015222800895571709,
0.01567000336945057,
0.09781230986118317,
-0.0201778132468462,
-0.004355760291218758,
0.011215859092772007,
0.024059537798166275,
0.007906554266810417,
0.006484447978436947,
-0.011242691427469254,
0.04264530912041664,
0.0031505473889410496,
-0.03760085627436638,
0.016474969685077667,
0.04607982933521271,
-0.016394473612308502,
0.0007820468163117766,
-0.045543186366558075,
0.01768241822719574,
0.020231477916240692,
-0.03727886825799942,
0.01819223165512085,
0.0018156454898416996,
-0.035472165793180466,
-0.03956855088472366,
0.010813375934958458,
0.0021980043966323137,
-0.007436991203576326,
0.03373701870441437,
0.03008783981204033,
-0.06962060928344727,
0.035436391830444336,
0.02270003966987133,
-0.025615805760025978,
-0.09681057184934616,
-0.0798526257276535,
0.025776799768209457,
-0.027100520208477974,
0.06414684653282166,
0.035722602158784866,
0.04629448801279068,
-0.014551996253430843,
0.01687745377421379,
0.05835108831524849,
-0.004798491485416889,
-0.10067441314458847,
0.0030029702465981245,
0.058816179633140564,
-0.0537717267870903,
0.04425524175167084,
-0.01066132728010416,
0.06733093410730362,
0.010974369011819363,
0.03906768187880516,
0.0224138293415308,
0.019068749621510506,
-0.0016557702329009771,
-0.06450460851192474,
-0.0619644932448864,
0.016358697786927223,
-0.017476705834269524,
-0.0798526257276535,
0.028030704706907272,
0.016680683940649033,
-0.013407155871391296,
-0.03785128891468048,
0.029998399317264557,
-0.008094379678368568,
0.020642904564738274,
-0.02298624999821186,
-0.05058763921260834,
0.06529168784618378,
-0.054558806121349335,
0.03300360590219498,
-0.03269950672984123,
-0.007937858812510967,
-0.0194980651140213,
0.04783286526799202,
-0.017020558938384056,
-0.06289467215538025,
-0.0014131624484434724,
-0.03828060254454613,
0.049156587570905685,
0.003228808054700494,
-0.05148204416036606,
0.04779709130525589,
-0.04758243262767792,
-0.023218795657157898,
0.016215592622756958,
-0.026045121252536774,
-0.016457082703709602,
-0.03434521332383156,
0.012736350297927856,
0.0025982512161135674,
0.005057869479060173,
-0.00023715751012787223,
0.007141836918890476,
-0.015213856473565102,
0.040176745504140854,
-0.031161127611994743,
-0.012146041728556156,
-0.04962167888879776,
0.03361180052161217,
0.04751088097691536,
0.007772393524646759,
0.008800961077213287,
-0.021125884726643562,
0.010232011787593365,
-0.03788706660270691,
0.012280203402042389,
0.03523962199687958,
-0.002325457287952304,
-0.018138566985726357,
-0.032431185245513916,
-0.03677799925208092,
-0.010527165606617928,
-0.0018827259773388505,
0.03677799925208092,
-0.08600614219903946,
-0.016385529190301895,
-0.010911760851740837,
0.030892804265022278,
0.05298464745283127,
-0.03459564968943596,
0.060247231274843216,
-0.015374849550426006,
0.026975303888320923,
0.0024394940119236708,
0.030302496626973152,
-0.05073074251413345,
0.01210132148116827,
0.057242024689912796,
-0.012432252056896687,
0.08021038770675659,
-0.02717207372188568,
-0.02976585365831852,
0.05738512799143791,
-0.04096382483839989,
-0.06192871555685997,
-0.00013667650637216866,
-0.007835001684725285,
-0.04701001197099686,
-0.0598536916077137,
0.04250220209360123,
0.03450620919466019,
0.01482031773775816,
0.011019089259207249,
-0.027708716690540314,
-0.058529969304800034,
0.004163462668657303,
-0.013308770954608917,
-0.01240541972219944,
-0.010428781621158123,
0.013228273950517178,
0.012637965381145477,
0.04779709130525589,
0.035382725298404694,
0.059030838310718536,
-0.025472700595855713,
0.06157095357775688,
-0.003052162704989314,
-0.01671645976603031,
-0.011242691427469254,
-0.008174876682460308,
0.01973061077296734,
0.060604993253946304,
0.02956908382475376,
-0.021859297528862953,
-0.003338372800499201,
0.014766653068363667,
0.036044586449861526,
0.006180349737405777,
0.02854945883154869,
-0.009945801459252834,
-0.005178614519536495,
0.06461193412542343,
0.03327192738652229,
0.029175544157624245,
-0.01189560815691948,
-0.05992524325847626,
-0.02139420621097088,
0.014122680760920048,
0.056061409413814545,
-0.0029582499992102385,
-0.026170337572693825,
-0.011144306510686874,
0.05831531062722206,
0.015643171966075897,
-0.017118943855166435,
-0.020285142585635185,
0.049729008227586746,
-0.010723935440182686,
0.0016725404420867562,
-0.028191696852445602,
-0.04847684130072594,
0.00925710890442133,
0.044648777693510056,
0.05030142888426781,
0.006882458925247192,
0.024470966309309006,
-0.03289627656340599,
-0.03078547678887844,
-0.023809105157852173,
0.044934988021850586,
0.026832198724150658,
-0.03235963359475136,
0.02989106997847557,
-0.014739821664988995,
0.007235749624669552,
-0.09266052395105362,
0.012119210325181484,
0.022914698347449303,
0.011788279749453068,
-0.05745668336749077,
-0.033880122005939484,
0.053950607776641846,
0.025633694604039192,
-0.014793485403060913,
0.002609431277960539,
-0.016233479604125023,
0.03516807034611702,
0.015160192735493183,
0.07205339521169662,
0.07312668859958649,
-0.0243994127959013,
0.000559563166461885,
0.01738726533949375,
-0.055202778428792953,
-0.024309972301125526,
0.005549793131649494,
0.005670538172125816,
0.03529328480362892,
-0.007861834019422531,
-0.05566786974668503,
-0.02205606736242771,
-0.038888800889253616,
-0.046437591314315796,
0.016519689932465553,
0.0384952612221241,
0.01567000336945057,
0.020356694236397743,
-0.02643866091966629,
-0.036885328590869904,
-0.013943799771368504,
0.004843211732804775,
-0.006041716784238815,
0.05201869085431099,
0.005424576345831156,
0.005268055014312267,
0.028942998498678207,
0.013827526941895485,
0.010536110028624535,
-0.006869042757898569,
-0.0535212941467762,
0.01978427544236183,
0.00594780407845974,
-0.01905086077749729,
-0.02033880725502968,
-0.07269737124443054,
0.011448404751718044,
-0.05534588173031807,
-0.009874248877167702,
-0.024506742134690285,
0.026832198724150658,
-0.027547724545001984,
-0.024953944608569145,
-0.006126685533672571,
-0.016188759356737137,
-0.013228273950517178,
0.01905086077749729,
0.03992631286382675,
-0.007213389500975609,
-0.045865170657634735,
-0.016474969685077667,
0.0004653709474951029,
-0.0255800299346447,
-0.08929755538702011,
-0.015991991385817528,
0.01478454191237688,
-0.012933120131492615,
0.02679642289876938,
0.01482031773775816,
-0.020535577088594437,
0.012637965381145477,
0.026402883231639862,
0.031447336077690125,
-0.0007412395207211375,
-0.008635495789349079,
0.026080897077918053,
-0.006341342814266682,
0.00948071014136076,
0.08106901496648788,
0.037421975284814835,
0.015643171966075897,
-0.0235944464802742,
-0.031035909429192543,
0.02627766691148281,
0.061463624238967896,
-0.009605927392840385,
0.01921185478568077,
-0.0574924573302269,
0.0009586921078152955,
0.047689761966466904,
0.013407155871391296,
0.003056634683161974,
-0.01659124344587326,
-0.009319717064499855,
-0.02915765531361103,
-0.030964357778429985,
-0.053378187119960785,
-0.055810973048210144,
0.07641810178756714,
-0.025329595431685448,
0.05015832558274269,
0.00771425710991025,
-0.005111533682793379,
-0.029712188988924026,
-0.027297290042042732,
-0.009355493821203709,
0.0006562708877027035,
-0.041894007474184036,
-0.0289966631680727,
-0.005478240549564362,
-0.05341396480798721,
0.0347745306789875,
0.00370507943443954,
0.029658524319529533,
0.012432252056896687,
-0.025365371257066727,
0.0016826024511829019,
-0.009310772642493248,
-0.037457749247550964,
0.024148978292942047,
-0.0025982512161135674,
0.01956961676478386,
0.003425577422603965,
0.00766506465151906,
0.007123949006199837,
0.06808223575353622,
-0.031089574098587036,
-0.001720614731311798,
-0.07133787125349045,
-0.05860152095556259,
-0.03432732820510864,
0.017861301079392433,
-0.03702843561768532,
-0.004487685393542051,
-0.006721465848386288,
-0.009100587107241154,
0.006390535272657871,
0.058780405670404434,
-0.03466720134019852,
-0.002739120274782181,
0.03938966989517212,
0.06486237049102783,
-0.05867307633161545,
-0.028925109654664993,
0.0201778132468462,
0.041321586817502975,
-0.03309304639697075,
-0.00018461111176293343,
0.010115738958120346,
-0.011197971180081367,
-0.025311708450317383,
-0.03212708607316017,
0.016957949846982956,
-0.037386197596788406,
0.011743559502065182,
-0.07527326047420502,
0.007875250652432442,
0.04414791241288185,
-0.003968929406255484,
0.03806594759225845,
0.019837938249111176,
-0.052412230521440506,
0.02566947042942047,
-0.03078547678887844,
-0.023451341316103935,
-0.012602189555764198,
0.015974102541804314,
0.014560939744114876,
-0.051231611520051956,
0.006524696480482817,
0.07942330837249756,
-0.004610666073858738,
-0.0050310371443629265,
0.007275998126715422,
0.009292884729802608,
0.04890615493059158,
-0.011197971180081367,
-0.001987818628549576,
-0.050337206572294235,
0.030839141458272934,
0.0100889066234231,
-0.020034708082675934,
0.002003470901399851,
0.004378120414912701,
-0.014131625182926655,
0.023934321478009224,
-0.08164143562316895,
0.027833934873342514,
-0.02160886488854885,
0.03269950672984123,
0.027887599542737007,
-0.04439834505319595,
-0.04418368637561798,
-0.029998399317264557,
0.02541903592646122,
-0.06132051721215248,
0.036402348428964615,
-0.03343291953206062,
0.00296495808288455,
-0.0005187558708712459,
0.04847684130072594,
-0.04257375746965408,
0.02225283719599247,
0.004559237975627184,
0.0577428936958313,
0.06228647753596306,
-0.019551729783415794,
0.04987211525440216,
0.012002936564385891,
0.014847150072455406,
0.008899345993995667,
0.011215859092772007,
0.0025490589905530214,
-0.037135764956474304,
-0.028316913172602654,
0.024095315486192703,
-0.012226538732647896,
0.0015182552160695195,
-0.0021644639782607555,
-0.0006585068767890334,
0.03126845508813858,
-0.03667067363858223,
0.004480977077037096,
0.04475610703229904,
-0.03960432484745979,
0.0028240890242159367,
0.017503537237644196,
0.07427152991294861,
0.020374583080410957,
0.01488292682915926,
-0.05820798501372337,
-0.0077321454882621765,
-0.013174609281122684,
-0.04232332110404968,
-0.04368282109498978,
0.011922440491616726,
-0.016215592622756958,
-0.022610599175095558,
0.038387931883335114,
-0.04450567439198494,
0.0008854625630192459,
-0.036080364137887955,
0.018746763467788696,
0.0033987450879067183,
0.034899745136499405,
-0.04003364220261574,
-0.009346549399197102,
-0.01177933532744646,
-0.011886663734912872,
-0.016421305015683174,
0.034702979028224945,
0.037171538919210434,
0.024578293785452843,
0.005768922623246908,
0.053628623485565186,
0.004955012816935778,
-0.02826325036585331,
-0.025454813614487648,
-0.0487988255918026,
0.0013885663356631994,
0.0021667000837624073,
0.03677799925208092,
-0.007423575036227703,
-0.04504231736063957,
0.01678801327943802,
-0.041035376489162445,
-0.0008452142938040197,
0.023379789665341377,
-0.08393111824989319,
0.03176932409405708,
-0.011466292664408684,
0.03037405014038086,
-0.04361126571893692,
0.055524762719869614,
-0.04604405164718628,
-0.021125884726643562,
-0.005473768804222345,
-0.01421212125569582,
0.05470190942287445,
-0.03735041990876198,
0.03132212162017822,
0.05151782184839249,
-0.029998399317264557,
-0.060032572597265244,
-0.06679428368806839,
-0.013505539856851101,
0.014149513095617294,
0.015160192735493183,
-0.016805900260806084,
0.04114270582795143,
-0.01520491298288107,
-0.000902232713997364,
-0.062036044895648956,
0.01956961676478386,
-0.011054866015911102,
0.027547724545001984,
-0.0972398892045021,
-0.0582437589764595,
-0.02343345433473587,
-0.04396903142333031,
-0.05012254789471626,
0.023057803511619568,
0.010097851045429707,
0.013264050707221031,
-0.06328821182250977,
0.0680464580655098,
0.028692563995718956,
0.08571992814540863,
0.0033048326149582863,
0.01181511115282774,
-0.08428888022899628,
-0.018022293224930763,
-0.001871545915491879,
-0.08986997604370117,
0.0603545606136322,
0.07584568113088608,
-0.016609130427241325,
-0.022878922522068024,
-0.005174142308533192,
-0.07949486374855042,
-0.015643171966075897,
0.043432384729385376,
-0.016331864520907402,
-0.0010464558145031333,
-0.08765184879302979,
0.008966426365077496,
-0.05001521855592728,
-0.007521959953010082,
0.03928234055638313,
-0.005446936469525099,
0.04128580912947655,
-0.04146469011902809,
0.00910953152924776,
-0.062393806874752045,
0.022073956206440926,
0.040749166160821915,
-0.013487651944160461,
0.02148364670574665,
-0.017888132482767105,
-0.05291309580206871,
-0.06722360104322433,
-0.05870885029435158,
0.00013318273704499006,
0.028782006353139877,
0.1249307170510292,
0.01973061077296734,
0.03656334429979324,
-0.06740248203277588,
0.009337604977190495,
0.035794153809547424,
0.018710987642407417,
0.024292083457112312,
0.030731812119483948,
0.02448885329067707,
0.007897610776126385,
0.011385796591639519,
0.05359284579753876,
-0.0005425135022960603,
0.038888800889253616,
-0.0005869543529115617,
0.031018022447824478,
0.10675637423992157,
0.01328193861991167,
-0.029103992506861687,
-0.004000233486294746,
0.012289146892726421,
-0.002799492795020342,
0.047367773950099945,
-0.018728874623775482,
0.0004586628929246217,
0.006283206399530172,
0.023218795657157898,
0.016296088695526123,
-0.014551996253430843,
0.02314724400639534,
0.07949486374855042,
-0.030839141458272934,
-0.0301772803068161,
-0.05262688547372818,
0.01338032353669405,
0.013040448538959026,
0.03917501121759415,
-0.05173248052597046,
-0.00910953152924776,
0.009006674401462078,
0.02826325036585331,
-0.0027838407550007105,
0.04121425747871399,
0.00885462574660778,
0.041929781436920166,
0.022968363016843796,
0.0656852200627327,
0.058780405670404434,
-0.0032198638655245304,
-0.028245361521840096,
0.06504125148057938,
0.018585769459605217,
0.029461754485964775,
-0.005361967720091343,
0.04987211525440216,
0.019676946103572845,
0.0582437589764595,
0.017959685996174812,
0.002627319423481822,
0.038960352540016174,
0.006676745600998402,
-0.004503337200731039,
0.0406060628592968,
-0.003790048183873296,
-0.01671645976603031,
-0.040176745504140854,
-0.007316246163100004,
0.005531905218958855,
0.031161127611994743,
0.022968363016843796,
0.03488186001777649,
-0.04210866242647171,
0.018022293224930763
] |
722,998
|
pyvat.vat_charge
|
VatCharge
|
VAT charge.
:ivar action: VAT charge action.
:type action: VatChargeAction
:ivar country_code:
Country in which the action applies as the ISO 3166-1 alpha-2 code of
the country.
:type country_code: str
:ivar rate:
VAT rate in percent. I.e. a value of 25 indicates a VAT charge of 25 %.
:type rate: Decimal
|
class VatCharge(object):
"""VAT charge.
:ivar action: VAT charge action.
:type action: VatChargeAction
:ivar country_code:
Country in which the action applies as the ISO 3166-1 alpha-2 code of
the country.
:type country_code: str
:ivar rate:
VAT rate in percent. I.e. a value of 25 indicates a VAT charge of 25 %.
:type rate: Decimal
"""
def __init__(self, action, country_code, rate):
self.action = action
self.country_code = country_code
self.rate = ensure_decimal(rate)
def __repr__(self):
return '<%s.%s: action = %r, country code = %r, rate = %s>' % (
self.__class__.__module__,
self.__class__.__name__,
self.action,
self.country_code,
self.rate,
)
|
(action, country_code, rate)
|
[
0.06666311621665955,
-0.08895822614431381,
0.010740169323980808,
-0.0019316101679578424,
0.009851327165961266,
-0.07888469099998474,
0.023387644439935684,
-0.04421986639499664,
0.003353988053277135,
-0.02438759058713913,
-0.03662768006324768,
0.00041461913497187197,
0.019350821152329445,
0.03829425573348999,
-0.07806991785764694,
0.03185015544295311,
0.01492513157427311,
-0.0226284246891737,
-0.0006868847412988544,
0.016878731548786163,
0.04081264138221741,
-0.009712445549666882,
-0.059070929884910583,
0.02703559771180153,
0.0064950245432555676,
0.06614462286233902,
0.037294309586286545,
0.018360134214162827,
-0.02418389730155468,
-0.06807044893503189,
0.006499654147773981,
-0.007731069810688496,
-0.0030044696759432554,
0.025146808475255966,
-0.06644091010093689,
-0.03338710963726044,
0.04625679552555084,
0.004710397217422724,
-0.11080891638994217,
0.037701696157455444,
0.03055392950773239,
0.011036449111998081,
0.00880045723170042,
-0.03951641544699669,
-0.03123907744884491,
0.011777150444686413,
-0.03859053924679756,
0.060959719121456146,
-0.018767518922686577,
-0.06284850835800171,
0.02499866858124733,
0.015304740518331528,
-0.017545362934470177,
-0.03577587381005287,
-0.01886010728776455,
0.03394263610243797,
0.0742182731628418,
0.13651125133037567,
0.017341669648885727,
0.03570180386304855,
-0.01386963203549385,
0.03353525325655937,
0.02818368375301361,
-0.05910796299576759,
-0.003323897020891309,
-0.00473122950643301,
-0.03123907744884491,
0.007045920938253403,
-0.00836066622287035,
0.03055392950773239,
0.0432199202477932,
-0.0017938859527930617,
-0.028442930430173874,
0.032850101590156555,
0.056256264448165894,
-0.04784930497407913,
-0.029831744730472565,
0.0004493395099416375,
-0.005041398108005524,
-0.029109561815857887,
0.025906028226017952,
-0.07395902276039124,
0.04151630774140358,
-0.06262629479169846,
0.014351087622344494,
-0.012971531599760056,
-0.02723929099738598,
-0.10362411290407181,
0.0007783150649629533,
0.09984653443098068,
-0.06177448853850365,
-0.013277070596814156,
-0.04718267172574997,
-0.00440022861585021,
0.024776458740234375,
0.013814079575240612,
0.03440557420253754,
-0.07066290080547333,
-0.023850582540035248,
0.04981216415762901,
0.0066107590682804585,
0.06040419265627861,
-0.024128345772624016,
-0.02520236186683178,
-0.025517160072922707,
-0.055774807929992676,
-0.03896088898181915,
0.03779428452253342,
0.06299664825201035,
-0.004763635341078043,
-0.016610227525234222,
0.0008952069911174476,
-0.03518331050872803,
-0.023924652487039566,
0.01099015586078167,
-0.029387325048446655,
-0.00093802873743698,
0.04818262159824371,
-0.03534996882081032,
-0.0220173466950655,
0.06255222856998444,
-0.04122002795338631,
-0.01912861131131649,
0.05718214064836502,
0.01097163837403059,
0.00309937191195786,
0.036275845021009445,
-0.00813845545053482,
-0.0035113871563225985,
0.037127651274204254,
-0.029109561815857887,
0.024813493713736534,
-0.015064013190567493,
-0.022646943107247353,
0.03333155810832977,
-0.029591016471385956,
0.028572553768754005,
-0.0042127384804189205,
-0.011934549547731876,
0.049330707639455795,
0.03483147919178009,
0.036609161645174026,
-0.0018309210427105427,
-0.04844186455011368,
0.005254349671304226,
-0.010666098445653915,
-0.02336912602186203,
-0.005064545199275017,
-0.037016548216342926,
0.004888628609478474,
-0.05329345911741257,
0.0607745423913002,
0.06429287046194077,
0.017249081283807755,
0.04755302518606186,
-0.012721545062959194,
-0.002513755112886429,
-0.04314585030078888,
0.0042682914063334465,
-0.03210940212011337,
-0.026646729558706284,
0.03470185771584511,
-0.01341595221310854,
0.026461554691195488,
0.03796094283461571,
0.014027031138539314,
-0.020943328738212585,
-0.03699802979826927,
-0.04218294098973274,
0.023258021101355553,
-0.030535411089658737,
-0.08244005590677261,
-0.05681179091334343,
0.031905706971883774,
0.03581290692090988,
0.05933017283678055,
0.004099318757653236,
0.007499600760638714,
0.05992273613810539,
-0.033701907843351364,
0.04262736067175865,
0.006221890915185213,
-0.0526268295943737,
0.003638695226982236,
0.014221465215086937,
-0.06325589120388031,
0.05444154515862465,
0.014601074159145355,
0.005217314697802067,
-0.0027845739386975765,
0.0611819289624691,
-0.002580881118774414,
0.01176789216697216,
0.015758419409394264,
-0.014823284931480885,
-0.0603671558201313,
0.003092427970841527,
-0.025757888332009315,
-0.026739317923784256,
0.06966295838356018,
-0.015573244541883469,
-0.024443143978714943,
0.004842334892600775,
-0.019998935982584953,
0.03799797594547272,
0.05333049222826958,
0.009545788168907166,
-0.035294417291879654,
-0.048145584762096405,
-0.05040472373366356,
-0.0016202840488404036,
0.0369054414331913,
0.043738413602113724,
0.0019860053434967995,
-0.01977672427892685,
-0.06170041859149933,
0.022295109927654266,
0.025831958279013634,
-0.02536902017891407,
0.031257595866918564,
0.07377385348081589,
-0.04177555441856384,
-0.05121949687600136,
0.02051742561161518,
0.026294896379113197,
0.010619805194437504,
-0.008555100299417973,
0.038072045892477036,
-0.06799638271331787,
-0.05992273613810539,
0.00171055702958256,
-0.005657106172293425,
-0.0016839380841702223,
-0.004571516066789627,
-0.021832171827554703,
-0.037127651274204254,
0.02692449279129505,
0.05162687972187996,
-0.05281200259923935,
-0.0022857580333948135,
0.05110839009284973,
0.01423072349280119,
0.002907252637669444,
0.06058936566114426,
-0.022072898223996162,
-0.04818262159824371,
-0.002687356900423765,
0.029498429968953133,
-0.023350609466433525,
-0.012203053571283817,
-0.02496163360774517,
-0.09192103147506714,
-0.032572340220212936,
0.020054487511515617,
-0.02492459863424301,
-0.03836832940578461,
-0.04425690323114395,
0.03636843338608742,
0.013147448189556599,
0.014656626619398594,
-0.036405470222234726,
0.016304686665534973,
-0.007819028571248055,
0.032035332173109055,
-0.009555046446621418,
0.04747895523905754,
0.006430213339626789,
-0.035831425338983536,
-0.01097163837403059,
-0.006795934401452541,
0.10629063844680786,
0.027294842526316643,
-0.016221359372138977,
0.014730697497725487,
-0.06658904999494553,
-0.014536263421177864,
0.00443494925275445,
-0.013989996165037155,
-0.011860479600727558,
-0.048997391015291214,
0.0005265923100523651,
-0.08021795004606247,
0.06621869653463364,
0.037053581327199936,
-0.03822018578648567,
-0.010851274244487286,
-0.001242989324964583,
0.04114595800638199,
0.015110306441783905,
0.013323364779353142,
0.0054117487743496895,
0.027498535811901093,
0.08406959474086761,
0.03449816256761551,
0.10658691823482513,
0.07325536012649536,
-0.011434576474130154,
0.007434789557009935,
-0.007981056347489357,
-0.007032033056020737,
0.03107241913676262,
-0.011360506527125835,
0.03197978064417839,
0.020480390638113022,
-0.05762656033039093,
0.018850848078727722,
0.04355323687195778,
0.0004241672286298126,
0.0322205051779747,
0.006758899427950382,
0.04236811399459839,
0.028294790536165237,
0.020980363711714745,
0.018406426534056664,
0.020850742235779762,
-0.004011360462754965,
-0.0013193741906434298,
-0.0758478119969368,
0.05555259808897972,
0.030572446063160896,
0.009059702977538109,
0.012443781830370426,
0.022276591509580612,
0.058626506477594376,
-0.032850101590156555,
-0.03388708457350731,
-0.026739317923784256,
0.039664555341005325,
-0.022443249821662903,
-0.004684935789555311,
-0.09369871765375137,
0.01723056472837925,
-0.016804661601781845,
0.01343446969985962,
-0.0030507633928209543,
0.03116500750184059,
-0.019054541364312172,
-0.04355323687195778,
-0.05147873982787132,
0.013267812319099903,
0.0668853297829628,
0.051812056452035904,
-0.054997071623802185,
-0.0101939020678401,
0.007374607492238283,
-0.006578353699296713,
-0.03903495892882347,
-0.04392358660697937,
0.051404669880867004,
0.008119937963783741,
-0.06662607938051224,
-0.04236811399459839,
0.04144223779439926,
0.04825669154524803,
0.03422040119767189,
-0.054960038512945175,
0.03988676518201828,
-0.05529335141181946,
-0.0016445884248241782,
-0.00073549326043576,
0.05599701777100563,
0.007615335285663605,
-0.014054806903004646,
-0.019424891099333763,
-0.02533198520541191,
-0.04203479737043381,
0.025554195046424866,
-0.03470185771584511,
-0.02075815387070179,
0.0015485286712646484,
-0.013934443704783916,
-0.01343446969985962,
-0.03988676518201828,
-0.0146844033151865,
-0.008860639296472073,
-0.003941919654607773,
-0.017786089330911636,
0.014332570135593414,
-0.033461183309555054,
0.021054435521364212,
0.044108763337135315,
0.018239770084619522,
0.03327600657939911,
0.038109082728624344,
0.037423934787511826,
-0.0464790053665638,
0.007860692217946053,
0.034201882779598236,
0.003460463834926486,
0.057404350489377975,
0.008610652759671211,
-0.018915658816695213,
-0.025794923305511475,
0.013314105570316315,
-0.016119511798024178,
-0.02638748474419117,
0.01719352975487709,
-0.024850528687238693,
-0.005805246531963348,
-0.0064116958528757095,
0.04218294098973274,
-0.01148087065666914,
-0.07614409178495407,
-0.00968466978520155,
-0.01859160326421261,
-0.017795348539948463,
0.03035023622214794,
0.018749002367258072,
-0.05388601869344711,
0.017647208645939827,
-0.004032192751765251,
0.0033308411948382854,
0.013591868802905083,
-0.006124673876911402,
0.0048654815182089806,
-0.0624040849506855,
0.010795721784234047,
-0.0009119884925894439,
-0.035461075603961945,
0.0053284200839698315,
0.05284903943538666,
-0.015323258005082607,
0.0330352783203125,
0.010379076935350895,
0.026035651564598083,
-0.015397327952086926,
0.037053581327199936,
-0.009374501183629036,
0.04099781811237335,
0.01231415942311287,
0.006337625440210104,
0.04114595800638199,
-0.049367740750312805,
-0.05640440434217453,
0.01423072349280119,
-0.016675038263201714,
0.00999020878225565,
-0.035664767026901245,
0.04725674167275429,
0.05921906977891922,
-0.03209088370203972,
0.00904118549078703,
0.02947991155087948,
0.008587505668401718,
-0.05829319357872009,
-0.04833076149225235,
-0.03275751695036888,
-0.05958941951394081,
0.04359026998281479,
-0.05562666803598404,
0.017443515360355377,
0.006994998082518578,
0.03788687288761139,
0.006018198095262051,
-0.004627068527042866,
-0.0203878041356802,
-0.02333209104835987,
-0.009888362139463425,
-0.02923918329179287,
-0.015332517214119434,
-0.026887457817792892,
0.017341669648885727,
-0.01957303285598755,
-0.024369072169065475,
-0.06773713231086731,
0.0795513167977333,
0.06925557553768158,
-0.011360506527125835,
-0.03079465590417385,
-0.0356832854449749,
-0.033627837896347046,
-0.012406746856868267,
-0.005268238019198179,
0.0199804175645113,
-0.022276591509580612,
0.0391460657119751,
-0.03453519940376282,
-0.019239716231822968,
-0.08984706550836563,
-0.038479432463645935,
0.007906986400485039,
-0.017489809542894363,
-0.012341935187578201,
0.027924438938498497,
-0.021517373621463776,
0.04296067729592323,
0.015332517214119434,
0.03877571225166321,
-0.015563986264169216,
-0.04536795616149902,
-0.0864398404955864,
0.03173905238509178,
-0.0011226254282519221,
-0.012730803340673447,
-0.02235066145658493,
0.060996752232313156,
-0.017360186204314232,
0.06895928829908371,
-0.005291385110467672,
-0.015962112694978714,
-0.002395705785602331,
-0.018906401470303535,
-0.04673825204372406,
-0.041738517582416534,
0.0006492710090242326,
-0.02251731976866722,
0.006129303481429815,
0.022054381668567657,
0.03510924056172371,
0.016545414924621582,
-0.004453466739505529,
-0.010638322681188583,
0.01957303285598755,
0.01664726249873638,
-0.01097163837403059,
0.0015265390975400805,
-0.03331303969025612,
-0.016749108210206032,
-0.03227606043219566,
-0.032201990485191345,
0.00868472270667553,
-0.009337466210126877,
0.03829425573348999,
-0.033016759902238846,
0.021998828276991844,
0.03733134642243385,
-0.02512829191982746,
-0.022906187921762466,
-0.0027452241629362106,
-0.02153589017689228,
0.036275845021009445,
-0.035461075603961945,
0.010925344191491604,
-0.0031711275223642588,
-0.026683764532208443,
0.03696099668741226,
0.0014964480651542544,
-0.04707156866788864,
-0.06521874666213989,
0.01912861131131649,
-0.01837865076959133,
-0.014332570135593414,
-0.029072526842355728,
-0.010536476038396358,
0.016397275030612946,
-0.028905868530273438,
-0.022443249821662903,
-0.0672927126288414,
-0.050219547003507614,
-0.017082422971725464,
0.02886883355677128,
-0.015406587161123753,
-0.030979832634329796,
0.0170268714427948,
0.04188665747642517,
0.08310668915510178,
-0.005976533517241478,
-0.0037312828935682774,
0.07044069468975067,
-0.009545788168907166,
0.016878731548786163,
-0.026294896379113197,
0.022072898223996162,
-0.018730483949184418,
-0.024128345772624016,
0.010342041961848736,
0.03286862000823021,
0.02523939684033394,
-0.010119831189513206,
-0.032072365283966064,
0.04644197225570679,
-0.020276697352528572,
0.0395534485578537,
0.05847836658358574,
-0.0526268295943737,
0.02723929099738598,
-0.011712339706718922,
0.02238769643008709,
0.022665459662675858,
0.00036861462285742164,
0.01586952619254589,
-0.014776990748941898,
-0.03747948631644249,
-0.061478208750486374,
-0.02499866858124733,
0.04740488529205322,
0.017304634675383568,
0.027683710679411888,
0.029461394995450974,
-0.006934816017746925,
-0.012999308295547962,
-0.036479540169239044,
0.015526951290667057,
0.00015768836601637304,
-0.02635044977068901,
-0.016462085768580437,
0.004446522332727909,
0.008217155002057552,
0.027961473912000656,
0.026072686538100243,
-0.013156707398593426,
-0.0032451977021992207,
-0.00976799800992012,
-0.007013515569269657,
0.02614675648510456,
0.015526951290667057,
-0.020017452538013458,
-0.0029003084637224674,
0.018952693790197372,
-0.01580471359193325,
0.04144223779439926,
-0.007499600760638714,
-0.0059811631217598915,
0.02238769643008709,
-0.018156440928578377,
0.021387750282883644,
-0.01929526962339878,
0.03233161196112633,
-0.033868566155433655,
0.049701057374477386,
-0.062292978167533875,
0.016730591654777527,
-0.025961581617593765,
0.026887457817792892,
-0.021665513515472412,
0.01994338259100914,
-0.03225754201412201,
-0.07362570613622665,
-0.026406001299619675,
-0.03251678869128227,
0.05284903943538666,
0.007619964890182018,
0.002867902861908078,
0.006481136195361614,
-0.06395956128835678,
0.0019408689113333821,
0.0004259032430127263,
0.025350501760840416,
0.001255720155313611,
0.04866407439112663,
0.012860426679253578,
0.022461766377091408,
-0.03338710963726044,
0.04644197225570679,
-0.011795667931437492,
-0.005388602148741484,
-0.08214377611875534,
-0.036072153598070145,
-0.008721757680177689,
0.013915926218032837,
0.0018575399881228805,
0.048552971333265305,
-0.02279508300125599,
-0.003826185129582882,
-0.04981216415762901,
0.030090991407632828,
-0.0009854799136519432,
0.028905868530273438,
0.044516149908304214,
0.02686893939971924,
-0.06829266250133514,
0.01651763916015625,
0.02797999233007431,
-0.020295215770602226,
0.02035076916217804,
0.010416111908853054,
0.029628051444888115,
-0.09480977058410645,
-0.04914553090929985,
0.034479644149541855,
0.021646995097398758,
0.06895928829908371,
-0.007731069810688496,
-0.002580881118774414,
-0.038479432463645935,
-0.02214696817100048,
0.025517160072922707,
0.03784983605146408,
0.030813174322247505,
0.015897301957011223,
0.07688479870557785,
0.0395534485578537,
0.06070047244429588,
-0.0448494628071785,
0.01048092357814312,
0.0005413484759628773,
-0.05073804035782814,
0.042145904153585434,
-0.01990634761750698,
-0.08029202371835709,
-0.025517160072922707,
-0.02496163360774517,
-0.011897514574229717,
-0.005564518738538027,
0.005587665364146233,
0.03197978064417839,
-0.019869312644004822,
-0.03353525325655937,
-0.016304686665534973,
-0.021869206801056862,
0.0082078967243433,
-0.01577693782746792,
0.00041461913497187197,
0.04803447797894478,
-0.025998616591095924,
0.0006915141129866242,
0.04621976241469383,
-0.016286170110106468,
0.03540552407503128,
-0.006490395404398441,
0.06210780516266823,
0.05688586086034775,
-0.0033308411948382854,
-0.0554785281419754,
0.03559069707989693,
0.060996752232313156,
-0.03368339315056801,
0.016869472339749336,
-0.0013112727319821715,
0.04066450148820877,
-0.012823391705751419,
-0.025350501760840416,
0.06699643284082413,
0.008541211485862732,
-0.01417517103254795,
0.027924438938498497,
0.03001691959798336,
0.044516149908304214,
-0.009795774705708027,
-0.036646198481321335,
0.02536902017891407,
0.0550711415708065,
-0.035461075603961945,
-0.060293085873126984,
0.020202627405524254,
-0.009703187271952629,
-0.044516149908304214,
-0.024739423766732216,
0.07836619764566422,
0.11984547227621078,
-0.0336463563144207,
0.04910849779844284,
-0.035294417291879654,
-0.03951641544699669,
-0.024165380746126175,
0.06214483827352524,
-0.023017292842268944,
0.028905868530273438,
0.023795029148459435,
0.02764667570590973,
0.0018968897638842463,
0.008619911037385464,
0.016063960269093513,
0.012443781830370426,
0.1072535514831543,
-0.016295429319143295,
-0.00360860419459641,
-0.0074162716045975685,
-0.02499866858124733,
-0.0644410103559494,
-0.0383312925696373,
-0.04418283328413963,
0.006694088224321604,
0.024035757407546043,
0.0005103895091451705,
0.024887563660740852,
-0.026165273040533066,
0.04014601185917854
] |
722,999
|
pyvat.vat_charge
|
__init__
| null |
def __init__(self, action, country_code, rate):
self.action = action
self.country_code = country_code
self.rate = ensure_decimal(rate)
|
(self, action, country_code, rate)
|
[
-0.003322834149003029,
-0.037219319492578506,
0.021344797685742378,
0.017170583829283714,
-0.04733753949403763,
-0.07300850003957748,
-0.014274556189775467,
-0.018931441009044647,
0.00035474105970934033,
-0.01320195384323597,
0.02270342782139778,
0.04336890950798988,
0.026439661160111427,
0.034430552273988724,
-0.03800589591264725,
0.03376911208033562,
0.027691030874848366,
0.001844653394073248,
-0.0013117039343342185,
-0.0007307106861844659,
0.006109367124736309,
-0.018395138904452324,
-0.04043712839484215,
0.08058822900056839,
-0.003340710885822773,
0.0978928878903389,
0.03607520833611488,
0.028710003942251205,
-0.004370856564491987,
-0.02904966101050377,
0.0345020592212677,
0.03573555126786232,
0.011637740768492222,
0.08173234015703201,
-0.040723156183958054,
-0.01968226209282875,
-0.014676782302558422,
-0.02275705710053444,
-0.12349234521389008,
0.03307192027568817,
0.040079593658447266,
-0.004607723094522953,
-0.012495823204517365,
-0.01866328902542591,
-0.0284239761531353,
0.021970482543110847,
-0.035020481795072556,
0.005009949207305908,
0.009608733467757702,
-0.06110261008143425,
-0.03203507140278816,
0.04562137648463249,
0.01579407788813114,
-0.012755035422742367,
-0.041509728878736496,
0.07215041667222977,
0.05445247143507004,
0.07365206629037857,
0.01411366555839777,
0.020039796829223633,
-0.03596794977784157,
0.04176000505685806,
0.012352809309959412,
-0.04633644223213196,
-0.00932270660996437,
-0.012746097519993782,
-0.08823946118354797,
0.015749385580420494,
0.020647604018449783,
0.04340466111898422,
0.09803590178489685,
0.012057843618094921,
-0.04633644223213196,
0.04243931919336319,
0.042725346982479095,
0.002978707430884242,
-0.04633644223213196,
0.007052363827824593,
-0.028102194890379906,
0.011038871482014656,
0.03350096195936203,
-0.0015954967821016908,
0.009885823354125023,
-0.0020234205294400454,
0.016705788671970367,
-0.07172137498855591,
0.00884003471583128,
-0.053701650351285934,
-0.022792810574173927,
0.10869042575359344,
-0.1006101444363594,
-0.036450620740652084,
-0.04201027750968933,
0.0021820764522999525,
0.019610755145549774,
0.007754024583846331,
0.014632090926170349,
-0.07543973624706268,
-0.005662449169903994,
0.016366131603717804,
0.006985326297581196,
0.015499111264944077,
-0.009689179249107838,
-0.01789459027349949,
0.0035529970191419125,
-0.0604947991669178,
0.023722399026155472,
-0.025420688092708588,
0.006091490387916565,
0.017814146354794502,
0.01116400770843029,
-0.0014055566862225533,
-0.05341562256217003,
0.0275837704539299,
-0.019235344603657722,
0.014274556189775467,
-0.004337337799370289,
0.04730178415775299,
0.009823254309594631,
0.010395308956503868,
0.002967534586787224,
-0.01850239932537079,
-0.030301030725240707,
0.07579726725816727,
0.06485671550035477,
0.022578289732336998,
0.0398293174803257,
-0.011745001189410686,
0.02332911267876625,
0.014676782302558422,
0.02113027684390545,
-0.046372197568416595,
-0.012585206888616085,
-0.026958085596561432,
-0.0007547325221821666,
-0.042153291404247284,
0.03485959395766258,
0.02438383735716343,
0.014596337452530861,
0.03208870068192482,
0.05345137417316437,
0.048624660819768906,
0.016723666340112686,
-0.04651521146297455,
0.03344733268022537,
0.020862124860286713,
-0.025670962408185005,
0.02576034516096115,
-0.017572810873389244,
0.02618938684463501,
-0.02332911267876625,
0.06757397949695587,
0.04065164923667908,
-0.000343847437761724,
0.05048384144902229,
-0.05155644565820694,
0.024115687236189842,
-0.028674250468611717,
0.023650892078876495,
0.01492705661803484,
0.014086850918829441,
0.012245548889040947,
0.009295891039073467,
-0.06889685988426208,
0.004442363511770964,
0.03569979965686798,
-0.05295082926750183,
-0.018305756151676178,
-0.004487055353820324,
-0.007392021361738443,
-0.03262500464916229,
-0.12592357397079468,
-0.03975781425833702,
-0.008978580124676228,
-0.003747406182810664,
0.025510070845484734,
0.015713632106781006,
0.005800993647426367,
-0.010502569377422333,
0.004777552094310522,
0.05019781365990639,
-0.007302637677639723,
-0.06503548473119736,
0.03367973119020462,
0.022596167400479317,
-0.045800141990184784,
0.018806302919983864,
0.027136852964758873,
-0.025313427671790123,
0.045156579464673996,
0.056740690022706985,
0.028781509026885033,
-0.05016205832362175,
-0.010591953061521053,
-0.010279110632836819,
-0.04998329281806946,
0.03530650958418846,
-0.02903178334236145,
-0.004270300269126892,
0.09202932566404343,
-0.047230277210474014,
0.019771646708250046,
0.02213137224316597,
-0.029925620183348656,
0.011852261610329151,
0.018413016572594643,
-0.016375070437788963,
0.014033220708370209,
-0.03822041675448418,
-0.053487129509449005,
-0.01809123530983925,
0.021666577085852623,
0.022882193326950073,
0.017197398468852043,
-0.005130616948008537,
-0.030819455161690712,
0.0286563728004694,
-0.009054555557668209,
0.027476510033011436,
0.04969726502895355,
0.06786000728607178,
-0.024723496288061142,
-0.0471230186522007,
-0.04919671639800072,
0.06381987035274506,
0.02581397444009781,
-0.004670291673392057,
0.0036557880230247974,
-0.0677884966135025,
-0.002353022573515773,
-0.07047000527381897,
-0.024830756708979607,
-0.011038871482014656,
-0.0002614469558466226,
-0.004616661462932825,
-0.03509198874235153,
0.03569979965686798,
0.004493759013712406,
-0.11684220284223557,
-0.02636815421283245,
0.04186726361513138,
0.007977483794093132,
-0.012147227302193642,
-0.0024669866543263197,
-0.024616235867142677,
-0.024276578798890114,
0.008893664926290512,
0.06024452671408653,
-0.0573127456009388,
-0.03153452277183533,
-0.0017575044184923172,
-0.037219319492578506,
-0.0056937336921691895,
0.00015167274978011847,
-0.010726028122007847,
0.0075037507340312,
-0.005675856955349445,
0.013425412587821484,
0.03578918054699898,
0.004938442260026932,
-0.021845344454050064,
0.02597486600279808,
-0.023025207221508026,
0.025438563898205757,
-0.02559945546090603,
0.0006106015061959624,
-0.002377602970227599,
-0.004978664685040712,
0.039257265627384186,
-0.010341678746044636,
0.07744192332029343,
0.02597486600279808,
-0.008379709906876087,
0.019128084182739258,
-0.019575001671910286,
-0.06360534578561783,
0.022292261943221092,
-0.02661842666566372,
-0.04176000505685806,
-0.007217723410576582,
0.07161411643028259,
-0.03600370138883591,
0.039293017238378525,
0.03126637265086174,
-0.03498473018407822,
-0.005926130805164576,
0.015937089920043945,
0.023722399026155472,
-0.009841131046414375,
0.002636815421283245,
-0.025867605581879616,
0.04336890950798988,
0.050269320607185364,
0.07025548815727234,
0.06503548473119736,
-0.008022175170481205,
0.018010789528489113,
-0.014658905565738678,
0.030122263357043266,
0.01968226209282875,
-0.0019340369617566466,
-0.027530139312148094,
0.06110261008143425,
0.005827808752655983,
-0.011226576752960682,
-0.01035955548286438,
0.02656479738652706,
0.01887780986726284,
0.022381646558642387,
0.04508507251739502,
0.07136384397745132,
0.06517849862575531,
0.005519435741007328,
0.026904454454779625,
0.0478738397359848,
0.013130446895956993,
0.008701490238308907,
-0.05034082755446434,
0.004574204329401255,
0.062032196670770645,
0.006895942613482475,
-0.021577194333076477,
0.009403151459991932,
0.013622056692838669,
-0.04830288141965866,
-0.057956308126449585,
-0.03389424830675125,
0.030336784198880196,
-0.026243016123771667,
-0.025545824319124222,
-0.07894357293844223,
-0.014542707242071629,
0.023901166394352913,
-0.029979249462485313,
-0.017385104671120644,
0.023275481536984444,
-0.02114815264940262,
-0.041330963373184204,
-0.028102194890379906,
0.0038055055774748325,
0.03893548250198364,
-0.01911020837724209,
-0.016294624656438828,
0.04669397696852684,
-0.0018044308526441455,
-0.04319014027714729,
-0.016097981482744217,
-0.06342658400535583,
0.04937548562884331,
-0.04115219786763191,
-0.06943316012620926,
-0.045978907495737076,
0.04404822364449501,
0.033179182559251785,
0.05913617089390755,
-0.014435446821153164,
-0.007651233579963446,
-0.0588143914937973,
-0.0016368366777896881,
-0.032589249312877655,
0.09388850629329681,
-0.005921661388128996,
-0.00538982916623354,
0.023454248905181885,
0.005398767534643412,
-0.00901880208402872,
0.061817679554224014,
-0.03729082643985748,
0.008567415177822113,
-0.004741798620671034,
-0.005023356527090073,
-0.0709705576300621,
-0.046372197568416595,
0.036236099898815155,
-0.018788427114486694,
0.05598986893892288,
-0.010699213482439518,
0.02540281042456627,
-0.015803014859557152,
-0.011038871482014656,
0.026296647265553474,
-0.01310363132506609,
-0.009072432294487953,
0.05842110142111778,
0.018538152799010277,
-0.04605041444301605,
-0.00679315160959959,
0.043154388666152954,
0.017018631100654602,
0.031373634934425354,
-0.005832278169691563,
-0.005979761015623808,
0.006578630767762661,
-0.02778041362762451,
-0.02250678278505802,
0.03185630589723587,
0.015284590423107147,
-0.002618938684463501,
-0.02214924804866314,
0.015588494949042797,
0.02315034531056881,
-0.052056990563869476,
-0.014632090926170349,
0.017331473529338837,
-0.01764431782066822,
0.009805377572774887,
-0.002654692158102989,
0.03854219615459442,
-0.013353905640542507,
0.024276578798890114,
-0.0035597006790339947,
-0.03822041675448418,
0.0108690420165658,
-0.03915000334382057,
-0.035860687494277954,
-0.04290411248803139,
-0.010431062430143356,
-0.011324898339807987,
-0.023650892078876495,
-0.03269651159644127,
0.054094936698675156,
0.02332911267876625,
0.020754864439368248,
0.034823838621377945,
0.04004383832216263,
-0.032160207629203796,
0.05295082926750183,
-0.017402980476617813,
0.03355459123849869,
0.027565892785787582,
-0.04408397898077965,
0.031749043613672256,
-0.0658220648765564,
-0.0604947991669178,
0.04708726704120636,
0.002382072154432535,
-0.03105185180902481,
-0.012567330151796341,
0.005081456154584885,
0.022578289732336998,
0.0006575278821401298,
-0.010851165279746056,
0.052879322320222855,
-0.0078300004824996,
-0.024526851251721382,
-0.07665535062551498,
-0.019575001671910286,
-0.010484692640602589,
-0.0031530053820461035,
-0.05924342945218086,
0.0075037507340312,
-0.015150515362620354,
0.028495483100414276,
-0.008236696012318134,
0.049804527312517166,
-0.016366131603717804,
-0.016339316964149475,
-0.014355001971125603,
0.015910275280475616,
-0.020629728212952614,
-0.021809590980410576,
-0.0002994349633809179,
-0.014498014934360981,
-0.022488906979560852,
-0.02213137224316597,
0.10440000891685486,
0.023633016273379326,
0.019950412213802338,
0.00983219314366579,
-0.0024491099175065756,
-0.0503050722181797,
0.026725687086582184,
-0.01107462402433157,
0.02009342610836029,
-0.048803430050611496,
-0.00375411007553339,
-0.0044535365886986256,
-0.013863392174243927,
-0.06428466737270355,
-0.0381489098072052,
0.03605733439326286,
-0.02499164640903473,
0.005935069173574448,
0.02495589293539524,
-0.019342605024576187,
-0.017018631100654602,
-0.021219659596681595,
0.0027865327429026365,
-0.0029228427447378635,
-0.005416644271463156,
-0.07379507273435593,
0.028370345011353493,
0.02683294750750065,
0.008169658482074738,
-0.04401247203350067,
0.03148089349269867,
-0.006851250771433115,
0.01725102961063385,
-0.006949572823941708,
-0.010028836317360401,
0.005465805530548096,
0.014649967662990093,
-0.04075890779495239,
-0.033018290996551514,
0.017349351197481155,
-0.016973940655589104,
-0.05745575949549675,
0.0015351627953350544,
-0.0006083669140934944,
0.010895857587456703,
0.000439096795162186,
-0.00699873361736536,
-0.0034300945699214935,
0.01035955548286438,
-0.023472126573324203,
0.0015228725969791412,
-0.026225140318274498,
-0.0024580482859164476,
-0.057741787284612656,
0.02981835976243019,
0.034805960953235626,
0.0186990424990654,
0.04383370280265808,
-0.02517041377723217,
0.028495483100414276,
0.0020781680941581726,
-0.011432158760726452,
-0.02011130377650261,
0.02111239917576313,
-0.009429967030882835,
0.016696851700544357,
-0.03305404633283615,
0.011333837173879147,
0.043547675013542175,
-0.03972205892205238,
0.0658220648765564,
-0.015928152948617935,
-0.03509198874235153,
-0.038863975554704666,
-0.004033433739095926,
-0.0012077954597771168,
0.046801239252090454,
0.012567330151796341,
-0.0483386367559433,
0.026314523071050644,
-0.02822733111679554,
-0.03210657835006714,
-0.002202187664806843,
-0.03779137507081032,
-0.02458048239350319,
0.0329110324382782,
-0.02155931666493416,
0.008567415177822113,
0.0060289218090474606,
0.07837151736021042,
0.019968289881944656,
0.04083041474223137,
0.004449067171663046,
0.07686986774206161,
-0.002364195417612791,
-0.009662363678216934,
-0.04644370451569557,
-0.040508635342121124,
0.026439661160111427,
-0.06113836169242859,
-0.027476510033011436,
0.008482500910758972,
0.02071911096572876,
-0.0060691446997225285,
-0.01269246730953455,
0.029728975147008896,
-0.008160719648003578,
0.037862882018089294,
0.08266192674636841,
-0.04572863504290581,
-0.03498473018407822,
-0.01582089252769947,
0.019414111971855164,
-0.01905657723546028,
-0.006525000557303429,
0.04794534668326378,
-0.00025250858743675053,
-0.07522521167993546,
-0.07061301916837692,
-0.02048671431839466,
0.004692637361586094,
-0.028674250468611717,
-0.02559945546090603,
0.007271353621035814,
-0.003716121893376112,
0.007052363827824593,
-0.02456260472536087,
-0.03425178304314613,
0.018430892378091812,
-0.026493290439248085,
-0.02232801541686058,
-0.03149877116084099,
-0.056740690022706985,
-0.017402980476617813,
0.028674250468611717,
-0.021005138754844666,
0.05992274731397629,
-0.04737329110503197,
0.015230960212647915,
0.09038466960191727,
-0.001988784410059452,
-0.0527363084256649,
0.04365493729710579,
-0.01866328902542591,
0.00421443535014987,
0.03153452277183533,
0.0043775602243840694,
0.020826371386647224,
0.002323972759768367,
0.02985411323606968,
-0.027941305190324783,
0.012495823204517365,
-0.0026345807127654552,
-0.014703597873449326,
0.0006916053825989366,
-0.09610521793365479,
0.03528863564133644,
-0.018341509625315666,
0.07322302460670471,
-0.04694425314664841,
0.01664322055876255,
0.0024468752089887857,
-0.0775134339928627,
-0.04887493699789047,
-0.10204028338193893,
0.03144514188170433,
-0.01746555045247078,
0.008402056060731411,
-0.06557178497314453,
-0.05945795029401779,
0.03294678404927254,
0.03289315477013588,
0.04815986752510071,
0.02129116654396057,
0.026439661160111427,
0.0028826200868934393,
0.0670376792550087,
-0.018162742257118225,
0.00248709786683321,
0.000518704007845372,
0.000020635035980376415,
-0.11619864404201508,
-0.02315034531056881,
0.0025161474477499723,
0.005680325906723738,
-0.06178192421793938,
0.015302467159926891,
-0.023436373099684715,
0.05298658087849617,
-0.020379453897476196,
0.027351371943950653,
0.005407705903053284,
0.01764431782066822,
0.07436712831258774,
-0.03264287859201431,
-0.11026357114315033,
0.027297742664813995,
0.024294454604387283,
0.021612947806715965,
0.017563872039318085,
0.010538322851061821,
-0.023650892078876495,
-0.1006101444363594,
-0.03915000334382057,
0.03171329200267792,
-0.02820945531129837,
0.03493110090494156,
0.023793905973434448,
0.02699383907020092,
-0.0027910019271075726,
0.03612883761525154,
0.012906987220048904,
-0.007727209944278002,
0.025921234861016273,
0.03578918054699898,
0.04083041474223137,
0.008093682117760181,
0.002855804981663823,
-0.05481000617146492,
0.006860189139842987,
0.024687742814421654,
-0.05709822475910187,
0.07343754172325134,
-0.020665481686592102,
-0.04487055167555809,
-0.020862124860286713,
-0.027691030874848366,
-0.035199251025915146,
-0.0008251221152022481,
-0.01218298077583313,
0.002161965239793062,
-0.07794247567653656,
-0.026243016123771667,
0.028531236574053764,
0.023078838363289833,
0.005032294895499945,
0.004916096571832895,
-0.0007642295095138252,
0.037076305598020554,
-0.0026926801074296236,
-0.028942400589585304,
-0.03185630589723587,
-0.012129350565373898,
0.07204315811395645,
-0.030908839777112007,
0.01665215939283371,
0.021809590980410576,
-0.027297742664813995,
-0.029139043763279915,
-0.032964661717414856,
0.09095672518014908,
0.009215446189045906,
0.058170828968286514,
-0.04447726532816887,
0.014158357866108418,
0.019789522513747215,
-0.026028495281934738,
0.038863975554704666,
-0.0032021664083003998,
-0.0018223075894638896,
0.03190993517637253,
-0.006422209553420544,
-0.03310767561197281,
0.018949316814541817,
-0.03226746991276741,
0.010591953061521053,
0.02701171487569809,
-0.03149877116084099,
-0.0410449355840683,
-0.004297115374356508,
-0.04733753949403763,
-0.002008895855396986,
0.00001606111072760541,
0.10711727291345596,
0.08616576343774796,
-0.005631165113300085,
0.01492705661803484,
0.0028736817184835672,
-0.02577822282910347,
-0.036218222230672836,
0.07082754373550415,
0.005170839373022318,
-0.02904966101050377,
0.021666577085852623,
0.02985411323606968,
-0.008482500910758972,
-0.006471370346844196,
0.07089904695749283,
0.058385349810123444,
0.03323281183838844,
-0.00882215891033411,
-0.03106972947716713,
0.0050635794177651405,
-0.0042747692205011845,
-0.006337295286357403,
-0.046801239252090454,
-0.02189897559583187,
0.03605733439326286,
0.006520531605929136,
0.0495542511343956,
0.011914829723536968,
0.04522808641195297,
0.010198665782809258
] |
723,000
|
pyvat.vat_charge
|
__repr__
| null |
def __repr__(self):
return '<%s.%s: action = %r, country code = %r, rate = %s>' % (
self.__class__.__module__,
self.__class__.__name__,
self.action,
self.country_code,
self.rate,
)
|
(self)
|
[
0.0016742723528295755,
-0.06468050926923752,
0.06090594828128815,
0.001973167760297656,
0.03538188710808754,
-0.09396079927682877,
0.024039892479777336,
-0.03413591533899307,
0.04012756422162056,
-0.03906482830643654,
-0.016619041562080383,
-0.00026725942734628916,
0.010169314220547676,
0.06933457404375076,
-0.030801113694906235,
0.049838803708553314,
-0.006921546999365091,
-0.038441840559244156,
-0.01708628050982952,
0.010242607444524765,
0.006440565921366215,
-0.003744781482964754,
0.010938884690403938,
-0.004594514612108469,
0.01995384506881237,
0.07105693966150284,
0.004097500815987587,
-0.02371007762849331,
-0.019697321578860283,
-0.03217534348368645,
-0.02431473881006241,
-0.045661140233278275,
0.004489156883209944,
-0.012001623399555683,
-0.06673268973827362,
0.04602760076522827,
-0.050864897668361664,
-0.007324655074626207,
-0.052917081862688065,
-0.029408559203147888,
0.04184993728995323,
-0.012441378086805344,
-0.02466287836432457,
-0.05713139474391937,
-0.014264524914324284,
0.013852255418896675,
0.014768410474061966,
0.008662240579724312,
0.027008233591914177,
-0.12950760126113892,
-0.00990363024175167,
0.06599976867437363,
-0.04016421362757683,
-0.001953699393197894,
-0.05720468610525131,
0.005437376908957958,
0.04917917028069496,
0.03961452096700668,
-0.0006424533203244209,
0.04379218444228172,
-0.03717754781246185,
0.02880389615893364,
0.026495186612010002,
-0.024003246799111366,
-0.0018048243364319205,
-0.03987104445695877,
-0.06369105726480484,
0.015455526299774647,
-0.026916617527604103,
0.02568897232413292,
0.09725895524024963,
-0.02550574019551277,
-0.022702308371663094,
0.03127751499414444,
-0.016252581030130386,
-0.026586802676320076,
0.0030988925136625767,
0.006715412251651287,
-0.0006006537587381899,
-0.03594990074634552,
0.01630754955112934,
-0.012606285512447357,
-0.01436530239880085,
-0.018341412767767906,
0.014795894734561443,
-0.09432726353406906,
-0.021181492134928703,
-0.07725014537572861,
-0.10253600776195526,
0.050645019859075546,
-0.049912095069885254,
-0.030654529109597206,
-0.05350342020392418,
0.011461092159152031,
-0.022940507158637047,
-0.019660675898194313,
0.003637133166193962,
-0.04485492408275604,
0.04932575672864914,
-0.011589353904128075,
0.03732413426041603,
-0.02656847983598709,
-0.07314576953649521,
-0.018378058448433876,
-0.032633423805236816,
-0.013586570508778095,
0.0023167256731539965,
0.03605984151363373,
-0.011735938489437103,
0.03690270334482193,
0.022702308371663094,
0.07006749510765076,
-0.004166212398558855,
-0.016325872391462326,
0.050754956901073456,
-0.024351386353373528,
0.003540937090292573,
0.05049843341112137,
0.03994433581829071,
0.001520816469565034,
-0.014722602441906929,
0.004223471973091364,
-0.03360454738140106,
0.01980726048350334,
-0.029775019735097885,
0.03781885653734207,
-0.009866983629763126,
-0.03602319210767746,
-0.00014672786346636713,
-0.08142781257629395,
-0.007759828586131334,
-0.022372491657733917,
-0.05222080647945404,
-0.012532993219792843,
0.03792879357933998,
-0.020924968644976616,
0.04716363176703453,
0.032743360847234726,
0.03552846983075142,
0.12606285512447357,
0.026385249570012093,
0.0066696046851575375,
0.005364084616303444,
0.02451629377901554,
-0.007484982255846262,
-0.056911516934633255,
0.02162124589085579,
0.10869256407022476,
0.0369393490254879,
-0.03158900514245033,
-0.01514403335750103,
0.0709836483001709,
0.058963701128959656,
-0.012871970422565937,
0.032853297889232635,
0.03085608221590519,
0.008479009382426739,
-0.0030622463673353195,
0.00013527592818718404,
-0.024223124608397484,
-0.025414125993847847,
-0.0260737556964159,
-0.0014635567786172032,
-0.049765512347221375,
0.022702308371663094,
0.011543546803295612,
0.015858633443713188,
-0.019660675898194313,
-0.00593668082728982,
-0.004413574002683163,
-0.039394643157720566,
-0.13595733046531677,
-0.04415864497423172,
0.02402156963944435,
-0.010883915238082409,
0.067355677485466,
0.005327438469976187,
0.0776166096329689,
-0.015336425974965096,
-0.01726951263844967,
0.07747001945972443,
-0.0315706841647625,
-0.09857822209596634,
0.02317870780825615,
0.011012176983058453,
-0.08091476559638977,
0.04371889308094978,
-0.015831150114536285,
0.017003826797008514,
0.04192322865128517,
0.05354006588459015,
0.015867795795202255,
-0.029463527724146843,
-0.005446538329124451,
-0.05203757435083389,
-0.06508361548185349,
-0.01680227369070053,
-0.0500953271985054,
0.023801693692803383,
0.05775437876582146,
-0.020118752494454384,
0.028748927637934685,
-0.004463962744921446,
0.058010902255773544,
0.009390583261847496,
0.012239824049174786,
0.025597356259822845,
-0.0295734666287899,
0.02272063121199608,
-0.03272503614425659,
0.007352139800786972,
0.011525223031640053,
0.030416328459978104,
-0.017113765701651573,
0.010554099455475807,
0.0014521048869937658,
-0.0328349769115448,
-0.0124047314748168,
-0.04628412425518036,
0.024992693215608597,
0.030507944524288177,
-0.03640797734260559,
-0.03671947121620178,
-0.04727357253432274,
-0.020924968644976616,
-0.0038409775588661432,
0.0053091151639819145,
0.0005345188546925783,
-0.05716804042458534,
-0.009138640947639942,
0.004225762560963631,
-0.02805265039205551,
0.0025927170645445585,
0.013595731928944588,
0.00946387555450201,
0.04489156976342201,
-0.005506088491529226,
0.017709266394376755,
-0.05255062133073807,
0.02614704892039299,
0.025414125993847847,
0.01734280399978161,
0.0026889133732765913,
-0.016051026061177254,
0.030123159289360046,
-0.07259608060121536,
0.024113185703754425,
0.04536797106266022,
-0.033531252294778824,
-0.02834581956267357,
0.045881014317274094,
-0.021273106336593628,
-0.032706715166568756,
-0.026165371760725975,
-0.011451930738985538,
-0.06068607047200203,
-0.014530209824442863,
0.003078279085457325,
0.01780088059604168,
0.029884958639740944,
-0.0211265217512846,
0.04958228021860123,
-0.02207932248711586,
0.0013662154087796807,
0.0054923458956182,
0.028327496722340584,
-0.05269720405340195,
0.0015471559017896652,
0.03574834764003754,
0.010609068907797337,
0.13368526101112366,
0.015565464273095131,
-0.044781628996133804,
0.05863388627767563,
-0.04195987433195114,
-0.07102029770612717,
0.01769094355404377,
-0.008872956037521362,
-0.07167992740869522,
-0.06134570389986038,
0.025927171111106873,
-0.037598978728055954,
0.015840310603380203,
-0.0018460513092577457,
-0.0178650114685297,
-0.028785573318600655,
0.022372491657733917,
0.03287162259221077,
0.01103966124355793,
0.024461325258016586,
0.063141368329525,
0.05511585250496864,
0.020082106813788414,
0.04023750498890877,
0.06545007228851318,
-0.0063352081924676895,
0.02717314101755619,
0.012661254964768887,
0.007828540168702602,
0.041593413800001144,
-0.006683346815407276,
-0.027154818177223206,
0.08230731636285782,
0.0207050908356905,
-0.044635046273469925,
0.013229270465672016,
0.012954424135386944,
0.05200092867016792,
0.0026637192349880934,
0.028034327551722527,
0.023874985054135323,
0.02508430927991867,
0.039541225880384445,
0.03545517846941948,
0.023508524522185326,
0.02713649533689022,
-0.023929955437779427,
-0.017700104042887688,
0.033732809126377106,
0.08186756074428558,
-0.006884900853037834,
0.014557695016264915,
-0.01737944968044758,
0.05042514204978943,
0.02356349304318428,
-0.07805635780096054,
-0.039504580199718475,
0.019752290099859238,
0.006358112208545208,
-0.0009436390828341246,
-0.04082384333014488,
-0.05834071710705757,
-0.001126870047301054,
0.002266337163746357,
0.013586570508778095,
0.043535660952329636,
-0.0017739040777087212,
-0.0069719357416033745,
-0.05848729982972145,
-0.03354957699775696,
0.02416815422475338,
0.021566275507211685,
-0.022629015147686005,
0.01236808579415083,
-0.03690270334482193,
0.0039806910790503025,
-0.03906482830643654,
-0.004960976541042328,
0.043645597994327545,
-0.052990373224020004,
-0.06376434862613678,
-0.047640033066272736,
0.06486373394727707,
0.028565697371959686,
0.012230662629008293,
-0.005258726887404919,
-0.035052068531513214,
-0.01603270322084427,
-0.007952220737934113,
0.03587660938501358,
0.08721790462732315,
0.00017335360462311655,
0.013449147343635559,
-0.0019078917102888227,
-0.0150890639051795,
-0.021419690921902657,
0.03626139461994171,
0.0014647019561380148,
0.03880830481648445,
-0.025597356259822845,
-0.06599976867437363,
-0.027447987347841263,
-0.05628852918744087,
-0.002954598283395171,
-0.04415864497423172,
0.04610089212656021,
0.026843326166272163,
0.016545750200748444,
-0.03664617985486984,
-0.0562518835067749,
0.06999420374631882,
0.024791140109300613,
-0.011076307855546474,
0.0492524653673172,
0.023288646712899208,
-0.008272875100374222,
0.01691221073269844,
0.04690710827708244,
-0.004960976541042328,
0.0048052300699055195,
-0.039357997477054596,
-0.01843302883207798,
-0.01257880125194788,
-0.019587382674217224,
-0.03910147398710251,
-0.03602319210767746,
0.005469442345201969,
-0.01442027185112238,
-0.06185875087976456,
-0.012514670379459858,
0.02391163259744644,
-0.012010784819722176,
-0.026458540931344032,
-0.008795082569122314,
-0.0022583208046853542,
0.006820769980549812,
0.005895453970879316,
0.052990373224020004,
-0.006742896977812052,
-0.031130928546190262,
-0.00562518835067749,
-0.00978452991694212,
-0.04184993728995323,
-0.05518914386630058,
0.03792879357933998,
-0.023288646712899208,
-0.03089272975921631,
0.030654529109597206,
-0.024919401854276657,
-0.012395570054650307,
0.0008050707401707768,
0.029536820948123932,
0.030031543225049973,
0.0005402448587119579,
0.01546468771994114,
-0.020320305600762367,
0.011378638446331024,
0.02215261571109295,
0.05852394923567772,
0.05145123600959778,
-0.03587660938501358,
0.007576597388833761,
-0.013320885598659515,
0.011057984083890915,
0.047640033066272736,
-0.05965998023748398,
0.009335613809525967,
-0.04137353599071503,
0.007956801913678646,
0.04078719764947891,
0.004177664406597614,
-0.004198277834802866,
0.017104603350162506,
-0.01277119293808937,
-0.017956627532839775,
-0.01811237446963787,
-0.06306807696819305,
-0.018378058448433876,
0.029133712872862816,
-0.027759481221437454,
0.03792879357933998,
0.004855618812143803,
0.023361939936876297,
-0.01649077981710434,
-0.005258726887404919,
-0.028638988733291626,
0.001752145471982658,
-0.03213869780302048,
-0.011910008266568184,
-0.0211265217512846,
-0.05929351598024368,
0.009257741272449493,
-0.0044845761731266975,
-0.012798678129911423,
-0.008483590558171272,
0.009179867804050446,
0.027942711487412453,
0.012752870097756386,
-0.023197030648589134,
-0.0124047314748168,
-0.0068711587227880955,
0.04536797106266022,
-0.04837295785546303,
0.005474023055285215,
-0.06541343033313751,
0.07585758715867996,
-0.020686767995357513,
0.0007758683059364557,
-0.06981097161769867,
-0.03717754781246185,
-0.016426648944616318,
-0.0591469332575798,
-0.015024933032691479,
0.0011841296218335629,
-0.01843302883207798,
0.010270091705024242,
0.0002890181203838438,
0.054712746292352676,
0.0002349077258259058,
-0.009702076204121113,
-0.0020979938562959433,
0.047603387385606766,
-0.06163887307047844,
0.0007174634956754744,
-0.032321929931640625,
0.04338907450437546,
-0.03538188710808754,
-0.0064680506475269794,
-0.04727357253432274,
0.00994027592241764,
0.008579786866903305,
-0.032706715166568756,
0.014145425520837307,
-0.020741736516356468,
0.018671227619051933,
-0.005190015304833651,
0.005130465142428875,
0.02805265039205551,
0.017489388585090637,
0.0011606531916186213,
0.0336228683590889,
-0.03562008589506149,
0.016903050243854523,
0.004166212398558855,
-0.029591789469122887,
-0.058780472725629807,
0.002911080839112401,
0.02816258929669857,
-0.03463063761591911,
0.0205218605697155,
0.0702507272362709,
-0.004883103538304567,
-0.023343615233898163,
0.01094804611057043,
-0.010581583715975285,
0.022702308371663094,
-0.017608489841222763,
0.029133712872862816,
-0.047786615788936615,
0.03549182415008545,
0.022262554615736008,
0.010425837710499763,
0.014640148729085922,
0.0012322277761995792,
-0.058780472725629807,
0.09630616009235382,
-0.0615655817091465,
0.03085608221590519,
-0.05317360535264015,
0.029316943138837814,
0.01814902015030384,
-0.02937191165983677,
-0.022372491657733917,
-0.04115365818142891,
0.01620677299797535,
-0.054932620376348495,
-0.0025629422161728144,
-0.017919981852173805,
0.009665429592132568,
-0.034832194447517395,
0.03728748857975006,
-0.0348871611058712,
-0.016463296487927437,
-0.002347645815461874,
0.07805635780096054,
0.06420410424470901,
0.027759481221437454,
0.04437852278351784,
0.02911539003252983,
0.02431473881006241,
-0.004143308382481337,
-0.01229479257017374,
-0.015428041107952595,
-0.002844659611582756,
0.00803009420633316,
0.04404870793223381,
0.013220109045505524,
0.03474057838320732,
-0.05255062133073807,
-0.025634001940488815,
0.015931926667690277,
-0.014658471569418907,
0.06090594828128815,
0.03803873434662819,
-0.02374672330915928,
0.011946653947234154,
0.031753912568092346,
0.05313695967197418,
0.023013800382614136,
0.010673199780285358,
0.012175693176686764,
-0.004143308382481337,
-0.015473849140107632,
-0.06061277911067009,
-0.030031543225049973,
-0.005638930946588516,
-0.018167342990636826,
-0.020265337079763412,
0.03477722406387329,
-0.034227531403303146,
-0.018240636214613914,
-0.05005868151783943,
0.0006785268778912723,
0.017773397266864777,
0.050791602581739426,
-0.047676678746938705,
-0.01832308992743492,
-0.005703061819076538,
-0.019220920279622078,
0.058194130659103394,
0.027393018826842308,
0.011827554553747177,
0.02066844515502453,
0.010489968582987785,
0.0713501125574112,
-0.028858866542577744,
-0.002581265289336443,
0.018982721492648125,
-0.026458540931344032,
0.032670069485902786,
0.00967459101229906,
0.010599907487630844,
-0.007063550874590874,
-0.03303653001785278,
0.020503537729382515,
-0.042399629950523376,
0.02968340553343296,
0.03800208866596222,
-0.037598978728055954,
0.028144264593720436,
-0.03987104445695877,
0.04415864497423172,
-0.05683822184801102,
0.07047060132026672,
-0.013522439636290073,
0.04214310646057129,
-0.013815609738230705,
-0.0036485851742327213,
0.029628435149788857,
-0.05156117305159569,
0.03655456379055977,
0.012945262715220451,
0.003410384990274906,
-0.0743550956249237,
-0.08553218096494675,
0.013504116795957088,
0.030416328459978104,
0.05035185068845749,
-0.0178650114685297,
0.03869836404919624,
0.0022514495067298412,
-0.004305926151573658,
-0.08098805695772171,
-0.011351154185831547,
-0.03212037682533264,
0.034520700573921204,
-0.08238060772418976,
-0.057094745337963104,
-0.021841121837496758,
-0.026348602026700974,
-0.030233098194003105,
0.0031653137411922216,
-0.018240636214613914,
0.027539603412151337,
-0.019624028354883194,
0.0504617877304554,
-0.016362518072128296,
0.020796706900000572,
0.0020957032684236765,
-0.01748022809624672,
-0.07091035693883896,
-0.018982721492648125,
0.05119471251964569,
-0.048812709748744965,
0.046833816915750504,
0.04232633486390114,
-0.04023750498890877,
-0.053759943693876266,
-0.007704859133809805,
-0.0287306047976017,
-0.046797171235084534,
0.020851675420999527,
-0.016078511252999306,
0.008364490233361721,
-0.06350782513618469,
0.037379100918769836,
0.023435231298208237,
-0.0004801221948582679,
0.027118172496557236,
-0.01758100464940071,
0.015666240826249123,
-0.025927171111106873,
-0.017324481159448624,
-0.051817696541547775,
0.02636692486703396,
0.03021477535367012,
-0.031185898929834366,
0.04023750498890877,
-0.01050829142332077,
-0.05834071710705757,
-0.030727820470929146,
-0.03310982137918472,
-0.015134871937334538,
-0.016536587849259377,
0.054895974695682526,
0.028858866542577744,
0.027228111401200294,
-0.0726693719625473,
0.03089272975921631,
0.0007363591575995088,
0.025817232206463814,
0.015556302852928638,
0.05764443799853325,
-0.006614635232836008,
0.04195987433195114,
0.006509277503937483,
0.031369127333164215,
-0.008703467436134815,
0.04232633486390114,
0.00921651441603899,
0.015263133682310581,
0.05042514204978943,
-0.009399744682013988,
0.006028296425938606,
-0.023765046149492264,
0.0004131284076720476,
-0.015327264554798603,
0.054053112864494324,
-0.02508430927991867,
0.0451480932533741,
-0.005313695874065161,
0.010865592397749424,
0.03728748857975006,
0.010434999130666256,
0.03420920670032501,
0.09308129549026489,
-0.021309753879904747,
-0.03402597829699516,
-0.022482430562376976,
0.0016731270588934422,
0.003733329474925995,
0.0369393490254879,
-0.039577871561050415,
-0.03549182415008545,
0.05522579327225685,
0.0033668677788227797,
0.004241795279085636,
0.005171691998839378,
0.08421292155981064,
0.07398863881826401,
0.011964977718889713,
0.04089713469147682,
0.03230360522866249,
-0.015950249508023262,
-0.009738721884787083,
0.030086513608694077,
-0.00016132908058352768,
0.007970543578267097,
-0.009331033565104008,
0.056874871253967285,
0.03226695954799652,
0.01535474881529808,
0.02937191165983677,
0.025432448834180832,
0.0574612095952034,
-0.026476863771677017,
-0.0008142322767525911,
0.0016135770129039884,
0.007572016678750515,
-0.03439243882894516,
-0.03507039323449135,
-0.03332969918847084,
0.020723413676023483,
0.024864431470632553,
0.004518931731581688,
0.04511144757270813,
-0.0025927170645445585,
-0.022812247276306152
] |
723,001
|
pyvat.vat_charge
|
VatChargeAction
|
VAT charge action.
|
class VatChargeAction(Enum):
"""VAT charge action.
"""
charge = 1
"""Charge VAT.
"""
reverse_charge = 2
"""No VAT charged but customer is required to account via reverse-charge.
"""
no_charge = 3
"""No VAT charged.
"""
|
(value, names=None, *, module=None, qualname=None, type=None, start=1)
|
[
0.061360277235507965,
-0.08832509070634842,
-0.03805333003401756,
-0.054963793605566025,
0.02158334292471409,
-0.08074124157428741,
0.026792455464601517,
-0.04523501172661781,
-0.019687380641698837,
-0.05622776970267296,
-0.032193079590797424,
0.038589563220739365,
0.02022361196577549,
0.02282816730439663,
-0.03516150638461113,
-0.012486548162996769,
0.005491591524332762,
-0.03403158858418465,
0.017015794292092323,
0.021257774904370308,
0.059866487979888916,
0.045694638043642044,
-0.029205501079559326,
-0.002306516282260418,
0.020644936710596085,
0.0729275718331337,
-0.0019354629330337048,
0.012084374204277992,
-0.027884071692824364,
-0.09047002345323563,
-0.019428839907050133,
-0.030814196914434433,
-0.02171740122139454,
-0.010849125683307648,
-0.08005179464817047,
-0.0161252673715353,
-0.003341875271871686,
0.02095135487616062,
-0.09092964977025986,
0.05266565829515457,
0.0046465471386909485,
0.007670034654438496,
-0.03104401007294655,
-0.03588924929499626,
-0.03562113642692566,
-0.022674959152936935,
-0.038072481751441956,
0.029990697279572487,
-0.002401075093075633,
-0.04496689513325691,
0.04561803489923477,
0.006587994750589132,
-0.023326098918914795,
-0.04561803489923477,
-0.011567293666303158,
0.02531781792640686,
0.01970653049647808,
0.062011417001485825,
-0.005271353293210268,
0.06128367409110069,
-0.008388202637434006,
0.04347310587763786,
-0.013453681021928787,
-0.05216772481799126,
0.019036240875720978,
-0.013233442790806293,
0.008938798680901527,
0.014344209805130959,
-0.015761394053697586,
0.045388221740722656,
0.02290477231144905,
0.010121381841599941,
0.008019543252885342,
0.01569436490535736,
0.022598354145884514,
-0.049103543162345886,
0.01599120907485485,
0.03521896153688431,
-0.0005248611560091376,
-0.021698251366615295,
0.04711182415485382,
-0.05121016874909401,
0.036559540778398514,
-0.03502744808793068,
-0.0068896254524588585,
0.02504970133304596,
0.01520601101219654,
-0.10739963501691818,
-0.04151969030499458,
0.061168767511844635,
-0.040485527366399765,
-0.029397012665867805,
-0.06132197380065918,
-0.026849908754229546,
0.012687635608017445,
0.025068853050470352,
0.005888978019356728,
-0.03673190250992775,
-0.07422985136508942,
-0.00015784734569024295,
-0.017207305878400803,
0.05890893191099167,
-0.01821274124085903,
-0.032193079590797424,
-0.0262945257127285,
-0.09223192930221558,
-0.05484888702630997,
0.012160979211330414,
0.04469877853989601,
-0.00540062366053462,
-0.011653473600745201,
-0.012783391401171684,
-0.0074545843526721,
-0.04220912978053093,
0.017274335026741028,
0.029894942417740822,
-0.006099640391767025,
0.012084374204277992,
-0.021410983055830002,
-0.0009030963410623372,
0.05879402533173561,
-0.01582842320203781,
0.01940968818962574,
0.03328469395637512,
0.04508180171251297,
0.05641928315162659,
0.01596248149871826,
-0.010111805982887745,
0.002872672164812684,
0.09430025517940521,
-0.016843434423208237,
0.013262169435620308,
0.004419127479195595,
-0.02290477231144905,
0.021698251366615295,
0.0230388306081295,
0.04079194366931915,
-0.0032389378175139427,
-0.004361673723906279,
0.06331369280815125,
0.029243802651762962,
0.04676710441708565,
-0.020664088428020477,
-0.033954985439777374,
0.01862449198961258,
0.010111805982887745,
-0.02022361196577549,
0.037804365158081055,
-0.03418479859828949,
0.03240374103188515,
-0.01708282344043255,
0.015761394053697586,
0.0061235795728862286,
0.023115435615181923,
0.04841409996151924,
-0.0034472066909074783,
-0.006449148990213871,
-0.04060043394565582,
-0.017743539065122604,
-0.02146843634545803,
-0.008584502153098583,
0.009369699284434319,
-0.020702390000224113,
0.03548707813024521,
0.02577744424343109,
0.033303845673799515,
-0.04098345711827278,
-0.024704981595277786,
-0.008397778496146202,
-0.03261440619826317,
-0.03073759190738201,
-0.03680850565433502,
-0.0031527576502412558,
0.007167316973209381,
0.015464551746845245,
0.048567309975624084,
-0.029013989493250847,
0.025681689381599426,
0.07246794551610947,
-0.0723913386464119,
0.00926915556192398,
0.025930654257535934,
-0.049295052886009216,
-0.018739398568868637,
0.011538567021489143,
-0.05408284068107605,
0.05814288556575775,
0.017762688919901848,
0.004323371686041355,
-0.020127857103943825,
0.026505189016461372,
-0.015282616019248962,
0.016086963936686516,
0.013175989501178265,
-0.028784174472093582,
-0.04404763877391815,
-0.03495084494352341,
-0.028401151299476624,
0.009058493189513683,
0.014880442060530186,
-0.030546080321073532,
0.019227752462029457,
0.004139041993767023,
0.0006523359916172922,
0.013290897011756897,
0.042898569256067276,
0.058219488710165024,
-0.06768015772104263,
-0.034931693226099014,
-0.07361701130867004,
-0.04109836369752884,
0.04918014630675316,
0.03230798617005348,
0.012553577311336994,
-0.0162688996642828,
-0.043549709022045135,
0.015081528574228287,
0.03131212666630745,
-0.06687580794095993,
0.02257920242846012,
0.03573604300618172,
-0.012208856642246246,
0.003899652510881424,
-0.0258923526853323,
0.05657248944044113,
0.00597037049010396,
-0.011854560114443302,
-0.013559012673795223,
-0.06710562109947205,
-0.006339029874652624,
-0.022196181118488312,
-0.02407299354672432,
0.024187900125980377,
0.006894413381814957,
-0.0319824181497097,
0.015215586870908737,
0.011500264517962933,
-0.004344916436821222,
-0.06672260165214539,
0.03542962297797203,
0.03757455199956894,
0.009393637999892235,
-0.004553185310214758,
0.08035821467638016,
0.0029013988096266985,
-0.008766437880694866,
0.028554361313581467,
0.013252594508230686,
-0.022406842559576035,
-0.004656122997403145,
-0.03328469395637512,
-0.08112426102161407,
-0.03320809081196785,
-0.011136392131447792,
-0.026466885581612587,
-0.0553085133433342,
-0.08112426102161407,
0.03489338979125023,
0.022483447566628456,
-0.001107175718061626,
-0.04071534052491188,
-0.019936345517635345,
-0.01373137254267931,
-0.0063486057333648205,
0.008153601549565792,
0.019725682213902473,
0.028994837775826454,
-0.0034855089616030455,
0.019936345517635345,
-0.004629789851605892,
0.1659255474805832,
0.005328807048499584,
-0.03192496299743652,
0.014200575649738312,
-0.023996388539671898,
0.014238878153264523,
0.012505699880421162,
-0.0032365440856665373,
0.0026045560371130705,
-0.04052382707595825,
-0.02192806452512741,
-0.043549709022045135,
0.021774854511022568,
0.04887373000383377,
-0.044851988554000854,
0.025490177795290947,
-0.002638070611283183,
0.006769930943846703,
0.011873711831867695,
0.011663049459457397,
0.054580770432949066,
0.03613821417093277,
0.06741204112768173,
0.0023759391624480486,
0.11421744525432587,
0.04584784805774689,
0.03046947531402111,
0.010523555800318718,
0.020932205021381378,
0.013654768466949463,
0.036693599075078964,
0.0019270842894911766,
0.04860561341047287,
-0.022521749138832092,
-0.08043482154607773,
0.01085870061069727,
0.055614933371543884,
-0.017178580164909363,
0.033571962267160416,
0.005865038838237524,
-0.016556167975068092,
0.04814598709344864,
-0.011136392131447792,
0.006075701676309109,
0.004399976227432489,
0.018672369420528412,
-0.02916719764471054,
-0.03619566932320595,
0.05358491092920303,
0.020989658311009407,
-0.01382712833583355,
0.03228883445262909,
0.009034553542733192,
0.023249493911862373,
-0.05373812094330788,
-0.03602330759167671,
0.000587700866162777,
0.04079194366931915,
-0.0038805012591183186,
-0.039125796407461166,
-0.05707041919231415,
-0.04316668584942818,
0.0013405802892521024,
0.010159684345126152,
-0.05324019119143486,
0.02616046741604805,
0.010360770858824253,
-0.004651335068047047,
-0.03338044881820679,
0.023134587332606316,
0.06645448505878448,
0.021430134773254395,
-0.03295912593603134,
0.004191707354038954,
0.023192040622234344,
0.0007492886506952345,
0.0030641837511211634,
0.007569491397589445,
0.06047932431101799,
0.01582842320203781,
-0.018251044675707817,
-0.034491218626499176,
0.0422857329249382,
0.014966621994972229,
0.06120706722140312,
-0.042898569256067276,
0.045311614871025085,
-0.10487168282270432,
0.012764239683747292,
0.008598865009844303,
0.06890583038330078,
-0.014200575649738312,
-0.02797982655465603,
-0.0031599393114447594,
-0.03784266859292984,
-0.043281592428684235,
0.022751564159989357,
-0.04508180171251297,
0.03784266859292984,
0.011950315907597542,
0.018279770389199257,
0.014344209805130959,
-0.02830539643764496,
0.013875006698071957,
0.011959891766309738,
0.019687380641698837,
0.00836426392197609,
0.015636911615729332,
-0.006851322948932648,
0.027711709961295128,
0.013520710170269012,
-0.010590584948658943,
-0.014736807905137539,
0.0653437152504921,
0.009283519349992275,
-0.020395971834659576,
0.0485290102660656,
0.03994929417967796,
-0.02583489753305912,
0.051899611949920654,
-0.009479817934334278,
-0.006903988774865866,
-0.029052291065454483,
-0.022138725966215134,
-0.004658516496419907,
-0.0178967472165823,
-0.03424225375056267,
-0.013587739318609238,
0.015282616019248962,
-0.008656319230794907,
0.04780126363039017,
0.038781072944402695,
-0.03349535912275314,
-0.027520200237631798,
-0.03092910349369049,
0.009068068116903305,
-0.00817275233566761,
0.013262169435620308,
-0.06863771378993988,
-0.0026787668466567993,
-0.00626242533326149,
-0.0006038596038706601,
-0.018145712092518806,
-0.031675998121500015,
-0.008670682087540627,
-0.07959216833114624,
0.04006420075893402,
0.016910463571548462,
-0.028171338140964508,
-0.016412533819675446,
0.041328176856040955,
-0.02485818974673748,
0.06729713082313538,
0.05760665237903595,
0.00030222904752008617,
-0.0016134842298924923,
0.05576814338564873,
0.01705409772694111,
0.01405694242566824,
-0.0013513528974726796,
0.0184329804033041,
0.03133127838373184,
-0.05132507532835007,
-0.10946796089410782,
0.03305488079786301,
-0.04519670829176903,
-0.0300864540040493,
-0.07775366306304932,
-0.021889761090278625,
0.050597332417964935,
-0.03288251906633377,
0.011375782079994678,
0.023575063794851303,
0.04209422320127487,
0.03372517228126526,
-0.05369981750845909,
-0.04037062078714371,
-0.026907362043857574,
0.09859010577201843,
-0.04768635705113411,
-0.032920822501182556,
0.021315228193998337,
0.03895343467593193,
-0.001143682631663978,
0.025088002905249596,
-0.021219471469521523,
-0.07093585282564163,
0.012840844690799713,
-0.023172888904809952,
-0.034491218626499176,
0.027481896802783012,
0.024034690111875534,
-0.07825159281492233,
-0.012515274807810783,
-0.03573604300618172,
0.06545862555503845,
0.03811078518629074,
-0.006994956638664007,
-0.005199536681175232,
0.0005338382325135171,
-0.04416254535317421,
-0.00970484409481287,
0.04125157371163368,
0.0007851970731280744,
-0.02799897827208042,
0.030622685328125954,
0.0018732215976342559,
-0.01870109513401985,
-0.07756214588880539,
-0.0357934944331646,
0.06457766890525818,
-0.012017345055937767,
-0.030163057148456573,
0.023077134042978287,
-0.033169787377119064,
0.0365978442132473,
-0.0016769224312156439,
0.04845240339636803,
-0.021123716607689857,
-0.06047932431101799,
-0.05867911875247955,
-0.012151403352618217,
0.03542962297797203,
-0.022483447566628456,
0.030641837045550346,
0.03569773957133293,
-0.02238769270479679,
0.0298183374106884,
-0.03814908489584923,
0.012639757245779037,
0.055883049964904785,
-0.025490177795290947,
-0.06794827431440353,
-0.03596585616469383,
-0.02328779548406601,
-0.029780033975839615,
0.01853831112384796,
-0.03203986957669258,
0.028535209596157074,
0.005146870855242014,
0.005280929151922464,
0.020127857103943825,
0.06584164500236511,
-0.0210088100284338,
-0.011921589262783527,
-0.00019944124505855143,
0.02407299354672432,
-0.011375782079994678,
0.030948255211114883,
0.007478523068130016,
-0.027156326919794083,
-0.06917394697666168,
0.022100424394011497,
-0.00176908727735281,
-0.012151403352618217,
0.030163057148456573,
-0.032920822501182556,
-0.050788845866918564,
-0.003066577482968569,
-0.02596895582973957,
0.02016615867614746,
-0.004500519949942827,
0.0029013988096266985,
0.027501048520207405,
-0.032844219356775284,
-0.005884190090000629,
0.010628887452185154,
0.0022933499421924353,
-0.030316267162561417,
0.061551790684461594,
-0.014133547432720661,
-0.008527048863470554,
-0.038455504924058914,
0.002697917865589261,
0.024187900125980377,
-0.01535922009497881,
-0.00592249259352684,
-0.07603005319833755,
0.0018720247317105532,
-0.004893118049949408,
-0.018739398568868637,
0.018116986379027367,
-0.06323709338903427,
-0.039183247834444046,
0.010265015065670013,
0.07231473177671432,
0.025547631084918976,
0.0012035300023853779,
0.06794827431440353,
-0.014296331442892551,
-0.02941616252064705,
-0.0033227242529392242,
-0.02060663513839245,
-0.03098655678331852,
0.019936345517635345,
0.00784718245267868,
0.04144308343529701,
0.017341364175081253,
0.04370291903614998,
-0.011270450428128242,
0.038455504924058914,
-0.05641928315162659,
0.033112335950136185,
0.02282816730439663,
-0.004328159615397453,
0.009580361656844616,
0.011509839445352554,
0.016058238223195076,
0.027041420340538025,
0.0006906382623128593,
-0.033629417419433594,
-0.019725682213902473,
-0.048643916845321655,
-0.07005489617586136,
0.015062377788126469,
0.047341637313365936,
-0.0031743028666824102,
0.013463256880640984,
0.02675415389239788,
0.007138590328395367,
-0.02884162776172161,
0.002362772822380066,
0.029569372534751892,
0.00274818972684443,
-0.055040400475263596,
0.005453289486467838,
0.033840078860521317,
-0.00013383360055740923,
-0.029856638982892036,
0.04286026954650879,
0.018184015527367592,
0.04351140931248665,
0.012591879814863205,
0.016259323805570602,
0.057376839220523834,
0.02732868865132332,
0.007861546240746975,
-0.0262945257127285,
-0.002098247641697526,
0.012457821518182755,
0.03592755272984505,
-0.013357925228774548,
-0.04155799001455307,
0.030775895342230797,
0.013578163459897041,
0.0030737591441720724,
0.011586444452404976,
0.014746383763849735,
-0.02491564303636551,
0.030756743624806404,
-0.08955077081918716,
0.008349900133907795,
-0.07928574830293655,
0.018471281975507736,
-0.02799897827208042,
0.030105603858828545,
-0.049103543162345886,
-0.024053841829299927,
-0.009115946479141712,
-0.06905903667211533,
0.0360616110265255,
0.048375800251960754,
-0.028133036568760872,
-0.03542962297797203,
-0.04508180171251297,
-0.01995549537241459,
-0.03138872981071472,
0.014344209805130959,
0.011988618411123753,
0.03125467151403427,
0.00784718245267868,
0.06216462701559067,
-0.018940486013889313,
0.05595965310931206,
-0.009393637999892235,
0.05488719046115875,
-0.07227642834186554,
-0.05324019119143486,
-0.01669980026781559,
-0.01669980026781559,
0.0057118297554552555,
0.06515220552682877,
-0.02472413145005703,
-0.005520318169146776,
-0.03508490324020386,
0.021813157945871353,
-0.00251119420863688,
0.030431173741817474,
0.05201451852917671,
-0.013693070970475674,
-0.039834387600421906,
0.01829892210662365,
0.06204972043633461,
-0.008972312323749065,
-0.020261913537979126,
0.009551635012030602,
0.045503128319978714,
-0.09131266921758652,
0.008737711235880852,
0.0002812824968714267,
0.03223138302564621,
0.05197621509432793,
0.03290167078375816,
-0.00937927421182394,
-0.030028998851776123,
0.03481678664684296,
0.04542652145028114,
0.09552592784166336,
0.07744724303483963,
0.0035932341124862432,
0.01256315317004919,
0.022234482690691948,
0.02610301412642002,
-0.03165684640407562,
0.04190270975232124,
-0.029397012665867805,
-0.04515840485692024,
-0.01672852784395218,
-0.013415379449725151,
-0.06925055384635925,
-0.029607674106955528,
-0.04561803489923477,
-0.055614933371543884,
-0.0009378077811561525,
0.0005239634192548692,
0.046537287533283234,
-0.016853010281920433,
-0.024551771581172943,
-0.0365978442132473,
0.013233442790806293,
0.03320809081196785,
-0.040753643959760666,
-0.003080940805375576,
0.02987579070031643,
-0.016661498695611954,
-0.003849380649626255,
0.03609991446137428,
-0.027118025347590446,
0.07281266152858734,
-0.003315542358905077,
0.04515840485692024,
0.08166049420833588,
-0.05109526216983795,
-0.0004554382467176765,
-0.009786236099898815,
0.010379922576248646,
-0.03575519472360611,
0.049295052886009216,
-0.039374761283397675,
0.03165684640407562,
-0.01161517109721899,
-0.028688419610261917,
0.023000529035925865,
0.025279514491558075,
-0.03290167078375816,
0.004215646535158157,
0.007167316973209381,
0.0794389620423317,
-0.028267094865441322,
-0.014401663094758987,
0.03071844018995762,
-0.003665050957351923,
-0.05369981750845909,
-0.008766437880694866,
0.0357934944331646,
0.021449284628033638,
-0.03368686884641647,
-0.009527696296572685,
0.042898569256067276,
0.08028161525726318,
-0.005491591524332762,
0.04860561341047287,
-0.02472413145005703,
-0.05760665237903595,
-0.07338719815015793,
0.07254454493522644,
-0.011835409328341484,
0.00830681063234806,
0.015675215050578117,
0.037746913731098175,
-0.020587483420968056,
-0.016987068578600883,
0.017762688919901848,
-0.0013070658314973116,
0.055040400475263596,
0.013539861887693405,
-0.023862330242991447,
-0.011653473600745201,
-0.07844310253858566,
-0.012371641583740711,
-0.02570084109902382,
-0.03315063565969467,
0.004696818999946117,
-0.004507701378315687,
0.00367941427975893,
-0.009958596900105476,
-0.014459116384387016,
0.0022011850960552692
] |
723,002
|
pyvat.result
|
VatNumberCheckResult
|
Result of a VAT number validation check.
:ivar is_valid:
Boolean value indicating if the checked VAT number was deemed to be
valid. ``True`` if the VAT number is valid or ``False`` if the VAT
number is positively invalid.
:ivar log_lines:
Check log lines.
:ivar business_name: Optional business name retrieved for the VAT number.
:ivar business_address: Optional address retrieved for the VAT number.
|
class VatNumberCheckResult(object):
"""Result of a VAT number validation check.
:ivar is_valid:
Boolean value indicating if the checked VAT number was deemed to be
valid. ``True`` if the VAT number is valid or ``False`` if the VAT
number is positively invalid.
:ivar log_lines:
Check log lines.
:ivar business_name: Optional business name retrieved for the VAT number.
:ivar business_address: Optional address retrieved for the VAT number.
"""
def __init__(self,
is_valid=None,
log_lines=None,
business_name=None,
business_address=None,
business_country_code=None):
self.is_valid = is_valid
self.log_lines = log_lines or []
self.business_name = business_name
self.business_address = business_address
self.business_country_code = business_country_code
|
(is_valid=None, log_lines=None, business_name=None, business_address=None, business_country_code=None)
|
[
0.0655675083398819,
-0.03630342707037926,
-0.008803716860711575,
0.02739538811147213,
0.0028007703367620707,
-0.07376798242330551,
-0.04190950095653534,
-0.06542236357927322,
0.019485196098685265,
-0.049529410898685455,
-0.03320103511214256,
0.02848394773900509,
0.04938426986336708,
-0.028647230938076973,
-0.04383262246847153,
0.029372936114668846,
0.02607097662985325,
-0.0019469321705400944,
0.014532255940139294,
0.048985131084918976,
-0.007941941730678082,
0.06487808376550674,
-0.05054539814591408,
0.08222245424985886,
0.02659711241722107,
0.060306139290332794,
0.03336431831121445,
-0.001979815773665905,
-0.018741348758339882,
-0.019394483417272568,
-0.019666623324155807,
-0.018977202475070953,
0.014078689739108086,
0.023494720458984375,
-0.04637259244918823,
-0.04854970797896385,
0.04622745141386986,
0.0026238795835524797,
-0.1202494278550148,
0.0702483057975769,
0.017126653343439102,
-0.0038938643410801888,
0.028066666796803474,
0.044485755264759064,
-0.039587244391441345,
-0.015130963176488876,
-0.024365566670894623,
0.019467053934931755,
-0.08222245424985886,
-0.05286765843629837,
0.0009587252279743552,
0.015711527317762375,
0.0037986156530678272,
-0.04031294956803322,
-0.007334162946790457,
0.019485196098685265,
0.06647463887929916,
0.10769472271203995,
0.02360357716679573,
0.011321008205413818,
-0.06941374391317368,
0.050109975039958954,
0.014795323833823204,
-0.05664132535457611,
0.02447442337870598,
0.05257737636566162,
-0.04920284450054169,
-0.0008390971925109625,
-0.003966434858739376,
0.040131524205207825,
0.026796681806445122,
-0.01612880825996399,
-0.020301615819334984,
0.03846240043640137,
0.07815849781036377,
-0.013634194619953632,
-0.03995009511709213,
0.02922779507935047,
-0.018051927909255028,
-0.018124498426914215,
0.05108967795968056,
0.003442566143348813,
0.046046022325754166,
-0.07663451880216599,
0.008200474083423615,
-0.00881278794258833,
-0.0006451976951211691,
-0.026179831475019455,
0.06357181817293167,
0.10355819761753082,
-0.07325998693704605,
0.020337900146842003,
-0.032910753041505814,
-0.02097289264202118,
-0.019194914028048515,
0.034017451107501984,
0.06088670343160629,
-0.07206257432699203,
-0.041183795779943466,
0.02844766154885292,
0.0013822425389662385,
0.04854970797896385,
-0.04274406284093857,
-0.018278710544109344,
-0.029137082397937775,
-0.01932191289961338,
-0.0595441497862339,
0.0012189587578177452,
0.05885472893714905,
0.03820840269327164,
-0.03218504413962364,
-0.02391200140118599,
-0.06164869666099548,
-0.020065762102603912,
0.012001357041299343,
-0.01904977299273014,
-0.006703705992549658,
0.011910644359886646,
-0.10602559894323349,
-0.006490529980510473,
0.09093091636896133,
-0.02581697888672352,
-0.017915857955813408,
0.0793922021985054,
-0.006046035327017307,
-0.024837275967001915,
0.027486102655529976,
0.0067399912513792515,
0.06437008827924728,
-0.0178070031106472,
0.030388925224542618,
0.002299579791724682,
0.016745658591389656,
0.005610611755400896,
-0.007243449799716473,
0.011012583039700985,
0.011112367734313011,
-0.01836942508816719,
-0.05620590224862099,
0.029209652915596962,
0.025127558037638664,
0.02870165929198265,
-0.001316475449129939,
-0.06132212653756142,
-0.006640206556767225,
-0.01559360045939684,
-0.041510362178087234,
-0.013144344091415405,
-0.036648135632276535,
-0.006191176362335682,
-0.012808704748749733,
-0.0166368018835783,
0.04662659019231796,
0.023730574175715446,
-0.0244199950248003,
-0.0020444488618522882,
0.03980495408177376,
-0.08019047230482101,
0.043106917291879654,
-0.03621271252632141,
-0.009116677567362785,
0.0013221449917182326,
0.026125403121113777,
0.034471020102500916,
0.019739193841814995,
0.023839430883526802,
-0.023258866742253304,
-0.029899073764681816,
-0.03267489746212959,
0.019448911771178246,
-0.006490529980510473,
-0.0172173660248518,
-0.06335410475730896,
0.047932859510183334,
-0.01903163082897663,
0.030806204304099083,
0.023512862622737885,
0.0006236532935872674,
0.07282456010580063,
0.0017416935879737139,
-0.015257961116731167,
0.04619116336107254,
-0.048731133341789246,
0.036339711397886276,
0.007774122059345245,
-0.016310235485434532,
0.011121438816189766,
0.02146274410188198,
0.022950440645217896,
-0.014341757632791996,
0.03214875981211662,
-0.009588385932147503,
0.06280982494354248,
0.002410703571513295,
-0.021372031420469284,
-0.054609350860118866,
-0.014124046079814434,
0.045247748494148254,
-0.021063607186079025,
-0.03965981304645538,
0.020737038925290108,
-0.015421245247125626,
-0.0047261579893529415,
0.0008527041645720601,
-0.0008963598520494998,
0.0445583276450634,
-0.039623528718948364,
-0.014668325893580914,
-0.04332462698221207,
-0.006871525663882494,
0.028647230938076973,
-0.016981512308120728,
-0.02122689038515091,
0.0825127363204956,
-0.00570132490247488,
-0.09441430866718292,
0.08998750150203705,
0.04165550321340561,
-0.017308080568909645,
0.03200361877679825,
0.08200474083423615,
-0.0715908631682396,
-0.010150807909667492,
0.02412971295416355,
0.03842611610889435,
0.07035716623067856,
0.005497220437973738,
0.04379633814096451,
0.012473066337406635,
-0.024855418130755424,
0.0051298318430781364,
-0.002936840057373047,
0.01648258976638317,
0.02331329509615898,
-0.06799861788749695,
-0.04666287451982498,
0.0025739872362464666,
0.02256944589316845,
-0.019956905394792557,
-0.014686468057334423,
0.018741348758339882,
0.009452315978705883,
0.024891704320907593,
0.04463089630007744,
0.012953845784068108,
-0.061866406351327896,
-0.02117246203124523,
0.052795086055994034,
-0.01957591064274311,
-0.01982990652322769,
-0.04960198327898979,
-0.050109975039958954,
0.016664016991853714,
0.0035877074114978313,
0.02822994999587536,
-0.004345162771642208,
-0.05983443185687065,
0.0011520577827468514,
0.06371695548295975,
0.020210903137922287,
0.052722517400979996,
-0.0029935359489172697,
0.020301615819334984,
0.005651433020830154,
-0.06963145732879639,
0.02039232850074768,
0.0021635100711137056,
-0.010214307345449924,
0.022714586928486824,
0.023785002529621124,
0.03160447999835014,
0.0057330746203660965,
-0.022242877632379532,
-0.001817665877752006,
-0.055226199328899384,
0.008354686200618744,
-0.007402197923511267,
-0.009171104989945889,
-0.02097289264202118,
-0.0472797229886055,
0.007497446611523628,
0.0009292433969676495,
0.020737038925290108,
0.024329282343387604,
0.022932298481464386,
-0.04219978302717209,
-0.007551874499768019,
-0.012645420618355274,
-0.033654600381851196,
-0.02766752801835537,
-0.019757336005568504,
-0.037228699773550034,
0.07656195014715195,
-0.008830931037664413,
0.05693160742521286,
0.014641111716628075,
-0.011629433371126652,
-0.014505041763186455,
-0.0375552661716938,
-0.040131524205207825,
-0.02202516607940197,
-0.00008546884782845154,
0.019539624452590942,
-0.027268389239907265,
-0.04346976801753044,
0.04408662021160126,
0.02146274410188198,
-0.007229842711240053,
0.027340959757566452,
0.01033223420381546,
0.01655516028404236,
0.050617970526218414,
0.04695315659046173,
-0.03644856810569763,
0.02630683034658432,
-0.015130963176488876,
0.007941941730678082,
-0.02226102165877819,
0.011892501264810562,
0.02418414130806923,
0.012119284830987453,
0.02385757304728031,
0.03795440495014191,
0.012264425866305828,
-0.007311484310775995,
-0.03777297958731651,
-0.0008640433079563081,
-0.010359448380768299,
-0.029663218185305595,
0.010613445192575455,
-0.07111915200948715,
-0.0029277687426656485,
-0.000987639999948442,
0.0429980605840683,
0.04194578528404236,
0.005420113913714886,
-0.01504932064563036,
-0.017598362639546394,
0.020900322124361992,
-0.0010488714324310422,
0.04720715433359146,
-0.013516267761588097,
-0.06117698550224304,
-0.011556862853467464,
0.0027372711338102818,
-0.03301960602402687,
-0.07358655333518982,
-0.03568657487630844,
0.03350945934653282,
0.04691687226295471,
-0.07039345055818558,
-0.0012473065871745348,
-0.0028824121691286564,
0.029699504375457764,
0.03699284419417381,
-0.03713798522949219,
0.03227575868368149,
-0.0570041798055172,
0.04532031714916229,
0.017643718048930168,
-0.013815621845424175,
0.02251501753926277,
-0.0053566149435937405,
-0.03203990310430527,
-0.062120404094457626,
-0.04960198327898979,
0.00798729807138443,
-0.04996483400464058,
0.01776164583861828,
0.007279735058546066,
-0.03679327666759491,
-0.015203533694148064,
-0.018451066687703133,
-0.06705520302057266,
0.05348450690507889,
-5.713869200008048e-7,
0.016845442354679108,
-0.0007069960702210665,
-0.06836147606372833,
0.011783645488321781,
-0.015693385154008865,
0.029082654044032097,
0.002122689038515091,
0.012427709065377712,
0.0026374864391982555,
-0.020573755726218224,
-0.020809609442949295,
0.06676492094993591,
-0.009597457014024258,
0.10014738142490387,
0.009615600109100342,
0.015130963176488876,
-0.001636239467188716,
0.014468756504356861,
-0.01745322160422802,
-0.01879577711224556,
0.006581243127584457,
-0.0010477375471964478,
-0.003043428063392639,
-0.05508105829358101,
0.018532708287239075,
-0.00022479867038782686,
-0.061358414590358734,
0.019721051678061485,
-0.004948405548930168,
-0.000829458876978606,
0.027286533266305923,
-0.017525792121887207,
-0.05348450690507889,
-0.026143547147512436,
0.009189248085021973,
-0.021589742973446846,
0.04031294956803322,
-0.054935917258262634,
-0.0418369323015213,
0.01932191289961338,
-0.02231544815003872,
-0.0020557879470288754,
-0.011484292335808277,
-0.01397890504449606,
0.04405033215880394,
-0.004957476630806923,
0.03497901186347008,
0.04401404783129692,
0.013606981374323368,
0.02603469043970108,
0.01621044985949993,
-0.00631817476823926,
-0.02663339674472809,
-0.02097289264202118,
0.020610040053725243,
0.018686920404434204,
-0.04296177625656128,
-0.049819692969322205,
-0.000976867857389152,
-0.022750873118638992,
-0.035069726407527924,
-0.03831725940108299,
0.002408435568213463,
0.044195473194122314,
-0.0089035015553236,
0.04190950095653534,
0.06462408602237701,
0.047388579696416855,
-0.036865849047899246,
-0.03566843271255493,
-0.005147974472492933,
-0.05453677847981453,
-0.028012238442897797,
-0.08316586911678314,
-0.012445852160453796,
0.007710622623562813,
-0.020537469536066055,
-0.01675472967326641,
-0.028284378349781036,
0.017235510051250458,
-0.10871070623397827,
-0.027250247076153755,
-0.02922779507935047,
0.012708920054137707,
-0.011112367734313011,
0.020555613562464714,
-0.05424649640917778,
-0.014169403351843357,
-0.08505270630121231,
0.013244127854704857,
0.03552329167723656,
0.0073024132288992405,
-0.022605732083320618,
-0.007819478400051594,
-0.04452204331755638,
-0.024909846484661102,
0.023295151069760323,
0.05965300649404526,
0.000607211550232023,
0.06255582720041275,
-0.009488601237535477,
-0.0574033185839653,
-0.06103184446692467,
-0.016273949295282364,
0.0025649159215390682,
0.042598921805620193,
0.005687718279659748,
0.007810407318174839,
0.008136974647641182,
0.019920621067285538,
0.006726384162902832,
-0.007275199051946402,
-0.017779788002371788,
-0.042852919548749924,
-0.050037406384944916,
0.022877870127558708,
0.022170307114720345,
-0.004283931106328964,
-0.011602219194173813,
0.03383602574467659,
-0.011166796088218689,
0.03508786857128143,
0.02603469043970108,
-0.03033449687063694,
-0.008227688260376453,
-0.01098536979407072,
-0.02715953439474106,
-0.015729669481515884,
0.04405033215880394,
0.0038530435413122177,
-0.024637706577777863,
0.01660051755607128,
-0.01357976719737053,
0.009670027531683445,
-0.03940581530332565,
0.022732729092240334,
0.06509579718112946,
0.047352295368909836,
-0.0009235738543793559,
0.0033132999669760466,
-0.05174281448125839,
-0.041437793523073196,
-0.043614909052848816,
0.00779680022969842,
-0.02897379919886589,
0.019993191584944725,
0.04463089630007744,
-0.06992173939943314,
0.008341079577803612,
0.0612858422100544,
-0.03681141883134842,
-0.018070070073008537,
-0.012409566901624203,
-0.011302866041660309,
-0.011203081347048283,
-0.06059642136096954,
0.026959965005517006,
0.007148200646042824,
-0.007697015535086393,
-0.019993191584944725,
0.011266580782830715,
-0.003270211163908243,
-0.03652113676071167,
0.036666277796030045,
0.009021428413689137,
0.01074044406414032,
-0.051162250339984894,
-0.023204438388347626,
0.007978226989507675,
0.015666170045733452,
-0.01019616425037384,
0.021662313491106033,
-0.0677083358168602,
-0.03780926391482353,
0.03940581530332565,
-0.02418414130806923,
0.05094453692436218,
-0.0026715039275586605,
0.04190950095653534,
0.0505816824734211,
-0.0001729220530251041,
0.029354793950915337,
0.07325998693704605,
-0.026488255709409714,
0.02416599914431572,
-0.0012076195562258363,
-0.012572850100696087,
-0.06745433807373047,
-0.08839094638824463,
-0.01409683283418417,
0.0045084464363753796,
-0.01932191289961338,
-0.004229503218084574,
0.0026193438097834587,
0.06447894871234894,
-0.009148427285254002,
-0.004052612464874983,
0.054899632930755615,
-0.06349924206733704,
0.02848394773900509,
-0.027177676558494568,
0.031767766922712326,
0.025381555780768394,
0.012736134231090546,
0.0011044333223253489,
-0.0060777850449085236,
-0.03187661990523338,
-0.06248325854539871,
-0.020065762102603912,
0.037192415446043015,
-0.0445583276450634,
-0.004615034442394972,
0.02385757304728031,
0.014949536882340908,
0.009633742272853851,
0.00685338256880641,
-0.016292091459035873,
0.014314544387161732,
-0.004619569983333349,
0.022369876503944397,
0.014813466928899288,
-0.013879120349884033,
0.04350605234503746,
-0.007674337364733219,
-0.020755181089043617,
0.020573755726218224,
-0.038534969091415405,
-0.023748718202114105,
0.03998638316988945,
0.0014695539139211178,
-0.054355353116989136,
-0.023476578295230865,
-0.017770716920495033,
-0.016573302447795868,
0.023258866742253304,
-0.009742598049342632,
0.020519327372312546,
0.01048644632101059,
0.011076082475483418,
0.013933548703789711,
-0.019140487536787987,
0.040131524205207825,
-0.04053065925836563,
0.05094453692436218,
0.004943870007991791,
0.017698146402835846,
0.016509803012013435,
0.03145933896303177,
-0.01748950593173504,
-0.016863584518432617,
-0.013316698372364044,
-0.035033442080020905,
-0.014613897539675236,
-0.02015647478401661,
0.04005895182490349,
0.05591562017798424,
0.033690884709358215,
-0.014341757632791996,
-0.058383021503686905,
-0.022496875375509262,
0.010876513086259365,
0.023349579423666,
0.02204331010580063,
0.0433971993625164,
-0.02578069269657135,
-0.01516724843531847,
-0.024583278223872185,
0.029173366725444794,
0.02527269907295704,
-0.01006916631013155,
-0.044449470937252045,
-0.02253316156566143,
0.055697910487651825,
0.018106356263160706,
-0.010586231015622616,
0.07416711747646332,
-0.00812336802482605,
0.004324752371758223,
-0.0451388917863369,
0.039042964577674866,
0.002217937959358096,
0.04833199828863144,
0.017924929037690163,
0.03733755648136139,
-0.08011790364980698,
0.009806097485125065,
-0.008332008495926857,
-0.06378952413797379,
0.03889782354235649,
0.046844299882650375,
0.029445506632328033,
-0.03517858311533928,
-0.021353889256715775,
-0.0014684200286865234,
0.03142305463552475,
0.07013945281505585,
0.05014625936746597,
0.046844299882650375,
-0.028084808960556984,
-0.051379960030317307,
-0.028356948867440224,
0.04920284450054169,
0.025635551661252975,
-0.03414444997906685,
0.05174281448125839,
0.01465018279850483,
0.05210566520690918,
-0.06121327355504036,
0.000686018611304462,
-0.03136862814426422,
-0.03536000847816467,
0.041510362178087234,
-0.016192307695746422,
-0.03588614612817764,
-0.05344822257757187,
0.007651659194380045,
0.009325318038463593,
0.02117246203124523,
-0.025036845356225967,
0.038825251162052155,
-0.032112475484609604,
0.009216462261974812,
-0.0029731253162026405,
-0.038788966834545135,
0.01772536151111126,
-0.03838982805609703,
-0.00278943101875484,
0.06883317977190018,
-0.07438483089208603,
-0.016446303576231003,
-0.025073129683732986,
-0.03496086969971657,
0.00036256934981793165,
-0.031531911343336105,
0.056786466389894485,
0.041982073336839676,
0.02663339674472809,
-0.08926179260015488,
0.007361376658082008,
0.07264313846826553,
0.021263176575303078,
0.022478733211755753,
0.023803144693374634,
0.0006831838400103152,
0.004512981977313757,
0.011166796088218689,
0.04071208834648132,
0.005642361473292112,
-0.012645420618355274,
0.043360911309719086,
0.016827300190925598,
-0.03918810561299324,
0.03383602574467659,
-0.04249006509780884,
0.03730127215385437,
0.02688739448785782,
-0.07068373262882233,
-0.03673885017633438,
0.0031432125251740217,
0.02305929735302925,
-0.048440851271152496,
-0.002632950898259878,
0.040385518223047256,
0.07830364257097244,
0.016310235485434532,
0.034253306686878204,
-0.008513434790074825,
-0.03737384080886841,
-0.0381358340382576,
0.0686880424618721,
0.010232449509203434,
0.0504002571105957,
-0.0023358650505542755,
-0.037736695259809494,
-0.002571719465777278,
-0.023240724578499794,
0.015221675857901573,
0.005039118696004152,
0.13265898823738098,
0.03160447999835014,
0.025399697944521904,
0.008894429542124271,
0.025308985263109207,
-0.03784554824233055,
-0.0018074606778100133,
-0.02091846615076065,
-0.00007292491500265896,
0.02949993498623371,
-0.018441995605826378,
0.02070075459778309,
-0.049783408641815186,
0.0836738646030426
] |
723,003
|
pyvat.result
|
__init__
| null |
def __init__(self,
is_valid=None,
log_lines=None,
business_name=None,
business_address=None,
business_country_code=None):
self.is_valid = is_valid
self.log_lines = log_lines or []
self.business_name = business_name
self.business_address = business_address
self.business_country_code = business_country_code
|
(self, is_valid=None, log_lines=None, business_name=None, business_address=None, business_country_code=None)
|
[
-0.008343483321368694,
0.04311412572860718,
0.001469068811275065,
-0.023854276165366173,
-0.08600771427154541,
-0.08439047634601593,
-0.032473426312208176,
0.01308493409305811,
0.000923480256460607,
-0.018671760335564613,
-0.021373284980654716,
0.043665457516908646,
-0.013884365558624268,
-0.011688227765262127,
-0.022145148366689682,
0.03738027811050415,
0.015253504738211632,
-0.04006342217326164,
0.003641085233539343,
-0.0010940484935417771,
-0.0046403734013438225,
0.024387231096625328,
-0.02414832077920437,
0.12011675536632538,
0.034256063401699066,
0.056860655546188354,
0.012074160389602184,
0.008816709741950035,
0.04579726979136467,
0.006717055570334196,
0.05259702727198601,
-0.03309826925396919,
-0.03320853412151337,
0.018340962007641792,
0.005949785932898521,
-0.015768080949783325,
0.021263018250465393,
0.0014403535751625896,
-0.1226896420121193,
0.06340312212705612,
0.031811829656362534,
0.01715559884905815,
0.01604374684393406,
0.02416669763624668,
-0.01504216156899929,
-0.002830168465152383,
0.0033424473367631435,
0.041717417538166046,
-0.0009211830911226571,
-0.017642607912421227,
-0.03987964615225792,
0.039769381284713745,
-0.005605203565210104,
-0.02197974920272827,
-0.02585744857788086,
0.017339376732707024,
0.048443663865327835,
0.07939174026250839,
0.018543116748332977,
0.01316763460636139,
-0.10585565119981766,
0.01710965484380722,
0.05075925588607788,
-0.051751650869846344,
0.03811538591980934,
0.033686354756355286,
-0.05002414435148239,
-0.0017481803661212325,
0.022328926250338554,
0.03508306294679642,
0.0554271936416626,
0.01179849449545145,
-0.04392274469137192,
0.03493604063987732,
-0.010199633426964283,
0.0227699913084507,
-0.06013188883662224,
0.03980613499879837,
-0.008260783739387989,
-0.012735757976770401,
0.028393572196364403,
0.06638031452894211,
-0.07097474485635757,
-0.015630248934030533,
0.020472776144742966,
-0.036277614533901215,
0.01280926913022995,
0.013186012394726276,
0.02633526921272278,
0.0871838927268982,
-0.08791899681091309,
0.011090951971709728,
-0.014500019140541553,
0.023119168356060982,
-0.008968326263129711,
-0.023927787318825722,
0.008646715432405472,
0.0008815561304800212,
0.01523512788116932,
0.061491839587688446,
0.0043440330773591995,
-0.04671615734696388,
-0.06274152547121048,
0.006905427202582359,
-0.03534035012125969,
-0.048847973346710205,
-0.0256185382604599,
-0.07623077183961868,
0.019682535901665688,
0.005793575197458267,
-0.017247486859560013,
0.018221506848931313,
-0.023247811943292618,
0.01110014133155346,
-0.012662246823310852,
0.03508306294679642,
-0.010282333008944988,
-0.007130554411560297,
-0.0373067669570446,
-0.002970298519358039,
0.03120536357164383,
-0.019700912758708,
-0.04395949840545654,
0.08711037784814835,
0.05939678102731705,
0.015593493357300758,
-0.019002558663487434,
-0.01694425567984581,
0.08828655630350113,
-0.059065982699394226,
0.10967821627855301,
-0.07178336381912231,
0.028228173032402992,
-0.03785809874534607,
-0.022586213424801826,
-0.04032071307301521,
0.029220569878816605,
0.014233541674911976,
-0.04491513967514038,
-0.008600771427154541,
0.015464848838746548,
0.005683308932930231,
-0.012193615548312664,
-0.05230298265814781,
0.005573042668402195,
0.010815286077558994,
0.006703272461891174,
-0.026684444397687912,
-0.04109257459640503,
0.009129131212830544,
0.019700912758708,
-0.053626179695129395,
-0.07126878947019577,
0.014950272627174854,
-0.05928651615977287,
-0.048259884119033813,
-0.0035147382877767086,
-0.05803683027625084,
0.04418003186583519,
0.030984830111265182,
-0.002444236306473613,
-0.03164643049240112,
0.01025476586073637,
-0.02602284774184227,
-0.024368852376937866,
0.048847973346710205,
-0.004429029766470194,
-0.0693575069308281,
0.014417318627238274,
0.016264280304312706,
-0.02440560795366764,
-0.015951858833432198,
-0.03866671770811081,
0.046495623886585236,
-0.0825527086853981,
0.045760516077280045,
0.029808657243847847,
-0.011697417125105858,
0.016696155071258545,
-0.011568772606551647,
-0.011927138082683086,
0.057191453874111176,
-0.039438579231500626,
0.05667687952518463,
0.03800511732697487,
0.008274567313492298,
-0.041313108056783676,
0.03598356992006302,
0.03307989239692688,
0.03885049372911453,
0.02229217067360878,
-0.004052286501973867,
0.03491766378283501,
-0.027180643752217293,
-0.015382149256765842,
-0.0075394585728645325,
0.0187268927693367,
-0.007291359361261129,
-0.04653238132596016,
-0.014683796092867851,
0.01280926913022995,
0.05575799196958542,
-0.023725632578134537,
-0.04043097794055939,
0.006919210311025381,
0.05002414435148239,
-0.028320062905550003,
0.034237686544656754,
-0.03047025576233864,
-0.0018825674196705222,
0.02440560795366764,
-0.0295881237834692,
-0.052817560732364655,
0.016236713156104088,
0.026629311963915825,
-0.035616014152765274,
-0.010640698485076427,
0.03113185241818428,
0.034494973719120026,
0.03892400488257408,
0.10115095227956772,
-0.04605456069111824,
0.028485462069511414,
-0.04248928278684616,
0.027768731117248535,
0.044143278151750565,
0.045429717749357224,
-0.03844618424773216,
0.0047782063484191895,
-0.001501229708082974,
-0.07623077183961868,
-0.022237038239836693,
-0.007815124467015266,
-0.0039603980258107185,
0.03407228738069534,
-0.033686354756355286,
-0.019351735711097717,
-0.01791827380657196,
-0.05222947150468826,
-0.037564054131507874,
0.04395949840545654,
-0.023155923932790756,
-0.008586987853050232,
-0.01841447316110134,
0.008458344265818596,
-0.021538684144616127,
-0.04370221123099327,
0.04285683482885361,
-0.05083276703953743,
-0.038887251168489456,
-0.031003208830952644,
0.026151491329073906,
0.005288187880069017,
0.00001710348078631796,
0.008715632371604443,
0.01062232069671154,
0.03638787940144539,
-0.045282695442438126,
0.04083528742194176,
-0.01649400033056736,
0.019756045192480087,
-0.012533603236079216,
0.01013531070202589,
0.07674534618854523,
0.0004189545288681984,
-0.0015173102729022503,
0.0074016256257891655,
-0.027768731117248535,
0.042599547654390335,
0.017936652526259422,
0.1147504672408104,
0.03039674460887909,
0.007865662686526775,
0.02091384120285511,
-0.015336205251514912,
-0.06465280801057816,
0.00407525897026062,
-0.06366041302680969,
-0.05858816206455231,
0.0073970309458673,
0.06057295575737953,
0.019811179488897324,
0.04403300955891609,
0.019921446219086647,
0.05630932375788689,
-0.06314583867788315,
-0.009951533749699593,
-0.02357861027121544,
-0.06954128295183182,
-0.03688407689332962,
-0.010769342072308064,
0.04160715267062187,
0.020932219922542572,
0.024993695318698883,
0.03063565492630005,
-0.01637454517185688,
0.006781377829611301,
-0.003721487708389759,
0.0010842853225767612,
-0.04686317965388298,
-0.022347303107380867,
-0.01604374684393406,
0.09313827008008957,
-0.03113185241818428,
-0.02490180730819702,
-0.027180643752217293,
-0.0012381987180560827,
0.02003171108663082,
0.020858708769083023,
0.02578393742442131,
0.05311160162091255,
0.05505964159965515,
0.005710875615477562,
0.010447732172906399,
0.012055782601237297,
-0.01601617969572544,
-0.019719289615750313,
-0.01102663017809391,
-0.017523152753710747,
0.0277135968208313,
-0.004061475396156311,
-0.038703471422195435,
0.008476722054183483,
-0.058257363736629486,
0.026482289656996727,
0.016503190621733665,
0.04234226047992706,
-0.025728803128004074,
-0.016641022637486458,
0.02067493088543415,
-0.007034071255475283,
0.00204681814648211,
0.007057043258100748,
0.01191794965416193,
0.03120536357164383,
-0.013424922712147236,
-0.0450989194214344,
-0.01280926913022995,
0.005559259559959173,
-0.05641959235072136,
0.006831916514784098,
-0.02082195319235325,
-0.03500955179333687,
0.035781413316726685,
-0.016117257997393608,
-0.054030489176511765,
-0.03153616189956665,
-0.03065403178334236,
-0.012340636923909187,
0.016108069568872452,
-0.035303592681884766,
-0.01758747547864914,
-0.0023868060670793056,
0.011458506807684898,
0.0609772652387619,
-0.024019675329327583,
-0.02041764371097088,
-0.0008528409525752068,
0.0356527715921402,
0.0009320948156528175,
0.056640125811100006,
0.003896075999364257,
-0.032216139137744904,
-0.006308151409029961,
-0.012947102077305317,
0.03348420187830925,
0.011090951971709728,
-0.0016103474190458655,
0.029643258079886436,
-0.015170805156230927,
-0.013847609981894493,
-0.027603331953287125,
0.02278837002813816,
-0.011899571865797043,
0.019811179488897324,
0.04550322890281677,
0.0414968840777874,
-0.0028439518064260483,
-0.08990379422903061,
0.02141004055738449,
-0.07939174026250839,
-0.024662896990776062,
0.034752264618873596,
0.024938562884926796,
-0.025159094482660294,
-0.0032689364161342382,
-0.0094369575381279,
0.033833377063274384,
0.06185939535498619,
0.03065403178334236,
-0.010227199643850327,
-0.016190769150853157,
-0.026941733434796333,
-0.031168607994914055,
-0.005458182189613581,
-0.026941733434796333,
0.03048863261938095,
0.04855392873287201,
-0.02927570417523384,
-0.059543803334236145,
-0.012110915966331959,
-0.03815213963389397,
-0.025103962048888206,
0.026408780366182327,
-0.006105996668338776,
0.006248423829674721,
0.00867428258061409,
0.035542502999305725,
0.02642715722322464,
0.01268062461167574,
0.07953876256942749,
-0.02692335471510887,
-0.01523512788116932,
-0.0985780730843544,
-0.05939678102731705,
0.017284242436289787,
0.00705244904384017,
0.021704083308577538,
0.018910670652985573,
-0.04620157927274704,
0.0010245577432215214,
0.051273830235004425,
0.00938641931861639,
0.015859968960285187,
0.04410652071237564,
0.056456346064805984,
-0.01632860116660595,
-0.01373734325170517,
0.07902418076992035,
-0.04160715267062187,
-0.017431264743208885,
0.04234226047992706,
-0.08828655630350113,
0.009593168273568153,
0.029955679550766945,
-0.005747631192207336,
-0.010815286077558994,
-0.020491154864430428,
-0.008564015850424767,
0.009712623432278633,
-0.0277135968208313,
-0.033282045274972916,
0.06615978479385376,
0.019958199933171272,
-0.04862743988633156,
-0.004229172132909298,
-0.023284567520022392,
-0.030856186524033546,
0.02431371994316578,
-0.03767431899905205,
0.008711038157343864,
0.010052611120045185,
-0.03679218888282776,
-0.040394220501184464,
0.0032161003910005093,
-0.017128031700849533,
-0.04631184786558151,
-0.031572919338941574,
-0.006055457983165979,
0.03151778504252434,
-0.004148769658058882,
0.007824312895536423,
-0.001010774401947856,
-0.00013718678383156657,
-0.006128968670964241,
0.02982703410089016,
0.03120536357164383,
0.024129942059516907,
0.029698390513658524,
0.01516161672770977,
-0.015979424118995667,
0.025600159540772438,
-0.0030966452322900295,
0.021704083308577538,
0.00956560205668211,
0.021354908123612404,
0.0295881237834692,
-0.0573752336204052,
-0.05855140835046768,
-0.027199020609259605,
0.0043761939741671085,
0.0246445182710886,
-0.010557998903095722,
0.004837933927774429,
0.0019158769864588976,
-0.05447155237197876,
0.01397625356912613,
-0.05594177171587944,
0.012754135765135288,
0.024920184165239334,
-0.009758567437529564,
0.00907859206199646,
-0.012147670611739159,
-0.023211056366562843,
0.01734856516122818,
0.0314626507461071,
0.021869482472538948,
0.040982309728860855,
0.05156787484884262,
-0.018837159499526024,
-0.03727000951766968,
-0.02357861027121544,
-0.023155923932790756,
-0.01236820314079523,
0.01962740160524845,
-0.060352422297000885,
-0.029367592185735703,
0.0013599511003121734,
-0.06105077639222145,
-0.017863141372799873,
-0.02455263026058674,
-0.006184101570397615,
0.0022880258038640022,
-0.005600609350949526,
-0.03517495095729828,
-0.006018702406436205,
-0.06674786657094955,
0.005246838089078665,
-0.04903174936771393,
0.06241072714328766,
0.029771901667118073,
0.06380743533372879,
0.03778458759188652,
-0.054030489176511765,
0.006073835305869579,
-0.00018090565572492778,
0.04127635434269905,
-0.022567836567759514,
0.028522217646241188,
-0.010723398067057133,
-0.016319412738084793,
-0.06715217977762222,
-0.00294732628390193,
0.053368888795375824,
0.00778296310454607,
0.05101654306054115,
-0.01680642180144787,
-0.01820312812924385,
-0.0005341023788787425,
-0.004422137979418039,
0.028173040598630905,
0.016034558415412903,
-0.027364421635866165,
-0.051273830235004425,
-0.014766495674848557,
-0.035616014152765274,
0.01791827380657196,
0.03364960104227066,
-0.03129725158214569,
-0.008890220895409584,
0.05050196498632431,
-0.06314583867788315,
-0.014490829780697823,
-0.0030690787825733423,
0.002965704072266817,
-0.00751648610457778,
0.0025361250154674053,
0.03598356992006302,
0.043334655463695526,
-0.0002880132815334946,
-0.013847609981894493,
0.016521567478775978,
-0.05608879402279854,
0.004617401398718357,
-0.03511981666088104,
-0.023045657202601433,
0.010989874601364136,
-0.009593168273568153,
-0.015915103256702423,
0.06932074576616287,
0.01630103588104248,
0.004741451237350702,
-0.011201218701899052,
0.07902418076992035,
-0.011963893659412861,
-0.022494325414299965,
0.0017378429183736444,
0.06314583867788315,
-0.013369789347052574,
0.0060922130942344666,
0.021024107933044434,
0.025967713445425034,
-0.0785096064209938,
-0.038629960268735886,
-0.044474076479673386,
0.006965154781937599,
-0.06016864627599716,
-0.013911931775510311,
0.005278999451547861,
-0.014968650415539742,
0.015979424118995667,
0.01851554960012436,
-0.02350510098040104,
0.035781413316726685,
-0.034733884036540985,
0.014123275876045227,
0.031719937920570374,
-0.08159706741571426,
-0.031334009021520615,
0.01179849449545145,
-0.06237397342920303,
0.038299161940813065,
-0.03293287009000778,
0.014334619045257568,
0.0534791573882103,
-0.022255415096879005,
-0.033355556428432465,
0.0246445182710886,
-0.05634608119726181,
0.03243666887283325,
0.01272656861692667,
0.027290910482406616,
0.04667939990758896,
0.016475623473525047,
-0.018258262425661087,
-0.041386619210243225,
-0.00032821454806253314,
-0.0028232766781002283,
0.01090717501938343,
-0.03434795141220093,
0.018929049372673035,
-0.03008432313799858,
0.009129131212830544,
0.06990883499383926,
-0.09365284442901611,
-0.03032323345541954,
-0.010870419442653656,
-0.08461100608110428,
-0.010824475437402725,
-0.003335555549710989,
0.01889229379594326,
0.03892400488257408,
-0.022512704133987427,
-0.036351125687360764,
0.004587537609040737,
0.02286187931895256,
0.0452459380030632,
0.00397418113425374,
0.0533321350812912,
0.02447911910712719,
-0.028834637254476547,
0.005513315089046955,
0.027199020609259605,
-0.025636915117502213,
-0.0013392760884016752,
0.00794836226850748,
-0.0494360588490963,
-0.04531944915652275,
0.07226118445396423,
-0.014114086516201496,
-0.04473136365413666,
0.0754956603050232,
-0.009988289326429367,
0.0552801713347435,
-0.02205326035618782,
0.045429717749357224,
-0.01337897777557373,
0.04245252534747124,
0.04675291106104851,
-0.028981659561395645,
-0.07233469188213348,
-0.009556412696838379,
0.04208497330546379,
-0.04792908579111099,
-0.011899571865797043,
0.020895464345812798,
0.02036251127719879,
-0.024111565202474594,
-0.032785847783088684,
0.009556412696838379,
-0.01037422101944685,
0.030672410503029823,
0.06902670860290527,
0.036351125687360764,
0.01585078053176403,
0.0009820592822507024,
-0.028485462069511414,
0.017219921573996544,
0.054839108139276505,
-0.034568484872579575,
0.041864439845085144,
0.012993046082556248,
0.02098735235631466,
-0.1065172478556633,
0.03168318420648575,
0.04491513967514038,
-0.035303592681884766,
0.018763648346066475,
0.018837159499526024,
0.01386598777025938,
-0.03006594441831112,
-0.00279800733551383,
0.019737668335437775,
0.046238336712121964,
0.030121078714728355,
-0.0013622483238577843,
-0.03664516657590866,
-0.07288602739572525,
0.005260621663182974,
0.057117946445941925,
0.017330186441540718,
0.03008432313799858,
-0.015428093262016773,
0.06086700037121773,
-0.03421930968761444,
-0.02650066837668419,
-0.04208497330546379,
-0.005237649194896221,
-0.0025039638858288527,
-0.020197110250592232,
0.06535115838050842,
0.03892400488257408,
0.0414968840777874,
-0.03807862848043442,
-0.013489244505763054,
0.02528773806989193,
0.015859968960285187,
0.0014529882464557886,
-0.04282008111476898,
-0.03892400488257408,
0.05072249844670296,
0.00788863468915224,
0.004617401398718357,
-0.013884365558624268,
0.030525388196110725,
-0.008394022472202778,
-0.05851465091109276,
-0.047782063484191895,
0.045356206595897675,
-0.03484415262937546,
0.01110014133155346,
0.024295341223478317,
-0.08152355253696442,
0.004240658134222031,
-0.0030966452322900295,
-0.04701020196080208,
-0.0067078666761517525,
0.010006667114794254,
0.02811790630221367,
0.0476350411772728,
0.028816260397434235,
-0.012404958717525005,
0.09747540950775146,
0.03477064147591591,
-0.07428273558616638,
0.0666743591427803,
0.016503190621733665,
-0.011247162707149982,
-0.006253018043935299,
0.0058119529858231544,
-0.03874022886157036,
-0.02934921346604824,
-0.009391013532876968,
0.03162804991006851,
0.010346654802560806,
-0.010034233331680298,
-0.009170481003820896,
0.04193795099854469,
-0.008476722054183483,
-0.009593168273568153,
-0.015317827463150024,
-0.014591907151043415,
0.02982703410089016,
0.01604374684393406,
0.09747540950775146,
0.01110014133155346,
-0.004874689504504204,
0.052744049578905106
] |
723,004
|
pyvat.registries
|
ViesRegistry
|
VIES registry.
Uses the European Commision's VIES registry for validating VAT numbers.
|
class ViesRegistry(Registry):
"""VIES registry.
Uses the European Commision's VIES registry for validating VAT numbers.
"""
CHECK_VAT_SERVICE_URL = 'http://ec.europa.eu/taxation_customs/vies/' \
'services/checkVatService'
"""URL for the VAT checking service.
"""
DEFAULT_TIMEOUT = 8
"""Timeout for the requests."""
def check_vat_number(self, vat_number, country_code):
# Non-ISO code used for Greece.
if country_code == 'GR':
country_code = 'EL'
# Request information about the VAT number.
result = VatNumberCheckResult()
request_data = (
u'<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope'
u' xmlns:ns0="urn:ec.europa.eu:taxud:vies:services:checkVa'
u't:types" xmlns:ns1="http://schemas.xmlsoap.org/soap/enve'
u'lope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta'
u'nce" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/env'
u'elope/"><SOAP-ENV:Header/><ns1:Body><ns0:checkVat><ns0:c'
u'ountryCode>%s</ns0:countryCode><ns0:vatNumber>%s</ns0:va'
u'tNumber></ns0:checkVat></ns1:Body></SOAP-ENV:Envelope>' %
(country_code, vat_number)
)
result.log_lines += [
u'> POST %s with payload of content type text/xml, charset UTF-8:',
request_data,
]
try:
response = requests.post(
self.CHECK_VAT_SERVICE_URL,
data=request_data.encode('utf-8'),
headers={
'Content-Type': 'text/xml; charset=utf-8',
},
timeout=self.DEFAULT_TIMEOUT
)
except Timeout as e:
result.log_lines.append(u'< Request to EU VIEW registry timed out:'
u' {}'.format(e))
return result
except Exception as exception:
# Do not completely fail problematic requests.
result.log_lines.append(u'< Request failed with exception: %r' %
(exception))
return result
# Log response information.
result.log_lines += [
u'< Response with status %d of content type %s:' %
(response.status_code, response.headers['Content-Type']),
response.text,
]
# Do not completely fail problematic requests.
if response.status_code != 200 or \
not response.headers['Content-Type'].startswith('text/xml'):
result.log_lines.append(u'< Response is nondeterministic due to '
u'invalid response status code or MIME '
u'type')
return result
# Parse the DOM and validate as much as we can.
#
# We basically expect the result structure to be as follows,
# where the address and name nodes might be omitted.
#
# <env:Envelope
# xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
# <env:Header/>
# <env:Body>
# <ns2:checkVatResponse
# xmlns:ns2="urn:ec.europa.eu:taxud:vies:services:checkVat:types">
# <ns2:countryCode>DE</ns2:countryCode>
# <ns2:vatNumber>812383453</ns2:vatNumber>
# <ns2:requestDate>2022-08-12+02:00</ns2:requestDate>
# <ns2:valid>true</ns2:valid>
# <ns2:name>---</ns2:name>
# <ns2:address>---</ns2:address>
# </ns2:checkVatResponse>
# </env:Body>
# </env:Envelope>
result_dom = xml.dom.minidom.parseString(response.text.encode('utf-8'))
envelope_node = result_dom.documentElement
if envelope_node.tagName != 'env:Envelope':
raise ValueError(
'expected response XML root element to be a SOAP envelope'
)
body_node = get_first_child_element(envelope_node, 'env:Body')
# Check for server errors
try:
error_node = get_first_child_element(body_node, 'env:Fault')
fault_strings = error_node.getElementsByTagName('faultstring')
fault_code = fault_strings[0].firstChild.nodeValue
raise ServerError(fault_code)
except NodeNotFoundError:
pass
try:
check_vat_response_node = get_first_child_element(
body_node,
'ns2:checkVatResponse'
)
valid_node = get_first_child_element(
check_vat_response_node,
'ns2:valid'
)
except Exception as e:
result.log_lines.append(u'< Response is nondeterministic due to '
u'invalid response body: %r' % (e))
return result
# Parse the validity of the business.
valid_text = get_text(valid_node)
if valid_text in frozenset(('true', 'false')):
result.is_valid = valid_text == 'true'
else:
result.log_lines.append(u'< Response is nondeterministic due to '
u'invalid validity field: %r' %
(valid_text))
# Parse the business name and address if possible.
try:
name_node = get_first_child_element(
check_vat_response_node,
'ns2:name'
)
result.business_name = get_text(name_node).strip() or None
except Exception:
pass
try:
address_node = get_first_child_element(
check_vat_response_node,
'ns2:address'
)
result.business_address = get_text(address_node).strip() or None
except Exception:
pass
# Parse the country code if possible.
try:
country_code_node = get_first_child_element(
check_vat_response_node,
'ns2:countryCode'
)
result.business_country_code = get_text(country_code_node).strip() or None
except Exception:
pass
return result
|
()
|
[
0.07923135906457901,
-0.05996549874544144,
-0.006002685520797968,
-0.02382667362689972,
0.0012207335093989968,
-0.047857869416475296,
-0.0658147931098938,
-0.05534332990646362,
0.0064833094365894794,
-0.03710007295012474,
-0.014203970320522785,
0.010512369684875011,
0.06606022268533707,
-0.030105462297797203,
-0.02118835598230362,
0.016658220440149307,
0.0004790260863956064,
-0.0035407664254307747,
0.010185136459767818,
-0.0006736404029652476,
-0.022517740726470947,
-0.005706130526959896,
-0.01592194475233555,
0.0668783038854599,
0.04213128611445427,
0.000690257700625807,
-0.001007904065772891,
-0.02182237058877945,
0.02587188221514225,
-0.012557577341794968,
-0.05468886345624924,
-0.05751125141978264,
-0.025851430371403694,
-0.0035330969840288162,
-0.05325721576809883,
-0.019265860319137573,
0.035545714199543,
-0.02439933270215988,
-0.0460989885032177,
0.07383201271295547,
-0.022292768582701683,
-0.016617314890027046,
-0.006554891820997,
-0.004670743830502033,
-0.052848175168037415,
0.02241547964513302,
-0.04511728882789612,
0.07763610035181046,
-0.03857262432575226,
0.00009195446909870952,
-0.002297024242579937,
0.00910117570310831,
0.00020468058937694877,
-0.0034359495621174574,
0.0005694626015610993,
0.006652039010077715,
0.006283901631832123,
0.11019580811262131,
0.045280907303094864,
-0.0036839309614151716,
-0.03168027102947235,
0.04618079587817192,
-0.01972603239119053,
0.032007504254579544,
-0.01830461248755455,
0.05644774064421654,
-0.02738533541560173,
-0.011361130513250828,
-0.02607640251517296,
0.020728183910250664,
0.04266304150223732,
-0.008850637823343277,
-0.031107613816857338,
0.038736239075660706,
0.08491703867912292,
0.022824522107839584,
-0.004560813773423433,
-0.02108609490096569,
-0.031230326741933823,
0.0023583804722875357,
0.03135303780436516,
0.00009690770821180195,
0.06847356259822845,
-0.06471038609743118,
0.04744882509112358,
0.04006562381982803,
0.005603869911283255,
-0.0019723474979400635,
0.03519802913069725,
0.08041758090257645,
-0.03979974985122681,
0.011780397966504097,
-0.04442191869020462,
0.005233176052570343,
0.013508599251508713,
-0.010563499294221401,
0.036445606499910355,
-0.06438314914703369,
-0.05542513728141785,
-0.002996229799464345,
-0.005404462106525898,
0.08925288170576096,
-0.1083960235118866,
-0.0070610810071229935,
0.02396983839571476,
0.012363282963633537,
-0.08115385472774506,
0.02002258598804474,
0.07714524865150452,
0.020871348679065704,
-0.03474808484315872,
-0.03589340299367905,
-0.01738426834344864,
-0.019255634397268295,
0.006038476713001728,
-0.021842822432518005,
0.0032518808729946613,
0.016525281593203545,
-0.07538636773824692,
0.008789281360805035,
0.10847783833742142,
-0.0337868370115757,
0.014163065701723099,
0.04499457776546478,
0.014122162014245987,
-0.014336908236145973,
-0.0022983024828135967,
0.03055540844798088,
0.07591812312602997,
0.02274271287024021,
0.02431752346456051,
0.002162807621061802,
0.024562949314713478,
0.005046550650149584,
0.012874584645032883,
-0.013222269713878632,
-0.025933237746357918,
-0.008099024184048176,
-0.05959736183285713,
0.016535507515072823,
0.01374379824846983,
0.015379964374005795,
-0.04092461243271828,
-0.05088477581739426,
-0.022435931488871574,
-0.02855110354721546,
-0.04969855397939682,
-0.01471527200192213,
-0.05399349331855774,
-0.053870778530836105,
-0.044053781777620316,
-0.0221700556576252,
-0.021126998588442802,
-0.024583401158452034,
-0.009806772693991661,
-0.028816981241106987,
0.02309039793908596,
-0.034195877611637115,
0.013130235485732555,
-0.054647959768772125,
-0.04618079587817192,
-0.011391809210181236,
0.035320743918418884,
-0.01149406936019659,
0.01576855406165123,
0.022967686876654625,
-0.0563250295817852,
-0.025933237746357918,
-0.027855733409523964,
0.010778246447443962,
-0.03372548148036003,
0.020053265616297722,
-0.1200128048658371,
-0.0029118650127202272,
-0.03388909623026848,
0.015778779983520508,
0.0616016648709774,
-0.023560795933008194,
0.028878336772322655,
0.03339824825525284,
-0.02992139384150505,
-0.008804620243608952,
-0.04818510264158249,
0.005787938833236694,
-0.005332880187779665,
-0.04065873473882675,
0.030248627066612244,
0.012588255107402802,
0.020380498841404915,
0.027017198503017426,
0.010675986297428608,
0.0035177578683942556,
0.08004944026470184,
0.017466077581048012,
0.012025822885334492,
-0.0126700634136796,
0.010532821528613567,
0.01737404242157936,
-0.011862206272780895,
-0.041231393814086914,
-0.00988346803933382,
-0.005854408256709576,
0.018376193940639496,
0.014050579629838467,
-0.04041331261396408,
0.008185945451259613,
-0.025933237746357918,
-0.03274378180503845,
-0.021883726119995117,
-0.02196553349494934,
-0.0021346858702600002,
0.014398264698684216,
-0.02967596799135208,
0.0381840355694294,
-0.0323960967361927,
-0.031271230429410934,
0.002922090934589505,
0.0032697764690965414,
-0.017854666337370872,
-0.024931086227297783,
0.046508029103279114,
-0.056652262806892395,
-0.017885344102978706,
-0.05468886345624924,
0.0038040869403630495,
0.037365950644016266,
-0.011627007275819778,
0.028101159259676933,
0.008860863745212555,
-0.027610309422016144,
0.05452524498105049,
0.041967667639255524,
0.08099023997783661,
-0.027692116796970367,
-0.0169854536652565,
-0.06691920757293701,
0.04233580827713013,
0.012005371041595936,
0.04474915191531181,
-0.012445091269910336,
0.03877714276313782,
-0.03842945769429207,
0.01444939523935318,
0.011851980350911617,
-0.022865425795316696,
-0.018907947465777397,
-0.0050848983228206635,
0.05321631208062172,
-0.023642605170607567,
-0.040699638426303864,
-0.039472516626119614,
-0.07240036129951477,
0.01645369827747345,
0.0024785364512354136,
0.017691049724817276,
-0.06000640243291855,
-0.016515055671334267,
0.07219584286212921,
0.08794394880533218,
-0.01351882517337799,
0.05988369137048721,
0.03065766952931881,
-0.015124313533306122,
0.012301926501095295,
-0.09563393145799637,
0.015840135514736176,
0.004862482193857431,
-0.02231322042644024,
-0.014316456392407417,
0.006917916238307953,
0.03329598531126976,
0.011811076663434505,
-0.024808373302221298,
0.010706664063036442,
-0.05759305879473686,
0.027262622490525246,
-0.0031828549690544605,
-0.029594160616397858,
-0.0563250295817852,
-0.042253997176885605,
-0.009407957084476948,
-0.021311067044734955,
0.041804052889347076,
0.05988369137048721,
-0.02046230621635914,
-0.06078358367085457,
-0.02280407026410103,
0.0007797355647198856,
-0.032191574573516846,
-0.020073717460036278,
-0.04544452205300331,
-0.006508874706923962,
0.06344235688447952,
-0.013692667707800865,
0.0005630713421851397,
0.03159846365451813,
-0.023785769939422607,
-0.022292768582701683,
-0.009612477384507656,
-0.004755108617246151,
-0.019061338156461716,
0.02255864441394806,
0.04924860969185829,
-0.05063934996724129,
-0.004964742343872786,
0.04548542574048042,
0.05747034773230553,
0.009561347775161266,
0.02724217064678669,
0.022763164713978767,
-0.03139394521713257,
-0.0024555278941988945,
0.012015596963465214,
-0.07554998248815536,
0.03765228018164635,
0.0011881380341947079,
0.016423020511865616,
-0.010333413258194923,
0.0672464370727539,
0.011330452747642994,
0.030228175222873688,
0.06295150518417358,
0.017783084884285927,
0.007843372412025928,
0.052398230880498886,
-0.010614629834890366,
0.058206621557474136,
0.020421402528882027,
0.004555700812488794,
-0.017261555418372154,
-0.028592009097337723,
-0.0418858602643013,
-0.02255864441394806,
0.038347650319337845,
0.0675736740231514,
0.01501182746142149,
0.004680969752371311,
-0.03636379912495613,
0.009060272015631199,
0.003438506042584777,
0.02977822907269001,
-0.0007241314742714167,
-0.07546817511320114,
-0.03168027102947235,
0.02274271287024021,
-0.025360580533742905,
-0.02943054400384426,
-0.010491916909813881,
0.004138989839702845,
0.022824522107839584,
-0.0703960582613945,
-0.02523786760866642,
0.0559568926692009,
0.08540789037942886,
0.03603656589984894,
-0.04573085159063339,
-0.004312832374125719,
-0.031066710129380226,
0.04916680231690407,
0.03804086893796921,
-0.052111901342868805,
0.027896637097001076,
-0.035320743918418884,
-0.015799231827259064,
-0.02304949425160885,
-0.10725071281194687,
0.03298920392990112,
-0.0033924889285117388,
0.020687280222773552,
-0.028469296172261238,
0.00595666840672493,
-0.023458536714315414,
-0.03188479319214821,
-0.07060058414936066,
0.04945313185453415,
-0.009044932201504707,
0.023847125470638275,
-0.011217965744435787,
-0.05333902686834335,
0.019490832462906837,
0.04548542574048042,
0.0471624992787838,
-0.04319479316473007,
-0.0077615645714104176,
0.07595902681350708,
-0.06871899217367172,
0.02953280508518219,
0.03773408755660057,
0.0036788180004805326,
0.04446282237768173,
0.019940778613090515,
0.03323462978005409,
0.009361939504742622,
0.06434224545955658,
-0.012526899576187134,
-0.01381538063287735,
-0.021249711513519287,
-0.01596284843981266,
-0.038531720638275146,
-0.04282665625214577,
-0.01958286762237549,
0.041804052889347076,
-0.05644774064421654,
0.00966872088611126,
0.02221095934510231,
-0.031455300748348236,
0.022129151970148087,
-0.04290846362709999,
-0.014336908236145973,
0.005460705608129501,
-0.009223888628184795,
-0.019685126841068268,
0.0008724090293981135,
-0.06303331255912781,
-0.07465009391307831,
0.035954758524894714,
-0.015686744824051857,
0.0717868059873581,
0.025258319452404976,
-0.009407957084476948,
0.009893693961203098,
0.005251071881502867,
0.041967667639255524,
0.053829874843358994,
-0.0024274063762277365,
0.030964449048042297,
0.002525832038372755,
-0.003121498739346862,
-0.03329598531126976,
-0.009525556117296219,
0.06646925956010818,
0.020513435825705528,
-0.08148109167814255,
-0.08737128973007202,
0.04153817519545555,
-0.007797355763614178,
-0.04409468546509743,
-0.05828842893242836,
-0.001477662823162973,
0.05935193598270416,
-0.05215280503034592,
0.033459603786468506,
0.052111901342868805,
0.023172207176685333,
-0.025462839752435684,
-0.021167904138565063,
-0.04916680231690407,
-0.02904195338487625,
-0.017097938805818558,
-0.09350690990686417,
-0.00790472887456417,
-0.03090309351682663,
0.009776093997061253,
-0.0009030872024595737,
-0.06753277033567429,
0.0221700556576252,
-0.028039801865816116,
0.020073717460036278,
-0.021351972594857216,
0.019173825159668922,
-0.016341213136911392,
-0.0140812573954463,
-0.002830056706443429,
0.01937834545969963,
-0.08385352790355682,
0.04233580827713013,
0.006345258094370365,
0.0030959337018430233,
0.019552187994122505,
0.017159296199679375,
-0.0552615225315094,
-0.009863016195595264,
-0.022926781326532364,
0.004133876878768206,
0.018345516175031662,
0.03315282240509987,
-0.0221700556576252,
-0.04483095929026604,
-0.04814419895410538,
-0.01330407802015543,
0.023928934708237648,
0.005281749647110701,
0.030739476904273033,
-0.020370272919535637,
-0.0029016388580203056,
-0.05141653120517731,
0.06961888074874878,
-0.017057035118341446,
-0.05669316649436951,
-0.030473599210381508,
-0.03939070552587509,
-0.015154991298913956,
0.004034172743558884,
0.03530029207468033,
0.0058339559473097324,
-0.014111935161054134,
-0.01776263117790222,
0.038061320781707764,
0.0050746724009513855,
-0.05272546410560608,
-0.021515589207410812,
-0.005332880187779665,
-0.0048982733860611916,
0.036057017743587494,
0.03450265899300575,
0.0011887771543115377,
-0.019255634397268295,
0.05697949603199959,
0.04335841163992882,
-0.00666226539760828,
-0.05824752524495125,
0.0017550440970808268,
0.032437000423669815,
0.011013445444405079,
-0.019654449075460434,
0.02376531809568405,
-0.017609240487217903,
0.0008110527996905148,
-0.026342280209064484,
-0.004133876878768206,
0.005266410764306784,
0.048553239554166794,
0.07980401813983917,
-0.01712861657142639,
0.022374575957655907,
0.08966191858053207,
-0.0410064198076725,
-0.020912252366542816,
-0.005404462106525898,
-0.021311067044734955,
-0.01850913278758526,
-0.034727632999420166,
0.025319674983620644,
-0.03998381644487381,
0.03724323958158493,
-0.01098276674747467,
0.006493535358458757,
-0.05370716378092766,
-0.0570203997194767,
0.01972603239119053,
-0.008063232526183128,
0.005056777037680149,
-0.06745096296072006,
-0.022333672270178795,
-0.052848175168037415,
-0.03313237056136131,
0.011821302585303783,
0.03407316654920578,
-0.029860038310289383,
-0.03544345498085022,
0.046017181128263474,
-0.0003793221840169281,
0.10774155706167221,
0.0033030109480023384,
0.009806772693991661,
0.011627007275819778,
0.015083408914506435,
0.026587704196572304,
0.030473599210381508,
-0.02822387032210827,
0.023601701483130455,
-0.003983042668551207,
-0.015032279305160046,
-0.008508065715432167,
-0.029839584603905678,
0.00666226539760828,
0.005164150148630142,
-0.0005563605227507651,
-0.01986919529736042,
-0.006733847316354513,
0.016729801893234253,
0.0007688704063184559,
0.004540361929684877,
0.027651213109493256,
-0.056120507419109344,
0.02078953944146633,
-0.019265860319137573,
-0.005527174565941095,
0.035218480974435806,
0.03440039977431297,
0.011166836135089397,
-0.024767469614744186,
-0.0191840510815382,
-0.07264579087495804,
0.016003752127289772,
0.05927012860774994,
0.020932704210281372,
0.05153924226760864,
0.009852789342403412,
0.024931086227297783,
-0.03562752529978752,
-0.005228063091635704,
0.0151345394551754,
0.0005464540445245802,
-0.005261297803372145,
0.060456350445747375,
0.026342280209064484,
0.020492983981966972,
0.03305056318640709,
-0.02544238790869713,
-0.02646499127149582,
0.016075335443019867,
0.03343915194272995,
-0.07767700403928757,
0.005353332031518221,
0.0058288429863750935,
-0.05248003825545311,
-0.005910651292651892,
0.01471527200192213,
-0.007485461421310902,
0.045280907303094864,
-0.051866475492715836,
0.03894076123833656,
0.0008660177700221539,
0.0046911961399018764,
0.008339336141943932,
-0.05988369137048721,
0.04973946139216423,
-0.04466734454035759,
0.010343640111386776,
-0.006018024869263172,
0.01171904243528843,
-0.017486529424786568,
0.02221095934510231,
-0.03628199175000191,
0.0012354335049167275,
0.007101985160261393,
-0.018376193940639496,
-0.009561347775161266,
0.012792776338756084,
0.046344414353370667,
0.041967667639255524,
0.03474808484315872,
-0.03450265899300575,
-0.006089606788009405,
0.020227108150720596,
0.034829892218112946,
0.007521252613514662,
-0.0026664400938898325,
0.025810524821281433,
0.03159846365451813,
0.02147468365728855,
-0.025892334058880806,
0.03094399720430374,
-0.0023225892800837755,
0.042253997176885605,
-0.01742517203092575,
-0.042499423027038574,
0.06777819246053696,
0.014132387936115265,
-0.0021346858702600002,
0.04593537375330925,
-0.01232237834483385,
0.004169668070971966,
-0.04826691001653671,
0.02094293013215065,
-0.03392999991774559,
0.04536271467804909,
0.013079105876386166,
0.04589447006583214,
-0.044012878090143204,
0.013978997245430946,
0.00932103581726551,
-0.0598427876830101,
0.029103310778737068,
0.03198705241084099,
0.0717868059873581,
-0.04061783105134964,
-0.021515589207410812,
0.011003219522535801,
0.08348539471626282,
0.008860863745212555,
0.05321631208062172,
0.055629659444093704,
-0.02368350885808468,
-0.021311067044734955,
-0.03456401452422142,
0.0311485193669796,
0.027467144653201103,
0.034339044243097305,
0.03474808484315872,
0.044544629752635956,
0.03170072287321091,
-0.03094399720430374,
0.005854408256709576,
-0.060456350445747375,
-0.019419251009821892,
0.01693432219326496,
-0.04022924229502678,
-0.046344414353370667,
-0.05959736183285713,
-0.06597840785980225,
-0.009193209931254387,
0.04675345495343208,
0.015165217220783234,
0.0020746078807860613,
-0.009561347775161266,
-0.017803536728024483,
-0.0383681021630764,
0.01274164579808712,
0.036691032350063324,
-0.05178466811776161,
0.001840687240473926,
0.054647959768772125,
-0.024624304845929146,
0.02231322042644024,
-0.023274468258023262,
-0.0374886617064476,
-0.0016783488681539893,
0.020135072991251945,
0.06945526599884033,
0.012414412572979927,
0.04515819251537323,
-0.060660868883132935,
-0.005378897301852703,
0.08802575618028641,
-0.0410064198076725,
0.015441320836544037,
0.000906921923160553,
0.03159846365451813,
-0.024092551320791245,
0.004622170235961676,
0.029226023703813553,
0.010778246447443962,
0.010415221564471722,
0.058452047407627106,
0.04626260697841644,
0.008191058412194252,
0.026874033734202385,
0.028816981241106987,
0.008426257409155369,
0.04851233586668968,
-0.046344414353370667,
-0.03773408755660057,
-0.006923029199242592,
-0.06417863070964813,
-0.01499137468636036,
0.03577068820595741,
-0.023540344089269638,
0.030085010454058647,
0.02386757731437683,
-0.014960696920752525,
-0.026342280209064484,
-0.03372548148036003,
-0.027794377878308296,
0.06430134177207947,
0.014919792301952839,
0.011637234129011631,
-0.021065643057227135,
0.005043994169682264,
-0.002350711030885577,
-0.02773302048444748,
0.022660905495285988,
0.027937542647123337,
0.06544665992259979,
0.02196553349494934,
0.03384819254279137,
0.03075992874801159,
0.009643156081438065,
0.008318883366882801,
0.03881805017590523,
0.008257527835667133,
-0.038981664925813675,
0.020769087597727776,
0.02797844633460045,
0.03636379912495613,
-0.0015518015716224909,
0.05571146681904793
] |
723,005
|
pyvat.registries
|
check_vat_number
| null |
def check_vat_number(self, vat_number, country_code):
# Non-ISO code used for Greece.
if country_code == 'GR':
country_code = 'EL'
# Request information about the VAT number.
result = VatNumberCheckResult()
request_data = (
u'<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope'
u' xmlns:ns0="urn:ec.europa.eu:taxud:vies:services:checkVa'
u't:types" xmlns:ns1="http://schemas.xmlsoap.org/soap/enve'
u'lope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta'
u'nce" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/env'
u'elope/"><SOAP-ENV:Header/><ns1:Body><ns0:checkVat><ns0:c'
u'ountryCode>%s</ns0:countryCode><ns0:vatNumber>%s</ns0:va'
u'tNumber></ns0:checkVat></ns1:Body></SOAP-ENV:Envelope>' %
(country_code, vat_number)
)
result.log_lines += [
u'> POST %s with payload of content type text/xml, charset UTF-8:',
request_data,
]
try:
response = requests.post(
self.CHECK_VAT_SERVICE_URL,
data=request_data.encode('utf-8'),
headers={
'Content-Type': 'text/xml; charset=utf-8',
},
timeout=self.DEFAULT_TIMEOUT
)
except Timeout as e:
result.log_lines.append(u'< Request to EU VIEW registry timed out:'
u' {}'.format(e))
return result
except Exception as exception:
# Do not completely fail problematic requests.
result.log_lines.append(u'< Request failed with exception: %r' %
(exception))
return result
# Log response information.
result.log_lines += [
u'< Response with status %d of content type %s:' %
(response.status_code, response.headers['Content-Type']),
response.text,
]
# Do not completely fail problematic requests.
if response.status_code != 200 or \
not response.headers['Content-Type'].startswith('text/xml'):
result.log_lines.append(u'< Response is nondeterministic due to '
u'invalid response status code or MIME '
u'type')
return result
# Parse the DOM and validate as much as we can.
#
# We basically expect the result structure to be as follows,
# where the address and name nodes might be omitted.
#
# <env:Envelope
# xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
# <env:Header/>
# <env:Body>
# <ns2:checkVatResponse
# xmlns:ns2="urn:ec.europa.eu:taxud:vies:services:checkVat:types">
# <ns2:countryCode>DE</ns2:countryCode>
# <ns2:vatNumber>812383453</ns2:vatNumber>
# <ns2:requestDate>2022-08-12+02:00</ns2:requestDate>
# <ns2:valid>true</ns2:valid>
# <ns2:name>---</ns2:name>
# <ns2:address>---</ns2:address>
# </ns2:checkVatResponse>
# </env:Body>
# </env:Envelope>
result_dom = xml.dom.minidom.parseString(response.text.encode('utf-8'))
envelope_node = result_dom.documentElement
if envelope_node.tagName != 'env:Envelope':
raise ValueError(
'expected response XML root element to be a SOAP envelope'
)
body_node = get_first_child_element(envelope_node, 'env:Body')
# Check for server errors
try:
error_node = get_first_child_element(body_node, 'env:Fault')
fault_strings = error_node.getElementsByTagName('faultstring')
fault_code = fault_strings[0].firstChild.nodeValue
raise ServerError(fault_code)
except NodeNotFoundError:
pass
try:
check_vat_response_node = get_first_child_element(
body_node,
'ns2:checkVatResponse'
)
valid_node = get_first_child_element(
check_vat_response_node,
'ns2:valid'
)
except Exception as e:
result.log_lines.append(u'< Response is nondeterministic due to '
u'invalid response body: %r' % (e))
return result
# Parse the validity of the business.
valid_text = get_text(valid_node)
if valid_text in frozenset(('true', 'false')):
result.is_valid = valid_text == 'true'
else:
result.log_lines.append(u'< Response is nondeterministic due to '
u'invalid validity field: %r' %
(valid_text))
# Parse the business name and address if possible.
try:
name_node = get_first_child_element(
check_vat_response_node,
'ns2:name'
)
result.business_name = get_text(name_node).strip() or None
except Exception:
pass
try:
address_node = get_first_child_element(
check_vat_response_node,
'ns2:address'
)
result.business_address = get_text(address_node).strip() or None
except Exception:
pass
# Parse the country code if possible.
try:
country_code_node = get_first_child_element(
check_vat_response_node,
'ns2:countryCode'
)
result.business_country_code = get_text(country_code_node).strip() or None
except Exception:
pass
return result
|
(self, vat_number, country_code)
|
[
0.07529134303331375,
-0.04589186981320381,
0.02214919961988926,
-0.015506432391703129,
-0.009227173402905464,
-0.04756500944495201,
-0.05214622989296913,
-0.05226573720574379,
0.00536799430847168,
-0.03575342893600464,
-0.007011257577687502,
0.013922923244535923,
0.06222491338849068,
-0.04533415660262108,
-0.012070517055690289,
0.0173488799482584,
-0.007394685875624418,
-0.02193009853363037,
0.03095310926437378,
0.020974017679691315,
-0.01555622834712267,
-0.010168315842747688,
-0.03565383702516556,
0.053699858486652374,
0.045254480093717575,
0.01217010896652937,
-0.010337620973587036,
0.0024126095231622458,
0.018902510404586792,
-0.02298577129840851,
-0.038681428879499435,
-0.06023307889699936,
-0.011214029043912888,
-0.001889753038994968,
-0.06585004925727844,
0.013773536309599876,
0.032227884978055954,
-0.05198688060045242,
-0.042744770646095276,
0.06824025511741638,
-0.004638484679162502,
-0.01918136700987816,
-0.011084559373557568,
0.026491399854421616,
-0.06162736192345619,
0.005970524158328772,
-0.042386241257190704,
0.05310231074690819,
-0.0761677548289299,
0.011502844281494617,
0.0005156983970664442,
0.015376962721347809,
0.0028134663589298725,
-0.016542186960577965,
0.0034807308111339808,
-0.013952801004052162,
0.012996720150113106,
0.09457230567932129,
0.03662983700633049,
0.00052596878958866,
-0.03575342893600464,
0.04856092855334282,
-0.028164541348814964,
0.015416799113154411,
-0.010805702768266201,
0.06573054194450378,
-0.009670357219874859,
-0.00451897457242012,
-0.022069526836276054,
0.01120406948029995,
0.030554741621017456,
0.009864560328423977,
-0.047963377088308334,
0.0384623259305954,
0.08198390901088715,
0.00807190965861082,
0.012150190770626068,
0.00268399715423584,
-0.059794872999191284,
0.009804805740714073,
0.05393888056278229,
-0.014779412187635899,
0.0694751888513565,
-0.06704515218734741,
0.03314412757754326,
0.03862167149782181,
0.001886018319055438,
-0.015705615282058716,
0.02073499746620655,
0.09210243076086044,
-0.024399973452091217,
0.013454842381179333,
-0.039517998695373535,
-0.01115427352488041,
0.010417294688522816,
0.01631312444806099,
0.0660492330789566,
-0.06828008592128754,
-0.05019422993063927,
0.000988447922281921,
0.015357044525444508,
0.09178373962640762,
-0.09011059254407883,
-0.025375971570611,
0.012040640227496624,
0.025754420086741447,
-0.08891549706459045,
0.03443881869316101,
0.07684497535228729,
0.005193708464503288,
-0.026232460513710976,
-0.04951700568199158,
-0.024838177487254143,
-0.025256462395191193,
0.0060651362873613834,
-0.022109363228082657,
0.018514102324843407,
0.02418087236583233,
-0.09026994556188583,
0.02189026214182377,
0.1251668781042099,
-0.026750337332487106,
0.013434924185276031,
0.01547655463218689,
-0.015964554622769356,
-0.0044368114322423935,
0.004964647814631462,
0.028104785829782486,
0.07724334299564362,
0.03700828552246094,
0.014689779840409756,
0.0003280302626080811,
0.039159469306468964,
0.008559908717870712,
-0.02198985405266285,
-0.008146603591740131,
-0.02621254324913025,
-0.015088146552443504,
-0.05330149456858635,
0.020127488300204277,
0.0035803227219730616,
0.025196706876158714,
-0.025555238127708435,
-0.04433823749423027,
-0.017747245728969574,
-0.009725132025778294,
-0.06361919641494751,
-0.015456636436283588,
-0.04633007198572159,
-0.04150983318686485,
-0.032686006277799606,
-0.0019270998891443014,
0.013385128229856491,
-0.03447865694761276,
-0.019868548959493637,
-0.03935864940285683,
0.028981192037463188,
-0.025913767516613007,
0.02495768666267395,
-0.0384623259305954,
-0.03742657229304314,
-0.011891252361238003,
0.055930715054273605,
0.01871328614652157,
0.00971517339348793,
0.005621952936053276,
-0.06577038019895554,
-0.009212234988808632,
-0.02896127477288246,
0.0037944449577480555,
-0.011741864494979382,
0.023682912811636925,
-0.10899318754673004,
0.00200552842579782,
-0.019768958911299706,
-0.00750423688441515,
0.06485413014888763,
-0.023065444082021713,
0.041908200830221176,
0.020715080201625824,
-0.03431931138038635,
0.01933075487613678,
-0.01854397915303707,
0.03505628928542137,
-0.01865353062748909,
-0.046967457979917526,
0.04067326337099075,
0.015436718240380287,
0.01578528806567192,
0.005701626650989056,
0.015645859763026237,
0.017229368910193443,
0.0608704648911953,
0.00405089370906353,
0.015038350597023964,
-0.015118024311959743,
0.025196706876158714,
0.014201780781149864,
-0.028164541348814964,
-0.06796139478683472,
0.013146108016371727,
-0.0258340947329998,
0.022009771317243576,
0.01318594440817833,
-0.04776419326663017,
0.01244896650314331,
-0.04537399113178253,
-0.033681921660900116,
-0.0078079914674162865,
-0.013016639277338982,
-0.0007494277670048177,
0.01428145356476307,
-0.003933873493224382,
0.04943733289837837,
-0.04386019706726074,
-0.044099219143390656,
0.005721544846892357,
0.002484813565388322,
-0.031550660729408264,
-0.00914750061929226,
0.05740467086434364,
-0.05087145417928696,
-0.007105869706720114,
-0.03157057613134384,
0.023384137079119682,
0.03569367527961731,
-0.023941852152347565,
0.04704713076353073,
0.007852807641029358,
-0.026292216032743454,
0.028782010078430176,
0.04943733289837837,
0.08062946051359177,
-0.026093032211065292,
-0.05099096521735191,
-0.07537101954221725,
0.0457325205206871,
0.004678321536630392,
0.03611196205019951,
-0.023204872384667397,
0.048799946904182434,
-0.04597154259681702,
0.007568971253931522,
0.024141034111380577,
-0.011243905872106552,
-0.02234838344156742,
-0.024619074538350105,
0.04609105363488197,
-0.018882591277360916,
-0.02599344030022621,
-0.07007274031639099,
-0.07270196080207825,
0.006667666137218475,
-0.0006053309771232307,
0.01791655272245407,
-0.02428046427667141,
-0.02109352871775627,
0.05704614147543907,
0.08062946051359177,
0.0013768556527793407,
0.05226573720574379,
-0.0009635499445721507,
-0.011313620023429394,
-0.022288627922534943,
-0.10477049648761749,
0.0008838765788823366,
0.011064641177654266,
-0.02198985405266285,
-0.001958222361281514,
0.007822929881513119,
0.028064949437975883,
0.013434924185276031,
-0.00004979586447007023,
0.015416799113154411,
-0.045772358775138855,
0.02057565189898014,
-0.00014215163537301123,
-0.023384137079119682,
-0.04001595824956894,
-0.03153074160218239,
-0.013673944398760796,
-0.01547655463218689,
0.03398069739341736,
0.06628825515508652,
-0.032227884978055954,
-0.05346084013581276,
-0.018275082111358643,
-0.020207161083817482,
-0.033482737839221954,
-0.01646251231431961,
-0.027547072619199753,
-0.020256957039237022,
0.06214523687958717,
-0.00451897457242012,
0.008056971244513988,
0.016860879957675934,
0.014630025252699852,
-0.014888963662087917,
-0.03537498041987419,
-0.006727421190589666,
-0.0001345266355201602,
0.025814175605773926,
0.05632908269762993,
-0.03907979279756546,
0.011761782690882683,
0.061507850885391235,
0.05804206058382988,
0.008410521782934666,
0.03744649142026901,
0.017328960821032524,
-0.046967457979917526,
-0.00398615887388587,
0.022208955138921738,
-0.07090931385755539,
0.04413905367255211,
0.006792156025767326,
0.026690583676099777,
-0.012199986726045609,
0.06310132145881653,
-0.0069066863507032394,
0.05039341375231743,
0.056926630437374115,
0.026232460513710976,
0.03836273401975632,
0.022547567263245583,
-0.004812770057469606,
0.053580351173877716,
0.008345786482095718,
-0.01834479719400406,
-0.007668563164770603,
-0.015705615282058716,
-0.018902510404586792,
-0.019470183178782463,
0.04860076308250427,
0.058121733367443085,
0.027885684743523598,
0.003438404528424144,
-0.01979883573949337,
0.007882685400545597,
0.0006240044021978974,
0.029359642416238785,
0.012329456396400928,
-0.048799946904182434,
-0.02798527479171753,
0.03537498041987419,
-0.0074743591248989105,
-0.04513497278094292,
-0.021950017660856247,
-0.008435419760644436,
0.04684795066714287,
-0.10022911429405212,
-0.006114932242780924,
0.04688778519630432,
0.06656710803508759,
0.011313620023429394,
-0.02802511304616928,
0.01052684523165226,
-0.023941852152347565,
0.04979586601257324,
0.06154768913984299,
-0.0550144724547863,
0.0316900871694088,
-0.028622662648558617,
-0.020037855952978134,
-0.010586600750684738,
-0.10341604799032211,
0.02943931519985199,
-0.007046114653348923,
-0.005582116544246674,
0.00036257613101042807,
0.014759493991732597,
-0.02292601577937603,
-0.016392799094319344,
-0.06668662279844284,
0.06322082877159119,
-0.02073499746620655,
0.002997711068019271,
-0.010925212875008583,
-0.053580351173877716,
0.03240714967250824,
0.024619074538350105,
0.041230976581573486,
-0.027547072619199753,
-0.013723740354180336,
0.07381738722324371,
-0.05991438403725624,
0.023364219814538956,
0.027885684743523598,
-0.02026691660284996,
0.03161041438579559,
0.013803413137793541,
0.02489793300628662,
0.016343003138899803,
0.05138933286070824,
0.007673542480915785,
-0.0003311425098218024,
-0.021531730890274048,
-0.013654026202857494,
-0.010397376492619514,
-0.03095310926437378,
-0.009849621914327145,
0.0338611863553524,
-0.0709889829158783,
-0.004538893233984709,
0.013484720140695572,
-0.03911963105201721,
0.011970926076173782,
-0.046489417552948,
-0.026590991765260696,
-0.026969440281391144,
0.00172293686773628,
-0.004638484679162502,
-0.006109952460974455,
-0.042545586824417114,
-0.06246393173933029,
0.06222491338849068,
-0.012229864485561848,
0.0668061301112175,
0.0031470987014472485,
-0.010815661400556564,
0.021272793412208557,
0.0022694466169923544,
0.04095211997628212,
0.03346282243728638,
0.0031421189196407795,
0.026093032211065292,
0.006996318697929382,
0.008196399547159672,
-0.02870233543217182,
-0.010128478519618511,
0.07389706373214722,
0.014201780781149864,
-0.06915649771690369,
-0.06736384332180023,
0.024200789630413055,
0.009864560328423977,
-0.04318297281861305,
-0.06389804929494858,
-0.007051094435155392,
0.06692564487457275,
-0.024260545149445534,
0.023244708776474,
0.05194704607129097,
0.024061361327767372,
-0.016014350578188896,
-0.016631819307804108,
-0.04927798733115196,
-0.0456528477370739,
-0.009262030944228172,
-0.11090534925460815,
0.006413707509636879,
-0.025854011997580528,
-0.0036948530469089746,
0.007324971724301577,
-0.06692564487457275,
0.04617072641849518,
-0.07019224762916565,
0.02479834109544754,
-0.04294395446777344,
0.042904116213321686,
-0.043421994894742966,
-0.0063639115542173386,
-0.008783990517258644,
0.011233947239816189,
-0.05465593934059143,
0.02850315347313881,
-0.005099096335470676,
-0.003650036873295903,
0.0029354661237448454,
0.008360725827515125,
-0.07999207824468613,
-0.045254480093717575,
-0.027905602008104324,
0.034518491476774216,
0.02302560769021511,
0.02918037585914135,
-0.01850414276123047,
-0.05648842826485634,
-0.041230976581573486,
0.0001685278839431703,
0.02376258559525013,
0.03182951733469963,
-0.009755009785294533,
-0.006886768154799938,
0.014052392914891243,
-0.024141034111380577,
0.030236048623919487,
0.016163738444447517,
-0.07325967401266098,
-0.049676354974508286,
-0.05581120401620865,
-0.01239917054772377,
0.011293701827526093,
0.025854011997580528,
0.00971517339348793,
0.001169580384157598,
-0.014231657609343529,
0.02489793300628662,
0.009301867336034775,
-0.045772358775138855,
-0.011313620023429394,
0.0150084737688303,
-0.011791660450398922,
0.03220796585083008,
0.016801124438643456,
0.018324878066778183,
0.002723833778873086,
0.038800936192274094,
0.038063958287239075,
-0.012797537259757519,
-0.05294296145439148,
0.011214029043912888,
0.038940366357564926,
0.025356054306030273,
-0.01735883764922619,
0.0359526127576828,
-0.023045526817440987,
-0.0232845451682806,
-0.011542681604623795,
0.0037396694533526897,
-0.004892443772405386,
0.027646664530038834,
0.06326066702604294,
-0.011423171497881413,
0.04007571190595627,
0.08493182808160782,
-0.036350980401039124,
-0.03047506883740425,
-0.018424469977617264,
-0.03157057613134384,
-0.030554741621017456,
-0.024499565362930298,
0.041350483894348145,
-0.010765865445137024,
0.012329456396400928,
-0.04214721918106079,
-0.008833786472678185,
-0.039617590606212616,
-0.06664678454399109,
0.03517580032348633,
-0.020077692344784737,
-0.01933075487613678,
-0.05792254954576492,
-0.012986761517822742,
-0.03995620086789131,
-0.03882085531949997,
0.004140526056289673,
0.030574660748243332,
-0.045254480093717575,
-0.020715080201625824,
0.03876110166311264,
0.0006047085043974221,
0.10923220962285995,
0.015974512323737144,
0.036350980401039124,
0.03143114969134331,
0.005985463038086891,
0.05019422993063927,
0.032387230545282364,
-0.0397171825170517,
0.014042433351278305,
-0.018942346796393394,
-0.013006679713726044,
-0.020256957039237022,
-0.03981677442789078,
0.015506432391703129,
-0.012239823117852211,
-0.008350766263902187,
0.0002337293408345431,
-0.023981688544154167,
0.033741679042577744,
-0.015416799113154411,
-0.008709296584129333,
0.033522576093673706,
-0.06349968910217285,
0.013156067579984665,
-0.027108868584036827,
0.012598353438079357,
0.029060866683721542,
0.03987652808427811,
-0.010636396706104279,
-0.027845846489071846,
0.0010793253313750029,
-0.017468389123678207,
0.007100890390574932,
0.059316832572221756,
0.016442595049738884,
0.027965357527136803,
0.020097611472010612,
0.006657707039266825,
-0.024499565362930298,
-0.009501051157712936,
0.03463800251483917,
0.009426357224583626,
-0.014151984825730324,
0.060472097247838974,
0.03479734808206558,
0.014719657599925995,
0.03533514589071274,
-0.03182951733469963,
-0.007494277786463499,
0.028104785829782486,
0.030554741621017456,
-0.06242409348487854,
0.001989344833418727,
0.005099096335470676,
-0.03955783322453499,
0.002387711778283119,
0.028323886916041374,
-0.018414510414004326,
0.05246492102742195,
-0.041350483894348145,
0.014142025262117386,
-0.025495482608675957,
-0.0008415501215495169,
0.0035155881196260452,
-0.042226891964673996,
0.05883879214525223,
-0.046130888164043427,
0.026650747284293175,
-0.0035006492398679256,
0.015247493982315063,
-0.018195409327745438,
0.02750723622739315,
-0.02501744218170643,
0.012797537259757519,
0.00807190965861082,
-0.030076701194047928,
-0.006080075167119503,
0.0008708051755093038,
0.061826545745134354,
0.04318297281861305,
0.01735883764922619,
-0.016293207183480263,
-0.032008782029151917,
-0.008858684450387955,
0.01294692512601614,
0.021790670230984688,
-0.0010257947724312544,
0.041230976581573486,
0.021651241928339005,
0.029220212250947952,
-0.01855393871665001,
0.03246690332889557,
0.023065444082021713,
0.029917355626821518,
-0.02730805240571499,
-0.03372175991535187,
0.05720548704266548,
0.028841763734817505,
-0.00321681285277009,
0.031032782047986984,
-0.025814175605773926,
-0.008350766263902187,
-0.0650533139705658,
0.02266707830131054,
-0.019340714439749718,
0.04935766011476517,
-0.006010361015796661,
0.042904116213321686,
-0.033383145928382874,
0.0079424399882555,
-0.013903005048632622,
-0.061826545745134354,
0.030574660748243332,
0.03734689950942993,
0.061507850885391235,
-0.06433625519275665,
-0.02376258559525013,
-0.006647747941315174,
0.05330149456858635,
0.031968943774700165,
0.03913955017924309,
0.048481252044439316,
0.002243303693830967,
-0.017846837639808655,
-0.03959767147898674,
0.026750337332487106,
0.025037361308932304,
0.016840960830450058,
0.037227388471364975,
0.04182852432131767,
0.052186064422130585,
-0.054894961416721344,
-0.016293207183480263,
-0.08114734292030334,
-0.03463800251483917,
0.025455646216869354,
-0.022388219833374023,
-0.021551650017499924,
-0.06656710803508759,
-0.0625436082482338,
-0.038482245057821274,
0.04597154259681702,
0.0200677327811718,
0.007852807641029358,
-0.011492885649204254,
0.006015340331941843,
-0.054257575422525406,
0.0215715691447258,
0.01917140744626522,
-0.06457527726888657,
-0.01028782594949007,
0.0718255564570427,
-0.046489417552948,
0.005517381709069014,
-0.01130366139113903,
-0.04266509786248207,
-0.02469874918460846,
0.01226970087736845,
0.06509315222501755,
-0.012160150334239006,
0.02985760010778904,
-0.057803038507699966,
-0.013026597909629345,
0.08692365884780884,
-0.04461709409952164,
0.035454656928777695,
0.019031979143619537,
0.00586097314953804,
-0.03919930383563042,
-0.007967337965965271,
0.008032073266804218,
0.033064454793930054,
-0.0020951610058546066,
0.0608704648911953,
0.04417889192700386,
-0.01594463549554348,
0.013434924185276031,
0.014231657609343529,
0.018573857843875885,
0.031032782047986984,
-0.029419396072626114,
-0.06282246112823486,
0.0038691386580467224,
-0.026391807943582535,
-0.03539489954710007,
0.04350166767835617,
-0.03443881869316101,
0.02543572708964348,
0.03292502462863922,
-0.0018287531565874815,
-0.04174885153770447,
-0.05991438403725624,
-0.03714771568775177,
0.07891648262739182,
0.0116422725841403,
-0.0022146711125969887,
-0.024519482627511024,
0.00005080734263174236,
-0.008774030953645706,
-0.02714870497584343,
0.02312519960105419,
0.012209946289658546,
0.07712383568286896,
0.05887863039970398,
0.023224791511893272,
0.023682912811636925,
-0.004016036633402109,
0.006015340331941843,
0.04852109029889107,
0.01729908399283886,
-0.03282543271780014,
0.004372077062726021,
0.020237039774656296,
0.01897222362458706,
-0.001925855060108006,
0.055213652551174164
] |
723,006
|
pyvat
|
check_vat_number
|
Check if a VAT number is valid.
If possible, the VAT number will be checked against available registries.
:param vat_number: VAT number to validate.
:param country_code:
Optional country code. Should be supplied if known, as there is no
guarantee that naively entered VAT numbers contain the correct alpha-2
country code prefix for EU countries just as not all non-EU countries
have a reliable country code prefix. Default ``None`` prompting
detection.
:returns:
a :class:`VatNumberCheckResult` instance containing the result for
the full VAT number check.
|
def check_vat_number(vat_number, country_code=None):
"""Check if a VAT number is valid.
If possible, the VAT number will be checked against available registries.
:param vat_number: VAT number to validate.
:param country_code:
Optional country code. Should be supplied if known, as there is no
guarantee that naively entered VAT numbers contain the correct alpha-2
country code prefix for EU countries just as not all non-EU countries
have a reliable country code prefix. Default ``None`` prompting
detection.
:returns:
a :class:`VatNumberCheckResult` instance containing the result for
the full VAT number check.
"""
# Decompose the VAT number.
vat_number, country_code = decompose_vat_number(vat_number, country_code)
if not vat_number or not country_code:
return VatNumberCheckResult(False, [
'> Unable to decompose VAT number, resulted in %r and %r' %
(vat_number, country_code)
])
# Test the VAT number format.
format_result = is_vat_number_format_valid(vat_number, country_code)
if format_result is not True:
return VatNumberCheckResult(format_result, [
'> VAT number validation failed: %r' % (format_result)
])
# Attempt to check the VAT number against a registry.
if country_code not in VAT_REGISTRIES:
return VatNumberCheckResult()
return VAT_REGISTRIES[country_code].check_vat_number(vat_number,
country_code)
|
(vat_number, country_code=None)
|
[
0.061741676181554794,
-0.05399088189005852,
-0.023346897214651108,
0.020152058452367783,
-0.020983850583434105,
-0.021740026772022247,
-0.048924509435892105,
-0.0638967752456665,
0.038262445479631424,
-0.07263059169054031,
0.022874288260936737,
0.02381950616836548,
0.040228500962257385,
-0.05909506231546402,
0.003920293878763914,
0.0076940786093473434,
0.0004643386055249721,
0.019547119736671448,
-0.0011620280565693974,
0.012051536701619625,
-0.005926520098000765,
0.03622077405452728,
-0.03370649367570877,
0.019452597945928574,
0.04378252103924751,
0.11766080558300018,
0.015321992337703705,
0.0156150097027421,
-0.03130563721060753,
-0.02582336962223053,
-0.003086138516664505,
-0.005619324278086424,
0.05028562620282173,
0.05569227412343025,
-0.06635434180498123,
0.0346895195543766,
0.01694776862859726,
-0.036107346415519714,
-0.11025028675794601,
0.04956725984811783,
0.034935276955366135,
0.012439075857400894,
0.007845314219594002,
0.04166523367166519,
-0.023214567452669144,
-0.014981714077293873,
-0.03240209072828293,
0.011106317862868309,
-0.07610899955034256,
-0.001593874767422676,
0.0018419945845380425,
-0.02508609928190708,
-0.010851108469069004,
-0.025993509218096733,
-0.03381991758942604,
0.00018889601051341742,
0.061741676181554794,
0.08159126341342926,
0.04291292279958725,
0.017477091401815414,
-0.06726174801588058,
0.011645092628896236,
-0.046882838010787964,
-0.06227099522948265,
-0.007410513237118721,
0.02531295269727707,
0.0003390971396584064,
-0.043101966381073,
-0.015511035919189453,
0.024500064551830292,
0.006460568867623806,
-0.00842189695686102,
-0.030662888661026955,
-0.031872767955064774,
0.052024826407432556,
0.01836559548974037,
-0.013393746688961983,
0.06442609429359436,
-0.027940658852458,
0.02896149642765522,
0.06287593394517899,
-0.07939835637807846,
0.06733737140893936,
-0.0416274257004261,
0.015246374532580376,
0.005694941617548466,
-0.02801627665758133,
-0.0290371123701334,
0.015974193811416626,
0.05278100445866585,
-0.012117701582610607,
0.02567213587462902,
0.00019524669914972037,
-0.03136235103011131,
0.0002256709267385304,
-0.0025639052037149668,
0.08756504207849503,
-0.04934040829539299,
-0.05561665818095207,
0.02410307340323925,
0.006016315892338753,
0.01157892681658268,
-0.05557885020971298,
-0.05762052163481712,
-0.011966466903686523,
0.016966672614216805,
-0.061703864485025406,
0.05497391149401665,
0.02436773292720318,
0.0077555179595947266,
-0.03969917818903923,
-0.05017219856381416,
0.01440513040870428,
-0.03149468079209328,
0.011474953033030033,
-0.0361451581120491,
0.03527555614709854,
0.029755478724837303,
-0.08098632097244263,
-0.04472774267196655,
0.05996466428041458,
0.017940247431397438,
-0.000058226938563166186,
0.02139974758028984,
-0.0041306051425635815,
0.01426334772258997,
0.039283283054828644,
0.029679862782359123,
0.029698766767978668,
0.05924629792571068,
0.024934865534305573,
0.03996383771300316,
0.024518968537449837,
-0.011068508960306644,
-0.021494269371032715,
-0.011541117914021015,
-0.0036225500516593456,
-0.039056431502103806,
-0.026617353782057762,
0.008053261786699295,
-0.010406856425106525,
0.05992685630917549,
0.007282909005880356,
-0.00836518406867981,
0.02743024192750454,
-0.008351005613803864,
-0.05780956521630287,
-0.02107837237417698,
-0.01866806671023369,
-0.04257264360785484,
0.004411807283759117,
0.04287511110305786,
0.07028645277023315,
0.015388157218694687,
-0.01119138766080141,
-0.03582378104329109,
0.028167512267827988,
-0.036069538444280624,
0.02860231325030327,
-0.04264825955033302,
0.01994411088526249,
0.052176062017679214,
0.0325155183672905,
0.07319772243499756,
-0.0023429603315889835,
-0.014442939311265945,
-0.05017219856381416,
0.01760942116379738,
-0.010047673247754574,
0.018497927114367485,
0.025294048711657524,
-0.003641454502940178,
-0.05678872764110565,
0.03378210961818695,
0.01481157448142767,
0.012798259034752846,
0.01316689420491457,
-0.052062638103961945,
0.05346155911684036,
0.04850861430168152,
-0.022798670455813408,
0.043366625905036926,
-0.025388570502400398,
0.0405309721827507,
-0.018809849396348,
-0.013648955151438713,
0.042421407997608185,
0.01865861378610134,
0.006616529542952776,
-0.027411337941884995,
0.04722311720252037,
0.008351005613803864,
0.04624009132385254,
-0.020284390076994896,
-0.020208772271871567,
-0.07765915244817734,
0.02535076066851616,
0.02351703681051731,
-0.053310323506593704,
-0.013072372414171696,
0.03966137021780014,
-0.041287146508693695,
0.04828176274895668,
-0.015378705225884914,
-0.024934865534305573,
0.027052154764533043,
-0.08083508908748627,
-0.061703864485025406,
0.019150126725435257,
-0.010444664396345615,
0.00431964872404933,
0.00000689529542796663,
0.010709325782954693,
0.06401019543409348,
-0.03357416391372681,
-0.06900095194578171,
0.04472774267196655,
0.021758930757641792,
-0.010047673247754574,
0.013327580876648426,
0.05671311169862747,
-0.04321539029479027,
0.00540664978325367,
0.01983068510890007,
0.06548473984003067,
0.024405542761087418,
-0.02432992495596409,
0.06733737140893936,
0.010841656476259232,
0.0018100935267284513,
0.006153372582048178,
0.04714750126004219,
0.054293353110551834,
-0.01448074821382761,
-0.09353882819414139,
-0.06983274221420288,
0.019849589094519615,
0.0024622941855341196,
0.031721532344818115,
0.021664408966898918,
0.029018208384513855,
-0.008714915253221989,
0.0061817290261387825,
-0.007126947864890099,
0.004109337460249662,
-0.005354662891477346,
-0.07334895431995392,
0.06665681302547455,
0.011059056967496872,
-0.0013634777860715985,
-0.08083508908748627,
-0.030190279707312584,
0.00883779302239418,
0.036542147397994995,
-0.014556365087628365,
0.0237438902258873,
-0.038073401898145676,
0.024859247729182243,
0.04087124764919281,
0.036617767065763474,
0.04098467528820038,
0.02629598043859005,
-0.009764107875525951,
-0.024934865534305573,
-0.09263141453266144,
-0.021891260519623756,
0.027165580540895462,
0.032080717384815216,
0.04121152684092522,
-0.014159373939037323,
-0.004737908020615578,
0.051987018436193466,
-0.0003834042581729591,
0.019348623231053352,
0.0065739951096475124,
0.0003677490749396384,
0.01130481343716383,
-0.06661900132894516,
0.036107346415519714,
-0.015416514128446579,
-0.0409090593457222,
-0.0018018228001892567,
0.04181646928191185,
0.0379788801074028,
0.011342622339725494,
-0.01939588412642479,
0.001387108233757317,
0.026900919154286385,
-0.012902232818305492,
-0.00880471058189869,
-0.007519213482737541,
-0.04283730313181877,
0.021191800013184547,
0.04809271916747093,
-0.011285909451544285,
0.03056836687028408,
0.016995029523968697,
0.02300661988556385,
-0.049869731068611145,
-0.009173345752060413,
-0.007089138962328434,
0.04185427725315094,
0.042459215968847275,
-0.02359265461564064,
0.00008698963938513771,
0.04737435281276703,
-0.003263366874307394,
-0.0012335102073848248,
-0.013601694256067276,
0.017439281567931175,
-0.02432992495596409,
0.008100522682070732,
0.03255332633852959,
-0.03969917818903923,
0.0796252116560936,
-0.02381950616836548,
0.03748736530542374,
-0.05796080082654953,
0.02939629554748535,
-0.047714632004499435,
0.03487856313586235,
0.05788518115878105,
0.05134427174925804,
0.04960506781935692,
-0.03582378104329109,
-0.04650475084781647,
0.03675009682774544,
0.0010621893452480435,
-0.055162955075502396,
0.0024315747432410717,
-0.03463280573487282,
-0.025029387325048447,
0.003910841885954142,
0.05671311169862747,
0.050777141004800797,
0.010104386135935783,
-0.024632394313812256,
0.010851108469069004,
0.014783217571675777,
0.04813052713871002,
0.0361640602350235,
0.04589981213212013,
-0.04915136471390724,
-0.05663749575614929,
-0.004586672876030207,
-0.017685038968920708,
-0.07319772243499756,
-0.0020511241164058447,
-0.015539392828941345,
0.019112318754196167,
-0.07274401932954788,
-0.005992685444653034,
-0.011560022830963135,
0.020719191059470177,
-0.04835737869143486,
0.014650886878371239,
0.05765832960605621,
-0.054293353110551834,
0.05569227412343025,
0.032118525356054306,
-0.02410307340323925,
-0.008809437043964863,
-0.02457568235695362,
-0.04499240219593048,
-0.038262445479631424,
-0.04540829733014107,
0.022949906066060066,
-0.009858629666268826,
-0.01690995879471302,
0.0059076156467199326,
0.02092713862657547,
0.015718983486294746,
0.03298812732100487,
-0.03347964212298393,
0.07104262709617615,
-0.05833888798952103,
-0.005004932172596455,
0.009811368770897388,
-0.038073401898145676,
0.0398126058280468,
-0.00034766318276524544,
0.041400570422410965,
0.03699585422873497,
-0.03319607302546501,
0.058527931571006775,
-0.03158920258283615,
0.01815764792263508,
0.041324954479932785,
-0.05765832960605621,
0.024745821952819824,
-0.0420055128633976,
0.05402868986129761,
0.01187194511294365,
0.008024904876947403,
0.00863929744809866,
0.006876464933156967,
0.010047673247754574,
-0.00971684604883194,
0.03992602974176407,
-0.03567254915833473,
0.011370979249477386,
0.014962809160351753,
-0.07947397232055664,
0.007727161515504122,
0.035521313548088074,
0.03512432053685188,
0.020208772271871567,
-0.023214567452669144,
-0.020227676257491112,
-0.07289525121450424,
0.014291704632341862,
0.006725229788571596,
-0.017770107835531235,
-0.04472774267196655,
-0.02932067960500717,
0.07070234417915344,
-0.03775202855467796,
0.0046362970024347305,
0.015974193811416626,
-0.002270887605845928,
0.022004688158631325,
-0.03973698616027832,
-0.030360419303178787,
0.0177133958786726,
0.03746846318244934,
-0.023422515019774437,
0.032742369920015335,
0.014329512603580952,
-0.05281881242990494,
-0.011947561986744404,
0.029528627172112465,
0.007334895897656679,
-0.006800847128033638,
-0.0034382324665784836,
-0.003232647432014346,
-0.009017384611070156,
-0.0038588547613471746,
-0.03312045708298683,
-0.008653475902974606,
0.02962314896285534,
0.029717670753598213,
-0.013601694256067276,
0.04763901233673096,
0.019291909411549568,
-0.03255332633852959,
0.02432992495596409,
-0.030265897512435913,
0.0020664839539676905,
0.028469981625676155,
-0.05270538479089737,
-0.029245061799883842,
-0.024348828941583633,
-0.046618178486824036,
-0.006550364196300507,
-0.023138949647545815,
0.04703407362103462,
-0.08423787355422974,
0.03597501665353775,
-0.05455801263451576,
0.0037147088441997766,
-0.03890519589185715,
0.02476472593843937,
0.042421407997608185,
-0.007987096905708313,
-0.0668458566069603,
-0.005921794101595879,
-0.0028829164803028107,
-0.008790532127022743,
0.040493160486221313,
0.015397610142827034,
-0.08423787355422974,
0.0166169423609972,
-0.011077960953116417,
0.039358898997306824,
0.028110798448324203,
0.05841450393199921,
-0.003783237189054489,
-0.017892986536026,
-0.046845030039548874,
-0.010161099024116993,
0.03633420169353485,
0.05671311169862747,
-0.0018195456359535456,
0.011673448607325554,
0.004229852929711342,
0.00960342027246952,
0.029831096529960632,
0.0646529495716095,
-0.05236510559916496,
-0.05686434730887413,
-0.07728106528520584,
-0.025955701246857643,
0.04121152684092522,
0.029831096529960632,
0.005373567342758179,
-0.0030199731700122356,
-0.052970048040151596,
0.03005794994533062,
-0.010567543096840382,
-0.03276127576828003,
0.016891054809093475,
0.050777141004800797,
-0.04934040829539299,
0.019811781123280525,
0.0033862453419715166,
0.043328817933797836,
-0.006314059719443321,
0.022912098094820976,
0.015822958201169968,
-0.008937041275203228,
-0.07247935980558395,
0.023176757618784904,
0.0405309721827507,
0.03637200966477394,
0.019963014870882034,
0.02436773292720318,
-0.010246168822050095,
-0.0514955073595047,
-0.017401473596692085,
0.010454117320477962,
-0.027940658852458,
0.020076442509889603,
0.05788518115878105,
-0.0019459686009213328,
0.03238318860530853,
0.06506884098052979,
-0.047790247946977615,
-0.027940658852458,
-0.031211115419864655,
0.0005263685598038137,
-0.03879176825284958,
-0.020284390076994896,
0.050890564918518066,
0.0004965350963175297,
-0.02888587862253189,
-0.09096783399581909,
-0.012987302616238594,
-0.009726298972964287,
-0.0427238792181015,
0.022363871335983276,
-0.08575022220611572,
-0.015605557709932327,
0.010747134685516357,
-0.01698557659983635,
-0.00720256520435214,
-0.04480335861444473,
0.01847902312874794,
-0.011512761935591698,
-0.05228948965668678,
-0.05474705621600151,
0.06843382120132446,
0.012798259034752846,
0.09996630996465683,
0.02432992495596409,
0.051079608500003815,
0.013346485793590546,
-0.014386226423084736,
0.029566435143351555,
0.021853452548384666,
-0.045748576521873474,
-0.026031319051980972,
0.03557802364230156,
-0.02531295269727707,
-0.08060823380947113,
-0.03512432053685188,
-0.02699544094502926,
-0.06680804491043091,
-0.02417868934571743,
0.027921754866838455,
-0.02414088137447834,
0.05792299285531044,
-0.03295031934976578,
0.023573750630021095,
0.028243130072951317,
-0.10646941512823105,
-0.0002670242392923683,
0.003265730105340481,
-0.001250051544047892,
0.03996383771300316,
0.007930383086204529,
-0.04960506781935692,
-0.019017796963453293,
-0.022401679307222366,
0.011711257509887218,
-0.019055604934692383,
0.04703407362103462,
0.013507172465324402,
0.0047591752372682095,
-0.023989645764231682,
-0.02468910813331604,
0.05032343417406082,
0.011758518405258656,
0.03166482225060463,
-0.0035398434847593307,
0.0036650849506258965,
-0.002804935909807682,
0.006588173098862171,
0.0199063029140234,
0.05996466428041458,
-0.030700698494911194,
-0.030851932242512703,
0.03495418280363083,
-0.0029750752728432417,
-0.05977562069892883,
0.033763207495212555,
0.024934865534305573,
-0.03710927814245224,
-0.016059262678027153,
0.04971849545836449,
-0.053159091621637344,
0.018233265727758408,
-0.019187936559319496,
-0.0036320022772997618,
-0.009556159377098083,
0.012202771380543709,
0.031797152012586594,
-0.0150667829439044,
0.02304442785680294,
-0.02268524467945099,
0.028469981625676155,
-0.01550158392637968,
0.02414088137447834,
0.01234455406665802,
0.006857560481876135,
-0.03381991758942604,
-0.030776314437389374,
-0.011890849098563194,
-0.04506801813840866,
-0.04763901233673096,
-0.030190279707312584,
0.04185427725315094,
-0.0015974192647263408,
0.03589940071105957,
0.006106111686676741,
-0.05281881242990494,
-0.06132577732205391,
-0.02468910813331604,
0.03255332633852959,
-0.009121358394622803,
0.015378705225884914,
-0.028904782608151436,
-0.01459417399019003,
-0.045521724969148636,
0.033404022455215454,
0.05837669596076012,
0.021021660417318344,
-0.03448157384991646,
-0.039132047444581985,
0.04631570726633072,
0.01570953242480755,
0.01738256961107254,
0.05459582060575485,
-0.013941973447799683,
0.0006787850288674235,
-0.04204332083463669,
0.06219537928700447,
0.0015548844821751118,
0.00540664978325367,
-0.02128632180392742,
0.04389594867825508,
-0.0003588876570574939,
0.02162659913301468,
-0.041362762451171875,
-0.03531336411833763,
0.04151399806141853,
0.02570994384586811,
0.03253442049026489,
-0.05841450393199921,
-0.040417544543743134,
0.005756380967795849,
0.023176757618784904,
0.013904164545238018,
0.020643573254346848,
0.009192250669002533,
0.03733613342046738,
-0.0021562797483056784,
-0.05244072526693344,
0.039094239473342896,
0.006659064441919327,
0.00628097727894783,
-0.007859491743147373,
-0.05470924824476242,
0.08748942613601685,
-0.040266308933496475,
-0.03005794994533062,
-0.06011589989066124,
-0.03882957622408867,
0.016891054809093475,
-0.0009623506339266896,
-0.0003011407097801566,
-0.022893192246556282,
0.003865943755954504,
-0.05803641676902771,
0.008237579837441444,
-0.03684461861848831,
0.02735462412238121,
0.002637159777805209,
0.05244072526693344,
-0.050890564918518066,
-0.04514363780617714,
-0.01855463907122612,
-0.05463363230228424,
0.011994822882115841,
0.06109892576932907,
-0.043291009962558746,
-0.02308223582804203,
-0.01759996823966503,
-0.03151358664035797,
-0.008918137289583683,
0.006838656030595303,
0.06000247225165367,
-0.061892908066511154,
-0.0028262033592909575,
-0.04106029123067856,
0.003865943755954504,
0.03597501665353775,
0.008313196711242199,
0.02614474482834339,
0.04325319826602936,
-0.03820573166012764,
-0.01557720173150301,
-0.023611558601260185,
0.011399335227906704,
0.006588173098862171,
0.007226195652037859,
0.004560679197311401,
0.012155510485172272,
-0.02998233214020729,
0.007552295923233032,
0.0014958083629608154,
0.03875396028161049,
0.03302593529224396,
-0.03381991758942604,
-0.023611558601260185,
0.016702011227607727,
0.026466118171811104,
-0.03295031934976578,
0.044538695365190506,
-0.014414582401514053,
0.022798670455813408,
0.0044378009624779224,
-0.0030199731700122356,
-0.006918999832123518,
-0.06665681302547455,
0.028035182505846024,
0.08060823380947113,
0.020133154466748238,
-0.019112318754196167,
0.0060446723364293575,
0.01643734984099865,
-0.027600381523370743,
-0.011994822882115841,
-0.01866806671023369,
0.008993754163384438,
0.09043850749731064,
0.03158920258283615,
-0.020284390076994896,
0.027052154764533043,
-0.014272799715399742,
-0.01557720173150301,
-0.0038777589797973633,
0.004787531681358814,
0.00109113659709692,
-0.04298853874206543,
0.028186416253447533,
-0.006389677058905363,
-0.0314190648496151,
0.03158920258283615
] |
723,008
|
pyvat
|
decompose_vat_number
|
Decompose a VAT number and an optional country code.
:param vat_number: VAT number.
:param country_code:
Optional country code. Default ``None`` prompting detection from the
VAT number.
:returns:
a :class:`tuple` containing the VAT number and country code or
``(vat_number, None)`` if decomposition failed.
|
def decompose_vat_number(vat_number, country_code=None):
"""Decompose a VAT number and an optional country code.
:param vat_number: VAT number.
:param country_code:
Optional country code. Default ``None`` prompting detection from the
VAT number.
:returns:
a :class:`tuple` containing the VAT number and country code or
``(vat_number, None)`` if decomposition failed.
"""
# Clean the VAT number.
vat_number = WHITESPACE_EXPRESSION.sub('', vat_number).upper()
# Attempt to determine the country code of the VAT number if possible.
if not country_code:
country_code = vat_number[0:2]
if any(c.isdigit() for c in country_code):
# Country code should not contain digits
return (vat_number, None)
# Non-ISO code used for Greece.
if country_code == 'EL':
country_code = 'GR'
if country_code not in VAT_REGISTRIES:
try:
if not pycountry.countries.get(alpha_2=country_code):
return (vat_number, None)
except KeyError:
# country code not found
return (vat_number, None)
vat_number = vat_number[2:]
elif vat_number[0:2] == country_code:
vat_number = vat_number[2:]
elif country_code == 'GR' and vat_number[0:2] == 'EL':
vat_number = vat_number[2:]
return vat_number, country_code
|
(vat_number, country_code=None)
|
[
0.049375101923942566,
-0.0014199127908796072,
-0.0018376038642600179,
-0.010223371908068657,
-0.019935576245188713,
-0.07266166806221008,
-0.018354739993810654,
-0.05804603546857834,
0.06838300079107285,
-0.05857613682746887,
0.010024584829807281,
0.009508682414889336,
-0.007932579144835472,
-0.03197643533349037,
-0.002702567493543029,
0.04100708290934563,
-0.01782463863492012,
0.03831871226429939,
-0.010876531712710857,
0.024403568357229233,
0.04013620316982269,
-0.004626549314707518,
-0.0516090989112854,
0.006867644842714071,
0.03949250653386116,
0.03960610181093216,
0.0509275384247303,
0.007610732689499855,
-0.06255189329385757,
-0.008420082740485668,
0.020238490775227547,
0.025444837287068367,
-0.01771104522049427,
-0.004023086279630661,
-0.08171124756336212,
0.06031789630651474,
0.01731347106397152,
0.0014755260199308395,
-0.07322963327169418,
0.06107518449425697,
0.000006577265594387427,
-0.054070279002189636,
0.015600108541548252,
0.03169245272874832,
-0.05789458006620407,
-0.010677744634449482,
-0.0519498772919178,
-0.05020811781287193,
-0.08905693143606186,
-0.010744007304310799,
0.029174474999308586,
-0.01838313788175583,
0.016650844365358353,
0.007572868373245001,
-0.011065853759646416,
-0.020579269155859947,
0.04948869347572327,
0.1084434762597084,
0.032847315073013306,
0.051344048231840134,
-0.05691010504961014,
0.003857429837808013,
-0.07527431100606918,
-0.035952191799879074,
-0.0239302646368742,
0.0443391427397728,
0.03814832493662834,
-0.02625892125070095,
-0.048807136714458466,
-0.004124846775084734,
-0.004510589875280857,
0.015079474076628685,
-0.060469355434179306,
-0.009201034903526306,
0.09928030520677567,
-0.005660719238221645,
0.04077989608049393,
0.008306490257382393,
0.012741350568830967,
0.0029983825515955687,
0.039076000452041626,
-0.0528586208820343,
0.042862433940172195,
-0.04339253529906273,
0.05653146281838417,
0.008907586336135864,
0.029553119093179703,
-0.03915172815322876,
-0.022510351613163948,
0.07179079204797745,
-0.02817106992006302,
-0.024706482887268066,
-0.025085126981139183,
0.015808362513780594,
-0.0482013076543808,
-0.010450558736920357,
0.05653146281838417,
-0.007113763131201267,
-0.02358948439359665,
-0.014416848309338093,
0.030518660321831703,
0.023722009733319283,
-0.11609207093715668,
-0.06554317474365234,
-0.014549373649060726,
0.0021937652491033077,
-0.035895396023988724,
0.06842086464166641,
0.05039743706583977,
-0.02014382928609848,
-0.028379324823617935,
-0.06883737444877625,
-0.021582674235105515,
-0.027470579370856285,
0.027697766199707985,
-0.025160854682326317,
0.030689049512147903,
0.03814832493662834,
-0.05971206724643707,
-0.015230931341648102,
-0.004714110400527716,
0.00820709578692913,
-0.05566058307886124,
0.03326382488012314,
-0.04555080458521843,
0.012637224048376083,
0.07762189954519272,
-0.011018523015081882,
0.0508139468729496,
0.03841337561607361,
0.03243080899119377,
0.040249794721603394,
-0.0003555698203854263,
-0.020863251760601997,
-0.05566058307886124,
-0.016944292932748795,
-0.02264287695288658,
-0.010081380605697632,
-0.017436528578400612,
0.005116419401019812,
-0.04032552242279053,
0.01651831902563572,
0.00490816542878747,
0.021204032003879547,
0.019670525565743446,
-0.019339213147759438,
-0.013811018317937851,
-0.024820076301693916,
-0.01347023993730545,
-0.005708049517124891,
-0.03809152916073799,
0.05918196588754654,
0.052934348583221436,
-0.03299877420067787,
0.045512937009334564,
-0.0520634688436985,
0.0062334174290299416,
-0.009584411047399044,
0.0475197471678257,
-0.0238734669983387,
0.02771669812500477,
0.03684200346469879,
0.0508139468729496,
0.07235875725746155,
0.011794742196798325,
-0.05119258910417557,
0.03004535473883152,
0.020162761211395264,
-0.019500136375427246,
-0.007435610052198172,
0.01974625326693058,
0.007265220396220684,
-0.05691010504961014,
0.02285112999379635,
0.011595954187214375,
0.011974598281085491,
0.03994688019156456,
-0.04770907014608383,
0.05664505437016487,
0.01742706261575222,
-0.005674918182194233,
0.04312748461961746,
-0.03994688019156456,
0.06595968455076218,
-0.004735409282147884,
-0.009328827261924744,
0.06501307338476181,
0.03241187706589699,
0.022907927632331848,
-0.047444019466638565,
0.03067011758685112,
-0.01702948845922947,
0.00527734262868762,
-0.0233055017888546,
-0.002307358430698514,
-0.03106769174337387,
0.024403568357229233,
0.03739103674888611,
-0.08042386174201965,
-0.043543994426727295,
0.0022363627795130014,
-0.05543339625000954,
0.038621626794338226,
-0.025672024115920067,
-0.028947290033102036,
0.05993925407528877,
-0.056834377348423004,
-0.039076000452041626,
-0.009385623969137669,
-0.006749318912625313,
0.049602288752794266,
-0.002328657079488039,
0.07800054550170898,
0.01533505879342556,
-0.0010241121053695679,
-0.10200653970241547,
0.015562244690954685,
0.02796281687915325,
0.04157504811882973,
0.037031326442956924,
0.012675088830292225,
-0.07069272547960281,
0.03212789446115494,
0.045967310667037964,
0.06293053925037384,
0.028095342218875885,
-0.06262762099504471,
0.04047698155045509,
0.03311236575245857,
-0.016385793685913086,
-0.008065104484558105,
0.008647268638014793,
0.007648597005754709,
-0.0012767382431775331,
-0.03135167434811592,
-0.05505475401878357,
0.006432204972952604,
-0.056152816861867905,
0.02879583276808262,
-0.04290029779076576,
0.009191568940877914,
-0.0071516274474561214,
0.00714216148480773,
0.034873057156801224,
0.0062334174290299416,
-0.021828792989253998,
-0.029212338849902153,
0.01702948845922947,
-0.01473869476467371,
-0.029382729902863503,
-0.06993544101715088,
-0.028644373640418053,
0.03699346259236336,
0.048352763056755066,
-0.02620212361216545,
-0.0025250783655792475,
-0.05698583275079727,
0.034589074552059174,
0.012495232746005058,
0.03722064942121506,
0.04407409206032753,
-0.03288517892360687,
-0.034589074552059174,
-0.025937074795365334,
-0.011614887043833733,
-0.04873140901327133,
0.03220362216234207,
-0.009674339555203915,
0.030367201194167137,
-0.00696230586618185,
0.08564914017915726,
0.012182852253317833,
0.005660719238221645,
0.009892059490084648,
-0.023438027128577232,
0.0033675599843263626,
-0.01590302400290966,
-0.06577035784721375,
0.039643965661525726,
-0.002603173488751054,
-0.019443338736891747,
-0.0071516274474561214,
-0.015865158289670944,
0.03559248149394989,
-0.010043516755104065,
0.013962475582957268,
0.004120113793760538,
-0.03152206540107727,
0.014426314271986485,
0.01075347326695919,
0.03212789446115494,
-0.029628846794366837,
0.009660140611231327,
0.0507003553211689,
0.0038053663447499275,
0.0035994790960103273,
0.0033935916144400835,
0.018288476392626762,
-0.010734540410339832,
-0.02779242768883705,
-0.005835841875523329,
0.03888667747378349,
0.053729500621557236,
0.020162761211395264,
0.00026593785150907934,
0.05607708916068077,
-0.021658403798937798,
0.01428432296961546,
0.01391514576971531,
0.008812925778329372,
-0.028473984450101852,
-0.05713729187846184,
0.017862502485513687,
-0.006791916210204363,
0.03875415399670601,
-0.0126182921230793,
0.033301688730716705,
-0.017105216160416603,
0.00970273744314909,
-0.02625892125070095,
0.061415962874889374,
0.001590302330441773,
0.025766683742403984,
0.07001116871833801,
-0.044679924845695496,
0.0007324383477680385,
-0.03672841191291809,
-0.017171479761600494,
0.007208424154669046,
0.004889233037829399,
-0.07247234880924225,
0.03563034534454346,
-0.030632251873612404,
0.05789458006620407,
0.02569095604121685,
0.005149550270289183,
-0.017360800877213478,
-0.025274448096752167,
-0.00011359302152413875,
0.02184772491455078,
0.02529338002204895,
0.010649345815181732,
-0.05653146281838417,
-0.0242710430175066,
0.0462702251970768,
0.013290383853018284,
-0.04165077582001686,
-0.03474053367972374,
-0.0009880226571112871,
0.02947738952934742,
-0.05827322229743004,
-0.03608471900224686,
-0.02025742270052433,
0.027091937139630318,
-0.04691391810774803,
-0.00010249995830236003,
0.004898699000477791,
-0.05952274426817894,
0.07099564373493195,
0.01884697563946247,
-0.019840914756059647,
0.023911330848932266,
0.0003360460395924747,
-0.04380904510617256,
0.011908335611224174,
-0.07281313091516495,
-0.032052166759967804,
-0.027413783594965935,
-0.036236174404621124,
-0.011056387796998024,
0.003327328944578767,
0.03214682638645172,
0.04782266169786453,
-0.03807259723544121,
0.035725004971027374,
-0.09246472269296646,
0.003902393626049161,
0.056039225310087204,
-0.0449071079492569,
0.0526314340531826,
-0.03326382488012314,
0.02230209670960903,
-0.0027143999468535185,
-0.011823141016066074,
0.023968128487467766,
0.0138394171372056,
0.0010323949391022325,
0.035005584359169006,
-0.04948869347572327,
0.035895396023988724,
-0.054903294891119,
0.05630427598953247,
0.006299679633229971,
0.007459275424480438,
0.07345682382583618,
0.0018068390199914575,
-0.033528875559568405,
-0.03027254156768322,
0.05414601042866707,
-0.013318781740963459,
0.006948106922209263,
0.0000020291072360123508,
-0.06857232004404068,
0.02834145911037922,
0.004392263479530811,
0.028757967054843903,
0.02993176132440567,
0.008353820070624352,
0.01092386245727539,
-0.06580822914838791,
0.04982947185635567,
0.02381667122244835,
0.018316876143217087,
-0.06531599164009094,
0.0007194224745035172,
0.05698583275079727,
-0.015770498663187027,
0.03634976968169212,
-0.00421477435156703,
-0.019159356132149696,
0.011529692448675632,
-0.042635247111320496,
-0.04770907014608383,
-0.01985984668135643,
-0.006399073638021946,
-0.018421001732349396,
-0.010564151220023632,
0.0047306763008236885,
-0.016338463872671127,
0.001897950074635446,
0.04566439613699913,
-0.011823141016066074,
0.008221294730901718,
-0.012040860950946808,
0.008562074042856693,
0.02902301773428917,
0.027148732915520668,
0.006825047545135021,
0.03496772050857544,
0.04623236134648323,
0.0032326681539416313,
0.042067281901836395,
0.02201811410486698,
-0.0009341842960566282,
-0.015079474076628685,
-0.006910242140293121,
-0.016262734308838844,
0.011861004866659641,
-0.013981408439576626,
-0.057743120938539505,
0.026542903855443,
-0.009863660670816898,
-0.02478221245110035,
0.011151048354804516,
0.00797517690807581,
0.03129487857222557,
-0.04168863967061043,
0.05952274426817894,
-0.04267311468720436,
0.031086623668670654,
-0.027546308934688568,
0.008831857703626156,
0.042408064007759094,
-0.003594745881855488,
-0.03574393689632416,
0.01324305310845375,
0.017285071313381195,
-0.021980250254273415,
-0.007970443926751614,
-0.0056559862568974495,
-0.06353636831045151,
-0.00018562401237431914,
-0.0027356985956430435,
0.0457022599875927,
0.01974625326693058,
0.03911386430263519,
0.01674550585448742,
-0.046989649534225464,
-0.005513994954526424,
-0.009546547196805477,
0.0513819120824337,
0.03356673941016197,
-0.053388722240924835,
-0.03718278184533119,
0.035289566963911057,
0.0516090989112854,
0.01652778498828411,
0.04324107989668846,
-0.05713729187846184,
-0.027243394404649734,
-0.08080250769853592,
0.02677008882164955,
0.027527377009391785,
-0.02307831682264805,
0.017162011936306953,
0.018013959750533104,
-0.024403568357229233,
-0.005424066912382841,
0.0267132930457592,
-0.037712883204221725,
-0.017474394291639328,
0.013233587145805359,
-0.005764846224337816,
-0.07883355766534805,
0.0022434622514992952,
0.024914735928177834,
-0.017067352309823036,
0.041840098798274994,
-0.01641419157385826,
-0.007781122345477343,
-0.08739089965820312,
0.021469080820679665,
0.04180223494768143,
0.010895464569330215,
-0.0007342132739722729,
0.0524042472243309,
0.003587646409869194,
-0.04873140901327133,
-0.021355489268898964,
0.00998672004789114,
0.0015488882781937718,
0.004870301112532616,
0.07398692518472672,
0.04100708290934563,
0.03769395127892494,
0.04119640216231346,
-0.061529554426670074,
-0.011132116429507732,
-0.004176910035312176,
-0.009556013159453869,
-0.03368033096194267,
-0.030916234478354454,
0.03326382488012314,
0.014946948736906052,
-0.002804327756166458,
-0.10420266538858414,
-0.028928356245160103,
-0.0069197085686028,
-0.06887523829936981,
0.04210514947772026,
-0.03809152916073799,
-0.025274448096752167,
-0.03455121070146561,
0.0006632176227867603,
-0.008467413485050201,
-0.04736829176545143,
-0.009996186010539532,
0.044566329568624496,
-0.06315772235393524,
-0.017758376896381378,
0.02535017766058445,
0.014833356253802776,
0.07175292819738388,
0.01624380238354206,
0.05176055431365967,
-0.008860255591571331,
-0.05675864964723587,
0.07315390557050705,
0.00347168673761189,
-0.07360827922821045,
-0.030007490888237953,
0.00950394943356514,
-0.052025604993104935,
-0.027527377009391785,
-0.0269404798746109,
0.022037046030163765,
-0.05940915271639824,
-0.03593325987458229,
0.03405897691845894,
-0.02970457635819912,
0.07129855453968048,
-0.029515255242586136,
0.006361209321767092,
0.03687986731529236,
-0.07523644715547562,
0.009958322159945965,
0.00017453095642849803,
-0.043203212320804596,
0.0512683168053627,
0.05077608302235603,
-0.021696267649531364,
0.0007886432576924562,
-0.009854194708168507,
0.028076408430933952,
-0.04316534847021103,
0.03212789446115494,
0.03826191648840904,
-0.029628846794366837,
0.042635247111320496,
-0.034873057156801224,
0.055244073271751404,
-0.01092386245727539,
0.07296458631753922,
0.016944292932748795,
-0.002884789602831006,
-0.016205938532948494,
-0.010904930531978607,
0.0521770641207695,
0.014426314271986485,
-0.019670525565743446,
-0.019377076998353004,
-0.00874193012714386,
0.041953690350055695,
-0.013015867210924625,
0.06561890244483948,
-0.00222216360270977,
-0.06270334869623184,
-0.052820757031440735,
0.04134786128997803,
-0.05448678880929947,
0.038224052637815475,
-0.03485412523150444,
-0.02145014889538288,
-0.010374829173088074,
-0.017786774784326553,
0.0268836822360754,
0.021885588765144348,
-0.03343421220779419,
-0.06028003245592117,
0.03559248149394989,
-0.03394538164138794,
0.028947290033102036,
-0.0507003553211689,
0.042294468730688095,
0.0002718541363719851,
-0.008609404787421227,
0.010034050792455673,
-0.026807954534888268,
-0.0546761080622673,
-0.0010708508780226111,
0.06202179193496704,
0.015230931341648102,
0.025596294552087784,
0.003750936361029744,
-0.08231707662343979,
-0.002889522584155202,
-0.00196539587341249,
0.022907927632331848,
-0.05266929790377617,
0.007724325638264418,
-0.010535753332078457,
0.011018523015081882,
0.0032728989608585835,
-0.02116616629064083,
0.04736829176545143,
0.008278091438114643,
-0.027868155390024185,
-0.052707161754369736,
0.008898120373487473,
0.02788708731532097,
0.00742614408954978,
0.0539945513010025,
-0.0008785710670053959,
-0.011027989909052849,
-0.06804221868515015,
0.041953690350055695,
0.026618631556630135,
0.03218469023704529,
-0.044225551187992096,
0.0470653772354126,
0.007994108833372593,
0.017550121992826462,
0.023608416318893433,
0.0018991334363818169,
0.048466358333826065,
0.03424829617142677,
0.00021638879843521863,
-0.011302505619823933,
-0.025558430701494217,
-0.06902669370174408,
0.0133566465228796,
0.031370606273412704,
0.03814832493662834,
0.001525223022326827,
0.002270677126944065,
-0.032676927745342255,
0.0015382388373836875,
0.0453614816069603,
0.013962475582957268,
0.003968656528741121,
0.04793625697493553,
-0.02173413150012493,
0.09087441861629486,
-0.07269953936338425,
-0.040022607892751694,
-0.052820757031440735,
-0.033812858164310455,
0.035100243985652924,
0.008836590684950352,
0.03504344820976257,
0.0007756273844279349,
0.009863660670816898,
-0.033074501901865005,
-0.022548215463757515,
-0.06520240008831024,
0.0139246117323637,
-0.0026931012980639935,
0.014047671109437943,
-0.01641419157385826,
-0.029893897473812103,
-0.01561904139816761,
-0.06364995986223221,
0.014842822216451168,
0.04032552242279053,
-0.013347180560231209,
-0.04157504811882973,
-0.0021192198619246483,
-0.033812858164310455,
-0.025160854682326317,
0.016366861760616302,
0.029553119093179703,
-0.06043148785829544,
-0.06652764976024628,
-0.016726572066545486,
0.018581924960017204,
0.0510411337018013,
-0.048466358333826065,
0.03439975529909134,
0.023608416318893433,
0.02139335311949253,
-0.005490329582244158,
-0.04036338999867439,
0.04021193087100983,
0.029231272637844086,
0.006001498084515333,
0.0238734669983387,
0.03570607304573059,
-0.045815855264663696,
-0.03869735822081566,
0.010516820475459099,
0.005717515479773283,
0.013697425834834576,
-0.020181694999337196,
-0.010781871154904366,
0.006531598977744579,
0.04426341503858566,
-0.010450558736920357,
0.06732279807329178,
-0.010488422587513924,
-0.005807443521916866,
-0.010213905945420265,
0.02207491174340248,
-0.017796240746974945,
0.01629113219678402,
-0.007610732689499855,
0.05210133269429207,
0.03417256847023964,
0.016452057287096977,
-0.05736447870731354,
-0.012107123620808125,
-0.04070416837930679,
-0.0010572434403002262,
0.005367270205169916,
-0.022661808878183365,
0.0470653772354126,
-0.01233430951833725,
-0.008770328015089035,
0.015278262086212635,
-0.031824979931116104,
-0.03511917591094971,
0.009518149308860302,
0.026164259761571884,
0.03479732945561409,
-0.04691391810774803,
0.032222554087638855,
-0.026391446590423584,
-0.0010359446750953794,
0.03519490733742714
] |
723,010
|
pyvat
|
get_sale_vat_charge
|
Get the VAT charge for performing the sale of an item.
Currently only supports determination of the VAT charge for
telecommunications, broadcasting and electronic services in the EU.
:param date: Sale date.
:type date: datetime.date
:param item_type: Type of the item being sold.
:type item_type: ItemType
:param buyer: Buyer.
:type buyer: Party
:param seller: Seller.
:type seller: Party
:rtype: VatCharge
|
def get_sale_vat_charge(date,
item_type,
buyer,
seller):
"""Get the VAT charge for performing the sale of an item.
Currently only supports determination of the VAT charge for
telecommunications, broadcasting and electronic services in the EU.
:param date: Sale date.
:type date: datetime.date
:param item_type: Type of the item being sold.
:type item_type: ItemType
:param buyer: Buyer.
:type buyer: Party
:param seller: Seller.
:type seller: Party
:rtype: VatCharge
"""
# Only telecommunications, broadcasting and electronic services are
# currently supported.
if not item_type.is_electronic_service and \
not item_type.is_telecommunications_service and \
not item_type.is_broadcasting_service:
raise NotImplementedError(
'VAT charge determination for items that are not '
'telecommunications, broadcasting or electronic services is '
'currently not supported'
)
# Determine the rules for the countries in which the buyer and seller
# reside.
buyer_vat_rules = VAT_RULES.get(buyer.country_code, None)
seller_vat_rules = VAT_RULES.get(seller.country_code, None)
# Test if the country to which the item is being sold enforces specific
# VAT rules for selling to the given country.
if buyer_vat_rules:
try:
return buyer_vat_rules.get_sale_to_country_vat_charge(date,
item_type,
buyer,
seller)
except NotImplementedError:
pass
# Fall back to applying VAT rules for selling from the seller's country.
if seller_vat_rules:
try:
return seller_vat_rules.get_sale_from_country_vat_charge(date,
item_type,
buyer,
seller)
except NotImplementedError:
pass
# Nothing we can do from here.
raise NotImplementedError(
'cannot determine VAT charge for a sale of item %r between %r and %r' %
(item_type, seller, buyer)
)
|
(date, item_type, buyer, seller)
|
[
0.020474199205636978,
-0.0725700706243515,
0.008773992769420147,
0.03713967651128769,
-0.004728388041257858,
-0.06915151327848434,
0.027812954038381577,
-0.0554029606282711,
-0.03331237658858299,
0.009061969816684723,
0.00725514953956008,
0.0014526555314660072,
0.025787828490138054,
0.01686984859406948,
-0.048491522669792175,
0.06725644320249557,
-0.07368481904268265,
-0.0016349632060155272,
0.062463026493787766,
0.0202326700091362,
0.01199282705783844,
-0.04525875672698021,
-0.00044676996185444295,
-0.01963813789188862,
0.015652915462851524,
0.0680367648601532,
0.024765977635979652,
0.06361493468284607,
0.005634120665490627,
-0.014844723045825958,
0.0033976580016314983,
-0.011844193562865257,
0.03793857991695404,
0.04020523279905319,
-0.0160523671656847,
0.007120450958609581,
0.0014526555314660072,
0.00018085619376506656,
-0.07840391993522644,
0.08308585733175278,
-0.027478529140353203,
-0.008564977906644344,
0.10196225345134735,
-0.03134298697113991,
-0.07907276600599289,
-0.0069950418546795845,
-0.045556019991636276,
0.0033604996278882027,
-0.046596452593803406,
0.015067672356963158,
0.029930975288152695,
0.007589573506265879,
0.03301510959863663,
-0.04314073547720909,
0.02210916206240654,
0.010692288167774677,
0.01921081729233265,
0.09482786804437637,
0.038867536932229996,
0.05989910662174225,
0.026995472609996796,
0.0009771459735929966,
-0.009294209070503712,
-0.037436943501234055,
-0.025750670582056046,
-0.017269298434257507,
0.001471234718337655,
-0.006939304061233997,
-0.007413072045892477,
0.05101828649640083,
0.0409112386405468,
0.04198882728815079,
-0.01984250918030739,
0.03360964357852936,
0.04815709963440895,
-0.02898344025015831,
0.04053965583443642,
-0.015011935494840145,
0.03550471365451813,
-0.03353532403707504,
0.07156679779291153,
-0.039090484380722046,
0.033238060772418976,
-0.01880207657814026,
0.037232570350170135,
0.06524989753961563,
-0.0425090454518795,
-0.038904692977666855,
0.015374228358268738,
0.061719860881567,
-0.026382360607385635,
0.016674766317009926,
-0.034074120223522186,
0.0031491622794419527,
-0.02671678550541401,
-0.004616913385689259,
0.031584516167640686,
-0.048937421292066574,
-0.01784525252878666,
0.052690405398607254,
-0.000026780071493703872,
0.0705263689160347,
-0.07788370549678802,
-0.0434008426964283,
0.025360509753227234,
-0.04503580555319786,
-0.04273199290037155,
0.024301499128341675,
0.04875162988901138,
-0.009391749277710915,
-0.006911435630172491,
-0.021143047139048576,
-0.0134512884542346,
-0.047451093792915344,
-0.0612739622592926,
0.008602135814726353,
-0.025118980556726456,
0.049086056649684906,
-0.06138543784618378,
0.032030414789915085,
0.014045820571482182,
-0.02335396409034729,
0.01874634064733982,
0.016721215099096298,
0.0023154239170253277,
-0.07041489332914352,
0.001525810919702053,
0.0009870161302387714,
0.06996899843215942,
0.06710781157016754,
-0.0059128073044121265,
-0.015234884805977345,
-0.0066327485255897045,
-0.033461008220911026,
-0.02565777488052845,
0.02692115679383278,
-0.0442926399409771,
0.04875162988901138,
-0.040353864431381226,
0.007891484536230564,
-0.006428378168493509,
0.0425090454518795,
0.004904889967292547,
-0.039982281625270844,
-0.0008581234724260867,
0.03539323806762695,
-0.030414031818509102,
0.019545242190361023,
-0.05897015333175659,
0.014946908690035343,
-0.026753943413496017,
0.03212331235408783,
0.041617244482040405,
0.01533707045018673,
0.01263380702584982,
-0.0904431939125061,
-0.01374855451285839,
0.018263282254338264,
-0.0031050366815179586,
0.0017487604636698961,
-0.053284939378499985,
0.015002645552158356,
0.0170742180198431,
0.02818453684449196,
-0.008569622412323952,
0.014844723045825958,
-0.03364679962396622,
-0.0006078858277760446,
0.009837647899985313,
-0.020065458491444588,
-0.04852868244051933,
0.008792572654783726,
-0.11853483319282532,
-0.0804847851395607,
-0.021793317049741745,
0.05841277912259102,
-0.0029355022124946117,
-0.07149248570203781,
-0.01165840309113264,
0.012485173530876637,
0.016219578683376312,
-0.026233728975057602,
-0.004565820563584566,
-0.022406429052352905,
-0.01439882442355156,
-0.03968501836061478,
0.018672022968530655,
0.006693130824714899,
-0.023725546896457672,
0.0103392843157053,
-0.020158354192972183,
0.05666634067893028,
0.00500243017449975,
-0.03897900879383087,
-0.010487917810678482,
-0.005062812473624945,
0.007306241896003485,
0.017594434320926666,
-0.10107045620679855,
0.024914611130952835,
0.019043605774641037,
0.0204556193202734,
0.0036879568360745907,
-0.009995570406317711,
-0.027218421921133995,
0.017148535698652267,
-0.009763332083821297,
-0.034482862800359726,
-0.02922496758401394,
0.021960528567433357,
0.017613012343645096,
0.04726530238986015,
-0.021551787853240967,
0.008978363126516342,
-0.02125452272593975,
-0.03338669240474701,
-0.019731033593416214,
0.0162753164768219,
-0.03585771843791008,
0.034111279994249344,
0.021235942840576172,
-0.10552944242954254,
-0.02770148031413555,
0.04072544723749161,
0.03615498170256615,
-0.008625360205769539,
-0.03938775137066841,
-0.012020695954561234,
-0.008750769309699535,
-0.06027068942785263,
-0.04109703004360199,
0.00928956363350153,
0.01686984859406948,
0.05135270953178406,
-0.03611782565712929,
-0.05714939534664154,
0.01958240009844303,
0.020567094907164574,
-0.025490563362836838,
0.012029984965920448,
0.007780009880661964,
0.00526718283072114,
-0.026791103184223175,
0.07766075432300568,
-0.04213746264576912,
0.013497736304998398,
0.029670866206288338,
0.07019194215536118,
-0.03126867115497589,
-0.007408427074551582,
0.014566035941243172,
-0.0693744644522667,
-0.007812523283064365,
0.04629918560385704,
0.0005893066991120577,
-0.0562947578728199,
-0.02125452272593975,
0.01680482178926468,
-0.008551043458282948,
-0.03147304430603981,
0.007361979223787785,
0.035746242851018906,
-0.04942047968506813,
-0.016851268708705902,
-0.09690873324871063,
-0.017678041011095047,
0.01647968590259552,
-0.019285134971141815,
-0.024468710646033287,
0.047859832644462585,
0.060790907591581345,
0.03281074017286301,
0.037251152098178864,
0.013962214812636375,
-0.022164899855852127,
-0.007097227033227682,
-0.021105889230966568,
-0.02186763286590576,
0.01146332174539566,
0.006391219794750214,
-0.022257795557379723,
0.016405370086431503,
0.04529591277241707,
0.08330880850553513,
-0.04581613093614578,
-0.08152521401643753,
0.03676809370517731,
-0.026995472609996796,
-0.017260009422898293,
0.03964785858988762,
-0.037251152098178864,
-0.0010450759436935186,
0.04024239256978035,
0.02547198347747326,
0.05046091228723526,
0.07152964174747467,
0.023446859791874886,
0.005782753694802523,
0.036377932876348495,
-0.005164997652173042,
0.014445272274315357,
0.08494377136230469,
-0.01738077402114868,
-0.014575325883924961,
0.03232768177986145,
0.029522234573960304,
0.032829318195581436,
-0.06569579243659973,
0.013098285533487797,
-0.015123410150408745,
-0.04172872006893158,
0.002524439012631774,
0.009568250738084316,
-0.03318232297897339,
0.008146947249770164,
-0.062277235090732574,
-0.052876196801662445,
-0.05090681090950966,
0.06476683914661407,
0.04878878965973854,
0.030172504484653473,
0.06558432430028915,
0.024896031245589256,
0.05774392932653427,
-0.01386931911110878,
0.009164154529571533,
-0.029912395402789116,
0.05700076371431351,
-0.030153924599289894,
0.03671235591173172,
-0.03983364999294281,
0.010237099602818489,
-0.03485444560647011,
0.03793857991695404,
0.0007042650831863284,
0.017445800825953484,
0.0025267614983022213,
-0.0551428496837616,
0.0100048603489995,
0.03024682030081749,
0.04897458106279373,
0.029039176180958748,
-0.047042351216077805,
-0.031157197430729866,
0.038273002952337265,
0.004960627295076847,
0.03756699711084366,
-0.041171345859766006,
0.021793317049741745,
0.05588601529598236,
-0.04042818397283554,
-0.01093381643295288,
0.003125938354060054,
0.03084135241806507,
-0.009902674704790115,
-0.016897717490792274,
0.024524448439478874,
-0.01845836266875267,
0.047822676599025726,
0.003413914702832699,
-0.02463592402637005,
0.052467457950115204,
0.014761117286980152,
0.006609524600207806,
-0.03706536069512367,
-0.023614071309566498,
0.016795530915260315,
-0.04548170417547226,
0.03440854325890541,
-0.013079705648124218,
-0.021143047139048576,
-0.01639608107507229,
0.0072876629419624805,
0.0000374122682842426,
0.03394406661391258,
-0.01823541335761547,
-0.012698833830654621,
-0.002949436428025365,
-0.0014340764610096812,
0.04314073547720909,
-0.0167862419039011,
0.06053079664707184,
0.005926741752773523,
0.019693875685334206,
0.13317519426345825,
-0.030135344713926315,
0.026215149089694023,
0.049531955271959305,
-0.056443389505147934,
-0.03212331235408783,
-0.006948594003915787,
0.02630804479122162,
-0.01198353711515665,
-0.005025654099881649,
0.006674551870673895,
-0.06911435723304749,
0.011323978193104267,
-0.01821683533489704,
-0.06075374782085419,
-0.040353864431381226,
0.019080763682723045,
-0.009558961726725101,
-0.03149162232875824,
-0.04195167124271393,
-0.09334153681993484,
-0.018086781725287437,
-0.03359106183052063,
-0.04228609427809715,
-0.023298226296901703,
0.019136501476168633,
-0.0027915139216929674,
0.02019551210105419,
-0.014110847376286983,
-0.03801289573311806,
-0.02504466474056244,
-0.03240199759602547,
0.04488717392086983,
0.05752097815275192,
0.05688928812742233,
0.03266210854053497,
0.028463223949074745,
-0.075059674680233,
-0.0027055854443460703,
0.03983364999294281,
0.012308672070503235,
-0.06792528927326202,
-0.031993258744478226,
0.020938677713274956,
-0.012197197414934635,
-0.03442712500691414,
0.11340699344873428,
0.006864987779408693,
-0.06075374782085419,
-0.03310800716280937,
0.027367055416107178,
0.028091641142964363,
0.02443155273795128,
0.000701362092513591,
-0.04027954861521721,
0.052653249353170395,
-0.03061840310692787,
-0.020102616399526596,
-0.006335482466965914,
0.026772523298859596,
-0.054139576852321625,
-0.051798608154058456,
-0.01334910374134779,
-0.03760415315628052,
-0.03353532403707504,
-0.08516672253608704,
-0.002471023937687278,
0.02896486036479473,
0.018718471750617027,
0.0204556193202734,
-0.0822683796286583,
-0.030172504484653473,
-0.010562234558165073,
0.002524439012631774,
-0.006391219794750214,
0.028834806755185127,
0.0017917245859280229,
-0.003773885313421488,
-0.04916037246584892,
-0.007705693133175373,
-0.008184106089174747,
0.04165440425276756,
-0.02270369417965412,
-0.05031227692961693,
0.01480756513774395,
-0.01479827519506216,
-0.0049977852031588554,
-0.039313435554504395,
0.005666634067893028,
-0.007896129041910172,
0.010813052766025066,
0.013804292306303978,
-0.04875162988901138,
-0.005638765171170235,
-0.023279646411538124,
0.011036002077162266,
-0.026177991181612015,
0.004770190920680761,
-0.038495954126119614,
0.0029633708763867617,
-0.007427006494253874,
0.0005864037084393203,
-0.029875237494707108,
0.024728819727897644,
-0.051427025347948074,
0.052430298179388046,
-0.03647082671523094,
0.013683527708053589,
0.013237628154456615,
0.020994413644075394,
-0.008848309516906738,
0.030321136116981506,
-0.00038580718683078885,
0.023038119077682495,
0.021588945761322975,
-0.004196560475975275,
0.03422275185585022,
0.015736522153019905,
-0.037641312927007675,
-0.019991140812635422,
-0.006321548018604517,
-0.07810665667057037,
-0.02149605005979538,
-0.007018265314400196,
-0.007714982610195875,
-0.0206785686314106,
-0.007176188286393881,
0.03901616856455803,
0.04425548389554024,
-0.0049652718007564545,
-0.019062185660004616,
-0.019489504396915436,
-0.0036066730972379446,
0.003831945126876235,
0.022833747789263725,
-0.05217019096016884,
0.03130583092570305,
-0.011751298792660236,
0.05172429233789444,
-0.0072458600625395775,
0.04302925989031792,
0.06105101481080055,
-0.008773992769420147,
-0.0007617442170158029,
-0.0024640567135065794,
-0.05692644789814949,
0.0010003698989748955,
0.00011176506814081222,
-0.04314073547720909,
-0.03565334528684616,
0.0438467413187027,
-0.04291778430342674,
-0.011742008849978447,
-0.02751568891108036,
-0.03834731876850128,
0.036805253475904465,
0.005253248382359743,
-0.02959655039012432,
0.0005318275070749223,
-0.004642459563910961,
-0.025286192074418068,
-0.0370839387178421,
0.009382459335029125,
-0.03920195996761322,
-0.030506927520036697,
-0.030767034739255905,
0.027627162635326385,
-0.006047505885362625,
0.056852132081985474,
0.06565863639116287,
0.07818096876144409,
0.06001058220863342,
-0.05012648552656174,
-0.015179147012531757,
0.0019577755592763424,
-0.0231681726872921,
-0.021180205047130585,
-0.02170042134821415,
-0.020344145596027374,
0.033052269369363785,
-0.005824556574225426,
0.01490974985063076,
0.041840195655822754,
0.04373526573181152,
0.037028200924396515,
-0.055180009454488754,
0.03676809370517731,
-0.008221263997256756,
-0.015782969072461128,
0.047228142619132996,
-0.034724388271570206,
0.05068385973572731,
-0.03604350611567497,
-0.09505081921815872,
-0.028518961742520332,
-0.0269025769084692,
0.005350788589566946,
-0.051612816751003265,
-0.03979649022221565,
-0.01031141635030508,
-0.03634077310562134,
0.0009672758169472218,
0.002359549282118678,
0.012866046279668808,
-0.0029355022124946117,
0.06123680621385574,
0.02526761405169964,
0.0005472133634611964,
-0.016776952892541885,
0.0316588319838047,
-0.005699147470295429,
0.00725514953956008,
0.03767847269773483,
0.014788986183702946,
0.024933189153671265,
0.0025964330416172743,
-0.021849054843187332,
0.02818453684449196,
0.03216046839952469,
-0.030748456716537476,
0.04667076840996742,
-0.008379186503589153,
-0.03212331235408783,
0.010432180017232895,
0.06603021919727325,
-0.022183477878570557,
0.0033744340762495995,
0.006646682973951101,
0.03946206718683243,
0.011342557147145271,
0.012234355323016644,
0.02437581494450569,
-0.04864015802741051,
-0.005202155560255051,
0.018411915749311447,
0.011890641413629055,
-0.03897900879383087,
0.010710867121815681,
0.0017255365382879972,
0.0098933856934309,
-0.0438467413187027,
0.008569622412323952,
0.010980264283716679,
-0.0885852798819542,
0.018244704231619835,
-0.06209144368767738,
0.021607525646686554,
0.018894972279667854,
0.09832074493169785,
-0.026846839115023613,
0.009456776082515717,
0.02608509548008442,
0.027812954038381577,
0.01831902004778385,
0.005137128755450249,
0.02714410610496998,
0.0809306800365448,
0.1102856993675232,
-0.0047469669952988625,
0.03045118972659111,
-0.031584516167640686,
-0.010469338856637478,
-0.0172321405261755,
-0.026753943413496017,
0.04128282144665718,
0.01574581116437912,
0.0004496729525271803,
0.037455521523952484,
-0.009094483219087124,
-0.012884625233709812,
-0.03669377788901329,
0.060790907591581345,
0.005908162798732519,
-0.029113493859767914,
0.013051837682723999,
-0.002118020551279187,
0.003330308711156249,
0.05882151797413826,
0.016061656177043915,
-0.02877906896173954,
-0.00005374157990445383,
-0.02394849620759487,
0.03756699711084366,
-0.029057756066322327,
0.004045605193823576,
-0.030339716002345085,
0.06881708651781082,
0.04403253272175789,
0.027162684127688408,
-0.004969916772097349,
0.01451029907912016,
-0.010887368582189083,
0.006042861379683018,
0.04696803539991379,
-0.019359450787305832,
0.0009806295856833458,
0.06766518205404282,
0.01835617795586586,
-0.0009637922630645335,
0.01409226842224598,
0.014408113434910774,
0.002471023937687278,
-0.034482862800359726,
-0.025527721270918846,
-0.0626116618514061,
-0.07847823947668076,
0.010246388614177704,
-0.057260870933532715,
-0.028946280479431152,
-0.021941950544714928,
0.06725644320249557,
-0.007835746742784977,
-0.03022824041545391,
0.01584799587726593,
-0.06944877654314041,
0.01963813789188862,
0.005164997652173042,
-0.04477569833397865,
0.038235846906900406,
0.08917981386184692,
-0.043252211064100266,
-0.0035509357694536448,
0.0015803870046511292,
-0.013014678843319416,
-0.0012587358942255378,
-0.026586731895804405,
0.03422275185585022,
-0.03334953263401985,
0.028481803834438324,
-0.04377242550253868,
-0.010172072798013687,
0.05477127060294151,
-0.07119521498680115,
0.0206785686314106,
-0.017678041011095047,
0.024970347061753273,
-0.010738736018538475,
-0.05945320799946785,
0.019025027751922607,
-0.007083292584866285,
-0.004078118596225977,
0.02186763286590576,
0.03318232297897339,
0.0134512884542346,
0.04485001415014267,
0.022034846246242523,
0.038495954126119614,
-0.017306458204984665,
0.04982922226190567,
-0.025769250467419624,
0.05882151797413826,
0.00440093083307147,
-0.016776952892541885,
0.008611425757408142,
-0.02025124989449978,
0.0009858550038188696,
-0.003525389591231942,
0.07825528830289841,
-0.07071216404438019,
-0.0454445481300354,
-0.04020523279905319,
0.05826414376497269,
-0.010905948467552662,
0.016386790201067924,
0.014315217733383179,
-0.0021528564393520355,
0.004054894670844078,
-0.021347418427467346,
-0.0052160900086164474,
0.024970347061753273,
0.03457575663924217,
0.010766604915261269,
-0.008119079284369946,
0.003831945126876235,
-0.008941205218434334,
0.004229073878377676,
0.0170091912150383,
-0.00846279226243496,
-0.002533728489652276,
0.021737579256296158,
0.005982479080557823,
-0.0035439685452729464,
-0.017984595149755478,
0.033721115440130234
] |
723,011
|
pyvat
|
is_vat_number_format_valid
|
Test if the format of a VAT number is valid.
:param vat_number: VAT number to validate.
:param country_code:
Optional country code. Should be supplied if known, as there is no
guarantee that naively entered VAT numbers contain the correct alpha-2
country code prefix for EU countries just as not all non-EU countries
have a reliable country code prefix. Default ``None`` prompting
detection.
:returns:
``True`` if the format of the VAT number can be fully asserted as valid
or ``False`` if not.
|
def is_vat_number_format_valid(vat_number, country_code=None):
"""Test if the format of a VAT number is valid.
:param vat_number: VAT number to validate.
:param country_code:
Optional country code. Should be supplied if known, as there is no
guarantee that naively entered VAT numbers contain the correct alpha-2
country code prefix for EU countries just as not all non-EU countries
have a reliable country code prefix. Default ``None`` prompting
detection.
:returns:
``True`` if the format of the VAT number can be fully asserted as valid
or ``False`` if not.
"""
vat_number, country_code = decompose_vat_number(vat_number, country_code)
if not vat_number or not country_code:
return False
elif not any(c.isdigit() for c in vat_number):
return False
elif country_code not in VAT_NUMBER_EXPRESSIONS:
return False
elif not VAT_NUMBER_EXPRESSIONS[country_code].match(vat_number):
return False
return True
|
(vat_number, country_code=None)
|
[
0.040710967034101486,
-0.02468125708401203,
-0.013576564379036427,
0.008623459376394749,
-0.027359118685126305,
-0.027677465230226517,
-0.013791916891932487,
-0.03395077586174011,
0.030392779037356377,
-0.05535493046045303,
0.0202618520706892,
0.008923079818487167,
0.028351612389087677,
-0.06520496308803558,
-0.0061749960295856,
0.03962484374642372,
-0.01460651122033596,
0.009302287362515926,
-0.0005811003502458334,
0.011722661554813385,
-0.012284450232982635,
0.007766731083393097,
-0.05333248898386955,
-0.022939711809158325,
0.056590866297483444,
0.10299462825059891,
-0.00015624753723386675,
0.001035798224620521,
-0.014316253364086151,
-0.017293734475970268,
0.021347977221012115,
-0.024550173431634903,
0.04629140347242355,
0.06876295804977417,
-0.0356735922396183,
0.03363242745399475,
0.01606716215610504,
-0.0754295215010643,
-0.10336915403604507,
0.05471823737025261,
0.034943267703056335,
0.03170361742377281,
-0.009241427294909954,
0.062133848667144775,
-0.013529748655855656,
-0.032677385956048965,
0.0017450567102059722,
0.029156843200325966,
-0.07647819072008133,
-0.00044796810834668577,
0.020299304276704788,
-0.04018663242459297,
0.006142225116491318,
-0.028595054522156715,
-0.033594973385334015,
-0.014522242359817028,
0.056590866297483444,
0.08441814035177231,
0.011348134838044643,
-0.021797409281134605,
-0.0657292976975441,
-0.0043445006012916565,
-0.027883455157279968,
-0.0917588472366333,
-0.008571961894631386,
0.005739609710872173,
0.004393657203763723,
-0.0394001267850399,
-0.019194453954696655,
0.005734927952289581,
-0.0021301161032170057,
-0.013042865321040154,
-0.046066686511039734,
-0.01337057538330555,
-0.004779886920005083,
0.031104376539587975,
-0.03657245635986328,
0.06561694294214249,
-0.056478507816791534,
0.027696192264556885,
0.023876028135418892,
-0.05936235934495926,
0.05876311659812927,
-0.01777125522494316,
0.040261536836624146,
-0.010393094271421432,
-0.0382765494287014,
0.018829289823770523,
-0.004152555949985981,
0.04520527645945549,
-0.006062638480216265,
0.025224320590496063,
-0.0038552761543542147,
-0.05617888644337654,
-0.017977243289351463,
0.017537176609039307,
0.08748925477266312,
-0.05288305878639221,
-0.06737720966339111,
0.03138527274131775,
-0.01054290495812893,
-0.009709584526717663,
-0.036535002291202545,
-0.03571104630827904,
-0.015205752104520798,
0.03445638343691826,
-0.04962468519806862,
0.028239253908395767,
-0.011713298037648201,
0.007209623698145151,
-0.017939791083335876,
-0.044680941849946976,
0.04700300097465515,
-0.028257980942726135,
0.026198087260127068,
-0.04187199845910072,
0.061347346752882004,
0.03850126266479492,
-0.07325726747512817,
-0.0457296147942543,
0.054306257516145706,
0.023969659581780434,
-0.017349913716316223,
0.018829289823770523,
-0.014653326943516731,
-0.003431593766435981,
0.026460256427526474,
0.001825813902541995,
0.010439909994602203,
0.0498119480907917,
0.0016607883153483272,
0.06209639832377434,
0.03224668279290199,
-0.009775126352906227,
-0.00521527323871851,
-0.0013752123340964317,
-0.018876105546951294,
-0.058950379490852356,
-0.048650916665792465,
0.02198467217385769,
-0.01524320524185896,
0.06587910652160645,
0.006825734861195087,
-0.03576722368597984,
-0.008108486421406269,
0.028576327487826347,
-0.05089807137846947,
-0.02310824953019619,
-0.028707411140203476,
-0.019194453954696655,
0.007921223528683186,
0.049437422305345535,
0.06763938069343567,
0.016366781666874886,
0.01960643194615841,
-0.07677781581878662,
0.0034526607487350702,
-0.0172750074416399,
0.023950932547450066,
-0.03136654570698738,
0.02548648789525032,
0.05831368640065193,
0.02640407718718052,
0.07112247496843338,
-0.004220439121127129,
-0.008085078559815884,
-0.03260248154401779,
-0.0010246795136481524,
-0.010805072262883186,
-0.0035228843335062265,
0.05280815437436104,
0.022714996710419655,
0.0014992740470916033,
0.06149715557694435,
0.037564948201179504,
0.027003318071365356,
0.003960611764341593,
-0.03548632934689522,
0.04172218590974808,
0.02005586214363575,
-0.009438052773475647,
0.04670338332653046,
-0.01595480367541313,
0.048650916665792465,
-0.008094441145658493,
-0.0137544646859169,
0.03591703623533249,
-0.009981115348637104,
-0.017396729439496994,
-0.0394001267850399,
0.030224241316318512,
0.016010982915759087,
0.02241537533700466,
-0.05131005123257637,
-0.0337822362780571,
-0.053632110357284546,
0.029943346977233887,
-0.007546697277575731,
-0.021834861487150192,
-0.040373895317316055,
0.027321666479110718,
-0.05546728894114494,
0.04651612043380737,
-0.02297716587781906,
-0.007125355768948793,
0.023145701736211777,
-0.09580373018980026,
-0.06966181844472885,
-0.0038552761543542147,
-0.015205752104520798,
0.009035437367856503,
-0.0002776758628897369,
0.035748500376939774,
0.07812610268592834,
-0.007167489733546972,
-0.03249012306332588,
0.010224557481706142,
0.060298673808574677,
-0.010093473829329014,
0.02355767972767353,
0.06921239197254181,
-0.013492296449840069,
0.019962230697274208,
0.027583833783864975,
0.05213400721549988,
0.03719042241573334,
-0.002075107768177986,
0.05913764238357544,
-0.012555981054902077,
0.0211794413626194,
-0.022621365264058113,
0.0191382747143507,
0.006722740363329649,
0.005308904685080051,
-0.07670290768146515,
-0.048089127987623215,
0.02559884637594223,
0.0042625730857253075,
0.024531448259949684,
0.018951011821627617,
0.03209687024354935,
-0.0034573422744870186,
-0.02730293944478035,
-0.034830909222364426,
-0.013454843312501907,
0.0008110827184282243,
-0.07782648503780365,
0.04528018459677696,
-0.003106224350631237,
0.027621285989880562,
-0.07539206743240356,
0.014718868769705296,
0.007780775893479586,
0.05528002604842186,
-0.03943758085370064,
0.03252757713198662,
-0.03728405386209488,
0.016928572207689285,
0.031329091638326645,
0.026984592899680138,
0.03604811802506447,
0.015580277889966965,
-0.023969659581780434,
-0.013632743619382381,
-0.046179044991731644,
-0.004328114911913872,
0.05131005123257637,
0.004925015848129988,
0.0493999682366848,
-0.017265643924474716,
0.08651548624038696,
0.04632885754108429,
-0.014213258400559425,
0.024419089779257774,
0.028744863346219063,
0.008960532955825329,
0.007279847748577595,
-0.08381889760494232,
0.03582340478897095,
0.013548474758863449,
-0.002203851006925106,
-0.0069942716509103775,
0.04183454439043999,
0.06280799955129623,
0.056141436100006104,
0.029362831264734268,
-0.004246187396347523,
0.0243441853672266,
0.0008356609614565969,
-0.00003463633402134292,
-0.0235764067620039,
-0.037433866411447525,
0.023164428770542145,
0.02777109667658806,
-0.029400285333395004,
0.03932522237300873,
0.037546224892139435,
0.014971673488616943,
-0.04580451920628548,
-0.027883455157279968,
-0.003586085746064782,
0.02333296462893486,
0.09220828115940094,
0.009887483902275562,
0.001101925503462553,
0.04565471038222313,
-0.04351991042494774,
-0.004648802801966667,
-0.019737515598535538,
-0.01370764896273613,
0.005744291469454765,
0.01376382727175951,
-0.0069053214974701405,
-0.03876343369483948,
0.08052307367324829,
0.024550173431634903,
0.009377192705869675,
-0.07434339821338654,
0.004836065694689751,
-0.05707775056362152,
0.007401568349450827,
0.05086062103509903,
0.048201486468315125,
0.014072811231017113,
-0.02604827843606472,
-0.019531525671482086,
0.04269595444202423,
-0.012368718162178993,
-0.06816371530294418,
0.008932443335652351,
-0.00923206377774477,
-0.015271293930709362,
0.009072890505194664,
0.05209655687212944,
0.048763275146484375,
-0.009709584526717663,
-0.03511180356144905,
0.0042578913271427155,
0.021160714328289032,
0.03831399977207184,
0.02524304762482643,
0.05198419839143753,
0.024662531912326813,
-0.06599146872758865,
0.01098297256976366,
0.010121562518179417,
-0.07939949631690979,
0.010720804333686829,
-0.03013060986995697,
0.01722819171845913,
-0.0850173830986023,
0.007687144447118044,
-0.014569058082997799,
0.011254503391683102,
-0.06254582852125168,
0.00962531566619873,
0.0643061026930809,
-0.044793300330638885,
0.0275089293718338,
0.04793931916356087,
0.020074589177966118,
-0.034718550741672516,
-0.0069849081337451935,
-0.056366149336099625,
-0.03149763122200966,
-0.00033561032614670694,
0.04726517200469971,
-0.037433866411447525,
-0.015711361542344093,
0.011694571934640408,
0.008979259058833122,
-0.011132783256471157,
0.06704013794660568,
-0.030205516144633293,
0.03134781867265701,
-0.07498008757829666,
-0.005140368361026049,
0.027846001088619232,
-0.03432530164718628,
0.03181597590446472,
-0.0002492938074283302,
0.014887405559420586,
0.08456794917583466,
-0.016675766557455063,
0.04505546763539314,
-0.036535002291202545,
0.020748736336827278,
0.004707322455942631,
-0.09902465343475342,
0.032359037548303604,
-0.03366988152265549,
0.03726533055305481,
0.010823799297213554,
-0.0006630279240198433,
0.013567201793193817,
0.02052401937544346,
-0.003696102648973465,
-0.01303350180387497,
0.049325063824653625,
-0.039924461394548416,
0.022377923130989075,
-0.020992178469896317,
-0.049212705343961716,
0.01624506153166294,
0.04179709404706955,
0.0334264375269413,
0.026647519320249557,
0.005355720408260822,
-0.0029985480941832066,
-0.03322044759988785,
0.0360293947160244,
0.0028838496655225754,
-0.04228397458791733,
-0.052283819764852524,
-0.006563566625118256,
0.07790139317512512,
-0.020561473444104195,
-0.03805183246731758,
0.017939791083335876,
-0.001987328054383397,
0.008506420068442822,
-0.0008889138698577881,
-0.006942774169147015,
0.0020645740441977978,
0.05674067512154579,
-0.024063291028141975,
0.003431593766435981,
-0.014906131662428379,
-0.01778998039662838,
-0.0022167253773659468,
0.00926483515650034,
0.01788361184298992,
-0.0023279127199202776,
0.008220843970775604,
0.0005351623985916376,
-0.013108407147228718,
0.01725628226995468,
-0.003251353045925498,
-0.029063211753964424,
0.018791837617754936,
0.048089127987623215,
-0.0065261139534413815,
0.03185342997312546,
0.014044721610844135,
-0.027246760204434395,
0.024962153285741806,
0.0000415123940911144,
-0.0047260490246117115,
0.015393014997243881,
-0.01592671498656273,
-0.04599178209900856,
0.026347897946834564,
-0.05516766756772995,
-0.016956660896539688,
-0.016366781666874886,
0.08194626867771149,
-0.04835129529237747,
0.009213337674736977,
-0.08351927995681763,
0.004812657833099365,
-0.042096711695194244,
0.03129164129495621,
0.001790701993741095,
-0.00952232163399458,
-0.04239633306860924,
-0.024606352671980858,
0.01008411031216383,
-0.0038646392058581114,
0.009278879500925541,
0.044343870133161545,
-0.09108470380306244,
0.008553235791623592,
-0.0029540732502937317,
0.024849794805049896,
0.017930427566170692,
0.08928697556257248,
0.008787314407527447,
0.00017497382941655815,
-0.03327662870287895,
0.003974656108766794,
0.003663331735879183,
0.03451256453990936,
-0.03895069658756256,
0.0026872234884649515,
0.02842651680111885,
0.052171461284160614,
0.0256175734102726,
0.06074810400605202,
-0.05029883235692978,
-0.05722755938768387,
-0.06232111155986786,
-0.03672226518392563,
0.04449367895722389,
0.031104376539587975,
0.023070797324180603,
0.011029788292944431,
-0.014840589836239815,
0.04677828773856163,
0.010290099307894707,
-0.009414644911885262,
0.04101058840751648,
0.05026137828826904,
-0.05269579589366913,
-0.012584070675075054,
0.001083199167624116,
0.02853887528181076,
-0.0034947949461638927,
-0.0019955208990722895,
-0.00012391540803946555,
-0.007144081871956587,
-0.06288290023803711,
0.023145701736211777,
0.02595464698970318,
0.0412353053689003,
0.03295828029513359,
0.027602560818195343,
0.00914311408996582,
-0.0505235455930233,
0.03151635453104973,
0.004892244935035706,
-0.010992336086928844,
0.017125196754932404,
0.025186868384480476,
0.013960453681647778,
0.01461587380617857,
0.07295764982700348,
-0.05336994305253029,
-0.02717185579240322,
-0.02728421241044998,
-0.03595448657870293,
0.012602796778082848,
0.012190818786621094,
0.07082284986972809,
-0.00821148045361042,
-0.062246207147836685,
-0.07527971267700195,
-0.020299304276704788,
-0.019082095474004745,
-0.07041087001562119,
-0.015608367510139942,
-0.10426801443099976,
-0.039137959480285645,
0.01574881561100483,
-0.03591703623533249,
0.01239680778235197,
-0.032433945685625076,
0.036422643810510635,
-0.03962484374642372,
-0.07419358193874359,
-0.06119753420352936,
0.06689032912254333,
0.007012997753918171,
0.07677781581878662,
0.04116039723157883,
0.04805167391896248,
0.003995723556727171,
-0.009672131389379501,
0.02275244891643524,
0.023969659581780434,
-0.02323933318257332,
-0.039699748158454895,
0.028351612389087677,
-0.016282513737678528,
-0.07202133536338806,
-0.028370337560772896,
-0.022602638229727745,
-0.040710967034101486,
0.009138432331383228,
0.013258217833936214,
0.006455890368670225,
0.03872597962617874,
-0.03204069286584854,
0.035299066454172134,
0.007780775893479586,
-0.04659102484583855,
-0.01637614518404007,
0.0016303581651300192,
0.02629171870648861,
0.021479060873389244,
0.007785457652062178,
-0.027265487238764763,
-0.022509006783366203,
-0.04340755566954613,
0.01574881561100483,
-0.026010824367403984,
0.03752749785780907,
0.0035416106693446636,
0.008721772581338882,
0.00996238924562931,
-0.018492218106985092,
0.048313844949007034,
0.017490360885858536,
0.04262105002999306,
-0.020992178469896317,
0.003796756500378251,
-0.004529422614723444,
0.029943346977233887,
0.033819690346717834,
0.048987988382577896,
-0.008979259058833122,
-0.036329012364149094,
0.03447511047124863,
-0.004845429211854935,
-0.038800884038209915,
0.03977465257048607,
0.03340771049261093,
-0.013379937969148159,
0.02207830362021923,
0.01891355961561203,
-0.040149178355932236,
0.003529906738549471,
-0.0003086912911385298,
0.003302850527688861,
-0.05041118711233139,
0.026198087260127068,
0.020748736336827278,
-0.005238681100308895,
0.003658649977296591,
-0.006722740363329649,
-0.004613691009581089,
-0.010168378241360188,
-0.017125196754932404,
0.005280815530568361,
-0.0006320124957710505,
-0.01970006339251995,
-0.043332647532224655,
-0.02900703251361847,
-0.06138479709625244,
-0.09153413772583008,
-0.04973704367876053,
0.05078571289777756,
-0.017846159636974335,
0.012078461237251759,
0.012827512808144093,
-0.06453081220388412,
-0.05677812919020653,
-0.041385114192962646,
0.039137959480285645,
-0.012471713125705719,
-0.002316208789125085,
-0.017218828201293945,
-0.05876311659812927,
-0.038576170802116394,
0.0033754147589206696,
0.05299541726708412,
0.02436291053891182,
-0.03093584068119526,
-0.042995575815439224,
0.05621634051203728,
0.03443765640258789,
0.001890185521915555,
0.053519751876592636,
-0.00295875477604568,
0.0005468663875944912,
-0.006685287691652775,
0.06610382348299026,
0.003366051707416773,
-0.003532247617840767,
-0.0035743818152695894,
0.044231511652469635,
0.010233920998871326,
0.006736785173416138,
-0.03479345887899399,
-0.033463891595602036,
0.04913780093193054,
0.008529827930033207,
0.005365083925426006,
-0.05546728894114494,
-0.04569216072559357,
0.007701189257204533,
-0.02286480739712715,
0.006577611435204744,
-0.00019589460862334818,
0.011338772252202034,
0.04134766012430191,
-0.013651469722390175,
-0.04033644124865532,
0.0075326524674892426,
0.031179282814264297,
0.018033422529697418,
0.004178304690867662,
-0.042995575815439224,
0.07112247496843338,
-0.054418615996837616,
-0.033800963312387466,
-0.046740833669900894,
-0.034063130617141724,
0.028632506728172302,
0.021797409281134605,
0.0022260884288698435,
-0.03543015196919441,
0.007218987215310335,
-0.06647834926843643,
0.012462349608540535,
-0.02808944322168827,
-0.030224241316318512,
0.031797248870134354,
0.06662815809249878,
-0.03797692805528641,
-0.04681573808193207,
-0.047527339309453964,
-0.04239633306860924,
0.023726217448711395,
0.06385666877031326,
-0.021816134452819824,
-0.014981037005782127,
-0.021834861487150192,
-0.02063637785613537,
0.014643963426351547,
-0.012443623505532742,
0.0675644725561142,
-0.05479314178228378,
-0.010570993646979332,
-0.009924937039613724,
-0.0017005817499011755,
0.026890961453318596,
-0.013670195825397968,
-0.00911034271121025,
0.06835097819566727,
-0.04711535945534706,
-0.013913637958467007,
-0.011404314078390598,
-0.026684971526265144,
-0.005088870879262686,
-0.008969895541667938,
-0.035617414861917496,
-0.04044879972934723,
-0.031179282814264297,
0.009775126352906227,
-0.0423588827252388,
0.019175726920366287,
0.03850126266479492,
-0.027153128758072853,
-0.008777950890362263,
-0.005589799489825964,
0.0553174763917923,
-0.05292051285505295,
0.02923174761235714,
-0.022452829405665398,
0.01584244705736637,
-0.005528938956558704,
-0.013267580419778824,
-0.004449835978448391,
-0.06771428883075714,
0.029381558299064636,
0.10291972011327744,
0.007616920862346888,
0.0009638190385885537,
-0.009040119126439095,
-0.004812657833099365,
-0.016638314351439476,
-0.02286480739712715,
-0.06677797436714172,
0.01759335584938526,
0.08651548624038696,
0.010851888917386532,
-0.035505056381225586,
0.010730167850852013,
-0.022359197959303856,
-0.06939965486526489,
-0.001992009812965989,
0.005435307510197163,
0.027939632534980774,
-0.011928650550544262,
0.015308747068047523,
-0.01938171684741974,
-0.036872077733278275,
0.0243441853672266
] |
723,023
|
varint
|
_byte
| null |
def _byte(b):
return bytes((b, ))
|
(b)
|
[
-0.04504013806581497,
-0.023162011057138443,
-0.02343960851430893,
0.0418824702501297,
-0.05503363534808159,
-0.05642161890864372,
-0.017488619312644005,
0.08876168727874756,
-0.015103019773960114,
-0.08279334753751755,
0.0776578038930893,
0.07286924868822098,
-0.007395361550152302,
0.0310214813798666,
-0.014773373492062092,
-0.015189768746495247,
0.0029473009053617716,
0.023404909297823906,
0.018408160656690598,
0.03605292737483978,
-0.009750599972903728,
0.048926495015621185,
0.058330100029706955,
0.028089361265301704,
-0.013133814558386803,
0.03221862018108368,
-0.0010859903413802385,
0.0033723716624081135,
-0.033953599631786346,
-0.006762092933058739,
0.011043161153793335,
-0.09146825969219208,
0.04417264461517334,
0.014079379849135876,
0.031108230352401733,
0.02852310612797737,
0.01725439727306366,
0.06447193771600723,
-0.08015617728233337,
-0.06561702489852905,
-0.06027327850461006,
-0.037336815148591995,
-0.062563456594944,
-0.003970940597355366,
0.03789201006293297,
-0.03948819264769554,
0.037649113684892654,
0.004727826453745365,
-0.04472783952951431,
0.02769031561911106,
0.020854486152529716,
0.008926482871174812,
0.05888529494404793,
0.0022771640215069056,
0.02130558155477047,
-0.0008788768900558352,
-0.013697683811187744,
-0.020490139722824097,
-0.05492953583598137,
0.10069836676120758,
0.0005709175602532923,
0.04104967787861824,
0.008752984926104546,
-0.09188465774059296,
0.005664716940373182,
0.08071137219667435,
-0.02935589849948883,
-0.03438734635710716,
-0.011528956703841686,
0.05871179699897766,
0.0251051913946867,
0.047260913997888565,
-0.08147475868463516,
0.013819132931530476,
-0.04847539961338043,
0.019501199945807457,
-0.02140967920422554,
0.021652577444911003,
-0.03060508519411087,
0.041188474744558334,
0.09077426791191101,
-0.05659511685371399,
0.05517243221402168,
0.06117546930909157,
0.01374105829745531,
-0.022693566977977753,
-0.0054304939694702625,
0.035775333642959595,
-0.007269575260579586,
0.026631975546479225,
-0.00593797629699111,
-0.04167427122592926,
-0.04930819198489189,
0.08549991995096207,
0.022051623091101646,
-0.06780309975147247,
0.04774671047925949,
0.06894819438457489,
-0.04556063190102577,
-0.03820430859923363,
-0.026545226573944092,
0.032912611961364746,
-0.050071585923433304,
-0.05954458937048912,
-0.01766211912035942,
-0.006710043642669916,
0.021652577444911003,
-0.015484715811908245,
0.010349168442189693,
-0.07162006199359894,
0.0015810024924576283,
-0.028072010725736618,
-0.07162006199359894,
-0.02088918536901474,
-0.017783567309379578,
0.013133814558386803,
0.06277165561914444,
-0.016196059063076973,
0.05805250257253647,
0.035983528941869736,
0.0785599946975708,
0.014400351792573929,
0.04035568609833717,
0.006020388100296259,
0.03830840438604355,
0.056768614798784256,
0.003302972298115492,
0.030379537492990494,
0.029754944145679474,
0.0005318804760463536,
0.029321199283003807,
0.05253525823354721,
-0.010965087451040745,
-0.0012860555434599519,
-0.013767083175480366,
0.0054565188474953175,
-0.011737153865396976,
0.03365865349769592,
-0.009698550216853619,
-0.014617224223911762,
0.02156582847237587,
-0.009073956869542599,
0.09167645871639252,
0.005270008463412523,
0.025937983766198158,
-0.019136853516101837,
0.02479289472103119,
-0.030900031328201294,
-0.05548473075032234,
0.04722621291875839,
-0.012630670331418514,
0.027100421488285065,
0.0028822391759604216,
0.031819574534893036,
-0.011207984760403633,
0.02109738253057003,
0.02774236537516117,
-0.05486013740301132,
0.011095210909843445,
-0.040043387562036514,
0.02800261229276657,
-0.009126005694270134,
-0.0177228432148695,
-0.0201604925096035,
0.02821080945432186,
0.019050104543566704,
-0.03367600217461586,
0.01501627080142498,
0.024029502645134926,
-0.04948168992996216,
-0.001650401740334928,
0.012526570819318295,
-0.041188474744558334,
0.038898300379514694,
0.05496423318982124,
-0.0028605519328266382,
-0.015666889026761055,
0.017852965742349625,
0.007729345466941595,
-0.04198656976222992,
0.009238779544830322,
0.017497295513749123,
0.009958797134459019,
-0.01677727699279785,
0.055935826152563095,
0.0037085243966430426,
0.05284755676984787,
0.05430494248867035,
0.02602473273873329,
-0.05139017105102539,
0.013012366369366646,
0.05347215011715889,
0.009689874947071075,
0.018876606598496437,
-0.009342879056930542,
-0.02671872451901436,
0.038377806544303894,
0.013602260500192642,
0.027464767917990685,
0.003237910335883498,
-0.023144662380218506,
-0.017271747812628746,
0.02140967920422554,
-0.015736287459731102,
0.0075037977658212185,
-0.0356365330517292,
0.01859900914132595,
0.009984822012484074,
-0.040043387562036514,
-0.05621342360973358,
-0.009464327245950699,
-0.012595970183610916,
-0.007399698719382286,
-0.0023725880309939384,
-0.004114076495170593,
-0.09868578612804413,
-0.029806993901729584,
-0.01601388491690159,
0.04896119609475136,
0.0016102803638204932,
-0.004736501257866621,
0.038377806544303894,
0.01605726033449173,
-0.02609413117170334,
0.027759714052081108,
0.01148558221757412,
-0.06513123214244843,
-0.01031446922570467,
-0.00654955767095089,
0.014278902672231197,
0.019310351461172104,
0.00689655402675271,
0.011416182853281498,
0.023370210081338882,
0.029026251286268234,
-0.03622642904520035,
0.0517718680202961,
-0.05909349396824837,
-0.058121901005506516,
-0.03351985663175583,
0.0033376719802618027,
-0.005204946268349886,
0.0330340601503849,
0.06537412852048874,
0.04927349463105202,
-0.014929521828889847,
0.05343744903802872,
0.043513353914022446,
-0.06096727401018143,
-0.006076775025576353,
-0.04739971086382866,
-0.012214274145662785,
0.0014226853381842375,
-0.06183476373553276,
0.03966169059276581,
0.010678814724087715,
0.06561702489852905,
-0.01767079345881939,
-0.008375626057386398,
0.09646500647068024,
-0.02578183449804783,
0.019362401217222214,
0.01452180091291666,
-0.01049664244055748,
0.016907401382923126,
-0.025226641446352005,
-0.03497723862528801,
0.002355238189920783,
0.036191727966070175,
0.029182400554418564,
0.09042727202177048,
-0.062389958649873734,
-0.02120148204267025,
0.004012146033346653,
-0.040147487074136734,
-0.07710260897874832,
0.0019605299457907677,
0.01285621803253889,
0.01849490962922573,
-0.06572112441062927,
0.021739326417446136,
-0.00432444317266345,
0.003927565645426512,
0.04587292671203613,
-0.04209066554903984,
0.04844070225954056,
-0.004827587865293026,
-0.02722186967730522,
-0.01031446922570467,
-0.01865105889737606,
0.004957711324095726,
0.020767737179994583,
-0.015814362093806267,
-0.011581005528569221,
0.017384521663188934,
0.033016711473464966,
-0.001862937118858099,
0.020229892805218697,
0.07314684987068176,
-0.020698336884379387,
0.00019667649758048356,
0.03976579010486603,
-0.002788983751088381,
0.021427029743790627,
-0.030153989791870117,
0.0005237477598711848,
0.018321411684155464,
0.0020310133695602417,
-0.07068317383527756,
-0.018304061144590378,
-0.009793974459171295,
-0.021704627200961113,
0.03402300179004669,
0.003697680775076151,
0.0029754943680018187,
-0.03475169092416763,
-0.008440688252449036,
0.005152896977961063,
-0.024549998342990875,
0.03461289405822754,
0.04184776917099953,
-0.06110607087612152,
0.02323141135275364,
0.011581005528569221,
0.003567557083442807,
-0.011936677619814873,
-0.0178182665258646,
-0.030483637005090714,
0.009290829300880432,
0.036504022777080536,
0.015302542597055435,
-0.0012654525926336646,
0.05211886391043663,
-0.020542189478874207,
-0.023925403133034706,
-0.01374105829745531,
-0.0019757109694182873,
0.03622642904520035,
-0.03173282369971275,
-0.028297558426856995,
0.04233356565237045,
0.03698981925845146,
0.06343095004558563,
0.055519428104162216,
-0.0032552601769566536,
-0.030726533383131027,
-0.08348733931779861,
0.012795493006706238,
0.015181093476712704,
0.03279116377234459,
-0.010175670497119427,
-0.06922578811645508,
0.02291911467909813,
0.013454786501824856,
0.026892222464084625,
0.019518548622727394,
0.03685102239251137,
-0.014348302036523819,
0.021548477932810783,
0.02364780753850937,
0.05829539895057678,
0.013133814558386803,
0.029234448447823524,
-0.017957065254449844,
0.019778797402977943,
0.012526570819318295,
-0.0650271326303482,
0.04386034980416298,
-0.007959230802953243,
0.04729561507701874,
-0.0019008897943422198,
0.00833658967167139,
-0.031628724187612534,
-0.02520929090678692,
-0.03778791055083275,
-0.024966392666101456,
-0.05440904200077057,
0.014166128821671009,
-0.0024593372363597155,
-0.04535243287682533,
-0.0038408166728913784,
-0.03154197707772255,
-0.038169607520103455,
-0.0045283036306500435,
0.03615702688694,
0.02380395494401455,
0.03235741704702377,
-0.012127525173127651,
-0.002632835414260626,
0.011780529282987118,
-0.043513353914022446,
0.0062459358014166355,
0.00550856813788414,
-0.010297118686139584,
-0.013385387137532234,
-0.039835188537836075,
0.027915863320231438,
-0.026475828140974045,
0.03548038378357887,
0.000351604976458475,
-0.003298634896054864,
0.058330100029706955,
-0.035306885838508606,
0.012301023118197918,
-0.007074389606714249,
0.033120810985565186,
-0.03409240022301674,
0.04000869020819664,
-0.041500773280858994,
0.008700935170054436,
-0.007070052437484264,
-0.01621340773999691,
-0.039522893726825714,
-0.06384734064340591,
-0.001404251204803586,
-0.02422035112977028,
-0.034422047436237335,
-0.013723708689212799,
-0.004083714447915554,
-0.034161798655986786,
-0.048822399228811264,
0.011702454648911953,
0.027256568893790245,
0.01642160676419735,
0.013819132931530476,
0.014998920261859894,
-0.017289096489548683,
0.039522893726825714,
0.029442647472023964,
0.046219926327466965,
0.03230536729097366,
-0.038898300379514694,
-0.028644556179642677,
-0.027777064591646194,
0.01906745322048664,
0.0243244506418705,
0.0030991118401288986,
-0.01695077493786812,
0.05794840306043625,
0.06169596686959267,
0.017957065254449844,
0.05343744903802872,
0.01410540472716093,
-0.005270008463412523,
0.029477346688508987,
-0.029997840523719788,
-0.043166354298591614,
0.030882682651281357,
0.06447193771600723,
-0.000795380852650851,
0.024411199614405632,
-0.061140771955251694,
0.0697115808725357,
-0.03029278852045536,
0.03194102272391319,
-0.0528128556907177,
0.012179574929177761,
-0.022016923874616623,
-0.004413360729813576,
-0.07897638529539108,
-0.03270441293716431,
0.0034309271723031998,
-0.017471270635724068,
-0.05305575579404831,
-0.01917155273258686,
-0.03542833402752876,
-0.0032010420691221952,
0.02576448582112789,
0.07432663440704346,
-0.009212755598127842,
-0.0009309263550676405,
-0.003582738107070327,
0.020247241482138634,
0.004853612743318081,
0.06551292538642883,
-0.02739536762237549,
0.026631975546479225,
-0.00854912493377924,
-0.05222296342253685,
-0.06225115805864334,
-0.03381480276584625,
-0.023144662380218506,
-0.043270453810691833,
-0.019778797402977943,
0.033589255064725876,
-0.008813709020614624,
0.01574496366083622,
0.031611375510692596,
0.03513338789343834,
0.006644981447607279,
-0.026267629116773605,
0.10139235854148865,
-0.02800261229276657,
-0.011077861301600933,
0.05517243221402168,
0.040147487074136734,
-0.05794840306043625,
-0.0008929736213758588,
-0.05010628327727318,
0.0011776190949603915,
-0.04545653238892555,
-0.02406420186161995,
-0.03523748740553856,
-0.08196055889129639,
-0.029321199283003807,
-0.08709610253572464,
0.03601823002099991,
-0.025868583470582962,
0.013602260500192642,
0.01452180091291666,
-0.031628724187612534,
0.043201055377721786,
-0.027881164103746414,
-0.01776621676981449,
-0.04018218815326691,
0.025799185037612915,
-0.034161798655986786,
-0.024810245260596275,
-0.0016525705577805638,
0.007404036354273558,
0.06249405816197395,
0.0682888999581337,
-0.006224248558282852,
-0.032912611961364746,
0.012127525173127651,
-0.03487314283847809,
0.01322056446224451,
-0.023561058565974236,
-0.010461942292749882,
0.04837130382657051,
-0.04122317582368851,
-0.02583388425409794,
0.020281940698623657,
-0.048614200204610825,
-0.04639342427253723,
0.009108656086027622,
0.0005617004935629666,
0.059787485748529434,
-0.007976580411195755,
-0.034265898168087006,
0.012812843546271324,
-0.012934291735291481,
0.014192153699696064,
-0.059475187212228775,
-0.06565172225236893,
0.0868879035115242,
-0.021080033853650093,
-0.015536765567958355,
-0.019466498866677284,
0.01130340900272131,
-0.045283034443855286,
-0.043929748237133026,
-0.05454783886671066,
0.05971808731555939,
0.011112560518085957,
-0.05694211274385452,
-0.023109963163733482,
0.023630456998944283,
-0.03792671114206314,
0.01646498031914234,
0.032183919101953506,
-0.014842771925032139,
-0.019345050677657127,
0.01969204656779766,
-0.07012797892093658,
0.035410985350608826,
-0.005361095070838928,
-0.037440914660692215,
0.03695511817932129,
-0.00256560486741364,
0.02961614541709423,
0.040320985019207,
0.01309911534190178,
0.025851234793663025,
0.02795056253671646,
0.03574063256382942,
-0.046324022114276886,
-0.025504237040877342,
0.01569291390478611,
-0.055415328592061996,
-0.016126658767461777,
-0.0163261815905571,
-0.02562568709254265,
-0.007009327877312899,
0.004827587865293026,
-0.015354592353105545,
0.05315985158085823,
0.005256996024399996,
-0.03024073876440525,
-0.03497723862528801,
0.006306660361588001,
-0.02073303610086441,
0.04333985596895218,
-0.016976799815893173,
-0.005751465912908316,
-0.024203000590205193,
0.00696161575615406,
0.01491217128932476,
-0.059162892401218414,
-0.04261116310954094,
0.049551092088222504,
0.009360228665173054,
0.02219042181968689,
0.07467363029718399,
0.10895688086748123,
0.037545014172792435,
-0.027551516890525818,
-0.01008024625480175,
-0.024983743205666542,
-0.0005665800999850035,
0.0053654322400689125,
0.0021405343431979418,
0.019084803760051727,
-0.002087400294840336,
-0.033693354576826096,
0.011971376836299896,
-0.015571464784443378,
-0.03896769881248474,
-0.09965737164020538,
0.015875086188316345,
-0.044484943151474,
0.05545002967119217,
-0.058330100029706955,
0.007868143729865551,
-0.027447417378425598,
0.0041335951536893845,
-0.010140970349311829,
-0.007811757270246744,
0.01927565224468708,
-0.05222296342253685,
-0.00037193679600022733,
0.036399926990270615,
0.008566474542021751,
0.01735849678516388,
-0.014174804091453552,
-0.01317718904465437,
-0.032288018614053726,
0.02541748806834221,
-0.01885925605893135,
0.022225121036171913,
0.04042508453130722,
0.03298201039433479,
-0.02463674731552601,
-0.03605292737483978,
0.010869663208723068,
-0.004283237271010876,
-0.011763178743422031,
-0.02909565158188343,
-0.04615052416920662,
-0.04958578944206238,
-0.03034483827650547,
0.033381056040525436,
0.034890491515398026,
0.018252011388540268,
-0.025348089635372162,
0.023318160325288773,
0.0714118629693985,
-0.0015116032445803285,
-0.0026350042317062616,
-0.011468231678009033,
0.005074822809547186,
-0.0439644493162632,
-0.029945792630314827,
-0.03581003099679947,
-0.028245508670806885,
-0.01509434450417757,
-0.0003513338742777705,
-0.028297558426856995,
-0.03601823002099991,
-0.07953158020973206,
0.00935155339539051,
0.0196399986743927,
-0.04417264461517334,
-0.09778359532356262,
0.010349168442189693,
-0.01374105829745531,
0.0015126875368878245,
-0.003112124279141426,
0.0724528580904007,
0.025990033522248268,
0.017991764470934868,
-0.007993930019438267,
-0.016386905685067177,
-0.04042508453130722,
-0.027551516890525818,
-0.0024853618815541267,
-0.04101497679948807,
0.03882890194654465,
-0.002973325550556183,
-0.06939928978681564,
0.004862287547439337,
-0.01870310679078102,
-0.056664515286684036,
0.02826285921037197,
-0.05284755676984787,
0.07522882521152496,
0.0070180026814341545,
-0.0330340601503849,
0.018980704247951508,
0.044658441096544266,
-0.01247452199459076,
-0.06527002900838852,
-0.003853829111903906,
0.051320772618055344,
0.033953599631786346,
-0.006284972652792931,
0.03140317648649216,
-0.041188474744558334,
-0.004602040164172649,
0.040563881397247314,
-0.005408806726336479,
0.02810671180486679,
-0.04212536662817001,
-0.043929748237133026,
-0.018841905519366264,
0.015319892205297947,
-0.06384734064340591,
0.02104533277451992,
-0.055623527616262436,
0.05569292604923248,
-0.03112557902932167,
-0.032097168266773224,
0.04132727533578873,
0.04365215077996254,
-0.013723708689212799,
-0.02281501516699791,
-0.036608122289180756,
0.025174591690301895,
-0.012925617396831512,
0.029026251286268234,
0.030431587249040604,
-0.0028887453954666853,
0.02078508585691452,
-0.022051623091101646,
-0.041292574256658554,
0.024497948586940765,
-0.036399926990270615,
-0.03249621391296387,
-0.0009574932628311217,
0.047365013509988785,
0.03424854949116707,
0.06180006265640259,
0.005270008463412523,
0.023422259837388992,
-0.035150740295648575,
0.009620475582778454,
0.0398004911839962,
0.012986341491341591,
0.04937759041786194,
0.014174804091453552,
0.0006186295649968088,
0.03591413050889969,
-0.04333985596895218,
0.0002992844092659652,
0.045387133955955505,
-0.02265886776149273,
-0.03322490677237511,
0.0754370242357254,
-0.03643462434411049,
-0.00689655402675271,
-0.021010633558034897,
0.013463461771607399,
-0.010956412181258202,
0.011086535640060902,
-0.04021688550710678,
0.03249621391296387,
0.03664282336831093,
0.03260031342506409
] |
723,024
|
varint
|
_read_one
|
Read a byte from the file (as an integer)
raises EOFError if the stream ends while reading bytes.
|
def _read_one(stream):
"""Read a byte from the file (as an integer)
raises EOFError if the stream ends while reading bytes.
"""
c = stream.read(1)
if c == '':
raise EOFError("Unexpected EOF while reading bytes")
return ord(c)
|
(stream)
|
[
-0.03067455068230629,
-0.012643727473914623,
0.014965140260756016,
0.057663194835186005,
0.007540162652730942,
0.011491880752146244,
0.03519333153963089,
0.0637945607304573,
0.041643671691417694,
-0.07265491783618927,
0.04153734818100929,
0.03845394402742386,
-0.020201610401272774,
0.014593005180358887,
-0.015603085979819298,
0.026740552857518196,
-0.019297854974865913,
0.05521773546934128,
0.007659777533262968,
0.06911077350378036,
-0.02153066359460354,
-0.020804114639759064,
0.00259829917922616,
0.005125715862959623,
-0.024490023031830788,
0.035423699766397476,
0.02138889767229557,
-0.010561543516814709,
-0.008381896652281284,
-0.060675714164972305,
0.0013567418791353703,
-0.05241786316037178,
-0.038631148636341095,
0.013396857306361198,
-0.015390437096357346,
0.04306132718920708,
0.010402057319879532,
0.035724952816963196,
-0.03425413370132446,
0.04603840783238411,
-0.0316314697265625,
0.018606746569275856,
-0.0033337087370455265,
-0.017933359369635582,
-0.054650671780109406,
-0.024968482553958893,
-0.04603840783238411,
-0.02590767852962017,
-0.054402582347393036,
0.018943440169095993,
0.014389216899871826,
0.020006682723760605,
0.01237791683524847,
-0.021814195439219475,
0.04050954431295395,
-0.0027976571582257748,
-0.015177789144217968,
-0.00808507390320301,
-0.10320542007684708,
0.0818696841597557,
-0.021406618878245354,
-0.002822023117914796,
-0.018340935930609703,
-0.09150975197553635,
0.023125527426600456,
0.008612265810370445,
0.030284695327281952,
-0.03473259508609772,
-0.04745606333017349,
0.04727885499596596,
-0.0023634997196495533,
0.06631089746952057,
-0.07549022883176804,
0.025819076225161552,
-0.019209250807762146,
0.024862157180905342,
0.012493100948631763,
0.03944630175828934,
-0.009356535039842129,
0.04373471438884735,
0.05305580794811249,
-0.00901541206985712,
0.09632978588342667,
0.028831597417593002,
0.018110565841197968,
-0.02059146575629711,
0.06482236087322235,
0.021211691200733185,
-0.048519305884838104,
0.03398832306265831,
0.035618629306554794,
-0.003477689577266574,
-0.02705952525138855,
-0.022257212549448013,
0.09023386240005493,
-0.013538623228669167,
0.015257531777024269,
0.04483339935541153,
-0.04093484207987785,
-0.04334485903382301,
-0.05305580794811249,
0.07648258656263351,
0.04065131023526192,
-0.06209336966276169,
-0.013308254070580006,
-0.008124945685267448,
0.05844290554523468,
0.026138048619031906,
-0.01298042107373476,
-0.062483225017786026,
-0.002556212479248643,
-0.06946519017219543,
-0.08357087522745132,
0.008399616926908493,
-0.024436861276626587,
-0.027325335890054703,
0.06064027175307274,
0.06549574434757233,
-0.012191848829388618,
0.02861894853413105,
0.05698980763554573,
0.049015484750270844,
0.016400517895817757,
0.0006866775220260024,
0.06383000314235687,
0.03425413370132446,
-0.0077217998914420605,
0.0047491504810750484,
0.019138367846608162,
0.061278220266103745,
0.015514482744038105,
-0.006844624411314726,
0.03148970380425453,
0.006166807375848293,
-0.046321939677000046,
0.025588706135749817,
0.01174883171916008,
0.04210440814495087,
-0.015842314809560776,
-0.024277374148368835,
0.051744475960731506,
-0.018447259441018105,
0.050929322838783264,
-0.03251750394701958,
-0.000031115076126297936,
0.04338030144572258,
0.006095924414694309,
-0.030444180592894554,
-0.03407692536711693,
0.05989600345492363,
0.011846295557916164,
-0.0011058831587433815,
0.0045187813229858875,
0.08640618622303009,
0.030851757153868675,
-0.012431078590452671,
-0.014309474267065525,
-0.007938878610730171,
-0.04061586782336235,
-0.0239938423037529,
-0.027183569967746735,
0.07471051812171936,
0.017197949811816216,
-0.01586889661848545,
-0.009143887087702751,
-0.01458414550870657,
-0.08718589693307877,
0.011465299874544144,
0.03538826107978821,
-0.06634633988142014,
-0.0015206584939733148,
0.03972983360290527,
0.02459634654223919,
-0.006631975993514061,
0.05759231001138687,
0.0012005781754851341,
0.011979200877249241,
0.03439589962363243,
0.0478813610970974,
-0.003942857962101698,
-0.030001163482666016,
-0.021016763523221016,
-0.002857464598491788,
-0.009498300962150097,
0.07761671394109726,
0.05642274394631386,
0.039836157113313675,
-0.006756021175533533,
0.015399297699332237,
-0.03980071842670441,
0.033669352531433105,
0.03817041218280792,
-0.057521428912878036,
0.0033625049982219934,
0.03508700802922249,
-0.026581065729260445,
0.02966446988284588,
-0.008855924941599369,
0.014530982822179794,
-0.013290532864630222,
-0.03253522515296936,
0.023267293348908424,
0.011642507277429104,
0.005054832901805639,
-0.03902100399136543,
0.02736077830195427,
0.013919617980718613,
0.07782936096191406,
-0.06794120371341705,
0.028778433799743652,
-0.04160822927951813,
-0.02043198049068451,
-0.02218632958829403,
0.01938645727932453,
0.005852264817804098,
-0.07619905471801758,
-0.04153734818100929,
-0.07754582911729813,
0.03515788912773132,
0.029646748676896095,
0.04153734818100929,
0.04763327166438103,
-0.00023452253662981093,
-0.0008517016540281475,
0.06258954852819443,
-0.02213316783308983,
-0.03248206153512001,
-0.013937339186668396,
-0.00681361323222518,
0.042706914246082306,
-0.0025362768210470676,
-0.015151208266615868,
0.032606109976768494,
0.026439299806952477,
0.037532467395067215,
-0.005714929196983576,
-0.016391657292842865,
0.004310562741011381,
-0.12177672237157822,
-0.021761033684015274,
-0.03444906324148178,
-0.023019203916192055,
0.009400837123394012,
0.045116931200027466,
-0.031861837953329086,
-0.04979519918560982,
0.05046858638525009,
0.012546263635158539,
-0.07357639074325562,
-0.011917178519070148,
0.03799320384860039,
-0.004549792502075434,
0.014398077502846718,
-0.046073850244283676,
0.02791011892259121,
-0.0272190123796463,
-0.010960259474813938,
-0.055997446179389954,
-0.011234930716454983,
0.010526102036237717,
-0.02273567207157612,
-0.00886478554457426,
0.04859019070863724,
-0.022505301982164383,
-0.06344014406204224,
0.004629535600543022,
0.009799553081393242,
0.006268701516091824,
0.06106556951999664,
0.02218632958829403,
0.03848938271403313,
-0.06719693541526794,
-0.021477501839399338,
-0.01736629754304886,
-0.00841290783137083,
-0.07159167528152466,
0.042246174067258835,
0.05805305019021034,
0.08633530139923096,
0.0021530664525926113,
0.010490660555660725,
0.04412456974387169,
-0.01114632748067379,
0.007859135046601295,
-0.0315251462161541,
0.010109665803611279,
-0.0027976571582257748,
-0.061136454343795776,
-0.05858467146754265,
0.03242890164256096,
0.06269587576389313,
-0.003114414867013693,
-0.041289255023002625,
-0.0315251462161541,
0.022664789110422134,
0.007181318011134863,
-0.049228135496377945,
-0.006565523333847523,
0.02610260806977749,
-0.0028530345298349857,
-0.03444906324148178,
0.003397946245968342,
-0.038737475872039795,
-0.0075933244079351425,
-0.047420620918273926,
-0.03941085934638977,
0.021778753027319908,
-0.061384543776512146,
-0.001089269993826747,
0.012475380674004555,
-0.000003599519459385192,
0.022026844322681427,
-0.02068006992340088,
-0.009090724401175976,
-0.04263602942228317,
-0.0010150644229725003,
-0.013334834948182106,
0.05596200376749039,
0.012218430638313293,
0.011190628632903099,
0.01832321472465992,
0.01763210818171501,
0.038276735693216324,
-0.0332440547645092,
0.00703069195151329,
0.028548065572977066,
-0.021601546555757523,
-0.015496761538088322,
0.02815821021795273,
0.044301778078079224,
-0.03473259508609772,
-0.0301252081990242,
-0.0068357642740011215,
-0.030958082526922226,
-0.012741191312670708,
-0.009347675368189812,
0.0030856188386678696,
0.027148129418492317,
-0.016179008409380913,
-0.03505156561732292,
0.055005088448524475,
-0.026297535747289658,
0.10816721618175507,
-0.009631206281483173,
0.030709991231560707,
0.009578044526278973,
-0.006649696733802557,
-0.021158529445528984,
0.013334834948182106,
-0.03987159952521324,
-0.005564303137362003,
-0.02264706790447235,
-0.006140226498246193,
-0.035530027002096176,
-0.017543504014611244,
0.054296258836984634,
0.0041643669828772545,
-0.008824913762509823,
0.06088836118578911,
-0.014849956147372723,
-0.007371815852820873,
-0.02018388919532299,
-0.01761438697576523,
-0.020573744550347328,
-0.005006100982427597,
-0.005395956337451935,
-0.05206345021724701,
0.016303054988384247,
-0.0020168384071439505,
0.034661710262298584,
-0.049228135496377945,
0.023107806220650673,
-0.0721941739320755,
-0.045365020632743835,
0.0015239811036735773,
-0.020910438150167465,
0.025393778458237648,
0.029079686850309372,
-0.00290619651786983,
-0.005280771758407354,
-0.007212329190224409,
-0.016754932701587677,
-0.06755135208368301,
0.06414896994829178,
-0.04036777839064598,
-0.03455538675189018,
-0.08023937791585922,
-0.02410016767680645,
-0.0361502505838871,
0.04986608028411865,
-0.01461072638630867,
0.004939648322761059,
0.04859019070863724,
-0.057025246322155,
0.035122450441122055,
0.057556867599487305,
0.021247131749987602,
-0.01671062968671322,
0.02620893158018589,
-0.002096581505611539,
-0.026492463424801826,
0.06421985477209091,
-0.008155956864356995,
0.023905238136649132,
0.02626209333539009,
0.02766202948987484,
0.0016380582237616181,
-0.0745687484741211,
-0.021176248788833618,
-0.022717950865626335,
-0.03760334849357605,
-0.002321413019672036,
0.039836157113313675,
-0.028175929561257362,
-0.006184528116136789,
-0.04217529296875,
-0.03083403781056404,
-0.017330855131149292,
0.01857130415737629,
-0.009205909445881844,
-0.012333614751696587,
0.021123087033629417,
0.006999680772423744,
0.003455538535490632,
0.015470180660486221,
-0.044904280453920364,
0.0423879399895668,
0.03990704193711281,
-0.019971240311861038,
0.048873722553253174,
-0.008293292485177517,
-0.016657467931509018,
0.012298173271119595,
-0.03976527601480484,
-0.032606109976768494,
-0.0038963414262980223,
-0.00509470421820879,
-0.022824276238679886,
0.04256514832377434,
0.04398280382156372,
0.060427624732255936,
0.08229497820138931,
0.010703309439122677,
-0.016001801937818527,
-0.04210440814495087,
-0.02073323167860508,
0.026722831651568413,
0.046570029109716415,
0.02013072744011879,
-0.047562386840581894,
-0.05245330557227135,
-0.08924149721860886,
0.014628446660935879,
-0.042706914246082306,
0.04036777839064598,
-0.03760334849357605,
-0.05408360809087753,
0.046924442052841187,
0.005099134519696236,
-0.03710716962814331,
-0.03746158257126808,
0.017481481656432152,
-0.0271658506244421,
-0.11022282391786575,
-0.0105172423645854,
-0.04267147183418274,
-0.017215671017766,
0.04281323775649071,
0.010889376513659954,
0.029239172115921974,
0.002299262210726738,
-0.0032739012967795134,
-0.005325073841959238,
0.011562763713300228,
0.011713390238583088,
-0.004348219372332096,
0.03785143792629242,
0.015222090296447277,
0.005599744617938995,
0.007500290870666504,
0.017791593447327614,
-0.02635069750249386,
0.016303054988384247,
-0.02615576982498169,
-0.0044478983618319035,
-0.008740740828216076,
-0.027786074206233025,
-0.002884045708924532,
0.04093484207987785,
0.006645266432315111,
0.04678267613053322,
0.04554222896695137,
-0.04823577404022217,
-0.03499840572476387,
0.018340935930609703,
0.020945880562067032,
0.013237371109426022,
0.01422973070293665,
-0.007836984470486641,
-0.006769311614334583,
-0.05397728458046913,
-0.022221772000193596,
-0.020609186962246895,
-0.04213985055685043,
0.003834318835288286,
-0.01832321472465992,
-0.014495541341602802,
-0.06822473555803299,
0.030763154849410057,
-0.020254772156476974,
-0.014628446660935879,
0.05727333948016167,
0.017038462683558464,
0.013122186064720154,
0.007159167435020208,
0.03629201650619507,
0.02902652509510517,
0.02815821021795273,
0.007212329190224409,
0.049936965107917786,
0.012209570035338402,
-0.008076214231550694,
0.012555123306810856,
0.07077652215957642,
-0.029132848605513573,
-0.029434101656079292,
-0.011128606274724007,
-0.06818929314613342,
-0.027502544224262238,
0.0010455219307914376,
0.015257531777024269,
-0.05557214841246605,
-0.029310055077075958,
-0.0358312763273716,
-0.03026697412133217,
-0.06251867115497589,
0.017561225220561028,
0.016241030767560005,
-0.03218081220984459,
-0.013680389150977135,
-0.0052763414569199085,
-0.021406618878245354,
0.015700550749897957,
0.008554672822356224,
0.016480261459946632,
0.006778171751648188,
-0.052488744258880615,
-0.0010942538501694798,
0.023834357038140297,
-0.001492969924584031,
-0.05071667581796646,
-0.068862684071064,
-0.033616188913583755,
-0.00876289140433073,
0.024135608226060867,
-0.010783053003251553,
-0.03395288065075874,
0.05227609723806381,
-0.02153066359460354,
0.008359745144844055,
0.050185054540634155,
-0.02982395701110363,
-0.027077246457338333,
-0.004957369063049555,
-0.058974526822566986,
-0.03972983360290527,
-0.005014961119741201,
-0.0663817822933197,
0.035317376255989075,
-0.015638526529073715,
-0.038134969770908356,
0.04451442509889603,
-0.0061978185549378395,
0.010561543516814709,
0.06205793097615242,
0.016241030767560005,
-0.05149638652801514,
-0.0008217979921028018,
0.02319641038775444,
-0.01637393608689308,
-0.018287774175405502,
-0.06822473555803299,
-0.0182346124202013,
-0.013485461473464966,
0.03770967200398445,
0.004625105764716864,
0.011385557241737843,
-0.039233654737472534,
0.019563665613532066,
-0.01712706685066223,
-0.014734771102666855,
-0.10377248376607895,
0.01596636138856411,
-0.005546582397073507,
0.015346135944128036,
0.04703076556324959,
0.012324754148721695,
-0.024064725264906883,
-0.0105969849973917,
0.009613486006855965,
-0.03276559337973595,
-0.01727769337594509,
0.028778433799743652,
-0.0030080906581133604,
0.05337478220462799,
0.03347442299127579,
-0.019049763679504395,
0.014504401944577694,
0.009259071201086044,
0.01676379330456257,
0.016276473179459572,
-0.031755514442920685,
0.013574064709246159,
0.010588124394416809,
-0.009950179606676102,
0.03329721465706825,
0.01298042107373476,
-0.061171893030405045,
-0.050539467483758926,
0.03930453583598137,
-0.05773407593369484,
0.04026145488023758,
-0.025269733741879463,
-0.034962963312864304,
-0.004979519639164209,
0.07070563733577728,
-0.0038387489039450884,
0.04926357790827751,
-0.01566510833799839,
0.006614255253225565,
0.005604174919426441,
0.0074914307333528996,
-0.015514482744038105,
0.023285014554858208,
0.02766202948987484,
-0.022558465600013733,
-0.013538623228669167,
0.019918078556656837,
0.001763210748322308,
0.08619353920221329,
0.05014961212873459,
0.027697471901774406,
-0.0017953295027837157,
-0.010579264722764492,
0.01214754767715931,
-0.030107486993074417,
0.02695320174098015,
0.033811114728450775,
0.021548384800553322,
-0.014530982822179794,
0.030763154849410057,
0.05596200376749039,
0.017197949811816216,
0.025376057252287865,
-0.0030191661790013313,
-0.08229497820138931,
0.10873427987098694,
0.005763661116361618,
0.007371815852820873,
-0.02484443597495556,
0.05337478220462799,
-0.03244662284851074,
0.01159820519387722,
-0.013706970028579235,
-0.01671949028968811,
-0.0544380247592926,
-0.015071464702486992,
0.003455538535490632,
-0.004811172839254141,
-0.05567847192287445,
-0.03965895250439644,
0.04001336544752121,
-0.00173219945281744,
-0.03799320384860039,
0.02048514224588871,
0.0024764693807810545,
0.047066207975149155,
0.015098045580089092,
0.0628376379609108,
0.05617465451359749,
-0.027148129418492317,
0.015160067938268185,
0.006547802593559027,
-0.003761220956221223,
-0.027094967663288116,
-0.022771114483475685,
-0.023320455104112625,
-0.023373616859316826,
0.017747292295098305,
-0.007478139828890562,
-0.0003283869300503284,
0.000002206436192864203,
-0.033917441964149475,
0.029841676354408264,
-0.05900996923446655,
-0.0006645266548730433,
-0.03606164827942848,
0.03770967200398445,
-0.0513191781938076,
0.027130408212542534,
0.021229412406682968,
-0.07336374372243881,
0.06475147604942322,
0.011660227552056313,
-0.014043663628399372,
-0.0173751562833786,
-0.061384543776512146,
0.028494903817772865,
0.031117567792534828,
-0.02355082519352436,
-0.030196091160178185,
0.01142099779099226,
-0.06095924600958824,
0.010588124394416809,
0.016586584970355034,
0.09342359006404877,
-0.05794672295451164,
0.07226505875587463,
-0.017392877489328384,
0.04866107180714607,
-0.05698980763554573,
-0.02962902933359146,
0.00009407205652678385,
0.09852715581655502,
-0.018996601924300194,
-0.03508700802922249,
0.0055775935761630535,
0.025570986792445183,
-0.017392877489328384,
0.01968771032989025,
0.01325509138405323,
-0.05270139500498772,
-0.0044279624707996845,
-0.01262600626796484,
-0.031347937881946564,
0.027183569967746735,
0.010348895564675331,
-0.010136246681213379,
0.08243674784898758,
-0.022629348561167717,
-0.016294194385409355,
-0.01365380734205246,
-0.027679750695824623,
-0.04316765069961548,
0.02158382534980774,
-0.02971763163805008,
0.04338030144572258,
0.021955961361527443,
0.04362839087843895,
0.04564855247735977,
-0.02675827406346798,
0.0005665089702233672,
-0.008731880225241184,
0.048767395317554474,
0.01400822214782238,
-0.007664207369089127,
-0.072513148188591,
0.040793076157569885,
0.023320455104112625,
0.046073850244283676,
-0.03273015469312668,
-0.028494903817772865,
-0.027024084702134132,
0.039091888815164566,
0.003444463247433305,
0.016657467931509018,
-0.010800773277878761,
0.05457979068160057
] |
723,025
|
varint
|
decode_bytes
|
Read a varint from from `buf` bytes
|
def decode_bytes(buf):
"""Read a varint from from `buf` bytes"""
return decode_stream(BytesIO(buf))
|
(buf)
|
[
0.014148307032883167,
-0.011083412915468216,
-0.03100951761007309,
0.012963557615876198,
-0.020690182223916054,
0.019814498722553253,
0.03506170213222504,
0.0472525991499424,
0.005292737390846014,
-0.06140090525150299,
0.038049329072237015,
0.062362439930438995,
-0.03997240215539932,
0.008902788162231445,
-0.013478666543960571,
0.05683361366391182,
-0.01291204709559679,
0.04165508970618248,
0.0037624365650117397,
0.030717622488737106,
-0.061950355768203735,
0.016208739951252937,
-0.02838246524333954,
0.044608376920223236,
-0.027901697903871536,
-0.015582025051116943,
0.03301844000816345,
-0.06116051971912384,
-0.04776770621538162,
-0.011126338504254818,
-0.005945208016782999,
-0.03456376492977142,
0.011246530339121819,
0.036366645246744156,
-0.0690588504076004,
-0.023059679195284843,
0.009065905585885048,
0.04993116110563278,
-0.07108493894338608,
-0.031593307852745056,
-0.0022278432734310627,
-0.04941605404019356,
0.0030885033775120974,
-0.0197286456823349,
-0.0229909997433424,
-0.044780079275369644,
-0.00048210914246737957,
-0.0814557895064354,
-0.06854373961687088,
0.0256180502474308,
0.017419245094060898,
0.0009003663435578346,
0.012448449619114399,
0.00996734481304884,
0.05896272510290146,
0.005588924512267113,
-0.014285669662058353,
0.05879102274775505,
-0.03035704791545868,
0.060164645314216614,
-0.029807599261403084,
-0.0009229023125953972,
-0.05686795338988304,
-0.03839273750782013,
-0.017668213695287704,
0.044574033468961716,
0.01487804390490055,
-0.027197716757655144,
-0.0590314082801342,
-0.034340549260377884,
-0.026356372982263565,
0.028330953791737556,
-0.07184043526649475,
0.03056308999657631,
0.046325404196977615,
-0.020054882392287254,
0.008417727425694466,
-0.00974413100630045,
-0.04903830587863922,
0.05549433082342148,
0.06734181940555573,
0.009254778735339642,
0.06143524497747421,
0.057348720729351044,
0.012989313341677189,
-0.031112538650631905,
0.026957333087921143,
0.021136609837412834,
0.013324134051799774,
0.0021012125071138144,
0.009443651884794235,
-0.0025347620248794556,
-0.04429931193590164,
0.061057500541210175,
-0.01995185948908329,
-0.06298056989908218,
0.054738838225603104,
0.07012340426445007,
-0.07012340426445007,
-0.028279444202780724,
-0.029979301616549492,
0.03729384019970894,
-0.03169632703065872,
-0.04515782371163368,
-0.023111190646886826,
0.05655888840556145,
0.030202515423297882,
0.027644144371151924,
0.030494408681988716,
-0.03973201662302017,
0.05140780657529831,
0.010422357358038425,
-0.04333777725696564,
0.012070703320205212,
-0.06802862882614136,
0.013495836406946182,
0.03791197016835213,
0.0004509880091063678,
0.0006358367390930653,
0.015770897269248962,
-0.011031902395188808,
0.03319014236330986,
-0.014843703247606754,
0.03281239792704582,
0.026201840490102768,
0.03942295163869858,
-0.00844777561724186,
0.0065590450540184975,
0.031164050102233887,
0.023798001930117607,
-0.013504421338438988,
-0.03715647757053375,
-0.03253767266869545,
0.004751873668283224,
-0.015006820671260357,
0.041792452335357666,
0.04354381933808327,
0.01953977346420288,
-0.016397614032030106,
-0.039560314267873764,
0.02666543796658516,
0.06394210457801819,
0.05147648602724075,
-0.04553557187318802,
-0.024828217923641205,
-0.0002913581265602261,
0.015521928668022156,
-0.03123273141682148,
-0.06356436014175415,
0.031146880239248276,
-0.0525067038834095,
-0.0027472442016005516,
-0.026287691667675972,
0.09491728246212006,
0.0335678905248642,
0.03269220516085625,
-0.019179197028279305,
-0.05491054058074951,
0.021634547039866447,
-0.004730410873889923,
-0.00606539985165,
0.03449508175253868,
0.023591957986354828,
-0.02647656574845314,
0.016114303842186928,
0.03401431441307068,
-0.01031075045466423,
0.00704839825630188,
-0.020690182223916054,
-0.001850097207352519,
-0.024021215736865997,
0.0015142037300392985,
-0.001224455307237804,
-0.02860567905008793,
0.040041081607341766,
0.0048162625171244144,
0.0010328993666917086,
0.008018518798053265,
0.01801161840558052,
0.05508224293589592,
-0.024175748229026794,
0.006035351660102606,
-0.0072115156799554825,
-0.012388354167342186,
0.04642842337489128,
-0.0028094863519072533,
0.039182569831609726,
0.0369160920381546,
0.04124300181865692,
-0.06991735845804214,
0.0013983043609187007,
0.03561115264892578,
0.0318165197968483,
-0.020020540803670883,
0.007623602170497179,
-0.047149576246738434,
0.02101641707122326,
0.007894034497439861,
0.03281239792704582,
-0.041311681270599365,
0.034838490188121796,
0.0007951983716338873,
-0.005923745222389698,
-0.02493124082684517,
-0.061297882348299026,
0.028949083760380745,
-0.013264037668704987,
0.02599579654633999,
-0.021411333233118057,
-0.010139048099517822,
-0.025961456820368767,
-0.0009529502713121474,
0.0416894294321537,
-0.011401062831282616,
0.020896226167678833,
-0.03533642739057541,
-0.004412760958075523,
-0.028245102614164352,
0.06854373961687088,
0.019848838448524475,
0.08832389861345291,
-0.011890416033565998,
-0.043475136160850525,
-0.003867604536935687,
0.005812138319015503,
0.019144857302308083,
-0.04622238129377365,
-0.012972143478691578,
0.004962209612131119,
0.010740007273852825,
0.023488936945796013,
0.07019208371639252,
0.016680922359228134,
-0.006971132010221481,
0.06885280460119247,
0.048935286700725555,
0.021376993507146835,
0.015230034478008747,
-0.03746554255485535,
-0.005121034570038319,
-0.033482037484645844,
0.037843286991119385,
0.03257201239466667,
0.04687485098838806,
-0.0016655167564749718,
-0.002369498135522008,
0.06692973524332047,
0.019024664536118507,
-0.08880466222763062,
-0.022063804790377617,
0.009787056595087051,
-0.03969767689704895,
0.015667876228690147,
-0.011804564855992794,
0.03856443986296654,
0.0412086620926857,
0.016998572275042534,
-0.050446268171072006,
0.014139722101390362,
0.025497859343886375,
-0.004346225876361132,
-0.008937128819525242,
-0.017925767228007317,
0.0076150172390043736,
-0.03269220516085625,
-0.018320683389902115,
-0.014448787085711956,
-0.05470449849963188,
0.03543945029377937,
0.006430268287658691,
0.05786382779479027,
-0.018286343663930893,
0.02451915293931961,
-0.033516377210617065,
-0.01028499472886324,
-0.024553494527935982,
0.0515451654791832,
0.008731084875762463,
0.0814557895064354,
-0.01041377242654562,
-0.012010607868432999,
0.001287770690396428,
0.026819970458745956,
0.04440233111381531,
0.01551334373652935,
0.008834106847643852,
0.015994111075997353,
-0.02905210666358471,
-0.014869458973407745,
-0.030425727367401123,
0.038530100136995316,
-0.03825537487864494,
0.0045630005188286304,
-0.001790001173503697,
0.0042131561785936356,
0.0577608086168766,
-0.022887976840138435,
0.0399380624294281,
-0.014740681275725365,
0.021565865725278854,
-0.015590609982609749,
-0.01517852395772934,
-0.00955525878816843,
0.03760290518403053,
-0.004097256809473038,
-0.0011643592733889818,
-0.01724754087626934,
-0.06256848573684692,
-0.012766099534928799,
-0.018475215882062912,
0.023540448397397995,
0.007464777212589979,
0.015796653926372528,
-0.016766773536801338,
-0.054944880306720734,
-0.02275061421096325,
-0.003457664279267192,
0.020020540803670883,
-0.006104032974690199,
0.0184580460190773,
0.03540510684251785,
-0.06188167259097099,
0.025051431730389595,
-0.012723173946142197,
0.010422357358038425,
0.03252050280570984,
-0.033688079565763474,
-0.030528750270605087,
0.05339955538511276,
0.0377059243619442,
-0.022613253444433212,
0.020278096199035645,
-0.022853637114167213,
-0.03825537487864494,
0.08811785280704498,
-0.050617970526218414,
-0.04148338735103607,
-0.00021006759197916836,
-0.024845387786626816,
-0.028039060533046722,
0.0292753204703331,
-0.10467000305652618,
0.049141328781843185,
0.036126259714365005,
0.048488859087228775,
0.00008162588346749544,
-0.05624982342123985,
-0.020329605787992477,
0.04756166413426399,
0.04611935839056969,
-0.010594059713184834,
-0.04381854459643364,
-0.002448910614475608,
0.02453632466495037,
-0.046085018664598465,
0.05724569782614708,
0.04275398701429367,
0.009598184376955032,
0.022681934759020805,
-0.032400310039520264,
-0.06854373961687088,
0.022183995693922043,
0.025978626683354378,
-0.036297962069511414,
-0.031782180070877075,
-0.020724521949887276,
-0.02427876926958561,
-0.03499302268028259,
0.029344001784920692,
0.07218383997678757,
-0.05078967660665512,
0.03360223025083542,
-0.061091840267181396,
0.024570664390921593,
-0.050205886363983154,
-0.036950431764125824,
-0.049553416669368744,
0.014199817553162575,
0.022458720952272415,
0.0021666742395609617,
0.00041933031752705574,
-0.01605420745909214,
-0.04062487185001373,
0.013796316459774971,
0.01355593279004097,
0.02214965596795082,
-0.08997224271297455,
-0.011126338504254818,
-0.05157950893044472,
0.04234189912676811,
-0.008203099481761456,
0.017402073368430138,
0.0464627668261528,
-0.0062886131927371025,
0.020913396030664444,
-0.04223887622356415,
-0.03209124505519867,
-0.022252677008509636,
0.06517836451530457,
-0.004781921859830618,
-0.06717012077569962,
0.07328273355960846,
-0.0179772786796093,
0.030975177884101868,
0.027249228209257126,
0.021771909669041634,
0.014010944403707981,
-0.0257725827395916,
-0.0585506409406662,
-0.05082401633262634,
0.02431311085820198,
0.0303913876414299,
0.02994496002793312,
-0.06394210457801819,
0.013161016628146172,
-0.01974581740796566,
-0.0028266566805541515,
-0.013401400297880173,
0.0172647126019001,
-0.02014073356986046,
-0.011924756690859795,
0.025944286957383156,
0.04340645670890808,
-0.01008753664791584,
-0.02060433104634285,
-0.0027751456946134567,
-0.020947735756635666,
0.04302871227264404,
0.020329605787992477,
0.026819970458745956,
0.012285332195460796,
-0.008692451752722263,
0.04670314863324165,
-0.07802173495292664,
-0.001172944437712431,
0.013264037668704987,
-0.032211437821388245,
0.009177512489259243,
0.0297560878098011,
0.03530208766460419,
0.04316607117652893,
0.08571401238441467,
0.07390086352825165,
0.0041916933842003345,
-0.015573440119624138,
0.014869458973407745,
-0.009804227389395237,
0.08454643934965134,
-0.05233500152826309,
-0.03557680919766426,
-0.016964232549071312,
-0.06023332476615906,
-0.0032945466227829456,
-0.047389961779117584,
0.015607780776917934,
-0.035473790019750595,
0.015556269325315952,
0.049003966152668,
-0.023162702098488808,
-0.02992779016494751,
-0.033928465098142624,
-0.03343052789568901,
-0.06847506016492844,
-0.11723864078521729,
-0.004807677119970322,
-0.010465282946825027,
-0.003283815225586295,
0.01075717806816101,
0.02795320935547352,
0.009709791280329227,
-0.03712213411927223,
0.02604730799794197,
0.026819970458745956,
0.014843703247606754,
0.06861241906881332,
0.011349552311003208,
0.06397644430398941,
0.0014841556549072266,
-0.05676493048667908,
-0.01498106587678194,
0.004627389367669821,
-0.029326830059289932,
-0.004957917146384716,
-0.029653066769242287,
-0.01756519265472889,
-0.008215976879000664,
-0.01700715720653534,
0.01928221993148327,
0.03140443563461304,
0.00736604817211628,
-0.023128360509872437,
0.049347370862960815,
-0.046771831810474396,
-0.01711876504123211,
0.05892838537693024,
-0.0012931363889947534,
0.02515445277094841,
0.013933678157627583,
-0.022510230541229248,
-0.0359545573592186,
-0.07390086352825165,
-0.013736220076680183,
-0.030511580407619476,
-0.07060417532920837,
-0.04776770621538162,
-0.057348720729351044,
-0.005936622619628906,
-0.01128945592790842,
0.04982813820242882,
0.014148307032883167,
-0.00888561736792326,
0.0671357810497284,
-0.0003986723313573748,
-0.012070703320205212,
-0.008701036684215069,
0.01704149879515171,
-0.01050820853561163,
0.023746490478515625,
-0.047183915972709656,
0.012517130933701992,
0.0020132148638367653,
0.019453922286629677,
0.036538347601890564,
0.00255193212069571,
0.05339955538511276,
-0.04756166413426399,
-0.07905194908380508,
-0.06431984901428223,
-0.02968740649521351,
0.01616581529378891,
-0.015058331191539764,
-0.035645492374897,
0.04591331630945206,
-0.057177018374204636,
0.0434407964348793,
-0.03463244438171387,
0.035164725035429,
0.00900580920279026,
-0.08921675384044647,
-0.019436752423644066,
0.0011117752874270082,
0.007855401374399662,
0.004451394081115723,
0.02106792852282524,
0.009838568046689034,
0.0714283436536789,
-0.07115361839532852,
0.03540510684251785,
0.03557680919766426,
0.008460653014481068,
-0.02539483830332756,
-0.04450535401701927,
-0.002858850872144103,
-0.01637185737490654,
-0.02688865177333355,
-0.050446268171072006,
-0.03619493916630745,
0.036091919988393784,
-0.019024664536118507,
-0.00040376975084654987,
0.05363994091749191,
0.006146958563476801,
0.004957917146384716,
0.021085098385810852,
-0.05841327831149101,
0.016509220004081726,
-0.012302502058446407,
-0.061709970235824585,
-0.005593217443674803,
-0.02948136255145073,
0.04302871227264404,
-0.015968356281518936,
0.029550043866038322,
0.0824173241853714,
0.05655888840556145,
0.01888730376958847,
-0.036332301795482635,
-0.05178555101156235,
0.07362613826990128,
0.02494841068983078,
0.0007313464302569628,
-0.00438271276652813,
-0.05078967660665512,
-0.0399380624294281,
-0.0008719280594959855,
0.05271274596452713,
0.07403822988271713,
-0.011195019818842411,
0.053262196481227875,
-0.037225157022476196,
0.024141406640410423,
0.021840590983629227,
0.012499960139393806,
0.022269846871495247,
0.01820049248635769,
0.018595408648252487,
-0.03143877536058426,
0.04117432236671448,
-0.018698429688811302,
-0.050205886363983154,
-0.014766437001526356,
-0.025532199069857597,
0.03246898949146271,
-0.016981402412056923,
0.05549433082342148,
0.006679237354546785,
-0.022183995693922043,
-0.00514249736443162,
0.019471092149615288,
0.038736142218112946,
0.003846141742542386,
-0.06833769381046295,
0.047149576246738434,
0.0399380624294281,
0.003442640183493495,
0.01775406487286091,
0.019041836261749268,
-0.03969767689704895,
-0.07101625949144363,
0.003998527768999338,
-0.018045959994196892,
0.0690588504076004,
-0.017719725146889687,
-0.0118131497874856,
0.010885954834520817,
0.06325529515743256,
-0.0014991796342656016,
0.0066062635742127895,
-0.034134507179260254,
-0.029807599261403084,
0.0007619310053996742,
0.047218259423971176,
0.04508914425969124,
0.02189210057258606,
-0.00846494548022747,
-0.006511826999485493,
0.019453922286629677,
-0.02539483830332756,
0.018509557470679283,
0.01953977346420288,
0.03756856173276901,
0.005030890926718712,
-0.03037421777844429,
-0.016680922359228134,
0.02906927652657032,
-0.03334467485547066,
0.005541706457734108,
0.017839916050434113,
-0.023609129711985588,
0.01333271898329258,
0.028914744034409523,
0.0028116325847804546,
-0.001172944437712431,
0.010465282946825027,
-0.02774716541171074,
0.022407209500670433,
0.0828980877995491,
0.004163791891187429,
0.03033987618982792,
0.042822666466236115,
0.02213248610496521,
-0.025652391836047173,
-0.028536997735500336,
-0.007735209073871374,
0.0038568731397390366,
-0.009890078566968441,
-0.021325482055544853,
0.0188529621809721,
0.048935286700725555,
-0.06552176922559738,
0.04419628903269768,
0.016002696007490158,
-0.005468732677400112,
-0.04076223447918892,
-0.013933678157627583,
-0.018973154947161674,
-0.009314874187111855,
-0.02280212566256523,
0.09285684674978256,
-0.030889324843883514,
-0.017084423452615738,
-0.022183995693922043,
0.01019055861979723,
-0.041792452335357666,
-0.011864660307765007,
0.011864660307765007,
-0.025085773319005966,
0.002805193653330207,
-0.0038611656054854393,
-0.04289134964346886,
0.00031523552024737,
0.04484875872731209,
-0.03315580263733864,
0.017719725146889687,
-0.039628997445106506,
0.0029489947482943535,
0.002427447820082307,
-0.02106792852282524,
0.015745142474770546,
0.012062118388712406,
-0.015281544998288155,
-0.12307653576135635,
0.03859877958893776,
0.023574788123369217,
-0.021823421120643616,
0.004086525645107031,
-0.03137009218335152,
-0.035233404487371445,
-0.02345459721982479,
-0.0016783943865448236,
-0.04560425132513046,
-0.008722499944269657,
-0.05532262846827507,
-0.05724569782614708,
0.04096827656030655,
0.08976619690656662,
-0.0768541544675827,
0.0232313834130764,
-0.01887013204395771,
0.04313173145055771,
-0.007383218500763178,
0.013693294487893581,
0.01775406487286091,
0.08324149250984192,
0.010868784040212631,
-0.026098819449543953,
-0.02280212566256523,
0.08859862387180328,
0.014895213767886162,
-0.0004284520400688052,
0.05858498066663742,
-0.0555286705493927,
-0.032675035297870636,
-0.0914832279086113,
-0.09038432687520981,
0.04028146713972092,
-0.013787731528282166,
-0.00666635949164629,
0.030751964077353477,
-0.018955985084176064,
-0.02429593913257122,
0.02345459721982479,
-0.031971052289009094,
0.0572800375521183,
-0.011340967379510403,
-0.02541200816631317,
0.03688175231218338,
-0.0022321357391774654,
0.016826869919896126,
-0.021136609837412834,
0.014148307032883167,
0.03269220516085625,
-0.03174784034490585,
0.0179772786796093,
0.01724754087626934,
-0.027712823823094368,
-0.03011666238307953,
0.033104293048381805,
0.003056308953091502,
0.008928542956709862,
-0.04076223447918892,
0.004391298163682222,
0.00026640755822882056,
-0.007383218500763178,
-0.07451899349689484,
-0.009040149860084057,
-0.0055545843206346035,
0.04031580686569214
] |
723,026
|
varint
|
decode_stream
|
Read a varint from `stream`
|
def decode_stream(stream):
"""Read a varint from `stream`"""
shift = 0
result = 0
while True:
i = _read_one(stream)
result |= (i & 0x7f) << shift
shift += 7
if not (i & 0x80):
break
return result
|
(stream)
|
[
-0.005386396776884794,
0.043091174215078354,
0.0038759612943977118,
-0.003068001940846443,
0.02492106333374977,
0.059106726199388504,
0.009435172192752361,
0.03860251232981682,
0.016787603497505188,
-0.01572827808558941,
0.007029247935861349,
0.06147674098610878,
-0.024723561480641365,
0.00917034037411213,
0.009022214449942112,
0.05325350910425186,
-0.01971421204507351,
0.05544397979974747,
0.005758956074714661,
0.03350338712334633,
-0.036214541643857956,
0.001720280502922833,
-0.031187238171696663,
0.032354291528463364,
-0.009201761335134506,
-0.008829202502965927,
0.029176315292716026,
-0.02709357626736164,
-0.051817137748003006,
-0.009659605100750923,
-0.03301861137151718,
-0.008788804523646832,
-0.021312177181243896,
-0.021437859162688255,
-0.049770306795835495,
-0.004374203272163868,
-0.02028876170516014,
0.04039797559380531,
-0.07311136275529861,
0.03687886521220207,
-0.013304400257766247,
-0.023538554087281227,
-0.03484998643398285,
-0.0075723761692643166,
-0.04147525504231453,
-0.023484690114855766,
-0.022856276482343674,
-0.07555319368839264,
-0.04294753819704056,
0.03167201206088066,
0.035801585763692856,
-0.0008646289352327585,
-0.002760528353974223,
-0.012595191597938538,
0.022802412509918213,
-0.006028275936841965,
-0.01870875246822834,
0.05666489526629448,
-0.03896160423755646,
0.03946433588862419,
-0.03195928782224655,
0.015225548297166824,
-0.03280315548181534,
-0.02445424161851406,
-0.008290562778711319,
0.02176104299724102,
-0.006302084308117628,
-0.045604825019836426,
-0.08115504682064056,
-0.025082655251026154,
-0.03673522546887398,
0.02380787394940853,
-0.05009349063038826,
0.0018257640767842531,
0.019570576027035713,
0.014821568503975868,
-0.0024552992545068264,
-0.007285101804882288,
-0.0609021931886673,
0.02580084092915058,
0.07756411284208298,
0.010862566530704498,
0.09343603253364563,
0.059860821813344955,
0.04944712296128273,
-0.0219944529235363,
0.07512228190898895,
0.03590931370854378,
-0.030989736318588257,
0.012954284437000751,
0.010548360645771027,
-0.013187695294618607,
-0.0024867199826985598,
0.02188672497868538,
-0.019857849925756454,
-0.010718929581344128,
0.03664545342326164,
0.044132545590400696,
-0.07397318631410599,
-0.05835263058543205,
-0.013205649331212044,
0.05889127030968666,
-0.01971421204507351,
-0.06503176689147949,
-0.00031981730717234313,
0.061333104968070984,
0.024615833535790443,
0.027075622230768204,
-0.017658405005931854,
-0.0456407368183136,
0.060327645391225815,
0.005215827375650406,
-0.05501306802034378,
0.04359390586614609,
-0.04204980283975601,
0.003483203239738941,
0.049483031034469604,
0.055048976093530655,
-0.02892495132982731,
0.009138920344412327,
-0.03612476959824562,
0.055048976093530655,
-0.005839752033352852,
0.04822620749473572,
0.04872893542051315,
0.011482002213597298,
0.0170479454100132,
0.02892495132982731,
0.06194356456398964,
0.05056031048297882,
-0.04194207489490509,
-0.041618891060352325,
-0.041798438876867294,
0.022263772785663605,
-0.051529861986637115,
0.01606941781938076,
0.011069045402109623,
0.015818051993846893,
0.0066073136404156685,
-0.03301861137151718,
-0.00358644244261086,
0.040685251355171204,
0.03307247534394264,
-0.03537067398428917,
-0.04445572942495346,
0.0064412327483296394,
-0.009910969994962215,
0.010485518723726273,
-0.026249706745147705,
0.03151042014360428,
-0.003873717039823532,
-0.027524488046765327,
0.015144752338528633,
0.11878800392150879,
0.04327072203159332,
0.008259141817688942,
0.004870200529694557,
-0.04740029200911522,
-0.01640157774090767,
0.014965205453336239,
0.0073703862726688385,
0.07461955398321152,
-0.01340315118432045,
-0.018277840688824654,
-0.027021758258342743,
-0.022245818749070168,
0.006001343950629234,
0.017532721161842346,
0.027416760101914406,
0.013654516078531742,
-0.018924208357930183,
0.00040454085683450103,
-0.003180218394845724,
-0.015081911347806454,
0.037812504917383194,
-0.00879778154194355,
0.032821111381053925,
0.009291534312069416,
0.026141978800296783,
0.05084758624434471,
-0.0424807146191597,
0.008012264966964722,
-0.019929667934775352,
-0.03691477328538895,
0.04933939501643181,
0.011697458103299141,
0.038458872586488724,
0.000645806547254324,
0.014974183402955532,
-0.06697086989879608,
-0.003406896023079753,
-0.016320781782269478,
-0.008573348633944988,
-0.020737627521157265,
0.020324669778347015,
-0.016913285478949547,
0.0005605219048447907,
-0.02082740142941475,
0.008492552675306797,
-0.07329090684652328,
0.026590846478939056,
0.040972523391246796,
-0.013843039982020855,
-0.01217325683683157,
-0.07321909070014954,
0.027219258248806,
-0.02299991436302662,
0.03617863357067108,
-0.007186350878328085,
-0.005934013985097408,
-0.033234067261219025,
0.027219258248806,
0.05899899825453758,
-0.008977328427135944,
0.020971037447452545,
-0.05099122226238251,
-0.03626840561628342,
-0.04276799038052559,
0.05203259363770485,
0.015414072200655937,
0.061081741005182266,
-0.03366497904062271,
-0.0464666485786438,
0.011149841360747814,
0.009390285238623619,
0.00868107657879591,
-0.024436287581920624,
-0.01164359413087368,
0.01596168987452984,
0.0037121251225471497,
0.058280814439058304,
0.05497715622186661,
0.006908053997904062,
0.037740688771009445,
0.07375773042440414,
0.029589273035526276,
-0.019498756155371666,
0.004569460172206163,
-0.047723475843667984,
-0.010727906599640846,
-0.03648386150598526,
-0.012631100602447987,
0.04980621486902237,
0.013555765151977539,
-0.03720204904675484,
0.012325871735811234,
0.0559467077255249,
0.00747811421751976,
-0.057813990861177444,
-0.008479086682200432,
0.01596168987452984,
-0.05802944675087929,
0.05063213035464287,
0.02844017557799816,
0.031869515776634216,
0.023736055940389633,
-0.00005351329309633002,
-0.016177145764231682,
0.013528833165764809,
-0.028529947623610497,
-0.0039006490260362625,
-0.026788346469402313,
0.003873717039823532,
0.01588987000286579,
-0.003961245995014906,
-0.024597879499197006,
-0.0006519784219563007,
-0.025010835379362106,
0.02264082059264183,
-0.02716539427638054,
0.0977451503276825,
-0.048764847218990326,
-0.003608885919675231,
-0.027470624074339867,
-0.003696414874866605,
-0.056521255522966385,
0.058460358530282974,
0.03648386150598526,
0.10492701083421707,
0.00953392218798399,
0.016347713768482208,
0.012595191597938538,
0.007455670740455389,
0.0001773022231645882,
0.042839810252189636,
0.004708608612418175,
0.04768756777048111,
-0.010889498516917229,
0.003822097321972251,
-0.023269234225153923,
0.06621677428483963,
-0.043198902159929276,
-0.034993626177310944,
-0.015871915966272354,
0.003142064902931452,
0.05558761581778526,
-0.029697000980377197,
0.006616290658712387,
-0.018259884789586067,
0.021455813199281693,
0.009794265031814575,
-0.0085239727050066,
0.02540583908557892,
0.027183350175619125,
-0.03221065178513527,
-0.02885313145816326,
-0.01964239403605461,
-0.039500243961811066,
0.011149841360747814,
0.0012500928714871407,
-0.009462104178965092,
0.01222712080925703,
0.004589659161865711,
-0.0710645318031311,
-0.03723795711994171,
-0.020971037447452545,
-0.037273865193128586,
0.02492106333374977,
-0.016643965616822243,
0.029930410906672478,
0.03165405988693237,
-0.024651743471622467,
0.05720353499054909,
0.02054012566804886,
-0.00904465839266777,
0.007657660637050867,
-0.05231986939907074,
-0.03788432478904724,
0.06912542879581451,
0.006943963468074799,
-0.04111616313457489,
0.00022864132188260555,
-0.018583068624138832,
0.0004463415243662894,
0.04409663379192352,
-0.03174383193254471,
0.0035639991983771324,
0.042552534490823746,
-0.0340958908200264,
-0.026967894285917282,
0.05465397238731384,
-0.04585619270801544,
0.04427618160843849,
0.013250536285340786,
0.05066803842782974,
0.007208794355392456,
-0.07979048788547516,
-0.007603796664625406,
0.011966777965426445,
-0.00860476866364479,
0.023035824298858643,
-0.032695427536964417,
-0.019696258008480072,
0.005247248336672783,
-0.02739880606532097,
0.030361322686076164,
0.03061268851161003,
-0.018672842532396317,
0.026770392432808876,
-0.02012716978788376,
-0.06495994329452515,
0.02646516263484955,
0.008541927672922611,
0.0058487290516495705,
0.008609257638454437,
-0.016581125557422638,
-0.03888978436589241,
-0.026716528460383415,
0.035568173974752426,
0.0471489280462265,
-0.03878205642104149,
-0.002138848416507244,
-0.05267896130681038,
0.02163536101579666,
-0.028906995430588722,
-0.003972467500716448,
0.011329388245940208,
-0.0004659794212784618,
0.006562426686286926,
-0.024597879499197006,
-0.010709952563047409,
-0.013816107995808125,
-0.06409811973571777,
0.021563541144132614,
0.017083855345845222,
0.023502644151449203,
-0.08804963529109955,
0.00868107657879591,
-0.060327645391225815,
0.06926906108856201,
-0.0360170416533947,
0.018636932596564293,
0.08158595860004425,
-0.0786413922905922,
0.0702386125922203,
0.04064933955669403,
-0.03946433588862419,
0.007406295742839575,
0.09077873826026917,
-0.004266475327312946,
-0.05425897240638733,
0.002796437591314316,
-0.013986676931381226,
0.029284043237566948,
0.0512784980237484,
-0.022856276482343674,
0.03465248644351959,
-0.05860399827361107,
-0.013860994949936867,
-0.09106601774692535,
0.03183360397815704,
-0.020486261695623398,
0.03391634672880173,
-0.04675392434000969,
-0.007078622933477163,
-0.06715041399002075,
-0.021455813199281693,
0.008779826574027538,
0.03177974000573158,
-0.022084226831793785,
0.04377344995737076,
0.028170855715870857,
0.002713397378101945,
-0.03168996796011925,
-0.04370163381099701,
-0.003449538256973028,
-0.009201761335134506,
0.04571255296468735,
0.00015990865358617157,
0.07461955398321152,
0.02116853930056095,
0.0009420583373866975,
0.05433078855276108,
-0.06047128140926361,
-0.024202875792980194,
-0.011868027970194817,
-0.027344942092895508,
0.010458586737513542,
0.02229968272149563,
0.03443703055381775,
0.08589507639408112,
0.07404500246047974,
0.031241102144122124,
-0.00032795302104204893,
0.0020748849492520094,
0.020558081567287445,
0.019839895889163017,
0.05867581441998482,
-0.02781176194548607,
-0.025262201204895973,
-0.06057900935411453,
-0.10815884917974472,
-0.01692226342856884,
-0.017550677061080933,
0.048369843512773514,
-0.0646008551120758,
-0.027129486203193665,
0.05156577378511429,
-0.017263401299715042,
-0.04427618160843849,
-0.003456271253526211,
-0.05145804584026337,
-0.08927054703235626,
-0.045317552983760834,
-0.030397232621908188,
-0.03590931370854378,
0.001743845990858972,
0.005301112309098244,
-0.015647482126951218,
0.016239985823631287,
-0.03332384303212166,
0.020809445530176163,
0.01702101342380047,
0.018798524513840675,
0.04517391324043274,
0.016132257878780365,
0.03332384303212166,
-0.0066073136404156685,
-0.0166349895298481,
0.022012408822774887,
-0.028781313449144363,
-0.0551207959651947,
-0.026608800515532494,
-0.02258695662021637,
-0.029589273035526276,
-0.036519769579172134,
-0.018744660541415215,
-0.0071683963760733604,
0.052176229655742645,
0.001354454318061471,
0.06546267867088318,
0.01483952347189188,
-0.04312708228826523,
-0.004847757052630186,
0.03899751231074333,
-0.04011069983243942,
0.0040016439743340015,
0.0034809589851647615,
0.0005739878979511559,
0.0026662664022296667,
-0.07548137754201889,
-0.004064485430717468,
-0.041259799152612686,
-0.0332699790596962,
0.005942991003394127,
0.01290042046457529,
0.015162707306444645,
-0.0013948522973805666,
0.033413615077733994,
0.018744660541415215,
-0.008137947879731655,
0.04380936175584793,
0.003656016895547509,
-0.03899751231074333,
-0.04463527351617813,
0.005633273161947727,
0.002935586264356971,
0.057347171008586884,
-0.030810190364718437,
0.029284043237566948,
0.019750121980905533,
-0.0047041201032698154,
0.02786562591791153,
0.060327645391225815,
-0.0020400977227836847,
-0.04528164118528366,
-0.05034485459327698,
-0.08575143665075302,
-0.0328570194542408,
0.0043248278088867664,
0.00873494055122137,
-0.07792320847511292,
-0.043557994067668915,
-0.04029024764895439,
0.023843783885240555,
-0.032462019473314285,
0.05038076639175415,
-0.030756326392292976,
-0.06894587725400925,
-0.02844017557799816,
0.003368742298334837,
0.00025893980637192726,
-0.009022214449942112,
0.06912542879581451,
0.03655568137764931,
0.04046979546546936,
-0.04804665967822075,
0.01836761273443699,
0.05102713406085968,
0.007087600417435169,
-0.045604825019836426,
-0.031869515776634216,
0.005583898164331913,
-0.006293106824159622,
-0.005633273161947727,
-0.049590758979320526,
-0.02856585755944252,
0.05860399827361107,
-0.018125224858522415,
0.001826886204071343,
0.020953083410859108,
-0.028673585504293442,
-0.03853069245815277,
0.010898476466536522,
-0.08883963525295258,
-0.02416696771979332,
-0.014740772545337677,
-0.10794339329004288,
-0.02229968272149563,
0.012334848754107952,
0.025675158947706223,
0.013268491253256798,
0.02088126540184021,
0.05418715253472328,
0.06287720799446106,
-0.01495622843503952,
-0.029481545090675354,
-0.02481333538889885,
0.08725962787866592,
0.019786031916737556,
-0.014776681549847126,
-0.01167052611708641,
-0.05784990265965462,
-0.02615993469953537,
0.018232952803373337,
0.06998725235462189,
0.03630431368947029,
-0.004910598509013653,
0.03960797190666199,
-0.007469136733561754,
0.030289504677057266,
-0.04416845366358757,
0.0025944476947188377,
0.02170717902481556,
-0.013591675087809563,
0.008236698806285858,
-0.0023632815573364496,
0.011149841360747814,
0.0175955630838871,
0.029248135164380074,
-0.04998576268553734,
-0.01366349309682846,
0.027237214148044586,
-0.05325350910425186,
0.035568173974752426,
-0.026141978800296783,
0.007352431770414114,
0.008003287948668003,
-0.0019065600354224443,
-0.005126054398715496,
0.013789176009595394,
-0.05835263058543205,
0.019373074173927307,
0.02452605962753296,
0.008555393666028976,
0.022138090804219246,
0.03668136149644852,
-0.029553363099694252,
-0.07020270824432373,
-0.05379214882850647,
-0.011051090434193611,
0.047364383935928345,
-0.023915601894259453,
-0.031061554327607155,
0.03562203794717789,
0.07806684821844101,
-0.01018028985708952,
0.058747634291648865,
-0.016877377405762672,
-0.041439346969127655,
0.006414300762116909,
0.014471452683210373,
0.03490385040640831,
0.017613517120480537,
-0.014561225660145283,
-0.009336421266198158,
0.012155301868915558,
-0.0017528232419863343,
0.010458586737513542,
0.016958173364400864,
0.01865488849580288,
0.023161506280303,
0.007733968086540699,
-0.048369843512773514,
0.04668210446834564,
-0.03827932849526405,
0.04804665967822075,
0.015494868159294128,
-0.022838322445750237,
0.018583068624138832,
0.032641563564538956,
0.04204980283975601,
0.009219716303050518,
0.019211482256650925,
0.032120879739522934,
-0.04822620749473572,
0.08115504682064056,
0.028063127771019936,
0.0448148213326931,
-0.005337021313607693,
0.032174743711948395,
-0.011006204411387444,
-0.013115876354277134,
0.02773994393646717,
0.03418566659092903,
0.014722817577421665,
-0.02305377833545208,
0.03673522546887398,
0.05659307539463043,
-0.04380936175584793,
0.03127701207995415,
0.02382582798600197,
-0.015333276242017746,
0.0036739713978022337,
0.01720953732728958,
-0.026716528460383415,
-0.015647482126951218,
-0.02815289981663227,
0.06402630358934402,
-0.02651902660727501,
-0.0681917816400528,
-0.016383623704314232,
0.042157530784606934,
-0.037453413009643555,
-0.012209165841341019,
0.0075140236876904964,
-0.039141152054071426,
-0.02804517187178135,
-0.028547903522849083,
0.0023475713096559048,
-0.012361780740320683,
0.003941047005355358,
-0.02844017557799816,
0.024508105590939522,
-0.006095605902373791,
-0.020378533750772476,
-0.0022533093579113483,
0.017559653148055077,
0.02833244763314724,
-0.01231689378619194,
-0.02580084092915058,
-0.10341881960630417,
0.03957206383347511,
0.0034338280092924833,
-0.023071732372045517,
-0.005013837479054928,
-0.026177888736128807,
-0.01870875246822834,
0.020863309502601624,
-0.0051529863849282265,
-0.03608885779976845,
-0.003166752401739359,
-0.06675541400909424,
0.015360208228230476,
0.037920232862234116,
0.08690053224563599,
-0.07935958355665207,
0.03084609843790531,
-0.042157530784606934,
0.029373817145824432,
0.029876546934247017,
0.018457386642694473,
-0.011769277043640614,
0.12410258501768112,
-0.025603339076042175,
-0.03465248644351959,
-0.012882465496659279,
0.06808405369520187,
0.01870875246822834,
0.011113932356238365,
0.011320410296320915,
-0.01964239403605461,
-0.04474300146102905,
-0.057347171008586884,
-0.04104434326291084,
0.06682723015546799,
-0.0283863116055727,
0.0255674310028553,
0.041906166821718216,
-0.059394001960754395,
-0.006970895454287529,
-0.015773165971040726,
-0.03957206383347511,
0.01800852082669735,
-0.013564743101596832,
0.009919947944581509,
0.04768756777048111,
-0.020971037447452545,
-0.0018336192006245255,
-0.0005288207321427763,
0.003994910977780819,
0.017918746918439865,
-0.03982342779636383,
0.013645539060235023,
0.03511930629611015,
-0.014327815733850002,
-0.02468765154480934,
0.0025338507257401943,
0.015880893915891647,
-0.01720953732728958,
-0.07181862741708755,
-0.02763221599161625,
0.02404128387570381,
0.0012972238473594189,
-0.03429339453577995,
-0.030127912759780884,
-0.027237214148044586,
0.0003560071636456996
] |
723,027
|
varint
|
encode
|
Pack `number` into varint bytes
|
def encode(number):
"""Pack `number` into varint bytes"""
buf = b''
while True:
towrite = number & 0x7f
number >>= 7
if number:
buf += _byte(towrite | 0x80)
else:
buf += _byte(towrite)
break
return buf
|
(number)
|
[
-0.022922523319721222,
0.025205714628100395,
-0.04149610921740532,
-0.005929957143962383,
0.043525610119104385,
0.035625044256448746,
-0.07944058626890182,
-0.03165663778781891,
-0.01031966507434845,
-0.06773469597101212,
0.06925681978464127,
0.02283192053437233,
0.018736669793725014,
-0.0015708269784227014,
0.03866929933428764,
-0.021944012492895126,
0.02377418987452984,
0.005164362955838442,
0.06842327862977982,
0.011569984257221222,
0.014668602496385574,
0.07748356461524963,
0.05505029484629631,
-0.009495179168879986,
0.008783946745097637,
0.03278011456131935,
0.00015614836593158543,
-0.003603728488087654,
-0.06922058016061783,
0.036096177995204926,
-0.022523870691657066,
-0.049795329570770264,
0.06671994179487228,
-0.032725751399993896,
-0.03580624982714653,
0.012494133785367012,
-0.011144150979816914,
0.055557671934366226,
-0.06563270837068558,
-0.046896036714315414,
0.03509954735636711,
-0.028358694165945053,
-0.0935746282339096,
-0.011669647879898548,
-0.007841677404940128,
-0.0289929136633873,
-0.005091880448162556,
0.0004048815171699971,
0.01774909906089306,
0.03268951177597046,
-0.008974213153123856,
0.03058752417564392,
0.005236844997853041,
-0.03444720432162285,
-0.0005212495452724397,
0.0450114980340004,
0.006373910699039698,
-0.014288070611655712,
0.013191775418817997,
0.030424438416957855,
-0.020893018692731857,
0.06483540683984756,
-0.0017361772479489446,
-0.07186618447303772,
-0.03207341209053993,
0.06871320307254791,
-0.0454101525247097,
0.006346730049699545,
-0.03198280930519104,
0.011687768623232841,
0.010056916624307632,
0.029464049264788628,
-0.05450667813420296,
0.004915204830467701,
-0.012938087806105614,
0.06606759876012802,
-0.011044488288462162,
0.014460215345025063,
-0.025241956114768982,
0.043525610119104385,
0.0982859805226326,
-0.09429945051670074,
0.07389569282531738,
0.014342431910336018,
0.03975653275847435,
-0.0254050400108099,
-0.028829827904701233,
0.04497525840997696,
0.021128585562109947,
-0.05345568433403969,
-0.0032345219515264034,
-0.006256127264350653,
-0.03191032633185387,
0.05678987130522728,
-0.021382274106144905,
-0.06258845329284668,
0.08958810567855835,
0.012231385335326195,
-0.09915576875209808,
-0.00004218695539748296,
-0.05385433882474899,
0.0343022421002388,
-0.027978161349892616,
-0.060667671263217926,
-0.01842861995100975,
0.0068903472274541855,
-0.008607271127402782,
0.06070391461253166,
-0.0106639564037323,
-0.007954930886626244,
0.031946565955877304,
-0.04048135504126549,
-0.006210825871676207,
-0.05225972831249237,
-0.003914043307304382,
0.03230897709727287,
0.03220025449991226,
0.06599511951208115,
0.05606504902243614,
-0.021146707236766815,
0.05392681807279587,
0.020911138504743576,
0.028920430690050125,
-0.002976303920149803,
0.032961320132017136,
0.038886744529008865,
0.034610290080308914,
0.03683912009000778,
0.02051248587667942,
-0.045845046639442444,
-0.011778371408581734,
0.07603392004966736,
0.01783064194023609,
0.06853199750185013,
-0.0016093332087621093,
-0.012158903293311596,
-0.11365222185850143,
-0.037364616990089417,
0.03352305665612221,
0.006564177107065916,
-0.03259890899062157,
-0.007288999855518341,
0.0556301549077034,
0.019552096724510193,
0.03346869349479675,
-0.034610290080308914,
0.027905680239200592,
-0.027289580553770065,
-0.037147171795368195,
0.0054633524268865585,
0.031203623861074448,
-0.024752700701355934,
0.046424902975559235,
0.009594842791557312,
-0.007288999855518341,
0.07719363272190094,
0.0686044842004776,
-0.05726100504398346,
0.009055755101144314,
-0.05461540073156357,
0.03997398167848587,
0.03531699255108833,
0.009576722048223019,
0.010464630089700222,
0.010174700990319252,
-0.00006310347089311108,
-0.047113485634326935,
0.03453780710697174,
0.02341177873313427,
0.01426088996231556,
0.02225206047296524,
-0.03191032633185387,
-0.021364154294133186,
0.03982901573181152,
0.04512022063136101,
-0.024770820513367653,
-0.004552793689072132,
-0.019660819321870804,
0.017196422442793846,
0.029355324804782867,
-0.03163851797580719,
0.0006602682988159359,
-0.01621791161596775,
0.02294064313173294,
0.043743059039115906,
-0.07001788914203644,
0.03928539901971817,
0.0341029167175293,
0.02285004034638405,
-0.024390289559960365,
0.039575327187776566,
0.006550586316734552,
0.013345800340175629,
-0.01182367280125618,
-0.0225057490170002,
-0.04370681941509247,
0.05816703289747238,
-0.020204436033964157,
-0.012648158706724644,
0.003205076092854142,
0.007153095677495003,
-0.019080961123108864,
0.05399930104613304,
-0.030297594144940376,
0.009028574451804161,
0.027090253308415413,
-0.03326936811208725,
-0.04823695868253708,
0.02237890474498272,
-0.07697618752717972,
0.015411545522511005,
0.04493901506066322,
0.035534441471099854,
0.01750447228550911,
-0.015927981585264206,
-0.056608665734529495,
0.014396794140338898,
-0.02145475707948208,
0.03866929933428764,
-0.020693691447377205,
-0.07451178878545761,
0.0004702854494098574,
-0.039104193449020386,
0.03339621424674988,
0.01610012724995613,
0.033305611461400986,
-0.016317574307322502,
0.02551376447081566,
0.023683587089180946,
0.010065977461636066,
0.07726611196994781,
0.05726100504398346,
-0.006854106206446886,
0.00887454953044653,
-0.0077827852219343185,
-0.048961784690618515,
0.007320710923522711,
-0.07777348905801773,
-0.03914043307304382,
-0.0375458225607872,
0.014170286245644093,
0.012503193691372871,
0.03827064484357834,
0.05167986825108528,
0.013073991984128952,
-0.039357881993055344,
0.006124753039330244,
0.03357741981744766,
-0.036802880465984344,
0.02598489820957184,
-0.06476292014122009,
-0.07871576398611069,
-0.01589174009859562,
-0.029609013348817825,
0.026474153622984886,
0.022541990503668785,
-0.02841305546462536,
0.011932396329939365,
-0.049432918429374695,
0.059073060750961304,
-0.022288301959633827,
0.008149727247655392,
-0.037618305534124374,
-0.035878729075193405,
-0.001611598301678896,
-0.040735043585300446,
-0.03191032633185387,
-0.007107793819159269,
0.0003697728971019387,
0.03176536038517952,
0.044794052839279175,
0.0035674874670803547,
0.0008069316972978413,
0.02352050133049488,
-0.03642234951257706,
-0.06740852445363998,
0.016716226935386658,
0.035625044256448746,
0.013536066748201847,
-0.05436171218752861,
0.01426088996231556,
0.014052502810955048,
-0.012901846319437027,
-0.013889417983591557,
0.022179579362273216,
0.047113485634326935,
-0.00732977082952857,
0.02457149513065815,
0.018120571970939636,
-0.037835754454135895,
0.014831687323749065,
0.03178348019719124,
-0.03654919192194939,
-0.03212777152657509,
-0.035190150141716,
-0.02366546541452408,
0.024625856429338455,
0.022197699174284935,
0.04356185346841812,
0.02478894218802452,
0.01902659982442856,
0.00937739573419094,
0.0621173195540905,
0.014097804203629494,
-0.0020872633904218674,
-0.01702427677810192,
-0.013372981920838356,
-0.0018460331484675407,
-0.04348937049508095,
0.0024553374387323856,
-0.046896036714315414,
-0.002840399509295821,
0.01645347848534584,
-0.02087489888072014,
0.05436171218752861,
-0.036585431545972824,
-0.007252758834511042,
-0.03368614241480827,
-0.012811243534088135,
0.036802880465984344,
0.04548263177275658,
-0.05515901744365692,
0.03845185041427612,
-0.021037982776761055,
-0.01612730883061886,
0.012240446172654629,
0.017196422442793846,
-0.047222208231687546,
0.016154488548636436,
-0.03845185041427612,
-0.03812568262219429,
0.02306748740375042,
0.008552909828722477,
0.013681030832231045,
-0.028358694165945053,
-0.0065234056673944,
0.046316180378198624,
-0.004090718924999237,
-0.05077384039759636,
0.01774909906089306,
0.06476292014122009,
0.0129743292927742,
0.01096294540911913,
0.025568125769495964,
-0.00009867217158898711,
-0.00504657905548811,
-0.07114136219024658,
-0.008412474766373634,
-0.023212451487779617,
0.009975374676287174,
-0.013925658538937569,
-0.029047274962067604,
0.014106865040957928,
0.011796492151916027,
0.010881402529776096,
-0.02192589081823826,
0.05088256299495697,
-0.06048646569252014,
-0.003245847299695015,
0.0454101525247097,
0.009295852854847908,
0.024281565099954605,
0.035063304007053375,
-0.009658263996243477,
-0.0073025901801884174,
0.007171215955168009,
0.01736856810748577,
-0.00973980687558651,
0.030786849558353424,
0.02098362147808075,
-0.017785340547561646,
-0.008158787153661251,
-0.047113485634326935,
0.03178348019719124,
-0.03488209843635559,
-0.026963409036397934,
-0.02051248587667942,
0.018292715772986412,
-0.004179056733846664,
-0.08487675338983536,
0.004527877550572157,
-0.03140294924378395,
-0.020476246252655983,
-0.00787338800728321,
0.03526263311505318,
0.0216722022742033,
0.07052526623010635,
-0.00019720278214663267,
-0.04135114327073097,
0.028902310878038406,
-0.02839493565261364,
0.02366546541452408,
0.026836566627025604,
-0.0037237773649394512,
0.027651991695165634,
0.03357741981744766,
0.01390753872692585,
-0.01270252000540495,
0.08031037449836731,
0.011397839523851871,
0.021762805059552193,
-0.04232965409755707,
0.0067635029554367065,
0.026057381182909012,
0.04037263244390488,
-0.029246602207422256,
0.02573121152818203,
-0.022070854902267456,
-0.011778371408581734,
-0.03290695697069168,
-0.03694784641265869,
0.0019355035619810224,
-0.02654663659632206,
-0.050230223685503006,
0.031149262562394142,
-0.056282494217157364,
-0.05084632337093353,
-0.07280845195055008,
0.014967591501772404,
-0.002058949787169695,
0.00034542338107712567,
-0.01477732602506876,
0.003764548571780324,
0.04512022063136101,
-0.02979021891951561,
0.03191032633185387,
-0.00475664995610714,
0.033215008676052094,
-0.04551887512207031,
0.1098831444978714,
0.04899802431464195,
-0.011298175901174545,
0.03557068109512329,
-0.0020068532321602106,
0.009603902697563171,
-0.010201881639659405,
0.0003397607069928199,
-0.028811708092689514,
0.01263003796339035,
0.027887558564543724,
0.08523916453123093,
0.03247206285595894,
0.023592984303832054,
-0.009549541398882866,
0.045845046639442444,
-0.006174584850668907,
-0.02227018214762211,
0.04290951415896416,
-0.023031245917081833,
0.005902776028960943,
0.02410035952925682,
-0.04820071905851364,
0.03816192224621773,
0.02154535986483097,
0.04124242067337036,
-0.015257520601153374,
-0.014315251260995865,
0.006976420059800148,
-0.06084887683391571,
-0.05961667746305466,
-0.015973282977938652,
-0.03497270122170448,
0.011506563052535057,
0.008652572520077229,
-0.005110001191496849,
-0.06758973002433777,
-0.0405900776386261,
0.008838308975100517,
0.009567661210894585,
-0.004031827207654715,
-0.03801696002483368,
0.054651644080877304,
-0.0032617028336972,
0.01436961255967617,
0.061609942466020584,
-0.004924265202134848,
0.009821349754929543,
-0.023719828575849533,
-0.00829016137868166,
-0.016716226935386658,
-0.02388291247189045,
-0.014732024632394314,
-0.0015096700517460704,
0.008820188231766224,
0.008421535603702068,
-0.008403414860367775,
0.03457405045628548,
0.0014632361708208919,
0.03816192224621773,
0.004047682508826256,
-0.01355418749153614,
0.05062887445092201,
-0.010518991388380527,
-0.006446393206715584,
0.03247206285595894,
0.031348589807748795,
-0.08581902831792831,
-0.014170286245644093,
-0.07907817512750626,
0.017223602160811424,
-0.04312695935368538,
-0.0060160295106470585,
-0.058130793273448944,
-0.055340223014354706,
-0.019280288368463516,
-0.0463886633515358,
0.008711464703083038,
0.031348589807748795,
-0.007773724850267172,
0.03707468882203102,
0.007732953876256943,
0.012485073879361153,
0.013835055753588676,
-0.01704239659011364,
-0.035045184195041656,
0.023031245917081833,
-0.022668834775686264,
-0.03798071667551994,
-0.031149262562394142,
-0.008969682268798351,
-0.008394354954361916,
0.03374050185084343,
0.03432036191225052,
-0.008466836996376514,
0.01750447228550911,
-0.023955395445227623,
-0.03015263006091118,
-0.03037007711827755,
-0.0607401542365551,
0.09763363748788834,
-0.026003019884228706,
-0.020367521792650223,
0.02294064313173294,
0.018138691782951355,
-0.027905680239200592,
-0.022306423634290695,
0.016082007437944412,
0.021237310022115707,
-0.022415146231651306,
-0.03484585881233215,
-0.058819372206926346,
0.002643338404595852,
0.049541641026735306,
-0.05642746016383171,
0.006967359688133001,
0.04965036362409592,
-0.0505201518535614,
-0.0030102799646556377,
0.013182715512812138,
-0.028938552364706993,
-0.023357415571808815,
-0.010654895566403866,
0.01737762801349163,
0.038198165595531464,
0.00425606919452548,
-0.09342966228723526,
0.009658263996243477,
0.021726565435528755,
-0.02270507626235485,
0.015212219208478928,
0.045953769236803055,
0.008820188231766224,
-0.03895922750234604,
-0.0260936226695776,
-0.08712370693683624,
0.005150772165507078,
-0.03210965171456337,
-0.09241491556167603,
0.02192589081823826,
-0.0019524915842339396,
0.05722476541996002,
0.022560110315680504,
0.043634336441755295,
0.008262980729341507,
0.026836566627025604,
-0.01031966507434845,
-0.057913344353437424,
-0.038995470851659775,
0.043271925300359726,
-0.012802183628082275,
-0.039466604590415955,
0.006985479965806007,
-0.04080752655863762,
-0.016254153102636337,
0.0512087345123291,
0.026220466941595078,
0.04870809614658356,
0.025785572826862335,
0.00565361836925149,
-0.023321175947785378,
0.03750958293676376,
-0.039357881993055344,
0.04454036429524422,
0.020693691447377205,
0.04961412400007248,
-0.011397839523851871,
-0.07335206866264343,
-0.011008246801793575,
0.010618655011057854,
-0.040843766182661057,
0.0467873141169548,
0.009014984592795372,
-0.02502450905740261,
0.027561388909816742,
0.06527029722929001,
0.021980252116918564,
-0.03453780710697174,
0.013309559784829617,
-0.0067635029554367065,
-0.06244348734617233,
0.008389824070036411,
-0.01902659982442856,
-0.0024326867423951626,
-0.052440933883190155,
-0.05653618276119232,
0.03466465324163437,
0.01844674162566662,
-0.013490765355527401,
-0.05809454992413521,
-0.045156463980674744,
-0.0023262284230440855,
0.0767587423324585,
-0.06262469291687012,
-0.024408409371972084,
0.024263445287942886,
-0.0017237192951142788,
0.009046695195138454,
0.01875479146838188,
-0.02074805460870266,
-0.0764688104391098,
0.004013706464320421,
0.029880821704864502,
0.0012469218345358968,
0.02806876413524151,
-0.02399163693189621,
-0.033559296280145645,
-0.024045998230576515,
0.014994773082435131,
-0.003186955349519849,
-0.027960041537880898,
-0.022668834775686264,
0.008394354954361916,
-0.024716459214687347,
-0.08574654161930084,
0.04493901506066322,
-0.0011257404694333673,
-0.005757811479270458,
-0.025096990168094635,
-0.07719363272190094,
-0.04809199646115303,
-0.017703797668218613,
0.004070333205163479,
0.04635242000222206,
0.013735393062233925,
0.04464908689260483,
0.03798071667551994,
0.048381924629211426,
0.010156580246984959,
0.020313160493969917,
0.009178069420158863,
0.02562248706817627,
0.027905680239200592,
-0.005789522547274828,
-0.026619119569659233,
0.013191775418817997,
0.06476292014122009,
-0.03220025449991226,
-0.07230108231306076,
0.025459403172135353,
-0.05979788303375244,
0.02826809138059616,
0.008181437849998474,
-0.033794865012168884,
-0.03662167489528656,
0.03116738237440586,
-0.011361598037183285,
-0.02598489820957184,
0.03866929933428764,
0.03491834178566933,
-0.045845046639442444,
-0.03484585881233215,
-0.042474620044231415,
0.06189987063407898,
-0.03316064551472664,
-0.03140294924378395,
-0.02806876413524151,
-0.0535644069314003,
0.007415843661874533,
-0.015185038559138775,
0.026981530711054802,
0.0027905679307878017,
0.015139737166464329,
-0.04772958531975746,
0.02248762920498848,
-0.0405900776386261,
0.05530398339033127,
0.018292715772986412,
-0.02201649360358715,
0.022342665120959282,
-0.05472412332892418,
0.016371935606002808,
-0.06816958636045456,
0.019660819321870804,
0.03953908756375313,
-0.015221280045807362,
-0.00437158765271306,
0.05689859390258789,
-0.04830944165587425,
-0.007275409530848265,
0.011569984257221222,
0.00015926283958833665,
-0.016480660066008568,
-0.0370565690100193,
0.015402485616505146,
-0.028956672176718712,
0.006568707060068846,
-0.020005110651254654,
0.07820838689804077,
-0.00800023227930069,
0.0419672429561615,
0.04388802498579025,
0.013137414120137691,
0.04164107143878937,
0.04627993702888489,
-0.021146707236766815,
-0.016417236998677254,
0.03421163931488991,
0.003959344699978828,
-0.002733941189944744,
0.0036852711346000433,
0.014414913952350616,
-0.016634684056043625,
0.005327447783201933,
-0.03816192224621773,
0.03615054115653038,
0.057405970990657806,
-0.0682058334350586,
0.0009145225631073117,
-0.017459170892834663,
-0.022886281833052635,
0.01785782352089882,
0.03557068109512329,
-0.02377418987452984,
0.001202752930112183,
0.021998373791575432,
0.009078405797481537,
0.10944824665784836,
-0.03220025449991226,
-0.01705145835876465,
0.006364850793033838,
-0.011724009178578854,
0.029862701892852783,
-0.0741131380200386,
-0.02725333906710148,
0.07994796335697174,
0.02863050252199173,
-0.014967591501772404,
0.0808902308344841,
0.021944012492895126,
-0.04102497175335884,
-0.05457916110754013,
-0.023466140031814575,
0.021998373791575432,
-0.021871529519557953,
-0.05102752894163132,
0.000989269930869341,
0.033903587609529495,
0.009477058425545692
] |
723,029
|
isort.settings
|
Config
| null |
class Config(_Config):
def __init__(
self,
settings_file: str = "",
settings_path: str = "",
config: Optional[_Config] = None,
**config_overrides: Any,
):
self._known_patterns: Optional[List[Tuple[Pattern[str], str]]] = None
self._section_comments: Optional[Tuple[str, ...]] = None
self._section_comments_end: Optional[Tuple[str, ...]] = None
self._skips: Optional[FrozenSet[str]] = None
self._skip_globs: Optional[FrozenSet[str]] = None
self._sorting_function: Optional[Callable[..., List[str]]] = None
if config:
config_vars = vars(config).copy()
config_vars.update(config_overrides)
config_vars["py_version"] = config_vars["py_version"].replace("py", "")
config_vars.pop("_known_patterns")
config_vars.pop("_section_comments")
config_vars.pop("_section_comments_end")
config_vars.pop("_skips")
config_vars.pop("_skip_globs")
config_vars.pop("_sorting_function")
super().__init__(**config_vars)
return
# We can't use self.quiet to conditionally show warnings before super.__init__() is called
# at the end of this method. _Config is also frozen so setting self.quiet isn't possible.
# Therefore we extract quiet early here in a variable and use that in warning conditions.
quiet = config_overrides.get("quiet", False)
sources: List[Dict[str, Any]] = [_DEFAULT_SETTINGS]
config_settings: Dict[str, Any]
project_root: str
if settings_file:
config_settings = _get_config_data(
settings_file,
CONFIG_SECTIONS.get(os.path.basename(settings_file), FALLBACK_CONFIG_SECTIONS),
)
project_root = os.path.dirname(settings_file)
if not config_settings and not quiet:
warn(
f"A custom settings file was specified: {settings_file} but no configuration "
"was found inside. This can happen when [settings] is used as the config "
"header instead of [isort]. "
"See: https://pycqa.github.io/isort/docs/configuration/config_files"
"/#custom_config_files for more information."
)
elif settings_path:
if not os.path.exists(settings_path):
raise InvalidSettingsPath(settings_path)
settings_path = os.path.abspath(settings_path)
project_root, config_settings = _find_config(settings_path)
else:
config_settings = {}
project_root = os.getcwd()
profile_name = config_overrides.get("profile", config_settings.get("profile", ""))
profile: Dict[str, Any] = {}
if profile_name:
if profile_name not in profiles:
import pkg_resources
for plugin in pkg_resources.iter_entry_points("isort.profiles"):
profiles.setdefault(plugin.name, plugin.load())
if profile_name not in profiles:
raise ProfileDoesNotExist(profile_name)
profile = profiles[profile_name].copy()
profile["source"] = f"{profile_name} profile"
sources.append(profile)
if config_settings:
sources.append(config_settings)
if config_overrides:
config_overrides["source"] = RUNTIME_SOURCE
sources.append(config_overrides)
combined_config = {**profile, **config_settings, **config_overrides}
if "indent" in combined_config:
indent = str(combined_config["indent"])
if indent.isdigit():
indent = " " * int(indent)
else:
indent = indent.strip("'").strip('"')
if indent.lower() == "tab":
indent = "\t"
combined_config["indent"] = indent
known_other = {}
import_headings = {}
import_footers = {}
for key, value in tuple(combined_config.items()):
# Collect all known sections beyond those that have direct entries
if key.startswith(KNOWN_PREFIX) and key not in (
"known_standard_library",
"known_future_library",
"known_third_party",
"known_first_party",
"known_local_folder",
):
import_heading = key[len(KNOWN_PREFIX) :].lower()
maps_to_section = import_heading.upper()
combined_config.pop(key)
if maps_to_section in KNOWN_SECTION_MAPPING:
section_name = f"known_{KNOWN_SECTION_MAPPING[maps_to_section].lower()}"
if section_name in combined_config and not quiet:
warn(
f"Can't set both {key} and {section_name} in the same config file.\n"
f"Default to {section_name} if unsure."
"\n\n"
"See: https://pycqa.github.io/isort/"
"#custom-sections-and-ordering."
)
else:
combined_config[section_name] = frozenset(value)
else:
known_other[import_heading] = frozenset(value)
if maps_to_section not in combined_config.get("sections", ()) and not quiet:
warn(
f"`{key}` setting is defined, but {maps_to_section} is not"
" included in `sections` config option:"
f" {combined_config.get('sections', SECTION_DEFAULTS)}.\n\n"
"See: https://pycqa.github.io/isort/"
"#custom-sections-and-ordering."
)
if key.startswith(IMPORT_HEADING_PREFIX):
import_headings[key[len(IMPORT_HEADING_PREFIX) :].lower()] = str(value)
if key.startswith(IMPORT_FOOTER_PREFIX):
import_footers[key[len(IMPORT_FOOTER_PREFIX) :].lower()] = str(value)
# Coerce all provided config values into their correct type
default_value = _DEFAULT_SETTINGS.get(key, None)
if default_value is None:
continue
combined_config[key] = type(default_value)(value)
for section in combined_config.get("sections", ()):
if section in SECTION_DEFAULTS:
continue
if not section.lower() in known_other:
config_keys = ", ".join(known_other.keys())
warn(
f"`sections` setting includes {section}, but no known_{section.lower()} "
"is defined. "
f"The following known_SECTION config options are defined: {config_keys}."
)
if "directory" not in combined_config:
combined_config["directory"] = (
os.path.dirname(config_settings["source"])
if config_settings.get("source", None)
else os.getcwd()
)
path_root = Path(combined_config.get("directory", project_root)).resolve()
path_root = path_root if path_root.is_dir() else path_root.parent
if "src_paths" not in combined_config:
combined_config["src_paths"] = (path_root / "src", path_root)
else:
src_paths: List[Path] = []
for src_path in combined_config.get("src_paths", ()):
full_paths = (
path_root.glob(src_path) if "*" in str(src_path) else [path_root / src_path]
)
for path in full_paths:
if path not in src_paths:
src_paths.append(path)
combined_config["src_paths"] = tuple(src_paths)
if "formatter" in combined_config:
import pkg_resources
for plugin in pkg_resources.iter_entry_points("isort.formatters"):
|
(settings_file: str = '', settings_path: str = '', config: Optional[isort.settings._Config] = None, **config_overrides: Any)
|
[
-0.018645230680704117,
-0.05171392858028412,
-0.038343269377946854,
-0.003200536360964179,
0.0037795808166265488,
0.008664609864354134,
-0.0185925904661417,
0.01233891025185585,
-0.051840268075466156,
-0.0674218237400055,
0.011338742449879646,
-0.02415141649544239,
-0.034700553864240646,
0.040912121534347534,
-0.020213915035128593,
0.03442682325839996,
0.028046805411577225,
0.07837103307247162,
0.020582396537065506,
0.005277200136333704,
-0.011128180660307407,
-0.10334363579750061,
-0.029583904892206192,
0.018434667959809303,
0.020024409517645836,
0.013486471027135849,
0.045060183852910995,
-0.04421793669462204,
-0.013475942425429821,
-0.04438638687133789,
-0.053145747631788254,
-0.0031531599815934896,
-0.029499681666493416,
0.012970594689249992,
0.01146507915109396,
-0.0727279782295227,
0.007727610878646374,
0.07432824373245239,
-0.03703778609633446,
0.030847275629639626,
-0.020055992528796196,
-0.0177608709782362,
0.028046805411577225,
-0.06001005694270134,
-0.02299332804977894,
0.060683853924274445,
-0.05579882487654686,
0.056641072034835815,
-0.0012936379062011838,
0.0011646689381450415,
0.02619386464357376,
-0.012233628891408443,
-0.022509034723043442,
0.04796593263745308,
-0.005266672000288963,
0.025878021493554115,
0.027625681832432747,
0.000906730885617435,
0.03234226256608963,
-0.0038874936290085316,
0.0016358004650101066,
0.022003687918186188,
0.02596224658191204,
0.014023402705788612,
-0.041143737733364105,
-0.014939346350729465,
-0.03350035101175308,
-0.010238558053970337,
-0.0005086378660053015,
0.013675976544618607,
0.007517049089074135,
-0.02280382253229618,
0.03581652790307999,
-0.0661163404583931,
0.05386165902018547,
-0.016823872923851013,
-0.03876439109444618,
-0.006153663154691458,
0.04240710660815239,
-0.0368482805788517,
0.017097601667046547,
0.029899748042225838,
-0.012486303225159645,
-0.012233628891408443,
0.06380016356706619,
-0.009833226911723614,
0.023961910977959633,
0.0016884409124031663,
0.07243319600820541,
-0.015444694086909294,
-0.003366353688761592,
0.018803151324391365,
0.047755371779203415,
-0.000500412832479924,
0.02743617631494999,
0.03747996687889099,
-0.006158926989883184,
-0.06396861374378204,
-0.013749673031270504,
-0.03644821420311928,
-0.004824492614716291,
-0.05280885100364685,
-0.029099613428115845,
-0.06139976531267166,
0.018645230680704117,
-0.01760295033454895,
-0.01641327701508999,
0.06502142548561096,
-0.028867995366454124,
-0.022951215505599976,
-0.04141746833920479,
-0.04649200290441513,
-0.024551482871174812,
-0.05718853324651718,
0.054703906178474426,
-0.023182833567261696,
-0.06657958030700684,
-0.008164525963366032,
0.04297562316060066,
0.03152107074856758,
-0.029520737007260323,
0.06426340341567993,
-0.020687676966190338,
0.05095591023564339,
0.025520065799355507,
-0.05794655531644821,
-0.041270073503255844,
0.03164741024374962,
0.06380016356706619,
-0.02461465261876583,
0.04695523902773857,
-0.0034690024331212044,
-0.037353627383708954,
-0.06923265755176544,
0.023835573345422745,
-0.010238558053970337,
-0.051040131598711014,
0.042786117643117905,
-0.006753763649612665,
0.06615845859050751,
0.04221760109066963,
-0.046070877462625504,
0.011896730400621891,
-0.049102965742349625,
-0.011896730400621891,
0.006643218453973532,
0.030089253559708595,
0.014244492165744305,
-0.027288783341646194,
0.014012875035405159,
0.041017401963472366,
-0.024488314986228943,
-0.09357357770204544,
0.02415141649544239,
0.005506185814738274,
0.002417510375380516,
-0.026699211448431015,
0.015392052941024303,
-0.01803460158407688,
0.0012456035474315286,
-0.005753595847636461,
-0.08005551993846893,
0.06422129273414612,
0.008332975208759308,
-0.030952556058764458,
-0.000349400652339682,
0.002618859987705946,
-0.04426005110144615,
0.0038980217650532722,
-0.002475414890795946,
-0.0018266219412907958,
-0.012528415769338608,
-0.040322545915842056,
0.016918625682592392,
0.022214248776435852,
0.026214919984340668,
-0.008438256569206715,
0.03152107074856758,
-0.011896730400621891,
-0.010949203744530678,
-0.016139546409249306,
-0.009864810854196548,
-0.035290125757455826,
-0.006106286775320768,
0.014233964495360851,
0.06855885684490204,
0.020782429724931717,
-0.015128850936889648,
0.035711247473955154,
0.005806236062198877,
0.028278423473238945,
0.0003155134036205709,
0.037753697484731674,
0.01667647995054722,
-0.017034433782100677,
-0.010128012858331203,
-0.03135262429714203,
-0.005911516956984997,
0.06544254720211029,
-0.0010356998536735773,
-0.03339507058262825,
-0.014044458977878094,
0.04042783007025719,
0.019813846796751022,
-0.011233462020754814,
-0.016529085114598274,
-0.018613645806908607,
-0.025604290887713432,
0.0020095473155379295,
0.0875094011425972,
-0.045186519622802734,
-0.07474937289953232,
0.003911181818693876,
-0.020613981410861015,
-0.002897854195907712,
-0.031668465584516525,
0.03181586042046547,
0.02789941243827343,
-0.0352059006690979,
0.02043500356376171,
0.07213840633630753,
0.017781928181648254,
0.060557518154382706,
0.003545331070199609,
0.03550068661570549,
0.006116814445704222,
0.03501639515161514,
-0.03246859833598137,
0.050913795828819275,
0.01146507915109396,
0.04779748618602753,
-0.06670591980218887,
0.0033610896207392216,
0.024404089897871017,
0.06417917460203171,
-0.05007154867053032,
0.01421290822327137,
-0.02085612714290619,
-0.04040677100419998,
0.015718424692749977,
-0.030131366103887558,
-0.0013153520412743092,
0.012465246953070164,
-0.030384039506316185,
-0.05188237875699997,
-0.046997349709272385,
-0.01828727498650551,
-0.02882588468492031,
0.004484962206333876,
0.01514990720897913,
0.06388439238071442,
0.012370494194328785,
-0.05777810513973236,
0.007732875179499388,
-0.04392315074801445,
-0.0013502263464033604,
-0.0031347358599305153,
-0.05125069618225098,
0.048513393849134445,
-0.0424492210149765,
0.01582370512187481,
-0.05125069618225098,
-0.0006550439866259694,
-0.00031140088685788214,
-0.01701337844133377,
-0.007985549047589302,
0.037227291613817215,
-0.03802742436528206,
-0.029204893857240677,
0.0026793964207172394,
-0.021498339250683784,
0.04586031660437584,
-0.037227291613817215,
0.03941713273525238,
-0.049397751688957214,
0.06278946995735168,
0.022024743258953094,
0.02014021761715412,
0.05748331919312477,
0.017329219728708267,
0.07243319600820541,
0.015392052941024303,
-0.015339412726461887,
0.010980787687003613,
0.06978011876344681,
-0.023582899942994118,
-0.06590577960014343,
-0.030805163085460663,
-0.04678678885102272,
0.039206571877002716,
0.010864978656172752,
-0.004950829781591892,
0.01210729219019413,
-0.016244828701019287,
0.05398799479007721,
0.03461632877588272,
-0.004735004156827927,
-0.010743905790150166,
0.0033558255527168512,
-0.0417754240334034,
-0.035121675580739975,
-0.003916445653885603,
0.014202380552887917,
0.01809776946902275,
0.001208755187690258,
0.006511617451906204,
0.007638122420758009,
-0.05449334532022476,
0.01549733430147171,
0.00479554058983922,
0.038743335753679276,
-0.021077217534184456,
0.06982222944498062,
0.023014383390545845,
0.011191349476575851,
-0.035416461527347565,
-0.004821860697120428,
0.016655422747135162,
-0.0021714165341109037,
0.013328549452126026,
-0.07609696686267853,
0.03358457610011101,
-0.022445866838097572,
-0.04280717298388481,
0.08178212493658066,
-0.035058505833148956,
0.024361977353692055,
0.019371667876839638,
-0.0391434021294117,
0.025520065799355507,
-0.042196545749902725,
-0.013328549452126026,
0.017160771414637566,
0.04057522118091583,
0.021961575374007225,
-0.00952264852821827,
0.0034400501754134893,
-0.024109303951263428,
0.053482647985219955,
-0.012939010746777058,
0.044133711606264114,
0.005537770222872496,
-0.032552823424339294,
0.017097601667046547,
-0.0013462782371789217,
-0.06135765090584755,
0.027709906920790672,
0.023267056792974472,
-0.0014410309959203005,
-0.012875841930508614,
0.036932505667209625,
0.028152085840702057,
-0.022361641749739647,
0.05478813126683235,
0.0021240401547402143,
-0.009422631934285164,
-0.01911899447441101,
-0.04543919488787651,
0.02602541446685791,
-0.020677149295806885,
0.03823798894882202,
0.005390377249568701,
0.007248583249747753,
0.04741847515106201,
0.01645538955926895,
0.00870145857334137,
-0.034005697816610336,
-0.005653579253703356,
0.018055656924843788,
-0.054661791771650314,
-0.03415309265255928,
-0.010075372643768787,
0.07420191168785095,
-0.101322241127491,
0.03261599317193031,
-0.03832221403717995,
-0.033479295670986176,
0.047881707549095154,
-0.046070877462625504,
-0.020403418689966202,
0.05504080280661583,
0.09020458906888962,
-0.027394065633416176,
0.03838538005948067,
-0.05777810513973236,
-0.015665782615542412,
0.0261517520993948,
-0.0322369821369648,
0.039269737899303436,
-0.006427392829209566,
-0.003087359480559826,
0.01563419960439205,
-0.0015384157886728644,
0.017066018655896187,
-0.0161184910684824,
-0.027752019464969635,
-0.04388104006648064,
0.06194722279906273,
0.003811164991930127,
-0.0056325229816138744,
0.029162783175706863,
-0.09096261113882065,
0.09559497237205505,
0.0473763607442379,
0.021687844768166542,
-0.025983301922678947,
0.09104683995246887,
0.024593595415353775,
-0.022888045758008957,
0.06969588994979858,
-0.023709237575531006,
-0.03000502847135067,
-0.014054987579584122,
0.026425480842590332,
-0.052893076092004776,
-0.007101190276443958,
-0.013760200701653957,
0.020866654813289642,
0.002583327703177929,
-0.023351281881332397,
-0.014665615744888783,
-0.034658439457416534,
0.01059651281684637,
0.030320871621370316,
0.020866654813289642,
-0.006674802862107754,
-0.0493556410074234,
0.0546196810901165,
-0.09348935633897781,
-0.050450559705495834,
0.0010455700103193521,
0.022761709988117218,
0.0012034911196678877,
-0.011707224883139133,
0.0338793620467186,
-0.0355217419564724,
0.026825549080967903,
-0.05175604298710823,
0.056935857981443405,
-0.020045464858412743,
0.028699547052383423,
0.062199898064136505,
0.023730292916297913,
0.03472160920500755,
-0.04049099609255791,
0.045186519622802734,
-0.06059962883591652,
0.04181753471493721,
-0.06653746962547302,
-0.026109639555215836,
-0.06371594220399857,
0.006437920965254307,
-0.0161184910684824,
-0.023709237575531006,
-0.056809522211551666,
-0.06110497936606407,
0.019108464941382408,
0.04002775996923447,
-0.041964929550886154,
0.020950879901647568,
0.0271413903683424,
-0.02006652019917965,
0.028741659596562386,
-0.034489989280700684,
0.016329051926732063,
-0.01881367899477482,
0.023582899942994118,
0.01950853317975998,
-0.06059962883591652,
0.05668318271636963,
-0.010764962062239647,
-0.0023517098743468523,
-0.053903769701719284,
0.0388275608420372,
-0.058283451944589615,
-0.019424308091402054,
0.029920803382992744,
0.01822410710155964,
-0.039269737899303436,
0.018739983439445496,
0.01327590923756361,
-0.010027996264398098,
-0.03493217006325722,
0.014139211736619473,
0.020477116107940674,
-0.06847463548183441,
0.057230643928050995,
-0.025246337056159973,
-0.004208600148558617,
-0.00426913658156991,
-0.006674802862107754,
-0.04463906213641167,
-0.0051903435960412025,
-0.00432704109698534,
0.012917954474687576,
0.031247342005372047,
0.0141497403383255,
0.01605532318353653,
0.07100137323141098,
-0.052640400826931,
0.019898071885108948,
-0.02935228869318962,
-0.011759866029024124,
0.0031347358599305153,
0.052092939615249634,
0.020740319043397903,
-0.030889388173818588,
0.028762714937329292,
-0.03350035101175308,
-0.02089823968708515,
0.0019424308557063341,
0.029668129980564117,
0.012328381650149822,
-0.019066354259848595,
0.0677587240934372,
-0.033247675746679306,
-0.01592898555099964,
0.010475439950823784,
-0.005443017464131117,
-0.022740652784705162,
-0.014791952446103096,
-0.025709571316838264,
0.012381022796034813,
0.003313713241368532,
0.024425147101283073,
0.0523035041987896,
0.06897997856140137,
-0.008211902342736721,
-0.014433997683227062,
-0.0016713327495381236,
-0.016265884041786194,
-0.012696865014731884,
-0.014760368503630161,
0.036764055490493774,
0.051082246005535126,
0.04000670462846756,
0.016739647835493088,
0.04017515480518341,
0.025456897914409637,
0.013886538334190845,
0.011633528396487236,
0.027415120974183083,
0.05777810513973236,
-0.037100955843925476,
0.0185925904661417,
0.01911899447441101,
-0.036048147827386856,
0.011833562515676022,
-0.015223603695631027,
0.003008398925885558,
0.0119283152744174,
0.014707728289067745,
0.0907941609621048,
0.03152107074856758,
0.048934515565633774,
-0.04649200290441513,
0.000281132641248405,
-0.011107124388217926,
0.06295792013406754,
0.03682722523808479,
0.027983637526631355,
0.04906085506081581,
-0.062368348240852356,
-0.03678511083126068,
-0.006906420458108187,
-0.01514990720897913,
-0.040090929716825485,
-0.015444694086909294,
-0.038343269377946854,
0.02562534809112549,
-0.0026491282042115927,
0.0018305699340999126,
-0.029057500883936882,
-0.01773981563746929,
-0.051503367722034454,
0.016623837873339653,
0.01769770309329033,
0.051840268075466156,
0.0028741660062223673,
-0.031142061576247215,
-0.03661666437983513,
0.019434835761785507,
0.09020458906888962,
-0.05087168514728546,
0.017845096066594124,
-0.0279625803232193,
0.011601944454014301,
0.04293351247906685,
0.04268083721399307,
-0.03152107074856758,
-0.028531096875667572,
0.014876177534461021,
-0.00015816795348655432,
-0.03526907041668892,
0.0018700502114370465,
0.03270021826028824,
-0.052092939615249634,
-0.07036969065666199,
0.07946594804525375,
-0.05760965496301651,
-0.07407557219266891,
-0.04560764506459236,
-0.01701337844133377,
0.022235305979847908,
0.05247195065021515,
0.016508029773831367,
0.029983973130583763,
-0.06801139563322067,
0.011328214779496193,
0.04162802919745445,
0.0401330403983593,
0.021982630714774132,
0.032026421278715134,
-0.07445458322763443,
-0.014823537319898605,
-0.04040677100419998,
0.033310845494270325,
0.050324223935604095,
0.020456060767173767,
-0.05668318271636963,
-0.018276747316122055,
0.07512838393449783,
-0.029983973130583763,
0.023056495934724808,
-0.059041474014520645,
0.034068867564201355,
-0.037353627383708954,
-0.0011916471412405372,
-0.014991986565291882,
0.019519060850143433,
0.052724625915288925,
0.005232455674558878,
0.020866654813289642,
-0.007953965105116367,
-0.042259715497493744,
-0.031184174120426178,
0.0625367984175682,
-0.027099277824163437,
0.0025517435278743505,
0.04070155695080757,
0.09129951149225235,
-0.09534229338169098,
0.01538152527064085,
0.03937502205371857,
-0.0631684809923172,
0.012802145443856716,
-0.022614317014813423,
-0.010801810771226883,
0.02882588468492031,
0.012791617773473263,
0.002532003214582801,
0.03809059411287308,
-0.03425837308168411,
-0.01878209598362446,
-0.055883049964904785,
0.026972942054271698,
0.000008636316124466248,
0.02181418240070343,
0.02444620244204998,
-0.004434953909367323,
0.03310028463602066,
0.007632858119904995,
-0.009796379134058952,
-0.0013857585145160556,
0.017824040725827217,
-0.028531096875667572,
0.04817649722099304,
0.001400234643369913,
0.03251071274280548,
0.02257220447063446,
0.020719261839985847,
-0.04779748618602753,
0.0174345001578331,
0.0036953561939299107,
0.02089823968708515,
-0.05579882487654686,
-0.006443185266107321,
0.05870457738637924,
-0.04192281514406204,
-0.06417917460203171,
-0.005653579253703356,
0.030847275629639626,
-0.010143805295228958,
0.005192975513637066,
-0.04072261601686478,
0.0279625803232193,
-0.007401240523904562,
-0.07365445047616959,
0.028152085840702057,
-0.0008053981582634151,
-0.014686672016978264,
0.07538105547428131,
0.002939966507256031,
-0.002076663775369525,
0.008643553592264652,
-0.052724625915288925,
-0.01986648701131344,
-0.02573062852025032,
-0.046576227992773056,
-0.061441875994205475,
0.06405284255743027,
-0.07222262769937515,
0.01444452628493309,
-0.011307158507406712,
-0.020350778475403786,
0.019855959340929985,
-0.04299667850136757,
-0.006659010890871286,
-0.006880100350826979,
-0.0325738787651062,
-0.01004905253648758,
0.05053478479385376,
0.018550477921962738,
-0.045818205922842026,
0.00362692354246974,
0.0070011732168495655,
0.036406099796295166,
0.0069748531095683575,
0.004840285051614046,
-0.027036109939217567,
0.0016594886546954513,
0.03446893393993378,
-0.007885532453656197,
0.010907091200351715,
0.017002848908305168,
0.01298112329095602,
0.011612472124397755,
-0.040385715663433075,
0.0040533109568059444,
0.009364726953208447,
0.0018634701846167445,
0.04586031660437584,
-0.014655088074505329,
0.027583571150898933,
0.017023906111717224,
-0.0043823132291436195,
0.051208581775426865,
0.04280717298388481,
-0.011444022879004478,
-0.009896395727992058,
0.01904529705643654,
-0.05146125704050064,
-0.0792974978685379,
0.027225615456700325,
0.01616060361266136,
0.0024569907691329718,
0.03280549868941307,
-0.006237887777388096,
-0.023498674854636192,
0.046070877462625504,
-0.004674467723816633,
-0.008959396742284298,
-0.0407857820391655,
-0.0020319195464253426,
-0.016139546409249306,
-0.015276244841516018,
-0.011433495208621025,
0.03040509670972824,
0.007711818907409906,
-0.0401330403983593,
-0.02579379640519619,
-0.08123467117547989,
0.028152085840702057,
0.02457254007458687,
0.1197674423456192,
0.01582370512187481,
-0.03621659800410271,
0.01681334339082241
] |
723,030
|
isort.settings
|
__delattr__
| null |
"""isort/settings.py.
Defines how the default settings for isort should be loaded
"""
import configparser
import fnmatch
import os
import posixpath
import re
import stat
import subprocess # nosec: Needed for gitignore support.
import sys
from dataclasses import dataclass, field
from pathlib import Path
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
FrozenSet,
Iterable,
List,
Optional,
Pattern,
Set,
Tuple,
Type,
Union,
)
from warnings import warn
from . import sorting, stdlibs
from .exceptions import (
FormattingPluginDoesNotExist,
InvalidSettingsPath,
ProfileDoesNotExist,
SortingFunctionDoesNotExist,
UnsupportedSettings,
)
from .profiles import profiles as profiles
from .sections import DEFAULT as SECTION_DEFAULTS
from .sections import FIRSTPARTY, FUTURE, LOCALFOLDER, STDLIB, THIRDPARTY
from .utils import Trie
from .wrap_modes import WrapModes
from .wrap_modes import from_string as wrap_mode_from_string
if TYPE_CHECKING:
tomllib: Any
else:
if sys.version_info >= (3, 11):
import tomllib
else:
from ._vendored import tomli as tomllib
_SHEBANG_RE = re.compile(rb"^#!.*\bpython[23w]?\b")
CYTHON_EXTENSIONS = frozenset({"pyx", "pxd"})
SUPPORTED_EXTENSIONS = frozenset({"py", "pyi", *CYTHON_EXTENSIONS})
BLOCKED_EXTENSIONS = frozenset({"pex"})
FILE_SKIP_COMMENTS: Tuple[str, ...] = (
"isort:" + "skip_file",
"isort: " + "skip_file",
) # Concatenated to avoid this file being skipped
MAX_CONFIG_SEARCH_DEPTH: int = 25 # The number of parent directories to for a config file within
STOP_CONFIG_SEARCH_ON_DIRS: Tuple[str, ...] = (".git", ".hg")
VALID_PY_TARGETS: Tuple[str, ...] = tuple(
target.replace("py", "") for target in dir(stdlibs) if not target.startswith("_")
)
CONFIG_SOURCES: Tuple[str, ...] = (
".isort.cfg",
"pyproject.toml",
"setup.cfg",
"tox.ini",
".editorconfig",
)
DEFAULT_SKIP: FrozenSet[str] = frozenset(
{
".venv",
"venv",
".tox",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".svn",
".bzr",
"_build",
"buck-out",
"build",
"dist",
".pants.d",
".direnv",
"node_modules",
"__pypackages__",
".pytype",
}
)
CONFIG_SECTIONS: Dict[str, Tuple[str, ...]] = {
".isort.cfg": ("settings", "isort"),
"pyproject.toml": ("tool.isort",),
"setup.cfg": ("isort", "tool:isort"),
"tox.ini": ("isort", "tool:isort"),
".editorconfig": ("*", "*.py", "**.py", "*.{py}"),
}
FALLBACK_CONFIG_SECTIONS: Tuple[str, ...] = ("isort", "tool:isort", "tool.isort")
IMPORT_HEADING_PREFIX = "import_heading_"
IMPORT_FOOTER_PREFIX = "import_footer_"
KNOWN_PREFIX = "known_"
KNOWN_SECTION_MAPPING: Dict[str, str] = {
STDLIB: "STANDARD_LIBRARY",
FUTURE: "FUTURE_LIBRARY",
FIRSTPARTY: "FIRST_PARTY",
THIRDPARTY: "THIRD_PARTY",
LOCALFOLDER: "LOCAL_FOLDER",
}
RUNTIME_SOURCE = "runtime"
DEPRECATED_SETTINGS = ("not_skip", "keep_direct_and_as_imports")
_STR_BOOLEAN_MAPPING = {
"y": True,
"yes": True,
"t": True,
"on": True,
"1": True,
"true": True,
"n": False,
"no": False,
"f": False,
"off": False,
"0": False,
"false": False,
}
@dataclass(frozen=True)
class _Config:
"""Defines the data schema and defaults used for isort configuration.
NOTE: known lists, such as known_standard_library, are intentionally not complete as they are
dynamically determined later on.
"""
py_version: str = "3"
force_to_top: FrozenSet[str] = frozenset()
skip: FrozenSet[str] = DEFAULT_SKIP
extend_skip: FrozenSet[str] = frozenset()
skip_glob: FrozenSet[str] = frozenset()
extend_skip_glob: FrozenSet[str] = frozenset()
skip_gitignore: bool = False
line_length: int = 79
wrap_length: int = 0
line_ending: str = ""
sections: Tuple[str, ...] = SECTION_DEFAULTS
no_sections: bool = False
known_future_library: FrozenSet[str] = frozenset(("__future__",))
known_third_party: FrozenSet[str] = frozenset()
known_first_party: FrozenSet[str] = frozenset()
known_local_folder: FrozenSet[str] = frozenset()
known_standard_library: FrozenSet[str] = frozenset()
extra_standard_library: FrozenSet[str] = frozenset()
known_other: Dict[str, FrozenSet[str]] = field(default_factory=dict)
multi_line_output: WrapModes = WrapModes.GRID # type: ignore
forced_separate: Tuple[str, ...] = ()
indent: str = " " * 4
comment_prefix: str = " #"
length_sort: bool = False
length_sort_straight: bool = False
length_sort_sections: FrozenSet[str] = frozenset()
add_imports: FrozenSet[str] = frozenset()
remove_imports: FrozenSet[str] = frozenset()
append_only: bool = False
reverse_relative: bool = False
force_single_line: bool = False
single_line_exclusions: Tuple[str, ...] = ()
default_section: str = THIRDPARTY
import_headings: Dict[str, str] = field(default_factory=dict)
import_footers: Dict[str, str] = field(default_factory=dict)
balanced_wrapping: bool = False
use_parentheses: bool = False
order_by_type: bool = True
atomic: bool = False
lines_before_imports: int = -1
lines_after_imports: int = -1
lines_between_sections: int = 1
lines_between_types: int = 0
combine_as_imports: bool = False
combine_star: bool = False
include_trailing_comma: bool = False
from_first: bool = False
verbose: bool = False
quiet: bool = False
force_adds: bool = False
force_alphabetical_sort_within_sections: bool = False
force_alphabetical_sort: bool = False
force_grid_wrap: int = 0
force_sort_within_sections: bool = False
lexicographical: bool = False
group_by_package: bool = False
ignore_whitespace: bool = False
no_lines_before: FrozenSet[str] = frozenset()
no_inline_sort: bool = False
ignore_comments: bool = False
case_sensitive: bool = False
sources: Tuple[Dict[str, Any], ...] = ()
virtual_env: str = ""
conda_env: str = ""
ensure_newline_before_comments: bool = False
directory: str = ""
profile: str = ""
honor_noqa: bool = False
src_paths: Tuple[Path, ...] = ()
old_finders: bool = False
remove_redundant_aliases: bool = False
float_to_top: bool = False
filter_files: bool = False
formatter: str = ""
formatting_function: Optional[Callable[[str, str, object], str]] = None
color_output: bool = False
treat_comments_as_code: FrozenSet[str] = frozenset()
treat_all_comments_as_code: bool = False
supported_extensions: FrozenSet[str] = SUPPORTED_EXTENSIONS
blocked_extensions: FrozenSet[str] = BLOCKED_EXTENSIONS
constants: FrozenSet[str] = frozenset()
classes: FrozenSet[str] = frozenset()
variables: FrozenSet[str] = frozenset()
dedup_headings: bool = False
only_sections: bool = False
only_modified: bool = False
combine_straight_imports: bool = False
auto_identify_namespace_packages: bool = True
namespace_packages: FrozenSet[str] = frozenset()
follow_links: bool = True
indented_import_headings: bool = True
honor_case_in_force_sorted_sections: bool = False
sort_relative_in_force_sorted_sections: bool = False
overwrite_in_place: bool = False
reverse_sort: bool = False
star_first: bool = False
import_dependencies = Dict[str, str]
git_ls_files: Dict[Path, Set[str]] = field(default_factory=dict)
format_error: str = "{error}: {message}"
format_success: str = "{success}: {message}"
sort_order: str = "natural"
sort_reexports: bool = False
split_on_trailing_comma: bool = False
def __post_init__(self) -> None:
py_version = self.py_version
if py_version == "auto": # pragma: no cover
if sys.version_info.major == 2 and sys.version_info.minor <= 6:
py_version = "2"
elif sys.version_info.major == 3 and (
sys.version_info.minor <= 5 or sys.version_info.minor >= 12
):
py_version = "3"
else:
|
(self, name)
|
[
0.016008146107196808,
-0.026525527238845825,
-0.04345209151506424,
0.0025997189804911613,
0.04673074930906296,
-0.028243860229849815,
-0.010724766179919243,
0.016551297158002853,
-0.0742240771651268,
-0.10744517296552658,
-0.0002828397846315056,
-0.0228518508374691,
-0.04617772251367569,
0.02591324783861637,
-0.02449117973446846,
0.0511549636721611,
0.0059154098853468895,
0.0880892425775528,
0.017746230587363243,
0.026407022029161453,
-0.024767693132162094,
-0.04214853048324585,
-0.01799311675131321,
0.01381579041481018,
0.027611829340457916,
0.02063974365592003,
0.06936533749103546,
-0.03717128932476044,
-0.014832964166998863,
-0.05601369962096214,
-0.033912383019924164,
0.0028885765932500362,
-0.031897787004709244,
-0.008813861757516861,
0.014092303812503815,
-0.07777924835681915,
0.04297807067632675,
0.06612618267536163,
-0.016037773340940475,
-0.014674956910312176,
-0.008497847244143486,
0.006547440309077501,
0.033872880041599274,
-0.029586924239993095,
-0.0415165014564991,
0.038652610033750534,
-0.03341861069202423,
-0.004752572625875473,
0.032727327197790146,
-0.013470148667693138,
0.01690681464970112,
-0.006117857061326504,
0.01922755129635334,
0.033655621111392975,
-0.011248166672885418,
0.024649187922477722,
0.03527519851922989,
0.007214034907519817,
0.0381588377058506,
-0.0006900488515384495,
0.026525527238845825,
0.04424213245511055,
0.01967194676399231,
-0.0023293779231607914,
-0.030001694336533546,
0.00888792797923088,
-0.01791411265730858,
-0.009850786998867989,
-0.024175165221095085,
0.007322665303945541,
-0.051984503865242004,
-0.01571188122034073,
0.05297205224633217,
-0.04274106025695801,
0.04558519646525383,
-0.0005240174359641969,
-0.03442590683698654,
-0.028500622138381004,
0.01576125994324684,
-0.04752079024910927,
0.021212521940469742,
0.037349049001932144,
-0.004651349037885666,
0.012235714122653008,
0.041239988058805466,
0.0010258150286972523,
0.06316354125738144,
0.036638014018535614,
0.01810174621641636,
-0.007470797281712294,
-0.041714008897542953,
0.03788232430815697,
0.03027820773422718,
0.0381588377058506,
-0.005090807564556599,
-0.013865168206393719,
0.017746230587363243,
-0.09488356858491898,
-0.008443531580269337,
-0.030475717037916183,
-0.00579690421000123,
-0.04293856769800186,
-0.03337910771369934,
-0.05230052024126053,
-0.01620565541088581,
-0.017627723515033722,
-0.03414939343929291,
0.02982393652200699,
-0.010151988826692104,
-0.06513863801956177,
-0.06138595566153526,
-0.05826530605554581,
0.013203511014580727,
-0.06936533749103546,
0.06063542142510414,
-0.021212521940469742,
-0.0371120385825634,
-0.0228518508374691,
0.030515220016241074,
0.029053648933768272,
0.00026015707408078015,
0.031087996438145638,
-0.031008994206786156,
0.04969339445233345,
0.05941086262464523,
-0.045901209115982056,
-0.007154782302677631,
0.052656035870313644,
0.04538768529891968,
-0.004248923622071743,
0.043136078864336014,
-0.024313421919941902,
-0.03922538831830025,
-0.03764531388878822,
0.012107333168387413,
-0.03179903328418732,
-0.029033899307250977,
0.02105451375246048,
-0.0167685579508543,
0.0415165014564991,
0.019434936344623566,
-0.048547837883234024,
-0.01862514764070511,
-0.05893683806061745,
-0.021627292037010193,
-0.0021713702008128166,
0.0006039470317773521,
-0.016788309440016747,
-0.05573718622326851,
0.028737634420394897,
0.07244648784399033,
-0.06600768119096756,
-0.0839020386338234,
0.0028490747790783644,
-0.016857437789440155,
0.024984953925013542,
-0.05976637825369835,
-0.035255447030067444,
-0.014023175463080406,
0.027651332318782806,
-0.015840262174606323,
-0.06383507698774338,
0.04060795530676842,
0.03146326541900635,
-0.0170944482088089,
-0.006448685657233,
0.00015507583157159388,
-0.06612618267536163,
-0.023878900334239006,
0.024945450946688652,
0.026347769424319267,
0.0006298701628111303,
-0.03991667181253433,
0.015316862612962723,
0.03535420447587967,
0.06442760676145554,
0.015425493009388447,
0.06031940504908562,
-0.0055845812894403934,
0.01963244564831257,
-0.011811069212853909,
-0.035966482013463974,
-0.046612244099378586,
0.016679678112268448,
0.018388135358691216,
0.03239155933260918,
0.02713780663907528,
-0.016106901690363884,
0.042425043880939484,
0.023543134331703186,
-0.014586078003048897,
-0.006656070705503225,
0.06810127943754196,
-0.008591664023697376,
-0.031305257230997086,
-0.00043945867219008505,
-0.0396401584148407,
0.003382350318133831,
0.05790979042649269,
-0.028540125116705894,
-0.05775178223848343,
0.018269630149006844,
0.05790979042649269,
-0.011001279577612877,
-0.015593376010656357,
-0.00806332565844059,
-0.030752230435609818,
-0.046533241868019104,
0.008443531580269337,
0.05731726065278053,
-0.018536267802119255,
-0.06300553679466248,
0.003174965502694249,
0.005708024837076664,
-0.01511935330927372,
-0.06703472882509232,
0.0406869612634182,
0.05257703363895416,
0.002604656619951129,
0.022832099348306656,
0.05790979042649269,
0.02050148695707321,
-0.00864104088395834,
-0.023878900334239006,
0.052616532891988754,
-0.005762340035289526,
0.03655901178717613,
0.036835525184869766,
0.06509913504123688,
-0.04080546647310257,
0.03653926029801369,
-0.0645856112241745,
0.0011869086883962154,
0.05162898823618889,
0.07035288959741592,
-0.08327001333236694,
-0.006823953706771135,
0.025024455040693283,
-0.04088446870446205,
-0.015810636803507805,
-0.025735490024089813,
0.0054117608815431595,
0.011337046511471272,
-0.023602386936545372,
-0.07935932278633118,
-0.01903991773724556,
-0.014240436255931854,
-0.010665513575077057,
-0.014882341958582401,
-0.0182498786598444,
0.024649187922477722,
-0.011880197562277317,
-0.042583052068948746,
-0.031008994206786156,
-0.02859937772154808,
-0.02385914884507656,
0.01371703576296568,
-0.0385933592915535,
0.04218803346157074,
-0.042425043880939484,
-0.0027355067431926727,
-0.05755427107214928,
-0.0190794188529253,
0.007060965057462454,
0.0025429350789636374,
0.0026836604811251163,
0.04637523368000984,
-0.02863887883722782,
-0.0013504712842404842,
0.008181831799447536,
-0.06438810378313065,
0.043175578117370605,
-0.06553365290164948,
0.057435765862464905,
-0.06968135386705399,
0.04412362352013588,
0.01870415173470974,
-0.021587789058685303,
0.026328017935156822,
0.031818781048059464,
0.04499266669154167,
0.015702005475759506,
-0.021943306550383568,
0.02780933864414692,
0.04230653867125511,
-0.02273334562778473,
-0.06916783004999161,
-0.02609100751578808,
-0.06573116779327393,
0.05601369962096214,
0.01398367341607809,
0.029705431312322617,
0.049337875097990036,
-0.03448516130447388,
0.08295399695634842,
0.05755427107214928,
-0.012788740918040276,
-0.04218803346157074,
0.020363230258226395,
-0.06095143407583237,
-0.03691452741622925,
0.009544647298753262,
0.038731615990400314,
-0.008922492153942585,
-0.029784435406327248,
0.022239571437239647,
0.006014164537191391,
-0.06241300702095032,
-0.0035156693775206804,
-0.008636103011667728,
0.04345209151506424,
-0.0012313483748584986,
0.054710134863853455,
0.027947595342993736,
0.01438856776803732,
-0.049969907850027084,
-0.031127499416470528,
-0.005174749065190554,
-0.007075778208673,
0.037507057189941406,
-0.07489560544490814,
0.02135077863931656,
0.02042248286306858,
-0.0364997573196888,
0.0607934296131134,
-0.06043791025876999,
0.03420864790678024,
-0.00037588528357446194,
-0.011860446073114872,
-0.000045134009269531816,
-0.00829046219587326,
0.0032342183403670788,
0.031976789236068726,
0.053288064897060394,
0.02146928384900093,
0.016156278550624847,
0.002397271804511547,
-0.044558145105838776,
0.02075825072824955,
-0.022298824042081833,
0.06498062610626221,
0.027374818921089172,
-0.012344344519078732,
0.029725180938839912,
0.00567346066236496,
-0.05526316165924072,
0.05388059467077255,
0.002298516919836402,
0.03015970252454281,
0.016472293063998222,
0.0578702874481678,
0.02135077863931656,
-0.050562433898448944,
0.045980215072631836,
0.0011943153804168105,
-0.04838982969522476,
-0.016462417319417,
-0.03960065916180611,
0.015800761058926582,
-0.0037452741526067257,
0.029132653027772903,
0.0006088847876526415,
-0.008660792373120785,
0.051431477069854736,
-0.00674001220613718,
-0.04708626866340637,
0.008705231361091137,
-0.0360652357339859,
0.038395848125219345,
-0.03655901178717613,
-0.014813213609158993,
-0.023760395124554634,
0.049377378076314926,
-0.10144088417291641,
-0.004950082395225763,
-0.011050657369196415,
0.0065523781813681126,
0.021666793152689934,
-0.07023438066244125,
0.002604656619951129,
0.05617170408368111,
0.07347353547811508,
-0.024372674524784088,
0.030100449919700623,
-0.04139799252152443,
-0.01653154566884041,
0.038060083985328674,
-0.0266242828220129,
0.044518645852804184,
-0.011899948120117188,
-0.011880197562277317,
0.008275648579001427,
0.007386855781078339,
0.02508370764553547,
0.018911536782979965,
-0.012067831121385098,
-0.023641888052225113,
0.03448516130447388,
-0.002854012418538332,
-0.002129399450495839,
0.045980215072631836,
-0.06644219905138016,
0.10341598093509674,
0.029251158237457275,
-0.010151988826692104,
-0.01356890331953764,
0.09417253732681274,
0.006098106037825346,
-0.02901414781808853,
0.055342163890600204,
0.02251608483493328,
-0.009934728965163231,
-0.05459162965416908,
-0.023167865350842476,
-0.05154998227953911,
0.014852715656161308,
-0.0005021062097512186,
0.03333960473537445,
0.023878900334239006,
-0.028362365439534187,
0.006819015834480524,
-0.0251627117395401,
0.013578779064118862,
0.058778829872608185,
0.010487754829227924,
0.02273334562778473,
-0.04605921730399132,
0.03140401095151901,
-0.07623866945505142,
-0.008754609152674675,
0.018506640568375587,
0.022970356047153473,
0.009791534394025803,
-0.012759114615619183,
0.034583915024995804,
-0.02046198584139347,
0.023760395124554634,
-0.03493943437933922,
0.030100449919700623,
-0.022792598232626915,
0.03598623350262642,
0.03630224987864494,
0.024214666336774826,
-0.018319007009267807,
0.006117857061326504,
0.05893683806061745,
-0.042543549090623856,
0.04285956546664238,
-0.02709830552339554,
-0.005234002135694027,
-0.06968135386705399,
0.020224973559379578,
0.0056635853834450245,
-0.011820944026112556,
-0.07947783172130585,
-0.0683382898569107,
-0.003493449417874217,
0.0381588377058506,
-0.05731726065278053,
-0.011248166672885418,
0.018802905455231667,
0.008853363804519176,
0.05297205224633217,
0.017054947093129158,
0.06399308145046234,
-0.034702420234680176,
0.003614424029365182,
-0.005179686937481165,
-0.050799448043107986,
0.020817503333091736,
-0.01142592541873455,
-0.021331027150154114,
-0.01784498430788517,
0.03377412632107735,
-0.033280353993177414,
0.00008941934356698766,
0.006621506530791521,
0.0030268332920968533,
-0.033872880041599274,
-0.017933864146471024,
0.025439225137233734,
-0.025656485930085182,
-0.00301942671649158,
0.038771118968725204,
0.0011523445136845112,
-0.04684925824403763,
0.06490162760019302,
-0.050680942833423615,
0.022160567343235016,
-0.03655901178717613,
-0.01746971718966961,
-0.021824801340699196,
0.025300968438386917,
0.018131373450160027,
0.05151047930121422,
0.03349761292338371,
-0.008127516135573387,
-0.0058067794889211655,
0.033438362181186676,
-0.07118242979049683,
0.03385313227772713,
-0.006937521509826183,
-0.024372674524784088,
-0.015781009569764137,
0.041832514107227325,
0.014250311069190502,
0.012057955376803875,
-0.031384263187646866,
-0.03357661888003349,
-0.039067380130290985,
0.00003116947118542157,
-0.00654250243678689,
0.03409014269709587,
-0.02575523965060711,
0.04961438849568367,
0.003792182542383671,
0.0058610946871340275,
0.009376764297485352,
-0.0122653404250741,
-0.0029305473435670137,
-0.02302960865199566,
-0.03602573648095131,
0.0012677641352638602,
-0.050799448043107986,
0.024135662242770195,
0.04293856769800186,
0.06095143407583237,
-0.006231425330042839,
0.04503216966986656,
0.02897464483976364,
0.014902092516422272,
-0.028322864323854446,
-0.007169595453888178,
0.0038489666767418385,
0.08022836595773697,
0.03237180784344673,
-0.016699429601430893,
0.02692054584622383,
0.05850231647491455,
-0.01503047440201044,
0.01308500487357378,
0.026703286916017532,
-0.000648078101221472,
-0.061504460871219635,
0.02478744462132454,
0.029804185032844543,
-0.0059993513859808445,
-0.003900812938809395,
-0.04878484830260277,
-0.003826746717095375,
0.002947829430922866,
0.015356364659965038,
0.047323279082775116,
0.006754825357347727,
0.04961438849568367,
-0.045940712094306946,
0.025261467322707176,
0.0063054910860955715,
0.056132204830646515,
0.016561172902584076,
-0.008769422769546509,
0.0557766854763031,
-0.07860878854990005,
-0.053406573832035065,
0.006478311959654093,
-0.0009505145135335624,
-0.016294535249471664,
0.006265989504754543,
-0.01848689094185829,
0.025320719927549362,
0.014398443512618542,
-0.010008794255554676,
0.03721079230308533,
0.009717468172311783,
-0.03586772829294205,
-0.009258258156478405,
0.016817934811115265,
0.047244276851415634,
0.010468004271388054,
-0.028243860229849815,
0.015326738357543945,
0.004031662829220295,
0.020738499239087105,
-0.03233230859041214,
0.0029107965528964996,
-0.02553798072040081,
0.04167450591921806,
0.06383507698774338,
0.0423460379242897,
-0.03379387781023979,
-0.05581618845462799,
0.016926566138863564,
0.03450491279363632,
-0.041042476892471313,
-0.018911536782979965,
0.010556883178651333,
-0.0274735726416111,
-0.02097550965845585,
0.07517211884260178,
-0.024609684944152832,
-0.0381588377058506,
0.008127516135573387,
-0.02083725295960903,
0.0033033466897904873,
0.06407208740711212,
0.010309997014701366,
0.03162127360701561,
-0.0477973036468029,
0.012818367220461369,
0.030120201408863068,
0.0064684366807341576,
0.0016368600772693753,
0.01619577966630459,
-0.07888530194759369,
-0.04131899029016495,
-0.029843688011169434,
0.05731726065278053,
0.022634590044617653,
0.05696174502372742,
-0.060832928866147995,
-0.037724316120147705,
0.08224295824766159,
0.0040464759804308414,
-0.004169919528067112,
-0.0272563137114048,
0.026723036542534828,
-0.05083894729614258,
-0.02482694573700428,
0.016808059066534042,
-0.01967194676399231,
0.011297544464468956,
-0.007717684376984835,
0.052024006843566895,
-0.00953970942646265,
0.016808059066534042,
-0.009396514855325222,
0.050601936876773834,
-0.03069297783076763,
0.009253320284187794,
0.018872033804655075,
0.061504460871219635,
-0.04973289370536804,
0.03886987268924713,
0.05095745250582695,
-0.03337910771369934,
-0.02247658185660839,
-0.00780162587761879,
0.009638464078307152,
0.05941086262464523,
0.006621506530791521,
-0.021607540547847748,
0.06106994301080704,
-0.01694631576538086,
-0.02063974365592003,
-0.08793123811483383,
0.0385933592915535,
-0.031087996438145638,
-0.007796688005328178,
0.013015876524150372,
-0.025636734440922737,
0.0316607765853405,
0.0011585167376324534,
-0.01258135586977005,
0.021370530128479004,
0.002854012418538332,
-0.041081979870796204,
0.042425043880939484,
0.017726479098200798,
0.04357059672474861,
0.025004703551530838,
0.013638031668961048,
0.0002657120057847351,
0.043926116079092026,
0.00024441801360808313,
0.009495269507169724,
-0.050601936876773834,
0.02150878682732582,
0.09077537059783936,
-0.011317295022308826,
-0.04842933267354965,
-0.022990107536315918,
0.021568039432168007,
-0.02826361171901226,
0.0063301799818873405,
-0.03760581091046333,
0.06731124222278595,
-0.039067380130290985,
-0.029843688011169434,
0.02692054584622383,
-0.037546560168266296,
-0.02336537465453148,
0.06857530027627945,
0.016738930717110634,
-0.020284226164221764,
0.01356890331953764,
-0.029547423124313354,
-0.035255447030067444,
-0.0032465625554323196,
-0.002224450930953026,
-0.07185395807027817,
0.07683119922876358,
-0.04147699847817421,
0.008325026370584965,
0.01033962331712246,
0.003915626090019941,
0.008695356547832489,
-0.06450660526752472,
-0.009826098568737507,
-0.02654527872800827,
-0.010280369780957699,
0.00722391065210104,
0.027453823015093803,
-0.008236146531999111,
-0.0360652357339859,
0.03420864790678024,
-0.02923140861093998,
0.008102827705442905,
0.015484745614230633,
-0.004858734086155891,
-0.043886613100767136,
-0.00719428388401866,
0.03841559961438179,
0.01858564466238022,
0.026940297335386276,
0.02356288582086563,
0.019770702347159386,
-0.02696004882454872,
-0.01321338675916195,
0.005653709638863802,
0.004192139487713575,
0.001970157492905855,
0.030297959223389626,
-0.027750086039304733,
0.00546113820746541,
0.04035119339823723,
-0.026328017935156822,
0.08042587339878082,
0.03954140469431877,
-0.001825728570111096,
0.008537348359823227,
0.020857004448771477,
-0.05182649567723274,
-0.10396900773048401,
0.0033329729922115803,
0.005446324590593576,
0.012156710959970951,
0.05802829563617706,
-0.0018639960326254368,
-0.024668937548995018,
0.0005638279253616929,
0.00613267021253705,
-0.029922692105174065,
-0.0419510193169117,
-0.032608821988105774,
0.009505145251750946,
0.01642291620373726,
0.014694707468152046,
0.060872431844472885,
0.010142113082110882,
-0.05316955968737602,
-0.02423441782593727,
-0.09006433933973312,
-0.0045748138800263405,
-0.00543151143938303,
0.11842670291662216,
-0.0012813429348170757,
-0.06403258442878723,
0.007342416327446699
] |
723,033
|
isort.settings
|
__init__
| null |
def __init__(
self,
settings_file: str = "",
settings_path: str = "",
config: Optional[_Config] = None,
**config_overrides: Any,
):
self._known_patterns: Optional[List[Tuple[Pattern[str], str]]] = None
self._section_comments: Optional[Tuple[str, ...]] = None
self._section_comments_end: Optional[Tuple[str, ...]] = None
self._skips: Optional[FrozenSet[str]] = None
self._skip_globs: Optional[FrozenSet[str]] = None
self._sorting_function: Optional[Callable[..., List[str]]] = None
if config:
config_vars = vars(config).copy()
config_vars.update(config_overrides)
config_vars["py_version"] = config_vars["py_version"].replace("py", "")
config_vars.pop("_known_patterns")
config_vars.pop("_section_comments")
config_vars.pop("_section_comments_end")
config_vars.pop("_skips")
config_vars.pop("_skip_globs")
config_vars.pop("_sorting_function")
super().__init__(**config_vars)
return
# We can't use self.quiet to conditionally show warnings before super.__init__() is called
# at the end of this method. _Config is also frozen so setting self.quiet isn't possible.
# Therefore we extract quiet early here in a variable and use that in warning conditions.
quiet = config_overrides.get("quiet", False)
sources: List[Dict[str, Any]] = [_DEFAULT_SETTINGS]
config_settings: Dict[str, Any]
project_root: str
if settings_file:
config_settings = _get_config_data(
settings_file,
CONFIG_SECTIONS.get(os.path.basename(settings_file), FALLBACK_CONFIG_SECTIONS),
)
project_root = os.path.dirname(settings_file)
if not config_settings and not quiet:
warn(
f"A custom settings file was specified: {settings_file} but no configuration "
"was found inside. This can happen when [settings] is used as the config "
"header instead of [isort]. "
"See: https://pycqa.github.io/isort/docs/configuration/config_files"
"/#custom_config_files for more information."
)
elif settings_path:
if not os.path.exists(settings_path):
raise InvalidSettingsPath(settings_path)
settings_path = os.path.abspath(settings_path)
project_root, config_settings = _find_config(settings_path)
else:
config_settings = {}
project_root = os.getcwd()
profile_name = config_overrides.get("profile", config_settings.get("profile", ""))
profile: Dict[str, Any] = {}
if profile_name:
if profile_name not in profiles:
import pkg_resources
for plugin in pkg_resources.iter_entry_points("isort.profiles"):
profiles.setdefault(plugin.name, plugin.load())
if profile_name not in profiles:
raise ProfileDoesNotExist(profile_name)
profile = profiles[profile_name].copy()
profile["source"] = f"{profile_name} profile"
sources.append(profile)
if config_settings:
sources.append(config_settings)
if config_overrides:
config_overrides["source"] = RUNTIME_SOURCE
sources.append(config_overrides)
combined_config = {**profile, **config_settings, **config_overrides}
if "indent" in combined_config:
indent = str(combined_config["indent"])
if indent.isdigit():
indent = " " * int(indent)
else:
indent = indent.strip("'").strip('"')
if indent.lower() == "tab":
indent = "\t"
combined_config["indent"] = indent
known_other = {}
import_headings = {}
import_footers = {}
for key, value in tuple(combined_config.items()):
# Collect all known sections beyond those that have direct entries
if key.startswith(KNOWN_PREFIX) and key not in (
"known_standard_library",
"known_future_library",
"known_third_party",
"known_first_party",
"known_local_folder",
):
import_heading = key[len(KNOWN_PREFIX) :].lower()
maps_to_section = import_heading.upper()
combined_config.pop(key)
if maps_to_section in KNOWN_SECTION_MAPPING:
section_name = f"known_{KNOWN_SECTION_MAPPING[maps_to_section].lower()}"
if section_name in combined_config and not quiet:
warn(
f"Can't set both {key} and {section_name} in the same config file.\n"
f"Default to {section_name} if unsure."
"\n\n"
"See: https://pycqa.github.io/isort/"
"#custom-sections-and-ordering."
)
else:
combined_config[section_name] = frozenset(value)
else:
known_other[import_heading] = frozenset(value)
if maps_to_section not in combined_config.get("sections", ()) and not quiet:
warn(
f"`{key}` setting is defined, but {maps_to_section} is not"
" included in `sections` config option:"
f" {combined_config.get('sections', SECTION_DEFAULTS)}.\n\n"
"See: https://pycqa.github.io/isort/"
"#custom-sections-and-ordering."
)
if key.startswith(IMPORT_HEADING_PREFIX):
import_headings[key[len(IMPORT_HEADING_PREFIX) :].lower()] = str(value)
if key.startswith(IMPORT_FOOTER_PREFIX):
import_footers[key[len(IMPORT_FOOTER_PREFIX) :].lower()] = str(value)
# Coerce all provided config values into their correct type
default_value = _DEFAULT_SETTINGS.get(key, None)
if default_value is None:
continue
combined_config[key] = type(default_value)(value)
for section in combined_config.get("sections", ()):
if section in SECTION_DEFAULTS:
continue
if not section.lower() in known_other:
config_keys = ", ".join(known_other.keys())
warn(
f"`sections` setting includes {section}, but no known_{section.lower()} "
"is defined. "
f"The following known_SECTION config options are defined: {config_keys}."
)
if "directory" not in combined_config:
combined_config["directory"] = (
os.path.dirname(config_settings["source"])
if config_settings.get("source", None)
else os.getcwd()
)
path_root = Path(combined_config.get("directory", project_root)).resolve()
path_root = path_root if path_root.is_dir() else path_root.parent
if "src_paths" not in combined_config:
combined_config["src_paths"] = (path_root / "src", path_root)
else:
src_paths: List[Path] = []
for src_path in combined_config.get("src_paths", ()):
full_paths = (
path_root.glob(src_path) if "*" in str(src_path) else [path_root / src_path]
)
for path in full_paths:
if path not in src_paths:
src_paths.append(path)
combined_config["src_paths"] = tuple(src_paths)
if "formatter" in combined_config:
import pkg_resources
for plugin in pkg_resources.iter_entry_points("isort.formatters"):
if plugin.name == combined_config["formatter"]:
combined_config["formatting_function"] = plugin.load()
break
else:
raise FormattingPluginDoesNotExist(combined_config["formatter"])
# Remove any config values that are used for creating config object but
# aren't defined in dataclass
combined_config.pop("source", None)
combined_config.pop("sources", None)
combined_config.pop("runtime_src_paths", None)
deprecated_options_used = [
option for option in combined_config if option in DEPRECATED_SETTINGS
]
if deprecated_options_used:
for deprecated_option in deprecated_options_used:
|
(self, settings_file: str = '', settings_path: str = '', config: Optional[isort.settings._Config] = None, **config_overrides: Any)
|
[
-0.020147649571299553,
-0.05471521615982056,
-0.036589741706848145,
-0.00035500572994351387,
0.001778668025508523,
0.0072576007805764675,
-0.023397954180836678,
0.015330424532294273,
-0.05479991436004639,
-0.062168680131435394,
0.013869374990463257,
-0.012471850961446762,
-0.03654739260673523,
0.0416928231716156,
-0.016431504860520363,
0.038791902363300323,
0.02691294066607952,
0.08160698413848877,
0.029835037887096405,
-0.009750911965966225,
-0.01455755066126585,
-0.09486228972673416,
-0.03199484944343567,
0.02674354426562786,
0.02642592415213585,
0.014843408018350601,
0.031444307416677475,
-0.04109993577003479,
-0.005103083327412605,
-0.043344445526599884,
-0.05293654650449753,
-0.01215423084795475,
-0.03849545866250992,
0.012641247361898422,
0.013647042214870453,
-0.0799977108836174,
0.00595006812363863,
0.07101967185735703,
-0.04279390349984169,
0.04412790760397911,
-0.009189784526824951,
-0.024329638108611107,
0.02759052813053131,
-0.05225896090269089,
-0.016844408586621284,
0.06606481224298477,
-0.054376423358917236,
0.04844752699136734,
-0.00792989507317543,
-0.006463552359491587,
0.01644209213554859,
-0.01068259496241808,
-0.020137062296271324,
0.05518105626106262,
-0.015033979900181293,
0.026277702301740646,
0.01841133087873459,
0.014388153329491615,
0.025769511237740517,
-0.008342799730598927,
-0.008385148830711842,
0.02092052437365055,
0.017691394314169884,
0.01317061297595501,
-0.03563688322901726,
0.00009445864998269826,
-0.026362400501966476,
-0.010915515944361687,
0.0017270548269152641,
0.010693182237446308,
0.011910723522305489,
-0.02236039750277996,
0.03417583554983139,
-0.06551427394151688,
0.05729851871728897,
-0.017087917774915695,
-0.033540595322847366,
-0.007818727754056454,
0.03891894966363907,
-0.03466285020112991,
0.024371987208724022,
0.03343472257256508,
-0.020285284146666527,
-0.016918521374464035,
0.06492137908935547,
-0.011286071501672268,
0.02735760807991028,
-0.0006157181924208999,
0.05251305550336838,
-0.00949681643396616,
0.0015523642068728805,
0.012323628179728985,
0.042412761598825455,
-0.00152457260992378,
0.025981256738305092,
0.024371987208724022,
-0.004737820941954851,
-0.05831490084528923,
-0.011910723522305489,
-0.03106316551566124,
-0.004293153993785381,
-0.059543028473854065,
-0.03620859980583191,
-0.060813505202531815,
0.018125474452972412,
-0.020888762548565865,
-0.022233350202441216,
0.06305801868438721,
-0.029856212437152863,
-0.018855998292565346,
-0.044847842305898666,
-0.05513870716094971,
-0.02193690463900566,
-0.056663282215595245,
0.04984505474567413,
-0.02439316175878048,
-0.06288861483335495,
0.004817225970327854,
0.037584949284791946,
0.025261320173740387,
-0.016833821311593056,
0.05924658477306366,
-0.028246941044926643,
0.05090378224849701,
0.02059231698513031,
-0.059373632073402405,
-0.038791902363300323,
0.030660849064588547,
0.07775320112705231,
-0.028882179409265518,
0.045864224433898926,
-0.010746119543910027,
-0.03853780776262283,
-0.07072322815656662,
0.02792932279407978,
-0.01417640782892704,
-0.04785463958978653,
0.04751584678888321,
-0.013340010307729244,
0.07305243611335754,
0.045610129833221436,
-0.048659276217222214,
0.017183203250169754,
-0.05386823043227196,
-0.014737535268068314,
0.005939480848610401,
0.0255789402872324,
0.02007353864610195,
-0.038770727813243866,
0.020465269684791565,
0.04050704464316368,
-0.019427713006734848,
-0.08135288953781128,
0.0187289509922266,
0.007601688150316477,
0.007315830793231726,
-0.023397954180836678,
0.02092052437365055,
-0.018517203629016876,
0.0015192788559943438,
0.002158487681299448,
-0.06907160580158234,
0.07224780321121216,
0.015118678100407124,
-0.028988054022192955,
-0.0018316045170649886,
0.0004972727037966251,
-0.039956506341695786,
0.0055106948129832745,
-0.010576722212135792,
-0.0001831273693824187,
-0.01493869349360466,
-0.034811072051525116,
0.019512411206960678,
0.02524014562368393,
0.02699763886630535,
-0.00559009937569499,
0.022656843066215515,
-0.011222547851502895,
-0.0037426138296723366,
-0.024880176410079002,
-0.0028929822146892548,
-0.030703198164701462,
0.0044334358535707,
0.01228127907961607,
0.06458258628845215,
0.02464725635945797,
-0.01355175580829382,
0.038855426013469696,
0.004846340976655483,
0.03182545304298401,
-0.008967450819909573,
0.030195007100701332,
0.010507904924452305,
-0.008491022512316704,
-0.00970856286585331,
-0.030279705300927162,
-0.006828814744949341,
0.06479433178901672,
0.002248479751870036,
-0.03553101047873497,
-0.011963659897446632,
0.041311681270599365,
0.01168838981539011,
-0.013827025890350342,
-0.012207168154418468,
-0.014843408018350601,
-0.02041233330965042,
-0.0028347522020339966,
0.08690063655376434,
-0.02496487647294998,
-0.08135288953781128,
0.006320623680949211,
-0.008676299825310707,
0.010057943873107433,
-0.0339217409491539,
0.03502282127737999,
0.025430716574192047,
-0.04095171391963959,
0.02682824246585369,
0.061660490930080414,
0.011169611476361752,
0.0452289879322052,
0.007781672291457653,
0.03171958029270172,
0.004841047339141369,
0.03133843466639519,
-0.029602117836475372,
0.04412790760397911,
0.005838901270180941,
0.04649946466088295,
-0.06085585430264473,
0.002953859278932214,
0.03097846731543541,
0.05814550444483757,
-0.05247070640325546,
0.01967122033238411,
-0.014991629868745804,
-0.04059174284338951,
0.00944917369633913,
-0.02818341739475727,
-0.002535660518333316,
0.015584519132971764,
-0.040634095668792725,
-0.05128492787480354,
-0.045271337032318115,
-0.01493869349360466,
-0.0330747552216053,
-0.003538808086887002,
0.010582015849649906,
0.06661535054445267,
0.017437297850847244,
-0.057594962418079376,
0.014007010497152805,
-0.04649946466088295,
-0.008702768012881279,
0.007061735261231661,
-0.06043236330151558,
0.045271337032318115,
-0.051962513476610184,
0.015796266496181488,
-0.05505400896072388,
0.002698440570384264,
0.0005432612961158156,
-0.015679804608225822,
-0.010507904924452305,
0.03521339222788811,
-0.039871808141469955,
-0.02532484382390976,
-0.004404320847243071,
-0.02996208518743515,
0.05391057953238487,
-0.03832605853676796,
0.045864224433898926,
-0.0573832169175148,
0.05251305550336838,
0.018707776442170143,
0.00906803086400032,
0.058950141072273254,
0.01798783801496029,
0.07381471991539001,
0.01931125298142433,
-0.00983031652867794,
0.006018885411322117,
0.07284069061279297,
-0.030597323551774025,
-0.059119537472724915,
-0.030322054401040077,
-0.04683825746178627,
0.03442993015050888,
0.007818727754056454,
0.0011943808058276772,
0.014324629679322243,
-0.013901137746870518,
0.047727592289447784,
0.02676471881568432,
0.007008798886090517,
-0.014864582568407059,
-0.0026481507811695337,
-0.046118319034576416,
-0.038431935012340546,
-0.011434294283390045,
0.030660849064588547,
0.019025394693017006,
-0.014991629868745804,
0.0025105157401412725,
0.012080119922757149,
-0.057594962418079376,
0.026976464316248894,
0.007294656243175268,
0.030364403501152992,
-0.016865583136677742,
0.07648272067308426,
0.03188897669315338,
0.012641247361898422,
-0.03714028000831604,
-0.010492024011909962,
0.0286916084587574,
-0.0008939659455791116,
0.012609485536813736,
-0.07567808777093887,
0.02752700448036194,
-0.018009012565016747,
-0.037097930908203125,
0.08740882575511932,
-0.0257271621376276,
0.031084340065717697,
0.022318048402667046,
-0.04489019140601158,
0.021386364474892616,
-0.04059174284338951,
-0.0026693253312259912,
0.023525001481175423,
0.04052821919322014,
0.017437297850847244,
-0.014748122543096542,
0.004862221889197826,
-0.029220974072813988,
0.05208956450223923,
-0.006548251025378704,
0.04954860731959343,
0.012916517443954945,
-0.03466285020112991,
0.019798269495368004,
0.0013214285718277097,
-0.06475198268890381,
0.026701195165514946,
0.010439086705446243,
-0.0005521943676285446,
-0.013287073001265526,
0.032693613320589066,
0.029644466936588287,
-0.023990843445062637,
0.05967007577419281,
0.009470348246395588,
-0.016495028510689735,
-0.014155232347548008,
-0.03968123719096184,
0.02996208518743515,
-0.01720437780022621,
0.02877630665898323,
0.009210959076881409,
-0.0015338364755734801,
0.04793933779001236,
0.020306458696722984,
0.0044307890348136425,
-0.03756377473473549,
-0.0070564416237175465,
0.008930395357310772,
-0.05522340536117554,
-0.02894570492208004,
-0.012249517254531384,
0.0760168805718422,
-0.09562458097934723,
0.029602117836475372,
-0.0511578805744648,
-0.03671678900718689,
0.04836282879114151,
-0.05386823043227196,
-0.015012804418802261,
0.04040117189288139,
0.09697975218296051,
-0.031041990965604782,
0.03218542039394379,
-0.05310594290494919,
-0.0128635810688138,
0.02295328676700592,
-0.033794693648815155,
0.035996850579977036,
-0.008602188900113106,
0.008379855193197727,
0.014314042404294014,
0.0035652765072882175,
0.009682094678282738,
-0.012408326379954815,
-0.025600114837288857,
-0.047304097563028336,
0.061575792729854584,
0.007914014160633087,
-0.012027183547616005,
0.021407539024949074,
-0.09655626118183136,
0.10045239329338074,
0.05255540460348129,
0.018453679978847504,
-0.03601802513003349,
0.09918191283941269,
0.018083125352859497,
-0.020359396934509277,
0.06682709604501724,
-0.016431504860520363,
-0.031169038265943527,
-0.018877172842621803,
0.028119893744587898,
-0.05518105626106262,
-0.00677587790414691,
-0.014271693304181099,
0.021068746224045753,
0.0020565849263221025,
-0.011243722401559353,
-0.01864425279200077,
-0.02617182955145836,
0.016516203060746193,
0.02413906529545784,
0.008633950725197792,
0.0017297016456723213,
-0.05005680024623871,
0.050607338547706604,
-0.08834051340818405,
-0.048066385090351105,
-0.004647828638553619,
0.017956076189875603,
0.0014808998676016927,
-0.010915515944361687,
0.03366764262318611,
-0.02919979952275753,
0.023397954180836678,
-0.051708418875932693,
0.061914585530757904,
-0.011370770633220673,
0.03129608556628227,
0.04213749244809151,
0.029559768736362457,
0.028882179409265518,
-0.055731598287820816,
0.03453580290079117,
-0.058103155344724655,
0.03519221767783165,
-0.07046913355588913,
-0.02784462459385395,
-0.059543028473854065,
0.01029086485505104,
-0.016431504860520363,
-0.02312268316745758,
-0.05217426270246506,
-0.058018457144498825,
0.024753129109740257,
0.03923656791448593,
-0.03737320378422737,
0.021142857149243355,
0.012185993604362011,
-0.018453679978847504,
0.025684813037514687,
-0.02118520624935627,
0.01841133087873459,
-0.011815437115728855,
0.017924314364790916,
0.02092052437365055,
-0.06136404722929001,
0.05247070640325546,
-0.016505615785717964,
-0.008056942373514175,
-0.05924658477306366,
0.0337735190987587,
-0.05772200971841812,
-0.007972244173288345,
0.031846627593040466,
0.01553158275783062,
-0.039702411741018295,
0.02244509570300579,
0.02354617603123188,
-0.015457471832633018,
-0.03512869402766228,
0.0187289509922266,
0.02708233706653118,
-0.06153344362974167,
0.059966519474983215,
-0.028649259358644485,
-0.006193575914949179,
-0.010777881368994713,
0.0006011606892570853,
-0.05149667337536812,
-0.006225338205695152,
-0.005965949036180973,
0.008369267918169498,
0.03453580290079117,
0.022254524752497673,
0.015923313796520233,
0.07898133248090744,
-0.05183546617627144,
0.025705987587571144,
-0.03614507615566254,
-0.014504614286124706,
-0.00029015843756496906,
0.05340239033102989,
0.030067959800362587,
-0.02668002061545849,
0.03563688322901726,
-0.037267331033945084,
-0.026214178651571274,
-0.0007728735799901187,
0.03284183517098427,
0.009893841110169888,
-0.008416910655796528,
0.061660490930080414,
-0.030766721814870834,
-0.019025394693017006,
0.0043090349063277245,
-0.015224550850689411,
-0.015404535457491875,
-0.007352886255830526,
-0.021661635488271713,
0.016907934099435806,
0.004380499478429556,
0.024075541645288467,
0.04819343239068985,
0.06153344362974167,
0.002055261516943574,
-0.008776879869401455,
0.005563631188124418,
-0.022063953801989555,
-0.016833821311593056,
-0.011614278890192509,
0.03324415162205696,
0.05297889560461044,
0.043153874576091766,
0.013647042214870453,
0.0221910011023283,
0.02496487647294998,
0.009899134747684002,
0.015828028321266174,
0.02244509570300579,
0.05488461256027222,
-0.04954860731959343,
0.016918521374464035,
0.007035267073661089,
-0.03682266175746918,
0.010317333042621613,
-0.012143643572926521,
-0.0014544316800311208,
0.018961871042847633,
0.008745118044316769,
0.08520666509866714,
0.037415552884340286,
0.04980270564556122,
-0.0416928231716156,
-0.007188783027231693,
-0.00466371001675725,
0.06826697289943695,
0.040464695543050766,
0.02555776573717594,
0.04793933779001236,
-0.06280391663312912,
-0.028501037508249283,
-0.006352385506033897,
-0.009719150140881538,
-0.04421260580420494,
-0.009925602935254574,
-0.050183847546577454,
0.01662207581102848,
-0.005733028054237366,
0.008342799730598927,
-0.031698405742645264,
-0.009099792689085007,
-0.05348708853125572,
0.017172615975141525,
0.012588310986757278,
0.06123699992895126,
0.0006458258721977472,
-0.03663209080696106,
-0.03832605853676796,
0.020317047834396362,
0.0887640044093132,
-0.05475756525993347,
0.014208169654011726,
-0.029093926772475243,
0.004862221889197826,
0.04497488960623741,
0.05357178673148155,
-0.03487459570169449,
-0.026785893365740776,
0.013784676790237427,
-0.010883754119277,
-0.032693613320589066,
-0.004724586848169565,
0.04412790760397911,
-0.048489876091480255,
-0.07076557725667953,
0.07017268985509872,
-0.05302124470472336,
-0.07313713431358337,
-0.03635682165622711,
-0.015108090825378895,
0.022572143003344536,
0.04760054498910904,
0.0070564416237175465,
0.027992846444249153,
-0.058950141072273254,
0.00415551895275712,
0.03349824622273445,
0.04383146017789841,
0.024689605459570885,
0.03239716589450836,
-0.08143758773803711,
-0.011159024201333523,
-0.04472079500555992,
0.03550983592867851,
0.049167465418577194,
0.025197796523571014,
-0.05331769213080406,
-0.019173618406057358,
0.074322909116745,
-0.02708233706653118,
0.03442993015050888,
-0.0624651275575161,
0.0406976193189621,
-0.030936118215322495,
-0.0067441160790622234,
-0.018019599840044975,
0.014250518754124641,
0.04853222519159317,
0.0027103512547910213,
0.017278488725423813,
-0.014536376111209393,
-0.0330747552216053,
-0.023842621594667435,
0.07360297441482544,
-0.018623078241944313,
0.007040560711175203,
0.03714028000831604,
0.1006217896938324,
-0.10443322360515594,
0.022169826552271843,
0.032778311520814896,
-0.06318506598472595,
0.009142141789197922,
-0.018263109028339386,
-0.012006008997559547,
0.028501037508249283,
0.019544173032045364,
-0.0010150582529604435,
0.037860218435525894,
-0.0443820022046566,
-0.019120680168271065,
-0.047134701162576675,
0.03470519930124283,
0.00237420410849154,
0.015404535457491875,
0.021725159138441086,
0.0019467414822429419,
0.028966879472136497,
0.008168109692633152,
0.0042958008125424385,
0.0009707239223644137,
0.014102295972406864,
-0.028924530372023582,
0.050522640347480774,
-0.0013167966390028596,
0.03502282127737999,
0.03021618165075779,
0.010582015849649906,
-0.04463609680533409,
0.018538378179073334,
0.005965949036180973,
0.020147649571299553,
-0.05611274018883705,
-0.004507547244429588,
0.055731598287820816,
-0.04531368613243103,
-0.06691179424524307,
-0.0007715501706115901,
0.03021618165075779,
-0.0015285428380593657,
-0.006611774675548077,
-0.03942713886499405,
0.020211173221468925,
-0.00822633970528841,
-0.07910837978124619,
0.034556977450847626,
0.009057443588972092,
-0.019364189356565475,
0.07457701116800308,
-0.004401674028486013,
-0.006357679143548012,
0.0010263073490932584,
-0.04141755402088165,
-0.029665641486644745,
-0.03792374208569527,
-0.044170256704092026,
-0.04954860731959343,
0.05416467413306236,
-0.07161255925893784,
0.013572930358350277,
-0.009560340084135532,
-0.02329208143055439,
0.022423921152949333,
-0.04103641211986542,
-0.008972744457423687,
-0.01873953826725483,
-0.04245511069893837,
-0.0009296981152147055,
0.049760352820158005,
0.024499034509062767,
-0.03449345380067825,
-0.0034170541912317276,
-0.007352886255830526,
0.018538378179073334,
0.02320738323032856,
0.007564632687717676,
-0.023355605080723763,
0.007633449975401163,
0.04109993577003479,
-0.002903569722548127,
0.0127894701436162,
0.01881364919245243,
0.009316832758486271,
-0.001666177879087627,
-0.04514428600668907,
0.004369912203401327,
0.00781343411654234,
0.007903426885604858,
0.04061291739344597,
-0.018951283767819405,
0.02659532055258751,
0.023567350581288338,
-0.0011698977323248982,
0.06195693463087082,
0.04256098344922066,
-0.0066382428631186485,
-0.006362972781062126,
0.008808641694486141,
-0.050522640347480774,
-0.08291980624198914,
0.021534588187932968,
0.008697474375367165,
0.018167823553085327,
0.039871808141469955,
-0.008888046257197857,
-0.038199011236429214,
0.04751584678888321,
0.0026759423781186342,
-0.007109378464519978,
-0.04040117189288139,
-0.004560483619570732,
-0.013149438425898552,
-0.01266242191195488,
-0.01055025402456522,
0.03021618165075779,
0.011518992483615875,
-0.03538278862833977,
-0.014599899761378765,
-0.08147993683815002,
0.029432719573378563,
0.019597109407186508,
0.13585636019706726,
0.021460477262735367,
-0.03131726011633873,
0.0177337434142828
] |
723,034
|
isort.settings
|
__post_init__
| null |
def __post_init__(self) -> None:
py_version = self.py_version
if py_version == "auto": # pragma: no cover
if sys.version_info.major == 2 and sys.version_info.minor <= 6:
py_version = "2"
elif sys.version_info.major == 3 and (
sys.version_info.minor <= 5 or sys.version_info.minor >= 12
):
py_version = "3"
else:
py_version = f"{sys.version_info.major}{sys.version_info.minor}"
if py_version not in VALID_PY_TARGETS:
raise ValueError(
f"The python version {py_version} is not supported. "
"You can set a python version with the -py or --python-version flag. "
f"The following versions are supported: {VALID_PY_TARGETS}"
)
if py_version != "all":
object.__setattr__(self, "py_version", f"py{py_version}")
if not self.known_standard_library:
object.__setattr__(
self, "known_standard_library", frozenset(getattr(stdlibs, self.py_version).stdlib)
)
if self.multi_line_output == WrapModes.VERTICAL_GRID_GROUPED_NO_COMMA: # type: ignore
vertical_grid_grouped = WrapModes.VERTICAL_GRID_GROUPED # type: ignore
object.__setattr__(self, "multi_line_output", vertical_grid_grouped)
if self.force_alphabetical_sort:
object.__setattr__(self, "force_alphabetical_sort_within_sections", True)
object.__setattr__(self, "no_sections", True)
object.__setattr__(self, "lines_between_types", 1)
object.__setattr__(self, "from_first", True)
if self.wrap_length > self.line_length:
raise ValueError(
"wrap_length must be set lower than or equal to line_length: "
f"{self.wrap_length} > {self.line_length}."
)
|
(self) -> NoneType
|
[
0.045019812881946564,
-0.009458433836698532,
-0.03509525582194328,
0.030336905270814896,
-0.015770530328154564,
-0.022587593644857407,
-0.03402705490589142,
0.07994027435779572,
-0.056595224887132645,
-0.03309480473399162,
0.012439684942364693,
0.03816390410065651,
-0.032628681510686874,
0.02724883332848549,
-0.023850012570619583,
0.03585270792245865,
0.002818593755364418,
0.028860846534371376,
0.012604771181941032,
-0.01585792750120163,
-0.007103536278009415,
0.021713610738515854,
-0.004554420243948698,
0.04175694286823273,
0.025675665587186813,
0.03787257894873619,
0.004115001298487186,
0.01864496059715748,
0.06502430140972137,
-0.057954754680395126,
-0.06898635625839233,
-0.014003142714500427,
-0.0035978949163109064,
0.014566375873982906,
0.061411842703819275,
-0.08561144769191742,
0.020237552002072334,
0.0021594653371721506,
-0.00966236274689436,
0.023694638162851334,
0.044864438474178314,
-0.030298061668872833,
0.026200054213404655,
-0.01717861369252205,
-0.03791142255067825,
0.019208194687962532,
-0.003141481662169099,
0.0241413414478302,
0.007001571357250214,
-0.05896469205617905,
0.008293122984468937,
-0.03723165765404701,
0.08506763726472855,
0.03202660381793976,
-0.07586168497800827,
0.0674714520573616,
0.029462924227118492,
0.035444848239421844,
-0.02874431572854519,
-0.00034048903034999967,
-0.02779264561831951,
0.05317698419094086,
-0.0007131454767659307,
-0.040591634809970856,
-0.013109738007187843,
-0.034609708935022354,
-0.011254953220486641,
0.006622845772653818,
0.04195116460323334,
0.039406903088092804,
-0.015081054531037807,
0.0073463087901473045,
0.012128936126828194,
0.009628374129533768,
0.00826399028301239,
0.016615379601716995,
-0.09905135631561279,
0.01965489611029625,
0.037581250071525574,
-0.027345944195985794,
0.0034619420766830444,
0.0858445093035698,
-0.018470164388418198,
-0.01397401001304388,
0.011701655574142933,
-0.043388377875089645,
-0.013750659301877022,
0.09710917621850967,
0.04544709250330925,
-0.00010249569459119812,
-0.05041908472776413,
0.05418691784143448,
0.016450293362140656,
0.04334953427314758,
-0.0013631699839606881,
-0.0198102705180645,
0.03606634587049484,
-0.05449766665697098,
0.020781362429261208,
-0.0028938534669578075,
-0.010847094468772411,
-0.009210805408656597,
-0.026258321478962898,
-0.03789199888706207,
-0.030531123280525208,
0.0007471336866728961,
-0.012828121893107891,
0.002345186658203602,
-0.014177938923239708,
-0.026569070294499397,
-0.02000449039041996,
-0.052205890417099,
-0.014867414720356464,
0.0016969827702268958,
-0.014595508575439453,
-0.04451484605669975,
-0.07702699303627014,
-0.01354672946035862,
0.065412737429142,
0.016149256378412247,
-0.004275231156498194,
0.013255402445793152,
-0.06020768731832504,
0.037794891744852066,
0.00780757749453187,
-0.015440358780324459,
-0.007516250014305115,
0.05205051600933075,
0.042883411049842834,
-0.038086216896772385,
0.04517518728971481,
-0.00344980345107615,
-0.018392477184534073,
-0.019499521702528,
0.0032410186249762774,
-0.021752454340457916,
-0.03556137904524803,
0.05651753768324852,
-0.029249282553792,
0.009943979792296886,
0.05018601939082146,
-0.036260563880205154,
0.030026156455278397,
-0.04696199670433998,
-0.05360426381230354,
0.06331518292427063,
0.011284085921943188,
0.02245164103806019,
-0.05814897269010544,
0.004707367159426212,
0.024199606850743294,
-0.027520740404725075,
0.020956160500645638,
0.006681111175566912,
0.014401290565729141,
0.01621723175048828,
-0.04556362330913544,
-0.053293514996767044,
0.022607015445828438,
0.01339135505259037,
-0.01814970374107361,
-0.057139039039611816,
0.017091214656829834,
-0.01952865533530712,
0.01753791607916355,
0.056090258061885834,
-0.0423007570207119,
-0.14776131510734558,
-0.003998470026999712,
0.0157316867262125,
-0.008205724880099297,
-0.00392321078106761,
0.02363637275993824,
0.02660791389644146,
0.011565702967345715,
0.05741094425320625,
0.016275497153401375,
0.04443715885281563,
-0.001152564538642764,
-0.00030892854556441307,
0.01149772573262453,
-0.020917316898703575,
-0.05092405155301094,
0.009468144737184048,
0.033463820815086365,
0.049486834555864334,
0.025034744292497635,
-0.006608279421925545,
0.009647796861827374,
-0.0067830756306648254,
0.001882704091258347,
0.007623069919645786,
0.01998506858944893,
-0.014750883914530277,
-0.0019361141603440046,
0.03142452985048294,
-0.016615379601716995,
-0.012478528544306755,
0.02676328830420971,
-0.006938450504094362,
-0.0618002787232399,
0.05900353565812111,
0.03540600463747978,
-0.003311422886326909,
-0.010478080250322819,
-0.02975425124168396,
-0.001183518092148006,
0.02695750631392002,
-0.061567217111587524,
0.011847319081425667,
0.009487566538155079,
-0.06051843613386154,
0.01371181569993496,
0.02940465696156025,
0.006569435819983482,
-0.0759393721818924,
0.03224024549126625,
0.02645253948867321,
-0.015071343630552292,
0.019577208906412125,
0.09097187221050262,
0.04599090293049812,
-0.02874431572854519,
-0.028996799141168594,
0.00437962356954813,
-0.034648552536964417,
0.016994105651974678,
-0.0016593530308455229,
0.020121021196246147,
-0.015508335083723068,
-0.016149256378412247,
-0.02944350056350231,
-0.03651304915547371,
0.053487733006477356,
0.007166657131165266,
-0.0489041805267334,
-0.0019895241130143404,
0.019266460090875626,
-0.10340184718370438,
-0.028647206723690033,
0.01108015701174736,
0.0275984276086092,
0.0178486667573452,
-0.021422283723950386,
-0.016498848795890808,
0.01587734930217266,
0.029501767829060555,
0.02876373752951622,
0.004996267147362232,
0.015518045984208584,
-0.0012794133508577943,
-0.028666628524661064,
-0.021422283723950386,
0.010109065100550652,
-0.017635025084018707,
-0.028161659836769104,
0.02163592353463173,
-0.014401290565729141,
0.026025258004665375,
-0.008642716333270073,
-0.0005601985612884164,
-0.0025588267017155886,
0.011119000613689423,
0.04268919304013252,
0.028569519519805908,
0.018567273393273354,
0.006457759998738766,
-0.0053312936797738075,
-0.025384338572621346,
0.023034296929836273,
-0.06688880175352097,
-0.002220158465206623,
-0.0380667969584465,
0.029987312853336334,
-0.01799432933330536,
0.017246589064598083,
0.003408531891182065,
-0.01804288476705551,
-0.00882722344249487,
0.02843356691300869,
0.11769631505012512,
0.011721077375113964,
0.0068364860489964485,
0.01141032762825489,
-0.017071792855858803,
-0.03629940748214722,
-0.0740748792886734,
-0.010196463204920292,
-0.025248385965824127,
-0.03192949667572975,
-0.026646757498383522,
0.02823934704065323,
0.05737210065126419,
0.04028088599443436,
0.0959438607096672,
-0.006778220180422068,
-0.02047061361372471,
0.00021500578441191465,
0.031327418982982635,
-0.09617692232131958,
-0.03587212786078453,
-0.009453577920794487,
0.06552927196025848,
0.0693359524011612,
-0.011827897280454636,
-0.04443715885281563,
0.010905359871685505,
-0.04028088599443436,
-0.004340779967606068,
-0.04672893509268761,
0.047039683908224106,
0.05888700112700462,
0.05620678886771202,
-0.009526410140097141,
0.00827855709940195,
0.02167476713657379,
0.005811984185129404,
-0.007710468489676714,
-0.017761267721652985,
0.04432062804698944,
-0.08475688844919205,
-0.048166148364543915,
-0.0026268032379448414,
-0.028336456045508385,
0.07337569445371628,
-0.033949367702007294,
0.08972887694835663,
-0.02394712157547474,
-0.007375441957265139,
0.03897962346673012,
-0.04175694286823273,
0.006744232028722763,
0.016392027959227562,
0.03773662447929382,
0.03383283689618111,
-0.012672747485339642,
-0.012274599634110928,
-0.03260926157236099,
-0.017411675304174423,
-0.07803693413734436,
0.0545753538608551,
0.0316770114004612,
-0.008642716333270073,
-0.006467470899224281,
0.005438113585114479,
-0.017936063930392265,
0.047700025141239166,
-0.00590909318998456,
0.03804737329483032,
0.004697656258940697,
0.01588706113398075,
-0.012274599634110928,
-0.05779938027262688,
0.03292001038789749,
0.0024422956630587578,
-0.08716519176959991,
-0.032803479582071304,
-0.04540824890136719,
0.0004545923147816211,
-0.012818410992622375,
0.01736311987042427,
0.015974458307027817,
-0.015275273472070694,
0.06113993749022484,
-0.03292001038789749,
-0.03317249193787575,
-0.040591634809970856,
-0.012022115290164948,
0.027345944195985794,
0.017159191891551018,
-0.010021666996181011,
-0.04400987923145294,
0.05834319069981575,
-0.03963996469974518,
0.0079192528501153,
0.006302385590970516,
-0.019266460090875626,
0.052827391773462296,
-0.037775468081235886,
-0.03365803882479668,
0.03715397045016289,
0.0066374121233820915,
-0.009798315353691578,
-0.013595283962786198,
-0.023422732949256897,
-0.051972828805446625,
0.023209093138575554,
-0.018965421244502068,
0.05869278311729431,
0.022548750042915344,
-0.015896771103143692,
0.03897962346673012,
0.018450742587447166,
0.000861237000208348,
0.003765408182516694,
0.002470214618369937,
-0.029249282553792,
0.03161874786019325,
-0.0004979879595339298,
0.022684702649712563,
0.022762389853596687,
-0.012886387296020985,
0.025520291179418564,
0.019392702728509903,
-0.034143585711717606,
0.01272130198776722,
0.10262497514486313,
-0.0023269786033779383,
0.016916418448090553,
0.027054615318775177,
-0.0032604404259473085,
0.008307689800858498,
-0.041251976042985916,
-0.0621110275387764,
0.0046296799555420876,
-0.004367485176771879,
0.03437664732336998,
0.0011847319547086954,
0.05173976719379425,
-0.045680154114961624,
-0.013294246047735214,
0.06428627669811249,
0.031812965869903564,
0.049836426973342896,
0.012915519997477531,
0.004632107447832823,
-0.07151119410991669,
0.017460228875279427,
0.006341229192912579,
-0.03682379797101021,
-0.00735601969063282,
0.0239859651774168,
-0.030200952664017677,
0.020392926409840584,
-0.010342126712203026,
-0.02262643724679947,
0.015984170138835907,
-0.01718832366168499,
0.016906706616282463,
-0.019295593723654747,
0.029307547956705093,
-0.019878247752785683,
0.010235306806862354,
0.043194159865379333,
0.0062392642721533775,
0.015479202382266521,
-0.0022517188917845488,
-0.0015331110917031765,
-0.05698366463184357,
-0.00907970778644085,
-0.005855683237314224,
0.0687144547700882,
-0.0128960981965065,
-0.03251215070486069,
-0.011119000613689423,
-0.0789303332567215,
-0.022082626819610596,
-0.02810339443385601,
0.007147235330194235,
-0.0019361141603440046,
0.008404798805713654,
0.035600222647190094,
0.04016435518860817,
0.03091956116259098,
-0.029695985838770866,
-0.020859049633145332,
0.006700532976537943,
-0.0069093178026378155,
-0.053487733006477356,
0.00877381395548582,
0.032784055918455124,
-0.010885938070714474,
0.013643838465213776,
0.0017722423654049635,
-0.05162323638796806,
-0.004916151985526085,
-0.004093151539564133,
-0.03540600463747978,
-0.03736760839819908,
-0.019392702728509903,
-0.01766415871679783,
-0.01602301374077797,
0.016751332208514214,
0.0014651346718892455,
-0.06032421812415123,
0.0031681868713349104,
0.03884366899728775,
-0.07151119410991669,
0.025403760373592377,
0.01619780994951725,
-0.02410249598324299,
0.061761435121297836,
0.00002759645394689869,
0.034318383783102036,
0.024918213486671448,
0.0485934317111969,
0.03072534315288067,
-0.021519392728805542,
0.027326522395014763,
-0.06420858204364777,
0.005239040125161409,
-0.004459738731384277,
-0.0034352371003478765,
-0.045874372124671936,
0.05838203430175781,
-0.001972530037164688,
0.01717861369252205,
-0.00834167841821909,
-0.039931293576955795,
-0.012420263141393661,
-0.003962054383009672,
-0.03090013936161995,
0.015323827974498272,
-0.02379174716770649,
0.028142238035798073,
0.00347165297716856,
-0.06976322829723358,
0.0068850405514240265,
-0.01585792750120163,
0.01274072378873825,
0.022937186062335968,
0.03985360637307167,
-0.0001358769804937765,
-0.11319044977426529,
0.008234857581555843,
0.04148503765463829,
0.05663406848907471,
0.020781362429261208,
0.08242626488208771,
0.02410249598324299,
0.012332865037024021,
-0.05224473401904106,
-0.023247936740517616,
0.012925230897963047,
0.013896322809159756,
0.0707731693983078,
-0.02775380201637745,
0.03420184925198555,
0.050302550196647644,
-0.028045129030942917,
0.008851501159369946,
0.010934492573142052,
-0.0035104965791106224,
-0.05306045338511467,
-0.007040414959192276,
-0.0006560938782058656,
0.022121470421552658,
-0.004537425935268402,
-0.04738927632570267,
0.009472999721765518,
0.002358539029955864,
-0.009443867020308971,
-0.00022259243996813893,
0.024024808779358864,
-0.0067830756306648254,
-0.055779509246349335,
0.04214538261294365,
-0.005447824485599995,
0.07753196358680725,
0.0029375525191426277,
-0.014265337958931923,
0.05476957559585571,
-0.03392994403839111,
-0.03783373534679413,
0.0031948918476700783,
0.03897962346673012,
-0.0030079565476626158,
0.045524779707193375,
-0.05294392257928848,
0.014362446963787079,
0.031657591462135315,
-0.01388661190867424,
0.021053269505500793,
-0.027384787797927856,
-0.001970102312043309,
-0.003738703206181526,
-0.0353865846991539,
0.05978040769696236,
-0.014915969222784042,
-0.04218422621488571,
-0.010448947548866272,
0.04245613142848015,
-0.01487712562084198,
-0.07609474658966064,
0.0025636821519583464,
-0.0621110275387764,
-0.0020635698456317186,
0.033774569630622864,
0.018625538796186447,
-0.028724893927574158,
-0.08778668940067291,
0.012789278291165829,
-0.0013595283962786198,
-0.06754913926124573,
-0.013420487754046917,
0.017110636457800865,
-0.032084871083498,
-0.014935391023755074,
0.037620093673467636,
-0.018314789980649948,
-0.02050945721566677,
0.0429222546517849,
-0.06246061995625496,
0.022878920659422874,
0.0743856281042099,
-0.013566151261329651,
0.01952865533530712,
-0.01837305538356304,
-0.022412797436118126,
0.020567722618579865,
-0.00793381966650486,
0.02676328830420971,
-0.003716853680089116,
-0.0902726873755455,
-0.07869727164506912,
-0.04179579019546509,
-0.020082177594304085,
-0.009929412975907326,
0.08988425135612488,
-0.025675665587186813,
0.0003426132898312062,
0.04187347739934921,
-0.003738703206181526,
-0.015362671576440334,
-0.03439607098698616,
0.032997697591781616,
-0.027384787797927856,
-0.04878764972090721,
0.017149480059742928,
-0.020936738699674606,
0.013750659301877022,
-0.007341453339904547,
0.09400168061256409,
-0.06937479227781296,
-0.001694555045105517,
0.05240010842680931,
-0.0038236738182604313,
-0.032123714685440063,
0.07271534949541092,
0.009652651846408844,
0.08638831973075867,
-0.05904237926006317,
0.05274970456957817,
0.005782851483672857,
-0.05072983354330063,
-0.03323075920343399,
0.01882946863770485,
0.013838057406246662,
0.05453651025891304,
-0.022335110232234,
-0.02377232536673546,
0.061256468296051025,
-0.014867414720356464,
-0.04183463379740715,
-0.034939881414175034,
-0.02909390814602375,
-0.042378444224596024,
-0.0007349950610660017,
0.024879369884729385,
-0.002881714841350913,
-0.015634577721357346,
0.01570255309343338,
-0.0046782344579696655,
-0.014546954073011875,
0.07042357325553894,
-0.029637720435857773,
0.02115037851035595,
0.03206544741988182,
0.03266752511262894,
0.005714874714612961,
-0.01108015701174736,
-0.009550686925649643,
-0.014440134167671204,
-0.0030516558326780796,
0.0007246772293001413,
-0.04641818627715111,
0.008283412083983421,
0.016780465841293335,
0.01802346296608448,
-0.012051247991621494,
-0.022024361416697502,
0.045058656483888626,
-0.09407936781644821,
-0.033793993294239044,
-0.018761493265628815,
0.07092854380607605,
-0.029249282553792,
0.04672893509268761,
0.026879819110035896,
-0.07166656851768494,
0.007574515417218208,
0.04556362330913544,
0.012789278291165829,
0.008011506870388985,
-0.023519841954112053,
-0.04490328207612038,
-0.02612236700952053,
-0.07978489995002747,
-0.022956607863307,
-0.03787257894873619,
0.07869727164506912,
-0.01767386868596077,
-0.033308446407318115,
0.007661913987249136,
-0.024762839078903198,
0.01768358051776886,
-0.044709064066410065,
0.030783608555793762,
-0.014051697216928005,
-0.029948469251394272,
0.05286623537540436,
0.09283637255430222,
0.02973482944071293,
-0.06498546153306961,
0.017557337880134583,
-0.00677336473017931,
0.006496603600680828,
0.041718099266290665,
-0.03420184925198555,
-0.019586920738220215,
-0.03251215070486069,
0.07617243379354477,
0.02629716508090496,
-0.021208643913269043,
0.010847094468772411,
0.0289385337382555,
-0.0704624131321907,
-0.03525063022971153,
0.004411184228956699,
-0.012837832793593407,
-0.007448273710906506,
0.009196238592267036,
-0.06102340295910835,
-0.0008867281139828265,
0.001262419275008142,
-0.013187426142394543,
0.04160156846046448,
0.018576985225081444,
-0.005870249588042498,
0.0010942990193143487,
-0.020956160500645638,
-0.02014044299721718,
-0.04035857319831848,
0.036804378032684326,
0.012323154136538506,
0.05302160978317261,
0.018722647801041603,
0.04610743746161461,
0.01222604513168335,
0.03649362921714783,
0.035755597054958344,
0.008370811119675636,
-0.013750659301877022,
0.013643838465213776,
0.05449766665697098,
-0.047661181539297104,
0.02149997092783451,
0.006977294106036425,
0.008662138134241104,
-0.049991801381111145,
-0.043194159865379333,
-0.019421834498643875,
0.016566824167966843,
0.06129531189799309,
0.07240460067987442,
0.046690091490745544,
-0.004578697495162487,
0.029055064544081688
] |
723,035
|
isort.settings
|
__repr__
| null |
@dataclass(frozen=True)
class _Config:
"""Defines the data schema and defaults used for isort configuration.
NOTE: known lists, such as known_standard_library, are intentionally not complete as they are
dynamically determined later on.
"""
py_version: str = "3"
force_to_top: FrozenSet[str] = frozenset()
skip: FrozenSet[str] = DEFAULT_SKIP
extend_skip: FrozenSet[str] = frozenset()
skip_glob: FrozenSet[str] = frozenset()
extend_skip_glob: FrozenSet[str] = frozenset()
skip_gitignore: bool = False
line_length: int = 79
wrap_length: int = 0
line_ending: str = ""
sections: Tuple[str, ...] = SECTION_DEFAULTS
no_sections: bool = False
known_future_library: FrozenSet[str] = frozenset(("__future__",))
known_third_party: FrozenSet[str] = frozenset()
known_first_party: FrozenSet[str] = frozenset()
known_local_folder: FrozenSet[str] = frozenset()
known_standard_library: FrozenSet[str] = frozenset()
extra_standard_library: FrozenSet[str] = frozenset()
known_other: Dict[str, FrozenSet[str]] = field(default_factory=dict)
multi_line_output: WrapModes = WrapModes.GRID # type: ignore
forced_separate: Tuple[str, ...] = ()
indent: str = " " * 4
comment_prefix: str = " #"
length_sort: bool = False
length_sort_straight: bool = False
length_sort_sections: FrozenSet[str] = frozenset()
add_imports: FrozenSet[str] = frozenset()
remove_imports: FrozenSet[str] = frozenset()
append_only: bool = False
reverse_relative: bool = False
force_single_line: bool = False
single_line_exclusions: Tuple[str, ...] = ()
default_section: str = THIRDPARTY
import_headings: Dict[str, str] = field(default_factory=dict)
import_footers: Dict[str, str] = field(default_factory=dict)
balanced_wrapping: bool = False
use_parentheses: bool = False
order_by_type: bool = True
atomic: bool = False
lines_before_imports: int = -1
lines_after_imports: int = -1
lines_between_sections: int = 1
lines_between_types: int = 0
combine_as_imports: bool = False
combine_star: bool = False
include_trailing_comma: bool = False
from_first: bool = False
verbose: bool = False
quiet: bool = False
force_adds: bool = False
force_alphabetical_sort_within_sections: bool = False
force_alphabetical_sort: bool = False
force_grid_wrap: int = 0
force_sort_within_sections: bool = False
lexicographical: bool = False
group_by_package: bool = False
ignore_whitespace: bool = False
no_lines_before: FrozenSet[str] = frozenset()
no_inline_sort: bool = False
ignore_comments: bool = False
case_sensitive: bool = False
sources: Tuple[Dict[str, Any], ...] = ()
virtual_env: str = ""
conda_env: str = ""
ensure_newline_before_comments: bool = False
directory: str = ""
profile: str = ""
honor_noqa: bool = False
src_paths: Tuple[Path, ...] = ()
old_finders: bool = False
remove_redundant_aliases: bool = False
float_to_top: bool = False
filter_files: bool = False
formatter: str = ""
formatting_function: Optional[Callable[[str, str, object], str]] = None
color_output: bool = False
treat_comments_as_code: FrozenSet[str] = frozenset()
treat_all_comments_as_code: bool = False
supported_extensions: FrozenSet[str] = SUPPORTED_EXTENSIONS
blocked_extensions: FrozenSet[str] = BLOCKED_EXTENSIONS
constants: FrozenSet[str] = frozenset()
classes: FrozenSet[str] = frozenset()
variables: FrozenSet[str] = frozenset()
dedup_headings: bool = False
only_sections: bool = False
only_modified: bool = False
combine_straight_imports: bool = False
auto_identify_namespace_packages: bool = True
namespace_packages: FrozenSet[str] = frozenset()
follow_links: bool = True
indented_import_headings: bool = True
honor_case_in_force_sorted_sections: bool = False
sort_relative_in_force_sorted_sections: bool = False
overwrite_in_place: bool = False
reverse_sort: bool = False
star_first: bool = False
import_dependencies = Dict[str, str]
git_ls_files: Dict[Path, Set[str]] = field(default_factory=dict)
format_error: str = "{error}: {message}"
format_success: str = "{success}: {message}"
sort_order: str = "natural"
sort_reexports: bool = False
split_on_trailing_comma: bool = False
def __post_init__(self) -> None:
py_version = self.py_version
if py_version == "auto": # pragma: no cover
if sys.version_info.major == 2 and sys.version_info.minor <= 6:
py_version = "2"
elif sys.version_info.major == 3 and (
sys.version_info.minor <= 5 or sys.version_info.minor >= 12
):
py_version = "3"
else:
py_version = f"{sys.version_info.major}{sys.version_info.minor}"
if py_version not in VALID_PY_TARGETS:
raise ValueError(
f"The python version {py_version} is not supported. "
"You can set a python version with the -py or --python-version flag. "
f"The following versions are supported: {VALID_PY_TARGETS}"
)
if py_version != "all":
object.__setattr__(self, "py_version", f"py{py_version}")
if not self.known_standard_library:
object.__setattr__(
self, "known_standard_library", frozenset(getattr(stdlibs, self.py_version).stdlib)
)
if self.multi_line_output == WrapModes.VERTICAL_GRID_GROUPED_NO_COMMA: # type: ignore
vertical_grid_grouped = WrapModes.VERTICAL_GRID_GROUPED # type: ignore
object.__setattr__(self, "multi_line_output", vertical_grid_grouped)
if self.force_alphabetical_sort:
object.__setattr__(self, "force_alphabetical_sort_within_sections", True)
object.__setattr__(self, "no_sections", True)
object.__setattr__(self, "lines_between_types", 1)
object.__setattr__(self, "from_first", True)
if self.wrap_length > self.line_length:
raise ValueError(
"wrap_length must be set lower than or equal to line_length: "
f"{self.wrap_length} > {self.line_length}."
)
def __hash__(self) -> int:
return id(self)
|
(self)
|
[
0.02886698953807354,
-0.022238563746213913,
-0.0652252808213234,
0.005741040222346783,
0.026690199971199036,
-0.04377114400267601,
-0.023238711059093475,
0.029965190216898918,
-0.0578516460955143,
-0.08793450146913528,
-0.014600186608731747,
-0.013276462443172932,
-0.025572387501597404,
0.033887337893247604,
-0.03433838486671448,
0.04930136725306511,
0.012894053012132645,
0.06228366866707802,
0.015806246548891068,
0.03355395421385765,
-0.02074814960360527,
-0.019306760281324387,
-0.016178850084543228,
0.03151443973183632,
0.01529636699706316,
0.020218659192323685,
0.05267441272735596,
-0.02314065769314766,
0.014286414720118046,
-0.06702946871519089,
-0.04894837364554405,
-0.01049173902720213,
-0.025513555854558945,
0.010393685661256313,
0.029200373217463493,
-0.0830710381269455,
0.04969358071684837,
0.06259743869304657,
-0.026062656193971634,
0.010746678337454796,
0.01914987526834011,
-0.0006269304431043565,
0.03704466298222542,
-0.041339412331581116,
-0.028102172538638115,
0.0344756580889225,
-0.013099965639412403,
0.016776977106928825,
-0.008712065406143665,
-0.03749570995569229,
0.036417119204998016,
-0.021140363067388535,
0.03718193992972374,
0.037338823080062866,
-0.02463107369840145,
0.042319949716329575,
0.04031965509057045,
0.02567044086754322,
0.01852233149111271,
0.008962102234363556,
-0.01083492673933506,
0.04867382347583771,
0.03896651417016983,
-0.023434819653630257,
-0.028102172538638115,
-0.0021436975803226233,
-0.03424032777547836,
-0.00831494852900505,
0.00637348648160696,
0.013364710845053196,
-0.04745795950293541,
-0.001912045874632895,
0.05706721544265747,
-0.009491591714322567,
0.0267686415463686,
-0.008716967888176441,
-0.061028581112623215,
-0.030749620869755745,
0.033691227436065674,
-0.06389174610376358,
0.0037726135924458504,
0.051733098924160004,
-0.016757367178797722,
-0.0055988626554608345,
0.03255380690097809,
-0.006981418933719397,
0.04796783998608589,
0.0683237761259079,
0.024042751640081406,
-0.005794969853013754,
-0.047732509672641754,
0.059185173362493515,
0.018787076696753502,
0.04475167766213417,
0.00710888858884573,
-0.01919890195131302,
0.020905034616589546,
-0.08942491561174393,
-0.021159974858164787,
-0.017835956066846848,
-0.009888709522783756,
-0.02843555435538292,
-0.030730009078979492,
-0.0178555678576231,
-0.0363190658390522,
-0.012609697878360748,
-0.039123401045799255,
0.019130263477563858,
-0.02376820147037506,
-0.042633719742298126,
-0.05942050367593765,
-0.02512134052813053,
0.005692013539373875,
-0.03669166937470436,
0.05855762958526611,
-0.04216306284070015,
-0.036907389760017395,
-0.028455164283514023,
0.021258028224110603,
0.023297544568777084,
0.008432612754404545,
0.028788547962903976,
-0.03835858032107353,
0.05440015718340874,
0.050870224833488464,
-0.04031965509057045,
0.0008156836847774684,
0.03698582947254181,
0.03910379111766815,
-0.031122224405407906,
0.055066920816898346,
-0.007246163673698902,
-0.04224150627851486,
-0.011521302163600922,
0.013992253690958023,
-0.02192479372024536,
-0.00907976645976305,
0.0301612988114357,
-0.04996813088655472,
0.03520125523209572,
0.05251752585172653,
-0.04722262918949127,
-0.007947247475385666,
-0.04420257732272148,
-0.0362994559109211,
-0.009275874122977257,
-0.009256263263523579,
-0.01773790270090103,
-0.0529489628970623,
0.03035740554332733,
0.03337745741009712,
-0.06330342590808868,
-0.04282982647418976,
0.04341815039515495,
-0.01421777717769146,
0.014256998896598816,
-0.06667647510766983,
-0.04498700797557831,
-0.0006428641499951482,
0.023728979751467705,
-0.03194587305188179,
-0.061028581112623215,
0.03531891852617264,
0.012168455868959427,
-0.01920870691537857,
0.027003971859812737,
-0.019855860620737076,
-0.1040152981877327,
-0.03769181668758392,
0.027160856872797012,
0.0230818260461092,
-0.013276462443172932,
-0.029102319851517677,
0.025827327743172646,
-0.0026572535280138254,
0.06910820305347443,
0.01313918735831976,
0.05624356493353844,
-0.00016102245717775077,
-0.004699220415204763,
-0.011266362853348255,
-0.04639897868037224,
-0.06063636764883995,
0.01070745661854744,
0.02820022590458393,
0.047850172966718674,
0.026631366461515427,
-0.017757512629032135,
0.06549982726573944,
0.013315683230757713,
-0.008368877694010735,
-0.010148551315069199,
0.050870224833488464,
0.01319801900535822,
-0.024336911737918854,
-0.005775358993560076,
-0.06385252624750137,
0.007863901555538177,
0.049458254128694534,
-0.004444281104952097,
-0.059616610407829285,
0.017620237544178963,
0.0676962286233902,
-0.004064323380589485,
-0.009864195249974728,
-0.004454086534678936,
-0.02210128866136074,
-0.028729714453220367,
-0.02068931795656681,
0.04537922143936157,
-0.029827915132045746,
-0.06138157472014427,
0.011629161424934864,
0.0023606412578374147,
0.010530960746109486,
-0.09036622941493988,
0.04769328981637955,
0.029749473556876183,
0.009192528203129768,
0.011638966389000416,
0.10323086380958557,
0.026141099631786346,
-0.017159385606646538,
-0.00016807006613817066,
0.02670980989933014,
-0.03396577760577202,
0.01827719807624817,
0.0301612988114357,
0.045771438628435135,
-0.043496593832969666,
0.03947639465332031,
-0.05514536425471306,
-0.01099181268364191,
0.038868460804224014,
0.049340590834617615,
-0.047928616404533386,
-0.01348237507045269,
0.030239740386605263,
-0.05310584977269173,
0.0031156542245298624,
-0.03010246530175209,
0.015541501343250275,
0.010599598288536072,
-0.01755160093307495,
-0.059067510068416595,
-0.02443496510386467,
0.008457126095890999,
0.020395155996084213,
-0.009697504341602325,
-0.006461734417825937,
-0.00774133438244462,
-0.0175417959690094,
-0.03300485387444496,
-0.012825415469706059,
-0.0056380839087069035,
-0.04141785576939583,
0.0047310879454016685,
-0.04365347698330879,
0.045536108314991,
-0.02869049459695816,
0.011217336170375347,
-0.057106439024209976,
0.00046881893649697304,
0.03651517257094383,
0.0074618817307055,
0.0019782320596277714,
0.03180859982967377,
-0.02190518192946911,
-0.02443496510386467,
0.02468990534543991,
-0.0381820872426033,
0.029161151498556137,
-0.045340001583099365,
0.03680933639407158,
-0.04781095311045647,
0.028396332636475563,
0.026631366461515427,
-0.03380889445543289,
0.015227729454636574,
0.021101143211126328,
0.04937981069087982,
0.005030151456594467,
-0.009006226435303688,
0.021532578393816948,
0.024395745247602463,
-0.027415797114372253,
-0.10040692239999771,
-0.01901260018348694,
-0.04082953557372093,
0.02788645401597023,
0.012737167067825794,
0.01080551091581583,
0.0461636520922184,
-0.023258322849869728,
0.1077021136879921,
0.032651860266923904,
-0.03576996549963951,
-0.012021375820040703,
0.014835515059530735,
-0.07977643609046936,
-0.025572387501597404,
-0.0009774721693247557,
0.07428543269634247,
0.011717409826815128,
-0.028592439368367195,
-0.00548119843006134,
0.006628425791859627,
-0.04035887494683266,
0.0016828455263748765,
-0.007290287874639034,
0.05624356493353844,
0.029886748641729355,
0.05977349728345871,
0.0332205705344677,
-0.004512918647378683,
-0.04086875542998314,
-0.03624062240123749,
-0.01175663061439991,
0.0022895524743944407,
0.05757709592580795,
-0.09256263077259064,
0.00042867823503911495,
0.013845173642039299,
-0.03704466298222542,
0.05279207602143288,
-0.05761631578207016,
0.05279207602143288,
-0.011433053761720657,
-0.014109917916357517,
0.026435259729623795,
-0.03329901397228241,
-0.01742413081228733,
0.02184635028243065,
0.07428543269634247,
0.03841741383075714,
0.023493651300668716,
0.00367946270853281,
-0.045771438628435135,
0.003120556939393282,
-0.06369563937187195,
0.06534294039011002,
0.0073785362765192986,
-0.007496200501918793,
0.007319703698158264,
-0.0031058487948030233,
-0.062205225229263306,
0.056047458201646805,
0.002393734408542514,
0.03520125523209572,
0.050085797905921936,
0.055184584110975266,
0.02302299439907074,
-0.032220423221588135,
0.05859685316681862,
0.023434819653630257,
-0.05930284038186073,
-0.022062068805098534,
-0.06161690503358841,
0.006397999823093414,
0.0002815977786667645,
0.036848556250333786,
0.00972201768308878,
-0.017688876017928123,
0.03582879900932312,
-0.03473059833049774,
-0.04106486216187477,
-0.03494631499052048,
-0.036417119204998016,
0.042947493493556976,
-0.02547433413565159,
-0.02670980989933014,
-0.030239740386605263,
0.04012354835867882,
-0.0948374792933464,
0.011668382212519646,
0.00910918228328228,
-0.005942050367593765,
0.041653186082839966,
-0.0725989118218422,
-0.012021375820040703,
0.06424473971128464,
0.030318183824419975,
-0.024081973358988762,
0.038574300706386566,
-0.0400058850646019,
-0.029631808400154114,
0.0332401841878891,
-0.02584693767130375,
0.044163357466459274,
0.01526695117354393,
-0.014904152601957321,
0.010040692053735256,
0.009574937634170055,
0.03600529581308365,
-0.0006735058850608766,
-0.013531401753425598,
-0.018443888053297997,
0.04228072613477707,
-0.011629161424934864,
-0.012560670264065266,
0.05828307941555977,
-0.059067510068416595,
0.08824827522039413,
0.028651272878050804,
-0.018502721562981606,
-0.021140363067388535,
0.11538951843976974,
-0.018257586285471916,
-0.019032210111618042,
0.04941903054714203,
0.024709515273571014,
0.015031622722744942,
-0.028239447623491287,
-0.0249252337962389,
-0.0267686415463686,
0.013080354779958725,
0.015551306307315826,
0.01859096996486187,
0.055616021156311035,
-0.026376428082585335,
-0.0016264646546915174,
-0.004941903054714203,
0.019846055656671524,
0.059185173362493515,
0.007329509127885103,
0.01052115485072136,
-0.0646369531750679,
0.028415944427251816,
-0.060479480773210526,
-0.01351179089397192,
0.004054517950862646,
0.02443496510386467,
-0.014708044938743114,
-0.017188802361488342,
0.0252390056848526,
-0.032475363463163376,
0.013247045688331127,
-0.051183998584747314,
0.030141687020659447,
0.007035348564386368,
0.03439721465110779,
0.031181056052446365,
0.03096533752977848,
-0.007829582318663597,
-0.01656125858426094,
0.057655539363622665,
-0.04196695610880852,
0.02282688580453396,
-0.010883953422307968,
0.001125165494158864,
-0.02486640214920044,
0.028965044766664505,
-0.011521302163600922,
-0.026356816291809082,
-0.07334411889314651,
-0.08299259841442108,
0.002649899572134018,
-0.004539883229881525,
-0.036593616008758545,
-0.014943374320864677,
0.04843849688768387,
0.028278669342398643,
0.046085208654403687,
0.0005392949678935111,
0.03269108384847641,
-0.0473795160651207,
0.016718145459890366,
-0.012707751244306564,
-0.05483159422874451,
0.007349119987338781,
0.02017943747341633,
-0.013452958315610886,
-0.014688435010612011,
0.016482817009091377,
-0.036044515669345856,
0.010883953422307968,
0.01175663061439991,
-0.018943961709737778,
-0.06718634814023972,
-0.045457664877176285,
0.03526008874177933,
-0.03790753707289696,
0.006530371960252523,
0.0020946708973497152,
-0.007275579962879419,
-0.022924939170479774,
0.07365789264440536,
-0.05385105684399605,
0.028788547962903976,
-0.022199343889951706,
-0.0320047065615654,
0.010825121775269508,
0.005888120736926794,
0.033455900847911835,
0.05840074643492699,
0.0461636520922184,
0.018385056406259537,
-0.007697210181504488,
0.030377015471458435,
-0.08942491561174393,
0.026494091376662254,
0.005221356172114611,
0.0035372849088162184,
-0.03373045101761818,
0.04137863591313362,
-0.013560817576944828,
0.009766141884028912,
-0.03473059833049774,
-0.0338677242398262,
-0.033338237553834915,
-0.0012734716292470694,
-0.00011191903467988595,
0.030396627262234688,
-0.018139922991394997,
0.04851694032549858,
0.014600186608731747,
-0.030122077092528343,
-0.0008781928918324411,
-0.017806539312005043,
-0.001030788873322308,
-0.032102759927511215,
0.0030592733528465033,
0.022179732099175453,
-0.06259743869304657,
-0.00021219419431872666,
0.06247977539896965,
0.06083247438073158,
-0.01070745661854744,
0.061342354863882065,
0.029514145106077194,
-0.0021792419720441103,
-0.04828161001205444,
-0.009893612004816532,
0.02943570166826248,
0.05643967166543007,
0.03637789934873581,
-0.007986468262970448,
0.028710104525089264,
0.04082953557372093,
-0.018208559602499008,
0.0172280240803957,
0.02814139425754547,
0.0065744961611926556,
-0.05067411810159683,
0.000716404349077493,
0.04157474264502525,
0.008074716664850712,
0.019238123670220375,
-0.052164532244205475,
-0.00997205451130867,
-0.00013964982645120472,
0.010511349886655807,
0.047301072627305984,
0.001302887685596943,
0.020100995898246765,
-0.04486934468150139,
0.02610187791287899,
-0.013835367746651173,
0.07479531317949295,
0.005618473514914513,
-0.006314653903245926,
0.06110702455043793,
-0.058636073023080826,
-0.06369563937187195,
0.019306760281324387,
0.010285826399922371,
0.0002455937210470438,
-0.0031254596542567015,
-0.03626023605465889,
0.02104230970144272,
0.016473010182380676,
-0.004765406716614962,
0.01963033713400364,
0.007221650332212448,
-0.021885572001338005,
-0.00755503261461854,
-0.02178751863539219,
0.061891455203294754,
0.005579251796007156,
-0.05428249388933182,
0.023670148104429245,
0.014070697128772736,
0.016580870375037193,
-0.05683188885450363,
-0.0018090895609930158,
-0.03586801886558533,
0.013129381462931633,
0.04020199179649353,
0.03828014060854912,
-0.029592586681246758,
-0.0511055551469326,
0.015923909842967987,
0.03108300268650055,
-0.041025642305612564,
0.0035250282380729914,
0.022317007184028625,
-0.02992597036063671,
-0.009285679087042809,
0.06193067505955696,
-0.015178702771663666,
-0.031435996294021606,
0.02196401357650757,
-0.04526155814528465,
0.004596264101564884,
0.06130313128232956,
-0.0013960386859253049,
0.028357110917568207,
-0.033828504383563995,
0.016914252191781998,
0.01607099175453186,
-0.002403539838269353,
0.01366867683827877,
0.004934549331665039,
-0.08942491561174393,
-0.05534147098660469,
-0.05153699219226837,
0.022611169144511223,
0.007770750671625137,
0.051733098924160004,
-0.04302593693137169,
-0.013266656547784805,
0.056910328567028046,
0.023532873019576073,
-0.00487816845998168,
-0.0381624735891819,
0.03316174075007439,
-0.04628131538629532,
-0.040907975286245346,
0.02733735367655754,
-0.026435259729623795,
0.017277050763368607,
-0.009437662549316883,
0.07499141991138458,
-0.02419963665306568,
0.015159091912209988,
0.002767563797533512,
0.0172280240803957,
-0.032965634018182755,
0.03237731009721756,
0.01728685572743416,
0.047928616404533386,
-0.057106439024209976,
0.022238563746213913,
0.06436240673065186,
-0.05428249388933182,
-0.02714124694466591,
0.018914546817541122,
-0.006697063334286213,
0.0689120963215828,
-0.015159091912209988,
-0.027533460408449173,
0.08087463676929474,
-0.021022699773311615,
-0.03945678099989891,
-0.059067510068416595,
0.01870863325893879,
-0.03557385876774788,
-0.0005576800322160125,
0.018139922991394997,
-0.01705152727663517,
0.010383879765868187,
-0.0013629455352202058,
-0.01747315749526024,
-0.013756925240159035,
0.011648772284388542,
-0.03476981818675995,
0.03490709513425827,
0.027808010578155518,
0.05287051945924759,
0.03439721465110779,
0.002466048812493682,
0.014011864550411701,
0.025905771180987358,
-0.02368975803256035,
-0.007177526131272316,
-0.05428249388933182,
0.017335882410407066,
0.06063636764883995,
0.0003615727764554322,
-0.04843849688768387,
-0.00595675827935338,
0.057459428906440735,
-0.048163946717977524,
-0.002477079862728715,
-0.01890473999083042,
0.08165907114744186,
-0.03704466298222542,
-0.015227729454636574,
0.01884590834379196,
-0.06820610910654068,
-0.0017134873196482658,
0.04820316657423973,
0.03490709513425827,
-0.011060450226068497,
-0.0004424670187290758,
-0.024395745247602463,
-0.021199196577072144,
-0.02869049459695816,
-0.012148845009505749,
-0.05769475921988487,
0.07652105391025543,
-0.032965634018182755,
0.0011337451869621873,
0.02400352992117405,
-0.00031714222859591246,
0.022179732099175453,
-0.05224297568202019,
0.01594352163374424,
-0.015590528026223183,
-0.011344805359840393,
0.029827915132045746,
0.08652252703905106,
0.0019377849530428648,
-0.0720498114824295,
0.040633425116539,
0.0033166641369462013,
0.020708927884697914,
0.005814580712467432,
-0.027494238689541817,
-0.011972349137067795,
-0.016080796718597412,
0.06389174610376358,
0.03196548670530319,
0.02112075313925743,
0.007255969103425741,
0.01729666069149971,
-0.02763151377439499,
-0.03255380690097809,
0.0009125116630457342,
-0.005378242116421461,
0.02155218832194805,
0.031377162784338,
-0.050007354468107224,
0.012766582891345024,
0.028710104525089264,
-0.03280874714255333,
0.051811542361974716,
0.040633425116539,
-0.00592734245583415,
0.03729960322380066,
-0.0042873951606452465,
-0.022434672340750694,
-0.08377702534198761,
0.029808305203914642,
-0.011962543241679668,
-0.0042261118069291115,
0.05071334168314934,
0.03102417103946209,
-0.014619797468185425,
-0.004802176728844643,
0.010932980105280876,
-0.01852233149111271,
-0.040711868554353714,
-0.006907878443598747,
0.029965190216898918,
-0.01096239686012268,
0.016218071803450584,
0.037260379642248154,
0.007437368389219046,
-0.08079619705677032,
-0.04020199179649353,
-0.0744815394282341,
-0.0023790262639522552,
0.02886698953807354,
0.08550277352333069,
0.025101730599999428,
-0.05279207602143288,
0.024336911737918854
] |
723,037
|
isort.settings
|
_check_folder_git_ls_files
| null |
def _check_folder_git_ls_files(self, folder: str) -> Optional[Path]:
env = {**os.environ, "LANG": "C.UTF-8"}
try:
topfolder_result = subprocess.check_output( # nosec # skipcq: PYL-W1510
["git", "-C", folder, "rev-parse", "--show-toplevel"], encoding="utf-8", env=env
)
except subprocess.CalledProcessError:
return None
git_folder = Path(topfolder_result.rstrip()).resolve()
# files committed to git
tracked_files = (
subprocess.check_output( # nosec # skipcq: PYL-W1510
["git", "-C", str(git_folder), "ls-files", "-z"],
encoding="utf-8",
env=env,
)
.rstrip("\0")
.split("\0")
)
# files that haven't been committed yet, but aren't ignored
tracked_files_others = (
subprocess.check_output( # nosec # skipcq: PYL-W1510
["git", "-C", str(git_folder), "ls-files", "-z", "--others", "--exclude-standard"],
encoding="utf-8",
env=env,
)
.rstrip("\0")
.split("\0")
)
self.git_ls_files[git_folder] = {
str(git_folder / Path(f)) for f in tracked_files + tracked_files_others
}
return git_folder
|
(self, folder: str) -> Optional[pathlib.Path]
|
[
0.004623266402631998,
-0.03896249085664749,
-0.05808610841631889,
0.06215175986289978,
0.021608183160424232,
-0.00984414666891098,
0.03647792711853981,
0.04656676575541496,
0.03175348788499832,
-0.05409574881196022,
0.04046828672289848,
-0.01206519640982151,
-0.023546896874904633,
-0.07562864571809769,
-0.0030186518561095,
0.020648237317800522,
0.0024139804299920797,
-0.03152761980891228,
0.041409410536289215,
0.00964651070535183,
-0.001476386678405106,
0.017213139683008194,
0.035310935229063034,
0.06395871937274933,
0.0027833711355924606,
0.010540577583014965,
0.03580031916499138,
-0.007505455985665321,
0.0209305752068758,
0.026125574484467506,
-0.02772548235952854,
0.0248080026358366,
-0.023396316915750504,
0.01539677195250988,
-0.04814784973859787,
-0.01680845580995083,
0.023546896874904633,
0.030266515910625458,
-0.09328410774469376,
-0.009237121790647507,
-0.033899251371622086,
0.021871697157621384,
-0.017853103578090668,
0.004555035382509232,
-0.01774957962334156,
-0.06738440692424774,
-0.060269515961408615,
-0.006244351156055927,
0.01914244145154953,
0.06892784684896469,
0.009919436648488045,
-0.020045919343829155,
-0.06493748724460602,
-0.03881191089749336,
0.03549915924668312,
0.005778495222330093,
0.02665260247886181,
-0.01221577636897564,
0.015170902013778687,
0.03203582763671875,
-0.04050593450665474,
0.026539668440818787,
0.006432575639337301,
-0.005067947320640087,
0.00721370754763484,
-0.07160063832998276,
-0.007721913978457451,
-0.01774957962334156,
0.023546896874904633,
0.027650192379951477,
-0.09742505103349686,
0.04795962572097778,
0.0596671961247921,
0.021401137113571167,
-0.05409574881196022,
0.0002186640485888347,
0.046679697930812836,
0.00867715384811163,
0.028647784143686295,
0.04532448202371597,
-0.02706669643521309,
-0.011820504441857338,
0.0728805661201477,
0.052514661103487015,
0.042802274227142334,
0.025015048682689667,
0.09682273119688034,
0.02482682466506958,
-0.015170902013778687,
0.010502932593226433,
-0.015105023980140686,
0.023829232901334763,
0.009274766780436039,
0.0012234598398208618,
-0.02661495842039585,
-0.017382541671395302,
0.008968901820480824,
-0.0007105478434823453,
-0.074649877846241,
0.0014046260621398687,
-0.009608865715563297,
0.0166578758507967,
0.03644028306007385,
0.010568810626864433,
0.040016550570726395,
-0.0036209707614034414,
-0.023923346772789955,
-0.07111125439405441,
0.006578449625521898,
-0.0007434871513396502,
-0.017664877697825432,
-0.013335712254047394,
0.0248080026358366,
0.019067151471972466,
0.054999228566884995,
0.05089592933654785,
-0.04713143780827522,
-0.05100886523723602,
-0.055676836520433426,
-0.015208547003567219,
0.03325928747653961,
0.03126410394906998,
0.03470861539244652,
-0.008583041839301586,
0.07574157416820526,
0.020723527297377586,
0.0560532845556736,
-0.012394589371979237,
-0.007557217497378588,
0.039188362658023834,
0.04984187334775925,
0.013156899251043797,
-0.0248080026358366,
-0.0005846726708114147,
0.012121664360165596,
0.06339404731988907,
-0.002658672397956252,
-0.0056467377580702305,
0.032525211572647095,
-0.013429825194180012,
0.029890066012740135,
-0.004665617365390062,
0.008023072965443134,
0.015886155888438225,
-0.03145233169198036,
0.055827416479587555,
0.022699886932969093,
0.016610819846391678,
0.021043509244918823,
0.00025586780975572765,
0.038491930812597275,
-0.07619331777095795,
0.021156445145606995,
0.015519117936491966,
-0.03425687551498413,
0.05368165299296379,
-0.004296226426959038,
-0.03717435896396637,
-0.017589587718248367,
0.006084360182285309,
0.006074948702007532,
-0.038491930812597275,
0.030586495995521545,
-0.003242168575525284,
0.0094959307461977,
0.016535529866814613,
-0.01609320379793644,
-0.02345278486609459,
-0.02872307412326336,
-0.019782405346632004,
0.03542386740446091,
0.019631825387477875,
0.037927255034446716,
-0.013486292213201523,
-0.06825023889541626,
0.048900749534368515,
0.02829015627503395,
-0.003712730249390006,
-0.03369220346212387,
0.034068651497364044,
-0.021702295169234276,
-0.038774266839027405,
0.05733321234583855,
0.014050966128706932,
0.0016963741509243846,
0.06889019906520844,
0.0120087293908,
-0.008423050865530968,
0.02525974065065384,
0.020083565264940262,
-0.061662375926971436,
0.02175876311957836,
-0.011378176510334015,
-0.00003882132295984775,
-0.0663679912686348,
-0.001125230104662478,
0.011839327402412891,
0.005618504248559475,
-0.04378104209899902,
-0.03244991973042488,
-0.016846101731061935,
0.028120754286646843,
0.019782405346632004,
-0.020478835329413414,
-0.014154489152133465,
-0.039188362658023834,
-0.05767201632261276,
0.009190065786242485,
0.02883600816130638,
0.028083110228180885,
0.027932530269026756,
-0.028798362240195274,
-0.04276462644338608,
-0.004322107415646315,
-0.004700909368693829,
0.014888565987348557,
0.033202819526195526,
0.03608265519142151,
-0.026727892458438873,
0.022248147055506706,
0.022549306973814964,
-0.05481100082397461,
-0.058311980217695236,
-0.007458399515599012,
0.001125230104662478,
-0.022718708962202072,
0.08221650123596191,
-0.0018881279975175858,
0.034463923424482346,
-0.041559990495443344,
-0.0557897686958313,
-0.016253193840384483,
0.007448988500982523,
-0.050030097365379333,
-0.027010230347514153,
-0.0005508510512299836,
0.04524919390678406,
-0.07352052628993988,
-0.04050593450665474,
-0.030266515910625458,
-0.017627233639359474,
-0.06079654395580292,
0.005472630262374878,
0.0687396228313446,
-0.021419959142804146,
-0.049992453306913376,
0.034068651497364044,
-0.002684553386643529,
-0.0019810639787465334,
0.016064969822764397,
-0.018154261633753777,
0.05560154467821121,
-0.02582441456615925,
-0.052364081144332886,
0.02162700518965721,
-0.03536740317940712,
-0.12159308791160583,
0.0184648334980011,
0.036572039127349854,
0.03743787109851837,
0.013608638197183609,
0.0029386566020548344,
0.018191907554864883,
-0.007590156979858875,
-0.024168038740754128,
-0.051121801137924194,
0.008672447875142097,
0.017504887655377388,
0.008517162874341011,
0.03465214744210243,
0.018803637474775314,
-0.0421246662735939,
0.03819077089428902,
0.02245519496500492,
-0.018144851550459862,
0.022248147055506706,
0.000310570583678782,
0.0224740169942379,
-0.019001273438334465,
0.02509033866226673,
0.003322164062410593,
0.020855285227298737,
-0.02068588323891163,
-0.0025763241574168205,
-0.01870952546596527,
0.03762609511613846,
-0.021250557154417038,
-0.02108115516602993,
-0.011726392433047295,
0.03066178597509861,
0.07717208564281464,
0.009957080706954002,
0.015641463920474052,
0.0007623095880262554,
0.014041555114090443,
0.041070606559515,
-0.0030021823477,
-0.000483501935377717,
0.03674143925309181,
0.004950306843966246,
-0.0527028851211071,
0.10841736942529678,
0.045023322105407715,
-0.03595089912414551,
-0.002289281692355871,
-0.036553215235471725,
-0.03649674728512764,
-0.022963400930166245,
-0.003091589082032442,
-0.024469196796417236,
0.05311698094010353,
0.0033009888138622046,
0.06226469576358795,
-0.0560532845556736,
0.026125574484467506,
-0.02303869090974331,
0.05100886523723602,
-0.007496044505387545,
-0.07875317335128784,
0.017448419705033302,
0.02164582908153534,
0.004463275894522667,
-0.0331839956343174,
0.02397981286048889,
0.07084773480892181,
-0.028666606172919273,
-0.0010293532395735383,
-0.007637212984263897,
0.050143033266067505,
0.040694158524274826,
-0.002477506175637245,
-0.0477714017033577,
-0.011481700465083122,
-0.06203882768750191,
-0.003675085259601474,
-0.002710434142500162,
0.0032868720591068268,
-0.004670322872698307,
0.05368165299296379,
0.036854375153779984,
0.04811020568013191,
-0.0300971120595932,
-0.022699886932969093,
0.03275107964873314,
0.01982004940509796,
0.000712312466930598,
0.04005419462919235,
0.04174821451306343,
-0.028214866295456886,
-0.037099067121744156,
0.016977857798337936,
-0.019613003358244896,
-0.04092002660036087,
0.027273744344711304,
0.0036209707614034414,
0.0490889735519886,
-0.018427187576889992,
0.03755080699920654,
0.024036280810832977,
0.004477392416447401,
0.014446238055825233,
0.00929829478263855,
0.014465060085058212,
-0.0209305752068758,
0.01788133569061756,
-0.0024010399356484413,
0.006352580152451992,
0.011058194562792778,
-0.021269379183650017,
-0.03625205531716347,
-0.0015257956692948937,
0.012159309349954128,
0.009928847663104534,
-0.0630175918340683,
0.016977857798337936,
-0.004427983425557613,
-0.023415138944983482,
-0.024318618699908257,
-0.01995180733501911,
0.028779540210962296,
-0.01241341233253479,
0.023528074845671654,
0.040844738483428955,
0.01968829333782196,
-0.00669609010219574,
0.030134757980704308,
-0.006169061176478863,
-0.015970857813954353,
0.0527028851211071,
-0.013928620144724846,
-0.012055785395205021,
-0.012874562293291092,
0.023113980889320374,
-0.02985242009162903,
0.015886155888438225,
-0.03077472187578678,
0.09682273119688034,
-0.006206706166267395,
-0.01953771337866783,
-0.04242582246661186,
0.0524393729865551,
-0.01788133569061756,
0.01166051346808672,
-0.010192361660301685,
-0.016911979764699936,
0.011989906430244446,
0.006263173650950193,
-0.008535985834896564,
-0.044195134192705154,
-0.0527028851211071,
-0.035047419369220734,
-0.011528756469488144,
0.05424632877111435,
0.009218299761414528,
-0.011952261440455914,
0.04227524250745773,
-0.08327056467533112,
0.010098249651491642,
0.02345278486609459,
0.0012187542160972953,
-0.031414683908224106,
-0.0816141813993454,
0.03401218354701996,
0.04204937443137169,
0.04272698238492012,
0.03549915924668312,
-0.021457603201270103,
-0.035856787115335464,
0.01678963378071785,
-0.016977857798337936,
0.048336077481508255,
-0.007961899973452091,
0.019782405346632004,
-0.0244127307087183,
0.022530484944581985,
-0.013288656249642372,
-0.046002089977264404,
-0.05409574881196022,
-0.05560154467821121,
0.045550353825092316,
-0.020290611311793327,
0.0480349175632,
0.03233698382973671,
0.04216231033205986,
0.01735430769622326,
0.006790202111005783,
-0.01247929036617279,
0.012441645376384258,
-0.0069501930847764015,
-0.0026045578997582197,
-0.01600850187242031,
0.03022886998951435,
0.023226914927363396,
-0.049728937447071075,
0.0006311406032182276,
-0.013439236208796501,
-0.12927265465259552,
0.07532748579978943,
-0.08718563616275787,
-0.028478382155299187,
-0.02870425023138523,
0.0042138779535889626,
0.04050593450665474,
0.013985087163746357,
0.04491038993000984,
-0.14034025371074677,
0.006390225142240524,
-0.014587406069040298,
-0.06008129194378853,
-0.011698158457875252,
0.021269379183650017,
-0.029908888041973114,
-0.05149824917316437,
0.030266515910625458,
-0.009227710776031017,
-0.0005682029877789319,
-0.009260649792850018,
-0.03190406784415245,
-0.0565803125500679,
-0.04656676575541496,
-0.03401218354701996,
0.024506842717528343,
-0.01831425353884697,
-0.054848648607730865,
-0.039753034710884094,
-0.0022139917127788067,
0.010389997623860836,
0.027781950309872627,
-0.014050966128706932,
-0.06425987929105759,
-0.016846101731061935,
0.06576567143201828,
-0.0707724466919899,
-0.000005854446499142796,
-0.005044419318437576,
0.03617676720023155,
-0.04393162205815315,
0.032826367765665054,
-0.01635671779513359,
-0.031565263867378235,
0.010371175594627857,
-0.015302659943699837,
-0.008983018808066845,
0.053041692823171616,
-0.014323892071843147,
-0.05793553218245506,
-0.019443601369857788,
-0.005091475322842598,
-0.021024687215685844,
0.005618504248559475,
0.010992316529154778,
-0.0057502612471580505,
0.01918949745595455,
-0.0068043190985918045,
-0.0032586383167654276,
-0.027800772339105606,
0.03617676720023155,
0.024243328720331192,
0.04050593450665474,
0.06979367882013321,
-0.041258830577135086,
-0.05059477314352989,
0.02497740462422371,
-0.03852957487106323,
0.007378404028713703,
-0.01122759748250246,
0.01539677195250988,
-0.06256585568189621,
-0.0129780862480402,
-0.04076944664120674,
-0.04622796177864075,
-0.03884955495595932,
-0.012225187383592129,
0.04137176647782326,
0.030906477943062782,
0.010644100606441498,
0.05646738037467003,
0.024732712656259537,
-0.05405810475349426,
-0.047244373708963394,
-0.019500067457556725,
0.012799272313714027,
0.02027178928256035,
0.007585451006889343,
0.008719504810869694,
0.0668950229883194,
-0.012328711338341236,
0.0205353032797575,
0.0028845418710261583,
0.062076471745967865,
0.03523564338684082,
-0.007336053531616926,
-0.0018022505100816488,
0.061925891786813736,
0.021175267174839973,
-0.009585337713360786,
0.005778495222330093,
-0.007086656056344509,
0.005289111286401749,
-0.04927719756960869,
-0.0059008412063121796,
0.0780002698302269,
-0.051949989050626755,
-0.020761173218488693,
0.013956854119896889,
-0.03214875981211662,
0.05481100082397461,
0.029890066012740135,
0.015688519924879074,
0.02661495842039585,
0.022530484944581985,
0.023208092898130417,
-0.05326756089925766,
-0.08748678863048553,
0.019763583317399025,
-0.02219167910516262,
-0.017871925607323647,
-0.00672902911901474,
-0.015481472946703434,
0.004079767968505621,
0.012695749290287495,
-0.07495103031396866,
0.014559172093868256,
0.04532448202371597,
-0.00281160487793386,
0.01955653540790081,
-0.01102996151894331,
-0.011622868478298187,
-0.04506096988916397,
0.03465214744210243,
0.026257330551743507,
0.03566855937242508,
0.05932839214801788,
-0.011077017523348331,
0.04434571415185928,
-0.004517390392720699,
-0.04050593450665474,
-0.042237598448991776,
-0.001578733790665865,
0.009891202673316002,
0.010719390586018562,
-0.009481813758611679,
-0.0064231641590595245,
0.011820504441857338,
0.022925755009055138,
-0.04603973776102066,
0.0635446235537529,
0.010032370686531067,
-0.04671734571456909,
0.06474926322698593,
-0.03907542675733566,
0.004049181472510099,
0.0441574901342392,
-0.04713143780827522,
-0.008441872894763947,
0.046980857849121094,
0.015274425968527794,
0.024864468723535538,
-0.0454750619828701,
-0.004893839359283447,
-0.014399181120097637,
0.014352125115692616,
-0.0335792675614357,
0.006710206624120474,
-0.00384919298812747,
-0.03674143925309181,
0.013006319291889668,
-0.002052824478596449,
-0.01718490570783615,
-0.015566173940896988,
0.012441645376384258,
0.009693566709756851,
0.03442627936601639,
-0.034746259450912476,
0.05755908042192459,
-0.0705089345574379,
-0.012667515315115452,
-0.059027232229709625,
-0.01604614593088627,
0.016921391710639,
-0.035988543182611465,
-0.0837223008275032,
-0.020742351189255714,
-0.011876972392201424,
0.00018131322576664388,
-0.03222405165433884,
0.0060278926976025105,
0.02495858073234558,
0.07073480635881424,
0.009312411770224571,
0.014050966128706932,
0.03804019093513489,
0.017194317653775215,
-0.011265242472290993,
-0.05906487628817558,
0.020892929285764694,
0.023791588842868805,
-0.018897749483585358,
0.014926210045814514,
-0.015227369964122772,
0.02650202251970768,
0.016629643738269806,
-0.0408070906996727,
-0.00339980679564178,
-0.06651857495307922,
0.003028063103556633,
0.04411984607577324,
-0.018408365547657013,
0.06764791905879974,
0.03804019093513489,
0.010907615534961224,
0.006281995680183172,
-0.02955126203596592,
-0.028930120170116425,
-0.004093884956091642,
-0.013514526188373566,
0.024864468723535538,
0.020836463198065758,
0.05063241720199585,
-0.04664205387234688,
-0.08771266043186188,
0.01687433570623398,
-0.04769611358642578,
0.02106233313679695,
-0.00008764207450440153,
0.04622796177864075,
-0.006394930649548769,
0.02426215074956417,
0.10111425071954727,
-0.02273753099143505,
-0.044308070093393326,
0.05560154467821121,
0.03694848716259003,
-0.004724437370896339,
-0.06531393527984619,
0.03915071487426758,
0.0013858035672456026,
0.0037409637589007616,
-0.01985769532620907,
-0.04472216218709946,
0.053493428975343704,
-0.031979359686374664,
0.014239191077649593,
-0.02081764116883278,
0.014540350064635277,
-0.004823255352675915,
-0.023245736956596375,
-0.022304615005850792,
-0.09599454700946808,
0.02983359806239605,
-0.06640563905239105,
-0.018831871449947357,
-0.028911298140883446,
-0.05368165299296379,
-0.011406410485506058,
-0.02456331066787243,
0.03967774659395218,
-0.044609230011701584,
0.07299349457025528,
-0.09433816373348236,
0.0022551659494638443,
-0.038341350853443146,
0.010766446590423584,
0.08929374814033508,
0.02691611647605896,
-0.0038139009848237038,
0.06700795888900757,
-0.10194244235754013,
-0.007792498450726271,
0.06776085495948792,
0.0019198908703401685,
0.040844738483428955,
0.04385633021593094,
0.05906487628817558,
0.03107587993144989,
0.012808683328330517,
0.040694158524274826,
0.028233690187335014,
-0.06377049535512924,
0.004649147391319275,
0.0490889735519886,
-0.05545096471905708,
0.024789178743958473,
-0.0560532845556736,
-0.0035033302847296,
0.022135213017463684,
0.04728201776742935,
0.0023669241927564144,
-0.027160808444023132,
-0.0033009888138622046,
-0.03079354390501976,
-0.039338938891887665,
0.00179519213270396,
0.008827733807265759,
-0.015472061932086945,
0.056241508573293686,
-0.03480272740125656,
0.018493065610527992,
0.03399336338043213,
0.01718490570783615,
-0.03937658667564392,
-0.0334475114941597,
-0.004427983425557613,
-0.005110297817736864,
0.05808610841631889,
0.00465385289862752,
-0.02177758514881134,
-0.027537258341908455
] |
723,038
|
isort.settings
|
_parse_known_pattern
|
Expand pattern if identified as a directory and return found sub packages
|
def _parse_known_pattern(self, pattern: str) -> List[str]:
"""Expand pattern if identified as a directory and return found sub packages"""
if pattern.endswith(os.path.sep):
patterns = [
filename
for filename in os.listdir(os.path.join(self.directory, pattern))
if os.path.isdir(os.path.join(self.directory, pattern, filename))
]
else:
patterns = [pattern]
return patterns
|
(self, pattern: str) -> List[str]
|
[
0.054960887879133224,
0.013139794580638409,
-0.003115262370556593,
-0.013313830830156803,
0.03468557447195053,
0.011094859801232815,
0.08694888651371002,
-0.005325532518327236,
0.012356627732515335,
-0.0047120521776378155,
0.04277829825878143,
0.03696545958518982,
-0.05054034665226936,
-0.024800274521112442,
-0.016916397958993912,
0.021249918267130852,
0.05649241432547569,
0.10428297519683838,
-0.03357173874974251,
0.04055062308907509,
-0.06404562294483185,
0.05638799071311951,
-0.027062755078077316,
0.01970098912715912,
-0.005260268691927195,
0.0324753075838089,
0.003935412038117647,
-0.04580654203891754,
-0.020240504294633865,
-0.04786017909646034,
-0.036721810698509216,
0.03157031536102295,
0.01032909657806158,
0.023756051436066628,
-0.08033548295497894,
-0.009667756035923958,
0.00041932042222470045,
0.07970894873142242,
-0.02290327101945877,
0.013426954858005047,
0.07149440050125122,
0.024661043658852577,
0.011965044774115086,
-0.02156318537890911,
0.012939651496708393,
-0.0019524777308106422,
-0.045110393315553665,
0.005007914733141661,
-0.02333836257457733,
0.03748757019639015,
-0.011956342495977879,
-0.010120252147316933,
-0.08200623840093613,
-0.034111253917217255,
0.018360905349254608,
0.07977856695652008,
0.0110774552449584,
0.05158456787467003,
0.10149838030338287,
0.021528378129005432,
0.005007914733141661,
0.01282652746886015,
-0.039193134754896164,
0.04284791275858879,
-0.051654186099767685,
-0.0023864824324846268,
-0.008971608243882656,
-0.036826230585575104,
-0.04552808031439781,
0.03700026869773865,
-0.062444478273391724,
-0.00931968167424202,
-0.0007847981178201735,
0.0077838050201535225,
0.027149774134159088,
-0.023547207936644554,
0.028994565829634666,
-0.05659683421254158,
0.017873600125312805,
0.027219388633966446,
-0.04977458342909813,
0.0078055597841739655,
0.00783601589500904,
0.0026323096826672554,
0.08075316995382309,
0.0073878709226846695,
-0.02767188474535942,
0.0006928848451934755,
0.011878025718033314,
0.008392934687435627,
-0.005882450845092535,
-0.03167473524808884,
0.03157031536102295,
0.06247928738594055,
-0.03905390575528145,
0.014984586276113987,
0.004052886739373207,
-0.015637224540114403,
0.015724243596196175,
0.012861334718763828,
-0.01658572629094124,
-0.002486553741618991,
-0.03329328075051308,
-0.013818538747727871,
0.030439073219895363,
-0.017838792875409126,
-0.044066172093153,
0.0040855188854038715,
-0.020780019462108612,
0.0328407846391201,
-0.01103394664824009,
0.0018861261196434498,
0.012878738343715668,
0.03595604747533798,
-0.03905390575528145,
-0.0036199698224663734,
-0.04110754281282425,
-0.02546161413192749,
-0.027341214939951897,
0.007144219242036343,
-0.020275311544537544,
0.06066930294036865,
-0.013409551233053207,
0.027497846633195877,
0.03200540691614151,
-0.041594844311475754,
-0.01761254481971264,
-0.0402025505900383,
0.005290725268423557,
0.017412403598427773,
-0.008410338312387466,
0.06512464582920074,
-0.04796459898352623,
-0.046607110649347305,
-0.03654777258634567,
0.02144135907292366,
-0.013635799288749695,
-0.06937114894390106,
0.00683965440839529,
0.021545782685279846,
-0.006082593463361263,
0.02929042838513851,
-0.022276736795902252,
-0.03184877336025238,
-0.028072169050574303,
0.0182912889868021,
0.055796265602111816,
0.03752237930893898,
-0.015793858096003532,
-0.044066172093153,
-0.046363458037376404,
-0.03449413552880287,
-0.00191114388871938,
0.032144635915756226,
0.028507262468338013,
0.004257380496710539,
0.02163279987871647,
0.07894318550825119,
0.007870824076235294,
-0.016620533540844917,
0.027811113744974136,
-0.04984419792890549,
-0.08298084884881973,
0.050470732152462006,
0.009076029993593693,
0.02814178355038166,
0.03686103969812393,
-0.02755005843937397,
-0.04142080992460251,
0.019996851682662964,
0.029534080997109413,
0.021510973572731018,
-0.030473880469799042,
0.004157308954745531,
-0.013905556872487068,
0.03940197825431824,
0.008114475756883621,
0.041525229811668396,
0.06488099694252014,
0.0631406307220459,
0.01491497177630663,
-0.00804051011800766,
-0.014088296331465244,
-0.0003053805558010936,
0.005151495337486267,
0.015576312318444252,
-0.013757625594735146,
0.011207983829081059,
-0.008127528242766857,
0.020867036655545235,
-0.08465160429477692,
0.018378308042883873,
0.0422561876475811,
0.015654629096388817,
-0.025879302993416786,
-0.0018980911700055003,
-0.04911324381828308,
0.03200540691614151,
-0.05687529593706131,
-0.001517385127954185,
-0.0013444358482956886,
-0.04260426014661789,
0.008497357368469238,
0.05005304515361786,
0.017116539180278778,
0.011703988537192345,
-0.04834748059511185,
0.035886432975530624,
-0.04051581397652626,
-0.03291039913892746,
-0.039750054478645325,
-0.003243614686653018,
0.0422561876475811,
-0.03129185363650322,
-0.006787443533539772,
-0.02640141360461712,
-0.007018042262643576,
0.03414606302976608,
-0.036164890974760056,
0.00517325010150671,
-0.01773437112569809,
-0.006274034269154072,
0.014688723720610142,
0.017038222402334213,
0.001176925259642303,
-0.010268183425068855,
0.04444905370473862,
0.0009746072464622557,
-0.02842024341225624,
-0.026157762855291367,
-0.007923034951090813,
-0.07483591139316559,
0.04580654203891754,
-0.006330596283078194,
0.015123816207051277,
-0.02474806271493435,
0.06185275316238403,
-0.015819964930415154,
0.06112179905176163,
0.00883672945201397,
-0.02396489679813385,
0.008701850660145283,
-0.010572748258709908,
-0.02845505066215992,
0.0007418327732011676,
0.025722669437527657,
0.013383446261286736,
0.005264619365334511,
0.039436787366867065,
0.012191292829811573,
-0.032336074858903885,
0.06703905761241913,
-0.03425048291683197,
0.0018078094581142068,
-0.0037483221385627985,
-0.11068753898143768,
-0.05471723526716232,
0.02995176985859871,
0.018273886293172836,
0.026853909716010094,
0.0221549104899168,
0.046328652650117874,
0.010537941008806229,
0.008688797242939472,
-0.06167871505022049,
-0.025391999632120132,
0.017682159319519997,
-0.024365181103348732,
-0.029586290940642357,
0.0034437573049217463,
-0.005764976143836975,
-0.007248641457408667,
-0.019770603626966476,
0.03599085286259651,
-0.0399588979780674,
0.061226218938827515,
-0.0030173666309565306,
0.045110393315553665,
-0.01231311820447445,
-0.01769956387579441,
-0.028663896024227142,
0.02751525118947029,
0.013061477802693844,
0.025792283937335014,
0.004890440031886101,
0.010564046911895275,
-0.005643149837851524,
0.0363389290869236,
-0.056736063212156296,
0.023129519075155258,
-0.009737370535731316,
-0.046015385538339615,
0.04055062308907509,
0.011277598328888416,
-0.007988298311829567,
0.027497846633195877,
0.04114234820008278,
-0.054960887879133224,
0.044240206480026245,
-0.014932375401258469,
-0.0497397780418396,
0.0474424883723259,
0.05238514021039009,
0.01511511392891407,
-0.032701555639505386,
-0.037661608308553696,
-0.0230599045753479,
-0.05597030371427536,
0.0028607333078980446,
0.005904205609112978,
0.024852484464645386,
-0.020205697044730186,
0.04263906553387642,
-0.036512963473796844,
-0.01583736762404442,
-0.051654186099767685,
-0.009258768521249294,
0.042987141758203506,
-0.016446497291326523,
0.010172463022172451,
0.0003091876278631389,
0.04284791275858879,
-0.022642215713858604,
-0.017247067764401436,
0.03163992986083031,
0.07323477417230606,
-0.01245234813541174,
-0.007592364680022001,
0.007709839381277561,
0.0014238402945920825,
-0.007022393401712179,
-0.014114401303231716,
-0.04086389020085335,
0.017551632598042488,
0.008279810659587383,
-0.001803458551876247,
-0.02514834702014923,
-0.0822150856256485,
0.017116539180278778,
-0.032892994582653046,
0.02982994355261326,
0.005856345407664776,
-0.07358285039663315,
0.04796459898352623,
0.026018531993031502,
-0.010172463022172451,
0.05635318532586098,
0.062409672886133194,
0.003665654454380274,
0.011495144106447697,
0.0443098209798336,
-0.02833322435617447,
-0.05548299849033356,
0.016220249235630035,
0.040028512477874756,
0.041281577199697495,
-0.07076344639062881,
0.06582079827785492,
-0.018848208710551262,
0.06366273760795593,
0.10992177575826645,
0.030299844220280647,
-0.00997232086956501,
-0.044866740703582764,
-0.00799264945089817,
-0.03548614680767059,
0.027724094688892365,
0.02695833332836628,
0.043892133980989456,
-0.027010543271899223,
-0.005730168428272009,
0.01782139018177986,
0.016559621319174767,
-0.06811808794736862,
0.007809910923242569,
-0.04030697047710419,
0.014401562511920929,
-0.015350064262747765,
0.006752635817974806,
0.05743221193552017,
-0.014236227609217167,
0.03101339563727379,
0.03693065419793129,
-0.02499171532690525,
0.011982448399066925,
0.001564157661050558,
0.00726169440895319,
-0.02337316982448101,
-0.023442784324288368,
0.010137655772268772,
0.011756200343370438,
-0.02742823213338852,
0.007231237832456827,
-0.014001277275383472,
0.012835229746997356,
-0.061191413551568985,
0.0347725935280323,
-0.005155846476554871,
0.00853651575744152,
0.02499171532690525,
0.02446960285305977,
-0.0660296380519867,
-0.033797986805438995,
0.033832795917987823,
0.01751682534813881,
-0.02050155960023403,
0.07734204828739166,
0.034302692860364914,
-0.09425844252109528,
-0.02156318537890911,
0.03388500586152077,
-0.0758105218410492,
0.006643862929195166,
-0.009136943146586418,
-0.021667607128620148,
0.030908972024917603,
-0.06080853193998337,
-0.005939012859016657,
0.020780019462108612,
0.01582866534590721,
-0.005756273865699768,
-0.07295631617307663,
0.02278144471347332,
0.05033150315284729,
0.03066532127559185,
0.03539912775158882,
-0.035416532307863235,
0.01052053738385439,
-0.02072780765593052,
0.02325134538114071,
-0.03007359430193901,
0.025670459493994713,
-0.06334947049617767,
-0.0220330860465765,
0.029377447441220284,
-0.03811410441994667,
0.009119539521634579,
-0.03717430680990219,
-0.0636279284954071,
-0.0328407846391201,
-0.030056191608309746,
0.040620237588882446,
0.04138600081205368,
0.07295631617307663,
0.029690714552998543,
-0.0021874275989830494,
0.03303222358226776,
0.011556057259440422,
-0.08381622284650803,
-0.05005304515361786,
-0.06477657705545425,
-0.022520389407873154,
0.03473778814077377,
0.02439998835325241,
-0.004868685267865658,
0.001985109644010663,
0.058267589658498764,
0.020988862961530685,
-0.034650769084692,
-0.03606046736240387,
0.07643705606460571,
0.006961480248719454,
0.048695556819438934,
0.028785720467567444,
0.017160048708319664,
-0.10755487531423569,
0.05593549460172653,
-0.03630411997437477,
-0.006626459304243326,
-0.02253779210150242,
0.018099848181009293,
-0.04222137853503227,
-0.004126852378249168,
-0.015654629096388817,
-0.030682723969221115,
0.01450598519295454,
0.012608981691300869,
0.019875027239322662,
0.0051297410391271114,
-0.02869870327413082,
-0.023007692769169807,
-0.05443877726793289,
0.012191292829811573,
0.028872739523649216,
-0.03362394869327545,
-0.07462707161903381,
0.008079668506979942,
-0.04236060753464699,
-0.05691010132431984,
-0.09523305296897888,
0.018813401460647583,
0.05983392521739006,
-0.007853420451283455,
-0.023129519075155258,
-0.0006455685361288488,
0.010398711077868938,
-0.02944706194102764,
0.08256315439939499,
0.02995176985859871,
0.005847643595188856,
0.01745591126382351,
-0.05033150315284729,
-0.03654777258634567,
0.023025095462799072,
-0.01903964951634407,
-0.011738796718418598,
0.0217894334346056,
-0.027637077495455742,
-0.02187645249068737,
0.027010543271899223,
0.004346574191004038,
0.019213685765862465,
-0.0481734424829483,
0.026575451716780663,
0.06564676016569138,
0.02408672124147415,
0.016011405736207962,
-0.00018246693070977926,
0.00813187938183546,
0.044553473591804504,
-0.059102967381477356,
-0.05231552571058273,
0.02412153035402298,
-0.0181694645434618,
0.025322385132312775,
-0.03268415108323097,
-0.02633179910480976,
0.003944113850593567,
-0.02708015777170658,
0.013557483442127705,
0.024104125797748566,
-0.025983724743127823,
0.009389297105371952,
0.037383150309324265,
0.07246901094913483,
-0.003315404988825321,
0.04681595414876938,
0.012339224107563496,
-0.08625274151563644,
0.0034959684126079082,
-0.021389149129390717,
0.05370781943202019,
-0.009424104355275631,
-0.06195717677474022,
0.019875027239322662,
0.01293095014989376,
0.0023038149811327457,
-0.01903964951634407,
0.0889677181839943,
0.0004690841306000948,
0.022015681490302086,
-0.0074792406521737576,
-0.06839654594659805,
0.09147385507822037,
0.08806272596120834,
-0.05899854749441147,
-0.014845357276499271,
0.006413263734430075,
-0.055204540491104126,
-0.04075946658849716,
-0.039227940142154694,
0.0307871475815773,
-0.014157910831272602,
0.01663793809711933,
-0.014767040498554707,
-0.033084437251091,
-0.04462308809161186,
0.028942354023456573,
-0.02758486568927765,
0.03315405175089836,
0.03157031536102295,
-0.05892893299460411,
-0.0005645325290970504,
-0.04504077881574631,
-0.035172879695892334,
-0.014166612178087234,
0.04490154981613159,
-0.012374031357467175,
0.04051581397652626,
-0.0034829156938940287,
0.02231154404580593,
-0.03933236375451088,
0.050783999264240265,
-0.0019731447100639343,
-0.035921238362789154,
-0.005464761983603239,
0.03661738708615303,
0.015350064262747765,
0.006043435074388981,
-0.003530775895342231,
0.008919396437704563,
-0.00839728582650423,
0.051132071763277054,
0.0034916175063699484,
-0.03132666274905205,
-0.028315821662545204,
-0.027306407690048218,
-0.008223248645663261,
0.028368031606078148,
-0.043961748480796814,
0.02661025896668434,
0.03449413552880287,
0.028124380856752396,
0.010842505842447281,
0.03487701714038849,
-0.03905390575528145,
0.06380196660757065,
-0.032179441303014755,
-0.03717430680990219,
0.04197772592306137,
-0.028994565829634666,
0.012504559010267258,
0.07636743783950806,
-0.00040273251943290234,
-0.031396277248859406,
0.061469871550798416,
-0.025757476687431335,
-0.04904362931847572,
0.031431082636117935,
-0.026575451716780663,
-0.04497116431593895,
0.00888023804873228,
-0.007174675818532705,
-0.0011965044541284442,
0.023146921768784523,
0.0345289409160614,
-0.04650269076228142,
-0.06286216527223587,
-0.016228951513767242,
0.0068048471584916115,
0.024643640965223312,
0.04845190420746803,
0.001932898536324501,
-0.016629235818982124,
0.006961480248719454,
-0.01046832650899887,
-0.03365875780582428,
-0.08033548295497894,
-0.030212825164198875,
-0.042743489146232605,
-0.01994464173913002,
-0.08569582551717758,
-0.045632503926754,
-0.01367930881679058,
-0.010990437120199203,
-0.03891467675566673,
-0.02533978782594204,
0.008049211464822292,
0.00631754333153367,
0.025217963382601738,
0.00829286314547062,
0.022137507796287537,
-0.010651065036654472,
0.03804448992013931,
-0.005786730442196131,
0.07351323217153549,
-0.026940928772091866,
0.0030456476379185915,
0.0327189564704895,
0.02128472551703453,
-0.006056488025933504,
0.02514834702014923,
-0.019178878515958786,
-0.016977310180664062,
-0.06453292071819305,
0.0004601103428285569,
0.025357192382216454,
-0.057919517159461975,
0.02116290107369423,
0.037661608308553696,
0.03216204047203064,
-0.004057237878441811,
0.02661025896668434,
-0.01738629676401615,
0.021023670211434364,
0.021893855184316635,
-0.03515547513961792,
0.02427816204726696,
0.0554133839905262,
0.018395712599158287,
-0.022885866463184357,
-0.028315821662545204,
0.035921238362789154,
0.024504410102963448,
0.04803421348333359,
0.054960887879133224,
-0.006922321859747171,
-0.003946289420127869,
0.03390241041779518,
-0.027567462995648384,
-0.03846218064427376,
0.0287335105240345,
0.034824807196855545,
-0.03042166866362095,
-0.01975320093333721,
0.08054433017969131,
0.02006646804511547,
0.023164326325058937,
0.02297288551926613,
-0.06540311127901077,
0.03200540691614151,
0.029064180329442024,
-0.007753348909318447,
-0.04831267520785332,
0.010807698592543602,
0.004357451573014259,
-0.017325384542346,
0.005155846476554871,
-0.09655573219060898,
0.06129583343863487,
-0.026505837216973305,
0.016724957153201103,
-0.011616970412433147,
-0.06985845416784286,
-0.0017175277462229133,
-0.04232580214738846,
0.028977161273360252,
-0.015341361984610558,
0.11159253120422363,
-0.02948186919093132,
0.040063317865133286,
-0.013609694316983223,
0.015089008957147598,
0.0027323809918016195,
-0.03425048291683197,
0.045110393315553665,
-0.04107273370027542,
-0.013653203845024109,
0.023425381630659103,
0.033397700637578964,
-0.046572305262088776,
0.08137970417737961,
-0.021859047934412956,
0.048103827983140945,
0.003665654454380274,
-0.006561195477843285,
-0.030369458720088005,
0.03515547513961792,
-0.02265961840748787,
-0.0010023444192484021,
-0.01938772201538086,
-0.007139868102967739,
-0.010381307452917099,
0.032805975526571274,
-0.0010251867352053523,
0.0056910100392997265,
0.04907843843102455,
0.0027737149503082037,
-0.03358914330601692,
-0.002429991727694869,
-0.010311692953109741,
-0.0551697313785553,
-0.024208547547459602,
-0.016838081181049347,
-0.0659252181649208,
-0.029098987579345703,
0.04685076326131821,
-0.017351489514112473,
0.009859196841716766,
-0.017368894070386887,
-0.04674633964896202,
-0.025600844994187355,
0.06039084121584892,
0.0171426460146904,
0.03101339563727379,
0.0022026558872312307,
-0.0008022018591873348,
-0.007670680992305279
] |
723,039
|
isort.settings
|
is_skipped
|
Returns True if the file and/or folder should be skipped based on current settings.
|
def is_skipped(self, file_path: Path) -> bool:
"""Returns True if the file and/or folder should be skipped based on current settings."""
if self.directory and Path(self.directory) in file_path.resolve().parents:
file_name = os.path.relpath(file_path.resolve(), self.directory)
else:
file_name = str(file_path)
os_path = str(file_path)
normalized_path = os_path.replace("\\", "/")
if normalized_path[1:2] == ":":
normalized_path = normalized_path[2:]
for skip_path in self.skips:
if posixpath.abspath(normalized_path) == posixpath.abspath(
skip_path.replace("\\", "/")
):
return True
position = os.path.split(file_name)
while position[1]:
if position[1] in self.skips:
return True
position = os.path.split(position[0])
for sglob in self.skip_globs:
if fnmatch.fnmatch(file_name, sglob) or fnmatch.fnmatch("/" + file_name, sglob):
return True
if not (os.path.isfile(os_path) or os.path.isdir(os_path) or os.path.islink(os_path)):
return True
if self.skip_gitignore:
if file_path.name == ".git": # pragma: no cover
return True
git_folder = None
file_paths = [file_path, file_path.resolve()]
for folder in self.git_ls_files:
if any(folder in path.parents for path in file_paths):
git_folder = folder
break
else:
git_folder = self._check_folder_git_ls_files(str(file_path.parent))
# git_ls_files are good files you should parse. If you're not in the allow list, skip.
if (
git_folder
and not file_path.is_dir()
and str(file_path.resolve()) not in self.git_ls_files[git_folder]
):
return True
return False
|
(self, file_path: pathlib.Path) -> bool
|
[
0.01650758646428585,
-0.01921491138637066,
-0.032852936536073685,
0.09434065222740173,
0.00917651504278183,
-0.005080037284642458,
0.04611578956246376,
-0.0016426468500867486,
-0.028087232261896133,
-0.05248358100652695,
0.06891004741191864,
0.01835303008556366,
0.004048313479870558,
-0.047454241663217545,
-0.049644436687231064,
-0.0195089653134346,
0.0784820169210434,
0.03664521872997284,
0.035773199051618576,
-0.03364384174346924,
-0.006717614363878965,
0.03934240713715553,
0.008061137050390244,
0.057553477585315704,
0.009384380653500557,
0.02005651593208313,
-0.0007161230314522982,
0.0332382507622242,
-0.016923317685723305,
0.006687195040285587,
-0.04392559453845024,
0.029141772538423538,
0.017551986500620842,
0.009602386504411697,
-0.013627884909510612,
-0.008045927621424198,
-0.008852041326463223,
0.04013330861926079,
-0.09539519250392914,
-0.055849991738796234,
-0.03636130690574646,
0.009592246264219284,
0.0035261139273643494,
0.01054538693279028,
-0.04193819314241409,
-0.07178974896669388,
-0.030480224639177322,
0.023787960410118103,
-0.029364846646785736,
0.039322126656770706,
0.034820057451725006,
0.041451483964920044,
-0.05041506141424179,
0.020644623786211014,
0.032650139182806015,
0.007620056159794331,
0.015371929854154587,
-0.0012738117948174477,
0.002201603027060628,
-0.00035013980232179165,
-0.0337655171751976,
0.028087232261896133,
0.023706842213869095,
-0.030034074559807777,
0.01323243323713541,
-0.028208911418914795,
-0.03583403676748276,
-0.07665685564279556,
0.0050141289830207825,
0.04193819314241409,
-0.07694076746702194,
0.037415843456983566,
0.0615282766520977,
0.013252712786197662,
-0.019123654812574387,
-0.008563057519495487,
0.030135471373796463,
0.022084474563598633,
0.04834654554724693,
-0.017389748245477676,
-0.08493092656135559,
-0.02025931142270565,
0.003110382240265608,
0.00019899348262697458,
0.03958576172590256,
0.02620123140513897,
0.08079388737678528,
-0.008228443562984467,
0.028411706909537315,
-0.011934539303183556,
0.01699429750442505,
0.02380823902785778,
0.01316145434975624,
-0.007554147392511368,
0.007194184698164463,
0.017886599525809288,
0.026850178837776184,
-0.017126115038990974,
-0.0794554352760315,
-0.029506804421544075,
-0.026992134749889374,
0.03595571592450142,
0.01682192087173462,
-0.028411706909537315,
0.06619258224964142,
-0.02441662736237049,
-0.04834654554724693,
0.0056326561607420444,
0.002783373696729541,
-0.051347922533750534,
-0.060473740100860596,
-0.047048650681972504,
0.029283728450536728,
0.01408417522907257,
0.0455479621887207,
-0.046845853328704834,
-0.03463754057884216,
-0.013222292996942997,
-0.05053674057126045,
-0.019985536113381386,
0.04562908038496971,
0.031271129846572876,
0.01497647725045681,
0.005384231451898813,
0.054268185049295425,
-0.025897037237882614,
0.05361923575401306,
0.013485928066074848,
-0.043560560792684555,
0.029101211577653885,
-0.00950605794787407,
-0.008375470526516438,
-0.011042237281799316,
-0.029770439490675926,
-0.002978564938530326,
0.09271828830242157,
0.02871590107679367,
0.006555377505719662,
0.039119329303503036,
0.0392410084605217,
0.08736447989940643,
-0.01619325391948223,
0.025957876816391945,
0.023504044860601425,
-0.0044006709940731525,
0.053254205733537674,
-0.019123654812574387,
0.046561941504478455,
0.03603683412075043,
0.016456887125968933,
0.0390179306268692,
-0.04518292844295502,
-0.03788227587938309,
0.018373308703303337,
-0.0011876234784722328,
0.02865506149828434,
-0.03520536795258522,
0.03970743715763092,
-0.001100801513530314,
-0.013932079076766968,
0.013921938836574554,
-0.04441230371594429,
0.021131332963705063,
0.026627102866768837,
-0.017176812514662743,
0.0007364026387222111,
-0.05520104616880417,
-0.043560560792684555,
-0.0012256477493792772,
0.020928537473082542,
0.040761977434158325,
0.032771818339824677,
0.06582754850387573,
0.007042087614536285,
-0.05264581739902496,
0.03356272354722023,
0.004694725386798382,
0.013668444007635117,
-0.026099832728505135,
0.033461324870586395,
0.012471947818994522,
-0.05224022641777992,
0.022348109632730484,
0.007255023345351219,
0.03628018870949745,
0.039808835834264755,
-0.0024246785324066877,
-0.0500500313937664,
0.039747998118400574,
0.07264149188995361,
-0.05860801786184311,
0.053781475871801376,
0.020989377051591873,
0.015503747388720512,
0.0003159180050715804,
0.03348160535097122,
0.05678285285830498,
0.007691034581512213,
-0.0016920783091336489,
-0.026221510022878647,
-0.005794893018901348,
0.0048493570648133755,
0.028533384203910828,
-0.016254091635346413,
-0.04550740122795105,
0.0027149301022291183,
-0.06667929142713547,
0.01979288086295128,
0.026444585993885994,
0.04420950636267662,
-0.040761977434158325,
-0.09442177414894104,
0.02960820309817791,
0.026241790503263474,
0.035915154963731766,
-0.02285509929060936,
0.024599144235253334,
0.048062629997730255,
-0.04408783093094826,
0.03822702914476395,
0.02764108218252659,
0.03498229384422302,
-0.060270942747592926,
-0.02498445473611355,
0.02455858513712883,
-0.001989934826269746,
0.05483601242303848,
0.05438986048102379,
0.0004699161509051919,
-0.009511128067970276,
-0.023382367566227913,
-0.03991023451089859,
-0.012654464691877365,
0.02557256445288658,
0.02043168805539608,
-0.0017275676364079118,
0.005551537964493036,
-0.0709785670042038,
-0.017247792333364487,
-0.04072141647338867,
-0.03131168708205223,
-0.005308182910084724,
-0.01180272176861763,
-0.008451519533991814,
-0.056052789092063904,
-0.04919828847050667,
0.0362396277487278,
0.030196310952305794,
0.02218587137758732,
0.02545088529586792,
0.03220399096608162,
0.056255582720041275,
-0.04258713871240616,
-0.05690453201532364,
-0.011245032772421837,
-0.030480224639177322,
-0.029973234981298447,
0.004656700883060694,
0.045142367482185364,
0.05224022641777992,
-0.019143933430314064,
-0.011234893463551998,
-0.007533867843449116,
-0.021861398592591286,
0.004993848968297243,
-0.026850178837776184,
0.050374504178762436,
-0.029425686225295067,
-0.02109077386558056,
0.016264231875538826,
0.1420382559299469,
-0.00878613255918026,
0.01627437211573124,
0.011042237281799316,
0.008923020213842392,
0.012553066946566105,
-0.0018353029154241085,
-0.0063069527968764305,
-0.01559500489383936,
0.049766115844249725,
0.026586543768644333,
0.049766115844249725,
-0.01370900310575962,
0.009272842667996883,
0.003891146508976817,
0.007929319515824318,
-0.007037017960101366,
0.0005548369372263551,
-0.03555012121796608,
0.04790039360523224,
0.014145014807581902,
0.003992544487118721,
0.06688208878040314,
-0.033319368958473206,
0.009440149180591106,
0.06907228380441666,
0.031899794936180115,
-0.008781062439084053,
-0.05418706685304642,
-0.040761977434158325,
-0.0369899719953537,
0.07016738504171371,
0.008030718192458153,
-0.03678717836737633,
-0.02831030823290348,
-0.007447679527103901,
-0.01682192087173462,
-0.0015399814583361149,
-0.013394669629633427,
-0.04189763590693474,
-0.00013657036470249295,
-0.01487507950514555,
0.048265427350997925,
-0.034820057451725006,
0.04031582549214363,
-0.02386907860636711,
0.056580059230327606,
0.009749413467943668,
-0.02571452036499977,
0.011589786037802696,
-0.030196310952305794,
0.07077576965093613,
-0.060960449278354645,
0.025673961266875267,
0.019732041284441948,
-0.01855582557618618,
-0.00225103460252285,
-0.02782359905540943,
-0.006950829643756151,
0.029040373861789703,
0.01053524762392044,
-0.029304008930921555,
-0.03970743715763092,
-0.011721603572368622,
-0.005450139753520489,
-0.0063170925714075565,
-0.020360708236694336,
-0.02545088529586792,
0.07211422175168991,
0.05033394321799278,
0.021435527130961418,
-0.048549339175224304,
-0.00838561076670885,
-0.02149636670947075,
0.018190793693065643,
-0.046561941504478455,
0.02066490240395069,
0.057066768407821655,
0.023422926664352417,
0.04717032611370087,
0.11088880151510239,
0.010058676823973656,
-0.0025311463978141546,
-0.011295732110738754,
-0.02421383187174797,
0.013354110531508923,
-0.03206203132867813,
0.053173087537288666,
-0.009602386504411697,
0.025815919041633606,
0.07272261381149292,
-0.018312470987439156,
0.02244950644671917,
0.03317740932106972,
-0.003442460438236594,
-0.009931929409503937,
0.01360760536044836,
-0.0031686860602349043,
-0.04380391538143158,
-0.005703635048121214,
-0.015280671417713165,
-0.018434148281812668,
0.018058976158499718,
-0.09417841583490372,
0.045669637620449066,
-0.037618640810251236,
0.014793961308896542,
-0.06258281320333481,
0.010322311893105507,
0.026911016553640366,
-0.026383748278021812,
0.041654277592897415,
0.02224671095609665,
0.04331720620393753,
-0.012289431877434254,
0.01893099769949913,
0.05532272160053253,
-0.08042885363101959,
0.02660682238638401,
-0.0780358612537384,
0.026444585993885994,
-0.02810751274228096,
0.012319851666688919,
0.020654762163758278,
-0.02415299229323864,
-0.08087500929832458,
0.02591731585562229,
-0.004159850999712944,
-0.011072656139731407,
-0.021678881719708443,
0.028269749134778976,
-0.033664122223854065,
0.016345350071787834,
0.0519968718290329,
0.010758322663605213,
0.029587922617793083,
0.015524026937782764,
0.030541064217686653,
-0.012877539731562138,
0.03488089516758919,
-0.04838710278272629,
-0.05313252657651901,
0.015463188290596008,
-0.00586587144061923,
0.0005478658131323755,
0.04153260216116905,
-0.08026661723852158,
-0.011366710066795349,
0.038510940968990326,
-0.02954736351966858,
-0.01242124941200018,
-0.04498013108968735,
0.01899183727800846,
0.004831612575799227,
0.06416462361812592,
0.015807941555976868,
-0.010555527172982693,
-0.03315712884068489,
-0.017105834558606148,
0.0322648286819458,
-0.04072141647338867,
0.01477368175983429,
0.021658603101968765,
-0.00598754920065403,
0.03194035589694977,
-0.048752136528491974,
-0.057269562035799026,
-0.049279406666755676,
-0.05674229562282562,
0.006393141113221645,
-0.06286673247814178,
0.06530027836561203,
-0.013739422895014286,
0.02626206912100315,
0.04173539578914642,
0.018860019743442535,
-0.02885785698890686,
0.029709599912166595,
0.0018555825809016824,
0.010930699296295643,
-0.0869588851928711,
0.06761215627193451,
0.02040126733481884,
-0.057756274938583374,
-0.04542628303170204,
-0.006570587400346994,
-0.06574643403291702,
0.011052376590669155,
-0.01152894739061594,
-0.016700243577361107,
0.02107049524784088,
0.012593626044690609,
0.03942352533340454,
-0.0354892835021019,
0.07799530774354935,
-0.057675156742334366,
-0.03021658957004547,
0.006682124920189381,
-0.028837578371167183,
0.02204391546547413,
0.004965964704751968,
-0.03159560263156891,
-0.007944529876112938,
-0.005237204488366842,
-0.0032979685347527266,
-0.009561827406287193,
-0.034617260098457336,
0.04798151180148125,
0.013242572546005249,
0.012188034132122993,
-0.03636130690574646,
-0.030784418806433678,
-0.03064246103167534,
-0.028959255665540695,
-0.009217074140906334,
-0.018454426899552345,
-0.009252563118934631,
0.018505126237869263,
-0.01578766107559204,
-0.07754915207624435,
0.022814540192484856,
-0.011863560415804386,
-0.008299422450363636,
0.02966904081404209,
-0.029243169352412224,
-0.018312470987439156,
-0.057026207447052,
0.07211422175168991,
0.008056066930294037,
-0.015341510064899921,
-0.0005976142128929496,
0.013942218385636806,
-0.02340264804661274,
0.04080253466963768,
0.006357651669532061,
0.01098139863461256,
-0.032771818339824677,
-0.009648014791309834,
-0.0499689094722271,
-0.00465416582301259,
-0.002801118418574333,
-0.0028087233658879995,
0.003406971227377653,
0.033055733889341354,
0.05641782283782959,
-0.0270124152302742,
0.025957876816391945,
0.018190793693065643,
0.0549982488155365,
-0.0043778568506240845,
-0.012269152328372002,
-0.06363735347986221,
-0.013729282654821873,
0.003883541561663151,
-0.032305389642715454,
0.05771571397781372,
0.011691183783113956,
-0.029040373861789703,
-0.002291593700647354,
-0.013942218385636806,
-0.0023600372951477766,
-0.015574725344777107,
0.0066010067239403725,
0.016669822856783867,
0.04210042953491211,
0.014763541519641876,
0.02989211678504944,
0.04274937883019447,
-0.007102926727384329,
-0.025430606678128242,
0.008370401337742805,
-0.0017377074109390378,
0.03439418599009514,
-0.043357763439416885,
0.006043318193405867,
0.06132548302412033,
0.0006844361778348684,
-0.0026845107786357403,
-0.00498624425381422,
0.020847419276833534,
0.022084474563598633,
0.015270532108843327,
0.023727120831608772,
0.02135440893471241,
0.1400914192199707,
0.015676124021410942,
0.012056216597557068,
0.018261771649122238,
0.005901360884308815,
-0.019752321764826775,
-0.019488686695694923,
0.007062367629259825,
-0.0244977455586195,
-0.0555255189538002,
-0.04218154773116112,
-0.048265427350997925,
-0.0025286113377660513,
0.0056529357098042965,
-0.001489282469265163,
-0.00554646784439683,
0.022206151857972145,
-0.010210773907601833,
-0.024883057922124863,
0.006874781101942062,
-0.003356272354722023,
0.0009449021890759468,
0.012857260182499886,
0.03962631896138191,
-0.022976776584982872,
-0.025673961266875267,
0.013556906022131443,
-0.07791418582201004,
0.03437390550971031,
-0.01460130512714386,
-0.055849991738796234,
-0.02182083949446678,
-0.0068088723346591,
0.023504044860601425,
0.021577484905719757,
-0.01633520983159542,
0.03256902098655701,
0.01938728801906109,
0.05069897696375847,
-0.037841714918613434,
-0.004882311448454857,
0.018626803532242775,
0.039403244853019714,
-0.03431306779384613,
0.0824568122625351,
0.031352248042821884,
-0.04019415006041527,
-0.01619325391948223,
0.0018720596563071012,
0.01962050423026085,
0.01991455815732479,
0.0056427959352731705,
0.0023194781970232725,
-0.0015944828046485782,
-0.05094233155250549,
0.014733122661709785,
-0.008628965355455875,
0.024477465078234673,
0.013800261542201042,
-0.06014926731586456,
-0.008664455264806747,
0.0444934219121933,
-0.021476086229085922,
-0.012400969862937927,
-0.015158994123339653,
-0.033664122223854065,
-0.047859832644462585,
-0.008492078632116318,
-0.009561827406287193,
0.006028108298778534,
-0.022530624642968178,
-0.0008758248295634985,
0.015128574334084988,
0.019255470484495163,
-0.05333532392978668,
-0.009125815704464912,
0.025775359943509102,
-0.022571183741092682,
0.004659235943108797,
-0.013526487164199352,
-0.018941137939691544,
-0.06959955394268036,
-0.020786579698324203,
-0.03362356126308441,
-0.02857394330203533,
-0.0414920412003994,
-0.014722982421517372,
-0.10853637009859085,
-0.032913774251937866,
-0.009678434580564499,
-0.05820242315530777,
-0.04721088707447052,
0.023098453879356384,
-0.0005288536776788533,
0.08111836016178131,
-0.030946655198931694,
0.027336888015270233,
0.034678101539611816,
0.025673961266875267,
-0.0675310343503952,
-0.03889625519514084,
0.027600523084402084,
0.017308630049228668,
0.002463970333337784,
0.0195089653134346,
-0.04972555488348007,
0.05151015892624855,
0.009901510551571846,
-0.05183463171124458,
-0.026180950924754143,
0.020786579698324203,
-0.0058151725679636,
0.039180170744657516,
-0.045872434973716736,
0.06627370417118073,
0.02680961787700653,
-0.027276048436760902,
0.016031015664339066,
-0.021253010258078575,
-0.038308147341012955,
0.040417224168777466,
-0.00510031683370471,
0.004824007395654917,
0.0007306989864446223,
0.010357800871133804,
-0.06173107400536537,
-0.10464268922805786,
0.045142367482185364,
-0.006322162225842476,
0.0160208772867918,
-0.001807418535463512,
0.05881081148982048,
-0.027377447113394737,
-0.04493957385420799,
0.06018982455134392,
-0.018748480826616287,
-0.07531839609146118,
0.023504044860601425,
0.03672633692622185,
0.0644485354423523,
-0.06972122937440872,
-0.025694241747260094,
0.021881679072976112,
0.04147176444530487,
-0.03628018870949745,
-0.037902556359767914,
0.02107049524784088,
-0.04274937883019447,
0.026647381484508514,
-0.020472247153520584,
0.0016553215682506561,
-0.009465498849749565,
-0.027438286691904068,
-0.014996756799519062,
-0.008223374374210835,
0.028736179694533348,
-0.04668361693620682,
-0.0244977455586195,
-0.0030672880820930004,
-0.042465463280677795,
0.0003488723305054009,
-0.04948220029473305,
0.014935918152332306,
-0.08614770323038101,
0.07341212034225464,
-0.0629478469491005,
-0.012553066946566105,
-0.007447679527103901,
-0.07134360074996948,
0.05009058862924576,
-0.04700808972120285,
0.00037073626299388707,
-0.009282982908189297,
-0.1040748581290245,
0.014733122661709785,
0.02599843591451645,
-0.014510046690702438,
0.00751865841448307,
0.013627884909510612,
0.04135008528828621,
0.03842982277274132,
0.006078807171434164,
0.04931996390223503,
0.047575920820236206,
-0.022266989573836327,
0.006560447625815868,
0.001953178085386753,
-0.037152208387851715,
-0.02715437114238739,
-0.05483601242303848,
-0.00493554538115859,
0.031899794936180115,
0.06420518457889557,
0.03838926553726196,
-0.01869778335094452,
-0.0027098602149635553,
0.032710980623960495,
-0.0655030757188797,
-0.00429166853427887,
-0.025957876816391945,
-0.032508183270692825,
0.05191575363278389,
-0.01125517301261425,
-0.008598546497523785,
0.028959255665540695,
-0.04043750464916229,
-0.030824977904558182,
-0.045061249285936356,
-0.0022497670724987984,
0.00461614178493619,
0.0739799439907074,
0.010119515471160412,
-0.031230568885803223,
0.00988123007118702
] |
723,040
|
isort.settings
|
is_supported_filetype
| null |
def is_supported_filetype(self, file_name: str) -> bool:
_root, ext = os.path.splitext(file_name)
ext = ext.lstrip(".")
if ext in self.supported_extensions:
return True
if ext in self.blocked_extensions:
return False
# Skip editor backup files.
if file_name.endswith("~"):
return False
try:
if stat.S_ISFIFO(os.stat(file_name).st_mode):
return False
except OSError:
pass
try:
with open(file_name, "rb") as fp:
line = fp.readline(100)
except OSError:
return False
else:
return bool(_SHEBANG_RE.match(line))
|
(self, file_name: str) -> bool
|
[
0.04229750111699104,
-0.07829301059246063,
0.025133835151791573,
0.02201990969479084,
0.007029504049569368,
-0.020592693239450455,
0.02368808351457119,
-0.0031996523030102253,
-0.025226512923836708,
-0.03241819888353348,
0.07069354504346848,
0.012603988870978355,
-0.022372080013155937,
-0.012418636120855808,
0.0017052454641088843,
-0.016867103055119514,
0.009188863448798656,
0.009527132846415043,
0.02101900428533554,
0.0034799983259290457,
-0.039813775569200516,
0.014466783963143826,
0.02554161287844181,
-0.022335009649395943,
0.02507822960615158,
0.10891328752040863,
0.027320997789502144,
0.021111680194735527,
-0.028488721698522568,
-0.019350828602910042,
-0.018442600965499878,
0.005630090367048979,
0.02009223960340023,
-0.0018071895465254784,
0.00612127548083663,
0.004124099388718605,
-0.026449840515851974,
0.030972449108958244,
-0.039294786751270294,
-0.04945211857557297,
-0.04696839302778244,
0.06542953103780746,
-0.016950510442256927,
0.029953008517622948,
-0.057644713670015335,
-0.015578900463879108,
-0.061500050127506256,
0.05542048066854477,
0.014726277440786362,
0.04277941957116127,
0.04848828539252281,
-0.011566013097763062,
-0.044670019298791885,
-0.006714404094964266,
-0.06301994621753693,
-0.04344668984413147,
0.012826411984860897,
0.06531831622123718,
-0.03254794701933861,
0.02787705697119236,
0.021537991240620613,
-0.005157440900802612,
0.05193584784865379,
-0.07225050777196884,
0.011260180734097958,
0.0063575999811291695,
0.023762226104736328,
-0.0885244831442833,
-0.013892190530896187,
0.06891416013240814,
0.006301994435489178,
0.03647742420434952,
-0.043409619480371475,
0.010954349301755428,
-0.011325054802000523,
-0.01224255096167326,
-0.036755453795194626,
0.08081381022930145,
-0.03173239529132843,
0.026598121970891953,
-0.014457516372203827,
-0.004188972525298595,
0.03851630538702011,
-0.014883827418088913,
0.019721534103155136,
-0.01467067189514637,
0.04748738184571266,
0.03884994238615036,
-0.02096339873969555,
0.004874777980148792,
0.014911630190908909,
-0.009485428221523762,
-0.007492885924875736,
-0.027246857061982155,
0.012928355485200882,
-0.0319548174738884,
0.05071251839399338,
-0.03645889088511467,
-0.03918357565999031,
-0.027636097744107246,
-0.06791325658559799,
0.08036895841360092,
0.02754342183470726,
-0.05912753567099571,
0.004332621116191149,
0.03445708006620407,
-0.01670028455555439,
0.05011938884854317,
-0.06405791640281677,
-0.027988268062472343,
0.0007147666183300316,
-0.09438163042068481,
0.0498969666659832,
0.03847923502326012,
0.03773782402276993,
-0.04630112275481224,
-0.02834043838083744,
0.017543639987707138,
-0.02022198773920536,
0.010055388323962688,
0.020611228421330452,
0.03087977133691311,
-0.007502153515815735,
-0.026913221925497055,
0.005949824117124081,
-0.00826209969818592,
0.04266820847988129,
-0.00612127548083663,
-0.010620714165270329,
0.035291168838739395,
-0.03165825456380844,
0.03779343143105507,
-0.017145130783319473,
-0.002374832285568118,
-0.032770369201898575,
0.029100384563207626,
-0.021463850513100624,
0.0024675088934600353,
0.01237229723483324,
-0.012956159189343452,
0.024132931604981422,
-0.012817144393920898,
0.03612525388598442,
-0.05623603239655495,
-0.08066552877426147,
0.01224255096167326,
-0.011992324143648148,
-0.04841414466500282,
-0.018748432397842407,
0.0309353768825531,
-0.004487853962928057,
-0.0187855027616024,
-0.07010041922330856,
-0.004223726224154234,
-0.0017608513589948416,
-0.016616875305771828,
0.008229662664234638,
-0.009517865255475044,
-0.04644940420985222,
-0.016199832782149315,
-0.015662308782339096,
0.029619373381137848,
-0.05909046530723572,
0.006422473583370447,
-0.005370596423745155,
-0.050601307302713394,
-0.07807058840990067,
-0.03201042488217354,
0.02150092087686062,
0.012743002735078335,
0.0356062687933445,
0.07543858140707016,
0.04070346802473068,
0.08407601714134216,
0.05934995785355568,
0.025634288787841797,
-0.005643991753458977,
0.015087715350091457,
0.03677399083971977,
-0.015430618077516556,
0.0027177350129932165,
-0.016403719782829285,
-0.03138022497296333,
0.02934134379029274,
0.028303368017077446,
0.02342859096825123,
-0.015152589417994022,
-0.04033276438713074,
0.04492951184511185,
0.03740419074892998,
-0.028525792062282562,
-0.015662308782339096,
0.04630112275481224,
-0.03866458684206009,
-0.029823260381817818,
-0.00713608181104064,
0.05364109203219414,
0.06101813167333603,
-0.04426224157214165,
-0.05078665912151337,
0.0016716503305360675,
-0.027246857061982155,
0.03519849106669426,
0.022705715149641037,
-0.030916841700673103,
0.0022033811546862125,
0.047339096665382385,
-0.037218835204839706,
-0.000554610276594758,
0.04129659757018089,
-0.05616189166903496,
-0.09942322969436646,
-0.051528070122003555,
0.10431654006242752,
0.035884298384189606,
0.000936610740609467,
0.0059034856967628,
0.02127849869430065,
-0.01703391969203949,
0.039813775569200516,
0.04518900439143181,
0.09364022314548492,
0.009582738392055035,
0.01427216362208128,
0.043483760207891464,
0.000673641508910805,
-0.0023713570553809404,
0.07747745513916016,
-0.0009250261937268078,
0.027376605197787285,
-0.054790280759334564,
-0.06428033858537674,
-0.0176270492374897,
0.04218629002571106,
-0.02774731069803238,
0.018433332443237305,
0.046004559844732285,
-0.001007276470772922,
0.029508160427212715,
-0.011788436211645603,
0.04652354493737221,
0.027376605197787285,
-0.01044462900608778,
-0.008007239550352097,
-0.07532736659049988,
-0.12122071534395218,
0.033975161612033844,
0.04085174947977066,
-0.04622698202729225,
0.005634724162518978,
0.03186213970184326,
0.010565107688307762,
-0.02487434260547161,
-0.06220439076423645,
-0.04074053838849068,
0.003574991598725319,
-0.0385904461145401,
-0.052566047757864,
0.039294786751270294,
0.00791456364095211,
-0.02309495583176613,
0.013363935053348541,
0.04530021920800209,
0.03113926574587822,
-0.020184917375445366,
-0.013456610962748528,
0.02289106696844101,
0.04644940420985222,
-0.0018234079470857978,
-0.027395140379667282,
0.06342771649360657,
0.021111680194735527,
-0.018646487966179848,
0.022594502195715904,
0.008062846027314663,
-0.04889606311917305,
0.04203800857067108,
0.010259276255965233,
0.004728812724351883,
0.02214965596795082,
-0.035495057702064514,
0.023039350286126137,
0.04129659757018089,
0.047672733664512634,
0.017330484464764595,
-0.014726277440786362,
-0.03006421960890293,
-0.04756152257323265,
-0.020277593284845352,
0.03000861406326294,
-0.04337254911661148,
0.023966113105416298,
0.01523599773645401,
-0.036366213113069534,
0.02037026919424534,
0.06301994621753693,
0.02828483283519745,
-0.024651918560266495,
0.04137073829770088,
-0.06446569412946701,
-0.017145130783319473,
0.032177239656448364,
0.012437171302735806,
-0.0010217571398243308,
-0.04804343730211258,
-0.021593598648905754,
-0.0365886390209198,
-0.050934940576553345,
-0.04930383712053299,
0.029026243835687637,
0.01253911480307579,
0.009499329142272472,
-0.01018513459712267,
-0.0638354942202568,
0.05775592476129532,
0.036366213113069534,
0.03060174360871315,
-0.020592693239450455,
-0.021056074649095535,
0.02680201083421707,
-0.013975598849356174,
0.0316026471555233,
-0.016014479100704193,
-0.020815115422010422,
0.0003770770563278347,
-0.012335226871073246,
0.03134315460920334,
-0.05215827003121376,
-0.031899213790893555,
0.00618614861741662,
-0.0007848531240597367,
-0.0182943195104599,
0.047413237392902374,
-0.0036468158941715956,
-0.030712954699993134,
-0.024651918560266495,
-0.011519675143063068,
-0.0032367228996008635,
0.011130433529615402,
0.015838393941521645,
-0.018692826852202415,
0.003477681428194046,
0.008572565391659737,
-0.03727444261312485,
0.020852187648415565,
0.021778950467705727,
0.026283023878932,
0.012270353734493256,
0.05475321039557457,
0.03573601320385933,
-0.015578900463879108,
-0.06012843921780586,
-0.04663475602865219,
-0.031899213790893555,
-0.04763566330075264,
-0.021056074649095535,
0.01058364287018776,
0.03784903511404991,
-0.016691017895936966,
0.06824689358472824,
0.09920080006122589,
0.0032622087746858597,
-0.033567387610673904,
0.016014479100704193,
-0.04496658220887184,
-0.02502262406051159,
0.022186726331710815,
0.03527263179421425,
0.020277593284845352,
0.010092458687722683,
0.004378959070891142,
0.02554161287844181,
-0.05716279521584511,
-0.03414198011159897,
0.0043140859343111515,
-0.045670922845602036,
0.010889475233852863,
-0.039554283022880554,
-0.014726277440786362,
0.002879918785765767,
0.03251087665557861,
0.05371523275971413,
0.03453122079372406,
0.016941243782639503,
-0.00562082277610898,
0.00493965158239007,
-0.026301559060811996,
-0.07569807022809982,
-0.0232803076505661,
-0.04971161484718323,
0.03647742420434952,
-0.0019983346574008465,
-0.02926720306277275,
0.03959135338664055,
-0.06743133813142776,
-0.0007275096140801907,
-0.034698039293289185,
-0.010287079028785229,
-0.021334104239940643,
0.09675414860248566,
0.022520361468195915,
0.026579586789011955,
-0.01988835260272026,
0.029230132699012756,
-0.008099916391074657,
0.023261772468686104,
0.045930415391922,
0.033159609884023666,
-0.0013333815149962902,
0.04578213393688202,
0.0121406065300107,
-0.027061505243182182,
-0.03840509429574013,
-0.04263113811612129,
-0.02374369092285633,
0.07273242622613907,
-0.01757144369184971,
-0.060573287308216095,
0.00663562910631299,
-0.019276687875390053,
-0.020444409921765327,
0.037960246205329895,
-0.00528718763962388,
0.03799731656908989,
0.028025338426232338,
0.013475146144628525,
-0.0014909313758835196,
-0.024132931604981422,
-0.010870940051972866,
-0.01400340162217617,
-0.030657349154353142,
0.003600477706640959,
0.04585627466440201,
-0.021463850513100624,
0.01800702139735222,
-0.08807963877916336,
-0.031769465655088425,
-0.04596748575568199,
-0.05827490985393524,
-0.021575063467025757,
-0.07069354504346848,
-0.002578720450401306,
-0.020740974694490433,
0.004216775763779879,
0.0625380277633667,
-0.024466566741466522,
-0.021074609830975533,
0.002729319501668215,
0.003943380434066057,
-0.0039503308944404125,
-0.08815377950668335,
0.08103623241186142,
-0.0009285015403293073,
-0.019740071147680283,
0.017413893714547157,
0.041481949388980865,
0.005495709832757711,
0.012946891598403454,
0.00961054116487503,
-0.024651918560266495,
-0.03332642838358879,
0.045596782118082047,
0.038701657205820084,
-0.02420707233250141,
0.07643948495388031,
-0.00024935739929787815,
-0.046412333846092224,
0.016487129032611847,
0.05341866984963417,
0.03666277974843979,
-0.025430399924516678,
0.014096078462898731,
0.01916547678411007,
-0.030416389927268028,
0.009022045880556107,
0.04974868521094322,
-0.008136986754834652,
0.08807963877916336,
0.018924517557024956,
-0.0028891863767057657,
-0.008461354300379753,
-0.05582825466990471,
-0.039813775569200516,
0.016375917941331863,
0.02168627455830574,
-0.06298287212848663,
-0.013252723030745983,
-0.035902831703424454,
-0.04585627466440201,
-0.06709770113229752,
-0.004337254911661148,
-0.02341005578637123,
-0.004638453014194965,
0.04381739720702171,
0.030638813972473145,
0.024448031559586525,
-0.013586358167231083,
0.04637526348233223,
0.014587263576686382,
0.03751540184020996,
0.033104006201028824,
0.010759728029370308,
-0.025930853560566902,
-0.002175578149035573,
0.021593598648905754,
0.017812401056289673,
0.02055562287569046,
-0.035828690975904465,
-0.023929042741656303,
-0.011491871438920498,
-0.038627516478300095,
0.01759924553334713,
0.011501139961183071,
0.04948918893933296,
0.05660673603415489,
0.023651013150811195,
0.029322808608412743,
0.02075950987637043,
0.04544850066304207,
-0.00961054116487503,
-0.017868006601929665,
-0.08022067695856094,
0.03784903511404991,
-0.012224015779793262,
0.011853309348225594,
-0.005509611219167709,
-0.01593106985092163,
-0.013447343371808529,
0.011130433529615402,
0.019462041556835175,
0.06791325658559799,
0.04845121502876282,
-0.014550192281603813,
-0.08162935823202133,
-0.010083191096782684,
-0.00505549693480134,
-0.021111680194735527,
0.04704253375530243,
0.0035008504055440426,
-0.04244578629732132,
0.02620888128876686,
-0.04196386784315109,
0.025967923924326897,
-0.06035086140036583,
-0.056458454579114914,
-0.017488034442067146,
0.042223360389471054,
-0.10075777024030685,
0.04263113811612129,
-0.026227416470646858,
0.04029569402337074,
0.007900661788880825,
-0.011389927938580513,
0.012196212075650692,
0.09749555587768555,
-0.013447343371808529,
0.02921159751713276,
-0.014457516372203827,
-0.015838393941521645,
-0.0013808781513944268,
-0.04518900439143181,
0.018998658284544945,
-0.03999912738800049,
-0.008674509823322296,
-0.05968359112739563,
-0.004467001650482416,
-0.037033483386039734,
0.01467067189514637,
0.017488034442067146,
0.02533772401511669,
0.03540237993001938,
0.001994859194383025,
0.08148107677698135,
-0.01857234723865986,
0.03733005002140999,
-0.003945697098970413,
0.033901020884513855,
0.06932193785905838,
-0.07143495976924896,
-0.048191722482442856,
-0.00010643303539836779,
-0.07503080368041992,
-0.021871626377105713,
0.010398290120065212,
-0.03970256447792053,
-0.016746623441576958,
-0.02880382165312767,
0.0016473227879032493,
-0.031435828655958176,
0.019146941602230072,
0.025967923924326897,
0.021315569058060646,
0.0831863209605217,
-0.055457551032304764,
0.0014133148360997438,
0.0345868282020092,
0.007321434561163187,
-0.028581397607922554,
0.03959135338664055,
-0.0026783475186675787,
0.02746928110718727,
-0.04719081521034241,
-0.00455967802554369,
-0.028303368017077446,
0.02114875055849552,
0.038701657205820084,
-0.012650326825678349,
0.03401223197579384,
0.0031347787007689476,
-0.014642869122326374,
0.036755453795194626,
0.00899424310773611,
-0.031899213790893555,
-0.006260289810597897,
0.018516741693019867,
0.07606878131628036,
0.012900552712380886,
-0.0064271073788404465,
0.030694419518113136,
0.010528037324547768,
0.011028490029275417,
0.08948832005262375,
0.06791325658559799,
0.005546681582927704,
0.0016183614498004317,
-0.037496864795684814,
-0.030193965882062912,
0.020740974694490433,
-0.007933098822832108,
-0.025708429515361786,
0.024781664833426476,
-0.026653729379177094,
0.021037539467215538,
-0.020796580240130424,
-0.013558555394411087,
-0.06846931576728821,
-0.01703391969203949,
-0.024911412969231606,
0.00836404412984848,
0.027302462607622147,
0.031102195382118225,
-0.08489157259464264,
0.038961153477430344,
-0.009374216198921204,
-0.0559023953974247,
0.024132931604981422,
0.030750025063753128,
0.0013183215633034706,
0.036347679793834686,
0.011862577870488167,
-0.010055388323962688,
0.015115518122911453,
0.03366006165742874,
-0.04941504821181297,
0.02201990969479084,
0.015884732827544212,
0.02022198773920536,
0.006376135163009167,
-0.007173152174800634,
-0.033104006201028824,
0.023651013150811195,
-0.02055562287569046,
-0.009499329142272472,
0.02029612846672535,
0.04544850066304207,
0.006978531833738089,
-0.01652419939637184,
-0.037292975932359695,
-0.012186944484710693,
0.027599027380347252,
-0.041889727115631104,
0.04578213393688202,
-0.004467001650482416,
-0.052566047757864,
0.047413237392902374,
0.015124786645174026,
-0.029971543699502945,
0.021037539467215538,
0.05115736648440361,
-0.010833869688212872,
-0.025170907378196716,
0.03314107656478882,
0.016348114237189293,
0.03903529420495033,
0.002578720450401306,
0.05334452912211418,
-0.01942497119307518,
0.018386995419859886,
0.018173839896917343,
-0.03936892747879028,
-0.04303891211748123,
0.02402171865105629,
-0.03134315460920334,
0.011111898347735405,
-0.018257247284054756,
0.009768091142177582,
0.035958439111709595,
0.06491053849458694,
-0.050601307302713394,
-0.013113708235323429,
0.00971248559653759,
0.007636534050107002,
-0.015356477349996567,
0.014429713599383831,
-0.0018963905749842525,
0.015384280122816563,
-0.054456643760204315,
0.008303804323077202,
0.013456610962748528,
0.03710762411355972,
-0.012678129598498344,
-0.033104006201028824,
0.025263583287596703,
0.0073724063113331795,
0.0036236466839909554,
-0.06001722812652588,
-0.018127501010894775,
-0.025597218424081802,
0.105132095515728,
-0.027450745925307274,
-0.01970299892127514,
0.02029612846672535,
-0.03414198011159897,
0.03818267211318016,
-0.040888819843530655,
-0.02667226456105709,
-0.011278715915977955,
-0.023799296468496323,
-0.03907236456871033,
-0.008345508947968483,
0.0016635411884635687,
-0.0038229008205235004,
-0.031973354518413544,
0.0498969666659832,
-0.017117328941822052,
-0.03186213970184326,
-0.004239944741129875,
0.034642431885004044,
-0.019313758239150047,
-0.015782788395881653,
0.00013307749759405851,
-0.004100929945707321,
-0.0831863209605217,
-0.04715374484658241,
-0.015300871804356575,
0.017432428896427155,
0.04352083057165146,
0.03614379093050957,
0.023836366832256317,
0.061648331582546234,
0.020444409921765327,
-0.09082286059856415,
-0.021649204194545746,
0.024188537150621414,
0.022538896650075912,
-0.003887774422764778,
-0.025096764788031578,
-0.03681106120347977,
0.009601273573935032,
-0.015893999487161636,
-0.007613365072757006,
-0.008331607095897198,
0.03699641302227974,
-0.011556745506823063,
-0.05668087676167488,
-0.06353893131017685,
-0.027988268062472343,
0.007761647459119558
] |
723,041
|
isort.api
|
ImportKey
|
Defines how to key an individual import, generally for deduping.
Import keys are defined from less to more specific:
from x.y import z as a
______| | | |
| | | |
PACKAGE | | |
________| | |
| | |
MODULE | |
_________________| |
| |
ATTRIBUTE |
______________________|
|
ALIAS
|
class ImportKey(Enum):
"""Defines how to key an individual import, generally for deduping.
Import keys are defined from less to more specific:
from x.y import z as a
______| | | |
| | | |
PACKAGE | | |
________| | |
| | |
MODULE | |
_________________| |
| |
ATTRIBUTE |
______________________|
|
ALIAS
"""
PACKAGE = 1
MODULE = 2
ATTRIBUTE = 3
ALIAS = 4
|
(value, names=None, *, module=None, qualname=None, type=None, start=1)
|
[
0.03344995155930519,
-0.05962817743420601,
-0.08013445138931274,
0.019324619323015213,
0.052174653857946396,
-0.048393357545137405,
0.03879467397928238,
-0.028777867555618286,
0.008180694654583931,
-0.041521571576595306,
-0.01787027344107628,
-0.008594274520874023,
0.03364992514252663,
0.0527927540242672,
-0.05381079390645027,
-0.03792206570506096,
-0.007276273798197508,
0.06660903990268707,
-0.025523768737912178,
-0.0059264590963721275,
-0.012207414954900742,
0.059519100934267044,
0.020324481651186943,
-0.04439390450716019,
0.02388763055205345,
0.08507923036813736,
0.02745077759027481,
-0.006962680257856846,
0.02296048402786255,
-0.10594908893108368,
-0.03414076566696167,
-0.043084993958473206,
-0.0007936410256661475,
0.0013418612070381641,
-0.03139568865299225,
-0.08915139734745026,
0.0049038720317184925,
0.03226829692721367,
-0.002749622566625476,
-0.010962131433188915,
0.034340739250183105,
0.04722987860441208,
0.03428620100021362,
-0.06460931152105331,
0.0007652358617633581,
0.04039445519447327,
-0.02488749288022518,
-0.0237421952188015,
0.01350723672658205,
-0.029214171692728996,
0.015279720537364483,
-0.0011475697392597795,
-0.010298586450517178,
-0.0343589186668396,
-0.03995814919471741,
0.040903475135564804,
0.0073944395408034325,
0.02617822401225567,
-0.0899512842297554,
0.06053714454174042,
0.002465570578351617,
0.008171605877578259,
0.0052083758637309074,
0.015297899954020977,
-0.004872058518230915,
-0.008889689110219479,
-0.043775808066129684,
-0.0028496088925749063,
-0.06849968433380127,
0.00868062674999237,
-0.0220151599496603,
-0.02157885581254959,
-0.005690128076821566,
-0.028377922251820564,
0.02614186517894268,
-0.024033064022660255,
-0.05006585270166397,
0.005553782917559147,
0.02970501221716404,
-0.011734752915799618,
0.003901737043634057,
-0.05584687739610672,
-0.022215131670236588,
-0.017561225220561028,
0.02617822401225567,
0.016188686713576317,
0.008394301868975163,
-0.055483292788267136,
0.018688343465328217,
0.020851682871580124,
-0.07977086305618286,
0.032995469868183136,
-0.04624819755554199,
0.037812989205121994,
-0.0033063641749322414,
-0.03364992514252663,
0.02735988050699234,
-0.006158245261758566,
-0.029123274609446526,
-0.008971495553851128,
0.02574191987514496,
-0.0593373067677021,
-0.014734340831637383,
-0.02505110576748848,
-0.038212936371564865,
-0.0759168490767479,
-0.016906769946217537,
0.0044130305759608746,
-0.010307676158845425,
-0.009635040536522865,
-0.015534231439232826,
-0.04035809636116028,
0.012389208190143108,
0.04515743628144264,
0.007480791304260492,
-0.029814088717103004,
0.01098031084984541,
-0.0014872958417981863,
0.05268367752432823,
0.021906083449721336,
-0.012507373467087746,
0.07737119495868683,
-0.04912053048610687,
0.07304451614618301,
0.10616724193096161,
-0.007917094975709915,
0.03774027153849602,
0.009148743934929371,
0.03319544345140457,
0.012080159969627857,
0.05421074107289314,
-0.00695813586935401,
-0.0033063641749322414,
-0.03641318157315254,
0.03170473873615265,
0.028723329305648804,
0.02283322811126709,
0.06486382335424423,
-0.030414005741477013,
0.10194963961839676,
-0.005940093658864498,
0.013625402003526688,
-0.006471838802099228,
-0.015097927302122116,
-0.017452148720622063,
-0.020688068121671677,
0.0036313196178525686,
-0.012016532011330128,
-0.03508609160780907,
0.001532744150608778,
0.002388308523222804,
-0.02505110576748848,
-0.03788570687174797,
0.03988543152809143,
-0.006817245855927467,
-0.02301502227783203,
-0.06424572318792343,
-0.03457707166671753,
-0.016134148463606834,
-0.0263963770121336,
0.02052445523440838,
-0.03875831514596939,
0.0449756421148777,
-0.01574329286813736,
0.015379706397652626,
0.04392124339938164,
0.0031632022000849247,
-0.0443575456738472,
-0.012807332910597324,
-0.039158258587121964,
-0.014407113194465637,
-0.025287438184022903,
0.03001406043767929,
0.0009316902724094689,
-0.017915721982717514,
0.01396171934902668,
-0.017515776678919792,
0.048720583319664,
0.07322631031274796,
-0.009103295393288136,
0.045121077448129654,
0.008626088500022888,
-0.04475749284029007,
0.002561012050136924,
0.01974274404346943,
0.013170919381082058,
0.03439527750015259,
0.04126706346869469,
0.050174929201602936,
-0.02526925876736641,
-0.0024451189674437046,
-0.0324864499270916,
0.0263963770121336,
0.01758849434554577,
-0.061046164482831955,
-0.008907867595553398,
-0.06911778450012207,
-0.022942304611206055,
-0.0036835852079093456,
0.08798792213201523,
-0.05791931971907616,
0.02248782105743885,
-0.0020906219724565744,
0.059664536267519,
0.027432598173618317,
0.009725937619805336,
0.05013857036828995,
-0.0796254351735115,
-0.041521571576595306,
-0.02123344875872135,
-0.04563009738922119,
-0.050174929201602936,
0.02779618464410305,
0.04679357632994652,
-0.007421708200126886,
-0.0334317721426487,
-0.007267184089869261,
0.038431089371442795,
0.026341838762164116,
0.027032652869820595,
0.08289770781993866,
0.04072168096899986,
0.04137613624334335,
-0.02997770346701145,
0.05868285149335861,
-0.047957051545381546,
0.007821653038263321,
0.02339678816497326,
-0.019415516406297684,
-0.012552822008728981,
0.017761198803782463,
-0.05035672336816788,
-0.013207277283072472,
-0.004551647696644068,
-0.009862282313406467,
-0.009144199080765247,
0.012680076994001865,
0.04272140935063362,
0.008621543645858765,
0.006253686733543873,
0.007321721874177456,
0.07260821014642715,
-0.022633256390690804,
-0.0025519223418086767,
-0.036122314631938934,
-0.03174109756946564,
-0.0045175617560744286,
-0.010362213477492332,
-0.024033064022660255,
-0.009171468205749989,
-0.011771110817790031,
0.0023405877873301506,
0.005976452026516199,
0.03506791219115257,
0.011125745251774788,
-0.0037949334364384413,
-0.09584138542413712,
-0.022378746420145035,
-0.009616861119866371,
-0.04835699871182442,
-0.0371585339307785,
-0.008744253776967525,
-0.008689716458320618,
0.017279446125030518,
0.046429987996816635,
0.003076850203797221,
0.06606365740299225,
0.018670164048671722,
0.0424668975174427,
-0.006912687327712774,
0.13947175443172455,
0.06304588913917542,
-0.03563147038221359,
0.051956504583358765,
-0.04726623743772507,
0.040249019861221313,
0.00403580954298377,
0.027596211060881615,
0.010898503474891186,
-0.021906083449721336,
0.0024814775679260492,
0.006462749093770981,
-0.07409891486167908,
0.0327954962849617,
0.014597996138036251,
0.020542634651064873,
-0.023414967581629753,
-0.02636001817882061,
-0.001331635401584208,
0.0518474280834198,
0.06046442687511444,
0.016352299600839615,
0.04661178216338158,
-0.03523152694106102,
0.03854016214609146,
0.03114117868244648,
0.005585596896708012,
-0.026160044595599174,
0.04861150681972504,
0.03817657753825188,
0.02770528756082058,
0.010953041724860668,
0.035686008632183075,
-0.017097651958465576,
-0.043084993958473206,
-0.005135658662766218,
0.06395485252141953,
-0.013152739964425564,
-0.04410303756594658,
0.02301502227783203,
-0.02017904818058014,
0.06115524098277092,
-0.008180694654583931,
-0.022596897557377815,
-0.03328634053468704,
-0.02174246869981289,
-0.0349770151078701,
0.029741371050477028,
-0.01637047901749611,
0.044175755232572556,
-0.0331045463681221,
0.04392124339938164,
-0.028523357585072517,
-0.017170369625091553,
0.010725799947977066,
-0.020724426954984665,
0.03339541703462601,
0.01341633964329958,
-0.007017218507826328,
-0.05268367752432823,
-0.030286751687526703,
-0.008021625690162182,
-0.020160868763923645,
0.031341150403022766,
-0.07282636314630508,
0.019597308710217476,
0.04166700690984726,
-0.008280681446194649,
0.015388796105980873,
0.007826197892427444,
0.0232695322483778,
-0.047302596271038055,
-0.04541194811463356,
-0.0037676645442843437,
-0.025305617600679398,
-0.07180832326412201,
0.02895965985953808,
0.02814159169793129,
0.04893873631954193,
0.004667541012167931,
0.01552514173090458,
0.017506686970591545,
0.009589592926204205,
-0.05188378691673279,
0.10449474304914474,
-0.008685171604156494,
-0.03854016214609146,
-0.09002400189638138,
0.0254510510712862,
0.01661590114235878,
0.12121972441673279,
-0.03719489276409149,
-0.013080022297799587,
-0.029177812859416008,
-0.04977498576045036,
-0.04097619280219078,
0.007539873942732811,
-0.031595662236213684,
0.041994236409664154,
0.02317863516509533,
-0.008017080835998058,
-0.02923235110938549,
-0.004985678941011429,
-0.007585322484374046,
0.014252589084208012,
0.0003880149160977453,
0.03835837170481682,
0.0402853786945343,
-0.05759209394454956,
-0.03595869988203049,
0.02548740990459919,
0.020888041704893112,
0.019433695822954178,
0.08413390070199966,
-0.026850858703255653,
0.01519791316241026,
0.08507923036813736,
-0.009353261440992355,
0.0005766254034824669,
0.07344446331262589,
0.02179700694978237,
0.0055219694040715694,
0.031086640432476997,
0.0033472676295787096,
0.021324345842003822,
-0.06257322430610657,
-0.04072168096899986,
-0.059519100934267044,
0.0220151599496603,
-0.0321773998439312,
0.043775808066129684,
-0.01324363611638546,
-0.008880599401891232,
0.009416889399290085,
0.010534917004406452,
0.012380118481814861,
0.017452148720622063,
-0.04210330918431282,
-0.05802839621901512,
-0.03744940459728241,
-0.026996294036507607,
-0.011071207001805305,
-0.04737531393766403,
-0.06210056692361832,
0.02023358643054962,
-0.019633667543530464,
0.0034631609451025724,
-0.005899189971387386,
-0.013125470839440823,
-0.005967362783849239,
-0.034340739250183105,
-0.05406530573964119,
0.030341289937496185,
0.0270144734531641,
-0.047048088163137436,
0.0038540163077414036,
-0.023087739944458008,
0.0074989707209169865,
0.007271728944033384,
0.024360291659832,
-0.04115798696875572,
0.005303817335516214,
0.004767527338117361,
-0.0509021021425724,
0.01755213551223278,
-0.06944501399993896,
-0.01511610671877861,
-0.03245009109377861,
0.014888864941895008,
-0.05937366560101509,
-0.03379536047577858,
0.011789290234446526,
0.042612332850694656,
0.022087877616286278,
0.01419805083423853,
-0.038685597479343414,
-0.035776905715465546,
0.09969540685415268,
0.05050215870141983,
-0.019579129293560982,
-0.06639088690280914,
0.016888590529561043,
0.047993410378694534,
-0.015088837593793869,
0.0042994096875190735,
-0.03894010931253433,
-0.03701309859752655,
-0.004899327177554369,
0.017879363149404526,
-0.017843004316091537,
0.03188653290271759,
0.01807933673262596,
-0.014952492900192738,
-0.02657816931605339,
0.01774301938712597,
0.0412307046353817,
0.06584550440311432,
-0.017852094024419785,
0.034558892250061035,
0.02248782105743885,
-0.044430263340473175,
0.023196814581751823,
0.006585459690541029,
0.012743704952299595,
-0.022651435807347298,
0.03926733508706093,
0.04046717286109924,
0.03523152694106102,
-0.06886327266693115,
-0.0630822479724884,
0.05831926688551903,
-0.05315633863210678,
0.0030404916033148766,
0.021324345842003822,
0.026850858703255653,
0.018724702298641205,
0.01761576347053051,
0.012134697288274765,
-0.015588768757879734,
-0.04370309039950371,
-0.007408074103295803,
0.02014268934726715,
0.04468477517366409,
0.0025882809422910213,
0.08798792213201523,
0.024542085826396942,
0.01261644996702671,
0.053738076239824295,
-0.03541332110762596,
-0.026850858703255653,
0.044248469173908234,
-0.029032377526164055,
-0.04017630219459534,
-0.014216230250895023,
0.0481024868786335,
0.004603913519531488,
0.027341701090335846,
-0.040030866861343384,
0.023633118718862534,
-0.04297591745853424,
-0.004142613150179386,
0.007158108055591583,
0.07111751288175583,
-0.0052174655720591545,
0.035031553357839584,
-0.021887904033064842,
-0.014834326691925526,
0.025105644017457962,
0.013270905241370201,
0.0471571609377861,
-0.0047629824839532375,
-0.05337449163198471,
0.0324864499270916,
0.000006173690962896217,
-0.05064759403467178,
0.021506138145923615,
-0.004876603372395039,
0.010707620531320572,
-0.00030137907015159726,
0.06384578347206116,
0.015188823454082012,
-0.007035397924482822,
-0.009616861119866371,
0.006762708071619272,
0.01711583137512207,
0.0443575456738472,
-0.040867116302251816,
0.03644954040646553,
0.009171468205749989,
0.040685322135686874,
-0.001095872255973518,
0.03270459920167923,
-0.017252177000045776,
-0.031177537515759468,
0.10187692195177078,
0.05148383975028992,
-0.06355491280555725,
-0.02954139932990074,
-0.028686970472335815,
-0.018170231953263283,
0.03941277042031288,
0.03285003453493118,
-0.03226829692721367,
-0.09613225609064102,
0.01757940463721752,
-0.03548603877425194,
-0.015379706397652626,
-0.043084993958473206,
-0.011316628195345402,
-0.009362351149320602,
-0.0054265279322862625,
-0.007998901419341564,
-0.022378746420145035,
-0.004528923891484737,
0.0032609158661216497,
-0.05857377499341965,
-0.016952218487858772,
-0.021469779312610626,
0.01620686613023281,
0.02645091339945793,
-0.02614186517894268,
-0.01930643990635872,
0.07053577154874802,
0.02788707986474037,
-0.018997391685843468,
0.04039445519447327,
0.01896103285253048,
-0.0014123060973361135,
0.02205151878297329,
-0.027123548090457916,
0.01378901582211256,
0.03650407865643501,
-0.0064854733645915985,
0.010689441114664078,
-0.012116518802940845,
-0.008821516297757626,
0.030214034020900726,
0.01948823407292366,
0.02430575340986252,
-0.008257957175374031,
-0.05115661397576332,
-0.018061157315969467,
0.01680678315460682,
-0.0012032438535243273,
0.00397445447742939,
-0.05166563391685486,
-0.0075898668728768826,
0.007989812642335892,
0.009753206744790077,
-0.03466796875,
0.011253000237047672,
-0.0026791775599122047,
-0.01599780283868313,
0.02657816931605339,
0.0349770151078701,
0.03701309859752655,
0.06726349145174026,
-0.0524655245244503,
0.006858149543404579,
0.022287849336862564,
-0.017942991107702255,
-0.05148383975028992,
-0.07235370576381683,
-0.03206832334399223,
0.006053714547306299,
0.004767527338117361,
0.06079165264964104,
-0.03337723761796951,
0.006912687327712774,
-0.038394730538129807,
-0.06733620911836624,
0.018006619065999985,
-0.009044213220477104,
0.019342798739671707,
-0.0030291297007352114,
0.04504835978150368,
-0.021251628175377846,
0.030850309878587723,
0.02661452814936638,
-0.08602455258369446,
-0.020942579954862595,
0.04083075746893883,
0.00032722781179472804,
-0.04035809636116028,
0.03223193809390068,
0.005131113808602095,
0.0327954962849617,
-0.024469368159770966,
-0.0013657215749844909,
0.03857652097940445,
-0.0073353564366698265,
0.013707209378480911,
-0.04893873631954193,
0.05406530573964119,
-0.022869586944580078,
0.010762158781290054,
-0.034340739250183105,
-0.054647043347358704,
0.029323246330022812,
-0.05941002443432808,
0.00829431600868702,
0.07191739976406097,
-0.005499245133250952,
-0.006630907766520977,
-0.04213966801762581,
0.0074307979084551334,
-0.04137613624334335,
-0.01879741996526718,
0.038031142204999924,
-0.03305000811815262,
0.006912687327712774,
0.013152739964425564,
0.0459209680557251,
0.0023224083706736565,
-0.02074260637164116,
-0.016788603737950325,
0.028432460501790047,
-0.06410028785467148,
0.051265690475702286,
0.009076026268303394,
-0.018670164048671722,
0.02666906639933586,
0.017652122303843498,
-0.03417712450027466,
-0.05671948567032814,
0.01419805083423853,
0.05210193619132042,
0.03708581626415253,
0.051265690475702286,
-0.028996018692851067,
-0.01026222761720419,
-0.009112385101616383,
0.00634912820532918,
-0.029123274609446526,
-0.0038426541723310947,
0.04366673156619072,
0.0025291983038187027,
-0.01761576347053051,
0.011434793472290039,
-0.07555326074361801,
0.026069147512316704,
0.009753206744790077,
-0.021942442283034325,
-0.004176699090749025,
-0.04075803980231285,
-0.012716435827314854,
0.022778691723942757,
-0.02426939457654953,
-0.032995469868183136,
-0.03517698869109154,
0.010280407033860683,
-0.02052445523440838,
0.009644130244851112,
-0.014516188763082027,
-0.016215955838561058,
0.027214445173740387,
-0.02139706164598465,
-0.024105781689286232,
0.012480105273425579,
0.04253961518406868,
0.004190333653241396,
0.004876603372395039,
-0.06431844085454941,
-0.019197365269064903,
0.08333401381969452,
-0.03548603877425194,
-0.005126568954437971,
0.03519516810774803,
-0.030904848128557205,
0.02532379701733589,
0.03832201287150383,
-0.018997391685843468,
0.028377922251820564,
0.04079439863562584,
-0.040903475135564804,
-0.021978801116347313,
-0.03157748281955719,
0.03610413521528244,
-0.04675721749663353,
0.04479385167360306,
0.006694535259157419,
0.016752244904637337,
-0.08471564203500748,
0.07031761854887009,
0.051520198583602905,
-0.00877606775611639,
-0.000851587625220418,
-0.010789427906274796,
0.06180969625711441,
0.03032311052083969,
-0.020724426954984665,
-0.0008743117796257138,
-0.044430263340473175,
-0.017933901399374008,
-0.07555326074361801,
0.022978663444519043,
0.019942715764045715,
-0.009003309532999992,
-0.00013598985970020294,
0.0502840057015419,
-0.015543320216238499,
0.05166563391685486,
-0.007021763361990452,
-0.05828290805220604,
0.019197365269064903,
-0.035904161632061005,
-0.002070170361548662,
0.018070247024297714,
-0.015261541120707989,
-0.027414418756961823,
-0.02539651282131672,
-0.05875556915998459,
0.0002968342450913042,
-0.015061568468809128,
0.026541810482740402,
-0.04148521274328232,
0.007721667177975178,
-0.022506000474095345
] |
723,045
|
isort.api
|
check_code_string
|
Checks the order, format, and categorization of imports within the provided code string.
Returns `True` if everything is correct, otherwise `False`.
- **code**: The string of code with imports that need to be sorted.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- ****config_kwargs**: Any config modifications.
|
def check_code_string(
code: str,
show_diff: Union[bool, TextIO] = False,
extension: Optional[str] = None,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
disregard_skip: bool = False,
**config_kwargs: Any,
) -> bool:
"""Checks the order, format, and categorization of imports within the provided code string.
Returns `True` if everything is correct, otherwise `False`.
- **code**: The string of code with imports that need to be sorted.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- ****config_kwargs**: Any config modifications.
"""
config = _config(path=file_path, config=config, **config_kwargs)
return check_stream(
StringIO(code),
show_diff=show_diff,
extension=extension,
config=config,
file_path=file_path,
disregard_skip=disregard_skip,
)
|
(code: str, show_diff: Union[bool, TextIO] = False, extension: Optional[str] = None, config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, disregard_skip: bool = False, **config_kwargs: Any) -> bool
|
[
0.03717035427689552,
-0.018350834026932716,
0.016620304435491562,
-0.012564373202621937,
0.047373272478580475,
-0.018350834026932716,
0.01403352152556181,
0.008472389541566372,
-0.011699107475578785,
-0.07895545661449432,
0.019756890833377838,
0.01669240929186344,
-0.002431305358186364,
-0.023145847022533417,
-0.02339821495115757,
-0.06496699899435043,
-0.0009751134202815592,
0.0005053014028817415,
-0.010743710212409496,
-0.016953792423009872,
-0.025543352589011192,
0.06568805873394012,
-0.017611753195524216,
0.058729879558086395,
0.06922122091054916,
0.05245670676231384,
0.026048090308904648,
0.0031636261846870184,
-0.017125042155385017,
-0.020874524489045143,
0.057648301124572754,
0.00412578321993351,
0.02806704305112362,
0.021217025816440582,
-0.07069938629865646,
-0.04859906807541847,
0.06622884422540665,
-0.03915325552225113,
-0.03278994932770729,
-0.07542228698730469,
-0.01737741194665432,
0.020045312121510506,
0.06900490820407867,
-0.013871284201741219,
-0.05584566295146942,
0.0009261042578145862,
-0.12531925737857819,
-0.013429637998342514,
-0.04171299561858177,
0.02327203005552292,
0.07080753892660141,
-0.03617890551686287,
-0.030590733513236046,
0.014430101029574871,
0.005912646185606718,
-0.02786875329911709,
0.052709076553583145,
0.006354291923344135,
0.051086705178022385,
-0.031672313809394836,
-0.016998857259750366,
-0.018567150458693504,
-0.04755353927612305,
-0.040811680257320404,
-0.04456116259098053,
-0.002652128227055073,
0.013682006858289242,
-0.028824150562286377,
-0.0166473425924778,
-0.046075377613306046,
0.0022735747043043375,
0.04549853131175041,
0.038504306226968765,
-0.037566933780908585,
0.024714140221476555,
-0.009148377925157547,
-0.017206160351634026,
0.02428150735795498,
-0.007981170900166035,
-0.0376029871404171,
0.034051794558763504,
-0.01406056061387062,
0.07441281527280807,
-0.012312004342675209,
0.00003721457687788643,
-0.02583177387714386,
0.05220433697104454,
0.03226718306541443,
0.016142604872584343,
0.02300163544714451,
0.0076476833783090115,
0.02514677308499813,
0.007314195390790701,
-0.03531363978981972,
-0.01655721105635166,
-0.003021668642759323,
0.04340747371315956,
0.005836034193634987,
0.015971355140209198,
0.04102799668908119,
0.03372731804847717,
0.060280147939920425,
0.007061826530843973,
-0.025741642341017723,
-0.03976615145802498,
-0.000537410844117403,
-0.036142852157354355,
-0.0006911982200108469,
-0.030320337042212486,
-0.06608463823795319,
0.009517918340861797,
-0.10282235592603683,
0.021180972456932068,
-0.014682469889521599,
0.12841978669166565,
-0.026949407532811165,
0.012014568783342838,
-0.031149549409747124,
-0.036683641374111176,
-0.01628681644797325,
0.021217025816440582,
0.026480723172426224,
-0.02826533280313015,
0.012492267414927483,
0.0415327325463295,
0.02649874985218048,
0.06532752513885498,
-0.06118146702647209,
0.0320688933134079,
-0.0016437787562608719,
0.06687779724597931,
0.014493193477392197,
-0.0007351374952122569,
-0.02447979710996151,
-0.024569928646087646,
0.06031620129942894,
-0.00416183564811945,
0.046075377613306046,
-0.013474703766405582,
0.028319410979747772,
0.024768218398094177,
0.01899978332221508,
-0.013303454034030437,
-0.022352686151862144,
-0.004758959170430899,
0.025272956117987633,
-0.015529708936810493,
-0.02745414711534977,
0.023344136774539948,
0.04420063644647598,
0.0496445968747139,
-0.07329518347978592,
-0.018945705145597458,
-0.015070036984980106,
0.014691483229398727,
-0.02819322794675827,
-0.04903170093894005,
-0.06320042163133621,
-0.01308713760226965,
0.010256999172270298,
0.032159026712179184,
0.0019085408421233296,
0.0415327325463295,
0.04416458308696747,
0.02354242652654648,
-0.014132666401565075,
-0.012843781150877476,
-0.02192005328834057,
-0.050618018954992294,
-0.036485351622104645,
0.0127175971865654,
0.022496897727251053,
0.00534481555223465,
0.02325400523841381,
-0.00929258856922388,
-0.014682469889521599,
0.009851405397057533,
0.033835478127002716,
-0.028625858947634697,
-0.03199679031968117,
-0.045534584671258926,
0.026156248524785042,
0.014430101029574871,
0.07390807569026947,
-0.007638670038431883,
-0.027976911514997482,
0.0010590486926957965,
-0.021180972456932068,
0.06835595518350601,
-0.032032839953899384,
-0.06363305449485779,
0.030716918408870697,
0.002084297826513648,
-0.012321016751229763,
-0.031672313809394836,
-0.03306034579873085,
-0.02563348412513733,
-0.02244281768798828,
0.027165723964571953,
-0.03446640074253082,
-0.0009700434748083353,
0.034862980246543884,
0.06749068945646286,
-0.009247522801160812,
-0.0061064292676746845,
0.02475019171833992,
-0.009653115645051003,
-0.004966262262314558,
0.01081581600010395,
0.011266474612057209,
-0.0094638392329216,
-0.055953823029994965,
-0.025128746405243874,
-0.014367008581757545,
0.03767509385943413,
-0.009319628588855267,
0.09308812022209167,
0.06006383150815964,
-0.010202920064330101,
-0.003706670366227627,
0.10794184356927872,
0.03929746523499489,
-0.00532678933814168,
0.020369786769151688,
0.0444890558719635,
0.0016144858673214912,
0.038432199507951736,
0.04982485994696617,
0.025777695700526237,
-0.00036897705285809934,
-0.00851745530962944,
-0.012564373202621937,
0.07498965412378311,
0.016872672364115715,
0.044056423008441925,
0.008247059769928455,
-0.009409760124981403,
0.014691483229398727,
-0.006133468821644783,
-0.014385035261511803,
-0.019162021577358246,
0.00886446237564087,
-0.025543352589011192,
0.031672313809394836,
-0.04802222177386284,
-0.04225378856062889,
-0.026805197820067406,
-0.003501620376482606,
-0.034250084310770035,
0.0028143655508756638,
-0.012897860258817673,
-0.004112263210117817,
0.020405840128660202,
-0.039261411875486374,
-0.05281723663210869,
0.08753600716590881,
0.025002561509609222,
-0.04340747371315956,
0.02920270338654518,
0.02327203005552292,
-0.026949407532811165,
-0.04701274633407593,
0.013033058494329453,
-0.007102385628968477,
-0.0009610303095541894,
-0.07358360290527344,
-0.007562058046460152,
0.043046947568655014,
0.04798617213964462,
0.0046823471784591675,
-0.04293879121541977,
0.054403554648160934,
0.012852794490754604,
0.01682760752737522,
-0.030356390401721,
-0.017476556822657585,
0.06756279617547989,
-0.031059417873620987,
0.06911306083202362,
0.003431768389418721,
-0.056025926023721695,
0.002320893807336688,
-0.027364013716578484,
0.014691483229398727,
0.022280581295490265,
0.006056856829673052,
-0.013150230050086975,
-0.050545912235975266,
-0.04517405852675438,
0.02568756230175495,
0.011978516355156898,
-0.05584566295146942,
0.07405228912830353,
-0.050618018954992294,
0.049248017370700836,
0.008715745061635971,
0.0661206915974617,
-0.06914911419153214,
-0.02840954251587391,
-0.02516479790210724,
-0.037278514355421066,
0.015989381819963455,
0.10700447112321854,
-0.03187060356140137,
0.009085285477340221,
0.015637867152690887,
-0.04751748591661453,
-0.06799542903900146,
-0.06352489441633224,
-0.041496679186820984,
-0.008386763744056225,
0.061289623379707336,
0.021072814241051674,
-0.027165723964571953,
0.03738667070865631,
0.04420063644647598,
0.007575577590614557,
0.019360311329364777,
-0.0021147173829376698,
-0.02467808686196804,
0.03210494667291641,
0.010094761848449707,
-0.006881562992930412,
0.04870722442865372,
0.007219557184726,
-0.06276778876781464,
0.04192931205034256,
-0.028770070523023605,
0.06543568521738052,
-0.033781398087739944,
0.023957032710313797,
-0.004071704111993313,
0.05375460535287857,
-0.035674165934324265,
0.02630046010017395,
-0.04510195180773735,
-0.0065751150250434875,
-0.0734754428267479,
0.01860320381820202,
-0.016268789768218994,
0.006881562992930412,
0.018350834026932716,
0.02548927254974842,
0.005051887594163418,
-0.019053863361477852,
-0.032826002687215805,
-0.07023070007562637,
0.01845899224281311,
-0.030716918408870697,
0.010329104028642178,
0.024497823789715767,
0.020441891625523567,
-0.03828798979520798,
-0.06118146702647209,
-0.0032740377355366945,
0.003986078780144453,
0.022569002583622932,
0.004116769880056381,
0.008778837509453297,
0.01521424762904644,
0.021271103993058205,
-0.03646732494235039,
-0.023073740303516388,
-0.023091766983270645,
-0.0310954712331295,
-0.040126677602529526,
0.02819322794675827,
-0.01880149357020855,
0.027093619108200073,
0.04052325710654259,
-0.01899978332221508,
0.0017553168581798673,
-0.0201534703373909,
-0.07307886332273483,
-0.0106896311044693,
-0.019504521042108536,
-0.00003654562897281721,
0.011708120815455914,
-0.012465228326618671,
0.04672432690858841,
0.07091569900512695,
0.05995567515492439,
-0.0012438187841325998,
0.009761273860931396,
0.006804951000958681,
-0.020748339593410492,
-0.011915423907339573,
0.0011581936851143837,
-0.028860202059149742,
-0.018945705145597458,
-0.02096465602517128,
-0.03306034579873085,
0.02447979710996151,
0.02867993898689747,
-0.00380356190726161,
-0.018477018922567368,
-0.07809019088745117,
0.03983825445175171,
-0.035872455686330795,
-0.02184794843196869,
0.010338117368519306,
-0.026012036949396133,
0.04740932583808899,
0.013979442417621613,
0.024461770430207253,
0.06323646754026413,
0.007611630484461784,
0.0196667592972517,
-0.057504087686538696,
0.046688273549079895,
0.0035399263724684715,
-0.0002232170372735709,
-0.027003487572073936,
-0.0540790818631649,
-0.019774917513132095,
0.021721763536334038,
-0.013177269138395786,
-0.015151155181229115,
0.0033055837266147137,
-0.029527178034186363,
0.02204623818397522,
-0.027003487572073936,
0.03839614614844322,
0.009752260521054268,
0.04315510764718056,
-0.016467079520225525,
0.028229279443621635,
0.010761736892163754,
-0.003929746337234974,
-0.007972157560288906,
0.01697181724011898,
0.03415995091199875,
0.005051887594163418,
0.010942000895738602,
0.018477018922567368,
-0.052564866840839386,
-0.010752723552286625,
-0.025777695700526237,
0.03500718995928764,
-0.0162237249314785,
0.0010066595859825611,
0.01603444665670395,
0.0032379848416894674,
0.016277803108096123,
-0.042289841920137405,
0.009752260521054268,
-0.012402135878801346,
0.009391733445227146,
-0.007904558442533016,
0.009590023197233677,
0.007787387352436781,
0.051086705178022385,
-0.055485136806964874,
0.0035804857034236193,
-0.02907651849091053,
-0.014736548997461796,
-0.011645028367638588,
0.04124431312084198,
-0.06420989334583282,
0.051627494394779205,
-0.04430879279971123,
0.011410686187446117,
0.008576041087508202,
0.035475876182317734,
0.04456116259098053,
0.011122263967990875,
-0.0049392227083444595,
0.03516943007707596,
0.02076636627316475,
0.022965582087635994,
0.020135443657636642,
-0.05746803432703018,
0.010157854296267033,
0.05782856419682503,
0.00444800453260541,
0.08594968169927597,
0.001037079025991261,
0.007296169176697731,
-0.042361944913864136,
0.012762662954628468,
0.0039590392261743546,
0.0054304408840835094,
-0.056025926023721695,
0.03556600958108902,
0.00524116400629282,
-0.022731240838766098,
0.06619279086589813,
-0.014150693081319332,
0.017287278547883034,
-0.05469197779893875,
-0.017485568299889565,
0.01172614749521017,
0.06507515907287598,
-0.005024848040193319,
0.04773380234837532,
0.031275734305381775,
-0.03691798448562622,
-0.0007216177182272077,
-0.04268642142415047,
-0.042289841920137405,
0.053249865770339966,
-0.008030743338167667,
-0.01163601502776146,
0.03345692530274391,
0.034520480781793594,
0.0388287790119648,
0.050077229738235474,
-0.013736085966229439,
-0.007453899830579758,
-0.009481864981353283,
-0.05249276012182236,
-0.0027422599960118532,
0.042361944913864136,
-0.004637280944734812,
0.03176244720816612,
0.008702225051820278,
-0.0072150505147874355,
0.02893230877816677,
-0.00010942563676508144,
0.037098247557878494,
-0.02730993553996086,
-0.05999172478914261,
-0.018368860706686974,
-0.05177170783281326,
-0.022064264863729477,
-0.021523473784327507,
0.03388955816626549,
-0.04578695446252823,
0.034394294023513794,
-0.01574602536857128,
0.03717035427689552,
-0.004632774740457535,
0.039189305156469345,
-0.07268228381872177,
0.03116757608950138,
-0.014466154389083385,
-0.02563348412513733,
0.037891410291194916,
0.004319566302001476,
0.041352469474077225,
-0.005890113301575184,
0.0034588079433888197,
0.00006689469591947272,
-0.023109793663024902,
0.023975059390068054,
0.041280362755060196,
0.021072814241051674,
0.027634410187602043,
-0.08760810643434525,
-0.008576041087508202,
0.01750359497964382,
0.007462913170456886,
0.03724246099591255,
-0.024371638894081116,
0.05296144634485245,
-0.019017810001969337,
0.014817668125033379,
0.01027502492070198,
0.025939932093024254,
-0.052240390330553055,
-0.012843781150877476,
0.0008985013701021671,
-0.09114127606153488,
-0.03008599579334259,
-0.021884001791477203,
-0.03136586770415306,
0.06222699582576752,
-0.033096395432949066,
-0.03601666912436485,
-0.0035399263724684715,
0.021523473784327507,
0.017476556822657585,
0.07412439584732056,
0.036683641374111176,
-0.028012963011860847,
0.041749048978090286,
0.005822514183819294,
0.026390591636300087,
0.030716918408870697,
0.04091983661055565,
0.03738667070865631,
-0.02447979710996151,
-0.03563811257481575,
0.043984320014715195,
-0.0254351943731308,
-0.01007673516869545,
0.026949407532811165,
-0.016926752403378487,
-0.010329104028642178,
-0.009022193029522896,
0.001118761021643877,
0.026805197820067406,
0.052636969834566116,
-0.037278514355421066,
0.00524116400629282,
0.00949989166110754,
0.045606691390275955,
0.04708485305309296,
0.00986943207681179,
0.012221871875226498,
-0.018341820687055588,
0.00012625493400264531,
-0.007981170900166035,
-0.05847751349210739,
0.08248862624168396,
0.03136586770415306,
0.05862172320485115,
-0.059198565781116486,
-0.03534969314932823,
0.017683859914541245,
0.041424576193094254,
0.028229279443621635,
-0.07578282058238983,
-0.06323646754026413,
0.027129672467708588,
-0.018963729962706566,
-0.0010015895823016763,
-0.05361039564013481,
0.03210494667291641,
-0.024173349142074585,
0.07138438522815704,
0.047373272478580475,
0.028770070523023605,
-0.015439577400684357,
0.015475629828870296,
0.09604444354772568,
-0.06932938098907471,
-0.017954254522919655,
-0.012997005134820938,
-0.0634167343378067,
0.01872938871383667,
0.027508225291967392,
0.03531363978981972,
-0.035403769463300705,
-0.01649411953985691,
-0.08349809795618057,
0.014970892108976841,
-0.0032177052926272154,
0.015836156904697418,
-0.03361916169524193,
0.027021514251828194,
-0.09568391740322113,
-0.04416458308696747,
0.0323212631046772,
-0.005403401330113411,
0.03468271717429161,
-0.01899978332221508,
-0.05862172320485115,
0.05674698203802109,
-0.0025732629001140594,
-0.00010667943570297211,
0.044669318944215775,
0.013988455757498741,
0.013934376649558544,
-0.009472852572798729,
0.046616166830062866,
0.03187060356140137,
0.001827422296628356,
0.05999172478914261,
-0.01725122705101967,
0.05411513149738312,
0.010121800936758518,
-0.011672068387269974,
0.049933016300201416,
-0.058189090341329575,
-0.014970892108976841,
0.08292125910520554,
-0.018035372719168663,
0.08227230608463287,
-0.04319115728139877,
-0.021289130672812462,
0.04268642142415047,
0.06009988486766815,
-0.02981559932231903,
0.013375558890402317,
-0.0029968824237585068,
0.012843781150877476,
0.003837361466139555,
0.005362842231988907,
-0.04463326558470726,
-0.07080753892660141,
0.007526005152612925,
-0.019901100546121597,
-0.05443960800766945,
0.023830847814679146,
0.04712090641260147,
-0.031149549409747124,
-0.030915208160877228,
0.045065898448228836,
-0.05613408610224724,
-0.03590850904583931,
0.015718985348939896,
-0.02669703960418701,
-0.053718551993370056,
0.01048232801258564,
0.03187060356140137,
-0.0066291941329836845,
-0.011852331459522247,
-0.04639985039830208,
-0.061974626034498215,
0.003614285262301564,
-0.048995647579431534,
0.04214562848210335,
-0.005425934214144945,
0.027201777324080467,
-0.045065898448228836,
-0.062118835747241974,
-0.0194143895059824,
-0.04895959421992302,
0.026895329356193542,
-0.020243601873517036,
-0.023181898519396782,
-0.00029321000329218805,
-0.010563447140157223,
0.013682006858289242,
-0.06406567990779877,
-0.018377874046564102,
-0.019234126433730125,
0.007521498948335648,
0.0006647219997830689,
-0.035133376717567444,
-0.009116831235587597,
-0.013727073557674885,
-0.01460135169327259,
-0.007260116282850504,
0.015655893832445145,
-0.047445379197597504,
-0.024299534037709236,
-0.012257925234735012,
-0.01021193340420723,
0.00035799224860966206,
0.02101873606443405,
-0.03767509385943413,
0.0513751246035099,
0.018152544274926186,
-0.017007870599627495,
-0.03861246258020401,
0.02096465602517128,
0.05094249173998833,
0.009968576952815056,
0.048923540860414505,
0.018404914066195488,
-0.03306034579873085,
-0.06017199158668518,
-0.026390591636300087,
-0.012032595463097095,
0.06767095625400543,
0.023902952671051025,
-0.03192468360066414,
-0.011780226603150368,
-0.05206012725830078,
-0.05793672055006027,
-0.029869679361581802,
0.028589807450771332,
0.030861128121614456,
0.06229909881949425,
-0.016079513356089592,
0.03069889172911644,
0.006309226155281067,
-0.02622835338115692,
-0.007945118471980095,
0.022605055943131447,
0.024227427318692207,
-0.03311442211270332,
0.006219094153493643,
-0.07286255061626434,
-0.06229909881949425,
0.02954520471394062
] |
723,047
|
isort.api
|
check_stream
|
Checks any imports within the provided code stream, returning `False` if any unsorted or
incorrectly imports are found or `True` if no problems are identified.
- **input_stream**: The stream of code with imports that need to be sorted.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- ****config_kwargs**: Any config modifications.
|
def check_stream(
input_stream: TextIO,
show_diff: Union[bool, TextIO] = False,
extension: Optional[str] = None,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
disregard_skip: bool = False,
**config_kwargs: Any,
) -> bool:
"""Checks any imports within the provided code stream, returning `False` if any unsorted or
incorrectly imports are found or `True` if no problems are identified.
- **input_stream**: The stream of code with imports that need to be sorted.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- ****config_kwargs**: Any config modifications.
"""
config = _config(path=file_path, config=config, **config_kwargs)
if show_diff:
input_stream = StringIO(input_stream.read())
changed: bool = sort_stream(
input_stream=input_stream,
output_stream=Empty,
extension=extension,
config=config,
file_path=file_path,
disregard_skip=disregard_skip,
)
printer = create_terminal_printer(
color=config.color_output, error=config.format_error, success=config.format_success
)
if not changed:
if config.verbose and not config.only_modified:
printer.success(f"{file_path or ''} Everything Looks Good!")
return True
printer.error(f"{file_path or ''} Imports are incorrectly sorted and/or formatted.")
if show_diff:
output_stream = StringIO()
input_stream.seek(0)
file_contents = input_stream.read()
sort_stream(
input_stream=StringIO(file_contents),
output_stream=output_stream,
extension=extension,
config=config,
file_path=file_path,
disregard_skip=disregard_skip,
)
output_stream.seek(0)
show_unified_diff(
file_input=file_contents,
file_output=output_stream.read(),
file_path=file_path,
output=None if show_diff is True else show_diff,
color_output=config.color_output,
)
return False
|
(input_stream: <class 'TextIO'>, show_diff: Union[bool, TextIO] = False, extension: Optional[str] = None, config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, disregard_skip: bool = False, **config_kwargs: Any) -> bool
|
[
0.0052775051444768906,
-0.02749212086200714,
-0.033798690885305405,
0.008718741126358509,
0.03904787451028824,
-0.010555010288953781,
-0.004061979707330465,
0.033666517585515976,
-0.012953018769621849,
-0.03294900432229042,
0.006991042289882898,
-0.026680197566747665,
-0.004500985145568848,
-0.00909165944904089,
-0.03904787451028824,
0.030248885974287987,
0.0010420476319268346,
0.05075468495488167,
-0.012735876254737377,
0.021770888939499855,
-0.033572107553482056,
0.012603702023625374,
-0.0610642284154892,
0.05808088183403015,
0.0476580448448658,
0.04746922478079796,
0.019788283854722977,
-0.002361424034461379,
-0.03300565108656883,
-0.030116712674498558,
0.04871543496847153,
0.000043664513214025646,
0.027359947562217712,
-0.01675773225724697,
-0.040973834693431854,
-0.025433987379074097,
0.04048290476202965,
0.02054356224834919,
-0.016408415511250496,
-0.0063207331113517284,
0.003561608027666807,
0.028587274253368378,
0.04637407138943672,
-0.003925085533410311,
-0.05317157506942749,
0.02758653089404106,
-0.10437942296266556,
0.02600044570863247,
-0.06038447842001915,
0.018627043813467026,
0.05011269822716713,
-0.0421067513525486,
0.007599985226988792,
0.02267722226679325,
-0.0035545271821320057,
-0.018287168815732002,
0.022337347269058228,
0.031816087663173676,
0.038613591343164444,
-0.020071513950824738,
0.010328426957130432,
0.028662800788879395,
0.010951531119644642,
-0.03326999768614769,
-0.024452125653624535,
-0.001936580054461956,
0.009997992776334286,
-0.06468956172466278,
-0.046487364917993546,
0.01379326544702053,
-0.04346625134348869,
0.04954623803496361,
0.020260334014892578,
-0.025603925809264183,
-0.00034341547871008515,
0.03687645122408867,
-0.030475469306111336,
0.052869461476802826,
-0.025754980742931366,
-0.05385132506489754,
0.07749152928590775,
0.020713500678539276,
0.04448587819933891,
0.028681684285402298,
0.014539102092385292,
-0.04871543496847153,
0.08761224895715714,
0.01675773225724697,
0.008751784451305866,
0.06159292533993721,
-0.01092320866882801,
0.04501457139849663,
0.04678947478532791,
-0.07012756913900375,
0.030966399237513542,
0.027284419164061546,
0.0023708650842309,
-0.03249583765864372,
-0.014539102092385292,
-0.009167186915874481,
0.014860095456242561,
0.06529378890991211,
-0.004371171817183495,
-0.024905294179916382,
-0.008463834412395954,
-0.029002677649259567,
0.023885667324066162,
-0.02790752425789833,
-0.012414882890880108,
-0.04029408469796181,
-0.025056349113583565,
-0.06019565835595131,
-0.01312295626848936,
0.01655947044491768,
0.0870080292224884,
-0.05241629481315613,
0.046109724789857864,
0.009431534446775913,
-0.047733571380376816,
-0.021072257310152054,
0.021770888939499855,
0.05075468495488167,
-0.016531148925423622,
0.02405560575425625,
0.06653999537229538,
-0.022545048967003822,
0.05071692168712616,
-0.03351546451449394,
0.06650222837924957,
0.05252958834171295,
0.011338611133396626,
-0.023715730756521225,
-0.023847904056310654,
-0.006976881064474583,
-0.012141094543039799,
0.018164437264204025,
0.0010125446133315563,
0.03712191432714462,
0.0020345302764326334,
0.026812370866537094,
0.02794528752565384,
-0.013104073703289032,
-0.030248885974287987,
-0.043201904743909836,
-0.041766874492168427,
0.023432500660419464,
-0.007817127741873264,
-0.03712191432714462,
0.003335024695843458,
0.08481772243976593,
0.060233425348997116,
-0.045883141458034515,
-0.02896491251885891,
0.0421067513525486,
-0.0014491897309198976,
-0.0023661444429308176,
-0.056985728442668915,
-0.06042224168777466,
-0.013915997929871082,
0.02554727904498577,
0.00425788015127182,
0.033798690885305405,
0.03957656770944595,
0.055966101586818695,
-0.03770725429058075,
-0.0192123856395483,
-0.02092120237648487,
-0.019863812252879143,
-0.008142841048538685,
-0.0453544445335865,
-0.0065850806422531605,
0.0481112115085125,
0.006896632723510265,
0.0008874516934156418,
0.03234478086233139,
0.005607939325273037,
0.020430270582437515,
0.043050847947597504,
-0.012301591224968433,
-0.0398031510412693,
-0.06650222837924957,
-0.025811627507209778,
0.007047688122838736,
0.0033515463583171368,
0.0015129162929952145,
0.037971604615449905,
-0.012254386208951473,
-0.024282189086079597,
0.028115225955843925,
-0.05313381180167198,
-0.045278917998075485,
0.016351768746972084,
0.019750520586967468,
0.020165923982858658,
0.0011665505589917302,
0.0005089275655336678,
-0.06533154845237732,
-0.009030292741954327,
0.06219714507460594,
-0.05339815840125084,
-0.028077460825443268,
0.04112488776445389,
0.04863990470767021,
-0.04237109795212746,
-0.032099317759275436,
0.029134850949048996,
-0.02286604233086109,
0.005263343919068575,
-0.03336440771818161,
0.026264794170856476,
-0.02720889076590538,
-0.0615551620721817,
-0.018985802307724953,
-0.012792522087693214,
0.007519736886024475,
-0.044674694538116455,
0.0800594687461853,
-0.0004345799097791314,
-0.013104073703289032,
0.004777133464813232,
0.11147903650999069,
0.014888417907059193,
-0.05109455808997154,
-0.003568688640370965,
0.043390724807977676,
0.03874576464295387,
0.04656289145350456,
0.04901754483580589,
0.019231267273426056,
-0.042597681283950806,
0.041804637759923935,
-0.00582036143168807,
0.04154029116034508,
0.053700268268585205,
0.008024829439818859,
0.0064623476937413216,
-0.019882693886756897,
0.033251114189624786,
-0.06533154845237732,
0.005541852675378323,
-0.02095896564424038,
-0.010149048641324043,
0.011008177883923054,
-0.005801479332149029,
-0.0828540027141571,
-0.08806542307138443,
-0.0175790973007679,
-0.022752750664949417,
-0.06438745558261871,
-0.016483943909406662,
-0.0022634738124907017,
-0.0037173840682953596,
0.006377378944307566,
-0.07254445552825928,
-0.011508549563586712,
0.028492864221334457,
-0.02947472594678402,
-0.06453850865364075,
0.05558846518397331,
-0.04146476462483406,
-0.007241228129714727,
-0.03039994090795517,
0.013425067067146301,
0.022563930600881577,
-0.005286946427077055,
-0.055966101586818695,
-0.016436738893389702,
0.006264087278395891,
0.04660065472126007,
0.0036206140648573637,
-0.043239668011665344,
0.006991042289882898,
-0.03576241433620453,
0.02067573554813862,
-0.03451620787382126,
0.0097147636115551,
0.06873030215501785,
0.0015849038027226925,
0.07054296880960464,
0.051623255014419556,
-0.024508772417902946,
0.00038589988253079355,
-0.021449895575642586,
0.00039799613296054304,
0.04524115473031998,
0.0020062073599547148,
-0.025377342477440834,
-0.04614748805761337,
-0.06038447842001915,
-0.021733125671744347,
0.05188760161399841,
-0.0365554578602314,
0.04931965470314026,
-0.06363217532634735,
0.003122602589428425,
0.04482575133442879,
-0.010791035369038582,
-0.06922123581171036,
0.00028647459112107754,
-0.021204430609941483,
-0.04660065472126007,
0.0006531974649988115,
0.09320130944252014,
-0.02092120237648487,
-0.02420666068792343,
-0.011905070394277573,
-0.046487364917993546,
-0.07779363542795181,
-0.03485608100891113,
-0.0425599180161953,
0.01762630045413971,
0.04807344824075699,
0.04561879485845566,
-0.056003864854574203,
0.028209634125232697,
0.015209411270916462,
-0.004847940988838673,
0.053700268268585205,
-0.013576122932136059,
0.01952393725514412,
-0.013812147080898285,
0.057174548506736755,
0.023998958989977837,
0.04542997479438782,
0.002416889648884535,
-0.0680127888917923,
0.043655071407556534,
-0.020996728911995888,
0.043655071407556534,
0.022412875667214394,
-0.015284939669072628,
0.0008278555469587445,
0.04335295781493187,
0.010724947787821293,
-0.0314573310315609,
0.024131134152412415,
0.007864332757890224,
-0.030475469306111336,
0.05354921147227287,
-0.04308861121535301,
0.014218108728528023,
0.023300327360630035,
0.02328144572675228,
-0.016852140426635742,
-0.014255872927606106,
-0.027983050793409348,
-0.0379338413476944,
-0.009469298645853996,
-0.014794008806347847,
0.004784214310348034,
0.06563366204500198,
0.041804637759923935,
-0.030607642605900764,
-0.031060809269547462,
0.014246432110667229,
0.017135370522737503,
0.002950304886326194,
-0.038103777915239334,
0.008218369446694851,
0.013406185433268547,
0.029115969315171242,
0.0002454653731547296,
-0.0111025869846344,
-0.0050414809957146645,
0.0026434732135385275,
-0.04414600133895874,
0.039501041173934937,
-0.021128904074430466,
-0.012471528723835945,
0.07284656912088394,
-0.05607939511537552,
-0.0007712097140029073,
-0.021091138944029808,
-0.06310348212718964,
-0.025924919173121452,
0.025622807443141937,
0.019731638953089714,
0.011451903730630875,
-0.016172390431165695,
0.03566800430417061,
0.06759738177061081,
0.08549747616052628,
-0.03249583765864372,
0.016229037195444107,
-0.043013084679841995,
-0.02902155928313732,
-0.02966354414820671,
0.0005042070988565683,
-0.0021313002798706293,
0.011716250330209732,
-0.0043593705631792545,
-0.04335295781493187,
0.044901277869939804,
0.0036300551146268845,
0.03591347113251686,
0.014945064671337605,
-0.02794528752565384,
0.062083855271339417,
-0.000561147986445576,
-0.04346625134348869,
0.014775126241147518,
-0.009525944478809834,
0.012433764524757862,
0.04497680813074112,
0.003323223441839218,
0.004998996388167143,
0.03196714445948601,
0.01568146049976349,
-0.011716250330209732,
0.05188760161399841,
0.0231303907930851,
-0.044032711535692215,
-0.030739815905690193,
-0.029229260981082916,
-0.021619834005832672,
0.031853850930929184,
-0.03270353749394417,
0.00703352689743042,
0.007911537773907185,
-0.022601695731282234,
0.05683467164635658,
0.01200892124325037,
0.056381504982709885,
0.024867529049515724,
0.05589057505130768,
-0.035611361265182495,
0.0020062073599547148,
0.013897116295993328,
-0.05358697846531868,
0.020373625680804253,
0.021695362403988838,
0.032099317759275436,
0.026774605736136436,
0.009403211995959282,
0.010564452037215233,
-0.03825483098626137,
-0.00577315641567111,
-0.022639458999037743,
0.030550995841622353,
0.006755018141120672,
0.037178561091423035,
0.05728783831000328,
0.03942551463842392,
-0.002497137989848852,
-0.015398231334984303,
0.03785831108689308,
0.015756988897919655,
0.00007921568612800911,
0.012480969540774822,
0.017333630472421646,
-0.06268807500600815,
-0.020751263946294785,
-0.008161723613739014,
-0.03512042760848999,
-0.05747665837407112,
-0.0351770743727684,
0.008879237808287144,
0.028341809287667274,
-0.07314867526292801,
0.03632887452840805,
-0.0006950918468646705,
-0.009256876073777676,
-0.03530924767255783,
-0.02280939742922783,
-0.0017666425555944443,
-0.01360444538295269,
-0.01674829050898552,
0.016323447227478027,
0.002678876742720604,
0.027152245864272118,
0.06442521512508392,
-0.02197859063744545,
0.0144635746255517,
0.05777876824140549,
-0.013491153717041016,
0.034270741045475006,
-0.000032471791200805455,
0.020751263946294785,
-0.013151278719305992,
0.016908787190914154,
-0.030116712674498558,
-0.0032854594755917788,
-0.023073744028806686,
0.011451903730630875,
-0.005858125165104866,
-0.038103777915239334,
0.05117008835077286,
-0.021449895575642586,
0.04977282136678696,
-0.06593577563762665,
0.020902318879961967,
-0.006528434343636036,
0.02118554897606373,
-0.0057212309911847115,
0.03555471450090408,
-0.018910273909568787,
-0.04354177787899971,
-0.013311775401234627,
0.004406575113534927,
-0.06083764508366585,
0.039501041173934937,
-0.0012273268075659871,
0.004876263905316591,
0.03400639444589615,
0.06559589505195618,
0.05517306178808212,
0.07020309567451477,
-0.05732560157775879,
-0.016276242211461067,
0.005513529758900404,
-0.04524115473031998,
0.011838982813060284,
0.0192123856395483,
-0.004618997219949961,
0.0347050242125988,
-0.014680717140436172,
0.012650907039642334,
0.037782784551382065,
0.026170384138822556,
0.012754757888615131,
0.013642209582030773,
-0.04146476462483406,
-0.01047948282212019,
-0.03221260756254196,
-0.030154475942254066,
-0.030003421008586884,
0.03527148440480232,
-0.056343741714954376,
0.022639458999037743,
-0.0462607815861702,
0.059478145092725754,
-0.050830211490392685,
-0.002216269029304385,
-0.07786916941404343,
0.03600788116455078,
-0.011782336980104446,
-0.025207404047250748,
0.011083705350756645,
-0.04127594456076622,
-0.00003337532325531356,
-0.012773639522492886,
0.011140351183712482,
-0.03512042760848999,
-0.031211864203214645,
0.03570576757192612,
0.017881207168102264,
0.022280702367424965,
0.03821706771850586,
-0.043390724807977676,
-0.013292893767356873,
-0.03731073439121246,
-0.020562443882226944,
0.029078204184770584,
0.00944097526371479,
0.006249925587326288,
-0.026963425800204277,
0.009544826112687588,
0.02989012934267521,
0.039538804441690445,
-0.03476167097687721,
0.024905294179916382,
0.04308861121535301,
-0.09123758971691132,
-0.03457285091280937,
-0.017560213804244995,
-0.026850134134292603,
0.07042967528104782,
-0.016833258792757988,
-0.022696105763316154,
0.018315492197871208,
0.017786797136068344,
0.05343592166900635,
0.013717737048864365,
0.045656558126211166,
0.05015046149492264,
-0.0010143148247152567,
0.027699822559952736,
0.07420606911182404,
0.035516951233148575,
0.005716510582715273,
0.025660570710897446,
-0.032646894454956055,
-0.029361434280872345,
-0.020184805616736412,
-0.0035875707399100065,
-0.040143027901649475,
0.024282189086079597,
0.0029007396660745144,
0.01536046713590622,
0.0008797809132374823,
-0.05396461486816406,
-0.01980716735124588,
0.02373461239039898,
-0.037405144423246384,
-0.022280702367424965,
0.0014373884769156575,
0.048979781568050385,
-0.003646576777100563,
0.02628367580473423,
0.031306274235248566,
-0.07533898204565048,
0.022375112399458885,
-0.02605709247291088,
-0.06321677565574646,
0.05872286856174469,
0.0027756467461586,
0.023659083992242813,
-0.06669104844331741,
-0.01513388380408287,
0.045052334666252136,
0.03630999103188515,
0.0300789475440979,
-0.05211418494582176,
-0.03874576464295387,
0.03555471450090408,
-0.020260334014892578,
0.013623327948153019,
-0.03225037083029747,
0.025792745873332024,
-0.010328426957130432,
0.04943294823169708,
0.04709158465266228,
0.022601695731282234,
-0.029323669150471687,
-0.0026812369469553232,
0.10150936990976334,
-0.046940531581640244,
-0.0021891260985285044,
0.012178858742117882,
-0.07473476231098175,
0.017286425456404686,
0.010649420320987701,
0.03776390105485916,
0.014652393758296967,
-0.015974130481481552,
-0.05819417163729668,
0.010375631973147392,
-0.03234478086233139,
0.0035663284361362457,
-0.007260110229253769,
0.005343592260032892,
-0.08058816939592361,
0.0033444655127823353,
0.004975393880158663,
0.007774643134325743,
-0.012037243694067001,
0.0458076149225235,
-0.007802966050803661,
0.046109724789857864,
0.002241051523014903,
0.025282932445406914,
0.08028605580329895,
0.014520220458507538,
-0.005206698086112738,
-0.028077460825443268,
0.006721974350512028,
0.062499258667230606,
0.027662057429552078,
0.07937972247600555,
-0.01739971712231636,
0.08172108232975006,
0.0021855859085917473,
0.012065567076206207,
0.0513589084148407,
-0.011990038678050041,
-0.0023472625762224197,
0.03697086125612259,
0.015596491284668446,
-0.0036371357273310423,
-0.023904550820589066,
-0.04433482140302658,
0.050225988030433655,
0.06514272838830948,
-0.02350802905857563,
0.009327683597803116,
-0.03831147775053978,
0.0028275721706449986,
0.037178561091423035,
-0.018107790499925613,
-0.04618525132536888,
-0.07869996875524521,
0.026227029040455818,
-0.021449895575642586,
-0.03957656770944595,
-0.0370275042951107,
0.029720190912485123,
-0.05498424172401428,
-0.0689191222190857,
0.01568146049976349,
-0.030192239210009575,
-0.028662800788879395,
0.02758653089404106,
-0.01999598555266857,
-0.03391198441386223,
-0.0421067513525486,
-0.014095376245677471,
-0.034176331013441086,
0.022828279063105583,
-0.03155174106359482,
-0.05770324170589447,
0.0398031510412693,
-0.06650222837924957,
0.057212311774492264,
0.045090097934007645,
-0.009190789423882961,
-0.045656558126211166,
-0.08255188912153244,
0.004352289717644453,
0.005093406420201063,
0.020656853914260864,
-0.025603925809264183,
-0.04289979115128517,
-0.010989295318722725,
-0.003148565301671624,
0.044259294867515564,
-0.029739072546362877,
0.02267722226679325,
0.0087942685931921,
0.011074264533817768,
-0.006160236429423094,
-0.03387422114610672,
-0.009341845288872719,
-0.02133660390973091,
0.02702007256448269,
-0.008364704437553883,
-0.006198000628501177,
-0.0462607815861702,
-0.011584077030420303,
-0.01221662200987339,
-0.01990157552063465,
0.012065567076206207,
0.04399494454264641,
-0.07061849534511566,
0.042786501348018646,
0.03916116803884506,
0.009790292009711266,
-0.015700342133641243,
0.03597011789679527,
0.06034671515226364,
-0.010394513607025146,
0.014907300472259521,
-0.05362474173307419,
-0.06351888179779053,
-0.0643119215965271,
0.010819357819855213,
-0.028794975951313972,
0.09788403660058975,
0.013679973781108856,
-0.06502944231033325,
-0.005088686011731625,
-0.027983050793409348,
-0.09456080943346024,
-0.03340217098593712,
0.017380835488438606,
0.05098126828670502,
0.06771067529916763,
0.002582106739282608,
0.007444208953529596,
-0.010120726190507412,
-0.04724264144897461,
-0.010488923639059067,
-0.0014314879663288593,
0.045656558126211166,
-0.009478739462792873,
0.030116712674498558,
-0.02488641068339348,
-0.06861700862646103,
0.03555471450090408
] |
723,048
|
isort.api
|
sort_code_string
|
Sorts any imports within the provided code string, returning a new string with them sorted.
- **code**: The string of code with imports that need to be sorted.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- ****config_kwargs**: Any config modifications.
|
def sort_code_string(
code: str,
extension: Optional[str] = None,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
disregard_skip: bool = False,
show_diff: Union[bool, TextIO] = False,
**config_kwargs: Any,
) -> str:
"""Sorts any imports within the provided code string, returning a new string with them sorted.
- **code**: The string of code with imports that need to be sorted.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- ****config_kwargs**: Any config modifications.
"""
input_stream = StringIO(code)
output_stream = StringIO()
config = _config(path=file_path, config=config, **config_kwargs)
sort_stream(
input_stream,
output_stream,
extension=extension,
config=config,
file_path=file_path,
disregard_skip=disregard_skip,
show_diff=show_diff,
)
output_stream.seek(0)
return output_stream.read()
|
(code: str, extension: Optional[str] = None, config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, disregard_skip: bool = False, show_diff: Union[bool, TextIO] = False, **config_kwargs: Any) -> str
|
[
0.021655600517988205,
0.01910371333360672,
-0.01358348410576582,
-0.00944552756845951,
0.05032889172434807,
-0.02091130055487156,
-0.010615142993628979,
0.02096446417272091,
0.03820742666721344,
-0.08194394409656525,
0.019245484843850136,
-0.0038632741197943687,
-0.03269605711102486,
0.033511243760585785,
-0.010677168145775795,
-0.039660584181547165,
0.0009370211628265679,
0.02888594940304756,
-0.017703719437122345,
-0.023179644718766212,
-0.0055778236128389835,
0.05238457769155502,
-0.03255428746342659,
0.014186013489961624,
0.06486047059297562,
0.02739734761416912,
0.03260745108127594,
-0.00720376567915082,
-0.03710869699716568,
-0.026263175532221794,
0.07244525104761124,
-0.002040180843323469,
0.01975940726697445,
-0.004160108044743538,
-0.08577177673578262,
-0.03436187282204628,
0.06514401733875275,
-0.014372088946402073,
-0.004064855631440878,
-0.05844531208276749,
-0.010801218450069427,
0.003517705947160721,
0.05330609530210495,
-0.029134048148989677,
-0.055857982486486435,
0.014256899245083332,
-0.08846542984247208,
-0.018731562420725822,
-0.0029705564957112074,
0.02585558220744133,
0.04777700453996658,
-0.014584746211767197,
-0.030870750546455383,
-0.0015173983993008733,
0.019848013296723366,
-0.00019341291044838727,
0.06011112779378891,
0.005755038000643253,
0.07116930931806564,
-0.045756760984659195,
-0.0012571146944537759,
-0.01602904312312603,
-0.01219235174357891,
-0.018430298194289207,
-0.05972125381231308,
0.009126542136073112,
0.005591114517301321,
-0.013769559562206268,
-0.02897455543279648,
-0.03820742666721344,
0.014150570146739483,
0.026830261573195457,
0.04518967494368553,
-0.030445436015725136,
0.026210010051727295,
0.02114167809486389,
-0.01975940726697445,
-0.029878349974751472,
0.0283188633620739,
-0.04770611971616745,
0.059863027185201645,
-0.03379478678107262,
0.0444808155298233,
-0.015577146783471107,
0.026812540367245674,
-0.04387828707695007,
0.05780734121799469,
-0.009782235138118267,
-0.002370242727920413,
0.028850505128502846,
-0.008732239715754986,
0.00554238073527813,
-0.01416829228401184,
0.012839184142649174,
-0.02585558220744133,
-0.013486016541719437,
0.03671882674098015,
0.025784695520997047,
0.028177089989185333,
0.04699726030230522,
0.04114918410778046,
0.030870750546455383,
-0.02020244300365448,
-0.026440389454364777,
-0.02052142843604088,
-0.03409605100750923,
-0.014806264080107212,
0.008466417901217937,
-0.04210614413022995,
-0.06369085609912872,
0.0018020489951595664,
-0.0796755999326706,
0.0306403711438179,
-0.04845041781663895,
0.11320456117391586,
-0.027592282742261887,
0.000016778258213889785,
-0.022541671991348267,
0.02739734761416912,
-0.002512014238163829,
-0.0013778420398011804,
0.02431381680071354,
-0.03347580134868622,
0.042566899210214615,
-0.001798726269043982,
0.015089807100594044,
0.06766045838594437,
-0.05429849401116371,
0.0499744638800621,
-0.03273149952292442,
0.05724025517702103,
0.03289099410176277,
0.020610036328434944,
-0.030321385711431503,
-0.005400609225034714,
0.03969602659344673,
-0.003982893656939268,
0.04717447608709335,
0.012777158990502357,
0.04572131857275963,
0.037250470370054245,
-0.004572131671011448,
-0.010278435423970222,
-0.03627578914165497,
0.05511368066072464,
-0.0074164229445159435,
0.02888594940304756,
-0.00702655129134655,
0.012750576250255108,
0.04068842902779579,
0.03870362788438797,
-0.04341752827167511,
-0.02909860573709011,
-0.01986573450267315,
0.02344546653330326,
-0.02837202697992325,
-0.05394406616687775,
-0.04848586395382881,
-0.026918869465589523,
-0.0049620033241808414,
0.03315681591629982,
-0.0014210380613803864,
0.0455441027879715,
0.019068270921707153,
0.01827080547809601,
-0.023037873208522797,
0.02277205139398575,
-0.0008539519039914012,
-0.04579220339655876,
-0.050966862589120865,
0.020184721797704697,
0.013991077430546284,
-0.013831584714353085,
0.01219235174357891,
0.030002398416399956,
-0.010960711166262627,
0.007265790831297636,
0.031154293566942215,
-0.026972033083438873,
-0.035602375864982605,
-0.013220194727182388,
0.011226532980799675,
0.031260620802640915,
0.08158951252698898,
-0.004228778649121523,
-0.031030243262648582,
0.004335107281804085,
-0.018536627292633057,
0.04614663124084473,
-0.0742882788181305,
-0.04224791377782822,
0.028744177892804146,
0.0030059993732720613,
-0.006419592071324587,
-0.03152644261717796,
-0.008240469731390476,
-0.03232390806078911,
-0.003515490796416998,
0.007558194454759359,
-0.027096083387732506,
-0.03216441348195076,
0.02684798277914524,
0.06663262099027634,
-0.0451187901198864,
-0.0058126323856413364,
0.029063163325190544,
-0.0027778358198702335,
-0.03429098799824715,
-0.02948847785592079,
-0.012617666274309158,
0.024898624047636986,
-0.04859219118952751,
-0.0014742023777216673,
-0.09732615202665329,
0.024508751928806305,
-0.018022704869508743,
0.07393385469913483,
0.07520979642868042,
0.04876940697431564,
-0.0032961880788207054,
0.017092330381274223,
0.03069353476166725,
-0.01788979396224022,
-0.006140479352325201,
0.04884029179811478,
0.01053539663553238,
0.024118881672620773,
0.02672393247485161,
0.03533655405044556,
-0.017437897622585297,
0.03118973597884178,
-0.036151740700006485,
0.06503769010305405,
-0.0013822723412886262,
0.09080466628074646,
-0.02805304154753685,
-0.0024832168128341436,
-0.02080497145652771,
-0.031154293566942215,
-0.02920493483543396,
-0.03019733540713787,
0.020946742966771126,
-0.019830292090773582,
0.03969602659344673,
-0.06627818942070007,
-0.008594898506999016,
-0.0227188877761364,
-0.009480970911681652,
-0.0010516567854210734,
-0.001737808808684349,
0.03140239417552948,
0.012688552029430866,
0.0016680306289345026,
-0.0029528350569307804,
-0.05812632665038109,
0.08137685805559158,
0.06890096515417099,
-0.02996695600450039,
-0.014823985286056995,
0.05054154992103577,
-0.02064547874033451,
-0.09782235324382782,
-0.0443744882941246,
-0.04940737783908844,
0.060359228402376175,
-0.06797944754362106,
-0.03760489821434021,
0.03838464245200157,
0.03134923055768013,
0.025501152500510216,
0.0017012583557516336,
0.018979663029313087,
0.012617666274309158,
0.0006640002247877419,
-0.04444537311792374,
0.022098636254668236,
0.016986001282930374,
-0.010446789674460888,
0.10817167162895203,
-0.023799894377589226,
-0.025483431294560432,
-0.01921004243195057,
-0.03774666786193848,
-0.004027197603136301,
0.015904992818832397,
0.01986573450267315,
0.015054363757371902,
-0.05879973992705345,
-0.0453314445912838,
0.04487068951129913,
0.04373651742935181,
-0.0253593809902668,
0.04487068951129913,
-0.030480878427624702,
0.044693473726511,
-0.03827831149101257,
0.05004534870386124,
-0.0777616798877716,
0.04143272712826729,
0.003274036105722189,
-0.03682515397667885,
0.005861366633325815,
0.12823234498500824,
-0.007367689162492752,
-0.011270835995674133,
0.011625264771282673,
-0.03742768242955208,
-0.06631363183259964,
-0.07932116836309433,
-0.03891628235578537,
-0.0065657938830554485,
0.0046518780291080475,
-0.0018297387287020683,
-0.012280958704650402,
0.00720376567915082,
0.03319225832819939,
0.0004214380169287324,
0.05344786494970322,
0.01385816652327776,
-0.053554195910692215,
0.005865796934813261,
0.013477155938744545,
-0.034060608595609665,
0.01799612306058407,
0.026653047651052475,
-0.04114918410778046,
0.029683412984013557,
0.01773030124604702,
0.06301744282245636,
-0.05178204923868179,
0.03852641209959984,
0.020166998729109764,
0.020875858142971992,
-0.013955635018646717,
0.00919742789119482,
-0.03799476847052574,
0.02004295028746128,
-0.08236926048994064,
-0.010606282390654087,
-0.02107079327106476,
-0.0011884440900757909,
0.007061994168907404,
0.028584683313965797,
0.03650616854429245,
-0.02025560662150383,
-0.012688552029430866,
-0.030179614201188087,
0.018749283626675606,
-0.035053011029958725,
-0.011953111737966537,
0.05858708173036575,
0.006486047524958849,
-0.02305559441447258,
-0.04820231720805168,
-0.005701873451471329,
-0.0023946096189320087,
-0.017304986715316772,
0.006596806459128857,
0.0048911175690591335,
-0.01794295944273472,
0.0008301387424580753,
-0.01936953514814377,
0.0015185059746727347,
-0.0029306833166629076,
0.009959449991583824,
-0.05497191101312637,
-0.002873088698834181,
-0.020734086632728577,
0.022541671991348267,
0.040865641087293625,
-0.0555744394659996,
0.005803771782666445,
-0.009232870303094387,
-0.030108727514743805,
-0.03944792598485947,
-0.01905054971575737,
-0.017880933359265327,
0.03250112384557724,
-0.003449035342782736,
0.04189348593354225,
0.03448592498898506,
0.03196948021650314,
0.005901239812374115,
0.018642956390976906,
-0.028247976675629616,
0.030427714809775352,
0.044055502861738205,
-0.022311294451355934,
0.0011186659103259444,
-0.02333913743495941,
-0.03629351034760475,
-0.04192892834544182,
0.0073145246133208275,
0.043063100427389145,
0.004481309559196234,
-0.030888471752405167,
-0.08116419613361359,
0.00919742789119482,
-0.012086022645235062,
-0.015018921345472336,
-0.00020822693477384746,
-0.033404916524887085,
0.05139217898249626,
0.039660584181547165,
0.03365301713347435,
0.019032826647162437,
0.007385410368442535,
0.029222656041383743,
-0.045260559767484665,
0.06163517013192177,
-0.03134923055768013,
-0.00692908326163888,
-0.04083019867539406,
-0.06305288523435593,
0.04270867258310318,
0.0025164445396512747,
0.00373922404833138,
0.0020058455411344767,
0.003218656638637185,
-0.01839485578238964,
0.00793034490197897,
-0.02739734761416912,
-0.019901178777217865,
-0.016286004334688187,
0.02206319384276867,
-0.03422010317444801,
0.04547321796417236,
0.007305664010345936,
-0.037250470370054245,
0.020450543612241745,
0.05043521896004677,
0.06769590079784393,
-0.013167030178010464,
0.033511243760585785,
0.04667827486991882,
-0.03732135519385338,
0.01235184445977211,
0.0012083807960152626,
0.058161769062280655,
-0.02328597381711006,
-0.002350306138396263,
0.05794911086559296,
0.009303756058216095,
-0.009321478195488453,
-0.02897455543279648,
0.02881506271660328,
0.002611697418615222,
0.038951728492975235,
-0.022931544110178947,
-0.016277143731713295,
0.02436698041856289,
0.03377706557512283,
0.01636574976146221,
0.015054363757371902,
-0.04044032841920853,
-0.036754269152879715,
0.02569608949124813,
0.017367012798786163,
-0.033458080142736435,
0.04589853063225746,
-0.0565313957631588,
0.03788844123482704,
0.04058209806680679,
0.015355628915131092,
0.023144202306866646,
-0.001217241515405476,
-0.025235332548618317,
0.026316339150071144,
0.0011950896587222815,
-0.0027822661213576794,
0.08307811617851257,
-0.0500807911157608,
0.016445497050881386,
0.0740756243467331,
-0.008732239715754986,
0.0627693459391594,
0.0064993384294211864,
-0.02069864235818386,
0.009339199401438236,
0.002416761592030525,
0.012475894764065742,
-0.03599224612116814,
-0.04912383481860161,
0.03774666786193848,
0.0014166076434776187,
0.0099860318005085,
0.09945272654294968,
-0.006933513563126326,
0.013051841408014297,
-0.04402006044983864,
-0.011386025696992874,
0.06500224769115448,
0.03514161705970764,
-0.009418945759534836,
0.012378426268696785,
0.06103264167904854,
-0.056070636957883835,
-0.04270867258310318,
-0.05479469522833824,
-0.04334664344787598,
0.011394886299967766,
-0.0281062051653862,
-0.04494157433509827,
0.012130326591432095,
0.009410085156559944,
0.04809598997235298,
0.02046826481819153,
0.01625942252576351,
0.007606928702443838,
-0.0035044148098677397,
-0.029772020876407623,
-0.008749961853027344,
0.008634772151708603,
-0.03558465465903282,
0.021177122369408607,
0.0011973048094660044,
0.011075900867581367,
0.028247976675629616,
0.00643731327727437,
0.014992338605225086,
-0.0400504544377327,
-0.03870362788438797,
-0.017978401854634285,
-0.02443786710500717,
-0.011855644173920155,
-0.023516351357102394,
0.05522000789642334,
-0.02459735982120037,
0.04068842902779579,
0.02553659677505493,
0.019688520580530167,
0.005493646487593651,
0.01832396909594536,
-0.08832366019487381,
0.06408073008060455,
-0.03544288128614426,
-0.03494668006896973,
0.03618718311190605,
0.00902464333921671,
0.019741684198379517,
-0.014708795584738255,
0.02344546653330326,
0.02344546653330326,
-0.04079475626349449,
0.016286004334688187,
0.018483463674783707,
0.025164445862174034,
0.04341752827167511,
-0.05213647708296776,
-0.009861981496214867,
0.011855644173920155,
-0.004414854105561972,
0.01717207580804825,
-0.02672393247485161,
0.029878349974751472,
-0.07549333572387695,
-0.017588529735803604,
-0.03212897107005119,
0.0036949203349649906,
-0.02470368891954422,
-0.006822754628956318,
0.06797944754362106,
-0.06252124160528183,
-0.03760489821434021,
-0.008541734889149666,
-0.00018981324683409184,
0.05497191101312637,
-0.03282010927796364,
-0.039554256945848465,
-0.023427745327353477,
0.0398377999663353,
0.007225917652249336,
0.07485536485910416,
0.020273327827453613,
-0.008741100318729877,
0.05107319355010986,
0.02091130055487156,
-0.004199981689453125,
0.03443276137113571,
0.05107319355010986,
0.03416693955659866,
-0.04058209806680679,
-0.0010228593600913882,
0.014380949549376965,
-0.027485955506563187,
-0.017269544303417206,
0.022878380492329597,
-0.0027822661213576794,
0.023020152002573013,
-0.02711380459368229,
0.006074023898690939,
0.005595544818788767,
0.05004534870386124,
-0.0315973274409771,
-0.01235184445977211,
0.0005936682573519647,
-0.0024455587845295668,
0.0499744638800621,
-0.02629861794412136,
0.003152201185002923,
-0.010136663913726807,
0.0024832168128341436,
-0.006494908127933741,
-0.004607574548572302,
0.0960502102971077,
0.019475864246487617,
0.04958458989858627,
-0.06450604647397995,
-0.03538971766829491,
0.028247976675629616,
0.03696692734956741,
0.04798966273665428,
-0.08733125776052475,
-0.06766045838594437,
0.03007328510284424,
-0.00387656525708735,
0.017526505514979362,
-0.07379207760095596,
0.023675844073295593,
-0.05628329515457153,
0.06142251566052437,
0.05242002010345459,
0.011226532980799675,
0.011199950240552425,
0.03198720142245293,
0.10448561608791351,
-0.07357942312955856,
-0.01034932117909193,
0.011208811774849892,
-0.02672393247485161,
-0.0006966741639189422,
0.029559362679719925,
0.006100606173276901,
-0.011350583285093307,
-0.012635387480258942,
-0.06071365624666214,
0.01750878430902958,
-0.0343441516160965,
-0.01108476147055626,
-0.051569391041994095,
0.05763012543320656,
-0.09300211817026138,
-0.029222656041383743,
0.03129606321454048,
-0.032359350472688675,
0.013415130786597729,
0.000809094519354403,
-0.051959265023469925,
0.006481616757810116,
-0.02025560662150383,
-0.017597390338778496,
0.006805033423006535,
0.01926320604979992,
0.02881506271660328,
-0.0561060830950737,
0.05068331956863403,
0.03657705336809158,
0.003690490033477545,
0.08265279978513718,
-0.0167999267578125,
0.08187305927276611,
-0.005772759206593037,
-0.001305848709307611,
0.027078362181782722,
-0.061351627111434937,
-0.04160994291305542,
0.038951728492975235,
0.003234162926673889,
0.08733125776052475,
-0.05968581140041351,
-0.02388850226998329,
0.039554256945848465,
0.057665567845106125,
-0.043559301644563675,
-0.00340473186224699,
-0.04724536091089249,
0.03721502423286438,
0.0387745127081871,
-0.010313878767192364,
-0.05238457769155502,
-0.0562124103307724,
-0.0019548963755369186,
0.007035411894321442,
-0.05699215456843376,
-0.008625911548733711,
0.057559240609407425,
-0.029453035444021225,
-0.03437959402799606,
0.027202412486076355,
-0.011580961756408215,
-0.007500599604099989,
0.025341659784317017,
-0.02261255867779255,
-0.06883007287979126,
0.01871384121477604,
0.04720991849899292,
0.026334060356020927,
-0.04012134298682213,
-0.04430360347032547,
-0.06939715892076492,
0.01651638373732567,
-0.021478386595845222,
0.05677949637174606,
-0.010677168145775795,
0.02952392026782036,
-0.05004534870386124,
-0.018483463674783707,
-0.015391071327030659,
-0.06638451665639877,
0.018908778205513954,
-0.01647207885980606,
-0.03980235755443573,
-0.016046764329075813,
0.03007328510284424,
0.05164027959108353,
-0.025341659784317017,
-0.03282010927796364,
-0.017092330381274223,
-0.01570119708776474,
0.04320487380027771,
-0.055361781269311905,
-0.06064277142286301,
0.008306925185024738,
-0.016596129164099693,
0.003320554969832301,
0.002631634008139372,
-0.029169492423534393,
-0.006029720418155193,
-0.03443276137113571,
0.0034180229995399714,
-0.03682515397667885,
0.007855028845369816,
-0.014372088946402073,
0.04352385923266411,
0.04540233314037323,
-0.013326523825526237,
-0.03884539753198624,
0.013742977753281593,
0.05107319355010986,
-0.004390486981719732,
0.0013346460182219744,
0.018359413370490074,
-0.05954404175281525,
-0.017597390338778496,
-0.013831584714353085,
-0.01954674907028675,
0.05638962611556053,
0.0028199243824929,
-0.01936953514814377,
-0.0009375749505124986,
-0.0794629380106926,
-0.026777097955346107,
-0.025270774960517883,
-0.011837922036647797,
0.01931636966764927,
0.057665567845106125,
-0.0030702396761626005,
0.034556809812784195,
0.0006878134445287287,
-0.023427745327353477,
-0.04044032841920853,
0.009330338798463345,
0.0017267329385504127,
-0.03590364009141922,
0.04557954519987106,
-0.05660228058695793,
-0.03436187282204628,
-0.00018787496082950383
] |
723,052
|
isort.api
|
sort_file
|
Sorts and formats any groups of imports imports within the provided file or Path.
Returns `True` if the file has been changed, otherwise `False`.
- **filename**: The name or Path of the file to format.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- **ask_to_apply**: If `True`, prompt before applying any changes.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- **write_to_stdout**: If `True`, write to stdout instead of the input file.
- **output**: If a TextIO is provided, results will be written there rather than replacing
the original file content.
- ****config_kwargs**: Any config modifications.
|
def sort_file(
filename: Union[str, Path],
extension: Optional[str] = None,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
disregard_skip: bool = True,
ask_to_apply: bool = False,
show_diff: Union[bool, TextIO] = False,
write_to_stdout: bool = False,
output: Optional[TextIO] = None,
**config_kwargs: Any,
) -> bool:
"""Sorts and formats any groups of imports imports within the provided file or Path.
Returns `True` if the file has been changed, otherwise `False`.
- **filename**: The name or Path of the file to format.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- **ask_to_apply**: If `True`, prompt before applying any changes.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- **write_to_stdout**: If `True`, write to stdout instead of the input file.
- **output**: If a TextIO is provided, results will be written there rather than replacing
the original file content.
- ****config_kwargs**: Any config modifications.
"""
file_config: Config = config
if "config_trie" in config_kwargs:
config_trie = config_kwargs.pop("config_trie", None)
if config_trie:
config_info = config_trie.search(filename)
if config.verbose:
print(f"{config_info[0]} used for file {filename}")
file_config = Config(**config_info[1])
with io.File.read(filename) as source_file:
actual_file_path = file_path or source_file.path
config = _config(path=actual_file_path, config=file_config, **config_kwargs)
changed: bool = False
try:
if write_to_stdout:
changed = sort_stream(
input_stream=source_file.stream,
output_stream=sys.stdout,
config=config,
file_path=actual_file_path,
disregard_skip=disregard_skip,
extension=extension,
)
else:
if output is None:
try:
if config.overwrite_in_place:
output_stream_context = _in_memory_output_stream_context()
else:
output_stream_context = _file_output_stream_context(
filename, source_file
)
with output_stream_context as output_stream:
changed = sort_stream(
input_stream=source_file.stream,
output_stream=output_stream,
config=config,
file_path=actual_file_path,
disregard_skip=disregard_skip,
extension=extension,
)
output_stream.seek(0)
if changed:
if show_diff or ask_to_apply:
source_file.stream.seek(0)
show_unified_diff(
file_input=source_file.stream.read(),
file_output=output_stream.read(),
file_path=actual_file_path,
output=None
if show_diff is True
else cast(TextIO, show_diff),
color_output=config.color_output,
)
if show_diff or (
ask_to_apply
and not ask_whether_to_apply_changes_to_file(
str(source_file.path)
)
):
return False
source_file.stream.close()
if config.overwrite_in_place:
output_stream.seek(0)
with source_file.path.open("w") as fs:
shutil.copyfileobj(output_stream, fs)
if changed:
if not config.overwrite_in_place:
tmp_file = _tmp_file(source_file)
tmp_file.replace(source_file.path)
if not config.quiet:
print(f"Fixing {source_file.path}")
finally:
try: # Python 3.8+: use `missing_ok=True` instead of try except.
if not config.overwrite_in_place: # pragma: no branch
tmp_file = _tmp_file(source_file)
tmp_file.unlink()
except FileNotFoundError:
pass # pragma: no cover
else:
changed = sort_stream(
input_stream=source_file.stream,
output_stream=output,
config=config,
file_path=actual_file_path,
disregard_skip=disregard_skip,
extension=extension,
)
if changed and show_diff:
source_file.stream.seek(0)
output.seek(0)
show_unified_diff(
file_input=source_file.stream.read(),
file_output=output.read(),
file_path=actual_file_path,
output=None if show_diff is True else show_diff,
color_output=config.color_output,
)
source_file.stream.close()
except ExistingSyntaxErrors:
warn(f"{actual_file_path} unable to sort due to existing syntax errors")
except IntroducedSyntaxErrors: # pragma: no cover
warn(f"{actual_file_path} unable to sort as isort introduces new syntax errors")
return changed
|
(filename: Union[str, pathlib.Path], extension: Optional[str] = None, config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, disregard_skip: bool = True, ask_to_apply: bool = False, show_diff: Union[bool, TextIO] = False, write_to_stdout: bool = False, output: Optional[TextIO] = None, **config_kwargs: Any) -> bool
|
[
-0.0270120520144701,
-0.007804502733051777,
-0.02079499326646328,
0.01644611358642578,
-0.005420785862952471,
-0.016589034348726273,
-0.016211314126849174,
0.06602945923805237,
0.03785362467169762,
-0.08317997306585312,
-0.0038129258900880814,
-0.051247354596853256,
-0.0156804658472538,
0.03713902086019516,
-0.034219350665807724,
0.06190517172217369,
0.011331587098538876,
0.05467745661735535,
-0.0161602720618248,
0.0056811063550412655,
-0.0235206987708807,
-0.04291711002588272,
-0.0633343830704689,
0.028972111642360687,
0.07252215594053268,
0.03270847350358963,
0.02811458520591259,
0.002511324593797326,
-0.0470413975417614,
-0.02249983511865139,
0.018334710970520973,
-0.011209082789719105,
0.01121929194778204,
-0.013802076689898968,
-0.04136539623141289,
-0.023969879373908043,
0.030687160789966583,
0.03142218291759491,
-0.004499456379562616,
-0.019539330154657364,
0.009478718973696232,
0.0038512081373482943,
0.017201552167534828,
-0.020560193806886673,
-0.019478078931570053,
0.06362022459506989,
-0.06733616441488266,
0.03462769463658333,
-0.0150985736399889,
-0.0087641142308712,
0.02135646715760231,
-0.030891334637999535,
0.001963886432349682,
0.03807821497321129,
0.000731193576939404,
-0.0072021931409835815,
0.018222415819764137,
0.043284621089696884,
0.06705032289028168,
-0.035383135080337524,
0.03691443055868149,
0.024541562423110008,
0.044427987188100815,
-0.016099020838737488,
-0.05075734108686447,
-0.011658263392746449,
0.005101765971630812,
-0.035811897367239,
-0.05876091122627258,
0.017722193151712418,
-0.014792314730584621,
0.03170802444219589,
0.05194154381752014,
-0.010223949328064919,
0.008519107475876808,
0.06476359069347382,
-0.006844890769571066,
0.010923241265118122,
0.01892681233584881,
-0.09359277784824371,
0.07019458711147308,
0.021009374409914017,
0.026379117742180824,
0.019447453320026398,
0.035403553396463394,
-0.05055316910147667,
0.10020797699689865,
-0.00020975558436475694,
-0.024296555668115616,
0.004073245916515589,
-0.009999359957873821,
-0.010810946114361286,
0.02805333398282528,
-0.01913098432123661,
0.016507364809513092,
-0.0024743182584643364,
-0.003131499281153083,
-0.052349887788295746,
-0.005635167472064495,
-0.013873537071049213,
0.0032642115838825703,
0.004762329161167145,
-0.01682383380830288,
-0.015894846990704536,
0.03172844275832176,
-0.026379117742180824,
0.02919670008122921,
0.001285012112930417,
-0.03858864679932594,
-0.03920116275548935,
-0.051206521689891815,
-0.07105211168527603,
0.044509656727313995,
-0.033361826092004776,
0.09367445111274719,
-0.052186548709869385,
0.010101445950567722,
0.002018757862970233,
-0.021152295172214508,
0.006865308154374361,
0.034280601888895035,
0.0052370307967066765,
0.0019141193479299545,
0.026664959266781807,
-0.01247495412826538,
-0.06517193466424942,
0.040017854422330856,
-0.041161224246025085,
0.048878952860832214,
0.013720407150685787,
-0.006206850986927748,
-0.014465638436377048,
-0.023112352937459946,
-0.0022739737760275602,
0.009274546056985855,
-0.002728258026763797,
0.023194022476673126,
0.03399476036429405,
0.02233649604022503,
0.04610220342874527,
0.08673257380723953,
-0.013638738542795181,
-0.017997825518250465,
-0.061374321579933167,
0.0224590003490448,
-0.024541562423110008,
0.01528232917189598,
0.005676001776009798,
-0.03632232919335365,
0.07615642994642258,
0.022234410047531128,
-0.026134109124541283,
-0.019559748470783234,
0.01350602600723505,
0.04242709279060364,
-0.0248886551707983,
-0.04634721204638481,
-0.04981814697384834,
-0.04610220342874527,
0.02693038247525692,
0.028359591960906982,
-0.01132137794047594,
0.046633053570985794,
0.056719183921813965,
-0.019273905083537102,
-0.016037767753005028,
0.001275441492907703,
-0.019763920456171036,
-0.036669421941041946,
-0.05059400200843811,
-0.006079243030399084,
0.02803291566669941,
-0.013067054562270641,
0.008207743987441063,
0.03609773889183998,
0.0037874041590839624,
0.013373314402997494,
0.03166719153523445,
0.004272314254194498,
-0.022908180952072144,
-0.03599565103650093,
-0.03826196864247322,
0.022887762635946274,
0.025439921766519547,
-0.012413701973855495,
0.025378670543432236,
0.0018783891573548317,
-0.009606326930224895,
0.02131563238799572,
-0.05945510044693947,
-0.002914565848186612,
0.011668471619486809,
0.016333818435668945,
0.014965861104428768,
-0.0020659728907048702,
-0.015731509774923325,
-0.05823006480932236,
0.02121354639530182,
0.08509919792413712,
-0.024541562423110008,
-0.059005919843912125,
-0.005992469843477011,
0.055820826441049576,
-0.028767937794327736,
-0.02582785114645958,
0.013934789225459099,
0.008335351943969727,
-0.03366808220744133,
-0.023357359692454338,
0.02823708951473236,
0.004940980114042759,
-0.06941872835159302,
-0.003476040670648217,
-0.05818922817707062,
-0.0071256281808018684,
-0.018375545740127563,
0.03223887458443642,
0.037669867277145386,
0.012056400068104267,
0.03144260123372078,
0.03470936417579651,
0.04357046261429787,
-0.04508133977651596,
-0.01850825734436512,
0.060149285942316055,
0.029992975294589996,
0.03279013931751251,
0.06321188062429428,
0.03742486238479614,
-0.05757671222090721,
0.08403749763965607,
-0.06174183264374733,
0.03564855828881264,
0.01180118415504694,
0.045571353286504745,
-0.06394690275192261,
0.008575255051255226,
-0.006701970007270575,
-0.09073436260223389,
0.025154080241918564,
-0.04638804495334625,
0.012005357071757317,
0.015649840235710144,
0.00014555282541550696,
-0.0927760899066925,
-0.07742229849100113,
0.006594779435545206,
-0.021581057459115982,
-0.020141640678048134,
0.005214061122387648,
0.04352962598204613,
0.013107889331877232,
-0.04389713704586029,
-0.03626107797026634,
-0.034219350665807724,
-0.003146812319755554,
0.005880174692720175,
-0.05141069367527962,
0.025582842528820038,
-0.006870412267744541,
0.010259679518640041,
-0.04949146881699562,
-0.015394624322652817,
-0.019304532557725906,
0.026072857901453972,
-0.04822560027241707,
-0.015609005466103554,
0.014006249606609344,
-0.00676832627505064,
0.029523376375436783,
0.023234857246279716,
-0.027624569833278656,
-0.05398327112197876,
0.04610220342874527,
-0.04487716779112816,
0.01983538083732128,
0.02803291566669941,
-0.00037644346593879163,
0.09522616118192673,
0.027542902156710625,
0.02576659806072712,
0.00280482298694551,
-0.02262233942747116,
0.00870286300778389,
0.020529568195343018,
0.030952585861086845,
-0.04271293431520462,
-0.05843423679471016,
-0.07864733785390854,
0.027379563078284264,
0.04381546750664711,
-0.01523128617554903,
0.01740572601556778,
-0.030830083414912224,
0.00015950994566082954,
0.009810499846935272,
-0.023357359692454338,
-0.07582975178956985,
0.026215778663754463,
0.005242134910076857,
-0.06843870133161545,
0.005214061122387648,
0.10322973132133484,
-0.0064110239036381245,
-0.04410130903124809,
-0.005430994555354118,
-0.042141251266002655,
-0.08542586863040924,
-0.029502959921956062,
-0.023194022476673126,
0.02793082967400551,
0.0008351940778084099,
0.001845211023464799,
-0.03354557976126671,
0.04136539623141289,
-0.01513940840959549,
0.007008228916674852,
0.03958909213542938,
0.03838447481393814,
-0.01618068851530552,
-0.060271792113780975,
0.05606583133339882,
-0.024092381820082664,
0.023806540295481682,
0.030768830329179764,
-0.06680531799793243,
0.029809219762682915,
0.013608112931251526,
0.022969432175159454,
-0.012209529057145119,
0.0028762833680957556,
0.03132009878754616,
0.03701651468873024,
0.010627190582454205,
-0.08542586863040924,
0.006548840552568436,
0.0304013192653656,
-0.030727995559573174,
0.0650494322180748,
-0.02035602182149887,
0.01350602600723505,
0.037669867277145386,
0.0020302427001297474,
0.003060038900002837,
-0.010770111344754696,
-0.015445667318999767,
-0.006451858207583427,
-0.017671149224042892,
0.0064722755923867226,
-0.036567337810993195,
0.06366106122732162,
0.03377017006278038,
-0.020407063886523247,
-0.013128306716680527,
-0.01234224159270525,
-0.0056249587796628475,
-0.022846927866339684,
-0.026664959266781807,
0.006513110361993313,
-0.013832702301442623,
0.009320485405623913,
0.008825366385281086,
-0.013526443392038345,
0.00040100800106301904,
0.04581636190414429,
-0.028972111642360687,
0.0029681611340492964,
-0.02059081941843033,
-0.029931722208857536,
0.019539330154657364,
-0.05365659296512604,
-0.03483186662197113,
0.01983538083732128,
-0.02803291566669941,
-0.041977912187576294,
0.016558408737182617,
-0.012087025679647923,
0.03587314859032631,
0.0007095002220012248,
0.02123396471142769,
0.05725003406405449,
0.06178266927599907,
-0.049083124846220016,
0.05957760289311409,
-0.08485418558120728,
0.00841191690415144,
0.035811897367239,
-0.028441261500120163,
0.014486055821180344,
-0.011576593853533268,
-0.021907733753323555,
-0.051206521689891815,
0.00392011646181345,
0.0077024162746965885,
0.04312128201127052,
0.01411854475736618,
-0.02905377931892872,
0.03901740908622742,
-0.020784784108400345,
-0.03260638564825058,
-0.007671790197491646,
-0.008325142785906792,
0.02811458520591259,
0.052268218249082565,
-0.0004440757038537413,
-0.017079049721360207,
0.08015821129083633,
0.05047149956226349,
-0.009448093362152576,
0.07734063267707825,
-0.0005040514515712857,
-0.020784784108400345,
-0.06790784746408463,
-0.029502959921956062,
-0.010132071562111378,
0.04422381520271301,
-0.0181101206690073,
0.011433673091232777,
0.027359146624803543,
-0.029972556978464127,
0.012556622736155987,
0.028910858556628227,
0.01291392557322979,
0.013608112931251526,
0.0629260390996933,
-0.05553498491644859,
0.01925348863005638,
0.015874430537223816,
-0.08893764019012451,
0.04924646392464638,
0.03603648766875267,
0.05541247874498367,
0.02264275588095188,
0.0427946038544178,
0.058066725730895996,
-0.035301465541124344,
0.009580805897712708,
-0.02580743283033371,
0.058965086936950684,
0.03383142128586769,
0.021152295172214508,
0.05965927243232727,
0.01688508503139019,
-0.02480698749423027,
-0.0536157600581646,
0.03164677321910858,
0.008896826766431332,
-0.014373760670423508,
-0.044427987188100815,
-0.00392011646181345,
-0.020345812663435936,
-0.002871179021894932,
0.06264019757509232,
-0.03848655894398689,
-0.05504496768116951,
-0.061170149594545364,
0.003973711747676134,
0.016976961866021156,
-0.0650494322180748,
0.02260192111134529,
-0.017650732770562172,
0.024929489940404892,
0.028992528095841408,
-0.0350564569234848,
0.003825686639174819,
-0.026726210489869118,
-0.04577552527189255,
-0.0026772150304168463,
-0.05283990129828453,
-0.0009908757638186216,
0.09555283933877945,
-0.056923359632492065,
-0.010565939359366894,
0.07170546054840088,
-0.05729086697101593,
0.01078032050281763,
-0.0040196506306529045,
0.010392392054200172,
0.005014992784708738,
0.029870470985770226,
-0.01189306192100048,
-0.012352450750768185,
-0.02366361953318119,
0.022724425420165062,
0.02021310105919838,
0.004999679978936911,
0.10306639224290848,
-0.021662726998329163,
0.00764116458594799,
-0.06623363494873047,
-0.02376570552587509,
-0.015027113258838654,
0.03899699077010155,
0.01856951043009758,
-0.02713455632328987,
0.018344920128583908,
-0.044264648109674454,
-0.029768384993076324,
-0.010320931673049927,
-0.03556688874959946,
0.0393032506108284,
-0.014179795980453491,
-0.05647417902946472,
0.02474573440849781,
0.05312574654817581,
0.02599118836224079,
0.0304013192653656,
-0.03258596733212471,
-0.0023505385033786297,
-0.007110315375030041,
-0.030891334637999535,
0.0040477244183421135,
0.023929044604301453,
0.00026526502915658057,
0.046633053570985794,
0.0071256281808018684,
0.0184878408908844,
0.020498942583799362,
0.032157205045223236,
-0.0011312445858493447,
-0.04152873530983925,
-0.060190122574567795,
-0.025051994249224663,
-0.010178010910749435,
0.008013779297471046,
-0.01963120885193348,
0.06284436583518982,
-0.03493395447731018,
0.04810309410095215,
-0.012229946441948414,
0.018140748143196106,
-0.025276584550738335,
-0.009927899576723576,
-0.06394690275192261,
0.030727995559573174,
-0.003958398941904306,
-0.03728194162249565,
0.038649898022413254,
-0.03932366892695427,
-0.03503604233264923,
-0.01233203336596489,
0.03556688874959946,
-0.0071409414522349834,
-0.04924646392464638,
0.0006801504059694707,
0.0037312565837055445,
0.017956992611289024,
0.017701776698231697,
-0.028461679816246033,
-0.02009059675037861,
-0.034280601888895035,
-0.006365085020661354,
0.029870470985770226,
0.05398327112197876,
0.030870916321873665,
-0.06088430806994438,
0.00730427959933877,
0.006017991341650486,
0.026767045259475708,
-0.014863775111734867,
0.014179795980453491,
0.08959099650382996,
-0.025460340082645416,
-0.08097490668296814,
0.002830344485118985,
0.02027435228228569,
0.04377463459968567,
0.013720407150685787,
-0.009795187041163445,
-0.015251703560352325,
0.017415933310985565,
0.031993865966796875,
0.0016448665410280228,
0.010336244478821754,
0.014424803666770458,
-0.006916351150721312,
0.03807821497321129,
0.06072096899151802,
0.014588141813874245,
-0.008294517174363136,
0.030911751091480255,
-0.026113692671060562,
0.036383580416440964,
-0.02901294454932213,
-0.011249917559325695,
-0.020907288417220116,
0.006094555836170912,
0.029523376375436783,
0.060026783496141434,
-0.024337390437722206,
-0.06913288682699203,
-0.02678746171295643,
0.01457793265581131,
-0.06811202317476273,
-0.0313609316945076,
0.014455429278314114,
0.0036674526054412127,
0.0039788163267076015,
0.011831809766590595,
0.028073750436306,
-0.041059136390686035,
-0.014955652877688408,
-0.020988956093788147,
0.004889937117695808,
0.042263757437467575,
-0.011055953800678253,
0.016670703887939453,
-0.08926431834697723,
-0.03395392373204231,
0.06051679700613022,
0.03907866030931473,
0.04007910564541817,
-0.0028533139266073704,
-0.10478144884109497,
0.03681234270334244,
-0.017650732770562172,
0.02354111522436142,
-0.02027435228228569,
0.008105657063424587,
-0.03048298880457878,
-0.02823708951473236,
0.039997439831495285,
0.002543226582929492,
0.018334710970520973,
0.007636060006916523,
0.07521723210811615,
-0.06063930317759514,
-0.0008383842650800943,
0.008641610853374004,
-0.011882852762937546,
-0.019324949011206627,
-0.023908626288175583,
0.02464364841580391,
0.024521145969629288,
0.024214886128902435,
-0.044509656727313995,
0.01971287652850151,
-0.04018119350075722,
-0.019365783780813217,
0.004001785535365343,
0.053207412362098694,
-0.10012631118297577,
0.03244304656982422,
0.030585074797272682,
-0.027951247990131378,
-0.012587249279022217,
0.043162114918231964,
-0.04054870456457138,
0.020886870101094246,
-0.005880174692720175,
0.020682698115706444,
0.025194915011525154,
-0.04352962598204613,
-0.0060690343379974365,
-0.0246844831854105,
0.027481649070978165,
0.028359591960906982,
0.010678233578801155,
0.06488609313964844,
0.003616409609094262,
0.09114270657300949,
0.002129776868969202,
0.0186920128762722,
0.01523128617554903,
-0.04826643317937851,
-0.029870470985770226,
0.036791928112506866,
0.006707074120640755,
-0.010953866876661777,
0.0012358831008896232,
-0.03818029910326004,
-0.0059108007699251175,
0.038833655416965485,
-0.013761241920292377,
0.004928219132125378,
-0.06709115952253342,
0.03238179534673691,
0.07195047289133072,
-0.015547753311693668,
-0.052472393959760666,
-0.022928597405552864,
0.03515854477882385,
-0.030135896056890488,
-0.019161611795425415,
-0.04626554250717163,
0.059005919843912125,
-0.05598416179418564,
-0.03926241770386696,
0.030054226517677307,
-0.013832702301442623,
-0.021683143451809883,
0.0764831081032753,
-0.03481145203113556,
-0.03628149628639221,
-0.05757671222090721,
0.00011189622455276549,
-0.0002625533670652658,
-0.005849548615515232,
-0.03809863328933716,
-0.03034006804227829,
0.05757671222090721,
-0.03942575305700302,
0.06590695679187775,
0.001064888434484601,
0.018518466502428055,
-0.016150062903761864,
-0.0521048828959465,
0.014302300289273262,
0.004889937117695808,
-0.008401707746088505,
-0.011688889004290104,
-0.04483633115887642,
-0.030748413875699043,
0.006339563522487879,
0.05729086697101593,
0.0054514119401574135,
-0.003363745752722025,
-0.009300068020820618,
0.029482543468475342,
0.01132137794047594,
-0.05177820473909378,
0.004591334145516157,
-0.021968986839056015,
0.0006948253139853477,
0.008340456523001194,
0.004353983327746391,
-0.03399476036429405,
-0.01624194160103798,
-0.03628149628639221,
-0.0032310334499925375,
0.005711731966584921,
0.046633053570985794,
-0.024459892883896828,
0.018804308027029037,
0.04083454608917236,
0.012689335271716118,
0.018773682415485382,
0.0563516728579998,
0.05051233246922493,
0.027665404602885246,
-0.01291392557322979,
-0.020703114569187164,
-0.0855892077088356,
-0.03475020080804825,
0.05618833750486374,
-0.01242391113191843,
0.09016267955303192,
0.015833595767617226,
-0.060067616403102875,
0.006017991341650486,
-0.03675109148025513,
-0.057944223284721375,
-0.006901038344949484,
0.005864861886948347,
0.01861034519970417,
0.05508580431342125,
0.008049510419368744,
0.031115924939513206,
0.013230392709374428,
-0.04499967023730278,
-0.020784784108400345,
-0.03285139426589012,
0.01065781619399786,
0.004315701313316822,
0.07231798022985458,
-0.0022382435854524374,
-0.04201874881982803,
0.035444386303424835
] |
723,054
|
isort.api
|
find_imports_in_code
|
Finds and returns all imports within the provided code string.
- **code**: The string of code with imports that need to be sorted.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **unique**: If True, only the first instance of an import is returned.
- **top_only**: If True, only return imports that occur before the first function or class.
- ****config_kwargs**: Any config modifications.
|
def find_imports_in_code(
code: str,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
unique: Union[bool, ImportKey] = False,
top_only: bool = False,
**config_kwargs: Any,
) -> Iterator[identify.Import]:
"""Finds and returns all imports within the provided code string.
- **code**: The string of code with imports that need to be sorted.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **unique**: If True, only the first instance of an import is returned.
- **top_only**: If True, only return imports that occur before the first function or class.
- ****config_kwargs**: Any config modifications.
"""
yield from find_imports_in_stream(
input_stream=StringIO(code),
config=config,
file_path=file_path,
unique=unique,
top_only=top_only,
**config_kwargs,
)
|
(code: str, config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, unique: Union[bool, isort.api.ImportKey] = False, top_only: bool = False, **config_kwargs: Any) -> Iterator[isort.identify.Import]
|
[
-0.0011700793402269483,
-0.048394110053777695,
-0.007288715336471796,
-0.003947283606976271,
0.011071817949414253,
0.010535338893532753,
0.011164314113557339,
-0.03394617512822151,
0.02885887399315834,
-0.04869009926915169,
0.0017412445740774274,
0.003912597429007292,
-0.025362510234117508,
-0.00788531731814146,
-0.04513823986053467,
-0.03977344557642937,
0.038515496999025345,
0.05094701051712036,
-0.07939890027046204,
-0.05153898894786835,
-0.009189516305923462,
0.09072045981884003,
-0.043769292533397675,
0.05316692590713501,
0.05893870070576668,
0.05930868536233902,
-0.008384797722101212,
0.0005330104613676667,
0.026953447610139847,
-0.06741137057542801,
0.04265933483839035,
0.026305973529815674,
-0.02645396813750267,
-0.00867616105824709,
-0.03729454427957535,
-0.04961506277322769,
0.05176097899675369,
-0.01063708495348692,
-0.0023054725024849176,
-0.04062441363930702,
0.004125338979065418,
0.02554750256240368,
0.08924051374197006,
0.007538455538451672,
-0.03348369151353836,
0.009129393845796585,
-0.03152276948094368,
-0.05353691056370735,
0.010415093041956425,
0.010341096669435501,
0.039847444742918015,
-0.007658700924366713,
-0.02465953677892685,
0.009813866578042507,
0.03501913323998451,
-0.0041993362829089165,
0.024881528690457344,
-0.003498676000162959,
0.014540432021021843,
-0.011719292961061,
0.023660575971007347,
0.013162236660718918,
-0.013902206905186176,
-0.02083018608391285,
-0.02911786362528801,
-0.018656522035598755,
-0.013957705348730087,
-0.023457083851099014,
-0.08339474350214005,
-0.01868426986038685,
-0.025695497170090675,
0.024826031178236008,
0.06075162813067436,
-0.015261904336512089,
0.04291832447052002,
-0.03466764837503433,
0.008505042642354965,
-0.02164415456354618,
0.038774486631155014,
-0.041734371334314346,
0.047506146132946014,
-0.011414054781198502,
0.023993562906980515,
0.025769494473934174,
0.011867286637425423,
-0.00813968200236559,
0.043954282999038696,
0.02750842645764351,
0.05460986867547035,
0.06382250785827637,
-0.020959682762622833,
0.05287093669176102,
-0.023882567882537842,
0.06319352984428406,
0.047247156500816345,
0.0005396586493588984,
0.01835128292441368,
0.005221421364694834,
0.03866349160671234,
0.013994704000651836,
0.0017851802986115217,
0.029265858232975006,
0.013189985416829586,
-0.0747370794415474,
-0.007552330382168293,
-0.009388383477926254,
-0.04399128258228302,
0.0024395922664552927,
0.021884646266698837,
0.006211132742464542,
-0.054535869508981705,
-0.03944046050310135,
0.054720863699913025,
0.025935987010598183,
0.057125769555568695,
-0.06385950744152069,
0.03792351856827736,
0.007163845468312502,
0.014817921444773674,
-0.021144675090909004,
-0.022384125739336014,
0.015890879556536674,
-0.016593853011727333,
0.08465269207954407,
0.04343630373477936,
0.009952611289918423,
0.0646364763379097,
-0.03969945013523102,
0.03603659197688103,
-0.03694305941462517,
0.08524467051029205,
-0.009998859837651253,
0.06593142449855804,
-0.019294746220111847,
-0.05050303041934967,
0.00596601702272892,
0.01496591605246067,
0.040217429399490356,
-0.062379565089941025,
0.04684017226099968,
0.021866146475076675,
0.011700793169438839,
0.0010926135582849383,
0.018036795780062675,
0.0017689934466034174,
0.014207445085048676,
0.0027702669613063335,
-0.021440662443637848,
0.05342591553926468,
0.02367907576262951,
0.001661466434597969,
-0.061861585825681686,
-0.02787841111421585,
0.07233217358589172,
-0.02440054714679718,
-0.06604242324829102,
-0.03242923319339752,
-0.02787841111421585,
-0.02663896046578884,
-0.0021193234715610743,
-0.012126276269555092,
-0.01060008630156517,
0.08265477418899536,
-0.007001976482570171,
0.026157978922128677,
-0.015474646352231503,
-0.05564582720398903,
0.006285129580646753,
-0.05967867001891136,
-0.024604039266705513,
0.005369415506720543,
0.018850764259696007,
0.007126846816390753,
0.03888548165559769,
-0.02884037420153618,
-0.06600542366504669,
0.004264083690941334,
0.02832239493727684,
-0.006021515000611544,
0.005295418202877045,
-0.018749017268419266,
0.003031569067388773,
-0.000921495258808136,
0.023827070370316505,
-0.002069606678560376,
0.026139479130506516,
0.027804413810372353,
-0.03128227964043617,
0.07851093262434006,
-0.01594637706875801,
-0.03448265418410301,
0.04495324566960335,
0.028433389961719513,
-0.007538455538451672,
-0.029228858649730682,
-0.005489660892635584,
-0.0646364763379097,
0.023309089243412018,
-0.027804413810372353,
0.025954486802220345,
-0.008061060681939125,
0.03394617512822151,
0.0514649897813797,
0.02262461744248867,
0.009638124145567417,
0.06345251947641373,
-0.00761707779020071,
-0.04347330331802368,
0.020071716979146004,
0.00409759022295475,
-0.043140314519405365,
-0.03616608679294586,
0.026916449889540672,
-0.04650718346238136,
0.040661413222551346,
0.03363168612122536,
0.016788095235824585,
0.040476419031620026,
0.02173665165901184,
-0.017232077196240425,
0.09271837770938873,
0.02813740074634552,
-0.01949823834002018,
-0.006835483014583588,
0.07599503546953201,
-0.02521451562643051,
0.014790172688663006,
0.027286434546113014,
0.034778643399477005,
-0.014614429324865341,
0.018730519339442253,
-0.008264552801847458,
0.05261194705963135,
-0.0034732394851744175,
0.03242923319339752,
0.0049901800230145454,
-0.0006971915136091411,
-0.01193203404545784,
0.0003144877264276147,
-0.035389117896556854,
-0.04669217765331268,
0.03198525309562683,
-0.014558931812644005,
-0.0028650755994021893,
-0.062305569648742676,
-0.01384670939296484,
-0.020108714699745178,
0.012930994853377342,
-0.01085907593369484,
-0.03072730079293251,
-0.0068216086365282536,
0.02440054714679718,
0.002404906088486314,
0.015252654440701008,
-0.017796305939555168,
0.02484453096985817,
-0.0057301511988043785,
-0.02689795009791851,
-0.02029370702803135,
0.04950406774878502,
-0.022143635898828506,
-0.03572210669517517,
0.022495122626423836,
0.01612212136387825,
0.04406528174877167,
-0.03910747170448303,
-0.009989609941840172,
0.04950406774878502,
-0.015345150604844093,
0.01683434285223484,
-0.07436709851026535,
-0.008569790050387383,
0.05664478987455368,
0.035944096744060516,
-0.033002711832523346,
-0.02982083521783352,
-0.021755151450634003,
-0.02743442915380001,
-0.017676059156656265,
-0.0334651954472065,
-0.042326346039772034,
0.01006360724568367,
-0.04399128258228302,
0.004185461439192295,
0.03962545469403267,
0.0013400414027273655,
-0.040217429399490356,
-0.03429765999317169,
-0.03163376450538635,
0.03320620208978653,
0.013606218621134758,
-0.04014343395829201,
0.020774688571691513,
-0.04373229295015335,
0.04928207769989967,
-0.005452662240713835,
0.053388915956020355,
-0.022495122626423836,
0.004879184532910585,
-0.01438318844884634,
0.009628874249756336,
-0.018924761563539505,
0.07088923454284668,
-0.01586312986910343,
0.024641038849949837,
-0.012930994853377342,
-0.03342819586396217,
-0.024881528690457344,
-0.10011809319257736,
-0.047247156500816345,
-0.017972048372030258,
0.006317503284662962,
0.009924862533807755,
-0.04062441363930702,
-0.05057702586054802,
-0.06226857006549835,
-0.02859988436102867,
0.057828743010759354,
-0.00015218547196127474,
-0.010757329873740673,
0.0003991797275375575,
0.03080129809677601,
0.025880489498376846,
0.019572235643863678,
-0.03642507642507553,
-0.016760345548391342,
0.023494083434343338,
0.009887863881886005,
0.02874787710607052,
-0.018453029915690422,
0.011950533837080002,
0.02084868587553501,
-0.004731190390884876,
0.023623578250408173,
0.018277285620570183,
-0.011811789125204086,
-0.018934011459350586,
-0.03550011292099953,
0.045915208756923676,
-0.0427333302795887,
-0.004481450188905001,
-0.01193203404545784,
0.032984212040901184,
0.013883708044886589,
-0.06866931915283203,
-0.03248473256826401,
0.00815355684608221,
0.02858138456940651,
-0.009087770245969296,
-0.028026405721902847,
0.09368034452199936,
0.0007365025230683386,
-0.027119942009449005,
-0.029617343097925186,
0.054461874067783356,
0.025270013138651848,
-0.02305009961128235,
-0.027822913601994514,
0.05127999931573868,
0.01495666615664959,
0.0557568222284317,
-0.04391728714108467,
-0.03944046050310135,
-0.07018625736236572,
-0.014179696328938007,
-0.030690301209688187,
0.006423874292522669,
0.005327791906893253,
0.015197156928479671,
0.011469552293419838,
-0.057828743010759354,
-0.014512683264911175,
0.010544588789343834,
-0.05335191637277603,
-0.014725425280630589,
-0.05094701051712036,
0.023457083851099014,
0.016455108299851418,
-0.06308253854513168,
0.057569753378629684,
0.05634880065917969,
0.020534198731184006,
0.011969032697379589,
-0.029432350769639015,
0.024826031178236008,
-0.013476723805069923,
0.0747370794415474,
-0.00761707779020071,
-0.035481613129377365,
0.007339588366448879,
0.022051138803362846,
-0.03944046050310135,
-0.0011515800142660737,
0.018453029915690422,
-0.005887395236641169,
-0.061676591634750366,
0.0019447365775704384,
0.03892248123884201,
-0.01931324601173401,
-0.01602962426841259,
-0.010165353305637836,
-0.0416603721678257,
0.027730418369174004,
0.01167304441332817,
0.05109500512480736,
0.010785078629851341,
0.028655381873250008,
0.015631889924407005,
0.0034940510522574186,
0.0334651954472065,
-0.038589492440223694,
-0.033002711832523346,
-0.01527115423232317,
-0.03178175911307335,
0.01843453012406826,
0.04754314571619034,
-0.0480981208384037,
0.009180266410112381,
-0.012329768389463425,
-0.047062162309885025,
0.01612212136387825,
-0.07569904625415802,
-0.039403460919857025,
-0.003924159333109856,
0.010544588789343834,
-0.020793188363313675,
0.01167304441332817,
0.023457083851099014,
0.013097488321363926,
0.03840450197458267,
-0.015557892620563507,
0.024641038849949837,
-0.03348369151353836,
-0.004860685206949711,
0.01798129826784134,
-0.01951673813164234,
-0.035759102553129196,
-0.0032535605132579803,
0.07495907694101334,
-0.030412813648581505,
0.006974227726459503,
0.05057702586054802,
-0.0053786649368703365,
-0.022846607491374016,
-0.012487012892961502,
-0.006100136786699295,
-0.051612984389066696,
0.09530828148126602,
0.04954106733202934,
-0.030616305768489838,
-0.002756392350420356,
-0.006900230422616005,
0.009161767549812794,
-0.010970071889460087,
-0.04406528174877167,
-0.017972048372030258,
-0.03189275413751602,
0.07821494340896606,
0.02521451562643051,
-0.005979891400784254,
0.009282012470066547,
0.03365018591284752,
0.02057119645178318,
-0.034242164343595505,
0.06482146680355072,
0.0012856997782364488,
0.00462944433093071,
0.015724387019872665,
0.019109753891825676,
-0.016334861516952515,
0.05190897360444069,
-0.05190897360444069,
-0.064488485455513,
0.01189503539353609,
0.01389295794069767,
0.01063708495348692,
0.03320620208978653,
-0.00975836906582117,
-0.0030385064892470837,
-0.030079826712608337,
0.08346874266862869,
-0.0874645859003067,
-0.03363168612122536,
0.0020857935305684805,
-0.005771774798631668,
-0.03128227964043617,
0.06596842408180237,
-0.04006943479180336,
-0.045545220375061035,
-0.06511745601892471,
0.004592445679008961,
0.004534635692834854,
0.03418666496872902,
-0.03196675330400467,
0.03622158616781235,
0.020552698522806168,
-0.03564810752868652,
-0.014586680568754673,
-0.022569119930267334,
-0.060788627713918686,
0.03422366455197334,
0.0078020705841481686,
-0.022069638594985008,
0.06615341454744339,
0.01060008630156517,
0.0960482507944107,
0.07310914248228073,
-0.002067294204607606,
-0.012431514449417591,
-0.008986024186015129,
0.020959682762622833,
0.006969602778553963,
0.015511644072830677,
-0.006178759038448334,
0.024696536362171173,
-0.019738730043172836,
0.01922074891626835,
-0.00216094683855772,
-0.04443526640534401,
0.03366868570446968,
-0.029506348073482513,
-0.03701705485582352,
-0.018591774627566338,
-0.002040701685473323,
-0.00031853443942964077,
-0.022032640874385834,
0.04654418304562569,
-0.008958275429904461,
0.02342008613049984,
0.012561009265482426,
0.044472262263298035,
-0.02260611765086651,
-0.01773155853152275,
-0.05486885830760002,
0.04262233525514603,
-0.014438685961067677,
0.017435569316148758,
0.027637921273708344,
-0.0015076911076903343,
0.043769292533397675,
-0.007556954864412546,
0.02795240841805935,
-0.00474506476894021,
0.05412888526916504,
0.04328830912709236,
-0.006904855370521545,
-0.03723904490470886,
-0.0072933402843773365,
-0.0785849317908287,
0.01085907593369484,
0.074441097676754,
-0.01736157201230526,
0.007094473112374544,
-0.033354196697473526,
0.048320114612579346,
-0.07658701390028,
0.010202351957559586,
-0.0557568222284317,
-0.03524112328886986,
-0.03000582940876484,
-0.026065481826663017,
0.07355313003063202,
-0.1116616427898407,
-0.023438585922122,
-0.03089379332959652,
-0.028433389961719513,
0.01763906143605709,
-0.016621600836515427,
-0.027286434546113014,
0.0034593648742884398,
0.009147892706096172,
0.04299232363700867,
0.06781835108995438,
0.05527584254741669,
-0.03100479021668434,
0.04783913120627403,
-0.02181064896285534,
-0.05916069075465202,
0.04820911958813667,
0.02057119645178318,
0.025510504841804504,
-0.03117128275334835,
0.040994398295879364,
0.021625656634569168,
-0.01611287146806717,
0.008616038598120213,
0.021699652075767517,
0.015021413564682007,
-0.0036119839642196894,
-0.036369580775499344,
0.0612696073949337,
-0.06082562729716301,
0.035481613129377365,
-0.020238209515810013,
-0.004194711335003376,
-0.011469552293419838,
0.015354400500655174,
0.017592813819646835,
-0.04373229295015335,
0.007284090854227543,
-0.04539722949266434,
0.02138516493141651,
-0.0075245811603963375,
-0.019128253683447838,
0.034057170152664185,
0.002624585060402751,
0.09242239594459534,
-0.056681785732507706,
0.005286168772727251,
0.06319352984428406,
0.008093434385955334,
0.02057119645178318,
-0.05956767499446869,
-0.039588455110788345,
0.025492005050182343,
0.022735612466931343,
0.022920604795217514,
-0.011164314113557339,
0.06348951905965805,
-0.06733737140893936,
0.02118167281150818,
0.006594992708414793,
0.024826031178236008,
0.014105699025094509,
0.001604812336154282,
0.11343757063150406,
-0.012801500037312508,
-0.0536109060049057,
0.027027444913983345,
0.03981044515967369,
0.011367806233465672,
0.014864169992506504,
0.024363549426198006,
0.008500418625772,
-0.024789031594991684,
-0.01655685342848301,
-0.0053647905588150024,
-0.03821950778365135,
-0.045804213732481,
-0.0062157572247087955,
-0.02173665165901184,
-0.06792934983968735,
-0.03892248123884201,
0.052130963653326035,
0.002322815591469407,
0.027304934337735176,
-0.02982083521783352,
-0.0480981208384037,
0.09249638766050339,
-0.0012487012427300215,
0.008435670286417007,
0.04835711419582367,
0.019109753891825676,
0.057828743010759354,
-0.04994805157184601,
-0.001034803339280188,
-0.051169004291296005,
-0.015742884948849678,
0.06929829716682434,
0.006798484828323126,
0.047321151942014694,
-0.012348268181085587,
0.0024604040663689375,
0.05091001093387604,
-0.10840576887130737,
-0.03738703951239586,
0.060603633522987366,
-0.020367704331874847,
0.0503920316696167,
0.0021262606605887413,
-0.010840577073395252,
0.05235295742750168,
0.05501685291528702,
-0.013929956592619419,
-0.0009978048037737608,
0.025769494473934174,
0.010304098017513752,
0.008061060681939125,
-0.03810851275920868,
-0.045915208756923676,
-0.08783457428216934,
0.02848888747394085,
-0.0015180970076471567,
-0.016344111412763596,
0.018194040283560753,
0.044842250645160675,
-0.04221535101532936,
-0.011719292961061,
0.03426066413521767,
-0.033964674919843674,
-0.000981039833277464,
0.009961861185729504,
0.00046537246089428663,
-0.06208357587456703,
0.005822647828608751,
0.07621702551841736,
0.04055041819810867,
-0.031911253929138184,
-0.038589492440223694,
-0.05046603083610535,
0.007395086344331503,
-0.0008700441685505211,
0.034945134073495865,
-0.011460302397608757,
-0.0064793722704052925,
0.013939205557107925,
-0.040032438933849335,
0.022310128435492516,
-0.059271685779094696,
0.07088923454284668,
-0.0000036357223507366143,
-0.025695497170090675,
-0.01842528022825718,
0.03635108098387718,
0.02893287129700184,
-0.0015516269486397505,
0.00810730829834938,
0.0045901332050561905,
-0.03792351856827736,
0.0004986133426427841,
0.010424342937767506,
-0.005337041802704334,
-0.015909379348158836,
-0.002314722165465355,
-0.018998758867383003,
0.020071716979146004,
-0.013236233033239841,
-0.0017134955851361156,
-0.043954282999038696,
0.018860014155507088,
-0.04347330331802368,
-0.01255176030099392,
-0.06974227726459503,
0.02902536652982235,
0.03217024356126785,
-0.03977344557642937,
-0.004763564094901085,
0.02761942148208618,
-0.016362611204385757,
-0.04103139787912369,
-0.00017776650201994926,
0.01727832481265068,
-0.07037125527858734,
0.012838498689234257,
-0.07085223495960236,
-0.02171815186738968,
0.07421910017728806,
-0.047321151942014694,
-0.023401586338877678,
0.016871340572834015,
-0.05416588485240936,
0.003850162262097001,
0.017787056043744087,
-0.005096551030874252,
-0.05638580024242401,
0.032003749161958694,
-0.01036884542554617,
0.06101061776280403,
-0.010257849469780922,
-0.021403664723038673,
-0.02858138456940651,
0.0004535213520284742,
0.02636147104203701,
-0.006932604592293501,
0.0753660574555397,
-0.043251313269138336,
-0.04928207769989967,
0.00007320222357520834
] |
723,055
|
isort.api
|
find_imports_in_file
|
Finds and returns all imports within the provided source file.
- **filename**: The name or Path of the file to look for imports in.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **unique**: If True, only the first instance of an import is returned.
- **top_only**: If True, only return imports that occur before the first function or class.
- ****config_kwargs**: Any config modifications.
|
def find_imports_in_file(
filename: Union[str, Path],
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
unique: Union[bool, ImportKey] = False,
top_only: bool = False,
**config_kwargs: Any,
) -> Iterator[identify.Import]:
"""Finds and returns all imports within the provided source file.
- **filename**: The name or Path of the file to look for imports in.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **unique**: If True, only the first instance of an import is returned.
- **top_only**: If True, only return imports that occur before the first function or class.
- ****config_kwargs**: Any config modifications.
"""
with io.File.read(filename) as source_file:
yield from find_imports_in_stream(
input_stream=source_file.stream,
config=config,
file_path=file_path or source_file.path,
unique=unique,
top_only=top_only,
**config_kwargs,
)
|
(filename: Union[str, pathlib.Path], config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, unique: Union[bool, isort.api.ImportKey] = False, top_only: bool = False, **config_kwargs: Any) -> Iterator[isort.identify.Import]
|
[
-0.031338099390268326,
-0.062178466469049454,
-0.017545124515891075,
0.024312391877174377,
0.029366306960582733,
0.00783931091427803,
0.019516916945576668,
-0.03252500295639038,
0.05264494568109512,
-0.033807627856731415,
-0.016578372567892075,
-0.01820557937026024,
-0.030227771028876305,
0.01635822094976902,
-0.0493905283510685,
0.004237918183207512,
0.07864197343587875,
0.05674167722463608,
-0.050845444202423096,
-0.01757383905351162,
0.011438311077654362,
0.0382489450275898,
-0.03432450443506241,
0.06060868874192238,
0.04529379680752754,
0.049926552921533585,
-0.020541099831461906,
0.013352672569453716,
0.019737068563699722,
-0.07075480371713638,
0.027662524953484535,
0.022091733291745186,
-0.019449913874268532,
-0.007571300026029348,
-0.036085717380046844,
-0.07477496564388275,
0.029825754463672638,
0.024331536144018173,
-0.0013915016315877438,
-0.04200109466910362,
-0.01526703406125307,
0.07328176498413086,
0.09472261369228363,
0.021287702023983,
-0.02536529116332531,
0.013716401532292366,
-0.002881114138290286,
-0.03740662708878517,
-0.012156195938587189,
0.0023630401119589806,
0.031089233234524727,
0.04613611474633217,
-0.01969878189265728,
-0.007858454249799252,
0.012864510528743267,
0.008289186283946037,
0.012912369333207607,
0.020196516066789627,
0.010117401368916035,
-0.006953918840736151,
0.014405570924282074,
0.018856462091207504,
0.018990468233823776,
-0.03491795435547829,
-0.011103297583758831,
-0.03924441337585449,
-0.02381465956568718,
-0.014922449365258217,
-0.06424597650766373,
-0.003249628935009241,
-0.034592512995004654,
0.015764767304062843,
0.07144397497177124,
-0.053219255059957504,
0.0018665025709196925,
-0.0019358982099220157,
0.014769299887120724,
-0.030227771028876305,
0.03784693032503128,
-0.06118299812078476,
0.013658970594406128,
0.017095249146223068,
-0.020923972129821777,
0.05593764781951904,
0.011390451341867447,
-0.006757696624845266,
0.046289265155792236,
0.016721948981285095,
0.045906390994787216,
0.08354274183511734,
-0.022972339764237404,
0.04636583849787712,
-0.028351696208119392,
0.04805047810077667,
0.028160259127616882,
-0.009045358747243881,
0.011725464835762978,
0.0018940215231850743,
0.006853414699435234,
0.0020770824048668146,
-0.042919985949993134,
-0.024484684690833092,
0.009404301643371582,
-0.028543131425976753,
-0.023604078218340874,
-0.01253906823694706,
0.004828977398574352,
0.008025960996747017,
0.04046960547566414,
-0.004568145610392094,
-0.06282934546470642,
-0.03160611167550087,
0.0658157542347908,
0.02027308940887451,
0.06949132680892944,
-0.05735427513718605,
0.04916080832481384,
0.044451478868722916,
-0.0013986804988235235,
-0.021613143384456635,
-0.0006784019060432911,
-0.005092201754450798,
0.0025891740806400776,
0.08124550431966782,
0.03411392495036125,
-0.04563838243484497,
0.029844898730516434,
-0.04831848666071892,
0.06007266789674759,
-0.010146116837859154,
0.03495624288916588,
-0.05199406296014786,
0.04981169104576111,
-0.04027817025780678,
-0.02827512100338936,
-0.007590443827211857,
0.035358257591724396,
0.02293405309319496,
-0.04705500975251198,
0.08553367853164673,
0.04805047810077667,
0.007475581951439381,
-0.017028246074914932,
0.008289186283946037,
-0.014874589629471302,
-0.029883185401558876,
-0.000510297017171979,
-0.032410141080617905,
0.020541099831461906,
0.0735497772693634,
0.026054462417960167,
-0.047361306846141815,
-0.027069073170423508,
0.06746210157871246,
-0.01829172484576702,
-0.06168073043227196,
0.0044532837346196175,
0.00999296735972166,
-0.012998515740036964,
-0.010481130331754684,
-0.03935927525162697,
0.03650687634944916,
0.04774417728185654,
0.015046882443130016,
0.0061977459117770195,
-0.0033070596400648355,
-0.06516487151384354,
0.012098765932023525,
-0.04621268808841705,
-0.051381465047597885,
0.009595737792551517,
0.009045358747243881,
0.019038327038288116,
0.05053914710879326,
-0.009385158307850361,
-0.07688076049089432,
0.000489059544634074,
0.06975933909416199,
0.028236834332346916,
0.02764338254928589,
0.0013699650298804045,
-0.05509532615542412,
0.03198898211121559,
-0.011735036969184875,
0.01079699955880642,
0.033367324620485306,
0.03924441337585449,
-0.01655922830104828,
0.044260039925575256,
0.000801040674559772,
0.01072042528539896,
0.04609782621264458,
0.039474137127399445,
-0.005800515878945589,
-0.016674090176820755,
-0.035013675689697266,
-0.06673464924097061,
0.04594467952847481,
-0.036085717380046844,
0.030553212389349937,
-0.05547820031642914,
-0.004673435352742672,
0.0034721733536571264,
0.004123056307435036,
-0.011782895773649216,
0.050654008984565735,
0.010442842729389668,
-0.0609915629029274,
0.03958899900317192,
-0.008097750134766102,
-0.06397796422243118,
-0.04437490180134773,
0.00912193302065134,
-0.02685849368572235,
0.03442022204399109,
0.02100054733455181,
-0.03210384398698807,
0.05187920108437538,
0.022474605590105057,
0.001159983454272151,
0.0924253761768341,
0.018502304330468178,
-0.041311923414468765,
0.00783931091427803,
0.07282231748104095,
-0.0046590776182711124,
0.016300790011882782,
0.0551719032227993,
0.03604742884635925,
-0.007475581951439381,
0.04831848666071892,
-0.010146116837859154,
0.03981872275471687,
-0.0087151313200593,
0.03254414722323418,
0.009093217551708221,
0.001103749149478972,
0.003730612341314554,
0.041847944259643555,
0.0032065557315945625,
-0.02086654119193554,
0.038746681064367294,
-0.01521917525678873,
-0.025192998349666595,
-0.05367869883775711,
-0.035645414143800735,
-0.03757891803979874,
0.012472066096961498,
-0.013027231208980083,
-0.009035786613821983,
0.0019179510418325663,
0.03512853756546974,
-0.00539849977940321,
0.019134044647216797,
-0.03397991880774498,
-0.004048875067383051,
-0.0074564386159181595,
-0.013678113929927349,
-0.010375839658081532,
0.01752598024904728,
-0.0167028047144413,
0.0012299773516133428,
0.021670574322342873,
0.0009063305915333331,
0.03658344969153404,
-0.012625214643776417,
-0.020923972129821777,
0.023699797689914703,
-0.011897757649421692,
0.02682020701467991,
-0.022187450900673866,
0.022149164229631424,
0.04701672121882439,
0.02071339264512062,
-0.04674871265888214,
-0.029021723195910454,
-0.038019221276044846,
0.006676336284726858,
-0.008504551835358143,
0.0044484976679086685,
-0.03981872275471687,
0.025422722101211548,
-0.044604625552892685,
0.02488670125603676,
0.04950539022684097,
-0.0037377909757196903,
-0.05387013778090477,
-0.019813643768429756,
-0.05789029598236084,
0.0263799037784338,
0.031778402626514435,
-0.025422722101211548,
0.018655454739928246,
-0.05731598660349846,
0.01684638299047947,
0.0068055554293096066,
0.03491795435547829,
-0.02682020701467991,
0.006102027837187052,
0.009279867634177208,
0.001186904264613986,
-0.024427253752946854,
0.022761760279536247,
-0.010739568620920181,
-0.004797868896275759,
-0.032065555453300476,
-0.023202063515782356,
-0.04054617881774902,
-0.0614892952144146,
-0.024810126051306725,
-0.013534536585211754,
0.01454914826899767,
0.022187450900673866,
-0.023699797689914703,
-0.0372726209461689,
-0.06734724342823029,
-0.04157993569970131,
0.007619159296154976,
0.02860056236386299,
-0.025441866368055344,
-0.018569307401776314,
0.0711759626865387,
0.00025799014838412404,
-0.0023821836803108454,
-0.03711947053670883,
0.0022984305396676064,
0.024790983647108078,
-0.0013221059925854206,
0.008413619361817837,
0.021555712446570396,
0.00861462764441967,
0.013055946677923203,
-0.021517423912882805,
0.030802078545093536,
-0.03549226373434067,
0.009701027534902096,
0.00577180041000247,
0.01187861431390047,
0.07879512757062912,
-0.019679637625813484,
0.023489216342568398,
-0.017391975969076157,
0.002325949491932988,
-0.022436318919062614,
-0.08492108434438705,
-0.05968979746103287,
0.0003957344451919198,
0.00984939094632864,
0.001047514728270471,
-0.032448429614305496,
0.08093921095132828,
0.017076104879379272,
0.0029720463789999485,
-0.03528168424963951,
0.0348605252802372,
0.020560244098305702,
-0.040584467351436615,
-0.02013908512890339,
0.03958899900317192,
0.009964251890778542,
0.02695421129465103,
-0.02304891310632229,
-0.042919985949993134,
-0.09525863826274872,
-0.002272107871249318,
-0.010883145965635777,
0.026973355561494827,
-0.010126972571015358,
-0.07048679888248444,
-0.0019239333923906088,
-0.06229332834482193,
-0.015745624899864197,
0.0029600816778838634,
-0.020655961707234383,
0.00709270965307951,
-0.03901468962430954,
-0.0013747509801760316,
-0.018186435103416443,
-0.054712455719709396,
0.04234568029642105,
0.06818956136703491,
0.04345601052045822,
-0.012108337134122849,
0.012357204221189022,
0.009839818812906742,
-0.0030414420180022717,
0.07622987776994705,
-0.023010626435279846,
-0.03355875983834267,
0.012041334994137287,
0.05475074425339699,
-0.06252305209636688,
-0.018320441246032715,
0.0343819335103035,
-0.004192451946437359,
-0.06964447349309921,
0.041311923414468765,
0.028007110580801964,
-0.0034841380547732115,
-0.016099780797958374,
-0.012146624736487865,
-0.02124941349029541,
0.027030786499381065,
0.002651390852406621,
0.009160220623016357,
0.0372726209461689,
0.0358177050948143,
0.015161744318902493,
0.005412857513874769,
0.040010157972574234,
-0.020349664613604546,
-0.03059149906039238,
-0.018454445526003838,
-0.04360915720462799,
0.02008165419101715,
0.04272855073213577,
-0.05187920108437538,
0.010864002630114555,
0.005680867936462164,
-0.06282934546470642,
0.0025125995744019747,
-0.06623691320419312,
-0.04521722346544266,
-0.008490193635225296,
0.016300790011882782,
-0.008260470815002918,
-0.00912671908736229,
0.013917408883571625,
0.017439834773540497,
0.06259962171316147,
-0.10146116465330124,
0.005953664891421795,
0.00006442275480367243,
-0.009657954797148705,
0.025920456275343895,
-0.042575404047966,
-0.025327004492282867,
-0.009595737792551517,
0.05543991178274155,
0.0006407129112631083,
-0.005293210037052631,
0.053946711122989655,
-0.0010074328165501356,
-0.017344117164611816,
-0.0556696355342865,
-0.0054894317872822285,
-0.0619487427175045,
0.07175027579069138,
0.0338842011988163,
-0.044030316174030304,
-0.045676667243242264,
-0.011141584254801273,
0.08453820645809174,
-0.026877637952566147,
-0.05490389093756676,
-0.028830286115407944,
-0.0609915629029274,
0.06007266789674759,
0.03468823432922363,
-0.003134767059236765,
0.0024599547032266855,
0.012845366261899471,
0.006015881430357695,
-0.07561728358268738,
0.058502890169620514,
-0.030266057699918747,
-0.0034434578847140074,
0.01592748798429966,
-0.008753418922424316,
-0.021708860993385315,
0.06133614480495453,
-0.059077199548482895,
-0.07397093623876572,
0.00014589529018849134,
-0.0036995038390159607,
-0.003934013191610575,
0.04372401908040047,
0.014261994510889053,
0.022780902683734894,
-0.010280122049152851,
0.05141975358128548,
-0.09518206119537354,
-0.0459829680621624,
-0.013706829398870468,
0.05501875281333923,
-0.006628477014601231,
0.06328879296779633,
-0.028868572786450386,
-0.05655024200677872,
-0.06864900887012482,
-0.01601363532245159,
0.007714877370744944,
0.022321457043290138,
0.007882383652031422,
0.02270432934165001,
0.012194483540952206,
0.0072219292633235455,
0.025786451995372772,
0.020579388365149498,
-0.037540633231401443,
0.03694717958569527,
-0.01564033515751362,
0.00434320792555809,
0.09464603662490845,
-0.014577863737940788,
0.07251601666212082,
0.04873964563012123,
-0.011428738944232464,
0.012682645581662655,
-0.03252500295639038,
0.04586810618638992,
0.007001777645200491,
0.02289576455950737,
0.04345601052045822,
0.04965854063630104,
-0.04069932922720909,
0.028830286115407944,
0.005455930717289448,
-0.012787935324013233,
0.01955520361661911,
-0.03711947053670883,
-0.04640412703156471,
-0.0021572462283074856,
0.012328488752245903,
-0.006346108857542276,
-0.021842867136001587,
0.04728473350405693,
-0.01597534865140915,
0.024656977504491806,
0.012098765932023525,
0.06547116488218307,
-0.027317941188812256,
-0.0469401478767395,
-0.0532575398683548,
0.0174302626401186,
-0.02618846669793129,
0.010691709816455841,
0.031146664172410965,
-0.007073566317558289,
0.01328566949814558,
0.015994491055607796,
-0.0023905590642243624,
-0.0020651177037507296,
0.038210656493902206,
0.01800457201898098,
-0.03432450443506241,
-0.03698546811938286,
-0.014223706908524036,
-0.049352243542671204,
-0.030476637184619904,
0.07481325417757034,
-0.038746681064367294,
0.0038047938141971827,
-0.0215365681797266,
0.045523520559072495,
-0.08698859065771103,
0.003960335627198219,
-0.03644944727420807,
-0.05555477365851402,
-0.023106344044208527,
0.011782895773649216,
0.06516487151384354,
-0.05869432911276817,
-0.024178387597203255,
-0.04069932922720909,
-0.03204641491174698,
0.0004118868673685938,
0.01966049335896969,
-0.02245546132326126,
-0.009811103343963623,
-0.016913384199142456,
0.06057040020823479,
0.02191944047808647,
0.06864900887012482,
-0.026456477120518684,
0.06482028216123581,
0.009552664123475552,
-0.02318291924893856,
0.03911040723323822,
0.036717455834150314,
0.04288170114159584,
-0.051304891705513,
0.049199093133211136,
0.017123965546488762,
-0.014376855455338955,
0.040584467351436615,
0.02004336565732956,
0.04946710541844368,
0.014328996650874615,
-0.0038598317187279463,
0.056894827634096146,
-0.0522620715200901,
0.03135724365711212,
0.0033238104078918695,
-0.005044342949986458,
-0.025977887213230133,
0.011773323640227318,
0.016482653096318245,
-0.012759219855070114,
0.025824738666415215,
-0.05111345648765564,
0.011112869717180729,
-0.0034003849141299725,
-0.00197298894636333,
-0.012175340205430984,
-0.008920924738049507,
0.08162838220596313,
-0.06363338232040405,
-0.01611892506480217,
0.04410689324140549,
-0.0031993768643587828,
-0.012165768072009087,
-0.05666510388255119,
-0.041120488196611404,
0.03327160328626633,
0.03993358463048935,
0.004072804469615221,
0.009303797967731953,
0.02241717465221882,
-0.08989842236042023,
-0.015745624899864197,
0.02507813647389412,
0.014214134775102139,
0.02211087755858898,
0.02318291924893856,
0.07864197343587875,
-0.0072506447322666645,
-0.048816222697496414,
0.01360153965651989,
0.06845757365226746,
-0.0006610529962927103,
0.00034189302823506296,
-0.007509083487093449,
0.028638850897550583,
0.016147639602422714,
-0.022187450900673866,
-0.00624560471624136,
-0.024963276460766792,
-0.04854821041226387,
0.03367362171411514,
-0.009351656772196293,
-0.09556493163108826,
-0.002061528153717518,
0.06026410311460495,
-0.010519417002797127,
0.03604742884635925,
-0.022857477888464928,
-0.03166354075074196,
0.11187529563903809,
-0.00829875748604536,
0.04299656301736832,
0.046786997467279434,
-0.019909361377358437,
0.02613103576004505,
-0.03838295117020607,
-0.012921941466629505,
-0.06206360459327698,
-0.023393498733639717,
0.06286763399839401,
0.03761720657348633,
0.05096030607819557,
-0.023163774982094765,
0.00658061821013689,
0.04713158309459686,
-0.12596499919891357,
-0.04341772198677063,
0.02749023213982582,
-0.07297546416521072,
0.0033644905779510736,
0.046442411839962006,
-0.017056962475180626,
0.050462573766708374,
0.03648773208260536,
0.00709270965307951,
0.03267815336585045,
-0.007059208583086729,
-0.007777093909680843,
0.031625255942344666,
-0.029844898730516434,
-0.04311142489314079,
-0.04142678529024124,
0.05861775204539299,
0.002069903537631035,
-0.0208091102540493,
-0.02274261601269245,
0.020943116396665573,
-0.04475777596235275,
0.007513869553804398,
0.04667213559150696,
-0.014922449365258217,
0.0025389220099896193,
0.0508071593940258,
-0.008987927809357643,
-0.007399007678031921,
-0.017028246074914932,
0.03704289719462395,
0.038268089294433594,
-0.02362322248518467,
-0.026169324293732643,
-0.03355875983834267,
-0.0049390532076358795,
-0.02438896708190441,
0.019239334389567375,
0.009035786613821983,
-0.011514885351061821,
0.03237185627222061,
-0.045906390994787216,
0.03304188326001167,
-0.0377512127161026,
0.054138146340847015,
-0.0070448508486151695,
0.0019071827409788966,
-0.010758711956441402,
0.02682020701467991,
0.054865606129169464,
0.01311337761580944,
-0.0004758983268402517,
-0.008844350464642048,
-0.02672448754310608,
0.01033755298703909,
-0.015592475421726704,
-0.005475074052810669,
-0.04035474359989166,
0.010500273667275906,
-0.03015119582414627,
0.030821222811937332,
-0.008753418922424316,
0.006173816043883562,
-0.04207766801118851,
0.01333352830260992,
-0.019679637625813484,
-0.022876622155308723,
-0.048280201852321625,
0.016616659238934517,
0.04104391485452652,
-0.019909361377358437,
0.006724195089191198,
0.023144632577896118,
0.0019107721745967865,
-0.0692233145236969,
-0.01277836412191391,
-0.01800457201898098,
-0.07316689938306808,
0.003567891428247094,
-0.05601422116160393,
-0.016051921993494034,
0.08009689301252365,
-0.013792975805699825,
-0.05199406296014786,
0.013352672569453716,
-0.04586810618638992,
0.01244335062801838,
0.05333411321043968,
-0.0343819335103035,
-0.035511408001184464,
0.026456477120518684,
-0.013926981016993523,
0.044796060770750046,
-0.011610602959990501,
-0.04858649894595146,
-0.043149709701538086,
-0.03474566340446472,
-0.012615643441677094,
-0.0141567038372159,
0.050845444202423096,
-0.012567783705890179,
-0.03993358463048935,
0.022570323199033737
] |
723,056
|
isort.api
|
find_imports_in_paths
|
Finds and returns all imports within the provided source paths.
- **paths**: A collection of paths to recursively look for imports within.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **unique**: If True, only the first instance of an import is returned.
- **top_only**: If True, only return imports that occur before the first function or class.
- ****config_kwargs**: Any config modifications.
|
def find_imports_in_paths(
paths: Iterator[Union[str, Path]],
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
unique: Union[bool, ImportKey] = False,
top_only: bool = False,
**config_kwargs: Any,
) -> Iterator[identify.Import]:
"""Finds and returns all imports within the provided source paths.
- **paths**: A collection of paths to recursively look for imports within.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **unique**: If True, only the first instance of an import is returned.
- **top_only**: If True, only return imports that occur before the first function or class.
- ****config_kwargs**: Any config modifications.
"""
config = _config(config=config, **config_kwargs)
seen: Optional[Set[str]] = set() if unique else None
yield from chain(
*(
find_imports_in_file(
file_name, unique=unique, config=config, top_only=top_only, _seen=seen
)
for file_name in files.find(map(str, paths), config, [], [])
)
)
|
(paths: Iterator[Union[str, pathlib.Path]], config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, unique: Union[bool, isort.api.ImportKey] = False, top_only: bool = False, **config_kwargs: Any) -> Iterator[isort.identify.Import]
|
[
-0.04305588826537132,
-0.05264526233077049,
-0.01935204304754734,
0.03641265258193016,
-0.013190198689699173,
0.018475906923413277,
0.039243247359991074,
-0.010975785553455353,
0.028768112882971764,
-0.034602608531713486,
-0.013661964796483517,
-0.005213498137891293,
-0.01939055509865284,
-0.02231743186712265,
-0.06493043899536133,
-0.0067780292592942715,
0.08849949389696121,
0.052568238228559494,
-0.03793385624885559,
-0.030250806361436844,
0.008650652132928371,
0.05056563764810562,
-0.02528281882405281,
0.04632937163114548,
0.03365907818078995,
0.02757425419986248,
-0.006691378075629473,
0.02376161329448223,
0.01608819141983986,
-0.06550811231136322,
0.02822895161807537,
0.031579453498125076,
-0.027266163378953934,
-0.0046984064392745495,
-0.02688104659318924,
-0.06604727357625961,
0.02170124650001526,
0.038434505462646484,
0.043595049530267715,
-0.029422808438539505,
-0.00724016735330224,
0.07001396268606186,
0.10621479898691177,
0.0042892214842140675,
-0.010003369301557541,
0.016752514988183975,
-0.012766571715474129,
-0.016925817355513573,
-0.0001426130038453266,
0.0056611946783959866,
0.03595051169395447,
0.017445722594857216,
-0.020507389679551125,
-0.02691955864429474,
0.02909545972943306,
0.04706108942627907,
0.021085062995553017,
0.015337216667830944,
0.026264863088726997,
-0.03937803953886032,
0.022760313004255295,
0.0023395754396915436,
0.02150868996977806,
0.009748230688273907,
-0.027920858934521675,
-0.01737832836806774,
-0.03065517731010914,
-0.036162324249744415,
-0.07794733345508575,
-0.01225629448890686,
-0.04844750463962555,
0.006388099864125252,
0.031579453498125076,
-0.05595725402235985,
-0.010157415643334389,
0.006787657272070646,
0.022837337106466293,
-0.025610167533159256,
0.042131613940000534,
-0.030135272070765495,
-0.007033167872577906,
-0.019871948286890984,
-0.03804939240217209,
0.03814566880464554,
0.025821980088949203,
0.01038848515599966,
0.035295818001031876,
0.011572714895009995,
0.036932557821273804,
0.08618880063295364,
-0.048100899904966354,
0.034564096480607986,
-0.017108747735619545,
0.06462235003709793,
0.02224040776491165,
-0.00016051485727075487,
0.01447070762515068,
0.0035575025249272585,
0.054070185869932175,
0.018803253769874573,
-0.005112405400723219,
-0.04675299674272537,
0.012005968950688839,
-0.0297309011220932,
-0.0003622490621637553,
-0.02915322780609131,
-0.02079622633755207,
0.007466422859579325,
0.04690704122185707,
-0.024435564875602722,
-0.08002695441246033,
-0.027285419404506683,
0.056303855031728745,
0.0029244692996144295,
0.04686853289604187,
-0.03818418085575104,
0.03668223321437836,
0.012468107976019382,
0.022587012499570847,
-0.025764213874936104,
-0.028074905276298523,
-0.008352188393473625,
-0.01334424503147602,
0.07197804749011993,
0.04602127894759178,
-0.030732199549674988,
0.042747799307107925,
-0.027439463883638382,
0.04186203330755234,
-0.017599768936634064,
0.038395993411540985,
-0.03211861476302147,
0.050334569066762924,
-0.03048187494277954,
-0.04324844852089882,
0.03053964301943779,
-0.0027006210293620825,
-0.00251047033816576,
-0.02316468581557274,
0.06003947556018829,
0.009887835010886192,
-0.008525489829480648,
-0.015558658167719841,
0.024011937901377678,
0.012054109014570713,
-0.008616955019533634,
0.014345544390380383,
-0.00888653565198183,
0.04078371077775955,
0.07579068839550018,
-0.011832667514681816,
-0.02522505261003971,
-0.02172050252556801,
0.09412217885255814,
-0.028171183541417122,
-0.05272228270769119,
-0.02832522988319397,
0.05137437954545021,
-0.01380638312548399,
0.007447166834026575,
-0.01822558045387268,
0.012073364108800888,
0.05079670622944832,
0.012853222899138927,
-0.0014489962486550212,
0.025918258354067802,
-0.09281278401613235,
0.03431377187371254,
-0.04313291236758232,
0.0016006354708224535,
0.0006203966913744807,
-0.011861550621688366,
0.009189813397824764,
0.00008469527529086918,
-0.024204496294260025,
-0.07009098678827286,
0.027131373062729836,
0.050912242382764816,
0.025610167533159256,
0.03947431594133377,
0.01527944952249527,
-0.03506474569439888,
0.014855822548270226,
-0.010215182788670063,
0.0055552879348397255,
0.03598902374505997,
0.029403552412986755,
-0.019438695162534714,
0.04921773448586464,
0.007384585682302713,
-0.01161122601479292,
0.07941077649593353,
0.03803013637661934,
0.0186973474919796,
0.003697106847539544,
0.0026019352953881025,
-0.04629085958003998,
-0.007769701071083546,
-0.04644490405917168,
0.05129735544323921,
-0.025648677721619606,
-0.0055937995202839375,
0.011794155463576317,
-0.005386800039559603,
0.01306503638625145,
0.019063206389546394,
0.0034010494127869606,
-0.021373899653553963,
0.038280460983514786,
0.00453232554718852,
-0.0815674215555191,
-0.03808790072798729,
0.0002082029532175511,
-0.06585471332073212,
0.022144129499793053,
0.03252298757433891,
-0.024088962003588676,
0.05141289159655571,
0.013575314544141293,
0.0065132626332342625,
0.06550811231136322,
0.028845135122537613,
-0.019323159009218216,
-0.006537332199513912,
0.07247869670391083,
-0.019246136769652367,
0.008467722684144974,
0.02765127830207348,
0.02002599462866783,
-0.02834448590874672,
0.02767053432762623,
-0.0021939536090940237,
0.04421123489737511,
0.0003658595378510654,
0.042016077786684036,
-0.02018004097044468,
0.004505848977714777,
0.0006486785714514554,
0.044326771050691605,
0.025090262293815613,
-0.02073845826089382,
0.0519135408103466,
-0.02755500003695488,
-0.042901843786239624,
-0.056342367082834244,
-0.012728060595691204,
-0.038299717009067535,
-0.01410484779626131,
0.014509218744933605,
-0.015019496902823448,
0.002044721506536007,
0.0522601455450058,
0.02840225212275982,
0.018100418150424957,
-0.01812930218875408,
0.008973185904324055,
0.01646367833018303,
0.005203870590776205,
-0.027882346883416176,
0.018966928124427795,
-0.02096952684223652,
0.039050690829753876,
-0.010792856104671955,
-0.0011842295061796904,
0.015317960642278194,
-0.03365907818078995,
-0.014249266125261784,
-0.008573628962039948,
-0.02682328037917614,
0.010513647459447384,
0.02470514550805092,
0.04698406532406807,
0.029538342729210854,
0.04263226315379143,
-0.028594810515642166,
0.0030496318358927965,
-0.0674336850643158,
0.008987627923488617,
-0.054031677544116974,
-0.01909209042787552,
-0.048023875802755356,
0.03200308233499527,
-0.048832617700099945,
0.02620709501206875,
0.020295575261116028,
0.007524190004914999,
-0.050142012536525726,
0.004890964366495609,
-0.06435276567935944,
0.004332547076046467,
0.049641359597444534,
-0.02749723196029663,
0.030193038284778595,
-0.053954653441905975,
0.0016391469398513436,
0.0008713233401067555,
0.03130987286567688,
-0.04309440031647682,
-0.00858807098120451,
-0.005723775830119848,
-0.0027295046020299196,
-0.03215712681412697,
0.036836277693510056,
0.00784672424197197,
0.03441005200147629,
-0.055456601083278656,
-0.013161315582692623,
-0.026572955772280693,
-0.0445193275809288,
-0.02156645618379116,
-0.021277619525790215,
-0.0028089347761124372,
0.024993982166051865,
-0.02170124650001526,
-0.024435564875602722,
-0.05792133882641792,
-0.02901843748986721,
0.006619168911129236,
-0.006619168911129236,
-0.0008905791328288615,
-0.0037332114297896624,
0.05907668545842171,
-0.031637221574783325,
-0.004255523905158043,
-0.055495113134384155,
0.028594810515642166,
-0.004318105056881905,
0.021027294918894768,
0.0056611946783959866,
0.011707505211234093,
0.00593558931723237,
-0.020295575261116028,
-0.008217397145926952,
0.01565493643283844,
0.03570018708705902,
0.04632937163114548,
-0.0031459105666726828,
0.0017823617672547698,
0.07378809154033661,
-0.003754874225705862,
0.022914359346032143,
-0.007134260609745979,
-0.006628796923905611,
-0.006402541883289814,
-0.10721609741449356,
-0.05430125817656517,
0.02077697031199932,
0.021142829209566116,
-0.00007882828504079953,
0.004034082870930433,
0.06839647889137268,
-0.003930583130568266,
-0.019611995667219162,
-0.030019737780094147,
0.015491263009607792,
0.03729841485619545,
-0.06042458862066269,
0.020699946209788322,
0.04032156988978386,
0.00024400664551649243,
0.054801907390356064,
-0.011967457830905914,
-0.019737157970666885,
-0.09419920295476913,
0.0008051316835917532,
-0.0016620132373645902,
0.03419823944568634,
0.01489433366805315,
-0.055495113134384155,
-0.024146728217601776,
-0.042747799307107925,
-0.011630482040345669,
0.048139411956071854,
-0.0019255764782428741,
0.015549030154943466,
-0.027997881174087524,
-0.001381601090542972,
-0.010138160549104214,
-0.0373561829328537,
0.07340297847986221,
0.03061666525900364,
0.029384296387434006,
-0.003803013591095805,
0.01567419245839119,
0.05811389908194542,
-0.013324989005923271,
0.0890386551618576,
-0.020603667944669724,
-0.03774129971861839,
0.0009098348673433065,
0.04012901335954666,
-0.07648389786481857,
0.013122803531587124,
0.018177442252635956,
-0.005873008165508509,
-0.10097722709178925,
0.05530255660414696,
0.023992683738470078,
-0.0223366878926754,
-0.06288933008909225,
0.0033336542546749115,
-0.04987243190407753,
0.012506619095802307,
0.03335098549723625,
0.019120974466204643,
0.0167813990265131,
0.01852404512465,
0.02620709501206875,
-0.022124873474240303,
0.014682520180940628,
-0.04975689575076103,
-0.00786598026752472,
0.001294950139708817,
-0.020526645705103874,
0.009632696397602558,
0.05803687497973442,
-0.06331295520067215,
0.003908920101821423,
0.009213883429765701,
-0.05753622576594353,
0.010513647459447384,
-0.09104125201702118,
-0.030809223651885986,
-0.01493284571915865,
0.050180524587631226,
-0.019756413996219635,
-0.03286958858370781,
0.0019412217661738396,
0.0037404322065413,
0.0598469153046608,
-0.09812738001346588,
-0.010995041579008102,
-0.03675925359129906,
-0.019217252731323242,
0.03556539863348007,
-0.034660376608371735,
-0.03880036622285843,
-0.04074519872665405,
0.046483416110277176,
-0.029538342729210854,
-0.019101718440651894,
0.04374909773468971,
-0.01187117863446474,
-0.02455109916627407,
-0.035449862480163574,
-0.018668463453650475,
-0.07039907574653625,
0.07941077649593353,
0.029634620994329453,
-0.048717085272073746,
-0.02158571220934391,
-0.03774129971861839,
0.0746738538146019,
-0.052452702075242996,
-0.03146392107009888,
-0.003504549153149128,
-0.03793385624885559,
0.0595388226211071,
-0.00019255765073467046,
-0.001018750248476863,
0.01897655613720417,
0.0035575025249272585,
0.04771578311920166,
-0.06365955621004105,
0.03951282799243927,
-0.03554614260792732,
0.016550330445170403,
0.0003793987270910293,
0.009709719568490982,
-0.022837337106466293,
0.053145911544561386,
-0.07197804749011993,
-0.07679198682308197,
0.021162085235118866,
-0.012111876159906387,
-0.032465219497680664,
0.030847735702991486,
-0.004351802635937929,
0.012044481001794338,
-0.048717085272073746,
0.039031434804201126,
-0.08719009906053543,
0.0030544456094503403,
0.0010584653355181217,
0.026515187695622444,
-0.010629181750118732,
0.07321041822433472,
-0.018629953265190125,
-0.052452702075242996,
-0.061464399099349976,
0.027169883251190186,
0.010244066826999187,
0.008660280145704746,
0.008443652652204037,
0.024993982166051865,
0.000652289018034935,
-0.025783468037843704,
0.03419823944568634,
0.019756413996219635,
-0.07251720875501633,
0.03123285062611103,
-0.007211283780634403,
0.01043662428855896,
0.09581668674945831,
-0.0040461174212396145,
0.05356953665614128,
0.04563616216182709,
-0.024955470114946365,
-0.005810427013784647,
-0.043595049530267715,
0.027843834832310677,
0.027131373062729836,
0.00033396718208678067,
0.026996582746505737,
0.05287633091211319,
-0.056188322603702545,
0.03625860437750816,
-0.02312617376446724,
0.006879121996462345,
0.029904203489422798,
-0.025610167533159256,
-0.048139411956071854,
-0.017445722594857216,
0.0019424252677708864,
0.0030303760431706905,
-0.022741058841347694,
0.05888412892818451,
-0.00873730331659317,
0.027805324643850327,
0.029634620994329453,
0.05426274612545967,
0.023992683738470078,
-0.039243247359991074,
-0.014807683415710926,
0.040552642196416855,
-0.024743657559156418,
0.046675972640514374,
0.027400953695178032,
0.008140374906361103,
0.025494633242487907,
0.014239638112485409,
0.039859432727098465,
0.0018220767378807068,
0.05068117380142212,
0.05595725402235985,
-0.056265342980623245,
-0.03335098549723625,
-0.03650892898440361,
-0.02528281882405281,
0.010561786592006683,
0.06951331347227097,
-0.05530255660414696,
0.0039642807096242905,
0.03429451584815979,
0.03481442108750343,
-0.08518750220537186,
0.008366629481315613,
-0.04259375110268593,
-0.06951331347227097,
-0.021027294918894768,
-0.005112405400723219,
0.0598469153046608,
-0.05599576234817505,
-0.023588310927152634,
-0.011649738065898418,
-0.02820969559252262,
0.01830260455608368,
0.008318490348756313,
-0.00519424257799983,
-0.028787368908524513,
-0.022856593132019043,
0.0595003142952919,
0.015317960642278194,
0.05514850839972496,
-0.04036008194088936,
0.06319741904735565,
-0.007721561472862959,
-0.028806623071432114,
0.031637221574783325,
0.026977326720952988,
0.03820343688130379,
-0.015298704616725445,
0.05745920166373253,
0.03063592128455639,
0.005868194159120321,
-0.0010596688371151686,
0.037702787667512894,
0.03256149962544441,
-0.032272662967443466,
-0.022818081080913544,
0.06100226193666458,
-0.07386511564254761,
0.023453520610928535,
0.022028595209121704,
-0.006099263671785593,
-0.03435228392481804,
-0.0014345544623211026,
-0.007692677900195122,
0.015077264048159122,
-0.00317479413934052,
-0.05761324614286423,
0.021316131576895714,
-0.008020025677978992,
-0.0027559814043343067,
0.002187936333939433,
-0.030212294310331345,
0.09419920295476913,
-0.054724883288145065,
-0.004592499695718288,
0.047292158007621765,
-0.0025465749204158783,
0.018928416073322296,
-0.002703028032556176,
-0.024955470114946365,
0.000009138966561295092,
0.031021036207675934,
-0.01867809146642685,
0.021913060918450356,
0.017724931240081787,
-0.08719009906053543,
-0.05353102460503578,
-0.01755162887275219,
-0.017320560291409492,
0.03055889904499054,
0.009286092594265938,
0.09335194528102875,
0.013161315582692623,
-0.01297838520258665,
0.013507919386029243,
0.06812689453363419,
0.00745679484680295,
-0.008405141532421112,
-0.007167958188802004,
0.026649978011846542,
-0.008997255936264992,
-0.04344100505113602,
-0.0011499301763251424,
-0.021393153816461563,
-0.024397054687142372,
0.01339238416403532,
-0.017724931240081787,
-0.0739036276936531,
-0.03181052207946777,
0.04779280722141266,
0.005897077731788158,
0.03523804992437363,
-0.04405719041824341,
-0.022529244422912598,
0.10906465351581573,
0.021277619525790215,
0.03864631801843643,
0.03581572324037552,
-0.04902517795562744,
-0.0005259230965748429,
-0.04548211768269539,
0.030924757942557335,
-0.048023875802755356,
-0.0522216334939003,
0.06889712810516357,
0.05672748386859894,
0.022124873474240303,
-0.02081548236310482,
-0.008068165741860867,
0.04147691652178764,
-0.12885957956314087,
-0.03134838491678238,
0.025899004191160202,
-0.07498195022344589,
0.009560487233102322,
0.006985028740018606,
-0.016925817355513573,
0.01410484779626131,
0.03146392107009888,
0.00014065734285395592,
0.027786068618297577,
0.0038511529564857483,
-0.030193038284778595,
0.021162085235118866,
-0.05079670622944832,
-0.07220911979675293,
-0.04760025069117546,
0.05137437954545021,
0.015029123984277248,
0.010205555707216263,
-0.010898762382566929,
0.010513647459447384,
-0.036836277693510056,
0.006267751567065716,
0.056188322603702545,
-0.016280749812722206,
-0.010812112130224705,
0.010686949826776981,
0.020680692046880722,
-0.0048813363537192345,
-0.028671832755208015,
0.06381360441446304,
0.03864631801843643,
-0.05414720997214317,
-0.024262264370918274,
-0.0224907323718071,
0.0259567704051733,
-0.009189813397824764,
0.001576565788127482,
-0.009709719568490982,
0.005767101421952248,
0.008891349658370018,
-0.04636787995696068,
0.03803013637661934,
-0.020584411919116974,
0.0596928708255291,
-0.020680692046880722,
0.009570115245878696,
0.022664034739136696,
0.027843834832310677,
0.027766812592744827,
-0.014663265086710453,
0.017878977581858635,
-0.03880036622285843,
-0.016280749812722206,
0.027323929592967033,
0.004082222003489733,
-0.004255523905158043,
-0.027381697669625282,
-0.0050016846507787704,
-0.04409570246934891,
0.04240119457244873,
0.0042892214842140675,
-0.02520579658448696,
-0.026977326720952988,
0.03595051169395447,
-0.0447503961622715,
-0.013575314544141293,
-0.033947914838790894,
0.008838395588099957,
0.018822509795427322,
-0.023241708055138588,
0.016579212620854378,
0.024088962003588676,
-0.008665094152092934,
-0.040629662573337555,
-0.01650219038128853,
-0.01385452225804329,
-0.06512299925088882,
0.00004388960587675683,
-0.06970586627721786,
-0.011081692762672901,
0.05668897181749344,
-0.01968901976943016,
-0.05603427439928055,
0.024993982166051865,
-0.03182977810502052,
-0.00038090310408733785,
0.033023636788129807,
-0.02614932879805565,
-0.035353582352399826,
0.024820679798722267,
-0.02520579658448696,
0.03793385624885559,
-0.022471478208899498,
-0.03585423529148102,
-0.021200597286224365,
-0.004269965924322605,
-0.015963029116392136,
-0.011880806647241116,
0.08048909902572632,
-0.009671207517385483,
-0.04532806947827339,
0.0372406505048275
] |
723,057
|
isort.api
|
find_imports_in_stream
|
Finds and returns all imports within the provided code stream.
- **input_stream**: The stream of code with imports that need to be sorted.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **unique**: If True, only the first instance of an import is returned.
- **top_only**: If True, only return imports that occur before the first function or class.
- **_seen**: An optional set of imports already seen. Generally meant only for internal use.
- ****config_kwargs**: Any config modifications.
|
def find_imports_in_stream(
input_stream: TextIO,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
unique: Union[bool, ImportKey] = False,
top_only: bool = False,
_seen: Optional[Set[str]] = None,
**config_kwargs: Any,
) -> Iterator[identify.Import]:
"""Finds and returns all imports within the provided code stream.
- **input_stream**: The stream of code with imports that need to be sorted.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **unique**: If True, only the first instance of an import is returned.
- **top_only**: If True, only return imports that occur before the first function or class.
- **_seen**: An optional set of imports already seen. Generally meant only for internal use.
- ****config_kwargs**: Any config modifications.
"""
config = _config(config=config, **config_kwargs)
identified_imports = identify.imports(
input_stream, config=config, file_path=file_path, top_only=top_only
)
if not unique:
yield from identified_imports
seen: Set[str] = set() if _seen is None else _seen
for identified_import in identified_imports:
if unique in (True, ImportKey.ALIAS):
key = identified_import.statement()
elif unique == ImportKey.ATTRIBUTE:
key = f"{identified_import.module}.{identified_import.attribute}"
elif unique == ImportKey.MODULE:
key = identified_import.module
elif unique == ImportKey.PACKAGE: # pragma: no branch # type checking ensures this
key = identified_import.module.split(".")[0]
if key and key not in seen:
seen.add(key)
yield identified_import
|
(input_stream: <class 'TextIO'>, config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, unique: Union[bool, isort.api.ImportKey] = False, top_only: bool = False, _seen: Optional[Set[str]] = None, **config_kwargs: Any) -> Iterator[isort.identify.Import]
|
[
-0.03696225956082344,
-0.05137064680457115,
-0.030475690960884094,
0.002326450776308775,
0.007628242485225201,
-0.0001352824765490368,
0.022553876042366028,
-0.0028611733578145504,
0.042274538427591324,
-0.007246131543070078,
-0.02713920921087265,
-0.015955468639731407,
-0.038061995059251785,
0.005097921472042799,
-0.049991317093372345,
0.03379353508353233,
0.03166862204670906,
0.09230313450098038,
-0.07049483805894852,
-0.004569023847579956,
-0.027027372270822525,
0.04436216875910759,
-0.056366048753261566,
0.035993002355098724,
0.05051322653889656,
0.05144520476460457,
0.0132340919226408,
0.00834120623767376,
-0.0009313958580605686,
-0.06874272227287292,
0.03450183570384979,
0.00012603550567291677,
-0.023038504645228386,
-0.020261209458112717,
-0.008206069469451904,
-0.03744689002633095,
0.017055204138159752,
0.054874882102012634,
0.010167883709073067,
-0.01108122244477272,
0.028779489919543266,
0.05565774440765381,
0.0515943206846714,
-0.013187493197619915,
-0.03593708574771881,
0.030606167390942574,
-0.017614390701055527,
-0.011034623719751835,
-0.021193187683820724,
0.017027243971824646,
0.045368704944849014,
-0.010838908143341541,
-0.002227428136393428,
-0.007288070395588875,
0.03000970184803009,
-0.014343146234750748,
0.00311280763708055,
-0.002051517367362976,
0.001061872811987996,
0.011109181679785252,
0.029487794265151024,
0.04566693678498268,
0.024212796241044998,
-0.032134611159563065,
-0.010149244219064713,
-0.027157848700881004,
-0.00906348880380392,
-0.042498212307691574,
-0.09946072846651077,
0.00018493944662623107,
-0.042498212307691574,
0.015815671533346176,
0.0390312522649765,
-0.014865053817629814,
0.006808101665228605,
2.6393917096356745e-7,
0.0017253248952329159,
0.0036184058990329504,
0.03657082840800285,
-0.07027116417884827,
0.06083954498171806,
0.013112935237586498,
-0.00980441179126501,
0.013783959671854973,
-0.00016222248086705804,
-0.01478117611259222,
0.0847727507352829,
0.012777422554790974,
0.019702021032571793,
0.0758257582783699,
-0.059236541390419006,
0.05580686032772064,
-0.00897029135376215,
0.04044786095619202,
0.055284954607486725,
0.00988829042762518,
-0.006081158760935068,
-0.013373889029026031,
0.04451128467917442,
0.007786679081618786,
0.0034273501951247454,
0.00036551026278175414,
-0.02041032537817955,
-0.048015523701906204,
-0.01923603191971779,
-0.029860585927963257,
-0.0020387026015669107,
-0.013187493197619915,
0.03466959297657013,
-0.008136170916259289,
-0.04790368676185608,
0.013728040270507336,
0.01076434925198555,
0.0569625161588192,
0.06613317877054214,
-0.06937646865844727,
0.07783883064985275,
0.003732573240995407,
0.0060531990602612495,
-0.026617301627993584,
-0.05491216108202934,
0.05673883855342865,
-0.04615156725049019,
0.08246143907308578,
0.07597487419843674,
-0.037745121866464615,
0.04123071953654289,
-0.04387753829360008,
0.07694412767887115,
0.026356346905231476,
0.03647763282060623,
-0.04164079204201698,
0.029674189165234566,
-0.029897864907979965,
-0.03558293357491493,
0.0003028929641004652,
0.008662738837301731,
0.03862118348479271,
-0.07168777287006378,
0.0654994398355484,
0.030531609430909157,
-0.00038240235880948603,
-0.02044760435819626,
-0.007674841675907373,
-0.034091766923666,
0.01564791612327099,
0.011183739639818668,
-0.0318363793194294,
0.006458609830588102,
0.04000050947070122,
0.015992747619748116,
-0.04451128467917442,
-0.03921764716506004,
0.1161617785692215,
-0.0322837308049202,
-0.03315978869795799,
-0.039180368185043335,
-0.012609667144715786,
-0.04253549128770828,
-0.004864926915615797,
-0.007772698998451233,
0.012796062044799328,
0.06960014253854752,
-0.0003742475528270006,
-0.028108466416597366,
-0.017549151554703712,
-0.040075067430734634,
-0.007819297723472118,
-0.024212796241044998,
-0.04984220117330551,
-0.0197393000125885,
0.03877029940485954,
0.00986965000629425,
0.019124194979667664,
-0.01659853383898735,
-0.023877285420894623,
-0.013513686135411263,
0.060578592121601105,
0.038919415324926376,
0.005149180069565773,
-0.029357317835092545,
-0.04316923767328262,
-0.018015140667557716,
-0.026990091428160667,
0.019441068172454834,
0.04525686800479889,
0.008830494247376919,
-0.029991062358021736,
0.058155447244644165,
-0.029189560562372208,
-0.017726227641105652,
0.05051322653889656,
0.025815799832344055,
0.019981615245342255,
-0.0014305866789072752,
0.02911500260233879,
-0.11056990921497345,
0.007637562230229378,
-0.01588091067969799,
0.024455111473798752,
-0.039441321045160294,
0.018005821853876114,
0.012730823829770088,
0.0016612514154985547,
-0.03284291550517082,
0.05666428059339523,
-0.012441910803318024,
-0.039590440690517426,
-0.01602070778608322,
0.03416632488369942,
-0.058379121124744415,
-0.0412679985165596,
0.04186446592211723,
-0.03629123419523239,
0.012441910803318024,
0.01173360738903284,
-0.00029182570870034397,
0.02219972386956215,
0.041827186942100525,
-0.014771856367588043,
0.11653456836938858,
0.020932232961058617,
-0.025014298036694527,
0.0006168531253933907,
0.0390312522649765,
-0.004517764784395695,
0.03010289929807186,
0.03189229965209961,
0.010205162689089775,
-0.05886375159025192,
0.0637100413441658,
0.010885506868362427,
0.0461888462305069,
0.04111888259649277,
0.016113905236124992,
-0.0172695592045784,
-0.02538708969950676,
0.021379582583904266,
-0.014585460536181927,
-0.0249024610966444,
-0.07437186688184738,
0.02892860770225525,
0.008648758754134178,
-0.024548308923840523,
-0.06535031646490097,
-0.044921353459358215,
-0.03416632488369942,
-0.008122190833091736,
-0.026840975508093834,
-0.032768357545137405,
0.01049407571554184,
0.03491190820932388,
0.0013874827418476343,
-0.010997343808412552,
0.028723571449518204,
-0.006509868428111076,
-0.04152895510196686,
-0.037651922553777695,
-0.006649665534496307,
-0.02054080180823803,
-0.02605811320245266,
-0.01780078560113907,
0.022535236552357674,
0.04488407447934151,
0.02346721477806568,
0.003932948689907789,
0.0023357707541435957,
0.011873403564095497,
-0.008033652789890766,
0.016673091799020767,
-0.031016238033771515,
0.0014259268064051867,
0.02844397909939289,
0.03418496623635292,
-0.045331425964832306,
-0.04011234641075134,
-0.025648042559623718,
0.01592751033604145,
0.007246131543070078,
0.0025256613735109568,
-0.016514655202627182,
0.029804667457938194,
-0.044250331819057465,
0.002534981118515134,
0.0717996135354042,
0.02000025473535061,
-0.03204141557216644,
-0.030755285173654556,
-0.0439520962536335,
0.005456733051687479,
0.047605451196432114,
-0.038285668939352036,
-0.002644488587975502,
-0.06162240728735924,
-0.0034716192167252302,
0.019702021032571793,
-0.00030172799597494304,
-0.020074812695384026,
0.013644162565469742,
-0.004324379377067089,
-0.006374731659889221,
-0.013196812942624092,
0.03690634295344353,
-0.012684225104749203,
0.001331564038991928,
-0.027306964620947838,
-0.013178173452615738,
-0.042460933327674866,
-0.07064395397901535,
-0.031687263399362564,
0.022442037239670753,
0.026766417548060417,
0.01619778387248516,
-0.05975845083594322,
-0.055284954607486725,
-0.046487078070640564,
-0.06479113548994064,
0.055918700993061066,
-0.017288198694586754,
0.03329026699066162,
-0.02203196845948696,
0.05032682791352272,
0.02570396289229393,
-0.0041939024813473225,
-0.049767643213272095,
0.0065424880012869835,
0.03144494816660881,
0.009096108376979828,
-0.0000881010782904923,
0.04287100210785866,
-0.01771690882742405,
-0.005768945906311274,
-0.003254934214055538,
0.039590440690517426,
-0.023970482870936394,
0.045107752084732056,
0.0034390001092106104,
-0.017866024747490883,
0.06930191069841385,
-0.05099785327911377,
0.003632385516539216,
0.0015808682655915618,
0.013495045714080334,
-0.002406833926215768,
-0.07508017122745514,
-0.04458584263920784,
0.019534265622496605,
-0.007110994774848223,
-0.0033947310876101255,
-0.01740003563463688,
0.1036359891295433,
0.034296803176403046,
-0.028593095019459724,
-0.04175262898206711,
0.06956285983324051,
0.042237259447574615,
-0.046449799090623856,
-0.032227810472249985,
0.03284291550517082,
0.003219985170289874,
0.06285262107849121,
-0.03491190820932388,
0.0018371623009443283,
-0.0659095048904419,
0.002716716844588518,
-0.043616585433483124,
0.002257717540487647,
0.006919939070940018,
-0.00980441179126501,
0.012255514971911907,
-0.07232151925563812,
-0.017027243971824646,
0.016663772985339165,
-0.04462312161922455,
-0.01361620333045721,
-0.005316936410963535,
0.04041058197617531,
0.0023602352011948824,
-0.03194821625947952,
0.04894750192761421,
0.0408206507563591,
0.03645899146795273,
-0.003306193044409156,
-0.001556403818540275,
-0.0013944725506007671,
0.014771856367588043,
0.06758707016706467,
0.003497248748317361,
-0.0036976239643990993,
0.0529363676905632,
0.033308904618024826,
-0.03220916911959648,
0.03791287913918495,
0.009529477916657925,
0.020801756531000137,
-0.04831375554203987,
0.035862524062395096,
0.021416861563920975,
0.01712976209819317,
-0.035359255969524384,
0.012945178896188736,
-0.0421626977622509,
-0.00988829042762518,
0.023075783625245094,
0.021677816286683083,
-0.017921943217515945,
0.01986977830529213,
-0.006337452679872513,
0.0179405827075243,
-0.002418483840301633,
-0.0020177331753075123,
-0.07015933096408844,
-0.011500612832605839,
-0.0367945060133934,
0.021137269213795662,
0.021733734756708145,
-0.031183995306491852,
0.02844397909939289,
-0.008667398244142532,
-0.02672913856804371,
0.043802980333566666,
-0.038919415324926376,
-0.012339392676949501,
0.0012185616651549935,
0.01601138710975647,
-0.029077723622322083,
-0.029991062358021736,
0.018546368926763535,
0.034017208963632584,
0.053719229996204376,
-0.031165355816483498,
0.011901362799108028,
-0.001816192758269608,
-0.005251697730273008,
0.017791466787457466,
-0.047605451196432114,
-0.017418675124645233,
0.0001619312388356775,
0.04991675913333893,
0.005014043301343918,
0.04741905629634857,
0.0637100413441658,
0.01101598422974348,
0.001851141918450594,
-0.00011234707199037075,
0.02309442311525345,
-0.02838806062936783,
0.11042079329490662,
0.08179041743278503,
-0.023168981075286865,
-0.03727913275361061,
-0.06933918595314026,
0.024771984666585922,
-0.029860585927963257,
-0.061883360147476196,
-0.037390969693660736,
0.010372919030487537,
0.044026654213666916,
-0.004186912439763546,
-0.006556467618793249,
0.019077597185969353,
0.0027260365895926952,
-0.01740003563463688,
-0.054651208221912384,
-0.0009086788631975651,
-0.02959963120520115,
-0.006882660090923309,
0.0005679242894984782,
0.006453949958086014,
0.0004153128538746387,
0.06095138192176819,
-0.019627463072538376,
-0.045107752084732056,
0.005666428245604038,
-0.009184646420180798,
-0.014948932453989983,
0.03252604231238365,
0.01451090257614851,
0.012460550293326378,
-0.013290011323988438,
0.04145439714193344,
-0.06978653371334076,
-0.012292793951928616,
-0.033308904618024826,
-0.0031244573183357716,
-0.025424368679523468,
0.03817383199930191,
-0.033439382910728455,
0.04078337177634239,
-0.03470687195658684,
0.032898835837841034,
-0.0034809389617294073,
0.011826804839074612,
-0.022087886929512024,
0.06553671509027481,
0.014259268529713154,
0.0027912750374525785,
0.0022763570304960012,
0.022796189412474632,
-0.0726943090558052,
0.0249024610966444,
0.00259089982137084,
0.03338346257805824,
0.061883360147476196,
0.036664027720689774,
0.0794045552611351,
0.08454907685518265,
-0.04000050947070122,
0.005470712669193745,
-0.01278674229979515,
0.016384178772568703,
-0.01206911914050579,
-0.0008865443523973227,
0.0064120106399059296,
0.026635941118001938,
-0.04302011802792549,
0.020428964868187904,
0.016309620812535286,
-0.014259268529713154,
0.02723240666091442,
0.0095341382548213,
-0.02959963120520115,
-0.02905908413231373,
-0.00312911719083786,
-0.026225870475172997,
-0.038733020424842834,
0.020745838060975075,
-0.03539653494954109,
0.01910555548965931,
-0.011491293087601662,
0.07947911322116852,
-0.04939484968781471,
-0.04678531363606453,
-0.050625063478946686,
0.05301092565059662,
-0.01444566436111927,
0.02391456440091133,
0.02108134888112545,
-0.02987922541797161,
0.015070089139044285,
0.0028215644415467978,
0.015470840036869049,
-0.025685323402285576,
0.038509342819452286,
0.06919007003307343,
-0.007875217124819756,
-0.015899550169706345,
0.003641705261543393,
-0.04566693678498268,
-0.006015920080244541,
0.020391685888171196,
-0.0318550206720829,
-0.014837094582617283,
-0.01977658085525036,
0.022442037239670753,
-0.10356143116950989,
-0.020354406908154488,
-0.02745608054101467,
-0.05509855970740318,
-0.008928352035582066,
-0.00028279717662371695,
0.08559288829565048,
-0.08596567809581757,
-0.018909839913249016,
-0.011248978786170483,
-0.039851393550634384,
0.010978704318404198,
-0.016589215025305748,
-0.004706490319222212,
0.0358811654150486,
-0.009161346592009068,
0.058379121124744415,
0.028686292469501495,
0.06933918595314026,
0.01361620333045721,
0.02247931808233261,
0.015181927010416985,
0.005824864376336336,
0.08141762763261795,
0.0009308133739978075,
0.02946915477514267,
-0.007637562230229378,
0.02933867834508419,
-0.0028099147602915764,
0.02095087245106697,
-0.04991675913333893,
0.0224233977496624,
0.038509342819452286,
0.01642145775258541,
0.010661832056939602,
0.02158461883664131,
-0.08812787383794785,
0.02413823828101158,
0.0012791402405127883,
-0.031016238033771515,
-0.032134611159563065,
0.04835103452205658,
-0.03176182135939598,
-0.04454856365919113,
0.0023241208400577307,
-0.09133387356996536,
0.04898478090763092,
-0.04055969789624214,
-0.012404631823301315,
0.03207869455218315,
-0.006551807746291161,
0.049357570707798004,
-0.06296445429325104,
0.013690761290490627,
0.06795985996723175,
0.015265804715454578,
0.016123225912451744,
-0.06982381641864777,
-0.0061696963384747505,
0.011556531302630901,
0.025722602382302284,
0.022814828902482986,
-0.0036253957077860832,
0.030568888410925865,
-0.07135225832462311,
0.01204115990549326,
-0.011901362799108028,
0.011547211557626724,
-0.021808292716741562,
-0.02219972386956215,
0.11459605395793915,
-0.016384178772568703,
-0.013485725969076157,
0.05028954893350601,
-0.001150410738773644,
-0.013159533962607384,
-0.008606819435954094,
0.014809135347604752,
0.02959963120520115,
-0.011836124584078789,
-0.009343083016574383,
-0.0013944725506007671,
-0.03150086849927902,
-0.04741905629634857,
0.00667296489700675,
-0.034967828541994095,
-0.055061280727386475,
-0.012814701534807682,
0.023784086108207703,
-0.0013059346238151193,
0.002749335952103138,
0.0052843173034489155,
0.0034646294079720974,
0.06676692515611649,
0.004666881635785103,
0.03562021255493164,
0.06885455548763275,
0.02098815143108368,
0.005330916028469801,
-0.008928352035582066,
-0.031016238033771515,
-0.032097332179546356,
0.007740079890936613,
0.07686956971883774,
-0.002284511923789978,
0.07791338860988617,
0.0054101343266665936,
0.01893780007958412,
0.05588142201304436,
-0.07232151925563812,
-0.018285414204001427,
0.03241420537233353,
-0.006742862984538078,
-0.006864020135253668,
0.007623582612723112,
-0.03269379958510399,
0.05908742547035217,
0.04902205988764763,
-0.027306964620947838,
-0.01242327131330967,
-0.015619956888258457,
-0.014976891689002514,
0.027381522580981255,
-0.036664027720689774,
-0.04917117580771446,
-0.06434378027915955,
0.016514655202627182,
-0.014827774837613106,
-0.03202277421951294,
-0.03521014004945755,
0.01197592169046402,
-0.04928301274776459,
-0.04398937523365021,
0.011174419894814491,
-0.03610483929514885,
0.012274154461920261,
0.018406571820378304,
0.019273310899734497,
-0.009096108376979828,
-0.014855734072625637,
0.02225564233958721,
0.0215286985039711,
0.017055204138159752,
-0.006011260207742453,
-0.05260085687041283,
0.013625523075461388,
-0.012861301191151142,
0.04309467598795891,
0.025983555242419243,
-0.0349864661693573,
0.021062709391117096,
-0.07090491056442261,
0.03629123419523239,
0.01087618712335825,
0.06792257726192474,
-0.020689919590950012,
-0.05316004529595375,
-0.048872943967580795,
0.026486823335289955,
0.07384996116161346,
-0.013308650813996792,
0.04652435705065727,
0.03534061834216118,
-0.03241420537233353,
-0.0051538399420678616,
0.015946149826049805,
0.01094142533838749,
-0.027418801560997963,
0.04104432463645935,
-0.031966857612133026,
0.0078006586991250515,
-0.013690761290490627,
0.027306964620947838,
-0.021920129656791687,
0.023579051718115807,
-0.03507966548204422,
0.032004136592149734,
-0.0950617864727974,
0.03329026699066162,
0.05092329531908035,
0.0028448638040572405,
-0.0063607520423829556,
0.015545397996902466,
-0.027306964620947838,
-0.0722096785902977,
-0.01685948856174946,
-0.02624450996518135,
-0.09640383720397949,
0.002973010763525963,
-0.05584414303302765,
-0.023672249168157578,
0.09319783002138138,
-0.03839750587940216,
-0.05312276631593704,
-0.0012896249536424875,
-0.013737360946834087,
-0.027101930230855942,
0.004685521125793457,
-0.02287074737250805,
-0.023392656818032265,
0.016067305579781532,
0.008578860200941563,
0.028518537059426308,
-0.0037465528585016727,
-0.03705545887351036,
-0.03157542645931244,
-0.024100959300994873,
0.04961852729320526,
-0.007623582612723112,
0.06110049784183502,
-0.025424368679523468,
-0.05755897983908653,
-0.0037465528585016727
] |
723,065
|
isort.place
|
module
|
Returns the section placement for the given module name.
|
def module(name: str, config: Config = DEFAULT_CONFIG) -> str:
"""Returns the section placement for the given module name."""
return module_with_reason(name, config)[0]
|
(name: str, config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False)) -> str
|
[
0.04930108040571213,
0.0011441498063504696,
0.014321860857307911,
-0.06351058185100555,
0.01736428402364254,
-0.005026048049330711,
-0.0008254300919361413,
0.03692395240068436,
-0.03294805809855461,
-0.059258103370666504,
-0.040657833218574524,
-0.04691554605960846,
-0.027122510597109795,
0.007701133377850056,
-0.0030705134849995375,
-0.025947028771042824,
0.07322558760643005,
-0.0025281498674303293,
-0.06326857209205627,
-0.057909756898880005,
0.04034667834639549,
0.0364399291574955,
-0.006300927139818668,
-0.0930013433098793,
-0.012143762782216072,
0.03071810118854046,
0.03982808440923691,
-0.041591305285692215,
-0.06057187542319298,
-0.1179630383849144,
0.016534531489014626,
-0.061470773071050644,
0.008833399042487144,
0.05068400129675865,
-0.026137178763747215,
0.014477439224720001,
0.03127126768231392,
-0.003993180114775896,
-0.01243763230741024,
-0.042144473642110825,
0.030441517010331154,
0.006944849155843258,
0.039378635585308075,
-0.03706224262714386,
-0.03208373486995697,
0.0618165023624897,
-0.0028911661356687546,
0.002595135010778904,
-0.021521685644984245,
0.08760794997215271,
0.01148687582463026,
-0.015324477106332779,
-0.038030289113521576,
0.007619022391736507,
0.008638925850391388,
0.013284671120345592,
0.021158669143915176,
-0.03258504346013069,
0.02475425973534584,
0.020294344052672386,
0.01117571908980608,
0.013068589381873608,
0.02395908161997795,
-0.015583775006234646,
-0.040000949054956436,
0.013180951587855816,
0.030199505388736725,
-0.0273299477994442,
-0.012143762782216072,
-0.03201458603143692,
0.036474503576755524,
-0.013059946708381176,
-0.013008086942136288,
-0.01860026828944683,
0.04228276386857033,
-0.02802140824496746,
-0.02074379287660122,
0.004047200549393892,
0.058290060609579086,
0.02684592641890049,
-0.04847133159637451,
0.02055364102125168,
-0.021193241700530052,
-0.024028226733207703,
0.004766750615090132,
-0.04145301505923271,
0.004220065660774708,
-0.013466179370880127,
0.013422963209450245,
-0.08581015467643738,
0.02746823988854885,
0.01499603409320116,
0.008470382541418076,
0.024702399969100952,
0.036232493817806244,
0.010432399809360504,
0.027883116155862808,
-0.02720894291996956,
-0.010129885748028755,
-0.0025346323382109404,
-0.00874264445155859,
0.02427023835480213,
-0.0302340779453516,
-0.011383156292140484,
-0.01694076508283615,
-0.005873086396604776,
-0.022437870502471924,
0.06254253536462784,
-0.00574343791231513,
-0.02862643450498581,
-0.005778010934591293,
-0.05275838077068329,
-0.06057187542319298,
-0.045843783766031265,
0.060122426599264145,
-0.0022148319985717535,
0.012938940897583961,
-0.004062326159328222,
-0.019551025703549385,
0.010976923629641533,
-0.0021435252856463194,
-0.005250772461295128,
-0.02511727623641491,
-0.03417539969086647,
0.047814443707466125,
0.017891522496938705,
-0.05663055554032326,
-0.023181188851594925,
0.04864419624209404,
-0.07723605632781982,
0.09237902611494064,
-0.01879042014479637,
-0.04124557599425316,
-0.009550788439810276,
0.008746965788304806,
0.046396952122449875,
-0.0028285025618970394,
0.039620645344257355,
0.010086669586598873,
0.05718372389674187,
-0.0010890491539612412,
-0.008159225806593895,
-0.05701085925102234,
0.019222581759095192,
0.010760842822492123,
-0.04809102788567543,
-0.04031210392713547,
0.00819379836320877,
-0.03602505475282669,
0.010613907128572464,
0.008470382541418076,
-0.03194544091820717,
0.009740939363837242,
0.019412733614444733,
0.008954403921961784,
-0.030406944453716278,
0.025030843913555145,
0.005911981221288443,
-0.0158257856965065,
-0.06306113302707672,
0.0344865545630455,
-0.005315597169101238,
0.04304337128996849,
0.01681111566722393,
-0.030199505388736725,
-0.043873123824596405,
-0.0021780983079224825,
-0.04532518982887268,
0.012913011014461517,
-0.05234350636601448,
-0.0014077689265832305,
0.016171514987945557,
-0.03396796062588692,
0.014356433413922787,
-0.010207675397396088,
-0.014849098399281502,
-0.027883116155862808,
0.040554117411375046,
0.008790181949734688,
-0.06859280914068222,
0.01117571908980608,
0.05580080300569534,
-0.05780603736639023,
0.06368344277143478,
-0.018306396901607513,
0.049543093889951706,
0.015021963976323605,
0.0020624948665499687,
0.021884702146053314,
-0.00023255737323779613,
-0.03758084028959274,
0.008820434100925922,
0.040173813700675964,
0.026137178763747215,
0.011556021869182587,
-0.009740939363837242,
-0.015125682577490807,
0.018997857347130775,
0.014909601770341396,
-0.013492109254002571,
0.015238044783473015,
0.024909839034080505,
-0.010881848633289337,
0.10593163967132568,
0.060191571712493896,
0.03702767193317413,
0.05417587235569954,
-0.015583775006234646,
-0.08007103949785233,
0.044910311698913574,
-0.022126713767647743,
-0.02518642321228981,
0.052620090544223785,
0.037719130516052246,
0.02684592641890049,
0.00376413413323462,
0.022697167471051216,
0.018824992701411247,
-0.0016940764617174864,
0.002266691531985998,
-0.017753230407834053,
0.01416628248989582,
0.134696364402771,
0.00680223572999239,
-0.003919712733477354,
-0.03206644579768181,
-0.035506460815668106,
-0.0028349850326776505,
0.03004392795264721,
0.02739909291267395,
0.07142779231071472,
-0.02131424844264984,
-0.025635872036218643,
-0.03102925792336464,
0.037338826805353165,
-0.032965343445539474,
-0.06420204043388367,
-0.017139559611678123,
0.014079849235713482,
-0.01397613063454628,
-0.011028783395886421,
0.06382174044847488,
0.012774718925356865,
0.06174735724925995,
-0.00004041393185616471,
-0.04397684335708618,
-0.049543093889951706,
-0.028159698471426964,
-0.01908428966999054,
0.0009010585490614176,
0.015021963976323605,
0.009533501230180264,
0.002229957841336727,
-0.004185492638498545,
-0.029214175418019295,
-0.05172119289636612,
-0.015920860692858696,
0.0218674149364233,
0.013345173560082912,
0.021521685644984245,
-0.013215525075793266,
-0.07232668995857239,
-0.013543968088924885,
-0.06783220171928406,
0.035921335220336914,
-0.005172983277589083,
-0.017943380400538445,
0.030009353533387184,
0.004732178058475256,
0.002865236485376954,
0.04881706088781357,
0.05123716965317726,
-0.005535999778658152,
-0.02795226126909256,
0.028712866827845573,
-0.025272855535149574,
0.06354515254497528,
0.060813888907432556,
0.037165962159633636,
0.03355308622121811,
0.01989675499498844,
-0.004166045226156712,
-0.022731740027666092,
0.05801347643136978,
0.01792609505355358,
-0.02802140824496746,
-0.04352739453315735,
-0.04515232518315315,
0.03503972291946411,
0.09652778506278992,
-0.0031115689780563116,
-0.02605074644088745,
-0.05203234776854515,
-0.045705489814281464,
-0.03232574462890625,
0.023440485820174217,
0.027883116155862808,
0.017476646229624748,
-0.02790040150284767,
-0.02833256497979164,
0.0035091582685709,
-0.0027636783197522163,
-0.05313868448138237,
0.005622432101517916,
-0.06247339025139809,
0.008561136201024055,
0.03268875926733017,
-0.0479181632399559,
-0.02592974156141281,
-0.026137178763747215,
-0.03443469852209091,
-0.02617175318300724,
0.0364399291574955,
0.03109840303659439,
-0.0014823168748989701,
0.04321623593568802,
0.025514865294098854,
0.05676884949207306,
0.051755763590335846,
0.006927562411874533,
-0.032965343445539474,
0.03270604833960533,
-0.01698398031294346,
-0.03332836180925369,
0.061851076781749725,
-0.03452112898230553,
-0.026258185505867004,
-0.023250335827469826,
0.002644833642989397,
0.05189405754208565,
-0.10199031978845596,
-0.008141938596963882,
0.017277851700782776,
0.007109070662409067,
-0.03483228757977486,
-0.01982760988175869,
0.011262151412665844,
-0.020156051963567734,
-0.02136610634624958,
-0.07007944583892822,
0.09189500659704208,
-0.04981967806816101,
-0.028038693591952324,
0.036474503576755524,
0.0031115689780563116,
0.024598682299256325,
0.027969548478722572,
0.01588628813624382,
0.03054523654282093,
-0.031236695125699043,
0.023371340706944466,
0.020363491028547287,
-0.02427023835480213,
0.023717069998383522,
0.0029322216287255287,
0.05386471748352051,
0.030925538390874863,
-0.017839662730693817,
-0.04992339760065079,
0.005255094263702631,
0.0018874690867960453,
-0.04145301505923271,
0.004542026203125715,
0.03398524969816208,
-0.06136705353856087,
0.016474029049277306,
-0.041280150413513184,
0.03059709444642067,
0.07384790480136871,
-0.031236695125699043,
-0.07412448525428772,
0.005518713500350714,
0.01693212054669857,
0.020225198939442635,
-0.05497105047106743,
-0.016111012548208237,
0.013492109254002571,
-0.012359843589365482,
-0.05742573365569115,
-0.057978902012109756,
0.00641761114820838,
0.03517801687121391,
0.016586391255259514,
0.007930179126560688,
-0.06835079938173294,
-0.027485525235533714,
-0.01416628248989582,
-0.04826389253139496,
-0.012938940897583961,
-0.04255934804677963,
0.03889461234211922,
-0.019309014081954956,
-0.03483228757977486,
0.08117737621068954,
-0.04428799822926521,
-0.01847926340997219,
-0.06022614613175392,
-0.018824992701411247,
-0.05334612354636192,
0.011556021869182587,
0.0730181559920311,
-0.020847512409090996,
0.014728093519806862,
0.008513598702847958,
-0.0232157614082098,
-0.0011171397054567933,
0.04943937435746193,
-0.002474129432812333,
0.02001775987446308,
-0.005242129322141409,
-0.040968991816043854,
0.039931800216436386,
-0.061055898666381836,
-0.05631939694285393,
0.039378635585308075,
-0.017589008435606956,
0.004317301791161299,
0.019862182438373566,
0.005786654073745012,
-0.07246498763561249,
0.04045039787888527,
-0.04919736459851265,
0.03241217881441116,
-0.03706224262714386,
0.013803265988826752,
0.031980015337467194,
-0.02708793617784977,
0.03054523654282093,
-0.03934406116604805,
-0.010060739703476429,
-0.08235286176204681,
0.047434139996767044,
0.014667590148746967,
-0.00406448682770133,
0.040726982057094574,
-0.06572325527667999,
0.03892918676137924,
-0.0010231443447992206,
0.012351199984550476,
-0.059500113129615784,
0.09936276823282242,
0.027537385001778603,
-0.043181661516427994,
0.023734357208013535,
-0.01133129745721817,
0.03263690322637558,
-0.0477798692882061,
-0.04366568475961685,
0.008500633761286736,
-0.05891237407922745,
-0.025947028771042824,
-0.004371322225779295,
-0.013180951587855816,
0.0162665918469429,
0.005281024146825075,
-0.068696528673172,
-0.0011873660841956735,
-0.008911187760531902,
-0.02703607641160488,
-0.0025843309704214334,
-0.042697641998529434,
0.040968991816043854,
0.038203153759241104,
0.03312092274427414,
0.08650162070989609,
-0.031115690246224403,
0.024702399969100952,
0.004922329448163509,
-0.005821227096021175,
0.00004625487781595439,
0.035506460815668106,
-0.016093727201223373,
0.007947465404868126,
0.043250810354948044,
-0.042144473642110825,
0.01741614378988743,
-0.0063657513819634914,
0.052862100303173065,
0.0549364797770977,
0.035679325461387634,
0.022818172350525856,
-0.06793592125177383,
-0.018444688990712166,
0.05535135418176651,
-0.0059724836610257626,
-0.014823168516159058,
0.008332090452313423,
-0.010138529352843761,
-0.023855362087488174,
-0.0477798692882061,
-0.03538545221090317,
0.0022796564735472202,
0.035610176622867584,
0.039378635585308075,
0.00708314124494791,
0.00612806249409914,
0.014408293180167675,
-0.012809292413294315,
-0.0041465978138148785,
0.003258504206314683,
0.0076017361134290695,
0.02703607641160488,
0.00478835916146636,
-0.058290060609579086,
-0.0009529180242680013,
0.0017372927395626903,
-0.01588628813624382,
0.02838442474603653,
0.003835440846160054,
0.034313689917325974,
0.003327650250867009,
0.03294805809855461,
-0.02057092823088169,
0.0017297298181802034,
0.024114659056067467,
0.0238207895308733,
-0.01588628813624382,
0.03417539969086647,
0.0038484057877212763,
-0.013483465649187565,
-0.017571721225976944,
-0.058290060609579086,
0.015929505228996277,
0.022455155849456787,
-0.0028285025618970394,
0.026379190385341644,
0.03241217881441116,
-0.04712298512458801,
-0.060606449842453,
0.08304432034492493,
0.015618347562849522,
0.020277058705687523,
0.0034702636767178774,
0.011054713279008865,
0.014416936784982681,
0.05023455247282982,
-0.07668288797140121,
0.019654743373394012,
-0.015246688388288021,
0.04114185646176338,
-0.00675901910290122,
-0.05213606730103493,
0.08629418164491653,
-0.01662096381187439,
-0.009611290879547596,
0.03270604833960533,
-0.01668146625161171,
0.019689317792654037,
-0.020398063585162163,
-0.010345966555178165,
0.04328538104891777,
-0.005272381007671356,
-0.006547259632498026,
-0.08525699377059937,
0.04981967806816101,
-0.04905907064676285,
0.001275959424674511,
-0.044737447053194046,
-0.000024089675207505934,
-0.0026772457640618086,
-0.035921335220336914,
0.03459027409553528,
0.04231733828783035,
0.017269207164645195,
0.03516072779893875,
0.019291726872324944,
-0.025342000648379326,
-0.007510981988161802,
-0.00714364368468523,
-0.013008086942136288,
0.02765839174389839,
-0.021193241700530052,
0.04477202147245407,
-0.005181626882404089,
-0.03920577093958855,
0.08781538903713226,
0.07689032703638077,
0.01560970488935709,
0.014633017592132092,
0.03047608956694603,
0.005544642917811871,
-0.0492665097117424,
0.04518689587712288,
0.003859209828078747,
-0.042455628514289856,
-0.0010166619904339314,
-0.014347790740430355,
-0.03529902175068855,
0.08276773244142532,
-0.0002497088280506432,
-0.007964752614498138,
-0.03172071650624275,
0.07875727117061615,
0.0010139609221369028,
0.03595590963959694,
0.03886003792285919,
-0.06530837714672089,
-0.016776543110609055,
0.05631939694285393,
0.07433192431926727,
0.02019062638282776,
-0.01903242990374565,
0.007065854500979185,
0.04459915682673454,
0.05116802453994751,
0.07564570009708405,
0.00040596252074465156,
-0.07156608998775482,
0.012091903015971184,
0.011158431880176067,
-0.003295237896963954,
-0.07765093445777893,
-0.07070176303386688,
-0.05313868448138237,
-0.022731740027666092,
-0.0210549496114254,
0.04674268141388893,
-0.018634840846061707,
0.031046543270349503,
-0.03491871803998947,
0.016162872314453125,
0.0734330266714096,
-0.039862655103206635,
0.006396003067493439,
0.011167075484991074,
0.04771072417497635,
-0.030752673745155334,
-0.037096817046403885,
0.0056181107647717,
0.0017200062284246087,
-0.014909601770341396,
0.035437311977148056,
0.04446086287498474,
-0.0840815082192421,
-0.028540002182126045,
0.005142732057720423,
0.0465698167681694,
-0.011149789206683636,
-0.008116008713841438,
0.024114659056067467,
0.031046543270349503,
-0.023665210232138634,
-0.01139179989695549,
-0.02290460467338562,
-0.027001503854990005,
0.021400680765509605,
0.026880498975515366,
-0.014391006901860237,
0.024477675557136536,
-0.008219728246331215,
-0.016232017427682877,
-0.01698398031294346,
-0.0016216892981901765,
0.020294344052672386,
0.02765839174389839,
-0.012696930207312107,
-0.04058868810534477,
-0.011754816398024559,
-0.059085238724946976,
-0.02961176447570324,
0.0280732661485672,
-0.07052889466285706,
-0.0380648598074913,
0.013034016825258732,
0.03261961415410042,
-0.025393860414624214,
0.003258504206314683,
-0.03319006785750389,
0.002046288689598441,
-0.009412496350705624,
0.008388271555304527,
0.005289667285978794,
0.030648954212665558,
-0.05064942687749863,
0.03675108775496483,
0.00867781974375248,
0.023042896762490273,
0.041833315044641495,
0.02427023835480213,
-0.007057211361825466,
0.019862182438373566,
-0.001147391041740775,
0.011867178604006767,
-0.03917119652032852,
0.02795226126909256,
0.09472998976707458,
-0.03841058909893036,
-0.03208373486995697,
0.009490285068750381,
-0.010994210839271545,
-0.007731384597718716,
0.035506460815668106,
0.004740821197628975,
0.02155625820159912,
0.036854807287454605,
0.008768574334681034,
0.020328916609287262,
-0.0026124215219169855,
-0.017260564491152763,
0.03116755001246929,
0.04249020293354988,
-0.045290615409612656,
0.014633017592132092,
-0.04691554605960846,
-0.04414970800280571,
-0.020242484286427498,
0.019551025703549385,
-0.003280112287029624,
-0.08919831365346909,
-0.02345777302980423,
-0.013276027515530586,
0.01031139399856329,
0.057287443429231644,
0.03588676080107689,
0.06109047308564186,
-0.0050822291523218155,
-0.05580080300569534,
0.0379265695810318,
-0.013492109254002571,
-0.012757432647049427,
-0.04950851947069168,
0.04249020293354988,
0.02924874797463417,
-0.021711837500333786,
0.01643945649266243,
-0.02376892976462841,
0.0045938859693706036,
-0.018703987821936607,
-0.02228229120373726,
0.05078772082924843,
-0.039620645344257355,
0.013008086942136288,
-0.06873109936714172,
0.03232574462890625,
0.0631648525595665,
0.04975052922964096,
0.03249860927462578,
0.012904368340969086,
0.0005342607037164271,
-0.038998331874608994,
-0.025445720180869102,
0.04083070158958435,
-0.06057187542319298,
0.002580009400844574,
0.013276027515530586,
-0.012040043249726295,
-0.001962017035111785,
0.00024052536173257977,
0.015912218019366264,
0.0630265548825264,
0.0076233441941440105,
0.017035840079188347,
0.02235143817961216,
0.03436554968357086,
-0.03158242627978325,
-0.08207627385854721,
0.011089285835623741,
0.025082703679800034,
0.005808262154459953,
-0.01879042014479637,
-0.00948164239525795,
0.006771984044462442,
0.025687729939818382,
0.02297375164926052,
0.013267384842038155,
-0.046708106994628906,
-0.042386483401060104,
-0.003243378596380353
] |
723,071
|
isort.api
|
sort_stream
|
Sorts any imports within the provided code stream, outputs to the provided output stream.
Returns `True` if anything is modified from the original input stream, otherwise `False`.
- **input_stream**: The stream of code with imports that need to be sorted.
- **output_stream**: The stream where sorted imports should be written to.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- ****config_kwargs**: Any config modifications.
|
def sort_stream(
input_stream: TextIO,
output_stream: TextIO,
extension: Optional[str] = None,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
disregard_skip: bool = False,
show_diff: Union[bool, TextIO] = False,
raise_on_skip: bool = True,
**config_kwargs: Any,
) -> bool:
"""Sorts any imports within the provided code stream, outputs to the provided output stream.
Returns `True` if anything is modified from the original input stream, otherwise `False`.
- **input_stream**: The stream of code with imports that need to be sorted.
- **output_stream**: The stream where sorted imports should be written to.
- **extension**: The file extension that contains imports. Defaults to filename extension or py.
- **config**: The config object to use when sorting imports.
- **file_path**: The disk location where the code string was pulled from.
- **disregard_skip**: set to `True` if you want to ignore a skip set in config for this file.
- **show_diff**: If `True` the changes that need to be done will be printed to stdout, if a
TextIO stream is provided results will be written to it, otherwise no diff will be computed.
- ****config_kwargs**: Any config modifications.
"""
extension = extension or (file_path and file_path.suffix.lstrip(".")) or "py"
if show_diff:
_output_stream = StringIO()
_input_stream = StringIO(input_stream.read())
changed = sort_stream(
input_stream=_input_stream,
output_stream=_output_stream,
extension=extension,
config=config,
file_path=file_path,
disregard_skip=disregard_skip,
raise_on_skip=raise_on_skip,
**config_kwargs,
)
_output_stream.seek(0)
_input_stream.seek(0)
show_unified_diff(
file_input=_input_stream.read(),
file_output=_output_stream.read(),
file_path=file_path,
output=output_stream if show_diff is True else show_diff,
color_output=config.color_output,
)
return changed
config = _config(path=file_path, config=config, **config_kwargs)
content_source = str(file_path or "Passed in content")
if not disregard_skip and file_path and config.is_skipped(file_path):
raise FileSkipSetting(content_source)
_internal_output = output_stream
if config.atomic:
try:
file_content = input_stream.read()
compile(file_content, content_source, "exec", 0, 1)
except SyntaxError:
if extension not in CYTHON_EXTENSIONS:
raise ExistingSyntaxErrors(content_source)
if config.verbose:
warn(
f"{content_source} Python AST errors found but ignored due to Cython extension"
)
input_stream = StringIO(file_content)
if not output_stream.readable():
_internal_output = StringIO()
try:
changed = core.process(
input_stream,
_internal_output,
extension=extension,
config=config,
raise_on_skip=raise_on_skip,
)
except FileSkipComment:
raise FileSkipComment(content_source)
if config.atomic:
_internal_output.seek(0)
try:
compile(_internal_output.read(), content_source, "exec", 0, 1)
_internal_output.seek(0)
except SyntaxError: # pragma: no cover
if extension not in CYTHON_EXTENSIONS:
raise IntroducedSyntaxErrors(content_source)
if config.verbose:
warn(
f"{content_source} Python AST errors found but ignored due to Cython extension"
)
if _internal_output != output_stream:
output_stream.write(_internal_output.read())
return changed
|
(input_stream: <class 'TextIO'>, output_stream: <class 'TextIO'>, extension: Optional[str] = None, config: isort.settings.Config = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), extend_skip=frozenset(), skip_glob=frozenset(), extend_skip_glob=frozenset(), skip_gitignore=False, line_length=79, wrap_length=0, line_ending='', sections=('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), no_sections=False, known_future_library=frozenset({'__future__'}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), extra_standard_library=frozenset(), known_other={}, multi_line_output=<WrapModes.GRID: 0>, forced_separate=(), indent=' ', comment_prefix=' #', length_sort=False, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset(), append_only=False, reverse_relative=False, force_single_line=False, single_line_exclusions=(), default_section='THIRDPARTY', import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=False, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=False, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, group_by_package=False, ignore_whitespace=False, no_lines_before=frozenset(), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=({'py_version': 'py3', 'force_to_top': frozenset(), 'skip': frozenset({'dist', '.tox', '.mypy_cache', '_build', '.git', '.direnv', '.venv', '.nox', 'buck-out', '.eggs', '__pypackages__', '.pytype', '.svn', '.bzr', '.hg', '.pants.d', 'build', 'venv', 'node_modules'}), 'extend_skip': frozenset(), 'skip_glob': frozenset(), 'extend_skip_glob': frozenset(), 'skip_gitignore': False, 'line_length': 79, 'wrap_length': 0, 'line_ending': '', 'sections': ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'), 'no_sections': False, 'known_future_library': frozenset({'__future__'}), 'known_third_party': frozenset(), 'known_first_party': frozenset(), 'known_local_folder': frozenset(), 'known_standard_library': frozenset({'ssl', 'pprint', 'sre_constants', 'tkinter', 'modulefinder', 'mmap', 'grp', 'ipaddress', 'optparse', 'select', 'dis', 'fnmatch', 'sunau', 'csv', 'calendar', 'sys', 'cgi', 'signal', 'selectors', 'logging', 'traceback', 'spwd', 'audioop', 'difflib', 'imghdr', 'codecs', 'types', 'py_compile', 'dbm', 'warnings', 'abc', 'glob', 'asynchat', 'timeit', 'tracemalloc', 'fpectl', 'token', 'fileinput', 'contextvars', 'aifc', 'graphlib', 'plistlib', 'asyncio', 'hashlib', 'zipapp', 'cProfile', 'getpass', 'msilib', 'itertools', 'unicodedata', 'cgitb', 'http', 'syslog', 'struct', 'platform', 'gzip', 'symtable', 'filecmp', 'getopt', 'operator', 'statistics', 'math', 'pathlib', 'asyncore', 'pstats', 'webbrowser', 'smtplib', 'shelve', 'termios', 'sre', 'unittest', 'winreg', 'binhex', 'array', 'configparser', 'fractions', 'chunk', 'symbol', 'socket', 're', 'lib2to3', 'ntpath', 'copy', 'bisect', 'cmd', 'turtle', 'turtledemo', 'xmlrpc', 'argparse', 'doctest', 'pydoc', 'weakref', 'poplib', 'encodings', 'bz2', 'builtins', 'lzma', 'winsound', 'decimal', 'xdrlib', 'sqlite3', 'socketserver', 'telnetlib', 'ossaudiodev', 'xml', 'faulthandler', 'fcntl', 'random', 'wsgiref', 'numbers', 'inspect', 'mailbox', 'posixpath', 'resource', 'trace', 'dataclasses', 'zlib', 'errno', 'tty', 'multiprocessing', 'io', 'ftplib', 'runpy', 'threading', 'usercustomize', 'idlelib', 'mimetypes', '_tkinter', 'profile', 'readline', 'gc', 'zipimport', 'textwrap', 'bdb', '_dummy_thread', 'posix', 'atexit', 'pkgutil', 'concurrent', 'rlcompleter', 'site', 'os', 'string', 'linecache', 'heapq', 'sndhdr', 'zipfile', 'sitecustomize', 'sysconfig', 'datetime', 'pickle', 'sre_parse', 'ast', 'codeop', 'dummy_threading', 'reprlib', 'sre_compile', 'ensurepip', 'shlex', 'shutil', 'keyword', 'smtpd', 'mailcap', 'queue', 'time', 'quopri', 'imaplib', 'copyreg', 'crypt', 'collections', 'compileall', 'pipes', 'venv', 'stringprep', 'imp', 'ctypes', 'pty', 'formatter', 'test', 'email', 'tabnanny', 'typing', 'urllib', 'html', 'parser', 'code', 'contextlib', 'tempfile', 'sched', 'subprocess', 'tarfile', 'secrets', 'colorsys', 'tokenize', 'wave', 'pdb', 'msvcrt', 'uuid', 'marshal', 'functools', 'base64', 'importlib', 'curses', 'uu', '_thread', 'binascii', 'locale', 'zoneinfo', 'netrc', 'tomllib', 'cmath', 'hmac', 'stat', 'pwd', 'enum', 'nis', '_ast', 'json', 'pickletools', 'gettext', 'distutils', 'macpath', 'nntplib', 'pyclbr'}), 'extra_standard_library': frozenset(), 'known_other': {}, 'multi_line_output': <WrapModes.GRID: 0>, 'forced_separate': (), 'indent': ' ', 'comment_prefix': ' #', 'length_sort': False, 'length_sort_straight': False, 'length_sort_sections': frozenset(), 'add_imports': frozenset(), 'remove_imports': frozenset(), 'append_only': False, 'reverse_relative': False, 'force_single_line': False, 'single_line_exclusions': (), 'default_section': 'THIRDPARTY', 'import_headings': {}, 'import_footers': {}, 'balanced_wrapping': False, 'use_parentheses': False, 'order_by_type': True, 'atomic': False, 'lines_before_imports': -1, 'lines_after_imports': -1, 'lines_between_sections': 1, 'lines_between_types': 0, 'combine_as_imports': False, 'combine_star': False, 'include_trailing_comma': False, 'from_first': False, 'verbose': False, 'quiet': False, 'force_adds': False, 'force_alphabetical_sort_within_sections': False, 'force_alphabetical_sort': False, 'force_grid_wrap': 0, 'force_sort_within_sections': False, 'lexicographical': False, 'group_by_package': False, 'ignore_whitespace': False, 'no_lines_before': frozenset(), 'no_inline_sort': False, 'ignore_comments': False, 'case_sensitive': False, 'sources': (), 'virtual_env': '', 'conda_env': '', 'ensure_newline_before_comments': False, 'directory': '', 'profile': '', 'honor_noqa': False, 'src_paths': (), 'old_finders': False, 'remove_redundant_aliases': False, 'float_to_top': False, 'filter_files': False, 'formatter': '', 'formatting_function': None, 'color_output': False, 'treat_comments_as_code': frozenset(), 'treat_all_comments_as_code': False, 'supported_extensions': frozenset({'pyx', 'pyi', 'pxd', 'py'}), 'blocked_extensions': frozenset({'pex'}), 'constants': frozenset(), 'classes': frozenset(), 'variables': frozenset(), 'dedup_headings': False, 'only_sections': False, 'only_modified': False, 'combine_straight_imports': False, 'auto_identify_namespace_packages': True, 'namespace_packages': frozenset(), 'follow_links': True, 'indented_import_headings': True, 'honor_case_in_force_sorted_sections': False, 'sort_relative_in_force_sorted_sections': False, 'overwrite_in_place': False, 'reverse_sort': False, 'star_first': False, 'git_ls_files': {}, 'format_error': '{error}: {message}', 'format_success': '{success}: {message}', 'sort_order': 'natural', 'sort_reexports': False, 'split_on_trailing_comma': False, 'source': 'defaults'},), virtual_env='', conda_env='', ensure_newline_before_comments=False, directory='/app', profile='', honor_noqa=False, src_paths=(PosixPath('/app/src'), PosixPath('/app')), old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatter='', formatting_function=None, color_output=False, treat_comments_as_code=frozenset(), treat_all_comments_as_code=False, supported_extensions=frozenset({'pyx', 'pyi', 'pxd', 'py'}), blocked_extensions=frozenset({'pex'}), constants=frozenset(), classes=frozenset(), variables=frozenset(), dedup_headings=False, only_sections=False, only_modified=False, combine_straight_imports=False, auto_identify_namespace_packages=True, namespace_packages=frozenset(), follow_links=True, indented_import_headings=True, honor_case_in_force_sorted_sections=False, sort_relative_in_force_sorted_sections=False, overwrite_in_place=False, reverse_sort=False, star_first=False, git_ls_files={}, format_error='{error}: {message}', format_success='{success}: {message}', sort_order='natural', sort_reexports=False, split_on_trailing_comma=False), file_path: Optional[pathlib.Path] = None, disregard_skip: bool = False, show_diff: Union[bool, TextIO] = False, raise_on_skip: bool = True, **config_kwargs: Any) -> bool
|
[
-0.009205320850014687,
-0.0033357348293066025,
-0.012437991797924042,
0.0007415536674670875,
0.008094247430562973,
0.0046881274320185184,
-0.012608926743268967,
0.07935378700494766,
0.03203511983156204,
-0.06378869712352753,
0.024252576753497124,
-0.03748491033911705,
-0.010346558876335621,
0.03605710715055466,
-0.023086199536919594,
0.042271073907613754,
-0.0008930066251195967,
0.04387987032532692,
-0.02757071517407894,
0.0154745914041996,
-0.02594180963933468,
-0.01520310714840889,
-0.07545246183872223,
0.04259283468127251,
0.03460919111967087,
0.025599941611289978,
0.026464669033885002,
0.010618043132126331,
-0.03963667154312134,
-0.0453680045902729,
0.03915403410792351,
-0.028656650334596634,
-0.024111807346343994,
-0.04850515350699425,
-0.0343879796564579,
-0.008687489666044712,
0.037384361028671265,
0.05703176185488701,
0.015665635466575623,
-0.011703979223966599,
0.025016753003001213,
0.0050073727034032345,
0.005530230700969696,
-0.00952707976102829,
-0.05558384954929352,
0.04898779094219208,
-0.08639226108789444,
0.024292796850204468,
-0.02757071517407894,
-0.006726771593093872,
0.0516020804643631,
-0.05976671352982521,
0.01433838065713644,
0.004871630575507879,
0.011915134266018867,
-0.010658263228833675,
0.0168621763586998,
0.04327657073736191,
0.05220538005232811,
-0.018249761313199997,
0.02407158724963665,
0.024735214188694954,
0.023287300020456314,
-0.005897236987948418,
-0.032718855887651443,
0.024674884974956512,
0.0017445364501327276,
-0.07468828558921814,
-0.03822897747159004,
0.031331270933151245,
-0.035996776074171066,
0.005268801935017109,
0.05276845768094063,
-0.01706327684223652,
-0.013624478131532669,
0.025197742506861687,
-0.024715105071663857,
0.03625820577144623,
-0.007149080280214548,
-0.05948517471551895,
0.05936451628804207,
0.05043570697307587,
0.02483576349914074,
0.015514811500906944,
0.03261830657720566,
-0.06266254186630249,
0.07211421430110931,
0.01562541536986828,
-0.02222147397696972,
0.054859891533851624,
-0.0278522539883852,
0.019928941503167152,
0.033865123987197876,
-0.01213634293526411,
0.04003887251019478,
0.014559589326381683,
-0.0007736039115116,
-0.02745005488395691,
-0.016741517931222916,
0.024192245677113533,
0.03155248239636421,
0.0605308897793293,
-0.008023862726986408,
-0.033462923020124435,
0.02242257259786129,
-0.016409702599048615,
0.033261824399232864,
-0.014629974961280823,
-0.017234209924936295,
-0.08775974065065384,
-0.04786163568496704,
-0.04496580362319946,
0.013966347090899944,
-0.05015416815876961,
0.08172675967216492,
-0.049068231135606766,
0.022201362997293472,
0.011492825113236904,
-0.022020373493433,
-0.005354268942028284,
0.026786427944898605,
0.04782141372561455,
-0.012799970805644989,
0.03571523725986481,
0.05413593351840973,
-0.03885238617658615,
0.04870625212788582,
-0.03348303586244583,
0.05514143034815788,
0.010437053628265858,
0.0002867236325982958,
-0.0281941220164299,
-0.007671938743442297,
-0.02057245932519436,
-0.01981833577156067,
0.0034262293484061956,
-0.007340124808251858,
0.027691373601555824,
-0.023749828338623047,
0.029340388253331184,
0.07243596762418747,
-0.011221340857446194,
-0.01561536081135273,
-0.03822897747159004,
-0.001072739134542644,
-0.000817594351246953,
0.01644992269575596,
-0.02035124972462654,
-0.023468289524316788,
0.08639226108789444,
0.04003887251019478,
-0.04044106975197792,
-0.023327520117163658,
0.03822897747159004,
0.004750971216708422,
0.0001300075527979061,
-0.0433167889714241,
-0.01780734397470951,
-0.04806273430585861,
0.04669525846838951,
0.015715910121798515,
0.02696741744875908,
0.026384228840470314,
0.05956561490893364,
-0.016560528427362442,
0.0017445364501327276,
-0.021215977147221565,
-0.03891271725296974,
-0.04174821451306343,
-0.07135003060102463,
0.0028179041109979153,
0.04090359807014465,
0.014257940463721752,
0.003561971476301551,
0.07935378700494766,
-0.00013424949429463595,
0.026846757158637047,
0.07167179137468338,
0.0012034536339342594,
-0.022864991798996925,
-0.033181384205818176,
-0.010306339710950851,
0.0007095034816302359,
0.03396567329764366,
0.007611608598381281,
0.03963667154312134,
0.008305401541292667,
-0.031170392408967018,
0.04975196719169617,
-0.07629707455635071,
-0.007149080280214548,
0.018963664770126343,
0.0077372957020998,
0.005691110156476498,
-0.009511996991932392,
0.006953008472919464,
-0.06660409271717072,
-0.003398578381165862,
0.06970101594924927,
0.002599208615720272,
-0.07336102426052094,
0.034689631313085556,
0.07927334308624268,
-0.039918214082717896,
-0.03183402121067047,
0.028254453092813492,
0.004947043024003506,
-0.011241450905799866,
-0.06575947254896164,
0.029561597853899002,
0.013393213972449303,
-0.05610670521855354,
0.013031234964728355,
-0.0292398389428854,
0.006837376393377781,
-0.03535325825214386,
0.03446841984987259,
0.015705855563282967,
0.020853998139500618,
-0.013433434069156647,
0.06861508637666702,
0.035252708941698074,
-0.06644321233034134,
-0.004942015279084444,
0.04782141372561455,
0.0146199194714427,
0.0412655770778656,
0.034488532692193985,
-0.004569981712847948,
-0.05325109511613846,
0.06612145155668259,
-0.014177501201629639,
0.03396567329764366,
0.02242257259786129,
0.038973044604063034,
-0.0364391952753067,
0.0009162587230093777,
0.0344080924987793,
-0.09129908680915833,
-0.005887181963771582,
-0.03871161490678787,
-0.0009281989769078791,
-0.0011330689303576946,
0.00009709325968287885,
-0.09347096085548401,
-0.07641773670911789,
-0.003541861427947879,
-0.00550509337335825,
-0.04806273430585861,
0.007083722855895758,
0.021276306360960007,
-0.009501942433416843,
-0.01241788174957037,
-0.08228983730077744,
-0.03314116597175598,
0.022523121908307076,
0.003561971476301551,
-0.03901326656341553,
0.03074808418750763,
-0.021356746554374695,
0.003084360621869564,
-0.05300977826118469,
-0.004288442898541689,
-0.008566830307245255,
0.0336841344833374,
-0.057192642241716385,
-0.03265852853655815,
-0.00317234150134027,
-0.005851989611983299,
0.043035250157117844,
-0.007697076071053743,
-0.014107116498053074,
-0.04311569035053253,
0.01932564377784729,
-0.04076283052563667,
0.018239706754684448,
0.033744461834430695,
0.005630780477076769,
0.08144521713256836,
0.04158733785152435,
0.005324104335159063,
-0.011191176250576973,
-0.030969293788075447,
-0.022583452984690666,
0.025841260328888893,
0.013725027441978455,
-0.025016753003001213,
-0.02352861873805523,
-0.046655040234327316,
0.019134599715471268,
0.04621262103319168,
-0.011814584024250507,
0.01644992269575596,
-0.03452875092625618,
0.03623809665441513,
0.010085130110383034,
-0.03032577596604824,
-0.0956428274512291,
0.03185413032770157,
-0.01596728526055813,
-0.04003887251019478,
0.002948618493974209,
0.09918218106031418,
0.0012851502979174256,
-0.03384501487016678,
-0.007234547752887011,
-0.04601152241230011,
-0.08357687294483185,
-0.044322285801172256,
-0.008667380549013615,
0.03464940935373306,
0.00716919032856822,
0.0065658921375870705,
-0.03289984539151192,
0.013714972883462906,
0.015987394377589226,
0.029280059039592743,
0.05425659194588661,
0.012367607094347477,
-0.00674185436218977,
-0.036338645964860916,
0.027289176359772682,
0.022503012791275978,
0.01530365739017725,
0.012779860757291317,
-0.06157660856842995,
0.03191446140408516,
-0.006158666219562292,
0.053331535309553146,
-0.0013109161518514156,
-0.001018693670630455,
0.02483576349914074,
0.020461853593587875,
0.03555435687303543,
-0.009853865951299667,
0.03597666695713997,
0.026665767654776573,
-0.03770611807703972,
0.049148671329021454,
-0.052366260439157486,
0.03977744281291962,
0.03466952219605446,
-0.00398679357022047,
0.003541861427947879,
-0.039294805377721786,
-0.026927197352051735,
0.004376423545181751,
-0.008410978130996227,
-0.010477273724973202,
-0.02537873201072216,
0.07585465908050537,
0.025418952107429504,
-0.02736961469054222,
-0.00893886387348175,
0.0023767424281686544,
0.010366668924689293,
-0.021618176251649857,
-0.04902800917625427,
0.009858893230557442,
-0.02208070456981659,
0.04070249944925308,
0.03639897331595421,
0.029420828446745872,
0.01801849715411663,
0.010839252732694149,
-0.047419216483831406,
0.014519370160996914,
-0.010678373277187347,
0.0077925981022417545,
0.03426732122898102,
-0.055744726210832596,
-0.003064250573515892,
-0.007757405750453472,
-0.05309021845459938,
-0.04166777804493904,
0.018169322982430458,
-0.010200762189924717,
0.020260754972696304,
-0.027148406952619553,
0.04737899824976921,
0.05675022304058075,
0.0467756986618042,
-0.05132054165005684,
0.005867072381079197,
-0.05309021845459938,
-0.0032326714135706425,
0.050516147166490555,
-0.02765115536749363,
0.0026469696313142776,
0.021296417340636253,
-0.012850245460867882,
-0.025479281321167946,
-0.002677134471014142,
0.0025112275034189224,
0.012679311446845531,
0.009909167885780334,
-0.010065020062029362,
0.06306473910808563,
-0.01844080723822117,
-0.016972782090306282,
0.010658263228833675,
-0.009059524163603783,
0.04725833609700203,
0.05300977826118469,
0.0044091022573411465,
-0.02091432735323906,
0.05035526677966118,
0.02083388902246952,
-0.014720468781888485,
0.06374847888946533,
-0.020612679421901703,
-0.04617239907383919,
-0.0378066711127758,
-0.0044191572815179825,
-0.012407827191054821,
0.013222279027104378,
-0.012146398425102234,
0.007908230647444725,
0.01502211857587099,
-0.01931558921933174,
0.04669525846838951,
0.016761627048254013,
0.03702238202095032,
0.02722884528338909,
0.046534378081560135,
-0.038269199430942535,
0.030024126172065735,
0.002076350385323167,
-0.07947444915771484,
0.033543363213539124,
0.007274767383933067,
0.04995306581258774,
-0.019717786461114883,
0.024534115567803383,
0.03320149704813957,
-0.05373373627662659,
0.01096996758133173,
-0.017988333478569984,
0.04918888956308365,
0.010075075551867485,
0.02537873201072216,
0.07830806821584702,
0.020451799035072327,
-0.020140094682574272,
-0.03265852853655815,
0.06447243690490723,
0.01981833577156067,
0.02111542783677578,
-0.02634400874376297,
-0.01835031248629093,
-0.01761629991233349,
-0.008481362834572792,
0.051964059472084045,
-0.029280059039592743,
-0.04408096894621849,
-0.07834828644990921,
0.02393081784248352,
-0.00006347196904243901,
-0.05015416815876961,
0.019345752894878387,
-0.006349710747599602,
0.008461253717541695,
0.003878702875226736,
-0.067408487200737,
-0.003365899669006467,
-0.02222147397696972,
-0.010396834462881088,
0.011342001147568226,
-0.029420828446745872,
0.014821019023656845,
0.10915670543909073,
-0.046534378081560135,
0.013775302097201347,
0.029320279136300087,
-0.028153903782367706,
-0.00002590331860119477,
-0.024594444781541824,
-0.010607988573610783,
0.01994905062019825,
0.009718123823404312,
-0.0038962990511208773,
-0.012769806198775768,
-0.02847566083073616,
-0.0035996774677187204,
-0.0054095713421702385,
-0.0036172738764435053,
0.10030833631753922,
-0.038973044604063034,
0.0481431744992733,
-0.06089286878705025,
0.0026268595829606056,
0.02531840279698372,
0.022603562101721764,
-0.017978277057409286,
-0.0018199486657977104,
-0.0007208153256215155,
-0.04001876339316368,
-0.030727973207831383,
0.0022862476762384176,
-0.051964059472084045,
0.0025539612397551537,
-0.011392275802791119,
-0.036338645964860916,
0.000673054251819849,
0.06475397944450378,
0.0708673968911171,
0.05683066323399544,
-0.05043570697307587,
-0.018129102885723114,
0.006455287802964449,
-0.025197742506861687,
0.008079164661467075,
-0.004582550376653671,
-0.0031069843098521233,
0.017183935269713402,
0.0018023524899035692,
0.01433838065713644,
0.04307547211647034,
0.021819274872541428,
-0.01622871309518814,
-0.0071742176078259945,
-0.03501138836145401,
-0.02757071517407894,
-0.0021190838888287544,
-0.0066262222826480865,
-0.02634400874376297,
0.027530495077371597,
-0.06266254186630249,
0.03322160616517067,
-0.006354738026857376,
0.044684264808893204,
-0.06065155193209648,
-0.03177369013428688,
-0.04778119549155235,
0.04154711589217186,
-0.03865128755569458,
-0.0023629169445484877,
0.034428201615810394,
-0.024936314672231674,
-0.010180652141571045,
-0.027409834787249565,
0.025157522410154343,
0.0016213631024584174,
-0.024936314672231674,
0.013986457139253616,
0.014489204622805119,
0.023488398641347885,
0.03137149289250374,
-0.034629300236701965,
0.0044920556247234344,
-0.055945828557014465,
-0.03287973627448082,
0.000843360205180943,
0.040883488953113556,
0.01210617832839489,
-0.07613619416952133,
-0.0037781530991196632,
0.024715105071663857,
0.002677134471014142,
0.0004213658976368606,
0.03458908200263977,
0.08623138070106506,
-0.06845420598983765,
-0.06837376207113266,
0.005082785151898861,
0.017354870215058327,
0.0598471537232399,
-0.007601553574204445,
-0.02282477170228958,
-0.017013002187013626,
0.0199389960616827,
0.050234608352184296,
0.01406689640134573,
0.011573265306651592,
0.06845420598983765,
0.027067966759204865,
0.003846024163067341,
0.06386914104223251,
0.03788710758090019,
-0.01409706100821495,
0.03487062081694603,
-0.0330205075442791,
0.002865665126591921,
-0.017435310408473015,
0.03527281805872917,
-0.03754524141550064,
0.010014745406806469,
0.024514004588127136,
0.04762031510472298,
-0.004042095970362425,
-0.04806273430585861,
0.005128032527863979,
0.0371229313313961,
-0.053693514317274094,
-0.027631044387817383,
0.01489140372723341,
-0.021075207740068436,
0.007063613273203373,
0.0029410773422569036,
0.02447378635406494,
-0.09387315809726715,
0.017073331400752068,
-0.023287300020456314,
-0.03495106101036072,
0.028797419741749763,
-0.007908230647444725,
0.02566027082502842,
-0.07601553946733475,
-0.01450931467115879,
0.06362782418727875,
0.02557983249425888,
0.023769937455654144,
-0.05558384954929352,
-0.08438126742839813,
0.018883224576711655,
-0.03239709883928299,
0.018682125955820084,
-0.02972247824072838,
0.03911381587386131,
-0.050113946199417114,
0.03740447014570236,
0.043155912309885025,
-0.003461421700194478,
-0.026082580909132957,
-0.0045423307456076145,
0.12476200610399246,
-0.0563882440328598,
0.013131784275174141,
0.022442681714892387,
-0.0034463393967598677,
0.012035793624818325,
0.006611139513552189,
0.04072260856628418,
0.030305664986371994,
-0.0054397364147007465,
-0.03692183271050453,
-0.0011236423160880804,
-0.037846889346838,
0.03052687458693981,
0.0019129571737721562,
0.04026008024811745,
-0.07271751016378403,
0.017023056745529175,
-0.014137281104922295,
-0.02901862934231758,
-0.0364391952753067,
0.06933904439210892,
-0.03108995221555233,
0.016148274764418602,
-0.010220872238278389,
0.02214103378355503,
0.05103900283575058,
0.0002576584811322391,
-0.003999362234026194,
-0.016932561993598938,
0.0023918249644339085,
0.007968559861183167,
0.02722884528338909,
0.0955623909831047,
-0.022864991798996925,
0.09709074348211288,
-0.0065658921375870705,
0.019727841019630432,
0.019375918433070183,
-0.058560118079185486,
-0.03444831073284149,
0.019375918433070183,
0.03102962300181389,
0.016480088233947754,
-0.010386778973042965,
-0.06105374917387962,
0.01877262070775032,
0.03615765646100044,
-0.034428201615810394,
-0.0037127959076315165,
-0.07050541788339615,
0.01918487437069416,
0.04649415984749794,
-0.03997854143381119,
-0.03670062497258186,
-0.03515215963125229,
0.04854537174105644,
-0.014267995953559875,
-0.01739509031176567,
-0.06523661315441132,
0.017304595559835434,
-0.06354738026857376,
-0.04709745571017265,
0.050113946199417114,
-0.03589622676372528,
-0.029682258144021034,
0.08060060441493988,
-0.0220002643764019,
-0.060289572924375534,
-0.009989608079195023,
-0.0013109161518514156,
-0.01925525814294815,
-0.022442681714892387,
-0.02592170052230358,
-0.016741517931222916,
0.027188627049326897,
-0.05015416815876961,
0.03585600480437279,
0.020753448829054832,
0.003574540140107274,
-0.05248691886663437,
-0.04930955171585083,
0.017435310408473015,
0.010949857532978058,
0.00781270768493414,
-0.02401125803589821,
-0.03752513229846954,
-0.048585593700408936,
0.0118648586794734,
0.056026265025138855,
-0.032356876879930496,
0.011150956153869629,
0.030144786462187767,
0.015565086156129837,
0.014821019023656845,
-0.044121187180280685,
-0.008350648917257786,
0.025841260328888893,
0.019285423681139946,
-0.008033917285501957,
-0.0031346355099231005,
-0.03285962715744972,
-0.004451835993677378,
0.012980960309505463,
-0.01460986491292715,
0.004049637354910374,
0.04669525846838951,
-0.04641371965408325,
0.023689499124884605,
0.03569512814283371,
-0.003936518914997578,
-0.02028086595237255,
0.029119178652763367,
0.020652899518609047,
-0.02690708637237549,
-0.02242257259786129,
-0.04448316618800163,
-0.08494434505701065,
-0.026424448937177658,
0.0189033355563879,
-0.034146662801504135,
0.09387315809726715,
-0.008139494806528091,
-0.04987262934446335,
0.006455287802964449,
-0.055744726210832596,
-0.07022387534379959,
-0.025338511914014816,
0.0012028252240270376,
0.039857883006334305,
0.061375509947538376,
-0.013252444565296173,
0.009743261151015759,
-0.012629036791622639,
-0.05799704045057297,
-0.02139696665108204,
-0.006731799338012934,
0.021236086264252663,
-0.01378535758703947,
0.07070651650428772,
0.0032276439014822245,
-0.04581042379140854,
0.05248691886663437
] |
723,075
|
mathprimes
|
_is_prime
|
Returns whether or not an integer is prime.
Uses the fact that all prime numbers except two and three are one more or one less than a multiple of six.
The checks whether a given list of smaller primes are factors.
If not then the number is prime.
|
def _is_prime(i: int, prev: Tuple[int]) -> bool:
"""
Returns whether or not an integer is prime.
Uses the fact that all prime numbers except two and three are one more or one less than a multiple of six.
The checks whether a given list of smaller primes are factors.
If not then the number is prime.
"""
if i in {0,1}:
return False
if i in {2,3}:
return True
if (i - 1) % 6 == 0 or (i + 1) % 6 == 0:
for j in prev:
if i % j == 0:
return False
return True
return False
|
(i: int, prev: Tuple[int]) -> bool
|
[
0.023146670311689377,
0.007079935632646084,
-0.058338671922683716,
0.04765268787741661,
-0.0464821383357048,
0.0018950628582388163,
0.04323480650782585,
0.012422927655279636,
-0.06645699590444565,
0.032586585730314255,
0.05954698100686073,
-0.0025582166854292154,
0.006900577340275049,
-0.008873519487679005,
-0.055166859179735184,
-0.050182584673166275,
0.035626236349344254,
0.0029358132742345333,
-0.011478936299681664,
0.0018750029848888516,
-0.05977353826165199,
0.03953436017036438,
-0.015490899793803692,
0.06192583963274956,
0.007245134096592665,
0.11395864933729172,
0.06849601864814758,
0.02331658825278282,
-0.005550669506192207,
0.04263065382838249,
-0.014046592637896538,
0.045953504741191864,
0.017718719318509102,
0.009458794258534908,
0.03668350726366043,
0.05237264558672905,
-0.005602589342743158,
0.0388546884059906,
-0.06336070597171783,
0.0384770892560482,
0.011290137656033039,
-0.026261841878294945,
-0.04338584840297699,
0.012715565040707588,
-0.005022034514695406,
-0.03283202275633812,
0.06215239688754082,
0.02201388031244278,
-0.016614248976111412,
-0.03760861977934837,
0.00507395388558507,
-0.033606093376874924,
0.027583429589867592,
-0.021768443286418915,
-0.03983644023537636,
0.016368811950087547,
0.012281328439712524,
-0.005423231050372124,
-0.027262473478913307,
0.010346146300435066,
-0.0012330887839198112,
-0.025204570963978767,
0.10784158110618591,
-0.005763067863881588,
-0.00204256153665483,
-0.02335434779524803,
-0.012101970613002777,
-0.06252999603748322,
-0.05558221414685249,
0.03919452428817749,
-0.06271879374980927,
0.018455032259225845,
-0.029358133673667908,
-0.0001973532052943483,
-0.041082508862018585,
0.019106386229395866,
0.03020772524178028,
-0.0005672798724845052,
-0.01100694015622139,
-0.0536942332983017,
0.030755240470170975,
-0.06989312916994095,
-0.003157651284709573,
0.012507886625826359,
0.00327093037776649,
0.016736967489123344,
0.06373830139636993,
-0.014943384565412998,
-0.020843330770730972,
0.06842049956321716,
-0.03843932971358299,
-0.004406080115586519,
0.03137827664613724,
-0.05157969146966934,
0.032511066645383835,
0.03324737772345543,
0.0009268816211260855,
-0.011035259813070297,
-0.0601888932287693,
-0.06445573270320892,
0.013423558324575424,
0.011998130939900875,
-0.019597262144088745,
-0.08080566674470901,
0.03938332200050354,
-0.03600383177399635,
-0.041384585201740265,
-0.03774077817797661,
0.021315326914191246,
-0.03220898658037186,
-0.08322228491306305,
0.01573633775115013,
-0.050371382385492325,
0.022618034854531288,
-0.018757110461592674,
0.020541254431009293,
0.03252994641661644,
-0.00763689074665308,
-0.01652929000556469,
-0.029509171843528748,
-0.016708647832274437,
0.04753940925002098,
-0.016312172636389732,
0.01615169271826744,
0.013763395138084888,
0.013112041167914867,
0.0533166378736496,
0.04780372604727745,
-0.04093146696686745,
0.007566091604530811,
0.032813142985105515,
0.014811225235462189,
0.026148563250899315,
0.007641610689461231,
-0.032511066645383835,
-0.01721840351819992,
-0.03415361046791077,
0.019172465428709984,
-0.017463842406868935,
-0.04270617291331291,
-0.04651989787817001,
-0.016736967489123344,
-0.0483701229095459,
0.04425431787967682,
-0.027904387563467026,
0.013074281625449657,
-0.02235371805727482,
0.06336070597171783,
0.023524265736341476,
0.028735099360346794,
0.0399874784052372,
-0.021239807829260826,
0.06336070597171783,
-0.006475781090557575,
-0.017926396802067757,
0.002430777996778488,
0.0165670495480299,
-0.01843615248799324,
0.027507910504937172,
-0.023864103481173515,
0.034795522689819336,
0.015283221378922462,
-0.02612968347966671,
0.08125878125429153,
-0.03851485252380371,
0.008788560517132282,
-0.017879197373986244,
-0.017577121034264565,
0.005630908999592066,
0.08427955210208893,
0.017794238403439522,
0.04002523794770241,
0.0028437741566449404,
0.049502912908792496,
-0.0010053508449345827,
0.041497863829135895,
0.025922004133462906,
-0.0438012033700943,
0.046331100165843964,
0.014037152752280235,
-0.05690380558371544,
-0.025770965963602066,
-0.00039323142846114933,
0.0013109680730849504,
0.009808070957660675,
0.018341753631830215,
0.010988060384988785,
-0.0029995327349752188,
0.008080566301941872,
-0.013055401854217052,
-0.10557600110769272,
-0.021353086456656456,
0.014405309222638607,
0.0012732084142044187,
-0.02864070050418377,
0.025695446878671646,
0.012385168112814426,
0.018993107602000237,
0.02040909416973591,
-0.04738837108016014,
0.007089375518262386,
-0.0015599458711221814,
-0.04482071474194527,
-0.03205794841051102,
0.010308386757969856,
-0.020314695313572884,
-0.07952184230089188,
-0.01786031760275364,
0.06464453041553497,
0.02003149874508381,
-0.001125119742937386,
-0.02010701783001423,
-0.00017980087432079017,
0.10459425300359726,
0.00817024614661932,
0.0814853385090828,
0.050371382385492325,
-0.02441161870956421,
-0.006230343598872423,
-0.008505363017320633,
0.023127790540456772,
-0.026186322793364525,
0.04712405428290367,
0.006173703819513321,
0.01610449329018593,
0.015113302506506443,
0.04738837108016014,
0.041950978338718414,
-0.0567527636885643,
-0.004063883330672979,
-0.0038208053447306156,
-0.017926396802067757,
0.017511041834950447,
0.04697301238775253,
0.007061055861413479,
0.04791700467467308,
-0.03787293657660484,
0.0036579668521881104,
0.00034131191205233335,
0.06339846551418304,
0.02178732305765152,
0.021051008254289627,
0.010383905842900276,
0.013650116510689259,
-0.003410169156268239,
-0.02033357508480549,
-0.007419772911816835,
0.028395261615514755,
-0.03911900520324707,
0.03421024978160858,
-0.04693525284528732,
-0.0380806140601635,
-0.04923859238624573,
-0.07253630459308624,
0.04044059291481972,
-0.00799560733139515,
-0.01544370036572218,
0.028508542105555534,
0.046255581080913544,
-0.007839849218726158,
-0.005654508713632822,
-0.058149874210357666,
0.046255581080913544,
0.05282576009631157,
-0.002570016775280237,
-0.015141623094677925,
0.04863443970680237,
0.00950599368661642,
0.004011963494122028,
0.012092530727386475,
0.12581518292427063,
-0.045802462846040726,
0.030566442757844925,
0.04444311559200287,
0.04689749330282211,
-0.03630591183900833,
-0.01843615248799324,
0.018945908173918724,
0.025695446878671646,
0.009741991758346558,
0.05305231735110283,
0.013253639452159405,
-0.020956609398126602,
0.008354323916137218,
0.00357536762021482,
-0.009732551872730255,
0.014801785349845886,
0.04289497062563896,
0.032964181154966354,
-0.0041252425871789455,
-0.042139776051044464,
-0.0099968696013093,
-0.04353688657283783,
-0.0472373329102993,
0.02227819710969925,
0.09205804765224457,
0.018993107602000237,
0.049616191536188126,
-0.029509171843528748,
-0.011771573685109615,
0.03073636069893837,
-0.06079304963350296,
-0.01972942054271698,
-0.0647578090429306,
-0.01907806657254696,
0.02833862230181694,
-0.01190373208373785,
0.009694792330265045,
0.025393370538949966,
-0.02845190279185772,
0.015500339679419994,
0.028772858902812004,
0.009284155443310738,
0.0008265824872069061,
0.007098815403878689,
-0.045575905591249466,
0.02148524485528469,
-0.0674009919166565,
-0.03402145206928253,
0.011743253096938133,
0.002310418989509344,
0.038533732295036316,
0.04312152788043022,
0.03347393497824669,
0.014273150824010372,
-0.041686661541461945,
-0.01068598311394453,
-0.024317219853401184,
-0.05607309192419052,
0.017265602946281433,
-0.03843932971358299,
0.01862495020031929,
0.07382012903690338,
0.06657027453184128,
-0.007032736204564571,
0.025091292336583138,
-0.01197925116866827,
-0.02227819710969925,
0.02860294096171856,
-0.020843330770730972,
0.04028955474495888,
-0.06041545048356056,
-0.026828236877918243,
-0.03118947707116604,
0.021617403253912926,
-0.012253008782863617,
-0.003598967334255576,
0.01969166100025177,
-0.010091268457472324,
0.059018343687057495,
-0.011488376185297966,
-0.01230020821094513,
0.046331100165843964,
-0.007297053933143616,
-0.008977358229458332,
0.03600383177399635,
-0.0077360100112855434,
-0.10127139836549759,
0.0011074199574068189,
0.03683454543352127,
0.06940224766731262,
0.017492162063717842,
0.0041252425871789455,
0.03802397474646568,
-0.025110172107815742,
-0.03332289680838585,
-0.05165521055459976,
-0.0005425000563263893,
-0.02684711664915085,
0.03755198046565056,
0.017926396802067757,
0.00845816358923912,
-0.025298969820141792,
-0.06547524780035019,
0.020125897601246834,
0.019974859431385994,
-0.004880435764789581,
0.0358150340616703,
-0.06098184734582901,
-0.05157969146966934,
0.010478304699063301,
-0.0264695193618536,
-0.036513589322566986,
0.02971685118973255,
-0.036589108407497406,
-0.016274413093924522,
-0.01794527657330036,
-0.0015611258568242192,
0.041724421083927155,
0.036589108407497406,
-0.041724421083927155,
0.010327266529202461,
0.03908124566078186,
-0.0449339933693409,
0.026110803708434105,
0.0203713346272707,
0.08790448307991028,
-0.046331100165843964,
-0.02403402142226696,
-0.035437438637018204,
0.04334808513522148,
-0.010487744584679604,
0.03271874412894249,
0.01344243809580803,
0.01226244866847992,
0.013678436167538166,
-0.006645699962973595,
-0.0007144834962673485,
0.0017688039224594831,
0.029037177562713623,
-0.019408464431762695,
-0.05237264558672905,
-0.021957240998744965,
-0.03290754184126854,
-0.023373227566480637,
0.014074912294745445,
-0.028357502073049545,
-0.016935206949710846,
0.00813248660415411,
0.014074912294745445,
0.08594097942113876,
-0.04444311559200287,
-0.01169605366885662,
0.016047853976488113,
-0.05233488604426384,
-0.01222468912601471,
0.007122415583580732,
-0.013376358896493912,
0.01920078508555889,
0.011847092770040035,
-0.01995597966015339,
0.010704862885177135,
0.06256775557994843,
-0.033039700239896774,
-0.006626819726079702,
-0.0046774777583777905,
-0.0396098792552948,
0.05558221414685249,
-0.03115171752870083,
0.012215249240398407,
0.09047213941812515,
0.026714958250522614,
0.008977358229458332,
0.020918849855661392,
0.09908134490251541,
0.07483964413404465,
-0.01222468912601471,
0.04002523794770241,
-0.005781947635114193,
0.017624320462346077,
-0.058300912380218506,
-0.01182821299880743,
-0.05309007689356804,
-0.03953436017036438,
0.019521743059158325,
-0.022636914625763893,
-0.029131576418876648,
0.010166787542402744,
0.03755198046565056,
0.07687865942716599,
0.017463842406868935,
0.05263696238398552,
-0.04308376833796501,
-0.011960371397435665,
-0.05074898153543472,
-0.06562628597021103,
0.03073636069893837,
-0.02833862230181694,
0.0069052972830832005,
0.013385798782110214,
0.041309066116809845,
0.004852116107940674,
0.011686613783240318,
0.0006265743286348879,
-0.013187560252845287,
0.03077412024140358,
-0.036513589322566986,
0.005876346491277218,
0.03202018886804581,
0.004281001165509224,
-0.0350409634411335,
0.012583405710756779,
0.054675985127687454,
-0.007127135526388884,
0.014660187065601349,
-0.050295863300561905,
-0.09772199392318726,
0.00803808681666851,
-0.011261817999184132,
-0.050144825130701065,
0.022712433710694313,
-0.06313414871692657,
0.019672781229019165,
0.04402776062488556,
0.03309633955359459,
-0.0639648586511612,
0.0441787987947464,
0.05769675597548485,
0.04281945154070854,
-0.0015422459691762924,
-0.013395238667726517,
0.0643424540758133,
0.05799883231520653,
-0.036324791610240936,
0.03166147321462631,
0.010251747444272041,
0.04089370742440224,
-0.04780372604727745,
-0.06237895414233208,
0.0399874784052372,
0.013064841739833355,
-0.05222160741686821,
0.023750824853777885,
-0.005479870364069939,
0.03168035298585892,
-0.04319704696536064,
0.028244223445653915,
-0.014443068765103817,
0.05161745101213455,
-0.029282614588737488,
0.06619267910718918,
-0.049540672451257706,
-0.0199937392026186,
0.012451247312128544,
-0.025884244590997696,
-0.006928896997123957,
-0.020635653287172318,
-0.0658906027674675,
-0.06271879374980927,
-0.06271879374980927,
-0.01602897420525551,
-0.009378555230796337,
-0.003792485687881708,
-0.00005866759238415398,
-0.06811842322349548,
-0.03141603618860245,
0.00003462531094555743,
0.00015870855713728815,
0.06373830139636993,
-0.008401523344218731,
0.008802720345556736,
0.0038680050056427717,
0.02399626187980175,
0.00918031670153141,
0.030490923672914505,
0.03411585092544556,
-0.03783517703413963,
0.06003785505890846,
0.013838914223015308,
-0.02388298325240612,
-0.022882351651787758,
-0.0008737820899114013,
0.020503494888544083,
-0.02426058053970337,
0.03515424206852913,
0.04719957336783409,
0.03283202275633812,
-0.002742295153439045,
0.028093185275793076,
0.008401523344218731,
-0.02327882871031761,
-0.008288244716823101,
0.024354979395866394,
-0.08639409393072128,
-0.003860925091430545,
-0.07170558720827103,
-0.005078673828393221,
-0.028584061190485954,
0.015424819663167,
0.0009262916282750666,
0.05327887833118439,
0.04357464611530304,
-0.017265602946281433,
0.03220898658037186,
0.05157969146966934,
-0.03396481275558472,
0.006678739562630653,
0.013470757752656937,
0.025393370538949966,
-0.03149155527353287,
-0.008736641146242619,
-0.02235371805727482,
0.005857466720044613,
-0.023486506193876266,
0.025015773251652718,
0.01744496263563633,
-0.020125897601246834,
0.014509147964417934,
-0.027942147105932236,
0.029660211876034737,
-0.01315924059599638,
0.010081828571856022,
-0.04402776062488556,
-0.05629964917898178,
-0.009520153515040874,
-0.0060698650777339935,
0.019408464431762695,
-0.050182584673166275,
-0.018200155347585678,
0.007740729954093695,
-0.09107629209756851,
-0.000246322771999985,
-0.01878543011844158,
-0.02582760527729988,
-0.0060887448489665985,
0.005224992521107197,
-0.013867233879864216,
0.02025805599987507,
-0.01388611365109682,
-0.02463817596435547,
0.0056261890567839146,
0.003580087563022971,
0.011054139584302902,
-0.05320335924625397,
-0.037382062524557114,
0.04032731428742409,
-0.021032128483057022,
-0.014046592637896538,
0.020748931914567947,
-0.0011935591464862227,
-0.09689128398895264,
0.0132347596809268,
0.03811837360262871,
-0.0019316425314173102,
-0.04466967657208443,
-0.06547524780035019,
0.0693267285823822,
-0.030830759555101395,
0.022561395540833473,
-0.045651424676179886,
0.024543777108192444,
0.03145379573106766,
0.046444378793239594,
0.004080403130501509,
-0.00033216699375770986,
-0.007471692282706499,
0.005942426156252623,
-0.02548776939511299,
-0.014631867408752441,
0.005206112749874592,
-0.046066783368587494,
0.006003785412758589,
-0.035437438637018204,
-0.04840788245201111,
0.03115171752870083,
0.0020944809075444937,
0.046331100165843964,
0.015094422735273838,
0.07004416733980179,
-0.058489710092544556,
0.018341753631830215,
0.05580877512693405,
0.033001940697431564,
-0.041309066116809845,
-0.050031546503305435,
-0.017360001802444458,
0.015132183209061623,
0.005866906605660915,
0.0021487604826688766,
-0.005871626548469067,
0.06483333557844162,
0.01085590198636055,
-0.027224713936448097,
-0.03290754184126854,
0.027432391420006752,
0.0799749568104744,
0.021806202828884125,
0.01907806657254696,
0.016963526606559753,
0.012234129011631012,
-0.05592205375432968,
0.018341753631830215,
0.023977382108569145,
-0.07514172047376633,
-0.007079935632646084,
0.02410954050719738,
-0.0403650738298893,
0.00901039782911539,
-0.05633740872144699,
-0.013999393209815025,
-0.03945884108543396,
-0.041044749319553375,
-0.013281959109008312,
0.020862210541963577,
-0.005763067863881588,
0.030528683215379715,
-0.011781013570725918,
-0.007235694210976362,
0.004205482080578804,
-0.01581185683608055,
-0.07740730047225952,
-0.011271257884800434,
-0.0255255289375782,
-0.011582775041460991,
-0.007405612617731094,
-0.01755824126303196,
-0.04738837108016014,
0.09024558216333389,
0.01483954582363367,
-0.06139720231294632,
0.022957872599363327,
-0.05939594283699989,
0.009732551872730255,
0.06173704192042351,
-0.03828829154372215,
-0.018086876720190048,
-0.041573382914066315,
-0.0238074641674757,
0.024279460310935974,
-0.003473888384178281,
-0.0559975728392601,
0.018672151491045952,
-0.021919481456279755,
-0.03991195932030678,
0.00017050845781341195,
0.01832287386059761,
0.017416642978787422,
-0.008920718915760517,
0.06143496185541153,
0.0008212725515477359,
0.06419141590595245,
-0.02684711664915085,
-0.0024614576250314713,
0.03202018886804581,
-0.09583400934934616,
-0.020427973940968513,
0.013187560252845287,
-0.03001892752945423,
0.009491833858191967,
-0.04444311559200287,
-0.022655794396996498,
0.006707059219479561,
-0.07491516321897507,
-0.0014926864532753825,
0.011110778898000717,
-0.04821908101439476,
0.0038326052017509937,
0.03100067935883999,
-0.037419822067022324,
-0.06721218675374985,
0.016170572489500046,
-0.052183847874403,
0.019030867144465446,
-0.004453279543668032,
-0.005201392807066441,
-0.0006649239803664386,
0.011950931511819363,
-0.019483983516693115,
0.013735075481235981,
-0.06373830139636993,
-0.01725616306066513,
0.011667734012007713,
0.00034455687273293734,
-0.003983643837273121,
0.03972316160798073,
0.02441161870956421,
-0.022542515769600868,
0.002541696885600686,
-0.04946514964103699,
-0.012215249240398407,
-0.022844592109322548,
0.04689749330282211,
0.05580877512693405,
0.0017227843636646867,
0.036551348865032196,
0.02410954050719738,
0.0008684720960445702,
0.0019009627867490053
] |
723,076
|
mathprimes
|
is_prime
|
A function that implents ``_is_prime`` from above but will auto generate primes if not given.
|
def is_prime(number: int, primes = None) -> bool:
"""A function that implents ``_is_prime`` from above but will auto generate primes if not given."""
if primes is None:
for i, primes in prime_gen():
if i >= number:
break
return number in primes
|
(number: int, primes=None) -> bool
|
[
0.04924516752362251,
-0.02034691907465458,
-0.053333304822444916,
0.015246124006807804,
-0.0025761823635548353,
0.02934832125902176,
-0.001298639690503478,
0.005893105175346136,
-0.07403653115034103,
0.029292061924934387,
0.01551804132759571,
0.025278937071561813,
0.019971860572695732,
0.020815741270780563,
-0.009334266185760498,
-0.06330986320972443,
0.03904357925057411,
-0.009798401035368443,
0.013727137818932533,
-0.009484289214015007,
-0.04046880081295967,
0.05168304964900017,
-0.008330984972417355,
0.037955909967422485,
-0.0016936231404542923,
0.11259253323078156,
0.053820881992578506,
0.016174394637346268,
0.006882322020828724,
0.029610861092805862,
-0.005063288379460573,
-0.006887009833008051,
-0.0072855097241699696,
0.06473508477210999,
0.04466945677995682,
0.07504918426275253,
-0.002763711614534259,
0.06721046566963196,
-0.05513358488678932,
-0.009976553730666637,
0.051495518535375595,
-0.0031293935608118773,
-0.03026721440255642,
0.0009845283348113298,
-0.008387243375182152,
-0.031279873102903366,
0.0415564700961113,
0.05854661762714386,
-0.05190808326005936,
-0.03960616886615753,
0.045119527727365494,
-0.03165493160486221,
0.04331924766302109,
-0.048870112746953964,
-0.035536784678697586,
0.024210020899772644,
0.03896857053041458,
0.03444911539554596,
0.007876226678490639,
0.009362395852804184,
-0.0018600552575662732,
-0.005639940965920687,
0.026066560298204422,
-0.04534456133842468,
0.0026511941105127335,
-0.01721518114209175,
0.007913732901215553,
-0.05115796625614166,
-0.007548050489276648,
0.04980775713920593,
-0.019934354349970818,
0.006315045990049839,
-0.05367085710167885,
-0.007684009149670601,
-0.010661035776138306,
0.009390524588525295,
-0.038162194192409515,
0.01970931887626648,
-0.01672760583460331,
-0.023441150784492493,
0.010539141483604908,
-0.062259696424007416,
-0.02494138479232788,
-0.041856519877910614,
0.0015435997629538178,
-0.03439285606145859,
0.055733680725097656,
-0.01548053603619337,
0.030529754236340523,
0.0685981810092926,
-0.009732766076922417,
0.013595866970717907,
0.021247059106826782,
-0.05832158401608467,
0.05190808326005936,
0.005161741282790899,
0.031148601323366165,
0.0316174253821373,
-0.06139706075191498,
-0.05370836332440376,
0.012245656922459602,
-0.011082976125180721,
0.0006217765039764345,
-0.042269084602594376,
0.01666196994483471,
-0.04148146137595177,
-0.06079696863889694,
0.005353958811610937,
0.05805904045701027,
0.0006534220883622766,
-0.06852316856384277,
-0.02878573350608349,
0.008288790471851826,
-0.021078282967209816,
-0.0561087392270565,
0.015836840495467186,
0.01431785523891449,
0.029817143455147743,
-0.033061400055885315,
-0.06207216531038284,
-0.030567260459065437,
0.03495544567704201,
-0.012180021964013577,
-0.014805430546402931,
0.004718703683465719,
0.02075948379933834,
0.03664320707321167,
0.022991079837083817,
0.0032559758983552456,
-0.0017194084357470274,
0.05130799114704132,
0.06439752876758575,
0.0492076650261879,
0.04039379209280014,
-0.025747759267687798,
-0.031936224550008774,
-0.058509111404418945,
0.02437879703938961,
-0.003858413314446807,
0.024266278371214867,
-0.02991090901196003,
-0.0029793702997267246,
-0.03578057140111923,
0.013380208984017372,
0.007393338717520237,
-0.02132207155227661,
0.018677908927202225,
0.03720579296350479,
0.010229717940092087,
0.024903878569602966,
0.050857920199632645,
-0.0063900575041770935,
0.07654941827058792,
-0.02424752712249756,
-0.03716828674077988,
-0.014627277851104736,
0.03054850734770298,
0.0000021747162008978194,
-0.002644161693751812,
-0.053483329713344574,
0.07898730039596558,
0.08843877166509628,
-0.015077347867190838,
0.032780103385448456,
-0.04151896759867668,
-0.0031458025332540274,
-0.04189402610063553,
0.011148611083626747,
0.05329579859972,
0.07152363657951355,
0.00177566718775779,
0.04523204267024994,
0.01786215603351593,
0.06188463792204857,
0.0596717931330204,
0.0378621481359005,
0.006685416214168072,
-0.029367074370384216,
0.03480542078614235,
0.02850443869829178,
-0.06132204830646515,
-0.030848553404211998,
-0.012592585757374763,
0.033698998391628265,
-0.00543834688141942,
0.001292779459618032,
-0.000998593051917851,
-0.03666196018457413,
-0.001671354053542018,
-0.03411156311631203,
-0.10434124618768692,
-0.017477722838521004,
0.043056704103946686,
0.030435990542173386,
-0.014345983974635601,
0.006033752113580704,
0.017768392339348793,
0.006863568909466267,
0.009939047507941723,
-0.0015072659589350224,
0.016774486750364304,
0.014580396004021168,
-0.027191733941435814,
-0.020740730687975883,
-0.009929671883583069,
-0.011673692613840103,
-0.04136894270777702,
-0.02977963723242283,
0.05749645456671715,
0.020365672186017036,
0.004861694760620594,
-0.03613687679171562,
0.007923108525574207,
0.10921701043844223,
0.024059997871518135,
0.0696108415722847,
0.049507711082696915,
-0.05273321270942688,
-0.01737458072602749,
-0.012076880782842636,
0.02601030096411705,
0.0038537252694368362,
0.05509607866406441,
0.032067492604255676,
0.027548039332032204,
0.04174400120973587,
0.04331924766302109,
0.02544771321117878,
-0.04125642403960228,
-0.006436939816921949,
0.0023652121890336275,
-0.028879497200250626,
-0.00232887826859951,
0.011983116157352924,
0.002134316833689809,
-0.014477254822850227,
-0.0189967080950737,
0.052845731377601624,
-0.01758086308836937,
0.008321608416736126,
0.033849023282527924,
0.034617889672517776,
0.020853247493505478,
-0.019578048959374428,
0.010942328721284866,
-0.021678376942873,
-0.031129848212003708,
0.033286433666944504,
-0.05798403173685074,
0.028804486617445946,
0.001901077339425683,
-0.027754321694374084,
-0.02537270076572895,
-0.015902476385235786,
0.023516163229942322,
-0.03467414900660515,
-0.055396128445863724,
-0.007299574092030525,
0.00648851040750742,
0.010754799470305443,
-0.024847619235515594,
-0.07036095857620239,
0.011964363045990467,
0.06777305155992508,
0.028954509645700455,
-0.021640870720148087,
0.005330517888069153,
0.009390524588525295,
0.012095633894205093,
-0.004268633667379618,
0.10396619141101837,
-0.0428316704928875,
0.007576179690659046,
0.053633350878953934,
0.07489916682243347,
-0.024360043928027153,
0.007065162993967533,
-0.014683537185192108,
0.02721048705279827,
0.016896381974220276,
-0.005485229194164276,
0.04500700905919075,
-0.005930610932409763,
-0.029723379760980606,
-0.008504449389874935,
-0.015189865604043007,
-0.035255491733551025,
0.07069850713014603,
0.04613218456506729,
0.02552272565662861,
-0.036249395459890366,
0.015958735719323158,
-0.053183283656835556,
-0.054833538830280304,
-0.01652132347226143,
0.056671325117349625,
0.07051098346710205,
0.042981695383787155,
-0.04418187960982323,
-0.048382535576820374,
0.07313638925552368,
-0.06364741176366806,
-0.002644161693751812,
-0.07913732528686523,
-0.03354897350072861,
0.05599622055888176,
0.004345989320427179,
-0.022878563031554222,
0.024435056373476982,
0.01459914818406105,
-0.03304264694452286,
0.044894490391016006,
-0.03889355808496475,
0.014805430546402931,
0.03679322823882103,
-0.04046880081295967,
0.02295357547700405,
-0.028016863390803337,
-0.032630082219839096,
0.0029793702997267246,
-0.02884199097752571,
0.02077823504805565,
0.03294888138771057,
0.005241441074758768,
0.00048171565867960453,
-0.018237214535474777,
0.01063290610909462,
-0.04350677505135536,
-0.0762493759393692,
0.01991560123860836,
-0.0291982963681221,
-0.02685418166220188,
0.0938396155834198,
0.07328641414642334,
-0.03458038717508316,
0.02197842299938202,
-0.017749639227986336,
0.013473973609507084,
0.0037576165050268173,
0.005513358861207962,
0.028804486617445946,
-0.05449598655104637,
-0.055733680725097656,
-0.05112046003341675,
0.024341290816664696,
0.01878104917705059,
0.0189967080950737,
-0.026591641828417778,
-0.00227613584138453,
-0.027172982692718506,
-0.006901074666529894,
0.03949365019798279,
0.02616032399237156,
0.0020393801387399435,
0.030792295932769775,
0.014027184806764126,
0.052770718932151794,
-0.026685405522584915,
0.0025949354749172926,
0.043694306164979935,
0.009198307059705257,
0.005700887646526098,
-0.012526950798928738,
0.022559763863682747,
-0.03896857053041458,
-0.0108391884714365,
-0.043769314885139465,
0.008204402402043343,
-0.005293011665344238,
0.022015929222106934,
0.037805888801813126,
0.020178142935037613,
-0.025991547852754593,
-0.015368018299341202,
0.01399905513972044,
-0.020459435880184174,
-0.0185560155659914,
-0.0007049926207400858,
0.010904823429882526,
-0.03606186434626579,
-0.012245656922459602,
-0.001708859927020967,
0.04211905971169472,
0.0304734967648983,
-0.08258786052465439,
0.014130325987935066,
0.022559763863682747,
-0.014721042476594448,
0.017543356865644455,
-0.0240975022315979,
-0.014871066436171532,
-0.005522734951227903,
-0.019334260374307632,
-0.0012470692163333297,
-0.0019409272354096174,
0.016474440693855286,
0.09654003381729126,
-0.004631971474736929,
-0.0201406367123127,
-0.04073134437203407,
0.04883260652422905,
-0.01721518114209175,
-0.006511951796710491,
0.01927800290286541,
0.0014662439934909344,
-0.04470696300268173,
0.0033286435063928366,
-0.050707895308732986,
0.02934832125902176,
0.04474446922540665,
-0.04294418916106224,
-0.07741205394268036,
-0.03006093204021454,
-0.02424752712249756,
0.012076880782842636,
0.02090950682759285,
-0.04676978290081024,
-0.018049685284495354,
0.023441150784492493,
-0.0013959205243736506,
0.06571023166179657,
-0.03848099336028099,
-0.016549453139305115,
0.026329100131988525,
-0.036043114960193634,
0.0025808706413954496,
0.025991547852754593,
-0.030248461291193962,
0.014796053990721703,
0.024416303262114525,
-0.03606186434626579,
-0.052695706486701965,
0.06998589634895325,
-0.03268634155392647,
0.01109235268086195,
-0.012367551214993,
-0.03435534983873367,
0.03555553779006004,
-0.032348789274692535,
-0.011851845309138298,
0.09226436913013458,
-0.02139708213508129,
0.016408804804086685,
0.022447245195508003,
0.06792307645082474,
0.04365679994225502,
0.003926392644643784,
0.03716828674077988,
0.014749172143638134,
-0.02736051194369793,
-0.047369878739118576,
-0.014683537185192108,
-0.048720087856054306,
-0.05817155912518501,
0.03486168012022972,
-0.020665718242526054,
-0.054120928049087524,
0.00582747021690011,
0.031017331406474113,
0.039793696254491806,
0.0037318312097340822,
0.024697596207261086,
-0.027529288083314896,
-0.03664320707321167,
-0.04733237251639366,
-0.030717283487319946,
-0.023853715509176254,
-0.0002478901587892324,
0.039718687534332275,
0.009948424063622952,
0.0008907637093216181,
0.019465532153844833,
-0.006605716422200203,
-0.035049207508563995,
-0.022484751418232918,
0.03863101452589035,
-0.03264883533120155,
0.05010780319571495,
0.04046880081295967,
0.0038888868875801563,
-0.00671354541555047,
-0.008977960795164108,
0.06953582912683487,
0.04031877964735031,
-0.00007197165541583672,
-0.017562109977006912,
-0.031073588877916336,
-0.002160102128982544,
0.02649787627160549,
-0.051082953810691833,
-0.019015461206436157,
-0.04583213850855827,
0.02784808725118637,
0.035049207508563995,
-0.024903878569602966,
-0.04406936466693878,
0.008940454572439194,
0.044331904500722885,
0.012995773926377296,
-0.014092819765210152,
-0.017243310809135437,
0.06889823079109192,
0.0673229843378067,
-0.037524592131376266,
0.013849032111465931,
0.0007717998814769089,
0.0003226088301744312,
-0.017496474087238312,
-0.08356301486492157,
0.02820439264178276,
0.027060464024543762,
0.0021811991464346647,
0.0002613688411656767,
0.025841524824500084,
0.03351146727800369,
0.004240504000335932,
0.031729940325021744,
-0.03758085146546364,
0.018621649593114853,
-0.04088136553764343,
0.05565866827964783,
0.015705570578575134,
0.007219874300062656,
0.0272854994982481,
-0.029029520228505135,
-0.008213778957724571,
-0.04429439827799797,
-0.01763712242245674,
-0.06109701469540596,
0.026479123160243034,
0.04073134437203407,
-0.006905762944370508,
-0.0252414308488369,
0.02700420469045639,
-0.060009345412254333,
-0.04466945677995682,
0.014036561362445354,
0.014177207835018635,
0.06390995532274246,
-0.026329100131988525,
-0.017243310809135437,
-0.004310827702283859,
0.06998589634895325,
0.024059997871518135,
0.020046871155500412,
-0.004294418729841709,
-0.009127983823418617,
0.03259257599711418,
0.02119079977273941,
-0.034055303782224655,
0.010501635260879993,
0.035686809569597244,
0.032498810440301895,
-0.05895918235182762,
0.013005150482058525,
-0.013961548916995525,
0.00582747021690011,
-0.028879497200250626,
0.0028574762400239706,
0.013933420181274414,
-0.014496007934212685,
0.018949825316667557,
0.0032794170547276735,
-0.07009841501712799,
0.005925922654569149,
-0.05209561437368393,
-0.054533492773771286,
-0.015771206468343735,
0.0481950044631958,
-0.030811049044132233,
0.08326296508312225,
-0.021134542301297188,
-0.01247069239616394,
0.017130792140960693,
0.024153761565685272,
-0.006043128669261932,
-0.0036169695667922497,
0.02070322446525097,
-0.029254555702209473,
-0.0015131263062357903,
-0.025278937071561813,
-0.02544771321117878,
-0.048232510685920715,
-0.05509607866406441,
0.029048273339867592,
-0.010464129969477654,
-0.051495518535375595,
0.018368486315011978,
-0.008687290363013744,
0.01602436974644661,
0.0018963890615850687,
0.013792772777378559,
-0.06327235698699951,
-0.06657286733388901,
-0.007805902976542711,
0.025053901597857475,
0.036249395459890366,
-0.032217517495155334,
0.014730419032275677,
0.005302388221025467,
-0.09016404300928116,
0.008148143999278545,
-0.02090950682759285,
-0.0021905754692852497,
-0.033830270171165466,
0.048007477074861526,
0.0027801203541457653,
0.01559305377304554,
0.020328165963292122,
-0.03863101452589035,
-0.01913735456764698,
-0.016680723056197166,
-0.03401779755949974,
-0.026422865688800812,
-0.0504828616976738,
0.06319734454154968,
-0.01885606162250042,
-0.030811049044132233,
0.04883260652422905,
-0.012105010449886322,
-0.06721046566963196,
0.016830746084451675,
0.03379276394844055,
0.010745423845946789,
-0.031579919159412384,
-0.07669944316148758,
0.08266287297010422,
-0.06672289222478867,
0.02494138479232788,
-0.05322078987956047,
0.01602436974644661,
0.03354897350072861,
0.01629628799855709,
-0.008748237043619156,
0.017974674701690674,
-0.035124219954013824,
-0.011101729236543179,
0.004852318204939365,
0.011242375709116459,
-0.04140644893050194,
-0.06979837268590927,
-0.014261595904827118,
-0.033567726612091064,
-0.05577118694782257,
0.006324422545731068,
0.021847153082489967,
0.0629723072052002,
0.026610394939780235,
0.07748706638813019,
-0.08146268874406815,
0.012273786589503288,
0.02522267773747444,
0.0507454015314579,
-0.04399435222148895,
0.0032559758983552456,
-0.021378329023718834,
-0.01814345084130764,
-0.02062821201980114,
0.0005611225496977568,
0.012780115008354187,
0.08461317420005798,
-0.020796988159418106,
-0.007843408733606339,
-0.006971398368477821,
0.014796053990721703,
0.059859320521354675,
-0.019803084433078766,
0.0011796759208664298,
0.012423809617757797,
0.06709794700145721,
-0.056521303951740265,
-0.0031082965433597565,
0.032498810440301895,
-0.08386305719614029,
0.044894490391016006,
0.007730891462415457,
-0.03651193529367447,
0.013980302028357983,
-0.10899197310209274,
0.001484996872022748,
-0.04811999574303627,
-0.029592107981443405,
0.023628680035471916,
0.03975619003176689,
-0.028016863390803337,
0.013924043625593185,
-0.01017345953732729,
-0.040506307035684586,
0.02387246862053871,
0.0032864492386579514,
-0.011308010667562485,
-0.02282230369746685,
-0.013127044774591923,
0.0028223146218806505,
-0.030661024153232574,
0.04294418916106224,
-0.05749645456671715,
0.06751051545143127,
0.02820439264178276,
-0.05569617450237274,
0.018443496897816658,
-0.032348789274692535,
-0.018949825316667557,
0.09533984959125519,
-0.0696108415722847,
-0.013708384707570076,
-0.018462250009179115,
-0.014889818616211414,
0.032630082219839096,
-0.024547573179006577,
-0.056446291506290436,
0.007088603917509317,
0.030360978096723557,
-0.049507711082696915,
0.003152834717184305,
-0.04571961984038353,
0.00009918536670738831,
0.057308923453092575,
0.04988276958465576,
-0.013933420181274414,
0.0371120311319828,
0.0012705103727057576,
-0.010595399886369705,
-0.003450537333264947,
-0.04380682110786438,
-0.024116255342960358,
-0.0031575229950249195,
-0.06285978853702545,
0.01737458072602749,
-0.032498810440301895,
0.013089538551867008,
-0.0038888868875801563,
-0.05067039281129837,
0.0017405054531991482,
0.05179556831717491,
-0.06102200224995613,
0.00871542003005743,
0.016924511641263962,
-0.018321603536605835,
-0.09031406790018082,
-0.03666196018457413,
-0.0459071509540081,
-0.009807777591049671,
0.007383962627500296,
0.02664789929986,
0.012348798103630543,
0.011598681099712849,
-0.04418187960982323,
0.006994839292019606,
0.009437407366931438,
-0.037805888801813126,
-0.025053901597857475,
0.03471165522933006,
0.02027190662920475,
0.014186584390699863,
-0.02394747920334339,
-0.04706982895731926,
0.04635721817612648,
-0.029967166483402252,
-0.003924048505723476,
-0.027754321694374084,
0.06582275032997131,
0.004765585996210575,
-0.020890753716230392,
0.04729486629366875,
0.014186584390699863,
0.013070785440504551,
0.018696662038564682
] |
723,077
|
mathprimes
|
prime_factorization
|
Given any integer and an optional iterable of primes.
Returns a dictionary of the prime factors and their occurences.
|
def prime_factorization(number: int, primes = None):
"""
Given any integer and an optional iterable of primes.
Returns a dictionary of the prime factors and their occurences.
"""
if number <= 1:
return None
# If primes is not given autogenerate them.
if primes is None:
for i, primes in prime_gen():
if i >= number:
break
for prime in primes:
if number % prime == 0:
if (next_number := number // prime) == 1:
return {prime: 1}
result = prime_factorization(next_number, primes)
if result.get(prime):
result[prime] += 1
else:
result[prime] = 1
return result
raise ValueError(f"Not supposed to happen? {number}")
|
(number: int, primes=None)
|
[
0.01729862205684185,
-0.00565258739516139,
-0.030961407348513603,
0.041471242904663086,
-0.004035871475934982,
0.02185288444161415,
-0.006812456529587507,
-0.03813839331269264,
-0.03365040943026543,
-0.018775679171085358,
-0.004748362582176924,
0.04480409249663353,
-0.02172032743692398,
0.002107884967699647,
0.0003840587451122701,
-0.027211952954530716,
0.060786616057157516,
0.03550620377063751,
-0.02223161607980728,
0.0008391299052163959,
-0.011589224450290203,
0.035411518067121506,
0.025943197309970856,
0.06942172348499298,
-0.01439184695482254,
0.0688915029168129,
0.03586599975824356,
-0.0002989917993545532,
0.020262205973267555,
-0.0054774233140051365,
-0.005183905363082886,
0.04344065487384796,
-0.044879838824272156,
0.029105616733431816,
0.005529499147087336,
0.014050987549126148,
-0.012981067411601543,
0.06911873817443848,
-0.09703134745359421,
0.00927422009408474,
0.038933735340833664,
-0.033025503158569336,
-0.07695850729942322,
-0.001840404816903174,
-0.029238173738121986,
-0.024844873696565628,
0.020735621452331543,
0.029351793229579926,
-0.012450841255486012,
-0.06544502824544907,
-0.035146404057741165,
-0.07142900675535202,
0.05389368161559105,
-0.03499491140246391,
-0.0017256013816222548,
0.021928630769252777,
-0.0013172801118344069,
-0.02094392478466034,
0.004580299835652113,
0.01982666365802288,
-0.037664979696273804,
-0.000004563101811072556,
-0.007063366938382387,
-0.015262932516634464,
-0.05544648319482803,
-0.01691988855600357,
0.0034819748252630234,
-0.012981067411601543,
-0.03258996084332466,
0.03751348704099655,
0.010102697648108006,
-0.029597969725728035,
-0.010651860386133194,
-0.013587039895355701,
0.04431173950433731,
0.049424633383750916,
-0.019249096512794495,
-0.025185732170939445,
0.05415879189968109,
-0.017497455701231956,
0.044993460178375244,
-0.02336781471967697,
-0.034635115414857864,
-0.05874146148562431,
0.027287699282169342,
-0.006187547463923693,
0.09339551627635956,
-0.011532414704561234,
0.011002188548445702,
0.0464705154299736,
-0.05290897563099861,
-0.012924257665872574,
0.04862929508090019,
-0.025450846180319786,
0.014126733876764774,
0.012659144587814808,
-0.025072112679481506,
-0.01752586103975773,
-0.029749462381005287,
-0.05601458251476288,
0.05279535427689552,
0.02463657036423683,
-0.017611077055335045,
-0.04779608175158501,
0.0203190166503191,
-0.09771306812763214,
-0.015016756020486355,
-0.03164312615990639,
0.03972907364368439,
-0.007768757175654173,
-0.09188058227300644,
-0.026037881150841713,
-0.03580918908119202,
0.013085219077765942,
-0.04003205895423889,
0.012138387188315392,
-0.03980481997132301,
-0.029238173738121986,
0.009174802340567112,
-0.008668247610330582,
-0.07771597802639008,
0.040069933980703354,
-0.009705028496682644,
0.015859436243772507,
0.00285469857044518,
0.005098690744489431,
0.028367089107632637,
0.033498916774988174,
0.03764604404568672,
0.03467299044132233,
0.056469064205884933,
0.025072112679481506,
0.034010209143161774,
0.028083039447665215,
-0.0007308360072784126,
-0.02047050930559635,
-0.07233797013759613,
-0.009733433835208416,
0.008502552285790443,
0.05764313414692879,
0.020356889814138412,
-0.022553538903594017,
-0.06419521570205688,
0.0026676992420107126,
0.04150911793112755,
-0.026340868324041367,
0.06499055027961731,
0.040448665618896484,
-0.016077207401394844,
0.022818652912974358,
0.051431916654109955,
0.003257102333009243,
0.07048217952251434,
-0.02929498441517353,
-0.01665477640926838,
0.025469781830906868,
0.055597979575395584,
-0.05313621461391449,
-0.039956312626600266,
-0.017999276518821716,
0.05063657835125923,
0.027211952954530716,
-0.02639767713844776,
0.04533431679010391,
-0.004821742419153452,
0.019485803321003914,
0.013662786222994328,
-0.040713779628276825,
0.032987628132104874,
-0.011560819111764431,
-0.030071385204792023,
-0.007110708858817816,
0.010045887902379036,
0.04067590460181236,
0.055863089859485626,
0.03334742411971092,
0.0007332030800171196,
-0.04181210324168205,
0.03950183466076851,
0.05999127775430679,
-0.020868178457021713,
-0.017478520050644875,
-0.04658413678407669,
0.03671814873814583,
-0.013407141901552677,
-0.00813328754156828,
0.04431173950433731,
-0.016105612739920616,
0.006339040584862232,
-0.0020629102364182472,
-0.04529644548892975,
-0.023026956245303154,
0.021644581109285355,
0.03849819302558899,
0.0064952680841088295,
-0.004471414256840944,
-0.02261034958064556,
0.004073745105415583,
0.0075983270071446896,
-0.017753101885318756,
-0.04571305215358734,
0.02601894550025463,
-0.010443557985126972,
0.032495275139808655,
-0.013397673144936562,
0.014088860712945461,
-0.022288426756858826,
0.005941370967775583,
0.0371536910533905,
0.002251093275845051,
-0.031737811863422394,
-0.04836418107151985,
-0.0036642400082200766,
0.05215150862932205,
-0.005131829530000687,
-0.04794757440686226,
0.08135180920362473,
-0.015831032767891884,
-0.030885661020874977,
-0.0297873355448246,
-0.017364900559186935,
0.017819378525018692,
0.07313330471515656,
-0.022799715399742126,
0.028083039447665215,
-0.030014576390385628,
0.03847925364971161,
0.0489322803914547,
-0.024920620024204254,
0.01261180266737938,
-0.016313916072249413,
-0.040827397257089615,
0.024333583191037178,
0.02321632206439972,
0.015442830510437489,
-0.019116539508104324,
-0.029749462381005287,
-0.023443561047315598,
0.007825566455721855,
0.0010373728582635522,
0.027685368433594704,
-0.01564166508615017,
0.0260000079870224,
0.014032050967216492,
-0.02639767713844776,
-0.022402046248316765,
0.0208303052932024,
0.026738537475466728,
-0.055219244211912155,
0.006353243254125118,
-0.038422442972660065,
-0.03344210982322693,
-0.01653168722987175,
-0.014959946274757385,
0.03158631548285484,
-0.03870649263262749,
-0.04060015827417374,
0.05870358645915985,
0.04041079059243202,
-0.020148586481809616,
0.018643122166395187,
-0.014477062039077282,
-0.014798984862864017,
0.011977425776422024,
-0.02069774828851223,
-0.04881865903735161,
-0.00020253329421393573,
0.018084492534399033,
-0.03103715553879738,
0.04253169521689415,
0.045447938144207,
-0.030374372377991676,
0.05612820386886597,
-0.010131102986633778,
0.01728915236890316,
-0.01829279586672783,
0.025034239515662193,
0.06783104687929153,
0.03507065773010254,
0.02247779257595539,
0.013302990235388279,
-0.021152228116989136,
-0.043364908546209335,
-0.026189373806118965,
0.010718138888478279,
0.0396154522895813,
-0.02497742883861065,
0.04366789385676384,
0.050674449652433395,
0.016635838896036148,
-0.007025493774563074,
-0.017705759033560753,
-0.05930956080555916,
0.0023670801892876625,
-0.026662791147828102,
0.018860895186662674,
-0.016957761719822884,
-0.0328550711274147,
0.013482888229191303,
0.002608522307127714,
0.02889731340110302,
-0.019902409985661507,
0.05146979168057442,
-0.03374509513378143,
-0.029446477070450783,
0.006433723960071802,
0.034161701798439026,
-0.00684559578076005,
0.00182265171315521,
-0.0025020036846399307,
-0.024560824036598206,
0.04578879848122597,
0.018643122166395187,
0.043743640184402466,
0.01982666365802288,
-0.07495122402906418,
-0.017762569710612297,
-0.019410056993365288,
-0.018112897872924805,
0.01854844018816948,
0.021758200600743294,
0.05063657835125923,
0.01072760671377182,
0.021436277776956558,
0.022402046248316765,
-0.020129648968577385,
0.0340859554708004,
-0.03169993683695793,
0.04154698923230171,
0.013975241221487522,
-0.07252733409404755,
0.006627824157476425,
0.008540425449609756,
0.07847344130277634,
-0.05427241325378418,
0.02878369390964508,
0.026738537475466728,
-0.018472693860530853,
-0.03293081745505333,
-0.0044051362201571465,
0.03522215411067009,
-0.041849978268146515,
-0.11058998107910156,
-0.05317408964037895,
0.01564166508615017,
-0.0033612537663429976,
0.019731979817152023,
-0.04533431679010391,
0.009477788582444191,
0.016105612739920616,
-0.02194756641983986,
-0.007016025483608246,
0.0311697106808424,
0.04503133147954941,
0.0072574676014482975,
0.019523676484823227,
0.036774955689907074,
-0.13596507906913757,
-0.008800803683698177,
-0.0007515479228459299,
0.031245457008481026,
0.016455940902233124,
0.002058176090940833,
0.036168985068798065,
0.02980627305805683,
-0.03488129377365112,
-0.05537073686718941,
-0.000015006918147264514,
0.026946840807795525,
-0.014874731190502644,
0.07131539285182953,
0.010746544227004051,
-0.007304809056222439,
-0.005581574980169535,
0.05184852331876755,
0.009236346930265427,
-0.004270212724804878,
0.04597816616296768,
-0.031150775030255318,
0.006793519947677851,
-0.015007288195192814,
0.012839042581617832,
-0.021246911957859993,
0.05150766298174858,
-0.08877497166395187,
-0.0022404412738978863,
0.01794246770441532,
-0.0027197750750929117,
0.06048363074660301,
0.04529644548892975,
-0.07385289669036865,
0.02297014556825161,
0.0754435807466507,
-0.032249100506305695,
0.0330633744597435,
0.019485803321003914,
0.09195633232593536,
-0.048553548753261566,
-0.004985070787370205,
-0.03649090602993965,
0.024295710027217865,
-0.019845599308609962,
-0.019997093826532364,
0.048780787736177444,
0.02635980397462845,
-0.03141588717699051,
0.02639767713844776,
-0.03988056629896164,
0.042493823915719986,
0.022402046248316765,
-0.041698481887578964,
-0.07714787870645523,
0.00971449725329876,
-0.06358923763036728,
-0.004374363925307989,
-0.0292760469019413,
-0.048780787736177444,
-0.06771742552518845,
0.031378015875816345,
-0.0015386020531877875,
0.10513623058795929,
-0.04416024684906006,
0.02813984826207161,
0.0585520938038826,
-0.015717411413788795,
0.0194479301571846,
0.008298982866108418,
-0.0031742544379085302,
-0.016209764406085014,
0.034654054790735245,
-0.03863074630498886,
-0.03923672065138817,
0.02702258713543415,
-0.06260453164577484,
0.015461767092347145,
-0.041092511266469955,
-0.047644589096307755,
0.07169412076473236,
-0.011769122444093227,
-0.023405687883496284,
0.08847198635339737,
0.022004377096891403,
0.04745522141456604,
0.037778597325086594,
0.08445741981267929,
0.037551358342170715,
0.0069923545233905315,
0.02740131877362728,
-0.0537421889603138,
-0.02020539529621601,
-0.00048584319301880896,
-0.04908377304673195,
-0.025299351662397385,
-0.027931544929742813,
0.07101240754127502,
0.03533577173948288,
-0.06972470879554749,
0.036301542073488235,
0.056999288499355316,
0.04419812187552452,
0.03556301072239876,
0.030355434864759445,
0.024049533531069756,
0.043857261538505554,
-0.06677059829235077,
-0.044501107186079025,
-0.019021855667233467,
0.0009841135470196605,
0.008568829856812954,
-0.02815878577530384,
0.02880263142287731,
0.05601458251476288,
-0.0016936458414420485,
-0.052075762301683426,
-0.053325582295656204,
0.008459944278001785,
-0.0199592188000679,
-0.0046063377521932125,
0.06699783354997635,
-0.018491629511117935,
0.07381502538919449,
0.008270577527582645,
0.10309107601642609,
-0.012715954333543777,
-0.010311000980436802,
-0.026075754314661026,
-0.01344501506537199,
0.03524108976125717,
0.0423802025616169,
0.0065000019967556,
-0.04230445623397827,
-0.05109105631709099,
0.05616607889533043,
0.049651872366666794,
-0.01551857776939869,
-0.03747561201453209,
0.015461767092347145,
0.025791704654693604,
0.0023173715453594923,
-0.016730522736907005,
-0.025469781830906868,
0.01407939288765192,
0.013151497580111027,
-0.007020759861916304,
0.009643484838306904,
0.02624618448317051,
-0.01091697346419096,
0.009212675504386425,
0.0044122375547885895,
-0.008478880859911442,
-0.00580408051609993,
0.00794392079114914,
0.023519307374954224,
0.009458852000534534,
-0.008810272440314293,
-0.010935910046100616,
0.034161701798439026,
-0.016692649573087692,
-0.0388958603143692,
0.006561546120792627,
0.013265117071568966,
0.011873274110257626,
0.05109105631709099,
0.0406380333006382,
-0.015717411413788795,
0.028064101934432983,
-0.01842535100877285,
-0.05290897563099861,
-0.025905324146151543,
0.02611362747848034,
-0.030506929382681847,
-0.03912309929728508,
-0.008488349616527557,
0.05874146148562431,
-0.04048653692007065,
-0.052075762301683426,
0.0021445746533572674,
-0.01982666365802288,
0.058135487139225006,
0.03217335417866707,
0.010500367730855942,
0.012460310012102127,
0.04203934222459793,
0.012545525096356869,
0.07116390019655228,
0.004966134205460548,
-0.00933576375246048,
0.012876915745437145,
0.01116314996033907,
-0.04722798243165016,
-0.02825346775352955,
-0.0004870267293881625,
0.01842535100877285,
-0.038820113986730576,
-0.025469781830906868,
-0.022288426756858826,
0.012573929503560066,
-0.025147859007120132,
0.016077207401394844,
-0.0008059907704591751,
-0.0426831878721714,
0.028177721425890923,
0.02967371605336666,
-0.0671493262052536,
0.004551894962787628,
-0.04703861474990845,
-0.04366789385676384,
0.008298982866108418,
-0.004438275471329689,
-0.0060455226339399815,
0.06828552484512329,
-0.0018119998276233673,
0.003926985897123814,
0.017961403355002403,
0.015603791922330856,
-0.008568829856812954,
-0.014230885542929173,
-0.029086681082844734,
0.03946395963430405,
0.0015539880841970444,
-0.043857261538505554,
-0.018131833523511887,
-0.022818652912974358,
-0.04060015827417374,
0.007337948307394981,
0.013463951647281647,
-0.04419812187552452,
0.029882019385695457,
-0.019656233489513397,
0.0492352657020092,
-0.05389368161559105,
-0.027817925438284874,
-0.042455948889255524,
-0.028745820745825768,
-0.02914348989725113,
0.010774948634207249,
-0.015120907686650753,
-0.016219232231378555,
-0.0227239690721035,
-0.0278936717659235,
-0.13240499794483185,
0.0075225806795060635,
-0.03393445909023285,
0.04203934222459793,
0.003517481032758951,
0.030961407348513603,
0.014126733876764774,
0.00675091240555048,
0.025829577818512917,
-0.04533431679010391,
-0.013823747634887695,
-0.01136198453605175,
-0.0068597979843616486,
0.01677786372601986,
-0.020849240943789482,
0.014088860712945461,
-0.006064459215849638,
-0.053211960941553116,
0.009226878173649311,
0.0020865811966359615,
-0.09051714092493057,
-0.007759288884699345,
-0.027666432783007622,
-0.02020539529621601,
-0.02586745098233223,
-0.025394035503268242,
0.07089878618717194,
-0.028935188427567482,
0.0040003652684390545,
-0.037797536700963974,
-0.01528186909854412,
0.08945669233798981,
0.03749454766511917,
-0.006234888918697834,
0.017819378525018692,
0.030734168365597725,
-0.004970868118107319,
0.005714131519198418,
-0.04798544943332672,
0.0005311135901138186,
-0.023159511387348175,
0.022932272404432297,
-0.012630739249289036,
-0.03900948166847229,
-0.003387291682884097,
0.02297014556825161,
0.04684925079345703,
-0.02298908308148384,
0.062415167689323425,
-0.013549166731536388,
0.01589730940759182,
0.02045157179236412,
0.04154698923230171,
-0.04578879848122597,
0.001903132419101894,
-0.03079097904264927,
0.018643122166395187,
-0.04139549657702446,
-0.0371536910533905,
0.024655506014823914,
0.04446323215961456,
-0.008677715435624123,
-0.0002460283867549151,
-0.039047352969646454,
0.02624618448317051,
0.07381502538919449,
0.006935544777661562,
0.00426074443385005,
0.007058633025735617,
0.02753387577831745,
0.012621271423995495,
-0.014069924131035805,
0.03738093003630638,
-0.049651872366666794,
-0.030999280512332916,
0.008549893274903297,
-0.026151500642299652,
0.07366353273391724,
-0.04665988311171532,
-0.00927422009408474,
-0.028442835435271263,
-0.019154412671923637,
-0.024560824036598206,
0.06658122688531876,
0.003813366172835231,
-0.0027529140934348106,
-0.02851858176290989,
-0.04643264412879944,
-0.02321632206439972,
0.03863074630498886,
0.0004453069414012134,
-0.01931537315249443,
-0.03662346303462982,
-0.035771314054727554,
-0.07714787870645523,
0.026284057646989822,
-0.08460891246795654,
0.03594174608588219,
0.04029717296361923,
-0.04779608175158501,
0.02980627305805683,
-0.03094247169792652,
0.030393308028578758,
0.04495558515191078,
-0.09475895017385483,
-0.021549897268414497,
-0.02223161607980728,
-0.028064101934432983,
0.03329061344265938,
-0.02815878577530384,
-0.025469781830906868,
0.03827095031738281,
-0.03245740383863449,
-0.00238364958204329,
-0.008668247610330582,
0.034010209143161774,
0.03813839331269264,
0.0729818120598793,
0.0157647542655468,
-0.017317557707428932,
0.060029152780771255,
0.03851712867617607,
0.04150911793112755,
0.042455948889255524,
-0.06215005740523338,
-0.02005390264093876,
0.05109105631709099,
-0.03751348704099655,
-0.0006888203206472099,
-0.007508378010243177,
0.014713769778609276,
0.0069166081957519054,
-0.11293812841176987,
-0.04495558515191078,
0.030601611360907555,
-0.07158049941062927,
0.03923672065138817,
0.03067735768854618,
-0.011466136202216148,
-0.06533141434192657,
-0.03558195009827614,
-0.017620544880628586,
-0.04635689780116081,
0.04825055971741676,
0.04253169521689415,
0.010642392560839653,
0.04809906706213951,
-0.014978882856667042,
0.013795343227684498,
-0.002406137064099312,
-0.02624618448317051,
-0.02664385363459587,
0.017469052225351334,
0.009326295927166939,
-0.023045891895890236,
-0.066126748919487,
-0.0036997462157160044,
-0.022155869752168655,
0.0026250919327139854,
0.024674443528056145,
-0.023197384551167488,
0.010074293240904808,
0.04048653692007065,
0.0017658417345955968,
0.030506929382681847,
0.00630590133368969,
0.043630022555589676,
-0.01261180266737938
] |
723,078
|
mathprimes
|
prime_gen
|
An infinite generator yielding a tuple of ``(prime_number, previous_prime_numbers)``
|
def prime_gen() -> Generator[Tuple[int,Tuple[int]], None, None]:
"""An infinite generator yielding a tuple of ``(prime_number, previous_prime_numbers)``"""
primes = ()
i = 2
while True:
if _is_prime(i, primes):
primes += (i,)
yield i, primes
i += 1
|
() -> Generator[Tuple[int, Tuple[int]], NoneType, NoneType]
|
[
0.007770773954689503,
-0.031510163098573685,
-0.027369463816285133,
0.009014840237796307,
-0.03817613050341606,
0.02918914332985878,
-0.0010195078793913126,
0.01862386241555214,
0.018902383744716644,
-0.0023198591079562902,
0.028762076050043106,
0.008392807096242905,
-0.007770773954689503,
0.06610263884067535,
-0.052993521094322205,
0.0042706760577857494,
0.009813271462917328,
-0.017649034038186073,
-0.008926641196012497,
0.020424973219633102,
-0.018809543922543526,
0.016191432252526283,
-0.0252526942640543,
0.006173912435770035,
0.00831853412091732,
0.07260149717330933,
0.004869499243795872,
0.021854721009731293,
0.015123764052987099,
0.013109118677675724,
0.015959331765770912,
-0.011168746277689934,
0.02959764190018177,
-0.03180725499987602,
0.0029012744780629873,
0.023395877331495285,
-0.02658960036933422,
0.08132852613925934,
-0.059529513120651245,
0.03292134404182434,
0.07612944394350052,
-0.06736527383327484,
-0.053513430058956146,
0.021260539069771767,
0.006303889211267233,
-0.044526439160108566,
0.06016083061695099,
-0.0017256780993193388,
-0.046160437166690826,
-0.08169989287853241,
0.03685779124498367,
0.025271261110901833,
0.030377505347132683,
-0.028000781312584877,
-0.00026546663139015436,
0.03719202056527138,
0.02419430948793888,
-0.0025786529295146465,
-0.0191809069365263,
0.029467664659023285,
-0.015272309072315693,
-0.022671720013022423,
0.05726419761776924,
-0.01865171454846859,
0.035483747720718384,
-0.022783128544688225,
0.012942005880177021,
-0.07378985732793808,
-0.03305131942033768,
0.08251689374446869,
-0.025939716026186943,
0.011549393646419048,
-0.04898279905319214,
-0.001056644250638783,
0.002478848909959197,
0.008805948309600353,
-0.004477247130125761,
0.047942981123924255,
0.016971295699477196,
-0.06324314326047897,
0.025326967239379883,
-0.0263296477496624,
-0.054924607276916504,
-0.01459457166492939,
0.009302646853029728,
0.021111994981765747,
0.06346596032381058,
-0.011577245779335499,
-0.02393435500562191,
0.08236834406852722,
-0.04593762010335922,
-0.013406209647655487,
-0.0020865965634584427,
-0.02408289909362793,
0.04374657943844795,
-0.0006104281637817621,
-0.008819874376058578,
0.006925922818481922,
0.0063920882530510426,
-0.015420854091644287,
0.03260568529367447,
-0.027072373777627945,
-0.0671795904636383,
-0.03537233918905258,
0.019886495545506477,
-0.07594376057386398,
-0.01689702272415161,
-0.02259744703769684,
0.08281397819519043,
-0.01704556867480278,
-0.032067205756902695,
-0.006104281637817621,
-0.008016801439225674,
0.049279890954494476,
-0.04333807900547981,
-0.00461186608299613,
0.0011274352436885238,
0.0033515524119138718,
0.0013287836918607354,
0.010277475230395794,
-0.04623471200466156,
-0.005895389709621668,
-0.046568937599658966,
0.03087884560227394,
-0.029003461822867393,
0.02419430948793888,
0.06591695547103882,
-0.0650256872177124,
-0.022931674495339394,
0.025531215593218803,
0.045343440026044846,
0.027109509333968163,
0.08883006125688553,
0.04341235011816025,
-0.06751381605863571,
-0.048908524215221405,
-0.009998952969908714,
-0.006243542768061161,
0.009571884758770466,
0.0048091528005898,
-0.049836933612823486,
0.0183267705142498,
-0.029356256127357483,
0.050245434045791626,
-0.00418944051489234,
-0.014733832329511642,
0.02061065472662449,
0.05548165366053581,
0.0507282055914402,
0.01701771654188633,
0.024157172068953514,
-0.004405295476317406,
0.05540738254785538,
0.025271261110901833,
-0.04842575266957283,
0.031658709049224854,
0.019663678482174873,
0.030024711042642593,
0.004426184576004744,
-0.034573908895254135,
0.025419807061553,
0.004003759007900953,
0.023841513320803642,
0.03379404544830322,
-0.02775939553976059,
0.03321843221783638,
0.05384765565395355,
-0.012357108294963837,
0.04408080503344536,
-0.020443541929125786,
0.0012046091724187136,
0.018484599888324738,
0.02239319682121277,
0.004115168005228043,
-0.005045896861702204,
0.00663347402587533,
0.014975219033658504,
0.030377505347132683,
0.052733566612005234,
0.03589224815368652,
-0.009544032625854015,
-0.0547017902135849,
0.003848250489681959,
-0.007979665882885456,
0.014733832329511642,
-0.01853102073073387,
0.057635560631752014,
-0.005134095437824726,
0.0232659000903368,
-0.008838443085551262,
-0.07293572276830673,
-0.04229826107621193,
0.0050876750610768795,
0.03981012850999832,
-0.013629027642309666,
0.04953984171152115,
-0.043969396501779556,
0.04036717489361763,
-0.02239319682121277,
0.003124092472717166,
-0.038658902049064636,
-0.00964615773409605,
-0.04122130945324898,
-0.01815037429332733,
0.016850601881742477,
0.021761879324913025,
-0.01874455437064171,
-0.06929636001586914,
0.0406271293759346,
0.02764798514544964,
0.03418397903442383,
-0.015950046479701996,
0.017416931688785553,
0.06428296118974686,
-0.00011982263822574168,
0.02913343906402588,
0.016646353527903557,
-0.02770369127392769,
-0.045083485543727875,
-0.022114675492048264,
0.04389512538909912,
-0.04422935098409653,
0.006331741809844971,
-0.0192923154681921,
0.05796978622674942,
0.007366916164755821,
0.026348214596509933,
-0.01853102073073387,
-0.07453258335590363,
0.02352585457265377,
-0.003945733420550823,
0.005872179754078388,
0.010351747274398804,
-0.005561163183301687,
-0.0009028766653500497,
-0.032382864505052567,
0.007292643655091524,
-0.01405609492212534,
-0.0001031403080560267,
0.02259744703769684,
-0.030117550864815712,
0.024937035515904427,
0.026663873344659805,
-0.008610982447862625,
0.03216004744172096,
0.006419940385967493,
-0.013935402035713196,
0.008313892409205437,
-0.022263219580054283,
0.020740631967782974,
-0.042632490396499634,
0.02761084958910942,
-0.03414684161543846,
-0.023395877331495285,
0.06833081692457199,
-0.09120678901672363,
-0.04824007302522659,
0.0016073060687631369,
0.009841123595833778,
0.02556835301220417,
0.01686917059123516,
-0.007250865455716848,
-0.022281788289546967,
0.05314206704497337,
0.021669039502739906,
0.017788294702768326,
-0.01459457166492939,
-0.013610458932816982,
-0.004337985534220934,
0.04668034613132477,
0.07282431423664093,
-0.052844975143671036,
0.026366783306002617,
0.05076534301042557,
0.06175769120454788,
-0.0587867870926857,
-0.008894147351384163,
0.09796559810638428,
-0.02265315130352974,
-0.03618934005498886,
-0.015866490080952644,
0.04519489407539368,
-0.004409937188029289,
-0.024472830817103386,
0.0017523698043078184,
-0.004124451894313097,
-0.07096749544143677,
-0.009325857274234295,
0.08192270994186401,
-0.05358770117163658,
0.031770117580890656,
-0.008736317977309227,
-0.05280783772468567,
-0.022727424278855324,
0.05451611056923866,
-0.0036091855727136135,
-0.0007746402989141643,
0.03542804345488548,
-0.03724772483110428,
-0.008035370148718357,
0.07542385160923004,
-0.029467664659023285,
-0.07642653584480286,
-0.025846874341368675,
0.0028803853783756495,
0.04638325795531273,
0.008545994758605957,
0.008197841234505177,
0.02282026596367359,
-0.002764334436506033,
-0.02200326696038246,
0.01975652016699314,
0.024565672501921654,
-0.002182919066399336,
-0.0023140565026551485,
-0.0505053885281086,
0.005524026695638895,
-0.027072373777627945,
-0.03435109183192253,
-0.009256226010620594,
-0.015560115687549114,
0.024175740778446198,
0.02311735600233078,
0.00022136725601740181,
-0.07984307408332825,
0.08311107009649277,
-0.039475902915000916,
-0.012895585037767887,
-0.04118417203426361,
-0.017119841650128365,
-0.02694239653646946,
0.02200326696038246,
-0.025178421288728714,
0.11244875937700272,
-0.013870413415133953,
0.05715278908610344,
0.009284078143537045,
-0.00226531527005136,
0.04378371313214302,
-0.07237868010997772,
0.042743898928165436,
-0.021149130538105965,
-0.0609406903386116,
-0.05332774668931961,
0.026571033522486687,
0.02025785855948925,
0.012821312993764877,
-0.07642653584480286,
0.009785418398678303,
-0.00831853412091732,
0.030191823840141296,
0.04096135497093201,
-0.0069352067075669765,
-0.004553840495646,
0.04953984171152115,
0.001871902379207313,
-0.016599932685494423,
-0.045232031494379044,
-0.018902383744716644,
0.06892500072717667,
-0.031510163098573685,
0.005157305859029293,
-0.00509231723845005,
0.029523370787501335,
-0.022411765530705452,
-0.046866029500961304,
-0.05303065851330757,
0.03617076948285103,
-0.051619477570056915,
0.016572080552577972,
0.022263219580054283,
0.0096183056011796,
0.01456671953201294,
-0.012635630555450916,
0.014139651320874691,
0.001261474215425551,
-0.014501730911433697,
0.039215948432683945,
-0.015755081549286842,
-0.04311526194214821,
-0.0014158219564706087,
-0.03249427676200867,
0.012821312993764877,
0.04894566163420677,
-0.01958940550684929,
0.006628832314163446,
0.02562405727803707,
0.014947366900742054,
0.03552088513970375,
0.04408080503344536,
-0.06714245676994324,
-0.024937035515904427,
0.014204639941453934,
-0.03243856877088547,
0.07657507807016373,
-0.008258188143372536,
0.11861338466405869,
-0.011493689380586147,
-0.02822359837591648,
-0.035595156252384186,
0.03284706920385361,
0.0406271293759346,
-0.05247361212968826,
0.00604857737198472,
-0.029894733801484108,
-0.04515775665640831,
0.020944882184267044,
-0.03190009295940399,
0.036430723965168,
0.0010607059812173247,
-0.0587867870926857,
-0.03706204146146774,
0.002690061694011092,
-0.03108309581875801,
0.07475540041923523,
-0.006317815277725458,
-0.02688669227063656,
-0.012784176506102085,
0.02846498414874077,
0.045751940459012985,
0.04081280902028084,
-0.006614905782043934,
0.031510163098573685,
-0.01658136397600174,
-0.06086641922593117,
0.027388032525777817,
-0.021966129541397095,
-0.0191809069365263,
-0.008731676265597343,
0.04950270801782608,
-0.018484599888324738,
-0.058601103723049164,
0.05440470203757286,
-0.038658902049064636,
-0.03351552411913872,
-0.046308983117341995,
-0.031361617147922516,
0.030841708183288574,
-0.016924874857068062,
0.024732785299420357,
0.05986373871564865,
0.03132447972893715,
0.0547017902135849,
0.046457529067993164,
0.09618305414915085,
0.03266138955950737,
0.004101241938769817,
0.014705980196595192,
0.04500921443104744,
0.030024711042642593,
-0.0036788161378353834,
0.005774696823209524,
0.009427981451153755,
-0.044674985110759735,
0.05629865080118179,
-0.029931869357824326,
-0.07401267439126968,
-0.008067863993346691,
-0.00995253212749958,
0.04341235011816025,
0.024825626984238625,
0.02790793962776661,
-0.004458678886294365,
-0.03254998102784157,
-0.02072206325829029,
-0.1283431053161621,
0.01794612407684326,
-0.03929021954536438,
-0.042632490396499634,
-0.02562405727803707,
-0.0006963058840483427,
-0.001911359722726047,
-0.019329451024532318,
-0.03806472197175026,
-0.04526916891336441,
-0.04935416206717491,
-0.044526439160108566,
-0.00925158429890871,
0.040849946439266205,
-0.05800692364573479,
-0.0131648238748312,
0.0004050179268233478,
0.05893532931804657,
0.04760875552892685,
-0.01801111176609993,
-0.006071787327528,
0.018085384741425514,
0.0035302708856761456,
0.004846288822591305,
-0.013071982190012932,
-0.010565281845629215,
-0.06123778223991394,
0.01053742878139019,
-0.03403543308377266,
-0.03470388427376747,
-0.015272309072315693,
0.02658960036933422,
0.029411960393190384,
0.02959764190018177,
-0.02413860522210598,
-0.04252107813954353,
-0.02020215429365635,
0.06799659132957458,
-0.02285740152001381,
0.020480677485466003,
0.03423968330025673,
0.0649142786860466,
-0.06361450999975204,
-0.03765622153878212,
0.029114870354533195,
0.04077567160129547,
-0.03284706920385361,
-0.009887543506920338,
-0.00226531527005136,
0.011243019253015518,
-0.046049028635025024,
0.040998492389917374,
-0.01485452614724636,
-0.010119645856320858,
-0.01628427393734455,
0.02291310578584671,
-0.03126877546310425,
0.005825759377330542,
0.04389512538909912,
-0.03760051727294922,
-0.018280351534485817,
-0.030377505347132683,
-0.06658541411161423,
-0.039921537041664124,
-0.027740826830267906,
0.014715264551341534,
-0.016126444563269615,
-0.0005497915553860366,
0.013155539520084858,
-0.06710532307624817,
-0.07252722233533859,
0.03932735696434975,
0.012951289303600788,
0.04939129948616028,
-0.00323318038135767,
0.012802744284272194,
0.02761084958910942,
0.00006803488940931857,
0.07872898876667023,
0.0030614249408245087,
-0.008722391910851002,
-0.015662239864468575,
0.04036717489361763,
-0.009279436431825161,
-0.04968838766217232,
-0.03379404544830322,
-0.009325857274234295,
0.012468517757952213,
-0.052733566612005234,
-0.030711732804775238,
-0.016822749748826027,
0.0008692218689247966,
0.008870936930179596,
-0.005742202512919903,
0.045900482684373856,
-0.0007885664235800505,
0.03917881101369858,
-0.05165661498904228,
-0.041815489530563354,
0.0366535410284996,
-0.007116246037185192,
-0.014965934678912163,
0.029170574620366096,
0.03195579722523689,
0.01357332244515419,
0.0384732224047184,
-0.020294995978474617,
0.011930041015148163,
-0.0017976297531276941,
0.035335201770067215,
-0.03138018399477005,
-0.006967701017856598,
-0.017147693783044815,
0.012022881768643856,
-0.004642039071768522,
0.01538371853530407,
0.008462437428534031,
-0.0243428535759449,
0.0018974335398525,
-0.013796140439808369,
0.001818518852815032,
-0.0650256872177124,
0.044266488403081894,
0.025586919859051704,
0.07304713129997253,
0.05087675154209137,
0.033552661538124084,
-0.056410063058137894,
-0.04838861897587776,
-0.034982409328222275,
-0.022727424278855324,
0.03357122838497162,
-0.026960963383316994,
-0.0729728564620018,
-0.06283464282751083,
-0.07334422320127487,
0.042075444012880325,
-0.017379794269800186,
0.025401238352060318,
-0.031064527109265327,
-0.003184438915923238,
0.011196598410606384,
-0.04519489407539368,
0.0030915981624275446,
0.029839027673006058,
-0.01783471554517746,
-0.020294995978474617,
-0.04727452993392944,
-0.002376724034547806,
-0.05087675154209137,
0.06561987102031708,
-0.02480705827474594,
-0.01824321411550045,
-0.017519056797027588,
-0.008870936930179596,
-0.08860724419355392,
-0.0131648238748312,
-0.009047335013747215,
0.005217652302235365,
-0.024639945477247238,
-0.034982409328222275,
0.08808733522891998,
-0.02075919881463051,
0.045603394508361816,
0.01097378134727478,
-0.032011501491069794,
0.017741873860359192,
-0.004813794977962971,
-0.030433209612965584,
0.018410326912999153,
0.019199473783373833,
-0.036820653825998306,
-0.012691335752606392,
-0.010834519751369953,
-0.01944086141884327,
-0.02113056369125843,
0.06224046275019646,
-0.055704470723867416,
-0.05704138055443764,
-0.025958282873034477,
0.003822719445452094,
0.03955017402768135,
0.022058971226215363,
0.0023813662119209766,
-0.08385379612445831,
0.05975233018398285,
0.03332984074950218,
0.05269642919301987,
-0.02582830749452114,
-0.03254998102784157,
-0.013582606799900532,
-0.05332774668931961,
-0.03735913336277008,
0.0009318894008174539,
0.0081560630351305,
0.07185877114534378,
0.01897665672004223,
0.0035117026418447495,
0.02332160621881485,
0.006814513821154833,
0.1096263974905014,
0.005305850878357887,
0.0034397512208670378,
-0.007130172569304705,
0.03891885653138161,
-0.014371753670275211,
0.008481006138026714,
0.013972538523375988,
-0.0587867870926857,
-0.008694539777934551,
-0.02178044803440571,
-0.02770369127392769,
0.026756715029478073,
-0.07531244307756424,
0.041926898062229156,
-0.0263296477496624,
-0.0010995831107720733,
-0.013062698766589165,
-0.009831839241087437,
-0.02606969326734543,
-0.025419807061553,
-0.001369401579722762,
-0.007793983910232782,
0.019199473783373833,
-0.0029407318215817213,
-0.008397448807954788,
0.01908806525170803,
0.019812224432826042,
-0.02790793962776661,
-0.05834114924073219,
0.00418944051489234,
-0.009130891412496567,
0.014408890157938004,
0.02291310578584671,
-0.03572513535618782,
0.03236429765820503,
0.004642039071768522,
0.010983064770698547,
0.07393839955329895,
-0.03873317688703537,
0.0035070606973022223,
0.020499246194958687,
-0.01984935998916626,
0.020387835800647736,
0.04597475752234459,
-0.03210434317588806,
0.011948608793318272,
-0.04668034613132477,
0.00006716450297972187,
0.013081266544759274,
-0.010964496992528439,
0.006498855073004961,
0.0344439297914505,
0.035279497504234314,
0.03708060830831528,
0.022486038506031036,
0.03566943109035492,
-0.0486857071518898,
0.02811218984425068,
-0.09217233210802078,
0.03899313136935234,
0.01783471554517746,
-0.029764756560325623,
-0.037117745727300644,
0.005440469831228256,
0.01885596290230751,
0.04504634812474251,
-0.03572513535618782,
0.003764693858101964,
0.055704470723867416,
-0.046160437166690826,
0.0038389666005969048,
0.05737560614943504,
-0.015810785815119743,
-0.05551879107952118,
-0.00742726307362318,
-0.014269628562033176,
-0.001546959625557065,
0.06216619163751602,
0.015885058790445328,
0.00964615773409605,
0.03903026506304741,
-0.018233930692076683,
-0.013796140439808369,
-0.007394768763333559,
-0.016674205660820007,
-0.0033283422235399485,
0.05262215808033943,
0.011920756660401821,
-0.047534480690956116,
-0.024918466806411743,
-0.0005187478964217007,
-0.0031914019491523504,
-0.08207125216722488,
-0.0015237494371831417,
-0.002824680879712105,
0.08585915714502335,
0.0587867870926857,
-0.0015249098651111126,
0.01938515529036522,
-0.0035488391295075417,
0.03786047175526619,
-0.004565445706248283
] |
723,263
|
exponent_server_sdk
|
DeviceNotRegisteredError
|
Raised when the push token is invalid
To handle this error, you should stop sending messages to this token.
|
class DeviceNotRegisteredError(PushTicketError):
"""Raised when the push token is invalid
To handle this error, you should stop sending messages to this token.
"""
pass
|
(push_response)
|
[
-0.012716928496956825,
-0.023513304069638252,
-0.019402962177991867,
0.04964717477560043,
-0.0020630231592804193,
-0.03645459562540054,
-0.03421096131205559,
0.002889802912250161,
0.011882295832037926,
-0.033564791083335876,
0.06382695585489273,
-0.008144398219883442,
0.0485343299806118,
-0.018918337300419807,
-0.035252004861831665,
0.02006707899272442,
0.037334099411964417,
-0.011164331808686256,
0.05014974996447563,
-0.04379577189683914,
-0.01907987892627716,
0.0712219774723053,
-0.010428419336676598,
0.02094658464193344,
-0.0038568100426346064,
0.10058668255805969,
-0.008777103386819363,
0.020605551078915596,
0.005600115284323692,
-0.06174485757946968,
-0.09793021529912949,
0.001840903190895915,
0.04849843308329582,
0.03659818693995476,
-0.029508298262953758,
-0.04523169994354248,
-0.018559355288743973,
0.01886449009180069,
-0.15551088750362396,
0.02148505672812462,
-0.1017354279756546,
0.0180119089782238,
-0.01933116652071476,
-0.02925701066851616,
0.06493979692459106,
-0.013605407439172268,
0.02423126809298992,
0.06246282160282135,
-0.025505652651190758,
0.038518741726875305,
-0.019905537366867065,
0.022705594077706337,
-0.050113849341869354,
0.012546411715447903,
-0.029777534306049347,
0.06619623303413391,
0.019492708146572113,
0.017401639372110367,
-0.022759441286325455,
0.03175193443894386,
-0.04551888257265091,
0.05994994938373566,
0.015687501057982445,
-0.02096453309059143,
0.002131453948095441,
-0.006497569382190704,
0.029310859739780426,
0.006318078376352787,
-0.03841104730963707,
0.047277893871068954,
0.03955978900194168,
-0.0024859486147761345,
-0.058119144290685654,
0.014637480489909649,
0.06899628788232803,
-0.010859197936952114,
-0.019510656595230103,
0.05348828062415123,
0.01473620068281889,
0.015409290790557861,
0.025326160714030266,
0.004734071437269449,
0.03577252849936485,
0.05542678013443947,
0.062139738351106644,
0.047959960997104645,
0.027874931693077087,
-0.03848284110426903,
-0.0990789607167244,
-0.0013147706631571054,
-0.020838890224695206,
-0.018720896914601326,
-0.01888243854045868,
-0.011119459755718708,
0.028880080208182335,
0.01497851312160492,
0.013740026392042637,
0.015454163774847984,
-0.03833924978971481,
-0.007951445877552032,
0.03182373195886612,
-0.017787545919418335,
-0.09103776514530182,
-0.040457241237163544,
0.03561098873615265,
-0.040636733174324036,
0.0008049043826758862,
-0.010607910342514515,
0.030531397089362144,
0.018002934753894806,
-0.013722077012062073,
0.0018913850653916597,
-0.021287616342306137,
0.018074730411171913,
0.0031321155838668346,
-0.005824478808790445,
0.010213030502200127,
0.03227245807647705,
-0.005784093402326107,
-0.047026608139276505,
0.043221402913331985,
-0.03977517783641815,
-0.017284970730543137,
-0.009086725302040577,
0.048929210752248764,
0.0190978292375803,
0.016701625660061836,
-0.008175808936357498,
0.055211391299963,
-0.0025801812298595905,
-0.025326160714030266,
0.017338817939162254,
-0.0025644758716225624,
-0.07703748345375061,
-0.052913907915353775,
0.00753861665725708,
0.03697511926293373,
-0.05510369688272476,
0.028449302539229393,
-0.03417506068944931,
-0.0011599597055464983,
0.05025744438171387,
-0.022741492837667465,
-0.008566201664507389,
0.006914885714650154,
0.041139308363199234,
-0.03622125834226608,
0.011245102621614933,
-0.036669984459877014,
-0.01931321807205677,
0.014413116499781609,
-0.013542586006224155,
0.01460158172994852,
0.004532144404947758,
-0.005914224311709404,
0.032900676131248474,
0.010993815958499908,
-0.0061071766540408134,
-0.007053991314023733,
-0.005878326017409563,
0.006982194725424051,
-0.025613347068428993,
0.004489515442401171,
0.05259082466363907,
-0.0004992089816369116,
0.013740026392042637,
0.020138874650001526,
-0.03808796405792236,
-0.043975263833999634,
0.01671059988439083,
-0.02990317903459072,
0.01216050609946251,
0.0068341149017214775,
-0.01904398202896118,
-0.018667049705982208,
0.021305566653609276,
-0.02286713756620884,
0.007929009385406971,
-0.04756508022546768,
-0.018720896914601326,
0.028862131759524345,
-0.017536258324980736,
0.01282462291419506,
0.012681029736995697,
0.01155023742467165,
0.053595975041389465,
0.0034910973627120256,
0.028395455330610275,
0.006820653099566698,
-0.028574945405125618,
0.03708281368017197,
-0.017634978517889977,
0.04189316928386688,
0.04314960539340973,
0.0513702854514122,
0.007650798186659813,
0.009459168650209904,
0.014834919944405556,
0.00439079524949193,
0.050975408405065536,
-0.025864634662866592,
0.062355127185583115,
0.0029144829604774714,
-0.05657552182674408,
0.0027888393960893154,
0.010625859722495079,
0.031159615144133568,
-0.008287990465760231,
-0.019743995741009712,
-0.0036010355688631535,
-0.03826745226979256,
0.0056674242950975895,
0.00861556176096201,
0.08507867157459259,
0.02990317903459072,
-0.006995656527578831,
0.0371905080974102,
-0.00702258013188839,
-0.027462102472782135,
-0.009216856211423874,
0.06131407991051674,
-0.03647254407405853,
0.01724907197058201,
-0.051226694136857986,
0.016208024695515633,
0.05345238000154495,
-0.007103350944817066,
-0.037334099411964417,
-0.028682641685009003,
0.0026385157834738493,
0.029328808188438416,
0.008014267310500145,
0.0371905080974102,
0.010186106897890568,
-0.02708517201244831,
-0.015113131143152714,
0.01143356878310442,
-0.057831957936286926,
0.055211391299963,
-0.0011005033738911152,
0.015956738963723183,
-0.03255964443087578,
-0.002755184890702367,
0.08881208300590515,
0.08615561574697495,
0.023890234529972076,
-0.010419445112347603,
0.03421096131205559,
-0.017258046194911003,
0.004402013495564461,
-0.033313505351543427,
-0.01954655535519123,
-0.025308212265372276,
-0.02667234279215336,
-0.005277031566947699,
-0.11487415432929993,
-0.004168675281107426,
-0.03424685820937157,
0.07990933209657669,
-0.00001232246904692147,
-0.008593125268816948,
0.04874971881508827,
-0.010150209069252014,
0.07373484969139099,
-0.012079735286533833,
-0.008543765172362328,
-0.00641231145709753,
0.05933967977762222,
0.012429743073880672,
0.06619623303413391,
0.10927403718233109,
0.035952020436525345,
0.004985359031707048,
0.01911577768623829,
0.0022974831517785788,
-0.017509333789348602,
-0.03823155537247658,
0.09154034405946732,
0.0256851427257061,
-0.030710887163877487,
-0.02825186215341091,
-0.03130320832133293,
0.04239574447274208,
0.05826273560523987,
-0.02900572493672371,
0.027246713638305664,
0.04246753826737404,
-0.03471353277564049,
0.009854048490524292,
-0.016952913254499435,
-0.020623501390218735,
0.02380048856139183,
-0.043293196707963943,
0.04192906618118286,
0.009100186638534069,
0.007439896464347839,
-0.027408255264163017,
0.047277893871068954,
0.047744572162628174,
-0.008579663932323456,
0.0513702854514122,
0.08026831597089767,
-0.06752446293830872,
-0.020138874650001526,
-0.005205234978348017,
0.006690522190183401,
0.0617089606821537,
0.008027728646993637,
-0.05140618607401848,
-0.025738989934325218,
-0.006466158665716648,
0.05679091066122055,
-0.0007471307180821896,
-0.0029907666612416506,
0.05557037144899368,
0.05531908571720123,
0.028162118047475815,
0.013345145620405674,
0.023513304069638252,
0.04261113330721855,
-0.00368180638179183,
0.004469322506338358,
-0.00047368762898258865,
0.009104674682021141,
0.015687501057982445,
0.00374462828040123,
-0.008575175888836384,
-0.03141090273857117,
-0.009611736051738262,
0.00005290072658681311,
-0.03884182497859001,
-0.04210855811834335,
0.025631295517086983,
-0.07947855442762375,
-0.022274816408753395,
-0.030118567869067192,
0.012707953341305256,
-0.0019328922498971224,
-0.02708517201244831,
-0.00748925656080246,
0.006914885714650154,
-0.023262016475200653,
-0.014960563741624355,
0.06623212993144989,
-0.031213462352752686,
-0.04882151633501053,
0.018720896914601326,
-0.051765166223049164,
-0.002290752250701189,
0.03550329431891441,
0.0048103551380336285,
0.07143736630678177,
0.028108270838856697,
0.033798132091760635,
0.08967363834381104,
-0.04767277464270592,
-0.05280621349811554,
0.05025744438171387,
0.003114166669547558,
-0.023674845695495605,
0.000029325021387194283,
-0.003921875264495611,
0.003401351859793067,
0.009979692287743092,
-0.06852961331605911,
0.015086207538843155,
0.000713476212695241,
0.02428511530160904,
0.005115489941090345,
-0.012546411715447903,
0.002373766852542758,
-0.025541551411151886,
-0.0513702854514122,
0.0518728606402874,
-0.0022413921542465687,
0.027282612398266792,
-0.04225214943289757,
0.013542586006224155,
-0.10238159447908401,
0.022920984774827957,
-0.01653110980987549,
0.03361864015460014,
-0.026044124737381935,
-0.008377736434340477,
0.011343822814524174,
0.01612725481390953,
-0.04264703020453453,
0.011137408204376698,
0.0485343299806118,
0.04602145776152611,
-0.030800633132457733,
-0.023226117715239525,
-0.043436791747808456,
0.02995702624320984,
-0.08227861672639847,
-0.000054267940868157893,
-0.06275000423192978,
-0.028664691373705864,
-0.006614238489419222,
-0.02543385699391365,
-0.006932834628969431,
0.017904214560985565,
-0.00771810719743371,
-0.01250153873115778,
0.06565775722265244,
0.028862131759524345,
0.010204056277871132,
-0.04831894114613533,
-0.010877146385610104,
-0.020354265347123146,
-0.01661187969148159,
-0.008902747184038162,
-0.0415341854095459,
-0.05883710831403732,
-0.02855699695646763,
-0.047493282705545425,
-0.00920788198709488,
0.02148505672812462,
-0.003977966494858265,
-0.010509190149605274,
-0.032164763659238815,
-0.022813288494944572,
0.013982338830828667,
0.02261584997177124,
-0.06361156702041626,
0.030674990266561508,
0.00876364205032587,
0.02708517201244831,
0.02101838029921055,
0.0072828419506549835,
0.00919890683144331,
0.04128289967775345,
-0.031716037541627884,
0.0010303898015990853,
-0.035898175090551376,
-0.060919199138879776,
-0.04225214943289757,
-0.030674990266561508,
-0.035018667578697205,
0.032380152493715286,
-0.026564648374915123,
0.021592751145362854,
0.04106751084327698,
0.02755184844136238,
0.05417034402489662,
-0.03345709666609764,
-0.02620566636323929,
-0.008494405075907707,
-0.004476053640246391,
0.012770775705575943,
-0.015409290790557861,
-0.05890890210866928,
0.026026176288723946,
0.001111721619963646,
0.020802991464734077,
-0.07143736630678177,
-0.08048370480537415,
0.009176470339298248,
0.013838745653629303,
-0.03282887861132622,
-0.013910542242228985,
0.077396459877491,
-0.11121254414319992,
-0.0042831008322536945,
-0.003926362842321396,
0.08443250507116318,
0.022220969200134277,
-0.023890234529972076,
0.00783028919249773,
0.022759441286325455,
0.042539335787296295,
0.021305566653609276,
-0.015983661636710167,
-0.002262706868350506,
-0.04462143033742905,
0.005196260754019022,
0.013452840968966484,
0.028359556570649147,
-0.032128866761922836,
-0.04831894114613533,
0.003639177419245243,
-0.005133438855409622,
0.023638946935534477,
-0.011801525019109249,
-0.028933927416801453,
-0.0026833885349333286,
0.015481087379157543,
-0.04968307167291641,
0.032667338848114014,
0.01451183669269085,
-0.06583724915981293,
-0.05277031660079956,
-0.021844038739800453,
-0.0062462822534143925,
0.015714425593614578,
-0.016683675348758698,
-0.07696568220853806,
0.04243164137005806,
-0.013542586006224155,
-0.011855372227728367,
0.004666762426495552,
-0.024428706616163254,
-0.01355156023055315,
-0.04282652214169502,
0.07746826112270355,
-0.059519171714782715,
0.02286713756620884,
0.05991405248641968,
0.06181665509939194,
-0.017805494368076324,
-0.015131080523133278,
0.04375987499952316,
0.043221402913331985,
-0.001778081408701837,
0.036652036011219025,
-0.01166690606623888,
0.017302919179201126,
0.010948942974209785,
-0.005007795058190823,
0.05485241115093231,
0.05233953893184662,
0.008238631300628185,
0.05513959378004074,
0.008929670788347721,
0.03751359134912491,
-0.04857023060321808,
0.0032779520843178034,
-0.03912900760769844,
-0.01637854240834713,
0.037334099411964417,
0.01839781366288662,
0.0400264635682106,
-0.006214871536940336,
-0.03090832754969597,
-0.00870530679821968,
-0.018433712422847748,
-0.03017241507768631,
0.03297247365117073,
-0.02076709270477295,
-0.02990317903459072,
-0.04074442759156227,
-0.008916208520531654,
-0.011011764407157898,
-0.023028679192066193,
-0.09355063736438751,
-0.03938029706478119,
-0.029167266562581062,
-0.0037199482321739197,
-0.01061688456684351,
-0.049395885318517685,
0.026097971946001053,
-0.013874644413590431,
0.01888243854045868,
0.0006467280327342451,
-0.012672055512666702,
-0.000011077951967308763,
0.020838890224695206,
0.04616505280137062,
0.05144208297133446,
-0.006093714851886034,
-0.043221402913331985,
0.04648813605308533,
0.029562145471572876,
-0.02733645960688591,
0.007987343706190586,
-0.008104012347757816,
-0.07079119980335236,
0.022759441286325455,
-0.0670577883720398,
0.014233625493943691,
-0.03510841354727745,
-0.02378254011273384,
0.029167266562581062,
-0.0016771177761256695,
0.00605781702324748,
-0.009997641667723656,
0.02665439434349537,
0.06770395487546921,
-0.01767984963953495,
-0.05108310282230377,
-0.014664404094219208,
0.023010728880763054,
-0.028915978968143463,
-0.0717245489358902,
-0.0064706457778811455,
-0.008454020135104656,
-0.010778426192700863,
-0.03683152794837952,
-0.004446886479854584,
0.03412121534347534,
-0.01904398202896118,
-0.027515949681401253,
-0.009701481088995934,
-0.03905721381306648,
0.010688681155443192,
0.057365283370018005,
0.012591284699738026,
-0.043221402913331985,
-0.024590248242020607,
0.017536258324980736,
0.004182137083262205,
0.07495538890361786,
0.033851977437734604,
-0.0580473467707634,
0.06730907410383224,
-0.007013605907559395,
-0.028449302539229393,
-0.020856838673353195,
-0.02238251082599163,
-0.04638044163584709,
0.03482122719287872,
0.018774744123220444,
-0.043472688645124435,
0.06529878079891205,
-0.019223472103476524,
-0.0040946356020867825,
-0.01777856983244419,
0.034857127815485,
0.02121582068502903,
0.022490205243229866,
0.04121110215783119,
-0.0050795916467905045,
-0.06282180547714233,
0.015786221250891685,
-0.015364418737590313,
0.046524032950401306,
-0.003540457459166646,
0.002234661253169179,
-0.13239246606826782,
-0.003807449946179986,
0.008337350562214851,
0.05108310282230377,
0.04261113330721855,
-0.0805554986000061,
-0.030962174758315086,
-0.01731189340353012,
-0.018936285749077797,
-0.01473620068281889,
0.027767237275838852,
0.031069869175553322,
-0.00920788198709488,
-0.00460394099354744,
-0.06282180547714233,
-0.009871997870504856,
-0.01682726852595806,
0.009127110242843628,
-0.0363648496568203,
-0.06633982807397842,
0.023226117715239525,
-0.024697942659258842,
0.041605982929468155,
0.02234661392867565,
0.0032981447875499725,
0.0028606357518583536,
-0.011505364440381527,
0.0180119089782238,
-0.021861987188458443,
0.027767237275838852,
0.005052668042480946,
-0.018900388851761818,
-0.006053329445421696,
0.007390536367893219,
0.014754149131476879,
0.03887772187590599,
-0.04594966396689415,
0.02195173315703869,
0.05865761637687683,
-0.08335556089878082,
-0.07089889049530029,
-0.0005595067050307989,
0.03327760845422745,
-0.029328808188438416,
0.055211391299963,
-0.02521846629679203,
-0.009800201281905174,
0.005416137166321278,
0.0010382424807175994,
0.0018005177844315767,
0.0031051919795572758,
0.031051920726895332,
0.02520051784813404,
0.01472722552716732,
-0.03532380238175392,
0.002472486812621355,
-0.036652036011219025,
0.05377546325325966,
0.016737524420022964,
0.015454163774847984,
-0.03110576793551445,
-0.06343207508325577,
0.020856838673353195,
-0.02006707899272442,
-0.022526104003190994,
0.03367248550057411,
-0.09319166094064713,
-0.02030041813850403,
-0.07283739745616913,
0.018990134820342064,
0.0040161083452403545,
0.00036487128818407655,
0.017984984442591667,
-0.011137408204376698,
-0.011002790182828903,
-0.03798026964068413,
0.02920316345989704,
0.008000805042684078,
0.0024657559115439653,
-0.03625715523958206,
0.039487991482019424,
-0.03491097316145897,
0.0038523226976394653,
-0.02660054713487625,
0.007013605907559395,
-0.06196024641394615,
-0.02028246782720089,
-0.05144208297133446,
-0.022508155554533005,
0.006394362077116966,
-0.004967409651726484,
0.036149460822343826,
-0.02972368709743023,
0.01672854833304882,
0.005025744438171387,
0.0073187402449548244,
0.048677925020456314,
0.01306693535298109,
0.047062505036592484,
0.0039196317084133625,
0.006569365970790386,
0.04340089112520218,
0.03060319274663925,
0.05844222754240036,
-0.06960655748844147,
0.0955609381198883,
0.0026744138449430466,
-0.018487559631466866,
-0.03963158279657364,
0.005559729877859354,
0.045590680092573166,
0.07710927724838257,
0.02218507044017315,
-0.011146383360028267,
0.015086207538843155,
-0.05531908571720123,
0.03708281368017197,
0.009167496114969254,
0.005160362459719181,
0.04691891372203827,
-0.027300560846924782,
0.035969968885183334,
-0.00014401337830349803,
-0.018792694434523582,
-0.048426635563373566,
0.005178311374038458,
-0.018433712422847748,
0.015588781796395779,
-0.038518741726875305,
-0.016324695199728012,
-0.023279964923858643,
0.010778426192700863,
0.0006792607600800693,
-0.009773277677595615,
-0.03187757730484009,
-0.005402675364166498,
-0.03627510368824005,
0.062103841453790665,
-0.009737379848957062,
0.027910830453038216
] |
723,264
|
exponent_server_sdk
|
__init__
| null |
def __init__(self, push_response):
if push_response.message:
self.message = push_response.message
else:
self.message = 'Unknown push ticket error'
super(PushTicketError, self).__init__(self.message)
self.push_response = push_response
|
(self, push_response)
|
[
-0.030276266857981682,
-0.004212532192468643,
-0.014793873764574528,
0.03444460406899452,
-0.04075293615460396,
-0.03798024728894234,
-0.013742485083639622,
0.06981963664293289,
0.04462353512644768,
-0.01862725429236889,
0.05221585929393768,
0.033402521163225174,
0.010299885645508766,
-0.021753506734967232,
-0.037384770810604095,
0.04983395338058472,
0.03677068278193474,
-0.043320927768945694,
0.04183223471045494,
-0.026219582185149193,
0.014468221925199032,
0.01496135164052248,
-0.01850629784166813,
0.10018894821405411,
0.013733181171119213,
0.06453478336334229,
0.0017724735662341118,
0.017678214237093925,
0.05083882063627243,
-0.02884340099990368,
-0.03952476382255554,
-0.024749498814344406,
-0.01698969304561615,
0.06900086253881454,
-0.034370169043540955,
-0.010160320438444614,
-0.05351846665143967,
-0.04194388911128044,
-0.11790437996387482,
0.03556112200021744,
-0.017203694209456444,
0.022032637149095535,
-0.03677068278193474,
-0.01989264227449894,
0.05255081504583359,
0.004238119348883629,
-0.009704409167170525,
0.06736329942941666,
-0.015063699334859848,
-0.0094578443095088,
-0.05917549505829811,
0.06204122677445412,
-0.029885485768318176,
-0.0035775122232735157,
-0.05072716996073723,
0.05898940935730934,
0.02309332974255085,
0.044400230050086975,
-0.03822216019034386,
0.02169768139719963,
-0.08991697430610657,
0.06766103953123093,
-0.01606856659054756,
0.001124078524298966,
-0.017138563096523285,
-0.010811623185873032,
-0.0006344385328702629,
0.00444514025002718,
-0.01794803887605667,
0.02677784115076065,
0.08009161055088043,
0.03137417882680893,
-0.0751044973731041,
0.013658746145665646,
0.06550243496894836,
0.017073431983590126,
-0.02882479317486286,
0.02750357799232006,
0.0012304966803640127,
0.02393071912229061,
0.014784568920731544,
0.050094474107027054,
-0.003563555656000972,
0.019911251962184906,
0.03833381086587906,
-0.012709705159068108,
0.01620813086628914,
-0.015677783638238907,
-0.06025479733943939,
0.050094474107027054,
-0.013249356299638748,
-0.028862010687589645,
-0.01879473216831684,
-0.011369883082807064,
0.01508230809122324,
0.009364801459014416,
0.016422130167484283,
-0.029178356751799583,
-0.00994632113724947,
0.0020516032818704844,
0.0020527662709355354,
-0.012681792490184307,
-0.07208989560604095,
-0.04961065202951431,
0.011974663473665714,
-0.027373317629098892,
0.02949470467865467,
-0.05742628127336502,
0.036249641329050064,
0.0034146865364164114,
0.025531062856316566,
-0.015147438272833824,
-0.057947322726249695,
0.04164614900946617,
-0.019390208646655083,
-0.012356140650808811,
-0.016850128769874573,
-0.00032012685551308095,
0.020413685590028763,
-0.03866876661777496,
0.05459776893258095,
-0.05128542706370354,
0.0016933868173509836,
0.014831091277301311,
0.029420269653201103,
0.025549670681357384,
-0.015873175114393234,
-0.050317779183387756,
0.07249928265810013,
-0.048568565398454666,
0.0163290873169899,
-0.014728743582963943,
-0.01693386770784855,
-0.08403664827346802,
-0.057389065623283386,
-0.013509877026081085,
-0.013388920575380325,
-0.04309762269258499,
0.021790724247694016,
-0.02424706518650055,
0.04358144849538803,
0.057165760546922684,
-0.003340251976624131,
-0.03438877686858177,
0.00006781979027437046,
0.0280432291328907,
0.01220727153122425,
0.027652448043227196,
-0.03937589377164841,
-0.013900659047067165,
0.009974234737455845,
-0.0510249063372612,
0.02054394595324993,
-0.002336548175662756,
0.009834669530391693,
0.02043229341506958,
-0.006210635416209698,
-0.00966719165444374,
0.011323360726237297,
0.008238977752625942,
0.023856284096837044,
-0.057165760546922684,
0.01874821074306965,
0.013584312051534653,
0.019148297607898712,
0.0019457665039226413,
0.03837102651596069,
-0.04492127150297165,
-0.022032637149095535,
0.05772402137517929,
-0.03444460406899452,
-0.022758373990654945,
-0.04938734695315361,
-0.012514314614236355,
-0.019539078697562218,
0.034184083342552185,
0.018692385405302048,
-0.001867842860519886,
-0.03226739168167114,
-0.007857500575482845,
-0.013500573113560677,
-0.021660463884472847,
0.018710993230342865,
0.04309762269258499,
0.022535070776939392,
0.004375358112156391,
0.01965072937309742,
0.03517034277319908,
-0.002844796748831868,
0.03930145874619484,
0.03407243266701698,
-0.005689593497663736,
0.011137275025248528,
0.023484110832214355,
0.03308617323637009,
0.013007443398237228,
0.02618236467242241,
-0.029904093593358994,
0.011844403110444546,
0.04763813316822052,
-0.05109934136271477,
0.03329086676239967,
-0.022442027926445007,
-0.03422129899263382,
0.007648153696209192,
0.02322359010577202,
0.022814199328422546,
0.013156312517821789,
-0.011593186296522617,
-0.02013455517590046,
-0.039561983197927475,
0.016049956902861595,
0.028210707008838654,
0.02755940519273281,
-0.0009635789319872856,
-0.013156312517821789,
0.016822215169668198,
-0.009778843261301517,
0.012988834641873837,
0.005638419650495052,
0.06341826915740967,
-0.03682650998234749,
-0.027112796902656555,
-0.028806183487176895,
-0.02817348949611187,
0.08024048060178757,
-0.009318279102444649,
-0.026759233325719833,
-0.028973661363124847,
0.01691525988280773,
-0.024284282699227333,
0.00539650721475482,
0.052811335772275925,
0.005033638793975115,
-0.02847122773528099,
-0.017613083124160767,
-0.004852204583585262,
-0.033458344638347626,
-0.0486057847738266,
-0.028378184884786606,
0.06051531806588173,
-0.022032637149095535,
-0.011165187694132328,
0.07614658027887344,
0.038594331592321396,
-0.021492986008524895,
-0.01879473216831684,
0.06870312243700027,
-0.07249928265810013,
0.007220154628157616,
-0.004673096351325512,
0.00134563772007823,
-0.03131835162639618,
-0.030499570071697235,
0.005610506981611252,
-0.10428285598754883,
0.02968079037964344,
-0.02811766415834427,
0.06687947362661362,
0.007964500226080418,
0.00475916126742959,
0.018106212839484215,
0.02000429481267929,
0.034742340445518494,
-0.032304611057043076,
-0.025791583582758904,
-0.05374176800251007,
0.013072573579847813,
0.017575865611433983,
0.07413684576749802,
0.13852275907993317,
-0.011202405206859112,
0.042651016265153885,
0.05924993008375168,
-0.025772973895072937,
-0.026740623638033867,
-0.0413484126329422,
0.011918838135898113,
-0.02750357799232006,
-0.03137417882680893,
0.014328657649457455,
-0.03245347738265991,
0.06874033808708191,
0.0678471252322197,
-0.005001073703169823,
-0.012095619924366474,
0.043246492743492126,
0.019297165796160698,
-0.0016259304247796535,
-0.028620097786188126,
-0.022702548652887344,
0.038594331592321396,
-0.02110220491886139,
0.028154881671071053,
-0.0010252201464027166,
0.01526839379221201,
-0.026163756847381592,
0.07957056909799576,
0.029606355354189873,
-0.01578013226389885,
0.026554537937045097,
-0.0012793444329872727,
-0.007880761288106441,
-0.013044660910964012,
0.004663791973143816,
-0.002849448937922716,
0.017157170921564102,
0.04261380061507225,
-0.0070433723740279675,
-0.03338390961289406,
0.05906384438276291,
0.10867449641227722,
-0.04413970932364464,
0.012197967618703842,
0.0034123605582863092,
0.08262238651514053,
0.057277411222457886,
-0.022646721452474594,
-0.0014340287307277322,
0.04574005305767059,
-0.003198361024260521,
-0.09334097057580948,
-0.008573933504521847,
0.02223733253777027,
0.06713999807834625,
0.00982536468654871,
-0.024079587310552597,
-0.017864299938082695,
-0.006638634484261274,
0.028620097786188126,
-0.0076714144088327885,
-0.009843973442912102,
0.000910660601221025,
-0.07119668275117874,
0.006224592216312885,
-0.04503292217850685,
-0.01916690543293953,
0.0005035965004935861,
-0.038482680916786194,
-0.03896650671958923,
-0.006522330455482006,
-0.028266534209251404,
-0.022572288289666176,
0.046819355338811874,
-0.0008775139576755464,
-0.0414600633084774,
-0.02809905633330345,
-0.058058977127075195,
-0.01872960291802883,
-0.0018957557622343302,
-0.05415115877985954,
-0.008062195964157581,
0.03885485231876373,
0.02955053001642227,
0.05846836417913437,
-0.026014886796474457,
-0.06792155653238297,
0.01734325848519802,
0.032490696758031845,
0.012923704460263252,
0.03427712619304657,
-0.0011769968550652266,
-0.012197967618703842,
0.0019480925984680653,
-0.07075007259845734,
0.011956054717302322,
-0.02847122773528099,
0.03584025055170059,
0.0019027340458706021,
-0.001893429784104228,
0.005819853860884905,
-0.03234182670712471,
-0.040715716779232025,
0.02841540239751339,
-0.02218150533735752,
0.042651016265153885,
-0.04648439958691597,
0.01538004633039236,
-0.07979387789964676,
-0.05057829990983009,
0.007992413826286793,
-0.0068154167383909225,
-0.054374463856220245,
0.028638705611228943,
0.009890495799481869,
0.0004070641298312694,
-0.019687946885824203,
-0.012988834641873837,
0.10539937019348145,
0.06252504885196686,
-0.026982536539435387,
-0.027782708406448364,
0.005568637512624264,
0.021920984610915184,
-0.044400230050086975,
-0.020022902637720108,
-0.008020326495170593,
0.01387274544686079,
-0.012672487646341324,
-0.010802319273352623,
0.029420269653201103,
-0.004607966169714928,
-0.004596335347741842,
-0.013286572881042957,
0.04384196922183037,
0.021902376785874367,
-0.015063699334859848,
0.04544231295585632,
-0.011965359561145306,
0.0031076439190655947,
0.04454910010099411,
-0.04774978756904602,
-0.02739192731678486,
-0.10301746428012848,
-0.06527913361787796,
-0.011732751503586769,
-0.011416404508054256,
0.0033518823329359293,
-0.009155454114079475,
-0.031764958053827286,
-0.027001146227121353,
0.03559834137558937,
-0.001165947993285954,
-0.005657028406858444,
-0.03637990355491638,
0.03941311314702034,
0.008387846872210503,
0.009704409167170525,
0.06315774470567703,
0.008974019438028336,
-0.013137703761458397,
0.042837101966142654,
-0.00539650721475482,
0.0072387633845210075,
0.02575436607003212,
-0.012365445494651794,
-0.032974522560834885,
-0.015733610838651657,
-0.09081019461154938,
0.04469796642661095,
-0.006192027125507593,
0.0053406814113259315,
0.029048096388578415,
0.018143430352211,
0.03070426546037197,
-0.013351703993976116,
-0.06338104605674744,
-0.031355567276477814,
-0.043320927768945694,
-0.015631262212991714,
0.024042369797825813,
-0.012588748708367348,
-0.0067130690440535545,
-0.022200115025043488,
0.0063502006232738495,
-0.04819639399647713,
-0.04425135999917984,
0.00858323834836483,
0.011239621788263321,
-0.004487009719014168,
-0.04789865389466286,
0.03425851836800575,
-0.07372745871543884,
0.01381692010909319,
-0.018469080328941345,
0.05258803442120552,
0.01372387632727623,
0.010523189790546894,
-0.05132264643907547,
-0.016729172319173813,
-0.00363566423766315,
-0.0024330804590135813,
-0.017566561698913574,
0.0512482114136219,
-0.04454910010099411,
-0.012402663007378578,
0.008787932805716991,
-0.0218279417604208,
-0.06166905164718628,
-0.026852276176214218,
-0.03959919884800911,
0.030183224007487297,
0.030090181156992912,
-0.01879473216831684,
-0.01831090822815895,
-0.012858574278652668,
0.03866876661777496,
-0.05645863339304924,
0.040715716779232025,
0.0291411392390728,
-0.04194388911128044,
0.01717578060925007,
-0.05296020582318306,
0.023986544460058212,
-0.03548668697476387,
-0.0029006227850914,
-0.05705410987138748,
0.0329931303858757,
0.001424724468961358,
-0.010672058910131454,
-0.008080804720520973,
-0.03721729293465614,
0.0030820569954812527,
-0.04212997481226921,
0.03645433858036995,
-0.03077870048582554,
0.010802319273352623,
0.07413684576749802,
0.04659605026245117,
0.012635271064937115,
0.01614299975335598,
0.016831520944833755,
-0.002854101127013564,
-0.006778199225664139,
0.013826224021613598,
0.021325508132576942,
-0.027168624103069305,
-0.021846549585461617,
-0.026312625035643578,
0.048643000423908234,
0.0634554848074913,
0.042092759162187576,
0.04086458683013916,
-0.021139422431588173,
0.028694532811641693,
-0.022032637149095535,
0.04868021979928017,
-0.01375178899616003,
-0.012914400547742844,
0.025772973895072937,
0.001156643615104258,
-0.027522187680006027,
-0.054076723754405975,
0.013649442233145237,
0.010430146008729935,
0.05694245547056198,
-0.08068709075450897,
0.027168624103069305,
-0.05191812291741371,
-0.06245061755180359,
-0.025791583582758904,
0.017026910558342934,
-0.012505009770393372,
-0.05042942985892296,
-0.0732436329126358,
-0.051545947790145874,
-0.03343973681330681,
0.04946178197860718,
-0.033104781061410904,
-0.033942170441150665,
-0.01790151745080948,
-0.03250930458307266,
-0.00939736608415842,
0.023707415908575058,
-0.021064987406134605,
0.012746922671794891,
0.003333273809403181,
0.029048096388578415,
0.0702662467956543,
0.014505439437925816,
-0.010811623185873032,
0.03978528454899788,
0.02013455517590046,
-0.008336673490703106,
-0.021232465282082558,
0.015249785035848618,
-0.03680790215730667,
0.06442313641309738,
-0.05336959660053253,
0.01703621633350849,
-0.010383624583482742,
-0.01808760315179825,
-0.04131119325757027,
0.04752648249268532,
0.05363011732697487,
-0.02393071912229061,
0.03245347738265991,
0.08359003812074661,
0.027112796902656555,
0.03930145874619484,
0.014700829982757568,
-0.009983538649976254,
0.002237689681351185,
-0.04413970932364464,
-0.06918694823980331,
-0.0021295270416885614,
0.0038124462589621544,
-0.01747351884841919,
0.006475809030234814,
0.021716289222240448,
-0.030276266857981682,
-0.06338104605674744,
-0.01911108009517193,
0.009374105371534824,
0.011248926632106304,
0.010346407070755959,
0.05385342240333557,
-0.0512482114136219,
-0.03390495479106903,
-0.0023865588009357452,
0.01946464367210865,
0.0609247088432312,
-0.026312625035643578,
0.001407278818078339,
0.04592613875865936,
-0.031951043754816055,
-0.03059261478483677,
0.028675923123955727,
-0.06274835765361786,
0.010625536553561687,
0.04142284765839577,
0.0052988119423389435,
0.0015584741486236453,
0.037868596613407135,
-0.018655167892575264,
-0.023074721917510033,
-0.019967077299952507,
0.058542799204587936,
-0.014979960396885872,
0.004282314796000719,
0.025121672078967094,
-0.007462067063897848,
-0.06766103953123093,
0.07622101157903671,
-0.042464930564165115,
0.025363584980368614,
0.05028056353330612,
-0.030722875148057938,
-0.07718866318464279,
0.0067130690440535545,
0.04600057378411293,
0.05616089329123497,
0.03325365111231804,
-0.06453478336334229,
-0.008662324398756027,
0.021195247769355774,
0.006531634833663702,
0.01471943873912096,
0.04328371211886406,
0.03319782391190529,
0.026815058663487434,
-0.0487174354493618,
-0.033160608261823654,
-0.03725450858473778,
-0.021139422431588173,
0.027578013017773628,
-0.012142141349613667,
-0.059212710708379745,
-0.0029029487632215023,
-0.028582880273461342,
0.04000858962535858,
0.0006292048492468894,
0.007945891469717026,
0.026852276176214218,
-0.029215574264526367,
0.04086458683013916,
-0.021232465282082558,
0.07275980710983276,
0.009583452716469765,
0.00836923811584711,
-0.043246492743492126,
-0.0003698468499351293,
0.004898726008832455,
0.008169195614755154,
0.0008432042668573558,
0.043134842067956924,
0.04276266694068909,
-0.0659862607717514,
-0.047303177416324615,
0.020208990201354027,
0.014133267104625702,
-0.010206842795014381,
0.01886916719377041,
0.0072852848097682,
0.01639421656727791,
-0.03371886536478996,
0.0164407379925251,
0.01232822798192501,
0.041385628283023834,
0.015435871668159962,
0.010402233339846134,
0.050317779183387756,
-0.05984540656208992,
0.02296306937932968,
0.0016677998937666416,
0.03565416485071182,
0.031597480177879333,
0.03825937584042549,
-0.003289078129455447,
-0.05433724820613861,
0.008657672442495823,
-0.0412367582321167,
-0.058728888630867004,
0.027522187680006027,
-0.0875350683927536,
-0.007652805652469397,
-0.08076152205467224,
-0.07733753323554993,
-0.003617055481299758,
0.015324220061302185,
0.048643000423908234,
-0.0039054895751178265,
-0.04276266694068909,
-0.014170483686029911,
-0.01722230203449726,
-0.017194388434290886,
-0.019204122945666313,
-0.015519610606133938,
0.017724735662341118,
-0.03405382111668587,
-0.006285070441663265,
0.01290509570389986,
0.014710134826600552,
-0.07361580431461334,
-0.014682222157716751,
0.0127283139154315,
-0.0059268539771437645,
0.015919696539640427,
-0.0484941303730011,
0.028880618512630463,
-0.030276266857981682,
0.00721085024997592,
0.013472659513354301,
0.026256799697875977,
0.06624677777290344,
-0.0034844689071178436,
0.0413484126329422,
-0.018292298540472984,
0.013928571715950966,
-0.004682400729507208,
0.0017573540098965168,
0.04406527429819107,
-0.03833381086587906,
0.01940881833434105,
0.004345118999481201,
-0.052327513694763184,
-0.02949470467865467,
0.03770111873745918,
0.10517606884241104,
0.07361580431461334,
0.006820068694651127,
-0.0707128569483757,
0.007052676752209663,
-0.028917836025357246,
0.007224807050079107,
0.016794303432106972,
0.019148297607898712,
0.013230747543275356,
-0.03967363387346268,
0.024470370262861252,
-0.019259948283433914,
-0.024098196998238564,
-0.02599627897143364,
0.03731033578515053,
-0.004828943870961666,
-0.016654739156365395,
-0.05653306841850281,
0.02701975405216217,
0.02610792964696884,
0.02303750440478325,
-0.008690237998962402,
-0.021381333470344543,
-0.00786215253174305,
0.02473089098930359,
0.010737189091742039,
0.10324076563119888,
0.014468221925199032,
0.05634697899222374
] |
723,265
|
exponent_server_sdk
|
InvalidCredentialsError
|
Raised when our push notification credentials for your standalone app
are invalid (ex: you may have revoked them).
Run expo build:ios -c to regenerate new push notification credentials for
iOS. If you revoke an APN key, all apps that rely on that key will no
longer be able to send or receive push notifications until you upload a
new key to replace it. Uploading a new APN key will not change your users'
Expo Push Tokens.
|
class InvalidCredentialsError(PushTicketError):
"""Raised when our push notification credentials for your standalone app
are invalid (ex: you may have revoked them).
Run expo build:ios -c to regenerate new push notification credentials for
iOS. If you revoke an APN key, all apps that rely on that key will no
longer be able to send or receive push notifications until you upload a
new key to replace it. Uploading a new APN key will not change your users'
Expo Push Tokens.
"""
pass
|
(push_response)
|
[
-0.05107339471578598,
-0.06535758078098297,
-0.015697723254561424,
0.054532844573259354,
0.033292561769485474,
-0.0654691755771637,
-0.0282707791775465,
0.016209200024604797,
0.028549768030643463,
-0.04422888904809952,
0.055276814848184586,
0.04400569945573807,
0.01896188221871853,
0.007690768223255873,
-0.042108580470085144,
-0.021147286519408226,
0.060670580714941025,
-0.01242426410317421,
0.02324899658560753,
-0.02685724012553692,
0.02328619547188282,
0.06446481496095657,
-0.0225980244576931,
0.06439042091369629,
-0.002954947529360652,
0.08317560702562332,
0.0357290580868721,
0.04255496338009834,
-0.009048509411513805,
-0.06238170713186264,
-0.07528954744338989,
0.029089143499732018,
0.028159184381365776,
0.04300134256482124,
-0.013493717648088932,
-0.043038543313741684,
-0.004177844617515802,
0.03905831277370453,
-0.0953022837638855,
-0.005616957321763039,
-0.08042293041944504,
0.008853217586874962,
0.03924430534243584,
-0.018031921237707138,
0.02509031631052494,
-0.0447496697306633,
-0.0006102861370891333,
0.023899968713521957,
-0.006123785860836506,
0.0054588643833994865,
0.007216488476842642,
0.01005286630243063,
-0.02892175130546093,
0.013614612631499767,
-0.029498327523469925,
0.10147722065448761,
0.023397790268063545,
0.05628117173910141,
-0.02754541113972664,
0.025239109992980957,
-0.09031770378351212,
0.030595678836107254,
0.014618968591094017,
-0.05349129065871239,
0.006909601856023073,
-0.005198475439101458,
0.0250531192868948,
0.009773878380656242,
-0.008681175298988819,
0.004928787238895893,
0.05721113085746765,
0.008053452707827091,
-0.04337332770228386,
-0.01874799095094204,
0.04672118276357651,
-0.03660321980714798,
-0.041699398308992386,
0.08451475203037262,
0.010796833783388138,
-0.008481234312057495,
0.018933983519673347,
-0.017083361744880676,
0.019752347841858864,
0.05672755092382431,
0.03803535923361778,
0.04184819385409355,
0.06595275551080704,
-0.029777314513921738,
-0.05847587436437607,
0.024960123002529144,
-0.014535272493958473,
0.018692193552851677,
-0.057322725653648376,
-0.03431551903486252,
0.029070544987916946,
-0.006602714769542217,
0.009699481539428234,
0.003064217744395137,
-0.015111847780644894,
0.025704089552164078,
0.044600874185562134,
-0.07235087454319,
-0.07469437271356583,
-0.0212588831782341,
0.022784017026424408,
-0.02148207277059555,
0.002917749108746648,
-0.0077419159933924675,
0.05308210849761963,
0.0001193690623040311,
-0.024030162021517754,
-0.024327749386429787,
-0.021184485405683517,
-0.0284939706325531,
0.0017122885910794139,
0.010350452736020088,
0.021054290235042572,
-0.01275904942303896,
0.0007364119519479573,
-0.007490826770663261,
0.04021146520972252,
0.02758261002600193,
-0.02395576611161232,
0.013065936043858528,
0.04612600803375244,
0.04021146520972252,
-0.000593721226323396,
-0.01986394263803959,
0.04497285932302475,
-0.033497154712677,
-0.003889557207003236,
0.00981107633560896,
0.01546523254364729,
-0.05988941341638565,
-0.06163774058222771,
0.02962852083146572,
0.07607071846723557,
-0.03593364730477333,
0.046683985739946365,
0.013930798508226871,
-0.030391087755560875,
0.038797926157712936,
-0.03388773649930954,
0.027471013367176056,
-0.005942443385720253,
0.030781671404838562,
-0.02823358029127121,
0.03531987592577934,
-0.010359752923250198,
0.011829089373350143,
0.026820043101906776,
-0.01004356611520052,
-0.00891366507858038,
0.0004460901254788041,
-0.003578020492568612,
0.010015667416155338,
0.02399296499788761,
0.022077247500419617,
-0.019491959363222122,
0.04768834263086319,
0.009462341666221619,
0.0008602128946222365,
0.02711762860417366,
0.03383193910121918,
-0.004910188261419535,
-0.011624498292803764,
0.03120945207774639,
-0.021072890609502792,
-0.028568366542458534,
-0.006156334187835455,
-0.007039796095341444,
0.00903921015560627,
0.02328619547188282,
-0.05535120889544487,
-0.010824732482433319,
0.0060121905989944935,
-0.02466253563761711,
-0.002050561597570777,
-0.022281838580965996,
-0.0678870677947998,
-0.01244286261498928,
-0.022077247500419617,
-0.006109836045652628,
0.029461128637194633,
0.0678870677947998,
0.07149531692266464,
0.012117376551032066,
0.023341992869973183,
0.021351877599954605,
-0.050738610327243805,
-0.011903486214578152,
0.012675352394580841,
0.01697176694869995,
0.039653487503528595,
0.030577080324292183,
-0.021333279088139534,
-0.02642945945262909,
-0.03645442798733711,
-0.01254515815526247,
0.030595678836107254,
-0.061563342809677124,
0.033552952110767365,
0.019603554159402847,
-0.016385892406105995,
0.02127748169004917,
-0.03453870862722397,
0.031730230897665024,
0.0017576240934431553,
0.0064306724816560745,
0.01805981993675232,
0.004263865761458874,
0.007974405772984028,
0.008946213871240616,
0.03597084805369377,
0.007262986619025469,
0.05672755092382431,
0.049362268298864365,
0.008657926693558693,
-0.007211838848888874,
0.01481426041573286,
0.03976508229970932,
0.012098778039216995,
0.018376007676124573,
-0.05676474794745445,
0.06327446550130844,
0.019994137808680534,
0.01278694812208414,
-0.013912199065089226,
-0.025443701073527336,
-0.007100243587046862,
-0.006974698975682259,
-0.01809701882302761,
-0.018357407301664352,
0.03200921788811684,
-0.032195210456848145,
-0.05021783336997032,
0.006928200833499432,
-0.056392766535282135,
0.05992661416530609,
-0.006212132051587105,
0.00757917296141386,
0.015409435145556927,
-0.008434736169874668,
0.07175569981336594,
0.06848224252462387,
-0.0000845682225190103,
-0.0010828219819813967,
0.045568034052848816,
-0.04043465480208397,
0.025722689926624298,
0.028196383267641068,
-0.03639863058924675,
-0.015242042019963264,
-0.037365786731243134,
-0.007146741263568401,
-0.07000737637281418,
-0.008202246390283108,
-0.05587198957800865,
0.03254859521985054,
-0.01925016939640045,
0.008151098154485226,
-0.0004530648293439299,
0.0017367000691592693,
0.02189125493168831,
0.010276056826114655,
-0.01400519534945488,
-0.001157218823209405,
0.050478219985961914,
-0.0021644816733896732,
0.047093167901039124,
0.08362199366092682,
0.036696214228868484,
-0.012117376551032066,
0.04203418642282486,
0.006639913190156221,
0.03533847630023956,
-0.04381970688700676,
0.11591019481420517,
0.010248157195746899,
-0.019398963078856468,
-0.017036864534020424,
-0.013726207427680492,
0.08243164420127869,
0.06848224252462387,
-0.0035733706317842007,
-0.019101375713944435,
-0.004496356006711721,
-0.06952379643917084,
0.026094673201441765,
0.009885473176836967,
0.02120308391749859,
0.07432239502668381,
-0.009904072619974613,
0.015539629384875298,
0.004984584636986256,
-0.009904072619974613,
-0.0006201670039445162,
0.01005286630243063,
0.02918213978409767,
0.005802949424833059,
0.04902748391032219,
0.10125403106212616,
-0.05315650627017021,
-0.07283445447683334,
0.02031032368540764,
0.01673927716910839,
0.004928787238895893,
-0.008267343044281006,
-0.0402858592569828,
-0.027080431580543518,
0.01579071767628193,
0.02895895019173622,
0.050031840801239014,
-0.0008822993841022253,
0.018403906375169754,
0.04456367716193199,
0.022040048614144325,
0.0007422242197208107,
0.008727673441171646,
0.02782439813017845,
-0.03507808595895767,
-0.01299153920263052,
-0.03545007109642029,
0.009067108854651451,
0.02644805796444416,
-0.032920580357313156,
-0.001272882567718625,
-0.018840987235307693,
-0.015325738117098808,
-0.00502178305760026,
-0.06409282982349396,
-0.023806972429156303,
0.021165886893868446,
-0.0496598556637764,
0.0038918820209801197,
-0.026280665770173073,
0.00661201449111104,
0.02440214715898037,
-0.02486712671816349,
-0.025183312594890594,
-0.02168666385114193,
-0.03137684613466263,
-0.0316186361014843,
0.06918901205062866,
-0.04452647641301155,
-0.07584752887487411,
0.0483207143843174,
-0.033794742077589035,
-0.004052300006151199,
-0.03522687777876854,
-0.03766337409615517,
0.07633110135793686,
0.04367091506719589,
0.005347269121557474,
0.10475067794322968,
-0.025462301447987556,
-0.08704423904418945,
0.019770946353673935,
-0.010592242702841759,
-0.011680295690894127,
0.012731150723993778,
-0.030856067314743996,
-0.010908429510891438,
0.030353888869285583,
-0.10928887873888016,
0.01990114152431488,
-0.005421665962785482,
0.02099849283695221,
0.020756704732775688,
-0.019752347841858864,
-0.006570166442543268,
-0.025164714083075523,
-0.040360257029533386,
0.0456424281001091,
-0.020068533718585968,
0.04270375519990921,
-0.06632473319768906,
0.027192026376724243,
-0.09716220200061798,
0.03252999484539032,
-0.004854390397667885,
0.03638003021478653,
-0.01648818887770176,
0.04806032404303551,
-0.01943616010248661,
0.004928787238895893,
-0.021165886893868446,
-0.015437333844602108,
0.06811025738716125,
0.04727916046977043,
-0.055500004440546036,
-0.005026433151215315,
-0.012201073579490185,
0.03660321980714798,
-0.011457105167210102,
-0.010880529880523682,
-0.09790617227554321,
0.01342862006276846,
-0.01086193136870861,
-0.002724782330915332,
0.03184182569384575,
-0.010508546605706215,
0.07525235414505005,
-0.029777314513921738,
0.006184232886880636,
0.03143264353275299,
0.03476189821958542,
-0.11166957765817642,
0.0201429296284914,
-0.004421959165483713,
-0.027229225262999535,
-0.024550940841436386,
-0.029740115627646446,
-0.055462807416915894,
-0.017241455614566803,
-0.029070544987916946,
-0.024978721514344215,
-0.0022644521668553352,
0.0028340525459498167,
-0.00007999107765499502,
-0.021612267941236496,
-0.022691020742058754,
-0.01116881798952818,
0.06334886699914932,
-0.03096766397356987,
0.034278322011232376,
0.009913371875882149,
-0.00813249871134758,
0.0026085374411195517,
-0.014842159114778042,
-0.02665264904499054,
0.06230730935931206,
-0.013921499252319336,
-0.0008404512191191316,
-0.044638071209192276,
-0.043708112090826035,
-0.014832859858870506,
-0.035115282982587814,
-0.06275369226932526,
0.0338505394756794,
-0.08667226135730743,
-0.020942695438861847,
0.020738104358315468,
0.003082816954702139,
0.0456424281001091,
-0.015139746479690075,
-0.008974112570285797,
-0.024048762395977974,
0.010099364444613457,
0.029312334954738617,
-0.0006143547361716628,
-0.010341153480112553,
-0.007853510789573193,
-0.041922591626644135,
0.02871716022491455,
-0.057285528630018234,
-0.10043566673994064,
0.04605161026120186,
-0.01187558751553297,
-0.013967997394502163,
0.00756522361189127,
0.04884149134159088,
-0.08116689324378967,
-0.005026433151215315,
-0.0028526517562568188,
-0.016553284600377083,
0.018227213993668556,
-0.010536445304751396,
-0.039207108318805695,
0.04817191883921623,
0.02934953384101391,
-0.010145861655473709,
-0.002957272343337536,
0.03405512869358063,
-0.03160003572702408,
-0.011996482498943806,
0.044414881616830826,
0.06163774058222771,
-0.047353554517030716,
-0.049585457891225815,
0.0017541367560625076,
0.013075235299766064,
-0.036491625010967255,
0.01142920646816492,
-0.0162556990981102,
0.011038623750209808,
0.011447805911302567,
-0.060038208961486816,
0.033125169575214386,
0.02551809884607792,
-0.027229225262999535,
-0.025015920400619507,
-0.047316357493400574,
0.02551809884607792,
0.014033094048500061,
-0.004352211952209473,
-0.06338606029748917,
0.02531350776553154,
-0.03998827561736107,
-0.0338505394756794,
0.00019747116311918944,
-0.03632423281669617,
0.02486712671816349,
-0.002617836929857731,
0.07856301218271255,
-0.010006368160247803,
0.0074024805799126625,
0.03167443349957466,
0.019789544865489006,
-0.018840987235307693,
-0.0402858592569828,
0.0175948403775692,
0.05360288545489311,
-0.026968834921717644,
0.0654691755771637,
0.016348693519830704,
0.022877013310790062,
0.005644856486469507,
-0.014098191633820534,
0.027210624888539314,
0.03838874399662018,
-0.0212588831782341,
0.031507041305303574,
0.028400974348187447,
0.01945476047694683,
-0.016450989991426468,
0.03816555067896843,
-0.024941522628068924,
-0.010313254781067371,
0.04277815297245979,
-0.02438354678452015,
0.024067360907793045,
0.00937399547547102,
-0.02509031631052494,
-0.0036896157544106245,
-0.012814846821129322,
-0.04043465480208397,
0.02190985344350338,
0.041699398308992386,
0.005244973581284285,
-0.021835457533597946,
0.017455346882343292,
-0.028531167656183243,
-0.04616320878267288,
-0.10266757011413574,
-0.002548089949414134,
0.016841573640704155,
0.00031734880758449435,
0.008104600012302399,
-0.040583446621894836,
0.04765114188194275,
-0.004705596715211868,
0.06855664402246475,
0.03768197447061539,
-0.022300437092781067,
-0.030651476234197617,
0.011503603309392929,
-0.011568700894713402,
0.027210624888539314,
-0.01140130776911974,
-0.048878688365221024,
-0.007751215249300003,
-0.013912199065089226,
-0.05148257687687874,
-0.03928150609135628,
0.017706435173749924,
-0.04679558053612709,
0.03924430534243584,
-0.06119135767221451,
0.032678790390491486,
-0.002761980751529336,
-0.03228820487856865,
0.031767427921295166,
0.007583822589367628,
-0.027452414855360985,
-0.05669035390019417,
0.029275136068463326,
0.04415449500083923,
0.0002672181581147015,
0.010192359797656536,
-0.01805981993675232,
0.028531167656183243,
-0.022095846012234688,
-0.066994309425354,
-0.017287952825427055,
-0.021798258647322655,
0.009485590271651745,
-0.07004457712173462,
0.057992298156023026,
0.017464645206928253,
-0.05114779248833656,
-0.029888909310102463,
-0.008648626506328583,
-0.031246650964021683,
-0.019082775339484215,
0.042815349996089935,
-0.005114779341965914,
-0.04043465480208397,
0.012731150723993778,
0.01761343888938427,
0.015930213034152985,
0.07391320914030075,
0.0005725065129809082,
-0.0474279522895813,
0.06364645063877106,
-0.0100714648142457,
-0.03184182569384575,
-0.014749163761734962,
-0.012628855183720589,
-0.022412031888961792,
0.028419572860002518,
0.013289126567542553,
-0.05408646538853645,
0.049399469047784805,
-0.02507171779870987,
0.010090064257383347,
-0.03541287034749985,
0.03641722723841667,
0.005747152026742697,
0.005003184080123901,
-0.02077530324459076,
-0.0036733413580805063,
-0.07796783745288849,
0.010675938799977303,
-0.020291723310947418,
0.02600167691707611,
0.012796247377991676,
0.006532968021929264,
-0.11687735468149185,
-0.003794236108660698,
0.024978721514344215,
0.07469437271356583,
0.0614517480134964,
-0.08131568878889084,
0.006523668300360441,
-0.01048994716256857,
-0.005417016334831715,
-0.002401621313765645,
0.029963307082653046,
0.019547756761312485,
0.003529197536408901,
-0.04255496338009834,
-0.09150805324316025,
-0.0004289439821150154,
-0.027842998504638672,
0.03931870311498642,
-0.02324899658560753,
-0.11293432116508484,
0.018915383145213127,
-0.03890952095389366,
0.023881368339061737,
0.014274884015321732,
0.011922085657715797,
0.015874415636062622,
-0.02010573260486126,
0.013679709285497665,
-0.04255496338009834,
0.024327749386429787,
-0.006388824433088303,
-0.03565466031432152,
0.02282121405005455,
-0.004401035141199827,
0.024960123002529144,
0.0402858592569828,
-0.04943666607141495,
-0.006100536789745092,
0.05014343559741974,
-0.057099536061286926,
0.0031362895388156176,
0.03414812684059143,
0.06085657328367233,
-0.04798592999577522,
0.043410524725914,
-0.01872939057648182,
0.062046922743320465,
0.006291178520768881,
-0.00231443764641881,
-0.0015018851263448596,
0.005900595337152481,
-0.004112747497856617,
0.027861597016453743,
-0.005096179898828268,
-0.026280665770173073,
-0.01720425672829151,
-0.01810631901025772,
0.024792728945612907,
0.05311930552124977,
0.04006266966462135,
-0.05337969586253166,
-0.043298929929733276,
-0.00028436430147849023,
-0.019082775339484215,
0.0007956969202496111,
0.01943616010248661,
-0.05077580735087395,
-0.03273458778858185,
-0.10289075970649719,
0.04746514931321144,
0.009532088413834572,
-0.017074063420295715,
0.015688423067331314,
0.01721355691552162,
-0.001995926257222891,
0.0024667184334248304,
0.031023461371660233,
0.019547756761312485,
0.0065515669994056225,
-0.004501005634665489,
0.015111847780644894,
-0.028940349817276,
-0.009680882096290588,
0.010313254781067371,
-0.005807599518448114,
-0.05014343559741974,
-0.017101962119340897,
-0.06219571456313133,
-0.013289126567542553,
-0.0025736638344824314,
-0.02600167691707611,
0.0007335058180615306,
-0.051222190260887146,
0.06870543211698532,
-0.00036820597597397864,
0.0031479140743613243,
0.07283445447683334,
0.0002635855053085834,
0.03372034430503845,
-0.05349129065871239,
0.0004170288739260286,
0.03887232020497322,
0.018385306000709534,
0.03598944470286369,
-0.0352826751768589,
0.0966414287686348,
0.002694558585062623,
0.0010549231665208936,
-0.0032525346614420414,
0.0025713390205055475,
-0.0006759645766578615,
0.06703150272369385,
-0.006360925268381834,
0.004807892255485058,
0.02936813235282898,
-0.01807842031121254,
0.025927281007170677,
0.03316236659884453,
0.004305714275687933,
0.010992125608026981,
-0.05282171815633774,
0.007104893215000629,
0.0019459410104900599,
0.04686997830867767,
-0.024755531921982765,
0.023881368339061737,
0.0005297865136526525,
0.019770946353673935,
-0.04969705641269684,
-0.03770057111978531,
-0.04114142432808876,
0.0024271951988339424,
-0.03223240748047829,
0.006928200833499432,
-0.01718565821647644,
0.005640206392854452,
-0.019491959363222122,
0.024811329320073128,
0.0015414084773510695,
0.005775050725787878
] |
723,267
|
exponent_server_sdk
|
MessageRateExceededError
|
Raised when you are sending messages too frequently to a device
You should implement exponential backoff and slowly retry sending messages.
|
class MessageRateExceededError(PushTicketError):
"""Raised when you are sending messages too frequently to a device
You should implement exponential backoff and slowly retry sending messages.
"""
pass
|
(push_response)
|
[
-0.037001609802246094,
-0.05502710118889809,
-0.04142571613192558,
0.05791556462645531,
-0.021572085097432137,
-0.05272363871335983,
-0.03915882110595703,
-0.019908476620912552,
-0.0025434037670493126,
-0.04906735569238663,
0.05308926850557327,
0.005219347774982452,
0.018409399315714836,
0.008482582867145538,
-0.04979861155152321,
0.03989007696509361,
0.06541094928979874,
-0.04292479529976845,
0.04709295928478241,
-0.03725755214691162,
0.017796970903873444,
0.06482594460248947,
-0.013400287367403507,
0.04310761019587517,
-0.008231213316321373,
0.10369226336479187,
-0.004330413416028023,
0.014296077191829681,
0.027714645490050316,
-0.042449478060007095,
-0.08877461403608322,
0.003226672066375613,
-0.012010898441076279,
0.04928673058748245,
-0.03224844112992287,
-0.03447877615690231,
-0.012056602165102959,
-0.022120527923107147,
-0.14398452639579773,
0.014314359053969383,
-0.06676377356052399,
0.024844462051987648,
-0.0011260217288509011,
-0.049688924103975296,
0.0668734684586525,
-0.009113292209804058,
-0.0017195969121530652,
0.08263205736875534,
-0.015566636808216572,
0.010228459723293781,
-0.019286906346678734,
0.00835461262613535,
-0.028080273419618607,
0.02903090789914131,
-0.04142571613192558,
0.08036515861749649,
0.004506372381001711,
0.04365605115890503,
-0.018418539315462112,
0.01093229465186596,
-0.055904608219861984,
0.03325391933321953,
0.027769489213824272,
-0.02648979052901268,
0.009127003140747547,
-0.02820824459195137,
0.006243107840418816,
0.014177247881889343,
-0.025959627702832222,
0.008944189175963402,
0.06574001908302307,
0.006074004806578159,
-0.08533770591020584,
0.010520962066948414,
0.011718396097421646,
-0.008775086142122746,
0.0004321844025980681,
0.048592038452625275,
-0.007691910956054926,
0.028317932039499283,
0.05261395126581192,
-0.0070383502170443535,
0.07330852746963501,
0.032595787197351456,
0.08789710700511932,
0.0031626871787011623,
0.027897460386157036,
-0.040694460272789,
-0.06566689163446426,
0.03553909808397293,
-0.026179006323218346,
-0.022559283301234245,
-0.007719333283603191,
-0.02188286930322647,
0.026142442598938942,
-0.010968857444822788,
0.0003659142239484936,
-0.012669029645621777,
-0.03522831201553345,
-0.021133331581950188,
-0.0027513550594449043,
0.005973456893116236,
-0.05747681111097336,
-0.05407646670937538,
0.04197416082024574,
-0.045191690325737,
0.0008883631671778858,
-0.015118741430342197,
0.03270547464489937,
0.004213869106024504,
0.028537310659885406,
-0.0024519965518265963,
-0.052760202437639236,
0.006110567599534988,
-0.007339993491768837,
0.028592154383659363,
-0.009478921070694923,
0.033948611468076706,
0.01718454249203205,
-0.02124302089214325,
0.0289212204515934,
-0.027787771075963974,
-0.012093164958059788,
-0.007079483009874821,
0.026270413771271706,
0.0203289482742548,
0.014177247881889343,
-0.0041521694511175156,
0.047604840248823166,
0.001583628705702722,
-0.03893944248557091,
0.005031963344663382,
0.015520933084189892,
-0.04457012191414833,
-0.016297893598675728,
0.011654410511255264,
0.07345478236675262,
-0.0070520611479878426,
0.04299791902303696,
-0.021828025579452515,
0.02413148619234562,
0.0668734684586525,
0.0037522632628679276,
-0.025557437911629677,
0.052760202437639236,
0.02857387252151966,
-0.002217765897512436,
-0.005379310343414545,
-0.05451522022485733,
-0.001476225326769054,
0.007317141629755497,
-0.02149895951151848,
-0.011453314684331417,
0.021005362272262573,
0.0569283701479435,
0.009917674586176872,
-0.01970737986266613,
0.001710456213913858,
-0.03188281133770943,
-0.01730337180197239,
-0.0021035068202763796,
-0.024789616465568542,
0.009424076415598392,
-0.002356019103899598,
-0.005022822413593531,
0.01125221885740757,
-0.012047461234033108,
-0.027824334800243378,
-0.03047514148056507,
0.05169988051056862,
-0.013948730193078518,
0.00902645569294691,
0.013034658506512642,
-0.025721970945596695,
0.008176368661224842,
0.025721970945596695,
-0.023473354056477547,
0.03360126540064812,
-0.024734772741794586,
-0.02837277762591839,
0.003119268687441945,
-0.023893827572464943,
0.010027363896369934,
-0.013528257608413696,
-0.005822634790092707,
0.03447877615690231,
0.023619605228304863,
0.01202003937214613,
-0.024478832259774208,
-0.004282424692064524,
0.015319837257266045,
-0.01879330910742283,
0.05100518465042114,
0.03325391933321953,
0.03219359740614891,
-0.0019058389589190483,
-0.0009660592186264694,
-0.00827234610915184,
0.03400345891714096,
0.09352778643369675,
-0.05323551967740059,
0.07934139668941498,
0.03281516581773758,
-0.06296124309301376,
0.019232062622904778,
-0.0007209738250821829,
0.02674572914838791,
-0.03018263913691044,
-0.04716608673334122,
-0.0041156066581606865,
-0.07809825986623764,
0.018756745383143425,
0.03142577409744263,
0.06398499757051468,
0.032943133264780045,
0.012595904059708118,
0.04647139087319374,
0.014652565121650696,
-0.038208186626434326,
0.007495385594666004,
0.07539261132478714,
-0.03941475972533226,
-0.04998142644762993,
-0.02930513024330139,
0.035118624567985535,
0.05674555525183678,
0.0066407290287315845,
-0.010018222965300083,
-0.004794304724782705,
-0.001195148448459804,
0.007637066766619682,
0.025539156049489975,
0.04047508165240288,
0.03425939753651619,
-0.009999941103160381,
-0.000886077992618084,
-0.042083848267793655,
-0.04504543915390968,
0.04621545225381851,
-0.013071221299469471,
0.01721196435391903,
-0.02149895951151848,
-0.010201036930084229,
0.09637968987226486,
0.05378396436572075,
-0.01879330910742283,
0.0017595875542610884,
0.05992652475833893,
-0.011453314684331417,
0.016297893598675728,
-0.014451469294726849,
-0.025923065841197968,
-0.04113321378827095,
-0.01734907552599907,
-0.002329739509150386,
-0.07882951945066452,
-0.004241291433572769,
-0.034752994775772095,
0.030804207548499107,
0.02142583392560482,
0.00795242190361023,
0.03776943311095238,
-0.04676389321684837,
0.061059970408678055,
-0.020456919446587563,
-0.008756804279983044,
-0.019506284967064857,
0.03893944248557091,
-0.012230276130139828,
0.07882951945066452,
0.11517299711704254,
0.02330882102251053,
-0.0048582898452878,
0.033052824437618256,
-0.0311881173402071,
-0.01615164242684841,
-0.03425939753651619,
0.08182767778635025,
0.011563003994524479,
-0.028592154383659363,
-0.0239669531583786,
-0.014853660948574543,
0.05751337483525276,
0.037915684282779694,
-0.026105880737304688,
0.013903026469051838,
0.03716614469885826,
0.004143028985708952,
-0.0034597604535520077,
0.0027513550594449043,
-0.033052824437618256,
0.010658073239028454,
-0.00954290572553873,
0.030036387965083122,
0.01734907552599907,
0.000469889841042459,
-0.008605982176959515,
0.026252131909132004,
0.07670887559652328,
0.005109659396111965,
0.04215697571635246,
0.04829953610897064,
-0.04672733321785927,
-0.0049039931036531925,
0.0010808894876390696,
-0.005114229861646891,
0.042083848267793655,
-0.018043769523501396,
0.002902176696807146,
-0.02568540722131729,
-0.011818943545222282,
0.04376573860645294,
-0.013391146436333656,
0.007797029335051775,
0.05550241842865944,
0.06047496572136879,
0.027093077078461647,
0.010950575582683086,
0.020822547376155853,
0.05367427319288254,
-0.03627035394310951,
0.00846887193620205,
0.0013711071806028485,
-0.011663551442325115,
-0.015356400050222874,
-0.016882900148630142,
0.009606890380382538,
0.002829051110893488,
-0.014652565121650696,
-0.03853725269436836,
-0.04500887542963028,
-0.047787655144929886,
0.022815223783254623,
-0.08065766096115112,
-0.0641678124666214,
0.00195611291565001,
0.016444144770503044,
0.0066407290287315845,
-0.01654469221830368,
0.002006386872380972,
0.02729417197406292,
-0.01757759414613247,
-0.006965224165469408,
0.081388920545578,
0.00827234610915184,
-0.04186446964740753,
0.06442375481128693,
-0.04892110452055931,
0.04654451832175255,
0.019488003104925156,
0.02873840555548668,
0.017157120630145073,
0.018665337935090065,
0.05539272725582123,
0.07714762538671494,
-0.053198955953121185,
-0.03733067587018013,
-0.010182755999267101,
0.029871854931116104,
-0.030804207548499107,
-0.016206486150622368,
-0.003615152556449175,
0.0023114581126719713,
0.03226672112941742,
-0.08416769653558731,
0.072394460439682,
-0.0016670377226546407,
0.008171798661351204,
0.029414817690849304,
0.012669029645621777,
-0.004622916225343943,
-0.04168165847659111,
-0.029817009344697,
0.057623062282800674,
-0.01578601449728012,
0.034588463604450226,
-0.07758638262748718,
0.027166202664375305,
-0.06844566762447357,
0.04727577418088913,
0.021206457167863846,
0.011489877477288246,
-0.039378196001052856,
-0.02268725261092186,
0.047239210456609726,
0.033765800297260284,
-0.015219288878142834,
-0.012221135199069977,
0.04446043446660042,
0.03319907560944557,
-0.003612867323681712,
-0.008372894488275051,
-0.020018164068460464,
-0.00885735172778368,
-0.1120285913348198,
-0.007317141629755497,
-0.028135119006037712,
0.009218410588800907,
0.016124220564961433,
-0.04142571613192558,
0.0010517534101381898,
0.010027363896369934,
-0.010621510446071625,
-0.005237629171460867,
0.03109670989215374,
0.017860956490039825,
0.02279694192111492,
-0.010658073239028454,
0.0058180647902190685,
0.03599613159894943,
-0.02332710288465023,
-0.0017081709811463952,
-0.04014601558446884,
-0.0194331593811512,
-0.02948794513940811,
-0.0722847655415535,
-0.035941287875175476,
-0.03643488883972168,
-0.02559399977326393,
-0.01865619793534279,
-0.006133419461548328,
-0.01604195311665535,
0.0248627420514822,
0.019652536138892174,
-0.03930507227778435,
0.007701051887124777,
-0.025520874187350273,
0.00962517224252224,
0.02151724137365818,
0.012294260784983635,
-0.015941405668854713,
0.009853689931333065,
-0.04332698509097099,
-0.014149826020002365,
-0.00483543798327446,
-0.0497254841029644,
-0.04446043446660042,
-0.03597785159945488,
-0.04457012191414833,
-0.020127853378653526,
0.005063955672085285,
0.005457006394863129,
0.05882963538169861,
0.006064863875508308,
0.07817138731479645,
-0.06526470184326172,
-0.01936003379523754,
-0.02270553447306156,
-0.012467934750020504,
-0.006224826443940401,
-0.006119708064943552,
-0.04851891100406647,
0.02511868253350258,
0.025703689083456993,
0.0016099083004519343,
-0.0777326375246048,
-0.056818678975105286,
0.0034003457985818386,
0.0017264523776248097,
-0.04405824467539787,
-0.016690943390130997,
0.06910379976034164,
-0.0913340151309967,
0.014104122295975685,
0.015886561945080757,
0.07561198621988297,
0.027952304109930992,
-0.019725661724805832,
-0.009469780139625072,
0.01730337180197239,
0.04694670811295509,
-0.003530600806698203,
-0.023272259160876274,
-0.02864699810743332,
-0.037732869386672974,
-0.0108408872038126,
0.007714762818068266,
0.048482347279787064,
-0.0035008934792131186,
-0.024625083431601524,
0.05897589027881622,
-0.055904608219861984,
0.0217000562697649,
-0.01849166490137577,
-0.018190020695328712,
-0.01858307234942913,
-0.026252131909132004,
-0.038208186626434326,
0.019597690552473068,
-0.008701959624886513,
-0.08840899169445038,
-0.0338754877448082,
0.015685465186834335,
0.04032883048057556,
-0.005612398497760296,
-0.015036474913358688,
-0.07744013518095016,
0.039378196001052856,
-0.008564849384129047,
-0.024807898327708244,
-0.0035260305739939213,
-0.03065795637667179,
-0.03762317821383476,
-0.02775120921432972,
0.08029203116893768,
-0.02458852156996727,
0.027824334800243378,
0.06361937522888184,
0.06292467564344406,
-0.02340022847056389,
0.0001310407096752897,
0.03054826706647873,
0.014542876742780209,
0.02511868253350258,
0.03425939753651619,
-0.02413148619234562,
0.006567603442817926,
-0.006403070408850908,
0.007536518853157759,
0.001086031086742878,
0.06998130679130554,
0.023107726126909256,
0.027184484526515007,
0.013436850160360336,
0.043253861367702484,
-0.061608415096998215,
0.026343539357185364,
-0.02873840555548668,
-0.00021223595831543207,
0.06895755231380463,
0.047056395560503006,
0.039816953241825104,
0.018738463521003723,
-0.00945149827748537,
0.0028473325073719025,
0.011288782581686974,
-0.07345478236675262,
-0.003809392685070634,
-0.01794322207570076,
-0.0334184505045414,
-0.051919255405664444,
-0.006654439959675074,
0.011873788200318813,
-0.03861037641763687,
-0.07488073408603668,
-0.001476225326769054,
-0.024716490879654884,
0.010813465341925621,
-0.008884774520993233,
-0.06555720418691635,
0.03751349076628685,
0.005379310343414545,
0.022193653509020805,
0.005073096603155136,
0.002169776940718293,
-0.02504555694758892,
0.000574722420424223,
0.017687281593680382,
0.06442375481128693,
-0.01604195311665535,
-0.05524647608399391,
0.016498988494277,
0.021188175305724144,
-0.029433099552989006,
-0.0023880116641521454,
0.004725749138742685,
-0.06453344225883484,
0.05568523332476616,
-0.05897589027881622,
0.0010883163195103407,
-0.03632519766688347,
-0.002426859689876437,
0.015118741430342197,
-0.012330823577940464,
0.00046731901238672435,
-0.03171828016638756,
0.006942372303456068,
0.02060317061841488,
-0.0189944040030241,
-0.024442270398139954,
0.0005641534808091819,
0.012349105440080166,
-0.0442776195704937,
-0.06617876887321472,
-0.0038870887365192175,
-0.00196753884665668,
0.0064899069257080555,
-0.02919544093310833,
-0.012376527301967144,
0.07692825049161911,
-0.02215709164738655,
-0.006613306701183319,
0.005306184757500887,
-0.045959509909152985,
0.002281750785186887,
0.08095016330480576,
0.004698327276855707,
-0.03308938443660736,
-0.008820788934826851,
0.04658107832074165,
-0.0025571149308234453,
0.10318038612604141,
0.006275100167840719,
-0.011105967685580254,
0.06084059551358223,
0.010475258342921734,
-0.021462397649884224,
0.010612369515001774,
0.004885711707174778,
-0.016489848494529724,
0.020731139928102493,
0.02800714783370495,
-0.03420455381274223,
0.039926640689373016,
-0.03758661821484566,
-0.015987109392881393,
-0.025886502116918564,
0.01879330910742283,
0.038646940141916275,
-0.003021006006747484,
0.001070606173016131,
0.015932265669107437,
-0.05440553277730942,
0.013171769678592682,
-0.03210218995809555,
0.05568523332476616,
-0.0020555180963128805,
-0.04654451832175255,
-0.1383538544178009,
-0.03787912055850029,
0.00446295365691185,
0.04486262425780296,
0.06343656033277512,
-0.07089538127183914,
-0.03308938443660736,
-0.003471186151728034,
-0.024423988536000252,
0.02504555694758892,
-0.00017395922623109072,
-0.014076700434088707,
0.03137093037366867,
-0.008290627971291542,
-0.0777326375246048,
-0.034935809671878815,
-0.024332581087946892,
0.02243131212890148,
-0.04409480467438698,
-0.07063943892717361,
0.017431342974305153,
0.0035854452289640903,
0.027330735698342323,
0.016928602010011673,
0.004131603054702282,
0.012943251058459282,
-0.0325775071978569,
0.03398517519235611,
-0.011197375133633614,
0.0203289482742548,
0.02087739109992981,
-0.04394855350255966,
-0.03670910745859146,
-0.02305288054049015,
0.007536518853157759,
0.029853573068976402,
-0.0415719673037529,
0.024003515020012856,
0.0379522442817688,
-0.07846388965845108,
-0.0226141270250082,
0.007490815594792366,
0.04025570675730705,
0.008345471695065498,
0.03411314636468887,
-0.018409399315714836,
0.020292386412620544,
0.020402073860168457,
-0.002200627001002431,
0.0077558960765600204,
-0.019634254276752472,
0.026636041700839996,
0.038646940141916275,
0.03235812857747078,
-0.06994474679231644,
0.011791521683335304,
0.0014716549776494503,
0.06438719481229782,
0.016051094979047775,
0.01865619793534279,
-0.06460656970739365,
-0.042705416679382324,
0.025082120671868324,
-0.028427621349692345,
-0.04493575170636177,
0.02820824459195137,
-0.07678200304508209,
-0.03054826706647873,
-0.06621533632278442,
-0.0041521694511175156,
0.014935927465558052,
-0.06018246337771416,
0.018738463521003723,
-0.00481258612126112,
-0.016553834080696106,
-0.029579350724816322,
0.010557524859905243,
0.02875668741762638,
-0.02575853280723095,
-0.03332704305648804,
0.04990829899907112,
-0.030603110790252686,
0.006951513234525919,
0.0005258767050690949,
0.017632437869906425,
-0.04387542977929115,
-0.0379522442817688,
-0.025959627702832222,
0.008720241487026215,
0.027257610112428665,
-0.03199249878525734,
0.055648669600486755,
-0.045886386185884476,
0.03996320441365242,
0.010904871858656406,
-0.0203472301363945,
-0.007573081646114588,
0.01713883876800537,
0.0225958451628685,
0.005022822413593531,
0.0008009551092982292,
0.02857387252151966,
0.032997976988554,
0.027275891974568367,
-0.05173644423484802,
0.07279665023088455,
0.026051035150885582,
-0.022285060957074165,
-0.031151553615927696,
-0.008829929865896702,
0.08731210231781006,
0.04281510412693024,
0.010274162515997887,
-0.05100518465042114,
-0.021480679512023926,
-0.04457012191414833,
0.0015562066109851003,
-0.010639791376888752,
0.01970737986266613,
0.0659593939781189,
-0.020219260826706886,
0.015566636808216572,
-0.010329007171094418,
-0.026471508666872978,
-0.039634138345718384,
-0.0011443031253293157,
-0.02467992901802063,
-0.021626930683851242,
-0.04409480467438698,
-0.039195381104946136,
-0.02513696439564228,
-0.013007236644625664,
0.01961597241461277,
-0.023637887090444565,
0.015795154497027397,
0.030347172170877457,
-0.013848181813955307,
0.059158701449632645,
-0.006293381564319134,
0.05144394189119339
] |
723,269
|
exponent_server_sdk
|
MessageTooBigError
|
Raised when the notification was too large.
On Android and iOS, the total payload must be at most 4096 bytes.
|
class MessageTooBigError(PushTicketError):
"""Raised when the notification was too large.
On Android and iOS, the total payload must be at most 4096 bytes.
"""
pass
|
(push_response)
|
[
-0.046211715787649155,
-0.028730075806379318,
-0.04130396246910095,
0.06068422272801399,
-0.022371485829353333,
-0.0524091012775898,
-0.035805124789476395,
0.005668995436280966,
-0.00759896170347929,
-0.07153860479593277,
0.05860648676753044,
0.03347662836313248,
0.004983880091458559,
-0.00015098850417416543,
-0.018789183348417282,
0.04216371476650238,
0.03340498358011246,
-0.06089916080236435,
0.07902561873197556,
0.005489880219101906,
0.004556242376565933,
0.07300734519958496,
-0.02937489002943039,
0.012923160567879677,
-0.006322766188532114,
0.09099051356315613,
0.015018807724118233,
0.005660039838403463,
0.06842199712991714,
-0.02050868794322014,
-0.09292495995759964,
0.001434040954336524,
0.011902203783392906,
0.08053018897771835,
-0.04216371476650238,
-0.030557049438357353,
-0.013138098642230034,
-0.020078811794519424,
-0.11527853459119797,
0.0324377603828907,
-0.11413219571113586,
0.01776822656393051,
0.006018270272761583,
-0.04442056640982628,
0.06799212098121643,
-0.0399785079061985,
-0.004202490206807852,
0.06573527306318283,
-0.019971342757344246,
0.021171415224671364,
-0.016998030245304108,
-0.011758911423385143,
-0.049650728702545166,
0.02538062073290348,
-0.06319183856248856,
0.10911697149276733,
0.0007349319639615715,
0.05359126254916191,
-0.02692101150751114,
0.040300916880369186,
-0.04528031870722771,
0.0392262265086174,
0.05427189916372299,
-0.07336557656526566,
-0.01483969297260046,
-0.02493283338844776,
0.009564750827848911,
0.008884113281965256,
-0.03449758514761925,
-0.011696221306920052,
0.051119472831487656,
0.014302347786724567,
-0.06548450887203217,
0.01210818625986576,
0.020419130101799965,
0.009358768351376057,
0.0008748657419346273,
0.034945372492074966,
-0.004746552556753159,
0.017329394817352295,
0.08662009984254837,
-0.030825722962617874,
0.08454236388206482,
0.042593590915203094,
0.07229088991880417,
-0.00033584097400307655,
0.054021138697862625,
-0.009815512225031853,
-0.032527316361665726,
0.03238402679562569,
-0.007939280942082405,
0.022049078717827797,
-0.02043704316020012,
-0.031398892402648926,
0.02179831825196743,
-0.009349812753498554,
-0.0020531078334897757,
-0.0039024720899760723,
-0.023482000455260277,
-0.018448863178491592,
-0.0012358947424218059,
-0.009287122637033463,
-0.05566899850964546,
-0.05860648676753044,
0.033727388828992844,
-0.004755508154630661,
0.021852051839232445,
-0.026383666321635246,
0.012985850684344769,
0.028049437329173088,
0.04205624386668205,
-0.010308078490197659,
-0.07422532886266708,
0.016944296658039093,
-0.010317035019397736,
0.04452803358435631,
0.018359307199716568,
0.0008782241493463516,
-0.004733118694275618,
-0.014517285861074924,
0.01972058229148388,
-0.005960057955235243,
-0.012045496143400669,
-0.00255015236325562,
0.02647322416305542,
0.06254702061414719,
0.01536808256059885,
-0.027350887656211853,
0.051191117614507675,
-0.015583020634949207,
-0.02763747237622738,
-0.005731686018407345,
0.022013256326317787,
-0.01168726570904255,
-0.02029374986886978,
0.007890024222433567,
0.05566899850964546,
-0.01671144738793373,
0.043130937963724136,
-0.039047110825777054,
-0.015224790200591087,
0.08038689196109772,
0.025917967781424522,
-0.021135590970516205,
-0.001169846043922007,
0.01072899904102087,
0.01583378203213215,
-0.01168726570904255,
-0.07787927985191345,
-0.005373455584049225,
-0.0002576179977040738,
-0.019845962524414062,
-0.019398175179958344,
0.0018941430607810616,
0.052624039351940155,
0.021278884261846542,
0.006309332326054573,
-0.023786496371030807,
-0.020992299541831017,
-0.00557048199698329,
-0.00008605924813309684,
-0.02077736146748066,
0.00023284973576664925,
-0.014759090729057789,
-0.024520868435502052,
-0.03410353139042854,
0.0640874132514,
-0.02466415986418724,
-0.05008060485124588,
0.05513165518641472,
-0.027512092143297195,
0.027135949581861496,
0.020616156980395317,
-0.01998925395309925,
-0.0063317217864096165,
0.048970092087984085,
-0.014553108252584934,
-0.012779868207871914,
-0.0294107124209404,
-0.009905070066452026,
-0.007576572243124247,
-0.00944832619279623,
0.026867277920246124,
-0.00599588081240654,
0.01689056120812893,
0.039727747440338135,
-0.011606663465499878,
0.0279061459004879,
0.009887157939374447,
-0.03725595772266388,
-0.0033382591791450977,
-0.03175712376832962,
0.024556690827012062,
0.027207596227526665,
0.00984237901866436,
-0.008109440095722675,
0.010263299569487572,
-0.0328139029443264,
0.001613156171515584,
0.0663442611694336,
-0.06473222374916077,
0.04997313767671585,
0.010209565050899982,
-0.05502418428659439,
-0.005248074885457754,
-0.010066273622214794,
0.027010569348931313,
0.00012775950017385185,
-0.044026512652635574,
0.00659143878147006,
-0.06999821215867996,
0.02899874746799469,
0.023320797830820084,
0.04384739696979523,
0.032598964869976044,
-0.02066989243030548,
0.011346946470439434,
0.022371485829353333,
-0.03612753376364708,
-0.014991940930485725,
0.08167652040719986,
-0.03526778146624565,
-0.029697297140955925,
-0.022604336962103844,
0.025810498744249344,
0.03868887946009636,
0.027171773836016655,
-0.008969192393124104,
0.023804407566785812,
0.00986029114574194,
-0.0016019614413380623,
0.02013254724442959,
0.04950743541121483,
0.04080243781208992,
0.021547555923461914,
0.006506359204649925,
-0.025523914024233818,
-0.057567618787288666,
0.05265986546874046,
-0.011606663465499878,
0.0008172130328603089,
-0.028873367235064507,
-0.004027852788567543,
0.10116425901651382,
0.03954863175749779,
-0.026258286088705063,
-0.012896292842924595,
0.05950206518173218,
-0.009609529748558998,
0.015941251069307327,
-0.015887517482042313,
-0.041733838617801666,
-0.046856533735990524,
-0.024126814678311348,
0.02251477912068367,
-0.028980836272239685,
0.0016456207958981395,
-0.061114098876714706,
0.03182876855134964,
-0.014338170178234577,
0.05008060485124588,
0.008516927249729633,
0.007536271121352911,
0.059072189033031464,
-0.024897010996937752,
-0.009278166107833385,
-0.020150458440184593,
0.03308257460594177,
-0.005131649784743786,
0.06702490150928497,
0.10703923553228378,
0.03193623572587967,
-0.00878559984266758,
0.014275480061769485,
-0.01519792340695858,
-0.02258642390370369,
-0.03514239937067032,
0.10467491298913956,
0.020490776747465134,
-0.034819990396499634,
-0.03612753376364708,
-0.02122514881193638,
0.08267956972122192,
0.02255060151219368,
0.008704997599124908,
0.01670249179005623,
0.033315423876047134,
-0.046032603830099106,
-0.0032531796023249626,
0.0026934444904327393,
-0.02711803838610649,
0.023070035502314568,
-0.03693355247378349,
0.026867277920246124,
-0.015153144486248493,
0.014024718664586544,
-0.00039125472540035844,
0.054665952920913696,
0.07207594811916351,
0.005149561446160078,
0.02443131059408188,
0.0625828430056572,
-0.03066452033817768,
-0.033852770924568176,
-0.021655024960637093,
-0.0019445192301645875,
0.04237865284085274,
-0.030879458412528038,
0.0031792945228517056,
-0.0066899522207677364,
0.013173921965062618,
0.032222822308540344,
0.018574245274066925,
-0.00011362619261490181,
0.04216371476650238,
0.07386710494756699,
0.04277270659804344,
0.02493283338844776,
0.0030852591153234243,
0.0429876446723938,
-0.0020788556430488825,
-0.017257748171687126,
-0.03084363415837288,
-0.01257388573139906,
0.02142217569053173,
-0.029321156442165375,
0.013576931320130825,
-0.010317035019397736,
-0.01525165792554617,
-0.04452803358435631,
-0.007030270993709564,
-0.03367365524172783,
0.03446176275610924,
-0.07680459320545197,
-0.042557768523693085,
0.0071198283694684505,
0.004348021000623703,
0.01168726570904255,
-0.024234283715486526,
-0.023177504539489746,
0.023893965408205986,
-0.019541466608643532,
0.009005015715956688,
0.09242343157529831,
0.022371485829353333,
-0.06924592703580856,
0.0471431165933609,
-0.07816586643457413,
0.014517285861074924,
-0.020759450271725655,
-0.012726133689284325,
0.012242523021996021,
0.026652339845895767,
0.00984237901866436,
0.05144188180565834,
-0.04216371476650238,
-0.036521587520837784,
-0.01199176162481308,
0.02650904655456543,
0.018717536702752113,
-0.007169085089117289,
-0.005248074885457754,
-0.01833243854343891,
0.011481283232569695,
-0.06835035234689713,
0.050438836216926575,
-0.02251477912068367,
0.03039584681391716,
0.04098155349493027,
0.029195774346590042,
0.007446713745594025,
-0.03353036195039749,
-0.028497226536273956,
0.0731506422162056,
-0.0017743598436936736,
0.026670251041650772,
-0.1041017472743988,
0.022049078717827797,
-0.10438832640647888,
0.03084363415837288,
-0.017580155283212662,
0.00006426456820918247,
-0.058427371084690094,
-0.021852051839232445,
0.017141323536634445,
0.029052482917904854,
-0.02749418094754219,
-0.027512092143297195,
0.029625650495290756,
0.05445101484656334,
-0.011284256353974342,
-0.012753001414239407,
-0.0015448684571310878,
0.007303421385586262,
-0.06104245409369469,
-0.005668995436280966,
-0.04886262118816376,
0.02138635329902172,
0.018842916935682297,
-0.0044196671806275845,
0.0008603126043453813,
-0.0051719509065151215,
-0.02514777146279812,
0.008212431333959103,
0.014938206411898136,
0.016129322350025177,
0.04381157457828522,
-0.023052124306559563,
-0.01957728900015354,
0.03929787129163742,
0.02333870902657509,
0.011866380460560322,
-0.057460151612758636,
-0.027691207826137543,
-0.031882502138614655,
-0.05502418428659439,
-0.01889665238559246,
-0.05058212950825691,
-0.0023240195587277412,
-0.02783449925482273,
-0.0025814976543188095,
0.00931398943066597,
0.01825183629989624,
0.024413399398326874,
-0.05172846466302872,
0.008078094571828842,
-0.029697297140955925,
0.026867277920246124,
0.011839513666927814,
0.004341304302215576,
-0.001509045367129147,
0.030557049438357353,
-0.03077198937535286,
0.009340857155621052,
-0.014141143299639225,
-0.024986568838357925,
-0.04581766575574875,
-0.04785957559943199,
-0.040372561663389206,
0.011705176904797554,
0.003759179962798953,
-0.00777807692065835,
0.06093498691916466,
0.02285509742796421,
0.07594484090805054,
-0.05384202301502228,
-0.021583380177617073,
-0.040336739271879196,
-0.03292137011885643,
0.000038026992115192115,
-0.005588393658399582,
-0.06835035234689713,
0.02435966581106186,
-0.013379904441535473,
-0.0008832617313601077,
-0.0942862331867218,
-0.05237327888607979,
-0.0008239298476837575,
-0.03132724389433861,
-0.03455131873488426,
-0.01998925395309925,
0.044098157435655594,
-0.0633351281285286,
-0.009367723949253559,
0.0008687086519785225,
0.011884292587637901,
-0.009779688902199268,
-0.025559736415743828,
-0.030145084485411644,
0.0297868549823761,
0.034712523221969604,
0.010379725135862827,
-0.0026956836227327585,
-0.010173742659389973,
-0.003629321465268731,
0.011266345158219337,
0.0331900417804718,
0.03933369368314743,
-0.012502240017056465,
-0.018010031431913376,
0.0754433125257492,
-0.0324377603828907,
0.002435966394841671,
-0.003291241591796279,
-0.02255060151219368,
-0.010263299569487572,
-0.01536808256059885,
-0.03850976377725601,
0.03559018671512604,
0.023482000455260277,
-0.0629768967628479,
-0.01257388573139906,
-0.023249151185154915,
0.04241447523236275,
0.06007523089647293,
-0.026795631274580956,
-0.05642128363251686,
0.026294108480215073,
-0.02858678251504898,
0.005476446822285652,
-0.023213326930999756,
-0.046104248613119125,
-0.025094037875533104,
-0.037650011479854584,
0.04284435138106346,
0.003839781740680337,
0.022908832877874374,
0.06276196241378784,
0.04019344598054886,
-0.0008468789746984839,
-0.037578366696834564,
0.05513165518641472,
0.012314168736338615,
0.01941608637571335,
0.0307361651211977,
-0.016926385462284088,
0.005982446949928999,
0.019022032618522644,
0.014678489416837692,
0.004428622778505087,
0.04667741805315018,
0.004706251434981823,
0.016568154096603394,
-0.034945372492074966,
0.0429876446723938,
-0.06956833600997925,
-0.0037815694231539965,
-0.04631918668746948,
0.0034793124068528414,
0.03722013533115387,
0.006219774950295687,
0.036826081573963165,
0.04080243781208992,
-0.013433638960123062,
0.0010741313453763723,
0.02251477912068367,
-0.06476805359125137,
0.006551137659698725,
0.0019646696746349335,
-0.04245029762387276,
-0.051835935562849045,
-0.01787569560110569,
0.0015437490073964,
-0.012484327889978886,
-0.09622067958116531,
0.03465878963470459,
0.005960057955235243,
0.03209744021296501,
0.002156099071726203,
-0.056206345558166504,
-0.016541287302970886,
0.025362709537148476,
0.04889844357967377,
0.020884830504655838,
-0.0032800468616187572,
-0.05502418428659439,
0.03347662836313248,
-0.021923698484897614,
0.06061257794499397,
-0.002749418141320348,
-0.03487372770905495,
0.0010383083717897534,
0.01991760917007923,
-0.018198102712631226,
-0.04026509448885918,
0.043166760355234146,
-0.07816586643457413,
0.056851159781217575,
-0.0758015438914299,
0.032527316361665726,
-0.039656102657318115,
0.0037032063119113445,
-0.004039047285914421,
-0.003331542480736971,
0.015224790200591087,
-0.07110872864723206,
-0.011167831718921661,
0.06068422272801399,
-0.021583380177617073,
0.0028165862895548344,
-0.018359307199716568,
0.02145799808204174,
-0.006694430019706488,
-0.028121083974838257,
0.002180727431550622,
0.006506359204649925,
-0.002444922225549817,
-0.03575139120221138,
-0.008096006698906422,
0.07322228699922562,
-0.009340857155621052,
-0.0030561527237296104,
-0.0035196132957935333,
-0.05029554292559624,
-0.009511016309261322,
0.06953251361846924,
0.007482536602765322,
-0.05029554292559624,
-0.024144725874066353,
0.021332617849111557,
0.01057675201445818,
0.06989074498414993,
-0.013147054240107536,
0.011454416438937187,
0.05849901959300041,
0.009770733304321766,
-0.003998746629804373,
0.02729715406894684,
-0.011167831718921661,
-0.03646785020828247,
0.016765180975198746,
0.016505464911460876,
-0.02118932642042637,
0.007092961110174656,
-0.053412146866321564,
-0.010594663210213184,
-0.018430951982736588,
0.029321156442165375,
0.03410353139042854,
-0.01798316463828087,
0.0035666311159729958,
0.032867636531591415,
-0.04502955824136734,
0.014418772421777248,
-0.04295182228088379,
0.05283897742629051,
-0.03247358277440071,
-0.036557409912347794,
-0.13469462096691132,
-0.06766971945762634,
0.002973312046378851,
0.044133979827165604,
0.08189146220684052,
-0.03843811899423599,
0.0033494539093226194,
-0.018878741189837456,
-0.02763747237622738,
0.03417517617344856,
-0.0021247537806630135,
0.019165324047207832,
0.024073081091046333,
-0.02142217569053173,
-0.11305750161409378,
-0.021547555923461914,
-0.02032957412302494,
0.027852410450577736,
-0.02251477912068367,
-0.06007523089647293,
-0.0008239298476837575,
-0.01866380125284195,
0.03227655589580536,
0.023625291883945465,
-0.0011177906999364495,
-0.001991536933928728,
0.0031098874751478434,
0.06236790865659714,
0.005158517509698868,
0.04015762358903885,
-0.009663264267146587,
-0.04058749973773956,
-0.00409278180450201,
-0.02514777146279812,
-0.001304182456806302,
0.03886799514293671,
-0.012341036461293697,
0.000433234847150743,
0.03886799514293671,
-0.06942504644393921,
0.012260434217751026,
-0.010111052542924881,
0.055489882826805115,
0.02330288477241993,
0.05735268071293831,
-0.016380082815885544,
0.04775210842490196,
-0.0003322027041576803,
0.005686907097697258,
0.03596632927656174,
0.032491493970155716,
0.005606305319815874,
0.0520508736371994,
0.019666846841573715,
-0.05885725095868111,
0.0006588080432265997,
-0.005910801235586405,
0.037685833871364594,
0.0015918861608952284,
0.025094037875533104,
-0.08246462792158127,
-0.024843275547027588,
0.046784885227680206,
-0.03868887946009636,
-0.02616872824728489,
0.017848828807473183,
-0.05935877189040184,
-0.013057497330009937,
-0.06473222374916077,
0.028980836272239685,
0.019451908767223358,
-0.05423607677221298,
-0.013164966367185116,
-0.01061257440596819,
-0.03186459094285965,
-0.03265269845724106,
0.001409412594512105,
0.03736342862248421,
-0.035697657614946365,
-0.025094037875533104,
0.015305392444133759,
-0.027332976460456848,
0.019738493487238884,
0.018036898225545883,
0.008982626721262932,
-0.06852947175502777,
-0.03915457800030708,
0.002659860532730818,
-0.005225685425102711,
0.01553824171423912,
-0.03182876855134964,
0.037542544305324554,
-0.048289451748132706,
0.03559018671512604,
0.02749418094754219,
0.01637112721800804,
-0.035357337445020676,
0.012188788503408432,
0.04090990871191025,
0.001822496997192502,
0.006452624686062336,
0.020544512197375298,
0.044671326875686646,
0.04212789237499237,
-0.04782375320792198,
0.035160310566425323,
-0.0034390115179121494,
0.001404934679158032,
-0.04660576954483986,
-0.015412861481308937,
0.05663622170686722,
0.0246999841183424,
0.04381157457828522,
-0.01057675201445818,
0.008198997937142849,
-0.008866201154887676,
0.021655024960637093,
0.0001821937330532819,
0.0069183241575956345,
0.05663622170686722,
-0.03623500093817711,
0.005507791880518198,
-0.012063407339155674,
0.0029061438981443644,
-0.05488089099526405,
-0.02118932642042637,
-0.00035179342376068234,
0.004889844451099634,
-0.030342111364006996,
-0.04237865284085274,
-0.01583378203213215,
0.00753179332241416,
-0.01514418888837099,
-0.03933369368314743,
-0.005440623499453068,
0.03566183149814606,
-0.03548271954059601,
0.06200967729091644,
0.0010248747421428561,
0.019810140132904053
] |
723,271
|
exponent_server_sdk
|
PushClient
|
Exponent push client
See full API docs at https://docs.expo.io/versions/latest/guides/push-notifications.html#http2-api
|
class PushClient(object):
"""Exponent push client
See full API docs at https://docs.expo.io/versions/latest/guides/push-notifications.html#http2-api
"""
DEFAULT_HOST = "https://exp.host"
DEFAULT_BASE_API_URL = "/--/api/v2"
DEFAULT_MAX_MESSAGE_COUNT = 100
DEFAULT_MAX_RECEIPT_COUNT = 1000
def __init__(self, host=None, api_url=None, session=None, force_fcm_v1=None, **kwargs):
"""Construct a new PushClient object.
Args:
host: The server protocol, hostname, and port.
api_url: The api url at the host.
session: Pass in your own requests.Session object if you prefer
to customize
force_fcm_v1: If True, send Android notifications via FCM V1, regardless
of whether a valid credential exists.
"""
self.host = host
if not self.host:
self.host = PushClient.DEFAULT_HOST
self.api_url = api_url
if not self.api_url:
self.api_url = PushClient.DEFAULT_BASE_API_URL
self.force_fcm_v1 = force_fcm_v1
self.max_message_count = kwargs[
'max_message_count'] if 'max_message_count' in kwargs else PushClient.DEFAULT_MAX_MESSAGE_COUNT
self.max_receipt_count = kwargs[
'max_receipt_count'] if 'max_receipt_count' in kwargs else PushClient.DEFAULT_MAX_RECEIPT_COUNT
self.timeout = kwargs['timeout'] if 'timeout' in kwargs else None
self.session = session
if not self.session:
self.session = requests.Session()
self.session.headers.update({
'accept': 'application/json',
'accept-encoding': 'gzip, deflate',
'content-type': 'application/json',
})
@classmethod
def is_exponent_push_token(cls, token):
"""Returns `True` if the token is an Exponent push token"""
import six
return (isinstance(token, six.string_types)
and token.startswith('ExponentPushToken'))
def _publish_internal(self, push_messages):
"""Send push notifications
The server will validate any type of syntax errors and the client will
raise the proper exceptions for the user to handle.
Each notification is of the form:
{
'to': 'ExponentPushToken[xxx]',
'body': 'This text gets display in the notification',
'badge': 1,
'data': {'any': 'json object'},
}
Args:
push_messages: An array of PushMessage objects.
"""
url = urljoin(self.host, self.api_url + '/push/send')
if self.force_fcm_v1 is not None:
query_params = {'useFcmV1': 'true' if self.force_fcm_v1 else 'false'}
url += '?' + urlencode(query_params)
response = self.session.post(
url,
data=json.dumps([pm.get_payload() for pm in push_messages]),
timeout=self.timeout)
# Let's validate the response format first.
try:
response_data = response.json()
except ValueError:
# The response isn't json. First, let's attempt to raise a normal
# http error. If it's a 200, then we'll raise our own error.
response.raise_for_status()
raise PushServerError('Invalid server response', response)
# If there are errors with the entire request, raise an error now.
if 'errors' in response_data:
raise PushServerError('Request failed',
response,
response_data=response_data,
errors=response_data['errors'])
# We expect the response to have a 'data' field with the responses.
if 'data' not in response_data:
raise PushServerError('Invalid server response',
response,
response_data=response_data)
# Use the requests library's built-in exceptions for any remaining 4xx
# and 5xx errors.
response.raise_for_status()
# Sanity check the response
if len(push_messages) != len(response_data['data']):
raise PushServerError(
('Mismatched response length. Expected %d %s but only '
'received %d' %
(len(push_messages), 'receipt' if len(push_messages) == 1 else
'receipts', len(response_data['data']))),
response,
response_data=response_data)
# At this point, we know it's a 200 and the response format is correct.
# Now let's parse the responses(push_tickets) per push notification.
push_tickets = []
for i, push_ticket in enumerate(response_data['data']):
push_tickets.append(
PushTicket(
push_message=push_messages[i],
# If there is no status, assume error.
status=push_ticket.get('status', PushTicket.ERROR_STATUS),
message=push_ticket.get('message', ''),
details=push_ticket.get('details', None),
id=push_ticket.get('id', '')))
return push_tickets
def publish(self, push_message):
"""Sends a single push notification
Args:
push_message: A single PushMessage object.
Returns:
A PushTicket object which contains the results.
"""
return self.publish_multiple([push_message])[0]
def publish_multiple(self, push_messages):
"""Sends multiple push notifications at once
Args:
push_messages: An array of PushMessage objects.
Returns:
An array of PushTicket objects which contains the results.
"""
push_tickets = []
for start in itertools.count(0, self.max_message_count):
chunk = list(
itertools.islice(push_messages, start,
start + self.max_message_count))
if not chunk:
break
push_tickets.extend(self._publish_internal(chunk))
return push_tickets
def check_receipts_multiple(self, push_tickets):
"""
Check receipts in batches of 1000 as per expo docs
"""
receipts = []
for start in itertools.count(0, self.max_receipt_count):
chunk = list(
itertools.islice(push_tickets, start,
start + self.max_receipt_count))
if not chunk:
break
receipts.extend(self._check_receipts_internal(chunk))
return receipts
def _check_receipts_internal(self, push_tickets):
"""
Helper function for check_receipts_multiple
"""
response = self.session.post(
self.host + self.api_url + '/push/getReceipts',
json={'ids': [push_ticket.id for push_ticket in push_tickets]},
timeout=self.timeout)
receipts = self.validate_and_get_receipts(response)
return receipts
def check_receipts(self, push_tickets):
""" Checks the push receipts of the given push tickets """
# Delayed import because this file is immediately read on install, and
# the requests library may not be installed yet.
response = requests.post(
self.host + self.api_url + '/push/getReceipts',
data=json.dumps(
{'ids': [push_ticket.id for push_ticket in push_tickets]}),
headers={
'accept': 'application/json',
'accept-encoding': 'gzip, deflate',
'content-type': 'application/json',
},
timeout=self.timeout)
receipts = self.validate_and_get_receipts(response)
return receipts
def validate_and_get_receipts(self, response):
"""
Validate and get receipts for requests
"""
# Let's validate the response format first.
try:
response_data = response.json()
except ValueError:
|
(host=None, api_url=None, session=None, force_fcm_v1=None, **kwargs)
|
[
0.010297478176653385,
-0.04389123246073723,
-0.09917408972978592,
0.004376559052616358,
0.012417701072990894,
0.005044036544859409,
-0.05193237587809563,
0.004536230117082596,
-0.00648631202057004,
-0.015234194695949554,
0.030196163803339005,
0.01448033843189478,
0.028730330988764763,
-0.0035310874227434397,
-0.03756720945239067,
0.005879038013517857,
0.0548221617937088,
-0.05938718467950821,
0.07454808801412582,
0.009444153867661953,
0.03884458169341087,
0.05440335348248482,
0.007512395270168781,
0.06391032785177231,
0.00032506813295185566,
0.026468759402632713,
0.043933115899562836,
0.027829891070723534,
0.03430049866437912,
-0.017569057643413544,
-0.05813075602054596,
0.021463986486196518,
0.04265574738383293,
0.013108736835420132,
-0.053817018866539,
-0.025358915328979492,
-0.017412004992365837,
-0.039451852440834045,
-0.09280817955732346,
0.05293751880526543,
-0.024018723517656326,
0.0397450216114521,
0.04665537551045418,
-0.028353402391076088,
0.0038608999457210302,
-0.005664398428052664,
-0.04401687532663345,
0.058758970350027084,
0.052728112787008286,
0.01403011754155159,
-0.0002210201637353748,
0.020427431911230087,
-0.012574754655361176,
0.009946725331246853,
-0.0062769073992967606,
0.08669356256723404,
-0.01693037338554859,
0.01574723608791828,
-0.01694084331393242,
0.005305792670696974,
-0.05226742476224899,
0.04908447340130806,
0.02508668787777424,
-0.03574538975954056,
-0.025714902207255363,
0.00007235097291413695,
0.019893450662493706,
0.0018780988175421953,
-0.025358915328979492,
-0.006156499497592449,
0.033567581325769424,
0.007564746309071779,
-0.031347889453172684,
-0.03149447217583656,
0.02600806951522827,
0.03017522394657135,
0.021736212074756622,
0.031347889453172684,
-0.04083392396569252,
-0.008501832373440266,
0.01732824184000492,
0.019725926220417023,
0.06118806451559067,
0.04891694709658623,
0.08895513415336609,
0.04707418754696846,
0.05561789870262146,
0.014040588401257992,
-0.05059218779206276,
0.023055462166666985,
-0.009648323990404606,
0.0233905091881752,
-0.013161088339984417,
-0.050717830657958984,
0.04891694709658623,
-0.028751270845532417,
-0.026824748143553734,
-0.014365165494382381,
-0.032562438398599625,
0.0037431097589433193,
-0.013244849629700184,
-0.007747975643724203,
-0.08711237460374832,
-0.018825486302375793,
0.01682567037642002,
-0.04502201825380325,
-0.008983463048934937,
0.013339081779122353,
0.03402826935052872,
0.027076033875346184,
-0.03071967512369156,
-0.02378837950527668,
-0.006758538074791431,
-0.03712746128439903,
0.025421736761927605,
0.05289563909173012,
0.0029054908081889153,
0.010857636108994484,
-0.0034839713480323553,
-0.022406307980418205,
0.023055462166666985,
-0.03340005502104759,
0.04431004449725151,
0.01295168325304985,
0.022217843681573868,
0.021631509065628052,
-0.005075447261333466,
-0.02952606789767742,
0.09733132272958755,
-0.03865611553192139,
-0.03566162660717964,
0.014982908964157104,
0.018773134797811508,
0.024353772401809692,
-0.04950328171253204,
-0.005774335935711861,
-0.012909802608191967,
-0.005952329840511084,
0.045943401753902435,
-0.05109475553035736,
-0.006088443100452423,
0.010794814676046371,
-0.025317033752799034,
-0.0052063255570828915,
-0.04401687532663345,
-0.017778461799025536,
0.0020639454014599323,
0.037692852318286896,
-0.03423767536878586,
-0.04244634136557579,
0.004808456636965275,
-0.03310688957571983,
-0.010072368197143078,
-0.01718165911734104,
0.04049887880682945,
0.01254334393888712,
-0.01689896360039711,
0.011077511124312878,
-0.01564253494143486,
0.045692116022109985,
-0.0053319684229791164,
0.0032562436535954475,
0.02013426646590233,
0.02701321244239807,
-0.004086010158061981,
-0.017129307612776756,
0.016228867694735527,
-0.02996581792831421,
-0.02634311653673649,
0.08392941951751709,
0.001187717542052269,
0.04556647315621376,
0.0007774151163175702,
-0.0819610133767128,
-0.026740984991192818,
0.035075295716524124,
0.03149447217583656,
-0.008135374635457993,
-0.030196163803339005,
-0.03398638963699341,
-0.08267299085855484,
-0.04602716118097305,
-0.009543620981276035,
-0.017600469291210175,
-0.015726296231150627,
0.07312413305044174,
0.0399753637611866,
-0.008428541012108326,
-0.009889138862490654,
-0.017820343375205994,
-0.04100145027041435,
0.005763865541666746,
0.08242170512676239,
0.05653928220272064,
0.021055646240711212,
0.009370862506330013,
0.009554091840982437,
0.02357897348701954,
-0.002230160403996706,
-0.005899978801608086,
-0.07990884780883789,
0.0018113510450348258,
0.05113663896918297,
-0.03386074677109718,
-0.0264059379696846,
-0.06018292158842087,
-0.009554091840982437,
-0.009899608790874481,
-0.00724016921594739,
-0.005203708074986935,
-0.05842392519116402,
0.04690666124224663,
0.0023623472079634666,
0.017705170437693596,
0.010417886078357697,
0.03254149854183197,
0.06290518492460251,
-0.0422578789293766,
0.0019971977453678846,
-0.02619653381407261,
0.03304407000541687,
-0.042613863945007324,
-0.07123949378728867,
-0.01787269487977028,
0.015914760529994965,
0.07237027585506439,
0.011203153990209103,
0.048958830535411835,
0.04464508965611458,
0.014773504808545113,
0.03279278427362442,
0.028897855430841446,
0.05616235360503197,
0.023411450907588005,
-0.017139777541160583,
-0.058256398886442184,
-0.03953561559319496,
-0.0005964763113297522,
0.061229947954416275,
-0.001770778908394277,
0.06403596699237823,
-0.025924306362867355,
0.03775567561388016,
0.054487112909555435,
0.014302344061434269,
0.03610137850046158,
0.005968035198748112,
0.009580266661942005,
-0.01448033843189478,
-0.015590183436870575,
0.0349496528506279,
-0.04904258996248245,
0.037336867302656174,
-0.0419856496155262,
-0.012679457664489746,
-0.07840113341808319,
0.03314876928925514,
-0.01322390977293253,
0.055450376123189926,
-0.03201798349618912,
0.03922150656580925,
0.016836142167448997,
-0.03314876928925514,
0.06043420732021332,
-0.022092200815677643,
-0.022196901962161064,
-0.018500909209251404,
0.01618698611855507,
-0.024018723517656326,
0.04740923270583153,
0.09917408972978592,
0.004821544047445059,
0.03082437813282013,
0.01345425471663475,
-0.029358545318245888,
0.020354140549898148,
-0.011307856068015099,
0.032709021121263504,
-0.04183906689286232,
-0.027746127918362617,
-0.02745296247303486,
-0.03666676953434944,
0.09247313439846039,
0.0011576155666261911,
0.05034090206027031,
-0.022615712136030197,
0.021045176312327385,
-0.02569396235048771,
0.035221878439188004,
-0.013307671062648296,
-0.010794814676046371,
0.01643827185034752,
0.005428818054497242,
-0.006172204855829477,
-0.008103963918983936,
0.02575678378343582,
-0.011150802485644817,
0.022217843681573868,
0.018815016373991966,
-0.032415855675935745,
0.03465648368000984,
0.03302312642335892,
0.032457735389471054,
-0.04887506738305092,
-0.002652896335348487,
-0.004758722614496946,
0.027432020753622055,
0.0026699104346334934,
-0.008407600224018097,
-0.02443753369152546,
0.017705170437693596,
0.03174575790762901,
0.015401719138026237,
-0.05339821055531502,
-0.0012237089686095715,
0.00866412092000246,
0.04958704486489296,
0.05729313939809799,
0.022552890703082085,
0.022364426404237747,
0.013119206763803959,
0.018605612218379974,
-0.023851200938224792,
0.060476090759038925,
0.06391032785177231,
-0.004805838689208031,
0.0004299341235309839,
-0.02680380642414093,
-0.0014226434286683798,
-0.009140516631305218,
-0.0009508284274488688,
-0.03863517567515373,
-0.001647753524594009,
0.003342623123899102,
0.040059126913547516,
-0.008093493059277534,
-0.03413297235965729,
-0.001827056403271854,
-0.012438641861081123,
-0.02665722370147705,
-0.025987127795815468,
-0.022741355001926422,
0.00994149036705494,
0.04803744703531265,
-0.009198103100061417,
-0.04213223606348038,
0.05653928220272064,
-0.022155022248625755,
-0.03107566386461258,
0.007412927690893412,
0.006324023474007845,
0.031850460916757584,
0.06508299708366394,
0.04916823282837868,
0.06411973387002945,
-0.048204973340034485,
-0.04380747303366661,
0.0009711144957691431,
0.00619838060811162,
0.006355434190481901,
-0.013087796047329903,
0.03865611553192139,
-0.03536846116185188,
0.05377513915300369,
-0.07689341902732849,
-0.011768546886742115,
0.02202937938272953,
0.04602716118097305,
0.016480153426527977,
0.0103131840005517,
0.007742740213871002,
-0.026615342125296593,
-0.055240970104932785,
0.0417553074657917,
-0.0209928248077631,
0.027180735021829605,
-0.05205801874399185,
0.02816493809223175,
-0.05687432736158371,
0.01797739788889885,
0.006376374512910843,
0.009732085280120373,
-0.07886182516813278,
0.00006552078411914408,
0.0749250203371048,
-0.0032300681341439486,
-0.008250546641647816,
-0.048498138785362244,
0.055743541568517685,
0.02142210491001606,
-0.006884180940687656,
0.001176592893898487,
-0.015495951287448406,
0.005305792670696974,
-0.02529609389603138,
-0.026280295103788376,
-0.0069731781259179115,
0.03878175839781761,
-0.008439010940492153,
-0.04355618730187416,
0.023725558072328568,
0.006711422000080347,
0.04606904461979866,
0.00965355895459652,
-0.0016896345186978579,
0.02544267661869526,
0.030698735266923904,
-0.06449665874242783,
0.0025979275815188885,
0.04506390169262886,
-0.011234564706683159,
-0.014616451226174831,
-0.026029009371995926,
-0.05059218779206276,
-0.03654112666845322,
-0.014197641983628273,
-0.04305361583828926,
0.017307301983237267,
0.028855973854660988,
-0.01453268900513649,
-0.009046284481883049,
-0.028604688122868538,
-0.025610199198126793,
0.04602716118097305,
-0.06901980191469193,
-0.015454069711267948,
-0.026468759402632713,
0.019390879198908806,
-0.042823269963264465,
0.04190189018845558,
0.03388168662786484,
0.0022550274152308702,
-0.02464693784713745,
-0.017286362126469612,
-0.011653373949229717,
0.005153974052518606,
-0.025317033752799034,
-0.02720167674124241,
-0.02755766361951828,
0.019600283354520798,
-0.04883318766951561,
0.025819605216383934,
0.0309290811419487,
-0.015673944726586342,
0.05067594721913338,
-0.01413482055068016,
-0.043179258704185486,
-0.047744281589984894,
-0.032562438398599625,
0.018469497561454773,
-0.027473902329802513,
-0.028332462534308434,
0.03323253244161606,
0.004900070838630199,
-0.018668433651328087,
-0.06935485452413559,
-0.02695039100944996,
0.060727376490831375,
-0.035682566463947296,
-0.01737012341618538,
0.01793551631271839,
0.003041603835299611,
-0.05988975614309311,
0.0015103317564353347,
-0.03727404400706291,
0.008732178248465061,
-0.009313276037573814,
-0.008480892516672611,
-0.06009916216135025,
0.02826964110136032,
0.025735842064023018,
0.0072035230696201324,
-0.015914760529994965,
0.031012842431664467,
-0.05913589894771576,
-0.037944138050079346,
0.03999630734324455,
0.0009469020878896117,
-0.04259292408823967,
-0.05034090206027031,
-0.032604318112134933,
-0.030614973977208138,
0.023516152054071426,
-0.031452592462301254,
-0.03515905514359474,
-0.031201306730508804,
0.059219662100076675,
-0.08158408850431442,
0.01279462967067957,
-0.015527362003922462,
-0.06014104187488556,
-0.025526437908411026,
0.01783081330358982,
0.060978662222623825,
-0.014365165494382381,
-0.028185877948999405,
-0.049963973462581635,
0.01886736787855625,
0.028688449412584305,
-0.058465804904699326,
-0.0036253195721656084,
0.01815539039671421,
0.01855326071381569,
0.028248699381947517,
0.05687432736158371,
0.021191760897636414,
0.003635789966210723,
0.03968219831585884,
-0.00548116909340024,
-0.039556555449962616,
-0.053817018866539,
-0.009397038258612156,
0.0031881872564554214,
-0.035577867180109024,
0.0010640379041433334,
0.030154282227158546,
0.035473164170980453,
0.01969451643526554,
-0.04556647315621376,
-0.011925600469112396,
0.08020201325416565,
0.017129307612776756,
0.00020155205857008696,
-0.006156499497592449,
-0.0029133434873074293,
0.015799587592482567,
-0.0049733626656234264,
-0.04072922095656395,
-0.017286362126469612,
0.011527731083333492,
-0.007083115633577108,
0.03735780715942383,
-0.01697225496172905,
-0.06470606476068497,
0.004567640833556652,
-0.012867921032011509,
-0.027599545195698738,
-0.026615342125296593,
0.006983648054301739,
-0.020657777786254883,
-0.028395283967256546,
0.041315555572509766,
-0.048498138785362244,
-0.08237982541322708,
-0.13117113709449768,
-0.019286176189780235,
0.050969112664461136,
0.04661349579691887,
0.003559880657121539,
-0.04565023258328438,
0.005308410152792931,
-0.010140424594283104,
0.059722233563661575,
0.01139161828905344,
-0.019966742023825645,
-0.03528469800949097,
0.023306747898459435,
-0.021338343620300293,
0.04259292408823967,
-0.025212330743670464,
-0.002067871857434511,
0.00357035081833601,
-0.07324977964162827,
-0.024311890825629234,
-0.04950328171253204,
0.0274110808968544,
-0.01794598624110222,
0.07266344875097275,
-0.0472835898399353,
0.022113140672445297,
-0.011758076027035713,
-0.0030808672308921814,
-0.015317956916987896,
-0.015810057520866394,
0.0457758754491806,
-0.05561789870262146,
-0.016961785033345222,
-0.006763773038983345,
0.028353402391076088,
0.014375635422766209,
0.039661258459091187,
0.010213715955615044,
-0.019286176189780235,
-0.10805284976959229,
-0.0009024035534821451,
0.03861423581838608,
0.014543159864842892,
-0.001655606203712523,
0.04431004449725151,
0.045943401753902435,
-0.012135004624724388,
-0.025631140917539597,
-0.005528285168111324,
-0.020406492054462433,
-0.011318325996398926,
0.05909401923418045,
0.011255504563450813,
0.03277184069156647,
-0.009522681124508381,
0.034719306975603104,
0.009978136047720909,
0.07588827610015869,
-0.03490776941180229,
-0.08422258496284485,
0.05235118418931961,
-0.02282511629164219,
-0.037944138050079346,
-0.00018421073036734015,
0.04535706713795662,
-0.020731069147586823,
0.008062082342803478,
-0.0036907584872096777,
-0.02981923520565033,
0.014543159864842892,
-0.048707544803619385,
0.023495212197303772,
-0.06143935024738312,
0.09398084878921509,
0.003434237791225314,
-0.03229021281003952,
0.040352292358875275,
-0.0015731531893834472,
-0.06814030557870865,
0.010344594717025757,
-0.03827918693423271,
0.02167339064180851,
-0.01503526046872139,
-0.034928712993860245,
-0.08485080301761627,
0.02242724783718586,
0.03714840114116669,
0.05142980441451073,
0.07781480252742767,
0.015495951287448406,
0.029379485175013542,
-0.006931297015398741,
-0.009412743151187897,
-0.032415855675935745,
0.011820897459983826,
0.03915868699550629,
0.00934468675404787,
-0.04001724720001221,
-0.07266344875097275,
-0.0379650816321373,
-0.015726296231150627,
0.021463986486196518,
0.0009148370008915663,
-0.052225541323423386,
0.053817018866539,
-0.023118283599615097,
-0.0015940936282277107,
0.031410712748765945,
0.019034890457987785,
0.005564930848777294,
-0.06566932797431946,
0.021327873691916466,
-0.030803438276052475,
0.0422578789293766,
0.0070988209918141365,
-0.03790225833654404,
-0.006475841626524925,
0.008836880326271057,
0.013401903212070465,
0.04301173612475395,
-0.019537461921572685,
0.01042312104254961,
0.04703230410814285,
-0.06797277927398682,
-0.017600469291210175,
0.060517970472574234,
0.037441566586494446,
-0.029547009617090225,
0.06215132772922516,
0.01805068925023079,
0.05364949628710747,
0.004515289794653654,
0.02031226083636284,
0.04123179242014885,
-0.005585871636867523,
0.05126228183507919,
-0.007711329497396946,
0.038048841059207916,
-0.05214178189635277,
0.05863332748413086,
-0.032415855675935745,
-0.020144736394286156,
0.03298124670982361,
0.026573462411761284,
-0.08334308862686157,
-0.020898593589663506,
0.05159732699394226,
-0.021191760897636414,
0.011328796856105328,
0.0056120469234883785,
-0.0820029005408287,
-0.03949373587965965,
-0.09331075102090836,
0.03825824707746506,
-0.009397038258612156,
-0.03662488982081413,
0.02770424820482731,
-0.03760909289121628,
0.012888861820101738,
-0.006716656964272261,
0.026824748143553734,
0.028081176802515984,
-0.05335632711648941,
0.00035566085716709495,
-0.014501278288662434,
0.009082931093871593,
-0.025987127795815468,
0.04590151831507683,
0.05653928220272064,
-0.061732519418001175,
-0.01561112329363823,
0.02615465223789215,
-0.025610199198126793,
0.024521294981241226,
-0.04812121018767357,
0.045985281467437744,
-0.029128199443221092,
0.034677427262067795,
0.0018584671197459102,
0.016019463539123535,
0.032918427139520645,
0.012176886200904846,
0.05968035012483597,
-0.009208573959767818,
0.0032405382953584194,
0.003962984774261713,
-0.016375450417399406,
0.05289563909173012,
-0.000689072476234287,
0.014647861942648888,
0.00027844286523759365,
-0.09741508960723877,
0.040959566831588745,
0.0014684507623314857,
0.00915098749101162,
0.004868660122156143,
-0.00024572337861172855,
-0.09414837509393692,
-0.04782804474234581,
-0.04118991270661354,
-0.009815847501158714,
0.008491362445056438,
0.04652973264455795,
-0.016375450417399406,
-0.04481261596083641,
-0.010093308985233307,
0.0024958427529782057,
0.006219320930540562,
-0.06290518492460251,
0.011915129609405994,
0.007480984553694725,
0.05461275577545166,
-0.05243494734168053,
-0.022846058011054993,
-0.035431280732154846,
-0.00782126747071743,
-0.03490776941180229,
0.009836787357926369,
0.0008474347996525466,
0.0384676530957222,
-0.02565208077430725,
0.053691376000642776,
0.030049581080675125,
0.04489637538790703
] |
723,272
|
exponent_server_sdk
|
__init__
|
Construct a new PushClient object.
Args:
host: The server protocol, hostname, and port.
api_url: The api url at the host.
session: Pass in your own requests.Session object if you prefer
to customize
force_fcm_v1: If True, send Android notifications via FCM V1, regardless
of whether a valid credential exists.
|
def __init__(self, host=None, api_url=None, session=None, force_fcm_v1=None, **kwargs):
"""Construct a new PushClient object.
Args:
host: The server protocol, hostname, and port.
api_url: The api url at the host.
session: Pass in your own requests.Session object if you prefer
to customize
force_fcm_v1: If True, send Android notifications via FCM V1, regardless
of whether a valid credential exists.
"""
self.host = host
if not self.host:
self.host = PushClient.DEFAULT_HOST
self.api_url = api_url
if not self.api_url:
self.api_url = PushClient.DEFAULT_BASE_API_URL
self.force_fcm_v1 = force_fcm_v1
self.max_message_count = kwargs[
'max_message_count'] if 'max_message_count' in kwargs else PushClient.DEFAULT_MAX_MESSAGE_COUNT
self.max_receipt_count = kwargs[
'max_receipt_count'] if 'max_receipt_count' in kwargs else PushClient.DEFAULT_MAX_RECEIPT_COUNT
self.timeout = kwargs['timeout'] if 'timeout' in kwargs else None
self.session = session
if not self.session:
self.session = requests.Session()
self.session.headers.update({
'accept': 'application/json',
'accept-encoding': 'gzip, deflate',
'content-type': 'application/json',
})
|
(self, host=None, api_url=None, session=None, force_fcm_v1=None, **kwargs)
|
[
-0.013256859965622425,
-0.049136217683553696,
-0.052455201745033264,
-0.020352618768811226,
0.005369505379348993,
0.016022680327296257,
-0.012713233008980751,
0.03660419210791588,
-0.013199635781347752,
-0.01586054638028145,
0.017195768654346466,
0.007367571350187063,
-0.004198800306767225,
-0.0037004761397838593,
-0.018368856981396675,
0.03929371386766434,
0.03914111852645874,
-0.09247375279664993,
0.06389997154474258,
-0.047533951699733734,
0.049174368381500244,
0.07461991161108017,
-0.02546461671590805,
0.04642762243747711,
0.034830253571271896,
0.03219795599579811,
0.01111096516251564,
0.03391467034816742,
0.05150147154927254,
-0.014477635733783245,
-0.056041229516267776,
0.05833018571138382,
0.03219795599579811,
0.04654207080602646,
-0.028974344953894615,
-0.036165475845336914,
-0.021706916391849518,
-0.04154451936483383,
-0.13756614923477173,
0.02979455515742302,
-0.02592240646481514,
0.01940842531621456,
-0.002366444794461131,
-0.008845854550600052,
0.07263614982366562,
0.02487330324947834,
0.006547363009303808,
0.041849713772535324,
0.02382419817149639,
0.0049594007432460785,
-0.008092407137155533,
0.03990410268306732,
-0.02504497393965721,
0.006571206264197826,
-0.09735685586929321,
0.12108568102121353,
-0.0032403008081018925,
-0.003967520780861378,
-0.07080498337745667,
0.027085958048701286,
-0.06527334451675415,
0.03744347766041756,
0.02659001760184765,
-0.02979455515742302,
-0.03502099961042404,
-0.026799838989973068,
-0.03637529909610748,
0.03185461461544037,
0.0003245665575377643,
0.004856874700635672,
0.05436266213655472,
0.03296094015240669,
-0.00504046818241477,
-0.029222315177321434,
0.029050644487142563,
0.035154521465301514,
-0.03523081913590431,
0.03101533092558384,
-0.05379042401909828,
0.006513982079923153,
0.0204098429530859,
0.0366995669901371,
0.05642272159457207,
0.0162515752017498,
0.08102898299694061,
0.025006825104355812,
-0.01599406823515892,
-0.028840823099017143,
-0.031568493694067,
0.008001802489161491,
-0.006494907662272453,
0.030462166294455528,
0.006299392785876989,
-0.00902706291526556,
0.059741705656051636,
0.006437683943659067,
-0.016652142629027367,
-0.017958752810955048,
-0.013399919494986534,
0.008092407137155533,
-0.014124754816293716,
-0.031568493694067,
-0.08018969744443893,
-0.052836693823337555,
0.042193055152893066,
-0.07149167358875275,
0.01048150286078453,
-0.016041753813624382,
0.004940326325595379,
0.0447109080851078,
0.033990971744060516,
-0.040972281247377396,
0.019856678321957588,
0.04070523753762245,
0.02929861471056938,
0.014544396661221981,
-0.018569141626358032,
0.0009400210692547262,
0.032178882509469986,
-0.030576614663004875,
-0.04577908664941788,
-0.008903078734874725,
0.06241215392947197,
0.01161644235253334,
0.05215000733733177,
0.00037374329986050725,
0.0074343327432870865,
-0.04925066605210304,
0.07423841953277588,
-0.028898047283291817,
0.018950633704662323,
-0.030118823051452637,
0.03580306097865105,
-0.009575458243489265,
-0.030023450031876564,
-0.03538341820240021,
-0.004256024491041899,
0.01793014071881771,
0.04257454723119736,
-0.017739394679665565,
-0.008783861994743347,
0.010395667515695095,
-0.0408959835767746,
0.012732308357954025,
-0.021535243839025497,
-0.0066808853298425674,
-0.005159684456884861,
0.023881422355771065,
-0.06386182457208633,
-0.05466785654425621,
0.0234808549284935,
-0.038530729711055756,
0.025426466017961502,
-0.001852622372098267,
0.019246289506554604,
-0.018635902553796768,
-0.02205025963485241,
-0.012703696265816689,
0.009108130820095539,
0.022107483819127083,
-0.00024230727285612375,
0.025426466017961502,
0.0234808549284935,
-0.0013948314590379596,
-0.00016407151997555047,
-0.02554091438651085,
0.059779856353998184,
-0.03166386857628822,
-0.029947150498628616,
0.07633662223815918,
-0.026742614805698395,
0.001978991786018014,
0.00839760061353445,
-0.08392832428216934,
-0.02916509285569191,
0.03557416424155235,
0.002629913156852126,
-0.035917505621910095,
0.008817242458462715,
0.01342853158712387,
-0.06348033249378204,
-0.025617212057113647,
0.012808606028556824,
-0.05951280891895294,
0.014382262714207172,
0.06260289996862411,
0.04375717416405678,
0.02155431918799877,
0.00036420600372366607,
-0.021954886615276337,
0.010042786598205566,
-0.011063278652727604,
0.06966050714254379,
0.04989920184016228,
0.06153472140431404,
-0.0013364155311137438,
0.03921741619706154,
0.00230445247143507,
-0.015622112900018692,
0.058177586644887924,
-0.036127328872680664,
0.01700502261519432,
0.0225080493837595,
-0.008340377360582352,
0.007367571350187063,
-0.0427652969956398,
-0.014048457145690918,
0.003831614041700959,
0.014239203184843063,
-0.009375175461173058,
-0.06389997154474258,
0.016842888668179512,
0.004275098908692598,
-0.003981826826930046,
-0.004649438429623842,
0.00915104802697897,
0.04070523753762245,
-0.012551099061965942,
0.004930789116770029,
-0.015459978021681309,
0.05562158674001694,
-0.03328520804643631,
-0.05600307881832123,
-0.01691918633878231,
-0.007133907172828913,
0.056499019265174866,
0.0037982333451509476,
-0.01953241042792797,
-0.0042321812361478806,
0.03618455305695534,
0.06088618189096451,
0.01583193428814411,
0.0650063008069992,
0.024014944210648537,
-0.03885499760508537,
-0.061420273035764694,
-0.018063664436340332,
0.00016720095300115645,
0.004706662148237228,
-0.04452015832066536,
0.057719796895980835,
-0.017739394679665565,
0.011654592119157314,
0.08347053080797195,
0.007787213195115328,
0.01628018729388714,
-0.046236876398324966,
0.015879619866609573,
0.03881685063242912,
0.012741845101118088,
-0.0005776032921858132,
-0.05207370966672897,
-0.008726637810468674,
-0.024377362802624702,
-0.012369890697300434,
-0.06412886828184128,
0.026876138523221016,
-0.0017238686559721828,
0.003302293363958597,
-0.01725299283862114,
-0.0017536727245897055,
0.03994225338101387,
-0.04402422159910202,
0.09140557050704956,
-0.0014305964577943087,
-0.03168294206261635,
-0.007310347631573677,
0.026609092950820923,
-0.05150147154927254,
0.050356991589069366,
0.09850133210420609,
-0.010061861015856266,
0.06065728887915611,
0.00938471220433712,
-0.02365252748131752,
-0.014868665486574173,
-0.06512074917554855,
-0.01869312673807144,
-0.008659876883029938,
-0.07919781655073166,
-0.019856678321957588,
-0.03990410268306732,
0.07503955066204071,
-0.002679983852431178,
0.05695681273937225,
-0.010157234035432339,
0.018702663481235504,
-0.0042488714680075645,
0.02571258693933487,
0.0011265947250649333,
-0.024720706045627594,
-0.010777159593999386,
-0.036127328872680664,
0.022908616811037064,
-0.014964038506150246,
0.027829868718981743,
0.008283153176307678,
0.07374247908592224,
0.01902693137526512,
-0.05386672168970108,
0.029737330973148346,
0.004983243998140097,
-0.0406670868396759,
-0.013514366932213306,
0.03889314830303192,
0.00860742200165987,
-0.011463846080005169,
0.025407392531633377,
-0.017701245844364166,
-0.008783861994743347,
0.02086763270199299,
-0.009379943832755089,
0.016184814274311066,
-0.024091243743896484,
-0.037519775331020355,
0.030691061168909073,
0.04818248748779297,
-0.0059083630330860615,
0.04360457882285118,
0.027639122679829597,
0.002353331074118614,
-0.015555351972579956,
-0.03624177724123001,
0.07080498337745667,
0.01468745619058609,
0.043451979756355286,
-0.002280609216541052,
-0.004112964496016502,
0.014325038529932499,
0.002739592222496867,
-0.0002455857174936682,
0.01915091648697853,
-0.01020492147654295,
-0.0326557457447052,
0.013514366932213306,
-0.000704568752553314,
-0.023957721889019012,
0.004344244487583637,
-0.03471580520272255,
-0.04444386065006256,
-0.011635517701506615,
-0.007987496443092823,
-0.006876400206238031,
0.06679931282997131,
-0.03139682114124298,
-0.040514491498470306,
0.02765819802880287,
-0.05550714209675789,
-0.010815308429300785,
-0.02382419817149639,
0.028135063126683235,
0.02054336480796337,
0.05184481292963028,
0.03599380701780319,
0.08705656230449677,
-0.03244592621922493,
-0.01927490159869194,
0.030118823051452637,
0.023919571191072464,
-0.004065277986228466,
0.010042786598205566,
0.02159246802330017,
-0.025197571143507957,
0.028001539409160614,
-0.04455830901861191,
0.043871622532606125,
0.02672354131937027,
0.0447872057557106,
0.0033046777825802565,
-0.01144477166235447,
0.02124912478029728,
-0.023919571191072464,
-0.006142027210444212,
0.043032340705394745,
-0.03353317826986313,
0.027200406417250633,
-0.06576928496360779,
0.003974673803895712,
-0.0655403882265091,
0.004191647283732891,
-0.011797651648521423,
0.008459593169391155,
-0.04604613035917282,
0.00005215716009843163,
0.03910296782851219,
0.004723352380096912,
-0.030729210004210472,
-0.05577418580651283,
0.06626522541046143,
0.02739115245640278,
-0.020848557353019714,
-0.010090473107993603,
-0.0335904024541378,
-0.012570173479616642,
-0.02298491634428501,
-0.018445156514644623,
0.01855960488319397,
0.03687123954296112,
0.018082737922668457,
-0.060542840510606766,
0.021096527576446533,
-0.0633658841252327,
0.04581723362207413,
0.005779609549790621,
0.01873127557337284,
0.03822553530335426,
0.03227425366640091,
-0.05153961852192879,
0.035459715873003006,
0.011406621895730495,
0.029947150498628616,
-0.03034771792590618,
-0.07919781655073166,
-0.012760919518768787,
-0.01869312673807144,
-0.035669535398483276,
-0.033475954085588455,
0.03534526750445366,
0.0572238564491272,
-0.007954115979373455,
-0.04570278525352478,
-0.0234427060931921,
-0.03906482085585594,
-0.00002384327308391221,
-0.053675975650548935,
0.014458561316132545,
-0.01294212881475687,
-0.0050881546922028065,
-0.0074009522795677185,
-0.006728571839630604,
0.03803478926420212,
0.04188786447048187,
-0.019370274618268013,
0.02121097594499588,
-0.02903156913816929,
0.042956043034791946,
-0.008817242458462715,
-0.0073055787943303585,
-0.013037501834332943,
0.010510114952921867,
-0.0711483284831047,
-0.020276319235563278,
0.00591313187032938,
0.0015104713384062052,
-0.017357902601361275,
-0.011244487948715687,
-0.03828275948762894,
-0.03586028143763542,
-0.027124106884002686,
0.016804739832878113,
-0.04452015832066536,
-0.008020876906812191,
-0.021363573148846626,
0.007567855063825846,
0.017357902601361275,
-0.08789584040641785,
-0.026704465970396996,
0.0358412079513073,
0.02630389854311943,
-0.05695681273937225,
0.040628936141729355,
0.006261243484914303,
-0.05291299149394035,
-0.017644021660089493,
-0.037977565079927444,
0.0635184794664383,
0.04818248748779297,
-0.017443738877773285,
-0.05459155887365341,
-0.012760919518768787,
0.03986595198512077,
0.021611543372273445,
-0.04280344396829605,
0.0148114413022995,
-0.055736035108566284,
-0.027333928272128105,
0.02020002156496048,
-0.0062898555770516396,
-0.04196416214108467,
-0.031091628596186638,
-0.030958106741309166,
0.04810618981719017,
0.034448761492967606,
0.0042488714680075645,
-0.04368087649345398,
-0.018826648592948914,
0.048678427934646606,
-0.10140067338943481,
0.009394249878823757,
0.029317688196897507,
-0.020734110847115517,
-0.005488721653819084,
-0.030538463965058327,
0.04566463828086853,
-0.01123495027422905,
-0.011797651648521423,
-0.0630606859922409,
0.0061801765114068985,
-0.002260342240333557,
-0.023595303297042847,
-0.01747235096991062,
0.03757699951529503,
-0.02870730124413967,
0.022870467975735664,
0.04719060659408569,
-0.022069333121180534,
0.004344244487583637,
0.047114308923482895,
0.0018228183034807444,
0.005255057476460934,
-0.01550766546279192,
-0.007081452291458845,
-0.03822553530335426,
-0.0020493294578045607,
0.01796829141676426,
-0.008869697339832783,
-0.020009275525808334,
-0.016652142629027367,
-0.05207370966672897,
-0.024758854880928993,
0.08125787228345871,
0.03227425366640091,
0.0009823428699746728,
0.005364736542105675,
-0.01304703950881958,
-0.012427113950252533,
0.034525059163570404,
-0.011654592119157314,
0.012274516746401787,
0.030080674216151237,
-0.008459593169391155,
0.010719935409724712,
-0.057681646198034286,
-0.021649692207574844,
0.020467065274715424,
-0.028249509632587433,
-0.033475954085588455,
0.01403891947120428,
-0.02058151364326477,
-0.05874982476234436,
-0.03252222388982773,
0.06512074917554855,
-0.026227600872516632,
-0.05657532066106796,
-0.10170586407184601,
-0.038359057158231735,
0.06477740406990051,
0.054896753281354904,
-0.009737593121826649,
-0.03624177724123001,
-0.02124912478029728,
-0.013771874830126762,
-0.0020719803869724274,
0.025235719978809357,
-0.0489836223423481,
-0.0000036463443393586203,
0.010414741933345795,
-0.04745765030384064,
0.05222630500793457,
-0.011044204235076904,
-0.029470285400748253,
0.013275934383273125,
-0.045092400163412094,
-0.018626365810632706,
-0.0898796021938324,
0.00828792154788971,
0.007615541573613882,
0.07225465774536133,
-0.05642272159457207,
0.05913131684064865,
-0.018826648592948914,
-0.03998040035367012,
-0.05253149941563606,
0.0024749317672103643,
0.02588425762951374,
-0.024167541414499283,
0.003254606854170561,
0.058101288974285126,
0.031206076964735985,
0.029508434236049652,
0.01296120323240757,
0.03725273162126541,
0.013323620893061161,
-0.05215000733733177,
-0.04722875729203224,
0.03618455305695534,
0.035078223794698715,
-0.02365252748131752,
0.013218711130321026,
0.016642604023218155,
0.014010307379066944,
-0.03526896983385086,
-0.024816079065203667,
-0.03097718022763729,
-0.028859898447990417,
0.008259309455752373,
0.04257454723119736,
-0.006971773225814104,
0.008492973633110523,
0.03463950753211975,
0.006370922550559044,
0.07488695532083511,
-0.026208525523543358,
-0.06569298356771469,
0.04158267006278038,
-0.015812858939170837,
-0.05833018571138382,
0.01893155835568905,
0.01700502261519432,
-0.019169991835951805,
-0.00877432432025671,
0.006494907662272453,
-0.04894547164440155,
0.03900759667158127,
-0.02731485478579998,
0.03803478926420212,
-0.08354683220386505,
0.05588863417506218,
0.018321171402931213,
-0.05997060239315033,
0.044291265308856964,
-0.01911276765167713,
-0.04558833688497543,
0.023976795375347137,
-0.04612242802977562,
0.0448635034263134,
-0.023461781442165375,
-0.05104367807507515,
-0.11177726835012436,
0.042956043034791946,
0.047953590750694275,
0.007439101114869118,
0.08263124525547028,
0.031110703945159912,
0.007210205774754286,
-0.03410542011260986,
-0.013457143679261208,
0.006151564419269562,
0.030958106741309166,
0.018407007679343224,
-0.00038417475298047066,
-0.03917926549911499,
-0.03000437468290329,
-0.030691061168909073,
-0.006566437426954508,
-0.008926921524107456,
-0.003485886612907052,
-0.024568108841776848,
0.05451526120305061,
-0.08652246743440628,
0.023766975849866867,
0.016394635662436485,
0.03917926549911499,
0.022241005674004555,
-0.05844463035464287,
0.002334256423637271,
-0.007224511820822954,
0.05138702318072319,
0.020505215972661972,
-0.04410051926970482,
-0.018569141626358032,
0.02065781131386757,
0.03627992421388626,
0.06229770556092262,
-0.02853562869131565,
0.0028135061729699373,
0.05680421367287636,
-0.08087638020515442,
-0.01416290458291769,
0.038950372487306595,
0.03168294206261635,
0.03393374755978584,
0.036432523280382156,
0.05169221758842468,
0.024797003716230392,
0.006294623948633671,
0.00898414570838213,
0.02285139262676239,
-0.014801904559135437,
0.04123932495713234,
0.05455340817570686,
0.03782496973872185,
-0.04246010258793831,
0.03782496973872185,
-0.01705271005630493,
-0.0023080287501215935,
0.006671348121017218,
0.015717485919594765,
-0.055240094661712646,
-0.00364086776971817,
0.04970845580101013,
-0.016737977042794228,
0.024396438151597977,
-0.011492458172142506,
-0.03185461461544037,
-0.04520684480667114,
-0.06870677322149277,
0.01245572604238987,
0.002691905479878187,
-0.005126303993165493,
-0.00399851705878973,
-0.028421182185411453,
-0.05417191609740257,
-0.019370274618268013,
0.004704277962446213,
0.03994225338101387,
0.005927437916398048,
-0.004391930997371674,
0.005355199333280325,
0.010109547525644302,
-0.019122304394841194,
0.00934656336903572,
0.0531800352036953,
-0.03765329718589783,
-0.004198800306767225,
0.0387214757502079,
-0.019046006724238396,
-0.029222315177321434,
-0.0530274398624897,
0.038359057158231735,
-0.013628815300762653,
0.018340246751904488,
-0.02718133106827736,
0.012293592095375061,
0.06973680853843689,
-0.004940326325595379,
0.0693553164601326,
0.02466348186135292,
0.009699443355202675,
-0.029565658420324326,
-0.00839760061353445,
0.03795849159359932,
-0.029222315177321434,
0.020810408517718315,
-0.002944644307717681,
-0.04333753511309624,
0.0408959835767746,
-0.030061598867177963,
0.023137511685490608,
0.06660857051610947,
-0.04226935654878616,
-0.05470600724220276,
-0.014258277602493763,
0.0036360991653054953,
0.002402209909632802,
-0.01974222995340824,
0.021573394536972046,
-0.003984211012721062,
-0.01737697795033455,
-0.00776336994022131,
-0.012055158615112305,
0.004716199357062578,
-0.016261111944913864,
0.005474415607750416,
-0.007791981566697359,
0.012017009779810905,
-0.08369942754507065,
0.015927307307720184,
0.00789212342351675,
-0.016509082168340683,
-0.05783424526453018,
0.005355199333280325,
0.025350168347358704,
0.023003989830613136,
-0.019475186243653297,
0.09888282418251038,
0.047495801001787186,
0.04204045981168747
] |
723,273
|
exponent_server_sdk
|
_check_receipts_internal
|
Helper function for check_receipts_multiple
|
def _check_receipts_internal(self, push_tickets):
"""
Helper function for check_receipts_multiple
"""
response = self.session.post(
self.host + self.api_url + '/push/getReceipts',
json={'ids': [push_ticket.id for push_ticket in push_tickets]},
timeout=self.timeout)
receipts = self.validate_and_get_receipts(response)
return receipts
|
(self, push_tickets)
|
[
0.011182588525116444,
-0.01908237673342228,
-0.07906810194253922,
0.054842084646224976,
-0.07443355768918991,
-0.025647977367043495,
-0.04072779417037964,
-0.027649257332086563,
0.0734504759311676,
0.015571359544992447,
0.0035461271181702614,
-0.004349272232502699,
0.017739413306117058,
-0.04100867733359337,
-0.03221357986330986,
-0.030300075188279152,
-0.01279765646904707,
-0.06168856471776962,
0.05435054004192352,
0.011331806890666485,
0.031054943799972534,
0.07394201308488846,
0.024735113605856895,
0.08461550623178482,
-0.010217059403657913,
0.05368344858288765,
0.056843362748622894,
-0.019117487594485283,
0.021417202427983284,
0.008821429684758186,
-0.024524452164769173,
0.028228575363755226,
0.056211378425359726,
0.028404125943779945,
-0.004296606872230768,
0.028772782534360886,
-0.0022251068148761988,
-0.015334365889430046,
-0.025173990055918694,
0.06502403318881989,
0.030528292059898376,
0.06481336802244186,
0.06579645723104477,
-0.06537513434886932,
-0.017642859369516373,
-0.015071040019392967,
-0.0504533126950264,
0.06488358974456787,
0.034636180847883224,
0.022786499932408333,
-0.0007455424638465047,
0.05954684689640999,
-0.006021393928676844,
-0.010585715994238853,
0.04058735445141792,
0.004590654745697975,
-0.011358139105141163,
0.026297515258193016,
0.029703201726078987,
-0.0016359144356101751,
-0.035373494029045105,
0.008316720835864544,
0.04469524323940277,
-0.038129642605781555,
0.011840904131531715,
-0.019942576065659523,
0.06249609962105751,
-0.02348870225250721,
0.008149947971105576,
-0.00513925077393651,
-0.010392609983682632,
0.013789518736302853,
-0.0697990134358406,
-0.05603582784533501,
0.02304982580244541,
-0.0032103860285133123,
0.08033206313848495,
-0.004559933207929134,
-0.0321258045732975,
-0.0076847379095852375,
0.04522189870476723,
0.01348230428993702,
0.01582590863108635,
0.0825791135430336,
0.024910664185881615,
0.025279320776462555,
0.09493789821863174,
0.029071219265460968,
-0.01224467158317566,
0.03333710506558418,
0.020118126645684242,
0.04806581884622574,
-0.016036570072174072,
-0.0651293620467186,
0.04255352541804314,
-0.04778493940830231,
-0.03219602629542351,
0.01567669026553631,
-0.058037109673023224,
-0.014851600863039494,
-0.021311871707439423,
-0.00007166040450101718,
-0.0724673867225647,
-0.00003572733839973807,
0.01688799075782299,
0.012911764904856682,
-0.0014702383195981383,
-0.03700611740350723,
0.04150021821260452,
0.045818768441677094,
-0.006973757408559322,
-0.012736213393509388,
-0.05094485357403755,
-0.021153876557946205,
0.0010198407107964158,
0.028000358492136,
-0.0013396723661571741,
0.005428909789770842,
-0.0486626923084259,
-0.0669902041554451,
0.039323389530181885,
-0.040973566472530365,
0.0467667430639267,
0.01650177873671055,
0.002180122071877122,
0.04669652506709099,
0.008487883023917675,
0.017045985907316208,
0.12365801632404327,
-0.011849681846797466,
-0.01953880861401558,
0.023084936663508415,
-0.017555084079504013,
0.02633262611925602,
-0.0339515320956707,
-0.017809633165597916,
0.031090054661035538,
-0.0008278319146484137,
0.07116831094026566,
-0.08468572795391083,
-0.001935448031872511,
0.01284154411405325,
-0.03084428235888481,
0.0065656015649437904,
-0.04167576879262924,
-0.029123885557055473,
-0.018941935151815414,
0.038515854626894,
-0.03626880422234535,
-0.029246769845485687,
-0.019977685064077377,
-0.0261395201086998,
0.004959311336278915,
0.04367705062031746,
0.04248330369591713,
0.06927236169576645,
0.011419582180678844,
-0.022136962041258812,
0.007689126767218113,
0.02053944766521454,
0.015474806539714336,
0.023629143834114075,
0.0010154518531635404,
-0.008953092619776726,
-0.007847122848033905,
0.008417663164436817,
-0.019029710441827774,
-0.0605650395154953,
-0.02313760109245777,
0.07780413329601288,
-0.0015009597409516573,
0.05568472668528557,
-0.0270699393004179,
-0.045186787843704224,
-0.006780651398003101,
-0.014447834342718124,
0.019591474905610085,
0.007254638709127903,
-0.016677329316735268,
0.00456432206556201,
-0.12716902792453766,
-0.03026496432721615,
0.006855260580778122,
0.004862758331000805,
0.006938647013157606,
0.047574277967214584,
-0.004099112004041672,
-0.015922460705041885,
-0.02313760109245777,
-0.021399646997451782,
-0.04276418685913086,
0.030229855328798294,
0.044660136103630066,
0.05954684689640999,
-0.027947694063186646,
-0.023558922111988068,
-0.00118716259021312,
0.053367454558610916,
-0.08054272830486298,
-0.011287919245660305,
-0.042974844574928284,
-0.028421681374311447,
-0.007618906442075968,
0.02201407589018345,
-0.04732850566506386,
-0.04750405624508858,
-0.020205901935696602,
-0.00008859831723384559,
-0.007267804816365242,
0.0027363987173885107,
-0.008606379851698875,
0.0449410155415535,
-0.021996520459651947,
0.009479745291173458,
-0.01588735170662403,
0.06569112837314606,
0.0780147910118103,
-0.047855161130428314,
-0.011937457136809826,
-0.021785859018564224,
-0.003355215536430478,
-0.03498728200793266,
-0.07499531656503677,
-0.02155764400959015,
-0.0020418756175786257,
0.08229823410511017,
0.0023984634317457676,
0.0872136577963829,
0.04093845561146736,
-0.008163114078342915,
0.014237172901630402,
0.05312168598175049,
0.06625288724899292,
0.015720577910542488,
-0.017686747014522552,
-0.08974158763885498,
-0.07025544345378876,
-0.007706682197749615,
0.07913831621408463,
0.0559656098484993,
0.046029429882764816,
-0.03686567768454552,
0.06474315375089645,
0.020311232656240463,
0.03798920288681984,
0.024717558175325394,
0.018011515960097313,
0.042167313396930695,
0.011981344781816006,
-0.018415283411741257,
0.023910025134682655,
-0.022698724642395973,
0.02320782095193863,
-0.020030351355671883,
0.013385751284658909,
-0.029668092727661133,
-0.024366457015275955,
-0.012165673077106476,
0.06572623550891876,
-0.03791898116469383,
0.06818394362926483,
0.06028416007757187,
0.006806984078139067,
0.04532722756266594,
-0.05543895438313484,
-0.025279320776462555,
-0.019240371882915497,
0.047117844223976135,
-0.03616347163915634,
0.03798920288681984,
0.04251841455698013,
-0.024085575714707375,
0.02448934316635132,
0.02789502963423729,
-0.001554722199216485,
0.016264785081148148,
0.034723956137895584,
0.06038948893547058,
-0.034372854977846146,
-0.0047574276104569435,
-0.020679889246821404,
0.027333267033100128,
0.10231103003025055,
-0.00653488002717495,
0.02440156787633896,
-0.054455872625112534,
0.03186247870326042,
0.0006610586424358189,
-0.030703842639923096,
-0.0431152880191803,
-0.0019365452462807298,
0.04760938882827759,
0.03456595912575722,
-0.06948302686214447,
0.01234122458845377,
-0.005973117426037788,
-0.054912302643060684,
-0.02110121212899685,
0.003162109525874257,
-0.0252266563475132,
-0.028860557824373245,
0.03584748134016991,
-0.006824539043009281,
-0.06017882749438286,
-0.03879673779010773,
-0.01234122458845377,
0.015492361970245838,
0.01288543175905943,
0.014895488508045673,
-0.04416859149932861,
0.030142080038785934,
0.028421681374311447,
0.02304982580244541,
-0.05196304991841316,
0.019609028473496437,
-0.04265885427594185,
0.002997530624270439,
0.034917064011096954,
-0.009830847382545471,
0.041886430233716965,
0.03900739550590515,
-0.013043427839875221,
-0.0008623935282230377,
0.007741792127490044,
0.01864350028336048,
-0.04606454074382782,
-0.0007795554702170193,
-0.018854159861803055,
-0.046836964786052704,
0.013087315484881401,
0.016010235995054245,
-0.03065117634832859,
0.04258863255381584,
-0.006354940589517355,
0.04055224359035492,
0.00495492247864604,
0.007122975308448076,
-0.011349362321197987,
-0.026560842990875244,
-0.014254728332161903,
0.0007943675736896694,
-0.040973566472530365,
0.03282800689339638,
0.011173810809850693,
-0.004783760290592909,
0.024243570864200592,
0.006710431072860956,
0.002701288554817438,
-0.017941296100616455,
-0.03477662056684494,
0.006346162874251604,
-0.005920452065765858,
0.03598792105913162,
0.04659119248390198,
0.02993141859769821,
-0.013280421495437622,
-0.008430829271674156,
0.034197304397821426,
0.015422141179442406,
0.028281239792704582,
0.00683770515024662,
0.04982132837176323,
-0.038586076349020004,
0.019661694765090942,
-0.041254449635744095,
-0.02598152495920658,
0.0067499298602342606,
0.03000163845717907,
-0.02496333047747612,
0.029790977016091347,
-0.030071860179305077,
0.04048202559351921,
-0.055825166404247284,
0.013780741021037102,
-0.009514855220913887,
0.02203163132071495,
-0.04367705062031746,
-0.003469323506578803,
-0.010287279263138771,
0.00021751846361439675,
-0.04873291403055191,
-0.013877294026315212,
-0.05512296408414841,
-0.005718568805605173,
0.04202686995267868,
0.0005897411028854549,
-0.07267805188894272,
-0.011788238771259785,
0.050418201833963394,
0.03777854144573212,
0.02092565968632698,
-0.02917654998600483,
-0.024822888895869255,
0.003447379684075713,
-0.01041894219815731,
-0.05090974271297455,
0.06913191825151443,
0.027105050161480904,
0.011068481020629406,
-0.04753916710615158,
0.017748190090060234,
0.020943215116858482,
-0.016554445028305054,
-0.02724548988044262,
-0.033354658633470535,
0.03410952910780907,
-0.030633622780442238,
-0.06526980549097061,
-0.002367741893976927,
-0.009751848876476288,
0.014254728332161903,
0.04525700584053993,
0.07176518440246582,
-0.102802574634552,
-0.04086823761463165,
0.009242751635611057,
-0.005275303032249212,
-0.01064715813845396,
0.051998160779476166,
0.004520433954894543,
-0.010585715994238853,
-0.011639020405709743,
-0.02954520657658577,
0.04448458179831505,
-0.03319666534662247,
0.003254273673519492,
-0.008290388621389866,
0.02127676270902157,
-0.015378253534436226,
0.05350789800286293,
0.052349261939525604,
-0.01693187840282917,
0.008053394965827465,
-0.008716098964214325,
0.005876564420759678,
0.025191545486450195,
-0.03145870938897133,
-0.03444307669997215,
-0.033442433923482895,
0.035092614591121674,
-0.0012365361908450723,
0.02956276200711727,
0.016861658543348312,
-0.03907761722803116,
0.05031287297606468,
-0.021873634308576584,
-0.018608389422297478,
-0.03992026299238205,
-0.019240371882915497,
0.014474166557192802,
-0.04901379346847534,
-0.06663910299539566,
0.017572639510035515,
-0.03805942088365555,
-0.006394439376890659,
-0.03184492141008377,
-0.02266361378133297,
0.028772782534360886,
-0.056386929005384445,
0.0050383093766868114,
0.015193925239145756,
-0.002999725053086877,
-0.04810092970728874,
0.021803414449095726,
-0.015369475819170475,
-0.04286951571702957,
-0.10083640366792679,
0.017370756715536118,
-0.016493001952767372,
0.03268756717443466,
0.05241947993636131,
-0.001994696445763111,
-0.030598511919379234,
0.03368820622563362,
-0.04118422791361809,
-0.015545027330517769,
0.007632073014974594,
0.026086855679750443,
-0.05112040415406227,
-0.03907761722803116,
-0.08693277835845947,
-0.03233646601438522,
-0.003295967122539878,
-0.03568948805332184,
-0.04107889533042908,
-0.08314087986946106,
0.0376381017267704,
-0.051717277616262436,
-0.0068815927952528,
-0.0256830882281065,
-0.00016992773453239352,
-0.013183868490159512,
0.03781365230679512,
0.07843611389398575,
0.025402206927537918,
-0.030896948650479317,
-0.00166883016936481,
0.055017635226249695,
0.04820626229047775,
-0.005213859956711531,
0.020153237506747246,
0.01645789109170437,
0.05944151431322098,
0.05670292302966118,
0.03907761722803116,
0.009646519087255001,
0.004647708497941494,
-0.0047047627158463,
0.008084116503596306,
-0.03000163845717907,
-0.00667532067745924,
-0.02129431627690792,
0.0006824539159424603,
-0.018661053851246834,
-0.016378894448280334,
0.001923378906212747,
0.007298526354134083,
-0.03110761009156704,
-0.0541398786008358,
0.06014372035861015,
0.05624648928642273,
0.024471787735819817,
-0.016580777242779732,
-0.048487141728401184,
0.01890682615339756,
0.010497940704226494,
-0.061161912977695465,
-0.010489162988960743,
-0.014684827998280525,
-0.020065460354089737,
0.0045862658880651,
0.01284154411405325,
-0.002832951722666621,
-0.09669340401887894,
-0.038515854626894,
0.017555084079504013,
-0.019503697752952576,
-0.06358451396226883,
0.006139890756458044,
-0.00921641942113638,
-0.001780743827112019,
0.019135041162371635,
-0.020609669387340546,
-0.04729339852929115,
-0.0835622027516365,
0.043185506016016006,
0.008237723261117935,
0.0027978415600955486,
-0.011876014061272144,
-0.019889909774065018,
-0.009260307066142559,
-0.004616986960172653,
0.026771502569317818,
0.008580047637224197,
0.02175075002014637,
-0.01955636404454708,
0.01385973859578371,
-0.016949433833360672,
0.007921732030808926,
-0.011630243621766567,
0.03265245631337166,
-0.018204621970653534,
-0.029948974028229713,
0.02322537638247013,
-0.06642843782901764,
-0.007741792127490044,
0.017598971724510193,
0.03735721856355667,
-0.017853520810604095,
-0.003471517935395241,
-0.0022953273728489876,
-0.010945594869554043,
-0.006710431072860956,
0.014368836767971516,
0.05361322686076164,
-0.06340896338224411,
-0.013561302796006203,
-0.05392921715974808,
-0.022909384220838547,
-0.0270699393004179,
0.046380531042814255,
-0.04687207564711571,
-0.022330068051815033,
-0.08187691122293472,
0.015422141179442406,
-0.009102310985326767,
-0.023330707103013992,
0.008487883023917675,
-0.015334365889430046,
0.057686008512973785,
0.026121964678168297,
-0.0010670199990272522,
-0.041816212236881256,
-0.017853520810604095,
0.0004693242080975324,
0.033635541796684265,
0.009751848876476288,
0.0403766930103302,
-0.06347918510437012,
0.04055224359035492,
0.03449574112892151,
0.042799293994903564,
-0.012113007716834545,
-0.05652737244963646,
0.02478777803480625,
-0.05312168598175049,
-0.016536889597773552,
-0.021733194589614868,
0.027842363342642784,
0.03368820622563362,
0.005665903445333242,
-0.010875375010073185,
0.049505338072776794,
0.011331806890666485,
-0.00112078245729208,
0.038972288370132446,
-0.039604268968105316,
0.052349261939525604,
-0.01353496965020895,
0.011103590950369835,
0.007149307988584042,
0.006995701231062412,
-0.01591368392109871,
0.020399007946252823,
-0.04213220253586769,
-0.00908475648611784,
0.0043580494821071625,
-0.01790618523955345,
-0.007662794087082148,
-0.004573099315166473,
-0.0051611945964396,
0.029053663834929466,
0.10167904943227768,
0.040060702711343765,
0.041254449635744095,
-0.009655295871198177,
0.0013824629131704569,
-0.031177829951047897,
-0.01864350028336048,
0.023084936663508415,
-0.031125163659453392,
-0.023155156522989273,
-0.0835622027516365,
-0.030703842639923096,
0.02083788439631462,
-0.02183852531015873,
-0.0063856616616249084,
-0.0394638292491436,
0.03451329469680786,
0.013087315484881401,
-0.035829927772283554,
0.010392609983682632,
0.008386941626667976,
0.037673212587833405,
-0.04641564190387726,
0.05017242953181267,
0.005428909789770842,
0.03644435480237007,
-0.016993321478366852,
-0.046380531042814255,
-0.027649257332086563,
-0.004033280536532402,
-0.02029367722570896,
0.012692325748503208,
-0.004573099315166473,
0.007320470176637173,
0.029685648158192635,
-0.027930138632655144,
-0.04258863255381584,
0.06407605856657028,
0.0596170648932457,
0.007504798471927643,
0.053367454558610916,
-0.006890370510518551,
0.03498728200793266,
0.004968089051544666,
0.007978785783052444,
0.012955652549862862,
0.02910633012652397,
0.04076290503144264,
-0.06453248858451843,
-0.027789698913693428,
-0.0679030641913414,
0.04367705062031746,
0.002659595338627696,
-0.0033310772851109505,
0.023787138983607292,
0.05220882222056389,
-0.05589538812637329,
-0.015132482163608074,
0.011630243621766567,
-0.04943511635065079,
0.019205262884497643,
0.04532722756266594,
-0.06274186819791794,
0.030071860179305077,
-0.05810732766985893,
0.035373494029045105,
0.02689438872039318,
-0.018292397260665894,
0.028614787384867668,
-0.03623369336128235,
0.019696803763508797,
-0.004239552654325962,
-0.009391970001161098,
-0.01579957641661167,
-0.04511656612157822,
-0.0053499117493629456,
-0.05845842882990837,
0.027596592903137207,
-0.03609325364232063,
0.04048202559351921,
0.056386929005384445,
-0.08960115164518356,
0.002026515081524849,
-0.0046301535330712795,
-0.00319063663482666,
0.016966989263892174,
0.008509826846420765,
0.0047442615032196045,
0.02075010910630226,
0.05108529329299927,
-0.02715771459043026,
-0.003460546024143696,
0.004647708497941494,
0.03393397852778435,
0.038480743765830994,
-0.027824807912111282,
-0.0022163293324410915,
0.02257583849132061,
0.04385260120034218,
0.007623295299708843,
0.0011882598046213388,
-0.017028432339429855,
0.004722317680716515,
-0.06498891860246658,
0.017335645854473114,
0.004555544350296259,
-0.005354300606995821,
-0.007807623594999313,
0.028509456664323807,
-0.07394201308488846,
-0.0013583246618509293,
-0.020241012796759605,
-0.021487422287464142,
-0.021768303588032722,
0.049961768090724945,
-0.006627044174820185,
-0.03791898116469383,
-0.05835309997200966,
0.0009386484161950648,
0.03679545596241951,
-0.045011237263679504,
-0.03551393374800682,
0.023348262533545494,
0.07225672900676727,
-0.043993040919303894,
-0.03330199420452118,
-0.038480743765830994,
0.029948974028229713,
-0.02120654098689556,
0.005560572724789381,
-0.03166937083005905,
0.0789276584982872,
-0.013842184096574783,
0.01608923450112343,
0.02331315167248249,
0.04999687895178795
] |
723,274
|
exponent_server_sdk
|
_publish_internal
|
Send push notifications
The server will validate any type of syntax errors and the client will
raise the proper exceptions for the user to handle.
Each notification is of the form:
{
'to': 'ExponentPushToken[xxx]',
'body': 'This text gets display in the notification',
'badge': 1,
'data': {'any': 'json object'},
}
Args:
push_messages: An array of PushMessage objects.
|
def _publish_internal(self, push_messages):
"""Send push notifications
The server will validate any type of syntax errors and the client will
raise the proper exceptions for the user to handle.
Each notification is of the form:
{
'to': 'ExponentPushToken[xxx]',
'body': 'This text gets display in the notification',
'badge': 1,
'data': {'any': 'json object'},
}
Args:
push_messages: An array of PushMessage objects.
"""
url = urljoin(self.host, self.api_url + '/push/send')
if self.force_fcm_v1 is not None:
query_params = {'useFcmV1': 'true' if self.force_fcm_v1 else 'false'}
url += '?' + urlencode(query_params)
response = self.session.post(
url,
data=json.dumps([pm.get_payload() for pm in push_messages]),
timeout=self.timeout)
# Let's validate the response format first.
try:
response_data = response.json()
except ValueError:
# The response isn't json. First, let's attempt to raise a normal
# http error. If it's a 200, then we'll raise our own error.
response.raise_for_status()
raise PushServerError('Invalid server response', response)
# If there are errors with the entire request, raise an error now.
if 'errors' in response_data:
raise PushServerError('Request failed',
response,
response_data=response_data,
errors=response_data['errors'])
# We expect the response to have a 'data' field with the responses.
if 'data' not in response_data:
raise PushServerError('Invalid server response',
response,
response_data=response_data)
# Use the requests library's built-in exceptions for any remaining 4xx
# and 5xx errors.
response.raise_for_status()
# Sanity check the response
if len(push_messages) != len(response_data['data']):
raise PushServerError(
('Mismatched response length. Expected %d %s but only '
'received %d' %
(len(push_messages), 'receipt' if len(push_messages) == 1 else
'receipts', len(response_data['data']))),
response,
response_data=response_data)
# At this point, we know it's a 200 and the response format is correct.
# Now let's parse the responses(push_tickets) per push notification.
push_tickets = []
for i, push_ticket in enumerate(response_data['data']):
push_tickets.append(
PushTicket(
push_message=push_messages[i],
# If there is no status, assume error.
status=push_ticket.get('status', PushTicket.ERROR_STATUS),
message=push_ticket.get('message', ''),
details=push_ticket.get('details', None),
id=push_ticket.get('id', '')))
return push_tickets
|
(self, push_messages)
|
[
-0.016502978280186653,
-0.04134724289178848,
-0.11095109581947327,
0.037196554243564606,
-0.0058668386191129684,
-0.004235498141497374,
-0.04318312555551529,
0.02530323527753353,
-0.014178193174302578,
-0.008151712827384472,
0.02951378934085369,
0.007592966314405203,
0.04553784057497978,
-0.015944231301546097,
-0.04821184277534485,
0.022888652980327606,
0.04044925794005394,
-0.04609658941626549,
0.07686755806207657,
-0.033804163336753845,
0.01705174706876278,
0.044140975922346115,
0.02674001269042492,
0.05503653362393379,
0.013459804467856884,
0.030930612236261368,
0.020573845133185387,
0.011923251673579216,
0.04952888935804367,
-0.030232178047299385,
-0.06732895970344543,
-0.002342245541512966,
0.046495694667100906,
0.015714745968580246,
-0.022709054872393608,
0.0019406464416533709,
-0.025542698800563812,
-0.03749588504433632,
-0.08708463609218597,
0.0311700738966465,
-0.0017548133619129658,
0.021372055634856224,
0.04072863236069679,
-0.046216320246458054,
0.04505891725420952,
0.019875412806868553,
-0.01999514363706112,
0.09730171412229538,
0.021551651880145073,
0.02530323527753353,
-0.031249895691871643,
0.024724533781409264,
-0.010636139661073685,
0.005727151874452829,
-0.018468568101525307,
0.07826442271471024,
0.011643878184258938,
0.01999514363706112,
-0.009513657540082932,
-0.012711483985185623,
-0.03753579407930374,
0.042225275188684464,
0.03210797160863876,
-0.02490413188934326,
-0.02211039885878563,
0.016712507233023643,
0.008041959255933762,
-0.0002723577490542084,
-0.039291854947805405,
0.022609278559684753,
0.03324541822075844,
0.00643556285649538,
-0.034223224967718124,
-0.008470996282994747,
0.03448264300823212,
0.04422079771757126,
0.007577999960631132,
0.04154679551720619,
-0.035919420421123505,
0.023008383810520172,
0.036737583577632904,
0.005128494929522276,
0.06824690103530884,
0.035540271550416946,
0.07084108144044876,
0.03294609114527702,
0.014347813092172146,
0.011823475360870361,
-0.08740392327308655,
0.023227890953421593,
0.0105263851583004,
-0.015146021731197834,
-0.0001593300694366917,
-0.030671194195747375,
0.04928942769765854,
-0.025642475113272667,
-0.042025722563266754,
-0.01730118691921234,
-0.01808941923081875,
-0.010586251504719257,
0.007303615566343069,
-0.014617208391427994,
-0.07902272045612335,
-0.04366204887628555,
0.027478355914354324,
-0.06940430402755737,
0.0004982572281733155,
-0.0082016009837389,
-0.023726772516965866,
0.02845616266131401,
-0.03186850622296333,
-0.03901248052716255,
-0.03186850622296333,
-0.039311811327934265,
0.0010152225149795413,
0.036977048963308334,
0.002706428524106741,
0.015834476798772812,
0.0067847794853150845,
-0.04446025937795639,
-0.003427311312407255,
-0.03304586559534073,
0.04114769026637077,
-0.0014529904583469033,
0.03292613476514816,
0.02021465077996254,
0.016912059858441353,
-0.035939376801252365,
0.06002534180879593,
-0.03031199984252453,
-0.04765309765934944,
0.024564892053604126,
0.01577461138367653,
0.01731116510927677,
-0.033804163336753845,
-0.02236981689929962,
-0.03057141788303852,
-0.01597416400909424,
0.03707682341337204,
-0.03228756785392761,
0.0016026546945795417,
-0.007622899021953344,
-0.03286626935005188,
0.03310573101043701,
-0.013300162740051746,
0.009967639110982418,
0.012182669714093208,
0.026700101792812347,
-0.04402124509215355,
-0.02316802553832531,
0.011344550177454948,
-0.03344497084617615,
-0.005228271242231131,
0.0032801413908600807,
0.03987055644392967,
0.002561753150075674,
0.003332523861899972,
0.00851589534431696,
-0.012691528536379337,
0.03901248052716255,
-0.02466466836631298,
-0.0017834990285336971,
-0.001129341428168118,
0.01892753876745701,
-0.0028935088776052,
-0.013190409168601036,
0.025562653318047523,
-0.030611326918005943,
-0.01766038127243519,
0.0989779531955719,
-0.0066251372918486595,
0.047094348818063736,
-0.04258446767926216,
-0.03260685130953789,
-0.014916536398231983,
0.023048294708132744,
0.023327667266130447,
0.0025455395225435495,
-0.0311700738966465,
-0.008316343650221825,
-0.0783841535449028,
-0.04086831584572792,
-0.007513145450502634,
-0.009618422016501427,
-0.01896744966506958,
0.08524875342845917,
0.029134640470147133,
-0.0018757919315248728,
-0.0361788384616375,
0.010496452450752258,
-0.015405439771711826,
0.015066200867295265,
0.072357676923275,
0.06932447850704193,
0.03631852567195892,
0.023507265374064445,
0.011364505626261234,
0.01252190861850977,
0.005218293517827988,
0.014786827377974987,
-0.05735133960843086,
-0.006096323952078819,
0.04298357293009758,
-0.04214545339345932,
-0.03312568739056587,
-0.029653476551175117,
-0.02398619055747986,
-0.006734891328960657,
0.012671573087573051,
-0.003187848487868905,
-0.06170158088207245,
0.03807458654046059,
-0.015614969655871391,
0.0350014790892601,
0.0018857695395126939,
0.022489547729492188,
0.05220289155840874,
-0.03599924221634865,
-0.013230320066213608,
-0.03178868815302849,
0.039072345942258835,
-0.019755680114030838,
-0.0632580891251564,
-0.034003715962171555,
0.01724132150411606,
0.06784779578447342,
0.02400614507496357,
0.03797480836510658,
0.019127091392874718,
0.029553700238466263,
0.02063371054828167,
0.008875089697539806,
0.05599438399076462,
0.014427633956074715,
-0.01856834441423416,
-0.07139982283115387,
-0.023467354476451874,
-0.03532076254487038,
0.06086346134543419,
0.005402879323810339,
0.059506505727767944,
-0.058468833565711975,
0.009518646635115147,
0.062499791383743286,
0.01898740418255329,
-0.00694940984249115,
-0.027438445016741753,
0.038433779031038284,
-0.014287946745753288,
0.0012640393106266856,
0.007997059263288975,
-0.03679744899272919,
0.00208158022724092,
-0.02911468595266342,
-0.006580238230526447,
-0.0893196240067482,
0.02632095292210579,
-0.0011698754969984293,
0.06238006055355072,
-0.01706172525882721,
0.01725129969418049,
0.03556022420525551,
-0.028994953259825706,
0.09027747809886932,
-0.020374292507767677,
-0.041387151926755905,
-0.013100611045956612,
0.018189195543527603,
0.004614647477865219,
0.08628642559051514,
0.06685002893209457,
0.003297602292150259,
0.022289995104074478,
0.02211039885878563,
-0.0387331061065197,
0.027318714186549187,
0.004973841831088066,
-0.008236522786319256,
-0.02869562618434429,
-0.041586704552173615,
-0.013848931528627872,
-0.05008763447403908,
0.07307606190443039,
0.003843876766040921,
0.0628988966345787,
-0.018219128251075745,
0.03667771816253662,
-0.02402610145509243,
0.03643825650215149,
-0.03368443250656128,
-0.020952994003891945,
0.011294662021100521,
0.001797218224965036,
-0.00874538067728281,
-0.04481945559382439,
0.03567995876073837,
-0.05032709985971451,
0.03200819343328476,
0.046455781906843185,
-0.04637596383690834,
0.008236522786319256,
0.032726582139730453,
0.02841625176370144,
-0.039950378239154816,
0.04066876694560051,
0.004851615987718105,
0.0009796771919354796,
0.01749076135456562,
-0.018837740644812584,
-0.02504381723701954,
-0.006580238230526447,
0.021571606397628784,
0.0008387434063479304,
-0.006081357132643461,
0.034243181347846985,
0.006520372349768877,
0.05076611414551735,
0.041586704552173615,
0.01725129969418049,
0.04106786847114563,
0.014736940152943134,
-0.010316855274140835,
-0.027917372062802315,
0.04829166457056999,
0.08189627528190613,
0.0129409683868289,
-0.0005802607629448175,
-0.03679744899272919,
0.022449636831879616,
-0.012761371210217476,
0.042265184223651886,
-0.026041578501462936,
0.006729902233928442,
-0.014786827377974987,
0.04825175553560257,
-0.046016767621040344,
-0.03031199984252453,
-0.013050722889602184,
0.0010657341917976737,
-0.03835395723581314,
-0.05399886146187782,
-0.008715447969734669,
0.01619367115199566,
0.04789255931973457,
-0.012701505795121193,
-0.0124420877546072,
0.03641830012202263,
-0.02067362144589424,
-0.032726582139730453,
0.003888776060193777,
0.011663833633065224,
0.01605398580431938,
0.03679744899272919,
0.05759080499410629,
0.048371486365795135,
-0.04996790364384651,
-0.024345384910702705,
0.005113528575748205,
0.010366743430495262,
0.015964185819029808,
0.04545802250504494,
0.021731248125433922,
-0.00789229478687048,
0.044340528547763824,
-0.05367957800626755,
-0.0027164060156792402,
0.03286626935005188,
0.02272901125252247,
0.022070487961173058,
-0.011125042103230953,
0.016303425654768944,
-0.023447399958968163,
-0.050446830689907074,
0.026919608935713768,
-0.039730869233608246,
0.05495671182870865,
-0.03749588504433632,
0.023726772516965866,
-0.06369710713624954,
-0.01486664917320013,
0.011873363517224789,
-0.0005681005422957242,
-0.051085397601127625,
0.008181645534932613,
0.10360757261514664,
-0.0071339961141347885,
0.01527573075145483,
-0.044579990208148956,
0.028476117178797722,
0.020793352276086807,
-0.014567320235073566,
-0.022629234939813614,
-0.036118973046541214,
0.02757813222706318,
-0.04597685858607292,
-0.01688212715089321,
0.008875089697539806,
0.0387331061065197,
-0.00716392882168293,
-0.040349479764699936,
0.021392010152339935,
-0.027877461165189743,
-0.0005060522234998643,
0.01728123240172863,
0.020174739882349968,
0.02278887666761875,
0.015465306118130684,
0.001181724015623331,
-0.006355741992592812,
0.08253484219312668,
0.03605910763144493,
0.003626863704994321,
-0.032507073134183884,
-0.07195857167243958,
-0.026799878105521202,
-0.014796805568039417,
-0.05870829522609711,
0.02420569770038128,
0.016722485423088074,
-0.013739177957177162,
-0.013469782657921314,
-0.017989642918109894,
0.02274896577000618,
0.031110208481550217,
-0.06976349651813507,
-0.02316802553832531,
-0.01896744966506958,
0.008156701922416687,
-0.029653476551175117,
0.042903751134872437,
0.05248226225376129,
-0.0007919733179733157,
-0.048531126230955124,
-0.019456353038549423,
0.017989642918109894,
0.0035595146473497152,
-0.026919608935713768,
-0.020284494385123253,
-0.013938730582594872,
0.03306582197546959,
-0.0361788384616375,
0.033724345266819,
0.0044126007705926895,
-0.044540081173181534,
0.042265184223651886,
-0.020064987242221832,
-0.05148450285196304,
-0.03735619783401489,
-0.015116089023649693,
0.01647304557263851,
-0.015654880553483963,
-0.0037740333937108517,
0.013888842426240444,
-0.013799043372273445,
0.014347813092172146,
-0.07020250707864761,
0.002758810995146632,
0.04154679551720619,
-0.01211282704025507,
-0.007827440276741982,
0.014537387527525425,
0.01787988841533661,
-0.0822155624628067,
0.0038189326878637075,
-0.01834883727133274,
0.011883341707289219,
0.004375184886157513,
-0.022908607497811317,
-0.029154594987630844,
0.01359949167817831,
0.06309844553470612,
0.0003224017273169011,
0.0008075633668340743,
0.03436291217803955,
-0.07032224535942078,
-0.02654046006500721,
0.005178383085876703,
-0.0022811326198279858,
-0.0539589524269104,
-0.0738343596458435,
-0.0501275472342968,
-0.008126768283545971,
0.030491596087813377,
-0.016812283545732498,
-0.029433969408273697,
-0.019486285746097565,
0.09738153964281082,
-0.07459266483783722,
0.03855350986123085,
-0.020733486860990524,
-0.032786447554826736,
-0.026241131126880646,
0.023108160123229027,
0.03979073464870453,
-0.04701453074812889,
-0.03917212411761284,
-0.07307606190443039,
-0.0021314683835953474,
0.007657820824533701,
-0.06146211922168732,
0.0210527703166008,
-0.006550305522978306,
0.008580749854445457,
-0.0035794698633253574,
0.07483212649822235,
-0.011214841157197952,
0.06138229742646217,
0.05627375841140747,
-0.0044275675900280476,
-0.039930421859025955,
-0.049608711153268814,
-0.027318714186549187,
-0.015565081499516964,
-0.04126742109656334,
0.007607932668179274,
0.030511552467942238,
0.023766683414578438,
0.013429871760308743,
-0.05703205615282059,
-0.003275152761489153,
0.091155506670475,
-0.03154922276735306,
-0.0010326832998543978,
0.026261087507009506,
0.0008749122498556972,
-0.008356253616511822,
-0.03119003027677536,
-0.018708031624555588,
-0.03961113840341568,
0.005652319639921188,
-0.026700101792812347,
0.04186607897281647,
-0.00605142442509532,
-0.06158185005187988,
-0.007687753532081842,
-0.010092359036207199,
-0.042624376714229584,
-0.012771349400281906,
-0.017001857981085777,
-0.027478355914354324,
-0.04513873904943466,
0.02484426461160183,
-0.027139117941260338,
-0.0780249610543251,
-0.09778064489364624,
-0.049409158527851105,
0.017780112102627754,
0.027139117941260338,
0.010556318797171116,
-0.0543181449174881,
-0.011144997552037239,
0.01772024668753147,
0.04908987507224083,
0.035500358790159225,
-0.012192647904157639,
-0.015245798043906689,
0.0071190292946994305,
0.000964710779953748,
0.0244252048432827,
0.0042030708864331245,
-0.03330528363585472,
0.028715580701828003,
-0.0387331061065197,
-0.03222770243883133,
-0.0700029581785202,
0.03073105961084366,
-0.02232990600168705,
0.06465495377779007,
-0.05834910273551941,
0.018428657203912735,
-0.024983951821923256,
0.0012983373599126935,
-0.01580454409122467,
-0.04865085706114769,
0.07459266483783722,
-0.0395512729883194,
-0.00843607448041439,
0.008810235187411308,
0.028396297246217728,
-0.011693766340613365,
0.026680147275328636,
0.01619367115199566,
-0.005293125752359629,
-0.06621146202087402,
-0.01958606205880642,
0.013769110664725304,
0.026221176609396935,
0.005682252813130617,
0.02845616266131401,
0.03643825650215149,
0.0074083805084228516,
-0.0395512729883194,
-0.0016961948713287711,
-0.026660190895199776,
0.008076881058514118,
0.056593041867017746,
0.016153762117028236,
0.012601729482412338,
-0.012402177788317204,
0.01577461138367653,
0.006934443488717079,
0.07263705134391785,
-0.016961948946118355,
-0.07112044841051102,
0.06808725744485855,
-0.01730118691921234,
-0.01956610567867756,
-0.005762073677033186,
-0.00032489612931385636,
-0.014716984704136848,
0.005861849989742041,
0.014657118357717991,
-0.0013931246940046549,
0.015425395220518112,
0.00044213313958607614,
0.020114874467253685,
-0.0752711370587349,
0.07846397906541824,
0.01790982112288475,
-0.040549032390117645,
0.04737372323870659,
-0.009354015812277794,
-0.08205591887235641,
0.0001235509553225711,
-0.040549032390117645,
-0.0005019988166168332,
0.03218778967857361,
-0.039930421859025955,
-0.08073887228965759,
0.010496452450752258,
0.028116922825574875,
0.05264190584421158,
0.05751098319888115,
-0.003968596924096346,
0.030232178047299385,
-0.014447588473558426,
-0.0236070416867733,
-0.0036567964125424623,
0.009812985546886921,
0.04134724289178848,
0.05854865536093712,
-0.05515626445412636,
-0.08429090678691864,
-0.06413611769676208,
0.007602944038808346,
0.03322546184062958,
-0.0003498401783872396,
-0.05096566677093506,
0.04932933673262596,
-0.03057141788303852,
0.0008979854756034911,
0.03532076254487038,
0.01980556920170784,
0.01876789703965187,
-0.07586979866027832,
0.06345763802528381,
-0.009299138560891151,
0.021850980818271637,
0.008181645534932613,
-0.03310573101043701,
-0.005113528575748205,
0.002079085912555456,
0.014647141098976135,
0.02614135481417179,
-0.016083918511867523,
0.024963997304439545,
0.06349755078554153,
-0.06369710713624954,
-0.001665014773607254,
0.028077013790607452,
0.042265184223651886,
-0.03386403247714043,
0.07283660024404526,
0.029014909639954567,
0.03186850622296333,
0.01661273092031479,
0.03831404820084572,
0.05439796671271324,
-0.03294609114527702,
0.040568988770246506,
-0.01010732538998127,
0.03144944831728935,
-0.08033976703882217,
0.07962138205766678,
-0.02592184767127037,
-0.03705686703324318,
0.06433567404747009,
0.004145699553191662,
-0.038413822650909424,
-0.021591562777757645,
0.036538030952215195,
-0.04080845043063164,
-0.005806972738355398,
0.02127227932214737,
-0.06860609352588654,
-0.03462233021855354,
-0.08365233987569809,
-0.007019253447651863,
-0.006360730621963739,
-0.007109052035957575,
0.028396297246217728,
-0.032786447554826736,
-0.015255776233971119,
-0.009962650015950203,
0.047533366829156876,
0.025123639032244682,
-0.02482431009411812,
0.007298626471310854,
0.018049508333206177,
-0.033165596425533295,
-0.05355984717607498,
0.008386186324059963,
0.06988322734832764,
-0.05451769754290581,
-0.039930421859025955,
-0.020055009052157402,
-0.011653856374323368,
0.028077013790607452,
-0.009074642322957516,
0.046016767621040344,
-0.040349479764699936,
0.006310842465609312,
0.015096133574843407,
0.0037515838630497456,
0.016562843695282936,
-0.00647048419341445,
0.06700967252254486,
0.00374410068616271,
0.014756894670426846,
-0.006186122074723244,
-0.020733486860990524,
0.04777282848954201,
-0.011394438333809376,
0.020553890615701675,
-0.009573522955179214,
-0.07714693248271942,
0.030072536319494247,
-0.004178126808255911,
0.012771349400281906,
0.012392199598252773,
-0.0012578032910823822,
-0.07499177008867264,
-0.03412345051765442,
-0.06844644993543625,
-0.019675860181450844,
-0.019027315080165863,
0.062499791383743286,
0.011125042103230953,
-0.030850790441036224,
0.003122993977740407,
0.002156412461772561,
0.009962650015950203,
-0.08461018651723862,
-0.008855135180056095,
0.014387723058462143,
0.04605667665600777,
-0.0665307492017746,
0.012511931359767914,
-0.02236981689929962,
-0.026620281860232353,
-0.016592776402831078,
0.006081357132643461,
0.0019369048532098532,
0.048770591616630554,
-0.007967126555740833,
0.09857885539531708,
0.0248841755092144,
0.08484964817762375
] |
723,275
|
exponent_server_sdk
|
check_receipts
|
Checks the push receipts of the given push tickets
|
def check_receipts(self, push_tickets):
""" Checks the push receipts of the given push tickets """
# Delayed import because this file is immediately read on install, and
# the requests library may not be installed yet.
response = requests.post(
self.host + self.api_url + '/push/getReceipts',
data=json.dumps(
{'ids': [push_ticket.id for push_ticket in push_tickets]}),
headers={
'accept': 'application/json',
'accept-encoding': 'gzip, deflate',
'content-type': 'application/json',
},
timeout=self.timeout)
receipts = self.validate_and_get_receipts(response)
return receipts
|
(self, push_tickets)
|
[
0.001713440753519535,
-0.020408790558576584,
-0.08261115849018097,
0.02744990959763527,
-0.05838552117347717,
-0.0030543471220880747,
-0.04454728215932846,
-0.013777240179479122,
0.05636381357908249,
0.010997392237186432,
0.0003836996329482645,
-0.011406962759792805,
0.019119080156087875,
-0.04252557456493378,
-0.025184202939271927,
-0.048032984137535095,
-0.004675198812037706,
-0.06615863740444183,
0.056050099432468414,
-0.0005492705386132002,
0.036460451781749725,
0.08198373019695282,
0.037506163120269775,
0.09167398512363434,
0.00030527132912538946,
0.04141014814376831,
0.05660781264305115,
-0.018962223082780838,
0.007729546166956425,
0.009411397390067577,
-0.023999063298106194,
0.04663870483636856,
0.04134043678641319,
0.010805678553879261,
-0.032120753079652786,
0.01370752602815628,
0.018456796184182167,
-0.04029472544789314,
-0.037715304642915726,
0.04259528964757919,
0.016530945897102356,
0.07766145467758179,
0.05733980983495712,
-0.06605406850576401,
-0.012008246034383774,
-0.021994784474372864,
-0.061104368418455124,
0.0685289204120636,
0.03130161017179489,
0.02861762046813965,
0.005725266877561808,
0.06302150338888168,
-0.013463526964187622,
-0.0240339208394289,
0.0422118604183197,
0.005520481616258621,
-0.02929733134806156,
0.02502734586596489,
0.029227618128061295,
0.023267066106200218,
-0.02344135195016861,
0.014796808362007141,
0.038377586752176285,
-0.034578170627355576,
-0.009298112243413925,
-0.009106398560106754,
0.06542664021253586,
-0.02410363405942917,
0.015110521577298641,
-0.02394677884876728,
-0.009263255633413792,
0.027519622817635536,
-0.05950094759464264,
-0.04785870015621185,
0.028861619532108307,
0.014544094912707806,
0.06877291947603226,
-0.006744835060089827,
-0.03334074839949608,
0.0029475975316017866,
0.03452588617801666,
0.0040281652472913265,
0.017350085079669952,
0.060651227831840515,
0.02786819450557232,
0.020635360851883888,
0.07166604697704315,
0.015528805553913116,
-0.02750219590961933,
0.011720675975084305,
0.020670218393206596,
0.049078695476055145,
-0.01194724626839161,
-0.05866437777876854,
0.04329242929816246,
-0.046778131276369095,
-0.01402123924344778,
0.024469634518027306,
-0.07034148275852203,
0.00432445015758276,
0.004420306999236345,
-0.01044839434325695,
-0.07710374891757965,
0.013376384042203426,
0.011354676447808743,
0.011668389663100243,
-0.02030421793460846,
-0.017611512914299965,
0.027885623276233673,
0.030273329466581345,
-0.004076093900948763,
-0.03208589553833008,
-0.010805678553879261,
-0.015476520173251629,
0.02452191896736622,
0.010483250953257084,
0.01015210896730423,
0.0062219793908298016,
-0.03485702723264694,
-0.07410604506731033,
0.05692152678966522,
-0.03872615844011307,
0.08637571334838867,
0.030430184677243233,
0.03321874886751175,
0.038377586752176285,
0.0017657263670116663,
-0.0024552419781684875,
0.09815739095211029,
-0.006400621961802244,
0.004596770741045475,
0.01821279712021351,
-0.022744210436940193,
0.0022831354290246964,
-0.024504490196704865,
-0.0165048036724329,
0.008749114349484444,
-0.009219683706760406,
0.10254937410354614,
-0.07361803948879242,
-0.0037776303943246603,
-0.003810308873653412,
-0.038551874458789825,
-0.008831899613142014,
-0.06696034967899323,
-0.02846076339483261,
-0.029070761054754257,
0.0190145093947649,
-0.02084450237452984,
-0.01595580391585827,
-0.01402123924344778,
-0.0321730375289917,
0.0059256949461996555,
0.016740087419748306,
0.040225010365247726,
0.050368405878543854,
0.008766542188823223,
-0.010648822411894798,
-0.008400543592870235,
0.03820330277085304,
0.016487374901771545,
0.03159789741039276,
0.010021395981311798,
0.004827698227018118,
-0.0027602408081293106,
0.007542189210653305,
-0.019206222146749496,
-0.03121446818113327,
-0.04437299817800522,
0.0631260797381401,
-0.005803694948554039,
0.04374556988477707,
-0.01972907781600952,
-0.042769573628902435,
0.00615226523950696,
-0.030534757301211357,
0.023842206224799156,
0.02143707312643528,
-0.008557400666177273,
-0.016408946365118027,
-0.11795618385076523,
-0.03949301317334175,
0.0140996677801013,
-0.006692549213767052,
-0.0004964403342455626,
0.024626489728689194,
-0.007193618919700384,
0.0065792640671133995,
-0.029489045962691307,
-0.018979651853442192,
-0.04419871047139168,
0.016722658649086952,
0.040259867906570435,
0.07968316227197647,
-0.01226095948368311,
-0.03567616641521454,
-0.010605250485241413,
0.0447215661406517,
-0.060651227831840515,
-0.012827386148273945,
-0.02356335148215294,
-0.010457108728587627,
0.012487530708312988,
0.013916668482124805,
-0.012025674805045128,
-0.07034148275852203,
0.003555416828021407,
-0.004919197876006365,
0.013550669886171818,
-0.0009057380957528949,
-0.011424390599131584,
0.0351010262966156,
-0.020530790090560913,
-0.0017853333847597241,
-0.028234193101525307,
0.05047297477722168,
0.10387394577264786,
-0.0652175024151802,
-0.031615324318408966,
-0.04008558392524719,
0.01260081585496664,
-0.03112732619047165,
-0.08344772458076477,
-0.0016491730930283666,
-0.007468118332326412,
0.08003173768520355,
-0.012269673869013786,
0.08184430003166199,
0.02715362422168255,
-0.024853060021996498,
0.01951993629336357,
0.038133587688207626,
0.09418369084596634,
0.00438762828707695,
-0.02724076807498932,
-0.0768946036696434,
-0.0639277920126915,
0.008905970491468906,
0.061069514602422714,
0.02891390398144722,
0.05775809660553932,
-0.027362767606973648,
0.055771246552467346,
0.03274817764759064,
0.04562785103917122,
0.017315229400992393,
0.009873253293335438,
0.008657614700496197,
0.010918963700532913,
-0.009228398092091084,
0.014282667078077793,
-0.0147270942106843,
0.04332728683948517,
-0.027293052524328232,
0.0005111456266604364,
-0.04019015282392502,
-0.014979807659983635,
-0.008400543592870235,
0.07173576205968857,
-0.03360217437148094,
0.06539178639650345,
0.05521353334188461,
0.017454655840992928,
0.0639277920126915,
-0.047161560505628586,
-0.022796496748924255,
-0.024504490196704865,
0.033445317298173904,
-0.0392838716506958,
0.024260491132736206,
0.02807733602821827,
-0.04102672263979912,
0.044442709535360336,
0.014308810234069824,
-0.0009896127739921212,
0.013881810940802097,
0.029436759650707245,
0.04939240962266922,
-0.027467338368296623,
-0.008910328149795532,
-0.02929733134806156,
-0.006709977984428406,
0.10415279865264893,
-0.0007859170436859131,
0.02708391100168228,
-0.03271332010626793,
0.03531016781926155,
0.0042765215039253235,
-0.017689941450953484,
-0.021994784474372864,
0.0051544830203056335,
0.04378042742609978,
0.026595912873744965,
-0.08010145276784897,
0.018125655129551888,
0.018439367413520813,
-0.03410760313272476,
-0.009855824522674084,
0.012130245566368103,
-0.024138491600751877,
-0.0014160667778924108,
0.021367358043789864,
-0.002636062679812312,
-0.06570550054311752,
-0.03959758207201958,
-0.017402371391654015,
0.006692549213767052,
0.004910483956336975,
-0.009219683706760406,
-0.037297021597623825,
0.018962223082780838,
0.027972765266895294,
0.037750162184238434,
-0.06511292606592178,
0.008518186397850513,
-0.020617932081222534,
-0.015293520875275135,
0.021541643887758255,
-0.009681539610028267,
0.016774944961071014,
0.05692152678966522,
-0.012156388722360134,
0.012592101469635963,
0.012757671996951103,
0.04099186509847641,
-0.05218097195029259,
-0.013463526964187622,
-0.02469620481133461,
-0.024887917563319206,
0.016356660053133965,
0.01721065677702427,
-0.028983619064092636,
0.04984555020928383,
-0.0077556888572871685,
0.05186725780367851,
0.015528805553913116,
0.011685818433761597,
-0.012278388254344463,
-0.030656756833195686,
0.0019247615709900856,
0.01721065677702427,
-0.04712670296430588,
0.0342644602060318,
0.0169230867177248,
-0.002906204666942358,
0.019572220742702484,
0.010169537737965584,
-0.011738103814423084,
-0.03321874886751175,
-0.013263098895549774,
0.011337248608469963,
0.0003188873524777591,
0.05113526061177254,
0.04562785103917122,
0.027101339772343636,
0.0016154054319486022,
0.0015827269526198506,
0.04019015282392502,
0.012252245098352432,
0.020983930677175522,
-0.013751097954809666,
0.05319182574748993,
-0.03201618045568466,
0.018021084368228912,
-0.0643460750579834,
-0.02347620762884617,
0.013881810940802097,
0.036042168736457825,
-0.03438645973801613,
0.04353642836213112,
-0.009271969087421894,
0.06465978920459747,
-0.0563986711204052,
0.023005638271570206,
-0.01291452907025814,
0.02248278260231018,
-0.022918496280908585,
-0.011267534457147121,
-0.009751253761351109,
0.008396186865866184,
-0.05859466269612312,
0.00011274070129729807,
-0.06706491857767105,
0.004845126997679472,
0.04566270485520363,
-0.00598669471219182,
-0.0798225924372673,
-0.031022755429148674,
0.06863348931074142,
0.03632102161645889,
0.012077960185706615,
-0.03506616875529289,
-0.005167554598301649,
0.0049889120273292065,
-0.03443874418735504,
-0.06814549118280411,
0.0706203356385231,
0.036251310259103775,
0.015703091397881508,
-0.02741505205631256,
0.02507963217794895,
0.009620539844036102,
0.0026469556614756584,
-0.02891390398144722,
-0.017350085079669952,
0.036878734827041626,
-0.03368931636214256,
-0.08874599635601044,
0.005167554598301649,
-0.010535536333918571,
0.0003725344722624868,
0.04921812191605568,
0.05828095227479935,
-0.09390483051538467,
-0.054795246571302414,
0.005977980326861143,
-0.03232989460229874,
-0.0196419358253479,
0.03264360502362251,
-0.0005198598955757916,
-0.02708391100168228,
-0.02248278260231018,
-0.03159789741039276,
0.030604470521211624,
-0.02786819450557232,
0.011284963227808475,
0.022238783538341522,
0.03222532197833061,
-0.024347633123397827,
0.04144500568509102,
0.047579843550920486,
-0.007624974939972162,
0.009420111775398254,
-0.0045924135483801365,
-0.00081750622484833,
0.012156388722360134,
-0.042177002876996994,
-0.043187856674194336,
-0.0371924489736557,
0.020025363191962242,
-0.011067106388509274,
0.03396817296743393,
0.007062905468046665,
-0.034159887582063675,
0.022796496748924255,
-0.026561055332422256,
-0.019955648109316826,
-0.06887748837471008,
0.003139310982078314,
0.015720520168542862,
-0.06448550522327423,
-0.047614701092243195,
0.0026622056029736996,
-0.04141014814376831,
0.01617366075515747,
-0.03222532197833061,
-0.026630768552422523,
0.04852098226547241,
-0.07842831313610077,
0.0009427736513316631,
0.022447926923632622,
-0.011528962291777134,
-0.0384473018348217,
0.024312777444720268,
-0.02126278728246689,
-0.03694844990968704,
-0.09167398512363434,
0.029349617660045624,
-0.011816532351076603,
0.013114957138895988,
0.041305579245090485,
0.006940905470401049,
-0.036077022552490234,
0.03517074137926102,
-0.04186329245567322,
0.0009890681831166148,
-0.0075988322496414185,
0.02703162468969822,
-0.052459828555583954,
-0.03483960032463074,
-0.08560886234045029,
-0.03820330277085304,
0.006038980092853308,
-0.019955648109316826,
-0.03504874184727669,
-0.07431518286466599,
0.03994615375995636,
-0.06406721472740173,
-0.006439835764467716,
-0.030743898823857307,
0.010186966508626938,
-0.04904383793473244,
0.02507963217794895,
0.07299061864614487,
0.024922775104641914,
-0.03506616875529289,
-0.015328378416597843,
0.06026780232787132,
0.013489670120179653,
-0.010396108962595463,
0.01721937209367752,
0.03558902442455292,
0.06459007412195206,
0.05427239090204239,
0.03865644335746765,
0.008958255872130394,
0.02014736272394657,
-0.005712195299565792,
0.022796496748924255,
-0.038830727338790894,
-0.005903908982872963,
-0.01750694215297699,
-0.009690253995358944,
-0.01826508343219757,
0.013916668482124805,
0.011711961589753628,
0.01796879805624485,
-0.001217817422002554,
-0.06908662617206573,
0.07124776393175125,
0.05587581545114517,
0.030221043154597282,
0.005973623134195805,
-0.04224671795964241,
0.01335024181753397,
0.010282822884619236,
-0.02194250002503395,
-0.021210500970482826,
-0.01847422495484352,
-0.011999531649053097,
0.022256212309002876,
0.034787312150001526,
-0.02478334680199623,
-0.08630599826574326,
-0.02473106049001217,
0.02603819966316223,
-0.021193072199821472,
-0.039806727319955826,
0.043815284967422485,
-0.008670685812830925,
-0.00047329309745691717,
0.016269518062472343,
-0.00873604230582714,
-0.015589805319905281,
-0.10199166089296341,
0.04228157550096512,
0.015581091865897179,
0.005903908982872963,
-0.01671394519507885,
-0.024765918031334877,
-0.007712117396295071,
-0.002999882912263274,
0.01514537911862135,
0.013890525326132774,
0.008282901719212532,
-0.004354950040578842,
0.00892339926213026,
-0.008204473182559013,
0.022953353822231293,
-0.005633767228573561,
0.036669593304395676,
-0.013594240881502628,
-0.029855044558644295,
0.0397021546959877,
-0.08142601698637009,
-0.006901691667735577,
0.031406182795763016,
0.052634112536907196,
-0.031406182795763016,
-0.00019293910008855164,
0.0009656486217863858,
0.010491965338587761,
0.0022460997570306063,
0.028966190293431282,
0.0468129888176918,
-0.0722934752702713,
-0.020739931613206863,
-0.030639328062534332,
-0.019119080156087875,
-0.02385963499546051,
0.029349617660045624,
-0.040922150015830994,
-0.0317547507584095,
-0.07361803948879242,
-0.0007619528332725167,
0.0016023339703679085,
-0.02035650424659252,
0.003581559518352151,
-0.0073504759930074215,
0.07096891105175018,
0.0275719091296196,
-0.002030421979725361,
-0.046115849167108536,
-0.016069089993834496,
0.0035162027925252914,
0.027606766670942307,
0.014910093508660793,
0.038761015981435776,
-0.0584900937974453,
0.03354988992214203,
0.0194327924400568,
0.025044774636626244,
-0.013088813982903957,
-0.0689472034573555,
0.023633064702153206,
-0.03572845458984375,
-0.003361524548381567,
-0.01280995737761259,
0.023545922711491585,
0.02448706142604351,
0.027885623276233673,
-0.020251933485269547,
0.0426301434636116,
0.044268425554037094,
0.004311378579586744,
0.03910958394408226,
-0.03628616780042648,
0.045104995369911194,
-0.020199647173285484,
0.011354676447808743,
0.04050386697053909,
0.0022635282948613167,
0.0033724175300449133,
0.02311020903289318,
-0.026752768084406853,
0.02014736272394657,
-0.023423923179507256,
0.0005029760068282485,
-0.030552184209227562,
-0.02035650424659252,
0.006078194361180067,
0.009829682298004627,
0.09488082677125931,
0.017663799226284027,
0.029645903035998344,
-0.006709977984428406,
-0.010962535627186298,
-0.04984555020928383,
-0.00986453890800476,
0.01412581093609333,
-0.03463045880198479,
-0.024800775572657585,
-0.08790942281484604,
-0.01826508343219757,
0.016957944259047508,
-0.022657068446278572,
-0.02168107219040394,
-0.03354988992214203,
0.04071300849318504,
-0.004596770741045475,
-0.005084768868982792,
0.007267690263688564,
0.01763765700161457,
0.04378042742609978,
-0.058350663632154465,
0.026752768084406853,
-0.000715658359695226,
0.019572220742702484,
-0.005324411205947399,
-0.052424971014261246,
-0.015162806957960129,
-0.0029737402219325304,
-0.005141411442309618,
0.016513517126441002,
-0.009803539142012596,
0.005999765824526548,
0.041270721703767776,
-0.03621645271778107,
-0.05929180607199669,
0.08100773394107819,
0.05817637965083122,
0.0008087919559329748,
0.05964037403464317,
-0.013088813982903957,
0.028391050174832344,
0.004496556706726551,
-0.0005247616791166365,
0.0081478301435709,
0.02331935241818428,
0.03663473576307297,
-0.06096494197845459,
-0.018857652321457863,
-0.06068608537316322,
0.04203757643699646,
-0.0013822990003973246,
0.013463526964187622,
0.00919354148209095,
0.04060843586921692,
-0.0656357854604721,
0.012051817029714584,
0.01433495245873928,
-0.039179299026727676,
0.02014736272394657,
0.053296394646167755,
-0.05803695321083069,
0.015615948475897312,
-0.06333521753549576,
0.047440413385629654,
0.027972765266895294,
-0.028652476146817207,
0.04141014814376831,
-0.03368931636214256,
0.03196389600634575,
0.009298112243413925,
-0.024225633591413498,
-0.022378211840987206,
-0.033706746995449066,
0.0032395250163972378,
-0.07968316227197647,
0.02347620762884617,
-0.055771246552467346,
0.029489045962691307,
0.0568169541656971,
-0.07710374891757965,
0.014544094912707806,
-0.0077949026599526405,
-0.015554948709905148,
0.022831352427601814,
0.006239408161491156,
-0.0021382607519626617,
0.006282979156821966,
0.048660412430763245,
-0.039179299026727676,
0.00147815584205091,
0.038377586752176285,
0.005189340095967054,
0.05754895135760307,
-0.0150408074259758,
-0.022256212309002876,
0.0171322301030159,
0.02891390398144722,
0.038761015981435776,
0.008330829441547394,
-0.032661035656929016,
-0.0009302469552494586,
-0.06842434406280518,
0.007825402542948723,
0.002629527123644948,
0.03701816499233246,
-0.002734098117798567,
0.03306189179420471,
-0.07780088484287262,
-0.0029475975316017866,
-0.05503924563527107,
0.0076467604376375675,
-0.02887904830276966,
0.037924446165561676,
-0.004723127465695143,
-0.06221979483962059,
-0.05043812096118927,
0.006640263833105564,
0.0300816148519516,
-0.050542689859867096,
-0.03506616875529289,
0.020129933953285217,
0.06542664021253586,
-0.04601127654314041,
-0.043640997260808945,
-0.031231896951794624,
0.015781519934535027,
-0.02514934539794922,
-0.0023833492305129766,
-0.03522302582859993,
0.06291693449020386,
-0.011302391067147255,
0.026543626561760902,
0.0330096073448658,
0.042177002876996994
] |
723,276
|
exponent_server_sdk
|
check_receipts_multiple
|
Check receipts in batches of 1000 as per expo docs
|
def check_receipts_multiple(self, push_tickets):
"""
Check receipts in batches of 1000 as per expo docs
"""
receipts = []
for start in itertools.count(0, self.max_receipt_count):
chunk = list(
itertools.islice(push_tickets, start,
start + self.max_receipt_count))
if not chunk:
break
receipts.extend(self._check_receipts_internal(chunk))
return receipts
|
(self, push_tickets)
|
[
0.0020690099336206913,
-0.012651326134800911,
-0.09549879282712936,
0.05394880846142769,
-0.053530871868133545,
0.01179803628474474,
-0.03792785853147507,
-0.06181997060775757,
0.05642160773277283,
-0.016795877367258072,
0.02751423977315426,
0.01191122829914093,
-0.00011604848987190053,
-0.03209414333105087,
-0.021959150210022926,
-0.05140635371208191,
0.008741865865886211,
-0.07529846578836441,
0.04179378226399422,
0.06387483328580856,
0.04458003491163254,
0.1088031455874443,
-0.012041834183037281,
0.03186776116490364,
-0.019416695460677147,
0.054784685373306274,
0.03841545060276985,
0.022829854860901833,
0.02225518971681595,
0.03716163709759712,
-0.003424042835831642,
0.025894731283187866,
0.045590050518512726,
0.023543830960989,
-0.02110586129128933,
0.01858081854879856,
0.014836792834103107,
0.005781473126262426,
-0.032529495656490326,
0.04774939641356468,
0.002135401125997305,
0.03559437021613121,
0.08428412675857544,
-0.027183372527360916,
-0.04374415799975395,
-0.034741081297397614,
-0.010605172254145145,
0.06519830226898193,
0.013783241622149944,
0.032285697758197784,
0.0011852455791085958,
0.030126351863145828,
0.00015264526882674545,
0.0012777578085660934,
0.01591646485030651,
0.0075968909077346325,
-0.024362292140722275,
0.013286939822137356,
0.015576891601085663,
0.024362292140722275,
-0.03143240883946419,
0.020130671560764313,
0.09424497932195663,
-0.021488970145583153,
-0.008828937076032162,
-0.03521126136183739,
0.04350036382675171,
-0.022969165816903114,
-0.0056856959126889706,
0.0050849104300141335,
0.0030431097839027643,
0.04384864494204521,
-0.07348740100860596,
-0.03535057604312897,
-0.007949525490403175,
0.022882096469402313,
0.04102756455540657,
0.03054429031908512,
-0.012790638953447342,
-0.009473257698118687,
0.04837630316615105,
0.0009953232947736979,
0.014732308685779572,
0.0838661938905716,
0.05502847954630852,
0.01976497657597065,
0.0742536187171936,
0.0551677942276001,
0.0445103794336319,
0.019312210381031036,
0.012651326134800911,
0.07188531011343002,
0.008476302027702332,
-0.06175031512975693,
0.04350036382675171,
-0.0366043895483017,
-0.04134101793169975,
0.029482031241059303,
-0.05666540563106537,
-0.008027888834476471,
-0.006060098763555288,
-0.027409756556153297,
0.022777611389756203,
-0.01630828157067299,
-0.00002663129271240905,
0.006991751492023468,
-0.019016170874238014,
-0.0005333060980774462,
0.04266448691487312,
0.03949512541294098,
-0.007814566604793072,
0.00929040927439928,
-0.004431882407516241,
0.004366579465568066,
-0.03205931559205055,
0.0393558107316494,
0.027200786396861076,
0.014236007817089558,
-0.026695778593420982,
-0.04750559851527214,
0.05043116584420204,
-0.02636491134762764,
0.01649983786046505,
0.020165501162409782,
-0.006321309600025415,
0.0474359430372715,
0.04715731739997864,
0.022028805688023567,
0.08045303076505661,
-0.013722292147576809,
0.02100137621164322,
0.02909892238676548,
0.00498477928340435,
-0.013260819017887115,
-0.03421866148710251,
-0.0352286770939827,
0.02652163803577423,
-0.04374415799975395,
0.05433191731572151,
-0.10636518150568008,
-0.047993194311857224,
0.012120197527110577,
-0.013286939822137356,
0.029342718422412872,
-0.0556902177631855,
-0.026155943050980568,
-0.03421866148710251,
0.019172897562384605,
-0.005441898945719004,
-0.00853289756923914,
-0.029795484617352486,
0.00462343730032444,
-0.01840667799115181,
-0.0007107119890861213,
0.022655712440609932,
0.07348740100860596,
-0.0031845991034060717,
0.0131476279348135,
0.007762324530631304,
0.01133656408637762,
0.004910769406706095,
0.03535057604312897,
-0.028750639408826828,
0.06317827105522156,
-0.026678364723920822,
0.0033282653894275427,
-0.049734603613615036,
-0.013225991278886795,
-0.045624878257513046,
0.07091011852025986,
0.03921649977564812,
0.060252703726291656,
0.034828152507543564,
-0.05952131375670433,
-0.024397121742367744,
0.008184615522623062,
0.010674828663468361,
-0.014479804784059525,
-0.01649983786046505,
-0.011841571889817715,
-0.13220766186714172,
-0.03601231053471565,
0.04130619019269943,
-0.028297873213887215,
-0.01050068810582161,
0.04095790907740593,
0.014828085899353027,
-0.0057335845194756985,
0.0016815467970445752,
-0.024205565452575684,
-0.03831096738576889,
-0.013643928803503513,
0.010248184204101562,
0.05802370235323906,
-0.04750559851527214,
-0.008271685801446438,
-0.017901670187711716,
0.019207725301384926,
-0.05976511165499687,
0.0022311785724014044,
-0.08539862930774689,
0.004462357144802809,
0.01457558199763298,
-0.051023244857788086,
-0.002270360244438052,
-0.05050082132220268,
0.009734468534588814,
0.000015755997083033435,
-0.02397918328642845,
0.003998707048594952,
-0.006064452230930328,
0.0446845181286335,
-0.0023966121952980757,
0.05133669823408127,
0.017039673402905464,
0.0328255333006382,
0.07766678184270859,
-0.020653095096349716,
-0.02239450253546238,
-0.01838926412165165,
0.00039617024594917893,
-0.054680198431015015,
-0.0503615103662014,
-0.0029930444434285164,
0.005811947863548994,
0.06620831787586212,
0.024553848430514336,
0.05666540563106537,
0.048341475427150726,
0.002919034566730261,
-0.026869919151067734,
0.05966062471270561,
0.0797564685344696,
0.031153783202171326,
0.0007591448957100511,
-0.06624314934015274,
-0.04130619019269943,
-0.01826736517250538,
0.07829368859529495,
0.05952131375670433,
0.017866842448711395,
-0.048028022050857544,
0.03709198161959648,
0.010692242532968521,
0.048167336732149124,
0.0345495268702507,
0.019085828214883804,
0.024066252633929253,
0.02385728433728218,
0.009177218191325665,
0.032529495656490326,
0.015603012405335903,
0.0195908360183239,
-0.01995653100311756,
0.020827235653996468,
-0.015411457978188992,
-0.004902062471956015,
-0.02659129537642002,
0.04527659714221954,
-0.010300425812602043,
0.07522881031036377,
0.03576851263642311,
0.031136369332671165,
0.028489429503679276,
-0.06791489571332932,
0.0010584492702037096,
-0.029621344059705734,
0.035141605883836746,
-0.020687922835350037,
0.06498933583498001,
0.03813682869076729,
0.02129741571843624,
0.027200786396861076,
0.02916857786476612,
0.002705712104216218,
0.014479804784059525,
0.005002193618565798,
0.05952131375670433,
-0.05837198346853256,
-0.029656171798706055,
-0.007148478180170059,
0.012355287559330463,
0.08226409554481506,
-0.01189381442964077,
0.007683961186558008,
-0.04471934959292412,
0.006299542263150215,
0.02622559852898121,
-0.010996988974511623,
-0.0448586605489254,
-0.03305191546678543,
0.04099273681640625,
0.042803797870874405,
-0.0919463261961937,
-0.012712275609374046,
-0.0446845181286335,
-0.006795843131840229,
-0.022864682599902153,
-0.02772320993244648,
0.0014769313856959343,
-0.006147169042378664,
-0.004671325907111168,
-0.03865924850106239,
-0.03205931559205055,
-0.03035273589193821,
-0.008236858062446117,
0.03928615525364876,
-0.024135909974575043,
0.023178135976195335,
-0.049386318773031235,
0.017814600840210915,
0.03684818372130394,
0.015045762062072754,
-0.05896406248211861,
0.03040497750043869,
0.004488477949053049,
-0.0011286498047411442,
0.025929559022188187,
-0.01826736517250538,
0.0018643945222720504,
0.026922162622213364,
-0.013800655491650105,
-0.0015335270436480641,
0.018859444186091423,
-0.01391384657472372,
-0.04461486265063286,
-0.011998298577964306,
-0.006491097155958414,
-0.07160668075084686,
-0.006726187188178301,
-0.025772832334041595,
-0.03153689205646515,
0.029499445110559464,
0.026817677542567253,
0.00800176803022623,
0.007322619203478098,
0.020862063392996788,
0.016195090487599373,
0.01844150759279728,
-0.018197709694504738,
0.013478495180606842,
-0.014087988063693047,
-0.009455843828618526,
0.0018774551572278142,
-0.019486350938677788,
0.024153323844075203,
0.04332622140645981,
-0.020566023886203766,
0.009316531009972095,
-0.024414535611867905,
0.01051810197532177,
0.009769297204911709,
0.02916857786476612,
0.05837198346853256,
0.04666972532868385,
0.0008848527795635164,
-0.032512079924345016,
-0.0014834615867584944,
0.012990901246666908,
0.03153689205646515,
-0.051058072596788406,
0.029708413407206535,
-0.00024243659572675824,
0.06234239414334297,
-0.01845892146229744,
-0.01454946119338274,
-0.036290936172008514,
0.05314775928854942,
-0.04914252460002899,
0.056108154356479645,
-0.03268622234463692,
0.03185034543275833,
-0.023474175482988358,
0.040226515382528305,
0.008506775833666325,
-0.013548151589930058,
-0.07397499680519104,
-0.0002161794254789129,
-0.0319722443819046,
0.03212897107005119,
-0.048062849789857864,
-0.03555954247713089,
-0.033731065690517426,
-0.009333944879472256,
0.012442357838153839,
0.004479771014302969,
-0.05784955993294716,
-0.02091430500149727,
0.07341774553060532,
0.04719214513897896,
0.053635355085134506,
-0.0131476279348135,
0.0024989198427647352,
-0.005942553747445345,
-0.005350474733859301,
-0.04597316309809685,
0.036360591650009155,
0.017483731731772423,
-0.015385336242616177,
-0.023073650896549225,
0.006451915483921766,
0.06969113647937775,
0.0039573488757014275,
-0.020078429952263832,
-0.05391398072242737,
-0.01053551584482193,
-0.03418383002281189,
-0.08943869918584824,
-0.009647398255765438,
-0.001569443615153432,
-0.025929559022188187,
0.03277328982949257,
0.07087528705596924,
-0.07529846578836441,
-0.05377466604113579,
-0.005063142627477646,
-0.03392262011766434,
-0.03674370050430298,
0.0305094625800848,
0.00787986908107996,
0.020531196147203445,
-0.01528955902904272,
-0.032512079924345016,
0.038903046399354935,
-0.014384026639163494,
-0.027427170425653458,
-0.0037701474502682686,
0.023108478635549545,
-0.005507201422005892,
0.03047463297843933,
-0.012895123101770878,
-0.02383987046778202,
-0.015507235191762447,
-0.013104092329740524,
0.018023569136857986,
-0.012816759757697582,
-0.04642592743039131,
-0.030631359666585922,
-0.027967005968093872,
0.0037636172492057085,
-0.024501604959368706,
0.03313898667693138,
0.041515156626701355,
-0.024170737713575363,
0.07327843457460403,
-0.00993473082780838,
-0.03838062286376953,
-0.06721833348274231,
-0.00463214423507452,
0.03991306200623512,
-0.033626582473516464,
-0.045624878257513046,
0.028036663308739662,
-0.038937874138355255,
0.056317124515771866,
-0.05116255581378937,
-0.04242068901658058,
0.03131050989031792,
-0.04067928344011307,
-0.0015901228180155158,
0.03416641801595688,
-0.006456268951296806,
-0.03442762792110443,
0.019434109330177307,
-0.028628742322325706,
-0.06965630501508713,
-0.07536812126636505,
0.03394003584980965,
0.0015683552483096719,
0.002136489376425743,
0.016160262748599052,
0.0011101473355665803,
-0.00887682568281889,
0.030631359666585922,
-0.007030933164060116,
-0.03400969132781029,
0.009299117140471935,
0.017483731731772423,
-0.011371391825377941,
-0.020269984379410744,
-0.03312157467007637,
-0.03845028206706047,
0.028646156191825867,
-0.020496368408203125,
-0.06206376850605011,
-0.05262533947825432,
0.045311424881219864,
-0.0630737841129303,
0.0014965222217142582,
-0.017518561333417892,
-0.024362292140722275,
-0.019573422148823738,
0.01637793891131878,
0.06220307946205139,
0.05182429030537605,
-0.0527646504342556,
0.021767595782876015,
0.05450605973601341,
0.04788871109485626,
0.010979575105011463,
0.011667431332170963,
0.046739380806684494,
0.07174599170684814,
0.016334403306245804,
0.02516333945095539,
0.034932635724544525,
0.03023083694279194,
-0.02390952594578266,
-0.023108478635549545,
-0.05419260635972023,
-0.009891195222735405,
-0.0020613912492990494,
-0.013130213133990765,
-0.00851548369973898,
-0.0023922587279230356,
-0.033556923270225525,
0.015385336242616177,
-0.007914697751402855,
-0.027967005968093872,
0.05541159212589264,
0.03040497750043869,
0.002942978870123625,
-0.048028022050857544,
-0.012825467623770237,
0.0029886907432228327,
-0.030596531927585602,
-0.011554239317774773,
-0.005359182134270668,
-0.03698749840259552,
0.004710507579147816,
-0.002149550011381507,
0.02392694167792797,
0.036395419389009476,
-0.08498068898916245,
-0.015925172716379166,
-0.011571654118597507,
-0.05272982269525528,
-0.022916924208402634,
0.0929911658167839,
0.01511541847139597,
-0.002873322693631053,
-0.005158920306712389,
-0.0099260238930583,
-0.01584680937230587,
-0.09682226181030273,
0.04325656592845917,
0.031188610941171646,
-0.0074575780890882015,
0.007361800875514746,
-0.008254271931946278,
0.03286036103963852,
-0.010570344515144825,
0.03136274963617325,
0.0005216060089878738,
0.022655712440609932,
-0.045450739562511444,
0.021680524572730064,
-0.028019249439239502,
0.012581669725477695,
-0.017518561333417892,
0.01723993569612503,
-0.031153783202171326,
-0.03322605788707733,
0.030997056514024734,
0.010918625630438328,
-0.0009316530777141452,
-0.01565525494515896,
0.00979541800916195,
-0.010936039499938488,
0.02133224345743656,
-0.008210737258195877,
0.022951751947402954,
-0.04889872670173645,
0.03587299585342407,
0.047784224152565,
-0.05959096923470497,
-0.033626582473516464,
-0.10148923844099045,
-0.04214206337928772,
-0.04053996875882149,
0.03301708772778511,
-0.024780230596661568,
-0.004923830274492502,
-0.08003509789705276,
0.03984340652823448,
0.042734142392873764,
-0.04203758016228676,
-0.01509800460189581,
-0.024101082235574722,
0.06864628940820694,
0.02505885623395443,
0.032216042280197144,
-0.04666972532868385,
-0.011858985759317875,
-0.020513782277703285,
0.03733577951788902,
0.02916857786476612,
0.01528085209429264,
-0.07000458985567093,
0.01569008268415928,
0.01569008268415928,
0.0577450767159462,
0.0024532079696655273,
0.005063142627477646,
-0.012947365641593933,
-0.06387483328580856,
-0.006565106566995382,
-0.041758954524993896,
0.03458435460925102,
0.06554657965898514,
-0.01120595820248127,
0.005002193618565798,
0.027322685346007347,
0.016743633896112442,
-0.04085342213511467,
0.04862010106444359,
-0.01458428893238306,
0.0472618043422699,
-0.0033260886557400227,
0.0033478562254458666,
-0.018093224614858627,
0.01178062241524458,
-0.02115810289978981,
-0.00155964819714427,
-0.012424943037331104,
-0.018023569136857986,
-0.029621344059705734,
-0.007444517686963081,
0.007440164219588041,
-0.0035502947866916656,
-0.011562946252524853,
0.040261343121528625,
0.11019627749919891,
-0.004111898597329855,
0.036221276968717575,
-0.014114108867943287,
-0.03425348922610283,
-0.00498042581602931,
-0.039982717484235764,
-0.04774939641356468,
-0.034775909036397934,
0.009699640795588493,
-0.06592969596385956,
-0.036395419389009476,
-0.00003089978054049425,
-0.0305094625800848,
-0.004484124481678009,
-0.004680032841861248,
0.03475849702954292,
0.047087661921978,
0.013591686263680458,
0.01844150759279728,
0.00009394077642355114,
0.02620818465948105,
-0.0446845181286335,
0.036430247128009796,
-0.011484582908451557,
0.024466777220368385,
0.0018175941659137607,
-0.07244255393743515,
-0.0005548016051761806,
0.0009942349279299378,
-0.046843864023685455,
0.01584680937230587,
-0.007466285023838282,
-0.0029734536074101925,
0.026068871840834618,
-0.010326547548174858,
-0.03587299585342407,
0.0661734864115715,
0.04969977214932442,
0.0044057611376047134,
0.037614405155181885,
-0.010056628845632076,
0.049351491034030914,
-0.004479771014302969,
-0.03284294903278351,
0.02908150665462017,
0.002729656407609582,
0.03566402941942215,
-0.07181564718484879,
-0.023091064766049385,
-0.06349172443151474,
0.01756209507584572,
-0.013957382179796696,
0.014775843359529972,
0.00926428847014904,
0.06370069086551666,
-0.04095790907740593,
0.004331751260906458,
0.03016117960214615,
-0.03042239136993885,
0.00694821635261178,
0.03444504365324974,
-0.08651313185691833,
0.04994357004761696,
-0.013382717967033386,
0.006695712450891733,
-0.003289083717390895,
-0.02262088470160961,
0.005180687643587589,
-0.006408379878848791,
-0.0159861221909523,
-0.00692644901573658,
-0.023230377584695816,
0.0024162030313163996,
-0.060148220509290695,
-0.0037440264131873846,
-0.05924268811941147,
0.045590050518512726,
-0.006878559943288565,
0.051058072596788406,
0.02483247220516205,
-0.04339587688446045,
-0.0501873679459095,
-0.012651326134800911,
0.01510671153664589,
0.028001835569739342,
-0.012355287559330463,
0.01391384657472372,
-0.017501147463917732,
0.07829368859529495,
-0.03547247499227524,
-0.03038756363093853,
-0.049351491034030914,
0.03545505926012993,
0.042803797870874405,
0.007892929948866367,
-0.010683535598218441,
0.005023960955440998,
0.020687922835350037,
0.010936039499938488,
-0.0037570870481431484,
-0.025529036298394203,
0.020583437755703926,
-0.07606468349695206,
0.010805434547364712,
-0.016726220026612282,
0.0014214239781722426,
-0.05917303264141083,
0.0028493781574070454,
-0.10441479831933975,
-0.012372701428830624,
-0.014889035373926163,
-0.018006155267357826,
0.0035677088890224695,
0.04747077077627182,
-0.011737087741494179,
-0.04621695727109909,
-0.0771791860461235,
-0.02497178502380848,
0.04099273681640625,
-0.026922162622213364,
-0.0016728397458791733,
0.038937874138355255,
0.06955181807279587,
-0.004251211415976286,
-0.07209427654743195,
-0.06237722188234329,
0.02497178502380848,
-0.006212471518665552,
0.024710575118660927,
-0.03266880661249161,
0.0553419329226017,
-0.02000877447426319,
-0.016125435009598732,
0.0371268093585968,
0.023125892505049706
] |
723,277
|
exponent_server_sdk
|
publish
|
Sends a single push notification
Args:
push_message: A single PushMessage object.
Returns:
A PushTicket object which contains the results.
|
def publish(self, push_message):
"""Sends a single push notification
Args:
push_message: A single PushMessage object.
Returns:
A PushTicket object which contains the results.
"""
return self.publish_multiple([push_message])[0]
|
(self, push_message)
|
[
-0.020122338086366653,
-0.03795604407787323,
-0.08506660908460617,
0.030931711196899414,
0.006817475892603397,
-0.024752411991357803,
-0.027199484407901764,
-0.001600940595380962,
0.03526250272989273,
0.0036926160100847483,
0.0075788856483995914,
-0.0017516820225864649,
0.006183701567351818,
0.003963290713727474,
-0.05598340556025505,
0.016046816483139992,
0.05316663160920143,
-0.02959374338388443,
0.04052635282278061,
0.03112536482512951,
0.03679412603378296,
0.05239201709628105,
0.05869455263018608,
0.027516372501850128,
0.005382681265473366,
0.032093632966279984,
0.040737610310316086,
0.025016484782099724,
-0.00804541353136301,
-0.022815877571702003,
-0.06309576332569122,
-0.03471675142645836,
0.023960193619132042,
0.017613647505640984,
-0.00393688352778554,
0.039575688540935516,
-0.042005158960819244,
0.012640277855098248,
-0.08168647438287735,
0.013766988180577755,
-0.002119183074682951,
0.046899303793907166,
0.03806167468428612,
-0.03230489045381546,
0.029136016964912415,
-0.008925655856728554,
-0.004718098323792219,
0.07901053875684738,
0.008784817531704903,
0.039681319147348404,
-0.025527024641633034,
0.03915317356586456,
-0.01570352166891098,
-0.014849686063826084,
-0.04777954891324043,
0.03873065859079361,
0.016266876831650734,
0.014268726110458374,
-0.001152017037384212,
0.04570217430591583,
-0.0009732178295962512,
0.018485086038708687,
0.060525454580783844,
0.0026759363245218992,
-0.0068834940902888775,
-0.004143740050494671,
0.06239156797528267,
0.023326419293880463,
-0.0011267100926488638,
0.015245795249938965,
0.037357479333877563,
0.007561280857771635,
-0.029558533802628517,
-0.02086174115538597,
0.016451727598905563,
0.04165306314826012,
0.025262951850891113,
0.04373043403029442,
-0.007878167554736137,
0.051018837839365005,
0.032885849475860596,
-0.014083875343203545,
0.018978022038936615,
0.02973458170890808,
0.024787621572613716,
0.048554159700870514,
0.018309038132429123,
-0.015562682412564754,
-0.0923198014497757,
-0.013943037018179893,
0.053342677652835846,
-0.00211588223464787,
-0.013934234157204628,
-0.010844584554433823,
0.04654720798134804,
-0.03425902873277664,
-0.035579390823841095,
0.017270352691411972,
-0.05284974351525307,
0.0167246013879776,
-0.03438226133584976,
-0.0009182026842609048,
-0.054997533559799194,
-0.052286386489868164,
0.026953017339110374,
-0.04235725477337837,
0.032093632966279984,
0.024629177525639534,
-0.022939112037420273,
0.06020856648683548,
0.01633729599416256,
-0.027868468314409256,
-0.06137048825621605,
-0.01957658678293228,
0.017525622621178627,
0.029664162546396255,
0.003945685923099518,
0.01580915041267872,
0.020280780270695686,
-0.019365329295396805,
0.002053164876997471,
-0.030033864080905914,
0.05098363012075424,
-0.016020407900214195,
0.006403762381523848,
0.04964566230773926,
0.005805197637528181,
-0.035561785101890564,
0.04415294900536537,
-0.02494606375694275,
-0.018872393295168877,
0.005299058277159929,
0.018097780644893646,
-0.02070329710841179,
-0.03682933375239372,
-0.022094080224633217,
0.009506615810096264,
-0.06534918397665024,
0.0862637385725975,
0.0003045087796635926,
-0.00019200282986275852,
0.009092901833355427,
0.007737329229712486,
0.03483998775482178,
-0.013722976669669151,
-0.015413041226565838,
-0.0011140565620735288,
0.025034088641405106,
-0.032093632966279984,
-0.010334043763577938,
0.022410966455936432,
-0.04429378733038902,
0.023256000131368637,
-0.012094528414309025,
0.02188282087445259,
0.0135117182508111,
0.040455933660268784,
0.007376429624855518,
-0.05115967616438866,
0.00888164434581995,
0.014964117668569088,
0.01319483108818531,
-0.0077329277992248535,
0.062321148812770844,
0.004288980271667242,
-0.0025747085455805063,
0.04746266081929207,
0.02549181506037712,
-0.018749158829450607,
0.07091231644153595,
-0.014761662110686302,
0.04204036667943001,
-0.05721574276685715,
-0.008195054717361927,
0.030702847987413406,
0.011936084367334843,
-0.018044965341687202,
0.05739179253578186,
0.012763512320816517,
-0.030808478593826294,
-0.09323525428771973,
-0.05094841867685318,
0.018097780644893646,
-0.02895996905863285,
-0.023731330409646034,
0.04950482398271561,
0.02330881357192993,
0.017490413039922714,
-0.016935860738158226,
-0.011654406785964966,
0.003254695562645793,
0.0075216698460280895,
0.04644158110022545,
0.049223143607378006,
0.026442475616931915,
-0.008661583065986633,
-0.019594192504882812,
0.00042581718298606575,
-0.04517403244972229,
0.06541959941387177,
-0.03411818668246269,
-0.020368805155158043,
0.01441836729645729,
-0.01543944887816906,
0.0011366127291694283,
-0.06781385838985443,
0.023836959153413773,
0.01788652129471302,
0.0017912929179146886,
-0.039681319147348404,
-0.04598385468125343,
0.04936398193240166,
0.012191354297101498,
0.03459351882338524,
-0.009541825391352177,
-0.02227012813091278,
0.044575467705726624,
-0.05626508221030235,
0.006394959520548582,
-0.018978022038936615,
0.024910854175686836,
-0.03999820724129677,
-0.03450549393892288,
0.011980096809566021,
0.013441299088299274,
0.03668849542737007,
-0.0020619675051420927,
-0.012024108320474625,
0.0032524950802326202,
-0.046124693006277084,
0.033766090869903564,
-0.008063018321990967,
0.0887284129858017,
0.006509391125291586,
-0.038906704634428024,
-0.09520699828863144,
-0.08471450954675674,
-0.020280780270695686,
-0.0018683141097426414,
0.02469959668815136,
0.06788428127765656,
-0.022675039246678352,
0.02381935529410839,
0.11105135828256607,
0.023062346503138542,
-0.0034637530334293842,
-0.02804451622068882,
0.022710248827934265,
0.026336846873164177,
0.006007653195410967,
-0.012261774390935898,
-0.021689169108867645,
-0.029664162546396255,
-0.01390782743692398,
0.0032524950802326202,
-0.0668984055519104,
0.0014237917494028807,
-0.008930057287216187,
0.04313186928629875,
0.016020407900214195,
0.011082249693572521,
0.030914107337594032,
0.0033999355509877205,
0.07774299383163452,
-0.05175824090838432,
-0.0504554845392704,
-0.10640367865562439,
0.04425857961177826,
-0.0008450325112789869,
0.07267279922962189,
0.08908051252365112,
-0.029417695477604866,
0.04116012528538704,
0.008864039555191994,
-0.029417695477604866,
-0.04077281802892685,
-0.025421395897865295,
0.06978560239076614,
-0.026354452595114708,
-0.04461067542433739,
-0.031706325709819794,
-0.005981246009469032,
0.05686364695429802,
-0.002111481036990881,
0.003712421515956521,
0.032216865569353104,
0.08020766824483871,
0.027217090129852295,
0.013863814994692802,
-0.03577304258942604,
-0.03290345519781113,
0.035702623426914215,
-0.007209183648228645,
-0.026794573292136192,
-0.03682933375239372,
0.026143193244934082,
-0.04256851226091385,
0.04749786853790283,
0.08386947959661484,
0.007816551253199577,
0.021389886736869812,
0.030280333012342453,
-0.054997533559799194,
-0.04978650063276291,
-0.0031710725743323565,
0.0376039482653141,
0.006522594951093197,
0.030914107337594032,
-0.03774478659033775,
-0.02330881357192993,
-0.05056111142039299,
0.04133617505431175,
-0.05946916341781616,
0.04834290221333504,
0.0077021196484565735,
0.01757843792438507,
0.011610395275056362,
0.021020183339715004,
0.046758465468883514,
0.0117160240188241,
0.004225162789225578,
-0.0432727076113224,
0.007495262660086155,
0.012728302739560604,
0.05147656425833702,
-0.02895996905863285,
-0.07344741374254227,
-0.026072774082422256,
-0.02019275724887848,
-0.007680113427340984,
0.026301637291908264,
-0.00013870692055206746,
0.05626508221030235,
-0.018344247713685036,
-0.013406088575720787,
-0.005576334428042173,
-0.008503139950335026,
0.013749383389949799,
-0.026037564501166344,
-0.012050515972077847,
-0.003884068690240383,
-0.010078773833811283,
0.006236515939235687,
0.04876541718840599,
0.0054619028232991695,
0.021653959527611732,
-0.002642927225679159,
-0.03781520575284958,
-0.009400987066328526,
-0.0884467363357544,
0.02663612924516201,
0.028643080964684486,
0.03350201994180679,
0.03589627891778946,
0.0409136600792408,
0.02969937212765217,
-0.014075073413550854,
0.0007030934793874621,
-0.014171899296343327,
-0.002021256135776639,
0.029787397012114525,
0.024523548781871796,
-0.009541825391352177,
-0.008657182566821575,
-0.06915182620286942,
0.05799035727977753,
-0.009295357391238213,
0.07661627978086472,
-0.003050039289519191,
0.0158267542719841,
0.01876676455140114,
0.0066590323112905025,
-0.05387082323431969,
0.05827203392982483,
-0.040068626403808594,
0.03925880417227745,
-0.0465824194252491,
0.0279212836176157,
-0.057180535048246384,
-0.033132318407297134,
-0.01287794392555952,
-0.00200915290042758,
-0.07073626667261124,
0.024611571803689003,
0.06728571653366089,
0.037392690777778625,
-0.00014730302791576833,
-0.04042072221636772,
0.026090379804372787,
0.0442233681678772,
-0.026424871757626534,
-0.046265531331300735,
-0.02137228101491928,
-0.009568233042955399,
-0.053201839327812195,
-0.04608948156237602,
0.01590597629547119,
0.03528010845184326,
-0.04439941793680191,
-0.029400089755654335,
0.04193473979830742,
-0.014136689715087414,
-0.019840659573674202,
-0.02175958827137947,
-0.018080174922943115,
-0.04158264398574829,
-0.030702847987413406,
-0.020298385992646217,
-0.005862412974238396,
0.018678739666938782,
0.04429378733038902,
-0.02712906524538994,
-0.07605292648077011,
-0.05633550137281418,
-0.0016262475401163101,
-0.03672370687127113,
-0.009541825391352177,
-0.008996075950562954,
-0.03445268049836159,
-0.008437121286988258,
-0.028132541105151176,
-0.015034536831080914,
-0.019224490970373154,
0.028414219617843628,
-0.04633595049381256,
-0.023502467200160027,
0.010166797786951065,
0.05510316416621208,
0.0030896503012627363,
0.05182866379618645,
0.005985646974295378,
-0.03362525254487991,
-0.010756559669971466,
0.014955315738916397,
0.010052366182208061,
0.0087276017293334,
-0.020615272223949432,
-0.03682933375239372,
-0.0050789974629879,
0.019858265295624733,
-0.018995627760887146,
0.03341399505734444,
-0.02728750929236412,
-0.06644067913293839,
0.010915003716945648,
-0.036970172077417374,
-0.05580735579133034,
-0.07207423448562622,
-0.004586061928421259,
0.019242094829678535,
0.0021466906182467937,
-0.02417145110666752,
0.0486597903072834,
-0.02561504952609539,
0.050490692257881165,
-0.08351738005876541,
-0.040350303053855896,
-0.003476956859230995,
0.01969982124865055,
-0.04309665784239769,
0.020756112411618233,
-0.011566382832825184,
-0.09753083437681198,
0.020298385992646217,
-0.014523996971547604,
-0.04052635282278061,
-0.03837855905294418,
-0.005937233567237854,
-0.03901233524084091,
-0.022463781759142876,
0.0857003852725029,
-0.005712771788239479,
-0.022305337712168694,
0.0015184178482741117,
-0.025456605479121208,
-0.029259251430630684,
-0.03408297896385193,
0.015104956924915314,
-0.03612514212727547,
-0.037885624915361404,
-0.07232069969177246,
-0.009981947019696236,
0.03228728473186493,
0.03163590654730797,
-0.030966920778155327,
0.012411415576934814,
0.10717829316854477,
-0.0735178291797638,
0.05700448527932167,
-0.024470733478665352,
-0.016205258667469025,
0.016372505575418472,
0.050631534308195114,
0.03299148008227348,
-0.00835349876433611,
-0.018978022038936615,
-0.07816550880670547,
0.014955315738916397,
-0.030843688175082207,
-0.04249809309840202,
0.00018993976118508726,
0.0028651885222643614,
-0.02094976417720318,
-0.01813299022614956,
0.06313097476959229,
-0.0185202956199646,
0.052708905190229416,
0.0313718318939209,
0.025914331898093224,
0.0010716948891058564,
-0.0011938285315409303,
-0.019735030829906464,
-0.05975084379315376,
-0.004863338079303503,
0.04696972668170929,
0.010430870577692986,
0.03550897166132927,
-0.013353274203836918,
-0.06112401932477951,
-0.00463007390499115,
0.07267279922962189,
-0.02288629859685898,
-0.020544853061437607,
0.05123009905219078,
0.00965625699609518,
-0.0427093543112278,
-0.03461112454533577,
-0.010853386484086514,
-0.03381890431046486,
0.05739179253578186,
0.012446625158190727,
0.03837855905294418,
-0.05703969672322273,
-0.0010804972844198346,
0.008604367263615131,
-0.004046913702040911,
-0.08070060610771179,
0.0017527822637930512,
0.004770912695676088,
-0.024752411991357803,
-0.0684124231338501,
-0.011214286088943481,
-0.0414770133793354,
-0.02200605534017086,
-0.07858802378177643,
0.0047797150909900665,
0.034540705382823944,
-0.00270454422570765,
0.012385007925331593,
-0.04373043403029442,
-0.006645828951150179,
-0.00906649511307478,
0.008701194077730179,
0.05890581011772156,
0.05175824090838432,
0.013265250250697136,
-0.01332686748355627,
-0.003386731958016753,
0.026600919663906097,
0.01731436513364315,
-0.03330836445093155,
-0.0010546401608735323,
0.03265698626637459,
0.03251614794135094,
-0.06341265141963959,
0.014374355785548687,
-0.030843688175082207,
0.03459351882338524,
-0.028590267524123192,
-0.006975919473916292,
0.010184402577579021,
-0.021425096318125725,
-0.005369477439671755,
-0.02109060436487198,
0.04813164472579956,
-0.033132318407297134,
-0.0021598944440484047,
-0.0013610745081678033,
-0.009603442624211311,
0.019647005945444107,
-0.015192980878055096,
0.0034857592545449734,
0.03471675142645836,
-0.06172258406877518,
-0.03640681877732277,
0.0340653732419014,
0.02059766836464405,
-0.03353722766041756,
-0.0005421742098405957,
0.04274456202983856,
0.018168199807405472,
-0.05929311737418175,
-0.013001177459955215,
0.02739313803613186,
0.019206885248422623,
0.012305785901844501,
0.05739179253578186,
0.007966192439198494,
-0.006940709892660379,
-0.016002804040908813,
0.016178851947188377,
0.06485624611377716,
-0.009172123856842518,
-0.019735030829906464,
0.06218031048774719,
0.012886745855212212,
-0.04154743254184723,
-0.042005158960819244,
0.024752411991357803,
0.0015525271883234382,
0.02059766836464405,
0.017208734527230263,
-0.028467033058404922,
0.05975084379315376,
-0.000377954012947157,
0.04901188611984253,
-0.05982126295566559,
0.044857144355773926,
-0.04207557812333107,
0.018097780644893646,
0.04570217430591583,
0.017428796738386154,
-0.08133438229560852,
-0.021037789061665535,
-0.0008653881377540529,
-0.0037916433066129684,
0.014303935691714287,
-0.05633550137281418,
-0.04052635282278061,
0.014893698506057262,
-0.004770912695676088,
0.04570217430591583,
0.057567842304706573,
-0.014101480133831501,
0.03012188896536827,
-0.04105449840426445,
-0.03820251300930977,
0.016117235645651817,
-0.011751233600080013,
0.017780892550945282,
-0.0018143992638215423,
0.00031193584436550736,
-0.04788517579436302,
-0.07302489131689072,
0.01980544999241829,
0.039575688540935516,
-0.0017065695719793439,
-0.0659477487206459,
-0.005052590277045965,
-0.0346287302672863,
0.023361628875136375,
0.01609082706272602,
0.03947006165981293,
0.07506705820560455,
0.0006112182163633406,
0.03654765710234642,
0.005796395242214203,
0.006791068706661463,
-0.018749158829450607,
-0.03770957514643669,
0.00032844036468304694,
0.005831604823470116,
-0.03689975291490555,
0.010386858135461807,
-0.05880017951130867,
0.007306010462343693,
0.014691242948174477,
-0.04968087002635002,
-0.0519695021212101,
0.041089706122875214,
0.04763871058821678,
0.02330881357192993,
0.07774299383163452,
-0.004163545556366444,
0.04038551449775696,
-0.02471720241010189,
0.04647678881883621,
0.05429334193468094,
-0.03515687584877014,
0.04126575589179993,
-0.0065357983112335205,
-0.012869141064584255,
-0.03538573905825615,
0.05869455263018608,
-0.02455875836312771,
0.017464006319642067,
0.034311842173337936,
-0.006522594951093197,
-0.0537651963531971,
-0.0044584269635379314,
0.03612514212727547,
-0.07281363755464554,
-0.018361853435635567,
-0.0023348424583673477,
-0.03668849542737007,
0.03577304258942604,
-0.05665238946676254,
-0.00366840953938663,
-0.01635489985346794,
-0.030597219243645668,
0.040455933660268784,
-0.006038461811840534,
0.01802736148238182,
-0.03876586630940437,
0.0018760162638500333,
0.02726990357041359,
-0.003864263417199254,
0.018467482179403305,
0.039822157472372055,
-0.03348441421985626,
-0.06960955262184143,
0.0013577736681327224,
0.030209913849830627,
-0.0066722361370921135,
0.015395436435937881,
-0.009594639763236046,
-0.07232069969177246,
0.08992554247379303,
-0.03357243910431862,
0.05813119560480118,
-0.06908141076564789,
-0.017464006319642067,
-0.004841332323849201,
-0.038941916078329086,
0.04964566230773926,
0.010941410437226295,
0.08612290024757385,
0.012473031878471375,
0.005272651091217995,
0.00698472186923027,
-0.031319018453359604,
0.021548328921198845,
-0.0007438046741299331,
0.02198845148086548,
0.027199484407901764,
-0.007658107206225395,
0.03510405868291855,
-0.003864263417199254,
0.05696927756071091,
-0.013722976669669151,
-0.018696345388889313,
-0.05661717802286148,
-0.006500588729977608,
-0.06644067913293839,
0.0194181427359581,
-0.061581745743751526,
0.026424871757626534,
0.006975919473916292,
-0.0391179658472538,
-0.017331968992948532,
0.02006952278316021,
0.03395974636077881,
-0.05510316416621208,
-0.04003341495990753,
0.016407715156674385,
0.01621406152844429,
-0.02739313803613186,
0.01499052532017231,
-0.006443372927606106,
-0.026812177151441574,
-0.02225252240896225,
-0.0011278103338554502,
-0.0034197410568594933,
0.028150146827101707,
-0.0337308831512928,
0.08344696462154388,
0.022956717759370804,
0.05918748676776886
] |
723,278
|
exponent_server_sdk
|
publish_multiple
|
Sends multiple push notifications at once
Args:
push_messages: An array of PushMessage objects.
Returns:
An array of PushTicket objects which contains the results.
|
def publish_multiple(self, push_messages):
"""Sends multiple push notifications at once
Args:
push_messages: An array of PushMessage objects.
Returns:
An array of PushTicket objects which contains the results.
"""
push_tickets = []
for start in itertools.count(0, self.max_message_count):
chunk = list(
itertools.islice(push_messages, start,
start + self.max_message_count))
if not chunk:
break
push_tickets.extend(self._publish_internal(chunk))
return push_tickets
|
(self, push_messages)
|
[
-0.032319601625204086,
-0.024329081177711487,
-0.1274908185005188,
0.020020993426442146,
-0.060277488082647324,
0.019055694341659546,
-0.03560876473784447,
-0.042973630130290985,
0.010805973783135414,
0.02915557101368904,
-0.009161392226815224,
0.004826489370316267,
0.0034522805362939835,
-0.0015295055927708745,
-0.047943126410245895,
0.0062074013985693455,
0.040971532464027405,
-0.05895467475056648,
0.0550219789147377,
0.06102827563881874,
0.029334329068660736,
0.060205984860658646,
0.009974745102226734,
0.028029389679431915,
0.00044689717469736934,
0.03553726151585579,
0.028762301430106163,
0.010207131505012512,
0.008821750059723854,
0.009076481685042381,
-0.051554057747125626,
-0.006909030023962259,
0.04011349007487297,
-0.008866439573466778,
-0.014291771687567234,
0.02390005998313427,
0.001898195710964501,
0.0008826219127513468,
-0.07815337926149368,
0.0383974052965641,
0.044653963297605515,
0.023113520815968513,
0.05148255452513695,
-0.03850466012954712,
0.014059384353458881,
-0.007892203517258167,
0.00865192897617817,
0.09223957359790802,
0.00722632696852088,
0.0024758102372288704,
-0.003510377136990428,
0.008584894239902496,
-0.017527306452393532,
0.01027863472700119,
-0.011869588866829872,
0.0650324746966362,
0.003925991710275412,
0.017053596675395966,
-0.006015236023813486,
0.027725500985980034,
-0.026992589235305786,
-0.006913498975336552,
0.09524272382259369,
-0.004723703023046255,
-0.017786506563425064,
-0.013120900839567184,
0.03512611612677574,
-0.01826915703713894,
-0.0451902411878109,
0.006095677148550749,
0.027797004207968712,
0.038254398852586746,
-0.07436368614435196,
-0.020789656788110733,
-0.015829097479581833,
0.07579375803470612,
0.018340660259127617,
0.0667843148112297,
-0.039326950907707214,
0.024472089484333992,
0.033982060849666595,
-0.006605139933526516,
0.022666623815894127,
0.06395991891622543,
0.07786735892295837,
0.030120868235826492,
0.01058252528309822,
0.02259512059390545,
-0.05727434158325195,
-0.013978943228721619,
0.02618817426264286,
0.018680302426218987,
0.006739209406077862,
-0.01307621132582426,
0.03287375718355179,
-0.026635071262717247,
-0.07886841148138046,
0.022773878648877144,
-0.06531848758459091,
0.005429800599813461,
-0.02819027379155159,
-0.07196831703186035,
-0.006770492065697908,
-0.0684288963675499,
-0.0024780447129160166,
-0.04404618591070175,
0.007203982211649418,
0.0030500730499625206,
-0.043009381741285324,
0.06009873002767563,
0.019967366009950638,
0.011574636213481426,
0.018027830868959427,
-0.0016378781292587519,
-0.00612249132245779,
0.045583512634038925,
0.019824357703328133,
0.03782537579536438,
0.017366424202919006,
-0.02552676573395729,
-0.016660327091813087,
-0.0006228629499673843,
0.038647666573524475,
0.007507872302085161,
-0.020038869231939316,
0.05784636735916138,
0.03484010323882103,
-0.028798053041100502,
0.049265943467617035,
-0.003952805418521166,
-0.014854861423373222,
0.01853729411959648,
0.023399535566568375,
-0.020414263010025024,
-0.005729221738874912,
-0.05981271713972092,
-0.0026299897581338882,
-0.06446044892072678,
0.08523222804069519,
-0.07879690825939178,
-0.050910525023937225,
-0.01242374163120985,
-0.002417713636532426,
0.05827539041638374,
-0.023792805150151253,
-0.0018568576779216528,
0.02286325953900814,
0.032319601625204086,
-0.035716019570827484,
-0.016517318785190582,
-0.0012580155162140727,
-0.013987881131470203,
-0.02390005998313427,
-0.023614047095179558,
0.023614047095179558,
0.025741277262568474,
0.01631174609065056,
0.031693946570158005,
-0.03911244124174118,
0.02225547842681408,
-0.01558777317404747,
0.02152256667613983,
-0.04486847668886185,
0.07557924836874008,
-0.004737109877169132,
-0.01758093386888504,
0.04186532646417618,
0.018394287675619125,
-0.04150781035423279,
0.07515022903680801,
0.018501542508602142,
0.041293296962976456,
0.006743678357452154,
-0.046942077577114105,
0.019055694341659546,
-0.005429800599813461,
-0.018161900341510773,
0.018680302426218987,
0.011297560296952724,
-0.020360635593533516,
-0.13507020473480225,
-0.045976780354976654,
0.030657146126031876,
-0.05827539041638374,
-0.030085116624832153,
0.06142154708504677,
0.02293476276099682,
-0.0009820564882829785,
-0.02990635856986046,
-0.029709722846746445,
-0.021057793870568275,
-0.010975793935358524,
0.013326473534107208,
0.0477643683552742,
0.0019853406120091677,
0.012003657408058643,
-0.05509348213672638,
0.0032355354633182287,
-0.03979172185063362,
0.05881166830658913,
-0.06807137280702591,
0.0036891361232846975,
0.03457196429371834,
-0.07321963459253311,
0.01659776084125042,
-0.04175807163119316,
-0.004386295564472675,
-0.01631174609065056,
0.019073570147156715,
-0.024972613900899887,
-0.013219217769801617,
0.047943126410245895,
0.01213772688060999,
0.04168656840920448,
0.0015049262437969446,
0.021379560232162476,
0.06324488669633865,
-0.019091447815299034,
-0.006649829912930727,
-0.037968382239341736,
0.04572651907801628,
-0.04422494396567345,
-0.05673806369304657,
0.021665574982762337,
0.007275485899299383,
0.05205458030104637,
0.03725334629416466,
0.001197684439830482,
0.010090937837958336,
0.0007630768814124167,
0.01563246361911297,
0.017768630757927895,
0.08558974415063858,
0.02720709890127182,
-0.02052151784300804,
-0.060849517583847046,
-0.06252985447645187,
-0.038325902074575424,
0.04082852602005005,
0.05848990008234978,
0.026313304901123047,
-0.05369916185736656,
0.008053086698055267,
0.05287687107920647,
0.041329048573970795,
0.020789656788110733,
-0.017527306452393532,
0.026402683928608894,
0.028422659263014793,
0.03215872123837471,
0.01394319161772728,
-0.002357382560148835,
-0.013871688395738602,
-0.021325932815670967,
-0.003959509078413248,
-0.07829638570547104,
0.010662966407835484,
-0.022738127037882805,
0.04247310757637024,
-0.006743678357452154,
0.04579802230000496,
0.026688698679208755,
-0.004167316015809774,
0.07579375803470612,
-0.039326950907707214,
-0.008213969878852367,
-0.055272240191698074,
0.026098795235157013,
-0.02981697954237461,
0.09173905104398727,
0.07436368614435196,
-0.008929004892706871,
0.038647666573524475,
0.01950259320437908,
-0.0077760107815265656,
0.013049397617578506,
0.003320446005091071,
0.028386907652020454,
-0.039612963795661926,
-0.06238684430718422,
0.013004707172513008,
-0.01244161743670702,
0.03778962418437004,
-0.0238821841776371,
0.05495047569274902,
-0.0008234080160036683,
0.04815763980150223,
0.004839896224439144,
0.0022076719906181097,
-0.038683418184518814,
-0.04082852602005005,
0.0029316453728824854,
0.027743376791477203,
-0.07565075159072876,
-0.050231240689754486,
-0.017437927424907684,
0.001145174028351903,
0.02550888992846012,
0.028315404430031776,
0.0003650591243058443,
0.002784169279038906,
0.012897452339529991,
-0.026331180706620216,
-0.006064394488930702,
-0.010841725394129753,
0.004066764377057552,
-0.0058722286485135555,
0.0019965129904448986,
0.011655078269541264,
-0.057596106082201004,
-0.018135087564587593,
0.04479697346687317,
-0.05287687107920647,
-0.002379727317020297,
0.017357485368847847,
0.0377538725733757,
0.009031792171299458,
0.02717134729027748,
0.0003717625804711133,
0.018009955063462257,
0.01042164210230112,
-0.03846890851855278,
-0.00463432352989912,
0.020807532593607903,
0.02788638323545456,
0.005367234814912081,
-0.04186532646417618,
-0.027797004207968712,
-0.028672922402620316,
-0.02021762728691101,
0.013397976756095886,
-0.022791756317019463,
0.03678857535123825,
0.008996039628982544,
-0.00604204973205924,
0.01627599447965622,
-0.014524158090353012,
0.018027830868959427,
0.028440535068511963,
-0.026438435539603233,
-0.03360666707158089,
-0.00799498986452818,
-0.004191895481199026,
0.052626609802246094,
-0.030085116624832153,
0.03725334629416466,
0.016383249312639236,
-0.007896672934293747,
-0.008075431920588017,
-0.06127854064106941,
0.04551200568675995,
0.02089691162109375,
0.022738127037882805,
0.07350564748048782,
0.04411768913269043,
0.031086167320609093,
-0.017822258174419403,
-0.008303348906338215,
0.011190305463969707,
0.017053596675395966,
-0.02384643256664276,
0.03725334629416466,
0.028601419180631638,
0.0169463399797678,
-0.01925233006477356,
0.031372182071208954,
0.007914548739790916,
0.04354565963149071,
-0.0017708300147205591,
0.02722497470676899,
-0.0005130937788635492,
-0.004594102967530489,
-0.021022042259573936,
0.07261185348033905,
-0.04458246007561684,
0.029673971235752106,
-0.05609453096985817,
0.03557301312685013,
-0.019162951037287712,
-0.007847514003515244,
-0.0392196960747242,
-0.05402093008160591,
-0.005152724217623472,
0.008665336295962334,
0.06535424292087555,
0.03378542512655258,
-0.0005178420688025653,
-0.03850466012954712,
0.04225859418511391,
0.048872675746679306,
-0.0006167180836200714,
-0.009188205935060978,
-0.0132728461176157,
-0.0228275079280138,
-0.028637170791625977,
-0.04333114996552467,
0.04415344074368477,
0.04079277440905571,
-0.015829097479581833,
-0.018841184675693512,
0.016356436535716057,
0.009492095559835434,
-0.0021629822440445423,
0.004853303078562021,
-0.024293329566717148,
-0.031104043126106262,
-0.01955622062087059,
-0.04737110063433647,
-0.006797305773943663,
0.011708705686032772,
0.017053596675395966,
-0.02061089687049389,
0.013237093575298786,
-0.06202932819724083,
-0.007065444253385067,
-0.020110372453927994,
-0.03616292029619217,
-0.03217659518122673,
0.01329072192311287,
0.008844095282256603,
0.003000914352014661,
-0.03721759468317032,
-0.00695372000336647,
0.029030440375208855,
-0.013853811658918858,
-0.05738159641623497,
-0.00847763940691948,
-0.000008837566383590456,
-0.008723432198166847,
0.03693158179521561,
0.011690829880535603,
-0.04168656840920448,
-0.017661375924944878,
-0.018152963370084763,
0.04515448957681656,
-0.00322883203625679,
-0.011261808685958385,
-0.01918082684278488,
0.0003240004589315504,
-0.004256695508956909,
-0.033320654183626175,
0.03639530390501022,
0.01891268789768219,
-0.06231534108519554,
0.043009381741285324,
-0.030675021931529045,
-0.02747523784637451,
-0.07300511747598648,
-0.023059893399477005,
0.014488406479358673,
-0.024793853983283043,
-0.0021909133065491915,
0.023006265982985497,
-0.034446831792593,
0.09624377638101578,
-0.0652112364768982,
-0.00078709761146456,
0.011735519394278526,
-0.02061089687049389,
-0.028976812958717346,
0.0417938232421875,
-0.03519761934876442,
-0.050588760524988174,
0.03718184307217598,
-0.03975597023963928,
-0.061207037419080734,
-0.060921020805835724,
-0.011458443477749825,
-0.0016970919677987695,
-0.006417443510144949,
0.05037424713373184,
0.030120868235826492,
0.025258628651499748,
0.004249991849064827,
-0.05398517847061157,
-0.039612963795661926,
-0.013174528256058693,
0.0016993264434859157,
-0.03936270251870155,
-0.03017449751496315,
-0.06113553047180176,
-0.020110372453927994,
0.05212608352303505,
-0.002274706494063139,
-0.0658547654747963,
-0.015552021563053131,
0.0823005810379982,
-0.0900229662656784,
0.0338033027946949,
-0.01795632764697075,
-0.029334329068660736,
-0.0068196505308151245,
0.04104303568601608,
0.030013613402843475,
0.005537055898457766,
-0.03249836340546608,
-0.04275912046432495,
0.031086167320609093,
0.01390744000673294,
-0.020360635593533516,
0.008678742684423923,
0.010868539102375507,
0.022023092955350876,
-0.02947733737528324,
0.05495047569274902,
-0.010081999935209751,
0.103608638048172,
-0.0009099943563342094,
-0.026420559734106064,
-0.02924495004117489,
-0.010466331616044044,
-0.011869588866829872,
-0.07772435247898102,
-0.021772829815745354,
0.03979172185063362,
-0.04111453890800476,
0.013353287242352962,
-0.002237837528809905,
-0.04751410707831383,
0.02552676573395729,
0.05444994941353798,
-0.012968955561518669,
-0.05809663236141205,
0.05352040380239487,
0.00257412763312459,
-0.03907668963074684,
-0.023453162983059883,
0.0020222095772624016,
-0.05977696552872658,
0.0464773066341877,
0.00996580719947815,
0.03918394446372986,
-0.010940042324364185,
-0.040614012628793716,
0.0012602499919012189,
-0.011887464672327042,
-0.05791787430644035,
0.009831737726926804,
0.043617162853479385,
0.002967397216707468,
-0.062136583030223846,
0.004254460800439119,
-0.030639270320534706,
-0.032337479293346405,
-0.0884498879313469,
0.024954738095402718,
0.0031282801646739244,
-0.021075669676065445,
0.04601253196597099,
-0.031318552792072296,
0.012432679533958435,
0.00993899255990982,
-0.006350408773869276,
0.0451902411878109,
0.004068998619914055,
-0.03714609146118164,
-0.01443477813154459,
-0.028279652819037437,
0.012727631255984306,
0.01558777317404747,
0.0004455005982890725,
-0.0011161256115883589,
-0.028333280235528946,
0.040006235241889954,
-0.030281752347946167,
0.011646140366792679,
-0.029262825846672058,
0.05834689363837242,
-0.024936862289905548,
0.030138744041323662,
-0.008222907781600952,
0.004325964488089085,
-0.028476286679506302,
-0.043938931077718735,
0.0848747119307518,
-0.05394942685961723,
-0.018769681453704834,
-0.04783587157726288,
-0.01058252528309822,
-0.03387480601668358,
0.010341200046241283,
0.010233945213258266,
-0.006980533711612225,
-0.06463920325040817,
0.02781488001346588,
0.04190107807517052,
-0.014381150715053082,
-0.0371103398501873,
0.008526798337697983,
0.054557204246520996,
0.009223957546055317,
0.01661563664674759,
-0.023381659761071205,
0.027618244290351868,
-0.022809632122516632,
0.009188205935060978,
0.03939845412969589,
0.011619326658546925,
-0.05205458030104637,
-0.032015711069107056,
0.012834887020289898,
0.062208086252212524,
-0.017652437090873718,
0.00260541052557528,
0.054199688136577606,
-0.027135595679283142,
-0.030692897737026215,
-0.052626609802246094,
0.010850663296878338,
0.08058449625968933,
-0.0132728461176157,
0.026760201901197433,
0.02427545376121998,
0.03693158179521561,
0.003999729640781879,
0.059884220361709595,
-0.05394942685961723,
0.052197590470314026,
-0.005599621683359146,
-0.003966212272644043,
0.036305926740169525,
0.023113520815968513,
-0.05748885124921799,
-0.0030254938174039125,
-0.023435287177562714,
0.0026232863310724497,
-0.030675021931529045,
-0.02953096479177475,
-0.01725916936993599,
0.04476122185587883,
0.0004921454819850624,
0.038039885461330414,
0.09595775604248047,
-0.02450784109532833,
0.005577276460826397,
-0.02717134729027748,
-0.05627329275012016,
0.009617227129638195,
0.014157702215015888,
-0.03786112740635872,
0.001821105950511992,
-0.006372753530740738,
-0.03693158179521561,
-0.09331212937831879,
0.023167148232460022,
-0.005121441558003426,
-0.02155832014977932,
-0.031354304403066635,
-0.006877747364342213,
0.00812012143433094,
0.039255447685718536,
0.036645568907260895,
0.01031438633799553,
0.0742206797003746,
-0.05899042636156082,
0.041972581297159195,
-0.018081460148096085,
0.00033936253748834133,
0.03782537579536438,
-0.06810712814331055,
0.0013987881829962134,
0.022630872204899788,
-0.0024556999560445547,
0.016785457730293274,
-0.03194420784711838,
0.008593832142651081,
0.014264957047998905,
-0.010654028505086899,
-0.025669774040579796,
0.046334296464920044,
0.05212608352303505,
0.012763382866978645,
0.0671418309211731,
0.0069671268574893475,
0.04915868863463402,
-0.0004010902193840593,
-0.0017484851414337754,
0.047943126410245895,
-0.04451095685362816,
0.02422182634472847,
-0.030120868235826492,
0.0010060772765427828,
-0.07436368614435196,
0.0637454092502594,
-0.04522599279880524,
-0.00730676855891943,
0.04222284257411957,
0.009778110310435295,
-0.027957886457443237,
0.015024682506918907,
0.07829638570547104,
-0.026438435539603233,
-0.002600941574200988,
0.017375361174345016,
-0.054235439747571945,
0.06281586736440659,
-0.011547822505235672,
-0.03750361129641533,
-0.015998918563127518,
-0.02717134729027748,
0.015400076285004616,
-0.004120391793549061,
-0.01955622062087059,
-0.015766531229019165,
0.0035036737099289894,
0.03519761934876442,
-0.026098795235157013,
0.018412163481116295,
0.030943159013986588,
-0.01079703588038683,
-0.06796412169933319,
0.0032623494043946266,
0.0172234158962965,
0.016007855534553528,
-0.01560564897954464,
-0.03489372879266739,
-0.0057917870581150055,
0.07068125903606415,
0.01629387028515339,
0.039326950907707214,
-0.011118801310658455,
0.04079277440905571,
-0.007905610837042332,
-0.017858009785413742,
-0.01660669781267643,
0.005072282627224922,
0.06703457236289978,
0.03789687901735306,
-0.007418492808938026,
0.004951620474457741,
-0.023042017593979836,
0.021790705621242523,
-0.0007669872720725834,
-0.0032176596578210592,
0.012745507061481476,
-0.05298412963747978,
0.015158751979470253,
-0.03022812493145466,
0.011529946699738503,
-0.030281752347946167,
0.00009643202793085948,
-0.13178104162216187,
-0.009840675629675388,
-0.037968382239341736,
-0.02227335423231125,
-0.06174331158399582,
0.07472120970487595,
0.012522058561444283,
-0.05076751857995987,
-0.03746785968542099,
-0.01110986340790987,
0.03843315690755844,
-0.07936893403530121,
-0.016991030424833298,
0.034339576959609985,
0.04876541718840599,
-0.016776518896222115,
-0.0456550158560276,
-0.06031323969364166,
-0.04740685224533081,
-0.004165081772953272,
0.04233010113239288,
-0.0014982227003201842,
0.035716019570827484,
-0.009545723907649517,
0.041936829686164856,
0.051947325468063354,
0.030603518709540367
] |
723,279
|
exponent_server_sdk
|
validate_and_get_receipts
|
Validate and get receipts for requests
|
def validate_and_get_receipts(self, response):
"""
Validate and get receipts for requests
"""
# Let's validate the response format first.
try:
response_data = response.json()
except ValueError:
# The response isn't json. First, let's attempt to raise a normal
# http error. If it's a 200, then we'll raise our own error.
response.raise_for_status()
raise PushServerError('Invalid server response', response)
# If there are errors with the entire request, raise an error now.
if 'errors' in response_data:
raise PushServerError('Request failed',
response,
response_data=response_data,
errors=response_data['errors'])
# We expect the response to have a 'data' field with the responses.
if 'data' not in response_data:
raise PushServerError('Invalid server response',
response,
response_data=response_data)
# Use the requests library's built-in exceptions for any remaining 4xx
# and 5xx errors.
response.raise_for_status()
# At this point, we know it's a 200 and the response format is correct.
# Now let's parse the responses per push notification.
response_data = response_data['data']
ret = []
for r_id, val in response_data.items():
ret.append(
PushTicket(push_message=PushMessage(),
status=val.get('status', PushTicket.ERROR_STATUS),
message=val.get('message', ''),
details=val.get('details', None),
id=r_id))
return ret
|
(self, response)
|
[
0.001911254832521081,
0.016951201483607292,
-0.06787822395563126,
-0.005038554314523935,
-0.036123406141996384,
-0.019420001655817032,
-0.029056580737233162,
0.0007491292781196535,
0.02136567234992981,
0.017143933102488518,
0.034030891954898834,
0.026395048946142197,
0.0738987922668457,
-0.03667406737804413,
-0.020447902381420135,
-0.017997458577156067,
0.024375956505537033,
-0.0762849971652031,
0.07037456333637238,
0.0068190270103514194,
0.04765059053897858,
0.051211535930633545,
0.006617117673158646,
0.10264333337545395,
0.0002912484051194042,
0.059471458196640015,
0.03201179951429367,
0.010600237175822258,
0.041336335241794586,
0.005093620158731937,
-0.011141721159219742,
0.026523536071181297,
0.03164469078183174,
0.03821592032909393,
-0.06541860848665237,
0.008030482567846775,
-0.0003803007130045444,
-0.045411232858896255,
-0.11497815698385239,
0.07052140682935715,
-0.040455278009176254,
0.06138041988015175,
0.04533781111240387,
-0.04717334732413292,
-0.003141065826639533,
-0.03975777328014374,
-0.0684288889169693,
0.08370057493448257,
-0.009563157334923744,
0.004696684889495373,
-0.002336870413273573,
0.07213667780160904,
-0.015987543389201164,
-0.024522799998521805,
0.028634406626224518,
0.03854631632566452,
-0.016079319640994072,
0.03731650486588478,
0.016473961994051933,
0.0014718727907165885,
-0.041556600481271744,
0.04199713096022606,
0.0028106688987463713,
-0.017235709354281425,
-0.005859958007931709,
-0.003457696409896016,
0.043795958161354065,
-0.04397951066493988,
-0.027991967275738716,
-0.009728356264531612,
0.007507354021072388,
0.03320489823818207,
-0.052422989159822464,
-0.018814273178577423,
0.04016159102320671,
0.006566640455275774,
0.05781947448849678,
-0.02410062588751316,
-0.0026041707023978233,
-0.028964802622795105,
0.026266561821103096,
0.018869340419769287,
0.047870852053165436,
0.023660095408558846,
0.03913369029760361,
0.03337009623646736,
0.09339221566915512,
0.021769490092992783,
-0.04423648864030838,
0.06975048035383224,
-0.007539475802332163,
-0.007557831238955259,
-0.026156429201364517,
-0.03979448229074478,
0.01075625792145729,
-0.015418526716530323,
-0.02692735567688942,
-0.0021579053718596697,
-0.05881066620349884,
0.024743063375353813,
0.008920718915760517,
0.017263242974877357,
-0.09375932812690735,
0.026890644803643227,
0.027202686294913292,
-0.006814437918365002,
0.007911172695457935,
-0.007176957093179226,
0.032544102519750595,
0.032305482774972916,
-0.024651287123560905,
-0.025532346218824387,
-0.016639159992337227,
-0.018832629546523094,
0.03065349906682968,
0.016005899757146835,
0.0006292456528171897,
0.009489735588431358,
-0.038583025336265564,
-0.06640979647636414,
0.03792223334312439,
-0.06185765936970711,
0.06472110003232956,
0.027257751673460007,
0.016620803624391556,
0.01940164528787136,
-0.009498913772404194,
-0.03571958467364311,
0.07841422408819199,
0.01419789344072342,
-0.028836315497756004,
0.009673289954662323,
-0.016969555988907814,
-0.0018504526233300567,
-0.05748907849192619,
-0.004334166180342436,
-0.0009986478835344315,
-0.006075633689761162,
0.06127028912305832,
-0.04809111729264259,
0.01303232554346323,
0.010471749119460583,
-0.04027172178030014,
-0.03887671232223511,
-0.0355360321700573,
-0.021916333585977554,
-0.007920349948108196,
0.022925879806280136,
-0.029827507212758064,
-0.02656024694442749,
-0.02149415947496891,
-0.025624122470617294,
0.053047072142362595,
0.01667587086558342,
0.020558035001158714,
0.042180683463811874,
-0.017712950706481934,
-0.03261752426624298,
-0.0009126070071943104,
0.006685950327664614,
0.01841045543551445,
0.00945302564650774,
0.020668167620897293,
-0.02878125011920929,
0.024063915014266968,
0.005740647669881582,
0.03647215664386749,
-0.033296674489974976,
-0.030176259577274323,
0.05007350072264671,
-0.03593984991312027,
0.05469905957579613,
-0.0036412503104656935,
-0.062334898859262466,
-0.05106469243764877,
0.0021888799965381622,
0.07070495933294296,
-0.005258819088339806,
-0.016345473006367683,
-0.019603556022047997,
-0.0652717649936676,
-0.03421444445848465,
0.01764870621263981,
0.040088169276714325,
0.013693120330572128,
0.00485041132196784,
0.009283238090574741,
-0.004318105056881905,
-0.017070511355996132,
0.011261031031608582,
-0.024137336760759354,
0.023182855919003487,
0.047760721296072006,
0.06685032695531845,
0.02272397093474865,
-0.0037651490420103073,
0.005680992733687162,
0.04992665722966194,
-0.03175482153892517,
-0.06409701704978943,
-0.030928829684853554,
-0.0014408980496227741,
-0.03197508677840233,
0.012922193855047226,
-0.04669610783457756,
-0.02718432992696762,
-0.0030447000171989202,
0.015124840661883354,
0.004593436140567064,
-0.0008001802489161491,
-0.028836315497756004,
0.06138041988015175,
-0.006630884017795324,
0.012545907869935036,
-0.010903100483119488,
0.025018393993377686,
0.08333346247673035,
-0.037628546357154846,
-0.009085917845368385,
-0.05161535367369652,
0.005859958007931709,
-0.0762849971652031,
-0.0642438605427742,
0.0002142418088624254,
-0.003005694830790162,
0.08700454235076904,
-0.006236243527382612,
0.05396484211087227,
0.01346367783844471,
0.017979104071855545,
0.011986068449914455,
0.018832629546523094,
0.08744507282972336,
-0.035866428166627884,
-0.015895767137408257,
-0.03333338722586632,
-0.016373006626963615,
-0.030965540558099747,
0.05943474918603897,
0.038840003311634064,
0.06336279958486557,
-0.03052501194179058,
0.03261752426624298,
0.046879664063453674,
0.017878148704767227,
0.03680255264043808,
0.008209447376430035,
0.016767647117376328,
-0.019603556022047997,
-0.029588887467980385,
0.0009923381730914116,
-0.01953013427555561,
0.06828204542398453,
-0.021163763478398323,
0.018089234828948975,
-0.06369319558143616,
0.02692735567688942,
-0.03348023071885109,
0.10433202981948853,
-0.03740828111767769,
0.06839217990636826,
0.0723569393157959,
0.012160444632172585,
0.04001474753022194,
-0.05958159267902374,
-0.026652025058865547,
-0.007131068501621485,
0.04273134469985962,
-0.020925143733620644,
0.054405372589826584,
0.03461826220154762,
-0.003170893294736743,
0.0496329702436924,
0.015776457265019417,
-0.01420707069337368,
0.02384364977478981,
0.012573441490530968,
0.05113811418414116,
-0.048237960785627365,
-0.03788552060723305,
-0.044163066893815994,
-0.030323103070259094,
0.09728355705738068,
0.036986108869314194,
0.013436144217848778,
-0.03891342505812645,
0.04845822602510452,
-0.002001884626224637,
0.00827369187027216,
0.00021553241822402924,
0.0022221491672098637,
0.04005145654082298,
-0.0003097471781075001,
-0.02667037956416607,
-0.01830032281577587,
0.03839947283267975,
-0.029203424230217934,
0.030598433688282967,
0.005598393734544516,
-0.02296259067952633,
-0.00783775094896555,
0.03920711204409599,
0.04445675015449524,
-0.06773138791322708,
-0.00845265667885542,
-0.010067930445075035,
0.03825262933969498,
0.008617854677140713,
-0.019823819398880005,
-0.0338289812207222,
0.035132214426994324,
0.05411168560385704,
0.01464760024100542,
-0.06079304590821266,
0.006002211943268776,
0.030451590195298195,
0.017198998481035233,
0.05572696030139923,
-0.018061703070998192,
0.02705584280192852,
0.027936901897192,
0.01031572837382555,
0.006828204728662968,
0.03828934207558632,
0.0553598515689373,
-0.018621541559696198,
-0.02151251584291458,
-0.010627769865095615,
-0.016272051259875298,
0.03037816844880581,
0.03781210258603096,
-0.03740828111767769,
-0.022448640316724777,
-0.0021751136519014835,
0.04794427379965782,
0.012949726544320583,
-0.0018779856618493795,
-0.03806907683610916,
-0.017878148704767227,
-0.021696070209145546,
0.0025169826112687588,
-0.04853164777159691,
0.01989724114537239,
0.007787273731082678,
-0.010563526302576065,
-0.0033682137727737427,
0.028322365134954453,
-0.009508091025054455,
-0.04265792295336723,
0.004740279167890549,
-0.013169991783797741,
0.03419608995318413,
0.05444208160042763,
0.05018363147974014,
0.06222476810216904,
-0.060976602137088776,
-0.06049936264753342,
0.024908263236284256,
0.020594745874404907,
0.04853164777159691,
-0.0026339981704950333,
0.022448640316724777,
-0.03184659779071808,
0.016712581738829613,
-0.045264389365911484,
-0.04005145654082298,
0.007947883568704128,
0.04199713096022606,
-0.011380340903997421,
0.008094726130366325,
-0.008888596668839455,
0.029607241973280907,
-0.04324529692530632,
0.01228893268853426,
-0.013335189782083035,
0.05297365039587021,
0.003037816844880581,
-0.003542589955031872,
-0.03278272598981857,
0.02531208097934723,
-0.022393574938178062,
0.0031204160768538713,
-0.05558011680841446,
0.0009556274162605405,
0.06802506744861603,
-0.02272397093474865,
-0.04423648864030838,
-0.030066126957535744,
0.03828934207558632,
0.02826729789376259,
0.018373744562268257,
-0.026596957817673683,
0.0020546563901007175,
0.034012533724308014,
-0.026266561821103096,
-0.05334075912833214,
0.020301060751080513,
0.01211455650627613,
-0.009205227717757225,
-0.03920711204409599,
0.029111646115779877,
0.01803416945040226,
-0.03507714718580246,
-0.022044822573661804,
-0.005905846133828163,
0.02347654290497303,
-0.009342893026769161,
-0.024632930755615234,
-0.02149415947496891,
0.028964802622795105,
0.044052932411432266,
-0.003648133482784033,
0.04159330949187279,
-0.10712204873561859,
-0.05411168560385704,
0.011940180324018002,
-0.04346556216478348,
0.041005939245224,
0.015078951604664326,
-0.010233129374682903,
0.007002580910921097,
-0.00670430576428771,
-0.04548465460538864,
0.03994132578372955,
-0.02966230735182762,
-0.002939156722277403,
0.01690531335771084,
0.027753347530961037,
-0.011270208284258842,
0.019071249291300774,
0.07723947614431381,
0.008796820417046547,
-0.03814249858260155,
-0.05444208160042763,
0.016015077009797096,
-0.012334820814430714,
-0.0345999076962471,
-0.0025743432343006134,
-0.05477248132228851,
0.01766706071794033,
-0.03188331052660942,
0.04889875650405884,
0.020209282636642456,
-0.020044084638357162,
0.043171875178813934,
-0.02421075850725174,
-0.027514727786183357,
-0.06556545197963715,
-0.049853235483169556,
-0.018621541559696198,
-0.060976602137088776,
-0.020447902381420135,
0.01531757228076458,
-0.015611258335411549,
0.004933010786771774,
-0.01690531335771084,
-0.01975039765238762,
0.020190928131341934,
-0.036270249634981155,
-0.0018034169916063547,
-0.01347285509109497,
-0.00426074443385005,
-0.021200474351644516,
0.0073926327750086784,
-0.037628546357154846,
0.0033360919915139675,
-0.05767263099551201,
0.020943498238921165,
-0.03151620179414749,
0.02198975533246994,
-0.0015189084224402905,
-0.030965540558099747,
0.0026156429667025805,
0.0600588321685791,
-0.0454479418694973,
-0.010233129374682903,
0.02867111749947071,
-0.03136935830116272,
-0.04779743403196335,
-0.036875974386930466,
-0.04739361256361008,
0.003076822031289339,
0.01817183569073677,
-0.02766157127916813,
-0.021714424714446068,
-0.06839217990636826,
0.042327526956796646,
-0.06193108111619949,
-0.031094027683138847,
0.0013468266697600484,
-0.03645380213856697,
-0.038840003311634064,
-0.0223385076969862,
0.03887671232223511,
-0.027845123782753944,
-0.035003725439310074,
-0.007805629167705774,
0.0412629134953022,
0.02470635250210762,
-0.05176219716668129,
0.02753308229148388,
-0.0035311179235577583,
0.06457425653934479,
0.029074935242533684,
0.028340719640254974,
0.03533412143588066,
0.003698610933497548,
0.05469905957579613,
0.026395048946142197,
-0.01026066206395626,
-0.036875974386930466,
0.012123734690248966,
0.0034898181911557913,
-0.008590321987867355,
-0.015960009768605232,
0.03533412143588066,
0.01916302554309368,
0.018493054434657097,
-0.04530109837651253,
0.057746052742004395,
0.07103535532951355,
0.018740851432085037,
0.022448640316724777,
-0.035260703414678574,
0.0038798702880740166,
0.005093620158731937,
-0.020925143733620644,
-0.054405372589826584,
-0.01419789344072342,
-0.04845822602510452,
0.0042492724023759365,
0.040345143526792526,
-0.02112705260515213,
-0.08729822933673859,
-0.0415198877453804,
-0.008071782067418098,
-0.04537452012300491,
-0.0420338399708271,
-0.0021957634016871452,
-0.028010323643684387,
0.00422632833942771,
0.015023885294795036,
-0.027221040800213814,
-0.012059490196406841,
-0.12547743320465088,
0.017134755849838257,
0.025770965963602066,
0.01526250597089529,
-0.022668905556201935,
-0.035022079944610596,
-0.02654189243912697,
-0.010636948049068451,
0.06622624397277832,
0.012444953434169292,
-0.0399780347943306,
-0.03507714718580246,
0.02852427400648594,
-0.002877207240089774,
0.05227614566683769,
-0.025770965963602066,
-0.0028152577579021454,
-0.007314622402191162,
-0.04085909575223923,
-0.005350595805794001,
-0.052936941385269165,
0.03065349906682968,
0.004767812322825193,
0.05609406903386116,
-0.04585175961256027,
0.015877410769462585,
-0.013179169036448002,
0.026853933930397034,
-0.030580077320337296,
0.026119718328118324,
0.04952283948659897,
-0.05036718770861626,
-0.013390256091952324,
-0.011573072522878647,
0.003987708128988743,
0.03825262933969498,
0.029919283464550972,
-0.03337009623646736,
-0.00014189575449563563,
-0.06629966199398041,
-0.02740459516644478,
-0.005488261114805937,
-0.02110869623720646,
-0.0012630801647901535,
0.017602818086743355,
0.08157134801149368,
0.008590321987867355,
-0.018814273178577423,
-0.027881834656000137,
-0.019291512668132782,
0.01579481177031994,
0.04695308580994606,
0.03839947283267975,
-0.00034473714185878634,
-0.08370057493448257,
0.020319415256381035,
0.0020076206419616938,
0.06534518301486969,
0.0023380175698548555,
-0.08972114324569702,
0.05374457687139511,
-0.045044124126434326,
-0.009287826716899872,
-0.00016046625387389213,
-0.031167449429631233,
-0.0011403284734115005,
0.01290383841842413,
-0.02608300745487213,
0.017244888469576836,
0.03270930424332619,
-0.0021877328399568796,
0.01582234539091587,
-0.05814987048506737,
0.05238628014922142,
-0.02606465108692646,
-0.037004463374614716,
0.06020567566156387,
-0.01352792140096426,
-0.031185805797576904,
0.044897280633449554,
-0.054295238107442856,
0.014730199240148067,
-0.011802515015006065,
-0.003687138669192791,
-0.06574900448322296,
-0.0077322074212133884,
0.022650549188256264,
0.016125209629535675,
0.07173285633325577,
-0.011196787469089031,
0.038986846804618835,
0.03920711204409599,
-0.0017873559845611453,
-0.048605069518089294,
0.010517638176679611,
0.035279057919979095,
0.002728069666773081,
-0.07077837735414505,
-0.09331879764795303,
-0.0015625024680048227,
-0.02320121042430401,
0.03895013406872749,
-0.024302534759044647,
-0.014363091439008713,
0.05135837942361832,
-0.008076370693743229,
-0.004329577088356018,
0.025899453088641167,
0.0015212028520181775,
0.01903453841805458,
-0.03968435153365135,
0.025257015600800514,
0.008856475353240967,
0.04372253641486168,
-0.01606096513569355,
-0.030451590195298195,
-0.02865276113152504,
-0.0021292250603437424,
0.005589216016232967,
0.029111646115779877,
-0.01167402695864439,
0.010563526302576065,
0.049596261233091354,
-0.0446770153939724,
-0.05414839833974838,
0.05892079696059227,
0.04919244349002838,
0.011655671522021294,
0.06839217990636826,
0.02520194835960865,
0.021328961476683617,
-0.007576186675578356,
-0.006488630082458258,
0.013895029202103615,
0.03505879268050194,
0.03869315981864929,
-0.022522062063217163,
0.012977260164916515,
-0.06178423762321472,
0.04287818819284439,
0.009260294027626514,
-0.029588887467980385,
0.05693841725587845,
0.041005939245224,
-0.10117490589618683,
-0.022026466205716133,
0.03283778950572014,
-0.047136638313531876,
0.01666669361293316,
0.05187232792377472,
-0.08509558439254761,
0.004549841862171888,
-0.08281951397657394,
0.01334436796605587,
0.00970082264393568,
0.0017827671254053712,
0.04765059053897858,
-0.03691268712282181,
0.004818289540708065,
0.006722661200910807,
-0.014390625059604645,
-0.010664480738341808,
-0.046989794820547104,
-0.02101691998541355,
-0.05770934373140335,
0.004873355850577354,
-0.019970662891864777,
0.03828934207558632,
0.026523536071181297,
-0.07118219882249832,
0.004097840748727322,
0.013693120330572128,
-0.02321956679224968,
0.0012997909216210246,
0.013225057162344456,
0.025385502725839615,
-0.03595820814371109,
-0.01852058805525303,
-0.013601343147456646,
0.013729831203818321,
0.019970662891864777,
0.044420041143894196,
0.06317924708127975,
0.018190190196037292,
-0.004832055885344744,
-0.0013238823739811778,
-0.011095832102000713,
0.030066126957535744,
-0.010747079737484455,
-0.021292250603437424,
0.00660335086286068,
-0.071586012840271,
-0.012197155505418777,
0.021934689953923225,
0.045044124126434326,
-0.005272585432976484,
0.02136567234992981,
-0.08546268939971924,
-0.010710368864238262,
-0.03210357576608658,
-0.015354282222688198,
-0.007310033775866032,
0.019585199654102325,
-0.011582250706851482,
-0.06152726337313652,
-0.02112705260515213,
0.011380340903997421,
-0.01555619202554226,
-0.04944941774010658,
-0.02520194835960865,
-0.004960543941706419,
0.04827467352151871,
-0.03370049223303795,
-0.02237521857023239,
-0.012059490196406841,
0.04629229009151459,
-0.024302534759044647,
0.013069036416709423,
-0.025000039488077164,
0.05212930217385292,
-0.008764698170125484,
0.03880329057574272,
0.024155691266059875,
0.043171875178813934
] |
723,280
|
exponent_server_sdk
|
PushMessage
|
An object that describes a push notification request.
You can override this class to provide your own custom validation before
sending these to the Exponent push servers. You can also override the
get_payload function itself to take advantage of any hidden or new
arguments before this library updates upstream.
Args:
to: A token of the form ExponentPushToken[xxxxxxx]
data: A dict of extra data to pass inside of the push notification.
The total notification payload must be at most 4096 bytes.
title: The title to display in the notification. On iOS, this is
displayed only on Apple Watch.
body: The message to display in the notification.
sound: A sound to play when the recipient receives this
notification. Specify "default" to play the device's default
notification sound, or omit this field to play no sound.
ttl: The number of seconds for which the message may be kept around
for redelivery if it hasn't been delivered yet. Defaults to 0.
expiration: UNIX timestamp for when this message expires. It has
the same effect as ttl, and is just an absolute timestamp
instead of a relative one.
priority: Delivery priority of the message. 'default', 'normal',
and 'high' are the only valid values.
badge: An integer representing the unread notification count. This
currently only affects iOS. Specify 0 to clear the badge count.
category: ID of the Notification Category through which to display
this notification.
channel_id: ID of the Notification Channel through which to display
this notification on Android devices.
display_in_foreground: Displays the notification when the app is
foregrounded. Defaults to `false`. No longer available?
subtitle: The subtitle to display in the notification below the
title (iOS only).
mutable_content: Specifies whether this notification can be
intercepted by the client app. In Expo Go, defaults to true.
In standalone and bare apps, defaults to false. (iOS Only)
|
class PushMessage(
namedtuple('PushMessage', [
'to', 'data', 'title', 'body', 'sound', 'ttl', 'expiration',
'priority', 'badge', 'category', 'display_in_foreground',
'channel_id', 'subtitle', 'mutable_content'
])):
"""An object that describes a push notification request.
You can override this class to provide your own custom validation before
sending these to the Exponent push servers. You can also override the
get_payload function itself to take advantage of any hidden or new
arguments before this library updates upstream.
Args:
to: A token of the form ExponentPushToken[xxxxxxx]
data: A dict of extra data to pass inside of the push notification.
The total notification payload must be at most 4096 bytes.
title: The title to display in the notification. On iOS, this is
displayed only on Apple Watch.
body: The message to display in the notification.
sound: A sound to play when the recipient receives this
notification. Specify "default" to play the device's default
notification sound, or omit this field to play no sound.
ttl: The number of seconds for which the message may be kept around
for redelivery if it hasn't been delivered yet. Defaults to 0.
expiration: UNIX timestamp for when this message expires. It has
the same effect as ttl, and is just an absolute timestamp
instead of a relative one.
priority: Delivery priority of the message. 'default', 'normal',
and 'high' are the only valid values.
badge: An integer representing the unread notification count. This
currently only affects iOS. Specify 0 to clear the badge count.
category: ID of the Notification Category through which to display
this notification.
channel_id: ID of the Notification Channel through which to display
this notification on Android devices.
display_in_foreground: Displays the notification when the app is
foregrounded. Defaults to `false`. No longer available?
subtitle: The subtitle to display in the notification below the
title (iOS only).
mutable_content: Specifies whether this notification can be
intercepted by the client app. In Expo Go, defaults to true.
In standalone and bare apps, defaults to false. (iOS Only)
"""
def get_payload(self):
# Sanity check for invalid push token format.
if not PushClient.is_exponent_push_token(self.to):
raise ValueError('Invalid push token')
# There is only one required field.
payload = {
'to': self.to,
}
# All of these fields are optional.
if self.data is not None:
payload['data'] = self.data
if self.title is not None:
payload['title'] = self.title
if self.body is not None:
payload['body'] = self.body
if self.ttl is not None:
payload['ttl'] = self.ttl
if self.expiration is not None:
payload['expiration'] = self.expiration
if self.priority is not None:
payload['priority'] = self.priority
if self.subtitle is not None:
payload['subtitle'] = self.subtitle
if self.sound is not None:
payload['sound'] = self.sound
if self.badge is not None:
payload['badge'] = self.badge
if self.channel_id is not None:
payload['channelId'] = self.channel_id
if self.category is not None:
payload['categoryId'] = self.category
if self.mutable_content is not None:
payload['mutableContent'] = self.mutable_content
# here for legacy reasons
if self.display_in_foreground is not None:
payload['_displayInForeground'] = self.display_in_foreground
return payload
|
(to=None, data=None, title=None, body=None, sound=None, ttl=None, expiration=None, priority=None, badge=None, category=None, display_in_foreground=None, channel_id=None, subtitle=None, mutable_content=None)
|
[
0.03081047162413597,
-0.020344318822026253,
-0.06671682745218277,
0.010456353425979614,
0.03508317098021507,
-0.052644357085227966,
0.0020359018817543983,
0.01968773454427719,
0.01792377606034279,
-0.04707808792591095,
0.020834308117628098,
0.012367308139801025,
0.0414334200322628,
0.008320003747940063,
-0.04304058477282524,
0.03474998101592064,
0.030046090483665466,
-0.029458103701472282,
0.05135078728199005,
-0.010515151545405388,
0.055780284106731415,
0.0225982666015625,
0.006957835517823696,
0.06558004766702652,
0.008128907531499863,
0.05805382877588272,
0.030477279797196388,
0.02187308296561241,
0.04280538856983185,
-0.03955186530947685,
-0.04386376217007637,
-0.01800217479467392,
0.03868948668241501,
0.02297065779566765,
-0.05726984888315201,
-0.03267242759466171,
-0.03116326406598091,
-0.017619984224438667,
-0.09807608276605606,
0.004250649828463793,
-0.04786206781864166,
0.009520474821329117,
0.011857720091938972,
-0.04237419739365578,
0.05205637216567993,
0.002326220041140914,
-0.0165714081376791,
0.09909526258707047,
0.00790841318666935,
0.007834915071725845,
0.014680053107440472,
0.0217162873595953,
-0.01666940562427044,
0.00583086209371686,
-0.08349402993917465,
0.04386376217007637,
0.019589737057685852,
0.032633230090141296,
-0.024244626984000206,
0.04797966778278351,
-0.02651817351579666,
0.0841212123632431,
0.023735038936138153,
-0.05491790175437927,
-0.06173854321241379,
0.0037876104470342398,
0.0032192240469157696,
-0.00513507891446352,
-0.020501116290688515,
0.01397447008639574,
0.04731328412890434,
-0.030712474137544632,
-0.025655794888734818,
0.009706670418381691,
0.017061397433280945,
0.006159154698252678,
-0.014729051850736141,
0.009231382049620152,
0.00714893126860261,
-0.023245051503181458,
0.018962552770972252,
0.009564573876559734,
0.0011851595481857657,
0.023872235789895058,
0.061150554567575455,
0.04198220744729042,
0.024715015664696693,
0.029242509976029396,
-0.041943009942770004,
0.001172297284938395,
-0.025205004960298538,
0.009143183939158916,
-0.03963026404380798,
-0.01893315277993679,
0.026616171002388,
-0.05503550171852112,
-0.020403118804097176,
-0.005938659887760878,
-0.011808721348643303,
0.0374155156314373,
-0.01814917102456093,
-0.0009971264516934752,
-0.09972244501113892,
-0.021030303090810776,
-0.0035793655551970005,
-0.04672529548406601,
-0.01589522510766983,
0.00362836429849267,
0.01335708424448967,
0.007276328280568123,
-0.023637041449546814,
-0.016885001212358475,
-0.07279267907142639,
0.013200288638472557,
0.01666940562427044,
0.00502238143235445,
-0.01014276035130024,
-0.0040963031351566315,
-0.02892891690135002,
-0.016757603734731674,
-0.02922290936112404,
0.011367731727659702,
0.016032421961426735,
0.01554243266582489,
0.02232387289404869,
0.02608698420226574,
0.012955293990671635,
-0.060170579701662064,
0.06620723754167557,
-0.07843735069036484,
-0.02153989113867283,
0.008579697459936142,
0.02108910121023655,
0.023107854649424553,
-0.006110155489295721,
-0.008986387401819229,
0.04351097345352173,
0.0066001443192362785,
0.03147685527801514,
0.025753792375326157,
0.027890142053365707,
0.015660030767321587,
0.0056005679070949554,
-0.020403118804097176,
-0.043001383543014526,
-0.04856765270233154,
0.009608672931790352,
-0.019089948385953903,
-0.07318466901779175,
-0.013602078892290592,
-0.0035793655551970005,
-0.03132006153464317,
0.009593972936272621,
-0.01930554397404194,
0.05973938852548599,
0.001237833290360868,
0.005639766808599234,
-0.02867412194609642,
-0.006257152184844017,
0.015042644925415516,
-0.02859572507441044,
0.012847496196627617,
0.009936965070664883,
-0.005433971527963877,
0.01227911002933979,
-0.003951756749302149,
0.09729210287332535,
-0.049626026302576065,
-0.01970733515918255,
0.06742240488529205,
-0.03823869675397873,
0.029458103701472282,
0.0032461732625961304,
0.008947188965976238,
-0.06691282242536545,
0.03284882381558418,
-0.03329961374402046,
-0.003797410288825631,
-0.014278262853622437,
-0.026753367856144905,
-0.006894137244671583,
-0.018776357173919678,
-0.02367624081671238,
0.01227911002933979,
0.025577396154403687,
0.0645216777920723,
-0.0033000721596181393,
0.020775509998202324,
-0.016375413164496422,
-0.020226722583174706,
0.006448247469961643,
-0.020834308117628098,
0.057113051414489746,
0.045784518122673035,
-0.009299980476498604,
0.039610665291547775,
-0.01375887542963028,
0.014444858767092228,
-0.0033025220036506653,
0.05244836211204529,
-0.01353348046541214,
-0.006311051081866026,
0.02859572507441044,
-0.010799344629049301,
-0.045588523149490356,
-0.06746160984039307,
0.021285098046064377,
-0.00900108739733696,
-0.024597419425845146,
-0.030477279797196388,
-0.06091536208987236,
0.001776208053342998,
0.007516422308981419,
0.022382671013474464,
0.0426877923309803,
-0.04903804138302803,
0.02955610118806362,
0.0014319912297651172,
-0.01835496723651886,
-0.029987292364239693,
0.08372922241687775,
-0.032652828842401505,
-0.032731227576732635,
-0.023735038936138153,
0.01384707260876894,
0.04374616593122482,
0.012259510345757008,
0.009878166951239109,
0.008844290859997272,
-0.0015385636361315846,
0.027752945199608803,
-0.02671416848897934,
0.03555355966091156,
0.02751775085926056,
-0.03814069926738739,
-0.003701862646266818,
-0.015581632032990456,
-0.022382671013474464,
0.062404926866292953,
-0.014836849644780159,
0.07941732555627823,
-0.028458528220653534,
0.00027224983205087483,
0.09901686012744904,
0.032731227576732635,
-0.0369059294462204,
0.032123640179634094,
0.030398881062865257,
-0.022167077288031578,
0.012955293990671635,
-0.01397447008639574,
-0.034436386078596115,
-0.01865875907242298,
-0.012475105002522469,
-0.027262955904006958,
-0.050684403628110886,
-0.0017100595869123936,
-0.022735463455319405,
0.05503550171852112,
-0.03851309046149254,
0.022186676040291786,
0.010338756255805492,
0.03396599739789963,
0.08827631175518036,
0.024617018178105354,
-0.011916518211364746,
-0.011965516954660416,
-0.00917748361825943,
0.006159154698252678,
0.05922980234026909,
0.07071512937545776,
-0.00676674023270607,
0.029438504949212074,
0.025675393640995026,
-0.008315104059875011,
-0.03333881124854088,
-0.046411704272031784,
0.024813013151288033,
-0.011161936447024345,
-0.02018752321600914,
-0.02734135463833809,
-0.060601767152547836,
0.05922980234026909,
0.009584173560142517,
0.023695839568972588,
0.005806362722069025,
-0.006801039446145296,
-0.020520715042948723,
0.029438504949212074,
-0.02375463955104351,
-0.008143607527017593,
0.026596572250127792,
-0.029144512489438057,
-0.0022968207485973835,
0.01923694647848606,
0.021814284846186638,
-0.03108486533164978,
0.03222163766622543,
0.10183919221162796,
-0.03723911941051483,
0.06589364260435104,
0.07075432687997818,
-0.0025993885938078165,
-0.042570196092128754,
0.0011600475991144776,
0.00790841318666935,
0.012788698077201843,
0.038454290479421616,
-0.03373080492019653,
0.006017057690769434,
0.02222587540745735,
0.0459413155913353,
0.027556948363780975,
-0.013170888647437096,
0.03261363133788109,
0.027988139539957047,
0.05726984888315201,
-0.007800615858286619,
0.03688632696866989,
0.06409048289060593,
0.025792989879846573,
-0.0421782024204731,
-0.07334146648645401,
0.036945126950740814,
0.05170357972383499,
-0.046215709298849106,
-0.02118709869682789,
-0.04974362626671791,
0.026753367856144905,
-0.013014093041419983,
-0.014101866632699966,
-0.008604196831583977,
0.012749498710036278,
-0.04151181876659393,
0.008275904692709446,
0.006869637873023748,
-0.007183230482041836,
0.05930819734930992,
-0.021030303090810776,
-0.02536180056631565,
-0.01960933767259121,
-0.023166652768850327,
-0.02538140118122101,
0.04778367280960083,
-0.017796380445361137,
-0.09948725253343582,
0.06256172060966492,
-0.050410009920597076,
0.032123640179634094,
-0.01785517856478691,
-0.02232387289404869,
0.0002607657224871218,
0.0333976112306118,
0.05182117596268654,
0.0800837054848671,
-0.043197378516197205,
-0.049978818744421005,
-0.023539043962955475,
0.04672529548406601,
0.014925047755241394,
0.0730670765042305,
0.027360953390598297,
0.018158970400691032,
-0.004757787566632032,
-0.06467847526073456,
-0.0008948413887992501,
0.02153989113867283,
0.0544867143034935,
0.03377000242471695,
-0.0018215320305898786,
0.03404439613223076,
-0.034181591123342514,
-0.04892044514417648,
0.005492770113050938,
-0.04723488539457321,
0.02990889362990856,
-0.060523372143507004,
0.044530149549245834,
-0.10967900604009628,
-0.02010912448167801,
0.0464509017765522,
0.016885001212358475,
-0.04511813446879387,
0.05723064765334129,
0.06510966271162033,
0.01325908675789833,
0.006399248726665974,
-0.009520474821329117,
0.02473461627960205,
0.050410009920597076,
-0.03535756468772888,
-0.017482787370681763,
-0.022461069747805595,
0.02438182383775711,
-0.04127662628889084,
-0.026302577927708626,
-0.01901155151426792,
0.030438080430030823,
-0.02251986786723137,
-0.041237425059080124,
0.03518116846680641,
-0.03431878983974457,
0.024538621306419373,
0.001760283368639648,
0.008212205953896046,
0.04531412944197655,
0.021833883598446846,
0.016150018200278282,
-0.01259270217269659,
0.07212629914283752,
0.05589788034558296,
-0.009608672931790352,
-0.060876160860061646,
-0.056956253945827484,
0.000793781247921288,
-0.04797966778278351,
0.006619743537157774,
0.023009857162833214,
0.009206882677972317,
-0.019099749624729156,
-0.0409238338470459,
-0.03357400745153427,
0.005982758477330208,
0.029536502435803413,
-0.03574955463409424,
0.03424039110541344,
-0.029438504949212074,
0.012837696820497513,
0.007403725292533636,
0.03143765777349472,
0.0010455128503963351,
0.03402479737997055,
-0.029242509976029396,
0.0011729097459465265,
0.009883066639304161,
-0.0155032342299819,
-0.01956033706665039,
-0.07224389165639877,
-0.037925105541944504,
0.02161828987300396,
-0.049978818744421005,
0.012426106259226799,
0.045588523149490356,
0.017943376675248146,
0.015454234555363655,
-0.023735038936138153,
-0.04004185274243355,
-0.015856025740504265,
-0.01571882888674736,
0.005801463034003973,
0.05162518098950386,
0.00981936790049076,
0.08992267400026321,
-0.0003132863494101912,
-0.023833036422729492,
-0.09000107645988464,
-0.041943009942770004,
0.0016953599406406283,
-0.007389025297015905,
-0.043550170958042145,
0.026910163462162018,
-0.004253099672496319,
-0.09180422872304916,
0.007335126865655184,
-0.050880398601293564,
0.051585979759693146,
0.0225982666015625,
-0.0439421609044075,
-0.07620300352573395,
0.0021877982653677464,
0.05366353318095207,
-0.007913312874734402,
0.006556045264005661,
0.01903115026652813,
-0.0482148602604866,
0.009446976706385612,
0.036945126950740814,
0.012984693050384521,
-0.0685591772198677,
-0.08169087022542953,
0.046568501740694046,
-0.015444435179233551,
0.0003852533991448581,
0.004826385993510485,
-0.002817433560267091,
0.0217162873595953,
0.0494692325592041,
-0.02395063452422619,
0.030065689235925674,
0.0036381641402840614,
-0.08976587653160095,
0.005311474669724703,
0.0338875986635685,
0.01762978360056877,
0.019325142726302147,
0.0021890231873840094,
-0.05009641498327255,
-0.0005010131862945855,
-0.015307238325476646,
-0.03571035712957382,
-0.01407246757298708,
-0.023245051503181458,
-0.0027120858430862427,
-0.00605135690420866,
0.04472614452242851,
-0.06365929543972015,
-0.027106160297989845,
0.07906453311443329,
0.03931667283177376,
-0.03116326406598091,
-0.060601767152547836,
0.03553396090865135,
0.0173259899020195,
-0.021912282332777977,
0.013513880781829357,
-0.0056691658683121204,
-0.00942737702280283,
0.01795317605137825,
-0.031202463433146477,
-0.051860373467206955,
0.06236572563648224,
0.036415938287973404,
0.022931458428502083,
0.007340026553720236,
-0.015248440206050873,
0.0033564206678420305,
-0.025087406858801842,
-0.0341423936188221,
0.014768251217901707,
0.018374565988779068,
0.017512185499072075,
-0.0007582571124657989,
-0.0036651133559644222,
0.016953598707914352,
0.009128483943641186,
0.01573842763900757,
-0.010867943055927753,
0.03165325149893761,
-0.05621147155761719,
-0.02197108045220375,
-0.0024046183098107576,
0.02430342510342598,
-0.04856765270233154,
-0.04974362626671791,
-0.11061978340148926,
0.004586291499435902,
0.01639501191675663,
0.05719145014882088,
-0.025969386100769043,
-0.05405552312731743,
-0.026322178542613983,
0.0068108392879366875,
0.024813013151288033,
0.029810896143317223,
-0.00025892825215123594,
-0.023715440183877945,
0.013396283611655235,
0.011005139909684658,
0.05138998478651047,
0.00408650329336524,
-0.05201717093586922,
0.005855361465364695,
-0.024852212518453598,
-0.012475105002522469,
-0.07596780359745026,
0.04386376217007637,
-0.03714112192392349,
0.04527493193745613,
-0.06405128538608551,
0.023637041449546814,
-0.02455822005867958,
0.016257815062999725,
0.004887634422630072,
-0.012043915688991547,
0.06256172060966492,
-0.03574955463409424,
-0.02651817351579666,
0.04703889042139053,
-0.0003076208522543311,
-0.008109308779239655,
0.03377000242471695,
0.021735886111855507,
0.014474257826805115,
-0.1014472022652626,
-0.023205852136015892,
-0.0009542524348944426,
-0.009515575133264065,
-0.017110396176576614,
-0.0033049718476831913,
0.021775085479021072,
0.0074821230955421925,
-0.012965093366801739,
0.02018752321600914,
0.0043363976292312145,
-0.0134354829788208,
0.030869271606206894,
0.026635771617293358,
-0.012778897769749165,
-0.00741352466866374,
0.027654945850372314,
-0.015395436435937881,
0.0507236011326313,
-0.012906295247375965,
-0.05617227405309677,
0.05405552312731743,
-0.0038072101306170225,
-0.03333881124854088,
0.024244626984000206,
-0.0013854423305019736,
-0.04633330553770065,
0.0282429326325655,
-0.011014940217137337,
-0.0537419319152832,
0.02340184710919857,
0.0031824747566133738,
-0.025048207491636276,
-0.02716495841741562,
0.06612883508205414,
0.012827897444367409,
-0.04566692188382149,
0.006605044007301331,
0.0008838166249915957,
-0.05844581872224808,
0.0045519922859966755,
-0.0164440106600523,
-0.016591008752584457,
-0.013121889904141426,
-0.04331497848033905,
-0.0916474387049675,
-0.048724450170993805,
0.06710881739854813,
0.04374616593122482,
0.06279691308736801,
-0.03535756468772888,
0.0012016965774819255,
-0.024538621306419373,
-0.010740546509623528,
0.012543703429400921,
0.0020138523541390896,
0.04245259612798691,
0.005257575772702694,
-0.06111135706305504,
-0.0650312602519989,
-0.03984585776925087,
-0.03367200493812561,
0.06173854321241379,
0.008658095262944698,
-0.09117704629898071,
0.021383095532655716,
-0.0158168263733387,
0.002378893783316016,
0.03606314957141876,
-0.015758028253912926,
-0.04288378730416298,
-0.020403118804097176,
0.04884204640984535,
-0.0328880213201046,
0.02867412194609642,
-0.0014466908760368824,
-0.019697533920407295,
-0.017521986737847328,
-0.010789545252919197,
0.021559489890933037,
0.017414188012480736,
-0.01960933767259121,
0.0259889867156744,
0.01674780435860157,
-0.024264227598905563,
0.04049264267086983,
0.007560521364212036,
0.02859572507441044,
0.01325908675789833,
0.05009641498327255,
0.022206274792551994,
0.02787054143846035,
-0.0006657717749476433,
0.026635771617293358,
0.03823869675397873,
0.009598873555660248,
-0.002780684269964695,
0.06656002998352051,
0.04206060618162155,
-0.04860685020685196,
0.035161569714546204,
-0.000005244407475402113,
-0.01702219806611538,
0.057740237563848495,
0.008217105641961098,
-0.04601971432566643,
-0.07553661614656448,
0.04276619106531143,
-0.04727408289909363,
-0.012141913175582886,
-0.020050326362252235,
-0.07149910926818848,
-0.050253212451934814,
-0.10340715944766998,
0.009280380792915821,
0.042295802384614944,
-0.04127662628889084,
-0.002660637255758047,
-0.02430342510342598,
-0.0013143939431756735,
-0.01647341065108776,
0.05170357972383499,
0.048802848905324936,
-0.03525956720113754,
-0.013376683928072453,
0.02395063452422619,
-0.0217162873595953,
-0.032731227576732635,
0.036670733243227005,
0.011857720091938972,
-0.0893738865852356,
0.015336637385189533,
-0.009128483943641186,
0.0036920628044754267,
0.01742398925125599,
-0.059190601110458374,
0.05350673571228981,
-0.020775509998202324,
0.03725871816277504,
0.043001383543014526,
-0.01304349210113287,
0.01762978360056877,
0.007663419004529715,
0.02794894017279148,
-0.020834308117628098,
0.002530790166929364,
0.004826385993510485,
0.004951333161443472,
0.08341562747955322,
-0.01712019555270672,
0.04374616593122482,
0.021598689258098602,
-0.053467538207769394,
0.01215171255171299,
-0.010505352169275284,
0.04190380871295929,
0.07667338848114014,
0.0065168458968400955,
0.0020359018817543983,
-0.0043363976292312145,
0.01795317605137825,
-0.028360530734062195,
-0.001088386750780046,
0.03500477224588394,
0.002252721693366766,
-0.00725672859698534,
-0.008065209724009037,
-0.003233923576772213,
0.012984693050384521,
-0.047470077872276306,
-0.03296642005443573,
0.04049264267086983,
-0.005507470108568668,
-0.04186461120843887,
-0.022284673526883125,
-0.0014626154443249106,
-0.021912282332777977,
-0.0386698879301548,
-0.0048508853651583195,
0.0025209905579686165,
0.038179896771907806,
-0.043824564665555954,
0.08474839478731155,
-0.02330384962260723,
0.057034652680158615
] |
723,282
|
namedtuple_PushMessage
|
__new__
|
Create new instance of PushMessage(to, data, title, body, sound, ttl, expiration, priority, badge, category, display_in_foreground, channel_id, subtitle, mutable_content)
|
from builtins import function
|
(_cls, to=None, data=None, title=None, body=None, sound=None, ttl=None, expiration=None, priority=None, badge=None, category=None, display_in_foreground=None, channel_id=None, subtitle=None, mutable_content=None)
|
[
0.009987438097596169,
-0.03448875993490219,
0.019406022503972054,
0.011531468480825424,
0.012425380758941174,
0.06140364706516266,
-0.0008573431405238807,
0.005846999119967222,
-0.012457886710762978,
-0.02476949617266655,
-0.015155876986682415,
0.03673166781663895,
0.0068709347397089005,
0.005513813346624374,
-0.06845743209123611,
-0.00024112776736728847,
0.03549644351005554,
0.0906914621591568,
-0.028101351112127304,
-0.002236812375485897,
-0.06644206494092941,
0.018658388406038284,
0.036829184740781784,
-0.01482269074767828,
0.03001919947564602,
0.1003132089972496,
0.037869375199079514,
-0.04498816654086113,
0.010848844423890114,
-0.052789583802223206,
-0.010718820616602898,
-0.04229017719626427,
0.004028700292110443,
-0.0029092782642692327,
-0.0009629873093217611,
-0.04924644157290459,
0.023127948865294456,
0.04050235450267792,
-0.061208613216876984,
-0.07209809124469757,
0.03507386893033981,
0.01135268621146679,
-0.011247041635215282,
0.003183546708896756,
-0.008768467232584953,
-0.00689125107601285,
-0.02332298457622528,
-0.0341637022793293,
0.01773197017610073,
0.010336876846849918,
0.006306144874542952,
-0.037056729197502136,
0.06715719401836395,
-0.014066928997635841,
-0.015350911766290665,
0.07482858747243881,
0.01045877393335104,
0.019666070118546486,
-0.03968970477581024,
0.04989656060934067,
-0.03315601870417595,
0.023810572922229767,
-0.026394791901111603,
-0.041997626423835754,
0.028020087629556656,
0.03588651493191719,
-0.04352540150284767,
-0.017244379967451096,
-0.057340409606695175,
0.029889175668358803,
-0.06107858940958977,
0.014042549766600132,
0.0058510624803602695,
-0.030230488628149033,
0.055910151451826096,
-0.01782948710024357,
-0.09316191077232361,
-0.01740691065788269,
0.009174791164696217,
-0.022039001807570457,
0.01517212949693203,
-0.036829184740781784,
-0.012864210642874241,
0.033643607050180435,
-0.027678774669766426,
-0.040534857660532,
-0.03799939900636673,
0.001794935204088688,
-0.012669174931943417,
0.009207296185195446,
-0.05431736260652542,
-0.016456112265586853,
-0.0481412410736084,
0.027044910937547684,
0.003520795376971364,
-0.006586508359760046,
0.01877215877175331,
-0.02301417849957943,
0.03377363085746765,
-0.04784868657588959,
0.061858732253313065,
0.01950354129076004,
0.007000958546996117,
-0.05464242026209831,
0.040567364543676376,
0.04784868657588959,
0.00470929266884923,
0.015342785976827145,
-0.023599283769726753,
0.007021274883300066,
-0.046515945345163345,
0.010028070770204067,
0.016919322311878204,
-0.014497632160782814,
-0.004473624750971794,
-0.03289597108960152,
0.02541961520910263,
0.004266399424523115,
0.02199024148285389,
0.012766692787408829,
0.01708185113966465,
0.04313533008098602,
0.0028523928485810757,
-0.010182473808526993,
0.10252360999584198,
0.05483745411038399,
0.02296542003750801,
0.013953158631920815,
0.05096925422549248,
-0.0007715072715654969,
0.004384233616292477,
0.028020087629556656,
-0.04573580250144005,
0.03250590339303017,
-0.04560577869415283,
-0.010588797740638256,
-0.01585475355386734,
0.0447281189262867,
0.005964832846075296,
0.03832445666193962,
-0.041997626423835754,
0.0013682952849194407,
0.04118497669696808,
-0.009126031771302223,
-0.036406610161066055,
-0.014050675556063652,
-0.003236368764191866,
0.02959662303328514,
0.0005774876335635781,
0.011173903942108154,
-0.0058510624803602695,
0.031904540956020355,
0.031937047839164734,
0.020478717982769012,
0.005278145894408226,
0.05018911138176918,
0.05301712453365326,
-0.05262705311179161,
0.016634894534945488,
-0.053439702838659286,
0.012547277845442295,
0.07105790078639984,
-0.06007090583443642,
-0.014522011391818523,
0.017016839236021042,
-0.01410756167024374,
0.023989355191588402,
-0.036959208548069,
0.021795207634568214,
0.004071364179253578,
-0.014660161919891834,
-0.04261523857712746,
0.018317075446248055,
0.04560577869415283,
0.0633540004491806,
0.037869375199079514,
-0.04524821415543556,
0.09023638069629669,
0.005241576582193375,
0.029060276225209236,
-0.0034639101941138506,
0.0009589241235516965,
-0.11110517382621765,
0.00977614987641573,
0.015789741650223732,
0.05022161826491356,
0.040534857660532,
-0.02060874179005623,
0.026573574170470238,
-0.03565897420048714,
-0.029434094205498695,
0.011986550875008106,
0.052497029304504395,
0.013205522671341896,
-0.006318334490060806,
-0.06793733686208725,
-0.05919324606657028,
0.0022510336712002754,
-0.009597367607057095,
0.0010102224769070745,
-0.005107489880174398,
0.01781323365867138,
0.022819142788648605,
0.05613769218325615,
0.00741134537383914,
0.004229830577969551,
-0.02790631726384163,
0.006436168681830168,
-0.06276889890432358,
-0.02229904755949974,
0.04632091149687767,
-0.059778351336717606,
0.010133714415133,
0.07339832931756973,
-0.001040188828483224,
0.007716088555753231,
0.02121010050177574,
-0.011060132645070553,
0.009288561530411243,
0.009759897366166115,
0.07073283940553665,
0.028458917513489723,
0.009719264693558216,
-0.024184390902519226,
0.09621746838092804,
0.005960769485682249,
-0.01062130369246006,
0.018057027831673622,
0.004146534018218517,
-0.011677744798362255,
0.0557476207613945,
-0.012782946228981018,
-0.00940233189612627,
-0.023404249921441078,
0.006716531701385975,
-0.033221032470464706,
0.03910459950566292,
0.04918142780661583,
0.007691708859056234,
0.007752657402306795,
-0.0006435152608901262,
0.040534857660532,
0.04989656060934067,
0.04599585011601448,
0.0240706205368042,
0.006147678475826979,
0.013774375431239605,
0.03998225927352905,
-0.061891235411167145,
-0.0030718077905476093,
0.015692224726080894,
-0.027126174420118332,
0.015383417718112469,
-0.029466599225997925,
0.007716088555753231,
0.007472293917089701,
0.019942371174693108,
0.002507017692551017,
0.018382087349891663,
-0.004485814366489649,
-0.00873596128076315,
-0.047946203500032425,
-0.033269789069890976,
0.0019818441942334175,
-0.04541074484586716,
-0.03209957852959633,
-0.03102688305079937,
0.048596322536468506,
0.014326975680887699,
-0.0019249588949605823,
0.04576830938458443,
-0.024119378998875618,
-0.004380170255899429,
0.005623520817607641,
-0.06228130683302879,
0.01916222833096981,
-0.011433950625360012,
0.014140067622065544,
0.046580955386161804,
-0.03591902181506157,
0.01183214783668518,
0.01706559769809246,
-0.08210990577936172,
0.013684984296560287,
-0.0823049396276474,
0.007569811772555113,
0.01062130369246006,
-0.051359325647354126,
0.01885342225432396,
-0.004233893472701311,
0.03734927996993065,
0.0041018384508788586,
0.04173757880926132,
0.008687201887369156,
0.0656944289803505,
0.07456853985786438,
-0.022120265290141106,
-0.06517433375120163,
0.06276889890432358,
0.005591014865785837,
0.006761227734386921,
-0.03910459950566292,
-0.01851211115717888,
0.02723994478583336,
-0.024119378998875618,
-0.045085687190294266,
0.06062350794672966,
-0.008874110877513885,
-0.08041960000991821,
0.017992015928030014,
-0.030945617705583572,
-0.007049717474728823,
-0.053829774260520935,
-0.04079490527510643,
0.04300530627369881,
0.03131943568587303,
-0.023778067901730537,
0.018008269369602203,
-0.02342050150036812,
0.05054667592048645,
-0.017959510907530785,
-0.00454676290974021,
0.07053780555725098,
0.05470743402838707,
-0.020478717982769012,
-0.04014478996396065,
0.01984485238790512,
-0.04498816654086113,
0.056690290570259094,
0.03520389273762703,
-0.09251179546117783,
0.015919765457510948,
0.07924938946962357,
0.040664881467819214,
-0.014887702651321888,
0.06657208502292633,
0.02925531193614006,
0.014684541150927544,
-0.025614650920033455,
-0.012327862903475761,
-0.013530581258237362,
0.055617596954107285,
-0.002413563197478652,
0.008410901762545109,
-0.0330747552216053,
-0.0012636668980121613,
-0.038129422813653946,
0.01043439470231533,
0.10525410622358322,
-0.0731382817029953,
0.031872037798166275,
-0.030604306608438492,
-0.034358736127614975,
0.00031490091350860894,
0.03216458857059479,
0.036049045622348785,
-0.009711137972772121,
0.013319293037056923,
-0.02680111490190029,
-0.011409571394324303,
0.0663120374083519,
-0.062248799949884415,
-0.011596480384469032,
0.005656026769429445,
0.02231530100107193,
-0.005436611827462912,
0.021405136212706566,
0.014213205315172672,
0.019097216427326202,
-0.017927004024386406,
0.001064568292349577,
-0.025175821036100388,
-0.059388283640146255,
-0.04173757880926132,
-0.04768615588545799,
-0.024119378998875618,
0.02995418757200241,
0.004936833865940571,
-0.06231381371617317,
0.051781900227069855,
0.057372916489839554,
0.03448875993490219,
-0.0023505829740315676,
-0.033286042511463165,
0.005903884302824736,
0.003770684590563178,
-0.026573574170470238,
0.03213208541274071,
-0.032197095453739166,
0.014408241026103497,
-0.014668287709355354,
-0.011060132645070553,
0.017179368063807487,
0.012457886710762978,
0.008256498724222183,
-0.008849731646478176,
-0.02472073771059513,
-0.05643024668097496,
-0.0019980971701443195,
0.04033982381224632,
0.022802889347076416,
0.07086286693811417,
0.0013347736094146967,
0.04768615588545799,
0.016407353803515434,
-0.0034070247784256935,
0.0349438451230526,
0.016919322311878204,
0.017341898754239082,
-0.028150111436843872,
0.02470448426902294,
-0.050416652113199234,
-0.0970626249909401,
-0.061468660831451416,
0.001500350539572537,
0.024119378998875618,
-0.026281021535396576,
-0.04775116965174675,
-0.01771571673452854,
-0.03031175397336483,
0.027743786573410034,
-0.060851048678159714,
-0.011889033950865269,
0.04248521476984024,
-0.020722512155771255,
-0.03302599489688873,
0.000788268109317869,
0.015269647352397442,
-0.02615099772810936,
0.0324571430683136,
-0.047166064381599426,
0.011417698115110397,
-0.0051562488079071045,
-0.06163118779659271,
0.03578899800777435,
-0.024558208882808685,
-0.05483745411038399,
-0.004372043535113335,
0.0787292942404747,
0.01655363105237484,
0.041315000504255295,
0.05860814079642296,
0.020755019038915634,
-0.043720439076423645,
0.017179368063807487,
0.0005673295818269253,
-0.005530066322535276,
0.08445033431053162,
-0.014993347227573395,
-0.023209214210510254,
-0.00817523431032896,
-0.004081522114574909,
0.000427401828346774,
0.004863695707172155,
0.054577410221099854,
0.0006074540433473885,
-0.047166064381599426,
0.027044910937547684,
-0.011563974432647228,
-0.0042542098090052605,
-0.03578899800777435,
0.023209214210510254,
-0.03861701115965843,
-0.020494971424341202,
-0.02680111490190029,
0.09381203353404999,
-0.010377509519457817,
0.01878841035068035,
0.007569811772555113,
0.015123371034860611,
0.018967192620038986,
0.006517433095723391,
-0.03978722169995308,
-0.029450347647070885,
0.05275707691907883,
0.07183804363012314,
-0.059453293681144714,
-0.017536934465169907,
0.04459809511899948,
-0.02306293696165085,
-0.03211583197116852,
-0.05812055245041847,
0.017861992120742798,
0.02342050150036812,
-0.03458628058433533,
0.02122635394334793,
0.02579343318939209,
-0.016919322311878204,
0.01981234736740589,
-0.048628829419612885,
0.011035753414034843,
0.11806143075227737,
0.03419620916247368,
-0.02372930757701397,
0.026264768093824387,
0.013335546478629112,
-0.009857414290308952,
0.02823137491941452,
-0.013644352555274963,
-0.014879576861858368,
0.0019503540825098753,
0.034683797508478165,
-0.06787232309579849,
0.05828308314085007,
0.03845448046922684,
0.049311451613903046,
0.053862277418375015,
-0.026914887130260468,
-0.05122930184006691,
-0.04560577869415283,
-0.00017040202510543168,
0.01392065268009901,
-0.01813829317688942,
0.011840274557471275,
0.042745258659124374,
-0.02719118632376194,
-0.025159567594528198,
0.012149080634117126,
-0.07885931432247162,
0.005050604231655598,
0.010686314664781094,
-0.05470743402838707,
-0.04560577869415283,
-0.07840423285961151,
-0.009703011251986027,
-0.01953604631125927,
-0.027451233938336372,
0.038129422813653946,
-0.0009040703880600631,
0.040534857660532,
0.034293726086616516,
0.024135632440447807,
-0.0013886115048080683,
-0.01309175230562687,
-0.019633565098047256,
0.0967375636100769,
-0.060168422758579254,
-0.022754130885004997,
0.013010486960411072,
0.03027924709022045,
-0.0299704410135746,
-0.013693111017346382,
0.018642134964466095,
0.04391547292470932,
0.01916222833096981,
-0.021470148116350174,
-0.07528366893529892,
-0.014895829372107983,
-0.00885785836726427,
0.00972739141434431,
-0.029206551611423492,
-0.01912972331047058,
-0.016935573890805244,
0.0015643464867025614,
0.02964538149535656,
-0.055910151451826096,
0.004128249362111092,
-0.02645980380475521,
-0.047588638961315155,
-0.021470148116350174,
-0.01609042100608349,
0.0288814939558506,
0.011271421797573566,
0.026654839515686035,
-0.06806735694408417,
-0.005115616135299206,
0.008402775973081589,
0.0355614572763443,
0.007984261959791183,
-0.061533670872449875,
0.016147306188941002,
-0.004835252650082111,
0.06163118779659271,
-0.038194432854652405,
-0.04014478996396065,
0.07014773786067963,
0.024493196979165077,
-0.06462173163890839,
0.04105495288968086,
-0.042355190962553024,
-0.07248815894126892,
-0.025370856747031212,
0.005115616135299206,
-0.037121739238500595,
-0.027483738958835602,
-0.012409128248691559,
-0.010158094577491283,
0.052106961607933044,
0.009321067482233047,
-0.06663709878921509,
-0.004940897226333618,
-0.0034314042422920465,
0.007183804176747799,
-0.051749397069215775,
-0.012214092537760735,
-0.04105495288968086,
-0.04976653680205345,
0.0535697266459465,
-0.016252951696515083,
-0.047881193459033966,
0.009589240886271,
0.014749553054571152,
-0.0036487875040620565,
-0.028328893706202507,
0.04206263646483421,
0.030799342319369316,
0.0033460762351751328,
-0.022250289097428322,
-0.00722037348896265,
-0.01479831151664257,
-0.032619673758745193,
-0.029905429109930992,
-0.02335548959672451,
-0.017325645312666893,
0.06566192209720612,
0.05252953618764877,
0.022429071366786957,
-0.011401444673538208,
-0.004684912972152233,
0.028361398726701736,
-0.04359041526913643,
0.013449316844344139,
-0.01588725857436657,
-0.02195773646235466,
0.07274820655584335,
0.02654106914997101,
0.025500880554318428,
0.005387853365391493,
0.05617019906640053,
0.0017360183410346508,
-0.0447281189262867,
-0.010588797740638256,
0.0883510410785675,
-0.06276889890432358,
-0.014977093786001205,
-0.02444443851709366,
0.006846555508673191,
0.01097886823117733,
-0.010019944049417973,
0.014855196699500084,
-0.010149967856705189,
-0.022900408133864403,
-0.024233149364590645,
-0.03926713019609451,
0.02749999240040779,
0.013717490248382092,
-0.04417552053928375,
0.003642692696303129,
0.047166064381599426,
-0.05470743402838707,
0.007553558796644211,
0.02715868130326271,
-0.0042379568330943584,
0.08067964762449265,
-0.02472073771059513,
-0.025533385574817657,
-0.00340499309822917,
-0.052106961607933044,
0.07339832931756973,
-0.03825944662094116,
-0.007691708859056234,
-0.024834508076310158,
-0.024639474228024483,
0.06702716648578644,
0.005014035385102034,
-0.040209800004959106,
0.013806881383061409,
-0.03237587958574295,
-0.004351727664470673,
-0.007667329628020525,
0.02962912991642952,
-0.0341637022793293,
0.0040794904343783855,
-0.0543498657643795,
-0.02608598582446575,
0.018300822004675865,
0.02751624584197998,
0.05786050483584404,
0.0009604478254914284,
-0.003126661293208599,
-0.043037813156843185,
-0.023209214210510254,
-0.020624995231628418,
-0.056560270488262177,
-0.03721925616264343,
0.013449316844344139,
-0.04121748358011246,
0.03232711926102638,
-0.003963688388466835,
-0.032245855778455734,
-0.0017634452087804675,
0.0018802632112056017,
-0.026719851419329643,
-0.02504579722881317,
-0.0226728655397892,
0.03809691593050957,
-0.011921538971364498,
-0.027288705110549927,
0.002153516048565507,
-0.017569439485669136,
0.033269789069890976,
0.014977093786001205,
0.005050604231655598,
-0.004008383955806494,
0.02476949617266655,
-0.03903958946466446,
-0.03133568912744522,
-0.02199024148285389,
-0.04072989523410797,
0.026020973920822144,
0.01239287480711937,
-0.030604306608438492,
-0.01648861914873123,
0.030896859243512154,
0.04209514334797859,
-0.05262705311179161,
-0.02964538149535656,
0.07885931432247162,
0.030506787821650505,
-0.00977614987641573,
0.028653951361775398,
-0.037154246121644974,
0.03754431754350662,
0.015399671159684658,
0.06982267647981644,
0.02366429567337036,
-0.06007090583443642,
0.018008269369602203,
-0.044858142733573914,
0.01585475355386734,
-0.004136376082897186,
0.03377363085746765,
-0.04043734073638916,
0.06283390522003174,
0.012685428373515606,
-0.020364947617053986,
-0.010369382798671722,
0.02959662303328514,
-0.020397452637553215,
-0.03380613774061203,
-0.03877954185009003,
-0.06302894651889801,
0.002104757120832801,
-0.015180256217718124,
0.024623220786452293,
-0.019422275945544243,
0.021746447309851646,
-0.024655725806951523,
0.024883268401026726,
0.07248815894126892,
0.006115172524005175,
0.048628829419612885,
0.02299792505800724,
-0.019292252138257027,
0.045865826308727264,
-0.016066042706370354,
-0.01776447519659996,
0.004126217681914568,
-0.03179077059030533,
-0.02758125774562359,
-0.09940304607152939,
0.031481966376304626,
-0.015724729746580124,
-0.02548462711274624,
0.05617019906640053,
-0.02964538149535656,
0.003228242276236415,
0.01674054004251957
] |
723,285
|
collections
|
_replace
|
Return a new PushMessage object replacing specified fields with new values
|
def namedtuple(typename, field_names, *, rename=False, defaults=None, module=None):
"""Returns a new subclass of tuple with named fields.
>>> Point = namedtuple('Point', ['x', 'y'])
>>> Point.__doc__ # docstring for the new class
'Point(x, y)'
>>> p = Point(11, y=22) # instantiate with positional args or keywords
>>> p[0] + p[1] # indexable like a plain tuple
33
>>> x, y = p # unpack like a regular tuple
>>> x, y
(11, 22)
>>> p.x + p.y # fields also accessible by name
33
>>> d = p._asdict() # convert to a dictionary
>>> d['x']
11
>>> Point(**d) # convert from a dictionary
Point(x=11, y=22)
>>> p._replace(x=100) # _replace() is like str.replace() but targets named fields
Point(x=100, y=22)
"""
# Validate the field names. At the user's option, either generate an error
# message or automatically replace the field name with a valid name.
if isinstance(field_names, str):
field_names = field_names.replace(',', ' ').split()
field_names = list(map(str, field_names))
typename = _sys.intern(str(typename))
if rename:
seen = set()
for index, name in enumerate(field_names):
if (not name.isidentifier()
or _iskeyword(name)
or name.startswith('_')
or name in seen):
field_names[index] = f'_{index}'
seen.add(name)
for name in [typename] + field_names:
if type(name) is not str:
raise TypeError('Type names and field names must be strings')
if not name.isidentifier():
raise ValueError('Type names and field names must be valid '
f'identifiers: {name!r}')
if _iskeyword(name):
raise ValueError('Type names and field names cannot be a '
f'keyword: {name!r}')
seen = set()
for name in field_names:
if name.startswith('_') and not rename:
raise ValueError('Field names cannot start with an underscore: '
f'{name!r}')
if name in seen:
raise ValueError(f'Encountered duplicate field name: {name!r}')
seen.add(name)
field_defaults = {}
if defaults is not None:
defaults = tuple(defaults)
if len(defaults) > len(field_names):
raise TypeError('Got more default values than field names')
field_defaults = dict(reversed(list(zip(reversed(field_names),
reversed(defaults)))))
# Variables used in the methods and docstrings
field_names = tuple(map(_sys.intern, field_names))
num_fields = len(field_names)
arg_list = ', '.join(field_names)
if num_fields == 1:
arg_list += ','
repr_fmt = '(' + ', '.join(f'{name}=%r' for name in field_names) + ')'
tuple_new = tuple.__new__
_dict, _tuple, _len, _map, _zip = dict, tuple, len, map, zip
# Create all the named tuple methods to be added to the class namespace
namespace = {
'_tuple_new': tuple_new,
'__builtins__': {},
'__name__': f'namedtuple_{typename}',
}
code = f'lambda _cls, {arg_list}: _tuple_new(_cls, ({arg_list}))'
__new__ = eval(code, namespace)
__new__.__name__ = '__new__'
__new__.__doc__ = f'Create new instance of {typename}({arg_list})'
if defaults is not None:
__new__.__defaults__ = defaults
@classmethod
def _make(cls, iterable):
result = tuple_new(cls, iterable)
if _len(result) != num_fields:
raise TypeError(f'Expected {num_fields} arguments, got {len(result)}')
return result
_make.__func__.__doc__ = (f'Make a new {typename} object from a sequence '
'or iterable')
def _replace(self, /, **kwds):
result = self._make(_map(kwds.pop, field_names, self))
if kwds:
raise ValueError(f'Got unexpected field names: {list(kwds)!r}')
return result
_replace.__doc__ = (f'Return a new {typename} object replacing specified '
'fields with new values')
def __repr__(self):
'Return a nicely formatted representation string'
return self.__class__.__name__ + repr_fmt % self
def _asdict(self):
'Return a new dict which maps field names to their values.'
return _dict(_zip(self._fields, self))
def __getnewargs__(self):
'Return self as a plain tuple. Used by copy and pickle.'
return _tuple(self)
# Modify function metadata to help with introspection and debugging
for method in (
__new__,
_make.__func__,
_replace,
__repr__,
_asdict,
__getnewargs__,
):
method.__qualname__ = f'{typename}.{method.__name__}'
# Build-up the class namespace dictionary
# and use type() to build the result class
class_namespace = {
'__doc__': f'{typename}({arg_list})',
'__slots__': (),
'_fields': field_names,
'_field_defaults': field_defaults,
'__new__': __new__,
'_make': _make,
'_replace': _replace,
'__repr__': __repr__,
'_asdict': _asdict,
'__getnewargs__': __getnewargs__,
'__match_args__': field_names,
}
for index, name in enumerate(field_names):
doc = _sys.intern(f'Alias for field number {index}')
class_namespace[name] = _tuplegetter(index, doc)
result = type(typename, (tuple,), class_namespace)
# For pickling to work, the __module__ variable needs to be set to the frame
# where the named tuple is created. Bypass this step in environments where
# sys._getframe is not defined (Jython for example) or sys._getframe is not
# defined for arguments greater than 0 (IronPython), or where the user has
# specified a particular module.
if module is None:
try:
module = _sys._getframe(1).f_globals.get('__name__', '__main__')
except (AttributeError, ValueError):
pass
if module is not None:
result.__module__ = module
return result
|
(self, /, **kwds)
|
[
0.05422734469175339,
0.0013971473090350628,
-0.015411114320158958,
-0.035643354058265686,
-0.032841332256793976,
-0.03327399864792824,
0.002850953256711364,
0.02148902788758278,
0.020973950624465942,
-0.04615093022584915,
-0.04219513759016991,
0.057070571929216385,
0.004468296188861132,
0.06329270452260971,
0.010847529396414757,
0.03343882039189339,
-0.029812676832079887,
0.05637006461620331,
-0.06539422273635864,
-0.03234685957431793,
0.01902695745229721,
0.01590558886528015,
0.03348002955317497,
0.05983138456940651,
0.031996604055166245,
0.011002052575349808,
0.01884152926504612,
0.010471522808074951,
0.0018027707701548934,
-0.005954294465482235,
-0.004089714027941227,
-0.015833478420972824,
-0.030204135924577713,
-0.010754815302789211,
0.002825199393555522,
-0.06090274825692177,
-0.05006552115082741,
0.058553993701934814,
0.049200188368558884,
-0.005063210614025593,
0.0639520063996315,
-0.0995541512966156,
-0.04948863387107849,
-0.061067573726177216,
-0.0018143600318580866,
0.02340511605143547,
0.0226840078830719,
-0.011414114385843277,
-0.024249842390418053,
-0.053444426506757736,
0.023590542376041412,
0.00630969787016511,
0.015823176130652428,
-0.004251963458955288,
-0.023178480565547943,
-0.0009599754121154547,
-0.0018426892347633839,
0.06185048818588257,
-0.0069123380817472935,
0.023116672411561012,
-0.00221740803681314,
0.057606253772974014,
-0.015081465244293213,
0.010420015081763268,
-0.05422734469175339,
-0.024188032373785973,
-0.00932290032505989,
-0.07347063720226288,
-0.022725213319063187,
0.0012606518575921655,
-0.009044758044183254,
-0.0008801384246908128,
0.018769418820738792,
0.02422923967242241,
0.07627265900373459,
0.04231875762343407,
-0.02923579141497612,
-0.010857830755412579,
0.04425544664263725,
-0.05163135379552841,
-0.016595792025327682,
-0.013402312994003296,
-0.08080533891916275,
-0.04351373389363289,
-0.03422173857688904,
0.03947553038597107,
-0.05047758296132088,
-0.0004426446103025228,
0.030204135924577713,
-0.0017654276452958584,
-0.05311477556824684,
0.01600860431790352,
-0.003788393922150135,
0.033377014100551605,
-0.051713768392801285,
-0.08661540597677231,
0.0038064217660576105,
-0.03793029859662056,
-0.012907838448882103,
0.03582878038287163,
0.02501215599477291,
-0.04578007757663727,
-0.09188979864120483,
-0.02101515606045723,
-0.008694506250321865,
-0.019809875637292862,
-0.019511129707098007,
-0.01518448069691658,
0.03597300127148628,
-0.032655905932188034,
-0.04326649755239487,
-0.05768866464495659,
-0.029977502301335335,
0.060820333659648895,
-0.003976397216320038,
-0.034036312252283096,
0.021118171513080597,
-0.025980502367019653,
-0.030636802315711975,
-0.03109006956219673,
0.027134275063872337,
0.01881062611937523,
-0.06127360463142395,
0.04907657206058502,
0.008514229208230972,
-0.008962346240878105,
0.0614384263753891,
-0.02595989964902401,
0.03896045312285423,
-0.003281042678281665,
0.022951846942305565,
0.002959119388833642,
-0.04240116849541664,
0.05682333558797836,
0.01792469248175621,
0.038383565843105316,
0.04994190111756325,
0.05031275749206543,
-0.06980328261852264,
0.037600647658109665,
0.042009711265563965,
-0.012197031639516354,
0.06560025364160538,
0.035396117717027664,
-0.0018838954856619239,
-0.04615093022584915,
0.01334050390869379,
0.006963845808058977,
-0.03751823678612709,
0.03012172318994999,
-0.03302675858139992,
-0.03597300127148628,
0.0189033392816782,
0.022313151508569717,
-0.04639817029237747,
-0.00515077356249094,
-0.01119778212159872,
-0.06407562643289566,
-0.023240290582180023,
-0.04151523485779762,
0.0185839906334877,
-0.053197190165519714,
-0.016183730214834213,
-0.015740763396024704,
0.055339910089969635,
0.021406615152955055,
0.04334891214966774,
-0.08529680967330933,
-0.013628946617245674,
-0.03354183956980705,
-0.00043878151336684823,
0.04118558391928673,
0.026330754160881042,
0.044214241206645966,
-0.03411872312426567,
0.019490526989102364,
-0.007149273995310068,
0.024867935106158257,
0.023961398750543594,
-0.020458873361349106,
0.038795627653598785,
-0.014339753426611423,
-0.062015313655138016,
0.008890234865248203,
0.05847158282995224,
0.0318111777305603,
-0.0020229662768542767,
0.06226254999637604,
0.052249446511268616,
0.026825228706002235,
0.016142524778842926,
-0.04005241394042969,
0.005768866278231144,
-0.006649648770689964,
0.008658450096845627,
0.06296305358409882,
-0.06353994458913803,
0.04615093022584915,
0.017667153850197792,
0.11051499843597412,
-0.02756693959236145,
0.03321218863129616,
0.029276996850967407,
-0.01741991564631462,
0.03280012682080269,
-0.029483027756214142,
0.05488664284348488,
-0.051054466515779495,
-0.03160514682531357,
-0.033789075911045074,
0.08340132981538773,
-0.021406615152955055,
0.0076901051215827465,
0.01956263743340969,
-0.010816624388098717,
-0.07252289354801178,
0.053568046540021896,
-0.029874486848711967,
0.006304546725004911,
-0.0041669756174087524,
0.08818124234676361,
0.023425718769431114,
-0.026165930554270744,
-0.0058770328760147095,
0.041350409388542175,
-0.048788126558065414,
-0.016173429787158966,
-0.02911217324435711,
-0.03840416669845581,
-0.0639520063996315,
0.06271582096815109,
-0.01285633072257042,
-0.029132775962352753,
-0.019232988357543945,
0.024023208767175674,
-0.016266142949461937,
0.009250788949429989,
-0.03572576493024826,
-0.0231578778475523,
-0.026330754160881042,
0.027834780514240265,
0.03574636951088905,
-0.033789075911045074,
-0.009848278947174549,
-0.00973496213555336,
-0.06745453178882599,
-0.027834780514240265,
0.028185032308101654,
-0.019830478355288506,
0.007767366711050272,
-0.016626697033643723,
0.014947544783353806,
-0.010919639840722084,
0.0327589213848114,
0.004380732774734497,
-0.024744316935539246,
-0.03566395491361618,
-0.013505328446626663,
-0.014236737973988056,
-0.027793575078248978,
0.004094865173101425,
-0.05834796279668808,
0.030739817768335342,
0.04499715939164162,
0.05121929198503494,
-0.027731765061616898,
0.0046356962993741035,
-0.02567145600914955,
0.013206583447754383,
0.015277194790542126,
0.12032207101583481,
0.03626144677400589,
-0.015421416610479355,
0.016266142949461937,
-0.0453680157661438,
-0.03345942497253418,
0.016430968418717384,
-0.025156378746032715,
0.022848831489682198,
-0.05113688111305237,
-0.008849029429256916,
-0.02286943420767784,
-0.02286943420767784,
-0.01134200394153595,
0.0226840078830719,
0.06131481006741524,
-0.05529870465397835,
0.030678007751703262,
-0.008514229208230972,
-0.00014132434444036335,
0.04512077569961548,
-0.03280012682080269,
0.013443519361317158,
-0.03193479776382446,
0.00041560304816812277,
0.024126224219799042,
-0.0857088714838028,
0.020458873361349106,
0.023384511470794678,
-0.06873192638158798,
-0.02495034784078598,
0.01821313612163067,
0.04124739393591881,
0.03889864310622215,
0.05163135379552841,
-0.041824281215667725,
-0.027402115985751152,
-0.004447693005204201,
-0.011032956652343273,
0.046645406633615494,
-0.027649352326989174,
0.01345382072031498,
-0.021530233323574066,
0.005779168102890253,
0.06024344637989998,
0.02243676967918873,
0.001479559694416821,
-0.014648799784481525,
0.014803322963416576,
0.04322529211640358,
-0.014782720245420933,
-0.06283944100141525,
-0.048087622970342636,
-0.01431915070861578,
-0.00877176783978939,
-0.03393329679965973,
-0.05068361386656761,
-0.007793120574206114,
0.011898286640644073,
-0.017904089763760567,
-0.03568455949425697,
0.0070668612606823444,
0.01420583389699459,
0.057853490114212036,
0.0011859656078740954,
-0.009698906913399696,
0.01001825463026762,
-0.025939295068383217,
0.004406486637890339,
-0.020530983805656433,
0.04911777749657631,
-0.010481824167072773,
-0.046233344823122025,
-0.011218384839594364,
-0.007133821491152048,
-0.017965897917747498,
0.014164627529680729,
0.01694604568183422,
0.12658540904521942,
-0.022890038788318634,
0.011702558025717735,
-0.08368977159261703,
-0.05303236469626427,
0.014061612077057362,
0.04870571568608284,
-0.0283498577773571,
0.0022650526370853186,
-0.013258091174066067,
0.006696005817502737,
-0.009173527359962463,
0.008895386010408401,
-0.0541861392557621,
0.0013031457783654332,
0.011383209377527237,
0.02016012743115425,
-0.03547852858901024,
-0.032243844121694565,
-0.015019656158983707,
-0.014690006151795387,
-0.011362606659531593,
0.016173429787158966,
-0.01587468385696411,
-0.029544837772846222,
-0.03568455949425697,
-0.04713987931609154,
-0.03209961950778961,
0.027237290516495705,
0.07380028069019318,
-0.0872747078537941,
-0.06778418272733688,
0.013525931164622307,
-0.06642437726259232,
0.027793575078248978,
0.021056363359093666,
0.012217635288834572,
-0.00243374053388834,
0.05583438649773598,
0.029009157791733742,
0.014226436614990234,
0.06271582096815109,
-0.06696005910634995,
0.018975449725985527,
-0.03601421043276787,
-0.031522735953330994,
0.035334307700395584,
-0.01348472572863102,
-0.0393725149333477,
-0.035993605852127075,
-0.050106726586818695,
-0.012464872561395168,
0.0078085726127028465,
-0.04376097396016121,
-0.0352931022644043,
0.04429665207862854,
-0.029215188696980476,
0.018141023814678192,
0.09650489687919617,
-0.04413182660937309,
0.009431066922843456,
-0.008503926917910576,
0.04639817029237747,
0.023611146956682205,
-0.0630042627453804,
-0.08331891149282455,
0.06424044817686081,
0.02239556424319744,
0.010523030534386635,
0.03345942497253418,
0.035581544041633606,
0.03461319953203201,
-0.002487823599949479,
-0.0064693717285990715,
0.005969746503978968,
0.023199085146188736,
-0.028864935040473938,
0.04425544664263725,
-0.043843384832143784,
0.024806125089526176,
0.013618645258247852,
0.005083813332021236,
-0.04073231667280197,
0.001308940351009369,
0.004702656529843807,
-0.012639998458325863,
0.05422734469175339,
-0.037600647658109665,
-0.007901286706328392,
-0.03743582218885422,
-0.010878433473408222,
0.02888553775846958,
0.008957195095717907,
-0.0003198308404535055,
0.010909338481724262,
-0.050395168364048004,
0.010723910294473171,
0.015205083414912224,
-0.047593146562576294,
0.012217635288834572,
0.04211272671818733,
0.01676061749458313,
0.07520129531621933,
0.056658510118722916,
0.08463751524686813,
0.015668652951717377,
-0.0020268294028937817,
-0.038136329501867294,
-0.03922829031944275,
-0.04833485931158066,
0.016121922060847282,
0.0022508881520479918,
0.017759867012500763,
-0.02577447146177292,
0.05006552115082741,
0.03327399864792824,
-0.0412679985165596,
-0.008344253525137901,
0.038795627653598785,
-0.0689791589975357,
-0.015339003875851631,
-0.04108256846666336,
0.0655178427696228,
-0.01529779750853777,
0.024847332388162613,
-0.019768668338656425,
-0.03469561040401459,
0.016183730214834213,
0.00021246941469144076,
-0.00860179215669632,
-0.01867670565843582,
-0.07862140983343124,
0.052661508321762085,
-0.021901089698076248,
0.05410372465848923,
0.0022611895110458136,
-0.002755663823336363,
0.03005991503596306,
0.05282633379101753,
0.03036896139383316,
-0.009997651912271976,
0.030389564111828804,
-0.06180928274989128,
0.02791719324886799,
0.051837384700775146,
-0.008339102379977703,
0.005526780150830746,
-0.006464221049100161,
-0.024311650544404984,
0.04149463400244713,
-0.04351373389363289,
-0.033603645861148834,
0.0428544357419014,
-0.05043637380003929,
0.025856884196400642,
-0.03113127499818802,
0.06654799729585648,
-0.03953733667731285,
0.060408271849155426,
0.011022655293345451,
-0.012464872561395168,
-0.03261469677090645,
-0.06378717720508575,
-0.019016657024621964,
0.017461122944951057,
-0.030142327770590782,
0.0019032108830288053,
0.005990349687635899,
0.0046356962993741035,
0.023775970563292503,
-0.06572387367486954,
-0.05286753922700882,
0.0374976322054863,
0.029874486848711967,
-0.03292374312877655,
0.015246289782226086,
-0.02989508956670761,
0.028782522305846214,
0.025383012369275093,
-0.00831849966198206,
0.039928797632455826,
0.024435270577669144,
0.003026079386472702,
-0.050395168364048004,
-0.023549336940050125,
-0.054804231971502304,
0.03852778673171997,
0.03708557039499283,
-0.004630545619875193,
0.017945295199751854,
0.040567491203546524,
0.02016012743115425,
0.0482112392783165,
0.05455699563026428,
-0.05550473555922508,
-0.026330754160881042,
-0.01104325894266367,
0.000352184142684564,
-0.024497078731656075,
0.010064611211419106,
-0.015225687064230442,
-0.03030715137720108,
-0.006495125591754913,
-0.01764655113220215,
0.001550382818095386,
-0.010353054851293564,
-0.04656299203634262,
-0.016049809753894806,
-0.03589059039950371,
0.004893234930932522,
0.01726539246737957,
0.03012172318994999,
0.005011702887713909,
0.006572387181222439,
0.024455873295664787,
-0.009755564853549004,
-0.0010906762909144163,
0.03201720863580704,
0.03982578217983246,
0.017759867012500763,
-0.0073501537553966045,
-0.01836765930056572,
0.03065740503370762,
0.008230935782194138,
0.04697505384683609,
0.017656851559877396,
0.01390708889812231,
0.029483027756214142,
-0.03692074492573738,
0.0038553541526198387,
-0.014813625253736973,
-0.05740022286772728,
0.027649352326989174,
0.0428544357419014,
-0.011558336205780506,
-0.061768077313899994,
-0.011475923471152782,
-0.026289548724889755,
-0.020427968353033066,
0.008194880560040474,
0.02727849781513214,
0.008539983071386814,
-0.02363174967467785,
0.04240116849541664,
-0.004751588683575392,
-0.00036570493830367923,
-0.019366908818483353,
0.022107120603322983,
-0.036591093987226486,
0.006464221049100161,
0.010311848483979702,
0.0009812223725020885,
-0.04800520837306976,
0.0381157249212265,
-0.03352123498916626,
-0.002579249907284975,
0.004195305053144693,
-0.03650868311524391,
-0.015503828413784504,
0.006345753092318773,
0.050642404705286026,
0.01417492888867855,
0.061479635536670685,
-0.04854089021682739,
0.03964035212993622,
0.008241238072514534,
-0.02155083604156971,
-0.018254341557621956,
-0.014545784331858158,
-0.015112369321286678,
0.012464872561395168,
-0.04804641753435135,
-0.0680314153432846,
0.024270445108413696,
0.012918139807879925,
0.00935380533337593,
-0.00915292464196682,
-0.056658510118722916,
-0.011238987557590008,
-0.037126775830984116,
0.05121929198503494,
-0.04499715939164162,
-0.030636802315711975,
-0.028123224154114723,
0.023322703316807747,
-0.06696005910634995,
-0.036343857645988464,
0.012413364835083485,
0.020870935171842575,
-0.014803322963416576,
0.01417492888867855,
0.06230375915765762,
0.011671653017401695,
-0.032243844121694565,
-0.006526030134409666,
0.014360357075929642,
-0.010796021670103073,
-0.023240290582180023,
0.051713768392801285,
-0.09601041674613953,
0.0444202721118927,
0.015462622046470642,
-0.020118921995162964,
0.05389769375324249,
0.015266893431544304,
-0.031769972294569016,
-0.025589043274521828,
0.007102916948497295,
-0.07825054973363876,
-0.010579689405858517,
0.02785538323223591,
0.012403062544763088,
0.01214552391320467,
-0.04985949024558067,
0.03537551313638687,
-0.027463924139738083,
0.00571735855191946,
0.05027155205607414,
-0.024270445108413696,
0.056164033710956573,
0.05327960103750229,
0.018862133845686913,
-0.02356993965804577,
-0.003948067780584097,
0.0545157864689827,
-0.003713707672432065,
-0.026639800518751144,
-0.028617698699235916,
0.02542421780526638,
0.048788126558065414,
-0.03234685957431793,
-0.0016559737268835306,
0.06127360463142395,
0.013381710276007652,
-0.044914744794368744,
-0.02620713599026203,
-0.007463471032679081,
-0.00915292464196682,
0.021056363359093666,
0.005408312194049358,
0.03059559501707554,
-0.08752194792032242,
0.0393725149333477,
0.019768668338656425,
0.017409615218639374,
0.01978927291929722,
-0.061644457280635834,
-0.024188032373785973,
0.02727849781513214,
-0.031769972294569016,
0.04800520837306976,
-0.020345555618405342,
0.020623696967959404,
0.0052563645876944065,
-0.0023976850789040327,
0.03982578217983246,
0.0037111323326826096,
0.052249446511268616,
-0.001334050321020186,
0.022580990567803383,
0.03877502307295799,
-0.006840227171778679,
-0.008622394874691963,
0.04417303577065468,
0.011991000734269619,
-0.00918382965028286,
0.05097205564379692,
-0.05430975556373596,
0.02655738778412342,
0.07033896446228027,
-0.015606843866407871,
0.034159932285547256,
0.029009157791733742,
-0.017759867012500763,
0.08636817336082458,
-0.0025007005315274,
0.0051018414087593555,
-0.000001212242636938754,
-0.030039312317967415,
-0.025444822385907173,
-0.037538837641477585,
0.017842279747128487,
0.04413182660937309,
0.04487353935837746,
-0.04606851935386658,
0.0231578778475523,
0.0324498750269413,
-0.03191419318318367,
0.02595989964902401,
0.01868700608611107,
-0.0061294203624129295,
0.07388269901275635,
-0.05805952101945877,
0.06250979006290436,
-0.0012052810052409768,
0.04594489932060242,
-0.04973587021231651,
-0.018862133845686913,
0.058924850076436996,
0.024332255125045776,
-0.00772616034373641,
0.02655738778412342,
0.012969647534191608,
0.03797150403261185,
-0.019614145159721375,
-0.019542034715414047,
0.03269711136817932,
-0.0655178427696228,
0.03941372036933899,
-0.011857081204652786,
-0.02828804776072502,
-0.05274392291903496,
-0.031007656827569008,
-0.002344889799132943,
0.018007105216383934,
0.019397813826799393,
-0.0017602768493816257,
0.036776524037122726,
0.005588589236140251,
0.0327589213848114
] |
723,286
|
exponent_server_sdk
|
get_payload
| null |
def get_payload(self):
# Sanity check for invalid push token format.
if not PushClient.is_exponent_push_token(self.to):
raise ValueError('Invalid push token')
# There is only one required field.
payload = {
'to': self.to,
}
# All of these fields are optional.
if self.data is not None:
payload['data'] = self.data
if self.title is not None:
payload['title'] = self.title
if self.body is not None:
payload['body'] = self.body
if self.ttl is not None:
payload['ttl'] = self.ttl
if self.expiration is not None:
payload['expiration'] = self.expiration
if self.priority is not None:
payload['priority'] = self.priority
if self.subtitle is not None:
payload['subtitle'] = self.subtitle
if self.sound is not None:
payload['sound'] = self.sound
if self.badge is not None:
payload['badge'] = self.badge
if self.channel_id is not None:
payload['channelId'] = self.channel_id
if self.category is not None:
payload['categoryId'] = self.category
if self.mutable_content is not None:
payload['mutableContent'] = self.mutable_content
# here for legacy reasons
if self.display_in_foreground is not None:
payload['_displayInForeground'] = self.display_in_foreground
return payload
|
(self)
|
[
-0.0014762911014258862,
-0.0058564417995512486,
-0.022256428375840187,
-0.023659635335206985,
0.01139131560921669,
0.021320955827832222,
-0.003169397125020623,
-0.027167653664946556,
0.005900292191654444,
-0.021847158670425415,
0.04322658106684685,
0.009559350088238716,
-0.0012996720615774393,
-0.008195120841264725,
-0.031104430556297302,
0.028064146637916565,
0.03221530094742775,
-0.033774420619010925,
0.07869654893875122,
0.04509752616286278,
0.041121769696474075,
-0.0035664853639900684,
0.018134506419301033,
0.028531882911920547,
-0.012122152373194695,
0.04045914486050606,
0.010709200985729694,
0.008979552425444126,
0.02108708769083023,
0.006626256741583347,
-0.0347488708794117,
-0.008019720204174519,
0.03143574297428131,
0.017315968871116638,
-0.06505425274372101,
0.017140567302703857,
-0.07924223691225052,
-0.05269823223352432,
-0.0683673769235611,
-0.025686489418148994,
-0.055426690727472305,
-0.003693163860589266,
0.013798206113278866,
-0.015932250767946243,
0.04770905151963234,
-0.03328719735145569,
0.04053710028529167,
0.06906898319721222,
0.0254331324249506,
0.009150081314146519,
0.03470989316701889,
0.056284207850694656,
-0.04486365616321564,
-0.012346276082098484,
-0.06064974144101143,
-0.00889185257256031,
-0.013145324774086475,
-0.016760531812906265,
-0.04537037014961243,
0.04307067021727562,
0.003834458999335766,
0.06598972529172897,
0.03572332113981247,
-0.04946305975317955,
-0.0008800497744232416,
0.010095297358930111,
-0.0006900320877321064,
0.0028405203483998775,
-0.00057644781190902,
0.008005103096365929,
0.03964060917496681,
-0.038412801921367645,
-0.014568020589649677,
0.006709085311740637,
-0.001369101577438414,
-0.03934827446937561,
0.027557432651519775,
-0.024848463013768196,
-0.036210544407367706,
-0.019372057169675827,
-0.0008897942607291043,
0.0206388421356678,
-0.02159380167722702,
0.044123075902462006,
0.03864666819572449,
0.028005680069327354,
-0.02097015455365181,
0.03424215689301491,
-0.052035607397556305,
-0.07378531992435455,
0.0000448399041488301,
0.0108846016228199,
-0.056946832686662674,
0.010114786215126514,
0.039816007018089294,
-0.05437428504228592,
-0.05421837419271469,
0.03537251800298691,
-0.0060513317584991455,
0.028181081637740135,
-0.04911225661635399,
0.033482085913419724,
-0.08738863468170166,
0.011985729448497295,
0.019644903019070625,
0.012648355215787888,
0.0127165662124753,
-0.0007454539299942553,
-0.024614594876766205,
-0.000337707664584741,
0.014889589510858059,
0.045877084136009216,
-0.059051644057035446,
0.012911456637084484,
-0.0005228531081229448,
0.02864881604909897,
-0.03539200872182846,
0.032760992646217346,
-0.013116090558469296,
-0.018046805635094643,
-0.004908789414912462,
0.016672831028699875,
0.03114340826869011,
-0.015815315768122673,
-0.019147934392094612,
0.0429537370800972,
-0.02391299232840538,
-0.06544402986764908,
0.060065072029829025,
-0.05098320171236992,
-0.0020378176122903824,
0.010816389694809914,
0.048020873218774796,
-0.0375942625105381,
-0.03412522375583649,
-0.046617668122053146,
0.07425305247306824,
0.0033667231909930706,
0.026271160691976547,
-0.014850610867142677,
0.0071963099762797356,
0.04517548158764839,
0.006182882469147444,
-0.0214768685400486,
-0.02763538993895054,
-0.04447387903928757,
0.0373019278049469,
0.021944604814052582,
-0.019586436450481415,
-0.05940244346857071,
0.048527587205171585,
-0.01633177511394024,
-0.008770045824348927,
-0.0063339220359921455,
0.07207028567790985,
0.016019951552152634,
0.002124299993738532,
-0.03537251800298691,
-0.050164662301540375,
-0.006397261284291744,
-0.02153533510863781,
0.00936933234333992,
0.004229111131280661,
-0.029311442747712135,
-0.001422696397639811,
-0.023445256054401398,
0.13408425450325012,
-0.05363370478153229,
0.006738318596035242,
0.08543973416090012,
-0.03673674911260605,
0.012161130085587502,
-0.0036785469856113195,
0.003771119751036167,
-0.08754454553127289,
-0.0013520487118512392,
-0.027109187096357346,
0.0005892374902032316,
-0.012667844071984291,
-0.012209853157401085,
-0.006660362705588341,
-0.03412522375583649,
0.016965167596936226,
0.0003949565871153027,
0.04591606184840202,
-0.014149007387459278,
0.00644598389044404,
0.017871404066681862,
-0.021379422396421432,
-0.0120149627327919,
0.007542239502072334,
-0.005115860141813755,
0.008828513324260712,
0.029428375884890556,
-0.03550894185900688,
-0.0101732537150383,
0.020424462854862213,
-0.008146398700773716,
-0.027537943795323372,
0.02165226824581623,
0.02718714252114296,
-0.02492642030119896,
0.015337835997343063,
-0.01252167671918869,
-0.10220026969909668,
-0.043109647929668427,
-0.01008555293083191,
0.006343666464090347,
0.03260508179664612,
-0.017354946583509445,
-0.05850595235824585,
-0.025179777294397354,
0.002395927906036377,
0.008628751151263714,
0.031630631536245346,
-0.05410143733024597,
-0.010640989057719707,
-0.025803424417972565,
-0.005286389030516148,
-0.035976678133010864,
0.0378865972161293,
-0.02974019944667816,
-0.0121513856574893,
-0.00993451289832592,
-0.020814241841435432,
0.01671181060373783,
-0.031689099967479706,
-0.03568434342741966,
0.003914851229637861,
-0.009573967196047306,
0.004643252119421959,
-0.016965167596936226,
0.011011280119419098,
0.01760830357670784,
-0.007790724281221628,
0.0024507406633347273,
-0.014645976945757866,
-0.043499428778886795,
0.08239945769309998,
0.016136884689331055,
0.09035096317529678,
-0.027537943795323372,
0.004896609112620354,
0.0740191861987114,
0.03685368224978447,
0.014421853236854076,
0.0480598509311676,
0.03899747133255005,
0.01294068992137909,
0.007322988472878933,
0.013973606750369072,
-0.030168958008289337,
-0.009193931706249714,
0.03174756467342377,
0.009237782098352909,
-0.01647794246673584,
0.044006142765283585,
-0.01647794246673584,
0.021944604814052582,
-0.043499428778886795,
0.02864881604909897,
-0.006017225794494152,
0.011664161458611488,
0.05640114098787308,
0.0009080651798285544,
-0.01139131560921669,
-0.05211356282234192,
-0.01966439187526703,
0.01737443543970585,
0.04470774531364441,
0.11327001452445984,
-0.031630631536245346,
0.061468277126550674,
-0.008935702033340931,
0.0037613753229379654,
-0.055816471576690674,
-0.05749252438545227,
0.016643598675727844,
0.016380496323108673,
-0.024263793602585793,
-0.054179396480321884,
-0.06279353052377701,
0.061819080263376236,
-0.04942408204078674,
0.04895634576678276,
0.009676284156739712,
0.03040282614529133,
-0.06041587144136429,
0.06357309222221375,
-0.0014251325046643615,
-0.018095528706908226,
0.02695327438414097,
-0.07822880893945694,
-0.009408310055732727,
0.05375063791871071,
0.019196655601263046,
-0.011625182814896107,
0.013993095606565475,
0.10843674838542938,
0.014957800507545471,
0.03905593976378441,
0.05780434608459473,
-0.052932098507881165,
-0.04486365616321564,
-0.04470774531364441,
0.0593634657561779,
0.02379605732858181,
0.0616241879761219,
-0.05386757105588913,
-0.009081869386136532,
0.003968445584177971,
0.04731927067041397,
0.06930284947156906,
0.00091171934036538,
-0.019264867529273033,
-0.020541395992040634,
0.05273720994591713,
0.018037062138319016,
0.034105733036994934,
0.03137727454304695,
0.030324870720505714,
-0.04155052825808525,
-0.03804251179099083,
0.0045774769969284534,
0.10282391309738159,
-0.026095759123563766,
-0.03911440446972847,
-0.034008290618658066,
0.04357738420367241,
0.013466892763972282,
0.01766677014529705,
-0.005456917453557253,
0.014801888726651669,
0.002081667771562934,
0.021243000403046608,
0.03589872270822525,
0.0077273850329220295,
0.0559723824262619,
-0.03114340826869011,
-0.024439195170998573,
-0.03991345316171646,
-0.01458750944584608,
0.03975754231214523,
0.06778270751237869,
-0.004026912618428469,
-0.07935917377471924,
0.018222207203507423,
-0.06267659366130829,
-0.005953886546194553,
-0.05987017974257469,
-0.013856672681868076,
-0.007493516895920038,
0.04104381427168846,
0.03102647326886654,
0.023542700335383415,
-0.044629789888858795,
-0.028453927487134933,
0.013759227469563484,
0.023308834061026573,
0.04630584269762039,
0.09572992473840714,
0.0023825292009860277,
0.022178471088409424,
0.03155267611145973,
-0.05059342086315155,
0.01636100746691227,
0.00496725644916296,
0.08777841925621033,
0.04599401727318764,
0.0006315651116892695,
0.0330728180706501,
-0.024205327033996582,
-0.009003913961350918,
0.028064146637916565,
-0.04268088936805725,
0.05659602954983711,
-0.06369002163410187,
-0.015074734576046467,
-0.05585544928908348,
-0.07982690632343292,
0.010826134122908115,
0.004199877381324768,
-0.05074933171272278,
0.03679521381855011,
0.0904289186000824,
0.03656134754419327,
0.021320955827832222,
-0.06240374967455864,
0.045643217861652374,
0.015815315768122673,
-0.044123075902462006,
-0.003754067001864314,
-0.03979652002453804,
0.016068672761321068,
-0.07101788371801376,
-0.02017110586166382,
-0.02165226824581623,
0.026466049253940582,
-0.024906931445002556,
-0.0012643482768908143,
0.05410143733024597,
-0.025335688143968582,
0.01885559968650341,
-0.007654301356524229,
0.019225889816880226,
-0.03192296624183655,
0.0029842518270015717,
-0.007074503693729639,
0.03346259891986847,
0.02334781177341938,
0.07390225678682327,
-0.009954001754522324,
-0.029662244021892548,
-0.024965398013591766,
0.00822435412555933,
-0.04291475936770439,
0.0378865972161293,
0.013973606750369072,
0.012882223352789879,
-0.03317026421427727,
-0.05527077987790108,
-0.016019951552152634,
-0.025686489418148994,
-0.011235402897000313,
-0.04233008995652199,
0.06369002163410187,
-0.03876360133290291,
0.02471204102039337,
0.009939385578036308,
0.06041587144136429,
0.003615207737311721,
-0.015815315768122673,
-0.024906931445002556,
0.03543098643422127,
0.033891353756189346,
0.05219151824712753,
0.017325712367892265,
-0.0018429277697578073,
0.006450856104493141,
0.024380728602409363,
-0.028785239905118942,
0.02662196196615696,
0.005481278523802757,
0.027849767357110977,
0.022587740793824196,
-0.017238013446331024,
-0.06462549418210983,
-0.024380728602409363,
-0.0039440845139324665,
-0.001929410151205957,
0.03636645898222923,
-0.0007046488462947309,
0.07226517796516418,
-0.03601565584540367,
-0.0033009478356689215,
-0.05195765197277069,
-0.012872478924691677,
-0.023718101903796196,
-0.005169454962015152,
-0.061819080263376236,
0.04572117328643799,
-0.029194507747888565,
-0.048254743218421936,
-0.01402232889086008,
0.008648240007460117,
-0.010075808502733707,
-0.0115862051025033,
-0.04233008995652199,
-0.07818983495235443,
-0.011069746688008308,
0.039816007018089294,
0.041121769696474075,
-0.014684954658150673,
0.026972763240337372,
-0.0065824068151414394,
0.009033147245645523,
0.0525812990963459,
0.011693394742906094,
-0.07090094685554504,
-0.06291045993566513,
-0.02510182000696659,
0.00630468875169754,
-0.043499428778886795,
0.011011280119419098,
-0.016195351257920265,
0.03804251179099083,
-0.0021644961088895798,
-0.013233024626970291,
0.05398450419306755,
0.03962111845612526,
-0.05776536837220192,
-0.006899103056639433,
0.010407120920717716,
0.02876575104892254,
-0.0007174384663812816,
0.026154225692152977,
-0.008541050367057323,
0.009720134548842907,
0.00003893991743098013,
0.023640146479010582,
-0.019030999392271042,
-0.023074965924024582,
0.004677357617765665,
0.0027406392619013786,
-0.029974067583680153,
-0.055075887590646744,
-0.036035142838954926,
0.05893470719456673,
0.05640114098787308,
0.0113036148250103,
-0.02135993354022503,
0.025686489418148994,
-0.01551323663443327,
-0.06100054085254669,
0.0031767054460942745,
0.01865096390247345,
0.013038135133683681,
0.06010404974222183,
-0.04880043491721153,
-0.029350420460104942,
0.03921185061335564,
0.032468657940626144,
-0.004743133205920458,
0.012219597585499287,
-0.02221745066344738,
0.027109187096357346,
-0.03328719735145569,
-0.028395459055900574,
-0.02691429667174816,
0.004465415142476559,
0.018222207203507423,
0.029584288597106934,
-0.009081869386136532,
0.02894115261733532,
-0.018456075340509415,
-0.02165226824581623,
-0.008497199974954128,
0.03706806153059006,
-0.07772209495306015,
-0.06123441085219383,
-0.024828974157571793,
-0.03046129271388054,
-0.009164698421955109,
-0.02379605732858181,
-0.07027730345726013,
-0.004255908541381359,
0.035918209701776505,
0.08068442344665527,
-0.042758844792842865,
-0.011693394742906094,
-0.05671296268701553,
-0.006187754683196545,
-0.012697077356278896,
-0.006377772428095341,
0.011420548893511295,
-0.024517150595784187,
0.026427071541547775,
0.029857134446501732,
0.040381189435720444,
0.014840866439044476,
-0.00220103794708848,
-0.020249061286449432,
-0.05020364001393318,
0.0030183575581759214,
-0.09557401388883591,
0.03470989316701889,
-0.04856656491756439,
0.053438812494277954,
-0.09253372997045517,
0.03845177963376045,
-0.04178439825773239,
0.033482085913419724,
0.031903479248285294,
0.009544732980430126,
0.11061951518058777,
-0.036093611270189285,
0.010163509286940098,
0.06419673562049866,
-0.0037784280721098185,
0.021009132266044617,
0.03899747133255005,
0.051918670535087585,
0.04505854845046997,
-0.0694977417588234,
-0.05339983478188515,
-0.0011602039448916912,
-0.030851073563098907,
-0.01209291908890009,
-0.0013715378008782864,
-0.01856326311826706,
0.06314433366060257,
0.02323087677359581,
0.038802582770586014,
0.012697077356278896,
0.036717258393764496,
-0.002855137223377824,
0.04260293394327164,
-0.008560539223253727,
-0.007858935743570328,
-0.0021401348058134317,
-0.0115862051025033,
0.02471204102039337,
-0.009837068617343903,
-0.017267245799303055,
0.04256395623087883,
-0.006397261284291744,
-0.039816007018089294,
0.03765273094177246,
0.0036517498083412647,
-0.0678606703877449,
0.01000759657472372,
-0.054686110466718674,
-0.047787006944417953,
-0.0061439042910933495,
0.010260953567922115,
0.0014787272084504366,
-0.00722067104652524,
0.02069730870425701,
-0.011137958616018295,
-0.054803043603897095,
0.03946520760655403,
-0.011274381540715694,
-0.06832840293645859,
0.01888483203947544,
0.00390997901558876,
-0.008326671086251736,
-0.020814241841435432,
-0.011176936328411102,
-0.08161989599466324,
0.011235402897000313,
0.008935702033340931,
0.022061537951231003,
0.08200967311859131,
-0.011839562095701694,
-0.03839331120252609,
0.05285414308309555,
-0.03295588493347168,
0.01252167671918869,
0.025628022849559784,
-0.006821146700531244,
0.015893273055553436,
0.002891679061576724,
-0.06431367248296738,
-0.025978825986385345,
-0.05160684883594513,
-0.01737443543970585,
-0.0016200223471969366,
-0.02804465778172016,
-0.06252068281173706,
-0.07148561626672745,
0.003137727500870824,
-0.030091002583503723,
0.002891679061576724,
-0.018426841124892235,
-0.043109647929668427,
0.04708540067076683,
0.03225427865982056,
0.029311442747712135,
-0.011820073239505291,
-0.040615055710077286,
-0.033482085913419724,
0.010416865348815918,
-0.02578393556177616,
-0.011235402897000313,
-0.001475073047913611,
0.003634696826338768,
-0.03272201493382454,
0.013983351178467274,
0.03613258898258209,
-0.048644520342350006,
0.034222669899463654,
-0.014334152452647686,
-0.002565238391980529,
0.033949822187423706,
0.054803043603897095,
0.013700760900974274,
0.015406046994030476,
0.040225278586149216,
0.015717871487140656,
-0.02685583010315895,
0.03330668434500694,
0.042135197669267654,
-0.022646207362413406,
0.06509322673082352,
-0.00048478864482603967,
-0.010134275071322918,
0.02560853399336338,
0.025394154712557793,
-0.03712652623653412,
-0.002400800120085478,
0.0723821148276329,
-0.04131666198372841,
-0.02668042853474617,
-0.027284586802124977,
0.023659635335206985,
-0.04856656491756439,
-0.05211356282234192,
0.0006437457632273436,
0.048176784068346024,
-0.02504335343837738,
-0.02153533510863781,
-0.031338296830654144,
0.032760992646217346,
-0.03899747133255005,
0.024556128308176994,
0.013213535770773888,
-0.006022098008543253,
0.009954001754522324,
-0.007746873889118433,
-0.019030999392271042,
-0.05437428504228592,
0.04431796446442604,
-0.007815085351467133,
-0.041628483682870865,
-0.04470774531364441,
-0.007474028039723635,
-0.040225278586149216,
0.02126248925924301,
-0.08473813533782959,
0.03915338218212128,
-0.029136041179299355,
0.022977519780397415,
-0.026427071541547775,
0.023640146479010582,
0.06135134398937225,
0.04217417538166046,
0.05760945752263069,
0.006835763808339834,
0.007688406854867935,
0.0059100366197526455,
-0.012765289284288883,
0.04080994799733162,
0.028395459055900574,
-0.011625182814896107,
0.05550464615225792,
-0.012999157421290874,
0.008409499190747738,
-0.009340099059045315,
0.015074734576046467,
0.032020412385463715,
0.014772655442357063,
0.017510859295725822,
0.012414487078785896,
0.03509967401623726,
0.01865096390247345,
-0.011888284236192703,
0.023484233766794205,
-0.020365996286273003,
0.009763984940946102,
-0.04030323401093483,
-0.017510859295725822,
0.04899532347917557,
-0.039991408586502075,
-0.03568434342741966,
-0.035080183297395706,
0.008619006723165512,
-0.028707284480333328,
0.017140567302703857,
0.0014604562893509865,
0.0020098022650927305,
-0.0110210245475173,
-0.03771119937300682,
-0.023308834061026573,
0.03328719735145569,
-0.060571786016225815,
0.042369067668914795,
0.012336531654000282,
0.015289113856852055
] |
723,287
|
exponent_server_sdk
|
PushReceipt
|
Wrapper class for a PushReceipt response. Similar to a PushResponse
A successful single push notification:
'data': {
'id': {'status': 'ok'}
}
Errors contain 'errors'
|
class PushReceipt(
namedtuple('PushReceipt', ['id', 'status', 'message', 'details'])):
"""Wrapper class for a PushReceipt response. Similar to a PushResponse
A successful single push notification:
'data': {
'id': {'status': 'ok'}
}
Errors contain 'errors'
"""
# Known status codes
ERROR_STATUS = 'error'
SUCCESS_STATUS = 'ok'
# Known error strings
ERROR_DEVICE_NOT_REGISTERED = 'DeviceNotRegistered'
ERROR_MESSAGE_TOO_BIG = 'MessageTooBig'
ERROR_MESSAGE_RATE_EXCEEDED = 'MessageRateExceeded'
INVALID_CREDENTIALS = 'InvalidCredentials'
def is_success(self):
"""Returns True if this push notification successfully sent."""
return self.status == PushReceipt.SUCCESS_STATUS
def validate_response(self):
"""Raises an exception if there was an error. Otherwise, do nothing.
Clients should handle these errors, since these require custom handling
to properly resolve.
"""
if self.is_success():
return
# Handle the error if we have any information
if self.details:
error = self.details.get('error', None)
if error == PushReceipt.ERROR_DEVICE_NOT_REGISTERED:
raise DeviceNotRegisteredError(self)
elif error == PushReceipt.ERROR_MESSAGE_TOO_BIG:
raise MessageTooBigError(self)
elif error == PushReceipt.ERROR_MESSAGE_RATE_EXCEEDED:
raise MessageRateExceededError(self)
elif error == PushReceipt.INVALID_CREDENTIALS:
raise InvalidCredentialsError(self)
# No known error information, so let's raise a generic error.
raise PushTicketError(self)
|
(id, status, message, details)
|
[
0.018073856830596924,
0.007103158626705408,
-0.05925792083144188,
-0.007041391916573048,
-0.0016047436511144042,
-0.10270359367132187,
-0.036717865616083145,
0.02387041412293911,
0.03945460170507431,
-0.03886544331908226,
0.00993967056274414,
0.0288117416203022,
0.05560894310474396,
0.01910013146698475,
-0.04633444920182228,
0.044547971338033676,
-0.010623854584991932,
-0.03080727718770504,
0.011754658073186874,
0.008428764529526234,
0.05150383710861206,
0.07898522168397903,
0.004511337261646986,
0.09616583585739136,
0.0012222658842802048,
0.04287552088499069,
0.03335396200418472,
0.002449283143505454,
0.03658482804894447,
-0.0458403155207634,
-0.01207774505019188,
0.007407240103930235,
0.021247709169983864,
0.008195952512323856,
-0.06264083087444305,
-0.0071269148029387,
-0.021969903260469437,
-0.01617334596812725,
-0.07495614141225815,
0.034190185368061066,
-0.06279287487268448,
0.02533380687236786,
-0.005216901656240225,
-0.04796888679265976,
0.046182408928871155,
-0.002670217538252473,
-0.02715829759836197,
0.033011868596076965,
-0.016135334968566895,
-0.0069463662803173065,
0.010348280891776085,
0.0805816501379013,
-0.028678705915808678,
-0.015536674298346043,
-0.02058253064751625,
0.004561225418001413,
-0.0062526799738407135,
0.03709796816110611,
-0.02499171532690525,
0.021266713738441467,
-0.0376301109790802,
0.08711940795183182,
0.011260525323450565,
-0.029210848733782768,
-0.017000067979097366,
0.0017841043882071972,
0.023072199895977974,
-0.021266713738441467,
-0.011346048675477505,
0.024858679622411728,
0.04861506074666977,
0.021532785147428513,
-0.060588277876377106,
-0.002141637960448861,
0.07153522223234177,
0.009051182307302952,
-0.030655236914753914,
-0.020772581920027733,
0.038770418614149094,
-0.037250008434057236,
-0.010395793244242668,
0.0015904898755252361,
0.008462023921310902,
0.02734834887087345,
0.0364517942070961,
0.05914388969540596,
0.04340766370296478,
0.018834060057997704,
-0.040594905614852905,
0.05960001423954964,
-0.03075026161968708,
0.025067735463380814,
-0.06302092969417572,
-0.02010740339756012,
0.022140948101878166,
-0.03327794000506401,
-0.0022663590498268604,
-0.011593114584684372,
-0.03751607984304428,
0.006423725746572018,
-0.012106252834200859,
-0.03052220121026039,
-0.10673268139362335,
-0.01161212008446455,
-0.019033614546060562,
-0.02423151023685932,
0.008086672984063625,
-0.013075512833893299,
0.05161786824464798,
0.01681951992213726,
-0.007882367819547653,
-0.04622041806578636,
-0.05925792083144188,
0.016315883025527,
0.020430488511919975,
-0.0014479515375569463,
0.025200771167874336,
-0.01005370169878006,
-0.06454133987426758,
-0.040822967886924744,
0.05986608564853668,
-0.07096506655216217,
0.007008132990449667,
0.050477564334869385,
-0.0038485340774059296,
0.011289033107459545,
0.01687653362751007,
-0.04439592733979225,
0.0693306252360344,
-0.004088473506271839,
-0.0005214526318013668,
0.025067735463380814,
0.008462023921310902,
0.015147069469094276,
-0.0047489008866250515,
0.024307530373334885,
0.027310337871313095,
0.025086740031838417,
0.017712758854031563,
0.005387947894632816,
0.041127052158117294,
0.01848246529698372,
0.00153228675480932,
0.002560938009992242,
-0.030788272619247437,
-0.035653579980134964,
-0.037307024002075195,
0.007098407484591007,
-0.05298623815178871,
0.01484298799186945,
-0.04728470370173454,
-0.0458403155207634,
0.0605502687394619,
0.02875472605228424,
0.01982232555747032,
-0.007649555336683989,
0.016325386241078377,
-0.03491238132119179,
0.0029742992483079433,
-0.02757640928030014,
0.011754658073186874,
-0.018073856830596924,
0.027006255462765694,
-0.017180616036057472,
0.006062629166990519,
-0.016097325831651688,
0.03791518881917,
-0.0570533312857151,
-0.029609955847263336,
0.02639809250831604,
-0.016895540058612823,
0.023034188896417618,
-0.0069463662803173065,
0.0057585472241044044,
-0.08810767531394958,
0.014130296185612679,
0.012533867731690407,
0.015194582752883434,
-0.0314534530043602,
-0.07301761955022812,
-0.004715641960501671,
-0.03831429407000542,
-0.034893374890089035,
0.029134828597307205,
0.0211716890335083,
0.05397450178861618,
-0.013522133231163025,
0.030123094096779823,
0.04067092761397362,
-0.014519901014864445,
-0.026778195053339005,
-0.033886104822158813,
0.03358202427625656,
0.05914388969540596,
0.027709444984793663,
0.04249541833996773,
-0.0009288745932281017,
0.03667985647916794,
0.032897837460041046,
0.010234249755740166,
-0.020449494943022728,
0.026094011962413788,
0.012400832027196884,
0.012875959277153015,
-0.029761996120214462,
-0.032422710210084915,
0.021532785147428513,
-0.0032403706572949886,
-0.040176793932914734,
-0.025181766599416733,
-0.012457847595214844,
0.025485847145318985,
0.006822833325713873,
0.03882743418216705,
0.028906766325235367,
-0.028260592371225357,
0.048006899654865265,
-0.04131710156798363,
0.010851915925741196,
-0.03704095259308815,
0.07225741446018219,
-0.08088573068380356,
-0.01040529552847147,
-0.04093699902296066,
0.0005772801232524216,
0.0699387937784195,
-0.03392411395907402,
0.014643434435129166,
0.0006066786590963602,
-0.0022948666010051966,
0.03350600227713585,
-0.026854215189814568,
0.03878942131996155,
-0.015916775912046432,
-0.02839362993836403,
-0.055875014513731,
-0.021380744874477386,
-0.0423433780670166,
0.059409961104393005,
0.014310845173895359,
0.0576234832406044,
-0.02833661437034607,
-0.00018292415188625455,
0.08476277440786362,
0.03122539073228836,
-0.027652429416775703,
0.009360014460980892,
0.03780115768313408,
-0.025181766599416733,
-0.014804977923631668,
-0.02493469975888729,
-0.01799783669412136,
0.013712184503674507,
-0.005825065076351166,
0.062184710055589676,
-0.059409961104393005,
-0.00012850717757828534,
-0.029134828597307205,
0.06096838042140007,
-0.01923316717147827,
0.07419593632221222,
0.013047005981206894,
0.04603036865592003,
0.059942103922367096,
-0.003686990588903427,
-0.015280105173587799,
-0.017826789990067482,
0.0005134348175488412,
0.033715058118104935,
0.05868776887655258,
0.08415461331605911,
0.022730106487870216,
0.00499834306538105,
0.010509823448956013,
-0.0349883995950222,
-0.006133898161351681,
0.00010482504148967564,
0.03827628493309021,
-0.030674241483211517,
-0.054240573197603226,
-0.043065570294857025,
-0.05401251092553139,
0.06275486201047897,
0.025846945121884346,
0.03316390886902809,
0.011935207061469555,
-0.014339352957904339,
0.0064617362804710865,
0.030731257051229477,
-0.02010740339756012,
0.040366847068071365,
0.032251667231321335,
-0.025295795872807503,
-0.03299286589026451,
0.029704980552196503,
0.030503196641802788,
-0.06727807968854904,
0.022711101919412613,
0.06264083087444305,
-0.04344567283987999,
-0.009687853045761585,
0.04276148974895477,
0.05560894310474396,
-0.04872909188270569,
-0.024364545941352844,
0.0023732627741992474,
0.04298955202102661,
0.018577491864562035,
-0.04097500815987587,
-0.0000776536762714386,
0.02145676501095295,
0.06750613451004028,
0.002227160846814513,
-0.0030265632085502148,
0.0446619987487793,
0.01766524650156498,
0.020487504079937935,
-0.01828291267156601,
0.00945028942078352,
0.060170166194438934,
-0.009716360829770565,
-0.03246072307229042,
-0.016239862889051437,
0.030123094096779823,
0.04698062315583229,
-0.04196327552199364,
-0.05462067574262619,
-0.04496608301997185,
0.007388235069811344,
0.012239288538694382,
-0.020126407966017723,
-0.03439924120903015,
0.025409827008843422,
0.001130209886468947,
0.047170672565698624,
0.001481210463680327,
0.0276334248483181,
0.005487724673002958,
-0.010595346800982952,
-0.048653073608875275,
0.026246052235364914,
-0.02727232687175274,
-0.003508817870169878,
0.03738304600119591,
-0.014044773764908314,
-0.0423433780670166,
-0.011327043175697327,
-0.04431990906596184,
0.04804490879178047,
-0.0035848382394760847,
-0.041013021022081375,
0.016838524490594864,
0.015318116173148155,
0.0641232281923294,
0.0752602219581604,
-0.055875014513731,
-0.04363572597503662,
-0.00720293540507555,
0.05503878742456436,
0.027063271030783653,
0.03768712654709816,
0.01107997726649046,
-0.02162781171500683,
-0.002391079906374216,
-0.053594399243593216,
-0.021551791578531265,
-0.025770924985408783,
0.03474133461713791,
-0.03373406454920769,
0.04203929379582405,
-0.014880998060107231,
-0.011688140220940113,
-0.06978674978017807,
0.0000031226652481564088,
-0.033715058118104935,
0.035064421594142914,
-0.018045349046587944,
0.04656251147389412,
-0.08803164958953857,
-0.055760983377695084,
0.012828446924686432,
-0.026436103507876396,
-0.026683170348405838,
0.040062762796878815,
0.05287220701575279,
-0.026436103507876396,
-0.006590020842850208,
0.0024243388324975967,
0.006133898161351681,
0.07062297314405441,
-0.03379108011722565,
-0.028070542961359024,
-0.042837511748075485,
0.017627235502004623,
-0.047474756836891174,
-0.03975868225097656,
-0.006247928831726313,
0.007373981177806854,
-0.030674241483211517,
-0.04603036865592003,
0.02934388443827629,
-0.011032463982701302,
-0.038713403046131134,
-0.0011723774950951338,
0.021019646897912025,
0.018320921808481216,
0.014310845173895359,
-0.029495924711227417,
-0.020240439102053642,
-0.013218051753938198,
0.0858270600438118,
0.0014776469906792045,
-0.022673092782497406,
-0.07655256986618042,
-0.012885462492704391,
-0.00932200439274311,
0.0043640476651489735,
0.0349883995950222,
0.029533935710787773,
-0.01551766972988844,
-0.010832910425961018,
-0.00033912237267941236,
0.033011868596076965,
0.03911250829696655,
-0.06838037073612213,
0.027823476120829582,
0.014044773764908314,
0.022426025941967964,
0.021323729306459427,
0.019803320989012718,
0.03878942131996155,
0.01808335818350315,
-0.034190185368061066,
-0.011954211629927158,
0.029647966846823692,
-0.023946434259414673,
-0.041431132704019547,
-0.035710595548152924,
-0.02139974944293499,
0.028013527393341064,
-0.030370160937309265,
0.025447838008403778,
0.014386865310370922,
0.009711609221994877,
0.026645159348845482,
-0.0423433780670166,
-0.0576234832406044,
-0.07005282491445541,
-0.0018197388853877783,
0.02274911291897297,
0.021304724738001823,
-0.013322579674422741,
0.08362247049808502,
-0.009706858545541763,
-0.012989990413188934,
-0.06613776832818985,
-0.06925460696220398,
-0.009645091369748116,
-0.022844137623906136,
-0.036128707230091095,
0.01951824501156807,
-0.008162693120539188,
-0.02987602725625038,
0.005017348099499941,
-0.06214669719338417,
0.00004561967944027856,
0.004803540650755167,
-0.023300260305404663,
-0.06579567492008209,
-0.020506510511040688,
0.04743674397468567,
-0.015660207718610764,
0.00768756540492177,
0.07792093604803085,
-0.04268546774983406,
0.0037558842450380325,
0.009588075801730156,
-0.0154321463778615,
-0.0788331851363182,
-0.09198471158742905,
0.016106827184557915,
0.004335539881139994,
0.014415373094379902,
-0.003444675588980317,
-0.00936476606875658,
-0.006314446683973074,
0.06450333446264267,
-0.0144058708101511,
0.003242746228352189,
0.012125258333981037,
-0.06279287487268448,
-0.01319904625415802,
-0.0005989578203298151,
0.032726794481277466,
0.014310845173895359,
-0.005055358167737722,
-0.03804822266101837,
0.010471813380718231,
-0.03139643743634224,
-0.05883980914950371,
0.03299286589026451,
-0.0464484803378582,
0.051883939653635025,
-0.019214162603020668,
0.07552628964185715,
-0.025086740031838417,
-0.017228128388524055,
0.0611584335565567,
0.03652781620621681,
-0.030788272619247437,
-0.053366340696811676,
0.012334314174950123,
0.06096838042140007,
-0.01970829628407955,
-0.028317607939243317,
0.017000067979097366,
0.013275066390633583,
-0.0014348855474963784,
-0.03949261084198952,
-0.0032593756914138794,
0.040708936750888824,
0.03329694643616676,
0.010728382505476475,
0.033886104822158813,
-0.037953197956085205,
0.0067468127235770226,
0.004535093437880278,
-0.04781684651970863,
0.012362821958959103,
-0.0010227123275399208,
-0.012923472560942173,
0.03132041543722153,
-0.015470156446099281,
-0.05766149237751961,
0.0015702969394624233,
-0.003950686659663916,
-0.03814324736595154,
-0.003121588844805956,
-0.040708936750888824,
-0.02039247937500477,
0.03850434720516205,
0.044357918202877045,
-0.046714551746845245,
-0.031092355027794838,
-0.08491481840610504,
-0.011117987334728241,
-0.004960332997143269,
0.03417118266224861,
-0.04044286534190178,
-0.021665820851922035,
0.0024374048225581646,
-0.014595922082662582,
0.03599567338824272,
0.007678063120692968,
-0.02328125573694706,
0.024592608213424683,
0.023661358281970024,
0.030066078528761864,
0.059067871421575546,
-0.005231155548244715,
-0.01788380555808544,
0.011849683709442616,
-0.01799783669412136,
-0.013655168935656548,
-0.010481316596269608,
0.05416455492377281,
0.01164062786847353,
0.016353894025087357,
-0.032479725778102875,
0.0017199621070176363,
-0.025618882849812508,
0.0279375072568655,
-0.0038057726342231035,
0.022616077214479446,
0.046828582882881165,
-0.03196658939123154,
-0.010101214051246643,
0.03004707396030426,
0.0008522602147422731,
-0.006523502990603447,
0.0458403155207634,
0.0001958416833076626,
0.015622197650372982,
-0.12786635756492615,
-0.025409827008843422,
0.0015655456809327006,
-0.06184261664748192,
-0.020202428102493286,
0.00496983528137207,
0.043711744248867035,
-0.0038200262933969498,
-0.06659389287233353,
-0.02521977573633194,
-0.011954211629927158,
0.02122870460152626,
0.049831390380859375,
0.04097500815987587,
-0.025428831577301025,
-0.05534287169575691,
0.04656251147389412,
0.007169676478952169,
0.05249210447072983,
0.004808291792869568,
-0.040062762796878815,
0.04872909188270569,
-0.03751607984304428,
-0.01901460811495781,
0.025485847145318985,
-0.03479835018515587,
-0.021133678033947945,
0.050819654017686844,
-0.02398444339632988,
0.01260988786816597,
0.06674593687057495,
-0.006385715678334236,
-0.0343802385032177,
-0.039188530296087265,
0.056065063923597336,
-0.051997970789670944,
-0.013436609879136086,
-0.005188393872231245,
-0.027709444984793663,
-0.06119644269347191,
0.024421561509370804,
-0.03027513436973095,
0.002712978981435299,
0.006680294871330261,
-0.01890057884156704,
-0.03373406454920769,
-0.05796557292342186,
0.03787717595696449,
0.05051557347178459,
0.06906455755233765,
-0.06492144614458084,
0.003028938779607415,
0.010861418209969997,
0.037839166820049286,
0.00780634768307209,
0.014919008128345013,
0.031605493277311325,
0.0006675543845631182,
-0.049413274973630905,
-0.07187731564044952,
0.019309187307953835,
-0.013674174435436726,
0.04846302047371864,
0.001331545296125114,
-0.0623367503285408,
0.0329168438911438,
-0.007331219967454672,
-0.01766524650156498,
0.047474756836891174,
-0.0009128390229307115,
-0.02170383185148239,
-0.04040485620498657,
0.05256812274456024,
-0.026246052235364914,
0.0023732627741992474,
-0.03861837461590767,
0.020677555352449417,
-0.030142098665237427,
-0.049185216426849365,
-0.0036109702195972204,
-0.013180041685700417,
0.008884887211024761,
0.03643278777599335,
0.0013861849438399076,
0.006186162121593952,
0.008637821301817894,
-0.011659632436931133,
0.06362909823656082,
0.036660850048065186,
0.08080971240997314,
0.010889925993978977,
-0.015242095105350018,
-0.015831254422664642,
0.010880423709750175,
0.00463487021625042,
0.013161036185920238,
0.00773032708093524,
0.022844137623906136,
0.06514950841665268,
-0.05796557292342186,
-0.007559281308203936,
0.01478597242385149,
-0.0007768337382003665,
0.046714551746845245,
0.015080551616847515,
-0.0429135300219059,
-0.08202604204416275,
0.041431132704019547,
-0.05857373774051666,
-0.022121943533420563,
0.013645666651427746,
-0.11790768057107925,
-0.03502641245722771,
-0.08050563186407089,
-0.025010719895362854,
0.04333164170384407,
-0.026493119075894356,
0.032726794481277466,
-0.020012376829981804,
0.027956511825323105,
0.014016265980899334,
0.04831098020076752,
0.032631766051054,
-0.011593114584684372,
-0.01158361230045557,
0.02575191855430603,
0.011488586664199829,
0.003062197705730796,
0.05344235897064209,
0.03451327234506607,
-0.08202604204416275,
0.01657245308160782,
-0.002648836700245738,
0.005326181184500456,
0.015536674298346043,
-0.04105103015899658,
0.034076154232025146,
-0.03732603043317795,
0.015280105173587799,
0.011270028539001942,
-0.01396875362843275,
0.0208676066249609,
0.030712252482771873,
0.06317297369241714,
-0.029324879869818687,
-0.03968266397714615,
0.03802921622991562,
0.01795032247900963,
0.0552668496966362,
-0.0332019217312336,
0.009535811841487885,
0.022958168759942055,
-0.051655881106853485,
-0.0029600453563034534,
0.0358436293900013,
0.06990078091621399,
0.09008420258760452,
0.0006990315741859376,
-0.009093943051993847,
0.019898345693945885,
-0.02628406137228012,
-0.07605843245983124,
-0.02510574646294117,
0.015251598320901394,
0.02328125573694706,
-0.022673092782497406,
-0.013056508265435696,
0.02157079614698887,
0.0108709204941988,
-0.03576761111617088,
-0.014491393230855465,
0.03517845273017883,
-0.006366710644215345,
-0.013066010549664497,
-0.028317607939243317,
-0.016943052411079407,
-0.0015988046070560813,
0.002741486532613635,
0.004608738236129284,
0.0029814259614795446,
0.04641047120094299,
-0.04245740920305252,
0.07738879323005676,
-0.03481735661625862,
0.07510817795991898
] |
723,289
|
namedtuple_PushReceipt
|
__new__
|
Create new instance of PushReceipt(id, status, message, details)
|
from builtins import function
|
(_cls, id, status, message, details)
|
[
0.009987438097596169,
-0.03448875993490219,
0.019406022503972054,
0.011531468480825424,
0.012425380758941174,
0.06140364706516266,
-0.0008573431405238807,
0.005846999119967222,
-0.012457886710762978,
-0.02476949617266655,
-0.015155876986682415,
0.03673166781663895,
0.0068709347397089005,
0.005513813346624374,
-0.06845743209123611,
-0.00024112776736728847,
0.03549644351005554,
0.0906914621591568,
-0.028101351112127304,
-0.002236812375485897,
-0.06644206494092941,
0.018658388406038284,
0.036829184740781784,
-0.01482269074767828,
0.03001919947564602,
0.1003132089972496,
0.037869375199079514,
-0.04498816654086113,
0.010848844423890114,
-0.052789583802223206,
-0.010718820616602898,
-0.04229017719626427,
0.004028700292110443,
-0.0029092782642692327,
-0.0009629873093217611,
-0.04924644157290459,
0.023127948865294456,
0.04050235450267792,
-0.061208613216876984,
-0.07209809124469757,
0.03507386893033981,
0.01135268621146679,
-0.011247041635215282,
0.003183546708896756,
-0.008768467232584953,
-0.00689125107601285,
-0.02332298457622528,
-0.0341637022793293,
0.01773197017610073,
0.010336876846849918,
0.006306144874542952,
-0.037056729197502136,
0.06715719401836395,
-0.014066928997635841,
-0.015350911766290665,
0.07482858747243881,
0.01045877393335104,
0.019666070118546486,
-0.03968970477581024,
0.04989656060934067,
-0.03315601870417595,
0.023810572922229767,
-0.026394791901111603,
-0.041997626423835754,
0.028020087629556656,
0.03588651493191719,
-0.04352540150284767,
-0.017244379967451096,
-0.057340409606695175,
0.029889175668358803,
-0.06107858940958977,
0.014042549766600132,
0.0058510624803602695,
-0.030230488628149033,
0.055910151451826096,
-0.01782948710024357,
-0.09316191077232361,
-0.01740691065788269,
0.009174791164696217,
-0.022039001807570457,
0.01517212949693203,
-0.036829184740781784,
-0.012864210642874241,
0.033643607050180435,
-0.027678774669766426,
-0.040534857660532,
-0.03799939900636673,
0.001794935204088688,
-0.012669174931943417,
0.009207296185195446,
-0.05431736260652542,
-0.016456112265586853,
-0.0481412410736084,
0.027044910937547684,
0.003520795376971364,
-0.006586508359760046,
0.01877215877175331,
-0.02301417849957943,
0.03377363085746765,
-0.04784868657588959,
0.061858732253313065,
0.01950354129076004,
0.007000958546996117,
-0.05464242026209831,
0.040567364543676376,
0.04784868657588959,
0.00470929266884923,
0.015342785976827145,
-0.023599283769726753,
0.007021274883300066,
-0.046515945345163345,
0.010028070770204067,
0.016919322311878204,
-0.014497632160782814,
-0.004473624750971794,
-0.03289597108960152,
0.02541961520910263,
0.004266399424523115,
0.02199024148285389,
0.012766692787408829,
0.01708185113966465,
0.04313533008098602,
0.0028523928485810757,
-0.010182473808526993,
0.10252360999584198,
0.05483745411038399,
0.02296542003750801,
0.013953158631920815,
0.05096925422549248,
-0.0007715072715654969,
0.004384233616292477,
0.028020087629556656,
-0.04573580250144005,
0.03250590339303017,
-0.04560577869415283,
-0.010588797740638256,
-0.01585475355386734,
0.0447281189262867,
0.005964832846075296,
0.03832445666193962,
-0.041997626423835754,
0.0013682952849194407,
0.04118497669696808,
-0.009126031771302223,
-0.036406610161066055,
-0.014050675556063652,
-0.003236368764191866,
0.02959662303328514,
0.0005774876335635781,
0.011173903942108154,
-0.0058510624803602695,
0.031904540956020355,
0.031937047839164734,
0.020478717982769012,
0.005278145894408226,
0.05018911138176918,
0.05301712453365326,
-0.05262705311179161,
0.016634894534945488,
-0.053439702838659286,
0.012547277845442295,
0.07105790078639984,
-0.06007090583443642,
-0.014522011391818523,
0.017016839236021042,
-0.01410756167024374,
0.023989355191588402,
-0.036959208548069,
0.021795207634568214,
0.004071364179253578,
-0.014660161919891834,
-0.04261523857712746,
0.018317075446248055,
0.04560577869415283,
0.0633540004491806,
0.037869375199079514,
-0.04524821415543556,
0.09023638069629669,
0.005241576582193375,
0.029060276225209236,
-0.0034639101941138506,
0.0009589241235516965,
-0.11110517382621765,
0.00977614987641573,
0.015789741650223732,
0.05022161826491356,
0.040534857660532,
-0.02060874179005623,
0.026573574170470238,
-0.03565897420048714,
-0.029434094205498695,
0.011986550875008106,
0.052497029304504395,
0.013205522671341896,
-0.006318334490060806,
-0.06793733686208725,
-0.05919324606657028,
0.0022510336712002754,
-0.009597367607057095,
0.0010102224769070745,
-0.005107489880174398,
0.01781323365867138,
0.022819142788648605,
0.05613769218325615,
0.00741134537383914,
0.004229830577969551,
-0.02790631726384163,
0.006436168681830168,
-0.06276889890432358,
-0.02229904755949974,
0.04632091149687767,
-0.059778351336717606,
0.010133714415133,
0.07339832931756973,
-0.001040188828483224,
0.007716088555753231,
0.02121010050177574,
-0.011060132645070553,
0.009288561530411243,
0.009759897366166115,
0.07073283940553665,
0.028458917513489723,
0.009719264693558216,
-0.024184390902519226,
0.09621746838092804,
0.005960769485682249,
-0.01062130369246006,
0.018057027831673622,
0.004146534018218517,
-0.011677744798362255,
0.0557476207613945,
-0.012782946228981018,
-0.00940233189612627,
-0.023404249921441078,
0.006716531701385975,
-0.033221032470464706,
0.03910459950566292,
0.04918142780661583,
0.007691708859056234,
0.007752657402306795,
-0.0006435152608901262,
0.040534857660532,
0.04989656060934067,
0.04599585011601448,
0.0240706205368042,
0.006147678475826979,
0.013774375431239605,
0.03998225927352905,
-0.061891235411167145,
-0.0030718077905476093,
0.015692224726080894,
-0.027126174420118332,
0.015383417718112469,
-0.029466599225997925,
0.007716088555753231,
0.007472293917089701,
0.019942371174693108,
0.002507017692551017,
0.018382087349891663,
-0.004485814366489649,
-0.00873596128076315,
-0.047946203500032425,
-0.033269789069890976,
0.0019818441942334175,
-0.04541074484586716,
-0.03209957852959633,
-0.03102688305079937,
0.048596322536468506,
0.014326975680887699,
-0.0019249588949605823,
0.04576830938458443,
-0.024119378998875618,
-0.004380170255899429,
0.005623520817607641,
-0.06228130683302879,
0.01916222833096981,
-0.011433950625360012,
0.014140067622065544,
0.046580955386161804,
-0.03591902181506157,
0.01183214783668518,
0.01706559769809246,
-0.08210990577936172,
0.013684984296560287,
-0.0823049396276474,
0.007569811772555113,
0.01062130369246006,
-0.051359325647354126,
0.01885342225432396,
-0.004233893472701311,
0.03734927996993065,
0.0041018384508788586,
0.04173757880926132,
0.008687201887369156,
0.0656944289803505,
0.07456853985786438,
-0.022120265290141106,
-0.06517433375120163,
0.06276889890432358,
0.005591014865785837,
0.006761227734386921,
-0.03910459950566292,
-0.01851211115717888,
0.02723994478583336,
-0.024119378998875618,
-0.045085687190294266,
0.06062350794672966,
-0.008874110877513885,
-0.08041960000991821,
0.017992015928030014,
-0.030945617705583572,
-0.007049717474728823,
-0.053829774260520935,
-0.04079490527510643,
0.04300530627369881,
0.03131943568587303,
-0.023778067901730537,
0.018008269369602203,
-0.02342050150036812,
0.05054667592048645,
-0.017959510907530785,
-0.00454676290974021,
0.07053780555725098,
0.05470743402838707,
-0.020478717982769012,
-0.04014478996396065,
0.01984485238790512,
-0.04498816654086113,
0.056690290570259094,
0.03520389273762703,
-0.09251179546117783,
0.015919765457510948,
0.07924938946962357,
0.040664881467819214,
-0.014887702651321888,
0.06657208502292633,
0.02925531193614006,
0.014684541150927544,
-0.025614650920033455,
-0.012327862903475761,
-0.013530581258237362,
0.055617596954107285,
-0.002413563197478652,
0.008410901762545109,
-0.0330747552216053,
-0.0012636668980121613,
-0.038129422813653946,
0.01043439470231533,
0.10525410622358322,
-0.0731382817029953,
0.031872037798166275,
-0.030604306608438492,
-0.034358736127614975,
0.00031490091350860894,
0.03216458857059479,
0.036049045622348785,
-0.009711137972772121,
0.013319293037056923,
-0.02680111490190029,
-0.011409571394324303,
0.0663120374083519,
-0.062248799949884415,
-0.011596480384469032,
0.005656026769429445,
0.02231530100107193,
-0.005436611827462912,
0.021405136212706566,
0.014213205315172672,
0.019097216427326202,
-0.017927004024386406,
0.001064568292349577,
-0.025175821036100388,
-0.059388283640146255,
-0.04173757880926132,
-0.04768615588545799,
-0.024119378998875618,
0.02995418757200241,
0.004936833865940571,
-0.06231381371617317,
0.051781900227069855,
0.057372916489839554,
0.03448875993490219,
-0.0023505829740315676,
-0.033286042511463165,
0.005903884302824736,
0.003770684590563178,
-0.026573574170470238,
0.03213208541274071,
-0.032197095453739166,
0.014408241026103497,
-0.014668287709355354,
-0.011060132645070553,
0.017179368063807487,
0.012457886710762978,
0.008256498724222183,
-0.008849731646478176,
-0.02472073771059513,
-0.05643024668097496,
-0.0019980971701443195,
0.04033982381224632,
0.022802889347076416,
0.07086286693811417,
0.0013347736094146967,
0.04768615588545799,
0.016407353803515434,
-0.0034070247784256935,
0.0349438451230526,
0.016919322311878204,
0.017341898754239082,
-0.028150111436843872,
0.02470448426902294,
-0.050416652113199234,
-0.0970626249909401,
-0.061468660831451416,
0.001500350539572537,
0.024119378998875618,
-0.026281021535396576,
-0.04775116965174675,
-0.01771571673452854,
-0.03031175397336483,
0.027743786573410034,
-0.060851048678159714,
-0.011889033950865269,
0.04248521476984024,
-0.020722512155771255,
-0.03302599489688873,
0.000788268109317869,
0.015269647352397442,
-0.02615099772810936,
0.0324571430683136,
-0.047166064381599426,
0.011417698115110397,
-0.0051562488079071045,
-0.06163118779659271,
0.03578899800777435,
-0.024558208882808685,
-0.05483745411038399,
-0.004372043535113335,
0.0787292942404747,
0.01655363105237484,
0.041315000504255295,
0.05860814079642296,
0.020755019038915634,
-0.043720439076423645,
0.017179368063807487,
0.0005673295818269253,
-0.005530066322535276,
0.08445033431053162,
-0.014993347227573395,
-0.023209214210510254,
-0.00817523431032896,
-0.004081522114574909,
0.000427401828346774,
0.004863695707172155,
0.054577410221099854,
0.0006074540433473885,
-0.047166064381599426,
0.027044910937547684,
-0.011563974432647228,
-0.0042542098090052605,
-0.03578899800777435,
0.023209214210510254,
-0.03861701115965843,
-0.020494971424341202,
-0.02680111490190029,
0.09381203353404999,
-0.010377509519457817,
0.01878841035068035,
0.007569811772555113,
0.015123371034860611,
0.018967192620038986,
0.006517433095723391,
-0.03978722169995308,
-0.029450347647070885,
0.05275707691907883,
0.07183804363012314,
-0.059453293681144714,
-0.017536934465169907,
0.04459809511899948,
-0.02306293696165085,
-0.03211583197116852,
-0.05812055245041847,
0.017861992120742798,
0.02342050150036812,
-0.03458628058433533,
0.02122635394334793,
0.02579343318939209,
-0.016919322311878204,
0.01981234736740589,
-0.048628829419612885,
0.011035753414034843,
0.11806143075227737,
0.03419620916247368,
-0.02372930757701397,
0.026264768093824387,
0.013335546478629112,
-0.009857414290308952,
0.02823137491941452,
-0.013644352555274963,
-0.014879576861858368,
0.0019503540825098753,
0.034683797508478165,
-0.06787232309579849,
0.05828308314085007,
0.03845448046922684,
0.049311451613903046,
0.053862277418375015,
-0.026914887130260468,
-0.05122930184006691,
-0.04560577869415283,
-0.00017040202510543168,
0.01392065268009901,
-0.01813829317688942,
0.011840274557471275,
0.042745258659124374,
-0.02719118632376194,
-0.025159567594528198,
0.012149080634117126,
-0.07885931432247162,
0.005050604231655598,
0.010686314664781094,
-0.05470743402838707,
-0.04560577869415283,
-0.07840423285961151,
-0.009703011251986027,
-0.01953604631125927,
-0.027451233938336372,
0.038129422813653946,
-0.0009040703880600631,
0.040534857660532,
0.034293726086616516,
0.024135632440447807,
-0.0013886115048080683,
-0.01309175230562687,
-0.019633565098047256,
0.0967375636100769,
-0.060168422758579254,
-0.022754130885004997,
0.013010486960411072,
0.03027924709022045,
-0.0299704410135746,
-0.013693111017346382,
0.018642134964466095,
0.04391547292470932,
0.01916222833096981,
-0.021470148116350174,
-0.07528366893529892,
-0.014895829372107983,
-0.00885785836726427,
0.00972739141434431,
-0.029206551611423492,
-0.01912972331047058,
-0.016935573890805244,
0.0015643464867025614,
0.02964538149535656,
-0.055910151451826096,
0.004128249362111092,
-0.02645980380475521,
-0.047588638961315155,
-0.021470148116350174,
-0.01609042100608349,
0.0288814939558506,
0.011271421797573566,
0.026654839515686035,
-0.06806735694408417,
-0.005115616135299206,
0.008402775973081589,
0.0355614572763443,
0.007984261959791183,
-0.061533670872449875,
0.016147306188941002,
-0.004835252650082111,
0.06163118779659271,
-0.038194432854652405,
-0.04014478996396065,
0.07014773786067963,
0.024493196979165077,
-0.06462173163890839,
0.04105495288968086,
-0.042355190962553024,
-0.07248815894126892,
-0.025370856747031212,
0.005115616135299206,
-0.037121739238500595,
-0.027483738958835602,
-0.012409128248691559,
-0.010158094577491283,
0.052106961607933044,
0.009321067482233047,
-0.06663709878921509,
-0.004940897226333618,
-0.0034314042422920465,
0.007183804176747799,
-0.051749397069215775,
-0.012214092537760735,
-0.04105495288968086,
-0.04976653680205345,
0.0535697266459465,
-0.016252951696515083,
-0.047881193459033966,
0.009589240886271,
0.014749553054571152,
-0.0036487875040620565,
-0.028328893706202507,
0.04206263646483421,
0.030799342319369316,
0.0033460762351751328,
-0.022250289097428322,
-0.00722037348896265,
-0.01479831151664257,
-0.032619673758745193,
-0.029905429109930992,
-0.02335548959672451,
-0.017325645312666893,
0.06566192209720612,
0.05252953618764877,
0.022429071366786957,
-0.011401444673538208,
-0.004684912972152233,
0.028361398726701736,
-0.04359041526913643,
0.013449316844344139,
-0.01588725857436657,
-0.02195773646235466,
0.07274820655584335,
0.02654106914997101,
0.025500880554318428,
0.005387853365391493,
0.05617019906640053,
0.0017360183410346508,
-0.0447281189262867,
-0.010588797740638256,
0.0883510410785675,
-0.06276889890432358,
-0.014977093786001205,
-0.02444443851709366,
0.006846555508673191,
0.01097886823117733,
-0.010019944049417973,
0.014855196699500084,
-0.010149967856705189,
-0.022900408133864403,
-0.024233149364590645,
-0.03926713019609451,
0.02749999240040779,
0.013717490248382092,
-0.04417552053928375,
0.003642692696303129,
0.047166064381599426,
-0.05470743402838707,
0.007553558796644211,
0.02715868130326271,
-0.0042379568330943584,
0.08067964762449265,
-0.02472073771059513,
-0.025533385574817657,
-0.00340499309822917,
-0.052106961607933044,
0.07339832931756973,
-0.03825944662094116,
-0.007691708859056234,
-0.024834508076310158,
-0.024639474228024483,
0.06702716648578644,
0.005014035385102034,
-0.040209800004959106,
0.013806881383061409,
-0.03237587958574295,
-0.004351727664470673,
-0.007667329628020525,
0.02962912991642952,
-0.0341637022793293,
0.0040794904343783855,
-0.0543498657643795,
-0.02608598582446575,
0.018300822004675865,
0.02751624584197998,
0.05786050483584404,
0.0009604478254914284,
-0.003126661293208599,
-0.043037813156843185,
-0.023209214210510254,
-0.020624995231628418,
-0.056560270488262177,
-0.03721925616264343,
0.013449316844344139,
-0.04121748358011246,
0.03232711926102638,
-0.003963688388466835,
-0.032245855778455734,
-0.0017634452087804675,
0.0018802632112056017,
-0.026719851419329643,
-0.02504579722881317,
-0.0226728655397892,
0.03809691593050957,
-0.011921538971364498,
-0.027288705110549927,
0.002153516048565507,
-0.017569439485669136,
0.033269789069890976,
0.014977093786001205,
0.005050604231655598,
-0.004008383955806494,
0.02476949617266655,
-0.03903958946466446,
-0.03133568912744522,
-0.02199024148285389,
-0.04072989523410797,
0.026020973920822144,
0.01239287480711937,
-0.030604306608438492,
-0.01648861914873123,
0.030896859243512154,
0.04209514334797859,
-0.05262705311179161,
-0.02964538149535656,
0.07885931432247162,
0.030506787821650505,
-0.00977614987641573,
0.028653951361775398,
-0.037154246121644974,
0.03754431754350662,
0.015399671159684658,
0.06982267647981644,
0.02366429567337036,
-0.06007090583443642,
0.018008269369602203,
-0.044858142733573914,
0.01585475355386734,
-0.004136376082897186,
0.03377363085746765,
-0.04043734073638916,
0.06283390522003174,
0.012685428373515606,
-0.020364947617053986,
-0.010369382798671722,
0.02959662303328514,
-0.020397452637553215,
-0.03380613774061203,
-0.03877954185009003,
-0.06302894651889801,
0.002104757120832801,
-0.015180256217718124,
0.024623220786452293,
-0.019422275945544243,
0.021746447309851646,
-0.024655725806951523,
0.024883268401026726,
0.07248815894126892,
0.006115172524005175,
0.048628829419612885,
0.02299792505800724,
-0.019292252138257027,
0.045865826308727264,
-0.016066042706370354,
-0.01776447519659996,
0.004126217681914568,
-0.03179077059030533,
-0.02758125774562359,
-0.09940304607152939,
0.031481966376304626,
-0.015724729746580124,
-0.02548462711274624,
0.05617019906640053,
-0.02964538149535656,
0.003228242276236415,
0.01674054004251957
] |
723,292
|
collections
|
_replace
|
Return a new PushReceipt object replacing specified fields with new values
|
def namedtuple(typename, field_names, *, rename=False, defaults=None, module=None):
"""Returns a new subclass of tuple with named fields.
>>> Point = namedtuple('Point', ['x', 'y'])
>>> Point.__doc__ # docstring for the new class
'Point(x, y)'
>>> p = Point(11, y=22) # instantiate with positional args or keywords
>>> p[0] + p[1] # indexable like a plain tuple
33
>>> x, y = p # unpack like a regular tuple
>>> x, y
(11, 22)
>>> p.x + p.y # fields also accessible by name
33
>>> d = p._asdict() # convert to a dictionary
>>> d['x']
11
>>> Point(**d) # convert from a dictionary
Point(x=11, y=22)
>>> p._replace(x=100) # _replace() is like str.replace() but targets named fields
Point(x=100, y=22)
"""
# Validate the field names. At the user's option, either generate an error
# message or automatically replace the field name with a valid name.
if isinstance(field_names, str):
field_names = field_names.replace(',', ' ').split()
field_names = list(map(str, field_names))
typename = _sys.intern(str(typename))
if rename:
seen = set()
for index, name in enumerate(field_names):
if (not name.isidentifier()
or _iskeyword(name)
or name.startswith('_')
or name in seen):
field_names[index] = f'_{index}'
seen.add(name)
for name in [typename] + field_names:
if type(name) is not str:
raise TypeError('Type names and field names must be strings')
if not name.isidentifier():
raise ValueError('Type names and field names must be valid '
f'identifiers: {name!r}')
if _iskeyword(name):
raise ValueError('Type names and field names cannot be a '
f'keyword: {name!r}')
seen = set()
for name in field_names:
if name.startswith('_') and not rename:
raise ValueError('Field names cannot start with an underscore: '
f'{name!r}')
if name in seen:
raise ValueError(f'Encountered duplicate field name: {name!r}')
seen.add(name)
field_defaults = {}
if defaults is not None:
defaults = tuple(defaults)
if len(defaults) > len(field_names):
raise TypeError('Got more default values than field names')
field_defaults = dict(reversed(list(zip(reversed(field_names),
reversed(defaults)))))
# Variables used in the methods and docstrings
field_names = tuple(map(_sys.intern, field_names))
num_fields = len(field_names)
arg_list = ', '.join(field_names)
if num_fields == 1:
arg_list += ','
repr_fmt = '(' + ', '.join(f'{name}=%r' for name in field_names) + ')'
tuple_new = tuple.__new__
_dict, _tuple, _len, _map, _zip = dict, tuple, len, map, zip
# Create all the named tuple methods to be added to the class namespace
namespace = {
'_tuple_new': tuple_new,
'__builtins__': {},
'__name__': f'namedtuple_{typename}',
}
code = f'lambda _cls, {arg_list}: _tuple_new(_cls, ({arg_list}))'
__new__ = eval(code, namespace)
__new__.__name__ = '__new__'
__new__.__doc__ = f'Create new instance of {typename}({arg_list})'
if defaults is not None:
__new__.__defaults__ = defaults
@classmethod
def _make(cls, iterable):
result = tuple_new(cls, iterable)
if _len(result) != num_fields:
raise TypeError(f'Expected {num_fields} arguments, got {len(result)}')
return result
_make.__func__.__doc__ = (f'Make a new {typename} object from a sequence '
'or iterable')
def _replace(self, /, **kwds):
result = self._make(_map(kwds.pop, field_names, self))
if kwds:
raise ValueError(f'Got unexpected field names: {list(kwds)!r}')
return result
_replace.__doc__ = (f'Return a new {typename} object replacing specified '
'fields with new values')
def __repr__(self):
'Return a nicely formatted representation string'
return self.__class__.__name__ + repr_fmt % self
def _asdict(self):
'Return a new dict which maps field names to their values.'
return _dict(_zip(self._fields, self))
def __getnewargs__(self):
'Return self as a plain tuple. Used by copy and pickle.'
return _tuple(self)
# Modify function metadata to help with introspection and debugging
for method in (
__new__,
_make.__func__,
_replace,
__repr__,
_asdict,
__getnewargs__,
):
method.__qualname__ = f'{typename}.{method.__name__}'
# Build-up the class namespace dictionary
# and use type() to build the result class
class_namespace = {
'__doc__': f'{typename}({arg_list})',
'__slots__': (),
'_fields': field_names,
'_field_defaults': field_defaults,
'__new__': __new__,
'_make': _make,
'_replace': _replace,
'__repr__': __repr__,
'_asdict': _asdict,
'__getnewargs__': __getnewargs__,
'__match_args__': field_names,
}
for index, name in enumerate(field_names):
doc = _sys.intern(f'Alias for field number {index}')
class_namespace[name] = _tuplegetter(index, doc)
result = type(typename, (tuple,), class_namespace)
# For pickling to work, the __module__ variable needs to be set to the frame
# where the named tuple is created. Bypass this step in environments where
# sys._getframe is not defined (Jython for example) or sys._getframe is not
# defined for arguments greater than 0 (IronPython), or where the user has
# specified a particular module.
if module is None:
try:
module = _sys._getframe(1).f_globals.get('__name__', '__main__')
except (AttributeError, ValueError):
pass
if module is not None:
result.__module__ = module
return result
|
(self, /, **kwds)
|
[
0.054226528853178024,
0.0013675098307430744,
-0.015400581061840057,
-0.035684023052453995,
-0.03284083679318428,
-0.03329410031437874,
0.0028148554265499115,
0.021509306505322456,
0.020942730829119682,
-0.04615023732185364,
-0.04219450056552887,
0.05706971138715744,
0.004509434569627047,
0.0632917508482933,
0.010857667773962021,
0.033438317477703094,
-0.029812229797244072,
0.05636921897530556,
-0.06543444097042084,
-0.032346371561288834,
0.019016370177268982,
0.015884745866060257,
0.03345892205834389,
0.05978928133845329,
0.032016728073358536,
0.011012188158929348,
0.018810342997312546,
0.010435310192406178,
0.0018233463633805513,
-0.005974807310849428,
-0.0041514611802995205,
-0.015822937712073326,
-0.030162476003170013,
-0.010754653252661228,
0.0028251567855477333,
-0.06081942096352577,
-0.05006476491689682,
0.05855311453342438,
0.04932306706905365,
-0.00503738084807992,
0.0639510452747345,
-0.09955265372991562,
-0.049529094249010086,
-0.06098424270749092,
-0.0017821408109739423,
0.023384159430861473,
0.022704267874360085,
-0.011455148458480835,
-0.024249477311968803,
-0.05344362184405327,
0.02354898303747177,
0.006376561708748341,
0.015802334994077682,
-0.004226146265864372,
-0.023157529532909393,
-0.0009734815685078502,
-0.0018233463633805513,
0.06184955686330795,
-0.00689163152128458,
0.023095721378922462,
-0.0021581416949629784,
0.05760538578033447,
-0.015070936642587185,
0.010445611551404,
-0.054226528853178024,
-0.024208271875977516,
-0.00925580132752657,
-0.07346952706575394,
-0.022766076028347015,
0.001263851998373866,
-0.008977663703262806,
-0.0008897827356122434,
0.018748532980680466,
0.024208271875977516,
0.07627150416374207,
0.04231812059879303,
-0.0292353518307209,
-0.010888571850955486,
0.04425477981567383,
-0.05154816806316376,
-0.016626447439193726,
-0.013402110897004604,
-0.08076291531324387,
-0.04351308196783066,
-0.03422122448682785,
0.039474934339523315,
-0.05051802843809128,
-0.0005160353612154722,
0.030162476003170013,
-0.0017138940747827291,
-0.05311397835612297,
0.01599806174635887,
-0.0037342547439038754,
0.03335590660572052,
-0.05167178437113762,
-0.08661410212516785,
0.0038218165282160044,
-0.0379297249019146,
-0.01288704201579094,
0.035807639360427856,
0.024991177022457123,
-0.04582059383392334,
-0.0918884202837944,
-0.021056044846773148,
-0.008730430155992508,
-0.019778672605752945,
-0.01953143998980522,
-0.015163648873567581,
0.03593125566840172,
-0.03265541419386864,
-0.04318343475461006,
-0.05760538578033447,
-0.029894640669226646,
0.060943037271499634,
-0.004004666116088629,
-0.034015197306871414,
0.021117854863405228,
-0.02600071392953396,
-0.03065694309771061,
-0.031089602038264275,
0.027113264426589012,
0.018810342997312546,
-0.06119026988744736,
0.049117036163806915,
0.008452292531728745,
-0.008951909840106964,
0.061355091631412506,
-0.02600071392953396,
0.03893926367163658,
-0.0032758426386862993,
0.0229721050709486,
0.003005431266501546,
-0.042400531470775604,
0.05682247877120972,
0.017914120107889175,
0.03840358927845955,
0.04989994317293167,
0.05031199753284454,
-0.06984344124794006,
0.03768249228596687,
0.042009077966213226,
-0.012145341373980045,
0.06559926271438599,
0.035457391291856766,
-0.00186583970207721,
-0.04623264819383621,
0.013299097307026386,
0.0069482889957726,
-0.037517670542001724,
0.030121270567178726,
-0.03300566226243973,
-0.0359930656850338,
0.018903054296970367,
0.022354021668434143,
-0.04639746993780136,
-0.005114641040563583,
-0.011156408116221428,
-0.06403345614671707,
-0.02319873496890068,
-0.04151460900902748,
0.018583711236715317,
-0.05323759466409683,
-0.01613198034465313,
-0.015699321404099464,
0.05529787391424179,
0.02136508747935295,
0.043389465659856796,
-0.08529552817344666,
-0.013659645803272724,
-0.033561937510967255,
-0.00039274056325666606,
0.04126737639307976,
0.026392167434096336,
0.044172368943691254,
-0.034138813614845276,
0.019428426399827003,
-0.007087357807904482,
0.024826355278491974,
0.02400224469602108,
-0.020458564162254333,
0.03879504278302193,
-0.014380743727087975,
-0.06197317689657211,
0.008895251899957657,
0.0584707036614418,
0.031831301748752594,
-0.0020422509405761957,
0.06230282038450241,
0.05224866047501564,
0.026845427230000496,
0.016059869900345802,
-0.040051814168691635,
0.00574302626773715,
-0.0066289459355175495,
0.0086737722158432,
0.06300331652164459,
-0.06353898346424103,
0.04615023732185364,
0.017625682055950165,
0.11043092608451843,
-0.02756652608513832,
0.03317048400640488,
0.0292353518307209,
-0.017440257593989372,
0.03284083679318428,
-0.02946198172867298,
0.05492702126502991,
-0.0510949045419693,
-0.03156346455216408,
-0.033788565546274185,
0.08335886895656586,
-0.02140629291534424,
0.007689989171922207,
0.01954174041748047,
-0.010816461406648159,
-0.07256300747394562,
0.05356723815202713,
-0.02985343523323536,
0.0063302055932581425,
-0.004174639005213976,
0.08817991614341736,
0.023404762148857117,
-0.02612433023750782,
-0.005861492361873388,
0.041370391845703125,
-0.04878739267587662,
-0.016142280772328377,
-0.02911173366010189,
-0.03840358927845955,
-0.06386863440275192,
0.06271487474441528,
-0.012835534289479256,
-0.02904992550611496,
-0.019263602793216705,
0.023961037397384644,
-0.01628650166094303,
0.00924034882336855,
-0.035745829343795776,
-0.023178132250905037,
-0.02628915198147297,
0.027834361419081688,
0.035745829343795776,
-0.033850375562906265,
-0.009848130866885185,
-0.009745117276906967,
-0.06745351850986481,
-0.027813758701086044,
0.028205212205648422,
-0.019778672605752945,
0.007746647112071514,
-0.01667795330286026,
0.014978224411606789,
-0.010940078645944595,
0.0327790305018425,
0.00432915985584259,
-0.024702738970518112,
-0.0356634184718132,
-0.013536029495298862,
-0.014277729205787182,
-0.0277931559830904,
0.00414631050080061,
-0.05834708362817764,
0.030739353969693184,
0.0449964813888073,
0.05121852084994316,
-0.027710745111107826,
0.004687133245170116,
-0.025691671296954155,
0.013196083717048168,
0.015276964753866196,
0.12032026052474976,
0.03628150373697281,
-0.015482992865145206,
0.01629680208861828,
-0.04540853574872017,
-0.03345892205834389,
0.016471926122903824,
-0.025217808783054352,
0.02278667874634266,
-0.05113610997796059,
-0.008874649181962013,
-0.022889694198966026,
-0.022869091480970383,
-0.011300627142190933,
0.022766076028347015,
0.061355091631412506,
-0.05529787391424179,
0.030759956687688828,
-0.00848319660872221,
-0.00016047638200689107,
0.045161303132772446,
-0.03286144137382507,
0.013412412256002426,
-0.03197552263736725,
0.0004651722265407443,
0.024105258285999298,
-0.08570758253335953,
0.020510071888566017,
0.023384159430861473,
-0.06873089075088501,
-0.02497057430446148,
0.018161354586482048,
0.041205570101737976,
0.03885685279965401,
0.05167178437113762,
-0.0417618453502655,
-0.027401702478528023,
-0.004411571193486452,
-0.011001886799931526,
0.04668590798974037,
-0.027587128803133965,
0.013422713615000248,
-0.0215299092233181,
0.005758478306233883,
0.06024254113435745,
0.022436432540416718,
0.001498852507211268,
-0.01473099086433649,
0.014813401736319065,
0.04318343475461006,
-0.0147824976593256,
-0.06287969648838043,
-0.048086900264024734,
-0.014380743727087975,
-0.008771635591983795,
-0.03393278643488884,
-0.05068285018205643,
-0.007823907770216465,
0.011887806467711926,
-0.017883216962218285,
-0.035745829343795776,
0.0070513030514121056,
0.01420561969280243,
0.05777020752429962,
0.0011788655538111925,
-0.009698760695755482,
0.010018103756010532,
-0.025938905775547028,
0.004416721872985363,
-0.020582182332873344,
0.049117036163806915,
-0.010481666773557663,
-0.0462738536298275,
-0.011146106757223606,
-0.007071905769407749,
-0.017955327406525612,
0.014133510179817677,
0.01696639321744442,
0.1265835016965866,
-0.022869091480970383,
0.011702381074428558,
-0.08364730328321457,
-0.05311397835612297,
0.01409230474382639,
0.04874618723988533,
-0.028287623077630997,
0.0022444159258157015,
-0.013299097307026386,
0.006742261350154877,
-0.00912703387439251,
0.008890101686120033,
-0.05418532341718674,
0.0012896055122837424,
0.011383038014173508,
0.020128920674324036,
-0.035457391291856766,
-0.032243356108665466,
-0.015029731206595898,
-0.014689785428345203,
-0.011362435296177864,
0.016214391216635704,
-0.015864143148064613,
-0.029544392600655556,
-0.0356634184718132,
-0.04713917151093483,
-0.03209913894534111,
0.02727808617055416,
0.07384037971496582,
-0.08727339655160904,
-0.06790677458047867,
0.013556632213294506,
-0.06638216972351074,
0.027834361419081688,
0.021066347137093544,
0.01222775224596262,
-0.002440142212435603,
0.055833544582128525,
0.029029322788119316,
0.01420561969280243,
0.06279728561639786,
-0.06695904582738876,
0.018985465168952942,
-0.0359930656850338,
-0.031501658260822296,
0.03537498041987419,
-0.013443316332995892,
-0.03939252346754074,
-0.035972461104393005,
-0.05006476491689682,
-0.012464684434235096,
0.007741496432572603,
-0.04376031458377838,
-0.03525136411190033,
0.044295985251665115,
-0.029214749112725258,
0.018130449578166008,
0.09650344401597977,
-0.04408995807170868,
0.009405171498656273,
-0.008524402044713497,
0.04639746993780136,
0.023672599345445633,
-0.06304451823234558,
-0.08335886895656586,
0.06432189047336578,
0.022436432540416718,
0.010512570850551128,
0.03347952291369438,
0.03560161218047142,
0.03457147255539894,
-0.0025212657637894154,
-0.006438370328396559,
0.006021163892000914,
0.023157529532909393,
-0.028843898326158524,
0.04425477981567383,
-0.043842725455760956,
0.02480575256049633,
0.013618440367281437,
0.00502965459600091,
-0.040731705725193024,
0.0012606328818947077,
0.004730914253741503,
-0.012639808468520641,
0.05426773428916931,
-0.037579476833343506,
-0.007880564779043198,
-0.03743525967001915,
-0.010857667773962021,
0.028864501044154167,
0.008879800327122211,
-0.00031548013794235885,
0.010929777286946774,
-0.050394412130117416,
0.010754653252661228,
0.015163648873567581,
-0.04759243130683899,
0.012196848168969154,
0.042112089693546295,
0.016729461029171944,
0.07515895366668701,
0.056698862463235855,
0.08463624119758606,
0.015658115968108177,
-0.002025511348620057,
-0.03811515122652054,
-0.039310112595558167,
-0.04833413287997246,
0.01610107533633709,
0.0022508541587740183,
0.017759600654244423,
-0.02577408403158188,
0.05010597035288811,
0.03329410031437874,
-0.04126737639307976,
-0.008400785736739635,
0.03881564736366272,
-0.0691017359495163,
-0.015338772907853127,
-0.041143760085105896,
0.06551685184240341,
-0.015287266112864017,
0.024846957996487617,
-0.01969626173377037,
-0.03477749973535538,
0.01613198034465313,
0.0002705724909901619,
-0.008591361343860626,
-0.018635218963027,
-0.07862022519111633,
0.052743129432201385,
-0.021838951855897903,
0.05414411798119545,
0.002303648740053177,
-0.002783951349556446,
0.03008006513118744,
0.05278433486819267,
0.03030669502913952,
-0.010012953542172909,
0.030450915917754173,
-0.06184955686330795,
0.02785496413707733,
0.05183660611510277,
-0.008282319642603397,
0.005500943399965763,
-0.006458973046392202,
-0.024270080029964447,
0.0414528027176857,
-0.04359549283981323,
-0.03360314294695854,
0.04289499670267105,
-0.050394412130117416,
0.025877097621560097,
-0.031089602038264275,
0.06654699146747589,
-0.039536744356155396,
0.06044856831431389,
0.010950380004942417,
-0.012495588511228561,
-0.03265541419386864,
-0.06378622353076935,
-0.019047273322939873,
0.017491763457655907,
-0.030162476003170013,
0.001916058943606913,
0.00600056117400527,
0.004661379847675562,
0.02377561293542385,
-0.06572288274765015,
-0.05286674574017525,
0.03753827139735222,
0.029812229797244072,
-0.03286144137382507,
0.015318170189857483,
-0.029894640669226646,
0.028782090172171593,
0.025465041399002075,
-0.008282319642603397,
0.03990759328007698,
0.024434901773929596,
0.002987403655424714,
-0.050435617566108704,
-0.02354898303747177,
-0.05484461039304733,
0.03852720558643341,
0.03704380616545677,
-0.004645927809178829,
0.017986230552196503,
0.0404844731092453,
0.020221631973981857,
0.048210516571998596,
0.05447376146912575,
-0.05546269565820694,
-0.026371564716100693,
-0.011094599030911922,
0.0003224013780709356,
-0.024496709927916527,
0.010033556260168552,
-0.015225457958877087,
-0.030327297747135162,
-0.00644352100789547,
-0.017666887491941452,
0.001534907380118966,
-0.010383803397417068,
-0.0466034971177578,
-0.016049569472670555,
-0.035910654813051224,
0.004890585783869028,
0.017203325405716896,
0.03014187328517437,
0.005032230168581009,
0.006592891179025173,
0.024434901773929596,
-0.009755418635904789,
-0.0010636186925694346,
0.03199612349271774,
0.039825182408094406,
0.017728695645928383,
-0.007370646111667156,
-0.018336478620767593,
0.030636340379714966,
0.008261716924607754,
0.046933144330978394,
0.01770809292793274,
0.013886276632547379,
0.02946198172867298,
-0.03689958527684212,
0.003832117887213826,
-0.014823703095316887,
-0.057399358600378036,
0.027648936957120895,
0.04289499670267105,
-0.011578764766454697,
-0.06176714599132538,
-0.011475751176476479,
-0.026247946545481682,
-0.02046886645257473,
0.00821020919829607,
0.027236880734562874,
0.008555306121706963,
-0.023569585755467415,
0.04235932603478432,
-0.004736064933240414,
-0.00035507610300555825,
-0.019356315955519676,
0.022086184471845627,
-0.03659054636955261,
0.006469274405390024,
0.01031684409826994,
0.000997303519397974,
-0.048086900264024734,
0.03811515122652054,
-0.03352072834968567,
-0.0025753481313586235,
0.0042029679752886295,
-0.03650813549757004,
-0.015452087856829166,
0.0063302055932581425,
0.05060043931007385,
0.01420561969280243,
0.061519913375377655,
-0.04858136549592018,
0.03966036066412926,
0.00824111420661211,
-0.02159171737730503,
-0.01825406774878502,
-0.014483757317066193,
-0.01510184071958065,
0.012454383075237274,
-0.04804569482803345,
-0.06803039461374283,
0.024270080029964447,
0.012917946092784405,
0.009384567849338055,
-0.009121882729232311,
-0.056698862463235855,
-0.011197613552212715,
-0.037126217037439346,
0.05125972628593445,
-0.045037686824798584,
-0.03065694309771061,
-0.028102198615670204,
0.023281145840883255,
-0.06695904582738876,
-0.03628150373697281,
0.012423478998243809,
0.020839717239141464,
-0.014772196300327778,
0.014185016974806786,
0.06217920407652855,
0.011609668843448162,
-0.03220215067267418,
-0.006474425084888935,
0.014360141009092331,
-0.010754653252661228,
-0.023239940404891968,
0.051754195243120193,
-0.09600897878408432,
0.04437839612364769,
0.015482992865145206,
-0.02004650980234146,
0.053896885365247726,
0.015276964753866196,
-0.031769491732120514,
-0.025568054988980293,
0.007159467786550522,
-0.07824937254190445,
-0.010569228790700436,
0.027834361419081688,
0.01243378035724163,
0.012155642732977867,
-0.049858737736940384,
0.03537498041987419,
-0.027484115213155746,
0.0057790810242295265,
0.05031199753284454,
-0.024331888183951378,
0.05616319179534912,
0.05327880010008812,
0.018841246142983437,
-0.02359018847346306,
-0.0039119538851082325,
0.05455617234110832,
-0.0036930490750819445,
-0.026598194614052773,
-0.028617266565561295,
0.025403233245015144,
0.04878739267587662,
-0.032346371561288834,
-0.0016649625031277537,
0.06119026988744736,
0.013391809538006783,
-0.04491407051682472,
-0.026247946545481682,
-0.007447906769812107,
-0.009142485447227955,
0.021025141701102257,
0.005397929344326258,
0.030636340379714966,
-0.08752062916755676,
0.03939252346754074,
0.019778672605752945,
0.017399052157998085,
0.01983018033206463,
-0.061684735119342804,
-0.024105258285999298,
0.027257483452558517,
-0.031831301748752594,
0.04800448939204216,
-0.0204070582985878,
0.02059248276054859,
0.0052331071346998215,
-0.0024156763684004545,
0.03980457782745361,
0.003713651793077588,
0.05224866047501564,
-0.0013507700059562922,
0.02256004884839058,
0.03877444192767143,
-0.006798918824642897,
-0.0086737722158432,
0.044131163507699966,
0.012011423707008362,
-0.009193992242217064,
0.05097128823399544,
-0.054350145161151886,
0.026598194614052773,
0.07025549560785294,
-0.015575705096125603,
0.03411820903420448,
0.02894691191613674,
-0.017759600654244423,
0.08636686950922012,
-0.0024658958427608013,
0.005076011177152395,
-0.000016568743376410566,
-0.02997705154120922,
-0.02544443868100643,
-0.03753827139735222,
0.01786261424422264,
0.04408995807170868,
0.04483165964484215,
-0.04606782644987106,
0.023157529532909393,
0.03249059244990349,
-0.031893111765384674,
0.026021316647529602,
0.01870732754468918,
-0.0061499313451349735,
0.0739227905869484,
-0.058017440140247345,
0.06250885128974915,
-0.0012471122900024056,
0.045903004705905914,
-0.04973512142896652,
-0.018882451578974724,
0.05892396345734596,
0.024331888183951378,
-0.007689989171922207,
0.02647457830607891,
0.012969452887773514,
0.037970930337905884,
-0.019562343135476112,
-0.01957264542579651,
0.032696619629859924,
-0.065558061003685,
0.039474934339523315,
-0.011877505108714104,
-0.028328828513622284,
-0.052743129432201385,
-0.030986588448286057,
-0.002303648740053177,
0.018006833270192146,
0.01934601366519928,
-0.0017950176261365414,
0.036775968968868256,
0.005588505417108536,
0.032758425921201706
] |
723,293
|
exponent_server_sdk
|
is_success
|
Returns True if this push notification successfully sent.
|
def is_success(self):
"""Returns True if this push notification successfully sent."""
return self.status == PushReceipt.SUCCESS_STATUS
|
(self)
|
[
0.023290462791919708,
0.0005403563845902681,
-0.018603414297103882,
0.012296712026000023,
0.053566254675388336,
-0.052625223994255066,
-0.027326026931405067,
0.010134155862033367,
0.04965736344456673,
0.01648610085248947,
0.003818405093625188,
-0.024738198146224022,
0.056135986000299454,
-0.008890007622539997,
-0.017960982397198677,
-0.05298715829849243,
0.002116183750331402,
-0.07108386605978012,
0.0442645438015461,
0.022476110607385635,
0.03879934176802635,
0.07050476968288422,
0.042599648237228394,
0.03879934176802635,
-0.007885640487074852,
0.03840121254324913,
0.050706975162029266,
0.002617236226797104,
-0.005148513242602348,
0.04118810594081879,
-0.06366421282291412,
-0.019236799329519272,
0.10278929769992828,
0.00019934654119424522,
0.004596563521772623,
0.057511333376169205,
-0.05425392836332321,
-0.022675173357129097,
-0.05628075823187828,
0.0016445382498204708,
-0.0712648332118988,
0.051141295582056046,
-0.06094970926642418,
0.02213227190077305,
0.03246549144387245,
0.0034519468899816275,
-0.03992133587598801,
0.07745390385389328,
0.06373660266399384,
0.026819320395588875,
0.024141008034348488,
0.04118810594081879,
-0.04357687011361122,
-0.009916995652019978,
-0.05269761011004448,
0.014205914922058582,
0.0412604920566082,
0.0330083929002285,
-0.03318936005234718,
0.004881586879491806,
-0.0012056931154802442,
0.021661758422851562,
0.036121025681495667,
-0.05555688962340355,
0.028755666688084602,
0.013708255253732204,
0.0357590951025486,
-0.0033705118112266064,
0.03807547315955162,
0.05533973127603531,
0.03344271332025528,
0.018748188391327858,
-0.05953816697001457,
-0.008283767849206924,
-0.02263898029923439,
0.010342268273234367,
-0.005008263513445854,
0.030728207901120186,
-0.004768482409417629,
0.017454273998737335,
0.0044382172636687756,
-0.030330080538988113,
0.03248358890414238,
0.020901696756482124,
-0.01406114175915718,
0.04795627295970917,
0.03271884471178055,
-0.01104803942143917,
-0.06290415674448013,
0.06127544865012169,
0.030275791883468628,
0.05870571732521057,
0.011283297091722488,
-0.04907827079296112,
0.05906765162944794,
-0.011835246346890926,
0.028502313420176506,
-0.0246296189725399,
-0.004551321733742952,
-0.010188446380198002,
-0.03403990715742111,
0.03519809618592262,
-0.024919165298342705,
-0.0385097935795784,
0.0646052435040474,
0.019073929637670517,
-0.03154256194829941,
0.002915831981226802,
0.012206229381263256,
0.008695467375218868,
0.026945997029542923,
-0.07112006098031998,
0.00537019781768322,
-0.03460090234875679,
0.041296686977148056,
-0.05957435816526413,
0.022982817143201828,
0.010794686153531075,
-0.057511333376169205,
-0.023109495639801025,
0.06427950412034988,
-0.04220152273774147,
0.04708763211965561,
-0.034438032656908035,
0.045676089823246,
0.041296686977148056,
0.045422736555337906,
-0.007985171861946583,
0.09142456203699112,
-0.013934464193880558,
-0.003275503870099783,
0.012685791589319706,
-0.01052323542535305,
0.0014160673599690199,
-0.04980213940143585,
-0.02095598727464676,
0.030872981995344162,
0.010668008588254452,
0.06138402968645096,
0.013400611467659473,
-0.012360051274299622,
-0.0033524150494486094,
-0.0030922747682780027,
0.014513558708131313,
-0.005306859500706196,
0.020051151514053345,
-0.03194068744778633,
0.03738779574632645,
-0.03376845642924309,
-0.014721671119332314,
0.08816715329885483,
-0.05378341302275658,
0.05153942108154297,
0.015572216361761093,
-0.04390261322259903,
0.013463949784636497,
0.001591379172168672,
-0.01587081141769886,
0.011690473183989525,
-0.0156084094196558,
0.0005389425787143409,
-0.005487826652824879,
-0.020702632144093513,
0.03309887647628784,
0.009600303135812283,
0.005410915240645409,
-0.009152409620583057,
0.035397160798311234,
-0.031379688531160355,
0.03098156303167343,
0.00022225017892196774,
0.044481705874204636,
-0.005162085872143507,
-0.004506079945713282,
-0.03565051406621933,
0.04241868108510971,
0.02305520512163639,
0.01445022039115429,
-0.04267203435301781,
-0.0313434973359108,
-0.03778592497110367,
-0.028954731300473213,
-0.02464771457016468,
0.02233133651316166,
0.03005862981081009,
0.04611041024327278,
-0.002601401647552848,
0.023869557306170464,
0.03999372199177742,
-0.0062162186950445175,
0.010233688168227673,
-0.007899212650954723,
0.007659431081265211,
0.0486801415681839,
-0.011609037406742573,
-0.024376263841986656,
0.020811213180422783,
0.010677057318389416,
-0.011572844348847866,
-0.016929470002651215,
-0.027887025848031044,
-0.06536530703306198,
-0.056135986000299454,
0.025516357272863388,
0.008170663379132748,
-0.04545892775058746,
-0.030872981995344162,
0.05269761011004448,
-0.00044704522588290274,
-0.041839588433504105,
-0.0841858834028244,
-0.02158937230706215,
0.007668479811400175,
0.04781150072813034,
0.010731346905231476,
-0.08903580158948898,
0.026620255783200264,
-0.00015947723295539618,
-0.021498888731002808,
-0.0019397408468648791,
0.011826198548078537,
-0.045314155519008636,
0.001909202546812594,
-0.024901069700717926,
-0.008252098225057125,
0.07206108421087265,
-0.0016694212099537253,
-0.01807861030101776,
-0.01968921720981598,
0.00504898140206933,
-0.023344751447439194,
0.016169408336281776,
0.043866418302059174,
0.0033049110788851976,
-0.04140526428818703,
-0.06826078146696091,
-0.018675802275538445,
-0.0037460182793438435,
-0.0015857239486649632,
0.036338187754154205,
0.06681304425001144,
-0.03735160455107689,
0.015907006338238716,
0.05827139690518379,
0.002542587462812662,
-0.0246296189725399,
0.027651768177747726,
0.01470357459038496,
0.002999529242515564,
0.01533695962280035,
-0.016558486968278885,
-0.05193755030632019,
-0.023760976269841194,
-0.02645738609135151,
-0.013816836290061474,
-0.026077354326844215,
0.007853970862925053,
0.024521037936210632,
0.04589324817061424,
0.004868014249950647,
0.03905269503593445,
-0.0025946153327822685,
0.005089698825031519,
0.05819901078939438,
-0.05139464884996414,
-0.014214963652193546,
0.003558265045285225,
0.04346828907728195,
0.032954104244709015,
0.029895760118961334,
0.13731780648231506,
-0.025968775153160095,
-0.01814194954931736,
-0.030022436752915382,
-0.012993435375392437,
-0.01882057450711727,
0.012495776638388634,
0.02464771457016468,
-0.024068620055913925,
-0.07245921343564987,
-0.002422696677967906,
0.016359422355890274,
0.04654473066329956,
-0.015436490997672081,
-0.01936347596347332,
0.025679226964712143,
0.03516190126538277,
0.040066108107566833,
0.0037957841996103525,
-0.03785831108689308,
-0.007084860932081938,
0.06145641580224037,
0.007577996235340834,
-0.02962430939078331,
0.05139464884996414,
0.020358795300126076,
-0.015680797398090363,
0.02560684084892273,
0.005406391341239214,
-0.012821516953408718,
0.0298414696007967,
0.021010277792811394,
-0.05657030642032623,
-0.07499275356531143,
-0.02593258209526539,
0.04075378552079201,
0.006483145523816347,
0.04238248988986015,
-0.040355656296014786,
0.006578152999281883,
-0.014613091014325619,
0.03045675717294216,
-0.00878595095127821,
-0.037170637398958206,
0.05722178891301155,
-0.02189701609313488,
0.030963465571403503,
-0.023417139425873756,
0.0016490623820573092,
0.062252674251794815,
-0.018965348601341248,
-0.013617771677672863,
-0.018675802275538445,
0.08078370243310928,
0.043649256229400635,
-0.03206736594438553,
0.008215905167162418,
0.0020460588857531548,
-0.036663927137851715,
-0.0016841248143464327,
-0.014468316920101643,
-0.05197374150156975,
0.056425534188747406,
-0.02073882706463337,
-0.00428439537063241,
0.0011785480892285705,
0.03861837461590767,
-0.01914631575345993,
-0.03693537786602974,
-0.02890044078230858,
-0.016368471086025238,
-0.01316535472869873,
0.03289981186389923,
0.01988828182220459,
-0.007112005725502968,
0.0027597479056566954,
-0.06431569904088974,
-0.010487041436135769,
0.020594052970409393,
-0.05657030642032623,
-0.07264018058776855,
0.04064520448446274,
0.025751614943146706,
0.0594295859336853,
0.03387703746557236,
-0.023236172273755074,
0.0067772166803479195,
0.025335390120744705,
0.029063312336802483,
0.021607467904686928,
0.04397499933838844,
0.03689918667078018,
-0.02940714918076992,
0.013472998514771461,
-0.05472444370388985,
0.02569732442498207,
-0.01661277748644352,
0.03058343566954136,
-0.005510447081178427,
-0.006320274900645018,
0.02180653251707554,
0.008062083274126053,
-0.06322989612817764,
-0.005578309763222933,
-0.008342581801116467,
0.0033003869466483593,
-0.024611521512269974,
-0.02444865182042122,
-0.05045361816883087,
-0.023851459845900536,
-0.01635037548840046,
0.019182508811354637,
-0.07520991563796997,
0.028828054666519165,
0.04799246788024902,
-0.008582362905144691,
-0.031144432723522186,
-0.019616831094026566,
-0.0841858834028244,
-0.012360051274299622,
-0.005306859500706196,
-0.020811213180422783,
-0.07716435939073563,
-0.006388137582689524,
-0.05523115023970604,
-0.06116687133908272,
-0.012251471169292927,
0.007899212650954723,
-0.011771908029913902,
-0.006510290317237377,
0.03293600678443909,
0.007238682825118303,
-0.022059885784983635,
-0.033587489277124405,
0.0006469572545029223,
0.009012159891426563,
-0.013871125876903534,
-0.045422736555337906,
-0.01587081141769886,
-0.014169721864163876,
0.024195296689867973,
-0.002158032264560461,
-0.05599121004343033,
-0.05530353635549545,
-0.0712648332118988,
-0.002247384749352932,
-0.006374564953148365,
0.04911446198821068,
0.023019012063741684,
-0.0000834851962281391,
-0.02082931064069271,
0.04158623144030571,
0.030710112303495407,
0.039523206651210785,
-0.0338408425450325,
-0.005528544075787067,
0.0302576944231987,
0.04487983509898186,
0.027760349214076996,
0.004732288885861635,
0.011102329939603806,
-0.004908731672912836,
0.015472684986889362,
0.025751614943146706,
0.004103428218513727,
-0.0010841058101505041,
-0.007433222606778145,
-0.06554627418518066,
-0.06789884716272354,
0.04980213940143585,
-0.005383770447224379,
0.0020641556475311518,
-0.051575616002082825,
-0.015047412365674973,
0.024086717516183853,
-0.0284661203622818,
-0.04223771393299103,
-0.1363767832517624,
0.027344124391674995,
0.04972974956035614,
-0.048824917525053024,
-0.02455723099410534,
0.03449232503771782,
-0.03161494806408882,
-0.0074015529826283455,
-0.0009031387744471431,
-0.03764114901423454,
0.002070941962301731,
-0.03785831108689308,
-0.03822024539113045,
-0.004700619727373123,
0.04303396865725517,
-0.14426694810390472,
0.03785831108689308,
0.04136907309293747,
0.013192499056458473,
-0.015201234258711338,
0.014377833344042301,
-0.023742878809571266,
0.02833944372832775,
0.02475629560649395,
-0.02814037911593914,
-0.01851293072104454,
0.026620255783200264,
0.003911150619387627,
0.007731818128377199,
-0.01090326625853777,
0.03912508115172386,
-0.05552069842815399,
-0.009555061347782612,
-0.0924379825592041,
0.04611041024327278,
-0.030492952093482018,
-0.008650225587189198,
-0.011500457301735878,
-0.05215470865368843,
0.04451790079474449,
-0.034003712236881256,
0.02211417630314827,
0.010369413532316685,
0.016006536781787872,
-0.06681304425001144,
0.029226182028651237,
0.018567221239209175,
-0.009066450409591198,
-0.03403990715742111,
-0.018196238204836845,
0.020612148568034172,
-0.013825884088873863,
-0.017173774540424347,
-0.02043118141591549,
0.0511774867773056,
-0.007600617129355669,
0.05479682981967926,
0.038473598659038544,
-0.02593258209526539,
0.0021682116203010082,
0.007234158460050821,
-0.006306702271103859,
0.014187818393111229,
-0.013065822422504425,
0.030854886397719383,
0.0003132992424070835,
-0.0024475795216858387,
0.014975025318562984,
0.03682680055499077,
0.061203062534332275,
-0.011771908029913902,
-0.004456314258277416,
0.0003469478106126189,
0.057619914412498474,
-0.040138497948646545,
0.004087593872100115,
0.03673631697893143,
-0.04498841241002083,
0.016015585511922836,
-0.005456157028675079,
-0.024720102548599243,
-0.019490154460072517,
-0.012188131920993328,
0.0049675460904836655,
0.03774973005056381,
0.007487512659281492,
-0.046580925583839417,
-0.016142262145876884,
0.03619341552257538,
-0.06891226023435593,
-0.014848347753286362,
-0.05197374150156975,
-0.030420564115047455,
0.01667611487209797,
-0.049150656908750534,
-0.0550139881670475,
-0.012133842334151268,
-0.07140960544347763,
0.03970417380332947,
0.04368545114994049,
-0.044083576649427414,
0.0015619720797985792,
-0.002070941962301731,
0.0028434451669454575,
-0.0044042859226465225,
0.021824628114700317,
0.007582520134747028,
0.07079432159662247,
0.06963612884283066,
0.04922304302453995,
0.012939145788550377,
0.03514380380511284,
0.023145688697695732,
-0.03110823966562748,
-0.05479682981967926,
-0.002145590726286173,
0.017372839152812958,
-0.07231444120407104,
0.012160987593233585,
0.004573942627757788,
-0.012658646330237389,
0.01009796280413866,
0.003924723248928785,
0.0023978136014193296,
-0.02486487478017807,
-0.006048824172466993,
0.008853813633322716,
0.03058343566954136,
-0.03955940157175064,
0.0023322131019085646,
-0.014088286086916924,
-0.04238248988986015,
0.016015585511922836,
0.003148827003315091,
-0.03890791907906532,
0.042165327817201614,
-0.03829263150691986,
-0.06279557198286057,
-0.016386568546295166,
-0.05381960794329643,
-0.01185334287583828,
-0.0050354087725281715,
0.02654786966741085,
-0.025371583178639412,
0.0036872040946036577,
-0.026620255783200264,
-0.025136325508356094,
0.03713444247841835,
-0.01449546217918396,
0.11654279381036758,
-0.03405800461769104,
-0.004008420743048191,
0.031488269567489624,
0.07528229802846909,
0.031072046607732773,
0.01470357459038496,
-0.05990010127425194,
0.04589324817061424,
-0.03693537786602974,
-0.04118810594081879,
0.02052166499197483,
-0.010975653305649757,
-0.02814037911593914,
0.016404664143919945,
-0.0382564403116703,
-0.01873009093105793,
0.020883599296212196,
-0.011609037406742573,
0.03246549144387245,
-0.04379403218626976,
0.028610894456505775,
-0.029913857579231262,
0.04495222121477127,
0.037713538855314255,
-0.008663798682391644,
-0.04111571982502937,
0.013183451257646084,
-0.03579528629779816,
-0.014079238288104534,
-0.006731974892318249,
-0.044083576649427414,
-0.04285300150513649,
-0.04839059337973595,
0.013617771677672863,
0.03277313709259033,
0.07140960544347763,
-0.053059544414281845,
0.037206828594207764,
-0.05067078024148941,
-0.035940058529376984,
0.02643928863108158,
0.023199979215860367,
-0.005157561507076025,
-0.034962836652994156,
-0.023960040882229805,
-0.05193755030632019,
-0.04752195253968239,
0.00028926454251632094,
0.0192548967897892,
-0.025787808001041412,
-0.04082617163658142,
0.009265514090657234,
-0.05490541085600853,
-0.017544757574796677,
0.0401746891438961,
-0.004630494862794876,
0.058018043637275696,
-0.02814037911593914,
0.041622426360845566,
0.019960667937994003,
0.05595501884818077,
-0.042491067200899124,
-0.032519783824682236,
-0.02222275547683239,
-0.03440184146165848,
-0.0323026217520237,
-0.008102800697088242,
0.015020267106592655,
0.03132539987564087,
0.02929856814444065,
-0.07520991563796997,
-0.03668202459812164,
-0.014685478061437607,
0.017589999362826347,
0.06909322738647461,
0.06294034421443939,
0.022277045994997025,
0.02243991754949093,
-0.002915831981226802,
-0.01578032784163952,
0.009374094195663929,
0.03233881667256355,
0.02146269381046295,
0.013572529889643192,
0.0014533917419612408,
-0.009437432512640953,
0.015490781515836716,
0.055918823927640915,
0.0062252674251794815,
0.01979779824614525,
-0.02359810657799244,
-0.0550139881670475,
-0.01624179445207119,
-0.022059885784983635,
-0.07264018058776855,
-0.012360051274299622,
0.06938277184963226,
-0.01667611487209797,
0.013445853255689144,
-0.0825209841132164,
0.06746452301740646,
-0.0522632896900177,
-0.03822024539113045,
0.018892962485551834,
-0.014821203425526619,
0.016712309792637825,
-0.02126363106071949,
0.006872224621474743,
-0.010912314057350159,
-0.03604863956570625,
-0.03731540963053703,
0.030547240749001503,
0.027687961235642433,
-0.03789450600743294,
0.019616831094026566,
0.001010588021017611,
-0.027470801025629044,
-0.027905121445655823,
-0.0306739192456007,
-0.0533490926027298,
0.0020833835005760193,
0.010686105117201805,
0.02538968063890934,
-0.06018964946269989,
-0.02718125469982624,
-0.015047412365674973,
-0.008763330057263374,
0.01873009093105793,
-0.023887652903795242,
0.0665234923362732,
-0.0027054576203227043,
-0.019381573423743248,
0.00012392003554850817,
-0.020467376336455345,
0.021752241998910904,
-0.03595815598964691,
0.0442645438015461,
0.0009461184963583946,
0.018458642065525055,
0.01667611487209797,
0.02593258209526539,
0.019490154460072517,
0.05649792030453682,
0.09699834883213043,
0.002291495446115732,
0.08440304547548294,
-0.05429011955857277,
-0.017237113788723946,
0.0032483588438481092,
0.00016866697114892304,
-0.01295724231749773,
-0.008125421591103077,
-0.021716048941016197,
0.016223696991801262,
0.024683907628059387,
0.015536023303866386,
-0.0332617461681366,
0.03429326042532921,
0.0814351812005043,
-0.08302769064903259,
0.023435235023498535,
-0.02339904196560383,
0.024575328454375267,
-0.017219016328454018,
-0.003888529958203435,
-0.031361594796180725,
0.07412411272525787,
-0.026312611997127533,
0.0831000804901123,
0.008546169847249985,
0.08411349356174469
] |
723,294
|
exponent_server_sdk
|
validate_response
|
Raises an exception if there was an error. Otherwise, do nothing.
Clients should handle these errors, since these require custom handling
to properly resolve.
|
def validate_response(self):
"""Raises an exception if there was an error. Otherwise, do nothing.
Clients should handle these errors, since these require custom handling
to properly resolve.
"""
if self.is_success():
return
# Handle the error if we have any information
if self.details:
error = self.details.get('error', None)
if error == PushReceipt.ERROR_DEVICE_NOT_REGISTERED:
raise DeviceNotRegisteredError(self)
elif error == PushReceipt.ERROR_MESSAGE_TOO_BIG:
raise MessageTooBigError(self)
elif error == PushReceipt.ERROR_MESSAGE_RATE_EXCEEDED:
raise MessageRateExceededError(self)
elif error == PushReceipt.INVALID_CREDENTIALS:
raise InvalidCredentialsError(self)
# No known error information, so let's raise a generic error.
raise PushTicketError(self)
|
(self)
|
[
0.021375853568315506,
0.004689504392445087,
-0.030811361968517303,
0.021093351766467094,
-0.02721419185400009,
-0.0749567374587059,
-0.03452153131365776,
0.0025377939455211163,
0.03610353171825409,
0.002204679185524583,
0.06704672425985336,
0.048891376703977585,
0.09356408566236496,
-0.025858189910650253,
-0.01985035091638565,
0.007641632109880447,
0.028946859762072563,
-0.036630865186452866,
0.06000305339694023,
-0.018004683777689934,
0.017552683129906654,
0.033994197845458984,
-0.01648859865963459,
0.06471139192581177,
-0.026988191530108452,
0.07149139791727066,
0.022675354033708572,
0.012109844014048576,
0.03713936731219292,
-0.00024748200667090714,
-0.046443041414022446,
0.03357986360788345,
0.05672605335712433,
0.07563473284244537,
-0.04674437642097473,
0.001656157779507339,
-0.02519902214407921,
-0.03883436694741249,
-0.10486409813165665,
0.051339711993932724,
-0.08203807473182678,
0.03380586579442024,
0.0017926995642483234,
0.0023059083614498377,
0.025745190680027008,
-0.01771276630461216,
-0.06429705768823624,
0.07789473980665207,
-0.03201669454574585,
0.027911026030778885,
0.0010252405190840364,
0.05235671252012253,
-0.027911026030778885,
-0.02561335638165474,
0.016290847212076187,
0.04591570794582367,
0.03734653443098068,
0.02902219258248806,
0.000974037335254252,
-0.018409600481390953,
-0.07819607108831406,
0.04278937354683876,
-0.008898758329451084,
-0.03809986636042595,
0.013541178777813911,
0.020886186510324478,
0.028626693412661552,
-0.02583935670554638,
-0.023635854944586754,
0.05137737840414047,
0.04565204307436943,
0.03574569895863533,
-0.07382673025131226,
0.014492263086140156,
0.06456072628498077,
0.00826313253492117,
-0.020509518682956696,
0.022505853325128555,
0.03214852884411812,
-0.0009534383425489068,
-0.0008616257691755891,
0.017204266041517258,
0.014143845997750759,
-0.009275425225496292,
0.04083070531487465,
0.04275170713663101,
0.05424004793167114,
0.0017044182168319821,
-0.038608368486166,
0.06132138893008232,
-0.014699430204927921,
0.0030203985515981913,
-0.035086531192064285,
-0.03414486348628998,
0.007702840492129326,
0.012637178413569927,
0.009162425063550472,
-0.04870304465293884,
-0.05763005092740059,
0.003830232657492161,
-0.03350453078746796,
0.05796905234456062,
-0.04810037836432457,
0.007919424213469028,
0.05073704570531845,
0.006120838690549135,
0.022053852677345276,
-0.030528860166668892,
0.043618038296699524,
0.01010409276932478,
0.019775018095970154,
-0.08670874685049057,
-0.015951847657561302,
0.006511630956083536,
-0.021583018824458122,
-0.040717702358961105,
0.010188842192292213,
0.034163698554039,
-0.07216940075159073,
-0.029097527265548706,
0.04810037836432457,
-0.07608673721551895,
0.023014353588223457,
-0.038759034126996994,
0.031225694343447685,
0.0004608285380527377,
-0.016545098274946213,
-0.02557568997144699,
0.05036037787795067,
0.011460093781352043,
-0.026329023763537407,
0.00607375567778945,
-0.006464547477662563,
-0.045991040766239166,
-0.08105874061584473,
0.017910515889525414,
0.031357526779174805,
-0.021809019148349762,
0.033090196549892426,
-0.029455360025167465,
0.04267637059092522,
0.05201771482825279,
-0.009096507914364338,
-0.003274648915976286,
-0.0019986892584711313,
0.018635600805282593,
-0.02998269349336624,
-0.007726381998509169,
-0.010593759827315807,
-0.011817927472293377,
0.0063750892877578735,
-0.0463300421833992,
0.06938206404447556,
0.007020131219178438,
-0.019549017772078514,
-0.007147256284952164,
-0.018550850450992584,
-0.031188027933239937,
0.005711213685572147,
-0.007797006983309984,
0.008008882403373718,
-0.015349180437624454,
0.010009925812482834,
-0.01875801756978035,
0.01399317942559719,
-0.0014925430295988917,
0.024784689769148827,
-0.020547185093164444,
-0.009214216843247414,
0.036404866725206375,
-0.035500865429639816,
0.018324850127100945,
-0.07096406817436218,
-0.0204341858625412,
-0.0795520693063736,
0.009699175134301186,
0.04727170988917351,
-0.01917234994471073,
-0.06644406169652939,
-0.017957599833607674,
0.022411687299609184,
-0.047347042709589005,
-0.029003359377384186,
0.04478570818901062,
0.03700753301382065,
0.029455360025167465,
0.010009925812482834,
0.024897688999772072,
0.02625369094312191,
0.01385192945599556,
0.019106434658169746,
-0.01603659801185131,
0.03548203408718109,
0.040943704545497894,
0.03928636759519577,
0.017929349094629288,
0.0451623760163784,
0.03256286308169365,
0.03842003643512726,
-0.030773695558309555,
-0.0063750892877578735,
-0.022807186469435692,
-0.012335844337940216,
-0.0009222456137649715,
-0.0562363862991333,
0.010188842192292213,
-0.031677696853876114,
0.00899292528629303,
-0.016281431540846825,
-0.035274866968393326,
-0.06595439463853836,
0.006205589044839144,
0.006003130227327347,
0.07514506578445435,
0.04109437018632889,
-0.008870508521795273,
0.03951236978173256,
-0.04670671001076698,
0.004783670883625746,
0.011902677826583385,
0.043053038418293,
-0.06998472660779953,
-0.00887992512434721,
-0.030999694019556046,
0.003842003410682082,
0.09409141540527344,
-0.041810039430856705,
0.017025349661707878,
-0.015867097303271294,
0.01417209580540657,
-0.011507176794111729,
0.015302097424864769,
0.018955767154693604,
-0.021093351766467094,
-0.05254504829645157,
-0.03214852884411812,
0.016554515808820724,
-0.053486716002225876,
0.0319790281355381,
0.04105670377612114,
0.05582205206155777,
-0.04685737565159798,
-0.014200346544384956,
0.05205538123846054,
-0.0011723760981112719,
0.010998676531016827,
-0.009435508400201797,
0.061208389699459076,
-0.041772373020648956,
-0.00695892283692956,
-0.0314328633248806,
-0.0027331900782883167,
0.028607860207557678,
-0.0429777055978775,
0.035180699080228806,
-0.06772472709417343,
0.006332714110612869,
-0.02615952305495739,
0.10561742633581161,
0.0082866745069623,
0.08203807473182678,
0.053976383060216904,
0.014181513339281082,
0.04938104376196861,
-0.05141504853963852,
0.00017008869326673448,
0.03809986636042595,
0.034182529896497726,
0.03779853507876396,
0.0716044008731842,
0.05472971498966217,
0.026084190234541893,
0.007500381674617529,
0.03414486348628998,
-0.005767713766545057,
0.031640030443668365,
0.026762191206216812,
0.026460858061909676,
-0.03115036152303219,
-0.018908683210611343,
-0.02303318679332733,
-0.01761859841644764,
0.06019138917326927,
0.04019036889076233,
0.005207421258091927,
0.010198259726166725,
0.05005904659628868,
-0.03616003319621086,
0.009143591858446598,
-0.004746004473417997,
0.010113509371876717,
0.0013607095461338758,
-0.005504046566784382,
0.0029356484301388264,
-0.020057518035173416,
-0.014379262924194336,
-0.019680852070450783,
-0.00011292653653072193,
0.0052215466275811195,
-0.014059096574783325,
-0.015113763511180878,
0.06000305339694023,
0.029493026435375214,
-0.04237503930926323,
0.016705181449651718,
-0.01328692864626646,
0.05714038386940956,
0.02757202461361885,
-0.020189352333545685,
-0.007542756851762533,
0.0014560534618794918,
0.06019138917326927,
-0.009906342253088951,
-0.04060470312833786,
0.061698056757450104,
0.05585971847176552,
0.08934541791677475,
0.004962587729096413,
0.0005373390158638358,
0.044446706771850586,
0.0005429301527328789,
-0.00000812464077171171,
-0.004173941444605589,
0.028513692319393158,
0.030415860936045647,
0.00021422936697490513,
-0.03738420084118843,
-0.026046523824334145,
-0.011686094105243683,
-0.023504020646214485,
-0.010800926946103573,
-0.07119006663560867,
0.011252926662564278,
-0.0029474194161593914,
0.02783569134771824,
-0.029832027852535248,
0.03356103226542473,
-0.008409091271460056,
-0.016375597566366196,
0.008352590724825859,
0.027854524552822113,
-0.031997863203287125,
0.012364094145596027,
0.005136796273291111,
-0.011083426885306835,
-0.03480403125286102,
-0.024502189829945564,
-0.044032372534275055,
-0.012712511233985424,
0.011403593234717846,
-0.07759340107440948,
0.04474804177880287,
0.031357526779174805,
0.05540771782398224,
0.054390717297792435,
-0.06218772381544113,
-0.04956937953829765,
0.02798635885119438,
0.0011606052285060287,
0.03555736690759659,
0.0407930389046669,
-0.02220452018082142,
-0.05081237852573395,
0.040454037487506866,
-0.08068207651376724,
-0.0276096910238266,
-0.014049679040908813,
0.005927796941250563,
-0.010848009958863258,
-0.0034606282133609056,
-0.005367504898458719,
-0.028231192380189896,
-0.04757304489612579,
-0.005833630450069904,
0.0157164316624403,
0.05940038710832596,
-0.02239285409450531,
0.02011401765048504,
-0.04011503607034683,
-0.0002596942358650267,
0.023692354559898376,
-0.004585920833051205,
-0.06561539322137833,
-0.027948692440986633,
0.07054973393678665,
-0.035406697541475296,
-0.044032372534275055,
0.0055982135236263275,
-0.032355695962905884,
0.03139519691467285,
0.004868421237915754,
-0.002252939622849226,
-0.030867861583828926,
0.025368522852659225,
-0.04101903736591339,
0.0038443575613200665,
-0.029417693614959717,
-0.010942176915705204,
-0.047121044248342514,
-0.033900029957294464,
0.001638501533307135,
0.026423189789056778,
-0.036668531596660614,
0.0066858395002782345,
0.013908429071307182,
0.0358022004365921,
0.001087625976651907,
0.022374020889401436,
0.0023023770190775394,
-0.022053852677345276,
0.03732769936323166,
-0.020057518035173416,
-0.0013359908480197191,
-0.08490074425935745,
-0.059212055057287216,
0.0035336073487997055,
-0.004449379164725542,
0.06380739063024521,
0.00462358770892024,
-0.031093861907720566,
0.028739692643284798,
0.027911026030778885,
0.0032416903413832188,
0.0092612998560071,
-0.048665378242731094,
0.018786266446113586,
-0.006323297508060932,
0.04410770535469055,
0.038401201367378235,
-0.00785821583122015,
0.021922020241618156,
0.02452102303504944,
-0.04553904011845589,
-0.0464053750038147,
-0.008484424091875553,
-0.03324086219072342,
-0.04354270547628403,
0.00004664196967496537,
-0.06968339532613754,
0.02171485312283039,
0.010292425751686096,
0.0021281687077134848,
-0.010188842192292213,
0.013833096250891685,
0.07842206954956055,
-0.028532525524497032,
-0.016592182219028473,
-0.05009671300649643,
-0.046669043600559235,
-0.011083426885306835,
-0.007401506882160902,
-0.009317800402641296,
0.0121475113555789,
-0.038495369255542755,
-0.012072177603840828,
0.0015243242960423231,
-0.04459737241268158,
-0.022336354479193687,
-0.0036677950993180275,
-0.012420594692230225,
-0.0036583782639354467,
0.0264420248568058,
-0.06953272968530655,
-0.003905565943568945,
-0.02612185664474964,
0.07887407392263412,
0.014473429881036282,
0.013870762661099434,
-0.020245851948857307,
0.027534358203411102,
-0.0058524636551737785,
-0.05525704845786095,
0.021997353062033653,
0.038043368607759476,
-0.017006514593958855,
-0.008729257620871067,
0.04700804129242897,
0.016545098274946213,
-0.028099358081817627,
-0.058797720819711685,
0.006883589550852776,
0.03184719383716583,
-0.014228596352040768,
-0.03352336212992668,
0.007330881431698799,
-0.05009671300649643,
0.02216685377061367,
-0.031037362292408943,
-0.009204800240695477,
0.02194085344672203,
-0.030905527994036674,
-0.07115239650011063,
-0.01761859841644764,
0.043768707662820816,
-0.030641861259937286,
-0.04572737589478493,
-0.030999694019556046,
0.006544589065015316,
0.0090870913118124,
-0.03943703696131706,
0.015415097586810589,
-0.02470935508608818,
0.0496070459485054,
-0.009416675195097923,
0.050661712884902954,
-0.0017303141066804528,
-0.019906850531697273,
0.07563473284244537,
0.05898605287075043,
-0.0013948449632152915,
-0.055746715515851974,
0.019454851746559143,
0.040491703897714615,
0.0005205656052567065,
-0.008140715770423412,
0.04810037836432457,
0.010292425751686096,
0.008004173636436462,
-0.032261528074741364,
0.06117072328925133,
0.06000305339694023,
0.008733966387808323,
0.026912858709692955,
0.005113254766911268,
-0.010113509371876717,
0.022317519411444664,
-0.015320930629968643,
-0.07062506675720215,
-0.003425315720960498,
-0.06199938803911209,
-0.002217627130448818,
0.04120736941695213,
-0.00245775212533772,
-0.06022905558347702,
-0.036310698837041855,
-0.03484169766306877,
-0.07111473381519318,
0.00040815401007421315,
-0.05672605335712433,
-0.01848493330180645,
0.005795963574200869,
0.009021175093948841,
-0.03796803578734398,
-0.027044691145420074,
-0.0728473961353302,
-0.037629034370183945,
-0.007646340411156416,
-0.0017715119756758213,
-0.04267637059092522,
-0.02883385866880417,
0.001408969983458519,
-0.0020610748324543238,
0.09145475178956985,
-0.001134709338657558,
0.005626463331282139,
0.026912858709692955,
0.048175711184740067,
0.05687671899795532,
0.04787437617778778,
-0.0073402984999120235,
-0.01328692864626646,
-0.008465590886771679,
-0.00040256287320517004,
-0.04855237901210785,
-0.029624860733747482,
0.014520512893795967,
-0.010791509412229061,
0.024219688028097153,
-0.02339102141559124,
0.015509264543652534,
-0.04546370729804039,
0.028193525969982147,
-0.031903695315122604,
0.023127354681491852,
0.0314328633248806,
-0.03427669778466225,
0.005843047052621841,
0.021601853892207146,
-0.0026319606695324183,
-0.014379262924194336,
0.041621703654527664,
-0.0506993792951107,
0.0022270437330007553,
-0.058157384395599365,
-0.030528860166668892,
-0.009411966428160667,
-0.045350708067417145,
-0.013418762013316154,
0.013164511881768703,
0.038495369255542755,
0.0019151163287460804,
-0.05258271470665932,
-0.018918100744485855,
-0.03781736642122269,
0.05005904659628868,
0.0926600843667984,
0.03107502870261669,
-0.051490381360054016,
-0.04832637682557106,
0.04060470312833786,
0.020679019391536713,
0.06712206453084946,
0.028815025463700294,
-0.06994706392288208,
0.04267637059092522,
-0.02834419161081314,
-0.04169703647494316,
0.04440904036164284,
-0.05118904635310173,
-0.05190471559762955,
0.03693220019340515,
-0.021959686651825905,
-0.005428713280707598,
0.0024247937835752964,
-0.04184770584106445,
-0.013597679324448109,
-0.07254606485366821,
0.044220708310604095,
-0.02243052050471306,
0.033674031496047974,
0.03783620148897171,
-0.02512368932366371,
-0.0817367434501648,
0.05563371628522873,
-0.05691438540816307,
0.014793597161769867,
0.021903187036514282,
0.013230429030954838,
-0.09009874612092972,
-0.005951338913291693,
0.02235518768429756,
0.03559503331780434,
0.056839052587747574,
-0.06994706392288208,
0.008785758167505264,
0.025990024209022522,
0.016366181895136833,
0.0004049170238431543,
0.029493026435375214,
0.019925685599446297,
0.014200346544384956,
-0.022242186591029167,
-0.06248905509710312,
0.008484424091875553,
-0.00022070332488510758,
0.059249721467494965,
-0.04083070531487465,
-0.025877023115754128,
0.06173572316765785,
-0.025594523176550865,
-0.01042425911873579,
0.022110354155302048,
-0.025500357151031494,
-0.015998931601643562,
-0.020679019391536713,
0.008588007651269436,
0.016705181449651718,
0.00845146644860506,
-0.022826021537184715,
0.023447521030902863,
-0.03973836824297905,
-0.013795428909361362,
0.010009925812482834,
-0.015094930306077003,
0.025104856118559837,
0.027421358972787857,
0.021601853892207146,
-0.04060470312833786,
-0.03098086081445217,
-0.006360963918268681,
0.03742186725139618,
0.01421917974948883,
0.06346838921308517,
0.05785605311393738,
-0.002102272817865014,
0.00999109260737896,
-0.038608368486166,
-0.011337677016854286,
0.023089688271284103,
0.031037362292408943,
0.01752443239092827,
0.06113305687904358,
-0.06787539273500443,
0.028532525524497032,
0.01496309693902731,
-0.03239336237311363,
0.027741525322198868,
0.03668736666440964,
-0.06828972697257996,
-0.05442838370800018,
-0.0018044704338535666,
-0.08942075073719025,
-0.04565204307436943,
0.034992363303899765,
-0.07442940026521683,
-0.03455919772386551,
-0.08060673624277115,
0.003189898794516921,
0.010320676490664482,
0.032223861664533615,
0.023654688149690628,
-0.02583935670554638,
-0.013230429030954838,
0.011488343589007854,
0.036047033965587616,
-0.008253715932369232,
-0.04972004517912865,
-0.022675354033708572,
0.014680596999824047,
-0.0140779297798872,
0.004181003663688898,
-0.007420340087264776,
0.008818716742098331,
-0.06486205756664276,
-0.024332689121365547,
-0.01575409807264805,
-0.00044523217366077006,
0.014614679850637913,
0.03243102878332138,
-0.013390512205660343,
-0.043580371886491776,
-0.003623065771535039,
-0.006761172786355019,
-0.020547185093164444,
0.008776341564953327,
0.041169703006744385,
0.028419526293873787,
-0.02148885279893875,
0.03250636160373688,
0.020132850855588913,
-0.022637687623500824,
0.016827598214149475,
-0.04874071106314659,
0.04474804177880287,
0.0028932734858244658,
-0.04369337484240532,
-0.032901864498853683,
0.05254504829645157,
0.05533238500356674,
0.049343377351760864,
0.05254504829645157,
-0.034672196954488754,
0.05115137994289398,
-0.046254709362983704,
0.002367116743698716,
0.03834469988942146,
0.006031380500644445,
0.0020893248729407787,
-0.007754632271826267,
0.0018350746249780059,
0.017194848507642746,
-0.026517357677221298,
0.012834927998483181,
0.010000509209930897,
0.002700231736525893,
0.03879670053720474,
-0.0528840497136116,
-0.014228596352040768,
-0.009736842475831509,
0.017496181651949883,
0.013842512853443623,
0.019238267093896866,
-0.01707243174314499,
0.025632189586758614,
-0.023786522448062897,
0.09333808720111847,
0.01206276100128889,
0.07887407392263412
] |
723,295
|
exponent_server_sdk
|
PushServerError
|
Raised when the push token server is not behaving as expected
For example, invalid push notification arguments result in a different
style of error. Instead of a "data" array containing errors per
notification, an "error" array is returned.
{"errors": [
{"code": "API_ERROR",
"message": "child "to" fails because ["to" must be a string]. "value" must be an array."
}
]}
|
class PushServerError(Exception):
"""Raised when the push token server is not behaving as expected
For example, invalid push notification arguments result in a different
style of error. Instead of a "data" array containing errors per
notification, an "error" array is returned.
{"errors": [
{"code": "API_ERROR",
"message": "child \"to\" fails because [\"to\" must be a string]. \"value\" must be an array."
}
]}
"""
def __init__(self, message, response, response_data=None, errors=None):
self.message = message
self.response = response
self.response_data = response_data
self.errors = errors
super(PushServerError, self).__init__(self.message)
|
(message, response, response_data=None, errors=None)
|
[
-0.02972760610282421,
-0.02566753886640072,
-0.02471688948571682,
0.01383393257856369,
0.00787751842290163,
-0.033728256821632385,
-0.011279061436653137,
0.03957078978419304,
0.06840716302394867,
-0.049671441316604614,
0.07331885397434235,
0.04436364769935608,
0.05359287187457085,
-0.01793360896408558,
-0.03299546241760254,
0.039412349462509155,
0.045353908091783524,
-0.027271760627627373,
0.05422663688659668,
-0.009060879237949848,
-0.008932145312428474,
0.05993053689599037,
0.0008169645443558693,
0.04662144184112549,
0.0025474438443779945,
0.07815132290124893,
0.0015051952796056867,
0.0031440756283700466,
0.08476626127958298,
-0.05232533812522888,
-0.1014818474650383,
-0.034758128225803375,
-0.0021760964300483465,
0.039412349462509155,
-0.04006592184305191,
-0.03511461988091469,
-0.056048717349767685,
-0.018230687826871872,
-0.1720675826072693,
0.0213698111474514,
-0.07807210087776184,
0.025390267372131348,
-0.04056105017662048,
-0.0354711152613163,
0.09664937853813171,
-0.023746434599161148,
0.029965268447995186,
0.05054287239909172,
-0.056325990706682205,
-0.011526626534759998,
-0.03671884164214134,
0.023469163104891777,
-0.030183125287294388,
-0.015646107494831085,
-0.03040098212659359,
0.09538184851408005,
0.025073383003473282,
0.06266365200281143,
-0.037213969975709915,
0.013279386796057224,
-0.050978586077690125,
0.07684417814016342,
0.018745621666312218,
-0.028935397043824196,
-0.0012403007131069899,
-0.0066842553205788136,
-0.03725358098745346,
-0.014814290218055248,
-0.02006266824901104,
0.039471764117479324,
0.06147534027695656,
0.013744808733463287,
-0.054266247898340225,
0.049275338649749756,
0.07759677618741989,
0.001411120523698628,
-0.062425993382930756,
0.0460272841155529,
0.01979529857635498,
0.023191889747977257,
0.008417210541665554,
0.007471512071788311,
0.008293427526950836,
0.006233687046915293,
0.052206508815288544,
0.001766376313753426,
-0.031074360013008118,
-0.04681949317455292,
-0.03560975193977356,
0.022894810885190964,
-0.06282209604978561,
-0.02170649915933609,
-0.0465422198176384,
-0.010912665165960789,
0.005827680230140686,
0.014121107757091522,
0.008318183943629265,
-0.035233452916145325,
0.015705524012446404,
0.0061594173312187195,
0.028875982388854027,
0.005436527542769909,
-0.03376786783337593,
-0.021211368963122368,
0.026875656098127365,
-0.007441803812980652,
0.01603231020271778,
-0.037154555320739746,
0.012041562236845493,
0.01156623661518097,
-0.01355665922164917,
0.022221434861421585,
-0.012110879644751549,
0.004671551752835512,
-0.01126915868371725,
0.030361372977495193,
0.005456332582980394,
-0.005302842240780592,
0.01944870688021183,
-0.04333378002047539,
0.05561300367116928,
-0.016794810071587563,
-0.011932632885873318,
0.0359068289399147,
0.04816624894738197,
0.0211519543081522,
-0.022142214700579643,
-0.06401040405035019,
0.048998065292835236,
-0.023667214438319206,
0.002245414536446333,
0.004924067761749029,
0.0009605521918274462,
-0.04868118092417717,
-0.03450065851211548,
-0.006590180564671755,
-0.028400657698512077,
-0.009318347088992596,
0.010882957838475704,
-0.0251327995210886,
0.0019012992270290852,
0.05541495233774185,
-0.005421673413366079,
-0.004396754316985607,
-0.019062506034970284,
-0.008090424351394176,
0.001966903917491436,
0.01047695055603981,
-0.003569887252524495,
0.002537541324272752,
0.017557309940457344,
-0.026677604764699936,
0.03384708613157272,
-0.0051047904416918755,
-0.0069367713294923306,
-0.01649773120880127,
0.0002566939510870725,
-0.029192864894866943,
0.006218832917511463,
0.006956576835364103,
0.0021216319873929024,
-0.054345469921827316,
0.022676954045891762,
0.011338477022945881,
-0.0021760964300483465,
0.0008720477344468236,
0.05486040562391281,
-0.06610976159572601,
-0.04210585728287697,
0.04103637486696243,
-0.032005202025175095,
-0.015705524012446404,
-0.04060066118836403,
-0.012685230933129787,
-0.033173710107803345,
0.029767215251922607,
0.020775655284523964,
0.036461375653743744,
-0.025370461866259575,
-0.032638970762491226,
0.013338802382349968,
-0.037689294666051865,
0.0015373786445707083,
0.005362257827073336,
0.008511285297572613,
0.033530205488204956,
0.006307956296950579,
0.02780650183558464,
0.015051952563226223,
0.006768427323549986,
0.0024855525698512793,
-0.02307305857539177,
0.02101331762969494,
0.06373313814401627,
0.04234351962804794,
0.013190263882279396,
0.024281175807118416,
-0.017755361273884773,
0.038600336760282516,
0.045908454805612564,
-0.05818767845630646,
0.04828507825732231,
0.0046220384538173676,
-0.04670066386461258,
0.004656697623431683,
0.018666401505470276,
0.01047695055603981,
-0.00527313444763422,
-0.00914505124092102,
-0.015428250655531883,
-0.04456169903278351,
0.01759692095220089,
-0.003795171622186899,
0.04170975089073181,
0.031529877334833145,
-0.013061529956758022,
0.050978586077690125,
-0.019191239029169083,
0.014735069125890732,
-0.010496756061911583,
0.08381560444831848,
-0.04075910151004791,
-0.003411445766687393,
-0.012378250248730183,
-0.01195243839174509,
0.06828833371400833,
0.003193588461726904,
-0.031747736036777496,
-0.007164531387388706,
0.04143247753381729,
-0.010981983505189419,
0.013596270233392715,
0.02226104587316513,
-0.021884746849536896,
-0.04491819441318512,
-0.04511624574661255,
0.04151169955730438,
-0.05299871787428856,
0.04737403988838196,
-0.020032960921525955,
0.027350982651114464,
-0.020419161766767502,
-0.046463001519441605,
0.10465067625045776,
0.07696300745010376,
-0.022439291700720787,
-0.014972731471061707,
0.044680532068014145,
-0.033787671476602554,
0.013120945543050766,
0.012724841013550758,
-0.025152605026960373,
-0.015705524012446404,
-0.032361697405576706,
0.01390325091779232,
-0.0718136578798294,
-0.005748459603637457,
-0.046463001519441605,
0.036401957273483276,
0.007991398684680462,
0.022894810885190964,
-0.0011208505602553487,
-0.010051139630377293,
0.06401040405035019,
-0.01801282912492752,
-0.03549091890454292,
-0.029470138251781464,
0.03450065851211548,
0.023944487795233727,
0.08246885240077972,
0.13285328447818756,
0.012695133686065674,
0.027172734960913658,
0.02416234463453293,
-0.043729882687330246,
0.02129059098660946,
-0.06484222412109375,
0.03135163336992264,
0.013447730801999569,
-0.05600910633802414,
-0.03293604776263237,
-0.047413650900125504,
0.051731184124946594,
0.03873897343873978,
0.05232533812522888,
0.0010731943184509873,
0.0587422251701355,
-0.01924075186252594,
0.017686044797301292,
0.00641688471660018,
0.007664612494409084,
0.014319160021841526,
-0.05109741538763046,
0.011714776046574116,
0.015121270902454853,
0.022855201736092567,
-0.021607473492622375,
0.06230716034770012,
0.05157274007797241,
-0.04765131324529648,
0.044680532068014145,
0.018300004303455353,
-0.012239613570272923,
-0.02073604427278042,
0.001375223626382649,
-0.015537180006504059,
0.02972760610282421,
0.009402519091963768,
-0.03727338835597038,
-0.012467374093830585,
-0.0010360595770180225,
0.06741689890623093,
-0.028717540204524994,
0.020250817760825157,
0.019953738898038864,
0.07058573514223099,
0.04452209174633026,
0.008402355946600437,
-0.002473174361512065,
0.03770910203456879,
-0.012606009840965271,
-0.042977284640073776,
0.010744321160018444,
0.007159580010920763,
0.055375341325998306,
0.05490001663565636,
-0.020419161766767502,
-0.029470138251781464,
0.03402533382177353,
0.012180197983980179,
0.020498381927609444,
-0.03675845265388489,
-0.005664287135004997,
-0.061237677931785583,
0.018042538315057755,
-0.03560975193977356,
0.015725329518318176,
-0.015220296569168568,
-0.008654872886836529,
-0.03620390594005585,
-0.009952113032341003,
-0.0460272841155529,
-0.004817614797502756,
0.05363248288631439,
-0.010046187788248062,
-0.06353507936000824,
0.0050329966470599174,
-0.05458313226699829,
-0.03135163336992264,
0.017646433785557747,
-0.033173710107803345,
0.06496106088161469,
0.020716238766908646,
0.0164383165538311,
0.07026885449886322,
-0.04353183135390282,
-0.06294092535972595,
-0.012437665835022926,
0.01321997120976448,
0.012546594254672527,
0.0568409264087677,
-0.015606498345732689,
-0.014437991194427013,
-0.0018963479669764638,
-0.08912339806556702,
0.005748459603637457,
0.018111856654286385,
0.024895137175917625,
0.012754549272358418,
-0.005996024236083031,
0.027291566133499146,
-0.04202663525938988,
-0.04840391129255295,
0.016309581696987152,
-0.026796435937285423,
0.03145065903663635,
-0.047968193888664246,
0.015735231339931488,
-0.10219483077526093,
-0.020221110433340073,
-0.0024484179448336363,
-0.022855201736092567,
-0.03335195779800415,
-0.01557679008692503,
0.03628312796354294,
0.013031821697950363,
0.045512352138757706,
-0.025093188509345055,
0.04848312959074974,
0.04816624894738197,
-0.06448572874069214,
-0.05161235108971596,
-0.04163053259253502,
0.038719166070222855,
-0.06694157421588898,
-0.037689294666051865,
-0.028162995353341103,
0.0010174921480938792,
0.022340266034007072,
-0.0014135962119325995,
0.004037785343825817,
-0.007189287804067135,
0.014358770102262497,
0.0031391242519021034,
0.04971105232834816,
-0.010239288210868835,
0.0055603100918233395,
0.01731964759528637,
-0.004250691272318363,
0.033094488084316254,
0.04357144236564636,
-0.035510722547769547,
-0.049473389983177185,
-0.05066170170903206,
-0.014546919614076614,
-0.014368672855198383,
0.0012557734735310078,
0.008402355946600437,
-0.02368701994419098,
-0.02239968255162239,
-0.013031821697950363,
-0.03012371063232422,
0.03652079030871391,
0.014834094792604446,
-0.022340266034007072,
0.0032158694230020046,
-0.026400331407785416,
-0.0015014817472547293,
0.03636234626173973,
0.006164368707686663,
0.024875331670045853,
0.023449357599020004,
-0.056048717349767685,
-0.03384708613157272,
-0.010328412055969238,
-0.035847414284944534,
-0.0488792359828949,
-0.02033994160592556,
-0.028242215514183044,
0.041868194937705994,
-0.033589620143175125,
0.01711169257760048,
0.04828507825732231,
0.0298464372754097,
0.03483734652400017,
-0.055098067969083786,
-0.02923247590661049,
0.0023048301227390766,
0.008565749041736126,
-0.014299354515969753,
-0.002187236910685897,
0.0022256094962358475,
0.025489293038845062,
-0.016319485381245613,
0.010516561567783356,
-0.06987274438142776,
-0.04765131324529648,
0.0038941975217312574,
0.0019978496711701155,
-0.01191282831132412,
-0.011932632885873318,
0.025905201211571693,
-0.08500391989946365,
-0.03012371063232422,
-0.04388832300901413,
0.032916244119405746,
0.04614611715078354,
-0.0064713493920862675,
-0.021686693653464317,
-0.0003747515147551894,
0.013299192301928997,
0.02028052508831024,
-0.010467048734426498,
0.018260395154356956,
-0.01657695323228836,
-0.000527004012838006,
0.011645457707345486,
-0.03889741376042366,
-0.058029238134622574,
-0.03745163232088089,
-0.0310149434953928,
0.032421112060546875,
0.0338272824883461,
-0.018171271309256554,
0.011675165966153145,
-0.029489943757653236,
0.02368701994419098,
-0.0690409317612648,
0.002366721397265792,
0.018577277660369873,
-0.022162018343806267,
-0.014200328849256039,
-0.029074033722281456,
0.011427600868046284,
-0.01862679049372673,
0.003938759211450815,
-0.07395261526107788,
0.020359745249152184,
-0.02362760342657566,
-0.031034749001264572,
0.034282803535461426,
-0.045353908091783524,
-0.0073576318100094795,
-0.028361046686768532,
0.07038768380880356,
-0.04658183082938194,
0.025152605026960373,
0.05901949852705002,
0.04567079246044159,
-0.030559424310922623,
-0.024677280336618423,
0.03384708613157272,
0.01588376984000206,
0.010744321160018444,
0.011239451356232166,
0.0041937511414289474,
-0.020993512123823166,
0.03281721845269203,
-0.0006080815219320357,
0.03285682573914528,
0.02733117714524269,
0.0029014619067311287,
0.044284429401159286,
0.01834951899945736,
0.0013764614704996347,
-0.05965326353907585,
0.020518187433481216,
-0.04246234893798828,
0.010397730395197868,
0.04705715551972389,
-0.00955600943416357,
0.03469870984554291,
0.0002081093261949718,
0.000252980476943776,
-0.0015163356438279152,
0.03477793186903,
-0.007407145109027624,
0.05089936405420303,
0.005184011068195105,
-0.025588318705558777,
-0.01704237423837185,
0.03873897343873978,
-0.015309419482946396,
-0.030559424310922623,
-0.095857173204422,
-0.07015001773834229,
-0.022617539390921593,
0.04281884431838989,
-0.015250003896653652,
-0.03347078710794449,
0.031173385679721832,
-0.019022895023226738,
0.010744321160018444,
0.015517374500632286,
0.001104758819565177,
0.006273297127336264,
0.025172410532832146,
0.02479611150920391,
0.05438508093357086,
0.017161205410957336,
-0.02655877359211445,
0.03267858177423477,
-0.006367371883243322,
-0.022003578022122383,
-0.034203581511974335,
0.05085975304245949,
-0.03095552884042263,
0.06599092483520508,
-0.06511949747800827,
0.025350656360387802,
-0.008813314139842987,
0.021746110171079636,
0.00048213283298537135,
0.00046139926416799426,
0.03343117982149124,
-0.012784256599843502,
0.01704237423837185,
0.06476300209760666,
0.019617050886154175,
0.009838233701884747,
0.00541177112609148,
0.001204403699375689,
-0.02245909720659256,
-0.022280849516391754,
-0.053988974541425705,
0.038164619356393814,
-0.012962503358721733,
-0.01629967987537384,
0.012041562236845493,
0.03697630763053894,
0.010675002820789814,
-0.056246768683195114,
-0.0019347205525264144,
-0.03915487974882126,
0.03196559473872185,
0.03232208639383316,
0.0298464372754097,
-0.07268508523702621,
-0.02109253779053688,
-0.0009252742165699601,
0.0060504889115691185,
0.07220976054668427,
0.001981757814064622,
-0.030599035322666168,
0.06171300262212753,
-0.023469163104891777,
-0.0035946439020335674,
0.007951787672936916,
-0.04499741643667221,
0.00044190353946760297,
0.01670568622648716,
0.0054167225025594234,
-0.03630293160676956,
0.0009797385428100824,
-0.019953738898038864,
-0.004480926785618067,
-0.02808377332985401,
0.060366250574588776,
-0.00862516462802887,
-0.030717866495251656,
0.05339482054114342,
-0.020498381927609444,
-0.0648818388581276,
0.03725358098745346,
-0.0361642949283123,
0.03499579057097435,
0.01773555763065815,
-0.000017000753359752707,
-0.13214029371738434,
-0.0545039102435112,
0.032421112060546875,
0.03883799910545349,
0.026796435937285423,
-0.09086626023054123,
-0.022974032908678055,
0.016309581696987152,
0.026677604764699936,
0.002621713327243924,
0.06733768433332443,
0.07260586321353912,
0.014933121390640736,
-0.06329742074012756,
-0.09102470427751541,
0.0006251016166061163,
-0.06832794100046158,
0.022241240367293358,
-0.007501219864934683,
-0.058781836181879044,
0.012378250248730183,
-0.058781836181879044,
0.04784936457872391,
0.0423039086163044,
-0.018329713493585587,
0.006070293951779604,
-0.04357144236564636,
0.04883962497115135,
-0.0005743508227169514,
0.012675328180193901,
0.002172383014112711,
0.00601087836548686,
-0.022518513724207878,
0.016309581696987152,
0.039214298129081726,
0.012348541989922523,
-0.007283362559974194,
0.01847825199365616,
0.06155456230044365,
-0.05985131487250328,
0.013467536307871342,
0.03162890672683716,
0.0357285812497139,
-0.01499253697693348,
0.013635880313813686,
-0.002544968156144023,
0.007431901525706053,
0.034005530178546906,
0.009422323666512966,
0.00876380130648613,
0.010585879907011986,
0.018329713493585587,
0.012180197983980179,
0.03620390594005585,
-0.060841575264930725,
0.012932796031236649,
-0.039808452129364014,
0.04032338783144951,
0.03911527246236801,
0.059138327836990356,
-0.03293604776263237,
-0.04963183030486107,
0.01616104319691658,
-0.033233124762773514,
-0.030420787632465363,
0.02643994241952896,
-0.06753573566675186,
-0.012061366811394691,
-0.07442793995141983,
-0.056801315397024155,
0.00006572077109012753,
0.027133123949170113,
0.014665750786662102,
-0.009793671779334545,
-0.03162890672683716,
-0.014645945280790329,
0.0364217646420002,
-0.015002439729869366,
0.0035896925255656242,
-0.019706174731254578,
0.020656824111938477,
-0.03669903799891472,
-0.006644644774496555,
0.0086944829672575,
0.035570140928030014,
-0.08801431208848953,
-0.028103578835725784,
-0.022003578022122383,
0.02527143619954586,
0.0043373387306928635,
-0.04357144236564636,
0.016339290887117386,
-0.034203581511974335,
-0.00468888133764267,
0.010863152332603931,
0.02671721577644348,
0.03511461988091469,
-0.010110555216670036,
0.06096040830016136,
-0.025093188509345055,
0.0049958620220422745,
-0.005144400987774134,
0.005456332582980394,
0.04396754503250122,
-0.02356818877160549,
0.026618190109729767,
0.021944161504507065,
-0.03574838489294052,
-0.03774871304631233,
0.005698946304619312,
0.08500391989946365,
0.08444937318563461,
0.03725358098745346,
-0.012437665835022926,
0.004981007892638445,
-0.07426950335502625,
-0.025647735223174095,
0.000217238295590505,
-0.012714938260614872,
0.061118848621845245,
-0.02937111258506775,
0.0002972327347379178,
-0.011645457707345486,
-0.002559822052717209,
-0.04388832300901413,
0.009664937853813171,
-0.026202280074357986,
-0.028776956722140312,
-0.04032338783144951,
0.004567574243992567,
0.013982471078634262,
-0.004399230238050222,
-0.005768264643847942,
0.00297820707783103,
-0.0019124397076666355,
0.006273297127336264,
-0.009803574532270432,
0.09498573839664459,
0.009060879237949848,
0.048443518579006195
] |
723,296
|
exponent_server_sdk
|
__init__
| null |
def __init__(self, message, response, response_data=None, errors=None):
self.message = message
self.response = response
self.response_data = response_data
self.errors = errors
super(PushServerError, self).__init__(self.message)
|
(self, message, response, response_data=None, errors=None)
|
[
-0.04476040229201317,
-0.015395903028547764,
-0.02886969782412052,
-0.02198055386543274,
-0.01691836677491665,
-0.009934068657457829,
-0.019325759261846542,
0.06169779971241951,
0.05077413097023964,
-0.018183913081884384,
0.04240058362483978,
0.04049750789999962,
0.015062864869832993,
-0.003982191439718008,
-0.014396787621080875,
0.021999584510922432,
0.05107862129807472,
-0.04160129278898239,
0.03408413380384445,
-0.03440765663981438,
0.0019185408018529415,
0.018202943727374077,
-0.006441920064389706,
0.09629575908184052,
0.00461020739749074,
0.0834309533238411,
-0.0026072172913700342,
0.0037799892015755177,
0.08533403277397156,
-0.010466930456459522,
-0.04224833846092224,
-0.018012635409832,
-0.01443484891206026,
0.06318219751119614,
-0.03166722133755684,
-0.007912048138678074,
-0.04708215594291687,
-0.04403723031282425,
-0.15711814165115356,
0.044151417911052704,
-0.030696652829647064,
0.01873580552637577,
-0.02776591293513775,
-0.009453541599214077,
0.08929243683815002,
-0.0016378368018195033,
0.0021017121616750956,
0.06025145947933197,
-0.009700941853225231,
0.0010353935649618506,
-0.06546589732170105,
0.042705077677965164,
-0.022246984764933586,
-0.01323590986430645,
-0.04662541672587395,
0.09393594413995743,
0.030753744766116142,
0.06835857033729553,
-0.05751102790236473,
0.0060946084558963776,
-0.08700873702764511,
0.059337981045246124,
0.0012929037911817431,
-0.01312172506004572,
-0.019278183579444885,
-0.006108881440013647,
-0.032809071242809296,
-0.00306395604275167,
-0.01102833915501833,
0.03376060724258423,
0.06538976728916168,
0.014834495261311531,
-0.0630299523472786,
0.00950587633997202,
0.05568407103419304,
0.017051581293344498,
-0.03709099441766739,
0.03652007132768631,
0.003337523667141795,
0.030925022438168526,
0.01575748808681965,
0.012274854816496372,
-0.0233698021620512,
0.021809278056025505,
0.04643511027097702,
-0.03391285613179207,
-0.023027246817946434,
-0.01988716796040535,
-0.04175353795289993,
0.04129679873585701,
-0.030582468956708908,
-0.025482218712568283,
-0.02184733934700489,
0.0027023712173104286,
0.005433288402855396,
-0.010095830075442791,
-0.02277984656393528,
-0.023331740871071815,
0.01633792743086815,
0.029459651559591293,
-0.016100041568279266,
-0.011608777567744255,
-0.03920341283082962,
-0.035911086946725845,
0.027385296300053596,
-0.012826748192310333,
0.026814373210072517,
-0.053133945912122726,
0.022380201146006584,
0.00023966892331372947,
0.03535919636487961,
0.010790454223752022,
-0.023483986034989357,
0.03566368669271469,
-0.03225717693567276,
0.020420029759407043,
-0.019868137314915657,
-0.012988509610295296,
0.030468283221125603,
-0.033589333295822144,
-0.0006286105490289629,
-0.023693324998021126,
0.0009110987302847207,
0.023750416934490204,
0.05857675150036812,
0.02631957270205021,
-0.01721334271132946,
-0.06280158460140228,
0.043656617403030396,
-0.058843180537223816,
0.017460742965340614,
-0.019582675769925117,
0.009648607112467289,
-0.05477059260010719,
-0.04281926155090332,
-0.016899336129426956,
-0.0037799892015755177,
-0.005352407693862915,
0.012075032107532024,
0.0033636908046901226,
0.04384692385792732,
0.06607487797737122,
-0.011094946414232254,
-0.03450280800461769,
0.005523684900254011,
-0.004469855222851038,
0.04434172436594963,
-0.011466046795248985,
-0.013483310118317604,
0.009006317704916,
0.008887375704944134,
-0.05697816610336304,
0.03686262667179108,
0.003420783206820488,
-0.00849724467843771,
-0.008506760001182556,
-0.003772852709516883,
-0.05465640872716904,
0.020362937822937965,
0.008083324879407883,
0.009448783472180367,
-0.06219260022044182,
0.013407186605036259,
-0.02024875394999981,
0.012760140001773834,
0.0005961987772025168,
0.04578806459903717,
-0.03320871666073799,
-0.0024062045849859715,
0.05317200720310211,
-0.03832799568772316,
-0.019982323050498962,
-0.0648188441991806,
-0.025044510141015053,
-0.034902457147836685,
0.010733361355960369,
0.02045809105038643,
-0.0039060681592673063,
-0.02624345012009144,
-0.016442596912384033,
-0.01363555621355772,
-0.0013333442620933056,
-0.006322977598756552,
0.05020320415496826,
0.013102694414556026,
0.011875208467245102,
0.030848899856209755,
0.03299937769770622,
0.002311050659045577,
0.02822265215218067,
0.011932301335036755,
0.001759157981723547,
0.018326643854379654,
0.03749064356088638,
0.04940391331911087,
0.030258944258093834,
0.06059401482343674,
-0.04514101892709732,
0.04297150671482086,
0.03465505689382553,
-0.04331406205892563,
0.03484536334872246,
-0.0035587563179433346,
-0.02812749706208706,
0.013245425187051296,
0.040763936936855316,
0.002213517902418971,
0.015177049674093723,
-0.016242774203419685,
-0.03855636715888977,
-0.03442668542265892,
0.02719498984515667,
0.011922786012291908,
0.0006964076892472804,
0.011551685631275177,
-0.007683678530156612,
0.03623460978269577,
-0.027537543326616287,
0.020572276785969734,
0.008773190900683403,
0.11342346668243408,
-0.045673880726099014,
-0.022075708955526352,
-0.023769447579979897,
-0.0614694282412529,
0.08228910714387894,
0.008892133831977844,
-0.03646298125386238,
-0.016004888340830803,
0.0185930747538805,
-0.03296131640672684,
0.035473380237817764,
0.03897504508495331,
0.0015188943361863494,
-0.04818594083189964,
-0.03488342463970184,
0.008796979673206806,
-0.0337035171687603,
-0.02639569528400898,
-0.04742471128702164,
0.05119280517101288,
-0.02835586667060852,
-0.02443552576005459,
0.06778764724731445,
0.04685378819704056,
-0.03412219509482384,
-0.02394072525203228,
0.05222046747803688,
-0.043580494821071625,
0.0027404327411204576,
0.007997686974704266,
-0.02357913926243782,
-0.01262692455202341,
-0.023483986034989357,
0.008649490773677826,
-0.04651123285293579,
0.044379785656929016,
-0.03239039331674576,
0.03966015204787254,
-0.007969140075147152,
0.0153007498010993,
0.013806832954287529,
-0.03147691488265991,
0.05800582841038704,
-0.0016532993176952004,
-0.021809278056025505,
-0.013578463345766068,
0.004714876413345337,
-0.005766327027231455,
0.06424792110919952,
0.1880241334438324,
0.025368032976984978,
0.036558132618665695,
0.035853996872901917,
-0.03935565799474716,
-0.022227954119443893,
-0.02807040512561798,
-0.02089579962193966,
-0.016747089102864265,
-0.058767057955265045,
0.014330179430544376,
-0.0470060333609581,
0.059566352516412735,
0.04807175695896149,
0.04331406205892563,
-0.03827090561389923,
0.04380886256694794,
0.006142185069620609,
-0.01150410808622837,
-0.03516888618469238,
-0.007593282498419285,
0.03572078049182892,
-0.05069800466299057,
0.03796641156077385,
-0.022399231791496277,
0.015234141610562801,
-0.024911295622587204,
0.0919567421078682,
0.022380201146006584,
-0.039165351539850235,
0.023883633315563202,
-0.04316181689500809,
0.015966827049851418,
-0.0037252758629620075,
0.012379524298012257,
-0.009287022054195404,
0.03212396055459976,
0.03802350535988808,
-0.0030235156882554293,
-0.01908787526190281,
0.04297150671482086,
0.06310607492923737,
-0.05286751687526703,
0.035473380237817764,
-0.01764153502881527,
0.05317200720310211,
0.05180179327726364,
-0.012988509610295296,
-0.019982323050498962,
0.04548357054591179,
0.005162099841982126,
-0.08571464568376541,
0.006884385831654072,
0.020724521949887276,
0.0565594881772995,
0.04810981824994087,
0.001423740410245955,
-0.03349417820572853,
0.028260713443160057,
0.01785087399184704,
0.004515053238719702,
-0.010828515514731407,
-0.0036015757359564304,
-0.07486709952354431,
0.01844082958996296,
-0.06774958968162537,
-0.031115330755710602,
-0.003154352307319641,
0.00012488951324485242,
-0.025368032976984978,
-0.02864132821559906,
-0.03216202184557915,
-0.013017055578529835,
0.030791806057095528,
-0.0003945913922507316,
-0.058196134865283966,
-0.01707061193883419,
-0.07022359222173691,
-0.032809071242809296,
-0.005847208201885223,
-0.04814787954092026,
0.020933860912919044,
0.022094739601016045,
0.026509881019592285,
0.06934817135334015,
-0.054351914674043655,
-0.05477059260010719,
0.02546318806707859,
0.02510160207748413,
0.013616525568068027,
0.01720382831990719,
0.014396787621080875,
-0.024568740278482437,
0.01887853629887104,
-0.0624970905482769,
0.01584312692284584,
0.02104804664850235,
0.023464955389499664,
0.0002801093505695462,
0.002333649666979909,
0.03339902311563492,
-0.06375312060117722,
-0.03842315077781677,
0.027937188744544983,
-0.01678515039384365,
0.03912729024887085,
-0.05172566697001457,
-0.0003919151786249131,
-0.07113707065582275,
-0.04449396952986717,
0.005014611408114433,
-0.026795342564582825,
-0.03210493177175522,
0.0067083509638905525,
0.02017262950539589,
0.024759048596024513,
0.0013012298149988055,
-0.0015950175002217293,
0.055950503796339035,
0.047995634377002716,
-0.023103371262550354,
-0.058462563902139664,
-0.03596818074584007,
0.009196626022458076,
-0.04925166815519333,
-0.012674501165747643,
0.008397333323955536,
0.03463602438569069,
-0.0027237809263169765,
-0.02458777092397213,
0.02308434061706066,
-0.024549709632992744,
0.020591307431459427,
0.013607010245323181,
0.055646009743213654,
-0.006760685704648495,
0.0018947523785755038,
0.06382924318313599,
0.026776311919093132,
0.017546381801366806,
0.055151209235191345,
-0.044303663074970245,
-0.04148710519075394,
-0.04662541672587395,
-0.040687814354896545,
-0.0020719764288514853,
-0.03001154400408268,
0.028774544596672058,
0.008915921673178673,
-0.03387479484081268,
-0.030982114374637604,
0.007079451344907284,
0.015138987451791763,
-0.006037516053766012,
-0.031134361401200294,
0.009781822562217712,
-0.016509205102920532,
-0.015614757314324379,
0.06002308800816536,
-0.011485077440738678,
0.00511928042396903,
0.03703390434384346,
-0.05640723928809166,
-0.02409297041594982,
0.03023991361260414,
0.00022257096134126186,
-0.037452582269907,
-0.0016818454023450613,
-0.04750083386898041,
0.05248690024018288,
-0.02127641625702381,
-0.0030401675030589104,
0.054580286145210266,
0.020876768976449966,
0.01611907407641411,
-0.008668521419167519,
-0.06607487797737122,
-0.006684562657028437,
-0.02011553756892681,
-0.025691557675600052,
0.027899127453565598,
-0.014568064361810684,
0.008092840202152729,
-0.034540873020887375,
-0.012741109356284142,
-0.06424792110919952,
-0.04434172436594963,
-0.00215285737067461,
0.017993604764342308,
-0.024530678987503052,
-0.030982114374637604,
-0.017736690118908882,
-0.08365932106971741,
-0.00404879916459322,
-0.03992658108472824,
0.0676734670996666,
0.009287022054195404,
0.006018484942615032,
-0.029174190014600754,
0.0006452624802477658,
-0.02719498984515667,
0.029040975496172905,
-0.02886969782412052,
0.03509276360273361,
-0.013911502435803413,
-0.003154352307319641,
0.005219192244112492,
-0.06329638510942459,
-0.05046963691711426,
-0.020191660150885582,
-0.035130824893713,
0.04007882997393608,
0.03507373481988907,
-0.013178816996514797,
-0.005057430360466242,
-0.026509881019592285,
0.0420960932970047,
-0.05027933046221733,
0.026852434501051903,
0.0061945198103785515,
-0.001483211643062532,
0.029821237549185753,
-0.060289520770311356,
-0.015062864869832993,
-0.05252496153116226,
0.011951331980526447,
-0.05907155200839043,
-0.0016283213626593351,
0.007141301408410072,
-0.008083324879407883,
0.013997141271829605,
-0.04026913642883301,
-0.004222454968839884,
-0.025786710903048515,
0.03535919636487961,
-0.037452582269907,
0.005404742434620857,
0.055798254907131195,
0.023255616426467896,
-0.0037110026460140944,
-0.017384620383381844,
0.03629170358181,
-0.028527144342660904,
0.01765105128288269,
0.012684016488492489,
0.009524906985461712,
-0.046549294143915176,
0.018383735790848732,
-0.02045809105038643,
0.023160463199019432,
0.041258737444877625,
0.05438997969031334,
0.04023107513785362,
0.010885607451200485,
0.000839138578157872,
-0.036348797380924225,
0.002452592132613063,
-0.02401684783399105,
-0.006541831884533167,
0.043352123349905014,
-0.01981104537844658,
-0.019715892150998116,
-0.053552623838186264,
0.028622297570109367,
0.004298578016459942,
0.041981905698776245,
-0.04860461875796318,
0.009791337884962559,
-0.023598171770572662,
-0.03235233202576637,
0.002835586667060852,
0.010761908255517483,
0.0010437194723635912,
-0.0552653931081295,
-0.09500166773796082,
-0.06478078663349152,
-0.021314477548003197,
0.07760753482580185,
-0.016242774203419685,
-0.03145788609981537,
0.0030116213019937277,
-0.06318219751119614,
-0.01474885642528534,
0.010267107747495174,
-0.04144904389977455,
-0.017470259219408035,
-0.016090527176856995,
0.007008085958659649,
0.04601643234491348,
0.011932301335036755,
-0.020343907177448273,
0.021295446902513504,
-0.02740432694554329,
0.008806494995951653,
-0.027518512681126595,
0.04137292131781578,
-0.008487729355692863,
0.048490434885025024,
-0.07962479442358017,
0.018355190753936768,
-0.012103578075766563,
0.02045809105038643,
-0.04769114404916763,
0.017603473737835884,
0.06154555082321167,
-0.012056001462042332,
0.03878473490476608,
0.06478078663349152,
0.02951674535870552,
0.04201997071504593,
0.012036969885230064,
0.017536867409944534,
-0.020058445632457733,
-0.02639569528400898,
-0.06759734451770782,
0.013797317631542683,
-0.009848429821431637,
-0.002284883288666606,
0.041334860026836395,
0.0016758983256295323,
0.006589408498257399,
-0.03541628643870354,
-0.021657031029462814,
-0.002928361762315035,
0.015138987451791763,
0.019563645124435425,
0.027175957337021828,
-0.061811983585357666,
-0.010171953588724136,
-0.007350639905780554,
0.0032542638946324587,
0.08655200153589249,
-0.027366265654563904,
-0.009486845694482327,
0.034826334565877914,
-0.025996049866080284,
-0.020439060404896736,
0.0681682676076889,
-0.05686397850513458,
0.01099027693271637,
0.00041154067730531096,
-0.015947796404361725,
-0.017384620383381844,
0.015034318901598454,
-0.012094062753021717,
-0.013949563726782799,
-0.028907759115099907,
0.07056614011526108,
-0.003848975757136941,
-0.029668990522623062,
0.04331406205892563,
-0.02900291420519352,
-0.04449396952986717,
0.0914238840341568,
-0.0348643958568573,
0.0480336956679821,
0.03368448466062546,
-0.04445590823888779,
-0.09104326367378235,
-0.0004507916746661067,
0.03073471412062645,
0.04163935407996178,
0.026167327538132668,
-0.06089850515127182,
0.012931416742503643,
0.025691557675600052,
0.015567180700600147,
0.0044080051593482494,
0.05713041126728058,
0.043352123349905014,
0.03016379103064537,
-0.05069800466299057,
-0.012522255070507526,
-0.031039206311106682,
-0.03436959534883499,
0.049137480556964874,
-0.020933860912919044,
-0.024568740278482437,
0.02053421549499035,
-0.0483001284301281,
0.028451019898056984,
0.030639560893177986,
0.0038941740058362484,
0.03261876106262207,
-0.018336160108447075,
0.055722132325172424,
-0.013721194118261337,
0.030068637803196907,
0.0197539534419775,
-0.005081219132989645,
-0.026566972956061363,
0.00540950009599328,
0.055874377489089966,
0.02161896973848343,
-0.00023223501921165735,
0.03939371928572655,
0.04601643234491348,
-0.047272466123104095,
-0.0018352811457589269,
0.029098067432641983,
0.029840268194675446,
0.006460950709879398,
0.016870789229869843,
0.026015080511569977,
0.01575748808681965,
-0.005271526984870434,
0.014682249166071415,
-0.004117785487323999,
0.01590021885931492,
0.00853054877370596,
0.004895668942481279,
0.034750208258628845,
-0.03094405308365822,
0.004707740154117346,
-0.0057568117044866085,
0.03216202184557915,
0.03347514569759369,
0.04708215594291687,
-0.021866369992494583,
-0.030068637803196907,
0.005399984773248434,
-0.042210277169942856,
-0.03029700741171837,
0.012722078710794449,
-0.05979472026228905,
-0.018964175134897232,
-0.05815807357430458,
-0.11372795701026917,
0.010076799429953098,
0.0021017121616750956,
0.023274647071957588,
-0.0052905576303601265,
-0.053057823330163956,
0.0012869567144662142,
-0.001958981156349182,
0.002933119423687458,
0.004928973037749529,
-0.0433901846408844,
-0.00030538460123352706,
-0.02451164834201336,
0.005028884392231703,
0.009991161525249481,
0.045445509254932404,
-0.06988103687763214,
-0.008245086297392845,
0.004850470926612616,
0.025577371940016747,
0.00011031907342839986,
-0.06333444267511368,
0.027727851644158363,
-0.04643511027097702,
-0.010029222816228867,
0.011665870435535908,
0.013930533081293106,
0.07871131598949432,
-0.016832727938890457,
0.020020384341478348,
-0.03109630011022091,
0.019354306161403656,
-0.01996329054236412,
-0.020857738330960274,
0.011818116530776024,
-0.035397257655858994,
0.020343907177448273,
0.011009307578206062,
-0.0578535795211792,
0.009772307239472866,
0.025996049866080284,
0.09150000661611557,
0.06299189478158951,
0.01633792743086815,
-0.08038602769374847,
0.0259579885751009,
-0.054351914674043655,
-0.026433758437633514,
0.0032566427253186703,
0.029117098078131676,
0.004986064974218607,
-0.0467396043241024,
0.019325759261846542,
-0.0015022424049675465,
-0.021447692066431046,
-0.03029700741171837,
0.02422618679702282,
-0.03037312999367714,
-0.029783176258206367,
-0.052829451858997345,
0.020020384341478348,
0.02009650692343712,
0.0018555013230070472,
-0.019202060997486115,
-0.009848429821431637,
0.0161381047219038,
-0.0004968818393535912,
0.04807175695896149,
0.1195894405245781,
0.037319365888834,
0.057396840304136276
] |
723,297
|
exponent_server_sdk
|
PushTicket
|
Wrapper class for a push notification response.
A successful single push notification:
{'status': 'ok'}
An invalid push token
{'status': 'error',
'message': '"adsf" is not a registered push notification recipient'}
|
class PushTicket(
namedtuple('PushTicket',
['push_message', 'status', 'message', 'details', 'id'])):
"""Wrapper class for a push notification response.
A successful single push notification:
{'status': 'ok'}
An invalid push token
{'status': 'error',
'message': '"adsf" is not a registered push notification recipient'}
"""
# Known status codes
ERROR_STATUS = 'error'
SUCCESS_STATUS = 'ok'
# Known error strings
ERROR_DEVICE_NOT_REGISTERED = 'DeviceNotRegistered'
ERROR_MESSAGE_TOO_BIG = 'MessageTooBig'
ERROR_MESSAGE_RATE_EXCEEDED = 'MessageRateExceeded'
def is_success(self):
"""Returns True if this push notification successfully sent."""
return self.status == PushTicket.SUCCESS_STATUS
def validate_response(self):
"""Raises an exception if there was an error. Otherwise, do nothing.
Clients should handle these errors, since these require custom handling
to properly resolve.
"""
if self.is_success():
return
# Handle the error if we have any information
if self.details:
error = self.details.get('error', None)
if error == PushTicket.ERROR_DEVICE_NOT_REGISTERED:
raise DeviceNotRegisteredError(self)
elif error == PushTicket.ERROR_MESSAGE_TOO_BIG:
raise MessageTooBigError(self)
elif error == PushTicket.ERROR_MESSAGE_RATE_EXCEEDED:
raise MessageRateExceededError(self)
# No known error information, so let's raise a generic error.
raise PushTicketError(self)
|
(push_message, status, message, details, id)
|
[
0.043587543070316315,
-0.003485018853098154,
-0.060221124440431595,
0.007645776960998774,
-0.0206785649061203,
-0.08468005061149597,
-0.027464311569929123,
0.01480010710656643,
0.005963516887277365,
-0.02806916832923889,
0.014592187479138374,
0.022417530417442322,
0.03417444974184036,
-0.0020000464282929897,
-0.049560509622097015,
0.03850296139717102,
0.00824590865522623,
-0.03211415186524391,
0.01860881969332695,
-0.0179283544421196,
0.04351193457841873,
0.059616267681121826,
0.010783474892377853,
0.09889420121908188,
0.02058405615389347,
0.041054703295230865,
0.017106125131249428,
-0.005387011915445328,
0.032378777861595154,
-0.0514506921172142,
-0.04513749107718468,
0.003078630194067955,
0.026160087436437607,
0.0020165855530649424,
-0.07938754558563232,
-0.020716369152069092,
-0.017361300066113472,
-0.012030993588268757,
-0.07647667080163956,
0.016624130308628082,
-0.029997151345014572,
0.028088070452213287,
-0.016614679247140884,
-0.049333687871694565,
0.04286927357316017,
-0.01787164807319641,
-0.0036882131826132536,
0.06090158969163895,
-0.016576875001192093,
-0.017937805503606796,
-0.012002641335129738,
0.053832318633794785,
-0.04525090008974075,
-0.0013302139705047011,
-0.0236650500446558,
0.0034684797283262014,
-0.0031967663671821356,
0.03425005450844765,
-0.005869007669389248,
0.032057445496320724,
-0.032926928251981735,
0.08853601664304733,
0.015679040923714638,
-0.005698891822248697,
-0.026500318199396133,
0.0010360546875745058,
0.026084478944540024,
0.006903881207108498,
-0.02491256780922413,
0.04131932929158211,
0.05655417591333389,
0.01086853351444006,
-0.0464228130877018,
-0.0005440173554234207,
0.06540022045373917,
0.010301479138433933,
-0.019223127514123917,
-0.0005889090825803578,
0.03258669748902321,
-0.018126823008060455,
0.006695961579680443,
0.010103010572493076,
0.01151119451969862,
0.015783000737428665,
0.03534635901451111,
0.06592946499586105,
0.036971915513277054,
-0.003726016730070114,
-0.07228047400712967,
0.03530855476856232,
-0.01820242963731289,
-0.015735745429992676,
-0.04097909480333328,
-0.02491256780922413,
0.0232114065438509,
-0.03753896802663803,
0.001030147890560329,
0.01054720301181078,
-0.05394572764635086,
-0.001100438996218145,
0.00425290409475565,
-0.05923823267221451,
-0.13654658198356628,
-0.000251187157118693,
-0.014251954853534698,
-0.04388997331261635,
-0.00040225384873338044,
-0.0305642057210207,
0.015480571426451206,
0.014677245169878006,
-0.022530941292643547,
-0.005646911915391684,
-0.052773818373680115,
0.04600697383284569,
0.03128247335553169,
-0.009876188822090626,
-0.0005059184040874243,
-0.010774023830890656,
-0.0643039122223854,
-0.042982686311006546,
0.05364329740405083,
-0.0514506921172142,
0.014516579918563366,
0.0468764565885067,
0.003747281152755022,
0.027861248701810837,
0.012607498094439507,
-0.047216687351465225,
0.04759472236037254,
-0.026953961700201035,
0.011218216270208359,
0.021018797531723976,
0.025101585313677788,
0.004718360956758261,
-0.014138543978333473,
-0.011161510832607746,
0.018769484013319016,
-0.008047440089285374,
0.04491066932678223,
-0.008680650033056736,
0.041054703295230865,
0.03566769137978554,
-0.018448153510689735,
-0.01796615868806839,
-0.010896885767579079,
-0.03426895663142204,
-0.036045726388692856,
-0.011416684836149216,
-0.054474979639053345,
-0.007981283590197563,
-0.025536326691508293,
-0.06540022045373917,
0.038937702775001526,
-0.0021418097894638777,
0.0031636881176382303,
0.008260085247457027,
0.03833284229040146,
-0.033248260617256165,
0.0019102628575637937,
-0.022001691162586212,
0.017540866509079933,
-0.04158395156264305,
0.0005162553279660642,
0.01176636852324009,
0.022719958797097206,
-0.0027454858645796776,
0.03969377279281616,
-0.05757487192749977,
-0.03288912773132324,
0.04131932929158211,
-0.030904438346624374,
0.03695301339030266,
-0.005037328694015741,
0.023910772055387497,
-0.04691426083445549,
-0.005637460853904486,
0.004505715798586607,
-0.0001745462795952335,
0.005467344541102648,
-0.05352988839149475,
-0.018457604572176933,
-0.04324731230735779,
-0.009337487630546093,
0.020187119022011757,
0.004267080686986446,
0.03166050836443901,
0.009261880069971085,
0.047859348356723785,
0.0055996570736169815,
-0.002218598499894142,
-0.019676771014928818,
-0.040827881544828415,
0.030715418979525566,
0.06101499870419502,
0.008416024968028069,
0.04623379558324814,
-0.010225871577858925,
0.03714203089475632,
0.020149314776062965,
0.02324921078979969,
-0.009517055004835129,
0.029694722965359688,
0.018457604572176933,
0.0025021254550665617,
-0.005060955882072449,
-0.03496832400560379,
0.03795480728149414,
-0.023060191422700882,
-0.008439652621746063,
-0.02549852430820465,
-0.011728565208613873,
0.008401848375797272,
-0.010443242266774178,
0.05591151490807533,
0.015584531240165234,
-0.026443613693118095,
0.04706547409296036,
-0.03419335186481476,
-0.010008501820266247,
-0.03451468050479889,
0.07742176204919815,
-0.07432186603546143,
-0.008907471783459187,
-0.031093455851078033,
0.009502878412604332,
0.07394383102655411,
-0.0000023627246719115647,
0.022209610790014267,
-0.005717793479561806,
-0.010471595451235771,
0.04075227305293083,
-0.034533582627773285,
0.06449293345212936,
-0.0065069436095654964,
-0.03869197890162468,
-0.03763347864151001,
-0.026481417939066887,
-0.05455058440566063,
0.048691026866436005,
-0.010679515078663826,
0.09178712218999863,
-0.028012461960315704,
0.005103485193103552,
0.09594552218914032,
0.03082882985472679,
-0.030980044975876808,
-0.013892821036279202,
0.04751911759376526,
-0.03143368661403656,
-0.030847731977701187,
-0.0496361181139946,
-0.003555900417268276,
-0.002109913155436516,
-0.018684426322579384,
0.016161035746335983,
-0.12618839740753174,
-0.002206784673035145,
-0.030526401475071907,
0.06838670372962952,
-0.006700687110424042,
0.044646043330430984,
0.040223024785518646,
0.04120591655373573,
0.08921647816896439,
0.004990074317902327,
-0.014592187479138374,
-0.045931365340948105,
0.016283897683024406,
0.011057551018893719,
0.05137508362531662,
0.06517339497804642,
-0.015376611612737179,
0.023513834923505783,
0.017106125131249428,
-0.039580363780260086,
-0.020962093025445938,
-0.0024903116282075644,
0.020602958276867867,
-0.027331998571753502,
-0.05802851542830467,
-0.06827329099178314,
-0.06970982998609543,
0.06320761144161224,
0.044835060834884644,
0.007867872714996338,
0.025309504941105843,
0.0021370844915509224,
0.019005756825208664,
0.040223024785518646,
-0.02472355030477047,
-0.005859557073563337,
0.01828748919069767,
-0.021018797531723976,
-0.02587655931711197,
0.021529147401452065,
0.032378777861595154,
-0.0597296766936779,
0.042718060314655304,
0.0895945131778717,
-0.04268025606870651,
0.00004969105066265911,
0.06789525598287582,
0.025290604680776596,
-0.04010961204767227,
0.008160850964486599,
0.01222001202404499,
0.03115016035735607,
0.01238067727535963,
-0.025763148441910744,
-0.0023261024616658688,
0.048464205116033554,
0.05795291066169739,
0.0055665792897343636,
-0.006190338637679815,
0.06744161248207092,
0.033286064863204956,
0.002148898085579276,
-0.028333792462944984,
0.014875713735818863,
0.04714108258485794,
-0.00003086309152422473,
-0.04199979081749916,
-0.01167185977101326,
0.001054365886375308,
0.06668554246425629,
-0.05005195736885071,
-0.03608353063464165,
-0.04944710060954094,
0.001190222566947341,
0.022946780547499657,
-0.011085904203355312,
-0.014941870234906673,
0.03133917972445488,
-0.019449949264526367,
0.031225768849253654,
-0.0028707103338092566,
0.002873073099181056,
0.02812587283551693,
-0.01810792088508606,
-0.03018616884946823,
0.0241186935454607,
-0.043625347316265106,
-0.008931098505854607,
0.06759282201528549,
-0.007140153553336859,
-0.03362629562616348,
-0.015376611612737179,
-0.03385311737656593,
0.03014836646616459,
-0.009257154539227486,
-0.024458924308419228,
-0.009687170386314392,
0.042302221059799194,
0.05776388943195343,
0.07787540555000305,
-0.0232114065438509,
-0.03426895663142204,
-0.007173231802880764,
0.0496361181139946,
0.023079093545675278,
0.038257237523794174,
-0.019922493025660515,
-0.004059161059558392,
-0.0037898102309554815,
-0.06634530425071716,
-0.001326669822447002,
-0.010481046512722969,
0.02986483834683895,
-0.012805967591702938,
0.019733475521206856,
-0.005037328694015741,
0.006681784987449646,
-0.06332101672887802,
0.01594366505742073,
-0.02742650732398033,
0.046989865601062775,
-0.028239283710718155,
0.06218691170215607,
-0.11015967279672623,
-0.052546996623277664,
0.028277087956666946,
-0.002913239412009716,
-0.01777713932096958,
0.05050560086965561,
0.050014153122901917,
-0.026594828814268112,
-0.011738015338778496,
-0.023079093545675278,
0.04986293986439705,
0.07292313128709793,
-0.05133727937936783,
-0.01829693838953972,
-0.03786030039191246,
0.02591436356306076,
-0.062111303210258484,
-0.02954350784420967,
0.009035059250891209,
0.0060107712633907795,
-0.015556178987026215,
-0.04218881204724312,
0.023910772055387497,
-0.007182682864367962,
-0.014233052730560303,
-0.010188068263232708,
0.028371596708893776,
0.04351193457841873,
0.0008647572249174118,
-0.024024182930588722,
-0.04789715260267258,
-0.009715523570775986,
0.060636963695287704,
-0.007371700834482908,
-0.031225768849253654,
-0.08445322513580322,
-0.01224836427718401,
-0.010603907518088818,
-0.017900001257658005,
0.03924012929201126,
0.02706737257540226,
-0.00822228193283081,
-0.019884690642356873,
-0.026311300694942474,
0.002506850752979517,
0.015546727925539017,
-0.08815798163414001,
0.0583687499165535,
0.018967952579259872,
0.03243548423051834,
0.028050266206264496,
0.011520645581185818,
0.035365261137485504,
0.01480010710656643,
-0.029430096969008446,
-0.005060955882072449,
0.03413664549589157,
-0.034306760877370834,
-0.05216895788908005,
-0.03901330754160881,
-0.02710517682135105,
0.006039123982191086,
-0.033475082367658615,
0.044683847576379776,
0.02260654978454113,
0.009096489287912846,
0.041054703295230865,
-0.040827881544828415,
-0.07273411750793457,
-0.03515734151005745,
0.012465734966099262,
0.01224836427718401,
0.02504488080739975,
0.011747466400265694,
0.057915106415748596,
-0.0011813623132184148,
0.004595499485731125,
-0.07084393501281738,
-0.07133538275957108,
-0.02054625377058983,
-0.010121911764144897,
-0.012588596902787685,
-0.011085904203355312,
-0.015830254182219505,
-0.04661183059215546,
0.02604667656123638,
-0.05160190537571907,
-0.017767688259482384,
0.01708722487092018,
-0.030394088476896286,
-0.04600697383284569,
-0.028144774958491325,
0.054928623139858246,
-0.015074183233082294,
0.0065069436095654964,
0.07088173925876617,
-0.057650480419397354,
-0.0019244392169639468,
0.00854833796620369,
0.012352324090898037,
-0.05859557166695595,
-0.08762872964143753,
0.014648892916738987,
0.029108766466379166,
0.02986483834683895,
0.0063415528275072575,
-0.024477826431393623,
0.014100740663707256,
0.06642091274261475,
-0.03252999112010002,
0.010150264948606491,
0.012361775152385235,
-0.07681690156459808,
-0.03296473249793053,
0.010944140143692493,
0.01929873414337635,
0.004741988144814968,
0.01176636852324009,
-0.058330945670604706,
0.016964362934231758,
-0.06154425069689751,
-0.026178987696766853,
0.02440221980214119,
-0.045515526086091995,
0.019827984273433685,
-0.03502503037452698,
0.09163591265678406,
-0.05262260138988495,
0.0012416117824614048,
0.04419239982962608,
0.04196199029684067,
-0.019563360139727592,
-0.03298363462090492,
-0.022436432540416718,
0.045099686831235886,
-0.036045726388692856,
0.02665153332054615,
0.01777713932096958,
0.0097627779468894,
-0.0344579741358757,
-0.05273601412773132,
0.0033975979313254356,
0.03874868154525757,
0.03275681287050247,
0.036461565643548965,
0.03523295000195503,
-0.0023627246264368296,
-0.014904066920280457,
0.02077307552099228,
-0.03561098501086235,
-0.000053973490139469504,
0.010263675823807716,
0.0058123026974499226,
0.007045644801110029,
-0.03638595715165138,
-0.029978249222040176,
0.015830254182219505,
-0.003300726180896163,
-0.052546996623277664,
0.010622809641063213,
-0.03587561100721359,
-0.025158291682600975,
-0.0034944696817547083,
0.024988174438476562,
-0.03271900862455368,
-0.04562893882393837,
-0.08384837210178375,
-0.024288808926939964,
-0.017058871686458588,
0.036367058753967285,
-0.016510719433426857,
-0.03466589376330376,
0.016236644238233566,
0.008359319530427456,
0.020924288779497147,
0.0006326194852590561,
-0.04525090008974075,
0.01948775164783001,
0.025895461440086365,
0.034306760877370834,
0.05315185338258743,
-0.001385738025419414,
-0.02982703596353531,
0.05035438761115074,
0.0008476274670101702,
-0.008779884316027164,
-0.024326613172888756,
0.015868058428168297,
0.006213965825736523,
0.03988279029726982,
-0.029562409967184067,
0.01072676945477724,
-0.030980044975876808,
0.01566958986222744,
0.011331627145409584,
0.017588121816515923,
0.05647856742143631,
-0.03772798553109169,
-0.008189203217625618,
0.05073242262005806,
0.008028537966310978,
0.015357709489762783,
0.020697467029094696,
0.013127298094332218,
-0.0008523528813384473,
-0.09503823518753052,
-0.025536326691508293,
0.004002455621957779,
-0.040185220539569855,
-0.02918437495827675,
0.01603817380964756,
0.04184857755899429,
-0.004087513778358698,
-0.05250919237732887,
-0.006440787110477686,
0.0037638202775269747,
0.02678384631872177,
0.04589356109499931,
0.015291553921997547,
-0.012201109901070595,
-0.040601059794425964,
0.021755967289209366,
0.011879779398441315,
0.04853981360793114,
-0.015159240923821926,
-0.0436631515622139,
0.05587371066212654,
-0.023041291162371635,
-0.03780359402298927,
-0.0040071806870400906,
-0.056365158408880234,
-0.009715523570775986,
0.06608068197965622,
-0.010414890013635159,
0.024553433060646057,
0.06721478700637817,
0.01686985418200493,
-0.01686985418200493,
-0.024458924308419228,
0.06672333925962448,
-0.046763043850660324,
-0.02636800706386566,
0.012418480589985847,
-0.002556467894464731,
-0.05931383743882179,
0.02918437495827675,
-0.019260931760072708,
-0.025895461440086365,
0.03831394016742706,
-0.005741420667618513,
-0.05288722738623619,
-0.03850296139717102,
0.017616475000977516,
0.051715314388275146,
0.056818801909685135,
-0.0565163716673851,
-0.012994985096156597,
0.013231257908046246,
0.021755967289209366,
-0.0022221424151211977,
0.030110562220215797,
0.04585576057434082,
0.014062936417758465,
-0.038389548659324646,
-0.0629807859659195,
0.018769484013319016,
0.006209240294992924,
0.045704543590545654,
-0.002421792596578598,
-0.06487096846103668,
0.02908986434340477,
-0.008950000628829002,
0.003213305491954088,
0.02992154471576214,
0.01635005511343479,
-0.030016053467988968,
-0.05201774463057518,
0.04475945606827736,
-0.04993854835629463,
0.02330591529607773,
-0.01192703377455473,
0.018126823008060455,
-0.024458924308419228,
-0.034533582627773285,
-0.0007206309819594026,
-0.02614118531346321,
-0.02540401555597782,
0.04067666828632355,
-0.0032960008829832077,
-0.012267266400158405,
-0.013996780849993229,
0.012191658839583397,
0.05564688891172409,
0.017153380438685417,
0.07863147556781769,
-0.004002455621957779,
-0.02604667656123638,
-0.01208769902586937,
0.006100554950535297,
0.021623656153678894,
-0.011303274892270565,
0.012626400217413902,
0.02417539805173874,
0.05307624489068985,
-0.06184667721390724,
0.023608343675732613,
-0.004782154690474272,
0.014195249415934086,
0.03772798553109169,
0.0015074183465912938,
-0.02780454233288765,
-0.07042809575796127,
0.020527351647615433,
-0.051904335618019104,
-0.03385311737656593,
0.01544276811182499,
-0.11068892478942871,
-0.033664099872112274,
-0.0840751901268959,
-0.004191473592072725,
0.048048365861177444,
-0.019090814515948296,
0.02655702456831932,
-0.03179282322525978,
0.010849631391465664,
0.017521966248750687,
0.03432566300034523,
0.032643403857946396,
-0.011170961894094944,
-0.010934689082205296,
0.04842640459537506,
-0.015527825802564621,
-0.014875713735818863,
0.03619693964719772,
0.03360739350318909,
-0.0633966252207756,
0.018353644758462906,
-0.0074047790840268135,
-0.0010366453789174557,
0.029373392462730408,
-0.003766183042898774,
0.03740665689110756,
-0.022266317158937454,
0.011303274892270565,
0.020754173398017883,
0.0015085996128618717,
0.031547099351882935,
0.030961142852902412,
0.07144878804683685,
-0.013845565728843212,
-0.03322935849428177,
0.03156600147485733,
0.014346463605761528,
0.07299873977899551,
-0.04449483007192612,
0.037104226648807526,
0.003425950650125742,
-0.04623379558324814,
0.003385784337297082,
0.029108766466379166,
0.07787540555000305,
0.10305259376764297,
0.00379689852707088,
-0.027785642072558403,
0.018911248072981834,
-0.02440221980214119,
-0.0418107733130455,
-0.03521404787898064,
0.020149314776062965,
0.02099989540874958,
-0.01915697008371353,
-0.021812673658132553,
0.012295618653297424,
0.006001320667564869,
-0.0588223896920681,
-0.010830729268491268,
0.04173516854643822,
-0.014261405915021896,
-0.02270105853676796,
-0.017682630568742752,
-0.007045644801110029,
-0.004975898191332817,
0.0008192747482098639,
0.01897740364074707,
-0.00679992139339447,
0.029675820842385292,
-0.07976558059453964,
0.07239387929439545,
-0.026859452947974205,
0.08770433813333511
] |
723,299
|
namedtuple_PushTicket
|
__new__
|
Create new instance of PushTicket(push_message, status, message, details, id)
|
from builtins import function
|
(_cls, push_message, status, message, details, id)
|
[
0.009987438097596169,
-0.03448875993490219,
0.019406022503972054,
0.011531468480825424,
0.012425380758941174,
0.06140364706516266,
-0.0008573431405238807,
0.005846999119967222,
-0.012457886710762978,
-0.02476949617266655,
-0.015155876986682415,
0.03673166781663895,
0.0068709347397089005,
0.005513813346624374,
-0.06845743209123611,
-0.00024112776736728847,
0.03549644351005554,
0.0906914621591568,
-0.028101351112127304,
-0.002236812375485897,
-0.06644206494092941,
0.018658388406038284,
0.036829184740781784,
-0.01482269074767828,
0.03001919947564602,
0.1003132089972496,
0.037869375199079514,
-0.04498816654086113,
0.010848844423890114,
-0.052789583802223206,
-0.010718820616602898,
-0.04229017719626427,
0.004028700292110443,
-0.0029092782642692327,
-0.0009629873093217611,
-0.04924644157290459,
0.023127948865294456,
0.04050235450267792,
-0.061208613216876984,
-0.07209809124469757,
0.03507386893033981,
0.01135268621146679,
-0.011247041635215282,
0.003183546708896756,
-0.008768467232584953,
-0.00689125107601285,
-0.02332298457622528,
-0.0341637022793293,
0.01773197017610073,
0.010336876846849918,
0.006306144874542952,
-0.037056729197502136,
0.06715719401836395,
-0.014066928997635841,
-0.015350911766290665,
0.07482858747243881,
0.01045877393335104,
0.019666070118546486,
-0.03968970477581024,
0.04989656060934067,
-0.03315601870417595,
0.023810572922229767,
-0.026394791901111603,
-0.041997626423835754,
0.028020087629556656,
0.03588651493191719,
-0.04352540150284767,
-0.017244379967451096,
-0.057340409606695175,
0.029889175668358803,
-0.06107858940958977,
0.014042549766600132,
0.0058510624803602695,
-0.030230488628149033,
0.055910151451826096,
-0.01782948710024357,
-0.09316191077232361,
-0.01740691065788269,
0.009174791164696217,
-0.022039001807570457,
0.01517212949693203,
-0.036829184740781784,
-0.012864210642874241,
0.033643607050180435,
-0.027678774669766426,
-0.040534857660532,
-0.03799939900636673,
0.001794935204088688,
-0.012669174931943417,
0.009207296185195446,
-0.05431736260652542,
-0.016456112265586853,
-0.0481412410736084,
0.027044910937547684,
0.003520795376971364,
-0.006586508359760046,
0.01877215877175331,
-0.02301417849957943,
0.03377363085746765,
-0.04784868657588959,
0.061858732253313065,
0.01950354129076004,
0.007000958546996117,
-0.05464242026209831,
0.040567364543676376,
0.04784868657588959,
0.00470929266884923,
0.015342785976827145,
-0.023599283769726753,
0.007021274883300066,
-0.046515945345163345,
0.010028070770204067,
0.016919322311878204,
-0.014497632160782814,
-0.004473624750971794,
-0.03289597108960152,
0.02541961520910263,
0.004266399424523115,
0.02199024148285389,
0.012766692787408829,
0.01708185113966465,
0.04313533008098602,
0.0028523928485810757,
-0.010182473808526993,
0.10252360999584198,
0.05483745411038399,
0.02296542003750801,
0.013953158631920815,
0.05096925422549248,
-0.0007715072715654969,
0.004384233616292477,
0.028020087629556656,
-0.04573580250144005,
0.03250590339303017,
-0.04560577869415283,
-0.010588797740638256,
-0.01585475355386734,
0.0447281189262867,
0.005964832846075296,
0.03832445666193962,
-0.041997626423835754,
0.0013682952849194407,
0.04118497669696808,
-0.009126031771302223,
-0.036406610161066055,
-0.014050675556063652,
-0.003236368764191866,
0.02959662303328514,
0.0005774876335635781,
0.011173903942108154,
-0.0058510624803602695,
0.031904540956020355,
0.031937047839164734,
0.020478717982769012,
0.005278145894408226,
0.05018911138176918,
0.05301712453365326,
-0.05262705311179161,
0.016634894534945488,
-0.053439702838659286,
0.012547277845442295,
0.07105790078639984,
-0.06007090583443642,
-0.014522011391818523,
0.017016839236021042,
-0.01410756167024374,
0.023989355191588402,
-0.036959208548069,
0.021795207634568214,
0.004071364179253578,
-0.014660161919891834,
-0.04261523857712746,
0.018317075446248055,
0.04560577869415283,
0.0633540004491806,
0.037869375199079514,
-0.04524821415543556,
0.09023638069629669,
0.005241576582193375,
0.029060276225209236,
-0.0034639101941138506,
0.0009589241235516965,
-0.11110517382621765,
0.00977614987641573,
0.015789741650223732,
0.05022161826491356,
0.040534857660532,
-0.02060874179005623,
0.026573574170470238,
-0.03565897420048714,
-0.029434094205498695,
0.011986550875008106,
0.052497029304504395,
0.013205522671341896,
-0.006318334490060806,
-0.06793733686208725,
-0.05919324606657028,
0.0022510336712002754,
-0.009597367607057095,
0.0010102224769070745,
-0.005107489880174398,
0.01781323365867138,
0.022819142788648605,
0.05613769218325615,
0.00741134537383914,
0.004229830577969551,
-0.02790631726384163,
0.006436168681830168,
-0.06276889890432358,
-0.02229904755949974,
0.04632091149687767,
-0.059778351336717606,
0.010133714415133,
0.07339832931756973,
-0.001040188828483224,
0.007716088555753231,
0.02121010050177574,
-0.011060132645070553,
0.009288561530411243,
0.009759897366166115,
0.07073283940553665,
0.028458917513489723,
0.009719264693558216,
-0.024184390902519226,
0.09621746838092804,
0.005960769485682249,
-0.01062130369246006,
0.018057027831673622,
0.004146534018218517,
-0.011677744798362255,
0.0557476207613945,
-0.012782946228981018,
-0.00940233189612627,
-0.023404249921441078,
0.006716531701385975,
-0.033221032470464706,
0.03910459950566292,
0.04918142780661583,
0.007691708859056234,
0.007752657402306795,
-0.0006435152608901262,
0.040534857660532,
0.04989656060934067,
0.04599585011601448,
0.0240706205368042,
0.006147678475826979,
0.013774375431239605,
0.03998225927352905,
-0.061891235411167145,
-0.0030718077905476093,
0.015692224726080894,
-0.027126174420118332,
0.015383417718112469,
-0.029466599225997925,
0.007716088555753231,
0.007472293917089701,
0.019942371174693108,
0.002507017692551017,
0.018382087349891663,
-0.004485814366489649,
-0.00873596128076315,
-0.047946203500032425,
-0.033269789069890976,
0.0019818441942334175,
-0.04541074484586716,
-0.03209957852959633,
-0.03102688305079937,
0.048596322536468506,
0.014326975680887699,
-0.0019249588949605823,
0.04576830938458443,
-0.024119378998875618,
-0.004380170255899429,
0.005623520817607641,
-0.06228130683302879,
0.01916222833096981,
-0.011433950625360012,
0.014140067622065544,
0.046580955386161804,
-0.03591902181506157,
0.01183214783668518,
0.01706559769809246,
-0.08210990577936172,
0.013684984296560287,
-0.0823049396276474,
0.007569811772555113,
0.01062130369246006,
-0.051359325647354126,
0.01885342225432396,
-0.004233893472701311,
0.03734927996993065,
0.0041018384508788586,
0.04173757880926132,
0.008687201887369156,
0.0656944289803505,
0.07456853985786438,
-0.022120265290141106,
-0.06517433375120163,
0.06276889890432358,
0.005591014865785837,
0.006761227734386921,
-0.03910459950566292,
-0.01851211115717888,
0.02723994478583336,
-0.024119378998875618,
-0.045085687190294266,
0.06062350794672966,
-0.008874110877513885,
-0.08041960000991821,
0.017992015928030014,
-0.030945617705583572,
-0.007049717474728823,
-0.053829774260520935,
-0.04079490527510643,
0.04300530627369881,
0.03131943568587303,
-0.023778067901730537,
0.018008269369602203,
-0.02342050150036812,
0.05054667592048645,
-0.017959510907530785,
-0.00454676290974021,
0.07053780555725098,
0.05470743402838707,
-0.020478717982769012,
-0.04014478996396065,
0.01984485238790512,
-0.04498816654086113,
0.056690290570259094,
0.03520389273762703,
-0.09251179546117783,
0.015919765457510948,
0.07924938946962357,
0.040664881467819214,
-0.014887702651321888,
0.06657208502292633,
0.02925531193614006,
0.014684541150927544,
-0.025614650920033455,
-0.012327862903475761,
-0.013530581258237362,
0.055617596954107285,
-0.002413563197478652,
0.008410901762545109,
-0.0330747552216053,
-0.0012636668980121613,
-0.038129422813653946,
0.01043439470231533,
0.10525410622358322,
-0.0731382817029953,
0.031872037798166275,
-0.030604306608438492,
-0.034358736127614975,
0.00031490091350860894,
0.03216458857059479,
0.036049045622348785,
-0.009711137972772121,
0.013319293037056923,
-0.02680111490190029,
-0.011409571394324303,
0.0663120374083519,
-0.062248799949884415,
-0.011596480384469032,
0.005656026769429445,
0.02231530100107193,
-0.005436611827462912,
0.021405136212706566,
0.014213205315172672,
0.019097216427326202,
-0.017927004024386406,
0.001064568292349577,
-0.025175821036100388,
-0.059388283640146255,
-0.04173757880926132,
-0.04768615588545799,
-0.024119378998875618,
0.02995418757200241,
0.004936833865940571,
-0.06231381371617317,
0.051781900227069855,
0.057372916489839554,
0.03448875993490219,
-0.0023505829740315676,
-0.033286042511463165,
0.005903884302824736,
0.003770684590563178,
-0.026573574170470238,
0.03213208541274071,
-0.032197095453739166,
0.014408241026103497,
-0.014668287709355354,
-0.011060132645070553,
0.017179368063807487,
0.012457886710762978,
0.008256498724222183,
-0.008849731646478176,
-0.02472073771059513,
-0.05643024668097496,
-0.0019980971701443195,
0.04033982381224632,
0.022802889347076416,
0.07086286693811417,
0.0013347736094146967,
0.04768615588545799,
0.016407353803515434,
-0.0034070247784256935,
0.0349438451230526,
0.016919322311878204,
0.017341898754239082,
-0.028150111436843872,
0.02470448426902294,
-0.050416652113199234,
-0.0970626249909401,
-0.061468660831451416,
0.001500350539572537,
0.024119378998875618,
-0.026281021535396576,
-0.04775116965174675,
-0.01771571673452854,
-0.03031175397336483,
0.027743786573410034,
-0.060851048678159714,
-0.011889033950865269,
0.04248521476984024,
-0.020722512155771255,
-0.03302599489688873,
0.000788268109317869,
0.015269647352397442,
-0.02615099772810936,
0.0324571430683136,
-0.047166064381599426,
0.011417698115110397,
-0.0051562488079071045,
-0.06163118779659271,
0.03578899800777435,
-0.024558208882808685,
-0.05483745411038399,
-0.004372043535113335,
0.0787292942404747,
0.01655363105237484,
0.041315000504255295,
0.05860814079642296,
0.020755019038915634,
-0.043720439076423645,
0.017179368063807487,
0.0005673295818269253,
-0.005530066322535276,
0.08445033431053162,
-0.014993347227573395,
-0.023209214210510254,
-0.00817523431032896,
-0.004081522114574909,
0.000427401828346774,
0.004863695707172155,
0.054577410221099854,
0.0006074540433473885,
-0.047166064381599426,
0.027044910937547684,
-0.011563974432647228,
-0.0042542098090052605,
-0.03578899800777435,
0.023209214210510254,
-0.03861701115965843,
-0.020494971424341202,
-0.02680111490190029,
0.09381203353404999,
-0.010377509519457817,
0.01878841035068035,
0.007569811772555113,
0.015123371034860611,
0.018967192620038986,
0.006517433095723391,
-0.03978722169995308,
-0.029450347647070885,
0.05275707691907883,
0.07183804363012314,
-0.059453293681144714,
-0.017536934465169907,
0.04459809511899948,
-0.02306293696165085,
-0.03211583197116852,
-0.05812055245041847,
0.017861992120742798,
0.02342050150036812,
-0.03458628058433533,
0.02122635394334793,
0.02579343318939209,
-0.016919322311878204,
0.01981234736740589,
-0.048628829419612885,
0.011035753414034843,
0.11806143075227737,
0.03419620916247368,
-0.02372930757701397,
0.026264768093824387,
0.013335546478629112,
-0.009857414290308952,
0.02823137491941452,
-0.013644352555274963,
-0.014879576861858368,
0.0019503540825098753,
0.034683797508478165,
-0.06787232309579849,
0.05828308314085007,
0.03845448046922684,
0.049311451613903046,
0.053862277418375015,
-0.026914887130260468,
-0.05122930184006691,
-0.04560577869415283,
-0.00017040202510543168,
0.01392065268009901,
-0.01813829317688942,
0.011840274557471275,
0.042745258659124374,
-0.02719118632376194,
-0.025159567594528198,
0.012149080634117126,
-0.07885931432247162,
0.005050604231655598,
0.010686314664781094,
-0.05470743402838707,
-0.04560577869415283,
-0.07840423285961151,
-0.009703011251986027,
-0.01953604631125927,
-0.027451233938336372,
0.038129422813653946,
-0.0009040703880600631,
0.040534857660532,
0.034293726086616516,
0.024135632440447807,
-0.0013886115048080683,
-0.01309175230562687,
-0.019633565098047256,
0.0967375636100769,
-0.060168422758579254,
-0.022754130885004997,
0.013010486960411072,
0.03027924709022045,
-0.0299704410135746,
-0.013693111017346382,
0.018642134964466095,
0.04391547292470932,
0.01916222833096981,
-0.021470148116350174,
-0.07528366893529892,
-0.014895829372107983,
-0.00885785836726427,
0.00972739141434431,
-0.029206551611423492,
-0.01912972331047058,
-0.016935573890805244,
0.0015643464867025614,
0.02964538149535656,
-0.055910151451826096,
0.004128249362111092,
-0.02645980380475521,
-0.047588638961315155,
-0.021470148116350174,
-0.01609042100608349,
0.0288814939558506,
0.011271421797573566,
0.026654839515686035,
-0.06806735694408417,
-0.005115616135299206,
0.008402775973081589,
0.0355614572763443,
0.007984261959791183,
-0.061533670872449875,
0.016147306188941002,
-0.004835252650082111,
0.06163118779659271,
-0.038194432854652405,
-0.04014478996396065,
0.07014773786067963,
0.024493196979165077,
-0.06462173163890839,
0.04105495288968086,
-0.042355190962553024,
-0.07248815894126892,
-0.025370856747031212,
0.005115616135299206,
-0.037121739238500595,
-0.027483738958835602,
-0.012409128248691559,
-0.010158094577491283,
0.052106961607933044,
0.009321067482233047,
-0.06663709878921509,
-0.004940897226333618,
-0.0034314042422920465,
0.007183804176747799,
-0.051749397069215775,
-0.012214092537760735,
-0.04105495288968086,
-0.04976653680205345,
0.0535697266459465,
-0.016252951696515083,
-0.047881193459033966,
0.009589240886271,
0.014749553054571152,
-0.0036487875040620565,
-0.028328893706202507,
0.04206263646483421,
0.030799342319369316,
0.0033460762351751328,
-0.022250289097428322,
-0.00722037348896265,
-0.01479831151664257,
-0.032619673758745193,
-0.029905429109930992,
-0.02335548959672451,
-0.017325645312666893,
0.06566192209720612,
0.05252953618764877,
0.022429071366786957,
-0.011401444673538208,
-0.004684912972152233,
0.028361398726701736,
-0.04359041526913643,
0.013449316844344139,
-0.01588725857436657,
-0.02195773646235466,
0.07274820655584335,
0.02654106914997101,
0.025500880554318428,
0.005387853365391493,
0.05617019906640053,
0.0017360183410346508,
-0.0447281189262867,
-0.010588797740638256,
0.0883510410785675,
-0.06276889890432358,
-0.014977093786001205,
-0.02444443851709366,
0.006846555508673191,
0.01097886823117733,
-0.010019944049417973,
0.014855196699500084,
-0.010149967856705189,
-0.022900408133864403,
-0.024233149364590645,
-0.03926713019609451,
0.02749999240040779,
0.013717490248382092,
-0.04417552053928375,
0.003642692696303129,
0.047166064381599426,
-0.05470743402838707,
0.007553558796644211,
0.02715868130326271,
-0.0042379568330943584,
0.08067964762449265,
-0.02472073771059513,
-0.025533385574817657,
-0.00340499309822917,
-0.052106961607933044,
0.07339832931756973,
-0.03825944662094116,
-0.007691708859056234,
-0.024834508076310158,
-0.024639474228024483,
0.06702716648578644,
0.005014035385102034,
-0.040209800004959106,
0.013806881383061409,
-0.03237587958574295,
-0.004351727664470673,
-0.007667329628020525,
0.02962912991642952,
-0.0341637022793293,
0.0040794904343783855,
-0.0543498657643795,
-0.02608598582446575,
0.018300822004675865,
0.02751624584197998,
0.05786050483584404,
0.0009604478254914284,
-0.003126661293208599,
-0.043037813156843185,
-0.023209214210510254,
-0.020624995231628418,
-0.056560270488262177,
-0.03721925616264343,
0.013449316844344139,
-0.04121748358011246,
0.03232711926102638,
-0.003963688388466835,
-0.032245855778455734,
-0.0017634452087804675,
0.0018802632112056017,
-0.026719851419329643,
-0.02504579722881317,
-0.0226728655397892,
0.03809691593050957,
-0.011921538971364498,
-0.027288705110549927,
0.002153516048565507,
-0.017569439485669136,
0.033269789069890976,
0.014977093786001205,
0.005050604231655598,
-0.004008383955806494,
0.02476949617266655,
-0.03903958946466446,
-0.03133568912744522,
-0.02199024148285389,
-0.04072989523410797,
0.026020973920822144,
0.01239287480711937,
-0.030604306608438492,
-0.01648861914873123,
0.030896859243512154,
0.04209514334797859,
-0.05262705311179161,
-0.02964538149535656,
0.07885931432247162,
0.030506787821650505,
-0.00977614987641573,
0.028653951361775398,
-0.037154246121644974,
0.03754431754350662,
0.015399671159684658,
0.06982267647981644,
0.02366429567337036,
-0.06007090583443642,
0.018008269369602203,
-0.044858142733573914,
0.01585475355386734,
-0.004136376082897186,
0.03377363085746765,
-0.04043734073638916,
0.06283390522003174,
0.012685428373515606,
-0.020364947617053986,
-0.010369382798671722,
0.02959662303328514,
-0.020397452637553215,
-0.03380613774061203,
-0.03877954185009003,
-0.06302894651889801,
0.002104757120832801,
-0.015180256217718124,
0.024623220786452293,
-0.019422275945544243,
0.021746447309851646,
-0.024655725806951523,
0.024883268401026726,
0.07248815894126892,
0.006115172524005175,
0.048628829419612885,
0.02299792505800724,
-0.019292252138257027,
0.045865826308727264,
-0.016066042706370354,
-0.01776447519659996,
0.004126217681914568,
-0.03179077059030533,
-0.02758125774562359,
-0.09940304607152939,
0.031481966376304626,
-0.015724729746580124,
-0.02548462711274624,
0.05617019906640053,
-0.02964538149535656,
0.003228242276236415,
0.01674054004251957
] |
723,302
|
collections
|
_replace
|
Return a new PushTicket object replacing specified fields with new values
|
def namedtuple(typename, field_names, *, rename=False, defaults=None, module=None):
"""Returns a new subclass of tuple with named fields.
>>> Point = namedtuple('Point', ['x', 'y'])
>>> Point.__doc__ # docstring for the new class
'Point(x, y)'
>>> p = Point(11, y=22) # instantiate with positional args or keywords
>>> p[0] + p[1] # indexable like a plain tuple
33
>>> x, y = p # unpack like a regular tuple
>>> x, y
(11, 22)
>>> p.x + p.y # fields also accessible by name
33
>>> d = p._asdict() # convert to a dictionary
>>> d['x']
11
>>> Point(**d) # convert from a dictionary
Point(x=11, y=22)
>>> p._replace(x=100) # _replace() is like str.replace() but targets named fields
Point(x=100, y=22)
"""
# Validate the field names. At the user's option, either generate an error
# message or automatically replace the field name with a valid name.
if isinstance(field_names, str):
field_names = field_names.replace(',', ' ').split()
field_names = list(map(str, field_names))
typename = _sys.intern(str(typename))
if rename:
seen = set()
for index, name in enumerate(field_names):
if (not name.isidentifier()
or _iskeyword(name)
or name.startswith('_')
or name in seen):
field_names[index] = f'_{index}'
seen.add(name)
for name in [typename] + field_names:
if type(name) is not str:
raise TypeError('Type names and field names must be strings')
if not name.isidentifier():
raise ValueError('Type names and field names must be valid '
f'identifiers: {name!r}')
if _iskeyword(name):
raise ValueError('Type names and field names cannot be a '
f'keyword: {name!r}')
seen = set()
for name in field_names:
if name.startswith('_') and not rename:
raise ValueError('Field names cannot start with an underscore: '
f'{name!r}')
if name in seen:
raise ValueError(f'Encountered duplicate field name: {name!r}')
seen.add(name)
field_defaults = {}
if defaults is not None:
defaults = tuple(defaults)
if len(defaults) > len(field_names):
raise TypeError('Got more default values than field names')
field_defaults = dict(reversed(list(zip(reversed(field_names),
reversed(defaults)))))
# Variables used in the methods and docstrings
field_names = tuple(map(_sys.intern, field_names))
num_fields = len(field_names)
arg_list = ', '.join(field_names)
if num_fields == 1:
arg_list += ','
repr_fmt = '(' + ', '.join(f'{name}=%r' for name in field_names) + ')'
tuple_new = tuple.__new__
_dict, _tuple, _len, _map, _zip = dict, tuple, len, map, zip
# Create all the named tuple methods to be added to the class namespace
namespace = {
'_tuple_new': tuple_new,
'__builtins__': {},
'__name__': f'namedtuple_{typename}',
}
code = f'lambda _cls, {arg_list}: _tuple_new(_cls, ({arg_list}))'
__new__ = eval(code, namespace)
__new__.__name__ = '__new__'
__new__.__doc__ = f'Create new instance of {typename}({arg_list})'
if defaults is not None:
__new__.__defaults__ = defaults
@classmethod
def _make(cls, iterable):
result = tuple_new(cls, iterable)
if _len(result) != num_fields:
raise TypeError(f'Expected {num_fields} arguments, got {len(result)}')
return result
_make.__func__.__doc__ = (f'Make a new {typename} object from a sequence '
'or iterable')
def _replace(self, /, **kwds):
result = self._make(_map(kwds.pop, field_names, self))
if kwds:
raise ValueError(f'Got unexpected field names: {list(kwds)!r}')
return result
_replace.__doc__ = (f'Return a new {typename} object replacing specified '
'fields with new values')
def __repr__(self):
'Return a nicely formatted representation string'
return self.__class__.__name__ + repr_fmt % self
def _asdict(self):
'Return a new dict which maps field names to their values.'
return _dict(_zip(self._fields, self))
def __getnewargs__(self):
'Return self as a plain tuple. Used by copy and pickle.'
return _tuple(self)
# Modify function metadata to help with introspection and debugging
for method in (
__new__,
_make.__func__,
_replace,
__repr__,
_asdict,
__getnewargs__,
):
method.__qualname__ = f'{typename}.{method.__name__}'
# Build-up the class namespace dictionary
# and use type() to build the result class
class_namespace = {
'__doc__': f'{typename}({arg_list})',
'__slots__': (),
'_fields': field_names,
'_field_defaults': field_defaults,
'__new__': __new__,
'_make': _make,
'_replace': _replace,
'__repr__': __repr__,
'_asdict': _asdict,
'__getnewargs__': __getnewargs__,
'__match_args__': field_names,
}
for index, name in enumerate(field_names):
doc = _sys.intern(f'Alias for field number {index}')
class_namespace[name] = _tuplegetter(index, doc)
result = type(typename, (tuple,), class_namespace)
# For pickling to work, the __module__ variable needs to be set to the frame
# where the named tuple is created. Bypass this step in environments where
# sys._getframe is not defined (Jython for example) or sys._getframe is not
# defined for arguments greater than 0 (IronPython), or where the user has
# specified a particular module.
if module is None:
try:
module = _sys._getframe(1).f_globals.get('__name__', '__main__')
except (AttributeError, ValueError):
pass
if module is not None:
result.__module__ = module
return result
|
(self, /, **kwds)
|
[
0.05422734469175339,
0.0013971473090350628,
-0.015411114320158958,
-0.035643354058265686,
-0.032841332256793976,
-0.03327399864792824,
0.002850953256711364,
0.02148902788758278,
0.020973950624465942,
-0.04615093022584915,
-0.04219513759016991,
0.057070571929216385,
0.004468296188861132,
0.06329270452260971,
0.010847529396414757,
0.03343882039189339,
-0.029812676832079887,
0.05637006461620331,
-0.06539422273635864,
-0.03234685957431793,
0.01902695745229721,
0.01590558886528015,
0.03348002955317497,
0.05983138456940651,
0.031996604055166245,
0.011002052575349808,
0.01884152926504612,
0.010471522808074951,
0.0018027707701548934,
-0.005954294465482235,
-0.004089714027941227,
-0.015833478420972824,
-0.030204135924577713,
-0.010754815302789211,
0.002825199393555522,
-0.06090274825692177,
-0.05006552115082741,
0.058553993701934814,
0.049200188368558884,
-0.005063210614025593,
0.0639520063996315,
-0.0995541512966156,
-0.04948863387107849,
-0.061067573726177216,
-0.0018143600318580866,
0.02340511605143547,
0.0226840078830719,
-0.011414114385843277,
-0.024249842390418053,
-0.053444426506757736,
0.023590542376041412,
0.00630969787016511,
0.015823176130652428,
-0.004251963458955288,
-0.023178480565547943,
-0.0009599754121154547,
-0.0018426892347633839,
0.06185048818588257,
-0.0069123380817472935,
0.023116672411561012,
-0.00221740803681314,
0.057606253772974014,
-0.015081465244293213,
0.010420015081763268,
-0.05422734469175339,
-0.024188032373785973,
-0.00932290032505989,
-0.07347063720226288,
-0.022725213319063187,
0.0012606518575921655,
-0.009044758044183254,
-0.0008801384246908128,
0.018769418820738792,
0.02422923967242241,
0.07627265900373459,
0.04231875762343407,
-0.02923579141497612,
-0.010857830755412579,
0.04425544664263725,
-0.05163135379552841,
-0.016595792025327682,
-0.013402312994003296,
-0.08080533891916275,
-0.04351373389363289,
-0.03422173857688904,
0.03947553038597107,
-0.05047758296132088,
-0.0004426446103025228,
0.030204135924577713,
-0.0017654276452958584,
-0.05311477556824684,
0.01600860431790352,
-0.003788393922150135,
0.033377014100551605,
-0.051713768392801285,
-0.08661540597677231,
0.0038064217660576105,
-0.03793029859662056,
-0.012907838448882103,
0.03582878038287163,
0.02501215599477291,
-0.04578007757663727,
-0.09188979864120483,
-0.02101515606045723,
-0.008694506250321865,
-0.019809875637292862,
-0.019511129707098007,
-0.01518448069691658,
0.03597300127148628,
-0.032655905932188034,
-0.04326649755239487,
-0.05768866464495659,
-0.029977502301335335,
0.060820333659648895,
-0.003976397216320038,
-0.034036312252283096,
0.021118171513080597,
-0.025980502367019653,
-0.030636802315711975,
-0.03109006956219673,
0.027134275063872337,
0.01881062611937523,
-0.06127360463142395,
0.04907657206058502,
0.008514229208230972,
-0.008962346240878105,
0.0614384263753891,
-0.02595989964902401,
0.03896045312285423,
-0.003281042678281665,
0.022951846942305565,
0.002959119388833642,
-0.04240116849541664,
0.05682333558797836,
0.01792469248175621,
0.038383565843105316,
0.04994190111756325,
0.05031275749206543,
-0.06980328261852264,
0.037600647658109665,
0.042009711265563965,
-0.012197031639516354,
0.06560025364160538,
0.035396117717027664,
-0.0018838954856619239,
-0.04615093022584915,
0.01334050390869379,
0.006963845808058977,
-0.03751823678612709,
0.03012172318994999,
-0.03302675858139992,
-0.03597300127148628,
0.0189033392816782,
0.022313151508569717,
-0.04639817029237747,
-0.00515077356249094,
-0.01119778212159872,
-0.06407562643289566,
-0.023240290582180023,
-0.04151523485779762,
0.0185839906334877,
-0.053197190165519714,
-0.016183730214834213,
-0.015740763396024704,
0.055339910089969635,
0.021406615152955055,
0.04334891214966774,
-0.08529680967330933,
-0.013628946617245674,
-0.03354183956980705,
-0.00043878151336684823,
0.04118558391928673,
0.026330754160881042,
0.044214241206645966,
-0.03411872312426567,
0.019490526989102364,
-0.007149273995310068,
0.024867935106158257,
0.023961398750543594,
-0.020458873361349106,
0.038795627653598785,
-0.014339753426611423,
-0.062015313655138016,
0.008890234865248203,
0.05847158282995224,
0.0318111777305603,
-0.0020229662768542767,
0.06226254999637604,
0.052249446511268616,
0.026825228706002235,
0.016142524778842926,
-0.04005241394042969,
0.005768866278231144,
-0.006649648770689964,
0.008658450096845627,
0.06296305358409882,
-0.06353994458913803,
0.04615093022584915,
0.017667153850197792,
0.11051499843597412,
-0.02756693959236145,
0.03321218863129616,
0.029276996850967407,
-0.01741991564631462,
0.03280012682080269,
-0.029483027756214142,
0.05488664284348488,
-0.051054466515779495,
-0.03160514682531357,
-0.033789075911045074,
0.08340132981538773,
-0.021406615152955055,
0.0076901051215827465,
0.01956263743340969,
-0.010816624388098717,
-0.07252289354801178,
0.053568046540021896,
-0.029874486848711967,
0.006304546725004911,
-0.0041669756174087524,
0.08818124234676361,
0.023425718769431114,
-0.026165930554270744,
-0.0058770328760147095,
0.041350409388542175,
-0.048788126558065414,
-0.016173429787158966,
-0.02911217324435711,
-0.03840416669845581,
-0.0639520063996315,
0.06271582096815109,
-0.01285633072257042,
-0.029132775962352753,
-0.019232988357543945,
0.024023208767175674,
-0.016266142949461937,
0.009250788949429989,
-0.03572576493024826,
-0.0231578778475523,
-0.026330754160881042,
0.027834780514240265,
0.03574636951088905,
-0.033789075911045074,
-0.009848278947174549,
-0.00973496213555336,
-0.06745453178882599,
-0.027834780514240265,
0.028185032308101654,
-0.019830478355288506,
0.007767366711050272,
-0.016626697033643723,
0.014947544783353806,
-0.010919639840722084,
0.0327589213848114,
0.004380732774734497,
-0.024744316935539246,
-0.03566395491361618,
-0.013505328446626663,
-0.014236737973988056,
-0.027793575078248978,
0.004094865173101425,
-0.05834796279668808,
0.030739817768335342,
0.04499715939164162,
0.05121929198503494,
-0.027731765061616898,
0.0046356962993741035,
-0.02567145600914955,
0.013206583447754383,
0.015277194790542126,
0.12032207101583481,
0.03626144677400589,
-0.015421416610479355,
0.016266142949461937,
-0.0453680157661438,
-0.03345942497253418,
0.016430968418717384,
-0.025156378746032715,
0.022848831489682198,
-0.05113688111305237,
-0.008849029429256916,
-0.02286943420767784,
-0.02286943420767784,
-0.01134200394153595,
0.0226840078830719,
0.06131481006741524,
-0.05529870465397835,
0.030678007751703262,
-0.008514229208230972,
-0.00014132434444036335,
0.04512077569961548,
-0.03280012682080269,
0.013443519361317158,
-0.03193479776382446,
0.00041560304816812277,
0.024126224219799042,
-0.0857088714838028,
0.020458873361349106,
0.023384511470794678,
-0.06873192638158798,
-0.02495034784078598,
0.01821313612163067,
0.04124739393591881,
0.03889864310622215,
0.05163135379552841,
-0.041824281215667725,
-0.027402115985751152,
-0.004447693005204201,
-0.011032956652343273,
0.046645406633615494,
-0.027649352326989174,
0.01345382072031498,
-0.021530233323574066,
0.005779168102890253,
0.06024344637989998,
0.02243676967918873,
0.001479559694416821,
-0.014648799784481525,
0.014803322963416576,
0.04322529211640358,
-0.014782720245420933,
-0.06283944100141525,
-0.048087622970342636,
-0.01431915070861578,
-0.00877176783978939,
-0.03393329679965973,
-0.05068361386656761,
-0.007793120574206114,
0.011898286640644073,
-0.017904089763760567,
-0.03568455949425697,
0.0070668612606823444,
0.01420583389699459,
0.057853490114212036,
0.0011859656078740954,
-0.009698906913399696,
0.01001825463026762,
-0.025939295068383217,
0.004406486637890339,
-0.020530983805656433,
0.04911777749657631,
-0.010481824167072773,
-0.046233344823122025,
-0.011218384839594364,
-0.007133821491152048,
-0.017965897917747498,
0.014164627529680729,
0.01694604568183422,
0.12658540904521942,
-0.022890038788318634,
0.011702558025717735,
-0.08368977159261703,
-0.05303236469626427,
0.014061612077057362,
0.04870571568608284,
-0.0283498577773571,
0.0022650526370853186,
-0.013258091174066067,
0.006696005817502737,
-0.009173527359962463,
0.008895386010408401,
-0.0541861392557621,
0.0013031457783654332,
0.011383209377527237,
0.02016012743115425,
-0.03547852858901024,
-0.032243844121694565,
-0.015019656158983707,
-0.014690006151795387,
-0.011362606659531593,
0.016173429787158966,
-0.01587468385696411,
-0.029544837772846222,
-0.03568455949425697,
-0.04713987931609154,
-0.03209961950778961,
0.027237290516495705,
0.07380028069019318,
-0.0872747078537941,
-0.06778418272733688,
0.013525931164622307,
-0.06642437726259232,
0.027793575078248978,
0.021056363359093666,
0.012217635288834572,
-0.00243374053388834,
0.05583438649773598,
0.029009157791733742,
0.014226436614990234,
0.06271582096815109,
-0.06696005910634995,
0.018975449725985527,
-0.03601421043276787,
-0.031522735953330994,
0.035334307700395584,
-0.01348472572863102,
-0.0393725149333477,
-0.035993605852127075,
-0.050106726586818695,
-0.012464872561395168,
0.0078085726127028465,
-0.04376097396016121,
-0.0352931022644043,
0.04429665207862854,
-0.029215188696980476,
0.018141023814678192,
0.09650489687919617,
-0.04413182660937309,
0.009431066922843456,
-0.008503926917910576,
0.04639817029237747,
0.023611146956682205,
-0.0630042627453804,
-0.08331891149282455,
0.06424044817686081,
0.02239556424319744,
0.010523030534386635,
0.03345942497253418,
0.035581544041633606,
0.03461319953203201,
-0.002487823599949479,
-0.0064693717285990715,
0.005969746503978968,
0.023199085146188736,
-0.028864935040473938,
0.04425544664263725,
-0.043843384832143784,
0.024806125089526176,
0.013618645258247852,
0.005083813332021236,
-0.04073231667280197,
0.001308940351009369,
0.004702656529843807,
-0.012639998458325863,
0.05422734469175339,
-0.037600647658109665,
-0.007901286706328392,
-0.03743582218885422,
-0.010878433473408222,
0.02888553775846958,
0.008957195095717907,
-0.0003198308404535055,
0.010909338481724262,
-0.050395168364048004,
0.010723910294473171,
0.015205083414912224,
-0.047593146562576294,
0.012217635288834572,
0.04211272671818733,
0.01676061749458313,
0.07520129531621933,
0.056658510118722916,
0.08463751524686813,
0.015668652951717377,
-0.0020268294028937817,
-0.038136329501867294,
-0.03922829031944275,
-0.04833485931158066,
0.016121922060847282,
0.0022508881520479918,
0.017759867012500763,
-0.02577447146177292,
0.05006552115082741,
0.03327399864792824,
-0.0412679985165596,
-0.008344253525137901,
0.038795627653598785,
-0.0689791589975357,
-0.015339003875851631,
-0.04108256846666336,
0.0655178427696228,
-0.01529779750853777,
0.024847332388162613,
-0.019768668338656425,
-0.03469561040401459,
0.016183730214834213,
0.00021246941469144076,
-0.00860179215669632,
-0.01867670565843582,
-0.07862140983343124,
0.052661508321762085,
-0.021901089698076248,
0.05410372465848923,
0.0022611895110458136,
-0.002755663823336363,
0.03005991503596306,
0.05282633379101753,
0.03036896139383316,
-0.009997651912271976,
0.030389564111828804,
-0.06180928274989128,
0.02791719324886799,
0.051837384700775146,
-0.008339102379977703,
0.005526780150830746,
-0.006464221049100161,
-0.024311650544404984,
0.04149463400244713,
-0.04351373389363289,
-0.033603645861148834,
0.0428544357419014,
-0.05043637380003929,
0.025856884196400642,
-0.03113127499818802,
0.06654799729585648,
-0.03953733667731285,
0.060408271849155426,
0.011022655293345451,
-0.012464872561395168,
-0.03261469677090645,
-0.06378717720508575,
-0.019016657024621964,
0.017461122944951057,
-0.030142327770590782,
0.0019032108830288053,
0.005990349687635899,
0.0046356962993741035,
0.023775970563292503,
-0.06572387367486954,
-0.05286753922700882,
0.0374976322054863,
0.029874486848711967,
-0.03292374312877655,
0.015246289782226086,
-0.02989508956670761,
0.028782522305846214,
0.025383012369275093,
-0.00831849966198206,
0.039928797632455826,
0.024435270577669144,
0.003026079386472702,
-0.050395168364048004,
-0.023549336940050125,
-0.054804231971502304,
0.03852778673171997,
0.03708557039499283,
-0.004630545619875193,
0.017945295199751854,
0.040567491203546524,
0.02016012743115425,
0.0482112392783165,
0.05455699563026428,
-0.05550473555922508,
-0.026330754160881042,
-0.01104325894266367,
0.000352184142684564,
-0.024497078731656075,
0.010064611211419106,
-0.015225687064230442,
-0.03030715137720108,
-0.006495125591754913,
-0.01764655113220215,
0.001550382818095386,
-0.010353054851293564,
-0.04656299203634262,
-0.016049809753894806,
-0.03589059039950371,
0.004893234930932522,
0.01726539246737957,
0.03012172318994999,
0.005011702887713909,
0.006572387181222439,
0.024455873295664787,
-0.009755564853549004,
-0.0010906762909144163,
0.03201720863580704,
0.03982578217983246,
0.017759867012500763,
-0.0073501537553966045,
-0.01836765930056572,
0.03065740503370762,
0.008230935782194138,
0.04697505384683609,
0.017656851559877396,
0.01390708889812231,
0.029483027756214142,
-0.03692074492573738,
0.0038553541526198387,
-0.014813625253736973,
-0.05740022286772728,
0.027649352326989174,
0.0428544357419014,
-0.011558336205780506,
-0.061768077313899994,
-0.011475923471152782,
-0.026289548724889755,
-0.020427968353033066,
0.008194880560040474,
0.02727849781513214,
0.008539983071386814,
-0.02363174967467785,
0.04240116849541664,
-0.004751588683575392,
-0.00036570493830367923,
-0.019366908818483353,
0.022107120603322983,
-0.036591093987226486,
0.006464221049100161,
0.010311848483979702,
0.0009812223725020885,
-0.04800520837306976,
0.0381157249212265,
-0.03352123498916626,
-0.002579249907284975,
0.004195305053144693,
-0.03650868311524391,
-0.015503828413784504,
0.006345753092318773,
0.050642404705286026,
0.01417492888867855,
0.061479635536670685,
-0.04854089021682739,
0.03964035212993622,
0.008241238072514534,
-0.02155083604156971,
-0.018254341557621956,
-0.014545784331858158,
-0.015112369321286678,
0.012464872561395168,
-0.04804641753435135,
-0.0680314153432846,
0.024270445108413696,
0.012918139807879925,
0.00935380533337593,
-0.00915292464196682,
-0.056658510118722916,
-0.011238987557590008,
-0.037126775830984116,
0.05121929198503494,
-0.04499715939164162,
-0.030636802315711975,
-0.028123224154114723,
0.023322703316807747,
-0.06696005910634995,
-0.036343857645988464,
0.012413364835083485,
0.020870935171842575,
-0.014803322963416576,
0.01417492888867855,
0.06230375915765762,
0.011671653017401695,
-0.032243844121694565,
-0.006526030134409666,
0.014360357075929642,
-0.010796021670103073,
-0.023240290582180023,
0.051713768392801285,
-0.09601041674613953,
0.0444202721118927,
0.015462622046470642,
-0.020118921995162964,
0.05389769375324249,
0.015266893431544304,
-0.031769972294569016,
-0.025589043274521828,
0.007102916948497295,
-0.07825054973363876,
-0.010579689405858517,
0.02785538323223591,
0.012403062544763088,
0.01214552391320467,
-0.04985949024558067,
0.03537551313638687,
-0.027463924139738083,
0.00571735855191946,
0.05027155205607414,
-0.024270445108413696,
0.056164033710956573,
0.05327960103750229,
0.018862133845686913,
-0.02356993965804577,
-0.003948067780584097,
0.0545157864689827,
-0.003713707672432065,
-0.026639800518751144,
-0.028617698699235916,
0.02542421780526638,
0.048788126558065414,
-0.03234685957431793,
-0.0016559737268835306,
0.06127360463142395,
0.013381710276007652,
-0.044914744794368744,
-0.02620713599026203,
-0.007463471032679081,
-0.00915292464196682,
0.021056363359093666,
0.005408312194049358,
0.03059559501707554,
-0.08752194792032242,
0.0393725149333477,
0.019768668338656425,
0.017409615218639374,
0.01978927291929722,
-0.061644457280635834,
-0.024188032373785973,
0.02727849781513214,
-0.031769972294569016,
0.04800520837306976,
-0.020345555618405342,
0.020623696967959404,
0.0052563645876944065,
-0.0023976850789040327,
0.03982578217983246,
0.0037111323326826096,
0.052249446511268616,
-0.001334050321020186,
0.022580990567803383,
0.03877502307295799,
-0.006840227171778679,
-0.008622394874691963,
0.04417303577065468,
0.011991000734269619,
-0.00918382965028286,
0.05097205564379692,
-0.05430975556373596,
0.02655738778412342,
0.07033896446228027,
-0.015606843866407871,
0.034159932285547256,
0.029009157791733742,
-0.017759867012500763,
0.08636817336082458,
-0.0025007005315274,
0.0051018414087593555,
-0.000001212242636938754,
-0.030039312317967415,
-0.025444822385907173,
-0.037538837641477585,
0.017842279747128487,
0.04413182660937309,
0.04487353935837746,
-0.04606851935386658,
0.0231578778475523,
0.0324498750269413,
-0.03191419318318367,
0.02595989964902401,
0.01868700608611107,
-0.0061294203624129295,
0.07388269901275635,
-0.05805952101945877,
0.06250979006290436,
-0.0012052810052409768,
0.04594489932060242,
-0.04973587021231651,
-0.018862133845686913,
0.058924850076436996,
0.024332255125045776,
-0.00772616034373641,
0.02655738778412342,
0.012969647534191608,
0.03797150403261185,
-0.019614145159721375,
-0.019542034715414047,
0.03269711136817932,
-0.0655178427696228,
0.03941372036933899,
-0.011857081204652786,
-0.02828804776072502,
-0.05274392291903496,
-0.031007656827569008,
-0.002344889799132943,
0.018007105216383934,
0.019397813826799393,
-0.0017602768493816257,
0.036776524037122726,
0.005588589236140251,
0.0327589213848114
] |
723,303
|
exponent_server_sdk
|
is_success
|
Returns True if this push notification successfully sent.
|
def is_success(self):
"""Returns True if this push notification successfully sent."""
return self.status == PushTicket.SUCCESS_STATUS
|
(self)
|
[
0.028607897460460663,
-0.007993118837475777,
-0.030497098341584206,
0.02315620332956314,
0.032980047166347504,
-0.05293360725045204,
-0.02286832593381405,
0.021500904113054276,
0.033663757145404816,
0.020475337281823158,
0.012009918689727783,
-0.03767606243491173,
0.03911545127630234,
-0.02288631722331047,
-0.022526470944285393,
-0.054552920162677765,
0.01770450919866562,
-0.07470439374446869,
0.04433324560523033,
0.006261351052671671,
0.02923763170838356,
0.0630093440413475,
0.0481836162507534,
0.05304155871272087,
0.0038706124760210514,
0.0410226434469223,
0.047679830342531204,
-0.0017632540548220277,
-0.0047005112282931805,
0.02698858268558979,
-0.08427634835243225,
-0.027582330629229546,
0.09125739336013794,
-0.004547575954347849,
-0.012513706460595131,
0.04469309374690056,
-0.0640169158577919,
-0.012585675343871117,
-0.06729153543710709,
-0.004196724388748407,
-0.04591657593846321,
0.05556049570441246,
-0.07520817965269089,
0.015590404160320759,
0.03886355832219124,
-0.004297931678593159,
-0.024127792567014694,
0.09759071469306946,
0.05743170157074928,
0.015230556949973106,
0.004153992515057325,
0.014330937527120113,
-0.05253777280449867,
0.01070547103881836,
-0.045412786304950714,
0.01011172216385603,
0.034311484545469284,
0.03611072152853012,
-0.02751036174595356,
0.013341356068849564,
-0.0026921110693365335,
0.030623044818639755,
0.041346509009599686,
-0.0299033485352993,
0.029993310570716858,
0.01593226008117199,
0.024973435327410698,
0.010147706605494022,
0.03296205401420593,
0.06153396889567375,
0.03582284599542618,
0.018091347068548203,
-0.04444120079278946,
-0.010120718739926815,
-0.016445042565464973,
0.0033128485083580017,
-0.002854042686522007,
0.032476261258125305,
0.00005555852840188891,
0.02590903826057911,
0.011290223337709904,
-0.010264657437801361,
0.03107285499572754,
0.020709238946437836,
-0.008739802986383438,
0.04023097828030586,
0.028086118400096893,
-0.02686263620853424,
-0.08276498317718506,
0.05023474618792534,
0.032476261258125305,
0.031396716833114624,
0.0168048907071352,
-0.05624420568346977,
0.05797147378325462,
-0.021267002448439598,
0.025351274758577347,
-0.006234362721443176,
-0.02250847779214382,
-0.017749490216374397,
-0.02749236859381199,
0.018460189923644066,
-0.05041467025876045,
-0.025333283469080925,
0.0664638802409172,
-0.001872332883067429,
-0.029165660962462425,
-0.010885395109653473,
-0.004610549658536911,
0.007165468763560057,
0.017524586990475655,
-0.040662799030542374,
-0.005339241120964289,
-0.01864011399447918,
0.045952558517456055,
-0.05476883053779602,
0.0021242264192551374,
0.006747145671397448,
-0.05836730822920799,
-0.03600277006626129,
0.05689193308353424,
-0.029291607439517975,
0.04976694658398628,
-0.028068125247955322,
0.050054825842380524,
0.06045442447066307,
0.03792795538902283,
0.0017610050272196531,
0.06405290216207504,
-0.030659029260277748,
-0.0027505862526595592,
0.018289262428879738,
-0.007552304770797491,
-0.001665420481003821,
-0.05109838396310806,
-0.03096489980816841,
0.03177455812692642,
-0.0031059361062943935,
0.0721854642033577,
-0.002238927874714136,
-0.007493829820305109,
0.004880435299128294,
-0.019899580627679825,
-0.006922571454197168,
0.006522240582853556,
0.013602245599031448,
-0.030389143154025078,
0.00971588958054781,
-0.028140095993876457,
-0.02500941976904869,
0.09564753621816635,
-0.07157371938228607,
0.024685556069016457,
0.00030615171999670565,
-0.042785897850990295,
0.024901464581489563,
0.00944600347429514,
-0.020133482292294502,
0.012513706460595131,
-0.014996655285358429,
-0.0026268886867910624,
-0.0210151094943285,
-0.025891046971082687,
0.04059082642197609,
0.027168506756424904,
0.018586136400699615,
-0.011164276860654354,
0.019089924171566963,
-0.026214908808469772,
0.03647056967020035,
-0.00979685503989458,
0.05437299609184265,
0.002458210103213787,
0.016624966636300087,
-0.004925416316837072,
0.03675844892859459,
0.020061513409018517,
0.0025099380873143673,
-0.01427695993334055,
-0.034185536205768585,
-0.05599231272935867,
-0.03096489980816841,
-0.018802044913172722,
0.023462073877453804,
0.018127331510186195,
0.037604089826345444,
0.02286832593381405,
0.027204491198062897,
0.013566261157393456,
0.00423720758408308,
0.006274845451116562,
-0.0037671562749892473,
0.014609819278120995,
0.05915897339582443,
-0.015590404160320759,
-0.015077621676027775,
0.013980085961520672,
0.016130175441503525,
-0.00403929129242897,
-0.01678689755499363,
-0.023210180923342705,
-0.05516466125845909,
-0.047427933663129807,
0.0173086766153574,
0.02475752681493759,
-0.040015071630477905,
-0.004736496135592461,
0.037640076130628586,
0.022130638360977173,
-0.035247087478637695,
-0.08657937496900558,
-0.02036738395690918,
-0.00822701957076788,
0.05768359825015068,
0.0037559110205620527,
-0.08463619649410248,
0.035121142864227295,
-0.0002160492294933647,
-0.03123478591442108,
0.000611178926192224,
0.012576679699122906,
-0.041850294917821884,
0.0013460555346682668,
-0.016687940806150436,
-0.005523663014173508,
0.08211725950241089,
0.014258967712521553,
-0.007012533489614725,
-0.022544462233781815,
-0.018478183075785637,
-0.021860752254724503,
0.01603121869266033,
0.05235784873366356,
0.015752336010336876,
-0.05001883953809738,
-0.045304834842681885,
-0.02646680362522602,
-0.007570297457277775,
-0.007700742222368717,
0.018343240022659302,
0.08938618749380112,
-0.04404536634683609,
0.01813632808625698,
0.06628395617008209,
-0.004221464041620493,
-0.04400938004255295,
0.010174695402383804,
0.02475752681493759,
-0.0031261774711310863,
-0.0034927723463624716,
-0.026016993448138237,
-0.0457366518676281,
-0.025315290316939354,
-0.03792795538902283,
-0.0337357297539711,
-0.058259353041648865,
0.004871439188718796,
0.016292108222842216,
0.05599231272935867,
0.008177540265023708,
0.028212064877152443,
0.01682288385927677,
0.0038458730559796095,
0.09377633035182953,
-0.040518857538700104,
-0.024181770160794258,
-0.01767752133309841,
0.048075661063194275,
0.026628734543919563,
0.021356964483857155,
0.13069671392440796,
-0.04685217887163162,
-0.005136827006936073,
-0.025207335129380226,
-0.02222060039639473,
-0.04390142858028412,
0.011928953230381012,
0.01694883033633232,
-0.01930583268404007,
-0.08132559806108475,
-0.025873053818941116,
-0.0042619467712938786,
0.047535888850688934,
-0.0013854139251634479,
-0.036956366151571274,
0.026808658614754677,
0.041886281222105026,
0.05117035284638405,
0.013890123926103115,
-0.042641960084438324,
-0.03213440626859665,
0.04987490177154541,
0.004718503914773464,
-0.02778024785220623,
0.05458890646696091,
0.0243437010794878,
-0.02511737309396267,
0.04260597378015518,
0.029957326129078865,
-0.016544001176953316,
0.043829455971717834,
0.014070047996938229,
-0.07157371938228607,
-0.07484833151102066,
0.002246799413114786,
0.03846772760152817,
0.007124985568225384,
0.03440144658088684,
-0.0302811898291111,
-0.0006921446765772998,
0.006720156874507666,
0.02749236859381199,
-0.014492868445813656,
-0.04141847789287567,
0.06315328180789948,
-0.015392487868666649,
0.01759655587375164,
-0.023570029065012932,
0.005460689775645733,
0.0637650266289711,
-0.012666641734540462,
-0.02948952466249466,
-0.0030407137237489223,
0.06880289316177368,
0.06538433581590652,
-0.045052941888570786,
0.02405582368373871,
-0.014034062623977661,
-0.028859790414571762,
-0.001587828272022307,
-0.019863596186041832,
-0.03965522348880768,
0.057215794920921326,
-0.033771712332963943,
-0.018568145111203194,
-0.007138479966670275,
0.02009749785065651,
-0.010606512427330017,
-0.036020759493112564,
-0.020565299317240715,
-0.02445165626704693,
-0.039727192372083664,
0.03269216790795326,
0.043973397463560104,
-0.008096574805676937,
0.011209257878363132,
-0.056424129754304886,
-0.006436776835471392,
0.0245955940335989,
-0.0447290763258934,
-0.05969874560832977,
0.008744300343096256,
0.041202567517757416,
0.053509362041950226,
0.033123984932899475,
-0.007529814261943102,
0.016732921823859215,
0.016642959788441658,
0.03332190215587616,
0.018415208905935287,
0.04224612936377525,
0.02484748885035515,
-0.007012533489614725,
0.015239552594721317,
-0.06261350959539413,
0.0383237861096859,
-0.002336761448532343,
0.022436508908867836,
0.014186997897922993,
-0.0073408945463597775,
0.023498058319091797,
0.021752797067165375,
-0.053365424275398254,
0.0005931865307502449,
-0.006252354942262173,
0.015104609541594982,
-0.02540525235235691,
-0.013242397457361221,
-0.06711161136627197,
-0.01574333943426609,
-0.005177309736609459,
0.022418515756726265,
-0.07128584384918213,
0.03598477691411972,
0.033141978085041046,
-0.009778862819075584,
-0.032980047166347504,
-0.03861166536808014,
-0.049946870654821396,
0.00026791790151037276,
-0.013665218837559223,
-0.022274576127529144,
-0.07139379531145096,
0.00015982301556505263,
-0.07114190608263016,
-0.06059836223721504,
-0.005393218249082565,
0.0035062667448073626,
0.0031126830726861954,
-0.004192226566374302,
0.04588058963418007,
0.013377340510487556,
0.004907424096018076,
-0.04577263444662094,
0.016732921823859215,
0.022022683173418045,
-0.022400522604584694,
-0.038143862038850784,
-0.03179255127906799,
-0.017650533467531204,
0.010822421871125698,
0.0010795432608574629,
-0.05009080842137337,
-0.05822336673736572,
-0.05807942897081375,
-0.004599304404109716,
-0.028751837089657784,
0.05487678572535515,
0.024397678673267365,
-0.0002277161693200469,
-0.023875899612903595,
0.026880627498030663,
0.007786205969750881,
0.029435547068715096,
-0.05466087535023689,
0.01541947666555643,
0.04735596477985382,
0.049011263996362686,
0.02752835489809513,
0.008249510079622269,
0.009257083758711815,
-0.009023183025419712,
0.004205720964819193,
0.022724386304616928,
0.008137057535350323,
-0.005024374462664127,
-0.023624006658792496,
-0.06484456360340118,
-0.061713892966508865,
0.03494121879339218,
-0.007525316439568996,
0.03350182622671127,
-0.039763178676366806,
-0.01651701331138611,
0.04368551820516586,
-0.019503748044371605,
-0.06693168729543686,
-0.11097705364227295,
0.04336165636777878,
0.035786859691143036,
-0.047535888850688934,
-0.009967783465981483,
0.01098435278981924,
-0.02074522338807583,
0.00040567212272435427,
-0.00964391976594925,
-0.05106239765882492,
-0.00144613825250417,
-0.022580446675419807,
-0.03596678376197815,
-0.016508016735315323,
0.037496138364076614,
-0.15099212527275085,
0.04221014305949211,
0.05001883953809738,
-0.013350351713597775,
-0.004421629477292299,
0.014375918544828892,
-0.017092768102884293,
0.022274576127529144,
0.036956366151571274,
-0.03278212994337082,
-0.020313406363129616,
0.02578309178352356,
0.006967552471905947,
0.010102725587785244,
-0.00810107309371233,
0.05836730822920799,
-0.052429817616939545,
-0.015896275639533997,
-0.09723086655139923,
0.06380100548267365,
-0.01156910602003336,
-0.018712082877755165,
-0.022526470944285393,
-0.044621121138334274,
0.04274991527199745,
-0.036056745797395706,
0.028391988947987556,
-0.0014180251164361835,
-0.006729152984917164,
-0.06693168729543686,
0.022022683173418045,
0.023174196481704712,
-0.010444581508636475,
-0.016040213406085968,
-0.03080296888947487,
0.01944977231323719,
-0.029795395210385323,
-0.002620141487568617,
-0.020799200981855392,
0.04850747808814049,
-0.0245955940335989,
0.04325370118021965,
0.053365424275398254,
-0.04429725930094719,
0.006378301419317722,
-0.0027011071797460318,
-0.0011453279294073582,
0.024793511256575584,
0.006855099927634001,
0.012360770255327225,
-0.0013707950711250305,
-0.023713966831564903,
0.04908323660492897,
0.03846772760152817,
0.061174120754003525,
-0.02365999110043049,
-0.014267964288592339,
0.003297105198726058,
0.054804813116788864,
-0.03150467202067375,
0.024811502546072006,
0.04285787045955658,
-0.02977740205824375,
0.0007995367632247508,
0.00919411052018404,
-0.024775518104434013,
-0.03900749608874321,
0.008978202007710934,
0.02034939080476761,
0.024667564779520035,
-0.007894160225987434,
-0.031162817031145096,
-0.002345757558941841,
0.03042512759566307,
-0.08542785793542862,
-0.008056092076003551,
-0.0449809692800045,
-0.0373162142932415,
-0.0022063166834414005,
-0.06660781800746918,
-0.051386259496212006,
-0.02011548914015293,
-0.07204151898622513,
0.029129676520824432,
0.03447341546416283,
-0.028805812820792198,
0.01204590406268835,
-0.012378763407468796,
0.010570527985692024,
0.008074084296822548,
0.009230094961822033,
-0.0016283111181110144,
0.03742416575551033,
0.05764761194586754,
0.054696861654520035,
0.012657645158469677,
0.03123478591442108,
0.020277421921491623,
-0.03713629022240639,
-0.020043520256876945,
-0.003517511999234557,
0.02538725920021534,
-0.0835566520690918,
-0.00882976409047842,
0.012414747849106789,
0.0055146669037640095,
0.003641209565103054,
0.017029795795679092,
-0.0011740033514797688,
-0.02565714530646801,
0.003378070890903473,
-0.006364807486534119,
0.05023474618792534,
-0.03861166536808014,
-0.0018689592834562063,
-0.0014697532169520855,
-0.03675844892859459,
0.03184652701020241,
-0.01813632808625698,
-0.029165660962462425,
0.032728154212236404,
-0.03641659393906593,
-0.05869117006659508,
-0.012009918689727783,
-0.028787821531295776,
-0.015437468886375427,
0.007331898435950279,
0.026430819183588028,
-0.025333283469080925,
0.009751874022185802,
-0.008987197652459145,
-0.015365500003099442,
0.045556727796792984,
-0.009189612232148647,
0.096871018409729,
-0.016768906265497208,
-0.0053032562136650085,
0.022922303527593613,
0.0709259957075119,
0.016166161745786667,
-0.005604628939181566,
-0.06020253151655197,
0.04307377710938454,
-0.032872091978788376,
-0.05167413875460625,
0.009000692516565323,
-0.025639154016971588,
-0.014465880580246449,
0.037640076130628586,
-0.027438392862677574,
-0.00036378359072841704,
0.02986736409366131,
0.00289227650500834,
0.03607473894953728,
-0.030784975737333298,
0.040662799030542374,
-0.02909369207918644,
0.034311484545469284,
0.04656429961323738,
0.007525316439568996,
-0.03792795538902283,
0.015302525833249092,
-0.027996156364679337,
-0.027798239141702652,
0.016067203134298325,
-0.04962300509214401,
-0.05703587085008621,
-0.0370643213391304,
0.0003103686904069036,
0.03092891536653042,
0.05055861175060272,
-0.04458513855934143,
0.026664718985557556,
-0.05160216987133026,
-0.04361354932188988,
0.006864096038043499,
0.0338616743683815,
0.0019724154844880104,
-0.02263442426919937,
-0.017110761255025864,
-0.04519687965512276,
-0.035391028970479965,
0.01380915753543377,
0.018397217616438866,
-0.023983852937817574,
-0.04242604970932007,
0.009679905138909817,
-0.053905196487903595,
-0.008807273581624031,
0.03958325460553169,
0.013206413015723228,
0.05897904932498932,
-0.03915143758058548,
0.040266964584589005,
0.0036771942395716906,
0.07038622349500656,
-0.013701203279197216,
-0.031810540705919266,
-0.032764140516519547,
-0.023893890902400017,
-0.0245955940335989,
-0.015446465462446213,
-0.01678689755499363,
0.03598477691411972,
0.02527930587530136,
-0.07967029511928558,
-0.05300557613372803,
0.0008979326230473816,
0.02088916301727295,
0.05221391096711159,
0.0672195628285408,
0.016229134052991867,
0.016355080530047417,
-0.0031014378182590008,
-0.023228174075484276,
0.018478183075785637,
0.006288339849561453,
0.017920419573783875,
0.00780869647860527,
-0.0020983621943742037,
-0.018568145111203194,
0.03553496673703194,
0.04645634815096855,
0.017362654209136963,
0.017686517909169197,
-0.030353158712387085,
-0.05307754501700401,
-0.015689361840486526,
-0.031288761645555496,
-0.06610403209924698,
-0.019467763602733612,
0.07132183015346527,
-0.01657998561859131,
-0.0020106493029743433,
-0.08240513503551483,
0.06930667906999588,
-0.04084272310137749,
-0.031018877401947975,
0.02686263620853424,
-0.03621867671608925,
0.012315790168941021,
-0.01030963845551014,
0.005735073704272509,
-0.004513840191066265,
-0.02486548013985157,
-0.04393741115927696,
0.04710407182574272,
0.010174695402383804,
-0.05185406282544136,
0.025477221235632896,
0.006220868322998285,
-0.026430819183588028,
-0.025297297164797783,
-0.01694883033633232,
-0.06264949589967728,
0.0031216794159263372,
0.028913768008351326,
0.032980047166347504,
-0.05131429061293602,
-0.027348430827260017,
0.00027339995722286403,
0.004803967662155628,
0.03728022798895836,
-0.012207834981381893,
0.07078205794095993,
0.011551112867891788,
-0.017506593838334084,
-0.008069586008787155,
-0.02234654687345028,
0.022310560569167137,
-0.05268171429634094,
0.052825652062892914,
-0.004907424096018076,
0.018424205482006073,
0.0043024299666285515,
0.02168082818388939,
0.024577602744102478,
0.05314951390028,
0.09075360745191574,
-0.021986698731780052,
0.08269301801919937,
-0.05631617456674576,
-0.001613692264072597,
-0.011407174170017242,
0.01355726458132267,
-0.01137118972837925,
-0.011335204355418682,
-0.031126830726861954,
0.012081888504326344,
0.015113606117665768,
-0.0032386297825723886,
-0.03713629022240639,
0.03594879060983658,
0.07398469746112823,
-0.08262104541063309,
0.03933136165142059,
-0.008730806410312653,
0.034185536205768585,
-0.01832524687051773,
0.005973472725600004,
-0.03217038884758949,
0.07765514403581619,
-0.04850747808814049,
0.08866649121046066,
0.00024472459335811436,
0.09262481331825256
] |
723,304
|
exponent_server_sdk
|
validate_response
|
Raises an exception if there was an error. Otherwise, do nothing.
Clients should handle these errors, since these require custom handling
to properly resolve.
|
def validate_response(self):
"""Raises an exception if there was an error. Otherwise, do nothing.
Clients should handle these errors, since these require custom handling
to properly resolve.
"""
if self.is_success():
return
# Handle the error if we have any information
if self.details:
error = self.details.get('error', None)
if error == PushTicket.ERROR_DEVICE_NOT_REGISTERED:
raise DeviceNotRegisteredError(self)
elif error == PushTicket.ERROR_MESSAGE_TOO_BIG:
raise MessageTooBigError(self)
elif error == PushTicket.ERROR_MESSAGE_RATE_EXCEEDED:
raise MessageRateExceededError(self)
# No known error information, so let's raise a generic error.
raise PushTicketError(self)
|
(self)
|
[
0.029154015704989433,
0.0010672452626749873,
-0.03807060047984123,
0.026181820780038834,
-0.036783281713724136,
-0.06788720935583115,
-0.030573854222893715,
0.003717610379680991,
0.02707158774137497,
0.003970814868807793,
0.0715598613023758,
0.039793338626623154,
0.08594755828380585,
-0.03831670805811882,
-0.019802013412117958,
0.010961152613162994,
0.038695331662893295,
-0.03559061884880066,
0.05626346543431282,
-0.031482551246881485,
0.004413331393152475,
0.021638337522745132,
-0.00967856589704752,
0.07333938777446747,
-0.01683928444981575,
0.08079827576875687,
0.018117139115929604,
0.0013843425549566746,
0.041269972920417786,
-0.007752317935228348,
-0.06614553928375244,
0.023626111447811127,
0.05153067037463188,
0.0690988078713417,
-0.05190929397940636,
0.002345099812373519,
-0.03574206680059433,
-0.03771090880036354,
-0.11903925985097885,
0.044185373932123184,
-0.06588050723075867,
0.023682905361056328,
-0.010525736026465893,
-0.0014009072910994291,
0.037332285195589066,
-0.024629464372992516,
-0.05190929397940636,
0.09079393744468689,
-0.033053841441869736,
0.015589826740324497,
-0.018864920362830162,
0.0335649810731411,
-0.03765411674976349,
-0.012191679328680038,
0.011831987649202347,
0.049826864153146744,
0.036328934133052826,
0.03555275499820709,
0.006791560910642147,
-0.01879866048693657,
-0.08049537241458893,
0.04607849195599556,
-0.011150464415550232,
-0.024004735052585602,
0.014169988222420216,
0.01926247589290142,
0.019442321732640266,
-0.015031356364488602,
-0.030687442049384117,
0.05508973449468613,
0.04592704027891159,
0.0404369980096817,
-0.05993611365556717,
0.01961270160973072,
0.0660698190331459,
0.004186157137155533,
-0.011311380192637444,
0.025897853076457977,
0.038392432034015656,
0.0021344905253499746,
0.006588050629943609,
0.03417078033089638,
0.015135478228330612,
-0.013744036667048931,
0.04551055654883385,
0.033697500824928284,
0.04441254585981369,
-0.006299349945038557,
-0.05917886644601822,
0.05713430047035217,
-0.015012425370514393,
-0.017369357869029045,
-0.02707158774137497,
-0.0329781137406826,
0.009749557822942734,
0.010042990557849407,
0.00808834657073021,
-0.033053841441869736,
-0.06288938224315643,
0.00012482746387831867,
-0.025727473199367523,
0.05228791758418083,
-0.06599409133195877,
0.012835339643061161,
0.05190929397940636,
-0.00722224498167634,
0.024780914187431335,
-0.03941471502184868,
0.02737448550760746,
0.014605404809117317,
0.009844213724136353,
-0.0641009733080864,
-0.018864920362830162,
0.021903375163674355,
-0.024023666977882385,
-0.041762180626392365,
-0.0030810495372861624,
0.030138438567519188,
-0.07265786826610565,
-0.03218300640583038,
0.0434659868478775,
-0.06209426745772362,
0.021183989942073822,
-0.04592704027891159,
0.03574206680059433,
0.011813055723905563,
-0.018429502844810486,
-0.02324748784303665,
0.0328645296394825,
-0.0013038850156590343,
-0.022414516657590866,
0.001977125182747841,
0.001977125182747841,
-0.04990258812904358,
-0.07792073488235474,
0.009408796206116676,
0.02934332750737667,
-0.03827884420752525,
0.033848948776721954,
-0.04009623825550079,
0.051454946398735046,
0.05898955464363098,
-0.012059161439538002,
-0.01532479003071785,
0.01734095998108387,
0.019319267943501472,
-0.02358824945986271,
-0.027753109112381935,
-0.006753698457032442,
-0.01658371277153492,
0.013895485550165176,
-0.06163991987705231,
0.06080694869160652,
-0.005314928479492664,
-0.02974088303744793,
0.0006903964676894248,
-0.013251826167106628,
-0.0364803820848465,
0.0072695729322731495,
-0.015040822327136993,
-0.00023205485194921494,
-0.03373536095023155,
0.0000973920468823053,
-0.013403275050222874,
0.01885545440018177,
0.008590023033320904,
0.01658371277153492,
-0.022092686966061592,
-0.010696116834878922,
0.038600675761699677,
-0.042027220129966736,
0.020502466708421707,
-0.06811438500881195,
-0.011103136464953423,
-0.05592270568013191,
-0.0023616645485162735,
0.04210294410586357,
-0.024534808471798897,
-0.04017196223139763,
-0.007671860512346029,
0.020843228325247765,
-0.04713863879442215,
-0.019016370177268982,
0.04535910487174988,
0.029930194839835167,
0.02036994881927967,
0.022698484361171722,
0.027790971100330353,
0.009503452107310295,
0.027658453211188316,
0.024061528965830803,
-0.017804773524403572,
0.03825991228222847,
0.044639721512794495,
0.03721869736909866,
0.01891224831342697,
0.044336821883916855,
0.038695331662893295,
0.04259515553712845,
-0.025841061025857925,
-0.006535989698022604,
-0.014917769469320774,
-0.006157366093248129,
-0.004479590337723494,
-0.04456399753689766,
0.018391640856862068,
-0.014539145864546299,
0.0010412149131298065,
-0.006621180102229118,
-0.03534451127052307,
-0.06894735246896744,
0.004148294683545828,
0.0008814830798655748,
0.08049537241458893,
0.03933899104595184,
-0.017454547807574272,
0.042519427835941315,
-0.04516979306936264,
-0.002581739565357566,
0.007846973836421967,
0.045396968722343445,
-0.06663775444030762,
-0.00927627831697464,
-0.0291350856423378,
-0.001567738363519311,
0.09511024504899979,
-0.02576533518731594,
0.019139422103762627,
-0.01659317873418331,
0.006270953454077244,
-0.010989549569785595,
0.013185566291213036,
0.032448042184114456,
-0.01764385960996151,
-0.05766437202692032,
-0.014037469401955605,
0.017927827313542366,
-0.058156583458185196,
0.021449025720357895,
0.023569319397211075,
0.06610768288373947,
-0.05289371684193611,
-0.018618814647197723,
0.05043266341090202,
-0.004029974807053804,
-0.004659436643123627,
-0.018476830795407295,
0.07019681483507156,
-0.04551055654883385,
-0.014065866358578205,
-0.03986906260251999,
0.00720804650336504,
0.024837708100676537,
-0.0464949756860733,
0.016773024573922157,
-0.10041097551584244,
0.0006821140414103866,
-0.030630648136138916,
0.10775627195835114,
0.01444448996335268,
0.06671347469091415,
0.06523684412240982,
0.01532479003071785,
0.07428594678640366,
-0.04244370386004448,
-0.00022170186275616288,
0.026295408606529236,
0.04392033815383911,
0.03167186304926872,
0.07171130925416946,
0.04763084650039673,
0.011756262741982937,
0.019044766202569008,
0.02888897992670536,
-0.008310788311064243,
0.01935713179409504,
0.028396768495440483,
0.018013017252087593,
-0.018107673153281212,
-0.02389114908874035,
-0.03540130704641342,
-0.024780914187431335,
0.04755512252449989,
0.047820158302783966,
-0.01315717026591301,
0.01300572045147419,
0.06110984832048416,
-0.01758706569671631,
0.004851114936172962,
-0.007794913370162249,
-0.007719188462942839,
-0.01588325947523117,
-0.009238415397703648,
0.012220076285302639,
-0.016526920720934868,
-0.011936108581721783,
-0.023152831941843033,
0.015741275623440742,
0.019991325214505196,
-0.019499115645885468,
-0.006815224885940552,
0.0539538636803627,
0.010942221619188786,
-0.037483736872673035,
0.03280773386359215,
-0.013100376352667809,
0.05278012901544571,
0.02192230522632599,
-0.017871033400297165,
-0.011557484976947308,
0.005475843790918589,
0.06224571913480759,
-0.02091895416378975,
-0.03757839277386665,
0.0659562274813652,
0.06300296634435654,
0.0793595016002655,
0.006933544762432575,
0.004472491331398487,
0.04869099333882332,
0.00573614751920104,
-0.011813055723905563,
0.006299349945038557,
0.014065866358578205,
0.04009623825550079,
-0.0009418262052349746,
-0.012295801192522049,
-0.03303490951657295,
-0.006502860225737095,
-0.02536778151988983,
-0.005400118883699179,
-0.06478250026702881,
0.011424967087805271,
-0.022054824978113174,
0.015305859036743641,
-0.0344926081597805,
0.026295408606529236,
-0.0007258924306370318,
-0.01612936519086361,
0.01653638482093811,
0.026692964136600494,
-0.04289805144071579,
0.007506212685257196,
0.021941237151622772,
-0.009446658194065094,
-0.02807493880391121,
-0.025538161396980286,
-0.03986906260251999,
-0.014113194309175014,
0.010866496711969376,
-0.06402525305747986,
0.029513709247112274,
0.03574206680059433,
0.05777795985341072,
0.056036293506622314,
-0.047062911093235016,
-0.044298961758613586,
0.025670679286122322,
0.007581937592476606,
0.03267521783709526,
0.03723762929439545,
-0.029930194839835167,
-0.03735121712088585,
0.032391250133514404,
-0.08481168746948242,
-0.018524158746004105,
-0.009503452107310295,
0.003026622347533703,
0.0007424572249874473,
-0.005963321775197983,
-0.005286531988531351,
-0.026844412088394165,
-0.036726489663124084,
-0.0052581350319087505,
0.025121675804257393,
0.06856872886419296,
-0.02192230522632599,
0.026503652334213257,
-0.052212193608284,
0.002560442080721259,
0.025443505495786667,
0.0002251035621156916,
-0.067357137799263,
-0.02852928824722767,
0.0704997107386589,
-0.03316742554306984,
-0.040853485465049744,
-0.0013523960951715708,
-0.027298761531710625,
0.032391250133514404,
-0.0009228949784301221,
-0.003137842984870076,
-0.034057192504405975,
0.01926247589290142,
-0.053915999829769135,
0.010667719878256321,
-0.01724630407989025,
-0.01512601226568222,
-0.03640465810894966,
-0.025727473199367523,
0.002931966446340084,
0.0277341790497303,
-0.027298761531710625,
0.009503452107310295,
0.024894502013921738,
0.044639721512794495,
-0.006015382241457701,
0.027185173705220222,
-0.012380991131067276,
-0.025140605866909027,
0.027753109112381935,
-0.017520805820822716,
0.0014198385179042816,
-0.07860225439071655,
-0.052098605781793594,
0.010222837328910828,
-0.01618615910410881,
0.07197634130716324,
0.0022610926534980536,
-0.02697693184018135,
0.026749756187200546,
0.01441609300673008,
-0.0035898250062018633,
0.002288306364789605,
-0.05645277723670006,
0.03220193833112717,
-0.001975941937416792,
0.047062911093235016,
0.040967073291540146,
-0.0043707359582185745,
0.01895957626402378,
0.015419445931911469,
-0.05001617595553398,
-0.05016762763261795,
-0.009702229872345924,
-0.037975944578647614,
-0.053461652249097824,
0.0012683890527114272,
-0.06535043567419052,
0.004673635121434927,
0.01709485426545143,
0.022774208337068558,
0.0029461649246513844,
0.011301914229989052,
0.08897654712200165,
-0.020180637016892433,
-0.027544867247343063,
-0.03119858354330063,
-0.03676434978842735,
-0.028964703902602196,
-0.009309407323598862,
-0.0004942812956869602,
0.012295801192522049,
-0.03210728242993355,
-0.006606981623917818,
-0.0048795114271342754,
-0.04755512252449989,
-0.036518245935440063,
0.007671860512346029,
-0.011036877520382404,
-0.012295801192522049,
0.026390064507722855,
-0.08307001739740372,
0.0012033131206408143,
-0.019896669313311577,
0.06955315172672272,
0.024837708100676537,
0.014311972074210644,
-0.014633801765739918,
0.02273634634912014,
0.0037720375694334507,
-0.054673247039318085,
0.02358824945986271,
0.02888897992670536,
-0.010724512860178947,
-0.003469138639047742,
0.0448668971657753,
0.03040347434580326,
-0.019167819991707802,
-0.05652850121259689,
0.009650168940424919,
0.05141708254814148,
-0.001361861708573997,
-0.036366794258356094,
-0.001467166468501091,
-0.039301127195358276,
0.021202921867370605,
-0.032997045665979385,
-0.0032135676592588425,
0.011434432119131088,
-0.037029385566711426,
-0.08125261962413788,
-0.015182806178927422,
0.025935716927051544,
-0.03144469112157822,
-0.03373536095023155,
-0.04092920944094658,
0.0015215935418382287,
-0.00042713474249467254,
-0.02731769159436226,
0.009460857138037682,
-0.03231552243232727,
0.03282666578888893,
-0.020426742732524872,
0.058800242841243744,
-0.023266419768333435,
-0.005826070439070463,
0.07496747374534607,
0.06209426745772362,
0.009919937700033188,
-0.04819878190755844,
0.01297732349485159,
0.03877105563879013,
0.001211003866046667,
0.018864920362830162,
0.04395819827914238,
0.004328140988945961,
-0.00754880765452981,
-0.02909722365438938,
0.06694065034389496,
0.06383594125509262,
0.01220114529132843,
0.04516979306936264,
0.014378231018781662,
0.0015097615541890264,
0.012702821753919125,
-0.014065866358578205,
-0.06648630648851395,
-0.014349834062159061,
-0.046911463141441345,
0.009290476329624653,
0.02953263930976391,
-0.016905544325709343,
-0.0389225035905838,
-0.02036994881927967,
-0.04157286882400513,
-0.07799646258354187,
0.0024350229650735855,
-0.060920536518096924,
-0.024023666977882385,
-0.004955236334353685,
-0.0041388291865587234,
-0.027847765013575554,
-0.03280773386359215,
-0.06739500164985657,
-0.04562414437532425,
-0.018013017252087593,
-0.004029974807053804,
-0.029513709247112274,
-0.042481567710638046,
-0.0021936504635959864,
0.01230526715517044,
0.07273358851671219,
-0.007856439799070358,
-0.006933544762432575,
0.02343679964542389,
0.04145928472280502,
0.057702235877513885,
0.043579574674367905,
-0.005845001898705959,
-0.022812072187662125,
0.010071387514472008,
0.005253402516245842,
-0.04562414437532425,
-0.039490438997745514,
-0.0022362456656992435,
-0.011481760069727898,
0.039793338626623154,
-0.02510274387896061,
0.013374878093600273,
-0.049486104398965836,
0.025329917669296265,
-0.02222520485520363,
0.012390457093715668,
0.04532124474644661,
-0.028510356321930885,
0.01295839250087738,
0.03362177684903145,
-0.0015831198543310165,
-0.007103925105184317,
0.021449025720357895,
-0.04331453889608383,
-0.004829816985875368,
-0.04687359929084778,
-0.02822638861835003,
-0.011860383674502373,
-0.031236445531249046,
-0.020048119127750397,
0.009361468255519867,
0.03540130704641342,
0.0006099389283917844,
-0.039906926453113556,
-0.009688030928373337,
-0.030895685777068138,
0.05705857649445534,
0.09033958613872528,
0.014009073376655579,
-0.04558628052473068,
-0.04316309094429016,
0.03337566927075386,
0.017624927684664726,
0.06266220659017563,
0.01588325947523117,
-0.0749296098947525,
0.04441254585981369,
-0.022755278274416924,
-0.05084914714097977,
0.03640465810894966,
-0.06459318846464157,
-0.048728857189416885,
0.0419514924287796,
-0.01805087924003601,
-0.0015215935418382287,
0.0074683502316474915,
-0.03191797062754631,
-0.010241768322885036,
-0.06266220659017563,
0.0463813915848732,
-0.01955590769648552,
0.02958943322300911,
0.05323447659611702,
-0.017113786190748215,
-0.07742852717638016,
0.05705857649445534,
-0.05683140084147453,
0.0115669509395957,
0.038846779614686966,
0.01609150320291519,
-0.1033642441034317,
0.006843621376901865,
0.017605997622013092,
0.0329781137406826,
0.04149714484810829,
-0.06648630648851395,
-0.0037886023055762053,
0.023777561262249947,
0.012418854050338268,
-0.010894893668591976,
0.04009623825550079,
0.03150148317217827,
0.022812072187662125,
-0.014065866358578205,
-0.05630132928490639,
0.007828042842447758,
0.009333071298897266,
0.06326800584793091,
-0.04286019131541252,
-0.023569319397211075,
0.061526332050561905,
-0.02364504337310791,
-0.0024918164126574993,
0.022603828459978104,
-0.019631633535027504,
-0.012996254488825798,
-0.020862160250544548,
0.0077381194569170475,
0.011273517273366451,
0.01668783463537693,
-0.014501283876597881,
0.024440152570605278,
-0.04187576845288277,
-0.00014508973981719464,
0.023512525483965874,
-0.0365939699113369,
0.0072695729322731495,
0.03443581610918045,
0.02197909913957119,
-0.04017196223139763,
-0.03443581610918045,
-0.0037507398519665003,
0.024780914187431335,
0.0033508187625557184,
0.05762651190161705,
0.05274226516485214,
-0.011377639137208462,
0.014539145864546299,
-0.04910748079419136,
-0.011614278890192509,
0.005627293139696121,
0.02833997644484043,
0.01724630407989025,
0.059671077877283096,
-0.0734151154756546,
0.037275493144989014,
0.006692172028124332,
-0.03225873038172722,
0.026295408606529236,
0.02203589305281639,
-0.05539263039827347,
-0.05213646963238716,
-0.010213371366262436,
-0.086931973695755,
-0.05009189993143082,
0.03952830284833908,
-0.07235496491193771,
-0.0403234139084816,
-0.07727707177400589,
0.005229738540947437,
0.01643226481974125,
0.038089532405138016,
0.03273200988769531,
-0.03324315324425697,
-0.024137254804372787,
0.017369357869029045,
0.02970302104949951,
-0.001021100557409227,
-0.05005403980612755,
-0.03044133633375168,
0.024004735052585602,
-0.03100927174091339,
-0.0035874585155397654,
-0.008466970175504684,
0.007998423650860786,
-0.05577125400304794,
-0.022906728088855743,
-0.017946757376194,
-0.001631631050258875,
0.02656044438481331,
0.051454946398735046,
-0.004588444717228413,
-0.03704831749200821,
-0.0015215935418382287,
0.011159930378198624,
-0.011046343483030796,
0.011529088020324707,
0.03782449662685394,
0.025670679286122322,
-0.017833171412348747,
0.03608282655477524,
0.019073164090514183,
-0.02504594996571541,
0.014700060710310936,
-0.06633485108613968,
0.06186709553003311,
-0.0030124238692224026,
-0.038846779614686966,
-0.03684007376432419,
0.056187741458415985,
0.06834156066179276,
0.045396968722343445,
0.054370347410440445,
-0.0524393692612648,
0.055733393877744675,
-0.05569553002715111,
0.01920568197965622,
0.03150148317217827,
0.017511341720819473,
0.008282391354441643,
-0.0061857630498707294,
-0.0002679945027921349,
0.015788603574037552,
-0.03422757238149643,
0.008452772162854671,
0.011765727773308754,
0.0065407226793468,
0.02807493880391121,
-0.05830803140997887,
-0.0015192271675914526,
0.001938079483807087,
0.020237430930137634,
0.02057819254696369,
0.023323213681578636,
-0.017729049548506737,
0.027544867247343063,
-0.036575037986040115,
0.09957800805568695,
0.012182214297354221,
0.08943089097738266
] |
723,305
|
exponent_server_sdk
|
PushTicketError
|
Base class for all push ticket errors
|
class PushTicketError(Exception):
"""Base class for all push ticket errors"""
def __init__(self, push_response):
if push_response.message:
self.message = push_response.message
else:
self.message = 'Unknown push ticket error'
super(PushTicketError, self).__init__(self.message)
self.push_response = push_response
|
(push_response)
|
[
-0.030504446476697922,
-0.023132698610424995,
-0.03493901342153549,
0.04557429626584053,
-0.04307865351438522,
-0.06074013188481331,
-0.028930271044373512,
0.05129507929086685,
0.05041200667619705,
-0.032596949487924576,
0.06031779199838638,
0.02754806913435459,
0.022000061348080635,
-0.012132668867707253,
-0.034862224012613297,
0.054366640746593475,
0.0343438982963562,
-0.022979121655225754,
0.03171387314796448,
-0.04714847356081009,
0.0036546785850077868,
0.03152190148830414,
-0.024591689929366112,
0.07682743668556213,
0.01199828740209341,
0.08538941293954849,
0.017882248386740685,
0.006023140624165535,
0.05620957911014557,
-0.04595824331045151,
-0.06864940375089645,
-0.027759239077568054,
-0.021596917882561684,
0.042003605514764786,
-0.05079594999551773,
-0.02311350218951702,
-0.03474704176187515,
-0.03369119390845299,
-0.10735107958316803,
0.03528456389904022,
-0.04822351783514023,
0.026588205248117447,
-0.04684131592512131,
-0.03513098508119583,
0.06296701729297638,
-0.0033427230082452297,
0.00297557539306581,
0.05455861613154411,
-0.03543814271688461,
0.0007546923006884754,
-0.06350453943014145,
0.05056558549404144,
-0.02393898367881775,
-0.013764435425400734,
-0.024054167792201042,
0.07010839879512787,
0.015559379942715168,
0.04538232460618019,
-0.0530996210873127,
0.02236480824649334,
-0.07049234211444855,
0.0784016102552414,
0.0005186260095797479,
0.013553266413509846,
-0.021347353234887123,
-0.014052394777536392,
-0.010270534083247185,
-0.0017637483542785048,
-0.029736556112766266,
0.031752269715070724,
0.08416078984737396,
0.0326545387506485,
-0.06415724754333496,
0.015098645351827145,
0.0722968801856041,
0.013735639862716198,
-0.03620603308081627,
0.02818157896399498,
-0.0011254394194111228,
0.027164123952388763,
0.017527099698781967,
0.029122244566679,
-0.009334667585790157,
0.031598690897226334,
0.07828643172979355,
-0.01584733836352825,
-0.0024452509824186563,
-0.027912816032767296,
-0.05509613826870918,
0.03511178866028786,
-0.03098437935113907,
-0.03324965387582779,
-0.033326443284749985,
-0.012075076811015606,
0.012708586640655994,
0.008777947165071964,
0.019696390256285667,
-0.01764228194952011,
-0.01453232578933239,
-0.018582947552204132,
0.01313092652708292,
-0.0071173845790326595,
-0.07291119545698166,
-0.04350099340081215,
-0.003671476151794195,
-0.024822058156132698,
0.02777843549847603,
-0.05356035754084587,
0.030965181067585945,
-0.0018921300070360303,
0.008941124193370342,
-0.0009892588714137673,
-0.0461118184030056,
0.030024515464901924,
-0.017287133261561394,
-0.012727783992886543,
0.0024884447921067476,
0.014647509902715683,
0.0011824312387034297,
-0.038951240479946136,
0.05789893865585327,
-0.04749402403831482,
-0.011048023588955402,
0.041158925741910934,
0.03883605822920799,
0.012027083896100521,
-0.012593402527272701,
-0.04280989244580269,
0.05187099799513817,
-0.029352610930800438,
0.003193944226950407,
-0.004763320088386536,
-0.028565524145960808,
-0.09283795207738876,
-0.06327416747808456,
0.00756372045725584,
-0.013178919441998005,
-0.02503322809934616,
0.01912047155201435,
-0.03768422082066536,
0.030216488987207413,
0.06991641968488693,
-0.009286674670875072,
-0.011287989094853401,
-0.011508757248520851,
0.02009953185915947,
-0.0008968720212578773,
-0.003551493166014552,
-0.036973923444747925,
-0.01143196877092123,
0.010164949111640453,
-0.04576626792550087,
0.015348209999501705,
-0.005859963595867157,
0.013178919441998005,
0.007592516485601664,
0.0026996147353202105,
-0.00940665788948536,
0.0027620058972388506,
0.017882248386740685,
0.007371747866272926,
-0.04730204865336418,
0.031157154589891434,
0.025359580293297768,
0.007578118704259396,
-0.009992173872888088,
0.028411945328116417,
-0.06039458140730858,
-0.030562039464712143,
0.0330192893743515,
-0.041811633855104446,
-0.009171491488814354,
-0.04438406601548195,
-0.011758321896195412,
-0.022787148132920265,
0.013985204510390759,
0.013716442510485649,
0.0030955583788454533,
-0.0330192893743515,
-0.017027970403432846,
0.017229542136192322,
-0.04438406601548195,
0.007246966008096933,
0.030581235885620117,
0.006455078721046448,
-0.002187287900596857,
0.017383119091391563,
0.03361440449953079,
0.010750466026365757,
0.024226943030953407,
0.016365664079785347,
-0.020022742450237274,
-0.005039280746132135,
0.04407690837979317,
0.03420951962471008,
0.020214715972542763,
0.021750496700406075,
-0.018794117495417595,
0.029678964987397194,
0.06319738179445267,
-0.05847485736012459,
0.06914853304624557,
-0.007328554056584835,
-0.04492158815264702,
0.013553266413509846,
0.007352550979703665,
0.026434628292918205,
-0.034862224012613297,
-0.022556781768798828,
-0.013236511498689651,
-0.02345905266702175,
0.0182757917791605,
0.01505065243691206,
0.05421306565403938,
0.01960040256381035,
0.006983003579080105,
0.03271213173866272,
-0.023132698610424995,
0.02965976670384407,
0.012890960089862347,
0.056977469474077225,
-0.049682509154081345,
-0.007717298809438944,
-0.028853483498096466,
-0.009555436670780182,
0.06665288656949997,
-0.004014627076685429,
-0.011547151952981949,
-0.028143184259533882,
-0.0012370235053822398,
-0.00728056114166975,
-0.0014301958726719022,
0.03996869549155235,
0.014810686931014061,
-0.010702473111450672,
-0.018007030710577965,
-0.011470363475382328,
-0.052446916699409485,
-0.005831168033182621,
-0.025493962690234184,
0.052101366221904755,
-0.014330754987895489,
-0.01795903779566288,
0.09452731162309647,
0.0626598596572876,
-0.021021001040935516,
-0.026741784065961838,
0.08131959289312363,
-0.07095307856798172,
-0.0008908728486858308,
0.00897951889783144,
0.006608657073229551,
-0.03152190148830414,
-0.04910659417510033,
0.0003473504330031574,
-0.10113117098808289,
0.022230427712202072,
-0.024150153622031212,
0.054366640746593475,
0.009286674670875072,
0.02142414264380932,
0.02104019746184349,
0.02107859216630459,
0.03758823499083519,
-0.023171093314886093,
-0.02340146154165268,
-0.042003605514764786,
0.031118759885430336,
0.03553412854671478,
0.07805605977773666,
0.15365487337112427,
0.01990755833685398,
0.03134912624955177,
0.05901237949728966,
-0.0377994067966938,
-0.022575978189706802,
-0.0400070920586586,
0.04557429626584053,
-0.016624826937913895,
-0.029007060453295708,
-0.015012257732450962,
-0.03180985897779465,
0.06004903092980385,
0.07387106120586395,
-0.002093701157718897,
-0.00042563927127048373,
0.03774181380867958,
-0.0006161120836623013,
0.0072277686558663845,
-0.009032310917973518,
-0.01817980594933033,
0.02368941903114319,
-0.032731328159570694,
0.004230596125125885,
-0.00343630975112319,
0.02532118745148182,
-0.040966954082250595,
0.06296701729297638,
0.05997224152088165,
0.001198628917336464,
0.034958209842443466,
0.026434628292918205,
-0.006555864587426186,
-0.00752532621845603,
-0.010577690787613392,
-0.019206859171390533,
0.030331671237945557,
0.02582031488418579,
-0.019293246790766716,
-0.036244429647922516,
0.054865770041942596,
0.08838418871164322,
-0.023919787257909775,
0.012161464430391788,
0.02094421163201332,
0.0772881731390953,
0.055057741701602936,
-0.02054106816649437,
-0.004962491802871227,
0.05152544751763344,
-0.007352550979703665,
-0.05651673674583435,
-0.001514183939434588,
0.0020277106668800116,
0.059780269861221313,
0.010884846560657024,
-0.030754011124372482,
-0.00883553922176361,
-0.012804572470486164,
0.027663253247737885,
-0.014810686931014061,
-0.015501787886023521,
0.004113012924790382,
-0.05060397833585739,
0.006618255749344826,
-0.04208039492368698,
-0.0026012288872152567,
-0.012785375118255615,
-0.03474704176187515,
-0.051755815744400024,
0.003258734941482544,
-0.025781920179724693,
-0.01962919905781746,
0.06638412922620773,
-0.017191147431731224,
-0.038893651217222214,
-0.010136153548955917,
-0.05897398293018341,
-0.024226943030953407,
0.010251336731016636,
-0.03380637615919113,
0.02380460314452648,
0.021347353234887123,
0.01409078948199749,
0.052293337881565094,
-0.02069464698433876,
-0.06607697159051895,
-0.01707596331834793,
0.025877907872200012,
0.001590972999110818,
0.04023745656013489,
-0.013975605368614197,
-0.0020085133146494627,
0.00944985169917345,
-0.09030391275882721,
0.009982575662434101,
-0.006349493749439716,
0.02186567895114422,
-0.0044129700399935246,
0.0041442085057497025,
0.008974718861281872,
-0.027567265555262566,
-0.05405948683619499,
0.04350099340081215,
-0.03411353379487991,
0.04108213633298874,
-0.041120532900094986,
0.013610857538878918,
-0.07506129145622253,
-0.03324965387582779,
0.01657683402299881,
-0.008686760440468788,
-0.05014324560761452,
0.0003485502675175667,
0.011623941361904144,
-0.004518555011600256,
-0.00119143002666533,
-0.01777666248381138,
0.10865649580955505,
0.06162320822477341,
-0.04672613367438316,
-0.03946956619620323,
0.0048785037361085415,
0.02812398597598076,
-0.05448182672262192,
-0.02749047800898552,
-0.013063736259937286,
-0.0016977577470242977,
-0.015501787886023521,
-0.002620426006615162,
0.007981261238455772,
0.00954583752900362,
0.002886787988245487,
-0.0065078712068498135,
0.05789893865585327,
0.02054106816649437,
-0.013380490243434906,
0.0036330814473330975,
-0.0012634197482839227,
-0.006829425226897001,
0.025186805054545403,
-0.03079240582883358,
-0.0416964516043663,
-0.10159189999103546,
-0.048300307244062424,
-0.020656252279877663,
-0.012027083896100521,
-0.009368263185024261,
-0.0030139698646962643,
-0.03536135330796242,
-0.013025341555476189,
0.0016341668087989092,
0.008777947165071964,
-0.003889844985678792,
-0.04311704635620117,
0.026876164600253105,
-0.0031099561601877213,
0.022307217121124268,
0.05068076774477959,
0.011096016503870487,
0.003501100465655327,
0.029141440987586975,
-0.016442453488707542,
-0.0016077705658972263,
0.018794117495417595,
-0.029083849862217903,
-0.054366640746593475,
-0.004331381991505623,
-0.06377329677343369,
0.039239201694726944,
-0.004816112574189901,
0.00007007749809417874,
0.02862311527132988,
0.024822058156132698,
0.05421306565403938,
-0.03597566485404968,
-0.03925839811563492,
-0.016682419925928116,
-0.03635961189866066,
0.007328554056584835,
0.01698957569897175,
-0.019648395478725433,
-0.0032419373746961355,
-0.023958181962370872,
0.01710475981235504,
-0.058513250201940536,
-0.06757435947656631,
0.011940696276724339,
0.009128297679126263,
-0.005524011794477701,
-0.025340383872389793,
0.04261791706085205,
-0.04703328758478165,
-0.004283388610929251,
-0.0300437118858099,
0.02390058897435665,
0.024265337735414505,
-0.01192149892449379,
-0.007285360246896744,
-0.014378747902810574,
0.013678047806024551,
0.010740866884589195,
-0.021347353234887123,
0.02507162280380726,
-0.046035028994083405,
-0.0015669764252379537,
0.022441597655415535,
-0.009896188043057919,
-0.03929679095745087,
-0.03468944877386093,
-0.0145611222833395,
0.01177751924842596,
0.03774181380867958,
-0.022998318076133728,
-0.015098645351827145,
-0.016788003966212273,
0.018227798864245415,
-0.05812930315732956,
0.030619630590081215,
0.03384476900100708,
-0.042195577174425125,
0.00024221543571911752,
-0.04330901801586151,
0.049836087971925735,
-0.021347353234887123,
0.003604285651817918,
-0.07344871759414673,
0.04641897603869438,
-0.030331671237945557,
-0.010270534083247185,
0.01767107844352722,
-0.04292507469654083,
0.010673676617443562,
-0.04211879149079323,
0.054366640746593475,
-0.057514991611242294,
0.028757495805621147,
0.07590597122907639,
0.07237367331981659,
-0.007554122246801853,
0.017719071358442307,
0.009502643719315529,
0.01581854186952114,
-0.013236511498689651,
0.02123217098414898,
-0.0024116558488458395,
-0.029794149100780487,
-0.006018341053277254,
-0.007534924894571304,
0.0687645897269249,
0.06665288656949997,
0.0352269746363163,
0.05271567776799202,
-0.004933695774525404,
0.017939839512109756,
-0.025589948520064354,
0.053483568131923676,
-0.024822058156132698,
-0.010683275759220123,
0.056977469474077225,
-0.004844908602535725,
0.007294958923012018,
-0.03632121533155441,
-0.0018093418329954147,
0.010664078406989574,
0.036916330456733704,
-0.07371748238801956,
0.032347384840250015,
-0.026780178770422935,
-0.05882040783762932,
-0.02950618974864483,
0.03906642645597458,
0.002774004125967622,
-0.04987448453903198,
-0.08270179480314255,
-0.06277504563331604,
-0.03465105593204498,
0.03490062057971954,
-0.036551583558321,
-0.033921558409929276,
0.025186805054545403,
-0.0182757917791605,
0.003162748645991087,
0.013802830129861832,
-0.009008314460515976,
0.010750466026365757,
0.019235655665397644,
0.04215718433260918,
0.06223751977086067,
0.006075933109968901,
-0.014023599214851856,
0.05033521726727486,
0.014138782396912575,
-0.022883133962750435,
-0.021961666643619537,
0.009896188043057919,
-0.02764405496418476,
0.05651673674583435,
-0.05336838588118553,
0.014743495732545853,
-0.024918043985962868,
0.009214685298502445,
-0.015252223238348961,
0.02827756479382515,
0.04902980476617813,
-0.018199002370238304,
0.01994595304131508,
0.08945923298597336,
0.024476507678627968,
0.021174577996134758,
0.02368941903114319,
-0.028200775384902954,
-0.02689536288380623,
-0.05763017758727074,
-0.05167902633547783,
0.015098645351827145,
0.0062055145390331745,
-0.02827756479382515,
0.002606028225272894,
0.03595646843314171,
-0.01855415292084217,
-0.07333353161811829,
0.005092073231935501,
-0.01601051539182663,
0.020080335438251495,
0.028757495805621147,
0.03582208976149559,
-0.061354443430900574,
-0.03205942362546921,
0.00572558306157589,
0.015223427675664425,
0.049644116312265396,
-0.005701586604118347,
-0.013678047806024551,
0.06642252206802368,
-0.02754806913435459,
-0.02132815681397915,
0.022883133962750435,
-0.051410265266895294,
0.003889844985678792,
0.05571044981479645,
-0.0028267966117709875,
-0.010184146463871002,
0.03205942362546921,
-0.035303760319948196,
-0.023324672132730484,
-0.013889217749238014,
0.05970348045229912,
-0.011403173208236694,
0.0020973007194697857,
0.030504446476697922,
-0.012555008754134178,
-0.07632830739021301,
0.06972444802522659,
-0.024764467030763626,
0.0344206877052784,
0.0425795242190361,
-0.01867893524467945,
-0.09329868853092194,
-0.01576095074415207,
0.026434628292918205,
0.06507871299982071,
0.04227236658334732,
-0.0817035436630249,
-0.0269529540091753,
0.0435393862426281,
0.032289791852235794,
0.009099501185119152,
0.04561269283294678,
0.045651085674762726,
0.04138929396867752,
-0.031598690897226334,
-0.05651673674583435,
-0.011911899782717228,
-0.01701837219297886,
0.021404946222901344,
-0.0026804176159203053,
-0.07901592552661896,
0.0230559092015028,
-0.04250273481011391,
0.05102631822228432,
0.009003515355288982,
0.0014733897987753153,
0.004547351039946079,
-0.06039458140730858,
0.03858649358153343,
-0.020272307097911835,
0.0487610399723053,
0.022729557007551193,
0.00975220836699009,
-0.0339791513979435,
0.005816769786179066,
0.012900559231638908,
-0.0026996147353202105,
-0.0015765749849379063,
0.026837769895792007,
0.04396172612905502,
-0.07087628543376923,
-0.0317714661359787,
0.024860452860593796,
0.01657683402299881,
-0.026626599952578545,
0.03330724686384201,
-0.015559379942715168,
0.004892901983112097,
-0.016845596954226494,
0.005240852013230324,
0.013265307061374187,
0.02418854832649231,
0.013342096470296383,
0.018093418329954147,
0.052946045994758606,
-0.08108922839164734,
0.021596917882561684,
-0.003736266866326332,
0.05129507929086685,
0.01953321322798729,
0.052446916699409485,
-0.01795903779566288,
-0.05359875038266182,
0.008086846210062504,
-0.026569008827209473,
-0.07367908954620361,
0.04023745656013489,
-0.09268437325954437,
-0.012746981345117092,
-0.062352702021598816,
-0.05432824790477753,
0.0035562925040721893,
0.02246079407632351,
0.025897104293107986,
-0.004391373135149479,
-0.03453586995601654,
-0.011710328981280327,
0.009195487946271896,
-0.016308072954416275,
-0.013908415101468563,
-0.007491731084883213,
0.037031516432762146,
-0.04542071744799614,
-0.007880475372076035,
-0.011393574066460133,
0.02468767762184143,
-0.06365811824798584,
-0.0066710482351481915,
0.004098615143448114,
0.015223427675664425,
0.01288136187940836,
-0.05056558549404144,
0.02438051998615265,
-0.026377035304903984,
-0.006959007121622562,
0.015165835618972778,
0.01675920933485031,
0.054174669086933136,
-0.005346436984837055,
0.0434625968337059,
-0.01994595304131508,
0.0011560349958017468,
0.020579462870955467,
0.011230397038161755,
0.049183379858732224,
-0.03996869549155235,
0.03476623818278313,
0.0014109986368566751,
-0.06074013188481331,
-0.03582208976149559,
0.02818157896399498,
0.0887681320309639,
0.08316253125667572,
0.008873933926224709,
-0.07099147140979767,
-0.008269219659268856,
-0.06703683733940125,
0.005984745919704437,
0.005562406033277512,
0.011096016503870487,
0.035054199397563934,
-0.03438229486346245,
0.018458165228366852,
-0.016903188079595566,
-0.02163531258702278,
-0.026415430009365082,
0.02965976670384407,
-0.010011371225118637,
-0.03432470187544823,
-0.02843114361166954,
-0.004216198343783617,
0.018007030710577965,
-0.0021284963004291058,
-0.008557179011404514,
-0.028987864032387733,
-0.006512670777738094,
0.016538439318537712,
-0.010865649208426476,
0.09084143489599228,
0.01584733836352825,
0.05110310763120651
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.