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 |
|---|---|---|---|---|---|---|
View root page function that returns index page | def d6pt():
leAC = 'Home- Welcome'
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZ... | [
"0.8336357",
"0.8323832",
"0.83231723",
"0.83231723",
"0.83231723",
"0.83231723",
"0.83120704",
"0.8243876",
"0.8148167",
"0.8139454",
"0.81151336",
"0.81151336",
"0.81151336",
"0.81151336",
"0.81151336",
"0.81151336",
"0.811353",
"0.8105118",
"0.8105118",
"0.81009924",
"0.80... | 0.0 | -1 |
Manipulate a string to form the name without file extension for each module in the package. 'name' will usually be one word, like 'channels'. Whether singular or plural should not be assumed | def HsL2(mWFP):
mWFP = ZbWC.sub('s$', '', mWFP)
return mWFP.lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zCWD(mWFP):\n return ZbWC.sub('^(databricks_cli)_main', '\\\\1', mWFP)",
"def ivvY(mWFP):\n return mWFP.split('.')[0]",
"def x7oI(vIwR: str) -> str:\n return ZbWC.sub('\\\\W+', '_', vIwR).lower()",
"def ra3H(mWFP):\n for WKvO in ['.py']:\n if mWFP.endswith(WKvO):\n mWFP = mW... | [
"0.72424114",
"0.70660275",
"0.69879836",
"0.6961441",
"0.6650197",
"0.66370773",
"0.6612009",
"0.66112614",
"0.6543608",
"0.65130097",
"0.6503011",
"0.64493936",
"0.6411015",
"0.64108133",
"0.63985914",
"0.63479656",
"0.6347212",
"0.6334311",
"0.6325764",
"0.6306441",
"0.630... | 0.0 | -1 |
Manipulate a string to form the name without file extension for each module in the package. 'name' will usually be one word, like 'channels'. Whether singular or plural should not be assumed | def lRM0(mWFP):
mWFP = mWFP[0].upper() + mWFP[1:]
mWFP = ZbWC.sub('s$', '', mWFP)
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zCWD(mWFP):\n return ZbWC.sub('^(databricks_cli)_main', '\\\\1', mWFP)",
"def ivvY(mWFP):\n return mWFP.split('.')[0]",
"def x7oI(vIwR: str) -> str:\n return ZbWC.sub('\\\\W+', '_', vIwR).lower()",
"def ra3H(mWFP):\n for WKvO in ['.py']:\n if mWFP.endswith(WKvO):\n mWFP = mW... | [
"0.7241142",
"0.70649624",
"0.6988488",
"0.6960195",
"0.6648438",
"0.6637619",
"0.6611766",
"0.66108745",
"0.6541801",
"0.651065",
"0.65018505",
"0.6448713",
"0.64101374",
"0.64100593",
"0.6396338",
"0.6348099",
"0.6346784",
"0.63328093",
"0.6324026",
"0.6306446",
"0.63034624... | 0.0 | -1 |
Manipulate a string to form the name without file extension for each module in the package. 'name' will usually be one or more words in camelCase, like 'muteChannel'. Whether singular or plural should not be assumed. | def ly2k(mWFP, _2sc):
mWFP = ZbWC.sub('([A-Z]{1,1})', '_\\1', mWFP)
mWFP = mWFP.lower()
mWFP = mWFP.replace('_%s' % _2sc.lower(), '')
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zCWD(mWFP):\n return ZbWC.sub('^(databricks_cli)_main', '\\\\1', mWFP)",
"def ra3H(mWFP):\n for WKvO in ['.py']:\n if mWFP.endswith(WKvO):\n mWFP = mWFP[:-len(WKvO)]\n for WKvO in ['..', '.', '\\\\', '/', 'src\\\\', 'src/']:\n if mWFP.startswith(WKvO):\n mWFP = mW... | [
"0.705442",
"0.7003123",
"0.6802822",
"0.6709795",
"0.6599895",
"0.657792",
"0.6553898",
"0.64514047",
"0.6433648",
"0.6425651",
"0.64242333",
"0.63283044",
"0.63209116",
"0.6310787",
"0.6289823",
"0.6288306",
"0.62848544",
"0.6238332",
"0.6188289",
"0.6173332",
"0.6170652",
... | 0.0 | -1 |
Gets the name of this header's stream. The name of this header's stream. | def Q0HP(YKHO) -> QMSQ:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgZu(YKHO):\n return YKHO._stream_name",
"def mWFP(YKHO) -> str:\n return YKHO.stream_name",
"def kgZu(YKHO) -> str:\n return HEOD.get(YKHO, 'streamName')",
"def kgZu(YKHO) -> str:\n return HEOD.get(YKHO, 'streamName')",
"def kgZu(YKHO):\n return YKHO._conn.stream_name",
"def kgZu(YKHO... | [
"0.86576253",
"0.85243195",
"0.84146696",
"0.84146696",
"0.81332624",
"0.8001108",
"0.7926135",
"0.7909517",
"0.7786553",
"0.7786553",
"0.7786553",
"0.745726",
"0.73179394",
"0.707205",
"0.69800305",
"0.69800305",
"0.69800305",
"0.69800305",
"0.69188434",
"0.67900336",
"0.669... | 0.0 | -1 |
Gets the size of this header's stream. The size of this header's stream. | def R8e4(YKHO) -> int:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO) -> int:\n return YKHO.stream_info.state.bytes",
"def zNig(YKHO):\n return len(YKHO._stream)",
"def IlJx(YKHO, wOb_):\n wOb_.seek(0, 2)\n zNig = wOb_.tell()\n wOb_.seek(0)\n return zNig",
"def VMOf(YKHO):\n return J8uC.SBStream_GetSize(YKHO)",
"def zNig(YKHO):\n KAof =... | [
"0.8186691",
"0.8143458",
"0.81049657",
"0.7925584",
"0.78913236",
"0.77563393",
"0.76724815",
"0.7663565",
"0.76584184",
"0.7630653",
"0.7626464",
"0.7618535",
"0.7614754",
"0.7573884",
"0.7566066",
"0.75522363",
"0.752048",
"0.752048",
"0.752048",
"0.752048",
"0.752048",
... | 0.0 | -1 |
Validate whether the password meets all validator requirements. If the password is valid, return ``None``. If the password is invalid, raise ValidationError with all error messages. | def tg18(jTXt, CBIr=None, eax4=None):
UAju = []
RXxz = []
if eax4 is None:
eax4 = CU5u()
for aBkf in eax4:
try:
aBkf.validate(jTXt, CBIr)
except sUXu as error:
RXxz.append(aBkf.get_help_text())
UAju.append(P1dF)
return RXxz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tg18(YKHO, jTXt):\n if len(jTXt.data) < 8:\n raise ValueError('must be more than 8 characters')\n elif len(jTXt.data) > 32:\n raise ValueError('must be less than 32 characters')\n elif ZbWC.search('[0-9]', jTXt.data) is None:\n raise ValueError('Password must have a number')\n ... | [
"0.77895534",
"0.74199307",
"0.7378166",
"0.7341181",
"0.7336353",
"0.7322934",
"0.7295558",
"0.724695",
"0.7227038",
"0.7223882",
"0.72109836",
"0.720907",
"0.7185331",
"0.7185331",
"0.7182559",
"0.71686697",
"0.7162155",
"0.71570283",
"0.71249676",
"0.7121048",
"0.7113439",... | 0.0 | -1 |
Reward consists of model improvement minus time taken, weighted. | def Jc_J(YKHO, XeOP, jPdT):
return YKHO._get_model_improvement(XeOP) - jPdT * YKHO._get_time_penalty(XeOP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(YKHO):\n pass",
"def wOT8(YKHO) -> float:\n raise NotImplementedError",
"def YncY(YKHO):\n raise NotImplementedError",
"def Xaq_(YKHO):\n return 0.0",
"def vOGg(YKHO):\n YKHO.r = YKHO.calc_reward()",
"def oe4f(YKHO):\n tb29 = YKHO.metric\n YKHO.metric = YKHO.reward_metric(YK... | [
"0.7663155",
"0.7530158",
"0.75205386",
"0.7408958",
"0.73639345",
"0.73342",
"0.73159486",
"0.7304591",
"0.7270785",
"0.72478217",
"0.72375983",
"0.723156",
"0.723156",
"0.72236377",
"0.7200147",
"0.7173416",
"0.7147093",
"0.7142137",
"0.71339417",
"0.71290773",
"0.71078074"... | 0.7722591 | 0 |
Delete a product from the store | def Es7s(QePW, nqn0):
Lx3t = Iofl(iGoL, pk=nqn0)
Lx3t.delete()
yEHD.success(QePW, 'Product deleted!')
return vKnz(gxEw('paintings')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(Mc9N):\n Lx3t = NMoC(Mc9N)\n NCls.session.delete(Lx3t)\n NCls.session.commit()",
"def wL2u(QePW, Mc9N):\n if not QePW.user.is_superuser:\n yEHD.error(QePW, 'Sorry, only store owners can do that.')\n return vKnz(gxEw('home'))\n Lx3t = Iofl(msfn, pk=Mc9N)\n Lx3t.delete()\n ... | [
"0.83055526",
"0.8085745",
"0.8052908",
"0.8027032",
"0.8021017",
"0.7918575",
"0.78619266",
"0.786019",
"0.78178996",
"0.77837086",
"0.7782625",
"0.77742875",
"0.77440405",
"0.77429307",
"0.76977885",
"0.76881593",
"0.7682733",
"0.7680423",
"0.7645175",
"0.76359785",
"0.7632... | 0.0 | -1 |
Performs beam search decoding on the logits given in input. Note The `ctc_greedy_decoder` is a special case of the `ctc_beam_search_decoder` with `top_paths=1` and `beam_width=1` (but that decoder is faster for this special case). If `merge_repeated` is `True`, merge repeated classes in the output beams. This means tha... | def hdSQ(g4y1, NXmX, MMph=100, KSy2=1, QIKv=False):
uDak, tyvq, rGF6, xmUr = LEmd.ctc_beam_search_decoder(g4y1, NXmX, beam_width=MMph, top_paths=KSy2, merge_repeated=QIKv)
return ([BtZX.SparseTensor(p6S0, wEf2, ROpF) for p6S0, wEf2, ROpF in zip(uDak, tyvq, rGF6)], xmUr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(YKHO, VXjJ, baHf, cb_Q, wvmV=kGPH):\n gQMo = []\n JinX = []\n eyqE = 0.0\n Q0a1 = {'indexes': [], 'score': 0}\n JinX.append(Q0a1)\n for YRbF in Ni9Y(wvmV + 1):\n QEsS = []\n if YRbF == 0:\n PF0Q, K43E = YKHO.get_probs_init(VXjJ, cb_Q)\n else:\n ... | [
"0.6332866",
"0.62084544",
"0.6059712",
"0.60486",
"0.5839195",
"0.58189964",
"0.57855314",
"0.56843686",
"0.56135213",
"0.560702",
"0.55877125",
"0.55868506",
"0.5557641",
"0.5537469",
"0.5502288",
"0.5478635",
"0.5464477",
"0.5396339",
"0.5373154",
"0.5366372",
"0.53611284"... | 0.6459056 | 0 |
Runs CTC loss algorithm on each batch element. | def uidV(Y8eF, aMgO, zk33, n5rq):
n5rq = qkSJ.to_int32(_WqI.squeeze(n5rq, axis=-1))
zk33 = qkSJ.to_int32(_WqI.squeeze(zk33, axis=-1))
QNzq = qkSJ.to_int32(K9kL(Y8eF, n5rq))
aMgO = qkSJ.log(_WqI.transpose(aMgO, perm=[1, 0, 2]) + _hZ2())
return _WqI.expand_dims(Cvms.ctc_loss(inputs=aMgO, labels=QNzq, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M66n(YKHO, Achr, wuFe, N77f):\n WKvO = oyIN.mean(wuFe, axis=0)\n amiz, MKlR, P6bq = YKHO._forwardprop(WKvO)\n tTpl = amiz - Achr\n j03P = oyIN.outer(MKlR, tTpl)\n Vvpu = oyIN.outer(WKvO, oyIN.dot(YKHO.w2, tTpl))\n YKHO.w1 += -YKHO.eta * Vvpu\n YKHO.w2 += -YKHO.eta * j03P\n N77f += -P6bq... | [
"0.60146296",
"0.5914053",
"0.5789755",
"0.57732964",
"0.57103866",
"0.57044107",
"0.5684566",
"0.5682964",
"0.56720865",
"0.5665692",
"0.5646834",
"0.56182873",
"0.5616597",
"0.5613566",
"0.55772924",
"0.55395335",
"0.55213",
"0.5518588",
"0.5516247",
"0.5490159",
"0.5477854... | 0.5790523 | 2 |
Get checkpoint directory path | def tiIF(bPTx=None, xtX7=None, S2kk=True):
if bPTx is None:
bPTx = nda9()
if xtX7 is None:
pkan = VuyW()
baHA = efUG()
fnyo = Tkx4()
jbXL = bPTx + Hy7s.path.sep + pkan + '_' + baHA + '_' + fnyo
bPTx = jbXL
else:
bPTx = Hy7s.path.join(bPTx, xtX7)
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hPQa(YKHO) -> GkAb:\n return GkAb(YKHO.config.canonical_copy().experiment_working_directory) / YKHO.id / 'checkpoint'",
"def tiIF(u262):\n return Hy7s.path.join(u262, 'checkpoints')",
"def tiIF():\n return Hy7s.path.join(_Fei.OUT_DIR, T9Pz)",
"def tiIF():\n return Hy7s.path.join(_Fei.OUT_DIR,... | [
"0.8901585",
"0.8737742",
"0.8652854",
"0.8652636",
"0.83049065",
"0.8241025",
"0.81091934",
"0.80394346",
"0.7749729",
"0.7726514",
"0.77236515",
"0.77195543",
"0.75466514",
"0.75464654",
"0.7538195",
"0.7406446",
"0.7197385",
"0.71822554",
"0.7154581",
"0.711396",
"0.710156... | 0.7203517 | 16 |
Collate `examples` into a batch, using the information in `tokenizer` for padding if necessary. | def RNWs(_73Q, b0j5, FIth: Optional[int]=None):
import numpy as oyIN
import torch
if isinstance(_73Q[0], (list, tuple, oyIN.ndarray)):
_73Q = [torch.tensor(tTpl, dtype=torch.long) for tTpl in _73Q]
HOR4 = _73Q[0].size(0)
OrWg = all((WKvO.size(0) == HOR4 for WKvO in _73Q))
if OrWg and (FI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Asyf(_73Q, b0j5, FIth: Optional[int]=None):\n if isinstance(_73Q[0], (list, tuple)):\n _73Q = [ht2j.tensor(tTpl, dtype=ht2j.long) for tTpl in _73Q]\n HOR4 = _73Q[0].size(0)\n OrWg = all((WKvO.size(0) == HOR4 for WKvO in _73Q))\n if OrWg and (FIth is None or HOR4 % FIth == 0):\n return... | [
"0.75282156",
"0.7521391",
"0.6982714",
"0.681079",
"0.67469895",
"0.6644889",
"0.66409385",
"0.6632159",
"0.6628237",
"0.6605552",
"0.6588459",
"0.65850264",
"0.65824705",
"0.65772974",
"0.65770775",
"0.65495557",
"0.6547382",
"0.6546376",
"0.65418977",
"0.65371674",
"0.6532... | 0.73735243 | 2 |
Turn a list of lists into a single list. | def gKI6(UHhk):
OFuV = []
for yv6U in YYDj(UHhk):
OFuV += yv6U
return OFuV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def svc5(UHhk):\n return list(Hs6x.chain.from_iterable(UHhk))",
"def MKPt(nwEZ):\n Aofo = []\n for LihS in nwEZ:\n Aofo.extend(LihS)\n return Aofo",
"def PWgb(nwEZ):\n return [WKvO for Uqbu in nwEZ for WKvO in Uqbu]",
"def j9D3(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]... | [
"0.82312983",
"0.8180838",
"0.81305623",
"0.8125041",
"0.8125041",
"0.8117948",
"0.8110244",
"0.8110244",
"0.8110244",
"0.8065069",
"0.8018784",
"0.8018011",
"0.7918166",
"0.7911394",
"0.7897661",
"0.7878553",
"0.7878553",
"0.7818665",
"0.77861655",
"0.77810043",
"0.776037",
... | 0.7041853 | 80 |
Split a file in parts and return a list of paths. | def oF9E(apum, SQ3m, LWY6='', srhD=False):
jLNG.log('Getting line count', 'debug')
_5qk = int(RE5x(apum) / int(SQ3m)) + 1
r9Hf = 0
dbhF = 1
ZI14 = '.split_' + str(dbhF).zfill(4) + '.' + apum.split('.')[-1]
gIsw = EeDH.path.basename(apum)
OYTZ = EeDH.path.join(LWY6, gIsw + ZI14)
SWeO = [O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rZbN(nUeQ):\n rKZV, mWFP = Hy7s.path.split(nUeQ)\n if rKZV:\n VWe_ = nUeQ[len(rKZV) - 1]\n if rKZV.startswith(VWe_):\n return nUeQ.split(VWe_)[1:]\n return nUeQ.split(VWe_)\n return [mWFP]",
"def Bbv3(VqRE):\n VqRE = VqRE.replace('/', VWe_)\n st_L = ZbWC.match(t... | [
"0.73186153",
"0.7262593",
"0.7187068",
"0.7146034",
"0.70393234",
"0.69693583",
"0.6906951",
"0.6883763",
"0.6868745",
"0.6852583",
"0.67909765",
"0.67753035",
"0.6750185",
"0.67478055",
"0.67478055",
"0.6736253",
"0.67229265",
"0.6713457",
"0.670417",
"0.6688939",
"0.668063... | 0.60301983 | 81 |
Get the portion of the input that has not yet been tokenized. | def bNp1(YKHO):
return YKHO.input[YKHO.pos:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bf2v(YKHO):\n return YKHO.input[:YKHO.pos]",
"def fzJl(YKHO, w2fL):\n or8S = YKHO._get_sent_index(w2fL)\n if or8S == 0:\n return None\n return YKHO._sentences[or8S - 1]",
"def z4o8(YKHO, Os4s):\n YRbF = YKHO._get_token_table()[Os4s][0]\n s2mk = YKHO._get_tokens()\n while s2mk[YR... | [
"0.67651004",
"0.62148356",
"0.6196902",
"0.61293066",
"0.609932",
"0.6015177",
"0.5995799",
"0.59865326",
"0.593441",
"0.593441",
"0.5885204",
"0.5848053",
"0.58436584",
"0.58156776",
"0.57910556",
"0.5731945",
"0.5731945",
"0.5721375",
"0.57212955",
"0.5715698",
"0.56882024... | 0.74640286 | 0 |
Thank you letter to donor | def mhvd(dgtG, Z5kt):
xrn5 = {'name': dgtG, 'donation_amount': Z5kt}
sZqf = '\nDear {name},\n\nThank you so much for your generous donation of ${donation_amount}! We will make sure it is put to good use.\n\nHighest regards,\nThe Charity'.format(**xrn5)
print(sZqf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kH9V(YKHO, UZsd, Z5kt):\n print(f'Thank you {UZsd} for donating {Z5kt} dollars generously.')\n return f'Thank you {UZsd} for donating {Z5kt} dollars generously.'",
"def kH9V(YKHO):\n CQCz = '\\nThank you {0:s} for you generous donation of ${1:.2f}.\\n'.format(YKHO.get_full_name(), round(YKHO.donatio... | [
"0.8066619",
"0.7890138",
"0.78613883",
"0.76781833",
"0.7665019",
"0.76184237",
"0.7436493",
"0.74230963",
"0.741892",
"0.73765856",
"0.73765856",
"0.7304563",
"0.7264299",
"0.72598535",
"0.72577655",
"0.7253853",
"0.7233509",
"0.7216671",
"0.71158075",
"0.7105368",
"0.70998... | 0.6653551 | 46 |
Get the costs of gas pipeline interconnection per kilometer. | def rmzJ(YKHO):
if YKHO.pipeline_costs_dict is not None:
G9jH.info(f'Using gas pipeline costs from user defined dictionary: {YKHO.pipeline_costs_dict}')
return YKHO.pipeline_costs_dict.get('gas_pipeline_cost')
if YKHO.pipeline_costs_file is not None:
eHNT = YKHO.pipeline_costs_file
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DcVX(YKHO):\n RV39 = 0\n for pOZw in YKHO.houses:\n u54L = len(pOZw.route.list_x) - 1\n RV39 = RV39 + u54L\n GMhT = RV39 * Tjob\n vXwv = len(YKHO.batteries) * itmw\n wjRY = GMhT + vXwv\n return wjRY",
"def kXRY(YKHO):\n pass",
"def sSN_(YKHO):\n return sum([YRbF.cost()... | [
"0.6570295",
"0.65484405",
"0.6448589",
"0.6425689",
"0.63862234",
"0.61554414",
"0.6151961",
"0.61349994",
"0.6126463",
"0.6126421",
"0.6116174",
"0.6110163",
"0.61062825",
"0.60652596",
"0.60627294",
"0.6061765",
"0.602541",
"0.6024768",
"0.59734255",
"0.5971847",
"0.596900... | 0.66883177 | 0 |
Uses cv2.inRange() to apply threshold | def pZpX(YKHO, bSqZ, TB5c, D94b):
CN9P = (bSqZ + YKHO.h_margin, TB5c[1], D94b + YKHO.v_margin)
LSh8 = (bSqZ - YKHO.h_margin, TB5c[0], D94b - YKHO.v_margin)
x8qO = XC5k.inRange(YKHO.cv_img_hsv, LSh8, CN9P)
YKHO.cv_img_filtered = x8qO
_9tk = XC5k.bitwise_and(YKHO.cv_img, YKHO.cv_img, mask=x8qO)
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZoxC(VXjJ, wKb9, ZxDD):\n return XC5k.inRange(VXjJ, wKb9, ZxDD)",
"def iXy4(input, Z5Q9, jlxe, pPPK):\n yvT9 = XC5k.cvtColor(input, XC5k.COLOR_BGR2RGB)\n return XC5k.inRange(yvT9, (Z5Q9[0], jlxe[0], pPPK[0]), (Z5Q9[1], jlxe[1], pPPK[1]))",
"def iXy4(input, Z5Q9, jlxe, pPPK):\n yvT9 = XC5k.cvtCo... | [
"0.7349575",
"0.7267687",
"0.7267687",
"0.70165306",
"0.6946743",
"0.6936352",
"0.68603134",
"0.68366337",
"0.68366337",
"0.68366337",
"0.68366337",
"0.68366337",
"0.68366337",
"0.68366337",
"0.6801365",
"0.6791164",
"0.6783374",
"0.67732614",
"0.6739776",
"0.66760135",
"0.66... | 0.6521288 | 32 |
If set, should be the resource type (canonical name) of the parent. Setting this for a plugin means that plugin cannot be initially indexed on its own, only as part of the parent indexing. | def u7Ya(Emd4):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4ys(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_resource_type')",
"def U4ys(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'parent_resource_type')",
"def U4ys(YKHO, Co34):\n if Co34 == 'device':\n return 'node'\n elif Co34 == 'flow' and YKHO.is04_utils.compare_api_version(YKHO.apis... | [
"0.745964",
"0.7410215",
"0.6150848",
"0.6115794",
"0.60992914",
"0.59915465",
"0.5877251",
"0.5855712",
"0.57888526",
"0.57888526",
"0.57770544",
"0.5762846",
"0.5762846",
"0.5762846",
"0.5762846",
"0.5738302",
"0.56794494",
"0.5668779",
"0.5662064",
"0.5656526",
"0.5656526"... | 0.7230366 | 2 |
Get name of the document type. | def CHL5(Emd4):
raise NotImplemented() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DKrT(YKHO):\n return YKHO._name",
"def OQrX(YKHO) -> str:\n ...",
"def XV9O(YKHO) -> str:\n return qe4Y.get(YKHO, 'document_type')",
"def XV9O(YKHO) -> str:\n return YKHO._document_type",
"def c0Mo(YKHO) -> QMSQ:\n ...",
"def DKrT():\n return NSDH",
"def mWFP(YKHO):\n return YK... | [
"0.821957",
"0.8026379",
"0.7921151",
"0.7840059",
"0.78131706",
"0.77073747",
"0.7649437",
"0.7625343",
"0.7608845",
"0.7589642",
"0.7500853",
"0.7468412",
"0.7418998",
"0.73764145",
"0.73427916",
"0.7309142",
"0.72843176",
"0.728336",
"0.7278971",
"0.72271323",
"0.7192805",... | 0.0 | -1 |
Checks if an advertisment is meant to be in the current playlist | def saiR(YKHO, LLmd):
yo7_ = qcWV.date.today()
LLmd = YKHO.ads[LLmd]
kepv = qcWV.datetime.strptime(LLmd['duration']['start'], '%Y-%m-%d').date()
if YKHO.weekdays[yo7_.weekday()] not in LLmd['duration']['days']:
return False
def jcGP(VOlW):
"""checks if a time is between certain inte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def snJn(GJPU):\n if len(x0hE.playlistsearch('file', GJPU['file'])) == 0:\n return False\n return True",
"def xXH8(NvAR):\n bD7m = NvAR.playlist_url\n OXwN = Ubgg(bD7m)\n if OXwN:\n G9jH.info(' New videos: %s from %s', OXwN, NvAR.playlist_name)\n for f6W2 in OXwN:\n ... | [
"0.68151194",
"0.62960196",
"0.6287624",
"0.6261627",
"0.6216268",
"0.6064548",
"0.60543203",
"0.59895635",
"0.5984067",
"0.5978782",
"0.5883032",
"0.58783484",
"0.58739936",
"0.5865038",
"0.58587784",
"0.5850065",
"0.58419913",
"0.5826898",
"0.5825052",
"0.5816735",
"0.58150... | 0.5432394 | 61 |
Reverses a string with recursion. | def mrck(KCHu):
print(KCHu[-1])
if len(KCHu) > 1:
return mrck(KCHu[:-1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gxEw(KCHu):\n pass",
"def Zke2(YKHO, KCHu: List[str]) -> None:\n YKHO.recursion(KCHu, 0, len(KCHu) - 1)",
"def Zlgv(KCHu: str) -> str:\n if KCHu == '':\n return KCHu\n else:\n return Zlgv(KCHu[1:]) + KCHu[0]\n pass",
"def o5Dc(vIwR):\n return vIwR[::-1]",
"def gxEw(KCHu)... | [
"0.80905735",
"0.7988801",
"0.7820441",
"0.7733122",
"0.7657366",
"0.7653851",
"0.7563738",
"0.75342005",
"0.7519276",
"0.74714845",
"0.74270976",
"0.7424096",
"0.7344829",
"0.73417175",
"0.73078823",
"0.7304452",
"0.72789556",
"0.722869",
"0.7219546",
"0.7183901",
"0.7173811... | 0.7360677 | 12 |
Initialize an AWS IAM Role object. | def FIMM(YKHO, mWFP, JBZA=None, zVa7=None, som_=(), kGLi=False):
super(PoDf, YKHO).__init__(name=mWFP)
YKHO._region = 'global'
LmAn = YKHO._exists_already()
YKHO._pre_existing = LmAn.exists
if LmAn.exists:
if any([JBZA, som_, kGLi, zVa7]):
raise iEBK('You specified parameters for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, LmAn):\n YKHO.role = LmAn",
"def FIMM(Ro_8, *, Tf5Y: Optional[Sequence['outputs.RoleResponse']]=None):\n if Tf5Y is not None:\n qe4Y.set(Ro_8, 'roles', Tf5Y)",
"def FIMM(Ro_8, kFeU: str, qIxc: RoleArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, *, Lm... | [
"0.6644111",
"0.66439897",
"0.66141886",
"0.6521579",
"0.64689153",
"0.6433133",
"0.64319444",
"0.6416005",
"0.6416005",
"0.6416005",
"0.6416005",
"0.6416005",
"0.6416005",
"0.6416005",
"0.6416005",
"0.6416005",
"0.6325659",
"0.6325659",
"0.63161093",
"0.6291133",
"0.62699115... | 0.7046474 | 0 |
Description of this IAM role | def JBZA(YKHO):
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role')",
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKH... | [
"0.7535639",
"0.7485227",
"0.7470474",
"0.7470474",
"0.7470474",
"0.7470474",
"0.7470474",
"0.7470474",
"0.7405598",
"0.73979807",
"0.73939157",
"0.73939157",
"0.73939157",
"0.73939157",
"0.73939157",
"0.73939157",
"0.73939157",
"0.73939157",
"0.7383566",
"0.7334966",
"0.7271... | 0.0 | -1 |
Service role on which this AWS IAM role is based. `service` will be one of ['ecstasks', 'batch', 'ec2', 'lambda', 'spotfleet'] | def zVa7(YKHO):
return YKHO._service | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnyq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_role')",
"def jnyq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_role')",
"def jnyq(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_role')",
"def jnyq(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_role')"... | [
"0.7491942",
"0.7491942",
"0.7206008",
"0.7206008",
"0.7020619",
"0.6960185",
"0.6792001",
"0.66841716",
"0.66841716",
"0.6650619",
"0.64724207",
"0.64297026",
"0.628921",
"0.60755587",
"0.6023444",
"0.5999554",
"0.5780421",
"0.577989",
"0.5728392",
"0.5697142",
"0.56940365",... | 0.0 | -1 |
Role policy document for this IAM role | def DgJt(YKHO):
return YKHO._role_policy_document | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x_IX(YKHO) -> ImMB:\n return qe4Y.get(YKHO, 'policy_document')",
"def x_IX(YKHO) -> qe4Y.Output[ImMB]:\n return qe4Y.get(YKHO, 'policy_document')",
"def LIu3(YKHO, LmAn: aws.iam.Role) -> None:\n xfXC.iam.RolePolicy(f'{LmAn._name}-reads-and-writes-{YKHO._name}', role=LmAn.name, policy=YKHO.arn.appl... | [
"0.67374516",
"0.66678447",
"0.66551614",
"0.6538594",
"0.6526803",
"0.6524494",
"0.6524494",
"0.6484113",
"0.6439695",
"0.6439695",
"0.6439695",
"0.6439695",
"0.6439695",
"0.6439695",
"0.6439695",
"0.6439695",
"0.6425139",
"0.63719714",
"0.63393265",
"0.63320386",
"0.6308677... | 0.78543043 | 0 |
Return ARN for attached instance profile if applicable Returns | def dR_r(YKHO):
if YKHO.clobbered:
raise ZD71('This batch job has already been clobbered.', YKHO.arn)
YKHO.check_profile()
geh0 = Onn9['iam'].list_instance_profiles_for_role(RoleName=YKHO.name)
if geh0.get('InstanceProfiles'):
hMqs = geh0.get('InstanceProfiles')[0]['Arn']
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qM_c(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'default_instance_profile_arn')",
"def qM_c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'default_instance_profile_arn')",
"def qM_c(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'default_instance_profile_arn')",
"def Bgf_(lz... | [
"0.6643393",
"0.662047",
"0.64864665",
"0.6362788",
"0.6325678",
"0.6169385",
"0.60506105",
"0.60487527",
"0.60487527",
"0.59885573",
"0.5983542",
"0.5983542",
"0.5983542",
"0.5983542",
"0.5983542",
"0.5983542",
"0.5983542",
"0.5983542",
"0.5983542",
"0.5983542",
"0.5983542",... | 0.7301688 | 0 |
Randomly jitter points. jittering is per point. | def D7fq(J1hN, WTkW=0.01, vJPk=0.05):
Fg_i, exwG, Z9rn = J1hN.shape
WLXc = oyIN.clip(WTkW * oyIN.random.randn(Fg_i, exwG, Z9rn), -1 * vJPk, vJPk)
WLXc += J1hN
return WLXc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHg_(YKHO, aM8h=1.0):\n for YFMp in YKHO.stars:\n YFMp.x += tuKI.uniform(-0.1, 0.1) * aM8h\n YFMp.y += tuKI.uniform(-0.1, 0.1) * aM8h",
"def bHg_(WKvO, Mkmy=0.1):\n return WKvO + oyIN.random.rand(*WKvO.shape) * oyIN.std(WKvO)[None, :] * Mkmy",
"def bHg_(VOlW, aM8h):\n return VOlW + V... | [
"0.75472695",
"0.7410611",
"0.7287109",
"0.694834",
"0.6911661",
"0.68838114",
"0.68357635",
"0.6556249",
"0.6437521",
"0.63828707",
"0.63305485",
"0.6319276",
"0.6313966",
"0.6290827",
"0.61949134",
"0.61942804",
"0.619288",
"0.6158329",
"0.6111379",
"0.6110583",
"0.6087599"... | 0.6109834 | 20 |
Make the dataloader using the given paths to pickled files Returns (WordsDataset, train_loader, val_loader) | def lpwo(KHdY, guGj, Ep8u, I7Gy, HXw9, begE, PurT):
tgCD = ycws(word2vec_file=KHdY, charidx_file=guGj, device=begE)
PurT.info('Loaded dataset')
wjRY = len(tgCD)
d1qL = int(wjRY * (1 - HXw9))
XTsY = wjRY - d1qL
PurT.info(f'Split dataset into {d1qL} train samples and {XTsY} validation samples'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t6HG(YKHO, *ckRy):\n SZFh = BfDw.get_transform(YKHO.image_size, YKHO.keep_central_fraction)\n gMbG = [nPrm.CocoImages(pmON, transform=SZFh) for pmON in ckRy]\n __n6 = nPrm.Composite(*gMbG)\n zQKy = ht2j.utils.data.DataLoader(__n6, batch_size=YKHO.batch_size, num_workers=YKHO.num_threads_to_use, shu... | [
"0.7017051",
"0.7006362",
"0.69869953",
"0.6940131",
"0.6909127",
"0.6904036",
"0.68524575",
"0.68414664",
"0.6831255",
"0.681921",
"0.6795789",
"0.67554784",
"0.6715304",
"0.67063624",
"0.6703",
"0.66967493",
"0.6662924",
"0.6651467",
"0.66261107",
"0.66066027",
"0.6593918",... | 0.6543948 | 28 |
Get attr from object. | def uXBY(YEnM, hGI9=None):
if YEnM is not None and hGI9 is not None and hasattr(YEnM, hGI9):
return getattr(YEnM, hGI9)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G7Ug(YKHO, YEnM, mWFP):\n hGI9 = YKHO.attr_names[mWFP]\n return getattr(YEnM, hGI9)",
"def G7Ug(YEnM, hkS8):\n try:\n return getattr(YEnM, hkS8)\n except AttributeError:\n return",
"def G7Ug(YKHO, YEnM, H5ew):\n if isinstance(YEnM, dict):\n return YEnM.get(H5ew)\n els... | [
"0.8478062",
"0.8450297",
"0.7993409",
"0.79754406",
"0.78794444",
"0.7875978",
"0.78537667",
"0.77935153",
"0.7789083",
"0.77889353",
"0.7631545",
"0.76233995",
"0.7603743",
"0.75987446",
"0.7588317",
"0.75567824",
"0.7549303",
"0.7549303",
"0.7525833",
"0.7493684",
"0.74675... | 0.77848077 | 10 |
Get the obj id. | def FPoe(YEnM):
return str(id(YEnM)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UVlm(YEnM):\n try:\n return YEnM.id\n except AttributeError:\n return int(YEnM)",
"def OyzV(YKHO):\n return YKHO._objID",
"def unpH(object):\n return object.id",
"def vDgp(YKHO, YEnM):\n if YEnM is None:\n id = 'None'\n else:\n id = YEnM.id\n return id",
... | [
"0.87546134",
"0.86830753",
"0.86366457",
"0.8628999",
"0.85620177",
"0.8469467",
"0.8341297",
"0.82232565",
"0.82232565",
"0.819925",
"0.81630445",
"0.81613773",
"0.81613773",
"0.81466013",
"0.8092128",
"0.8083891",
"0.8065771",
"0.8061151",
"0.8009829",
"0.79862165",
"0.797... | 0.8471767 | 5 |
Get the obj type. | def AHp3(YEnM):
bo34.debug('Get object type: %r', YEnM)
n0X3 = PBp2
if YEnM is None:
n0X3 = G_D9
elif isinstance(YEnM, SnBA.FunctionType) or type(YEnM).__name__ == 'cython_function_or_method':
n0X3 = jZkL
elif isinstance(YEnM, SnBA.MethodType):
n0X3 = OL2z
elif isinstance... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHp3(YKHO, YEnM):\n return str(YEnM.type)",
"def FRul(YEnM):\n return type(YEnM)",
"def MCYv(YEnM):\n return type(YEnM)",
"def i8q0(YKHO):\n return YKHO._ptr.contents.objtype",
"def vcaS(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_type')",
"def vcaS(YKHO):\n return YKHO._object_ty... | [
"0.86634386",
"0.85509396",
"0.8493306",
"0.8352141",
"0.8156436",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.8009757",
"0.7998753",
"0.7952939",
"0.7943843",
"0.78937227",
... | 0.7729152 | 23 |
Get the class instance detail type. | def B3qv(YEnM):
bo34.debug('Get the class type(%r)', YEnM)
if isinstance(YEnM, U78l.Cell):
return xp5w
if isinstance(YEnM, IPme.Primitive):
return ouMT
if isinstance(YEnM, XTiz.ndarray):
return NB8k
return KXb1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n return YKHO.detail_type",
"def _5sA(YKHO) -> str:\n return YKHO._detail_type",
"def FRul(Emd4):\n return Emd4.type",
"def yaSt(YKHO):\n return YKHO._instance.GetType",
"def FRul(Emd4):\n ...",
"def D3KC(YKHO):\n return YKHO._class_type",
"def DEXX(YKHO) -> str:\n ... | [
"0.76592195",
"0.75484204",
"0.7484469",
"0.7473819",
"0.746371",
"0.73971057",
"0.73012316",
"0.72840273",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",
"0.7227686",... | 0.0 | -1 |
Check if obj is ms_class object. | def DjqH(YEnM):
return hasattr(YEnM, '__ms_class__') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xl7j(YEnM):\n return isinstance(YEnM, (U78l.Cell, IPme.Primitive)) or DjqH(YEnM) or hasattr(YEnM, '__parse_method__')",
"def as9g(YEnM):\n return isinstance(YEnM, type)",
"def TiPX(YKHO, YEnM, KndY):\n return YEnM.type in KndY",
"def iU5b(YEnM):\n try:\n return as9g(YEnM)\n except E... | [
"0.81141967",
"0.80824757",
"0.799482",
"0.79004735",
"0.7895661",
"0.77038246",
"0.7590345",
"0.7590345",
"0.75663537",
"0.7508066",
"0.744788",
"0.740876",
"0.73509467",
"0.73123914",
"0.72237265",
"0.7135256",
"0.7135256",
"0.7117215",
"0.7117215",
"0.7117215",
"0.7117215"... | 0.89909536 | 0 |
Check if cls is a class type. | def niv3(Emd4):
return isinstance(Emd4, type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LJf3(Emd4):\n return as9g(Emd4)",
"def RQUV(YEnM):\n from types import ClassType\n return isinstance(object, (type, ClassType))",
"def as9g(YEnM):\n return isinstance(YEnM, type)",
"def LJf3(YKHO) -> bool:\n return tq_1.isclass(YKHO.obj)",
"def hnDn(YKHO, Emd4):\n PCpl = Emd4.get_name... | [
"0.8521229",
"0.78807557",
"0.7715855",
"0.75761664",
"0.74878573",
"0.74742615",
"0.7418716",
"0.7399443",
"0.7363609",
"0.73596656",
"0.7352201",
"0.73468673",
"0.73468673",
"0.73359364",
"0.73359364",
"0.73359364",
"0.73359364",
"0.73359364",
"0.73359364",
"0.73359364",
"0... | 0.8778756 | 0 |
Get the method or modified function of the class, excluding those inherited from parent class. | def RcKG(mWFP):
Emd4 = spE2.tensor
C9U5 = [H5ew for H5ew, BWXx in vars(Emd4).items() if isinstance(BWXx, property)]
if mWFP in C9U5:
return (getattr(Emd4, mWFP).fget, True)
na_E = [H5ew for H5ew, BWXx in vars(Emd4).items() if tq_1.isfunction(BWXx)]
if mWFP in na_E:
return (getattr(Em... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z1PO(YKHO):\n return YKHO.nonbondedMethod",
"def Z1PO(YKHO):\n return YKHO.nonbondedMethod",
"def Z1PO(YKHO):\n return YKHO.nonbondedMethod",
"def KOHU(YKHO):\n return [iked for iked in YKHO.getPublicMethods() if iked in YKHO.getClass().__dict__]",
"def YoLw(Emd4):\n na_E = []\n _wB4 ... | [
"0.67202884",
"0.67202884",
"0.67202884",
"0.6484353",
"0.6425518",
"0.635876",
"0.6342988",
"0.6319135",
"0.6278141",
"0.62621874",
"0.6198779",
"0.6198779",
"0.6134999",
"0.61194813",
"0.61010617",
"0.6098867",
"0.6088575",
"0.60647297",
"0.6057037",
"0.5966185",
"0.5922128... | 0.0 | -1 |
Convert C++ cootensor to mindspore cootensor. | def eZp7(nPrm):
return tg5W(coo_tensor=nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8Zu(vhpA, begE=0):\n return r7Z_(KuYZ(vhpA), begE)",
"def LgCM(ASQl: ArrayLike) -> mV7i:\n Kt_s = oet3(ASQl)\n znJs = Kt_s ** 2\n P6bq = (0.860117757 + 1.54118254 * 10 ** (-4) * Kt_s + 1.28641212 * 10 ** (-7) * znJs) / (1 + 8.42420235 * 10 ** (-4) * Kt_s + 7.08145163 * 10 ** (-7) * znJs)\n Ty... | [
"0.5901537",
"0.53149724",
"0.526609",
"0.52576596",
"0.5192858",
"0.51269317",
"0.5122568",
"0.511702",
"0.5058966",
"0.5021715",
"0.49998474",
"0.49773002",
"0.49522814",
"0.4925511",
"0.4925511",
"0.49189594",
"0.49143302",
"0.49135768",
"0.48891366",
"0.48811162",
"0.4875... | 0.6147618 | 0 |
Get the ast type. | def YEDF(Q6kx):
sq9v = tN1K
if isinstance(Q6kx, jZ4I.And):
sq9v = jsP5
elif isinstance(Q6kx, jZ4I.Or):
sq9v = YmmP
elif isinstance(Q6kx, jZ4I.Name):
sq9v = md9i
elif isinstance(Q6kx, jZ4I.Tuple):
sq9v = RWRX
elif isinstance(Q6kx, jZ4I.List):
sq9v = sBCi
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n if not hasattr(YKHO, '_type'):\n YKHO._type = YKHO.NodeType.fromASTClass(YKHO.astNode.__class__)\n return YKHO._type",
"def type(YKHO) -> xbjt:\n return YKHO.__type",
"def FRul(YKHO):\n return YKHO.__node_type",
"def cLpU(YKHO):\n UxQk = YKHO.__tokens[YKHO.__i]\n re... | [
"0.8094171",
"0.71489215",
"0.7122046",
"0.69847906",
"0.6889278",
"0.6887316",
"0.6876793",
"0.6800689",
"0.6795616",
"0.67893314",
"0.672682",
"0.67238057",
"0.6701504",
"0.67008144",
"0.66890395",
"0.6651522",
"0.6647653",
"0.6647653",
"0.6638968",
"0.66298354",
"0.6629835... | 0.7651336 | 1 |
Get the path of the top level package of the current working directory. | def rtGa(YKHO, MJH2):
PNpE = Hy7s.path.abspath(MJH2)
YWc_ = Hy7s.path.abspath(Hy7s.path.dirname(PNpE))
if PNpE == YWc_:
return PNpE
AlaX = Hy7s.path.join(YWc_, '__init__.py')
if Hy7s.path.isfile(AlaX):
PNpE = YKHO.get_top_level_module_path(YWc_)
return PNpE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TIin():\n return Hy7s.path.normpath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..'))",
"def Cui_():\n Ux0P = SC2F(gzes(mkE9(), '*', aPr_(xAKo)))[0]\n return TLI7(Ux0P)",
"def xfst(YKHO):\n return YKHO.path.parents[len(YKHO.fqn) - 1]",
"def BnGv():\n zOGz = Hy7s.path.dirname(xAKo)\n return... | [
"0.7932984",
"0.7919093",
"0.7835297",
"0.78085226",
"0.7804066",
"0.74955994",
"0.7428643",
"0.73286337",
"0.7302377",
"0.7302377",
"0.72996575",
"0.7244592",
"0.715175",
"0.7128697",
"0.7064266",
"0.7026463",
"0.6984032",
"0.6970128",
"0.69244665",
"0.6904218",
"0.68774945"... | 0.67189485 | 34 |
Sets the business_name of this CompanyRegistered. | def dPMJ(YKHO, dPMJ):
YKHO._business_name = dPMJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u8qZ(YKHO, u8qZ):\n YKHO._company_name = u8qZ",
"def u8qZ(YKHO, u8qZ):\n YKHO._company_name = u8qZ",
"def tSCC(YKHO, u8qZ):\n YKHO.company_name.add(u8qZ)",
"def yI4I(YKHO, yI4I: str):\n YKHO._companyname = yI4I",
"def psb1(YKHO, psb1):\n YKHO._bill_company_name = psb1",
"def _U6u(YKHO,... | [
"0.6962177",
"0.6962177",
"0.68663746",
"0.68644065",
"0.6640741",
"0.6640044",
"0.6611081",
"0.65649176",
"0.65649176",
"0.65649176",
"0.6414275",
"0.641214",
"0.6370965",
"0.6138173",
"0.5922265",
"0.5807977",
"0.5758768",
"0.57361907",
"0.57322675",
"0.57082945",
"0.566775... | 0.85761505 | 0 |
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.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 60 |
Return the first item in the `iterable` that satisfies the `condition`. If the condition is not given, returns the first item of the iterable. Raises `StopIteration` if no item satisfying the condition is found. | def cntZ(OxJJ, XEri=lambda WKvO: True):
return next((WKvO for WKvO in OxJJ if XEri(WKvO))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(OxJJ, XEri=lambda WKvO: True):\n return next((WKvO for WKvO in OxJJ if XEri(WKvO)))",
"def g8tW(OxJJ, XEri=lambda WKvO: True):\n return next((WKvO for WKvO in OxJJ if XEri(WKvO)))",
"def cntZ(lgNN, OxJJ):\n return next(filter(lgNN, OxJJ), None)",
"def lIPo(aWuw: Iterable, XEri: Callable[[],... | [
"0.82112473",
"0.8193025",
"0.71711695",
"0.7141783",
"0.7030935",
"0.69943506",
"0.69100904",
"0.68875533",
"0.6844382",
"0.6798615",
"0.6736604",
"0.67232895",
"0.6689859",
"0.6689859",
"0.66388613",
"0.6486458",
"0.64823616",
"0.6452292",
"0.64501715",
"0.6395418",
"0.6314... | 0.822995 | 0 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.7155487 | 24 |
Get the size of the component. | def R8e4(YKHO):
zNig = 0.01
for oeNL in YKHO.apos:
Csk6 = iArr.getDistance(YKHO.pos['root'], oeNL)
zNig = max(zNig, Csk6)
zNig = max(zNig, 0.01)
return zNig | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8e4():\n return YKHO.size",
"def R8e4(YKHO):\n return YKHO.size",
"def jiw9(YKHO):\n return float(YKHO.__props.size[0])",
"def R8e4(YKHO):\n return YKHO.size",
"def R8e4(YKHO):\n return YKHO.size",
"def R8e4(YKHO):\n return YKHO.size",
"def R8e4(YKHO):\n return YKHO.size",
"... | [
"0.81918955",
"0.8185413",
"0.81657416",
"0.8155421",
"0.8155421",
"0.8155421",
"0.8155421",
"0.8155421",
"0.8155421",
"0.81181467",
"0.81113845",
"0.8110985",
"0.8103522",
"0.81023234",
"0.81016374",
"0.81016374",
"0.80846137",
"0.80715984",
"0.8043984",
"0.8043984",
"0.8043... | 0.0 | -1 |
Attempt an unauthenticated post request to "/api/tasks/" url. | def ap14(YKHO):
bD7m = gxEw('task-list')
geh0 = YKHO.client.post(bD7m)
YKHO.assertTrue('Authentication credentials were not provided' in geh0.data.get('detail'))
YKHO.assertEqual(geh0.status_code, 403)
YKHO.assertEqual(geh0.status_text, 'Forbidden') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTsT(YKHO):\n YKHO.assertEqual(o2Vr.objects.count(), 2)\n nPrm = {'title': 'New Task', 'current': True, 'done': False, 'routine': True}\n geh0 = YKHO.api_client.post(YKHO.get_task_list_uri(), data=nPrm)\n YKHO.assertHttpUnauthorized(geh0)\n YKHO.assertEqual(o2Vr.objects.count(), 2)",
"def amhd... | [
"0.7320231",
"0.6906283",
"0.6777005",
"0.67234904",
"0.6600624",
"0.65977055",
"0.6512918",
"0.6512918",
"0.6512918",
"0.63307375",
"0.6307554",
"0.6297505",
"0.625829",
"0.625829",
"0.625829",
"0.625829",
"0.625829",
"0.625829",
"0.625829",
"0.6253867",
"0.62486523",
"0.6... | 0.7330809 | 0 |
Tests that nn.shallow._initialize_parameters() sets the bias vectors to zero vectors. | def AXJx():
ZuM2 = oyIN.random.randint(10) + 1
jOu6 = oyIN.random.randint(10) + 1
eV2A = oyIN.random.randint(10) + 1
NArs = AZra._initialize_parameters(ZuM2, jOu6, eV2A)
assert oyIN.count_nonzero(NArs['b1']) == 0
assert oyIN.count_nonzero(NArs['b2']) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0Ko(YKHO):\n if YKHO.use_bias:\n DbxN.constant(YKHO.bias_i.data, val=0)\n DbxN.constant(YKHO.bias_f.data, val=0)\n DbxN.constant(YKHO.bias_o.data, val=0)\n DbxN.constant(YKHO.bias_c.data, val=0)",
"def Q0Ko(YKHO):\n if YKHO.weight is not None:\n DbxN.xavier_uniform_(... | [
"0.76915514",
"0.75023466",
"0.73030525",
"0.72829676",
"0.71513027",
"0.71513027",
"0.71406037",
"0.708665",
"0.7044987",
"0.70336795",
"0.6967319",
"0.6967319",
"0.6884558",
"0.6878955",
"0.68763065",
"0.68620783",
"0.68620783",
"0.68330973",
"0.68330973",
"0.6825122",
"0.6... | 0.8390224 | 0 |
Generates random points on a sphere of radius R | def yhSg(O9N6, CkYf=1, yokr=None):
if yokr != None:
oyIN.random.seed(yokr)
IrOQ = oyIN.random.rand(O9N6)
KoVS = oyIN.random.rand(O9N6)
q7In = oyIN.arccos(2 * IrOQ - 1)
rVnq = 2 * oyIN.pi * KoVS
WKvO = oyIN.sin(q7In) * oyIN.cos(rVnq)
LVAh = oyIN.sin(q7In) * oyIN.sin(rVnq)
epBp = o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDZP():\n\n def NkkI(Ty9i):\n CkYf = XTiz.linalg.norm(Ty9i)\n if CkYf == 0:\n return Ty9i\n else:\n return Ty9i / CkYf\n Ty9i = XTiz.zeros(3)\n for YRbF in range(3):\n G1Hx = 15\n XTiz.random.seed()\n H6nk = XTiz.random.standard_normal(si... | [
"0.83337766",
"0.814",
"0.81306046",
"0.7960025",
"0.78130853",
"0.78000015",
"0.7628949",
"0.76254874",
"0.7613121",
"0.75936675",
"0.7570438",
"0.7528802",
"0.75002164",
"0.7402651",
"0.7349777",
"0.73133755",
"0.73114425",
"0.72708887",
"0.72670275",
"0.7213443",
"0.718850... | 0.70895046 | 22 |
Generates a random rotation matrix, which transforms a given 3D position vector to a random position on the sphere. | def OzeQ(q7In=None, rVnq=None, Cwt5=None, he6J=[]):
IrOQ = oyIN.random.rand()
KoVS = oyIN.random.rand()
if rVnq == None:
rVnq = oyIN.arccos(2 * IrOQ - 1)
if q7In == None:
q7In = 2 * oyIN.pi * KoVS
if len(he6J) == 0:
WKvO = oyIN.sin(q7In) * oyIN.cos(rVnq)
LVAh = oyIN.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXjP():\n NGaL = OACi()\n Ogf4 = OACi()\n GaP8 = OACi()\n sIwI = OACi()\n T_P4 = (vP2v(NGaL) ^ vP2v(Ogf4) ^ vP2v(GaP8) ^ vP2v(sIwI)).normal()\n return T_P4",
"def qpTm(Zfxe=1.0, YeCt=None):\n if YeCt is None:\n YeCt = oyIN.random.uniform(size=(3,))\n q7In, rVnq, epBp = YeCt\n ... | [
"0.7541908",
"0.74838597",
"0.7440324",
"0.7401605",
"0.73998594",
"0.73900104",
"0.7386916",
"0.73683333",
"0.7358529",
"0.7304963",
"0.72898",
"0.72898",
"0.72678554",
"0.7259361",
"0.72568905",
"0.72350496",
"0.70782197",
"0.7066626",
"0.7049268",
"0.70359397",
"0.7010204"... | 0.62831694 | 44 |
Returns a list of the imported module plus all submodules. | def OYDR(LCet):
sEa6 = eIjM(LCet)
return tMlR(sEa6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Arw7():\n return I0xh.__modules",
"def d89C(YKHO):\n return YKHO.modules",
"def db67(YKHO):\n return []",
"def Ohzq(YKHO) -> list['Module']:\n if not YKHO.is_package:\n return []\n if WkRm(YKHO.obj, '__all__', False):\n return [VlDb for VlDb in YKHO.members.values() if isinst... | [
"0.77714175",
"0.77643",
"0.7758471",
"0.7555824",
"0.7474386",
"0.74575734",
"0.745726",
"0.7434694",
"0.7413101",
"0.73913544",
"0.7364557",
"0.73638463",
"0.73545545",
"0.7347455",
"0.73314756",
"0.73314756",
"0.73144484",
"0.7298195",
"0.729674",
"0.728812",
"0.72795516",... | 0.66852117 | 65 |
Reshapes any 1D np array with shape (N,) to (1,N). | def q3V_(nPrm):
return nPrm.reshape(1, nPrm.shape[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q3V_(ezWE):\n ezWE = oyIN.moveaxis(ezWE, 0, -1)\n ezWE = oyIN.squeeze(ezWE)\n return ezWE",
"def q3V_(jzdc, ROpF):\n return jzdc.reshape(ROpF)",
"def twRk(ezWE, qC1Y, jDK_):\n if ezWE.ndim != 1:\n raise ValueError('expected a 1d array')\n if jDK_ < -qC1Y or jDK_ > qC1Y - 1:\n ... | [
"0.7489373",
"0.71335995",
"0.7128563",
"0.6959911",
"0.6920035",
"0.6909335",
"0.6842124",
"0.66951334",
"0.66746837",
"0.667025",
"0.6653183",
"0.66374654",
"0.6634819",
"0.6634525",
"0.6601691",
"0.65858805",
"0.65711874",
"0.6559865",
"0.6559865",
"0.655477",
"0.65384287"... | 0.7100231 | 3 |
Transform a unit quaternion into its corresponding rotation matrix (to be applied on the right side). | def qiM5(vexM):
WKvO, LVAh, epBp, yzQ0 = vexM
yjMy = 2 * WKvO * WKvO
YvNL = 2 * LVAh * LVAh
CyjD = 2 * epBp * epBp
n8rh = 2 * WKvO * LVAh
bxgg = 2 * yzQ0 * epBp
gxoQ = 2 * epBp * WKvO
xQlz = 2 * yzQ0 * LVAh
meEN = 2 * LVAh * epBp
tQe1 = 2 * yzQ0 * WKvO
zNiy = oyIN.empty((3, 3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ceWJ(YKHO):\n WKvO, LVAh, epBp, yzQ0 = YKHO.q\n yjMy = 2 * WKvO * WKvO\n YvNL = 2 * LVAh * LVAh\n CyjD = 2 * epBp * epBp\n n8rh = 2 * WKvO * LVAh\n bxgg = 2 * yzQ0 * epBp\n gxoQ = 2 * epBp * WKvO\n xQlz = 2 * yzQ0 * LVAh\n meEN = 2 * LVAh * epBp\n tQe1 = 2 * yzQ0 * WKvO\n zNiy ... | [
"0.7635056",
"0.76260996",
"0.74965304",
"0.74875265",
"0.7472029",
"0.7351526",
"0.7335777",
"0.7335275",
"0.73304296",
"0.7306964",
"0.7277872",
"0.72553325",
"0.72543156",
"0.7239252",
"0.722871",
"0.7223673",
"0.71847975",
"0.7182182",
"0.7181428",
"0.7175232",
"0.7143290... | 0.7339313 | 6 |
returns player id of player coming in to the game | def agMb(YKHO):
return YKHO.player2_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LZbL(YKHO):\n return YKHO.playerID",
"def LZbL(YKHO):\n return YKHO._id",
"def nAM4(YKHO) -> int:\n return YKHO.player",
"def yztK(oyg0):\n return mVZ4.query.filter_by(username=oyg0).first().id",
"def unpH(zGr4=True):\n if zGr4:\n BLzc()\n return YmdA.player.player_id()",
"de... | [
"0.7957934",
"0.7864495",
"0.7634217",
"0.7573429",
"0.7464709",
"0.74419236",
"0.7364942",
"0.73640585",
"0.7304171",
"0.71902984",
"0.7170283",
"0.71495324",
"0.71236396",
"0.7041726",
"0.70134276",
"0.69950867",
"0.69950867",
"0.69669116",
"0.6963654",
"0.69533086",
"0.693... | 0.78280246 | 2 |
r"""|coro| Gets the member's player object. | async def get_player(YKHO):
return YKHO._hypixel.get_player(YKHO.uuid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nAM4(YKHO):\n return YKHO.player",
"def nAM4(YKHO):\n return YKHO.player",
"def nAM4(YKHO):\n return YKHO._player",
"def nAM4(YKHO):\n return YKHO._player",
"def nAM4(YKHO):\n return YKHO._player",
"def nAM4(YKHO):\n return YKHO._player",
"def nAM4(YKHO):\n return YKHO._player"... | [
"0.80069554",
"0.80069554",
"0.7975526",
"0.7975526",
"0.7975526",
"0.7975526",
"0.7975526",
"0.7804269",
"0.7804269",
"0.7804269",
"0.78027165",
"0.77350956",
"0.7692403",
"0.7669063",
"0.7557335",
"0.75471485",
"0.75136685",
"0.74972844",
"0.74606776",
"0.7417166",
"0.74020... | 0.7675643 | 13 |
returns True with valid email, else False | def WIr9(D3lj: str) -> bool:
FmRw = '[A-Z0-9._+\\-ÄÖÜ]+@[A-Z0-9.\\-ÄÖÜ]+\\.[A-ZÄÖÜ]{2,}'
return bool(ZbWC.fullmatch(FmRw, D3lj, flags=ZbWC.IGNORECASE)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCPN(D3lj):\n return Bt7w(D3lj)",
"def SGVO(YKHO):\n return jneN.match(YKHO.person.get_email())",
"def xxbx(D3lj):\n return True if jneN.match(D3lj) else False",
"def xzCw(YKHO, D3lj):\n SGVO = ZbWC.search('[\\\\w.-]+@[\\\\w.-]+.\\\\w+', D3lj)\n if SGVO:\n return True\n return Fa... | [
"0.8621196",
"0.8612595",
"0.8591516",
"0.85877216",
"0.84735096",
"0.84061205",
"0.8366657",
"0.83630306",
"0.8331044",
"0.83108294",
"0.8245362",
"0.824006",
"0.821383",
"0.8199999",
"0.811224",
"0.80704993",
"0.80665535",
"0.8025781",
"0.80202943",
"0.8019011",
"0.8016289"... | 0.7802844 | 43 |
This method initializes the TrajectoryBuilder using a starting state s0. | def FIMM(YKHO, id, sEAN, Esro):
YKHO.id = id
YKHO._trajectory = None
YKHO.env = sEAN
YKHO.reset(Esro) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n sQC5.loginfo('Initialization of ' + YKHO.get_name() + ' state')\n wsRa.State.__init__(YKHO, outcomes=['succeeded', 'preempted', 'aborted'], input_keys=['landmark_to_point', 'human_look_at_point', 'route_2_shop_wo_sign', 'goal_frame', 'person_frame', 'persona', 'signpost', 'target_frame'])\n... | [
"0.6790078",
"0.6722652",
"0.6710011",
"0.6656077",
"0.6621981",
"0.65794986",
"0.64547664",
"0.6443176",
"0.64311564",
"0.637914",
"0.6369622",
"0.63574564",
"0.63572776",
"0.63214093",
"0.6264604",
"0.62541914",
"0.6227565",
"0.6185354",
"0.61493963",
"0.6146915",
"0.613036... | 0.67956483 | 0 |
Initialize the ActiveLogisticRegression object. | def FIMM(YKHO, B_3S=None, GPtr=None, PJWX=True, I1xe=GkAb('./results/stats.pkl'), aCqS=None, HNWp='Logistic_Regression', ZGE9='Logistic_Regression'):
super().__init__(amine=B_3S, config=GPtr, verbose=PJWX, stats_path=I1xe, result_dict=aCqS, classifier_name=HNWp, model_name=ZGE9)
if GPtr:
YKHO.model = T8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wySM():\n from sklearn.linear_model import LogisticRegression\n return LogisticRegression(penalty='l1', solver='liblinear', class_weight='balanced', random_state=1)",
"def FIMM(YKHO):\n YKHO.model = T8WO(solver='liblinear', C=1, penalty='l2')",
"def FIMM(YKHO, Z5wO, lTuX):\n YKHO.X_test = Z5wO\... | [
"0.8357596",
"0.7951386",
"0.7507149",
"0.7150251",
"0.7115897",
"0.6974442",
"0.6851566",
"0.6832229",
"0.6814778",
"0.6677723",
"0.6590596",
"0.65268844",
"0.65244013",
"0.6494036",
"0.6486116",
"0.6473929",
"0.64086956",
"0.6380184",
"0.63556427",
"0.6344928",
"0.63402885"... | 0.65875685 | 11 |
Convert value to PostgreSQL SQL statement string format | def uQxA(BWXx):
SLLj = type(BWXx).__name__
if 'bool' in SLLj:
Myez = str(BWXx)
elif 'float' in SLLj or 'int' in SLLj:
Myez = str(BWXx)
if Myez == 'nan':
Myez = 'null'
elif 'str' in SLLj or 'Timestamp' in SLLj or 'object' in SLLj:
if BWXx == 'None':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xHJC(BWXx) -> str:\n if isinstance(BWXx, int):\n return str(BWXx)\n return f'\"{str(BWXx)}\"'",
"def LNoi(YKHO, BWXx):\n if isinstance(BWXx, int):\n return '%s' % BWXx\n else:\n return \"'%s'\" % BWXx",
"def qfk1(M7Pe):\n return str(M7Pe.compile(dialect=gXSq, compile_kwa... | [
"0.7567995",
"0.7111817",
"0.7041175",
"0.6941985",
"0.68902165",
"0.68587893",
"0.68279755",
"0.6823162",
"0.6775183",
"0.673245",
"0.6633258",
"0.649909",
"0.6445431",
"0.64333135",
"0.6429121",
"0.6408843",
"0.63907546",
"0.63804007",
"0.63069767",
"0.63065684",
"0.6304853... | 0.75124884 | 1 |
Transform momentum to the basis of reciprocal lattice vectors. | def S6aZ(G1Hx):
tjUW = oyIN.array(maau.prim_vecs).T
k0lF = tjUW.dot(oyIN.linalg.inv(tjUW.T.dot(tjUW)))
return oyIN.linalg.solve(k0lF, G1Hx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTRM(YKHO, *qIxc):\n if YKHO.scale_reciprocal_vectors:\n NXpY = YKHO.wl\n else:\n NXpY = None\n if YKHO.ubcalc.UB is None:\n oVTz = oyIN.zeros((3, 3))\n else:\n oVTz = YKHO.ubcalc.UB\n F_On.set_reciprocal_lattice(oVTz, wl=NXpY)",
"def zn0E(YKHO) -> 'unsigned long lo... | [
"0.622021",
"0.59352773",
"0.5876267",
"0.587625",
"0.587591",
"0.5864399",
"0.5862789",
"0.5843723",
"0.5840569",
"0.5838632",
"0.5815977",
"0.5808423",
"0.58049566",
"0.5790037",
"0.57578933",
"0.5736506",
"0.5708034",
"0.56819075",
"0.5680188",
"0.56794024",
"0.56776506",
... | 0.5928815 | 2 |
Return the device associated with this event. For device added/removed events this is the device added or removed. For all other device events, this is the device that generated the event. | def VeaS(YKHO):
DZYM = YKHO._libinput.libinput_event_get_device(YKHO._handle)
return I0uW(DZYM, YKHO._libinput) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VeaS(YKHO):\n return YKHO._device",
"def begE(YKHO):\n YfpN = YKHO.devices\n if not YfpN:\n return None\n return YfpN[0]",
"def begE(YKHO):\n return YKHO._impl.device",
"def VeaS(YKHO):\n if YKHO.dev_id is not None:\n return YKHO.dev_id\n else:\n return False",
... | [
"0.7893541",
"0.77034134",
"0.76791275",
"0.76559746",
"0.7642573",
"0.7642573",
"0.76088053",
"0.76088053",
"0.7554835",
"0.7554835",
"0.75496083",
"0.746471",
"0.7450862",
"0.744517",
"0.73484665",
"0.7346723",
"0.73429847",
"0.73192465",
"0.7282605",
"0.71816826",
"0.71785... | 0.7669891 | 3 |
Return the current absolute x coordinate of the touch event, transformed to screen coordinates. | def KKaC(YKHO, TVTK):
return YKHO._libinput.libinput_event_touch_get_x_transformed(YKHO._handle, TVTK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nIKw(YKHO):\n return YKHO._libinput.libinput_event_touch_get_x(YKHO._handle)",
"def jGKt(d6pt: int) -> float:\n pass",
"def HN1I(YKHO):\n return YKHO._libinput.libinput_event_pointer_get_absolute_x(YKHO._handle)",
"def xjAw(d6pt: int) -> float:\n pass",
"def je_f(YKHO, mid1: float) -> float... | [
"0.84445506",
"0.7583406",
"0.7545905",
"0.73949844",
"0.73713744",
"0.72761047",
"0.7144775",
"0.71372765",
"0.71313334",
"0.712817",
"0.71241707",
"0.7116545",
"0.70843375",
"0.70843375",
"0.7073039",
"0.703496",
"0.7033899",
"0.6991008",
"0.697415",
"0.6925126",
"0.6920011... | 0.71411467 | 7 |
Return the number of fingers used for a gesture. This can be used e.g. to differentiate between 3 or 4 finger swipes. This method can be called on all gesture events and the returned finger count value will not change during a sequence. | def lPwu(YKHO):
return YKHO._libinput.libinput_event_gesture_get_finger_count(YKHO._handle) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SYp5(hNQb):\n return sum((hgG_(SUQZ) for SUQZ in hNQb.values()))",
"def cs6V(YKHO):\n return YKHO._libinput.libinput_device_config_tap_get_finger_count(YKHO._handle)",
"def cR7J(YKHO):\n XI9t, TOBq = YKHO._check_geometry_engine()\n if isinstance(YKHO, ltXn):\n return 4\n elif XI9t:\n ... | [
"0.7263962",
"0.68667156",
"0.59446675",
"0.59195304",
"0.58408064",
"0.5777458",
"0.57435447",
"0.5706343",
"0.5690764",
"0.5656622",
"0.5635758",
"0.5619388",
"0.5618999",
"0.5606017",
"0.559327",
"0.55858344",
"0.5578992",
"0.55588156",
"0.5553306",
"0.55170083",
"0.549505... | 0.8491138 | 0 |
Check if the y axis was updated in this event. For events that are not of type | def CRf3(YKHO):
return YKHO._libinput.libinput_event_tablet_tool_y_has_changed(YKHO._handle) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F7cm(YKHO):\n return YKHO._libinput.libinput_event_tablet_tool_tilt_y_has_changed(YKHO._handle)",
"def A8wH(YKHO):\n vhEE = YKHO.prsnt.max_y\n U8q3 = YKHO.prsnt.min_y\n if U8q3 == '-' or vhEE == '-':\n return\n if U8q3 > vhEE:\n YKHO.prsnt.set_background_color(YKHO.prsnt.y_axis_m... | [
"0.67033905",
"0.6366425",
"0.6300528",
"0.6270568",
"0.6252506",
"0.6170513",
"0.6108968",
"0.60928655",
"0.60851294",
"0.60277504",
"0.5998107",
"0.59840065",
"0.5977186",
"0.59673065",
"0.59420764",
"0.5933204",
"0.59268415",
"0.590242",
"0.590041",
"0.58428633",
"0.584286... | 0.74027306 | 0 |
Returns the current pressure being applied on the tool in use, normalized to the range [0, 1]. If this axis does not exist on the current tool, this method returns 0. | def MLFu(YKHO):
return YKHO._libinput.libinput_event_tablet_tool_get_pressure(YKHO._handle) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJ2p(YKHO):\n return YKHO._pressure",
"def CJ2p(YKHO):\n return YKHO._pressure",
"def CJ2p(YKHO):\n return YKHO._pressure",
"def CJ2p(YKHO):\n return YKHO._pressure",
"def CJ2p(YKHO):\n return YKHO.pressure_and_temperature[1]",
"def CJ2p(YKHO):\n Q_mI = YKHO.energy() - 0.5 * YKHO.mo... | [
"0.7512627",
"0.7512627",
"0.7512627",
"0.7512627",
"0.74142057",
"0.7400212",
"0.739902",
"0.73950905",
"0.7284358",
"0.7233314",
"0.7215884",
"0.7196742",
"0.7183911",
"0.7153224",
"0.706036",
"0.69960546",
"0.6962126",
"0.69169736",
"0.68362135",
"0.6832121",
"0.68185675",... | 0.70786995 | 14 |
Returns the current position of the slider on the tool, normalized to the range [1, 1]. The logical zero is the neutral position of the slider, or the logical center of the axis. This axis is available on e.g. the Wacom Airbrush. If this axis does not exist on the current tool, this method returns 0. | def F5Hb(YKHO):
return YKHO._libinput.libinput_event_tablet_tool_get_slider_position(YKHO._handle) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mx5l(YKHO) -> float:\n return (YKHO.slider_rect.centerx - 10) / 180",
"def rJTo(YKHO, WKvO):\n oeNL = (WKvO - YKHO.slider_x) / (YKHO.canv_W - 2 * YKHO.slider_x)\n if oeNL < 0:\n return 0\n elif oeNL > 1:\n return 1\n else:\n return oeNL",
"def vAgg(YKHO):\n return YKH... | [
"0.7190142",
"0.70990455",
"0.70219946",
"0.68888223",
"0.68686366",
"0.68036854",
"0.67914605",
"0.67298776",
"0.67271173",
"0.671782",
"0.6706003",
"0.67015946",
"0.67004144",
"0.6699286",
"0.6630186",
"0.66016227",
"0.65880936",
"0.65844476",
"0.65814126",
"0.6561635",
"0.... | 0.7141558 | 1 |
Initializes the label extractor. | def FIMM(YKHO, xAU6):
YKHO._options = xAU6
YKHO._classes = None
YKHO._num_classes = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.patient_label_hash = YKHO.create_patient_label_hash()\n YKHO.label_to_num_hash = YKHO.label_to_num_hash()\n YKHO.num_to_label_hash = YKHO.num_to_label_hash()\n YKHO.files = YKHO.get_files()\n YKHO.num_labels = YKHO.get_num_labels()\n YKHO.labels = YKHO.get_labels()",
"def... | [
"0.69750094",
"0.6701388",
"0.6627239",
"0.6611582",
"0.6567066",
"0.65491146",
"0.650476",
"0.6496104",
"0.64668715",
"0.6462511",
"0.6418624",
"0.6418492",
"0.64049655",
"0.64049655",
"0.63016015",
"0.63011307",
"0.62938106",
"0.62938106",
"0.6257239",
"0.6256731",
"0.62452... | 0.0 | -1 |
Initializes the label extractor. | def FIMM(YKHO, xAU6):
super(vj4J, YKHO).__init__(xAU6)
with ZylS.gfile.GFile(xAU6.label_file, 'r') as hOYR:
YKHO._classes = [zFiD.strip('\n') for zFiD in hOYR.readlines()]
YKHO._num_classes = len(YKHO._classes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.patient_label_hash = YKHO.create_patient_label_hash()\n YKHO.label_to_num_hash = YKHO.label_to_num_hash()\n YKHO.num_to_label_hash = YKHO.num_to_label_hash()\n YKHO.files = YKHO.get_files()\n YKHO.num_labels = YKHO.get_num_labels()\n YKHO.labels = YKHO.get_labels()",
"def... | [
"0.69744414",
"0.670109",
"0.66266996",
"0.66114664",
"0.65663636",
"0.6549161",
"0.6504399",
"0.64954334",
"0.6466791",
"0.6462029",
"0.6419017",
"0.6418036",
"0.640437",
"0.640437",
"0.63015836",
"0.63005453",
"0.6293451",
"0.6293451",
"0.6256663",
"0.6256281",
"0.62452644"... | 0.0 | -1 |
Initializes the label extractor. | def FIMM(YKHO, xAU6):
super(NSJS, YKHO).__init__(xAU6)
with ZylS.gfile.GFile(xAU6.label_file, 'r') as hOYR:
YKHO._classes = [zFiD.strip('\n') for zFiD in hOYR.readlines()]
YKHO._num_classes = len(YKHO._classes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.patient_label_hash = YKHO.create_patient_label_hash()\n YKHO.label_to_num_hash = YKHO.label_to_num_hash()\n YKHO.num_to_label_hash = YKHO.num_to_label_hash()\n YKHO.files = YKHO.get_files()\n YKHO.num_labels = YKHO.get_num_labels()\n YKHO.labels = YKHO.get_labels()",
"def... | [
"0.69744414",
"0.670109",
"0.66266996",
"0.66114664",
"0.65663636",
"0.6549161",
"0.6504399",
"0.64954334",
"0.6466791",
"0.6462029",
"0.6419017",
"0.6418036",
"0.640437",
"0.640437",
"0.63015836",
"0.63005453",
"0.6293451",
"0.6293451",
"0.6256663",
"0.6256281",
"0.62452644"... | 0.5964798 | 50 |
Initializes the label extractor. | def FIMM(YKHO, xAU6):
super(VtVe, YKHO).__init__(xAU6)
YKHO._name2id = {}
YKHO._classes = []
with ZylS.gfile.GFile(xAU6.label_file, 'r') as hOYR:
for V8Gh, zFiD in enumerate(hOYR):
_2sc, PVn9 = zFiD.strip('\n').split('\t')
YKHO._name2id[_2sc] = V8Gh
YKHO._clas... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.patient_label_hash = YKHO.create_patient_label_hash()\n YKHO.label_to_num_hash = YKHO.label_to_num_hash()\n YKHO.num_to_label_hash = YKHO.num_to_label_hash()\n YKHO.files = YKHO.get_files()\n YKHO.num_labels = YKHO.get_num_labels()\n YKHO.labels = YKHO.get_labels()",
"def... | [
"0.69744414",
"0.670109",
"0.66266996",
"0.66114664",
"0.65663636",
"0.6549161",
"0.6504399",
"0.64954334",
"0.6466791",
"0.6462029",
"0.6419017",
"0.6418036",
"0.640437",
"0.640437",
"0.63015836",
"0.63005453",
"0.6293451",
"0.6293451",
"0.6256663",
"0.6256281",
"0.62452644"... | 0.60196203 | 42 |
Initializes the label extractor. | def FIMM(YKHO, xAU6):
super(Y3hD, YKHO).__init__(xAU6)
with ZylS.gfile.GFile(xAU6.label_file, 'r') as hOYR:
YKHO._classes = [zFiD.strip('\n') for zFiD in hOYR.readlines()]
YKHO._num_classes = len(YKHO._classes)
with ZylS.gfile.GFile(xAU6.open_vocabulary_file, 'r') as hOYR:
YKHO._open_voc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.patient_label_hash = YKHO.create_patient_label_hash()\n YKHO.label_to_num_hash = YKHO.label_to_num_hash()\n YKHO.num_to_label_hash = YKHO.num_to_label_hash()\n YKHO.files = YKHO.get_files()\n YKHO.num_labels = YKHO.get_num_labels()\n YKHO.labels = YKHO.get_labels()",
"def... | [
"0.69744414",
"0.670109",
"0.66266996",
"0.66114664",
"0.65663636",
"0.6549161",
"0.6504399",
"0.64954334",
"0.6466791",
"0.6462029",
"0.6419017",
"0.6418036",
"0.640437",
"0.640437",
"0.63015836",
"0.63005453",
"0.6293451",
"0.6293451",
"0.6256663",
"0.6256281",
"0.62452644"... | 0.0 | -1 |
Initializes the label extractor. | def FIMM(YKHO, xAU6):
super(vCm3, YKHO).__init__(xAU6)
with ZylS.gfile.GFile(xAU6.label_file, 'r') as hOYR:
YKHO._classes = [zFiD.strip('\n') for zFiD in hOYR.readlines()]
YKHO._num_classes = len(YKHO._classes)
with ZylS.gfile.GFile(xAU6.open_vocabulary_file, 'r') as hOYR:
YKHO._open_voc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.patient_label_hash = YKHO.create_patient_label_hash()\n YKHO.label_to_num_hash = YKHO.label_to_num_hash()\n YKHO.num_to_label_hash = YKHO.num_to_label_hash()\n YKHO.files = YKHO.get_files()\n YKHO.num_labels = YKHO.get_num_labels()\n YKHO.labels = YKHO.get_labels()",
"def... | [
"0.69750094",
"0.6701388",
"0.6627239",
"0.6611582",
"0.6567066",
"0.65491146",
"0.650476",
"0.6496104",
"0.64668715",
"0.6462511",
"0.6418624",
"0.6418492",
"0.64049655",
"0.64049655",
"0.63016015",
"0.63011307",
"0.62938106",
"0.62938106",
"0.6257239",
"0.6256731",
"0.62452... | 0.5987884 | 47 |
`Optimizer` object wraps on top of PyTorch `optim` but with more freedom to control learning rates decay and etc. For the sake of clarity, just keep the `multiplier` at 1 so the learning rate is just the learning rate directly... `decay_lr` is the final value, but we can just make it equal to the normal `lr`. | def FIMM(YKHO, Zxma, oLIK, _11s, XJau):
YKHO.params = oLIK
YKHO.params['params']['lr'] *= YKHO.params['multiplier']
YKHO.params['decay_lr'] *= YKHO.params['multiplier']
if YKHO.params['name'] == 'Adam':
YKHO.opt = sqQC.Adam(Zxma.parameters(), **YKHO.params['params'])
else:
YKHO.opt =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n tspZ = qIxc.lr * qIxc.lr_decay ** (qtWj // 30)\n print('Current learning rate %f' % tspZ)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ\n return K0do",
"def e_63(NeCp, K0do, qtWj):\n tspZ = qIxc.lr * 0.1 ** (qtWj // NeCp)\n for Lwm5 in K0do.param_groups:\n ... | [
"0.7240862",
"0.7232838",
"0.72252786",
"0.7221339",
"0.7165716",
"0.7140501",
"0.7133206",
"0.711764",
"0.70758826",
"0.7062339",
"0.7028608",
"0.70129585",
"0.6999823",
"0.69970435",
"0.6995617",
"0.698959",
"0.698959",
"0.698959",
"0.6975238",
"0.6957374",
"0.6957287",
"... | 0.0 | -1 |
Test that user registration works | def kYEB(YKHO):
_hkX = YKHO.client.post('/auth/register/', data=YKHO.user_details)
Aofo = qQXR.loads(_hkX.data.decode())
YKHO.assertEqual(Aofo['message'], 'Successfully Registered')
YKHO.assertEqual(_hkX.status_code, 201) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPFs(YKHO):\n Aofo = YKHO.app.post('/', data=dict(username='test', email='test@test.com', password='12345'))\n YKHO.assertEqual('200 OK', Aofo.status)",
"def OPFs(YKHO):\n DLGy = bTD0().email()\n bky0 = DrBN.FuzzyText(length=16)\n v7EY = {'password1': bky0, 'password2': bky0, 'email': DLGy, 'e... | [
"0.8780164",
"0.8742408",
"0.8711157",
"0.8677103",
"0.8578989",
"0.8521732",
"0.85058284",
"0.8505465",
"0.85028887",
"0.84829754",
"0.8470811",
"0.84703267",
"0.846624",
"0.8452103",
"0.8448248",
"0.8439788",
"0.8426397",
"0.84212",
"0.84211",
"0.8419449",
"0.83873445",
"... | 0.8212881 | 44 |
Test registered user successful login | def vOng(YKHO):
_hkX = YKHO.client.post('/auth/register/', data=YKHO.user_details)
YKHO.assertEqual(_hkX.status_code, 201)
_hkX = YKHO.client.post('/auth/login/', data=YKHO.user_details)
Aofo = qQXR.loads(_hkX.data.decode())
YKHO.assertTrue(Aofo['access_token'])
YKHO.assertEqual(_hkX.status_code... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xSMt(YKHO):\n Ylbp = YKHO.registration()\n YKHO.assertEqual(201, Ylbp.status_code)\n geh0 = YKHO.login()\n YKHO.assertIn(b'You are logged in!', geh0.data)",
"def hBsi(YKHO):\n geh0 = YKHO.register_user()\n geh0 = YKHO.login_user()\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n ... | [
"0.85242385",
"0.8500592",
"0.8486545",
"0.8461134",
"0.8452911",
"0.8395042",
"0.8361186",
"0.83475244",
"0.832313",
"0.83169675",
"0.83101135",
"0.8294519",
"0.8270398",
"0.8265071",
"0.8226368",
"0.8206799",
"0.81811965",
"0.81662846",
"0.8162137",
"0.81294584",
"0.8114503... | 0.8274213 | 12 |
Test registered user with invalid password login response | def O9LE(YKHO):
_hkX = YKHO.client.post('/auth/register/', data=YKHO.user_details)
YKHO.assertEqual(_hkX.status_code, 201)
_hkX = YKHO.client.post('/auth/login/', data={'username': 'newuser@app.com', 'password': 'password1'})
Aofo = qQXR.loads(_hkX.data.decode())
YKHO.assertEqual(_hkX.status_code, 4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQD2(YKHO):\n YKHO.register_user(username='test', email='test@test.com', password='test123')\n with YKHO.client:\n geh0 = YKHO.login_user('test@test.com', 'wrondpassword')\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertTrue(nPrm['response'] is None)\n YKHO.assertTrue(nPr... | [
"0.86435914",
"0.85687333",
"0.8543826",
"0.8476412",
"0.8420403",
"0.8406405",
"0.8383668",
"0.8364576",
"0.83562046",
"0.8307754",
"0.8291863",
"0.8240379",
"0.8204445",
"0.82040477",
"0.8170611",
"0.8170348",
"0.8141396",
"0.81315064",
"0.81298906",
"0.812363",
"0.8106855"... | 0.8506918 | 3 |
Test unregistered user can not login | def k9hI(YKHO):
_hkX = YKHO.client.post('/auth/login/', data=YKHO.user_details)
Aofo = qQXR.loads(_hkX.data.decode())
YKHO.assertEqual(Aofo['message'], 'login details Unknown. Register First')
YKHO.assertEqual(_hkX.status_code, 401) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8o8(YKHO):\n nPrm = {'email': 'ajj@hh.com', 'password': 'badadmnsn'}\n MC83 = YKHO.login_user(data=nPrm)\n YKHO.assertEqual(MC83.json['message'], 'Your details were not found, please sign up')",
"def alJQ(YKHO):\n V9Rh = YKHO.login_user(YKHO.un_registred_user_to_login)\n YKHO.assertEqual(V9Rh... | [
"0.82646275",
"0.81242055",
"0.80408967",
"0.80408967",
"0.80408967",
"0.79706526",
"0.7910531",
"0.785926",
"0.7847086",
"0.78246254",
"0.779039",
"0.7786243",
"0.7702857",
"0.76761264",
"0.76759154",
"0.7673705",
"0.7655056",
"0.76200753",
"0.7615091",
"0.7596543",
"0.75839... | 0.78055644 | 10 |
CATC026 Identity, when someone attempts to impersonate the test user, will first fail with a 401, then fail with a 500, then succeed, over and over in a loop. (Otter will probably only make a single cycle through the sequence, but it shouldn't make a difference either way.) Otter retries and recovers and there should b... | def YZmD(YKHO):
tink = L6Hy()
pqa9 = BWvy()
_E99 = vVt1(pool=YKHO.helper.pool, username=pqa9, password='random_password', convergence_tenant=j_fD)
yield _E99.authenticate_user(tink, resources=AYwW(), region=zn0c)
E5wu = J6Da(pool=YKHO.helper.pool, test_case=YKHO, treq=YKHO.helper.treq)
yield E5w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qudP(YKHO):\n YKHO.impersonate_user.side_effect = lambda *jzdc, **YSA3: YIoF(tsQT(jKaF(yiLL(500, '500')), 'identity', 'o'))\n eHNT = YKHO.failureResultOf(YKHO.ia.authenticate_tenant(111111))\n YKHO.assertEqual(eHNT.value.reason.value.code, 500)",
"def cAIQ(YKHO):\n YKHO.impersonate_user.side_effe... | [
"0.7895615",
"0.782264",
"0.7399259",
"0.71324635",
"0.7079886",
"0.69061565",
"0.6762462",
"0.6749393",
"0.6627439",
"0.64297533",
"0.6338097",
"0.63202894",
"0.62376183",
"0.61919826",
"0.61734045",
"0.6103694",
"0.6088427",
"0.6023101",
"0.6019469",
"0.6016412",
"0.5957455... | 0.70011663 | 5 |
Error reasons appear if the group goes into an ERROR state, disappear when the group fixes itself, and reappears (but with a new error reason) if the group goes into ERROR again. 1. Create group with an invalid key name, because autoscale does not verify the key and hence won't just 400 the create group request. 2. Ass... | def E43b(YKHO):
uOe2, PqeX = YKHO.helper.create_group(min_entities=1, max_entities=10, server_name_prefix='no-such-key', key_name='invalid_key_name')
if not eC5f():
ww_m = Fh2B(pool=YKHO.helper.pool, test_case=YKHO, treq=YKHO.helper.treq)
AGNp = (yield ww_m.sequenced_behaviors(YKHO.rcs, criteria... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DyTV(YKHO):\n vumv = Smwe(eJb6.safe_load(qrHm.GROUPS_YAML), gXca)\n Sgcx(vumv, SYx0('all-fail', stand_alone=True), SYx0('all-success', stand_alone=True))\n assert vumv.critical_groups_failed()\n for uOe2 in vumv.group_list():\n assert uOe2.stage == fRx7.FAILED\n vumv.report_group_summary(... | [
"0.71383965",
"0.67054677",
"0.6684176",
"0.6325547",
"0.6303328",
"0.63012147",
"0.6189183",
"0.6135341",
"0.6125904",
"0.6119909",
"0.6104682",
"0.6069059",
"0.6061883",
"0.6059824",
"0.60568017",
"0.6044396",
"0.60437703",
"0.6026528",
"0.60065085",
"0.5999918",
"0.5954941... | 0.7732787 | 0 |
Convert the query results to a Dictionary using `date` as the key and `prcp` as the value. | def _c1T():
dixj = cuiw.query(Ny6I.prcp).all()
return pz3A(dixj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aCqS(YKHO):\n Csk6 = {}\n for JRYC, NZA8, WyFx, Lg1t, sOCm in YKHO.get_queryset().values_list('date', 'team1', 'team2', 'team1_result', 'team2_result'):\n H5ew = (NZA8, JRYC)\n Csk6[H5ew] = Lg1t\n gfpw = (WyFx, JRYC)\n Csk6[gfpw] = sOCm\n return Csk6",
"def tWbQ(YKHO):\n ... | [
"0.7146772",
"0.7033161",
"0.6916127",
"0.6886832",
"0.68640786",
"0.6823392",
"0.67406374",
"0.67119086",
"0.6616114",
"0.6538554",
"0.6537519",
"0.65371",
"0.6537011",
"0.6536399",
"0.65027285",
"0.6485198",
"0.64437443",
"0.6437926",
"0.6422643",
"0.640193",
"0.6383616",
... | 0.58449876 | 88 |
Load the SalesOrders sheet of the excel book (EXCEL variable) into a Pandas DataFrame and return it to the caller | def v0Nf(_Ia2=QNFC):
with open(_Ia2, 'rb') as pMBr:
return rLdf.read_excel(pMBr, sheetname='SalesOrders') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAs6(M3BL):\n NFzb = rLdf.read_excel(M3BL, 'Data', index_col=0)\n return NFzb",
"def m6dn(jIjZ: Worksheet) -> hxoQ:\n nPrm = jIjZ.values\n WfCS = list(uOgj(nPrm, 6, 7))[0]\n nPrm = list(nPrm)\n return hxoQ(nPrm, columns=WfCS)",
"def cO1h(YKHO, **B2fa) -> rLdf.DataFrame:\n import pandas... | [
"0.71990883",
"0.6999954",
"0.69692653",
"0.69361275",
"0.66868275",
"0.66544574",
"0.6650362",
"0.6606908",
"0.64953613",
"0.64910954",
"0.64624435",
"0.6451455",
"0.6444066",
"0.6438371",
"0.640747",
"0.6405901",
"0.63648355",
"0.63176244",
"0.63151",
"0.6276137",
"0.624947... | 0.83035713 | 0 |
Group the DataFrame by year and region, summing the Total column. You probably need to make an extra column for year, return the new df as shown in the Bite description | def DXVo(jQ3Z: pd.DataFrame):
jQ3Z['Year'] = rLdf.DatetimeIndex(jQ3Z['OrderDate']).year
return jQ3Z.groupby(['Year', 'Region'])['Total'].sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QDma(jQ3Z: pd.DataFrame) -> rLdf.DataFrame:\n return jQ3Z.groupby(['Year', 'Region'], as_index=False)[['RSI']].mean()",
"def qIwp(bQEL: DataFrame) -> hxoQ:\n jQ3Z = bQEL.repartition(5, 'year').groupBy('PHYSICALID').pivot('year', [2015, 2016, 2017, 2018, 2019]).sum('total_cnt')\n jQ3Z = jQ3Z.withColu... | [
"0.7165087",
"0.6837438",
"0.66353357",
"0.65359366",
"0.6370165",
"0.6358666",
"0.60960746",
"0.6091451",
"0.58911633",
"0.5875404",
"0.58015585",
"0.57641023",
"0.5733575",
"0.5706017",
"0.5704554",
"0.5687696",
"0.56838727",
"0.5679934",
"0.56260616",
"0.5612182",
"0.55896... | 0.7955556 | 0 |
Convert a confidence level to a multiplier for a standard deviation. This assumes an underlying normal distribution. | def m8aD(la9G: float) -> float:
if la9G < 0 or la9G > 1:
raise ValueError('Confidence level must be in the range [0, 1].')
return _qg4(la9G) * oyIN.sqrt(2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LHfy(BWXx, JBMS, ifkm):\n return (BWXx - JBMS) / ifkm",
"def mJX1(I8JS):\n return I8JS ** (1 / 2)",
"def mJX1(fUYa: List[float]) -> float:\n return epAf.sqrt(I8JS(fUYa))",
"def mJX1(WKvO):\n mJX1 = epAf.sqrt(I8JS(WKvO))\n return mJX1",
"def mJX1(YKHO):\n return epAf.sqrt(YKHO.variance... | [
"0.6830105",
"0.6813553",
"0.67221224",
"0.6585066",
"0.65170527",
"0.6445988",
"0.6417295",
"0.6383883",
"0.6364304",
"0.63556415",
"0.6268567",
"0.62371874",
"0.6230712",
"0.62240833",
"0.62158316",
"0.6214958",
"0.61915106",
"0.61902803",
"0.6187553",
"0.61579263",
"0.6148... | 0.66868603 | 3 |
This view display form reset confirm pass | def yfsa(QePW, sBvR, eOtH):
if QePW.user.is_authenticated():
return vKnz('forums')
return BHQl(QePW, uidb64=sBvR, token=eOtH, template_name='musette/password_reset_confirm.html', token_generator=SVG3, set_password_form=KLLH, post_reset_redirect=None, extra_context=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kMgo(YKHO):\n print('Press * to confirm reset of password')\n print('Press # to cancel')",
"def wkJG(YKHO):\n return YKHO.__do_action('password_reset')",
"def U6J8(QePW):\n return wkJG(QePW, template_name='reset.html', email_template_name='reset_email.html', subject_template_name='reset_subject... | [
"0.7508713",
"0.69404024",
"0.68447626",
"0.6822229",
"0.679273",
"0.67786676",
"0.6772955",
"0.6749045",
"0.66725916",
"0.6650647",
"0.66177756",
"0.6601819",
"0.6504203",
"0.64748764",
"0.64712334",
"0.64533514",
"0.64498657",
"0.6428199",
"0.6425364",
"0.6402285",
"0.63889... | 0.6360932 | 23 |
Split Amharic text into sentences. | def CKX6(zFiD: str) -> HRJ_.Iterable[str]:
zFiD = zFiD.replace('፡፡', '።')
zFiD = zFiD.replace('። •', '።').replace('? •', '?').replace('! •', '!').replace('. •', '.')
for _dZy in ZbWC.findall('[^።•!?\\!\\?\\.]+[።•!?।৷\\?\\!\\.]?', zFiD, flags=ZbWC.U):
yield _dZy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iivt(YKHO, l5Ny):\n FdPV = ZbWC.compile('[.!?,;:\\t\\\\\\\\\"\\\\(\\\\)\\\\\\'’–]|\\\\s\\\\-\\\\s')\n Rhv4 = FdPV.split(l5Ny)\n return Rhv4",
"def Q6PU(YKHO, l5Ny):\n if '<eos>' in l5Ny:\n Rhv4 = [l5Ny.replace('<eos>', '')]\n else:\n Rhv4 = l5Ny.split('\\n')\n return [yAmx.spl... | [
"0.76091367",
"0.751299",
"0.75069535",
"0.75069535",
"0.7442135",
"0.743277",
"0.73600376",
"0.7324086",
"0.72815216",
"0.7271013",
"0.7266636",
"0.7248302",
"0.7245037",
"0.723364",
"0.72003925",
"0.70801103",
"0.7077963",
"0.7037004",
"0.70258236",
"0.6993032",
"0.6977793"... | 0.0 | -1 |
Split Santali text into sentences. | def MQLS(zFiD: str) -> HRJ_.Iterable[str]:
for _dZy in ZbWC.findall('[^᱾|᱿!?\\!\\?]+[᱾|᱿!?\\?\\!]?', zFiD, flags=ZbWC.U):
yield _dZy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHW8(YKHO, l5Ny):\n Rhv4 = YKHO.sent_detector.tokenize(l5Ny)\n return Rhv4",
"def JHW8(YKHO, l5Ny):\n Rhv4 = YKHO.sent_detector.tokenize(l5Ny)\n return Rhv4",
"def c0FK(l5Ny):\n return N3rN(l5Ny, language='turkish')",
"def JHW8(l5Ny):\n Rhv4 = KZdB.tokenize(l5Ny)\n return Rhv4",
"d... | [
"0.75730956",
"0.75730956",
"0.7498484",
"0.7415997",
"0.73279804",
"0.72817045",
"0.72388947",
"0.7223595",
"0.7216916",
"0.72049904",
"0.7148239",
"0.7140331",
"0.707932",
"0.70570594",
"0.70352167",
"0.70279807",
"0.7017362",
"0.694871",
"0.6947724",
"0.69432425",
"0.69342... | 0.0 | -1 |
Split Amharic text into sentences. | def Fpig(zFiD: str) -> HRJ_.Iterable[str]:
zFiD = zFiD.replace('။”', 'APOS။')
for _dZy in ZbWC.findall('[^။!?\\!\\?\\.]+[။!?।৷\\?\\!\\.]?', zFiD, flags=ZbWC.U):
yield _dZy.replace('APOS။', '။”') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iivt(YKHO, l5Ny):\n FdPV = ZbWC.compile('[.!?,;:\\t\\\\\\\\\"\\\\(\\\\)\\\\\\'’–]|\\\\s\\\\-\\\\s')\n Rhv4 = FdPV.split(l5Ny)\n return Rhv4",
"def Q6PU(YKHO, l5Ny):\n if '<eos>' in l5Ny:\n Rhv4 = [l5Ny.replace('<eos>', '')]\n else:\n Rhv4 = l5Ny.split('\\n')\n return [yAmx.spl... | [
"0.7609083",
"0.75143206",
"0.75060683",
"0.75060683",
"0.7441265",
"0.74331605",
"0.7359793",
"0.73220444",
"0.72793794",
"0.7269737",
"0.7265575",
"0.7248185",
"0.72447324",
"0.72322166",
"0.71982837",
"0.7077118",
"0.7075072",
"0.70377356",
"0.70253",
"0.6990549",
"0.69751... | 0.0 | -1 |
Initialize distance estimates `d[u]` to +infinity for all `u` | def nblh(YKHO, KCHu):
YKHO.new_adj[KCHu][0].d = 0
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wRl2(lWPh, _hZ2):\n lWPh[oyIN.isinf(lWPh)] = _hZ2 + 1\n return lWPh",
"def ib4j(YKHO):\n for Iuo4 in YKHO.graph.keys():\n Ayfi[Iuo4] = HwRy.maxsize\n azXi[Iuo4] = False\n THkp[Iuo4] = Iuo4",
"def DwZc(YKHO):\n return oyIN.zeros([len(YKHO.sequences), len(YKHO.sequences)])",
... | [
"0.5922053",
"0.590993",
"0.5812171",
"0.57166284",
"0.57008857",
"0.55741316",
"0.55064255",
"0.54321605",
"0.5340804",
"0.53191173",
"0.5298513",
"0.52644837",
"0.52503157",
"0.5247315",
"0.5246841",
"0.5239724",
"0.5177595",
"0.5171105",
"0.5165345",
"0.51433235",
"0.51408... | 0.5238168 | 16 |
"Relaxes" the distance estimate for edge (u, v) if the old weight `w` is greater than the calculated cost d[u] + w[(u, v)]. Where `u` is a potentially "better (lower cost)" predecessor to `v` | def XnjJ(YKHO, P6bq, Ty9i):
Xj7a = YKHO.get_new_adj_idx(P6bq, Ty9i)
print(P6bq)
if YKHO.new_adj[Ty9i][0].d > YKHO.new_adj[P6bq][0].d + YKHO.new_adj[P6bq][Xj7a].w:
YKHO.new_adj[Ty9i][0].d = YKHO.new_adj[P6bq][0].d + YKHO.new_adj[P6bq][Xj7a].w
YKHO.new_adj[Ty9i][0].p = P6bq
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SFae(YKHO, tTpl, Ty9i):\n yzQ0 = tTpl.other(Ty9i)\n if YKHO._dist_to[Ty9i] + tTpl.weight() < YKHO._dist_to[yzQ0]:\n YKHO._dist_to[yzQ0] = YKHO._dist_to[Ty9i] + tTpl.weight()\n YKHO._edge_to[yzQ0] = tTpl\n if YKHO._pq.contains(yzQ0):\n YKHO._pq.decrease_key(yzQ0, YKHO._dist... | [
"0.7256098",
"0.6979961",
"0.6944752",
"0.64191425",
"0.6363611",
"0.615475",
"0.61545086",
"0.6127031",
"0.61182016",
"0.61067075",
"0.60845965",
"0.6032539",
"0.59522635",
"0.59468526",
"0.5935899",
"0.59184194",
"0.58905476",
"0.586682",
"0.5854316",
"0.5854316",
"0.584625... | 0.76502466 | 0 |
Pop a node/vertice from the end of the queue, and return vertex. | def he0F(YKHO):
return YKHO.q.pop(-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO):\n SLBp = None\n while SLBp is None:\n Ey19, UHFx, SLBp = _eVy.heappop(YKHO.__data)\n del YKHO.__locator[SLBp.id]\n SLBp.visit()\n while len(YKHO.__data) > 0 and YKHO.__data[0] is None:\n _eVy.heappop(YKHO.__data)\n return (Ey19, SLBp)",
"def AYvI(YKHO):\n if YKH... | [
"0.7537863",
"0.734587",
"0.72748774",
"0.7100511",
"0.70943475",
"0.70475787",
"0.7012279",
"0.6992576",
"0.69906807",
"0.69767755",
"0.6961195",
"0.6961195",
"0.6958612",
"0.6957941",
"0.6945593",
"0.69368035",
"0.69086856",
"0.68988883",
"0.6890006",
"0.6887937",
"0.685321... | 0.7071741 | 5 |
Retrieve the filename containing the specified SED grid. The keyword arguments are specific to the kind of grid you're using. Basic keywords are 'grid' for the name of the grid, and 'z' for metallicity. For other keywords, see the source code. | def SJOK(KYuB=False, **B2fa):
Cs6h = B2fa.get('grid', muwo['grid'])
if Hy7s.path.isfile(Cs6h):
return Cs6h
epBp = B2fa.get('z', muwo['z'])
b0jp = int(B2fa.get('vturb', muwo['vturb']))
ocCq = B2fa.get('odfnew', muwo['odfnew'])
Cwt5 = B2fa.get('alpha', muwo['alpha'])
EO39 = B2fa.get('n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qFFa():\n PFLj = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'definition_files')\n return Hy7s.path.join(PFLj, 'ESA-CCI-SOILMOISTURE-LAND_AND_RAINFOREST_MASK-fv04.2.nc')",
"def qFFa(DpZH):\n PFLj = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'definition_files')\n return Hy7s.path.join(PFLj, 'ESA-CCI-SOIL... | [
"0.6929015",
"0.6411001",
"0.6370317",
"0.6250199",
"0.6151529",
"0.59279335",
"0.5750475",
"0.5683362",
"0.5614351",
"0.5571413",
"0.5524092",
"0.5466757",
"0.5429381",
"0.5382428",
"0.53549284",
"0.5312647",
"0.5287929",
"0.5275441",
"0.526863",
"0.5263013",
"0.52558184",
... | 0.6370549 | 2 |
Convert mu to r coordinates | def sL3H(yGTL):
return oyIN.sqrt(1.0 - yGTL ** 2.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R_A9(L749):\n return oyIN.sqrt(1.0 - L749 ** 2.0)",
"def yGTL(YKHO):\n return uPB4(YKHO._latitude._a, YKHO._latitude._b)[0]",
"def qvqi(YKHO, P6bq: Union[float, np.ndarray]) -> oyIN.ndarray:\n return DwUu(YKHO.tangent_at(P6bq))",
"def EYR_(tTpl, exwG, P6bq, SI6q):\n C0FQ, Juts = (oyIN.sin(SI6... | [
"0.69826454",
"0.61911887",
"0.61669207",
"0.6094198",
"0.60131544",
"0.5906535",
"0.58636886",
"0.5861471",
"0.58353746",
"0.5807467",
"0.5788112",
"0.578186",
"0.5777518",
"0.57712597",
"0.5754424",
"0.5747015",
"0.5747015",
"0.57461137",
"0.57442355",
"0.56878924",
"0.5679... | 0.71129006 | 0 |
r"""The observed standard deviation (OSTDEV) | def VZ93(YKHO):
return YKHO.observation_standard_deviation(YKHO._o) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hQUs(W061):\n return oyIN.std(W061)",
"def z2bo(YKHO):\n return oyIN.zeros_like(YKHO._mean)",
"def ee6l(YKHO):\n return oyIN.sqrt(YKHO.variance())",
"def z2bo(YKHO):\n return YKHO.model.stddev",
"def xQBU(YKHO):\n return YKHO.standard_deviation_of_error(YKHO.error)",
"def RSc0(YKHO):\n... | [
"0.796677",
"0.7847344",
"0.7811504",
"0.7810529",
"0.77980053",
"0.7796133",
"0.7768062",
"0.7712702",
"0.7706365",
"0.77025956",
"0.7699254",
"0.76489556",
"0.76307184",
"0.7604696",
"0.7568855",
"0.7536238",
"0.7529903",
"0.7508221",
"0.7491183",
"0.74560195",
"0.74560195"... | 0.8622141 | 0 |
The Mean Error Squared (ME2) The Mean Error Squared, ME2, is provided to give a complete breakdown of MSE in terms of squared Bias plus estimated variance of the error, as detailed below in the section on BCMSE. It is defined as ME2 = ME2. A perfect forecast has ME2 = 0. Returns numpy.ndarray, The Mean Error (ME) | def FSiB(P1dF):
return oyIN.square(oyIN.average(P1dF)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xQJ1(YKHO):\n return YKHO.mean_error_squared(YKHO.error)",
"def eZQN(YKHO):\n return YKHO.mean_error(YKHO.error)",
"def hkHB(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)",
"def h5nY(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)",
"def h5nY(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)",
... | [
"0.8085217",
"0.6879547",
"0.68639135",
"0.67589116",
"0.6757369",
"0.6757369",
"0.6757369",
"0.6757369",
"0.6757369",
"0.67437303",
"0.672676",
"0.6697623",
"0.6642713",
"0.66030693",
"0.6544481",
"0.64269555",
"0.6421877",
"0.6408519",
"0.6400355",
"0.63799065",
"0.6369144"... | 0.0 | -1 |
r"""Meansquared error (MSE) MSE measures the average squared error of the forecasts. Specifically, | def SDab(P1dF):
return oyIN.average(P1dF ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mOvN(YKHO):\n print(YKHO.y_predicted.values)\n iAxY = oyIN.sqrt(oyIN.mean(0.5 * (YKHO.y - YKHO.y_predicted) ** 2))\n Emt7 = oyIN.mean(oyIN.abs(YKHO.y - YKHO.y_predicted))\n return (iAxY, Emt7)",
"def hkHB(fuBA: np.array, U9zx: np.array) -> float:\n return SDab(fuBA, U9zx)",
"def hkHB(YKHO, n... | [
"0.74029934",
"0.7395241",
"0.72259885",
"0.72000927",
"0.7200055",
"0.7153406",
"0.7150836",
"0.7150836",
"0.7150836",
"0.7140015",
"0.71201247",
"0.7118207",
"0.70987415",
"0.7075114",
"0.70312",
"0.70259935",
"0.7023405",
"0.70224214",
"0.7019559",
"0.7018818",
"0.69991213... | 0.0 | -1 |
Standard deviation of the error (ESTDEV) Returns numpy.ndaray, Standard deviation of the error | def DXNv(P1dF):
return oyIN.std(P1dF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ee6l(YKHO):\n raise NotImplementedError",
"def ee6l(YKHO):\n return oyIN.sqrt(YKHO.variance())",
"def ee6l(BkYD):\n return qw7D.standardDeviation(BkYD)",
"def ybJL(input):\n return oyIN.asarray([WKvO.std() for WKvO in input])",
"def tB1J(YKHO):\n try:\n return epAf.sqrt(YKHO.varia... | [
"0.8160224",
"0.81351495",
"0.8113106",
"0.80778706",
"0.80668294",
"0.803453",
"0.7978881",
"0.7936302",
"0.7814512",
"0.7800141",
"0.77852446",
"0.7775997",
"0.77601653",
"0.775847",
"0.77580637",
"0.76825505",
"0.76773846",
"0.7649561",
"0.76453257",
"0.76285464",
"0.76265... | 0.80016524 | 6 |
Median Absolute Deviation (MAD) | def DAvx(YKHO):
return YKHO.median_absolute_deviation(YKHO.error) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ezom(WKvO, BjRM):\n XNqj = oyIN.median(oyIN.abs(WKvO - BjRM))\n return 1.4826 * XNqj",
"def DAvx(WKvO):\n CXuR = usD_.median_filter(WKvO, size=(3, 3))\n CtCg = oyIN.abs(WKvO - CXuR)\n lWrn = oyIN.shape(WKvO)\n WTkW = 1.48 * oyIN.median(CtCg)\n return WTkW",
"def V32p(nPrm):\n import... | [
"0.8281976",
"0.7953748",
"0.77741003",
"0.7772375",
"0.7733545",
"0.7729954",
"0.77036214",
"0.7641076",
"0.7572507",
"0.74581426",
"0.7425704",
"0.7407326",
"0.7377438",
"0.7333358",
"0.7319243",
"0.72698796",
"0.72482765",
"0.71441525",
"0.7127192",
"0.70570004",
"0.703837... | 0.7728057 | 6 |
The Anomaly correlation coefficient (ANOM_CORR) | def oPGF(YKHO):
return YKHO.anomaly_correlation_coefficient(YKHO._f, YKHO._o, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iWyq(YKHO, KtG1):\n if YKHO.silence_level <= 1:\n print('Calculating correlation matrix at zero lag from anomaly values...')\n dNGY = oyIN.corrcoef(KtG1.transpose()).astype('float32')\n return dNGY",
"def iWyq(YKHO, YT_5, nQod):\n if YKHO.silence_level <= 1:\n print('Calculating cor... | [
"0.7518356",
"0.69532716",
"0.6701487",
"0.659542",
"0.65826094",
"0.63905275",
"0.6348819",
"0.6327722",
"0.63009065",
"0.6275143",
"0.62750787",
"0.62697375",
"0.62167543",
"0.621044",
"0.61558867",
"0.6149743",
"0.61391276",
"0.6133226",
"0.6081618",
"0.6080242",
"0.607237... | 0.86482567 | 0 |
Return a custom message for 404 errors. | def IdVU(tTpl):
return geh0('failed', 'Team cannot be found', 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf(P1dF):\n return '404'",
"def RQdI(P1dF):\n return 'Sorry, nothing at this URL. (404)'",
"def RQdI(P1dF):\n return 'Sorry, Nothing at this URL.'",
"def RQdI(P1dF):\n return 'Sorry, nothing at this URL.'",
"def RQdI(P1dF):\n return 'Sorry, nothing at this URL.'",
"def RQdI(P1dF):\n ... | [
"0.8077303",
"0.8006561",
"0.8005837",
"0.79856443",
"0.79856443",
"0.79856443",
"0.779513",
"0.77689594",
"0.7700617",
"0.7678769",
"0.76624763",
"0.7650251",
"0.76313746",
"0.76186",
"0.7569436",
"0.75246084",
"0.7523611",
"0.7506401",
"0.74899524",
"0.74818015",
"0.7461284... | 0.0 | -1 |
Return a custom response for 400 errors. | def Y1ZN(tTpl):
return geh0('failed', 'Bad Request', 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SZ_t(Wehb):\n return Yxsy(pz3A({'error': str(Wehb)}), 400)",
"def SZ_t(Wehb):\n return Yxsy(pz3A({'error': 'Misunderstood'}), 400)",
"def yA8I(YKHO):\n _hkX = pz3A()\n _hkX.content_type = 'application/json'\n _hkX.status_code = 400\n return _hkX",
"def mUn6(QePW, *qIxc, **B2fa):\n nP... | [
"0.8031438",
"0.789674",
"0.7867959",
"0.7855632",
"0.77167004",
"0.7646228",
"0.7585821",
"0.7475907",
"0.7361201",
"0.734913",
"0.733563",
"0.7332571",
"0.72017586",
"0.7195487",
"0.7179359",
"0.7175059",
"0.71097773",
"0.71085805",
"0.7106384",
"0.70744276",
"0.70676947",
... | 0.8266362 | 0 |