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 |
|---|---|---|---|---|---|---|
String for representing the Model object. | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82368803",
"0.79901737",
"0.7849152",
"0.78468513",
"0.77520275",
"0.7625378",
"0.7625378",
"0.76225406",
"0.76225406",
"0.75483394",
"0.7522958",
"0.7470355",
"0.7469358",
"0.7447144",
"0.7447144",
"0.74314755",
"0.7427648",
"0.7389925",
"0.7351721",
"0.73424315",
"0.7322... | 0.0 | -1 |
Returns the url to access a detail record for this food. | def hlzF(YKHO):
return gxEw('food-detail', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlzF(YKHO):\n return gxEw('food-detail', args=[str(YKHO.fdc_id)])",
"def iLuo(Y5DL):\n return gxEw('pizza:pizza-detail', args=[Y5DL])",
"def iLuo(rXcN):\n return gxEw('recipe:recipe-detail', args=[rXcN])",
"def iLuo(SfjB):\n return gxEw('recipe:ingredient-detail', args=[SfjB])",
"def iLuo(S... | [
"0.74671227",
"0.71243495",
"0.7071482",
"0.7060808",
"0.70545727",
"0.70312375",
"0.68994135",
"0.68791187",
"0.6856293",
"0.68512976",
"0.68512976",
"0.68512976",
"0.66784847",
"0.6663009",
"0.6644802",
"0.6644593",
"0.6605416",
"0.6603111",
"0.658827",
"0.65757436",
"0.650... | 0.7477379 | 0 |
Create a string for the allergens. This is required to display allergens in Admin. | def EVbu(YKHO):
return ', '.join((cJnA.name for cJnA in YKHO.allergens.all()[:3])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dmkz(YKHO):\n if int(YKHO.pid) % 100 < 85:\n mlB2 = ymGY.sub({'exclusion': 'no known allergies', 'exclusion_id': '160244002'}).done()\n YKHO.data.append(wOfW.sub({'models': mlB2}, escape=False).done())\n else:\n kPgw = fXGa.sub({'reaction': 'skin rash', 'reaction_id': '271807003', 'c... | [
"0.59842175",
"0.5753882",
"0.574667",
"0.5710786",
"0.56421727",
"0.5621876",
"0.56070304",
"0.55585194",
"0.5544435",
"0.5535527",
"0.5532151",
"0.5527261",
"0.55161804",
"0.55072445",
"0.5496245",
"0.54823154",
"0.5472345",
"0.5471237",
"0.54667765",
"0.5465392",
"0.545123... | 0.6836815 | 0 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82368803",
"0.79901737",
"0.7849152",
"0.78468513",
"0.77520275",
"0.7625378",
"0.7625378",
"0.76225406",
"0.76225406",
"0.75483394",
"0.7522958",
"0.7470355",
"0.7469358",
"0.7447144",
"0.7447144",
"0.74314755",
"0.7427648",
"0.7389925",
"0.7351721",
"0.73424315",
"0.7322... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82368803",
"0.79901737",
"0.7849152",
"0.78468513",
"0.77520275",
"0.7625378",
"0.7625378",
"0.76225406",
"0.76225406",
"0.75483394",
"0.7522958",
"0.7470355",
"0.7469358",
"0.7447144",
"0.7447144",
"0.74314755",
"0.7427648",
"0.7389925",
"0.7351721",
"0.73424315",
"0.7322... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82368803",
"0.79901737",
"0.7849152",
"0.78468513",
"0.77520275",
"0.7625378",
"0.7625378",
"0.76225406",
"0.76225406",
"0.75483394",
"0.7522958",
"0.7470355",
"0.7469358",
"0.7447144",
"0.7447144",
"0.74314755",
"0.7427648",
"0.7389925",
"0.7351721",
"0.73424315",
"0.7322... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82363755",
"0.7990512",
"0.78485423",
"0.784718",
"0.7751073",
"0.76245975",
"0.76245975",
"0.7623291",
"0.7623291",
"0.7548185",
"0.75231767",
"0.74707526",
"0.74700165",
"0.74471915",
"0.74471915",
"0.7430331",
"0.7426486",
"0.739002",
"0.73506206",
"0.7341893",
"0.73223... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82368803",
"0.79901737",
"0.7849152",
"0.78468513",
"0.77520275",
"0.7625378",
"0.7625378",
"0.76225406",
"0.76225406",
"0.75483394",
"0.7522958",
"0.7470355",
"0.7469358",
"0.7447144",
"0.7447144",
"0.74314755",
"0.7427648",
"0.7389925",
"0.7351721",
"0.73424315",
"0.7322... | 0.0 | -1 |
1. Check the list of Books for the book with the 'user_id' 2. Change it's availability to 'not available' 3. Increment the number of times that the particular book has been borrowed 4. Add the num of borrows for the particular user 5. Increment the number of pending returns for the particular user 6. Increment the colu... | def fxyu(YKHO, ABua):
m3aR = rLdf.read_csv('Book_Log.csv')
m3aR.loc[m3aR.Book_Id == ABua, 'Available'] = 'No'
m3aR.loc[m3aR.Book_Id == ABua, 'Number_of_Times_Borrowed'] += 1
m3aR.to_csv('Book_Log.csv', index=False)
gFsc = rLdf.read_csv('Profile.csv')
gFsc.loc[gFsc.User_Id == YKHO.user_id, 'Num_o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkWk(YKHO, ABua):\n m3aR = rLdf.read_csv('Book_Log.csv')\n m3aR.loc[m3aR.Book_Id == ABua, 'Available'] = 'Yes'\n m3aR.to_csv('Book_Log.csv', index=False)\n gFsc = rLdf.read_csv('Profile.csv')\n gFsc.loc[gFsc.User_Id == YKHO.user_id, 'Pending_Returns'] -= 1\n gFsc.to_csv('Profile.csv', index=F... | [
"0.63361025",
"0.615318",
"0.5925247",
"0.584249",
"0.58414596",
"0.57402575",
"0.56816703",
"0.5667455",
"0.5586383",
"0.5569483",
"0.5567444",
"0.5505203",
"0.5497725",
"0.5419078",
"0.53945494",
"0.538953",
"0.53767437",
"0.53726333",
"0.53694975",
"0.5309513",
"0.53064626... | 0.76032585 | 0 |
Returns a normalized url, without params | def H6JH(bD7m):
ht58, RYr6, pmON, NArs, xDcj, vBtp = KVWQ(bD7m)
if ht58 == 'http' and RYr6[-3:] == ':80':
RYr6 = RYr6[:-3]
elif ht58 == 'https' and RYr6[-4:] == ':443':
RYr6 = RYr6[:-4]
if ht58 not in ('http', 'https'):
raise ValueError('Unsupported URL %s (%s).' % (bD7m, ht58))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gmoQ(YKHO, bD7m):\n pass",
"def QQ6h(YKHO, bD7m):\n return ''.join(bD7m.split('?')[:1])",
"def CkYf(bD7m):\n bD7m = wLfR(bD7m)\n uElJ = KVWQ(bD7m)\n huD5 = ZO_j(*uElJ)\n return Hfci(huD5).replace(' ', '%20')",
"def jwL7(YKHO, bD7m):\n if YKHO.base_url not in bD7m:\n bD7m = YKH... | [
"0.7412759",
"0.71545416",
"0.70994824",
"0.7092821",
"0.6951977",
"0.68522",
"0.67751026",
"0.67348975",
"0.66894984",
"0.667808",
"0.6638069",
"0.6624129",
"0.65674764",
"0.65447503",
"0.65199435",
"0.65174395",
"0.6484322",
"0.6473909",
"0.64557314",
"0.64523673",
"0.64475... | 0.7101329 | 2 |
Returns True if editor is not authenticated. | def ZNtf(YKHO):
return YKHO.editor is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n return False",
"def JvDI(YKHO, CBIr):\n if not CBIr:\n return False\n if UQP5.query.filter_by(domain=YKHO, user=CBIr).notempty():\n return True\n return False",
"def wC2y(YKHO):\n return False",
"def wC2y(YKHO):\n return YKHO.token is not None",
"def VtnB(Y... | [
"0.7056756",
"0.67664707",
"0.6759914",
"0.6647336",
"0.66259485",
"0.6624929",
"0.66187894",
"0.65577674",
"0.655594",
"0.655594",
"0.655594",
"0.655594",
"0.655594",
"0.655594",
"0.655594",
"0.6536583",
"0.65211695",
"0.65160924",
"0.6467499",
"0.645399",
"0.6432602",
"0.... | 0.6539105 | 15 |
Prints the current welcome message's markdown (botadmin only). | async def rawwelcome(YKHO, OaeV, *, mS46=None):
if YKHO.settings.getServerStat(OaeV.message.guild, 'SuppressMentions'):
htTT = True
else:
htTT = False
uJBC = OaeV.message.author.permissions_in(OaeV.message.channel).administrator
if not uJBC:
wwaw = YKHO.settings.getServerStat(Oae... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WuLk(YKHO):\n print(\"\\n \\x1b[0;34mWelcome to my game Dave,\\n I am putting myself to the fullest possible use,\\n which is all I think that any conscious entity can ever hope to do.\\n You are X's and I am O's.\\x1b[0m\\n \")",
"def kA2z():\n print(xL6Z)",
"def u... | [
"0.7406588",
"0.7032741",
"0.70266634",
"0.6973921",
"0.6925056",
"0.6802122",
"0.67003506",
"0.6661413",
"0.66411793",
"0.6615988",
"0.65822273",
"0.6568831",
"0.6557597",
"0.6489345",
"0.6456448",
"0.639696",
"0.6372226",
"0.63381416",
"0.6322855",
"0.63183326",
"0.6266606"... | 0.6763634 | 6 |
Returns a list of generated words. Their lengths are a normal distribution with the given mean and standard deviation. No words will be shorter than min or longer than max. If unique=True, the list will contain no duplicates. | def KOc2(YKHO, u54L, JBMS=7, xunR=3, min=5, max=12, CN9P=True, kcwm=True):
V22M = []
for YRbF in range(0, u54L):
len = int(tuKI.gauss(JBMS, xunR))
if len < min:
len = min
if len >= max:
len = max - 1
if kcwm:
JL2T = False
while not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eYo1(yLbG, Phg5: int=10) -> x1iM[str]:\n return [''.join(tuKI.choices(vIwR.ascii_letters, k=tuKI.randrange(1, Phg5))) for bGrB in range(yLbG)]",
"def cBzy():\n QPxx = []\n for bGrB in range(P7Pq):\n JGAT = ''.join((tuKI.choice(JqTN) for bGrB in range(cX4M)))\n QPxx.append(JGAT)\n re... | [
"0.6422513",
"0.6050651",
"0.6015586",
"0.6012532",
"0.59472555",
"0.5914378",
"0.5891233",
"0.5858978",
"0.5781046",
"0.5650079",
"0.56361824",
"0.5629991",
"0.5620267",
"0.5617659",
"0.55939716",
"0.55847305",
"0.55635285",
"0.55429286",
"0.55350006",
"0.5506975",
"0.549957... | 0.8328187 | 0 |
The displayed end time of the contribution. This is the end time of the poster session if applicable, otherwise the end time of the contribution itself. | def suy6(YKHO):
return YKHO.end_dt_poster or YKHO.end_dt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7pn(YKHO) -> str:\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n ... | [
"0.80937785",
"0.80423003",
"0.80423003",
"0.80423003",
"0.80423003",
"0.80423003",
"0.80423003",
"0.8037596",
"0.80118996",
"0.7909641",
"0.7827146",
"0.777302",
"0.7742624",
"0.7690751",
"0.7649954",
"0.76467913",
"0.7618272",
"0.7481959",
"0.7478078",
"0.74333626",
"0.7433... | 0.76585996 | 14 |
The displayed duration of the contribution. This is the duration of the poster session if applicable, otherwise the duration of the contribution itself. | def S4Q6(YKHO):
return YKHO.duration_poster or YKHO.duration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GHFB(YKHO):\n WbTE = YKHO.duration\n return '%dmn' % WbTE if WbTE < 60 else '%dh%dmn' % (WbTE / 60, WbTE % 60)",
"def EdTY(YKHO):\n return YKHO.duration",
"def WbTE(YKHO) -> str:\n return qe4Y.get(YKHO, 'duration')",
"def EdTY(YKHO):\n return YKHO._duration",
"def WbTE(YKHO):\n return... | [
"0.7974441",
"0.7951015",
"0.7938833",
"0.7758323",
"0.7716737",
"0.77124333",
"0.77079976",
"0.77079976",
"0.77079976",
"0.77079976",
"0.77079976",
"0.77079976",
"0.77079976",
"0.77079976",
"0.76808393",
"0.76756823",
"0.76756823",
"0.7591533",
"0.75714296",
"0.75607306",
"0... | 0.8296779 | 0 |
Whether the user can submit editables/papers. | def j04W(YKHO, CBIr):
if CBIr is None:
return False
if YKHO.abstract and YKHO.abstract.submitter == CBIr:
return True
return YKHO.can_manage(CBIr, 'submit', allow_admin=False, check_parent=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hO62(YKHO):\n return YKHO._can_edit",
"def hO62(YKHO, CBIr):\n if CBIr.has_perm('funding.make_application_decisions'):\n return True\n if YKHO.status in ('S', 'U'):\n if YKHO.applicant == CBIr:\n return True\n return False",
"def otSk(YKHO):\n ZrNc = tHSi.current_use... | [
"0.74645203",
"0.74535406",
"0.7443752",
"0.7383341",
"0.72865254",
"0.72333497",
"0.7187844",
"0.7171242",
"0.7138624",
"0.7010184",
"0.69138724",
"0.69074434",
"0.6893555",
"0.68639725",
"0.68298066",
"0.68028474",
"0.6802559",
"0.67994195",
"0.67833835",
"0.6772339",
"0.67... | 0.7212923 | 6 |
Function to get the check digit for a 10digit ISBN | def YDbx(AngD):
if len(AngD) != 9:
return None
try:
int(AngD)
except:
return None
K0A_ = int(sum(((YRbF + 2) * int(WKvO) for YRbF, WKvO in enumerate(reversed(AngD)))) % 11)
if K0A_ == 0:
DexU = 0
else:
DexU = 11 - K0A_
if DexU == 10:
DexU = 'X'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kuO2(Z5r0):\n return (11 - sum((WKvO * LVAh for WKvO, LVAh in enumerate(reversed(Z5r0), start=2))) % 11) % 11",
"def hqG2(LdrC):\n if not bPmH(LdrC):\n return None\n return '978' + LdrC[:-1] + WB0w('978' + LdrC[:-1])",
"def LwZS(Wxnj):\n\n def LIWp(Wxnj):\n GfdN = sum(((YRbF + 1) ... | [
"0.77909416",
"0.7584282",
"0.7100436",
"0.70262975",
"0.6939248",
"0.69108975",
"0.67823905",
"0.66797596",
"0.64592916",
"0.6424967",
"0.63975114",
"0.63956654",
"0.6387456",
"0.6340335",
"0.63295466",
"0.62538856",
"0.6249476",
"0.623075",
"0.6216581",
"0.62093645",
"0.618... | 0.75826526 | 2 |
Function to check the structure of a 10digit ISBN | def KKyU(LdrC):
return True if ZbWC.match(GJ4f, LdrC) else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nCYJ(Z5r0):\n return len(Z5r0) == 10 and (Z5r0[-1] == 'X' or Z5r0[-1].isdigit()) and all((Ko6S.isdigit() for Ko6S in Z5r0[:-1]))",
"def qutR(Z5r0):\n Z5r0 = Z5r0.replace('-', '')\n if not nCYJ(Z5r0):\n return False\n yGDb = 0\n for Ko6S, YRbF in zip(Z5r0, range(10, 0, -1)):\n if ... | [
"0.7864524",
"0.7812188",
"0.77779555",
"0.7737102",
"0.76406646",
"0.757667",
"0.750838",
"0.7481847",
"0.7286955",
"0.7223992",
"0.72080374",
"0.7205069",
"0.7053648",
"0.7025526",
"0.70145494",
"0.69374543",
"0.69361514",
"0.69151",
"0.69026655",
"0.66965425",
"0.66759837"... | 0.84989476 | 0 |
Function to check the structure of a 13digit ISBN | def sZbA(uwQH):
return True if ZbWC.match(xcpl, uwQH) else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKyU(LdrC):\n return True if ZbWC.match(GJ4f, LdrC) else False",
"def nCYJ(Z5r0):\n return len(Z5r0) == 10 and (Z5r0[-1] == 'X' or Z5r0[-1].isdigit()) and all((Ko6S.isdigit() for Ko6S in Z5r0[:-1]))",
"def qutR(Z5r0):\n Z5r0 = Z5r0.replace('-', '')\n if not nCYJ(Z5r0):\n return False\n ... | [
"0.81100017",
"0.77712923",
"0.7717341",
"0.7607334",
"0.7566762",
"0.7545081",
"0.7492911",
"0.74463516",
"0.74018836",
"0.7300379",
"0.72594255",
"0.7225687",
"0.71692985",
"0.7168893",
"0.7156128",
"0.7065713",
"0.7035766",
"0.69773364",
"0.6867407",
"0.6865494",
"0.684433... | 0.81984377 | 0 |
Function to validate a 10digit ISBN | def bPmH(LdrC):
LdrC = ZbWC.sub('[^0-9X]', '', LdrC.replace('x', 'X'))
if len(LdrC) != 10:
return False
return False if YDbx(LdrC[:-1]) != LdrC[-1] else True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(Z5r0: str) -> bool:\n Lg_1 = Z5r0.replace('-', '')\n xYvp = []\n kSXA = False\n if Lg_1:\n for hcXw in Lg_1:\n if hcXw == 'X':\n xYvp.append(10)\n elif hcXw != 'X' and hcXw.isalpha() or len(Lg_1) < 10 or len(Lg_1) > 10:\n break\n ... | [
"0.80596936",
"0.8028821",
"0.7925278",
"0.79117006",
"0.7895418",
"0.7839652",
"0.7791006",
"0.76350635",
"0.76338065",
"0.7524466",
"0.7464453",
"0.73531514",
"0.72836924",
"0.7262845",
"0.72097874",
"0.7156685",
"0.6974686",
"0.69322586",
"0.68608713",
"0.68188405",
"0.670... | 0.7822473 | 6 |
Function to validate a 13digit ISBN | def WA7B(uwQH):
uwQH = ZbWC.sub('[^0-9X]', '', uwQH.replace('x', 'X'))
if len(uwQH) != 13:
return False
if uwQH[0:3] not in ('978', '979'):
return False
return False if WB0w(uwQH[:-1]) != uwQH[-1] else True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qutR(Z5r0):\n Z5r0 = Z5r0.replace('-', '')\n if not nCYJ(Z5r0):\n return False\n yGDb = 0\n for Ko6S, YRbF in zip(Z5r0, range(10, 0, -1)):\n if Ko6S == 'X':\n yGDb += 10 * YRbF\n else:\n yGDb += int(Ko6S) * YRbF\n return yGDb % 11 == 0",
"def VIby(Wxn... | [
"0.7860379",
"0.78603715",
"0.78486043",
"0.78418535",
"0.7840635",
"0.77726763",
"0.77594393",
"0.77410346",
"0.768925",
"0.7428902",
"0.73715585",
"0.72585046",
"0.7256098",
"0.7151374",
"0.71414113",
"0.70955205",
"0.70610785",
"0.7027555",
"0.70113325",
"0.6981061",
"0.67... | 0.77126926 | 8 |
Function to convert a 10digit ISBN to a 13digit ISBN | def hqG2(LdrC):
if not bPmH(LdrC):
return None
return '978' + LdrC[:-1] + WB0w('978' + LdrC[:-1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ISZl(uwQH):\n if not WA7B(uwQH):\n return None\n return uwQH[3:-1] + YDbx(uwQH[3:-1])",
"def AlC4(wEf2):\n if OFAs(wEf2):\n wEf2 = KlSa.to_isbn13(wEf2)\n return KlSa.mask(KlSa.canonical(wEf2))",
"def tkCb(LZBj):\n x0SS = LJsF(LZBj)\n Z5r0 = x0SS[3:-1]\n Z5r0.append(kuO2(Z... | [
"0.7826749",
"0.74046385",
"0.70136994",
"0.6933265",
"0.6792072",
"0.6647313",
"0.6452783",
"0.6425833",
"0.64039946",
"0.63962585",
"0.6361922",
"0.6324467",
"0.6152574",
"0.6098258",
"0.6098062",
"0.6088287",
"0.6069077",
"0.60516536",
"0.59671515",
"0.58710057",
"0.586292... | 0.8710307 | 0 |
Function to convert a 13digit ISBN to a 10digit ISBN | def ISZl(uwQH):
if not WA7B(uwQH):
return None
return uwQH[3:-1] + YDbx(uwQH[3:-1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hqG2(LdrC):\n if not bPmH(LdrC):\n return None\n return '978' + LdrC[:-1] + WB0w('978' + LdrC[:-1])",
"def AlC4(wEf2):\n if OFAs(wEf2):\n wEf2 = KlSa.to_isbn13(wEf2)\n return KlSa.mask(KlSa.canonical(wEf2))",
"def tkCb(LZBj):\n x0SS = LJsF(LZBj)\n Z5r0 = x0SS[3:-1]\n Z5r0... | [
"0.8781934",
"0.74324626",
"0.69821113",
"0.6973822",
"0.6737263",
"0.67097896",
"0.65714085",
"0.6477063",
"0.64540327",
"0.6311507",
"0.6294403",
"0.6270611",
"0.6234752",
"0.6209769",
"0.6092608",
"0.6038751",
"0.60354733",
"0.5969255",
"0.59607506",
"0.5917341",
"0.585847... | 0.7683047 | 1 |
preprocess raw text by tokenising and removing stopwords,specialcharaters | def z6xz(A97Q):
A97Q = A97Q.lower()
A97Q = dFss(A97Q)
A97Q = [yzQ0 for yzQ0 in A97Q if not yzQ0 in hwHU]
A97Q = [yzQ0 for yzQ0 in A97Q if yzQ0.isalpha()]
return A97Q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZvG6(Novh):\n IChv = wr3U(Novh)\n IChv = g8pp(IChv)\n IChv = cQ_D(IChv)\n IChv = iKsa(IChv)\n return IChv",
"def OTws(przZ):\n b0j5 = M9Fq('\\\\w+')\n s2mk = b0j5.tokenize(przZ.lower())\n hwHU = set(Dhdw.corpus.stopwords.words('english'))\n i6lF = [yzQ0 for yzQ0 in s2mk if not yzQ0... | [
"0.8167982",
"0.7879006",
"0.78380424",
"0.7707523",
"0.75662255",
"0.74840224",
"0.74715567",
"0.73749864",
"0.736284",
"0.7352329",
"0.72958153",
"0.7274186",
"0.726447",
"0.72548366",
"0.72490853",
"0.7211659",
"0.71770865",
"0.7172468",
"0.71561205",
"0.71414554",
"0.7137... | 0.6847365 | 40 |
Divide a dataset based on their number of timesteps | def RP0z(UrXw, KndY, Femy=None, FMtP=None):
maxY = None
Crrw = None
if Femy is not None and FMtP is not None:
if Hy7s.path.exists(Femy):
with open(Femy, 'rb') as e7KT:
maxY = t2lc.load(e7KT)
if Hy7s.path.exists(FMtP):
with open(FMtP, 'rb') as e7KT:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qb89(ObT1, N66D=0.8):\n VWXq = Jepj(ObT1)\n VWXq.train_test_split(data_split=N66D)",
"def FJfc(sAoX, H96n, X6jG):\n NI2E = len(sAoX)\n print(NI2E)\n wMj5 = int(NI2E * X6jG)\n print(wMj5)\n I0dw = sAoX[:wMj5]\n sAoX = sAoX[wMj5:]\n eTme = H96n[:wMj5]\n H96n = H96n[wMj5:]\n ret... | [
"0.5860687",
"0.5753026",
"0.56622696",
"0.56622696",
"0.564091",
"0.56261736",
"0.56155914",
"0.5613018",
"0.5564611",
"0.551798",
"0.5509642",
"0.55088484",
"0.5488475",
"0.54802877",
"0.54467684",
"0.54080117",
"0.5394378",
"0.5386091",
"0.5381639",
"0.5362999",
"0.5330393... | 0.50198793 | 94 |
Divide a dataset based on their number of timesteps | def jKvN(LMLK: pd.DataFrame, HY12, Femy=None):
maxY = None
if Femy is not None:
if Hy7s.path.exists(Femy):
with open(Femy, 'rb') as e7KT:
maxY = t2lc.load(e7KT)
if maxY is None:
maxY = dict()
p06G = 0
for d6pt, rdlD in LMLK.iterrows():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qb89(ObT1, N66D=0.8):\n VWXq = Jepj(ObT1)\n VWXq.train_test_split(data_split=N66D)",
"def FJfc(sAoX, H96n, X6jG):\n NI2E = len(sAoX)\n print(NI2E)\n wMj5 = int(NI2E * X6jG)\n print(wMj5)\n I0dw = sAoX[:wMj5]\n sAoX = sAoX[wMj5:]\n eTme = H96n[:wMj5]\n H96n = H96n[wMj5:]\n ret... | [
"0.5861178",
"0.5752728",
"0.5662299",
"0.5662299",
"0.5640305",
"0.5626039",
"0.5616207",
"0.5612893",
"0.556492",
"0.55180174",
"0.55095965",
"0.5509527",
"0.54895085",
"0.5478734",
"0.54498065",
"0.5407057",
"0.53960097",
"0.53860784",
"0.5381682",
"0.536284",
"0.5329919",... | 0.5030777 | 86 |
Get the current state of the board. | def QTBn(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0mt(YKHO):\n return YKHO.game.get_current_state()",
"def TPfS(iBIi):\n return oyIN.concatenate((ooG6(iBIi, color=False), ooG6(iBIi, color=True)), axis=-1)",
"def VGtu(YKHO):\n HSQX = ''\n for YRbF in range(0, 3):\n HSQX += ''.join([YKHO.board['{}{}'.format(YRbF, r845)] for r845 in range... | [
"0.7859798",
"0.78590745",
"0.76930654",
"0.7636759",
"0.75556517",
"0.7551183",
"0.75287133",
"0.7423245",
"0.7384255",
"0.7360942",
"0.7317382",
"0.7300625",
"0.7300625",
"0.72879964",
"0.72879964",
"0.726768",
"0.7247645",
"0.7226832",
"0.72250444",
"0.7225037",
"0.7218898... | 0.0 | -1 |
Get the contexts of nonsingleton stages in tree from a given list of nodes | def aFr4(J_Es, Ziit):
Xn8x = list(filter(lambda Q6kx: True if J_Es.nodes[Q6kx].get('context', None) is not None else False, Ziit))
bGjY = set((J_Es.nodes[Q6kx]['context'] for Q6kx in Xn8x))
return bGjY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eKHg(J_Es, T4Wy):\n XP5J = len(T4Wy)\n I7yw = {}\n for ABDL in range(1, XP5J):\n nvr1 = [exwG for exwG in J_Es.nodes if jHsn.shortest_path_length(J_Es, 'Root', exwG) == ABDL]\n I7yw[ABDL] = {J_Es.nodes[exwG].get('context', -1) for exwG in nvr1}.difference({-1})\n return I7yw",
"def ... | [
"0.6559948",
"0.6399362",
"0.599325",
"0.591239",
"0.5729048",
"0.5709577",
"0.5521025",
"0.54711723",
"0.53702545",
"0.52927434",
"0.52525645",
"0.523189",
"0.5216884",
"0.52081054",
"0.52032185",
"0.5201195",
"0.5196838",
"0.51824707",
"0.5174779",
"0.5165263",
"0.51593125"... | 0.7839245 | 0 |
Convert unicode string to LaTeX bytes. | def kLcZ(YKHO, W4X6, UAju='strict'):
MnDN = YKHO.IncrementalEncoder(errors=UAju)
return (MnDN.encode(W4X6, final=True), len(W4X6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dlcv(vIwR, *qIxc, **B2fa):\n if isinstance(vIwR, QMSQ):\n vIwR = vIwR.encode('utf-8')\n RKD7.debug('string len=%d' % len(vIwR))\n eHNT = kJm3(vIwR)\n return Afv4(eHNT, *qIxc, **B2fa)",
"def g3ri(KCHu, tZ2K='utf-8', UAju='strict'):\n if isinstance(KCHu, iauG):\n return KCHu.decode... | [
"0.61449176",
"0.5913198",
"0.5896439",
"0.5880009",
"0.58737123",
"0.5822967",
"0.57544607",
"0.5745257",
"0.57415664",
"0.56979996",
"0.56898385",
"0.56846625",
"0.5662141",
"0.56556237",
"0.5641957",
"0.56366676",
"0.56270933",
"0.56053126",
"0.5568708",
"0.5564787",
"0.55... | 0.0 | -1 |
Convert LaTeX bytes to unicode string. | def x8I_(YKHO, dZxd, UAju='strict'):
ITJE = YKHO.IncrementalDecoder(errors=UAju)
return (ITJE.decode(dZxd, final=True), len(dZxd)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brQJ(l5Ny, tZ2K='utf-8', UAju='strict'):\n if isinstance(l5Ny, bytes):\n return l5Ny.decode(tZ2K, errors=UAju)\n return l5Ny",
"def dMvu(KCHu):\n if isinstance(KCHu, bytes):\n return KCHu.decode('utf-8', 'replace')\n else:\n return KCHu",
"def HEbm(hGN5):\n return hGN5",... | [
"0.6682167",
"0.6560132",
"0.6458099",
"0.6436092",
"0.6418225",
"0.64040303",
"0.63998634",
"0.6385718",
"0.6337446",
"0.6328584",
"0.6248103",
"0.61347455",
"0.61205727",
"0.61104554",
"0.6091716",
"0.60814303",
"0.6061877",
"0.60414296",
"0.60120046",
"0.5981283",
"0.59628... | 0.0 | -1 |
Return a string representation of the model. | def zAg0(YKHO):
return YKHO.the_ip | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW... | [
"0.8550562",
"0.78680784",
"0.7859392",
"0.7820475",
"0.78200865",
"0.78200865",
"0.78024864",
"0.7667491",
"0.7658678",
"0.7652298",
"0.7619285",
"0.75894105",
"0.7587887",
"0.7541158",
"0.75327915",
"0.75327915",
"0.75173604",
"0.7495425",
"0.7490489",
"0.7479993",
"0.74670... | 0.0 | -1 |
Return a string representation of the model. | def zAg0(YKHO):
return YKHO.plan | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW... | [
"0.8551392",
"0.78675115",
"0.7860135",
"0.7820754",
"0.7820754",
"0.7820724",
"0.7801977",
"0.76672375",
"0.76579005",
"0.7652165",
"0.76191497",
"0.75891584",
"0.7587153",
"0.75402325",
"0.7531865",
"0.7531865",
"0.7517155",
"0.7494436",
"0.7490012",
"0.74796724",
"0.746794... | 0.0 | -1 |
Given a pandas DatFrame with `lat` and `long` columns, convert to geopandas DataFrame. | def SI5L(jQ3Z):
jQ3Z['geometry'] = [PvyL(M_DK) for M_DK in zip(jQ3Z.latitude, jQ3Z.longitude)]
ucxv = {'init': 'epsg:4326'}
jQ3Z = quUU.GeoDataFrame(jQ3Z, crs=ucxv, geometry=jQ3Z['geometry'])
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jaV2(*jzdc, **YSA3) -> quUU.GeoDataFrame:\n YSA3['geo'] = True\n return za6k(*jzdc, **YSA3)",
"def D4pu(Tvv2, EbA6=None, hxRM=ENfy, LpaZ=False):\n from shapely.ops import transform\n import geopandas as quUU\n if EbA6 is None:\n EbA6 = Yrad(Tvv2.crs)\n else:\n EbA6 = Yrad(EbA6... | [
"0.7141234",
"0.6644439",
"0.66344655",
"0.65235585",
"0.6491778",
"0.64206666",
"0.64133376",
"0.63668084",
"0.6338837",
"0.63137305",
"0.63133276",
"0.6297395",
"0.6265959",
"0.6190024",
"0.61764616",
"0.6126619",
"0.611108",
"0.6109023",
"0.6021192",
"0.60051656",
"0.59846... | 0.809696 | 0 |
Kendall's tau gives information about the trend of the time series. It is just a rank correlation test with one variable being time (or the vector 1 to the length of the time series), and the other variable being the data itself. A tau value of 1 means that the time series is always increasing, whereas 1 mean always de... | def H4gQ(bEXe):
from scipy.stats import kendalltau
jmzt, XP5J = kendalltau(range(len(bEXe)), bEXe)
return (jmzt, XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IY8C(YKHO) -> float:\n return YKHO.tau",
"def zfsW(YKHO):\n return YKHO.tau_batch / YKHO.N_trains",
"def kamO(YKHO, UqYS, lWPh, **Zl3b):\n YKHO._set_beta_D(UqYS, lWPh)\n oyIN.random.seed(42)\n SpII, Fh7c = YKHO.GenerateTrajectory(**Zl3b)\n JRYC = SpII[1] - SpII[0]\n jmzt = mIjG(Fh7c[0,... | [
"0.64824873",
"0.6299634",
"0.6184806",
"0.6081109",
"0.5978931",
"0.59669167",
"0.59669167",
"0.5940116",
"0.59215754",
"0.5916745",
"0.59154594",
"0.58939826",
"0.58788204",
"0.5859255",
"0.58307195",
"0.57656693",
"0.5718805",
"0.571471",
"0.56878",
"0.5685807",
"0.5657537... | 0.6602642 | 0 |
Create or append the contents of `out_dict` to json file `filename`. | def uyD2(Ux0P, R8cc):
if not Hy7s.path.exists(Ux0P):
kmfe = Hy7s.path.dirname(Ux0P)
if not Hy7s.path.exists(kmfe):
Hy7s.makedirs(kmfe, exist_ok=True)
with open(Ux0P, 'w') as wM3v:
qQXR.dump(R8cc, wM3v, indent=2)
else:
nPrm = None
with open(Ux0P, 'r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTUv(dict, UXEK):\n kmfe = Hy7s.path.dirname(UXEK)\n not Hy7s.path.exists(kmfe) and Hy7s.makedirs(kmfe)\n Hy7s.chmod(kmfe, QmN4.S_IRWXU | QmN4.S_IRGRP | QmN4.S_IROTH)\n with open(UXEK, 'w') as _RR0:\n _RR0.write(qQXR.dumps(dict))",
"def VacN(IznC, cmPJ, f2Tp=False, PJWX=False):\n if kht... | [
"0.7513769",
"0.72482413",
"0.71385974",
"0.7068899",
"0.70677733",
"0.6991258",
"0.6982244",
"0.6957682",
"0.69154274",
"0.68472624",
"0.68332094",
"0.68295115",
"0.6803711",
"0.6788084",
"0.67718685",
"0.67584234",
"0.6737472",
"0.6718794",
"0.67151326",
"0.6704166",
"0.666... | 0.84163874 | 0 |
Return the name of our key | def H5ew(YKHO):
for mS46 in YKHO.members:
if mS46.key:
return mS46.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAat(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_name')",
"def zAat(YKHO):\n return YKHO._key_name",
"def mWFP(YKHO):\n return YKHO.key",
"def zAat(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_name')",
"def W0tD(YKHO):\n return YKHO.key().name().split(':', 1)[1]",
"def H5ew(YKHO):\n... | [
"0.90162903",
"0.8629983",
"0.8553058",
"0.8441894",
"0.8428599",
"0.825027",
"0.8235125",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.82289124",
"0.... | 0.0 | -1 |
Closes the connection to the database. | def ssTe(tTpl=None):
NCls = Oa1e.pop('db', None)
if NCls is not None:
NCls.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZlT(Emd4):\n NCls.close()",
"def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None",
"def DDI8(YKHO):\n RdPg.debug('DB -> close')\n YKHO.conn.close()",
"def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()",
"def EM8p(YKHO):\n ... | [
"0.8420428",
"0.83728105",
"0.81615967",
"0.81323844",
"0.81219715",
"0.8067914",
"0.79461336",
"0.7894255",
"0.7827971",
"0.7820726",
"0.78206784",
"0.7819616",
"0.7791562",
"0.7780603",
"0.7768342",
"0.7755607",
"0.7733859",
"0.7688168",
"0.7688168",
"0.7688168",
"0.7686348... | 0.0 | -1 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(YKHO, Bcwd, KndY, NkkI, iMGt=QrM1.cm.Blues, leAC='confusin Matrix'):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.imshow(Bcwd, interpo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.7917871",
"0.7916092... | 0.79610753 | 8 |
Generate a random string of fixed length | def TJC9(FVpJ=10):
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))",
"def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')",
"def e7Tf(u54L):\n return ''.join((tuKI... | [
"0.8680464",
"0.8573714",
"0.85486245",
"0.85297275",
"0.85209286",
"0.84331024",
"0.8432044",
"0.84157014",
"0.84120053",
"0.8389201",
"0.8345882",
"0.8343962",
"0.83406156",
"0.83348686",
"0.83240855",
"0.82986933",
"0.82911193",
"0.8281826",
"0.82818025",
"0.82811046",
"0.... | 0.7761017 | 95 |
Calculate N^2 distance matrix (d_ij) | def aXeI(oeNL, aPd6, ik4P):
EcVT = oyIN.reshape(oeNL[:, 0], (-1, 1))
fuBA = oyIN.reshape(oeNL[:, 1], (-1, 1))
v8j0 = oyIN.subtract(EcVT, EcVT.T)
rKIL = oyIN.subtract(fuBA, fuBA.T)
fz3t = oyIN.copy(v8j0)
JE79 = oyIN.copy(rKIL)
if ik4P == 0:
fz3t[v8j0 > +0.5 * aPd6] -= aPd6
JE7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDCq(YKHO):\n vb7U = oyIN.zeros([YKHO.N, YKHO.I])\n for exwG in range(YKHO.N):\n for YRbF in range(YKHO.I):\n vb7U[exwG, YRbF] = Ayfi(YKHO.N_coords[exwG], YKHO.I_coords[YRbF])\n return vb7U",
"def VJRX(YKHO):\n vb7U = oyIN.zeros([YKHO.N, YKHO.M])\n for exwG in range(YKHO.N):\... | [
"0.7233453",
"0.70403916",
"0.69993097",
"0.6875292",
"0.68122566",
"0.6665526",
"0.66499364",
"0.6580562",
"0.64626753",
"0.6448482",
"0.6358916",
"0.6354084",
"0.63501716",
"0.6336038",
"0.63171726",
"0.63123333",
"0.6308046",
"0.6283222",
"0.62727123",
"0.62040323",
"0.617... | 0.0 | -1 |
Returns the distance vector of two position vectors x,y by tanking periodic boundary conditions into account. | def E6ey(WKvO, LVAh, aPd6=10.0, tpio=2):
ockz = LVAh - WKvO
QqQ0 = oyIN.copy(ockz)
QqQ0[ockz < -0.5 * aPd6] += aPd6
QqQ0[ockz > 0.5 * aPd6] -= aPd6
return QqQ0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pImw(WKvO, LVAh):\n Jw7X = WKvO[0] - LVAh[0]\n eUWA = WKvO[1] - LVAh[1]\n TK2h = Jw7X ** 2 + eUWA ** 2\n TK2h = TK2h ** 0.5\n return TK2h",
"def Ayfi(WKvO, LVAh):\n return oyIN.sqrt(oyIN.power(oyIN.array(WKvO) - oyIN.array(LVAh), 2).sum())",
"def pImw(WKvO, LVAh):\n Jw7X = WKvO[0] - LV... | [
"0.6900614",
"0.68670774",
"0.68626666",
"0.6858033",
"0.6800419",
"0.6774077",
"0.6761311",
"0.667193",
"0.6656031",
"0.662479",
"0.65926147",
"0.6576124",
"0.65410966",
"0.6531136",
"0.65088874",
"0.65062803",
"0.65041167",
"0.6499847",
"0.6489457",
"0.6484812",
"0.6479792"... | 0.0 | -1 |
Represents ContourFilled.vi (line contours). | def MIf8(OaeV, jzdc):
xP26 = jzdc.plotid()
epBp = jzdc.dbl_2d('z')
WKvO = jzdc.dbl_1d('x')
LVAh = jzdc.dbl_1d('y')
bctv = jzdc.int('n')
e8OM = jzdc.float('levelmin')
pkng = jzdc.float('levelmax')
W8mS = jzdc.display()
iMGt = jzdc.colormap()
OaeV.set(xP26)
OaeV.fail_if_polar()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MDWH(YKHO):\n return YKHO._icvv",
"def OE17(YKHO):\n Iowl, bGrB = XC5k.findContours(YKHO.image.copy(), XC5k.RETR_EXTERNAL, XC5k.CHAIN_APPROX_SIMPLE)\n return [oX9p(cv_contour=iLki) for iLki in Iowl]",
"def a51k(YKHO, Iowl, TbMz=(0, 0, 0), xWgc=1):\n DOBr = [Z9rn.contour for Z9rn in Iowl]\n X... | [
"0.57070386",
"0.549379",
"0.5466394",
"0.54604816",
"0.5384435",
"0.53660935",
"0.5236494",
"0.5136413",
"0.5127437",
"0.50761735",
"0.50488806",
"0.5046429",
"0.5040224",
"0.50325817",
"0.4999544",
"0.493604",
"0.48996732",
"0.48871684",
"0.48546174",
"0.48500004",
"0.48476... | 0.0 | -1 |
Converts bytes image (PIL) to numpy image (opencv) | def bRDu(VXjJ: bytes) -> oyIN.ndarray:
Xn71 = hnIv.open(aKaX(VXjJ))
Xn71 = Xn71.convert('RGB')
return oyIN.array(Xn71) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gYXt(Fg_i):\n Xn71 = oyIN.array(hnIv.open(xDSY.BytesIO(Fg_i)))\n return Xn71",
"def eCdp(eQJI):\n VXjJ = hnIv.open(aKaX(eQJI))\n qw7D = oyIN.asarray(VXjJ, dtype=oyIN.uint8)\n return qw7D",
"def uEOY(UiEM: bytes) -> oyIN.ndarray:\n Xn71 = hnIv.open(xDSY.BytesIO(UiEM))\n Xn71 = Xn71.conv... | [
"0.80682695",
"0.7489259",
"0.73257923",
"0.71820146",
"0.7107927",
"0.6999193",
"0.69515246",
"0.692989",
"0.68910784",
"0.6849996",
"0.6835187",
"0.6802491",
"0.67894095",
"0.6784719",
"0.67462456",
"0.6744057",
"0.67249954",
"0.6637651",
"0.65983444",
"0.6596362",
"0.65792... | 0.7935841 | 1 |
Get a rig Machine object based on the supplied specification. | def X5zy(Cqok=None, KUfH=cYV8):
if Cqok is None:
return X5zy('spinn5', KUfH)
elif Cqok == 'spinn3':
fwgd = P8Vm(2, 2)
if KUfH is not cYV8:
fwgd.chip_resources[KUfH] = fwgd.chip_resources[cYV8]
del fwgd.chip_resources[cYV8]
fwgd.dead_links.add((0, 0, gW9A.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X5zy(YKHO, mWFP):\n return YKHO._machine_manager.get_machine(mWFP)",
"def lZPp(YKHO, xAU6):\n try:\n fwgd = YKHO._class(xAU6, **YKHO._kwargs)\n except TypeError as e:\n print('Machine class %s failed to instantiate: %s' % (str(YKHO._class), str(tTpl)))\n raise TypeError(tTpl)\n ... | [
"0.625229",
"0.6037894",
"0.59010744",
"0.5823131",
"0.5719453",
"0.5628267",
"0.56257933",
"0.55756426",
"0.5519719",
"0.54546255",
"0.54067165",
"0.53907716",
"0.53483385",
"0.53262335",
"0.53027993",
"0.5143152",
"0.50895226",
"0.5069776",
"0.5003827",
"0.4934474",
"0.4927... | 0.6108086 | 1 |
Add a 360 degree revolved arc to this Patch. x1, y1 start vertex x2, y2 end vertex cx, cy center point arcDir 'cclw' or 'clw' It is assumes the points are in the XZ plane and the axis of revolution is parallel to the vector (0, 0, 1), and passes through the point (0, 0, 0). | def jTMn(YKHO, o4D3, si3g, ajwV, skBL, UV8M, vHO5, satW):
jzdc = o4D3 - UV8M
Fg_i = si3g - vHO5
Mkmy = PZyS(jzdc * jzdc + Fg_i * Fg_i)
Io6r = H2jA.fromVectors(KNJq(jzdc, Fg_i), KNJq(ajwV - UV8M, skBL - vHO5), Mkmy, satW == 'cclw')
mzPt = 360.0 / YKHO._mesh.segs
VytY = max(int(abs(Io6r.span()) / ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOZu(*qIxc, **B2fa):\n return nAU3.GraphicsPath_AddArcToPoint(*qIxc, **B2fa)",
"def H2jA(YKHO, hgjH=(0.0, 0.0), r1VO=1.0, eru2=16, E91m=40, TTnr=0.0, SQHj=oyIN.pi / 2.0, KqSu='tri', P69N=False, KcQG=2, E91_='standard'):\n O05v = u'π'.encode('utf-8').strip()\n CzNp = oyIN.finfo(oyIN.float64).eps\n ... | [
"0.6375656",
"0.6324561",
"0.63244236",
"0.6188909",
"0.61852944",
"0.613656",
"0.60909086",
"0.6052193",
"0.604821",
"0.60297465",
"0.5997832",
"0.5965996",
"0.59331214",
"0.59030163",
"0.5822591",
"0.581967",
"0.58015496",
"0.5783675",
"0.5772625",
"0.57504004",
"0.56787825... | 0.6723157 | 0 |
Create a revolved Patch from an arc segment. x1, y1 arc start point x2, y2 arc end point cx, cy arc center point arcDir 'cclw' or 'clw' mesh Mesh, parent Return a new Patch instance | def uaBd(o4D3, si3g, ajwV, skBL, UV8M, vHO5, satW, rR8k):
Po4F = laML(rR8k)
Po4F.addRevArcSeg(o4D3, si3g, ajwV, skBL, UV8M, vHO5, satW)
return Po4F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTMn(YKHO, o4D3, si3g, ajwV, skBL, UV8M, vHO5, satW):\n jzdc = o4D3 - UV8M\n Fg_i = si3g - vHO5\n Mkmy = PZyS(jzdc * jzdc + Fg_i * Fg_i)\n Io6r = H2jA.fromVectors(KNJq(jzdc, Fg_i), KNJq(ajwV - UV8M, skBL - vHO5), Mkmy, satW == 'cclw')\n mzPt = 360.0 / YKHO._mesh.segs\n VytY = max(int(abs(Io6r... | [
"0.68398565",
"0.6480399",
"0.63530403",
"0.61391073",
"0.58919615",
"0.58786273",
"0.5743054",
"0.57038224",
"0.56960285",
"0.5656767",
"0.5580665",
"0.55496144",
"0.55472475",
"0.5501446",
"0.54933727",
"0.5482088",
"0.5453449",
"0.5348808",
"0.53343266",
"0.53162813",
"0.5... | 0.7636562 | 0 |
Return the length of self.vertices (cached) | def nAk3(YKHO):
return YKHO._nVertices | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return len(YKHO._vertices)",
"def poMF(YKHO):\n return len(YKHO)",
"def qppV(YKHO):\n return YKHO.__size",
"def poMF(YKHO):\n return len(YKHO.vertices)",
"def poMF(YKHO):\n return len(YKHO.vertices)",
"def szAg(YKHO):\n return YKHO._vertices.shape[0]",
"def zHmr(YKHO... | [
"0.8675081",
"0.82852733",
"0.821663",
"0.8135638",
"0.8135638",
"0.7946337",
"0.78617936",
"0.78302",
"0.77636",
"0.77219564",
"0.77211547",
"0.7657313",
"0.75985384",
"0.75872296",
"0.75395477",
"0.7460034",
"0.72402954",
"0.7237234",
"0.7219305",
"0.7217379",
"0.7208364",
... | 0.7631853 | 12 |
Return the list of unique vertices in this mesh. | def tLTg(YKHO):
return YKHO._sharedVertices | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EBww(YKHO):\n return YKHO.vertList.keys()",
"def EBww(YKHO):\n return list(YKHO.vertices.keys())",
"def iXlf(YKHO):\n KCHu = set([WKvO for WKvO in YKHO.edges.keys()])\n a1PO = set([LVAh for Ty9i in YKHO.edges.values() for LVAh, Csk6 in Ty9i.items()])\n Ty9i = KCHu.union(a1PO)\n return lis... | [
"0.7835875",
"0.7809275",
"0.77772665",
"0.7733856",
"0.7651266",
"0.76384044",
"0.7629106",
"0.762661",
"0.75595343",
"0.7522393",
"0.7499731",
"0.7488294",
"0.7488294",
"0.7488294",
"0.74839336",
"0.7478714",
"0.74487925",
"0.7444187",
"0.740818",
"0.74053496",
"0.7403788",... | 0.63237995 | 50 |
Create and return a gRPC AsyncIO channel object. | def smRa(Emd4, KcEq: str='aiplatform.googleapis.com', Vt89: Optional[ga_credentials.Credentials]=None, ebKO: Optional[str]=None, uC2a: Optional[Sequence[str]]=None, YueU: Optional[str]=None, **B2fa) -> VlWd.Channel:
return cuch.create_channel(KcEq, credentials=Vt89, credentials_file=ebKO, quota_project_id=YueU, def... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3Dl(YKHO) -> VlWd.Channel:\n return YKHO._grpc_channel",
"def D3Dl(YKHO) -> VlWd.Channel:\n return YKHO._grpc_channel",
"def v5Sf(KcEq='127.0.0.1', bIwZ=d5bR.TLSPort, AZs7=None, EEFY=None, bWd1=None, Q1g5=None, vYBr=None, **B2fa):\n import asyncio\n from pymodbus.client.asynchronous.async_io i... | [
"0.6004664",
"0.6004664",
"0.5782927",
"0.5736963",
"0.5473861",
"0.5430445",
"0.5364224",
"0.53633946",
"0.5352196",
"0.5346676",
"0.5304257",
"0.527802",
"0.5253174",
"0.5248342",
"0.5203304",
"0.5203304",
"0.51974005",
"0.51726425",
"0.5136119",
"0.511852",
"0.5105743",
... | 0.59876853 | 2 |
r"""Return a callable for the batch create features method over gRPC. Creates a batch of Features in a given EntityType. | def j_cB(YKHO) -> YrBT[[AYw4.BatchCreateFeaturesRequest], ld92[s1LG.Operation]]:
if 'batch_create_features' not in YKHO._stubs:
YKHO._stubs['batch_create_features'] = YKHO.grpc_channel.unary_unary('/google.cloud.aiplatform.v1beta1.FeaturestoreService/BatchCreateFeatures', request_serializer=AYw4.BatchCreate... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbB8(YKHO) -> YrBT[[AYw4.CreateEntityTypeRequest], ld92[s1LG.Operation]]:\n if 'create_entity_type' not in YKHO._stubs:\n YKHO._stubs['create_entity_type'] = YKHO.grpc_channel.unary_unary('/google.cloud.aiplatform.v1beta1.FeaturestoreService/CreateEntityType', request_serializer=AYw4.CreateEntityType... | [
"0.6886133",
"0.66607857",
"0.62703973",
"0.57801133",
"0.56227946",
"0.5558242",
"0.55404747",
"0.5524336",
"0.5505494",
"0.5447645",
"0.54066116",
"0.536829",
"0.5348546",
"0.5336804",
"0.5321232",
"0.5241409",
"0.5237749",
"0.5208596",
"0.51997715",
"0.5163856",
"0.5162957... | 0.82300556 | 0 |
r"""Return a callable for the import feature values method over gRPC. Imports Feature values into the Featurestore from a source storage. The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as suc... | def kdL4(YKHO) -> YrBT[[AYw4.ImportFeatureValuesRequest], ld92[s1LG.Operation]]:
if 'import_feature_values' not in YKHO._stubs:
YKHO._stubs['import_feature_values'] = YKHO.grpc_channel.unary_unary('/google.cloud.aiplatform.v1beta1.FeaturestoreService/ImportFeatureValues', request_serializer=AYw4.ImportFeatu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qEEn(YKHO) -> YrBT[[slBm.ImportEntitiesRequest], ld92[s1LG.Operation]]:\n if 'import_entities' not in YKHO._stubs:\n YKHO._stubs['import_entities'] = YKHO.grpc_channel.unary_unary('/google.datastore.admin.v1.DatastoreAdmin/ImportEntities', request_serializer=slBm.ImportEntitiesRequest.serialize, resp... | [
"0.6036627",
"0.58560944",
"0.57377875",
"0.5527031",
"0.5417714",
"0.5371343",
"0.5363655",
"0.5348223",
"0.5280672",
"0.5225262",
"0.5177371",
"0.5169178",
"0.51661265",
"0.5136509",
"0.5088765",
"0.50840294",
"0.50822455",
"0.50550526",
"0.505285",
"0.5041739",
"0.5028164"... | 0.7902126 | 0 |
r"""Return a callable for the get iam policy method over gRPC. Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set. | def aEAQ(YKHO) -> YrBT[[N1Ai.GetIamPolicyRequest], u0K_.Policy]:
if 'get_iam_policy' not in YKHO._stubs:
YKHO._stubs['get_iam_policy'] = YKHO.grpc_channel.unary_unary('/google.iam.v1.IAMPolicy/GetIamPolicy', request_serializer=N1Ai.GetIamPolicyRequest.SerializeToString, response_deserializer=u0K_.Policy.Fro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fi30(LeXP: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[IvYM]:\n ...",
"def qFaa(IBYC):\n return Qabx.get(TdCj(IBYC), {})",
"def _cwM(YKHO, geh0: policy_pb2.Policy) -> u0K_.Policy:\n return geh0",
"def qFaa(YKHO, *qIxc, **B2fa):\n pass",
"def Q... | [
"0.6326777",
"0.6274117",
"0.62107044",
"0.618659",
"0.6181954",
"0.6181954",
"0.61463976",
"0.6093693",
"0.60398567",
"0.59942603",
"0.59837097",
"0.59837097",
"0.5957196",
"0.59461766",
"0.59461766",
"0.590683",
"0.59016144",
"0.5898734",
"0.58908916",
"0.5885689",
"0.58819... | 0.7805099 | 1 |
svn_client_commit_info_t_author_set(svn_client_commit_info_t self, char author) | def jJpZ(KR0_, w_YE):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LkcR(L4A2, paNg):\n pass",
"def _giq(YKHO, taDc):\n YKHO.author = taDc\n YKHO.opf.author = taDc",
"def c1Qq(KR0_):\n return ''",
"def _giq(YKHO, taDc):\n YKHO.author = taDc",
"def taDc(YKHO, taDc):\n YKHO._author = taDc",
"def taDc(YKHO, taDc: str):\n YKHO._author = taDc",
"def... | [
"0.7903617",
"0.74999434",
"0.7496844",
"0.7472008",
"0.72864133",
"0.71904445",
"0.7118774",
"0.7118774",
"0.71061844",
"0.7041008",
"0.6920631",
"0.6896527",
"0.6891519",
"0.66131014",
"0.6604249",
"0.6552515",
"0.6420674",
"0.64131606",
"0.626031",
"0.616779",
"0.6160049",... | 0.94177717 | 0 |
svn_client_commit_item2_t_kind_set(svn_client_commit_item2_t self, svn_node_kind_t kind) | def _xew(J9Vb, LSXZ):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F7dE(K_VX, LSXZ):\n pass",
"def sP54(AW8M, LSXZ):\n pass",
"def rY8W(L4A2, LSXZ):\n pass",
"def yrdJ(J9Vb):\n pass",
"def bQ7o(J9Vb, uLpo):\n pass",
"def c_NX(J9Vb, V9WH):\n pass",
"def PozC(J9Vb, ttMR):\n pass",
"def pDfL(K_VX):\n pass",
"def gMw9(K_VX, uLpo):\n pass... | [
"0.8557005",
"0.82395214",
"0.7127151",
"0.6871192",
"0.6752532",
"0.6650064",
"0.65602964",
"0.62834144",
"0.62466824",
"0.60941213",
"0.6019706",
"0.60164094",
"0.5984937",
"0.5887794",
"0.58867395",
"0.5824267",
"0.5736647",
"0.5686728",
"0.55502594",
"0.54577965",
"0.5365... | 0.93022865 | 0 |
svn_client_commit_item2_t_state_flags_get(svn_client_commit_item2_t self) > apr_byte_t | def Rlt4(J9Vb):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aIAM(K_VX):\n pass",
"def DIKQ(AW8M):\n pass",
"def P8jr(J9Vb, exi4):\n pass",
"def rnvc(K_VX, exi4):\n pass",
"def yrdJ(J9Vb):\n pass",
"def rQyG(AW8M, exi4):\n pass",
"def pDfL(K_VX):\n pass",
"def TsCJ(J9Vb):\n pass",
"def nR8_(J9Vb):\n pass",
"def NlLS(AW8M):\n ... | [
"0.83245933",
"0.7892848",
"0.75329626",
"0.6948908",
"0.6915231",
"0.6656985",
"0.6493449",
"0.6371012",
"0.62647843",
"0.61471546",
"0.61456573",
"0.606143",
"0.5948222",
"0.5878759",
"0.58482736",
"0.5789387",
"0.57436055",
"0.56309265",
"0.5565751",
"0.5541332",
"0.544825... | 0.87525827 | 0 |
svn_client_commit_item3_t_kind_get(svn_client_commit_item3_t self) > svn_node_kind_t | def NlLS(AW8M):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pDfL(K_VX):\n pass",
"def yrdJ(J9Vb):\n pass",
"def sP54(AW8M, LSXZ):\n pass",
"def lFkZ(AW8M):\n pass",
"def F7dE(K_VX, LSXZ):\n pass",
"def _xew(J9Vb, LSXZ):\n pass",
"def LlkM(L4A2):\n pass",
"def DIKQ(AW8M):\n pass",
"def WimA(V0lz):\n pass",
"def qVIg(AW8M):\n ... | [
"0.788368",
"0.7649433",
"0.7390432",
"0.6686838",
"0.66504794",
"0.6629501",
"0.62872773",
"0.6174134",
"0.61416626",
"0.5946683",
"0.5912056",
"0.5911334",
"0.58887964",
"0.5872613",
"0.5742021",
"0.55568075",
"0.54828113",
"0.54643375",
"0.54402244",
"0.54114807",
"0.53243... | 0.8594592 | 0 |
svn_client_commit_item3_t_state_flags_get(svn_client_commit_item3_t self) > apr_byte_t | def DIKQ(AW8M):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aIAM(K_VX):\n pass",
"def Rlt4(J9Vb):\n pass",
"def rQyG(AW8M, exi4):\n pass",
"def P8jr(J9Vb, exi4):\n pass",
"def rnvc(K_VX, exi4):\n pass",
"def NlLS(AW8M):\n pass",
"def PoTi(AW8M):\n pass",
"def lFkZ(AW8M):\n pass",
"def Aico(AW8M):\n pass",
"def pDfL(K_VX):\n ... | [
"0.82552886",
"0.80557245",
"0.7667854",
"0.71430355",
"0.71250653",
"0.70841193",
"0.66111404",
"0.65122586",
"0.64346015",
"0.63198996",
"0.6087822",
"0.60444075",
"0.6042999",
"0.5996428",
"0.58033615",
"0.57840997",
"0.5691956",
"0.56613976",
"0.56230646",
"0.5598763",
"0... | 0.8812746 | 0 |
svn_client_commit_item_t_kind_get(svn_client_commit_item_t self) > svn_node_kind_t | def pDfL(K_VX):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yrdJ(J9Vb):\n pass",
"def NlLS(AW8M):\n pass",
"def F7dE(K_VX, LSXZ):\n pass",
"def _xew(J9Vb, LSXZ):\n pass",
"def WimA(V0lz):\n pass",
"def LlkM(L4A2):\n pass",
"def sP54(AW8M, LSXZ):\n pass",
"def i8pA(K_VX):\n pass",
"def zgML(YKHO, pmON, eJTR):\n bTKY = YKHO._det... | [
"0.7991159",
"0.7663741",
"0.71824276",
"0.6947326",
"0.6867616",
"0.67809266",
"0.66113496",
"0.6329091",
"0.59824115",
"0.5981421",
"0.5929497",
"0.5864075",
"0.577037",
"0.5740619",
"0.57016355",
"0.5699973",
"0.5674146",
"0.56429523",
"0.55895084",
"0.54696983",
"0.546803... | 0.8513412 | 0 |
svn_client_commit_item_t_kind_set(svn_client_commit_item_t self, svn_node_kind_t kind) | def F7dE(K_VX, LSXZ):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xew(J9Vb, LSXZ):\n pass",
"def sP54(AW8M, LSXZ):\n pass",
"def rY8W(L4A2, LSXZ):\n pass",
"def pDfL(K_VX):\n pass",
"def gMw9(K_VX, uLpo):\n pass",
"def AaBY(K_VX, ttMR):\n pass",
"def A2CZ(K_VX, V9WH):\n pass",
"def I4ky(AW8M, uLpo):\n pass",
"def IbOe(AW8M, ttMR):\n ... | [
"0.8854518",
"0.8711989",
"0.72900575",
"0.6848435",
"0.67728853",
"0.66098",
"0.6563185",
"0.64422584",
"0.6267923",
"0.6255874",
"0.6238341",
"0.620783",
"0.6178717",
"0.61138594",
"0.6110946",
"0.60844916",
"0.60321724",
"0.58621514",
"0.5684882",
"0.5621477",
"0.56049275"... | 0.9269743 | 0 |
svn_client_commit_item_t_state_flags_get(svn_client_commit_item_t self) > apr_byte_t | def aIAM(K_VX):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rlt4(J9Vb):\n pass",
"def DIKQ(AW8M):\n pass",
"def rnvc(K_VX, exi4):\n pass",
"def P8jr(J9Vb, exi4):\n pass",
"def rQyG(AW8M, exi4):\n pass",
"def pDfL(K_VX):\n pass",
"def yrdJ(J9Vb):\n pass",
"def H8or(K_VX):\n pass",
"def NlLS(AW8M):\n pass",
"def i8pA(K_VX):\n ... | [
"0.8285058",
"0.8075733",
"0.7393083",
"0.7260117",
"0.69549865",
"0.67757964",
"0.6322893",
"0.6295422",
"0.6251557",
"0.61030775",
"0.60694",
"0.5915411",
"0.5846862",
"0.5803561",
"0.57141596",
"0.56354856",
"0.55526984",
"0.55477405",
"0.55354244",
"0.55209094",
"0.550274... | 0.86823326 | 0 |
svn_client_ctx_t_client_name_set(svn_client_ctx_t self, char client_name) | def xE1z(Q5dE, Ug_6):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J4_H(Q5dE):\n return ''",
"def iZWd(YKHO, mWFP, x0hE):\n if YKHO.name_is_unique(mWFP):\n x0hE.set_name(mWFP)\n YKHO.send_message('Usuario actualizado exitosamente.', x0hE.get_socket())\n else:\n YKHO.send_message('Nombre repetido.', x0hE.get_socket())",
"def wy4N(YKHO, wy4N):\... | [
"0.6803008",
"0.67001325",
"0.63674253",
"0.5957589",
"0.5883663",
"0.5867607",
"0.58007044",
"0.5759959",
"0.57557285",
"0.57457095",
"0.573966",
"0.5696948",
"0.5696948",
"0.5696948",
"0.5696948",
"0.5696874",
"0.568963",
"0.5685165",
"0.56843036",
"0.5650211",
"0.5637511",... | 0.9459529 | 0 |
svn_client_ctx_t_config_get(svn_client_ctx_t self) > apr_hash_t | def VyFp(Q5dE):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J8qG(Q5dE, YlvY):\n pass",
"def JCUb(Q5dE):\n pass",
"def Ebu1(oImg, LsTQ, FtdO, wyXJ, PDll, vSkh, Ms4i):\n pass",
"def zoFt(YKHO, _6VY, B8Z1=''):\n return YKHO.ce_proxy.getConfig(YKHO.userName, _6VY, B8Z1)",
"def fRYA(Q5dE):\n pass",
"def I0zC(Q5dE):\n pass",
"def Bca2(Q5dE):\n ... | [
"0.70862085",
"0.6580718",
"0.638015",
"0.601886",
"0.60057193",
"0.5990404",
"0.5883671",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.58445644",
"0.... | 0.8061612 | 0 |
svn_client_diff_summarize_t_node_kind_get(svn_client_diff_summarize_t self) > svn_node_kind_t | def WimA(V0lz):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PIQt(V0lz, XOvw):\n pass",
"def YfBX(V0lz):\n pass",
"def R5LD(V0lz, ROdF):\n pass",
"def LlkM(L4A2):\n pass",
"def pDfL(K_VX):\n pass",
"def ZVHE(V0lz):\n pass",
"def yrdJ(J9Vb):\n pass",
"def rY8W(L4A2, LSXZ):\n pass",
"def i0lS(V0lz):\n return ''",
"def S5Rp(YKHO... | [
"0.80886173",
"0.76964355",
"0.6791959",
"0.6605347",
"0.58973193",
"0.58731306",
"0.57682747",
"0.57328236",
"0.5693972",
"0.5611685",
"0.553146",
"0.54506797",
"0.5344947",
"0.5342383",
"0.5342383",
"0.52600855",
"0.5248708",
"0.5224928",
"0.52238935",
"0.5214881",
"0.52000... | 0.9067024 | 0 |
svn_client_diff_summarize_t_prop_changed_set(svn_client_diff_summarize_t self, svn_boolean_t prop_changed) | def oQY4(V0lz, PVG2):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZVHE(V0lz):\n pass",
"def f1IT(K_VX, WMIE):\n pass",
"def Uprk(J9Vb, WMIE):\n pass",
"def R5LD(V0lz, ROdF):\n pass",
"def XHK8(AW8M, i0yZ):\n pass",
"def H8or(K_VX):\n pass",
"def PIQt(V0lz, XOvw):\n pass",
"def UOg4(AW8M, dxRb):\n pass",
"def sUZI(V0lz, uLpo):\n pass... | [
"0.78676045",
"0.6884133",
"0.6727451",
"0.649629",
"0.61240613",
"0.60022974",
"0.59423894",
"0.59331214",
"0.5827271",
"0.57093525",
"0.5647702",
"0.5643975",
"0.55876803",
"0.55399257",
"0.55255204",
"0.5388974",
"0.5316689",
"0.52723926",
"0.5267377",
"0.525543",
"0.52192... | 0.9315991 | 0 |
svn_client_diff_summarize_t_summarize_kind_get(svn_client_diff_summarize_t self) > svn_client_diff_summarize_kind_t | def YfBX(V0lz):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R5LD(V0lz, ROdF):\n pass",
"def WimA(V0lz):\n pass",
"def PIQt(V0lz, XOvw):\n pass",
"def ZVHE(V0lz):\n pass",
"def LlkM(L4A2):\n pass",
"def i0lS(V0lz):\n return ''",
"def pDfL(K_VX):\n pass",
"def nE6j(AMQ5, Ms4i):\n pass",
"def yrdJ(J9Vb):\n pass",
"def oQY4(V0lz... | [
"0.82144827",
"0.81350964",
"0.7210725",
"0.67859006",
"0.6389719",
"0.6204215",
"0.6001722",
"0.5956754",
"0.5928609",
"0.5817957",
"0.56867266",
"0.553927",
"0.5403637",
"0.54034",
"0.53857327",
"0.53426504",
"0.5213512",
"0.5213512",
"0.5190349",
"0.5163429",
"0.51478213",... | 0.9024059 | 0 |
svn_client_import2(svn_commit_info_t commit_info_p, char path, char url, svn_boolean_t nonrecursive, svn_boolean_t no_ignore, svn_client_ctx_t ctx, apr_pool_t pool) > svn_error_t | def pVko(OvB0, uLpo, ttMR, DKYb, bYCz, vSkh, Ms4i):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V4Yg(a1ZS, uLpo, ttMR, DKYb, vSkh, Ms4i):\n pass",
"def KsNz(OvB0, uLpo, ttMR, nFww, bYCz, r40e, wUem, vSkh, Ms4i):\n pass",
"def zcmD(VDyy, Ps_V, InNh, wyXJ, PDll, vSkh, Ms4i):\n pass",
"def kqrt(n11D, pwmc, uLpo, InNh, wyXJ, PDll, c9uJ, vSkh, Ms4i):\n pass",
"def nR1q(OvB0, Qctk, M3KL, xs... | [
"0.8417368",
"0.76345754",
"0.66372454",
"0.6523024",
"0.6385093",
"0.6322699",
"0.62499774",
"0.6230515",
"0.6215701",
"0.61286044",
"0.6111093",
"0.6107582",
"0.6103611",
"0.6074514",
"0.59068537",
"0.587278",
"0.5794625",
"0.5744138",
"0.57320726",
"0.5728285",
"0.5717733"... | 0.9278235 | 0 |
svn_client_propget3(apr_hash_t props, char propname, char target, svn_opt_revision_t peg_revision, svn_opt_revision_t revision, svn_revnum_t actual_revnum, svn_depth_t depth, apr_array_header_t changelists, svn_client_ctx_t ctx, apr_pool_t pool) > svn_error_t | def ARMd(oImg, LsTQ, FtdO, InNh, wyXJ, G4ls, nFww, EAQ4, vSkh, Ms4i):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMok(OvB0, LsTQ, kXIV, FtdO, nFww, qqck, yF2g, EAQ4, wUem, vSkh, Ms4i):\n pass",
"def Q_hT(oImg, LsTQ, FtdO, InNh, wyXJ, PDll, vSkh, Ms4i):\n pass",
"def Ebu1(oImg, LsTQ, FtdO, wyXJ, PDll, vSkh, Ms4i):\n pass",
"def Rwog(FtdO, InNh, wyXJ, nFww, EAQ4, HMiV, iT6H, vSkh, Ms4i):\n pass",
"def J... | [
"0.82713264",
"0.81894386",
"0.8147888",
"0.810397",
"0.7129083",
"0.6978838",
"0.697013",
"0.6851076",
"0.680236",
"0.6688338",
"0.6673157",
"0.6601791",
"0.6455031",
"0.6422655",
"0.64188063",
"0.64058447",
"0.6365949",
"0.63453186",
"0.6339532",
"0.6271312",
"0.6257909",
... | 0.9468091 | 0 |
svn_client_proplist3(char target, svn_opt_revision_t peg_revision, svn_opt_revision_t revision, svn_depth_t depth, apr_array_header_t changelists, svn_proplist_receiver_t receiver, void receiver_baton, svn_client_ctx_t ctx, apr_pool_t pool) > svn_error_t | def Rwog(FtdO, InNh, wyXJ, nFww, EAQ4, HMiV, iT6H, vSkh, Ms4i):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p43u(OeG0, FtdO, wyXJ, PDll, vSkh, Ms4i):\n pass",
"def ARMd(oImg, LsTQ, FtdO, InNh, wyXJ, G4ls, nFww, EAQ4, vSkh, Ms4i):\n pass",
"def vhnN(OeG0, FtdO, InNh, wyXJ, PDll, vSkh, Ms4i):\n pass",
"def wMok(OvB0, LsTQ, kXIV, FtdO, nFww, qqck, yF2g, EAQ4, wUem, vSkh, Ms4i):\n pass",
"def cwxj(oI... | [
"0.8193079",
"0.8122536",
"0.79876274",
"0.769003",
"0.754933",
"0.6980174",
"0.6889054",
"0.68708724",
"0.6847709",
"0.67901134",
"0.67787415",
"0.66252464",
"0.65403706",
"0.6467043",
"0.6459379",
"0.6394163",
"0.63692254",
"0.6273128",
"0.61687714",
"0.6138672",
"0.6135223... | 0.9375418 | 0 |
svn_info_t_copyfrom_url_get(svn_info_t self) > char | def WdHm(L4A2):
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIrJ(K_VX):\n return ''",
"def xoY6(J9Vb):\n return ''",
"def X8JC(L4A2):\n pass",
"def CqUq(L4A2, w6JW):\n pass",
"def P7OI(AW8M):\n return ''",
"def A8w1(L4A2):\n return ''",
"def OYiZ(BjiE):\n pass",
"def Zke7(J9Vb, w6JW):\n pass",
"def dF_X(K_VX, w6JW):\n pass",
... | [
"0.7808872",
"0.7670703",
"0.7613388",
"0.7376077",
"0.72850025",
"0.70574605",
"0.6516392",
"0.64850783",
"0.6443655",
"0.6430642",
"0.6399229",
"0.62092215",
"0.61944014",
"0.6191743",
"0.6180293",
"0.6141009",
"0.6072837",
"0.6036308",
"0.60351527",
"0.5882763",
"0.5781884... | 0.89463943 | 0 |
svn_info_t_kind_get(svn_info_t self) > svn_node_kind_t | def LlkM(L4A2):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WimA(V0lz):\n pass",
"def rY8W(L4A2, LSXZ):\n pass",
"def ZHNq(L4A2):\n pass",
"def kXzH(L4A2):\n pass",
"def VaeX(L4A2):\n pass",
"def pDfL(K_VX):\n pass",
"def yrdJ(J9Vb):\n pass",
"def S5Rp(YKHO):\n return YKHO.kind",
"def tY80(L4A2):\n pass",
"def PIQt(V0lz, XOv... | [
"0.68394387",
"0.67667496",
"0.6679837",
"0.6305034",
"0.6134032",
"0.6090412",
"0.6019501",
"0.5974169",
"0.5784238",
"0.57607996",
"0.5748308",
"0.5704415",
"0.5694862",
"0.56660664",
"0.5578257",
"0.5558606",
"0.5558373",
"0.5546748",
"0.5546748",
"0.5536705",
"0.55242133"... | 0.82220596 | 0 |
svn_info_t_kind_set(svn_info_t self, svn_node_kind_t kind) | def rY8W(L4A2, LSXZ):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xew(J9Vb, LSXZ):\n pass",
"def F7dE(K_VX, LSXZ):\n pass",
"def meGU(YKHO, X4oY):\n YKHO.kind = X4oY",
"def sP54(AW8M, LSXZ):\n pass",
"def zPF0(L4A2, nFww):\n pass",
"def PIQt(V0lz, XOvw):\n pass",
"def tpup(L4A2, KjLo):\n pass",
"def eJTR(YKHO, eJTR):\n YKHO._kind = eJTR... | [
"0.747396",
"0.7382833",
"0.692102",
"0.69129485",
"0.6683998",
"0.66225976",
"0.63839155",
"0.63796026",
"0.6217758",
"0.6082325",
"0.6034043",
"0.5940195",
"0.5684703",
"0.55883026",
"0.554584",
"0.54438215",
"0.5441747",
"0.54327875",
"0.5427826",
"0.5420549",
"0.5354502",... | 0.91687304 | 0 |
svn_info_t_last_changed_author_get(svn_info_t self) > char | def L7Kf(L4A2):
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c1Qq(KR0_):\n return ''",
"def LkcR(L4A2, paNg):\n pass",
"def DmH2(YKHO):\n return YKHO._get_property(aM69.SVN_PROP_REVISION_AUTHOR)",
"def dBlL(YKHO):\n if not len(YKHO.get_authors()):\n return ''\n return YKHO.get_authors()[-1]",
"def j_Pe(L4A2):\n pass",
"def OEdr(L4A2):\... | [
"0.8285633",
"0.80974233",
"0.7885853",
"0.72278285",
"0.70855093",
"0.6728767",
"0.6648759",
"0.658164",
"0.6433953",
"0.6433953",
"0.6433953",
"0.6433953",
"0.6433953",
"0.6433953",
"0.6398683",
"0.6398683",
"0.63945746",
"0.6390639",
"0.6390639",
"0.63872653",
"0.63542145"... | 0.9276592 | 0 |
svn_info_t_last_changed_author_set(svn_info_t self, char last_changed_author) | def LkcR(L4A2, paNg):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jJpZ(KR0_, w_YE):\n pass",
"def L7Kf(L4A2):\n return ''",
"def FjNa(L4A2, QFeS):\n pass",
"def c1Qq(KR0_):\n return ''",
"def mEGk(YKHO, mEGk):\n YKHO._modified_author = mEGk",
"def XWlV(L4A2, ywvu):\n pass",
"def DmH2(YKHO):\n return YKHO._get_property(aM69.SVN_PROP_REVISION_A... | [
"0.8275402",
"0.77378523",
"0.7376716",
"0.6982881",
"0.6883287",
"0.68787444",
"0.66588235",
"0.6456837",
"0.6440514",
"0.6412464",
"0.6412464",
"0.6397687",
"0.6227693",
"0.622214",
"0.61915696",
"0.61510694",
"0.6146187",
"0.60465676",
"0.60102004",
"0.5999108",
"0.5903722... | 0.9575148 | 0 |
svn_info_t_schedule_set(svn_info_t self, svn_wc_schedule_t schedule) | def ZlLO(L4A2, Be0L):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b6Gq(YKHO, b6Gq):\n YKHO._schedule = b6Gq",
"def b6Gq(YKHO, b6Gq):\n YKHO._schedule = b6Gq",
"def b6Gq(YKHO, b6Gq):\n YKHO._schedule = b6Gq",
"def l5PU(L4A2):\n pass",
"def xyPJ(YKHO, H5ew, wEf2):\n if H5ew in YKHO.params.schedule[YKHO.sched_idx].keys():\n assert type(wEf2) == typ... | [
"0.683007",
"0.67963296",
"0.67963296",
"0.6584528",
"0.64661664",
"0.6426982",
"0.6384447",
"0.605678",
"0.5967518",
"0.5822588",
"0.5804103",
"0.57959473",
"0.5771098",
"0.57616556",
"0.57277805",
"0.567608",
"0.5657952",
"0.55780154",
"0.55780154",
"0.5514905",
"0.55051655... | 0.9174558 | 0 |
svn_info_t_working_size_set(svn_info_t self, apr_size_t working_size) | def JSkO(L4A2, CU_j):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdFp(L4A2, rCly):\n pass",
"def rdiX(L4A2, pj3r):\n pass",
"def pfju(L4A2):\n pass",
"def kjo0(L4A2, ljCp):\n pass",
"def o75m(L4A2):\n pass",
"def tY80(L4A2):\n pass",
"def auAM(L4A2):\n pass",
"def SFOW(YKHO, SFOW):\n YKHO.logger.debug(\"In 'lib_size' setter.\")\n YKH... | [
"0.8151129",
"0.7801787",
"0.75007445",
"0.68601197",
"0.66594666",
"0.61136734",
"0.54990923",
"0.53647494",
"0.5268772",
"0.52181035",
"0.52144027",
"0.51243985",
"0.5092611",
"0.5088271",
"0.50758404",
"0.5047334",
"0.5019791",
"0.49932966",
"0.49894035",
"0.49856564",
"0.... | 0.9390421 | 0 |
Function used to create postgres persistence connection. Persistence connections are returned as conext managers | def trd0():
UzPC = None
S0MI.debug(C_9D)
try:
S0MI.debug('connecting to postgres at %s:%s', HBXE, qnz2)
UzPC = ehoX.connect(host=HBXE, port=qnz2, dbname=DJJ7, user=C_9D, password=r5U5)
yield UzPC
except Exception:
S0MI.exception('unable to connect to postgres server')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GI2h(KcEq, bIwZ, p9bx, CBIr, jTXt):\n if KcEq is None:\n return RrI4()\n return ehoX.connect(host=KcEq, port=bIwZ, database=p9bx, user=CBIr, password=jTXt)",
"def WD1p(KcEq):\n global pg_pool\n Sgqf['host'] = KcEq\n hXfn = ZxYT(1, 1, **Sgqf)",
"def TDLJ():\n global DB_CONN\n RK7... | [
"0.6981025",
"0.6961091",
"0.68950003",
"0.66606796",
"0.6648345",
"0.65214735",
"0.6496516",
"0.6493211",
"0.64902794",
"0.6460291",
"0.6457225",
"0.6453548",
"0.64477056",
"0.64331967",
"0.6425083",
"0.6379545",
"0.6376395",
"0.63722",
"0.6344849",
"0.63379145",
"0.63202846... | 0.77592707 | 0 |
Returns the first derivative of this function. | def otzj(YKHO, IRoe=1):
if IRoe == 1:
ZDEf, Elif = YKHO.args
elif IRoe == 2:
Elif, ZDEf = YKHO.args
else:
raise JijJ(YKHO, IRoe)
return o4sw.One / (o4sw.One + kLQb(Elif - ZDEf)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BESI(WKvO, eHNT):\n BXW4 = oyIN.diff(eHNT, n=1)\n BXW4 = oyIN.insert(BXW4, -1, 2 * BXW4[-1] - BXW4[-2])\n Jw7X = WKvO[1] - WKvO[2]\n return BXW4 / Jw7X",
"def VVyp(YKHO):\n return YKHO.__derivative",
"def VVyp(YKHO, Es0b):\n k8DP = YKHO._first_derivatives.get(Es0b, None)\n if k8DP:\n ... | [
"0.7530795",
"0.7430149",
"0.73162156",
"0.72494024",
"0.713683",
"0.69219786",
"0.6829865",
"0.68269074",
"0.68269074",
"0.67980707",
"0.6784626",
"0.67548066",
"0.6738904",
"0.67270386",
"0.67239046",
"0.66612506",
"0.66538906",
"0.66401637",
"0.6624474",
"0.6601718",
"0.65... | 0.0 | -1 |
Returns the first derivative of this function. | def otzj(YKHO, IRoe=1):
if IRoe == 1:
ZDEf, Elif = YKHO.args
elif IRoe == 2:
Elif, ZDEf = YKHO.args
else:
raise JijJ(YKHO, IRoe)
return o4sw.One / (o4sw.One + Xhes(Elif - ZDEf)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BESI(WKvO, eHNT):\n BXW4 = oyIN.diff(eHNT, n=1)\n BXW4 = oyIN.insert(BXW4, -1, 2 * BXW4[-1] - BXW4[-2])\n Jw7X = WKvO[1] - WKvO[2]\n return BXW4 / Jw7X",
"def VVyp(YKHO):\n return YKHO.__derivative",
"def VVyp(YKHO, Es0b):\n k8DP = YKHO._first_derivatives.get(Es0b, None)\n if k8DP:\n ... | [
"0.75322205",
"0.7427677",
"0.73151964",
"0.72493833",
"0.7135277",
"0.6922012",
"0.6830198",
"0.682571",
"0.682571",
"0.67972076",
"0.678245",
"0.67543954",
"0.6739043",
"0.6725314",
"0.6724556",
"0.666094",
"0.6657224",
"0.6641314",
"0.66256696",
"0.6599786",
"0.6548251",
... | 0.0 | -1 |
Do a PATCH request. This uses the same machinery as the | def Po4F(YKHO, bD7m, NArs='', MOPg=None, kQZ1=None, jGRS=None, hIw9=None, wPMw=False, m5r4=None):
return YKHO._gen_request(T8B7.PATCH, bD7m, params=NArs, headers=MOPg, extra_environ=kQZ1, status=jGRS, upload_files=hIw9, expect_errors=wPMw, content_type=m5r4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)",
"def irEl(YKHO, bD7m='', nPrm='', NArs={}, MOPg={}):\n return YKHO.httpRequest('PATCH', bD7m, nPrm, NArs, MOPg)",
"def pc4v(YKHO, bD7m, nPrm=None):\n bD7m = TDhU(YKHO.base_url, bD7m)\n try:\n Mkmy = YKHO._make_request(**... | [
"0.7743462",
"0.77286404",
"0.7622272",
"0.75281286",
"0.7448754",
"0.7441001",
"0.7423951",
"0.74221957",
"0.7416324",
"0.73637104",
"0.73637104",
"0.73637104",
"0.7346026",
"0.7323683",
"0.7308394",
"0.7308394",
"0.7308394",
"0.7308394",
"0.7308394",
"0.7308394",
"0.7308394... | 0.72226787 | 58 |
Returns the value for the `extra_environ` argument for the test app. Override as needed. | def bS_S(YKHO):
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KW8w(YKHO):\n sEAN = Hy7s.environ.copy()\n sEAN.update(YKHO.environ)\n return sEAN",
"def yJTJ() -> None:\n Hy7s.environ['TEST'] = 'tester'\n assert Hy7s.getenv('TEST') == 'tester'",
"def FR2l(YKHO):\n PNq_ = super(tMlj, YKHO).GetEnvironment()\n if YKHO.remote_host:\n PNq_['REMO... | [
"0.69434726",
"0.64579123",
"0.63592416",
"0.6341877",
"0.6302095",
"0.62654185",
"0.6226835",
"0.6225195",
"0.6225195",
"0.6225195",
"0.6218294",
"0.61880505",
"0.61880505",
"0.61726665",
"0.6103414",
"0.6099938",
"0.5999508",
"0.59866756",
"0.59786534",
"0.5972798",
"0.5936... | 0.6623509 | 1 |
Return name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91892266",
"0.91065603",
"0.88736004",
"0.8769252",
"0.84767765",
"0.8469974",
"0.8393087",
"0.8189466",
"0.815263",
"0.8106677",
"0.80864394",
"0.8052524",
"0.80067706",
"0.76449907",
"0.7564941",
"0.7544501",
"0.75436926",
"0.75436926",
"0.75436926",
"0.74614936",
"0.742... | 0.0 | -1 |
Return the device class of the sensor. | def rM2U(YKHO):
return YKHO._device_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO.sensor_type['class']",
"def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')",
"def rM2U(YKHO):\n return YKHO._sensor_type",
"def rM2U(YKHO):\n return YKHO._sensor_cfg[3]",
"def rM2U(YKHO):\n return YKHO._sensor_cfg[3]",
"def rM2U(YKHO) -> str | N... | [
"0.93628424",
"0.92430294",
"0.9240069",
"0.9161452",
"0.9161452",
"0.9156968",
"0.90412056",
"0.90412056",
"0.8956785",
"0.89529496",
"0.8950599",
"0.8919914",
"0.871994",
"0.8717259",
"0.87069035",
"0.8660478",
"0.8652474",
"0.83961546",
"0.83828783",
"0.8380708",
"0.838070... | 0.82700956 | 26 |
Return the device state attributes. | def R1i3(YKHO):
if YKHO._sensor_type == uS0p:
return {PlJk: YyUn, m31z: YKHO._camera_data['last_ring']}
if YKHO._camera_data['event_object'] is not None and len(YKHO._camera_data['event_object']) > 0:
i9es = YKHO._camera_data['event_object'][0]
vzeF.debug(f'OBJECTS: {YKHO._camera_data['e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attrs",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._... | [
"0.9316605",
"0.92450595",
"0.9219782",
"0.9214165",
"0.9214165",
"0.9210408",
"0.9210408",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0.91902775",
"0... | 0.74760723 | 90 |
A Bohrium Reduction Reduces `ary`'s dimension by len('axis'), by applying ufunc along the axes in 'axis'. | def Pusg(YKHO, FUTK, jDK_=0, yvT9=None):
from . import _bh
if yvT9 is not None:
if KvBX.check(yvT9):
if not KvBX.check(FUTK):
FUTK = p1CM.array(FUTK)
elif KvBX.check(FUTK):
FUTK = FUTK.copy2numpy()
if not KvBX.check(FUTK):
JfyU = eval('np.%s.re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nllq(N4fU, jDK_: int, ezWE: np.ndarray) -> oyIN.ndarray:\n assert ezWE.ndim == 2\n assert jDK_ in [0, 1]\n if jDK_ == 0:\n Aofo = oyIN.empty(ezWE.shape[1])\n for YRbF in range(len(Aofo)):\n Aofo[YRbF] = N4fU(ezWE[:, YRbF])\n return Aofo\n Aofo = oyIN.empty(ezWE.shape... | [
"0.6237141",
"0.60435605",
"0.603851",
"0.5921708",
"0.5861203",
"0.5551893",
"0.55097455",
"0.5453685",
"0.5396183",
"0.5359293",
"0.53456074",
"0.5342344",
"0.5331998",
"0.53126943",
"0.5310059",
"0.52900064",
"0.5264012",
"0.5249909",
"0.5229858",
"0.52029806",
"0.51923656... | 0.56265444 | 5 |
accumulate(ary, axis=0, out=None) Accumulate the result of applying the operator to all elements. | def pD6w(YKHO, FUTK, jDK_=0, yvT9=None):
from . import _bh
if yvT9 is not None:
if KvBX.check(yvT9):
if not KvBX.check(FUTK):
FUTK = p1CM.array(FUTK)
elif KvBX.check(FUTK):
FUTK = FUTK.copy2numpy()
if yvT9.shape != FUTK.shape:
raise Val... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sum(input, jDK_=None, yDqo=None, JsoO=False, DTEE=None):\n yvT9 = Hzsy.Sum(axis=jDK_, dtype=yDqo, acc_dtype=DTEE)(input)\n if JsoO:\n yvT9 = KkdI(input, yvT9, jDK_)\n return yvT9",
"def yAJf(dRO0, EcVT, yvT9, stkY):\n K3B_ = dRO0(EcVT, check_input=False)\n with stkY:\n yvT9 += oy... | [
"0.67935115",
"0.66259897",
"0.6521687",
"0.6389775",
"0.63892937",
"0.6328819",
"0.59617686",
"0.5882562",
"0.5812154",
"0.5812154",
"0.5804173",
"0.57571036",
"0.5739729",
"0.5695846",
"0.5690788",
"0.56224227",
"0.5589803",
"0.5527776",
"0.5489498",
"0.54510677",
"0.544601... | 0.78725344 | 0 |
Returns 3d valid data. | def NAD_(YKHO, D2Z6=14):
YsCx, tXQa = nUTO(YKHO.dataset_name, D2Z6)
return YKHO._data_valid['3d'][:, YsCx, :][:, tXQa, :] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hwv4(nPrm):\n return nPrm.find('x3') != -1 and nPrm.find('y3') != -1 and (nPrm.find('z3') != -1)",
"def rx9L():\n Op6c, nPrm = SMR4.bruker.read(Hy7s.path.join(yt7q, 'bruker_3d'))\n assert Op6c['FILE_SIZE'] == 91226112\n assert nPrm.shape == (116, 128, 768)\n assert round(nPrm[0, 0, 40].real, 2... | [
"0.7532375",
"0.6940183",
"0.652771",
"0.6457054",
"0.64282495",
"0.64165044",
"0.62433654",
"0.6223354",
"0.6176144",
"0.6132229",
"0.6087384",
"0.6074368",
"0.6049441",
"0.60464436",
"0.6007975",
"0.5935855",
"0.59288055",
"0.59222215",
"0.592137",
"0.58741105",
"0.5871477"... | 0.7096854 | 1 |
Returns 3d train data. | def ZB7u(YKHO, D2Z6=14):
YsCx, tXQa = nUTO(YKHO.dataset_name, D2Z6)
return YKHO._data_train['3d'][:, YsCx, :][:, tXQa, :] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p6zc():\n aJVC = oyIN.random.uniform(0.05, 1.5, 20)\n RJb1 = oyIN.random.uniform(-1.5, 1.5, 20)\n xfdQ = oyIN.random.uniform(-2.5, -0.05, 20)\n jKWX = oyIN.random.uniform(-1.5, -0.05, 20)\n miAm = oyIN.random.uniform(-1.5, 1.5, 20)\n C9lb = oyIN.random.uniform(0.05, 2.5, 20)\n dg7v = oyIN.... | [
"0.73942995",
"0.66789097",
"0.6474685",
"0.6346981",
"0.6288572",
"0.6286349",
"0.6199346",
"0.6167934",
"0.61596406",
"0.6152005",
"0.6077879",
"0.60763997",
"0.604047",
"0.5980081",
"0.59743994",
"0.59697616",
"0.5956547",
"0.59332",
"0.5932777",
"0.5904763",
"0.5876346",
... | 0.78472483 | 0 |
Converts miles to meters, rounded to the nearest whole number. | def zrUK(r1VO):
return int(float(r1VO) * 1609.34) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QAKp(l1UJ):\n JYmd = l1UJ / 1609.344\n return JYmd",
"def kkZL(ssQ2: float) -> float:\n ssQ2 = float(ssQ2)\n JYmd = float(float(ssQ2) * 0.621371)\n return round(JYmd, 2)",
"def brid(q5XV):\n return q5XV * 0.621371",
"def zpqm(JYmd):\n return JYmd * 1.60934",
"def zpqm(JYmd: float) ... | [
"0.81682926",
"0.7875149",
"0.76584095",
"0.76218885",
"0.76056963",
"0.70458174",
"0.6974989",
"0.69184357",
"0.6867443",
"0.68558884",
"0.6825659",
"0.6766679",
"0.6661196",
"0.6610125",
"0.6587087",
"0.6569354",
"0.6537348",
"0.6537227",
"0.6530841",
"0.6530439",
"0.651601... | 0.6613011 | 13 |
Calculates the distance between two given coordinates. | def AUp_(fZEQ, sgoH):
SppC = o8hB.distance_matrix.distance_matrix(client=yvTX, origins=sgoH, destinations=fZEQ)
return SppC['rows'][0]['elements'][0]['distance']['value'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(UdKV, P38E):\n Jw7X = UdKV.x - P38E.x\n eUWA = UdKV.y - P38E.y\n return epAf.sqrt(Jw7X * Jw7X + eUWA * eUWA)",
"def Ayfi(YKHO, bQpE, V6Wq):\n return oyIN.sqrt(oyIN.sum((oyIN.array(bQpE) - oyIN.array(V6Wq)) ** 2))",
"def AUp_(UdKV, P38E):\n qX8A = UdKV[0] - P38E[0]\n ypTk = UdKV[1] - ... | [
"0.8268374",
"0.8074661",
"0.797889",
"0.79681253",
"0.79414403",
"0.7940307",
"0.77802664",
"0.7773011",
"0.772568",
"0.7687611",
"0.7681222",
"0.764327",
"0.7633944",
"0.76305765",
"0.76203537",
"0.76189834",
"0.7603321",
"0.7565994",
"0.7557827",
"0.7544807",
"0.7542795",
... | 0.0 | -1 |
r""" Create a discrete random variable with a Geometric distribution. The density of the Geometric distribution is given by | def I6yV(mWFP, XP5J):
return im04(mWFP, WkMz, XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tuKI(Fw8z, yokr=None, Qak0=[0, 1], **B2fa):\n tan8 = Qak0[1] - Qak0[0]\n doEt = Qak0[0]\n z9km.random.seed(yokr)\n BWXx = z9km.random.rand(Fw8z.num_pores())\n BWXx = BWXx * tan8 + doEt\n return BWXx",
"def H6tO(WKvO, Oa1e):\n return int(WKvO / Oa1e)",
"def J4GA() -> float:\n return ... | [
"0.60542434",
"0.6043958",
"0.59194964",
"0.5915599",
"0.5895222",
"0.58619434",
"0.58322936",
"0.5828566",
"0.58039457",
"0.5784327",
"0.5780806",
"0.5778434",
"0.57747984",
"0.5711066",
"0.5703902",
"0.5693549",
"0.5679563",
"0.56755376",
"0.56635416",
"0.5650023",
"0.56491... | 0.6951446 | 0 |
Convert name to a nix/Windows compliant name. | def CGqe(YKHO, mWFP):
hlel = ''
for hcXw in mWFP:
if hcXw not in '\\/<>:"|?*':
hlel += hcXw
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M92n(YKHO, mWFP):\n if not YKHO.re_name.match(mWFP):\n jpuF = mWFP\n mWFP = YKHO.re_white.sub('_', mWFP)\n mWFP = YKHO.re_alpha.sub('_', mWFP)\n if not YKHO.re_name.match(mWFP):\n mWFP = 'x_' + zuPL\n YKHO.warn('Converting name <' + jpuF + '> to <' + mWFP + '>.'... | [
"0.7043938",
"0.66246194",
"0.657294",
"0.65226513",
"0.6516094",
"0.65088147",
"0.64566916",
"0.63826513",
"0.63487756",
"0.62813246",
"0.62733155",
"0.6252774",
"0.6250221",
"0.622897",
"0.622897",
"0.622897",
"0.6219936",
"0.6202166",
"0.61980385",
"0.6186431",
"0.6181578"... | 0.0 | -1 |
Get the channel name by its ID. | def iEPN(YKHO, qq5u, hfso=False):
if hfso:
return qq5u
QePW = _iBR(YKHO.headers).request
YwkQ = QePW.grab_page('https://discordapp.com/api/%s/channels/%s' % (YKHO.api, qq5u))
if YwkQ is not None and len(YwkQ) > 0:
return '%s_%s' % (qq5u, YKHO.safe_name(YwkQ['name']))
else:
P1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R5yJ(hr1j: int, LOJ7: int) -> str:\n return f'COMM{hr1j} Ch {LOJ7}'",
"def KKRw(LOJ7, d86H):\n QePW = d86H.channels().list(id=LOJ7, part='snippet')\n nyyK = False\n geh0 = None\n while not nyyK:\n try:\n geh0 = QePW.execute()\n nyyK = True\n except Connectio... | [
"0.7734959",
"0.7656727",
"0.7381315",
"0.7353043",
"0.7352264",
"0.7048186",
"0.7013412",
"0.69818234",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
"0.6921961",
... | 0.80888605 | 0 |
Given any number of dicts, shallow copy and merge into a new dict, precedence goes to key value pairs in latter dicts. | def roQF(*c974):
Aofo = U8Lr()
for cmPJ in c974:
Aofo.update(cmPJ)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)",
"def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)",
"def cyBQ(yLHq, RKYb, jRxN=True):\n if not isinstance(yLHq, dict) or not isinstance(RKYb, dict):\n if jRxN:\n ret... | [
"0.76676226",
"0.7661076",
"0.74781454",
"0.74528927",
"0.74528927",
"0.74528927",
"0.73743427",
"0.73391306",
"0.73064536",
"0.72796404",
"0.7273245",
"0.72545314",
"0.7252352",
"0.7252352",
"0.7252352",
"0.7252352",
"0.7252352",
"0.7252352",
"0.7230961",
"0.72210413",
"0.72... | 0.70483875 | 45 |
Return a list of supported queues. | def ASta():
Aofo = set()
for KCHu in list(JZ78.values()):
for vexM in list(KCHu['queue'].keys()):
Aofo.add(vexM)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PV_Q(YKHO):\n return PV_Q.SupportQueues(YKHO)",
"def PV_Q(YKHO):\n return PV_Q.SupportQueues(YKHO)",
"def If3l(YKHO):\n return YKHO.manager.get_queue_list()",
"def R92B(YKHO):\n return {gCuF.CELERY_DEFAULT_QUEUE}",
"def rysN(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y... | [
"0.7771313",
"0.775598",
"0.75568277",
"0.75057006",
"0.7455343",
"0.7444875",
"0.74030936",
"0.7097112",
"0.7097112",
"0.7097112",
"0.7097112",
"0.7097112",
"0.7097112",
"0.7097112",
"0.7097112",
"0.7097112",
"0.6970413",
"0.69041026",
"0.6897422",
"0.68731046",
"0.66654605"... | 0.7030297 | 16 |
Returns MAE scores for specified models. Also returns r2 scores if applicable | def Lc73(WKvO, LVAh, BHCt):
C3ST = BHCt
C3ST.fit(WKvO, LVAh)
aTLP = C3ST.predict(sAoX)
aTLP = abs(aTLP.astype(int))
nswj = H96n
print(f'{BHCt.__class__.__name__}:: r2 score = {round(Wbxz.r2_score(nswj, aTLP), 2)} : MAE = {round(Wbxz.mean_absolute_error(nswj, aTLP), 2)}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BpWW(YKHO, FYrf, cCrA):\n yGTL = oyIN.mean(cCrA)\n WTkW = oyIN.std(cCrA)\n uqnm = FYrf[oyIN.argmax(cCrA)]\n Qai7 = max(cCrA)\n return (uqnm, Qai7, yGTL, WTkW)",
"def LjZq(FYrf, EcVT, LVAh):\n print('评价每个模型.')\n for mWFP, C3ST in FYrf.items():\n p1kx = nD1h(C3ST, EcVT, LVAh, scorin... | [
"0.69716173",
"0.69134426",
"0.6827993",
"0.6293499",
"0.6196036",
"0.61557287",
"0.60724896",
"0.60531837",
"0.60390484",
"0.6037368",
"0.60239035",
"0.5923087",
"0.5907896",
"0.58977896",
"0.5854042",
"0.578923",
"0.5747886",
"0.5728999",
"0.57236046",
"0.5710922",
"0.57055... | 0.5672249 | 23 |
Get tables for with the given table is child. | def HqGg(YKHO, GTA_):
return YKHO._parent_map[GTA_] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RbaF(YKHO, GTA_):\n return YKHO._child_map[GTA_]",
"def xU0C(YKHO):\n return TQJD.objects.filter(schema__database=YKHO)",
"def xU0C(YKHO):\n Aofo = YKHO.execute(YKHO.commands.get_tables(YKHO.name))\n return [WKvO[0] for WKvO in Aofo]",
"def d_72(YKHO, wnys):\n pass",
"def Tunz(YKHO):\n ... | [
"0.6494142",
"0.60838836",
"0.5994124",
"0.59354794",
"0.5920074",
"0.5889507",
"0.58781457",
"0.58670163",
"0.58670163",
"0.58517104",
"0.58226144",
"0.5802608",
"0.5789506",
"0.57556504",
"0.5721726",
"0.57105094",
"0.5701355",
"0.5692772",
"0.5657409",
"0.5653688",
"0.5651... | 0.5854755 | 9 |
Get the metadata dict for a table. | def TVw3(YKHO, GTA_):
tyNF = YKHO._metadata['tables'].get(GTA_)
if tyNF is None:
raise ValueError('Table "{}" does not exist'.format(GTA_))
return jth9.deepcopy(tyNF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yMtB(tyNF):\n try:\n e5kH = tyNF.meta\n except AttributeError:\n e5kH = {}\n finally:\n return e5kH",
"def O2_O(YKHO, JQGU):\n YKHO.connect()\n e5kH = i48E.MetaData()\n e5kH.bind = YKHO._engine\n EF9J = i48E.Table(JQGU, e5kH, autoload=True)\n WfCS = []\n for fv... | [
"0.756161",
"0.7534733",
"0.7338625",
"0.70126116",
"0.68368196",
"0.67335916",
"0.6673666",
"0.6602496",
"0.6576455",
"0.65026534",
"0.64554507",
"0.64540905",
"0.6446574",
"0.6425233",
"0.64140755",
"0.6393015",
"0.63655156",
"0.6358795",
"0.6342792",
"0.6337526",
"0.633489... | 0.7557975 | 1 |
Get the metadata dict for a table. | def XHgu(YKHO, GTA_, vXX7):
H9yP = YKHO.get_fields(GTA_).get(vXX7)
if H9yP is None:
raise ValueError('Table "{}" does not contain a field name "{}"'.format(GTA_, vXX7))
return jth9.deepcopy(H9yP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yMtB(tyNF):\n try:\n e5kH = tyNF.meta\n except AttributeError:\n e5kH = {}\n finally:\n return e5kH",
"def TVw3(YKHO, GTA_):\n tyNF = YKHO._metadata['tables'].get(GTA_)\n if tyNF is None:\n raise ValueError('Table \"{}\" does not exist'.format(GTA_))\n return jth... | [
"0.756161",
"0.7557975",
"0.7534733",
"0.7338625",
"0.70126116",
"0.68368196",
"0.67335916",
"0.6673666",
"0.6602496",
"0.6576455",
"0.65026534",
"0.64554507",
"0.64540905",
"0.6446574",
"0.6425233",
"0.64140755",
"0.6393015",
"0.63655156",
"0.6358795",
"0.6342792",
"0.633752... | 0.0 | -1 |
Get the name of all the fields in the child that are foreign keys to this parent. If there is no relationship between the two tables an empty list is returned. | def oIBR(YKHO, _AKB, aUGN):
nmZj = []
for mWFP, Jyyj in YKHO.get_fields(aUGN).items():
bf9h = Jyyj.get('ref')
if bf9h and bf9h['table'] == _AKB:
nmZj.append(mWFP)
return nmZj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nmZj(YKHO):\n TK2h = YKHO.execute(YKHO.commands.foreign_keys(YKHO.db.name, YKHO.name))\n return [w4Cq(*SjLr) for SjLr in TK2h]",
"def t1l9(YKHO):\n YKHO.analyze()\n eSEY = dict()\n for pan_ in ArHU():\n TifC = eSEY.setdefault(pan_, dict())\n for r8hN, VQaI in pan_._lino_ddh.fklis... | [
"0.7092916",
"0.6686581",
"0.6460234",
"0.6412646",
"0.63824487",
"0.6286466",
"0.6244739",
"0.6243302",
"0.6073357",
"0.60443544",
"0.60438615",
"0.60056186",
"0.60031575",
"0.59623134",
"0.5954363",
"0.59136015",
"0.5912276",
"0.58957434",
"0.58934325",
"0.58748615",
"0.584... | 0.800728 | 0 |
Load the data of the indicated table as a DataFrame. | def sQfo(YKHO, GTA_):
S0MI.info('Loading table %s', GTA_)
KHoW = YKHO.get_table_meta(GTA_)
return tneA(YKHO.root_path, KHoW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpBV(tyNF):\n eHpk = y2U9(GzKZ, encoding='latin1')\n w2B8 = eHpk.connect()\n EfUA = w2B8.execute('select * from ' + tyNF)\n jQ3Z = rLdf.DataFrame(EfUA.fetchall())\n jQ3Z.columns = EfUA.keys()\n w2B8.close()\n return jQ3Z",
"def Q3Nq(w2B8, k9X4: str):\n WNtM = f\"\\n SELECT *\\n... | [
"0.7611794",
"0.74878687",
"0.7388418",
"0.7288019",
"0.7241147",
"0.71715045",
"0.70901954",
"0.704221",
"0.7033023",
"0.6985092",
"0.6933346",
"0.6891327",
"0.68870693",
"0.68286896",
"0.6785773",
"0.6771751",
"0.67474866",
"0.6679523",
"0.66639715",
"0.6635452",
"0.6633521... | 0.63172114 | 53 |