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 |
|---|---|---|---|---|---|---|
Computes the values of the hidden layer. | def rrOs(YKHO, input):
return Kt_s.nnet.sigmoid(Kt_s.dot(input, YKHO.W) + YKHO.b) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yulo(YKHO, input):\n return YKHO.activation_func(Kt_s.dot(input, YKHO.W) + YKHO.b, *YKHO.act_func_args)",
"def rrOs(YKHO, input):\n return Kt_s.tanh(Kt_s.dot(input, YKHO.W) + YKHO.b)",
"def rrOs(YKHO, input):\n return Kt_s.nnet.sigmoid(Kt_s.dot(input, YKHO.W) + YKHO.b)",
"def ycep(YKHO):\n LV... | [
"0.75666445",
"0.7141425",
"0.7131683",
"0.709839",
"0.70882595",
"0.7016816",
"0.6928516",
"0.67744833",
"0.6746294",
"0.6546691",
"0.65210146",
"0.65179986",
"0.6497733",
"0.6490866",
"0.6487334",
"0.6361507",
"0.6352854",
"0.6341464",
"0.6332703",
"0.6291477",
"0.6285932",... | 0.6982727 | 7 |
Optional Parameters `pool_shape` The downsampling (pooling) factor (rows, cols) Optional Parameters `stride` Take steps of this size across the input image. If None, the stride equals the pool_shape. | def FIMM(YKHO, Ya2q, oH7g, _0fC=None, **B2fa):
if _0fC is None:
_0fC = oH7g
if isinstance(_0fC, int):
_0fC = (_0fC, _0fC)
if qKnO:
if oH7g[0] != oH7g[1]:
raise ValueError('For optimized max-pooling, we can only pool over square regions.')
if _0fC[0] != _0fC[1]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBuj(Yw_3, RndV, _0fC, Tuqy='max'):\n r8hN, vfcz, QWjt, Ez3E = Yw_3.shape\n F5P9, phSo = RndV\n hMIr, Pggg = _0fC\n M3gH = int((vfcz - F5P9) / hMIr + 1)\n LnlB = int((QWjt - phSo) / Pggg + 1)\n hlel = oyIN.zeros((r8hN, M3gH, LnlB, Ez3E))\n if Tuqy == 'max':\n S5GN = oyIN.max\n el... | [
"0.6640332",
"0.65609574",
"0.6467066",
"0.6411391",
"0.6404102",
"0.6395091",
"0.6395091",
"0.63693696",
"0.6338281",
"0.6333989",
"0.6329955",
"0.6315248",
"0.62855893",
"0.6267525",
"0.6218613",
"0.617034",
"0.61503327",
"0.60530007",
"0.6019472",
"0.59501725",
"0.5935756"... | 0.5775438 | 25 |
Same as tf.sequence_mask, Returns a mask tensor representing the first N positions of each cell. | def rWMo(Fbjb, wzH_=None):
bONM = Fbjb.shape
Fbjb = Fbjb.reshape(-1)
Ep8u = Fbjb.numel()
wzH_ = wzH_ or int(Fbjb.max())
bONM += (wzH_,)
return ht2j.arange(0, wzH_, device=Fbjb.device).type_as(Fbjb).unsqueeze(0).expand(Ep8u, wzH_).lt(Fbjb.unsqueeze(1)).reshape(bONM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rWMo(wzH_, tsWk, Ep8u):\n c2Fv = ZylS.constant(oyIN.tril(oyIN.ones([wzH_, wzH_])), dtype=ZylS.float32)\n return ZylS.slice(ZylS.gather(c2Fv, tsWk - 1), [0, 0], [Ep8u, wzH_])",
"def QX8y(YKHO) -> ZylS.Tensor:\n RndV = ZylS.shape(YKHO.kernel)\n NwL4 = RndV[0]\n ulBT = RndV[1]\n h4_5 = ZylS.mi... | [
"0.6729113",
"0.66383964",
"0.6611158",
"0.658979",
"0.6544036",
"0.64753324",
"0.64641374",
"0.6462877",
"0.64375347",
"0.6428656",
"0.64184093",
"0.6397901",
"0.63545597",
"0.6330744",
"0.62866616",
"0.6270726",
"0.6259609",
"0.6199995",
"0.61816144",
"0.6180645",
"0.616489... | 0.0 | -1 |
Get model weights as a list of NumPy ndarrays. | def W6RH(C3ST: torch.nn.ModuleList) -> x1iM[oyIN.ndarray]:
return [wEf2.cpu().numpy() for bGrB, wEf2 in C3ST.state_dict().items()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wT46(C3ST) -> x1iM[oyIN.ndarray]:\n return [wEf2.cpu().numpy() for bGrB, wEf2 in C3ST.state_dict().items()]",
"def wT46(YKHO):\n return oyIN.concatenate([VTcd.flatten() for VTcd in YKHO.weights])",
"def _mSQ(YKHO):\n return oyIN.array([gEmA.weights for gEmA in YKHO.layers])",
"def wT46(YKHO):\n ... | [
"0.81193143",
"0.794642",
"0.79412854",
"0.7891702",
"0.78866255",
"0.7776982",
"0.7776982",
"0.76775575",
"0.7657573",
"0.7458644",
"0.7405268",
"0.73614734",
"0.7288295",
"0.7283709",
"0.7283709",
"0.7283709",
"0.7282849",
"0.7246441",
"0.72406113",
"0.72245854",
"0.7211124... | 0.0 | -1 |
Generates a random string consisted of lowercase ASCII characters. | def lx9M(u54L):
return ''.join((tuKI.choice(vIwR.ascii_lowercase) for bGrB in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sraz():\n return chr(ord('a') + tuKI.randint(0, 25))",
"def cKm3():\n return tuKI.choice(vIwR.ascii_lowercase)",
"def BWvy():\n gLiZ = vIwR.ascii_lowercase\n return ''.join([tuKI.choice(gLiZ) for WKvO in range(8)])",
"def BWvy():\n KoG3 = vIwR.ascii_lowercase\n return ''.join((tuKI.choi... | [
"0.8385118",
"0.8284199",
"0.76632273",
"0.7401505",
"0.73573744",
"0.7350007",
"0.73221064",
"0.72965574",
"0.72659636",
"0.7257848",
"0.72478235",
"0.72431535",
"0.7231587",
"0.7224598",
"0.7217341",
"0.7200886",
"0.71975714",
"0.7195414",
"0.7186527",
"0.71798545",
"0.7161... | 0.7464199 | 3 |
True, as all users are active. | def ksfB(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBI... | [
"0.75308377",
"0.7392309",
"0.7392309",
"0.7392309",
"0.7392309",
"0.73852575",
"0.73056287",
"0.7290842",
"0.7230901",
"0.72114825",
"0.71813864",
"0.714781",
"0.714781",
"0.7117796",
"0.7107901",
"0.70613724",
"0.7053262",
"0.7051632",
"0.70370287",
"0.70316494",
"0.7010118... | 0.71019155 | 17 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return True",
"def ... | [
"0.84041584",
"0.84041584",
"0.8380213",
"0.8380213",
"0.8380213",
"0.8377405",
"0.83305264",
"0.82501274",
"0.8244858",
"0.81436765",
"0.8103119",
"0.80954605",
"0.807159",
"0.7877262",
"0.7874819",
"0.7860086",
"0.7859498",
"0.77627987",
"0.7724922",
"0.76033795",
"0.757673... | 0.8359979 | 8 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"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.0 | -1 |
sanitize a version so git accepts it as a tag >>> RpmGitRepository._sanitize_tag("0.0.0") '0.0.0' >>> RpmGitRepository._sanitize_tag("0.0~0") '0.0_0' | def JDTF(TZ9E):
return TZ9E.replace('~', '_').replace(':', '%') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ctPW(DpZH: str) -> str:\n if Sgqb(DpZH):\n if len(DpZH) < hyUm:\n raise MjcU\n return DpZH[:hyUm].lower()\n if Y8WM.exists(DpZH):\n return DpZH\n raise MjcU",
"def pUvz(TZ9E):\n return BvuR(TZ9E[TZ9E.rfind('-') + 1:])",
"def afga(Emd4, TZ9E: str) -> str:\n ret... | [
"0.684345",
"0.6648671",
"0.6637935",
"0.65758896",
"0.6485035",
"0.6456908",
"0.63974524",
"0.6336472",
"0.6285587",
"0.627817",
"0.62170774",
"0.62107086",
"0.61222595",
"0.6035173",
"0.6034498",
"0.60328424",
"0.60186106",
"0.60125124",
"0.6001914",
"0.5985048",
"0.5952322... | 0.6727278 | 1 |
Returns set containing all values in A minus intersection(A, B) | def wYL8(k0lF, tjUW):
return k0lF - k0lF.intersection(tjUW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD9S(jzdc, Fg_i):\n return set(b65I(jzdc, Fg_i)) - set(XMlP(jzdc, Fg_i))",
"def XMlP(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def XMlP(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def XMlP(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def _KcC(jzdc, Fg_i):\n re... | [
"0.76819384",
"0.7298861",
"0.7276404",
"0.7238816",
"0.72243035",
"0.7219664",
"0.7219664",
"0.7219664",
"0.7219664",
"0.7219664",
"0.72094524",
"0.72094524",
"0.7179465",
"0.71275586",
"0.69616807",
"0.69552946",
"0.6918149",
"0.68776876",
"0.68671894",
"0.68471116",
"0.680... | 0.7339268 | 1 |
Returns True if a filename has a file extension identifier | def UUsn(Ux0P):
if '.' in Ux0P:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkuR(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in ('png', 'jpg', 'jpeg', 'gif', 'bmp')",
"def Ajuy(Ux0P, YBcr):\n return Ux0P.split('.')[-1].lower() in YBcr",
"def DVFM(Ux0P, CBZq):\n return Ux0P.lower().endswith(CBZq)",
"def DVFM(Ux0P, CBZq):\n return Ux0P.lower().endswith(CBZq)... | [
"0.8386884",
"0.8344747",
"0.8132236",
"0.8132236",
"0.8132236",
"0.8132236",
"0.8132236",
"0.8102975",
"0.80946183",
"0.80764097",
"0.8036632",
"0.80125165",
"0.8010321",
"0.7991658",
"0.7982204",
"0.7980996",
"0.79707706",
"0.7936483",
"0.79218674",
"0.791913",
"0.79124755"... | 0.0 | -1 |
Returns tuples of (x0, y0), (x1, y1) for a circle centered at x, y with radius | def cztK(M_DK, r1VO):
WKvO, LVAh = M_DK
nJ9F, nxyw = (WKvO - r1VO, LVAh - r1VO)
o4D3, si3g = (WKvO + r1VO, LVAh + r1VO)
return [(nJ9F, nxyw), (o4D3, si3g)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SSit(WKvO: float, LVAh: float, YylR: float, r1VO: float) -> AzJI[float, float]:\n Wskb = epAf.radians(YylR)\n return (WKvO + r1VO * epAf.cos(Wskb), LVAh + r1VO * epAf.sin(Wskb))",
"def SSit(YylR, r1VO):\n WKvO = YUNn(Y_1E(YylR)) * r1VO\n LVAh = YhSR(Y_1E(YylR)) * r1VO\n return (WKvO, LVAh)",
... | [
"0.8272155",
"0.81121945",
"0.7966767",
"0.78941196",
"0.7718209",
"0.75861096",
"0.7584841",
"0.7531123",
"0.75303876",
"0.742779",
"0.7426224",
"0.740949",
"0.7348029",
"0.7330782",
"0.7304803",
"0.7282707",
"0.725917",
"0.72572577",
"0.72423667",
"0.7213076",
"0.7197134",
... | 0.8318418 | 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 | 77 |
Updates the current device screens with new data. | def QdZT(YKHO, YTxc: bytes, Ol8d: str=None):
YKHO._data = YTxc
YKHO.update_monitors() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fcWS(YKHO):\n for Vjhr in YKHO.screens:\n Vjhr.update()",
"def udoe(YKHO):\n YKHO.ale.getScreenRGB(YKHO.screen_buffer)",
"def udoe(YKHO, ZCnc=False):\n a9eO.event.pump()\n for tvqc in a9eO.event.get(a9eO.QUIT):\n if tvqc.type == a9eO.QUIT:\n a9eO.quit()\n HwR... | [
"0.81868255",
"0.7314421",
"0.71203274",
"0.69876873",
"0.6896975",
"0.65791494",
"0.6510887",
"0.64387673",
"0.6425235",
"0.6421518",
"0.64072096",
"0.6401065",
"0.63991344",
"0.6395283",
"0.63924295",
"0.63747793",
"0.6368487",
"0.6342184",
"0.6324804",
"0.6283056",
"0.6281... | 0.0 | -1 |
Test the homepage endpoint. | def GvGQ(YKHO) -> None:
with YKHO.app.test_client() as x0hE:
im04 = x0hE.get('/')
YKHO.assertEqual(im04.status_code, 302) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6eW(YKHO):\n im04 = YKHO.app.get('/')\n YKHO.assertTrue(im04.status_code, 200)",
"def GvGQ(YKHO, x0hE):\n geh0 = x0hE.get(nKyW('page.home'))\n assert geh0.status_code == 200",
"def GvGQ(YKHO):\n im04 = YKHO.client.get('/')\n assert im04.status_code == 200",
"def gk60(YKHO):\n geh0 =... | [
"0.8758089",
"0.8568388",
"0.85524815",
"0.85400265",
"0.8501515",
"0.84769326",
"0.84764624",
"0.84534615",
"0.8428907",
"0.84158677",
"0.84107375",
"0.84051317",
"0.8348938",
"0.83387864",
"0.8328171",
"0.8313507",
"0.8310497",
"0.8254708",
"0.82045025",
"0.81987786",
"0.81... | 0.80623025 | 29 |
annotate plot with var1 vs var2 labels | def qmtd(YKHO):
kuGi = A1e9(x='x_annotations', y='y', text='annotation1', text_font_size='8pt', level='overlay', x_offset=0, y_offset=32, source=YKHO.source, render_mode='canvas')
O4x5 = A1e9(x='x_annotations', y='y', text='annotation2', text_font_size='8pt', level='overlay', x_offset=0, y_offset=22, source=YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bMP9(WKvO, LVAh):\n YRbF = WKvO.tolist()\n r845 = LVAh.tolist()\n exwG = list(range(len(LVAh)))\n for G1Hx, FUjE in enumerate(exwG):\n QrM1.annotate(FUjE, (YRbF[G1Hx], r845[G1Hx] + 0.1))",
"def KROw(nPrm, Crrw):\n global labels_and_points\n DFGQ = []\n if nPrm[0].shape[-1] > 2:\n ... | [
"0.6726875",
"0.66534585",
"0.6550018",
"0.6437208",
"0.64258164",
"0.63886696",
"0.63440305",
"0.6270985",
"0.62279725",
"0.62263495",
"0.61514527",
"0.61474043",
"0.6131594",
"0.6120397",
"0.6107179",
"0.6103374",
"0.61025816",
"0.6100051",
"0.6096642",
"0.6095548",
"0.6095... | 0.6114866 | 14 |
Set parameter gradients to zero. If set_to_none = True, gradient will be set to None to save memory. | def frhb(YKHO, hiLq=True):
if YKHO.mixed_precision_mixin is not None:
YKHO.mixed_precision_mixin.pre_zero_grad()
for bGrB, Lwm5 in YKHO._working_param_groups.items():
for xqoZ in Lwm5:
if hiLq:
xqoZ.grad = None
elif xqoZ.grad is not None:
x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frhb(YKHO, hiLq: bool=False):\n if hiLq is False:\n bo34.debug('Despite set_to_none is set to False, opacus will set p.grad_sample to None due to non-trivial gradient accumulation behaviour')\n YKHO.set_grad_sample_to_none()\n super().zero_grad(hiLq)",
"def p4BM(K0do, Aweu=False):\n if not... | [
"0.80057716",
"0.78158253",
"0.75383025",
"0.7497387",
"0.7437366",
"0.7431498",
"0.74156654",
"0.7291914",
"0.7271574",
"0.7271574",
"0.7212098",
"0.7212098",
"0.7136777",
"0.7136777",
"0.7074255",
"0.7065083",
"0.7065083",
"0.7065083",
"0.7065083",
"0.70542186",
"0.7028814"... | 0.8107934 | 0 |
Swap two randomly chosen coords if doing so improves the map. | def eCJX(YKHO):
Jkam = tuKI.choice(YKHO.all_coords_list)
Y_O7 = tuKI.choice(YKHO.all_coords_list)
ZQWX = YKHO.tiles_from_coords[Jkam]
PX9n = YKHO.tiles_from_coords[Y_O7]
H0o7 = YKHO.get_needed_tile(Jkam)
MtZY = YKHO.get_needed_tile(Y_O7)
xgeg = u9sI(ZQWX, H0o7) + u9sI(PX9n, MtZY)
LdtG = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lDJV(QyVM):\n XT48 = [[0, 3], [3, 6], [6, 9]]\n xtRx, Wnwu = tuKI.choice(XT48)\n kWM6, aKRH = tuKI.choice(XT48)\n KdTz = [(WKvO, LVAh) for WKvO in range(xtRx, Wnwu) for LVAh in range(kWM6, aKRH)]\n for WKvO, LVAh in QyVM.starting_points:\n if xtRx <= WKvO < Wnwu and kWM6 <= LVAh < aKRH:\n... | [
"0.69937146",
"0.6866143",
"0.6827608",
"0.68239915",
"0.6773399",
"0.6765674",
"0.6651002",
"0.6605784",
"0.6602258",
"0.6573831",
"0.65543115",
"0.6542751",
"0.651011",
"0.64744467",
"0.64568216",
"0.64254856",
"0.6343019",
"0.6337388",
"0.63360906",
"0.62430257",
"0.624005... | 0.8074544 | 0 |
Refresh the Virtual Machine policies. | def uUrB(YKHO):
YKHO._policies = YKHO._get_policies() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f4U0(YKHO):\n if not YKHO.policy_blob_client:\n YKHO.policy_blob_client = kF3y.get_blob_client_by_uri(YKHO.policy_storage_uri, YKHO.storage_session)\n x0hE, zGKt, y0cW = YKHO.policy_blob_client\n try:\n dIng = [Fg_i for Fg_i in x0hE.list_blobs(zGKt) if NPYu.has_yaml_ext(Fg_i.name)]\n ... | [
"0.57714194",
"0.5692925",
"0.5689732",
"0.55764306",
"0.5530744",
"0.55304956",
"0.5474802",
"0.545956",
"0.5419897",
"0.53542376",
"0.53517884",
"0.53417015",
"0.5313862",
"0.53035414",
"0.52703243",
"0.5205481",
"0.5196987",
"0.5167458",
"0.51391286",
"0.5134287",
"0.50927... | 0.7247048 | 0 |
Gets the Configuration policy id asscoiated with the Configuration policy | def hM6L(YKHO):
eIPf = LzQ2(YKHO._commcell_object)
return eIPf._get_policies()[YKHO._configuration_policy_name.lower()][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSo9(YKHO):\n return YKHO._configuration_policy_id",
"def ulWc(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'policy_id')",
"def ulWc(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'policy_id')",
"def ulWc(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'policy_id')",
"def ulWc(... | [
"0.88077855",
"0.7913266",
"0.7913266",
"0.7854868",
"0.78271496",
"0.7660511",
"0.7585247",
"0.7548139",
"0.7536723",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
"0.7532331",
... | 0.8901396 | 0 |
Initialise the Archive Policy class instance. | def FIMM(YKHO, epQQ, oMtp):
YKHO._commcell_object = epQQ
YKHO._name = oMtp
YKHO._email_policy_type = 1
YKHO._archive_mailbox = False
YKHO._backup_deleted_item_retention = False
YKHO._backup_stubs = False
YKHO._disabled_mailbox = True
YKHO._enable_mailbox_quota = False
YKHO._include_m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, som_=None, Uy8j=None):\n YKHO.policies = som_\n YKHO.policy_groups = Uy8j\n YKHO.policies_dedupped = None",
"def FIMM(Ro_8, *, Qabx: str):\n qe4Y.set(Ro_8, 'policy', Qabx)",
"def FIMM(YKHO, CoLA, f5x1):\n pass",
"def FIMM(YKHO, CoLA, f5x1):\n YKHO._hp = YKHO._default_hparams(... | [
"0.669685",
"0.6692119",
"0.6672129",
"0.6612005",
"0.63051003",
"0.62294084",
"0.6210096",
"0.6201767",
"0.6128578",
"0.612827",
"0.6065668",
"0.60383177",
"0.602842",
"0.60135394",
"0.59622383",
"0.5956795",
"0.59360826",
"0.58821213",
"0.5876812",
"0.5869273",
"0.58656585"... | 0.55459845 | 64 |
Treats the retention_days_for_ci as a readonly attribute. | def uye1(YKHO):
return YKHO._retention_days_for_ci | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uye1(YKHO, uye1):\n YKHO._retention_days_for_ci = uye1",
"def zkeL(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'retention_days')",
"def zkeL(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'retention_days')",
"def RAiD(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO... | [
"0.7709202",
"0.64825726",
"0.64825726",
"0.64824045",
"0.64824045",
"0.64824045",
"0.6473826",
"0.64278495",
"0.63667905",
"0.63536495",
"0.63498384",
"0.6222661",
"0.60005736",
"0.59588",
"0.59588",
"0.5946836",
"0.5891731",
"0.5891731",
"0.58879936",
"0.58879936",
"0.58879... | 0.75545985 | 1 |
sets retention for ContentIndex | def uye1(YKHO, uye1):
YKHO._retention_days_for_ci = uye1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zEkf(YKHO, oC4a):\n if YKHO.retention != oC4a:\n YKHO.modified = True\n YKHO.retention = oC4a",
"def uEWp(YKHO, uEWp):\n YKHO._retention_time = uEWp",
"def SAIH(YKHO):\n return YKHO._retention_type",
"def oC4a(YKHO) -> str:\n return qe4Y.get(YKHO, 'retention')",
"def oC4a(YKHO) ->... | [
"0.7018453",
"0.66381466",
"0.6228319",
"0.61264557",
"0.61264557",
"0.61264557",
"0.61264557",
"0.61264557",
"0.61264557",
"0.61264557",
"0.61264557",
"0.60731274",
"0.6036889",
"0.599603",
"0.599603",
"0.59944266",
"0.5975927",
"0.5926251",
"0.5926251",
"0.5918765",
"0.5905... | 0.630619 | 2 |
Initialise the Journal Policy class instance. | def FIMM(YKHO, epQQ, K8ln):
YKHO._commcell_object = epQQ
YKHO._name = K8ln
YKHO._commserver = epQQ
YKHO._email_policy_type = 4
YKHO._complete_job_mapi_error = 0
YKHO._delete_archived_messages = True
YKHO._job_hours_run = 0
YKHO._job_messages_protected = 1
YKHO._include_folder_filter ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, Qabx: str):\n qe4Y.set(Ro_8, 'policy', Qabx)",
"def FIMM(Ro_8, *, x_IX: pulumi.Input[str], CX3n: pulumi.Input[str]):\n qe4Y.set(Ro_8, 'policy_document', x_IX)\n qe4Y.set(Ro_8, 'policy_name', CX3n)",
"def FIMM(Ro_8, *, x_IX: Any, rysN: pulumi.Input[Sequence[pulumi.Input[str]]]):\n ... | [
"0.6723751",
"0.64818174",
"0.6358003",
"0.6241664",
"0.6221622",
"0.6221182",
"0.62163204",
"0.59850174",
"0.59350413",
"0.59165955",
"0.59083235",
"0.59046954",
"0.5870594",
"0.58630997",
"0.5852648",
"0.58248425",
"0.5762329",
"0.5753377",
"0.57316005",
"0.572588",
"0.5715... | 0.5912029 | 10 |
Treats the retention_days_for_ci as a readonly attribute. | def uye1(YKHO):
return YKHO._retention_days_for_ci | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uye1(YKHO, uye1):\n YKHO._retention_days_for_ci = uye1",
"def zkeL(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'retention_days')",
"def zkeL(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'retention_days')",
"def RAiD(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO... | [
"0.7709202",
"0.64825726",
"0.64825726",
"0.64824045",
"0.64824045",
"0.64824045",
"0.6473826",
"0.64278495",
"0.63667905",
"0.63536495",
"0.63498384",
"0.6222661",
"0.60005736",
"0.59588",
"0.59588",
"0.5946836",
"0.5891731",
"0.5891731",
"0.58879936",
"0.58879936",
"0.58879... | 0.75545985 | 2 |
Initialise the Rentention Policy class instance. | def FIMM(YKHO, epQQ, uEO0):
YKHO._commcell_object = epQQ
YKHO._name = uEO0
YKHO._email_policy_type = 3
YKHO._number_of_days_for_media_pruning = -1
YKHO._retention_type = 0
YKHO._exchange_folder_retention = False
YKHO._exchange_retention_tags = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, Qabx: str):\n qe4Y.set(Ro_8, 'policy', Qabx)",
"def FIMM(YKHO, *qIxc):\n if len(qIxc) == 1:\n sEAN = qIxc[0]\n AU9z = sEAN.nstates\n vG0K = sEAN.nactions\n else:\n sEAN = None\n AU9z = qIxc[0]\n vG0K = qIxc[1]\n JxU2 = oyIN.ones((AU9z, vG0K)... | [
"0.66048974",
"0.64920884",
"0.6250011",
"0.622519",
"0.62090886",
"0.6201969",
"0.6157983",
"0.61453",
"0.61453",
"0.6101347",
"0.60689545",
"0.60689545",
"0.60689545",
"0.60689545",
"0.6068394",
"0.6061931",
"0.60494876",
"0.60229844",
"0.6019689",
"0.6014935",
"0.599607",
... | 0.5574763 | 72 |
Treats the exchange_folder_retention as a readonly attribute. | def QAEx(YKHO):
return YKHO._exchange_folder_retention | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NNBD(YKHO):\n return YKHO._backup_deleted_item_retention",
"def oC4a(YKHO):\n return YKHO._message['retention']",
"def oC4a(YKHO):\n return YKHO._message['retention']",
"def oP16(YKHO) -> laHg.Optional[lTJ4.aws_logs.RetentionDays]:\n return YKHO._values.get('log_retention')",
"def oP16(YKHO... | [
"0.6147604",
"0.6017818",
"0.6017818",
"0.5933656",
"0.5933656",
"0.59258986",
"0.5902619",
"0.5889302",
"0.5855207",
"0.5855207",
"0.585478",
"0.585478",
"0.585478",
"0.585478",
"0.585478",
"0.585478",
"0.585478",
"0.585478",
"0.5853314",
"0.5843753",
"0.58033216",
"0.5716... | 0.7955374 | 0 |
Name of the primary replica of this replica's instance | def r5D3(YKHO):
return YKHO._primaryName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lD_u(YKHO):\n return YKHO._replica_set_name",
"def tXe_(YKHO):\n na1r.debug('Get replica name from %s', YKHO.databaseinfra)\n _zcD = None\n try:\n with YKHO.pymongo() as x0hE:\n YPic = x0hE.admin.command('replSetGetStatus')\n _zcD = YPic.get('set', None)\n except (... | [
"0.80058974",
"0.77668315",
"0.76191235",
"0.7482952",
"0.7401534",
"0.7332604",
"0.70943546",
"0.70943546",
"0.70943546",
"0.705778",
"0.6965094",
"0.6917478",
"0.68261427",
"0.6779824",
"0.6588372",
"0.65544605",
"0.648283",
"0.6479955",
"0.64789385",
"0.64474267",
"0.64332... | 0.7253669 | 6 |
Constructs a ResNet model. | def KOor(**B2fa):
return v3cg(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.7649233",
"0.7376856",
"0.7354889",
"0.72768724",
"0.7195494",
"0.7195494",
"0.71535224",
"0.7097737",
"0.701445",
"0.701445",
"0.701445",
"0.701445",
"0.697802",
"0.69658226",
"0.6954004",
"0.69470996",
"0.69470996",
"0.69470996",
"0.6905179",
"0.6903568",
"0.6891352",
... | 0.0 | -1 |
Return all ``TrackedActor`` objects managed by this manager instance. | def Z7zz(YKHO) -> x1iM[ME1l]:
return YKHO.live_actors + YKHO.pending_actors | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RPfZ(YKHO) -> x1iM[ME1l]:\n return list(YKHO._live_actors_to_ray_actors_resources)",
"def mA6p(YKHO):\n return [YKHO.actor.get_actor()]",
"def mA6p(YKHO) -> x1iM[Zrzj]:\n raise NotImplementedError",
"def mA6p(YKHO) -> x1iM[Zrzj]:\n return list(YKHO._actors.values())",
"def mA6p(YKHO):\n ... | [
"0.73558164",
"0.7261855",
"0.7231044",
"0.7201613",
"0.71174484",
"0.71174484",
"0.694449",
"0.68797135",
"0.6836512",
"0.6796557",
"0.6796557",
"0.6785893",
"0.6771863",
"0.6745002",
"0.6728168",
"0.6691144",
"0.6627567",
"0.6598321",
"0.65721035",
"0.65364933",
"0.6508124"... | 0.79155654 | 0 |
Return all ``TrackedActor`` objects that are currently alive. | def RPfZ(YKHO) -> x1iM[ME1l]:
return list(YKHO._live_actors_to_ray_actors_resources) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7zz(YKHO) -> x1iM[ME1l]:\n return YKHO.live_actors + YKHO.pending_actors",
"def gig7(YKHO) -> bDy6[Zrzj]:\n yield from (LEXu for LEXu in YKHO.entities if isinstance(LEXu, Zrzj) and LEXu.is_alive)",
"def gig7(YKHO) -> bDy6[Zrzj]:\n yield from (LEXu for LEXu in YKHO.entities if isinstance(LEXu, Zrz... | [
"0.7563422",
"0.67523503",
"0.6681179",
"0.66156214",
"0.65331",
"0.6413345",
"0.63984555",
"0.6315866",
"0.62944037",
"0.6291951",
"0.6284761",
"0.621074",
"0.6196805",
"0.6174626",
"0.6174626",
"0.6083509",
"0.60719657",
"0.60380083",
"0.60359794",
"0.60275537",
"0.60275537... | 0.75505763 | 1 |
Return all ``TrackedActor`` objects that are currently pending. | def fZlI(YKHO) -> x1iM[ME1l]:
return list(YKHO._pending_actors_to_attrs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7zz(YKHO) -> x1iM[ME1l]:\n return YKHO.live_actors + YKHO.pending_actors",
"def lJu4(YKHO):\n return list(YKHO.queue)",
"def IPXR(Emd4):\n beOw = cuiw.query(cawz).filter_by(state=Emd4.State.PENDING).all()\n return beOw",
"def IPXR(Emd4):\n beOw = cuiw.query(b4mI).filter_by(state=Emd4.Stat... | [
"0.7021403",
"0.6657201",
"0.6535576",
"0.6476712",
"0.64427924",
"0.635775",
"0.6321143",
"0.62884355",
"0.6282678",
"0.62424",
"0.60114366",
"0.59623873",
"0.583443",
"0.5831621",
"0.5824634",
"0.58053017",
"0.57670814",
"0.57645863",
"0.57586294",
"0.57536745",
"0.5747583"... | 0.81579447 | 0 |
Return number of started actors. | def FIST(YKHO):
return len(YKHO.live_actors) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBSS(YKHO):\n return len(YKHO.started)",
"def i8Iu(YKHO):\n return YKHO._actor_task_events.num_futures",
"def h9Kl(YKHO) -> int:\n return len(YKHO.pending_actors)",
"def QvQA(YKHO):\n return len(YKHO.all_actors)",
"def UHFx(YKHO) -> int:\n return sum((1 for yzQ0 in YKHO.worker_list if yz... | [
"0.7527832",
"0.725171",
"0.7210399",
"0.7044676",
"0.69770414",
"0.697641",
"0.6824875",
"0.68227077",
"0.67742676",
"0.6740457",
"0.6685309",
"0.66227186",
"0.657438",
"0.65686023",
"0.65677637",
"0.6530931",
"0.65016323",
"0.64935833",
"0.64598405",
"0.64598405",
"0.645052... | 0.7375243 | 1 |
Return number of pending (not yet started) actors. | def h9Kl(YKHO) -> int:
return len(YKHO.pending_actors) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i8Iu(YKHO):\n return YKHO._actor_task_events.num_futures",
"def FIST(YKHO):\n return len(YKHO.live_actors)",
"def UHFx(YKHO) -> int:\n return sum((1 for yzQ0 in YKHO.worker_list if yzQ0.is_alive()))",
"def GBx4(YKHO):\n return len(YKHO._channels[YKHO.channel_name])",
"def UHFx(YKHO) -> int:... | [
"0.75796115",
"0.7051507",
"0.704231",
"0.6818186",
"0.6813825",
"0.68057156",
"0.6742169",
"0.67223",
"0.6712951",
"0.6668108",
"0.6593847",
"0.6530716",
"0.65201294",
"0.6519958",
"0.6509812",
"0.6491616",
"0.64842945",
"0.6466688",
"0.6413394",
"0.6404004",
"0.6373118",
... | 0.8370497 | 0 |
Parses the labels dict and returns just the names of the labels. | def lUKv(QU5q):
QXyl = [uxij['name'] for uxij in QU5q]
return ','.join(QXyl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Crrw(YKHO):\n geh0 = G4JS.get(YKHO._url_labels, headers=YKHO._headers)\n assert geh0.ok, geh0.content\n return [UXqs['name'] for UXqs in geh0.json()]",
"def Crrw(YKHO):\n return YKHO.get('labels')",
"def Te1x(YKHO):\n laS3 = {}\n assert Hy7s.path.exists(YKHO.label_file)\n rVmU = open(Y... | [
"0.75059116",
"0.68683267",
"0.6859577",
"0.684392",
"0.68071276",
"0.68057674",
"0.68057674",
"0.68056595",
"0.68056595",
"0.68056595",
"0.68056595",
"0.68056595",
"0.68056595",
"0.68056595",
"0.68056595",
"0.6795515",
"0.6776849",
"0.6752678",
"0.6752678",
"0.6749623",
"0.6... | 0.0 | -1 |
Aggregates IPv4 or IPv6 prefixes. Gets a list of unsorted IPv4 or IPv6 prefixes and returns a sorted iterable of aggregates. | def sVhh(tX49, BcCR=128, G34s=False, dsE5=False):
tX49 = sorted([XP5J for XP5J in [SwOd.ip_network(XP5J, False) for XP5J in tX49] if XP5J.prefixlen <= BcCR], key=lambda XP5J: (XP5J.network_address, XP5J.prefixlen))
if dsE5:
print('PREFIXES: %s\n' % ', '.join([str(bGrB) for bGrB in tX49]), file=HwRy.stde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RGND(YKHO, vCJn, y0cW):\n return [WRl1(vCJn, y0cW)]",
"def bjT3(pLoh):\n global rx_ipv4_end_ones\n CmMi = set([])\n if pLoh is None:\n return CmMi\n for kUBT in yasr.finditer(pLoh):\n if kUBT is None:\n continue\n CmMi.add(kUBT.groupdict()['ip'])\n return CmM... | [
"0.6032167",
"0.6013598",
"0.583795",
"0.5513401",
"0.54770476",
"0.5433909",
"0.5404176",
"0.53661865",
"0.5343497",
"0.5313361",
"0.5302753",
"0.52145725",
"0.5187117",
"0.5182157",
"0.51693356",
"0.5158649",
"0.51445633",
"0.51424366",
"0.5140861",
"0.5129193",
"0.51228535... | 0.6569959 | 0 |
Will raise a validation error if the username submitted from the form already exists in the database. | def Z3WL(YKHO, NtEF):
CBIr = mv1M.query.filter_by(username=NtEF.data).first()
if CBIr:
raise sUXu('The username is already taken. Please try a different one.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z3WL(L03z, Jyyj):\n if mv1M.query.filter(mv1M.username == Jyyj.data).first():\n raise sUXu('User name already in use.')",
"def Z3WL(L03z, Jyyj):\n if mv1M.objects.filter(username=Jyyj.data).first():\n raise sUXu('Username already exists.')",
"def Z3WL(YKHO, NtEF):\n if NtEF.data != c... | [
"0.8724023",
"0.8647194",
"0.8635769",
"0.8524888",
"0.8452993",
"0.8450828",
"0.84383166",
"0.8320766",
"0.8309684",
"0.8299581",
"0.8194604",
"0.8143006",
"0.8134315",
"0.8124158",
"0.8048873",
"0.80174786",
"0.799676",
"0.7958412",
"0.7947107",
"0.79302216",
"0.7913436",
... | 0.84169376 | 7 |
Will raise a validation error if the email submitted from the form already exists in the database | def Bt7w(YKHO, D3lj):
CBIr = mv1M.query.filter_by(email=D3lj.data).first()
if CBIr:
raise sUXu('The email you entered is already registered. Please try a different one.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bt7w(L03z, Jyyj):\n if CBIr.Account.Retrieve.find_account_by_email(L03z.email.data):\n raise sUXu('The email address already exists')",
"def Bt7w(YKHO, D3lj):\n _fe8 = mv1M.query.filter_by(email=D3lj.data).first()\n if _fe8:\n Dwep('Email already registered. try another', 'warning')\n ... | [
"0.83108747",
"0.8282083",
"0.8206872",
"0.82029873",
"0.8090768",
"0.80804676",
"0.8019507",
"0.79772246",
"0.7969501",
"0.7918692",
"0.7873897",
"0.7873807",
"0.78652406",
"0.7864802",
"0.7855264",
"0.7829416",
"0.7826846",
"0.7794622",
"0.7715025",
"0.77086467",
"0.7704617... | 0.8055361 | 6 |
Checks if the user has selected gender either Male or Female from the Select Field. | def lSs2(YKHO, EE3v):
if EE3v.data == 'Gender':
raise sUXu('You need to select your gender.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RKMB(YKHO):\n return YKHO.get_gender() in YKHO.female_codes",
"def KKmm(YKHO):\n return YKHO.get_gender() in YKHO.male_codes",
"def RKMB(YKHO):\n return int(YKHO.gender_code) % 2 == 0",
"def KKmm(YKHO):\n return int(YKHO.gender_code) % 2 != 0",
"def i7nD(QdZT, QpfX):\n ABDL = QdZT.callba... | [
"0.6832628",
"0.6798656",
"0.6744328",
"0.6705258",
"0.64660007",
"0.64325243",
"0.6392825",
"0.6245052",
"0.6195522",
"0.61681414",
"0.61434454",
"0.611129",
"0.60632366",
"0.60490507",
"0.60136616",
"0.5949437",
"0.5910389",
"0.5910389",
"0.58881456",
"0.58290267",
"0.58243... | 0.74363476 | 0 |
Check if the user has provided the other name and if the length is within the number of allowed characters. If the user hasn't provided input, it will be ignored. | def Am4j(YKHO, oGE4):
if 0 < len(oGE4.data) < 2:
raise sUXu('Field must be between 2 and 30 characters long.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPfX(YKHO, EzGk, RcHO):\n QUXy = PVKc(EzGk, RcHO)\n QUXy.create_new_input.select('Example Input Two')\n QUXy.entity2.example_account.wait_for_values()\n buEH = 'a' * 101\n QUXy.entity2.name.set_value(buEH)\n YKHO.assert_util(QUXy.entity2.save, 'Length of input name should be between 1 and 100... | [
"0.7126126",
"0.7069837",
"0.70694417",
"0.6908036",
"0.68846554",
"0.6859956",
"0.6833756",
"0.68165076",
"0.6733606",
"0.67334753",
"0.66698647",
"0.6638375",
"0.6637046",
"0.66356874",
"0.65801764",
"0.6568415",
"0.65106016",
"0.6492167",
"0.6490949",
"0.6483439",
"0.64813... | 0.73128915 | 0 |
Will only do these validation checks if the username or email the user enters is different than the current_user username and email address. | def Z3WL(YKHO, NtEF):
if NtEF.data != c5ow.username:
CBIr = mv1M.query.filter_by(username=NtEF.data).first()
if CBIr:
raise sUXu('The username is already taken. Please try a different one.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0SS(YKHO):\n if mv1M.objects.filter(username=YKHO.cleaned_data['username']).exists():\n NtEF = mv1M.objects.get(username=YKHO.cleaned_data['username']).username\n if NtEF != YKHO.user.username:\n raise sUXu(ynrQ.UNIQUE_USERNAME, ynrQ.UNIQUE_USERNAME_CODE)\n if mv1M.objects.filte... | [
"0.7625469",
"0.7505693",
"0.7474754",
"0.7416263",
"0.74017155",
"0.7348789",
"0.73046696",
"0.7206036",
"0.7206036",
"0.7206036",
"0.7205961",
"0.7187421",
"0.718465",
"0.7175947",
"0.7158148",
"0.7096387",
"0.70925164",
"0.70550233",
"0.70527625",
"0.7041354",
"0.7013558",... | 0.6783463 | 49 |
Will raise a validation errors if the email submitted from the form already exists in the database | def Bt7w(YKHO, D3lj):
if D3lj.data != c5ow.email:
CBIr = mv1M.query.filter_by(email=D3lj.data).first()
if CBIr:
raise sUXu('The email you entered is already registered. Please try a different one.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bt7w(YKHO, D3lj):\n _fe8 = mv1M.query.filter_by(email=D3lj.data).first()\n if _fe8:\n Dwep('Email already registered. try another', 'warning')\n raise sUXu('Email already registered. try another')",
"def Bt7w(L03z, Jyyj):\n if CBIr.Account.Retrieve.find_account_by_email(L03z.email.data... | [
"0.8045089",
"0.80115056",
"0.79633886",
"0.7868292",
"0.77822477",
"0.7706792",
"0.7701862",
"0.7669444",
"0.7656536",
"0.7648008",
"0.7641707",
"0.7639177",
"0.7581705",
"0.7531073",
"0.752269",
"0.7520874",
"0.75034356",
"0.7479403",
"0.7477587",
"0.7457288",
"0.7457191",
... | 0.7628068 | 12 |
Check if the user has provided the other name and if the length is within the number of allowed characters. If the user hasn't provided input, it will be ignored. | def Am4j(YKHO, oGE4):
if 0 < len(oGE4.data) < 2:
raise sUXu('Field must be between 2 and 30 characters long.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPfX(YKHO, EzGk, RcHO):\n QUXy = PVKc(EzGk, RcHO)\n QUXy.create_new_input.select('Example Input Two')\n QUXy.entity2.example_account.wait_for_values()\n buEH = 'a' * 101\n QUXy.entity2.name.set_value(buEH)\n YKHO.assert_util(QUXy.entity2.save, 'Length of input name should be between 1 and 100... | [
"0.71251637",
"0.70710504",
"0.70703083",
"0.6909061",
"0.68856937",
"0.6861828",
"0.6835435",
"0.6818337",
"0.6734635",
"0.6733492",
"0.6671611",
"0.6639354",
"0.6637078",
"0.66361076",
"0.6581552",
"0.6568923",
"0.6510385",
"0.64927167",
"0.64926517",
"0.6484638",
"0.648342... | 0.7312547 | 1 |
Checks if the user has selected gender either Male or Female from the Select Field. | def lSs2(YKHO, EE3v):
if EE3v.data == 'Gender':
raise sUXu('You need to select your gender.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RKMB(YKHO):\n return YKHO.get_gender() in YKHO.female_codes",
"def KKmm(YKHO):\n return YKHO.get_gender() in YKHO.male_codes",
"def RKMB(YKHO):\n return int(YKHO.gender_code) % 2 == 0",
"def KKmm(YKHO):\n return int(YKHO.gender_code) % 2 != 0",
"def i7nD(QdZT, QpfX):\n ABDL = QdZT.callba... | [
"0.6830013",
"0.6795306",
"0.6742106",
"0.6702571",
"0.6466275",
"0.6431873",
"0.6392674",
"0.6244895",
"0.619502",
"0.6167557",
"0.6143032",
"0.6110653",
"0.60632396",
"0.6047989",
"0.6013368",
"0.5948143",
"0.5910621",
"0.5910621",
"0.588747",
"0.5827651",
"0.5824693",
"0... | 0.74361956 | 1 |
Checks if the user has selected gender either Male or Female from the Select Field. | def dY8y(YKHO, type):
if type.data == 'Select':
raise sUXu('You need to select your property listing type.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSs2(YKHO, EE3v):\n if EE3v.data == 'Gender':\n raise sUXu('You need to select your gender.')",
"def lSs2(YKHO, EE3v):\n if EE3v.data == 'Gender':\n raise sUXu('You need to select your gender.')",
"def RKMB(YKHO):\n return YKHO.get_gender() in YKHO.female_codes",
"def KKmm(YKHO):\n... | [
"0.7436868",
"0.7436868",
"0.6831494",
"0.6797414",
"0.67433727",
"0.67043966",
"0.64657754",
"0.6432435",
"0.63945234",
"0.624589",
"0.6195899",
"0.6169073",
"0.61441606",
"0.61114144",
"0.6064413",
"0.60492945",
"0.60143393",
"0.59501415",
"0.59115857",
"0.59115857",
"0.588... | 0.0 | -1 |
calculate the algebraic distance between the data points and the mean circle centered at c=(xc, yc) | def ez0h(YKHO, Z9rn):
W8At = YKHO.calc_R(*Z9rn)
return W8At - W8At.mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JKS4(hkuO, Gp5U, _M41, Jm8X):\n return epAf.sqrt((hkuO - _M41) ** 2 + (Gp5U - Jm8X) ** 2)",
"def pImw(WKvO, LVAh, g0Hx=0.0, dlau=0.0):\n return oyIN.sqrt((WKvO - g0Hx) ** 2 + (LVAh - dlau) ** 2)",
"def e6ux(nPrm, WKvO, LVAh):\n g0Hx = oyIN.dot(WKvO, oyIN.sum(nPrm, axis=1))\n dlau = oyIN.dot(LVA... | [
"0.7233904",
"0.71729755",
"0.6996696",
"0.682899",
"0.67675865",
"0.6647583",
"0.66052604",
"0.6575291",
"0.65183413",
"0.6454857",
"0.64427876",
"0.6415339",
"0.6389344",
"0.6389344",
"0.6389344",
"0.6365088",
"0.6355415",
"0.6342047",
"0.6335943",
"0.63204014",
"0.6274522"... | 0.0 | -1 |
Dequeue an item from the queue. 1) If both stacks are empty, return stack is empty. 2) If rear_stack is empty While front_stack is not empty, push everything from front_stack to rear_stack. 3) Pop the element from rear_stack and return it. | def he0F(YKHO):
if YKHO.rear_stack.isEmpty():
while YKHO.len > 0:
YKHO.rear_stack.push(YKHO.front_stack.pop())
YKHO.len -= 1
hlel = YKHO.rear_stack.pop()
while True:
YKHO.front_stack.push(YKHO.rear_stack.pop())
YKHO.len += 1
if YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def he0F(YKHO):\n while YKHO.rear.top:\n ycBG = YKHO.rear.pop()\n YKHO.front.push(ycBG)\n Aofo = YKHO.front.pop()\n while YKHO.front.top:\n ycBG = YKHO.front.pop()\n YKHO.rear.push(ycBG)\n return Aofo",
"def he0F(YKHO):\n if YKHO.stack2.is_empty():\n while not YK... | [
"0.80878705",
"0.7834599",
"0.776978",
"0.7751395",
"0.774307",
"0.7714169",
"0.7712239",
"0.76537484",
"0.7637074",
"0.7587915",
"0.7582171",
"0.7475555",
"0.7374175",
"0.7342189",
"0.7322783",
"0.72690785",
"0.7261908",
"0.72562647",
"0.7199429",
"0.71987355",
"0.71833897",... | 0.79689264 | 1 |
Get the title of this panel. | def Upwb(YKHO):
return 'Add New Plugin' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Upwb(YKHO) -> str:\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO.__tit... | [
"0.83296597",
"0.8322484",
"0.8322484",
"0.8322484",
"0.82917887",
"0.82917887",
"0.82656133",
"0.82656133",
"0.82656133",
"0.82656133",
"0.8230227",
"0.8230227",
"0.822311",
"0.8209185",
"0.8209185",
"0.8209185",
"0.8209185",
"0.8209185",
"0.8209185",
"0.8209185",
"0.8209185... | 0.0 | -1 |
Returns an iterator over the graph nodes. | def Ziit(yvY1):
return yvY1.nodes() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n for Q6kx in YKHO.graph.nodes():\n yield Q6kx",
"def m_jz(YKHO) -> jd6F:\n pass",
"def m_jz(YKHO):\n return YKHO.nodes()",
"def xy5H(YKHO):\n return iter(YKHO._nodes.values())",
"def Ziit(YKHO) -> bDy6[PeJD]:\n return iter(YKHO._nodes.values())",
"def Ziit(YKHO) -> ... | [
"0.822575",
"0.8169527",
"0.80244106",
"0.7904452",
"0.78847474",
"0.7813013",
"0.7690906",
"0.7616545",
"0.749441",
"0.74454063",
"0.7421054",
"0.7291373",
"0.72835153",
"0.7280139",
"0.7256946",
"0.71385306",
"0.7134718",
"0.7102219",
"0.70196205",
"0.6917516",
"0.6909129",... | 0.6930459 | 19 |
Returns the number of nodes in the graph. | def OtzW(yvY1):
return yvY1.number_of_nodes() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OtzW(YKHO):\n return YKHO.graph.number_of_nodes()",
"def OtzW(YKHO):\n return YKHO._graph.number_of_nodes()",
"def kRap(pNZh):\n return len(pNZh)",
"def EKkU(YKHO) -> int:\n return YKHO._graph.number_of_nodes()",
"def Kytq(YKHO):\n return len(YKHO.graph.keys())",
"def OtzW(YKHO):\n ... | [
"0.90618604",
"0.8945022",
"0.8883035",
"0.8852245",
"0.8790427",
"0.87666845",
"0.8646193",
"0.8613755",
"0.8606285",
"0.8601599",
"0.8522228",
"0.85159",
"0.8512301",
"0.8507118",
"0.8490328",
"0.8445764",
"0.84268975",
"0.8400176",
"0.8400176",
"0.83886504",
"0.83573",
"... | 0.8674678 | 6 |
Returns the number of edges in the graph. | def fOCg(yvY1):
return yvY1.number_of_edges() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOCg(YKHO):\n return YKHO.graph.number_of_edges()",
"def fOCg(YKHO):\n return YKHO._graph.number_of_edges()",
"def n8F9(YKHO) -> int:\n return YKHO.__edge_count",
"def fOCg(YKHO):\n return len(list(YKHO.graph.edges()))",
"def hSVo(pNZh):\n return rrLg.numEdges(pNZh)",
"def DY3m(YKHO):\... | [
"0.8996958",
"0.8880472",
"0.873986",
"0.87194586",
"0.8712624",
"0.87115234",
"0.8643696",
"0.8635048",
"0.8619413",
"0.8595663",
"0.85463494",
"0.85428077",
"0.85428077",
"0.852016",
"0.852016",
"0.85110235",
"0.8506986",
"0.84875965",
"0.84487945",
"0.84284735",
"0.841844"... | 0.8648285 | 6 |
Returns a SubGraph view of `G` showing only nodes in nbunch. The induced subgraph of a graph on a set of nodes N is the graph with nodes N and edges from G which have both ends in N. | def Ubqc(yvY1, q6sX):
C0cP = jHsn.filters.show_nodes(yvY1.nbunch_iter(q6sX))
return jHsn.graphviews.subgraph_view(yvY1, C0cP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RCEU(yvY1, q6sX):\n return yvY1.subgraph(q6sX)",
"def RCEU(YKHO, q6sX):\n s6TG = YKHO.graph.subgraph(q6sX)\n o4sw = Q1Kq()\n o4sw.graph = s6TG\n return o4sw",
"def mC4V(yvY1, q6sX=None):\n return yvY1.edges(q6sX)",
"def RCEU(YKHO, q6sX):\n MiKf = YKHO.nbunch_iter(q6sX)\n C7Ls = YK... | [
"0.8400404",
"0.7658595",
"0.71384436",
"0.6972935",
"0.69482404",
"0.6895763",
"0.68585426",
"0.68502414",
"0.6371643",
"0.63365453",
"0.62854606",
"0.62392646",
"0.6214359",
"0.62055975",
"0.6171061",
"0.6106631",
"0.60324585",
"0.6018961",
"0.5980741",
"0.59421927",
"0.589... | 0.83132744 | 1 |
Returns the nonneighbors of the node in the graph. | def aUE4(pNZh, Q6kx):
hkix = set(A_IW(pNZh, Q6kx)) | {Q6kx}
return (gtv6 for gtv6 in pNZh if gtv6 not in hkix) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rni2(pNZh):\n return [Q6kx for Q6kx in pNZh.nodes() if pNZh.out_degree(Q6kx) > 0]",
"def LeUD(zwwc):\n assert zwwc.neighbors(99) == []",
"def AFy6(pNZh):\n if pNZh.is_directed():\n for P6bq in pNZh:\n for Ty9i in aUE4(pNZh, P6bq):\n yield (P6bq, Ty9i)\n else:\n ... | [
"0.7159133",
"0.6976249",
"0.66512996",
"0.65734947",
"0.64966685",
"0.6484994",
"0.646606",
"0.64632803",
"0.64624524",
"0.6454345",
"0.64151305",
"0.63402456",
"0.63235754",
"0.62817043",
"0.62725234",
"0.62705475",
"0.6269237",
"0.623117",
"0.6184575",
"0.61509734",
"0.613... | 0.8113577 | 0 |
Returns True if `G` has no edges. | def FBfn(yvY1):
return not any(yvY1.adj.values()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HY_j(YKHO):\n for G1Hx in YKHO._graph.keys():\n if len(YKHO._graph[G1Hx]) > 0:\n return True\n return False",
"def FLq8(pNZh):\n return True if len(pNZh.nodes()) == 0 else False",
"def HY_j(YKHO):\n return len(YKHO._edges) > 0",
"def CSuK(yvY1):\n if jHsn.number_of_selflo... | [
"0.7908431",
"0.7759031",
"0.761282",
"0.7339985",
"0.72740656",
"0.71972966",
"0.7143695",
"0.707495",
"0.70208395",
"0.69562227",
"0.69550365",
"0.6752508",
"0.6749865",
"0.6728384",
"0.6695977",
"0.66833615",
"0.66726494",
"0.6656446",
"0.6642943",
"0.6624059",
"0.66213095... | 0.813847 | 0 |
Returns an iterator over nodes with self loops. A node with a self loop has an edge with both ends adjacent to that node. Returns | def byRN(yvY1):
return (exwG for exwG, myQS in yvY1.adj.items() if exwG in myQS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n Q6kx = YKHO.head\n while Q6kx is not None:\n yield Q6kx\n Q6kx = Q6kx.next",
"def Vs4Q(YKHO):\n if YKHO.gorm.caching:\n wyyA = YKHO.gorm._edges_cache[YKHO.graph.name]\n PwWw = False\n for n7rZ in wyyA:\n for aS5z in wyyA[n7rZ]:\n ... | [
"0.7086867",
"0.70033264",
"0.6992337",
"0.69555545",
"0.69448096",
"0.69431436",
"0.693354",
"0.692008",
"0.6918445",
"0.6902087",
"0.68987745",
"0.67877185",
"0.6764944",
"0.6761188",
"0.675648",
"0.67499167",
"0.67044353",
"0.6671592",
"0.6649934",
"0.66486317",
"0.6634394... | 0.6484063 | 34 |
Returns an iterator over selfloop edges. A selfloop edge has the same node at both ends. | def Bwkg(yvY1, nPrm=False, sjXb=False, WmM4=None):
if nPrm is True:
if yvY1.is_multigraph():
if sjXb is True:
return ((exwG, exwG, G1Hx, Csk6) for exwG, myQS in yvY1.adj.items() if exwG in myQS for G1Hx, Csk6 in myQS[exwG].items())
else:
return ((exwG,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDFt(YKHO):\n ewCu = 0\n\n def X73w(Q6kx):\n nonlocal counter\n KOdv = ewCu\n if not Q6kx.is_leaf():\n for ZGx0, aUGN in Q6kx._children.items():\n ewCu += 1\n yield (KOdv, ewCu, Q6kx, aUGN, ZGx0)\n if not aUGN.is_leaf():\n ... | [
"0.7057718",
"0.69405013",
"0.6937974",
"0.6916459",
"0.6731083",
"0.6631759",
"0.6601266",
"0.6568991",
"0.6561446",
"0.6555598",
"0.6532119",
"0.65190816",
"0.6517655",
"0.64497054",
"0.6440829",
"0.6409242",
"0.6409242",
"0.6397126",
"0.6380577",
"0.63803554",
"0.6364103",... | 0.0 | -1 |
Returns the number of selfloop edges. A selfloop edge has the same node at both ends. Returns | def pNke(yvY1):
return sum((1 for bGrB in jHsn.selfloop_edges(yvY1))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SNT_(YKHO):\n exwG = 0\n for tTpl in YKHO.edges():\n if tTpl.start == tTpl.end:\n exwG += 1\n return exwG",
"def twsw(YKHO) -> int:\n pass",
"def INDS(pNZh: nx.Graph) -> int:\n csn0 = list(jHsn.selfloop_edges(pNZh))\n pNZh.remove_edges_from(csn0)\n return len(csn0)",
... | [
"0.8129778",
"0.7517529",
"0.74728906",
"0.723425",
"0.723425",
"0.7222677",
"0.71268743",
"0.7040869",
"0.703978",
"0.70358795",
"0.70330155",
"0.7012294",
"0.7006968",
"0.7006624",
"0.700137",
"0.700137",
"0.6997451",
"0.69944793",
"0.6978631",
"0.6978631",
"0.69519913",
... | 0.8487131 | 0 |
Return the unique_id of the sensor. | def ShR8(YKHO):
return f'{YKHO.coordinator._satellite}_location' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']",
"def ShR8(YKHO):\n return f'{YKHO._device.uuid}-SENSOR'",
"def qi1f(YKHO):\n return YKHO.__sensor_id",
"def ShR8(YKHO) -> str:\n return '{}-{}'.format(YKHO.flume.device_id, YKHO.sensor_type)",
"def ShR8(YKHO):\n return ... | [
"0.89384866",
"0.8703562",
"0.84113604",
"0.8391379",
"0.83407027",
"0.82912207",
"0.827439",
"0.82505363",
"0.8239416",
"0.8171956",
"0.8169361",
"0.8167628",
"0.81626177",
"0.81504",
"0.8130695",
"0.8122951",
"0.81149733",
"0.80952007",
"0.80952007",
"0.8045448",
"0.8016432... | 0.0 | -1 |
Return the current latitude of the satellite. | def _UuI(YKHO):
return YKHO.coordinator.data['positions']['positions'][0]['satlatitude'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL",
"def _UuI(YKHO):\n return YKHO._gps.latitude",
"def _UuI(YKHO):\n hLRM = YKHO._get_origin()\n return hLRM.latitude",
"def TujQ(YKHO):\n return YKHO.STEM_lat",
"def TujQ(YKHO):\n return YKHO._lat",
"def _UuI(YKHO):\n return ... | [
"0.8136973",
"0.81025136",
"0.8049863",
"0.8044984",
"0.80262876",
"0.8010575",
"0.80043066",
"0.79923123",
"0.79702723",
"0.79454595",
"0.79272",
"0.79272",
"0.7898517",
"0.78910315",
"0.7872565",
"0.780908",
"0.779228",
"0.7765676",
"0.776219",
"0.7756159",
"0.7740218",
"... | 0.83806115 | 0 |
Return the current longitude of the satellite. | def fopC(YKHO):
return YKHO.coordinator.data['positions']['positions'][0]['satlongitude'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fopC(YKHO):\n return YKHO._gps.longitude",
"def fopC(YKHO) -> str:\n return qe4Y.get(YKHO, 'longitude')",
"def fopC(YKHO):\n return YKHO._location[1]",
"def fopC(YKHO):\n FDPT = YKHO._lat_lon[1]\n return FDPT",
"def fopC(YKHO):\n hLRM = YKHO._get_origin()\n return hLRM.longitude",
... | [
"0.84417105",
"0.8399682",
"0.83931565",
"0.8351395",
"0.8325071",
"0.8318836",
"0.82147884",
"0.82018006",
"0.8196759",
"0.81579864",
"0.8149028",
"0.8147232",
"0.8136575",
"0.8125216",
"0.81118083",
"0.81118083",
"0.81118083",
"0.81118083",
"0.81118083",
"0.80911267",
"0.80... | 0.87347966 | 0 |
Gets the list of arguments provided from the terminal. | def qElm():
wvEv = j1Jz.ArgumentParser(description='ForcedAlignment-example')
wvEv.add_argument('--sample-path', type=str, default='../../TIDIGITS/disc_4.1.1/tidigits/train/man/ae/7a.wav', help='Path to the file to be used for the example.')
wvEv.add_argument('--hmm-models-path', type=str, default=o5DN, hel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwTO(YKHO) -> x1iM[str]:\n return YKHO.m_argv",
"def rwTO(YKHO) -> x1iM[str]:\n qIxc = YKHO.console.input('[green]Enter your args separated by comma:[/green] ')\n return [WKvO for WKvO in qIxc.strip().split(',') if WKvO]",
"def BV7_(YKHO):\n YKHO.process.sendline(E4Ah)\n YKHO.process.expect(... | [
"0.80511844",
"0.77571964",
"0.7447175",
"0.7385965",
"0.7373842",
"0.7371228",
"0.7365953",
"0.73533064",
"0.7330395",
"0.7299263",
"0.72461146",
"0.72391057",
"0.7224128",
"0.71889925",
"0.71644914",
"0.7157546",
"0.7152874",
"0.71480155",
"0.7121044",
"0.7121044",
"0.71108... | 0.0 | -1 |
Create a paginator for an operation. | def oL8A(YKHO, hTqE: str=None) -> NIbP:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n pass",
"def oL8A(hTqE=None):\n p... | [
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"0.7726925",
"... | 0.76366186 | 35 |
Given the coefficients of an ellipse in 2D and a binary image, return the angle required to align the image to the principal axes of the ellipse (with the longest axis as the first major 'hump' on the left). | def UXfE(GUUu, LNo8):
TvVm, uJTU, Wuf8 = GUUu[:3]
GFYU = uJTU / (TvVm - Wuf8)
if not oyIN.isinf(GFYU):
YylR = U33K(-0.5 * oyIN.arctan(GFYU))
z2tq = V2fX.rotate(LNo8, YylR, order=0)
try:
H2v2, TVTK = z2tq[V2fX.find_objects(z2tq)[0]].shape
except IndexError:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hGRV(YKHO, jzdc):\n Fg_i, Z9rn, bGrB, bGrB, bGrB, jzdc = (jzdc[1] / 2, jzdc[2], jzdc[3] / 2, jzdc[4] / 2, jzdc[5], jzdc[0])\n return 0.5 * oyIN.arctan(2 * Fg_i / (jzdc - Z9rn))",
"def dK3b(V6IE, MDvv=True):\n FhiQ, tRvh, PBav, AB1t = lAQR(V6IE)\n Cwt5 = oyIN.arctan2(AB1t[1], AB1t[0])\n sLjg = ... | [
"0.69958574",
"0.67906857",
"0.6513608",
"0.64782643",
"0.64174515",
"0.63779366",
"0.6309372",
"0.6299138",
"0.62507063",
"0.6232878",
"0.61642885",
"0.613507",
"0.60789585",
"0.5959299",
"0.59155846",
"0.58906883",
"0.5887223",
"0.58761215",
"0.5869671",
"0.58568317",
"0.58... | 0.70197666 | 0 |
Adds a Sheriff entity to the datastore. | def hiQ2(YKHO, mWFP, D3lj=None, bD7m=None, tBMY=False, eQkO=False, b6H_=None, eDxN=0, Crrw=None):
FMG6.Sheriff(id=mWFP, email=D3lj, url=bD7m, internal_only=tBMY, summarize=eQkO, patterns=b6H_ or [], stoppage_alert_delay=eDxN, labels=Crrw or []).put() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, Z7gF):\n pass",
"def H2v5(YKHO, LEXu):\n raise NotImplementedError('add')",
"def H2v5(YKHO, LEXu: dict):\n YKHO._collection.insert_one(LEXu)",
"def H2v5(YKHO, LEXu):\n assert isinstance(LEXu, YKHO.klass)\n YKHO.session.add(LEXu)",
"def H2v5(YKHO, LEXu: dict):\n YKHO._collec... | [
"0.71967053",
"0.7179554",
"0.6779621",
"0.6757154",
"0.66969705",
"0.6546681",
"0.6523965",
"0.6467963",
"0.6439079",
"0.6429647",
"0.6417902",
"0.6373483",
"0.6346512",
"0.6299344",
"0.6248231",
"0.6234943",
"0.621882",
"0.62057495",
"0.62043625",
"0.61904836",
"0.6157393",... | 0.0 | -1 |
Strip all HTML tags except for a list of whitelisted tags. | def t5Yq(_R2e, KXwX=['a', 'i', 'b', 'em', 'strong'], w79t=False):
if not _R2e:
return
Z9JV = rKuS(_R2e.replace('\n', ''))
if len(Z9JV) == 0:
bo34.info('Trying to fix malformed HTML')
_R2e = _R2e.replace('</p>', '').replace('</div>', '')
Z9JV = rKuS(_R2e)
for TZ9E in Z9JV.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDBl(YKHO):\n if YKHO.hard_tags:\n XP5J = ZbWC.compile('|'.join(['<{tag}[^>]*>|</{tag}>'.format(tag=TZ9E) for TZ9E in YKHO.hard_tags]))\n YKHO.cleaned_html = ZbWC.sub(XP5J, '', YKHO.html)",
"def dV7e(YKHO):\n [TZ9E.extract() for TZ9E in YKHO.soup.find_all(YKHO.tags)]",
"def zbe0(l5Ny):\... | [
"0.77911836",
"0.7699552",
"0.76246786",
"0.76008815",
"0.7577987",
"0.7339144",
"0.72899055",
"0.7269037",
"0.7203014",
"0.71948373",
"0.7153188",
"0.7142892",
"0.7122497",
"0.7097373",
"0.7084406",
"0.7084406",
"0.7084128",
"0.70551676",
"0.7049296",
"0.7048174",
"0.7048174... | 0.7611648 | 3 |
the interface of upsample op | def FUrF(bVvo, m3Uf, NXpY=1, hMIr=2, Pggg=2, AcwX='upsample'):
R0Pk(bVvo, hMIr, Pggg, AcwX)
chwN = {'x': bVvo, 'y': m3Uf, 'kernel_name': AcwX}
rzb9 = mZrv(chwN, hMIr, Pggg)
rzb9.upsample_compute(hMIr, Pggg, NXpY)
rzb9.tik_instance.BuildCCE(kernel_name=AcwX, inputs=rzb9.x_gm, outputs=rzb9.y_gm)
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sZAs(g4y1, NArs, mWFP='upsample'):\n pass",
"def ZQBP(WKvO):\n return vuvg.upsample(iQnE(ht2j.from_numpy(WKvO)), (256 + 64, 256 + 64), None, 'bilinear').data.numpy()",
"def ZQBP(WKvO, XP5J, aPd6):\n EvQg = eqfG(WKvO, aPd6)\n return oyIN.convolve(EvQg, XP5J)",
"def FHJn():\n with UtL5.dygra... | [
"0.720835",
"0.6948395",
"0.67634124",
"0.67539436",
"0.67534995",
"0.6590651",
"0.6465949",
"0.64404273",
"0.64143515",
"0.64117014",
"0.6389047",
"0.6374442",
"0.63698655",
"0.63698655",
"0.6349919",
"0.63391167",
"0.63146925",
"0.6299783",
"0.62834734",
"0.6267371",
"0.625... | 0.61322147 | 31 |
Plot column charts of the raw total time/energy spent in each profiler category. | def b0v8(dGMV, kmfe):
wdxa = WGNL(dGMV)
Rvcv = []
UBgu = []
o8Dt = []
xD1V = []
for XP5J, rxEN, DUXs, Cr6_, fAma in wdxa:
Rvcv.append(rxEN)
UBgu.append(DUXs)
o8Dt.append(Cr6_)
xD1V.append(fAma)
Ilsb = oyIN.max(Rvcv)
taCN = oyIN.max(UBgu)
K5OT = oyIN.ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w_qr(YKHO):\n sne9 = gzes(YKHO.outPath, '%s_cpu_memory_usage.csv' % YKHO.prefix)\n tyeL = gzes(YKHO.outPath, '%s_cpu_memory_usage.pdf' % YKHO.prefix)\n with open(sne9) as aF0O:\n hGN5 = aF0O.readlines()\n if len(hGN5) > 2:\n hGN5 = hGN5[1:]\n WksJ = float(hGN5[0].sp... | [
"0.6128454",
"0.5944837",
"0.5943278",
"0.59342927",
"0.5851935",
"0.5816902",
"0.5786865",
"0.5706265",
"0.5698595",
"0.5695722",
"0.56726587",
"0.5665794",
"0.56332415",
"0.5626971",
"0.56256676",
"0.5619029",
"0.561715",
"0.56118333",
"0.5596914",
"0.5596443",
"0.55960846"... | 0.5320772 | 69 |
Plot column charts of the raw total time/energy spent in each profiler category. | def _XhS(dGMV, kmfe, tSZU):
zHEV = []
foqv = [0.0]
for a1PO, g75m in dGMV:
L4Zb = map(oyIN.nanmax, filter(lambda WKvO: len(WKvO) > 0, [Cr6_ for XP5J, i8WE, Cr6_, kXUa, KGJO in g75m]))
zHEV.append(oyIN.nanmax(L4Zb))
for XP5J, i8WE, Cr6_, kXUa, KGJO in g75m:
if XP5J == tSZU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w_qr(YKHO):\n sne9 = gzes(YKHO.outPath, '%s_cpu_memory_usage.csv' % YKHO.prefix)\n tyeL = gzes(YKHO.outPath, '%s_cpu_memory_usage.pdf' % YKHO.prefix)\n with open(sne9) as aF0O:\n hGN5 = aF0O.readlines()\n if len(hGN5) > 2:\n hGN5 = hGN5[1:]\n WksJ = float(hGN5[0].sp... | [
"0.61300546",
"0.5949135",
"0.59471923",
"0.59368265",
"0.58560765",
"0.5822635",
"0.57893693",
"0.57091206",
"0.57020605",
"0.56983274",
"0.5674441",
"0.56695557",
"0.56364626",
"0.5630787",
"0.5624688",
"0.56203437",
"0.5620265",
"0.5612664",
"0.5600181",
"0.55982363",
"0.5... | 0.0 | -1 |
Function to check for GPU if available, if not return CPU as device | def VeaS(YKHO):
YKHO.device = ht2j.device('cuda:0' if ht2j.cuda.is_available() else 'cpu')
return YKHO.device | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxYq():\n return ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')",
"def V7SF(YKHO):\n begE = ht2j.device('cpu')\n if YKHO.in_args.gpu:\n if ht2j.cuda.is_available():\n begE = ht2j.device('cuda')\n return begE",
"def V7SF(R0tv=True):\n if R0tv is True:\n be... | [
"0.83494747",
"0.8328485",
"0.8163374",
"0.8159262",
"0.7961763",
"0.7942192",
"0.78542703",
"0.7812851",
"0.7795104",
"0.77843136",
"0.7726477",
"0.7623766",
"0.76051146",
"0.7559593",
"0.7506359",
"0.7494373",
"0.74746037",
"0.74578965",
"0.74468654",
"0.7436705",
"0.741946... | 0.6880188 | 81 |
Counts the number of each state observed for a set of nodes, and returns these as a list, as well as the estimated number of threads being used by running nodes. If 'meta' is true, these are considered to be the subnodes of a MetaNode; in that case, MetaNode(s) themselves are not counted, but their subnodes are counted... | def FJpN(Emd4, Tj_K, Ziit, e5kH=False):
wspz = [0] * Tj_K.NUMBER_OF_STATES
RcgH = []
def CqaD(zAe5, rb7a):
for Q6kx in zAe5:
A8QH = isinstance(Q6kx, D35c)
if rb7a and A8QH:
CqaD(Q6kx.subnodes, rb7a - 1)
elif e5kH or not A8QH:
QTBn ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LkmU(YKHO):\n UHFx = 0\n for Q6kx in YKHO.IterateNodes():\n UHFx += 1\n return UHFx",
"def CYQC(YKHO):\n ewCu = 0\n for bGrB in YKHO:\n ewCu += 1\n return ewCu",
"def Kytq(o4Jx):\n if isinstance(o4Jx, o7DN):\n o4Jx = [o4Jx]\n return len(list(Dz73(o4Jx)))",
"de... | [
"0.68574893",
"0.6704146",
"0.65556395",
"0.64142585",
"0.63504684",
"0.6349609",
"0.6271161",
"0.62622917",
"0.6261992",
"0.6251886",
"0.62454987",
"0.62402576",
"0.62339747",
"0.62220865",
"0.61936414",
"0.6185246",
"0.61738145",
"0.61705434",
"0.61616504",
"0.6139696",
"0.... | 0.8142863 | 0 |
Recursive function to convert a python dict of arbitrary depth to an ee.Dictionary object | def aDkO(Csk6):
if not isinstance(Csk6, dict) or not Csk6:
return Csk6
else:
return KGJO.Dictionary({str(G1Hx): aDkO(Ty9i) for G1Hx, Ty9i in Csk6.items()}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cuEe(Csk6, H5ew, FYKK):\n if isinstance(Csk6, g760.abc.Mapping):\n if H5ew in Csk6:\n return FYKK(Csk6)\n else:\n return U8Lr([(G1Hx, cuEe(Ty9i, H5ew, FYKK)) for G1Hx, Ty9i in Csk6.items()])\n elif isinstance(Csk6, list):\n return [cuEe(Ty9i, H5ew, FYKK) for Ty9... | [
"0.7311173",
"0.7082424",
"0.70730054",
"0.70679575",
"0.70055187",
"0.6957433",
"0.69164604",
"0.6811125",
"0.68090785",
"0.67820626",
"0.67702496",
"0.67658484",
"0.6758522",
"0.67144865",
"0.6700634",
"0.6669426",
"0.6667239",
"0.66418606",
"0.6626796",
"0.6598806",
"0.658... | 0.6541986 | 21 |
Returns a timezone aware UTC datetime.datetime instance for the current time. | def TWis():
return qcWV.datetime.utcnow().replace(tzinfo=W5Mt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNzz() -> qcWV:\n return qcWV.now(tz=rIAI.utc)",
"def Aues() -> qcWV:\n return qcWV.now(tz=h5YN)",
"def Ej5x():\n return FXGE.utc.localize(qcWV.datetime.utcnow())",
"def DSz4() -> qcWV:\n return qcWV.now(tz=rIAI.utc)",
"def sCZH():\n return qcWV.now(h5YN)",
"def fQG0():\n return qcW... | [
"0.81068015",
"0.79970235",
"0.78996795",
"0.7895379",
"0.78157264",
"0.7811249",
"0.7752146",
"0.77268976",
"0.77229834",
"0.766616",
"0.76236826",
"0.76233405",
"0.75953805",
"0.7528598",
"0.75181746",
"0.7478254",
"0.74587786",
"0.74502325",
"0.7410672",
"0.73951817",
"0.7... | 0.7347438 | 23 |
Check if 't' is multiple of 'dt' at a given precision 'eps'. | def qs32(a1PO: float, JRYC: float, SGf8: float) -> bool:
if JRYC < SGf8:
return True
I_w1 = JRYC - a1PO % JRYC
return I_w1 <= SGf8 / 2 or JRYC - I_w1 < SGf8 / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykaK(a1PO, JRYC):\n if JRYC is None:\n return True\n hObQ = round((a1PO[1] - a1PO[0]) / JRYC)\n if kTwQ.fabs(hObQ * JRYC - a1PO[1] + a1PO[0]) < 10.0 ** (-10.0):\n return True\n else:\n return False",
"def FCqU(tTpl):\n if tTpl < dXPy:\n return True\n else:\n ... | [
"0.6431384",
"0.6204966",
"0.5842217",
"0.58271074",
"0.5660393",
"0.5651194",
"0.5493848",
"0.5457914",
"0.5433019",
"0.5422864",
"0.53955686",
"0.5345515",
"0.53160393",
"0.5287096",
"0.52806526",
"0.52797395",
"0.52703816",
"0.52604294",
"0.5204297",
"0.5200186",
"0.518707... | 0.707638 | 0 |
Log Errors caused by Updates. | def P1dF(JyK9, QdZT, P1dF):
bo34.warning('Update "%s" caused error "%s"', QdZT, P1dF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.774618... | 0.75354177 | 80 |
This function validate the correctness of the columns. | def Y03P(iBIi: list) -> bool:
for YRbF in range(len(iBIi)):
XkN1 = []
for r845 in range(len(iBIi[YRbF])):
XkN1.append(iBIi[r845][YRbF])
iBIi.append(''.join((WKvO for WKvO in XkN1)))
ZLJ_ = iBIi[int(len(iBIi) / 2):]
return p7dX(ZLJ_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sBY3(YKHO, *qIxc, **B2fa):\n if YKHO.fieldnames is None:\n w7FC = YKHO.result_row_list[0].keys()\n for fvDH in YKHO.keys_to_validate:\n if fvDH not in w7FC:\n raise q2hv(bGrB('Invalid data'), bGrB('Column %s not present in file') % fvDH)\n return True",
"def V0OA... | [
"0.7753806",
"0.76937956",
"0.7574076",
"0.7523892",
"0.7435581",
"0.7418601",
"0.7416421",
"0.7359714",
"0.73563915",
"0.73020965",
"0.72482204",
"0.7238206",
"0.71563774",
"0.7135649",
"0.7129403",
"0.70949095",
"0.70874107",
"0.70680654",
"0.7023365",
"0.7003843",
"0.69986... | 0.7021682 | 19 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True)
Ylbp.append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Path that this project's VCS checkout is located. | def B_tB(YKHO):
return Hy7s.path.join(gCuF.MEDIA_ROOT, YKHO.repository_type, YKHO.slug) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pEzh(YKHO) -> str:\n DpZH = YKHO.version().replace('.', '')\n return Hy7s.path.abspath(f'.riot/venv_py{DpZH}')",
"def pmON(YKHO):\n return YKHO.project_git.out_folder() + '/' + YKHO.settings.results_repo_name()",
"def Kz2T() -> GkAb:\n return L59w() / yzPQ",
"def CtHB() -> GkAb:\n return G... | [
"0.7222644",
"0.7138463",
"0.70506704",
"0.7001157",
"0.6898065",
"0.6890266",
"0.6864275",
"0.68556905",
"0.68311733",
"0.6762085",
"0.6688336",
"0.6682846",
"0.6672076",
"0.6651863",
"0.6648619",
"0.65929097",
"0.6570603",
"0.6554784",
"0.65400684",
"0.6534783",
"0.6528926"... | 0.0 | -1 |
Add new or update existing entity. | def acn2(Eorv, vIwR, itxr='', aM_I='', T4Wy=0, H5ew='', JZXy=None):
JZXy = JZXy or []
try:
if H5ew is '':
tTpl = ahCL.objects.get(resource=Eorv, string=vIwR, string_plural=itxr)
else:
tTpl = ahCL.objects.get(resource=Eorv, key=H5ew)
tTpl.string = vIwR
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, LEXu):\n if LEXu in YKHO._entities:\n raise UAju.EntityAlreadyExists(LEXu)\n YKHO._entities[LEXu] = YKHO.Stage.NEW",
"def H2v5(YKHO, LEXu):\n raise NotImplementedError('add')",
"def H2v5(YKHO, LEXu):\n assert isinstance(LEXu, YKHO.klass)\n YKHO.session.add(LEXu)",
"def H2... | [
"0.7182074",
"0.7136128",
"0.6988203",
"0.6909615",
"0.6840574",
"0.67983043",
"0.6779424",
"0.670178",
"0.6572326",
"0.65213764",
"0.65070456",
"0.64876413",
"0.64849865",
"0.64817226",
"0.6479199",
"0.64580476",
"0.6414076",
"0.636162",
"0.63530266",
"0.63516456",
"0.633107... | 0.0 | -1 |
Creates an Object from a JSON file | def EBvf(Ux0P):
with open(Ux0P, 'r', encoding='utf-8') as nUeQ:
return qQXR.loads(nUeQ.read()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYpi(Emd4, Ux0P):\n with open(Ux0P) as eHNT:\n nPrm = qQXR.load(eHNT)\n return Emd4.fromDict(nPrm)",
"def refC(Emd4, pmON):\n with open(pmON) as wOb_:\n nPrm = qQXR.load(wOb_)\n return Emd4.from_dict(nPrm)",
"def refC(Emd4, wM3v):\n with open(wM3v, 'r', encoding='utf-8') as N5P... | [
"0.8163164",
"0.8093272",
"0.80358803",
"0.8010308",
"0.7982106",
"0.7980641",
"0.79537845",
"0.79537845",
"0.79407066",
"0.79282993",
"0.78915346",
"0.7885484",
"0.7881251",
"0.78777415",
"0.78777415",
"0.7873005",
"0.7867095",
"0.7866834",
"0.7866834",
"0.7866834",
"0.78668... | 0.0 | -1 |
String representation of Node value. | def zAg0(YKHO):
return str(YKHO.v) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return f'Node object: val={YKHO.val}'",
"def wHJl(YKHO) -> str:\n return 'StringValueNode(value=%r, location=%r)' % (YKHO.value, YKHO.location)",
"def wHJl(YKHO):\n return 'Node.val = {}'.format(YKHO.val)",
"def zAg0(YKHO):\n return str(YKHO.root.val)",
"def zAg0(YKHO):\n r... | [
"0.79268235",
"0.7886007",
"0.7868315",
"0.78647417",
"0.78633404",
"0.7848637",
"0.78368556",
"0.7774502",
"0.77456987",
"0.76847494",
"0.76604956",
"0.7646889",
"0.7646889",
"0.7646889",
"0.76431704",
"0.76431704",
"0.76431704",
"0.76431704",
"0.76431704",
"0.76431704",
"0.... | 0.0 | -1 |
Returns node's parent ID (int). | def ME4W(YKHO):
return int(YKHO.v[Q6r4.P]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DtVU(YKHO):\n return YKHO.parent_id",
"def DtVU(YKHO):\n return YKHO.__parent_id",
"def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')",
"def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')",
"def H7rZ(YKHO):\n return YKHO.content['parent_id']",
"def H7rZ(YKHO):\n r... | [
"0.84245855",
"0.839735",
"0.83545023",
"0.83545023",
"0.8344868",
"0.82610077",
"0.82610077",
"0.80825096",
"0.80299395",
"0.801498",
"0.7978101",
"0.7965079",
"0.7941359",
"0.78360325",
"0.77966803",
"0.77955633",
"0.77821034",
"0.7707417",
"0.76902485",
"0.7685686",
"0.764... | 0.77740294 | 17 |
Returns diameter of the node (float). | def RjsR(YKHO):
return 2 * YKHO.radius() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NrEI(YKHO) -> float:\n return YKHO._diameter",
"def NrEI(YKHO):\n return YKHO.radius * 2",
"def NrEI(YKHO):\n return YKHO.radius * 2",
"def NrEI(YKHO):\n return YKHO.radius * 2",
"def NrEI(YKHO):\n return YKHO.radius * 2",
"def NrEI(YKHO):\n return YKHO._radius * 2",
"def NrEI(YKH... | [
"0.8113475",
"0.80559903",
"0.80559903",
"0.80559903",
"0.80559903",
"0.80280656",
"0.79079115",
"0.75845784",
"0.7402093",
"0.73912114",
"0.731041",
"0.7210042",
"0.7160856",
"0.6897363",
"0.678719",
"0.6755888",
"0.67238957",
"0.6700525",
"0.6669792",
"0.66463274",
"0.66227... | 0.63980824 | 31 |
Returns segment area at the node (float). | def f0tD(YKHO):
MKlR = YKHO.length()
jzdc = YKHO.radius()
Fg_i = YKHO.parent.radius() if not YKHO.is_root() else jzdc
return epAf.pi * (jzdc + Fg_i) * epAf.sqrt((jzdc - Fg_i) * (jzdc - Fg_i) + MKlR * MKlR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n TLbF = YKHO.flatten()\n f0tD = 0\n for KCHu in TLbF.asSegments():\n f0tD = f0tD + (KCHu.start.x + KCHu.end.x) * (KCHu.end.y - KCHu.start.y)\n f0tD = f0tD / 2.0\n return abs(f0tD)",
"def f0tD(YKHO):\n return YKHO._n_edges * YKHO.edge_length * YKHO.apothem * 0.5",
"def ... | [
"0.7880297",
"0.73215806",
"0.7241331",
"0.72287923",
"0.7210993",
"0.7166654",
"0.71587074",
"0.7142034",
"0.7139583",
"0.71392155",
"0.71230745",
"0.7122378",
"0.7117182",
"0.7111042",
"0.71093154",
"0.71044534",
"0.70949054",
"0.70913833",
"0.70800745",
"0.70430917",
"0.70... | 0.6751068 | 57 |
Returns section area (float). | def f0tD(YKHO, kRsb):
return sum((Q6kx.area() for Q6kx in kRsb)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aw0V(YKHO):\n pass",
"def sAdl(YKHO) -> float:\n return YKHO.side * YKHO.side",
"def f0tD(YKHO):\n f0tD = YKHO.length * YKHO.width\n return f0tD",
"def f0tD(YKHO):\n TLbF = YKHO.flatten()\n f0tD = 0\n for KCHu in TLbF.asSegments():\n f0tD = f0tD + (KCHu.start.x + KCHu.end.x) *... | [
"0.7690854",
"0.76717746",
"0.7637005",
"0.7496474",
"0.74752796",
"0.7472741",
"0.7471702",
"0.7461594",
"0.74559325",
"0.7437974",
"0.74305314",
"0.74184084",
"0.74062634",
"0.7384736",
"0.7372595",
"0.73585075",
"0.73579746",
"0.735606",
"0.73401266",
"0.73374844",
"0.7337... | 0.0 | -1 |
Creates and saves a User with the given email, first_name, last_name and password. | def lYUQ(YKHO, D3lj, c9ua, zp3f, NtEF, jTXt=None):
if not D3lj:
raise ValueError('Users must have an email address')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), first_name=c9ua, last_name=zp3f, username=NtEF)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kI0b(Emd4, NtEF, D3lj, jTXt, c9ua, zp3f):\n kz9X = B8ni.generate_password_hash(jTXt).decode('UTF-8')\n CBIr = mv1M(username=NtEF, email=D3lj, password=kz9X, first_name=c9ua, last_name=zp3f)\n NCls.session.add(CBIr)\n return CBIr",
"def kI0b(Emd4, c9ua, zp3f, NtEF, D3lj, jTXt):\n VNvY = B8ni.ge... | [
"0.8736242",
"0.86304444",
"0.8608087",
"0.85822576",
"0.8565564",
"0.851876",
"0.8496497",
"0.84426117",
"0.8441726",
"0.8399656",
"0.8392344",
"0.8336958",
"0.8332078",
"0.8303803",
"0.82403696",
"0.82092285",
"0.8205206",
"0.820063",
"0.82001686",
"0.81877464",
"0.8174955"... | 0.8137195 | 23 |
Return the number of times the letter at index idx is repeated in the word | def ptbO(YKHO, GIN8, or8S):
RqgG = or8S
yzQ0 = GIN8[or8S]
while or8S + 1 < len(GIN8) and GIN8[or8S + 1] == yzQ0:
or8S += 1
return or8S - RqgG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LjCr(GIN8):\n return g760.Counter(GIN8)",
"def qZv2(GIN8):\n return g760.Counter(set(GIN8))",
"def UHFx(GIN8, sZqf):\n UHFx = 0\n for hcXw in GIN8:\n if hcXw == sZqf:\n UHFx = UHFx + 1\n return UHFx",
"def pvcq(GIN8):\n UHFx = 0\n for YRbF in range(len(GIN8)):\n ... | [
"0.8040229",
"0.7581222",
"0.74920744",
"0.73819464",
"0.7076549",
"0.70700115",
"0.7069463",
"0.704834",
"0.7014146",
"0.70082676",
"0.697729",
"0.6930876",
"0.68793744",
"0.68302554",
"0.6781325",
"0.6780846",
"0.67388093",
"0.6708412",
"0.66802144",
"0.6669318",
"0.6665477... | 0.7517193 | 2 |
Get the pointing position in ICRS frame for a given time. If the observation was performed tracking a fixed position in ICRS, the icrs pointing is returned with the given obstime attached. If the observation was performed in drift mode, the fixed altaz coordinates are transformed to ICRS using the observation location ... | def CZQh(YKHO, JG3c=None, Rci7=None) -> UJNH:
if YKHO.mode == rxnO.POINTING:
return UJNH(YKHO._fixed_icrs.data, location=Rci7, obstime=JG3c)
if YKHO.mode == rxnO.DRIFT:
if JG3c is None:
JG3c = YKHO.obstime
return YKHO.get_altaz(JG3c, location=Rci7).icrs
raise ValueError(f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iuzb(YKHO, ITS7, LiTy='geocenter'):\n iJP1, RHJb = YKHO.get_ksi_eta(time=ITS7) * P6bq.km\n Ayfi = YKHO.ephem.distance.mean()\n rT_5 = oyIN.arctan2(iJP1, Ayfi)\n lyDd = oyIN.arctan2(RHJb, Ayfi)\n Tdpd = QYpU(origin=YKHO.star)\n oeNL = UJNH(lon=rT_5, lat=lyDd, distance=Ayfi, frame=Tdpd)\n re... | [
"0.6524838",
"0.62238914",
"0.6189945",
"0.5924553",
"0.5806396",
"0.5803718",
"0.57491416",
"0.5740894",
"0.573621",
"0.56829524",
"0.56642526",
"0.5552065",
"0.5501311",
"0.5350559",
"0.53452665",
"0.53397155",
"0.53257614",
"0.515808",
"0.509167",
"0.50840795",
"0.50768477... | 0.59714806 | 3 |
Get the pointing position in AltAz frame for a given time. If the observation was performed tracking a fixed position in ICRS, the icrs pointing is transformed at the given time using the location of the observation. If the observation was performed in drift mode, the fixed altaz coordinate is returned with `obstime` a... | def ZzgL(YKHO, JG3c=None, Rci7=None) -> UJNH:
Rci7 = Rci7 if Rci7 is not None else YKHO.location
f4IJ = Z5la(location=Rci7, obstime=JG3c)
if YKHO.mode == rxnO.POINTING:
return YKHO.fixed_icrs.transform_to(f4IJ)
if YKHO.mode == rxnO.DRIFT:
Zc6P = YKHO.fixed_altaz.alt
kDNl = YKHO.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZzgL(YKHO, JG3c):\n if 'ALT_PNT' in YKHO.table and 'AZ_PNT' in YKHO.table:\n wcwa = YKHO.altaz_from_table\n f4IJ = Z5la(obstime=JG3c, location=YKHO.location)\n return UJNH(YKHO._interpolate_cartesian(YKHO.time.mjd, wcwa, JG3c.mjd), frame=f4IJ)\n return YKHO.altaz_interpolate(time=JG3... | [
"0.6241532",
"0.6099906",
"0.594525",
"0.588341",
"0.5882339",
"0.58507276",
"0.58307177",
"0.5778217",
"0.56516975",
"0.5621535",
"0.56191224",
"0.5616828",
"0.5604948",
"0.55763334",
"0.5550321",
"0.55266774",
"0.54198205",
"0.5397314",
"0.53671813",
"0.5322808",
"0.5304202... | 0.65557986 | 0 |
Average observation time for the observation (`~astropy.time.Time`). | def JG3c(YKHO):
if YKHO.time_start is None or YKHO.duration is None:
return None
return YKHO.time_start + YKHO.duration / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cn5a(YKHO):\n if len(YKHO.times) == 0:\n return 0\n return round(SfSc(YKHO.times), YKHO.precision)",
"def qqgr(YKHO):\n return sum(YKHO.times) / len(YKHO.times)",
"def qqgr(YKHO):\n return sum(YKHO.times) / len(YKHO.times)",
"def Cn5a(WXkz):\n RGHr = 0\n for U6D_ in WXkz:\n ... | [
"0.7751026",
"0.70294726",
"0.69546545",
"0.68280125",
"0.6821594",
"0.67920494",
"0.6790579",
"0.6757039",
"0.6742391",
"0.66891265",
"0.66355526",
"0.66098225",
"0.6607749",
"0.65903497",
"0.65218776",
"0.64981896",
"0.6447907",
"0.6371489",
"0.63473225",
"0.63468444",
"0.6... | 0.0 | -1 |
Get the pointing position in AltAz frame for a given time. If the observation was performed tracking a fixed position in ICRS, the icrs pointing is transformed at the given time using the location of the observation. If the observation was performed in drift mode, the fixed altaz coordinate is returned with `obstime` a... | def ZzgL(YKHO, JG3c):
if 'ALT_PNT' in YKHO.table and 'AZ_PNT' in YKHO.table:
wcwa = YKHO.altaz_from_table
f4IJ = Z5la(obstime=JG3c, location=YKHO.location)
return UJNH(YKHO._interpolate_cartesian(YKHO.time.mjd, wcwa, JG3c.mjd), frame=f4IJ)
return YKHO.altaz_interpolate(time=JG3c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZzgL(YKHO, JG3c=None, Rci7=None) -> UJNH:\n Rci7 = Rci7 if Rci7 is not None else YKHO.location\n f4IJ = Z5la(location=Rci7, obstime=JG3c)\n if YKHO.mode == rxnO.POINTING:\n return YKHO.fixed_icrs.transform_to(f4IJ)\n if YKHO.mode == rxnO.DRIFT:\n Zc6P = YKHO.fixed_altaz.alt\n k... | [
"0.655488",
"0.6097499",
"0.5942866",
"0.5883442",
"0.5880514",
"0.5852881",
"0.583074",
"0.5775253",
"0.5654462",
"0.5621177",
"0.5620417",
"0.561876",
"0.560773",
"0.5578439",
"0.55485404",
"0.55289793",
"0.5422234",
"0.53963417",
"0.53716874",
"0.5324771",
"0.5304125",
"... | 0.6240119 | 1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(QyIB, YKHO).__init__(*qIxc, **c_sp)
if YKHO.header is None:
YKHO.header = kKAJ.msg.Header()
if YKHO.recognitions is None:
YKHO.recognitions = []
else:
YKHO.header = kKAJ.msg.Header()
YKHO.recogn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8167204",
"0.7721733",
"0.7721733",
"0.7654095",
"0.757258",
"0.75457156",
"0.74854344",
"0.7470224",
"0.74580795",
"0.7447476",
"0.7445203",
"0.7433716",
"0.74151665",
"0.74079406",
"0.739237",
"0.737509",
"0.73640925",
"0.73265964",
"0.7324066",
"0.7324066",
"0.7324066",... | 0.6887992 | 84 |
Normalize the sum of all voxel values to self.weight. | def NkkI(YKHO):
YKHO.mass = YKHO.rho.sum() / YKHO.weight
YKHO.rho /= YKHO.mass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FWlN(YKHO):\n exwG = sum(YKHO.weights_curr)\n for YRbF in range(YKHO.nparticles):\n YKHO.weights_curr[YRbF] /= float(exwG)",
"def FWlN(YKHO):\n exwG = sum(YKHO.weights_curr)\n for YRbF in range(YKHO.nparticles):\n YKHO.weights_curr[YRbF] /= float(exwG)",
"def XoQd(YKHO):\n YKHO... | [
"0.8080038",
"0.8080038",
"0.77042425",
"0.752997",
"0.7519647",
"0.7417542",
"0.738757",
"0.73006654",
"0.73006654",
"0.72293127",
"0.7178722",
"0.71123403",
"0.7107631",
"0.70492053",
"0.6971454",
"0.6959958",
"0.6924245",
"0.6913068",
"0.6869208",
"0.6789842",
"0.67613876"... | 0.7049931 | 13 |
Load keras model from disk. | def wX8m(wgqG, Rr_X=None):
if Rr_X is None:
Rr_X = wgqG
wM3v = open('./api/dl_models/{}.json'.format(wgqG), 'r')
jlS7 = wM3v.read()
wM3v.close()
Z_lw = oPz_(jlS7)
Z_lw.load_weights('./api/dl_models/{}.h5'.format(Rr_X))
print(Z_lw)
print('Loaded model {} from disk'.format(wgqG))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(pmON):\n return tMkk(pmON)",
"def uyMl(YKHO, pmON):\n YKHO.model = ZylS.keras.models.load_model(pmON)",
"def uyMl(YKHO, pmON):\n print('load model from following path: ', pmON)\n YKHO.model = ZylS.keras.models.load_model(pmON)\n print('Model was loaded from file.')",
"def uyMl(YKHO):\... | [
"0.8618312",
"0.84557575",
"0.8131299",
"0.8107572",
"0.8072728",
"0.8037324",
"0.8019287",
"0.7968106",
"0.79640037",
"0.7951248",
"0.7946582",
"0.7942282",
"0.791233",
"0.7903798",
"0.7899356",
"0.7896405",
"0.78892595",
"0.7878807",
"0.78634965",
"0.7853378",
"0.7853378",
... | 0.73700345 | 81 |
A rollout is the collection of environment interaction using the current policy. This event is triggered before collecting new samples. | def YsIx(YKHO) -> None:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uZXo(YKHO):\n yokr = qukk(9999999)\n mdek = [YKHO.rollout_executable, '-l', '{:d}'.format(YKHO.horizon), '-n', '{:d}'.format(YKHO.num_rollouts), YKHO.dpomdp_file] + ['-g', '{:d}'.format(yokr)] + ['--files'] + [XP5J for XP5J in YKHO.individual_policies]\n H4yH = Yn3K.check_output(mdek)\n aJY_ = YKHO... | [
"0.6756033",
"0.64362466",
"0.6427014",
"0.6307832",
"0.62442535",
"0.62019825",
"0.61636716",
"0.6036057",
"0.60339123",
"0.6027316",
"0.5934988",
"0.58936924",
"0.58586365",
"0.5810168",
"0.5771632",
"0.5768457",
"0.5750829",
"0.570044",
"0.5686405",
"0.5686405",
"0.5676403... | 0.5484499 | 36 |
Updates internal parameters of the optimizer and returns the change that should be applied to the variable. | def nrOS(YKHO, ICX2):
return -YKHO._learning_rate * ICX2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jPyM(YKHO, xqoZ, Ro40, QTBn):\n with ZylS.variable_scope(y7GR.OPTIMIZER_SCOPE) as rrBf:\n if YKHO._reuse_vars:\n rrBf.reuse_variables()\n else:\n YKHO._reuse_vars = True\n bEaZ, WT9X, d2IM, dbXs, xvxS = YKHO._extract_gradients_and_internal_state(Ro40, QTBn, ZylS.sh... | [
"0.6876401",
"0.68390447",
"0.68140465",
"0.68068457",
"0.6695336",
"0.66260606",
"0.66119736",
"0.65468585",
"0.6528692",
"0.6508972",
"0.650503",
"0.64609236",
"0.6445129",
"0.64294076",
"0.6399493",
"0.6383838",
"0.6374614",
"0.6355489",
"0.6347106",
"0.6323995",
"0.630357... | 0.0 | -1 |
Updates internal parameters of the optimizer and returns the change that should be applied to the variable. | def FIMM(YKHO, ROpF, yDqo, b0Ix, dgWh=0.9, znmT=0.999, _hZ2=1e-07):
YKHO.m = oyIN.zeros(ROpF, dtype=yDqo)
YKHO.v = oyIN.zeros(ROpF, dtype=yDqo)
YKHO.t = 0
YKHO._beta1 = dgWh
YKHO._beta2 = znmT
YKHO._learning_rate = b0Ix
YKHO._epsilon = _hZ2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jPyM(YKHO, xqoZ, Ro40, QTBn):\n with ZylS.variable_scope(y7GR.OPTIMIZER_SCOPE) as rrBf:\n if YKHO._reuse_vars:\n rrBf.reuse_variables()\n else:\n YKHO._reuse_vars = True\n bEaZ, WT9X, d2IM, dbXs, xvxS = YKHO._extract_gradients_and_internal_state(Ro40, QTBn, ZylS.sh... | [
"0.68767476",
"0.6839045",
"0.681379",
"0.68067545",
"0.66939443",
"0.66258305",
"0.6610371",
"0.6546824",
"0.652936",
"0.6507461",
"0.6503598",
"0.64614886",
"0.64450085",
"0.6428845",
"0.63994175",
"0.6383711",
"0.6374887",
"0.6356588",
"0.6345379",
"0.63250846",
"0.6303099... | 0.0 | -1 |
Updates internal parameters of the optimizer and returns the change that should be applied to the variable. | def nrOS(YKHO, ICX2):
YKHO.t += 1
YKHO.m = YKHO._beta1 * YKHO.m + (1 - YKHO._beta1) * ICX2
YKHO.v = YKHO._beta2 * YKHO.v + (1 - YKHO._beta2) * ICX2 ** 2
_hiA = 1 - YKHO._beta1 ** YKHO.t
VzaX = 1 - YKHO._beta2 ** YKHO.t
N2r7 = YKHO.m / _hiA
h6gW = YKHO.v / VzaX
return -YKHO._learning_rate... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jPyM(YKHO, xqoZ, Ro40, QTBn):\n with ZylS.variable_scope(y7GR.OPTIMIZER_SCOPE) as rrBf:\n if YKHO._reuse_vars:\n rrBf.reuse_variables()\n else:\n YKHO._reuse_vars = True\n bEaZ, WT9X, d2IM, dbXs, xvxS = YKHO._extract_gradients_and_internal_state(Ro40, QTBn, ZylS.sh... | [
"0.68767476",
"0.6839045",
"0.681379",
"0.68067545",
"0.66939443",
"0.66258305",
"0.6610371",
"0.6546824",
"0.652936",
"0.6507461",
"0.6503598",
"0.64614886",
"0.64450085",
"0.6428845",
"0.63994175",
"0.6383711",
"0.6374887",
"0.6356588",
"0.6345379",
"0.63250846",
"0.6303099... | 0.0 | -1 |
Convert dict overrides to a list of Hydra CLI compatible args | def iPR2(If3P: OverrideDict) -> x1iM[str]:
n28r = []
for G1Hx, Ty9i in If3P.items():
if Ty9i is None:
Ty9i = 'null'
YXOi(G1Hx, Ty9i, type_=(int, float, bool, str, dict, Rqyq, kfj_))
if isinstance(Ty9i, Rqyq):
Ty9i = ','.join((str(ZfUD) for ZfUD in Ty9i))
n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIxc(YKHO):\n VKhi = [(f'--{G1Hx}', Ty9i) for G1Hx, Ty9i in YKHO.options.items()]\n return list(PWgb(VKhi))",
"def FiiE(qIxc):\n if isinstance(qIxc, list):\n return qIxc\n yv6U = []\n for H5ew, wEf2 in qIxc.items():\n yv6U.append('--' + H5ew)\n if wEf2 is not None:\n ... | [
"0.72203994",
"0.71643555",
"0.67499405",
"0.6704447",
"0.6644536",
"0.6605259",
"0.6567519",
"0.64909446",
"0.64278406",
"0.6424798",
"0.6424277",
"0.6408511",
"0.6371197",
"0.6340686",
"0.6331737",
"0.6319631",
"0.6302284",
"0.6301081",
"0.62544477",
"0.62518835",
"0.625173... | 0.6945341 | 2 |