text
stringlengths
25
2.19k
embedding
listlengths
768
768
def from _ csv ( path _ or _ paths : union [ pathlike, list [ pathlike ] ], split : optional [ namedsplit ] = none, features : optional [ features ] = none, cache _ dir : str = none, keep _ in _ memory : bool = false, * * kwargs, ) : # dynamic import to avoid circular dependency from. io. csv import csvdatasetreader re...
[ -0.5227501392364502, 0.10343901067972183, 0.41090190410614014, 0.6554046869277954, -1.3052641153335571, -0.2157680094242096, -0.2619207799434662, 0.45813190937042236, 0.33837616443634033, -0.5876988172531128, 0.3942502737045288, 0.012541809119284153, 0.7048863768577576, -0.4186866283416748...
def create _ kline _ info _ table ( self, symbol, start, end ) : for i in range ( start, end + 1 ) : table _ name = " kline _ of _ { } _ { } ". format ( symbol, i ) sql = " create table if not exists { } ". format ( table _ name ) sql + = " ( exch _ name varchar ( 255 ), open double, close double, high double, low doub...
[ 0.4610665440559387, -0.1731726974248886, 0.6018218994140625, 0.5155911445617676, 0.6738850474357605, 0.15580469369888306, 0.15795782208442688, -0.7269981503486633, -1.3763126134872437, 0.3123394846916199, -0.18021036684513092, -0.24275733530521393, 0.25234395265579224, 0.5271294116973877, ...
def issue ( self, key = " 1 ", * * fields ) : return dict ( id = key, key = key, fields = dict ( created = self. created, summary = f " summary { key } ", * * fields ) )
[ -1.132831335067749, 0.3441718816757202, 0.3797847628593445, -0.5683565735816956, -0.7986916303634644, 0.300175279378891, -0.668366014957428, 0.40122145414352417, -0.1350952833890915, -0.16540499031543732, -0.09195128083229065, -0.7290369868278503, 0.09758392721414566, -0.38498279452323914,...
def extract _ item _ from _ json ( self, json _ obj ) : result = errorresponse ( ) fields = json _ obj. get ( fields ) if type ( fields )! = dict : result. add _ message ('airtable item record object missing object property'' \'fields \'' ) return result result. data = wikitonguesitem ( title = fields. get ( title _ fi...
[ -0.6304751038551331, -0.41306212544441223, 0.7352461814880371, -0.48813819885253906, -0.39920106530189514, 0.5263774991035461, -0.4196226894855499, -0.13995714485645294, -0.06852490454912186, 0.10964862257242203, -0.7268233299255371, -0.249958798289299, 0.07265112549066544, -0.148428604006...
def find _ all _ file _ matches ( file _ names, file _ name _ re ) : matching _ file _ names = [ ] for _ file in file _ names : if re. search ( file _ name _ re, _ file ) : matching _ file _ names. append ( _ file ) return matching _ file _ names
[ 0.4328758716583252, -1.0675681829452515, 0.7455430030822754, 0.7718297839164734, 0.2953016757965088, -0.10257220268249512, -0.42676737904548645, 1.2721829414367676, -0.9419246315956116, 0.3092341423034668, -0.15121902525424957, -0.30956798791885376, -0.5431841015815735, 0.601754903793335, ...
def set _ alphabet ( self, alphabet ) : # turn the alphabet into a set and sort it to prevent duplicates # and ensure reproducibility. new _ alphabet = list ( sorted ( set ( alphabet ) ) ) if len ( new _ alphabet ) > 1 : self. _ alphabet = new _ alphabet self. _ alpha _ len = len ( self. _ alphabet ) else : raise value...
[ -1.1050165891647339, 0.7953693270683289, 0.23732496798038483, -0.5301494598388672, 0.4096944034099579, -0.1427888125181198, 0.9407432675361633, -0.13984759151935577, 0.890247642993927, -0.09377901256084442, -1.0694142580032349, 0.8220317959785461, -0.34806182980537415, 0.6501365303993225, ...
def pg _ is _ available ( ) : try : return sql ( " select 1 + 1 ; " ) [ 0 ] [ 0 ] = = 2 except exception : return false
[ -0.6896610260009766, 0.586472749710083, 0.516099214553833, 1.1665791273117065, -0.5313613414764404, 0.7538817524909973, -0.8396251797676086, 0.23373641073703766, -0.6078724265098572, 0.7118332982063293, 0.1265144944190979, -0.10477688163518906, -1.001827597618103, -0.38624417781829834, -...
def isnull ( self, * args ) : return _ topods. topods _ shape _ isnull ( self, * args )
[ -0.5466121435165405, -0.6310009360313416, 0.5326307415962219, 0.0841488391160965, 0.6617952585220337, 0.41649487614631653, -0.03429105132818222, -0.8608837127685547, 0.27373117208480835, 0.02304838038980961, -0.4974557161331177, 0.5351711511611938, 0.12776237726211548, 0.21902598440647125,...
def _ element _ constructor _ ( self, e ) : return self. _ cache. import _ data ( e )
[ -0.6812522411346436, 0.10501191765069962, 0.3020268678665161, -0.43656304478645325, -0.9009252786636353, 0.3834376633167267, 0.03065962716937065, 0.12530598044395447, 0.8236610293388367, -0.09795884042978287, -0.7045824527740479, 0.13262329995632172, 1.1864949464797974, -0.375843346118927,...
def get _ fresh _ primary _ tumors ( biospecimen ) : df = biospecimen # use shorter variable name # get rid of ffpe samples num _ before = len ( df. index ) df = df. loc [ ~ df ['is _ ffpe'] ] logger. info ('excluded % d files associated with ffpe samples'' ( out of % d files in total ). ', num _ before - len ( df. ind...
[ 0.029448388144373894, -0.3559092879295349, 0.48942404985427856, -0.6964244246482849, -0.4038849472999573, -0.46447962522506714, 0.9330998659133911, -0.34306037425994873, 0.41286033391952515, -0.04910258203744888, 0.7581760883331299, 0.5648868680000305, 0.24442780017852783, -0.2398900687694...
def log ( self, format _ string, * args ) : # type : ( str, * any ) - > none if len ( args ) : print ( " [ { } ] [ { } ] { } ". format ( self. home. name, self. name, format _ string. format ( * args ) ) ) else : print ( " [ { } ] [ { } ] { } ". format ( self. home. name, self. name, format _ string ) )
[ 0.03722844645380974, -0.9519614577293396, 0.7802074551582336, -0.08093508332967758, 0.708623468875885, 0.008858687244355679, -0.7381238341331482, -0.024587662890553474, -0.20305213332176208, -0.8202180862426758, 0.37589704990386963, 1.0575679540634155, -0.15260928869247437, 0.3644581735134...
def status _ unpin ( self, id : union [ status, idtype ] ) - > status : id = self. _ _ unpack _ id ( id ) return self. _ _ api _ request ('post ', f'/ api / v1 / statuses / { id } / unpin')
[ -1.146052598953247, -0.23618918657302856, 0.14825083315372467, 0.026140861213207245, -0.14489029347896576, 0.3386439085006714, -0.19468054175376892, 0.6494927406311035, 0.9446605443954468, 0.37267008423805237, -1.043298363685608, 0.5432995557785034, -0.6406323909759521, -0.6707904934883118...
def deeplabv3 _ resnetd50b _ voc ( pretrained _ backbone = false, classes = 21, aux = true, * * kwargs ) : backbone = resnetd50b ( pretrained = pretrained _ backbone, ordinary _ init = false, bends = ( 3, ) ). features del backbone. final _ pool return get _ deeplabv3 ( backbone = backbone, classes = classes, aux = aux...
[ -0.4073273539543152, 0.9002317190170288, 0.4129890501499176, 0.16853930056095123, -0.15853306651115417, 0.2690329849720001, 0.038942307233810425, 0.3381325900554657, 0.45962172746658325, 0.13592195510864258, 0.0153425894677639, 0.6612557172775269, -0.6112950444221497, -0.4644729197025299, ...
def process ( self, r0 _ path ) : amplitude = self. _ extract _ amplitude _ array ( r0 _ path ) average _ amplitude _ pix = np. mean ( amplitude, axis = 0 ) average, direction, distance = self. _ calculate _ average ( amplitude ) if self. global _ stage = = globalstage. reset : self. iteration = 0 self. stage [ : ] = s...
[ -0.7519652247428894, -0.39684009552001953, 0.7979006171226501, 0.059847451746463776, -0.9141005277633667, 0.106927290558815, 1.7374753952026367, -0.2764956057071686, -0.18754857778549194, 0.4130609333515167, -0.1973552703857422, -0.08277489244937897, -0.3234851658344269, 1.6327675580978394...
def test _ get _ health _ status _ with _ validation ( ) : validation _ regex = mock. magicmock ( wraps = re. compile ( ". * " ) ) # match anything metric = producer. get _ health _ metric ('example. com ', validation _ regex ) validation _ regex. match. assert _ called _ once ( ) assert metric. is _ valid
[ 0.290443480014801, 0.3654612898826599, 0.5196937322616577, 1.6272528171539307, 0.2667301297187805, 0.7378013134002686, -0.4805627763271332, 0.3220342695713043, -0.0839834213256836, -0.7730797529220581, 0.24357639253139496, 0.33566614985466003, 0.4001467525959015, -0.54679274559021, 0.148...
def sigterm _ handler ( self, signum, frame ) : assert ( self. state in ('waiting ','running') ) logger. debug ( " our state % s ", self. state ) if self. state = ='waiting': return self. ioloop. stop ( ) if self. state = ='running': logger. debug ('already running sending signal to child - % s ', self. sprocess. pid )...
[ 0.13776201009750366, -1.22342848777771, 0.682381272315979, 0.33364811539649963, 0.11325757950544357, 0.15065036714076996, -0.08313217014074326, 0.6755635738372803, 0.10605096817016602, 0.18035854399204254, -1.0842361450195312, -0.47158095240592957, -0.14743974804878235, 0.06602513045072556...
def check ( self ) : if not ( ( mpmath. almosteq ( self. _ belief, mpmath. mpf ( " 0 " ), epsilon ) or mpmath. almosteq ( self. _ belief, mpmath. mpf ( " 1 " ), epsilon ) or ( self. _ belief > = 0 and self. _ belief < = 1 ) ) and ( mpmath. almosteq ( self. _ disbelief, mpmath. mpf ( " 0 " ), epsilon ) or mpmath. almost...
[ -0.7557911276817322, -0.3861759901046753, 0.7152817249298096, 0.48927202820777893, -0.04159162938594818, 1.1546603441238403, 0.5828211307525635, -0.4845180809497833, -0.5461556911468506, -0.13875719904899597, 0.6773613691329956, 0.01629697158932686, -1.3359966278076172, 0.7266237139701843,...
def write _ consistency _ level ( self ) - > optional [ str ] : return self. _ _ write _ consistency _ level
[ 0.14566390216350555, -0.4664551913738251, 0.4215238690376282, 0.23539726436138153, 1.2023810148239136, 1.068777322769165, 1.4287203550338745, 0.15848562121391296, -0.3905472159385681, 0.22131776809692383, 0.04934915527701378, -0.2681647539138794, -0.482474148273468, -0.47383952140808105, ...
def _ publish _ events ( self, block _ structure, location, previous _ count, max _ count, block _ keys, user _ id ) : def format _ block _ keys ( keys ) : " " " helper function to format block keys " " " json _ result = [ ] for key in keys : info = block _ structure. get _ transformer _ block _ field ( key, contentlib...
[ -0.22845681011676788, -0.407539963722229, 0.7083107233047485, 0.14501389861106873, 0.15629026293754578, -0.7792011499404907, 0.8978805541992188, 0.014097747392952442, -0.8565653562545776, 0.7280352115631104, 0.007339597214013338, 0.5710154175758362, 0.2638612985610962, 0.6229681372642517, ...
def _ update _ category _ view ( self, data ) : self. view. update _ category _ view ( data )
[ -1.1612248420715332, -0.5645272135734558, 0.10424715280532837, -0.6542959809303284, -1.0576494932174683, -0.05458512157201767, 0.08415073156356812, -0.13492798805236816, 0.03348112851381302, -0.7707847356796265, 0.779793381690979, 0.7582708597183228, 0.8530998229980469, 0.05677875876426697...
def get _ logdir ( self ) : # pylint : disable = invalid - name return self. _ testcase. get _ temp _ dir ( )
[ 0.2256443202495575, -0.22463300824165344, 0.38352134823799133, 0.06026344746351242, 0.251485139131546, 0.059264734387397766, 0.4273199439048767, -0.2588576078414917, 0.2688269019126892, -0.9611365795135498, 0.42474883794784546, 0.5109083652496338, -0.8835881352424622, 0.40377309918403625, ...
def scatter _ plot ( file : str, options : list ) : if " / protein _ table " in options : with st. beta _ expander ( " scatter plot " ) : df = cached _ file ( file ) df _ log = np. log ( df. copy ( ) ) col1, col2 = st. beta _ columns ( 2 ) all _ cols = df. columns if multiple _ file _ check ( all _ cols ) : group _ 1 =...
[ 0.38186532258987427, 0.5531644225120544, 0.6939164996147156, 0.30710604786872864, -0.027040250599384308, 0.5542420744895935, 0.4923190772533417, -0.25827550888061523, -0.7043576240539551, -0.39140188694000244, 0.15449799597263336, 0.6789268255233765, -0.026920534670352936, -0.2824886441230...
def best _ definitions ( context ) : text = nltk. word _ tokenize ( context ) query _ indexes = [ i for i, w in enumerate ( text ) if re _ query. match ( w ) ] text = [ w. strip ('*') for w in text ] tagged _ words = nltk. pos _ tag ( text ) word, tag = tagged _ words [ query _ indexes [ 0 ] ] synsets = wn. synsets ( w...
[ 0.41753071546554565, -0.20506377518177032, 0.5592902898788452, 0.6440854072570801, -0.5782288908958435, -0.9486205577850342, -0.6880248188972473, -0.2263234257698059, 0.14056651294231415, -0.7114859223365784, 0.0887085497379303, -0.2500445246696472, 0.2311628758907318, 0.5600388050079346, ...
def connectionlost ( self, reason ) : msg = ccpmessage. close _ msg ( self. conn _ id ) self. write _ dst ( msg. pack ( ) ) self. factory. ccp _ client. srcdisconnected ( self )
[ 0.046789731830358505, -0.5011891722679138, 0.3487899899482727, -1.1223769187927246, 0.5112994909286499, 0.5710142850875854, -0.39246541261672974, 0.00010055303573608398, 0.2696085274219513, -0.7299163937568665, -0.20049363374710083, 0.2797904908657074, -0.7615315914154053, 0.07712849229574...
def build _ schematic _ nbt ( init _ pos, end _ pos, block _ data = false, memory _ data = none ) : size = size _ region ( init _ pos, end _ pos ) # profiling of schematics export app _ init = datetime. now ( ) logging. info ( " schematic : exporting blocks : % i " % ( size. x * size. y * size. z ) ) # prepare the nbt ...
[ 0.6888372898101807, -0.17737138271331787, 1.1188998222351074, -0.1789504885673523, -0.3924563527107239, 0.13309773802757263, -0.7510241270065308, -0.20849336683750153, -0.7349655628204346, 0.11883340775966644, -0.6723945140838623, 0.040202658623456955, -0.16321103274822235, 0.3308648169040...
def size ( self ) : return self. _ size
[ -0.05755368247628212, 0.16016116738319397, 0.04500354453921318, -0.5013942122459412, 0.14026127755641937, 0.919259250164032, 1.2331048250198364, -0.07476171851158142, 0.44877225160598755, -1.7476757764816284, -0.21245522797107697, -0.07308458536863327, -0.34769609570503235, -0.513012826442...
def test _ _ add _ anime _ stat _ fields ( anime _ data ) : embed = embed ( ) add _ anime _ stat _ fields ( embed, anime _ data ) return embed
[ 0.6416597962379456, 0.943919837474823, 0.4796898365020752, -0.2664134204387665, 0.5936423540115356, 0.7386452555656433, 0.06727314740419388, -0.34149491786956787, 1.1478708982467651, -1.0589162111282349, -0.9096975922584534, -0.04965421184897423, -0.29677969217300415, -0.8661054968833923, ...
def model _ fn _ builder ( bert _ config, init _ checkpoint, layer _ indexes, use _ tpu, use _ one _ hot _ embeddings ) : def model _ fn ( features, labels, mode, params ) : # pylint : disable = unused - argument " " " the ` model _ fn ` for tpuestimator. " " " unique _ ids = features [ " unique _ ids " ] input _ ids =...
[ -0.1661684811115265, 0.0376671738922596, 0.737605631351471, 1.0698431730270386, -0.015814755111932755, -0.19989539682865143, 0.5980277061462402, 0.457480251789093, -0.9139552712440491, 0.04987839609384537, -0.3429035544395447, -0.07473956793546677, 0.7358953952789307, -0.17289048433303833,...
def chebyshev ( l, x, k ) : m, n = x. shape assert l. dtype = = x. dtype # l = rescale _ l ( l, lmax ) # xt = t @ x : mxm @ mxn. xt = np. empty ( ( k, m, n ), l. dtype ) # xt _ 0 = t _ 0 x = i x = x. xt [ 0,... ] = x # xt _ 1 = t _ 1 x = l x. if k > 1 : xt [ 1,... ] = l. dot ( x ) # xt _ k = 2 l xt _ k - 1 - xt _ k - 2...
[ 0.7806451320648193, 0.13170522451400757, 0.7204486727714539, 0.14659051597118378, -0.56007319688797, -0.062199000269174576, -1.2425175905227661, 0.6997761726379395, -0.3106004297733307, 1.114123821258545, -1.6157435178756714, -0.4993392825126648, 0.6374661326408386, -0.24639242887496948, ...
def get _ pledge _ list ( ) : pledge _ list = [ ] with open ('pledge. txt ','r') as words : for line in words : pledge _ list + = line. split ( ) pledge _ list = [ word. replace ( '. ', " " ) for word in pledge _ list ] return pledge _ list
[ 0.4548560380935669, -0.5777608752250671, 0.48597002029418945, -0.3336309492588043, 0.4452458918094635, 0.9635368585586548, -0.9839689135551453, 2.1225292682647705, 0.12054162472486496, 0.9288210272789001, -0.8732918500900269, 0.9881898164749146, -0.6766890287399292, 1.1759428977966309, -...
def test _ single _ survey _ fail ( self, client, all _ surveys ) : with pytest. raises ( castorexception ) as e : client. single _ survey ( " d70c1273 - b5d8 - 45cd - bfe8 - a0ba75c4fake " ) assert str ( e. value ) = = " 404 entity not found. "
[ -0.5230274796485901, 0.5579559206962585, 0.3623781204223633, -0.16947698593139648, 0.4947296977043152, 1.0528587102890015, 0.604313313961029, -0.11431232839822769, 0.4142797589302063, -0.1535787284374237, -0.22384825348854065, -0.17733459174633026, -0.31483393907546997, 0.6305634379386902,...
def _ generate _ gridcell _ specific _ share _ body ( f, d ) : try : # print'd is ', d if not f : raise exception ('no file handle passed') f. write ( " vfs objects = glusterfs \ n " ) f. write ( " glusterfs : volfile _ server = localhost \ n " ) f. write ( " glusterfs : volume = % s \ n " % d ['vol _ name'] ) f. write...
[ -0.39855554699897766, 0.2112267017364502, 0.9909161925315857, -0.1777341365814209, 0.3339926600456238, 0.09546634554862976, 0.3597065210342407, 0.1027553603053093, -0.6826134920120239, 0.897239089012146, 0.13903404772281647, -0.4562540352344513, -0.5099074244499207, 0.5229576826095581, 0...
def read _ consistency _ level ( self ) - > optional [ str ] : return self. _ _ read _ consistency _ level
[ 0.46378976106643677, -0.35239943861961365, 0.5921977162361145, 0.25464698672294617, 0.3231588900089264, 1.5109857320785522, 0.7462220191955566, -0.03295101597905159, -0.1401415765285492, -0.1401214301586151, 0.8568138480186462, -0.03956674039363861, -0.1146882176399231, -0.7109906077384949...
def run _ with _ mock ( proxy _ instance : mitmproxy, playbook _ or _ integration _ id : str, record : bool = false ) - > iterator [ dict ] : if record : proxy _ instance. set _ tmp _ folder ( ) # if the record files should be committed - clean the content - test - data repo first if proxy _ instance. should _ update _...
[ -0.46033552289009094, 0.07014388591051102, 0.6585537195205688, -0.4801693856716156, 0.0558692030608654, 0.02218513749539852, 0.8463340997695923, 0.418914794921875, -0.24804756045341492, 0.41626375913619995, 0.14104793965816498, -0.29600223898887634, -0.8055583238601685, -0.0501058697700500...
def sort ( self ) : for key, value in self. main _ dict. items ( ) : value. sort ( )
[ 0.06182169169187546, -0.7347568869590759, 0.42484551668167114, -0.636348307132721, -0.5671620965003967, 0.7388472557067871, -0.07132276892662048, -0.014819158241152763, -1.346186637878418, -0.2980808615684509, 0.8943458795547485, 0.295104444026947, -0.14121609926223755, 1.5071470737457275,...
async def iter _ lastest _ pastes ( self, *, later _ than : str = none ) - > asynciterator [ paste ] : paste _ ids : iterable [ str ] = await self. _ get _ lastest _ paste _ ids ( ) if later _ than : paste _ ids = takewhile ( later _ than. _ _ ne _ _, paste _ ids ) paste _ futures = map ( self. get _ paste, paste _ ids...
[ -0.759636402130127, 0.08403430879116058, 0.6111316084861755, 0.06958163529634476, -0.4518359303474426, -0.014515832997858524, -0.6964309215545654, 0.04860878363251686, -0.10608519613742828, 0.40753838419914246, -0.11434783041477203, 0.28909334540367126, -0.05272791162133217, 0.439536511898...
def get _ zip _ county _ dict ( ) : global state _ county _ zip _ dict key = " " for item in state _ county _ zip : print item if item [ 0 ] not in key : key = item [ 0 ] state _ county _ zip _ dict [ key ] = [ item [ 1 ] ] else : print key state _ county _ zip _ dict [ key ]. append ( item [ 1 ] )
[ -0.6609712243080139, -0.4097510278224945, 0.594458281993866, -0.361934095621109, -0.004357676487416029, 0.04732254892587662, 0.28928038477897644, 0.2701582610607147, -0.24755021929740906, 0.3608151376247406, -0.6860819458961487, 0.24350914359092712, 0.2700011730194092, 0.5574706792831421, ...
def test _ contingency _ grouping _ contd ( self ) : cont _ name ='test d'circuit _ data, tx2 _ data, tx3 _ data, busbars, fixed _ shunts, switched _ shunts = self. contingency _ data. group _ contingencies _ by _ name ( cont _ name ) self. assertequal ( len ( circuit _ data ), 0 ) self. assertequal ( len ( tx2 _ data ...
[ 0.08327201008796692, 0.37514573335647583, 0.38577547669410706, -0.8099564909934998, 0.0005324491648934782, 0.5861326456069946, 1.1107738018035889, 0.41618186235427856, -0.16324873268604279, -0.3057596981525421, -0.19002392888069153, -0.23923876881599426, -0.842380940914154, 0.1638218909502...
def _ _ status _ internal ( self, status : optional [ str ], in _ reply _ to _ id : optional [ union [ status, idtype ] ] = none, media _ ids : optional [ list [ union [ mediaattachment, idtype ] ] ] = none, sensitive : optional [ bool ] = false, visibility : optional [ str ] = none, spoiler _ text : optional [ str ] =...
[ -0.8484780788421631, -0.789961040019989, 0.608223021030426, -0.34922629594802856, -0.4589642286300659, -0.4683517515659332, -0.1596839278936386, 0.2780427038669586, 0.3293474316596985, 0.01868191547691822, -0.17119194567203522, 0.7976230382919312, -0.36452895402908325, 0.6105245351791382, ...
def get _ reporting _ rate ( data, current = false ) : if not current : v = data [ first _ datafield _ index : ( first _ datafield _ index + datalen ) ] numerator = len ( [ i for i in v if not np. isnan ( i ) ] ) rr = ( float ( numerator ) / datalen ) * 100 return float ( " %. 2f " % rr ) else : v = data [ ( first _ da...
[ 0.17631623148918152, 0.7587543725967407, 0.27126702666282654, -1.1296279430389404, 0.5857962369918823, -0.49802789092063904, -0.0710202232003212, 0.13358408212661743, -0.5451356172561646, 0.36574745178222656, 0.753415048122406, -0.3226712644100189, -1.1404359340667725, 0.23377195000648499,...
def test _ milestone _ view _ project _ exists _ but _ milestone _ does _ not ( self ) : response = self. client. get ( reverse ('projects : milestone ', args = ( 1, 1 ) ) ) self. assertequal ( response. status _ code, 404 )
[ -0.40953582525253296, 0.7181001305580139, 0.20532351732254028, 0.24651330709457397, 0.8129267692565918, 1.9938527345657349, 1.0895713567733765, 0.30918553471565247, 0.28693684935569763, -0.4036424458026886, 0.19093643128871918, -0.04365728050470352, -0.9469121098518372, 0.4179021120071411,...
def _ recreate _ cm ( self ) : return self
[ -0.1118960976600647, -1.4024759531021118, 0.31968629360198975, -0.024345815181732178, -0.4237888753414154, 0.25490519404411316, 0.5791818499565125, -0.38461780548095703, 0.3456626832485199, -0.9807254672050476, 0.03529234975576401, 0.13823002576828003, -0.5510704517364502, -0.8445379137992...
def is _ ordered ( v ) : try : it = v. iterkeys ( ) x = next ( it ) while true : last, x = x, next ( it ) if x. uid < last. uid : return false except stopiteration : return true
[ -1.2240514755249023, -0.703867495059967, 0.4860944151878357, -0.15680527687072754, -0.16479389369487762, 0.10793901234865189, -0.5308359265327454, -0.34014207124710083, 0.23924507200717926, 0.31870296597480774, -0.555562436580658, -0.3399770259857178, -1.025355339050293, -0.214211583137512...
def check _ store ( self ) : return self. _ store. check _ connection ( )
[ -0.8348672986030579, -0.2339630424976349, 0.3473109304904938, 0.4597655236721039, -0.5934084057807922, 0.1652948260307312, -0.32314878702163696, 0.2759268283843994, 0.3467967212200165, 0.30716419219970703, 0.2250104695558548, -0.3889099955558777, -1.2573366165161133, -0.2510185241699219, ...
def item _ count ( self ) : return len ( self. browser. elements ( self. items, parent = self ) )
[ -0.035786282271146774, -0.42068225145339966, 0.41261008381843567, 0.3805420994758606, 0.5371932983398438, 0.5287017822265625, 0.4532172977924347, 0.4011988937854767, 0.26463156938552856, -0.7452573776245117, -1.0406537055969238, -0.42980721592903137, 0.549578070640564, 0.24479910731315613,...
def reset ( self ) : raise notimplementederror
[ -0.13546986877918243, -0.2994069755077362, 0.17715242505073547, 0.6727715730667114, 0.5124585032463074, 0.3779394328594208, 0.9395784139633179, -0.21835364401340485, -0.3454948961734772, -0.0385267473757267, -0.40889105200767517, 1.227707028388977, 0.05726601928472519, -0.3227565288543701,...
def rename ( self, new _ view _ name ) : updated _ api, updated _ xml = self. _ clone _ view _ helper ( new _ view _ name ) # invalidate the current view self. delete ( ) # update our rest api object to point to the endpoint associated # with the newly created view self. _ api = updated _ api # finally, make sure the f...
[ -0.4291342794895172, -1.1207321882247925, 0.33728504180908203, 0.36193493008613586, -1.3563340902328491, -0.45694759488105774, -0.5115246772766113, 0.17127497494220734, 0.29302072525024414, -0.6983090043067932, -0.14091232419013977, 0.6882731914520264, 0.21649472415447235, -0.6404109597206...
def get ( ) : with database _ session ( ) as sess : return [ i. serialize ( ) for i in sess. query ( database. category ). all ( ) ]
[ -0.7781500816345215, 0.380621999502182, 0.3022450804710388, 0.18270358443260193, 0.11635975539684296, -0.36441078782081604, -1.1053037643432617, 0.005653688218444586, -0.09515552222728729, -0.6247134804725647, 0.09270979464054108, 0.20922747254371643, 0.4025302827358246, 0.3174061179161072...
def format ( ) : out = subprocess. run ( ['which ','pip'], capture _ output = true ) print ( out. stdout ) buildstructuralrepresentation ( )
[ 0.12153241783380508, -0.5193858742713928, 0.40117403864860535, -0.10186754167079926, 0.7141484022140503, 0.04233571141958237, -0.0856843814253807, 0.4016985297203064, -0.18887515366077423, -0.49545446038246155, 1.3073350191116333, 1.1254783868789673, 0.9458319544792175, 0.3333687484264374,...
def _ filter _ search _ problems ( problems, y _ bar = none ) : filtered _ problems = [ p for p in problems ] if y _ bar is not none : filtered _ problems = [ p for p in filtered _ problems if p. result ( ). point _ solution ( ). y _ bar ( ) = = y _ bar ] return filtered _ problems
[ 0.05552751198410988, -0.15576161444187164, 0.48921409249305725, 1.3683795928955078, 0.16135148704051971, 0.9234508872032166, 0.2591540813446045, -0.5336554646492004, 0.35103482007980347, -0.13708926737308502, -0.10350581258535385, -0.6598801016807556, 0.028643328696489334, 0.11935542523860...
def key _ hash ( key ) : hashed = hashlib. md5 ( ) for k, v in sorted ( key. items ( ) ) : hashed. update ( str ( v ). encode ( ) ) return hashed. hexdigest ( )
[ 0.5537354946136475, 0.25863397121429443, 0.3741206228733063, -0.36382532119750977, -0.9256296157836914, 0.7369630336761475, -0.6834303140640259, -0.16424554586410522, -0.4738540053367615, 0.7408438324928284, -0.3072461783885956, -0.43625369668006897, -0.019414227455854416, 0.08593513071537...
def make _ black ( width, height, rgb _ color = ( 0, 0, 0 ) ) : # create black blank image image = np. zeros ( ( height, width, 3 ), np. uint8 ) # since opencv uses bgr, convert the color first color = tuple ( reversed ( rgb _ color ) ) # fill image with color image [ : ] = color return image
[ -0.0757523849606514, -0.5340138673782349, 0.743848443031311, 0.4773193299770355, 1.1345720291137695, 0.11948797106742859, -0.37692174315452576, -0.7148600816726685, -0.45274561643600464, 0.3480633795261383, 0.23703879117965698, 0.8997488617897034, -0.18973320722579956, -0.1816563457250595,...
def getfluxsampleinrprogram ( self, nsamples = 5000, lb = none, ub = none ) : if lb is none : lb = self. getlowerbounds ( ) if ub is none : ub = self. getupperbounds ( ) s = self. getstoichiometricmatrix ( ) sample = np. array ( samplefluxcone ( s, n _ samples = nsamples, v _ lb = lb, v _ ub = ub ) ) df = pd. dataframe...
[ 0.21380485594272614, -0.09564563632011414, 0.44511693716049194, 0.7471550703048706, -0.2316311001777649, -0.5604931712150574, 0.4604334235191345, -0.48949265480041504, 0.286835640668869, -0.4017646610736847, 0.23972731828689575, 0.6423965692520142, -1.689749002456665, -0.4105609059333801, ...
def retrieveformfromid ( self, id ) : # check that id does not contain any illegal characters, otherwise return empty form if utils. isinteger ( id ) : entry _ df = self. incidentbase. getentry ( int ( id ) ) form = formbuilder. buildfromentry ( entry _ df, self. incidentwrapper ) else : form = formbuilder. buildemptyf...
[ 0.4268781542778015, -0.2629750370979309, 0.3051677942276001, -0.41986727714538574, 0.2738569378852844, -0.4545995593070984, -0.5279715061187744, 0.024625742807984352, 1.2638763189315796, -1.8337904214859009, 0.18063676357269287, 0.03496439382433891, -0.4939062297344208, -0.3558673858642578...
def prepare _ data ( self, store, dataset, validation, compress _ sparse = false, verbose = 2 ) : raise notimplementederror ( )
[ -0.1438138633966446, 0.3324947953224182, 0.28589481115341187, 0.7632207870483398, -0.5050893425941467, 0.42587870359420776, -0.13771553337574005, 0.689333438873291, 1.0601956844329834, -0.2891460955142975, 0.00603651674464345, 0.13903804123401642, 0.9264604449272156, 0.18917691707611084, ...
def to _ main _ page ( ) : global driver driver. get ( _ url ) driver. implicitly _ wait ( 3 )
[ -0.13418608903884888, 0.6806454658508301, 0.45431336760520935, 0.47535818815231323, 0.690220057964325, 0.17880351841449738, -0.33014431595802307, 0.7965716123580933, -0.30728429555892944, 1.0320075750350952, 0.11051477491855621, -0.10649015009403229, -0.5340964198112488, -0.240064933896064...
def setmenu ( self, menu ) : pass
[ -1.4750361442565918, -0.4951840341091156, 0.2549598515033722, 1.5514893531799316, 0.7731723189353943, 0.17595601081848145, -0.5732296705245972, 0.7755779027938843, 0.2519039809703827, -1.2947372198104858, -0.506683886051178, 0.41135796904563904, -0.8095605373382568, 1.3386998176574707, -...
def userdata ( self ) - > optional [ pulumi. input [ str ] ] : warnings. warn ( " " " field'userdata'has been deprecated from provider version 1. 120. 0. new field'user _ data'instead. " " ", deprecationwarning ) pulumi. log. warn ( " " " userdata is deprecated : field'userdata'has been deprecated from provider version...
[ -0.2243022471666336, 0.5874970555305481, 0.47363507747650146, -0.16050532460212708, -0.2625630497932434, 0.5601129531860352, -0.2699057161808014, 0.055754244327545166, 0.4403552711009979, -0.02657093107700348, -0.25316721200942993, 0.7448641061782837, 0.532461941242218, -0.9832473397254944...
def ransac ( data, model, min _ samples, min _ inliers, iterations = 100, eps = 1e - 10, random _ seed = 42 ) : random. seed ( random _ seed ) if len ( data ) < = min _ samples : raise valueerror ( " not enough input data to fit the model. " ) if 0 < min _ inliers and min _ inliers < 1 : min _ inliers = int ( min _ inl...
[ 0.2548612058162689, -0.02030598744750023, 0.7112216353416443, -0.09485237300395966, -0.6453882455825806, -0.20822525024414062, -0.41231951117515564, 0.24615846574306488, -0.40051528811454773, 0.020427878946065903, 0.3135177791118622, 0.6059326529502869, -0.36004748940467834, -0.30736982822...
def test _ failure ( self ) : self. fail ( " test _ failure should never be called. " )
[ 0.8689168095588684, 0.7477887272834778, 0.0805225595831871, 0.30972060561180115, 0.9807137250900269, 0.11930987238883972, 0.5819668769836426, -0.7098647952079773, 0.48500749468803406, -1.0454835891723633, 0.14100690186023712, -0.2516593635082245, -1.1254910230636597, 0.6636062860488892, ...
def test _ runnerdebug ( self ) : self. parseoptions ( ['- - reporter ','capturing ','- - debug ','twisted. trial. test. sample'] ) my _ runner = self. getrunner ( ) debugger = my _ runner. debugger = capturingdebugger ( ) result = self. runsamplesuite ( my _ runner ) self. assertequal ( self. standardreport, result. _...
[ -0.33912450075149536, 0.6006461977958679, 0.5324350595474243, 0.2220664918422699, 0.17474260926246643, -0.003289397805929184, 0.10435520857572556, 0.11473579704761505, 0.3529401421546936, -0.7878589034080505, -0.9019685983657837, -0.3643646836280823, -0.6811358332633972, 0.8253435492515564...
def test _ get _ triggers ( self ) : pass
[ 0.7123799920082092, 0.9211384057998657, 0.2916482985019684, 1.3617268800735474, 0.9867017865180969, -0.4078735113143921, 1.2815461158752441, 0.002216864610090852, 0.2772611677646637, -1.7368652820587158, -1.2059749364852905, -0.047495126724243164, -1.1413383483886719, -0.2362881600856781, ...
def streamtetrahedron ( self, p _ int, p _ float, p _ int _ 1, p _ float _ 1, p _ int _ 2, p _ float _ 2, p _ int _ 3, p _ float _ 3 ) :...
[ -0.27686500549316406, 0.7145143747329712, 0.33125051856040955, -0.6364490389823914, 0.7925301194190979, 0.5003008842468262, 0.22733379900455475, -1.0929518938064575, -1.12374746799469, 0.6818830370903015, 0.028375091031193733, 0.19363270699977875, -1.3786505460739136, -0.7167587876319885, ...
def assert _ correctness ( self, message ) : batch _ number = message. timestamp. coordinates [ 0 ] sum _ data = sum ( range ( ( batch _ number - 1 ) * 10 + 1, batch _ number * 10 + 1 ) ) print ( " received sum : { } for the batch _ number { }, expected { } ". format ( message. data, batch _ number, sum _ data ) )
[ 0.7490729689598083, 0.02543231099843979, 0.6130566596984863, -0.14269129931926727, 1.251674771308899, 0.14887619018554688, 0.8706678748130798, 0.34109073877334595, 0.14927001297473907, -0.6337549686431885, 0.17140862345695496, 1.18011474609375, -0.16794085502624512, 0.7002930641174316, -...
def ntu _ limit ( self, ntu _ limit ) : self. _ ntu _ limit = ntu _ limit
[ -0.6313871145248413, 0.5552682280540466, 0.1961512416601181, 0.08265042304992676, 0.04892453923821449, 1.0520966053009033, -0.36878806352615356, 0.5483513474464417, -0.357728511095047, 0.020338283851742744, -1.2749396562576294, -0.530450701713562, 0.18189047276973724, -0.32843106985092163,...
def create _ cross _ run _ id _ report ( json _ results, run _ id _ list, output _ path, parameter _ list ) : run _ id _ keys = get _ run _ id _ keys ( json _ results, run _ id _ list ) # create the pdf object pdf = fpdf ( ) pdf. add _ page ( ) pdf. set _ font ( " courier ", size = 8 ) # create pdf file name from the r...
[ 0.20346088707447052, -0.8416275382041931, 0.9355112314224243, -0.5087293386459351, 0.6527196764945984, -0.1850297451019287, 0.4680054783821106, -0.5677012205123901, -0.7242633700370789, 0.24696415662765503, 0.17655734717845917, 0.5445597171783447, -0.41483643651008606, 0.0541747584939003, ...
def test _ auto _ cancel _ open _ orders ( ) : client = client ( key, secret ) response = client. auto _ cancel _ all ( symbol = " btcusdt ", count _ down _ time = 2000 ) response. should. equal ( mock _ item )
[ 0.6325340867042542, -0.16867993772029877, 0.34466198086738586, 1.1716235876083374, 0.06079675257205963, 0.11781170219182968, 0.4574364125728607, 0.41767629981040955, -0.39845067262649536, -0.06614146381616592, -1.007047176361084, -0.3674801290035248, 0.2902579605579376, -0.1661766022443771...
def test _ exitfirst ( self ) : self. parseoptions ( [ " - - exitfirst " ] ) runner = self. getrunner ( ) result = runner. _ makeresult ( ) self. assertisinstance ( result, reporter. _ exitwrapper )
[ -0.019662147387862206, 0.9031972289085388, 0.5309221744537354, 0.31308844685554504, 1.1001806259155273, -0.10839800536632538, 0.06499940901994705, -0.25974851846694946, -0.2641918361186981, -0.6313563585281372, -0.28693249821662903, -0.8068029284477234, -0.23574458062648773, 0.540971100330...
def _ save _ cookies ( requests _ cookiejar, filename ) : with open ( filename,'wb') as handle : pickle. dump ( requests _ cookiejar, handle )
[ -0.703060507774353, -0.7176018953323364, 0.06673251837491989, 0.29759836196899414, 0.7303170561790466, -0.5157061219215393, 0.6323291659355164, 0.26482871174812317, -0.820123553276062, 0.5375127792358398, -0.7010645866394043, -0.33892300724983215, -0.12226762622594833, -0.3164777159690857,...
def _ calc _ labels ( self, observation ) : # get relevant meta data from the observer attribute _ keys = self. _ observer. _ enabled _ node _ attribute _ keys norm _ data = self. _ observer. normalization _ data normalize = self. _ observer. _ normalize _ observations feature _ len = self. _ observer. feature _ len # ...
[ -0.8073670864105225, 0.5940678119659424, 0.926989734172821, -0.6361636519432068, -0.1807270348072052, -0.5041826367378235, 0.2910725474357605, 0.33259373903274536, -0.5770686864852905, 0.8283734321594238, 0.612669825553894, -0.05683853104710579, 0.7488038539886475, -0.1011943444609642, 0...
def test _ valid _ data ( self ) : form = self. form _ data ( name _ 0 = " david mcquire ", email _ 0 = " info @ specterops. io ", phone _ 0 = " ( 555 ) 555 - 5555 ", job _ title _ 0 = " ceo ", note _ 0 = " a note about this contact ", ) self. asserttrue ( form. is _ valid ( ) )
[ 0.4229714274406433, -0.29744577407836914, 0.47735580801963806, 0.25751665234565735, 0.24594682455062866, 1.1556150913238525, -0.7049571871757507, 0.638279139995575, -0.0006312309415079653, -1.4990320205688477, -0.745418131351471, -0.2564302384853363, -0.25614288449287415, -0.42287713289260...
def get _ feedback _ type ( action ) : msg _ type = rostopic. get _ topic _ type ( " { } / feedback ". format ( action ) ) [ 0 ] # replace'actionfeedback'with'feedback '. return msg _ type [ : - 14 ] + " feedback "
[ 0.7173017263412476, -0.04239523038268089, 0.400803804397583, 0.04459362477064133, 1.4238781929016113, -0.2920067012310028, 0.7696577310562134, -1.6255658864974976, 1.1407148838043213, -0.2708979845046997, 0.38036707043647766, 1.1901272535324097, 0.21599288284778595, 0.396185964345932, 1....
def get _ job ( self, name : jobname ) - > j :...
[ -0.4586721658706665, 0.3390105664730072, 0.12102080881595612, 0.4469791650772095, -0.9762130379676819, -1.2565850019454956, -0.2921930253505707, -0.5264899134635925, -0.7779360413551331, -0.647006094455719, -0.49855077266693115, 0.3319188058376312, -0.34927940368652344, -0.803270161151886,...
def _ _ ipr _ update _ ui ( self ) : if self. _ _ ui _ update : for output in self. selected _ outputs : output. ui. ipr _ update = self. _ _ ipr _ update _ check _ box. is _ checked ( )
[ -0.8322603702545166, -0.9971140027046204, 0.5648157596588135, -0.02404569275677204, -0.2831287980079651, -0.5245459675788879, 0.35400351881980896, -0.1614101678133011, -0.22097361087799072, 0.659298837184906, 0.4263533353805542, 0.08857551962137222, -1.588869571685791, -0.1705712378025055,...
def main ( ) : # set params j = 10 t = 50 a0 = 3. 0 a1 = 1. 5 beta _ mean = - 1. 0 beta _ sig = 0. 5 w0 = 5. 0 w1 = 2. 0 e _ sig = 1. 0 en _ sig = 0. 5 n _ sig = 2. 0 params = [ a0, a1, beta _ mean, beta _ sig, w0, w1, e _ sig, en _ sig, n _ sig ] x _ jt = ['normal ', 1, 0. 5 ] z _ jt = ['normal ', 1, 0. 5 ] m = 5 # ge...
[ -0.1097416952252388, 0.7663171291351318, 0.6844819784164429, -0.1154947578907013, -0.37699660658836365, 0.3113158047199249, 0.3305123746395111, -0.11487136781215668, -0.7698851823806763, 0.3250916302204132, -0.9827763438224792, 0.013980160467326641, 0.18810699880123138, 0.29254886507987976...
def is _ active ( self ) : return true
[ -0.24735064804553986, -1.3496901988983154, 0.5079470276832581, 1.0968698263168335, 0.47169122099876404, 0.40147286653518677, 0.20955541729927063, 0.8460102081298828, 0.009327739477157593, -0.9402132034301758, -0.9062005877494812, 0.1721256971359253, -0.8536909818649292, -0.9026748538017273...
def get _ straight _ cpr _ grids ( cl, angle, size = none, pivot _ axis = ( 1, 0, 0 ), voxel _ spacing = none, sample _ spacing = 0. 0, width = 40, as _ torch = true ) : assert ( not as _ torch ) or ( size is not none ), \ " have to set size when return as torch grid " assert ( sample _ spacing = = 0. 0 ) or ( voxel _ ...
[ 0.2870456576347351, 0.17385174334049225, 0.863655149936676, 0.14683416485786438, -0.46224287152290344, -0.4239189028739929, 0.1266818344593048, 0.15212762355804443, 0.2281571924686432, 0.6965181231498718, 0.37358203530311584, -0.21597985923290253, -0.24108894169330597, 0.4660075008869171, ...
def print _ columns _ csv ( lines, verbose ) : for line in lines : assert len ( line ) = = len ( lines [ 0 ] ) if verbose : for line in lines : print ', '. join ( str ( t ) for t in line ) print'\ n '
[ 0.9809532165527344, -0.26076263189315796, 0.38549676537513733, 0.6207709312438965, 0.8395395278930664, 0.14915680885314941, -1.1819783449172974, -0.22687022387981415, -0.5882863998413086, 0.4027659595012665, 0.5352005958557129, 0.4900226593017578, 0.19342616200447083, -0.056771695613861084...
def _ _ set _ time _ picker ( self, default _ hours, default _ mins ) : self. c _ logger. info ( " setting the time picker. " ) self. c _ logger. info ( " default hours : { }, default minutes : { } ". format ( default _ hours, default _ mins ) ) self. c _ logger. info ( " starting to create'timepicker'instance. " ) ret...
[ -0.7946544885635376, 0.14638622105121613, 0.31936895847320557, -0.3179510831832886, 0.4918634295463562, 0.596752405166626, -0.6310539245605469, 0.10218822956085205, -0.8458730578422546, 0.2729283571243286, -0.3805162012577057, -0.41134190559387207, -1.0465779304504395, 0.877822995185852, ...
def _ get _ regions ( connection ) : query _ regions = connection. execute ( db. select ( [ models. region. code ] ). where ( models. region. code! = " gb " ) ) regions = [ r [ 0 ] for r in query _ regions ] if not regions : raise valueerror ( " nptg data not populated yet. " ) return regions
[ 0.054872315376996994, 1.0269079208374023, 0.32048138976097107, -0.2560717761516571, 1.205675482749939, -0.05941806361079216, -0.7107134461402893, -0.34775179624557495, -0.9720004200935364, 0.5564562678337097, 0.41457223892211914, -0.21074657142162323, -0.35233989357948303, 0.29567199945449...
def set _ random _ seed ( seed : int = 0 ) - > none : tf. random. set _ seed ( seed ) random. seed ( seed ) np. random. seed ( seed )
[ 0.5639113187789917, 0.20382772386074066, 0.18131959438323975, -0.5096100568771362, 0.36707913875579834, 0.03161980211734772, 0.8449117541313171, 0.40862801671028137, 0.13226750493049622, -0.7099059224128723, -0.4095507562160492, 0.9807983636856079, 0.7678248286247253, 0.70452481508255, -...
def brunt _ vaissala ( rho, depth ) : drho = np. gradient ( rho ) dz = np. gradient ( depth ) g = 9. 8 rho0 = 1024 n2 = ( g / rho0 ) * ( drho / dz ) return n2
[ 0.9516746401786804, -0.25568071007728577, 0.38332226872444153, 0.02092609740793705, 0.05445025488734245, 0.25083887577056885, 0.5425378680229187, -0.181045264005661, -0.5021758079528809, 0.168823704123497, -0.6729684472084045, 0.9970090389251709, -0.34687066078186035, 0.9935426115989685, ...
def save _ explanation ( explanation, path, exist _ ok = false ) : pass
[ -0.015378501266241074, -0.58954256772995, 0.24961957335472107, 0.49924686551094055, 0.4303287863731384, 0.02505401335656643, 1.0810556411743164, 1.1808741092681885, -0.1833013892173767, 1.1985679864883423, -1.0444025993347168, -0.30834826827049255, -0.12849977612495422, -0.2971273362636566...
def test _ saved _ subscribers ( self ) : report _ airflow _ variable = variable. get ( " rb _ status _ " + self. report _ form _ sample. report _ title. data, deserialize _ json = true, ) self. assertequal ( report _ airflow _ variable [ " subscribers " ], [ " email1 @ raybeam. com ", " email2 @ raybeam. com ", " jdoe...
[ 0.5189173817634583, -0.3141172230243683, 0.18952535092830658, -0.25863659381866455, 1.2127169370651245, -0.5050392746925354, -0.4848036766052246, 0.1984725296497345, -0.08236661553382874, -0.5188681483268738, -0.9262222647666931, 0.741624116897583, -0.9037403464317322, -0.11244356632232666...
def update _ list ( id ) : # first confirm that user is logged in if check _ if _ user _ logged _ in ( ) : form = createlistform ( ) user _ email = session ['user _ email'] try : # update list object index with new details shopping _ list _ app. edit _ shopping _ list ( id, user _ email, form. name. data, form. descrip...
[ -1.2544535398483276, -0.2326497882604599, 0.2752090096473694, 0.4895273745059967, 0.0829528421163559, 0.8395465612411499, 0.3262799084186554, 0.5893173813819885, 1.3377407789230347, 0.21851672232151031, -0.8934118747711182, -0.3445397615432739, 0.13082380592823029, 0.6097978353500366, 0....
def _ add _ iteration ( self, iteration _ index, iteration _ time _ in _ seconds, selected _ point _ solution ) : state = self. _ state num _ milp _ solved = self. _ num _ milp _ solved elapsed _ time _ in _ seconds _ for _ search _ problem = self. _ elapsed _ time _ in _ seconds _ for _ search _ problem elapsed _ time...
[ -0.275365948677063, 0.531566858291626, 0.5397064685821533, 0.2153550088405609, 0.6178869605064392, -0.09547577798366547, 0.4391230344772339, -0.22791826725006104, 0.4475782513618469, 0.8715072870254517, 0.2951265573501587, 0.613541841506958, 0.6542075276374817, -0.055361904203891754, 0.3...
def initialize _ spells ( ) : spell ( " accio ", " a charm that allows the caster to summon an object ", [ " summon ", " summoned " ], " ˈæksioʊ " ) spell ( " alohomora ", " a spell to open locks ", [ " open ", " unlock ", " opened ", " unlocked " ], " " ) spell ( " expelliarmus ", " a spell that removes an object ( of...
[ 0.14396938681602478, -0.7709856033325195, 0.7378364205360413, -0.6855641007423401, -0.3377910256385803, 0.3759002685546875, 0.16232585906982422, -0.11900423467159271, 0.6432545185089111, -0.18835888803005219, -0.6511354446411133, 0.44038140773773193, -0.011569089256227016, 0.75552684068679...
def test _ microvm _ boottime _ with _ network ( test _ microvm _ with _ boottime, network _ config ) : boottime _ us = _ test _ microvm _ boottime ( test _ microvm _ with _ boottime, network _ config ) print ( " boot time with network configured is : " + str ( boottime _ us ) + " us " )
[ 0.582291841506958, 0.21098455786705017, 0.4078657031059265, 1.5172221660614014, 0.05050085484981537, -0.09679975360631943, -0.08560162037611008, -0.588437020778656, -0.12677980959415436, 0.1961440145969391, -0.7515918612480164, -0.5181861519813538, -0.479514479637146, 1.0123289823532104, ...
def setpoint _ callback ( self, setpoint ) : self. _ setpoint = setpoint. data
[ 0.3536853492259979, -0.8042722940444946, 0.1406443566083908, -0.44970816373825073, -0.3007221519947052, 0.07046107947826385, -0.27132025361061096, -0.15762987732887268, 0.9052717089653015, 0.33633148670196533, -1.2071574926376343, 0.5957995653152466, 0.19269318878650665, -0.084030769765377...
def test _ entity _ attributes ( self ) : dev _ id ='test _ entity'entity _ id = device _ tracker. entity _ id _ format. format ( dev _ id ) friendly _ name ='paulus'picture ='http : / / placehold. it / 200x200'icon ='mdi : kettle'device = device _ tracker. device ( self. hass, timedelta ( seconds = 180 ), true, dev _ ...
[ -0.6143252849578857, 0.14271728694438934, 0.4197811782360077, -0.5884696245193481, 0.24486394226551056, 0.12002471834421158, 0.11974489688873291, 0.4023359715938568, 0.4677567183971405, -0.40020251274108887, -0.3184741735458374, -0.5694699883460999, 1.1382389068603516, 0.6725254058837891, ...
def img _ upload _ form ( ) : return render _ template ('/ img _ upload. html')
[ -0.3945460021495819, 0.7498306035995483, 0.3941671550273895, -0.9659332633018494, -0.10531047731637955, -0.7214294672012329, 0.2802228629589081, 0.45689502358436584, -0.9679867625236511, 0.17433255910873413, 0.22113855183124542, -0.32423844933509827, 0.3596622943878174, 0.2564204931259155,...
def build _ packet _ out ( self, datapath, buffer _ id, src _ port, dst _ port, data, queue _ set = false ) : actions = [ ] if queue _ set : actions. append ( datapath. ofproto _ parser. ofpactionsetqueue ( 1 ) ) if dst _ port : actions. append ( datapath. ofproto _ parser. ofpactionoutput ( dst _ port ) ) # # add acti...
[ 0.06061998009681702, -0.3427257835865021, 0.6944544315338135, -1.1811203956604004, -0.39893031120300293, -0.31028950214385986, -0.0051030912436544895, -0.4593653678894043, 0.19889064133167267, -0.38007646799087524, 0.4591248333454132, 0.8629570007324219, -0.25419560074806213, -0.7995027899...
def myfunction ( x, y, p ) : ux = ( x * * 2. + y * * 2. ) * * p # ux = - x - y return ux
[ -0.5611481666564941, -0.483413964509964, 0.472550630569458, 0.042964570224285126, -0.1463460624217987, 0.6595814228057861, -0.7085297107696533, 0.19553425908088684, -0.05615830421447754, -0.23444044589996338, -0.3166952133178711, 0.40747934579849243, -0.2060883343219757, -1.368781089782714...
def execute _ in _ process _ executor ( _ ) - > " inprocessexecutor " : from dagster. _ core. executor. in _ process import inprocessexecutor return inprocessexecutor ( retries = retrymode. enabled, marker _ to _ close = none, )
[ 0.6560826301574707, -0.6614147424697876, 0.31797313690185547, 0.3478509783744812, -0.6225461363792419, -0.5175281167030334, -0.3376752734184265, 0.7342252135276794, 0.27585911750793457, -0.06936240196228027, 0.2264971137046814, 0.8208744525909424, 0.12544551491737366, -0.4732630252838135, ...
def get ( self, var _ name ) : if self. _ lock. acquire ( true, 1 ) : try : if var _ name in self. _ variables : return self. _ variables [ var _ name ] else : self. _ logger. debug ( f " variable { var _ name } not found in globals " ) return none except exception as e : self. _ logger. exception ( str ( e ) ) return ...
[ -0.13930188119411469, -0.2520711123943329, 0.5578498840332031, -0.6665824055671692, 0.12773782014846802, -0.441914826631546, -0.2730139195919037, -1.3686751127243042, -0.09670305252075195, 0.07181556522846222, 0.38806185126304626, 1.1383029222488403, -1.638550877571106, -0.3448019921779632...
def fill _ space ( self, y _ pos, x _ pos, blankchar ='', charlist = none, tochar ='x ', quantity = 40000, mode = false ) : def get _ adjacent ( y _ pos, x _ pos ) : returnlist = [ ] for x in ( - 1, 0, 1 ) : for y in ( - 1, 0, 1 ) : if abs ( x ) + abs ( y )! = 0 : returnlist. append ( ( y _ pos + y, x _ pos + x ) ) ret...
[ -0.5639616847038269, 0.17666733264923096, 0.9169006943702698, -0.9510106444358826, -0.8605534434318542, -0.06747429817914963, 0.6620458364486694, -0.2254360467195511, 0.090439073741436, 0.5152998566627502, -0.8039634823799133, -0.10905660688877106, 0.027257023379206657, 0.14386343955993652...
def _ solve ( a, b, c ) : with ops. name _ scope ( " solve _ " + b. op. name ) : c = ops. convert _ to _ tensor ( c ) k = array _ ops. fill ( array _ ops. shape ( b ), c ) zero _ t = array _ ops. zeros ( array _ ops. shape ( b ), dtype = b. dtype ) w = ( c * math _ ops. sign ( b ) - b ) / a w = math _ ops. select ( mat...
[ 0.5222199559211731, 0.10163620114326477, 0.8049302101135254, 0.5386911034584045, 0.26863422989845276, -0.15469011664390564, 0.2589088976383209, -0.4481584429740906, -0.5281198024749756, 1.080604076385498, 0.6085019111633301, -0.3114481270313263, 0.3000325560569763, -0.7693002223968506, -...
def check _ btc _ synced ( prefab, height _ threeshold = 10 ) : testnet _ url ='https : / / api. blockcypher. com / v1 / btc / test3'res = requests. get ( testnet _ url ) if res. status _ code = = 200 : expected _ height = res. json ( ) ['height'] _, out, _ = prefab. core. run ( cmd ='bitcoin - cli - getinfo ', showout...
[ 1.0170824527740479, 0.8694272637367249, 0.6882386207580566, 0.43413177132606506, 0.4075177311897278, 0.5529900789260864, -0.0014268937520682812, -0.20172305405139923, -0.6889426112174988, 0.6189614534378052, -1.3099558353424072, 0.9832496047019958, -0.6867679357528687, -0.2306670844554901,...
def get _ last _ version ( self, configset ) : return configversion. objects. filter ( config _ set _ id = configset ). order _ by ('- version _ number') [ 0 ]
[ -0.538802444934845, -0.6304453015327454, 0.17780926823616028, 0.20484265685081482, 0.10543667525053024, -0.20724913477897644, -0.5591574907302856, -0.603147029876709, 0.17141863703727722, 0.8067389726638794, 0.2736392021179199, -0.3625544011592865, -0.15971581637859344, 0.04553132504224777...
def test _ awake _ init ( ) - > none : player _ index = 5 villager = villager. awake _ init ( player _ index, [ ], ( ) ) # other params are unused. assert villager. statements = = ( statement ( " i am a villager. ", ( ( 5, frozenset ( { role. villager } ) ), ) ), )
[ -0.8106648921966553, -0.4764816164970398, 0.41685307025909424, -0.23532842099666595, 0.6550877690315247, -0.1107819527387619, 0.09195718169212341, -0.3732820451259613, 0.07578469812870026, 0.16545702517032623, -0.6640852689743042, -0.5118227005004883, -0.8667107224464417, 0.564800918102264...