query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns an int64_list from a bool / enum / int / uint.
def Oety(BWXx): return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo", ...
[ "0.68822104", "0.6595804", "0.6461252", "0.6448161", "0.6367609", "0.62926817", "0.6269916", "0.621823", "0.6104528", "0.59533274", "0.5947467", "0.5901199", "0.5863832", "0.5863832", "0.58563983", "0.5844792", "0.58434534", "0.5829844", "0.5801042", "0.5793561", "0.5793561",...
0.5505743
60
Return a `Organization` instance
def wbiw(YKHO) -> 'Organization': return zvVu(connection=YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbiw(YKHO):\n return zvVu(YKHO)", "def wbiw(YKHO):\n return zvVu(YKHO)", "def wbiw(YKHO):\n return zvVu(YKHO)", "def wbiw(YKHO, I4cP):\n return zvVu(YKHO, I4cP)", "def wbiw(YKHO, gZ75):\n return mUrV.Organization(YKHO, gZ75)", "def wbiw(YKHO):\n return YKHO._tower.get_organization_b...
[ "0.8315477", "0.8315477", "0.8315477", "0.7976894", "0.7793998", "0.7259227", "0.72516394", "0.71872085", "0.71642673", "0.7161686", "0.69761336", "0.69627666", "0.68899345", "0.68289363", "0.6578442", "0.6572516", "0.65491563", "0.6535535", "0.6459344", "0.64444417", "0.6421...
0.82481
3
Returns all the articles associated with the ticket id
def mrVf(YKHO, id): geh0 = YKHO._connection.session.get(YKHO._connection.url + 'ticket_articles/by_ticket/%s?expand=true' % id) return YKHO._raise_or_return_json(geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iqGZ(NCls: Session):\n return NCls.query(LJI6).all()", "def mrVf(id):\n mrVf = iqGZ(id)\n return TvZl('article.html', articles=mrVf)", "def iqGZ(YKHO, eUG7: int) -> x1iM[wHLq]:\n mrVf = []\n for rdlD in YKHO._sqlite_connection.execute('SELECT identifier, uri, title, updated, author, content,...
[ "0.70388067", "0.6946893", "0.6903714", "0.6870287", "0.68168986", "0.6596163", "0.6521517", "0.65166676", "0.6463067", "0.64507776", "0.63501775", "0.63451046", "0.6321786", "0.6286639", "0.6283536", "0.62564003", "0.62186486", "0.6185523", "0.6179265", "0.617552", "0.617073...
0.89543366
0
Returns current user information
def RuJL(YKHO): geh0 = YKHO._connection.session.get(YKHO.url + '/me') return YKHO._raise_or_return_json(geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l1bi():\n return c5ow", "def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()", "def VCCg(YKHO):\n geh0 = YKHO.query('user_info')\n return geh0", "def FpOe(YKHO):\n return YKHO._userinfo", "def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()", "def AmPw(YKHO) -> str:\n r...
[ "0.9036465", "0.8510387", "0.8367878", "0.8218789", "0.81929076", "0.7955946", "0.79391986", "0.78689206", "0.7847911", "0.77840966", "0.7756478", "0.77308995", "0.7720596", "0.7685502", "0.76371914", "0.75677663", "0.75651944", "0.7551465", "0.7511643", "0.7473358", "0.74562...
0.0
-1
Create the model for the policy network and value network. The policy network and the value network share the model for feature extraction from the raw state, and then the policy network uses a softmax layer to provide the probablity of taking each action, and the value network uses a linear layer to provide a scalar f...
def fkCJ(YKHO, VjJf, ph8c): with ZylS.name_scope('shared_layers'): gEmA = l6ZH(kdJv, activation='relu')(VjJf) gEmA = l6ZH(kdJv, activation='relu')(gEmA) gEmA = l6ZH(kdJv, activation='relu')(gEmA) gEmA = l6ZH(kdJv, activation='relu')(gEmA) with ZylS.name_scope('policy_network'): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N9DT(YKHO):\n with ZylS.name_scope('policy_network'):\n with ZylS.variable_scope('policy_network'):\n C3ST = ZylS.keras.Sequential(name='policy_network_model')\n C3ST.add(ZylS.keras.layers.Dense(YKHO.neurons_in_each_layer[0], activation=ZylS.nn.relu, input_shape=(1, YKHO.neurons...
[ "0.77478456", "0.6956354", "0.6923989", "0.68631375", "0.6855013", "0.6760476", "0.6747145", "0.6708698", "0.66736734", "0.66466445", "0.6641403", "0.6614496", "0.660575", "0.66047925", "0.65901035", "0.6590041", "0.6586383", "0.6568927", "0.6564847", "0.6538908", "0.6529274"...
0.8128955
0
Creates new bullets based on the pose of the ship.
def ZSQN(YKHO, WJkG, shtX): WFC2 = [] shtX = shtX.getPose(spin_speed=YKHO.spin_speed) shtX.rotate(YKHO.angle) shtX.translate(shtX.direction * YKHO.barrel_length) iBLD = YKHO.speed * YKHO.speed_charge ** WJkG shtX.vel = shtX.direction * iBLD r1VO = YKHO.radius * YKHO.radius_charge ** WJkG ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k1cr(YKHO, X50P, wG7c):\n YKHO.bullets.append(GBVa(X50P, wG7c))", "def Hy9P(tJm0, Vjhr, C7MP, WFC2):\n jbub = GBVa(tJm0, Vjhr, C7MP)\n WFC2.add(jbub)", "def Hy9P(IPsP, Vjhr, C7MP, WFC2):\n if len(WFC2) < IPsP.bullets_allowed:\n jbub = GBVa(IPsP, Vjhr, C7MP)\n WFC2.add(jbub)", "d...
[ "0.69544816", "0.6707333", "0.66962636", "0.6626725", "0.66187334", "0.6476028", "0.6464248", "0.6459162", "0.63522065", "0.6330833", "0.6230763", "0.6144669", "0.6133946", "0.61095226", "0.61085695", "0.61085695", "0.6093104", "0.6072224", "0.6069212", "0.6066278", "0.593340...
0.64819497
5
Add a line at the end of a textfile.
def C_AZ(pmON, vIwR, Ux0P='log.txt'): eHNT = open(Hy7s.path.join(pmON, Ux0P), 'r') Nqlg = eHNT.readlines() eHNT.close() Nqlg.append(vIwR) eHNT = open(Hy7s.path.join(pmON, Ux0P), 'w') eHNT.writelines(Nqlg) eHNT.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c4W9(gIsw, xJpZ):\n with open(gIsw, 'a+') as rVmU:\n rVmU.seek(0)\n nPrm = rVmU.read(100)\n if len(nPrm) > 0:\n rVmU.write('\\n')\n rVmU.write(xJpZ)", "def VmSM(YKHO, nPrm):\n with open(YKHO.file_name, 'a', encoding='utf-8') as YKHO.file:\n YKHO.file.write(...
[ "0.75029063", "0.70421165", "0.6854501", "0.6835794", "0.67678285", "0.66688466", "0.6566253", "0.6556242", "0.6532724", "0.65136564", "0.6512686", "0.65104115", "0.6502265", "0.648011", "0.6469001", "0.6461652", "0.6446379", "0.6444167", "0.64315695", "0.6413467", "0.6406933...
0.0
-1
>>> ContentParser.is_operator(Token("Tj")) True >>> ContentParser.is_operator(Token("T")) True >>> ContentParser.is_operator(Token("'")) True >>> ContentParser.is_operator(Token('"')) True >>> ContentParser.is_operator(Token('1rna')) False
def tpts(YEnM): return isinstance(YEnM, _J2v) and YEnM[0] not in '/01234567890+-.<[('
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GF79(eOtH):\n return eOtH and eOtH.lower() in _J2v.OPERATORS", "def tpts(seET):\n F2LR = ['+', '-', '*', '/']\n return seET in F2LR", "def tpts(Lf_p):\n Zm9E = 1\n if ord(Lf_p) == 42:\n Zm9E = 0\n if ord(Lf_p) == 43:\n Zm9E = 0\n if ord(Lf_p) == 45:\n Zm9E = 0\n ...
[ "0.82157964", "0.7539865", "0.71975183", "0.7141983", "0.7140862", "0.7113701", "0.7052701", "0.69584894", "0.6904501", "0.68237835", "0.67919093", "0.6790943", "0.6534314", "0.65227205", "0.65096015", "0.64667314", "0.6418248", "0.6378003", "0.6355993", "0.6324159", "0.61524...
0.7872963
1
Test retrieving list of ingredients
def j4e1(YKHO): _baS.objects.create(user=YKHO.user, name='Kale') _baS.objects.create(user=YKHO.user, name='Salt') Ylbp = YKHO.client.get(ZrLe) Sh7r = _baS.objects.all().order_by('-name') ZMzz = UCjM(Sh7r, many=True) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(Ylbp.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zIQx(YKHO):\n hWqz.objects.create(user=YKHO.user, name='Kale')\n hWqz.objects.create(user=YKHO.user, name='Carrot')\n Ylbp = YKHO.client.get(zAZy)\n zKHR = hWqz.objects.all().order_by('-name')\n ZMzz = UCjM(zKHR, many=True)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.asse...
[ "0.82645243", "0.81885314", "0.81541115", "0.81417483", "0.8058961", "0.7925233", "0.78987557", "0.7886171", "0.7787524", "0.766352", "0.7366962", "0.733324", "0.73254704", "0.7295081", "0.7261514", "0.72599757", "0.72444016", "0.72348684", "0.71661913", "0.7162538", "0.71521...
0.7816779
8
Test creating invalid ingredient fails
def KoKs(YKHO): pB3N = {'name': ''} Ylbp = YKHO.client.post(ZrLe, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KoKs(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ZrLe, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def KoKs(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ZrLe, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def KoK...
[ "0.83497715", "0.83294654", "0.83002603", "0.8057686", "0.7770113", "0.7435664", "0.7303773", "0.72957057", "0.71857834", "0.71669275", "0.706792", "0.7030051", "0.7009353", "0.6994454", "0.6981994", "0.6976951", "0.6852071", "0.677854", "0.6731926", "0.6722685", "0.6707674",...
0.8274991
3
Test filtering ingredients by those assigned to recipes
def b8t5(YKHO): KZtG = _baS.objects.create(user=YKHO.user, name='Apple') ciPx = _baS.objects.create(user=YKHO.user, name='Turkey') YSCM = LC16.objects.create(user=YKHO.user, title='Apple crumble', time_minutes=5, price=10) YSCM.ingredients.add(KZtG) Ylbp = YKHO.client.get(ZrLe, {'assigned_only': 1})...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XL_F(YKHO):\n pass", "def uq0I(YKHO):\n GTTc = VHaa(YKHO.user, title='Waxy box')\n eowF = VHaa(YKHO.user, title='Waxy noodle beans')\n KZtG = wm3X(YKHO.user, name='box')\n ciPx = wm3X(YKHO.user, name='Wet noodle')\n GTTc.ingredients.add(KZtG)\n eowF.ingredients.add(ciPx)\n gGwe = VHaa...
[ "0.8263003", "0.8135737", "0.81171", "0.803867", "0.7916195", "0.7868197", "0.77629185", "0.7703184", "0.752715", "0.73869157", "0.7193408", "0.7087851", "0.70857686", "0.7013098", "0.70052224", "0.69367725", "0.6921367", "0.69058794", "0.68012005", "0.6800537", "0.67892224",...
0.6727914
23
Get a reference database folder.
def diaC(K6re, saBJ): assert K6re.endswith('.dmnd'), 'Ref DB must be *.dmnd ({})'.format(K6re) if K6re.startswith('s3://'): G9jH.info('Getting reference database from S3: ' + K6re) rVfw = Hy7s.path.join(saBJ, K6re.split('/')[-1]) assert Hy7s.path.exists(rVfw) is False G9jH.info('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uri0():\n return SEGf.db_abs_path", "def ksBd(YKHO):\n pass", "def mh5r():\n return fHZh[Atee]", "def UmpJ(YKHO, xtX7):\n vi2_ = Hy7s.path.join(YKHO.home, YKHO.ibooks_doc_root, xtX7)\n CWem = None\n if not Hy7s.path.exists(YKHO.tmp_dir):\n Hy7s.makedirs(YKHO.tmp_dir)\n for Wjv...
[ "0.71306294", "0.71255016", "0.7014994", "0.68524504", "0.68423957", "0.68068564", "0.6700143", "0.66393566", "0.6377407", "0.63147473", "0.6260071", "0.62549305", "0.6243818", "0.61192405", "0.6108577", "0.60816497", "0.60337764", "0.5973908", "0.596173", "0.5956381", "0.588...
0.6663672
7
Sets the address_id of this Shipper.
def jlUo(YKHO, jlUo): YKHO._address_id = jlUo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DkFr(YKHO, UTX6):\n YKHO._set('shipping', 'pickup_address_id', UTX6.id)", "def Ce3W(YKHO, UTX6):\n pass", "def UTX6(YKHO, UTX6: object):\n YKHO._address = UTX6", "def HSdK(YKHO, I33c):\n YKHO._validator.validate_one('address', iyhn['address'], I33c)\n YKHO._ifAttributes['address'] = I33c",...
[ "0.6885616", "0.68763816", "0.642383", "0.6410101", "0.63712573", "0.6350626", "0.6288974", "0.62302196", "0.62302196", "0.62302196", "0.62302196", "0.62302196", "0.62302196", "0.62302196", "0.62302196", "0.62018466", "0.6198084", "0.619335", "0.6147447", "0.6123823", "0.6116...
0.84413856
1
Sets the shipper_reference of this Shipper.
def r1yl(YKHO, r1yl): YKHO._shipper_reference = r1yl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UFYQ(YKHO, UFYQ):\n YKHO._shipper_department = UFYQ", "def WUJJ(YKHO, WUJJ):\n YKHO._shipping = WUJJ", "def SOtS(YKHO, C7MP: Ship):\n if YKHO._ship:\n YKHO._ship.stop_listening(YKHO.ship_took_damage)\n YKHO._ship = C7MP\n YKHO._ship.take_damage.listen_post(YKHO.ship_took_damage)\n ...
[ "0.67659587", "0.63978875", "0.6155269", "0.5987751", "0.5987751", "0.5761969", "0.5738174", "0.5719372", "0.5710848", "0.5594228", "0.5593013", "0.55777454", "0.54848814", "0.5474146", "0.5418891", "0.53974855", "0.5387044", "0.52798814", "0.5277894", "0.5220785", "0.5220785...
0.8970073
0
Sets the shipper_department of this Shipper.
def UFYQ(YKHO, UFYQ): YKHO._shipper_department = UFYQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X5CZ(YKHO, X5CZ):\n YKHO._department = X5CZ", "def X5CZ(YKHO, X5CZ):\n YKHO._department = X5CZ", "def X5CZ(YKHO, X5CZ: object):\n YKHO._department = X5CZ", "def r1yl(YKHO, r1yl):\n YKHO._shipper_reference = r1yl", "def lNHy(YKHO, lNHy):\n if YKHO.local_vars_configuration.client_side_vali...
[ "0.74628335", "0.74628335", "0.73024607", "0.61924636", "0.60652", "0.5597042", "0.55901843", "0.55901843", "0.54664266", "0.536367", "0.5187187", "0.49587166", "0.48493195", "0.4782032", "0.47557163", "0.47466755", "0.4743986", "0.4715979", "0.4679068", "0.46104825", "0.4526...
0.91552335
0
Sets the company_name of this Shipper.
def u8qZ(YKHO, u8qZ): YKHO._company_name = u8qZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cspv(YKHO, BWXx):\n super(Sh63, YKHO)._set_input('CompanyName', BWXx)", "def q9zX(YKHO, q9zX):\n YKHO._company = q9zX", "def q9zX(YKHO, q9zX):\n YKHO._company = q9zX", "def q9zX(YKHO, q9zX):\n YKHO._company = q9zX", "def u8qZ(YKHO):\n if 'companyName' in YKHO._prop_dict:\n return ...
[ "0.749121", "0.7237694", "0.71657586", "0.71657586", "0.65922076", "0.64805466", "0.6391986", "0.62962836", "0.62962836", "0.61920357", "0.6003719", "0.59064716", "0.58890927", "0.5783363", "0.5777552", "0.5746954", "0.5735284", "0.57184", "0.57184", "0.5695987", "0.568296", ...
0.8477372
0
Sets the contact_name of this Shipper.
def bKAt(YKHO, bKAt): YKHO._contact_name = bKAt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0(YKHO, Mxk0):\n YKHO.logger.debug(\"In 'contact' setter.\")\n YKHO._contact = Mxk0", "def Mxk0(YKHO, Mxk0):\n YKHO._contact = Mxk0", "def Mxk0(YKHO, Mxk0):\n YKHO._contact = Mxk0", "def bKAt(YKHO) -> str:\n return qe4Y.get(YKHO, 'contact_name')", "def KCHD(YKHO, KCHD):\n YKHO._pri...
[ "0.6867439", "0.65974635", "0.65974635", "0.6563238", "0.6503109", "0.6454066", "0.6312135", "0.6288105", "0.6288105", "0.62190604", "0.62092996", "0.62092996", "0.6205595", "0.619387", "0.619387", "0.619387", "0.619387", "0.619387", "0.6180943", "0.6160226", "0.6157045", "...
0.8503755
0
Sets the address_line3 of this Shipper.
def EqWx(YKHO, EqWx): YKHO._address_line3 = EqWx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FGUY(YKHO, FGUY):\n YKHO._address_line1 = FGUY", "def FGUY(YKHO, FGUY):\n YKHO._address_line1 = FGUY", "def y6Xr(YKHO, y6Xr):\n YKHO._address_line2 = y6Xr", "def y6Xr(YKHO, y6Xr):\n YKHO._address_line2 = y6Xr", "def y6Xr(YKHO, y6Xr):\n YKHO._address_line2 = y6Xr", "def Ce3W(YKHO, UTX6)...
[ "0.6290439", "0.6290439", "0.6118142", "0.6118142", "0.6118142", "0.5799908", "0.5746496", "0.56585157", "0.5634919", "0.5628585", "0.5614093", "0.5603477", "0.55808204", "0.55674434", "0.5546276", "0.54826397", "0.54540616", "0.54440105", "0.5419462", "0.53430223", "0.529064...
0.85781455
0
Sets the postcode of this Shipper.
def BQ5d(YKHO, BQ5d): YKHO._postcode = BQ5d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q8sW(YKHO, q8sW):\n YKHO._post_code = q8sW", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def aS2h(YKHO, aS2h):\n YKHO._zip_post_code = aS2h", "def vEcJ(YKHO, BWXx):\n sup...
[ "0.767718", "0.7412647", "0.7412647", "0.7412647", "0.72635156", "0.658449", "0.6165669", "0.6165669", "0.6158476", "0.5891153", "0.58003527", "0.57402116", "0.57089835", "0.5612925", "0.5553841", "0.55108565", "0.5421363", "0.54034305", "0.53849626", "0.53849626", "0.5334848...
0.81773925
2
Sets the phone_number of this Shipper.
def JSoq(YKHO, JSoq): YKHO._phone_number = JSoq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bWtk(YKHO, GPOS):\n YKHO._phone.number = GPOS", "def UBdz(YKHO, UBdz):\n YKHO._person_phone_number = UBdz", "def x3_F(YKHO, bWtk):\n YKHO.phone = bWtk", "def x3_F(YKHO, bWtk):\n YKHO.phone = bWtk\n return YKHO", "def bWtk(YKHO, bWtk):\n YKHO._phone = bWtk", "def bWtk(YKHO, bWtk):\n ...
[ "0.77741486", "0.7548591", "0.75392634", "0.7532653", "0.731644", "0.731644", "0.731644", "0.731644", "0.731644", "0.72484684", "0.718488", "0.7148577", "0.7049014", "0.7048473", "0.694723", "0.6947113", "0.6861802", "0.67675704", "0.67421275", "0.664361", "0.6608686", "0.6...
0.8214727
2
Sets the email_address of this Shipper.
def Hxmi(YKHO, Hxmi): YKHO._email_address = Hxmi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxmi(YKHO, Hxmi: 'str'):\n YKHO._attrs['emailAddress'] = Hxmi", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._emai...
[ "0.77891815", "0.7519063", "0.7519063", "0.7519063", "0.7519063", "0.7519063", "0.7519063", "0.7519063", "0.7519063", "0.7519063", "0.7519063", "0.74892384", "0.74364823", "0.7352302", "0.72546875", "0.72546875", "0.7215233", "0.71067286", "0.6858424", "0.68468946", "0.684608...
0.7908744
2
Sets the vat_number of this Shipper.
def bp77(YKHO, bp77): YKHO._vat_number = bp77
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgWg(YKHO, LgWg):\n if LgWg is None:\n raise ValueError('Invalid value for `vat`, must not be `None`')\n YKHO._vat = LgWg", "def oeua(YKHO, oeua):\n YKHO._vat_id = oeua", "def oeua(YKHO, oeua: str):\n YKHO._vat_id = oeua", "def foPp(YKHO, xEsQ):\n YKHO.set_value_into_input_field(YKH...
[ "0.7092333", "0.69663215", "0.68762094", "0.61957026", "0.6166759", "0.612829", "0.6109457", "0.6009419", "0.5986041", "0.5926051", "0.59222883", "0.58299816", "0.57385826", "0.5625372", "0.55887306", "0.555703", "0.5498055", "0.5491585", "0.5450309", "0.5399167", "0.53898364...
0.83798707
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, u1dI): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Default Colormap for soil moisture in CCI and C3S BrownYellowBlue
def KyVG(ywwl: int=256, Ojik: bool=True) -> Jw9H.LinearSegmentedColormap: paSp = oyIN.array([[134, 80, 16], [164, 117, 13], [219, 190, 24], [250, 249, 156], [144, 202, 240], [4, 145, 251], [8, 83, 211], [13, 37, 161]]) / 255.0 iMGt = Jw9H.LinearSegmentedColormap.from_list('smecv_sm', paSp, N=ywwl) if Ojik: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hF7I():\n MYQr = oyIN.zeros((256, 3), dtype=oyIN.uint8)\n MYQr[0] = [128, 64, 128]\n MYQr[1] = [244, 35, 232]\n MYQr[2] = [70, 70, 70]\n MYQr[3] = [102, 102, 156]\n MYQr[4] = [190, 153, 153]\n MYQr[5] = [153, 153, 153]\n MYQr[6] = [250, 170, 30]\n MYQr[7] = [220, 220, 0]\n MYQr[8]...
[ "0.69152653", "0.6728773", "0.67108226", "0.6618466", "0.6611814", "0.6601009", "0.653578", "0.6423996", "0.6408452", "0.6370054", "0.63682777", "0.63169456", "0.62204194", "0.6154088", "0.6154088", "0.6154088", "0.6145811", "0.614221", "0.61383456", "0.61383456", "0.6131441"...
0.0
-1
Returns all tfrecord file paths of images that do not need an helper to compute their labels.
def kVG5(YKHO): ckRy = [] KndY = YKHO.get_replay_classes_no_helper() XSj5 = YKHO.base_folder_path + '/data/replay_images/' + YKHO.replay_source + '/' for Z9rn in KndY: Zg0d = XSj5 + str(Z9rn).zfill(2) + '.tfrecord' ckRy.append(Zg0d) return ckRy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Te1x():\n return [mWFP for mWFP in Hy7s.listdir(Hy7s.getcwd() + '/assets/images') if mWFP != 'test']", "def a7k4():\n d0zu = Hy7s.path.join(vPBo.dataset_dir, vPBo.src_dir)\n iumf = [Hy7s.path.join(d0zu, eHNT) for eHNT in Hy7s.listdir(d0zu) if eHNT.endswith('.tfrecord') and all([QRm1 not in eHNT for ...
[ "0.67560405", "0.6476112", "0.63445437", "0.6182512", "0.6166062", "0.61402833", "0.6132274", "0.61106193", "0.5950202", "0.5918637", "0.591863", "0.5886411", "0.5881882", "0.5818159", "0.58065534", "0.5749788", "0.57312596", "0.5713824", "0.570538", "0.5683394", "0.5663048",...
0.684677
0
Returns the name (without extension) of the validation file
def Fl_t(YKHO): mWFP = YKHO.test_name + ' (T' + str(YKHO.test_index) + '_P' + str(YKHO.parameters_common_index) + '.' + str(YKHO.parameters_fs_index) + '.' + str(YKHO.parameters_helper_index) + '.' + str(YKHO.parameters_incremental_index) if YKHO.replay_source is not None: mWFP = mWFP + '_' + YKHO.repla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eAiH(YKHO):\n xl0q = YKHO.get_validation_file_name()\n if YKHO.helper_decoders_one_class:\n xl0q = xl0q + '_1'\n return YKHO.base_folder_path + '/outputs/' + xl0q + '.txt'", "def SzrL(YKHO):\n return _VfD.SBMLExternalValidator_getSBMLFileName(YKHO)", "def DwCu(YKHO):\n return _VfD.SBM...
[ "0.7391716", "0.71238303", "0.702272", "0.6980781", "0.68641186", "0.67736787", "0.67539054", "0.67081696", "0.66690964", "0.6668111", "0.6666055", "0.66372037", "0.65999615", "0.659508", "0.6575232", "0.65700597", "0.6565453", "0.6537831", "0.65124893", "0.650942", "0.650942...
0.79006994
0
vertex vertex > float Returns the distance between the two vertices.
def pImw(YKHO, Elif): return epAf.sqrt((YKHO.x - Elif.x) ** 2 + (YKHO.y - Elif.y) ** 2 + (YKHO.z - Elif.z) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R6s2(YKHO, hQHm, jlSq):\n return BfDw.real_distance(YKHO.node_locations[hQHm], YKHO.node_locations[jlSq])", "def s7yO(YKHO, Ty9i: Vector) -> float:\n return epAf.fabs(YKHO.signed_distance_to(Ty9i))", "def e4OE(YKHO, ohRA):\n return epAf.sqrt(epAf.pow(ohRA.x - YKHO.x, 2) + epAf.pow(ohRA.y - YKHO.y,...
[ "0.7754167", "0.6377777", "0.6374681", "0.6306013", "0.6255264", "0.6241741", "0.6211265", "0.6199141", "0.6163237", "0.61201763", "0.611154", "0.6085634", "0.6071476", "0.6061854", "0.60372734", "0.60167384", "0.6005737", "0.5985937", "0.5974582", "0.59738386", "0.5966455", ...
0.59130067
25
face int > vector Returns the vector normal to the face (normalized).
def cSfR(YKHO, exwG=2): aPd6 = len(YKHO.vertices) u8R3 = [] while len(u8R3) < exwG: r845 = qukk(aPd6) T8d8 = iArr(YKHO.vertices[r845].coords()) hQHm = iArr(YKHO.vertices[int(r845 + aPd6 / 3) % aPd6].coords()) jlSq = iArr(YKHO.vertices[int(r845 + 2 * aPd6 / 3) % aPd6].coords()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XGpy(YKHO, VkqI):\n assert len(VkqI) == 3\n oeNL = YKHO.cluster.get_positions()\n hQHm = oeNL[VkqI[1], :] - oeNL[VkqI[0], :]\n jlSq = oeNL[VkqI[2], :] - oeNL[VkqI[0], :]\n exwG = oyIN.cross(hQHm, jlSq)\n u54L = oyIN.sqrt(oyIN.sum(exwG ** 2))\n return exwG / u54L", "def mhAC(YKHO) -> Cd5b...
[ "0.759327", "0.6925615", "0.6866574", "0.68592674", "0.68325394", "0.68186283", "0.6769369", "0.67102784", "0.6682227", "0.6663213", "0.6640775", "0.65752876", "0.6572164", "0.65561986", "0.6493176", "0.6398592", "0.638766", "0.6379574", "0.6378086", "0.6365555", "0.6344527",...
0.6355691
20
face vertex vertex vertex > None Adds a new vertex in .vertices between the two vertices given.
def ZXhT(YKHO, hQHm, inTa, jlSq): exwG = len(YKHO.vertices) if inTa not in YKHO.vertices: for YRbF in range(exwG): if YKHO.vertices[YRbF] == hQHm: if YKHO.vertices[(YRbF + 1) % exwG] == jlSq: YKHO.vertices.insert((YRbF + 1) % exwG, inTa) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n if SLBp.id not in YKHO.vertices.keys():\n YKHO.vertices[SLBp.id] = SLBp", "def rz7z(YKHO, hQHm, jlSq):\n pass\n if hQHm in YKHO.vertices and jlSq in YKHO.vertices:\n YKHO.vertices[hQHm].add(jlSq)\n else:\n raise ValueError('Vertex not yet created')\n if...
[ "0.6984822", "0.6654363", "0.6618703", "0.65404576", "0.6537266", "0.6523339", "0.6485942", "0.64747983", "0.64293957", "0.64255667", "0.6425538", "0.6403592", "0.6396756", "0.63887984", "0.6384248", "0.6382023", "0.63800126", "0.63614243", "0.6360825", "0.635048", "0.635048"...
0.66238374
2
face vertex > bool Returns wether is on the interior side of .
def mi1R(YKHO, Ty9i): exwG = YKHO.normalVect() return exwG.dotProduct(iArr(YKHO.vertices[0]) - iArr(Ty9i)) > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ONEX(YKHO):\n return False", "def ONEX(YKHO):\n return True", "def ONEX(YKHO):\n return True", "def ONEX(YKHO):\n return False", "def OAkX(YKHO, RpU_):\n mhAC = RpU_.normalVect()\n T8d8 = iArr(RpU_.vertices[0])\n vuA2 = iArr(YKHO.pvt)\n imdf = iArr(YKHO.nvt)\n XP5J = mhAC.dot...
[ "0.7455846", "0.7176409", "0.7176409", "0.71401477", "0.6894717", "0.6824649", "0.6678366", "0.65515804", "0.63832283", "0.6300655", "0.62983876", "0.6217232", "0.6170218", "0.6163973", "0.61513275", "0.61390305", "0.6106189", "0.60620403", "0.6058401", "0.605294", "0.6051304...
0.7004704
4
None > polyhedron Returns a basic polyhedron with one vertex (at (0,0,0)) and one face with the vertex. This is the most basic polyhedron which satisfies Euler's polyhedral formula. Corresponds to Baumgart's MKBFV function.
def RU9e(): Ty9i = SLBp(0, 0, 0) return qmA5([Ty9i], [], [RpU_([Ty9i])])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QH8g(YKHO):\n a0GJ = zllO(1)\n Ty9i = [[0, -a0GJ / 2, -a0GJ / 2], [0, a0GJ / 2, -a0GJ / 2], [a0GJ / 2, -a0GJ / 2, 0], [a0GJ / 2, a0GJ / 2, 0], [a0GJ / 2, 0, a0GJ / 2], [a0GJ / 2, 0, -a0GJ / 2], [0, a0GJ / 2, a0GJ / 2], [0, -a0GJ / 2, a0GJ / 2], [-a0GJ / 2, 0, a0GJ / 2], [-a0GJ / 2, a0GJ / 2, 0], [-a0GJ /...
[ "0.6392892", "0.63583404", "0.6134595", "0.61278063", "0.61278063", "0.60392237", "0.60319424", "0.58751494", "0.58000183", "0.57050157", "0.57000065", "0.5675616", "0.5659242", "0.5601991", "0.5590414", "0.55898625", "0.55872756", "0.55578804", "0.5554497", "0.5487914", "0.5...
0.73588663
0
polyhedron vertex list > face Returns (if it exists) the face that has as vertices.
def Mqur(YKHO, iXlf): for eHNT in YKHO.faces: if eHNT.vertices == iXlf: return eHNT raise ValueError('No face found')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXlf(YKHO):\n if YKHO._faces is None:\n if YKHO._vertices is None:\n return None\n YKHO.triangulate()\n return YKHO._vertices", "def y_PJ(YKHO):\n if YKHO._faces is None:\n if YKHO._vertices is None:\n return None\n YKHO.triangulate()\n return YKH...
[ "0.650274", "0.6497608", "0.6457996", "0.63674814", "0.6319706", "0.62773424", "0.6192633", "0.6179862", "0.6143773", "0.6110268", "0.60993874", "0.6097296", "0.60497767", "0.60303193", "0.5984364", "0.5929534", "0.5919999", "0.58351415", "0.5834142", "0.58030945", "0.5803094...
0.6848331
0
polyhedron face vertex vertex > edge face Splits into two faces and creates an edge from and to separate them. Returns the separating edge and the new face. Corresponds to Baumgart's eulerian primitive MKFself.
def UymJ(YKHO, eHNT, hQHm, jlSq): if YKHO.containsEdge(hQHm, jlSq): raise ValueError('There is already an edge betweenthe vertices given.Is your polyhedron really one ?') try: TPao = eHNT.vertices.index(hQHm) fVVZ = eHNT.vertices.index(jlSq) except ValueError: raise ValueErro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YfFc(D70y, csQL):\n return tuple(list(D70y) + [csQL])", "def l052(YKHO, Wd5R):\n mC4V = []\n s2zA = {}\n UHFx = 0\n for YRbF in range(0, len(Wd5R)):\n for r845 in range(0, len(Wd5R[YRbF])):\n H5ew = (Wd5R[YRbF][r845 - 1], Wd5R[YRbF][r845])\n mC4V.append(H5ew)\n ...
[ "0.6283501", "0.61778265", "0.6155645", "0.61083865", "0.6044137", "0.59138656", "0.5893302", "0.58224666", "0.5817002", "0.5807773", "0.5798878", "0.57370925", "0.5720855", "0.5684132", "0.5643012", "0.5627617", "0.55658484", "0.55618757", "0.5551616", "0.54623044", "0.54386...
0.6927274
0
polyhedron > () Plots the polyhedron using matplotlib.
def kj9G(YKHO, WG9Q=False, TQnX=[], fvDH=('b', 'k', 'r'), kg7d=None, EDqr=False): aNZO = MgfK.Axes3D(QrM1.figure()) aNZO.set_xlabel('x') aNZO.set_ylabel('y') aNZO.set_zlabel('z') aNZO.dist = 30 aNZO.azim = -140 if kg7d is None: kg7d = [0, 0, 0] kg7d[0] = [min((Ty9i.x for Ty9i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D4Qw():\n m4MP = _owl('C:/Users/Tim/Documents/University/Year 4/Final Project/FinalYearProjectCode/TEH_Code/InputFiles', 'muscle_surface.vtk')\n WBPg, AaFL, x712 = A3G0(m4MP)\n LZpg = QrM1.figure()\n hh7H = LZpg.add_subplot(111, projection='3d')\n hh7H.plot_trisurf(AaFL[:, 0], AaFL[:, 1], AaFL[:...
[ "0.66723454", "0.64295167", "0.6388495", "0.6388495", "0.6387799", "0.6190675", "0.6093156", "0.60881066", "0.60488456", "0.6042494", "0.60121316", "0.6009422", "0.60020155", "0.6000066", "0.59834504", "0.59164107", "0.5914741", "0.5900658", "0.5896283", "0.58683425", "0.5841...
0.5370966
68
polyhedron ((float float float) > (float float float)) > () Applies to all of 's vertices.
def dRO0(YKHO, eHNT): for Ty9i in YKHO.vertices: Ty9i.x, Ty9i.y, Ty9i.z = eHNT(Ty9i.coords())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dgdj(hQHm, jlSq, bUZ8):\n Ylbp = qmA5([], [], [])\n y4fz = Ylbp.addVertex(SLBp(0, 0, 0))\n EBgd = Ylbp.addVertex(SLBp(hQHm))\n HpuQ = Ylbp.addVertex(SLBp(jlSq))\n Lq8X = Ylbp.addVertex(SLBp(bUZ8))\n tO2L = Ylbp.addVertex(SLBp(hQHm + jlSq))\n MZio = Ylbp.addVertex(SLBp(hQHm + bUZ8))\n ll...
[ "0.6455545", "0.64201945", "0.64201945", "0.6092028", "0.6056283", "0.5951551", "0.5945496", "0.5920928", "0.5877675", "0.5744521", "0.5663194", "0.5622109", "0.5606873", "0.56061214", "0.5577277", "0.55740607", "0.5568203", "0.5552662", "0.5547745", "0.55474555", "0.5538046"...
0.0
-1
vector vector > float Returns the dot product of the two vectors.
def X6_J(YKHO, Ty9i): return YKHO.x * Ty9i.x + YKHO.y * Ty9i.y + YKHO.z * Ty9i.z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJ1H(BZrQ: List, OhjO: List) -> float:\n if len(BZrQ) != len(OhjO):\n raise WM4P(zDYs['InvalidLength'])\n return sum((WKvO * LVAh for WKvO, LVAh in zip(BZrQ, OhjO)))", "def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('Input vectors must be of same length, not %d an...
[ "0.8475832", "0.8470601", "0.8308196", "0.8216782", "0.8191412", "0.8162204", "0.80001503", "0.79528546", "0.7928741", "0.79224443", "0.78357816", "0.78200436", "0.77608407", "0.77302235", "0.77182835", "0.77128744", "0.76873595", "0.7686355", "0.76718855", "0.7664705", "0.76...
0.7250189
46
vector vector > float Returns the x component of the cross product of self and other.
def CqIg(YKHO, Elif): return Elif.y * YKHO.z - Elif.z * YKHO.y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHx2(YKHO, Elif):\n if isinstance(Elif, float):\n return lNLu(Elif * YKHO.y, -Elif * YKHO.x)\n if isinstance(Elif, lNLu):\n return YKHO.x * Elif.y - YKHO.y * Elif.x", "def WHx2(YKHO, Elif: PointOrIterable) -> float:\n try:\n return YKHO.x * Elif.y + YKHO.y * Elif.x\n except A...
[ "0.8002127", "0.7737465", "0.7595101", "0.74691385", "0.73980606", "0.7349577", "0.733723", "0.71455973", "0.71125937", "0.70875454", "0.7062396", "0.701941", "0.70029145", "0.6987132", "0.68737423", "0.68656135", "0.6861305", "0.68021876", "0.6784891", "0.676297", "0.6750324...
0.7948008
1
silhouette float > polyhedron Returns the cone polyhedron corresponding to the silhouette.
def Et2J(YKHO, u54L): EcVT, fuBA, Nk6w = ElDj(YKHO.angles) Aofo = qmA5([], [], []) assert Aofo.pnFacesInPoly() eHNT = Aofo.addVertex(YKHO.focalPoint) for KCHu in YKHO.segments: rB6o = (YKHO.focalDist * EcVT + KCHu[0][0] * Nk6w + KCHu[0][1] * fuBA).normalize() zQyp = (YKHO.focalDist *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bavN(YKHO, HEZd=None):\n pdhd = YKHO.intersection_matrix()\n Nq1b = YKHO.suspension_cone(HEZd)\n from sage.geometry.polyhedron.constructor import Polyhedron\n return Polyhedron(rays=[-pdhd * Z9rn.vector() for Z9rn in Nq1b.rays()])", "def W9Kw(YKHO):\n _19w = [[-3 / 2, -1 / 2, -1 / 2], [-3 / 2,...
[ "0.6264594", "0.6109996", "0.58095956", "0.57861763", "0.57861763", "0.5774392", "0.5693221", "0.56383073", "0.5603029", "0.5525055", "0.55137384", "0.53679305", "0.53473485", "0.5244624", "0.5216951", "0.5206273", "0.52031106", "0.51792353", "0.5141609", "0.51040125", "0.509...
0.5241718
14
None > vector3 Returns an orthonormal base of R3.
def BziU(): return (iArr(1, 0, 0), iArr(0, 1, 0), iArr(0, 0, 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tsu4():\n WKvO, LVAh, epBp = Crmd()\n g9Xa = epAf.sqrt(WKvO ** 2 + LVAh ** 2 + epBp ** 2)\n print('\\nLa norma del vector ({},{},{}) es: {}'.format(WKvO, LVAh, epBp, g9Xa))", "def w8K8(YKHO) -> complex:\n return YKHO.I3_u1() * UPbS.rect(1, 120 / 180 * UPbS.pi)", "def jIwt():\n IrOQ = tuKI.ra...
[ "0.6531345", "0.5982122", "0.5906623", "0.5883041", "0.58436185", "0.5802756", "0.5780555", "0.5777715", "0.5657134", "0.56404704", "0.5631828", "0.5617347", "0.56106925", "0.5553391", "0.5530876", "0.5517966", "0.5501335", "0.54854417", "0.54731876", "0.54611355", "0.5460641...
0.0
-1
x Valor a ser calculado X Vetor com valores de x Y Vetor com valores de f(x) dY Vetor com valores de f'(x)
def C7Ls(WKvO, EcVT, fuBA, rKIL): def aPd6(YRbF): XP5J = [(WKvO - EcVT[YRbF]) / (EcVT[r845] - EcVT[YRbF]) for r845 in range(exwG) if r845 != YRbF] return Pusg(khtY.mul, XP5J) def jkoB(YRbF): if YRbF < exwG - 1: return (fuBA[YRbF + 1] - fuBA[YRbF]) / (EcVT[YRbF + 1] - EcVT[Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dmme(WKvO):\n vZP7 = oyIN.array([WKvO[1] * oyIN.cos(WKvO[0]) + oyIN.cos(WKvO[1]), oyIN.sin(WKvO[0]) - WKvO[0] * oyIN.sin(WKvO[1])])\n return vZP7", "def jQ3Z(YKHO, WKvO):\n return 2 * epAf.exp(WKvO * 2) - epAf.exp(WKvO)", "def CRrm(YKHO, WKvO, LVAh):\n if MAet(WKvO):\n QOxj = max(min(YKH...
[ "0.7227632", "0.7193496", "0.68446356", "0.67782277", "0.67102814", "0.670847", "0.6660728", "0.6660728", "0.66341174", "0.66181797", "0.6617904", "0.66114414", "0.6604835", "0.6591115", "0.6563416", "0.65542334", "0.6517603", "0.6510425", "0.6494457", "0.64915496", "0.648644...
0.0
-1
Linear and quantile bins are correct
def UZa7(YKHO): for Ux0P in ['%s/population_padang_1.asc' % Znmh, '%s/test_grid.asc' % Znmh]: A3Vt = ug0Y(Ux0P) s_8f, X17R = A3Vt.get_extrema() for ywwl in [2, 3, 5, 7, 10, 16]: ycfH = A3Vt.get_bins(N=ywwl, quantiles=False) assert ycfH[0] == s_8f assert yc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aM62(RDhP, Pyrc):\n a1PO = RDhP.sort_values().values\n yzQ0 = round(len(a1PO) / Pyrc)\n return [a1PO[yzQ0 * YRbF - 1] for YRbF in range(1, Pyrc)]", "def tX86(CAzz):\n return KJMr(CAzz) / len(CAzz) - 1 / (2 * len(CAzz))", "def sezZ(fUYa: List[float]) -> float:\n return aM62(fUYa, 0.75) - aM62...
[ "0.6817819", "0.67792207", "0.66839904", "0.6609035", "0.6577213", "0.64610934", "0.6448858", "0.6379628", "0.6295525", "0.6285222", "0.62521803", "0.6203517", "0.61321586", "0.6096803", "0.60894614", "0.6084364", "0.6083851", "0.6074455", "0.60225976", "0.6020756", "0.601982...
0.6220743
11
Test to see if internationalisation is working correctly. Make sure to include this file when using xgettext to scan for translatable strings.
def j81T(YKHO): Hy7s.environ['LANG'] = 'C' Hy7s.environ['LC_ALL'] = 'C.UTF-8' pfRd = yKIT('Hello!') nley = 'Hello!' tO9_ = 'Expected %s, got %s' % (nley, pfRd) assert pfRd == nley, tO9_ Hy7s.environ['LANG'] = 'id' Hy7s.environ['LC_ALL'] = 'id_ID.UTF-8'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VmUE(YKHO):\n YKHO.assertTrue(gCuF.USE_I18N, msg='setting USE_I18N must be True to have languages working')", "def YcwZ(YKHO):\n with y_o0.override('de'):\n hlel = YKHO.engine.render_to_string('i18n23')\n YKHO.assertEqual(hlel, 'nicht gefunden')", "def FCbF(YKHO):\n super().setUp()\n ...
[ "0.7101887", "0.7042391", "0.6912037", "0.6899667", "0.6838655", "0.68248886", "0.6779982", "0.6777021", "0.67762136", "0.6730435", "0.6628043", "0.66265714", "0.6618531", "0.66065925", "0.6583775", "0.6579655", "0.6549567", "0.6526331", "0.65211123", "0.6466104", "0.64559627...
0.7649081
0
convert 'Part N' into (N)
def tF0H(YKHO): return ZbWC.sub('(Part )(?P<part>\\d+)', '(\\g<part>)', YKHO.episode_title)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MhI9(YKHO, Qd2C, GltZ=...):\n ...", "def MhI9(YKHO, Qd2C, GltZ=...):\n ...", "def Hheu(YKHO, Htnw, GltZ=...):\n ...", "def Hheu(YKHO, Htnw, GltZ=...):\n ...", "def Hheu(YKHO, Htnw, GltZ):\n ...", "def MhI9(YKHO, Qd2C, GltZ):\n ...", "def jMm_(mLGw):\n if len(str(mLGw)) == 1:\n ...
[ "0.634691", "0.634691", "0.6298135", "0.6298135", "0.6232319", "0.61476564", "0.59712017", "0.5857806", "0.57464665", "0.5735004", "0.5713158", "0.5708961", "0.5699932", "0.5666522", "0.5644759", "0.5634299", "0.56224215", "0.56136054", "0.5583183", "0.5582155", "0.551372", ...
0.0
-1
convert 'Part N' into (N)
def tF0H(YKHO): return 'Episode %d' % YKHO.episode_number[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MhI9(YKHO, Qd2C, GltZ=...):\n ...", "def MhI9(YKHO, Qd2C, GltZ=...):\n ...", "def Hheu(YKHO, Htnw, GltZ=...):\n ...", "def Hheu(YKHO, Htnw, GltZ=...):\n ...", "def Hheu(YKHO, Htnw, GltZ):\n ...", "def MhI9(YKHO, Qd2C, GltZ):\n ...", "def jMm_(mLGw):\n if len(str(mLGw)) == 1:\n ...
[ "0.634691", "0.634691", "0.6298135", "0.6298135", "0.6232319", "0.61476564", "0.59712017", "0.5857806", "0.57464665", "0.5735004", "0.5713158", "0.5708961", "0.5699932", "0.5666522", "0.5644759", "0.5634299", "0.56224215", "0.56136054", "0.5583183", "0.5582155", "0.551372", ...
0.0
-1
Tests to see that the current request is from a user with administrator privileges.
def rW_x(bNKA): if _uZf(): return True if EFRR(bNKA): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def assert_requester_is_admin(Jpbe: Auth, QePW: SynapseRequest) -> None:\n locH = await Jpbe.get_user_by_req(QePW)\n await M59O(Jpbe, locH)", "def QPh5(YKHO, QePW):\n rJDA = QePW.params.get(YKHO.api_field, None)\n if QePW.user is None:\n CBIr = YKHO.user_fetcher(api_key=rJDA)\n else:\...
[ "0.74539584", "0.74130994", "0.73399377", "0.7238531", "0.721977", "0.7186139", "0.7143937", "0.7133418", "0.7133418", "0.710751", "0.7039022", "0.6959957", "0.693229", "0.69273055", "0.6897696", "0.6897696", "0.68879503", "0.6824636", "0.6817539", "0.68120396", "0.68053746",...
0.68308014
17
Tests to see that the current request is from a user with write privileges.
def Gsy4(bNKA): if _uZf(): return True if EFRR(bNKA): return True if TduA(bNKA): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aoD7(QePW):\n CBIr = QePW.user\n return CBIr.is_superuser", "def aoD7(QePW):\n return QePW.user.is_authenticated", "def Efau(YKHO):\n from Products.CMFCore.utils import getToolByName\n ZYEE = getToolByName(YKHO.portal, 'portal_membership')\n CBIr = ZYEE.getAuthenticatedMember()\n IuXB ...
[ "0.7736975", "0.7562459", "0.7215515", "0.68424565", "0.6612809", "0.660365", "0.6437522", "0.63838154", "0.6351333", "0.632643", "0.63257027", "0.6270679", "0.6253172", "0.6237377", "0.62059885", "0.6195455", "0.618146", "0.6178083", "0.6147471", "0.61452484", "0.61232287", ...
0.6518801
6
Tests to see that the current request is from a user with read privileges.
def Mczj(bNKA): if _uZf(): return True if EFRR(bNKA): return True if TduA(bNKA): return True if Djp_(bNKA): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B95r(QePW):\n return QePW.user.is_authenticated", "def Xs3U(YKHO, CBIr):\n raise RXLT(True)", "def rmyD(YKHO, GD_A, qv1X):\n CBIr = qv1X.env.get('REMOTE_USER')\n KUmL = GD_A.configlist('web', 'deny_read', untrusted=True)\n if KUmL and (not CBIr or sWwI(GD_A, CBIr, KUmL)):\n return Fal...
[ "0.75844544", "0.74595964", "0.72332346", "0.7139597", "0.7068315", "0.67400914", "0.6707806", "0.6683332", "0.66480315", "0.66359395", "0.65355736", "0.63827574", "0.6339389", "0.63161445", "0.6309798", "0.62568843", "0.6242229", "0.6212795", "0.6157258", "0.61382186", "0.61...
0.58834666
53
Tests to see that the current request is from a user with administrator privileges.
def lKLt(bNKA): if not rW_x(bNKA): raise CnSx.HTTPError(403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def assert_requester_is_admin(Jpbe: Auth, QePW: SynapseRequest) -> None:\n locH = await Jpbe.get_user_by_req(QePW)\n await M59O(Jpbe, locH)", "def QPh5(YKHO, QePW):\n rJDA = QePW.params.get(YKHO.api_field, None)\n if QePW.user is None:\n CBIr = YKHO.user_fetcher(api_key=rJDA)\n else:\...
[ "0.74539584", "0.74130994", "0.73399377", "0.7238531", "0.721977", "0.7186139", "0.7143937", "0.7133418", "0.7133418", "0.710751", "0.7039022", "0.6959957", "0.693229", "0.69273055", "0.6897696", "0.6897696", "0.68879503", "0.68308014", "0.6824636", "0.6817539", "0.68120396",...
0.630035
79
Tests to see that the current request is from a user with write privileges.
def nqpU(bNKA): if not Gsy4(bNKA): raise CnSx.HTTPError(403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aoD7(QePW):\n CBIr = QePW.user\n return CBIr.is_superuser", "def aoD7(QePW):\n return QePW.user.is_authenticated", "def Efau(YKHO):\n from Products.CMFCore.utils import getToolByName\n ZYEE = getToolByName(YKHO.portal, 'portal_membership')\n CBIr = ZYEE.getAuthenticatedMember()\n IuXB ...
[ "0.7736975", "0.7562459", "0.7215515", "0.68424565", "0.6612809", "0.660365", "0.6518801", "0.6437522", "0.63838154", "0.6351333", "0.632643", "0.63257027", "0.6270679", "0.6253172", "0.6237377", "0.62059885", "0.6195455", "0.618146", "0.6178083", "0.6147471", "0.61452484", ...
0.0
-1
Tests to see that the current request is from a user with read privileges.
def aCaW(bNKA): if not Mczj(bNKA): raise CnSx.HTTPError(403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B95r(QePW):\n return QePW.user.is_authenticated", "def Xs3U(YKHO, CBIr):\n raise RXLT(True)", "def rmyD(YKHO, GD_A, qv1X):\n CBIr = qv1X.env.get('REMOTE_USER')\n KUmL = GD_A.configlist('web', 'deny_read', untrusted=True)\n if KUmL and (not CBIr or sWwI(GD_A, CBIr, KUmL)):\n return Fal...
[ "0.75844544", "0.74595964", "0.72332346", "0.7139597", "0.7068315", "0.67400914", "0.6707806", "0.6683332", "0.66480315", "0.66359395", "0.65355736", "0.63827574", "0.6339389", "0.63161445", "0.6309798", "0.62568843", "0.6242229", "0.6212795", "0.6157258", "0.61382186", "0.61...
0.0
-1
Tests to see that the current request is from the user that created the given worker.
def u6Wy(i4ai): if _uZf(): return if YJdL(i4ai): return raise CnSx.HTTPError(403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SeQ3(YKHO, CBIr):\n return YKHO.owner == CBIr or YKHO.workers.filter(pk=CBIr.id).exists()", "def KNvH(YKHO):\n vC92 = YKHO.create_user()\n MgeT = YKHO.create_thread(sender=vC92, status='pending')\n YKHO.assertTrue(MgeT.first_message.visible_to_user(vC92))", "def Jjss(YKHO, a98m, W_1b, WmM4=None...
[ "0.7078654", "0.6688829", "0.63387334", "0.6306361", "0.6204395", "0.60571516", "0.5994277", "0.59838295", "0.59561306", "0.59561306", "0.5953359", "0.59448534", "0.5933571", "0.5926726", "0.59208316", "0.590949", "0.58848894", "0.5883457", "0.5853283", "0.5846871", "0.582029...
0.65450597
2
Find the indices in a list of LineStrings that touch a given LineString.
def A_IW(Nqlg, lSki): return [G1Hx for G1Hx, zFiD in enumerate(Nqlg) if zFiD.touches(lSki)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6Qh(YKHO, vIwR):\n if type(vIwR) != str:\n raise TypeError('Item given is not of type string')\n kbdK = tMMs.ListADT()\n for d6pt in range(len(YKHO.text_lines)):\n YRbF = 0\n for hcXw in YKHO.text_lines[d6pt]:\n if hcXw == vIwR[YRbF]:\n YRbF += 1\n ...
[ "0.6813444", "0.6567643", "0.644021", "0.6312185", "0.62870467", "0.62757295", "0.6241628", "0.6234033", "0.6204614", "0.61416864", "0.61223805", "0.600046", "0.5999949", "0.5963494", "0.59579265", "0.59551775", "0.59551555", "0.59262747", "0.59149235", "0.5840067", "0.581548...
0.56643784
27
Get if light in on or off.
def Debg(YKHO): return YKHO._client.get_power()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fBZe(YKHO):\n return YKHO._light == 'ON'", "def fBZe(YKHO):\n return YKHO._light == 'ON'", "def Debg(YKHO):\n return YKHO._light_on", "def Debg(YKHO):\n return YKHO._sensor_state()", "def Debg(YKHO):\n return YKHO._brightness != 0", "def Debg(YKHO):\n if YKHO._sensor_type != uS0p:\n...
[ "0.82439286", "0.81483865", "0.8046978", "0.7349729", "0.72219056", "0.71996", "0.7173374", "0.71531725", "0.7143898", "0.7141985", "0.7078706", "0.7075011", "0.70531297", "0.70427823", "0.7022951", "0.70172155", "0.7008183", "0.7008183", "0.6980169", "0.6980169", "0.6980169"...
0.70606226
12
Give all values of Skew(DNA) We define skew(DNA) as the difference between the total number of occurrences of G and the total number of occurrences of C in DNA.
def GM5G(AUCB, a88W=False): jT0A = [0] K3Ov = 0 min = 0 cD_1 = [] for YRbF in range(len(AUCB)): if AUCB[YRbF] == 'G': K3Ov += 1 elif AUCB[YRbF] == 'C': K3Ov -= 1 jT0A.append(K3Ov) chNa = oyIN.min(jT0A) for YRbF in range(len(jT0A)): if j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EYny(ytkQ):\n bVnK = ytkQ.count('G') + ytkQ.count('g')\n K88L = ytkQ.count('C') + ytkQ.count('c')\n if bVnK + K88L == 0:\n return 0.0\n return float(bVnK - K88L) / float(bVnK + K88L)", "def cCvg(l5nL):\n uRwD = 0\n ZBHM = [0]\n for P8oC in l5nL:\n if P8oC == 'G':\n ...
[ "0.7620534", "0.7251302", "0.70270246", "0.6922066", "0.66534615", "0.66199076", "0.61173785", "0.6054853", "0.5902729", "0.5898459", "0.58499765", "0.5843475", "0.5835656", "0.5742642", "0.57381797", "0.57263863", "0.5724093", "0.56867915", "0.5681886", "0.56621575", "0.5636...
0.66199297
5
Constructs a new checkbox, forwarding most of the elements to the underlying Checkbox and Text.
def FIMM(YKHO, _AKB=None, WKvO=0, LVAh=0, _I4X=None, nMNv=None, Wdjc=True, l5Ny='', uWdY=16, M5qt=False, y_EG=None, LMvu=100, etR_=True): bCLD.__init__(YKHO) if nMNv is None: nMNv = [] if y_EG is None: y_EG = SoA4(1) if not etR_: y_EG = SoA4(1.0, 0, 0.28) YKHO.text_color = y_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oeni(l5Ny):\n FvrG.uiNewCheckbox.restype = gk2W.POINTER(gAQG)\n return FvrG.uiNewCheckbox(bytes(l5Ny, 'utf-8'))", "def eN4u(YKHO, l5Ny, UW_c, MWtk, G3WP=True, etR_=True, aAh5=True):\n G0yO = x5x0.QCheckBox('' if aAh5 else l5Ny, YKHO)\n YKHO.control.layout().addWidget(G0yO)\n xFfn = None\n i...
[ "0.7514792", "0.7492587", "0.6925257", "0.6842509", "0.6830381", "0.66930974", "0.6652419", "0.64220405", "0.63115245", "0.6304834", "0.6286391", "0.6174572", "0.6149249", "0.6120229", "0.6061441", "0.6008671", "0.5982424", "0.5975624", "0.5966255", "0.58634454", "0.5833025",...
0.658864
7
Returns the initial action of the episode. The initial action has an intent of request, required init. inform slots and a single request slot.
def iO2K(YKHO): return YKHO._default_response()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyTm(YKHO):\n pass", "def xT8s(YKHO, rNYq):\n YKHO._reset_state()\n YKHO._record_observation(rNYq)\n if not YKHO.eval_mode:\n YKHO._train_step()\n YKHO._rng, YKHO.action = GHEz(YKHO.network_def, YKHO.online_params, YKHO.state, YKHO._rng, YKHO.num_actions, YKHO.eval_mode, YKHO.epsilon_ev...
[ "0.69279313", "0.6456787", "0.6360084", "0.6162056", "0.6162056", "0.6141457", "0.60358584", "0.5961095", "0.59052217", "0.5874249", "0.5874249", "0.58554894", "0.5850194", "0.5831294", "0.5795817", "0.57878214", "0.5760197", "0.5760197", "0.5760197", "0.57133555", "0.5710202...
0.62246037
3
Override for the save method to save last_updated_by.
def xkzz(YKHO, *qIxc, **B2fa): CBIr = B2fa.pop('user', None) if not CBIr: raise ValueError('User not present in the model') if not hasattr(YKHO, 'owner'): YKHO.owner = CBIr elif not YKHO.can_be_edited(CBIr): raise ValueError("User can't edit the model") YKHO.last_updated_by =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xYFR(YKHO):\n return YKHO._updated_by", "def TM74(YKHO, TM74):\n YKHO._last_modified_by = TM74", "def TM74(YKHO, TM74):\n YKHO._last_modified_by = TM74", "def FH7Z(YKHO, FH7Z):\n YKHO._last_updated_user = FH7Z", "def TM74(YKHO):\n return YKHO._last_modified_by", "def xkzz(YKHO, *qIxc, ...
[ "0.72228736", "0.71517086", "0.71517086", "0.7073198", "0.70058876", "0.6979467", "0.6979467", "0.6963288", "0.6963288", "0.6957804", "0.6943515", "0.6943515", "0.6943515", "0.693549", "0.6928816", "0.6928816", "0.6928816", "0.6928816", "0.6928816", "0.6928816", "0.6860237", ...
0.72639173
0
Mutator for when subclass constructors don't require cursor.
def rTBL(YKHO, N1p7): YKHO._cursor = N1p7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, N1p7):\n YKHO.__cursor = N1p7", "def FIMM(YKHO, N1p7, YAg3):\n super().__init__(N1p7)\n YKHO.mapper = YAg3", "def FIMM(YKHO, N1p7):\n YKHO.cursor = N1p7\n YKHO.number = None", "def FIMM(YKHO, N1p7, xUwc):\n super(HYix, YKHO).__init__(delegate=N1p7)\n YKHO.collection = xUwc...
[ "0.74894917", "0.72496176", "0.6938491", "0.68265224", "0.65540683", "0.64049953", "0.6363986", "0.6246955", "0.62277246", "0.62063074", "0.616438", "0.615433", "0.6148705", "0.6144118", "0.6130303", "0.6124155", "0.60981894", "0.60981894", "0.60981894", "0.60981894", "0.6092...
0.0
-1
Returns this C2 objects api key
def tgzD(YKHO): return ('c2Key', YKHO.key)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJDA(YKHO):\n return YKHO.__creds.api_key_v2", "def rLF4(YKHO):\n bD7m = '{0}/{1}'.format(YKHO.get_url(), 'api_key')\n return (Xqgu.Request('GET', bD7m), gpan.parse_json)", "def rJDA(YKHO):\n return YKHO._api_key", "def rJDA(YKHO):\n return YKHO._api_key", "def WXSU(YKHO):\n return 2"...
[ "0.8433575", "0.8266869", "0.821526", "0.8186403", "0.814696", "0.8023356", "0.79617304", "0.7920744", "0.79091537", "0.7908278", "0.78520316", "0.7847541", "0.77555144", "0.77447164", "0.7735256", "0.7735256", "0.7735256", "0.7735256", "0.7720743", "0.7673294", "0.7655956", ...
0.0
-1
Returns The Version Number Of The Specified Package POM query [package] package the name of the package to query
def xDcj(B5hb: str, pmON: str=None): nPrm = QRUm(B5hb, pmON) G9jH.info('{0} - v{1}'.format(nPrm['name'], nPrm['version']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOzY(hxGQ: str) -> str:\n Mkmy = G4JS.get(Hy7s.path.join('https://pypi.org/pypi/', hxGQ, 'json'))\n return Mkmy.json().get('info').get('version')", "def gurJ(YKHO):\n bD7m = '{0}/version'.format(YKHO.base_url)\n RKD7.info('Looking for package version: {0}'.format(bD7m))\n _hkX = c295(bD7m, wai...
[ "0.70270133", "0.6997502", "0.6595785", "0.6582613", "0.6560019", "0.6503381", "0.64809316", "0.6478962", "0.647078", "0.64407796", "0.6434716", "0.6428957", "0.6428314", "0.6407508", "0.6405862", "0.637893", "0.637893", "0.637893", "0.637893", "0.637893", "0.637893", "0.63...
0.6359974
24
Compute the solid surface density of a planet or planetary system using a given prescription for the feeding zone width. Wrapper function that calls the appropriate function based on the `prescription` string.
def D98N(E3D9, A3Vt, jzdc, zXq_=1.0, exwG=10.0, J719='CL2013'): if J719 == 'CL2013': return fcB5(E3D9, jzdc) elif J719 == 'S2014': return eceg(E3D9, A3Vt, jzdc, Mstar=zXq_) elif J719 == 'nHill': return OlBb(E3D9, jzdc, Mstar=zXq_, n=exwG) elif J719 == 'RC2014': return aKX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQS1(Cs6h=None, nIjK=None):\n rR8k = oyIN.meshgrid(Cs6h.x, Cs6h.y, Cs6h.z, indexing='ij')\n if nIjK['crd_sys'] == 'sph':\n x6aZ = rR8k[0]\n rxEN = rR8k[1]\n _oWe = rR8k[2]\n CAzz = x6aZ * oyIN.sin(rxEN) * oyIN.sin(_oWe)\n Jd40 = x6aZ * oyIN.sin(rxEN) * oyIN.cos(_oWe)\n ...
[ "0.5307925", "0.5081325", "0.5049184", "0.49861205", "0.49392715", "0.49240175", "0.49195012", "0.48628402", "0.48551458", "0.48538178", "0.4841421", "0.48165292", "0.47777972", "0.47717533", "0.47643062", "0.4756159", "0.47501224", "0.47377303", "0.47330248", "0.46848333", "...
0.6673628
0
Gated recurrent unit (GRU) with nunits cells.
def nrOS(YKHO, g4y1, QTBn, rrBf=None): with cmJd.variable_scope(rrBf or type(YKHO).__name__): with cmJd.variable_scope('Gates'): Mkmy, P6bq = _WqI.split(1, 2, bLAM.linear([g4y1, QTBn], 2 * YKHO._num_units, True, 1.0)) Mkmy, P6bq = (ZylS.sigmoid(Mkmy), ZylS.sigmoid(P6bq)) with...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pNpi(cuu0, hr1G):\n VmPb = ZylS.nn.rnn_cell.GRUCell(cuu0)\n if hr1G:\n Aofo = ZylS.nn.rnn_cell.DropoutWrapper(VmPb, output_keep_prob=1 - hr1G)\n return Aofo", "def LXM1(YKHO, cuu0):\n return S14z.LayerNormGRUCell(cuu0, w_initializer=YKHO.uniform_initializer, u_initializer=ZnqD, b_initializ...
[ "0.7217025", "0.6654688", "0.6297134", "0.62698615", "0.58967686", "0.5840164", "0.570657", "0.56824994", "0.5670167", "0.56192416", "0.56141967", "0.560903", "0.55835325", "0.5581533", "0.55483365", "0.55423665", "0.5536661", "0.55100894", "0.54998815", "0.54421973", "0.5382...
0.0
-1
Calculated value of this creature's Armor Class. By default, this will simply be the Base AC for the creature, which allows us to specify the AC of any creature without worrying about what kind of armor they are wearing. If a creature does wear armor, or you want to specify the type of armor that a creature is wearing,...
def _P6x(YKHO): if YKHO.armor: return YKHO.armor.ac return 10 + YKHO.dexterity
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ul0g(YKHO):\n b7hB = YKHO._getAttribute(URbA.armorCapacity)\n r50I = YKHO._getAttribute(URbA.armorEM)\n ZOuE = YKHO._getAttribute(URbA.armorExplosive)\n twLp = YKHO._getAttribute(URbA.armorKinetic)\n rvlj = YKHO._getAttribute(URbA.armorThermal)\n r50I = 1.0 - r50I\n ZOuE = 1.0 - ZOuE\n ...
[ "0.59381443", "0.5713177", "0.5641947", "0.5638505", "0.5638505", "0.56049937", "0.5477431", "0.5249133", "0.5096839", "0.5020912", "0.5011532", "0.49466097", "0.49433625", "0.49419677", "0.49131262", "0.48908597", "0.48858428", "0.48436353", "0.48379123", "0.47722226", "0.47...
0.6977443
0
Gets distance to another creature.
def s7yO(YKHO, Elif): nJ9F, nxyw = (YKHO.x, YKHO.y) o4D3, si3g = (Elif.x, Elif.y) pImw = epAf.sqrt((o4D3 - nJ9F) ** 2 + (si3g - nxyw) ** 2) return int(pImw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def distance(YKHO):\n return round(await YKHO._rpc.distance(), 2)", "def zG70(YKHO) -> int:\n return YKHO.get_measurement_data().distance", "def Ayfi(YKHO) -> float:\n return YKHO._dist_two_wire()", "def inh_(YKHO, Elif):\n return ((YKHO.x - Elif.x) ** 2 + (YKHO.y - Elif.y) ** 2 + (YKHO.z -...
[ "0.68532616", "0.68238944", "0.6821477", "0.68016034", "0.6793896", "0.6768048", "0.67638505", "0.67339736", "0.67150325", "0.66852754", "0.66578656", "0.6630933", "0.6629661", "0.6611882", "0.66076887", "0.6583222", "0.6565339", "0.6545736", "0.6526474", "0.6525149", "0.6522...
0.6460717
27
Return a copy of this model's fields dict
def TnMw(YKHO): return YKHO.__fields.copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_D6(YKHO):\n YKHO.update()\n return YKHO.__fields", "def uqz6(YKHO, C3ST):\n V_D6 = super(whJN, YKHO).copy_fields(C3ST)\n for mWFP, Jyyj in YKHO.additional_fields.items():\n assert mWFP not in V_D6\n assert hasattr(YKHO, 'get_%s_value' % mWFP)\n V_D6[mWFP] = Jyyj\n return...
[ "0.7558283", "0.7336941", "0.7323113", "0.7322853", "0.73118067", "0.72500736", "0.7145941", "0.7096612", "0.7065696", "0.703924", "0.70093334", "0.698942", "0.6987348", "0.6984674", "0.6984674", "0.6967096", "0.69602734", "0.69551945", "0.6936931", "0.6869824", "0.6834468", ...
0.80127245
0
Return a list of comments attached to this model
def qX9M(YKHO): return YKHO._client.get_comments(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tj1O(YKHO):\n return Tj1O.Comments(YKHO)", "def Tj1O(YKHO):\n return Tj1O.Comments(YKHO)", "def Tj1O(YKHO):\n return Z9rn.Comments(YKHO)", "def Tj1O(YKHO):\n return Z9rn.Comments(YKHO)", "def Tj1O(YKHO):\n return Z9rn.Comments(YKHO)", "def Tj1O(YKHO):\n return YKHO._comments", "de...
[ "0.80576783", "0.80056524", "0.80052936", "0.80052936", "0.80052936", "0.79382443", "0.79382443", "0.79171765", "0.78347415", "0.76968265", "0.76853406", "0.7678108", "0.7671855", "0.7671855", "0.7671855", "0.755696", "0.75507385", "0.7383259", "0.72944283", "0.7283822", "0.7...
0.81764853
0
set weight data inplace
def i7WW(yzQ0): ROpF = yzQ0.shape if len(ROpF) == 4: YRbF, z1Rg, P6bq, Ty9i = ROpF G1Hx = oyIN.sqrt(6 / (YRbF * P6bq * Ty9i + z1Rg * P6bq * Ty9i)) yzQ0.data.uniform_(-G1Hx, G1Hx) elif len(ROpF) == 2: G1Hx = oyIN.sqrt(6 / sum(ROpF)) yzQ0.data.uniform_(-G1Hx, G1Hx) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n pass", "def KFtY(YKHO, upAO):\n YKHO.weight = upAO", "def pOke(YKHO, yzQ0):\n raise NotImplementedError", "def SGlP(YKHO, IS5K):\n YKHO.weights = IS5K", "def sNuA(YKHO, _mSQ):\n YKHO.weights = _mSQ", "def MXTe(YKHO, _mSQ):\n GZiu = YKHO.collectAllBranches()\n for YR...
[ "0.75657773", "0.754553", "0.7425873", "0.74237925", "0.7361544", "0.7260426", "0.72409207", "0.71960425", "0.7179694", "0.7084656", "0.7084499", "0.7072498", "0.7050161", "0.70361066", "0.70343643", "0.7027935", "0.7006916", "0.7006916", "0.7006916", "0.70027024", "0.6999562...
0.6111451
95
Ensure the insufficient error is not raised when the only available quantity is in a stock from the collection point warehouse without shipping zone assigned.
def kDd6(LmZ4, Vmk7, Egzq, CU0q): s7ch = Egzq Nqlg, bGrB = PYOu(s7ch) assert s7ch.lines.count() == 1 assert _bYM(Nqlg) == 3 zFiD = s7ch.lines.first() pPTc = zFiD.variant pPTc.stocks.all().delete() okPj.objects.create(warehouse=CU0q, product_variant=pPTc, quantity=10) assert zFiD.quan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePEW(YKHO):\n if YKHO.quantity > YKHO.item.quantity:\n return '%s Please adjust your cart.' % w21X.get_insufficient_stock_msg(YKHO.item.quantity)\n return None", "def fbA4(YKHO):\n FIL5 = YKHO._uncertain_demand.excess_stock\n _l9b = sum([int(ZfUD) for ZfUD in YKHO._data_set.values()]) // l...
[ "0.687709", "0.66952956", "0.66347027", "0.643843", "0.63761526", "0.62379915", "0.61167043", "0.60353667", "0.589825", "0.5877646", "0.5852481", "0.58428013", "0.58387107", "0.5826534", "0.5826123", "0.57833457", "0.5768951", "0.57357526", "0.57158136", "0.5715606", "0.57154...
0.0
-1
Ensure the insufficient error is raised when the only available quantity is in a stock from the collection point warehouse without shipping zone assigned and the checkout has shipping method set.
def U4W9(Vmk7, Egzq, CU0q, P3iv): s7ch = Egzq zFiD = s7ch.lines.first() pPTc = zFiD.variant pPTc.stocks.all().delete() okPj.objects.create(warehouse=CU0q, product_variant=pPTc, quantity=10) s7ch.shipping_method = P3iv s7ch.save(update_fields=['shipping_method']) TpbX = maau.Node.to_globa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePEW(YKHO):\n if YKHO.quantity > YKHO.item.quantity:\n return '%s Please adjust your cart.' % w21X.get_insufficient_stock_msg(YKHO.item.quantity)\n return None", "def xWtr(YKHO):\n if any((not vC9B.is_available for vC9B in YKHO.mapped('order_line'))):\n raise cAM_(bGrB('Some of your pr...
[ "0.6648967", "0.659757", "0.643182", "0.6251574", "0.60807776", "0.596315", "0.590114", "0.5886054", "0.58095294", "0.5726763", "0.5680988", "0.5662024", "0.5650994", "0.56398505", "0.56123585", "0.56022024", "0.55952126", "0.5587652", "0.5536761", "0.5526824", "0.55253875", ...
0.5003589
85
Yield (value, old_value) for transitions matching the predicate Transitions that happen during the body of the loop are discarded.
async def transitions(YKHO, lssx=i5f6) -> eZmq[AzJI[BBao, BBao]]: lgNN = j21p(lssx) with YKHO._edge_results.open_ref(lgNN) as Aofo: while True: await Aofo.event.park() yield Aofo.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pxvS(YKHO):\n for QTBn in YKHO.iter_states():\n for a1PO in QTBn.transitions:\n yield a1PO", "def UlCL(YKHO, QTBn):\n if len(set(QTBn)) < len(QTBn):\n yield YKHO.STOP_STATE\n return\n for UdM9 in Ni9Y(YKHO.num_players):\n for PIsC in Ni9Y(UdM9):\n LS...
[ "0.63914335", "0.6155595", "0.61059815", "0.5747047", "0.5727003", "0.56923145", "0.56873107", "0.55883396", "0.54256326", "0.54001474", "0.5387422", "0.5338172", "0.53270626", "0.5282172", "0.52739054", "0.5259077", "0.52282995", "0.52177453", "0.52051824", "0.5199539", "0.5...
0.7259284
0
Split a dataset into train, validation and test sets
def JWSc(ls4s, FI8Q, ROaS, _bo4='temp', QdYi=False): FHyi = int(ls4s.shape[0] * 0.6) UrfN = int(ls4s.shape[0] * 0.2) if QdYi: print('Sampleamos datasets de pasado a futuro') EvQg = ls4s.iloc[:FHyi, :] ClYY = ls4s.iloc[FHyi:FHyi + UrfN, :] QOe9 = ls4s.iloc[FHyi + UrfN:, :] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)", "def cTf9(onqj):\n XxFT, t4zr = bHtP(onqj, test_size=0.2, random_state=42)\n return (XxFT, t4zr)", "def FJfc(YKHO, NI2...
[ "0.8654461", "0.8391163", "0.81085074", "0.79774284", "0.7956838", "0.795204", "0.78373057", "0.78208876", "0.781591", "0.77969235", "0.7786244", "0.77457815", "0.7740815", "0.77335304", "0.7690326", "0.7671012", "0.7666546", "0.7659906", "0.7630787", "0.7628178", "0.76263815...
0.0
-1
Function to test API can fetch all upcoming meetups
def VF2A(YKHO): ARAQ = '/api/v1/meetups' ZCzZ = '/api/v1/meetups/upcoming' hU0J = YKHO.client.post(ARAQ, data=qQXR.dumps(YKHO.meetup2), content_type='application/json') YKHO.assertEqual(hU0J.status_code, 201) xeC1 = YKHO.client.get(ZCzZ) YKHO.assertEqual(xeC1.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GTTU(YKHO):\n return YKHO.client.get('api/v2/meetups/upcoming', headers={'Authorization': '{}'.format(YKHO.token())})", "def sjnX(YKHO):\n YKHO.post_meetup()\n return YKHO.client.get('api/v2/meetups', headers={'Authorization': '{}'.format(YKHO.token())}, data=qQXR.dumps(YKHO.meetup), content_type='a...
[ "0.7668502", "0.7384891", "0.727832", "0.7067743", "0.6885968", "0.68669206", "0.68582547", "0.67186373", "0.66466075", "0.66378874", "0.66364574", "0.6597534", "0.65974855", "0.6593673", "0.65598637", "0.6552853", "0.6494315", "0.6456085", "0.64386606", "0.63950986", "0.6316...
0.82867295
0
Get a list of bombs placed on the map.
def KS9F(YKHO) -> x1iM[PvyL]: return YKHO._bombs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeuS(YKHO):\n return YKHO._balls", "def GiuV(YKHO):\n return YKHO.boogies", "def gj8G(YKHO, Ov5A):\n HX40 = []\n uBqD = YKHO.getFoodYouAreDefending(Ov5A)\n for oeNL in YKHO.babies:\n if not uBqD[oeNL[0]][oeNL[1]]:\n HX40.append(oeNL)\n return HX40", "def HaqE(YKHO):\n ...
[ "0.63407654", "0.62356144", "0.62017345", "0.6169627", "0.6129641", "0.60858697", "0.6035784", "0.6017408", "0.5992683", "0.5932536", "0.5927393", "0.59258556", "0.5883961", "0.5883961", "0.5883961", "0.5883961", "0.5861066", "0.58583623", "0.58210886", "0.58197016", "0.58180...
0.7847332
0
The ID of the Vpc Endpoint.
def _R4q(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'endpoint_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def YduB(YKHO):\n return YKHO._get_attribute('endpointSetId')",...
[ "0.773587", "0.773587", "0.773587", "0.72390574", "0.715829", "0.715829", "0.7136282", "0.6914552", "0.6914552", "0.6826959", "0.6785585", "0.6785585", "0.66851157", "0.6667838", "0.66392636", "0.65060544", "0.64781326", "0.64507943", "0.63870335", "0.63588077", "0.63217807",...
0.73253644
6
The ID of the Vpc Endpoint.
def _R4q(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'endpoint_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'end...
[ "0.773587", "0.773587", "0.773587", "0.73253644", "0.73253644", "0.73253644", "0.73253644", "0.72390574", "0.7136282", "0.6914552", "0.6914552", "0.6826959", "0.6785585", "0.6785585", "0.66851157", "0.6667838", "0.66392636", "0.65060544", "0.64781326", "0.64507943", "0.638703...
0.715829
9
The ID of the Vpc Endpoint.
def _R4q(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'endpoint_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoint_id')", "def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoi...
[ "0.73253644", "0.73253644", "0.73253644", "0.73253644", "0.72390574", "0.715829", "0.715829", "0.7136282", "0.6914552", "0.6914552", "0.6826959", "0.6785585", "0.6785585", "0.66851157", "0.6667838", "0.66392636", "0.65060544", "0.64781326", "0.64507943", "0.63870335", "0.6358...
0.773587
2
Returns a dictionary whose keys are the field names used in the `simplsaleform` form in the index document, and whose values are empty strings. Uses all fields if `required` is `False`, or only the required fields if `required` is `True`.
def V_D6(YKHO, jeGQ=False): L03z = MKlR.simplsale_form(YKHO._index_xml) if jeGQ: jeGQ = '.required' else: jeGQ = '' UqER = gqxp('input[type!="submit"]%s, select%s' % (jeGQ, jeGQ))(L03z) ZWCE = [] for tTpl in UqER: mWFP = tTpl.attrib.get('name', None) if mWFP is no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wlkg(i9MA):\n nPrm = PWgb(i9MA.data[0])\n UOrz = dmSv(i9MA.schema, primary_search='isRequired', search_list=['label', 'name'])\n nPQe = []\n for EzFY in nPrm.items():\n for ZfUD in UOrz:\n if EzFY[0].endswith(ZfUD['name']):\n if not EzFY[1].strip():\n ...
[ "0.64026296", "0.62339735", "0.61111134", "0.59816545", "0.5976575", "0.5851171", "0.58145267", "0.5790461", "0.5763283", "0.5663467", "0.5602248", "0.55715513", "0.5508372", "0.550706", "0.5503391", "0.549901", "0.5494368", "0.546902", "0.54296863", "0.53538823", "0.5351472"...
0.70472145
0
Find the lowest positive integer that does not exist in the array
def QveX(ezWE): ezWE.sort() vhbB = [] for YRbF in ezWE: if YRbF >= 1: vhbB.append(YRbF) sWRn = 1 for YRbF in vhbB: if sWRn < YRbF: return sWRn sWRn = YRbF + 1 return sWRn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSkA(xYvp):\n KCHu = set(xYvp)\n for YRbF in range(1, len(xYvp) + 1):\n if YRbF not in KCHu:\n return YRbF", "def mNcg(YKHO, ezWE):\n min = HwRy.maxint\n EmMj = False\n for YRbF in ezWE:\n if YRbF > 0 and YRbF < min:\n min = YRbF\n EmMj = True\n ...
[ "0.79331464", "0.7643256", "0.7472253", "0.74637127", "0.74608225", "0.73176694", "0.7220217", "0.72103685", "0.7183478", "0.7179758", "0.7147383", "0.7133139", "0.7080835", "0.70492285", "0.7017557", "0.69876224", "0.6985547", "0.69757926", "0.69272476", "0.6891117", "0.6771...
0.7707484
1
First check username key is present in request if not then set name = 'anonymous' Return true if username matches
def m8z6(YKHO, QePW, *qIxc, **B2fa): mWFP = QePW.data.get('username', 'anonymous') if mv1M.objects.filter(username=mWFP).exists(): return oGir({'message': True}) return oGir({'message': False})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LCZz():\n DW23 = P4t4.users\n NtEF = QePW.data.decode('utf-8')\n if NtEF in DW23:\n return oGir('true')\n else:\n return oGir('false')", "def nOuw():\n NtEF = QePW.get_json()['username']\n if TpBX(NtEF):\n return '0'\n else:\n return '1'", "def GfdN():\n ...
[ "0.70367914", "0.6733046", "0.67106086", "0.660051", "0.6581935", "0.655372", "0.6491588", "0.64877266", "0.6487482", "0.6452048", "0.637894", "0.6365474", "0.63035846", "0.6278298", "0.62664443", "0.62576634", "0.62446654", "0.62446654", "0.622904", "0.6188523", "0.617552", ...
0.7347999
0
Return the total children in subtree excluding root (recursive)
def ekKQ(YKHO): Npgh = YKHO.children return 0 if not Npgh else len(Npgh) + sum([Z9rn.n_children for Z9rn in Npgh])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YbdE(YKHO, TZvm=True):\n UHFx = len(YKHO._children)\n if not TZvm:\n return UHFx\n wjRY = UHFx\n for exwG in Ni9Y(UHFx):\n wjRY += YKHO._children[exwG].GetChildrenCount()\n return wjRY", "def Kytq(YKHO):\n if YKHO.children is None:\n return 0\n pcsc = 0\n for aUGN...
[ "0.73043585", "0.7156632", "0.7156116", "0.7147877", "0.71018714", "0.7045175", "0.70252013", "0.70043415", "0.6913155", "0.69039863", "0.68612677", "0.6803081", "0.6741313", "0.6733614", "0.6731992", "0.6718477", "0.66994846", "0.6696368", "0.66809255", "0.6673337", "0.66616...
0.7126411
4
Return max nodewidth of entire subtree (recursive)
def OfOG(YKHO): Npgh = YKHO.children return 1 if not Npgh else sum([Z9rn.n_cols for Z9rn in Npgh])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def STs4(YKHO, tk5Y: Optional[TreeNode]) -> int:\n vexM = MUE7([(tk5Y, 1)])\n gpgb = 1\n while len(vexM) > 0:\n mxv6 = MUE7()\n z1Kg = float('-inf')\n wO06 = float('+inf')\n for Q6kx, dQgj in vexM:\n z1Kg = max(z1Kg, dQgj)\n wO06 = min(wO06, dQgj)\n ...
[ "0.7495284", "0.69656545", "0.6704925", "0.66904795", "0.6603112", "0.6563875", "0.654226", "0.6518026", "0.6473751", "0.64729375", "0.6471312", "0.644005", "0.64343053", "0.6385228", "0.63733995", "0.6362077", "0.6343214", "0.63332254", "0.6311296", "0.6300646", "0.6284995",...
0.0
-1
Given the state and action, return the probability of next step and corresponding rewards.
def JxU2(YKHO, QTBn, XeOP): if QTBn + XeOP == 100: vOGg = 1 else: vOGg = 0 return [(QTBn + XeOP, YKHO._p_head, vOGg), (QTBn - XeOP, 1 - YKHO._p_head, 0)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eexa(YKHO, QTBn, XeOP, rxHc):\n return YKHO.get_next_states(QTBn, XeOP).get(rxHc, 0.0)", "def YPaw(YKHO, XeOP):\n KCHu = YKHO.get_state()\n UqER = oyIN.arange(YKHO.S)\n _mSQ = YKHO.nextStateProbability[KCHu, XeOP]\n DGn2 = mrPm(UqER, _mSQ, k=1)[0]\n vOGg = YKHO.rewardsTable[KCHu, XeOP, DGn2...
[ "0.7852668", "0.7634903", "0.76233506", "0.7513694", "0.7425609", "0.73781925", "0.7304631", "0.73019123", "0.71331304", "0.71246684", "0.7115571", "0.703985", "0.7026724", "0.7026561", "0.70207936", "0.7015552", "0.7014987", "0.70135736", "0.69894207", "0.6953274", "0.694764...
0.8235246
0
Convert a vector of variables to a dictionary with factor keys Arguments
def cLiu(YKHO, iArr): sjBt = {'x': iArr[:]} return sjBt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cLiu(YKHO, iArr):\n sjBt = {'booking_limits': iArr[:]}\n return sjBt", "def fcOl(YKHO, **B2fa) -> cuzp[av29, WnaT]:\n return {mWFP: BWXx for mWFP, BWXx in zip(YKHO.get_var_names(**B2fa), YKHO.get_var_values(**B2fa))}", "def ZboU(NArs, WKvO):\n SGPK = {}\n for YRbF, XP5J in enumerate(W5Xi.ord...
[ "0.6585375", "0.6334172", "0.62881106", "0.6264055", "0.6083083", "0.606713", "0.59793967", "0.5959856", "0.5935993", "0.58753973", "0.5859729", "0.5824503", "0.5803784", "0.58024216", "0.5797153", "0.57637614", "0.5740339", "0.5739034", "0.5715001", "0.57036984", "0.56897676...
0.73009545
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.imshow(Bcwd, interp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.7917871", "0.791609...
0.7980955
6
Checks if any of the pixels touching the perimeter of bounding box bb are green. Returns which side has green touching it ('RIGHT', 'BOTTOM', 'LEFT', 'TOP') Returns 'NONE' if no green is touching Returns 'EDGE' if the bounding box is on the edge of the pic
def EOm1(YKHO, edvT: list, B7w1: int=1) -> str: o4D3, si3g, ajwV, skBL = (edvT[0], edvT[1], edvT[2], edvT[3]) if not ajwV + B7w1 >= len(YKHO.bin_pic[0]) and (not skBL + B7w1 >= len(YKHO.bin_pic)): if YKHO.bin_pic[skBL][ajwV]: return 'BR' if not o4D3 - B7w1 < 0 and (not skBL + B7w1 >= len...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QhQV(YKHO, VXjJ):\n Z2VG = oyIN.array([0, 0, 160])\n kHLB = oyIN.array([130, 130, 255])\n Q31e = XC5k.inRange(VXjJ, Z2VG, kHLB)\n eg6j = oyIN.array([0, 120, 0])\n ffr8 = oyIN.array([90, 255, 90])\n CdAK = XC5k.inRange(VXjJ, eg6j, ffr8)\n Jg_n = oyIN.array([0, 140, 140])\n MiOZ = oyIN.ar...
[ "0.61984855", "0.6080677", "0.59067667", "0.5896578", "0.5859335", "0.5846071", "0.584375", "0.5814055", "0.5810937", "0.57170284", "0.56967115", "0.56700456", "0.56310785", "0.5627564", "0.56259114", "0.56192946", "0.56024235", "0.55927366", "0.558801", "0.5559658", "0.55572...
0.6111433
1
Converts pixels to inches Returns a float of inches
def RK00(YKHO, Xlvp: float) -> float: return Xlvp / YKHO.ratio[0] * YKHO.ratio[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y5_h(exwG):\n return exwG * 25.4", "def A5xF(zNig):\n return zNig / 2.54", "def A5xF(zNig):\n return zNig / 2.54", "def A5xF(zNig):\n return zNig / 2.54", "def fHv_(MBMw):\n odFJ = MBMw * 0.0393701\n return odFJ", "def HEa8(y5_h):\n cpvk = y5_h * 25.4\n return cpvk", "def _N...
[ "0.76526505", "0.7137898", "0.7137898", "0.7137898", "0.71243626", "0.7078315", "0.70218575", "0.6984374", "0.6902329", "0.6757787", "0.65595484", "0.6542591", "0.6418504", "0.6405155", "0.62649655", "0.62368655", "0.61859536", "0.6095458", "0.6062064", "0.597879", "0.5891508...
0.78281313
0
Redirects to __eq__() of dict. This redirection never points to OrderedDict to ensure comparisons are always orderinsensitive, i.e. behaviour doesn't differ between Python versions.
def xa14(YKHO, Elif): return dict.__eq__(YKHO, Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif: object) -> bool:\n if not isinstance(Elif, tTte):\n return NotImplemented\n _6Tf = YKHO.to_list()\n Gc6L = Elif.to_list()\n IzcV = True\n for d6pt in range(len(_6Tf)):\n if _6Tf[d6pt] != Gc6L[d6pt]:\n IzcV = False\n break\n return IzcV", ...
[ "0.66268706", "0.6567866", "0.65340704", "0.64928705", "0.6467564", "0.6456129", "0.6433696", "0.63999003", "0.63939327", "0.63929594", "0.63836545", "0.63836545", "0.63836545", "0.63836545", "0.63836545", "0.63836545", "0.63836545", "0.63836545", "0.63836545", "0.63836545", ...
0.68895584
0
Returns t_max such that Curve.max_x == Curve(t_max).x.
def hnkK(YKHO): return YKHO.T.max_y_arg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qGdC(YKHO):\n \"\"\"\n if hasattr(self,'k_of_t'):\n return max([ \n self.s_of_t[-1][0],\n self.i_of_t[-1][0],\n self.r_of_t[-1][0],\n self.k_of_t[-1][0],\n ])\n ...
[ "0.7077227", "0.7016823", "0.67148685", "0.6648306", "0.6616324", "0.65650964", "0.64899904", "0.64853275", "0.6459124", "0.6455219", "0.63652873", "0.63601995", "0.6333582", "0.6306713", "0.62753797", "0.62158287", "0.618923", "0.61499214", "0.61490244", "0.61484826", "0.613...
0.61832696
17
Tokenizes sentence into list of words.
def LNg7(yAmx: str) -> bdIy[str]: return yAmx.split()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Htwi(yAmx):\n RLKa = ZbWC.findall(H_yU, yAmx)\n V22M = [WKvO.lower() for WKvO in RLKa if WKvO is not '']\n return V22M", "def wr3U(yAmx):\n b5Tf = yAmx.lower()\n D5BC = b5Tf.translate(EKJ3, vIwR.punctuation)\n vwCE = D5BC.split()\n return vwCE", "def bb19(yAmx: str) -> x1iM[str]:\n ...
[ "0.8311132", "0.82815385", "0.8184632", "0.8165114", "0.8102701", "0.8020231", "0.7940098", "0.7853865", "0.77405834", "0.7700952", "0.76840514", "0.76840514", "0.7655818", "0.7613874", "0.75969857", "0.7580177", "0.75762975", "0.7571726", "0.7555356", "0.7545908", "0.7539692...
0.73383605
25
returns a color map of length n
def owgR(exwG): ku7w = QrM1.get_cmap('jet') tceN = Jw9H.Normalize(vmin=0, vmax=exwG - 1) y1f3 = CbNT.ScalarMappable(norm=tceN, cmap=ku7w) wg_B = [] for YRbF in range(exwG): wg_B.append(y1f3.to_rgba(YRbF)) return wg_B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YDzg(exwG=256, HBfW=False):\n\n def KowF(nRIr, or8S):\n return nRIr & 1 << or8S != 0\n yDqo = 'float32' if HBfW else 'uint8'\n iMGt = oyIN.zeros((exwG, 3), dtype=yDqo)\n for YRbF in range(exwG):\n Mkmy = Oa1e = Fg_i = 0\n Z9rn = YRbF + 1\n for r845 in range(8):\n ...
[ "0.7574552", "0.7504988", "0.7497234", "0.7485863", "0.7306275", "0.7213055", "0.7178517", "0.710654", "0.70834017", "0.70565057", "0.70533997", "0.69345397", "0.69345397", "0.69345397", "0.69251037", "0.6922169", "0.69220185", "0.68671066", "0.68671066", "0.68399334", "0.683...
0.82131743
0
Return datetime for start/end/time service fields.
def KQTr(BWXx: datetime | time) -> qcWV: if isinstance(BWXx, ITS7): BWXx = qcWV.combine(GhSD.now().date(), BWXx, GhSD.DEFAULT_TIME_ZONE) if isinstance(BWXx, qcWV): BWXx = BWXx.replace(tzinfo=GhSD.DEFAULT_TIME_ZONE) if BWXx > GhSD.now(): raise sUXu('Time cannot be in the future.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bCOv(YKHO):\n return YKHO.get_t_sect()['datetime_start']", "def EKFi(YKHO):\n JvEs = YKHO.data.get('Start date')\n ejIZ = YKHO.data.get('Start time')\n AzsX = '{date} {time}'.format(date=JvEs, time=ejIZ)\n return qcWV.datetime.strptime(AzsX, YKHO.datetime_format)", "def EKFi(YKHO):\n yKcO...
[ "0.68790185", "0.6704264", "0.6635803", "0.6548719", "0.6441386", "0.64282316", "0.639078", "0.6204385", "0.61944216", "0.6174786", "0.61369276", "0.6133411", "0.607717", "0.60698336", "0.59959847", "0.5991325", "0.5990207", "0.59490895", "0.5947829", "0.59362286", "0.5931776...
0.0
-1
Inits a new DWGExporter instance.
def FIMM(YKHO, cDkb): import revitron YKHO.options = revitron.DB.DWGExportOptions().GetPredefinedOptions(revitron.DOC, cDkb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n edIe.__init__(YKHO)\n YKHO.stats['type'] = 'OGC:WFS'\n YKHO.stats['operations']['GetFeature'] = {}\n YKHO.stats['operations']['GetFeature']['hits'] = 0\n YKHO.stats['operations']['GetFeature']['resource'] = {}\n YKHO.stats['operations']['GetFeature']['resource']['param'] = 'type...
[ "0.5616383", "0.5598649", "0.55974996", "0.55959857", "0.5565842", "0.5518872", "0.5507509", "0.5499401", "0.5446955", "0.537643", "0.53444606", "0.534076", "0.5331368", "0.53230584", "0.5296864", "0.5295465", "0.52934605", "0.52815557", "0.5277366", "0.5270406", "0.52573514"...
0.5407394
9
Updates the scaling groups min/maxentities to the given and asserts the update was successful
def fGXA(YKHO, uOe2, eU1u=None, HuJK=None): if HuJK is None: HuJK = uOe2.groupConfiguration.minEntities if eU1u is None: eU1u = uOe2.groupConfiguration.maxEntities jXDs = YKHO.autoscale_client.update_group_config(group_id=uOe2.id, name=uOe2.groupConfiguration.name, cooldown=uOe2.groupConfigu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uz1J(YKHO):\n YKHO.check_for_expected_number_of_building_servers(group_id=YKHO.group.id, expected_servers=YKHO.group.groupConfiguration.minEntities)\n NzQY = YKHO.group.launchConfiguration.server.name\n YKHO._update_group_min_max_entities(group=YKHO.group, maxentities=0, minentities=0)\n y0XA = YKH...
[ "0.7216516", "0.7148849", "0.6465641", "0.63060486", "0.6302682", "0.5967253", "0.59378296", "0.5884351", "0.58251655", "0.5763512", "0.56172466", "0.55780405", "0.5543384", "0.54993975", "0.5467076", "0.5454207", "0.54506445", "0.54493207", "0.54477006", "0.5438962", "0.5428...
0.7196422
1
Individual plot of coastlines and contours.
def kwz4(epBp, i8kG, XxVm, _rfN=Qyz3, QuKp=False, FJj_='neither'): oCX7.drawcoastlines(linewidth=0.4) if QuKp: CkYf = Jw9H.LogNorm(vmin=i8kG[0], vmax=i8kG[-1]) else: CkYf = None if FJj_ == 'neither': aOK3 = oCX7.contourf(jGa_, fXrx, epBp, i8kG, cmap=YDzg, norm=CkYf) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rkds():\n c9Ni, uYBV = KT0p()\n a7wd(c9Ni[0], c9Ni[1], 'Norway', '12 Mar 2020', '#636efa', '#ef553b')\n a7wd(uYBV[0], uYBV[1], 'USA', '22 Mar 2020', '#ef553b', '#636efa')\n XksA(c9Ni, uYBV)", "def kj9G(YKHO, NXK4=False):\n QrM1.imshow(YKHO.img, cmap='gray')\n if NXK4:\n for EcVT in Y...
[ "0.70412666", "0.6614417", "0.65006864", "0.6382925", "0.6193043", "0.6115562", "0.6073851", "0.60166395", "0.6015402", "0.6015367", "0.59662664", "0.5955049", "0.59477544", "0.59382355", "0.5919831", "0.59169775", "0.5913071", "0.5907056", "0.58704096", "0.5864446", "0.58616...
0.5544565
60
This function gets checkpoint file path on disk from config.trainer.params.resume_from_checkpoint. However if it not specified, it gets checkpoint path from config.checkpoint. If config.resume is specified it gets the latest checkpoint from the config's save directory (alternatively it gets the best checkpoint if confi...
def Ww5o(YKHO) -> cuzp[str, ImMB]: pmON = YKHO.config.trainer.params.get('resume_from_checkpoint', None) if pmON is not None: carY = YKHO.is_zoo_path(pmON) DA0b = pmON if carY: xtX7 = txjk(pmON) DA0b = yHbc(xtX7) aqBD = ozgi(DA0b) GPtr = R8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8VV():\n if (vPBo.run_dir or vPBo.checkpoint_file) and vPBo.bundle_file and (not EHdI()):\n raise FWVE.SequenceGeneratorException('Cannot specify both bundle_file and run_dir or checkpoint_file')\n if vPBo.run_dir:\n xTDd = Hy7s.path.join(Hy7s.path.expanduser(vPBo.run_dir), 'train')\n ...
[ "0.7520532", "0.7513603", "0.7282059", "0.72586083", "0.7179142", "0.71524364", "0.7124582", "0.70924205", "0.70795774", "0.7073361", "0.7068264", "0.69511074", "0.69251215", "0.6899899", "0.6752437", "0.6714414", "0.6689316", "0.66751736", "0.6667077", "0.6640141", "0.661914...
0.76644295
0
Gets the data of this PageTokenListSerializer.
def nPrm(YKHO): return YKHO._data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPrm(YKHO):\n U5bT = super(IyFz.ListSerializer, YKHO).data\n return jyDv(U5bT, serializer=YKHO)", "def kxOm(YKHO) -> Yy3H:\n return YKHO._token_data", "def hJ1o(YKHO):\n raise NotImplementedError('Method \"get_token_data\" must be implemented in any derived class')", "def nPrm(YKHO) -> x1iM[K...
[ "0.69404435", "0.6879172", "0.6645009", "0.610933", "0.58847433", "0.58847433", "0.58847433", "0.5846899", "0.583798", "0.5817149", "0.5812905", "0.5810701", "0.57794315", "0.57623833", "0.5758387", "0.5758387", "0.5758387", "0.5758387", "0.57482064", "0.57482064", "0.5748206...
0.55509996
63
Sets the data of this PageTokenListSerializer.
def nPrm(YKHO, nPrm): YKHO._data = nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kxOm(YKHO, kxOm: TokenData):\n YKHO._token_data = kxOm", "def FIMM(YKHO, HB4w=None, nPrm=None):\n YKHO.openapi_types = {'next_page_token': str, 'data': x1iM}\n YKHO.attribute_map = {'next_page_token': 'next_page_token', 'data': 'data'}\n YKHO._next_page_token = HB4w\n YKHO._data = nPrm", "de...
[ "0.6960413", "0.64091283", "0.6232373", "0.6232373", "0.61686057", "0.61639905", "0.6127503", "0.60071486", "0.60071486", "0.60071486", "0.6000835", "0.5948862", "0.5945747", "0.5945747", "0.58858645", "0.58704966", "0.5861489", "0.5861489", "0.58270806", "0.58145523", "0.577...
0.5952738
16
Create a Python instance from the given DOM node. The node tag must correspond to an element declaration in this module.
def E91p(Q6kx, UyKZ=None): if UyKZ is None: UyKZ = jFQi.fallbackNamespace() return Aw3s.binding.basis.element.AnyCreateFromDOM(Q6kx, UyKZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E91p(Q6kx, UyKZ=None):\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n return Aw3s.binding.basis.element.AnyCreateFromDOM(Q6kx, _fallback_namespace=UyKZ)", "def E91p(Q6kx, UyKZ=None):\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n return Aw3s.binding.basis.element.Any...
[ "0.6949202", "0.6949202", "0.6949202", "0.6946226", "0.6698814", "0.6698814", "0.6698814", "0.66975737", "0.66655135", "0.6650566", "0.6622097", "0.6594007", "0.6585428", "0.6564717", "0.65103894", "0.6489292", "0.64718515", "0.64257324", "0.6323297", "0.6312424", "0.6311245"...
0.70111525
9
Returns a another GeoPoint at the given distance and heading
def j0oK(YKHO, Ayfi, cEyu): bAKo = Ayfi / asqo _W3e = epAf.radians(cEyu) return YKHO.__spherical_between(epAf.radians(YKHO.lat), epAf.radians(YKHO.long), bAKo, _W3e)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kHh0(YKHO, Ayfi, Je4s):\n LLmd = Ayfi / _Z31\n igSk = epAf.radians(YKHO.lat)\n iT5T = epAf.radians(YKHO.lng)\n Fg_i = epAf.radians(Je4s)\n TGuP = epAf.asin(epAf.sin(igSk) * epAf.cos(LLmd) + epAf.cos(igSk) * epAf.sin(LLmd) * epAf.cos(Fg_i))\n LVAh = epAf.sin(Fg_i) * epAf.sin(LLmd) * epAf.cos(i...
[ "0.6770629", "0.65110844", "0.61660296", "0.57667196", "0.57314205", "0.5686748", "0.5658151", "0.56048656", "0.5584744", "0.55566764", "0.5549201", "0.5534506", "0.55254775", "0.5428041", "0.5406351", "0.5364232", "0.53545207", "0.5343385", "0.5343158", "0.5327389", "0.53067...
0.7919778
0