text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def logout ( request ) : auth. logout ( request ) messages. success ( request,'you have successfully been logged out') return redirect ( reverse ('ticket _ list') ) | [
-0.6116195917129517,
0.0407354012131691,
0.2568433880805969,
0.1000862568616867,
0.10761874169111252,
0.8918392062187195,
0.4135597348213196,
0.7550952434539795,
-0.13940435647964478,
-0.8720354437828064,
-0.6245784163475037,
0.17571507394313812,
0.5817426443099976,
-0.25600364804267883,
... |
def show ( self, on _ chosen : callable [ [ any, commonchoiceoutcome ], any ] = commonfunctionutils. noop, target _ sim _ info _ to _ receive _ objects : siminfo = none, categories : iterator [ commondialogobjectoptioncategory ] = ( ), object _ delivery _ method : commonobjectdeliverymethod = commonobjectdeliverymethod... | [
0.15802671015262604,
-0.0915822684764862,
0.7031927108764648,
-0.029949858784675598,
0.05087260901927948,
-0.10698042809963226,
0.6023975610733032,
-0.029421383515000343,
0.26406192779541016,
0.07981174439191818,
-0.06536003202199936,
0.23671211302280426,
0.6608017683029175,
-0.16035217046... |
def transfer _ workflow ( workflow ) : try : stick = find _ stick ( ) except importerror : return jsonify ( { " error " : " missing package'python - dbus ', " " please install. " } ) if stick is none : return jsonify ( { " error " : " could not find removable device " } ), 503 from tasks import transfer _ to _ stick tr... | [
-0.7577726244926453,
0.4094001352787018,
0.3784565329551697,
0.9959291815757751,
0.39761534333229065,
-0.5051988959312439,
1.1989598274230957,
-0.9604634642601013,
0.5644979476928711,
0.6167513132095337,
-0.9499504566192627,
-0.12454743683338165,
-0.9640378952026367,
0.33263152837753296,
... |
def identify _ scripting _ proxy _ port ( session, application _ id ) : port = none app _ names = ['eikon api proxy ','eikon scripting proxy'] app _ author ='thomson reuters'if platform. system ( ) = ='linux': path = [ user _ config _ dir ( app _ name, app _ author, roaming = true ) for app _ name in app _ names if os.... | [
0.05263257771730423,
-0.5575255751609802,
0.9331741333007812,
0.24297571182250977,
0.9511508345603943,
-0.6429168581962585,
0.9610189199447632,
0.1702454686164856,
-0.41790148615837097,
0.518304169178009,
0.2485392987728119,
-0.0935649424791336,
-0.5819973945617676,
0.23153500258922577,
... |
def set _ num _ dashes _ per _ fret ( self, num ) : if num < 1 : self. num _ dashes _ per _ fret = 1 elif num > 6 : self. num _ dashes _ per _ fret = 6 else : self. num _ dashes _ per _ fret = num | [
-0.07034749537706375,
0.7718111872673035,
0.7112218141555786,
-0.15081217885017395,
0.047299824655056,
0.03846624866127968,
1.0682713985443115,
0.21405765414237976,
0.21277980506420135,
-1.5832098722457886,
-0.40767166018486023,
-0.5822682976722717,
0.14923828840255737,
0.0798923447728157,... |
def test _ list _ decimal _ max _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ max _ length _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - maxlength - 4. xsd ", instance = " nistdata / list / ... | [
-0.1184304878115654,
0.1163342297077179,
0.412077397108078,
0.591745138168335,
-0.36222749948501587,
0.12842009961605072,
-0.35077303647994995,
0.30342400074005127,
0.3970460891723633,
0.11691799014806747,
-1.4967312812805176,
-0.6694409251213074,
-0.060101885348558426,
0.02302452921867370... |
def summarize ( data _ loader ) : pred _ lines = [ ] # prediction for batch in tqdm ( data _ loader, mininterval = 2, desc ='- ( test ) ', leave = false ) : all _ hyp, all _ scores = translator. translate _ batch ( * batch ) for idx _ seqs in all _ hyp : for idx _ seq in idx _ seqs : pred _ line =''. join ( [ data _ lo... | [
-0.13922134041786194,
0.023404764011502266,
0.6352580189704895,
-0.7237988710403442,
-0.5562353730201721,
0.1506476104259491,
-0.29599326848983765,
0.34607619047164917,
-0.17684470117092133,
0.4598795473575592,
0.12475869804620743,
0.32242780923843384,
0.8029409646987915,
0.429632931947708... |
def test _ email _ on _ loan _ checkout ( app, users, testdata, loan _ params, mocker ) : app. config. update ( celery _ task _ always _ eager = true ) loan _ data = testdata [ " loans " ] [ 1 ] loan = loan. get _ record _ by _ pid ( loan _ data [ " pid " ] ) with app. extensions [ " mail " ]. record _ messages ( ) as ... | [
0.8273168206214905,
0.6388189196586609,
0.4094153046607971,
-0.5064710974693298,
0.32837000489234924,
0.439199298620224,
0.05373280495405197,
0.3678739070892334,
-0.08843892067670822,
0.1563369333744049,
-0.19553397595882416,
0.9910235404968262,
-0.6067714691162109,
0.24045297503471375,
... |
def add _ amenities _ count ( self, df, col ='amenities ', drop _ amenities = true ) : new _ df = df. copy ( ) new _ df [ f'{ col } _ count'] = df [ col ]. apply ( lambda x : len ( x. split ( ", " ) ) ) if drop _ amenities : new _ df = new _ df. drop ( columns = ['amenities'], axis = 1 ) return new _ df | [
-0.21647264063358307,
0.7687554359436035,
0.8349562883377075,
-0.5516936779022217,
0.23532646894454956,
0.5132906436920166,
-0.41289445757865906,
0.40879765152931213,
-0.25753089785575867,
0.5024397373199463,
-0.03198865056037903,
0.45647022128105164,
0.6464033722877502,
-0.555168628692627... |
def _ _ init _ _ ( self, input _ file, clean = true, temp _ dir = none, working _ directory = none, low _ quality = false ) : self. input _ file = input _ file self. clean = clean self. working _ directory = working _ directory self. temp _ dir = temp _ dir self. low _ quality = low _ quality | [
-0.06668919324874878,
0.0014543415745720267,
0.34869179129600525,
-0.014695245772600174,
0.07482900470495224,
0.8298080563545227,
0.2479766309261322,
0.8504815697669983,
-1.0077760219573975,
-0.19110508263111115,
-0.2223198562860489,
0.40042755007743835,
0.0463896282017231,
1.1124855279922... |
def process _ attributes ( self, original _ obj ) : for attribute in original _ obj. get _ attribute _ list ( ) : if attribute : self. process _ notes ( attribute ) self. process _ citation _ ref _ list ( attribute ) | [
0.3479273021221161,
-0.9284229278564453,
0.4181615710258484,
-0.23522990942001343,
-0.08798979222774506,
0.20503686368465424,
0.5956296324729919,
0.28643620014190674,
0.31382858753204346,
0.009940890595316887,
0.2790660560131073,
0.28647691011428833,
0.31355100870132446,
0.7523434162139893... |
async def _ send _ command ( self, name : str, *, additional _ path _ vars : dict = none, wake _ if _ asleep : bool = true, * * kwargs, ) - > optional [ dict ] : path _ vars = { " vehicle _ id " : self. id } if additional _ path _ vars : path _ vars. update ( additional _ path _ vars ) _ logger. debug ( " sending comma... | [
-0.9441357254981995,
-0.44298112392425537,
0.6364099383354187,
0.11666110157966614,
-0.18989787995815277,
-0.7945635318756104,
-0.8547497987747192,
-0.7783392071723938,
0.017423460260033607,
0.5466778874397278,
0.005723107140511274,
0.1902160942554474,
-0.3249046504497528,
0.28417119383811... |
def pathfinder ( self ) : for lst in self. cells : for cell in lst : cell. path = none grid = copy. deepcopy ( self. cells ) openset = { } closedset = { } xgoal, ygoal = grid. path _ goal node = grid [ xgoal ] [ ygoal ] node. parent = none openset. update ( { grid. path _ goal : 0 } ) while bool ( openset ) : current =... | [
-0.3620457351207733,
0.08599753677845001,
0.7317700386047363,
0.2564235329627991,
-0.8027213215827942,
0.13172519207000732,
0.8515125513076782,
0.09301114827394485,
-0.45595020055770874,
-0.13353413343429565,
0.4283945858478546,
-0.04569491371512413,
-0.04603173956274986,
0.307540625333786... |
def test _ atomic _ base64 _ binary _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ max _ length _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - maxlength - 3. xsd ... | [
0.2035074383020401,
0.21559970080852509,
0.3920295238494873,
1.5680173635482788,
-0.022165903821587563,
0.5966976284980774,
-0.5016718506813049,
0.24778057634830475,
0.4052736461162567,
0.854945719242096,
-0.4159094989299774,
0.19029784202575684,
-0.2540659010410309,
-0.3463555574417114,
... |
def lock _ n _ go ( self, unlatch ) : self. _ nuki _ device. lock _ n _ go ( unlatch ) | [
-0.039505958557128906,
1.345780372619629,
0.21638594567775726,
-0.1065947413444519,
0.47984203696250916,
-0.45417237281799316,
1.014148473739624,
-0.588736891746521,
-0.8373652696609497,
-0.7234536409378052,
-0.37520748376846313,
0.21094827353954315,
-0.1750442385673523,
-0.058332685381174... |
def test _ forbid _ global _ loop ( loop ) : yield from asyncio. sleep ( 0. 01, loop = loop ) with pytest. raises ( notimplementederror ) : asyncio. get _ event _ loop ( ) | [
0.9275029897689819,
1.4778872728347778,
0.5738074779510498,
1.0373812913894653,
0.17316125333309174,
1.4814453125,
0.7113829255104065,
-0.5245711207389832,
-0.3942367136478424,
0.6124498248100281,
-0.2505241632461548,
0.4653538763523102,
-0.1839825063943863,
0.8520762920379639,
0.9944821... |
def create _ story ( self, name, card _ properties = none ) : url = " { url } / cards. xml ". format ( url = self. url ) logging. debug ( " posting url { } ". format ( url ) ) headers = {'content - type':'application / xml'} payload = xmlhelper. prepare _ card _ xml ( name, properties = card _ properties ) logging. deb... | [
-0.5843554139137268,
0.11732771247625351,
0.6555796265602112,
0.03478161245584488,
-0.46605774760246277,
0.012565684504806995,
-1.0983848571777344,
0.029950007796287537,
-0.615109920501709,
-0.26042723655700684,
0.02354353480041027,
-0.5144451856613159,
-0.5649279952049255,
-0.514402449131... |
def test _ parameters ( self ) : print ( f'{ self. test _ parameters. _ _ name _ _ }'f': executing unit test for property " parameters " of class " slashnexthostreport ".') self. assertequal ( self. host _ report _ action. parameters, self. parameters ) | [
0.3441063165664673,
0.37389853596687317,
0.2659023702144623,
-0.2537803053855896,
1.873679518699646,
1.1488323211669922,
0.9710462093353271,
0.3047023415565491,
-0.6539874076843262,
-0.17708657681941986,
0.360837459564209,
0.516003429889679,
-0.9591982364654541,
0.1573929488658905,
-0.59... |
def test _ example _ input _ one _ valid _ input _ interval ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page. entity1. e... | [
-0.21713045239448547,
0.2554902136325836,
0.668340265750885,
0.6064289808273315,
0.4800516664981842,
1.3889089822769165,
0.06128612905740738,
0.08559855073690414,
0.11655471473932266,
0.3138059675693512,
-0.5362801551818848,
-0.5660765171051025,
-0.6355999708175659,
-0.05470714718103409,
... |
def test _ par _ parent _ implicit _ mp _ fork _ par _ child ( self ) : body = " " " if 1 : mp = multiprocessing. get _ context ('fork') x = np. arange ( 1000000. ) y = np. arange ( 1000000. ) q = mp. queue ( ) # start openmp runtime on parent via parallel function z = busy _ func ( x, y, q ) # fork ( ) underneath with... | [
0.9609564542770386,
-0.5132074356079102,
0.8990763425827026,
0.10191410779953003,
-0.26424452662467957,
0.5111119747161865,
0.26844608783721924,
-0.4483734965324402,
-0.34787848591804504,
-0.48004448413848877,
-0.34384679794311523,
0.8345288038253784,
-0.7696030139923096,
0.808144867420196... |
def getphysicalinterfaces ( self, draft = false, name = none ) : if draft : req = apiclient. allphysicalinterfacesurl % ( self. host, " / draft " ) else : req = apiclient. allphysicalinterfacesurl % ( self. host, " " ) if name : req + = "? name = " + name resp = requests. get ( req, auth = self. credentials, verify = s... | [
-1.1516039371490479,
-0.007962372153997421,
0.7486222386360168,
0.41935768723487854,
-0.3480549156665802,
0.3745098412036896,
-1.084533929824829,
-0.1239292100071907,
0.35035213828086853,
-0.1463594287633896,
-0.5329991579055786,
0.15251187980175018,
-1.9257911443710327,
0.2847989499568939... |
def works ( self ) : div = self. _ soup _ works. find ( " div ", { " class " : " works - index dashboard filtered region " } ) h2 = div. h2. text. split ( ) return int ( h2 [ 4 ]. replace ( ', ','' ) ) | [
-1.2131012678146362,
0.9173415303230286,
0.6650104522705078,
-0.6942512392997742,
0.27303120493888855,
-0.37526005506515503,
0.9573493003845215,
-0.3256693482398987,
-0.12030740082263947,
-0.817699670791626,
-0.25365614891052246,
-0.554646372795105,
-0.5304170250892639,
-0.9431444406509399... |
def str _ to _ datetime ( createdat ) : return datetime. datetime. strptime ( createdat,'% a % b % d % h : % m : % s + 0000 % y') | [
0.37530517578125,
-1.2499598264694214,
0.338220477104187,
-0.6459189653396606,
-0.1290627270936966,
0.6724006533622742,
-1.4501570463180542,
-0.6417492032051086,
0.011582627892494202,
0.30432653427124023,
-0.5965619683265686,
0.3133055567741394,
0.703510046005249,
-0.9843697547912598,
-0... |
def txt _ rm _ keyword ( filename, keyword ) : fo = open ( filename, " r " ) fo2 = open ( filename +'new ', " w " ) line = fo. readline ( ) while line : if keyword not in line and line! = " \ n " : fo2. write ( line ) line = fo. readline ( ) fo2. close ( ) fo. close ( ) | [
0.8518326878547668,
-1.1776832342147827,
0.6951850652694702,
-0.09223238378763199,
-1.0536895990371704,
0.6233377456665039,
-0.8961422443389893,
0.9044997096061707,
-0.30874714255332947,
1.1801705360412598,
-0.6526374220848083,
0.047419771552085876,
-0.49060702323913574,
0.2435067445039749... |
def send _ command ( id, new _ value ) : obj = object. query \. filter _ by ( id = id ) \. first ( ) object _ schema = objectschema ( many = false ) st = object _ schema. dump ( obj ). data # # convert consumption type dictionary combined _ object _ schema = dict ( ) combined _ object _ schema. update ( st ) # add the ... | [
-1.0493296384811401,
-0.4822925925254822,
0.672406017780304,
0.0696059912443161,
0.843879759311676,
-0.1053377091884613,
-0.5838333964347839,
-0.1101292297244072,
0.2609829604625702,
0.5911660194396973,
-0.7421125173568726,
0.2668634355068207,
-0.05626408010721207,
-0.18519076704978943,
... |
def division _ to _ teams ( division ) : tds = json. loads ( gd. get _ teams _ data ( ) ) teams = [ ] if season is none : for i in range ( len ( tds ) ) : td = tds [ i ] divisions = sorted ( list ( td ['divisions']. keys ( ) ) ) if division in divisions : teams = sorted ( list ( td ['divisions'] [ division ] ) ) break ... | [
0.1319909542798996,
-0.12034092098474503,
0.7486542463302612,
-0.02378801815211773,
-0.6811559200286865,
-0.07898169755935669,
-0.18643660843372345,
-0.5909531116485596,
0.1945292353630066,
0.0326821431517601,
0.4591575860977173,
0.3901662528514862,
0.9554579854011536,
0.14993035793304443,... |
def equilibrate ( self ) : # build input file input _ file ='equil. mdp'with open ( input _ file,'w') as f : f. write ( textwrap. dedent ('''; run control parameters = integrator = sd nsteps = { time } dt = 0. 0005 ; output frequency for coords ( x ), velocities ( v ) and forces ( f ) = nstxout = 1000 nstvout = 0 nstfo... | [
0.0596294142305851,
-0.3665854036808014,
0.7503836154937744,
-0.5416365265846252,
0.5112900137901306,
0.8461925387382507,
1.0176624059677124,
-0.37365034222602844,
-0.7412329912185669,
0.06890800595283508,
0.18413753807544708,
-0.27877500653266907,
-0.42067745327949524,
0.11482783406972885... |
def search _ states ( ) : search _ input = str ( input ('enter what your searching for :') ) if search _ input in state _ list. keys ( ) : print ('state name : ', search _ input, " \ n capital : ", state _ list [ search _ input ] ['capital'], " \ n bird : ", state _ list [ search _ input ] ['state bird'] ) else : print... | [
-0.19661715626716614,
0.0763731524348259,
0.5728518962860107,
0.3151664733886719,
-0.1976228803396225,
0.4330223500728607,
-0.5713275671005249,
-0.17303960025310516,
-0.21649110317230225,
-0.1298641562461853,
-0.5146574974060059,
0.2790723741054535,
-0.6430156826972961,
0.5104973316192627,... |
def init _ tparams ( params ) : tparams = ordereddict ( ) for kk, pp in params. iteritems ( ) : tparams [ kk ] = theano. shared ( params [ kk ], name = kk ) return tparams | [
-0.5550349950790405,
0.32145580649375916,
0.46263498067855835,
-0.46426114439964294,
0.3247707784175873,
-0.40955808758735657,
-0.04558326676487923,
0.16125930845737457,
-1.216774821281433,
1.6988089084625244,
-1.5103745460510254,
-0.6357689499855042,
0.02599911019206047,
0.746323704719543... |
def current _ fulfillment _ status ( self, current _ fulfillment _ status ) : self. _ current _ fulfillment _ status = current _ fulfillment _ status | [
0.1692325919866562,
-1.4265316724777222,
-0.19504529237747192,
-0.00798592809587717,
-0.3464243710041046,
1.261717438697815,
0.19512733817100525,
0.6000092625617981,
-0.8720245957374573,
-1.0112290382385254,
-0.808799684047699,
-0.68028324842453,
0.8696695566177368,
1.0046602487564087,
0... |
def get _ token _ quick ( self, order _ id, gross _ amount ) : snap _ req = snapchargereq ( order _ id = order _ id, gross _ amount = gross _ amount ) return self. get _ token ( snap _ req ) | [
-0.2119130641222,
-0.3332090675830841,
0.43722468614578247,
0.717816948890686,
-0.19054819643497467,
-1.5293112993240356,
-1.0030137300491333,
-0.31933653354644775,
-0.09390966594219208,
-0.6141798496246338,
-0.06401362270116806,
0.45194169878959656,
1.1616863012313843,
-0.5865241885185242... |
def model _ fn ( model _ dir ) : device = torch. device ( " cuda " if torch. cuda. is _ available ( ) else " cpu " ) model = torch. jit. load ( os. path. join ( model _ dir, " model. pth " ) ). to ( device ) return model | [
0.5077593922615051,
0.23025302588939667,
0.47469818592071533,
0.5719011425971985,
0.5099982023239136,
0.050217822194099426,
1.0230337381362915,
-0.11141275614500046,
-0.36769038438796997,
0.8772768974304199,
0.30242934823036194,
0.3078674077987671,
0.5390565991401672,
-0.9181537628173828,
... |
def get _ tracks _ from _ playlist ( self, playlist, progress = progress ( ) ) : # special case for the " saved " playlist if playlist ['uri'] = = common. saved _ tracks _ context _ uri : return self. _ get _ saved _ tracks ( progress ) q = { " limit " : 50 } url = " users / { } / playlists / { } / tracks ". format ( p... | [
-0.7676844000816345,
0.47905686497688293,
0.5186488628387451,
0.8726009130477905,
0.34701260924339294,
0.043882958590984344,
-0.5428051948547363,
-0.5956025719642639,
-0.19495101273059845,
0.7752885222434998,
-0.3714216649532318,
-0.5919761657714844,
-1.6441190242767334,
0.0162952151149511... |
def authenticate ( self, appauth _ file _ path ) : auth _ info, privkey _ path = self. extractauthinfo ( path ( appauth _ file _ path ) ) # authentication info auth = boxsdk. jwtauth ( client _ id = auth _ info [ " boxappsettings " ] [ " clientid " ], client _ secret = auth _ info [ " boxappsettings " ] [ " clientsecre... | [
0.0843539908528328,
-0.5100605487823486,
0.6725063323974609,
0.5784876346588135,
-0.8563249707221985,
0.5987685918807983,
-0.3778337836265564,
-0.4666907787322998,
-0.4526967406272888,
-0.3134903311729431,
-0.13027583062648773,
0.23400914669036865,
0.2963894009590149,
-0.39973536133766174,... |
def main ( ) : # start at loading the dataset raw _ data = safely _ input ( ) print " dataset loaded successfully > > > " print " > > > ", # then clean the data job _ data = clean _ df ( raw _ data ) print " data cleaned > > > " # search for interested jobs job _ list, keyword = overall _ analysis ( job _ data ) " matc... | [
-0.5162798762321472,
0.6227946281433105,
0.5233240127563477,
0.427391916513443,
-0.028363080695271492,
0.07823143154382706,
0.43859365582466125,
0.47378841042518616,
-0.25145643949508667,
-1.1299985647201538,
0.44543391466140747,
0.6417761445045471,
-0.2359565645456314,
-0.0888120606541633... |
def sort _ movies ( self, key ) : # change current sort _ by key based on the key from the sort spinner self. sort _ by = key # load movies based on key provided self. load _ movies ( ) | [
-1.408936858177185,
-0.5482496023178101,
0.3342900276184082,
0.8998187184333801,
-0.3973226249217987,
-0.15966074168682098,
-0.1713281124830246,
-0.08353675901889801,
-0.48717522621154785,
0.8620556592941284,
-0.4181077480316162,
0.3058930039405823,
-0.8138663172721863,
1.5621535778045654,... |
def main ( ) : colorama. init ( ) grid = get _ start _ grid ( * map ( int, sys. argv [ 1 : ] ) ) # grid = [ [ 4096, 16, 4, 2 ], [ 512, 64, 16, 8 ], ['', 512, 8, 2 ], [ 2, 4, 32, 8 ] ] print _ grid ( grid ) while true : grid _ copy = copy. deepcopy ( grid ) get _ input = getch ( " enter direction ( w / a / s / d / n / r... | [
0.3750248849391937,
-0.18808576464653015,
1.2426066398620605,
0.7155189514160156,
0.4108313024044037,
-0.6257785558700562,
0.8014187812805176,
-0.8122114539146423,
0.49975699186325073,
0.23981021344661713,
-0.29975566267967224,
0.5759143233299255,
-0.11449851095676422,
0.695100724697113,
... |
def get _ direct _ download ( self, file ) : return file. get _ shared _ link _ download _ url ( access = " open ", unshared _ at = none ) | [
-0.42480048537254333,
-0.2587723135948181,
0.528230607509613,
0.24911072850227356,
0.18182682991027832,
1.2550609111785889,
0.822006344795227,
0.2990188002586365,
-0.8435310125350952,
-1.40254807472229,
0.5054001808166504,
0.22127754986286163,
0.5123694539070129,
0.4989960193634033,
-0.2... |
def test _ date _ to _ iso ( self ) : date ='1 / 8 / 1970'self. assertequal ( util. date _ to _ iso ( date ),'1970 - 01 - 08t00 : 00 : 00 + 00 : 00') self. assertequal ( util. date _ to _ iso ( date, month _ only = true ),'1970 - 01 - 01t00 : 00 : 00 + 00 : 00') | [
0.5419077277183533,
0.4556911885738373,
0.5426654815673828,
0.7028824687004089,
-0.239755317568779,
0.6821237206459045,
0.009228848852217197,
0.23796547949314117,
0.4389098882675171,
0.07492639869451523,
-0.7033205628395081,
-0.22932176291942596,
0.7055343389511108,
-0.09232145547866821,
... |
async def smart _ send ( target : discord. abc. messageable, msg, sep = 2000 ) - > typing. union [ typing. list [ discord. message ] ] : send = smart _ split ( msg, sep ) message _ list = list ( ) try : for message in send : message _ list. append ( await target. send ( message ) ) return message _ list except discord.... | [
-0.7841694951057434,
0.40812385082244873,
0.7548239231109619,
0.19304749369621277,
0.1430385261774063,
-0.9086414575576782,
-0.04527056962251663,
-0.05168583616614342,
-0.13035915791988373,
0.11983822286128998,
0.06742731481790543,
-0.2652863562107086,
0.06525826454162598,
0.17665763199329... |
def artstability ( request ) : starttime = datetime. now ( ) valid, response = initrequest ( request ) if not valid : return response # getting aggregation order if not'view'in request. session ['requestparams'] or ('view'in request. session ['requestparams'] and request. session ['requestparams'] ['view'] = ='packages... | [
-0.5874608159065247,
-0.14070697128772736,
0.8324542045593262,
-0.06234000250697136,
-0.5754303336143494,
-0.008398015052080154,
0.003161029191687703,
0.16999046504497528,
0.43158337473869324,
0.47816210985183716,
0.3172585070133209,
-0.2579978108406067,
0.2439141422510147,
-0.034600082784... |
def buy _ ticket ( self, discount _ percent, discount _ code, role ) : self. role = role try : file _ list = " list1. csv " location = 0 row _ n = int ( input ( " to purchase tickets, enter the purchase code " ) ) number _ ticket = int ( input ( " number ticket : " ) ) change = pd. read _ csv ('list1. csv') with open (... | [
0.28852608799934387,
0.25500544905662537,
1.0895435810089111,
1.0095093250274658,
0.34355539083480835,
0.12715475261211395,
1.0622947216033936,
1.2009670734405518,
-0.4239445626735687,
-0.021031148731708527,
-0.17267505824565887,
0.14914536476135254,
0.0937400534749031,
0.336044579744339,
... |
def _ timer _ handler ( self ) : num = int ( self. _ send _ chunk _ size ) fpart = self. _ send _ chunk _ size - num if random ( ) < fpart : num + = 1 for _ in range ( num ) : if len ( self. _ this _ cycle ) = = 0 : self. _ this _ cycle = self. _ next _ cycle self. _ next _ cycle = [ ] # shuffle ( self. _ this _ cycle ... | [
-1.0231859683990479,
0.412079781293869,
0.6397552490234375,
-0.9757899641990662,
-0.04264300689101219,
-0.379273384809494,
0.5375843048095703,
-0.9180342555046082,
-0.02263868972659111,
0.3708747625350952,
-0.28764715790748596,
-0.45512840151786804,
-0.6286665201187134,
0.10224378854036331... |
def refine _ flows ( flow _ window, refine, refine _ window, priority ) : new _ active _ flows = { } for switch, flows in inst. active _ flows : new _ flows = [ ] for ( pattern, actions ) in flows : for new _ pattern in refine ( pattern ) : new _ flows. append ( new _ pattern, actions ) install _ rule ( switch, new _ p... | [
0.48747846484184265,
-1.142411231994629,
0.5824009776115417,
0.3529491126537323,
0.5759477019309998,
-0.35624414682388306,
0.32544592022895813,
0.35543882846832275,
0.7769806385040283,
-0.06662842631340027,
0.049253981560468674,
0.23020723462104797,
-0.5283501744270325,
0.9582440853118896,... |
def hmip _ config _ entry _ fixture ( ) - > config _ entries. configentry : entry _ data = { hmipc _ hapid : hapid, hmipc _ authtoken : auth _ token, hmipc _ name : " ", hmipc _ pin : happin, } config _ entry = mockconfigentry ( version = 1, domain = hmipc _ domain, title = " home test sn ", unique _ id = hapid, data =... | [
0.4328498840332031,
-0.12502160668373108,
0.2901131212711334,
-0.1674792766571045,
0.45738813281059265,
-0.3052752614021301,
-0.11320173740386963,
0.845588207244873,
0.3991524279117584,
0.406227171421051,
-0.6817429661750793,
0.04740315303206444,
-0.2917485535144806,
-0.26364538073539734,
... |
def upload _ files _ to _ remote ( remote ) : local _ files = fetch _ local _ files ( local _ file _ directory ) remote. bulk _ upload ( local _ files ) | [
-0.3378080725669861,
0.5709108114242554,
0.6111665368080139,
-0.2630276083946228,
1.3945987224578857,
-0.006374164018779993,
-0.6946753859519958,
0.22810760140419006,
-1.1333144903182983,
0.6316978931427002,
-1.2868965864181519,
0.14182022213935852,
-0.5351625680923462,
0.11946816742420197... |
async def _ handle _ error ( self ) : self. _ state = none self. _ attributes = none self. async _ write _ ha _ state ( ) await asyncio. sleep ( 5 ) | [
-0.5096856951713562,
0.44946587085723877,
0.06811074912548065,
-0.10851401090621948,
0.6367270350456238,
-0.6723145246505737,
0.7494062185287476,
0.5739315152168274,
-0.1776706874370575,
-0.05407191440463066,
-0.1992304027080536,
-0.5472753643989563,
0.14281223714351654,
-0.457055628299713... |
def get _ all _ tracked ( self, as _ np = false ) - > tuple [ union [ list, ndarray ], union [ list, ndarray ] ] : if as _ np : return np. array ( self. _ accuracy ), np. array ( self. _ steps ) return self. _ accuracy, self. _ steps | [
-0.2660660743713379,
-0.20672249794006348,
0.5867336392402649,
0.9905706644058228,
0.6089819073677063,
0.7037834525108337,
-0.06767270714044571,
-0.013846412301063538,
-0.1857069432735443,
0.1864730268716812,
-0.06539604812860489,
0.9087846279144287,
0.44107484817504883,
1.545737624168396,... |
def onwindowactivated ( self, event ) : self. pointofreference = { } self. windowactivatetime = time. time ( ) orca. setlocusoffocus ( event, event. source ) # we keep track of the active window to handle situations where # we get window activated and window deactivated events out of # order ( see onwindowdeactivated )... | [
0.5736780166625977,
-1.0971089601516724,
0.2581215798854828,
-0.2866840362548828,
-0.008263726718723774,
-1.1700141429901123,
1.0582870244979858,
0.27963829040527344,
0.6960358619689941,
0.1828346699476242,
-0.6602678298950195,
1.09444260597229,
-0.1851191222667694,
-0.034818489104509354,
... |
def plotdualtrace ( self ) : self. traceplotwidget. canvas. ax1. clear ( ) self. traceplotwidget. canvas. ax2. clear ( ) legend1 = self. te. windowparametersy1 ['object'] legend2 = self. te. windowparametersy2 ['object'] color1 = self. te. windowparametersy1 ['color'] color2 = self. te. windowparametersy2 ['color'] if ... | [
0.8192499876022339,
-0.5163964629173279,
1.046191692352295,
-0.8686694502830505,
-0.2463630586862564,
0.42374637722969055,
0.3058711886405945,
-0.28754180669784546,
0.33339160680770874,
0.3027122914791107,
0.03414493799209595,
0.9128925204277039,
0.2399994134902954,
-0.05111776292324066,
... |
def download _ workflow ( workflow, fname ) : # set proper file name for zip file if fname is none : return redirect ( url _ for ('download _ workflow ', workflow = workflow, fname = " { 0 }. zip ". format ( workflow. path. stem ) ) ) # open zip stream zstream = zipstream. zipfile ( mode ='w ', compression = zipstream.... | [
-0.2806110978126526,
-0.5587584972381592,
0.6618180871009827,
0.4957757294178009,
-0.07353372871875763,
-0.9224507808685303,
1.0362935066223145,
-0.09351208806037903,
0.6996833086013794,
-0.015348955057561398,
-0.36697185039520264,
-0.6929375529289246,
-0.22506798803806305,
0.4058932662010... |
def copy ( self, source _ bucket : str, source _ object : str, destination _ bucket : str | none = none, destination _ object : str | none = none, ) - > none : destination _ bucket = destination _ bucket or source _ bucket destination _ object = destination _ object or source _ object if source _ bucket = = destination... | [
-0.7017098069190979,
-0.5108348727226257,
0.596251904964447,
0.11680501699447632,
-0.0567503422498703,
0.5738344192504883,
0.1754130721092224,
-0.48662611842155457,
-0.566904604434967,
0.8049681782722473,
-1.0957074165344238,
0.6695302128791809,
0.7823346257209778,
-0.4481695592403412,
0... |
def merge _ data ( df _ dcmetro, df _ public _ schools, df _ private _ schools, df _ hospitals ) : public _ schools _ per _ county = df _ public _ schools ['countyfips']. value _ counts ( ). to _ frame ( ) public _ schools _ per _ county. reset _ index ( level = 0, inplace = true ) public _ schools _ per _ county. rena... | [
-0.5998650193214417,
0.49431803822517395,
0.8500356078147888,
-0.4259471893310547,
0.5699309706687927,
0.42340120673179626,
0.32440292835235596,
-0.035417623817920685,
-0.21090807020664215,
-0.4585264325141907,
0.5008040070533752,
0.22883902490139008,
0.5370680689811707,
0.0839313641190528... |
def test _ atomic _ base64 _ binary _ length _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 2. xsd ", instance = "... | [
0.04156402498483658,
-0.6997143626213074,
0.41888001561164856,
1.3685411214828491,
0.1401035040616989,
0.03043762594461441,
0.30751290917396545,
0.1542922854423523,
-0.39831778407096863,
0.44359493255615234,
-0.4968821406364441,
0.372342050075531,
0.026191823184490204,
0.522466778755188,
... |
def authenhandler ( req, * * kwargs ) : # mod _ python fakes the environ, and thus doesn't process setenv. this fixes # that so that the following import works os. environ. update ( req. subprocess _ env ) # apache 2. 2 requires a call to req. get _ basic _ auth _ pw ( ) before # req. user and friends are available. re... | [
-0.5937801599502563,
0.08219259977340698,
1.0297045707702637,
1.1144903898239136,
-0.9099524617195129,
0.1456184834241867,
0.371420681476593,
-0.010613895952701569,
-0.354142963886261,
0.24644839763641357,
0.48218587040901184,
-0.6835012435913086,
-0.5100489258766174,
0.21764935553073883,
... |
def scroll _ down ( self ) : # get scroll height. last _ height = self. driver. execute _ script ( " return document. body. scrollheight " ) # scrolling till we get required items while len ( self. elements ) < self. items : self. driver. execute _ script ( " window. scrollto ( 0, document. body. scrollheight ) ; " ) #... | [
-0.4452533721923828,
0.022832736372947693,
0.9441171884536743,
0.2663368880748749,
0.6687411665916443,
0.5717141628265381,
0.5669513940811157,
-0.7687589526176453,
0.11610759794712067,
-0.49643003940582275,
-0.006813115905970335,
0.1457236409187317,
-0.8153897523880005,
1.4271403551101685,... |
def model _ setup _ with _ config ( ) : conf _ str ='''[ config ] mpt01 = " some fancy model setup " mpt02 = " an even fancier model setup "'''with namedtemporaryfile ( ) as tf : with open ( tf. name,'w') as f : f. write ( model _ config ( conf _ str ) ) yield tf. name | [
-0.16056549549102783,
-0.4327280819416046,
0.4579622149467468,
-0.22514353692531586,
-0.3640426695346832,
0.15908347070217133,
0.3976166844367981,
-0.20833458006381989,
-0.602774977684021,
1.2174153327941895,
-1.6798185110092163,
-1.0671875476837158,
0.9830465912818909,
0.06393156200647354... |
def write _ gunw _ array ( output _ filename : union [ str, path ], array : np. ndarray, snwe : list, nodata : optional [ str ] ='nan ', format : optional [ str ] ='envi ', epsg : optional [ int ] = 4326, add _ vrt : optional [ bool ] = true, verbose : optional [ bool ] = false, update _ mode : optional [ bool ] = true... | [
-0.2236737161874771,
-0.31120923161506653,
0.8847019076347351,
0.3213828504085541,
0.1712309718132019,
0.07227835804224014,
0.02050217054784298,
-0.28941529989242554,
0.028751950711011887,
1.2844314575195312,
0.135137140750885,
0.3929457664489746,
-0.27927082777023315,
0.29398050904273987,... |
def test _ tranform _ cost ( ) : assert ( tranform _ cost ( array _ 1 = [ [ 5, 3, 4 ], [ 1, 5, 8 ], [ 6, 4, 2 ] ], array _ 2 = [ [ 8, 3, 4 ], [ 1, 5, 9 ], [ 6, 7, 2 ] ], ) = = 7 ) | [
0.32463398575782776,
0.3082886338233948,
0.5550709366798401,
0.013001907616853714,
0.026937240734696388,
-1.0827418565750122,
0.35730695724487305,
0.48638293147087097,
0.0012261751107871532,
1.2897828817367554,
-0.9536904096603394,
-0.16119295358657837,
0.1261448711156845,
-0.0400944873690... |
def to _ hash ( string ) : xor = 0 # convert letters to ordinal values # then hash by taking modulo for ind in range ( len ( string ) ) : xor ^ = int ( ord ( string [ ind ] ) ) return xor | [
-0.05843257158994675,
-0.09783013164997101,
0.33649224042892456,
-0.02407587505877018,
-0.502824604511261,
0.6609879732131958,
-0.5573591589927673,
0.20217548310756683,
-0.268460214138031,
0.5196709036827087,
-1.0150823593139648,
0.3500266671180725,
-0.975952684879303,
-1.3482064008712769,... |
def make _ parser ( ) : logging. info ( " constructing parser " ) description = " store and retrieve snippets of text " parser = argparse. argumentparser ( description = description ) subparsers = parser. add _ subparsers ( dest = " command ", help = " available commands " ) # subparser for the put command logging. deb... | [
0.28613993525505066,
0.07649119943380356,
0.6414707899093628,
-0.5295183062553406,
-0.2951657176017761,
0.39138174057006836,
-0.2626403272151947,
0.5896058082580566,
-0.20596812665462494,
-0.07018397003412247,
-0.633282482624054,
-0.06800710409879684,
-0.4369381070137024,
0.323510080575943... |
def validate ( self ) : def getduplicateitems ( iterable ) : " " " return a list of duplicates " " " return [ k for k, v in counter ( iterable ). items ( ) if v > 1 ] super ( ). validate ( ) duplicatelightsources = getduplicateitems ( self. lightsources ) if duplicatelightsources : raise runtimeerror ( f'there are dupl... | [
-0.5834264755249023,
0.16402259469032288,
0.5463380217552185,
-0.40545377135276794,
-0.0020781182684004307,
0.351142019033432,
0.43798384070396423,
0.012515107169747353,
0.4947316646575928,
-1.21796452999115,
-0.6501023173332214,
-0.7950098514556885,
-0.4733179211616516,
0.8325304985046387... |
def stems _ test ( ) : xmldocs = collection ( ) print sorted ( xmldocs. get _ stems ( uniq = true ) ) | [
1.0182632207870483,
0.2572704553604126,
0.36201709508895874,
0.09628217667341232,
0.4497714638710022,
0.41258862614631653,
0.35919463634490967,
-0.8088299036026001,
0.43956178426742554,
-0.9288884401321411,
-0.10254178941249847,
-0.22365225851535797,
0.5344677567481995,
0.06309908628463745... |
def test _ list _ decimal _ pattern _ 1 _ nistxml _ sv _ iv _ list _ decimal _ pattern _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - pattern - 2. xsd ", instance = " nistdata / list / decimal / sc... | [
-0.3734836280345917,
-0.5532559156417847,
0.620986819267273,
0.8329912424087524,
0.13760241866111755,
-0.31420910358428955,
-0.10841494053602219,
0.25730565190315247,
0.3709719777107239,
-0.18504056334495544,
-1.049189567565918,
-0.3750528395175934,
-0.007641968317329884,
0.741043329238891... |
def _ _ init _ _ ( self, size ) : self. size = size | [
0.316642165184021,
-0.40366795659065247,
0.3301084339618683,
-0.4232383072376251,
-0.5019243955612183,
0.4177606701850891,
0.11914089322090149,
0.17300957441329956,
0.8081722855567932,
-1.0397077798843384,
-1.061880350112915,
-0.24957354366779327,
-0.2271701544523239,
0.5526575446128845,
... |
def do _ status ( self, args ) : print ( fore. yellow + " test requierments " ) global token if token = = " " : print ( fore. red + " token not set " ) print ( " use command settoken " + style. reset _ all ) else : print ( fore. green + " token = " + token + style. reset _ all ) global datacenter if datacenter = = " " ... | [
-0.16291312873363495,
-0.7438838481903076,
0.5991255044937134,
-0.4162778854370117,
0.6422827839851379,
0.2966154217720032,
0.378965824842453,
0.6163321733474731,
0.3852008283138275,
0.3686833381652832,
-0.4901027977466583,
1.400924563407898,
-0.39699697494506836,
1.0148046016693115,
0.2... |
def get _ heuristic _ average _ grid _ correction ( self, grid _ index ) : wd _ corr = [ ] stig _ x _ corr = [ ] stig _ y _ corr = [ ] for tile _ key in self. wd _ stig _ corr : g = int ( tile _ key. split ( '.') [ 0 ] ) if g = = grid _ index : wd _ corr. append ( self. wd _ stig _ corr [ tile _ key ] [ 0 ] ) stig _ x ... | [
-0.2231232225894928,
-0.13343849778175354,
0.6720858216285706,
-0.68024080991745,
0.1701008677482605,
-0.3799140751361847,
0.7075842618942261,
0.06882843375205994,
-0.4894515573978424,
1.4552708864212036,
-0.13718989491462708,
0.4390468895435333,
-0.33226796984672546,
0.6357917189598083,
... |
def build _ decoder ( tparams, options ) : # description string : # words x # samples # text : text sentence # hypothesis : hypothesis sentence text _ embedding = tensor. tensor3 ('text _ embedding ', dtype ='float32') # text = tensor. matrix ('text ', dtype ='int64') text _ mask = tensor. matrix ('text _ mask ', dtype... | [
0.025437066331505775,
-0.343927264213562,
0.6735304594039917,
0.0817275121808052,
0.26682305335998535,
0.14168046414852142,
0.3982503414154053,
0.34424737095832825,
-0.9211411476135254,
0.3798845410346985,
0.07327067106962204,
0.2906840443611145,
-0.21888963878154755,
0.11572043597698212,
... |
async def on _ watch _ only ( self, request = none ) : if not self. creds : logger. warning ( " agent asks for watch - only credentials, trezor not initialized " ) return abort ( 406 ) if self. watch _ only _ waiter. in _ confirmation : logger. warning ( " agent asks for watch - only credentials concurrently " ) return... | [
0.10773572325706482,
0.4810102880001068,
0.4493454694747925,
1.19986093044281,
-0.10413913428783417,
-0.47605517506599426,
0.21350930631160736,
-0.6885007619857788,
0.3494677245616913,
0.35294821858406067,
0.11508495360612869,
1.244571328163147,
-0.044608402997255325,
0.7289193272590637,
... |
def get _ next _ id ( self, callback = none ) : self. eval _ js ('table. getsiblingid ( undefined, " next " ) ; ', callback = callback ) | [
0.2550073266029358,
1.1174577474594116,
0.4985424280166626,
1.2763500213623047,
-0.9227224588394165,
-0.4928719401359558,
0.8874110579490662,
-0.4660223424434662,
0.26952993869781494,
-0.09804225713014603,
-0.47221148014068604,
0.603769063949585,
-0.6478882431983948,
0.6569439768791199,
... |
def load _ movies ( self ) : # first clear the current movie on list self. root. ids. movie _ list. clear _ widgets ( ) # check the current order desc = self. current _ order = ='descending order'# add movies based on current sort _ by and order to movie to show list self. movie _ to _ show = self. my _ collection. sor... | [
-0.6767314076423645,
-0.19778914749622345,
0.6980440020561218,
0.42374736070632935,
0.5811850428581238,
0.3030637204647064,
0.07536912709474564,
0.3661655783653259,
0.1548016369342804,
0.5941134691238403,
-0.841374933719635,
0.24919936060905457,
0.08207257091999054,
1.2886452674865723,
-... |
def test _ atomic _ hex _ binary _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 5. xsd ", instance ... | [
-0.494394451379776,
-0.5823439359664917,
0.4769754409790039,
0.6245840787887573,
-0.09372714161872864,
0.0683152824640274,
0.11831885576248169,
-0.6454487442970276,
-0.3741395175457001,
0.32712557911872864,
-0.7212207913398743,
-0.6285695433616638,
-0.8330073952674866,
0.6220312714576721,
... |
def _ get _ elems ( self, elemlst, col, * * kwargs ) : if not col : return none clean = kwargs. get ('clean ', false ) # check if element is valid ret = [ ] for e in elemlst : try : i = self. element. index ( e ) except : raise valueerror ( " element'{ 0 }'is not in twiss " " data : { 1 } ". format ( e, self. element )... | [
-1.0433708429336548,
-0.02992178127169609,
0.6296537518501282,
-0.03443170711398125,
-0.2073490470647812,
0.4077686369419098,
-0.2524183392524719,
-0.3460322320461273,
-0.39620381593704224,
0.4655192494392395,
-0.32539159059524536,
0.5572401285171509,
0.17397409677505493,
0.607661962509155... |
def resize _ images ( image _ files ) : print ( " resizing images... " ) image _ width = 500 image _ counter = 1 # check if resized _ image _ folder exists, otherwise create it if not os. path. exists ( resized _ image _ folder ) : os. makedirs ( resized _ image _ folder ) for image _ file in image _ files : resized _ ... | [
-0.9478418827056885,
0.7331331372261047,
0.6750323176383972,
0.8096823692321777,
0.9720848798751831,
-0.15635143220424652,
0.7031564712524414,
0.7653774619102478,
-0.03785477951169014,
0.771182119846344,
-0.6885173916816711,
-1.1829237937927246,
0.13205251097679138,
0.6098929047584534,
-... |
def list _ bunnies _ by _ team ( self, team _ id ) : return reversed ( self. bunnies _ by _ team [ team _ id ] ) | [
-0.18110692501068115,
-0.123953677713871,
0.4546682834625244,
-0.12216593325138092,
0.9627698063850403,
-0.7584229111671448,
-0.36337706446647644,
-0.7466883063316345,
-0.6849311590194702,
0.6605888605117798,
-0.9185979962348938,
1.2259968519210815,
-0.031210944056510925,
0.220506295561790... |
def _ get _ schedule _ id ( self ) : schedules _ obj = schedules ( self. class _ object ) return schedules _ obj. get ( self. schedule _ name ). schedule _ id | [
0.5998101234436035,
-0.4036917984485626,
0.38468632102012634,
-0.29550981521606445,
-0.0750683844089508,
-0.03817535191774368,
-0.3349510133266449,
0.006701277103275061,
0.623188853263855,
0.5029491186141968,
-0.21900086104869843,
0.5838592052459717,
-0.0926220715045929,
-0.388632535934448... |
def run ( self ) : self. run _ suite _ tests ( ) if tasks. environment. dry _ run : return self. report _ test _ results ( ) if self. failed _ suites : sys. exit ( 1 ) | [
-0.07774565368890762,
0.7061874866485596,
0.399942010641098,
0.5116416811943054,
0.44232144951820374,
0.6517848372459412,
1.3128540515899658,
-0.15704716742038727,
-0.5317730903625488,
-0.5930227637290955,
-0.2957092523574829,
-0.13649511337280273,
-0.6081552505493164,
0.6918895244598389,
... |
def process _ associations ( self, original _ obj ) : for person _ ref in original _ obj. get _ person _ ref _ list ( ) : if person _ ref : self. process _ citation _ ref _ list ( person _ ref ) self. process _ notes ( person _ ref ) person = self. db. get _ person _ from _ handle ( person _ ref. ref ) if person : self... | [
-0.005952911917120218,
-0.8516872525215149,
0.6732979416847229,
-0.007720802910625935,
0.31294238567352295,
0.3338322937488556,
1.3534518480300903,
-0.15255741775035858,
0.07674652338027954,
-0.35422447323799133,
0.48118555545806885,
0.13183526694774628,
-0.016520008444786072,
0.8633142113... |
def reviewendofline ( self, inputevent ) : context = self. getflatreviewcontext ( ) context. goend ( flat _ review. context. line ) self. reviewcurrentcharacter ( inputevent ) self. targetcursorcell = self. getbraillecursorcell ( ) return true | [
-0.3516714572906494,
-0.6652814149856567,
0.38999754190444946,
-0.4662649929523468,
0.03034961223602295,
0.691628098487854,
-0.28695863485336304,
0.13218779861927032,
0.006783710792660713,
0.04862646758556366,
-0.5626420974731445,
0.39326539635658264,
-0.8585509061813354,
0.059931147843599... |
def create _ graph _ from _ matching _ vertices ( self, query _ dict = none, edge _ attr _ filter = none ) : pass | [
-0.6725807785987854,
0.23236426711082458,
0.2874535620212555,
0.3029519021511078,
-0.929595947265625,
0.3015066087245941,
0.06068064272403717,
0.22417491674423218,
0.4813861548900604,
0.375201553106308,
-0.0662846490740776,
-0.173665851354599,
-0.1040409654378891,
-0.783470094203949,
-1.... |
def get _ hint ( bot, message, quest ) : pass | [
-0.03923792019486427,
0.503122091293335,
0.19707491993904114,
0.7335905432701111,
0.35533782839775085,
0.6804183721542358,
-0.5439489483833313,
-1.435650110244751,
-0.5689911246299744,
-0.1377108097076416,
-0.22402232885360718,
0.9208155274391174,
-0.9286296367645264,
-0.4656859040260315,
... |
def test3 ( ) : print ( " \ ntest 3 : " ) table = linkedhashtable ( 1 ) table. add ( " i " ) table. add ( " am " ) table. add ( " last " ) table. add ( " test " ) print _ set ( table ) print ( " size " + str ( table. size ) ) print ( "'i'in table? ", table. contains ( " i " ) ) print ( "'am'in table? ", table. contains... | [
0.7262971997261047,
0.6273655891418457,
0.8875169157981873,
0.09272034466266632,
-0.46545836329460144,
0.07136731594800949,
0.47495126724243164,
-0.7575835585594177,
-0.1183006539940834,
0.15415789186954498,
0.11204472184181213,
0.11502578109502792,
-0.6421565413475037,
-0.5621241927146912... |
def co _ rm _ aminformation ( y, tau = 1 ) : if tau > = len ( y ) : return y1 = y [ : - tau ] y2 = y [ tau : ] out = rm _ information ( y1, y2 ) return out [ 0 ] | [
-0.773758053779602,
-0.47150471806526184,
0.27492257952690125,
-0.0949559137225151,
-0.4183570444583893,
-0.7459935545921326,
-0.10258524864912033,
-0.8219611048698425,
-0.0963510200381279,
0.400095671415329,
0.4449974000453949,
-0.022307241335511208,
-0.18365322053432465,
-0.0552858449518... |
def get ( self, length = 16 ) : tail ='@ loganon. 33mail. com'prefix =''. join ( secrets. choice ( string. ascii _ uppercase + string. ascii _ lowercase + string. digits ) for _ in range ( length ) ) email = {'email': prefix + tail } return jsonify ( email ) | [
-0.3482443392276764,
0.1606568992137909,
0.48316776752471924,
-1.5146186351776123,
-0.528042197227478,
-0.4271352291107178,
-1.4824142456054688,
-0.8360339403152466,
0.08927081525325775,
-0.08216365426778793,
-1.2068421840667725,
1.797442078590393,
-0.3145187497138977,
-1.0613871812820435,... |
def testremovingnothing ( self ) : ssd = self. original ( ) op = iecorescene. removesmoothskinninginfluencesop ( ) op. parameters ( ) ['input']. setvalue ( ssd ) result = op. operate ( ) self. assertequal ( result. influencenames ( ), ssd. influencenames ( ) ) self. assertequal ( result. influencepose ( ), ssd. influen... | [
-0.056896548718214035,
0.27509433031082153,
0.5891614556312561,
-0.2732028663158417,
-0.2572501003742218,
0.3350267708301544,
0.9078313112258911,
0.33066245913505554,
0.32814669609069824,
-0.8577236533164978,
-0.7163447141647339,
0.12649711966514587,
-0.7484043836593628,
-0.194587796926498... |
def _ _ init _ _ ( self, dct, w = none ) : self. dict = dct self. w = w self. nword = len ( dct ) self. ndim = none self. wsqsum = numpy. zeros ( self. w. shape ) | [
0.4145856201648712,
0.5220307111740112,
0.6830839514732361,
-0.7904835343360901,
-0.5863523483276367,
-0.3734056353569031,
-0.02400829643011093,
-0.11182516068220139,
1.1537909507751465,
0.007655465044081211,
-0.4390207529067993,
-0.30343401432037354,
0.4938800632953644,
1.224076509475708,... |
def multiply ( x, y ) : return x * y | [
-0.6915592551231384,
0.298778235912323,
0.4132399260997772,
-0.17445315420627594,
-0.017940787598490715,
0.42245200276374817,
-1.8381884098052979,
-1.6785178184509277,
-0.6857830882072449,
0.0015616485616192222,
0.11677340418100357,
0.23822180926799774,
0.5078529715538025,
-0.6705123186111... |
def connect ( ip, port ) : try : sock. connect ( ( tcp _ ip, tcp _ port ) ) return 0 except socket. timeout : time. sleep ( 4 ) return 1 | [
-0.2508303225040436,
0.762234091758728,
0.28060808777809143,
0.5344139337539673,
-0.21975669264793396,
-0.24483749270439148,
-0.05769822746515274,
-0.3116287589073181,
-0.9784398674964905,
0.4126814901828766,
0.8124681115150452,
-1.0009645223617554,
-0.3856658935546875,
-0.7137547731399536... |
def test _ list _ integer _ min _ length _ nistxml _ sv _ iv _ list _ integer _ min _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - minlength - 1. xsd ", instance = " nistdata / list / inte... | [
-0.3044222891330719,
-0.5005824565887451,
0.34716176986694336,
0.4698925018310547,
-0.7052053809165955,
-0.036310601979494095,
0.09513113647699356,
-0.1370542198419571,
1.2584868669509888,
0.7101650238037109,
-1.1248573064804077,
-0.08037035912275314,
-0.9692086577415466,
1.011124730110168... |
def _ getcurvepositions ( self, start, end ) : thigh _ curve _ points = [ ] pos1 = self. guides [ start ] [ 1 ] pos2 = self. guides [ end ] [ 1 ] vec1 = [ ( pos1 [ 0 ] + pos2 [ 0 ] ) / 2, ( pos1 [ 1 ] + pos2 [ 1 ] ) / 2, ( pos1 [ 2 ] + pos2 [ 2 ] ) / 2 ] pos3 = [ ( pos1 [ 0 ] + vec1 [ 0 ] ) / 2, ( pos1 [ 1 ] + vec1 [ 1... | [
-0.22892120480537415,
-0.8133854866027832,
1.070815920829773,
-0.5657355785369873,
0.25723472237586975,
0.09585577994585037,
0.24308739602565765,
0.010042465291917324,
-0.7711353302001953,
1.0355215072631836,
-0.7032623887062073,
0.3010816276073456,
-0.2654878497123718,
-0.5023578405380249... |
def kawasaki _ step ( self ) : # obtain a first random point x1 = random. randrange ( self. _ x ) y1 = random. randrange ( self. _ y ) spin1 = self. _ spins [ y1, x1 ] # find a second random point with a different spin spin2 = spin1 while ( spin2 = = spin1 ) : x2 = random. randrange ( self. _ x ) y2 = random. randrange... | [
-0.397011935710907,
-0.19784368574619293,
0.7178885340690613,
0.20741914212703705,
-0.7071292400360107,
0.10476792603731155,
0.41854652762413025,
0.3842211067676544,
-0.19759579002857208,
0.5430877208709717,
-0.26180708408355713,
0.0051690759137272835,
-0.3086058497428894,
0.21505995094776... |
def sum ( self, start = 0, end = none ) : return super ( sumsegmenttree, self ). reduce ( start, end ) | [
-1.0764009952545166,
0.04694203659892082,
0.5247943997383118,
0.7161489725112915,
0.7676740884780884,
-0.13720200955867767,
0.44386088848114014,
0.6324731111526489,
-0.24287495017051697,
-0.033108972012996674,
-0.936048686504364,
0.21026194095611572,
-0.5168368220329285,
0.2588357031345367... |
def get _ category ( self ) : return self. category | [
-0.3080492317676544,
-0.31140580773353577,
0.17651396989822388,
0.23147256672382355,
0.4654063284397125,
0.2896006405353546,
0.43805739283561707,
-0.08977889269590378,
-0.002034927485510707,
-1.8879848718643188,
1.1697672605514526,
0.9669919610023499,
0.2703360617160797,
0.2162449508905410... |
def test _ atomic _ qname _ max _ length _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 1. xsd ", instance = " nistdata / atomic / qn... | [
0.22088156640529633,
-0.5202121734619141,
0.3004573583602905,
0.5420048236846924,
-0.7146093249320984,
0.30262306332588196,
-0.4646678864955902,
-0.37847575545310974,
0.25517550110816956,
0.48320648074150085,
-0.560566246509552,
-0.001570840016938746,
0.21909739077091217,
0.175545796751976... |
def test _ atomic _ id _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ id _ pattern _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - pattern - 3. xsd ", instance = " nistdata / atomic / id / schema + instance... | [
0.4565645754337311,
-0.26760727167129517,
0.5191845893859863,
0.4742901027202606,
-0.12175770848989487,
0.3207186758518219,
-0.10349166393280029,
-0.3574818968772888,
0.39035141468048096,
0.8858746886253357,
-0.057668451219797134,
0.13428586721420288,
0.006030190736055374,
-0.4080617725849... |
def get _ create ( self, join _ table = none ) : if not join _ table : join _ table = " ( % s ) t1 " % self. get _ join _ table ( ) query = " select * from % s \ n " % join _ table for group, groupby in self. groups. items ( ) : query + = " left join % s using ( % s ) " % ( self. get _ table _ name ( group ), groupby )... | [
0.19371554255485535,
0.12189792096614838,
0.6874963045120239,
0.7155051231384277,
0.1786925196647644,
0.09996961057186127,
0.3899780511856079,
-0.4436858892440796,
-1.4075262546539307,
0.776447057723999,
0.6930813193321228,
-0.5990756154060364,
-0.16686663031578064,
0.6122326850891113,
-... |
def test _ confirm _ password _ reset _ request ( self ) : pass | [
-0.7116715908050537,
0.36465564370155334,
0.14520367980003357,
1.5127288103103638,
0.9486761689186096,
0.3423820436000824,
0.5558556914329529,
-0.6595136523246765,
-0.39763832092285156,
0.17414499819278717,
-0.4826485216617584,
0.9702587127685547,
-0.5904884338378906,
0.5228142142295837,
... |
def _ make _ token _ with _ timestamp ( self, newsletter _ recipient, timestamp ) : ts _ b36 = int _ to _ base36 ( timestamp ) # we limit the hash to 20 chars to keep url short key _ salt = " tunobase. corporate. company _ info. \ newsletter. newsletterunsubscribetokengenerator " # ensure results are consistent across ... | [
0.5420849323272705,
-0.16113638877868652,
0.4374614953994751,
-0.6711031198501587,
-0.36416488885879517,
-0.482756644487381,
-1.627506136894226,
0.403272420167923,
0.2187425047159195,
0.15371426939964294,
-0.13684946298599243,
-0.4438328742980957,
0.6410090327262878,
-0.8349124789237976,
... |
def test _ atomic _ base64 _ binary _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 3. xsd ... | [
-0.240915909409523,
-0.529462456703186,
0.5996574759483337,
0.9523626565933228,
0.277222216129303,
0.21996016800403595,
0.12086217105388641,
-0.3388313055038452,
0.1737227588891983,
0.631639838218689,
-0.3013342618942261,
-0.013350645080208778,
-0.5527212023735046,
-0.15758207440376282,
... |
def genbasismatrix ( beta, nmax, rx, ry ) : bvals = [ ] for x in range ( nmax [ 0 ] ) : for y in range ( nmax [ 1 ] ) : bf = shapelet. dimbasis2d ( x, y, beta = beta ) bvals. append ( shapelet. computebasis2d ( bf, rx, ry ). flatten ( ) ) bm = np. array ( bvals ) return bm. transpose ( ) | [
-0.5099115967750549,
-0.42779892683029175,
0.5573928356170654,
0.2032461017370224,
0.9093204140663147,
0.804997980594635,
-0.45916828513145447,
-1.0593880414962769,
-0.932576596736908,
-0.018589219078421593,
-0.04688601940870285,
-0.10373034328222275,
-0.39587390422821045,
0.21415418386459... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.