text
stringlengths
25
2.19k
embedding
listlengths
768
768
async def set _ member _ role ( self, ctx : commands. context, role : discord. role = 0 ) : # unset the member role if role = = 0 : await ctx. bot. pool. execute ( serverssql. update _ member _ role, ctx. guild. id, role ) await ctx. send ( f " member role has been unset. " ) # update the member role else : await ctx. ...
[ 0.06439925730228424, 0.37053853273391724, 0.7011608481407166, -0.3858030140399933, 0.7638922929763794, 0.4798751771450043, -1.0213841199874878, 0.7143187522888184, 0.04536395147442818, 0.17009659111499786, -0.26376044750213623, 0.8687627911567688, -1.4457124471664429, 0.3523827791213989, ...
def get _ 3rd _ point ( a, b ) : direct = a - b return b + np. array ( [ - direct [ 1 ], direct [ 0 ] ], dtype = np. float32 )
[ 0.7423274517059326, 0.2077365517616272, 0.36209434270858765, 0.13736066222190857, 0.2542223334312439, 0.7384682297706604, -0.8953162431716919, -0.12572892010211945, -0.17793671786785126, 0.8612766861915588, 0.6744843125343323, 1.4398890733718872, -0.0669248178601265, -2.08015513420105, 0...
def _ _ setattr _ _ ( self, name, value ) : if not hasattr ( self, " ivn " ) : # # # object still under construction - - don't prevent attribute # # # settings or changes self. _ _ dict _ _ [ name ] = value return # # # object fully constructed - - do what must be done if name in self. ivn : self. ivn [ name ]. externa...
[ -0.847528338432312, -0.7501537799835205, 0.8850926160812378, 0.025702599436044693, -0.9832573533058167, 0.44798123836517334, 0.40864598751068115, -0.022044701501727104, 0.6592674255371094, 0.6039810180664062, -0.2694738805294037, 0.2882850766181946, 0.4380020797252655, 0.134658545255661, ...
def consumenutrient ( self ) : self. heldnutrient = none
[ 0.9422317743301392, -1.0248594284057617, 0.14729277789592743, -0.1131606474518776, 0.017881866544485092, 0.21125012636184692, -0.18243078887462616, -0.5844101309776306, -0.814401388168335, -0.5044279098510742, 0.28649041056632996, 0.9327078461647034, -0.98817378282547, -0.11744452267885208...
def map _ ship ( ship _ size ) : start = initialize ( ship _ size ) orientation = randint ( 0, 1 ) # select orientation ( 0 = horizontal, 1 = vertical ) coords = { } for i in range ( ship _ size ) : row = start [ 0 ] col = start [ 1 ] icon ='' if orientation = = 0 : col + = i icon ='>'else : row + = i icon ='^'coords [...
[ -2.011021137237549, 0.22360920906066895, 0.6084142923355103, -0.6654013991355896, -1.1704951524734497, -0.05619398131966591, 0.5358743667602539, 0.15038152039051056, 0.8182626366615295, 0.3703884780406952, -0.9445510506629944, -0.408417284488678, 0.8888793587684631, -0.7399693131446838, ...
def _ _ init _ _ ( self, configuration, worker _ config _ entry, session _ id, is _ daemon = false ) : # type : ( configuration, dict, six. text _ type, bool ) - > none stoppablethread. _ _ init _ _ ( self, name = " copying manager worker session thread # % s " % session _ id, is _ daemon = is _ daemon, ) self. _ id = ...
[ 0.468995600938797, -0.5409400463104248, 0.8712120652198792, -0.06179368495941162, -0.2537720799446106, -0.03489011153578758, 0.5376894474029541, -0.04901342839002609, 0.07867998629808426, -0.16338776051998138, -0.5007337331771851, 0.3853413164615631, -0.17707903683185577, 0.248843207955360...
def computer _ hash ( my _ image ) : print ( " beginning screen detection " ) offset _ screen _ x, offset _ screen _ y, my _ image = anchor _ and _ clip ( my _ image ) freecells = read _ freecells ( ) freecell _ hash = " ". join ( [ " f / " if x = = 0 else " fl / " for x in freecells ] ) stacks = read _ stacks ( my _ i...
[ 0.3623994290828705, 0.10358493775129318, 0.7102470397949219, 0.6065611839294434, -0.3964119255542755, 0.5136899352073669, 0.44466811418533325, -0.49941301345825195, -0.493639200925827, 0.8115736842155457, -0.3867644965648651, -0.4146408438682556, 0.19633854925632477, 0.4259066581726074, ...
def tuint _ getstr ( * args ) : return _ snap. tuint _ getstr ( * args )
[ -0.6292049884796143, 0.23942473530769348, 0.18476007878780365, 0.17747238278388977, 0.8973645567893982, 0.5571388006210327, -0.0871686190366745, -0.9548105001449585, -0.6256439685821533, -1.0924149751663208, -0.34686070680618286, -1.112260341644287, -0.4094291925430298, -0.7925721406936646...
def check _ if _ get _ labels _ succeeds ( frauddetector _ client, label _ name ) : try : get _ labels _ response = api _ helpers. call _ get _ labels ( frauddetector _ client, label _ name ) return true, get _ labels _ response except frauddetector _ client. exceptions. resourcenotfoundexception as rnf : log. warning ...
[ -0.11728820949792862, 0.30019089579582214, 0.5197594165802002, -0.03745494410395622, 1.047555685043335, 0.21302711963653564, -0.9523122310638428, -0.7227339744567871, 0.13272249698638916, 0.28603777289390564, -0.12146194279193878, -0.5146672129631042, -0.2543318271636963, -0.00193423929158...
def recv ( self, termination = none, encoding = none, recv _ chunk = none ) : termination = termination or self. recv _ termination encoding = encoding or self. encoding recv _ chunk = recv _ chunk or self. recv _ chunk if not termination : return str ( self. raw _ recv ( recv _ chunk ), encoding ) if self. timeout is ...
[ 0.2105564922094345, -0.2076256275177002, 0.7554859519004822, -0.02447814680635929, -0.5776592493057251, -0.20477217435836792, -1.2682712078094482, 0.09225236624479294, -0.05629181116819382, -0.3392196595668793, 0.0779121145606041, 0.1440497785806656, 0.07241857051849365, -0.055788382887840...
def trapexitsignals ( self, func ) : for s in [ signal. sigterm, signal. sigint, signal. sighup, signal. sigquit ] : signal. signal ( s, func )
[ -0.870017945766449, 0.1334202140569687, 0.3030525743961334, 0.7010988593101501, 0.22419098019599915, 0.7502628564834595, 0.10522326827049255, -0.6985633373260498, -0.13103127479553223, 0.452168345451355, -0.9185823202133179, -0.4739231467247009, 0.7592979073524475, 0.5869790315628052, -0...
def test _ get _ required _ field _ names ( self ) : required _ fields = self. omniform. get _ required _ field _ names ( exclude _ with _ default = false ) self. assertnotin ('id ', required _ fields ) self. assertin ('title ', required _ fields ) self. assertnotin ('agree ', required _ fields ) self. assertin ('some ...
[ -0.7045378684997559, 0.10145731270313263, 0.8006176948547363, -0.14101053774356842, 0.036996740847826004, 0.5450519323348999, -0.43910884857177734, -0.08640541881322861, 0.015995534136891365, -0.5810712575912476, -1.3707503080368042, -0.7272962927818298, -0.5172348022460938, 0.141040608286...
def yield _ rows ( cursor, chunk _ size ) : chunk = [ ] for i, row in enumerate ( cursor ) : if i % chunk _ size = = 0 and i > 0 : yield chunk del chunk [ : ] chunk. append ( row ) yield chunk
[ 0.45805248618125916, -0.5412648916244507, 0.6197221279144287, 0.37117865681648254, -0.5579992532730103, -0.26886969804763794, -0.11223571002483368, 0.6349110007286072, -0.46542954444885254, -0.13865379989147186, 0.7250832319259644, 0.12911458313465118, -0.3109283149242401, 1.00676751136779...
def test _ object _ id _ field ( self ) : field = omnifield. _ meta. get _ field ('object _ id') self. assertisinstance ( field, models. positiveintegerfield ) self. assertfalse ( field. blank ) self. assertfalse ( field. null )
[ 0.6639949679374695, -0.002654412528499961, 0.44638171792030334, 0.07015977054834366, 0.6358571648597717, 1.4988226890563965, -0.3662573993206024, -0.24471642076969147, 1.012099027633667, 0.09451516717672348, -0.49493899941444397, -0.7033287286758423, -0.15373778343200684, -0.26397204399108...
def _ getoutcomesummarydisplayname ( self, outcome ) : try : return self. _ outcome _ names [ outcome ] except valueerror : return'unknown '
[ -0.8216626048088074, -0.3370087742805481, 0.6665139198303223, -0.4498378038406372, -1.7499430179595947, 0.4907059669494629, 0.2946969270706177, -0.23854556679725647, 0.750236451625824, 0.8181753754615784, 0.48481741547584534, -0.3800727128982544, 1.257568120956421, -0.6659561395645142, 0...
def shave ( a, xbits = 12, has _ undef = 0, undef = missing, chunksize = - 1 ) : n = len ( a ) if chunksize < 0 : chunksize = n a _ shaved, rc = shave32 ( a, xbits, has _ undef, undef, chunksize ) if rc : raise valueerror ('shave : error on return from shavemantissa _. shave32 : % d'% rc ) return a _ shaved
[ 0.24355337023735046, 0.2656440734863281, 0.5898180603981018, 0.24079276621341705, -0.8162112832069397, -0.5422905683517456, 0.02565915696322918, -0.21703729033470154, 0.7805595993995667, -0.336591899394989, -0.31364524364471436, 0.7082152366638184, -0.047956038266420364, 0.7028694748878479...
def testformatlogmessage ( self ) : msg ='test message'formatted _ msg = fake _ instance. formatlogmessage ( msg ) self. assertisinstance ( formatted _ msg, six. string _ types ) self. assertequal ('project : fake - source - project test message ', formatted _ msg )
[ 0.15468476712703705, 0.1878846436738968, 0.11479503661394119, -0.5171237587928772, 0.5525891780853271, 0.24998323619365692, -0.22512578964233398, -1.0565013885498047, 0.43321850895881653, -0.34137749671936035, 0.35882869362831116, 0.9153823852539062, -1.0050190687179565, 0.9745335578918457...
def get _ txt _ path ( cls, folder, year, year _ lookup ) : return os. path. join ( cls. get _ meps _ folder _ dir ( folder ), f " { year _ lookup [ year ] } su. txt " )
[ 0.19848352670669556, -0.2726103663444519, 0.4600713551044464, -0.546190619468689, -1.0605261325836182, 1.0424857139587402, 0.2780493199825287, 1.605534315109253, -0.005494816228747368, 0.25757163763046265, 0.36929842829704285, -0.005245842505246401, 0.07570002228021622, -0.4746561348438263...
def max _ rect1 ( data, m, n ) : maxarea = 0 ll = ( 0, 0 ) ur = ( - 1, - 1 ) for ll _ ix in xrange ( 0, n ) : for ll _ iy in xrange ( 0, m ) : for ur _ ix in xrange ( ll _ ix, n ) : for ur _ iy in xrange ( ll _ iy, m ) : ll _ t = ( ll _ ix, ll _ iy ) ur _ t = ( ur _ ix, ur _ iy ) area = _ area ( ll _ t, ur _ t ) if are...
[ 0.6474154591560364, 0.26372671127319336, 0.7903091907501221, 0.06659100949764252, -0.4714571237564087, -0.5398547053337097, -0.3567405939102173, 0.28796860575675964, 0.5125771164894104, -0.341974675655365, 0.38412657380104065, 0.035696614533662796, -0.0772327333688736, 0.7842383980751038, ...
def gethitsmp _ pungraph ( * args ) : return _ snap. gethitsmp _ pungraph ( * args )
[ -0.45885127782821655, 0.2636740207672119, 0.3603591322898865, 1.1065846681594849, -0.4327569305896759, -0.6815170645713806, 0.19025805592536926, 0.6631714105606079, 0.4870081841945648, 0.1669926643371582, -0.5108283758163452, -0.18225112557411194, -0.9476346373558044, -0.2558232843875885, ...
def test _ init ( self ) : p = blasttaxonassigner ( { } ) self. assertequal ( p. name,'blasttaxonassigner') # default parameters correctly initialized default _ params = {'min percent identity': 90. 0, \'max e value': 1e - 30, \'application':'blastn / megablast'} self. assertequal ( p. params, default _ params )
[ 0.1282409280538559, -0.48579782247543335, 0.23450137674808502, 0.6024876236915588, 1.130887508392334, 0.6744565963745117, -0.3402113616466522, 0.2995360493659973, -0.7137424945831299, 0.028254201635718346, -0.530802845954895, -0.5278850793838501, -0.0007028511026874185, 0.2840034067630768,...
def rf _ run _ path ( release : str = current _ release ) : return f " { get _ variant _ qc _ root ( release ) } / rf / rf _ runs. json "
[ -0.07086717337369919, -0.851840615272522, 0.2847459018230438, 0.39751875400543213, -0.29094913601875305, 0.2072315216064453, 0.46263962984085083, -0.6914071440696716, -0.7369046807289124, -0.0016490193083882332, 0.5058295130729675, 0.3888213336467743, -0.3295111060142517, 0.046563841402530...
def remove _ handlers ( ) : log = logging. getlogger ( ) logging. info ('remove _ handlers ( ) : loggers = % s ', log. handlers ) for handler in log. handlers : log. removehandler ( handler ) logging. info ('loggers = % s ', log. handlers )
[ 0.15968124568462372, -0.76068514585495, 0.3524535000324249, 0.1782461702823639, -0.060282476246356964, -0.08222086727619171, 0.0027919395361095667, 0.44181567430496216, -0.2707286477088928, -0.6261526942253113, -0.8823767900466919, 0.6872377395629883, -0.7208865284919739, 0.316747665405273...
def fromnpz ( self, pandz ) : try : newstr = zlib. decompress ( pandz [ : ] ) newfobj = cstringio. stringio ( newstr ) self. data = np. load ( newfobj ) except : print " unpickle and unzip. what did i catch? " assert 0 self. _ newcube = false
[ 0.22440218925476074, -1.3749263286590576, 0.24441662430763245, 0.017727823927998543, -0.7079311609268188, 0.3058043122291565, 0.20389388501644135, -0.4985329508781433, 0.1949746012687683, -0.9408557415008545, -0.7669376134872437, -0.12579160928726196, -1.164344072341919, -0.363712102174758...
def _ _ str _ _ ( self ) : return " % s " % [ self. deck [ card ]. _ _ str _ _ ( ) for card in xrange ( len ( self. deck ) ) ]
[ -0.13709865510463715, -0.735342800617218, 0.4919227063655853, -0.8533358573913574, -0.2637406587600708, 0.2249806523323059, -1.2970638275146484, -0.03210997208952904, -0.08988522738218307, -0.3583908975124359, 0.37268543243408203, 0.4427388608455658, 0.366092324256897, 0.4405810534954071, ...
def fastcoreperipherygc ( * args ) : return _ snap. fastcoreperipherygc ( * args )
[ -0.02128194086253643, 1.0147114992141724, 0.6141493916511536, 0.16237716376781464, 0.17245234549045563, 0.09105487912893295, 1.1657661199569702, -0.02392122521996498, -0.45859405398368835, 0.031116455793380737, 0.009973764419555664, -1.0373456478118896, -0.992870569229126, 1.03540515899658...
def loadreferences ( references = [ ] ) : if not references : references = cmds. file ( reference = true, loadreferencedepth ='all') for ref in references : if not cmds. referencequery ( ref, isloaded = true ) : cmds. file ( ref, loadreference = true )
[ -0.004667177796363831, -0.16001208126544952, 0.5910474061965942, 0.04639299213886261, 0.9323240518569946, 0.9365342259407043, 0.3324549198150635, -0.9920008182525635, 0.2940681278705597, -0.364105224609375, 0.49462732672691345, 0.059466294944286346, -1.3048847913742065, 1.3024195432662964,...
def component _ name ( self ) - > str : return conf. instance [ " notation " ] [ " setup _ tags " ] [ " names " ] [ " hyper " ]
[ 0.17651496827602386, -0.8053414225578308, 0.5992197394371033, -0.08844762295484543, 0.49957334995269775, 0.5047261714935303, 0.19690720736980438, 0.1965421736240387, -0.44594094157218933, 0.7683483958244324, -0.29322341084480286, -0.13021260499954224, 0.7496179342269897, -0.176402881741523...
def gyro _ error ( self ) : raw _ error = self. gyro _ goal - hardware. gyro. getangle ( ) wrapped _ error = raw _ error - 360 * round ( raw _ error / 360 ) return wrapped _ error
[ -0.5672903656959534, -0.09554237127304077, 0.30645301938056946, -0.03042568266391754, 0.1008048951625824, 0.5612531304359436, 0.01060882955789566, -0.4419778287410736, -0.27606117725372314, -0.03997568041086197, 0.20269106328487396, 0.9544575214385986, 0.06103910505771637, -0.3940639793872...
def has _ stock _ ingredients ( self ) : # looks a bit weird but these queries are expensive. # we should return true asap if self. get _ stocked _ recipemalts ( ) : return true if self. get _ stocked _ recipehops ( ) : return true if self. get _ stocked _ recipeyeasts ( ) : return true return false
[ -0.989948034286499, -0.3384537994861603, 0.358075350522995, 0.5792090892791748, 0.5266444087028503, -0.43585532903671265, -0.32142069935798645, 0.3245260417461395, 0.1360701471567154, -0.3811737298965454, -0.61859130859375, 0.16850437223911285, -0.06369844824075699, 1.5578562021255493, -...
def rsa ( args ) : print ( " generating new rsa private. pem and public. pem " ) rsakey = rsakey ( ) pk = rsakey. generate _ private _ key ( password = args. password ) with open ( args. path. rstrip ('/') +'/ private. pem ','w') as f : f. write ( pk ) with open ( args. path. rstrip ('/') +'/ public. pem ','w') as f : ...
[ -1.1618221998214722, -0.8420191407203674, 0.6363571286201477, 0.042495377361774445, 0.8969696760177612, 0.5791059732437134, 0.6651484370231628, 0.7370321750640869, -0.5042246580123901, 0.07531086355447769, -0.45126187801361084, 0.40131211280822754, -0.12839972972869873, 0.7693964242935181,...
def component _ name ( self ) - > str : return conf. instance [ " notation " ] [ " setup _ tags " ] [ " names " ] [ " smbh " ]
[ 0.11195378005504608, -0.9319790601730347, 0.5680086016654968, 0.31079867482185364, 0.04639453440904617, 0.7481676340103149, 0.3352773189544678, -0.0012804791331291199, -0.04883274808526039, 1.1201636791229248, -0.12752783298492432, -0.37571272253990173, 0.2712930142879486, 0.18325980007648...
def raw _ data ( self ) : return self. _ _ raw _ data
[ -0.5445201396942139, -0.20914319157600403, 0.11709457635879517, -0.46371516585350037, -0.7112170457839966, 1.114652395248413, -0.4067549407482147, -0.5233286023139954, 0.5726026296615601, -1.0526009798049927, -0.45026805996894836, 0.735074520111084, 0.7176412343978882, -0.36603644490242004...
def test _ can _ retrieve _ own _ post ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post = user. create _ public _ post ( text = make _ fake _ post _ text ( ) ) url = self. _ get _ url ( post ) response = self. client. get ( url, * * headers ) self. assertequal ( res...
[ 0.5667943358421326, 0.2966369092464447, 0.4847659468650818, 0.8695259094238281, 0.5753803253173828, 0.43106338381767273, 0.16985724866390228, -0.3719503581523895, -0.06669620424509048, -1.631892204284668, -0.9337467551231384, -0.027920108288526535, -0.08692052960395813, -0.5297948718070984...
def envelope _ status ( self ) : return self. docusign _ parser. envelope _ status
[ -0.579707682132721, -0.6902459263801575, 0.3149512708187103, -0.34301987290382385, -0.3590003550052643, 0.5449553728103638, -0.3247603178024292, 0.17811420559883118, 0.7537748217582703, 0.012485770508646965, -1.1351546049118042, 0.6556223034858704, -0.2047710418701172, 0.5193907022476196, ...
def generate _ url ( self ) : url2 = " http : / / api. foobot. io / v2 / device / " start _ url = create _ new _ sensor. converse _ name ( self. start ) end _ url = create _ new _ sensor. converse _ name ( self. end ) url = url2 + str ( self. uuid ) + " / datapoint / " + start _ url + " / " + end _ url + " / " + str ( ...
[ -0.8475014567375183, 0.133036807179451, 0.5701943039894104, -0.061485711485147476, 0.33954083919525146, 0.8197599053382874, -0.42654022574424744, 0.05236095190048218, -1.082160234451294, -0.052468858659267426, -0.3615366816520691, -0.28945714235305786, 0.02973029948771, 0.01138604432344436...
def update ( self ) : try : self. _ client. update ( ) except meteofranceerror as exp : _ logger. error ( " unexpected error when updating the meteofrance proxy : % s ", exp )
[ -0.4946727752685547, 0.19063186645507812, 0.22488532960414886, -0.8024584054946899, -0.014661742374300957, -0.729488730430603, -0.5263103246688843, 0.0398934930562973, -1.0769124031066895, 0.08725742995738983, 0.6272502541542053, -0.13857445120811462, -0.9779019355773926, -0.33442825078964...
def _ _ init _ _ ( self, licence _ key : int ) : self. api = requests. session ( ) self. api. headers. update ( # unless explicitly set to json the api will return xml { " accept " : " application / json " } ) if not licence _ key : raise valueerror ( " invalid licence key! " ) self. api. params. update ( { " licenceke...
[ -0.476727694272995, -0.7389457821846008, 0.4612285792827606, -0.2573789954185486, -0.6964257955551147, -0.5649163722991943, -1.1391280889511108, 0.25006067752838135, 0.621276319026947, 0.4855814576148987, -0.11981452256441116, -0.24035178124904633, -0.35227254033088684, 0.7730146050453186,...
def test _ initial ( self ) : field = omniemailfield. _ meta. get _ field ('initial _ data') self. assertisinstance ( field, models. emailfield ) self. asserttrue ( field. blank ) self. asserttrue ( field. null )
[ 0.5026834011077881, 0.26566147804260254, 0.38243338465690613, -0.6717991232872009, 0.7679063081741333, 1.065067172050476, -0.23964379727840424, 0.0713777244091034, 0.7143846750259399, -0.679118275642395, -0.7158805131912231, 0.833805501461029, -0.04948139935731888, -0.14427919685840607, ...
async def _ set _ presence ( self, *, activity = keep _ current, status = keep _ current ) : new _ activity = self. _ current _ activity if activity = = keep _ current else activity new _ status = self. _ current _ status if status = = keep _ current else status await self. change _ presence ( activity = new _ activity...
[ -1.0113508701324463, -1.6337306499481201, 0.7629435658454895, 0.5222738981246948, 0.3311905562877655, 0.8123732805252075, -0.04967561364173889, 0.5359962582588196, 0.11401494592428207, 1.3282657861709595, 0.1134997233748436, 0.502002477645874, -0.05664161592721939, 0.07791435718536377, 1...
def lookup _ country ( country _ string = none, logger = none ) : default = " xx " if country _ string and re. match ( r " [ a - z ] [ a - z ] $ ", country _ string, re. ignorecase ) : country _ string = country _ string. upper ( ) else : logger. info ( " * * invalid country ( % s ), returning default ( % s ) ", countr...
[ -0.29738473892211914, -0.10189154744148254, 0.7671529054641724, 0.1489693820476532, 0.7544270157814026, 0.38321977853775024, -0.07360512763261795, 0.6299489736557007, 0.5638940334320068, 0.4947599768638611, 0.2627635896205902, -0.31760796904563904, -0.9015086889266968, -0.1861066073179245,...
def getecasidemail ( self, ecas _ id ) : if self. internalmapping : ecas _ user = self. getecasiduser ( ecas _ id ) if ecas _ user : return ecas _ user. email else : # we cannot retrieve the user's email if we don't use the mapping return " internal ecas mapping disabled "
[ -0.29512715339660645, 0.05990010127425194, 0.3751697838306427, -0.13706931471824646, -0.8827576637268066, 0.1379443109035492, 0.2639240622520447, 0.01747937500476837, 0.9938104152679443, -0.24461741745471954, 0.8183503150939941, 0.2814321517944336, 0.4833099842071533, -0.5345032215118408, ...
def _ edit _ bits ( bitstring, position, length, value ) : powers = list ( range ( length ) ) conf = " " # iterate through the bits ( powers of 2 ) # from most significant bit to least significant bit powers. reverse ( ) for power in powers : if value > = 2 * * power : conf = conf +'1'value - = 2 * * power else : conf ...
[ -0.0088533079251647, -0.7943596243858337, 0.46546414494514465, -0.764966607093811, -0.4186180531978607, -0.15183031558990479, 0.1682400107383728, 0.02417387254536152, -0.2024194300174713, 0.10698054730892181, 0.05646495521068573, 0.5473701357841492, 0.15993739664554596, -0.6449013948440552...
def read ( filename, * * kwargs ) : return groups. read ( filename, * * kwargs )
[ -0.4538761079311371, -0.2637716829776764, 0.386361688375473, -0.16937704384326935, -0.6171801686286926, -0.027367282658815384, -0.26746225357055664, -0.12172549217939377, -1.8683615922927856, -0.43715763092041016, 0.8418833613395691, 0.36886581778526306, -0.8237400650978088, -0.63428658246...
def bandit ( session, extras, dilibraries = dilibraries ) : session. log ( f'run bandit for { lib _ name }') standard _ di _ bandit ( session, extras = extras, dilibraries = dilibraries )
[ -0.6335812211036682, -0.12571047246456146, 0.3175131678581238, 0.8454087972640991, 0.0020029377192258835, 0.08994489163160324, 0.09254487603902817, 0.5261496901512146, 0.16968673467636108, -0.21087875962257385, -0.4773423671722412, 0.34029603004455566, 0.6876109838485718, 0.012629876844584...
def getfltattrdate ( self, * args ) : return _ snap. pneanetmp _ getfltattrdate ( self, * args )
[ 0.5623316168785095, 0.28968745470046997, 0.30846354365348816, -0.569236695766449, 0.680745005607605, 0.4500594139099121, -0.5788291096687317, -0.6411250233650208, -0.8856579661369324, -1.2835112810134888, -0.22563119232654572, -0.30210763216018677, -0.7112042307853699, 0.6971762776374817, ...
def _ mapping ( self, corpus _ processed ) : word _ counts = counter ( ) for sentence in corpus _ processed : word _ counts. update ( sentence ) for i, word in enumerate ( word _ counts. keys ( ) ) : self. word _ to _ id [ word ] = i self. id _ to _ word [ i ] = word self. v = len ( self. word _ to _ id ) return
[ -0.1315634548664093, -0.11248154193162918, 0.4297531545162201, -0.7948291301727295, 0.2968616187572479, -0.13170687854290009, 0.23320668935775757, 0.6655960083007812, -0.4491046369075775, 0.883164644241333, -0.4681047797203064, -0.5619014501571655, -0.030041243880987167, 0.5844708681106567...
def log _ scope _ push ( self, scope : str ) - > none : self. _ log _ scopes. append ( scope )
[ -0.2723745107650757, 0.4086104929447174, 0.6036925315856934, -0.9521889686584473, 0.09861751645803452, 0.22466149926185608, -1.3544237613677979, -0.5970026850700378, 0.5504904985427856, 0.6250509023666382, -0.2696281671524048, 1.8062037229537964, -0.20565637946128845, -0.10851112753152847,...
def reservenodedegs ( self, * args ) : return _ snap. pngraphmp _ reservenodedegs ( self, * args )
[ -0.6126357913017273, 1.2421774864196777, 0.19658982753753662, -0.6145617961883545, 1.2797116041183472, -0.089661605656147, 0.42817017436027527, -1.3149619102478027, -0.9248325824737549, -0.6740047335624695, -0.6452577710151672, -0.2177305966615677, -1.6241562366485596, 0.2768763303756714, ...
def containkey ( self, value ) : for key in self. keys : if key = = value : return true return false
[ -0.7496369481086731, -0.575607180595398, 0.3526028096675873, 0.09030169993638992, -0.48946934938430786, 0.34975019097328186, -0.5109980702400208, -0.5682263970375061, -0.48782235383987427, 0.6183621287345886, -0.12328541278839111, -0.5325993895530701, -1.2186448574066162, 0.493056297302246...
def fixedformatter ( self, port, path ) : self. output _ formatters [ port ] = lambda inputs, wildcards : path
[ -0.5631378889083862, -1.1715987920761108, 0.1387127935886383, -0.6012174487113953, -0.4007047414779663, -0.29217028617858887, 0.5350127816200256, -0.1224604994058609, -0.5271341800689697, -1.427249789237976, -0.3363545835018158, 0.7425844669342041, -0.32109877467155457, 0.6492587924003601,...
def eval _ numerical _ gradient ( f, x ) : if ( _ _ debug _ _ ) : print'inside eval _ numerical _ gradient ( f, x = = ', x,')...'# endif debugging fx = f ( x ) # evaluate function value at original point grad = np. zeros ( x. shape ) h = 0. 00001 # iterate over all indexes in x it = np. nditer ( x, flags = ['multi _ in...
[ 0.11034383624792099, 0.19863606989383698, 0.6222947835922241, -0.1876252144575119, -0.6921099424362183, 0.2752450108528137, -0.02623228169977665, 0.30253133177757263, -1.181342601776123, 0.24561934173107147, -0.18816448748111725, 0.3259299695491791, -0.04219123721122742, 0.0322228409349918...
def _ _ eq _ _ ( self, other : object ) - > bool : return list ( self ) = = other
[ -0.9487642645835876, -1.015689730644226, 0.4448625147342682, 0.4472976326942444, 0.9101508259773254, 0.6928958892822266, -0.20014819502830505, -0.05679039657115936, 1.2518646717071533, 0.38923290371894836, -2.04119873046875, -0.2691541612148285, 0.19649311900138855, -0.18508195877075195, ...
async def a _ trigger _ tx ( self, symbol, * * kwargs ) : info = self. trigger _ tx ( symbol, * * kwargs ) if info is not none and'id'in info. keys ( ) : # pprint ( info ) self. order _ ids [ time. time ( ) ] = info ['id'] asyncio. get _ event _ loop ( ). create _ task ( self. a _ watch _ id ( info ['id'], symbol = sym...
[ -0.44642242789268494, 0.789344847202301, 0.6885668039321899, 0.08691567927598953, 0.06606714427471161, -1.2716413736343384, 0.032771036028862, -0.5881873965263367, 0.35069119930267334, 0.1828208565711975, -1.521148681640625, -0.3276209831237793, 0.2636687159538269, -0.3551877737045288, -...
def on _ button6 _ clicked ( self, widget ) : exit ( 0 )
[ 0.8613455891609192, -0.31335771083831787, 0.29600706696510315, 0.4365364611148834, 0.017236221581697464, 0.36382541060447693, 0.5619126558303833, 0.44392257928848267, -0.17991240322589874, 0.8078877329826355, -0.3124864101409912, -0.4029372036457062, -0.08073210716247559, 0.014816363342106...
def computenumevents ( self ) : self. numevents = int ( math. log ( self. duration ) / self. interval ) return
[ 0.6889201402664185, 0.41544654965400696, 0.3841780424118042, 0.32813015580177307, 0.5226287841796875, 0.06702356040477753, 0.8095872402191162, 0.9074209332466125, 0.15088751912117004, -0.22104790806770325, -0.5361692905426025, 0.22066369652748108, 0.19337770342826843, -0.4676922857761383, ...
def _ get _ lifetime _ sparseness ( self, unit _ id ) : df = self. conditionwise _ statistics. drop ( index = self. null _ condition, level = 1 ) responses = df. loc [ unit _ id ] ['spike _ mean']. values return lifetime _ sparseness ( responses )
[ 0.18326057493686676, 0.2741687297821045, 0.27182286977767944, -0.6266509294509888, 0.5606365203857422, -0.2218974530696869, 0.12247704714536667, 0.05236970633268356, 1.1388444900512695, 0.583604097366333, 0.03812047094106674, 0.3309541344642639, -0.2272060066461563, 0.5026125907897949, -...
def compmatch ( component ) : # convert the decimal point from the current locale to a '.'global decimal _ point if not decimal _ point : decimal _ point = locale. localeconv ( ) ['decimal _ point'] if decimal _ point and decimal _ point! = '.': component = component. replace ( decimal _ point, ". " ) # remove any comm...
[ 0.8990447521209717, -0.9207477569580078, 0.7540807127952576, -0.42539626359939575, 0.438917875289917, -0.34478092193603516, -0.08009663969278336, -0.15198081731796265, -0.18953672051429749, -0.4081262946128845, 0.18665960431098938, -0.577542245388031, -0.6250523924827576, -0.32664752006530...
def selectvalues ( self, parse _ args _ id ) : return self. cursor. execute ( " select * from channels where channel _ id = { } ". format ( parse _ args _ id ) )
[ 0.09235937893390656, 0.02045561745762825, 0.1726074069738388, -0.6446636915206909, 1.3057767152786255, -0.7740151882171631, -1.4119099378585815, -0.9566036462783813, -0.7701364159584045, -0.289546400308609, 0.6214663982391357, 0.3661748468875885, -0.8088085651397705, 0.14072412252426147, ...
def manageddependencyderivation ( cls ) : # my local nodes memoize their values yield cls. memo # support arbitrary value conversions yield cls. preprocessor yield cls. postprocessor # notify their clients of changes to their values and respond when the values of their # operands change yield cls. dependency yield cls....
[ -0.27227646112442017, 0.25661319494247437, 0.5458157658576965, -0.6970499753952026, -0.03021210804581642, 0.04977809637784958, 0.17284902930259705, -0.5855627655982971, 0.28893861174583435, -0.6546173095703125, -0.5110325813293457, 0.614525556564331, 0.4972246587276459, 0.9462743401527405,...
def pick _ zipped _ projects ( directory ) : ext = '. tgz'subs = [ x [ 0 ] for x in os. walk ( directory ) ] projects = [ ] for sub in subs : for f in os. listdir ( sub ) : if f. endswith ( ext ) : projects. append ( os. path. join ( sub, f ) ) return projects
[ -0.04067738354206085, 0.13942915201187134, 0.8677007555961609, 0.47346287965774536, -0.730088472366333, 0.45060989260673523, 0.8803301453590393, -0.04388795793056488, 0.9162871837615967, 1.0340003967285156, -0.11645357310771942, 0.013598236255347729, -0.6582658290863037, 0.1617747843265533...
def _ toolname ( self, name = none ) : return " tool _ name "
[ 0.30306005477905273, -0.14629727602005005, 0.4115007519721985, -0.4368067979812622, -0.6018974781036377, -0.5716626048088074, -0.2956717610359192, -0.4283292591571808, -0.22113603353500366, 0.21159978210926056, -0.3198593556880951, -0.08006933331489563, 1.5258574485778809, -0.1234312430024...
def rs _ show _ clusters ( rs _ mgmt, args ) : cluster _ list = rs _ mgmt. get _ cluster _ list ( ) for cluster in cluster _ list : if cluster ['clusteridentifier']. find ( args. pattern ) > = 0 : print cluster ['clusteridentifier']
[ -0.15514545142650604, -0.11559038609266281, 0.4209885597229004, 0.08721796423196793, 0.3782302439212799, 0.37754446268081665, 0.67586749792099, 0.016398251056671143, 0.5694701075553894, 0.3552645742893219, 0.49304884672164917, 1.2403839826583862, -0.6368008852005005, -0.044547609984874725,...
def string _ to _ args ( s ) : # for from _ qasm token = s. split ('' ) if len ( token ) = = 1 : args = token elif len ( token ) > 1 : args = [ token [ 0 ],''. join ( token [ 1 : ] ) ] else : raise valueerror ( " can't split string { }. ". format ( s ) ) return args
[ -0.13992325961589813, -0.5082932710647583, 0.5135388970375061, -0.33726271986961365, 0.12932731211185455, -0.47793278098106384, -0.14218641817569733, 0.6302921772003174, 0.3667692244052887, 0.8873240351676941, -0.06488197296857834, 0.6300791501998901, -0.44671639800071716, -0.4874101579189...
def plotsccdistr _ pneanet ( * args ) : return _ snap. plotsccdistr _ pneanet ( * args )
[ 0.16915884613990784, 0.12732438743114471, 0.23532791435718536, -0.08623895049095154, -0.39292603731155396, 1.3113503456115723, -0.7069459557533264, -0.27768775820732117, -1.0322585105895996, -1.2392053604125977, -0.3253623843193054, 0.005247637629508972, -0.4816330671310425, 0.425026714801...
def parse _ file ( a _ fname ) : try : # open file for reading ifile = sys. stdin if a _ fname! = " - " : ifile = codecs. open ( a _ fname,'r ', encoding ) # iterate over file's lines broken = false conll _ sentence = conllsentence ( ) for iline in ifile : iline = iline. strip ( ) if not iline : if broken : conll _ sen...
[ 1.2520763874053955, -0.3555448353290558, 0.7658392786979675, 0.704380452632904, -0.2637366056442261, 0.08563292026519775, 0.42497801780700684, 0.7504551410675049, -0.4579196870326996, 0.9514756798744202, 0.7052640318870544, -0.8947672247886658, 0.031361810863018036, 0.954258382320404, 0....
def _ generate _ output ( file _ name : str, data : bytes, output _ path : str ) - > none : out _ path = output _ path + file _ name + '. xml'echo ( f'\ nsaving file " { file _ name } " " to path " { out _ path } "...') total _ size = len ( data ) block _ size = 1024 with tqdm ( total = total _ size, position = 0, leav...
[ 0.5232497453689575, 0.018739232793450356, 0.6708694100379944, 0.030610457062721252, 0.06990017741918564, 0.3504272699356079, 0.6820057034492493, 0.08111019432544708, -0.6819935441017151, 0.6520010232925415, -0.37692078948020935, -0.6164703965187073, -0.4558469355106354, 0.1771380752325058,...
def tographmp3 _ pngraphmp ( * args ) : return _ snap. tographmp3 _ pngraphmp ( * args )
[ -0.9170010685920715, 0.6124863624572754, 0.29172882437705994, -0.9595410823822021, 0.9342972636222839, 0.7255011200904846, -0.09635649621486664, -0.9925885796546936, 0.14776116609573364, 0.48573538661003113, -0.480182409286499, -0.10243390500545502, -1.346107006072998, -0.26625093817710876...
def parse _ feature _ relation ( rule _ name ) : parsed = rule _ parser. match ( rule _ name ) if parsed is not none : return parsed. groups ( ) [ 1 ] else : return rule _ name. partition (': :') [ - 1 ]. partition (': :') [ 0 ]
[ 0.30032411217689514, -0.2556499242782593, 0.6322917938232422, -0.2551781237125397, 0.5007315874099731, -0.4118623435497284, -0.07577188313007355, 0.7841946482658386, -0.34136471152305603, 0.2852223515510559, 0.7776097059249878, 0.08893599361181259, -0.6611326932907104, -0.4845940172672272,...
def get _ gradnorm ( self, batch _ samples, batch _ labels ) : self. model _ obj. to ( self. device ) if self. grad _ sampler _ model is none : self. grad _ sampler _ model = gradsamplemodule ( self. model _ obj ) self. grad _ sampler _ model. _ module. train ( ) grad _ norm = [ ] batched _ samples = torch. split ( bat...
[ -1.0354870557785034, -0.5723996162414551, 1.010399580001831, 0.7727572321891785, -0.04099629819393158, 0.4501986801624298, 0.31814783811569214, 0.13305819034576416, -0.8534038066864014, 0.3428075313568115, -0.20913578569889069, 0.2110329270362854, -0.15642006695270538, 0.5344986319541931, ...
def down _ stack _ port ( port ) : peer _ port = port. stack ['port'] peer _ port. stack _ down ( ) port. dyn _ finalized = false port. enabled = false port. dyn _ phys _ up = false port. dyn _ finalized = true
[ -0.6643568873405457, 0.5313717722892761, 0.5632830262184143, -0.20819881558418274, 1.2827833890914917, -0.1556100845336914, 1.2690575122833252, -0.07581380754709244, -0.46655431389808655, -0.11586400866508484, -0.21440725028514862, -0.07714273035526276, -0.7526453137397766, 0.2693850696086...
def detail ( choose _ num, books ) : print ( " \ n - - - - - - - - - book's detail - - - - - - - - - - - - - - - - " ) try : print ( " autor : { 0 } ". format ( books [ choose _ num ] [ " autor " ] ) ) print ( " title : { 0 } ". format ( books [ choose _ num ] [ " title " ] ) ) print ( " price : ¥ { 0 } ". format ( boo...
[ 0.5156716704368591, -0.6262422800064087, 0.8139964938163757, 0.7526455521583557, 0.31741803884506226, 0.8514346480369568, 0.12975405156612396, -0.08153637498617172, -0.8995776772499084, -0.22638463973999023, 0.2210879772901535, 1.2564367055892944, 0.11151988059282303, 0.030261656269431114,...
def digest _ filename ( filename, algorithm = _ default _ hash _ algorithm, hash _ library = _ default _ hash _ library ) : # open'filename'in read + binary mode. file _ object = open ( filename,'rb') # create digest _ object and update its hash data from file _ object. # digest _ fileobject ( ) raises : # ssl _ common...
[ 0.20199565589427948, -1.1537631750106812, 0.703342080116272, 0.6765089631080627, -0.19749616086483002, 0.9258477687835693, 0.6652776002883911, 0.15074826776981354, -0.681381344795227, -0.04018396884202957, -0.20698897540569305, 0.1830696314573288, 0.4372914135456085, -0.37272825837135315, ...
def getnumlinks ( self ) : linkcount = 0 for c in components : linkcount + = c. getoutputs ( ). size ( ) return linkcount
[ -0.18784888088703156, -0.3010639250278473, 0.6169151067733765, -0.16588404774665833, 1.08694326877594, -0.5789121985435486, 0.7103462219238281, 0.6724245548248291, 0.29191482067108154, -1.7493247985839844, -0.3931000530719757, -0.2472723424434662, -0.19100812077522278, 0.6313203573226929, ...
def gen _ arrows ( x, t = 0 ) : # generate an array for the integration data # notation : # x [ 0 ] ~ x, x [ 1 ] ~ y # y [ 0 ] ~ x ', y [ 1 ] ~ y'x1 = x [ 1 ] x2 = gamma1 * np. cos ( omega1 * t ) - ( delta1 * x [ 1 ] + x [ 0 ] * ( alpha1 + beta1 * x [ 0 ] * * 2 ) ) return np. array ( [ x1, x2 ] )
[ -0.79227614402771, -0.4109635353088379, 0.6849746704101562, -0.8524605631828308, 0.5022860765457153, 0.5853843688964844, 0.04949866607785225, -0.15220101177692413, -0.573795735836029, 0.9584335088729858, -1.1740695238113403, 0.39936575293540955, 0.2216062992811203, -0.31394967436790466, ...
def togglespeechverbosity ( self, inputevent = none ) : value = _ settingsmanager. getsetting ('speechverbositylevel') if value = = settings. verbosity _ level _ brief : self. presentmessage ( messages. speech _ verbosity _ verbose ) _ settingsmanager. setsetting ('speechverbositylevel ', settings. verbosity _ level _ ...
[ -0.25850918889045715, 0.14427387714385986, 1.0511161088943481, 0.2294703871011734, 0.6915096044540405, 0.30249813199043274, -0.5895430445671082, -0.5313678979873657, 0.3678264617919922, 0.3638938367366791, -0.3884426951408386, 0.6532737612724304, -0.3669320046901703, 1.0291788578033447, ...
def extract _ noscript _ from _ html ( input _ ) : if isinstance ( input _, bs4. beautifulsoup ) : bs = input _ elif isinstance ( input _, basestring ) : bs = parse _ html ( input _ ) else : raise valueerror ( " unknown input _ - expected str or bs4. beautifulsoup " " got'% s'" % ( type ( input _ ) ) ) try : tag _ stri...
[ -0.29794588685035706, -0.127169668674469, 0.5729371905326843, 0.5675134658813477, -0.09429483115673065, -0.6439062356948853, -0.2962346076965332, -0.6452059149742126, 0.21246683597564697, 0.6298269629478455, -0.3785027265548706, 0.5772210359573364, -0.5298863053321838, 1.2578634023666382, ...
def episode _ step ( self, action : dict ) : # def episode _ step ( self, action ) : # self. simulator. step ( action [ " command " ] ) # action = np. random. randint ( self. action _ size ) # action = self. simulator. act ( state, 0. 0 ) # select an action print ( " episode step : : : " ) print ( " action debug : " ) ...
[ -0.6699042916297913, -0.5561668276786804, 0.4039948880672455, -0.6010947823524475, 0.4019603729248047, 0.21756543219089508, 0.010838408954441547, 0.0659426674246788, 0.5733388662338257, 0.11893213540315628, -0.47513723373413086, 0.8602630496025085, 0.34628283977508545, 0.035171035677194595...
def changecontext ( self, * args ) : return _ snap. ptable _ changecontext ( self, * args )
[ -1.2556384801864624, 0.7648235559463501, 0.6968090534210205, 0.9625145196914673, 0.1919150948524475, 0.18785324692726135, 1.2700673341751099, -0.00762807484716177, -1.0264297723770142, 0.6127865314483643, -0.239939883351326, 0.05857754498720169, -0.6369168758392334, 0.4100193381309509, -...
def plot _ signal ( result, start = none, figsize = ( 20, 1 ), grid = false, logy = false, start _ min _ max = [ - 1., 1. ] ) : import matplotlib. pylab as plt fig, ax = plt. subplots ( figsize = figsize ) if logy : ax. semilogy ( np. arange ( len ( result ) ), result ) else : ax. plot ( np. arange ( len ( result ) ), ...
[ 0.5491127371788025, 0.3057248592376709, 0.6536720991134644, 0.6873060464859009, -0.38643941283226013, -0.5783141851425171, -0.41402244567871094, -0.26004037261009216, 0.6586431860923767, -0.21985489130020142, -0.7001357674598694, 1.5653992891311646, -0.07007242739200592, 0.1275798529386520...
def get _ text _ area ( self ) : return self. _ _ text _ area
[ -0.2234990894794464, -0.6783173084259033, 0.441351056098938, -0.8030997514724731, -0.5579736828804016, -0.054788943380117416, 0.8124046325683594, 0.3437015116214752, -0.2330627143383026, -0.16531215608119965, 1.016832947731018, 0.31071504950523376, -0.6998061537742615, 0.5795352458953857, ...
def run _ in _ parallel ( all _ build _ errors, all _ spelling _ errors, current _ packages, docs _ only, jobs, spellcheck _ only, verbose, ) : with multiprocessing. pool ( processes = jobs ) as pool : if not spellcheck _ only : run _ docs _ build _ in _ parallel ( all _ build _ errors = all _ build _ errors, current _...
[ -0.36832553148269653, 0.0648888424038887, 0.4362127482891083, 0.7196313142776489, 0.34375888109207153, 0.9321685433387756, 0.3461208641529083, 1.0279525518417358, 0.3407100439071655, -0.015413345769047737, 0.7739235162734985, 1.3010497093200684, -0.731387734413147, 0.6505147218704224, 0....
def reset _ state ( self, batchsize : int = 1 ) : self. y = torch. zeros ( ( batchsize, self. n ), device = self. device ) super ( ). reset _ state ( batchsize )
[ -0.5227502584457397, 0.5057467222213745, 0.4678887724876404, 1.0015292167663574, -0.20260995626449585, -0.4569447338581085, 1.058294653892517, 0.15756861865520477, -0.05823328718543053, -0.6444905996322632, -0.9535784721374512, 0.5858798027038574, 0.08378050476312637, -0.12603048980236053,...
def genfull _ pngraph ( * args ) : return _ snap. genfull _ pngraph ( * args )
[ -0.7215660214424133, 0.7172824144363403, 0.6395290493965149, 0.26960286498069763, -0.5600407719612122, 0.38796958327293396, 0.3507012128829956, 0.14373604953289032, -0.4411773681640625, 0.21111641824245453, -1.6792150735855103, -0.44099971652030945, 0.08281286060810089, -0.1844415664672851...
def test _ retrieves _ post _ community _ member ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) community = make _ community ( ) post _ creator = make _ user ( ) post _ creator. join _ community _ with _ name ( community _ name = community. name ) post = post _ creator...
[ 1.2564102411270142, -0.08777903020381927, 0.4820024371147156, 0.5907464623451233, 0.7016823291778564, 0.0196556206792593, -0.44576510787010193, -0.6443582773208618, -0.8406509160995483, -0.9845731854438782, -0.5114238858222961, -0.9589748382568359, -1.1534227132797241, -0.3249567747116089,...
def make _ graph ( self, is _ train : bool, is _ frozen : bool ) : # initialize the sparse placeholders self. init _ sparse _ placeholders ( input _ units = self. _ metadata [ input _ shape ] [ - 1 ], is _ frozen = is _ frozen ) hidden = self. _ placeholders [ inputs ] for hidden _ idx, hidden _ units in enumerate ( se...
[ -0.24955588579177856, 0.9896689653396606, 0.4619078040122986, 0.21486283838748932, -0.03509749099612236, 0.1714109182357788, 0.72670978307724, 0.6966769099235535, -0.3813028335571289, 0.6987752318382263, -0.16872282326221466, 0.2822757661342621, 0.34169092774391174, -0.8845698237419128, ...
def get _ master _ mesh ( self ) - > str : # we assume the lasif domain is the inversion grid if self. master _ mesh is none : path = self. lasif _ comm. project. lasif _ config [ " domain _ settings " ] [ " domain _ file " ] self. master _ mesh = unstructuredmesh. from _ h5 ( path ) return self. master _ mesh
[ 0.7753047943115234, 0.645605206489563, 0.38350099325180054, 0.4609620273113251, 0.05449952557682991, 0.8739256262779236, 0.2691906988620758, 0.2667321562767029, -0.39321446418762207, -0.931551992893219, -0.3435060977935791, 0.7540296912193298, -0.010226957499980927, -0.15823504328727722, ...
def build ( self, linux _ ver, cores = none, cflags = none ) : if cores is none : cores = 1 if cflags is none : cflags = " - march = native - mtune = native " if " - o " not in cflags : cflags + = " - o3 " built = false pid _ file = " / tmp / docker. pid " build _ name = " compile _ kernel " dockerfile = self. docker _...
[ -0.5780709981918335, -0.7370031476020813, 0.9635712504386902, -0.185334250330925, 0.15559859573841095, 0.29650819301605225, 0.5111381411552429, 0.5262491703033447, -0.5243479013442993, -0.783312976360321, -0.2988711893558502, 0.10132477432489395, -0.040936920791864395, 1.1781589984893799, ...
def plot _ clusters ( data, centroids ) : # assigning the data points to clusters / centroids. clusters = [ [ ] for _ in range ( centroids. shape [ 0 ] ) ] # the shape attribute for numpy arrays returns the dimensions of the array. # if y has n rows and m columns, then y. shape is ( n, m ). so y. shape [ 0 ] is n. for ...
[ 0.8030766844749451, -0.09727044403553009, 0.24040229618549347, 0.3995446562767029, -0.6250134706497192, 0.4674532115459442, 0.12388787418603897, 0.024115383625030518, 0.5974859595298767, 0.10475760698318481, 0.8559426069259644, 1.1799324750900269, 0.23729509115219116, -0.513444721698761, ...
def _ b _ floordiv _ ( b, p ) : rr = b. divmod ( p ) return rr. first
[ 0.39740630984306335, 0.3933573067188263, 0.2764695882797241, 0.648656964302063, 0.46658411622047424, 0.27056998014450073, 0.1421702802181244, -0.474893182516098, -0.2867068350315094, -0.5735803842544556, 0.5849270224571228, 0.3566586971282959, -1.106460690498352, 0.19739101827144623, -0....
def getstr ( * args ) : return _ snap. tch _ getstr ( * args )
[ 0.6951997876167297, 0.3278603255748749, 0.05411158502101898, 0.32261237502098083, 1.0949114561080933, 0.6206987500190735, 0.2903061807155609, -0.4355669319629669, -0.6471945643424988, -0.7190579771995544, -0.6273612380027771, -0.8766706585884094, -0.3813803791999817, 0.29616332054138184, ...
def create _ and _ schedule _ new _ log _ processor ( self, * args, * * kwargs ) : pass
[ -0.44948384165763855, -0.7389596104621887, 0.718021810054779, 0.09152743220329285, 0.23715564608573914, 0.45623263716697693, -0.46460920572280884, 0.1899711787700653, -0.31649473309516907, -0.15654560923576355, -0.6053297519683838, 1.7717881202697754, -1.2416914701461792, -0.03916560113430...
def envelope _ prior _ model _ tag ( self ) - > str : if self. envelope _ prior _ model is none : return " " tag = conf. instance [ " notation " ] [ " prior _ model _ tags " ] [ " mass " ] [ self. envelope _ prior _ model. name ] return f " _ _ envelope _ { tag } "
[ 0.16933129727840424, -0.755378007888794, 0.6879798769950867, -0.6990064978599548, 0.3208446800708771, 0.36455780267715454, 0.383352130651474, -0.4434557259082794, -0.033004313707351685, 0.14496709406375885, -0.41076377034187317, -0.06697895377874374, 0.40119469165802, 1.1721633672714233, ...
def extract _ by _ prefix _ surfix ( prefix, surfix, maxlen, text ) : pattern = r " " " (? < = % s ) [ \ s \ s ] { 1, % s } (? = % s ) " " " % ( prefix, maxlen, surfix ) return re. findall ( pattern, text )
[ 0.3660852015018463, -0.1874665766954422, 0.2346094697713852, 0.5559495091438293, -1.0478153228759766, -0.7947009801864624, -0.17472656071186066, 0.33428364992141724, 0.48949718475341797, 0.7005956768989563, -0.42865610122680664, -0.12595796585083008, -0.28715524077415466, 0.085538566112518...
def describedosagecosdetailbydate ( self, request ) : try : params = request. _ serialize ( ) headers = request. headers body = self. call ( " describedosagecosdetailbydate ", params, headers = headers ) response = json. loads ( body ) model = models. describedosagecosdetailbydateresponse ( ) model. _ deserialize ( res...
[ -0.5922980308532715, 1.5366101264953613, 0.6489753723144531, -0.327798992395401, 0.1155024841427803, -0.497274786233902, 0.04024074971675873, -0.6093010902404785, -0.3644901514053345, 0.38964277505874634, -0.4260522723197937, 0.6073608994483948, 0.3423796594142914, 0.4178449213504791, -0...
def from _ xml _ element ( cls, xmlnode, namespace = " " ) : parts = {'groupid':'','artifactid':'','extension':'','classifier':'','version':'' } for key in parts : node = xmlnode. find ( ". / " + key ) if node is not none and node. text is not none : parts [ key ] = node. text. strip ( ) if not parts ['groupid'] or not...
[ 0.4507564902305603, -0.6861479878425598, 0.26592743396759033, -0.18036434054374695, -0.5556160807609558, -0.21837057173252106, -0.5489992499351501, -0.47379446029663086, 1.0235798358917236, -0.3770541548728943, 0.35558566451072693, 0.34883931279182434, 0.6983181834220886, 0.181717753410339...
def start _ tests ( cfg, fuzzer _ settings, tests, results, tags ) : log. info ( " run tests " ) with log. indent ( ) : if not tests or len ( tests ) = = 0 : log. error ( " no tests loaded! " ) sys. exit ( - 1 ) log _ tests _ loaded ( tests ) if not tags : run _ all _ loaded _ tests ( cfg, fuzzer _ settings, tests, res...
[ 0.5874450206756592, 0.19784703850746155, 0.3334708511829376, 0.8020796775817871, 0.8632662892341614, -0.3797787129878998, 0.49991554021835327, 0.35776394605636597, -0.36795613169670105, -0.42021018266677856, -0.9179670214653015, -0.5640578269958496, -0.7411344647407532, 1.0289928913116455,...
def test _ cant _ retrieve _ draft _ foreign _ user _ post ( self ) : user = make _ user ( ) foreign _ user = make _ user ( ) post = foreign _ user. create _ public _ post ( text = make _ fake _ post _ text ( ), is _ draft = true ) url = self. _ get _ url ( post = post ) headers = make _ authentication _ headers _ for ...
[ 0.36386603116989136, 1.3875279426574707, 0.749725341796875, 0.4468328058719635, 0.4164426922798157, 0.95405513048172, -0.5762227773666382, -0.976747453212738, -0.03137550503015518, -1.2937029600143433, -0.38867148756980896, 0.10119567811489105, -0.4047219157218933, -0.16445261240005493, ...
def test _ atomic _ qname _ pattern _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 1. xsd ", instance = " nistdata / atomic / qname / schema...
[ -0.10850141197443008, -0.5099430680274963, 0.5270859003067017, 0.3227057158946991, -0.2579515278339386, 0.3871746063232422, 0.07262171059846878, -0.34092414379119873, 0.6437013149261475, 0.7005948424339294, -0.0697731077671051, -0.15716877579689026, -0.06455190479755402, -0.267369210720062...
def players ( self ) : return self. _ players
[ -1.137883186340332, -0.8786716461181641, 0.21897315979003906, 0.24660834670066833, 1.216605544090271, 0.4450518488883972, 0.012762757949531078, -0.1213516965508461, 0.3610917329788208, 0.03206801041960716, -0.4251701235771179, 0.6575846076011658, -0.9824867248535156, -0.022174715995788574,...