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 |
|---|---|---|---|---|---|---|
Remove all expired entries from the cache that do not have a reference count. | def jZl3(YKHO):
imvV = ITS7.time() - YKHO._keep_time
MRYu = {}
zNZV = []
for G1Hx, Ty9i in YKHO._cache.items():
if Ty9i.count > 0:
if G1Hx not in YKHO._block_store:
MRYu[G1Hx] = Ty9i
elif Ty9i.timestamp > imvV:
MRYu[G1Hx] = Ty9i
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RNr1(YKHO):\n with YKHO._lock:\n YKHO.entries = [bTKY for bTKY in YKHO.entries if not bTKY.is_expired]",
"def AskU(YKHO):\n if not YKHO.doCache:\n return\n YKHO.lock.acquire()\n try:\n for H5ew, BWXx in YKHO.cache.items():\n YKHO.expiredCache[H5ew] = bf9h(BWXx)\n ... | [
"0.7739128",
"0.7736509",
"0.75085324",
"0.7422062",
"0.7291186",
"0.706019",
"0.69745123",
"0.6973448",
"0.69632757",
"0.6941034",
"0.68581903",
"0.6840977",
"0.68256795",
"0.67944497",
"0.67675745",
"0.675654",
"0.6749808",
"0.67497665",
"0.67464334",
"0.671345",
"0.6709178... | 0.76522285 | 2 |
This function displays a grid of images to show full misclassification | def eGEB(nPrm):
QrM1.ioff()
JI1i = QrM1.figure()
JI1i.canvas.set_window_title('Cleverhans: Grid Visualization')
ulBT = nPrm.shape[0]
NwL4 = nPrm.shape[1]
Qi3c = nPrm.shape[4]
kaNW = 0
for LVAh in Ni9Y(NwL4):
for WKvO in Ni9Y(ulBT):
JI1i.add_subplot(ulBT, NwL4, WKvO + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cEbM():\n HN6s = co3n = 5\n x5Lm = 0\n for shtX in cfjv['pose'].unique():\n if x5Lm > 100:\n break\n x5Lm += 1\n if x5Lm % 25 == 1:\n LZpg = QrM1.gcf()\n LZpg.set_size_inches(co3n * 2.7, HN6s * 2.7)\n QMAG = cfjv[cfjv['pose'] == shtX]['path'... | [
"0.74927694",
"0.73794734",
"0.6927776",
"0.69231606",
"0.687296",
"0.68670005",
"0.6835585",
"0.68250996",
"0.6743423",
"0.6693097",
"0.6644521",
"0.663002",
"0.66282463",
"0.6613006",
"0.6595101",
"0.65858436",
"0.6575999",
"0.6575472",
"0.6561993",
"0.6553866",
"0.6549264"... | 0.0 | -1 |
Defines the right convolutional layer according to the version of Keras that is installed. | def RjGE(KUnM, RndV, FEri, dvgN):
if RRys(bdPE.__version__) >= RRys('2.0.0'):
return yHwh(filters=KUnM, kernel_size=RndV, strides=FEri, padding=dvgN)
else:
return Ofph(KUnM, RndV[0], RndV[1], subsample=FEri, border_mode=dvgN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o6Bz(i92A, he5B, r7hl, U_Og=None):\n if U_Og is not None:\n G1Hx = U_Og\n else:\n G1Hx = int(round(r7hl['conv_kernel_size']))\n return bdPE.layers.convolutional.Conv2D(filters=he5B, kernel_size=(G1Hx, G1Hx), strides=(1, 1), padding='same', activation=r7hl['activation'], kernel_regularize... | [
"0.680159",
"0.674671",
"0.6713828",
"0.6650555",
"0.66211456",
"0.63718164",
"0.62584037",
"0.62392294",
"0.62102216",
"0.6198621",
"0.61811876",
"0.6153259",
"0.6147338",
"0.61335796",
"0.6123514",
"0.6115497",
"0.6108925",
"0.6108925",
"0.6108925",
"0.60875297",
"0.6081334... | 0.0 | -1 |
Defines a CNN model using Keras sequential model | def NAB2(KeL5=False, nO4Z=None, UrEU=28, eNs7=28, xMux=1, pt4o=64, Ybg9=10):
C3ST = ileL()
if bdPE.backend.image_dim_ordering() == 'th':
GhuM = (xMux, UrEU, eNs7)
else:
GhuM = (UrEU, eNs7, xMux)
fhcK = [lARV(0.2, input_shape=GhuM), RjGE(pt4o, (8, 8), (2, 2), 'same'), MroH('relu'), RjGE(p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7():\n C3ST = ileL()\n C3ST.add(lTlC(32, 3, activation='relu', input_shape=Nq1b.INPUT_SHAPE))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lTlC(64, 3, activation='relu'))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lTlC(128, 3, activation='relu'))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lT... | [
"0.7763705",
"0.7718478",
"0.759034",
"0.7572159",
"0.7560248",
"0.7500918",
"0.7436053",
"0.7414043",
"0.73950905",
"0.7380309",
"0.7364632",
"0.7359001",
"0.73509294",
"0.7338396",
"0.7329743",
"0.7327554",
"0.7325152",
"0.73242486",
"0.73157024",
"0.7315047",
"0.73140836",... | 0.710938 | 41 |
A function that cleans up each individual phrase dictionary in scene_text_dict, and leaving only number and char | def DG31(jDn6):
lV4j = []
for A0cm, UHFx in jDn6.items():
if set(A0cm).difference(C1SZ + BHGE):
lV4j.append(A0cm)
for GIN8 in lV4j:
jDn6.pop(GIN8)
return jDn6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QrZ9(Ux0P):\n with open(Ux0P, 'r', encoding='utf-8', errors='ignore') as Mkmy:\n l5Ny = [rdlD for rdlD in Mkmy]\n UlCL = ['SMASH CUT TO:', 'FINAL SHOOTING SCRIPT', 'CUT TO BLACK', 'SMASH TO:', 'RAPID CUT TO:', 'BACK TO:', 'BLACK SCREEN', 'FADE OUT TO WHITE LIGHT', 'CUT TO:', 'CUT BACK:', 'CUT BACK... | [
"0.67904073",
"0.6693416",
"0.6492568",
"0.6361412",
"0.6174584",
"0.60613424",
"0.60146445",
"0.59745955",
"0.59684086",
"0.59680194",
"0.59678584",
"0.5960049",
"0.5960049",
"0.59553164",
"0.5941758",
"0.5931716",
"0.59217924",
"0.5920411",
"0.5920045",
"0.59189814",
"0.591... | 0.74538916 | 0 |
Returns enemy main / start zone. | def MCOu(YKHO) -> kpgd:
return YKHO.expansion_zones[len(YKHO.expansion_zones) - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F5VP(YKHO) -> kpgd:\n Z020 = YKHO.zones[YKHO.ai.start_location]\n if not Z020.is_ours:\n for lhKE in YKHO.expansion_zones:\n if lhKE.is_ours:\n return lhKE\n return Z020",
"def eMsc(YKHO) -> m7iN:\n if len(YKHO.ai.enemy_start_locations) == 1:\n return YKHO.... | [
"0.7209128",
"0.6823351",
"0.62649965",
"0.6263564",
"0.6263564",
"0.6259646",
"0.6167121",
"0.6119686",
"0.60016316",
"0.60016316",
"0.60016316",
"0.60016316",
"0.60016316",
"0.59992236",
"0.59981143",
"0.59981143",
"0.59836",
"0.59836",
"0.59827447",
"0.59743106",
"0.591097... | 0.8290977 | 0 |
Returns all zones that are possible enemy start locations. | def mGwS(YKHO) -> x1iM[kpgd]:
iku2 = [epBp for epBp in YKHO.all_zones if epBp.is_start_location]
return iku2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kd7x(YKHO) -> x1iM[kpgd]:\n Ntmt = [epBp for epBp in YKHO.enemy_start_zones if epBp.is_scouted_at_least_once]\n return Ntmt",
"def FUvt(YKHO) -> x1iM[kpgd]:\n I6Rv = [epBp for epBp in YKHO.enemy_start_zones if not epBp.is_scouted_at_least_once]\n return I6Rv",
"def Pz66(YKHO) -> x1iM[kpgd]:\n ... | [
"0.7480104",
"0.7218111",
"0.71964514",
"0.6936628",
"0.6907032",
"0.6841594",
"0.67766196",
"0.6680899",
"0.66605616",
"0.66354346",
"0.6602594",
"0.65881795",
"0.648051",
"0.6441092",
"0.6431217",
"0.6431217",
"0.6382711",
"0.6355714",
"0.63039386",
"0.62793946",
"0.6274949... | 0.8759909 | 0 |
head The linked list's head. Note that the head is guaranteed to be not null, so it contains at least one node. | def FIMM(YKHO, sdCG):
YKHO.head = sdCG
YKHO.length = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO, Q6kx=None):\n if Q6kx:\n assert type(Q6kx) == o7DN\n YKHO._head = Q6kx",
"def sdCG(YKHO) -> Msxl:\n raise NotImplementedError",
"def qHHo(YKHO):\n return YKHO.head",
"def _IVA(YKHO):\n if YKHO.head is None:\n return None\n if YKHO.head.nextNode is None:\n ... | [
"0.7640579",
"0.7546313",
"0.7467465",
"0.7409466",
"0.7392178",
"0.7370553",
"0.7363533",
"0.71592",
"0.7138384",
"0.69522285",
"0.69522285",
"0.69522285",
"0.69522285",
"0.69293326",
"0.6918494",
"0.6898207",
"0.6866616",
"0.68493044",
"0.6780263",
"0.6758471",
"0.67475736"... | 0.65761644 | 38 |
Returns a random node's value. | def UIrZ(YKHO):
if YKHO.length == 0:
AsCw = YKHO.head
while AsCw:
YKHO.length += 1
AsCw = AsCw.next
AsCw = YKHO.head
for YRbF in range(tuKI.randrange(YKHO.length)):
AsCw = AsCw.next
print(AsCw.val)
return AsCw.val | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjKZ(YKHO):\n return YKHO[YKHO.random_key()]",
"def UIrZ(YKHO):\n Q6kx = YKHO.head\n from random import randint\n for YRbF in Ni9Y(randint(0, YKHO.len - 1)):\n Q6kx = Q6kx.next\n return Q6kx.val",
"def ALfI(YKHO):\n return tuKI.randint(1, 10)",
"def RHmZ(YKHO):\n return YKHO.V... | [
"0.7683627",
"0.765839",
"0.74031866",
"0.738855",
"0.7353973",
"0.7183241",
"0.70771766",
"0.7077015",
"0.702326",
"0.699212",
"0.6940177",
"0.6889105",
"0.6845422",
"0.6834654",
"0.68165374",
"0.67828757",
"0.67084455",
"0.6703253",
"0.6688887",
"0.664814",
"0.66145146",
... | 0.6315596 | 56 |
Test tracer on an LLM run. | def rARu() -> None:
ygzv = hzVV(id=None, start_time=qcWV.utcnow(), end_time=qcWV.utcnow(), extra={}, execution_order=1, serialized={}, prompts=[], response=YEqH([[]]), session_id=Y4yf, error=None)
ko3c = zHaT()
ko3c.new_session()
ko3c.on_llm_start(serialized={}, prompts=[])
ko3c.on_llm_end(response=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UzK9() -> None:\n ygzv = hzVV(id=None, start_time=qcWV.utcnow(), end_time=qcWV.utcnow(), extra={}, execution_order=1, serialized={}, prompts=[], response=YEqH([[]]), session_id=Y4yf, error=None)\n ko3c = zHaT()\n ko3c.new_session()\n _rxA = 10\n for bGrB in range(_rxA):\n ko3c.on_llm_star... | [
"0.73107934",
"0.71741617",
"0.71659744",
"0.69380826",
"0.68537986",
"0.6812173",
"0.6795514",
"0.6795514",
"0.67085063",
"0.65945435",
"0.63733214",
"0.63276994",
"0.6242589",
"0.61614835",
"0.59685075",
"0.59615475",
"0.5919045",
"0.5894411",
"0.5869167",
"0.5811924",
"0.5... | 0.8195893 | 0 |
Helper function for nce_loss and sampled_softmax_loss functions. Computes sampled output training logits and labels suitable for implementing e.g. noisecontrastive estimation (see nce_loss) or sampled softmax (see sampled_softmax_loss). | def sbwm(_mSQ, HabP, Crrw, g4y1, yqMw, pbtU=1, KdTC='mod', mWFP=None):
if isinstance(_mSQ, kc1W.PartitionedVariable):
_mSQ = list(_mSQ)
if not isinstance(_mSQ, list):
_mSQ = [_mSQ]
with IPme.name_scope(mWFP, 'compute_sampled_logits', _mSQ + [HabP, g4y1, Crrw]):
if Crrw.dtype != m1c7.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAZD(_mSQ, HabP, Crrw, g4y1, HJpg, jTqs, pbtU=1, Bsb1=None, f2aY=False, KdTC='mod', mWFP='nce_loss'):\n KeL5, Crrw = sgp_(weights=_mSQ, biases=HabP, labels=Crrw, inputs=g4y1, num_sampled=HJpg, num_classes=jTqs, num_true=pbtU, sampled_values=Bsb1, subtract_log_q=True, remove_accidental_hits=f2aY, partition_s... | [
"0.66098976",
"0.64787966",
"0.6345067",
"0.6311893",
"0.6309609",
"0.618929",
"0.61816365",
"0.6171304",
"0.6151634",
"0.61400825",
"0.6136185",
"0.6087179",
"0.60857564",
"0.6066233",
"0.6061184",
"0.6057777",
"0.60290116",
"0.6022582",
"0.5980093",
"0.59690887",
"0.5967943... | 0.5889603 | 30 |
Handle authenticated PATCH requests | def pc4v(YKHO, bD7m, nPrm=None):
bD7m = TDhU(YKHO.base_url, bD7m)
try:
Mkmy = YKHO._make_request(**dict(method='PATCH', url=bD7m, json=nPrm, auth=YKHO.auth, timeout=YKHO.timeout, hooks=YKHO.request_hooks, headers=YKHO.request_headers))
except G4JS.exceptions.RequestException as e:
raise tTpl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, QePW, id=None):\n return oGir({'message': 'PATCH REQUEST'})",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'PATCH'})",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'PATCH'})",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'PATCH'})",
"def ... | [
"0.7263469",
"0.72025985",
"0.707458",
"0.707458",
"0.7037639",
"0.6990858",
"0.6990858",
"0.6990858",
"0.6990858",
"0.6990858",
"0.6988987",
"0.6985589",
"0.69636726",
"0.69636726",
"0.6960619",
"0.6934247",
"0.69113386",
"0.6885422",
"0.6872542",
"0.6855287",
"0.682848",
... | 0.62307036 | 71 |
Get an existing Secret resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU, id, VKhi=None):
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = dict()
return owkb(kFeU, opts=VKhi, __props__=r6DL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Secret':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = uvXA.__new__(uvXA)\n r6DL.__dict__['api_version'] = None\n r6DL.__dict__['data'] = None\n r6DL.__dict__['immutable'] = ... | [
"0.68409055",
"0.62908417",
"0.61722493",
"0.6102002",
"0.58988947",
"0.5877029",
"0.58686954",
"0.5747386",
"0.574107",
"0.57277876",
"0.57140636",
"0.5685159",
"0.5678258",
"0.56772286",
"0.56577855",
"0.56479126",
"0.56419194",
"0.5622081",
"0.5616699",
"0.5604848",
"0.560... | 0.7270562 | 0 |
Compute the intersection of two sorted lists. Returns a new sorted list containing only elements that are in both list1 and list2. This function can be iterative. | def XMlP(Kt9y, I_KI):
kkYL = []
for ZfUD in Kt9y:
for Hwxl in range(len(I_KI)):
if ZfUD == I_KI[Hwxl]:
kkYL.append(ZfUD)
break
return kkYL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zVQj(Kt9y, I_KI):\n return sorted(list(set(Kt9y) & set(I_KI)))",
"def zVQj(Kt9y, I_KI):\n return sorted(list(set(Kt9y) & set(I_KI)))",
"def XMlP(Kt9y, I_KI):\n return [WKvO for WKvO in Kt9y if WKvO in I_KI]",
"def zVQj(Kt9y, I_KI):\n return [ZfUD for ZfUD in Kt9y if ZfUD in I_KI]",
"def XMl... | [
"0.8637829",
"0.85115844",
"0.83667",
"0.8348089",
"0.83083963",
"0.8299984",
"0.82554024",
"0.8246342",
"0.8214282",
"0.81944174",
"0.81743646",
"0.81597507",
"0.8138138",
"0.80599415",
"0.80476534",
"0.80470824",
"0.8036241",
"0.8010719",
"0.79660165",
"0.7963588",
"0.79458... | 0.797199 | 18 |
Return the string path to the phabricator config 'name'. | def TSHg(mWFP):
return 'config/phabricator/{}'.format(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lqQH(YKHO):\n if YKHO.name is None:\n return YKHO.configuration.config_path\n else:\n return Hy7s.path.join(YKHO.configuration.config_path, YKHO.name)",
"def FMuv(YKHO, mWFP):\n XNWQ = YKHO._layout.phabricator_config(mWFP)\n pmON = YKHO._make_abspath(XNWQ)\n if not Hy7s.path.isfi... | [
"0.82592046",
"0.78814703",
"0.78301686",
"0.7625468",
"0.7602978",
"0.75861377",
"0.75778425",
"0.75722796",
"0.75250065",
"0.7412799",
"0.7351823",
"0.73410314",
"0.73394823",
"0.72673476",
"0.72608185",
"0.7243656",
"0.72289735",
"0.7220282",
"0.7219893",
"0.7211354",
"0.7... | 0.8295762 | 0 |
Return the string path for the phabricator config 'name'. Raise Exception if the config does not exist. | def FMuv(YKHO, mWFP):
XNWQ = YKHO._layout.phabricator_config(mWFP)
pmON = YKHO._make_abspath(XNWQ)
if not Hy7s.path.isfile(pmON):
raise Exception('{} has no phabricator config'.format(mWFP))
return XNWQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lqQH(YKHO):\n if YKHO.name is None:\n return YKHO.configuration.config_path\n else:\n return Hy7s.path.join(YKHO.configuration.config_path, YKHO.name)",
"def S673(mWFP=''):\n A7IV(mWFP)\n pmON = PB4K()\n if O6pU.is_desktop():\n pmON = Hy7s.path.join(pmON, 'robot/sources/et... | [
"0.8256101",
"0.7934632",
"0.755528",
"0.74903435",
"0.739129",
"0.73582923",
"0.7355515",
"0.727256",
"0.72562766",
"0.72450197",
"0.7160754",
"0.7149622",
"0.7092873",
"0.70736253",
"0.70627207",
"0.7057447",
"0.7042561",
"0.70265454",
"0.6991574",
"0.6981046",
"0.69598955"... | 0.7917742 | 2 |
Calculates the resistance of a thermistor for a specific temperature | def DDh1(YKHO, ovGo):
ovGo += 273.15
Cwt5 = (YKHO.sh_a - 1 / ovGo) / YKHO.sh_c
UqYS = epAf.sqrt((YKHO.sh_b / (3 * YKHO.sh_c)) ** 3 + Cwt5 ** 2 / 4)
OCTm = epAf.exp((UqYS - Cwt5 / 2) ** (1.0 / 3) - (UqYS + Cwt5 / 2) ** (1.0 / 3))
return OCTm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OF0O(YKHO, ovGo):\n ovGo = min(max(ovGo, 200), 400)\n CIn9 = YKHO.ambient_temperature * YKHO.calibration_data.par_gh3 / 1000 * 256\n AhCl = (YKHO.calibration_data.par_gh1 + 784) * (((YKHO.calibration_data.par_gh2 + 154009) * ovGo * 5 / 100 + 3276800) / 10)\n ExCh = CIn9 + AhCl / 2\n e6F1 = ExCh ... | [
"0.78684765",
"0.7235508",
"0.70554864",
"0.6891744",
"0.68100065",
"0.67996055",
"0.67608696",
"0.674113",
"0.6712437",
"0.669581",
"0.6690841",
"0.66621935",
"0.6628238",
"0.660575",
"0.6562078",
"0.6429045",
"0.6419894",
"0.63914806",
"0.63908166",
"0.6368579",
"0.63331634... | 0.74696314 | 1 |
Computes softmax for a vector x, with temperature T | def N93T(WKvO, Kt_s=1):
jbXL = oyIN.exp(WKvO) / Kt_s
return jbXL / (jbXL.sum() / Kt_s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return Kt_s.nnet.softmax(WKvO.T)",
"def N93T(YKHO, WKvO, Kt_s):\n xzMv = oyIN.exp(WKvO / Kt_s) / oyIN.sum(oyIN.exp(WKvO / Kt_s), axis=0)\n return xzMv",
"def N93T(WKvO, ycBG=1.0):\n return oyIN.exp(WKvO / ycBG) / oyIN.sum(oyIN.exp(WKvO / ycBG), axis=0)",
"def N93T(WKvO, ovGo):\n... | [
"0.86630195",
"0.8601085",
"0.8423412",
"0.8352485",
"0.8273746",
"0.82106435",
"0.8209452",
"0.82048005",
"0.8189353",
"0.8180577",
"0.81620497",
"0.81495476",
"0.8146681",
"0.8142709",
"0.81381214",
"0.8136186",
"0.8127637",
"0.81219625",
"0.81174594",
"0.81043833",
"0.8095... | 0.86810803 | 0 |
Function to take in one hot encoded input, the previous hidden state and previous cell state | def RHoK(YKHO, CK9p, i4mZ, XwUW):
KtK9 = oyIN.vstack([CK9p, i4mZ])
YRbF = m1Hg(oyIN.matmul(YKHO.Wi, KtK9))
eHNT = m1Hg(oyIN.matmul(YKHO.Wf, KtK9))
FQNo = oyIN.tanh(oyIN.matmul(YKHO.Wc, KtK9))
Z9rn = eHNT * XwUW + YRbF * FQNo
z1Rg = m1Hg(oyIN.matmul(YKHO.Wo, KtK9))
MKlR = z1Rg * oyIN.tanh(Z9r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(g4y1, jTqs):\n pass",
"def KVH6(YKHO, input, NPD_):\n fUYa, ObL9, bEXe, hnFq = ({}, {}, {}, {})\n ObL9[-1] = oyIN.copy(NPD_)\n for a1PO in range(len(input)):\n fUYa[a1PO] = vzTG(YKHO.input_size, input[a1PO])\n ObL9[a1PO] = YKHO.activation_fn(oyIN.dot(YKHO.Wxh, fUYa[a1PO]) + oyI... | [
"0.6843942",
"0.6750026",
"0.66091055",
"0.66091055",
"0.65964895",
"0.65659744",
"0.646976",
"0.6452528",
"0.64439666",
"0.6438154",
"0.63062316",
"0.6277999",
"0.6263949",
"0.623322",
"0.62308264",
"0.62294495",
"0.62224174",
"0.61975366",
"0.6196079",
"0.61877996",
"0.6158... | 0.6938396 | 0 |
Return True if number is even else False. | def WOgS(FGW3):
return bool(FGW3 % 2 == 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubP8(FGW3):\n if FGW3 % 2 == 0:\n return True\n return False",
"def BnE9(FGW3):\n if FGW3 % 2 == 0:\n return True\n else:\n return False",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == ... | [
"0.90302384",
"0.9029192",
"0.8967577",
"0.8958843",
"0.8877779",
"0.8877779",
"0.8877779",
"0.8877779",
"0.88768214",
"0.88176334",
"0.88176334",
"0.86627",
"0.86440206",
"0.8630038",
"0.8625561",
"0.8621198",
"0.8599016",
"0.85973346",
"0.8584453",
"0.85769814",
"0.85322994... | 0.9168496 | 0 |
Calculate activation probability of u in inarborescence of v. | def DYlP(P6bq, Ojg1, o4sw, V6IE):
if P6bq in o4sw:
return 1
elif not Ojg1.in_edges(P6bq):
return 0
else:
QRFO = 1
for tTpl in Ojg1.in_edges(P6bq):
yzQ0 = tTpl[0]
F9iL = DYlP(yzQ0, Ojg1, o4sw, V6IE)
QRFO *= 1 - F9iL * float(V6IE.loc[tTpl])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mot6(YKHO, P6bq, Ty9i):\n q7In = YKHO.par['theta']\n return (P6bq ** (-q7In) + Ty9i ** (-q7In) - 1) ** (-1 / q7In - 1) * P6bq ** (-q7In - 1)",
"def Mhbj(YKHO, Ty9i, yvT9=None):\n return ht2j.matmul(Ty9i, YKHO.weights_U.data.t(), out=yvT9).add_(YKHO.aux_bias.data).sigmoid_().clamp_(min=0, max=1)",
... | [
"0.72502464",
"0.6877359",
"0.66762495",
"0.6669603",
"0.6416875",
"0.64132196",
"0.6339319",
"0.6305867",
"0.62949926",
"0.62755156",
"0.62404597",
"0.6214337",
"0.6208771",
"0.61657095",
"0.6165344",
"0.6155385",
"0.6149347",
"0.6131022",
"0.6128791",
"0.6110826",
"0.610800... | 0.6162821 | 15 |
Total number of labels. | def VJ23(YKHO):
return len(YKHO._landmark_groups) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yMkk(YKHO):\n return len(YKHO._labels)",
"def svPB(YKHO):\n return len(YKHO._labels)",
"def U9dU(YKHO):\n return len(YKHO.labels)",
"def svPB(YKHO):\n return len(YKHO.get_labels())",
"def svPB(YKHO):\n return len(YKHO.get_labels())",
"def OR2u(YKHO):\n return len(YKHO.labels)",
"d... | [
"0.86367303",
"0.85474396",
"0.8525519",
"0.85230887",
"0.85230887",
"0.85118264",
"0.82403535",
"0.8163914",
"0.814999",
"0.80424863",
"0.80003387",
"0.7957022",
"0.7957022",
"0.7957022",
"0.7883622",
"0.78786296",
"0.78786296",
"0.78786296",
"0.78786296",
"0.78786296",
"0.7... | 0.0 | -1 |
The list of labels that belong to this group. | def Crrw(YKHO):
return YKHO._labels_to_masks.keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x(YKHO):\n return YKHO.label_list",
"def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels",
"def Crrw():\n return list(uzmd)",
"def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n Crrw.append(UXqs.name)\n return Crrw",
"def Crrw(YKHO):\n return YKHO._labels",
... | [
"0.88328344",
"0.88309985",
"0.8780722",
"0.86680174",
"0.86333644",
"0.861567",
"0.861567",
"0.861567",
"0.861567",
"0.861567",
"0.8580349",
"0.85648507",
"0.85498023",
"0.8501673",
"0.8467868",
"0.8467868",
"0.8446072",
"0.8410692",
"0.84009945",
"0.8392343",
"0.83797014",
... | 0.0 | -1 |
Number of labels in the group. | def OR2u(YKHO):
return len(YKHO.labels) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U9dU(YKHO):\n return len(YKHO.labels)",
"def svPB(YKHO):\n return len(YKHO.get_labels())",
"def svPB(YKHO):\n return len(YKHO.get_labels())",
"def yMkk(YKHO):\n return len(YKHO._labels)",
"def svPB(YKHO):\n return len(YKHO._labels)",
"def OR2u(YKHO):\n return YKHO._n_labels",
"def... | [
"0.8379878",
"0.83352345",
"0.83352345",
"0.83107287",
"0.82869756",
"0.8194387",
"0.8112429",
"0.79605055",
"0.78308684",
"0.77450305",
"0.771093",
"0.769828",
"0.76725924",
"0.76725924",
"0.76725924",
"0.7634584",
"0.7606221",
"0.75881815",
"0.7555246",
"0.7541279",
"0.7537... | 0.840003 | 0 |
The pointcloud representing all the landmarks in the group. | def W6t4(YKHO):
return YKHO._pointcloud | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_VI(YKHO, U34r):\n CWXo = [None, None, None, None]\n for YaKs in U34r.findall('PointLandmarks'):\n yMJi = YaKs.find('Label').text\n bfSB = int(round((float(YaKs.find('X').text) - YKHO.x_shift) * YKHO.x_aspect_ratio))\n S5iB = int(round(float(YaKs.find('Y').text) * YKHO.y_aspect_rati... | [
"0.6690343",
"0.6636024",
"0.6334695",
"0.6278159",
"0.6256456",
"0.62425715",
"0.62350494",
"0.6225065",
"0.6181661",
"0.60485417",
"0.6019928",
"0.6009786",
"0.59503555",
"0.59470224",
"0.5934661",
"0.5888682",
"0.58875483",
"0.58852726",
"0.5880303",
"0.58795846",
"0.58793... | 0.673062 | 0 |
The total number of landmarks in the group. | def uFMr(YKHO):
return YKHO._pointcloud.n_points | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CMwR(YKHO):\n return YKHO.landmarks.n_groups",
"def VJ23(YKHO):\n return len(YKHO._landmark_groups)",
"def favc(YKHO):\n return YKHO._number_of_island",
"def szAg(YKHO):\n return len(YKHO.landmarks_frame)",
"def f0tD(YKHO):\n return len(YKHO.locations) + 1",
"def dOsB(rSDZ):\n retur... | [
"0.7598167",
"0.712787",
"0.67559123",
"0.6736379",
"0.6723628",
"0.6684654",
"0.6648898",
"0.65618724",
"0.6525449",
"0.6457829",
"0.6427898",
"0.64189696",
"0.6415901",
"0.6406622",
"0.64048064",
"0.6367703",
"0.6364712",
"0.62809914",
"0.62773395",
"0.6274671",
"0.6226931"... | 0.7659748 | 0 |
Returns a new landmark group that contains only the given labels. | def h0Uq(YKHO, Crrw=None):
if Crrw is None:
if YKHO.n_labels == 1:
Crrw = YKHO.labels
else:
raise ValueError('Cannot use None as there are {} labels'.format(YKHO.n_labels))
if isinstance(Crrw, str):
Crrw = [Crrw]
return YKHO._new_group_with_only_labels(Crrw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y2Sz(YKHO, Crrw):\n pJQW = set(Crrw).difference(YKHO.labels)\n if len(pJQW) > 0:\n raise ValueError('Labels {0} do not exist in the landmark group. Available labels are: {1}'.format(list(pJQW), YKHO.labels))\n o97k = [YKHO._labels_to_masks[vC9B] for vC9B in Crrw if vC9B in YKHO._labels_to_masks... | [
"0.89913625",
"0.72504896",
"0.6107659",
"0.59777147",
"0.5880919",
"0.57658136",
"0.57496315",
"0.565246",
"0.5642542",
"0.5524523",
"0.552123",
"0.5509616",
"0.54905826",
"0.54266435",
"0.54216385",
"0.54143786",
"0.5406026",
"0.53702414",
"0.5330888",
"0.53210145",
"0.5320... | 0.6906467 | 2 |
Returns a new landmark group that contains all labels EXCEPT the given label. | def YLuj(YKHO, Crrw):
if isinstance(Crrw, str):
Crrw = [Crrw]
Bor4 = list(set(YKHO.labels).difference(Crrw))
return YKHO._new_group_with_only_labels(Bor4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y2Sz(YKHO, Crrw):\n pJQW = set(Crrw).difference(YKHO.labels)\n if len(pJQW) > 0:\n raise ValueError('Labels {0} do not exist in the landmark group. Available labels are: {1}'.format(list(pJQW), YKHO.labels))\n o97k = [YKHO._labels_to_masks[vC9B] for vC9B in Crrw if vC9B in YKHO._labels_to_masks... | [
"0.7857045",
"0.6187352",
"0.60303485",
"0.5928276",
"0.5899276",
"0.57827616",
"0.5662328",
"0.56519943",
"0.55942285",
"0.5586439",
"0.55814606",
"0.5571068",
"0.553884",
"0.553331",
"0.54181755",
"0.5375369",
"0.53480303",
"0.5345989",
"0.53397703",
"0.530371",
"0.5291329"... | 0.7332704 | 1 |
Verify that every point in the pointcloud is associated with a label. If any one point is not covered by a label, then raise a ``ValueError``. | def jwKu(YKHO):
L4W0 = oyIN.sum(YKHO._labels_to_masks.values(), axis=0) == 0
if oyIN.any(L4W0):
raise ValueError('Every point in the landmark pointcloud must be labelled. Points {0} were unlabelled.'.format(oyIN.nonzero(L4W0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unhH(YKHO, Crrw):\n Crrw = oyIN.atleast_1d(Crrw)\n ZDK9 = set()\n or8S = oyIN.where(Crrw <= 0)[0]\n if or8S.size > 0:\n ZDK9.update(Crrw[or8S])\n ZDK9.update(oyIN.setdiff1d(Crrw, YKHO.labels))\n if ZDK9:\n if len(ZDK9) == 1:\n raise ValueError(f'label {ZDK9} is invali... | [
"0.73504394",
"0.70432925",
"0.6710164",
"0.66004825",
"0.6519904",
"0.6463101",
"0.64355147",
"0.626629",
"0.61493075",
"0.6131569",
"0.6125275",
"0.61049986",
"0.609209",
"0.60419136",
"0.60419136",
"0.59890956",
"0.5984579",
"0.598091",
"0.59396863",
"0.5920869",
"0.590460... | 0.74134773 | 0 |
Checks a file's extension against a hardcoded set of video file extensions. | def IJCa(KCHu: str, zkKa: Container[str]=e1A1) -> bool:
YBcr = Hy7s.path.splitext(KCHu)[1]
return YBcr.lower() in zkKa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVFM(Ux0P: str, CBZq: Tuple[str, ...]) -> bool:\n return Ux0P.lower().endswith(CBZq)",
"def KsSG(BWXx):\n YBcr = Hy7s.path.splitext(BWXx.name)[1]\n dE8B = ['.webm', '.mp4', '.mpeg']\n if not YBcr.lower() in dE8B:\n raise sUXu(u'Unsupported file extension.')",
"def EAEZ(YKHO, nUeQ, CBZq):... | [
"0.7597308",
"0.7594893",
"0.7570889",
"0.75594854",
"0.75417376",
"0.7511831",
"0.7511831",
"0.7511831",
"0.7511831",
"0.7511831",
"0.75113183",
"0.7429356",
"0.7409735",
"0.73853123",
"0.7384709",
"0.7372725",
"0.7359839",
"0.73550963",
"0.73458856",
"0.73289603",
"0.730867... | 0.77096075 | 0 |
If the form is invalid, rerender the context data with the datafilled form and errors. | def ee9W(YKHO, L03z):
return YKHO.render_to_response(YKHO.get_context_data()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))",
"def ee9W(YKHO, *qIxc, **B2fa):\n QpfX = YKHO.get_context_data()\n QpfX.update(B2fa)\n return YKHO.render_to_response(QpfX)",
"def ee9W(YKHO, L03z, ... | [
"0.7760131",
"0.7518236",
"0.75101167",
"0.7341097",
"0.7341097",
"0.7341097",
"0.7341097",
"0.7341097",
"0.7341097",
"0.7341097",
"0.73298675",
"0.73191684",
"0.7256174",
"0.724973",
"0.72405726",
"0.7179833",
"0.716858",
"0.71677047",
"0.71588653",
"0.71374583",
"0.709125",... | 0.7471122 | 3 |
String representation of the Touch Object. | def zAg0(YKHO):
ehDb = str(YKHO._actor)
nyyK = ''
if YKHO._success:
if YKHO._strength == 's':
nyyK = ' strong'
elif YKHO._strength == 'w':
nyyK = ' weak'
else:
nyyK = ' unsuccessful'
pan_ = '' if YKHO._target is None else ' to ' + str(YKHO._target)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return YKHO.otp_string",
"def zAg0(YKHO):\n return '<{}>'.format(str(YKHO._coords)[1:-1])",
"def zAg0(YKHO):\n vIwR = '[{}] ({}) {}/{} - {}/{}'.format(YKHO.__class__.__name__, YKHO.id, YKHO.x, YKHO.y, YKHO.width, YKHO.height)\n return vIwR",
"def zAg0(YKHO):\n tO9_ = str(YKHO... | [
"0.6671221",
"0.663418",
"0.65831256",
"0.6519077",
"0.65118563",
"0.64881253",
"0.6468762",
"0.6452665",
"0.64473623",
"0.6420184",
"0.6420184",
"0.64174235",
"0.64173234",
"0.6398542",
"0.6395486",
"0.6384169",
"0.63658917",
"0.63496375",
"0.63454384",
"0.63454384",
"0.6340... | 0.0 | -1 |
Decode the object from valid JSON. | def pktP(YKHO, KCHu):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(YEnM):\n return qQXR.loads(YEnM)",
"def x8I_(Emd4, BWXx):\n try:\n return qQXR.loads(BWXx)\n except (TypeError, ValueError):\n raise Ggb_",
"def x8I_(YKHO, zEKB):\n return qQXR.loads(zEKB)",
"def B333(nMY2):\n return S25Q.decode(nMY2)",
"def gF1e(YKHO, BWXx):\n retu... | [
"0.84661275",
"0.7803698",
"0.7604036",
"0.75545764",
"0.74830544",
"0.7299297",
"0.7232019",
"0.7215339",
"0.7210209",
"0.7161109",
"0.7148134",
"0.7127372",
"0.71011573",
"0.7019414",
"0.7005639",
"0.6904",
"0.68435764",
"0.6812142",
"0.681106",
"0.6808313",
"0.68075776",
... | 0.6261523 | 77 |
String representation of the Touch Object. | def zAg0(YKHO):
ehDb = str(YKHO._actor)
nyyK = ''
if YKHO._success:
if YKHO._strength == 's':
nyyK = ' strong'
elif YKHO._strength == 'w':
nyyK = ' weak'
else:
nyyK = ' unsuccessful'
pan_ = '' if YKHO._target is None else ' on ' + str(YKHO._target)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return YKHO.otp_string",
"def zAg0(YKHO):\n return '<{}>'.format(str(YKHO._coords)[1:-1])",
"def zAg0(YKHO):\n vIwR = '[{}] ({}) {}/{} - {}/{}'.format(YKHO.__class__.__name__, YKHO.id, YKHO.x, YKHO.y, YKHO.width, YKHO.height)\n return vIwR",
"def zAg0(YKHO):\n tO9_ = str(YKHO... | [
"0.6671221",
"0.663418",
"0.65831256",
"0.6519077",
"0.65118563",
"0.64881253",
"0.6468762",
"0.6452665",
"0.64473623",
"0.6420184",
"0.6420184",
"0.64174235",
"0.64173234",
"0.6398542",
"0.6395486",
"0.6384169",
"0.63658917",
"0.63496375",
"0.63454384",
"0.63454384",
"0.6340... | 0.0 | -1 |
Decode the object from valid JSON. | def pktP(YKHO, KCHu):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(YEnM):\n return qQXR.loads(YEnM)",
"def x8I_(Emd4, BWXx):\n try:\n return qQXR.loads(BWXx)\n except (TypeError, ValueError):\n raise Ggb_",
"def x8I_(YKHO, zEKB):\n return qQXR.loads(zEKB)",
"def B333(nMY2):\n return S25Q.decode(nMY2)",
"def gF1e(YKHO, BWXx):\n retu... | [
"0.84661275",
"0.7803698",
"0.7604036",
"0.75545764",
"0.74830544",
"0.7299297",
"0.7232019",
"0.7215339",
"0.7210209",
"0.7161109",
"0.7148134",
"0.7127372",
"0.71011573",
"0.7019414",
"0.7005639",
"0.6904",
"0.68435764",
"0.6812142",
"0.681106",
"0.6808313",
"0.68075776",
... | 0.6261523 | 78 |
String representation of the Set Object. | def zAg0(YKHO):
return super().__str__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n w6rL = ''\n if YKHO._length == 0:\n w6rL = 'set([])'\n else:\n w6rL = 'set(['\n for YRbF in range(YKHO._length):\n if YRbF != YKHO._length - 1:\n w6rL = w6rL + repr(YKHO._array[YRbF]) + ','\n else:\n w6rL = w6rL + r... | [
"0.84006125",
"0.8356937",
"0.8078648",
"0.8063678",
"0.7983912",
"0.79042614",
"0.77172744",
"0.76450014",
"0.7479465",
"0.74733484",
"0.74559057",
"0.7425677",
"0.73707676",
"0.7341078",
"0.72275007",
"0.7111529",
"0.7095097",
"0.7077851",
"0.70561814",
"0.7031871",
"0.7031... | 0.0 | -1 |
String representation of the Spike Object. | def zAg0(YKHO):
ehDb = str(YKHO._actor)
nyyK = ''
if YKHO._success:
if YKHO._strength == 's':
nyyK = ' strong'
elif YKHO._strength == 'w':
nyyK = ' weak'
else:
nyyK = ' unsuccessful'
pan_ = '' if YKHO._target is None else ' on ' + str(YKHO._target)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return CgYo.pformat(YKHO.getData())",
"def zAg0(YKHO):\n return CgYo.pformat(YKHO.getData())",
"def zAg0(YKHO):\n return CgYo.pformat(YKHO.getData())",
"def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())",
"def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())",
"def g... | [
"0.70712227",
"0.70712227",
"0.70712227",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867",
"0.70411867"... | 0.0 | -1 |
Decode the object from valid JSON. | def pktP(YKHO, KCHu):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(YEnM):\n return qQXR.loads(YEnM)",
"def x8I_(Emd4, BWXx):\n try:\n return qQXR.loads(BWXx)\n except (TypeError, ValueError):\n raise Ggb_",
"def x8I_(YKHO, zEKB):\n return qQXR.loads(zEKB)",
"def B333(nMY2):\n return S25Q.decode(nMY2)",
"def gF1e(YKHO, BWXx):\n retu... | [
"0.84661275",
"0.7803698",
"0.7604036",
"0.75545764",
"0.74830544",
"0.7299297",
"0.7232019",
"0.7215339",
"0.7210209",
"0.7161109",
"0.7148134",
"0.7127372",
"0.71011573",
"0.7019414",
"0.7005639",
"0.6904",
"0.68435764",
"0.6812142",
"0.681106",
"0.6808313",
"0.68075776",
... | 0.6261523 | 79 |
Return length of ActionList. | def szAg(YKHO):
return len(YKHO._actionlist) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rzpx(YKHO):\n return YKHO._expenses_register.get_length_of_performed_actions_list()",
"def uYQR(YKHO):\n return YKHO.env.get_action_dims()",
"def Pl4t(YKHO, XeOP):\n return YKHO.len_actions[XeOP]",
"def ph8c(YKHO):\n return YKHO._num_actions",
"def ph8c(YKHO):\n return YKHO._num_actions"... | [
"0.78805524",
"0.7538025",
"0.7485551",
"0.7472439",
"0.7472439",
"0.73341876",
"0.7330411",
"0.7330411",
"0.7330411",
"0.7327666",
"0.7306613",
"0.72825646",
"0.7278765",
"0.72485083",
"0.72425604",
"0.722436",
"0.71184915",
"0.7073812",
"0.7067453",
"0.7063617",
"0.7062822"... | 0.86302763 | 0 |
Test that all attributes are present after persistence upgrade. | def R0jU(tvup, kdXA, AZtL, Ux0P, TBXe):
def y5X2(Ux0P):
"""Save sensors to json file.
Only used for testing upgrade with missing attributes.
"""
with open(Ux0P, 'w', encoding='utf-8') as G6EG:
qQXR.dump(kdXA.sensors, G6EG, cls=km47)
G6EG.flush()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqVO(YKHO):\n pass",
"def PNy_(YKHO):\n YKHO.assertTrue(hasattr(YKHO.target, '_generate_chart'))\n YKHO.assertTrue(hasattr(YKHO.target, 'load_used_ids'))\n YKHO.assertTrue(hasattr(YKHO.target, 'remaining_ids'))",
"def ecNl(YKHO):\n YKHO.assertTrue(hasattr())",
"def lgGV(mTNe):\n Qg87.as... | [
"0.72945106",
"0.6900888",
"0.6871483",
"0.686138",
"0.68512774",
"0.6829172",
"0.68262106",
"0.6723339",
"0.67050725",
"0.66459256",
"0.66336",
"0.66125137",
"0.65830815",
"0.6555359",
"0.655467",
"0.6535256",
"0.6527741",
"0.65250266",
"0.649993",
"0.64823",
"0.6476569",
... | 0.0 | -1 |
The number of tags that can be assigned from this category to a single object at once. Can be one of `SINGLE` (object can only be assigned one tag in this category), to `MULTIPLE` (object can be assigned multiple tags in this category). Forces a new resource if changed. | def SF_z(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'cardinality') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MQrz(TZ9E):\n return TZ9E.taggit_taggeditem_items.all().count()",
"def Ssod(Piln):\n return C3ST.tagsSize(Piln)",
"def szAg(YKHO) -> int:\n return len(YKHO.resource_ids)",
"def zNig(YKHO):\n if YKHO._size is None:\n if type(YKHO.categoryList) is None:\n YKHO.categoryList = [... | [
"0.6156494",
"0.57782793",
"0.5632643",
"0.5580563",
"0.55220324",
"0.5518692",
"0.5506186",
"0.54878205",
"0.54478097",
"0.5432433",
"0.5427374",
"0.54087555",
"0.54070854",
"0.54070854",
"0.5406989",
"0.54067093",
"0.5401092",
"0.54001063",
"0.5396408",
"0.53872293",
"0.538... | 0.0 | -1 |
The number of tags that can be assigned from this category to a single object at once. Can be one of `SINGLE` (object can only be assigned one tag in this category), to `MULTIPLE` (object can be assigned multiple tags in this category). Forces a new resource if changed. | def SF_z(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'cardinality') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MQrz(TZ9E):\n return TZ9E.taggit_taggeditem_items.all().count()",
"def Ssod(Piln):\n return C3ST.tagsSize(Piln)",
"def szAg(YKHO) -> int:\n return len(YKHO.resource_ids)",
"def zNig(YKHO):\n if YKHO._size is None:\n if type(YKHO.categoryList) is None:\n YKHO.categoryList = [... | [
"0.61585444",
"0.5781196",
"0.56322736",
"0.55811477",
"0.5525366",
"0.55187696",
"0.55090946",
"0.5488266",
"0.54501367",
"0.54348606",
"0.54288507",
"0.54090506",
"0.54088104",
"0.5407262",
"0.54071146",
"0.54071146",
"0.5403174",
"0.5401558",
"0.5398797",
"0.5388941",
"0.5... | 0.0 | -1 |
The number of tags that can be assigned from this category to a single object at once. Can be one of `SINGLE` (object can only be assigned one tag in this category), to `MULTIPLE` (object can be assigned multiple tags in this category). Forces a new resource if changed. | def SF_z(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'cardinality') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MQrz(TZ9E):\n return TZ9E.taggit_taggeditem_items.all().count()",
"def Ssod(Piln):\n return C3ST.tagsSize(Piln)",
"def szAg(YKHO) -> int:\n return len(YKHO.resource_ids)",
"def zNig(YKHO):\n if YKHO._size is None:\n if type(YKHO.categoryList) is None:\n YKHO.categoryList = [... | [
"0.6156494",
"0.57782793",
"0.5632643",
"0.5580563",
"0.55220324",
"0.5518692",
"0.5506186",
"0.54878205",
"0.54478097",
"0.5432433",
"0.5427374",
"0.54087555",
"0.54070854",
"0.54070854",
"0.5406989",
"0.54067093",
"0.5401092",
"0.54001063",
"0.5396408",
"0.53872293",
"0.538... | 0.0 | -1 |
Returns True if the hand has n of a kind, False otherwise. | def JVXK(YKHO, exwG):
YKHO.rank_hist()
for wEf2 in YKHO.ranks.values():
if wEf2 == exwG:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XCWl(YKHO, exwG):\n YKHO.face_hist()\n for wEf2 in YKHO.faces.values():\n if wEf2 >= exwG:\n return True\n return False",
"def v9YP(RZ8t):\n hkxX = [dxhl.rank for dxhl in RZ8t]\n if FKZn(hkxX) == [1, 1, 3]:\n return True\n else:\n return False",
"def QzcB(R... | [
"0.73927814",
"0.71136576",
"0.70665663",
"0.7048368",
"0.7046749",
"0.69863695",
"0.6925191",
"0.6893227",
"0.6892028",
"0.6839983",
"0.6788359",
"0.6597323",
"0.6581738",
"0.6558346",
"0.6532132",
"0.6447669",
"0.6427896",
"0.63222533",
"0.6313647",
"0.6279794",
"0.62453973... | 0.7798162 | 0 |
Returns True if the hand has a flush, False otherwise. Note that this works correctly for hands with more than 5 cards. | def onGx(YKHO):
YKHO.suit_hist()
for wEf2 in YKHO.suits.values():
if wEf2 >= 5:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PN3e(RZ8t):\n return len(set((iCfd for fdMZ, iCfd in RZ8t))) == 1",
"def PN3e(RZ8t):\n SOXX = [dxhl.suit for dxhl in RZ8t]\n if len(set(SOXX)) == 1:\n return True\n else:\n return False",
"def PN3e(nv2B):\n for iCfd, lq8E in nv2B.suit_counts.items():\n if lq8E == 5:\n ... | [
"0.8570918",
"0.857007",
"0.84595746",
"0.82468146",
"0.8216704",
"0.8208986",
"0.82026243",
"0.8119519",
"0.79792196",
"0.791443",
"0.7878015",
"0.78165376",
"0.7815444",
"0.77726513",
"0.77379",
"0.77342814",
"0.7568741",
"0.75480586",
"0.7518573",
"0.75075006",
"0.7433075"... | 0.80579484 | 8 |
Returns True if the hand has four of a kind, False otherwise. | def VkrR(YKHO):
return YKHO.has_n_of_a_kind(4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QzcB(RZ8t):\n return p_Vp(hkxX(RZ8t)) == 4",
"def QzcB(RZ8t):\n for dxhl in RZ8t:\n if RZ8t.count(dxhl) is 4:\n return True",
"def Vc_W(RZ8t):\n hkxX = [dxhl.rank for dxhl in RZ8t]\n if FKZn(hkxX) == [1, 4]:\n return True\n else:\n return False",
"def r6fJ(Y... | [
"0.87274694",
"0.85468507",
"0.8413883",
"0.8212203",
"0.8126992",
"0.7944656",
"0.78071916",
"0.7446689",
"0.7307475",
"0.72804224",
"0.7264306",
"0.71776354",
"0.70617753",
"0.70420146",
"0.70118004",
"0.67908484",
"0.6762616",
"0.67443615",
"0.67383",
"0.6709046",
"0.66445... | 0.82334524 | 3 |
Returns True if the hand has five of a kind, False otherwise. | def CZQ1(YKHO):
return YKHO.has_n_of_a_kind(5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QzcB(RZ8t):\n return p_Vp(hkxX(RZ8t)) == 4",
"def QzcB(RZ8t):\n for dxhl in RZ8t:\n if RZ8t.count(dxhl) is 4:\n return True",
"def Vc_W(RZ8t):\n hkxX = [dxhl.rank for dxhl in RZ8t]\n if FKZn(hkxX) == [1, 4]:\n return True\n else:\n return False",
"def r6fJ(Y... | [
"0.7810389",
"0.7693618",
"0.76612836",
"0.7364949",
"0.70084065",
"0.6994328",
"0.6886962",
"0.6832154",
"0.6831902",
"0.68040615",
"0.67570424",
"0.66881603",
"0.66599876",
"0.6644538",
"0.6621764",
"0.65589714",
"0.6541784",
"0.64825857",
"0.6461212",
"0.64515084",
"0.6436... | 0.814703 | 0 |
Load saved model from file | def uyMl(uqvc=''):
print(f'[INFO]: Loading saved model...')
Zxma = ht2j.load(uqvc)
Zxma = Zxma.to('cuda:0')
Zxma.eval()
return Zxma | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(Ux0P):\n pass",
"def uyMl(YKHO, WJHQ):\n raise NotImplementedError",
"def uyMl(Ux0P):\n raise NotImplementedError()",
"def tyeH(YKHO, VqRE):\n YKHO.model = tyeH(VqRE)",
"def tyeH(YKHO, SkYi: Path) -> None:\n pass",
"def tyeH(YKHO):\n YKHO.model = wOed.load_from_file(Hy7s.path.j... | [
"0.871623",
"0.8501655",
"0.84555906",
"0.8421805",
"0.84164214",
"0.8379382",
"0.8341895",
"0.8323257",
"0.8317153",
"0.8317153",
"0.8317153",
"0.8271355",
"0.8247488",
"0.824394",
"0.8240672",
"0.82370913",
"0.817955",
"0.81242114",
"0.80931354",
"0.80846334",
"0.80823463",... | 0.0 | -1 |
Sets the status of the lamp on or off. | def w8Lw(jGRS):
jGRS = jGRS.lower()
if jGRS not in ('on', 'off'):
jGRS = 'off'
if jGRS == 'on':
K98B.set_status(True)
elif jGRS == 'off':
K98B.set_status(False)
return 'OK' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WLXy(YKHO, Z5ve='OFF'):\n try:\n PfbO = {'off': b'0', 'on': b'1'}[Z5ve.lower()]\n except KeyError:\n raise ValueError(\"Unknown lamp setting '%s'\" % Z5ve)\n S1Gn = b'LAMPS %s\\n' % PfbO\n YKHO.port.send_command(S1Gn, max_tries=YKHO.max_tries)\n RKD7.info(\"Lamp set to '%s'\", Z5ve... | [
"0.80672383",
"0.7551108",
"0.7329383",
"0.72125876",
"0.7061007",
"0.7003196",
"0.7000799",
"0.6989678",
"0.69421023",
"0.68956906",
"0.68736285",
"0.68527126",
"0.6842997",
"0.6805297",
"0.6744921",
"0.6728181",
"0.6725992",
"0.6683934",
"0.66674984",
"0.6660648",
"0.661693... | 0.6578535 | 25 |
Returns the current color. | def PICn():
return K98B.color.as_hex() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKFS(YKHO):\n return YKHO._current_color",
"def JWJh(YKHO):\n return YKHO.color.value",
"def mvpM(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO.color",
"def PICn(YKHO):\n return YKHO.color",
"def PICn(YKHO):\n qfpW = YKHO.c... | [
"0.92359847",
"0.91240877",
"0.8584038",
"0.8571865",
"0.85553074",
"0.85553074",
"0.8550213",
"0.85338646",
"0.85338646",
"0.85338646",
"0.85338646",
"0.84923023",
"0.8437126",
"0.8331832",
"0.8323385",
"0.8323385",
"0.8288237",
"0.82367676",
"0.82297343",
"0.8226574",
"0.82... | 0.7650087 | 68 |
Stop oscilloscope updates and deinitialize the player. | def JCyR(YKHO):
YKHO._thread.stop()
YKHO._stream.stop_stream()
YKHO._stream.close()
YKHO._audio.terminate()
YKHO.player.end()
YKHO.mod.release() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n bo34.debug('Stopping playback')\n YKHO.clock.stop()\n YKHO.status = uxJ6",
"def JCyR():\n global player\n oyg0.pause()\n oyg0 = None\n return None",
"def JCyR(Emd4):\n if jGRS['playing']:\n jGRS['object'] = None\n jGRS['playing'] = False",
"def JCyR(YKH... | [
"0.6852263",
"0.676677",
"0.67089784",
"0.6662969",
"0.66521347",
"0.6646698",
"0.6590436",
"0.6573608",
"0.65470564",
"0.65446776",
"0.6523629",
"0.65058863",
"0.6495927",
"0.64548737",
"0.64319867",
"0.642318",
"0.64192533",
"0.64179844",
"0.6390918",
"0.63835084",
"0.63691... | 0.0 | -1 |
Check that we get only orders which belong to the user. | def lGtS(YKHO):
YKHO.create_order(order_type=uwaB.ORDER_BUY, price='1', amount='1', status='init')
YKHO.create_order(order_type=uwaB.ORDER_BUY, price='1', amount='1', status='init')
YKHO.assertEqual(len(YKHO.get_orders_history()), 0)
YKHO.client.force_authenticate(YKHO.some_user)
YKHO.create_order(o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n4Xj(CBIr):\n return NrZU.Order.objects.filter(_complete=True, user=CBIr.id)",
"def awPf(CBIr):\n pass",
"def kF9I():\n d0Qf = 'dakobedbard@gmail.com'\n jTXt = '1!ZionTF'\n Ubla = v_zk(Lsgf, mBr6, d0Qf, jTXt)\n w6rE = '{}/orders'.format(Pluq)\n MOPg = {'Authorization': Ubla}\n h3GH ... | [
"0.76354235",
"0.72898173",
"0.6924359",
"0.68317014",
"0.6821256",
"0.6762453",
"0.65922564",
"0.6468211",
"0.645757",
"0.6417815",
"0.6388548",
"0.632994",
"0.6252187",
"0.623622",
"0.616294",
"0.61590934",
"0.6144227",
"0.61307657",
"0.61306065",
"0.61279905",
"0.61121815"... | 0.0 | -1 |
Check that we get only orders which belong to the user. | def oFzj(YKHO):
YKHO.create_order(order_type=uwaB.ORDER_BUY, price='1', amount='1', status='init')
YKHO.client.force_authenticate(YKHO.some_user)
YKHO.create_order(order_type=uwaB.ORDER_SELL, price='1', amount='1', status='completed')
YKHO.assertEqual(len(YKHO.get_publishments('history_btc_eth_sell')), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n4Xj(CBIr):\n return NrZU.Order.objects.filter(_complete=True, user=CBIr.id)",
"def awPf(CBIr):\n pass",
"def kF9I():\n d0Qf = 'dakobedbard@gmail.com'\n jTXt = '1!ZionTF'\n Ubla = v_zk(Lsgf, mBr6, d0Qf, jTXt)\n w6rE = '{}/orders'.format(Pluq)\n MOPg = {'Authorization': Ubla}\n h3GH ... | [
"0.76354235",
"0.72898173",
"0.6924359",
"0.68317014",
"0.6821256",
"0.6762453",
"0.65922564",
"0.6468211",
"0.645757",
"0.6417815",
"0.6388548",
"0.632994",
"0.6252187",
"0.623622",
"0.616294",
"0.61590934",
"0.6144227",
"0.61307657",
"0.61306065",
"0.61279905",
"0.61121815"... | 0.0 | -1 |
Ensuring the setup can add a bucket to test db. | def FCbF(YKHO):
bD7m = gxEw('read_all_buckets')
nPrm = {'name': 'bucket101'}
YKHO.client.post(bD7m, nPrm, format='json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M_MD(YKHO):\n YKHO.assertTrue(YKHO.bucket)",
"def LPUO():\n with saTs('test-client', testing=True) as x0hE:\n WLHQ = HYDW(x0hE, question_id='test.question')\n gSR0 = x0hE.get_buckets()\n assert any((WE7e == WLHQ for WE7e in gSR0))\n x0hE.delete_bucket(WLHQ)\n gSR0 = x... | [
"0.7975551",
"0.77573633",
"0.74557924",
"0.74230534",
"0.73883915",
"0.71685547",
"0.71390253",
"0.7067395",
"0.70541036",
"0.7052092",
"0.6938731",
"0.6908687",
"0.69006675",
"0.6866892",
"0.68616414",
"0.6854026",
"0.6828824",
"0.68188256",
"0.67591774",
"0.67089975",
"0.6... | 0.6655326 | 24 |
Update a contact and their donation in SF. This is done in the background because there are a lot of API calls and there's no point in making the payer wait for them. It sends a notification about the donation to Slack (if configured). | def PyxK(L03z=None, m3Nh=None, JX7w=None, iO9T=None, AYiO=None):
L03z = x0SS(L03z)
c9ua = L03z.get('first_name', '')
zp3f = L03z.get('last_name', '')
Gjtu = L03z.get('installment_period', P4t4.config['DEFAULT_FREQUENCY'])
D3lj = L03z.get('email', '')
UGle = L03z.get('billing_street', '')
j5s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UX9v(Mxk0=None, L03z=None, m3Nh=None, iO9T=None, myGV=None, AYiO=None):\n if L03z['installment_period'] is None:\n raise Exception('installment_period must have a value')\n pvHi = Y9Dz(contact=Mxk0)\n QUnf = L03z.get('recurring_id', '')\n if QUnf:\n try:\n W0jr = Y9Dz.list(... | [
"0.6233967",
"0.6162989",
"0.61519766",
"0.6092614",
"0.605299",
"0.6044653",
"0.59685785",
"0.5961689",
"0.5950884",
"0.5875105",
"0.5860289",
"0.5783303",
"0.578031",
"0.5774102",
"0.5707646",
"0.5641105",
"0.56377536",
"0.563618",
"0.5602808",
"0.55733275",
"0.5499416",
... | 0.72388226 | 0 |
This will add a single donation in Salesforce. | def Q345(Mxk0=None, L03z=None, m3Nh=None, iO9T=None, myGV=None, AYiO=None):
yo7_ = qcWV.now(tz=Tcmp).strftime('%Y-%m-%d')
XW_y = X6aq(contact=Mxk0)
G9jH.info('----Adding opportunity...')
c9ua = L03z.get('first_name', '')
zp3f = L03z.get('last_name', '')
XW_y.amount = L03z.get('amount', 0)
XW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VtQ7(mWFP, Z5kt):\n k6zn = dYlQ.create(amount=Z5kt, date=qcWV.date.today(), donor=mWFP)\n k6zn.save()",
"def VtQ7(YKHO, OOWi):\n try:\n with p9bx.transaction():\n k6zn = aH27.create(donor=UVaW.get(UVaW.full_name == YKHO.name), donation_amt=int(OOWi))\n k6zn.save()\n e... | [
"0.7653515",
"0.75829005",
"0.74548596",
"0.72681504",
"0.721521",
"0.7202361",
"0.71305376",
"0.71133256",
"0.7109278",
"0.7080115",
"0.7062066",
"0.7033374",
"0.69390005",
"0.69017583",
"0.68935233",
"0.6810274",
"0.67807263",
"0.6751115",
"0.6679487",
"0.6661613",
"0.66454... | 0.0 | -1 |
This will add a recurring donation in Salesforce. | def cE6p(Mxk0=None, L03z=None, m3Nh=None, iO9T=None, myGV=None, AYiO=None):
if L03z['installment_period'] is None:
raise Exception('installment_period must have a value')
pvHi = Y9Dz(contact=Mxk0)
G9jH.info('----Adding recurring donation...')
pvHi.amount = L03z.get('amount', 0)
pvHi.addition... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wmh4(YKHO, aNd9=None):\n pass",
"def fQOs(YKHO):\n return cXdz.objects.create(cart=YKHO.cart, name='Recurring', quantity=1, sku='42', duration=12, duration_unit='MONTH', recurring_price=ZjSO('20.00'), thankyou='Thank you')",
"def Wmh4(YKHO, aNd9):\n if any([Mkmy.is_expired(aNd9) and Mkmy.is_active... | [
"0.74780166",
"0.7231383",
"0.6866364",
"0.68018216",
"0.6795713",
"0.660698",
"0.6527872",
"0.64333653",
"0.6429877",
"0.6370092",
"0.62692237",
"0.6146986",
"0.6144267",
"0.6121982",
"0.6089988",
"0.6081121",
"0.60796094",
"0.6070696",
"0.60644656",
"0.60118365",
"0.6007724... | 0.7168289 | 2 |
Ensure it returns none if no relationships. | def wwx3(z_hH):
assert z_hH.nodes() == [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gA2u(YKHO):\n YKHO.assertIsSizedProperty(YKHO.pkg, 'relationships', 0)",
"def gA2u(YKHO):\n YKHO.assertIsSizedProperty(YKHO.part, 'relationships', 0)",
"def szAg(YKHO):\n return len(YKHO._relationships)",
"def GhER(YKHO, YEnM, BQDi):\n v3uw = oRi_(set)\n for mWFP, XObx in list(BQDi.error_d... | [
"0.68327415",
"0.67985725",
"0.635323",
"0.62707156",
"0.6269147",
"0.6258764",
"0.624892",
"0.6143301",
"0.6143301",
"0.60910064",
"0.5973578",
"0.59729075",
"0.59682614",
"0.595899",
"0.595899",
"0.5954737",
"0.59366846",
"0.5934621",
"0.5862839",
"0.5855835",
"0.5848114",
... | 0.61646944 | 7 |
Test that we get error if we try to change a property that DNE. | def FoTn(gh8_):
gh8_.add_node_props('Charlie', kidneys=1)
with trZe.raises(AttributeError):
gh8_.change_node_prop('Charlie', 'horn', 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FtvD(bD_4):\n MIEC(bD_4, XUA_)",
"def by9X(YKHO):\n YKHO.assertRaises(yXsM, setattr, YKHO.launchpad, 'me', dict(name=102))",
"def GPoV(YKHO):\n YKHO.assertRaises(yXsM, setattr, YKHO.launchpad, 'foo', 'bar')",
"def gSXO(YKHO):\n YKHO.launchpad.me = dict(name='foo')\n a70H = YKHO.launchpad.m... | [
"0.75915",
"0.7422348",
"0.738404",
"0.73364615",
"0.72687835",
"0.70988685",
"0.705989",
"0.7043904",
"0.70218074",
"0.6897708",
"0.6892347",
"0.6886097",
"0.6872573",
"0.68672043",
"0.6866159",
"0.68580455",
"0.6711337",
"0.6646254",
"0.6614344",
"0.6595582",
"0.65749615",
... | 0.7328965 | 4 |
Ensure we can add relationships between existent and nonexistent. | def RiQe(z_hH):
z_hH.add_node('Kurt')
with trZe.raises(KeyError):
z_hH.add_relationship('durka', 'Kurt', 'Bill') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ean9(z_hH):\n z_hH.add_node('Charlie')\n z_hH.add_node('Unicorn')\n z_hH.add_relationship('buddies', 'Charlie', 'Unicorn')\n with trZe.raises(ValueError):\n z_hH.add_relationship('buddies', 'Charlie', 'Unicorn')",
"def FJJt(z_hH):\n z_hH.add_node('Charlie')\n z_hH.add_node('Unicorn')... | [
"0.7627571",
"0.7402755",
"0.72683394",
"0.70944333",
"0.69826776",
"0.6977202",
"0.6808636",
"0.67222244",
"0.6603208",
"0.65726745",
"0.65603274",
"0.6501715",
"0.64935243",
"0.6479364",
"0.6442035",
"0.64337254",
"0.63853765",
"0.6370539",
"0.6342223",
"0.63312405",
"0.631... | 0.66838795 | 8 |
Ensure we successfully add rels b/w nodes. | def WEgN(z_hH):
z_hH.add_node('Charlie')
z_hH.add_node('Unicorn')
z_hH.add_node('Pegasus')
z_hH.add_relationship('buddies', 'Charlie', 'Unicorn', both_ways=True)
z_hH.add_relationship('buddies', 'Charlie', 'Pegasus')
assert z_hH._graph['Charlie']['Pegasus'][0] == z_hH._relationships['buddies']['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NmZS(z_hH):\n z_hH.add_node('Kurt')\n z_hH.add_node('Meliss')\n z_hH.add_relationship('rel', 'Kurt', 'Meliss')\n assert z_hH.unique_relationships() == ['rel']",
"def ean9(z_hH):\n z_hH.add_node('Charlie')\n z_hH.add_node('Unicorn')\n z_hH.add_relationship('buddies', 'Charlie', 'Unicorn')... | [
"0.7020171",
"0.67752665",
"0.6407123",
"0.6379542",
"0.6237257",
"0.61081487",
"0.6088319",
"0.602666",
"0.5928552",
"0.5908381",
"0.58482134",
"0.57826287",
"0.5763778",
"0.573514",
"0.5702728",
"0.5642764",
"0.56207454",
"0.5617114",
"0.5603243",
"0.5582578",
"0.5554736",
... | 0.56975484 | 15 |
Ensure relationships can be removed. | def O0WA(gh8_):
gh8_.remove_relationship('cousins', 'Charlie', 'Unicorn')
assert gh8_._graph['Charlie']['Unicorn'] == ['buddies'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def arvZ(NZQz, tvqc):\n if getattr(tvqc.object, '_operation', -1) < 1:\n if not (isinstance(NZQz, gTRV) and NZQz.remoteTypeName() == 'ToManyCont'):\n NZQz._remoteRemove()",
"def qhBi(YKHO, KQdn):\n for koMu in KQdn:\n KEx6 = None\n if 'id' in koMu:\n KEx6 = koMu['... | [
"0.73874074",
"0.69092524",
"0.6833662",
"0.6715498",
"0.6671966",
"0.663354",
"0.6610991",
"0.6592776",
"0.65842354",
"0.65255904",
"0.64798117",
"0.6463",
"0.644027",
"0.6430745",
"0.6330872",
"0.625412",
"0.62218124",
"0.6135139",
"0.6133905",
"0.6127237",
"0.61091083",
... | 0.65524113 | 9 |
Test that we get error if we try to change a property that DNE. | def AHsn(gh8_):
gh8_.add_rel_props('buddies', 'Charlie', 'Unicorn', since=1985)
with trZe.raises(AttributeError):
gh8_.change_rel_prop('buddies', 'Charlie', 'Unicorn', 'butt', 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FtvD(bD_4):\n MIEC(bD_4, XUA_)",
"def by9X(YKHO):\n YKHO.assertRaises(yXsM, setattr, YKHO.launchpad, 'me', dict(name=102))",
"def GPoV(YKHO):\n YKHO.assertRaises(yXsM, setattr, YKHO.launchpad, 'foo', 'bar')",
"def gSXO(YKHO):\n YKHO.launchpad.me = dict(name='foo')\n a70H = YKHO.launchpad.m... | [
"0.75917804",
"0.74228257",
"0.7383984",
"0.7336963",
"0.7329138",
"0.7268521",
"0.7097975",
"0.70597994",
"0.70434904",
"0.7022629",
"0.68981934",
"0.6893666",
"0.6886612",
"0.686692",
"0.6866583",
"0.685813",
"0.6712361",
"0.66473943",
"0.661488",
"0.6596152",
"0.6574632",
... | 0.68729895 | 13 |
Test that we get an error when trying to add a rel b/w node and self. | def pcz4(gh8_):
with trZe.raises(ValueError):
gh8_.add_relationship('buddies', 'Charlie', 'Charlie') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ean9(z_hH):\n z_hH.add_node('Charlie')\n z_hH.add_node('Unicorn')\n z_hH.add_relationship('buddies', 'Charlie', 'Unicorn')\n with trZe.raises(ValueError):\n z_hH.add_relationship('buddies', 'Charlie', 'Unicorn')",
"def B8bY(z_hH):\n z_hH.add_node('Billy')\n with trZe.raises(KeyError)... | [
"0.8032294",
"0.7768248",
"0.7642026",
"0.7562588",
"0.70995045",
"0.70993185",
"0.7066742",
"0.70424825",
"0.6984457",
"0.6904695",
"0.6828347",
"0.66265506",
"0.66028756",
"0.65954787",
"0.6552553",
"0.65408504",
"0.6537771",
"0.6534249",
"0.6452208",
"0.6403295",
"0.637090... | 0.78134066 | 1 |
Ensure returns correct relationships. | def BmBb(gh8_):
gh8_.add_relationship('guys', 'Charlie', 'Pegasus')
assert gh8_.get_relationships('Charlie', 'Pegasus') == gh8_._graph['Charlie']['Pegasus'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LK5v(YKHO):\n pass",
"def nVwh():\n with trZe.raises(ValueError) as aOtT:\n pbyz(link=object()).marshal_relations()\n assert aOtT.value.args[0] == \"Failed to get link's relations\", 'Wrong error'",
"def S_9F(YKHO):\n ssoL = (yield x7zj.create(name='test relationship'))\n Qovt = YKHO.... | [
"0.6931682",
"0.6682845",
"0.6662595",
"0.6625603",
"0.6472545",
"0.6452393",
"0.64478564",
"0.6441598",
"0.6427951",
"0.64169395",
"0.6384691",
"0.63473773",
"0.6322678",
"0.6314325",
"0.6313772",
"0.6293497",
"0.62820363",
"0.6265884",
"0.6264426",
"0.6238064",
"0.6235029",... | 0.67153084 | 1 |
Ensure returns given relationship. | def lht6(gh8_):
assert gh8_.has_relationship('Charlie', 'Unicorn', 'buddies', both_ways=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zr95(YKHO):\n return YKHO.relationship",
"def YiQj():\n G_if = LvkQ.ManyToOneRelationshipPropertyArtifacts(type=SnBA.PropertyType.RELATIONSHIP, schema={'key': 'value'}, required=False, description=None, sub_type=SnBA.RelationshipType.MANY_TO_ONE, parent='Parent', backref_property=None, kwargs=None, wri... | [
"0.69104904",
"0.6608062",
"0.6572989",
"0.65223694",
"0.64077514",
"0.6395887",
"0.63696957",
"0.6243524",
"0.623866",
"0.62187797",
"0.61671495",
"0.6147586",
"0.6084843",
"0.60519546",
"0.6049366",
"0.6032616",
"0.5961774",
"0.59438074",
"0.5924232",
"0.5901553",
"0.587619... | 0.6356873 | 7 |
>>> num_odd_digits(1234567) 2 >>> num_odd_digits(2468) 0 >>> num_odd_digits(1357) 4 >>> num_odd_digits(1) 1 >>> num_odd_digits(31) 2 | def J7D4(exwG):
UHFx = 0
while exwG:
if exwG % 2 != 0:
UHFx = UHFx + 1
exwG = exwG / 10
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HdVs(exwG):\n if exwG < 10:\n if exwG % 2 == 1:\n return 0\n return exwG\n if exwG % 10 % 2 == 1:\n return 0 + 10 * HdVs(exwG // 10)\n return exwG % 10 + 10 * HdVs(exwG // 10)",
"def QyOr(exwG):\n xYvp = list(str(exwG))\n UHFx = 0\n for mLGw in xYvp:\n ... | [
"0.7425671",
"0.69152683",
"0.6891807",
"0.68726933",
"0.6865567",
"0.6827875",
"0.68253666",
"0.6806133",
"0.6737966",
"0.6701207",
"0.65751326",
"0.65602213",
"0.6515465",
"0.65012884",
"0.64420253",
"0.63685185",
"0.63467675",
"0.63459027",
"0.63221437",
"0.630749",
"0.629... | 0.8136943 | 0 |
compute basename of filename. Replaces all nonwhitelisted characters. The returned filename is always a basename of the file. | def WOHH(Ux0P, m1Oc='_', BcCR=200):
iGvk = Hy7s.path.basename(Ux0P).strip()
aXrl = ZbWC.sub('[^\\w\\.\\- ]', m1Oc, iGvk)
while '..' in aXrl:
aXrl = aXrl.replace('..', '.')
while ' ' in aXrl:
aXrl = aXrl.replace(' ', ' ')
if not len(Ux0P):
aXrl = 'NONAME'
if BcCR:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ux0P(BWXx):\n return ZbWC.sub('[^a-zA-Z0-9.-_ ]', '', Hy7s.path.basename(h5D7.trim(BWXx)))",
"def v_Ac(Ux0P):\n jbXL = Ux0P\n jbXL = jbXL[:jbXL.rfind('.')]\n return noa5(jbXL, '\\\\/')",
"def aPr_(Ux0P):\n aPr_ = '_'.join(Ux0P.split('_')[1:])\n return aPr_",
"def qrN6(BWXx):\n BWXx =... | [
"0.7395858",
"0.736912",
"0.72256136",
"0.7214444",
"0.71670014",
"0.7111466",
"0.7089665",
"0.70361537",
"0.7032883",
"0.70025176",
"0.6999414",
"0.6981407",
"0.69371384",
"0.6883599",
"0.6871625",
"0.6870678",
"0.68663317",
"0.68322074",
"0.68275225",
"0.6826346",
"0.681697... | 0.6594016 | 44 |
Sets the b of this Pixel. | def Fg_i(YKHO, Fg_i):
if Fg_i is None:
raise ValueError('Invalid value for `b`, must not be `None`')
YKHO._b = Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fg_i(YKHO, Fg_i):\n YKHO._b = Fg_i",
"def t3Zq(YKHO, WKvO):\n print(type(YKHO))\n YKHO.b = WKvO",
"def tjUW(YKHO, BWXx):\n YKHO.__Image_B = BWXx",
"def WfYk(YKHO, WfYk):\n YKHO._bsb = WfYk",
"def oug5(YKHO, Fg_i):\n YKHO.array(YKHO.load().float().array() + Fg_i)\n return YKHO.color... | [
"0.75849605",
"0.7535967",
"0.74394286",
"0.6760017",
"0.66165334",
"0.66165334",
"0.66017205",
"0.65504134",
"0.6522713",
"0.6463015",
"0.64518297",
"0.6400705",
"0.629186",
"0.627238",
"0.627238",
"0.627238",
"0.627238",
"0.62525463",
"0.6236422",
"0.6236422",
"0.6236422",
... | 0.7823229 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(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 |
This function acts as a range() like operation for datetime objects. The function returns a set of datetime objects from provided start date to the present including only the 15th and last day of the month. This function returns weekdays only, and will search for the previous or next weekday depending on early_weekday ... | def kCcj(wOXW):
kepv = qcWV.strptime(wOXW, '%m-%d-%Y').date()
KhBf = qcWV.date(qcWV.now())
aDD1 = (kepv.year, kepv.month)
HBn6 = (KhBf.year, KhBf.month)
w4Sv = set()
v48e = [(lO87, x0eS) for lO87 in range(kepv.year, KhBf.year + 1) for x0eS in range(1, 13) if (lO87, x0eS) >= aDD1 and (lO87, x0eS)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SyGK(kepv: datetime, KhBf: datetime) -> bdIy[qcWV]:\n qwLO = 5\n return [Csk6.datetime for Csk6 in LgWF.Arrow.range('day', kepv, KhBf) if Csk6.weekday() < qwLO]",
"def zpIh(YKHO):\n _c1T = YKHO.date\n yKcO = YKHO.get_start_date_of_process(True)\n LVAh = _c1T.year\n x0eS = _c1T.month\n lO... | [
"0.6879321",
"0.6826174",
"0.6595762",
"0.651924",
"0.6499082",
"0.6476792",
"0.6467322",
"0.644957",
"0.644226",
"0.6354609",
"0.6322696",
"0.6321198",
"0.63033587",
"0.6273274",
"0.6254633",
"0.62534344",
"0.62534344",
"0.6251945",
"0.62489",
"0.6243371",
"0.6243328",
"0.... | 0.685388 | 1 |
Computes v1 + v2 | def FOdN(YKHO, Elif: Vector) -> lNLu:
return lNLu(YKHO[0] + Elif[0], YKHO[1] + Elif[1], YKHO[2] + Elif[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBcq(hQHm=(0, 0, 0), jlSq=(1, 1, 1)):\n return (jlSq[0] + hQHm[0], jlSq[1] + hQHm[1], jlSq[2] + hQHm[2])",
"def H2v5(hQHm, jlSq):\n Aofo = hQHm + jlSq\n return Aofo",
"def KfxW(hQHm, jlSq):\n return hQHm + jlSq",
"def ofN_(hQHm, jlSq):\n return kg56.vadd(hQHm, jlSq)",
"def RtnC(hQHm, jlS... | [
"0.8271611",
"0.82375777",
"0.80182254",
"0.7886659",
"0.78791654",
"0.7640117",
"0.7501286",
"0.7380625",
"0.7322931",
"0.73136604",
"0.72738284",
"0.72569156",
"0.7236834",
"0.7170516",
"0.7131238",
"0.71285105",
"0.7103597",
"0.70835143",
"0.708243",
"0.7080118",
"0.706084... | 0.7083415 | 18 |
Length of a 3D vector. | def szAg(YKHO):
return PZyS(YKHO.__mul__(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMD5(YKHO):\n return xnhW.itkVectorImageD3_GetVectorLength(YKHO)",
"def yrsG(hNv9: int) -> float:\n pass",
"def fMD5(YKHO):\n return xnhW.itkVectorImageUL3_GetVectorLength(YKHO)",
"def fMD5(YKHO):\n return xnhW.itkVectorImageUC3_GetVectorLength(YKHO)",
"def fMD5(YKHO):\n return xnhW.itkV... | [
"0.81260586",
"0.80210006",
"0.789939",
"0.78817064",
"0.7872541",
"0.7805699",
"0.7786065",
"0.77800184",
"0.776434",
"0.776249",
"0.773376",
"0.7680131",
"0.7619676",
"0.761466",
"0.75784683",
"0.75275874",
"0.7511267",
"0.7457214",
"0.74484426",
"0.7444508",
"0.7444508",
... | 0.0 | -1 |
Add a value to the rolling average, discarding the previous entry if the buffer size is exceeded | def JPHp(YKHO, WKvO: float) -> None:
if len(YKHO.queue) >= YKHO.n:
LQyd = YKHO.queue.popleft()
YKHO.tot_sum -= LQyd
YKHO.queue.append(WKvO)
YKHO.tot_sum += WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCKv(gdeS, Qj8D, CCcy=10):\n BEhj = oyIN.sum(gdeS[-(CCcy - 1):]) + Qj8D\n BEhj = BEhj / (len(gdeS[-(CCcy - 1):]) + 1)\n return BEhj",
"def BmNQ(WKvO, XfQO):\n kNbz = oyIN.convolve(oyIN.ones((XfQO,)) / XfQO, WKvO, mode='valid')\n njdo = len(WKvO) - len(kNbz)\n kNbz = oyIN.concatenate((oyIN.c... | [
"0.68640375",
"0.6653389",
"0.66437525",
"0.6627598",
"0.6626175",
"0.6624284",
"0.6618586",
"0.6581835",
"0.6540799",
"0.6540799",
"0.6540799",
"0.6540799",
"0.6535657",
"0.6517798",
"0.65076125",
"0.64944834",
"0.6471879",
"0.642523",
"0.6418565",
"0.6418235",
"0.6416319",
... | 0.0 | -1 |
Fit matcher to a list of company names. | def WgYu(YKHO, l42j):
return YKHO.vectoriser.fit(l42j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bjht(SF7z):\n Q8Py = [exwG.strip().lower() for exwG in SF7z]\n eb88 = SF7z[0].strip().lower()\n for YRbF, RyEu in enumerate(Q8Py):\n P9x0 = []\n for r845, r6M0 in enumerate(Q8Py):\n if IYPf.ratio(eb88, r6M0.strip().lower()) > 75:\n P9x0.append(r845)\n SF7... | [
"0.6508661",
"0.5782904",
"0.5647105",
"0.5579705",
"0.55727476",
"0.55522746",
"0.5474416",
"0.544134",
"0.536559",
"0.5289617",
"0.52652895",
"0.5231801",
"0.5188297",
"0.5181898",
"0.5172933",
"0.5158104",
"0.5152713",
"0.5146419",
"0.5124873",
"0.51169956",
"0.5097014",
... | 0.7180237 | 0 |
Division of vector by a scalar | def hFiK(jzdc, hAEw):
return [jzdc[0] / hAEw, jzdc[1] / hAEw, jzdc[2] / hAEw] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VDTB(Ty9i):\n return Ty9i / i1gc(Ty9i)",
"def dShr(YKHO, eHNT, Ty9i):\n return YKHO.multiply(eHNT, YKHO.inverse(Ty9i))",
"def dShr(YKHO, hAEw):\n if hAEw == 0.0:\n raise ZeroDivisionError('attempted to divide vector by 0!')\n return YKHO.__class__(*(Z9rn.item() for Z9rn in XTiz.divide(YK... | [
"0.7400069",
"0.73324716",
"0.7262538",
"0.7194864",
"0.7190912",
"0.71865946",
"0.7162479",
"0.71476996",
"0.71155024",
"0.707744",
"0.706722",
"0.7032534",
"0.7027944",
"0.7006275",
"0.6980064",
"0.69711155",
"0.6970789",
"0.69447315",
"0.69368887",
"0.691729",
"0.69158393"... | 0.69870234 | 14 |
Loading the pretrained model and parameters. | def uyMl(gVJR, BVu8, PdIf, JJIg, I1mm):
ZylS.reset_default_graph()
with gVJR.as_default():
with gVJR.graph.as_default():
print('--------------------------------------validation_model--------------------------')
kcCy = 'AE1/model/'
jkyf = ZylS.train.import_meta_graph(k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y4QU(YKHO):\n pass",
"def DZeY():\n C3ST = YrZb()\n C3ST = x2M3(C3ST)\n return C3ST",
"def O5RJ(YKHO, aPKO):\n pass",
"def tyeH(YKHO):\n YKHO.__extended_load()\n YKHO.__standard_load()\n YKHO.__load_dataset()\n YKHO.__load_future_data()\n YKHO.__apply_account_filter()\n Y... | [
"0.8110828",
"0.77596325",
"0.75941163",
"0.75388646",
"0.7526391",
"0.7502862",
"0.74829274",
"0.74671715",
"0.74294007",
"0.7426364",
"0.7426364",
"0.741812",
"0.7402588",
"0.7377253",
"0.7368068",
"0.73454636",
"0.73269683",
"0.7326478",
"0.73174834",
"0.7307361",
"0.72999... | 0.0 | -1 |
Initializes board with 10 x 10 dimensions | def FIMM(YKHO, VCZs, I4V9, qO61, UV3U, n3PL, rdlD, fvDH):
YKHO.__getsEvent = False
YKHO.__agentX = 0
YKHO.__agentY = 0
YKHO.__agentdir = 0
YKHO.__eventqueue = []
YKHO.__buf_dis = n3PL
YKHO.__dur_dis = UV3U
YKHO.__colDimension = fvDH
YKHO.__rowDimension = rdlD
YKHO.__time = qO61
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO = YKHO.row_start(rdlD)\n YKHO.board[yKcO:yKcO + YKHO.size] = KAvf\n YKHO.board[44], YKHO.board[55] = (eJVO, eJVO)\n YKHO.board[45], YKHO.board[54] = (XDQs, XDQs)"... | [
"0.81988686",
"0.81850344",
"0.80488217",
"0.7868802",
"0.78349346",
"0.7743479",
"0.7739734",
"0.75956184",
"0.75327843",
"0.7528536",
"0.7521155",
"0.75094485",
"0.75070626",
"0.7507047",
"0.7502398",
"0.7471977",
"0.74481",
"0.74360603",
"0.74281514",
"0.7402347",
"0.73183... | 0.0 | -1 |
Verify the default axis labels when normalized and with errors. | def zvcq(YKHO):
aNZO = YKHO._plot(normalize=True, sigma=3)
YKHO._checkAxisLabels(aNZO, YKHO.DEFAULT_XLABEL, 'Sensitivity per unit lethargy $\\pm3\\sigma$') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3VZ():\n assert Sr2h.axes[0].label is None\n assert Sr2h.axes[1].label is None",
"def cPfJ(YKHO):\n if YKHO.X_labels is not None:\n assert YKHO.X is not None\n assert YKHO.view_converter is None\n assert YKHO.X.ndim <= 2\n if YKHO.load_all:\n assert oyIN.all(Y... | [
"0.78076667",
"0.7066376",
"0.7041792",
"0.67032737",
"0.6563118",
"0.64455336",
"0.636836",
"0.6316312",
"0.6316007",
"0.61676925",
"0.61510026",
"0.6120622",
"0.6101465",
"0.6031971",
"0.6006516",
"0.5972772",
"0.597208",
"0.59643483",
"0.59312344",
"0.5877731",
"0.5831728"... | 0.6821551 | 3 |
Verify the default axis labels when not normalized nor errors given. | def Bu_7(YKHO):
aNZO = YKHO._plot(normalize=False, sigma=0)
YKHO._checkAxisLabels(aNZO, YKHO.DEFAULT_XLABEL, 'Sensitivity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3VZ():\n assert Sr2h.axes[0].label is None\n assert Sr2h.axes[1].label is None",
"def _Gsp(YKHO):\n VoLU = False\n IICq = ''\n dLEr = ''\n aNZO = YKHO._plot(xlabel=VoLU, ylabel=IICq)\n YKHO._checkAxisLabels(aNZO, dLEr, dLEr)",
"def cPfJ(YKHO):\n if YKHO.X_labels is not None:\n ... | [
"0.79970914",
"0.7252877",
"0.7234884",
"0.67201155",
"0.6622517",
"0.65521497",
"0.6411976",
"0.6391085",
"0.6346489",
"0.6261277",
"0.6238151",
"0.62028426",
"0.61879265",
"0.61323076",
"0.611496",
"0.607232",
"0.6039147",
"0.60246354",
"0.59708816",
"0.5900195",
"0.5883857... | 0.6478756 | 6 |
Verify that an error is raised if a bad response is passed. | def rDIC(YKHO):
with YKHO.assertRaises(KeyError):
YKHO.reader.plot('THIS SHOULD FAIL') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)",
"def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)",
"def YCxY(YKHO, j8eK, geh0):\n if geh0.status == 401:\n raise LU9K(j8eK, geh0)\n if geh0.status != 200:\n raise J2dW(j8eK, geh0)",
"def ... | [
"0.7544773",
"0.7506058",
"0.7398872",
"0.7331039",
"0.7322216",
"0.7292973",
"0.72886276",
"0.7288531",
"0.7283579",
"0.7283316",
"0.72669286",
"0.7257781",
"0.72453284",
"0.7226463",
"0.72113526",
"0.7210203",
"0.7199525",
"0.7199525",
"0.71669364",
"0.7134698",
"0.70550853... | 0.0 | -1 |
Returna 'True' si parametro 'resp' tinen como respuesta 200 (peticion exitosa de la solicitud get) | def yQRe(_hkX):
m5r4 = _hkX.headers['Content-Type'].lower()
return _hkX.status_code == 200 and m5r4 is not None and (m5r4.find('html') > -1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTjz(_hkX):\n return _hkX.ok",
"def j1x8(_hkX):\n return _hkX.status_code == 200",
"def Dw0n() -> bool:\n return Mi_a == 2000",
"def TTz0(_hkX) -> bool:\n if _hkX.status_code == 200:\n return True\n return False",
"def rStG(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_cod... | [
"0.74412835",
"0.7430427",
"0.72608376",
"0.7222404",
"0.71621037",
"0.7143149",
"0.7088163",
"0.68279624",
"0.67798036",
"0.6739734",
"0.6725307",
"0.67171186",
"0.66531086",
"0.6648404",
"0.6645158",
"0.66400844",
"0.6615062",
"0.6609872",
"0.66051334",
"0.6543962",
"0.6530... | 0.0 | -1 |
Given the coordinates, determine size of the field and return calculated areas. | def iXC1(_CTE: Dict[Tuple, str], e7ZM=0) -> cuzp[str, int]:
ZKNU = (e7ZM, e7ZM)
da_8 = max(_CTE, key=lambda Z9rn: Z9rn[0])[0] + 1 + 2 * e7ZM
q_qq = max(_CTE, key=lambda Z9rn: Z9rn[1])[1] + 1 + 2 * e7ZM
return aDuP(_CTE, da_8, q_qq, ZKNU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aw0V(YKHO):\n jzdc = epAf.sqrt(sum((YKHO.coords[1, :] - YKHO.coords[0, :]) ** 2))\n Fg_i = epAf.sqrt(sum((YKHO.coords[2, :] - YKHO.coords[1, :]) ** 2))\n YKHO.area = jzdc * Fg_i",
"def Aw0V(YKHO):\n pass",
"def aDuP(W0Eb: Dict[Tuple, str], TVTK: int, H2v2: int, ZKNU: Tuple[int, int]):\n JmNs... | [
"0.68066615",
"0.66294646",
"0.64727217",
"0.6467461",
"0.6409315",
"0.63894737",
"0.6362014",
"0.63358694",
"0.632775",
"0.6322269",
"0.6322269",
"0.6322269",
"0.63218653",
"0.6316699",
"0.62897915",
"0.62641656",
"0.62549645",
"0.6249718",
"0.6249718",
"0.6249718",
"0.62497... | 0.7007868 | 0 |
Downsamples the image (pixel_array) so that it is = test_field_width/self.raster_width test_field_width/self.raster_width in size. | def cylw(YKHO, SNvb):
paSp = YKHO.test_field_width / YKHO.raster_width
TLft = [[0, 0, 0] for YRbF in range(paSp * paSp)]
for zFiD in range(0, YKHO.test_field_width):
xncO = int(zFiD / YKHO.raster_width)
for e3Fk in range(0, YKHO.test_field_width):
m7pY = int(e3Fk / YKHO.raster_wi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i2yc(YKHO, VOC_):\n o1IL = VOC_.copy().astype(float)\n dgIT = o1IL.min()\n zcZv = o1IL.max() - dgIT\n o1IL = (o1IL - dgIT) / zcZv * 255\n return o1IL.astype(oyIN.uint8)",
"def buZp(Dym1, aM8h=40.0):\n aM8h = float(aM8h)\n usx6, WfCS, bGrB = Dym1.shape\n DYef = int(epAf.ceil(usx6 / aM8... | [
"0.608911",
"0.60418606",
"0.5978532",
"0.5927668",
"0.5916229",
"0.58621067",
"0.5742574",
"0.5632169",
"0.561749",
"0.5616652",
"0.55940205",
"0.5569868",
"0.55636495",
"0.555162",
"0.5524817",
"0.5503116",
"0.5502387",
"0.54919565",
"0.5451605",
"0.5427165",
"0.54189384",
... | 0.71097 | 0 |
Get the environment state | def ja6o(YKHO) -> tuple:
return (YKHO._t, tuple(_qLf(tuple((sEAN.unwrapped.state for sEAN in YKHO._envs))))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ixvf():\n global environ\n return [Z9rn.active for Z9rn in PNq_.cells.flatten()]",
"def QTBn(YKHO):\n return YKHO.gym_env.s",
"def QTBn(YKHO):\n YKHO._update_env_state()\n return YKHO._state",
"def ja6o(YKHO):\n return YKHO.env._get_obs()",
"def GikI(YKHO):\n return YKHO._environme... | [
"0.82049555",
"0.80124915",
"0.79689133",
"0.7810283",
"0.76177835",
"0.7597098",
"0.7550623",
"0.74696064",
"0.7372907",
"0.73102474",
"0.73102474",
"0.73102474",
"0.7250643",
"0.7250643",
"0.7250643",
"0.7244727",
"0.72356683",
"0.72174615",
"0.71700346",
"0.71556085",
"0.7... | 0.0 | -1 |
Set the environment seed | def e3of(YKHO, m1Py: tuple):
for sEAN, yokr in zip(YKHO._envs, m1Py):
sEAN.seed(yokr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yokr(YKHO, yokr=None):\n ch3p.logger.warn('Could not seed environment %s', YKHO)\n return",
"def yokr(YKHO, yokr=None):\n YKHO.env.seed(yokr)",
"def BpNF(YKHO, yokr):\n YKHO.env.seed(yokr)\n oyIN.random.seed(yokr)\n tuKI.seed(yokr)",
"def yokr(YKHO, yokr):\n YKHO.gym_env.seed(yokr)",... | [
"0.8017485",
"0.7858063",
"0.78415984",
"0.7800826",
"0.7563184",
"0.7563184",
"0.7563184",
"0.75106037",
"0.7331645",
"0.7296243",
"0.723463",
"0.722653",
"0.71913546",
"0.7149927",
"0.7136705",
"0.7013559",
"0.6972674",
"0.69492036",
"0.6944722",
"0.69440883",
"0.69203055",... | 0.739463 | 8 |
Initial bias. The Parameters class is used to store bias values. If this initial values will not be levegered, the Model class sets them randomly. | def oug5(YKHO):
if YKHO.parameters.bias is not None:
return ZylS.Variable(YKHO.parameters.bias, name='weights', dtype=ZylS.float32)
else:
ziOa = oyIN.random.rand(1, 1)
return ZylS.Variable(ziOa, name='weights', dtype=ZylS.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0Ko(YKHO):\n if YKHO.use_bias:\n DbxN.constant(YKHO.bias_i.data, val=0)\n DbxN.constant(YKHO.bias_f.data, val=0)\n DbxN.constant(YKHO.bias_o.data, val=0)\n DbxN.constant(YKHO.bias_c.data, val=0)",
"def vB93(YKHO):\n if YKHO.bn is not None:\n E4HN(YKHO.bn, val=1, bias... | [
"0.7232824",
"0.7111998",
"0.70992494",
"0.70992494",
"0.70992494",
"0.7093064",
"0.7091856",
"0.7060608",
"0.7060006",
"0.70335996",
"0.7033045",
"0.7033045",
"0.688314",
"0.68753767",
"0.68700933",
"0.68652207",
"0.68652207",
"0.6859941",
"0.68575215",
"0.68485415",
"0.6831... | 0.6803685 | 22 |
Add route to host. | def q_q7(YKHO, D8Ke, M181):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jbgU(YKHO, PsCT):\n YKHO.routes[PsCT.name] = PsCT",
"def jbgU(YKHO, PsCT: str, tTee: FunctionType):\n YKHO.routes[PsCT] = [ZbWC.compile(PsCT), tTee]",
"def jbgU(YKHO, U8CY):\n YKHO.routes.add(tuple(U8CY))",
"def q_q7(YKHO, D8Ke, M181):\n YKHO.cmd('route add -host %s dev %s' % (D8Ke, M181))",
... | [
"0.7443937",
"0.70354384",
"0.70153654",
"0.6904223",
"0.67507875",
"0.67342335",
"0.6644436",
"0.6622789",
"0.65962416",
"0.6582227",
"0.64643055",
"0.6449087",
"0.64331764",
"0.64172447",
"0.6330003",
"0.62949556",
"0.62746584",
"0.61946595",
"0.6175437",
"0.61655176",
"0.6... | 0.64822847 | 10 |
Convenience layer that perorms an affine transform followed by a batchnorm, then ReLU | def TaqQ(WKvO, yzQ0, Fg_i, KMvS, UqYS, Y7R2):
jzdc, A45l = Fav1(WKvO, yzQ0, Fg_i)
Fg_i, hxmb = d3MU(jzdc, KMvS, UqYS, Y7R2)
yvT9, GhMp = wN5Y(Fg_i)
wyyA = (A45l, hxmb, GhMp)
return (yvT9, wyyA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAgT(WKvO, yzQ0, Fg_i, KMvS, UqYS, exGu):\n yvT9, A45l = Fav1(WKvO, yzQ0, Fg_i)\n yvT9, ICjk = d3MU(yvT9, KMvS, UqYS, exGu)\n yvT9, GhMp = wN5Y(yvT9)\n wyyA = (A45l, ICjk, GhMp)\n return (yvT9, wyyA)",
"def vfsZ(WKvO, yzQ0, Fg_i, KMvS, UqYS, Y7R2):\n jzdc, A45l = Fav1(WKvO, yzQ0, Fg_i)\n ... | [
"0.7218917",
"0.720543",
"0.6972086",
"0.69137335",
"0.67260903",
"0.667028",
"0.65971553",
"0.658951",
"0.6583648",
"0.6542467",
"0.6537302",
"0.64874846",
"0.64505374",
"0.64505374",
"0.6448056",
"0.64372015",
"0.641714",
"0.6411792",
"0.6366767",
"0.63648707",
"0.6348888",... | 0.71093535 | 2 |
Convenience layer that perorms an conv transform followed by a batchnorm, then ReLU | def ykPg(WKvO, yzQ0, Fg_i, N9LM, KMvS, UqYS, Y7R2):
nOvY, y_6z = olXQ(WKvO, yzQ0, Fg_i, N9LM)
efjv, bVJf = HXea(nOvY, KMvS, UqYS, Y7R2)
yvT9, yLws = wN5Y(efjv)
wyyA = (y_6z, bVJf, yLws)
return (yvT9, wyyA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BKgG(WKvO, yzQ0, Fg_i, N9LM, cjPb, KMvS, UqYS, Y7R2):\n nOvY, y_6z = olXQ(WKvO, yzQ0, Fg_i, N9LM)\n efjv, bVJf = HXea(nOvY, KMvS, UqYS, Y7R2)\n wiIF, yLws = wN5Y(efjv)\n yvT9, TRTK = SfqX(wiIF, cjPb)\n wyyA = (y_6z, bVJf, yLws, TRTK)\n return (yvT9, wyyA)",
"def LfO_(vC8u, nrLm, Ot1W, _0fC,... | [
"0.71625066",
"0.6783476",
"0.67671084",
"0.6711047",
"0.6699704",
"0.6695074",
"0.6681392",
"0.6674315",
"0.66569483",
"0.66561615",
"0.66450685",
"0.66370976",
"0.66320145",
"0.6613502",
"0.6608372",
"0.66011345",
"0.66004556",
"0.6591123",
"0.6575324",
"0.6565991",
"0.6557... | 0.7465422 | 0 |
Convenience layer that perorms an conv transform followed by a batchnorm, then ReLU | def BKgG(WKvO, yzQ0, Fg_i, N9LM, cjPb, KMvS, UqYS, Y7R2):
nOvY, y_6z = olXQ(WKvO, yzQ0, Fg_i, N9LM)
efjv, bVJf = HXea(nOvY, KMvS, UqYS, Y7R2)
wiIF, yLws = wN5Y(efjv)
yvT9, TRTK = SfqX(wiIF, cjPb)
wyyA = (y_6z, bVJf, yLws, TRTK)
return (yvT9, wyyA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykPg(WKvO, yzQ0, Fg_i, N9LM, KMvS, UqYS, Y7R2):\n nOvY, y_6z = olXQ(WKvO, yzQ0, Fg_i, N9LM)\n efjv, bVJf = HXea(nOvY, KMvS, UqYS, Y7R2)\n yvT9, yLws = wN5Y(efjv)\n wyyA = (y_6z, bVJf, yLws)\n return (yvT9, wyyA)",
"def LfO_(vC8u, nrLm, Ot1W, _0fC, dvgN, ivFb=1, QZir=True):\n fhcK = [U78l.Co... | [
"0.7465422",
"0.6783476",
"0.67671084",
"0.6711047",
"0.6699704",
"0.6695074",
"0.6681392",
"0.6674315",
"0.66569483",
"0.66561615",
"0.66450685",
"0.66370976",
"0.66320145",
"0.6613502",
"0.6608372",
"0.66011345",
"0.66004556",
"0.6591123",
"0.6575324",
"0.6565991",
"0.65577... | 0.71625066 | 1 |
COSTFUNCTION Compute cost and gradient for logistic regression J = COSTFUNCTION(theta, X, y) computes the cost of using theta as the parameter for logistic regression and the gradient of the cost w.r.t. to the parameters. | def MU2M(q7In, EcVT, LVAh):
r8hN = len(LVAh)
MKlR = m1Hg(oyIN.dot(EcVT, q7In))
Oa10 = (-LVAh.T.dot(oyIN.log(MKlR)) - (1 - LVAh).T.dot(oyIN.log(1 - MKlR))) / r8hN
Oa10 = float(Oa10)
Ro40 = EcVT.T.dot(MKlR - LVAh) / r8hN
return (Oa10, Ro40) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MU2M(q7In, EcVT, LVAh):\n r8hN = len(LVAh)\n epBp = EcVT @ q7In\n MKlR = m1Hg(epBp)\n Oa10 = (-LVAh @ oyIN.log(MKlR) - (1 - LVAh) @ oyIN.log(1 - MKlR)) / r8hN\n Ro40 = (MKlR - LVAh) @ EcVT / r8hN\n return (Oa10, Ro40)",
"def MU2M(q7In, EcVT, LVAh):\n r8hN = LVAh.size\n Oa10 = 0\n R... | [
"0.81279737",
"0.8048122",
"0.8025438",
"0.7953403",
"0.78435606",
"0.7709336",
"0.7665373",
"0.76628155",
"0.7627779",
"0.7625418",
"0.7522113",
"0.7520866",
"0.7518508",
"0.75179297",
"0.7492368",
"0.74801695",
"0.74624205",
"0.74185324",
"0.74166167",
"0.73511326",
"0.7275... | 0.7729638 | 5 |
Generate random number between range [min, max) | def X2D5(min: int, max: int) -> int:
return tuKI.randrange(min, max, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjKZ(min, max):\n return ajWY(min, max)",
"def xac_(min, max):\n return tuKI.random() * (max - min) + min",
"def ADdS(JCoA, kpLf=0):\n return tuKI.random() * (JCoA - kpLf) + kpLf",
"def LAYn(min, max):\n return tuKI.randint(min, max)",
"def qukk(YKHO, kpLf, JCoA):\n return vPAK",
"def ... | [
"0.87786275",
"0.8507187",
"0.8345191",
"0.8323773",
"0.8236327",
"0.8225578",
"0.8137759",
"0.8087015",
"0.80749923",
"0.8074402",
"0.8047506",
"0.80382705",
"0.8027818",
"0.80009174",
"0.79975426",
"0.79540694",
"0.79093885",
"0.7861655",
"0.7853759",
"0.7848139",
"0.782395... | 0.84628683 | 2 |
Clears the cache of singleton delcared classes. | def RFOL(Emd4=None):
global _WEAK_WRAPPED_CLASSES
if Emd4:
if Emd4 in bJHk:
bJHk.pop(Emd4)
return
bJHk = dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9yQ(Emd4):\n Perm = []\n wyyA = None\n for Nq1b in Emd4.mro():\n try:\n wyyA = Nq1b.__classcall__.cache\n except AttributeError:\n pass\n for G1Hx in wyyA:\n if issubclass(G1Hx[0][0], Emd4):\n Perm.append(G1Hx)\n for G1Hx in Perm:\n d... | [
"0.8463266",
"0.7402054",
"0.73189485",
"0.70899403",
"0.7072382",
"0.7047908",
"0.7024697",
"0.7013174",
"0.70028484",
"0.69794935",
"0.6940373",
"0.68971163",
"0.68790025",
"0.68682295",
"0.686369",
"0.686369",
"0.68451685",
"0.6831205",
"0.68118566",
"0.6799489",
"0.679083... | 0.0 | -1 |
First name of the concerned natural person | def CJFr(YKHO, DYo2=qXQp):
return super(sBhT, YKHO).FirstName(DYo2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9ua(YKHO) -> str:\n return YKHO.name.title()",
"def c9ua(YKHO) -> str:\n return qe4Y.get(YKHO, 'first_name')",
"def fcCO(YKHO):\n return YKHO.name.split()[0]",
"def fz1W(YKHO):\n if YKHO.first_name == '':\n YKHO.get_lead_traveller()\n return YKHO.first_name",
"def c9ua(YKHO) -> q... | [
"0.8197813",
"0.8192297",
"0.80681354",
"0.79932",
"0.7949182",
"0.788533",
"0.78696334",
"0.7813189",
"0.78075236",
"0.78075236",
"0.78075236",
"0.78075236",
"0.78075236",
"0.78075236",
"0.7743955",
"0.7735125",
"0.7730596",
"0.7718065",
"0.7715624",
"0.7714361",
"0.7669415"... | 0.7289573 | 96 |
Last name of the concerned natural person | def fV9G(YKHO, Umhr=qXQp):
return super(sBhT, YKHO).LastName(Umhr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zp3f(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_name')",
"def CCKR(YKHO):\n return YKHO.last_name",
"def zp3f(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'last_name')",
"def CCKR(YKHO):\n if YKHO.last_name == '':\n YKHO.get_lead_traveller()\n return YKHO.last_name",
"def C... | [
"0.8416635",
"0.8213403",
"0.8165591",
"0.81115085",
"0.8082547",
"0.80557823",
"0.8016286",
"0.800681",
"0.8006327",
"0.8006327",
"0.7995067",
"0.7986907",
"0.797328",
"0.79687834",
"0.79687834",
"0.79687834",
"0.7957972",
"0.79493475",
"0.79493475",
"0.79493475",
"0.7949347... | 0.79073703 | 32 |
Getter method for system_tx_queue_limit, mapped from YANG variable /capabilities/qos/system_tx_queue_limit (boolean) | def Ss43(YKHO):
return YKHO.__system_tx_queue_limit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DG1B(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='system-tx-queue-limit', rest_name='system-tx-queue-limit', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_... | [
"0.84903",
"0.7686713",
"0.72413915",
"0.59070396",
"0.5563125",
"0.5520424",
"0.54477304",
"0.53672695",
"0.52856356",
"0.5120149",
"0.5034417",
"0.50109124",
"0.50109124",
"0.50109124",
"0.50109124",
"0.50109124",
"0.50037944",
"0.49832824",
"0.49832824",
"0.49832824",
"0.4... | 0.7933529 | 1 |
Setter method for system_tx_queue_limit, mapped from YANG variable /capabilities/qos/system_tx_queue_limit (boolean) | def DG1B(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='system-tx-queue-limit', rest_name='system-tx-queue-limit', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=Tru... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X4IC(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='system-rx-queue-limit', rest_name='system-rx-queue-limit', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_... | [
"0.8081938",
"0.76724035",
"0.6915031",
"0.60199857",
"0.5744616",
"0.57023853",
"0.5489297",
"0.5464441",
"0.54485625",
"0.53718203",
"0.53162086",
"0.5246516",
"0.5192736",
"0.5164747",
"0.5151427",
"0.5114118",
"0.51000524",
"0.508844",
"0.50215364",
"0.50215364",
"0.50215... | 0.8936276 | 0 |
Setter method for show_rx_queue_interface, mapped from YANG variable /capabilities/qos/show_rx_queue_interface (boolean) | def xeXd(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='show-rx-queue-interface', rest_name='show-rx-queue-interface', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r5fh(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='conf-rx-queue-interface', rest_name='conf-rx-queue-interface', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, regis... | [
"0.74886215",
"0.7454201",
"0.63997847",
"0.60294086",
"0.5796485",
"0.5429198",
"0.5128085",
"0.49355912",
"0.48962906",
"0.48514026",
"0.47888476",
"0.47516212",
"0.4730903",
"0.47286278",
"0.47050965",
"0.47009975",
"0.46717712",
"0.46495277",
"0.45268044",
"0.450972",
"0.... | 0.8957999 | 0 |