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 |
|---|---|---|---|---|---|---|
Return Variable or Constant. | def nVrR(YKHO, BWXx, QpfX):
H5ew = YKHO._extract_key(BWXx)
if H5ew is False:
return
Aofo = YKHO._lookup(H5ew, QpfX)
if Aofo is False:
return
while not Aofo and H5ew:
H5ew = YKHO._extract_fallback_key(BWXx, H5ew)
Aofo = YKHO._lookup(H5ew, QpfX)
if Aofo is False... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YIFN(YKHO, mWFP):\n Aofo = None\n if mWFP == 'time':\n Aofo = YKHO._result['time']\n elif mWFP == 'fYp':\n Aofo = YKHO.getYpFraction()\n elif mWFP == 'fBp':\n Aofo = YKHO.getBpFraction()\n else:\n try:\n Aofo = YKHO._factory.v(mWFP)\n except:\n ... | [
"0.69572014",
"0.67321044",
"0.65736693",
"0.65599227",
"0.65279025",
"0.651097",
"0.6472256",
"0.64339244",
"0.6428957",
"0.63950795",
"0.63786286",
"0.6374295",
"0.6366642",
"0.63629997",
"0.63489413",
"0.63106865",
"0.63030285",
"0.6302865",
"0.6268354",
"0.62634",
"0.6246... | 0.0 | -1 |
Amazon Resource Name (ARN) of the alarm | def hMqs(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XyhI(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'alarm_arn')",
"def FdjX(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'alarm_name')",
"def FdjX(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'alarm_name')",
"def _MOp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'alar... | [
"0.7918222",
"0.69975847",
"0.69975847",
"0.69005674",
"0.68550783",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",
"0.67119163",... | 0.63056356 | 67 |
Merge all the experiments with the same configuration but different seed | def gRcL(evlW):
QxYp = evlW.groupby(Ehyd).agg({'id': list, 'seed': list})
QxYp.columns = ['_ids', '_seeds']
QxYp = QxYp.reset_index()
QxYp = QxYp.rename(index=str, columns={'_ids': 'id', '_seeds': 'seed'})
QxYp['seed'] = QxYp['seed'].map(lambda WKvO: '[' + ','.join(WKvO) + ']')
QxYp['id'] = QxYp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZDKH():\n if Hy7s.path.exists(rYZo['experiment_dir']) and Hy7s.path.isdir(rYZo['experiment_dir']):\n RDuA.rmtree(rYZo['experiment_dir'])\n jWVu = Ub93(**rYZo)\n jWVu.update(Y6yT, oW4o, C3ST, LZpg, qLtD, save=True)\n nZsb = Ub93(**EOwU)\n nZsb.update(jNqj, emxo, C3ST, LZpg, qLtD, save=True... | [
"0.68546116",
"0.6760654",
"0.6165396",
"0.6165396",
"0.6165396",
"0.61596775",
"0.61333495",
"0.6109628",
"0.6090096",
"0.6039593",
"0.59845364",
"0.5973862",
"0.59658104",
"0.59438217",
"0.5929656",
"0.59280324",
"0.59280324",
"0.59196454",
"0.5875246",
"0.58668584",
"0.586... | 0.6937443 | 0 |
Gets the current in game time. Returns the time as an int between 0 and 23999, or None if the time cannot be found. | def m7L9(YKHO):
exwG = B9io('mcs/world/level.dat')
if exwG == None:
return None
else:
return exwG[0]['DayTime'].value % 24000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ApjM() -> int:\n return int(round(ITS7.time() * 1000))",
"def ApjM():\n return int(round(ITS7.time() * 1000))",
"def ApjM():\n return int(round(ITS7.time() * 1000))",
"def ApjM():\n return int(round(ITS7.time() * 1000))",
"def xOZo(YKHO):\n ITS7 = _Jth() % 24000\n if ITS7 < 0:\n ... | [
"0.7149717",
"0.71061766",
"0.71061766",
"0.70846814",
"0.70452166",
"0.70391977",
"0.69904196",
"0.6969348",
"0.67480356",
"0.6744507",
"0.66722023",
"0.6660204",
"0.6614243",
"0.6611182",
"0.66051054",
"0.6592911",
"0.6544333",
"0.6542616",
"0.6538097",
"0.65368944",
"0.653... | 0.7090657 | 3 |
Filter out whole sentences containing bad itn conversions. The output format is the same as input. | def SdmC(G2uy: str, nR3j: str, zMaX: Set) -> None:
yvT9 = open(nR3j, 'w', encoding='utf-8')
tTJ6 = []
KeUU = True
with open(G2uy, 'r', encoding='utf-8') as eHNT:
for zFiD in eHNT:
tTJ6.append(zFiD.strip())
if zFiD.startswith('<eos>'):
if KeUU and len(tTJ6)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fbUm(l5Ny):\n tyNF = str.maketrans('', '', pC3l)\n WKvO = [yzQ0.translate(tyNF) for yzQ0 in dFss(l5Ny)]\n WKvO = [yzQ0 for yzQ0 in WKvO if yzQ0.isalpha()]\n WKvO = [yzQ0 for yzQ0 in WKvO if len(yzQ0) > 1]\n WKvO = [yzQ0 for yzQ0 in WKvO if WnSJ.synsets(yzQ0)]\n QrZ9 = ''\n for GIN8 in WKvO... | [
"0.6231058",
"0.61170393",
"0.60668486",
"0.6054145",
"0.60028774",
"0.59828585",
"0.59470385",
"0.5929175",
"0.5892506",
"0.58804727",
"0.5879215",
"0.586481",
"0.5859604",
"0.58351207",
"0.5834845",
"0.5834845",
"0.58231926",
"0.58218557",
"0.5818687",
"0.58180714",
"0.5806... | 0.54750746 | 86 |
Returns the on config file name of informix server. | def jKEF(YKHO):
return YKHO._properties['informixInstance'].get('onConfigFile', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AeFH(YKHO):\n return Hy7s.path.join(YKHO.env.root_path, 'configs', YKHO.id + '.ini')",
"def pfhV(YKHO):\n return YKHO.config_files['server']",
"def rn2x():\n return m36K.config_file_name",
"def _NTK(YKHO):\n pass",
"def FgkN(YKHO):\n E0cB = HwRy.argv\n Xf8z = 'dev'\n if None != E0c... | [
"0.7477158",
"0.74626964",
"0.709979",
"0.7072942",
"0.6946749",
"0.6926367",
"0.6867455",
"0.67729497",
"0.67606974",
"0.67436194",
"0.66363007",
"0.6623724",
"0.66199",
"0.6608851",
"0.66087",
"0.6589289",
"0.65592515",
"0.6555651",
"0.65477854",
"0.65477854",
"0.6503137",
... | 0.74599737 | 2 |
Returns the log backup storage policy name | def jOvO(YKHO):
return YKHO._properties['informixInstance']['informixStorageDevice']['logBackupStoragePolicy'].get('storagePolicyName', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cbiz(YKHO):\n return YKHO._properties['informixInstance']['informixStorageDevice']['logBackupStoragePolicy'].get('storagePolicyId', None)",
"def AThA(YKHO):\n ZAoW = YKHO._commonProperties['storageDevice']\n if 'dataBackupStoragePolicy' in ZAoW:\n WSyB = ZAoW['dataBackupStoragePolicy']\n ... | [
"0.78337854",
"0.7803718",
"0.7430981",
"0.7322889",
"0.69033915",
"0.6660249",
"0.6550433",
"0.6550433",
"0.6550433",
"0.6550433",
"0.6550433",
"0.6550433",
"0.6550433",
"0.65258545",
"0.64349204",
"0.64349204",
"0.64349204",
"0.6433972",
"0.64001423",
"0.63580096",
"0.63186... | 0.86902195 | 0 |
Returns the log backup storage policy id | def cbiz(YKHO):
return YKHO._properties['informixInstance']['informixStorageDevice']['logBackupStoragePolicy'].get('storagePolicyId', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jOvO(YKHO):\n return YKHO._properties['informixInstance']['informixStorageDevice']['logBackupStoragePolicy'].get('storagePolicyName', None)",
"def AThA(YKHO):\n ZAoW = YKHO._commonProperties['storageDevice']\n if 'dataBackupStoragePolicy' in ZAoW:\n WSyB = ZAoW['dataBackupStoragePolicy']\n ... | [
"0.7894305",
"0.76021695",
"0.738693",
"0.7177134",
"0.7140591",
"0.7004335",
"0.7004335",
"0.67957884",
"0.6768486",
"0.66193193",
"0.6617962",
"0.6617962",
"0.6438892",
"0.6405153",
"0.61602956",
"0.61057764",
"0.61057764",
"0.60834885",
"0.60682195",
"0.6062492",
"0.603639... | 0.868483 | 0 |
Gets the properties of this instance. | def _kzF(YKHO):
super(JyVB, YKHO)._get_instance_properties()
YKHO._informix_instance = YKHO._properties['informixInstance'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iso7(YKHO):\n return YKHO._get()",
"def Iso7(YKHO):\n return YKHO.properties",
"def Iso7(YKHO):\n return YKHO.properties",
"def Iso7(YKHO):\n return YKHO._properties",
"def Iso7(YKHO):\n return YKHO._properties",
"def C9U5(YKHO):\n return YKHO.__properties",
"def C9U5(YKHO):\n ... | [
"0.91398895",
"0.9103651",
"0.9103651",
"0.9036496",
"0.9036496",
"0.90320843",
"0.89578015",
"0.8947579",
"0.8932107",
"0.8932107",
"0.8932107",
"0.8932107",
"0.8932107",
"0.8932107",
"0.8932107",
"0.8932107",
"0.8932107",
"0.8924514",
"0.88943136",
"0.8825887",
"0.88030505"... | 0.0 | -1 |
Recreate a string from an int. | def Yd6C(YKHO, input: int) -> str:
gLiZ = []
while input > 0:
gLiZ.append(input % 1000)
input //= 1000
gLiZ = [chr(YRbF) for YRbF in gLiZ]
return ''.join(gLiZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HaUO(zZcM: IntType) -> utf4:\n return utf4(str(zZcM))",
"def HaUO(YRbF):\n BHGE = '0123456789'\n if YRbF == 0:\n return '0'\n Aofo = ''\n while YRbF > 0:\n Aofo = BHGE[YRbF % 10] + Aofo\n YRbF = YRbF // 10\n return Aofo",
"def s3rX(YRbF):\n Bpww = ''\n d6pt = le... | [
"0.76896626",
"0.7548515",
"0.7440968",
"0.7436817",
"0.73315126",
"0.7241373",
"0.72303677",
"0.715949",
"0.715949",
"0.7155014",
"0.7082447",
"0.7078475",
"0.69864875",
"0.6977388",
"0.69081557",
"0.6901178",
"0.68909705",
"0.6856065",
"0.68446434",
"0.6820179",
"0.6783165"... | 0.611257 | 51 |
Checks if any projectiles hit the aliens | def PLq9(tJm0, Vjhr, C7MP, SaI9, WFC2):
RuMF = a9eO.sprite.groupcollide(WFC2, SaI9, True, True)
if len(SaI9) == 0:
WFC2.empty()
a_1E(tJm0, Vjhr, C7MP, SaI9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AswC(YKHO):\n if a9eO.sprite.spritecollideany(YKHO.ship, YKHO.aliens):\n YKHO._ship_hit()\n for oeTy in YKHO.aliens:\n if oeTy.rect.bottom >= YKHO.screen_rect.bottom:\n YKHO._ship_hit()\n break",
"def IiLo(YKHO, ZuPJ):\n Z9rn = YKHO\n for XP5J in ZuPJ:\n ... | [
"0.70634645",
"0.6757774",
"0.66313356",
"0.6623845",
"0.65925455",
"0.65772647",
"0.6451823",
"0.6429204",
"0.64240617",
"0.64235055",
"0.6382009",
"0.6351833",
"0.6339988",
"0.6336309",
"0.6324887",
"0.6296479",
"0.6276435",
"0.6262738",
"0.6252957",
"0.62419087",
"0.624019... | 0.6713756 | 2 |
Checks if the fleet is on one of the edges and then updates the positions of all the aliens in the fleet. | def bOBM(tJm0, eQSh, Vjhr, C7MP, SaI9, WFC2):
YSO3(tJm0, SaI9)
SaI9.update()
if a9eO.sprite.spritecollideany(C7MP, SaI9):
GR2R(tJm0, eQSh, Vjhr, C7MP, SaI9, WFC2)
Cshs(tJm0, eQSh, Vjhr, C7MP, SaI9, WFC2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nMi8(YKHO):\n for oeTy in YKHO.aliens.sprites():\n if oeTy.check_edges():\n YKHO._change_fleet_direction()\n break",
"def nMi8(YKHO):\n for oeTy in YKHO.aliens.sprites():\n if oeTy.check_edges():\n YKHO._change_fleet_direction()\n break",
"def... | [
"0.7754936",
"0.7754936",
"0.7754936",
"0.7754936",
"0.7734122",
"0.76076126",
"0.7558198",
"0.75208145",
"0.75143975",
"0.7504779",
"0.7488339",
"0.74749535",
"0.74749535",
"0.74749535",
"0.74749535",
"0.74749535",
"0.74749535",
"0.74749535",
"0.74749535",
"0.74749535",
"0.7... | 0.5963977 | 63 |
Check to see if any aliens have reached the bottom of the screen. | def Cshs(tJm0, eQSh, Vjhr, C7MP, SaI9, WFC2):
VXOZ = Vjhr.get_rect()
for oeTy in SaI9.sprites():
if oeTy.rect.bottom >= VXOZ.bottom:
GR2R(tJm0, eQSh, Vjhr, C7MP, SaI9, WFC2)
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMxK(YKHO):\n VXOZ = YKHO.__screen.get_rect()\n for oeTy in YKHO.__aliens.sprites():\n if oeTy.rect.bottom >= VXOZ.bottom:\n YKHO._ship_hit()\n break",
"def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >... | [
"0.8557006",
"0.85415614",
"0.8519374",
"0.849724",
"0.8356186",
"0.83373606",
"0.82237464",
"0.80122477",
"0.79840595",
"0.79663396",
"0.7963861",
"0.7958859",
"0.79513985",
"0.79380065",
"0.79369706",
"0.7927744",
"0.7925525",
"0.79174304",
"0.7910399",
"0.78796995",
"0.787... | 0.80238533 | 7 |
return table field as a list | def Zw6m(YKHO, tyNF):
xDcj = "select sql from sqlite_master where type='table' " + "and name='{}'".format(tyNF)
AIu6 = YKHO.cursor.execute(xDcj).fetchone()
if AIu6 is None:
return []
return YKHO.schema_fields(AIu6[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WnaD(YKHO):\n \"\"\"i.e: [\"code\", \"name\", \"population\", \"average_age\", \"distr_code\", \"dept_code\", \"region_code\", \"region_name\"]\"\"\"\n Ylbp = []\n if not 'elements' in YKHO.__table:\n return Ylbp\n for U6D_ in YKHO.__table['elements']:\n if 'name' in U6D_:\n ... | [
"0.7688456",
"0.7576971",
"0.7403892",
"0.7391673",
"0.73397726",
"0.73397726",
"0.725076",
"0.6938063",
"0.6913618",
"0.68810624",
"0.6833907",
"0.6833907",
"0.68005",
"0.6794932",
"0.6770276",
"0.6770276",
"0.67695165",
"0.675409",
"0.66534114",
"0.65827024",
"0.6578121",
... | 0.6673643 | 18 |
given a non empty tree, returns min value found | def vfCY(YKHO, Q6kx):
jvSB = Q6kx
while jvSB.has_left_child():
jvSB = jvSB.get_left_child()
return jvSB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcNI(J_Es):\n if J_Es is None:\n return (None, None)\n if J_Es.left is None:\n return (J_Es.key, J_Es.val)\n return XcNI(J_Es.left)",
"def XcNI(YKHO):\n if YKHO.root:\n return YKHO.root.find_min()",
"def XcNI(YKHO):\n Q6kx = YKHO\n while J_Es.left is not None:\n ... | [
"0.84171015",
"0.81101006",
"0.80805373",
"0.80708796",
"0.80674",
"0.80572504",
"0.80498147",
"0.80353445",
"0.80099404",
"0.7991957",
"0.7954612",
"0.7884729",
"0.7881256",
"0.78465116",
"0.78338915",
"0.7816179",
"0.777146",
"0.7757034",
"0.77496433",
"0.774438",
"0.771282... | 0.7261346 | 50 |
Register a new password and return a hash for storage. | def NpNj(YKHO):
try:
NtEF = p0jA.payload.get('username')
jTXt = p0jA.payload.get('password')
if not NtEF:
return ('Missing username', 400)
if not jTXt:
return ('Missing password', 400)
Nzyw = B8ni.hashpw(jTXt.encode('utf-8'), B8ni.gensalt())
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DH7l(Emd4, jTXt: str) -> str:\n return jf1V.hash(jTXt)",
"def DH7l(jTXt):\n return vT87(jTXt, method='sha256')",
"def qzFd(YKHO, jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n mNdd = HBct.pbkdf2_hmac('sha512', jTXt.encode('utf-8'), NTfD, 100000)\n mNdd = MRxC.hex... | [
"0.74831736",
"0.7184549",
"0.71041876",
"0.71041876",
"0.7075584",
"0.7064372",
"0.70267665",
"0.7019016",
"0.7012838",
"0.701066",
"0.7009199",
"0.69877416",
"0.69877416",
"0.69848394",
"0.6969447",
"0.6965668",
"0.6965609",
"0.6963612",
"0.6963343",
"0.68996",
"0.6892065",... | 0.0 | -1 |
performs back propagation over a pooling layer of a neural network. | def iTJL(LQ6K, etIE, RndV, _0fC=(1, 1), Tuqy='max'):
r8hN, HgQS, g86m, W6b2 = LQ6K.shape
r8hN, WtQF, amCV, Z9rn = etIE.shape
RZju, YSA3 = RndV
lWrn, yK2S = _0fC
wQ6z = oyIN.zeros(etIE.shape)
for epBp in range(r8hN):
for YRbF in range(HgQS):
for r845 in range(g86m):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n yvT9 = YKHO.pool1(YKHO.relu_1(YKHO.bn_1(YKHO.conv1(WKvO))))\n yvT9 = YKHO.pool2(YKHO.relu_2(YKHO.bn_2(YKHO.conv2(yvT9))))\n yvT9 = YKHO.relu_3_a(YKHO.bn_3_a(YKHO.conv3_a(yvT9)))\n yvT9 = YKHO.pool3(YKHO.relu_3_b(YKHO.bn_3_b(YKHO.conv3_b(yvT9))))\n yvT9 = YKHO.relu_4_a(YKHO.bn... | [
"0.67562777",
"0.6653652",
"0.65675503",
"0.6552416",
"0.65384513",
"0.65300006",
"0.6519057",
"0.65144855",
"0.6474122",
"0.6474122",
"0.6469582",
"0.64646816",
"0.6458056",
"0.64158136",
"0.64053875",
"0.6394281",
"0.6353174",
"0.63462037",
"0.6334721",
"0.6312283",
"0.6296... | 0.0 | -1 |
Attach a text label above each bar in rects, displaying its height. xpos indicates which side to place the text w.r.t. the center of the bar. It can be one of the following {'center', 'right', 'left'}. | def siQ4(j8aQ, QzhK='center'):
QzhK = QzhK.lower()
fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}
vgXP = {'center': 0.5, 'right': 0.57, 'left': 0.43}
for mawX in j8aQ:
H2v2 = mawX.get_height()
hh7H.text(mawX.get_x() + mawX.get_width() * vgXP[QzhK], 1.01 * H2v2, '{}'.format... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def siQ4(j8aQ, QzhK='center'):\n fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}\n vgXP = {'center': 0, 'right': 1, 'left': -1}\n for mawX in j8aQ:\n H2v2 = mawX.get_height()",
"def siQ4(j8aQ, QzhK='center'):\n fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}\n vg... | [
"0.7801705",
"0.7801705",
"0.7789722",
"0.7677471",
"0.7666248",
"0.76590234",
"0.76256704",
"0.76220465",
"0.76185536",
"0.7603763",
"0.7601638",
"0.7589455",
"0.7589455",
"0.7588619",
"0.7562175",
"0.7557521",
"0.75491774",
"0.75491774",
"0.75491774",
"0.74880683",
"0.74768... | 0.7602629 | 10 |
Gets the image_url of this ScanImage. URL to registry store location of image | def qwnb(YKHO):
return YKHO._image_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kskO(YKHO) -> str:\n return YKHO.image_url",
"def eiuY(YKHO):\n return YKHO.img_url",
"def qwnb(YKHO):\n return YKHO._user_dict['image_url']",
"def qwnb(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'image_url')",
"def qwnb(YKHO):\n try:\n bD7m = YKHO.image.url\n exc... | [
"0.77636886",
"0.75667363",
"0.74808675",
"0.7479492",
"0.7460937",
"0.7456036",
"0.7410985",
"0.7393415",
"0.7364657",
"0.7313415",
"0.7279557",
"0.72783333",
"0.72783333",
"0.72018665",
"0.71068275",
"0.7076068",
"0.706962",
"0.706962",
"0.70058846",
"0.69787353",
"0.690763... | 0.7731309 | 1 |
Gets the uri of this ScanImage. Relative URI to this image within the Scan API | def j8eK(YKHO):
return YKHO._uri | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RYGS(YKHO) -> str:\n return YKHO._values.get('image_uri')",
"def j8eK(YKHO):\n return YKHO.resource.uri",
"def LNo8(YKHO):\n return YKHO._build_image_url()",
"def zFcP(YKHO):\n return YKHO._uri",
"def eXby(YKHO):\n return YKHO._uri",
"def zFcP(YKHO):\n return YKHO.uri",
"def zFcP(... | [
"0.79573685",
"0.74507064",
"0.7392774",
"0.7380329",
"0.7365299",
"0.73372024",
"0.7319083",
"0.73020583",
"0.7257604",
"0.7233546",
"0.7226891",
"0.7226891",
"0.7226891",
"0.72122866",
"0.7211035",
"0.71996605",
"0.7183221",
"0.71741647",
"0.716476",
"0.716476",
"0.7158573"... | 0.72700506 | 9 |
Sets the uri of this ScanImage. Relative URI to this image within the Scan API | def j8eK(YKHO, j8eK):
YKHO._uri = j8eK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK",
"def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK",
"def j8eK(YKHO, j8eK: str):\n YKHO._uri = j8eK",
"def QskW(YKHO, QskW):\n YKHO._srcuri = QskW",
"def j8eK(YKHO, j8eK):\n if j8eK is None:\n raise ValueError('Invalid value for `uri`, must not be `No... | [
"0.71411896",
"0.71411896",
"0.7036096",
"0.6811925",
"0.65705407",
"0.6283314",
"0.6277441",
"0.6266133",
"0.62641174",
"0.6259459",
"0.6214326",
"0.60817766",
"0.6076702",
"0.6037522",
"0.6031617",
"0.60238874",
"0.59925246",
"0.5965747",
"0.5965747",
"0.5965747",
"0.595489... | 0.7139819 | 2 |
Gets the sid of this ScanImage. Unique ID of image in Scan | def Wswm(YKHO):
return YKHO._sid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wswm(YKHO) -> int:\n if YKHO._sid is None:\n raise xxyF('sid not set')\n return YKHO._sid",
"def Wswm(YKHO) -> str:\n return qe4Y.get(YKHO, 'sid')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m... | [
"0.67044586",
"0.65699404",
"0.65034544",
"0.65034544",
"0.65034544",
"0.65034544",
"0.65034544",
"0.65034544",
"0.6480161",
"0.64614725",
"0.64614725",
"0.64614725",
"0.6414713",
"0.64026445",
"0.6399951",
"0.63941735",
"0.6392906",
"0.63818777",
"0.63377035",
"0.63316566",
... | 0.66681564 | 1 |
Gets the user_id of this ScanImage. User id of owner of this object | def uJjO(YKHO):
return YKHO._user_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uJjO(YKHO):\n return YKHO.__user_id",
"def Ad9r(YKHO):\n return YKHO.__userId",
"def y3jg(YKHO):\n return YKHO._idUser",
"def uJjO(YKHO):\n return YKHO._user_id",
"def uJjO(YKHO):\n return YKHO._user_id",
"def Ad9r(YKHO):\n return YKHO.user_id",
"def uJjO(YKHO) -> int:\n return... | [
"0.7681492",
"0.75760615",
"0.7548268",
"0.7541915",
"0.7541915",
"0.75117815",
"0.74645287",
"0.74645287",
"0.74645287",
"0.74645287",
"0.7420747",
"0.72802",
"0.72802",
"0.72802",
"0.72802",
"0.72061414",
"0.71850485",
"0.71850485",
"0.71850485",
"0.7146007",
"0.7139383",
... | 0.7596436 | 2 |
Gets the status of this ScanImage. Current status of the scan of this image | def jGRS(YKHO):
return YKHO._status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T53g(YKHO):\n return YKHO.conn.scan_status(YKHO.scan_uuid)",
"async def scan_status(YKHO) -> dict:\n return await YKHO.bcs_request('ScanStatus', dict(locals()))",
"def VLTN(YKHO):\n oUZx = BlNT.pack('>H', Liq1)\n YKHO._write_command(oUZx)\n return YKHO._read_status()",
"def VLTN(YKHO):\n ... | [
"0.8123364",
"0.745596",
"0.7452047",
"0.73746306",
"0.73746306",
"0.73746306",
"0.7372138",
"0.73536605",
"0.73536605",
"0.7320667",
"0.73136246",
"0.7312761",
"0.7281768",
"0.7281768",
"0.7281768",
"0.727779",
"0.7237043",
"0.72213864",
"0.72213864",
"0.7213838",
"0.7213666... | 0.70969427 | 47 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Flattens a list, recursively including all items in contained arrays. | def c9m7(yv6U):
return sum((c9m7(WKvO) if isinstance(WKvO, list) else [WKvO] for WKvO in yv6U), []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GarA(vC9B):\n if not j7j0(vC9B):\n return vC9B\n return [r845 for YRbF in vC9B for r845 in YRbF]",
"def PWgb(qw7D: List[List[Any]]) -> x1iM[ImMB]:\n return xBlr.reduce(seET.iconcat, qw7D, [])",
"def PWgb(vC9B):\n\n def cWjI(vC9B, Mkmy):\n if type(vC9B) is not list:\n Mk... | [
"0.8020311",
"0.7989154",
"0.79762375",
"0.78468585",
"0.7819446",
"0.78149164",
"0.7807493",
"0.77741367",
"0.77405286",
"0.77405286",
"0.77405286",
"0.77250206",
"0.77250206",
"0.7724956",
"0.77153105",
"0.76856875",
"0.7657302",
"0.7638184",
"0.7626898",
"0.7625176",
"0.76... | 0.74051654 | 52 |
Converts the given value to a tuple recursively. This is helpful for using an iterable argument as dict keys especially that arguments from JSON will always be list instead of tuple. | def qKi0(BWXx):
def L2tF(Ty9i):
return isinstance(Ty9i, g760.abc.Iterable) and (not isinstance(Ty9i, str))
def xg7w(Ty9i):
return tuple((xg7w(tTpl) if L2tF(tTpl) else tTpl for tTpl in Ty9i))
if L2tF(BWXx):
return xg7w(BWXx)
return (BWXx,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v00S(BWXx, IfvE: bool=False) -> (tuple, None):\n if not isinstance(BWXx, tuple) and (BWXx is not None or IfvE):\n if isinstance(BWXx, dict):\n BWXx = [(G1Hx, Ty9i) for G1Hx, Ty9i in BWXx.items()]\n elif not isinstance(BWXx, iu5r) or isinstance(BWXx, str):\n BWXx = [BWXx]\... | [
"0.6993066",
"0.6812228",
"0.6812228",
"0.67211777",
"0.67030376",
"0.6537058",
"0.6537058",
"0.6445563",
"0.63933676",
"0.63743776",
"0.63743776",
"0.6355423",
"0.63488793",
"0.63281894",
"0.6326609",
"0.63117665",
"0.6288377",
"0.62841094",
"0.62643856",
"0.62159777",
"0.61... | 0.72053474 | 0 |
Read all the lines in a text file and return as a list | def zs73(Ux0P):
with open(Ux0P, 'r') as eHNT:
Nqlg = eHNT.read().splitlines()
return Nqlg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aA6_(Emd4, qaEx):\n try:\n with open(qaEx) as eHNT:\n Aofo = eHNT.readlines()\n except IOError:\n return []\n return Aofo",
"def Pqw9(qaEx):\n UxQk = []\n if Hy7s.path.exists(qaEx):\n with open(qaEx, 'r', encoding='utf-8') as ytgA:\n UxQk = ytgA.readl... | [
"0.8453536",
"0.8394833",
"0.8387233",
"0.83759034",
"0.8275193",
"0.8266146",
"0.8244375",
"0.82418966",
"0.82365453",
"0.82355607",
"0.81875545",
"0.81790227",
"0.8178137",
"0.81426513",
"0.8105451",
"0.8053801",
"0.8045564",
"0.80341655",
"0.8012497",
"0.8010597",
"0.79853... | 0.7798433 | 59 |
Expand successive nsized chunks from lst. | def eHxA(yv6U, exwG):
return [yv6U[YRbF - exwG:YRbF] for YRbF in range(exwG, len(yv6U) + exwG, exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]",
"def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]",
"def yOAJ(YKHO, yv6U, exwG):\n return [yv6U[YRbF:YRbF + exwG] for YRbF in Ni9Y(0, len(yv6U), exwG)]",
"def yOAJ(YKHO, yv6U, exwG):\n return [yv6... | [
"0.7408128",
"0.7306961",
"0.7281649",
"0.7259479",
"0.7161951",
"0.7040193",
"0.69794667",
"0.69466704",
"0.693116",
"0.69302875",
"0.69302875",
"0.68977827",
"0.6896437",
"0.68963027",
"0.6891921",
"0.68895197",
"0.68701494",
"0.6868955",
"0.68654925",
"0.6854196",
"0.68535... | 0.6757715 | 29 |
Get absolute path to resource, works for dev and for PyInstaller | def cKtU(YKHO, t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86645055",
"0.8190357",
"0.8175001",
"0.8163073",
"0.80863976",
"0.80863976",
"0.80863976",
"0.80863976",
"0.8086095",
"0.80784917",
"0.8077746",
"0.8073863",
"0.8065137",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.... | 0.0 | -1 |
Ensure a PDB is closed. | def AHRE(wBrJ):
if not m3Zq:
yR_P.fail_json(msg="PDB %s doesn't exist." % wBrJ, changed=llHi(), ddls=fR44.ddls)
if m3Zq['state'] != 'closed':
fR44.execute_ddl('alter pluggable database %s close immediate instances = all' % wBrJ)
yR_P.exit_json(msg='PDB %s is closed.' % wBrJ, changed=llHi(), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def msNV(YKHO) -> bool:\n ...",
"def msNV(YKHO) -> bool:\n ...",
"def xDTV(YKHO):\n if YKHO._try_close:\n YKHO.close()",
"def QEY0(wBrJ, SKnd):\n if not m3Zq:\n yR_P.fail_json(msg=\"PDB %s doesn't exist.\" % wBrJ, changed=llHi(), ddls=fR44.ddls)\n if m3Zq['state'] != 'opened' or ... | [
"0.6522895",
"0.6522895",
"0.6341202",
"0.62279266",
"0.6171709",
"0.61067384",
"0.60921115",
"0.6072622",
"0.6060477",
"0.6050175",
"0.6032207",
"0.60290086",
"0.6009005",
"0.59996235",
"0.59977263",
"0.5997031",
"0.5975865",
"0.5975865",
"0.5961723",
"0.59537286",
"0.595202... | 0.80314445 | 0 |
Returns a path to a netharn deployed model | def zJJn(YKHO):
from bioharn import clf_fit
Q9m7 = clf_fit.setup_harn(cmdline=False, dataset='special:shapes128', max_epoch=1, timeout=60)
Q9m7.initialize()
if not Q9m7.prev_snapshots():
Rjmg = Q9m7.run()
else:
Rjmg = Q9m7.prev_snapshots()[-1]
return Rjmg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uqvc(YKHO) -> GkAb:\n return YKHO.working_directory.joinpath('final.mdl')",
"def nmkS(mWFP: str) -> str:\n return '../models/%s__%s.hdf5' % (D79u, mWFP)",
"def BNkc():\n ejh1 = Iz_c('.', search_parent_directories=True).working_tree_dir\n uqvc = Hy7s.path.join(ejh1, 'gitrisky.model')\n return... | [
"0.69985247",
"0.6997932",
"0.6949892",
"0.6891333",
"0.68885905",
"0.67459625",
"0.67165005",
"0.66808075",
"0.6658293",
"0.6528169",
"0.65253955",
"0.64658004",
"0.6452131",
"0.6447412",
"0.6420095",
"0.6398302",
"0.63852686",
"0.6326831",
"0.629041",
"0.6277242",
"0.624034... | 0.61565965 | 26 |
Return the product class associated with this type of product | def qI3e(YKHO):
return Ldyl.get_finished_class() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lx3t(YKHO):\n return YKHO._object.productClass()",
"def qI3e(YKHO):\n if YKHO.is_child:\n return YKHO.parent.product_class\n else:\n return YKHO.product_class",
"def qI3e(YKHO):\n return Ldyl.get_unfinished_class()",
"def ZGm6(YKHO):\n if not YKHO.cached_product_class:\n ... | [
"0.8979846",
"0.86972094",
"0.8667212",
"0.86667335",
"0.8286683",
"0.80925393",
"0.80342185",
"0.74267864",
"0.734834",
"0.68954283",
"0.6796317",
"0.6791834",
"0.6774243",
"0.67194784",
"0.67194784",
"0.6693758",
"0.6664421",
"0.6654185",
"0.6591166",
"0.6586395",
"0.658639... | 0.83653957 | 4 |
When deleting child products, this view redirects to editing the parent product. When deleting any other product, it redirects to the product list view. | def m07J(YKHO):
if YKHO.object.is_child:
tO9_ = bGrB("Deleted product variant '%s'") % YKHO.object.get_title()
yEHD.success(YKHO.request, tO9_)
return gxEw('dashboard:catalogue-finished', kwargs={'pk': YKHO.object.parent_id})
else:
tO9_ = bGrB("Deleted product '%s'") % YKHO.objec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yt6W(QePW, s5ru, id):\n q9zX = Iofl(s9HI, slug=s5ru)\n ITwz = OsfM(QePW, q9zX)\n if QePW.method == 'POST':\n return Yd7Q('/company/' + str(s5ru))\n else:\n g2wi = Iofl(msfn, id=id, company=q9zX)\n g2wi.delete()\n return Yd7Q('/company/' + str(s5ru))",
"def wL2u(QePW, _... | [
"0.6525127",
"0.6450433",
"0.6331023",
"0.6268377",
"0.6214407",
"0.6140531",
"0.6023514",
"0.6018483",
"0.5997101",
"0.5980298",
"0.5963815",
"0.59511465",
"0.5921204",
"0.58969903",
"0.58867127",
"0.5864382",
"0.582754",
"0.582471",
"0.57924616",
"0.5771929",
"0.57663304",
... | 0.55790263 | 27 |
Return the product class associated with this type of product | def qI3e(YKHO):
return Ldyl.get_instructions_class() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lx3t(YKHO):\n return YKHO._object.productClass()",
"def qI3e(YKHO):\n if YKHO.is_child:\n return YKHO.parent.product_class\n else:\n return YKHO.product_class",
"def qI3e(YKHO):\n return Ldyl.get_unfinished_class()",
"def ZGm6(YKHO):\n if not YKHO.cached_product_class:\n ... | [
"0.8979846",
"0.86972094",
"0.8667212",
"0.86667335",
"0.83653957",
"0.8286683",
"0.80342185",
"0.74267864",
"0.734834",
"0.68954283",
"0.6796317",
"0.6791834",
"0.6774243",
"0.67194784",
"0.67194784",
"0.6693758",
"0.6664421",
"0.6654185",
"0.6591166",
"0.6586395",
"0.658639... | 0.80925393 | 6 |
When deleting child products, this view redirects to editing the parent product. When deleting any other product, it redirects to the product list view. | def m07J(YKHO):
if YKHO.object.is_child:
tO9_ = bGrB("Deleted product variant '%s'") % YKHO.object.get_title()
yEHD.success(YKHO.request, tO9_)
return gxEw('dashboard:catalogue-instructions', kwargs={'pk': YKHO.object.parent_id})
else:
tO9_ = bGrB("Deleted product '%s'") % YKHO.o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yt6W(QePW, s5ru, id):\n q9zX = Iofl(s9HI, slug=s5ru)\n ITwz = OsfM(QePW, q9zX)\n if QePW.method == 'POST':\n return Yd7Q('/company/' + str(s5ru))\n else:\n g2wi = Iofl(msfn, id=id, company=q9zX)\n g2wi.delete()\n return Yd7Q('/company/' + str(s5ru))",
"def wL2u(QePW, _... | [
"0.65247333",
"0.64496076",
"0.6329385",
"0.62671286",
"0.62127817",
"0.6138939",
"0.6025979",
"0.60166776",
"0.5995162",
"0.59783757",
"0.59617156",
"0.59499806",
"0.5920244",
"0.58963245",
"0.5884973",
"0.5826046",
"0.582309",
"0.57903606",
"0.5774417",
"0.5765183",
"0.5756... | 0.5866943 | 15 |
Return the product class associated with this type of product | def qI3e(YKHO):
return Ldyl.get_unfinished_class() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lx3t(YKHO):\n return YKHO._object.productClass()",
"def qI3e(YKHO):\n if YKHO.is_child:\n return YKHO.parent.product_class\n else:\n return YKHO.product_class",
"def ZGm6(YKHO):\n if not YKHO.cached_product_class:\n try:\n YKHO.cached_product_class = YKHO.get_pro... | [
"0.8979846",
"0.86972094",
"0.86667335",
"0.83653957",
"0.8286683",
"0.80925393",
"0.80342185",
"0.74267864",
"0.734834",
"0.68954283",
"0.6796317",
"0.6791834",
"0.6774243",
"0.67194784",
"0.67194784",
"0.6693758",
"0.6664421",
"0.6654185",
"0.6591166",
"0.6586395",
"0.65863... | 0.8667212 | 2 |
When deleting child products, this view redirects to editing the parent product. When deleting any other product, it redirects to the product list view. | def m07J(YKHO):
if YKHO.object.is_child:
tO9_ = bGrB("Deleted product variant '%s'") % YKHO.object.get_title()
yEHD.success(YKHO.request, tO9_)
return gxEw('dashboard:catalogue-unfinished', kwargs={'pk': YKHO.object.parent_id})
else:
tO9_ = bGrB("Deleted product '%s'") % YKHO.obj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yt6W(QePW, s5ru, id):\n q9zX = Iofl(s9HI, slug=s5ru)\n ITwz = OsfM(QePW, q9zX)\n if QePW.method == 'POST':\n return Yd7Q('/company/' + str(s5ru))\n else:\n g2wi = Iofl(msfn, id=id, company=q9zX)\n g2wi.delete()\n return Yd7Q('/company/' + str(s5ru))",
"def wL2u(QePW, _... | [
"0.6526571",
"0.6451762",
"0.63310474",
"0.6269349",
"0.6214775",
"0.6140777",
"0.60255045",
"0.6018605",
"0.5997096",
"0.59803194",
"0.59634525",
"0.5951862",
"0.59218603",
"0.589737",
"0.58867633",
"0.58669966",
"0.5827649",
"0.58248943",
"0.57923937",
"0.5766315",
"0.57575... | 0.57742953 | 19 |
Return an element with highest fn(seq[i]) score. Break ties randomly. | def Pn7A(Q6uT, H5ew=wJvD):
return q1NN(Nobg(Q6uT), key=H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBC8(Q6uT, FYKK):\n Qai7 = FYKK(Q6uT[0])\n exwG = 0\n for WKvO in Q6uT:\n VTuD = FYKK(WKvO)\n if VTuD < Qai7:\n P6Dd, Qai7 = (WKvO, VTuD)\n exwG = 1\n elif VTuD == Qai7:\n exwG += 1\n if tuKI.randrange(exwG) == 0:\n P6Dd =... | [
"0.71510994",
"0.71510994",
"0.66897386",
"0.6605651",
"0.6605651",
"0.6605651",
"0.6605651",
"0.640651",
"0.639987",
"0.639987",
"0.632085",
"0.6318739",
"0.63165927",
"0.61535126",
"0.61404276",
"0.6118902",
"0.6117981",
"0.61178046",
"0.6097154",
"0.6075339",
"0.60605556",... | 0.62837905 | 13 |
Video streaming home page. | def d6pt():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ecsS():\n return TvZl('/video-page.html')",
"def wOb_():\n return TvZl('video-feed.html')",
"def hkZA():\n return TvZl('video-page.html', title='video page', year=qcWV.now().year)",
"def kZiy(geh0):\n SFIC = YM9Z.objects.all()\n QpfX = {'videos': SFIC}\n return _1tc(geh0, 'InktoberSite/... | [
"0.76268315",
"0.76119703",
"0.7530637",
"0.73411614",
"0.7005877",
"0.66250384",
"0.6583905",
"0.6468895",
"0.6439333",
"0.64381635",
"0.6421515",
"0.6415742",
"0.6393503",
"0.6384064",
"0.637601",
"0.63417023",
"0.6321272",
"0.6291959",
"0.62908256",
"0.62908256",
"0.629082... | 0.0 | -1 |
Video streaming generator function. | def eK5b(yDvq):
while True:
f4IJ = yDvq.get_frame()
yield (b'--frame\r\nContent-Type: image/jpeg\r\n\r\n' + f4IJ + b'\r\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/... | [
"0.72318304",
"0.72217125",
"0.7202193",
"0.7199314",
"0.71750987",
"0.70998365",
"0.70878965",
"0.7068008",
"0.7030866",
"0.69874614",
"0.69693893",
"0.69512975",
"0.69257456",
"0.6923195",
"0.6923195",
"0.690304",
"0.6903035",
"0.6878873",
"0.68674815",
"0.6864852",
"0.6840... | 0.0 | -1 |
Returns other player in group. Only valid for 2player groups. | def wNmq(YKHO):
return YKHO.get_others_in_group() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wNmq(YKHO):\n return YKHO.get_others_in_group()[0]",
"def wNmq(YKHO):\n return YKHO.get_others_in_group()[0]",
"def m9f3(YKHO, oyg0):\n if oyg0 == YKHO.get_player_a():\n return YKHO.get_player_b()\n if oyg0 == YKHO.get_player_b():\n return YKHO.get_player_a()",
"def wNmq(YKHO, o... | [
"0.8607037",
"0.8607037",
"0.79365456",
"0.78491",
"0.777316",
"0.7725466",
"0.7699101",
"0.73521656",
"0.72698534",
"0.71671194",
"0.67357934",
"0.6705801",
"0.6680228",
"0.6641951",
"0.65710515",
"0.652503",
"0.65179837",
"0.6517617",
"0.643782",
"0.6366495",
"0.6361422",
... | 0.85669434 | 2 |
Values passed to the ``__new__()`` method upon unpickling. | def Uv8s(YKHO) -> AzJI[float, float, float, float, float, float]:
return (YKHO.minx, YKHO.maxx, YKHO.miny, YKHO.maxy, YKHO.mint, YKHO.maxt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kxbk(YKHO):\n pass",
"def GcgO(Emd4, *qIxc, **B2fa):\n pass",
"def FIMM(YKHO):\n YKHO._values = {}\n YKHO._initialize()",
"def FIMM(YKHO):\n YKHO._values = {}\n YKHO._initialize()",
"def FIMM(YKHO, JF3C):\n YKHO.value = YKHO.load(JF3C)",
"def fwuD(YKHO, o4sw):\n pass",
"def ... | [
"0.6332214",
"0.6331046",
"0.6234069",
"0.6234069",
"0.62308896",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
"0.61759657",
... | 0.0 | -1 |
Return (but do not remove) the element at the front of the queue. Raise Empty exception if the queue is empty. | def cntZ(YKHO):
if YKHO.is_empty():
raise rWmY('Queue is empty')
return YKHO._head._element | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XL7A(YKHO):\n if YKHO.is_empty():\n raise nKJm\n return YKHO.queue[YKHO.front]",
"def qnv3(YKHO) -> Kt_s:\n if YKHO.size == 0:\n return None\n return YKHO.queue[YKHO.front]",
"def VnzS(gGq6):\n if FBfn(gGq6):\n raise IndexError('front on empty queue')\n return gGq6.fr... | [
"0.87138754",
"0.8610016",
"0.84052736",
"0.8218951",
"0.82179713",
"0.82140034",
"0.82093203",
"0.8174013",
"0.8112041",
"0.8057249",
"0.8016287",
"0.8010187",
"0.8010187",
"0.8010187",
"0.80077296",
"0.80000424",
"0.7935805",
"0.79167795",
"0.79152375",
"0.7915071",
"0.7891... | 0.80501336 | 10 |
Remove and return the first element of the queue (i.e., FIFO). Raise Empty exception if the queue is empty. | def he0F(YKHO):
if YKHO.is_empty():
raise rWmY('Queue is empty')
ANfV = YKHO._head._element
YKHO._head = YKHO._head._next
YKHO._size -= 1
if YKHO.is_empty():
YKHO._tail = None
return ANfV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def he0F(YKHO):\n try:\n cntZ = YKHO._deque.popleft()\n except IndexError:\n raise rWmY('The queue is empty!')\n return cntZ",
"def BEuN(YKHO):\n if len(YKHO._queue) <= 0:\n raise ValueError('Queue is empty. Cannot call remove')\n U6D_ = YKHO._queue[0]\n del YKHO._queue[0]\... | [
"0.8374347",
"0.81721354",
"0.81682783",
"0.81659263",
"0.80446064",
"0.7989895",
"0.7980581",
"0.7956509",
"0.79528713",
"0.79417104",
"0.7933649",
"0.79286134",
"0.7925207",
"0.79228514",
"0.7878387",
"0.7872825",
"0.7871385",
"0.78578025",
"0.78281105",
"0.7827105",
"0.780... | 0.75979716 | 48 |
Return True if other is a Position representing the same location. | def xa14(YKHO, Elif):
return type(Elif) is type(YKHO) and Elif._node is YKHO._node | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, DhiK):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, QAnX):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return YKHO.pos == Elif",
"def... | [
"0.8383011",
"0.7925405",
"0.7877175",
"0.7834979",
"0.77281296",
"0.7727514",
"0.7679272",
"0.7679272",
"0.7670096",
"0.75991285",
"0.7550534",
"0.75356597",
"0.74909866",
"0.7488402",
"0.74737114",
"0.7462443",
"0.7444738",
"0.7404199",
"0.7399906",
"0.7393376",
"0.7361943"... | 0.0 | -1 |
Generate an inorder iteration of positions in subtree rooted at p. | def yPix(YKHO, XP5J):
if YKHO.left(XP5J) is not None:
for Elif in YKHO._subtree_inorder(YKHO.left(XP5J)):
yield Elif
yield XP5J
if YKHO.right(XP5J) is not None:
for Elif in YKHO._subtree_inorder(YKHO.right(XP5J)):
yield Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPix(YKHO, XP5J):\n if YKHO.left(XP5J) is not None:\n for Elif in YKHO._subtree_inorder(YKHO.left(XP5J)):\n yield Elif\n yield XP5J\n if YKHO.right(XP5J) is not None:\n for Elif in YKHO._subtree_inorder(YKHO.right(XP5J)):\n yield Elif",
"def kW_W(YKHO):\n if no... | [
"0.719791",
"0.6671733",
"0.65208316",
"0.65208316",
"0.65208316",
"0.651358",
"0.6422135",
"0.64173377",
"0.63921225",
"0.6347481",
"0.6281241",
"0.62516385",
"0.6178406",
"0.6143327",
"0.60455567",
"0.6032514",
"0.59887236",
"0.5973284",
"0.59227574",
"0.5903133",
"0.587028... | 0.71537656 | 1 |
Return True if Position p represents the root of the tree. | def kFcs(YKHO, XP5J):
return YKHO.root() == XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kFcs(YKHO, XP5J):\n return XP5J == YKHO.root()",
"def kFcs(YKHO, XP5J):\n return YKHO.root() == XP5J",
"def kFcs(YKHO, XP5J):\n return YKHO.root() == XP5J",
"def kFcs(YKHO):\n return YKHO.root is True",
"def kFcs(YKHO):\n if YKHO.parent == None:\n return True\n else:\n r... | [
"0.8676764",
"0.8418381",
"0.8219145",
"0.7641827",
"0.7531406",
"0.7486992",
"0.74754584",
"0.7408656",
"0.73930246",
"0.73520607",
"0.73506194",
"0.7326972",
"0.73199695",
"0.7301783",
"0.72866774",
"0.72848475",
"0.72848475",
"0.7274923",
"0.7274923",
"0.7221587",
"0.72096... | 0.85085833 | 2 |
Return True if Position p does not have any children. | def loae(YKHO, XP5J):
return YKHO.num_children(XP5J) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHyf(YKHO):\n return not YKHO.children == []",
"def agtm(YKHO):\n if len(YKHO.children) == 0:\n return False\n else:\n return True",
"def agtm(YKHO):\n return YKHO.left is not None and YKHO.right is not None",
"def agtm(YKHO):\n return True if YKHO.childrenCount() > 0 else Fa... | [
"0.77416444",
"0.7638804",
"0.7421259",
"0.7419219",
"0.7372322",
"0.73553956",
"0.7333076",
"0.72553885",
"0.72425365",
"0.723935",
"0.7225327",
"0.72213364",
"0.71668893",
"0.7165411",
"0.7000142",
"0.6918772",
"0.6916609",
"0.68666047",
"0.6846967",
"0.68349177",
"0.681855... | 0.6950888 | 15 |
Return True if the tree is empty. | def FBfn(YKHO):
return len(YKHO) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n \"\"\"Takes no arguments.\n Returns True if the tree is empty and False otherwise.\"\"\"\n return YKHO.root == None",
"def j2V2(YKHO):\n return YKHO.treestore.get_iter_first() == None",
"def FBfn(YKHO: AbstractTree) -> bool:\n return YKHO._root is None",
"def FBfn(YKHO) -... | [
"0.9286894",
"0.9277089",
"0.9134379",
"0.887866",
"0.887866",
"0.887866",
"0.8864693",
"0.8794943",
"0.8794943",
"0.87843776",
"0.87843776",
"0.87843776",
"0.87356377",
"0.86765444",
"0.86523503",
"0.856994",
"0.85477275",
"0.85477275",
"0.85477275",
"0.84706074",
"0.8422645... | 0.0 | -1 |
Return the height of the subtree rooted at Position p. | def wvKd(YKHO, XP5J):
if YKHO.is_leaf(XP5J):
return 0
else:
return 1 + max((YKHO._height2(Z9rn) for Z9rn in YKHO.children(XP5J))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return YKHO.height2(XP5J)",
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return YKHO.__height(XP5J)",
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return... | [
"0.8739835",
"0.8690773",
"0.86448354",
"0.85311764",
"0.8458744",
"0.8214348",
"0.78438014",
"0.7779431",
"0.7706121",
"0.7689475",
"0.7382537",
"0.7296871",
"0.7246663",
"0.71853167",
"0.71789",
"0.71605",
"0.71495616",
"0.7139143",
"0.71012866",
"0.7088197",
"0.7057374",
... | 0.7837884 | 7 |
Return the height of the subtree rooted at Position p. If p is None, return the height of the entire tree. | def H2v2(YKHO, XP5J=None):
if XP5J is None:
XP5J = YKHO.root()
return YKHO._height2(XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return YKHO.height2(XP5J)",
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return YKHO.__height(XP5J)",
"def H2v2(YKHO, XP5J=None):\n if XP5J is None:\n XP5J = YKHO.root()\n return... | [
"0.8458833",
"0.8419004",
"0.84032285",
"0.83936757",
"0.837146",
"0.7724161",
"0.7541621",
"0.73667234",
"0.7324159",
"0.7307548",
"0.7235445",
"0.718661",
"0.7186183",
"0.7179628",
"0.71668184",
"0.71415925",
"0.71293485",
"0.7116895",
"0.7114943",
"0.7030916",
"0.700781",
... | 0.76877505 | 6 |
Create an initially empty binary tree. | def FIMM(YKHO):
YKHO._root = None
YKHO._size = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WNcL():\n return UmtR()",
"def FIMM(YKHO):\n \"\"\"Takes no arguments.\n Returns an empty tree.\"\"\"\n YKHO.root = None\n YKHO.size = 0",
"def s_fx():\n from bst import Tree\n kmbS = Tree()\n assert kmbS.size() == 0",
"def T6wz(W9gz):\n tk5Y = o7DN(W9gz)\n tk5Y.priority... | [
"0.7915718",
"0.79123753",
"0.748637",
"0.7341482",
"0.7295714",
"0.7167949",
"0.7119707",
"0.7080806",
"0.7056208",
"0.7035687",
"0.70170873",
"0.6981034",
"0.6919694",
"0.68739307",
"0.686299",
"0.6855958",
"0.68525445",
"0.684738",
"0.68406993",
"0.6836762",
"0.683247",
... | 0.0 | -1 |
Return the root Position of the tree (or None if tree is empty). | def tk5Y(YKHO):
return YKHO._make_position(YKHO._root) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LIOs(YKHO):\n return YKHO.tree[0]",
"def LIOs(YKHO) -> int:\n return 0",
"def tk5Y(YKHO):\n return YKHO._make_position(YKHO._root)",
"def min(YKHO):\n if YKHO.root is None:\n return None\n return YKHO.root.min()",
"def tk5Y(YKHO):\n return YKHO._make_position(YKHO._root)",
"d... | [
"0.7364206",
"0.7088527",
"0.7043343",
"0.6994325",
"0.695582",
"0.6940184",
"0.68751264",
"0.6848011",
"0.6832828",
"0.680887",
"0.6808533",
"0.67958283",
"0.67892545",
"0.6784348",
"0.67647433",
"0.67600495",
"0.67508227",
"0.67508227",
"0.67203903",
"0.6720166",
"0.6709189... | 0.6860512 | 7 |
Return the Position of p's parent (or None if p is root). | def _AKB(YKHO, XP5J):
Q6kx = YKHO._validate(XP5J)
return YKHO._make_position(Q6kx._parent) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)",
"def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)",
"def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)",
... | [
"0.866465",
"0.8517841",
"0.84564793",
"0.7729797",
"0.7648871",
"0.76206917",
"0.7583971",
"0.7574975",
"0.753331",
"0.7416309",
"0.74007237",
"0.73739004",
"0.7225317",
"0.7162622",
"0.7152794",
"0.713687",
"0.7112776",
"0.70533687",
"0.70533687",
"0.70533687",
"0.70470214"... | 0.8585626 | 1 |
return list of stikers grouped by category | def KPUt():
Okd7 = []
LeZt = qZuN.objects(status=1).order_by('displayOrder')
for Ghho in LeZt:
iYc4 = Xz2w.objects()
iYc4 = iYc4.filter(category=Ghho)
if QePW.args.get('q'):
iYc4 = iYc4.filter(tags__icontains=QePW.args.get('q'))
BqhF = []
for JUOb in iYc4:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jLBZ(jZ4I):\n return qUWU(GPaG, jZ4I.walk_down())",
"def Xy8V(YKHO, nPrm):\n dixj = g760.defaultdict(list)\n for mAB6 in nPrm:\n dixj[mAB6['Category']].append(mAB6['LOC'])\n return dixj",
"def otJ0(uOe2):\n TIC9 = []\n for ZfUD in foFf.objects.filter(group=uOe2):\n TIC9.appe... | [
"0.58791184",
"0.58310235",
"0.576288",
"0.57259786",
"0.56519234",
"0.5651511",
"0.55305016",
"0.5497758",
"0.5437577",
"0.54340446",
"0.5410996",
"0.5392164",
"0.5385419",
"0.53527564",
"0.5349534",
"0.5334982",
"0.5326144",
"0.53083074",
"0.53061914",
"0.5304266",
"0.52995... | 0.5378193 | 13 |
Plot the data in a feature space. Plots the data in a feature space. Correctly classified data is plotted as circles, while incorrectly classified data is plotted as x's. | def d8hr(EcVT, LVAh, aMgO=None, aNZO=None):
Jw9H = oyIN.array(['b', 'g', 'r', 'c', 'm', 'y', 'k'])
qfpW = oyIN.array([Jw9H[UXqs] for UXqs in LVAh])
if aMgO == None:
aMgO = LVAh
gXXc = LVAh == aMgO
ERnV = LVAh != aMgO
if aNZO is None:
aNZO = QrM1
aNZO.scatter(EcVT[gXXc, 0], Ec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jZ3U(nPrm, Crrw=None):\n nPrm = a5AI(nPrm, 3)\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111, projection='3d')\n if Crrw != None:\n KndY = oyIN.sort(oyIN.unique(Crrw))\n Jw9H = []\n for YRbF in KndY:\n gsW2 = ''.join([tuKI.choice(['0', '1', '2', '3', '4', '5', ... | [
"0.72426313",
"0.7103469",
"0.6968149",
"0.6942947",
"0.6927157",
"0.6858449",
"0.68038875",
"0.67617923",
"0.6754556",
"0.67392284",
"0.6733631",
"0.67163604",
"0.66946435",
"0.6686041",
"0.668475",
"0.66688484",
"0.66462517",
"0.66271883",
"0.65784615",
"0.6561788",
"0.6559... | 0.6115911 | 94 |
Convert list of ipython notebooks to final html files with front matter, navigation, body, etc. | def Wlsk(OSgP=Fv2L.INPUT_NB_DIR, ee9X=Fv2L.OUTPUT_NB_DIR):
OD3P = SC2F.glob(OSgP + '*.ipynb')
OD3P.sort()
print(OD3P)
if len(OD3P) < 1:
print('Found no notebooks to convert in {}'.format(OSgP))
for YRbF in range(len(OD3P)):
NmSt = n3Ja.read(OD3P[YRbF], as_version=4)
if YRbF =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TkY7(vvIv):\n vvIv = list()\n for tk5Y, AQSv, RRlC in Hy7s.walk('.'):\n for nUeQ in RRlC:\n if nUeQ.endswith('.ipynb') and 'checkpoint' not in nUeQ:\n mWFP = nUeQ.replace('.ipynb', '')\n vvIv.append(Hy7s.path.join(tk5Y, mWFP))\n for nUeQ in vvIv:\n ... | [
"0.77159405",
"0.7026944",
"0.6746998",
"0.6511838",
"0.6448942",
"0.6431985",
"0.63615483",
"0.6289291",
"0.619323",
"0.6144037",
"0.61014265",
"0.60787505",
"0.5996386",
"0.5985107",
"0.5973131",
"0.5968009",
"0.5898549",
"0.5885191",
"0.58726025",
"0.5859482",
"0.5848016",... | 0.7486182 | 1 |
The _pad_key() returns the input string with whitespace padding. | def pook(YKHO):
import da.monitor.console_reporter
assert SG6Y.monitor.console_reporter._pad_key('A') == 'A '
assert SG6Y.monitor.console_reporter._pad_key('AB') == 'AB '
assert SG6Y.monitor.console_reporter._pad_key('ABCDEFGHIJKLMNO') == 'ABCDEFGHIJKLMNO' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wTQ_(KCHu):\n if len(KCHu) == 1:\n return KCHu + ' '\n return hVLt(KCHu, 26)",
"def w0C0(H5ew: str):\n u54L = len(H5ew)\n MTA0 = 32\n if u54L > 32:\n return '00000000000000000000000000000000'\n if u54L < MTA0:\n H5ew += '0' * (MTA0 - u54L)\n return H5ew",
"def hVL... | [
"0.7306895",
"0.7104463",
"0.69582576",
"0.68466604",
"0.6734038",
"0.6700772",
"0.6675967",
"0.6658234",
"0.6585862",
"0.6539637",
"0.65021497",
"0.64559245",
"0.64486676",
"0.6434368",
"0.6429508",
"0.6418092",
"0.64104146",
"0.6407134",
"0.6403192",
"0.6400785",
"0.6383751... | 0.72025245 | 1 |
Make an edge firstNode the first node. secondNode the second node. cost the weight/cost of edge. | def ECo5(ahUI, vlUM, sSN_=1):
return ndC_(ahUI, vlUM, sSN_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, ahUI, vlUM, sSN_=1, xqoF=True):\n PtiI = YKHO.get_node_pairs(ahUI, vlUM, xqoF)\n for D70y in YKHO.edges:\n if [D70y.firstNode, D70y.secondNode] in PtiI:\n return ValueError('Edge {} {} already exists'.format(ahUI, vlUM))\n YKHO.edges.append(ndC_(firstNode=ahUI, secondNode=... | [
"0.73960876",
"0.719471",
"0.6847185",
"0.68337053",
"0.67696685",
"0.66783625",
"0.65989214",
"0.6577963",
"0.65768313",
"0.6547615",
"0.64904785",
"0.64658976",
"0.6412181",
"0.6371729",
"0.6318272",
"0.63167226",
"0.6289507",
"0.6287683",
"0.6279032",
"0.6259641",
"0.62559... | 0.85504305 | 0 |
Add a new edge to edges firstNode the first node. secondNode the second node. cost the weight/cost of edge. both_end True if there a path between both nodes. | def tWOk(YKHO, ahUI, vlUM, xqoF=True):
if xqoF:
PtiI = [[ahUI, vlUM], [vlUM, ahUI]]
else:
PtiI = [[ahUI, vlUM]]
return PtiI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, ahUI, vlUM, sSN_=1, xqoF=True):\n PtiI = YKHO.get_node_pairs(ahUI, vlUM, xqoF)\n for D70y in YKHO.edges:\n if [D70y.firstNode, D70y.secondNode] in PtiI:\n return ValueError('Edge {} {} already exists'.format(ahUI, vlUM))\n YKHO.edges.append(ndC_(firstNode=ahUI, secondNode=... | [
"0.86376566",
"0.76693285",
"0.7265562",
"0.70142716",
"0.6983131",
"0.6883317",
"0.67639804",
"0.6762041",
"0.67464346",
"0.6609153",
"0.6605143",
"0.6603234",
"0.65818805",
"0.65722156",
"0.6538701",
"0.653027",
"0.6526188",
"0.6501278",
"0.6469206",
"0.6468035",
"0.6467022... | 0.0 | -1 |
Add a new edge to edges firstNode the first node. secondNode the second node. cost the weight/cost of edge. both_end True if edge is not directed. | def rz7z(YKHO, ahUI, vlUM, sSN_=1, xqoF=True):
PtiI = YKHO.get_node_pairs(ahUI, vlUM, xqoF)
for D70y in YKHO.edges:
if [D70y.firstNode, D70y.secondNode] in PtiI:
return ValueError('Edge {} {} already exists'.format(ahUI, vlUM))
YKHO.edges.append(ndC_(firstNode=ahUI, secondNode=vlUM, cost... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ECo5(ahUI, vlUM, sSN_=1):\n return ndC_(ahUI, vlUM, sSN_)",
"def rz7z(YKHO, V3IK, vyDA, upAO):\n if V3IK not in YKHO.graph:\n YKHO.add_node(V3IK)\n if vyDA not in YKHO.graph:\n YKHO.add_node(vyDA)\n YKHO.graph[V3IK][vyDA] = upAO\n YKHO.graph[vyDA][V3IK] = upAO",
"def rz7z(YKHO,... | [
"0.7796437",
"0.7475225",
"0.73073995",
"0.7125809",
"0.7002441",
"0.69605786",
"0.6870647",
"0.68310153",
"0.6788441",
"0.67876774",
"0.6764689",
"0.67572445",
"0.67402023",
"0.6701286",
"0.66885215",
"0.66173553",
"0.6609486",
"0.6598536",
"0.6595345",
"0.6595345",
"0.65606... | 0.864102 | 0 |
Finds the class folders in a dataset. | def hNcY(YKHO, dir):
KndY = [Csk6.name for Csk6 in Hy7s.scandir(dir) if Csk6.is_dir()]
KndY.sort()
YDF5 = {HGq1: YRbF for YRbF, HGq1 in enumerate(KndY)}
return (KndY, YDF5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hNcY(YKHO, dir):\n if HwRy.version_info >= (3, 5):\n KndY = [Csk6.name for Csk6 in Hy7s.scandir(dir) if Csk6.is_dir()]\n else:\n KndY = [Csk6 for Csk6 in Hy7s.listdir(dir) if Hy7s.path.isdir(Hy7s.path.join(dir, Csk6))]\n KndY.sort()\n YDF5 = {KndY[YRbF]: YRbF for YRbF in range(len(Knd... | [
"0.6413533",
"0.6251554",
"0.6225814",
"0.61992615",
"0.6175179",
"0.6171842",
"0.61537504",
"0.61424536",
"0.61023575",
"0.60958236",
"0.608776",
"0.6068883",
"0.60571134",
"0.60522455",
"0.6045354",
"0.6029557",
"0.59643686",
"0.59565234",
"0.5946414",
"0.59406465",
"0.5936... | 0.5953793 | 18 |
Constructs a ResNet model. | def FIMM(YKHO, JGr9: Sequence[int], jTqs: int, q4af: Optional[Mapping[str, float]]=None, MIwg: bool=False, RzcG: bool=True, K7tJ: Sequence[int]=(256, 512, 1024, 2048), HhsH: Sequence[bool]=(True, True, True, True), mWFP: Optional[str]=None):
super().__init__(name=mWFP)
YKHO.resnet_v2 = MIwg
q4af = dict(q4af... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.7649233",
"0.7376856",
"0.7354889",
"0.72768724",
"0.7195494",
"0.7195494",
"0.71535224",
"0.7097737",
"0.701445",
"0.701445",
"0.701445",
"0.701445",
"0.697802",
"0.69658226",
"0.6954004",
"0.69470996",
"0.69470996",
"0.69470996",
"0.6905179",
"0.6903568",
"0.6891352",
... | 0.0 | -1 |
Constructs a ResNet model. | def FIMM(YKHO, jTqs: int, q4af: Optional[Mapping[str, float]]=None, MIwg: bool=False, mWFP: Optional[str]=None):
super().__init__(blocks_per_group=(2, 2, 2, 2), num_classes=jTqs, bn_config=q4af, resnet_v2=MIwg, bottleneck=False, channels_per_group=(64, 128, 256, 512), use_projection=(False, True, True, True), name=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.7649233",
"0.7376856",
"0.7354889",
"0.72768724",
"0.7195494",
"0.7195494",
"0.71535224",
"0.7097737",
"0.701445",
"0.701445",
"0.701445",
"0.701445",
"0.697802",
"0.69658226",
"0.6954004",
"0.69470996",
"0.69470996",
"0.69470996",
"0.6905179",
"0.6903568",
"0.6891352",
... | 0.0 | -1 |
Constructs a ResNet model. | def FIMM(YKHO, jTqs: int, q4af: Optional[Mapping[str, float]]=None, MIwg: bool=False, mWFP: Optional[str]=None):
super().__init__(blocks_per_group=(3, 4, 6, 3), num_classes=jTqs, bn_config=q4af, resnet_v2=MIwg, bottleneck=False, channels_per_group=(64, 128, 256, 512), use_projection=(False, True, True, True), name=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.7650405",
"0.7377176",
"0.7354001",
"0.7276776",
"0.719624",
"0.719624",
"0.7154599",
"0.7098276",
"0.70145404",
"0.70145404",
"0.70145404",
"0.70145404",
"0.6976843",
"0.6966467",
"0.69532424",
"0.69470525",
"0.69470525",
"0.69470525",
"0.6904808",
"0.6901749",
"0.689467"... | 0.0 | -1 |
Constructs a ResNet model. | def FIMM(YKHO, jTqs: int, q4af: Optional[Mapping[str, float]]=None, MIwg: bool=False, mWFP: Optional[str]=None):
super().__init__(blocks_per_group=(3, 4, 6, 3), num_classes=jTqs, bn_config=q4af, resnet_v2=MIwg, bottleneck=True, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.76488894",
"0.73769265",
"0.7355708",
"0.72770196",
"0.71952987",
"0.71952987",
"0.7153214",
"0.7097957",
"0.70146143",
"0.70146143",
"0.70146143",
"0.70146143",
"0.69774866",
"0.69659865",
"0.69536877",
"0.6947135",
"0.6947135",
"0.6947135",
"0.690526",
"0.6904018",
"0.68... | 0.0 | -1 |
Constructs a ResNet model. | def FIMM(YKHO, jTqs: int, q4af: Optional[Mapping[str, float]]=None, MIwg: bool=False, mWFP: Optional[str]=None):
super().__init__(blocks_per_group=(3, 4, 23, 3), num_classes=jTqs, bn_config=q4af, resnet_v2=MIwg, bottleneck=True, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.7649233",
"0.7376856",
"0.7354889",
"0.72768724",
"0.7195494",
"0.7195494",
"0.71535224",
"0.7097737",
"0.701445",
"0.701445",
"0.701445",
"0.701445",
"0.697802",
"0.69658226",
"0.6954004",
"0.69470996",
"0.69470996",
"0.69470996",
"0.6905179",
"0.6903568",
"0.6891352",
... | 0.0 | -1 |
Constructs a ResNet model. | def FIMM(YKHO, jTqs: int, q4af: Optional[Mapping[str, float]]=None, MIwg: bool=False, mWFP: Optional[str]=None):
super().__init__(blocks_per_group=(3, 8, 36, 3), num_classes=jTqs, bn_config=q4af, resnet_v2=MIwg, bottleneck=True, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.7649233",
"0.7376856",
"0.7354889",
"0.72768724",
"0.7195494",
"0.7195494",
"0.71535224",
"0.7097737",
"0.701445",
"0.701445",
"0.701445",
"0.701445",
"0.697802",
"0.69658226",
"0.6954004",
"0.69470996",
"0.69470996",
"0.69470996",
"0.6905179",
"0.6903568",
"0.6891352",
... | 0.0 | -1 |
Constructs a ResNet model. | def FIMM(YKHO, jTqs: int, q4af: Optional[Mapping[str, float]]=None, MIwg: bool=False, mWFP: Optional[str]=None):
super().__init__(blocks_per_group=(3, 24, 36, 3), num_classes=jTqs, bn_config=q4af, resnet_v2=MIwg, bottleneck=True, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.7650405",
"0.7377176",
"0.7354001",
"0.7276776",
"0.719624",
"0.719624",
"0.7154599",
"0.7098276",
"0.70145404",
"0.70145404",
"0.70145404",
"0.70145404",
"0.6976843",
"0.6966467",
"0.69532424",
"0.69470525",
"0.69470525",
"0.69470525",
"0.6904808",
"0.6901749",
"0.689467"... | 0.0 | -1 |
This function will produce (filter_size, stride) so that applying convolution with (filter_size, stride) can have the "same" effect as the conv_list in terms of size | def mfoi(ngwK):
jzdc = ie8C(ngwK, (0, 0, 0, 0))
Fg_i = ie8C(ngwK, (1, 1, 1, 1))
return (jzdc[2] - jzdc[0] + 1, Fg_i[0] - jzdc[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCOy(N0ky: int, ARUe: int, QJWG: int, TVo7: int) -> int:\n return (N0ky + 2 * ARUe - QJWG) / TVo7 + 1",
"def d19N(zi3C, QJWG, _0fC, hVLt):\n if zi3C is None:\n return None\n zi3C = XTiz.array(zi3C)\n QJWG = XTiz.array(QJWG)\n _0fC = XTiz.array(_0fC)\n if isinstance(hVLt, (int, iu5r))... | [
"0.71875703",
"0.71354216",
"0.7123694",
"0.7123694",
"0.7047046",
"0.7022066",
"0.69799554",
"0.69757503",
"0.69581145",
"0.6924173",
"0.691892",
"0.6901634",
"0.6883509",
"0.6842744",
"0.6830652",
"0.6787999",
"0.6759027",
"0.6751494",
"0.67306226",
"0.6714466",
"0.66951865... | 0.0 | -1 |
Return a string representation of this node. | def wHJl(YKHO):
return 'Node({!r})'.format(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.node_info)",
"def vIwR(YKHO):\n l5Ny = 'node ' + SLdk.string(YKHO.identifier, default='unknown') + '\\n'\n for xC3W in dir(YKHO):\n if xC3W.startswith('_'):\n continue\n BWXx = getattr(YKHO, xC3W)\n if callable(BWXx):\n continu... | [
"0.86646795",
"0.84110415",
"0.8202625",
"0.817793",
"0.8089479",
"0.8086267",
"0.80824953",
"0.80419034",
"0.8022461",
"0.79952896",
"0.7990764",
"0.79483294",
"0.79459924",
"0.79225326",
"0.7921438",
"0.79137856",
"0.79102916",
"0.79102916",
"0.7898009",
"0.7887776",
"0.786... | 0.80001104 | 10 |
Initialize this linked list and append the given items, if any. | def FIMM(YKHO, DumB=None):
YKHO.head = None
YKHO.tail = None
if DumB is not None:
for ZfUD in DumB:
YKHO.append(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DumB=None):\n YKHO.head = None\n YKHO.tail = None\n YKHO.size = 0\n if DumB is not None:\n for ZfUD in DumB:\n YKHO.append(ZfUD)",
"def FIMM(YKHO, DumB=None):\n YKHO.head = None\n YKHO.tail = None\n YKHO.count = 0\n if DumB is not None:\n for ZfUD i... | [
"0.797671",
"0.7849498",
"0.7777124",
"0.7671058",
"0.74207884",
"0.73602486",
"0.71870446",
"0.71870446",
"0.70084774",
"0.69650966",
"0.6916189",
"0.6903825",
"0.6897333",
"0.68588",
"0.68347245",
"0.68347245",
"0.6827241",
"0.68239176",
"0.68239176",
"0.68239176",
"0.67959... | 0.80008894 | 0 |
Return a formatted string representation of this linked list. | def zAg0(YKHO):
DumB = ['({!r})'.format(ZfUD) for ZfUD in YKHO.items()]
return '[{}]'.format(' -> '.join(DumB)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n if YKHO.__head is None:\n return ''\n nPrm = []\n jvSB = YKHO.__head\n while jvSB is not None:\n nPrm.append(jvSB.data)\n jvSB = jvSB.next_node\n return '%s' % '\\n'.join((str(YRbF) for YRbF in nPrm))",
"def zAg0(YKHO):\n jbXL = YKHO.__head\n Oz57 = []\... | [
"0.83919096",
"0.82545394",
"0.81881714",
"0.8176865",
"0.811693",
"0.80873454",
"0.80658984",
"0.80566853",
"0.80529404",
"0.8025158",
"0.8025091",
"0.8024259",
"0.80049115",
"0.7983782",
"0.7932365",
"0.7932365",
"0.79019356",
"0.7898837",
"0.78814644",
"0.7861164",
"0.7851... | 0.0 | -1 |
Return a boolean indicating whether this linked list is empty. | def FBfn(YKHO):
return YKHO.head is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO) -> bool:\n return YKHO._head == None",
"def FBfn(YKHO):\n if YKHO.head is not None:\n return True\n return False",
"def A4KR(YKHO):\n if YKHO.head.next:\n return False\n else:\n return True",
"def FBfn(YKHO):\n if YKHO.list.length() == 0:\n return ... | [
"0.8634003",
"0.8530571",
"0.8507975",
"0.8495475",
"0.8463633",
"0.8447948",
"0.84470534",
"0.8446796",
"0.8446796",
"0.844648",
"0.8444852",
"0.8444852",
"0.8440998",
"0.8438879",
"0.8437873",
"0.8430868",
"0.84308547",
"0.8401543",
"0.83949894",
"0.83864915",
"0.83818555",... | 0.8282864 | 33 |
Return the length of this linked list by traversing its nodes. | def u54L(YKHO):
twMG = 0
jvSB = YKHO.head
while jvSB is not None:
jvSB = jvSB.next
twMG += 1
return twMG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n return YKHO.size",
"def szAg(YKHO):\n jvSB = YKHO.head_node\n u54L = 0\n while jvSB != None:\n u54L += 1\n jvSB = jvSB.next_element\n return u54L",
"def szAg(YKHO):\n Q6kx = YKHO.first_node\n zNig = 0\n while Q6kx is not None:\n Q6kx = Q6kx.next\n ... | [
"0.832572",
"0.8246517",
"0.82012945",
"0.8087627",
"0.8024987",
"0.80149776",
"0.7969449",
"0.7955356",
"0.78871644",
"0.7876437",
"0.78527945",
"0.784829",
"0.78197056",
"0.7819426",
"0.7794464",
"0.7793936",
"0.77822036",
"0.7776281",
"0.77682394",
"0.7767018",
"0.7751076"... | 0.8315789 | 1 |
Determines if the piece is allowed to move in the specified direction and distance. \n | def ZXST(YKHO):
wM_0 = YKHO._ending_sqr_row - YKHO._starting_sqr_row
iXC1 = YKHO._ending_sqr_col - YKHO._starting_sqr_col
if YKHO._center is False:
if abs(wM_0) > 3 or abs(iXC1) > 3:
return False
if iXC1 != 0 and wM_0 == 0:
if iXC1 < 0:
if YKHO._west is False:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SLKL(WKvO, LVAh, TVTK, H2v2, XSoh):\n return 0 <= WKvO + XSoh[0] < TVTK and 0 <= LVAh + XSoh[1] < H2v2",
"def WE6d(bseI: list, XSoh: str):\n if XSoh == 'w':\n GfdN = bseI[0] - 1\n elif XSoh == 's':\n GfdN = bseI[0] + 1\n elif XSoh == 'a':\n GfdN = bseI[1] - 1\n elif XSoh =... | [
"0.7560754",
"0.7224884",
"0.71279174",
"0.7050554",
"0.70183414",
"0.7014157",
"0.69924575",
"0.6988229",
"0.68890154",
"0.6888592",
"0.68768096",
"0.68383735",
"0.681503",
"0.67736286",
"0.6767087",
"0.6761842",
"0.674144",
"0.671432",
"0.6690374",
"0.6684796",
"0.6674927",... | 0.0 | -1 |
tests that header_check raises an exception if an empty sequence is entered | def G_2h(YKHO):
with YKHO.assertRaises(joWx.SequenceError) as Bcwd:
joWx.header_check('')
XObx = Bcwd.exception
YKHO.assertEqual(str(XObx), 'Empty Sequence entered.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XItJ(YKHO):\n with YKHO.assertRaises(joWx.SequenceError) as vg0C:\n joWx.header_check('003893')\n XObx = vg0C.exception\n YKHO.assertEqual(str(XObx), 'Not a sequence. Please try again')",
"def XItJ(YKHO):\n with YKHO.assertRaises(a3X6.SequenceError) as vg0C:\n a3X6.OrthologFinder.he... | [
"0.7993117",
"0.7832065",
"0.7310632",
"0.7299935",
"0.7283181",
"0.7154337",
"0.70918405",
"0.7072133",
"0.7072133",
"0.7072133",
"0.7072133",
"0.6924359",
"0.6901462",
"0.68693",
"0.6840487",
"0.6828728",
"0.68055934",
"0.6773573",
"0.67282426",
"0.6700112",
"0.6679171",
... | 0.7719528 | 2 |
Calculates the laminate constitutive matrix This is the commonly called ``ABD`` matrix with ``shape=(6, 6)`` when the classical laminated plate theory is used, or the ``ABDE`` matrix when the firstorder shear deformation theory is used, containing the transverse shear terms. | def a_1C(YKHO):
YKHO.A_general = oyIN.zeros([5, 5], dtype=rxky)
YKHO.B_general = oyIN.zeros([5, 5], dtype=rxky)
YKHO.D_general = oyIN.zeros([5, 5], dtype=rxky)
YKHO.QLALN_general = oyIN.zeros([5], dtype=rxky)
YKHO.QLALM_general = oyIN.zeros([5], dtype=rxky)
YXzr = sum([c9Fj.t for c9Fj in YKHO.pl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SXDc(YKHO):\n if YKHO.__L == []:\n YKHO.__L = oyIN.diag(YKHO.degrees()) - oyIN.matrix(YKHO.__A)\n return YKHO.__L",
"def uyvd(YKHO):\n Oa1e = lambda YRbF, r845: 1 if oyIN.abs(YRbF - r845) <= oyIN.floor(YKHO._s * 0.5) else 0\n T3TX = oyIN.array([[Oa1e(YRbF, r845) for r845 in range(YKHO._T)]... | [
"0.75665694",
"0.71745",
"0.6837469",
"0.67806756",
"0.67218286",
"0.6545269",
"0.6538632",
"0.6499559",
"0.64542836",
"0.6406726",
"0.6326905",
"0.6305196",
"0.630414",
"0.62783885",
"0.62283266",
"0.6207955",
"0.620262",
"0.61472756",
"0.6116273",
"0.6116273",
"0.6116273",
... | 0.70917577 | 2 |
r"""Force an orthotropic laminate The terms `A_{13}`, `A_{23}`, `A_{31}`, `A_{32}`, `B_{13}`, `B_{23}`, `B_{31}`, `B_{32}`, `D_{13}`, `D_{23}`, `D_{31}`, `D_{32}` are set to zero to force an orthotropic laminate. | def tlAN(YKHO):
if YKHO.offset != 0.0:
raise RuntimeError('Laminates with offset cannot be forced orthotropic!')
YKHO.A[0, 2] = 0.0
YKHO.A[1, 2] = 0.0
YKHO.A[2, 0] = 0.0
YKHO.A[2, 1] = 0.0
YKHO.B[0, 2] = 0.0
YKHO.B[1, 2] = 0.0
YKHO.B[2, 0] = 0.0
YKHO.B[2, 1] = 0.0
YKHO.D[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PmpU(WKvO, vC9B):\n gC_4 = vC9B.shape[1]\n if gC_4 == 1:\n ogdh = oyIN.sqrt(oyIN.dot(vC9B.T, vC9B))\n nayi = ty1s(vC9B, ogdh)\n UkP1 = oyIN.dot(ogdh, WKvO)\n else:\n WJtp, OWwh, YDLp = H4yH.linalg.svd(vC9B, full_matrices=False)\n ogdh = oyIN.dot(oyIN.diag(OWwh), YDLp... | [
"0.57011306",
"0.5676281",
"0.5593569",
"0.54934436",
"0.54446006",
"0.53870356",
"0.538341",
"0.5341368",
"0.53290695",
"0.5319977",
"0.5291408",
"0.5251964",
"0.52465254",
"0.52425134",
"0.522774",
"0.51829314",
"0.5181048",
"0.51613444",
"0.5152132",
"0.5143895",
"0.513158... | 0.7544247 | 0 |
Name of the vserver to which this volume belongs. This field is returned only when the request is sent to the Admin Vserver LIF. | def xjh5(YKHO):
return YKHO._vserver | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jNnH(YKHO):\n try:\n return YKHO._vservername\n except Exception as e:\n raise tTpl",
"def jNnH(YKHO):\n try:\n return YKHO._vservername\n except Exception as e:\n raise tTpl",
"def NzQY(YKHO):\n RZXg = YKHO.virt_driver.get_host_name()\n return RZXg[0]",
"def... | [
"0.8506693",
"0.8411796",
"0.7309005",
"0.7058406",
"0.6908376",
"0.68939805",
"0.68828934",
"0.68609214",
"0.68609214",
"0.68257594",
"0.681162",
"0.6755911",
"0.673393",
"0.666675",
"0.66022456",
"0.65858936",
"0.6555158",
"0.65389395",
"0.65321374",
"0.65158075",
"0.649651... | 0.6967321 | 6 |
Given an edge, add this edge to the Network | def rz7z(YKHO, D70y):
P6bq, Ty9i = D70y
YKHO.edges.append(D70y)
if P6bq not in YKHO.neighb:
YKHO.neighb[P6bq] = set({Ty9i})
YKHO.vertices.append(P6bq)
YKHO.vertices_set.add(P6bq)
YKHO.number_nodes += 1
else:
YKHO.neighb[P6bq].add(Ty9i)
if Ty9i not in YKHO.neig... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n aF0O, Br5Q = D70y\n YKHO.add_node(aF0O)\n YKHO.add_node(Br5Q)\n YKHO.graph[aF0O].append(Br5Q)",
"def rz7z(YKHO, D70y):\n if D70y.get_source() not in YKHO.nodes:\n... | [
"0.8735507",
"0.8735507",
"0.86225164",
"0.852032",
"0.84887207",
"0.84647495",
"0.8431939",
"0.8359379",
"0.83572745",
"0.82921475",
"0.81859255",
"0.818369",
"0.81566024",
"0.81391853",
"0.8127358",
"0.81231767",
"0.81196266",
"0.80624884",
"0.8020592",
"0.7997312",
"0.7979... | 0.8279335 | 10 |
Given a node, returns all the neighbors of the node. | def A_IW(YKHO, Q6kx):
if Q6kx not in YKHO.nodes():
print('ERROR: %s not in the node set' % Q6kx)
return YKHO.neighb[Q6kx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_IW(YKHO, Q6kx):\n try:\n Aofo = list(YKHO._graph.neighbors(Q6kx))\n except jHsn.NetworkXError:\n Aofo = []\n return Aofo",
"def A_IW(YKHO, Q6kx):\n if Q6kx not in YKHO.nodes:\n return []\n return [jbXL[0] for jbXL in YKHO.inner.get(Q6kx, [])]",
"def A_IW(YKHO, Q6kx):\n... | [
"0.8642653",
"0.84394747",
"0.8423169",
"0.8399009",
"0.83848524",
"0.8345059",
"0.83071065",
"0.83071065",
"0.83071065",
"0.8262604",
"0.8236747",
"0.8069259",
"0.8038865",
"0.8034427",
"0.79282767",
"0.7870652",
"0.78629494",
"0.78399867",
"0.77259624",
"0.76236343",
"0.760... | 0.8026267 | 14 |
List services added for zone as a space separated list. If zone is omitted, default zone will be used. | def E4fl(lhKE=None, tesq=True):
if lhKE:
HCmI = '--zone={} --list-services'.format(lhKE)
else:
HCmI = '--list-services'
if tesq:
HCmI += ' --permanent'
return cnCo(HCmI).split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M133(gtI8, qIxc):\n BfDw.print_list(gtI8.zones.list(), ['ID', 'Name', 'Is Active', 'API URL', 'Weight Offset', 'Weight Scale'])",
"def CRax(tesq=True):\n HCmI = '--list-all-zones'\n if tesq:\n HCmI += ' --permanent'\n return Jf6k(HCmI)",
"def LzdX(lhKE=None, tesq=True):\n if lhKE:\n ... | [
"0.69751585",
"0.66991645",
"0.65655136",
"0.6384777",
"0.6370365",
"0.6305493",
"0.61696035",
"0.61538947",
"0.61488056",
"0.61438155",
"0.61438155",
"0.61276937",
"0.61111045",
"0.61111045",
"0.60763097",
"0.6068617",
"0.604112",
"0.60072714",
"0.60037446",
"0.60037446",
"0... | 0.78341794 | 0 |
Obtains the time before expiry for a given key | def h9HD(YKHO, H5ew, DpZH=None, **B2fa):
H5ew = YKHO.make_key(H5ew, version=DpZH)
YKHO.validate_key(H5ew)
with YKHO._lock:
if YKHO._cache.get(H5ew, None) is None:
return 0
if YKHO._has_expired(H5ew):
return 0
kLQb = YKHO._expire_info.get(H5ew, None)
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvZq(YKHO):\n return wzkt() - fCoM(minutes=gCuF.SHOP_CART_EXPIRY_MINUTES)",
"def SF4m(YKHO, H5ew, wzkt=None):\n if wzkt is None:\n wzkt = ITS7.time()\n with YKHO._lock:\n pg_u, LXG0 = super().__getitem__(H5ew)\n return pg_u - wzkt",
"def NvZq(YKHO):\n return wzkt() - fCoM(m... | [
"0.7226667",
"0.7189698",
"0.71439964",
"0.6981548",
"0.6981548",
"0.696189",
"0.6936144",
"0.6883426",
"0.68753856",
"0.68753856",
"0.68583685",
"0.6820245",
"0.6786058",
"0.6773221",
"0.6755336",
"0.6713471",
"0.67035174",
"0.6692528",
"0.6688301",
"0.66788304",
"0.6669057"... | 0.6649446 | 25 |
Split a statement into separate SQL statements. This method converts a single string containing one or more SQL statements into an iterator of strings, each corresponding to one SQL statement. If the statement's language is not to be SQL, this method should be overloaded appropriately. | def ecfv(YKHO, wXzk):
for WNtM in g4Ww.split(wXzk):
WNtM = WNtM.strip()
if WNtM.endswith(';'):
WNtM = WNtM[:-1].strip()
if WNtM:
yield WNtM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(Pe9W, tZ2K=None):\n wOb_ = _d3B.tokenize(Pe9W, tZ2K)\n wAJt = H5M6()\n wOb_ = wAJt.process(None, wOb_)\n return [QMSQ(ZlgM).strip() for ZlgM in wOb_]",
"def dp45(WNtM: str):\n K_eL = okCT(WNtM)\n rUp7 = [str(WNtM) for WNtM in g4Ww.split(K_eL)]\n return rUp7",
"def PQ5Y(Pe9W):\n ... | [
"0.7785595",
"0.77470124",
"0.7544544",
"0.74636465",
"0.6858721",
"0.67674625",
"0.6597873",
"0.6507976",
"0.64082706",
"0.63722664",
"0.62257826",
"0.61409503",
"0.61273676",
"0.60018414",
"0.59912306",
"0.59702486",
"0.589738",
"0.5886787",
"0.5871526",
"0.58451396",
"0.58... | 0.80740994 | 0 |
Clean up statements prior to hash computation. This classmethod takes an SQL statement and reformats it by consistently removing comments and replacing all whitespace. It is used by the `statement_hash` method to avoid functionally identical queries hitting different cache keys. If the statement's language is not to be... | def VXhU(Emd4, WNtM):
WNtM = g4Ww.format(WNtM, strip_comments=True, reindent=True)
WNtM = Hy7s.linesep.join([zFiD for zFiD in WNtM.splitlines() if zFiD])
return WNtM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lvfG(Pe9W):\n E5BI = g4Ww.engine.FilterStack()\n E5BI.stmtprocess.append(g4Ww.filters.StripCommentsFilter())\n E5BI.postprocess.append(g4Ww.filters.SerializerUnicode())\n return ''.join(E5BI.run(Pe9W, 'utf-8')).strip()",
"def nYSB(hQ48, MJLA=beXA, NYqn=Mq5c):\n Aofo = MJLA.sub('', hQ48)\n A... | [
"0.69627756",
"0.69037575",
"0.6837185",
"0.6819113",
"0.6610753",
"0.6557524",
"0.65356886",
"0.6468159",
"0.6365293",
"0.62416637",
"0.6188596",
"0.6142621",
"0.60094815",
"0.59427077",
"0.5905861",
"0.58197767",
"0.5771413",
"0.57635695",
"0.5757465",
"0.5754274",
"0.57439... | 0.787142 | 0 |
Return the set of undeclared variables required for this template. | def CS4Y(YKHO, LzkL, NCru=False):
jZ4I = qPGQ.Environment().parse(YKHO.template_render(LzkL, by_name=NCru, meta_only=True))
return qPGQ.meta.find_undeclared_variables(jZ4I) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bKqQ(YKHO) -> x1iM[AzJI[str, str, str]]:\n return [(Ty9i, YRbF.typed, kXL3[YRbF.typed]) for Ty9i, YRbF in YKHO.need_predeclaring.items()]",
"def ESTM(YKHO) -> fHNa[str]:\n if len(YKHO.parts) == 0:\n return set()\n return set.union(*[XP5J.required_variables() for XP5J in YKHO.parts])",
"def ... | [
"0.7556236",
"0.7447759",
"0.7313603",
"0.723434",
"0.7125476",
"0.7096877",
"0.70748794",
"0.6880992",
"0.6842417",
"0.6773276",
"0.67691314",
"0.67477757",
"0.67297846",
"0.671656",
"0.66005504",
"0.6590088",
"0.65872645",
"0.65397704",
"0.6508171",
"0.6505092",
"0.64988714... | 0.0 | -1 |
Check whether a table exists. | def n2Bh(YKHO, tyNF, IW3u=True, **B2fa):
return YKHO._table_exists(table=YKHO._parse_namespaces(tyNF), renew=IW3u, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n2Bh(YKHO, mWFP):\n xDcj = \"\\n IF OBJECT_ID('{name:s}', 'U') IS NOT NULL\\n SELECT 'Table Exists'\\n \".format(name=mWFP)\n YKHO.cursor.execute(xDcj)\n try:\n YKHO.cursor.fetchone()\n except:\n return False\n else:\n return True",
"def PJ... | [
"0.8679032",
"0.8585534",
"0.85742533",
"0.8571888",
"0.8521473",
"0.8510063",
"0.8455493",
"0.8438624",
"0.8431183",
"0.8427903",
"0.8408785",
"0.8402842",
"0.83985513",
"0.8353114",
"0.8346296",
"0.83363914",
"0.83345836",
"0.83239514",
"0.8259916",
"0.82551134",
"0.8250101... | 0.79165846 | 44 |
Retrieve the first `n` rows from a table. | def FEMG(YKHO, tyNF, exwG=10, IW3u=True, **B2fa):
return YKHO._table_head(table=YKHO._parse_namespaces(tyNF), n=exwG, renew=IW3u, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZpz(YKHO, ywwl):\n return ZYgz.TTable_SelectFirstNRows(YKHO, ywwl)",
"def lZpz(YKHO, ywwl):\n return ZYgz.PTable_SelectFirstNRows(YKHO, ywwl)",
"def zZrH(bOBl, exwG):\n jQ3Z = bOBl.head(exwG)\n return jQ3Z",
"def sdCG(YKHO, exwG: int=10) -> x1iM[d3C6]:\n return _iMd(exwG, YKHO)",
"def s... | [
"0.8212009",
"0.8167686",
"0.79927677",
"0.7424428",
"0.68859833",
"0.65151745",
"0.6509723",
"0.63456154",
"0.6341394",
"0.63237464",
"0.6308862",
"0.6300029",
"0.62609535",
"0.6246101",
"0.6246101",
"0.6246101",
"0.623163",
"0.6222307",
"0.621232",
"0.62108505",
"0.61396736... | 0.59234864 | 36 |
Retrieve the properties associated with a table. | def g8PF(YKHO, tyNF, IW3u=True, **B2fa):
return YKHO._table_props(table=YKHO._parse_namespaces(tyNF), renew=IW3u, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OSAl(YKHO, GTA_):\n return YKHO._get_properties('Table Parameters:', GTA_)",
"def ci7I(YKHO, GTA_):\n return YKHO._get_properties('Storage Desc Params:', GTA_)",
"def HnMu(YKHO):\n return {'table': YKHO.table, 'binary': YKHO.binary, 'polarity': YKHO.polarity, 'mapped': YKHO.mapped, 'cipher_active'... | [
"0.819723",
"0.6939878",
"0.6809276",
"0.6462332",
"0.638567",
"0.6348106",
"0.6272958",
"0.6266943",
"0.6261775",
"0.6236425",
"0.6226733",
"0.62116593",
"0.6210196",
"0.6210196",
"0.61936575",
"0.61627847",
"0.61589134",
"0.61548203",
"0.6151576",
"0.61324006",
"0.6089994",... | 0.6991529 | 1 |
Return a string representation of the model. | def zAg0(YKHO):
return YKHO.text | {
"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: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_dict().items()]\n return f'{type(YKHO).__name__}({sgKs})'",
"def zAg0(YKHO):\n oOUF = '------------------------... | [
"0.8495676",
"0.8424549",
"0.7915226",
"0.78231704",
"0.77746725",
"0.7646499",
"0.76353073",
"0.76262254",
"0.7618147",
"0.75990707",
"0.7594216",
"0.75930893",
"0.75854623",
"0.7563424",
"0.7563424",
"0.7563424",
"0.7544013",
"0.75400853",
"0.7535514",
"0.7530679",
"0.75306... | 0.0 | -1 |
List items belonging to an API call. Used for list_services() and list_incidents() | def YWwK(XeOP, H5ew, QAlD=None, rJDA=None, VKhi=None):
DumB = NTfD.utils.json.loads(xDcj(profile_dict=QAlD, api_key=rJDA, action=XeOP, opts=VKhi))
U5bT = {}
for ZfUD in DumB[XeOP]:
U5bT[ZfUD[H5ew]] = ZfUD
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UED2(YKHO):\n dixj = YKHO.send_api_request(YKHO._api_url)\n return dixj",
"def UrHa(YKHO, NKcE, QePW, mWFP):\n DumB = []\n while QePW is not None:\n geh0 = QePW.execute()\n DumB += geh0.get(mWFP, [])\n QePW = NKcE.list_next(QePW, geh0)\n return DumB",
"def NMoC(YKHO, QeP... | [
"0.7010653",
"0.6704978",
"0.6575931",
"0.65204036",
"0.6496938",
"0.646324",
"0.6350245",
"0.63030964",
"0.62884796",
"0.62720764",
"0.62720764",
"0.62720764",
"0.62720764",
"0.62720764",
"0.62720764",
"0.62720764",
"0.62720764",
"0.62720764",
"0.62720764",
"0.62720764",
"0.... | 0.0 | -1 |
decorator to ensure that a valid socket is passed as the first argument of the decorated function | def Fvft(vm1a):
def h3Xc(*qIxc, **YSA3):
try:
Wswm = qIxc[1]
if AK3W.__usedSockets[Wswm] == 0:
raise aKXW('invalid socket at function %s' % vm1a.__name__)
except IndexError:
raise aKXW('no socket specified for fucntion %s' % vm1a.__name__)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def de03(JfyU):\n\n def VCWy(*IUex):\n if len(IUex) != 2 and type(IUex[0]) != str and (type(IUex[1]) != int):\n G9jH.error(UEk1.msg8)\n return False\n iG42 = JfyU(*IUex)\n return iG42\n return VCWy",
"def OQvb(JfyU):\n\n def b6ry(YKHO, *qIxc):\n if YKHO.... | [
"0.69630975",
"0.6929312",
"0.67693704",
"0.6679756",
"0.65814203",
"0.65814203",
"0.65216875",
"0.64970464",
"0.6489124",
"0.64166313",
"0.638544",
"0.6340031",
"0.6310188",
"0.62887573",
"0.62425",
"0.61792266",
"0.61604047",
"0.6159242",
"0.61409074",
"0.6132746",
"0.61149... | 0.7476141 | 0 |
Method to generate the grid. Transforms the .txt file into a list of lines, then each line into a list of characters. For each character it will generate a square, or set the player/exit's position. | def WMxl(oyg0, exit):
with open('grid.txt') as O2_i:
jNkV = ''.join((zFiD.strip() for zFiD in O2_i))
MwGn = list(jNkV)
Cs6h = []
WKvO = 0
LVAh = 0
for bTKY in MwGn:
if bTKY == 'W' or bTKY == 'w':
Cs6h.append(_UKz(PXwx(WKvO, LVAh), True))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6M2(YKHO):\n with open(YKHO.file, 'r') as nUeQ:\n for zFiD in nUeQ:\n b_bB = []\n for Jqc7 in zFiD:\n if Jqc7 != '\\n':\n b_bB.append(Jqc7)\n YKHO.structure.append(b_bB)",
"def hfK9(Nqlg):\n fuKM = {'X': xQEZ, 'Y': SXYH, ' ': YI... | [
"0.6989361",
"0.6933819",
"0.6876711",
"0.6816382",
"0.67392504",
"0.66736317",
"0.66476303",
"0.6617171",
"0.6588917",
"0.65771383",
"0.65582",
"0.65414745",
"0.64836633",
"0.64741594",
"0.6470823",
"0.6468053",
"0.64661926",
"0.6401879",
"0.6398323",
"0.6391023",
"0.6376440... | 0.85080546 | 0 |
Verify that the format of the postfix expression is correct | def QvrE(s2mk):
aI3K = '+-*/^'
xpbW = 0
tWUD = 0
for eOtH in s2mk:
if eOtH.isdigit() or (eOtH[0] == '-' and eOtH[1:].isdigit()):
xpbW += 1
elif eOtH in aI3K:
tWUD += 1
else:
raise xzLE('Invalid token')
if xpbW < tWUD + 1:
raise xzLE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GHCA(zdZF):\n P2xj = zdZF.split()\n deVW = 0\n for YRbF in P2xj:\n if ye72(YRbF):\n deVW += 1\n elif YRbF in '+-*/^':\n deVW -= 2\n if deVW < 0:\n return False\n deVW += 1\n elif YRbF == '~':\n deVW -= 1\n ... | [
"0.7515653",
"0.7288213",
"0.6901529",
"0.6813471",
"0.6792381",
"0.67411655",
"0.66596454",
"0.66386807",
"0.6628905",
"0.66079736",
"0.6599699",
"0.65218467",
"0.65216327",
"0.65023166",
"0.6476177",
"0.64094573",
"0.63991994",
"0.63425297",
"0.63316894",
"0.6301028",
"0.62... | 0.7583667 | 0 |
Convert infix expressions to postfix expressions | def XtMr(n_L_):
rGFB = {'+': (0, 'left'), '-': (0, 'left'), '*': (1, 'left'), '/': (1, 'left'), '^': (2, 'right')}
E5BI = lJj5()
s2mk = n_L_.split(' ')
hEAh = ''
for eOtH in s2mk:
if eOtH.isdigit() or (eOtH[0] == '-' and eOtH[1:].isdigit()):
hEAh += ' ' + eOtH
elif eOtH =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGns(YKHO, EP60):\n E5BI = S9Ut()\n XLK4 = []\n for Npgh in EP60.split():\n if Npgh.isupper() or Npgh.isdigit():\n XLK4.append(Npgh)\n elif Npgh == '(':\n E5BI.push(Npgh)\n elif Npgh == ')':\n tlxW = E5BI.pop()\n while tlxW != '(':\n ... | [
"0.85478204",
"0.83730114",
"0.8327565",
"0.8289185",
"0.8274347",
"0.81438094",
"0.81276834",
"0.8113135",
"0.8110983",
"0.79678595",
"0.78751594",
"0.78638995",
"0.7772932",
"0.7749273",
"0.76982623",
"0.7676161",
"0.7655914",
"0.7628797",
"0.7599136",
"0.7577104",
"0.75131... | 0.7543134 | 20 |
Build a simple vocabulary wrapper. | def ZFlL(qQXR, gwAu):
N8JC = EvLI(qQXR)
ewCu = mBkc()
A07C = N8JC.anns.keys()
for YRbF, id in enumerate(A07C):
KzVY = str(N8JC.anns[id]['caption'])
s2mk = Dhdw.tokenize.word_tokenize(KzVY.lower())
ewCu.update(s2mk)
if (YRbF + 1) % 1000 == 0:
print('[{}/{}] Tok... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZFlL():\n CtWL = yH2p()\n CtWL.add_word('<pad>')\n CtWL.add_word('<start>')\n CtWL.add_word('<end>')\n CtWL.add_word('<unk>')\n BHGE = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']\n for yzQ0 in BHGE:\n CtWL.add_word(yzQ0)\n V22M = ['this', 'is'... | [
"0.7755793",
"0.73053926",
"0.6995103",
"0.69531846",
"0.6804066",
"0.67488897",
"0.6694504",
"0.66365016",
"0.66319454",
"0.66311026",
"0.6616782",
"0.65829116",
"0.6452869",
"0.64499414",
"0.6433021",
"0.6401226",
"0.6382874",
"0.63703674",
"0.6340062",
"0.6338486",
"0.6334... | 0.5841065 | 68 |
Normalize entire dataset (delta_x, delta_y) by the scaling factor. | def NkkI(XbFU):
nPrm = []
SnCn = lPcw(XbFU)
for Q6uT in XbFU:
Q6uT[:, 0:2] /= SnCn
nPrm.append(Q6uT)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7gV(YKHO):\n YKHO.test_x = BfDw.scale(YKHO.test_x)\n YKHO.train_x = BfDw.scale(YKHO.train_x)\n YKHO.test_x = BfDw.normalize(YKHO.test_x)\n YKHO.train_x = BfDw.normalize(YKHO.train_x)",
"def kwsU(YKHO):\n YKHO.scale = txNa().fit(YKHO.features)\n YKHO.features = YKHO.scale.transform(YKHO.fea... | [
"0.7518991",
"0.71810466",
"0.71677315",
"0.71086276",
"0.7058891",
"0.7037849",
"0.70301",
"0.7006724",
"0.70009476",
"0.6989785",
"0.6986369",
"0.69844157",
"0.69800514",
"0.6953547",
"0.6938592",
"0.69267976",
"0.69149613",
"0.6882427",
"0.68799865",
"0.68636936",
"0.68636... | 0.0 | -1 |