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
Modify an instance with the given id.
def zgf2(YKHO, GeKE, KChs, I1mm, id): CD6g = YKHO.__loadFromFile() CdMZ = YixE(GeKE, KChs, I1mm, id) if CdMZ not in CD6g: raise vJ9m("\n Id doesn't exit. \n".upper()) CD6g.remove(CdMZ) CD6g.append(CdMZ) YKHO.__storeToFile(CD6g)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpNj(YKHO, id):\n YKHO.not_supported()", "def NpNj(YKHO, id):\n return Q0zJ(QePW.json, id)", "def NpNj(YKHO, id):\n nPrm = QePW.json\n return QdZT(id=id, data=nPrm)", "def NpNj(YKHO, id):\n Drhh = hJd7()\n print(nNXP.payload)\n XP5J = nj3W.from_dict(nNXP.payload)\n if XP5J is not ...
[ "0.6979777", "0.6617178", "0.65552044", "0.65305954", "0.650712", "0.64772105", "0.64772105", "0.64772105", "0.64772105", "0.64772105", "0.6452408", "0.6452408", "0.6452408", "0.6452408", "0.6452408", "0.6452408", "0.6452408", "0.6452408", "0.6452408", "0.6452408", "0.6452408...
0.0
-1
Calculate learning rate with linear warmup and rsqrt decay.
def NkTt(b0Ix, wjbX, Jy20): with ZylS.name_scope('learning_rate'): wbn8 = ZylS.to_float(Jy20) YPaw = ZylS.to_float(ZylS.train.get_or_create_global_step()) b0Ix *= wjbX ** (-0.5) b0Ix *= ZylS.minimum(1.0, YPaw / wbn8) b0Ix *= ZylS.rsqrt(ZylS.maximum(YPaw, wbn8)) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cBsx(YKHO, yKTC, qtWj):\n \"\"\"\n Dan's Methos\n \"\"\"\n yj8H = yKTC * 0.001\n Z9rn = oyIN.power(yj8H / yKTC, 1.0 / YKHO.__maxEpoch)\n return yKTC * oyIN.power(Z9rn, qtWj)", "def jsQ2():\n _xMn = vPBo.start_learning_rate\n YPaw = ZylS.cast(ZylS.compat.v1.train.get_or_create_...
[ "0.78579855", "0.78059024", "0.7659233", "0.7541859", "0.7498769", "0.7498769", "0.7494381", "0.7482913", "0.74484617", "0.7300512", "0.7273702", "0.7242091", "0.7216838", "0.72043455", "0.717586", "0.7158193", "0.71453744", "0.71265227", "0.7124896", "0.71209353", "0.7120935...
0.7359549
9
Returns the minimax action using self.depth and self.evaluationFunction
def bk5W(YKHO, Ov5A): """*** YOUR CODE HERE ***""" ' Max value ' def bQ6z(Ov5A, rb7a, Cwt5, UqYS): XeOP = Ov5A.getLegalActions(0) if Ov5A.isWin() or Ov5A.isLose() or rb7a == YKHO.depth: return (YKHO.evaluationFunction(Ov5A), None) Ty9i = -float('inf') for YRbF in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\...
[ "0.7482665", "0.7383559", "0.71806973", "0.7110041", "0.70884514", "0.70694935", "0.70683014", "0.7048308", "0.70055133", "0.69651455", "0.69642085", "0.69604385", "0.6945924", "0.68998593", "0.6895832", "0.688605", "0.6826282", "0.6767276", "0.6758028", "0.6751636", "0.67054...
0.0
-1
Returns the argmax decoding given the probability matrix. Removes repeated elements in the sequence, as well as blanks.
def x8I_(YKHO, BFeB, maxY=None, ixGp=False): if len(BFeB.shape) == 2: return YKHO.decode(BFeB.unsqueeze(0), maxY, ixGp) bGrB, FTLo = ht2j.max(BFeB, 2) _CS_, gQVb = YKHO.convert_to_strings(FTLo.view(FTLo.size(0), FTLo.size(1)), maxY, remove_repetitions=True, return_offsets=True) _CS_ = [KCHu[0] f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AaIy(E3D9):\n return Zxt2.array([eHNT.val.argmax() for eHNT in E3D9])", "def NpmK(SppC, YLre):\n try:\n return ''.join([YLre[oyIN.argmax(rdlD)] for nHgN in SppC for rdlD in nHgN]).strip(_5c_)\n except:\n return 'ERROR'", "def q1NN(hkxX):\n hkxX = oyIN.array(hkxX)\n RsfQ = oyIN....
[ "0.70179653", "0.658357", "0.62192166", "0.62161404", "0.6200235", "0.6182412", "0.604933", "0.6045412", "0.60318315", "0.60217685", "0.6000075", "0.5971258", "0.5923959", "0.5901419", "0.5893658", "0.5824791", "0.576949", "0.5739862", "0.5738228", "0.570926", "0.56982225", ...
0.0
-1
Takes some floating point number and rounds to closest base
def pfTA(WKvO, P8oC=10): return P8oC * round(WKvO / P8oC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnPT(WKvO, P8oC):\n return P8oC * round(WKvO / P8oC)", "def mATY(WKvO, P8oC):\n return P8oC * epAf.floor(float(WKvO) / P8oC)", "def dakx(WKvO, P8oC=10):\n jzdc = (abs(WKvO) - 1) // P8oC * P8oC\n Fg_i = jzdc + P8oC\n return Fg_i * oyIN.sign(WKvO)", "def IuSy(WKvO, P8oC):\n return P8oC * ...
[ "0.7777093", "0.76591784", "0.74518603", "0.7326182", "0.7315885", "0.7277933", "0.69491935", "0.6758171", "0.67547965", "0.673595", "0.6641624", "0.66161114", "0.6604063", "0.6602199", "0.65796006", "0.65039194", "0.648536", "0.64684826", "0.6444194", "0.6441123", "0.6434845...
0.767143
1
make pdf qr code sheet, 3 columns by 8 rows
def G_AD(jQ3Z): HH9L = jQ3Z.survey_name.tolist() jQ3Z = rLdf.DataFrame({'stuff': HH9L}) jQ3Z['num'] = jQ3Z.index + 1 jQ3Z['c'] = jQ3Z.num % 3 jQ3Z.c = jQ3Z.c.replace(0, 3) jQ3Z['page'] = (jQ3Z.num + 23) // 24 jQ3Z['r'] = ((jQ3Z.num - 1) // 3 + 1) % 8 jQ3Z.r = jQ3Z.r.replace(0, 8) JRY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTFf(YKHO, f4IJ):\n for jOpO in YKHO.codes:\n WKvO, LVAh, yzQ0, MKlR = jOpO['rect']\n XC5k.rectangle(f4IJ, (WKvO, LVAh), (WKvO + yzQ0, LVAh + MKlR), (0, 0, 255), 2)\n XC5k.putText(f4IJ, jOpO['text'], (WKvO, LVAh - 10), XC5k.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), 2)\n return f4IJ", ...
[ "0.5925497", "0.5876405", "0.57754964", "0.5747474", "0.57298267", "0.5695784", "0.55924565", "0.5570672", "0.55538553", "0.55093914", "0.54915774", "0.54524034", "0.53107464", "0.5305039", "0.5149739", "0.5145077", "0.5140877", "0.5129712", "0.5122738", "0.51152617", "0.5099...
0.78536195
0
Sets the policy_name of this PatchPolicySummary.
def CX3n(YKHO, CX3n): YKHO._policy_name = CX3n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0TF(YKHO, m5SZ):\n YKHO.options['policyname'] = m5SZ", "def I0TF(YKHO, m5SZ):\n YKHO.options['policyname'] = m5SZ", "def b2sU(YKHO, b2sU):\n BbPm = ['patch', 'custom', 'required_software']\n if b2sU not in BbPm:\n raise ValueError('Invalid value for `policy_type_name` ({0}), must be one...
[ "0.8010508", "0.80012757", "0.6755278", "0.64122355", "0.63197684", "0.63197684", "0.63197684", "0.63197684", "0.63197684", "0.63197684", "0.63197684", "0.6210187", "0.6210187", "0.613095", "0.58552504", "0.5836135", "0.5784503", "0.5761935", "0.5730833", "0.5709306", "0.5709...
0.80451775
1
Sets the is_policy_enabled of this PatchPolicySummary.
def K7BE(YKHO, K7BE): YKHO._is_policy_enabled = K7BE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etR_(YKHO, etR_):\n YKHO._enabled = etR_", "def zAEm(YKHO, etR_=True):\n YKHO._enabled = etR_", "def etR_(YKHO, etR_):\n YKHO._enabled = etR_", "def etR_(YKHO, etR_):\n YKHO._enabled = etR_", "def ndxV(YKHO, etR_):\n if not isinstance(etR_, bool):\n raise AttributeError('The enabl...
[ "0.60635245", "0.59737253", "0.593007", "0.593007", "0.5916131", "0.5863338", "0.57438225", "0.56845534", "0.5684071", "0.5664282", "0.5664282", "0.5641294", "0.56162477", "0.550019", "0.550019", "0.54787034", "0.5475994", "0.5456365", "0.54445326", "0.54328513", "0.5419459",...
0.78727084
0
Sets the software_title of this PatchPolicySummary.
def BKdj(YKHO, BKdj): YKHO._software_title = BKdj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h24y(YKHO, wEf2):\n YKHO._title = wEf2", "def iO8a(YKHO):\n QtqJ = ''\n KZZz = [eucu for eucu in YKHO.getProprietaries() if nNXP.content.get_state(eucu) == 'enabled']\n if KZZz:\n QtqJ = ', '.join([QWcs.Title() for QWcs in KZZz])\n b6_9 = YKHO.getFormal_notice_old_reference()\n leAC ...
[ "0.60734624", "0.60639435", "0.5901598", "0.58792967", "0.58631223", "0.5862936", "0.5852901", "0.58465004", "0.58138376", "0.5766815", "0.57366604", "0.5723174", "0.57122403", "0.57122403", "0.5696227", "0.56577975", "0.56518525", "0.56461656", "0.55976784", "0.5593115", "0....
0.804622
0
Sets the software_title_configuration_id of this PatchPolicySummary.
def ex5p(YKHO, ex5p): YKHO._software_title_configuration_id = ex5p
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BKdj(YKHO, BKdj):\n YKHO._software_title = BKdj", "def xCyn(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['title'] = BWXx", "def iO8a(YKHO):\n QtqJ = ''\n KZZz = [eucu for eucu in YKHO.getProprietaries() if nNXP.content.get_state(eucu) == 'enabled']\n if KZZz:\n QtqJ = ', '.join([QW...
[ "0.64721966", "0.5395726", "0.5196417", "0.51226413", "0.4947873", "0.49061438", "0.49008557", "0.48724303", "0.48666206", "0.48647407", "0.4862379", "0.4854369", "0.48127747", "0.48008034", "0.47868985", "0.47771597", "0.47617954", "0.47458664", "0.47293127", "0.47251198", "...
0.8198959
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, PwEW): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, PwEW): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
inputs of x1 = 2, y1 = 1, x2 = 2, y2 = 1 yields Distance = 4.5
def GbPl(YKHO): YKHO.spawn('java Distance').stdin('-2').stdin('-1').stdin('2').stdin('1').stdout('Distance = 4.5\n', 'Distance = 4.5\n').exit(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(o4D3, si3g, ajwV, skBL):\n return ((ajwV - o4D3) ** 2 + (skBL - si3g) ** 2) ** 0.5", "def zG70(o4D3, si3g, ajwV, skBL):\n return epAf.sqrt((o4D3 - ajwV) ** 2 + (si3g * 2.38 - skBL * 2.38) ** 2)", "def D0Sn(YKHO, o4D3, ajwV, si3g, skBL):\n return ((o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2) ** 0....
[ "0.7975866", "0.7937306", "0.78418225", "0.77506363", "0.76456064", "0.7515766", "0.7401424", "0.7393336", "0.73912793", "0.7372974", "0.7326062", "0.7317605", "0.72965455", "0.7293487", "0.7277889", "0.7277504", "0.7271872", "0.7259375", "0.72527903", "0.7251191", "0.7227713...
0.0
-1
Uses action to obtain next state, reward, done.
def YPaw(YKHO, WTSp): vOGg = 0 zdUJ = [] for bGrB in range(YKHO.action_repeat): YKHO.prev_pose = YKHO.sim.pose _ins = YKHO.sim.next_timestep(YKHO.action_scale * WTSp) vOGg += YKHO.get_reward() zdUJ.append(oyIN.concatenate((YKHO.sim.pose, YKHO.sim.v, YKHO.sim.angular_v), axis=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPaw(YKHO, XeOP):\n EpMx, BFeB = zip(*YKHO.get_next_states(YKHO._current_state, XeOP).items())\n rxHc = XvqG(EpMx, p=BFeB)\n vOGg = YKHO.get_reward(YKHO._current_state, XeOP, rxHc)\n J1ea = YKHO.is_terminal(rxHc)\n YKHO._current_state = rxHc\n return (rxHc, vOGg, J1ea, {})", "def YPaw(YKHO,...
[ "0.8106777", "0.8081674", "0.79318964", "0.788988", "0.7873674", "0.7870752", "0.7751757", "0.7744235", "0.76798654", "0.7671487", "0.76401347", "0.76312447", "0.7612135", "0.7603414", "0.75804955", "0.7557466", "0.7556608", "0.75313103", "0.7524345", "0.7512973", "0.74929035...
0.0
-1
Sets the account of this Order.
def ZrNc(YKHO, ZrNc): YKHO._account = ZrNc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AwQC(YKHO, ZrNc: str):\n U5bT = YKHO._call_txtrader_api('set_account', {'account': ZrNc})\n if U5bT:\n YKHO.account = ZrNc\n return U5bT", "def ZrNc(YKHO, ZrNc: str):\n YKHO._account = ZrNc", "def nPha(YKHO, Z31E):\n YKHO.data_struct['_setAccount'] = Z31E", "def bEOH(YKHO, stk5, ZrN...
[ "0.8283534", "0.79240483", "0.7569955", "0.74243265", "0.72648144", "0.71684545", "0.7167168", "0.7107526", "0.7107526", "0.7107526", "0.7107526", "0.7107526", "0.7107526", "0.71072274", "0.6958708", "0.6903033", "0.68738604", "0.6733014", "0.6733014", "0.6733014", "0.6733014...
0.79821765
2
Sets the client_order_id of this Order.
def K3jv(YKHO, K3jv): YKHO._client_order_id = K3jv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zb3C(YKHO, zb3C):\n YKHO._client_id = zb3C", "def zb3C(YKHO, zb3C):\n YKHO._client_id = zb3C", "def zb3C(YKHO, zb3C):\n YKHO._client_id = zb3C", "def zb3C(YKHO, zb3C):\n YKHO._client_id = zb3C", "def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I", "def zJ7I(YKHO, zJ7I):\n YKHO._order_id...
[ "0.72273254", "0.72273254", "0.72273254", "0.72273254", "0.7146626", "0.7146626", "0.7146626", "0.6390582", "0.63806397", "0.63806397", "0.6269393", "0.5859672", "0.57696575", "0.5652904", "0.54947543", "0.5473651", "0.5462106", "0.5459", "0.5452022", "0.5425842", "0.53977925...
0.8995281
0
Sets the executions of this Order.
def PNhm(YKHO, PNhm): YKHO._executions = PNhm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BgK2(YKHO, BgK2):\n YKHO._orders = BgK2", "def BgK2(YKHO, BgK2):\n YKHO._orders = BgK2", "def k245(YKHO, k245):\n YKHO._runs = k245", "async def on_orders_replaced(YKHO, BgK2: List[MetatraderOrder]):\n YKHO._orders = BgK2", "def Jgzp(YKHO, T4Wy):\n for D5gV in YKHO.tasks:\n D5gV.o...
[ "0.6528219", "0.6528219", "0.6497284", "0.5922375", "0.5879755", "0.58360094", "0.58360094", "0.577507", "0.5766933", "0.57128286", "0.5687762", "0.5664175", "0.5664175", "0.55956113", "0.5528094", "0.54725283", "0.5447561", "0.5447561", "0.5447561", "0.5429043", "0.54165614"...
0.8400182
0
Sets the final_status of this Order.
def gSZQ(YKHO, gSZQ): YKHO._final_status = gSZQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VaH9(YKHO, jGRS):\n with YKHO.status_lock:\n if jGRS in OrgV or not YKHO.status in OrgV:\n YKHO.status = jGRS", "def _hgL(YKHO):\n YKHO.status = 'DONE'", "def tZbN(YKHO, jGRS):\n YKHO.__status = jGRS", "def sOSs(YKHO, sOSs):\n YKHO._final_receipt = sOSs", "def tZbN(YKHO, Z...
[ "0.5957665", "0.5944739", "0.5868945", "0.5809267", "0.5762172", "0.5756844", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0.57490873", "0...
0.86170995
0
Sets the instrument of this Order.
def YKiD(YKHO, YKiD): YKHO._instrument = YKiD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYS5(YKHO, YKiD):\n YKHO.instrument = YKiD\n YKHO.instrument.attach(YKHO)", "def MSpD(YKHO, MSpD):\n YKHO._instrumentName = MSpD", "def YKiD(YKHO, YRbF: int) -> None:\n if YRbF > vrPW:\n YKHO._instrument = vrPW\n if YRbF < OXCK:\n YKHO._instrument = OXCK\n else:\n YKH...
[ "0.77466714", "0.6726721", "0.6721906", "0.65290666", "0.6484874", "0.63574517", "0.59575987", "0.55676174", "0.5539324", "0.5533037", "0.54937655", "0.5477979", "0.5426462", "0.53192365", "0.53084505", "0.52701813", "0.5262059", "0.5246512", "0.52003753", "0.5156716", "0.511...
0.7914742
2
Sets the leg_count of this Order.
def W5iJ(YKHO, W5iJ): YKHO._leg_count = W5iJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v3Bi(YKHO, LmAw):\n YKHO.legs = LmAw", "def YEKp(YKHO):\n YKHO.chair_id.number_of_orders = len(YKHO.env['salon.order'].search([('chair_id', '=', YKHO.chair_id.id), ('stage_id', 'in', [2, 3])]))", "def ZF4Q(YKHO, mLGw):\n YKHO.count = mLGw", "def BgnM(YKHO, a70H, MRRk):\n pass", "def _YzM(YK...
[ "0.5900831", "0.570155", "0.55898786", "0.5467503", "0.54631627", "0.53746104", "0.5325903", "0.53021365", "0.5284719", "0.5185248", "0.5167164", "0.5162114", "0.4980203", "0.48279524", "0.48175636", "0.48167625", "0.48121428", "0.48100296", "0.48100296", "0.48100296", "0.481...
0.8199163
0
Sets the order_id of this Order.
def zJ7I(YKHO, zJ7I): YKHO._order_id = zJ7I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3jv(YKHO, K3jv):\n YKHO._client_order_id = K3jv", "def dN50(YKHO, dN50):\n if dN50 is None:\n raise ValueError('Invalid value for `order_item_id`, must not be `None`')\n YKHO._order_item_id = dN50", "def PpPo(YKHO, T4Wy):\n if YKHO.__order != T4Wy:\n YKHO.__order = T4Wy\n ...
[ "0.7365084", "0.7302405", "0.6543854", "0.63200766", "0.6272423", "0.6272423", "0.62082", "0.6143586", "0.60736436", "0.5933947", "0.593149", "0.5732861", "0.5732861", "0.5732861", "0.57311815", "0.57159317", "0.5701051", "0.56888497", "0.56849885", "0.56789553", "0.55634207"...
0.8719017
2
Sets the price_link of this Order.
def zYo6(YKHO, zYo6): YKHO._price_link = zYo6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L: float):\n YKHO._price = hI0L", "def rTNb(YKHO, wEf2):\n YKHO.price = wEf2", "def...
[ "0.7102889", "0.7102889", "0.7102889", "0.7102889", "0.70127594", "0.69878346", "0.6935744", "0.6822496", "0.678849", "0.6514913", "0.64307606", "0.631698", "0.60720426", "0.60660625", "0.5935674", "0.59022474", "0.59022474", "0.59022474", "0.59022474", "0.59022474", "0.59022...
0.8722125
0
Sets the side of this Order.
def HEZd(YKHO, HEZd): YKHO._side = HEZd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Nd(YKHO, HEZd):\n YKHO.pack(side=HEZd)", "def m1Nd(YKHO, HEZd):\n YKHO.pack(side=HEZd)", "def m1Nd(YKHO, HEZd):\n YKHO.pack(side=HEZd)", "def yxbz(YKHO, HEZd):\n raise RuntimeError(\"the 'set_side' method must be overriden\")", "def HEZd(YKHO):\n return YKHO._side.copy()", "def qqkX(...
[ "0.76579183", "0.76579183", "0.76579183", "0.7646631", "0.6569197", "0.64954686", "0.6019405", "0.5838618", "0.5753927", "0.57115936", "0.5690976", "0.5669271", "0.56476754", "0.55119276", "0.55119276", "0.54970145", "0.5479687", "0.54660726", "0.5456265", "0.5435103", "0.533...
0.8099121
0
Sets the status of this Order.
def jGRS(YKHO, jGRS): YKHO._status = jGRS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS", "def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS", "def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS", "def cYSk(YKHO, jGRS):\n with YKHO.lock:\n YKHO.status = jGRS", "def tZbN(YKHO, jGRS):\n YKHO.__status = jGRS", "def gYPd(YKHO, jGRS):\n YKHO.s...
[ "0.8011641", "0.8011641", "0.8011641", "0.7864938", "0.78282785", "0.7806965", "0.7699049", "0.76746535", "0.7672833", "0.7672833", "0.7672833", "0.7672833", "0.7672833", "0.7672833", "0.7672833", "0.7613429", "0.7481602", "0.7481602", "0.74135995", "0.7147335", "0.7116571", ...
0.7675846
23
Sets the transaction_time of this Order.
def Dm6U(YKHO, Dm6U): YKHO._transaction_time = Dm6U
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jUWg(YKHO, jUWg):\n YKHO._set_time = jUWg", "def jUWg(YKHO, ITS7):\n YKHO._time = ITS7", "def ifdI(YKHO, ifdI):\n YKHO._pay_time = ifdI", "def P2WC(YKHO, P2WC):\n YKHO._transaction_amount = P2WC", "def Dmvv(YKHO, Dmvv):\n YKHO._dep_time = Dmvv", "def ITS7(YKHO, ITS7):\n YKHO._time =...
[ "0.6823752", "0.6690837", "0.6636187", "0.63983077", "0.6222438", "0.61521524", "0.61521524", "0.61521524", "0.61521524", "0.61521524", "0.6128218", "0.60506505", "0.603819", "0.6000892", "0.6000892", "0.5984537", "0.59787965", "0.5975649", "0.5972804", "0.5949189", "0.593479...
0.86918926
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, L9Jq): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
returns css file for /css url
def czKq(YKHO, qv1X, _hkX): _hkX.status = aazL.HTTP_200 _hkX.content_type = 'text/css' _hkX.body = YKHO.csscontent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OgxX():\n return NMfI()", "def azW9():\n oykL = GkAb(xAKo).parent.joinpath('resources', 'style.css')\n with open(oykL, 'r') as eKme:\n wYxk = eKme.read()\n return wYxk", "def VRgI():\n return NMfI()", "def tKOI(YKHO):\n pass", "def TeUs():\n _Cnz = Hy7s.path.join(Hy7s.path.d...
[ "0.7309317", "0.7245534", "0.723506", "0.7162877", "0.683548", "0.6575849", "0.65532166", "0.6533837", "0.6499816", "0.6321234", "0.6240827", "0.61483127", "0.61290157", "0.60940546", "0.6092056", "0.5972896", "0.58653206", "0.58631337", "0.58364487", "0.57903", "0.5741797", ...
0.64084566
9
Verify that the requester is an admin user
async def assert_requester_is_admin(Jpbe: Auth, QePW: SynapseRequest) -> None: locH = await Jpbe.get_user_by_req(QePW) await M59O(Jpbe, locH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def assert_user_is_admin(Jpbe: Auth, locH: Requester) -> None:\n _Kb1 = await Jpbe.is_server_admin(locH)\n if not _Kb1:\n raise yHM3(qed_.FORBIDDEN, 'You are not a server admin')", "def QPh5(YKHO, QePW):\n rJDA = QePW.params.get(YKHO.api_field, None)\n if QePW.user is None:\n CBIr...
[ "0.8449922", "0.81485933", "0.7908523", "0.7862263", "0.7862263", "0.7824973", "0.76954037", "0.76795727", "0.7626646", "0.762449", "0.7518792", "0.75167245", "0.74247247", "0.7396018", "0.73594654", "0.7330633", "0.7312187", "0.72882414", "0.7260789", "0.7245386", "0.7245386...
0.8545741
0
Verify that the given user is an admin user
async def assert_user_is_admin(Jpbe: Auth, locH: Requester) -> None: _Kb1 = await Jpbe.is_server_admin(locH) if not _Kb1: raise yHM3(qed_.FORBIDDEN, 'You are not a server admin')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJBC(CBIr):\n return jDAC(CBIr, zJiV)", "def Jo_v(CBIr):\n return CBIr in PDtd", "def _Kb1(YKHO, CBIr):\n return CBIr.name in YKHO.admins", "def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.id == P4t4.config.get('ADMIN')", "def uJBC(YKHO, CBIr):\n if CBIr.id in YKHO.admins:\n ...
[ "0.8205139", "0.80565995", "0.79770845", "0.79254925", "0.79058695", "0.78499144", "0.781526", "0.77958107", "0.77286845", "0.77002835", "0.76058", "0.7573334", "0.756239", "0.75418365", "0.75389034", "0.7532564", "0.7524803", "0.7509817", "0.7497769", "0.74937934", "0.746816...
0.7796255
7
Initializes a path specification.
def FIMM(YKHO, Rci7=None, _AKB=None, **B2fa): if not Rci7: raise ValueError('Missing location value.') super(_DNF, YKHO).__init__(parent=_AKB, **B2fa) YKHO.location = Rci7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, pmON, **YSA3):\n if not pmON:\n raise ValueError('Empty path')\n if isinstance(pmON, list):\n j9Ll = pmON[:]\n YKHO._drive_letter = j9Ll.pop(0)[0] if H1R6.match(j9Ll[0]) else None\n YKHO._components = xgUE(j9Ll)\n YKHO._absolute = True\n else:\n Qpf...
[ "0.6835479", "0.6718708", "0.6658452", "0.6606759", "0.651928", "0.64637786", "0.6448977", "0.64467645", "0.64467645", "0.64467645", "0.64467645", "0.6441038", "0.63962144", "0.63641036", "0.6333571", "0.629494", "0.6154486", "0.612563", "0.6118942", "0.6101644", "0.6087177",...
0.6697097
2
Update the state estimation using the provided GPS measurement.
def LbWB(YKHO, kOjW, xYJD, AXnq, wPef, WzV8, jmZv): YKHO.GPS_MEASUREMENT_NOISE[0].itemset(0, AXnq) YKHO.GPS_MEASUREMENT_NOISE[1].itemset(1, wPef) wzkt = ITS7.time() cFve = wzkt - YKHO._last_observation_s YKHO._last_observation_s = wzkt if WzV8 is None: WzV8 = 0.0 if jmZv is None:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RDs7(YKHO):\n JZ1r.write(b'id1 mav.pose_sensor get_local_data \\n')\n JZ1r.read_until(b'\"x\": ')\n Ueki = JZ1r.read_until(b',')\n Ueki = Ueki[:-1]\n DghZ.x = float(Ueki)\n YKHO.state_x_label.set_text('%0.2f' % DghZ.x)\n JZ1r.read_until(b'\"y\": ')\n Ueki = JZ1r.read_until(b',')\n Ue...
[ "0.67576104", "0.6714809", "0.65793216", "0.6536104", "0.63853705", "0.63432944", "0.62674856", "0.62458175", "0.6236929", "0.62354225", "0.6194749", "0.6161905", "0.6131573", "0.61117345", "0.5985512", "0.597056", "0.5952911", "0.5946343", "0.5946183", "0.5923242", "0.586357...
0.6095251
14
Sets the to_object_type_id of this LabelsBetweenObjectPair.
def aV43(YKHO, aV43): if YKHO.local_vars_configuration.client_side_validation and aV43 is None: raise ValueError('Invalid value for `to_object_type_id`, must not be `None`') YKHO._to_object_type_id = aV43
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RNT0(YKHO, RNT0):\n if YKHO.local_vars_configuration.client_side_validation and RNT0 is None:\n raise ValueError('Invalid value for `to_object_id`, must not be `None`')\n YKHO._to_object_id = RNT0", "def vcaS(YKHO, vcaS):\n YKHO._object_type = vcaS", "def vcaS(YKHO, vcaS):\n YKHO._object...
[ "0.57930833", "0.56202245", "0.56202245", "0.56202245", "0.56202245", "0.56202245", "0.5310198", "0.5129987", "0.5014886", "0.4837078", "0.48125425", "0.4790484", "0.47267163", "0.46558797", "0.46442658", "0.45802435", "0.4567596", "0.44857258", "0.44692963", "0.44448924", "0...
0.7019767
0
Sets the from_object_id of this LabelsBetweenObjectPair.
def Oubg(YKHO, Oubg): if YKHO.local_vars_configuration.client_side_validation and Oubg is None: raise ValueError('Invalid value for `from_object_id`, must not be `None`') YKHO._from_object_id = Oubg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def haVx(YKHO, haVx):\n if haVx is None:\n raise ValueError('Invalid value for `_from`, must not be `None`')\n YKHO.__from = haVx", "def mhv2(YKHO, mhv2):\n YKHO._token_id_from = mhv2", "def mTll(YKHO, mTll):\n if YKHO.local_vars_configuration.client_side_validation and mTll is None:\n ...
[ "0.61979365", "0.5974274", "0.5795233", "0.57569325", "0.57569325", "0.57569325", "0.57569325", "0.56445414", "0.5488168", "0.543962", "0.5355043", "0.5311075", "0.53092664", "0.53092664", "0.5134461", "0.5099668", "0.5006803", "0.49829057", "0.4956328", "0.49527872", "0.4876...
0.6955816
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, v16A): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, v16A): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Get the name of the key this TableSet is grouped by. (If created using
def zAat(YKHO): return YKHO._key_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H5ew(YKHO):\n return VDN9(YKHO.name)", "def H5ew(YKHO):\n return YKHO.name", "def mWFP(YKHO):\n return YKHO.key", "def zAat(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_name')", "def H5ew(YKHO) -> str:\n return '{}:{}.{}.{}'.format(YKHO.source, YKHO.db, YKHO.ed, YKHO.rec)", "def H5ew(YKH...
[ "0.7324773", "0.71510744", "0.71039927", "0.6896403", "0.68424785", "0.68320745", "0.67791617", "0.659292", "0.6570213", "0.6564781", "0.6540517", "0.6524352", "0.64368635", "0.64368635", "0.6430601", "0.64043087", "0.6392812", "0.637707", "0.63737506", "0.6373512", "0.636910...
0.71122944
2
List all episodes, or create a new episode.
def ff0r(QePW): if QePW.method == 'GET': CBIr = QePW.GET.get('user') KULu = OR7K() aEYq = KULu.get_user_episodes(CBIr) return sz8e(aEYq) elif QePW.method == 'POST': nPrm = t3vE().parse(QePW) ZMzz = lLMm(data=nPrm) if ZMzz.is_valid(): G9jH.debug...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xgXB(YKHO, leAC=None, qqDt=None, xgXB=None):\n H5ew = f'{YKHO.key}/allLeaves'\n if leAC is not None:\n return YKHO.fetchItem(H5ew, aqVO, title__iexact=leAC)\n elif qqDt is not None and xgXB is not None:\n return YKHO.fetchItem(H5ew, aqVO, parentIndex=qqDt, index=xgXB)\n raise rDSL('Mi...
[ "0.6597799", "0.6581579", "0.65798277", "0.62934434", "0.6283064", "0.61562103", "0.6033903", "0.59940356", "0.5935952", "0.5919521", "0.59080654", "0.5904479", "0.5892817", "0.5888515", "0.5884439", "0.5869446", "0.5863991", "0.58552086", "0.58040756", "0.5785669", "0.571892...
0.6752665
0
Delete the character at the current cursor position. Leave the cursor in its current position.
def PTpj(YKHO): del YKHO.characters[YKHO.cursor.position]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO):\n if YKHO.pos < YKHO.buffer.line_length(YKHO.line):\n YKHO.buffer.delete_char(YKHO.line, YKHO.pos)\n YKHO.has_changes = True", "def l5T1(YKHO, oeNL):\n Va1R = dg4i(YKHO.text[:oeNL], YKHO.NO_GLYPH_CHARS)\n YKHO.allVertices = YKHO.allVertices[:(oeNL - Va1R) * 4]\n YKHO.all...
[ "0.7785326", "0.73471785", "0.6848375", "0.66849", "0.64721656", "0.6427636", "0.6403706", "0.6342227", "0.6291088", "0.6216535", "0.6088449", "0.6076424", "0.6010284", "0.6008969", "0.5915848", "0.59127957", "0.58669746", "0.5862974", "0.58580875", "0.58353704", "0.5813231",...
0.8178493
0
Move the cursor back 1 character in the Document.
def W30o(YKHO): YKHO.cursor.back()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RuGW(tvqc):\n Fg_i = tvqc.cli.current_buffer\n Fg_i.cursor_up(count=1)\n A0h4 = Fg_i.document.get_end_of_line_position()\n Fg_i.cursor_right(count=A0h4)", "def OjlP(YKHO):\n if YKHO.pos == 0 and YKHO.line > 0:\n YKHO.pos = YKHO.buffer.line_length(YKHO.line - 1)\n YKHO.buffer.join...
[ "0.7527851", "0.6919884", "0.68049157", "0.6780137", "0.6692052", "0.66718274", "0.65647304", "0.6532943", "0.6511843", "0.6503312", "0.6496688", "0.6401373", "0.63842785", "0.6371495", "0.6367071", "0.6366814", "0.6238326", "0.62206435", "0.621714", "0.61951184", "0.61786777...
0.69443375
1
Move the cursor back 1 character in the document.
def W30o(YKHO): YKHO.position -= 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RuGW(tvqc):\n Fg_i = tvqc.cli.current_buffer\n Fg_i.cursor_up(count=1)\n A0h4 = Fg_i.document.get_end_of_line_position()\n Fg_i.cursor_right(count=A0h4)", "def OjlP(YKHO):\n if YKHO.pos == 0 and YKHO.line > 0:\n YKHO.pos = YKHO.buffer.line_length(YKHO.line - 1)\n YKHO.buffer.join...
[ "0.7580037", "0.69440705", "0.69189334", "0.6876776", "0.67182046", "0.6712217", "0.6596274", "0.659366", "0.6535285", "0.6513666", "0.6473904", "0.6452391", "0.64431024", "0.641141", "0.6349514", "0.6326987", "0.62560326", "0.6225307", "0.6213855", "0.6191571", "0.6181482", ...
0.67074823
6
String representation of this character with formatting.
def zAg0(YKHO): JSRs = '*' if YKHO.bold else '' Mrqm = '/' if YKHO.italic else '' apla = '_' if YKHO.underline else '' return JSRs + Mrqm + apla + YKHO.character
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ddrW(YKHO):\n return YKHO.char", "def wHJl(YKHO):\n return '{}<{}, line {} char {}>'.format(YKHO.__class__.__name__, repr(YKHO._data), YKHO._lineno, YKHO._charno)", "def gTzM(YKHO):\n return EyO9(YKHO.to_dict())", "def gTzM(YKHO):\n return EyO9(YKHO.to_dict())", "def gTzM(YKHO):\n return...
[ "0.76008344", "0.7524676", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", "0.7460253", ...
0.7736675
0
Convert sparse matrix to tuple representation.
def nPep(On0F): def EV8W(RsfQ): if not H4yH.isspmatrix_coo(RsfQ): RsfQ = RsfQ.tocoo() jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose() hkxX = RsfQ.data ROpF = RsfQ.shape return (jNOo, hkxX, ROpF) if isinstance(On0F, list): for YRbF in range(len(On...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)", "def nPep(On0F):\n\n def EV8W(RsfQ):\n ...
[ "0.85870504", "0.82527", "0.82527", "0.8091624", "0.7986327", "0.602773", "0.59843755", "0.5971062", "0.59706587", "0.59447116", "0.59443593", "0.5910293", "0.5910293", "0.5910293", "0.5910293", "0.5910293", "0.58940256", "0.58499134", "0.5845008", "0.577404", "0.5689886", ...
0.82655305
4
Get list of children for each nonleaf node.
def Sshh(k0dS): zZI3 = oRi_(list) if isinstance(k0dS, dict): k0dS = list(k0dS.iteritems()) for aUGN, _AKB in k0dS: zZI3[_AKB].append(aUGN) return zZI3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RbaF(YKHO):\n return [Q6kx for Q6kx in YKHO._children.values()]", "def RbaF(YKHO):\n return []", "def afYC(YKHO):\n return YKHO.leaves", "def afYC(YKHO) -> iu5r[I73H]:\n return []", "def MqtK(YKHO, Q6kx):\n return Q6kx.children", "def WANI(YKHO):\n afYC = [fqsQ for fqsQ in Cklc.GetC...
[ "0.77184075", "0.76525956", "0.76115876", "0.7552538", "0.7477724", "0.74745893", "0.7438982", "0.7415529", "0.7415378", "0.74043876", "0.7395605", "0.7395605", "0.7395605", "0.7367469", "0.7347944", "0.73165876", "0.73041075", "0.72798175", "0.7278937", "0.726418", "0.721847...
0.0
-1
Init a new dqueue.
def E6kD(): from dqueue import Dque return Dque()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.queue = []\n YKHO.queue.append(g5js())\n YKHO.queue.append(g5js())\n YKHO.tag = 0", "def FIMM(YKHO) -> None:\n YKHO._queue = []", "def FIMM(YKHO):\n YKHO.queue = g5js()", "def FIMM(YKHO):\n YKHO.dequeue = j0Xq()", "def FIMM(YKHO):\n YKHO.queue = MUE7()", "de...
[ "0.7442479", "0.7317448", "0.72406936", "0.72349405", "0.712574", "0.712574", "0.712574", "0.712574", "0.70671207", "0.70640177", "0.69909364", "0.697032", "0.697032", "0.697032", "0.697032", "0.697032", "0.68680143", "0.68680143", "0.6867319", "0.6862888", "0.6844452", "0....
0.6822943
23
Instantiate a new dqueue, head and tail should be None.
def tbzU(E6kD): assert E6kD.new_dll.head is None assert E6kD.new_dll.tail is None assert E6kD.size() == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.point_to_head = U0dB('head')\n YKHO.point_to_tail = U0dB('tail')", "def FIMM(YKHO):\n YKHO._head = None\n YKHO._tail = None\n YKHO._size = 0", "def E6kD():\n from dqueue import Dque\n return Dque()", "def FIMM(YKHO):\n YKHO.queue = []\n YKHO.queue.append(g5js...
[ "0.70209277", "0.69455826", "0.6870933", "0.6602584", "0.6593373", "0.63641983", "0.6330618", "0.63143533", "0.6310622", "0.62862056", "0.62862056", "0.62862056", "0.62793666", "0.6250587", "0.6246805", "0.62370116", "0.62370116", "0.62312543", "0.6229442", "0.6229442", "0.62...
0.0
-1
Maps all the attributes into specific enums type or boolean or number, and return the dict after mapping.
def r2wf(T4Wy: dict) -> dict: K6m2 = {'has_batteries': mDld.cast_str_to_bool, 'has_glow': mDld.cast_str_to_bool, 'has_lactose': mDld.cast_str_to_bool, 'has_nuts': mDld.cast_str_to_bool, 'min_age': int, 'num_rooms': int, 'num_sound': int, 'pack_size': int, 'dimensions': lambda WKvO: float(WKvO.replace(',', '.')), 's...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d7rc(YKHO, nPrm: Any) -> cuzp[ImMB, ImMB]:\n return {Jyyj: BWXx.value if isinstance(BWXx, bHD7) else BWXx for Jyyj, BWXx in nPrm}", "def MNRr(YKHO):\n Aofo = {}\n for hkS8, bGrB in jKi7.iteritems(YKHO.openapi_types):\n BWXx = getattr(YKHO, hkS8)\n if BWXx is None:\n continue...
[ "0.6376764", "0.6373905", "0.6373905", "0.6373905", "0.6373905", "0.6373905", "0.6373905", "0.6373905", "0.62475324", "0.6174338", "0.6168905", "0.61563706", "0.60543674", "0.6019224", "0.6014222", "0.60046154", "0.60046154", "0.60046154", "0.5991247", "0.5972614", "0.5969980...
0.68583864
0
removes any fields in ``d`` that are ``None`` and returns ``d``.
def iTqW(rV9y, Csk6): return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in Csk6.iteritems() if Ty9i is not None))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L2On(YKHO, nPrm):\n for H5ew, BWXx in nPrm.items():\n if BWXx is None or isinstance(BWXx, H6V6.Field):\n del nPrm[H5ew]\n if isinstance(BWXx, dict):\n YKHO._remove_none(nPrm[H5ew])", "def Oyo4(Csk6):\n for H5ew, BWXx in list(Csk6.items()):\n if BWXx is None or...
[ "0.70349324", "0.6984631", "0.6844757", "0.6813955", "0.6803604", "0.6767289", "0.6695628", "0.6660116", "0.6639314", "0.6500436", "0.64441895", "0.6432155", "0.6427089", "0.64172685", "0.6340153", "0.63339865", "0.63128364", "0.629096", "0.6228382", "0.6216547", "0.61855537"...
0.80907196
0
Returns True if more events exist in this series after ``date_data``.
def p0nO(rV9y, dy_H, wUkY): if dy_H.ends_after and len(dy_H.events) >= dy_H.num_occurrences or (dy_H.ends_on and wUkY['start_date'] > dy_H.recurrence_end_date): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MF15(YKHO) -> bool:\n return YKHO.published_after().count() != 0", "def MF15(YKHO):\n return YKHO.count < len(YKHO)", "def iz93(YKHO):\n if YKHO.status in Ru8Y:\n return False\n try:\n H4zT = YKHO.get_event_queryset()\n except NotImplementedError:\n return True\n retu...
[ "0.6318312", "0.6183957", "0.61430913", "0.604283", "0.5970718", "0.5958615", "0.59220284", "0.5812415", "0.57828635", "0.5760963", "0.5700052", "0.5695627", "0.56847566", "0.5647049", "0.5647049", "0.5646737", "0.56348205", "0.56315655", "0.56221753", "0.5614341", "0.5597905...
0.8184778
0
Returns a chart by name.
def a88W(YKHO, mWFP: str) -> h8nf[ILq0]: if mWFP in YKHO.entries: return YKHO.entries[mWFP] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def urhJ(YKHO, mWFP: str) -> ILq0:\n if mWFP in YKHO.entries:\n return YKHO.entries[mWFP]\n raise PK2g('Chart \"{}\" not found'.format(mWFP))", "def LrZq(mWFP):\n return iujc[mWFP.lower()]", "def j_oG(YKHO, mWFP: str) -> h8nf['Dataset']:\n raise NotImplementedError", "def CpZX(YKHO, mWFP: ...
[ "0.7109706", "0.7019839", "0.68239576", "0.6764104", "0.6628474", "0.64535314", "0.6372001", "0.62289995", "0.62045896", "0.6184133", "0.6104562", "0.6100152", "0.6086625", "0.6022273", "0.5972116", "0.5958264", "0.5913988", "0.58905894", "0.5880865", "0.5863807", "0.584529",...
0.79517376
0
Returns a chart by name.
def urhJ(YKHO, mWFP: str) -> ILq0: if mWFP in YKHO.entries: return YKHO.entries[mWFP] raise PK2g('Chart "{}" not found'.format(mWFP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a88W(YKHO, mWFP: str) -> h8nf[ILq0]:\n if mWFP in YKHO.entries:\n return YKHO.entries[mWFP]\n return None", "def LrZq(mWFP):\n return iujc[mWFP.lower()]", "def j_oG(YKHO, mWFP: str) -> h8nf['Dataset']:\n raise NotImplementedError", "def CpZX(YKHO, mWFP: str) -> 'ChartVersionInfo':\n ...
[ "0.79517376", "0.7019839", "0.68239576", "0.6764104", "0.6628474", "0.64535314", "0.6372001", "0.62289995", "0.62045896", "0.6184133", "0.6104562", "0.6100152", "0.6086625", "0.6022273", "0.5972116", "0.5958264", "0.5913988", "0.58905894", "0.5880865", "0.5863807", "0.584529"...
0.7109706
1
Add donation to donor's history
def VtQ7(YKHO, Z5kt): YKHO.donations.append(Z5kt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VtQ7(YKHO):\n mWFP = YKHO.get_donor()\n if mWFP in YKHO.all_donors:\n eSH6 = int(input('Please enter a donation: '))\n Ops5 = int(YKHO.r.hget(mWFP, 'donations'))\n Ops5 += eSH6\n YKHO.r.hset(mWFP, 'donations', str(Ops5))\n print(YKHO.r.hget(mWFP, 'donations'))\n else...
[ "0.7176873", "0.6903825", "0.688624", "0.68321955", "0.6813224", "0.67477596", "0.6691522", "0.6595631", "0.6505548", "0.6414089", "0.64034224", "0.6384012", "0.60815823", "0.60445434", "0.6033811", "0.5943901", "0.59154606", "0.5738607", "0.5707274", "0.56477076", "0.5613074...
0.69296217
1
Create new DonorCollection instance with empty donor dictionary
def FIMM(YKHO): YKHO.donors = {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, geg6=None):\n if geg6 is None:\n YKHO.donor_info = {}\n else:\n for dgtG in geg6:\n YKHO.donor_info.update({dgtG.name: dgtG})", "def FIMM(YKHO, geg6=None):\n if geg6 is None:\n YKHO.donor_inf = {}\n else:\n YKHO.donor_inf = {mWFP: Ops5}", "def m...
[ "0.73822105", "0.7197104", "0.6503639", "0.6479514", "0.61990553", "0.5853915", "0.58509034", "0.5798802", "0.57853293", "0.5709637", "0.5514622", "0.5479577", "0.54727346", "0.54555374", "0.54511034", "0.5446474", "0.5405041", "0.53912544", "0.5374399", "0.5299382", "0.52428...
0.72818685
1
Construct a ConvPool model.
def FIMM(YKHO, VKhi): super(MuQQ, YKHO).__init__(VKhi) YKHO.batch_size = VKhi.batch_size YKHO.input_dim = VKhi.input_dim YKHO.input_len = VKhi.input_len YKHO.output_len = VKhi.output_len YKHO.conv_layer_num = VKhi.conv_layer_num YKHO.conv_kernel_num = VKhi.conv_kernel_num YKHO.conv_kerne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kukt(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n G1Hx = [khtY.handle.kernel_h, khtY.handle.kernel_w]\n KCHu = [khtY.handle.stride_h, khtY.handle.stride_w]\n Rldr = khtY.odd_padding\n XP5J = [khtY.handle.pad_h + Rldr[0], khtY.handle.pad_w + Rldr[1], khtY.handl...
[ "0.69215906", "0.67604595", "0.66735834", "0.66229254", "0.6574806", "0.64778924", "0.64432716", "0.6434137", "0.640035", "0.6381879", "0.63792866", "0.6371251", "0.6355106", "0.630213", "0.6285229", "0.6285229", "0.6281775", "0.6240917", "0.62328815", "0.623086", "0.6222837"...
0.0
-1
Test we get a bad gateway error if we can't find supervisor.
async def test_bad_gateway_when_cannot_find_supervisor(_ANj, bFCs: AiohttpClientMocker) -> None: bFCs.get('http://127.0.0.1/app/entrypoint.js', exc=V7ok.TimeoutError) _hkX = await _ANj.get('/api/hassio/app/entrypoint.js') assert _hkX.status == qed_.BAD_GATEWAY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRm8(YKHO):\n cuiw = YKHO.login_to_apic()\n Q6kx = OTFp('1')\n YKHO.assertRaises(TypeError, VPT8.get, cuiw, Q6kx)", "def C287(YKHO):\n from supvisors.rpcinterface import RPCInterface\n YKHO.supervisor.supvisors.context.processes = {'proc_1': 'first process'}\n lTaB = RPCInterface(YKHO.super...
[ "0.5981292", "0.592272", "0.580712", "0.5779609", "0.5628047", "0.5513224", "0.5409508", "0.53530324", "0.53169245", "0.5304271", "0.5298325", "0.5278871", "0.5268178", "0.523301", "0.5229871", "0.5223141", "0.5186227", "0.5177942", "0.5164635", "0.5132779", "0.51268506", "...
0.65441114
0
Enable user to buy a stock.
def TgwQ(): if QePW.method == 'POST': if not QePW.form.get('intervention'): return TvZl('results.html', results=VECZ.values()) ' \n elif not request.form.get("setting"):\n return apology("missing setting")\n elif not request.form.get("emrpref"):\n retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IU3N(YKHO, LpID, Z5kt):\n YKHO.orders[LpID] += Z5kt", "def IU3N(YKHO, o61b: str=None, cTRz: int=0, _PB9: str='gtc', BNW8: bool=False):\n return YKHO.trader.buy(o61b, cTRz, _PB9, BNW8)", "def PqRJ(YKHO, SYlA, qWWp, xM66, Z5kt):\n if YKHO.__buy_stock_init__(SYlA, qWWp, xM66, Z5kt) == False:\n ...
[ "0.6653856", "0.6647518", "0.65846837", "0.65707827", "0.6548142", "0.63767505", "0.6267546", "0.62477654", "0.6235365", "0.62160015", "0.62022454", "0.6190609", "0.6190339", "0.6174273", "0.6115096", "0.6108209", "0.60575914", "0.6052103", "0.6047494", "0.604169", "0.6035211...
0.0
-1
Calculate the IOU between boxes and anchors.
def RjuK(oUSw, qvIa): gBn4 = oyIN.minimum(oUSw[:, 0, oyIN.newaxis], qvIa[oyIN.newaxis, :, 0]) F0y5 = oyIN.minimum(oUSw[:, 1, oyIN.newaxis], qvIa[oyIN.newaxis, :, 1]) C7_8 = gBn4 * F0y5 ab__ = oUSw[:, 0] * oUSw[:, 1] FY_q = qvIa[:, 0] * qvIa[:, 1] b65I = ab__[:, oyIN.newaxis] + FY_q[oyIN.newaxis]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ldYY(L9bq):\n LVAh, WKvO, MKlR, yzQ0 = oyIN.transpose(L9bq)\n ofp9 = yzQ0 * MKlR\n nxyw = LVAh - MKlR // 2\n nJ9F = WKvO - yzQ0 // 2\n si3g = LVAh + MKlR // 2\n o4D3 = WKvO + yzQ0 // 2\n\n def RjuK(v7iA):\n p9iZ = []\n for p3tS in v7iA:\n UuVd, OArP, lJe9, js74 = p...
[ "0.7923001", "0.79052544", "0.7763466", "0.7763466", "0.7763466", "0.77461624", "0.7625856", "0.75763726", "0.74150914", "0.73718035", "0.73614705", "0.7333996", "0.7332774", "0.7269138", "0.7258896", "0.71443504", "0.70813495", "0.70355195", "0.7029728", "0.70288104", "0.702...
0.7145202
15
Return a randomly generated binary string of size length. length the length of the binary string to generate
def zcSw(u54L): H5ew = [str(tuKI.randint(0, 1)) for WKvO in range(u54L)] return ''.join(H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CWbB(u54L, vDzF=False):\n qoqK = 255 if vDzF else 126\n return ''.join([chr(Acvy(range(32, qoqK))) for bGrB in range(u54L)]) + '\\n'", "def BWvy(u54L):\n return Xbr4(Hy7s.urandom(u54L))[:u54L]", "def GLL2(u54L):\n return '{0:0{1}x}'.format(tuKI.getrandbits(u54L * 4), u54L)", "def e7Tf(u54L=6)...
[ "0.82869774", "0.82597584", "0.82051337", "0.81143016", "0.80188406", "0.8009309", "0.78233474", "0.7805365", "0.77662945", "0.7746474", "0.76428586", "0.7614428", "0.7527163", "0.75200224", "0.7432218", "0.7428669", "0.74269825", "0.74256045", "0.73971635", "0.7366984", "0.7...
0.85678524
0
This method will fetch the step1.end_year value from a .yml file
def e0Um(_WvM: dict) -> str: wcVJ = None try: wcVJ = _WvM['step1.end_year'] except KeyError as exc: print(PnW9.__get_key_missing_error_message(BQDi)) return wcVJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zoMc(_WvM: dict) -> str:\n mcyV = None\n try:\n mcyV = _WvM['step1.start_year']\n except KeyError as exc:\n print(PnW9.__get_key_missing_error_message(BQDi))\n return mcyV", "def rGpz(_WvM: dict) -> str:\n sz_R = None\n try:\n sz_R = _WvM['step1.end_month']\n except ...
[ "0.7207822", "0.66823876", "0.65050745", "0.6140347", "0.6137251", "0.56748474", "0.5528404", "0.53147274", "0.52570367", "0.52453053", "0.52218485", "0.52172977", "0.5072907", "0.50610274", "0.50140053", "0.49715784", "0.4956864", "0.49504402", "0.49141437", "0.4909929", "0....
0.8289978
0
True if vector x is monotonically ascendent, false otherwise
def NypO(WKvO): return KhD9(iAAT(WKvO[1:], WKvO[0:-1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mwCj(WKvO, EySs=True):\n return oyIN.all(oyIN.diff(WKvO) * (1.0 if EySs else -1.0) >= 0)", "def uiZx(WKvO):\n return oLG2.all(oLG2.diff(WKvO) > 0)", "def qYvq(WKvO):\n return oLG2.all(oLG2.diff(WKvO) <= 0)", "def TAdc(WKvO):\n return oLG2.all(oLG2.diff(WKvO) >= 0)", "def Cd87(WKvO):\n re...
[ "0.70340335", "0.7009624", "0.6909266", "0.67149264", "0.6583171", "0.6386162", "0.63811964", "0.6372677", "0.6294193", "0.62742597", "0.60500646", "0.5979637", "0.5974679", "0.59500647", "0.5924411", "0.5915272", "0.59128165", "0.5862604", "0.58516103", "0.585044", "0.583824...
0.6976582
2
Returns the complementary error function erfc(x) erfc(x)=1erf(x)=2/sqrt(pi)\int_x^\inf e^t^2 dt
def zd5H(WKvO): try: WKvO.shape except: WKvO = qw7D([WKvO]) epBp = abs(WKvO) a1PO = 1.0 / (1.0 + 0.5 * epBp) nomL = a1PO * kLQb(-epBp * epBp - 1.26551223 + a1PO * (1.00002368 + a1PO * (0.37409196 + a1PO * (0.09678418 + a1PO * (-0.18628806 + a1PO * (0.27886807 + a1PO * (-1.13520398 + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tVah(WKvO):\n return 1.0 - zd5H(WKvO)", "def zd5H(WKvO):\n return 0.0", "def r1wv(WKvO):\n epBp = abs(WKvO)\n a1PO = 1.0 / (1.0 + 0.5 * epBp)\n Mkmy = a1PO * epAf.exp(-epBp * epBp - 1.26551223 + a1PO * (1.00002368 + a1PO * (0.37409196 + a1PO * (0.09678418 + a1PO * (-0.18628806 + a1PO * (0.27...
[ "0.75833994", "0.722157", "0.67651504", "0.6690238", "0.6629046", "0.6597801", "0.65771705", "0.6304161", "0.61688787", "0.61411196", "0.6019691", "0.5983571", "0.5976692", "0.5840774", "0.5838701", "0.578113", "0.5732829", "0.57140386", "0.5681563", "0.5656592", "0.5636446",...
0.75425726
1
Returns the error function erf(x) erf(x)=2/sqrt(pi)\int_0^x \int e^t^2 dt
def tVah(WKvO): return 1.0 - zd5H(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tVah(a1PO):\n V6IE = 0.3275911\n k0lF = [0.254829592, -0.284496736, 1.421413741, -1.453152027, 1.061405429]\n Kt_s = 1.0 / (1 + V6IE * a1PO)\n aDc9 = Kt_s\n Pj0c = k0lF[0] * aDc9\n for YRbF in range(1, 5):\n aDc9 = aDc9 * Kt_s\n Pj0c = Pj0c * k0lF[YRbF] * aDc9\n return 1.0 - ...
[ "0.7102826", "0.6942013", "0.68463993", "0.6794912", "0.6787168", "0.6481229", "0.64769936", "0.64190036", "0.62356", "0.60737497", "0.6038482", "0.6011517", "0.5874494", "0.5852415", "0.5848979", "0.584599", "0.5834047", "0.5826507", "0.5809764", "0.5775347", "0.5760114", ...
0.677106
5
Find out how many connected components are in the graph
def AdfU(YKHO): b_VF = 0 UO5O = YKHO.nodes() while UO5O: b_VF += 1 gGq6 = {UO5O.pop()} while gGq6: BdN0 = gGq6.pop() UO5O.remove(BdN0) for fP8F in BdN0.parents() | BdN0.children(): if fP8F in UO5O: gGq6.add(fP8F)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WBdH(YKHO) -> int:\n\n def Gg28(e2gD: Tuple[int, int]) -> fHNa[AzJI[int, int]]:\n \"\"\" \"\"\"\n nonlocal visited\n azXi.add(e2gD)\n if pNZh.vertices[e2gD]:\n for AAbN in pNZh.vertices[e2gD]:\n if AAbN not in azXi:\n azXi.add(AAbN)\n ...
[ "0.84893906", "0.8441421", "0.813407", "0.81115675", "0.8110622", "0.80094033", "0.78391", "0.77600485", "0.74113125", "0.7327618", "0.7263765", "0.7236958", "0.7225985", "0.7175493", "0.71655893", "0.7144106", "0.70974714", "0.7088789", "0.70423055", "0.7006759", "0.7006341"...
0.7546215
8
A single River Region
def zxoc(b4w3): try: Mkmy = MuKQ(QePW, b4w3, None) except mgaz: return eTsH(404) return Mkmy.render()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zxoc(b4w3):\n Mkmy = MuKQ(QePW, b4w3, None)\n return Mkmy.render()", "def zn0c(YKHO):\n return YKHO.random_element(YKHO._regions)", "def zn0c(YKHO):\n return zQZR.lookup(YKHO.state)", "def jEAU(YKHO, Oa1e):\n return NotImplementedError", "def kkjR(YKHO):\n if YKHO.initiated is False:\...
[ "0.7580077", "0.6559608", "0.6486316", "0.6317798", "0.6308154", "0.6297248", "0.62235177", "0.61914796", "0.6133975", "0.6122831", "0.6058341", "0.6054975", "0.6053758", "0.59080696", "0.5906734", "0.5871702", "0.5871702", "0.5798303", "0.57938373", "0.5793105", "0.5790699",...
0.7056435
1
Check to ensure the password cannot be blank.
def _1UA(YKHO): BGqR = {'username': 'testuser', 'password1': '', 'password2': ''} L03z = svNX(data=BGqR) YKHO.assertFalse(L03z.is_valid())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpeS(YKHO):\n RnXU = wsY0('')\n with YKHO.assertRaises(sUXu):\n UpdD(None, RnXU)", "def tWk5(YKHO, jTXt):\n eD8c = ZbWC.compile(si3H.password_regex)\n if not eD8c.match(jTXt):\n return False\n m3KK = si3H.password_disallowed\n return jTXt not in m3KK", "def SqNO(YKHO):\n ...
[ "0.79490334", "0.77968377", "0.77871263", "0.77335155", "0.7643131", "0.76367515", "0.7621422", "0.7516139", "0.7513022", "0.7505487", "0.7499173", "0.74782765", "0.7467791", "0.74369264", "0.74352205", "0.7381777", "0.7366632", "0.73541045", "0.7336154", "0.7323264", "0.7281...
0.0
-1
Check to ensure the password cannot be blank.
def _1UA(YKHO): BGqR = YKHO.form_data('') L03z = YKHO.form(data=BGqR, user=YKHO.u) YKHO.assertFalse(L03z.is_valid())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpeS(YKHO):\n RnXU = wsY0('')\n with YKHO.assertRaises(sUXu):\n UpdD(None, RnXU)", "def tWk5(YKHO, jTXt):\n eD8c = ZbWC.compile(si3H.password_regex)\n if not eD8c.match(jTXt):\n return False\n m3KK = si3H.password_disallowed\n return jTXt not in m3KK", "def SqNO(YKHO):\n ...
[ "0.7948673", "0.77985877", "0.7789967", "0.77350724", "0.7644224", "0.7637583", "0.762202", "0.75166345", "0.75142026", "0.7506286", "0.7499982", "0.74785256", "0.7468479", "0.7439236", "0.74369186", "0.7382595", "0.7368371", "0.7353784", "0.7338197", "0.7325224", "0.7282342"...
0.0
-1
Reset all tensorflow objects to enable the model to be trained again
def C_Vr(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.close()\n YKHO._sess = ZylS.Session(graph=YKHO._graph)\n YKHO._sess.run(YKHO._initializer)", "def SiRx(YKHO):\n YKHO.pred_classes.clear()\n YKHO.gold_classes.clear()\n YKHO.pred_probas.clear()\n YKHO.gold_probas.clear()\n YKHO.loss = 0\n YKHO.nb_batches = 0\n ...
[ "0.7678339", "0.75339043", "0.7478618", "0.7393605", "0.73729026", "0.7247076", "0.72396255", "0.7210391", "0.70935744", "0.70598245", "0.70598245", "0.7056544", "0.70286405", "0.7024844", "0.70112365", "0.70112365", "0.6949345", "0.6946845", "0.69278085", "0.69249105", "0.69...
0.0
-1
Initializing the structure of the basic VGGlike block
def FIMM(YKHO, DYuh, tYiq, dBuj=True, XVAW=False, _0fC=1): super(Hs_T, YKHO).__init__() YKHO.conv_1 = U78l.Conv2d(in_channels=DYuh, out_channels=tYiq, kernel_size=(3, 3), stride=(_0fC, _0fC), padding=(1, 1), bias=False) YKHO.conv_2 = U78l.Conv2d(in_channels=tYiq, out_channels=tYiq, kernel_size=(3, 3), strid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFT6(YKHO):\n MYHg = dTM8(weights='imagenet')\n MYHg.outputs = [MYHg.layers[9].output]\n VXjJ = X6a0(shape=YKHO.hr_shape)\n r13y = MYHg(VXjJ)\n return wOed(VXjJ, r13y)", "def FIMM(YKHO):\n super(Nef6, YKHO).__init__()\n Ty9i = a7Lb(pretrained=True)\n bySB = list(Ty9i.features)\n tw...
[ "0.6718207", "0.6704799", "0.65439", "0.64907247", "0.6474263", "0.6415233", "0.63843143", "0.63797164", "0.63572806", "0.6356659", "0.6257027", "0.6202369", "0.60905993", "0.60599446", "0.6059049", "0.6056629", "0.60118115", "0.6011722", "0.60069317", "0.599805", "0.59728086...
0.0
-1
Should return False if 0 choices exist.
def lvdV(YKHO): assert ClYY.check_category_input(1, []) == False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NbBS(mrPm):\n return not max([mrPm.count(Acvy) - 1 for Acvy in mrPm])", "def TWr2(YKHO):\n return YKHO.__class__.get_setting_choices(YKHO.key, **YKHO.get_kwargs()) is not None", "def QISX(YKHO, mrPm):\n Fj4y = set(mrPm)\n jOVG = len(YKHO.correct_choices - Fj4y) == 0\n yJgc = len(Fj4y - YKHO....
[ "0.70469284", "0.6714852", "0.67058134", "0.6669307", "0.66036755", "0.6541022", "0.64230967", "0.63549656", "0.6306329", "0.6284618", "0.6245853", "0.6183903", "0.61593246", "0.61440676", "0.6137393", "0.611288", "0.61077106", "0.6099051", "0.6086218", "0.60855687", "0.60794...
0.0
-1
Create a variable with L2 Regularization (Weight Decay)
def lJ6q(RndV, MuED, TI1B): yzQ0 = ZylS.get_variable('weights', RndV, ZylS.float32, initializer=MuED) Rr59 = ZylS.GraphKeys.REGULARIZATION_LOSSES if TI1B and (not ZylS.get_variable_scope().reuse): oNEO = ZylS.multiply(ZylS.nn.l2_loss(yzQ0), TI1B, name='w_loss') ZylS.add_to_collection(Rr59, o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QSId(YKHO):\n return YKHO.l2 * oyIN.linalg.norm(YKHO.weights) ** 2", "def nduy(THkp, exwG, YDYE, AXU1):\n lQ3t = ZylS.contrib.layers.l2_regularizer(AXU1)\n DbxN = ZylS.contrib.layers.variance_scaling_initializer(mode='FAN_AVG')\n a1PO = ZylS.layers.Dense(units=exwG, activation=YDYE, kernel_initia...
[ "0.7227975", "0.7207936", "0.71978116", "0.71629304", "0.7081066", "0.7052022", "0.69422734", "0.6893322", "0.68926835", "0.685357", "0.6805765", "0.67722416", "0.6634887", "0.6597912", "0.64207006", "0.64207006", "0.64207006", "0.6416478", "0.63910633", "0.637778", "0.631143...
0.5500005
77
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def g4Yp(SRYB): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) ZylS.summary.scalar('mean', JBMS) with ZylS.name_scope('stddev'): z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.scalar(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n1pK(YKHO):\n for G1Hx, Ty9i in YKHO.metrics.items():\n ZylS.summary.scalar(G1Hx, Ty9i)\n YKHO.summary_op = ZylS.summary.merge_all()", "def RlbR(YKHO):\n ZylS.summary.scalar('loss', YKHO.loss)\n XIcQ = ZylS.summary.merge_all()\n YKHO.summary_op = XIcQ\n ZylS.logging.info('summary op ...
[ "0.7071791", "0.6970259", "0.6970259", "0.6800256", "0.67872906", "0.67407334", "0.66669947", "0.66576326", "0.66193783", "0.66085786", "0.6595776", "0.65836215", "0.6581151", "0.655297", "0.6500364", "0.6459978", "0.64145213", "0.6294558", "0.62718755", "0.62713677", "0.6265...
0.5535716
92
Return the camera model.
def C3ST(YKHO): return YKHO._device.device_data[YKHO._uuid]['model']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3ST(YKHO) -> cwqn:\n pass", "def C3ST(YKHO) -> h8nf[cwqn]:\n return YKHO._model", "def yDvq(YKHO):\n return YKHO.__camera", "def yDvq(YKHO):\n return YKHO._camera", "def yDvq(YKHO):\n return YKHO._camera", "def C3ST(YKHO) -> str:\n return YKHO.camera_info['device_model']", "def L...
[ "0.83613294", "0.8325475", "0.7697577", "0.7607879", "0.7607879", "0.7520355", "0.7212203", "0.7132207", "0.69808793", "0.6751965", "0.6749515", "0.66811454", "0.66361666", "0.6601008", "0.65641713", "0.6536921", "0.64860415", "0.64814687", "0.642071", "0.642071", "0.642071",...
0.6608781
13
Return the name of this camera.
def mWFP(YKHO): return YKHO._device.device_data[YKHO._uuid]['name']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n AOAv = YKHO._cam_name.replace('_', ' ')\n return f'{AOAv} {YKHO._obj_name}'.title()", "def mWFP(YKHO) -> str:\n return YKHO.camera_info['device_name']", "def mWFP(YKHO):\n return YKHO._scene_name", "def mWFP(YKHO):\n return YKHO.asset.name", "def Q0HP(YKHO):\n return YKH...
[ "0.86631787", "0.8536238", "0.7493173", "0.7183577", "0.71381986", "0.7096534", "0.70536137", "0.703101", "0.70261574", "0.70229435", "0.70229435", "0.70229435", "0.7022467", "0.7017471", "0.70168525", "0.70163584", "0.7012957", "0.7012957", "0.7012957", "0.7011892", "0.70003...
0.69741833
61
Return the camera state attributes.
def upgy(YKHO): o8Kj = {'access_token': YKHO.access_tokens[-1]} if YKHO.model: o8Kj['model_name'] = YKHO.model if YKHO.brand: o8Kj['brand'] = YKHO.brand if YKHO.motion_detection_enabled: o8Kj['motion_detection'] = YKHO.motion_detection_enabled if YKHO.supports_doorbell_chime:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return {PlJk: YyUn, TB1d: YKHO._camera_type}", "def R1i3(YKHO):\n return YKHO.attributes", "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return {PlJk: YyUn, TB1d: YKHO._device_type}", "def R1i3(YKHO):\n ret...
[ "0.79429895", "0.77826995", "0.7642746", "0.7642746", "0.7628107", "0.7626915", "0.75690836", "0.75690836", "0.75635165", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", ...
0.71897674
37
Return the total distance between the player current location and its opponent's current location
def buyg(BH3N, oyg0, fGVK): iZS8 = BH3N.get_player_location(oyg0) OMMy = BH3N.get_player_location(fGVK) Jssk = epAf.pow(iZS8[0] - OMMy[0], 2) q6fc = epAf.pow(iZS8[1] - OMMy[1], 2) return epAf.sqrt(Jssk + q6fc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcpR(YKHO) -> float:\n PsCT = YKHO.best_route\n return sum(PsCT.values())", "def _Q7N(YKHO, oyg0):\n return YKHO.playerPos.distance(oyg0)", "def bpIY(BH3N, oyg0):\n WKvO, LVAh = BH3N.get_player_location(oyg0)\n return PZyS((WKvO - BH3N.width / 2) ** 2 + (LVAh - BH3N.height / 2) ** 2)", "de...
[ "0.7476284", "0.72073", "0.6905476", "0.6852965", "0.68407226", "0.6788661", "0.6774009", "0.6722211", "0.6641275", "0.66412115", "0.662247", "0.66153634", "0.66075903", "0.65856594", "0.65809476", "0.6568955", "0.656288", "0.65486693", "0.6516577", "0.6498255", "0.64681447",...
0.8173824
0
Calculate the heuristic value of a game state from the point of view of the given player.
def CDl2(BH3N, oyg0): return OWEm(BH3N, oyg0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7Dd(YKHO, QTBn, oyg0):\n if QTBn.isWin() or QTBn.isLose():\n return QTBn.getScore()\n if oyg0 == z5IR:\n return r51j\n else:\n return -r51j", "def tL3w(QTBn, oyg0):\n Vyql = oyg0\n if QTBn.winner() == (not Vyql):\n return -_6fB\n if QTBn.winner() == Vyql:\n ...
[ "0.71605945", "0.7127043", "0.68422264", "0.681838", "0.67977256", "0.6583937", "0.64494747", "0.64484817", "0.6436802", "0.64358234", "0.6432952", "0.6418598", "0.6413811", "0.6405533", "0.6400188", "0.6355528", "0.6340021", "0.6338477", "0.6310529", "0.6307838", "0.62765163...
0.659008
5
Return true if input signature contains a string dtype. This is used to determine if we should proceed with base64 decoding.
def MQy2(aadv=None): if aadv is None: return True return any((Ty9i.dtype == m1c7.string.as_datatype_enum for Ty9i in aadv.inputs.values()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KyrN(YEnM: _std_typing.Any) -> bool:\n return YEnM.dtype == Sa_m.DType.string", "def sd4x(nPrm):\n return len(nPrm) and isinstance(I4W5(nPrm).flat[0], str)", "def RDqf(YKHO):\n return YKHO.data_type in (xHrl.REG_SZ, xHrl.REG_EXPAND_SZ)", "def X7_c(ZfUD: Any) -> bool:\n if isinstance(ZfUD, (by...
[ "0.72504556", "0.7218408", "0.69056946", "0.6770988", "0.668558", "0.6640686", "0.66045827", "0.6535771", "0.6505363", "0.6420533", "0.6344336", "0.6331311", "0.6274873", "0.6230991", "0.6213599", "0.61923146", "0.6176861", "0.615718", "0.6113719", "0.6069403", "0.60643834", ...
0.77119267
0
Checks the template hex vlad and returns the template name corresponding to it
def at54(A0fw): return {'0001': 'SRC_IPV4', '0002': 'DST_IPV4', '0003': 'SRC_PORT', '0004': 'DST_PORT', '0005': 'PROTO', '0006': 'SRC_IPV6', '0007': 'DST_IPV6', '0008': 'IPV4_TOS', '0009': 'IPv6_FLOW_LABEL', '0010': 'PKT_COUNT', '0011': 'KBYTE_COUNT', '000a': 'CLASS_LABEL', '000b': 'MATCH_DIR', '000c': 'MSG_TYPE', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jVaB(YKHO):\n geh0 = G4JS.get(YKHO.url + 'editor/scan/templates', headers=YKHO.headers, verify=False)\n DqlU = qQXR.loads(geh0.text)\n for rPXJ in DqlU['templates']:\n if rPXJ['name'] == YKHO.template_name:\n return rPXJ['uuid']", "def NADT(YKHO) -> str:\n return qe4Y.get(YKHO, ...
[ "0.65291345", "0.63532007", "0.6203617", "0.61391824", "0.61038136", "0.5980608", "0.59394294", "0.58779794", "0.58727556", "0.5831753", "0.5827753", "0.5803702", "0.579694", "0.57697505", "0.5747736", "0.57124245", "0.57018036", "0.5688378", "0.565424", "0.5646325", "0.56406...
0.68287593
0
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8: str) -> bool: _AKB = YKHO.root for hcXw in GIN8: if hcXw not in _AKB.children: return False _AKB = _AKB.children[hcXw] return _AKB.endhere
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False", "def Gtm1(ZO...
[ "0.838632", "0.8150416", "0.8123471", "0.7856802", "0.7830664", "0.77935004", "0.7792806", "0.77642965", "0.7753436", "0.7747724", "0.7711298", "0.76816714", "0.7677101", "0.7664614", "0.76506114", "0.76338875", "0.7628353", "0.76114196", "0.7577657", "0.75695884", "0.756079"...
0.7419175
37
The name of a budget.
def SfRp(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'budget_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SfRp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'budget_name')", "def SfRp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'budget_name')", "def W0tD(YKHO) -> str:\n return YKHO.name + ' - €' + str(YKHO.price)", "def W0tD(YKHO):\n ZWCE = (None, 'January', 'February', 'March', ...
[ "0.8875005", "0.8554875", "0.64392585", "0.6433424", "0.64173913", "0.6412452", "0.6375973", "0.63711876", "0.6357378", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0...
0.87428606
1
The ID of the target account for budget. Will use current user's account_id by default if omitted.
def Z31E(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'account_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO):\n return YKHO.config.account_id", "def Z31E():\n return x0hE.get_caller_identity()['Account']", "def Z31E(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get...
[ "0.7056499", "0.6999657", "0.6991194", "0.6965253", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", ...
0.6752671
39
The ID of the target account for budget. Will use current user's account_id by default if omitted.
def Z31E(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'account_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO):\n return YKHO.config.account_id", "def Z31E():\n return x0hE.get_caller_identity()['Account']", "def Z31E(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get...
[ "0.7056499", "0.6999657", "0.6991194", "0.6965253", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", "0.69278467", ...
0.6752671
40
The id of the budget action.
def fRP1(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'action_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fRP1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'action_id')", "def Qmcp(hlel):\n return hlel['Action queued with id']", "def Qmcp(YKHO, OB8b: str) -> int:\n _MmG = tuple(OB8b.split('+'))\n return YKHO.action_tuples2ids[_MmG]", "def Qmcp(YKHO, OB8b: str) -> int:\n return YKHO.templ...
[ "0.77101105", "0.70399106", "0.67500675", "0.6627429", "0.6505387", "0.632288", "0.62891614", "0.6263326", "0.6234972", "0.62038046", "0.6203409", "0.6193177", "0.61873525", "0.6182867", "0.6141784", "0.6114931", "0.6114931", "0.6114931", "0.6114931", "0.6114931", "0.6114931"...
0.7536181
1
The ARN of the budget action.
def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) ...
[ "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "0.6833833", "...
0.6568866
40
The name of a budget.
def SfRp(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'budget_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SfRp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'budget_name')", "def SfRp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'budget_name')", "def W0tD(YKHO) -> str:\n return YKHO.name + ' - €' + str(YKHO.price)", "def W0tD(YKHO):\n ZWCE = (None, 'January', 'February', 'March', 'April...
[ "0.8875951", "0.8744676", "0.64365107", "0.64322674", "0.64137274", "0.64087164", "0.6372527", "0.6371184", "0.63544554", "0.633888", "0.633888", "0.633888", "0.633888", "0.633888", "0.633888", "0.633888", "0.633888", "0.633888", "0.633888", "0.633888", "0.633888", "0.63388...
0.85561144
2
The status of the budget action.
def jGRS(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n return O6qs[YKHO.fields['status']]", "def jGRS(YKHO):\n YKHO.refresh()\n if YKHO.lease.get('action') is not None:\n return (YKHO.lease['action'], YKHO.lease['status'])\n else:\n return YKHO.lease['status']", "def jGRS(YKHO):\n return YKHO._data['status']", "def ...
[ "0.73068994", "0.72556055", "0.72151834", "0.71604794", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515", "0.7086515",...
0.0
-1
The ID of the target account for budget. Will use current user's account_id by default if omitted.
def Z31E(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'account_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO):\n return YKHO.config.account_id", "def Z31E():\n return x0hE.get_caller_identity()['Account']", "def Z31E(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get...
[ "0.7056621", "0.7000826", "0.6991636", "0.6965153", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6928198", "0.6878709", "...
0.6543054
47
The id of the budget action.
def fRP1(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'action_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fRP1(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'action_id')", "def Qmcp(hlel):\n return hlel['Action queued with id']", "def Qmcp(YKHO, OB8b: str) -> int:\n _MmG = tuple(OB8b.split('+'))\n return YKHO.action_tuples2ids[_MmG]", "def Qmcp(YKHO, OB8b: str) -> int:\n return YKHO....
[ "0.75367063", "0.70411444", "0.67519253", "0.66289645", "0.6508367", "0.63262314", "0.62919027", "0.6266984", "0.62385994", "0.6206942", "0.62062573", "0.6196284", "0.61886007", "0.61811376", "0.6144503", "0.61187804", "0.61187804", "0.61187804", "0.61187804", "0.61187804", "...
0.7711328
0
The ARN of the budget action.
def hMqs(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn'...
[ "0.67860323", "0.67507684", "0.67507684", "0.67507684", "0.67507684", "0.67507684", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586", "0.6568586...
0.6833858
14
The name of a budget.
def SfRp(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'budget_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SfRp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'budget_name')", "def SfRp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'budget_name')", "def W0tD(YKHO) -> str:\n return YKHO.name + ' - €' + str(YKHO.price)", "def W0tD(YKHO):\n ZWCE = (None, 'January', 'February', 'March', '...
[ "0.87428606", "0.8554875", "0.64392585", "0.6433424", "0.64173913", "0.6412452", "0.6375973", "0.63711876", "0.6357378", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "0.63426334", "...
0.8875005
0
The status of the budget action.
def jGRS(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n return O6qs[YKHO.fields['status']]", "def jGRS(YKHO):\n YKHO.refresh()\n if YKHO.lease.get('action') is not None:\n return (YKHO.lease['action'], YKHO.lease['status'])\n else:\n return YKHO.lease['status']", "def jGRS(YKHO):\n return YKHO._data['status']", "def ...
[ "0.73091716", "0.7256718", "0.72181976", "0.7162094", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0.708874", "0...
0.0
-1
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2) is d^2 = ||mu_1 mu_2||^2 + Tr(C_1 + C_2 2sqrt(C_1C_2)). Stable version by Dougal J. Sutherland.
def BCxM(ryEI, _RNt, WNRf, UkX0, SGf8=1e-06): ryEI = oyIN.atleast_1d(ryEI) WNRf = oyIN.atleast_1d(WNRf) _RNt = oyIN.atleast_2d(_RNt) UkX0 = oyIN.atleast_2d(UkX0) assert ryEI.shape == WNRf.shape, 'Training and test mean vectors have different lengths' assert _RNt.shape == UkX0.shape, 'Training an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BCxM(ryEI, _RNt, WNRf, UkX0, SGf8=1e-06):\n ryEI = oyIN.atleast_1d(ryEI)\n WNRf = oyIN.atleast_1d(WNRf)\n _RNt = oyIN.atleast_2d(_RNt)\n UkX0 = oyIN.atleast_2d(UkX0)\n assert ryEI.shape == WNRf.shape, 'Training and test mean vectors have different lengths'\n assert _RNt.shape == UkX0.shape, '...
[ "0.76069444", "0.75973827", "0.758239", "0.7578611", "0.7578611", "0.7578611", "0.74629855", "0.70032674", "0.66978955", "0.66526556", "0.6602651", "0.6415855", "0.6381347", "0.6249157", "0.61492085", "0.6145912", "0.60787976", "0.5981183", "0.59776795", "0.5944563", "0.59085...
0.7605066
1
Tests Boids constructor with incorrect array lengths
def bkvj(): FBNX = oyIN.array([[1.0, 2.0, 3.0, 4.0], [3.0, 5.0, 7.0, 5.0]]) ojhJ = oyIN.array([[10.0, 11.0, 12.0], [13.0, 14.0, 15.0]]) with trZe.raises(IndexError): wI_P(FBNX, ojhJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iprU(YKHO):\n with YKHO.assertRaises(ValueError):\n dkR7.Polytope(b=[1, 2, 3])", "def FIMM(YKHO, Fbjb):\n if len(set(Fbjb)) > 2:\n raise ValueError('This is not an isosceles triangle.')\n super().__init__(Fbjb)", "def CECE(YKHO):\n with YKHO.assertRaises(ValueError):\n ZnHA...
[ "0.61505365", "0.60347676", "0.59886986", "0.591583", "0.58880466", "0.5882969", "0.5882414", "0.58151376", "0.57996976", "0.5788143", "0.57639104", "0.56780684", "0.56474936", "0.56415105", "0.5624732", "0.56178606", "0.5609381", "0.56043065", "0.5599556", "0.5589645", "0.55...
0.79898036
0
Get datetime as string using custom format from settings.
def C794(doIl: dt.datetime) -> str: return doIl.strftime(asJJ().datetime_format)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cTxh():\n return qcWV.now().strftime(dDFw)", "def l7Na():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime())", "def DAsM(QpfX):\n return {'DATETIME_FORMAT': gCuF.DATETIME_FORMAT.replace('%', '')}", "def Wq7q(YKHO, JRYC):\n if RlMg == '':\n return ITS7.strftime('%Y-%m-%d %H:%...
[ "0.76492363", "0.72682583", "0.72446215", "0.7213162", "0.70249367", "0.6923086", "0.69062227", "0.6811708", "0.68086225", "0.68058574", "0.6800442", "0.67758554", "0.676609", "0.67372155", "0.6716435", "0.6710906", "0.670832", "0.6664178", "0.66496336", "0.664904", "0.662031...
0.69636285
5
get current OS type.
def Aubj(Emd4): return {'Darwin': Emd4.MAC, 'Linux': Emd4.LINUX, 'Windows': Emd4.WINDOWS}.get(a9EH.system(), Emd4.LINUX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kUUT(YKHO):\n return YKHO._os_type", "def kUUT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'os_type')", "def kUUT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'os_type')", "def Aubj(YKHO):\n return gTEQ('PrlVmCfg_GetOsType', YKHO.handle)", "def kUUT(YKHO) -> qe4Y.Output[h8nf[str]]:\n retu...
[ "0.8515933", "0.8481272", "0.8481272", "0.84324276", "0.8270059", "0.81162024", "0.8103817", "0.7998018", "0.7890929", "0.78488916", "0.77807957", "0.7775268", "0.7712083", "0.7676643", "0.765998", "0.76508427", "0.7522556", "0.73818266", "0.72563463", "0.7168807", "0.7152061...
0.85660267
0
batching these instances together and return tensors. The seq_tensors for word and char contain their word id and char id.
def sjWh(GPtr, FiTe: List[Instance]) -> AzJI[ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor, ht2j.Tensor]: Ep8u = len(FiTe) J1hN = FiTe nzQu = ht2j.LongTensor(list(map(lambda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, d6pt):\n assert d6pt < YKHO.numBatches, '%d > %d' % (d6pt, YKHO.numBatches)\n Fbjb, wzH_ = YKHO.getLengths(d6pt)\n\n def GDMi(Fg_i, vC9B):\n if Fg_i is None:\n return Fg_i\n Fg_i = ht2j.stack(Fg_i, 0).transpose(0, 1).contiguous()\n if YKHO.cuda:\n ...
[ "0.6394609", "0.632983", "0.62922436", "0.62852645", "0.6278272", "0.6198009", "0.6171594", "0.6147196", "0.6140273", "0.6131661", "0.6108745", "0.6104221", "0.6067046", "0.60662264", "0.6066175", "0.60561395", "0.6049364", "0.6047542", "0.6041223", "0.60016394", "0.5999275",...
0.6995116
0
Method to decay the learning rate
def Qh2O(GPtr, K0do: optim.Optimizer, qtWj: int) -> sqQC.Optimizer: tspZ = GPtr.learning_rate / (1 + GPtr.lr_decay * (qtWj - 1)) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ print('learning rate is set to: ', tspZ) return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qh2O(YPaw):\n return Cwt5 / (1 + f9Ey * YPaw)", "def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n SMht = int(Aak1 / BkRq)\n Cwt5 /= 1 + f9Ey * SMht\n return Cwt5", "def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n \"\"\"if staircase == True\n decayed_learning_rate = learning_rate /\n (1 + decay_rate * floor(glo...
[ "0.82532495", "0.8228478", "0.80260813", "0.7933389", "0.7848205", "0.7769823", "0.77343094", "0.7724918", "0.77237225", "0.7698514", "0.76632714", "0.75876534", "0.7513543", "0.75111324", "0.74338526", "0.74338526", "0.7388287", "0.7339846", "0.73239017", "0.72736263", "0.72...
0.7084559
26
Loads data from `path` into a DataFrame.
def UlWi(pmON, EvQg=True): No5k = ['utterance_ID', 'dialog_act', 'utterance_t-3', 'utterance_t-2', 'utterance_t-1', 'utterance_t'] if not EvQg: No5k.remove('dialog_act') jQ3Z = rLdf.read_csv(pmON, sep='\t|;', engine='python', names=No5k).set_index('utterance_ID').astype(str) jQ3Z[No5k[2:]] = jQ3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ar53(pmON):\n try:\n return rLdf.read_csv(pmON)\n except Exception as e:\n raise Exception('Could not read df, possbily incorrect path: {}'.format(tTpl))", "def yLtf(pmON):\n jQ3Z = rLdf.read_csv(pmON)\n return jQ3Z", "def UlWi(pmON):\n try:\n nPrm = rLdf.read_csv(pmON, ...
[ "0.8278625", "0.79471964", "0.7895529", "0.78884095", "0.77912635", "0.77314335", "0.77314335", "0.7635914", "0.7527078", "0.74598724", "0.7431266", "0.73749495", "0.73397726", "0.72604674", "0.7230723", "0.7225507", "0.7201551", "0.71941394", "0.71825475", "0.7058847", "0.70...
0.64957917
62
Prepares the data for the model by calling `process_seq` on each sentence in the data, then padding the sequence to max_len. If `top_words` is None, then the data will include all words; otherwise, it returns only `top_words` words.
def xP2o(nPrm, wzH_, locH=None, DGSp=None): if DGSp is None: CtWL, UjqS, COLC = xYxb(nPrm['utterance_t'], locH) g1pm = {UXqs: or8S for or8S, UXqs in enumerate(nPrm['dialog_act'].unique())} EcVT = aWuw.pad_sequences(nPrm['utterance_t'].apply(zXlF, args=[UjqS]), maxlen=wzH_) LVAh = nPrm['dialog_ac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OhNn(YKHO, Pha6, RmFd, BcCR, Lx0h, UjMM, VxE8, ovGo, H42b, UBMY, fQKp, Qd2u, VpwJ, AhI9, aOxD, Ep8u, ykz5, hA5W, ZdQl, jXxl, p83V, TaYf, XyVJ, C6EZ):\n oUNW = [ik73(ZdQl, BcCR, hA5W, early_stopping=VxE8) for bGrB in range(Ep8u)]\n h3HQ = ht2j.zeros((Ep8u, ZdQl), dtype=ht2j.float, device=Pha6.device)\n ...
[ "0.56266147", "0.56003267", "0.5562717", "0.5557564", "0.5508258", "0.55027795", "0.54890114", "0.54268676", "0.5372631", "0.5285046", "0.52661073", "0.5264098", "0.523292", "0.51973", "0.51848423", "0.51837856", "0.51832706", "0.5180354", "0.51076305", "0.506523", "0.5064267...
0.6051912
0
Return shallow copy of the box.
def jth9(YKHO): Emd4 = type(YKHO) DoAg = Emd4.__new__(Emd4) DoAg.__dict__.update(YKHO.__dict__) return DoAg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO):\n return W3i8(YKHO)", "def i3ak(YKHO):\n return YKHO.copy()", "def jth9(YKHO):\n return YKHO.mutate().simple_copy()", "def FzJk(YKHO):\n return YKHO.copy()", "def ih8o(YKHO):\n raise NotImplementedError('shallow_copy is not implemented')", "def jth9(YKHO):\n return YKHO....
[ "0.7379114", "0.732625", "0.7284596", "0.7245255", "0.7227114", "0.722654", "0.722654", "0.722654", "0.722654", "0.720113", "0.7200829", "0.7198012", "0.7191244", "0.71871173", "0.71871173", "0.71871173", "0.71871173", "0.71733266", "0.7168223", "0.7140842", "0.7140842", "0...
0.7911073
0