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 |
|---|---|---|---|---|---|---|
Finds the point where coeff(alpha)==0 using interpolation. The search is narrowed to a window that can be specified by the user. The default window is yet enough for cases that make physical sense. The angle alpha0 is found by looking at a zero up crossing in this window, and interpolation is used to find the exact loc... | def cB6h(Cwt5, lk9W, KnxT):
if oyIN.all(lk9W == lk9W[0]) or len(lk9W) == 1:
if lk9W[0] == 0:
return 0
else:
return oyIN.nan
KnxT = hgCs(Cwt5, KnxT)
pE3r = oyIN.where((Cwt5 >= KnxT[0]) & (Cwt5 <= KnxT[1]))
Cwt5 = Cwt5[pE3r]
lk9W = lk9W[pE3r]
eQpi, ORA5 = R8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WAr3(YKHO, KnxT=None):\n if KnxT is None:\n if YKHO._radians:\n KnxT = [oyIN.radians(-30), oyIN.radians(30)]\n else:\n KnxT = [-30, 30]\n KnxT = hgCs(YKHO.alpha, KnxT)\n return cB6h(YKHO.alpha, YKHO.cl, KnxT)",
"def hgCs(Cwt5, KnxT):\n Gq4W = oyIN.where(Cwt5 <=... | [
"0.7083809",
"0.59308773",
"0.56861395",
"0.54615754",
"0.53991467",
"0.5289946",
"0.52504426",
"0.52056605",
"0.51349956",
"0.5058016",
"0.50145197",
"0.49756116",
"0.496837",
"0.4958911",
"0.49328697",
"0.49299166",
"0.49135828",
"0.4910883",
"0.4903324",
"0.4901156",
"0.49... | 0.7561977 | 0 |
Find the slope of a curve at x=xi based on a given method. | def Eib3(WKvO, LVAh, Y7fn=None, nJ9F=None, KnxT=None, NKcE='max', VKhi=None):
if KnxT is not None:
pdhd = oyIN.where(oyIN.logical_and(WKvO >= KnxT[0], WKvO <= KnxT[1]))
WKvO = WKvO[pdhd]
LVAh = LVAh[pdhd]
if len(LVAh) <= 0:
raise Exception('Cannot find slope, no data in y (after ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llgc(zFiD):\n for o4D3, si3g, ajwV, skBL in zFiD:\n return (si3g - skBL) / (o4D3 - ajwV)",
"def VMex(LVAh, WKvO):\n return [(LVAh[a1PO] - LVAh[a1PO - 1]) / (WKvO[a1PO] - WKvO[a1PO - 1]) for a1PO in Ni9Y(1, len(LVAh))]",
"def Llgc(YKHO, nPrm, iVRZ):\n itv9 = nPrm.apply(lambda WKvO: XTiz.poly... | [
"0.6519549",
"0.65073377",
"0.64748585",
"0.64727217",
"0.6461307",
"0.644668",
"0.64371884",
"0.64201283",
"0.63934636",
"0.63887185",
"0.63518703",
"0.6329061",
"0.6326514",
"0.631302",
"0.63123894",
"0.6304885",
"0.6297031",
"0.6295145",
"0.627126",
"0.62483835",
"0.624265... | 0.7625903 | 0 |
copy() > EdmObject Return a copy of self complete with copies of its child objects. This copy does not have a Parent defined. | def jth9(YKHO):
brpH = nDLf(YKHO.Type, defaults=False)
for G1Hx, Ty9i in YKHO.items():
if Ty9i.__class__ == {}.__class__:
brpH[G1Hx] = Ty9i.copy()
elif Ty9i.__class__ == [].__class__:
brpH[G1Hx] = Ty9i[:]
else:
brpH[G1Hx] = Ty9i
for NZQz in YKHO.Ob... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _qLf(YKHO) -> object:\n return qA7W.deepcopy(YKHO)",
"def jth9(YKHO):\n from jth9 import deepcopy\n return deepcopy(YKHO)",
"def jth9(YKHO):\n from jth9 import deepcopy\n return deepcopy(YKHO)",
"def jth9(YKHO):\n from jth9 import deepcopy\n return deepcopy(YKHO)",
"def jth9(YKHO):... | [
"0.72544205",
"0.71336544",
"0.7095874",
"0.7095874",
"0.707564",
"0.70750546",
"0.70668846",
"0.70668846",
"0.705925",
"0.7056647",
"0.7056647",
"0.7056647",
"0.70507514",
"0.7050104",
"0.70465094",
"0.70465094",
"0.7043105",
"0.7043105",
"0.7043105",
"0.7043105",
"0.7043105... | 0.8277037 | 0 |
quoteListString(string) > List Like quoteString, but split the list by newlines before quoting and escaping it | def uK9B(vIwR):
return [FQK6(WKvO) for WKvO in vIwR.split('\n')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FQK6(vIwR):\n assert '\\n' not in vIwR, 'Cannot process a string with newlines in it ' + 'using quoteString, try quoteListString'\n ATYb = ['\\\\', '{', '}', '\"']\n for tTpl in ATYb:\n vIwR = vIwR.replace(tTpl, '\\\\' + tTpl)\n return '\"' + vIwR + '\"'",
"def Z9SD(A_Hr: str) -> str:\n ... | [
"0.71935153",
"0.71840286",
"0.6833",
"0.6684406",
"0.6677481",
"0.6626269",
"0.64217395",
"0.6393991",
"0.63574034",
"0.63372856",
"0.62940544",
"0.62892133",
"0.6278686",
"0.61491114",
"0.6137325",
"0.60986924",
"0.60795736",
"0.60390294",
"0.600567",
"0.59860146",
"0.59801... | 0.8873789 | 0 |
Return the type of this property. | def type(YKHO):
if not hasattr(YKHO, '_type'):
raise ValueError('Please provide type')
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO):\n return YKHO.properties.get('type', 'default')",
"def type(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'PropertyType']]]:\n return qe4Y.get(YKHO, 'type')",
"def type(YKHO):\n if 'type' in YKHO._prop_dict:\n return YKHO._prop_dict['type']\n else:\n return None",
"def type(YKH... | [
"0.846607",
"0.83923185",
"0.83707196",
"0.8222302",
"0.81624717",
"0.81624717",
"0.8147784",
"0.8147784",
"0.8089621",
"0.80718696",
"0.80718696",
"0.80718696",
"0.8052789",
"0.8052789",
"0.8052789",
"0.8052789",
"0.8052789",
"0.8052789",
"0.8052789",
"0.805105",
"0.805105",... | 0.0 | -1 |
test target_var_init op, sets target and main variables equal | def XTDz(YKHO):
with ZylS.variable_scope(rrGp):
zGIs = jPbk.mlp(YKHO.obs_ph, (4,), activation=ZylS.tanh)
with ZylS.variable_scope(Lafd):
rFqN = jPbk.mlp(YKHO.obs_ph, (4,), activation=ZylS.tanh)
with YKHO.agent.sess as cb_Q:
cb_Q.run(ZylS.global_variables_initializer())
wQ4P =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U3Gu(YKHO):\n YKHO.sess.run(YKHO.init_target_op)",
"def Zuxa(YKHO):\n sGFq = YKHO.caller\n if aQ0L.core.util.is_model(sGFq):\n for Ty9i in sGFq.loop_variables():\n Ty9i.set_init(Ty9i.get_value())",
"def SN_p(YKHO):\n YKHO.agent.polyak = 0.95\n with ZylS.variable_scope(rrGp)... | [
"0.70800066",
"0.64298904",
"0.6413221",
"0.6410593",
"0.63047403",
"0.61423784",
"0.6038495",
"0.5927159",
"0.590886",
"0.58548516",
"0.58420926",
"0.5820788",
"0.5789934",
"0.5773631",
"0.5771617",
"0.57509726",
"0.57300967",
"0.5719123",
"0.5706778",
"0.5700393",
"0.568556... | 0.87417483 | 0 |
Returns a unitary matrix describing the given value. | def KxZe(wEf2: Any, WmM4: TDefault=qOKl) -> uLKX[oyIN.ndarray, P2nJ]:
gJdh = getattr(wEf2, '_unitary_', None)
Aofo = NotImplemented if gJdh is None else gJdh()
if Aofo is not NotImplemented:
return Aofo
if WmM4 is not qOKl:
return WmM4
if gJdh is None:
raise TypeError("object... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kx6y(BWXx):\n NL0s = type(BWXx)\n if NL0s == int or NL0s == float:\n return XTiz.array([[BWXx]])\n elif NL0s == list:\n return XTiz.array([BWXx]).T\n elif NL0s == XTiz.ndarray and len(BWXx.shape) == 1:\n return XTiz.array([BWXx.tolist()]).T\n raise Exception('Invalid input t... | [
"0.66993594",
"0.65862375",
"0.65290457",
"0.64991695",
"0.63903046",
"0.63735634",
"0.6365627",
"0.6188619",
"0.61879784",
"0.6170017",
"0.61655444",
"0.61334044",
"0.6101996",
"0.60878855",
"0.6078652",
"0.6035982",
"0.6026475",
"0.5952592",
"0.59523886",
"0.5918958",
"0.59... | 0.0 | -1 |
The type of the automation rule action. Expected value is 'AddIncidentTask'. | def PgMf(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'action_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, PgMf: pulumi.Input[str], T4Wy: pulumi.Input[int], HOhc: Optional[pulumi.Input['AddIncidentTaskActionPropertiesArgs']]=None):\n qe4Y.set(Ro_8, 'action_type', 'AddIncidentTask')\n qe4Y.set(Ro_8, 'order', T4Wy)\n if HOhc is not None:\n qe4Y.set(Ro_8, 'action_configuration', HOhc)",
... | [
"0.69418466",
"0.6281711",
"0.6242671",
"0.6165999",
"0.609666",
"0.6038111",
"0.59044343",
"0.58428174",
"0.574669",
"0.5670894",
"0.5670132",
"0.5669703",
"0.5665907",
"0.56127435",
"0.56127435",
"0.56127435",
"0.56127435",
"0.5609461",
"0.5595098",
"0.5575879",
"0.5574146"... | 0.64123696 | 3 |
The type of the automation rule action. Expected value is 'RunPlaybook'. | def PgMf(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'action_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, PgMf: pulumi.Input[str], T4Wy: pulumi.Input[int], HOhc: Optional[pulumi.Input['PlaybookActionPropertiesArgs']]=None):\n qe4Y.set(Ro_8, 'action_type', 'RunPlaybook')\n qe4Y.set(Ro_8, 'order', T4Wy)\n if HOhc is not None:\n qe4Y.set(Ro_8, 'action_configuration', HOhc)",
"def FIMM(... | [
"0.67806673",
"0.67806673",
"0.619876",
"0.6160539",
"0.6160539",
"0.6160539",
"0.6160539",
"0.6117666",
"0.610739",
"0.6018878",
"0.6018878",
"0.6018878",
"0.6018878",
"0.59745383",
"0.59597784",
"0.5926623",
"0.5913828",
"0.5826158",
"0.576558",
"0.5763761",
"0.5762138",
... | 0.6447333 | 5 |
The email of the client. | def D3lj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO):\n return YKHO._email",
"def D3lj(YKHO):\n return YKHO._email",
"def D3lj(YKHO):\n return YKHO._email",
"def D3lj(YKHO):\n return YKHO._email",
"def D3lj(YKHO):\n return YKHO._email",
"def D3lj(YKHO):\n return YKHO._email",
"def D3lj(YKHO):\n return YKHO._email",
"... | [
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8662878",
"0.8591502",
"0.8563977",
"0.8563977",
"0.8563977",
"0.8563977",
"0.8563977",
"... | 0.0 | -1 |
The name of the client. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wy4N(YKHO) -> str:\n return YKHO._client_name",
"def wy4N(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_name')",
"def ko14(YKHO) -> str:\n return YKHO.name",
"def mWFP(YKHO) -> str:\n return YKHO.client.name or YKHO.client.hostname",
"def nUZm(YKHO):\n try:\n return YKHO._clientna... | [
"0.9278359",
"0.91315764",
"0.91142267",
"0.90420985",
"0.9035761",
"0.89800763",
"0.8779777",
"0.8667017",
"0.83745027",
"0.8349169",
"0.8291035",
"0.8077582",
"0.79774153",
"0.7908359",
"0.7874517",
"0.78055257",
"0.777756",
"0.76898247",
"0.7465083",
"0.73945755",
"0.73386... | 0.0 | -1 |
The object id of the client. | def NBcv(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'object_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')",
"def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')",
"def zb3C(YKHO) -> str:\n return YKHO.database.client.id",
"def zb3C(YKHO) -> str:\n return YKHO._client_id",
"def zb3C(YKHO) -> str:\n return YKHO._client_id",
"def... | [
"0.83202195",
"0.83202195",
"0.8088857",
"0.80833054",
"0.80833054",
"0.80421925",
"0.8037504",
"0.8028728",
"0.8028728",
"0.8028728",
"0.8028728",
"0.7988721",
"0.79373795",
"0.79084766",
"0.79084766",
"0.79084766",
"0.79084766",
"0.79084766",
"0.79084766",
"0.79084766",
"0.... | 0.0 | -1 |
The user principal name of the client. | def YSjR(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'user_principal_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def klNU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'principal_name')",
"def AQnM(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal')",
"def AQnM(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal')",
"def wy4N(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_name')",
"def BaHi(YKHO) -> str:\n re... | [
"0.8162168",
"0.8002022",
"0.8002022",
"0.7653548",
"0.7612801",
"0.7612801",
"0.7612801",
"0.751996",
"0.75161177",
"0.75161177",
"0.75161177",
"0.75161177",
"0.75161177",
"0.74737346",
"0.7451659",
"0.7419361",
"0.74148154",
"0.7412797",
"0.7411562",
"0.73974985",
"0.739403... | 0.8158966 | 2 |
The redirect endpoint where we will get the authorization code, used in Oauth 2.0 flow | def iXZL(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'redirection_endpoint') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rbaP(YKHO):\n j8eK = '%s?client_id=%s&response_type=code&redirect_uri=%s' % (xen8, YKHO.client_id, YKHO.redirect_uri)\n return j8eK",
"def yR9w(YKHO, vSyi=None):\n return YKHO._client.get_auth_code_url(vSyi)",
"def yR9w(YKHO, vSyi):\n NArs = {'client_id': YKHO.app_id, 'scope': YKHO._get_permiss... | [
"0.81906927",
"0.76140636",
"0.7520651",
"0.7476888",
"0.747599",
"0.73704726",
"0.7370077",
"0.7363544",
"0.73311776",
"0.73206353",
"0.73012394",
"0.7269909",
"0.7244694",
"0.72436744",
"0.7192973",
"0.7166458",
"0.7115823",
"0.7106103",
"0.7096346",
"0.699653",
"0.699653",... | 0.0 | -1 |
Describes the type. could be 'None', 'PageToken', 'PageCount', 'TimeStamp' | def _oMz(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'paging_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zalz(eBH2=None, nx8J=None, KqHs=None, _2J8=None):\n pass",
"def type(YKHO):\n return YKHO['type']",
"def type(YKHO):\n return YKHO.get('type')",
"def YwLH(YKHO) -> QMSQ:\n ...",
"def YwLH(YKHO) -> QMSQ:\n ...",
"def type(YKHO):\n return YKHO.data['type'] if 'type' in YKHO.data else ... | [
"0.6961129",
"0.6951393",
"0.6899796",
"0.6873962",
"0.6873962",
"0.6849809",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0... | 0.0 | -1 |
For advanced scenarios for example user name/password embedded in nested JSON payload | def hfL8(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'query_parameters_template') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzjh(NtEF: str, jTXt: str):\n return f'{{\\n \"username\": {NtEF},\\n \"password\": {jTXt}\\n }}'",
"def mNOy(nIoS):\n return {'username': nIoS.username, 'password': 'swordsfish'}",
"def av3e(YKHO):\n nPrm = {'username': 'macrovue', 'email': 'test@test2.com', 'password': 'xavi'}\n... | [
"0.6948116",
"0.65191984",
"0.6485494",
"0.64736646",
"0.6422022",
"0.6377516",
"0.63299656",
"0.626884",
"0.6215963",
"0.6214629",
"0.61957395",
"0.61934125",
"0.6186346",
"0.6177619",
"0.6172762",
"0.6164634",
"0.6158333",
"0.6126841",
"0.6123896",
"0.61219305",
"0.61207575... | 0.0 | -1 |
Name of the Fusion source signal. Refer to Fusion alert rule template for supported values. | def KoHv(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'source_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _9jk(YKHO) -> str:\n pass",
"def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')",
"def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')",
"def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')",
"def OKMs(YKHO... | [
"0.655623",
"0.647835",
"0.647835",
"0.647835",
"0.6434486",
"0.62636805",
"0.6181718",
"0.6171541",
"0.6132936",
"0.61036545",
"0.6086218",
"0.60403764",
"0.5995213",
"0.59747463",
"0.5973409",
"0.5902584",
"0.5900497",
"0.5900497",
"0.58819485",
"0.58800155",
"0.58755696",
... | 0.68975955 | 0 |
The Name of the source subtype under a given source signal in Fusion detection. Refer to Fusion alert rule template for supported values. | def GBvX(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'source_sub_type_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fySD(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['FusionSourceSubTypeSettingArgs']]]]:\n return qe4Y.get(YKHO, 'source_sub_types')",
"def zEt5(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_type')",
"def zEt5(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_type')",
"def zEt5(YKHO) -> str:\n return ... | [
"0.6164768",
"0.6013722",
"0.6013722",
"0.6013722",
"0.60131246",
"0.59593314",
"0.58715546",
"0.5810206",
"0.5706771",
"0.5648593",
"0.56124854",
"0.5593125",
"0.55919063",
"0.5563414",
"0.5561071",
"0.55394614",
"0.55394614",
"0.55394614",
"0.55394614",
"0.54915845",
"0.549... | 0.7805638 | 0 |
The service account that is used to access the GCP project. | def ukCD(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'service_account_email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zOZf(YKHO):\n return Hy7s.environ.get(VVoL)",
"def zOZf(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_account')",
"def zOZf(YKHO):\n return YKHO.spec.serviceAccountName",
"def zOZf(YKHO) -> 'outputs.AppConnectorPrincipalInfoServiceAccount':\n return qe4Y.get(YKHO, 'service_account')",
"def... | [
"0.8178831",
"0.7807793",
"0.7728564",
"0.76607615",
"0.76139534",
"0.7611048",
"0.7611048",
"0.7574645",
"0.74680156",
"0.7392427",
"0.7392427",
"0.7392427",
"0.7392427",
"0.7392427",
"0.7392427",
"0.7392427",
"0.7392427",
"0.7092931",
"0.7092931",
"0.69525254",
"0.68201256"... | 0.59109926 | 53 |
The email of the user the hunt is assigned to. | def D3lj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO):\n return YKHO.user_email",
"def D3lj(YKHO):\n if not YKHO.user_id:\n return YKHO._email\n return YKHO.user.username",
"def D3lj(YKHO):\n return YKHO._user_dat['email']",
"def D3lj(YKHO):\n if YKHO.__user.userid:\n return YKHO.__registration.UserEmail",
"def cHyp... | [
"0.8329859",
"0.82754964",
"0.8220891",
"0.8212883",
"0.81616366",
"0.81616366",
"0.80205494",
"0.7869543",
"0.7857923",
"0.78216225",
"0.7816063",
"0.7816063",
"0.7816063",
"0.7764216",
"0.7762158",
"0.77556807",
"0.774807",
"0.7745636",
"0.7745636",
"0.7745636",
"0.77432245... | 0.0 | -1 |
The severity of the incident | def rwlZ(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'IncidentSeverity']]]:
return qe4Y.get(YKHO, 'severity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKH... | [
"0.8502614",
"0.8502614",
"0.8502614",
"0.8502614",
"0.8502614",
"0.8502614",
"0.8502614",
"0.8322279",
"0.8290707",
"0.8290707",
"0.8290707",
"0.81497586",
"0.79912686",
"0.79912686",
"0.7936277",
"0.7836059",
"0.7810768",
"0.78072834",
"0.78072834",
"0.7743053",
"0.76373243... | 0.8251603 | 12 |
The title of the incident | def leAC(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'title') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO) -> str:\n return qe4Y.get(YKHO, 'title')",
"def leAC(YKHO) -> str:\n return qe4Y.get(YKHO, 'title')",
"def leAC(YKHO) -> str:\n return qe4Y.get(YKHO, 'title')",
"def leAC(YKHO) -> str:\n return qe4Y.get(YKHO, 'title')",
"def leAC(YKHO) -> str:\n return qe4Y.get(YKHO, 'title')"... | [
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"0.7873693",
"... | 0.0 | -1 |
The email of the user the incident is assigned to. | def D3lj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO):\n if YKHO.__user.userid:\n return YKHO.__registration.UserEmail",
"def D3lj(YKHO):\n if not YKHO.user_id:\n return YKHO._email\n return YKHO.user.username",
"def D3lj(YKHO):\n return YKHO._user_dat['email']",
"def D3lj(YKHO):\n return YKHO.user_email",
"def cHyp... | [
"0.8420019",
"0.8334655",
"0.8297909",
"0.82618195",
"0.8233037",
"0.8233037",
"0.82171404",
"0.8153236",
"0.80151534",
"0.79619074",
"0.79228824",
"0.776692",
"0.77511525",
"0.77367413",
"0.77367413",
"0.77367413",
"0.76770574",
"0.7675426",
"0.7675426",
"0.7675426",
"0.7618... | 0.0 | -1 |
The type of the owner the incident is assigned to. | def FG0N(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'OwnerType']]]:
return qe4Y.get(YKHO, 'owner_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FG0N(YKHO) -> str:\n return qe4Y.get(YKHO, 'owner_type')",
"def GHJz(YKHO):\n return YKHO._identity",
"def _5Ya(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_specified_type')",
"def qsJ6(YKHO) -> h8nf[qe4Y.Input['IncidentOwnerInfoArgs']]:\n return qe4Y.get(YKHO, 'owner')",
"def qsJ6(YKHO) -> ... | [
"0.8280391",
"0.692862",
"0.67630696",
"0.67630243",
"0.67630243",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
"0.66368407",
... | 0.766348 | 2 |
List of labels to add to the incident. | def Crrw(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['IncidentLabelArgs']]]]:
return qe4Y.get(YKHO, 'labels') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Crrw():\n return list(uzmd)",
"def Crrw(YKHO) -> x1iM[str]:\n pass",
"def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels",
"def euZr(YKHO, *qIxc):\n bD7m = YKHO._build_url('labels', base_url=YKHO._api)\n qQXR = YKHO._json(YKHO._post(bD7m, data=qIxc), 200)\n return [seYU(vC9B, YKHO) for ... | [
"0.76488024",
"0.7479606",
"0.7444366",
"0.73893076",
"0.7252798",
"0.7249616",
"0.7249616",
"0.7191176",
"0.71647483",
"0.71473634",
"0.7138764",
"0.7122549",
"0.7081779",
"0.7081779",
"0.7066659",
"0.7044819",
"0.7044819",
"0.7044819",
"0.7044819",
"0.7044819",
"0.7044819",... | 0.71123725 | 12 |
The severity of the incident | def rwlZ(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'IncidentSeverity']]]:
return qe4Y.get(YKHO, 'severity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKH... | [
"0.8502614",
"0.8502614",
"0.8502614",
"0.8502614",
"0.8502614",
"0.8502614",
"0.8502614",
"0.8322279",
"0.8290707",
"0.8290707",
"0.8290707",
"0.81497586",
"0.79912686",
"0.79912686",
"0.7936277",
"0.7836059",
"0.7810768",
"0.78072834",
"0.78072834",
"0.7743053",
"0.76373243... | 0.8251603 | 11 |
The status of the incident | def jGRS(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'IncidentStatus']]]:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO, YEnM):\n return YEnM.encounter.get_status_display()",
"def jGRS(YKHO):\n return str(YKHO.data['status'])",
"def pI9u(YKHO):\n return YKHO._status_conta",
"def JzpE(YKHO, YEnM):\n return YEnM.encounter.get_status_display()",
"def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'stat... | [
"0.81495017",
"0.7843878",
"0.7803617",
"0.7790509",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
"0.7763451",
... | 0.82600856 | 0 |
Name of the content item | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._item.name",
"def zDRZ(YKHO):\n return YKHO._item_name",
"def zDRZ(YKHO):\n return YKHO._item_name",
"def mWFP(YKHO):\n return YKHO._name if YKHO._name is not None else YKHO._item.name",
"def mWFP(YKHO) -> str:\n return YKHO.content['name']",
"def eW6D(YKHO):\... | [
"0.7964676",
"0.7814861",
"0.7814861",
"0.76598805",
"0.7655986",
"0.76346004",
"0.76267743",
"0.74364674",
"0.7310173",
"0.7310173",
"0.7310173",
"0.72928995",
"0.72251153",
"0.7113639",
"0.70862114",
"0.70659",
"0.70659",
"0.70659",
"0.70659",
"0.70627385",
"0.70627385",
... | 0.0 | -1 |
The resource id of the playbook resource. | def xhpT(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'logic_app_resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def PcW4(YKHO) -> str:\n return YKHO.__re... | [
"0.7717579",
"0.7717579",
"0.7717579",
"0.7638048",
"0.7502633",
"0.7426436",
"0.7426436",
"0.7426436",
"0.7426436",
"0.7426436",
"0.7426436",
"0.7409082",
"0.7409082",
"0.7409082",
"0.7409082",
"0.7409082",
"0.7387891",
"0.7387891",
"0.7387891",
"0.7387891",
"0.7387891",
"... | 0.68833303 | 43 |
The tenant id of the playbook resource. | def mLXZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'tenant_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get... | [
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.7937119",
"0.76805615",
"0.76805615",
"0.76805615",
... | 0.7401924 | 44 |
Creates a dictionary with summary column headers. | def EpMP(btTH):
Qr9H = dict()
for MKlR in btTH:
Qr9H[MKlR] = HKxv[MKlR]
return Qr9H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tUAq(Emd4):\n DEp_ = g760.OrderedDict()\n DEp_[Emd4.BANK_TRADE_REFERENCE_COLUMN] = {'width': 15}\n DEp_[Emd4.PAY_DATE_COLUMN] = {'width': 15}\n DEp_[Emd4.PAY_RECEIVE_COLUMN] = {'width': 18}\n DEp_[Emd4.CURRENCY_COLUMN] = {'width': 12}\n DEp_[Emd4.PAY_AMOUNT_COLUMN] = {'type': 'Monetary', 'wid... | [
"0.698767",
"0.6840148",
"0.6644171",
"0.66154313",
"0.6591747",
"0.6542094",
"0.65215725",
"0.6509301",
"0.64953196",
"0.64951193",
"0.64868474",
"0.6441643",
"0.6424785",
"0.64182055",
"0.63327736",
"0.62715805",
"0.6257071",
"0.62077576",
"0.6193068",
"0.6190188",
"0.61809... | 0.0 | -1 |
Initialise backend with hamiltonian parameters | def FIMM(YKHO, b4lO: float=5000000000.0, iSfK: float=-250000000.0, rx7y: float=1000000000.0, X1Pc: float=800000000.0, JM3l: float=10000.0, ARTs: bool=True, **B2fa):
from qiskit_dynamics.pulse import InstructionToSignals
BifU = 2 * b4lO + iSfK
hIy0 = oyIN.array([[1, 0, 0]]).T
mPvB = oyIN.array([[0, 1, 0]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super(Vo_U, YKHO).__init__()\n YKHO.ham_init = None",
"def OHQy(YKHO):\n YKHO.gamma = 0.005\n YKHO.lambda_user = 0.01\n YKHO.lambda_item = 0.01\n YKHO.num_epochs = 15\n YKHO.lambda_u_bias = 0.001\n YKHO.lambda_i_bias = 0.001\n YKHO.lambda_implicit = 0.005",
"def L08... | [
"0.7128655",
"0.67175096",
"0.67028433",
"0.66401523",
"0.66162014",
"0.6538255",
"0.652209",
"0.6511186",
"0.64828074",
"0.63314104",
"0.62779164",
"0.6256593",
"0.6252934",
"0.62466174",
"0.6227427",
"0.6226598",
"0.61879444",
"0.6187094",
"0.61864734",
"0.6171282",
"0.6143... | 0.0 | -1 |
Factorize the camera matrix into K, R, t as P = K[R|t]. | def aM8h(YKHO):
nMvt, A3Vt = Zvjk(YKHO.P[:, :3])
Kt_s = A2lD(Zihr(A2lD(nMvt)))
if nUPH(Kt_s) < 0:
Kt_s[1, 1] *= -1
YKHO.K = BJ1H(nMvt, Kt_s)
YKHO.R = BJ1H(Kt_s, A3Vt)
YKHO.t = BJ1H(dKc3(YKHO.K), YKHO.P[:, :3])
return (YKHO.K, YKHO.R, YKHO.t) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wU6K(A3Vt, a1PO, nMvt):\n if isinstance(A3Vt, oyIN.ndarray):\n return nMvt @ A3Vt.T @ oyIN.concatenate((oyIN.eye(3), -a1PO.reshape(3, 1)), axis=1)\n else:\n return nMvt @ A3Vt.T @ ht2j.cat((ht2j.eye(3), -a1PO.view(3, 1)), dim=1)",
"def SF1h(nMvt, A3Vt, a1PO):\n h4Tb = oyIN.zeros((4, 4)... | [
"0.7044659",
"0.6761208",
"0.6538584",
"0.64287305",
"0.6355547",
"0.63120466",
"0.62642974",
"0.6222981",
"0.6094812",
"0.6092025",
"0.6086361",
"0.5878845",
"0.58636606",
"0.5811751",
"0.56892735",
"0.56846935",
"0.56644094",
"0.5643207",
"0.5643207",
"0.5643207",
"0.564320... | 0.63507766 | 5 |
Ensures that a given attribute is a list and not a string | def rOXd(YKHO, hkS8):
BWXx = getattr(YKHO, hkS8)
if not isinstance(BWXx, list):
if BWXx == '':
setattr(YKHO, hkS8, [])
else:
setattr(YKHO, hkS8, BWXx.split('|')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4aX(YKHO, hkS8, BWXx):\n if isinstance(BWXx, str) or I_Zv(BWXx):\n raise TypeError('\"{attr}\" attribute must be a list or other iterable'.format(attr=hkS8))",
"def Lm1b(WKvO):\n return isinstance(WKvO, list) and (not isinstance(WKvO, jUrF))",
"def xzCw(YKHO, BWXx):\n if not isinstance(BWX... | [
"0.7219178",
"0.71188253",
"0.6998697",
"0.67189217",
"0.6689378",
"0.6650174",
"0.66108894",
"0.658175",
"0.65579927",
"0.6515357",
"0.6453865",
"0.64443237",
"0.64163375",
"0.6382986",
"0.6370667",
"0.6336056",
"0.63256747",
"0.6295654",
"0.62813354",
"0.62726474",
"0.62709... | 0.7787428 | 0 |
Adds a `Term` to this GO tree | def H2v5(YKHO, OXAZ):
YKHO.terms[OXAZ.id] = OXAZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, OXAZ: typing.Union[Term, str]) -> None:\n Uz33 = OXAZ if isinstance(OXAZ, aw0m) else YKHO._parse_term(OXAZ)\n list.append(YKHO, Uz33)",
"def rWys(YKHO, OXAZ):\n YKHO.terms.append(OXAZ.search)\n YKHO.inclusions.append(OXAZ.inclusions)\n YKHO.exclusions.append(OXAZ.exclusions)\n if... | [
"0.76195115",
"0.74603415",
"0.73263973",
"0.73263896",
"0.72128326",
"0.6906492",
"0.6843341",
"0.6696622",
"0.6657072",
"0.66410404",
"0.65677434",
"0.6537455",
"0.65371996",
"0.6525945",
"0.64994884",
"0.64939183",
"0.64403313",
"0.6433215",
"0.6428053",
"0.6422984",
"0.64... | 0.8153141 | 0 |
Looks up a `Term` in this tree by ID. Also cares about alternative IDs | def ccBJ(YKHO, Ilxn):
try:
return YKHO.terms[Ilxn]
except KeyError:
return YKHO.terms[YKHO.aliases[Ilxn]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ccBJ(YKHO, id):\n try:\n return YKHO.terms[id]\n except KeyError:\n return YKHO.terms[YKHO.aliases[id]]",
"def GVFA(YKHO, id: str) -> aw0m:\n try:\n return aw0m(YKHO, YKHO._terms[id])\n except KeyError:\n pass\n for kbO9 in YKHO.imports.values():\n try:\n ... | [
"0.7425233",
"0.7328627",
"0.7152566",
"0.6962908",
"0.68520176",
"0.68026507",
"0.65238947",
"0.64294773",
"0.63997144",
"0.63854414",
"0.62202847",
"0.615969",
"0.6120007",
"0.59962654",
"0.5976161",
"0.5940594",
"0.5895506",
"0.5886619",
"0.5859145",
"0.57303584",
"0.57268... | 0.5922429 | 16 |
Given a `Term` or a GO term ID, returns an object that is surely a `Term` | def Sj8k(YKHO, CXTK):
if isinstance(CXTK, aw0m):
return CXTK
return YKHO.lookup(CXTK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FlWO(YKHO, CXTK):\n if isinstance(CXTK, aw0m):\n return CXTK\n return YKHO.lookup(CXTK)",
"def ENQp(YKHO):\n WBAH, HoY7 = r3eK(dal=YKHO.dal)\n YKHO.assertEqual(WBAH, 1)\n YEnM = YKHO.dal.get(aw0m, WBAH)\n YKHO.assertEqual(YEnM.term_id, WBAH)\n YKHO.assertEqual(YEnM.ui, HoY7['ui'])... | [
"0.7595765",
"0.6668902",
"0.65233374",
"0.6421519",
"0.6252795",
"0.62395793",
"0.6230381",
"0.61877704",
"0.6186665",
"0.61394536",
"0.6062989",
"0.60115474",
"0.5981752",
"0.5940878",
"0.58222914",
"0.58093184",
"0.57929957",
"0.5765969",
"0.57544994",
"0.5713673",
"0.5712... | 0.7498203 | 1 |
Returns all the ancestors of a given `Term` (or multiple terms) in this tree. The result is a list of `Term` instances. | def JZlq(YKHO, *qIxc):
Uucj = MUE7((YKHO.ensure_term(CXTK) for CXTK in qIxc))
Aofo = set()
while Uucj:
OXAZ = Uucj.popleft()
Aofo.add(OXAZ)
Uucj.extend(YKHO.parents(OXAZ))
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZlq(YKHO):\n U5bT = []\n for Q6kx in aM69.get_ancestors(YKHO._cursor, YKHO.id, sort=True):\n Q6kx = o7DN(YKHO._transaction, Q6kx.id)\n U5bT.append(Q6kx)\n return BfDw.vectorize_nodes(U5bT)[::-1]",
"def JZlq(YKHO):\n JZlq = []\n oHE7 = YKHO\n while oHE7.parent:\n JZlq.a... | [
"0.80166143",
"0.7825025",
"0.7669407",
"0.7583591",
"0.75685734",
"0.74161047",
"0.7295735",
"0.72955745",
"0.72730875",
"0.721254",
"0.7007586",
"0.6955325",
"0.69377106",
"0.69377106",
"0.69377106",
"0.69377106",
"0.69377106",
"0.69334906",
"0.6931165",
"0.68219846",
"0.67... | 0.7806993 | 2 |
Returns the direct parents of a `Term` in this tree. `term_or_id` can be a GO term ID or a `Term`. The result is a list of `Term` instances. | def ACnF(YKHO, CXTK):
OXAZ = YKHO.ensure_term(CXTK)
Ym5H = OXAZ.tags.get('is_a', [])
return [YKHO.lookup(Ilxn.value) for Ilxn in Ym5H] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ACnF(YKHO, CXTK):\n OXAZ = YKHO._ensure_term(CXTK)\n Ym5H = OXAZ.tags.get('is_a', [])\n return [YKHO.lookup(id.value) for id in Ym5H]",
"def ACnF(YKHO, OXAZ):\n if OXAZ in YKHO.dag:\n return YKHO.dag.predecessors(OXAZ)\n else:\n return []",
"def JZlq(YKHO, *qIxc):\n Uucj = M... | [
"0.80007714",
"0.7061836",
"0.6406342",
"0.62100357",
"0.61418843",
"0.59615535",
"0.57550174",
"0.5564606",
"0.5501372",
"0.5488826",
"0.54760665",
"0.5452691",
"0.5384814",
"0.53838927",
"0.53796786",
"0.537419",
"0.5365203",
"0.5364912",
"0.5307927",
"0.5263092",
"0.520423... | 0.7916471 | 1 |
Handle any exception that occurs, by returning an appropriate response, or reraising the error. | def dBGf(YKHO, BQDi):
if isinstance(BQDi, (Bx6I.NotAuthenticated, Bx6I.AuthenticationFailed)):
MkeE = YKHO.get_authenticate_header(YKHO.request)
if MkeE:
BQDi.auth_header = MkeE
else:
BQDi.status_code = jGRS.HTTP_403_FORBIDDEN
vBLA = YKHO.settings.EXCEPTION_HANDLE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGf(tTpl):\n return UAju.make_error_response(tTpl)",
"def dBGf(tTpl):\n geh0 = oGir(qQXR.dumps({'success': False, 'message': tTpl.message}), status=tTpl.code, mimetype='application/json')\n return geh0",
"def Dj64(BQDi):\n if QePW.format == 'json':\n geh0 = BQDi.get_response()\n ... | [
"0.8082333",
"0.80725616",
"0.7756065",
"0.7725982",
"0.76588964",
"0.7603442",
"0.75894874",
"0.75433",
"0.7528089",
"0.75023985",
"0.748705",
"0.748705",
"0.748705",
"0.748705",
"0.748705",
"0.748705",
"0.74628246",
"0.74547046",
"0.744072",
"0.7396622",
"0.7392149",
"0.7... | 0.7337612 | 29 |
Handle any exception that occurs, by returning an appropriate response, or reraising the error. | def dBGf(YKHO, BQDi):
if isinstance(BQDi, (Bx6I.NotAuthenticated, Bx6I.AuthenticationFailed)):
MkeE = YKHO.get_authenticate_header(YKHO.request)
if MkeE:
BQDi.auth_header = MkeE
else:
BQDi.status_code = jGRS.HTTP_403_FORBIDDEN
vBLA = YKHO.settings.EXCEPTION_HANDLE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGf(tTpl):\n return UAju.make_error_response(tTpl)",
"def dBGf(tTpl):\n geh0 = oGir(qQXR.dumps({'success': False, 'message': tTpl.message}), status=tTpl.code, mimetype='application/json')\n return geh0",
"def Dj64(BQDi):\n if QePW.format == 'json':\n geh0 = BQDi.get_response()\n ... | [
"0.80818194",
"0.8071761",
"0.775558",
"0.7725896",
"0.76585305",
"0.7603178",
"0.7589467",
"0.7542806",
"0.7528023",
"0.75021666",
"0.748683",
"0.748683",
"0.748683",
"0.748683",
"0.748683",
"0.748683",
"0.74625725",
"0.74537945",
"0.74405414",
"0.73958313",
"0.7391316",
"... | 0.7336902 | 25 |
Handle any exception that occurs, by returning an appropriate response, or reraising the error. | def dBGf(YKHO, BQDi):
if isinstance(BQDi, (Bx6I.NotAuthenticated, Bx6I.AuthenticationFailed)):
MkeE = YKHO.get_authenticate_header(YKHO.request)
if MkeE:
BQDi.auth_header = MkeE
else:
BQDi.status_code = jGRS.HTTP_403_FORBIDDEN
vBLA = YKHO.settings.EXCEPTION_HANDLE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGf(tTpl):\n return UAju.make_error_response(tTpl)",
"def dBGf(tTpl):\n geh0 = oGir(qQXR.dumps({'success': False, 'message': tTpl.message}), status=tTpl.code, mimetype='application/json')\n return geh0",
"def Dj64(BQDi):\n if QePW.format == 'json':\n geh0 = BQDi.get_response()\n ... | [
"0.8082782",
"0.8069102",
"0.77548975",
"0.7723797",
"0.76573247",
"0.76025766",
"0.75892514",
"0.75413704",
"0.7528874",
"0.7500698",
"0.74854213",
"0.74854213",
"0.74854213",
"0.74854213",
"0.74854213",
"0.74854213",
"0.7460436",
"0.7453562",
"0.7438489",
"0.73947304",
"0.7... | 0.733772 | 24 |
Handle any exception that occurs, by returning an appropriate response, or reraising the error. | def dBGf(YKHO, BQDi):
if isinstance(BQDi, (Bx6I.NotAuthenticated, Bx6I.AuthenticationFailed)):
MkeE = YKHO.get_authenticate_header(YKHO.request)
if MkeE:
BQDi.auth_header = MkeE
else:
BQDi.status_code = jGRS.HTTP_403_FORBIDDEN
vBLA = YKHO.settings.EXCEPTION_HANDLE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGf(tTpl):\n return UAju.make_error_response(tTpl)",
"def dBGf(tTpl):\n geh0 = oGir(qQXR.dumps({'success': False, 'message': tTpl.message}), status=tTpl.code, mimetype='application/json')\n return geh0",
"def Dj64(BQDi):\n if QePW.format == 'json':\n geh0 = BQDi.get_response()\n ... | [
"0.80829716",
"0.80708164",
"0.7755804",
"0.7725568",
"0.7658322",
"0.76037663",
"0.75903314",
"0.7543029",
"0.75286657",
"0.7501836",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7462263",
"0.7454516",
"0.74400973",
"0.739629",
"0.73934555... | 0.73370564 | 28 |
Handle any exception that occurs, by returning an appropriate response, or reraising the error. | def dBGf(YKHO, BQDi):
if isinstance(BQDi, (Bx6I.NotAuthenticated, Bx6I.AuthenticationFailed)):
MkeE = YKHO.get_authenticate_header(YKHO.request)
if MkeE:
BQDi.auth_header = MkeE
else:
BQDi.status_code = jGRS.HTTP_403_FORBIDDEN
vBLA = YKHO.settings.EXCEPTION_HANDLE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGf(tTpl):\n return UAju.make_error_response(tTpl)",
"def dBGf(tTpl):\n geh0 = oGir(qQXR.dumps({'success': False, 'message': tTpl.message}), status=tTpl.code, mimetype='application/json')\n return geh0",
"def Dj64(BQDi):\n if QePW.format == 'json':\n geh0 = BQDi.get_response()\n ... | [
"0.8082333",
"0.80725616",
"0.7756065",
"0.7725982",
"0.76588964",
"0.7603442",
"0.75894874",
"0.75433",
"0.7528089",
"0.75023985",
"0.748705",
"0.748705",
"0.748705",
"0.748705",
"0.748705",
"0.748705",
"0.74628246",
"0.74547046",
"0.744072",
"0.7396622",
"0.7392149",
"0.7... | 0.7337612 | 26 |
Handle any exception that occurs, by returning an appropriate response, or reraising the error. | def dBGf(YKHO, BQDi):
if isinstance(BQDi, (Bx6I.NotAuthenticated, Bx6I.AuthenticationFailed)):
MkeE = YKHO.get_authenticate_header(YKHO.request)
if MkeE:
BQDi.auth_header = MkeE
else:
BQDi.status_code = jGRS.HTTP_403_FORBIDDEN
vBLA = YKHO.settings.EXCEPTION_HANDLE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGf(tTpl):\n return UAju.make_error_response(tTpl)",
"def dBGf(tTpl):\n geh0 = oGir(qQXR.dumps({'success': False, 'message': tTpl.message}), status=tTpl.code, mimetype='application/json')\n return geh0",
"def Dj64(BQDi):\n if QePW.format == 'json':\n geh0 = BQDi.get_response()\n ... | [
"0.80818194",
"0.8071761",
"0.775558",
"0.7725896",
"0.76585305",
"0.7603178",
"0.7589467",
"0.7542806",
"0.7528023",
"0.75021666",
"0.748683",
"0.748683",
"0.748683",
"0.748683",
"0.748683",
"0.748683",
"0.74625725",
"0.74537945",
"0.74405414",
"0.73958313",
"0.7391316",
"... | 0.7336902 | 27 |
Extracts the module name from the test module. | def svFV() -> str:
tYcn: str = next((f4IJ.filename for f4IJ in tq_1.stack() if Q9lX in f4IJ.filename))
return gLx5(aPr_(tYcn))[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hTsD(LCet):\n return LCet.split('_v')[0]",
"def ivvY(mWFP):\n return mWFP.split('.')[0]",
"def ivvY(MJH2):\n return Om__.split(MJH2)[1].split('.')[0]",
"def ivvY(MJH2):\n return Om__.split(MJH2)[1].split('.')[0]",
"def ivvY(MJH2):\n return Om__.split(MJH2)[1].split('.')[0]",
"def ivvY(... | [
"0.7562285",
"0.75378656",
"0.7521717",
"0.7521717",
"0.7521717",
"0.7521717",
"0.7521717",
"0.7429033",
"0.7408032",
"0.73871154",
"0.7370033",
"0.7213161",
"0.7169957",
"0.7088134",
"0.7087651",
"0.7047846",
"0.70200527",
"0.7008583",
"0.69915175",
"0.69915175",
"0.69764686... | 0.7390224 | 9 |
Register a variable to fetch from environment or cloud parameter store | def C4rf(YKHO, M_u8: str, W78r: bool=False, TDw3: str | None=None, **B2fa):
if M_u8 in [Es0b.name for Es0b in YKHO.variables]:
raise ValueError(f'Variable name {M_u8} already exists in the fetched variables list.')
Zye7 = iQnE(name=M_u8, to_split=W78r, delimiter=TDw3, test_name=YKHO.test_name)
if 'd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gqmQ(YKHO):\n mWFP, BWXx = YKHO.get_value()\n Hy7s.environ[mWFP] = BWXx",
"def BYBy(mWFP, BWXx):\n assert isinstance(mWFP, str)\n yvY1 = ALgi()\n if mWFP in yvY1:\n E4N8('redefining global value `%s`' % mWFP, RuntimeWarning, stacklevel=2)\n yvY1[mWFP] = BWXx",
"def MbH4(YKHO, KAOR,... | [
"0.63893247",
"0.62225896",
"0.6134715",
"0.60407245",
"0.60387594",
"0.6008085",
"0.5937412",
"0.58846194",
"0.5846604",
"0.5814675",
"0.58089423",
"0.58055747",
"0.5791209",
"0.5790067",
"0.5789333",
"0.5771103",
"0.5737762",
"0.573628",
"0.5729985",
"0.5695904",
"0.5694088... | 0.0 | -1 |
Used to retrieve a lookup dictionary to convert from one index to another, e.g., gene_id to gene_name, obtained from two columns in the data frame. Returns | def A1Uv(YKHO, xfDz, uHqD):
if YKHO.annotations.index.name in [xfDz, uHqD]:
bOBl = YKHO.annotations.reset_index()
else:
bOBl = YKHO.annotations
bOBl = bOBl[bOBl[uHqD].notnull()]
return rLdf.Series(bOBl[uHqD].values, index=bOBl[xfDz]).to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FxuM(YKHO, EcVT):\n if isinstance(EcVT, rLdf.DataFrame):\n YKHO.lookup_ = {Z9rn: YRbF for YRbF, Z9rn in enumerate(EcVT.columns)}\n return EcVT.values\n if len(EcVT.shape) == 1:\n return {0: 0}\n YKHO.lookup_ = {YRbF: YRbF for YRbF in range(EcVT.shape[1])}\n return EcVT",
"def... | [
"0.6326824",
"0.6277769",
"0.6222942",
"0.6213994",
"0.6179569",
"0.6136388",
"0.6060851",
"0.5929884",
"0.5918918",
"0.5736916",
"0.5718541",
"0.5700962",
"0.56880164",
"0.5675931",
"0.56432027",
"0.5618105",
"0.5615691",
"0.5546045",
"0.55353725",
"0.5527856",
"0.5470323",
... | 0.5622884 | 15 |
Takes a number n and returns n + n2 + n4 + n6 + ... + 0. | def g5J0(exwG):
if exwG <= 0:
return 0
else:
return exwG + g5J0(exwG - 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LXk7(exwG):\n if exwG < 1:\n return 0\n KCHu = 0\n for YRbF in range(1, exwG + 1):\n KCHu += YRbF\n return KCHu",
"def dgAL(exwG):\n KCHu = 0\n for exwG in range(1, exwG + 1):\n KCHu = KCHu + exwG\n return KCHu",
"def iRC4(exwG):\n return exwG * (exwG + 1) / 2",... | [
"0.8237193",
"0.8200946",
"0.80629843",
"0.8020756",
"0.799182",
"0.79777",
"0.7930254",
"0.787888",
"0.78479576",
"0.7814924",
"0.78077567",
"0.7807479",
"0.76888746",
"0.76856405",
"0.7668851",
"0.76249075",
"0.7605136",
"0.76010394",
"0.7536455",
"0.7525838",
"0.7522645",
... | 0.7397435 | 26 |
Returns a new or existing 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 KfiN():\n return lBG2.builder.config(conf=Mwml()).getOrCreate()",
"def Yu9h():\n return lBG2.builder.getOrCreate()",
"def F8fu():\n from pyspark.sql import SparkSession\n return SparkSession.builder.getOrCreate()",
"def Yu9h():\n return lBG2.builder.appName('Sales processor').master('local... | [
"0.83371913",
"0.80117124",
"0.7873571",
"0.78117317",
"0.772858",
"0.7664746",
"0.765421",
"0.76367027",
"0.7595636",
"0.7521212",
"0.75136364",
"0.7479263",
"0.747118",
"0.74478453",
"0.7392291",
"0.73872095",
"0.7368715",
"0.7367271",
"0.73598576",
"0.7358919",
"0.73500943... | 0.7371315 | 17 |
Reads songs data in a spark dataframe; creates two dataframes from the main dataframe as songs_table and artists_table, drop duplicates in those and save those dataframes in parquet format on the output path. | def Q5GY(ujem, WbAn, VdBn):
QRIA = WbAn + '/song_data/*/*/*/*.json'
bo34.info('Reading song data json files')
jQ3Z = ujem.read.json(QRIA)
OQ7j = jQ3Z[['song_id', 'title', 'artist_id', 'year', 'duration']]
OQ7j = OQ7j.dropDuplicates()
bo34.info('Writing song table partitioned by year and artist_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5GY(ujem, Dhim, JwxX):\n print('Processing song data...\\n')\n kFLC = ['song_id', 'title', 'artist_id', 'year', 'duration']\n OQ7j = Dhim.select(kFLC).dropDuplicates(['song_id'])\n nJVg = str(JwxX + 'songs/' + 'songs.parquet')\n OQ7j.write.parquet(nJVg, mode='overwrite', partitionBy=['year', 'a... | [
"0.7927196",
"0.77698016",
"0.76718444",
"0.7648813",
"0.76155186",
"0.7610746",
"0.7594477",
"0.756869",
"0.755748",
"0.7556535",
"0.7542448",
"0.752818",
"0.7526678",
"0.74881136",
"0.7480483",
"0.7478897",
"0.7477026",
"0.746909",
"0.7427501",
"0.7421426",
"0.7416749",
"... | 0.7402404 | 22 |
sets the password of the vm | def jTXt(YKHO, BWXx):
YKHO._password = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n D2Lq(jTXt)",
"def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.pass_txt.send_keys(jTXt)",
"def PnS... | [
"0.79583746",
"0.78516245",
"0.7751582",
"0.76917094",
"0.76269597",
"0.7622073",
"0.761014",
"0.75345117",
"0.744912",
"0.7421981",
"0.73829275",
"0.73829275",
"0.73674387",
"0.7352507",
"0.7306309",
"0.72989327",
"0.7283724",
"0.72766256",
"0.7274762",
"0.7269002",
"0.72626... | 0.73206043 | 14 |
Calls PixelNormalization layer with given inputs tensor. | def pOv4(YKHO, g4y1):
return g4y1 * ZylS.math.rsqrt(x=ZylS.add(x=ZylS.reduce_mean(input_tensor=ZylS.square(x=g4y1), axis=-1, keepdims=True), y=YKHO.epsilon)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def idFg(CK9p):\n return ZylS.layers.batch_normalization(CK9p)",
"def Z7bc(WKvO):\n gt4n = WKvO.shape[-1]\n CkYf = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(WKvO), axis=3, keepdims=True) + 1e-08)\n return WKvO / CkYf",
"def FdFb(YKHO, vhpA, H1Ed=0):\n if H1Ed == 0:\n return vhpA\n tjUW, N... | [
"0.65552133",
"0.6482876",
"0.6350489",
"0.6335797",
"0.6329599",
"0.63282377",
"0.63211834",
"0.63167584",
"0.6313068",
"0.6301823",
"0.62917304",
"0.62743366",
"0.6270363",
"0.6257697",
"0.6192439",
"0.61760086",
"0.6172766",
"0.61725664",
"0.6166103",
"0.6139335",
"0.60320... | 0.0 | -1 |
Returns the maximum coordinates of the mesh. Returns | def xAnn(YKHO):
return oyIN.max(YKHO.vertices_, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipPO(YKHO):\n return max(YKHO.x, YKHO.y, YKHO.z, YKHO.e)",
"def Rbbn(YKHO):\n Ziit = YKHO.topology.nodes.values()\n zt1J = max((WKvO for WKvO, LVAh in Ziit))\n vhEE = max((LVAh for WKvO, LVAh in Ziit))\n return (zt1J, vhEE)",
"def max(YKHO):\n return Yj_e(YKHO._max)",
"def qfB5(YKHO):\n... | [
"0.78485936",
"0.76557356",
"0.7497587",
"0.73226875",
"0.73146933",
"0.72589624",
"0.7203186",
"0.7187746",
"0.71585935",
"0.711025",
"0.7103434",
"0.7103434",
"0.703892",
"0.70376474",
"0.7031891",
"0.6989871",
"0.6989099",
"0.6989099",
"0.69493",
"0.694727",
"0.6937894",
... | 0.82913643 | 0 |
Returns the maximal span of the mesh's coordinates. The maximal span is the maximum coordinate value minus the minimal coordinate value in each principal axis. Returns | def f_xC(YKHO):
return YKHO.max_coords() - YKHO.min_coords() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xAnn(YKHO):\n return oyIN.max(YKHO.vertices_, axis=0)",
"def Ndv8(YKHO):\n return MIyg(YKHO, stat='max')",
"def SkJr(YKHO, jDK_: int) -> float:\n return oyIN.max([Z9rn.center[jDK_] for Z9rn in YKHO.polygons])",
"def Q9fu(YKHO):\n return YKHO._ptr.contents.maxgeom",
"def ju2d(M_DK):\n ret... | [
"0.6846224",
"0.671709",
"0.6651072",
"0.66503674",
"0.65704745",
"0.65421915",
"0.6424611",
"0.641286",
"0.6405522",
"0.6395897",
"0.63607675",
"0.6352614",
"0.6352435",
"0.6324035",
"0.63168293",
"0.6304701",
"0.62740093",
"0.6268179",
"0.62598807",
"0.62598807",
"0.6249532... | 0.0 | -1 |
Returns an array of the triangle centers as 3D points. Returns | def uGhe(YKHO):
eKGI = []
for nXnc in YKHO.triangles_:
eKGI.append(YKHO._center_of_tri(nXnc))
return oyIN.array(eKGI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NCpp(YKHO):\n y5bX = YKHO._pointcloud.calculate(YKHO._depth_frame)\n NCpp = oyIN.asanyarray(y5bX.get_vertices())\n NCpp = NCpp.view(oyIN.float32).reshape(NCpp.shape + (-1,))\n return NCpp",
"def LTIa(YKHO):\n CAzz, Jd40, Ud7_ = YKHO.meshgrid\n return oyIN.c_[CAzz.ravel(order='F'), Jd40.rave... | [
"0.6800322",
"0.6795837",
"0.6795538",
"0.6718047",
"0.66560894",
"0.66329545",
"0.64715993",
"0.6446283",
"0.64411455",
"0.64108384",
"0.64102197",
"0.6399815",
"0.6293677",
"0.6263881",
"0.6236689",
"0.6230805",
"0.6226222",
"0.6224746",
"0.621101",
"0.6210384",
"0.61854935... | 0.7539229 | 0 |
Return the surface area of the mesh. Returns float The surface area of the mesh. | def B7Mv(YKHO):
if YKHO.surface_area_ is None:
f0tD = 0.0
for nXnc in YKHO.triangles:
huCq = YKHO._area_of_tri(nXnc)
f0tD += huCq
YKHO.surface_area_ = f0tD
return YKHO.surface_area_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())",
"def ivpi(YKHO) -> float:\n return 0",
"def B7Mv(YKHO):\n sLiv._update_node_data()\n return TZ5_[YKHO._index]",
"def Zth5(YKHO) -> float:\n f0tD = 0\n for CkYf, B89m in zip(YKHO.mesh_inside.face_normals, YKHO.mesh_inside.area_... | [
"0.8032267",
"0.7708424",
"0.7630266",
"0.7608717",
"0.7601417",
"0.7572602",
"0.7543208",
"0.7497146",
"0.7468569",
"0.7449734",
"0.73393667",
"0.7302214",
"0.7294592",
"0.7218009",
"0.71831733",
"0.7155538",
"0.7142022",
"0.71364635",
"0.70645463",
"0.7032406",
"0.7006526",... | 0.82326716 | 0 |
Return the total volume of the mesh. Returns float The total volume of the mesh. | def sr5Y(YKHO):
sr5Y = 0
for nXnc in YKHO.triangles_:
akib = YKHO._signed_volume_of_tri(nXnc)
sr5Y = sr5Y + akib
if sr5Y < 0:
sr5Y = -sr5Y
return sr5Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zz9W(YKHO):\n Ty9i = 0\n for RpU_ in YKHO.faces:\n zvk5 = abs(oyIN.linalg.det(oyIN.array([YKHO.coord[d6pt] for d6pt in RpU_])))\n exwG = 0\n while exwG in RpU_:\n exwG += 1\n pImw, mhAC = t8Xn([YKHO.coord[d6pt] for d6pt in RpU_])\n if oyIN.dot(YKHO.coord[exwG... | [
"0.76014876",
"0.7484873",
"0.7288707",
"0.7286561",
"0.72718626",
"0.726798",
"0.72481596",
"0.72468174",
"0.7229579",
"0.7194081",
"0.71504796",
"0.7141906",
"0.7136579",
"0.70456225",
"0.7039167",
"0.7021038",
"0.6997112",
"0.6976268",
"0.6950245",
"0.69470066",
"0.6946866... | 0.810196 | 0 |
Center the mesh's vertices at the centroid. This shifts the mesh without rotating it so that the centroid (mean) of all vertices is at the origin. | def YxaL(YKHO):
e6ux = oyIN.mean(YKHO.vertices_, axis=0)
YKHO.vertices = YKHO.vertices_ - e6ux | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mb50(YKHO):\n YKHO.vertices = YKHO.vertices_ - YKHO.center_of_mass_\n YKHO.trimesh_ = None",
"def q0W5(rR8k):\n UHFx = len(rR8k.vertices)\n if UHFx == 0:\n return\n o0ZM = BhJz = Rv0k = 0\n for XP5J in rR8k.vertices:\n o0ZM += XP5J.x\n BhJz += XP5J.y\n Rv0k += XP... | [
"0.81165165",
"0.7458653",
"0.71498114",
"0.71006733",
"0.70900816",
"0.6979805",
"0.69243324",
"0.68971014",
"0.68542707",
"0.68193877",
"0.6795018",
"0.6738171",
"0.6577898",
"0.65641004",
"0.6525616",
"0.6491039",
"0.6448516",
"0.64365053",
"0.64216876",
"0.6417026",
"0.64... | 0.739041 | 2 |
Center the mesh's vertices at the center of its bounding box. This shifts the mesh without rotating it so that the center of its bounding box is at the origin. | def EqSJ(YKHO):
krjw = YKHO.min_coords()
f8bk = YKHO.max_coords()
hgjH = (f8bk + krjw) / 2
YKHO.vertices = YKHO.vertices_ - hgjH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mb50(YKHO):\n YKHO.vertices = YKHO.vertices_ - YKHO.center_of_mass_\n YKHO.trimesh_ = None",
"def hgjH(iXlf):\n edvT = cviu(iXlf)\n UV8M = edvT['x'][0] + (edvT['x'][1] - edvT['x'][0]) / 2.0\n vHO5 = edvT['y'][0] + (edvT['y'][1] - edvT['y'][0]) / 2.0\n rAGV = edvT['z'][0] + (edvT['z'][1] - e... | [
"0.79759425",
"0.7442099",
"0.71955115",
"0.7119741",
"0.68060994",
"0.6664002",
"0.6566346",
"0.64368814",
"0.6432132",
"0.6409331",
"0.6403994",
"0.634437",
"0.6328036",
"0.6319259",
"0.6296667",
"0.6295162",
"0.6294304",
"0.62243587",
"0.62045735",
"0.6193121",
"0.6188495"... | 0.7388666 | 2 |
Generate uniformly random points on the surface of the mesh. | def NFfM(YKHO, KR0Q):
BFeB = YKHO._tri_area_percentages()
Ki5h = oyIN.random.choice(list(range(len(BFeB))), KR0Q, p=BFeB)
LTIa = []
for _jrv in Ki5h:
nXnc = YKHO.triangles[_jrv]
LTIa.append(YKHO._rand_point_on_tri(nXnc))
return oyIN.array(LTIa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDZP():\n\n def NkkI(Ty9i):\n CkYf = XTiz.linalg.norm(Ty9i)\n if CkYf == 0:\n return Ty9i\n else:\n return Ty9i / CkYf\n Ty9i = XTiz.zeros(3)\n for YRbF in range(3):\n G1Hx = 15\n XTiz.random.seed()\n H6nk = XTiz.random.standard_normal(si... | [
"0.72890824",
"0.7253432",
"0.6788575",
"0.6786868",
"0.6700386",
"0.6685158",
"0.66785914",
"0.6652998",
"0.655984",
"0.6556222",
"0.6531706",
"0.65296143",
"0.6489354",
"0.64775157",
"0.6469784",
"0.64394575",
"0.6436674",
"0.6431617",
"0.6413346",
"0.64040107",
"0.63857055... | 0.6111273 | 47 |
Computes the mesh inertia matrix. Note Only works for watertight meshes. Returns | def uLj7(YKHO):
Nq1b = YKHO.covariance()
return YKHO.density_ * (oyIN.trace(Nq1b) * oyIN.eye(3) - Nq1b) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OJ5a(YKHO):\n return YKHO._inertia_matrix",
"def KhYA(YKHO):\n return J87D.compute_inertia_tensor(YKHO.traj)",
"def pdQl(YKHO):\n pdhd = oyIN.zeros((3, 3), oyIN.float64)\n _3XM = YKHO.center_of_mass()\n for ft9X in range(YKHO.atomnumber):\n bMbF = YKHO.masses[ft9X]\n BHsk = YKH... | [
"0.78431493",
"0.74817085",
"0.7359385",
"0.6997169",
"0.68734354",
"0.68720496",
"0.68659574",
"0.6744296",
"0.6721549",
"0.6712644",
"0.6671985",
"0.6610258",
"0.6538933",
"0.65351963",
"0.6534343",
"0.65228164",
"0.649013",
"0.64583015",
"0.6416889",
"0.6373036",
"0.635598... | 0.7432718 | 2 |
Computes the center point of the bounding box. Returns | def NN4E(YKHO):
UZqU = (YKHO.min_coords() + YKHO.max_coords()) / 2.0
return UZqU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lnpr(YKHO):\n cviu = YKHO.get_bounding_box()\n return cviu.center()",
"def hgjH(YKHO):\n return ((YKHO.x0 + YKHO.x1) / 2.0, (YKHO.y0 + YKHO.y1) / 2.0)",
"def hgjH(YKHO) -> PvyL:\n return PvyL(YKHO.x + YKHO.width / 2, YKHO.y + YKHO.height / 2)",
"def o9dz(YKHO):\n QOjQ = ccKF.getAttr('{}.bo... | [
"0.83782417",
"0.8149744",
"0.81465584",
"0.80818766",
"0.80782944",
"0.80678874",
"0.8036145",
"0.8029207",
"0.8022222",
"0.8012792",
"0.800067",
"0.79801786",
"0.7972781",
"0.7908948",
"0.78888303",
"0.78840035",
"0.7871272",
"0.7863762",
"0.7847375",
"0.78364605",
"0.78302... | 0.77554655 | 23 |
Computes the centroid (mean) of the mesh's vertices. Returns | def eEap(YKHO):
return oyIN.mean(YKHO.vertices_, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0W5(rR8k):\n UHFx = len(rR8k.vertices)\n if UHFx == 0:\n return\n o0ZM = BhJz = Rv0k = 0\n for XP5J in rR8k.vertices:\n o0ZM += XP5J.x\n BhJz += XP5J.y\n Rv0k += XP5J.z\n UV8M = o0ZM / UHFx\n vHO5 = BhJz / UHFx\n rAGV = Rv0k / UHFx\n for XP5J in rR8k.vertice... | [
"0.81047016",
"0.80956435",
"0.80584264",
"0.79963505",
"0.79616165",
"0.7940685",
"0.786477",
"0.7859212",
"0.7808234",
"0.777023",
"0.7754275",
"0.7686947",
"0.7653488",
"0.7638256",
"0.7624026",
"0.7523866",
"0.749993",
"0.74933255",
"0.7477532",
"0.7475219",
"0.7475219",
... | 0.8502575 | 0 |
Return the area of the given triangle. | def m8vz(YKHO, nXnc):
_19w = [YKHO.vertices[YRbF] for YRbF in nXnc]
bBVO = _19w[1] - _19w[0]
_P6x = _19w[2] - _19w[0]
return 0.5 * oyIN.linalg.norm(oyIN.cross(bBVO, _P6x)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x5JU(P8oC=1, H2v2=1):\n return P8oC * H2v2 / 2",
"def cGOR(u54L, H2v2):\n return 1 / 2 * (u54L * H2v2)",
"def cGOR(P8oC, H2v2):\n return 0.5 * P8oC * H2v2",
"def cGOR(P8oC, H2v2):\n return 0.5 * P8oC * H2v2",
"def cGOR(q1iG):\n return q1iG ** 2 * (epAf.sqrt(3) / 4)",
"def a1HB(aNZO, xQ... | [
"0.8337077",
"0.82020485",
"0.81968886",
"0.81968886",
"0.8008731",
"0.79398525",
"0.79067594",
"0.7840963",
"0.779067",
"0.779067",
"0.77058023",
"0.76972616",
"0.76954025",
"0.76929945",
"0.7670665",
"0.7665181",
"0.7654356",
"0.7613181",
"0.759833",
"0.75447166",
"0.753609... | 0.7758958 | 10 |
Computes the distance from the segment to the given 3D point. | def PL5U(YKHO, AU8u):
EBgd, HpuQ = (YKHO.p1, YKHO.p2)
VqfF = AU8u - EBgd
bBVO = HpuQ - EBgd
GkWj = EBgd + oyIN.dot(VqfF, bBVO) / oyIN.dot(bBVO, bBVO) * bBVO
if YKHO._contains_proj_point(GkWj):
return oyIN.linalg.norm(AU8u - GkWj)
else:
return min(oyIN.linalg.norm(AU8u - EBgd), oy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zG70(YKHO, AU8u):\n WKvO, LVAh, epBp = AU8u\n WKvO /= YKHO.size * 0.43\n LVAh /= YKHO.size * 0.43\n epBp /= YKHO.size * 0.43\n Ylbp = 320 * (-WKvO ** 2 * epBp ** 3 - 9 * LVAh ** 2 * epBp ** 3 / 80 + (WKvO ** 2 + 9 * LVAh ** 2 / 4 + epBp ** 2 - 1) ** 3)\n return Ylbp",
"def Ayfi(AU8u, tvqc):... | [
"0.7756814",
"0.754568",
"0.753897",
"0.74921477",
"0.72671825",
"0.7266328",
"0.7240834",
"0.72049034",
"0.71896017",
"0.7111889",
"0.70904464",
"0.7088795",
"0.69763935",
"0.69575274",
"0.69286275",
"0.6928431",
"0.69177157",
"0.69166726",
"0.6913548",
"0.6912638",
"0.68897... | 0.6389108 | 55 |
Is the given 3D point (assumed to be on the line that contains the segment) actually within the segment? | def sXap(YKHO, AU8u):
EBgd, HpuQ = (YKHO.p1, YKHO.p2)
return AU8u[0] >= min(EBgd[0], HpuQ[0]) and AU8u[0] <= max(EBgd[0], HpuQ[0]) and (AU8u[1] >= min(EBgd[1], HpuQ[1])) and (AU8u[1] <= max(EBgd[1], HpuQ[1])) and (AU8u[2] >= min(EBgd[2], HpuQ[2])) and (AU8u[2] <= max(EBgd[2], HpuQ[2])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pv3X(AU8u, hTWD):\n ABlN = Ayfi(AU8u, hTWD.point1)\n jxac = Ayfi(AU8u, hTWD.point2)\n utrY = Ayfi(hTWD.point1, hTWD.point2)\n if abs(ABlN + jxac - utrY) < 0.0001:\n return True\n return False",
"def SMw1(YKHO, AU8u):\n wnaF = (AU8u.y - YKHO.p1.y) * (YKHO.p2.x - YKHO.p1.x) - (AU8u.x -... | [
"0.76494664",
"0.74825233",
"0.7446686",
"0.7378656",
"0.73126197",
"0.73081744",
"0.7286967",
"0.719256",
"0.7186447",
"0.7168015",
"0.7155634",
"0.71426344",
"0.7081075",
"0.7080395",
"0.7079437",
"0.70777756",
"0.70679647",
"0.70678097",
"0.706415",
"0.70449716",
"0.704174... | 0.64340436 | 93 |
Converts list of labels into unique list and stores in self.tags. | def WgYu(YKHO, EcVT):
YKHO.tags = list(set(EcVT))
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUjD(YKHO, c9z_):\n dJ1p = [YKHO.get_or_create_tag(YRbF) for YRbF in c9z_]\n return dJ1p",
"def dJ1p(YKHO, DumB):\n if DumB is None:\n DumB = []\n dJ1p = []\n for UXqs in DumB:\n Vo9x = OhYN(label=UXqs)\n TZ9E = OhYN.get_or_create(reference=Vo9x.reference, userId=YKHO.user... | [
"0.72868437",
"0.7023946",
"0.6814245",
"0.67359746",
"0.67277277",
"0.6716328",
"0.66855544",
"0.65888906",
"0.6555314",
"0.6543471",
"0.6537386",
"0.649327",
"0.649139",
"0.6480883",
"0.64682055",
"0.6466708",
"0.64207506",
"0.6399681",
"0.63757885",
"0.63253635",
"0.631921... | 0.0 | -1 |
Initialize a ``RequiredProperty`` instance. | def FIMM(YKHO, qv1X, Gp4_=None, EHOe=None, K4ca=None, A97Q=None):
YKHO.__isrequiredmethod__ = qv1X
super(MJa5, YKHO).__init__(Gp4_, EHOe, K4ca, A97Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uA68(*qIxc, **B2fa):\n return r1Yn(qIxc, B2fa, MJa5, set(['since', 'cap']), IE1Y)",
"def ZYWA(YKHO, *qIxc):\n return yqj2.StepRepr_PropertyDefinition_Init(YKHO, *qIxc)",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\... | [
"0.66736734",
"0.64763325",
"0.61961025",
"0.61961025",
"0.61961025",
"0.61961025",
"0.6160704",
"0.6159483",
"0.5994057",
"0.5942484",
"0.5936326",
"0.5925022",
"0.58401567",
"0.5834024",
"0.58208066",
"0.5818968",
"0.5808351",
"0.57986265",
"0.5748002",
"0.5683598",
"0.5679... | 0.73221624 | 0 |
Mark a property as required. This is similar to ``.abstractproperty``, except that it takes two optional keywordonly arguments. | def uA68(*qIxc, **B2fa):
return r1Yn(qIxc, B2fa, MJa5, set(['since', 'cap']), IE1Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, qv1X, Gp4_=None, EHOe=None, K4ca=None, A97Q=None):\n YKHO.__isrequiredmethod__ = qv1X\n super(MJa5, YKHO).__init__(Gp4_, EHOe, K4ca, A97Q)",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\n YKHO._required ... | [
"0.6841003",
"0.67434984",
"0.67434984",
"0.67434984",
"0.67434984",
"0.6659445",
"0.63674295",
"0.636524",
"0.61486155",
"0.61149305",
"0.60700077",
"0.6040878",
"0.598557",
"0.5926079",
"0.5917554",
"0.5917554",
"0.5917554",
"0.58723533",
"0.5812466",
"0.5812466",
"0.581246... | 0.7105097 | 0 |
Initialize name and cuisine attributes | def FIMM(YKHO, mWFP, TdJL):
YKHO.name = mWFP
YKHO.cuisine = TdJL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP, TdJL):\n YKHO.name = mWFP\n YKHO.cuisine = TdJL",
"def FIMM(YKHO, mWFP, TdJL):\n YKHO.name = mWFP\n YKHO.cuisine_type = TdJL",
"def FIMM(YKHO, mWFP, N4Ku):\n YKHO.name = mWFP.title()\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, mWFP, N4Ku):\n YKHO.name = mWFP\n YK... | [
"0.8172508",
"0.8068315",
"0.7896586",
"0.7862561",
"0.7640909",
"0.76342183",
"0.70256245",
"0.69047415",
"0.6826318",
"0.68015224",
"0.6741162",
"0.67178017",
"0.67178017",
"0.67178017",
"0.67178017",
"0.67178017",
"0.67178017",
"0.67178017",
"0.67178017",
"0.6701124",
"0.6... | 0.8147086 | 1 |
initialize attributes to best describe a car | def FIMM(YKHO, PEX4, C3ST, lO87):
YKHO.make = PEX4
YKHO.model = C3ST
YKHO.year = lO87
YKHO.odometer_reading = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, PEX4, C3ST, lO87):\n \"\"\"Then initializing attributes specific to an electic car.\"\"\"\n super().__init__(PEX4, C3ST, lO87)\n YKHO.battery_size = 70",
"def FIMM(YKHO):\n YKHO.age_est = URbA()\n YKHO.eyes = URbA()\n YKHO.gender = URbA()\n YKHO.glasses = URbA()\n YKHO.lips... | [
"0.76894414",
"0.6815438",
"0.6789512",
"0.6703413",
"0.6627923",
"0.65838444",
"0.6561737",
"0.65463823",
"0.6540819",
"0.64973354",
"0.6489602",
"0.63318026",
"0.6328328",
"0.63127273",
"0.62626094",
"0.62626094",
"0.62603533",
"0.6251753",
"0.6237407",
"0.62213427",
"0.621... | 0.6283834 | 14 |
Capability request as a sorted tuple. This is the capability request that will be sent to the server as is. A request is acknowledged or denied for all the capabilities it contains, so the request ``(example/cap1, example/cap2)`` is not the same as two requests, one for ``example/cap1`` and the other for ``example/cap2... | def JGhG(YKHO) -> tuple[str, ...]:
return YKHO._cap_req | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L_rF(YKHO):\n G9jH.debug('')\n vgXP = 0\n a911 = ''\n while True:\n rT7D = YKHO.command_capabilities_request(vgXP)\n a911 += rT7D\n if len(rT7D) != 32:\n break\n vgXP += 32\n return a911",
"def vFzy(YKHO):\n YKHO.send_to_client('* CAPABILITY ' + ' '.jo... | [
"0.58682376",
"0.56763476",
"0.54903984",
"0.53260005",
"0.53116554",
"0.5270828",
"0.5118772",
"0.5040988",
"0.5013527",
"0.5005245",
"0.49360034",
"0.49256003",
"0.4911994",
"0.4911844",
"0.49016088",
"0.486257",
"0.48528826",
"0.4849956",
"0.4839948",
"0.48192906",
"0.4809... | 0.6800977 | 0 |
Decorate a function to require services/NickServ authentication. | def AI9C(Ol8d: Union[Callable, Optional[str]]=None, Amyp: bool=False) -> YrBT:
def RpqM(m2Zb):
@xBlr.wraps(m2Zb)
def cZjl(JyK9, iqFZ, *qIxc, **B2fa):
if not iqFZ.account:
if Ol8d and (not callable(Ol8d)):
if Amyp:
JyK9.reply(O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YyIL(eHNT):\n\n @xBlr.wraps(eHNT)\n def h3Xc(*qIxc, **B2fa):\n return oAWu(eHNT, False, *qIxc, **B2fa)\n return h3Xc",
"def Q4x4(m2Zb):\n\n def b6ry(YKHO, *qIxc, **B2fa):\n if not YKHO.apiKey:\n tO9_ = 'You must be authenticated to use this method'\n raise wSGu... | [
"0.74101794",
"0.73607326",
"0.7190671",
"0.719051",
"0.71318823",
"0.70728785",
"0.7018758",
"0.7014925",
"0.6966588",
"0.69325143",
"0.6913603",
"0.69112575",
"0.6896843",
"0.6896808",
"0.6896808",
"0.68933064",
"0.68627286",
"0.6847296",
"0.682704",
"0.6824166",
"0.6822636... | 0.0 | -1 |
Decorate a function to require at least the given channel permission. | def GsJU(ABDL: int, Ol8d: Optional[str]=None, Amyp: bool=False) -> YrBT:
def RpqM(m2Zb):
@xBlr.wraps(m2Zb)
def cZjl(JyK9, iqFZ, *qIxc, **B2fa):
if iqFZ.is_privmsg:
return
BH1n = JyK9.channels[iqFZ.sender].privileges
KzJa = BH1n.get(iqFZ.nick, 0) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vhqh(Uvf2):\n\n def mrMx(JfyU):\n\n @zaGL(JfyU)\n def SzLu(*qIxc, **B2fa):\n if not c5ow.can(Uvf2):\n eTsH(403)\n return JfyU(*qIxc, **B2fa)\n return SzLu\n return mrMx",
"def Vhqh(**B2fa):\n\n def GDMi(XeOP):\n return ydrA(XeOP, **B2f... | [
"0.7307865",
"0.7269922",
"0.7233207",
"0.7214663",
"0.71972775",
"0.7183926",
"0.71728915",
"0.713438",
"0.710482",
"0.69621927",
"0.6895042",
"0.6894809",
"0.6856789",
"0.67627585",
"0.6746964",
"0.6513313",
"0.64947087",
"0.64891815",
"0.6443046",
"0.64049214",
"0.6399278"... | 0.68547726 | 13 |
Decorate a function to require a minimum channel privilege for the bot. | def UGAI(ABDL: int, Ol8d: Optional[str]=None, Amyp: bool=False) -> YrBT:
def RpqM(m2Zb):
@xBlr.wraps(m2Zb)
def cZjl(JyK9, iqFZ, *qIxc, **B2fa):
if iqFZ.is_privmsg:
return m2Zb(JyK9, iqFZ, *qIxc, **B2fa)
if not JyK9.has_channel_privilege(iqFZ.sender, ABDL):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cCkf(ABDL: Levels, sb_b: bool=True, Ol8d: str=None):\n\n def RpqM(m2Zb):\n\n @xBlr.wraps(m2Zb)\n async def guarded(JyK9: fido, YwkQ: str, CVgL: str, *qIxc, **B2fa):\n if YwkQ not in JyK9.channels:\n return None\n print(f'Modes: {JyK9.channels[YwkQ]['modes']... | [
"0.70179296",
"0.7005545",
"0.6520443",
"0.64992124",
"0.6431058",
"0.6413115",
"0.6411873",
"0.6363849",
"0.6356832",
"0.6320984",
"0.62320805",
"0.62249404",
"0.6201324",
"0.6194192",
"0.61750627",
"0.6169324",
"0.6150991",
"0.6147066",
"0.61247444",
"0.6120253",
"0.611467"... | 0.7036646 | 0 |
Returns the channel data (in mV) with its time vector. | def yLtf(YKHO, Fpx_=7):
Vb5F = 1 / YKHO.sample_period * 1000000.0
a1PO = oyIN.arange(YKHO.channels[Fpx_ - 1].N) / Vb5F
return (a1PO, YKHO.channels[Fpx_ - 1].data * 1000.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w3Be(YKHO):\n U5bT = []\n for Npgh in YKHO.channels:\n if Npgh.N:\n U5bT.append(Npgh.data)\n Vb5F = YKHO.sample_period / 1000000.0\n a1PO = oyIN.arange(Npgh.N) * Vb5F\n XFK8 = [YKHO.time + qcWV.timedelta(seconds=KCHu) for KCHu in a1PO]\n return (XFK8, oyIN.vstack(U5bT).T)",
... | [
"0.7117928",
"0.6010943",
"0.6010183",
"0.5981566",
"0.5949849",
"0.5944471",
"0.59141284",
"0.59093606",
"0.5899745",
"0.58477384",
"0.5764608",
"0.5758897",
"0.5757367",
"0.57512605",
"0.5737903",
"0.5737001",
"0.57212156",
"0.57049924",
"0.5666273",
"0.5659489",
"0.5619511... | 0.5770147 | 10 |
Returns the data in all channels as a NumPy datablock with a time vector | def w3Be(YKHO):
U5bT = []
for Npgh in YKHO.channels:
if Npgh.N:
U5bT.append(Npgh.data)
Vb5F = YKHO.sample_period / 1000000.0
a1PO = oyIN.arange(Npgh.N) * Vb5F
XFK8 = [YKHO.time + qcWV.timedelta(seconds=KCHu) for KCHu in a1PO]
return (XFK8, oyIN.vstack(U5bT).T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R0lz(qNT4):\n h2mM = GChh.loadmat(qNT4)\n hJTo = h2mM['conc']\n wvau = h2mM['rel']\n hJTo = oyIN.transpose(hJTo, (2, 1, 0))\n wvau = oyIN.transpose(wvau, (2, 1, 0))\n hJTo = oyIN.reshape(hJTo, (len(hJTo) * 5, 8, 2500))\n wvau = oyIN.reshape(wvau, (len(wvau) * 5, 8, 2500))\n DZ7t = oyIN.... | [
"0.6149772",
"0.6088482",
"0.6029056",
"0.5958505",
"0.588499",
"0.5880457",
"0.5876508",
"0.5864914",
"0.5743526",
"0.57409084",
"0.5727096",
"0.57223165",
"0.5716289",
"0.56775737",
"0.5647233",
"0.5627651",
"0.5616595",
"0.5616595",
"0.5616595",
"0.5614705",
"0.5607717",
... | 0.7554513 | 0 |
Takes the current board and a possible move specified by the column. Returns the appropiate row where the piece will be located. If it's not found it returns 1. | def uVni(YKHO, BZN_):
if BZN_ < 0 or BZN_ >= YKHO.width or YKHO.board[0][BZN_] != 0:
return -1
for YRbF in range(len(YKHO.board)):
if YKHO.board[YRbF][BZN_] != 0:
return YRbF - 1
return len(YKHO.board) - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UTMW(iBIi, iVRZ):\n for rdlD in range(P5Bq):\n if iBIi.board[rdlD][iVRZ] != ARNi:\n return rdlD",
"def CbLN(iBIi, iVRZ):\n for rdlD in range(RMvA):\n if iBIi[rdlD][iVRZ] == 0:\n return rdlD",
"def rari(iBIi, BZN_):\n usx6, ZLJ_ = (len(iBIi), len(iBIi[0]))\n f... | [
"0.7791408",
"0.75647616",
"0.74755776",
"0.7351215",
"0.7318132",
"0.71522397",
"0.71483785",
"0.71210086",
"0.7093053",
"0.70809025",
"0.70299333",
"0.70194626",
"0.69921786",
"0.6957416",
"0.6932553",
"0.6915789",
"0.690938",
"0.690938",
"0.690938",
"0.6903452",
"0.6898298... | 0.70527655 | 10 |
Take a row, col position on the board and returns whether that row value is the bottommost empty position in the column. | def BSop(YKHO, rdlD, fvDH):
return rdlD >= 0 and YKHO.try_move(fvDH) == rdlD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qiBc(YKHO, fvDH, rdlD):\n try:\n return YKHO.grid[fvDH - 1][rdlD - 1] == YKHO.empty\n except IndexError:\n pass\n return False",
"def FBfn(iBIi, rdlD, fvDH):\n return iBIi[rdlD][fvDH] == 0",
"def AJk_(iBIi):\n for YRbF in range(3):\n for r845 in range(3):\n if... | [
"0.76032555",
"0.7494044",
"0.748751",
"0.7360146",
"0.7336052",
"0.7296764",
"0.72709644",
"0.72605747",
"0.71776205",
"0.71599144",
"0.71380174",
"0.71231514",
"0.7115083",
"0.7067074",
"0.70283586",
"0.7027175",
"0.699475",
"0.6978151",
"0.69473344",
"0.69453734",
"0.69042... | 0.0 | -1 |
Takes the board as input and determines if there is a winner. If the game has a winner, it returns the player number (Player One = 1, Player Two = 2). If the game is still ongoing, it returns zero. | def bHVe(YKHO):
ykgg = YKHO._check_rows()
if ykgg:
return ykgg
AyF2 = YKHO._check_columns()
if AyF2:
return AyF2
R8gd = YKHO._check_diagonals()
if R8gd:
return R8gd
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f7Dd(iBIi):\n a2ca = bHVe(iBIi)\n if a2ca == EcVT:\n return 1\n elif a2ca == LTX_:\n return -1\n return 0",
"def f7Dd(iBIi):\n soCS = bHVe(iBIi)\n if soCS == EcVT:\n return 1\n elif soCS == LTX_:\n return -1\n else:\n return 0",
"def f7Dd(iBIi):\n ... | [
"0.81248796",
"0.8078274",
"0.8021877",
"0.79771864",
"0.79507524",
"0.7948685",
"0.7932516",
"0.79117674",
"0.79019225",
"0.78818923",
"0.78805244",
"0.7826179",
"0.77937186",
"0.77829486",
"0.7773797",
"0.77729696",
"0.775896",
"0.7758833",
"0.7751452",
"0.7748296",
"0.7745... | 0.0 | -1 |
Adds a node to the graph. | def g5gD(YKHO, Q6kx):
YKHO.nodes.add(Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.graph[Q6kx]",
"def g5gD(YKHO, Q6kx):\n YKHO._nodes.add(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO._check_nodes([Q6kx])\n jHsn.DiGraph.add_node.im_func(YKHO, Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)"... | [
"0.8982756",
"0.8396676",
"0.83696526",
"0.8361396",
"0.8361396",
"0.83389515",
"0.8279939",
"0.8257232",
"0.8219817",
"0.8179781",
"0.8175587",
"0.81434554",
"0.8087202",
"0.8066252",
"0.8065444",
"0.80501956",
"0.80387354",
"0.7997806",
"0.7997806",
"0.7878475",
"0.78488857... | 0.8455929 | 1 |
Adds a connection between 2 existing nodes. | def YXHT(YKHO, i4Va, rUTj):
i4Va.adjacent.add(rUTj)
rUTj.adjacent.add(i4Va) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXHT(MxXY, cWFu):\n MxXY.neighbors.append(cWFu)\n cWFu.neighbors.append(MxXY)",
"def Ykhp(YKHO, n7rZ: Label, aS5z: Label):\n pass",
"def IKcG(YKHO, siZ_):\n for i4Va, rUTj in siZ_:\n YKHO.add(i4Va, rUTj)",
"def IKcG(YKHO, siZ_):\n for i4Va, rUTj in siZ_:\n YKHO.add(i4Va, rUTj... | [
"0.8303168",
"0.7680366",
"0.74675924",
"0.74538934",
"0.74538934",
"0.7392563",
"0.7361036",
"0.735622",
"0.7266962",
"0.72558135",
"0.72149277",
"0.72076577",
"0.7115336",
"0.70739853",
"0.69504803",
"0.6933059",
"0.6912823",
"0.6900047",
"0.6898391",
"0.68949044",
"0.68942... | 0.8916843 | 0 |
Computes Area Under the Receiver Operating Characteristic Curve (ROC AUC) for outofdistribution (OOD) data. The OOD data is assumed to be the positive class in a binary classification setting. | def pcIC(zflt, zEma):
with ht2j.no_grad():
if len(zflt) != len(zEma):
qmLP.warn('Unbalanced in- and out-of-distribution Problem. ROCAUC might be unrepresentative.')
cfsF = ht2j.zeros(len(zflt))
W7pi = ht2j.ones(len(zEma))
return Qq_d(ht2j.cat((cfsF, W7pi)), ht2j.cat((zflt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZXn(EcVT, LVAh, C3ST):\n o4Jx = C3ST.predict(EcVT).reshape(LVAh.shape)\n Ylzc, llhF = v5W1(o4Jx, x6A0)\n jzdc = a3PS(Ylzc, llhF)\n return jzdc",
"def K0dl(Pcih: np.ndarray, bTnY: np.ndarray) -> float:\n hUlt = oyIN.concatenate([Pcih, bTnY])\n Crrw = oyIN.concatenate([oyIN.ones(len(Pcih)), ... | [
"0.75247675",
"0.7132587",
"0.7070117",
"0.7070117",
"0.7062971",
"0.7036689",
"0.70239836",
"0.695033",
"0.69272745",
"0.68841904",
"0.68486184",
"0.684458",
"0.68021",
"0.67878723",
"0.6785189",
"0.67837703",
"0.6756819",
"0.67163485",
"0.6691025",
"0.6676897",
"0.6674988",... | 0.6984387 | 7 |
Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a2blc5a3. If the "compressed" string would not become smaller than the original string, your method should return the original string. | def wds7(mDk5):
wW14 = []
for Z9rn in mDk5:
if Z9rn not in wW14:
UHFx = 1
wW14.append(Z9rn)
wW14.append(UHFx)
else:
V_zp = wW14.index(Z9rn) + 1
wW14[V_zp] += 1
KP6z = [str(ZfUD) for ZfUD in wW14]
return ''.join(KP6z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EC_r(KCHu):\n Mkmy = ''\n vC9B = len(KCHu)\n if vC9B == 0:\n return ''\n if vC9B == 1:\n return KCHu + '1'\n XVAW = KCHu[0]\n r9Hf = 1\n YRbF = 1\n while YRbF < vC9B:\n if KCHu[YRbF] == KCHu[YRbF - 1]:\n r9Hf += 1\n else:\n Mkmy = Mkmy +... | [
"0.82168376",
"0.82134926",
"0.8192403",
"0.80569875",
"0.80401397",
"0.801194",
"0.79478335",
"0.7859179",
"0.78531367",
"0.7839619",
"0.7794413",
"0.7735141",
"0.767127",
"0.76275796",
"0.7561873",
"0.7534653",
"0.7448893",
"0.74179435",
"0.74175495",
"0.7376169",
"0.735823... | 0.721677 | 22 |
return the first index of item in array or None if item is not found. Time complexity of n | def TrX4(qw7D, ZfUD):
return Ngua(qw7D, ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ajkz(qw7D, TgwQ):\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] == TgwQ:\n return YRbF\n return None",
"def KLuI(qw7D: [str], ZfUD: str):\n for d6pt, BWXx in enumerate(qw7D):\n if ZfUD == BWXx:\n return d6pt\n return None",
"def VkCx(qw7D: np.ndarray, ZfUD:... | [
"0.78437936",
"0.77350926",
"0.7681318",
"0.7516881",
"0.7473966",
"0.7434609",
"0.7272877",
"0.720339",
"0.7121856",
"0.71212333",
"0.7077291",
"0.7067505",
"0.70432985",
"0.7041191",
"0.69823366",
"0.6981552",
"0.6960539",
"0.6960134",
"0.6903043",
"0.68971854",
"0.687743",... | 0.6550881 | 43 |
return the index of item in sorted array or None if item is not found. Time complexity of log(n) | def jUbz(qw7D, ZfUD):
return aHV3(qw7D, ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ajkz(qw7D, TgwQ):\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] == TgwQ:\n return YRbF\n return None",
"def TrX4(ezWE, H5ew):\n for YRbF in range(len(ezWE)):\n if ezWE[YRbF] == H5ew:\n return YRbF\n return -1",
"def qrgr(LihS, ezWE):\n for YRbF in Ni9Y(o... | [
"0.76826274",
"0.7557154",
"0.7462131",
"0.7396979",
"0.73582065",
"0.7306163",
"0.7274717",
"0.7228481",
"0.72223",
"0.7213",
"0.71879244",
"0.7185119",
"0.71675056",
"0.7077145",
"0.7041765",
"0.7033588",
"0.70308816",
"0.6994622",
"0.6992704",
"0.6990057",
"0.69876295",
... | 0.64563257 | 86 |
Wraps hidden states in new Tensors, to detach them from their history. This prevents Pytorch from trying to backpropagate into previous input sequences when we use the final hidden states from one minibatch as the initial hidden states for the next minibatch. Using the final hidden states in this way makes sense when t... | def IOWm(MKlR):
if isinstance(MKlR, iQnE):
return MKlR.detach_()
else:
return tuple((IOWm(Ty9i) for Ty9i in MKlR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YmeV(YKHO):\n YKHO.hidden = (ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size), ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))",
"def N_P4(YKHO, Ep8u):\n QTBn = [ht2j.zeros(1, Ep8u, YKHO.hidden_dim).to(YKHO.device), ht2j.zeros(1, Ep8u, YKHO.hidden_dim).to(YKHO.device)]\n return QTBn",
"def JZ0k(... | [
"0.6772418",
"0.64725584",
"0.64646477",
"0.64500076",
"0.6332647",
"0.6257936",
"0.61925405",
"0.6188052",
"0.6141846",
"0.6132009",
"0.6125131",
"0.61060196",
"0.6093122",
"0.60340893",
"0.6030599",
"0.60252786",
"0.5999164",
"0.59983987",
"0.5993542",
"0.5963635",
"0.59489... | 0.0 | -1 |
get_models Loads and returns models based on path and name. | def ArHU(pmON, mWFP, jzdc, Fg_i, PJWX=0):
FYrf = {}
for imYr in range(jzdc, Fg_i + 1):
if PJWX == 1:
print('Loading model', pmON + mWFP + '_' + '{}.h5'.format(imYr))
FYrf[imYr] = bdPE.models.load_model(pmON + mWFP + '_' + '{}.h5'.format(imYr))
return FYrf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ArHU():\n global classifier\n AmnI = uyMl('classifier.model')\n global models\n for xqoZ in list(FYrf.keys()):\n with open('models/' + xqoZ.replace('/', '-') + '_model.json', 'r') as wM3v:\n FYrf[xqoZ] = oPz_(wM3v.read())\n FYrf[xqoZ].load_weights('models/' + xqoZ.replace('... | [
"0.6994589",
"0.6922953",
"0.6805723",
"0.67819244",
"0.67659175",
"0.6758089",
"0.6746435",
"0.6719412",
"0.66582626",
"0.65268207",
"0.64679307",
"0.6449333",
"0.63526475",
"0.63416535",
"0.6340773",
"0.6334846",
"0.6331052",
"0.63227195",
"0.6305642",
"0.63042414",
"0.6298... | 0.68246514 | 2 |
return a comma + space (', ') separated string of jeep models (original order) | def Z1hz(roBb=roBb):
wdIo = roBb['Jeep']
g8rx = ', '
g8rx.join(wdIo)
print(g8rx.join(wdIo))
return g8rx.join(wdIo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return ', '.join([str(ZfUD) for ZfUD in YKHO.to_list()])",
"def zAg0(YKHO):\n return ', '.join(YKHO._items)",
"def zAg0(YKHO):\n return ', '.join([str(geyT) for geyT in YKHO.elements])",
"def WzgJ(YKHO):\n return YKHO.get_verbs_string() + ', ' + YKHO.get_non_verbs_string()",
"... | [
"0.65304255",
"0.65097225",
"0.6379816",
"0.62919056",
"0.619995",
"0.6194102",
"0.616969",
"0.6151695",
"0.614732",
"0.61119056",
"0.6050867",
"0.6039225",
"0.60322535",
"0.6030797",
"0.6018719",
"0.6000601",
"0.599809",
"0.59929657",
"0.59921616",
"0.5983952",
"0.5965514",
... | 0.5585799 | 77 |
Function to validate a user jwt id token along with any audience(the client id) given. | def fcUH(eXVH, Xnx6, eOtH, PhGN=None):
WBPg = DvJO.get_unverified_header(eOtH)
Y9Xw = WBPg['kid']
z7Wo = wiLO(eXVH, Xnx6)
AERx = X18U(eXVH, Xnx6)
H5ew = AERx.get(Y9Xw)
PECO = {'issuer': z7Wo}
if PhGN is not None:
PECO['audience'] = PhGN
pUj8 = DvJO.decode(eOtH, H5ew, **PECO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qutR(Ubla, LCEN):\n from . import secret_key, api_host\n if secret_key is None:\n raise ValueError('Pinn `secret_key` has not been set')\n try:\n RZVq = DvJO.decode(Ubla, key=secret_key)\n except Exception as e:\n raise unxk(str(tTpl))\n if 'sub' not in RZVq:\n raise ... | [
"0.686122",
"0.68125695",
"0.67746806",
"0.67607397",
"0.67214245",
"0.67214245",
"0.6716004",
"0.6632265",
"0.66242135",
"0.66101706",
"0.6576649",
"0.6546427",
"0.64777994",
"0.642676",
"0.6426087",
"0.63386726",
"0.6335856",
"0.63005394",
"0.62928456",
"0.6283246",
"0.6269... | 0.0 | -1 |
A flask decorator to verify the user jwt id token stored in the cookies. It takes aws cognito pool region and aws cognito pool id passed as arguments to the decorator. | def EmXH(R28V, avc1):
def mrMx(a1PO):
@zaGL(a1PO)
def SzLu(*qIxc, **B2fa):
if R28V is None or avc1 is None:
return pz3A({'message': 'required credentials not passed'})
Ubla = QePW.cookies.get('token_cookie')
print('Token is here in middleware: ',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rCGq(JfyU):\n\n @zaGL(JfyU)\n def XIpm(*qIxc, **B2fa):\n eOtH = None\n if 'access-token' in QePW.headers:\n eOtH = QePW.headers['access-token']\n if not eOtH:\n return (pz3A({'message': 'Token is missing'}), 403)\n try:\n nPrm = DvJO.decode(eOt... | [
"0.672712",
"0.6360882",
"0.62221164",
"0.62117445",
"0.6199204",
"0.6190612",
"0.6144844",
"0.6089212",
"0.599752",
"0.5978868",
"0.59316844",
"0.59274775",
"0.5926483",
"0.5903187",
"0.5898035",
"0.5858882",
"0.58580244",
"0.58109075",
"0.5787684",
"0.5784022",
"0.57457834"... | 0.8162143 | 0 |
Test a find_element_by_FOO method of both the webdriver and the WebElement class. The former will return a WebElement which should have a method of the same name, which should also return a WebElement. | def fZD0(E_qD, FYKK):
U6D_ = getattr(E_qD, FYKK)('foo')
assert isinstance(U6D_, V3r3)
assert U6D_.id == VAa6.TEST_FIND_ELEMENT
aUGN = getattr(U6D_, FYKK)('foo')
assert isinstance(aUGN, V3r3)
assert aUGN.id == VAa6.TEST_FIND_ELEMENT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GHvG(*qIxc, **B2fa):\n return Lz6j(*qIxc, **B2fa)",
"def pNqk(E_qD, FYKK):\n UqER = getattr(E_qD, FYKK)('foo')\n assert isinstance(UqER, list)\n assert map(lambda WKvO: WKvO.id, UqER) == VAa6.TEST_FIND_ELEMENTS\n for U6D_ in UqER:\n assert isinstance(U6D_, V3r3)\n afYC = getattr(... | [
"0.6941339",
"0.67968005",
"0.64800805",
"0.6260259",
"0.61789733",
"0.5943499",
"0.5880035",
"0.5862492",
"0.58572173",
"0.5835156",
"0.5798078",
"0.57090497",
"0.56546825",
"0.5607254",
"0.55702055",
"0.5543087",
"0.5534307",
"0.550223",
"0.54985183",
"0.54587835",
"0.54504... | 0.7284144 | 0 |
Returns timedate.delta of last query | def O9_q(YKHO):
return qcWV.now() - YKHO.last_call | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f8Xz(YKHO):\n return YKHO.qlsm_data.datablocks[-1].last_timestamp_datetime - YKHO.qlsm_data.datablocks[0].first_timestamp_datetime",
"def tRWD(YKHO):\n return YKHO.time - qcWV.now().time()",
"def _eoL(YKHO):\n Dw0H = qcWV.datetime.now()\n JRmW = Dw0H - YKHO.previous\n YKHO.previous = Dw0H\n ... | [
"0.6979733",
"0.6760735",
"0.67374885",
"0.6699335",
"0.66182965",
"0.6525428",
"0.6525428",
"0.65178686",
"0.6465084",
"0.6440855",
"0.64025915",
"0.63968027",
"0.6368133",
"0.6368133",
"0.6367028",
"0.6347218",
"0.63053614",
"0.6271488",
"0.62674403",
"0.6223433",
"0.621250... | 0.60097843 | 28 |
Test that explicit use of binary comparison operator does not result in an error. | def EyiM():
k9di = ['>', '<', '>=', '<=', '==', '!=']
for khtY in k9di:
WNtM = 'C = A {0} B'.format(khtY)
J_Es = jZ4I.parse(WNtM)
n5sN = list(TaYO(J_Es).run())
aEqx = []
assert n5sN == aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qk7K(jzdc: Any, Fg_i: Any, khtY: Operator=uS0y.Equal) -> bool:\n if khtY == uS0y.Equal:\n return jzdc == Fg_i\n if khtY == uS0y.NotEqual:\n return jzdc != Fg_i\n if khtY == uS0y.LessThan:\n return jzdc < Fg_i\n if khtY == uS0y.LessThanOrEqual:\n return jzdc <= Fg_i\n ... | [
"0.7046098",
"0.69886684",
"0.67705286",
"0.6680979",
"0.66783243",
"0.6662934",
"0.66355103",
"0.6596159",
"0.6553297",
"0.6512773",
"0.64840525",
"0.6469096",
"0.6431203",
"0.6425318",
"0.64127976",
"0.63852215",
"0.6348094",
"0.6281981",
"0.6280323",
"0.6268463",
"0.625984... | 0.0 | -1 |
Create a TikTokApi object. | def FIMM(YKHO, xiS5: int=G9jH.WARN, E70h: str=None):
YKHO.sessions = []
if E70h is None:
E70h = __name__
YKHO.__create_logger(E70h, xiS5)
mv1M.parent = YKHO
YM9Z.parent = YKHO
eRQZ.parent = YKHO
ZIzY.parent = YKHO
jY1u.parent = YKHO
f9Go.parent = YKHO
unF8.parent = YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(GPtr, nNXP):\n return RMSS.get(nNXP)(GPtr)",
"def n4E9(YKHO, zmtW: str):\n with open(zmtW, 'r') as ytgA:\n sjXb = qQXR.load(ytgA)\n Jpbe = uXS6.OAuthHandler(sjXb['consumer_key'], sjXb['consumer_secret'])\n Jpbe.set_access_token(sjXb['access_token_key'], sjXb['access_token_secret'])\n ... | [
"0.6412283",
"0.6338259",
"0.63109785",
"0.61933297",
"0.6123871",
"0.61024374",
"0.6093567",
"0.6007467",
"0.5984331",
"0.5928753",
"0.5928753",
"0.58856535",
"0.58668464",
"0.5815619",
"0.5798783",
"0.5791822",
"0.5778312",
"0.57718223",
"0.5761276",
"0.57550114",
"0.574299... | 0.0 | -1 |
Validates whether resource is still valid to be used. | def BUIj(YKHO, Eorv):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzCw(YKHO, Eorv):\n if YKHO._validate is not None:\n YKHO._validate(Eorv)",
"def xzCw(YKHO, Eorv):\n if YKHO._validate is not None:\n YKHO._validate(Eorv)",
"def XBvD(Eorv):\n return False",
"def SYfw(YKHO):\n if YKHO.treatment and YKHO.treatment.resource_required:\n if n... | [
"0.7353543",
"0.7353543",
"0.71621597",
"0.6840671",
"0.68049955",
"0.6686385",
"0.6686385",
"0.66295964",
"0.65700233",
"0.6561589",
"0.65435034",
"0.65435034",
"0.6516143",
"0.65151656",
"0.6481758",
"0.6459032",
"0.6459032",
"0.6441277",
"0.64312404",
"0.64312404",
"0.6431... | 0.77534896 | 0 |
Convert a filename relative to the directory containing the current file to an absolute path. The filename parameter can be either a string/unicode or a list to be passed to os.path.join. If the filename has no suffix the suffix of the current file will be appended. | def _cEU(YKHO, Ux0P):
if not isinstance(Ux0P, str):
Ux0P = Hy7s.path.join(*Ux0P)
if hasattr(YKHO, '_filename'):
if '.' not in Hy7s.path.basename(Ux0P):
Ux0P += YKHO._filename[YKHO._filename.rindex('.'):]
return Hy7s.path.join(Hy7s.path.dirname(YKHO._filename), Ux0P)
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S1_q(Ux0P):\n if not Hy7s.path.isabs(Ux0P):\n Ux0P = xqze + Ux0P\n return Ux0P",
"def Qj3A(Ux0P: Text) -> I2jr:\n zkiH = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(zkiH, '..', Ux0P)",
"def R_Zr(Ux0P):\n lBW9 = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n return Hy7s.path.join(... | [
"0.7393453",
"0.7343072",
"0.7251635",
"0.70877916",
"0.69054455",
"0.6852031",
"0.6813616",
"0.6660789",
"0.66518503",
"0.664861",
"0.66179943",
"0.6583897",
"0.657501",
"0.6555177",
"0.65072995",
"0.6489249",
"0.6478642",
"0.6478642",
"0.6427217",
"0.6416961",
"0.6414884",
... | 0.73560244 | 1 |
Returns the frame closest in time to ts, which is a float timestamp. | def pXN1(YKHO, i8WE):
if YKHO._frame_times is None:
YKHO._frame_times = [eHNT.timestamp for eHNT in YKHO]
YRbF, Csk6 = (0, float('Inf'))
while True:
Ik_G = Csk6
Csk6 = (i8WE - YKHO._frame_times[YRbF]) * YKHO.fps
if abs(Ik_G) <= abs(Csk6):
break
OZYf = YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8w6(YKHO, i8WE):\n return Swre(round(jQ4c.Fraction(i8WE, jQ4c.SECOND) * YKHO.fr))",
"def pXN1(YKHO, i8WE):\n return YKHO[YKHO.timestamp_index(i8WE)]",
"def tqRt(YKHO, f4IJ):\n return Swre(round(f4IJ / YKHO.fr * jQ4c.SECOND))",
"def rx9d(f4IJ, bW5R):\n rKEQ = f4IJ / bW5R\n return KLOR(rKEQ... | [
"0.6838553",
"0.6776432",
"0.66500247",
"0.641749",
"0.6275576",
"0.6246231",
"0.5904996",
"0.5820187",
"0.5785339",
"0.578524",
"0.5685601",
"0.5667977",
"0.55903757",
"0.5586059",
"0.55040085",
"0.5486588",
"0.54806656",
"0.5448504",
"0.54007554",
"0.5378252",
"0.5376685",
... | 0.7156377 | 0 |
The timestamp in seconds of the frame as a float. | def E3oo(YKHO):
return YKHO.video.timestamp(YKHO.index) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tqRt(YKHO, f4IJ):\n return Swre(round(f4IJ / YKHO.fr * jQ4c.SECOND))",
"def SZJh(YKHO):\n return float(YKHO.get_sogsseconds())",
"def E3oo(YKHO) -> float:\n return YKHO._timestamp",
"def eD63() -> float:\n pass",
"def l3iR(YKHO):\n return YKHO.timestamp_cycles() / 200000000.0",
"def fl... | [
"0.79718524",
"0.7563881",
"0.74450177",
"0.74174744",
"0.7401022",
"0.72364396",
"0.7224749",
"0.7123015",
"0.7092704",
"0.7069069",
"0.70573395",
"0.7032172",
"0.702828",
"0.70063144",
"0.6963183",
"0.69199216",
"0.6918712",
"0.6844565",
"0.68377656",
"0.6818021",
"0.678656... | 0.66003484 | 38 |