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
Add Edge to graph
def CfeV(YKHO, WpK5, Gy9f): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, tTpl):\n pass", "def rz7z(YKHO, D70y):\n CBRg, j9ly = tuple(D70y)\n if CBRg in YKHO.__graph_dict:\n YKHO.__graph_dict[CBRg].append(j9ly)\n else:\n YKHO.__graph_dict[CBRg] = [j9ly]", "def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = (tTpl[0], tTpl[1])\n YKHO.data[Ty9i][yzQ0] =...
[ "0.84614885", "0.8249728", "0.8246735", "0.8178408", "0.8125983", "0.80992645", "0.8087408", "0.79938346", "0.79938346", "0.7990668", "0.7968958", "0.7950241", "0.79418963", "0.79276454", "0.79253584", "0.7917282", "0.79087156", "0.7896603", "0.78934175", "0.7881404", "0.7878...
0.0
-1
Check if sufficient supplies have been collected.
def gkB7(YKHO): UHFx = 0 for a1PO in YKHO.package: if a1PO.type != 1: UHFx += 1 if UHFx >= 6: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4nV(YKHO):\n for H5ew, BWXx in YKHO.ordered_supplies.items():\n if BWXx['quantity'] > YKHO.Supplies[H5ew]['quantity']:\n YKHO.Supplies_status = uwaB.CANNOT_DELIVER\n return False\n YKHO.Supplies_status = uwaB.CAN_DELIVER\n return True", "def Y1_y(YKHO, Xx5Z):\n Llty ...
[ "0.6523902", "0.64988464", "0.626707", "0.62612575", "0.6244666", "0.6193264", "0.6178996", "0.6175408", "0.6168439", "0.6168302", "0.6145333", "0.6109458", "0.6085287", "0.60831106", "0.6053294", "0.6033351", "0.60215515", "0.60154635", "0.6007827", "0.5982909", "0.5961135",...
0.6589312
0
This function evaluates the xVec_dot=fVec(x,u) given the states and controls in current step
def xhoU(YKHO, P6bq, Ty9i, yzQ0, XP5J, vexM, Mkmy, cJsZ, hbUd, BzON, iv7Q, EcVT, fuBA, Nk6w, Ezv9, HJ6t, E02q, h_EW): W8O1 = -Ezv9 * YKHO.maxThrust Bjxj = -HJ6t * YKHO.maxThrust UsF5 = -E02q * YKHO.maxThrust irh8 = -h_EW * YKHO.maxThrust WuLE = (irh8 + UsF5 - Bjxj - W8O1) * YKHO.Ly / 2 uuep = (i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m33m(YKHO):\n azuv = PZod.get_number_conserving_wavefunction(4, 8)\n azuv.set_wfn(strategy='ones')\n azuv.normalize()\n YKHO.assertAlmostEqual(PZod.vdot(azuv, azuv), 1.0 + 0j)\n YKHO.assertAlmostEqual(PZod.dot(azuv, azuv), 1.0 + 0j)\n azuv.set_wfn(strategy='random')\n azuv.normalize()\n ...
[ "0.63274646", "0.6274703", "0.621182", "0.61731184", "0.6088235", "0.60516685", "0.5993143", "0.5991577", "0.59651643", "0.5945763", "0.5927432", "0.5922495", "0.5895915", "0.58942086", "0.588409", "0.58318186", "0.5806366", "0.57650465", "0.5763217", "0.5759745", "0.574469",...
0.0
-1
Render the GameSage homepage.
def kZiy(): return TvZl('gamesage_index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home/index.html', title='Siluria Technologies')", "def C_QL():\n return TvZl('ho...
[ "0.79002225", "0.7891667", "0.7884473", "0.7882363", "0.7878317", "0.7857505", "0.785343", "0.785343", "0.78475714", "0.783734", "0.7819987", "0.7796892", "0.7791883", "0.7791883", "0.77429056", "0.7731479", "0.77132696", "0.7686087", "0.7686087", "0.7686087", "0.7686087", ...
0.8284446
0
Calculate the Gordeyev integral of the F function.
def UbrX(yzQ0, WKvO, m2Zb): qw7D = oyIN.zeros_like(yzQ0, dtype=oyIN.complex128) for or8S in GPal.prange(len(yzQ0)): qw7D[or8S] = Vwir(oyIN.exp(-1j * yzQ0[or8S] * WKvO) * m2Zb, WKvO) return qw7D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oa1e(WKvO):\n return oyIN.float64(abs(YKHO.f(WKvO)))", "def Czsj(LVAh, jzdc, BhWM, h_wV, yzQ0, lwoF, zv3f, MKlR):\n eHNT = (jzdc * ut5U(jzdc, BhWM, h_wV, yzQ0, lwoF, zv3f, MKlR, Omega_r_h2=0.0)) ** (-3)\n return eHNT * 10000000000000.0", "def vuvg(WKvO):\n return epAf.exp(-0.5 * WKvO ** 2)", ...
[ "0.6813447", "0.66967344", "0.6627451", "0.64753455", "0.6472256", "0.6440586", "0.63867", "0.6359073", "0.624931", "0.62323076", "0.6187485", "0.61760795", "0.6154864", "0.6151715", "0.6126038", "0.6106833", "0.6096293", "0.6064966", "0.6061094", "0.6059325", "0.60442597", ...
0.0
-1
This function takes a file and and phrase then returns a list of lines the phrase exists along with the phrase
def bVtP(o1P6, A0cm): x3hu = [A0cm] with open(o1P6, 'r', encoding='utf-8') as nUeQ: Nqlg = nUeQ.readlines() for or8S, zFiD in enumerate(Nqlg): if A0cm.lower() in zFiD.lower(): x3hu.append(or8S + 1) return x3hu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVtP(o1P6, A0cm):\n x3hu = []\n with open(o1P6, 'r', encoding='utf-8') as nUeQ:\n Nqlg = nUeQ.readlines()\n for or8S, zFiD in enumerate(Nqlg):\n if A0cm.lower() in zFiD.lower():\n x3hu.append(or8S)\n return x3hu", "def fst7(lsX7, VAvQ, gIsw):\n if gIsw == '.DS_Store':\...
[ "0.7758833", "0.64343345", "0.6311312", "0.6257522", "0.6253456", "0.6245743", "0.619842", "0.6197724", "0.61779547", "0.6169814", "0.6161304", "0.6127709", "0.611943", "0.610241", "0.61007935", "0.605551", "0.60550624", "0.60528314", "0.60472834", "0.60043734", "0.6000061", ...
0.799026
0
Make and configure a copy of the `mean_estimator_` attribute.
def Xvg5(YKHO, WmM4): if YKHO.mean_estimator is not None: YKHO.mean_estimator_ = YKHO.mean_estimator else: YKHO.mean_estimator_ = WmM4 if YKHO.mean_estimator_ is None: raise ValueError('base_estimator cannot be None')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AJAU(YKHO, SStx=True):\n BHCt = i3ak(YKHO.estimator)\n BHCt.n_estimators = 1\n BHCt.warm_start = True\n return BHCt", "def sgwg(YKHO, JBMS):\n YKHO.mean = JBMS", "def sgwg(YKHO, JBMS):\n YKHO.mean = JBMS", "def VNw3(YKHO, WmM4=F843()):\n if YKHO.estimator is not None and YKHO.base_es...
[ "0.6708928", "0.62781686", "0.62781686", "0.61825395", "0.61762345", "0.59852475", "0.598072", "0.59055686", "0.58779407", "0.5827023", "0.57992464", "0.5771018", "0.57424", "0.57225436", "0.56917596", "0.56871605", "0.5682396", "0.5678451", "0.5652245", "0.56273925", "0.5603...
0.7119438
0
returns [(1/0, msb, lsb)]
def ut6C(_S1x: str): if len(_S1x) == 0: return [] if len(_S1x) == 1: return [(int(_S1x), 0, 0)] XT48 = [] IWSC = 0 wEf2 = _S1x[-1] for P2GO, EqBn in enumerate(reversed(_S1x)): if P2GO == IWSC: continue if EqBn != wEf2: XT48.append((int(wEf2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RikW(QTBn: int) -> AzJI[int, int]:\n LFlW = QTBn >> GpUc.NUM_BITS_IN_WORD & GpUc.WORD_MASK\n _tIi = QTBn & GpUc.WORD_MASK\n return (LFlW, _tIi)", "def Tv8G(*b6H_) -> AzJI[int, int]:\n r8hN = 0\n Ty9i = 0\n for ZHfW, wEf2, oeNL in b6H_:\n ZHfW <<= oeNL\n wEf2 <<= oeNL\n ...
[ "0.6186797", "0.60778916", "0.60692745", "0.5913861", "0.584353", "0.5812294", "0.57889074", "0.5721765", "0.5694664", "0.5693462", "0.56795514", "0.56626904", "0.56585467", "0.56585467", "0.56585467", "0.5650811", "0.56118274", "0.5606371", "0.55440074", "0.5532035", "0.5527...
0.5571865
18
Sets the from_server_version of this Reputation.
def jjVG(YKHO, jjVG): YKHO._from_server_version = jjVG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZVb(YKHO, KZVb):\n YKHO._server_version = KZVb", "def gRj_(YKHO, gRj_):\n YKHO._to_server_version = gRj_", "def b0mD(YKHO, b0mD):\n YKHO._server_revision = b0mD", "def hG01(YKHO):\n if YKHO.server_version is None:\n rNQ_ = 1\n UJ_N = 30\n CewW = 0\n H4xF = ZbWC.co...
[ "0.68826187", "0.61470157", "0.57838935", "0.5752515", "0.57355577", "0.57201624", "0.57006025", "0.5677119", "0.56677145", "0.56570685", "0.56477094", "0.5628258", "0.5604441", "0.55689836", "0.54656786", "0.54656786", "0.54656786", "0.54656786", "0.54656786", "0.54656786", ...
0.8328657
1
Sets the item_version of this Reputation.
def UIdL(YKHO, UIdL): YKHO._item_version = UIdL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iFlf(YKHO, iFlf):\n YKHO._line_item_version = iFlf", "def R2V2(YKHO, DpZH):\n YKHO.version = DpZH", "def R2V2(YKHO, DpZH):\n YKHO._version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO.version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO._version = DpZH", "def DpZH(YKHO, DpZH):\n YKHO._version.v...
[ "0.68395174", "0.6248244", "0.623999", "0.62330997", "0.62148577", "0.61162174", "0.6080388", "0.6080388", "0.6037342", "0.6028362", "0.6028362", "0.6028362", "0.6028362", "0.6028362", "0.6028362", "0.6028362", "0.6028362", "0.6028362", "0.6028362", "0.6028362", "0.6028362", ...
0.79354894
1
Sets the sync_hash of this Reputation.
def ZmBj(YKHO, ZmBj): YKHO._sync_hash = ZmBj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hash(YKHO, hash):\n YKHO._hash = hash", "def hash(YKHO, hash):\n YKHO._hash = hash", "def hash(YKHO, hash):\n YKHO._hash = hash", "def hash(YKHO, hash):\n YKHO._hash = hash", "def DCza(YKHO):\n pass", "def ROpF(YKHO, NTeG):\n YKHO.blk_hash = NTeG", "def DgH4(YKHO, PCTN):\n YKHO...
[ "0.62696445", "0.62696445", "0.62696445", "0.62696445", "0.61786735", "0.61253923", "0.6005513", "0.5901923", "0.5901923", "0.56304544", "0.5591525", "0.5570473", "0.55642974", "0.55555046", "0.5549545", "0.5549545", "0.55296206", "0.5486607", "0.5475725", "0.54694486", "0.54...
0.79473954
0
Sets the to_server_version of this Reputation.
def gRj_(YKHO, gRj_): YKHO._to_server_version = gRj_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZVb(YKHO, KZVb):\n YKHO._server_version = KZVb", "def hG01(YKHO):\n if YKHO.server_version is None:\n rNQ_ = 1\n UJ_N = 30\n CewW = 0\n H4xF = ZbWC.compile('(\\\\d).(\\\\d+) \\\\((\\\\d+)\\\\)')\n if hasattr(YKHO.session, 'version'):\n kUBT = H4xF.match(YK...
[ "0.7109887", "0.6655094", "0.66189086", "0.66189086", "0.6208935", "0.59102106", "0.58889985", "0.57915395", "0.5754973", "0.57332116", "0.5687465", "0.5672222", "0.5642933", "0.5623998", "0.5620151", "0.5608467", "0.5605698", "0.5602491", "0.5565647", "0.5531965", "0.5531965...
0.73834914
0
Sets the vc_should_ignore of this Reputation.
def Nq_O(YKHO, Nq_O): YKHO._vc_should_ignore = Nq_O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PrmE(YKHO):\n if YKHO.enabled:\n YKHO._ignored = True", "def JGCq(YKHO):\n YKHO._ignored = True", "def PrmE(YKHO, PrmE):\n YKHO._ignore = PrmE", "def azzZ(YKHO) -> None:\n return", "def hZAz(YKHO):\n return YKHO._I.Block.property.HintIgnore", "def gQRH(hGN5, PrmE):\n I1mm = '...
[ "0.61446714", "0.61113584", "0.61013913", "0.5945417", "0.57956207", "0.55416644", "0.5532325", "0.55227226", "0.5521386", "0.54344517", "0.5433055", "0.5433055", "0.5406527", "0.535106", "0.53500783", "0.53333217", "0.52595323", "0.5240467", "0.5209715", "0.5203336", "0.5180...
0.79039687
0
Sets the version of this Reputation.
def DpZH(YKHO, DpZH): YKHO._version = DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dPFR(YKHO, DpZH):\n YKHO.version = DpZH", "def R2V2(YKHO, DpZH):\n YKHO.version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO._version = DpZH", "def R2V2(YKHO, DpZH):\n YKHO._version = DpZH", "def DpZH(YKHO, DpZH):\n YKHO._version.value = DpZH", "def DpZH(YKHO, DpZH):\n YKHO._version = DpZ...
[ "0.752436", "0.74787915", "0.7399093", "0.73944896", "0.7262879", "0.7183074", "0.7183074", "0.7144782", "0.7107484", "0.7100483", "0.70308095", "0.70013636", "0.69912577", "0.6985598", "0.6985598", "0.69249386", "0.6878875", "0.6878875", "0.6878875", "0.6874245", "0.67325294...
0.7115904
9
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393979", "0.83558035", "0.8296232", "0.8133502", "0.81157666", "0.81012607", "0.81002367", "0.809912", "0.809912", "0.8094049", "0.8094049", "0.8094049", "0.8094049", "0.8086498", "0.8086498", "0.8086498", "0.8086498", "0.8086498", "0.8068001", "0.80598176", "0.80587703",...
0.8045057
63
Verify that `craigslist.extract_housing` extracts a housing item correctly when the item specifies only a price.
def lQ5j(YKHO): Aofo = EI3k.get_posts_for_category('hhh', vRCC.location, vRCC.housing[0]) YKHO.assertEqual(Aofo[0]['date'], 'Jun 7') YKHO.assertEqual(Aofo[0]['link'], 'http://portland.craigslist.org/mlt/vac/3064470120.html') YKHO.assertEqual(Aofo[0]['location'], '(King)') YKHO.assertEqual(Aofo[0]['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CEl2(YKHO):\n Aofo = EI3k.get_posts_for_category('sss', vRCC.location, vRCC.for_sale[0])\n YKHO.assertEqual(Aofo[0]['date'], 'Jun 7')\n YKHO.assertEqual(Aofo[0]['link'], 'http://portland.craigslist.org/clk/sys/3058025999.html')\n YKHO.assertEqual(Aofo[0]['desc'], 'i want to trade my laptop for a ut...
[ "0.65436774", "0.6460649", "0.62271965", "0.6157573", "0.6069662", "0.5663806", "0.56101805", "0.55394405", "0.5539409", "0.5468114", "0.5389908", "0.52685", "0.5244075", "0.5237502", "0.5234035", "0.523132", "0.5186583", "0.5169217", "0.51468915", "0.5146336", "0.5144697", ...
0.8106468
0
Verify that `craigslist.extract_housing` extracts a housing item correctly when the item specifies price and of rooms.
def Iknz(YKHO): Aofo = EI3k.get_posts_for_category('hhh', vRCC.location, vRCC.housing[1]) YKHO.assertEqual(Aofo[0]['date'], 'Jun 7') YKHO.assertEqual(Aofo[0]['link'], 'http://portland.craigslist.org/mlt/apa/3064412526.html') YKHO.assertEqual(Aofo[0]['location'], '(1736 NE Killingsworth St.)') YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lQ5j(YKHO):\n Aofo = EI3k.get_posts_for_category('hhh', vRCC.location, vRCC.housing[0])\n YKHO.assertEqual(Aofo[0]['date'], 'Jun 7')\n YKHO.assertEqual(Aofo[0]['link'], 'http://portland.craigslist.org/mlt/vac/3064470120.html')\n YKHO.assertEqual(Aofo[0]['location'], '(King)')\n YKHO.assertEqual...
[ "0.75199175", "0.74328023", "0.7367765", "0.60219294", "0.5852074", "0.58029276", "0.5437837", "0.53464633", "0.5292813", "0.5269135", "0.5245611", "0.52293825", "0.52284515", "0.52272433", "0.5214721", "0.51912385", "0.5168687", "0.51369816", "0.5115353", "0.5109887", "0.509...
0.7642692
0
Verify that `craigslist.extract_housing` extracts a housing item correctly when the item specifies price, of rooms and square feet.
def YsAr(YKHO): Aofo = EI3k.get_posts_for_category('hhh', vRCC.location, vRCC.housing[2]) YKHO.assertEqual(Aofo[0]['date'], 'Jun 7') YKHO.assertEqual(Aofo[0]['link'], 'http://portland.craigslist.org/wsc/reb/3063998127.html') YKHO.assertEqual(Aofo[0]['location'], '(Tigard)') YKHO.assertEqual(Aofo[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lQ5j(YKHO):\n Aofo = EI3k.get_posts_for_category('hhh', vRCC.location, vRCC.housing[0])\n YKHO.assertEqual(Aofo[0]['date'], 'Jun 7')\n YKHO.assertEqual(Aofo[0]['link'], 'http://portland.craigslist.org/mlt/vac/3064470120.html')\n YKHO.assertEqual(Aofo[0]['location'], '(King)')\n YKHO.assertEqual...
[ "0.76303995", "0.73868924", "0.7282841", "0.589488", "0.5751151", "0.5675082", "0.54800415", "0.525773", "0.52513975", "0.52336496", "0.5210476", "0.5198627", "0.51842093", "0.5157647", "0.51557904", "0.51375806", "0.5119451", "0.51163644", "0.5103718", "0.5084029", "0.507553...
0.7358772
2
Initializes a Diff based on the arguments in AddUpdateLabelsFlags.
def r7mo(Emd4, qIxc, DTsF=True, gLlX=None): if DTsF: Y7Bk = qIxc.clear_labels if Y7Bk: gLlX = {} else: Y7Bk = None rpxx = gLlX if gLlX else {} if qIxc.update_labels: rpxx.update(qIxc.update_labels) return Emd4(rpxx, qIxc.remove_labels, Y7Bk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r7mo(Emd4, qIxc, DTsF=True):\n if DTsF:\n Y7Bk = qIxc.clear_labels\n else:\n Y7Bk = None\n return Emd4(qIxc.update_labels, qIxc.remove_labels, Y7Bk)", "def Bhfj(eegZ):\n yk4i = XI9x.FromUpdateArgs(eegZ)\n if not yk4i.MayHaveUpdates():\n raise zmjq.RequiredArgumentException...
[ "0.6478669", "0.64641", "0.62638724", "0.61058784", "0.59589535", "0.5833648", "0.5787239", "0.57573634", "0.5671192", "0.5670841", "0.5652396", "0.56208163", "0.5619652", "0.5588853", "0.5439843", "0.53351927", "0.5322996", "0.5238594", "0.5219191", "0.52159685", "0.51957744...
0.7017629
0
Get a list of applications registered in Zookeeper.
def XKJ2(): return uK4P(glCj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzDK(YKHO):\n return YKHO._request(YKHO.baseurl + '/4.0/getapplist.do', 'GET')", "async def app_list(YKHO) -> x1iM[wohN.App]:\n return await YKHO.relay('app_list')()", "def FzDK(YKHO):\n return YKHO._get_request(YKHO.baseurl + '/5.0/getapplist.do')", "def FzDK(YKHO):\n return YKHO._get_reques...
[ "0.7537573", "0.75299144", "0.75251836", "0.75251836", "0.7494137", "0.7457444", "0.743579", "0.74092114", "0.7408469", "0.73609924", "0.7324436", "0.7288663", "0.72614294", "0.7242032", "0.7240815", "0.71980065", "0.71564186", "0.7152269", "0.7152269", "0.7127373", "0.712026...
0.7712842
0
Tests whether ``RelationshipType`` instance names are all strings.
def PxxZ(): for KAOR in RDpX.INSTANCES.values(): Qg87.assert_instance(KAOR.name, str)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7_c(vGaq):\n return type(vGaq) in SnBA.StringTypes", "def X7_c(vGaq):\n return type(vGaq) in SnBA.StringTypes", "def TcK7(YKHO, SLLj):\n if SLLj.lower().startswith('unicode'):\n return True\n if SLLj.lower().startswith('string'):\n return True\n return False", "def X7_c(YKHO...
[ "0.6554516", "0.6554516", "0.6530178", "0.6526813", "0.6498943", "0.6391708", "0.6391418", "0.63434505", "0.62890536", "0.6260266", "0.6220421", "0.62103415", "0.6209591", "0.6163229", "0.6150003", "0.61153525", "0.60888207", "0.60555625", "0.60286427", "0.60249233", "0.60106...
0.6342024
8
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution. A weight decay is added only if one is specified.
def xSbR(mWFP, ROpF, z2bo, TI1B, gfK_=True): if gfK_: MuED = ZylS.contrib.layers.xavier_initializer() else: MuED = ZylS.truncated_normal_initializer(stddev=z2bo) SRYB = js1U(mWFP, ROpF, MuED) if TI1B is not None: oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJ6q(mWFP, ROpF, z2bo, TI1B):\n yDqo = ZylS.float32\n SRYB = Es0b(mWFP, ROpF, initializer=ZylS.compat.v1.truncated_normal_initializer(stddev=z2bo, dtype=yDqo))\n if TI1B is not None:\n oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')\n ZylS.compat.v1.add_to_collectio...
[ "0.7469696", "0.743359", "0.7426465", "0.7364982", "0.7331814", "0.7322328", "0.7322328", "0.7308076", "0.73032296", "0.7302452", "0.7284501", "0.7284256", "0.72804457", "0.7278874", "0.7264561", "0.7261074", "0.7261074", "0.72570914", "0.72465795", "0.72431684", "0.72431684"...
0.7286879
10
2D convolution transpose with nonlinear operation.
def OOwo(g4y1, NjM2, Ot1W, rrBf, _0fC=[1, 1], dvgN='SAME', wH3T='NHWC', gfK_=True, z2bo=0.001, oNEO=None, _Ycl=ZylS.nn.relu, tF9S=False, okEi=None, LT6S=None): with ZylS.variable_scope(rrBf) as Sa_m: F5P9, phSo = Ot1W HHkw = g4y1.get_shape()[-1].value RndV = [F5P9, phSo, NjM2, HHkw] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMKv(WKvO, XcU5):\n return ZylS.layers.conv2d_transpose(WKvO, XcU5, [1, 13, 13, 16], strides=(2, 2), padding='VALID', data_format='channels_last', activation=None)", "def O1jb(YKHO, he5B, Ot1W, vHnr):\n aJva = wyuq(he5B, (Ot1W, Ot1W), strides=(2, 2), use_bias=False)(vHnr)\n aJva = GVKG(axis=YKHO.axi...
[ "0.69869864", "0.6775098", "0.66104656", "0.6567636", "0.6541792", "0.6541792", "0.6480724", "0.64729774", "0.6468027", "0.6452399", "0.644138", "0.64117044", "0.64117044", "0.6408843", "0.6381743", "0.63262504", "0.6302914", "0.62856156", "0.62614554", "0.6238716", "0.622457...
0.5901275
77
Batch normalization on 2D convolutional maps.
def ZxUV(g4y1, LT6S, okEi, rrBf, wH3T): return gJFC(g4y1, LT6S, rrBf, [0, 1, 2], okEi, wH3T)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO):\n nPrm = YKHO.psf_kernel_map.data\n if YKHO.psf_kernel_map.geom.is_image:\n jDK_ = (0, 1)\n else:\n jDK_ = (1, 2)\n with oyIN.errstate(divide='ignore', invalid='ignore'):\n nPrm = oyIN.nan_to_num(nPrm / nPrm.sum(axis=jDK_, keepdims=True))\n YKHO.psf_kernel_ma...
[ "0.6973712", "0.69437504", "0.68467337", "0.6802533", "0.678081", "0.6760436", "0.672137", "0.6615446", "0.66102594", "0.6598603", "0.6537935", "0.6523082", "0.6501046", "0.6495554", "0.64942896", "0.6481231", "0.6433823", "0.6430442", "0.64188164", "0.6398937", "0.63852155",...
0.68198717
3
Returns the saturation temperature at the provided pressure. Interpolates if state not available at given pressure.
def Q2De(tZVt: DataFrame, V6IE: float) -> float: if V6IE > tZVt.mp.criticalPoint.P: return tZVt.mp.criticalPoint.T else: qKUU = tZVt.query('P == {0} and 0 <= x <= 1'.format(V6IE)) if not qKUU.empty: MABt = qKUU['T'].to_list() tjY3 = MABt[0] assert all(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFus(YKHO, XP5J):\n XP5J = seEd(XP5J).MPa\n if XP5J < 0.000611213 or XP5J > 22.064:\n raise ValueError('No saturation temperature for this pressure')\n exwG = YKHO.data['n']\n UqYS = XP5J ** 0.25\n ut5U = UqYS ** 2 + exwG[2] * UqYS + exwG[5]\n vuvg = exwG[0] * UqYS ** 2 + exwG[3] * UqY...
[ "0.7231022", "0.7224393", "0.69102794", "0.6898849", "0.6856862", "0.6845084", "0.6842282", "0.68338174", "0.68338174", "0.68259245", "0.6825104", "0.6806489", "0.67973214", "0.6790908", "0.676584", "0.67269045", "0.6709203", "0.6706809", "0.66965824", "0.66914", "0.66914", ...
0.7302454
0
Returns the saturation pressure at the provided temperature. Interpolates if state not available at given temperature.
def Rxqj(tZVt: DataFrame, Kt_s: float) -> float: if Kt_s > tZVt.mp.criticalPoint.T: return tZVt.mp.criticalPoint.P else: qKUU = tZVt.query('T == {0} and 0 <= x <= 1'.format(Kt_s)) if not qKUU.empty: FLOm = qKUU['P'].to_list() FCxd = FLOm[0] assert all(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GZ9x(YKHO, ovGo, mvm2, **B2fa):\n if ovGo <= 0:\n raise DQrD('Temperature must be greater than 0K.')\n if type(mvm2) != dict and type(mvm2) != rLdf.core.series.Series:\n raise DQrD('sample must be a dict or a pandas Series.')\n if 'CO2' not in mvm2:\n raise DQrD('sample must conta...
[ "0.7565035", "0.7504528", "0.7500723", "0.74582803", "0.7453232", "0.74376696", "0.7428993", "0.7349125", "0.72318375", "0.7153156", "0.71168697", "0.71168697", "0.70550644", "0.70010537", "0.6901817", "0.6901817", "0.68519515", "0.67878324", "0.6753492", "0.67335963", "0.673...
0.7136717
10
Get a valid name which doesn't collision with symbols. Find a new name based on the suggested name which does not appear in the provided symbols. It is not necessary to exclude keywords for names which were either originally valid Python names, or internally generated names.
def TvBL(YKHO, mWFP, rmc3): return YKHO._get_collisionless_name(mWFP, rmc3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sLuB(YKHO):\n Rznt = ['k', 'p', 'y', 'w']\n for str in Rznt:\n C5WU = H4yH.Symbol(str)\n j6ku = H4yH.Symbol('amici_' + str)\n YKHO.replaceInAllExpressions(C5WU, j6ku)\n for o61b in YKHO.symbols.keys():\n if 'identifier' in YKHO.symbols[o61b].keys():\n ...
[ "0.63571703", "0.6300534", "0.6280049", "0.6171678", "0.60162514", "0.59964883", "0.59409004", "0.5852153", "0.58458763", "0.58259034", "0.58055127", "0.5758961", "0.5704236", "0.5631491", "0.5627392", "0.5620808", "0.5612026", "0.5612026", "0.5598192", "0.5589647", "0.555133...
0.721973
0
builds node for current level and creates children recursively must be given string with no whitespace.
def BBM2(rEm6, d6pt): if rEm6[d6pt] != '[': raise ValueError('invalid tree string format, each subtree must start with "["') d6pt += 1 afYC = [] AwDt = '' YRbF = d6pt while YRbF < len(rEm6): hcXw = rEm6[YRbF] if hcXw == '[': aUGN, APUD = BBM2(rEm6, YRbF) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AVjd(YKHO, NPoT):\n fhkG = {'+': z3K7, '-': r6uM, '*': Ab1Z, '/': VKeG, '^': apoh, 'ln': nn03, 'tan': ewPt, 'sin': We2R, 'cos': JvPi}\n O6J1 = [(YRbF.start(), YRbF.end()) for YRbF in ZbWC.finditer('\\\\+|-|\\\\*|/|\\\\^|\\\\(|\\\\)|ln|tan|cos|sin', NPoT)]\n QKK_ = YKHO.evaluate_priority(NPoT)\n if ...
[ "0.7015592", "0.658586", "0.6571256", "0.6553621", "0.6523761", "0.64380693", "0.63699514", "0.63090503", "0.61958396", "0.6174288", "0.6110522", "0.60998446", "0.6057396", "0.5990281", "0.5970978", "0.59699696", "0.5931609", "0.5912844", "0.58930254", "0.5878996", "0.5872204...
0.5821824
24
Parse bool to string
def lIW9(WKvO): return {'T': True, 'F': False, 'True': True, 'False': False}.get(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAwx(Fg_i):\n return 'true' if Fg_i else 'false'", "def Ux8e(YKHO, Fg_i):\n if Fg_i:\n return 'yes'\n else:\n return 'no'", "def ZGfH(Fg_i):\n if Fg_i:\n return 'yes'\n else:\n return 'no'", "def XEI0(wEf2):\n return 'true' if wEf2 else 'false'", "def Ux8e(...
[ "0.84969795", "0.8060961", "0.80553925", "0.8050378", "0.8043066", "0.802642", "0.7873775", "0.7726076", "0.76987076", "0.7688126", "0.76724213", "0.766501", "0.76281005", "0.75300235", "0.75191367", "0.74769413", "0.7459126", "0.7455936", "0.7414084", "0.7359164", "0.7354787...
0.7135844
34
Test Creating user with valid payload is succesfull
def RDRA(YKHO): pB3N = {'email': 'test@akshay.com', 'password': 'testpassword', 'name': 'Akshay'} Ylbp = YKHO.client.post(CKgv, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED) CBIr = egNl().objects.get(**Ylbp.data) YKHO.assertTrue(CBIr.check_password(pB3N['password'])) YKHO.asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aLKA(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'testTSET1230', 'name': 'khaled osman'}\n lYUQ(**pB3N)\n Ylbp = YKHO.client.post(CKgv, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n print('T-----> success test_create_an_existing_user')", "def RDRA(YKHO):\n ...
[ "0.8711231", "0.8616653", "0.8569541", "0.8546591", "0.85420024", "0.8535496", "0.8498162", "0.8493556", "0.8481865", "0.8464713", "0.8432976", "0.8432575", "0.841769", "0.84125894", "0.83993876", "0.83935386", "0.83825755", "0.8382075", "0.83643556", "0.83638453", "0.8359892...
0.8486464
8
Test that token is not created if invalid credentials are given
def yj75(YKHO): lYUQ(email='test@shanku.com', password='testpass') pB3N = {'email': 'test@shanku.com', 'password': 'wrong'} Ylbp = YKHO.client.post(pEkX, pB3N) YKHO.assertNotIn('token', Ylbp.data) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WzbI(YKHO):\n lYUQ(email='ramon@gmail.com', password='1234password')\n pB3N = {'email': 'amila@amila.com', 'password': 'pas'}\n Ylbp = YKHO.client.post(pEkX, pB3N)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def yj75(YKHO):\n lYU...
[ "0.8325344", "0.82782567", "0.82406086", "0.82298774", "0.8223096", "0.8219939", "0.82090896", "0.81899023", "0.81878024", "0.8146611", "0.81216943", "0.8101119", "0.8068639", "0.80507267", "0.80241126", "0.7948746", "0.78922594", "0.7878825", "0.7864827", "0.78538495", "0.78...
0.82081395
7
Test that token is not created if user doesn't exist
def i_2a(YKHO): pB3N = {'email': 'test@akshay.com', 'password': 'testpass'} Ylbp = YKHO.client.post(pEkX, pB3N) YKHO.assertNotIn('token', Ylbp.data) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YGLT(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'pass1232321PASS', 'name': 'khaled osman'}\n Ylbp = YKHO.client.post(pz0m, pB3N)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n print('T-----> success test_create token for non ex...
[ "0.8148086", "0.8026794", "0.8007688", "0.78676283", "0.78373885", "0.7771936", "0.7768022", "0.77679724", "0.7729453", "0.7727422", "0.7711759", "0.77083784", "0.7705234", "0.76956093", "0.76955414", "0.7693938", "0.7668904", "0.7666311", "0.76496184", "0.75431895", "0.74996...
0.75972885
19
Test that post is not allowed on the me url
def S4m0(YKHO): Ylbp = YKHO.client.post(XiK1, {}) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U69V(YKHO):\n Ylbp = YKHO.client.post(XiK1)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)", "def U69V(YKHO):\n Ylbp = YKHO.client.post(BfDw.ME_URL, {})\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)", "def U69V(YKHO):\n Ylbp = YKHO.client.post...
[ "0.807013", "0.80335236", "0.8003087", "0.8003087", "0.8003087", "0.7998017", "0.7975217", "0.7945876", "0.78729606", "0.7683808", "0.76008576", "0.76008576", "0.76008576", "0.76008576", "0.76008576", "0.76008576", "0.76008576", "0.76008576", "0.7531341", "0.73866457", "0.737...
0.77328026
10
Get all predecessors sentences of the source code
def GQgF(YKHO): mXDZ = ZbWC.compile(umAW) return mXDZ.findall(YKHO.sourceContent)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOPp(YKHO, Q6kx):\n return list(JZlq(YKHO.model, Q6kx))", "def SoZd(YKHO):\n if YKHO._predecessors is None:\n YKHO._predecessors = PnAT([YKHO])\n return YKHO._predecessors", "def vOPp(YKHO):\n return YKHO.mock.get_predecessors()", "def kNzm(YKHO) -> list:\n return YKHO._predecessor"...
[ "0.64996624", "0.6483528", "0.6377334", "0.63430595", "0.63350147", "0.6321198", "0.6321198", "0.6305477", "0.61676645", "0.6136933", "0.61340165", "0.60534173", "0.6038628", "0.59612155", "0.59548724", "0.5937417", "0.5906996", "0.5891801", "0.588666", "0.58799523", "0.57829...
0.8124321
0
Test that empty stack has no head.
def HFMe(): from stack import Stack uR69 = Stack() try: uR69.pop().get_data() except IndexError: assert True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wSwd(YKHO):\n YKHO.assertTrue(S9Ut().is_empty())", "def d37D():\n WepI, N0mo, xBC8 = gG2S()\n assert N0mo.head_node is None", "def tx2V(YKHO):\n E5BI = S9Ut()\n E5BI.push(1)\n YKHO.assertFalse(E5BI.is_empty())", "def ik0j(N0mo):\n assert N0mo.top is None\n assert len(N0mo) == 0", ...
[ "0.8668982", "0.8623852", "0.8578232", "0.8500428", "0.83957905", "0.83561486", "0.8339723", "0.82365716", "0.8178812", "0.8017954", "0.79344636", "0.78582954", "0.78230935", "0.78230935", "0.78230935", "0.78081805", "0.780261", "0.771813", "0.77108955", "0.7710835", "0.77053...
0.0
-1
Test that none object can be item in stack.
def DKrr(): from stack import Stack uR69 = Stack() uR69.push([3, 4, 1, 'Hello world!', None]) assert uR69.pop() is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tx2V(YKHO):\n E5BI = S9Ut()\n E5BI.push(1)\n YKHO.assertFalse(E5BI.is_empty())", "def ik0j(N0mo):\n assert N0mo.top is None\n assert len(N0mo) == 0", "def wSwd(YKHO):\n YKHO.assertTrue(S9Ut().is_empty())", "def B37O():\n N0mo = S9Ut()\n assert N0mo.top is None", "def wqF5(YKHO):...
[ "0.7737174", "0.772418", "0.7594918", "0.7431997", "0.7398278", "0.7342826", "0.73380274", "0.73097116", "0.72642267", "0.71145046", "0.70649785", "0.70083785", "0.69991314", "0.69483894", "0.69123834", "0.68734187", "0.6840586", "0.6840586", "0.6840586", "0.67781514", "0.676...
0.77295107
1
Sets up, parses and returns any command line arguments. The arguments are returned as the object returned from the argparse.ArgumentParser.parse_args() method.
def WKsZ(): wvEv = j1Jz.ArgumentParser() wvEv.add_argument('-m', '--monikers', help='replace consultant logins with monikers', action='store_true') return wvEv.parse_args()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y8nX():\n wvEv = ugLM()\n return wvEv.parse_args()", "def uAqS(YKHO):\n wvEv = YKHO.get_parser()\n qIxc = wvEv.parse_args()\n for H5ew, BWXx in vars(qIxc).items():\n setattr(YKHO, H5ew, BWXx)\n return qIxc", "def FIMM(YKHO):\n xAU6 = YKHO.parse_args(HwRy.argv[1:])\n YKHO.flag...
[ "0.76584136", "0.7658057", "0.7651359", "0.762946", "0.7579455", "0.7579455", "0.7571975", "0.75399923", "0.75363517", "0.75088567", "0.7488973", "0.745976", "0.7459683", "0.7446452", "0.7384628", "0.7384469", "0.7376563", "0.7376522", "0.73680145", "0.7351966", "0.7350961", ...
0.0
-1
cls Clears the screen
def mF62(YKHO, zFiD): if HwRy.platform.startswith('win'): Hy7s.system('cls') else: Hy7s.system('clear')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y6_N(YKHO):\n Hy7s.system('cls')", "def yPVe():\n Hy7s.system('cls')", "def yPVe() -> None:\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def yPVe():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def yPVe():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')",...
[ "0.8681357", "0.8568064", "0.8468497", "0.8354293", "0.8354293", "0.8354293", "0.8354293", "0.83199245", "0.83006203", "0.82739186", "0.8131933", "0.8127106", "0.807597", "0.80620956", "0.8049303", "0.80484647", "0.8047445", "0.80471945", "0.80441684", "0.80129904", "0.800709...
0.73091084
81
Calculate the distance of the arrays Pi and Pj
def pImw(eQ6J, IGs1): YRbF = 1 if eQ6J.ndim == 2 or IGs1.ndim == 2 else None yk4i = eQ6J - IGs1 Fyji = yk4i ** 2 pImw = oyIN.sqrt(oyIN.sum(Fyji, axis=YRbF, keepdims=True)) pImw = pImw.reshape((pImw.shape[0], 1)) if YRbF == None else pImw return pImw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(XP5J: np.ndarray, vexM: np.ndarray) -> float:\n return oyIN.sqrt(oyIN.sum((XP5J - vexM) ** 2))", "def pImw(XP5J, vexM):\n return epAf.sqrt(sum(((mM0K - H7g6) ** 2 for mM0K, H7g6 in zip(XP5J, vexM))))", "def lT0l(YKHO, EcVT, XP5J):\n exwG = oyIN.size(EcVT[:, 0])\n Csk6 = oyIN.zeros(exwG * (...
[ "0.7109506", "0.68392706", "0.6704007", "0.66835433", "0.6660023", "0.66351426", "0.66160417", "0.65329105", "0.65114063", "0.64623135", "0.6440057", "0.6420675", "0.64041716", "0.63802534", "0.63759786", "0.6358058", "0.63452125", "0.6319973", "0.63193053", "0.6305182", "0.6...
0.83311844
0
Calculate the sum of the squares of the loss function of hyperbolic least squares problem
def sSN_(mxlQ, t1XM, CBkE, Uaqr='all comb'): vC9B = CBkE.shape[0] r8hN = 1 if oyIN.ndim(mxlQ) == 1 else mxlQ.shape[0] sSN_ = oyIN.zeros((r8hN, 1)) BJNS = t1XM * AQgS if Uaqr == 'all comb': for WKvO, LVAh in enumerate(ap9_(range(vC9B), 2)): YRbF, r845 = (LVAh[0], LVAh[1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DA7H(wNuL, Mlb1):\n lU2D = (wNuL - Mlb1).flatten()\n ywwl = lU2D.shape[0]\n N77f = ht2j.sum(ht2j.pow(lU2D, 2), -1) / ywwl\n return N77f", "def N77f(MKlR: np.array, LVAh: np.array):\n xDyf = (MKlR - LVAh) ** 2\n exwG = len(LVAh)\n return 1.0 / (2 * exwG) * xDyf.sum()", "def N77f(YKHO, W...
[ "0.70912117", "0.7073008", "0.69105285", "0.69007987", "0.6837442", "0.68233734", "0.68040997", "0.6794548", "0.6741783", "0.67415416", "0.67259693", "0.6721803", "0.6718055", "0.6711336", "0.6686226", "0.667854", "0.6667864", "0.66411245", "0.66313577", "0.66240275", "0.6621...
0.0
-1
Check Useragent correctly assigned
def UEiM(): cuiw = W0Ov.Service().get_session() assert cuiw.headers['User-Agent'].startswith('chwrapper') assert 'python-requests' in cuiw.headers['User-Agent']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sg3h(Lb1u):\n return False", "def UEiM(YKHO, QePW):\n _iO9 = N3Yo(QePW)\n Xqgu = yWra(url=_iO9)\n assert BtDU in Xqgu.user_agent", "def UEiM(YKHO, QePW):\n _iO9 = hKhs(QePW)\n Xqgu = yWra(url=_iO9)\n assert BtDU in Xqgu.user_agent", "def o83a(YKHO):\n YKHO.assertEqual(YKHO.user_ag...
[ "0.7877051", "0.75955045", "0.75558877", "0.7341011", "0.7270911", "0.72009504", "0.71803707", "0.708128", "0.7004234", "0.6997756", "0.6983024", "0.6962704", "0.69065565", "0.690102", "0.6896924", "0.6851298", "0.68119746", "0.6784942", "0.6724681", "0.66355914", "0.66355914...
0.7092864
7
Returns total bids in basket.
def nUxc(YKHO): return len(YKHO.bids.all())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U8e2(YKHO):\n DumB = cGTY.objects.filter(user=YKHO.user)\n U8e2 = sum(list(map(lambda WKvO: WKvO.quantity, DumB)))\n return U8e2", "def szAg(YKHO):\n return int(sum((ZfUD['quantity'] for ZfUD in YKHO.basket.values())))", "def egzR(YKHO):\n wjRY = 0\n for ZfUD in YKHO.basket:\n wjRY...
[ "0.682166", "0.67276096", "0.66141504", "0.65171677", "0.6498012", "0.632328", "0.6318437", "0.62920386", "0.62819546", "0.62423325", "0.6233584", "0.6233584", "0.62061226", "0.6193833", "0.6143642", "0.610472", "0.610472", "0.610472", "0.60943305", "0.6087846", "0.60654116",...
0.74038976
0
Return AMP Object whose attributes are A4E_API_hostname, A4E_client_id and A4E_api_key.
def FIMM(YKHO, Ja3e, Jf2o, V8lk): YKHO.A4E_API_hostname = Ja3e YKHO.A4E_client_id = Jf2o YKHO.A4E_api_key = V8lk YKHO.headers = {'content-type': 'application/json', 'accept': 'application/json'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1LB(YKHO):\n if not YKHO._ap_dict:\n YKHO.populate_ap_dict()\n return YKHO._ap_dict", "def jBQr(YKHO, O_rb):\n VqfF = YKHO.validate_ap(O_rb['ap_id'])\n VqfF.location = O_rb['location']\n VqfF.n_ues = O_rb['n_ues']\n VqfF.ues_meeting_sla = O_rb['ues_meeting_sla']\n return VqfF", ...
[ "0.5762938", "0.52202463", "0.5216899", "0.5184737", "0.50561523", "0.503477", "0.49664927", "0.49644887", "0.49048203", "0.4894062", "0.48693413", "0.48626563", "0.48384732", "0.48312637", "0.4829692", "0.47769806", "0.4715918", "0.47147772", "0.47147772", "0.4699582", "0.46...
0.6385135
0
Return xcoordinates of the nodes along the xdirection This property returns a vector containing the xcoordinate values of the nodes along the xdirection. For instances of
def w2dn(YKHO): return oyIN.r_[YKHO.origin[0], YKHO.h[0]].cumsum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MCxt(YKHO):\n return YKHO._x_coordinates", "def Dl13(YKHO):\n return YKHO._positions_x", "def a2wL(YKHO):\n return YKHO._coord_x", "def nIKw(YKHO):\n return [XP5J.x for XP5J in YKHO._points]", "def nIKw(YKHO):\n return YKHO.x_coord", "def WKvO(YKHO):\n if YKHO.coordinates is None:\n...
[ "0.779081", "0.7587741", "0.74895954", "0.7363315", "0.7202746", "0.7179463", "0.7176696", "0.7134262", "0.70905197", "0.7059141", "0.696591", "0.6955048", "0.69023746", "0.68897694", "0.68663645", "0.6853771", "0.6849339", "0.6849196", "0.6837599", "0.68242455", "0.68242455"...
0.7719256
1
Return ycoordinates of the nodes along the ydirection For 2D and 3D meshes, this property returns a vector containing the ycoordinate values of the nodes along the
def U6iT(YKHO): return None if YKHO.dim < 2 else oyIN.r_[YKHO.origin[1], YKHO.h[1]].cumsum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCYK(YKHO):\n return YKHO._y_coordinates", "def LVAh(YKHO):\n return AneC(YKHO.GetYCoordinates())", "def IlO3(YKHO):\n return YKHO._coord_y", "def ZK2_(YKHO):\n return YKHO._positions_y", "def Mf8g(YKHO):\n if YKHO.nEy == 0 or YKHO.dim < 2:\n return\n return YKHO._getTensorGrid...
[ "0.7500154", "0.74332976", "0.734753", "0.7327001", "0.7264648", "0.7264648", "0.7142162", "0.7080042", "0.7080042", "0.7021618", "0.6981047", "0.6974456", "0.6964648", "0.6961294", "0.69511735", "0.6928014", "0.6926017", "0.6911845", "0.69085276", "0.6903883", "0.69000614", ...
0.7528157
0
Return xcoordinates of the cell centers along the xdirection For 1D, 2D and 3D meshes, this property returns a 1D vector containing the xcoordinate values of the cell centers along the
def zNDt(YKHO): Ziit = YKHO.nodes_x return (Ziit[1:] + Ziit[:-1]) / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def euHp(YKHO):\n return YKHO._getTensorGrid('cell_centers')", "def epQT(YKHO):\n pass", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n return YKHO._center.get_x()", "def tyw0(YKHO):\n return YKHO._center_x", "def MCxt(YKHO):\n return YKHO._x_coordinates", "def ZS...
[ "0.7677731", "0.7498341", "0.74123806", "0.74123806", "0.73776305", "0.7254697", "0.7231593", "0.7204812", "0.71981686", "0.7197973", "0.7183537", "0.71632797", "0.7147116", "0.71379507", "0.7124166", "0.706764", "0.70325696", "0.6951381", "0.6942942", "0.693484", "0.6882217"...
0.84443504
0
Return ycoordinates of the cell centers along the ydirection For 2D and 3D meshes, this property returns a 1D vector containing the ycoordinate values of the cell centers along the
def qoEr(YKHO): if YKHO.dim < 2: return None Ziit = YKHO.nodes_y return (Ziit[1:] + Ziit[:-1]) / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BkOA(YKHO) -> oyIN.ndarray:\n if getattr(YKHO, '_cell_distances_y', None) is None:\n ei39 = YKHO.aveCC2Fy\n YKHO._cell_distances_y = ei39 * (YKHO.Pac.T * YKHO.mesh.h_gridded[:, 1])\n return YKHO._cell_distances_y", "def L3TA(YKHO):\n from scipy import ndimage\n return ndimage.measur...
[ "0.74560034", "0.7426025", "0.7310035", "0.72581744", "0.7185751", "0.70933026", "0.7089241", "0.7078306", "0.7045091", "0.70343095", "0.69953537", "0.69783795", "0.69783795", "0.68302065", "0.6798967", "0.6798967", "0.67983276", "0.67976415", "0.67785406", "0.6766937", "0.67...
0.8229528
0
Return gridded node locations This property returns a numpy array of shape (n_nodes, dim) containing gridded node locations for all nodes in the mesh. The nodes are ordered along the x, then y, then z directions. Returns (n_nodes, dim) numpy.ndarray of float Gridded node locations Examples The following is a 1D example...
def Ziit(YKHO): return YKHO._getTensorGrid('nodes')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jNOo(YKHO):\n return (YKHO.grid.node_x, YKHO.grid.node_y)", "def jNOo(YKHO):\n return (YKHO.grid.node_x, YKHO.grid.node_y)", "def q6kS(YKHO):\n H5ew = 'tube'\n if YKHO._nodes_grids[H5ew] is None:\n FQNo = YKHO.mesh_config\n ROpF = (FQNo.num_pts_through_wall, FQNo.num_pts_on_semi_c...
[ "0.6475372", "0.6475372", "0.64691067", "0.631088", "0.62760776", "0.62760776", "0.62682176", "0.6246343", "0.6243924", "0.62407494", "0.62377346", "0.62184536", "0.62020016", "0.61421466", "0.6075096", "0.6062125", "0.6051973", "0.5954851", "0.5954092", "0.59444773", "0.5942...
0.6475291
2
Boundary node locations This property returns the locations of the nodes on the boundary of the mesh as a numpy array. The shape of the numpy array is the number of boundary nodes by the dimension of the mesh. Returns (n_boundary_nodes, dim) numpy.ndarray of float Boundary node locations
def HVjB(YKHO): tpio = YKHO.dim if tpio == 1: return YKHO.nodes_x[[0, -1]] return YKHO.nodes[btbI(YKHO.shape_nodes)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k5wj(YKHO):\n tpio = YKHO.dim\n if tpio == 1:\n return YKHO.nodes_x[[0, -1]]\n if tpio == 2:\n AOlJ = na8F(YKHO.nodes_x[[0, -1]], YKHO.cell_centers_y)\n stDt = na8F(YKHO.cell_centers_x, YKHO.nodes_y[[0, -1]])\n return oyIN.r_[AOlJ, stDt]\n if tpio == 3:\n AOlJ = n...
[ "0.6858559", "0.68357104", "0.6650529", "0.6641841", "0.6513545", "0.6385017", "0.63839024", "0.63526297", "0.63444316", "0.63388735", "0.6335238", "0.6301559", "0.6255656", "0.624521", "0.624521", "0.62122023", "0.61947984", "0.61710054", "0.61554766", "0.6111797", "0.611054...
0.71728873
0
Return dimensions of all mesh cells as staggered grid. This property returns a numpy array of shape (n_cells, dim) containing gridded x, (y and z) dimensions for all cells in the mesh. The first row corresponds to the bottomfrontleftmost cell. The cells are ordered along the x, then y, then z directions. Returns (n_cel...
def rzRg(YKHO): if YKHO.dim == 1: return YKHO.h[0][:, None] return na8F(*YKHO.h)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rzRg(YKHO):\n if getattr(YKHO, '_h_gridded', None) is None:\n YKHO._h_gridded = oyIN.zeros((len(YKHO._cells), YKHO.dim))\n for P2GO, QyVM in enumerate(YKHO._sortedCells):\n XP5J = YKHO._asPointer(QyVM)\n YKHO._h_gridded[P2GO, :] = YKHO._cellH(XP5J)\n return YKHO._h_gri...
[ "0.74052554", "0.6331311", "0.6229954", "0.6184031", "0.61733913", "0.61468315", "0.6115197", "0.6099357", "0.6094165", "0.60862225", "0.60625875", "0.6037805", "0.60123754", "0.59827787", "0.5975615", "0.596408", "0.59428185", "0.59358317", "0.58803076", "0.58773696", "0.585...
0.7391208
1
Gridded xface locations This property returns a numpy array of shape (n_faces_x, dim) containing gridded locations for all xfaces in the mesh. The first row corresponds to the bottomfrontleftmost xface. The xfaces are ordered along the x, then y, then z directions. Returns (n_faces_x, dim) numpy.ndarray of float Gridde...
def uu3W(YKHO): if YKHO.nFx == 0: return return YKHO._getTensorGrid('faces_x')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k5wj(YKHO):\n tpio = YKHO.dim\n if tpio == 1:\n return YKHO.nodes_x[[0, -1]]\n if tpio == 2:\n AOlJ = na8F(YKHO.nodes_x[[0, -1]], YKHO.cell_centers_y)\n stDt = na8F(YKHO.cell_centers_x, YKHO.nodes_y[[0, -1]])\n return oyIN.r_[AOlJ, stDt]\n if tpio == 3:\n AOlJ = n...
[ "0.68225735", "0.6562738", "0.6495408", "0.6454169", "0.64287907", "0.6261756", "0.62394303", "0.6216476", "0.6200108", "0.6155544", "0.6105198", "0.6061029", "0.605697", "0.6054473", "0.6040684", "0.6030078", "0.6014631", "0.600817", "0.60005355", "0.59426504", "0.59381306",...
0.7203205
0
Gridded yface locations This property returns a numpy array of shape (n_faces_y, dim) containing gridded locations for all yfaces in the mesh. The first row corresponds to the bottomfrontleftmost yface. The yfaces are ordered along the x, then y, then z directions. Returns n_faces_y, dim) numpy.ndarray of float or None...
def n5tK(YKHO): if YKHO.nFy == 0 or YKHO.dim < 2: return return YKHO._getTensorGrid('faces_y')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qo1A(YKHO) -> oyIN.ndarray:\n if YKHO._y_locations is None:\n return oyIN.sin(YKHO._radians) * YKHO.radius + YKHO.center.y\n else:\n return YKHO._y_locations", "def eUBC(YKHO):\n return YIAH.silent_list('Line2D ygridline', YKHO.yaxis.get_gridlines())", "def txQa(YKHO):\n return YK...
[ "0.619866", "0.60105497", "0.60099953", "0.600893", "0.600893", "0.5968384", "0.5777166", "0.57450086", "0.5719565", "0.5683962", "0.56666976", "0.5644237", "0.5618366", "0.561011", "0.56039786", "0.5552015", "0.55204046", "0.551187", "0.5503407", "0.5503407", "0.54739255", ...
0.7395364
0
Gridded face locations This property returns a numpy array of shape (n_faces, dim) containing gridded locations for all faces in the mesh. The first row corresponds to the bottomfrontleftmost xface. The output array returns the xfaces, then the yfaces, then the zfaces; i.e. mesh.faces is equivalent to np.r_[mesh.faces_...
def y_PJ(YKHO): y_PJ = YKHO.faces_x if YKHO.dim > 1: y_PJ = oyIN.r_[y_PJ, YKHO.faces_y] if YKHO.dim > 2: y_PJ = oyIN.r_[y_PJ, YKHO.faces_z] return y_PJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F3Yx(YKHO):\n return YKHO._face_grid", "def Stdt(YKHO):\n return gnPz.buf_to_npy(YKHO._ptr.contents.mesh_face, (YKHO.nmeshface, 3))", "def dkg7(YKHO):\n y_PJ = []\n for XP5J in YKHO.vertices.index:\n for vexM in YKHO.vertices.loc[XP5J].neighbours:\n RpU_ = oyIN.empty((3, 3))\n...
[ "0.6735483", "0.65868616", "0.6520374", "0.6422536", "0.6413623", "0.64008373", "0.64008373", "0.63926715", "0.63691574", "0.6365513", "0.61216646", "0.6048844", "0.6023464", "0.60086876", "0.59362626", "0.59362626", "0.5933603", "0.5932887", "0.5919291", "0.5862236", "0.5837...
0.622159
10
Gridded xedge locations This property returns a numpy array of shape (n_edges_x, dim) containing gridded locations for all xedges in the mesh. The first row corresponds to the bottomfrontleftmost xedge. The xedges are ordered along the x, then y, then z directions. Returns (n_edges_x, dim) numpy.ndarray of float or Non...
def oQJg(YKHO): if YKHO.nEx == 0: return return YKHO._getTensorGrid('edges_x')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sxtC(YKHO):\n s7Nh = []\n for G1Hx in YKHO.neighbors.keys():\n EnQo = YKHO.gdf[YKHO.gdf['shapeID'] == G1Hx].drop(['shapeID', 'geometry', 'sum_num_intmig'], axis=1).values\n if len(EnQo) != 0:\n s7Nh.append(EnQo[0])\n else:\n s7Nh.append(oyIN.array([0] * 4))\n ...
[ "0.636991", "0.62550217", "0.6247658", "0.5917932", "0.5917437", "0.58573335", "0.5743948", "0.5704917", "0.5688925", "0.5684011", "0.56182003", "0.5614091", "0.5614091", "0.5606477", "0.5591599", "0.5591599", "0.5567134", "0.5562273", "0.55564404", "0.55564404", "0.5531757",...
0.71051633
0
Gridded yedge locations This property returns a numpy array of shape (n_edges_y, dim) containing gridded locations for all yedges in the mesh. The first row corresponds to the bottomfrontleftmost yedge. The yedges are ordered along the x, then y, then z directions. Returns (n_edges_y, dim) numpy.ndarray of float Gridde...
def Mf8g(YKHO): if YKHO.nEy == 0 or YKHO.dim < 2: return return YKHO._getTensorGrid('edges_y')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eUBC(YKHO):\n return YIAH.silent_list('Line2D ygridline', YKHO.yaxis.get_gridlines())", "def sNaB(YKHO):\n return YKHO._vly_section_edges", "def Qo1A(YKHO) -> oyIN.ndarray:\n if YKHO._y_locations is None:\n return oyIN.sin(YKHO._radians) * YKHO.radius + YKHO.center.y\n else:\n ret...
[ "0.67121863", "0.6463717", "0.626038", "0.62235457", "0.62235457", "0.6121857", "0.6120772", "0.6095035", "0.6029298", "0.6026506", "0.6016202", "0.5980476", "0.5956706", "0.59544706", "0.5937215", "0.5882159", "0.5840658", "0.57882136", "0.576195", "0.5736056", "0.5736056", ...
0.74955493
0
Gridded zedge locations This property returns a numpy array of shape (n_edges_z, dim) containing gridded locations for all zedges in the mesh. The first row corresponds to the bottomfrontleftmost zedge. The zedges are ordered along the x, then y, then z directions. Returns (n_edges_z, dim) numpy.ndarray of float Gridde...
def f05u(YKHO): if YKHO.nEz == 0 or YKHO.dim < 3: return return YKHO._getTensorGrid('edges_z')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmrh(YKHO):\n tpio = YKHO.dim\n if tpio == 1:\n return None\n if tpio == 2:\n aTqo = na8F(YKHO.cell_centers_x, YKHO.nodes_y[[0, -1]])\n V0zD = na8F(YKHO.nodes_x[[0, -1]], YKHO.cell_centers_y)\n return oyIN.r_[aTqo, V0zD]\n if tpio == 3:\n aTqo = YKHO.edges_x[btbI(...
[ "0.6427813", "0.6404859", "0.6403488", "0.63226515", "0.63226515", "0.6309125", "0.6309125", "0.6198431", "0.61662954", "0.6131207", "0.60904795", "0.60227174", "0.59629416", "0.59629416", "0.58997005", "0.583417", "0.58013535", "0.57868326", "0.5775837", "0.57673854", "0.576...
0.74757475
0
Gridded edge locations This property returns a numpy array of shape (n_edges, dim) containing gridded locations for all edges in the mesh. The first row corresponds to the bottomfrontleftmost xedge. The output array returns the xedges, then the yedges, then the zedges; i.e. mesh.edges is equivalent to np.r_[mesh.edges_...
def mC4V(YKHO): mC4V = YKHO.edges_x if YKHO.dim > 1: mC4V = oyIN.r_[mC4V, YKHO.edges_y] if YKHO.dim > 2: mC4V = oyIN.r_[mC4V, YKHO.edges_z] return mC4V
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iGYW(YKHO):\n return YKHO._edge_grid", "def d0ds(YKHO):\n dos2 = len(YKHO.edges)\n mC4V = oyIN.zeros((dos2, 2, 3), dtype=oyIN.int)\n for YRbF in range(dos2):\n mC4V[YRbF, 0, :] = [YKHO.edges[YRbF].source.iz, YKHO.edges[YRbF].source.iy, YKHO.edges[YRbF].source.ix]\n mC4V[YRbF, 1, :] ...
[ "0.67196393", "0.6594593", "0.65839314", "0.6571788", "0.6484349", "0.6409483", "0.63711953", "0.63282526", "0.63282526", "0.63258314", "0.6302507", "0.6202054", "0.61852974", "0.6175931", "0.6060063", "0.60476166", "0.6039271", "0.60354745", "0.6024107", "0.6014823", "0.6006...
0.6418234
5
Boundary edge locations This property returns the locations of the edges on the boundary of the mesh as a numpy array. The shape of the numpy array is the number of boundary edges by the dimension of the mesh. Returns (n_boundary_edges, dim) numpy.ndarray of float Boundary edge locations
def lmrh(YKHO): tpio = YKHO.dim if tpio == 1: return None if tpio == 2: aTqo = na8F(YKHO.cell_centers_x, YKHO.nodes_y[[0, -1]]) V0zD = na8F(YKHO.nodes_x[[0, -1]], YKHO.cell_centers_y) return oyIN.r_[aTqo, V0zD] if tpio == 3: aTqo = YKHO.edges_x[btbI(YKHO.shape_edg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmrh(YKHO) -> gyIm:\n return oyIN.nonzero(oyIN.isin(YKHO.edges, YKHO.boundary_nodes()).all(axis=0))[0]", "def lmrh(YKHO):\n tpio = YKHO.dim\n if tpio == 1:\n return None\n if tpio == 2:\n aTqo = na8F(YKHO.cell_centers_x, YKHO.nodes_y[[0, -1]])\n V0zD = na8F(YKHO.nodes_x[[0, -...
[ "0.7576093", "0.751457", "0.69546354", "0.6952472", "0.69293594", "0.68985426", "0.6748243", "0.67378205", "0.6716664", "0.6709639", "0.6572491", "0.64961064", "0.64817804", "0.64609444", "0.64609444", "0.6433784", "0.6406088", "0.63868", "0.6382387", "0.6366333", "0.63633287...
0.7510688
2
Returns the base 1D arrays for a specified mesh tensor. The cellcenters, nodes, xfaces, zedges, etc... of a tensor mesh can be constructed by applying tensor products to the set of base 1D arrays; i.e. (vx, vy, vz). These 1D arrays define the gridded locations for the mesh tensor along each axis. For a given mesh tenso...
def OHrd(YKHO, H5ew): H5ew = YKHO._parse_location_type(H5ew) if H5ew == 'faces_x': EHMB = [YKHO.nodes_x, YKHO.cell_centers_y, YKHO.cell_centers_z] elif H5ew == 'faces_y': EHMB = [YKHO.cell_centers_x, YKHO.nodes_y, YKHO.cell_centers_z] elif H5ew == 'faces_z': EHMB = [YKHO.cell_cen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iAsY(YKHO):\n return RSXT(YKHO.get_image())", "def cdzj(vhpA: Tensor) -> oyIN.ndarray:\n assert type(vhpA) == llWB, 'Input must be a pytorch tensor'\n return vhpA.detach().cpu().numpy().squeeze()", "def dsja(WKvO, T4Wy=None):\n if T4Wy is not None:\n assert len(T4Wy) == len(WKvO), 'Lengt...
[ "0.5711007", "0.5618618", "0.5539302", "0.5414034", "0.54116607", "0.53527343", "0.52164865", "0.5204047", "0.5190482", "0.5125141", "0.510659", "0.5097691", "0.5064605", "0.5061194", "0.50519466", "0.5050256", "0.5007149", "0.49926975", "0.4986428", "0.49861374", "0.49840677...
0.5489911
3
Gets the authentication status of the current session
def rts1(): return 'authenticated' in cuiw and cuiw['authenticated'] == True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tLbq():\n CBIr = mv1M.query.get(cuiw['user_id'])\n return CBIr.authy_status", "def mgxe(YKHO):\n return YKHO.user.checkAuthentication(sessionid=YKHO.auth)", "def VLTN(YKHO):\n bD7m = '{0}/sessions'.format(YKHO.base_url)\n YKHO.logger.debug('Checking to see if the user is still logged in....'...
[ "0.7696858", "0.74065757", "0.7367503", "0.73546207", "0.7265388", "0.72105366", "0.71730125", "0.71654564", "0.7140516", "0.7030357", "0.7029238", "0.7001065", "0.6983582", "0.6983582", "0.691199", "0.6867268", "0.6862023", "0.6862023", "0.6862023", "0.6862023", "0.6862023",...
0.66364396
69
Save feature dict to file.
def xkzz(YKHO): with open(YKHO.dirs + '/feat_dict.json', 'w') as eHNT: qQXR.dump(YKHO.feat_dict, eHNT, indent=4) with open(YKHO.dirs + '/integer_norm.json', 'w') as eHNT: qQXR.dump(YKHO.integer_norm, eHNT, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kM9g():\n print('Saving feature dict...')\n print('values for:')\n for YRbF in range(len(Zxqe)):\n print(n4JS[YRbF], 'has', len(Zxqe[YRbF]), 'values')\n with open('feature_dicts.json', 'w') as ytgA:\n ytgA.write('[' + ',\\n'.join((qQXR.dumps(YRbF) for YRbF in Zxqe)) + ']\\n')\n pri...
[ "0.82855004", "0.7927629", "0.76602745", "0.75483817", "0.7516495", "0.7376328", "0.7373145", "0.73394525", "0.724093", "0.7097057", "0.7073855", "0.7060962", "0.7000744", "0.6959791", "0.6946727", "0.69404256", "0.6919988", "0.6893996", "0.68926895", "0.68555224", "0.6854445...
0.75835204
3
Creates a start state, an empty board with the given size The board is stored as a onedimensional array See GoBoardUtil.coord_to_point for explanations of the array encoding
def SiRx(YKHO, zNig): YKHO.size = zNig YKHO.NS = zNig + 1 YKHO.WE = 1 YKHO.ko_recapture = None YKHO.current_player = XDQs YKHO.maxpoint = zNig * zNig + 3 * (zNig + 1) YKHO.board = oyIN.full(YKHO.maxpoint, pqZk, dtype=oyIN.int32) YKHO.liberty_of = oyIN.full(YKHO.maxpoint, KInK, dtype=oyIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def idFV(zNig: int=11) -> XTiz.ndarray:\n return -XTiz.ones((zNig, zNig), dtype=int)", "def FIMM(YKHO, zNig):\n YKHO.size = zNig\n iBIi = [[0 for WKvO in range(zNig)] for LVAh in range(zNig)]\n for YRbF in range(zNig):\n iBIi[YRbF][0] = 1\n for YRbF in range(zNig):\n iBIi[zNig - 1][Y...
[ "0.7439903", "0.7420167", "0.7227469", "0.70963603", "0.699313", "0.6708367", "0.66439146", "0.65946853", "0.65688235", "0.653852", "0.6527208", "0.6492462", "0.6491803", "0.64885247", "0.6453259", "0.6450895", "0.64322674", "0.6425457", "0.64229244", "0.6407839", "0.6382965"...
0.6582385
8
Determines if this GeoPt is the same as another. Two points are assumed identical if their distance according to the greatcircle algorithm is less than 10m.
def xa14(YKHO, Elif): if YKHO: if not Elif: return False else: return YKHO.distance(Elif) < 10 else: return not Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, Bwqn):\n return NotImplemented\n return YKHO.latitude == Elif.latitude and YKHO.longitude == Elif.longitude", "def xa14(YKHO, Elif: 'Point') -> bool:\n return YKHO.x == Elif.x and YKHO.y == Elif.y", "def xa14(YKHO, Elif):\n if YKHO is Elif:\n ...
[ "0.7537936", "0.7417945", "0.74163675", "0.73249024", "0.7143946", "0.7143946", "0.70647526", "0.7052308", "0.70348245", "0.6993842", "0.6942769", "0.69047785", "0.68984896", "0.68391633", "0.6833411", "0.68320644", "0.6817737", "0.6802789", "0.6796427", "0.6793385", "0.67410...
0.643103
61
Return tuple with two lists of nodes (NodeAdmin instances) for all active nodes. First item in the returned tuple is a list of czar nodes, second item is a list of worker nodes.
def CDNe(YKHO): TwsR = hnlP.NodeMgmt(YKHO.css, YKHO.wmgrSecretFile) ggVU = [] fHUa = [] try: ggVU = TwsR.select(oykL.NODE_STATE_ACTIVE, 'czar') fHUa = TwsR.select(oykL.NODE_STATE_ACTIVE, 'worker') except oykL.CssError as exc: yDgX.error('Failed to get nodes from CSS: %s', BQD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ei0b(Z9rn):\n return [Z9rn.scheduler_info()['workers'][mWFP]['host'] for mWFP in Z9rn.scheduler_info()['workers'].keys()]", "def hDHZ(YKHO):\n CYAo = []\n for aM69 in range(len(YKHO.mod.get_graph())):\n VpFr = len(YKHO.mod.filter_active_cores([aM69], True)) > 0\n for Z9rn in CYAo:\n ...
[ "0.69684327", "0.69157696", "0.68149793", "0.68125063", "0.67877364", "0.67603713", "0.66871905", "0.66662806", "0.6631893", "0.658966", "0.6556357", "0.65505046", "0.65486324", "0.6501953", "0.64971536", "0.6494454", "0.64602923", "0.6452567", "0.6437424", "0.6430205", "0.64...
0.7384211
0
Apply the activation function to multiclass output this should make sure the probability for all output units sum up to one. For training I still use the activate method just to simplify the problem. I only support softmax function now. x should be a matrix. The first dimension represent the number of data points, and ...
def if6l(YKHO, k0lF): Nk6w = XTiz.exp(k0lF) o4sw = sum(Nk6w, 1) return Nk6w / o4sw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJ17(WKvO):\n JvQp = ht2j.max(WKvO, 1, keepdim=True)[0]\n yRgo = ht2j.exp(WKvO - JvQp)\n hZBe = ht2j.sum(yRgo, 1, keepdim=True)\n return yRgo / hZBe", "def XWIy(WKvO, NArs):\n XcU5, Fg_i = NArs\n uAKW = XcU5.transpose()\n hObQ = oyIN.dot(uAKW, WKvO)\n xR4a = hObQ + Fg_i\n BFeB = N9...
[ "0.6977241", "0.6907312", "0.6881671", "0.6881455", "0.6832008", "0.677878", "0.6707565", "0.6694662", "0.66622806", "0.6652662", "0.664698", "0.6641537", "0.6637153", "0.65967506", "0.658521", "0.6558004", "0.65310174", "0.65275013", "0.6527485", "0.65150166", "0.65135705", ...
0.0
-1
Insert ConfigElement to self.trees, checking for duplicate localname or path first. In case local_name matches, follow given strategy
def zg4K(YKHO, Il47, IN_6='KillAppend'): GTWu = [] WNjP = False for d6pt, fujY in enumerate(YKHO.trees): Qovt = UghQ(fujY.get_path(), Il47.get_path()) if Qovt == 'SAME_AS': if Hy7s.path.normpath(fujY.get_local_name()) != Hy7s.path.normpath(Il47.get_local_name()): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kWrk(YKHO, xhv7, IN_6='KillAppend'):\n rAod = BYLK(xhv7.get_local_name(), YKHO.get_base_path())\n if Hy7s.path.isfile(rAod):\n if xhv7.get_tags() is not None and 'setup-file' in xhv7.get_tags():\n LihS = pDCh(rAod, Hy7s.path.normpath(xhv7.get_local_name()), properties=xhv7.get_tags())\n...
[ "0.6090168", "0.5513822", "0.53497976", "0.52253604", "0.5199893", "0.50938064", "0.49769676", "0.4946904", "0.49452004", "0.4875901", "0.4859528", "0.4847642", "0.4838489", "0.48384154", "0.48356614", "0.4832883", "0.48089588", "0.48016042", "0.47995308", "0.47910503", "0.47...
0.6423282
0
Compute the softmax of vector x.
def N93T(WKvO): O48W = oyIN.exp(WKvO) y3Mu = O48W / oyIN.sum(O48W) return y3Mu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)", "def N93T(YKHO, WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO))", "def N93T(YKHO, WKvO):\n IA3S = oyIN.max(WKvO)\n MZx7 = 0\n for YRbF in range(len(WKvO)):\n MZx7 = MZx7 + epAf.e...
[ "0.9069814", "0.89685386", "0.89637303", "0.89531136", "0.8945816", "0.8906187", "0.8906187", "0.88862705", "0.88723785", "0.8855647", "0.8849173", "0.88403004", "0.88362604", "0.88348967", "0.8823002", "0.8802714", "0.8799106", "0.8798473", "0.8789911", "0.8781236", "0.87800...
0.8677557
85
Converts list of channels to dictionary of features to channels. Mimics the behavior of convert_non_image_features_channels_to_dict in ScalarConfig.
def v6VV(TWVF: List[str], opg8: List[str], VHFj: Optional[List[str]]=None) -> cuzp[str, x1iM[str]]: Ylbp = {} ZLJ_ = opg8.copy() if VHFj: ZLJ_ += VHFj for fvDH in ZLJ_: Ylbp[fvDH] = TWVF return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UEEm(SS7a):\n return {t4IA: [Z9rn.identifier for Z9rn in SS7a]}", "def Gqnl(Eqho):\n uMAB = dict()\n zynq = Eqho[0].columns.values.tolist()\n for RDhP in zynq:\n kCbD = dict()\n SLst = []\n for nPrm in Eqho:\n ijWm = nPrm[RDhP]\n if ijWm.dtype == object:...
[ "0.6726386", "0.6164298", "0.59799284", "0.57644796", "0.57511204", "0.5676175", "0.5666713", "0.5637419", "0.5558107", "0.5521193", "0.55203474", "0.55193466", "0.5495374", "0.5468998", "0.54258806", "0.5393256", "0.5386285", "0.5311078", "0.5279362", "0.52324444", "0.523182...
0.674836
0
Test loading file paths from a dataframe when a subject misses a channel.
def XKM1() -> None: jZNe = kJm3('subject,channel,path,value\nS1,image1,img11.nii\nS1,image2,img12.nii,True\nS2,image2,image22.nii,False\n') jQ3Z = rLdf.read_csv(jZNe, sep=',', dtype=str) DumB: x1iM[nR7Z] = e5Mx(data_frame=jQ3Z, image_channels=['image1', 'image2'], image_file_column='path', label_channels=['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jtHZ() -> None:\n\n def tyeH(jZNe: StringIO) -> str:\n jQ3Z = rLdf.read_csv(jZNe, sep=',', dtype=str)\n pOGA = ['scalar2', 'scalar1']\n FfOy = v6VV(['label', 'image2'], ['scalar2', 'scalar1'])\n with trZe.raises(Exception) as aTqo:\n e5Mx(data_frame=jQ3Z, image_channel...
[ "0.64046144", "0.6195829", "0.6052946", "0.6049731", "0.59891367", "0.59694296", "0.5826139", "0.5791872", "0.5701209", "0.5684087", "0.56437135", "0.5628439", "0.5597528", "0.5548657", "0.5502823", "0.5481719", "0.5467873", "0.5437348", "0.54320467", "0.5429773", "0.5405543"...
0.63733006
1
Test loading of different channels for different categorical features.
def PL5p() -> None: jZNe = kJm3('subject,path,channel,cat1,cat2,scalar1,label\nS1,foo1.nii,week1,True,True,1.2,True\nS1,foo2.nii,week2,False,False,1.2,True\nS1,foo2.nii,week3,False,True,1.3,True\n') jQ3Z = rLdf.read_csv(jZNe, sep=',', dtype=str) ZfUD: nR7Z = pc66(jQ3Z, subject_id='S1', image_channels=['week...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _2kU():\n m6Me, YTVa = wIX3()[:2]\n HasU = hZjj(m6Me, YTVa[:1], preload=True)\n pyc6 = HasU.get_channel_types()\n assert len(pyc6) == len(HasU.ch_names)\n assert all(oyIN.in1d(pyc6, ['mag', 'grad', 'eeg', 'eog', 'stim']))", "def yBYM(YKHO):\n Csk6 = Vli5.io.FCSData(iumf[1])\n YKHO.assert...
[ "0.6733169", "0.6644296", "0.64062876", "0.63567907", "0.625157", "0.61295015", "0.61127657", "0.6024015", "0.60023713", "0.59816104", "0.594158", "0.59258974", "0.59113115", "0.58995104", "0.585677", "0.5855058", "0.58424795", "0.580793", "0.580793", "0.5771055", "0.5751705"...
0.6299221
4
Return a copy of a templated type structure. Type are passed through without modification, variables are duplicated with a new id.
def i3ak(YKHO, Ty9i: T, E0h4: Dict=None) -> Kt_s: if E0h4 is None: E0h4 = {} return YKHO._clone(Ty9i, E0h4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZK6N(YKHO, mWFP):\n assert not YKHO.is_derived\n Pp4i = tnwy.from_typeset(YKHO.type_set.copy())\n Pp4i.name = mWFP\n return Pp4i", "def w3Wc(Hghu: GraphQLType, eJh7: GraphQLType):\n oUCs = Cun7(Hghu)\n VUMT = []\n if nzQz(eJh7):\n VUMT.insert(0, ukP6)\n eJh7 = eJh7.of_type\...
[ "0.67615384", "0.63325125", "0.6235907", "0.6084777", "0.6047038", "0.60333586", "0.6002048", "0.5887337", "0.5876219", "0.57644707", "0.57528764", "0.57262033", "0.5712491", "0.5705752", "0.56916606", "0.56464547", "0.5645501", "0.5626145", "0.5622061", "0.56204253", "0.5618...
0.0
-1
This function may create a new variable in this scope. If raw_name has been used to create other variables, the new variable will hide all other variables created using raw_name.
def ecd7(YKHO, owWi, type=None, qIuc=False): PhE1 = YKHO.get_unique_variable_name(owWi) Es0b = iQnE(owWi, PhE1, YKHO.name, type) YKHO.variables[PhE1] = Es0b if owWi in YKHO.variable_name_mapping: if not qIuc: YKHO.variable_name_mapping[owWi].append(PhE1) else: YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zvku(YKHO, mWFP, type):\n mWFP = ZWCE.Name.get(mWFP)\n YRbF = 0\n v7hv = mWFP.base_name\n while mWFP in YKHO.local_vars:\n YRbF += 1\n mWFP = ZWCE.Name(f'{v7hv}_{YRbF}')\n U5bT = xocV.LocalVar(YKHO, mWFP, type)\n YKHO.local_vars[mWFP] = U5bT\n return U5bT", "def y893(YKHO, ...
[ "0.7279315", "0.6374554", "0.6327589", "0.6311719", "0.62886024", "0.62380594", "0.61519736", "0.61338687", "0.60815346", "0.6080135", "0.607981", "0.6069877", "0.6069032", "0.6025689", "0.60180473", "0.59912366", "0.59373856", "0.58933425", "0.5883485", "0.5849518", "0.58390...
0.7040329
1
Produce an unique string based on the seed
def T8R7(yokr, aV5o): if yokr == '': raise ValueError('Name seed must be an non-empty string') yokr = iQnE.tfname_to_onnx(yokr) if yokr not in aV5o: aV5o.add(yokr) return yokr else: YRbF = 1 while yokr + str(YRbF) in aV5o: YRbF += 1 Dokz = yokr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nj6L():\n Aofo = Gmzq.rand_uuid()\n return Aofo", "def eTqN():\n return str(qxeD.uuid4())[:10]", "def tuKI():\n return str(qxeD.uuid4())", "def C6M2(YKHO, yokr: str='') -> str:\n raise NotImplementedError", "def swFL():\n return str(kxTZ())", "def Kn3U():\n return ''.join(tuKI.ch...
[ "0.7836769", "0.7693412", "0.76687396", "0.7652162", "0.7536755", "0.74229276", "0.7419104", "0.73817563", "0.73812795", "0.7362723", "0.7351431", "0.73437595", "0.73437595", "0.7338403", "0.7333279", "0.7307975", "0.73074806", "0.7304402", "0.72721446", "0.7269854", "0.72504...
0.67955714
89
Ensure all STACObjects linked to by this STACObject are resolved. This is important for operations such as changing HREFs. This method mutates the entire catalog tree.
def eRTC(YKHO) -> None: CuFq = set(YKHO._object_links()) | {kRTw.RelType.ROOT, kRTw.RelType.PARENT} for QZnA in YKHO.links: if QZnA.rel in CuFq: if not QZnA.is_resolved(): QZnA.resolve_stac_object(root=YKHO.get_root())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xBs1(YKHO):\n for aC0l in YKHO.references:\n aC0l.resolve(YKHO.anchors)", "def vZjc(YKHO):\n for yAmx in YKHO.corpus.sentences:\n jbXL = YKHO.refiner(yAmx, YKHO.corpus.vocabularies)\n jbXL.resolve()\n yAmx.prune()", "def xBs1(YKHO) -> None:\n if YKHO._resolved:\n ...
[ "0.6277045", "0.5673249", "0.5329178", "0.5289388", "0.5257165", "0.5257165", "0.51883423", "0.518705", "0.5170729", "0.51508564", "0.5144283", "0.51323575", "0.51198465", "0.511693", "0.5115979", "0.5106585", "0.5098355", "0.5096745", "0.509409", "0.5082083", "0.5082083", ...
0.70520794
0
Returns this object as a dictionary.
def MNRr(YKHO, z_sZ: bool=True, ifWa: bool=True) -> cuzp[str, ImMB]: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hati(YKHO):\n return dict(YKHO)", "def _fYl(YKHO):\n return dict(YKHO)", "def _fYl(YKHO):\n return YKHO.__dict__", "def _fYl(YKHO):\n return YKHO.__dict__", "def _fYl(YKHO):\n return YKHO.__dict__", "def lKKu(YKHO):\n return lKKu(YKHO)", "def MNRr(YKHO):\n return dict(YKHO)", ...
[ "0.8935479", "0.88565886", "0.8818553", "0.8818553", "0.8818553", "0.8742771", "0.87409085", "0.87228554", "0.87075937", "0.86912084", "0.86912084", "0.86912084", "0.86912084", "0.86912084", "0.86912084", "0.86912084", "0.86912084", "0.86912084", "0.86912084", "0.8658694", "0...
0.0
-1
Returns a service proxy that will connect to services matching the specified info object filter. If multiple is False (the default), a single service proxy will be returned. If multiple is True, a multiple service proxy will be returned. See proxy.SingleServiceProxy and proxy.MultipleServiceProxy for the differences be...
def WY1v(YKHO, slLX, CEZA=None, Vp_P=None, ounV=False): with YKHO.lock: if ounV: return kMyc.MultipleServiceProxy(YKHO, slLX, CEZA, Vp_P) else: return kMyc.SingleServiceProxy(YKHO, slLX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gD3U(qIxc, xAU6=None):\n AdfU = []\n xAU6 = xAU6 or {}\n _IVb = int(xAU6.get('throttling') or wdKa)\n for d7pR in qIxc:\n y0cW, bD7m = d7pR.split('=', 1)\n if bD7m.find('@') != -1:\n CBIr, bD7m = bD7m.split('@', 1)\n CBIr, KaGP = CBIr.split(':', 1)\n p...
[ "0.50322664", "0.4964838", "0.47784045", "0.47554994", "0.46758795", "0.4599774", "0.45329756", "0.45319822", "0.45260933", "0.44986343", "0.44395888", "0.4430203", "0.4430199", "0.44252026", "0.44158727", "0.4415697", "0.44083136", "0.43991932", "0.437468", "0.43745095", "0....
0.8331412
0
Return a randomly generated list of goals with length num_goals. All elements of the list must be the same type of goal, but each goal must have a different randomly generated colour from COLOUR_LIST. No two goals can have the same colour.
def eEMf(MXgP: int) -> x1iM[PrYy]: WKvO = tuKI.randint(1, 2) Aofo = [] kn2i = SLQS.copy() tuKI.shuffle(kn2i) if WKvO == 1: for bGrB in range(MXgP): OfK8 = kn2i.pop() xi3E = fEZo(OfK8) Aofo.append(xi3E) else: for bGrB in range(MXgP): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eEMf(MXgP: int) -> x1iM[PrYy]:\n yv6U = []\n kn2i = SLQS[:]\n tuKI.shuffle(kn2i)\n Vvbz = tuKI.randint(0, 1)\n if Vvbz == 0:\n for YRbF in range(MXgP):\n yv6U.append(fEZo(kn2i[YRbF]))\n else:\n for YRbF in range(MXgP):\n yv6U.append(UPm5(kn2i[YRbF]))\n r...
[ "0.8567259", "0.8291512", "0.6676819", "0.6359204", "0.61197335", "0.60097784", "0.5951918", "0.5926603", "0.58978915", "0.5866371", "0.569938", "0.5693315", "0.56882393", "0.5679063", "0.56571144", "0.5648843", "0.5645726", "0.56340325", "0.56262904", "0.5625969", "0.5624524...
0.8392299
1
Return a twodimensional list representing as rows and columns of unit cells. Return a list of lists L, where, for 0 <= i, j < 2^{max_depth self.level} L[i] represents column i and L[i][j] represents the unit cell at column i and row j. Each unit cell is represented by a tuple of 3 ints, which is the colour of the block...
def MKPt(XkN1: Block) -> x1iM[x1iM[AzJI[int, int, int]]]: DJ6o = 2 ** (XkN1.max_depth - XkN1.level) Aofo = [] if len(XkN1.children) == 0: for YRbF in range(DJ6o): rdlD = [] for r845 in range(DJ6o): rdlD.append(XkN1.colour) Aofo.append(rdlD) els...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pjqK(YKHO) -> jd6F[x1iM[riCw], None, None]:\n for ABDL in range(YKHO.levels):\n yield [Z9rn for Z9rn in YKHO._cells[ABDL * YKHO.size_2D:(ABDL + 1) * YKHO.size_2D]]", "def qzRP(YKHO):\n Aofo = []\n for YRbF in pULY:\n for r845 in pULY:\n Aofo.append((YRbF, r845))\n Aofo.ap...
[ "0.6997817", "0.644323", "0.64337957", "0.62645483", "0.6243319", "0.62230116", "0.6222519", "0.6167476", "0.61621964", "0.6127824", "0.6126065", "0.6103284", "0.60040015", "0.5998185", "0.5899793", "0.5881194", "0.5874592", "0.58330876", "0.58214754", "0.5820631", "0.5784079...
0.60694265
12
Return the size of the largest connected blob that (a) is of this Goal's target colour, (b) includes the cell at , and (c) involves only cells that have never been visited. If is out of bounds for , return 0. is the flattened board on which to search for the blob.
def NlGM(YKHO, oeNL: Tuple[int, int], iBIi: List[List[Tuple[int, int, int]]], azXi: List[List[int]]) -> int: WKvO = oeNL[0] LVAh = oeNL[1] NZyS = len(iBIi) if WKvO >= NZyS or LVAh >= NZyS or WKvO < 0 or (LVAh < 0) or (azXi[WKvO][LVAh] != -1): return 0 elif iBIi[WKvO][LVAh] != YKHO.colour: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1kx(YKHO, iBIi: Block) -> int:\n JPR0 = MKPt(iBIi)\n exwG = len(JPR0)\n azXi = []\n for bGrB in range(exwG):\n rdlD = []\n for IaaG in range(exwG):\n rdlD.append(-1)\n azXi.append(rdlD)\n g56l = []\n for WKvO in range(exwG):\n for LVAh in range(exwG):\n...
[ "0.65256494", "0.64997333", "0.6448306", "0.64055866", "0.63291746", "0.6307743", "0.6296428", "0.6163497", "0.6106575", "0.6071187", "0.6071187", "0.6061117", "0.6032421", "0.6024584", "0.59856325", "0.5977305", "0.59713674", "0.5928963", "0.5924451", "0.5919726", "0.5912675...
0.65932995
0
Get the description of the environment.
def JBZA(YKHO): if YKHO._description is None: return YKHO._name else: return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xTRO():\n iA29 = 'Python version:\\n' + HwRy.version + '\\n'\n try:\n VXIL, bGrB, bGrB = sZzz('pip freeze')\n Bf__ = 'Installed Python packages:\\n'\n Bf__ += VXIL.decode(errors='replace')\n except OSError:\n Bf__ = 'Could not list python packages with pip freeze'\n try:...
[ "0.78848714", "0.73889357", "0.71025527", "0.70748544", "0.7011764", "0.699251", "0.695434", "0.6947688", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0.69464576", "0...
0.0
-1
Get the conda packages to install in the environment as an iterable.
def NC2D(YKHO): return YKHO._conda_packages
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HD6p():\n return [WKvO['name'] for WKvO, bGrB in YVwE()]", "def Hagv():\n return list(cEzT.keys())", "def U8wY():\n cEzT = []\n ZWCE = set()\n czcq = Hy7s.path.normpath(Hy7s.path.join(Hy7s.path.dirname(HwRy.executable), '../conda-meta'))\n lvR3 = '(.*)-([^-]+)-([^-]+)\\\\.json'\n for F...
[ "0.73827046", "0.71696216", "0.7105459", "0.7042499", "0.6893401", "0.6767178", "0.67565274", "0.67217875", "0.66961455", "0.66961455", "0.66822314", "0.6676589", "0.6587701", "0.6575452", "0.65500265", "0.65243816", "0.64792013", "0.64000905", "0.6364472", "0.6350148", "0.63...
0.8111766
0
Get the pip packages to install in the environment as an iterable.
def rISI(YKHO): return YKHO._pip_packages
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zWP6(o_jL=None):\n HCmI = Ds8w(o_jL) + ' -m pip freeze'\n W2yL = Yn3K.run(HCmI, shell=True, stdout=Yn3K.PIPE).stdout.decode('utf-8')\n fauS = set(list(str(W2yL).split('\\n')))\n fauS.discard('')\n return fauS", "def HD6p():\n return [WKvO['name'] for WKvO, bGrB in YVwE()]", "def CQOE(YKHO...
[ "0.77690333", "0.7740178", "0.7557954", "0.7557954", "0.7546495", "0.74852324", "0.7463879", "0.7450846", "0.7427745", "0.72919136", "0.72798634", "0.70932186", "0.7072508", "0.7036233", "0.70079845", "0.69799906", "0.6918361", "0.68316424", "0.6775057", "0.67602056", "0.6760...
0.7874395
0
Test simple FFT recon.
def xeHA(YKHO): tG1N = YKHO.data['fft/kspace'] yv8o = YKHO.data['fft/sens'] lNai = tG1N.shape[-2:] LNo8 = oXAP.reconstruct_adj(tG1N[0, ...], lNai) aEqx = pAQZ.ifftn(tG1N[0, ...], norm='ortho', shift=True) YKHO.assertAllClose(aEqx, LNo8) LNo8 = oXAP.reconstruct_adj(tG1N, lNai, sensitivities=y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D0A8(YKHO):\n with CbyH.fluid.dygraph.guard(YKHO.place):\n oyIN.testing.assert_allclose(Zxt2.fft.fft(YKHO.x, YKHO.n, YKHO.axis, YKHO.norm), CbyH.fft.fft(CbyH.to_tensor(YKHO.x), YKHO.n, YKHO.axis, YKHO.norm), rtol=xOr4.get(str(YKHO.x.dtype)), atol=mMSN.get(str(YKHO.x.dtype)))", "def Uldl():\n S7D...
[ "0.71754247", "0.7058836", "0.7049585", "0.69512933", "0.6938245", "0.6927271", "0.68404716", "0.68317515", "0.6823147", "0.6803123", "0.66582143", "0.66281664", "0.65570843", "0.6519427", "0.6512002", "0.64687806", "0.6465227", "0.6450472", "0.64415276", "0.6415286", "0.6405...
0.58867913
41
Tests that the GET request return the right response.
def qS8d(YKHO): Ylbp = YKHO.client.get('/account_lead/') YKHO.assertEqual(HjBM.loads(Ylbp.content)[0]['fields']['first_name'], YKHO.acc.first_name) Ylbp = YKHO.client.get('/account_lead' + YKHO.acc.resource_uri) YKHO.assertEqual(HjBM.loads(Ylbp.content)[0]['fields']['first_name'], YKHO.acc.first_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.resp.status_code)", "def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.resp.status_code)", "def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.resp.status_code)", "def ykgQ(YKHO):\n YKHO.assertTrue(200, YKHO.resp.status_code)", "def ykgQ(YKHO):\n YKHO.assert...
[ "0.8426343", "0.8426343", "0.8426343", "0.84229636", "0.83706003", "0.83706003", "0.83706003", "0.83706003", "0.83706003", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8253489", "0.8060707...
0.0
-1
Tests whether a POST request returns the right response and the DB is updated properly.
def ry7F(YKHO): nPrm = {'first_name': 'Johnny', 'last_name': 'Depp', 'birth_date': '1985-01-06', 'gender': 'm', 'email': 'asdf@gmail.com'} Ylbp = YKHO.client.post('/account_lead', nPrm) YKHO.assertEqual(HjBM.loads(Ylbp.content)['message'], 'OK') YKHO.assertEqual(tHSi.objects.get(first_name='Johnny').fir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AWhd(YKHO):\n YKHO.assertEqual(YKHO.resp.status_code, 200)", "def AWhd(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)", "def AWhd(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)", "def AWhd(YKHO):\n geh0 = YKHO.client.post('/api/checks/', YKHO.test_data)\n YKHO.assertE...
[ "0.7058698", "0.70282465", "0.70282465", "0.70251244", "0.6909539", "0.6759174", "0.67278016", "0.66918856", "0.66913545", "0.668582", "0.6615571", "0.65757626", "0.65668446", "0.65556675", "0.65330464", "0.65330464", "0.65330464", "0.65330464", "0.65330464", "0.65330464", "0...
0.0
-1
Test whether a POST request with bad parameter gives the right response and the DB is not updated.
def CmNf(YKHO): nPrm = {'first_name': '', 'last_name': 'Depp', 'birth_date': '1985-01-06', 'gender': 'm', 'email': 'asdf@gmail.com'} Ylbp = YKHO.client.post('/account_lead', nPrm) YKHO.assertEqual(HjBM.loads(Ylbp.content)['err_code'], JlM6['ERR_INVALID_PARAM']) YKHO.assertRaises(tHSi.DoesNotExist, tHSi....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCEM(H6Ho, P4t4, NCls, IceB):\n MOPg = {'Content-Type': 'multipart/form-data'}\n xGqu = jth9.deepcopy(imkF)\n xGqu['file'] = 'dummy-file.txt'\n QePW = nMVO(xGqu, 'De-Registraiton', 'New Request')\n nPrm = {'reason': 'updating the request', 'dereg_id': QePW.id, 'user_id': e3eL}\n im04 = H6Ho.p...
[ "0.71140355", "0.7015645", "0.69414204", "0.69347185", "0.6927784", "0.69025207", "0.6885585", "0.68495846", "0.6839211", "0.6839211", "0.6808105", "0.6780598", "0.67584264", "0.6699496", "0.66968715", "0.66879994", "0.66680014", "0.6638135", "0.66297823", "0.6619895", "0.659...
0.6458613
41
Tests that the GET request return the right response.
def qS8d(YKHO): Ylbp = YKHO.client.get('/mailing_list/') YKHO.assertEqual(HjBM.loads(Ylbp.content)[0]['fields']['name'], YKHO.ml.name) Ylbp = YKHO.client.get('/mailing_list' + YKHO.ml.resource_uri) YKHO.assertEqual(HjBM.loads(Ylbp.content)[0]['fields']['name'], YKHO.ml.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.resp.status_code)", "def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.resp.status_code)", "def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.resp.status_code)", "def ykgQ(YKHO):\n YKHO.assertTrue(200, YKHO.resp.status_code)", "def ykgQ(YKHO):\n YKHO.assert...
[ "0.8426343", "0.8426343", "0.8426343", "0.84229636", "0.83706003", "0.83706003", "0.83706003", "0.83706003", "0.83706003", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8300217", "0.8253489", "0.8060707...
0.0
-1
Return the mean of the supplied values.
def cJQX(*qIxc: Any) -> int: return int(sum(qIxc) / len(qIxc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DH4Z(hkxX):\n return oyIN.mean(hkxX)", "def JBMS(hkxX):\n if not hkxX:\n raise Bx6I.InvalidArgumentsException(message='the list should be non-empty')\n return epAf.fsum(hkxX) / len(hkxX)", "def JBMS(YKHO, hkxX):\n jvSB = YKHO.value_check(hkxX)\n Aofo = YKHO.add(jvSB) / len(jvSB)\n ...
[ "0.8720376", "0.85958725", "0.8586577", "0.85651577", "0.85651577", "0.8544566", "0.8495092", "0.84618765", "0.83549786", "0.83354926", "0.8270636", "0.8234209", "0.8135679", "0.80236334", "0.79829067", "0.7953242", "0.7907384", "0.7859892", "0.7859892", "0.7859892", "0.78598...
0.0
-1
Return True if all states are equal.
def sEwS(wspz: list[State]) -> bool: return M0dZ(GELp(wspz))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzcV(YKHO, lUtN, BmXa):\n return sorted([exwG for bGrB, exwG in lUtN]) == sorted([exwG for bGrB, exwG in BmXa])", "def IzcV(YKHO, QTBn):\n return YKHO.state == QTBn.state", "def IzcV(YKHO, lUtN, BmXa):\n return False", "def IzcV(YKHO, lUtN, BmXa):\n return lUtN == BmXa", "def LcXL(YKHO, lUt...
[ "0.81476945", "0.7869601", "0.78226453", "0.77962506", "0.7691027", "0.7460124", "0.726655", "0.7251057", "0.717242", "0.7122529", "0.7093751", "0.70579046", "0.70333415", "0.69660723", "0.6943028", "0.6882647", "0.6877884", "0.6849869", "0.68447256", "0.6783964", "0.67653", ...
0.85442865
0
Sets up a django test environment, makes migration files (deletes existing ones first), creates test database and applies migrations. At the end database is destroyed, migration files are deleted. It is not easy to run two different django apps in one process, even if we do it one after the other. Most modules need to ...
def JwZN(QePW): global modules_not_to_delete djh5 = QePW.module.DJANGO_SETTINGS_MODULE Hy7s.environ['DJANGO_SETTINGS_MODULE'] = djh5 O0al = EL0N(QePW.module.DJANGO_PROJECT) bRMw = HwRy.path[:] HwRy.path.insert(0, O0al) if not butv: butv = HwRy.modules.keys() else: for yR_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lEk6():\n print('Running test case 2')\n p9bx = FfT0()\n A1VB = TKl6(p9bx, 'TEST_2')\n A1VB.before_setup()\n A1VB.setup()\n ZKUH = A1VB.get_new_project_location()\n Hy7s.chdir(ZKUH)\n Aofo = A1VB.call('python manage.py makemigrations')\n assert 'No changes detected' not in Aofo, 'The...
[ "0.8016982", "0.74212396", "0.7362288", "0.7190957", "0.71844", "0.71844", "0.71844", "0.7177447", "0.7177447", "0.7135687", "0.7088751", "0.7067059", "0.7047295", "0.70451075", "0.70388806", "0.70385075", "0.70385075", "0.703517", "0.70345885", "0.6958648", "0.6957755", "0...
0.77812696
1
Computes the loss value for an input and label pair.
def nrOS(YKHO, *qIxc): assert len(qIxc) >= 2 WKvO = qIxc[:-1] a1PO = qIxc[-1] YKHO.y = None YKHO.loss = [None] * YKHO.target_num YKHO.y = YKHO.predictor(*WKvO) for YRbF in jKi7.moves.xrange(YKHO.target_num): NBZB = a1PO[:, YRbF].reshape(-1, 1) YKHO.loss[YRbF] = YKHO.lossfun(Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FZeT(nvEb, UXqs):\n return (nvEb - UXqs).abs().mean()", "def tZ94(nvEb, UXqs):\n UXqs = iQnE(UXqs.long()).cuda()\n OPAs = wO8g().cuda()\n return OPAs(nvEb, UXqs)", "def N2xz(YKHO, Crrw, sLS8):\n CqbS = ZylS.reduce_mean(ZylS.nn.softmax_cross_entropy_with_logits(labels=Crrw, logits=sLS8))\n ...
[ "0.74630684", "0.73230743", "0.7278039", "0.71777594", "0.7107304", "0.7097277", "0.7064621", "0.70512253", "0.69869447", "0.69656146", "0.6943036", "0.6942424", "0.6914786", "0.69075996", "0.6885714", "0.68406385", "0.68304926", "0.682673", "0.6817173", "0.67971396", "0.6779...
0.0
-1
was_published_recently() should return False for questions whose pub_date is in the future.
def Iadf(YKHO): kbO9 = Mjcm(name='dba') YKHO.assertEqual(kbO9.displayName, 'dba')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_...
[ "0.8691395", "0.8691395", "0.8691395", "0.8691395", "0.8653102", "0.8485742", "0.8474509", "0.8473892", "0.84701025", "0.8469605", "0.84629834", "0.84592927", "0.8459231", "0.8455137", "0.8454517", "0.8452162", "0.8452162", "0.8452162", "0.844188", "0.8441761", "0.8441761", ...
0.0
-1
Create and return a new user.
def lYUQ(NtEF, IznC, dW_5, D3lj, jTXt, qwnb, vsuQ): P6bq = mv1M(username=NtEF, fname=IznC, lname=dW_5, email=D3lj, image_url=qwnb, about=vsuQ) P6bq.set_password(jTXt) NCls.session.add(P6bq) NCls.session.commit() return P6bq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(D3lj, jTXt):\n Q5YQ = mv1M(D3lj, jTXt)\n return Q5YQ", "def lYUQ(YKHO):\n return egNl().objects.create_user(YKHO.user_email, YKHO.user_password)", "def lYUQ():\n nPrm = QePW.get_json()\n return CfQI(nPrm)", "def Ss1U():\n CBIr = mv1M.objects.get_or_create(username='john', first_nam...
[ "0.8400247", "0.8339993", "0.8324968", "0.82426304", "0.82285994", "0.81801134", "0.8161598", "0.81462926", "0.8144961", "0.81275487", "0.81274325", "0.81274325", "0.81274325", "0.81274325", "0.81274325", "0.81241375", "0.811842", "0.8108549", "0.8094399", "0.80879855", "0.80...
0.0
-1
Return a user by email.
def CYTf(D3lj): return mv1M.query.filter_by(email=D3lj).first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()", "def lN4b():\n return mv1M.query.filter(mv1M.email == D3lj).first()", "def CYTf(D3lj, QePW=None):\n return lCqJ(email=D3lj, request=QePW)", "def CYTf(D3lj):\n xDcj = 'SELECT * FROM users WHERE email=%s...
[ "0.8996743", "0.8794353", "0.8743939", "0.87358826", "0.8731642", "0.87310416", "0.87309337", "0.87309337", "0.8699964", "0.86345524", "0.863237", "0.8616496", "0.858586", "0.85759395", "0.85614216", "0.85614216", "0.85614216", "0.85614216", "0.85614216", "0.85614216", "0.855...
0.857826
13
Extracts each digit from a string in sequence, defaults to 0
def BLG7(l5Ny): try: return int(''.join((WKvO for WKvO in l5Ny if WKvO.isdigit()))) except ValueError: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HE8A(KCHu):\n mSrU = []\n IPyx = ''\n for YRbF in KCHu:\n if YRbF.isdigit():\n IPyx += YRbF\n elif IPyx != '':\n mSrU.append(int(IPyx))\n IPyx = ''\n if IPyx != '':\n mSrU.append(int(IPyx))\n return mSrU", "def T6dw(KCHu):\n mSrU = []\n ...
[ "0.7446352", "0.73798764", "0.73678225", "0.73325664", "0.730047", "0.71101195", "0.70401245", "0.6998925", "0.6974288", "0.6938044", "0.68965447", "0.6868345", "0.6807667", "0.6768216", "0.6749469", "0.6654445", "0.6642551", "0.6642551", "0.6642551", "0.6642551", "0.6642551"...
0.0
-1
Return package version as listed in `__version__` in `init.py`.
def kaPv(B5hb): Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read() return ZbWC.search('^__version__ = [\'"]([^\'"]+)[\'"]', Eosz, ZbWC.MULTILINE).group(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(B5hb):\n Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()\n return ZbWC.search('__version__ = [\\'\"]([^\\'\"]+)[\\'\"]', Eosz).group(1)", "def kaPv(B5hb):\n Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()\n return ZbWC.search('__version__ = [\\'\"]([^\\'\"]+)[\\'\"]', Eosz).g...
[ "0.8436293", "0.8371279", "0.8371279", "0.8371279", "0.8371279", "0.8371279", "0.83666337", "0.8336742", "0.8336742", "0.83303106", "0.8277694", "0.8274187", "0.8240944", "0.8209245", "0.81766874", "0.8170227", "0.8100394", "0.80815375", "0.8043903", "0.8017112", "0.7993332",...
0.83891416
1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(YKHO, K0do, qtWj): YKHO.lr = YKHO.lr * 0.1 ** (qtWj // 30) for Lwm5 in K0do.param_groups: Lwm5['lr'] = YKHO.lr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.76375717
45
Creates convolution operations layer used after Darknet.
def wIlB(g4y1, KUnM, Y9ns, wH3T): g4y1 = yN4c(g4y1, filters=KUnM, kernel_size=1, data_format=wH3T) g4y1 = idFg(g4y1, training=Y9ns, data_format=wH3T) g4y1 = ZylS.nn.leaky_relu(g4y1, alpha=B_AV) g4y1 = yN4c(g4y1, filters=2 * KUnM, kernel_size=3, data_format=wH3T) g4y1 = idFg(g4y1, training=Y9ns, data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yIp6(vHnr, KUnM, Ot1W=[3, 3], YDYE=ZylS.nn.relu):\n gEmA = ZylS.layers.conv2d(inputs=vHnr, filters=KUnM, kernel_size=Ot1W, activation=YDYE)\n V7tI(gEmA, 'convolution')\n return gEmA", "def Ot_l(WKvO: np.array, KUnM: int, zNig: int, FEri: int=1, idFg: bool=True) -> ZylS.Tensor:\n if FEri == 1:\n ...
[ "0.7175766", "0.711812", "0.70643777", "0.702999", "0.7029249", "0.6994606", "0.69452804", "0.69337773", "0.6928184", "0.69183826", "0.69156826", "0.6915613", "0.6915531", "0.6915264", "0.68738717", "0.6839201", "0.68369937", "0.68326205", "0.68088835", "0.6797654", "0.677186...
0.0
-1