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 |
|---|---|---|---|---|---|---|
Given `image` in HSV format, get the contour center. This is the WRIST position of the robot w.r.t. camera pixels, as the endeffector is hard to work with. AND return the center of the contour! | def FFeV(YKHO, LNo8, LFlW):
LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_HSV2BGR)
RzIg = LNo8.copy()
if LFlW:
CAzz, Jd40, Rs4w, TKQ0 = YKHO.d.get_left_bounds()
else:
CAzz, Jd40, Rs4w, TKQ0 = YKHO.d.get_right_bounds()
EbWA, bGrB = XC5k.findContours(XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY), X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cX4W(LNo8, ZHfW):\n Xn71 = XC5k.GaussianBlur(LNo8, (7, 7), 0) * ZHfW\n Xn71 = Xn71.astype(oyIN.uint8)\n Cd_s = XC5k.cvtColor(Xn71, XC5k.COLOR_BGR2HSV)\n dU3c = Cd_s[..., 1]\n dU3c[(Cd_s[..., 0] > 15) & (Cd_s[..., 0] < 165)] = 0\n bGrB, Hyro = XC5k.threshold(dU3c, 92, 255, XC5k.THRESH_BINARY)\... | [
"0.6975615",
"0.6926389",
"0.6680467",
"0.65383",
"0.6484175",
"0.6370823",
"0.6312283",
"0.62891227",
"0.6288092",
"0.62582064",
"0.6241574",
"0.6186036",
"0.6154699",
"0.61238",
"0.6109655",
"0.6058463",
"0.6045304",
"0.6036556",
"0.60274714",
"0.59772116",
"0.5968621",
"... | 0.60865206 | 15 |
The application ID of the preauthorized application | def dXws(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'authorized_app_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B7c0(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def dXws(YKHO) -> qe4Y.Output[s... | [
"0.85244703",
"0.8512686",
"0.8512686",
"0.8512686",
"0.8461017",
"0.84239113",
"0.8412185",
"0.8400411",
"0.8391005",
"0.83902407",
"0.8261868",
"0.8203099",
"0.8191156",
"0.8190602",
"0.8172649",
"0.8167785",
"0.8164713",
"0.8106886",
"0.8106886",
"0.8079985",
"0.8079985",
... | 0.8403273 | 7 |
The application ID of the preauthorized application | def dXws(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'authorized_app_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B7c0(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def dXws(YKHO) -> qe4Y.Output[s... | [
"0.85244703",
"0.8512686",
"0.8512686",
"0.8512686",
"0.8461017",
"0.84239113",
"0.8412185",
"0.8403273",
"0.8400411",
"0.83902407",
"0.8261868",
"0.8203099",
"0.8191156",
"0.8190602",
"0.8172649",
"0.8167785",
"0.8164713",
"0.8106886",
"0.8106886",
"0.8079985",
"0.8079985",
... | 0.8391005 | 9 |
Get an existing ApplicationPreAuthorized resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, LNwz: Optional[pulumi.Input[str]]=None, dXws: Optional[pulumi.Input[str]]=None, aq6T: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None) -> 'ApplicationPreAuthorized':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.Resource... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'AFDOrigin':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = dict()\n r6DL['azure_origin'] = None\n r6DL['deployment_status'] = None\n r6DL['enabled_state'] = None\n r6DL['ho... | [
"0.5467279",
"0.50738853",
"0.504682",
"0.49777374",
"0.49373657",
"0.49289683",
"0.48985785",
"0.48827475",
"0.4774169",
"0.47589377",
"0.4743558",
"0.46974862",
"0.4659368",
"0.46058547",
"0.45969883",
"0.45803857",
"0.45745808",
"0.4569588",
"0.4565987",
"0.4551641",
"0.45... | 0.695513 | 0 |
The application ID of the preauthorized application | def dXws(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'authorized_app_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B7c0(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def B7c0(YKHO):\n return YKH... | [
"0.85244703",
"0.8512686",
"0.8512686",
"0.8512686",
"0.84239113",
"0.8412185",
"0.8403273",
"0.8400411",
"0.8391005",
"0.83902407",
"0.8261868",
"0.8203099",
"0.8191156",
"0.8190602",
"0.8172649",
"0.8167785",
"0.8164713",
"0.8106886",
"0.8106886",
"0.8079985",
"0.8079985",
... | 0.8461017 | 4 |
A numpy ndarray of shape ``(n, n)``, whose entries are Polynomials. For a numpy ndarray ``x``, ``hess[i,j](x)`` is the (i,j)th partial derivative of this Polynomial, evaluated at ``x``. This array is constructed only when necessary, and is cached upon construction. | def ZqWh(YKHO):
ALSV._cache_hess(YKHO)
return YKHO._hess | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BwJN(YKHO, WKvO):\n if YKHO._hess is None:\n bGrB = YKHO.hess\n C7Ls = oyIN.zeros(shape=(YKHO._n, YKHO._n))\n for YRbF in range(YKHO._n):\n for r845 in range(YRbF + 1):\n wEf2 = YKHO._hess[YRbF, r845](WKvO)\n C7Ls[YRbF, r845] = wEf2\n C7Ls[r845, YRbF] = w... | [
"0.70470345",
"0.6898582",
"0.66009706",
"0.6596706",
"0.65383244",
"0.6531212",
"0.63855505",
"0.63855505",
"0.6238182",
"0.6132934",
"0.608609",
"0.605335",
"0.6048759",
"0.6021905",
"0.6016141",
"0.59820294",
"0.5976792",
"0.59357446",
"0.5924444",
"0.5830649",
"0.5823621"... | 0.6636133 | 2 |
Return the Hessian of this Polynomial (as an ndarray) at the point ``x``. | def BwJN(YKHO, WKvO):
if YKHO._hess is None:
bGrB = YKHO.hess
C7Ls = oyIN.zeros(shape=(YKHO._n, YKHO._n))
for YRbF in range(YKHO._n):
for r845 in range(YRbF + 1):
wEf2 = YKHO._hess[YRbF, r845](WKvO)
C7Ls[YRbF, r845] = wEf2
C7Ls[r845, YRbF] = wEf2
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_VS(YKHO, WKvO):\n raise NotImplementedError('hessian has not been defined')",
"def knz9(YKHO, WKvO: np.ndarray) -> oyIN.ndarray:\n SGf8 = YKHO._find_epsilon(WKvO)\n Hjb4 = oyIN.eye(N=len(WKvO)) * SGf8\n ZqWh = oyIN.array([[YKHO._hess_approx_num(WKvO, HbDw, EVo6) for HbDw in Hjb4] for EVo6 in Hj... | [
"0.80721414",
"0.77291346",
"0.76531637",
"0.7468327",
"0.7468327",
"0.7271624",
"0.7263303",
"0.7204492",
"0.698441",
"0.6939193",
"0.6907935",
"0.6886638",
"0.6876193",
"0.68711746",
"0.68347687",
"0.6602641",
"0.65818435",
"0.6560066",
"0.6547131",
"0.6546753",
"0.6492248"... | 0.68396074 | 14 |
Validate that user exists & password is correct. Return user if valid; else return False. | def NLCy(Emd4, NtEF, zN5h):
P6bq = mv1M.query.filter_by(username=NtEF).first()
if P6bq and B8ni.check_password_hash(P6bq.password, zN5h):
return P6bq
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gvth(CBIr, jTXt):\n return CBIr and CBIr.check_password(jTXt)",
"def K9qj():\n Mmvw = QePW.form.get('email')\n TgSW = QePW.form.get('password')\n CBIr = mv1M.query.filter(mv1M.email == Mmvw).first()\n if CBIr and CBIr.password == TgSW:\n cuiw['user_id'] = CBIr.user_id\n Dwep(\"Yo... | [
"0.8019934",
"0.77593815",
"0.7756716",
"0.76966774",
"0.76576155",
"0.76134175",
"0.7600948",
"0.7577195",
"0.75483084",
"0.7548148",
"0.7546199",
"0.7539023",
"0.74157786",
"0.7348316",
"0.7345078",
"0.7312941",
"0.7310371",
"0.7303914",
"0.7269112",
"0.7269112",
"0.7267172... | 0.72238004 | 22 |
Return the reversed complement of the given DNA sequence This function is written by Theo GAUVRIT. | def fBA6(i0XO):
lAjU = []
i0XO = i0XO.upper()
PMCO = {'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A'}
for NqIG in i0XO[::-1]:
lAjU.append(PMCO[NqIG])
return ''.join(lAjU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DOVV(Q6uT):\n return nxxN(gxEw(Q6uT))",
"def L_UU(Q6uT):\n return RNcM(gxEw(Q6uT))",
"def zF1v(ytkQ):\n return ''.join([Q6bk(d3dn) for d3dn in reversed(ytkQ)])",
"def zF1v(ytkQ):\n s1Wp = ''\n for YRbF in ytkQ:\n s1Wp += Q6bk(YRbF)\n return s1Wp[::-1]",
"def zF1v(ytkQ):\n re... | [
"0.87251055",
"0.85243565",
"0.84361595",
"0.84196365",
"0.8317844",
"0.83024794",
"0.83024794",
"0.82963806",
"0.82940596",
"0.829304",
"0.8264849",
"0.82234424",
"0.8174856",
"0.8129687",
"0.80942464",
"0.80876315",
"0.806568",
"0.806568",
"0.8050824",
"0.80395854",
"0.8031... | 0.8411948 | 4 |
Remove the element from the head of the data structure, or None if there is no data in the data structure | def kSdD(YKHO):
lHJN = YKHO.head
if lHJN.next is None:
return None
else:
O4US = lHJN.next
lHJN.next = O4US.next
YKHO.size -= 1
return O4US.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hxuq(YKHO):\n if YKHO.size == 0:\n return None\n elif YKHO.size == 1:\n YKHO.last = None\n LihS = YKHO.first\n YKHO.first = YKHO.first.next\n YKHO.size -= 1\n return LihS.data",
"def Hxuq(YKHO):\n if YKHO.head is None:\n return\n if YKHO.head is YKHO.tail:\n ... | [
"0.78133434",
"0.7803684",
"0.754643",
"0.7421636",
"0.74120176",
"0.73293984",
"0.72842383",
"0.7273677",
"0.7249473",
"0.7220565",
"0.7208081",
"0.7195207",
"0.7129555",
"0.7087364",
"0.70703214",
"0.7066704",
"0.7056307",
"0.7049753",
"0.70476973",
"0.70401",
"0.7023462",
... | 0.76886755 | 2 |
Return the value of head of the data structure | def hfRT(YKHO):
if YKHO.head.next is None:
return None
else:
return YKHO.head.next.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_TU(YKHO):\n if YKHO.is_empty:\n return None\n return YKHO.data[YKHO.head]",
"def YrAL(YKHO):\n nIdV = YKHO._head.data\n YKHO._cur = YKHO._head\n return nIdV",
"def cntZ(YKHO):\n if YKHO.head == None:\n return None\n return YKHO.head.value",
"def ZQQe(YKHO):\n if YK... | [
"0.85854155",
"0.83431774",
"0.80942893",
"0.7941538",
"0.77751255",
"0.77149266",
"0.76873416",
"0.76871705",
"0.76276875",
"0.7548356",
"0.7527639",
"0.7519895",
"0.74969006",
"0.74722004",
"0.7455217",
"0.74414253",
"0.73892",
"0.73892",
"0.73608834",
"0.7344133",
"0.73378... | 0.0 | -1 |
Raise appropriate error when bad response received. | def b9m_(geh0):
if geh0.status_code == 200:
return
if geh0.status_code == 500:
raise g8kN('Clef servers are down.')
if geh0.status_code == 403:
Ol8d = geh0.json().get('error')
Qxb4 = syPI[Ol8d]
if Qxb4 == THe_:
Ol8d = 'Something went wrong at Clef. Unable ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gcmr(geh0):\n if geh0.json()['status'] == 'BadRequest' and geh0.json()['message'] == 'Title or message too long':\n raise rDSL\n if geh0.json()['status'] != 'OK':\n raise DBCD\n geh0.raise_for_status()",
"def g14h(YKHO, geh0: Response):\n raise YKHO.get_client().get_error_handler().... | [
"0.78291905",
"0.77295876",
"0.7632582",
"0.7598766",
"0.7515849",
"0.73743665",
"0.73742014",
"0.73613864",
"0.7355237",
"0.73333263",
"0.73324",
"0.7330468",
"0.7256414",
"0.7211559",
"0.71935654",
"0.71935654",
"0.71436703",
"0.71260333",
"0.7116358",
"0.70995003",
"0.7099... | 0.65947926 | 88 |
Converts the given string, expected in tests date format, to a datetime object | def JjRY(JvEs):
LVAh, r8hN, Csk6 = map(int, JvEs.split('-'))
return cRO3(qcWV(LVAh, r8hN, Csk6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8Xh(mbyn: str) -> qcWV:\n fBin = feVn.parse(mbyn)\n return fBin",
"def m89t(YKHO, vIwR):\n try:\n from dateutil.parser import parse\n return parse(vIwR)\n except ImportError:\n return vIwR",
"def lu6T(vIwR: str) -> qcWV:\n return qcWV.strptime(vIwR, '%m/%d/%y').astimezo... | [
"0.75508136",
"0.7426448",
"0.7374046",
"0.73714155",
"0.7329165",
"0.7248654",
"0.72389114",
"0.7224271",
"0.7200097",
"0.7182528",
"0.71818745",
"0.71730745",
"0.71109724",
"0.71066976",
"0.7092834",
"0.70865065",
"0.707914",
"0.70704174",
"0.7069824",
"0.705662",
"0.705440... | 0.0 | -1 |
Remove html linebreak tags and handle punctuation | def sLXZ(NPoT):
AwHw = ZylS.strings.lower(NPoT)
EQ_0 = ZylS.strings.regex_replace(AwHw, '<br />', ' ')
return ZylS.strings.regex_replace(EQ_0, f'([{vIwR.punctuation}])', ' \\1') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xEEQ(l5Ny):\n njyT = '(\\\\\\\\r).*(\\\\\\\\n)|(\\\\\\\\xa0)'\n V22M = l5Ny.lower().split()\n gq73 = [ZbWC.sub(njyT, '', yzQ0) for yzQ0 in V22M]\n return ' '.join(gq73)",
"def iwMD(yOAJ):\n Nqlg = ZbWC.split('\\n', yOAJ)\n En3Y = list()\n for zFiD in Nqlg:\n zFiD = ZbWC.sub('<.*?>... | [
"0.72205615",
"0.715483",
"0.69988513",
"0.6940214",
"0.6919107",
"0.68189454",
"0.6805467",
"0.6777584",
"0.67524225",
"0.6724681",
"0.66854495",
"0.6660338",
"0.6656605",
"0.66480654",
"0.66450167",
"0.66392976",
"0.66351235",
"0.6629875",
"0.6619025",
"0.6616326",
"0.66118... | 0.0 | -1 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
X_bn = ['january', 'february', 'march', 'april', 'may', 'june']
Sm0u = ['Monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Tim... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
Ri0C = jQ3Z['Start Station'].value_counts().idxmax()
print('Most commonnly used Start Station: ', Ri0C)
k7bv = jQ3Z['End Station'].value_counts().idxmax()
print('Most commonnly used End Station: ', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
print('Total travel time: ', bJiw)
RB_u = jQ3Z['Trip Duration'].mean()
print('Mean travel time: ', RB_u)
print('\nThis took %s seconds.' % (ITS7.time() - SWox))
print('-' * 40) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.79033697 | 26 |
Here we find a pair of values from the list that sum to the target | def _LTO(list, pan_):
for ZfUD in list:
if pan_ - ZfUD in list:
return (ZfUD, pan_ - ZfUD, (pan_ - ZfUD) * ZfUD)
return (None, None, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _YfW(YxDD, pan_):\n for YRbF in range(len(YxDD)):\n for r845 in range(YRbF, len(YxDD)):\n IMvC = YxDD[YRbF] + YxDD[r845]\n if IMvC == pan_:\n return (YRbF, r845)",
"def GmXI(ezWE: list[int], o8aI: int) -> list[int]:\n yKcO, Os4s = (0, len(ezWE) - 1)\n whil... | [
"0.81612563",
"0.80139315",
"0.79926884",
"0.7931931",
"0.78514576",
"0.7718446",
"0.7675103",
"0.7655606",
"0.75957847",
"0.7570433",
"0.75624275",
"0.75502217",
"0.75260687",
"0.75000674",
"0.7477797",
"0.7392333",
"0.737199",
"0.7302746",
"0.72610795",
"0.7258226",
"0.7255... | 0.8096867 | 1 |
r"""Applies a projective transformation a to 3d tensor. | def ep27(zZcM: torch.Tensor, E3D9: torch.Tensor, q9IW: Tuple[int, int, int], JbyC: str='bilinear', ktt2: str='zeros', v8sN: Optional[bool]=None) -> ht2j.Tensor:
assert len(zZcM.shape) == 5, zZcM.shape
assert len(E3D9.shape) == 3 and E3D9.shape[-2:] == (3, 4), E3D9.shape
assert len(q9IW) == 3, q9IW
tjUW,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FtjH(YKHO, KkmS):\n Ylbp = mQkb(None)\n upRt = YKHO.matrix.copy()\n upRt.invert()\n Ylbp.matrix = upRt * KkmS.matrix\n Ylbp.euler = Ylbp.matrix.to_euler()\n return Ylbp",
"def bNKA(BoQm: type_alias.TensorLike, qvah: type_alias.TensorLike, TGXi: type_alias.TensorLike, mWFP: str='perspective_... | [
"0.68478155",
"0.6641317",
"0.65957856",
"0.6546507",
"0.6511947",
"0.6354601",
"0.63120204",
"0.62570155",
"0.6233636",
"0.62201935",
"0.6206759",
"0.61670905",
"0.6130698",
"0.61251235",
"0.61213136",
"0.61183393",
"0.6105028",
"0.6105028",
"0.6100097",
"0.6099463",
"0.6055... | 0.0 | -1 |
r"""Calculates the projection matrix for a 3D rotation. | def PmIQ(hgjH: torch.Tensor, bLm4: torch.Tensor, m_03: torch.Tensor) -> ht2j.Tensor:
assert len(hgjH.shape) == 2 and hgjH.shape[-1] == 3, hgjH.shape
assert len(bLm4.shape) == 2 and bLm4.shape[-1] == 3, bLm4.shape
assert hgjH.device == bLm4.device, (hgjH.device, bLm4.device)
assert hgjH.dtype == bLm4.dty... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xhtW(YKHO) -> PVS4:\n nHo9 = YKHO.__right - YKHO.__left\n cAKW = YKHO.__top - YKHO.__bottom\n ciTN = YKHO.__far - YKHO.__near\n RhlF = 2 / nHo9\n MRLX = 2 / cAKW\n Algd = -2 / ciTN\n JDAm = -(YKHO.__right + YKHO.__left) / nHo9\n lg4w = -(YKHO.__top + YKHO.__bottom) / cAKW\n e42p = -(... | [
"0.7429609",
"0.741815",
"0.7339207",
"0.72316235",
"0.71566004",
"0.71130353",
"0.71122146",
"0.70479345",
"0.7024485",
"0.70136863",
"0.68759304",
"0.6874771",
"0.67986053",
"0.67970276",
"0.6674925",
"0.6625617",
"0.6606825",
"0.659826",
"0.6576196",
"0.65505517",
"0.65176... | 0.0 | -1 |
r"""Calculate a 3d perspective transform from four pairs of the corresponding points. | def N6dE(zZcM: torch.Tensor, zr3f: torch.Tensor) -> ht2j.Tensor:
if not isinstance(zZcM, ht2j.Tensor):
raise TypeError('Input type is not a torch.Tensor. Got {}'.format(type(zZcM)))
if not isinstance(zr3f, ht2j.Tensor):
raise TypeError('Input type is not a torch.Tensor. Got {}'.format(type(zr3f)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DRJz(WKvO, jzdc, P6bq, Csk6, MKlR):\n WKvO = WKvO.T\n yneJ = WKvO.shape[1]\n S2ii = oyIN.ones((3, 1))\n B81d = oyIN.ones((yneJ, 1))\n Ty9i = oyIN.cross(MKlR.reshape(3), P6bq.reshape(3)).reshape(3, 1)\n nJ9F = jzdc + Csk6 * P6bq\n Z9rn = float(nJ9F.T @ P6bq)\n M6pt = jzdc @ (P6bq.T @ WKv... | [
"0.7121241",
"0.7008567",
"0.6989219",
"0.69508314",
"0.6882382",
"0.683784",
"0.68125594",
"0.6763512",
"0.6758564",
"0.67556393",
"0.6698612",
"0.6692802",
"0.6634714",
"0.6632237",
"0.6587838",
"0.65574276",
"0.65035266",
"0.64865196",
"0.64835024",
"0.64795303",
"0.647890... | 0.69451666 | 4 |
Add an edge to a graph and return its attributes as dict. | def rz7z(YKHO, sdCG, J3uN, GRLv=None):
if GRLv is None:
GRLv = {}
if type(sdCG) is not int:
raise ValueError('Edge head is not an integer: %s.' % sdCG)
if type(J3uN) is not int:
raise ValueError('Edge tail is not an integer: %s.' % J3uN)
if sdCG < 0 or sdCG >= len(YKHO.node):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y: GraphEdge):\n if D70y.starting_vertex in YKHO.__graph_dict:\n YKHO.__graph_dict[D70y.starting_vertex].append(mlLI(D70y.ending_vertex, D70y.distance))\n else:\n YKHO.__graph_dict[D70y.ending_vertex] = [mlLI(D70y.ending_vertex, D70y.distance)]\n if D70y.ending_vertex not i... | [
"0.75422966",
"0.75107855",
"0.7495317",
"0.7430095",
"0.7421029",
"0.73034054",
"0.7218742",
"0.7018364",
"0.69980466",
"0.69764876",
"0.69684",
"0.68786514",
"0.68097466",
"0.68016946",
"0.67976815",
"0.6778173",
"0.67516506",
"0.6746352",
"0.6641947",
"0.66204494",
"0.6618... | 0.0 | -1 |
Get current Juju version | def sj54():
HCmI = wmOK('juju version')
if HCmI.returncode == 0:
return BvuR(HCmI.stdout.decode().strip())
else:
raise Exception('Could not determine Juju version.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hsYp():\n DpZH = '1.0.0'\n return DpZH",
"def DpZH():\n fUpG = 1.0\n return fUpG",
"def kaPv():\n return wx3I",
"def DpZH():\n return wx3I",
"def DpZH():\n S0MI.debug('Getting version.')\n return MKKM",
"def lwAl(bin=None):\n if not bin:\n bin = 'juju'\n return Yn... | [
"0.7490735",
"0.73530596",
"0.7278711",
"0.7255834",
"0.70956105",
"0.7071445",
"0.7067657",
"0.7053432",
"0.6997338",
"0.6993592",
"0.698677",
"0.6980176",
"0.69650495",
"0.6961634",
"0.6957416",
"0.69560707",
"0.69495493",
"0.69301075",
"0.6922579",
"0.6922579",
"0.6922579"... | 0.83624786 | 0 |
Splits/Divides the original data list into N number of sub lists. | def bNUG(UrXw, cZYJ):
UHFx = 0
FhX7 = []
Ezbi = []
for YRbF in range(len(UrXw)):
FhX7.append(UrXw[YRbF])
UHFx += 1
if UHFx > 0 and UHFx % cZYJ == 0:
UHFx = 1
Ezbi.append(FhX7)
FhX7 = [UrXw[YRbF]]
return Ezbi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0Um(nPrm, exwG):\n nPrm = list(nPrm)\n vC9B = len(nPrm)\n KCHu = vC9B / exwG\n U5bT = []\n XP5J = 0\n eHNT = oyIN.floor(KCHu)\n if eHNT == 0:\n U5bT = [[WKvO] for WKvO in nPrm]\n return U5bT\n if KCHu - eHNT < 0.5:\n KCHu = int(eHNT)\n for YRbF in range(exwG... | [
"0.7674092",
"0.749896",
"0.7476994",
"0.74555564",
"0.7435028",
"0.7316991",
"0.7281774",
"0.7217243",
"0.7154848",
"0.71155465",
"0.7109335",
"0.7090791",
"0.70670784",
"0.70613545",
"0.70580286",
"0.70548403",
"0.7025291",
"0.69974023",
"0.6976793",
"0.69738114",
"0.695822... | 0.7142618 | 9 |
Load the trained model from disk | def IMdJ():
return uyMl(bNss) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, pmON='./nnmodel.tflearn'):\n YKHO.model.load(pmON)",
"def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h = t2lc.load(pan_)\n return ad8h",
"def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h = t2lc.load(pan_)\n return ad8h",
"d... | [
"0.8367394",
"0.8286594",
"0.8286594",
"0.8286594",
"0.81995845",
"0.8196101",
"0.8149727",
"0.80682206",
"0.80643255",
"0.8061895",
"0.8055846",
"0.80322397",
"0.8024225",
"0.80121475",
"0.79793566",
"0.7976894",
"0.7976894",
"0.7954452",
"0.7943765",
"0.79355323",
"0.791983... | 0.7933105 | 20 |
Return the number of labels | def Blj4(YKHO, suh7=False):
if suh7:
return len(YKHO.label_info)
else:
return len(YKHO.label_ids) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def svPB(YKHO):\n return len(YKHO._labels)",
"def OR2u(YKHO):\n return len(YKHO.labels)",
"def U9dU(YKHO):\n return len(YKHO.labels)",
"def yMkk(YKHO):\n return len(YKHO._labels)",
"def svPB(YKHO):\n return len(YKHO.get_labels())",
"def svPB(YKHO):\n return len(YKHO.get_labels())",
"d... | [
"0.91051024",
"0.89534426",
"0.8950752",
"0.8890574",
"0.88556415",
"0.88556415",
"0.88181293",
"0.8664605",
"0.8337374",
"0.8286686",
"0.82755405",
"0.8224099",
"0.8224099",
"0.8224099",
"0.81906134",
"0.81428075",
"0.81428075",
"0.81428075",
"0.81428075",
"0.81428075",
"0.8... | 0.78553975 | 30 |
Save dataset in a json file indicated by `filename` | def xkzz(YKHO, Ux0P):
with open(Ux0P, 'w') as ytgA:
qQXR.dump({'image_size': YKHO.image_size, 'labels': YKHO.label_info, 'images': YKHO.image_info}, ytgA)
BfDw.logger.info('The dataset has been saved into {}'.format(Ux0P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M8gv(Ux0P, nPrm):\n with open(Ux0P, 'w') as nUeQ:\n qQXR.dump(nPrm, nUeQ)",
"def eGRE(Ux0P, nPrm):\n with open(Ux0P, 'w', encoding='utf-8') as Ki2L:\n qQXR.dump(nPrm, Ki2L)",
"def xkzz(YKHO, Ux0P='data.json'):\n with open(Ux0P, 'w') as eHNT:\n qQXR.dump(YKHO.datadict, eHNT)",
... | [
"0.7896804",
"0.7889714",
"0.788064",
"0.77756274",
"0.7765509",
"0.776513",
"0.7752518",
"0.7748542",
"0.7748542",
"0.77353567",
"0.7684942",
"0.76565903",
"0.76212144",
"0.7599531",
"0.7583175",
"0.7554514",
"0.75301975",
"0.7526585",
"0.75107294",
"0.7502763",
"0.747589",
... | 0.7495332 | 20 |
Get the URL of the currently visited page. | def hKhs(YKHO):
return YKHO.__state.url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNjf(YKHO):\n return str(YKHO.driver.current_url)",
"def bW0a(YKHO):\n return YKHO.driver.current_url",
"def bW0a(YKHO):\n return YKHO.driver.current_url",
"def bW0a(YKHO):\n return YKHO._web_driver.current_url",
"def GwPS(YKHO):\n return YKHO.driver.current_url",
"def GwPS(YKHO):\n ... | [
"0.76952124",
"0.74377126",
"0.74377126",
"0.7435091",
"0.7400084",
"0.73948157",
"0.73673683",
"0.73673683",
"0.7327076",
"0.7290953",
"0.7224387",
"0.720139",
"0.7183967",
"0.7180103",
"0.71412086",
"0.71053535",
"0.6987705",
"0.6871708",
"0.68691444",
"0.68600684",
"0.6767... | 0.6883227 | 17 |
It is not practical to programmatically assign AD users/administrators for testing, but a test for missing administrator still verifies most of the code. | def HemX(YKHO):
XP5J = YKHO.load_policy({'name': 'test-azure-sql-server', 'resource': 'azure.sqlserver', 'filters': [{'type': 'value', 'key': 'name', 'op': 'glob', 'value_type': 'normalize', 'value': 'cctestsqlserver*'}, {'type': 'azure-ad-administrators', 'key': 'login', 'value': 'absent'}]})
JKCy = XP5J.run()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ABhy(YKHO):\n i_PC = Y8oF()\n QePW = i_PC.get('user-list')\n QePW.user = YKHO.user\n rliA(QePW, user=YKHO.user)\n Jpbe = WIXs()\n tO9_ = f\"User '{QePW.user}', role: {QePW.user.role}\"\n YKHO.assertFalse(Jpbe.has_permission(QePW, yVA2), tO9_)\n B2fa = {'role': YKHO.ADMINISTRATOR}\n C... | [
"0.7270617",
"0.68817365",
"0.6796786",
"0.67938113",
"0.67792016",
"0.67710525",
"0.67686087",
"0.674591",
"0.67158926",
"0.6699617",
"0.6678356",
"0.66523385",
"0.6637067",
"0.6606342",
"0.6595259",
"0.658148",
"0.6559869",
"0.65431195",
"0.654109",
"0.6537546",
"0.6507731"... | 0.61076874 | 65 |
Assert that a name request can be received. | def r94e(x0hE):
im04 = x0hE.get('/api/v1/nameRequests/NR 3252362')
assert im04.status_code == qed_.OK
assert 'nrNum' in im04.json
assert im04.json['nrNum'] == 'NR 3252362' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MpXb(YKHO):\n YKHO.assertEqual(wAWK._OPTHeader().name, wAWK.Name(b''))",
"def G0uw(YKHO):\n geh0 = 'HTTP/1.1 200 OK\\r\\n: invalid header\\r\\nContent-Length: 0\\r\\n\\r\\n'\n YKHO.common_check(geh0, YKHO.request)",
"def MpXb(YKHO):\n YKHO._equalityTest(wAWK.Name(b'abc'), wAWK.Name(b'abc'), wAW... | [
"0.7190957",
"0.7086852",
"0.7024516",
"0.68431306",
"0.68018764",
"0.66991824",
"0.66657734",
"0.6641018",
"0.6625287",
"0.6619484",
"0.65971094",
"0.6570424",
"0.6567944",
"0.6559627",
"0.6533131",
"0.6512753",
"0.65100724",
"0.64797235",
"0.6449865",
"0.64468056",
"0.64379... | 0.68817174 | 3 |
Assert that nr mock data is conditionally approved, but consent not received. | def aUeA():
Gmvs = jth9.deepcopy(GwcX)
Gmvs['consentFlag'] = 'Y'
CDIQ = CXui.validate_nr(Gmvs)
assert not CDIQ['is_consumable']
assert CDIQ['is_approved']
assert not CDIQ['is_expired']
assert CDIQ['consent_required']
assert not CDIQ['consent_received'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T3ic():\n CDIQ = CXui.validate_nr(GwcX)\n assert CDIQ['is_consumable']\n assert CDIQ['is_approved']\n assert not CDIQ['is_expired']\n assert CDIQ['consent_required']\n assert CDIQ['consent_received']\n xvM3 = jth9.deepcopy(GwcX)\n xvM3['consentFlag'] = 'N'\n CDIQ = CXui.validate_nr(x... | [
"0.66560274",
"0.6647147",
"0.66010773",
"0.65146774",
"0.6431843",
"0.64288634",
"0.64007944",
"0.6324262",
"0.6284723",
"0.62599003",
"0.6235526",
"0.61765695",
"0.617591",
"0.6175746",
"0.61750674",
"0.61195713",
"0.6117722",
"0.61138654",
"0.6098013",
"0.60963786",
"0.609... | 0.76116115 | 0 |
Fixture for a loggedin staff user | def GYpl(SYsl, F9r4, fAy4):
return V6wC(SYsl).log_in_via_admin(fAy4.staff_user, ggOT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _2Kd():\n return rnmd",
"def DSn6(YKHO):\n YKHO.assertTrue(YKHO.staffuser.is_staff)\n B2Dn = '/useradmin'\n geh0 = YKHO.anonymousclient.get(B2Dn)\n YKHO.assertRedirects(geh0, '/admin/login/?next=/useradmin', status_code=302, target_status_code=200)\n YKHO.client.force_login(YKHO.user)\n ... | [
"0.7496187",
"0.70676875",
"0.70369256",
"0.70019084",
"0.6985127",
"0.69571024",
"0.686869",
"0.68110204",
"0.6792916",
"0.67822134",
"0.67711496",
"0.6761003",
"0.6728827",
"0.6689497",
"0.6646577",
"0.6646577",
"0.6646577",
"0.6609117",
"0.6599821",
"0.6578411",
"0.6566511... | 0.6251376 | 67 |
Test that a ValueError is raised when trying to instantiate a SpinSpace with and invalid `spin` value | def BXHd():
with trZe.raises(ValueError) as _n4O:
UjCo(0, spin=0)
assert 'must be greater than zero' in str(_n4O.value)
with trZe.raises(ValueError) as _n4O:
UjCo(0, spin=-1)
assert 'must be greater than zero' in str(_n4O.value)
with trZe.raises(ValueError) as _n4O:
UjCo(0, s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCz2(n0Em):\n with trZe.raises(ValueError):\n A08b.Components(K0gw, n0Em[0])\n with trZe.raises(ValueError):\n A08b.Components(K0gw, n0Em[1])\n with trZe.raises(ValueError):\n A08b.Components(K0gw, n0Em[2])",
"def Jtm7(YKHO):\n with trZe.raises(ValueError):\n rh6a(9472... | [
"0.6863319",
"0.67916584",
"0.66302115",
"0.65837663",
"0.65837616",
"0.65621144",
"0.65552527",
"0.64673424",
"0.6454514",
"0.6437725",
"0.6428808",
"0.6423979",
"0.64085907",
"0.6382877",
"0.63704973",
"0.6343155",
"0.63382566",
"0.63281155",
"0.63148415",
"0.6314053",
"0.6... | 0.8689641 | 0 |
Return the empirical CDF of a sample at a given value. | def Zt0j(WKvO: xr.DataArray, BWXx: float, tpio: str='time') -> zuVY.DataArray:
return (WKvO <= BWXx).sum(tpio) / WKvO.notnull().sum(tpio) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, BWXx):\n return YKHO._normal.cdf(BWXx)",
"def YzER(YKHO, WKvO):\n p06G = (WKvO - YKHO.mean) / (YKHO.stddev * 2 ** (1 / 2))\n return 1 / 2 * (1 + tVah(p06G))",
"def YzER(YKHO, BWXx):\n if YKHO.cond_dist is not None:\n return YKHO.cond_dist.cdf(BWXx, YKHO.params)\n return ht2... | [
"0.76502824",
"0.73867834",
"0.7386455",
"0.7369019",
"0.7344394",
"0.7294388",
"0.7143695",
"0.7137622",
"0.7093824",
"0.70714235",
"0.7040018",
"0.70089984",
"0.699079",
"0.6929636",
"0.6878376",
"0.683204",
"0.6802453",
"0.676431",
"0.67376494",
"0.6724778",
"0.6717064",
... | 0.59025854 | 93 |
Broadcast a grouped array back to the same shape as a given array. | def iJtT(qDyV: xr.DataArray, WKvO: xr.DataArray, *, uOe2: Union[str, Grouper]='time', pTn1: str='nearest', iz5W: Optional[Mapping[str, xr.DataArray]]=None) -> zuVY.DataArray:
if iz5W is None:
iz5W = {}
if uOe2.prop != 'group' and uOe2.prop not in iz5W:
iz5W.update({uOe2.prop: uOe2.get_index(WKvO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZuV8(qw7D, ROpF, DkY6=False):\n return v2Sb(qw7D, ROpF, subok=DkY6, readonly=True)",
"def vfsF(qw7D):\n if qw7D.ndim == 0:\n return qw7D\n qw7D = qw7D[tuple((slice(0, 1) if _0fC == 0 else slice(None) for _0fC in qw7D.strides))]\n QnCP = next((YRbF for YRbF, KCHu in enumerate(qw7D.shape) if... | [
"0.7056661",
"0.6751396",
"0.6454441",
"0.63823885",
"0.6376035",
"0.6227227",
"0.61126226",
"0.6035739",
"0.6024109",
"0.6009324",
"0.5959511",
"0.5880699",
"0.58710784",
"0.5863594",
"0.582959",
"0.5773643",
"0.5713958",
"0.5711989",
"0.5693821",
"0.56920123",
"0.56846815",... | 0.5906225 | 11 |
Ranks data along a dimension. Replicates `xr.DataArray.rank` but as a function usable in a Grouper.apply(). | def fdMZ(SG6Y: xr.DataArray, tpio: str='time', His1: bool=False) -> zuVY.DataArray:
return SG6Y.rank(tpio, pct=His1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fdMZ(nPrm):\n JNn7 = nPrm.shape\n nPrm = RzcG.nanrankdata(nPrm) - 1\n return (nPrm / oyIN.sum(~oyIN.isnan(nPrm))).reshape(JNn7)",
"def fdMZ(nPrm):\n JNn7 = nPrm.shape\n nPrm = RzcG.nanrankdata(nPrm) - 1\n return (nPrm / oyIN.sum(~oyIN.isnan(nPrm))).reshape(JNn7)",
"def OcDw(jQ3Z, IHZD, aE... | [
"0.695737",
"0.695737",
"0.66698325",
"0.6609952",
"0.6543324",
"0.65088516",
"0.646696",
"0.6434215",
"0.63406134",
"0.6336615",
"0.6332757",
"0.6324055",
"0.6324055",
"0.6322178",
"0.6312528",
"0.6310962",
"0.6310962",
"0.62618",
"0.6242959",
"0.6241102",
"0.6166521",
"0.... | 0.7271916 | 0 |
Normalizes a vector (represented as a 1 column array) | def N93T(m6Me):
BFeB = [0.0] * len(m6Me)
wjRY = sum(m6Me)
for YRbF in range(len(BFeB)):
BFeB[YRbF] = m6Me[YRbF] / wjRY
return BFeB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kwsU(iArr):\n return MF4b(iArr) / CkYf(iArr)",
"def u1KP(iArr: np.ndarray) -> oyIN.ndarray:\n return iArr / oyIN.linalg.norm(iArr)",
"def Z7xS(iArr: np.ndarray):\n return iArr / oyIN.linalg.norm(iArr)",
"def NkkI(YKHO, iArr):\n i1gc = oyIN.sqrt(oyIN.dot(iArr, iArr))\n yVsS = iArr / i1gc\n ... | [
"0.8513654",
"0.84427595",
"0.8216279",
"0.8215075",
"0.8190034",
"0.81815594",
"0.8170192",
"0.8146396",
"0.8108747",
"0.8083812",
"0.80342686",
"0.8016843",
"0.8008734",
"0.7944028",
"0.79382926",
"0.789592",
"0.7787235",
"0.7787185",
"0.77738905",
"0.77675563",
"0.77618027... | 0.0 | -1 |
Computes if this object is above another object | def sb_b(YKHO, Elif: 'SpatialInterface') -> bool:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _fAM(Emd4):\n return False",
"def MTZ4(YKHO, Elif: SourcePosition) -> bool:\n FBNX = list(kR2G)\n return FBNX.index(YKHO) <= FBNX.index(Elif)",
"def Zcf_(YKHO, YEnM):\n return 1 - (YKHO < YEnM)",
"def Zcf_(YKHO, YEnM):\n return 1 - (YKHO < YEnM)",
"def JWbp(YKHO, Elif):\n return YKHO.... | [
"0.74252266",
"0.7313222",
"0.72259337",
"0.72259337",
"0.71056783",
"0.7027677",
"0.7027677",
"0.69909126",
"0.69435763",
"0.69412965",
"0.69362235",
"0.6913479",
"0.68446463",
"0.6842433",
"0.68399173",
"0.68399173",
"0.6837761",
"0.6837761",
"0.6823676",
"0.6819013",
"0.68... | 0.679968 | 27 |
Computes if this object is below another object | def M1C2(YKHO, Elif: 'SpatialInterface') -> bool:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n return True if YKHO.edges > Elif.edges else False",
"def TPjt(YKHO, YEnM):\n return 1 - (YKHO > YEnM)",
"def TPjt(YKHO, YEnM):\n return 1 - (YKHO > YEnM)",
"def jmxi(YKHO, Elif):\n return YKHO.area() > Elif.area()",
"def jmxi(YKHO, Elif):\n return YKHO.area() > Elif.a... | [
"0.7451421",
"0.7272127",
"0.7272127",
"0.72053576",
"0.72053576",
"0.72025424",
"0.72012645",
"0.72012645",
"0.71925503",
"0.71827084",
"0.7140448",
"0.7138008",
"0.7113244",
"0.71009433",
"0.70842093",
"0.70806277",
"0.70718116",
"0.70653385",
"0.7060001",
"0.7056923",
"0.7... | 0.69485915 | 30 |
Computes if this object is far from another object | def rkca(YKHO, Elif: 'SpatialInterface') -> bool:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCIC(YKHO, YEnM):\n pImw = YylR.closestdistance(YKHO.lon, YEnM.lon)\n return abs(pImw) < YKHO.orb()",
"def xnao(YKHO, l1Ue):\n G_pu = YKHO.radius + l1Ue.radius\n yNDj = pImw(YKHO.pos, l1Ue.pos)\n if yNDj < G_pu:\n return True\n else:\n return False",
"def QX57(YKHO, Elif):\n... | [
"0.6700965",
"0.6622152",
"0.652933",
"0.6506812",
"0.6480448",
"0.6415713",
"0.63329864",
"0.6274811",
"0.62630624",
"0.6229681",
"0.62270236",
"0.62086105",
"0.62086105",
"0.6205989",
"0.619842",
"0.61832047",
"0.6166431",
"0.6166431",
"0.61630064",
"0.6159597",
"0.6148523"... | 0.74363905 | 0 |
Checks whether a given point is enclosed in the polygon | def S8eX(YKHO, AU8u: np.ndarray):
return YKHO.shape.contains(lWrn.Point(AU8u)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mjkI(_g9D):\n WKvO, LVAh = AU8u\n exwG = len(_g9D)\n bJYl = False\n jlZt, lCWw = _g9D[0]\n for YRbF in range(exwG + 1):\n Vk7a, csa7 = _g9D[YRbF % exwG]\n if LVAh > min(lCWw, csa7):\n if LVAh <= max(lCWw, csa7):\n if WKvO <= max(jlZt, Vk7a):\n ... | [
"0.8006969",
"0.7968484",
"0.7950282",
"0.7934007",
"0.78983605",
"0.78934854",
"0.787727",
"0.78340894",
"0.7825637",
"0.7818792",
"0.7794278",
"0.77758473",
"0.77262235",
"0.772413",
"0.7722147",
"0.7715263",
"0.7715263",
"0.77142215",
"0.7700813",
"0.76908",
"0.7690557",
... | 0.0 | -1 |
The same as sklearn.metrics.r2_score(y, fit_line) | def jNY1(LVAh, c5jb):
THQL = oyIN.mean(LVAh)
xXKZ = oyIN.sum((LVAh - THQL) ** 2)
lBmP = oyIN.sum((LVAh - c5jb) ** 2)
A3Vt = 1 - lBmP / xXKZ
return A3Vt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1kx(YKHO, EcVT, LVAh):\n uN02 = YKHO.predict(EcVT)\n return lHKk(LVAh, uN02)",
"def p1kx(YKHO, EcVT, LVAh):\n Rfzd = YKHO.predict(EcVT)\n p1kx = yjZz(LVAh, Rfzd)\n return p1kx",
"def HjDq(Y8eF, aMgO, **B2fa) -> float:\n return URKj(Y8eF, aMgO, **B2fa)",
"def fVPc(YKHO, H96n: pd.DataFra... | [
"0.79308116",
"0.7888844",
"0.7729653",
"0.75948924",
"0.7553485",
"0.74165416",
"0.7407494",
"0.72406846",
"0.72058797",
"0.71300703",
"0.70896137",
"0.70828784",
"0.70759577",
"0.70317715",
"0.7019283",
"0.6921372",
"0.69133496",
"0.68956655",
"0.68706",
"0.6839077",
"0.683... | 0.880043 | 0 |
reverses the words in a string using a list, with each character as a list element | def jjqZ(vIwR):
SIyd = list(vIwR)
_BO4(SIyd)
cntZ = XVAW = 0
while cntZ < len(SIyd) and XVAW < len(SIyd):
if SIyd[XVAW] != ' ':
XVAW += 1
continue
_BO4(SIyd, cntZ, XVAW)
XVAW += 1
cntZ = XVAW
if cntZ < XVAW:
_BO4(SIyd, cntZ, last=len(SI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLsE(yAmx: str) -> str:\n Y0Fj = yAmx.split()\n print(Y0Fj)\n return ' '.join((GIN8[::-1] for GIN8 in Y0Fj))",
"def Zke2(YKHO, GIN8: List[str]) -> None:\n for YRbF in range(int(len(GIN8) / 2)):\n v7BU = GIN8[YRbF]\n GIN8[YRbF] = GIN8[len(GIN8) - 1 - YRbF]\n GIN8[len(GIN8) - 1... | [
"0.7586381",
"0.75831705",
"0.75501657",
"0.7514046",
"0.75022745",
"0.7335247",
"0.7295128",
"0.72709244",
"0.7248184",
"0.7247533",
"0.7247365",
"0.72461766",
"0.7242752",
"0.7239437",
"0.72392416",
"0.7225251",
"0.7211044",
"0.7211044",
"0.71867543",
"0.7150867",
"0.713953... | 0.6815258 | 65 |
Custom response to 404 errors. | def VtQF(tTpl):
return geh0('failed', 'ticket not found', 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])",
"def Fu9i(bGrB: HTTPException) -> oGir:\n geh0 = Yxsy('')\n geh0.mimetype = 'application/json'\n geh0.status_code = 404\n return geh0",
"def eJkH(XObx):\n return dict(err=XO... | [
"0.8538194",
"0.83533365",
"0.80750686",
"0.7984011",
"0.79734504",
"0.79687333",
"0.7903542",
"0.78840905",
"0.7880685",
"0.7841228",
"0.78024966",
"0.78023726",
"0.77987987",
"0.77979463",
"0.7760938",
"0.77570313",
"0.7755457",
"0.77479815",
"0.7738995",
"0.7736196",
"0.77... | 0.0 | -1 |
Custom response to 400 errors. | def SbVD(tTpl):
return geh0('failed', 'Bad request', 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y1ZN(tTpl):\n return geh0('failed', 'Bad Request', 400)",
"def yA8I(YKHO):\n _hkX = pz3A()\n _hkX.content_type = 'application/json'\n _hkX.status_code = 400\n return _hkX",
"def SZ_t(Wehb):\n return Yxsy(pz3A({'error': str(Wehb)}), 400)",
"def wyqm(tTpl):\n return (pz3A(dict([('statu... | [
"0.80060124",
"0.7912621",
"0.7612314",
"0.7605121",
"0.7578481",
"0.7546939",
"0.74988157",
"0.74926114",
"0.7410892",
"0.73767745",
"0.7375181",
"0.73628956",
"0.7250787",
"0.7043142",
"0.70278525",
"0.69964033",
"0.6995851",
"0.69834274",
"0.6968284",
"0.69641536",
"0.6963... | 0.65042555 | 76 |
Parse our options, create checkpoints directory suffix, and set up gpu device. | def hfK9(YKHO):
qIxc = YKHO.gather_options()
YKHO.args = qIxc
qIxc.isTrain = YKHO.args.isTrain
if qIxc.suffix:
ZI14 = '_' + qIxc.suffix.format(**vars(qIxc)) if qIxc.suffix != '' else ''
qIxc.name = qIxc.name + ZI14
VMWh = qIxc.gpu_ids.split(',')
qIxc.gpu_ids = []
for GLFn in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ttkq(YKHO):\n wvEv = WDqQ(description='training code')\n wvEv.add_argument('-ckpt', dest='ckpt', help='Filename to load from', type=str, default='')\n wvEv.add_argument('-save_dir', dest='save_dir', help='Directory to save things to, such as checkpoints/save', default='', type=str)\n wvEv.add_argum... | [
"0.62231237",
"0.6208092",
"0.6180205",
"0.6179812",
"0.6168149",
"0.6105268",
"0.6099297",
"0.6077003",
"0.6073611",
"0.60566163",
"0.60548913",
"0.60239387",
"0.59935427",
"0.5992689",
"0.5948617",
"0.5939846",
"0.5937431",
"0.59330875",
"0.59193736",
"0.5912923",
"0.590786... | 0.5931234 | 18 |
Initializes the ChromeBrowser instance. | def FIMM(YKHO):
super(TUbx, YKHO).__init__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uAcP():\n uM9E = {'executable_path': 'chromedriver.exe'}\n return TWLF('chrome', **uM9E, headless=True)",
"def hlk0(YKHO):\n YKHO.driver = cSpz.Chrome(YKHO.driver_path, chrome_options=YKHO.chop)",
"def FIMM(YKHO):\n G9jH.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s', level=G9jH.... | [
"0.7708378",
"0.74855864",
"0.7195957",
"0.7128436",
"0.70812595",
"0.6843083",
"0.6828197",
"0.681004",
"0.67776656",
"0.67558664",
"0.67512214",
"0.6661696",
"0.6590899",
"0.65554357",
"0.6497365",
"0.6474401",
"0.64484847",
"0.6439488",
"0.6426498",
"0.6419906",
"0.6293453... | 0.80524117 | 0 |
Convert the caller's column_dict and where parameters into a valid where clause. | def OFj4(YKHO, tyNF, h96P, qJWj):
def U6HQ(tyNF, h96P, sjXb):
VWa4 = []
for H5ew in sjXb:
if H5ew not in YKHO.db_schema[tyNF]['columns']:
YKHO.__db_logging_return__(0, 'column "%s" not defined in table "%s", column dropped from where clause' % (H5ew, tyNF))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ySvE(YKHO, ZLJ_, NArs, xDcj=''):\n L2QW = []\n for Z9rn in ZLJ_:\n mCXz = Z9rn.split('.')[-1]\n if NArs.get(mCXz, ''):\n L2QW.append(Z9rn + '=%(' + mCXz + ')s')\n else:\n L2QW.append(Z9rn + '=' + Z9rn)\n return xDcj + ' where ' + ' AND '.join(L2QW)",
"def r... | [
"0.73034954",
"0.70284516",
"0.6886788",
"0.6857656",
"0.6853976",
"0.6778993",
"0.6680179",
"0.6590837",
"0.6519532",
"0.6513631",
"0.6493759",
"0.64603716",
"0.6459668",
"0.64430875",
"0.63783664",
"0.63768154",
"0.6358579",
"0.63322467",
"0.63266087",
"0.6303367",
"0.62774... | 0.7806475 | 0 |
List all tokens in eauth_tokens storage. | def AjWR(YKHO):
return YKHO.tokens['{}.list_tokens'.format(YKHO.opts['eauth_tokens'])](YKHO.opts) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXtR(YKHO) -> None:\n s2mk = YKHO.client.access_tokens_list()\n LAOT = ['expiry_time', 'token_prefix', 'description', 'max_age_seconds', 'extend_when_used', 'last_used_time', 'last_ip', 'last_user_agent']\n YKHO.print_response(s2mk, json=YKHO.args.json, table_layout=LAOT)",
"def AjWR():\n wOGa = ... | [
"0.7390487",
"0.7318425",
"0.71588993",
"0.7021939",
"0.6963931",
"0.65571076",
"0.6489997",
"0.6480661",
"0.64661705",
"0.6463157",
"0.64097697",
"0.6401138",
"0.6371712",
"0.63382816",
"0.63105357",
"0.62551033",
"0.6244246",
"0.6140414",
"0.60726935",
"0.6058452",
"0.60565... | 0.81696284 | 0 |
Instantiate an AuthUser object. Takes a user to represent, as a string. | def FIMM(YKHO, CBIr):
YKHO.user = CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZhvG(Emd4, CBIr):\n return Emd4(CBIr.userid, CBIr.screenname)",
"def bR3f(Emd4, nPrm: bytes, _Kb1: bool=False) -> mv1M:\n if isinstance(nPrm, bytes):\n nPrm = qQXR.loads(nPrm)\n return mv1M(**lKKu(Emd4(username=nPrm.get('username', None), email=nPrm.get('email', None), password=nPrm.get('pass... | [
"0.69211966",
"0.6606441",
"0.65365094",
"0.6532588",
"0.6526179",
"0.6477343",
"0.64728665",
"0.64561015",
"0.64542675",
"0.64489067",
"0.6435566",
"0.6424186",
"0.6401201",
"0.63818884",
"0.6369301",
"0.63619405",
"0.6361756",
"0.6352728",
"0.634176",
"0.63358295",
"0.63323... | 0.0 | -1 |
Returns the username of the sudoer, i.e. self.user without the 'sudo_' prefix. | def ysqp(YKHO):
return YKHO.user.split('_', 1)[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cPbg(YKHO):\n zJsh = bSZ0.run(['ps', 'e', str(YKHO.pid)])\n kUBT = ZbWC.match('.* SUDO_USER=([^ ]+)', zJsh, ZbWC.DOTALL)\n if not kUBT:\n return None\n return kUBT.group(1)",
"def c60E(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'linux_admin_username')",
"def Vxng(YKHO):\n... | [
"0.72564036",
"0.7069064",
"0.68993354",
"0.68914163",
"0.68900836",
"0.68584555",
"0.6830888",
"0.6822977",
"0.6807432",
"0.67335385",
"0.6726677",
"0.6726354",
"0.6698632",
"0.6698632",
"0.6698632",
"0.668906",
"0.6684042",
"0.6684042",
"0.6684042",
"0.6684042",
"0.6684042"... | 0.85810465 | 0 |
Return the name of the eeg corresponding to the given index. | def cD1q(V3Tb) -> str:
tGDF = {1: 'Eyes open', 2: 'Eyes closed', 3: 'Healthy cells', 4: 'Cancer cells', 5: 'Epileptic seizure'}
return tGDF.get(V3Tb, 'Invalid') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PS6h(YKHO, d6pt: int) -> str:\n YRbF = int(d6pt)\n return YKHO._entity_names()[YRbF] if YRbF != YKHO.NO_INDEX else ''",
"def PS6h(YKHO, d6pt: int) -> str:\n YRbF = int(d6pt)\n return YKHO._entity_names[YRbF] if YRbF != YKHO.NO_INDEX else ''",
"def aN8Q(d6pt: int) -> str:\n return f'obs_{d6pt... | [
"0.78358674",
"0.78046197",
"0.7370341",
"0.7218312",
"0.7145993",
"0.71412677",
"0.7036044",
"0.7024484",
"0.699512",
"0.69901556",
"0.69853854",
"0.6957403",
"0.6936624",
"0.6922034",
"0.6906322",
"0.68373024",
"0.6825138",
"0.67323667",
"0.6729647",
"0.66974825",
"0.666179... | 0.6109647 | 42 |
Regular expression to match a signed int. | def iRzb(Emd4) -> UIgY[str]:
return Emd4._construct_regex('([-+]?\\d+|[{digits}])') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQFj(YKHO):\n YKHO.__test_regexp_h(YKHO.INT, '[1-9]{4}', '-1000', passes_constraint=False)",
"def Y8ME(YKHO, aevO: str) -> int:\n r8hN = ZbWC.search(' *[+-]?\\\\d+', aevO)\n try:\n Aofo = int(r8hN.group(0))\n except:\n return 0\n else:\n Aofo = min(Aofo, YKHO.INT_MAX)\n ... | [
"0.71350056",
"0.6721658",
"0.66732615",
"0.65132636",
"0.6487419",
"0.6352336",
"0.6264204",
"0.6251837",
"0.62360597",
"0.62216717",
"0.6154327",
"0.60999596",
"0.59975016",
"0.59715724",
"0.5959573",
"0.5859612",
"0.5845662",
"0.5833251",
"0.5831422",
"0.5823615",
"0.58070... | 0.7555752 | 0 |
Key to sort strings and numbers naturally. It works by splitting the string into components of strings and numbers, and then converting the numbers into actual ints or floats. | def g5HF(wEf2: Union[NatsortInType, Any], H5ew: MaybeKeyType, _6EC: Union[StrParser, PathSplitter], dwoR: BytesTransformer, nr1d: NumTransformer) -> gENP:
if H5ew is not None:
wEf2 = H5ew(wEf2)
if isinstance(wEf2, (str, PKXz)):
return _6EC(wEf2)
elif isinstance(wEf2, bytes):
return d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OR17(KCHu):\n Zn2L = lambda KCHu: int(KCHu) if KCHu.isdigit() else KCHu.lower()\n return tuple((Zn2L(str) for str in ZbWC.split('(\\\\d+)', KCHu)))",
"def mSKC(vC9B):\n a8Pe = lambda l5Ny: int(l5Ny) if l5Ny.isdigit() else l5Ny\n l35E = lambda H5ew: [a8Pe(Z9rn) for Z9rn in ZbWC.split('([0-9]+)', H... | [
"0.76317996",
"0.7435018",
"0.74167305",
"0.7383184",
"0.7380926",
"0.73524064",
"0.73321927",
"0.73224497",
"0.73222005",
"0.7322072",
"0.7302446",
"0.72906464",
"0.72862184",
"0.7251799",
"0.72333914",
"0.7223896",
"0.720829",
"0.71463585",
"0.71296847",
"0.7127695",
"0.712... | 0.0 | -1 |
Create a function that will split and format a str into a tuple. | def yYGL(lfCk: NSType, VWe_: StrOrBytes, wAJt: StrSplitter, pnDX: StrToStr, gGqk: StrTransformer, I0S5: FinalTransformer) -> t8_s:
yt9U = not (lfCk & UMwr and lfCk & PCpl.LOCALEALPHA)
rFV1 = pnDX if yt9U else AK_Z
rSLU = R_yW(lfCk)
Hmy_ = TSX3(lfCk) if lfCk & PCpl.LOCALEALPHA else AK_Z
def JfyU(WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D08d(str):\n lv1I = str.strip().strip('(').strip(')').split()\n return (lv1I[0].lower(), lv1I[1].lower(), lv1I[2].lower())",
"def I3R4(YKHO, vIwR):\n if isinstance(vIwR, str):\n HzTH = vIwR.split('/')\n try:\n return tuple((int(KCHu) for KCHu in HzTH))\n except ValueE... | [
"0.7337367",
"0.70529646",
"0.70015526",
"0.6904806",
"0.68149054",
"0.6789036",
"0.6731608",
"0.67310965",
"0.6567496",
"0.65312177",
"0.6452312",
"0.6452312",
"0.6396877",
"0.636989",
"0.6329886",
"0.63262457",
"0.6305991",
"0.6281522",
"0.6264425",
"0.6242492",
"0.62112576... | 0.0 | -1 |
Create a function to transform a tuple. | def p9GJ(lfCk: NSType, VWe_: StrOrBytes, rPIh: str) -> KGJh:
if lfCk & PCpl.UNGROUPLETTERS and lfCk & PCpl.LOCALEALPHA:
b3SJ = lfCk & UMwr and lfCk & PCpl.LOWERCASEFIRST
SZFh = YWvJ(JGJz, ZMcn('swapcase') if b3SJ else AK_Z)
def JfyU(D3do: Iterable[NatsortInType], wEf2: str, tSyl: StrToStr=S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMpf(*qIxc):\n return tuple(qIxc)",
"def XMpf(UqER):\n return S6ol(tuple, UqER)",
"def L94X(JfyU, SjLr):\n return JfyU(*SjLr)",
"def D7r7(*qIxc):\n return ('tuple', [*qIxc])",
"def q7uV(YKHO, Q6kx, m2Zb, ENbI):\n if len(ENbI) != 1 or not Q6kx.is_temp:\n return Q6kx\n d7pR = ENb... | [
"0.7294885",
"0.7141694",
"0.70298785",
"0.7028737",
"0.68961143",
"0.6878561",
"0.66695553",
"0.6660253",
"0.665239",
"0.6632032",
"0.6539907",
"0.6518364",
"0.64925295",
"0.6424746",
"0.642015",
"0.6407848",
"0.6397731",
"0.6382072",
"0.6370906",
"0.63690114",
"0.62912655",... | 0.0 | -1 |
Return a tuple with the first character of the first element of the return value as the first element, and the return value as the second element. This will be used to perform gross sorting by the first letter. | def JfyU(D3do: Iterable[NatsortInType], wEf2: str, tSyl: StrToStr=SZFh, VkmV: StrOrBytes=VWe_, PY4J: str=rPIh) -> tLap:
D3do = tuple(D3do)
if not D3do:
return ((), ())
elif D3do[0] == VkmV:
return ((PY4J,), D3do)
else:
return ((tSyl(wEf2[0]),), D3do) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bpk5(wEf2):\n return wEf2[1]",
"def AwKv(q2Xo):\n return q2Xo[1]",
"def ijwx(yAmx):\n tSyp = len(yAmx)\n if tSyp is 0:\n q9Ho = None\n else:\n q9Ho = yAmx[0]\n opk3 = (tSyp, q9Ho)\n return opk3",
"def dPmV(JQbP):\n if JQbP.is_person:\n return (dU7C.sort_key(JQ... | [
"0.6328396",
"0.6264415",
"0.61313",
"0.61253005",
"0.59712815",
"0.59329605",
"0.5898759",
"0.5802727",
"0.5800495",
"0.57756114",
"0.57655054",
"0.5735314",
"0.57165813",
"0.57129765",
"0.56840634",
"0.5665357",
"0.566053",
"0.5655586",
"0.5655156",
"0.56459",
"0.5640335",
... | 0.0 | -1 |
Chain a list of singleargument functions together and return. The functions are applied in list order, and the output of the previous functions is passed to the next function. | def II9J(ZZSa: Iterable[AnyCall]) -> HrD4:
ZZSa = list(ZZSa)
if not ZZSa:
return AK_Z
elif len(ZZSa) == 1:
return ZZSa[0]
else:
return YLnl(Pusg, lambda Ylbp, eHNT: eHNT(Ylbp), ZZSa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def II9J(*ZZSa):\n\n def Syzp(WKvO):\n Aofo = WKvO\n for m2Zb in ZZSa:\n Aofo = m2Zb(Aofo)\n return Aofo\n return Syzp",
"def eNCK(*ZZSa):\n\n def D44y(eHNT, Oa1e):\n return lambda WKvO: Oa1e(eHNT(WKvO))\n return xBlr.reduce(D44y, ZZSa, lambda WKvO: WKvO)",
"d... | [
"0.8054808",
"0.7820982",
"0.7437617",
"0.7416348",
"0.7395019",
"0.7388643",
"0.730729",
"0.7109048",
"0.71020925",
"0.7098427",
"0.705991",
"0.7027693",
"0.7017704",
"0.7016286",
"0.7016286",
"0.70009416",
"0.6940418",
"0.6926632",
"0.6926632",
"0.6924403",
"0.6905306",
"... | 0.7980236 | 1 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
XYie = jQ3Z['month'].mode()[0]
print('The most popular month to rent a bike is {}'.format(GRk0.month_name[XYie]))
SOOw = jQ3Z['day_of_week'].mode()[0]
print('The most popular day of the week to rent ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.75584173 | 52 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
EaVT = jQ3Z['Start Station'].mode()[0]
print('The most popular station to rent a bike is {}'.format(EaVT))
Vmr7 = jQ3Z['End Station'].mode()[0]
print('The most popular station to return a bike is {}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.72051144 | 76 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
sanW = jQ3Z['Trip Duration'].sum()
sanW = sanW / 3600
print('The total travel time is {} hours.'.format(sanW))
XVYG = jQ3Z['Trip Duration'].mean()
XVYG = XVYG / 60
print('The average trip durantion per trip is {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.82516754",
"0.8146482",
"0.8095984",
"0.80120844",
"0.79869586",
"0.7983244",
"0.7978337",
"0.7969659",
"0.7964662",
"0.7963039",
"0.79611284",
"0.7960862",
"0.79516",
"0.7948492",
"0.79436684",
"0.793671",
"0.79231024",
"0.79199594",
"0.7919324",
"0.7918097",
"0.7917122",... | 0.0 | -1 |
add placeholder and onehot encode | def RrIs(YKHO):
with ZylS.name_scope('placeholder'):
YKHO.input = ZylS.placeholder(ZylS.float32, shape=[YKHO.config.batch_size, YKHO.config.num_of_stages, YKHO.config.input_dimension])
YKHO.label_ = ZylS.placeholder(ZylS.int32, shape=[YKHO.config.batch_size, YKHO.config.num_of_stages])
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(g4y1, jTqs):\n pass",
"def vzTG(WKvO):\n WKvO[oyIN.where(WKvO)[0]] = 1\n return WKvO",
"def gb5P(Crrw, q1vv):\n KLLm = oyIN.zeros((q1vv, Crrw.shape[0]))\n for Z9rn in oyIN.arange(0, q1vv):\n oeNL = oyIN.where(Crrw == Z9rn)\n KLLm[Z9rn][oeNL] = 1\n return KLLm",
"def k... | [
"0.7192474",
"0.70946974",
"0.6990264",
"0.69604605",
"0.69399935",
"0.69304794",
"0.6891981",
"0.6859104",
"0.68578637",
"0.6857547",
"0.6849961",
"0.6828075",
"0.6825183",
"0.6817552",
"0.6816384",
"0.68115336",
"0.6783893",
"0.67588705",
"0.6758116",
"0.6724016",
"0.671293... | 0.0 | -1 |
Return if the board is full of moves. | def LWCs(YKHO):
return oyIN.count_nonzero(YKHO.slots == 0) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vfxP(YKHO):\n oLdq = 0\n for KCHu in YKHO.board:\n if KCHu != '-':\n oLdq += 1\n return oLdq == len(YKHO.board)",
"def sf28(iBIi):\n for Rxy3 in range(1, 10):\n if rACA(iBIi, Rxy3):\n return False\n return True",
"def OptB(YimI):\n usx6, WfCS = (len(Yim... | [
"0.8678311",
"0.82322574",
"0.8127898",
"0.8082164",
"0.799185",
"0.7954784",
"0.7920979",
"0.7871504",
"0.7839893",
"0.7823473",
"0.77455693",
"0.77000505",
"0.76880777",
"0.7681925",
"0.7681194",
"0.7681194",
"0.7670493",
"0.76424736",
"0.7641969",
"0.7641825",
"0.7639581",... | 0.0 | -1 |
Get an iterator, contains all places which are empty. The one who's nearest to the last move will be returned at first. | def USoE(YKHO):
assert len(YKHO.__moves_history) > 0
DpUl = YKHO.__moves_history[-1]
ycBG = oyIN.zeros((YKHO.height, YKHO.width), dtype=oyIN.bool)
vexM = MUE7()
vexM.append(DpUl)
ycBG[DpUl[0], DpUl[1]] = 1
while len(vexM) > 0:
DpUl = vexM.popleft()
qiOz, aF53 = DpUl
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qBwg(OxJJ, NTIo):\n return iter((WKvO for WKvO in OxJJ).next, NTIo)",
"def XHb1(oHE7: Iterable[_T]) -> jd6F[AzJI[bool, sb5H], None, None]:\n XVAW = False\n WhY1 = iter(oHE7)\n try:\n T7C_ = next(WhY1)\n except StopIteration:\n return\n while not XVAW:\n ZfUD = T7C_\n ... | [
"0.61328334",
"0.6057185",
"0.6043811",
"0.59134525",
"0.587859",
"0.58519286",
"0.5764052",
"0.57336074",
"0.57252526",
"0.5698422",
"0.5648607",
"0.5647367",
"0.5645854",
"0.56180274",
"0.56156",
"0.5612607",
"0.5603105",
"0.56029004",
"0.557219",
"0.5557119",
"0.55473125",... | 0.68583965 | 0 |
returns the called RandomPlayer's next move for a game on the specified Board object. The method chooses at random from the columns that are not yet full, and we assume that there is at least one such column. | def MBtz(YKHO, iBIi):
assert not iBIi.is_full()
YKHO.num_moves += 1
zyQQ = list(iBIi.iter_empty())
return tuKI.choice(zyQQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBtz(YKHO, iBIi):\n SJF9 = []\n for fvDH in range(iBIi.width):\n if iBIi.can_add_to(fvDH) == True:\n SJF9 += [fvDH]\n qZFl = tuKI.choice(SJF9)\n YKHO.num_moves += 1\n return qZFl",
"def T8zL(iBIi):\n if iBIi.check_win() == None:\n return tuKI.choice(iBIi.get_empty_s... | [
"0.8043477",
"0.7856628",
"0.7510034",
"0.7452147",
"0.74475914",
"0.7374079",
"0.7374079",
"0.7374079",
"0.7365409",
"0.736502",
"0.7362897",
"0.7356966",
"0.73223346",
"0.72685677",
"0.72467583",
"0.7237202",
"0.72191983",
"0.7212489",
"0.7210752",
"0.7138058",
"0.71315825"... | 0.7712096 | 2 |
Read user_id from payload and return User. | def _E99(pB3N):
uJjO = pB3N['identity']
try:
CBIr = mv1M.load(None, uJjO)
except Exception:
CBIr = None
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lyxB(pB3N):\n _eu6 = pB3N['username']\n CBIr = zJiV.get_one(_eu6)\n return CBIr",
"def mWtE(uJjO: int) -> Q1cP:\n CBIr = TKWP(uJjO)\n return CBIr",
"def _Prt(pB3N):\n uJjO = pB3N.get('user_id')\n return uJjO",
"def _E99(pB3N):\n uJjO = pB3N['identity']\n return Nc2H.find_by_id(... | [
"0.7636511",
"0.7497541",
"0.7488763",
"0.7463038",
"0.7405276",
"0.72692025",
"0.7201705",
"0.719951",
"0.7181793",
"0.7175391",
"0.7138822",
"0.7130886",
"0.7063816",
"0.70458585",
"0.70458585",
"0.7023101",
"0.7011662",
"0.7006044",
"0.6992489",
"0.6964595",
"0.6940693",
... | 0.76857686 | 0 |
Return list of vector encoding the sequences letters transformed in 1000, 0100, 0010, 0001 | def o07R(jWe2, zLMu):
gghn = {zLMu[0]: [1.0, 0.0, 0.0, 0.0], zLMu[1]: [0.0, 1.0, 0.0, 0.0], zLMu[2]: [0.0, 0.0, 1.0, 0.0], zLMu[3]: [0.0, 0.0, 0.0, 1.0]}
lXgg = []
for YRbF in range(len(jWe2)):
aWuw = jWe2[YRbF]
zq5a = []
for r845 in range(len(aWuw)):
zq5a += gghn[aWuw[r8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tAjl(Q6uT: str) -> list:\n whOL = []\n for sZqf in Q6uT:\n if sZqf not in StbB.keys():\n continue\n else:\n whOL.append(StbB[sZqf])\n return whOL",
"def O3Zs(jWe2, aJu4):\n return [kRVI.transcode_sequence(EcVT, aJu4) for EcVT in jWe2]",
"def mdK9(tpio: int) -... | [
"0.65717113",
"0.6521545",
"0.6381732",
"0.6351682",
"0.63429654",
"0.6319309",
"0.6316686",
"0.63162744",
"0.6256781",
"0.62484825",
"0.623591",
"0.6235223",
"0.6229044",
"0.6207818",
"0.61883664",
"0.6156378",
"0.6148987",
"0.60795105",
"0.6036411",
"0.60313374",
"0.6027750... | 0.6993725 | 0 |
Compute the gram matrix for the gaussian kernel | def B3N4(HWgF, WTkW):
nMvt = [[[] for LVAh in HWgF] for WKvO in HWgF]
for YRbF, M4qg in enumerate(HWgF):
M4qg = oyIN.asarray(M4qg, dtype=float).reshape(1, len(M4qg))
for r845, U0oa in enumerate(HWgF):
U0oa = oyIN.asarray(U0oa, dtype=float).reshape(1, len(U0oa))
nMvt[YRbF]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kICu(YKHO):\n yvY1 = oyIN.zeros((YKHO.n_examples, YKHO.n_examples))\n for YRbF in range(YKHO.n_examples):\n for r845 in range(YKHO.n_examples):\n yvY1[YRbF][r845] = YKHO.kernel_func(YKHO.train_inputs[YRbF], YKHO.train_inputs[r845])\n return yvY1",
"def BhzF(mSn1, IP77, uH38=jKuA, W... | [
"0.75530005",
"0.751377",
"0.7259532",
"0.72275364",
"0.7016756",
"0.69454646",
"0.68790907",
"0.6849866",
"0.6728542",
"0.6722414",
"0.6635863",
"0.6603577",
"0.6598834",
"0.65982276",
"0.6596916",
"0.6570379",
"0.65632826",
"0.655094",
"0.6542474",
"0.65288645",
"0.6517034"... | 0.0 | -1 |
Compute the gram matrix | def fv76(HWgF):
SNCb = oyIN.asarray(HWgF, dtype=float)
return SNCb.dot(SNCb.T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bg4l(YKHO):\n zuEN = YKHO.to_basis()\n CG35 = oyIN.zeros((YKHO.n_basis, YKHO.n_basis))\n for YRbF in range(zuEN.n_basis):\n for r845 in range(YRbF, zuEN.n_basis):\n CG35[YRbF, r845] = zuEN[YRbF].inner_product(zuEN[r845], None, None)\n CG35[r845, YRbF] = CG35[YRbF, r845]\n ... | [
"0.8024319",
"0.76288486",
"0.75044245",
"0.7485625",
"0.7472538",
"0.7435944",
"0.74292284",
"0.74257344",
"0.74251896",
"0.7406209",
"0.7380637",
"0.73638284",
"0.736011",
"0.7286609",
"0.7284476",
"0.7283561",
"0.7215193",
"0.717528",
"0.71688026",
"0.71497726",
"0.7123666... | 0.0 | -1 |
Compute the gram matrix for the test set | def lxCl(Y9ns, kO5c):
return kO5c.dot(Y9ns.T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ofyw():\n Oa1e = oyIN.empty((len(Yqkn), len(Yqkn)), oyIN.int)\n for YRbF in range(len(Yqkn)):\n for r845 in range(len(Yqkn)):\n Oa1e[YRbF][r845] = oyIN.dot(Yqkn[YRbF][0], Yqkn[r845][0])\n return Oa1e",
"def Bg4l(YKHO):\n zuEN = YKHO.to_basis()\n CG35 = oyIN.zeros((YKHO.n_basi... | [
"0.7579912",
"0.73802185",
"0.72836244",
"0.7260595",
"0.72310907",
"0.7124047",
"0.70431757",
"0.704219",
"0.69926214",
"0.69891113",
"0.69469035",
"0.6861264",
"0.68125504",
"0.6804759",
"0.6796521",
"0.675425",
"0.6736915",
"0.67347",
"0.6680917",
"0.6675353",
"0.65680236"... | 0.5578732 | 90 |
Get the version from the __version__ file in the tackle dir. | def kaPv(XNWQ):
for zFiD in cO1h(XNWQ).splitlines():
if zFiD.startswith('__version__'):
SAEY = '"' if '"' in zFiD else "'"
return zFiD.split(SAEY)[1]
else:
raise RuntimeError('Unable to find version string.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv():\n from . import __version__\n return __version__",
"def kaPv():\n with open(R2BB, encoding='utf-8') as nVrR:\n Nqlg = nVrR.read()\n Aofo = VCYj.search(Nqlg)\n if Aofo:\n return Aofo.groupdict()['version']\n raise ValueError('Unable to determine __versio... | [
"0.7586769",
"0.74031633",
"0.739218",
"0.73745936",
"0.7353897",
"0.7353469",
"0.73394454",
"0.724401",
"0.72210115",
"0.72196776",
"0.7210917",
"0.7202769",
"0.7196222",
"0.7190676",
"0.71897346",
"0.717511",
"0.7174931",
"0.7164397",
"0.7150588",
"0.71463615",
"0.71006775"... | 0.0 | -1 |
Convert a OpenBabel Mol object `obmol` to a molecular structure. Uses | def qQlx(N9D1, v7cn, KIBk=True):
if ZUME is None:
raise hiLm('OpenBabel is not installed. Please install or use RDKit.')
N9D1.vertices = []
v7cn.AddHydrogens()
for uXdZ in ZUME.OBMolAtomIter(v7cn):
FGW3 = uXdZ.GetAtomicNum()
qBv7 = uXdZ.GetIsotope()
U6D_ = UqER.get_elemen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QBfn(N9D1, tP1Y=False):\n if ZUME is None:\n raise hiLm('OpenBabel is not installed. Please install or use RDKit.')\n N9D1.sort_atoms()\n RR8p = N9D1.vertices\n Ymik = {}\n v7cn = ZUME.OBMol()\n for WhQ6 in RR8p:\n jzdc = v7cn.NewAtom()\n if WhQ6.element.symbol == 'X':\n ... | [
"0.76523733",
"0.7438142",
"0.7015333",
"0.67466974",
"0.66231227",
"0.66016394",
"0.6567771",
"0.6409818",
"0.63429654",
"0.617151",
"0.6162875",
"0.61107934",
"0.61007094",
"0.6049435",
"0.6040592",
"0.59748125",
"0.5921833",
"0.5870341",
"0.58006924",
"0.5767333",
"0.57391... | 0.7877516 | 0 |
get grid of global coordinates | def IaPK(YKHO):
return YKHO._Vals | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fhJi(YKHO):\n EcVT, fuBA, Nk6w = YKHO.getGridMesh()\n pdhd = YKHO.getGridData()\n ut5U = YKHO.getGridStdErr()\n ywwl = YKHO.getGridOccu()\n return (EcVT, fuBA, Nk6w, pdhd, ut5U, ywwl)",
"def aYvt(YKHO):\n Ry0I = YKHO.x_elements\n sjLe = YKHO.y_elements\n SxSJ = YKHO.x_limit\n BMfG ... | [
"0.765124",
"0.7585675",
"0.75797755",
"0.7477356",
"0.74452674",
"0.7407936",
"0.7374085",
"0.7347886",
"0.7268523",
"0.72147924",
"0.72118187",
"0.71733606",
"0.71695536",
"0.7167531",
"0.7163034",
"0.71551937",
"0.71551937",
"0.71551937",
"0.71551937",
"0.7143087",
"0.7120... | 0.0 | -1 |
Return True if the current user is allowed to administer the site. | def THQ2(CBIr):
if CBIr:
SH4B = FYrf.AppUser.get_app_user(CBIr.email())
if SH4B is not None:
return SH4B.is_admin
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tujY(YKHO):\n return YKHO.IsCurrentUserSuperAdmin() or PDtd.IsAdmin(DW23.get_current_user().email())",
"def _Kb1(YKHO):\n if YKHO.is_superuser():\n return True\n for LmAn in vPBo.global_roles:\n if YKHO.has_role(LmAn):\n return True",
"def AiX_(YKHO):\n return YKHO.is_s... | [
"0.82180506",
"0.8213211",
"0.82045186",
"0.81877196",
"0.81602854",
"0.81294",
"0.8111816",
"0.8085375",
"0.8079653",
"0.8026814",
"0.8006593",
"0.79252684",
"0.7892523",
"0.7880901",
"0.787937",
"0.787937",
"0.787937",
"0.78789836",
"0.7865545",
"0.78411716",
"0.78356826",
... | 0.835062 | 0 |
Return True if the user is allowed to view the given feature. | def KACt(KFeP, DWf9):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E2gM(CBIr, RDhP):\n if not KACt(CBIr, RDhP):\n return False\n return p4oN(CBIr)",
"def p4oN(CBIr):\n return aqKU(CBIr)",
"def Cs37(CBIr, RDhP, oia9):\n if not KACt(CBIr, RDhP):\n return False\n if THQ2(CBIr):\n return True\n Ogoj = CBIr is not None and CBIr.email() in... | [
"0.79884166",
"0.7539616",
"0.74352163",
"0.7354019",
"0.72125405",
"0.7168066",
"0.71071106",
"0.70616186",
"0.70616186",
"0.7029287",
"0.7010753",
"0.69530684",
"0.69298536",
"0.6917126",
"0.68698645",
"0.6831951",
"0.681625",
"0.6813873",
"0.6813873",
"0.68108636",
"0.6802... | 0.79402477 | 1 |
Return True if the user is allowed to approve the given feature. | def Cs37(CBIr, RDhP, oia9):
if not KACt(CBIr, RDhP):
return False
if THQ2(CBIr):
return True
Ogoj = CBIr is not None and CBIr.email() in oia9
return Ogoj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E2gM(CBIr, RDhP):\n if not KACt(CBIr, RDhP):\n return False\n return p4oN(CBIr)",
"def BS0X(YKHO) -> bool:\n return YKHO.status == horj.APPROVED",
"def p4oN(CBIr):\n return aqKU(CBIr)",
"def BS0X(YKHO):\n return YKHO._info[YKHO.fields['status']] == 'Approve'",
"def Dtg_(YKHO, eOtH... | [
"0.72968155",
"0.71811837",
"0.70468944",
"0.6849344",
"0.67352134",
"0.67001003",
"0.6649676",
"0.6406423",
"0.6359101",
"0.6309712",
"0.62961525",
"0.61983377",
"0.617258",
"0.6166259",
"0.6089728",
"0.6089728",
"0.6085928",
"0.60844004",
"0.6068765",
"0.603739",
"0.6026282... | 0.8792509 | 0 |
Adds numeric categorical data to array based on polygon col values. For multiple time periods, multiple copies are made, one for each time period. | def Iv3_(nPrm, Crrw, fvDH, M_u8='cat1'):
if not isinstance(Crrw, zuVY.DataArray):
Crrw = j49D(Crrw, col=fvDH, data=nPrm)
Crrw['band'] = [M_u8]
if not nPrm.gw.has_time_coord:
nPrm = nPrm.assign_coords(coords={'time': 't1'}).expand_dims(dim='time').transpose('time', 'band', 'y', 'x')
C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O4ib(nPrm):\n ACia = oyIN.zeros((nPrm.shape[0], 4))\n for YRbF in range(len(ACia)):\n ACia[YRbF][int(nPrm[YRbF])] = 1\n return ACia",
"def AkZl(YKHO, hkxX, mWFP, UDiA):\n lGE9 = ITS7.time()\n EzjL = Tw44(mWFP)\n YKHO[mWFP] = EzjL\n fvDH = YKHO.keys().index(mWFP)\n mSrU = []\n ... | [
"0.5952336",
"0.5590848",
"0.5543105",
"0.5393453",
"0.52893806",
"0.5283677",
"0.5277508",
"0.52774864",
"0.52698445",
"0.5252532",
"0.5202931",
"0.5179856",
"0.5126594",
"0.51106733",
"0.5087038",
"0.50686324",
"0.5064345",
"0.5053584",
"0.5048911",
"0.5048119",
"0.5041189"... | 0.63642824 | 0 |
Make mask tensor containing indices of padded part. | def saPS(Fbjb, fUYa=None, m0Cl=-1):
if m0Cl == 0:
raise ValueError('length_dim cannot be 0: {}'.format(m0Cl))
if not isinstance(Fbjb, list):
Fbjb = Fbjb.tolist()
lHmx = int(len(Fbjb))
if fUYa is None:
KLk8 = int(max(Fbjb))
else:
KLk8 = fUYa.size(m0Cl)
V7sn = ht2j.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FPWK() -> ht2j.Tensor:\n return ht2j.tensor([[0, 1, 3, 3], [2, 4, 2, 1], [1, 2, 2, 0], [2, 255, 255, 255]], dtype=ht2j.int)",
"def Mi3O(YKHO, input, KeVS):\n b7De = (input != KeVS).unsqueeze(1)\n return b7De",
"def JB8t(YKHO, zZcM: Tensor):\n xZIv = (zZcM != YKHO.src_pad_idx).unsqueeze(1).unsqu... | [
"0.71316606",
"0.7114337",
"0.7055601",
"0.69803",
"0.6922219",
"0.68371505",
"0.68092597",
"0.68032235",
"0.6768108",
"0.6763818",
"0.66830766",
"0.6661362",
"0.6661362",
"0.665119",
"0.6650099",
"0.6631671",
"0.6578279",
"0.65782255",
"0.65782255",
"0.6567019",
"0.6567019",... | 0.6087001 | 81 |
Returns an evolver of this object. | def GLz_(YKHO):
return K9kp(YKHO.__class__, YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GLz_(YKHO):\n return neOD._Evolver(YKHO)",
"def HkFO(YKHO):\n raise NotImplementedError",
"def Ty9i(YKHO):\n return YKHO.veto",
"def Ty9i(YKHO):\n return YKHO.veto",
"def qhmh(YKHO):\n return jLnD.Versor(YKHO)",
"def acyv(YKHO):\n return YKHO._vent",
"def ut5U(YKHO):\n return Y... | [
"0.7484314",
"0.6648106",
"0.6517587",
"0.6517587",
"0.6434506",
"0.63721615",
"0.6117199",
"0.6097453",
"0.6097453",
"0.5990517",
"0.58769506",
"0.58596134",
"0.5851424",
"0.5848476",
"0.58170193",
"0.57855964",
"0.5784099",
"0.57536316",
"0.57536316",
"0.57536316",
"0.57467... | 0.78597075 | 0 |
Curvature Distribution of the curvature per source, equivalent to the beta parameter for a LogParabola spectral model. | def X74i(YKHO, eCGt=False):
if eCGt:
YKHO.df['curvature'] = oyIN.array([C3ST.curvature() for C3ST in YKHO.df.model])
return
assert 'curvature' in YKHO.df, 'Curvature not calculated'
jQ3Z = YKHO.df
DmJT = oyIN.asarray([exwG.startswith('PSR') for exwG in jQ3Z.index], bool)
LZpg, aNZO =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X74i(YKHO):\n B9Au = 0\n GUUu = YKHO.average_fit\n return (1 + (2 * GUUu[0] * B9Au + GUUu[1]) ** 2) ** 1.5 / oyIN.absolute(2 * GUUu[0])",
"def lnkH(WKvO):\n return jkg5(WKvO) / (1 + dWbc(WKvO) ** 2) ** 1.5",
"def _v41(YKHO) -> None:\n BJ1H = XTiz.dot\n WHx2 = XTiz.cross\n D4LM = XTiz.a... | [
"0.68970525",
"0.6621011",
"0.64874554",
"0.638479",
"0.6325954",
"0.62076277",
"0.6201335",
"0.6112863",
"0.6091887",
"0.60872984",
"0.59870887",
"0.5985579",
"0.5963906",
"0.59307563",
"0.5919613",
"0.59194505",
"0.5915717",
"0.5904483",
"0.5899343",
"0.5850731",
"0.5846099... | 0.6247772 | 5 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '[BaseModel] ({}) {}'.format(YKHO.id, YKHO.__dict__)",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wOed(Y... | [
"0.8134686",
"0.7896026",
"0.755246",
"0.7370341",
"0.7339812",
"0.73356754",
"0.731086",
"0.73009706",
"0.7290239",
"0.72430193",
"0.72414804",
"0.7218284",
"0.71998584",
"0.71998584",
"0.7156434",
"0.7117402",
"0.7117402",
"0.7117402",
"0.7104722",
"0.7104722",
"0.7098051",... | 0.0 | -1 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '[BaseModel] ({}) {}'.format(YKHO.id, YKHO.__dict__)",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wOed(Y... | [
"0.8134815",
"0.7896117",
"0.7551975",
"0.73699284",
"0.73402196",
"0.7335666",
"0.7311286",
"0.73011637",
"0.72905505",
"0.7242906",
"0.72419995",
"0.72191435",
"0.7199848",
"0.7199848",
"0.71561444",
"0.7117234",
"0.7117234",
"0.7117234",
"0.7105009",
"0.7105009",
"0.709816... | 0.0 | -1 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '[BaseModel] ({}) {}'.format(YKHO.id, YKHO.__dict__)",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wOed(Y... | [
"0.8134686",
"0.7896026",
"0.755246",
"0.7370341",
"0.7339812",
"0.73356754",
"0.731086",
"0.73009706",
"0.7290239",
"0.72430193",
"0.72414804",
"0.7218284",
"0.71998584",
"0.71998584",
"0.7156434",
"0.7117402",
"0.7117402",
"0.7117402",
"0.7104722",
"0.7104722",
"0.7098051",... | 0.0 | -1 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '[BaseModel] ({}) {}'.format(YKHO.id, YKHO.__dict__)",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wOed(Y... | [
"0.8134815",
"0.7896117",
"0.7551975",
"0.73699284",
"0.73402196",
"0.7335666",
"0.7311286",
"0.73011637",
"0.72905505",
"0.7242906",
"0.72419995",
"0.72191435",
"0.7199848",
"0.7199848",
"0.71561444",
"0.7117234",
"0.7117234",
"0.7117234",
"0.7105009",
"0.7105009",
"0.709816... | 0.0 | -1 |
Display the active data in the gui. Creates a new heatmap for the current active data. Then the function draws the figure onto the canvas and updates the stats in the statistics pane. | def dRXn(YKHO):
QrM1.ioff()
QrM1.gcf().clf()
nPrm = YKHO.active_4d.get_data()
uuEx.heatmap(nPrm, vmin=0, vmax=YKHO.active_4d.max_val, cmap=YKHO.cmap, xticklabels=False, yticklabels=False, square=1)
QrM1.tight_layout()
if YKHO.sat.get() != 0:
YKHO.draw_image()
YKHO.draw_figure()
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def stOF(YKHO):\n if len(YKHO.selected_matrices) == 0:\n YKHO.gb.no_selection_error()\n return\n LZpg = QrM1.figure(figsize=(8 * len(YKHO.selected_matrices), 8))\n LZpg.suptitle('Heat Map', fontsize=18)\n if YKHO.settings['Heat map coloring'][0].capitalize() == 'Grayscale':\n QrM1.... | [
"0.67922515",
"0.66466475",
"0.65301734",
"0.6474102",
"0.64159024",
"0.6365453",
"0.63035846",
"0.63006544",
"0.6285639",
"0.62675655",
"0.6247892",
"0.61865366",
"0.6184615",
"0.61797446",
"0.61519223",
"0.61414206",
"0.613727",
"0.6110008",
"0.60935575",
"0.6073967",
"0.60... | 0.76522744 | 0 |
Inserts a word into the trie. | def JPHp(YKHO, GIN8: str) -> None:
XP5J = YKHO.root
for YRbF in GIN8:
if XP5J.children.get(YRbF) is None:
jzdc = ep_x()
jzdc.char_str = YRbF
XP5J.children[YRbF] = jzdc
XP5J = XP5J.children[YRbF]
XP5J.is_word = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True",
"def JPHp(YKHO, GIN8):\n TI1B = YKHO.root\n for Z9rn in GIN8:\... | [
"0.89349246",
"0.88754433",
"0.88664436",
"0.8845666",
"0.88351166",
"0.8829387",
"0.88241696",
"0.88215303",
"0.88025844",
"0.87970716",
"0.87917984",
"0.87870646",
"0.8786165",
"0.8785743",
"0.87801075",
"0.8779744",
"0.87764865",
"0.87708014",
"0.8767584",
"0.8757558",
"0.... | 0.8875727 | 1 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
XP5J = YKHO.root
for sZqf in GIN8:
XP5J = XP5J.children.get(sZqf)
if XP5J is None:
return False
return XP5J.is_word | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word",
"def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')... | [
"0.82730263",
"0.8269949",
"0.8265362",
"0.8215955",
"0.8191048",
"0.81751376",
"0.8170583",
"0.8132793",
"0.7982098",
"0.7974155",
"0.7966748",
"0.79547614",
"0.7881724",
"0.78772503",
"0.78665155",
"0.7835434",
"0.7820085",
"0.7813922",
"0.78119844",
"0.7795143",
"0.7790677... | 0.76549906 | 32 |
Returns if there is any word in the trie that starts with the given prefix. | def BYxH(YKHO, y0cW: str) -> bool:
XP5J = YKHO.root
for sZqf in y0cW:
XP5J = XP5J.children.get(sZqf)
if XP5J is None:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals... | [
"0.86418957",
"0.8456077",
"0.8439758",
"0.84152204",
"0.8414917",
"0.8406607",
"0.83812594",
"0.8369774",
"0.83355415",
"0.8326945",
"0.83266926",
"0.8239315",
"0.8228612",
"0.8172047",
"0.81602836",
"0.81522566",
"0.81466633",
"0.811517",
"0.80111045",
"0.79831576",
"0.7983... | 0.7863826 | 31 |
Find the file containing the symbol, and return its file descriptor. The symbol should be a fully qualified name including the file | def RaNC(YKHO, o61b: str) -> Tx7O:
try:
return super().FindFileContainingSymbol(o61b)
except KeyError:
pass
QePW = D3Jt(file_containing_symbol=o61b)
geh0 = YKHO._do_one_request(QePW, key=o61b)
YKHO._add_file_from_response(geh0.file_descriptor_response)
return super().FindFileCont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pZi9(YKHO, o61b):\n KTg0 = YKHO.default_header.getSymbolTableCommand()\n if KTg0 is None:\n return None\n zqKo = YKHO.default_header_offset + KTg0.symoff\n C9XP = YKHO.default_header_offset + KTg0.stroff\n AEpM = zqKo\n for YRbF in range(KTg0.nsyms):\n N10k = F169(YKHO.default_e... | [
"0.6818941",
"0.6485645",
"0.6276015",
"0.6223416",
"0.61001974",
"0.60945153",
"0.6065366",
"0.6046385",
"0.58740234",
"0.5868228",
"0.58344996",
"0.5825415",
"0.58161557",
"0.5814371",
"0.5784644",
"0.57805866",
"0.57341886",
"0.5689169",
"0.56640184",
"0.5575727",
"0.55728... | 0.66661114 | 1 |
Prepare hidden inputs for RNN based decoder. | def q2UI(g4y1, aHnM, wjQX, ksJ8, jcva, JUet):
YcKS = r6wY(g4y1, aHnM, ksJ8, jcva)
wXWl = ZylS.nn.embedding_lookup(wjQX, YcKS)
GMOZ = ZylS.shape(wXWl)[0]
pTS0 = ZylS.shape(wXWl)[1]
qQO_ = wXWl.shape[2]
JUet = ZylS.reshape(JUet, [GMOZ, 1])
uDSd = ZylS.nn.embedding_lookup(wjQX, JUet)
wXWl =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n H2v2 = dvgN(dvgN(YKHO.height, 2), 2)\n TVTK = dvgN(dvgN(YKHO.width, 2), 2)\n YKHO.hiddens1 = D5BU(YKHO.batch_size, h1Dz, [H2v2, TVTK], 'encoder1')\n H2v2 = dvgN(H2v2, 2)\n TVTK = dvgN(TVTK, 2)\n YKHO.hiddens2 = D5BU(YKHO.batch_size, PrwT, [H2v2, TVTK], 'encoder2')\n H2v2 = dv... | [
"0.68563485",
"0.6616956",
"0.6368522",
"0.6260934",
"0.6161131",
"0.6157493",
"0.6156238",
"0.6105667",
"0.6102103",
"0.6087965",
"0.6083203",
"0.6082779",
"0.6080374",
"0.60641813",
"0.60469925",
"0.60414374",
"0.60311824",
"0.6027635",
"0.60258657",
"0.602411",
"0.60233796... | 0.0 | -1 |
wrapper over boxlist nms, moved .nms from _C to ._nms Returns boxes, scores tuple after nms | def lIj3(oUSw, cCrA, ROpF, gwAu=0.5, Tuqy='xyxy'):
G9xk = BHqg(oUSw, cCrA, ROpF, mode=Tuqy)
HO8p = KxOF(G9xk, gwAu)
uZq5 = HO8p.extra_fields['keep']
return (HO8p.bbox, HO8p.extra_fields['scores'], uZq5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lIj3(oUSw, cCrA, **B2fa):\n if 'top_k' in B2fa:\n H42b = B2fa['top_k']\n else:\n H42b = 0\n assert 0 <= H42b\n if 'score_threshold' in B2fa:\n PWAq = B2fa['score_threshold']\n else:\n PWAq = 0.3\n assert 0 < PWAq\n if 'nms_threshold' in B2fa:\n pv3l = B2f... | [
"0.7350277",
"0.7292291",
"0.7135963",
"0.7079904",
"0.69381595",
"0.68618995",
"0.67691666",
"0.67349607",
"0.6725651",
"0.6702901",
"0.6642589",
"0.6630421",
"0.6630421",
"0.66085213",
"0.6519214",
"0.6519214",
"0.6507146",
"0.64774895",
"0.6432925",
"0.6430092",
"0.6425645... | 0.74795246 | 0 |
Test that empty_permitted is set to False upon creation (i.e. cannot submit an empty form). | def NtYq(YKHO):
ET90 = oL79()
YKHO.assertEqual(ET90.empty_permitted, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wSwd(YKHO):\n YKHO.form.__raw__ = {'text': ''}\n YKHO.assertTrue(YKHO.form.__valid__)\n YKHO.assertEqual(YKHO.form['text'].tag, 'div')\n YKHO.assertEqual(YKHO.form['text'].text, None)",
"def CFX7(YKHO):\n geh0 = YKHO.client.post(YKHO.url, data={}, follow=True)\n YKHO.assertContains(geh0, 'P... | [
"0.7053798",
"0.68860424",
"0.6885214",
"0.68449724",
"0.68244004",
"0.6728462",
"0.6668923",
"0.6664471",
"0.6661696",
"0.6583651",
"0.65376383",
"0.6499975",
"0.64753026",
"0.6464676",
"0.6449486",
"0.64468545",
"0.6436507",
"0.64243084",
"0.64206773",
"0.63107663",
"0.6306... | 0.85695195 | 0 |
Flips image so that most energetic half is on 'side' | def fh2j(YKHO, HEZd='r'):
ku7w = YKHO.image_array
upAO = ku7w.sum(axis=0)
Tf9J = ku7w.shape[0] / 2.0
vC9B, Mkmy = (oyIN.int(oyIN.floor(Tf9J)), oyIN.int(oyIN.ceil(Tf9J)))
ykBB, eLLl = (oyIN.sum(upAO[:vC9B]), oyIN.sum(upAO[Mkmy:]))
if 'r' in HEZd:
if eLLl > ykBB:
return ku7w
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tGOW(VOC_):\n return xPm2(Hl5t(VOC_))",
"def zDnU(YKHO, LNo8):\n LNo8 = oyIN.fliplr(LNo8)\n return LNo8",
"def xCtz(LNo8):\n return LNo8[:, ::-1]",
"def P7IO(YKHO, VXjJ):\n return [VXjJ.flip(2), VXjJ.flip(3)]",
"def fh2j(YKHO, Xn71):\n return Xn71",
"def bEsp(YKHO, VXjJ, XSoh='horiz... | [
"0.7441799",
"0.73722637",
"0.7179586",
"0.7179193",
"0.7150579",
"0.7127076",
"0.70864904",
"0.7042856",
"0.7012335",
"0.6971956",
"0.69504327",
"0.6931181",
"0.6925708",
"0.69125736",
"0.68891716",
"0.68891066",
"0.6882416",
"0.6866612",
"0.68616796",
"0.6860295",
"0.678252... | 0.7823869 | 0 |
calculate phi separation accounting for discontinuity | def br2l(EBgd, HpuQ):
return oyIN.arccos(oyIN.cos(abs(EBgd - HpuQ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rVnq(YKHO):\n rm9X = YKHO.p['deldblu'] * YKHO.nn\n ycBG = oyIN.floor(rm9X / 2.0)\n bgae = ap9_(rm9X, ycBG)\n bgae[bgae == oyIN.inf] = HwRy.float_info.max\n return ycBG * (1.0 - oyIN.power(2, -rm9X) * bgae)",
"def rVnq(RQvf):\n from numpy import ma\n L_Hj = getattr(RQvf.user, 'drytol', E9... | [
"0.69801426",
"0.67347205",
"0.67328763",
"0.66789484",
"0.65467626",
"0.6442917",
"0.644119",
"0.6430334",
"0.63827723",
"0.62733036",
"0.6273136",
"0.62474585",
"0.61922747",
"0.61903155",
"0.6170174",
"0.61340797",
"0.61245817",
"0.6115521",
"0.6107588",
"0.6092544",
"0.60... | 0.65197176 | 5 |
Returns a dict to be passed to Keras for adjusting loss functions based on class imbalances. | def PGfh(tk5Y):
jqQq = RQEd[tk5Y]
return {0: 1.0, 1: 1 / jqQq} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N8L0(YKHO):\n return {'loss_cls': YKHO.softmax_cross_entropy_loss(), 'loss_box_reg': YKHO.smooth_l1_loss()}",
"def N8L0(YKHO):\n return {'loss_cls': YKHO.softmax_cross_entropy_loss(), 'loss_box_reg': YKHO.smooth_l1_loss()}",
"def N8L0(YKHO):\n return {'loss_cls': YKHO.softmax_cross_entropy_loss(),... | [
"0.6356241",
"0.6356241",
"0.6356241",
"0.6356241",
"0.62274814",
"0.61229146",
"0.61167526",
"0.61091214",
"0.6093408",
"0.6041943",
"0.6041943",
"0.6015914",
"0.60149336",
"0.6014276",
"0.6000944",
"0.5993886",
"0.5930408",
"0.5926621",
"0.5920902",
"0.5908444",
"0.5857497"... | 0.63431305 | 4 |
L_out = floor( (L_in + 2padding dilation(kernel size 1)1)/stride + 1) | def O416(rb7a, Norb, zNgr, Ot1W, _0fC=1, dvgN=0, ivFb=1):
bbhR = zNgr
print('getting flat len')
for bGrB in range(rb7a):
print('flat len: {}'.format(bbhR))
bbhR = bbhR + 2 * dvgN - ivFb * (Ot1W - 1) - 1
bbhR = int(bbhR / _0fC)
bbhR += 1
return bbhR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xl1a(FCPk, Ot1W, _0fC, ivFb=1, dvgN=0, TWfd=0):\n return epAf.floor((FCPk + 2 * dvgN - ivFb * (Ot1W - 1) - 1) / _0fC) + 1",
"def jNvr(Ot1W, ivFb, _0fC):\n return (_0fC - 1 + ivFb * (Ot1W - 1)) // 2",
"def jNvr(Ot1W, ivFb, _0fC):\n return (_0fC - 1 + ivFb * (Ot1W - 1)) // 2",
"def dvgN(_qKk, F1RG... | [
"0.73108",
"0.72359204",
"0.72121537",
"0.6950237",
"0.6692525",
"0.6620869",
"0.65538794",
"0.65138954",
"0.6469127",
"0.6469127",
"0.64617467",
"0.6450783",
"0.6399354",
"0.63796943",
"0.6364553",
"0.6343067",
"0.622674",
"0.6222018",
"0.62170786",
"0.6192332",
"0.61624086"... | 0.6083607 | 30 |
Get the sensitivity matrix A based on the array of field index. | def nBnC(YKHO, Cdtm, lawl):
ac8D = Cdtm[lawl, :, :]
ac8D = ac8D.reshape((-1, Cdtm.shape[2]))
eWyd, t0yf = ac8D.shape
if eWyd < t0yf:
raise RuntimeError('Equation number < variable number.')
return ac8D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYBV(YKHO, fUYa):\n ROpF = (len(fUYa), len(fUYa))\n eQfy = YKHO._beta * oyIN.exp(-YKHO._beta * fUYa) + oyIN.exp(-YKHO._beta)\n vb7U = o7sj.diags(eQfy, shape=ROpF)\n return vb7U",
"def nzBN(YKHO):\n YKHO.A = oyIN.eye(YKHO.n_observations, YKHO.n_states)",
"def Z1Fa(YKHO, r8hN, eHNT=None):\n ... | [
"0.58673906",
"0.5527795",
"0.53597444",
"0.52997273",
"0.52964634",
"0.52900875",
"0.5271062",
"0.5248153",
"0.5195915",
"0.5158634",
"0.5150877",
"0.51495457",
"0.50981414",
"0.5091115",
"0.50816125",
"0.5060861",
"0.50596124",
"0.5053522",
"0.50534505",
"0.502834",
"0.5022... | 0.7454201 | 0 |
Initialize empty stack based on Python list | def FIMM(YKHO):
YKHO._data = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HaB_():\n return S9Ut(0, None)",
"def FIMM(YKHO):\n YKHO._list = []\n YKHO._top = -1",
"def FIMM(YKHO):\n YKHO.stack = list()",
"def FIMM(YKHO, FjhH):\n YKHO.stack = [[FjhH, 0]]",
"def FIMM(YKHO, FjhH):\n YKHO.stack = [[FjhH, 0]]",
"def FIMM(YKHO, FjhH):\n YKHO.stack = [[FjhH, 0]... | [
"0.7588954",
"0.75207126",
"0.7503077",
"0.74553347",
"0.743875",
"0.743875",
"0.74251467",
"0.7385731",
"0.7370956",
"0.7366111",
"0.735652",
"0.73333234",
"0.7306621",
"0.72795063",
"0.7274557",
"0.7274557",
"0.7221935",
"0.7209564",
"0.71767694",
"0.71767694",
"0.71767694"... | 0.0 | -1 |
Return True if the stack is empty, return False otherwise | def FBfn(YKHO):
return len(YKHO._data) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.stack == []",
"def lsmZ(YKHO):\n if YKHO.myStack.empty():\n return True\n else:\n return False",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def A4KR(Y... | [
"0.9201775",
"0.91396445",
"0.9110301",
"0.9110301",
"0.9110301",
"0.9051541",
"0.902624",
"0.902624",
"0.8996406",
"0.89836407",
"0.89836407",
"0.8969089",
"0.8933513",
"0.8922169",
"0.8922169",
"0.8906359",
"0.8868791",
"0.8862269",
"0.88499475",
"0.8845642",
"0.88294804",
... | 0.0 | -1 |
Initialize empty queue based on Python list | def FIMM(YKHO):
YKHO._data = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._data = [None] * vaJ1.Default_capacity\n YKHO._size = 0\n YKHO._front = 0",
"def FIMM(YKHO, zNig: int) -> None:\n YKHO.queue = [None] * zNig\n YKHO.index = 0\n YKHO.top = 0",
"def FIMM(YKHO):\n super(maQw, YKHO).__init__()\n YKHO._front_index = 0\n YKHO._back_i... | [
"0.77355015",
"0.76202404",
"0.7558525",
"0.7497914",
"0.7464049",
"0.74467653",
"0.7374283",
"0.73623306",
"0.73533225",
"0.7333526",
"0.7329816",
"0.7329816",
"0.73244816",
"0.73218805",
"0.73218805",
"0.73218805",
"0.73218805",
"0.73218805",
"0.73192495",
"0.7305889",
"0.7... | 0.0 | -1 |