text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def min _ max ( * time ) : return max ( abs ( a - 120 ) for a in hand _ angles ( hand _ positions ( * time ) ) ) | [
-0.16729745268821716,
-0.3617953360080719,
0.4405866861343384,
0.5411327481269836,
-0.6887256503105164,
0.20809854567050934,
-1.3086140155792236,
-0.36695507168769836,
-0.16422933340072632,
0.21693697571754456,
0.0772031843662262,
-0.3583807647228241,
0.5572525858879089,
0.2930996417999267... |
def read _ table ( conn ) : c = conn. cursor ( ) c. execute ( " select * from games order by date " ) dtype = [ ('date ','s10'), ('season ','< i4'), ('week ','< i4'), ('team _ home ','s10'), ('score _ home ','< i4'), ('team _ away ','s10'), ('score _ away ','< i4'), ] return np. rec. array ( c. fetchall ( ), dtype = dt... | [
-0.32678866386413574,
0.3656528890132904,
0.8628668189048767,
-0.7041193246841431,
0.11933088302612305,
-0.21855181455612183,
0.04132532328367233,
-0.9421056509017944,
-0.9197831749916077,
0.4220372438430786,
0.446230947971344,
0.4381369352340698,
0.07586158812046051,
-0.8483210802078247,
... |
def attention ( d _ feature, n _ heads = 1, dropout = 0. 0, mode ='train') : return cb. serial ( cb. dup ( ), cb. dup ( ), attentionqkv ( d _ feature, n _ heads = n _ heads, dropout = dropout, mode = mode ), ) | [
-0.06117039918899536,
-0.017534589394927025,
0.5288683176040649,
0.39237046241760254,
-0.8403075933456421,
-0.9711719751358032,
0.5653012990951538,
-0.7296265959739685,
0.25429362058639526,
-0.08606583625078201,
-0.07863236963748932,
0.8460638523101807,
0.29374760389328003,
-0.119066059589... |
def test _ delete _ feature ( self ) : pass | [
0.5427359938621521,
-0.05345067009329796,
0.1076471135020256,
1.67729651927948,
0.8651606440544128,
-0.31629255414009094,
1.2888357639312744,
0.6432603001594543,
0.5251874923706055,
-1.5546804666519165,
-0.8964546322822571,
0.5930694341659546,
-1.2998675107955933,
0.13792817294597626,
-0... |
def init _ network ( self ) : net _ path = self. net _ conf ['net _ path'] self. nets = importlib. import _ module ( net _ path ). get _ model ( self. net _ conf ) | [
0.17821718752384186,
-0.22581467032432556,
0.23921765387058258,
0.7052200436592102,
1.2298874855041504,
0.7712371945381165,
0.29362303018569946,
-0.18343788385391235,
-0.4851905107498169,
-0.04425757750868797,
-1.2155715227127075,
0.2175370156764984,
0.35654643177986145,
0.5523228049278259... |
def seekable ( self ) : return false | [
0.030638230964541435,
0.25346800684928894,
0.515221893787384,
0.6827938556671143,
0.008735451847314835,
1.2233809232711792,
0.6303379535675049,
-0.3742917776107788,
-0.7691065073013306,
-0.7812259197235107,
-0.38232946395874023,
-0.16547034680843353,
-1.447397232055664,
-0.3175235092639923... |
def utc2tai ( utc ) : date = parse ( utc ) date _ string = date. strftime ('% y - % m - % dt % h : % m : % s. % f') date _ utc = time ( date _ string, format ='isot ', scale ='utc') tai = date _ utc. gps + epoch _ diff + 19. 0 return tai | [
-0.6426881551742554,
-1.0534123182296753,
0.7619171142578125,
-0.5863381028175354,
0.1418866664171219,
0.2827470898628235,
0.5591170787811279,
-0.2882750332355499,
-0.22164830565452576,
0.46217241883277893,
-0.19134029746055603,
-0.15596367418766022,
0.48573267459869385,
-1.167417407035827... |
def rm _ file ( self, path ) : path = self. fix _ path ( path ) if self. node _ exists ( path ) : print ( " deleting file { }. ". format ( path ) ) file _ id = self. get _ node ( path ). entry _ id self. _ rm _ file ( file _ id ) else : print ( " error : file { } not found ". format ( path ) ) | [
0.7684150338172913,
-0.30002304911613464,
0.6659874320030212,
0.037334129214286804,
0.5052433013916016,
0.5972990393638611,
-0.018886350095272064,
0.8396320939064026,
-0.35830119252204895,
0.4733062982559204,
0.6505976915359497,
0.01692509651184082,
0.1417216807603836,
0.42137622833251953,... |
def _ hashname ( name ) : # this corresponds to hashmetricnameas32bits ( ) in c + + return " 0x " + hashlib. md5 ( name. encode ( ) ). hexdigest ( ) [ : 8 ] | [
0.8983515501022339,
0.22836115956306458,
0.5239526033401489,
-0.6985439658164978,
-1.4981448650360107,
0.830637514591217,
-0.5530508756637573,
-0.7669387459754944,
-0.45190224051475525,
0.8534750938415527,
-0.21228614449501038,
-0.7798424363136292,
0.09035982191562653,
-0.9026765823364258,... |
def test _ delete _ parameter _ 0 ( self ) : pass | [
-0.1961425542831421,
-0.5180466175079346,
0.3086303174495697,
0.807057797908783,
0.7484690546989441,
0.37584012746810913,
1.1703341007232666,
0.7891217470169067,
0.269199401140213,
-0.2818410396575928,
-0.06949754804372787,
0.8138678669929504,
-0.8604065775871277,
1.0271360874176025,
-0.... |
def set _ courses ( self, courses ) : if courses is none or not isinstance ( courses, int ) : raise valueerror ( " invalid courses argument " ) self. courses = courses | [
-1.056381106376648,
0.8281460404396057,
0.35233235359191895,
-0.16417884826660156,
0.7939212918281555,
0.6843705177307129,
0.1422572135925293,
-0.6237343549728394,
0.3958519697189331,
0.1674230545759201,
-0.14737138152122498,
-0.1574457436800003,
-0.714692234992981,
0.525830864906311,
-0... |
def _ z ( self, x ) : with ops. name _ scope ( " standardize ", values = [ x ] ) : # data = tf. abs ( x - self. loc ) # datashape = tf. square ( data ) # condition = tf. less ( data, self. scale ) # print ( self. loc. eval ( ) ) # print ( data. eval ( ) ) # print ( ) # print ( ( tf. where ( condition, tf. ones _ like (... | [
-0.02103734016418457,
-0.28395915031433105,
0.6160346865653992,
-0.3184413015842438,
-0.8423917889595032,
0.15398083627223969,
0.5399118065834045,
0.12838971614837646,
0.6640938520431519,
0.39322343468666077,
-0.4913531541824341,
0.46376705169677734,
0.6086480021476746,
-0.0663521364331245... |
def get _ comment _ links ( target : generator ) - > generator : while true : comment = yield for link in comment. links : target. send ( ( comment. id, link, graph. linktype. cl ) ) | [
-1.1131852865219116,
-0.3466453552246094,
0.45829302072525024,
-0.2968299090862274,
1.3061816692352295,
-0.7026112079620361,
-0.13204430043697357,
-0.6770977973937988,
-0.7190574407577515,
-0.4912627637386322,
0.047728486359119415,
0.8106779456138611,
0.1257779598236084,
0.0083102798089385... |
def _ ping ( self ) : log. debug ( " % r : pinging oms... ", self. _ platform _ id ) if self. _ rsn _ oms is none : raise platformconnectionexception ( " cannot ping : _ rsn _ oms object required ( created via connect ( ) call ) " ) try : retval = self. _ rsn _ oms. hello. ping ( ) except exception as e : raise platfor... | [
-0.3554036617279053,
-0.2568197548389435,
0.6935813426971436,
-0.12410028278827667,
0.06325030326843262,
-0.4618898034095764,
0.23717331886291504,
-0.3226492404937744,
-0.1625053584575653,
0.5331152081489563,
0.6821308135986328,
-0.3983396887779236,
-0.7017224431037903,
-0.0936041325330734... |
def argument _ group _ macros ( self ) : for g in self. arg _ type _ groups : yield " # define % ( group _ name ) s _ arg ( arg _ i, opcode ) ( % ( group _ name ) s _ type ( op _ bread5 ( ( arg _ i ), ( opcode ) - > arg _ type ) ) ) " % dict ( group _ name = g. name. upper ( ) ) | [
-0.16603726148605347,
0.37100473046302795,
0.30559831857681274,
0.35457295179367065,
0.3419874310493469,
-0.6253988146781921,
0.10989931225776672,
-0.501946747303009,
-1.3045663833618164,
0.9088103771209717,
0.30283883213996887,
1.0407212972640991,
0.15845680236816406,
1.2487070560455322,
... |
def _ find _ w9xpopen ( self ) : w9xpopen = os. path. join ( os. path. dirname ( getmodulefilename ( 0 ) ), " w9xpopen. exe " ) if not os. path. exists ( w9xpopen ) : # eeek - file - not - found - possibly an embedding # situation - see if we can locate it in sys. exec _ prefix w9xpopen = os. path. join ( os. path. dir... | [
0.7110449075698853,
-0.4685271084308624,
0.8053084015846252,
-0.07630040496587753,
-0.4688456654548645,
0.48779118061065674,
0.6147768497467041,
0.09761422872543335,
-0.2914472818374634,
0.02135741151869297,
0.6183096170425415,
-0.2889874577522278,
-0.3169524073600769,
0.2888281047344208,
... |
def get _ state _ tuple ( self, state _ vector, cells ) : state _ tuple = tuple ( [ tf. contrib. rnn. lstmstatetuple ( state _ vector, state _ vector ) for _ in cells. _ cells ] ) return state _ tuple | [
-0.9706989526748657,
0.4417644143104553,
0.42280471324920654,
0.23225483298301697,
0.008319797925651073,
-0.7731578350067139,
-0.7365583181381226,
0.13805988430976868,
-0.8594693541526794,
0.1544022113084793,
-0.7802731990814209,
-0.7604767680168152,
-0.09409791231155396,
-0.16904765367507... |
def create _ or _ update _ token ( clusters, args, _, action ) : guard _ no _ cluster ( clusters ) logging. debug ('args : % s'% args ) token _ name _ from _ args = args. pop ('token ', none ) json _ file = args. pop ('json ', none ) if json _ file : if len ( args ) > 0 : raise exception ('you cannot specify both a tok... | [
-0.5053298473358154,
0.24785691499710083,
0.8103951215744019,
-0.006743224337697029,
0.9642695784568787,
-0.2167486697435379,
0.13691124320030212,
-0.18947020173072815,
-0.9230279922485352,
0.3435055911540985,
-0.37197449803352356,
0.39022281765937805,
-0.10897466540336609,
-0.133699029684... |
def build _ dataset ( self ) : return | [
-0.9032471776008606,
-1.0593971014022827,
-0.04686049371957779,
-0.025864791125059128,
-0.08509983122348785,
0.7148357629776001,
0.14415189623832703,
0.8057451248168945,
0.10666005313396454,
-1.9323580265045166,
0.4851512908935547,
0.8319042325019836,
-0.39709702134132385,
-0.5782754421234... |
def get _ feature _ importance _ dict ( self, top _ k = none ) : names = self. get _ ranked _ global _ names ( top _ k = top _ k ) values = self. get _ ranked _ global _ values ( top _ k = top _ k ) return dict ( zip ( names, values ) ) | [
-0.6431466341018677,
0.004955686628818512,
0.5510965585708618,
0.036650147289037704,
-0.4909828305244446,
0.2400873452425003,
0.4988994598388672,
0.5935037732124329,
-1.147172451019287,
0.09213849157094955,
-1.4981560707092285,
0.43416982889175415,
-0.19848701357841492,
0.9964340329170227,... |
def io _ cb ( self, watcher, revents ) : try : while true : try : sock, address = self. sock. accept ( ) except socket. error as err : if err. args [ 0 ] in nonblocking : break else : raise else : self. conns [ address ] = memcachedconnection ( sock, address, self. loop, self. stats, self. cache ) except exception : # ... | [
0.13423582911491394,
0.24737180769443512,
0.8102627992630005,
-0.150888130068779,
0.037371113896369934,
-0.009456952102482319,
0.4360431730747223,
-0.28563690185546875,
-0.4382933974266052,
0.1987157166004181,
0.22741131484508514,
0.05072948709130287,
-0.8259485960006714,
0.134216040372848... |
def add _ component _ to _ deviceset ( self, cpt, lib, deviceset ) : if cpt. attributes. get ('eaglexml _ type ','logical') = ='physical': self. add _ physical _ component _ to _ deviceset ( cpt, lib, deviceset ) else : self. add _ logical _ component _ to _ deviceset ( cpt, lib, deviceset ) self. cpt2lib [ cpt. name ]... | [
-0.7285112738609314,
-1.0131276845932007,
0.280764639377594,
-0.9804631471633911,
0.4085303246974945,
0.6053102016448975,
-0.47986385226249695,
-0.2238006591796875,
0.21319274604320526,
-0.48224419355392456,
0.7520604133605957,
0.030287129804491997,
0.23286183178424835,
0.22966277599334717... |
def get _ pattern ( self ) : dic = { } args = self. args da _ types = [ ] pattern _ file = args. pattern _ dir if args. task _ id = = 6 : pattern _ file. replace ('pattern ','pattern _ 6') with open ( pattern _ file ) as f : lines = f. readlines ( ) for line in lines : line = str. lower ( line ) line = line. replace ('... | [
-0.18496519327163696,
0.17510616779327393,
0.6270872354507446,
-0.5750439167022705,
0.3387874960899353,
-0.06414395570755005,
1.0333685874938965,
0.8667367100715637,
-0.6967512965202332,
0.24985677003860474,
-0.3140694200992584,
0.1906336098909378,
0.9805136322975159,
0.7500380277633667,
... |
def test _ cancel _ booking _ from _ shopping _ basket _ with _ booking _ voucher _ code ( self ) : event = baker. make _ recipe ('booking. future _ ev') booking = baker. make _ recipe ('booking. booking ', event = event, user = self. user, paid = true ) self. assertequal ( booking. objects. all ( ). count ( ), 1 ) sel... | [
0.2238561362028122,
0.948883056640625,
0.5938645005226135,
1.8871804475784302,
-0.1530897170305252,
0.6658234596252441,
-0.07714421302080154,
1.230651617050171,
0.3559683561325073,
0.38811618089675903,
-0.06535883247852325,
-0.46128764748573303,
0.28117284178733826,
1.1622295379638672,
1... |
async def async _ setup _ entry ( hass, config _ entry, async _ add _ entities ) : config = config _ entry. data name = config. get ( conf _ name ) max _ events = config. get ( conf _ max _ events ) ical _ events = hass. data [ domain ] [ name ] await ical _ events. update ( ) if ical _ events. calendar is none : _ log... | [
0.06553767621517181,
0.6407510042190552,
0.5063387751579285,
-0.5669654011726379,
0.6037635803222656,
0.11086361855268478,
-0.3383784890174866,
0.025851424783468246,
0.5136890411376953,
1.1936050653457642,
0.09759004414081573,
-0.6072931885719299,
-0.0023561997804790735,
-0.111237883567810... |
def _ build _ train _ op ( self ) : target _ distribution = tf. stop _ gradient ( self. _ build _ target _ distribution ( ) ) # size of indices : batch _ size x 1. indices = tf. range ( tf. shape ( self. _ replay _ net _ outputs. logits ) [ 0 ] ) [ :, none ] # size of reshaped _ actions : batch _ size x 2. reshaped _ a... | [
-0.32689154148101807,
-0.542283833026886,
0.6147897243499756,
-0.4266410171985626,
0.03188750520348549,
-1.2526922225952148,
0.13974764943122864,
0.4430980682373047,
0.48934701085090637,
0.5504885911941528,
-0.1906372606754303,
0.5530454516410828,
0.7823873162269592,
-1.0375056266784668,
... |
def is _ premier ( x ) : for i in range ( x ) : for j in range ( x ) : if i * j = = x : return false return true | [
-0.5576044917106628,
0.3847423791885376,
0.6051816940307617,
0.8029192686080933,
-0.7091489434242249,
-0.3258132040500641,
-0.8384522199630737,
-0.09836539626121521,
1.0222933292388916,
-0.026238612830638885,
-1.1506638526916504,
-0.20350413024425507,
-0.3213793933391571,
0.026741035282611... |
def iter _ range _ lists ( self ) : raise dwarferror ( " iterating through two sections is not supported " ) | [
-0.7534396052360535,
-0.8639765381813049,
0.2674489915370941,
0.718487560749054,
0.42713186144828796,
1.1277178525924683,
-0.22353899478912354,
-0.28762087225914,
-0.5944266319274902,
0.37187623977661133,
-0.06488896161317825,
-0.21482300758361816,
0.2576186954975128,
1.4224177598953247,
... |
def _ _ init _ _ ( self ) : self. stats = { " pool " : 0, " container " : 0, " object " : 0, " dkey " : 0, " akey " : 0, " array " : 0, " single _ value " : 0, " user _ value " : 0, " user _ meta " : 0, " total _ meta " : 0, " nvme _ total " : 0, " total " : 0 } | [
-0.008616524748504162,
0.24586284160614014,
0.518024742603302,
-0.312378853559494,
0.7784253358840942,
0.18600355088710785,
0.23217399418354034,
-0.34922081232070923,
0.17159029841423035,
-0.15970206260681152,
-0.38753974437713623,
0.13861754536628723,
0.19142654538154602,
1.02343213558197... |
def _ _ len _ _ ( self ) : return self. len | [
-0.08298175781965256,
-0.7827385663986206,
0.2353430837392807,
-1.617240309715271,
0.5649768710136414,
0.32529404759407043,
0.4866766035556793,
0.6292826533317566,
0.986298143863678,
-0.9256076216697693,
-1.1885340213775635,
-0.2721292972564697,
0.6871619820594788,
-0.5113083124160767,
0... |
def get _ word _ distribution ( content ) : # remove urls content = re. sub ( r'^ https? : \ / \ /. * [ \ r \ n ] * ','', content, flags = re. multiline ) # remove non alphanumeric chars tokenizer = nltk. tokenize. regexptokenizer ( r'\ w +') words = tokenizer. tokenize ( content ) # remove single - character tokens ( ... | [
-0.00974066648632288,
-0.03193175047636032,
0.46537092328071594,
-0.9334556460380554,
-0.40890762209892273,
-0.777950644493103,
0.4087086617946625,
0.3928968608379364,
0.17401108145713806,
-0.045468900352716446,
0.22077366709709167,
-0.7520650029182434,
-0.6025080680847168,
1.2716140747070... |
def get _ port ( ) : aton _ port = os. getenv ( " aton _ port " ) if aton _ port is none : return 9201 else : return int ( aton _ port ) | [
1.1123182773590088,
-0.2645608186721802,
0.38584691286087036,
0.2522745430469513,
0.6104617118835449,
0.003904031589627266,
0.022365855053067207,
0.07024500519037247,
-0.283392995595932,
0.2696554362773895,
0.13350984454154968,
0.29900455474853516,
-0.06199793145060539,
-0.6543833017349243... |
def test _ nfc _ wps _ handover ( dev, apdev ) : ssid = " test - wps - nfc - handover " params = ap _ wps _ params ( ssid ) hapd = hostapd. add _ ap ( apdev [ 0 ], params ) logger. info ( " nfc connection handover " ) req = dev [ 0 ]. request ( " nfc _ get _ handover _ req ndef wps - cr " ). rstrip ( ) if " fail " in r... | [
0.0035211774520576,
0.47234487533569336,
0.714754581451416,
-0.2739861309528351,
0.755412220954895,
0.39084136486053467,
0.2932678163051605,
-0.2014513462781906,
0.20556297898292542,
-0.7283333539962769,
0.5763248205184937,
-0.17889006435871124,
-0.3365511894226074,
0.25862741470336914,
... |
def get _ meeting _ dates ( self, meeting ) : start _ date = none end _ date = none if meeting. get ('bis _ vergaderdatum ','' ). strip ( )! ='' : start _ date = datetime. fromtimestamp ( float ( meeting ['bis _ vergaderdatum'] ) + ( float ( meeting. get ('bis _ starttijduren ','0') or'0') * 3600 ) + ( float ( meeting.... | [
-0.3239225149154663,
-0.6514145135879517,
0.5980338454246521,
-0.21302621066570282,
-0.2987225651741028,
-0.05388657748699188,
-1.2613681554794312,
0.6109002828598022,
-0.13056305050849915,
1.1979308128356934,
0.4170294404029846,
0.755625307559967,
-0.5276116132736206,
0.6836599707603455,
... |
def alterpartytime ( self, year = none, month = none, day = none, hour = none, minute = none ) : self. partytime = datetime ( year = self. positivetime ( " year ", year ), month = self. positivetime ( " month ", month ), day = self. positivetime ( " day ", day ), hour = self. positivetime ( " hour ", hour ), minute = s... | [
-0.378701776266098,
-0.9534875750541687,
0.9951640367507935,
-0.13312426209449768,
-0.3515017032623291,
0.7711880207061768,
-1.781345248222351,
0.8823143243789673,
-0.668490469455719,
0.714098334312439,
-0.5090442895889282,
0.2406240701675415,
-0.5409245491027832,
0.6705219149589539,
-0.... |
def get ( self ) : model = model ( ) data = model. fetchall ( ) return flask. render _ template ('home. html ', data = data ) | [
0.33068326115608215,
0.12383118271827698,
0.31487375497817993,
0.7185832858085632,
-0.1941351443529129,
0.5854013562202454,
-1.2729218006134033,
-0.010795668698847294,
-0.7429860830307007,
0.048949796706438065,
0.17773385345935822,
0.01892070285975933,
0.25936955213546753,
0.08852878212928... |
def _ _ init _ _ ( self, fileobj, bm25k, bm25b ) : self. k = bm25k self. b = bm25b self. invertedlists = { } self. records = { } self. avdl = 0 recordid = 0 self. stopwords = [ ] self. tdmatrix = none self. rowids = { } " " " pass 1 : calculate tf, dl and avdl. " " " for line in fileobj : if recordid not in self. recor... | [
0.34790289402008057,
-0.10819808393716812,
0.8929325938224792,
0.11529934406280518,
-0.3775308132171631,
-0.08326701819896698,
1.0333406925201416,
0.0829118862748146,
-1.356250524520874,
0.5686561465263367,
-0.30351006984710693,
-0.11336556077003479,
-0.5885813236236572,
0.8108609914779663... |
def to _ python ( self, value ) : if value is not none : try : return float ( value ) except ( typeerror, valueerror ) : raise validationerror ( " field must be a float " ) | [
0.21232642233371735,
0.01605062745511532,
0.5885721445083618,
-0.13594157993793488,
0.6084597706794739,
0.3105856776237488,
0.13991931080818176,
-0.32567620277404785,
-0.22785356640815735,
0.060643237084150314,
-0.2766670882701874,
-0.43739214539527893,
-0.4632225036621094,
0.6653571724891... |
def testdeletetaginstanceunknowntag ( self ) : self. store. commit ( ) with login ( u'username ', uuid4 ( ), self. transact ) as session : deferred = self. facade. deletetaginstance ( session, u'username / unknown ', str ( uuid4 ( ) ) ) error = yield self. assertfailure ( deferred, tnonexistenttag ) self. assertequal (... | [
0.09466974437236786,
0.22445283830165863,
0.26519814133644104,
-0.34508803486824036,
0.45244497060775757,
0.12976449728012085,
-0.12832246720790863,
0.13117042183876038,
-0.24183231592178345,
-0.507390558719635,
-0.6553691625595093,
-0.629521369934082,
0.6340523958206177,
0.549424231052398... |
def exchange ( self, exchange ) : self. _ exchange = exchange | [
-0.5292950868606567,
0.2800937294960022,
-0.10308890044689178,
0.19237971305847168,
0.20172655582427979,
1.0019224882125854,
-0.26177364587783813,
1.0898208618164062,
0.14581403136253357,
-0.7529575228691101,
-0.5806683301925659,
-0.27387186884880066,
-0.11664777249097824,
0.73737525939941... |
def annuity ( n, r ) : if r > 0 : return r / ( 1. - 1. / ( 1. + r ) * * n ) else : return 1 / n | [
0.3277811110019684,
-0.4495730400085449,
0.5135949850082397,
0.8577378392219543,
-0.45102864503860474,
0.2824637293815613,
0.09642020612955093,
0.046752192080020905,
0.9303619265556335,
0.7145557403564453,
0.181504026055336,
0.23745635151863098,
-0.21747489273548126,
0.6863664388656616,
... |
def test _ proper _ error _ return ( self ) : resp = self. client. delete ('/ employee / xxxx @ xxxx. com / delete /') self. assertequal ( resp. json ( ), employee _ not _ found _ json ) | [
-0.836135983467102,
-1.0805782079696655,
0.45008912682533264,
-0.09721039235591888,
0.6918999552726746,
1.0210886001586914,
-0.21978239715099335,
-0.006631465628743172,
0.16086575388908386,
0.39502716064453125,
-0.04441044479608536,
0.1821574568748474,
-0.6219329833984375,
-0.6513727903366... |
def target _ team ( self, target _ team ) : self. _ target _ team = target _ team | [
-0.6181989312171936,
-0.27528446912765503,
-0.3939555883407593,
0.4824986755847931,
0.7902740240097046,
0.7097014784812927,
-0.09474057704210281,
0.08661925047636032,
-1.0393404960632324,
-0.24190646409988403,
-0.09641185402870178,
0.3608514070510864,
0.957882821559906,
-0.8183438777923584... |
def _ normalize _ value ( self, value, range ) : normed = 2 * ( value - range [ 0 ] ) / ( range [ 1 ] - range [ 0 ] ) - 1 normed = max ( - 1, normed ) # values lower - 1 clipped normed = min ( 1, normed ) # values bigger 1 clipped return normed | [
-0.737393856048584,
-0.7134807109832764,
0.48149019479751587,
0.6223775148391724,
-1.0840551853179932,
0.29271721839904785,
0.25808289647102356,
-0.6122679710388184,
0.3773898780345917,
0.1939595639705658,
0.41589465737342834,
0.5042307376861572,
-0.29034122824668884,
0.21614937484264374,
... |
def update ( self, realwallrects ) : logging. debug ( " updating player animation... " ) # animate character if self. subframecounter = = animation _ refresh - 1 : # increment imagecounter newimagecount = self. imagecounter + 1 if newimagecount > = len ( self. idle _ anim ) : if self. dyingcounter : newimagecount = sel... | [
-1.0444207191467285,
-1.3297572135925293,
0.9244286417961121,
0.04527411237359047,
-0.8309406638145447,
-0.4525509178638458,
0.9759864807128906,
-0.5225793123245239,
0.12441486865282059,
0.06739776581525803,
-0.3598814606666565,
-0.41835644841194153,
-0.06817270815372467,
0.551608562469482... |
def getcodonsequence ( sequence, frame _ columns, gap _ char = " - ", remove _ stops = true ) : fragments = [ ] nstops, ncodons, naligned = 0, 0, 0 for a, b, c in frame _ columns : codon = sequence [ a ] + sequence [ b ] + sequence [ c ] codon _ is _ aligned = false codon _ is _ ok = true for x in codon : # # a codon w... | [
-0.7565405964851379,
-0.6371225714683533,
0.6657060384750366,
-0.18406587839126587,
-0.09594407677650452,
-0.6343756914138794,
0.5039535760879517,
0.026675652712583542,
0.4338591992855072,
0.7453590631484985,
-0.7211320400238037,
-0.5809361338615417,
0.2330917865037918,
-0.1863305866718292... |
def _ _ init _ _ ( self, recognizer : irecognizer, node : yaml. node ) - > none : self. _ _ recognizer = recognizer self. yaml _ node = node | [
0.5948914289474487,
-0.5548331141471863,
0.38357165455818176,
0.39967986941337585,
0.059321049600839615,
-0.9497246146202087,
-0.22847193479537964,
1.3163710832595825,
-0.3994658887386322,
-0.5529196858406067,
-0.5261549949645996,
1.00076162815094,
0.8538737893104553,
0.8327859044075012,
... |
def getframecolumnsformaster ( mali, master, gap _ char = " - " ) : columns = [ ] sequence = mali [ master ] x = 0 while x < len ( sequence ) : c = 0 codon = [ ] while x < len ( sequence ) and c < 3 : if sequence [ x ]! = gap _ char : # and sequence [ x ] in string. uppercase : codon. append ( x ) c + = 1 x + = 1 if le... | [
-1.2329316139221191,
-0.3072856068611145,
0.5899041891098022,
0.4306560754776001,
-0.9209395051002502,
-1.0153340101242065,
0.337189644575119,
0.6652016043663025,
0.14499545097351074,
0.3814886808395386,
-1.1531561613082886,
0.4240763187408447,
-0.14026078581809998,
-0.05464290827512741,
... |
def message _ total ( ) : return jsonify ( httpx. get ( graphite _ host, params = { " target " : " stats _ counts. bot. messages ", " from " : time _ frames [ request. args. get ( " frame ", " day " ) ], " format " : " json ", " maxdatapoints " : " 300 ", }, ). json ( ) [ 0 ] [ " datapoints " ] ) | [
-0.10633030533790588,
0.7154983878135681,
0.5857323408126831,
-1.1160122156143188,
0.9262536764144897,
-0.4411047697067261,
-0.8019292950630188,
-1.3272607326507568,
-0.5690014362335205,
0.23901720345020294,
0.06494470685720444,
0.7833510637283325,
0.10284706205129623,
-0.15807098150253296... |
def getgraylevelvariancefeaturevalue ( self ) : ivector = self. coefficients ['ivector'] nz = self. coefficients ['nz'] pg = self. coefficients ['pg'] / nz [ :, none ] # divide by nz to get the normalized matrix u _ i = numpy. sum ( pg * ivector [ none, : ], 1, keepdims = true ) glv = numpy. sum ( pg * ( ivector [ none... | [
0.052105534821748734,
-0.016543734818696976,
0.6298367977142334,
0.2042146474123001,
0.4375334680080414,
0.5189688801765442,
0.8240835070610046,
0.11248371750116348,
0.0427640862762928,
0.09359566122293472,
-0.4617043733596802,
1.062259554862976,
-0.8932482600212097,
-0.24915947020053864,
... |
def _ translateall ( self, coordinates ) : if coordinates = = none : return [ ] translated = [ ] for c in coordinates : translated + = [ self. _ translatecoordinates ( c [ 0, 0 ], c [ 0, 1 ] ) ] return translated | [
-0.7639881372451782,
0.4436531662940979,
0.2732042670249939,
0.5042374730110168,
0.5891605615615845,
-0.5875213146209717,
-1.1240376234054565,
0.11841578036546707,
0.7615267038345337,
-0.4048951268196106,
-0.7528995275497437,
-0.6917681694030762,
0.0753549337387085,
0.2538316547870636,
-... |
def testdeletevaluesforquerywithemptyqueryresults ( self ) : securetagapi ( self. user ). create ( [ ( u'username / bar ', u'description') ] ) objectid = uuid4 ( ) # fixme replace this with securetagvalueapi once the index is # integrated values = { objectid : { u'username / bar': 42 } } valuesapi = securetagvalueapi (... | [
-0.022427184507250786,
0.418417364358902,
0.27872133255004883,
-0.2637629806995392,
0.6028217077255249,
0.5693001747131348,
-0.2665720582008362,
-0.5967512726783752,
-0.004066928289830685,
-1.2444835901260376,
-0.2200508713722229,
-0.1558636873960495,
0.19902032613754272,
0.315005928277969... |
def run _ sql _ test ( filename ) : path = join ( test _ folder, " test ", filename ) with open ( path, " r " ) as handle : with io. stringio ( ) as out, io. stringio ( ) as err : sh. psql ( " postgres ", " - - no - psqlrc ", " - - tuples - only ", host = " localhost ", port = " 5432 ", username = " postgres ", quiet =... | [
0.108347587287426,
-0.2549475431442261,
0.7336379885673523,
-0.34790217876434326,
-0.7066528797149658,
0.17542600631713867,
0.18093746900558472,
0.3337995409965515,
-1.1766211986541748,
0.3503907322883606,
0.07983117550611496,
0.6336759328842163,
-0.5624602437019348,
0.00863350834697485,
... |
def summary ( self ) : try : import pandas as pd except importerror : df = dict # pandas is not a core requirement, though it is popular and convenient : print ( " consider installing pandas for a better fit. summary ( ) experience " ) else : df = pd. dataframe return [ df ( { " v _ pen " : _ fit. initial _ v _ pen, " ... | [
-0.7466005682945251,
-0.6303226947784424,
0.5366883277893066,
0.3783257305622101,
0.5420442819595337,
0.027086734771728516,
0.16424109041690826,
-0.9102469682693481,
0.14338092505931854,
0.16757893562316895,
-0.21034370362758636,
0.7539326548576355,
0.026470161974430084,
-0.042883422225713... |
def rotate _ map _ given _ r ( r, height, width ) : def pos _ conversion ( x, y, z ) : # given postech protocol # return my protocol return z, - x, y def inv _ conversion ( x, y, z ) : # given my conversion # convert it to postech system. return - y, z, x # if not original _ file. is _ file ( ) : # step1 spherepoints =... | [
-1.2093685865402222,
-1.0975061655044556,
0.7605214715003967,
0.050459615886211395,
-0.8572075963020325,
0.4118427336215973,
0.46720045804977417,
0.2655140161514282,
0.5325283408164978,
0.1007954403758049,
-0.4808207154273987,
-0.42273572087287903,
-0.3988889753818512,
0.4902311861515045,
... |
def test _ packages ( self ) : self. asserttrue ( self. check _ package _ output ( " node - - version ", " v10. " ) ) self. asserttrue ( self. is _ package _ present ( " npm " ) ) | [
0.15343022346496582,
0.5995995402336121,
0.4387754797935486,
-0.2413337528705597,
1.3410788774490356,
0.49162498116493225,
0.08164721727371216,
0.39012786746025085,
0.11554551124572754,
-0.09642229974269867,
-0.21912969648838043,
-0.02796464040875435,
0.6849192380905151,
0.4344412684440613... |
def _ display _ quizpass ( self, bot : bot, message _ id : int, user _ id : int, quizpass : quizpass, ) - > none : item = quizpass. current _ item text = f " { item. text } \ n \ n " for option in item. options : text + = f " { option. index }. { option. text } \ n " if item. is _ answered : text + = " \ n " if item. i... | [
-0.11887740343809128,
-0.274863600730896,
0.774727463722229,
-0.21447914838790894,
-0.12843185663223267,
0.38501453399658203,
0.5374016165733337,
-0.11188357323408127,
0.4357057213783264,
0.37347978353500366,
0.23455160856246948,
0.3494270443916321,
-0.5529915690422058,
-0.3723639249801636... |
def make _ accept _ key ( sec _ key ) : total _ key = sec _ key + utilities. guid hash _ key = sha1 ( total _ key. encode ( ) ). digest ( ) new _ accept _ key = b64encode ( hash _ key ). decode ( ) return new _ accept _ key | [
0.03754410147666931,
-0.21344968676567078,
0.3844583332538605,
0.1916527897119522,
-0.8898090124130249,
0.7040750980377197,
-0.37439894676208496,
-0.07090838253498077,
-0.579010009765625,
0.9842849969863892,
0.5754331350326538,
0.4287644624710083,
0.1761181801557541,
-0.20271845161914825,
... |
def query _ database ( filter _ dict ) : include = filter _ dict ['operator'] ['include'] exclude = filter _ dict ['operator'] ['exclude'] others = filter _ dict ['operator'] ['others'] wheelchair _ yes = filter _ dict ['wheelchair'] ['yes'] wheelchair _ no = filter _ dict ['wheelchair'] ['no'] wheelchair _ others = fi... | [
-0.4201735258102417,
0.3234473764896393,
0.9617170691490173,
-0.7739413976669312,
-0.7982375621795654,
0.2477191686630249,
-0.4017423093318939,
0.3774024546146393,
-0.5028864741325378,
0.9999849796295166,
0.23434309661388397,
-0.6417807340621948,
-0.32106247544288635,
0.775825023651123,
... |
def all _ close ( goal, actual, tolerance ) : all _ equal = true if type ( goal ) is list : for index in range ( len ( goal ) ) : if abs ( actual [ index ] - goal [ index ] ) > tolerance : return false elif type ( goal ) is geometry _ msgs. msg. posestamped : return all _ close ( goal. pose, actual. pose, tolerance ) e... | [
-0.46623510122299194,
-0.3596336543560028,
0.8343295454978943,
1.1507765054702759,
-1.3266865015029907,
1.0697072744369507,
-0.5104661583900452,
-0.1751440465450287,
-0.4155952036380768,
0.5658541321754456,
0.19218827784061432,
-0.16044791042804718,
-0.4467076361179352,
0.42020630836486816... |
def test _ set _ parameter _ 2 ( self ) : pass | [
-0.8974338173866272,
-0.32087141275405884,
0.2655506134033203,
1.2060407400131226,
0.20342224836349487,
0.5946670770645142,
1.1745585203170776,
-0.29480043053627014,
-0.692396879196167,
-0.027490220963954926,
-0.8679929971694946,
1.1972899436950684,
-0.10559410601854324,
0.6577243804931641... |
def _ _ init _ _ ( self, network _ distribution, known _ distribution ) : if type ( network _ distribution ) is not type ( known _ distribution ) : raise typeerror ( " input distributions must be of same type " ) if isinstance ( network _ distribution, dict ) : if network _ distribution. keys ( )! = known _ distributio... | [
-0.18456345796585083,
-1.0363279581069946,
0.6825006604194641,
-0.14145390689373016,
0.3345598578453064,
0.5021073818206787,
-0.23075099289417267,
0.3340328633785248,
-0.07034391164779663,
0.06866783648729324,
0.27287060022354126,
0.10803183168172836,
0.3535928726196289,
0.7135560512542725... |
def search _ user _ by _ uuid _ str ( uuid _ str : str ) : _ cursor = g. blogyy _ conn. cursor ( ) _ cursor. execute ( " " " select ` username `, ` password _ hash ` from ` user ` where ` uuid ` =? ; " " ", ( uuid _ str, ) ) _ db _ rsp = _ cursor. fetchone ( ) if _ db _ rsp is none : return none return { " username " :... | [
-0.3689896762371063,
-0.4762045443058014,
0.28768691420555115,
-0.4707052707672119,
-0.9253870248794556,
-1.0367587804794312,
-0.4901014268398285,
-0.5018507838249207,
-1.176902174949646,
0.4217302203178406,
-0.5374619960784912,
-0.9380698204040527,
-0.33937761187553406,
-0.633260250091552... |
def create _ net ( self ) - > none : self. wall _ points : set [ point ] = self. get _ wall _ points ( ) self. guards _ points : set [ point ] = self. get _ inner _ points ( ) self. net : set [ point ] = self. wall _ points. union ( self. guards _ points ) | [
0.2472589910030365,
0.015669407323002815,
0.23545342683792114,
0.17060841619968414,
1.8748315572738647,
0.8922125101089478,
0.31692570447921753,
-0.35879138112068176,
-0.8347707986831665,
-0.3621114194393158,
-0.5564996600151062,
-0.2868017852306366,
0.498780220746994,
0.3877233564853668,
... |
def _ _ getstate _ _ ( self ) : d = dict ( self. _ _ dict _ _ ) d [ " client " ] = none # hack to allow dask client to be a class attribute return d | [
-0.6660003662109375,
0.005852836184203625,
0.5772484540939331,
-1.194017767906189,
-0.9552066922187805,
-0.41837120056152344,
0.8881645798683167,
-0.3054674565792084,
-0.1201339066028595,
-1.0636719465255737,
0.0010474539594724774,
0.15258650481700897,
0.7447357177734375,
0.434931457042694... |
def search ( request ) : term = request. get. get ('term ','' ) if not term : raise http404 users = userprofile. objects. filter ( make _ megafilter ( userprofile, term ) ) [ : 15 ] users = [ {'label': str ( user ),'pk': user. user. pk } for user in users ] return httpresponse ( json. dumps ( users ) ) | [
-0.5731528401374817,
0.2181362807750702,
0.5457874536514282,
0.07595022022724152,
-0.49677738547325134,
0.2134542465209961,
-0.029251297935843468,
-0.5071495771408081,
-0.49192965030670166,
0.5446703433990479,
-0.5541961193084717,
-0.15192224085330963,
-0.07948023825883865,
-0.342949360609... |
def test _ create _ new _ raster _ from _ base _ bands ( self, bands _ request ) - > none : extract _ archive ( src = " tests / data / spacenet. zip " ) data = read _ csv ( " tests / tiling / tiling _ segmentation _ binary - multiband _ ci. csv " ) ref _ raster = path ( data [ 0 ] ['tif'] ) out _ raster = ref _ raster.... | [
0.25679782032966614,
-0.7227500677108765,
0.5061919093132019,
0.6860740780830383,
0.49006950855255127,
0.8282099962234497,
0.5611909031867981,
-0.9936734437942505,
-0.15318571031093597,
-0.5185449123382568,
-0.2934674024581909,
0.14303818345069885,
-0.015757465735077858,
0.3640684485435486... |
def get _ group _ followers ( self, group _ id, start, end, logged _ in _ user _ id, access _ token, client _ token, * * kwargs ) : kwargs ['_ return _ http _ data _ only'] = true if kwargs. get ('callback') : return self. get _ group _ followers _ with _ http _ info ( group _ id, start, end, logged _ in _ user _ id, a... | [
-0.6232044696807861,
0.09441343694925308,
0.6994117498397827,
0.9150217175483704,
-0.39698526263237,
0.07832222431898117,
0.1305999457836151,
-1.129483938217163,
-0.3462965488433838,
-0.20446515083312988,
0.015978198498487473,
1.176727533340454,
-0.9004221558570862,
0.44943898916244507,
... |
def z _ score _ vec ( data _ df, window = 14 ) : close = data _ df ['close'] return close. rolling ( window = window, center = false ). apply ( lambda x : ( x [ - 1 ] - x. mean ( ) ) / x. std ( ddof = 1 ) ) | [
-0.8973814845085144,
0.4159958064556122,
0.7038571834564209,
0.23943352699279785,
-0.19336853921413422,
0.4182887375354767,
1.533991813659668,
-0.5041124820709229,
0.03126152604818344,
0.24480114877223969,
0.9603365659713745,
1.0432440042495728,
0.04170948266983032,
-0.35700827836990356,
... |
def makeresponselikelihood ( self, * argv, * * kwargs ) : self. hypers = [ ] | [
0.6194794774055481,
-0.8811514377593994,
0.04402048513293266,
-0.36196327209472656,
0.6333279013633728,
1.042888879776001,
0.541418194770813,
-0.24095262587070465,
0.9200231432914734,
-1.126057505607605,
-0.7642447352409363,
0.44179221987724304,
-0.7898873090744019,
-0.7900866270065308,
... |
def get _ hostname ( self, host _ ip : str = " " ) - > str : try : lines = self. run _ fetch _ lines ( self. hostname _ cmd, ssh _ to _ host = host _ ip, find _ route _ to _ host = false ) except ssherror as e : self. log. error ( e ) return host _ ip return lines [ 0 ]. strip ( ) if lines else host _ ip | [
0.4102897346019745,
0.10863181203603745,
0.7266993522644043,
1.1604348421096802,
0.03529448062181473,
0.06038263812661171,
0.003079419257119298,
0.17324385046958923,
-0.7505070567131042,
-0.08621279150247574,
1.381373405456543,
-0.24982057511806488,
-0.3387743830680847,
-0.0510153137147426... |
def find _ familiarity _ fraction ( house _ colour, neighbour _ dict ) : b = neighbour _ dict. get ( blu, emp ) r = neighbour _ dict. get ( red, emp ) if house _ colour = = blu : f = b / ( r + b ) elif house _ colour = = red : f = r / ( r + b ) else : raise valueerror ( f " unknown house _ colour { house _ colour } " )... | [
0.9588725566864014,
0.4423671066761017,
0.46145179867744446,
-0.5675984025001526,
0.5501462817192078,
-0.7026073336601257,
-0.05345059558749199,
0.34556594491004944,
-0.4927169978618622,
0.14944349229335785,
0.7203325629234314,
0.17518271505832672,
0.08205750584602356,
1.6315282583236694,
... |
def _ parsearguments ( ) : arg _ parser = argparse. argumentparser ( description = " generate array of expired histograms'hashes. " ) arg _ parser. add _ argument ( " - - output _ dir ", " - o ", required = true, help = " base directory to for generated files. " ) arg _ parser. add _ argument ( " - - header _ filename ... | [
0.1734282374382019,
-0.08856555074453354,
0.7191357612609863,
-0.21480362117290497,
0.26377540826797485,
0.4211452603340149,
-0.05201192572712898,
0.20287637412548065,
-1.4404716491699219,
0.13693132996559143,
0.5471591949462891,
-0.0008053600904531777,
-0.27621325850486755,
0.735255777835... |
def mark _ path ( self, dest, * * kwargs ) : return self. mark ( self. path _ to ( dest ), * * kwargs ) | [
-0.7607200741767883,
0.005318844225257635,
0.2734028995037079,
0.11354998499155045,
0.1305127739906311,
0.20297838747501373,
0.05933883413672447,
0.3960479199886322,
0.17602850496768951,
0.17077097296714783,
-0.17090106010437012,
0.30565428733825684,
0.29447850584983826,
-0.027194578200578... |
def test _ create _ alumno _ docente ( self ) : self. client. force _ authenticate ( user = self. user _ docente ) data = [ { " dni " : 6, " nombre " : " danilo ", " apellido " : " reitano ", " email " : " danilo @ danilo. com. ar ", " legajo " : 1, " fecha _ nacimiento " : " 08 / 02 / 1998 ", " direccion " : " calle "... | [
-0.014949976466596127,
0.7332091331481934,
0.7395339012145996,
-0.3328556418418884,
-0.016987960785627365,
1.179306983947754,
-0.16597899794578552,
-0.5806363224983215,
-0.12103958427906036,
-0.42709457874298096,
-0.15015274286270142,
0.682975172996521,
0.9636614918708801,
-0.5067971348762... |
def test _ gf _ write _ scenario _ footer _ always _ a _ blank _ line ( disabled _ colors, capsys, mocker ) : # given scenario = mocker. magicmock ( spec = scenario ) # when write _ scenario _ footer ( scenario ) # then stdout = capsys. readouterr ( ). out assert stdout = = " \ n " | [
0.14575056731700897,
-0.18980173766613007,
0.36473971605300903,
0.916565477848053,
1.391620397567749,
0.4676912724971771,
0.4135822057723999,
-0.31636786460876465,
-0.18185962736606598,
-0.5792914628982544,
0.3139907717704773,
-0.6622060537338257,
-0.05241405963897705,
1.2495673894882202,
... |
def encontrar _ repetidos ( jogadas ) : series = 0 inicio _ serie = none for i in range ( len ( jogadas ) - 1 ) : numero = jogadas [ i ] prox _ num = jogadas [ i + 1 ] if numero = = prox _ num : if numero! = inicio _ serie : inicio _ serie = numero series + = 1 if numero! = inicio _ serie : inicio _ serie = numero retu... | [
-0.8094338774681091,
0.2482498437166214,
0.764915406703949,
0.331348180770874,
-0.11340171843767166,
-0.597804605960846,
1.11697256565094,
-0.40040066838264465,
0.031957052648067474,
0.4150078296661377,
-0.34134989976882935,
1.1020972728729248,
-0.7271521687507629,
-0.47197094559669495,
... |
def extract _ ids ( self, node ) : # note that the path if this method is solicited is already tested and is a valid path. # if this method is to be used elsewhere, make sure to test the path via regex or os lib. # drs _ id seems to be the base id. # all the other ids can be built from it. # hence i used it as a buffer... | [
-0.9196254014968872,
-0.2498963326215744,
0.44880035519599915,
-1.2272074222564697,
-0.3739503026008606,
-0.6945199966430664,
-0.1585782766342163,
0.7570080757141113,
0.16334879398345947,
-0.2557380795478821,
-0.6764892935752869,
0.574259340763092,
-0.16040639579296112,
0.06303524225950241... |
def mockhelper ( stage, done _ dict, helper _ queue, _, result _ queue ) : assert stage = = test _ stage while true : if not helper _ queue. empty ( ) : task = helper _ queue. get ( ) if task = = pipeline _ process. poisonpill : # poison pill means shutdown break if task in done _ dict : # verify that it does not get d... | [
-0.21484990417957306,
-0.12709179520606995,
0.32199594378471375,
-0.18822266161441803,
0.6932762265205383,
0.14341148734092712,
1.0985047817230225,
-0.11571656167507172,
0.22627712786197662,
0.3581845760345459,
-0.3639799654483795,
-0.1612192690372467,
0.18291103839874268,
0.42477953433990... |
def test _ random _ sample _ unique _ count ( self ) : hist = metrics. unique _ count. value profiler = profiler ( hist, profiler _ interface = self. sqa _ profiler _ interface, ) res = profiler. compute _ metrics ( ). _ column _ results # as we repeat data, we expect 0 unique counts. # this tests might very rarely, fa... | [
0.6617657542228699,
0.5980550646781921,
0.34150436520576477,
0.004255843348801136,
0.134165957570076,
0.47755753993988037,
1.0390331745147705,
-0.18734051287174225,
0.4888947904109955,
-0.8127970695495605,
-0.35844147205352783,
-0.3313513994216919,
-0.10870114713907242,
-0.2656929194927215... |
def basic _ validation ( self, data ) : remainder = \ [ word for word in data if # has to start with a caps letter or digit or word in name parts ( word [ 0 ]. isupper ( ) or ( len ( data ) > 1 and word [ 0 ]. isdigit ( ) ) or word in self. name _ parts ) and # whole word can't be a digit not word. isdigit ( ) and # mu... | [
-0.489615261554718,
-0.7341499328613281,
0.6985176801681519,
-0.29628273844718933,
-0.7926186919212341,
1.0014581680297852,
-0.7908765077590942,
-0.326951801776886,
0.21912230551242828,
0.31015220284461975,
-0.19492781162261963,
0.09715038537979126,
-1.7316404581069946,
0.9319252967834473,... |
def show _ bug ( bot, trigger, match = none ) : match = match or trigger domain = match. group ( 1 ) if domain not in bot. config. bugzilla. domains : return url ='https : / / % s % sctype = xml & % s'% match. groups ( ) data = web. get ( url, dont _ decode = true ) bug = etree. fromstring ( data ). find ('bug') messag... | [
0.4009096026420593,
-0.6077284812927246,
0.8173515796661377,
0.03447343409061432,
-0.3752360939979553,
-0.5428851842880249,
-0.3027525544166565,
0.7406460642814636,
-0.1301434338092804,
-0.5823440551757812,
-0.46918079257011414,
0.6982671022415161,
-0.05204320326447487,
-0.1244320794939994... |
def compute ( cls, real _ data, synthetic _ data, metadata = none, key _ fields = none, sensitive _ fields = none, model _ kwargs = none ) : key _ fields, sensitive _ fields, metadata = cls. _ validate _ inputs ( real _ data, synthetic _ data, metadata, key _ fields, sensitive _ fields ) for col in key _ fields + sensi... | [
-0.03564746677875519,
0.8242693543434143,
0.9161063432693481,
0.5471537709236145,
0.1372036635875702,
-0.30425041913986206,
-0.05780358240008354,
0.030659571290016174,
-0.7200414538383484,
0.8259981870651245,
-0.05474482849240303,
0.8980958461761475,
-0.17600801587104797,
0.054573655128479... |
def get _ cutter _ shape ( self, field _ frame, cutter _ frame ) : # get the position of the cutter in the field frame ( translation, rotation ) = self. listener. lookuptransform ( field _ frame, cutter _ frame, rospy. time ( 0 ) ) # create a point at the frame location cutter = geo. point ( [ translation [ 0 ], transl... | [
0.006568418350070715,
-0.5066478848457336,
0.4357589781284332,
-0.611792266368866,
0.6455872654914856,
0.32388919591903687,
-0.0881546139717102,
0.021724646911025047,
-0.22709904611110687,
0.3681730628013611,
-0.1045553907752037,
0.4779096841812134,
-0.235964834690094,
-1.0393298864364624,... |
def num _ outputs _ per _ input ( self, x1, x2 ) : return self. num _ tasks | [
-0.31203100085258484,
0.3053206503391266,
0.5131828784942627,
0.7311614751815796,
-0.5165954232215881,
-0.33806416392326355,
0.792688250541687,
-0.41009241342544556,
-1.031851887702942,
0.04623415693640709,
-0.17097726464271545,
-0.16420847177505493,
0.056266602128744125,
-0.37866926193237... |
def callbacks ( self ) : log. debug ( " executing volatility callbacks plugin on " " { 0 } ". format ( self. memdump ) ) self. _ _ config ( ) results = [ ] command = self. plugins [ " callbacks " ] ( self. config ) for ( sym, cb, detail ), mods, mod _ addrs in command. calculate ( ) : module = tasks. find _ module ( mo... | [
-0.2910701632499695,
-0.6634451150894165,
0.38970527052879333,
-0.3043994605541229,
0.43614816665649414,
-0.9303634166717529,
-0.13928601145744324,
-0.02995471842586994,
0.7066283822059631,
0.7142379283905029,
-1.030151128768921,
0.1688457429409027,
-0.1845455765724182,
0.9658958911895752,... |
def test _ service _ list _ route _ annotate ( live _ server, sl _ operator, service ) : # pylint : disable = unused - argument sl _ operator. get ( url _ for ('storage. service _ list _ route ', _ external = true ) ) dt _ rendered ( sl _ operator,'service _ list _ table ', service. comment ) check _ annotate ( sl _ op... | [
-0.09301546216011047,
0.8334527015686035,
0.5087694525718689,
0.4731709063053131,
0.47120150923728943,
-0.012988816946744919,
-0.31415224075317383,
0.07160704582929611,
0.09832916408777237,
-0.13272707164287567,
-0.08028742671012878,
0.30937492847442627,
0.8410590887069702,
1.0631991624832... |
def follow _ group ( self, group _ id, logged _ in _ user _ id, access _ token, client _ token, * * kwargs ) : kwargs ['_ return _ http _ data _ only'] = true if kwargs. get ('callback') : return self. follow _ group _ with _ http _ info ( group _ id, logged _ in _ user _ id, access _ token, client _ token, * * kwargs ... | [
-0.28969627618789673,
0.12398390471935272,
0.5496645569801331,
0.5809440612792969,
-0.8792915344238281,
0.2585923373699188,
-0.04528051242232323,
-1.5262078046798706,
0.2478986382484436,
-0.4400339424610138,
0.3898833990097046,
1.193812370300293,
-0.36687546968460083,
1.1750644445419312,
... |
def _ _ commandtoant ( doc, cmd ) : # does the api support ant task conversion. # else treat it as a cmd if issubclass ( type ( cmd ), anttask ) : return cmd. toanttask ( doc ) else : execnode = doc. createelementns ( " ", " hlm : exec " ) execnode. setattributens ( " ", " executable ", cmd. executable ( ) ) execnode. ... | [
0.33340877294540405,
-0.4871542155742645,
0.5900651216506958,
-0.8319371938705444,
-0.3279997706413269,
0.601100504398346,
-0.4115649163722992,
-0.02512044459581375,
0.1551990509033203,
-0.25504136085510254,
0.9742082357406616,
-0.06256069242954254,
1.108255386352539,
0.7190332412719727,
... |
def disconnect ( ) : if'provider'in login _ session : if login _ session ['provider'] = ='google': gdisconnect ( ) if login _ session ['provider'] = ='facebook': fbdisconnect ( ) del login _ session ['provider'] flash ('you have been successfully logged out.') return redirect ( url _ for ('showrestaurants') ) else : fl... | [
-1.1656864881515503,
0.10945101827383041,
0.46209073066711426,
0.6936193108558655,
-0.23457427322864532,
-0.10043855011463165,
0.35616829991340637,
0.8483880162239075,
0.9985780119895935,
0.1677054464817047,
0.3573513925075531,
0.17625738680362701,
-0.20578737556934357,
-0.3593618869781494... |
def from _ native ( self, data, files ) : sv = data. get ('support _ vectors') tl = data. get ('training _ log') detector = super ( serializers. modelserializer, self ). from _ native ( data, files ) extra _ info = extrainfo ( detector = detector, support _ vectors = sv, training _ log = tl ) if not self. _ errors : re... | [
0.3318188488483429,
-0.5110253691673279,
0.2357098013162613,
-0.09688173234462738,
-0.6788790822029114,
-0.0011835027253255248,
-0.46852102875709534,
0.26076197624206543,
-0.018627280369400978,
-0.6224238276481628,
-0.5890347957611084,
-0.69541996717453,
0.8983832597732544,
-0.089180983603... |
def downloadbypart ( filename, bigstart, bigstop, url, path, port, threadstatus ) : clientsocket = skt. socket ( skt. af _ inet, skt. sock _ stream ) clientsocket. connect ( ( url, port ) ) content = " " head = " " request = ( " get { n } http / 1. 1 \ r \ n " + " host : { s } \ r \ n " + " connection : close \ r \ n "... | [
-0.08383701741695404,
-0.46890518069267273,
0.9495455026626587,
-0.014020470902323723,
0.2675403952598572,
0.7064303159713745,
-0.06475327163934708,
-0.12909100949764252,
-1.250044345855713,
-0.07572226971387863,
-0.2498404085636139,
-0.0031778800766915083,
-0.8902819156646729,
0.077920578... |
def makecoordlist ( self, bbox, numx, numy, mincounts, maxcounts, sigma ) : dx = bbox. getwidth ( ) / float ( numx ) dy = bbox. getheight ( ) / float ( numy ) minx = bbox. getminx ( ) + ( dx / 2. 0 ) miny = bbox. getminy ( ) + ( dy / 2. 0 ) dcounts = ( maxcounts - mincounts ) / ( numx * numy / 2 - 1 ) coordlist = [ ] c... | [
-0.43328940868377686,
0.13396479189395905,
0.6248626112937927,
0.19872228801250458,
0.3399900197982788,
0.29000914096832275,
0.16105523705482483,
0.06416677683591843,
0.20799660682678223,
-0.49124428629875183,
0.31213513016700745,
-0.5189726948738098,
0.12143255025148392,
-0.53206485509872... |
def keywords _ with _ side _ effects ( argv ) : no _ setup _ requires _ arguments = ('- h ','- - help ','- n ','- - dry - run ','- q ','- - quiet ','- v ','- - verbose ','- v ','- - version ','- - author ','- - author - email ','- - classifiers ','- - contact ','- - contact - email ','- - description ','- - egg - base ... | [
-0.32277533411979675,
-0.18857096135616302,
0.857713520526886,
-0.2782443165779114,
-0.12293273210525513,
-0.2744242250919342,
0.14625385403633118,
-0.26008284091949463,
0.21255522966384888,
0.6220011115074158,
-0.5940535068511963,
0.23714154958724976,
-0.07946489006280899,
0.9222537279129... |
def lg ( num ) : print math. log ( num, 2 ) i = 1 while true : # the first i where 2 * * i is greater than num # means i - 1 if 2 * * i > num : return i - 1 i + = 1 | [
-0.6229020357131958,
0.15674132108688354,
0.7631072998046875,
0.029014412313699722,
-0.9398203492164612,
0.2849077880382538,
0.2185860276222229,
-0.4085584580898285,
-0.8609274625778198,
-0.2982191741466522,
-0.39437103271484375,
0.5899301171302795,
-0.4550599753856659,
0.1730278581380844,... |
def delete ( self, collab _ id : str, project _ id : str, expt _ id : str, run _ id : str ) : return self. _ execute _ operation ( operation = " delete ", url = self. _ generate _ single _ url ( collab _ id = collab _ id, project _ id = project _ id, expt _ id = expt _ id, run _ id = run _ id ), payload = none ) | [
0.5627507567405701,
0.21676743030548096,
0.6021583080291748,
1.167955756187439,
0.9158696532249451,
0.5846743583679199,
-0.5919755101203918,
0.21604537963867188,
0.28713923692703247,
0.7184244990348816,
0.6645649075508118,
1.5557302236557007,
-1.7180582284927368,
-0.7368787527084351,
0.6... |
def _ locate _ event ( self, timestamp, category = " airport " ) : # grab all of the events in the db # queries for the valid range of events # pre - condition : there is only one airport event, and no social events on the same day eventdocs = self. eventcollectionref. where ( " starttimestamp ", " < ", timestamp ) \. ... | [
0.1888338327407837,
-0.2505356967449188,
0.655863344669342,
0.00726094376295805,
0.056306980550289154,
-0.157196506857872,
0.15671752393245697,
-1.006462812423706,
0.27220389246940613,
-0.12385670840740204,
1.018015742301941,
-0.8395260572433472,
-0.28720104694366455,
-0.009312750771641731... |
def importrnaannotationfromucsc ( infile, outfile ) : # scrum note - why are we access ing ucsc here # is this a legacy thing? andreas? would it be better to access biomart? pipelineucsc. getrepeatsfromucsc ( dbhandle = connecttoucsc ( ), repclasses = p. aslist ( params [ " ucsc _ rnatypes " ] ), outfile = outfile, rem... | [
0.15769760310649872,
-0.17086832225322723,
0.40903428196907043,
0.29289427399635315,
0.1626291424036026,
-0.30943170189857483,
0.7301480770111084,
0.4843465983867645,
-0.25709980726242065,
0.7654078006744385,
-0.48875924944877625,
0.5962323546409607,
0.04316157102584839,
-0.306788384914398... |
def parsepropertyfiles ( directory, filenames ) : current _ property = { } for filename in filenames : path = os. path. join ( directory, filename ) new _ property = json. load ( open ( path ) ) mergepropertydictionaries ( current _ property, new _ property ) return current _ property | [
-0.4339058995246887,
-1.310807704925537,
0.6480973958969116,
0.0021891810465604067,
-0.1513257771730423,
-0.0691867545247078,
-0.2977677285671234,
0.38419389724731445,
-0.7247631549835205,
0.057805322110652924,
0.38611939549446106,
-0.5771878957748413,
-0.20672431588172913,
-0.366832226514... |
def _ _ persistentvarcalcname ( self, svar ) : assert re. match ( r'^ [ a - za - z0 - 9 _ - ] * $ ', svar ) is not none ; return os. path. join ( self. sscratchpath,'persistent - % s. var'% ( svar, ) ) ; | [
0.0468212254345417,
-0.5553354024887085,
0.6371180415153503,
-0.16362711787223816,
-1.2664668560028076,
0.7109979391098022,
0.5249115228652954,
-0.3911348581314087,
-0.02294999361038208,
0.23825578391551971,
0.3718061149120331,
-0.1805119812488556,
-0.16401591897010803,
-0.2368661761283874... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.