text
stringlengths
25
2.19k
embedding
listlengths
768
768
def setemccdgain ( gain ) : return none
[ 0.45759618282318115, -1.1970041990280151, 0.44945064187049866, -0.21040520071983337, -0.012863810174167156, 0.503268301486969, 0.3670523762702942, 0.1996077597141266, -0.09466178715229034, -1.2950371503829956, -0.9346352815628052, 0.3813801407814026, -0.6277097463607788, 0.7398929595947266...
def get _ parent _ pvs ( self, device _ name ) : blivet _ device = self. storage. devicetree. getdevicebyname ( device _ name ) assert blivet _ device. _ type = = " lvmvg " return blivet _ device. pvs
[ 0.3617524802684784, 0.5060347318649292, 0.5516954660415649, 0.2982022762298584, -0.7919696569442749, 0.2615149915218353, -0.7261320352554321, -1.1863716840744019, -0.009418047033250332, 0.6194719076156616, 0.4845609664916992, -0.0510595478117466, -0.691699206829071, 0.005224950611591339, ...
def test _ nfc _ wps _ handover _ pk _ hash _ mismatch _ sta ( dev, apdev ) : ssid = " wps - nfc - handover - pkhash - sta " if " fail " in dev [ 0 ]. request ( " set wps _ corrupt _ pkhash 1 " ) : raise exception ( " could not enable wps _ corrupt _ pkhash " ) params = ap _ wps _ params ( ssid ) hapd = hostapd. add _ ...
[ 0.4407670795917511, 0.2859596014022827, 0.791915774345398, 0.4247667193412781, 0.2896382212638855, 0.6299154758453369, 0.14281226694583893, -0.5816154479980469, -0.1410367488861084, -0.47351694107055664, -0.31072431802749634, -0.37152794003486633, 0.04788874834775925, 0.553098738193512, ...
def improve _ policy ( self, policy, values ) : possible _ moves = np. array ( [ move. left. value, move. right. value, move. up. value, move. down. value ] ) policy _ stable = false while not policy _ stable : policy _ stable = true for i in range ( self. grid _ i _ size ) : for j in range ( self. grid _ j _ size ) : ...
[ -0.3585081100463867, -0.3909350335597992, 0.6382380723953247, -0.3671305179595947, 0.3402981162071228, 0.47207656502723694, -0.19947531819343567, -0.12319762259721756, -0.06710467487573624, 0.13383914530277252, 0.25113457441329956, 0.512974202632904, 0.2077784538269043, 0.4863244593143463,...
def get _ remote _ url ( path, remote ='origin') : with cd ( path ) : origin = run ('git config - - get remote. % s. url'% remote ) return origin
[ -0.2539274990558624, -0.41257449984550476, 0.5871242880821228, -0.26993608474731445, -1.1251461505889893, 1.436049461364746, -1.082809567451477, 0.3118116855621338, -1.0260605812072754, 0.66057950258255, -1.0256054401397705, 1.0506165027618408, -0.6670565009117126, -1.1568927764892578, -...
async def connect ( self ) : # reset any existing connection state if self. _ login _ task is not none : self. _ login _ task. cancel ( ) self. _ login _ task = none if self. _ monitor _ task is not none : self. _ monitor _ task. cancel ( ) self. _ monitor _ task = none if self. _ ping _ task is not none : self. _ ping...
[ -0.4699500799179077, -0.015705104917287827, 0.6178526282310486, 0.612742006778717, 0.33648040890693665, -0.14525021612644196, 0.17797131836414337, -0.0354793518781662, -0.43875226378440857, 0.06814631074666977, -0.5800687670707703, -0.4440578520298004, 0.17618486285209656, 0.27494516968727...
def create _ mailing _ label _ report _ html ( self, request ) : data = self. _ _ create _ mailing _ label _ report _ data ( ) return self. _ _ render _ to _ html ('mailing _ labels. html ', request, { " donors " : data, " created _ date " : datetime. now ( ). strftime ( " % y - % m - % d " ) } )
[ -1.287320613861084, 0.41336044669151306, 0.37344929575920105, -0.6486577987670898, 0.2562201917171478, 1.1433699131011963, 0.24838541448116302, -0.28323599696159363, -0.22033488750457764, 0.29094240069389343, 1.0783592462539673, 0.03366072103381157, -0.07728402316570282, 0.3569560348987579...
def _ set _ symbol _ from _ env ( self, symbol ) : name = symbol. get _ name ( ) val = symbol. get _ value ( ) env _ key = name [ name. find ( '.') + 1 : ]. replace ( '. ','_'). upper ( ) env _ val = os. environ. get ( env _ key ) if env _ val : # we have found a valid env value, override try : symbol. set _ user _ val...
[ -0.9505805373191833, -0.5084909796714783, 0.6024383902549744, 0.05758069083094597, 0.369075208902359, -0.48556384444236755, 0.7140283584594727, -0.41674545407295227, -0.7686635851860046, 0.2847574055194855, 0.07905889302492142, 0.8260931372642517, 0.7554551362991333, 1.1509530544281006, ...
def test _ addcircuit _ instantiate ( self ) : elementary. addcircuit ( )
[ 0.07765410095453262, 0.03079810179769993, 0.47017577290534973, -0.768118143081665, 0.48835232853889465, 0.6931543350219727, 0.5268503427505493, -0.09246122092008591, 0.392010897397995, -0.6658056378364563, -1.0256578922271729, 0.4139421582221985, -0.30861902236938477, 0.9379030466079712, ...
def expand ( array, ant, new _ ant, new _ shape ) : # the values of the nodeids in ant and new _ ant must be sorted. # insertion sort is used as there is already an inbuilt function in numpy # to swap axes. ant = list ( ant ) for j in range ( len ( ant ) - 1 ) : i _ min = j for i in range ( j + 1, len ( ant ) ) : if an...
[ -0.20367251336574554, -1.0223208665847778, 0.9307501912117004, -0.8934396505355835, -0.8454946875572205, -0.5583679676055908, -0.12751740217208862, -0.4806922674179077, 0.2982127368450165, 0.7664573788642883, 0.7897298336029053, 0.359170526266098, 0.5062845349311829, -0.5307232141494751, ...
def groupupdated ( self, groupview ) : self. groups [ groupview. uid ] = groupview self. _ main. send ( " groupupdated ", [ groupview. uid, ", ". join ( groupview. contact _ ids ), str ( groupview. name ) ] ) pass
[ -0.5599291920661926, -0.7028811573982239, 0.1141265481710434, -0.23641811311244965, -0.9475911259651184, -0.08595667779445648, 0.26796606183052063, -0.3961799740791321, 0.19546230137348175, -0.33834680914878845, 0.000408364663599059, 0.7413575649261475, -0.6046594977378845, -0.098809197545...
def evaluate _ policy _ by _ iteration ( self, policy ) : # todo use tolerance as possible break max _ number _ of _ iteration = 100 values = np. zeros ( ( self. grid _ i _ size, self. grid _ j _ size ) ) tolerance = 0. 01 for iteration in range ( max _ number _ of _ iteration ) : for i in range ( self. grid _ i _ size...
[ -0.8956814408302307, 0.08686347305774689, 0.5434097051620483, -0.7542127966880798, 0.3385884165763855, -0.22084927558898926, -0.027825579047203064, -0.30143651366233826, -0.009379525668919086, 1.5337456464767456, 0.6634756326675415, 0.5239472985267639, 0.0029555470682680607, -0.00705300876...
def test _ l2 _ metric _ dist _ vectorization ( self ) : n _ samples = self. n _ discretized _ curves curves _ ab = self. l2 _ metric _ s2. geodesic ( self. curve _ a, self. curve _ b ) curves _ bc = self. l2 _ metric _ s2. geodesic ( self. curve _ b, self. curve _ c ) curves _ ab = curves _ ab ( self. times ) curves _...
[ 0.8332703709602356, -0.11098431050777435, 0.5422114133834839, -0.5072239637374878, 0.8282327651977539, 0.9035744071006775, -0.202174574136734, -0.5639305710792542, -0.6950488686561584, -0.07247188687324524, -0.33762404322624207, 0.3221609592437744, 0.6697235107421875, -0.1668422967195511, ...
def test _ get _ containers _ include _ exclude ( self ) : expected _ ids = [ " b8757266fd6a9efcb40a2881215d8d3642e6f8a0cfdcbb941382d002f31dcca4 ", " 343c05b55c1b0cebca6df0309a4892974c5ed3013731433461ffe7442223659a ", " 58ded582ebf14063bff3b15cd3962035be9904b73318796f1119d71472801d23 ", " c4eacccbf687f408c708b12fa875ab...
[ 0.5373684763908386, 0.014074521139264107, 0.8228968977928162, -0.3304349184036255, -0.19371548295021057, 0.33054253458976746, 0.40693649649620056, 0.8629023432731628, -0.02470044419169426, 0.05558902025222778, -0.7357622981071472, 0.24145925045013428, -0.8989297747612, 0.19223332405090332,...
def _ _ init _ _ ( self, host : str, port : int, handle, topic _ name : str, server _ name : str = none, num _ partitions : int = 64, replication _ factor : int = 1, max _ polling _ timeout : float = 0. 001, * * kwargs ) : bootstrap _ servers ='{ } : { } '. format ( host, port ) kc = kafkacontrol ( bootstrap _ servers ...
[ 0.9793440103530884, -0.11240513622760773, 0.8913080096244812, 0.19006437063217163, -0.2509981095790863, -0.41746437549591064, 0.054997678846120834, -0.45902130007743835, -0.30232536792755127, 0.42073869705200195, 0.08760294318199158, 0.41562578082084656, -0.4295021891593933, 0.268906772136...
def _ _ resolution _ changed ( self, output = none ) : if output is none : output = self. output x _ res, y _ res, x _ reg, y _ reg, r _ reg, t _ reg = self. _ _ get _ resolution ( output ) if x _ res! = output. origin _ res _ x or y _ res! = output. origin _ res _ y : return true elif x _ reg! = 0 or y _ reg! = 0 or r...
[ -0.5620374083518982, -0.8472471833229065, 0.6881538033485413, 0.48704448342323303, 0.06863025575876236, -0.5757939219474792, 0.16630779206752777, -0.4084542691707611, -0.4968959391117096, -0.07791584730148315, -0.35827508568763733, -0.9178280830383301, -0.3451261520385742, -0.0982830077409...
def on _ key _ press ( self, key, modifiers ) : self. keys _ pressed. add ( key ) self. update _ text ( )
[ -0.6605855822563171, 0.049577489495277405, 0.28618308901786804, -0.7108413577079773, 0.19954390823841095, -0.06521239876747131, -1.0469658374786377, 0.4585033655166626, 0.16467440128326416, 0.8560522794723511, -1.2947192192077637, -0.14086167514324188, -0.4671156108379364, 0.11879608035087...
def set ( user _ id, group _ id, limit ) : client = get _ admin _ client ( ) qos _ cli. set ( client, user _ id = user _ id, group _ id = group _ id, limit = limit )
[ 0.23548905551433563, 1.1253031492233276, 0.3328024446964264, 0.031781937927007675, 0.30526337027549744, -0.18923310935497284, -0.5524227023124695, -1.6433221101760864, -0.23594900965690613, 0.6514074802398682, 0.0785006433725357, 2.2251574993133545, -0.563766360282898, -0.5955985188484192,...
def clear ( self ) : self. root = node ( )
[ 0.45832231640815735, 0.1422802060842514, 0.05726012960076332, -0.3685545325279236, -0.27037498354911804, 0.4205945134162903, 0.2043643593788147, -0.2036377638578415, -0.07873117923736572, 0.22549104690551758, -0.190163716673851, 2.6812849044799805, 0.1546333134174347, 0.368620365858078, ...
def test _ re _ opening _ cache _ file ( ) : data = autoconfig. data _ directory # xml _ generator has not been set if utils. xml _ generator is not none : raise exception # try to reopen an old cache file and check if there is an exception # these old files do not know about the xml generator ; a runtimeerror # should...
[ -0.3762330114841461, 0.0329623818397522, 0.6641296744346619, 0.15742000937461853, -0.043258391320705414, 0.019700443372130394, 0.7651691436767578, 0.718505859375, -0.7283929586410522, -0.36799123883247375, 0.036155570298433304, -0.08080499619245529, 0.140201136469841, 0.028592891991138458,...
def share _ subscription _ status ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " share _ subscription _ status " )
[ 1.3213926553726196, -0.3157845437526703, 0.4218343496322632, 1.0075446367263794, 0.2547025978565216, 1.1286853551864624, 0.23598003387451172, -0.05586063861846924, 0.3119211196899414, -0.3636002242565155, -0.44116297364234924, 1.3690282106399536, 0.4903948903083801, -0.982978343963623, -...
def pretrained _ embedding _ layer ( word _ to _ vec _ map, word _ to _ index, trainable = false ) : vocab _ len = len ( word _ to _ index ) + 1 # adding 1 to fit keras embedding ( requirement ) emb _ dim = word _ to _ vec _ map [ " cucumber " ]. shape [ 0 ] # define dimensionality of your glove word vectors ( = 50 ) #...
[ 0.270719051361084, -0.09717247635126114, 0.6462991237640381, 1.0480164289474487, -0.275268018245697, 0.25569018721580505, 0.7061221599578857, 0.07605675607919693, 0.17912252247333527, -0.40300101041793823, -0.11704610288143158, 0.1778985559940338, -0.7851850390434265, -0.09852185845375061,...
def linkurl ( listing ) : return ( listing [ " data " ] [ " url " ], listing [ " data " ] [ " name " ], listing [ " data " ] [ " title " ], int ( listing [ " data " ] [ " created _ utc " ] ) )
[ -1.4923858642578125, 0.06311028450727463, 0.402860552072525, -0.8482803702354431, 0.3909915089607239, 0.229948952794075, -1.4031665325164795, 0.7251604199409485, -0.1655465066432953, -0.18947748839855194, -0.9262433052062988, 0.5044916272163391, 0.2851909101009369, -0.13912548124790192, ...
def get _ write _ headroom ( self ) : return self. _ buffer _ size - self. _ data _ size
[ -0.18899564445018768, -1.1146774291992188, 0.7702181935310364, -0.393169105052948, -0.05228791385889053, 0.4947633445262909, 0.9206897020339966, -0.8440563082695007, 0.004902868065983057, -0.6661093235015869, -0.21517261862754822, 0.6651158332824707, -1.2644954919815063, 0.3626841008663177...
def next _ unregistered ( registered ) : # get current term number now = curr ( ) # never registered - > current term is next if len ( registered ) < 1 : return generate ( now ) # return the first unregistered, or the current term ( whichever is greater ) return generate ( max ( [ max ( map ( parse, registered ) ) + 1,...
[ -0.863615870475769, 0.6196391582489014, 0.4779343605041504, 0.06115303188562393, -0.14931504428386688, -0.5476498603820801, 0.441820353269577, 0.5722964406013489, 0.30056995153427124, -0.8649061322212219, 0.10858108103275299, 0.21579910814762115, -0.5204183459281921, 0.27096664905548096, ...
def build _ app _ main _ objs ( self ) : def build _ one _ app _ main _ obj ( acc, app _ main _ src ) : app _ main _ obj = self. _ _ env. object ( self. _ _ to _ build _ path ( app _ main _ src ) ) assert isinstance ( app _ main _ obj, g _ node _ list _ type ) acc. extend ( app _ main _ obj ) return acc return reduce (...
[ -0.865149199962616, -0.6675431132316589, 0.5583551526069641, 0.5845780968666077, 0.26608747243881226, 0.8322627544403076, 0.2384362518787384, -0.5103872418403625, 0.4657938778400421, 0.6693914532661438, -0.07615312933921814, 0.18858937919139862, 0.502480685710907, 0.27981698513031006, -0...
def computedimsqueezepoints ( self, outputlimitsinorder ) : dimsqueezepoints = [ ] outputlimitsinorder = [ int ( outputlimit ) for outputlimit in outputlimitsinorder ] samplecount = len ( outputlimitsinorder ) curoutputlimit = outputlimitsinorder [ - 1 ] dimsqueezepoints. append ( ( curoutputlimit, samplecount ) ) for ...
[ -0.26381614804267883, -0.7886926531791687, 0.48367419838905334, 0.678292989730835, -0.8102815747261047, -0.9765614867210388, 0.7501642107963562, 0.45488882064819336, 0.20423999428749084, 1.2638851404190063, -0.2747080326080322, 0.5630713701248169, 0.7020631432533264, -0.1680791676044464, ...
def enqueue ( self, value : int ) - > bool : if self. isfull ( ) : return false self. items [ self. tail ] = value self. tail = ( self. tail + 1 ) % self. capacity return true
[ -0.5136982798576355, 0.8691078424453735, 0.9492955803871155, -0.5306532979011536, -0.2391120195388794, 0.3915404677391052, 0.31739044189453125, -0.9580922722816467, -0.2608654499053955, 0.1351940929889679, -1.4088209867477417, -0.5188401341438293, -0.823613703250885, 0.39449310302734375, ...
def _ sanitizefield ( self, field ) : return self. _ illegal _ xml _ re. sub ('\ ufffd ', field )
[ 0.6077545285224915, 0.11504252254962921, 0.3923937976360321, -0.7531328797340393, -0.6320639252662659, 0.304792582988739, -0.42842140793800354, -0.10976068675518036, -0.0898667499423027, -0.20124304294586182, 0.2992263734340668, -0.3043070137500763, -1.2414239645004272, -0.0168922506272792...
def triangle _ mesh _ data ( nx, ny ) : nx _ vertex = nx + 1 ; ny _ vertex = ny + 1 # number of vertex in x and y directions n _ vertex = nx _ vertex * ny _ vertex # total number of vertex n _ elts = nx * ny # total number of elements # assemble vertex _ to _ coords # numbered from bottom left, then right, then one up ...
[ -0.2118130624294281, -0.09558509290218353, 0.7336628437042236, 0.12420036643743515, 0.23290468752384186, 0.5004677772521973, 0.44516998529434204, -0.5432635545730591, 0.3664064407348633, -0.10389528423547745, -0.8553794622421265, 0.14507952332496643, 0.9491922855377197, -0.4476087987422943...
def setup _ uwsgi _ stubtest _ command ( dist : path, venv _ dir : path, stubtest _ cmd : list [ str ] ) - > bool : uwsgi _ ini = dist / " @ tests / uwsgi. ini " if sys. platform = = " win32 " : print _ error ( " uwsgi is not supported on windows " ) return false uwsgi _ script = venv _ dir / " uwsgi _ stubtest. py " w...
[ -0.33817821741104126, -0.386817991733551, 0.788945198059082, -0.039502449333667755, -0.29590854048728943, 0.030517399311065674, 0.239500030875206, 0.07428830116987228, 0.08065155148506165, 0.2848012149333954, 0.13175760209560394, 0.7604716420173645, 0.13772645592689514, 0.4718088209629059,...
def gconnect ( ) : # verify the page's state token to be sure it was generated by this app server if request. args. get ('state')! = login _ session ['state'] : # if the state token is invalid, stop and return an error response = make _ response ( json. dumps ('invalid state parameter.'), 401 ) response. headers ['cont...
[ -0.00546474102884531, -0.4529748558998108, 0.9026653170585632, -0.1066681370139122, -0.300190269947052, -0.2382110059261322, -0.6477943658828735, -0.9318143725395203, 0.11204337328672409, 0.314805805683136, 0.6660903096199036, 0.4464203417301178, -0.13695447146892548, 0.059586040675640106,...
def all _ gaussian _ different _ ellipticies ( dataframe, plotname ) : dataframe ['gal _ sigma'] = [ gal. sigma for gal in dataframe ['original _ gal'] ] dataframe ['psf _ sigma'] = [ psf. sigma for psf in dataframe ['true _ psf'] ] dataframe ['gal _ psf _ ratio'] = dataframe ['gal _ sigma'] / dataframe ['psf _ sigma']...
[ 0.009182196110486984, -0.3258412480354309, 0.8329454064369202, -0.36406317353248596, -0.2858065068721771, 0.9671788215637207, 0.8130455613136292, -0.025198323652148247, -0.3656211197376251, 0.8207820057868958, -0.055801428854465485, 1.0285454988479614, -0.011247496120631695, 0.091792970895...
def _ connectstudiomaxsignal ( self, conndef, cross3dsignal ) : # store the maxscript methods needed if conndef. callbacktype = = _ connectiontype. viewport : signal = _ studiomax _ viewport _ template % {'cls':'dispatch ','function': conndef. function,'signal': cross3dsignal } # ensure that if the old signal existed i...
[ -0.035506028681993484, -0.23555788397789001, 0.6729578971862793, 0.9454217553138733, -0.28429219126701355, -0.24283261597156525, -0.4966999888420105, -0.27685782313346863, 0.8833416104316711, 0.23199330270290375, -0.7328193187713623, -0.07331791520118713, 0.4537205398082733, 0.837961316108...
def _ mgui _ set _ choice ( self, choice _ name : str, data : any ) - > none : item _ index = self. _ qwidget. findtext ( choice _ name ) # if it's not in the list, add a new item if item _ index = = - 1 : self. _ qwidget. additem ( choice _ name, data ) # otherwise update its data else : self. _ qwidget. setitemdata (...
[ -0.4506880044937134, -0.035194870084524155, 0.4081927239894867, -0.35369157791137695, 0.2493666261434555, 0.7429282069206238, -1.4440209865570068, -0.1085839718580246, 0.4037141799926758, 0.8887789845466614, -0.5528222918510437, 0.08035360276699066, -0.26479336619377136, 0.1609933525323867...
def cusip ( self, cusip ) : self. _ cusip = cusip
[ 0.09006635844707489, -0.44759342074394226, 0.19470173120498657, 1.298975944519043, -0.9302191138267517, 0.7607336044311523, 0.7740644216537476, 0.7852000594139099, -0.20259445905685425, 0.46624964475631714, -0.6888580918312073, -1.3678151369094849, -0.115953229367733, -1.5742894411087036, ...
def _ mgui _ get _ max _ height ( self ) - > int : return self. _ qwidget. maximumheight ( )
[ 0.8391134738922119, 0.2839874029159546, 0.41008180379867554, 0.6384775638580322, -0.9164161682128906, 0.5368360877037048, -0.37785738706588745, -0.14532731473445892, -0.15158356726169586, -0.29561445116996765, -0.09351132810115814, -0.33465901017189026, -0.8240606188774109, 0.1280020326375...
def handle _ error ( self, msg, exc _ info = true ) : self. logger. log _ v ( " server stopping - - > % s ", msg, exc _ info = exc _ info ) self. stop ( )
[ -0.5025725364685059, -0.5084401369094849, 0.4728377163410187, -0.13883419334888458, 0.30887365341186523, 0.2050279974937439, -0.09709033370018005, 0.9114333987236023, -0.3374097943305969, -0.08329374343156815, -0.15439079701900482, -0.33670103549957275, -0.29831382632255554, 0.432585835456...
def difference ( states, predictions ) : # pragma : no cover return states - predictions
[ -0.8258897662162781, -0.4007890522480011, -0.004573088139295578, 0.3727058172225952, 0.02819078229367733, 0.7967527508735657, 0.5274650454521179, 0.6320524215698242, -0.02105761133134365, -0.03257491812109947, 0.22252845764160156, -0.7795925140380859, 0.7554324269294739, -0.121582560241222...
def put ( self, key : int, value : int ) - > none : hashcode = self. get _ hashcode ( key ) for i, each in enumerate ( self. key [ hashcode ] ) : # print ( each, key ) if each = = key : self. value [ hashcode ] [ i ] = value return self. key [ hashcode ]. append ( key ) self. value [ hashcode ]. append ( value ) return
[ -0.34080055356025696, 0.18832165002822876, 0.63004070520401, -0.5003812313079834, -0.18774452805519104, -0.07594364136457443, -0.18634828925132751, 0.24828092753887177, -0.14488759636878967, 1.0349361896514893, -0.2608700096607208, -0.4667172133922577, -1.0126452445983887, 0.37132900953292...
def target _ attrs ( self ) : return self. _ target _ attrs
[ -1.5575226545333862, -0.6689977049827576, 0.4358634054660797, -0.1772647649049759, 0.28863993287086487, -0.023424679413437843, -0.16762426495552063, 0.29639801383018494, -0.07819042354822159, -0.22765490412712097, -0.007676279172301292, 0.15645484626293182, -0.24395997822284698, -0.9232166...
def hydroclass _ semisupervised ( radar, hydro _ names = ('ag ','cr ','lr ','rp ','rn ','vi ','ws ','mh ','ih / hdg'), var _ names = ('dbz ','zdr ','kdp ','rhohv ','h _ iso0'), mass _ centers = none, weights = np. array ( [ 1., 1., 1., 0. 75, 0. 5 ] ), value = 50., lapse _ rate = - 6. 5, refl _ field = none, zdr _ fiel...
[ -0.2995806038379669, 0.12156640738248825, 0.9006588459014893, -0.010824928991496563, -0.09805870801210403, 0.6182030439376831, 0.01804938353598118, 0.1345304250717163, -0.4682249128818512, 0.19075988233089447, -0.3321754038333893, 0.13975614309310913, -0.3242782950401306, 0.578252196311950...
def test _ write _ file ( subtests, etcd _ client, prefix ) : with subtests. test ( " we should be able to write a single value for a non - existent key " ) : assert ( etcd _ client. write _ file ( " { } / write / key _ 1 ". format ( prefix ), " value _ 1 " ) = = " value _ 1 " ) assert etcd _ client. get ( " { } / writ...
[ -0.5721285343170166, 0.14892403781414032, 0.4608912169933319, -0.3713911771774292, 0.9550208449363708, 0.17491421103477478, -0.16335980594158173, 0.6651281714439392, -1.053829312324524, 0.3243677318096161, 0.21121253073215485, -0.22899314761161804, 0.5140557289123535, 0.12952665984630585, ...
def downloader ( ) : user _ id = session [ " uid " ] filetype = request. form [ " type " ] project _ id = request. form [ " pid " ] project _ config _ path = get _ project _ config _ path ( user _ id, project _ id ) project = project ( project _ config _ path ) data _ file _ name, sheet _ name = project. get _ current ...
[ 0.3402186930179596, -0.4475056231021881, 0.7436919808387756, -0.1253460943698883, 0.15297222137451172, -0.3957224190235138, 0.23294493556022644, 0.26858463883399963, -0.753210186958313, 0.08335375785827637, -0.4412694275379181, 0.14520390331745148, 0.3403412401676178, 0.5209532976150513, ...
def create _ temp _ room _ overrides ( self, member = none, role = none ) : perms = { " manage _ messages " : true, " send _ tts _ messages " : true, " manage _ channels " : true } overwrite = discord. permissionoverwrite ( * * perms ) return { member : overwrite }
[ -0.2869051396846771, 0.32471171021461487, 0.5402106046676636, 0.28501343727111816, -0.22333228588104248, -0.6162822842597961, -0.20479516685009003, -0.11990644782781601, -0.1998090296983719, 0.2027604877948761, -0.43380188941955566, -0.3312307596206665, -1.105105996131897, 0.81443446874618...
def allow _ cross _ site _ access ( f ) : def add _ cross _ site _ header ( * args, * * kw ) : httpresponse = f ( * args, * * kw ) httpresponse ['access - control - allow - origin'] ='*'return httpresponse return add _ cross _ site _ header
[ 0.24450145661830902, -0.9579077363014221, 0.7422583699226379, 0.031302668154239655, -1.082529902458191, 0.3499259352684021, 1.1857781410217285, 0.48223158717155457, 0.3187215030193329, 0.27906718850135803, 0.4136009216308594, 0.2846601605415344, 0.6468638777732849, -0.4189201593399048, 0...
def test _ new _ user _ email _ normalized ( self ) : email = " caglar @ gmail. com " password = " testpassword123 " user = get _ user _ model ( ). objects. create _ user ( email = email, password = password ) self. assertequal ( user. email, email. lower ( ) )
[ 1.0253366231918335, -0.011995743028819561, 0.19107310473918915, 0.3719199299812317, -0.04875388368964195, 1.204370141029358, -0.17683535814285278, 0.3309064209461212, -0.09894188493490219, -0.24169346690177917, -0.48928922414779663, -0.2072918862104416, -0.6934717297554016, -0.220731735229...
def interval ( base, count ) : terms = [ ] for num in xrange ( count ) : terms. append ( add ( base, num ) ) return terms
[ 0.24888098239898682, -0.4278450608253479, 0.3424959182739258, 0.6349349617958069, 0.32850417494773865, -0.11023904383182526, -0.9789446592330933, -0.12126926332712173, -0.6314446926116943, 0.6564663052558899, -0.8746015429496765, -0.6223688721656799, -0.7484893202781677, -0.461006462574005...
def avstrings ( self ) : if self. results. has _ key ( " strings " ) : res = self. results [ " strings " ] else : res = self. strings ( ) return dict ( config = { }, data = self. find _ strings ( [ d ['string'] for d in res ['data'] ], av _ names + av _ process _ names ) ['data'] )
[ 0.09929215162992477, -0.5006555914878845, 0.3851545751094818, -0.9991961121559143, -0.7953785061836243, -0.21427369117736816, -0.7636170983314514, -1.1057854890823364, 0.38560542464256287, 0.6354336142539978, 0.5371364951133728, 1.1646872758865356, 0.3856201171875, 0.29638442397117615, -...
def disconnect ( self ) : try : for cid in self. _ connections : self. canvas. mpl _ disconnect ( cid ) except : logging. error ( " error disconnection canvas : % s " % sys. exc _ info ( ) [ 1 ] ) self. _ connections = [ ]
[ -0.5985514521598816, -0.5938131809234619, 0.30027565360069275, -0.5096380114555359, 0.42726191878318787, -0.11914710700511932, 0.4913289546966553, -1.0090465545654297, -0.1405145227909088, -0.14338426291942596, -0.025925885885953903, -0.7573418617248535, -0.7317849397659302, -0.04382164776...
def test _ create _ multiple _ alumno _ curso _ docente ( self ) : self. client. force _ authenticate ( user = self. user _ docente ) alumno _ 1 = alumno. objects. get ( apellido = " 1 " ). pk alumno _ 2 = alumno. objects. get ( apellido = " 2 " ). pk curso = curso. objects. get ( nombre = " curso2 " ). pk anio _ lecti...
[ -0.2246021330356598, 0.23808829486370087, 0.7323153614997864, 0.17326124012470245, 0.3806333839893341, 1.0228122472763062, -0.22809432446956635, -0.49571752548217773, -0.3190291225910187, 0.3121229112148285, -0.9338630437850952, 0.24581092596054077, 1.185226321220398, -0.16419875621795654,...
def insert _ accommodation ( self, acc : accommodation ) - > none : acc _ prop = { * * acc. _ _ dict _ _, * * ( dict ( zip ( ['first ','second ','third ','fourth ','fifth'], acc. queue ) ) ) } with self. conn : self. curs. execute ( " " " insert into accommodations values ( : address, : url, : type, : location, : deadl...
[ -0.7191987633705139, -0.274017333984375, 0.7917655110359192, -0.4099286198616028, -0.1916029453277588, -0.03862403705716133, 1.0714976787567139, -0.143638014793396, -0.2281433790922165, 0.5946934223175049, -0.8872585892677307, -0.22451019287109375, -0.14533670246601105, -0.2624423801898956...
def oscillating ( self ) - > bool | none : return self. _ oscillating
[ 1.036967158317566, 0.7074412703514099, 0.4775141775608063, 0.5675085186958313, 0.39517128467559814, 0.11021795123815536, 0.13329418003559113, -0.4927974343299866, -0.011405437253415585, -0.11037294566631317, 0.3993356227874756, 0.14729955792427063, -0.46210744976997375, -0.0715937688946724...
def optimize ( self ) : self. perf _ loss = tf. reduce _ mean ( [ mask * tf. reduce _ mean ( tf. square ( y _ hat - desired _ output ), axis = 0 ) for ( y _ hat, desired _ output, mask ) in zip ( self. y _ hat, self. target _ data, self. mask ) ] ) # l2 penalty term on hidden state activity to encourage low spike rate ...
[ 0.26607903838157654, -0.0811985656619072, 0.7038401365280151, 0.5458371043205261, 0.1064193844795227, -0.5505399703979492, 0.7912189364433289, -0.2610504925251007, -0.4267532527446747, 0.42221686244010925, 0.24723947048187256, 0.45676058530807495, 0.6414068937301636, 0.1734200268983841, ...
def get _ id ( self ) : return self. _ _ wheel. name ( )
[ 0.6966283321380615, -0.3126772344112396, 0.6212835311889648, 0.15159843862056732, 0.06757765263319016, 0.890135645866394, 0.14823779463768005, -0.07661642879247665, 0.5523519515991211, 0.09184500575065613, -0.4979420304298401, 0.244720458984375, -0.4680974781513214, 0.37481752038002014, ...
def interleave ( inter, f, seq ) : seq = iter ( seq ) try : f ( next ( seq ) ) except stopiteration : pass else : for x in seq : inter ( ) f ( x )
[ 0.568614661693573, 0.22482652962207794, 0.5670791864395142, 0.7350949048995972, -0.025323430076241493, 0.02793276496231556, -0.2590371370315552, 1.3204195499420166, 0.12866701185703278, 0.489549845457077, 0.2475539892911911, -1.0864356756210327, -1.2156418561935425, -0.2773013710975647, ...
def createjointtovertex ( self, center ='', fromcenter = false, step = 1 ) : vtx = cmds. ls ( sl = 1, fl = 1 ) # is selection curve? jnt = [ ] n = 0 newvtxlist = [ ] # loop rebuilds vtx list, encase of high topo for i in range ( 0, len ( vtx ), step ) : newvtxlist. append ( vtx [ i ] ) # get vtx pos, set jnt to pos for...
[ 0.704785168170929, -0.5261045694351196, 0.9074922204017639, 0.6273579001426697, -0.6689392328262329, 0.41564151644706726, 0.43930914998054504, 0.3209645748138428, 0.5194360017776489, -0.19415676593780518, -0.8895905017852783, 0.24308881163597107, 0.1500912606716156, -0.2544547915458679, ...
def acl6totpktsnat64 ( self ) : try : return self. _ acl6totpktsnat64 except exception as e : raise e
[ 0.09118032455444336, -0.24779431521892548, 0.17306868731975555, -0.04893483594059944, -0.2375728040933609, -0.4773697257041931, -0.04620887339115143, -0.8512804508209229, 0.1060669869184494, 0.2533043622970581, -0.4390801787376404, -0.6911426782608032, 1.0322778224945068, -0.88564354181289...
def named _ token ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " named _ token " )
[ 0.604604959487915, -0.693490207195282, 0.34538164734840393, -0.03471427410840988, 0.20729956030845642, 0.48932570219039917, -0.028878208249807358, -0.25272899866104126, 0.5128387212753296, -0.4927588403224945, -0.9003747701644897, 1.0539742708206177, 0.9903655052185059, -1.0168049335479736...
def attach _ ip ( self, ip :'ip') : result = self. manager. api. query ( ). ips ( ip. id ). patch ( { " server " : self. id } ) return result
[ -1.6895519495010376, -0.25026023387908936, 0.5387008786201477, 0.11273808032274246, -0.42160141468048096, 0.5254712700843811, -0.4443126618862152, -0.18876440823078156, 1.2475141286849976, -0.14146815240383148, 0.41035962104797363, 0.3096383810043335, -1.4633103609085083, -0.41880789399147...
def set _ discoverable ( self, discoverable = true ) : self. _ bluetooth. set _ discoverable ( discoverable )
[ 0.543193519115448, 0.3851740062236786, 0.5324171185493469, 1.3703749179840088, 0.25233668088912964, 0.3375614285469055, 0.38584381341934204, -0.5522288084030151, -1.0408798456192017, -0.023124700412154198, -0.7468186616897583, 0.3844878673553467, -0.9604042768478394, 0.8644003868103027, ...
def find _ endpoints ( f, surf, include _ ga, row, guesses, g ) : # + x or right endpoint rend, lend = none, none check _ surf _ l, check _ surf _ r = ( none, none ), ( none, none ) stop = false ri = guesses [ 1 ] ogrverts = verts _ in ( f, ( ri, row [ 0 ], row [ 1 ] ), surf, g ) if ogrverts = = 0 : going _ in = true e...
[ 0.1337982714176178, 0.10453492403030396, 0.8582368493080139, 0.732217013835907, -0.0032734021078795195, 0.10515134781599045, 0.713679313659668, -0.5672607421875, -0.1781311184167862, 0.7448362112045288, 0.19273611903190613, -0.1560657024383545, -0.5664178133010864, 0.2215431034564972, -0...
def test _ serve _ branches ( self ) : pass
[ 0.5700830817222595, 0.8197031617164612, 0.4459996223449707, 0.7725009918212891, 0.5416234731674194, 1.0485037565231323, 1.2968560457229614, -0.38185712695121765, -0.3736356794834137, -0.9999244809150696, -0.16369372606277466, 0.39253947138786316, -1.5887657403945923, 0.18446940183639526, ...
def displaywhisper ( self, fromid, chatstring, whispertype ) : sender = none sfx = self. soundwhisper # a message from clarabelle about the catalog if fromid = = ttlocalizer. clarabelle : chatstring = ttlocalizer. clarabelle + " : " + chatstring # play the phone ring sound instead of the pssst sfx = self. soundphonerin...
[ 0.32799389958381653, -0.34902915358543396, 0.6680966019630432, -0.35736390948295593, -0.6163946390151978, 0.1446588635444641, 0.4271118938922882, -0.49669280648231506, 0.2872953712940216, -0.05085333064198494, 0.14976465702056885, 0.967778742313385, -0.17931100726127625, 0.6115438342094421...
def createspatialindex ( thecollection, geoindex = geosphere ) : print ( " creating geospatial index : geosphere is default " ) thecollection. create _ index ( [ ('geom ', geoindex ) ] )
[ 0.5510069727897644, 0.20004037022590637, 0.023893797770142555, 0.15129710733890533, 0.3714950382709503, 1.2853643894195557, -0.6634496450424194, 0.21944166719913483, 0.1542189121246338, 0.11996463686227798, -0.42219093441963196, 0.4182226061820984, -0.3458363711833954, -0.24167893826961517...
def health _ bar ( self, display, height ) : # dark red bar underneath to make the health drop visible pg. draw. line ( display, ( 156, 12, 12 ), flipy ( ( self. body. position - ( 80, 45 ) ), height ), flipy ( ( self. body. position [ 0 ] + 75, self. body. position [ 1 ] - 45 ), height ), 10 ) # actual health bar ( re...
[ -0.34531858563423157, -0.2831859290599823, 1.2322556972503662, -0.6976423859596252, 0.036919448524713516, 1.4983466863632202, -0.34362468123435974, -0.5204178690910339, -0.0574638806283474, -0.04426291957497597, 0.05305343493819237, 0.5214918851852417, -0.08082188665866852, 0.1864466816186...
def seed _ to _ state _ itr ( state _ length, seed ) : state = [ ] seedi = seed for i in range ( state _ length ) : # print ( seedi ) state. append ( seedi ) seedi = seeding. hash _ seed ( seedi ) return np. array ( state, dtype = np. uint32 )
[ -0.09765834361314774, -0.033060312271118164, 0.40964463353157043, -0.6305313110351562, 0.009614263661205769, 0.2149951159954071, -0.12500175833702087, 0.06707318872213364, 0.40239518880844116, 0.4168306887149811, -0.10817456990480423, 0.03726992383599281, 0.27530068159103394, -0.0250114239...
def load _ ckpt ( output _ folder, network _ name = none, model = " unet ", filename = " checkpoints. hdf5 ", verbose = true, epoch = " best " ) : if verbose : print ( " [ - - - - ] loading network state " ) with h5py. file ( os. path. join ( output _ folder, filename ), " r " ) as file : if model in file : model _ gro...
[ 0.012557517737150192, -0.019874703139066696, 0.5315232276916504, 0.22875425219535828, -1.2389452457427979, -0.05903325229883194, 0.004366773180663586, 0.4374186098575592, -1.454594373703003, 0.7013925909996033, -0.3509933054447174, -1.2670235633850098, -0.334776908159256, -0.17347534000873...
def test _ update _ admin _ only ( self ) : skill = skill. objects. create ( date = [ 2, 2022 ], name = { " en " : " test skill ", " fr " : " skill de test " }, description = { " en " : [ " test desc " ], " fr " : [ " desc test " ] } ) payload = { " date " : [ 3, 2022 ] } detail _ url = reverse ('rest : skill - detail ...
[ 0.49289917945861816, 0.785469114780426, 0.6260398030281067, -0.2030862420797348, 0.005660202819854021, 1.395078182220459, 0.09270808845758438, -0.9871222376823425, 0.12690553069114685, 0.2537269592285156, -0.5320340394973755, 1.3213014602661133, 0.24087414145469666, 0.12590597569942474, ...
def test _ length _ list _ empty ( self ) : arr = array ( 10 ) res = length ( arr ) self. assertequal ( res, 0 )
[ -0.09952022135257721, -0.39789459109306335, 0.10191592574119568, -0.3289339244365692, 1.5238986015319824, 1.6040937900543213, 0.15548467636108398, 1.5809191465377808, 1.4070932865142822, 0.06655129045248032, -1.4571897983551025, -0.6897323131561279, -0.3239733874797821, 1.2239165306091309,...
def _ mgui _ get _ min _ height ( self ) - > int : return self. _ qwidget. minimumheight ( )
[ 0.5391703248023987, -0.290127694606781, 0.31614306569099426, 0.21939435601234436, -0.863456666469574, 0.357462078332901, -0.07612981647253036, -0.8317393064498901, -0.2997627258300781, -0.6067071557044983, -0.01757957600057125, -0.5309396982192993, -1.2242075204849243, 0.22176161408424377,...
def get _ free _ pvs _ info ( self ) : pvs = self. get _ physical _ devices ( ) free _ pvs = [ ] for pv in pvs : if pv. kids = = 0 : free _ pvs. append ( ( pv. name, " lvmpv ", int ( pv. size ) ) ) return free _ pvs
[ -1.2044941186904907, -0.8977715373039246, 0.5352133512496948, 0.12643735110759735, -0.962683379650116, 0.24116168916225433, -0.9896389245986938, -0.9001575112342834, -0.25612685084342957, 0.37954267859458923, -0.7574916481971741, -0.6685103178024292, -0.2639695107936859, 1.1167364120483398...
def _ _ init _ _ ( self, socket _ path = none ) : self. socket _ path = socket _ path or _ local _ socket _ path
[ 0.578688383102417, 0.128431499004364, 0.3414764404296875, 0.39772987365722656, -0.2511293292045593, -0.298007607460022, 0.695144534111023, 1.049254059791565, 0.6680632829666138, -0.44149547815322876, 0.026882460340857506, 0.8822274208068848, -0.35176146030426025, 0.5415361523628235, -0.3...
def from _ dict ( cls, data ) : id = data [ " relation _ id " ] type = data [ " relation _ type _ name " ] ordered = data [ " relation _ type _ ordered " ] category = data [ " category " ] unit = data. get ( " unit ", none ) partitions = [ ] for partitinon _ data in data [ " partitions " ] : partition = relationpartiti...
[ 0.5842432975769043, -0.23869186639785767, 0.5576388835906982, -1.4964126348495483, -0.1574031263589859, 0.3021213114261627, -0.9751043319702148, 0.28687137365341187, 0.28964993357658386, -0.1303790956735611, 0.6300737857818604, -0.38215821981430054, -0.012073006480932236, -0.85670381784439...
def target _ team _ member _ id ( self ) : return self. _ target _ team _ member _ id
[ 0.3322523236274719, -1.0084425210952759, 0.1873885691165924, -0.2717617154121399, 0.8029395341873169, 1.1174604892730713, -0.00978729035705328, -0.14745107293128967, -0.07515444606542587, -0.1968895047903061, 0.3296269178390503, 0.9849607944488525, -0.017256133258342743, -1.007786512374878...
def is _ enabled ( self ) : button = self. browser. element ( self. button _ locator, parent = self ) return " disabled " not in self. browser. classes ( button )
[ 0.04831621050834656, -0.6966777443885803, 0.4831114709377289, 1.2245649099349976, 0.1087242066860199, 0.9640851616859436, -0.37345701456069946, 0.9629833698272705, 1.303615927696228, -0.14115583896636963, -0.8609415888786316, -0.5834938883781433, -0.6812652349472046, 0.37531763315200806, ...
def seed _ directory ( ) : seeds = produce. query. filter _ by ( prod _ type = 4 ). all ( ) return render _ template ('/ seeds. html ', seeds = seeds )
[ -0.03907335177063942, 0.8757615685462952, 0.3613439202308655, 0.2138308435678482, -0.2147526890039444, -0.324809730052948, 0.9808279275894165, 0.21834468841552734, 0.01866365224123001, -0.33367088437080383, 0.6565160751342773, 0.07786386460065842, 0.6679620146751404, 0.11140350997447968, ...
def indicator ( prediction, label ) : return 1 if prediction! = label else 0
[ -1.1196012496948242, -0.713668942451477, 0.18668746948242188, 0.8031425476074219, -0.8525944948196411, 1.6111127138137817, -0.30563855171203613, 0.5401145815849304, -0.3609037697315216, 0.8257336020469666, 0.17284323275089264, -0.23618927597999573, -0.06633547693490982, -0.4582777917385101...
def set _ notification _ pool ( self, thread _ pool ) : self. _ _ notification _ pool = thread _ pool
[ 0.04229879379272461, -0.20240849256515503, 0.30638447403907776, 0.17428997159004211, 0.5500390529632568, 0.8041797876358032, 0.6892707347869873, -0.39901649951934814, -0.2180193066596985, 0.08098386973142624, -0.998849630355835, 1.4065275192260742, -0.33413341641426086, 0.40437066555023193...
def token ( self, token ) : self. _ token = token
[ -0.5627009272575378, 0.0026648896746337414, -0.2109275609254837, -0.49108368158340454, 0.33219608664512634, 0.3662576377391815, 0.43950602412223816, 1.2091702222824097, -0.6667252779006958, -1.6383217573165894, -1.91614830493927, 0.3200395703315735, 0.9927524924278259, 0.26201388239860535,...
def processevent ( self, caller = none, event = none ) : pass
[ -0.18143153190612793, -0.05488857626914978, 0.6298922300338745, 0.9196392297744751, 1.0411622524261475, 0.6381538510322571, -0.33605948090553284, 0.48209813237190247, 0.8828278183937073, -0.8253822922706604, -0.888897716999054, 0.5318040251731873, -0.19348517060279846, 0.6315324902534485, ...
def test _ l2 _ metric _ inner _ product _ vectorization ( self ) : n _ samples = self. n _ discretized _ curves curves _ ab = self. l2 _ metric _ s2. geodesic ( self. curve _ a, self. curve _ b ) curves _ bc = self. l2 _ metric _ s2. geodesic ( self. curve _ b, self. curve _ c ) curves _ ab = curves _ ab ( self. times...
[ 0.610807478427887, 0.12787771224975586, 0.6192960739135742, -0.44075870513916016, 0.4093468487262726, 0.6116716265678406, -0.13494157791137695, -0.9232043027877808, -0.6111498475074768, -0.3348247706890106, -0.07713817059993744, 0.04749039188027382, -0.15238243341445923, -0.817822813987731...
def getrandomaddress ( self, *, notlandlord : bool = true ) - > addresstype : def rrange ( stop ) : from random import randrange return randrange ( 0, stop ) addr = 0 # init if notlandlord : addr = rrange ( 2 * * ( self. domain _ log ) - self. tree _ size ) if ( addr > = self. landlord _ base _ ptr ) : addr + = self. t...
[ -0.5752206444740295, 0.12489572912454605, 0.5693360567092896, 0.058136023581027985, -0.1395706832408905, 0.2641891539096832, 0.6345753073692322, -0.06130744144320488, 0.7092533111572266, -0.6680305004119873, 0.654701292514801, 1.3314450979232788, -0.6169411540031433, 0.38432613015174866, ...
def sample ( self, seqs, n _ seqs = 1, show _ score = false, enhance = none, n _ differences = none ) : if enhance is not none : self. enhance = enhance if n _ differences is not none : self. n _ differences = n _ differences for seq in seqs : if show _ score : preds = predict ( iterable = [ seq ], estimator = self. es...
[ -0.3666822910308838, 0.04164423793554306, 0.858941912651062, 0.780432403087616, -0.7311752438545227, 0.0733623281121254, -0.0996413305401802, -0.18325597047805786, 0.5949945449829102, 0.9466551542282104, -0.03433673456311226, 0.4858812093734741, 0.21613624691963196, 0.9439520835876465, -...
def created _ at ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " created _ at " )
[ 1.0285718441009521, -0.36826634407043457, 0.30747056007385254, 0.002447624458000064, 0.858619213104248, 1.0307401418685913, -0.2314005196094513, -0.4972688555717468, -0.6620060205459595, -0.7632302641868591, 0.11686128377914429, 0.6037750244140625, 1.4308749437332153, -1.1419520378112793, ...
def read _ person _ file ( ) : person _ file = '. / 880 _ person _ sample / paper. csv'columns = list ( dep _ vars. keys ( ) ) + ['scopus _ id ','first _ pub _ year ','num _ auth'] df = pd. read _ csv ( person _ file, usecols = columns, encoding = " utf8 " ) df. columns = [ c. replace ( " avg _ ", " num _ " ) for c in ...
[ -0.3130590617656708, -0.05096331238746643, 0.4484744966030121, -0.13794729113578796, -0.2622019052505493, 0.5935673713684082, 0.09064546227455139, 0.626591145992279, -0.509789764881134, 0.09837623685598373, 0.5720193982124329, 0.4010014533996582, 0.23305439949035645, -0.6773710250854492, ...
def remain _ days ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " remain _ days " )
[ 0.5815144181251526, 0.28244656324386597, 0.6251102089881897, -0.5231063365936279, 0.8343716263771057, 1.5926560163497925, -0.026366978883743286, -0.41645318269729614, 1.176835298538208, -0.559289276599884, -0.20305553078651428, 0.45911893248558044, -0.345975786447525, -0.6790855526924133, ...
def commit ( self ) : pixels = self. img. load ( ) width, height = self. img. size bitmap = [ ] for x in range ( width ) : col _ byte = 0x00 for y in range ( height ) : if pixels [ x, y ] > 127 : col _ byte + = 1 < < ( 8 - y % 8 - 1 ) if ( y + 1 ) % 8 = = 0 : bitmap. append ( col _ byte ) col _ byte = 0x00 self. init _...
[ -0.4849759638309479, 0.7510346174240112, 0.6622894406318665, -0.6102282404899597, -0.012051350437104702, -0.7639175653457642, 0.0331505686044693, -0.721305251121521, 0.19789738953113556, 0.9176297783851624, -0.3239707946777344, 0.3137805759906769, -1.0199412107467651, 0.8217393755912781, ...
def next _ node ( self ) : return ( self. _ _ next _ node )
[ -0.8014444708824158, 0.17229799926280975, 0.3089078366756439, -0.11116618663072586, -0.21667960286140442, 0.3749382793903351, -0.05137315392494202, -0.1406964510679245, 0.34344741702079773, -0.2538595199584961, 0.06648338586091995, 1.1923229694366455, -0.7389241456985474, -0.62919819355010...
def scrape _ bio ( row _ data, bio _ headers ) : # get html for the bio page bio _ url = row _ data [ 2 ] html = beautifulsoup ( requests. get ( bio _ url ). text, " html. parser " ) # if there's a picture elemenet it's a player's bio. get their image and bio details try : img _ url = html. findall ( " picture " ) [ 0 ...
[ 0.0639050155878067, -0.17039330303668976, 0.7658537030220032, 0.5786124467849731, 0.440459281206131, -0.7980098128318787, -0.6735128164291382, -0.20768335461616516, 0.13940227031707764, 0.420477956533432, 0.5830495953559875, -0.2257993519306183, 0.4026629328727722, 0.23788535594940186, 1...
def sc _ weights ( self ) : return self. get _ weights ( )
[ 0.31971704959869385, 0.049460649490356445, 0.3354169726371765, 0.6590602993965149, 0.39425128698349, -0.6884201765060425, -0.1935449242591858, -0.33436572551727295, -0.4329669177532196, 0.03085373342037201, -0.9350587129592896, 0.9265416860580444, -0.29862678050994873, -0.00204075872898101...
def _ installvbox ( self ) : reporter. teststart ('installing virtualbox') ; reporter. log ('cwd = % s'% ( os. getcwd ( ), ) ) ; # curious # # download the build files. # for i in range ( len ( self. _ asbuildurls ) ) : if webutils. downloadfile ( self. _ asbuildurls [ i ], self. _ asbuildfiles [ i ], self. sbuildpath,...
[ 0.41936591267585754, -0.24361713230609894, 0.7938759922981262, 0.6541267037391663, 0.20727428793907166, -0.21002478897571564, 0.06298554688692093, -0.13212551176548004, 0.8166623711585999, -0.2025056779384613, 0.01622561551630497, -0.04977387189865112, -0.48446109890937805, 0.2304924428462...
def update _ root _ name ( self ) - > none : new _ root _ title = " image editor - - - current image : " + \ os. path. split ( str ( self. image _ file _ name ) ) [ 1 ] self. master. title ( new _ root _ title )
[ -0.2524203062057495, -1.4688572883605957, 0.4664733111858368, 0.14913326501846313, -1.028236985206604, 0.09176905453205109, 0.20649388432502747, -0.04978756979107857, -0.20624029636383057, 0.6912672519683838, 0.23028509318828583, 1.340419054031372, 0.2679178714752197, 0.8347549438476562, ...
def test _ get _ board _ from _ path ( self ) : board = conway. get _ board _ from _ file ('test _ board _ 2x2. txt') mock _ board = [ [ 0, 0 ], [ 1, 0 ] ] self. assertequal ( board, mock _ board )
[ 0.06406114250421524, -0.46961915493011475, 0.5169133543968201, 0.7814487218856812, 1.211531400680542, 0.41960471868515015, 0.7529807090759277, 0.6032291650772095, -0.6050717830657959, -0.25204235315322876, -0.898838996887207, 0.23867759108543396, -0.20896808803081512, -0.4226084351539612, ...
def fit ( self, dataframe : pd. dataframe ) - > " pandasindicatornormalizer " : self. _ labels = set ( ) for indicators in dataframe [ " indicators " ] : for indicator in indicators : self. _ labels. add ( indicator. lower ( ) ) self. _ encoder. fit ( list ( self. _ labels ) ) return self
[ -0.9101645350456238, -0.06934493035078049, 0.1108192428946495, -0.2605240046977997, -0.32862943410873413, 0.3325856328010559, -0.003875653026625514, 0.38149482011795044, 0.17797374725341797, -0.3181416094303131, -0.047976989299058914, 0.0025192557368427515, -0.8967345356941223, 0.086234696...
def properties ( self, properties ) : self. _ properties = properties
[ -0.44109994173049927, -0.4148649275302887, -0.3938153386116028, -0.4071873128414154, 0.2019217312335968, 0.5379489660263062, -0.16259804368019104, 0.6579715013504028, -0.27893340587615967, -0.7809517979621887, -0.40314769744873047, -0.7007730603218079, -0.28640836477279663, 0.3955931067466...
def parse _ ip _ address ( ip _ address ) : return tuple ( map ( int, ip _ address. split ( ". " ) ) )
[ -1.3088626861572266, 0.25919651985168457, 0.4845927357673645, -0.17762140929698944, 0.20928211510181427, -1.1240465641021729, -0.08377395570278168, 0.9438619613647461, 0.2899007499217987, 1.156697154045105, -0.5706297159194946, -0.822642982006073, -0.1253654509782791, -1.490963339805603, ...
def _ _ init _ _ ( self, domain _ log : int, alpha _ ll _ max _ size _ in _ bytes : int, cache _ line _ size _ log : int, landlord _ size _ log : int = 2, signature _ size _ in _ bits : typing. optional [ int ] = none, landlord _ base _ ptr : addresstype = 0, kernel _ base _ addr : typing. optional [ int ] = none ) : i...
[ 0.26975610852241516, -0.23258589208126068, 0.7875041365623474, 0.40675151348114014, -0.23312190175056458, 0.08576889336109161, -0.18361930549144745, -0.07258967310190201, -0.2412804365158081, -0.4511338174343109, -0.14626288414001465, 0.7011192440986633, -0.06289353221654892, 0.82815301418...
def spot _ to _ cot ( message : spot _ sdk. message ) - > pycot. event : time = datetime. datetime. now ( ) lat = message. _ _ getattribute _ _ ('latitude') lon = message. _ _ getattribute _ _ ('longitude') if lat is none or lon is none : return none print ( message. raw ) name = message. raw. get ('messengername') poi...
[ -0.016398394480347633, -1.0634818077087402, 0.603099524974823, -1.0606482028961182, -0.047530241310596466, 0.06793996691703796, 0.17398981750011444, -0.3238556981086731, 0.07137379050254822, 0.5367354154586792, -0.21896356344223022, 0.011247260496020317, 0.37332847714424133, 0.185428798198...
def testupdatevaluesforquerieswithsetvalue ( self ) : securetagapi ( self. user ). create ( [ ( u'username / bar ', u'description') ] ) objectid = uuid4 ( ) # fixme replace this with securetagvalueapi once the index is # integrated values = { objectid : { u'username / bar': 42 } } valuesapi = securetagvalueapi ( self. ...
[ -0.41586634516716003, -0.09671647101640701, 0.294058233499527, -0.311015248298645, 0.17277133464813232, 0.3633266091346741, -0.3405533730983734, -0.5611282587051392, -0.10798890888690948, -0.2600603401660919, -0.44274064898490906, -0.13843967020511627, 0.1867074817419052, -0.32179930806159...