text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ create _ crosslinks ( self ) : crosslinks = self. crosslink _ graph. edges ( ) pos = nx. get _ node _ attributes ( self. crosslink _ graph,'pos') attachment = nx. get _ node _ attributes ( self. crosslink _ graph,'surface _ bound') for crosslink in crosslinks : atom1 = crosslink [ 0 ] atom2 = crosslink [ 1 ] loc1...
[ 0.5147609710693359, -0.2588970959186554, 0.7231983542442322, -0.1181688979268074, 0.7251011729240417, 0.28162553906440735, 0.45702236890792847, 0.36922115087509155, 0.07709485292434692, -0.31003937125205994, 0.2474563717842102, -0.23866981267929077, -0.5136670470237732, 0.1546071320772171,...
def get _ 2ndtm ( lines : list [ str ], skipspecialnoun = false ) : alphabet = ascii _ letters [ 0 : 26 ] + " " l = len ( alphabet ) n = l * * 2 npmatrix = np. zeros ( ( n, n ) ) def s ( letter ) : return alphabet. find ( letter ) for line in lines : line = trim _ line ( line, ignorecapitalzedword = skipspecialnoun ) f...
[ 0.21921463310718536, -0.8678827285766602, 0.7325912714004517, -0.29900774359703064, -0.5042979717254639, -0.8258154392242432, 0.37290793657302856, 0.40141570568084717, 0.022983329370617867, 0.4400020241737366, -0.21110837161540985, 0.09263584762811661, 0.1780698597431183, 0.365254908800125...
def fromjson ( cls, jsonobject ) : # restore surplusses key ='_ beta _ _ p'if key in jsonobject : p = int ( jsonobject [ key ] ) key ='_ beta _ _ q'if key in jsonobject : q = int ( jsonobject [ key ] ) key ='_ beta _ _ l'if key in jsonobject : l = float ( jsonobject [ key ] ) key ='_ beta _ _ width'if key in jsonobject...
[ 0.2815766930580139, -1.478601336479187, 0.6703445911407471, -0.6712826490402222, 0.2035185843706131, -0.09163495153188705, -0.3042876124382019, -1.4726178646087646, 0.36999401450157166, -0.16542287170886993, -1.2512110471725464, -0.052804913371801376, -0.23934242129325867, 0.02791780978441...
def charge _ energy _ added ( self ) - > float : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " charge _ energy _ added " )
[ 0.066891148686409, -0.46862784028053284, 0.21654900908470154, 0.2664704918861389, 0.3997728228569031, 0.3784850835800171, -0.7852145433425903, -0.018001921474933624, -0.16273133456707, 0.07441519945859909, -0.06716478615999222, 0.3061791658401489, -0.15004076063632965, 0.6784603595733643, ...
def relate _ media ( self ) : media = relatedmedia. objects. create ( object _ id = self. person. id, content _ type = contenttype. objects. get _ for _ model ( famousperson ) ) media. resources = [ self. resource ] media. save ( )
[ 0.44052860140800476, -0.28503262996673584, 0.5300953984260559, -0.06114710867404938, 0.6634982824325562, 0.6375129222869873, 0.38221028447151184, 0.6381030678749084, 0.17134609818458557, -0.20098868012428284, -0.6462221741676331, -0.6392699480056763, -0.8604862093925476, 0.9717808365821838...
def test _ atomic _ qname _ enumeration _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 1. xsd ", instance = " nistdata / atomic / qn...
[ -0.30608081817626953, -1.0334067344665527, 0.44394397735595703, -0.008214373141527176, -0.10983824729919434, 0.06735746562480927, 0.1572316437959671, -0.7975903749465942, 0.3638695478439331, 0.4241609573364258, -0.023440046235919, -0.4305800199508667, -0.22340063750743866, -0.0913693532347...
def delete ( self, name : str ) - > none : self. set ( name, lifespan _ count = 0 )
[ 0.29751190543174744, 0.2559720575809479, 0.4377530813217163, -0.37807708978652954, -0.26179853081703186, 0.7514645457267761, -0.42328765988349915, 0.6316190361976624, 0.08640709519386292, 0.6201954483985901, -0.8491902351379395, 0.16214154660701752, -0.4826303720474243, 0.0520964115858078,...
def concat ( table1 : arrable, table2 : arrable ) : if table1. get _ col _ names ( )! = table2. get _ col _ names ( ) : print ( " table schemas don't match. " ) return col _ names = table1. get _ col _ names ( ) concated = table1. get _ rows ( ) + table2. get _ rows ( ) result = arrable ( ). init _ from _ arrable ( col...
[ 0.06080719456076622, 0.012995995581150055, 0.9064552187919617, 1.54224693775177, -0.8820589184761047, -0.09563758224248886, -1.1475080251693726, -0.8800911903381348, -0.7955253720283508, -0.015975629910826683, 0.5477388501167297, 0.4899057149887085, 0.4100370705127716, 0.11203651875257492,...
def addtolineasbrailleregion ( string, line ) : line. addregion ( braille. region ( string ) )
[ 1.4529221057891846, -1.0025733709335327, 0.4919632077217102, -0.3485744893550873, 0.1985757201910019, 0.4659554958343506, -1.0785197019577026, -0.05041894316673279, 0.18777140974998474, -0.7263209223747253, -0.16477586328983307, 1.3000925779342651, -0.38941651582717896, -0.4645936191082001...
def register _ device ( self, device ) : self. _ devices. append ( device )
[ -1.2668639421463013, 1.6319148540496826, 0.2610951364040375, 0.7083050012588501, 0.9223147630691528, 0.5613594055175781, -0.5639328956604004, 0.03089204989373684, 0.08149681985378265, -1.725555181503296, -0.9964820742607117, 0.7823436856269836, -0.20104818046092987, 1.1442636251449585, 0...
def test _ bottom _ window ( ) : zf _ dis = - 5. 0 lam _ z = 1. 0 a, b = 3, 1 a _ bf, b _ bf, c _ bf = sbp. calc _ bf _ win _ params ( zf _ dis, - 1, lam _ z, a, b ) assert a _ bf = = 3. 0 assert b _ bf = = 1. 0 assert c _ bf < zf _ dis assert c _ bf = = - 6. 5
[ 0.6558932662010193, -0.30939406156539917, 0.7651912569999695, 0.9320178031921387, 1.3153061866760254, 0.4833095967769623, 0.77652508020401, -0.723066508769989, -0.8409981727600098, -0.8376363515853882, -0.1587580442428589, 0.8516363501548767, -1.430863857269287, 1.0991467237472534, 0.139...
def reviews ( self ) : reviews = [ ] objs = models. storage. all ( models. review. review ) for key in objs : if objs [ key ]. place _ id = = self. id : cities. append ( objs [ key ] ) return reviews
[ -0.12186384946107864, -0.9197176694869995, 0.3023240864276886, -0.14240960776805878, 0.17780081927776337, 0.47113141417503357, -1.4399365186691284, 0.5332309603691101, 0.4840739667415619, 0.5134203433990479, 0.013053853996098042, -0.3686138093471527, -0.3416367173194885, 0.5423056483268738...
def plot _ matrix ( corr _ matrix ) : sns. heatmap ( corr _ matrix ) plt. show ( )
[ 1.098132610321045, 0.4230134189128876, 0.03139157593250275, -0.2343376725912094, 0.33660271763801575, -0.08192469924688339, 1.208167552947998, 1.0562478303909302, 0.6674615144729614, -0.2552880644798279, 0.71861332654953, 1.0838483572006226, 0.05748879536986351, 0.1877364069223404, 0.494...
def test _ atomic _ language _ white _ space _ nistxml _ sv _ iv _ atomic _ language _ white _ space _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - whitespace - 1. xsd ", instance = " nistdat...
[ -0.3310282528400421, -0.18878212571144104, 0.36527466773986816, 0.2928681969642639, -0.20296542346477509, 0.040453821420669556, 0.40404999256134033, -0.2763492465019226, 0.9631655216217041, 0.797167181968689, 0.3626552224159241, 0.2122921347618103, -0.20670324563980103, 0.8633791208267212,...
def cubic _ check ( test _ coeff ) : dim = test _ coeff. ndim slices = [ ] slices. append ( slice ( 0, 4 ) ) slice _ direc = 0 for i in range ( dim - 1 ) : slices. append ( 0 ) start = ext _ val4 ( test _ coeff [ slices ], maxx = false ) rest = 0 shape = list ( test _ coeff. shape ) shape [ slice _ direc ] = 1 for spot...
[ 0.5062346458435059, -0.2991439998149872, 0.8805565237998962, -0.08364997804164886, -0.2885664701461792, 0.06310907006263733, 1.0166935920715332, 0.03363393247127533, 0.42747899889945984, 0.40930724143981934, -0.8706409931182861, 0.30152076482772827, -0.5047860145568848, -0.5238235592842102...
def addfile ( self, path, contents = " " ) : try : # to be super careful, we panic and quit if the file already exists ( we'll take this as a sign that a project already exists, and we'd like to avoid writing over anything. ) if self. _ _ pathexists ( path ) : self. exit ( " file already exists : " + str ( path ) ) # a...
[ 0.1291280835866928, -0.12916597723960876, 0.5199392437934875, 0.14149434864521027, 0.4009063243865967, 1.0233736038208008, -0.2102690041065216, 0.24218589067459106, -0.3144017159938812, -1.199317455291748, 1.2764768600463867, -0.8769026398658752, -0.5879142880439758, 0.3928576111793518, ...
def size ( self ) : raise notimplementederror
[ 0.03491488844156265, 0.2786986827850342, 0.4094056487083435, -0.11039923876523972, 0.06311993300914764, 0.9838811755180359, 0.7020899653434753, 0.11433839052915573, 0.24099604785442352, -1.0276473760604858, -0.8840246796607971, -0.3726835548877716, 0.18058283627033234, 0.4111216962337494, ...
def _ _ init _ _ ( self, action _ spec : actionspec ) : self. _ specs = action _ spec
[ 0.5244848728179932, -0.8863893747329712, 0.07058580964803696, 0.2722610533237457, 0.7379061579704285, -0.042892131954431534, 0.3463315963745117, 0.4424247741699219, 0.3666403591632843, 0.510141134262085, 0.01168861798942089, 0.7231281995773315, 1.1517717838287354, 0.30310091376304626, 0....
def test _ small _ file _ sort ( self ) : num _ rows = 10 min _ amount = 1 max _ amount = 100 test _ file ='new _ test. txt'test _ buffer _ size = 200000 create _ random _ file ( test _ file, min _ amount, max _ amount, num _ rows ) test _ total _ size = os. stat ( test _ file ). st _ size test _ num _ of _ files = cei...
[ 0.6848434805870056, -0.028400782495737076, 0.9691036343574524, 0.1549801230430603, 0.6500992774963379, 0.06846378743648529, 0.7803189754486084, -0.577559232711792, -0.1686825156211853, -0.8349142670631409, -0.5584633350372314, -0.4852285385131836, -0.13232018053531647, 0.000991230015642941...
def check _ environment ( ) : assert os. environ ['user'], " user variable not set " python _ ver = sys. version _ info [ 0 ] + 0. 1 * sys. version _ info [ 1 ] assert python _ ver > = 2. 7, ( " running old version of python \ n ", sys. version )
[ -0.20692689716815948, -0.47704610228538513, 0.536499559879303, 0.6242357492446899, 0.3625785708427429, 1.814375638961792, 0.19775842130184174, -0.29050159454345703, -0.8196548223495483, 0.038420505821704865, 0.2914416193962097, 0.7434855699539185, 0.09148935973644257, 1.2504985332489014, ...
def close ( self ) : self. _ connection. close ( ) # hack to work around the fact that closing the connection doesn't # clean up tasks started by asyncio _ redis. see : # https : / / github. com / jonathanslenders / asyncio - redis / issues / 56 if not self. _ loop. is _ running ( ) : self. _ loop. run _ until _ comple...
[ -0.4139871299266815, 0.3441034257411957, 0.5146347284317017, -0.1286957859992981, 0.11483316123485565, 0.07140231877565384, -0.1477372944355011, 0.028608249500393867, -1.1002734899520874, -0.10730894654989243, 0.8181132674217224, -0.30648696422576904, -0.5394062399864197, 0.993414640426635...
def test _ all _ by _ researcher ( self ) : pass
[ 0.13014563918113708, -0.0673522800207138, 0.36059367656707764, 1.85230553150177, 0.7229179739952087, 0.7231813073158264, 1.1001172065734863, -0.3154665529727936, 0.12284869700670242, -0.8157981634140015, -0.16693757474422455, -0.17525100708007812, -0.5917667746543884, 0.9091227650642395, ...
def input _ samples ( self, s = none ) : if not s : s = read _ input ('individual samples ( space or comma separated )') self. members = re. findall ( r " [ \ w \. \ - \ + ] + ", s ) self. members = [ m. strip ( ) for m in self. members ] self. members = [ float ( m ) for m in self. members if m ] self. _ update _ para...
[ 0.2525246739387512, -0.6571425199508667, 0.3167897164821625, -0.0011583404848352075, -0.4884483516216278, 0.027157491073012352, 0.0942578837275505, 0.45378541946411133, -0.2478632926940918, -0.7608866095542908, 0.3140377700328827, 0.7501838207244873, -0.7591603398323059, 0.4220637381076813...
def test _ atomic _ language _ length _ nistxml _ sv _ iv _ atomic _ language _ length _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 1. xsd ", instance = " nistdata / atomic / langu...
[ 0.44787049293518066, -0.2420666664838791, 0.296176016330719, 0.3523392081260681, -0.10233505815267563, 0.09410515427589417, 0.08919056504964828, 0.023273847997188568, 0.28325000405311584, 0.7753588557243347, -0.34230169653892517, -0.6990392804145813, -0.2201709896326065, 0.2696985006332397...
def time _ complexities ( ) : return " best case : o ( n + k ), average case : o ( n + k ), worst case : o ( n + k ) "
[ 0.5660996437072754, -0.04473884776234627, 0.3338642716407776, 0.6028746366500854, 0.33967119455337524, -0.4556123614311218, -0.010003958828747272, 0.18277084827423096, -0.014925757423043251, 1.677064299583435, -0.4787430167198181, -1.1106961965560913, 0.37056711316108704, 0.437319517135620...
def add _ entries _ underscore ( * dictionaries ) : for dictionary in dictionaries : keys = list ( dictionary ) for name in keys : dictionary [ re. sub ('','_ ', name ) ] = dictionary [ name ] return
[ -0.783087432384491, -0.295587956905365, 0.7263796925544739, -1.1748912334442139, -0.001182745210826397, -0.01447833701968193, -1.2893354892730713, 0.5169885158538818, -0.8845756649971008, 0.7635856866836548, -0.8284900784492493, -0.704851508140564, 0.9284189939498901, 0.9023575782775879, ...
def presentitemsinbraille ( items ) : line = braille. getshowingline ( ) for item in items : line. addregion ( braille. region ( " " + item ) ) braille. refresh ( )
[ 0.5721285343170166, -0.6083704233169556, 0.38706523180007935, -0.3362884819507599, 1.4617458581924438, 0.7982771396636963, -0.3161167800426483, 0.5910047292709351, 0.13289472460746765, 0.24271894991397858, 0.08851289749145508, -0.035320963710546494, -0.34443891048431396, 0.4597732424736023...
def make _ link _ cell ( sheet, value ) : cell = writeonlycell ( sheet, value = value ) cell. font = font ( color ='0000ff ', underline ='single') return cell
[ 0.33560070395469666, 0.14885267615318298, 0.5167357921600342, -0.6708188652992249, 0.10566484928131104, 0.15839926898479462, 0.7121124863624573, -0.1305943727493286, 0.8064633011817932, -1.117221713066101, 0.5529622435569763, 1.0348707437515259, 0.5444303750991821, 0.3666234612464905, 0....
def addapplication ( self, app ) : self. _ checkuniquename ( self. _ applications, app. getname ( ) ) self. _ applications. append ( app ) self. subconfigadded. emit ( app ) self. setdirty ( true )
[ -0.45778074860572815, 0.3067256510257721, 0.4071842432022095, 0.4740794897079468, -0.6310667991638184, 1.1137769222259521, -0.43556615710258484, 0.07815606147050858, 0.6878789067268372, 0.2180766612291336, -1.0355521440505981, 0.25615647435188293, 0.1011350080370903, 0.5412070751190186, ...
def test _ atomic _ hex _ binary _ length _ 3 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - length - 4. xsd ", instance = " nistdata / ...
[ 0.12300000339746475, 0.03769587352871895, 0.43727907538414, 0.7174295783042908, 0.14847888052463531, 0.6268892288208008, -0.1933978796005249, 0.40386223793029785, -0.039558831602334976, 0.45841848850250244, -0.5512218475341797, -0.7713026404380798, -0.16663536429405212, 0.09257517755031586...
def merge _ walkupseq _ files ( paths _ to _ batches _ info ) : paths _ to _ batches _ info = glob. glob ('walkupseq _ files / * sample _ info *') dfs = [ ] for f in paths _ to _ batches _ info : tmp = pd. read _ table ( f, encoding ='latin1') dfs. append ( tmp ) df = pd. concat ( dfs, axis = 0 ) df. to _ csv ('walkups...
[ -0.4087364673614502, -0.4695412814617157, 0.6156595349311829, 1.127899169921875, 0.06506143510341644, 0.5727570056915283, 0.9497753977775574, 0.8044595122337341, -0.8817707300186157, -0.008566840551793575, 0.5174376964569092, -0.8027279376983643, 0.40201443433761597, -0.29018715023994446, ...
def _ _ init _ _ ( self, * * kwargs ) : super ( moviestowatchapp, self ). _ _ init _ _ ( * * kwargs ) self. my _ collection = moviecollection ( ) # create another list to not touch the original list, in case for back - up or error self. movie _ to _ show = [ ]
[ -0.6739626526832581, -0.5788989067077637, 0.511947512626648, 0.6182945370674133, -0.1244845911860466, 0.6343555450439453, 0.1347477287054062, 0.6399256587028503, -0.06326691806316376, 0.01571381464600563, -0.8212683200836182, 0.5603926777839661, -0.036496445536613464, 1.2926079034805298, ...
def compute _ avg ( ) : # make predictions y _ pred = self. model _. predict ( test [ " x " ] ) # concatenate pid and y _ pred d = { " pid " : test [ " pid " ], " sale _ price " : np. exp ( y _ pred ) }
[ -0.7675214409828186, -0.5009742975234985, 0.30099380016326904, -0.26036208868026733, 0.21987423300743103, 0.393907368183136, -0.22588057816028595, 1.5039970874786377, -0.9462584257125854, 0.9714762568473816, 0.2770654261112213, 0.6788315176963806, 0.6416768431663513, 0.07335949689149857, ...
def test _ repo _ matches _ model ( ) : repo _ model = snapkubeletrepomodel ( ) assert repo _ model. repo = = " git + ssh : / / k8s - team - ci @ git. launchpad. net / snap - kubelet "
[ 0.44436413049697876, 0.12134094536304474, 0.2235504388809204, 0.28289586305618286, 0.1507619172334671, 1.166752815246582, -0.749413013458252, -0.24306084215641022, 0.22395622730255127, 0.15890872478485107, -0.27595818042755127, -0.7948419451713562, 1.0646487474441528, -0.4763789474964142, ...
def get _ user ( cls, user _ id : str, name : str ='', full _ name : str ='' ) - > notetonuser : user _ id = cls. _ _ fix _ id _ type ( user _ id ) if user _ id not in cls. instance. users : user = notetonuser ( user _ id, name, full _ name ) cls. instance. add _ user ( user ) return cls. instance. users [ user _ id ]
[ 0.2276688814163208, -0.02000068500638008, 0.3689320683479309, 0.5470101237297058, -0.27539175748825073, 0.14478600025177002, -0.6987174153327942, -1.1188732385635376, 0.7648653984069824, -0.5651144981384277, -0.8619083762168884, 0.6041266918182373, -0.5642096996307373, 0.5292571187019348, ...
def simulate _ new _ samples ( self, element _ to _ simulate ='clone ', trials = 1, serial _ samples _ to _ sim = 1, serial _ samp _ pop _ counts = none, serial _ samp _ tpoints = none, update _ freqs _ with _ serial _ samp = true, output _ dirpath = none, include _ observed _ sample = false, use _ comp _ cluster = fal...
[ -0.22326351702213287, 0.08208049088716507, 0.7299312949180603, 0.7440915703773499, -0.1044018343091011, -0.13686785101890564, 0.2582186758518219, -0.5350914001464844, 0.46467387676239014, 0.6812447309494019, 0.18260131776332855, 0.2784510552883148, -0.35010093450546265, -0.0035313633270561...
def get _ reply ( self ) : reply = self. _ _ get _ full _ reply ( ) return reply
[ -0.1689540445804596, -0.3353441655635834, 0.5303143262863159, 0.1318160742521286, -0.02890210598707199, -0.38338205218315125, -0.4676971435546875, -0.31583836674690247, 0.5035438537597656, -0.9856419563293457, -0.18279436230659485, 1.017064094543457, -0.7936928868293762, -0.895860731601715...
def update _ leds ( leds ) : latch. value = false for bit in range ( 8 ) : if leds & ( 1 < < bit ) : data. value = true else : data. value = false clk. value = true clk. value = false latch. value = true
[ -0.8463723659515381, 0.33807432651519775, 0.3280680477619171, 0.22942645847797394, -0.7572361826896667, 1.4486955404281616, -0.05774941295385361, -0.20355889201164246, 0.31299176812171936, 0.04497433081269264, -0.12255341559648514, 1.3976978063583374, -0.6496922969818115, 0.883807003498077...
def to _ categorical ( y, num _ classes ) : return np. eye ( num _ classes, dtype ='float32') [ y ]
[ -0.46462270617485046, 0.47881802916526794, 0.5061890482902527, 0.42395055294036865, 0.2599852383136749, -0.022417375817894936, -0.05731970816850662, -1.0699760913848877, 0.534471333026886, 0.3776116669178009, 0.25136011838912964, 1.4365856647491455, 0.7568296194076538, -0.2058534324169159,...
def get _ template _ nodes ( self, cluster _ config, template _ name ) : nodes = cluster _ config. get ( " nodes ", { } ) result = [ ] for node _ name, node _ entry in nodes. items ( ) : node _ template = node _ entry. get ( " template ", none ) if node _ template is none : continue if node _ template = = template _ na...
[ -1.2054044008255005, 0.17008298635482788, 0.3412241041660309, -0.6804990768432617, -0.32007724046707153, -0.9872515201568604, -0.6055616736412048, 0.984210193157196, -0.6852065920829773, 1.5264899730682373, -0.898934006690979, 0.1546815186738968, 0.18700118362903595, 0.4060889184474945, ...
def test _ reset _ password _ forgotten ( self ) : pass
[ 0.9116359353065491, 0.21180616319179535, 0.20117095112800598, 1.475143551826477, 1.529410719871521, -0.3626213073730469, 1.2594876289367676, -0.4915502965450287, -0.44100239872932434, -0.3762463927268982, -0.8111928105354309, 0.17594014108181, -0.2975158989429474, 0.5446353554725647, 0.2...
def _ compute _ targets ( ex _ rois, gt _ rois, labels ) : # inputs are tensor assert ex _ rois. shape [ 0 ] = = gt _ rois. shape [ 0 ] assert ex _ rois. shape [ 1 ] = = 4 assert gt _ rois. shape [ 1 ] = = 4 # roi 相 的 gt ( dx, dy, dw, dh ) 四 , shape ( len ( rois ) , 4 ) targets = bbox _ transform ( ex _ rois, gt _ rois...
[ -1.0766522884368896, 0.5163206458091736, 0.6813642382621765, -0.08980847150087357, 0.7070091366767883, -0.26932209730148315, 0.029273752123117447, 0.304047167301178, -0.28521350026130676, 0.5115193128585815, 0.6913795471191406, 0.20664770901203156, 0.14068268239498138, -0.8565136790275574,...
def test _ is _ stereo _ 1 ( ) : assert stereo _ 44100 _ 16bits. is _ stereo ( )
[ 0.9297551512718201, 1.1238398551940918, 0.43388864398002625, 2.1335043907165527, 0.7453595399856567, 0.533160924911499, 0.7128371000289917, -1.1215171813964844, 1.159690260887146, -0.7794440984725952, -0.8948125243186951, 0.8504776358604431, -0.5960620641708374, -0.4324887990951538, -0.4...
def info ( dataset = depends ( deps. dataset ), cache = depends ( deps. cache ), ) : zvariables = get _ zvariables ( dataset, cache ) zmetadata = get _ zmetadata ( dataset, cache, zvariables ) info = { } info ['dimensions'] = dict ( dataset. dims. items ( ) ) info ['variables'] = { } meta = zmetadata ['metadata'] for n...
[ -0.8096358776092529, -0.10827174782752991, 0.5390023589134216, -0.9738972783088684, -1.0100374221801758, -0.6912935376167297, 0.1942821592092514, -0.3383612334728241, -0.5696134567260742, 1.0309118032455444, -0.7307137846946716, 0.9478175640106201, 0.8022379875183105, 0.5991066694259644, ...
def parse _ original _ im _ name ( im _ name, parse _ type ='id') : assert parse _ type in ('id ','cam') if parse _ type = ='id': parsed = - 1 if im _ name. startswith ('- 1') else int ( im _ name [ : 4 ] ) else : parsed = int ( im _ name [ 4 ] ) if im _ name. startswith ('- 1') \ else int ( im _ name [ 6 ] ) return pa...
[ -0.3385031521320343, -0.8841683864593506, 0.6183967590332031, 0.4882120192050934, -0.6953012943267822, -0.3633641302585602, 0.10999183356761932, -0.20610374212265015, 0.8699216246604919, 0.4981953203678131, -0.16505976021289825, -0.1292542964220047, -0.47593408823013306, 0.4932794868946075...
def _ identify _ tag _ combination ( tags _ dict, test _ tags _ dict, true _ value = true, none _ value = none, * * unused ) : findings = [ ] for key, value in test _ tags _ dict. items ( ) : if key in tags _ dict and value = = tags _ dict [ key ] : findings. append ( true ) else : findings. append ( false ) if all ( f...
[ 0.16292761266231537, -0.3080075681209564, 0.462110310792923, -0.20021523535251617, 0.41302192211151123, -0.4049491584300995, -0.026065360754728317, 0.19534114003181458, -0.48419633507728577, 0.34528061747550964, -0.08061565458774567, -0.23592928051948547, -0.28501856327056885, 0.8082673549...
def slugify ( self, value ) : value = unicodedata. normalize ('nfkd ', value ). encode ('ascii ','ignore') value = unicode ( re. sub ('[ ^ \ w \ s - ] ','', value ). strip ( ). lower ( ) ) return re. sub ('[ - \ s ] + ','- ', value )
[ 0.4604922831058502, -0.5222061276435852, 0.7204853892326355, -1.373156189918518, -0.7822189927101135, -0.09765290468931198, -1.3221139907836914, 0.7016550898551941, -0.08726220577955246, -0.30517664551734924, -0.23913660645484924, 0.6285214424133301, -0.23489736020565033, 0.730788350105285...
def move _ to _ end ( arr, item ) : if item in arr : arr. append ( arr. pop ( arr. index ( item ) ) )
[ -0.40161919593811035, -0.0962151363492012, 0.5967703461647034, 0.6031890511512756, 0.3559790253639221, -0.009984658099710941, -0.22779366374015808, -0.06557410955429077, 0.29637208580970764, 1.956785798072815, -0.3366599977016449, 0.24616241455078125, -0.21329781413078308, -0.4012940526008...
def getmappingsondevicetypeforlogicalinterface ( self, typeid, logicalinterfaceid, draft = false ) : if draft : req = apiclient. onedevicetypemappingurl % ( self. host, " / draft ", typeid, logicalinterfaceid ) else : req = apiclient. onedevicetypemappingurl % ( self. host, " ", typeid, logicalinterfaceid ) resp = requ...
[ -1.177336573600769, -0.02868051268160343, 0.5287052989006042, -0.8127291798591614, -0.759004533290863, -0.12703801691532135, -0.4448074400424957, -1.118411660194397, 0.6912187337875366, 0.3137109577655792, 0.05144138261675835, 0.057160668075084686, -1.2846919298171997, 0.627350389957428, ...
def execute ( self, query, node _ distance ) : # # # # # # # # # # # # # # # # # # # # # # # # # # matching + projection # # # # # # # # # # # # # # # # # # # # # # # # # # # assign local variables object _ collection = self. mongo _ connection [ " sensor " ] [ " objects " ] limit = query. parameters ['limit'] if query...
[ -0.5672021508216858, 0.24420534074306488, 0.9752162098884583, 0.05297371745109558, 0.5553820133209229, -0.2303239107131958, -0.4036599099636078, -0.19226889312267303, -0.2107486128807068, 1.4252346754074097, 0.5389696359634399, -0.10688648372888565, -0.21998630464076996, -0.130493819713592...
def get _ md5 _ recursively ( path : str, full _ path = false ) - > list : hashes = map ( lambda x : directory _ files _ md5 ( x [ 0 ] ), os. walk ( path ) ) flat _ list = reduce ( lambda crr, src : crr + src, hashes ) if full _ path : return flat _ list return list ( map ( lambda x : ( os. path. relpath ( x [ 0 ], pat...
[ 0.04992815479636192, 0.8415663838386536, 0.5115875005722046, 1.105975866317749, -0.3576088547706604, -0.22234304249286652, 1.1733916997909546, 0.35618311166763306, 0.10491520911455154, 0.004835985135287046, -0.8249841332435608, -0.691629946231842, -0.16528929769992828, 0.6507325768470764, ...
def get _ user _ info ( self, user _ id ) : return self. get _ api _ v1 ( " users / { } ". format ( user _ id ) )
[ -0.666027843952179, -0.10721749067306519, 0.0691705048084259, 0.7134866118431091, 0.24089255928993225, -0.4424435496330261, -0.47307270765304565, -1.1140451431274414, -0.21246807277202606, -0.24396085739135742, -1.004233479499817, 0.9835187196731567, 0.0468609444797039, 0.9397749900817871,...
async def charge _ port _ door _ open ( self ) - > none : data = await self. _ send _ command ( " charge _ port _ door _ open " ) if data and data [ " response " ] [ " result " ] is true : params = { " charge _ port _ door _ open " : true } self. _ vehicle _ data [ " charge _ state " ]. update ( params )
[ -0.3458426296710968, -0.055212054401636124, 0.5883869528770447, 0.04425864294171333, 0.7290163040161133, 0.17519119381904602, -0.3489093482494354, 0.3157842755317688, 0.004514042753726244, 0.3510887920856476, -0.32575640082359314, 1.3197046518325806, -0.919964611530304, 0.8413190841674805,...
def index ( ) : title ='home - welcome lyrified'form = postform ( ) return render _ template ('index. html ', form = form )
[ 0.7868044972419739, 0.42985260486602783, 0.475328654050827, -0.16079586744308472, 0.28708794713020325, 0.09310433268547058, -0.5140826106071472, 0.8288891911506653, -0.7926034331321716, -0.21905507147312164, -0.2753812372684479, 0.08158840984106064, -0.15047019720077515, 0.1474523991346359...
def generate ( x _ test, model, l _ out, out _ fn, length, data _ avg, data _ range ) : set _ all _ param _ values ( l _ out, model ) seed = x _ test [ 0 : 1 ] generated _ seq = [ ] prev _ input = seed for x in range ( 0, length ) : next _ input = out _ fn ( prev _ input ) generated _ seq. append ( next _ input. flatte...
[ -0.3816075921058655, 0.40744683146476746, 0.5678322911262512, -0.07844914495944977, 0.018306512385606766, -0.1404108852148056, 0.25892990827560425, 0.281772643327713, -0.4559617340564728, 0.37368839979171753, -0.46090608835220337, 0.2848389446735382, 0.3367268145084381, -0.1828234791755676...
def get _ site _ description ( 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 : desc _ tags = bs. ...
[ 0.44308480620384216, 0.5342060327529907, 0.486663281917572, 0.7044369578361511, -0.8448495268821716, -0.2262444645166397, 0.4969039559364319, -0.7928871512413025, -0.024182617664337158, 0.4657934010028839, 0.004578981548547745, 0.3565693497657776, 0.11749032139778137, 0.49429038166999817, ...
def data _ sources ( self, data _ sources : list [ reqbodydatasources ] ) : self. _ data _ sources = data _ sources
[ -1.0364731550216675, 0.27679532766342163, -0.20518216490745544, -0.46880605816841125, 0.6618838906288147, 0.556492805480957, -0.45092537999153137, 0.38923609256744385, 0.32599979639053345, -0.7080024480819702, -1.7378157377243042, -0.20129293203353882, -0.21767351031303406, 0.7544146180152...
def _ _ add _ _ ( self, other ) : if isinstance ( other, coordsystem ) : # coordsystem + coordsystem self _ transform = self. local _ to _ world _ transform other _ transform = other. local _ to _ world _ transform return self. from _ transform ( self _ transform. multiply ( other _ transform ) ) elif isinstance ( othe...
[ -0.38316968083381653, -0.28485459089279175, 0.8668683171272278, -0.25787225365638733, 0.16906501352787018, 0.7001275420188904, 0.29504087567329407, -1.5315018892288208, 0.9315077066421509, -1.0590723752975464, 0.044851649552583694, 0.24199365079402924, 0.3750650882720947, 0.195862159132957...
def expand _ compact _ plaintext _ ballot ( compact _ ballot : compactplaintextballot, internal _ manifest : internalmanifest ) - > plaintextballot : return plaintextballot ( compact _ ballot. object _ id, compact _ ballot. style _ id, _ get _ plaintext _ contests ( compact _ ballot, internal _ manifest ), )
[ 0.7910244464874268, -0.09301438927650452, 0.3464636504650116, -0.8890789151191711, -0.9424319863319397, 0.5706294178962708, -0.874030590057373, 0.19596007466316223, 0.9465799927711487, -0.7189164757728577, 0.3808899223804474, 0.5492942333221436, -0.713441014289856, -1.055772304534912, 0....
def mktensor ( data : types. ndtensor, dtype : torch. dtype = torch. float, device : types. device = " cpu ", requires _ grad : bool = false, copy _ tensor : bool = true, ) - > torch. tensor : tensor _ factory = t if copy _ tensor else t _ return tensor _ factory ( data, dtype = dtype, device = device, requires _ grad ...
[ 0.010072472505271435, 0.8019404411315918, 0.2597227096557617, 0.060016240924596786, -0.9536345601081848, 0.32669797539711, 0.12814122438430786, -0.6544461250305176, -0.0011961719719693065, 0.614933431148529, -0.06823764741420746, 0.3656582832336426, 0.5055665373802185, -1.1378746032714844,...
def makepoint ( nx, ny ) : opoint = createunostruct ( " com. sun. star. awt. point " ) opoint. x = nx opoint. y = ny return opoint
[ -0.1566007435321808, -0.515957772731781, 0.27925118803977966, -0.03943929448723793, -0.4871317446231842, 0.9200214743614197, -0.7672392725944519, -0.6017993688583374, 1.248456358909607, -0.7710776925086975, -0.08338582515716553, -0.1118374764919281, 0.022623658180236816, -0.420602828264236...
def get _ years _ ffa ( category ) : today _ year = datetime. today ( ). year if category = = constants. poussin : r ='< % s'% ( today _ year - 9 ) elif category = = constants. pupille : r ='% s - % s'% ( today _ year - 11, today _ year - 10 ) elif category = = constants. benjamin : r ='% s - % s'% ( today _ year - 13,...
[ -0.6619930863380432, -0.6032506823539734, 0.8074385523796082, -1.2264301776885986, -0.6321038603782654, 0.06661991029977798, -0.021661901846528053, -0.3952591121196747, 0.057122740894556046, 0.7518267035484314, 0.8056961894035339, 0.1845133900642395, 1.0216180086135864, 0.3710046410560608,...
def test _ cve _ get _ page ( ) : res = requests. get ( f'{ env. awg _ base _ url } { cve _ url } ', headers = utils. base _ headers, params = {'page':'1 ', } ) assert res. status _ code = = 200
[ 0.13604822754859924, -0.05384693667292595, 0.49819672107696533, 0.07508178055286407, 1.1615750789642334, 0.5176334381103516, -1.1051275730133057, 0.3883068859577179, -0.05297571048140526, -0.015363785438239574, 0.5021663308143616, 0.4922839403152466, 0.2580195963382721, -0.0401381105184555...
def test _ atomic _ language _ length _ 4 _ nistxml _ sv _ iv _ atomic _ language _ length _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 5. xsd ", instance = " nistdata / atomic / l...
[ 0.38285210728645325, 0.005073224194347858, 0.3129377067089081, 0.09003433585166931, -0.40625253319740295, 0.10555662214756012, -0.056258805096149445, -0.2851172983646393, 0.07239334285259247, 0.8504324555397034, -0.706667959690094, -0.6694409251213074, -0.40428340435028076, 0.1088757887482...
def testjournalfieldlinksearch ( self ) : driver = self. driver form = self. form form. enter _ value ('accids ','j : 130344') form. click _ search ( ) # finds the results table and iterates through the table table _ element = self. driver. find _ element ( by. id, " resultstable " ) table = table ( table _ element ) #...
[ 0.32261160016059875, 0.35728850960731506, 0.51356041431427, 0.19748727977275848, 1.0963627099990845, -0.029090961441397667, 0.541765034198761, -0.3099718689918518, -0.15600590407848358, -0.7343067526817322, 0.32296448945999146, -0.07624099403619766, -0.5937866568565369, 0.07295247167348862...
def validate _ mobile _ number ( mobile, err _ obj, err _ key ) : mobile = re. sub ( re. compile ('\ s +'),'', mobile ) if not mobile : err _ obj [ err _ key ] ='mobile number required'return if len ( mobile ) > 11 : err _ obj [ err _ key ] ='max 11 digits long.'return if len ( mobile ) < 10 : err _ obj [ err _ key ] =...
[ -0.33860066533088684, -0.6887064576148987, 0.7887384295463562, -0.007412278559058905, -0.45895126461982727, 0.23405158519744873, -0.048431772738695145, 1.0564618110656738, 0.5091830492019653, 0.11402884125709534, -0.6853638291358948, 0.15592241287231445, 0.5517643690109253, 0.8434988856315...
def get _ mash _ cache ( ) : if not os. path. exists ( mash _ config ) : raise error ( " mash config file " + mash _ config + " not found! " ) # get mash _ cache by parsing mash _ config try : fh = open ( mash _ config,'r') for line in fh : line = line. strip ( ) match = re. match ( r'cachedir \ s * = \ s * (. * ) $ ',...
[ 0.2614591419696808, -0.7152363061904907, 0.6459980010986328, 0.3160571753978729, -0.8819112181663513, 0.0016260972479358315, -0.04343494027853012, 0.494507759809494, -0.36647260189056396, 0.13860517740249634, -0.10449371486902237, -0.16265302896499634, 0.2469693273305893, 0.894972920417785...
def get _ tautomer _ transformation ( m1 : chem. mol, m2 : chem. mol ) - > dict : m1 = copy. deepcopy ( m1 ) m2 = copy. deepcopy ( m2 ) # find substructure and generate mol from substructure sub _ m = rdfmcs. findmcs ( [ m1, m2 ], bondcompare = chem. rdfmcs. bondcompare. compareorder. compareany ) mcsp = chem. molfroms...
[ -0.16330945491790771, -0.30062592029571533, 0.9590654373168945, -0.6161432862281799, -0.3363199830055237, -0.19474971294403076, 0.385916143655777, -0.022498810663819313, -0.7753568291664124, 0.2799423635005951, -0.8843334913253784, 0.1118563786149025, 0.06152953580021858, -0.00358097557909...
def longitude ( self ) : return self. _ longitude
[ 0.3692609965801239, -0.8897666931152344, 0.08465713262557983, -0.10093509405851364, 0.06243953853845596, 0.8899598717689514, 0.09819985181093216, 0.5936283469200134, 1.2634475231170654, -0.989871084690094, -0.7633829712867737, -0.09201151877641678, -0.07205431163311005, -0.3268010020256042...
def sort _ numbered _ files ( folder, ext = " " ) : assert os. path. isdir ( folder ) def is _ in _ format ( filename ) : " " " returns true if filename is in form [ filename ] ext " " " if not filename. endswith ( ext ) : return false return filename [ : len ( filename ) - len ( ext ) ]. isdigit ( ) in _ format = filt...
[ -0.2734640836715698, -0.49366775155067444, 0.9994428157806396, 0.2075549215078354, -0.8479340076446533, 0.2633762061595917, 0.366312175989151, 0.4469328224658966, -0.3010459840297699, -0.18348312377929688, -0.5406783223152161, 0.24958106875419617, -0.6703723073005676, 0.9400901794433594, ...
def learning _ rate _ decay ( alpha, decay _ rate, global _ step, decay _ step ) : return alpha / ( 1 + ( decay _ rate * ( global _ step / / decay _ step ) ) )
[ 0.37734875082969666, -0.6874036192893982, 0.24962696433067322, -0.07833312451839447, -0.18526394665241241, -0.0812159851193428, 0.06892189383506775, 0.8641840815544128, -0.32327666878700256, -0.04127455875277519, 0.16805922985076904, 0.1812330186367035, -0.56974196434021, 1.386494755744934...
def dists _ to _ samples ( rays, t ) : t _ mids =. 5 * ( t [ ellipsis, 1 : ] + t [ ellipsis, : - 1 ] ) mean = rays [ 0 ] [ ellipsis, none, : ] + rays [ 1 ] [ ellipsis, none, : ] * t _ mids [ ellipsis, none ] d = rays [ 1 ] d _ mag _ sq = np. maximum ( 1e - 10, np. sum ( d * * 2, axis = - 1, keepdims = true ) ) t _ half...
[ -0.4196263253688812, -0.837195098400116, 0.7877199053764343, -1.5456897020339966, -0.179880753159523, -0.665576696395874, 0.364635169506073, 0.19207270443439484, 0.00013558162027038634, 1.7506104707717896, -0.5827999711036682, 0.6173025369644165, 1.0629464387893677, 0.28678610920906067, ...
def add _ pair ( self, name, default = none, vtype = none ) : if isinstance ( default, list ) : # take lists into account. for i, value in enumerate ( default ) : self. add _ pair ('% s [ % d ]'% ( name, i ), default = value, vtype = vtype ) return if vtype is none and default is not none : vtype = type ( default ). _ ...
[ -0.9368202686309814, 0.47377315163612366, 0.851535439491272, -0.03337207809090614, 0.0010274582309648395, 0.3355436325073242, 0.1633981466293335, 0.1239672601222992, 0.4444972574710846, -0.18082088232040405, -0.9816988706588745, -0.7976368069648743, -0.6282258629798889, 0.1334051489830017,...
def rectify _ by _ binarization ( img, qr _ code _ hypothesis _ detections ) : height, width, depth = img. shape for detection in qr _ code _ hypothesis _ detections : is _ qr _ code = detection ['is _ containing _ qr _ code'] " " " 0, 1, 2, 3 corresponds to top - left, top - right, bottom - right, bottom - left " " " ...
[ 0.4111705422401428, -0.7138245701789856, 0.8457245230674744, -0.26766306161880493, 0.4871692955493927, 0.16821573674678802, 0.8913352489471436, 0.4420397877693176, 0.6364296674728394, -0.4972360134124756, -0.5660844445228577, 0.39844784140586853, 0.035155367106199265, 0.6299121975898743, ...
def _ _ split _ by _ cluster ( self, clustered ) : splitted = { } for p in clustered : current _ cluster = p. cluster if current _ cluster not in splitted : splitted [ current _ cluster ] = [ ] splitted [ current _ cluster ]. append ( p. point ) return splitted
[ -0.338998407125473, -0.3467697203159332, 0.22488471865653992, -0.2758014500141144, -0.15037639439105988, -0.21220366656780243, 0.539995551109314, 0.6690232753753662, 0.0068934909068048, 1.1267569065093994, -0.817045271396637, -0.30423152446746826, -0.49997082352638245, 0.12830686569213867,...
def _ is _ asset _ type _ exists ( self ) : media = self. m ['media'] for individual _ media in media : if'asset _ type'in individual _ media : return true return false
[ -0.5297006964683533, -0.414558082818985, 0.5653356909751892, -0.35694441199302673, 1.082388997077942, 0.1172867864370346, -0.1553720384836197, -0.28953248262405396, -0.9585605263710022, 0.6899407505989075, 0.45276039838790894, 0.22098636627197266, 0.07909797132015228, 0.4447864890098572, ...
def _ make _ authorized _ get ( endpoint ) : http = http ( ) token = _ get _ bearer _ token ( settings. twitter _ consumer _ key, settings. twitter _ consumer _ secret ) if not token : raise apirequestexception ('unable to retrieve bearer token ', 0 ) return http. request ('% s % s'% ( api, endpoint ),'get ', headers =...
[ -0.1632775217294693, 0.19887222349643707, 0.5733903646469116, 0.17469635605812073, -0.09605973213911057, -1.2782460451126099, -0.8097500801086426, -0.12678270041942596, -0.3413097858428955, -0.2702479958534241, 0.06792177259922028, 1.084188461303711, 0.17272424697875977, -0.662286102771759...
def walk ( self, node : elementtree. element ) : definition = definition ( ) self. process ( node, definition ) self. stack. append ( ( node, definition ) ) block = none # a < section > node means a new sub block if node. tag = = " section " : block = block ( " " ) self. blocks. append ( block ) self. block = block # w...
[ 0.4059823453426361, 0.639242947101593, 0.7709013819694519, 0.16989988088607788, -0.06463365256786346, -0.23527772724628448, 0.7813686728477478, -0.9111565947532654, 0.05258923023939133, -0.5661805272102356, -0.7381283044815063, -0.056580204516649246, -0.08278077840805054, 1.356342434883117...
def test _ background _ scan _ ble _ disabled ( self ) : self. _ setup _ generic _ advertisement ( ) self. scn _ ad. droid. bluetoothenableble ( ) self. scn _ ad. droid. bluetoothtogglestate ( false ) try : self. scn _ ad. ed. pop _ event ( bluetooth _ off, self. default _ timeout ) except empty : self. log. error ( " ...
[ -0.00920259952545166, 0.2470984309911728, 0.6587323546409607, 0.4028978943824768, -0.22655856609344482, 0.6544919013977051, 0.5707030892372131, 0.4098394811153412, 0.2042762041091919, 0.10891473293304443, -0.7117689847946167, 0.14029106497764587, -1.139963150024414, -0.08745477348566055, ...
def _ get _ col ( self, key ) : if key not in self. _ col _ index : raise attributeerror ('field : % s does not exist in header'% key ) prevpos = self. tell ( ) idx, offset = self. _ col _ index [ key ] typ, size, deci = self. field _ spec [ idx ] gap = ( self. record _ size - size ) f = self. f f. seek ( self. header ...
[ -0.4436437487602234, -0.4230422079563141, 0.8862324953079224, -0.6135566830635071, 0.014415357261896133, -0.5970741510391235, -0.04797223210334778, -0.6425381302833557, -1.3639171123504639, 0.21169701218605042, -0.04048652574419975, 0.31409990787506104, 0.3439289629459381, 0.05301138758659...
def ismarket ( url ) : pattern ='http : / / [ a - za - z0 - 9 :. / ] * \? qs = [ 0 - 9a - fa - f ] { 80 }'matches = re. match ( pattern, url ) if matches! = none : return true return false
[ -1.5454298257827759, -0.6154072284698486, 0.5563958883285522, -0.16413761675357819, -0.11466652154922485, 0.4782716929912567, 0.12973834574222565, 0.3115379214286804, 1.5467278957366943, 0.14707185328006744, -0.21427325904369354, 0.3075399398803711, -0.019717039540410042, 0.161172017455101...
def get _ files _ recursive ( path ) : if os. path. isfile ( path ) : return [ os. path. join ( ".. ", path ) ] # else paths = [ ] for ( pth, _, filenames ) in os. walk ( path ) : # ignore directories for filename in filenames : paths. append ( os. path. join ( ".. ", pth, filename ) ) return paths
[ 0.59663325548172, 1.1108286380767822, 0.6697688102722168, 1.1225138902664185, -0.25756150484085083, 0.2818411588668823, 0.8529818654060364, -0.41625723242759705, 0.02455526404082775, -0.21974880993366241, 0.05205988511443138, -0.47451287508010864, -0.9164332151412964, 0.46900662779808044, ...
def generate _ md _ file ( db, list _ classif, key, plot _ title _ fct, filename, url, bibfile, add _ comments = true ) : all _ in _ one _ str = " " # this list will only contains item from list _ classif found in db outline _ list = [ ] for item in list _ classif : str = get _ md ( db, item, key, bibfile, add _ commen...
[ -0.16258551180362701, -0.20179800689220428, 0.8388594388961792, 0.6484493613243103, 0.4367870092391968, 0.4538390040397644, -0.05768260732293129, 1.2399591207504272, -0.4894842505455017, -0.23051948845386505, 0.09636776149272919, -0.37152475118637085, 0.29974794387817383, 0.962150573730468...
def node _ func _ new ( node : list, func _ name, args, body ) - > none : node. append ( [ " node _ fundef ", func _ name, args, body ] )
[ 0.16169914603233337, 0.5782138109207153, 0.4071812927722931, -0.25184717774391174, 1.2662160396575928, -1.0572811365127563, -0.5883352756500244, 0.4619911313056946, -0.7795785665512085, -0.2936807870864868, -0.6739120483398438, 1.2169163227081299, 0.8362571001052856, 1.2504856586456299, ...
def labels ( self ) - > optional [ pulumi. input [ mapping [ str, pulumi. input [ str ] ] ] ] : return pulumi. get ( self, " labels " )
[ -0.22530671954154968, -0.15745463967323303, 0.45300641655921936, -0.12325260043144226, 1.0276039838790894, 1.426761507987976, -0.5941647291183472, 0.29558607935905457, 0.9421886205673218, -0.08657504618167877, -0.24364355206489563, 0.21937374770641327, -0.06669038534164429, -0.550978958606...
def select _ rows ( self : d, row _ indices _ to _ keep : typing. mapping [ str, typing. sequence [ int ] ] ) - > d : resources = { } metadata = self. metadata for resource _ id, resource in self. items ( ) : # we keep any resource which is missing from " row _ indices _ to _ keep ". if resource _ id not in row _ indic...
[ -0.961578905582428, 0.3163359463214874, 0.5336523056030273, -0.09646232426166534, 0.4489389955997467, -0.2870173752307892, 0.6471514701843262, -0.115698903799057, 0.6714665293693542, 0.07846811413764954, 0.40719836950302124, 0.3785192668437958, 0.42507508397102356, -0.19496071338653564, ...
def test _ add _ population ( self ) : pop _ list = [ { " species " : " herbivore ", " age " : 5, " weight " : 20 } for _ in range ( 150 ) ] num _ animals _ 1 = len ( self. cell. animals ) self. cell. add _ population ( pop _ list ) num _ animals _ 2 = len ( self. cell. animals ) assert num _ animals _ 2 > num _ animal...
[ -0.8563070297241211, 0.9629934430122375, 0.6705668568611145, 0.32761049270629883, 1.1143161058425903, 0.5997869968414307, -0.34856632351875305, -0.6260981559753418, -0.4615084230899811, 0.39219871163368225, -0.7329457998275757, -0.7730806469917297, 0.4569023549556732, 0.3558346927165985, ...
def binarymatrix ( tensors, value = config. pad ) : matrix = [ ] for i, tensor in enumerate ( tensors ) : matrix. append ( [ ] ) for value in tensor : if value = = config. pad : matrix [ i ]. append ( 0 ) else : matrix [ i ]. append ( 1 ) return matrix
[ -0.9383361339569092, -0.36687979102134705, 0.539996325969696, 0.5662407875061035, 0.588182806968689, 0.31432044506073, 0.8135001063346863, -0.30855193734169006, 0.3150334656238556, 0.009575176052749157, -0.05447378754615784, -0.6408611536026001, 0.035796377807855606, 0.53168123960495, 0....
def test _ atomic _ any _ uri _ max _ length _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 4. xsd ", instance = " nistdata...
[ -0.017819086089730263, 0.07448377460241318, 0.3837602734565735, 1.1328158378601074, -0.3377026319503784, 0.15364009141921997, -0.3998405635356903, 0.200594961643219, 0.2392204850912094, -0.004339548759162426, 0.13291555643081665, -0.48883041739463806, -0.3588736355304718, -0.20521354675292...
def formatted _ address ( self ) : gmaps = googlemaps. client ( key = self. googlemaps _ key ) geocode = gmaps. reverse _ geocode ( ( self. lat, self. lng ) ) return geocode [ 0 ] ['formatted _ address']
[ 0.005694467108696699, -1.8220300674438477, 0.5894574522972107, -0.3878101408481598, -0.01878509670495987, 0.047807708382606506, -0.6342682838439941, 0.4440731704235077, 0.7219371795654297, 0.21955005824565887, 0.6618512868881226, 1.2626206874847412, 0.0013688706094399095, 0.044391259551048...
def test _ atomic _ hex _ binary _ pattern _ 4 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ pattern _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - pattern - 5. xsd ", instance = " nistdata...
[ -0.35041260719299316, -0.2737308740615845, 0.46359094977378845, 1.0259267091751099, -0.17821943759918213, 0.3814828097820282, 0.29863375425338745, -0.10376951843500137, -0.4008171260356903, 0.5735121965408325, -0.7432103157043457, -0.43331652879714966, -0.5849518179893494, 0.44529619812965...
def test _ list _ integer _ max _ length _ 1 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 2. xsd ", instance = " nistdata / list / ...
[ -0.5503764152526855, -0.47807326912879944, 0.21386577188968658, 0.9635019302368164, -0.5117135643959045, -0.09404022991657257, -0.5878868699073792, 0.08926843106746674, 0.5738019943237305, 0.37335917353630066, -1.075720191001892, -0.2570878565311432, -0.34345418214797974, 1.099429845809936...
def example ( cls ) : return cls ( r'\ newcommand { \ bold } [ 1 ] { \ mathbf { # 1 } }'r'\ int \ sin \ left ( x \ right ) \, { d x }')
[ 0.9061194658279419, -0.45253637433052063, 0.3914257884025574, 0.543560802936554, -0.3448445498943329, 0.1024807021021843, -0.1828204244375229, -0.46951165795326233, 0.5250691771507263, -0.4998476803302765, -0.2418343871831894, -0.004843149799853563, -0.54127037525177, 0.5124696493148804, ...
def test _ sla _ put _ exclusion _ period ( self ) : pass
[ 0.4244508743286133, 0.8090851306915283, 0.09271804243326187, -0.1553543657064438, -0.8010345697402954, 1.8984994888305664, 0.8378818035125732, 0.39319249987602234, 1.2822866439819336, 0.5036647915840149, -0.15894082188606262, 0.5660543441772461, -1.83158278465271, -0.8542823791503906, 1....
def default _ elemwise _ broadcast _ relation ( self, op, input _ idx ) : out _ shape = op. output. shape in _ shape = op. inputs [ input _ idx ]. shape if len ( out _ shape ) < len ( in _ shape ) : raise valueerror ( " for'{ } ', the input / output size is abnormal, as the length of output shape { } is less " " than t...
[ 0.1281975656747818, 0.39941543340682983, 0.7118170261383057, -0.12475477904081345, 0.15243104100227356, -0.13379070162773132, 0.6797601580619812, -0.24119722843170166, 0.6204482913017273, 0.18611355125904083, 0.06367393583059311, 0.5329028964042664, -0.7595195174217224, -0.0756168439984321...
def check _ borders ( self, size ) : all _ borders = [ ] for m in self. materials : if isinstance ( m. borders [ 0 ], list ) : for border in m. borders : all _ borders. append ( border ) else : all _ borders. append ( m. borders ) all _ borders = sorted ( all _ borders, key = itemgetter ( 0 ) ) if all _ borders [ 0 ] [...
[ 0.8761928081512451, -0.25094982981681824, 1.0321404933929443, 0.7946932315826416, 0.30487796664237976, 0.5019011497497559, 0.16756486892700195, -1.1429650783538818, 0.7688485980033875, -0.4596487581729889, -0.4702298939228058, -0.27645453810691833, -1.4227436780929565, 1.2105002403259277, ...
def on _ validation _ batch _ end ( self, trainer : pl. trainer, pl _ module : pl. lightningmodule, outputs : any, batch : batchtype, batch _ idx : int, dataloader _ idx : int ) - > none : # type : ignore ids _ linear _ head = tuple ( batch [ ssldatamoduletype. linear _ head ] [ 0 ]. tolist ( ) ) if ids _ linear _ head...
[ 0.030645469203591347, -0.400115430355072, 0.6223652958869934, 0.5639426708221436, 0.23797138035297394, 1.1780413389205933, 0.3793947398662567, 0.2246856689453125, -0.750970184803009, 0.23454207181930542, -0.9444100260734558, 0.48242104053497314, -0.03340914100408554, 0.7462478280067444, ...
def help ( self, command = none ) : if not command : header = " list of available commands : \ n " body = ", ". join ( cmd for cmd in self. commands. keys ( ) ) return header + body return self. commands [ command. upper ( ) ]. _ _ doc _ _. replace ( " : return : ", " " )
[ 0.0881151407957077, -0.3424983322620392, 0.6691993474960327, -0.4434153139591217, -0.06167628616094589, 0.07651124149560928, -0.41828131675720215, -0.24633833765983582, 0.29594120383262634, 0.5094327926635742, 0.6749833226203918, 0.7659369707107544, -0.18099701404571533, 0.4441216588020324...
def linear _ to _ log ( xs, ys, dy _ dxs, base = none ) : return dy _ dxs * xs / ys
[ -0.2697485685348511, 0.2227122187614441, 0.5393824577331543, -1.0020948648452759, -0.2029571235179901, -0.7078127264976501, -1.1725434064865112, -0.3814496099948883, 0.3406817317008972, -0.22344182431697845, -0.42376041412353516, 0.40437138080596924, 1.0969640016555786, -1.0574792623519897...
def test _ create _ nonexistent _ cveid ( ) : with open ( '. / src / test / cve _ tests / cve _ record _ fixtures / cve - 3000 - 0001 _ nonexistent. json') as json _ file : data = json. load ( json _ file ) res = requests. post ( f'{ env. awg _ base _ url } { cve _ url } / { cve _ id _ dne } ', headers = utils. base _ ...
[ -0.07280726730823517, -0.010825167410075665, 0.5207340121269226, -0.2529953122138977, 1.2644689083099365, 0.7182685136795044, -0.3532235026359558, -0.36626702547073364, -0.48600226640701294, 0.4929462969303131, -0.7230514287948608, 0.6505371928215027, -0.05148730427026749, 0.13201758265495...