text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ mnl _ utility _ transform ( self ) : array _ 1 = np. arange ( 3 ) array _ 2 = np. arange ( 6 ). reshape ( ( 3, 2 ) ) for array in [ array _ 1, array _ 2 ] : results = mixed _ logit. mnl _ utility _ transform ( array ) self. assertequal ( len ( results. shape ), 2 ) self. assertequal ( results. shape, ( array...
[ 0.37455788254737854, -0.3918948471546173, 0.6351965069770813, -0.1218993216753006, 0.32725462317466736, 0.10301253944635391, -0.5468716025352478, -0.3745746612548828, 1.350022315979004, -0.6825114488601685, -0.5876145958900452, 0.46244674921035767, -0.10374287515878677, -0.2325600534677505...
def getfltattrvece ( self, * args ) : return _ snap. pneanetmp _ getfltattrvece ( self, * args )
[ -0.2769984304904938, 0.366440087556839, 0.19171199202537537, -0.18659833073616028, 1.429702639579773, 0.04641818627715111, 0.12517260015010834, -0.8991649746894836, -0.6798656582832336, -0.9624128341674805, -0.013906600885093212, 0.05334145203232765, -0.5670283436775208, 0.7908663749694824...
async def async _ setup _ platform ( hass : homeassistant, config : configtype, async _ add _ entities : addentitiescallback, discovery _ info : discoveryinfotype | none = none, ) - > none : name = config. get ( conf _ name ) port = config. get ( conf _ serial _ port ) baudrate = config. get ( conf _ baudrate ) bytesiz...
[ -0.03041514754295349, -0.23597413301467896, 0.590340256690979, -0.44158104062080383, 0.38839372992515564, -0.6323943734169006, 0.016890423372387886, 0.33776870369911194, 0.48813873529434204, -0.14819598197937012, -0.6037390232086182, -0.36145612597465515, 0.10411109030246735, 0.48412078619...
def addfltattrn ( self, * args ) : return _ snap. pneanetmp _ addfltattrn ( self, * args )
[ -0.5982847809791565, 0.39465567469596863, 0.41812533140182495, -0.007406316697597504, 0.9457123875617981, -0.12778183817863464, 0.2359008491039276, -0.4901461899280548, -0.5647802948951721, -1.5785473585128784, -0.20616839826107025, -1.0422637462615967, -0.06326808780431747, 1.178901076316...
def _ gathering _ topics ( self ) : topic = self. opts ['topic'] topic _ file = f " { topic }. yaml " if topic else none for path, dirs, filenames in chain. from _ iterable ( os. walk ( p ) for p in self. paths ) : if not '. git'in path : if not topic : for filename in takewhile ( lambda f : f. endswith ( self. topic _...
[ 0.7168104648590088, -0.4474901258945465, 0.5675885081291199, 0.3944624066352844, 0.04448879137635231, 0.4335579574108124, 0.06612976640462875, 0.018484434112906456, -0.44121864438056946, 0.17555402219295502, 0.839171826839447, -0.21712344884872437, 0.12940657138824463, 1.173341155052185, ...
def parse _ file ( file, game _ board ) : file = open ( file,'r') parser. parse _ players _ from _ file ( file, game _ board ) parser. parse _ board ( file. read ( ), game _ board ) file. close ( )
[ 0.3738178610801697, -0.5192275047302246, 0.5499032139778137, 0.14403009414672852, 0.21500183641910553, 1.0500731468200684, 0.18134035170078278, 0.7715991735458374, -1.3898799419403076, 0.49449026584625244, 0.0026474036276340485, -0.5259492993354797, 0.12186460196971893, 0.3656226098537445,...
def is _ active ( self ) : return not self. is _ banned
[ 0.19263578951358795, -0.7956142425537109, 0.45119336247444153, 1.3319144248962402, 0.10992397367954254, 0.5224913358688354, 0.26883944869041443, 0.38887208700180054, 0.23599913716316223, 0.19063034653663635, -0.14809265732765198, 0.8592221140861511, -1.1886006593704224, -0.8948497772216797...
def deploy ( * * kwargs ) : # import deployments module from lib import deployments # append current task id to kwargs to be passed deployment object kwargs ['task _ id'] = current _ task. request. id # instantiate deployment object d = deployments. deployment ( * * kwargs ) # execute deployment. deploy ( ) and return ...
[ -1.1216671466827393, -0.5206379294395447, 0.5458640456199646, 0.31255948543548584, 0.061757370829582214, 0.06024917587637901, 0.3818609118461609, -0.21407584846019745, 0.017339389771223068, 0.5877811908721924, 0.07495072484016418, 0.001508065266534686, -0.3072379529476166, 0.21262381970882...
def _ _ lt _ _ ( self, * args ) : return _ snap. tfltpr _ _ _ lt _ _ ( self, * args )
[ 0.3015812039375305, -0.3455929160118103, 0.1745317578315735, -1.5407934188842773, 0.41517141461372375, -0.33263450860977173, -0.477937251329422, -0.37432411313056946, -1.054162621498108, 0.10485134273767471, -0.8129138946533203, -1.755928635597229, -0.8970486521720886, 1.278734564781189, ...
def select ( self, * args ) : return _ snap. ttable _ select ( self, * args )
[ -1.2820624113082886, 0.7131401300430298, 0.36446091532707214, 0.49434906244277954, 0.6909781098365784, -0.40957340598106384, 1.142276406288147, -0.8904219269752502, -0.8263149261474609, 0.3717224597930908, -0.45957520604133606, -1.2364765405654907, 0.0364464670419693, 0.1793091893196106, ...
def rotkehlchen _ server _ with _ exchanges ( rotkehlchen _ server, function _ scope _ kraken, function _ scope _ poloniex, function _ scope _ bittrex, function _ scope _ binance, ) : rotkehlchen _ server. rotkehlchen. kraken = function _ scope _ kraken rotkehlchen _ server. rotkehlchen. poloniex = function _ scope _ p...
[ 0.032606340944767, -0.6304264068603516, 0.647172749042511, -0.5189261436462402, 0.6377191543579102, 0.22906151413917542, -0.39447441697120667, -0.4331066906452179, 0.24118098616600037, 0.12174904346466064, -0.46326205134391785, 1.030701756477356, -0.6169611811637878, 0.2943548858165741, ...
def tungraph _ load ( * args ) : return _ snap. tungraph _ load ( * args )
[ -1.2286332845687866, 0.4528779983520508, 0.33027634024620056, -0.4103825092315674, -0.3539571464061737, 0.03391353413462639, 0.22633685171604156, -0.4239199459552765, 0.4464109241962433, 0.44211769104003906, -1.0113245248794556, -0.08231768012046814, -0.734088122844696, -1.149121880531311,...
def make _ change _ unoptimal _ space ( n, coins = [ 1, 2, 5 ] ) : print ('- - -') k = len ( coins ) dp = [ [ 1 ] + [ 0 ] * n for _ in range ( k + 1 ) ] for row in range ( 1, k + 1 ) : coin = coins [ row - 1 ] for col in range ( 1, n + 1 ) : dp [ row ] [ col ] = dp [ row - 1 ] [ col ] + ( dp [ row ] [ col - coin ] if c...
[ -0.5681020617485046, 0.8973324298858643, 0.7110187411308289, -0.7168316841125488, -0.4113079309463501, -0.06291218847036362, -0.023800967261195183, -0.39372098445892334, 0.21460266411304474, 0.9499604105949402, -0.294302374124527, -0.05476595088839531, 0.009270960465073586, -0.190029889345...
def get _ fs _ connections ( ) : logger. info ( " get _ fs _ connections ( ) " ) sockets = eventsocketconfig. objects. all ( ) if sockets : logger. info ( " % s eventsockets " % len ( sockets ) ) else : logger. info ( " no eventsockets " ) for socket in sockets : logger. info ( " creating eslconnection " ) yield esl. e...
[ -0.2231883555650711, -0.19489170610904694, 0.8249313831329346, 0.2197154462337494, 0.6022399067878723, -1.1397744417190552, -0.24094270169734955, -0.36790797114372253, -0.15684141218662262, -0.5796599388122559, 0.10785584896802902, -1.0131038427352905, 0.6681118607521057, 0.538087248802185...
def getval ( self, * args ) : return _ snap. tintfltkdv _ getval ( self, * args )
[ 0.2536505162715912, 0.9415754079818726, 0.2470584362745285, 0.6801896691322327, 0.33957821130752563, -0.18103012442588806, 0.30726978182792664, -0.12195746600627899, -0.9318367838859558, -0.6690619587898254, 0.3423163592815399, -0.20845915377140045, 0.007623216602951288, 0.8908016681671143...
def test _ example _ input _ one _ delete _ row _ frontend _ validation ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. input _ status _ toggle ( " dummy _ input...
[ 0.20891815423965454, 1.2502814531326294, 0.5493196249008179, 0.9500864744186401, 0.42643868923187256, 0.6200267672538757, 0.06479475647211075, 0.7785370945930481, 0.5093274116516113, -0.008446557447314262, 0.3885211944580078, -0.19795475900173187, 0.350934237241745, 1.109980821609497, 0....
def trip _ duration _ stats ( df ) : print ('\ ncalculating trip duration... \ n') start _ time = time. time ( ) # from the load _ data function, df is already given as filtered # ( meaning that the rows are shortened ( less than the total number of rows in a dataframe ) ) # thus only need to find the total sum of the ...
[ -0.1903870552778244, 0.41843900084495544, 0.8597878217697144, -0.29003429412841797, -0.3380708396434784, 0.16295602917671204, 1.3564730882644653, -0.4102397859096527, 0.15015336871147156, 1.0571874380111694, -0.08957395702600479, 0.7629224061965942, 1.131540060043335, -0.08039623498916626,...
def test _ list _ decimal _ pattern _ 3 _ nistxml _ sv _ iv _ list _ decimal _ pattern _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - pattern - 4. xsd ", instance = " nistdata / list / decimal / sc...
[ -0.41469651460647583, -0.36710551381111145, 0.6129778027534485, 0.431863397359848, -0.11264466494321823, -0.17815811932086945, -0.4701380431652069, 0.25929829478263855, 0.5456424951553345, 0.12650515139102936, -1.141821265220642, -0.734624445438385, 0.038581836968660355, 0.2471248358488083...
def addvmerged ( self, * args ) : return _ snap. tintv _ addvmerged ( self, * args )
[ -0.7465682625770569, 0.36476263403892517, 0.5572572350502014, 0.7007083296775818, 0.7631539106369019, 0.19318042695522308, 0.11297010630369186, 0.17185275256633759, 0.30886217951774597, -0.5394838452339172, -1.3545479774475098, -0.038967281579971313, -1.4750696420669556, 1.254001498222351,...
def initui ( self ) : self. settitle ( " rysowanie _ zestawu " ) self. centre ( wx. both ) self. setsize ( 700, 700 ) menubar = wx. menubar ( ) self. setmenubar ( menubar ) self. centre ( ) self. grid = wx. grid. grid ( self, - 1 ) self. grid. setdefaultrowsize ( 1 ) self. grid. setdefaultcolsize ( 1 ) self. grid. crea...
[ -0.6895339488983154, -0.06777238845825195, 0.7709599733352661, 0.5233479738235474, -0.7706253528594971, 0.14368705451488495, 0.6033166646957397, -0.17820529639720917, -0.7764198184013367, -0.2335689216852188, -0.7780341506004333, -0.257964551448822, -0.23792468011379242, 1.088712453842163,...
def system _ time ( ) : consoleoutput = exec _ console _ command ( constants. outputtime ) return consoleoutput + " \ n "
[ -0.2431357353925705, -0.4353145658969879, 0.8072546124458313, 0.42971912026405334, 0.12003624439239502, -0.22733187675476074, -0.05841664597392082, -1.1686102151870728, -1.076042652130127, 0.6443735957145691, -0.05600293353199959, 0.1775737702846527, -0.055266812443733215, 0.55215859413146...
def delete ( self ) : if self. _ animation : clock. unschedule ( self. _ animate ) self. _ vertex _ list. delete ( ) self. _ vertex _ list = none self. _ texture = none # easy way to break circular reference, speeds up gc self. _ group = none
[ 0.09052488207817078, 0.17871180176734924, 0.26773735880851746, -0.20124053955078125, -0.8364993929862976, -0.3557441234588623, 1.4897266626358032, -0.709402322769165, 0.30911731719970703, -0.14826975762844086, -0.8323165774345398, 0.7361399531364441, -1.0179411172866821, 0.9311222434043884...
def setup ( self ) : super ( testregionsshell, self ). setup ( ) self. region _ valid _ fields = namespace ( project _ id = 1, id = 1, name ='mock _ region') self. region _ invalid _ field = namespace ( project _ id = 1, id = 1, name ='mock _ region ', invalid _ foo ='ignored')
[ 0.9314234852790833, 0.029763327911496162, 0.42225193977355957, -0.39637845754623413, 0.5072241425514221, 0.41099947690963745, -0.008538288064301014, -0.21875359117984772, 0.6051071286201477, -0.6164944171905518, -0.9354193210601807, 0.15937630832195282, -0.1087479442358017, 0.6745067834854...
def test _ with _ format ( ) : pytest. debug _ func ( ) wobj = nldt. moment ('dec 29, 2016 ','% b % d, % y ', itz ='local') assert wobj ( ) = ='2016 - 12 - 29'with pytest. raises ( valueerror ) as err : # payload wobj = nldt. moment ('dec 29 2016 ','% b % m, % y') msg = " time data'dec 29 2016'does not match format'% b...
[ 0.27400001883506775, -0.5802512168884277, 0.5551313161849976, -0.2796047031879425, 0.12199802696704865, 0.8510957956314087, -1.086024522781372, -1.2089952230453491, 0.07234062999486923, -0.07409019023180008, 0.4978207051753998, -0.18341809511184692, 0.047714076936244965, 1.0658286809921265...
def create _ message ( ) : if request. method = ='post': # if incommming request data is a json object. if request. is _ json : title = request. get _ json ( ) ['title'] content = request. get _ json ( ) ['content'] sender = request. get _ json ( ) ['sender'] url = request. get _ json ( ) ['url'] # if incomming request...
[ -0.9415495991706848, 0.8431211709976196, 0.7925745844841003, 0.3088047206401825, 0.876632809638977, 0.07607971131801605, -0.6632217764854431, -0.37729230523109436, -0.576775312423706, -0.6403553485870361, 0.7168845534324646, -0.5306092500686646, -0.2303769737482071, 0.9236568808555603, -...
def geteainti ( self, * args ) : return _ snap. tneanet _ geteainti ( self, * args )
[ -0.7150244116783142, -0.2516542077064514, 0.2799912691116333, -0.510654091835022, 0.48058992624282837, 0.22776152193546295, -0.07267532497644424, -0.8360920548439026, -0.9812848567962646, 0.22408035397529602, -0.19718486070632935, -1.679335594177246, -0.43934881687164307, 0.428220063447952...
def _ _ init _ _ ( self, * args ) : _ snap. tmodenetedgei _ swiginit ( self, _ snap. new _ tmodenetedgei ( * args ) )
[ -1.1088398694992065, 0.16371023654937744, 0.2073918879032135, 0.03306569531559944, 0.4809891879558563, 0.28338462114334106, 0.1141539216041565, 0.3451146185398102, -1.419429898262024, 0.645972728729248, -1.2157683372497559, -1.0232033729553223, -0.2951560914516449, 0.8759446144104004, 0....
def last ( self, * args ) : return _ snap. tintfltkdv _ last ( self, * args )
[ -0.22003024816513062, 0.41583263874053955, 0.3133055567741394, 0.37745240330696106, 0.6141969561576843, -0.48064783215522766, 0.09416259825229645, -0.05763689801096916, -1.183284044265747, -0.20377565920352936, 0.041566021740436554, -0.800983190536499, -0.6934866905212402, 0.96277475357055...
def cumprod ( x, axis = 0, exclusive = false, reverse = false, name = none ) : with ops. name _ scope ( name, " cumprod ", [ x ] ) as name : x = ops. convert _ to _ tensor ( x, name = " x " ) return gen _ math _ ops. cumprod ( x, axis, exclusive = exclusive, reverse = reverse, name = name )
[ 0.7112387418746948, 0.7239009141921997, 0.8632757067680359, 0.7327364683151245, -1.278501033782959, 0.5144199132919312, 0.2596522867679596, -0.38394296169281006, 0.10529649257659912, 0.6199765205383301, -0.11558885127305984, 1.47479248046875, 0.8805356025695801, -1.6899759769439697, 0.29...
def tagsearch _ n _ open ( self, tag _ name = " # parashar " ) : self. text _ to _ speech ( " searching for tag { } ". format ( tag _ name ) ) self. _ _ search _ tag ( tag _ name ) try : self. _ _ open _ first _ tile ( ) except exception as e : logging. error ( e, exc _ info = true ) self. text _ to _ speech ( " tag se...
[ -0.663638710975647, 0.539858341217041, 0.5610388517379761, 0.4162246584892273, 0.017790118232369423, 0.0346514917910099, 0.3992235064506531, -0.4583267271518707, -0.4996309280395508, -0.038962289690971375, -0.18647457659244537, -0.3948453366756439, -0.09218298643827438, 1.4712944030761719,...
def to _ borders ( arr, min _ value, max _ value ) : arr [ np. where ( arr < min _ value ) [ 0 ] ] = min _ value arr [ np. where ( arr > max _ value ) [ 0 ] ] = max _ value return arr
[ 0.2134866714477539, -0.5382615923881531, 0.4837840497493744, 0.5835515260696411, 0.016373930498957634, 0.28450077772140503, -0.28664058446884155, -0.507346510887146, 0.4652255177497864, 0.18231505155563354, -0.5141134858131409, 1.3197486400604248, 0.6912658214569092, 0.46003761887550354, ...
def town _ name ( self, town _ name ) : if town _ name is none : raise valueerror ( " invalid value for ` town _ name `, must not be ` none ` " ) # noqa : e501 if town _ name is not none and len ( town _ name ) > 35 : raise valueerror ( " invalid value for ` town _ name `, length must be less than or equal to ` 35 ` " ...
[ 0.3606971204280853, -0.0013967175036668777, -0.09398031234741211, 0.41646912693977356, 0.5071393251419067, 0.6682515740394592, 0.2788199484348297, 0.2590506970882416, -0.25146111845970154, 0.1149434968829155, -1.0549870729446411, -0.17038249969482422, 0.2505183219909668, 0.0335416644811630...
def do _ test _ image ( self, img, srv ) : if img! = " " and srv! = " " : imageid = img servertype = srv else : print ( " usage : test _ image < image id > < server type > " ) return print ( " image id : " + imageid ) print ( " server type : " + servertype ) testserver = self. get _ architecture ( servertype ) if tests...
[ -1.0200196504592896, 0.22761034965515137, 0.8080503344535828, -0.19757580757141113, -0.06471176445484161, -0.08976654708385468, 0.3841782510280609, 0.2421122044324875, 1.0105277299880981, 0.017032897099852562, -0.031559303402900696, 1.3016798496246338, -0.638285756111145, 0.912822782993316...
def index _ card ( self, indexable _ card ) : self. deck. index ( card. check ( indexable _ card ) )
[ -0.6411636471748352, -0.22593580186367035, 0.046668890863657, 0.39537525177001953, 0.27107948064804077, -0.1628163754940033, 0.6065769791603088, 1.0731943845748901, -0.142433762550354, 0.3061761260032654, 0.13436463475227356, 0.4232552647590637, -0.266803115606308, -0.5609264373779297, 0...
def ttable _ normalizecolname ( * args ) : return _ snap. ttable _ normalizecolname ( * args )
[ -1.038633108139038, 0.03328247740864754, 0.4740454852581024, 0.9506590962409973, -0.9974636435508728, -0.2979274094104767, 0.7183898091316223, 0.16412626206874847, -1.0274778604507446, 0.7563768625259399, -0.6138794422149658, -1.3076879978179932, -0.41132304072380066, -0.03610590472817421,...
def getprimhashcd ( * args ) : return _ snap. tstrhashf _ oldglib _ getprimhashcd ( * args )
[ 1.8199269771575928, -0.2546837329864502, 0.5370361804962158, 0.437808096408844, -0.4664577543735504, 0.8441875576972961, 0.006848128046840429, 0.48605257272720337, -0.10601814091205597, -0.443258136510849, 0.4238694906234741, 0.37691566348075867, -1.0412441492080688, -0.06978189200162888, ...
def callback _ wrapper ( resolve _ fn : resolvefunc [ tresult ], resolve _ value : t ) - > none : result = onfullfilled ( resolve _ value ) # if returned value is a promise then this promise needs to be # resolved with the value of returned promise. if isinstance ( result, promise ) : result. then ( lambda value : reso...
[ 0.6669865250587463, -0.12789294123649597, 0.4481699466705322, 0.7796470522880554, 0.06624531000852585, -1.151155948638916, -0.8268059492111206, 0.1251373440027237, 0.09879378229379654, -0.18780435621738434, -0.5942078232765198, -0.8604972958564758, 0.345273494720459, -0.04924634471535683, ...
def test _ minimize _ expsum2d _ bounded ( self ) : opt _ params = {'eta': 1,'eta _ min': 1,'eps': 1e - 12,'discrete': true,'bounds': cconstraintbox ( lb = - 1, ub = 1 ) } self. _ test _ minimize ( coptimizerpgdls,'poly - 2 ', opt _ params = opt _ params, label ='poly - discrete - bounded ', )
[ 0.012550133280456066, -0.4980922043323517, 0.7251096367835999, 0.7225306034088135, 0.6627498269081116, 0.6274910569190979, 0.23033219575881958, -0.9602944254875183, 0.7049452662467957, -0.8371773362159729, -0.9860082268714905, -0.23286010324954987, 0.07220082730054855, 0.17241284251213074,...
def testsplitgcspath ( self ) : bucket, object _ uri = gcp _ storage. splitgcspath ('gs : / / fake - bucket / fake - folder / fake - object') self. assertequal ('fake - folder / fake - object ', object _ uri ) self. assertequal ('fake - bucket ', bucket )
[ -0.6068910956382751, -0.22907708585262299, 0.47724953293800354, 0.7702952027320862, 0.7744335532188416, 1.1604433059692383, 0.9092486500740051, -0.6196072697639465, -0.3956523537635803, -0.21047678589820862, -1.5046958923339844, 0.12329515069723129, -0.5927538871765137, -0.9052044749259949...
def findstrongs ( word, words _ rc ) : # tricky : the config. yaml does not provide sufficient information to # locate the word, however we only have 3 options. # there should not be any duplicates within these folders. logger = logging. getlogger ( logger _ name ) numbers = [ ] data = words _ rc. read _ chunk ('kt ', ...
[ 0.8261078000068665, 0.025683222338557243, 0.4810501039028168, -0.12306781113147736, 0.4502371549606323, -0.6726794242858887, 0.041355956345796585, -0.3876032531261444, -0.7082409858703613, 0.38588953018188477, -0.3491462171077728, -0.34282854199409485, -0.4946794807910919, 1.05028235912323...
def getdat ( self, * args ) : return _ snap. tintprv _ getdat ( self, * args )
[ -0.5770889520645142, -0.027763154357671738, 0.6549144983291626, -0.34496960043907166, 1.0242104530334473, 0.5195031762123108, 0.0786791667342186, -0.42108792066574097, -0.2351171374320984, -1.1387884616851807, -0.19933955371379852, -0.08239232003688812, -1.2130348682403564, 0.0439689382910...
def to _ onehot ( vec, num _ classes, fill = 1000 ) : onehot _ result = vec. new ( vec. size ( 0 ), num _ classes ). float ( ). fill _ ( - fill ) arange _ inds = vec. new ( vec. size ( 0 ) ). long ( ) torch. arange ( 0, vec. size ( 0 ), out = arange _ inds ) onehot _ result. view ( - 1 ) [ vec + num _ classes * arange ...
[ -0.42879152297973633, 0.2423003911972046, 0.550639271736145, -0.35038867592811584, 0.5912444591522217, -0.13578252494335175, 0.8727798461914062, -0.2866990864276886, 0.641282856464386, -0.2736576497554779, 0.031789060682058334, 0.47830599546432495, 0.8663674592971802, -0.44361788034439087,...
def my _ operation ( self, text ) : self. extract _ entity _ counts ( text ) return self. gpe, self. person, self. org
[ -0.24237152934074402, -0.43698200583457947, 0.28440243005752563, -0.04820254445075989, -0.449909508228302, 0.42254722118377686, 0.1862954944372177, 0.9044776558876038, -1.0671577453613281, -0.10504452139139175, 0.18737530708312988, -1.3311573266983032, -1.0873593091964722, -0.4748322367668...
def write _ bias _ data ( sdata, ccd, quad, overclock, stime, bad _ col ) : if quad = = 0 : start = 1 end = 256 elif quad = = 1 : start = 257 end = 512 elif quad = = 2 : start = 513 end = 768 elif quad = = 3 : start = 769 end = 1024 # # - - - extract the part ( quad ) we need # tdata = sdata [ 1 : 1204, int ( start ) :...
[ 0.26549339294433594, -0.15420010685920715, 0.899373471736908, -0.0042227329686284065, 0.0945754125714302, 0.06759177148342133, 0.5438358783721924, 0.058678243309259415, -0.4669799208641052, 0.7970905900001526, -0.784161388874054, 1.027387261390686, -0.2860747277736664, 0.06408968567848206,...
def tstr _ getspacestr ( * args ) : return _ snap. tstr _ getspacestr ( * args )
[ 0.5911824107170105, -0.0668482780456543, 0.23401498794555664, 1.0790293216705322, 0.721974790096283, 0.7241270542144775, 0.22958281636238098, -0.5206276178359985, -0.9200973510742188, -0.7168412804603577, 0.6712875962257385, -0.6631150841712952, -0.02776437997817993, 0.7842802405357361, ...
def add _ books ( request ) : base = get _ base ( request ) if userprofile. objects. get ( user = request. user ). entity! ='staff': return redirect ('/ home /') if request. method = = " post " : book _ number _ init = int ( request. post. get ( " book _ number _ init " ) ) book _ number _ end = int ( request. post. ge...
[ 0.2010011225938797, -0.13886375725269318, 0.884765625, 0.794917106628418, 0.7450714707374573, 1.4577925205230713, 0.4460396468639374, 0.15436890721321106, -0.4259388744831085, -0.10972517728805542, 0.9032090306282043, -0.2041136920452118, -0.04018203169107437, 1.103021502494812, -0.45799...
def _ _ init _ _ ( self, * args ) : _ snap. tstrinthi _ swiginit ( self, _ snap. new _ tstrinthi ( * args ) )
[ 0.8179307579994202, -0.37542015314102173, 0.04789407551288605, -0.4111442565917969, 0.09858822077512741, -0.13835690915584564, 0.6462697982788086, 1.1166102886199951, -1.952879548072815, 0.3538954555988312, -0.9938369989395142, -0.9548566937446594, -0.04416307434439659, 0.04441065341234207...
def get _ albums ( ) : # connect to the database db = connect _ minerva _ db ( ) # return all the albums as a list albums = list ( db. albums. find ( ) ) return albums
[ 0.31047484278678894, -0.30075201392173767, 0.25230276584625244, 0.7991614937782288, 1.1911324262619019, 1.2881883382797241, -1.0051329135894775, 0.15798600018024445, 0.20384126901626587, 0.3429178297519684, -1.0044273138046265, -0.3138754963874817, -0.8695640563964844, 0.2181451916694641, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintfltvhi _ _ _ eq _ _ ( self, * args )
[ -0.055092938244342804, 0.06836100667715073, -0.12467414140701294, 0.0004201249103061855, 0.37973275780677795, -0.03245750069618225, 0.3353172540664673, -0.3519531488418579, -0.8033795356750488, 0.1068265438079834, -0.5338985919952393, -0.24374592304229736, -0.3382062613964081, 1.1856737136...
def _ servicefacility ( self, action ) : logging. debug ( " executing action % s on service % s ", self. name, action ) cmd = [ basedefs. exec _ service, self. name, action ] return execcmd ( cmdlist = cmd, usepipefiles = true )
[ -0.5362213850021362, -0.549658477306366, 0.2911408245563507, -0.21904295682907104, 0.8126140832901001, -0.8082659244537354, 0.0823407918214798, -0.1508324146270752, 0.07423748075962067, -0.3414071500301361, 0.8311041593551636, 0.9291805624961853, 0.5462754964828491, 0.09478176385164261, ...
def count ( self, * args ) : return _ snap. ttable _ count ( self, * args )
[ -0.9514414072036743, 0.42874088883399963, 0.5764434933662415, 0.5882578492164612, 0.38877442479133606, 0.5209310054779053, 0.9781221747398376, -0.5281188488006592, -1.8333961963653564, 0.5156019330024719, -0.7174302935600281, -1.7318958044052124, 0.4717930555343628, 0.970868706703186, -0...
def cart _ id ( self, cart _ id ) : self. _ cart _ id = cart _ id
[ 0.6522995233535767, -1.356338620185852, 0.09391827881336212, -0.3268270790576935, 0.23623599112033844, 0.69563889503479, 0.012848534621298313, 0.3560064733028412, 0.17851918935775757, -0.15785259008407593, -0.2599538564682007, 1.1627402305603027, 0.7815874218940735, 0.8570699095726013, 0...
def union ( self, x, y ) : x _ raiz = self. find ( x ) y _ raiz = self. find ( y ) self. link ( x _ raiz, y _ raiz )
[ -0.01811627298593521, -0.3645961582660675, 0.566802978515625, -0.30219966173171997, 1.1130410432815552, 0.5286716222763062, -0.47002238035202026, -0.629341185092926, -0.07961477339267731, -0.6202467679977417, -0.13074836134910583, 0.7095536589622498, -0.18946842849254608, -0.67180669307708...
def shopify _ create _ log ( self, message = false, model _ id = false, product = false, log _ line _ array = false ) : log _ line _ vals = { " message " : message, " model _ id " : model _ id, " product _ id " : product and product. id or false, " default _ code " : product and product. default _ code or false } log _...
[ -0.5469714403152466, -0.06843144446611404, 0.29150390625, 0.4521242678165436, 1.1434613466262817, 0.34338197112083435, -1.4101545810699463, -1.0774627923965454, -0.4760303795337677, 0.21472518146038055, -0.9309383630752563, 0.5028497576713562, -0.5861673355102539, 0.5666019916534424, 0.5...
def rmsnormalization ( signal, desired _ rms _ lvl ) : # convert to linear scale r = 10 * * ( desired _ rms _ lvl / 20 ) scaling _ factor = np. sqrt ( ( len ( signal ) * r * * 2 ) / sum ( signal * * 2 ) ) output = signal * scaling _ factor return output
[ -0.055227573961019516, -0.3573944866657257, 0.5544575452804565, -0.03799789398908615, -0.6891613006591797, -0.3242381811141968, -0.5599605441093445, 0.12531326711177826, -0.060495525598526, 0.31797078251838684, -0.48064884543418884, 1.1972988843917847, -0.3606885075569153, 0.32470738887786...
def simulate _ ret ( position, num _ trials ) : cumu _ ret = { } daily _ ret = { } # create a dictionary for daily return with key be the specific single day, # value be the corresponding expected return position _ value = 1000 / position positionret = 0 for trial in range ( 1, num _ trials + 1 ) : positionret = simula...
[ 0.0687425509095192, 1.0127017498016357, 0.4247109591960907, 0.06999969482421875, 0.10949118435382843, -0.664752721786499, 0.598842203617096, 0.10544920712709427, -0.18293295800685883, -0.043220557272434235, -0.11420305073261261, -0.6563871502876282, -0.15876631438732147, -0.411818802356719...
def add _ plot ( self, step = none, sol = none, datasource = none, colormap = none, mesh _ size = none ) : if step is none : step = self. default _ step _ idx if sol is none : sol = self. default _ sol _ idx if datasource is none : datasource = self. datasource plot = plot ( step, sol, mesh _ size, datasource, colormap...
[ 0.12648877501487732, 0.8438376188278198, 0.054429005831480026, 0.20188824832439423, -0.2242954671382904, 0.12465320527553558, -0.4467211365699768, 0.23084591329097748, 0.3602452874183655, -1.9328395128250122, -0.5077798366546631, 0.26679572463035583, -0.3498794734477997, 0.3767164945602417...
def one _ hot _ decode ( one _ hot ) : if type ( one _ hot ) is not np. ndarray : return none if len ( one _ hot ) = = 0 or len ( one _ hot. shape )! = 2 : return none labels = np. argmax ( one _ hot, axis = 0 ) return labels
[ -1.0496776103973389, -1.30726158618927, 0.657574474811554, 0.5054458975791931, 0.06690341234207153, -0.4919429421424866, -0.43602192401885986, 0.3163006901741028, 1.426985263824463, 0.35102930665016174, 0.10315874218940735, 0.049868885427713394, -0.8952782154083252, 0.5923226475715637, 1...
def peel _ in _ large ( self, peeled _ branch, peel _ off _ of, peeled _ side ) : # first we see if there is any obstruction for the peeling and if there # is, we try to remove it by isotoping. lg _ cusp = self. _ large _ tt. adjacent _ cusp ( peeled _ branch, peeled _ side ) sm _ cusp = self. large _ cusp _ to _ small...
[ -0.4662226140499115, 0.09886407107114792, 0.8026047348976135, -0.09693091362714767, -0.6892614364624023, 0.6320656538009644, 0.16879461705684662, 0.5792439579963684, 0.5043647289276123, 0.08843611925840378, -0.07110286504030228, -0.9284631013870239, -0.411593496799469, 0.22832447290420532,...
def values ( self ) : return self. _ values
[ -0.5095677971839905, 0.07046755403280258, 0.0802561342716217, -0.21421200037002563, 0.6218349933624268, 0.5909281373023987, -0.38561955094337463, -0.0163949653506279, -0.21769298613071442, -1.6003689765930176, -0.6755780577659607, 0.2093355506658554, 0.38196608424186707, 0.6823683381080627...
def window _ transform _ text ( text, window _ size = 2, step _ size = 1 ) : l = len ( text ) steps = np. arange ( start = - 0, stop = l - window _ size, step = step _ size ) inputs = [ text [ i : i + window _ size ] for i in steps ] outputs = [ text [ step + window _ size ] for step in steps ] return inputs, outputs
[ 0.0061349766328930855, -0.5565307140350342, 0.5695863962173462, 0.5879566073417664, -1.46091890335083, -0.6020791530609131, 0.9190008640289307, 0.9417731165885925, 0.3289068341255188, 0.5538309216499329, -0.662930965423584, 0.9664127230644226, -0.9898346066474915, 1.2724863290786743, -0....
def ler ( self, * args, * * kwargs ) - > none :
[ 0.2384657859802246, -0.6855361461639404, 0.21842293441295624, -0.71551913022995, 1.2334368228912354, -0.016102856025099754, -0.6630833745002747, 0.1481775939464569, -0.24734744429588318, -0.7620527744293213, -0.06633540242910385, -0.17062580585479736, -0.44801443815231323, 0.38521856069564...
def os ( self ) : return self. _ os
[ -0.34330618381500244, -0.10347433388233185, 0.13646146655082703, 0.35637208819389343, -0.45411860942840576, 0.5335878133773804, 1.1818712949752808, -0.48076725006103516, 0.4262025058269501, -1.650539755821228, 0.16876941919326782, 0.4545426666736603, 0.4128108322620392, -0.9620754718780518...
def getwccs _ pungraph ( * args ) : return _ snap. getwccs _ pungraph ( * args )
[ -0.8718346953392029, 0.7577560544013977, 0.36915159225463867, 0.3484227955341339, -0.19374820590019226, -1.0724467039108276, 0.5102599859237671, -0.256639301776886, 0.45181724429130554, 0.11279439926147461, -0.48749130964279175, 0.03330359607934952, -1.1940046548843384, 0.03876667469739914...
def deg2rad ( arr ) : # todo : is there any reason not to use np. deg2rad? return arr / 180 * np. pi
[ -0.8525054454803467, -0.6704188585281372, 0.2404986470937729, -1.0572528839111328, -0.1972164660692215, 0.3781437277793884, -0.09453259408473969, -0.6497377157211304, 1.0517288446426392, -0.1589815765619278, 0.23826034367084503, 0.3806648254394531, 0.05605211853981018, 0.6215201616287231, ...
def get ( self, request, option _ id ) : option = reservationoptions. objects. get ( id = option _ id ) return render ( request, " option. html ", { " option " : option } )
[ -0.10146228224039078, 0.6442175507545471, 0.2480972707271576, 0.2786688506603241, 0.3339948058128357, -0.00633832486346364, -0.5135571956634521, 0.3964281976222992, 0.6618862748146057, 1.1532336473464966, 0.7207506895065308, -0.08606681227684021, 0.2741026282310486, -0.4558100700378418, ...
def parse _ implicit _ response ( uri, state = none, scope = none ) : if not is _ secure _ transport ( uri ) : raise insecuretransporterror ( ) fragment = urlparse. urlparse ( uri ). fragment params = dict ( urlparse. parse _ qsl ( fragment, keep _ blank _ values = true ) ) if'scope'in params : params ['scope'] = scope...
[ -0.38744282722473145, -0.24314706027507782, 0.7356123924255371, -0.8761070966720581, -0.8581017255783081, -0.8212732076644897, 0.13077156245708466, 0.136457160115242, 0.4759226441383362, 0.8285820484161377, -0.6754179000854492, 0.08072806894779205, -0.04502527043223381, -0.4324845969676971...
def stay ( self ) : self. _ draw ( )
[ 0.674516499042511, -0.34983792901039124, 0.24737036228179932, -0.7066998481750488, 0.11639559268951416, 1.7686829566955566, 0.5946798920631409, -0.7010110020637512, 0.10010834783315659, -1.1624830961227417, -0.35589301586151123, 0.21390050649642944, -0.7221179604530334, -0.8111562132835388...
def deskew _ x ( input _ image : image, output _ image : image = none, angle _ in _ degrees : float = 31. 8, voxel _ size _ x : float = 1, voxel _ size _ y : float = 1, voxel _ size _ z : float = 1, scale _ factor : float = 1, linear _ interpolation : bool = true ) - > image : if not linear _ interpolation : warnings. ...
[ -0.10914881527423859, 0.8966980576515198, 1.1009434461593628, -0.3171442151069641, -0.6168434023857117, -0.1275152713060379, -0.19497713446617126, -0.13544784486293793, 0.280157208442688, -0.41039904952049255, 0.15928690135478973, 0.3334275484085083, 0.36352279782295227, 0.0376858673989772...
def arccosh ( x ) : try : if x. val < = 1 : raise valueerror ('math domain error') return variable ( x. name, np. arccosh ( x. val ), { k : v / np. sqrt ( x. val * * 2 - 1 ) for ( k, v ) in x. der. items ( ) }, false ) except attributeerror : if x < 1 : raise valueerror ('math domain error') return np. arccosh ( x )
[ 0.12495443224906921, 0.16489434242248535, 0.46021032333374023, -0.08941032737493515, -1.2710264921188354, 0.31042006611824036, -0.3017277717590332, -0.8283376693725586, -0.09354748576879501, 0.2409498542547226, 0.7244983911514282, 0.8867149353027344, 0.6528320908546448, -0.2505653202533722...
def state ( self ) : return { " active " : self. active, " current _ step " : self. current _ step, " step _ delay " : self. step _ delay, " step _ duration " : self. step _ duration, " delay _ complete " : self. _ delay _ complete, " step _ triggered " : self. _ step _ triggered, " step _ complete " : self. _ step _ c...
[ -0.3800481855869293, -1.2888803482055664, 0.47826436161994934, -0.14007848501205444, -0.9433803558349609, -0.008784182369709015, 0.002083174418658018, -0.03821860998868942, -1.0264555215835571, -0.03670906275510788, -1.3907209634780884, -0.6747705936431885, 0.19676966965198517, 0.909602046...
def rotate ( originx, originy, pointx, pointy, angle ) : qx = originx + math. cos ( angle ) * ( pointx - originx ) - math. sin ( angle ) * ( pointy - originy ) qy = originx + math. sin ( angle ) * ( pointx - originx ) + math. cos ( angle ) * ( pointy - originy ) return qx, qy
[ -0.16915512084960938, -0.3560025990009308, 0.4752331078052521, -0.8980701565742493, -0.20294050872325897, -0.6073235869407654, -1.3714771270751953, 0.20536214113235474, 0.37374401092529297, 0.28526145219802856, 0.4499140679836273, 0.16021260619163513, -0.01022918988019228, -1.1989246606826...
def make _ hamiltonian ( positions, cce _ order, bath _ vertices ) : h _ list = [ ] vertices = bath _ vertices [ cce _ order ] if cce _ order = = 2 : h _ list = [ ] for site in np. unique ( vertices [ :, 0 ] ) : array _ with _ site = a [ np. where ( vertices [ :, 0 ] = = site ) ] for other _ site in array _ with _ site...
[ -0.8578311204910278, 0.1617492288351059, 0.48572611808776855, 0.33144834637641907, 0.7230962514877319, 0.4067467153072357, 0.7355979084968567, 0.12747317552566528, 0.18846088647842407, 0.23855060338974, -1.3402212858200073, 0.445761114358902, -0.175379678606987, -0.19997592270374298, 0.6...
def gettime ( self, * args ) : return _ snap. tgstatvec _ gettime ( self, * args )
[ -0.7757095694541931, 0.715808093547821, 0.577365517616272, 0.9295668005943298, 1.4114314317703247, 0.3616938889026642, 1.717734932899475, -1.3043246269226074, -0.8303000926971436, 0.1388467401266098, -0.17264015972614288, -0.7060527801513672, -0.007222684100270271, 0.7395241856575012, -0...
def graph ( self ) : if not mainwidgets [ " main " ]. isrunning ( ) : mainwidgets [ " log " ]. append ( " you must start the topology first! " ) return if options [ " graphing " ] : try : from ui. graphwindow import graphwindow except : mainwidgets [ " log " ]. append ( " error : matplotlib required for graphing capabi...
[ 1.155733585357666, 0.6829608678817749, 0.5339447855949402, 0.3546871542930603, -0.5656135678291321, 0.9971089363098145, 1.6062453985214233, 0.3049689829349518, 0.43194225430488586, -1.0113381147384644, 0.7748829126358032, 1.0484974384307861, -0.2545895278453827, 0.3409688472747803, -0.26...
def data _ attribute _ id ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " data _ attribute _ id " )
[ 0.6731197237968445, -0.1831832379102707, 0.30634188652038574, -0.20049908757209778, 0.2011735737323761, 1.2276474237442017, 0.35177308320999146, 0.7017427682876587, 0.5100305676460266, 0.004313506651669741, 0.3698618412017822, 1.6627898216247559, 0.28446418046951294, -0.7612701654434204, ...
def getcrossnetbyid ( self, * args ) : return _ snap. tmmnet _ getcrossnetbyid ( self, * args )
[ 0.6617162227630615, 0.4569249451160431, 0.37575218081474304, 1.1015568971633911, 0.2181473970413208, -0.2596575617790222, 0.4734432101249695, -0.6412383913993835, 0.1846817284822464, 0.09315860271453857, -0.6342048645019531, -0.8122905492782593, -1.3679323196411133, 1.7473647594451904, -...
def with _ predict _ uri ( self, uri ) : b = self. _ copy ( ) b. config ['predict _ uri'] = uri return b
[ -0.8826783299446106, 0.08232881128787994, 0.4605964720249176, 1.0972938537597656, -1.1973117589950562, 0.5769159197807312, -0.02404051646590233, 0.7361590266227722, 0.11716847121715546, -0.773663341999054, -0.24267511069774628, 0.7896001935005188, -0.470042884349823, -0.08466406166553497, ...
def getintvattrdate ( self, * args ) : return _ snap. tneanet _ getintvattrdate ( self, * args )
[ -0.11088068783283234, 0.09691858291625977, 0.3709772825241089, -0.9381824731826782, 0.6293028593063354, 0.39076364040374756, -0.4865264892578125, -0.5717201232910156, -0.5708904266357422, 0.5177056193351746, 0.7435284852981567, -1.1124229431152344, -1.205841064453125, -0.1448616087436676, ...
def classifyatomic ( self, * args ) : return _ snap. ptable _ classifyatomic ( self, * args )
[ -0.46288934350013733, 0.1524948626756668, 0.5871247053146362, 1.0221126079559326, -0.4193916320800781, 0.6924606561660767, -0.41445639729499817, -0.9123098254203796, -2.091012716293335, 0.7699616551399231, 0.4325120747089386, 0.8005093336105347, -0.2951715588569641, -0.0616191141307354, ...
def enumerate _ model _ node _ outputs ( model, add _ node = false, order = false ) : if not hasattr ( model, " graph " ) : raise typeerror ( # pragma : no cover f " parameter model is not an onnx model but { type ( model ) } " ) if order : edges = [ ] order = { } node _ names = { } for inp in model. graph. input : ord...
[ -0.9659803509712219, -0.2719433605670929, 0.7106651067733765, -0.39495164155960083, -0.8098529577255249, -0.21615175902843475, 0.571515679359436, -0.505408763885498, -0.1525886356830597, 0.369268000125885, 0.051350187510252, 0.09269160032272339, 0.20250871777534485, 0.28940603137016296, ...
def _ _ lt _ _ ( self, * args ) : return _ snap. tngraphmpedgei _ _ _ lt _ _ ( self, * args )
[ -0.168661430478096, -0.4928978681564331, 0.18122726678848267, -1.038220763206482, 0.24690277874469757, -0.27191460132598877, 0.1291349232196808, -1.496726155281067, -0.9127715229988098, -0.4546217918395996, -0.23782968521118164, -1.304121732711792, -1.0885329246520996, 0.6199612617492676, ...
def attrnameni ( self, * args ) : return _ snap. pneanetmp _ attrnameni ( self, * args )
[ -0.3894173502922058, -0.050148699432611465, 0.2673945426940918, 0.6513364911079407, -0.36459872126579285, -0.0066612716764211655, -0.5535693168640137, -0.6717762351036072, -0.6376579999923706, 0.4101633131504059, -0.6169796586036682, -1.2297192811965942, -0.34484708309173584, 0.14243091642...
def publish _ waypoints _ around ( self ) : if self. pose _ ref _ waypoints _ idx is none : return # visualizing + / - 5 waypoints around the reference waypoints. num = 5 msg = marker ( ) msg. points = [ ] msg. header = header ( ) msg. header. stamp = rospy. time. now ( ) msg. header. frame _ id = " / world " msg. id =...
[ -0.27119410037994385, -0.057583123445510864, 0.7206287980079651, -0.5383278727531433, -0.12251602858304977, 0.3602481186389923, 0.9938411116600037, -0.1914081871509552, -0.17673029005527496, 0.3191549777984619, 0.30343154072761536, 1.6345411539077759, -0.6922636032104492, 1.174345374107360...
def getsattridn ( self, * args ) : return _ snap. tundirnet _ getsattridn ( self, * args )
[ -0.25390058755874634, -0.8798816800117493, 0.2842584252357483, 0.26111406087875366, 0.3996310234069824, -0.6319155693054199, 0.46768108010292053, -0.07053587585687637, -0.3867185711860657, -0.7189427018165588, -0.14497515559196472, 0.8724746704101562, -0.37880009412765503, 0.61024063825607...
def update ( self, index, value ) : self. _ check _ index ( index ) self. _ check _ value ( value ) self. array [ index ]. data = value
[ -0.8487387299537659, -0.4772632420063019, 0.2230774164199829, -0.46551060676574707, -0.5289148092269897, 0.6370341181755066, -0.28500643372535706, -0.5187109112739563, 0.45641186833381653, 0.44765251874923706, -0.5983888506889343, 1.045381784439087, -0.12495994567871094, -0.271549284458160...
def find _ dcg ( element _ list ) : score = 0. 0 for order, rank in enumerate ( element _ list ) : score + = float ( rank ) / math. log ( ( order + 2 ) ) return score
[ -0.3426494300365448, 1.0329703092575073, 0.36414361000061035, 0.4072531759738922, -0.08290985226631165, -0.4932619333267212, 0.04902680963277817, -0.19792644679546356, -0.08138129860162735, 0.9873619079589844, -0.2565343976020813, -0.6951966881752014, -0.6072768568992615, 1.546181082725525...
def anonymize _ top _ level _ field ( df, column, encoding ) : # define udf hash function udf _ hash _ field = udf ( lambda x : anonymize _ value ( x, encoding ), df. schema [ column ]. datatype ) df = df. withcolumn ( column, when ( df ['in _ source _ ids']. isnotnull ( ), udf _ hash _ field ( col ( column ) ) ) ) ret...
[ -0.37066012620925903, 1.1274067163467407, 0.5380848050117493, 0.29273635149002075, -0.35823580622673035, -0.168816477060318, -0.2708195149898529, 0.05957234278321266, -0.11700373888015747, 0.39927321672439575, -0.9176155924797058, 1.1615619659423828, 0.348850816488266, -0.6997280120849609,...
def sp _ integrate _ 2d _ ( pdf, xmin, xmax, ymin, ymax, * args, * * kwargs ) : if hasattr ( pdf,'setpars') : pdf. setpars ( ) func = pdf. function ( ) return func. sp _ integrate _ 2d ( xmin, xmax, ymin, ymax, * args, * * kwargs )
[ -0.2501130700111389, -0.5119969844818115, 0.446207731962204, 0.19565729796886444, -0.4242050051689148, -0.8893823027610779, -0.9550198316574097, -0.4430631399154663, -0.5786885023117065, -0.8826227188110352, -0.46730512380599976, 0.30889996886253357, 0.34360164403915405, -0.277204662561416...
def calc _ icc ( self, drop _ rois = true, view = true ) : assert ( self. roi _ gs _ df is not none ), " run remove _ site _ effects ( ) first. " assert ( self. visit _ code = = " 123 " ), " must be using 123 visit code for icc. " def calc _ roi _ iccs ( data ) : " " " calculate icc values per roi for the passed datafr...
[ 0.04743903502821922, 0.46079933643341064, 0.6360232830047607, -0.18672354519367218, -0.24472610652446747, -0.09910320490598679, 1.641922116279602, -0.07911551743745804, -0.5313523411750793, 0.7672790288925171, 0.49292853474617004, 0.6661848425865173, 0.16192539036273956, -0.696377158164978...
def argmax ( tensor, dim ) : pass
[ -0.1136976033449173, -0.31164833903312683, 0.24784760177135468, 1.1216412782669067, 0.09736344963312149, 0.24779750406742096, -0.2337970733642578, 0.534261167049408, -0.9597880840301514, 0.9310129284858704, 0.5254100561141968, 0.9834384918212891, 0.5736594200134277, -1.1350005865097046, ...
def callparserfunction ( functionname, args, frame ) : try : if functionname = ='# invoke': # special handling of frame return sharp _ invoke ( args [ 0 ]. strip ( ), args [ 1 ]. strip ( ), frame ) if functionname in parserfunctions : return parserfunctions [ functionname ] ( * args ) except : return none # fixme : fix...
[ 0.17937375605106354, -0.18523307144641876, 0.7441763877868652, 0.16515210270881653, -0.26596519351005554, -1.1954678297042847, -1.484311580657959, -0.29554280638694763, -0.33475247025489807, -0.16912323236465454, 0.12902815639972687, 0.4698008596897125, -0.9267971515655518, 0.2201909869909...
def _ _ str _ _ ( self ) : return " e1 \ n % s \ nh1 \ n % s \ ne2 \ n % s \ nh2 \ n % s \ n " % ( self. e1, self. h1, self. e2, self. h2 )
[ -0.7033296227455139, -1.2532953023910522, 0.9006975293159485, -0.5444802641868591, -0.051595378667116165, 1.106250286102295, -0.7152620553970337, -0.49021533131599426, -1.2456257343292236, 0.4047987163066864, 0.3277242183685303, -0.10732031613588333, -0.19675327837467194, -0.11546110361814...
def removeitem ( self, item ) : try : self. tree. removeitem ( item ) except attributeerror, e : raise versionerror ('saved versions are immutable')
[ -0.2784419357776642, -0.02596745640039444, 0.30910852551460266, 0.7375937104225159, 0.3432571589946747, 0.7505697011947632, 0.1193951815366745, 0.3141442537307739, 0.45343297719955444, 1.1748017072677612, -0.8811703324317932, -0.1892295628786087, -0.43102264404296875, 0.023899344727396965,...
def searchback ( self, * args ) : return _ snap. tintintvv _ searchback ( self, * args )
[ -1.1348083019256592, 0.6059287786483765, 0.9738205671310425, 0.9136391878128052, 0.8027628660202026, -0.24603159725666046, 0.6924959421157837, -0.4509093165397644, -0.36338722705841064, 0.291594535112381, -0.09621525555849075, 0.5704331994056702, -1.8204450607299805, -0.6117882132530212, ...
def getuint ( self, * args ) : return _ snap. tstr _ getuint ( self, * args )
[ -0.16916459798812866, 0.6412676572799683, 0.6103125214576721, -0.4266316592693329, 1.558285117149353, -0.06088188290596008, 0.5030904412269592, -0.15527695417404175, -0.5398894548416138, -0.8420215249061584, -0.5018556118011475, -0.5701878070831299, 0.16179557144641876, -0.346061646938324,...
def loadpajek _ pneanet ( * args ) : return _ snap. loadpajek _ pneanet ( * args )
[ -1.2028487920761108, 0.715843915939331, 0.36907050013542175, 0.06743861734867096, -0.4213797450065613, 0.39632928371429443, -0.5085277557373047, -0.4871978163719177, -0.6139633655548096, -0.6527075171470642, -0.5871603488922119, -1.503934383392334, -0.5288124084472656, 0.6736676096916199, ...
def test _ check _ negative _ freq ( self ) : label ='c2h6'self. job3. local _ path _ to _ output _ file = os. path. join ( arc _ path,'arc ','testing ','freq ','c2h6 _ freq _ qchem. out') self. job3. job _ status = ['done ', {'status':'done ','keywords': list ( ),'error':'','line':'' } ] vibfreqs = parser. parse _ fre...
[ 0.6632978320121765, -0.6264280676841736, 0.6103647947311401, 1.0367432832717896, 0.1693289875984192, 0.7123766541481018, -0.4914925992488861, -0.053054459393024445, -0.2722625136375427, -0.6002344489097595, 0.13512122631072998, 0.11974070221185684, -0.9940158724784851, 0.30686599016189575,...
def wstatistics ( data, weights, moments = 4 ) : mean = np. average ( data, weights = weights ) std = np. sqrt ( np. average ( ( data - mean ) * * 2, weights = weights ) ) result = [ mean, std ] if moments > = 3 : result. append ( np. average ( ( ( data - mean ) / std ) * * 3, weights = weights ) ) if moments > = 4 : r...
[ 0.5703558325767517, 0.7708249092102051, 0.5309941172599792, -0.3006623089313507, -0.6659194827079773, 0.03902268037199974, 0.24793261289596558, -0.4609113931655884, 0.5699988603591919, 0.745242178440094, 0.08920048177242279, 0.49519792199134827, 0.09777383506298065, 0.9822511076927185, -...
def convert _ arg _ line _ to _ args ( self, line ) : return ( line. split ('#') [ 0 ]. split ( ) )
[ -0.5743792057037354, -0.1582190841436386, 0.716277003288269, -0.542837381362915, 1.1114482879638672, -0.04842595010995865, -0.8724260330200195, 0.7014397978782654, -0.6620815396308899, 1.4010579586029053, -0.29186180233955383, 0.0960003137588501, -0.09788983315229416, -0.010464446619153023...