text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def get ( self, request ) : questions = self. get _ queryset ( ). all ( ) return render ( request,'quora / question _ list. html ', {'questions': questions } ) | [
-0.08641199767589569,
-0.5196295976638794,
0.11256792396306992,
-0.22654135525226593,
0.5295248627662659,
0.31255805492401123,
-0.5406202077865601,
0.05471948906779289,
-0.13312868773937225,
-0.17816346883773804,
0.7065776586532593,
-0.5867912173271179,
0.7686375975608826,
0.65420776605606... |
def _ _ init _ _ ( self, * args ) : _ snap. tcs _ swiginit ( self, _ snap. new _ tcs ( * args ) ) | [
-0.3842752277851105,
1.0644593238830566,
0.0632835328578949,
-0.38612645864486694,
0.226764515042305,
-0.38745376467704773,
0.5620052218437195,
-0.5474207997322083,
-0.42476531863212585,
0.06726869940757751,
-0.3869442939758301,
-0.17604830861091614,
-0.02103772945702076,
0.31505286693573,... |
def test _ cannot _ translate _ post _ text _ without _ post _ comment _ language ( self ) : user = make _ user ( ) text ='ik ben en man. jij bent en vrouw.'headers = make _ authentication _ headers _ for _ user ( user ) post = user. create _ public _ post ( text = text ) post. language = none post. save ( ) url = self... | [
0.6037654280662537,
0.4915623366832733,
0.48381122946739197,
0.1535526067018509,
-0.4455169439315796,
0.8527251482009888,
-0.6953604817390442,
-0.3559052050113678,
-0.6303792595863342,
-0.3691580891609192,
-1.3905340433120728,
-0.2800444960594177,
-0.6841309070587158,
-0.05954449623823166,... |
def _ _ getdict _ _ ( self ) : proddict = { } for k, v in self. _ _ dict _ _. iteritems ( ) : if not k. startswith ('_') and k. startswith ('prod') : proddict [ k ] = v return proddict | [
-0.8659346699714661,
-0.7654198408126831,
0.5229605436325073,
-0.7772344350814819,
-1.5164930820465088,
0.40537530183792114,
0.14616990089416504,
-0.8245489001274109,
-0.11034674197435379,
0.1317715346813202,
-0.01416028942912817,
0.7675135731697083,
0.39767080545425415,
0.0618551038205623... |
def myll ( d ) : s = arbplf _ ll ( json. dumps ( d ) ) df = pd. read _ json ( stringio ( s ), orient ='split ', precise _ float = true ) return df | [
0.047493964433670044,
-0.5085163712501526,
0.4382591247558594,
-1.239099144935608,
-0.8252341151237488,
-0.5801805853843689,
-0.2656495273113251,
-0.343559592962265,
0.4360028803348541,
-0.5845102071762085,
0.03786706551909447,
0.378567636013031,
0.21432650089263916,
-1.315277099609375,
... |
def get _ value ( context, obj, field ) : view = context ['view'] value = view. lookup _ field _ value ( context, obj, field ) if type ( value ) = = datetime : return format _ datetime ( value ) return value | [
-0.5179110169410706,
0.23663510382175446,
0.6108167767524719,
0.26292547583580017,
-0.2307906299829483,
-0.34432095289230347,
-0.48442479968070984,
-0.7396239042282104,
0.6479457020759583,
0.19989119470119476,
0.699971616268158,
0.7028592824935913,
0.7979474663734436,
-0.013882914558053017... |
def _ process _ observation ( self, input _ vector, input _ images ) : # todo input _ vector = np. array ( input _ vector ) embs = [ ] for im _ msg in input _ images : im = np. frombuffer ( im _ msg. data, np. uint8 ). reshape ( im _ msg. height, im _ msg. width, 3 ) img = image. fromarray ( im ) input _ shape = ( self... | [
-1.0665748119354248,
-0.633975625038147,
1.0493671894073486,
-0.40122076869010925,
-0.05187198147177696,
-0.013633005321025848,
0.26306599378585815,
-0.027019908651709557,
-0.046101946383714676,
1.1008567810058594,
0.6856492161750793,
0.0010381639003753662,
0.14160406589508057,
1.019106388... |
def incident _ action _ type _ id ( self, incident _ action _ type _ id ) : self. _ incident _ action _ type _ id = incident _ action _ type _ id | [
0.06891884654760361,
-1.1174834966659546,
-0.25286412239074707,
1.537853717803955,
0.8771205544471741,
0.45890116691589355,
1.005279302597046,
-0.4800446033477783,
-0.17347458004951477,
0.23233799636363983,
-0.12446777522563934,
0.7341508865356445,
-0.3236698806285858,
-0.2096194475889206,... |
def swap ( self, * args ) : return _ snap. tcha _ swap ( self, * args ) | [
-1.7704322338104248,
0.6888177394866943,
0.39867866039276123,
-0.13879647850990295,
0.6175640821456909,
0.5488966703414917,
1.035430908203125,
0.5047842264175415,
-0.8789681792259216,
-0.25769051909446716,
-0.43003562092781067,
-0.8430162072181702,
-0.216960608959198,
0.09750808030366898,
... |
def compute _ distance _ based _ attention _ weights ( distances, senders _ mask ) : distance _ mask = distances. bool ( ) negative _ infinity _ values = torch. full _ like ( distances, fill _ value = float ('- inf') ) distances = 1 / ( distances + 1e - 7 ) distances = torch. where ( senders _ mask. bool ( ), distances... | [
0.14288224279880524,
-0.45675480365753174,
0.6852974891662598,
0.662636935710907,
-0.5716124773025513,
-0.21077707409858704,
0.38994818925857544,
0.4137948751449585,
-0.23977665603160858,
0.9502236247062683,
0.785455048084259,
0.7577338218688965,
0.5720006227493286,
0.37993040680885315,
... |
def tstr _ putfextifempty ( * args ) : return _ snap. tstr _ putfextifempty ( * args ) | [
-0.1662062257528305,
0.6126155257225037,
0.4934485852718353,
-0.7109183669090271,
0.8199498653411865,
-0.4459151029586792,
-0.017852606251835823,
-0.6335794925689697,
-1.7087973356246948,
0.1667448729276657,
-0.8643002510070801,
-0.6245694160461426,
-0.4482777416706085,
0.03804225474596023... |
def fltattrvalueei ( self, * args ) : return _ snap. tneanet _ fltattrvalueei ( self, * args ) | [
-0.44512027502059937,
0.7191899418830872,
0.016717948019504547,
0.12059826403856277,
1.0859559774398804,
0.19372490048408508,
0.6589158177375793,
-0.26141369342803955,
-1.624268651008606,
-0.40574613213539124,
-0.1787293553352356,
-0.4512183964252472,
0.7040402293205261,
0.9014695286750793... |
def set _ qc _ flag ( lims, process _ id, cutoff = 10 ) : process = process ( lims, id = process _ id ) artifacts = process. result _ files ( ) concentration _ range = map ( float, re. findall ('[ \ d \. ] + ', process. udf ['concentratiebereik ( ng / ul )'] ) ) samples _ measurements = { } for artifact in artifacts : ... | [
0.10096462070941925,
-0.08816532790660858,
0.5491352677345276,
-0.7242646217346191,
-0.19571851193904877,
1.0411009788513184,
0.7190142273902893,
-0.5241391658782959,
-0.43409278988838196,
0.3009682893753052,
0.24825067818164825,
-0.09567733108997345,
0.03787633776664734,
-0.03169222176074... |
def _ _ init _ _ ( _ _ self _ _, *, role : pulumi. input [ str ], token _ id : pulumi. input [ str ] ) : pulumi. set ( _ _ self _ _, " role ", role ) pulumi. set ( _ _ self _ _, " token _ id ", token _ id ) | [
0.5409793257713318,
0.14806538820266724,
0.5108972787857056,
-0.9301958084106445,
0.9598668217658997,
0.09930536895990372,
-1.164763331413269,
0.553926944732666,
0.22462403774261475,
-0.3346879482269287,
-0.9394456744194031,
1.2810627222061157,
1.1145583391189575,
-0.812561571598053,
-0.... |
def iou ( a, b, criterion = " union " ) : x1 = np. maximum ( a [ 0 ], b [ 0 ] ) y1 = np. maximum ( a [ 1 ], b [ 1 ] ) x2 = np. minimum ( a [ 2 ], b [ 2 ] ) y2 = np. minimum ( a [ 3 ], b [ 3 ] ) w = np. maximum ( 0., x2 - x1 ) h = np. maximum ( 0., y2 - y1 ) inter = w * h aarea = ( a [ 2 ] - a [ 0 ] ) * ( a [ 3 ] - a [ ... | [
0.041890840977430344,
-0.17023278772830963,
1.0178791284561157,
-0.1338435262441635,
-0.14903222024440765,
-0.0430908128619194,
0.6560338735580444,
0.8475412130355835,
0.031833287328481674,
0.19785109162330627,
0.8290998339653015,
0.8750630617141724,
-0.20980499684810638,
-0.64114731550216... |
def recorddates ( self, colname, printwarnings = true ) : self. dates = self. data [ colname ]. unique ( ). tolist ( ) self. dates. sort ( ) if printwarnings : print ( " database dates setup done " ) | [
-0.16033437848091125,
1.2244083881378174,
0.3552890121936798,
0.0007511316798627377,
0.14798906445503235,
0.3923911452293396,
-0.039654672145843506,
-0.1684914380311966,
0.017596721649169922,
0.5070663690567017,
-0.5191787481307983,
0.9327726364135742,
-0.25337347388267517,
-0.013249314390... |
def resource _ path ( relative _ path ) : try : # pyinstaller creates a temp folder and stores path in _ meipass base _ path = sys. _ meipass except exception : base _ path = os. path. abspath ( ". " ) return os. path. join ( base _ path, relative _ path ) | [
0.3470495641231537,
-1.3478693962097168,
0.5122092366218567,
0.9498276114463806,
-0.6041337251663208,
0.619520902633667,
0.9208300113677979,
-0.7598081231117249,
0.3549340069293976,
-0.049489933997392654,
0.8164731860160828,
-1.690800666809082,
-0.720617413520813,
0.11805550009012222,
0.... |
def _ isl _ fru ( rule, obj _ l, t _ obj ) : global _ alert _ tbl _ d for switch _ obj in obj _ l : proj _ obj = switch _ obj. r _ project _ obj ( ) isl _ map = switch _ obj. c _ trunk _ map ( ) for k in isl _ map. keys ( ) : switch _ pair = isl _ map. get ( k ) if _ amp _ in _ switch _ pair ( switch _ pair ) : continu... | [
0.08775454759597778,
-0.3172283172607422,
0.703087329864502,
-0.1882634311914444,
0.2566058337688446,
-0.19359059631824493,
0.8615654110908508,
0.47518861293792725,
-0.5060682892799377,
0.4252285659313202,
0.2709183394908905,
0.17587928473949432,
0.10616029798984528,
0.19682496786117554,
... |
def dump ( source, destination ) : if isinstance ( destination, basestring ) : with open ( destination, " w " ) as outf : dump ( source, outf ) elif hasattr ( destination, " fileno " ) : yaml. dump ( source, destination, encoding = " utf - 8 ", default _ flow _ style = false, canonical = false, dumper = _ yamlishdumper... | [
-0.13565535843372345,
0.2256428599357605,
0.5837103128433228,
0.14435985684394836,
-0.7406338453292847,
-0.06245357170701027,
0.3936539888381958,
0.7410413026809692,
-0.09712396562099457,
0.07101133465766907,
-0.036163270473480225,
0.5079563856124878,
1.464362621307373,
0.7902541160583496,... |
def path _ exists ( self, path ) : if ( self. pathtype. get ( ) in ( 0, 2 ) and not os. path. isfile ( path ) ) or \ ( self. pathtype. get ( ) = = 1 and not os. path. isdir ( path ) ) : msg = " the path : \ n { 0 } \ ndoesn't exists ". format ( self. currentpath ) messagebox. showerror ( " path not found ", message = m... | [
-0.9150062799453735,
-0.2464519441127777,
0.596172034740448,
0.23073849081993103,
0.4565863609313965,
1.3598698377609253,
0.6893560886383057,
0.05253538489341736,
-0.4628048539161682,
-0.14345067739486694,
0.9878365397453308,
-0.3213628828525543,
-1.0240482091903687,
1.046282172203064,
-... |
def otc _ performance _ variables _ overall _ stats ( emp, dropratelist, asalist, average _ drop1, average _ drop2, average _ drop3, average _ drop4, avg _ response _ time1 _ 1, avg _ response _ time2 _ 2, avg _ response _ time3 _ 3, avg _ response _ time4 _ 4 ) : if emp = = 1 : dropratelist. append ( average _ drop1 /... | [
-0.6762546300888062,
-0.16728712618350983,
0.7103046774864197,
-0.7868639826774597,
0.3279537856578827,
0.23600457608699799,
0.593235433101654,
-0.9589119553565979,
-0.07375112175941467,
1.5732477903366089,
0.21250274777412415,
0.3607514202594757,
-0.5660336017608643,
0.7142783999443054,
... |
def it _ is _ callable ( self ) : import da. python _ source assert callable ( da. python _ source. gen _ top _ level _ class _ names ) | [
-1.122133493423462,
0.7195180654525757,
0.33792370557785034,
0.45323246717453003,
0.762700080871582,
1.032392144203186,
0.7632170915603638,
-0.335388720035553,
0.41368740797042847,
-0.8929454684257507,
-0.6901645064353943,
-0.11188413947820663,
0.9056274890899658,
0.6434675455093384,
-0.... |
def _ read _ json _ econ _ assump _ text ( text _ string ) : # pylint : disable = too - many - locals # strip out / / - comments without changing line numbers json _ str = re. sub ('/ /. * ','', text _ string ) # convert json text into a python dictionary try : raw _ dict = json. loads ( json _ str ) except valueerror ... | [
-0.9283549189567566,
-0.5067264437675476,
0.9598498940467834,
-1.1393626928329468,
-0.761430561542511,
-0.12517192959785461,
0.376803994178772,
-0.20343296229839325,
-0.9940425753593445,
1.8711224794387817,
0.2787427604198456,
0.38574373722076416,
0.921789288520813,
0.14872708916664124,
... |
def any _ int ( self, e, * * kwargs ) : ans = self. eval ( e, 1, * * kwargs ) if len ( ans ) > 0 : return ans [ 0 ] else : raise simunsaterror ( " not satisfiable : % s " % e. shallow _ repr ( ) ) | [
-0.5290399193763733,
0.5974208116531372,
0.48561355471611023,
-0.17873913049697876,
-0.018219582736492157,
-0.1384069174528122,
-0.2898041009902954,
0.22226470708847046,
0.16767993569374084,
-0.23370879888534546,
0.19862698018550873,
-0.40159520506858826,
-1.07845938205719,
0.1394866257905... |
def _ _ init _ _ ( self, project = 0 ) : super ( ). _ _ init _ _ ( project ) | [
0.01654810644686222,
0.916147768497467,
0.4231716990470886,
1.126913070678711,
-0.13499774038791656,
0.7230738401412964,
0.1474061906337738,
0.6833051443099976,
0.13832546770572662,
-0.4711984097957611,
-0.07497570663690567,
-0.47757965326309204,
-0.5581973791122437,
0.8373841643333435,
... |
def _ triangles ( self, key = none ) : if key is none : return self. _ self _ triangles if type ( key ) is triangle : # if key is triangle add it to own triangles self. _ self _ triangles. append ( key ) return true # if key is iterable try adding elements as triangles key _ len = none try : key _ len = len ( key ) exc... | [
-1.1679155826568604,
1.0001882314682007,
0.6846073269844055,
-0.4992320239543915,
-0.27173128724098206,
0.5745605826377869,
0.6427599787712097,
-0.29215478897094727,
0.4729400873184204,
0.7115872502326965,
-0.010310877114534378,
-0.4949069023132324,
-0.5416094064712524,
0.15716983377933502... |
def _ simulate _ lc ( seed = 34789, return _ sim = false, dolag = false ) : # input # n = sim _ input ['n'] dt = sim _ input ['dt'] mean = sim _ input ['mean'] psdpar = sim _ input ['psdpar'] norm = sim _ input ['norm'] gnoise = sim _ input ['gnoise'] seglen = sim _ input ['seglen'] sim = az. simlc ( seed = seed ) sim.... | [
0.40100157260894775,
0.5264605283737183,
0.8442115783691406,
-1.232697606086731,
0.17528614401817322,
0.32391005754470825,
-0.11265886574983597,
-0.31674322485923767,
0.26456308364868164,
0.7693615555763245,
0.025800233706831932,
-0.6878169775009155,
-0.17017614841461182,
-0.55956959724426... |
def get _ new _ stocks ( form1, form2 ) : new _ stocks = form1. common _ stocks. index - form2. common _ stocks. index # apply a pandas filter on the index return form1. data _ frame. ix [ new _ stocks ] | [
-0.7552358508110046,
-0.42452168464660645,
0.6723253726959229,
-0.04407166317105293,
0.6342332363128662,
0.2582009434700012,
-0.16216471791267395,
-0.6625465750694275,
-0.5018128156661987,
-0.37669649720191956,
0.18857161700725555,
1.1257450580596924,
0.03962753713130951,
-0.25557178258895... |
def add _ unet _ down ( self, branch = 0, depth = 4, width = 2, filters = 32, max _ filters = 128, summary = true, summary _ activation = true, name ='gray') : if not isinstance ( width, list ) : width = [ width for _ in range ( depth ) ] if not isinstance ( filters, list ) : filters = [ min ( filters * 2 * * i, max _ ... | [
-0.8242443203926086,
0.32377052307128906,
1.2389705181121826,
-0.16432620584964752,
0.38970062136650085,
0.1881767213344574,
0.686086893081665,
-0.4355390667915344,
0.3453661799430847,
-0.0419379360973835,
-0.07405611127614975,
0.20714041590690613,
-0.8528069257736206,
0.5083423256874084,
... |
def begni ( self, * args ) : return _ snap. tneanetmp _ begni ( self, * args ) | [
0.7447424530982971,
-0.10991639643907547,
0.22528845071792603,
0.5530451536178589,
1.7835845947265625,
-0.4972238540649414,
-0.4983496367931366,
-0.07727869600057602,
-0.6136770844459534,
0.19759733974933624,
-0.4457719624042511,
-1.2645390033721924,
-0.4835506081581116,
0.5992821455001831... |
def set _ light _ prior _ model _ assertions ( self, bulge _ prior _ model = none, disk _ prior _ model = none, envelope _ prior _ model = none, assert _ bulge _ sersic _ above _ disk = true, assert _ chameleon _ core _ radius _ 0 _ above _ core _ radius _ 1 = true, ) : if assert _ bulge _ sersic _ above _ disk : self.... | [
-0.5413323044776917,
-0.4476562440395355,
0.915420413017273,
0.418607234954834,
1.1100128889083862,
0.6690234541893005,
0.8197839260101318,
-0.5430062413215637,
-0.18280859291553497,
-0.5718329548835754,
-0.41571319103240967,
0.674568235874176,
-0.9601787328720093,
1.1887239217758179,
-0... |
def test _ initial ( self ) : field = omnitimefield. _ meta. get _ field ('initial _ data') self. assertisinstance ( field, models. timefield ) self. asserttrue ( field. blank ) self. asserttrue ( field. null ) | [
0.5320112109184265,
0.4395850896835327,
0.39711540937423706,
-0.23978424072265625,
0.8838599324226379,
0.9837821125984192,
-0.20747770369052887,
0.05097217857837677,
0.5805197358131409,
-0.05408335104584694,
-0.8198044896125793,
-0.13514654338359833,
-0.11217046529054642,
0.516831815242767... |
def is _ server _ owner ( member : discord. member ) : return member. guild. owner = = member | [
0.00764041393995285,
-0.18906013667583466,
0.27222058176994324,
1.5158792734146118,
-0.30681565403938293,
-0.38166192173957825,
-0.614312469959259,
-1.0957499742507935,
0.9595968723297119,
0.04308168962597847,
-0.520211398601532,
1.5929185152053833,
-0.8564271330833435,
-0.0204051230102777... |
def addfltattrn ( self, * args ) : return _ snap. tneanet _ addfltattrn ( self, * args ) | [
-0.8336388468742371,
0.6480183601379395,
0.45322710275650024,
-0.5457231998443604,
1.0089017152786255,
-0.6493725776672363,
0.30873385071754456,
-0.3337123990058899,
-0.7158899903297424,
-1.1266334056854248,
0.16140848398208618,
-1.3400492668151855,
0.6637625694274902,
1.1655627489089966,
... |
def exit ( self ) : if settings. testing : print ( " exit ftp _ uploadprocess " ) self. backend _ object. connection _ pool. close _ connection ( self. backend _ object, req _ number = self. req _ number, mode = " upload ", thread _ number = self. thread _ number, uid = " put " ) | [
0.01763818971812725,
-0.1665511280298233,
0.49769702553749084,
-0.8305307626724243,
0.3811608850955963,
0.7404478788375854,
0.8726642727851868,
-0.956944465637207,
-1.3049732446670532,
0.0980176255106926,
0.3596953749656677,
0.5934247970581055,
-1.7320530414581299,
0.2005937397480011,
0.... |
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterid2did2 _ superclass _ cast ( * args ) | [
0.5032539963722229,
-1.0051554441452026,
0.46461647748947144,
-0.23763848841190338,
-0.7309922575950623,
0.8691537380218506,
0.24705567955970764,
0.06885810941457748,
-0.06968716531991959,
-0.21606002748012543,
-0.6742355227470398,
0.8675921559333801,
0.1914447396993637,
0.2373120188713073... |
def getsubgraph _ pngraph ( * args ) : return _ snap. getsubgraph _ pngraph ( * args ) | [
-0.4174584150314331,
1.2632168531417847,
0.29761645197868347,
0.9010547399520874,
-0.7738130688667297,
-0.09955865889787674,
0.10471419245004654,
-0.39651811122894287,
-0.34041932225227356,
-0.6379154324531555,
-1.3871933221817017,
1.0657875537872314,
-0.5585424304008484,
-0.58033967018127... |
def grouper ( iterable, n, fillvalue = none ) : # grouper ('abcdefg ', 3,'x') - - > abc def gxx " args = [ iter ( iterable ) ] * n return zip _ longest ( * args, fillvalue = fillvalue ) | [
-0.15687258541584015,
0.44475480914115906,
0.2550693154335022,
-0.24492232501506805,
0.1218399778008461,
-0.05433691665530205,
0.16010215878486633,
-0.6063969135284424,
-0.20063990354537964,
-0.1300925463438034,
-0.34343284368515015,
-0.07205624878406525,
-0.18690893054008484,
1.0430748462... |
def admin _ respond _ to _ auth _ challenge ( userpoolid = none, clientid = none, challengename = none, challengeresponses = none, session = none ) : pass | [
-0.3661523163318634,
-0.6371132135391235,
0.26774701476097107,
0.4496229290962219,
-0.3323206603527069,
-0.17158877849578857,
0.8133575916290283,
-0.24886205792427063,
1.1369729042053223,
0.12677642703056335,
-0.15611164271831512,
1.0799353122711182,
-0.3509804308414459,
-0.446782916784286... |
def get _ step _ relevance _ for _ neuron ( self, feature, layer, neuron, step = 0. 1 ) : if self. relevance _ per _ step [ feature ] is none : self. generate _ relevance _ per _ step ( feature, step ) return list ( map ( lambda x : x [ layer ] [ neuron ], self. relevance _ per _ step [ feature ] ) ) | [
-0.3062911033630371,
-0.10275404155254364,
0.4629082977771759,
1.104874610900879,
1.1500890254974365,
-0.5066795945167542,
-0.38871172070503235,
1.1095510721206665,
-0.39968395233154297,
0.3307168781757355,
-0.5231612324714661,
-1.3076817989349365,
-0.3103562891483307,
1.1513035297393799,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tflt _ swiginit ( self, _ snap. new _ tflt ( * args ) ) | [
-0.06425271928310394,
0.5158893465995789,
-0.10468072444200516,
-0.826312243938446,
0.10913439840078354,
0.1551135927438736,
0.7522959113121033,
0.027505774050951004,
-0.8990146517753601,
0.1425829380750656,
-1.5792649984359741,
-1.1892504692077637,
-0.7347443103790283,
0.9181392788887024,... |
def test _ cant _ retrieve _ blocking _ user _ community _ post ( self ) : user = make _ user ( ) community _ owner = make _ user ( ) community = make _ community ( creator = community _ owner ) user _ to _ block = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) user _ to _ block. join _... | [
0.8188952207565308,
0.6086685061454773,
0.5726456046104431,
1.4298628568649292,
0.35091352462768555,
0.6346806287765503,
-0.06651253253221512,
-1.2518092393875122,
-0.8756880760192871,
-0.7925050258636475,
-0.3396713435649872,
-0.1663227677345276,
-0.5477569103240967,
-0.20839908719062805,... |
def get _ channel _ of _ speaker ( self, speaker, discourse ) : query ='''match ( d : discourse : { corpus _ name } ) < - [ r : speaks _ in ] - ( s : speaker : { corpus _ name } ) where s. name = $ speaker _ name and d. name = $ discourse _ name return r. channel as channel'' '. format ( corpus _ name = self. cypher _ ... | [
0.09626810997724533,
-0.4073549807071686,
0.5074191689491272,
0.07206321507692337,
-0.0196539293974638,
-0.5775575041770935,
0.1717967391014099,
-0.1822834312915802,
-0.5593260526657104,
-0.20492395758628845,
1.2358015775680542,
0.9385918974876404,
-0.26915404200553894,
0.1835823506116867,... |
def cross _ info ( self ) : analysis _ folder = qtwidgets. qfiledialog. getexistingdirectory ( none, " define directory to save analysis " ) crsinfo = crossinfo. crossinfo ( analysis _ folder ) self. pp = singlenuc ( crsinfo. mtx2show, crsinfo. nucs _ dapi ) self. pp. show ( ) | [
0.4938052296638489,
0.30161261558532715,
0.5537220239639282,
-0.1294245719909668,
0.3953027129173279,
0.537646472454071,
1.1182217597961426,
0.6820924878120422,
-0.11979686468839645,
-0.9893019199371338,
-0.04587959870696068,
-0.0016931436257436872,
0.6344653964042664,
0.2653391361236572,
... |
def abort ( http _ status _ code : int, exc : exception | none = none, * * kwargs : typing. any ) - > typing. noreturn : try : flask. abort ( http _ status _ code ) except httpexception as err : err. data = kwargs # type : ignore err. exc = exc # type : ignore raise err | [
0.0181573536247015,
0.3892143964767456,
0.7819370031356812,
0.006295548286288977,
-0.13806870579719543,
0.2548675835132599,
-0.8614969849586487,
-0.29146113991737366,
-0.03289903327822685,
-0.331081748008728,
0.49034491181373596,
0.6731715798377991,
0.14073000848293304,
0.2708132565021515,... |
def test _ list _ decimal _ pattern _ nistxml _ sv _ iv _ list _ decimal _ pattern _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - pattern - 1. xsd ", instance = " nistdata / list / decimal / schema... | [
-0.36609846353530884,
-0.31552398204803467,
0.5734735131263733,
0.5818250179290771,
0.0006659476202912629,
-0.1598992645740509,
0.5053749680519104,
0.4450090527534485,
0.9427701234817505,
0.3575788736343384,
-1.0706045627593994,
-0.49327293038368225,
-0.2145053744316101,
0.5850872993469238... |
def req ( self, moeda : str ) : self. moeda = moeda self. request = requests. get ( f'{ base _ url } / coins / { self. moeda }') if self. request. status _ code = = 404 : raise connectionerror ('api indisponivel no momento') self. context = self. request. json ( ) return self. filter _ req ( ) | [
-1.514975905418396,
0.007189246825873852,
0.6948089003562927,
0.018053270876407623,
0.1658494919538498,
-0.8901911377906799,
-0.6387020349502563,
-0.9928865432739258,
0.10805224627256393,
0.876359760761261,
0.39082154631614685,
1.452894687652588,
-0.3831971287727356,
-0.001380906905978918,... |
def cancel _ game ( self, request ) : game = get _ by _ urlsafe ( request. urlsafe _ game _ key, game ) if game and not game. game _ over : game. key. delete ( ) return stringmessage ( message ='game id key : { } removed '. format ( request. urlsafe _ game _ key ) ) elif game and game. game _ over : raise endpoints. ba... | [
0.1887761503458023,
-0.3377463221549988,
0.7104594707489014,
0.2618691027164459,
-0.7057988047599792,
0.12319891154766083,
-0.45656245946884155,
-0.16895242035388947,
-0.2999862730503082,
2.105041980743408,
0.9212013483047485,
-0.5385156869888306,
-0.8535097241401672,
0.15757966041564941,
... |
def fix ( arg, sloppy = false, quiet = true, reraise = false ) : if isinstance ( arg, gdb. value ) : return arg try : parsed = gdb. parse _ and _ eval ( arg ) return parsed except exception : pass try : arg = pwndbg. gdblib. regs. fix ( arg ) return gdb. parse _ and _ eval ( arg ) except exception as e : if not quiet :... | [
0.36117789149284363,
0.3872441053390503,
0.6644889116287231,
-0.38391196727752686,
-0.15821611881256104,
-0.13447856903076172,
0.16503284871578217,
0.24980232119560242,
0.23367378115653992,
-0.16979584097862244,
-0.34904786944389343,
0.9195319414138794,
-1.2223381996154785,
1.1579180955886... |
def describe _ loadbalancers ( self, address = none, name = none, blb _ id = none, bcc _ id = none, marker = none, max _ keys = none, config = none ) : path = utils. append _ uri ( self. version,'blb') params = { } if address is not none : params [ b'address'] = address if name is not none : params [ b'name'] = name if... | [
0.08543642610311508,
0.17974995076656342,
1.0077704191207886,
0.005263123661279678,
0.5763162970542908,
-0.45037341117858887,
-1.2532544136047363,
0.10205081850290298,
-0.10650438070297241,
0.5778704881668091,
-1.1463966369628906,
1.8112013339996338,
-1.393854022026062,
0.5040621757507324,... |
def _ _ len _ _ ( self ) : return len ( self. _ entries ) | [
0.34231501817703247,
-0.40088754892349243,
0.1856873631477356,
-1.8224167823791504,
0.6312029361724854,
0.209172785282135,
0.2878035008907318,
0.9569990634918213,
0.35061830282211304,
-0.636695384979248,
-1.1055693626403809,
0.1291344165802002,
0.7110788822174072,
0.0363546684384346,
-0.... |
def fnextkeyid ( self, * args ) : return _ snap. tintflth _ fnextkeyid ( self, * args ) | [
-0.36282336711883545,
-0.008257124572992325,
0.08750790357589722,
0.610061526298523,
-1.0917434692382812,
-0.5342161655426025,
-0.7199090123176575,
-0.6605969667434692,
-0.9388954043388367,
-0.4238932132720947,
-0.09798464924097061,
-0.05151482671499252,
-1.2445639371871948,
1.323491930961... |
def nth _ term ( n, increment ) : if n = = 1 : return 1 else : return increment + nth _ term ( n - 1, increment ) | [
-0.4923943281173706,
0.5439563989639282,
0.4511077105998993,
0.6849696636199951,
-0.4520217180252075,
-0.6839725971221924,
-0.31114593148231506,
0.03908367455005646,
0.7904540300369263,
-0.5299987196922302,
-0.2760353684425354,
0.16839908063411713,
-0.12186139822006226,
-0.0861824229359626... |
def setval ( self, * args ) : return _ snap. tfltv _ setval ( self, * args ) | [
-0.6329283714294434,
1.0265921354293823,
0.2520281672477722,
0.3473150134086609,
0.03468149155378342,
-0.22854654490947723,
0.7360374331474304,
1.066804051399231,
-1.2611037492752075,
-0.507498562335968,
-0.10264865309000015,
-0.7492957711219788,
0.3813922107219696,
1.395151138305664,
0.... |
async def banners ( self, ctx, * args ) : # check role and channel allowed _ channels = [ " honors " ] if await checks. channels ( ctx, allowed _ channels ) : pass else : return # get yata's honor dict url = " https : / / yata. alwaysdata. net / awards / bannersid " async with aiohttp. clientsession ( ) as session : as... | [
-0.2526775896549225,
-0.22837233543395996,
0.8514708876609802,
-0.2629134953022003,
0.7243241667747498,
1.0458989143371582,
-0.34756433963775635,
0.4103763997554779,
0.5062817335128784,
0.4137400984764099,
-0.6709824800491333,
1.0266201496124268,
0.10417170822620392,
1.0956846475601196,
... |
def main ( ) : n = 100 palindromo _ cercano ( n ) | [
0.4567188024520874,
-0.10836682468652725,
0.29588189721107483,
1.3381942510604858,
-0.02734449692070484,
-0.2436874806880951,
0.7377231121063232,
0.4559144377708435,
-1.220106840133667,
-0.37953826785087585,
-0.9408685564994812,
0.48433950543403625,
0.5828536152839661,
0.22400401532649994,... |
def send _ data ( v _ vars, v _ files, boundary, sock = none ) : buffer _ len = 0 for ( k, v ) in v _ vars : buffer ='' buffer + ='- - % s \ r \ n'% boundary buffer + ='content - disposition : form - data ; name = " % s " \ r \ n'% k buffer + ='\ r \ n'buffer + = v +'\ r \ n'if sock : sock. send ( buffer ) buffer _ len... | [
0.45530030131340027,
0.051664598286151886,
1.1240979433059692,
-0.5316830277442932,
-0.0903475359082222,
-0.5979893207550049,
-0.38449734449386597,
-0.6530731916427612,
-0.840621292591095,
-0.17478686571121216,
0.6186554431915283,
0.23000256717205048,
-0.5848516821861267,
0.987976431846618... |
def plot _ depth _ vs _ energy ( self, side, depth _ binning = np. arange ( - 595, 596, 10 ), energy _ binning = np. arange ( - 128, 2048, 8 ), energy _ coeff = none, min _ lv _ triggers = 1, max _ lv _ triggers = 1, min _ hv _ triggers = 1, max _ hv _ triggers = 1, * * hist2d _ kwargs ) : channels = slice ( 0, 256 ) i... | [
0.2642726004123688,
0.10389366000890732,
1.0083860158920288,
-0.49926385283470154,
0.14838962256908417,
-0.44572651386260986,
0.4309244155883789,
0.33082836866378784,
-0.3149605691432953,
-0.6171995997428894,
-0.29286372661590576,
0.9778721332550049,
0.11650556325912476,
0.2202074229717254... |
def setlocation ( self, location ) : self. _ location = location | [
-0.7982932329177856,
-0.5521731972694397,
-0.1060955822467804,
-0.30554765462875366,
0.27119845151901245,
0.14753465354442596,
1.209989309310913,
0.9872347712516785,
-0.23980510234832764,
-0.2643595337867737,
-0.9954373836517334,
-0.040666013956069946,
0.3521832227706909,
0.187275171279907... |
def get _ species ( db : session, taxon _ id : list [ int ], species _ name : list [ str ], phage : optional [ bool ], source : optional [ str ] ) : log. debug ( " searching species in the database... " ) query = db. query ( species. taxon _ id ) if taxon _ id : query = query. filter ( species. taxon _ id. in _ ( set (... | [
0.3393734097480774,
0.08322220295667648,
0.3667047619819641,
0.40734463930130005,
0.3027825355529785,
-0.25465962290763855,
-0.9755580425262451,
0.568344235420227,
-0.6759463548660278,
0.5402437448501587,
0.006223002914339304,
0.07751455903053284,
-0.7498360872268677,
0.8858425617218018,
... |
def _ _ init _ _ ( self, init _ time = none, trigger _ on _ stop = false, callback = none ) : if init _ time is none and trigger _ on _ stop is false : raise valueerror ( " { }. init : needs either a time, or " " trigger _ on _ stop set to true. ". format ( self. _ _ class _ _. _ _ name _ _ ) ) self. init _ time = init... | [
0.07442682981491089,
0.054325882345438004,
0.5349998474121094,
0.45806884765625,
-0.2141382247209549,
0.05974101275205612,
-0.47220340371131897,
0.3474626839160919,
-0.06296057999134064,
0.14419564604759216,
-1.0171116590499878,
-0.49564820528030396,
-0.14588354527950287,
1.141296863555908... |
def get _ events ( self, filter, additional _ columns, orderby, limit, offset, referrer ) : raise notimplementederror | [
-0.21045681834220886,
1.0529019832611084,
0.5772612690925598,
0.49998927116394043,
-0.1482541412115097,
-0.1890992969274521,
-0.1378413736820221,
-0.4597315192222595,
-0.11713613569736481,
0.05501144379377365,
0.4559501111507416,
0.7794640064239502,
0.5126850605010986,
-0.29625821113586426... |
def gettriadedges _ pneanet ( * args ) : return _ snap. gettriadedges _ pneanet ( * args ) | [
-0.5928925275802612,
0.6266713738441467,
0.28089451789855957,
0.2303828001022339,
0.6731173396110535,
0.15605832636356354,
-0.7161459922790527,
-0.5918299555778503,
-0.4807201325893402,
-0.5377976894378662,
-0.5364145636558533,
-0.2830371558666229,
-0.6978082060813904,
-0.5272893309593201,... |
def unlock _ router ( self ) : if not self. _ iv : self. get _ iv ( ) print ( " [ + ] start unlocking router... " ) msg = protocol. encode _ request _ unlock ( self. _ serial _ number, self. _ iv ) self. _ write _ characteristic _ and _ wait ( msg ) return self. _ is _ unlocked | [
-1.4793062210083008,
0.2935122549533844,
0.716340184211731,
0.590290904045105,
0.1914619654417038,
-0.5310206413269043,
0.48977914452552795,
-0.40400785207748413,
-0.04867449402809143,
-0.16543595492839813,
-0.5848402380943298,
0.607643723487854,
-1.5026330947875977,
-0.7412050366401672,
... |
def get _ signer _ declined _ url ( self, event, status ) : raise notimplementederror ( ) | [
-0.3043166995048523,
-0.5897341966629028,
0.6159008741378784,
0.9602301716804504,
0.057170502841472626,
0.8192368745803833,
-0.1328931301832199,
0.8934608101844788,
-0.5650700926780701,
-0.6412089467048645,
-0.1871749460697174,
-0.3607260584831238,
0.4266650676727295,
0.9049214124679565,
... |
def test _ get _ team _ uids ( self ) : tid = api. team. create _ team ( base _ team. copy ( ) ) uids = [ ] for i in range ( api. team. max _ team _ users ) : test _ user = base _ user. copy ( ) test _ user ['username'] + = str ( i ) uids. append ( api. user. create _ user _ request ( test _ user ) ) team _ uids = api.... | [
0.019507531076669693,
0.3078201413154602,
0.2962673008441925,
0.5291593074798584,
1.0225746631622314,
0.7869892120361328,
-0.2673463523387909,
-0.12136533111333847,
-0.4028762876987457,
-0.656129002571106,
0.0857006311416626,
0.3583107888698578,
-0.12198448181152344,
-0.3786705732345581,
... |
def quad _ check ( test _ coeff ) : dim = test _ coeff. ndim slices = [ ] slices. append ( slice ( 0, 3 ) ) slice _ direc = 0 for i in range ( dim - 1 ) : slices. append ( 0 ) start = ext _ val3 ( test _ coeff [ slices ], maxx = false ) rest = 0 shape = list ( test _ coeff. shape ) shape [ slice _ direc ] = 1 for spots... | [
0.37684494256973267,
-0.4324280619621277,
0.9631378650665283,
-0.1717578023672104,
-0.5598816275596619,
-0.03717206045985222,
0.5398496389389038,
-0.009555402211844921,
0.7273140549659729,
0.24235863983631134,
-0.8922603726387024,
0.3768742084503174,
-0.5777711272239685,
-0.907770693302154... |
def read _ module ( stream ) : module = ir. module ( ) module. type _ name _ to _ id = { } module. symbol _ name _ to _ id = { } module. inst _ to _ line = { } module. value _ to _ id = { } lexer = lexer ( stream ) try : parse _ translation _ unit ( lexer, module ) verify _ ids _ are _ defined ( module ) return module ... | [
-0.5856448411941528,
-0.5035816431045532,
0.5415940880775452,
-0.6796116828918457,
-0.0573432594537735,
0.29776638746261597,
0.07364081591367722,
-1.019659399986267,
-0.07733963429927826,
-0.04788358882069588,
0.21874254941940308,
0.6584970355033875,
-0.2269285023212433,
0.1958731561899185... |
def new ( * args ) : return _ snap. texcept _ new ( * args ) | [
0.14337915182113647,
-0.8670952320098877,
0.33560535311698914,
-0.22872786223888397,
-0.10558953136205673,
-0.16386009752750397,
-0.3177037239074707,
-0.2675682008266449,
-1.1613532304763794,
0.34010031819343567,
-0.11637768894433975,
-1.253393530845642,
0.8225347399711609,
0.5083369016647... |
def parse _ common _ project _ path ( path : str ) - > dict [ str, str ] : m = re. match ( r " ^ projects / (? p < project >. +? ) $ ", path ) return m. groupdict ( ) if m else { } | [
-0.7674176692962646,
0.5325514674186707,
0.3579208254814148,
0.007936415262520313,
-0.9827669858932495,
0.6245615482330322,
0.8023018836975098,
-0.2669087052345276,
-0.8737412095069885,
0.4421934187412262,
-0.08166023343801498,
-0.6269120573997498,
-0.7399502396583557,
-0.10148714482784271... |
def size _ in _ pixels ( self ) : return ( self. _ xsize, self. _ ysize ) | [
-0.6417216062545776,
-0.05748450383543968,
0.46398037672042847,
-0.9260015487670898,
-0.18450307846069336,
0.1520552784204483,
-0.11086904257535934,
-0.21180184185504913,
0.45159897208213806,
0.3023480176925659,
-0.45014822483062744,
-0.22801817953586578,
-0.4073362350463867,
0.14272333681... |
def _ normalizeglifoutlineformat2 ( element, writer ) : outline = [ ] for subelement in element : tag = subelement. tag if tag = = " contour " : contour = _ normalizeglifcontourformat2 ( subelement ) if contour : outline. append ( contour ) elif tag = = " component " : component = _ normalizeglifcomponentformat2 ( sube... | [
0.3925706446170807,
-0.15827438235282898,
0.6602141261100769,
-0.33237722516059875,
-0.5701138973236084,
-0.3889771103858948,
0.26399773359298706,
0.6303773522377014,
0.584659993648529,
-0.17659741640090942,
-0.7352093458175659,
-0.26523810625076294,
0.8123247623443604,
0.33544623851776123... |
def trigger _ tx ( self, symbol, quantity = none, price = none, side = none, cash _ on _ hand = none, quantity _ on _ hand = none, in _ dollars = false ) : info = none if side not in { " buy ", " sell " } : raise exception ( " side should be'buy'or'sell'" ) if side = ='buy': if cash _ on _ hand is none : cash _ on _ ha... | [
-0.006780543830245733,
0.48318594694137573,
0.791171669960022,
0.846240222454071,
0.49330437183380127,
-0.8662962913513184,
0.397969126701355,
-0.10602343827486038,
-0.1396341621875763,
0.10306514799594879,
-0.8609994649887085,
0.538337230682373,
-0.1737152338027954,
-0.5485712885856628,
... |
def caltheta ( lamda, q ) : return np. arcsin ( q * lamda / ( 4 * np. pi ) ) | [
0.5505678653717041,
-0.09364986419677734,
0.308325856924057,
-1.7212603092193604,
-0.4668862521648407,
0.2714971601963043,
-1.1154171228408813,
-0.5323213934898376,
0.010370340198278427,
0.25175875425338745,
0.12438289076089859,
0.20102423429489136,
0.07670924067497253,
-0.8256739377975464... |
def row _ normalize ( x ) : x _ normed = x / t. sqrt ( t. sum ( x * * 2., axis = 1, keepdims = 1 ) + constfx ( 1e - 8 ) ) return x _ normed | [
0.6458575129508972,
0.21273531019687653,
0.17756497859954834,
0.43120014667510986,
-0.4091201722621918,
-0.5420438647270203,
0.01140039972960949,
0.09277249127626419,
0.8083115220069885,
0.7490988969802856,
0.015226803719997406,
0.14690665900707245,
0.3822122812271118,
-0.2858257591724396,... |
def require ( cls, name, support _ required = " compile - and - run " ) : return cls. _ all _ features [ name ] ( support _ required = support _ required ) | [
-0.4228176772594452,
-0.813933253288269,
0.30750423669815063,
0.5300392508506775,
-0.6703398823738098,
0.24687711894512177,
-0.6904299855232239,
0.3958800733089447,
-0.15918615460395813,
-0.3480341136455536,
-1.3664201498031616,
0.08863244950771332,
-0.32743141055107117,
0.6664407253265381... |
def close ( self ) : try : file = self. file self. file = none if file : file. close ( ) finally : sock = self. sock self. sock = none if sock : sock. close ( ) | [
0.29329460859298706,
-0.7605823874473572,
0.5891198515892029,
-0.7408798933029175,
-0.3488112688064575,
-0.09802534431219101,
0.6947542428970337,
-0.16871818900108337,
-0.44464442133903503,
-0.9495285153388977,
0.88505619764328,
0.850551962852478,
-0.865222156047821,
1.0725449323654175,
... |
def getni ( self, * args ) : return _ snap. pungraph _ getni ( self, * args ) | [
0.2502882778644562,
0.7236950993537903,
0.5285359025001526,
1.4895827770233154,
0.9609720706939697,
-1.4778081178665161,
0.20186752080917358,
-0.26867008209228516,
-0.46784040331840515,
-0.48682883381843567,
-1.501652479171753,
-1.0761231184005737,
-1.1329915523529053,
-0.8192703723907471,... |
def addintattre ( self, * args ) : return _ snap. pneanet _ addintattre ( self, * args ) | [
-0.6685992479324341,
0.6090631484985352,
0.6194712519645691,
-0.11521779745817184,
1.040106177330017,
0.06858193874359131,
-0.1574918031692505,
-1.0105924606323242,
-0.8906288743019104,
-0.7570161819458008,
0.0779855027794838,
-0.983790397644043,
-2.041844367980957,
0.0934501439332962,
-... |
def remember ( self, args ) : trace = ['strace ','- q ','- f ','- etrace = open ','- esignal =! all'] proc = popen ( trace + args, stdout = pipe, stderr = pipe ) out, err = proc. communicate ( ) print ( out, file = sys. stdout ) self. parse _ trace ( err ) | [
1.1357766389846802,
0.5296148657798767,
0.758482813835144,
-0.21122127771377563,
0.9382926821708679,
0.006246501114219427,
0.28208163380622864,
-0.21347522735595703,
-0.363797128200531,
-0.14543983340263367,
-0.04680909216403961,
0.5752401351928711,
-0.11778520792722702,
0.2484758198261261... |
def _ _ init _ _ ( self ) : super ( flattener, self ). _ _ init _ _ ( ) | [
-0.05118982121348381,
0.07763610780239105,
0.4302608072757721,
0.24643145501613617,
-0.11463240534067154,
0.21296581625938416,
0.32636526226997375,
0.774064838886261,
0.12088995426893234,
-1.243456244468689,
-0.9640858769416809,
-0.29900893568992615,
-1.0697540044784546,
1.4372529983520508... |
def _ get _ result ( self, operand : itype ) - > itype : pass | [
-1.6504008769989014,
-0.33499273657798767,
0.2922164797782898,
0.09319645166397095,
-0.00044777989387512207,
-0.30580398440361023,
-0.08915884792804718,
-1.3700039386749268,
0.05032932758331299,
-0.15738698840141296,
-0.311195433139801,
0.6686223149299622,
-0.47440892457962036,
-1.18948745... |
def test _ list _ integer _ max _ length _ 2 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 3. xsd ", instance = " nistdata / list / ... | [
-0.20552928745746613,
-0.06860566884279251,
0.3540143668651581,
0.5434255599975586,
-0.5197079181671143,
0.47140172123908997,
-0.5926223397254944,
0.3567304015159607,
0.9337173700332642,
1.1407320499420166,
-1.30914306640625,
-0.10262306779623032,
-0.21745145320892334,
0.46346235275268555,... |
def getnodeoutdegv _ pungraph ( * args ) : return _ snap. getnodeoutdegv _ pungraph ( * args ) | [
-1.716776728630066,
0.992304265499115,
0.31212809681892395,
0.15412044525146484,
-0.6807461977005005,
-0.45806652307510376,
0.5410507917404175,
0.6300374269485474,
-0.45354577898979187,
-0.4401126801967621,
-0.11528674513101578,
-0.25963905453681946,
-0.13278985023498535,
0.279346138238906... |
def read _ freecells ( ) : return [ 0 ] | [
-0.25793832540512085,
0.14720450341701508,
0.46352481842041016,
0.9092515110969543,
-0.1005459725856781,
-0.3408108055591583,
-0.13428737223148346,
-1.1880691051483154,
0.0851007029414177,
-0.7954636216163635,
0.1465371698141098,
-0.43001100420951843,
-0.38414081931114197,
-0.1125960350036... |
def load _ input ( self, context ) - > pd. dataframe : model _ name = context. asset _ key. path [ - 1 ] return pd. read _ sql ( f " select * from { model _ name } ", con = self. con _ string ) | [
-1.0850871801376343,
0.29294055700302124,
0.42741644382476807,
-0.2886337637901306,
-0.40826722979545593,
-0.1643000692129135,
0.0022545396350324154,
-1.2323341369628906,
-0.8312439322471619,
-0.0721997544169426,
0.6211631298065186,
0.31570619344711304,
-0.5581023693084717,
-1.301813244819... |
def save _ tex ( df, dest ) : with open ( dest,'w') as f : f. write ( df. to _ latex ( ) ) | [
-0.3571327030658722,
-0.3178984820842743,
0.362332820892334,
0.3803441822528839,
0.030830124393105507,
0.0037766145542263985,
-0.642674446105957,
0.40897974371910095,
-1.24142587184906,
0.3678329586982727,
-0.5433310270309448,
-0.2632475197315216,
0.3830154836177826,
-0.9729136824607849,
... |
def new _ site ( name, rgba = red, pos = ( 0, 0, 0 ), size = ( 0. 005, ), * * kwargs ) : kwargs [ " rgba " ] = array _ to _ string ( rgba ) kwargs [ " pos " ] = array _ to _ string ( pos ) kwargs [ " size " ] = array _ to _ string ( size ) kwargs [ " name " ] = name element = et. element ( " site ", attrib = kwargs ) r... | [
-0.32797062397003174,
0.148823082447052,
0.5597060918807983,
-0.4139632284641266,
-0.7584963440895081,
0.1787623167037964,
0.008111223578453064,
-0.5151122808456421,
0.9974734783172607,
0.03356477990746498,
-0.3943207859992981,
-0.06000656634569168,
-0.35165655612945557,
-0.075882852077484... |
def test _ vertical _ interpolation _ vtransform1 ( vertical _ values ) : u _ target _ depth, v _ target _ depth = vertical _ interpolation ( vertical _ values. u, vertical _ values. v, vertical _ values. s _ rho, vertical _ values. mask _ rho, vertical _ values. mask _ u, vertical _ values. mask _ v, vertical _ values... | [
-0.3810596168041229,
-0.28115102648735046,
0.6542477607727051,
0.8460568189620972,
1.5731416940689087,
0.2514839470386505,
0.18896397948265076,
0.23886644840240479,
0.3107473850250244,
-0.06392399966716766,
-0.7131798267364502,
0.89375239610672,
-0.29039350152015686,
-0.05132901668548584,
... |
def addinedge1 ( self, * args ) : return _ snap. pngraphmp _ addinedge1 ( self, * args ) | [
-0.5181213021278381,
0.20673270523548126,
0.5492438077926636,
0.05923120304942131,
1.1341334581375122,
0.8361521363258362,
0.5065780878067017,
-0.7320614457130432,
-0.8787992596626282,
-0.07056276500225067,
-0.013691446743905544,
0.12867124378681183,
-1.9189733266830444,
0.0728035941720008... |
def get _ absolute _ url ( self ) : return reverse _ lazy ('link - detail ', args = [ str ( self. id ) ] ) | [
0.3091910779476166,
-0.20055997371673584,
0.49647337198257446,
-0.3410775661468506,
1.6073440313339233,
0.5352200269699097,
-0.24085505306720734,
0.4071989059448242,
-0.2052205502986908,
-1.1722075939178467,
0.6660664677619934,
1.4170602560043335,
0.18771862983703613,
0.5359201431274414,
... |
def add ( self, * args ) : return _ snap. tfltv _ add ( self, * args ) | [
-1.0040796995162964,
0.3132984936237335,
0.2715058922767639,
-0.2565084993839264,
0.5762417316436768,
-0.15370942652225494,
0.5790930986404419,
1.0987721681594849,
-0.5974385738372803,
-0.9281670451164246,
0.10293599218130112,
-0.5465927124023438,
-0.3051183521747589,
1.7170599699020386,
... |
def dlog _ ncr ( a, b ) : return digamma ( a + 1 ) - digamma ( a - b + 1 ) | [
0.11337387561798096,
1.0580939054489136,
0.33162814378738403,
-0.5335527658462524,
-0.5922231674194336,
-0.5125329494476318,
0.09681468456983566,
-0.2822350859642029,
0.3107320964336395,
0.21437577903270721,
0.1419217884540558,
0.10625028610229492,
0.49496597051620483,
0.2685390114784241,
... |
def _ _ init _ _ ( self, number, name, symbol, mass ) : # # the atomic number of the element self. _ atomic _ number = number # # the name of the element self. _ name = name # # the chemical symbol of the element self. _ symbol = symbol # # the atomic mass of the element self. _ mass = mass # index this element in a gl... | [
0.17912913858890533,
0.1904439479112625,
0.6121894121170044,
0.8610212802886963,
0.16291049122810364,
-0.13015128672122955,
0.5581009387969971,
-0.1428297460079193,
-0.4423014223575592,
-0.4674518406391144,
-0.438781201839447,
0.3879612386226654,
-0.04005229473114014,
0.266471803188324,
... |
def argmin _ v2 ( input, axis = none, output _ type = dtypes. int64, name = none ) : if axis is none : axis = 0 return gen _ math _ ops. arg _ min ( input, axis, name = name, output _ type = output _ type ) | [
-0.40965694189071655,
-0.8715741634368896,
0.38240835070610046,
0.8932183980941772,
-0.8831781148910522,
-0.29238638281822205,
-0.2394440919160843,
-0.9441264867782593,
-0.19501502811908722,
0.41626155376434326,
0.5734367966651917,
1.3476024866104126,
0.011795628815889359,
-0.4920062422752... |
def create _ udp _ listener ( self, blb _ id, listener _ port, backend _ port, scheduler, health _ check _ string, health _ check _ timeout _ in _ second = none, health _ check _ interval = none, unhealthy _ threshold = none, healthy _ threshold = none, client _ token = none, config = none ) : path = utils. append _ ur... | [
-0.1610584259033203,
-0.4373633563518524,
0.991989016532898,
0.030762553215026855,
-0.05061544105410576,
0.0877600833773613,
-0.7237529754638672,
-0.2572382986545563,
-0.4595228433609009,
-0.17839312553405762,
-0.6153088808059692,
0.8230598568916321,
-0.5418499112129211,
-0.427220374345779... |
def _ _ delattr _ _ ( self, name ) : raise attributeerror ( " can't delete attribute " ) | [
0.9574971795082092,
-0.6045230627059937,
0.7016342878341675,
-0.06831277906894684,
-0.8904691338539124,
0.39189568161964417,
0.1918431520462036,
0.5266417264938354,
0.41220515966415405,
0.46287208795547485,
0.4725657105445862,
-0.05801935866475105,
0.35022473335266113,
0.3016933500766754,
... |
def _ _ init _ _ ( self, configuration = none ) : print ( " bowtie2 indexer " ) tool. _ _ init _ _ ( self ) if configuration is none : configuration = { } self. configuration. update ( configuration ) | [
0.46459075808525085,
-0.584116518497467,
0.4480920433998108,
0.24153144657611847,
-0.37074142694473267,
-0.15459148585796356,
0.8819153904914856,
0.368205726146698,
-0.16678951680660248,
-0.0014969424810260534,
-0.990406334400177,
-0.24160899221897125,
-0.5436515212059021,
0.12831977009773... |
def test _ close _ post _ deletes _ post _ comment _ reply _ notifications _ for _ normal _ members ( self ) : community _ post _ creator = make _ user ( ) admin = make _ user ( ) community _ member = make _ user ( ) community _ member _ replier = make _ user ( ) community = make _ community ( admin ) community _ post ... | [
0.4514009356498718,
-0.04048370197415352,
0.8911823034286499,
-0.2692354917526245,
0.17901469767093658,
0.7673114538192749,
0.3012627065181732,
-0.8721063137054443,
-0.41374722123146057,
-0.15529142320156097,
-0.44041168689727783,
-0.09697213768959045,
-1.0079667568206787,
0.08653564006090... |
def getemptygroups ( ) : transforms = cmds. ls ( type ='transform') emptygroups = [ ] for tran in transforms : if cmds. nodetype ( tran ) = ='transform': children = cmds. listrelatives ( tran, children = true ) if children is none : emptygroups. append ( tran ) return emptygroups | [
-0.5504215359687805,
0.4509814977645874,
0.676856279373169,
-0.9791209101676941,
0.12840726971626282,
0.14005804061889648,
0.065890833735466,
-0.6871644854545593,
0.04544876143336296,
-0.7904804944992065,
-0.7506696581840515,
0.6853610277175903,
-0.3873485326766968,
0.6189694404602051,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.