text
stringlengths
25
2.19k
embedding
listlengths
768
768
def return _ as _ dictionary ( self ) : output _ dict = { } output _ dict ['product _ code'] = self. product _ code output _ dict ['description'] = self. description output _ dict ['market _ price'] = self. market _ price output _ dict ['rental _ price'] = self. rental _ price return output _ dict
[ -0.7850174903869629, -0.8922224640846252, 0.4869457483291626, -0.598688542842865, -0.8068028092384338, -0.38741764426231384, -0.150298073887825, -0.6259896159172058, -0.955008327960968, 0.2298946976661682, -0.16869695484638214, 0.2954164445400238, -0.0817779079079628, 0.4490950405597687, ...
def _ _ init _ _ ( self, major = none, minor = none, revision = none ) : self. frame _ type = - 1 self. major = major or spec. protocol _ version [ 0 ] self. minor = minor or spec. protocol _ version [ 1 ] self. revision = revision or spec. protocol _ version [ 2 ]
[ -0.30379316210746765, -0.1006121039390564, 0.5369910001754761, 0.23435088992118835, 0.14156919717788696, -0.28497472405433655, 0.09537681937217712, 0.10828326642513275, 0.15592335164546967, -0.30581143498420715, -0.5370874404907227, 0.12250558286905289, -1.3575788736343384, 0.3969227075576...
def _ create _ local _ explanation ( expected _ values = none, classification = true, explanation _ id = none, init _ data = none, eval _ data = none, eval _ ys _ predicted = none, eval _ ys _ predicted _ proba = none, model _ id = none, * * kwargs ) : exp _ id = explanation _ id or str ( uuid. uuid4 ( ) ) mixins = [ l...
[ 0.12464246898889542, -0.4392673373222351, 0.8016533851623535, 0.107065349817276, -0.039123356342315674, -0.5018283724784851, 0.41924020648002625, 1.2747867107391357, -0.03504841402173042, -0.27394452691078186, -0.34547072649002075, 0.6230580806732178, 0.001594016095623374, 0.95723199844360...
def set _ xlabel ( self, xlabel = none ) : if xlabel is none : if self. vs _ frequency : self. xlabel = r'$ \ nu $'+'[ { } ] '. format ( self. frequency _ units ) else : self. xlabel = r'$ \ lambda $'+'[ { } ] '. format ( self. wavelength _ units ) else : self. xlabel = xlabel return
[ 0.0772213488817215, 0.07534569501876831, 0.723562479019165, -0.3434034585952759, 0.4401037096977234, 1.1713038682937622, -0.8976582288742065, -0.24475882947444916, 0.4011421203613281, -0.05817308649420738, 0.19964730739593506, 0.7544112801551819, -0.5647107362747192, 0.0706741213798523, ...
def instance ( cls ) : return cls. instance
[ 0.3218846619129181, -0.8186275362968445, 0.23354089260101318, -0.9691851735115051, 0.059725869446992874, 1.0394912958145142, 1.1890932321548462, 0.41588377952575684, 0.6584808230400085, -0.890993595123291, 0.25184106826782227, 0.7204983830451965, -0.7589465975761414, -0.6325258612632751, ...
def vpnvserver _ authenticationdfapolicy _ bindings ( self ) : try : return self. _ vpnvserver _ authenticationdfapolicy _ binding except exception as e : raise e
[ -1.5444214344024658, 0.22860832512378693, 0.3020862936973572, 0.9328057765960693, -0.17192980647087097, 1.179326057434082, 0.12735947966575623, -0.5080181360244751, 1.493996500968933, -0.11149093508720398, -0.4115525186061859, 0.45590120553970337, -0.7830556035041809, -0.12314720451831818,...
def score _ word ( ) : word = request. get _ json ( ) ['word']. upper ( ) board = boards [ session [ sess _ board _ uuid _ key ] ] is _ word = word _ list. check _ word ( word ) is _ in _ board = board. check _ word _ on _ board ( word ) if not is _ word : return jsonify ( {'result': " not - word " } ) elif not is _ in...
[ -0.2870330214500427, 0.2958367168903351, 0.6916053891181946, 0.67367023229599, -0.3192124664783478, 0.08388745784759521, -0.22156113386154175, -0.16252736747264862, 0.06547480076551437, 1.822524070739746, 0.029907481744885445, 0.1280423402786255, -1.2480300664901733, 0.8407725691795349, ...
def passed ( self ) : if self. timeout is none : return false elif self. timeout = = 0 : return true else : t = time. time ( ) return self. end < = t
[ -0.2491057962179184, 0.014747684821486473, 0.8678846955299377, 0.7431051135063171, -0.25232619047164917, 0.9252297878265381, -0.44817396998405457, 0.28692883253097534, -0.7615871429443359, 0.9820179343223572, 0.3017919361591339, -0.32060694694519043, -0.9389672875404358, -0.026431668549776...
def objective ( x ) : return np. transpose ( x ). dot ( h. dot ( x ) )
[ -0.22504346072673798, 0.18481509387493134, 0.5424483418464661, 0.2649818956851959, -0.6217918992042542, 0.03834589943289757, 0.004030885640531778, -0.23010750114917755, 0.01740168035030365, 0.8664529323577881, -0.08671214431524277, -0.49561288952827454, 0.8496010303497314, -1.1830793619155...
def security _ class ( self, security _ class ) : self. _ security _ class = security _ class
[ -0.0035519113298505545, -0.3122614026069641, -0.12346220016479492, 0.8859568238258362, 0.38974249362945557, 1.3434958457946777, 0.10196466743946075, 0.49109047651290894, -0.2722686529159546, -0.9738026261329651, -1.2383488416671753, -0.7037761807441711, -0.1560543179512024, 0.2601257562637...
def write ( self, expr ) : self. outputbuffer. append ( str ( expr ) )
[ -0.857865571975708, -0.3835262358188629, 0.3607866168022156, -0.45797765254974365, -0.40940961241722107, 0.1290774643421173, -0.19700069725513458, -0.0117905642837286, 0.24424414336681366, -0.2983337342739105, -0.5044165849685669, 0.6025213003158569, -0.917649507522583, 0.34205177426338196...
def testnregisterinvalidpassword ( self ) : pass
[ 0.4557833969593048, 0.6875684261322021, 0.22519861161708832, 1.6905169486999512, 1.1820892095565796, 0.42350050806999207, 0.6687906980514526, 0.4606512188911438, 0.5502172708511353, -0.5409680008888245, -1.8475786447525024, 0.2954334616661072, -0.6596826910972595, 1.3512861728668213, 0.3...
def select _ at _ idx ( self, idx : int ) - > series : return wrap _ s ( self. _ df. select _ at _ idx ( idx ) )
[ -1.5436428785324097, 0.48468416929244995, 0.15530391037464142, -0.3576541244983673, 0.009673054330050945, -1.0325192213058472, -0.5508859157562256, -2.197484016418457, 0.9341986775398254, -0.6923304200172424, 0.5729849338531494, 1.2633428573608398, 0.4111098647117615, -1.9221150875091553, ...
def twitter _ geo _ callback ( self, response ) : places = response. get ('result ', { } ). get ('places ', [ ] ) if not places : return self. send _ error ( 400, message = " not a recognized place. " ) # assuming first place place = places [ 0 ] self. place = place place _ id = place ['id'] args = urllib. urlencode ( ...
[ 0.3256653845310211, 0.0832129567861557, 0.3735741078853607, -0.5881710052490234, 0.5147417187690735, -0.1383408010005951, -0.25417810678482056, 0.06334565579891205, 0.4660229980945587, 0.5887380838394165, -0.6498327255249023, 0.05138587951660156, 0.14836359024047852, 0.7392386794090271, ...
def get _ high _ scores ( self, request ) : if request. number _ of _ results : scores = score. query ( score. won = = true ). order ( score. attempts _ allowed, score. guesses ). fetch ( request. number _ of _ results ) else : scores = score. query ( score. won = = true ). order ( score. attempts _ allowed, score. gue...
[ -0.6532822847366333, 0.9390777349472046, 0.45571333169937134, 0.5767224431037903, 0.5766431093215942, -0.6048930287361145, -0.09340137988328934, -0.7099817991256714, 0.42231613397598267, -0.2885400950908661, -0.24047715961933136, -0.6141077280044556, 0.0044664922170341015, 0.00154351338278...
def plugin _ on _ song _ ended ( self, song, skipped ) : print _ d ( " [ auto refresh ] refreshing.. " ) gobject. timeout _ add ( 1500, app. window. browser. activate )
[ 0.43563053011894226, -0.5650323033332825, 0.42061087489128113, 0.608727216720581, 0.41613444685935974, 0.2295183688402176, 0.3191789984703064, -0.16371624171733856, 0.586967945098877, 0.9781409502029419, -0.8878700137138367, 1.0014020204544067, -0.7888084053993225, -0.24851298332214355, ...
def handle _ stop ( ) : farewell _ text = render _ template ('stop _ bye') return statement ( farewell _ text )
[ -0.3463920056819916, 0.2542974650859833, 0.23987309634685516, -0.3750893771648407, -0.1168760433793068, -0.28844308853149414, -0.5091862678527832, 0.27342456579208374, -1.0482237339019775, 0.5212791562080383, 0.7033928632736206, -0.629292905330658, -0.0651525929570198, -0.4480527341365814,...
def test _ large _ compile ( ) : num _ columns = 20 num _ joins = 7 class mockbigqueryclient ( bq. bigqueryclient ) : def _ _ init _ _ ( self ) : pass names = [ f " col _ { i } " for i in range ( num _ columns ) ] schema = ibis. schema ( names, ['string'] * num _ columns ) ibis _ client = mockbigqueryclient ( ) table =...
[ 0.47835773229599, 0.9323146343231201, 0.7517250776290894, 0.10992530733346939, 0.8542118072509766, 0.17697307467460632, 0.4449758231639862, 0.31091830134391785, -0.4756324291229248, -0.03708155080676079, -0.9433562159538269, 0.13713668286800385, -0.66741943359375, 0.5265941619873047, -0....
def key _ pair _ count _ by _ user ( context, user _ id ) : return impl. key _ pair _ count _ by _ user ( context, user _ id )
[ -0.5284362435340881, 0.5097516179084778, 0.4024790823459625, 0.5997921824455261, -1.5251846313476562, -0.12951818108558655, 0.7866438031196594, -0.001662484952248633, -0.21180753409862518, -0.11402295529842377, -0.5292142629623413, 0.12342046201229095, 0.058520738035440445, 0.5362537503242...
async def test _ form _ validate _ input ( hass : homeassistant ) - > none : result = await hass. config _ entries. flow. async _ init ( domain, context = { " source " : config _ entries. source _ user } ) with requests _ mock. mocker ( ) as mock _ request : mock _ request. get ( " https : / / user - api. wall - box. c...
[ -0.33868882060050964, 0.23237280547618866, 0.4990558624267578, 0.35027846693992615, 0.4773831069469452, 0.5252158641815186, -0.30807414650917053, -0.1782011240720749, -0.0590793639421463, -0.979515790939331, -0.2558542490005493, -0.047649919986724854, 0.10598787665367126, 0.569436967372894...
def fetch _ and _ save ( url, target _ path = none ) : if target _ path is none : target _ path = page _ path ( url ) def _ existed _ size ( path ) : e = path ( path ) if e. is _ file ( ) : return e. stat ( ). st _ size else : return false def _ save _ file ( content, target _ path ) : target _ path. parent. mkdir ( ex...
[ -0.11014093458652496, -0.3282477557659149, 0.7723721861839294, -0.12138056010007858, -0.022340746596455574, -0.2868683934211731, 0.3993375599384308, 0.08387915045022964, 0.5554637312889099, 0.02594841457903385, 0.23564466834068298, -0.4804224669933319, -0.01718798838555813, -0.004516180139...
def get _ scales ( parameter _ df : pd. dataframe ) - > tuple [ dict, dict ] : # fill in objective prior columns parameter _ df = petab. normalize _ parameter _ df ( parameter _ df ) prior _ scales = { } scaled _ scales = { } for _, row in parameter _ df. reset _ index ( ). iterrows ( ) : if row [ c. estimate ] = = 0 :...
[ -0.3363759219646454, -0.0844254270195961, 0.6951465010643005, -0.5296711325645447, 0.21570011973381042, -0.2630939185619354, -0.7104785442352295, -0.6515117287635803, -0.8186999559402466, 1.0093120336532593, 0.13675428926944733, 0.16579873859882355, 0.1303567886352539, 1.206540584564209, ...
def derivs ( self, sigma, s ) : k0x, k0y = self. ext _ foc ( s ) k0xy = 0. # space charge terms s11, s12, s13, s14, s22, s23, s24, s33, s34, s44 = sigma s0 = np. sqrt ( s11 * s33 - s13 * * 2 ) sx, sy = s11 + s0, s33 + s0 d = s0 * ( sx + sy ) psi _ xx, psi _ yy, psi _ xy = sy / d, sx / d, - s13 / d # modified focusing s...
[ 1.227902889251709, -0.5786811709403992, 0.9176217317581177, -0.9391371011734009, -0.6388203501701355, -0.04550063982605934, -0.5901662707328796, 0.2554458975791931, 0.705819308757782, 0.6635273694992065, -0.09125783294439316, 0.288662850856781, -0.6388064026832581, -0.3955482840538025, 1...
def _ index _ from _ number ( number ) : assert ( len ( number ) < = 4 ) assert ( set ( number ) < = set ( map ( str, range ( 6 ) ) ) ) return int ( number, base = 6 )
[ -0.37626805901527405, 0.0912419855594635, 0.2390044629573822, -0.4982450306415558, -0.958426833152771, 0.057590410113334656, 0.4729098677635193, -0.1461610049009323, 0.3865779638290405, -0.43391138315200806, -0.2848251461982727, -0.4218113124370575, 0.28930073976516724, -1.2441576719284058...
def clean _ pixels _ percentages _ as _ list ( self ) : return self. clean _ pixel _ percentages _ per _ acquisition. rstrip ( ','). split ( ',')
[ -0.4044170081615448, -0.8734049201011658, 0.4038013517856598, 0.0007411809638142586, -0.4983293414115906, 0.7193369269371033, -1.3241747617721558, -0.5485911965370178, 0.7538059949874878, 1.464823842048645, 0.5231338143348694, -0.4899411201477051, -0.09197855740785599, 0.38571029901504517,...
def perform _ store ( self, store _ data : st. tsvector ) - > none : self. store _ client. store _ ts ( tsv = st. tsvector ( [ st. timeseries ( ts _ id, ts ) for ts _ id, ts in zip ( self. store _ ts _ ids, store _ data ) ] ), overwrite _ on _ write = false )
[ -1.222677230834961, 0.5246612429618835, 0.22615556418895721, -0.20251038670539856, 0.5425965189933777, 0.14422284066677094, 0.3209272027015686, -0.0165884830057621, 0.2724835276603699, 0.31157737970352173, -0.14191056787967682, 0.885474443435669, 0.23990657925605774, -0.38129931688308716, ...
def prerun ( ) : if not os. path. exists ( _ pathtmp ) : os. makedirs ( _ pathtmp ) if not os. path. exists ( _ pathregional ) : os. makedirs ( _ pathregional ) else : print " clear { } ". format ( _ pathregional ) print " | - - > list of files : { } ". format ( os. listdir ( _ pathregional ) ) for f in os. listdir ( _...
[ -0.05975917726755142, 0.31323158740997314, 0.7647362351417542, -0.06515008211135864, 0.02137298882007599, 0.37691012024879456, 1.736596703529358, -0.03698429837822914, 0.37762579321861267, 0.23523153364658356, -0.19081127643585205, -0.3541175425052643, 0.16252827644348145, 0.84181243181228...
def get _ w ( * args, * * kwargs ) : raise notimplementederror
[ -0.6983410716056824, 0.11966756731271744, 0.6957711577415466, 0.7969119548797607, 0.79719477891922, -0.5559285283088684, 0.16577821969985962, -1.0919040441513062, -0.7639697194099426, -0.1199103593826294, 0.043176427483558655, 1.0561319589614868, 0.8485929369926453, 0.42224541306495667, ...
def handle ( self ) : self. ip = self. client _ address [ 0 ] self. port = self. client _ address [ 1 ] self. connection = self. request # student code : username ='' ; # loop that listens for messages from the client while true : received _ string = self. connection. recv ( 4096 ) deliverypayload = {'timestamp':'','se...
[ -0.3680840730667114, -0.9239327311515808, 1.012978196144104, -0.29363229870796204, -0.8534534573554993, 0.18610619008541107, 0.06857556849718094, -0.46711599826812744, -0.5932777523994446, -0.27993470430374146, -0.4154663681983948, -0.4129696786403656, 0.18786513805389404, 0.10652093589305...
def test _ pool _ create _ same _ name _ different _ devices ( self ) : pool _ name = p _ n ( ) make _ test _ pool ( pool _ name, stratiscertify. disks [ 0 : 1 ] ) self. _ unittest _ command ( stratisdbus. pool _ create ( pool _ name, stratiscertify. disks [ 1 : 3 ], none ), dbus. uint16 ( 1 ), )
[ -0.07068432122468948, 1.219795823097229, 0.4500505030155182, 0.5550397038459778, 1.2184388637542725, 1.326246976852417, 1.1971238851547241, -1.0775991678237915, 0.4017498791217804, 0.05408453568816185, -0.4365669786930084, 0.2229011207818985, 0.03520999848842621, 0.2139274924993515, 0.67...
def model _ context ( sample : sample ) - > frozen _ context : return frozen _ context ( { * * sample,'_ _ arch _ _': true } )
[ 0.22487476468086243, 0.48826470971107483, 0.17937807738780975, 0.5073434114456177, -0.6037110686302185, -0.14146572351455688, 0.7956738471984863, -0.9446345567703247, 0.42950543761253357, 0.5047835111618042, -1.0992395877838135, 0.3170071244239807, 0.2991255521774292, -0.3712696433067322, ...
def test _ multilevel _ get ( config ) : assert config. get ( " test / values " ) = = [ " foo ", " bar ", " baz " ]
[ -0.37609201669692993, 0.6801488399505615, 0.485639363527298, 0.4325621426105499, 0.784856915473938, 0.5320241451263428, -0.8676779270172119, 0.11363377422094345, -0.7325966358184814, -0.6405065655708313, -0.6258367300033569, 0.1424269676208496, -0.3376100957393646, 0.7648208737373352, -0...
def extract _ email _ features ( email ) : features = { } # extract both the body and the metadata # assumption : metadata and body are separated by a blank line try : metadata, body = re. split ( r " \ n \ s * \ n ", email, 1 ) except valueerror : logging. warning ( " could not split email : % s ", email ) return fals...
[ -0.11294231563806534, 0.15273453295230865, 0.6584066152572632, -0.7579445242881775, -0.7194502949714661, -0.8494401574134827, 0.12016070634126663, 0.6318462491035461, -0.8096495866775513, 0.34395936131477356, -1.1640212535858154, 0.6147058010101318, -0.45756274461746216, -0.005489233881235...
def is _ proper _ position ( dimension, position ) : if not isinstance ( position, tuple ) or \ len ( position )! = 2 or \ not is _ natural _ number ( position [ 0 ] ) or \ position [ 0 ] > dimension or \ not is _ natural _ number ( position [ 1 ] ) or \ position [ 1 ] > dimension + 1 : return false return true
[ -1.058920979499817, 0.1064988300204277, 0.6239432096481323, 0.5561236143112183, -0.7953677177429199, 0.7611710429191589, -0.6937863826751709, -0.5107812285423279, -0.9383949637413025, 0.5070490837097168, 0.4707361161708832, -0.3173027038574219, -0.5557632446289062, -0.13677112758159637, ...
def isvalidinputoutputdata ( self, inputvolumenode, outputvolumenode ) : if not inputvolumenode : logging. debug ('isvalidinputoutputdata failed : no input volume node defined') return false if not outputvolumenode : logging. debug ('isvalidinputoutputdata failed : no output volume node defined') return false if inputv...
[ -0.18300525844097137, -1.3111181259155273, 0.5963752865791321, 0.4894581437110901, -0.43598616123199463, 0.15320278704166412, -0.12176552414894104, -0.4199964702129364, -0.5611140727996826, -0.2882263958454132, 0.6375916600227356, 0.3482761085033417, -0.8550699353218079, -0.766826272010803...
def resous _ 2 ( probleme : probleme ) - > edt : graphe = _ genere _ graphe ( probleme ) if not nx. is _ directed _ acyclic _ graph ( g = graphe ) : raise valueerror ( " le probleme n'a pas de solution. " ) bon _ ordre = range _ prob ( probleme ) desordre = range _ prob _ desor ( probleme ) resultat = edt ( activites =...
[ -0.5995250940322876, 0.1866658478975296, 0.6407042741775513, -0.25902262330055237, -0.22775733470916748, -0.11111417412757874, -0.1812947541475296, 0.5553638339042664, -0.34725409746170044, 0.8202680349349976, -0.37235093116760254, -0.49618807435035706, 0.7142763137817383, 0.10108297318220...
def getdata ( ) : # open data file. since the response and data coordinates are in the same # order, we don't have to worry about sorting. data = h5py. file ( datafile, " r ", driver = " sec2 " ) datac = data ['geometry / vertices'] [ : ] datav = data ['vertex _ fields / displacement'] [ : ] data. close ( ) return ( da...
[ 0.9245404601097107, -0.4992966651916504, 0.4509633779525757, -0.5948372483253479, -0.08107339590787888, 0.6799943447113037, 0.3483087122440338, -1.1295112371444702, -0.4365402162075043, -0.7172094583511353, -0.7208265662193298, 0.2634585499763489, 0.17238537967205048, -0.5794084072113037, ...
def test _ qlibrary _ instantiate _ qcomponent ( self ) : design = designs. designplanar ( ) try : qcomponent except exception : self. fail ( " qcomponent failed " ) with self. assertraises ( notimplementederror ) : qcomponent ( design, " my _ name " ) with self. assertraises ( notimplementederror ) : qcomponent ( desi...
[ -0.023996854200959206, -0.535773515701294, 0.34149789810180664, -1.0028125047683716, -0.2960264980792999, 1.1102921962738037, 0.2783636748790741, -0.7034391760826111, 0.3131542503833771, -0.6150650382041931, -0.7861763834953308, -0.893600344657898, -0.1126825213432312, 0.004820353351533413...
def variance ( list ) : m = average ( list ) return ( sum ( [ ( i - m ) * * 2 for i in list ] ) / float ( len ( list ) ) ) * *. 5
[ -0.05763951316475868, 0.03300955519080162, 0.4081233739852905, 0.47077274322509766, -0.21153540909290314, 0.570350706577301, 0.621253252029419, 0.1431531310081482, 0.3695674240589142, 0.3192794620990753, -1.5377089977264404, 0.5963003635406494, -0.6280210018157959, 1.3027679920196533, -0...
def run _ pso ( num _ particles : int, dims : int, iterations : int ) : def chaos _ for _ position ( j ) : nonlocal weights, x, n # select random dimension r _ dim = np. random. randint ( dims ) r _ particles = np. random. choice ( range ( num _ particles ), num _ particles / / 10 ) # constant factor to keep the chaos ...
[ 1.1967041492462158, 0.18901005387306213, 0.8888276219367981, -0.07463723421096802, -0.042798180133104324, -0.4722513258457184, 0.11892040818929672, 0.2626723647117615, -0.6015639305114746, 0.34370848536491394, -0.7048866152763367, 0.5649604201316833, -0.04207294061779976, -0.24020968377590...
def test _ get _ feature _ config ( self ) : tools. eq _ ( self. old _ manifest. get _ feature _ config ( " sub " ). to _ dict ( ), {'url':'git : / / github. com / toumorokoshi / sub. git ','formula':'sprinter. formulas. git ','depends':'git ','branch':'yusuke ','rc':'temp = ` pwd ` ; cd % ( sub : root _ dir ) s / libe...
[ 0.47630974650382996, -0.562573254108429, 0.5330604910850525, 0.5333850383758545, -0.32845935225486755, -0.533877968788147, -0.007927811704576015, 0.2983109652996063, -0.6566992998123169, -0.5917747020721436, -0.8938146233558655, 0.8065494894981384, 0.2990848124027252, 0.6918412446975708, ...
def plot _ limit ( dm _ castro _ data, ylims, alpha = 0. 05 ) : xbins = dm _ castro _ data. masses xmin = xbins [ 0 ] xmax = xbins [ - 1 ] fig = plt. figure ( ) axis = fig. add _ subplot ( 111 ) axis. set _ xscale ('log') axis. set _ yscale ('log') axis. set _ xlabel ( mass _ axis _ label ) if dm _ castro _ data. decay...
[ 0.4470895230770111, 0.3515233099460602, 0.8022534847259521, -0.18597175180912018, -1.0331841707229614, 0.3455391526222229, -0.16391508281230927, 0.02041347324848175, -0.24742735922336578, -0.31302139163017273, 0.7346392869949341, 1.3839950561523438, -0.11610303074121475, -0.050255447626113...
def get _ coding _ exons ( transcript ) : for exon in get _ exons ( transcript ) : region = exon. get _ as _ interval ( coding _ only = true ) if region : yield region
[ 0.10753431171178818, -0.3547512888908386, 0.5420218706130981, 0.7175204753875732, -0.7213255167007446, 0.17837142944335938, -0.9867875576019287, 0.4924984276294708, 0.27458372712135315, 0.1856730580329895, -0.6346855759620667, 0.5540456175804138, -0.21700803935527802, 0.0961933359503746, ...
def process ( pkt ) : # who are we dealing with? srcip = socket. inet _ ntoa ( pkt. ip. src ) # skip if it's in our exclusions list if opt. exclude and srcip in opt. exclude : debug ( " excluding query from % s " % srcip ) return try : d = dnslib. dnsrecord. parse ( pkt. ip. data. data ) except : # could not parse pack...
[ 0.15917621552944183, 0.5563681125640869, 0.843386173248291, -0.12701721489429474, -0.5766708254814148, -0.15425099432468414, -0.150760218501091, -0.02047278918325901, 1.2028576135635376, -0.00710706040263176, 0.1006249338388443, 0.03821970894932747, -0.2308778017759323, 0.2702869176864624,...
def on ( id ) : return put _ state ( id, { " on " : true } )
[ -0.3603014349937439, -0.1273958832025528, 0.3643367290496826, -0.3267412483692169, -0.36991623044013977, -0.2975080609321594, -1.1341596841812134, 1.1981825828552246, 1.1109060049057007, 0.367190957069397, -1.509684681892395, 0.04605463147163391, -0.6336329579353333, -0.2939631938934326, ...
def default _ ttl ( self ) - > typing. optional [ aws _ cdk. core. duration ] : return self. _ values. get ('default _ ttl')
[ 0.4961733818054199, 0.8863295316696167, 0.2033643275499344, 0.49896153807640076, 1.5355043411254883, 1.1803977489471436, 0.2741244435310364, -0.30634844303131104, 0.7980327010154724, -0.03173678368330002, -0.8435168266296387, -0.49406060576438904, 0.3558313250541687, 0.19987526535987854, ...
def find _ all _ row _ schema _ warnings ( self ) : warnings = [ ] for rows in self. rows. values ( ) : for row in rows : if hasattr ( row,'schema _ warnings') : warnings. extend ( row. schema _ warnings ) return warnings
[ 0.2846762537956238, -0.20644141733646393, 0.5038635730743408, 1.1606072187423706, 0.1734713912010193, -0.6712464690208435, -0.9602916240692139, -0.1461622267961502, 0.38703155517578125, 0.7031800150871277, -0.09156972169876099, 0.6079937219619751, 0.7097412943840027, 1.036517858505249, -...
def del _ object ( self, name ) : self. get _ object ( name ) # assert that the object exists self. _ run ('- do ', name )
[ 0.24660274386405945, -0.09347573667764664, 0.6658293008804321, 0.1463392674922943, 0.3954714238643646, 0.6297314763069153, 0.2065926045179367, -0.3670450448989868, 0.5904116034507751, -0.1461361199617386, -0.7076002955436707, 0.6619787216186523, 0.3868061602115631, -0.5557122826576233, -...
def trim _ zeros ( time _ pitch ) : return time _ pitch [ time _ pitch [ :, 1 ] > 0 ]
[ -0.12846124172210693, -0.6417339444160461, 0.3767038881778717, 0.6736701726913452, 0.2121429145336151, 0.4765138328075409, 0.12937262654304504, -0.13939008116722107, -0.19417628645896912, 0.9188774824142456, 0.44694018363952637, -0.3483496904373169, -0.6421928405761719, 0.13151857256889343...
def _ get _ send _ community ( self ) : return self. _ _ send _ community
[ 0.10370952636003494, -0.236141175031662, 0.4866928160190582, -0.47516068816185, -0.2652033567428589, 0.15745118260383606, 1.0466936826705933, -0.9799354076385498, -0.7303557991981506, 0.1396588832139969, -0.4467271566390991, 0.336915522813797, -0.5402069687843323, -0.18075807392597198, -...
def _ _ add _ _ ( self, other ) : if isinstance ( other, ( float, int ) ) : other = complex ( other ) return complex ( self. real + other. real, self. imag + other. imag )
[ -0.36339589953422546, -0.6037789583206177, 0.6830770373344421, 0.7068983912467957, -0.2154468446969986, 0.36350637674331665, 0.48019689321517944, -1.7741420269012451, 0.8381615281105042, -0.9276979565620422, -0.005880037788301706, 0.002248001517727971, -0.4588199257850647, -0.5536444783210...
def ndarray _ to _ vtkpoints ( array ) : points = vtk. vtkpoints ( ) vtkids = { } for i in range ( array. shape [ 0 ] ) : point = array [ i ] vtkid = points. insertnextpoint ( point [ 0 ], point [ 1 ], point [ 2 ] ) vtkids [ vtkid ] = i return points, vtkids
[ -0.08970042318105698, -0.09036939591169357, 0.2572937309741974, 0.3956814408302307, -0.27412381768226624, 0.10375379025936127, 0.2038242071866989, 0.24223874509334564, 0.5270912051200867, 2.0100512504577637, -0.4251484274864197, -0.4162798523902893, 0.4261758327484131, 0.47558534145355225,...
def insertion _ sort ( items ) : length = items. _ _ len _ _ ( ) # traverse through 1 to length for i in range ( 1, length ) : # key is the current value key = items [ i ] # move elements of arr [ 0.. i - 1 ], that are # greater than key, to one position ahead # of their current position j = i - 1 # bitwise calculation...
[ -1.1691488027572632, 0.4303562343120575, 0.6498661041259766, 0.04878890886902809, -0.3425392210483551, 0.5043103098869324, 0.8287771940231323, -0.7359282970428467, -0.3994450569152832, 0.840103030204773, -0.5620172619819641, -0.36400237679481506, -1.027383804321289, 0.684613049030304, -0...
def test _ reactorselectionmixinnonexistent ( self ) : class reactorselectionoptions ( usage. options, app. reactorselectionmixin ) : pass self. pluginresults = [ ] options = reactorselectionoptions ( ) options. messageoutput = nativestringio ( ) e = self. assertraises ( usage. usageerror, options. parseoptions, ['- - ...
[ -0.4338228404521942, -0.4627457559108734, 0.437288761138916, -0.23048429191112518, 1.689234972000122, -0.5408247113227844, -0.11898443847894669, 0.10969099402427673, 0.459494411945343, -0.4969440698623657, -0.5543031096458435, -0.4336782693862915, -0.7019199728965759, 0.12951935827732086, ...
def _ _ init _ _ ( self, fabric, connection, executor, url, port, operation _ timeout _ seconds, ) : super ( streamcollection, self ). _ _ init _ _ ( connection, executor ) url = urlparse ( url ) hostname = url. hostname self. fabric = fabric dcl _ local = self. fabric. dclist _ local ( ) self. persistent = true self. ...
[ 0.253050833940506, 0.24430140852928162, 0.5375964641571045, -0.1735851764678955, 0.346326619386673, -0.6553345322608948, 0.14303453266620636, 0.49749046564102173, -0.8518549203872681, -0.12139889597892761, -0.2808353006839752, 0.1647457778453827, -0.0670018196105957, 1.049142837524414, -...
def selfcheck ( self, request, context ) : context. set _ code ( grpc. statuscode. unimplemented ) context. set _ details ('method not implemented!') raise notimplementederror ('method not implemented!')
[ -1.3047308921813965, -0.08895561844110489, 0.693977415561676, 0.7149801850318909, 0.3360261619091034, 0.40517017245292664, 1.5570474863052368, -0.228486105799675, 0.28016743063926697, -0.07822645455598831, 0.01238091941922903, 1.0008341073989868, -0.7381243705749512, 0.5454805493354797, ...
def set ( self, alias, data ) : line _ to _ print = " set [ { 0 } ] ( { 1 } ) ". format ( alias, hex ( data ) ) # + alias + " " + hex ( data ) + " \ n " self. scn _ line _ list. append ( line _ to _ print ) # add line to list
[ 0.2694278359413147, -0.5746711492538452, 0.391400009393692, -0.38994985818862915, 0.5388097167015076, 0.6579469442367554, -1.5670875310897827, 0.9161416292190552, -0.17424602806568146, 0.27607494592666626, -0.7322486042976379, 1.5226953029632568, 0.6762417554855347, 0.7585039138793945, -...
def get _ sponsors ( labstaff = false ) : l = [ d. user for d in userdomain. query. filter _ by ( domain ='sponsor'). all ( ) ] l. sort ( cmp = name _ sort ) if not labstaff : l = [ u for u in l if u. username! ='staff'] return l
[ -0.058156996965408325, 1.179782748222351, 0.3689679801464081, 0.5899472236633301, -0.1952582746744156, 0.41596144437789917, -0.49347588419914246, -0.2813512682914734, 0.09473865479230881, -0.6352058053016663, 0.05679142102599144, 0.16270418465137482, -0.9318835735321045, 0.900204598903656,...
def create _ anchor _ box _ mask _ on _ input ( coord, feature _ to _ input, mask _ shape, scale = none, aspect _ ratio = none ) : assert len ( mask _ shape ) = = 2 # should be an image [ width, height ] because it is a mask # create empty mask anchor _ box _ mask = np. zeros ( mask _ shape, dtype = np. uint8 ) x1 = in...
[ -0.8359413146972656, -1.2134214639663696, 0.8308048844337463, -0.5225354433059692, -0.21671628952026367, 0.8006291389465332, 0.01275885384529829, -0.6916071772575378, -0.3153148293495178, -0.21549846231937408, 0.5491654276847839, 0.6378611326217651, 1.1032681465148926, -0.45743951201438904...
def band _ sample ( sample ) : return sample ( " silicon _ bands. hdf5 " )
[ 0.761476993560791, -0.39558956027030945, 0.07378995418548584, 0.498993456363678, -1.3197962045669556, 0.35866492986679077, 0.11202584952116013, -1.0522865056991577, 0.6552016139030457, -0.6457398533821106, 0.19117432832717896, 0.6937340497970581, -0.4485842287540436, -0.05449548363685608, ...
def closeevent ( self, * args, * * kwargs ) : self. settings. setvalue ( " geometry ", self. savegeometry ( ) ) self. deletelater ( ) super ( textviewer, self ). closeevent ( * args )
[ 0.015164201147854328, -0.15884184837341309, 0.33088743686676025, -0.2676291763782501, -0.3224203586578369, 0.21871599555015564, -0.09746103733778, -0.034403733909130096, -0.6927673816680908, 0.27860116958618164, -0.10603587329387665, -0.38495373725891113, -0.1352955847978592, 1.29895079135...
def file _ type ( filename ) : if filename. startswith ( " http " ) or filename. startswith ( " www " ) or \ filename. startswith ( " ftp " ) : return urllib. urlopen ( filename ) elif filename. endswith ( '. gz') : return gzip. gzipfile ( filename,'r') else : return open ( filename,'r')
[ 0.009764490649104118, -0.26659679412841797, 0.9438380002975464, -0.07885511964559555, -0.23171521723270416, 0.8668951392173767, 0.48066258430480957, 0.16542771458625793, -0.4451136589050293, -0.5849300622940063, 0.9389573931694031, 0.1090376004576683, -0.5994408130645752, -0.08528501540422...
def get _ upsampling _ weight ( in _ channels, out _ channels, kernel _ size ) : factor = ( kernel _ size + 1 ) / / 2 if kernel _ size % 2 = = 1 : center = factor - 1 else : center = factor - 0. 5 og = np. ogrid [ : kernel _ size, : kernel _ size, : kernel _ size ] filt = ( 1 - abs ( og [ 0 ] - center ) / factor ) * \ ...
[ 0.06545978039503098, -0.10244905203580856, 0.9691601991653442, -0.10097238421440125, -0.7155984044075012, -0.9517845511436462, 0.22079932689666748, 0.10801409184932709, -0.6926946640014648, 0.84583580493927, 0.02793876640498638, 0.016401788219809532, -0.1737518310546875, 0.1287232488393783...
def follow _ user _ action ( self, user = none, unfollow = false ) : if user is not none : self. nav _ user ( user ) # self. driver. implicitly _ wait ( 5 ) # time. sleep ( 5 ) # 3 buttons in user page # 1. follow button # 2. arrow down button # 3. 3 dots button button _ list = self. driver. find _ elements _ by _ xpat...
[ 0.45973387360572815, 0.11922279000282288, 0.9750979542732239, 0.8229615688323975, -0.3330008089542389, 0.8680523633956909, 1.1670490503311157, -0.05452365800738335, 0.907249391078949, 0.4378512501716614, -0.7585613131523132, -0.19156569242477417, 0.46279236674308777, 0.6562051177024841, ...
def gp _ ex _ fixed _ period _ 1 ( ) : start, end = 0. 0, 4. 0 x = infpy. gp _ 1d _ x _ range ( start, end, 0. 4 ) y = numpy. asarray ( [ math. sin ( 2. 0 * math. pi * x [ 0 ] ) for x in x ] ) # pylab. plot ( [ x [ 0 ] for x in x ], [ y1 for y1 in y ] ) # pylab. show ( ) # return ln = infpy. lognormaldistribution gamma...
[ 0.37578728795051575, -0.4185488224029541, 0.7844958901405334, 0.34479331970214844, -0.30927497148513794, 0.5773628354072571, 0.04716114327311516, 0.3700728118419647, 0.09190621227025986, 0.0003686340351123363, 0.6350938677787781, 1.2140363454818726, -0.49771884083747864, 0.1495416462421417...
def _ cron _ fetch _ and _ schedule ( self, hostname ) : if hostname! = fqdn ( ) : return'not for me'start _ time = time. time ( ) timeout = self. _ get _ cron _ period ( ) icp = self. env ['ir. config _ parameter'] update _ frequency = int ( icp. get _ param ('runbot. runbot _ update _ frequency ', default = 10 ) ) wh...
[ -0.28226238489151, -0.007824510335922241, 0.7847945094108582, 0.42894500494003296, 0.1750366985797882, 0.4878835082054138, -0.17885322868824005, 0.1021762415766716, -0.6149145364761353, 0.21788565814495087, -0.1892414093017578, -0.29094716906547546, -0.6547788977622986, 0.0163669902831316,...
def distance _ calculator _ haversine ( self, lon1, lat1, lon2, lat2 ) : # convert decimal degrees to radians lon1, lat1, lon2, lat2 = map ( math. radians, [ lon1, lat1, lon2, lat2 ] ) # haversine formula dlon = lon2 - lon1 dlat = lat2 - lat1 a = sin ( dlat / 2 ) * * 2 + cos ( lat1 ) * cos ( lat2 ) * sin ( dlon / 2 ) *...
[ 0.4722523093223572, -0.6349396705627441, 0.8240176439285278, -0.4284576177597046, -0.454996258020401, 0.18645012378692627, -0.9157360196113586, 0.1914290487766266, -0.5744866132736206, -0.13828763365745544, -0.48634466528892517, 0.12871699035167694, 0.10976662486791611, -0.4545847475528717...
def make _ palindrome ( max _ int = 10 ) : stack _ list = [ random. randint ( - 999, 999 ) for i in range ( random. randint ( 0, max _ int / 2 ) ) ] stack _ list = stack _ list + random. choice ( [ [ ], [ random. randint ( - 999, 999 ) ] ] ) + stack _ list [ : : - 1 ] return np. array ( stack _ list, dtype = dtype )
[ -0.7686612010002136, 0.9435890316963196, 0.7399985194206238, -0.18441414833068848, 0.5198705196380615, 0.08325300365686417, 0.33200937509536743, 0.597538948059082, 0.4442218542098999, 0.5462315678596497, -0.9284493327140808, -0.41564926505088806, -0.644137442111969, -0.5927982330322266, ...
def delete _ line _ id ( self ) : rmid = self. get _ detns ( ) self. _ lineids [ rmid ] = 0. 0 self. _ lineflg [ rmid ] = 0
[ 1.0597960948944092, -0.7677854299545288, 0.2553505301475525, -0.4977741539478302, 1.2437090873718262, 0.1878328174352646, -0.49041587114334106, 0.7318642735481262, -0.15546949207782745, -0.6707994341850281, -0.4670771062374115, 1.0128281116485596, 0.03828439489006996, 1.2834194898605347, ...
def _ _ shownavigationmenu ( self ) : self. _ _ navigationmenu. clear ( ) for index in range ( self. count ( ) ) : act = self. _ _ navigationmenu. addaction ( self. tabicon ( index ), self. tabtext ( index ) ) act. setdata ( index )
[ -1.1468558311462402, 0.3343910276889801, 0.4183325171470642, -0.25188517570495605, 0.4460197985172272, 0.6184118986129761, 0.6360222697257996, 0.3395095765590668, 0.13560336828231812, 0.5580857992172241, -0.572888195514679, 0.02235398255288601, 0.6617525815963745, -0.049472685903310776, ...
def device _ state _ attributes ( self ) : if self. _ battery _ level is none : return none return { attr _ battery _ level : self. _ battery _ level, }
[ -0.3724427819252014, -0.23686017096042633, 0.3011053502559662, 0.1942594200372696, -0.6232953071594238, 0.16082164645195007, -0.004141825716942549, -0.2023509442806244, -0.5471585392951965, 0.036626480519771576, -0.39093732833862305, -0.013469069264829159, 0.06678831577301025, -0.022071953...
def determine _ save _ state ( arbor, filename, fields, trees ) : from ytree. frontends. ytree. arbor import ytreearbor if not isinstance ( arbor, ytreearbor ) : return false, filename if filename is not none : return false, filename if fields not in [ none, " all " ] : return false, filename if trees is not none and l...
[ -0.1454794704914093, -0.7510970234870911, 0.5264859199523926, 0.25159353017807007, 0.4058487117290497, -0.04917185381054878, 0.14125671982765198, -0.07619263976812363, -0.3400411903858185, 0.2474285364151001, -0.2383359670639038, -0.1975983828306198, 0.037395793944597244, 0.645695984363555...
def preprocess _ filt _ wal ( self ) : self. zeromask = ( self. i1 = = 0 ) | ( self. i2 = = 0 ) self. i1 = _ wallis _ filter ( self. i1, self. wallisfilterwidth ) self. i2 = _ wallis _ filter ( self. i2, self. wallisfilterwidth )
[ -0.2649313807487488, -0.4223293960094452, 0.5865960121154785, -0.25545555353164673, 0.18398098647594452, -0.20390209555625916, 1.1697384119033813, -0.4483569860458374, 0.06626161187887192, -0.24699358642101288, 0.1938871145248413, 1.0106053352355957, 0.11326104402542114, 0.8281320929527283...
def _ translate _ _ interfaces _ state _ interface _ statistics ( input _ yang _ obj, translated _ yang _ obj = none ) : if input _ yang _ obj. discontinuity _ time. _ changed ( ) : input _ yang _ obj. discontinuity _ time = input _ yang _ obj. discontinuity _ time if input _ yang _ obj. in _ octets. _ changed ( ) : in...
[ -0.647921085357666, -0.31138795614242554, 0.6414774060249329, -0.532060980796814, -0.6125500798225403, 0.3081318140029907, 1.5881874561309814, -0.8136723637580872, 1.0804005861282349, -0.30997714400291443, -0.5298410654067993, 0.06745058298110962, 0.13618598878383636, 0.3947288393974304, ...
def addassignment ( self, assignment ) : self. assignments. append ( assignment )
[ -1.3064727783203125, -0.5073983073234558, 0.3144342303276062, 0.15166719257831573, -0.14510664343833923, 0.6168423295021057, -0.7794669270515442, 0.4979460835456848, 0.19597001373767853, 0.2208501398563385, 0.1806163340806961, -0.47375017404556274, -0.25516125559806824, 0.588742733001709, ...
def query ( self, cols = none, geo _ unit = " ", geo _ filter = { }, apikey = " ", * * kwargs ) : assert not ( cols is none ), " columns must be provided for query! " if not geo _ unit and " geo _ unit " in self. variables. index : geo _ unit = " us : 00 " if len ( cols ) > = 50 : return self. _ bigcolq ( cols, geo _ u...
[ -0.7920363545417786, 0.36377450823783875, 0.8246476650238037, -0.1754145324230194, 0.12885180115699768, -0.7993360161781311, -0.5997236967086792, 0.19864803552627563, -0.5676762461662292, -0.10946017503738403, 0.9191163182258606, 0.28070104122161865, -0.3389343321323395, -0.903838992118835...
def unrank _ perm ( r, n ) : perm = np. arange ( n, dtype = np. short ) for i in range ( n - 1, - 1, - 1 ) : r, q = divmod ( r, i + 1 ) perm [ i ], perm [ q ] = perm [ q ], perm [ i ] return perm
[ -0.739995002746582, -0.12862205505371094, 0.4169907569885254, -0.3462851941585541, -0.4904014766216278, -0.2537049651145935, 0.32144856452941895, 0.41316601634025574, 0.3772912621498108, 0.9132236838340759, 0.2620188593864441, 0.3065963685512543, -1.0955277681350708, -0.21947160363197327, ...
def vpnvserver _ authenticationtacacspolicy _ bindings ( self ) : try : return self. _ vpnvserver _ authenticationtacacspolicy _ binding except exception as e : raise e
[ -0.2403634786605835, -0.38904809951782227, 0.188539519906044, 0.7826497554779053, -0.5920488834381104, 1.6199398040771484, -0.4886300265789032, -0.48096710443496704, 1.2253645658493042, 0.15763071179389954, -0.49337854981422424, 0.5171022415161133, 0.40834879875183105, -0.48499950766563416...
def center _ on ( self, field, value, comparator = cmp ) : # select all the features that fulfill the given condition selected _ features = self. catalogue _ layer. selectedfeatures ( ) features = [ ] catalogue = self. catalogue _ model. catalogue for i, event _ id in enumerate ( catalogue. data ['eventid'] ) : expecte...
[ 0.43470194935798645, -0.6508623957633972, 0.3624744415283203, -0.27973347902297974, -0.17221413552761078, -0.14850163459777832, 0.6103666424751282, 0.867475152015686, 0.15174078941345215, 0.3703174591064453, 0.05279368907213211, 0.23450349271297455, -0.6781586408615112, 0.6860306262969971,...
def _ getfailures ( self, result ) : return len ( result. failures )
[ -0.919418454170227, 0.5812847018241882, 0.22969040274620056, -0.16899307072162628, -0.3272261917591095, -0.602342426776886, 0.33323243260383606, -0.05650004744529724, -0.20027095079421997, -1.4088798761367798, -1.4907655715942383, -1.5105705261230469, -0.22698166966438293, -0.0351962707936...
def _ change _ text _ field _ data ( field _ name : " webelement ", value : addressbook ) : logging. info ( f " set { value } into { field _ name } text field. " ) if value is not none : field _ name. click ( ) field _ name. clear ( ) field _ name. send _ keys ( value )
[ -0.5071889758110046, 0.7459391355514526, 0.3230991065502167, -1.0062658786773682, -0.24870847165584564, -0.647282600402832, -0.29759517312049866, 0.1845584511756897, 0.028593530878424644, 1.3517800569534302, -1.0493220090866089, 0.1914229691028595, 0.34232479333877563, 0.08286412060260773,...
def parse _ saved _ data ( blob ) : record = struct ( " foo " / int8ub, # should be 0x00 but isn't always #'magic'/ const ( b'\ x00'), " year " / int8ub, " weekday " / int8ub, " month " / int8ub, " day " / int8ub, " hour " / int8ub, " minute " / int8ub, " second " / int8ub, " pos " / int8ub, " dath " / int8ub, " datl "...
[ 0.5245374441146851, 0.03341599181294441, 0.5740393996238708, -0.6110055446624756, -0.3630248010158539, -0.20430885255336761, -0.41742298007011414, 0.02377062477171421, 0.1750047504901886, -0.3215896189212799, -0.9023874402046204, -0.2991048991680145, -1.0436283349990845, -0.540043175220489...
def floating _ ip _ count _ by _ project ( context, project _ id, session = none ) : return impl. floating _ ip _ count _ by _ project ( context, project _ id, session = session )
[ -0.8904838562011719, 0.8077656030654907, 0.4262298047542572, -0.022814437747001648, -0.20419439673423767, 0.04171013832092285, 0.981285035610199, -0.34999707341194153, -0.3441431224346161, -0.1387219876050949, -0.010537941940128803, -0.27336663007736206, 0.07921714335680008, 0.210842624306...
def test _ sample _ property ( self ) : # randomly pick table _ count to init the profiler, we don't care for this test with patch. object ( sqaprofilerinterface, " _ convert _ table _ to _ orm _ object ", return _ value = user ) : sqa _ profiler _ interface = sqaprofilerinterface ( profilerinterfaceargs ( service _ co...
[ 0.536455512046814, 0.3718074858188629, 0.40923431515693665, 0.2657438814640045, -0.07087509334087372, -0.08360917866230011, 0.4567556083202362, -1.4047306776046753, 0.8208237886428833, -0.41578468680381775, 0.3722609281539917, -0.501133143901825, -0.7960812449455261, 0.031144974753260612, ...
def reset ( self ) : if ( self. val! = self. valinit ) : self. set _ val ( self. valinit )
[ -0.3002530336380005, -0.5531667470932007, 0.20840220153331757, 0.19874532520771027, 0.3744940757751465, -0.09212470799684525, 0.08472282439470291, -0.5295711755752563, -0.7567588090896606, -0.16823144257068634, -0.13565269112586975, 1.094180703163147, -0.22339579463005066, 0.32955932617187...
def move ( self, v ) : if v is not none : for a in self. atoms : a. coord + = v return self
[ -0.42059630155563354, -0.29320818185806274, 0.5639144778251648, -0.3277682662010193, 0.34192630648612976, 0.13444067537784576, 0.19192437827587128, -0.4645400047302246, 0.45035332441329956, 0.3338547945022583, -0.3151533007621765, -0.20743758976459503, -0.5063516497612, -0.6873826384544373...
def shift _ remaining ( self, shift _ remaining ) : self. _ shift _ remaining = shift _ remaining
[ -0.4117547869682312, -1.2164978981018066, 0.43009188771247864, 0.8599995970726013, 0.42524147033691406, 1.777889609336853, -0.21888934075832367, -0.6237214803695679, -0.008729484863579273, -0.5516722202301025, -0.9895991683006287, -0.6790408492088318, -0.5806124210357666, 0.519346654415130...
def get _ edge _ tuples ( self ) : edges _ tuples = [ ] for u, v, t in self. graph. edges. data ('type ', default ='none') : edges _ tuples. append ( ( v, t, v ) ) return edges _ tuples
[ -1.3890646696090698, 0.5534236431121826, 0.4059906005859375, 0.01922113448381424, 1.0541068315505981, 0.057557977735996246, -0.7384476661682129, -0.09984314441680908, -0.37769827246665955, 1.0523546934127808, -0.49019739031791687, -0.44954755902290344, -0.2786766290664673, -0.1269456893205...
def call _ surface _ hopping ( c _ coeff, v _ current _ l, f _ current, e _ ad, dt _ l, cstate _ l ) : # create density matrix amat = np. outer ( c _ coeff, np. conj ( c _ coeff ) ) # set hop to false hop = false # create bmat and gmat bmat = np. zeros ( ( nel * ( nel - 1 ) ) / / 2 ) gmat = np. zeros ( ( nel * ( nel - ...
[ -0.15945248305797577, 0.4532776474952698, 0.900566041469574, 0.1890474259853363, -0.21115782856941223, 1.320341944694519, 1.0365675687789917, -0.04476235434412956, -0.17085637152194977, 0.3207281231880188, 0.5007985830307007, -0.3056042194366455, 0.5077811479568481, 0.18380306661128998, ...
def n _ unique ( self ) - > dataframe : return self. select _ all ( ). n _ unique ( )
[ -0.4043801724910736, 0.9143255949020386, 0.3727928400039673, 0.3720450699329376, 0.44183477759361267, -0.7932971119880676, 0.29697054624557495, 0.5401456356048584, 0.04421855881810188, -0.8187028169631958, -0.8487017154693604, 0.36984512209892273, 0.21902106702327728, -0.8625719547271729, ...
def _ upload _ lookup ( self, proxy _ type ) : return getattr ( self,'_ upload _'+ proxy _ type, none )
[ -0.6760256886482239, -0.3434616029262543, 0.7811013460159302, -1.4639525413513184, 0.11907447874546051, -0.8455225825309753, 0.33046412467956543, -0.934357225894928, -0.26651594042778015, 0.6041923761367798, 0.6073153614997864, -0.38869160413742065, -0.19519168138504028, 0.1226889714598655...
def test _ can _ delete _ branch ( self ) : api _ call ( self, " post ",'/ branch / create ', dict ( city = " london ", postcode = " e1w 3ss ", capacity = 5 ), 200 ) json _ response = api _ call ( self, " delete ",'/ branch / delete ', dict ( id = 1 ), 200, true ) self. assertequal ( json _ response [ " status _ code "...
[ 0.30316171050071716, 0.36555802822113037, 0.8268035650253296, 0.7248338460922241, 1.1041964292526245, 0.8644535541534424, -0.21325726807117462, 0.6471037268638611, -0.29839956760406494, -0.6859685778617859, -0.30341362953186035, 0.7062883377075195, -0.4795530140399933, 0.6901559233665466, ...
def build _ prejudicefile _ wells ( self ) : if self. well _ xy is none : print ( " please first define well xy location " ) return if self. welldata is none : print ( " please first define well data " ) return if not hasattr ( self,'block _ nums') : self. get _ modelblock _ info ( ) self. project _ well _ loc ( ) self...
[ -0.000404232123401016, -0.4872119128704071, 0.5602889060974121, -0.2112613022327423, 0.8426822423934937, 0.7407572269439697, 1.1819877624511719, -0.37058520317077637, -0.5022853016853333, -0.48326775431632996, -0.5372179746627808, -0.0016039288602769375, -0.6466666460037231, 0.510327160358...
def coins _ to _ gold ( self, copper ) : gold = silver = 0 copper = abs ( copper ) while copper > = 10000 : gold + = 1 copper - = 10000 while copper > = 100 : silver + = 1 copper - = 100 return { " gold " : gold, " silver " : silver, " copper " : copper }
[ -0.8771530389785767, 0.8179963231086731, 0.45670387148857117, -0.9314872026443481, 0.09121424704790115, -0.3622967004776001, -0.06055869907140732, -0.9917513728141785, -0.11797875165939331, 1.1760118007659912, -1.5807957649230957, 0.39191320538520813, 0.3706282377243042, 0.0333716683089733...
def dataset _ pair _ generator ( dataset _ path : str, output _ csv _ path : str, count : int, checkpoint = 0 ) : if count > 2000000 : print ( " [ warn ] count is too high to create hard sampled dataset " ) print ( " [ info ] still trying... " ) print ( " [ info ] generating % d samples and storing it in % s " % ( coun...
[ -0.9144251942634583, 0.32762131094932556, 0.9611330628395081, 0.46523985266685486, -0.7553119659423828, 0.41654282808303833, 0.628530740737915, 0.35951682925224304, -0.45088592171669006, -0.6041977405548096, 0.19564954936504364, -0.8731075525283813, -0.16577023267745972, 0.4408918023109436...
def _ _ init _ _ ( self, base _ path : optional [ union [ str, path ] ] = none, in _ memory : bool = true, agreement _ threshold : float = 0. 5, sentence _ splitter : sentencesplitter = segtoksentencesplitter ( ), * * corpusargs, ) - > none : base _ path = flair. cache _ root / " datasets " if not base _ path else path...
[ -0.14473357796669006, 0.34748223423957825, 0.7349202036857605, -0.35254010558128357, -0.49221712350845337, -0.31179583072662354, -0.10267157107591629, 0.5607593059539795, -0.46649259328842163, -0.18656770884990692, 0.4244403541088104, -0.1800152063369751, 0.227680504322052, 0.4593379795551...
def _ extractuserids ( self, request, plugins ) : try : extractors = plugins. listplugins ( iextractionplugin ) except _ swallowable _ plugin _ exceptions : log. info ('extractor plugin listing error ', exc _ info = true ) extractors = ( ) if not extractors : extractors = ( ('default ', dumbhttpextractor ( ) ), ) try :...
[ -0.8029404878616333, 0.04291845113039017, 0.507644772529602, 0.5668792724609375, -0.17009267210960388, -0.9066844582557678, -0.13308611512184143, -0.4720112979412079, 0.6954590678215027, 0.8150699138641357, -0.31891652941703796, -0.20680104196071625, -0.621202290058136, -0.3100122809410095...
def get _ mapped _ datasets ( self ) : yield from self. data _ model _ handler. get _ mapped _ data _ models ( self. addon _ parser )
[ -0.5796552896499634, -0.33909472823143005, 0.5013616681098938, 0.47657138109207153, -0.22199590504169464, 1.1520110368728638, -0.5772313475608826, -0.40866032242774963, 0.4958035349845886, -1.5142388343811035, -0.3669878840446472, 0.6881789565086365, 0.6453352570533752, 0.00347218383103609...
def masked _ frequency _ of _ bipartition ( self, * * kwargs ) : partialmask = kwargs [ " mask " ] if " mask " in kwargs else self. taxon _ namespace. all _ taxa _ bitmask ( ) if " split _ bitmask " in kwargs : targetsplit = kwargs [ " split _ bitmask " ] else : targetsplit = self. taxon _ namespace. get _ taxa _ bitma...
[ -0.4435758590698242, 0.16186697781085968, 0.8444802761077881, 0.3372421860694885, 0.3277481496334076, -0.5982363820075989, 1.5989359617233276, -0.37862202525138855, 0.15149234235286713, 0.1423395723104477, -0.13199539482593536, -0.3339991867542267, -0.8909651041030884, 0.4228568971157074, ...
def dijkstra _ cost ( self, start _ vids, end _ vids ) : sql = " " " select * from pgr _ dijkstracost ('select { id } as id, { source } as source, { target } as target, { cost } as cost, { reverse _ cost } as reverse _ cost from { table } ', % s, % s, { directed } ) " " ". format ( table = self. _ meta _ data ['table']...
[ -0.9139441847801208, 0.10890543460845947, 0.5366368889808655, -0.5799782276153564, -0.6471143364906311, -0.4378025233745575, -0.6564372777938843, 0.18445910513401031, -1.231288194656372, 1.5164908170700073, -0.6483004689216614, 0.7128276824951172, -0.2212717980146408, 0.3272022604942322, ...