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 |
|---|---|---|---|---|---|---|
Generate random slices for a single dimension. | def TiPN(exwG, fSWM=False):
for bGrB in range(5):
yield V1Au(exwG, fSWM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wJiT(X7zS, TwiJ):\n tpio = len(X7zS)\n HstA = oyIN.zeros(shape=(TwiJ, tpio))\n for G1Hx in range(0, tpio):\n HstA[:, G1Hx] = oyIN.random.uniform(low=X7zS[G1Hx][0], high=X7zS[G1Hx][1], size=TwiJ)\n print('shape: ', HstA.shape)\n return HstA",
"def PLl8(qC1Y, ROpF):\n A9XV = [0] * qC1Y... | [
"0.6748864",
"0.66025615",
"0.6602007",
"0.65602344",
"0.6382453",
"0.637084",
"0.6325425",
"0.63170785",
"0.63101554",
"0.6257017",
"0.62307423",
"0.6230162",
"0.61685413",
"0.6137612",
"0.6112374",
"0.60909176",
"0.6086134",
"0.6047355",
"0.6043131",
"0.6034215",
"0.6028377... | 0.57534003 | 41 |
Generate random slice tuples for 'shape'. | def gFik(qC1Y, ROpF, OnWS=5):
for bGrB in range(OnWS):
yield tuple((V1Au(ROpF[exwG]) for exwG in range(qC1Y)))
for bGrB in range(OnWS):
yield tuple((V1Au(ROpF[exwG], allow_empty=True) for exwG in range(qC1Y)))
yield tuple((slice(0, 1, 0) for bGrB in range(qC1Y))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PLl8(qC1Y, ROpF):\n A9XV = [0] * qC1Y\n TiPN = [0] * qC1Y\n for exwG in range(qC1Y):\n vC9B = ROpF[exwG]\n SLkt = qukk(1, vC9B + 1) if vC9B > 0 else 0\n A9XV[exwG] = hJXC(SLkt, vC9B)\n TiPN[exwG] = hJXC(SLkt, vC9B)\n return (tuple(A9XV), tuple(TiPN))",
"def PLl8(qC1Y, ... | [
"0.81737244",
"0.8173164",
"0.70365703",
"0.6893058",
"0.66185147",
"0.6588831",
"0.65197295",
"0.64492506",
"0.64458674",
"0.6420841",
"0.6409542",
"0.6335667",
"0.63094866",
"0.6286346",
"0.62749714",
"0.62746143",
"0.62283",
"0.6214",
"0.6178123",
"0.6170837",
"0.6170837",... | 0.59845704 | 36 |
Return True if the queen at column c clashes with any queen to its left. | def nERh(lHmx, Z9rn):
for YRbF in range(Z9rn):
if C7r_(YRbF, lHmx[YRbF], Z9rn, lHmx[Z9rn]):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQiv(fvDH, OHLN):\n if fvDH in OHLN:\n return False\n elif any([abs(fvDH - iIDh) == len(OHLN) - d6pt for d6pt, iIDh in enumerate(OHLN)]):\n return False\n else:\n return True",
"def SGVO(OHLN):\n exwG = len(OHLN)\n WfCS = range(exwG)\n return exwG == len(set((OHLN[YRbF]... | [
"0.77055407",
"0.72922397",
"0.7145801",
"0.70153964",
"0.6985228",
"0.6902115",
"0.66958386",
"0.65576535",
"0.6551649",
"0.6548673",
"0.6523149",
"0.6523149",
"0.6522317",
"0.6519715",
"0.65155363",
"0.6512403",
"0.6512403",
"0.65036315",
"0.6501785",
"0.64987516",
"0.64938... | 0.0 | -1 |
True if either cell matches one of its neighbours. Slightly different type of matching from isMatch(). | def OcIM(YKHO):
for VmPb in (YKHO.head, YKHO.tail):
for _Wdu in VmPb.find_neighbours():
if _Wdu.pips == VmPb.pips:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cl80(YKHO):\n for XP5J in YKHO.targetCell.possibilities:\n if XP5J != 0:\n if XP5J not in YKHO.targetCell.row_neighbour_possibilities:\n YKHO.targetCell.solve(XP5J)\n return True\n elif XP5J not in YKHO.targetCell.column_neighbour_possibilities:\n ... | [
"0.6724939",
"0.65565187",
"0.651675",
"0.6491993",
"0.64436924",
"0.64371634",
"0.64162314",
"0.64157915",
"0.64040434",
"0.64029574",
"0.6330807",
"0.6311212",
"0.62970114",
"0.625364",
"0.6251876",
"0.62480813",
"0.6242117",
"0.62384665",
"0.6207678",
"0.6207055",
"0.61696... | 0.7738691 | 0 |
Return the state if the dataset requires one. Datasets which e.g. read files from disks require open file handlers, and this sort of stateful information should be handled by the data stream. Returns | def open(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nRjE(YKHO):\n return YKHO._dataset is not None",
"def E9CR(YKHO) -> bool:\n return True if YKHO.data_file else False",
"def k8jS(YKHO):\n return [YKHO.dataset, YKHO.parser]",
"def ZAQi(YKHO):\n HUYf = True\n Nqlg = YKHO.__read_lines__()\n if not YKHO.__set_number_of_process__(Nqlg[0]):\... | [
"0.6283819",
"0.6104138",
"0.59465337",
"0.5871984",
"0.58360755",
"0.58360755",
"0.5735881",
"0.5735",
"0.5720222",
"0.5720222",
"0.5703286",
"0.5658094",
"0.565653",
"0.5642201",
"0.5624983",
"0.5605287",
"0.5590852",
"0.5588724",
"0.5578193",
"0.5546453",
"0.5546068",
"0... | 0.0 | -1 |
Returns the scan resolution in mm of the ship. | def UDnZ(YKHO):
return YKHO._getAttribute(URbA.scanResolution) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMN5(YKHO):\n return YKHO.resolution",
"def pMN5(YKHO):\n return YKHO._lowLevelGetDeviceResolution()",
"def CMuK(YKHO):\n return (YKHO.display_info['width'], YKHO.display_info['height'])",
"def B1Wx(YKHO) -> int:\n return YKHO._resolution",
"def x8Yc(YKHO):\n return YKHO._get_attribute('... | [
"0.7246049",
"0.69126594",
"0.685117",
"0.6794998",
"0.67246604",
"0.6541934",
"0.6535295",
"0.6369",
"0.6277552",
"0.6272509",
"0.6237596",
"0.62197703",
"0.61901945",
"0.6151652",
"0.61414826",
"0.61146194",
"0.6110332",
"0.6093271",
"0.6090543",
"0.6054958",
"0.60548455",
... | 0.73278564 | 0 |
Returns the max target range in metres of the ship. | def TItm(YKHO):
return YKHO._getAttribute(URbA.targetRange) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v_h6(YKHO):\n return YKHO._max_range",
"def PeST(YKHO):\n return BfDw.find_max_distance(YKHO.__game)",
"def max(YKHO):\n return YKHO._max_coords",
"def nWCD(YKHO):\n return YKHO._speed_max",
"def PtQX(YKHO) -> uLKX[int, float]:\n return YKHO.range[1]",
"def ZWqN(YKHO):\n return YKHO... | [
"0.73674613",
"0.7078885",
"0.7044618",
"0.6981582",
"0.6943583",
"0.69382846",
"0.692371",
"0.6908214",
"0.6892179",
"0.6888499",
"0.68463236",
"0.67757446",
"0.6704904",
"0.66685164",
"0.6667965",
"0.6664101",
"0.6652931",
"0.664733",
"0.66399574",
"0.66399574",
"0.6636634"... | 0.6399989 | 43 |
Returns the max number of locked targets. | def vkBF(YKHO):
return YKHO._getAttribute(URbA.maxTargets) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BE9H(YKHO):\n Zozy = 0\n for yzQ0 in YKHO._workers:\n Zozy = Zozy + yzQ0.multitask\n return Zozy",
"def n211(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_node_count')",
"def Cjt0(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.node_count_max or 0)",
"def PoP_(YKHO):\n return max(... | [
"0.7053719",
"0.6945075",
"0.67787427",
"0.6716458",
"0.66914487",
"0.65706974",
"0.6546918",
"0.6542584",
"0.65309083",
"0.65046275",
"0.6473251",
"0.6438238",
"0.6386052",
"0.6385337",
"0.6385203",
"0.63613576",
"0.6358105",
"0.63530767",
"0.63487595",
"0.6279512",
"0.62710... | 0.6987084 | 1 |
Updates the learning rate given the learning rate decay. The routine has been implemented according to the original Lua SGD optimizer | def e_63(_Fei, K0do):
for or8S, uOe2 in enumerate(K0do.param_groups):
DJmW = _Fei.TRAINING.LR
if 'step' not in uOe2:
uOe2['step'] = 0.0
else:
uOe2['step'] += 1.0
uOe2['lr'] = DJmW * (1.0 - float(uOe2['step']) * float(_Fei.TRAINING.BATCH_SIZE) / (_Fei.TRAINING.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return",
"def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return",
"def e_63(qtWj, Xsfr, BkRq, f9Ey, K0do):\n paSp = oyIN.sum(qtWj > oyIN.as... | [
"0.7998674",
"0.7998674",
"0.7924784",
"0.78758246",
"0.7808031",
"0.78061086",
"0.77633625",
"0.7747445",
"0.77214557",
"0.7702527",
"0.7682688",
"0.76518416",
"0.7618969",
"0.76176",
"0.7549213",
"0.75402725",
"0.7535187",
"0.7533339",
"0.75329775",
"0.7531624",
"0.7524894"... | 0.7274595 | 63 |
Validate that the username is alphanumeric and is not already in use. | def lKfQ(YKHO):
Ys3F = Nc2H().objects.filter(username__iexact=YKHO.cleaned_data['username'])
if Ys3F.exists():
raise H6V6.ValidationError(bGrB('A user with that username already exists.'))
else:
return YKHO.cleaned_data['username'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDJH(NtEF):\n LaFN = ZbWC.sub('[^a-zA-Z-0-9]+', '', str(NtEF))\n if any((ZfUD.isalpha() for ZfUD in LaFN)):\n return False\n return True",
"def Gt2s(YKHO, NtEF):\n gVaL = '^[a-zA-Z]{3,}$'\n return ZbWC.match(gVaL, NtEF)",
"def Gt2s(NtEF):\n import string\n if not (len(NtEF) > 2 ... | [
"0.83527476",
"0.8211548",
"0.814784",
"0.8135848",
"0.80751944",
"0.805189",
"0.8022534",
"0.7915178",
"0.7838989",
"0.7788622",
"0.77661186",
"0.7763223",
"0.77551514",
"0.7739912",
"0.7730911",
"0.76976854",
"0.76933587",
"0.7691296",
"0.76390404",
"0.76375985",
"0.7623782... | 0.71930707 | 48 |
Verifiy that the values entered into the two password fields match. Note that an error here will end up in ``non_field_errors()`` because it doesn't apply to a single field. | def x0SS(YKHO):
if 'password1' in YKHO.cleaned_data and 'password2' in YKHO.cleaned_data:
if YKHO.cleaned_data['password1'] != YKHO.cleaned_data['password2']:
raise H6V6.ValidationError(bGrB("The two password fields didn't match."))
return YKHO.cleaned_data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BhJx(YKHO):\n GUUE = YKHO.cleaned_data.get('password1')\n tTya = YKHO.cleaned_data.get('password2')\n if GUUE and tTya and (GUUE != tTya):\n raise H6V6.ValidationError('Passwords do not match')\n return tTya",
"def x0SS(YKHO):\n if 'password1' in YKHO.cleaned_data and 'password2' in YKH... | [
"0.79393995",
"0.78751373",
"0.7869208",
"0.7735661",
"0.7653578",
"0.76377136",
"0.76262844",
"0.7619865",
"0.76103294",
"0.75963074",
"0.7589395",
"0.7565969",
"0.75650203",
"0.75650203",
"0.756335",
"0.7547981",
"0.7527759",
"0.74647665",
"0.7378254",
"0.7376154",
"0.73637... | 0.7840083 | 4 |
Sets the data_aggregation_setting of this RawDataSettingsV1. | def Zb_p(YKHO, Zb_p):
YKHO._data_aggregation_setting = Zb_p | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qemi(YKHO, hXjR):\n YKHO._data = YKHO._data.aggregate(**hXjR)",
"def VHLk(YKHO, VHLk: ConfigNodePropertyBoolean):\n YKHO._query_aggregation = VHLk",
"def HZEp(YKHO, HZEp):\n YKHO._raw_data_setting = HZEp",
"def G5nc(YKHO, jkf2, BWXx, H5ew=None):\n raise NotImplementedError()",
"def FIMM(YKH... | [
"0.618007",
"0.5699229",
"0.5593449",
"0.5534642",
"0.5492791",
"0.5159963",
"0.51563",
"0.5152062",
"0.51290625",
"0.48896068",
"0.48860914",
"0.4833387",
"0.47638878",
"0.47190312",
"0.47081825",
"0.465748",
"0.4626875",
"0.46223742",
"0.46195033",
"0.4480558",
"0.44752845"... | 0.8585378 | 0 |
Sets the units_setting of this RawDataSettingsV1. | def LydE(YKHO, LydE):
YKHO._units_setting = LydE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nFDf(YKHO, rYO3):\n YKHO.units = rYO3",
"def rYO3(YKHO, rYO3):\n YKHO._units = rYO3",
"def rYO3(YKHO, rYO3):\n YKHO._units = rYO3",
"def rYO3(YKHO, rYO3):\n YKHO._units = rYO3",
"def AzKP(YKHO, *qIxc):\n return _VfD.Parameter_setUnits(YKHO, *qIxc)",
"def s1KQ(YKHO, *qIxc, **B2fa):\n ... | [
"0.73392993",
"0.69501215",
"0.69501215",
"0.69501215",
"0.6416668",
"0.64136463",
"0.6368304",
"0.62724364",
"0.62644994",
"0.6144763",
"0.61432904",
"0.6136528",
"0.6065689",
"0.59879696",
"0.5953695",
"0.5952562",
"0.59308696",
"0.583724",
"0.5836631",
"0.5828655",
"0.5815... | 0.81460136 | 0 |
Sets the work_hours_setting of this RawDataSettingsV1. | def dO8p(YKHO, dO8p):
YKHO._work_hours_setting = dO8p | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DXsL(YKHO, DXsL):\n if DXsL is not None and len(DXsL) > 1024:\n raise ValueError('Invalid value for `work_hours`, length must be less than or equal to `1024`')\n YKHO._work_hours = DXsL",
"def Tfb5(YKHO, Tfb5):\n YKHO._engine_hours = Tfb5",
"def drHt(YKHO):\n if YKHO.month_workdays == 0 ... | [
"0.7084544",
"0.62833107",
"0.61234754",
"0.5710867",
"0.53572357",
"0.53548336",
"0.5301712",
"0.5130025",
"0.50256395",
"0.49284708",
"0.49263301",
"0.49175677",
"0.4872653",
"0.48705786",
"0.4800906",
"0.47688413",
"0.47624823",
"0.475025",
"0.47354597",
"0.4734547",
"0.47... | 0.8516128 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, nnDH):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Assemble a uri based on a base, any number of path segments, and query string parameters. | def TDhU(P8oC, *pmON, **xDcj):
if P8oC and P8oC.endswith('/'):
P8oC = P8oC[:-1]
RI88 = [P8oC]
pmON = '/'.join([''] + [NCC9(KCHu, '') for KCHu in pmON])
if pmON:
RI88.append(pmON)
NArs = []
for mWFP, BWXx in xDcj.items():
if type(BWXx) in (list, tuple):
NArs.ex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S7hn(YKHO, poAq, NArs):\n if not NArs:\n return poAq\n else:\n F2ks = '?'\n for xqoZ in NArs:\n F2ks = F2ks + xqoZ + '&'\n F2ks = F2ks[:-1]\n j8eK = poAq + F2ks\n return j8eK",
"def jNi7(P8oC: str, *PXIy, **xDcj) -> str:\n WDst = KVWQ(P8oC).geturl... | [
"0.8172769",
"0.7679958",
"0.7513473",
"0.6879448",
"0.68683076",
"0.6697143",
"0.6584741",
"0.64706886",
"0.64205086",
"0.63630056",
"0.63141865",
"0.6287929",
"0.62767005",
"0.6271733",
"0.62544346",
"0.62226605",
"0.62067354",
"0.6118589",
"0.609388",
"0.6077103",
"0.60672... | 0.6343084 | 10 |
Returns true if arg is a list or another Python Sequence, and false otherwise. | def FDfP(d7pR):
return not hasattr(d7pR, 'strip') and hasattr(d7pR, '__getitem__') or hasattr(d7pR, '__iter__') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j5rG(d7pR):\n return isinstance(d7pR, g760.Sequence) and (not sd4x(d7pR))",
"def FDfP(d7pR):\n if isinstance(d7pR, (str, bytes, oyIN.number, dict, set)):\n return False\n return hasattr(d7pR, '__getitem__') or hasattr(d7pR, '__iter__')",
"def Vuhm(DumB):\n return all((isinstance(ZfUD, li... | [
"0.842769",
"0.7965603",
"0.7516044",
"0.7451877",
"0.7329391",
"0.73040754",
"0.72747916",
"0.7107596",
"0.70028114",
"0.69910914",
"0.69853663",
"0.6981128",
"0.69492453",
"0.6949044",
"0.6924374",
"0.68378544",
"0.681947",
"0.67969847",
"0.67924744",
"0.6788219",
"0.675699... | 0.79118264 | 2 |
remove the sqlalchemy sesh | def YtKS(BQDi):
S8SU.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD():\n Zavw()",
"def tBIc(YKHO):\n NCls.drop_all()",
"def GTYX():\n eHpk = GPtr['tg.app_globals'].sa_engine\n UzPC = eHpk.connect()\n ckTe = V8ye.Inspector.from_engine(eHpk)\n yIVm = PnAT()\n PeNE = []\n ViLQ = []\n RCd1 = []\n Xtuq = [bdIy('seq__groups__group_id'), bdIy('s... | [
"0.6853588",
"0.6843821",
"0.6779843",
"0.67321277",
"0.67321277",
"0.6699622",
"0.66935766",
"0.66935766",
"0.66935766",
"0.66935766",
"0.66935766",
"0.66935766",
"0.66935766",
"0.668059",
"0.6641767",
"0.6641767",
"0.6641767",
"0.6641767",
"0.6641767",
"0.66150945",
"0.6602... | 0.0 | -1 |
Load model weights from a given file, which should be previously saved by self.save_weights(). | def SUd8(YKHO, qaEx, format=None, coHW=True, EdbX=False):
H_1o(YKHO, qaEx, format, coHW, EdbX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUd8(YKHO, BZEu):\n YKHO.model.load_weights(BZEu)",
"def SUd8(YKHO, nUeQ):\n YKHO.model.load_weights(nUeQ)\n return",
"def ks9j(YKHO, Ux0P):\n YKHO.model.load_weights(Ux0P)",
"def SUd8(YKHO, VqRE):\n YKHO.model.load_weights(VqRE)",
"def tyeH(YKHO, Ux0P):\n YKHO.model.load_weights(Ux0P... | [
"0.89469826",
"0.8901181",
"0.8853004",
"0.8774798",
"0.8556394",
"0.8332117",
"0.8260749",
"0.8030833",
"0.799898",
"0.7895191",
"0.78296417",
"0.7825905",
"0.77957875",
"0.7748564",
"0.7748564",
"0.7705152",
"0.7701626",
"0.764279",
"0.7554501",
"0.7549377",
"0.7390658",
... | 0.75612944 | 18 |
Set this network in evaluation mode. After calling this method, all layers in network are in evaluation mode, in particular, BatchNorm, Dropout, etc. Examples >>> import tensorlayer as tl >>> net = tl.models.vgg16() >>> net.eval() do evaluation | def CcMJ(YKHO):
YKHO._phase = 'predict'
YKHO.add_flags_recursive(training=False)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f2Lf(YKHO):\n if YKHO.model.__dict__['training']:\n YKHO.model.eval()",
"def eval(YKHO):\n YKHO.train(mode=False)",
"def CcMJ(YKHO, eval: bool):\n YKHO.brain.set_eval(eval)",
"def eval(YKHO):\n YKHO.mode = 'eval'\n YKHO.online_net.eval()",
"def eval(YKHO):\n YKHO.mode = 'eval'\... | [
"0.78309643",
"0.75001425",
"0.74250203",
"0.7406579",
"0.7406579",
"0.73397756",
"0.7029367",
"0.6851151",
"0.67749524",
"0.6703862",
"0.6631509",
"0.6591249",
"0.6569461",
"0.6422038",
"0.637382",
"0.6329969",
"0.6329969",
"0.63081795",
"0.6305343",
"0.6291049",
"0.6288456"... | 0.6941809 | 7 |
Set this network in evaluation mode. | def QOe9(YKHO):
YKHO.eval() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iZol(YKHO, P4AC):\n pass",
"def CcMJ(YKHO, eval: bool):\n YKHO.brain.set_eval(eval)",
"def f2Lf(YKHO):\n if YKHO.model.__dict__['training']:\n YKHO.model.eval()",
"def H1N_(YKHO, Tuqy):\n if Tuqy == 'train':\n YKHO.net.train()\n elif Tuqy == 'eval':\n YKHO.net.eval()\n... | [
"0.7694437",
"0.7670649",
"0.7342549",
"0.7151897",
"0.7103393",
"0.7103393",
"0.70450133",
"0.70249236",
"0.7009851",
"0.7001831",
"0.691162",
"0.68425643",
"0.66861284",
"0.6543857",
"0.6487741",
"0.63806707",
"0.6322034",
"0.62210166",
"0.60879964",
"0.60867757",
"0.607585... | 0.0 | -1 |
Set this network in evaluation mode. | def DI_U(YKHO):
YKHO.eval() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iZol(YKHO, P4AC):\n pass",
"def CcMJ(YKHO, eval: bool):\n YKHO.brain.set_eval(eval)",
"def f2Lf(YKHO):\n if YKHO.model.__dict__['training']:\n YKHO.model.eval()",
"def H1N_(YKHO, Tuqy):\n if Tuqy == 'train':\n YKHO.net.train()\n elif Tuqy == 'eval':\n YKHO.net.eval()\n... | [
"0.7694437",
"0.7670649",
"0.7342549",
"0.7151897",
"0.7103393",
"0.7103393",
"0.70450133",
"0.70249236",
"0.7009851",
"0.7001831",
"0.691162",
"0.68425643",
"0.66861284",
"0.6543857",
"0.6487741",
"0.63806707",
"0.6322034",
"0.62210166",
"0.60879964",
"0.60867757",
"0.607585... | 0.0 | -1 |
Returns a new keras SqueezeNet model | def RsH1(GhuM=(224, 224, 3)):
njad = X6a0(shape=GhuM)
eVVj = yHwh(64, (3, 3), strides=(2, 2), padding='valid')(njad)
eVVj = MroH('relu')(eVVj)
eVVj = YMbS(pool_size=(3, 3), strides=(2, 2))(eVVj)
eVVj = g3kq(input=eVVj, input_channel_small=16, input_channel_large=64)
eVVj = g3kq(input=eVVj, input... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0PF():\n C3ST = ileL()\n C3ST.add(DilS(xiX8, QgIH, input_length=KLk8))\n C3ST.add(lARV(0.2))\n C3ST.add(lTlC(KUnM, Ot1W, padding='valid', activation='relu', strides=1))\n C3ST.add(QfPC())\n C3ST.add(l6ZH(dZTX))\n C3ST.add(lARV(0.2))\n C3ST.add(MroH('relu'))\n C3ST.add(l6ZH(2))\n ... | [
"0.6779109",
"0.6638269",
"0.66308945",
"0.6543631",
"0.65331703",
"0.6512372",
"0.65106356",
"0.6495543",
"0.64914733",
"0.6490912",
"0.6468552",
"0.6449092",
"0.64283264",
"0.64260525",
"0.64073676",
"0.6404156",
"0.64011025",
"0.63759005",
"0.6370142",
"0.6355601",
"0.6339... | 0.66259646 | 3 |
Gets the prepopulated environment variables for the job build | def ZnEa(YKHO):
r4sN = '/injectedEnvVars/api/json'
If9b = YKHO._api_request(YKHO.url + r4sN)
try:
If9b = qQXR.loads(If9b)
return If9b['envMap']
except bZdH:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nca6(YKHO):\n return VYPX(YKHO._tagged_env_vars, build=True)",
"def fX9w(YKHO) -> laHg.Optional[laHg.Mapping[str, lTJ4.aws_codebuild.BuildEnvironmentVariable]]:\n return YKHO._values.get('environment_variables')",
"def fX9w(YKHO) -> laHg.Optional[laHg.Mapping[str, lTJ4.aws_codebuild.BuildEnvironmentV... | [
"0.71218103",
"0.6978689",
"0.6978689",
"0.6978689",
"0.6978689",
"0.6962417",
"0.6928234",
"0.6838894",
"0.6718607",
"0.6701541",
"0.67005",
"0.6680116",
"0.6649582",
"0.66316056",
"0.6587881",
"0.65733594",
"0.6556599",
"0.64912426",
"0.63936",
"0.63538235",
"0.6329612",
... | 0.5978486 | 53 |
Copies the model parameters of one estimator to another. | def SoUk(cb_Q, Ptjf, t4Xs):
Fzlc = [a1PO for a1PO in ZylS.trainable_variables() if a1PO.name.startswith(Ptjf.scope)]
Fzlc = sorted(Fzlc, key=lambda Ty9i: Ty9i.name)
hanX = [a1PO for a1PO in ZylS.trainable_variables() if a1PO.name.startswith(t4Xs.scope)]
hanX = sorted(hanX, key=lambda Ty9i: Ty9i.name)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y5Gm(K2kL, ZpWk):\n for YRbF, r845 in zip(K2kL.trainable_weights, ZpWk.trainable_weights):\n r845.assign(YRbF)",
"def RN3v(YKHO, C3ST: nn.Module) -> None:\n mfQc = Hs6x.chain(YKHO.module.parameters(), YKHO.module.buffers())\n AgC8 = Hs6x.chain(C3ST.parameters(), C3ST.buffers())\n for XgKX,... | [
"0.6655023",
"0.6186064",
"0.6186064",
"0.61854655",
"0.6052574",
"0.60511726",
"0.60407877",
"0.5963009",
"0.5963009",
"0.59216297",
"0.59045017",
"0.58989644",
"0.589293",
"0.58706653",
"0.5860739",
"0.58496034",
"0.58299047",
"0.58268255",
"0.5764856",
"0.57535136",
"0.574... | 0.7852629 | 1 |
Creates an epsilongreedy policy based on a given Qfunction approximator and epsilon. | def laea(BHCt, BJo2):
def q13q(cb_Q, rNYq, _hZ2):
k0lF = oyIN.ones(BJo2, dtype=float) * _hZ2 / BJo2
gc9P = BHCt.predict(cb_Q, oyIN.expand_dims(rNYq, 0))[0]
print(f'q_values: {gc9P}')
r8IL = oyIN.argmax(gc9P)
k0lF[r8IL] += 1.0 - _hZ2
return k0lF
return q13q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HYJ8(T8ck, _hZ2, ph8c):\n\n def k7XT(QTBn):\n xJhW = oyIN.ones(ph8c, dtype=float) * _hZ2 / ph8c\n r8IL = oyIN.argmax(T8ck[QTBn])\n xJhW[r8IL] += 1.0 - _hZ2\n return xJhW\n return k7XT",
"def HYJ8(T8ck, _hZ2, ph8c):\n\n def k7XT(QTBn):\n xJhW = oyIN.ones(ph8c, dtype... | [
"0.78010213",
"0.7771446",
"0.7609632",
"0.7590617",
"0.75758374",
"0.75702316",
"0.7455431",
"0.7435255",
"0.72975755",
"0.70651025",
"0.7052984",
"0.6743078",
"0.6650919",
"0.65363425",
"0.6319062",
"0.62520564",
"0.62376964",
"0.6202657",
"0.61382174",
"0.6107149",
"0.6052... | 0.7177619 | 9 |
Gets the maximum sequence bounds of non idle time Machines shows default values at the beginning and end of the operations; this functions returns the ids of the longest sequence that is not operating with the default values. Note that you cannot just remove all default values, essentially because order matters and the... | def u_ou(hkxX: Tensor, HyJ9: float):
A2y4 = (hkxX == HyJ9).nonzero()[:, 0]
yk4i = A2y4[1:] - A2y4[:-1]
lpha = (yk4i == yk4i.max()).nonzero()[0, 0]
yKcO = A2y4[lpha] + 1 if lpha != 0 and yk4i.max() != 1 else 0
Os4s = A2y4[lpha + 1] if lpha != 0 and yk4i.max() != 1 else A2y4[0]
return (yKcO, Os4s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Toq4(Feib=None):\n return [(None, None), (10 ** (-6), None), (2.0, 350), (None, -10 ** (-6)), (None, None)]",
"def hmss(yKcO=1, Os4s=1000000):\n BcCR = 0\n glaU = 0\n for YRbF in range(yKcO, Os4s):\n jvSB = dCtK(YRbF)\n if len(jvSB) > BcCR:\n BcCR = len(jvSB)\n ... | [
"0.5749199",
"0.5637835",
"0.5553669",
"0.5540054",
"0.5517348",
"0.54871017",
"0.547557",
"0.5464125",
"0.54230356",
"0.53948283",
"0.53876203",
"0.53298086",
"0.5300341",
"0.52418303",
"0.5241372",
"0.52193195",
"0.5216842",
"0.52015424",
"0.520039",
"0.51883274",
"0.516819... | 0.7332722 | 0 |
Normalize the given vector to be of unit length. | def NkkI(WKvO: float, LVAh: float, epBp: float) -> M1rV:
FOSW = epAf.sqrt(WKvO * WKvO + LVAh * LVAh + epBp * epBp)
return (WKvO / FOSW, LVAh / FOSW, epBp / FOSW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(he6J):\n return he6J / u54L(he6J)",
"def NkkI(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def EMSF(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n iArr = oyIN.array(iArr)\n if oyIN.linalg.norm(iArr) <= 0.0001:\n YA9R = 1.0\n else:\n YA9R = oyIN... | [
"0.8418114",
"0.8342787",
"0.82465947",
"0.8231255",
"0.8206098",
"0.81620806",
"0.8138398",
"0.8138398",
"0.8138398",
"0.8138398",
"0.8138398",
"0.8138398",
"0.8138398",
"0.8138398",
"0.8138398",
"0.8138398",
"0.8138398",
"0.81377804",
"0.81377804",
"0.81377804",
"0.81258905... | 0.0 | -1 |
Return the maximum color value that this light can produce. | def TM4C(YKHO) -> float:
return max(YKHO._color) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ifmL(LNo8, qfpW):\n UMN4 = qB4v(LNo8, qfpW)\n if UMN4:\n return (0, LNo8[UMN4[0]:UMN4[1] + 1, UMN4[2]:UMN4[3] + 1])\n else:\n return (1, None)",
"def BgOs(pNZh, Q6kx):\n return max(y9_3(pNZh, Q6kx))",
"def R6xx(YKHO):\n or8S = YKHO._color_indexes.get(YKHO._plotid)\n if or8S ... | [
"0.7567657",
"0.7444326",
"0.69971585",
"0.68010145",
"0.67860895",
"0.66241765",
"0.6564625",
"0.6542855",
"0.65393096",
"0.65304965",
"0.6511511",
"0.6487539",
"0.64411324",
"0.6435717",
"0.64141905",
"0.6350198",
"0.6333665",
"0.63173854",
"0.62954146",
"0.6288576",
"0.625... | 0.8303178 | 0 |
Return the color contributed by this light on a surface given its (unit) normal vector and material color. | def wD9a(YKHO, mhAC: Point3D, sLNY: Color) -> HRmL:
uYbU = sum(_AK6(YKHO._direction, mhAC))
hETv = max(uYbU, YKHO._dot_clip)
hETv = (hETv - YKHO._dot_clip) / (1.0 - YKHO._dot_clip)
return [z3rX * sP8i * hETv for z3rX, sP8i in zip(sLNY, YKHO._color)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wD9a(YKHO, EBgd: Point3D, HpuQ: Point3D, Lq8X: Point3D, sLNY: Color) -> HRmL:\n aNZO, xQ3W, kDNl = (EBgd[0] - HpuQ[0], EBgd[1] - HpuQ[1], EBgd[2] - HpuQ[2])\n bcP8, xEOs, nyuy = (EBgd[0] - Lq8X[0], EBgd[1] - Lq8X[1], EBgd[2] - Lq8X[2])\n jHsn = xQ3W * nyuy - kDNl * xEOs\n pvd3 = kDNl * bcP8 - aNZO ... | [
"0.66830057",
"0.64685374",
"0.63342154",
"0.6113619",
"0.61106956",
"0.60924566",
"0.6054413",
"0.6053781",
"0.6053781",
"0.6053781",
"0.60509187",
"0.6034845",
"0.59819704",
"0.59732807",
"0.59732807",
"0.5946499",
"0.5937387",
"0.59219927",
"0.5917848",
"0.5914473",
"0.591... | 0.7437899 | 0 |
Create a camera given its position in 3D space and the TaitBryan angles of its orientation. | def FIMM(YKHO, oeNL: Point3D, Ti6F: float, EBm0: float, BW8W: float, trlf: float, Yc25: float, PhxM: Iterable[DirectionalLight], KGSK: bool):
YKHO._pos = oeNL
YKHO._cx = epAf.cos(Ti6F)
YKHO._sx = epAf.sin(Ti6F)
YKHO._cy = epAf.cos(EBm0)
YKHO._sy = epAf.sin(EBm0)
YKHO._cz = epAf.cos(BW8W)
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, _QSz=(0, 0, 0), MUmk=(0, 0, -0.1), tm40=None, Cycl=True, NXpY=1.0):\n super(RUQe, YKHO).__init__()\n YKHO.at = _QSz\n YKHO.start_eye = MUmk\n YKHO.eye = [MUmk[0], MUmk[1], MUmk[2]]\n if tm40 == None:\n from pi3d.Display import Display\n tm40 = [Display.INSTANCE.near, Dis... | [
"0.6798269",
"0.67603046",
"0.66758746",
"0.65076005",
"0.64469564",
"0.63589436",
"0.6302461",
"0.6173746",
"0.6167616",
"0.6162428",
"0.6041424",
"0.6036619",
"0.5972016",
"0.59465146",
"0.59234536",
"0.586841",
"0.5862043",
"0.5859587",
"0.5833382",
"0.58221215",
"0.573312... | 0.0 | -1 |
Draw the terrain using the given Camera. | def JmFt(YKHO, yDvq: Camera):
yDvq.draw_triangles(YKHO._triangles) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO, J20S, yDvq=None):\n if yDvq:\n J20S.blit(YKHO.image, yDvq.apply(YKHO.rect))\n else:\n J20S.blit(YKHO.image, YKHO.rect)",
"def JmFt(YKHO, yDvq):\n for zFiD in YKHO._polyline.lines:\n yDvq.draw_line(zFiD.begin, zFiD.end, YKHO.color, YKHO.width)",
"def UQDu(YKHO, auDs,... | [
"0.6371948",
"0.628486",
"0.62307286",
"0.60651135",
"0.59940034",
"0.5988739",
"0.578298",
"0.57561666",
"0.5680349",
"0.56671095",
"0.56671095",
"0.5614266",
"0.5581884",
"0.55596256",
"0.55214775",
"0.54720634",
"0.5420156",
"0.5419159",
"0.5342214",
"0.5324978",
"0.532494... | 0.6245847 | 2 |
Write JSON data to the specified file. This is a simple wrapper around our file handling stuff. | def Lsrz(YKHO, nUeQ, nPrm):
if not vtfo(TLI7(nUeQ)):
eviw(TLI7(nUeQ))
with open(nUeQ + '.json', 'w') as nUeQ:
nUeQ.write(PjZe(nPrm, indent=2, separators=(',', ': '), sort_keys=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AutM(Ux0P, nPrm):\n try:\n with open(Ux0P, 'w') as bpNo:\n qQXR.dump(nPrm, bpNo, indent=0, sort_keys=True)\n except IOError:\n print('Error writing to json file %s' % Ux0P)",
"def nVOF(YKHO, Ux0P, nPrm):\n GSwS = Hy7s.path.join(YKHO._tempdir, Ux0P)\n with open(GSwS, 'w') ... | [
"0.7961672",
"0.79502094",
"0.7937308",
"0.79276156",
"0.7915652",
"0.7915652",
"0.7870587",
"0.7840478",
"0.78364086",
"0.78331935",
"0.7825509",
"0.78103507",
"0.7800449",
"0.77245957",
"0.7690022",
"0.7645593",
"0.7633606",
"0.76325184",
"0.76158357",
"0.76046854",
"0.7592... | 0.79068244 | 6 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
sve5 = jQ3Z['month'].mode()[0]
print('Most Frequent month:', sve5)
StUT = jQ3Z['day_of_week'].mode()[0]
print('Most Frequent day of week:', StUT)
pRsb = jQ3Z['hour'].mode()[0]
print('Most Fre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583438",
"0.757... | 0.773628 | 8 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
g6Ro = jQ3Z['Start Station'].mode()[0]
print('Most common Start Station:', g6Ro)
q5Gw = jQ3Z['End Station'].mode()[0]
print('Most Common End Station:', q5Gw)
alTG = (jQ3Z['Start Station'] + ' ' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.7163289 | 51 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print(jQ3Z.groupby(['month'])['Trip Duration'].sum())
print(jQ3Z.groupby(['day_of_week'])['Trip Duration'].sum())
print(jQ3Z.groupby(['month'])['Trip Duration'].mean())
print(jQ3Z.groupby(['day_of_week'])['Trip Duration... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.8143032",
"0.8024939",
"0.8004003",
"0.7949475",
"0.79372776",
"0.79307956",
"0.7926507",
"0.79149866",
"0.7914229",
"0.79077655",
"0.79054105",
"0.7900338",
"0.78913456",
"0.78892654",
"0.78863764",
"0.7884846",
"0.78839767",
"0.7882144",
"0.7873669",
"0.7868308",
"0.7866... | 0.7553662 | 96 |
Render the homepage template on the / route | def C_QL():
zXP7 = {'index': {'bannertitle': [], 'subtitle': [], 'firstText': [], 'secondText': []}}
for H5ew in zXP7['index'].keys():
zXP7['index'][H5ew].append(str(lGIQ.query.filter_by(pageID=H5ew, htmlName='index').first()))
b97E = Wl6u.query.all()
nPrm = {'modules': [], 'discipline': [], 'su... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home/index.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home/index.html', title='Welcome')",
"def bVaH():\n return TvZl('index.html')",
"def vja_():\n return TvZl('index.html')... | [
"0.8597299",
"0.8569112",
"0.85272837",
"0.8474665",
"0.8474087",
"0.8451808",
"0.8424757",
"0.8424757",
"0.84213376",
"0.8389955",
"0.83125323",
"0.8266481",
"0.8266481",
"0.8266481",
"0.8266481",
"0.8266481",
"0.8266481",
"0.82651",
"0.8260553",
"0.8250731",
"0.8250731",
... | 0.0 | -1 |
Render the fase1 template on the /fase1 route | def TBTv():
zXP7 = {'fase1': {'bannertitle': [], 'subtitle': [], 'firstText': [], 'secondText': []}}
for H5ew in zXP7['fase1'].keys():
zXP7['fase1'][H5ew].append(str(lGIQ.query.filter_by(pageID=H5ew, htmlName='fase1').first()))
GCw_ = mNEW.query.all()
S3pO = [KbDF.__dict__['name'] for KbDF in GC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_xU():\n return TvZl('landing.html')",
"def hXw_():\n return TvZl('index.html')",
"def DjNB():\n return TvZl('graph1.html')",
"def jB0I():\n return TvZl('Prototype1.html')",
"def d6pt():\n return TvZl('home.jinja2')",
"def r7jQ(QePW):\n rPXJ = 'main'\n return vKnz(rPXJ)",
"def... | [
"0.638614",
"0.6373444",
"0.63079125",
"0.6282907",
"0.62595075",
"0.6239214",
"0.61953425",
"0.61786556",
"0.6143801",
"0.60757196",
"0.60483044",
"0.6037403",
"0.60196054",
"0.5998281",
"0.5984551",
"0.59771687",
"0.5976989",
"0.59730905",
"0.5965922",
"0.5963188",
"0.59589... | 0.0 | -1 |
Render the fase3 template on the / route | def PEbe():
zXP7 = {'fase3': {'bannertitle': [], 'subtitle': [], 'firstText': [], 'secondText': [], 'thirdText': []}}
for H5ew in zXP7['fase3'].keys():
zXP7['fase3'][H5ew].append(str(lGIQ.query.filter_by(pageID=H5ew, htmlName='fase3').first()))
N8OZ = ['triangle', 'square', 'diamond', 'triangle', 's... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return TvZl('home.jinja2')",
"def W8mS():\n return TvZl('index.html')",
"def hXw_():\n return TvZl('index.html')",
"def F_xU():\n return TvZl('landing.html')",
"def XkU1():\n return TvZl('index.html')",
"def d6pt(YKHO, **YSA3):\n rPXJ = YKHO.context\n QePW = YKHO.reques... | [
"0.6992224",
"0.6916828",
"0.6885695",
"0.68696064",
"0.68494356",
"0.6746363",
"0.67157197",
"0.6707549",
"0.6707549",
"0.6707416",
"0.6693784",
"0.66927797",
"0.66871464",
"0.66830254",
"0.66830254",
"0.66830254",
"0.66830254",
"0.6681699",
"0.6676894",
"0.6676894",
"0.6676... | 0.0 | -1 |
returns a formatted date string | def Wq7q(YKHO, JRYC):
if RlMg == '':
return ITS7.strftime('%Y-%m-%d %H:%M:%S', JRYC.timetuple())
else:
return ITS7.strftime(RlMg, JRYC.timetuple()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _c1T() -> str:\n return qcWV.strftime(qcWV.today(), uQMc)",
"def JvEs(_c1T):\n CjKC = _c1T.day\n x0eS = _c1T.month\n lO87 = _c1T.year\n quSE = str(x0eS) + '/'\n quSE += str(CjKC) + '/'\n quSE += str(lO87)\n return quSE",
"def eDGe(_c1T):\n return _c1T.strftime(str(x0eS(_c1T.month... | [
"0.8016059",
"0.7916384",
"0.7914958",
"0.7656416",
"0.745917",
"0.74570465",
"0.7381044",
"0.73655266",
"0.73201656",
"0.72859514",
"0.72671545",
"0.7251556",
"0.7224932",
"0.7190442",
"0.7117921",
"0.711506",
"0.71048146",
"0.71048146",
"0.7021738",
"0.7020266",
"0.7007234"... | 0.7215428 | 13 |
Converts a string to a python list using json.loads(). Will only work for simple lists with objects supported by json. | def jGZe(KCHu):
KCHu.replace("'", '"')
return qQXR.loads(KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3BH(zEKB):\n S06t = []\n if zEKB is None:\n return S06t\n else:\n return qQXR.loads(zEKB)",
"def K3BH(zEKB):\n DMbc = []\n if zEKB is not None and zEKB != '':\n if type(zEKB) != str:\n raise TypeError('json_string must be a string')\n DMbc = qQXR.loads(z... | [
"0.8196887",
"0.807428",
"0.798657",
"0.7976135",
"0.7941863",
"0.79374737",
"0.7777885",
"0.7750806",
"0.7738409",
"0.76314676",
"0.76314676",
"0.7610711",
"0.7610711",
"0.7610711",
"0.75805837",
"0.755738",
"0.72788525",
"0.71421796",
"0.71223956",
"0.70730686",
"0.70619166... | 0.7986064 | 3 |
Gets the greatest node index 'maxi' from an edgelist. Returns 1 + maxi as an estimate of the network size. | def hAmM(AvF5):
return oyIN.max(AvF5) + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OMIa(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.edge_count_max or 0)",
"def qBKD(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.edge_position_max or 0)",
"def ipPO(YKHO):\n return max(YKHO.nodes, key=int)",
"def Cjt0(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.node_count_max o... | [
"0.6852434",
"0.6803402",
"0.6681722",
"0.6654555",
"0.6440404",
"0.63427424",
"0.63394284",
"0.6291241",
"0.6266796",
"0.6244166",
"0.6204025",
"0.61553365",
"0.61204684",
"0.6115518",
"0.6094112",
"0.60562533",
"0.6031743",
"0.6030485",
"0.5977314",
"0.5967381",
"0.59558",
... | 0.6548268 | 4 |
Returns the inverse participation ratio of a vector (first normalized by its sum of squares). | def EGIG(WKvO):
ajwV = WKvO * WKvO
Nqp_ = oyIN.sum(ajwV)
if Nqp_ < cXXq:
return 0.0
else:
return oyIN.sum(ajwV * ajwV / (Nqp_ * Nqp_)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aHVb(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def u1KP(iArr):\n Ty9i = oyIN.divide(iArr, oyIN.linalg.norm(iArr))\n return oyIN.round(Ty9i, decimals=4)",
"def j8U8(iArr):\n iArr = oyIN.array(iArr)\n if oyIN.linalg.norm(iArr) <= 0.0001:\n YA9R = 1.0\n else:\n YA9R = oy... | [
"0.7080318",
"0.7013436",
"0.6883938",
"0.6870528",
"0.68592304",
"0.6831641",
"0.68310136",
"0.68310136",
"0.68310136",
"0.682629",
"0.682629",
"0.682629",
"0.682629",
"0.682629",
"0.682629",
"0.682629",
"0.682629",
"0.682629",
"0.682629",
"0.682629",
"0.6815404",
"0.67961... | 0.0 | -1 |
Returns the inverse participation ratio of a vector (first normalized by its sum of squares). | def UuTJ(WKvO):
rVnq = WKvO / oyIN.sqrt(oyIN.sum(WKvO ** 2))
return oyIN.sum(rVnq ** 4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aHVb(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def u1KP(iArr):\n Ty9i = oyIN.divide(iArr, oyIN.linalg.norm(iArr))\n return oyIN.round(Ty9i, decimals=4)",
"def j8U8(iArr):\n iArr = oyIN.array(iArr)\n if oyIN.linalg.norm(iArr) <= 0.0001:\n YA9R = 1.0\n else:\n YA9R = oy... | [
"0.70827144",
"0.7014197",
"0.6886357",
"0.68725705",
"0.6860212",
"0.6833496",
"0.6833496",
"0.6833496",
"0.6833495",
"0.68287",
"0.68287",
"0.68287",
"0.68287",
"0.68287",
"0.68287",
"0.68287",
"0.68287",
"0.68287",
"0.68287",
"0.68287",
"0.6817564",
"0.6797501",
"0.677... | 0.0 | -1 |
This function creates a spark session | def Yu9h():
ujem = lBG2.builder.config('spark.jars.packages', 'org.apache.hadoop:hadoop-aws:2.7.0').getOrCreate()
return ujem | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hv6k():\n return lBG2.builder.appName('Transforming the historical parking occupancy and blockface datasets').getOrCreate()",
"def Yu9h():\n print('Create Spark Session')\n ujem = lBG2.builder.config('spark.jars.packages', 'org.apache.hadoop:hadoop-aws:2.7.0').getOrCreate()\n return ujem\n pri... | [
"0.86831474",
"0.8436503",
"0.8333162",
"0.83242106",
"0.81733435",
"0.8165045",
"0.8144665",
"0.8144665",
"0.8144665",
"0.8144665",
"0.8136419",
"0.8128599",
"0.8064378",
"0.8044765",
"0.8039344",
"0.80319095",
"0.8030627",
"0.7891488",
"0.78447515",
"0.77366775",
"0.771506"... | 0.81336313 | 17 |
Returns whether or not the user has access to this LocalSite. This checks that the user is logged in, and that they're listed in the 'users' field. | def i7O7(YKHO, CBIr):
return YKHO.public or (CBIr.is_authenticated and (CBIr.is_staff or YKHO.users.filter(pk=CBIr.pk).exists())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())",
"def Y8Sy(YKHO):\n return YKHO.user is not None",
"def JL1u(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n return YKHO.user_objects(CBIr).filter(id=YKHO.id).exists()",
"def T_ME(YKHO, NtEF):\n if NtEF in YKHO... | [
"0.7626998",
"0.7124804",
"0.7096632",
"0.70552987",
"0.7006824",
"0.6978054",
"0.6971998",
"0.69320786",
"0.68809944",
"0.6847775",
"0.6844484",
"0.6837533",
"0.67746365",
"0.6757961",
"0.67500454",
"0.66971207",
"0.66955066",
"0.6690002",
"0.6650356",
"0.659763",
"0.6594348... | 0.6757563 | 14 |
Returns whether or not a user can modify settings in a LocalSite. This checks that the user is either staff with the proper permissions, or that they're listed in the 'admins' field. By default, this is checking whether the LocalSite itself can be modified, but a different permission can be passed to check for another ... | def pk5K(YKHO, CBIr, IuXB='site.change_localsite'):
return CBIr.has_perm(IuXB) or YKHO.admins.filter(pk=CBIr.pk).exists() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ck5B(YKHO, QePW, YEnM, RWYq=None, *qIxc, **B2fa):\n return YEnM.is_mutable_by(QePW.user, local_site=RWYq)",
"def G1UE(YKHO):\n return bool(gTEQ('PrlUsrCfg_IsLocalAdministrator', YKHO.handle))",
"def M1EP(YKHO, CBIr, IuXB, YEnM=None):\n if YEnM is not None and (not isinstance(YEnM, LaQc)):\n ... | [
"0.69915265",
"0.6767986",
"0.6745964",
"0.66542995",
"0.6571868",
"0.6538805",
"0.65115726",
"0.64365876",
"0.64365876",
"0.6423288",
"0.6423288",
"0.6423288",
"0.6416041",
"0.64117044",
"0.6377946",
"0.63580614",
"0.6347583",
"0.63408816",
"0.6334341",
"0.6306698",
"0.63005... | 0.7325419 | 0 |
Initial test to ensure flask was setup correctly | def hDnz(YKHO):
I78j = P4t4.test_client(YKHO)
geh0 = I78j.get('/', content_type='html/text')
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.app = L2w0(__name__)\n YKHO.app_context = YKHO.app.app_context()\n YKHO.app_context.push()\n YKHO.client = YKHO.app.test_client()",
"def FCbF(YKHO):\n YKHO.client = P4t4.test_client()\n P4t4.config['TESTING'] = True",
"def FCbF(YKHO):\n YKHO.client = P4t4.test_client... | [
"0.7963018",
"0.7768348",
"0.775371",
"0.775371",
"0.7753088",
"0.76997596",
"0.76996696",
"0.7628669",
"0.71135354",
"0.70732474",
"0.70732474",
"0.7046274",
"0.70372415",
"0.70372415",
"0.7029195",
"0.7028692",
"0.7028692",
"0.7028692",
"0.7014647",
"0.6978317",
"0.6931532"... | 0.0 | -1 |
Test user's dict is empty at first | def f5Kn(YKHO):
Q5YQ = YKHO.app
YKHO.assertEqual(len(Q5YQ.users), 0)
Q5YQ.create_user()
YKHO.assertIsInstance(Q5YQ, mv1M)
YKHO.assertEqual(len(Q5YQ.users), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkfX(YKHO):\n n5sN = djUr(None, YKHO.details)\n YKHO.assertDictEqual(n5sN, {})",
"def u7Nz(Vx4q):\n del Vx4q['displayname']\n del Vx4q['gecos']\n del Vx4q['cn']\n CBIr = mv1M(Vx4q)\n assert CBIr.name is None",
"def Ikqr(Vx4q):\n del Vx4q['displayname']\n Vx4q['gecos'] = ['GCOS']\... | [
"0.75731874",
"0.6836103",
"0.6771533",
"0.6714173",
"0.66814727",
"0.66372144",
"0.6538163",
"0.65012443",
"0.64893514",
"0.64691335",
"0.64588577",
"0.6456357",
"0.64208287",
"0.63392884",
"0.63277215",
"0.63277215",
"0.62164754",
"0.6210718",
"0.62043333",
"0.62015986",
"0... | 0.6062548 | 31 |
Set the logger to log info in terminal and file `log_path`. In general, it is useful to have a logger so that every output to the terminal is saved in a permanent file. Here we save it to `model_dir/train.log`. | def wmdW(xkzz=False, zeeE=None):
bo34 = G9jH.getLogger()
bo34.setLevel(G9jH.INFO)
if not bo34.handlers:
if xkzz:
L8wK = G9jH.FileHandler(zeeE)
L8wK.setFormatter(G9jH.Formatter('%(asctime)s:%(levelname)s: %(message)s'))
bo34.addHandler(L8wK)
qnWX = G9jH.Str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n9Xd(YKHO, uqvc=None):\n YKHO.epoch = 0\n wzkt = qcWV.datetime.now()\n if uqvc:\n njyT = '.*/\\\\w+(\\\\d{4})(\\\\d{2})(\\\\d{2})T(\\\\d{2})(\\\\d{2})/mask\\\\_rcnn\\\\_\\\\w+(\\\\d{4})\\\\.h5'\n r8hN = ZbWC.match(njyT, uqvc)\n if r8hN:\n wzkt = qcWV.datetime(int(r8hN.g... | [
"0.71050185",
"0.6997534",
"0.69510585",
"0.6779603",
"0.6645142",
"0.6635573",
"0.6463111",
"0.63399893",
"0.6329755",
"0.6300683",
"0.6288131",
"0.6273727",
"0.6232093",
"0.6207704",
"0.62005347",
"0.61989444",
"0.61839473",
"0.61506486",
"0.6113685",
"0.6081524",
"0.606003... | 0.6652557 | 4 |
Saves model and training parameters at checkpoint + 'last.pth.tar'. If is_best==True, also saves checkpoint + 'best.pth.tar' | def IRyE(QTBn, xWf0, vauY):
VqRE = Hy7s.path.join(vauY, 'last.pth.tar')
if not Hy7s.path.exists(vauY):
print('Checkpoint Directory does not exist! Making directory {}'.format(vauY))
Hy7s.mkdir(vauY)
ht2j.save(QTBn, VqRE)
if xWf0:
RDuA.copyfile(VqRE, Hy7s.path.join(vauY, 'best.pth... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lac1(YKHO, xWf0, QTBn, qtWj):\n pmON = Hy7s.path.join(YKHO.logpath_models, 'model-%d.pth.tar' % qtWj)\n ht2j.save(QTBn, pmON)\n if xWf0:\n RDuA.copyfile(pmON, pmON + 'model_best.pth.tar')",
"def IRyE(QTBn, xWf0, Ux0P='checkpoint.pth.tar'):\n AGPF = 'runs/%s/' % qIxc.name\n if not Hy7s.p... | [
"0.8496686",
"0.8399394",
"0.83906746",
"0.8384919",
"0.8348396",
"0.8271069",
"0.82680976",
"0.8267125",
"0.8241347",
"0.8236903",
"0.8175586",
"0.8158997",
"0.80980265",
"0.7997058",
"0.79906005",
"0.7988534",
"0.77621585",
"0.7731652",
"0.770671",
"0.7673197",
"0.7665389",... | 0.80526185 | 13 |
Loads model parameters (state_dict) from file_path. If optimizer is provided, loads state_dict of optimizer assuming it is present in checkpoint. | def Nh79(vauY, C3ST, K0do=None):
if not Hy7s.path.exists(vauY):
raise "File doesn't exist {}".format(vauY)
vauY = ht2j.load(vauY, map_location=ht2j.device('cpu'))
C3ST.load_state_dict(vauY['state_dict'])
if K0do:
K0do.load_state_dict(vauY['optim_dict'])
return vauY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO, pmON):\n vauY = ht2j.load(pmON)\n YKHO.load_state_dict(vauY['model_state_dict'])\n YKHO.optimizer.load_state_dict(vauY['optimizer_state_dict'])",
"def tyeH(YKHO, pmON):\n vauY = ht2j.load(pmON)\n YKHO.load_state_dict(vauY['model_state_dict'])\n YKHO.optimizer.load_state_dict(vauY... | [
"0.77860296",
"0.77860296",
"0.77438104",
"0.7649429",
"0.763189",
"0.7625136",
"0.74906623",
"0.7334688",
"0.7298337",
"0.72729903",
"0.7204361",
"0.69773376",
"0.6974468",
"0.6941346",
"0.69103247",
"0.69103247",
"0.6908916",
"0.6892366",
"0.68774337",
"0.6849951",
"0.68485... | 0.6616543 | 33 |
r"""A method used to initialize the weights of PyTorch models. | def YLCr(Zxma, O37i=None):
if O37i == 'xavier_uniform':
FJYT = DbxN.xavier_uniform_
elif O37i == 'xavier_normal':
FJYT = DbxN.xavier_normal_
elif O37i == 'kaiming_normal' or O37i == 'msra':
FJYT = DbxN.kaiming_normal_
elif O37i == 'kaiming_uniform':
FJYT = DbxN.kaiming_un... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or_model(YKHO._batch)",
"def vJuA(YKHO):\n raise NotImplementedError",
"def sTi3(YKHO):\n for gEmA in YKHO._cnn_layers:\n dIoi.WeightsInitializer.initialize_layer_or_model(gEmA)",
"def C0Lv(YKHO):\n pa... | [
"0.83783656",
"0.8238353",
"0.8124111",
"0.8117989",
"0.8094813",
"0.80609393",
"0.8049274",
"0.7970722",
"0.79436654",
"0.79354197",
"0.7932881",
"0.7882599",
"0.78008497",
"0.77923226",
"0.7735501",
"0.77258617",
"0.76977146",
"0.768977",
"0.768977",
"0.768977",
"0.76897144... | 0.0 | -1 |
Test that creating machine via API is denied if role assignment is missing | def Adhs(YKHO):
YKHO.runPost(None, data=YKHO.post_data)
YKHO.response_401()
for CBIr in (YKHO.guest, YKHO.norole, YKHO.unrelated_owner):
YKHO.runPost(CBIr, data=YKHO.post_data)
YKHO.response_403() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fSjM(YKHO):\n pass",
"def YtLT(YKHO):\n pass",
"def Yw84(YKHO):\n pass",
"def lPUw(YKHO):\n YKHO.assertEqual(pLxP.objects.filter(project=YKHO.project).count(), 1)\n bD7m = gxEw('projectroles:api_role_create', kwargs={'project': YKHO.project.sodar_uuid})\n aqR5 = {'role': RjHh, 'user': s... | [
"0.6913737",
"0.67129654",
"0.66731906",
"0.661018",
"0.6593888",
"0.6571657",
"0.6563195",
"0.65280247",
"0.6488382",
"0.64345706",
"0.63944924",
"0.6379238",
"0.6311238",
"0.6309953",
"0.6306513",
"0.6277936",
"0.6217779",
"0.621662",
"0.61997426",
"0.61470944",
"0.61278063... | 0.0 | -1 |
Test that creating machine via API is denied if role assignment is missing | def fl2e(YKHO):
YKHO.runPut(None, sequencer=YKHO.hiseq2000.sodar_uuid, data=YKHO.post_data)
YKHO.response_401()
for CBIr in (YKHO.guest, YKHO.norole, YKHO.unrelated_owner):
YKHO.runPut(CBIr, sequencer=YKHO.hiseq2000.sodar_uuid, data=YKHO.post_data)
YKHO.response_403() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fSjM(YKHO):\n pass",
"def YtLT(YKHO):\n pass",
"def Yw84(YKHO):\n pass",
"def lPUw(YKHO):\n YKHO.assertEqual(pLxP.objects.filter(project=YKHO.project).count(), 1)\n bD7m = gxEw('projectroles:api_role_create', kwargs={'project': YKHO.project.sodar_uuid})\n aqR5 = {'role': RjHh, 'user': s... | [
"0.69133914",
"0.6711957",
"0.6672267",
"0.6610954",
"0.6593591",
"0.6570844",
"0.6563578",
"0.65272325",
"0.648989",
"0.6435081",
"0.63971525",
"0.63795996",
"0.6311099",
"0.63101393",
"0.63023156",
"0.6276793",
"0.62193877",
"0.62167495",
"0.62016016",
"0.61470497",
"0.6126... | 0.0 | -1 |
Test that creating machine via API is denied if role assignment is missing | def B8UK(YKHO):
YKHO.assertEqual(_J8g.objects.count(), 1)
YKHO.runDelete(None, sequencer=YKHO.hiseq2000.sodar_uuid)
YKHO.assertEqual(_J8g.objects.count(), 1)
YKHO.response_401()
for CBIr in (YKHO.guest, YKHO.norole, YKHO.unrelated_owner):
YKHO.assertEqual(_J8g.objects.count(), 1)
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fSjM(YKHO):\n pass",
"def YtLT(YKHO):\n pass",
"def Yw84(YKHO):\n pass",
"def lPUw(YKHO):\n YKHO.assertEqual(pLxP.objects.filter(project=YKHO.project).count(), 1)\n bD7m = gxEw('projectroles:api_role_create', kwargs={'project': YKHO.project.sodar_uuid})\n aqR5 = {'role': RjHh, 'user': s... | [
"0.691287",
"0.6711393",
"0.6673219",
"0.6611075",
"0.65933186",
"0.6572169",
"0.6563367",
"0.6526778",
"0.64898455",
"0.64361477",
"0.63957036",
"0.63793045",
"0.6310888",
"0.63099724",
"0.6303449",
"0.62759304",
"0.62187326",
"0.6216716",
"0.62010765",
"0.6147637",
"0.61264... | 0.0 | -1 |
Initialize the battery's attributes. | def FIMM(YKHO, n8ok=40):
YKHO.battery_size = n8ok | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, n8ok=75):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, ... | [
"0.7373256",
"0.73601586",
"0.73601586",
"0.73601586",
"0.734221",
"0.734221",
"0.7319005",
"0.7316006",
"0.72850525",
"0.7227408",
"0.72071785",
"0.7196292",
"0.6998248",
"0.696277",
"0.69499767",
"0.6907041",
"0.6907041",
"0.6907041",
"0.6907041",
"0.6907041",
"0.6907041",
... | 0.7383211 | 0 |
Checks if the CSV file contains all required columns. | def AU_I(YKHO, WfCS):
YKHO.stdout.write('Verifying CSV header')
OmuI = set(WfCS)
if YKHO.required_csv_columns <= OmuI:
return True
else:
Y0N0 = set(YKHO.required_csv_columns).difference(OmuI)
raise sUXu("These columns '{0}' are required, but missing in the CSV file.".format(', '.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4Wt(Ux0P, WBPg, WfCS, usx6):\n nPrm = rLdf.read_csv(Ux0P, delimiter='|')\n assert WBPg == '|'.join(list(nPrm.columns.values))\n assert nPrm.shape[1] == WfCS\n assert nPrm.shape[0] == usx6",
"def fMcz(YKHO, jQ3Z: pd.DataFrame, vD_2: set) -> bool:\n Y0N0 = vD_2.difference(jQ3Z.columns)\n if ... | [
"0.74219674",
"0.71559626",
"0.7064051",
"0.7044676",
"0.6933204",
"0.6880624",
"0.6842778",
"0.67009544",
"0.6593976",
"0.6554927",
"0.65337193",
"0.64992315",
"0.6493306",
"0.64672685",
"0.6462007",
"0.64533734",
"0.64333785",
"0.6407367",
"0.63730824",
"0.63719225",
"0.636... | 0.77545106 | 0 |
Gets relation or adds error message to errors list. Errors should be descriptive to user. (Standard DoesNotExist errors are not.) If a value is NaN, None is returned. | def _o1z(C3ST, Jyyj):
soL1 = '{0}__exact'.format(Jyyj)
BWXx = rMkA[C3ST.__name__.lower()]
if type(BWXx) == float and epAf.isnan(BWXx):
return None
try:
return C3ST.objects.get(**{soL1: BWXx.lower()})
except rIt9:
UAju.append('{0} "{1}" does not exist.'.format(C3ST.__name__, B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(YKHO):\n UAju = YKHO._info.get('error', {}).get('errors')\n if not UAju:\n return None\n return ' '.join((XObx.get('message', 'unknown') for XObx in UAju))",
"def EkHl(YKHO):\n XP5J = YKHO._get_sub_text('error')\n if not XP5J:\n return None\n else:\n try:\n ... | [
"0.60867625",
"0.566688",
"0.5566653",
"0.5510137",
"0.5510137",
"0.5510137",
"0.5510137",
"0.5510137",
"0.5510137",
"0.5510137",
"0.5442257",
"0.5405362",
"0.5397558",
"0.536908",
"0.5291303",
"0.5285853",
"0.5274996",
"0.52188915",
"0.517312",
"0.517312",
"0.5161423",
"0.... | 0.47182307 | 79 |
INTERNAL USE ONLY Get the rule in the KB that is the same as the rule argument | def Gegv(YKHO, eD8c):
for k0nO in YKHO.rules:
if eD8c == k0nO:
return k0nO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tOYM(YKHO, *qIxc):\n return _VfD.Model_getRule(YKHO, *qIxc)",
"def odII(YKHO):\n return YKHO.__rule_",
"def eD8c(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'rule')",
"def eD8c(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'rule')",
"def eD8c(YKHO) -> qe4Y.Input[str]:\n return ... | [
"0.72598034",
"0.69801867",
"0.69057363",
"0.69057363",
"0.69057363",
"0.676362",
"0.67517036",
"0.6723854",
"0.6723854",
"0.6723854",
"0.6723854",
"0.6723854",
"0.6723854",
"0.6723854",
"0.6402129",
"0.63560486",
"0.63248295",
"0.628659",
"0.6276691",
"0.61988664",
"0.616951... | 0.79268336 | 2 |
To create the summed profile of all individual profiles in an instance, we can use a list comprehension to iterate over all profiles in the instance. Note how we now use `instance.profiles` to get this dictionary, where in chapter ` we simply used `instance`. | def UPv6(YKHO, KAOR: af.ModelInstance) -> oyIN.ndarray:
return sum([z39Z.profile_from_xvalues(xvalues=YKHO.dataset.xvalues) for z39Z in KAOR.profiles]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ebBi(z39Z):\n NArs = {}\n NArs['profile'] = z39Z\n geh0 = BfDw.do_request(UZ06, 'get', NArs)\n nPrm = BfDw.get_data('InstanceProfiles', geh0)\n return nPrm",
"def voIs(YKHO, z39Z):\n YKHO.profiles.append(z39Z)",
"def XDcm(vZa6: Snap, NAve: Quantity, YLta: Quantity, stlu: float, KQ7o: int=... | [
"0.61369634",
"0.5885941",
"0.5739842",
"0.56562793",
"0.5639097",
"0.5628797",
"0.56232256",
"0.56074524",
"0.5585603",
"0.5508757",
"0.5508473",
"0.549711",
"0.54968506",
"0.54808754",
"0.54765385",
"0.54575425",
"0.54535663",
"0.5451851",
"0.54071444",
"0.54000574",
"0.537... | 0.58057755 | 2 |
The name of this component. | def mWFP(YKHO):
return 'component_manager' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yr70(YKHO):\n return YKHO._name",
"def mWFP(YKHO):\n return YKHO.component.get('Name', '')",
"def mWFP(YKHO):\n return YKHO.component.get('Name', '')",
"def W0tD(YKHO):\n return uGKo[YKHO.index][0]",
"def mWFP(YKHO):\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO.__name",
"... | [
"0.9065345",
"0.897935",
"0.897935",
"0.8652009",
"0.8357189",
"0.8357189",
"0.8357189",
"0.8357189",
"0.8357189",
"0.8357189",
"0.8357189",
"0.8357189",
"0.8357189",
"0.8357189",
"0.83296686",
"0.83296686",
"0.83296686",
"0.83296686",
"0.83296686",
"0.83296686",
"0.83296686"... | 0.0 | -1 |
Computes the histogram of the input image | def oicS(YKHO, LNo8):
QzFq = [0] * 256
WKvO, LVAh = LNo8.shape[:2]
for YRbF in range(WKvO):
for r845 in range(LVAh):
QzFq[LNo8[YRbF, r845]] += 1
return QzFq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QzFq(VXjJ):\n HGlB = VXjJ[VXjJ.shape[0] // 2:, :]\n thJw = HGlB.sum(axis=0)\n return thJw",
"def oicS(YKHO, LNo8):\n QzFq = [0] * 256\n [MKlR, yzQ0] = LNo8.shape\n print(MKlR, yzQ0)\n YRbF = 0\n while YRbF < 256:\n for rdlD in range(MKlR):\n for fvDH in range(yzQ0):\... | [
"0.8064423",
"0.8042533",
"0.8037536",
"0.7930632",
"0.76470864",
"0.7604351",
"0.75007343",
"0.73157203",
"0.7244618",
"0.71898323",
"0.7063043",
"0.6988698",
"0.69718844",
"0.69492954",
"0.6931104",
"0.6850683",
"0.6834464",
"0.6798194",
"0.6795921",
"0.6792963",
"0.6772005... | 0.82736444 | 0 |
Comptues the binary image of the the input image based on histogram analysis and thresholding take as input | def Ffz0(YKHO, LNo8, gwAu):
llUt = LNo8.copy()
for YRbF in range(LNo8.shape[0]):
for r845 in range(LNo8.shape[1]):
if LNo8[YRbF, r845] >= gwAu:
llUt[YRbF, r845] = 0
else:
llUt[YRbF, r845] = 255
return llUt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ffz0(YKHO, LNo8, gwAu):\n llUt = LNo8.copy()\n [MKlR, yzQ0] = llUt.shape\n VoYq = gwAu\n print(VoYq)\n for rdlD in range(MKlR):\n for fvDH in range(yzQ0):\n if llUt[rdlD, fvDH] > VoYq:\n llUt[rdlD, fvDH] = 255\n else:\n llUt[rdlD, fvDH] ... | [
"0.7681446",
"0.727308",
"0.7155279",
"0.70369035",
"0.6960089",
"0.6878597",
"0.6873943",
"0.6869752",
"0.6862886",
"0.68430334",
"0.68059856",
"0.67681766",
"0.67679167",
"0.6710474",
"0.66879267",
"0.6674513",
"0.66720676",
"0.666158",
"0.6618548",
"0.6603418",
"0.6565325"... | 0.73140323 | 1 |
Cosine decay schedule with warm up period. | def PZ7b(Aak1, Gysa, uH9w, hzUc=0.0, wbn8=0, PQOS=0):
if uH9w < wbn8:
raise ValueError('total_steps must be larger or equal to warmup_steps.')
def MIcO():
"""Callable to compute the learning rate."""
b0Ix = 0.5 * Gysa * (1 + ZylS.cos(oyIN.pi * (ZylS.cast(Aak1, ZylS.float32) - wbn8 - PQO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b6Gq(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)",
"def WPxz(aF2y, T58m, Kdv0):\n return aF2y * epAf.cos(7 * epAf.pi * Kdv0 / (16 * T58m))",
"def MIxn(K0do, USzt, aNjR, rabA=0.5, IKjI=-1):\n\n def EAQd(cVyJ):\n if cVyJ < USzt:\n return float(cVyJ) / float(max(1, USzt))\n Eb4t... | [
"0.6320161",
"0.62945265",
"0.6014468",
"0.6014468",
"0.5992535",
"0.5947948",
"0.594646",
"0.59023297",
"0.5854784",
"0.58509827",
"0.5842494",
"0.582645",
"0.5814702",
"0.57450205",
"0.5581755",
"0.550415",
"0.5425403",
"0.5404061",
"0.5401594",
"0.5377699",
"0.53299034",
... | 0.5282483 | 22 |
Callable to compute the learning rate. | def MIcO():
b0Ix = 0.5 * Gysa * (1 + ZylS.cos(oyIN.pi * (ZylS.cast(Aak1, ZylS.float32) - wbn8 - PQOS) / float(uH9w - wbn8 - PQOS)))
if PQOS > 0:
b0Ix = ZylS.where(Aak1 > wbn8 + PQOS, b0Ix, Gysa)
if wbn8 > 0:
if Gysa < hzUc:
raise ValueError('learning_rate_base must be larger or e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr",
"def nrOS(YKHO, qtWj):\n b0Ix = YKHO.schedule(qtWj)\n ZylS.summary.scalar('learning rate', data=b0Ix, step=qtWj)\n return b0Ix",
"def jsQ2():\n _xMn = vPBo.start_learning_rate\n YPaw = ZylS.cast(ZylS.compat.v1.train.get_or... | [
"0.8016885",
"0.8015723",
"0.7786947",
"0.77867407",
"0.7728448",
"0.7575189",
"0.7575189",
"0.7390784",
"0.7385804",
"0.7383413",
"0.7356881",
"0.7334096",
"0.73053694",
"0.72900087",
"0.71948165",
"0.70886856",
"0.7037042",
"0.69462264",
"0.69425225",
"0.69425225",
"0.68872... | 0.6100761 | 65 |
This funtion should perform the job of projecting the input pointcloud onto the frame of an image captured by a camera with camera matrix as given, of dimensions as given, in pixels. points is an 3 x N array where the ith entry is an (x, y, z) point in 3D space, in the reference frame of the depth camera. This correspo... | def yjIk(LTIa, tRgf, uPnQ, XyWv):
LTIa = oyIN.dot(XyWv, LTIa) + uPnQ[:, None]
F_0s = oyIN.dot(tRgf, LTIa)
qimf = F_0s[:2] / F_0s[2]
qimf = oyIN.int32(oyIN.floor(qimf))
return qimf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bNKA(LTIa, NJx8, q7In):\n \"\"\"\n Function takes input of 3d_points, transformations and Convert 3-D points to 2-D by projecting onto images. \n Input:\n points: 3D points in world frame\n camera_params: parameters of camera corrosponding to the point\n theta: Needed For PAL came... | [
"0.75861025",
"0.73979294",
"0.73724365",
"0.70940655",
"0.7059192",
"0.7011868",
"0.69861317",
"0.6886492",
"0.685968",
"0.6813133",
"0.6795302",
"0.6780843",
"0.6771063",
"0.676563",
"0.6705942",
"0.66217476",
"0.65333843",
"0.6509686",
"0.64969933",
"0.6453741",
"0.6448303... | 0.7957179 | 0 |
Determines all import names that should be considered "local". This is used when running the linter to insure that import order is properly checked. | def mnKB(SPqu):
TUn9 = [Hy7s.path.splitext(pmON) for pmON in Hy7s.listdir(SPqu)]
return [aPr_ for aPr_, Fst3 in TUn9 if Fst3 == '.py' or (Hy7s.path.isdir(Hy7s.path.join(SPqu, aPr_)) and aPr_ not in '__pycache__')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M4Ac(YKHO):\n hLLx = nsYY(glwO().foo_method)\n PCJw = nsYY(glwO().bar_method)\n assert hLLx == PCJw",
"def fw4S(YKHO) -> bool:\n if not YKHO.source:\n return False\n if YKHO.source.master_name.startswith(hEr3):\n return True\n if YKHO.is_type_defs():\n return True\n ... | [
"0.5883926",
"0.58062863",
"0.57493323",
"0.57031",
"0.56781274",
"0.56347144",
"0.5598635",
"0.5551292",
"0.5530518",
"0.5508783",
"0.55060405",
"0.5462658",
"0.5400261",
"0.5390425",
"0.53739977",
"0.5363772",
"0.53556126",
"0.53410673",
"0.5327128",
"0.5322422",
"0.5312975... | 0.7432707 | 0 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
ciZM = sum(oyIN.exp(WKvO))
return [oyIN.exp(Y7fn) / ciZM for Y7fn in WKvO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"de... | [
"0.7800231",
"0.776332",
"0.7762483",
"0.77600384",
"0.76607925",
"0.76607925",
"0.76607925",
"0.76607925",
"0.7585753",
"0.7432371",
"0.7409777",
"0.73932534",
"0.7360278",
"0.72708684",
"0.7263948",
"0.7262435",
"0.7257905",
"0.7231808",
"0.72159433",
"0.7203519",
"0.720315... | 0.731833 | 13 |
Returns the Rectified Linear Unit (ReLU) activation | def QZir(WKvO: jnp.DeviceArray) -> oLG2.DeviceArray:
return oLG2.clip(WKvO, a_min=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rg5v(YKHO):\n hYvg = 'ReLU'\n qIxc = {}\n YDYE = siRH.create(hYvg, **qIxc)\n YKHO.assertEqual(YDYE._get_name(), hYvg)\n WKvO = ht2j.ones(10) * -1\n LVAh = YDYE(WKvO)\n YKHO.assertEqual(len(ht2j.nonzero(LVAh, as_tuple=False)), 0)",
"def gTYa(YKHO):\n YKHO.assertEqual([0, 0.5], list(fmA... | [
"0.6779949",
"0.66550666",
"0.6524321",
"0.6480041",
"0.639636",
"0.639636",
"0.6394408",
"0.6366181",
"0.6363569",
"0.63122356",
"0.6284705",
"0.62716",
"0.62474895",
"0.623992",
"0.6230122",
"0.6230122",
"0.6192656",
"0.61823756",
"0.6163329",
"0.6142856",
"0.6132948",
"0... | 0.0 | -1 |
Calculates softmax across a desired axis. Arguments | def N93T(WKvO: jnp.DeviceArray, *, jDK_: int=0) -> oLG2.DeviceArray:
return oLG2.exp(WKvO) / oLG2.expand_dims(oLG2.sum(oLG2.exp(WKvO), axis=jDK_), jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.expand_dims(oyIN.max(WKvO, axis=-1), axis=-1))\n return uw5A / oyIN.expand_dims(uw5A.sum(axis=-1), axis=-1)",
"def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp... | [
"0.82091117",
"0.8203848",
"0.819648",
"0.819648",
"0.81928647",
"0.81735945",
"0.81680465",
"0.8144589",
"0.8144145",
"0.813783",
"0.8125608",
"0.8100958",
"0.80981773",
"0.80939096",
"0.80836487",
"0.80836487",
"0.80836487",
"0.80836487",
"0.80836487",
"0.80836487",
"0.8083... | 0.8248852 | 0 |
Calculates logsoftmax across a desired axis. Arguments | def h_oU(WKvO: jnp.DeviceArray, *, jDK_: int=0) -> oLG2.DeviceArray:
return WKvO - oLG2.expand_dims(oLG2.log(oLG2.sum(oLG2.exp(WKvO), axis=jDK_)), jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h_oU(input, tpio, LpaZ=False):\n return o8DQ.apply('LogSoftmax', input.device, [input], outputs=[input if LpaZ else None], axis=tpio)",
"def LaJJ(KeL5, MPlV=(-1,)):\n KeL5 -= ZylS.reduce_max(KeL5, axis=MPlV, keepdims=True)\n return KeL5 - ZylS.reduce_logsumexp(KeL5, axis=MPlV, keepdims=True)",
"de... | [
"0.79187274",
"0.78436774",
"0.78026515",
"0.7745838",
"0.7555003",
"0.7547153",
"0.7151152",
"0.7116799",
"0.70571184",
"0.70393515",
"0.7036909",
"0.6993901",
"0.69822043",
"0.6971128",
"0.6970583",
"0.69682556",
"0.69494355",
"0.6942103",
"0.6942103",
"0.6929219",
"0.69118... | 0.8242526 | 0 |
Given an input string, returns it as the body of an html document. Adapted from example.py included in docutils distribution. | def qPBa(NPoT, fcvf=None, WBd6=None, a9Ec='unicode', V8No=1, gKvz=1):
If3P = {'input_encoding': a9Ec, 'doctitle_xform': V8No, 'initial_header_level': gKvz, 'file_insertion_enabled': False, 'raw_enabled': False}
SQ3m = aM69.publish_parts(source=NPoT, source_path=fcvf, destination_path=WBd6, writer_name='html', s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pS8I(KCHu):\n return aM69.publish_string(KCHu, writer=PIli)",
"def NWbr(TBsA='No text supplied', leAC='CS 5 project page'):\n ykHO = 'Content-Type: text/html;\\n\\n<html>\\n<head>\\n<title>\\n'\n L3LV = '</title>\\n</head>\\n\\n<body>\\n'\n r7HI = '</body>\\n</html>\\n'\n return ykHO + leAC + ... | [
"0.66641665",
"0.6609217",
"0.6305159",
"0.6242836",
"0.6172251",
"0.60931087",
"0.6054476",
"0.6012877",
"0.60044134",
"0.59778404",
"0.59670067",
"0.59541255",
"0.5941216",
"0.5902097",
"0.5884714",
"0.588471",
"0.583694",
"0.57947314",
"0.5752858",
"0.57214975",
"0.5713764... | 0.7353787 | 0 |
Render the homepage template on the / route | def C_QL():
L03z = Eo6a()
return TvZl('admin/index.html', title='Admin', form=L03z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home/index.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home/index.html', title='Welcome')",
"def bVaH():\n return TvZl('index.html')",
"def vja_():\n return TvZl('index.html')... | [
"0.8597299",
"0.8569112",
"0.85272837",
"0.8474665",
"0.8474087",
"0.8451808",
"0.8424757",
"0.8424757",
"0.84213376",
"0.8389955",
"0.83125323",
"0.8266481",
"0.8266481",
"0.8266481",
"0.8266481",
"0.8266481",
"0.8266481",
"0.82651",
"0.8260553",
"0.8250731",
"0.8250731",
... | 0.0 | -1 |
Sets the aux_input_type3 of this UpdateVehicleRequest. | def hs46(YKHO, hs46):
BbPm = ['none', 'emergencyLights', 'emergencyAlarm', 'stopPaddle', 'powerTakeOff', 'plow', 'sweeper', 'salter', 'reefer', 'door', 'boom', 'auxiliaryEngine', 'generator', 'eightWayLights']
if YKHO.local_vars_configuration.client_side_validation and hs46 not in BbPm:
raise ValueError... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xKE_(YKHO, xKE_):\n BbPm = ['none', 'emergencyLights', 'emergencyAlarm', 'stopPaddle', 'powerTakeOff', 'plow', 'sweeper', 'salter', 'reefer', 'door', 'boom', 'auxiliaryEngine', 'generator', 'eightWayLights']\n if YKHO.local_vars_configuration.client_side_validation and xKE_ not in BbPm:\n raise Va... | [
"0.60051674",
"0.59958714",
"0.59745276",
"0.5884165",
"0.573058",
"0.55547076",
"0.5548062",
"0.5489199",
"0.54143596",
"0.5395056",
"0.5113174",
"0.5069129",
"0.49999794",
"0.49934226",
"0.49783775",
"0.49597377",
"0.49532253",
"0.48770082",
"0.48317355",
"0.4767722",
"0.47... | 0.833222 | 0 |
Sets the external_ids of this UpdateVehicleRequest. | def tbI3(YKHO, tbI3):
YKHO._external_ids = tbI3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tbI3(YKHO, **B2fa):\n pmON = YKHO._get_movie_id_path('external_ids')\n _hkX = YKHO._get_method(pmON, B2fa)\n return _hkX",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def u... | [
"0.5645812",
"0.56326723",
"0.56326723",
"0.56326723",
"0.55220467",
"0.5430042",
"0.5307687",
"0.5243291",
"0.5185779",
"0.51405275",
"0.51405275",
"0.5116388",
"0.508638",
"0.5023836",
"0.49995106",
"0.49790815",
"0.49639636",
"0.4961317",
"0.49294525",
"0.49190345",
"0.489... | 0.7786375 | 0 |
Sets the license_plate of this UpdateVehicleRequest. | def TmMv(YKHO, TmMv):
if YKHO.local_vars_configuration.client_side_validation and TmMv is not None and (len(TmMv) > 12):
raise ValueError('Invalid value for `license_plate`, length must be less than or equal to `12`')
YKHO._license_plate = TmMv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO, license):\n YKHO._license = license",
"def xkzz(YKHO, *qIxc, **B2fa):\n if YKHO.license_plate:\n YKHO.license_plate = YKHO.license_plate.replace('-', '').replace(' ', '')\n super(Jf9x, YKHO).save(*qIxc, **B2fa)",
"def imJI(YKHO, imJI):\n YKHO._license_number = imJI",
"def... | [
"0.6482215",
"0.60094345",
"0.5971417",
"0.57393056",
"0.5617041",
"0.55561376",
"0.53961915",
"0.5359062",
"0.5322539",
"0.5291167",
"0.52001405",
"0.5070711",
"0.5057579",
"0.49738538",
"0.49601606",
"0.49601606",
"0.49461326",
"0.4945529",
"0.49165577",
"0.4910613",
"0.487... | 0.7658375 | 0 |
Sets the notes of this UpdateVehicleRequest. | def rpno(YKHO, rpno):
if YKHO.local_vars_configuration.client_side_validation and rpno is not None and (len(rpno) > 255):
raise ValueError('Invalid value for `notes`, length must be less than or equal to `255`')
YKHO._notes = rpno | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno: str):\n YKHO._notes = rpno",
"def ... | [
"0.68845856",
"0.68845856",
"0.68845856",
"0.68845856",
"0.68845856",
"0.6636343",
"0.65447444",
"0.6384112",
"0.59179527",
"0.58897984",
"0.5507248",
"0.5370536",
"0.51564264",
"0.51564264",
"0.5099891",
"0.5076104",
"0.50644374",
"0.505969",
"0.5039264",
"0.4936329",
"0.493... | 0.64006484 | 7 |
Sets the static_assigned_driver_id of this UpdateVehicleRequest. | def dQvi(YKHO, dQvi):
YKHO._static_assigned_driver_id = dQvi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WLfQ(YKHO, WLfQ):\n YKHO._driver_id = WLfQ",
"def WLfQ(YKHO, WLfQ: int):\n if WLfQ is None:\n raise ValueError('Invalid value for `driver_id`, must not be `None`')\n YKHO._driver_id = WLfQ",
"def uw1t(YKHO, uw1t):\n YKHO._static_finding = uw1t",
"def WLfQ(YKHO) -> int:\n return YKHO... | [
"0.58979875",
"0.52223",
"0.50875014",
"0.45650956",
"0.45579106",
"0.45233056",
"0.45233056",
"0.44840404",
"0.44335097",
"0.43853715",
"0.4371814",
"0.43593413",
"0.43487522",
"0.42879018",
"0.42818657",
"0.42814112",
"0.42524332",
"0.4240414",
"0.4240414",
"0.4225884",
"0.... | 0.8492683 | 0 |
Sets the tag_ids of this UpdateVehicleRequest. | def UHUx(YKHO, UHUx):
YKHO._tag_ids = UHUx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KFnK(YKHO, dJ1p):\n N_oQ = set(YKHO.tag_names())\n tAPI = set(dJ1p)\n Xu1o = N_oQ.difference(tAPI)\n cHXH = tAPI.difference(N_oQ)\n for TZ9E in cHXH:\n YKHO.add_tag(TZ9E)\n for TZ9E in Xu1o:\n YKHO.remove_tag(TZ9E)",
"def dJ1p(YKHO, dJ1p: List[Tag]):\n YKHO._tags = dJ1p",
... | [
"0.6124682",
"0.61125207",
"0.60852545",
"0.6005471",
"0.6005471",
"0.6005471",
"0.6005471",
"0.6005471",
"0.6005471",
"0.6005471",
"0.6005471",
"0.6005471",
"0.6005471",
"0.5952815",
"0.59259295",
"0.59259295",
"0.59259295",
"0.5924576",
"0.5871416",
"0.5602764",
"0.55914205... | 0.75711256 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, EZg3):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, EZg3):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Return ID of the command's owner | def qsJ6(YKHO):
ANfV = YKHO._call('owner')
return ANfV.owner | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPmJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'owner_id')",
"def gPmJ(YKHO) -> str:\n return YKHO.__owner_id",
"def gPmJ(YKHO) -> int:\n return YKHO.proto.owner",
"def gPmJ(YKHO):\n return YKHO._owner_id",
"def gPmJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'owner_id')",
"def vSmh(YKHO)... | [
"0.7799616",
"0.7753633",
"0.76906127",
"0.76573384",
"0.7629729",
"0.7515706",
"0.7453457",
"0.73210293",
"0.73210293",
"0.73126256",
"0.7185304",
"0.7171606",
"0.71175456",
"0.7111413",
"0.705751",
"0.70522135",
"0.703091",
"0.69719386",
"0.692131",
"0.68922853",
"0.6857497... | 0.7285534 | 10 |
Whether this datatype has staged local modifications. | def C4fU(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oGmQ(YKHO) -> bool:\n return True",
"def w3PF(YKHO):\n return len(YKHO.modified_fields) > 0",
"def fw4S(YKHO) -> bool:\n if not YKHO.source:\n return False\n if YKHO.source.master_name.startswith(hEr3):\n return True\n if YKHO.is_type_defs():\n return True\n return Fa... | [
"0.7210056",
"0.7106617",
"0.70620275",
"0.69745135",
"0.69522744",
"0.69439024",
"0.6663222",
"0.66631716",
"0.66554046",
"0.6641709",
"0.66392136",
"0.6631838",
"0.6622982",
"0.6613594",
"0.66110885",
"0.6608613",
"0.6608613",
"0.65780777",
"0.65697205",
"0.6561284",
"0.655... | 0.0 | -1 |
Adapting numpy.int64 type to SQLconform int type using psycopg extension, see [1]_ for more info. | def U6Sx(YP8v):
return aHYt(YP8v) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RPlb(nPrm, type='int64'):\n nPrm = nPrm.astype(type)\n return nPrm",
"def lZj8(qw7D, azoT):\n aXHR = qw7D.att_names\n for hPll, cM24, lTIZ in qw7D.sdbtype.full_rep:\n if hPll not in azoT:\n continue\n if 'int' in cM24:\n continue\n if cM24 == 'bool':\n ... | [
"0.6342146",
"0.62293154",
"0.6208453",
"0.5914053",
"0.5862272",
"0.5841508",
"0.5763204",
"0.5722632",
"0.57082486",
"0.5705555",
"0.5675615",
"0.5662397",
"0.565685",
"0.5637229",
"0.5554309",
"0.54482377",
"0.5430291",
"0.53955346",
"0.5389029",
"0.53852504",
"0.53627807"... | 0.7526429 | 0 |
Gets the name of the primary key column. | def HQM9(tyNF):
eYT9 = tyNF.primary_key.columns.items()
if len(eYT9) == 1:
mWFP, bGrB = eYT9[0]
return mWFP
assert False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B_dU(Emd4):\n return Emd4._meta.pk_column_name",
"def xAfl(Emd4):\n if Emd4.__from_class__:\n Emd4 = Emd4.__from_class__\n return Emd4.__table__.primary_key.columns.values()[0].name",
"def ycai(Emd4) -> str:\n return tq_1(Emd4).primary_key[0].name",
"def xAfl(YKHO) -> str:\n return ... | [
"0.8489972",
"0.8386202",
"0.8166243",
"0.7895862",
"0.7800656",
"0.75968707",
"0.73416424",
"0.7309249",
"0.7292977",
"0.7266723",
"0.71143186",
"0.71024054",
"0.7098094",
"0.7098094",
"0.70875776",
"0.7059059",
"0.697482",
"0.68769145",
"0.671848",
"0.6676967",
"0.6653327",... | 0.75963014 | 6 |
Converts a python datatype to the appropriate string (including, e.g., \ the necessary single quotes and/or brackets ) for use in a raw \ postgresql query. | def bcP8(BWXx, yDqo):
if yDqo.startswith(('int', 'float', 'double', 'numeric')):
if BWXx is None:
return 'Null'
elif str(BWXx).lower() == 'nan':
return "'nan'"
elif yDqo.endswith('[]'):
BWXx = ', '.join([str(Ty9i) for Ty9i in BWXx])
BWXx = "'{"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wSwq(yDqo: Any) -> str:\n if yDqo is int:\n return 'Int64'\n elif yDqo is float:\n return 'Float64'\n elif yDqo is bool:\n return 'bool'\n return 'string'",
"def mr_n(YKHO, BWXx, grPF):\n BWXx = BWXx.replace(\"'\", '\"')\n BWXx = BWXx.replace(',', '_')\n if len(BWXx)... | [
"0.72594017",
"0.7176732",
"0.70983726",
"0.701285",
"0.7011267",
"0.69050854",
"0.6897729",
"0.6891294",
"0.66907203",
"0.65747005",
"0.65560377",
"0.6526946",
"0.6434319",
"0.6389201",
"0.6378415",
"0.6377122",
"0.6342456",
"0.6311862",
"0.62993383",
"0.6254328",
"0.6250282... | 0.7943686 | 0 |
Gets the conventional sign associated with a matrix element / form factor. | def CNOw(jvSB):
jryd = XNQh.form_factor_signs
ZHfW = jryd['spin_taste_current'] == jvSB
return BfDw.extract_unique(jryd[ZHfW], 'sign') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZvI4(YKHO):\n return _VfD.Input_getSign(YKHO)",
"def r_YF(k0lF):\n return oyIN.sign(k0lF)",
"def JApI(YKHO) -> oyIN.array:\n if YKHO.author == 'yarkoni':\n if YKHO.signf == 0.05:\n return YKHO.corr_05\n if YKHO.signf == 0.01:\n return YKHO.corr_01\n retur... | [
"0.63887745",
"0.63612455",
"0.63400894",
"0.6329764",
"0.6299611",
"0.62754524",
"0.6029659",
"0.6012176",
"0.59190845",
"0.5728139",
"0.570455",
"0.5564154",
"0.55042964",
"0.54584146",
"0.54216564",
"0.5362895",
"0.53505296",
"0.5350341",
"0.5348498",
"0.52633065",
"0.5259... | 0.58625495 | 9 |
Reads the slither.txt file and returns these three columns as numpy | def l3N0(Ux0P: os.PathLike) -> tuple:
hv47 = list()
E_nZ = False
with open(Ux0P, 'r') as eHNT:
for zFiD in eHNT:
if not E_nZ:
if zFiD.startswith(' FromLine'):
hv47.append(zFiD)
E_nZ = True
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rj7V(gIsw):\n nHI3 = open(gIsw, 'r')\n DN_C = []\n keN6 = []\n lCYO = nHI3.readline()\n jXbI = lCYO.split()\n for zFiD in nHI3:\n hkxX = zFiD.split()\n DN_C.append(float(hkxX[1]))\n keN6.append(float(hkxX[2]))\n nHI3.close()\n TK2h = [DN_C, keN6, jXbI]\n return T... | [
"0.67732704",
"0.66469187",
"0.65621084",
"0.655657",
"0.6525634",
"0.6487795",
"0.6455106",
"0.6452941",
"0.64487594",
"0.6442892",
"0.63788307",
"0.6374876",
"0.6372156",
"0.63671476",
"0.6366139",
"0.632144",
"0.6305059",
"0.6282006",
"0.6272563",
"0.6251759",
"0.62306505"... | 0.0 | -1 |
Return the Cell object in the row and column position | def bwbz(YKHO, rdlD, iVRZ):
return YKHO.sudoku_matrix[rdlD][iVRZ] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kEFM(YKHO, WKvO, LVAh):\n return YKHO.cell_array.item((WKvO, LVAh))",
"def VmPb(YKHO):\n return YKHO._cell",
"def i3sq(YKHO, rdlD, iVRZ):\n if rdlD is None or iVRZ is None:\n raise NotImplementedError()\n return YKHO.thing[YKHO.convertColumn(row=rdlD, column=iVRZ)]",
"def L8yc(YKHO):\n... | [
"0.78056264",
"0.7625454",
"0.7583768",
"0.74747694",
"0.7398449",
"0.7367573",
"0.73494375",
"0.7321168",
"0.7258564",
"0.7245528",
"0.7196293",
"0.71352375",
"0.7028381",
"0.70115393",
"0.6975928",
"0.6946422",
"0.69435024",
"0.6932324",
"0.6905336",
"0.68930906",
"0.688538... | 0.7386752 | 5 |
Method that compare if two SudokuMatrix object are equals | def xa14(YKHO, LH4Q):
aPi6 = False
for rdlD in range(9):
for fvDH in range(9):
if int(YKHO.get_cell(rdlD, fvDH).get_cell_value()) == int(LH4Q.get_cell(rdlD, fvDH).get_cell_value()):
aPi6 = True
else:
return False
return aPi6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not issubclass(type(Elif), aLMY):\n return False\n if YKHO.rows != Elif.rows or YKHO.columns != Elif.columns:\n return False\n return YKHO.data == Elif.data",
"def xa14(YKHO, Elif):\n return YKHO.id_map == Elif.id_map and YKHO.matrix == Elif.matrix and (YKHO.s... | [
"0.76117563",
"0.74743104",
"0.7445452",
"0.74154025",
"0.73595923",
"0.7285003",
"0.72529274",
"0.71656305",
"0.71012837",
"0.7078154",
"0.7041093",
"0.7036643",
"0.7032445",
"0.70261645",
"0.697155",
"0.6970848",
"0.69523555",
"0.69491196",
"0.693337",
"0.6912804",
"0.68703... | 0.8493141 | 0 |
StorageClass is the specification for Storage Classes | def iwCj(YKHO) -> h8nf[bdIy['outputs.CSIIsilonSpecDriverStorageClass']]:
return qe4Y.get(YKHO, 'storage_class') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwCj(YKHO) -> 'StorageClass':\n return YKHO._values.get('storage_class')",
"def iwCj(YKHO) -> 'StorageClass':\n return YKHO._values.get('storage_class')",
"def TKNO(YKHO) -> str:\n raise NotImplementedError",
"def iwCj(YKHO) -> h8nf[bdIy['outputs.CSIPowerStoreSpecDriverStorageClass']]:\n retu... | [
"0.80497444",
"0.80497444",
"0.7733317",
"0.75832784",
"0.75614315",
"0.75532156",
"0.74965537",
"0.6984797",
"0.68212986",
"0.6531295",
"0.6397015",
"0.63666344",
"0.6318624",
"0.6274233",
"0.6237891",
"0.6182181",
"0.60391",
"0.5787072",
"0.56052196",
"0.557219",
"0.5562914... | 0.7733593 | 2 |
ImagePullPolicy is the image pull policy for the image | def w7LR(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'image_pull_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rh9W(YKHO) -> YYU5:\n if not YKHO.image_pull_policy:\n bGrB, TZ9E = YKHO._get_image_and_tag()\n if TZ9E == 'latest' or not TZ9E:\n return YYU5.ALWAYS\n return YYU5.IF_NOT_PRESENT\n return YKHO.image_pull_policy",
"def w7LR(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y... | [
"0.8125607",
"0.7769917",
"0.68590343",
"0.622387",
"0.5951845",
"0.5950428",
"0.5817936",
"0.57732624",
"0.56761223",
"0.56241024",
"0.561501",
"0.55290407",
"0.5482199",
"0.54586315",
"0.54287744",
"0.5416411",
"0.54072386",
"0.5384012",
"0.53806716",
"0.5362444",
"0.535377... | 0.7894309 | 7 |
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. | def dbuD(YKHO) -> h8nf[GySg[str, str]]:
return qe4Y.get(YKHO, 'node_selector') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dbuD(YKHO, dbuD: Dict[str, str]):\n YKHO._node_selector = dbuD",
"def oVTm(YKHO, AwDt, _63S: Optional[str]=None, TjzQ: Optional[str]=None):\n i_En = []\n if _63S is None:\n eqVi = YKHO.list_all_pods_in_all_namespaces(label_selector=TjzQ)\n else:\n eqVi = YKHO.list_pods_in_a_namespac... | [
"0.6503566",
"0.59163624",
"0.5903968",
"0.5700088",
"0.565937",
"0.56517595",
"0.5634908",
"0.55823445",
"0.55401206",
"0.55401206",
"0.55401206",
"0.54006803",
"0.54006803",
"0.54006803",
"0.5328655",
"0.53018135",
"0.53018135",
"0.53018135",
"0.523169",
"0.523169",
"0.5231... | 0.6245567 | 8 |
EnvVar represents an environment variable present in a Container. | def FIMM(Ro_8, *, mWFP: str, BWXx: Optional[str]=None, nvss: Optional['outputs.CSIIsilonSpecDriverCommonEnvsValueFrom']=None):
qe4Y.set(Ro_8, 'name', mWFP)
if BWXx is not None:
qe4Y.set(Ro_8, 'value', BWXx)
if nvss is not None:
qe4Y.set(Ro_8, 'value_from', nvss) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEAN(SRYB):\n return Hy7s.environ[SRYB]",
"def Rhg4(YKHO, mWFP: str, BWXx: str, lHli: Optional[bool]=None) -> 'Container':\n M56f = [kDLT('name', mWFP), kDLT('value', BWXx), kDLT('expand', lHli, None)]\n GSuR = YKHO._select('withEnvVariable', M56f)\n return pa4n(GSuR)",
"def AxXv(YKHO, SRYB):\n... | [
"0.6759011",
"0.64400876",
"0.6365067",
"0.6353957",
"0.6332777",
"0.63078386",
"0.6261371",
"0.61820585",
"0.60630727",
"0.6052506",
"0.6047019",
"0.6040598",
"0.6039395",
"0.6014736",
"0.5986097",
"0.59742486",
"0.5959875",
"0.59374666",
"0.5901712",
"0.58948684",
"0.585241... | 0.0 | -1 |
Name of the environment variable. Must be a C_IDENTIFIER. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._env_name",
"def kRLt(YKHO, mWFP):\n return '$(' + mWFP + ')'",
"def TYk2(XuY2: str) -> str:\n if XuY2 in Hy7s.environ.keys():\n return Hy7s.environ[XuY2]",
"def mWFP(YKHO):\n return Ynut(YKHO.tool_name, YKHO._python, YKHO._requirements, YKHO._tagged_env_vars)... | [
"0.707886",
"0.70169437",
"0.68652874",
"0.68336385",
"0.67338234",
"0.6632225",
"0.66093564",
"0.6515423",
"0.6485804",
"0.6483849",
"0.6423898",
"0.64139676",
"0.6373172",
"0.63263583",
"0.6298889",
"0.6297938",
"0.62448883",
"0.6225822",
"0.62034917",
"0.6172938",
"0.61534... | 0.0 | -1 |
Source for the environment variable's value. Cannot be used if value is not empty. | def nvss(YKHO) -> h8nf['outputs.CSIIsilonSpecDriverCommonEnvsValueFrom']:
return qe4Y.get(YKHO, 'value_from') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nvss(YKHO) -> h8nf[qe4Y.Input['EnvVarSourceArgs']]:\n return qe4Y.get(YKHO, 'value_from')",
"def NMoC(YKHO):\n YKHO.value = Hy7s.getenv(YKHO.name, YKHO.default)\n return YKHO.value",
"def nBmD(H5ew: str) -> str:\n return str(Hy7s.environ.get(H5ew) or '').strip()",
"def UnfG(YKHO, BWXx=None):\... | [
"0.7228275",
"0.64528674",
"0.6357909",
"0.633982",
"0.6328291",
"0.62157595",
"0.6187024",
"0.61756605",
"0.6110127",
"0.6071726",
"0.60466075",
"0.6032628",
"0.6013969",
"0.60129076",
"0.59961873",
"0.5995158",
"0.5981432",
"0.59606564",
"0.59373564",
"0.59033906",
"0.58769... | 0.564917 | 53 |
Source for the environment variable's value. Cannot be used if value is not empty. | def FIMM(Ro_8, *, N9xG: Optional['outputs.CSIIsilonSpecDriverCommonEnvsValueFromConfigMapKeyRef']=None, RrJl: Optional['outputs.CSIIsilonSpecDriverCommonEnvsValueFromFieldRef']=None, P2OU: Optional['outputs.CSIIsilonSpecDriverCommonEnvsValueFromResourceFieldRef']=None, mJeH: Optional['outputs.CSIIsilonSpecDriverCommonE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nvss(YKHO) -> h8nf[qe4Y.Input['EnvVarSourceArgs']]:\n return qe4Y.get(YKHO, 'value_from')",
"def NMoC(YKHO):\n YKHO.value = Hy7s.getenv(YKHO.name, YKHO.default)\n return YKHO.value",
"def nBmD(H5ew: str) -> str:\n return str(Hy7s.environ.get(H5ew) or '').strip()",
"def UnfG(YKHO, BWXx=None):\... | [
"0.72288674",
"0.64534545",
"0.6357108",
"0.6340354",
"0.63287365",
"0.62147003",
"0.61874634",
"0.61761737",
"0.61121243",
"0.6071117",
"0.6045305",
"0.60322315",
"0.60140574",
"0.6012305",
"0.5996602",
"0.5996114",
"0.59795004",
"0.59593",
"0.5936663",
"0.5903263",
"0.58764... | 0.0 | -1 |
The key of the secret to select from. Must be a valid secret key. | def H5ew(YKHO) -> str:
return qe4Y.get(YKHO, 'key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QDug(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'secret_key')",
"def QDug(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'secret_key')",
"def QDug(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'secret_key')",
"def QDug(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'se... | [
"0.81515235",
"0.81515235",
"0.79967463",
"0.77533454",
"0.7631605",
"0.7569842",
"0.7526095",
"0.7503426",
"0.74400395",
"0.73191357",
"0.73191357",
"0.72888464",
"0.72888464",
"0.716242",
"0.716242",
"0.7155205",
"0.71101844",
"0.7094617",
"0.7077072",
"0.7058335",
"0.69245... | 0.66455597 | 78 |