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 |
|---|---|---|---|---|---|---|
Getter method for l3_label, mapped from YANG variable /bgp_state/route/evpn/mac/l3_label (int32) | def uRZd(YKHO):
return YKHO.__l3_label | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p0Vx(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['-2147483648..2147483647']}, int_size=32), is_leaf=True, yang_name='l3-label', rest_name='l3-label', parent=YKHO, path_help... | [
"0.83915883",
"0.5781938",
"0.5475046",
"0.520142",
"0.5200634",
"0.518894",
"0.5181683",
"0.51688933",
"0.5143152",
"0.514129",
"0.5131253",
"0.51141983",
"0.5095959",
"0.50904393",
"0.50888866",
"0.50633866",
"0.50545776",
"0.50535",
"0.5013053",
"0.5012966",
"0.5007337",
... | 0.7572211 | 1 |
Setter method for l3_label, mapped from YANG variable /bgp_state/route/evpn/mac/l3_label (int32) | def p0Vx(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['-2147483648..2147483647']}, int_size=32), is_leaf=True, yang_name='l3-label', rest_name='l3-label', parent=YKHO, path_helper=YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRZd(YKHO):\n return YKHO.__l3_label",
"def v6jw(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['-2147483648..2147483647']}, int_size=32), is_leaf=True, yang_name='l2-lab... | [
"0.70971125",
"0.65469706",
"0.5760362",
"0.55529535",
"0.529785",
"0.5284386",
"0.52838194",
"0.5185494",
"0.51587504",
"0.5157344",
"0.51356393",
"0.5106012",
"0.50581807",
"0.50562936",
"0.5053143",
"0.50524807",
"0.50118595",
"0.49925813",
"0.49903148",
"0.49612194",
"0.4... | 0.89856035 | 0 |
Getter method for esi, mapped from YANG variable /bgp_state/route/evpn/mac/esi (string) | def xGB0(YKHO):
return YKHO.__esi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mMy9(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='esi', rest_name='esi', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='urn:brocade.c... | [
"0.6438036",
"0.48731652",
"0.47249076",
"0.45993653",
"0.45476517",
"0.45257425",
"0.45001796",
"0.44725043",
"0.4466427",
"0.44617414",
"0.4447378",
"0.44402593",
"0.43799716",
"0.4356439",
"0.4350553",
"0.43357283",
"0.43319207",
"0.43195543",
"0.43034455",
"0.42955282",
"... | 0.62764627 | 1 |
Getter method for mac, mapped from YANG variable /bgp_state/route/evpn/mac/mac (string) | def FlYA(YKHO):
return YKHO.__mac | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SE2y(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(... | [
"0.6963544",
"0.6812403",
"0.67475903",
"0.669612",
"0.66622156",
"0.66369957",
"0.6620996",
"0.65639406",
"0.6504258",
"0.64928067",
"0.64632714",
"0.64471436",
"0.64471436",
"0.6406178",
"0.6394177",
"0.63675225",
"0.6351941",
"0.6332047",
"0.63284487",
"0.6324845",
"0.6313... | 0.67939645 | 2 |
Setter method for mac, mapped from YANG variable /bgp_state/route/evpn/mac/mac (string) | def SE2y(YKHO, Ty9i, tyeH=False):
_AKB = getattr(YKHO, '_parent', None)
if _AKB is not None and tyeH is False:
raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pp4r(YKHO, Pp4r):\n YKHO._mac = Pp4r",
"def Pp4r(YKHO):\n Pp4r = jry1(bdbQ().config('mac'), ':').decode()\n return Pp4r.upper()",
"def HXjy(YKHO):\n if YKHO._mac_address is None:\n lsX7 = ypAs.WPA_MAC\n mWFP = ypAs.MAC_ADDRESS_NAME\n oUZx = YKHO.status_command\n YKHO... | [
"0.70633817",
"0.6451035",
"0.6415845",
"0.63952243",
"0.636544",
"0.62476975",
"0.6150491",
"0.61077535",
"0.60958034",
"0.6041815",
"0.60208905",
"0.59615165",
"0.5955605",
"0.59532267",
"0.5949985",
"0.59478515",
"0.5947069",
"0.5947069",
"0.5922859",
"0.59133255",
"0.5883... | 0.7617756 | 0 |
Getter method for l2vni, mapped from YANG variable /bgp_state/route/evpn/mac/l2vni (uint32) | def fPRS(YKHO):
return YKHO.__l2vni | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CR0R(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(... | [
"0.74583226",
"0.5737369",
"0.49928522",
"0.4815846",
"0.47398567",
"0.47125748",
"0.46796742",
"0.46781385",
"0.4618018",
"0.4590754",
"0.4587778",
"0.4470396",
"0.44310454",
"0.44280466",
"0.44100675",
"0.44089234",
"0.44072032",
"0.4402721",
"0.43970332",
"0.43891013",
"0.... | 0.7143709 | 1 |
the same as the previous function (almost) but without partitioning the dataset into two separate train/val loaders | def t1Gb(Wo3y='./data/sample_submission.csv', jNha='./data/test/'):
nPrm = nUCb(Wo3y, jNha, transform=Ymkf.Compose([kASb((256, 256)), _J6p()]))
_0VL = oyIN.arange(len(nPrm))
x7ns = pVAc(nPrm, batch_size=10, num_workers=5)
return x7ns | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mpiC(EPL3, IrSd, HXw9=0.1, TLsW=False, Ep8u=32, I7Gy=4, oiT4=False):\n if IrSd is not None:\n Pa1c = CUkz.DataLoader(EPL3, batch_size=Ep8u, shuffle=True, num_workers=I7Gy, pin_memory=oiT4)\n o7Up = CUkz.DataLoader(IrSd, batch_size=Ep8u, num_workers=I7Gy, pin_memory=oiT4)\n return (Pa1c,... | [
"0.74103993",
"0.7326379",
"0.7302729",
"0.7268984",
"0.7262039",
"0.70657194",
"0.70487183",
"0.69832474",
"0.6968116",
"0.6966106",
"0.68997",
"0.6858828",
"0.6858152",
"0.6845753",
"0.68344057",
"0.68067324",
"0.6803335",
"0.6793472",
"0.6779923",
"0.6751903",
"0.67455786"... | 0.0 | -1 |
Compute the pairwise distance between vector x and y | def AcYW(WKvO, LVAh):
Csk6 = 2
yaaC = []
YRbF = 0
while YRbF < len(WKvO):
yaaC.append((WKvO[YRbF] - LVAh[YRbF]) ** Csk6)
YRbF = YRbF + 1
return sum(yaaC) ** (1 / float(Csk6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ScbS(WKvO, LVAh):\n r8hN, exwG = (WKvO.size(0), LVAh.size(0))\n dqIl = ht2j.pow(WKvO, 2).sum(1, keepdim=True).expand(r8hN, exwG) + ht2j.pow(LVAh, 2).sum(1, keepdim=True).expand(exwG, r8hN).t() - 2 * ht2j.matmul(WKvO, LVAh.t())\n dqIl = dqIl.clamp(min=1e-12).sqrt()\n return dqIl",
"def Ayfi(WKvO, ... | [
"0.7959089",
"0.7919787",
"0.7887377",
"0.78832746",
"0.78823066",
"0.77322984",
"0.7697263",
"0.7663328",
"0.7622567",
"0.75793624",
"0.75626653",
"0.75529647",
"0.7543478",
"0.7507571",
"0.7493424",
"0.7429117",
"0.7343736",
"0.73437357",
"0.7338723",
"0.7338349",
"0.730621... | 0.0 | -1 |
Retrieves the campaign data of the ad account as a dictionary | def NR0p(sTKe: adaccount.AdAccount) -> {}:
G9jH.info('get campaign data for account {}'.format(sTKe['account_id']))
IANV = sTKe.get_campaigns(fields=['id', 'name', 'adlabels'], params={'limit': 1000, 'status': ['ACTIVE', 'PAUSED', 'ARCHIVED']})
Aofo = {}
for j4i0 in IANV:
Aofo[j4i0['id']] = {'na... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xeky(YKHO, _j1c: str) -> dict:\n return YKHO.http_request('GET', f'/campaign/{_j1c}')",
"def hMET(YKHO, Z31E, _j1c, ySZ0):\n tIw1 = ['name', 'campaign_status', 'daily_budget', 'lifetime_budget', 'start_time', 'end_time']\n yriZ = ['campaign_name', 'reach', 'frequency', 'clicks', 'actions', 'total_ac... | [
"0.74798214",
"0.7270215",
"0.71838593",
"0.7102927",
"0.6910742",
"0.6888167",
"0.67917913",
"0.6656645",
"0.65966827",
"0.6573094",
"0.64368117",
"0.6418411",
"0.6384282",
"0.63074404",
"0.62874997",
"0.6266214",
"0.6226645",
"0.62007195",
"0.61897147",
"0.6093297",
"0.6069... | 0.8140289 | 0 |
Constructs data array which contains also data from the axis | def xVu3(YKHO, jDK_):
NXeH = list(YKHO.data.shape)
if len(NXeH) == 2:
NXeH[1] += 1
BLg0 = tuple(NXeH)
nPrm = XTiz.zeros(BLg0, dtype=YKHO.data.dtype)
nPrm[:, 1:] = YKHO.data
nPrm[:, 0] = jDK_.data
elif len(NXeH) == 1:
NXeH.append(2)
BLg0 = tuple(NXeH)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPrm():\n return E4NK([[0, 1], [1, 2, 3, 4], [], [-1, -2], []] * 20, dtype='float64')",
"def WMMl(YKHO, nPrm):\n Csk6 = oyIN.empty([nPrm.shape[0] + 2, nPrm.shape[1] + 2])\n Csk6[1:-1, 1:-1] = nPrm\n Csk6[0, 1:-1] = nPrm[0, :]\n Csk6[1:-1, 0] = nPrm[:, 0]\n Csk6[-1, 1:-1] = nPrm[-1, :]\n ... | [
"0.6954867",
"0.69188064",
"0.68539286",
"0.684455",
"0.6809453",
"0.6759577",
"0.6734904",
"0.6650623",
"0.65200347",
"0.64438343",
"0.63718563",
"0.63473487",
"0.6328436",
"0.62681544",
"0.62681544",
"0.62372404",
"0.62372404",
"0.62063354",
"0.6174277",
"0.6140562",
"0.612... | 0.7768123 | 0 |
Returns a list of default commandline flags. | def _eiK(YKHO):
return ['-i', YKHO.ssh_key_file, '-o', 'UserKnownHostsFile=/dev/null', '-o', 'CheckHostIP=no', '-o', 'StrictHostKeyChecking=no'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jtPx():\n return ['--quick', '--colors=NoColor', '--no-term-title', '--no-banner', '--autocall=0']",
"def p_nP():\n return epZ9",
"def Njhm(qIxc: Sequence[str]) -> cuzp[str, bool]:\n JbyC = {}\n for d7pR in qIxc:\n if d7pR.startswith(EXWF):\n OXxz = d7pR[len(EXWF):]\n ... | [
"0.740617",
"0.66794264",
"0.66648924",
"0.66379106",
"0.66160214",
"0.65821373",
"0.65794957",
"0.6555721",
"0.6390384",
"0.6366706",
"0.6243162",
"0.6085537",
"0.6068992",
"0.6051399",
"0.59985006",
"0.59657645",
"0.5932578",
"0.59135467",
"0.5878358",
"0.58655524",
"0.5842... | 0.72359943 | 1 |
Encode the timestamp into string representation. | def Vp65(Emd4, E3oo: typing.Optional[datetime.datetime]) -> laHg.Optional[str]:
if not E3oo:
return None
return E3oo.strftime(Emd4._TSFMT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FFiR(YKHO, T0rB):\n if isinstance(T0rB, (JRYC.datetime, JRYC.date, JRYC.time)):\n return T0rB.strftime(YKHO.timestamp_format)\n else:\n return T0rB",
"def kLcZ(YKHO, E3oo: int) -> int:\n return E3oo",
"def U1_3(YKHO, yl4j: Optional[datetime.tzinfo]=None, ooLV: str='auto') -> str:\n ... | [
"0.77683187",
"0.76765305",
"0.7303453",
"0.7222982",
"0.71735287",
"0.6997807",
"0.69902015",
"0.6737596",
"0.6644965",
"0.6533335",
"0.6518069",
"0.6518069",
"0.6497288",
"0.6462049",
"0.64397365",
"0.64397365",
"0.6410246",
"0.6397173",
"0.6389709",
"0.63675267",
"0.636462... | 0.56180626 | 94 |
Get the project of this generation. | def bNKA(YKHO) -> 'prjmod.Level':
return YKHO.lineage.project | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ITTn(YKHO):\n return YKHO.project",
"def ITTn(YKHO):\n return YKHO.project",
"def ITTn(YKHO):\n return YKHO.__project",
"def YsXL(YKHO):\n raise NotImplementedError('get_project is not implemented')",
"def bNKA(YKHO):\n return YKHO._project",
"def bNKA(YKHO):\n return YKHO._project"... | [
"0.8459022",
"0.84283864",
"0.84060997",
"0.8301082",
"0.8256392",
"0.8256392",
"0.8256392",
"0.8256392",
"0.8256392",
"0.8155388",
"0.80494577",
"0.80042017",
"0.80042017",
"0.80042017",
"0.80042017",
"0.80042017",
"0.80042017",
"0.80042017",
"0.80042017",
"0.80042017",
"0.8... | 0.76221853 | 54 |
add (e) to the graph by adding an entry in both directions. if there is already an edge connecting these vertices, the new edge replaces it | def rz7z(YKHO, tTpl):
jzdc, Fg_i = tTpl
YKHO[jzdc][Fg_i] = tTpl
YKHO[Fg_i][jzdc] = tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1KG(YKHO, tTpl):\n Ty9i = tTpl.either()\n yzQ0 = tTpl.other(Ty9i)\n YKHO._validateVertex(Ty9i)\n YKHO._validateVertex(yzQ0)\n YKHO._adj[Ty9i].add(tTpl)\n YKHO._adj[yzQ0].add(tTpl)\n YKHO._E += 1",
"def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = tTpl\n YKHO[Ty9i][yzQ0] = tTpl\n YKHO[yzQ0]... | [
"0.8256848",
"0.8011468",
"0.77001023",
"0.7696952",
"0.7696663",
"0.76689976",
"0.76547",
"0.7597188",
"0.751026",
"0.7485459",
"0.7485459",
"0.74729645",
"0.74144447",
"0.73839235",
"0.73785144",
"0.7367536",
"0.7355265",
"0.73256135",
"0.7320839",
"0.7289511",
"0.7288446",... | 0.81912374 | 1 |
Convert binary string to a float. | def EFLp(Fg_i):
PgcV = KA36(int(Fg_i, 2), 8)
return BlNT.unpack('>d', PgcV)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pd4L(nPrm):\n return float(hr3c(nPrm))",
"def fqum(KCHu):\n try:\n eHNT = float(KCHu)\n return eHNT\n except ValueError:\n return None",
"def AjPn(YKHO, KCHu: str) -> float:\n return int(KCHu[:-1]) / 1000000000.0 if KCHu.endswith('n') else float(KCHu[:-1])",
"def YKt2(BWX... | [
"0.7611349",
"0.7297061",
"0.7283626",
"0.7211255",
"0.7162156",
"0.7158703",
"0.71040463",
"0.7091765",
"0.70672995",
"0.69594955",
"0.6904782",
"0.6901475",
"0.6892667",
"0.6879177",
"0.68638176",
"0.67756915",
"0.6766792",
"0.6754018",
"0.66947466",
"0.66913944",
"0.669126... | 0.7315557 | 1 |
Changes the maximum sequence length of the transformer input. | def z0xN(YKHO, CEL8):
tDR2 = YKHO.model.encoder.src_word_emb.weight.shape[1]
pcGJ = YKHO.model.decoder.tgt_word_emb.weight.shape[1]
YKHO.model.encoder.position_enc = U78l.Embedding.from_pretrained(QFqM(CEL8, tDR2, padding_idx=0), freeze=True).to(YKHO.device)
YKHO.model.decoder.position_enc = U78l.Embedd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UryJ(YKHO):\n l2lq = int(YKHO.set_max_sentence.get())\n RcmB = YKHO.min_sentence_length\n if l2lq > RcmB:\n YKHO.max_sentence_length = l2lq\n else:\n _OU1 = YKHO.max_sentence_length\n xiKd = on8l.StringVar(YKHO.master)\n xiKd.set(str(_OU1))\n YKHO.set_max_sentence... | [
"0.7094483",
"0.70861804",
"0.70861804",
"0.70861804",
"0.70861804",
"0.7075678",
"0.7075678",
"0.7075678",
"0.7018811",
"0.7018684",
"0.68126583",
"0.68126583",
"0.68126583",
"0.68126583",
"0.68126583",
"0.68126583",
"0.68126583",
"0.68126583",
"0.68126583",
"0.68126583",
"0... | 0.6206882 | 49 |
Pads out an array to a large size. ori_array A 2D numpy array. pad_size The number of elements to add to each of the "sides" of the array. The padded 2D numpy array. | def M35P(j5DB, x_5g):
if x_5g > 0:
[Yjog, nnyg] = j5DB.shape
dTW_ = XTiz.ones((Yjog + 2 * x_5g, nnyg + 2 * x_5g))
dTW_[x_5g:Yjog + x_5g, x_5g:nnyg + x_5g] = j5DB.astype(XTiz.float64)
dTW_[0:x_5g, :] = XTiz.flipud(dTW_[x_5g:2 * x_5g, :])
dTW_[Yjog + x_5g:Yjog + 2 * x_5g, :] = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cakp(qw7D, GUum, xgWT=None):\n EZd9 = tuple((LFlW + zNig + _tIi for zNig, (LFlW, _tIi) in zip(qw7D.shape, GUum)))\n T4Wy = 'F' if qw7D.flags.fnc else 'C'\n H5Km = oyIN.empty(EZd9, dtype=qw7D.dtype, order=T4Wy)\n if xgWT is not None:\n H5Km.fill(xgWT)\n Np6K = tuple((slice(LFlW, LFlW + zNi... | [
"0.6460345",
"0.6238403",
"0.61861277",
"0.6095269",
"0.6090862",
"0.60888755",
"0.6087641",
"0.6047931",
"0.604198",
"0.60220504",
"0.6019242",
"0.59746325",
"0.5960745",
"0.5948368",
"0.5938511",
"0.59360707",
"0.59350854",
"0.59166175",
"0.5891437",
"0.5877283",
"0.5843643... | 0.8216594 | 0 |
peak_finder A PeakFinder object. peak_fitter A PeakFitter object. properties Which properties to return, e.g. "x", "y", etc. | def FIMM(YKHO, ZWFy=None, OZAY=None, C9U5=None, **c_sp):
super(UN3b, YKHO).__init__(**c_sp)
YKHO.peak_finder = ZWFy
YKHO.peak_fitter = OZAY
YKHO.properties = C9U5
assert 'x' in YKHO.properties, "'x' is a required property."
assert 'y' in YKHO.properties, "'y' is a required property." | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aA_9(YKHO):\n TpFT = {}\n for Ra7F in YKHO.properties:\n TpFT[Ra7F] = YKHO.peak_fitter.getPeakProperty(Ra7F)\n if Ra7F == 'x':\n TpFT[Ra7F] -= float(YKHO.peak_finder.margin)\n elif Ra7F == 'y':\n TpFT[Ra7F] -= float(YKHO.peak_finder.margin)\n elif Ra7F ==... | [
"0.695204",
"0.6749205",
"0.6444316",
"0.6166085",
"0.61298215",
"0.6098216",
"0.6097876",
"0.5991825",
"0.5964867",
"0.5961722",
"0.5901229",
"0.5693157",
"0.56395674",
"0.56355584",
"0.56012124",
"0.55866766",
"0.55831134",
"0.5548459",
"0.5541811",
"0.55392635",
"0.5527200... | 0.7671931 | 0 |
Return the margin to add to the image for finding/fitting. | def fL72(YKHO):
assert False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xdRP(YKHO):\n MUcb.lib.geometry_get_margin.restype = Z9rn.c_float\n return MUcb.lib.geometry_get_margin(YKHO._geometry)",
"def MVIL(YKHO):\n return YKHO._generate_spacing_info(YKHO.config['margin'])",
"def MVIL(YKHO) -> AzJI[int, int, int, int]:\n return (YKHO.imargin[0].to_pixels(YKHO.parent.w... | [
"0.74821776",
"0.74392563",
"0.7304482",
"0.71689236",
"0.6940478",
"0.67452353",
"0.66729534",
"0.6590329",
"0.6561296",
"0.65026",
"0.6280023",
"0.62775594",
"0.626785",
"0.6207382",
"0.61792797",
"0.61053485",
"0.60813314",
"0.6078401",
"0.6021749",
"0.60151803",
"0.598012... | 0.7197946 | 3 |
Return maximum z position for the PSF in nanometers. | def JeWN(YKHO):
return YKHO.zmax | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KJKU(YKHO):\n return YKHO.get_max_value(YKHO.Z_INDEX)",
"def zXLc(YKHO):\n Wnz2 = YKHO.params[0]\n return max([k19e.zmax for k19e in Wnz2])",
"def zXLc(YKHO):\n Wnz2 = YKHO.params[0]\n return max([k19e.zmax for k19e in Wnz2])",
"def zXLc(YKHO):\n return YKHO._zi",
"def KYsm(epBp, lhKE... | [
"0.7448265",
"0.7246991",
"0.7246991",
"0.7183903",
"0.66504174",
"0.6402911",
"0.63063383",
"0.6214927",
"0.62002575",
"0.61642313",
"0.6149559",
"0.61111695",
"0.6093739",
"0.6079765",
"0.6060686",
"0.59669477",
"0.59584385",
"0.5946841",
"0.5943993",
"0.59124416",
"0.58788... | 0.74356306 | 1 |
Return the minimum z position for the PSF in nanometers. | def Rn8a(YKHO):
return YKHO.zmin | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nqtH(YKHO):\n return YKHO.get_min_value(YKHO.Z_INDEX)",
"def _nqT(YKHO, ZYDH=None):\n if ZYDH is None:\n ZYDH = YKHO.num\n with YKHO.fix_evaluator():\n NArs = oyIN.linspace(0, oyIN.pi, ZYDH)\n aXRF = lambda xqoZ: YKHO.diff(xqoZ)[0]\n Jw7X = [aXRF(xqoZ) for xqoZ in NArs]\n... | [
"0.753644",
"0.6510906",
"0.6315002",
"0.6168882",
"0.61566377",
"0.60720825",
"0.60312086",
"0.6016893",
"0.6014745",
"0.59864134",
"0.5984826",
"0.5980652",
"0.5956168",
"0.5945482",
"0.5922578",
"0.59159184",
"0.58925366",
"0.58721316",
"0.5871364",
"0.58615553",
"0.583937... | 0.7437964 | 1 |
Returns a spreadsheet for processing. | def kIbW(YRbF):
pmON = pMnT.get_parties_spreadsheet(YRbF)
if not Hy7s.path.exists(pmON):
raise IOError()
return Uvpv.load_workbook(pmON, read_only=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vk2p(YKHO) -> Sa_m.Spreadsheet:\n eHNT, YPa5 = YKHO.to_workbook()\n YPa5.close()\n shXE = Sa_m.Spreadsheet(eHNT)\n return shXE",
"def fKJz(YKHO):\n return Eorv.Spreadsheets(YKHO)",
"def shXE(YKHO, H5ew):\n return Eorv.Spreadsheet(YKHO, H5ew)",
"def v34T():\n GoZD = None\n if Hy7s.... | [
"0.7508088",
"0.70546705",
"0.6989037",
"0.6753166",
"0.66771746",
"0.6397674",
"0.63626623",
"0.6356544",
"0.63145155",
"0.62679905",
"0.62404364",
"0.6226204",
"0.61786735",
"0.6130538",
"0.6080748",
"0.60611695",
"0.60382074",
"0.6012392",
"0.59984195",
"0.598874",
"0.5977... | 0.638951 | 6 |
Return index of x in listy, and None if it doesn't exist | def neBz(ISMy, WKvO):
return ISMy.index(WKvO) if WKvO in ISMy else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oQat(WKvO, LVAh):\n if LVAh in WKvO:\n return WKvO.index(LVAh)\n else:\n return None",
"def vTaZ(YKHO, WKvO, LVAh):\n return list(YKHO.ifind_at(WKvO, LVAh))",
"def d6pt(jzdc, WKvO):\n YRbF = SPuy(jzdc, WKvO)\n if YRbF != len(jzdc) and jzdc[YRbF] == WKvO:\n return YRbF\n ... | [
"0.83567804",
"0.67176056",
"0.6712219",
"0.66661775",
"0.66661775",
"0.66381544",
"0.65499777",
"0.6406221",
"0.6258568",
"0.6207031",
"0.6204028",
"0.6141942",
"0.6112859",
"0.61122996",
"0.6099335",
"0.59858006",
"0.5942153",
"0.5941707",
"0.59304327",
"0.59229887",
"0.591... | 0.8659387 | 0 |
Removes image extensions from paths. | def dbzI(pmON):
for Fst3 in H7iW:
pmON = pmON.replace('.%s' % Fst3, '')
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aXQ8(pmON):\n RRlC = Hy7s.listdir(pmON)\n for nUeQ in RRlC:\n if nUeQ.endswith('.jpg'):\n Hy7s.remove(Hy7s.path.join(pmON, nUeQ))",
"def K9tC():\n for nUeQ in Hy7s.listdir('.'):\n if nUeQ.endswith('.png'):\n Hy7s.remove(nUeQ)",
"def QTwE(CBZq):\n if isinstanc... | [
"0.6632835",
"0.6574495",
"0.65395063",
"0.6518795",
"0.61967963",
"0.6136677",
"0.6127496",
"0.6116261",
"0.6111247",
"0.60311663",
"0.6030781",
"0.6011465",
"0.60058314",
"0.59735197",
"0.5929311",
"0.5912986",
"0.5827785",
"0.58202034",
"0.5816234",
"0.5813576",
"0.5794071... | 0.75678253 | 0 |
Test that the template name has something. | def JZUv():
for a1PO in DqlU:
assert len(a1PO.name) > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JEr9(YKHO, rPXJ):\n Ux0P = Hy7s.path.join(SOq6('DEFAULT_TEMPLATE_PATH'), rPXJ, '__init__.ini')\n if YKHO._check_file_exists(Ux0P) and YKHO._check_access(Ux0P, Hy7s.R_OK):\n return True\n else:\n return False",
"def ARTG():\n assert len(DqlU) > 0",
"def tYbK(YKHO):\n pmON = str(... | [
"0.71347404",
"0.7088506",
"0.6971249",
"0.6902723",
"0.68294173",
"0.6801981",
"0.6786713",
"0.6785868",
"0.6733738",
"0.6691268",
"0.6662116",
"0.6625422",
"0.66211677",
"0.66208905",
"0.6594956",
"0.65942675",
"0.65342337",
"0.646388",
"0.64468247",
"0.64204335",
"0.640980... | 0.81505466 | 0 |
Constructor method to initialize the cell object | def FIMM(YKHO, rdlD=None, iVRZ=None, Bc7X=None):
YKHO.row = rdlD
YKHO.column = iVRZ
YKHO.occupied = False
YKHO.mark = Bc7X
YKHO.hit_count = 0
YKHO.ship = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, WKvO, LVAh, type, id):\n riCw.__init__(YKHO, WKvO, LVAh, type, id, 'S')",
"def FIMM(YKHO, JnVq):\n YKHO.cells = JnVq\n YKHO.idx = None\n YKHO.group = None\n YKHO.rows_in_group = None\n YKHO.starred = None",
"def FIMM(YKHO, TVTK=7, H2v2=7):\n YKHO.cell = [[KAvf for Mkmy in ra... | [
"0.7640625",
"0.7637247",
"0.7625675",
"0.7416435",
"0.73724324",
"0.732038",
"0.72490895",
"0.7246748",
"0.72179824",
"0.72103155",
"0.7117393",
"0.7115862",
"0.70671237",
"0.70537144",
"0.7048215",
"0.7029255",
"0.70058274",
"0.69743216",
"0.69638",
"0.6957414",
"0.69477963... | 0.631899 | 77 |
Method to check whether a cell has a destroyed ship or not. | def l01t(YKHO):
if YKHO.mark == uwaB.DEAD_SHIP_MARK:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wA9J(YKHO) -> bool:\n return YKHO._coords == YKHO.damaged_cells",
"def UZ_k(YKHO):\n YKHO.units.pop()\n return len(YKHO.units) == 0",
"def cwES(YKHO):\n YKHO.shipHealth -= 1\n if YKHO.shipHealth > 0:\n YKHO.startInvincibilty()\n return True\n else:\n return False",
... | [
"0.73538667",
"0.6442408",
"0.63842756",
"0.6360512",
"0.635092",
"0.63366675",
"0.62955135",
"0.6240572",
"0.6236489",
"0.6189574",
"0.6168497",
"0.61454564",
"0.6129832",
"0.6052333",
"0.6047097",
"0.6046595",
"0.6024927",
"0.602376",
"0.6011105",
"0.5969197",
"0.5960932",
... | 0.80303735 | 0 |
Converts a time in minutesandhalves to an integer number of seconds. | def G8lt(KCHu):
KCHu = KCHu.strip()
zqxI = KCHu.endswith('H')
KCHu = KCHu.strip('H ')
return (int(KCHu) * 60 if KCHu else 0) + (30 if zqxI else 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hpAa(ITS7):\n O66n = ITS7.hour * 60 + ITS7.minute\n C6wh = O66n * 60 + ITS7.second\n return C6wh",
"def hpAa(YKHO):\n O66n = YKHO.hour * 60 + YKHO.minute\n C6wh = O66n * 60 + YKHO.second\n return C6wh",
"def bQkZ(ITS7):\n return 3600 * ITS7",
"def hpAa(YKHO):\n O66n = YKHO.hour * ... | [
"0.84157294",
"0.8202632",
"0.80790406",
"0.7889102",
"0.7819151",
"0.7785367",
"0.7744494",
"0.75738543",
"0.7565239",
"0.7548273",
"0.75057244",
"0.7438854",
"0.7416682",
"0.7411561",
"0.73923975",
"0.72641695",
"0.72484",
"0.7228742",
"0.7207754",
"0.71911055",
"0.71769804... | 0.0 | -1 |
Returns a dictionary mapping the variational form's parameters to randomly sampled values. | def BHMw(YKHO, q7In):
NLsT = list(YKHO.circuit.parameters)
TVtW = zip(NLsT, q7In)
y8rd = dict(TVtW)
return y8rd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def es3T():\n Ylbp = dict()\n Ylbp['population_size'] = tuKI.randrange(2, 21)\n Ylbp['mutation_prob'] = tuKI.choice([0.02, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5])\n Ylbp['crossover'] = tuKI.choice([True, False])\n Ylbp['selection'] = tuKI.choice([True, False])\n Ylbp['sigma'] = tuKI.choice([0.1, 0.25, 0.... | [
"0.7222752",
"0.69664747",
"0.6960328",
"0.67369616",
"0.654479",
"0.65353614",
"0.64399874",
"0.6396368",
"0.63910115",
"0.6367922",
"0.63623846",
"0.62295747",
"0.62271935",
"0.6223884",
"0.62208706",
"0.6204946",
"0.61936307",
"0.61817944",
"0.61411333",
"0.6139908",
"0.61... | 0.6208158 | 15 |
Initialize this neural network. | def FIMM(YKHO, Zmlb: int, CLda: int, Norb: int, b0Ix: float, ISIR: int):
super().__init__()
YKHO.input_size = Zmlb * 2
YKHO.num_layers = CLda
YKHO.hidden_dim = Norb
YKHO.output_size = Zmlb
YKHO.rnn = U78l.RNN(YKHO.input_size, YKHO.hidden_dim, YKHO.num_layers, batch_first=True)
YKHO.fc = U78l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, PRvr):\n YKHO.current_state = [0.0] * PRvr\n YKHO.weights = oyIN.zeros([PRvr * PRvr])\n YKHO.neuron_count = PRvr",
"def FIMM(YKHO, Zt8E, dIM5, yB6h=None, NCJH=None, prGP=None):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfW... | [
"0.74480855",
"0.737668",
"0.7364146",
"0.73508215",
"0.73390734",
"0.73275644",
"0.7320305",
"0.73163414",
"0.729676",
"0.72839534",
"0.7262423",
"0.72310257",
"0.7211808",
"0.71855086",
"0.7182377",
"0.7174805",
"0.71719444",
"0.7157335",
"0.71380174",
"0.7103189",
"0.70481... | 0.0 | -1 |
Sets the id of this GetUniverseAncestries200Ok. | def id(YKHO, id):
if id is None:
raise ValueError('Invalid value for `id`, must not be `None`')
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)",
"def id(YKHO, id):\n YKHO._id = id",... | [
"0.55627495",
"0.556244",
"0.5530395",
"0.539364",
"0.53707707",
"0.5337645",
"0.5337645",
"0.5337645",
"0.5337645",
"0.5337645",
"0.53365433",
"0.53365433",
"0.53365433",
"0.53365433",
"0.53365433",
"0.53365433",
"0.53365433",
"0.53365433",
"0.53365433",
"0.53365433",
"0.533... | 0.0 | -1 |
Sets the name of this GetUniverseAncestries200Ok. | def mWFP(YKHO, mWFP):
if mWFP is None:
raise ValueError('Invalid value for `name`, must not be `None`')
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def WZrJ(YKHO, mWFP: str) -> None:\n _e0h.wlr_seat_set_name(YKHO._ptr, mWFP.encode())",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n ... | [
"0.543439",
"0.54118425",
"0.52682024",
"0.52682024",
"0.52682024",
"0.52682024",
"0.52682024",
"0.525187",
"0.52480674",
"0.5232304",
"0.5211759",
"0.5211759",
"0.5175062",
"0.51648355",
"0.51648355",
"0.51648355",
"0.51648355",
"0.516112",
"0.5147719",
"0.5135887",
"0.51286... | 0.0 | -1 |
Sets the bloodline_id of this GetUniverseAncestries200Ok. | def gs1b(YKHO, gs1b):
if gs1b is None:
raise ValueError('Invalid value for `bloodline_id`, must not be `None`')
YKHO._bloodline_id = gs1b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kotV(YKHO, kotV):\n YKHO._blood_group = kotV",
"def kI_D(YKHO, kI_D):\n YKHO._line_item_id = kI_D",
"def sMcj(YKHO, sMcj):\n YKHO._player_b_id = sMcj",
"def ZF44(YKHO, zFiD, vmMD):\n YKHO._lines[zFiD] = vmMD",
"def kZaW(YKHO, kZaW):\n YKHO._timesheet_line_id = kZaW",
"def HMFB(YKHO, HM... | [
"0.5008046",
"0.4894315",
"0.47884497",
"0.46749923",
"0.46240598",
"0.45920947",
"0.4590707",
"0.45891026",
"0.4559923",
"0.4507638",
"0.44804582",
"0.4452775",
"0.4417231",
"0.44116056",
"0.43656263",
"0.43526465",
"0.43448877",
"0.4331241",
"0.4262733",
"0.4261366",
"0.425... | 0.6813667 | 0 |
Sets the short_description of this GetUniverseAncestries200Ok. | def xf1D(YKHO, xf1D):
YKHO._short_description = xf1D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xf1D(YKHO, xf1D):\n YKHO._short_description = xf1D",
"def ke0X(YKHO):\n return None",
"def xf1D(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'short_description')",
"def xf1D(YKHO, xf1D):\n if xf1D is None:\n raise ValueError('Invalid value for `short_description`, must not be `No... | [
"0.613938",
"0.56611496",
"0.55781734",
"0.5508479",
"0.5501185",
"0.5501185",
"0.52354795",
"0.520119",
"0.51488686",
"0.5082632",
"0.5064031",
"0.5059931",
"0.50513244",
"0.50335985",
"0.5029674",
"0.5026287",
"0.5019935",
"0.49796677",
"0.4969308",
"0.4956616",
"0.49438858... | 0.6052721 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, hXUf):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
displays the home page | def Sn26():
OjqV = Hw0P.query.all()
return TvZl('index.html', pet_list=OjqV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def kZiy():\n return TvZl('home.html', title='Home')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"de... | [
"0.84273356",
"0.8338485",
"0.83180165",
"0.83047885",
"0.8292919",
"0.82712096",
"0.8260174",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",
"0.8221521",... | 0.0 | -1 |
Returns the Squared Loss between Q values currently predicted by the network, and Q_target. | def L8kW(YKHO, wspz, AAe8):
return U78l.SquareLoss(YKHO.run(wspz), AAe8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N2xz(YKHO, icXX, PN4h, VlQB, gY8g):\n d_oh = icXX.log_prob(PN4h).mean(dim=0).sum()\n bISY = dzAH(VlQB, gY8g).mean(dim=0).sum()\n return -d_oh + bISY",
"def wOmn(YKHO):\n QTBn, XeOP, vOGg, rxHc, _ins = YKHO.replay_buffer.sample(YKHO.batch_size)\n QTBn = ht2j.FloatTensor(QTBn)\n rxHc = ht2j.F... | [
"0.6680116",
"0.6401714",
"0.6361018",
"0.6225185",
"0.6174637",
"0.6165812",
"0.615276",
"0.6120093",
"0.60753036",
"0.6071159",
"0.60334575",
"0.60066515",
"0.6001974",
"0.5964521",
"0.59473485",
"0.5940789",
"0.59046274",
"0.59021187",
"0.5863922",
"0.5835014",
"0.58275324... | 0.77711356 | 0 |
Return an iterator for n values read from stdin | def Twdk(exwG):
for YRbF in Ni9Y(exwG):
yield int(_G0M().strip()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b86o():\n eHNT = open(SuPA, 'r')\n UufE = int(eHNT.readline())\n for YRbF in range(UufE):\n yield [YRbF + 1, eHNT.readline().split()]\n eHNT.close()",
"def zs73(YKHO, exwG=None):\n if not YKHO._input:\n raise Nbjc.PipeTypeException(YKHO)\n Aofo = []\n while exwG == None or ... | [
"0.70083684",
"0.6911841",
"0.65581214",
"0.6388255",
"0.618351",
"0.61292666",
"0.61286694",
"0.60789806",
"0.60246277",
"0.60153824",
"0.5961255",
"0.59231836",
"0.5872982",
"0.585636",
"0.58443975",
"0.5840999",
"0.58171666",
"0.58077747",
"0.5800548",
"0.5799448",
"0.5766... | 0.79734826 | 1 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)",
"def rEkR():\n return H66R.Board()",
"def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(Y... | [
"0.80825067",
"0.78919244",
"0.7534521",
"0.72784024",
"0.72784024",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",
"0.72256464",... | 0.0 | -1 |
Returns player who has the next turn on a board. | def oyg0(iBIi):
if iBIi == W9gz():
return EcVT
oQ8M = 0
fs4O = 0
for YRbF in iBIi:
oQ8M += YRbF.count(EcVT)
fs4O += YRbF.count(LTX_)
if (oQ8M + fs4O) % 2 == 1:
return LTX_
else:
return EcVT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None",
"def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX... | [
"0.79114103",
"0.75227296",
"0.74222565",
"0.7371223",
"0.71971357",
"0.69781494",
"0.69620293",
"0.6927192",
"0.6921247",
"0.6902451",
"0.6849014",
"0.6841733",
"0.6838688",
"0.682715",
"0.6776798",
"0.6776798",
"0.6771467",
"0.6713596",
"0.67088133",
"0.66568995",
"0.661671... | 0.5969825 | 95 |
Returns the optimal action for the current player on the board. | def SR1K(iBIi):
if f9TP(iBIi):
return None
ZBvV = []
T1J4 = []
F8gG = []
ZisD = []
def bQ6z(iBIi):
Ty9i = -float('inf')
if f9TP(iBIi):
return f7Dd(iBIi)
for XeOP in xASv(iBIi):
Ty9i = max(Ty9i, dgIT(Aofo(iBIi, XeOP)))
return Ty9i
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction",
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,... | [
"0.7766856",
"0.76323676",
"0.75855315",
"0.75285065",
"0.75175256",
"0.74667144",
"0.7460485",
"0.74263537",
"0.7416421",
"0.73943585",
"0.7375846",
"0.7333894",
"0.73147565",
"0.7306611",
"0.7284639",
"0.72650313",
"0.72650313",
"0.7250975",
"0.72331834",
"0.7203267",
"0.71... | 0.0 | -1 |
The application should never directly report who the admin is. This method reports if the current authenticated user is the admin. | def MtA2(YKHO, YEnM):
try:
CBIr = YKHO.context.get('request').user
except Exception:
return False
if CBIr == YEnM.admin:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(YKHO):\n if not YKHO.current_user:\n return False\n else:\n return YKHO.current_user in ['1']",
"def _Kb1(YKHO):\n return YKHO.admin",
"def _Kb1(YKHO):\n return YKHO.admin",
"def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return ... | [
"0.8340453",
"0.82293767",
"0.8200761",
"0.8184014",
"0.8165293",
"0.8111697",
"0.8074325",
"0.8023838",
"0.8012995",
"0.8012995",
"0.7999914",
"0.7975382",
"0.7925982",
"0.7920057",
"0.7899573",
"0.7829601",
"0.78175044",
"0.7813338",
"0.779548",
"0.7750622",
"0.77310234",
... | 0.781479 | 17 |
Takes as input the current state and outputs an augmented state Augmented state = [x_k u_k1 x_k1 ...] (MUST BE FLAT!) The state is then fed in the action, giving the next action u_k, which then updates the augmented state It is important to average down from the memory size to the output size Each output tensor will co... | def FIMM(YKHO, vVLY, TcwO, f0f2=40, a6Jb=11):
YKHO.memory_size = f0f2
YKHO.output_size = a6Jb
YKHO.action_size = TcwO
YKHO.state_size = vVLY
YKHO.output_len = a6Jb * vVLY + (a6Jb - 1) * TcwO
YKHO.memory = [[oyIN.zeros(vVLY), oyIN.zeros(TcwO)]] * f0f2
YKHO.last_state = None
YKHO.last_augm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, QTBn):\n YKHO.last_state = QTBn\n Zy7j, TJJi = YKHO.average()\n Zy7j = oyIN.append(QTBn.cpu().numpy(), Zy7j).astype(oyIN.float32)\n TJJi = oyIN.append([], TJJi).astype(oyIN.float32)\n vR1Q = oyIN.append(Zy7j, TJJi)\n YKHO.last_augmented = vR1Q\n return ht2j.tensor(vR1Q).to(begE)... | [
"0.7188881",
"0.7175103",
"0.6422392",
"0.64140266",
"0.63504654",
"0.6272626",
"0.6234533",
"0.6232153",
"0.62184453",
"0.62008435",
"0.611963",
"0.611963",
"0.61001074",
"0.6095984",
"0.60957515",
"0.60509706",
"0.60399306",
"0.5975184",
"0.5956459",
"0.59530383",
"0.595125... | 0.6785837 | 2 |
Return the last data value for this key, or [] if it's an empty list; raises KeyError if not found. | def OP2O(YKHO, H5ew):
bCES = dict.__getitem__(YKHO, H5ew)
try:
return bCES[-1]
except IndexError:
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghnH(YKHO, H5ew, WmM4=None):\n hkxX = YKHO.getlist(H5ew)\n return hkxX[-1] if hkxX else WmM4",
"def OP2O(YKHO, H5ew):\n if not YKHO.data.has_key(H5ew):\n return []\n else:\n return YKHO.data[H5ew]",
"def NMoC(YKHO, G1Hx, WmM4=None):\n return super(dZJl, YKHO).get(G1Hx, [WmM4])[... | [
"0.76607096",
"0.6740562",
"0.6687297",
"0.63893616",
"0.6354344",
"0.63419735",
"0.63393205",
"0.622576",
"0.62249166",
"0.6201697",
"0.6134014",
"0.6133728",
"0.6099361",
"0.6090145",
"0.60838026",
"0.6083797",
"0.6073274",
"0.60474706",
"0.6022747",
"0.6000882",
"0.5989406... | 0.72470164 | 1 |
Return a list of (key, value) pairs, where value is the last item in the list associated with the key. | def DumB(YKHO):
return [(H5ew, YKHO[H5ew]) for H5ew in YKHO.keys()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghnH(YKHO, H5ew, WmM4=None):\n hkxX = YKHO.getlist(H5ew)\n return hkxX[-1] if hkxX else WmM4",
"def OP2O(YKHO, H5ew):\n bCES = dict.__getitem__(YKHO, H5ew)\n try:\n return bCES[-1]\n except IndexError:\n return []",
"def ivr0(H5ew):\n return e5kH.list_values(key=H5ew)",
"d... | [
"0.6581079",
"0.64002573",
"0.61846876",
"0.6175821",
"0.60306066",
"0.59634405",
"0.5883523",
"0.5826571",
"0.5821172",
"0.581535",
"0.5776787",
"0.5776787",
"0.57693726",
"0.5759618",
"0.5749633",
"0.5742428",
"0.57389444",
"0.5714732",
"0.5672345",
"0.56674993",
"0.5657259... | 0.5639779 | 21 |
Return a list of (key, list) pairs. | def UHhk(YKHO):
return dict.items(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZVgY(dict):\n list = []\n for H5ew in dict:\n list.append(H5ew)\n return list",
"def mFWN(YKHO) -> x1iM[AzJI[YsrP, aETW]]:\n F3kG, w73T = YKHO.size()\n if F3kG == 0 and w73T == 0:\n return []\n sjXb = []\n hkxX = []\n for rdpC in YKHO.hashTable:\n if rdpC.count !=... | [
"0.75286436",
"0.70711476",
"0.706734",
"0.70502084",
"0.70420957",
"0.7037334",
"0.69474477",
"0.6907425",
"0.6881616",
"0.6874674",
"0.6874674",
"0.6852168",
"0.6826466",
"0.6818258",
"0.679182",
"0.67879117",
"0.6781128",
"0.6781128",
"0.6745045",
"0.67025524",
"0.66662866... | 0.66372573 | 25 |
Returns a copy of this object. | def jth9(YKHO):
import jth9
ZPxW.__setitem__ = dict.__setitem__
U7YL = jth9.deepcopy(YKHO)
ZPxW.__setitem__ = ZPxW._setitem_list
return U7YL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def FzJk(YKHO):\n return YKHO.copy()",
"def jth9(YKHO):\n return jth9(YKHO)",
"def jth9(YKHO):\n return jt... | [
"0.90618587",
"0.90618587",
"0.90618587",
"0.90618587",
"0.90363246",
"0.9003144",
"0.9003144",
"0.899227",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
... | 0.0 | -1 |
Fixes the trailing slash in an url. If the user requests an container object without an slash it will appends one. Requested an non container object with an traling slash will result in an redirect to the same url without it. the QUERY_STRING won't get lost but post data would. So don't forget the slash problem in your... | def FDzg(PNq_, so27):
from colubrid.exceptions import HttpMoved
bD7m = NCC9(PNq_.get('SCRIPT_NAME', ''))
bD7m += NCC9(PNq_.get('PATH_INFO', ''))
xDcj = PNq_.get('QUERY_STRING', '')
wGBN = xDcj and '%s?%s' % (bD7m, xDcj) or bD7m
if wGBN and wGBN != '/':
if bD7m.endswith('/'):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slap(knv3):\n return knv3 if not knv3.endswith('/') else knv3[:-1]",
"def hB1x(YKHO, QePW):\n ddn9 = QePW.get_full_path()[:-1]\n if gCuF.DEBUG and QePW.method in ('POST', 'PUT', 'PATCH'):\n raise RuntimeError(\"You called this URL via %(method)s, but the URL doesn't end in a slash and you hav... | [
"0.6418786",
"0.63428855",
"0.6202414",
"0.5977207",
"0.5905895",
"0.5896143",
"0.5848401",
"0.5799246",
"0.578113",
"0.5763919",
"0.5733415",
"0.5714121",
"0.5606476",
"0.55059355",
"0.5503102",
"0.5493641",
"0.5476705",
"0.5458537",
"0.5446212",
"0.54270905",
"0.54250133",
... | 0.68248594 | 0 |
Gets the label of the AutoStorage account to use in the credentials.json file. | def ZtJ0():
return 'autostorage_account' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Gx(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_account_name')",
"def I6MY(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_account')",
"def lyVV(YKHO):\n try:\n ZrNc = YKHO.instance_metadata.get_tags()['bkp_storage_account']\n G9jH.debug('Using storage account name from instance m... | [
"0.7202679",
"0.70836556",
"0.6945382",
"0.692499",
"0.692499",
"0.6893106",
"0.6624626",
"0.6624626",
"0.6580496",
"0.65676063",
"0.65478283",
"0.6478101",
"0.6438652",
"0.6438652",
"0.6352361",
"0.6346186",
"0.6346186",
"0.62148565",
"0.6213707",
"0.6208757",
"0.6200348",
... | 0.83873755 | 0 |
Parse json file to sessions | def vPsv(MpBF):
Aofo = {}
with open(MpBF, 'r') as jV9_:
try:
Aing = tyeH(jV9_)
for AIu6 in Aing['skip']:
Aofo[AIu6['ip']] = AIu6['os']
for AIu6 in Aing['add']:
Aofo[AIu6['ip']] = AIu6['os']
for AIu6 in Aing['upt']:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eD7y(YKHO):\n try:\n with open('sessions.json') as nUeQ:\n nPrm = qQXR.load(nUeQ)\n except:\n nPrm = {}\n return nPrm",
"def KxFu(pmON):\n fK8P = {}\n with open(pmON, 'r', encoding='utf-8') as eHNT:\n fK8P = qQXR.load(eHNT)\n return yhR6(fK8P)",
"def Aing(Y... | [
"0.74308985",
"0.7157992",
"0.6577723",
"0.5961422",
"0.59021497",
"0.58744043",
"0.5873925",
"0.5845056",
"0.58321995",
"0.5829582",
"0.58279693",
"0.5738574",
"0.5733757",
"0.56932986",
"0.5673642",
"0.5665678",
"0.56542474",
"0.5637395",
"0.5541343",
"0.55234337",
"0.55203... | 0.6068639 | 3 |
Returns a new byte array with the value increment by 1 | def mIhh(jzdc):
yvT9 = list(jzdc)
for YRbF in reversed(range(len(yvT9))):
if yvT9[YRbF] == 255:
yvT9[YRbF] = 0
else:
yvT9[YRbF] += 1
break
return bytes(yvT9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aYsJ(Fg_i):\n assert isinstance(Fg_i, jKi7.binary_type)\n Fg_i = bytearray(Fg_i)\n for YRbF in range(len(Fg_i) - 1, -1, -1):\n if Fg_i[YRbF] != 255:\n Fg_i[YRbF] += 1\n return bytes(Fg_i[:YRbF + 1])\n return None",
"def EAdr(YKHO):\n YKHO.data[YKHO.pointer] += 1\n ... | [
"0.664725",
"0.6576865",
"0.6350202",
"0.6128536",
"0.60853094",
"0.59910166",
"0.5948776",
"0.5924715",
"0.5904228",
"0.5866007",
"0.5857071",
"0.58046174",
"0.5795092",
"0.5695493",
"0.5645422",
"0.56406915",
"0.5618551",
"0.55242074",
"0.551152",
"0.54960227",
"0.54870826"... | 0.74212205 | 0 |
Determine if a adress POI is within the specified service area. function to see whether a certain household is within the service area of rest. The test criterion is a shapefile containing all places in the city of Amsterdam. Input is x and y coordinates of a house and a list of polygons of service area. If polygon_lis... | def db4m(WKvO, LVAh, Prn0=None, xi7b=None):
if Prn0 is None:
Prn0 = kyMZ(subsectie=xi7b)
AU8u = LBWB.geometry.Point(float(WKvO), float(LVAh))
for j5tF in Prn0:
if j5tF.contains(AU8u):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p4_Z(wF0t, raMf, Y6Km, qMXf, iH7q, RS0L):\n return Y6Km <= wF0t < Y6Km + iH7q and qMXf <= raMf < qMXf + RS0L",
"def sjXf(j5tF, AU8u):\n DF2e = xBlr.reduce(lambda V6IE, T8ck: V6IE and T8ck, [es0W.covers(AU8u) for es0W in j5tF.interiors]) if j5tF.interiors else False\n return j5tF.covers(AU8u) and (no... | [
"0.60924816",
"0.57769156",
"0.5754702",
"0.57249343",
"0.5721033",
"0.5711726",
"0.56726533",
"0.56571084",
"0.5651622",
"0.5651145",
"0.5640821",
"0.5617309",
"0.5589282",
"0.5576596",
"0.55749345",
"0.5539769",
"0.55323017",
"0.5528735",
"0.5515898",
"0.54999673",
"0.54966... | 0.7839224 | 0 |
Shift weight state initialization. | def FIMM(YKHO, PETh, **B2fa):
super(HYy5, YKHO).__init__(PETh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7WW(YKHO):\n uHk4(YKHO.norm0)",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def vB93(YKHO, wOp_=0.003):\n YKHO.l3.weight.data.uniform_(-wOp_, wOp_)\n YKHO.l3.bias.data.uniform_(-wOp_, wOp_)",
"def vB93(YKHO, wOp_=0.003):\n YKHO.l3.weight.data.uniform_(-wOp... | [
"0.6814883",
"0.67846644",
"0.67426896",
"0.67426896",
"0.6694248",
"0.6670333",
"0.661398",
"0.6610446",
"0.6610446",
"0.66008544",
"0.65538216",
"0.6542686",
"0.6479568",
"0.6479568",
"0.6479568",
"0.6467896",
"0.64614636",
"0.64555013",
"0.6453663",
"0.6453476",
"0.6432352... | 0.66523 | 6 |
Divide all RGB values by 255. | def _Dok(qfpW):
return [Z9rn / 255.0 for Z9rn in qfpW] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sDwq(swaY):\n return [round(swaY[0] * 255, 2), round(swaY[1] * 255, 2), round(swaY[2] * 255, 2)]",
"def G4x6(d7Eb, aM8h):\n return [min(255, int(round(aM8h * Z9rn))) for Z9rn in d7Eb]",
"def kwsU(YKHO):\n return YKHO.map_channels(lambda UksD: float(UksD) / 255.0)",
"def w5Mv(WKvO):\n return W... | [
"0.6586282",
"0.6556963",
"0.6442884",
"0.6397133",
"0.6396577",
"0.6394547",
"0.6362969",
"0.63608295",
"0.63585067",
"0.6346164",
"0.62541634",
"0.6236677",
"0.62055653",
"0.6196871",
"0.6182541",
"0.61518097",
"0.61449003",
"0.6133639",
"0.6123531",
"0.6116145",
"0.6102723... | 0.63448685 | 10 |
Calculate distance in HLS color space between Hue components of 2 colors | def PjXK(NXom: list, FaVm: list) -> float:
K_aW = h478.rgb_to_hls(*_Dok(NXom))
YLFb = h478.rgb_to_hls(*_Dok(FaVm))
H1Gb = min(abs(K_aW[0] - YLFb[0]), 1 - abs(K_aW[0] - YLFb[0]))
return H1Gb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MY7C(jCRz, ZfdO):\n ZRUQ = jCRz[0] - ZfdO[0]\n vPgk = jCRz[1] - ZfdO[1]\n JqGE = jCRz[2] - ZfdO[2]\n return PZyS(ZRUQ * ZRUQ + vPgk * vPgk + JqGE * JqGE)",
"def GEoZ(VTC_, sMGd):\n YGeH = iwQW(VTC_[0], VTC_[1], VTC_[2])\n td96 = iwQW(sMGd[0], sMGd[1], sMGd[2])\n NuMo = nNkg(YGeH, t_Ao)\n... | [
"0.78177077",
"0.74043524",
"0.73791105",
"0.73657477",
"0.731713",
"0.7142365",
"0.70769227",
"0.6976936",
"0.6909379",
"0.6849337",
"0.6838533",
"0.6518623",
"0.6508475",
"0.64364517",
"0.64090025",
"0.6251404",
"0.6089996",
"0.6031608",
"0.6027131",
"0.6021125",
"0.5949991... | 0.819869 | 0 |
Plot training loss over the 3 repeats for DMSO | def Wacq():
ckRy = [Hy7s.path.join(guDk, '../data/landscape_visualizations/DMSO/original/*'), Hy7s.path.join(guDk, '../data/landscape_visualizations/DMSO/repeat_a/*'), Hy7s.path.join(guDk, '../data/landscape_visualizations/DMSO/repeat_b/*')]
LZpg = QrM1.figure(figsize=(2.1, 1.5))
for pmON, qfpW, UXqs in zip... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBbd(eQSh):\n QrM1.plot(eQSh['train_loss_ind'], eQSh['train_loss'], label='Training loss')\n QrM1.plot(eQSh['val_loss_ind'], eQSh['val_loss'], label='Validation loss')\n QrM1.legend()\n QrM1.xlabel('Number of iterations')\n QrM1.ylabel('Loss')\n QrM1.show()",
"def mBbd(mbmi, LHiV):\n QrM... | [
"0.7457981",
"0.74050486",
"0.73433083",
"0.727126",
"0.7261747",
"0.69767016",
"0.69755757",
"0.69523245",
"0.6899693",
"0.6893466",
"0.68595153",
"0.6774496",
"0.67576045",
"0.67500454",
"0.67237324",
"0.6695659",
"0.66804385",
"0.6678503",
"0.6666483",
"0.66584903",
"0.665... | 0.680145 | 11 |
Policy Iteration Algorithm. Iteratively evaluates and improves a policy until an optimal policy is found. | def Erk3(sEAN, ngHX=ngHX, tzvm=1.0):
Qabx = oyIN.ones([sEAN.nS, sEAN.nA]) / sEAN.nA
sVD5 = False
while not sVD5:
cAlv = ngHX(Qabx, sEAN, discount_factor=tzvm)
sVD5 = True
for QTBn in range(sEAN.nS):
RXV3 = oyIN.argmax(Qabx[QTBn])
r8IL = -1
uc7Q = -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mdvf(V6IE, A3Vt, KMvS, q7In, Muoh, SYxB=1000000):\n sVD5 = False\n Qabx = oyIN.copy(Muoh)\n Uraj = 0\n while not sVD5 and Uraj < SYxB:\n Uraj += 1\n print('Policy Iteration: ', Uraj)\n Ty9i = rlBQ(Qabx, V6IE, A3Vt, KMvS, q7In)\n Qabx, sVD5 = kW0e(V6IE, A3Vt, KMvS, Qabx, ... | [
"0.78322613",
"0.76458544",
"0.76105034",
"0.75934285",
"0.74304587",
"0.7279287",
"0.70324534",
"0.6979689",
"0.6894392",
"0.68478245",
"0.68441045",
"0.6839532",
"0.6834337",
"0.6767179",
"0.6763606",
"0.6676275",
"0.66043675",
"0.65563804",
"0.65328753",
"0.6525436",
"0.64... | 0.70010376 | 7 |
we want to calculate the padding such that y.shape = x.shape for y = layer(x) output_height = input_height + 2padding_height kernel_height +1 (assuming stride=1) output_width = input_width + 2padding_width kernel_width + 1 (assuming stride=1) we want output_height = input_height and output_width = input_width. Therefor... | def Rx3r(YKHO, GhuM, Ot1W, _0fC=1):
if len(GhuM) == 3:
if _0fC != (1, 1):
raise ValueError('calc padding only works for stride=(1,1)')
dvgN = (0, 0)
if Ot1W[0] % 2 == 0 or Ot1W[1] % 2 == 0:
raise ValueError('the kernel size: {} is incompatible with CnnHighway. With th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WtCT(Ot1W, _0fC, ivFb):\n return -((-Ot1W - (Ot1W - 1) * (ivFb - 1)) // _0fC + 1) // 2",
"def OQzj(yR_P, input):\n L2pe = input[0].size()[-2:]\n yR_P.padding = Gu1e(L2pe, Ot1W, _0fC)",
"def LF2l(YKHO, GhuM: int, oLRV: int) -> int:\n dvgN = (oLRV - 1) * YKHO.stride + 1 - GhuM + YKHO.dilation * (... | [
"0.76626575",
"0.7321163",
"0.7197608",
"0.708562",
"0.7051485",
"0.70154095",
"0.7010198",
"0.6976139",
"0.6956503",
"0.6887719",
"0.683962",
"0.68388116",
"0.6809131",
"0.67358273",
"0.67209125",
"0.67181945",
"0.6712474",
"0.6710233",
"0.6702922",
"0.6700733",
"0.6700216",... | 0.77479404 | 0 |
Initialize this stack and push the given items, if any. | def FIMM(YKHO, OxJJ=None):
YKHO.list = _sfu()
if OxJJ is not None:
for ZfUD in OxJJ:
YKHO.push(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DumB=None):\n YKHO.root = None\n YKHO.size = 0\n if DumB is not None:\n for ZfUD in DumB:\n YKHO.insert(ZfUD)",
"def FIMM(YKHO, DumB=None):\n YKHO.root = None\n if DumB is not None:\n for ZfUD in DumB:\n YKHO.insert(ZfUD)",
"def FIMM(YKHO, DumB:... | [
"0.69392025",
"0.6930629",
"0.6834535",
"0.6790103",
"0.67478544",
"0.66215223",
"0.6531489",
"0.6289256",
"0.6279537",
"0.62618995",
"0.6247543",
"0.6240025",
"0.6232691",
"0.6232691",
"0.6223752",
"0.6184145",
"0.6169956",
"0.6132227",
"0.6101639",
"0.6101488",
"0.6085301",... | 0.0 | -1 |
Return a string representation of this stack. | def wHJl(YKHO):
return 'Stack({} items, top={})'.format(YKHO.length(), YKHO.peek()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.stack)",
"def wHJl(YKHO):\n return str(YKHO._stack_items)",
"def zAg0(YKHO):\n JcNi = [str(YRbF) for YRbF in YKHO._data]\n return 'STACK: { ' + ', '.join(JcNi) + ' }'",
"def zAg0(YKHO):\n JcNi = [str(YRbF) for YRbF in YKHO._data]\n return 'STACK: { ' + ', '... | [
"0.875712",
"0.8496123",
"0.83126545",
"0.83126545",
"0.8260822",
"0.821833",
"0.8193683",
"0.81315273",
"0.80790037",
"0.7979116",
"0.7880514",
"0.7880514",
"0.75088024",
"0.7413718",
"0.72869647",
"0.7161716",
"0.71416235",
"0.7118204",
"0.7117414",
"0.7117414",
"0.7117414"... | 0.76325303 | 14 |
Return the number of items in this stack. | def u54L(YKHO):
return YKHO.list.length() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return len(YKHO._stack_items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def GA... | [
"0.8947366",
"0.86162454",
"0.8375316",
"0.8325879",
"0.8325879",
"0.83244956",
"0.8303078",
"0.8239616",
"0.8109176",
"0.8082689",
"0.80800056",
"0.80773133",
"0.7993691",
"0.7993691",
"0.7948907",
"0.79432666",
"0.7746773",
"0.7693393",
"0.7693393",
"0.7693393",
"0.7693393"... | 0.7172348 | 64 |
Return the item on the top of this stack without removing it, or None if this stack is empty. | def T7C_(YKHO):
if YKHO.is_empty():
return None
return YKHO.list.head.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(YKHO):\n if YKHO.is_empty:\n return None\n else:\n return YKHO.data_container[0]",
"def tlxW(YKHO):\n if not YKHO.queue:\n return None\n return YKHO.queue[0]",
"def tlxW(YKHO):\n try:\n if YKHO.size() > 0:\n return YKHO.items[len(YKHO.items) - 1]\n... | [
"0.8053813",
"0.80241615",
"0.8007668",
"0.79588395",
"0.7937413",
"0.7834169",
"0.780374",
"0.77540207",
"0.7744664",
"0.77019894",
"0.7701925",
"0.76907986",
"0.76823837",
"0.7677907",
"0.76766515",
"0.7676261",
"0.7676261",
"0.76641786",
"0.7662657",
"0.76471835",
"0.76467... | 0.70650584 | 75 |
Initialize this stack and push the given items, if any. | def FIMM(YKHO, OxJJ=None):
YKHO.list = list()
if OxJJ is not None:
for ZfUD in OxJJ:
YKHO.push(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DumB=None):\n YKHO.root = None\n YKHO.size = 0\n if DumB is not None:\n for ZfUD in DumB:\n YKHO.insert(ZfUD)",
"def FIMM(YKHO, DumB=None):\n YKHO.root = None\n if DumB is not None:\n for ZfUD in DumB:\n YKHO.insert(ZfUD)",
"def FIMM(YKHO, DumB:... | [
"0.69388974",
"0.6930818",
"0.68330026",
"0.6789121",
"0.6745846",
"0.66202074",
"0.6530871",
"0.6292553",
"0.62764543",
"0.626445",
"0.6247166",
"0.6238415",
"0.6236083",
"0.6236083",
"0.6223231",
"0.6183762",
"0.61671233",
"0.6131931",
"0.6099847",
"0.60993683",
"0.6082777"... | 0.5897514 | 34 |
Return a string representation of this stack. | def wHJl(YKHO):
return 'Stack({} items, top={})'.format(YKHO.length(), YKHO.peek()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.stack)",
"def wHJl(YKHO):\n return str(YKHO._stack_items)",
"def zAg0(YKHO):\n JcNi = [str(YRbF) for YRbF in YKHO._data]\n return 'STACK: { ' + ', '.join(JcNi) + ' }'",
"def zAg0(YKHO):\n JcNi = [str(YRbF) for YRbF in YKHO._data]\n return 'STACK: { ' + ', '... | [
"0.875712",
"0.8496123",
"0.83126545",
"0.83126545",
"0.8260822",
"0.821833",
"0.8193683",
"0.81315273",
"0.80790037",
"0.7979116",
"0.7880514",
"0.7880514",
"0.75088024",
"0.7413718",
"0.72869647",
"0.7161716",
"0.71416235",
"0.7118204",
"0.7117414",
"0.7117414",
"0.7117414"... | 0.76325303 | 15 |
Return the number of items in this stack. | def u54L(YKHO):
return len(YKHO.list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return len(YKHO._stack_items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def GA... | [
"0.8946225",
"0.8613611",
"0.837812",
"0.83287156",
"0.83287156",
"0.83271325",
"0.8301425",
"0.82427084",
"0.81060874",
"0.8082052",
"0.80799097",
"0.80795205",
"0.79905564",
"0.79905564",
"0.79511595",
"0.7945412",
"0.7748217",
"0.769481",
"0.769481",
"0.769481",
"0.769481"... | 0.0 | -1 |
Return the item on the top of this stack without removing it, or None if this stack is empty. | def T7C_(YKHO):
if YKHO.is_empty():
return None
OeLM = len(YKHO.list) - 1
return YKHO.list[OeLM] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(YKHO):\n if YKHO.is_empty:\n return None\n else:\n return YKHO.data_container[0]",
"def tlxW(YKHO):\n if not YKHO.queue:\n return None\n return YKHO.queue[0]",
"def tlxW(YKHO):\n try:\n if YKHO.size() > 0:\n return YKHO.items[len(YKHO.items) - 1]\n... | [
"0.8054806",
"0.8025021",
"0.8009686",
"0.7960299",
"0.7938854",
"0.7835404",
"0.78052527",
"0.77555597",
"0.77463466",
"0.7703465",
"0.77028966",
"0.7692294",
"0.768339",
"0.76781785",
"0.76780415",
"0.7676852",
"0.7676852",
"0.7664764",
"0.76641655",
"0.76483756",
"0.764713... | 0.0 | -1 |
Sets the sample ID. | def id(YKHO, BWXx: str):
YKHO._id = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nuqe(YKHO, BWXx):\n return YKHO.getDbRecord().setColumnValue(ZkEL, BWXx)",
"def ekm0(YKHO, id):\n raise NotImplementedError('must be implemented in subclass')",
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def f6Qh(YKHO, BWXx):\n pass",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
... | [
"0.8281432",
"0.6702385",
"0.660846",
"0.65645576",
"0.65269643",
"0.6455361",
"0.6454219",
"0.64475507",
"0.64471686",
"0.63955015",
"0.6380561",
"0.63388795",
"0.63388795",
"0.63388795",
"0.63388795",
"0.63388795",
"0.63388795",
"0.63388795",
"0.63388795",
"0.63388795",
"0.... | 0.0 | -1 |
Gets a writer that writes the same format as this reader reads. Any common options between the reader and writer are copied. | def fNaR(YKHO) -> 'SpectrumWriter':
p93H = YKHO.get_writer_class()
Cx8Z = YKHO.get_common_options(p93H)
eWb7 = YKHO.get_options_sub_list(Cx8Z)
return p93H(eWb7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fNaR(YKHO):\n return YKHO.writer",
"def fNaR(FYKK, gGnb):\n if oWPI(FYKK):\n return cqGX(FYKK, gGnb)\n elif RW__(FYKK):\n return gQA4(FYKK, gGnb)\n else:\n raise ValueError('Could not get reader for %s' % FYKK)",
"def WJI9(YKHO):\n return YKHO._w",
"def zflB(YKHO, qIxc... | [
"0.6598818",
"0.6569548",
"0.6349664",
"0.6074876",
"0.5650704",
"0.56017554",
"0.55681425",
"0.5419384",
"0.5414107",
"0.5212463",
"0.51979506",
"0.51595885",
"0.51360756",
"0.5062754",
"0.5007139",
"0.4971488",
"0.49403208",
"0.4939057",
"0.48842028",
"0.4823712",
"0.479807... | 0.72911686 | 0 |
Gets a reader that reads the same format as this writer writes. Any common options between the reader and writer are copied. | def _QmQ(YKHO) -> ozT7:
yNgc = YKHO.get_reader_class()
Cx8Z = YKHO.get_common_options(yNgc)
eWb7 = YKHO.get_options_sub_list(Cx8Z)
return yNgc(eWb7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N5Pj(YKHO):\n return YKHO._reader",
"def N5Pj(YKHO):\n return YKHO._r",
"def fNaR(FYKK, gGnb):\n if oWPI(FYKK):\n return cqGX(FYKK, gGnb)\n elif RW__(FYKK):\n return gQA4(FYKK, gGnb)\n else:\n raise ValueError('Could not get reader for %s' % FYKK)",
"def mh7c(YKHO, **B... | [
"0.6180682",
"0.61681384",
"0.59333414",
"0.5717509",
"0.5630187",
"0.5630092",
"0.5416142",
"0.53299123",
"0.53185266",
"0.5316401",
"0.5315081",
"0.5284894",
"0.5094372",
"0.50838363",
"0.50801265",
"0.5064711",
"0.5054141",
"0.4997511",
"0.49943015",
"0.48969626",
"0.48958... | 0.714092 | 0 |
Select several files from a file dialog to create entries | def DrFd(YKHO, QePW, *qIxc, **B2fa):
try:
XSj5 = YKHO.request.user.profile.Window_path
MVVZ = U9eF(XSj5)
MVVZ = [geyT[:-4].replace('BF_', '') for geyT in MVVZ if '.tif' in geyT and '.xml' not in geyT and ('_BF_' in geyT)]
lSNA = [geyT[0] for geyT in ao30.objects.values_list('slug')]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qvKU(YKHO):\n iumf = []\n YKHO.fileIDs = ''\n YKHO.caseIDs = ''\n DpUl = YKHO.settings['conn'].cursor()\n DpUl.execute('select id, name, status from source')\n Aofo = DpUl.fetchall()\n for rdlD in Aofo:\n iumf.append({'id': rdlD[0], 'name': rdlD[1], 'status': rdlD[2]})\n YKHO... | [
"0.7737599",
"0.72902584",
"0.7160352",
"0.7138926",
"0.7086406",
"0.70838773",
"0.6933529",
"0.69325805",
"0.69195807",
"0.6869528",
"0.6867541",
"0.6862612",
"0.68321353",
"0.6814722",
"0.6790414",
"0.67435807",
"0.6723224",
"0.66985244",
"0.6696358",
"0.669432",
"0.6690398... | 0.0 | -1 |
Select several files from a file dialog to create entries | def DrFd(YKHO, QePW, *qIxc, **B2fa):
try:
XSj5 = YKHO.request.user.profile.VideoExperiment_path
MVVZ = U9eF(XSj5)
MVVZ = [geyT[:-4] for geyT in MVVZ if '.csv' in geyT and 'sync' not in geyT]
lSNA = [geyT[0] for geyT in H0Pz.objects.values_list('slug')]
for nUeQ in MVVZ:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qvKU(YKHO):\n iumf = []\n YKHO.fileIDs = ''\n YKHO.caseIDs = ''\n DpUl = YKHO.settings['conn'].cursor()\n DpUl.execute('select id, name, status from source')\n Aofo = DpUl.fetchall()\n for rdlD in Aofo:\n iumf.append({'id': rdlD[0], 'name': rdlD[1], 'status': rdlD[2]})\n YKHO... | [
"0.7737599",
"0.72902584",
"0.7160352",
"0.7138926",
"0.7086406",
"0.70838773",
"0.6933529",
"0.69325805",
"0.69195807",
"0.6869528",
"0.6867541",
"0.6862612",
"0.68321353",
"0.6814722",
"0.6790414",
"0.67435807",
"0.6723224",
"0.66985244",
"0.6696358",
"0.669432",
"0.6690398... | 0.0 | -1 |
Returns a list of SSARegiters that occur in the condition Eliminate multiple occurences in the list | def HW18(YKHO):
if YKHO.cond == s0V0.NOT:
return YKHO.right.getRegisters()
elif not ZJQ_(YKHO.cond):
return list(set(YKHO.left.getRegisters() + YKHO.right.getRegisters()))
else:
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uY6T(YKHO, jvxd, GkJn):\n return [LihS for LihS in jvxd if LihS not in GkJn]",
"def es7K(SKjz, kbGe):\n return list(filter(lambda WKvO: WKvO.s != SKjz, kbGe))",
"def IWE_(YKHO, ei4T):\n Aofo = []\n for Z9rn in YKHO.constraints_:\n if Z9rn[0] in ei4T and Z9rn[1] in ei4T:\n Aofo... | [
"0.6078199",
"0.57260597",
"0.53996664",
"0.5322587",
"0.52900314",
"0.52651197",
"0.52523637",
"0.52479714",
"0.52405554",
"0.52369726",
"0.52259946",
"0.5225879",
"0.52059466",
"0.5204199",
"0.5187568",
"0.5175596",
"0.5135529",
"0.5114134",
"0.5089442",
"0.5085531",
"0.507... | 0.51597315 | 16 |
Get Network this subnet resides in. | def XHTY(YKHO):
return YKHO._network | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XHTY(YKHO):\n return YKHO.get_ip_network()[-1]",
"def eVVj(YKHO):\n UTX6 = QMSQ('%s/%s' % (YKHO.address, zIe3(YKHO.netmask)))\n return OSeg(UTX6, strict=False)",
"def Zxma(YKHO):\n if YKHO._net is None:\n YKHO._net = Zgf_(name=YKHO.name)\n return YKHO._net",
"def eVVj(YKHO):\n re... | [
"0.7883652",
"0.74223965",
"0.7255603",
"0.7076776",
"0.7072443",
"0.7072443",
"0.7072443",
"0.70173717",
"0.6982723",
"0.69730806",
"0.694434",
"0.68964154",
"0.68476284",
"0.66096103",
"0.66078997",
"0.652712",
"0.6525104",
"0.6503161",
"0.6503149",
"0.6484874",
"0.64641154... | 0.75860316 | 1 |
Get a list of subnet's nodes | def Ziit(YKHO):
return list(YKHO._nodes_dict.values()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDNe(YKHO):\n Ziit = [{'address': 'http://0.0.0.0:100'}, {'address': 'http://0.0.0.0:200'}, {'address': 'http://0.0.0.0:300'}, {'address': 'http://0.0.0.0:400'}, {'address': 'http://0.0.0.0:500'}]\n return Ziit",
"def ydUk(YKHO):\n Qi1G = 'http://' + YKHO.host_ip + ':9696/v2.0/subnets'\n kkzV = {... | [
"0.72508055",
"0.6962399",
"0.69609004",
"0.6843213",
"0.67449564",
"0.6712943",
"0.6711037",
"0.670919",
"0.6701422",
"0.66980886",
"0.66857165",
"0.6683568",
"0.6674321",
"0.6636246",
"0.65806174",
"0.6553158",
"0.6516284",
"0.65005547",
"0.64611864",
"0.6457594",
"0.645547... | 0.61389923 | 57 |
Generates a grid of normalized ([1,1]) pixel coordinates (size [BxHxWx2]) that torch.functional.grid_sample uses as input. | def gI4z(YKHO, WKvO, rb7a, shtX, SCWy, kv2o):
tjUW, Nq1b, C7Ls, XcU5 = WKvO.size()
Kd41 = YKHO.pixel2cam(rb7a, kv2o)
DYoK = SCWy.bmm(shtX)
eGqS = YKHO.cam2pixel(Kd41, DYoK)
WKvO = vuvg.grid_sample(WKvO, eGqS)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j44n(hlel):\n Cs6h = []\n for nPrm in hlel:\n Cs6h += [R0O3(nPrm, nrow=5, normalize=True)]\n return Cs6h",
"def _dDe(YKHO):\n et52 = [100, 100]\n tRp4 = ht2j.FloatTensor([[[-1.0, -1.0], [1.0, 1.0]], [[1.0, 1.0], [-1.0, -1.0]], [[1.0, -1.0], [-1.0, 1.0]], [[1.0, 1.0], [-1.0, -1.0]], [[0.... | [
"0.68826586",
"0.6687754",
"0.6547037",
"0.65385073",
"0.6486837",
"0.6473468",
"0.64434713",
"0.64080536",
"0.64071184",
"0.64060676",
"0.6402653",
"0.6402266",
"0.63696736",
"0.63366175",
"0.63288856",
"0.6306623",
"0.6305968",
"0.62281466",
"0.6218799",
"0.62081283",
"0.62... | 0.0 | -1 |
Converts the image grid into an array of camera coordinates (x,y,z) values for all pixels in the image) using the camera intrinsics and depth. | def Rup0(YKHO, rb7a, kv2o):
Fg_i, bGrB, MKlR, yzQ0 = rb7a.size()
n47r = ht2j.arange(0, MKlR).view(1, MKlR, 1).expand(1, MKlR, yzQ0).type_as(rb7a)
nvZx = ht2j.arange(0, yzQ0).view(1, 1, yzQ0).expand(1, MKlR, yzQ0).type_as(rb7a)
pSfY = ht2j.ones(1, MKlR, yzQ0).type_as(rb7a)
qimf = ht2j.stack((nvZx, n4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pWSF(LNo8):\n VXjJ = oyIN.zeros((LNo8.shape[0], LNo8.shape[1], 3))\n for LVAh in range(LNo8.shape[0]):\n for WKvO in range(LNo8.shape[1]):\n VXjJ[LVAh][WKvO] = ((WKvO - 320) / 575.5 * LNo8[LVAh, WKvO], (240 - LVAh) / 575.5 * LNo8[LVAh, WKvO], LNo8[LVAh, WKvO])\n return VXjJ",
"def ... | [
"0.64044404",
"0.63030523",
"0.62749237",
"0.62730753",
"0.6179977",
"0.61652017",
"0.61342776",
"0.6045297",
"0.60191935",
"0.6013613",
"0.6010528",
"0.59713286",
"0.5942632",
"0.59403735",
"0.5901278",
"0.58390576",
"0.583143",
"0.5805119",
"0.5801704",
"0.5800298",
"0.5750... | 0.6911614 | 0 |
r""" >>> lines = ['hello\n', 'world\n'] >>> _index_to_row_col(lines, 0) (0, 0) >>> _index_to_row_col(lines, 7) (1, 1) | def Iiz2(Nqlg, d6pt):
if d6pt < 0:
raise IndexError('negative index')
HFkI = 0
for li6g, zFiD in enumerate(Nqlg):
UH0n = len(zFiD)
if HFkI + UH0n > d6pt:
return (li6g, d6pt - HFkI)
HFkI += UH0n
raise IndexError('index %d out of range' % d6pt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E34O(d6pt):\n Jy8Z = [0, 0]\n while d6pt >= len(Msgq):\n d6pt -= len(Msgq)\n Jy8Z[0] += 1\n Jy8Z[1] = d6pt\n return Jy8Z",
"def S83H(l5Ny, d6pt):\n g7I3 = l5Ny.rfind('\\n', 0, d6pt)\n if g7I3 < 0:\n g7I3 = 0\n iVRZ = d6pt - g7I3 + 1\n return iVRZ",
"def EGWL(vIw... | [
"0.7309166",
"0.7235375",
"0.6954243",
"0.67495805",
"0.6640308",
"0.6428252",
"0.6380165",
"0.63663054",
"0.6233662",
"0.6228951",
"0.6220717",
"0.6215055",
"0.61694103",
"0.6158954",
"0.6131605",
"0.61313546",
"0.6127463",
"0.61019605",
"0.60691047",
"0.6049448",
"0.6018372... | 0.80457765 | 0 |
Sum over last axis for the use in generalized ufuncs. `np.sum` is more accurate over the fast axis, so we ensure the array to be ccontiguous. | def ZGwj(jzdc, **c_sp):
return oyIN.sum(oyIN.ascontiguousarray(jzdc), axis=-1, **c_sp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sum(input, jDK_=None, yDqo=None, JsoO=False, DTEE=None):\n yvT9 = Hzsy.Sum(axis=jDK_, dtype=yDqo, acc_dtype=DTEE)(input)\n if JsoO:\n yvT9 = KkdI(input, yvT9, jDK_)\n return yvT9",
"def sum(YKHO, jDK_=None, JsoO=False, yDqo=None, yvT9=None):\n return oyIN.add.reduce(YKHO, out=yvT9, axis=jD... | [
"0.67738503",
"0.66302085",
"0.6468734",
"0.6465741",
"0.64534724",
"0.64149743",
"0.6343834",
"0.6304383",
"0.6302121",
"0.626876",
"0.6225772",
"0.6156275",
"0.6087346",
"0.6049844",
"0.5979643",
"0.59518576",
"0.5916043",
"0.5884902",
"0.58529425",
"0.5838191",
"0.5825377"... | 0.81620055 | 0 |
Return last received timestamp from Platform. If the device didn't connect at least once, then this will return None. | def jLGN(YKHO) -> h8nf[int]:
if YKHO.last_platform_timestamp is None:
YKHO.logger.warning('No timestamp available yet, will return None')
if not YKHO.connectivity_service.is_connected():
YKHO.logger.warning('Not connected, not requesting new time')
return YKHO.last_platform_timestamp
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XWBC(YKHO):\n if hasattr(YKHO, '_lasttime'):\n return YKHO._lasttime\n else:\n return None",
"def ikwY(YKHO):\n return YKHO._frame_timestamp",
"def U_dL(YKHO):\n return YKHO._last_timestamp",
"def ikwY(YKHO, o61b):\n if o61b in YKHO.symbol:\n E3oo = YKHO.symbol[o61b]['... | [
"0.7128037",
"0.7068101",
"0.6788683",
"0.6762326",
"0.67308927",
"0.67082524",
"0.66656977",
"0.6648795",
"0.663978",
"0.6618066",
"0.6585973",
"0.65769273",
"0.6554507",
"0.6545569",
"0.6544824",
"0.65433437",
"0.65433437",
"0.65433437",
"0.65433437",
"0.65433437",
"0.65433... | 0.77236396 | 0 |
Function that takes the label of a field and tries to generate a unique name for it. The 'max_tries' parameter denotes the maximum number of times the function will try to find unique name. | def waFm(o9Dx, URrD, ZGAZ=10000, GpTE=True):
def trXN(ZeZ5, XWXe):
return ZeZ5.objects.filter(name=XWXe).count() > 0
vXX7 = eIIt(URrD)
if not trXN(o9Dx, vXX7):
return vXX7
for YRbF in range(1, ZGAZ + 1):
if not trXN(o9Dx, vXX7 + str(YRbF)):
return vXX7 + str(YRbF)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bozA(Kr7R: str) -> str:\n return Kr7R[0] + 'l' + kxTZ().hex",
"def R2vh(ZWCE=[], y0cW='col_', ZI14='', KVg9=100, SGxH=4):\n ZWCE = set(ZWCE)\n SkC9 = y0cW + ZI14\n if SkC9 in ZWCE:\n for YRbF in range(KVg9):\n CppO = ''.join([tuKI.choice(sA85) for bGrB in range(SGxH)])\n ... | [
"0.65927714",
"0.6094744",
"0.5982472",
"0.5916453",
"0.58238703",
"0.58186406",
"0.57962704",
"0.57776415",
"0.57660013",
"0.5727337",
"0.5716029",
"0.566636",
"0.5615884",
"0.55871224",
"0.5561317",
"0.5554275",
"0.55523413",
"0.55001104",
"0.5490314",
"0.54828864",
"0.5473... | 0.83230233 | 0 |
cv2 resize image data 6 parameter 1,5 is resolution ratio its need /resize_ratio | def vhm5(YKHO, FfHM=0.5):
zNig = (int(YKHO.width * FfHM), int(YKHO.height * FfHM))
YKHO.resizedimage = XC5k.resize(YKHO.image_nparray, zNig, interpolation=XC5k.INTER_AREA)
YKHO.ResizeGeo = list(YKHO.geotrans)
print('input Geo parameter, :', YKHO.ResizeGeo)
YKHO.ResizeGeo[1] = float(YKHO.ResizeGeo[1]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Einh(VXjJ, dMYj=100, zNig=None, GoGv=None):\n\n def XPRl(GoGv):\n if GoGv is None:\n if zNig is not None:\n if dMYj >= 100 or zNig[0] >= VXjJ.shape[0] or zNig[1] >= VXjJ.shape[1]:\n GoGv = XC5k.INTER_AREA\n else:\n GoGv = ... | [
"0.7333853",
"0.72153926",
"0.7214746",
"0.7195882",
"0.7146677",
"0.7080156",
"0.706978",
"0.69925046",
"0.698775",
"0.69782764",
"0.69402045",
"0.69271636",
"0.6884302",
"0.6855037",
"0.68314564",
"0.6826592",
"0.67938393",
"0.6764221",
"0.6757841",
"0.6738867",
"0.67298174... | 0.7144234 | 5 |
Sets the description for this snapshot | def YYyB(YKHO, JBZA):
bD7m = yvY1.api + YKHO.testId + '/snapshots/' + YKHO.hash
YKHO.info = G4JS.put(bD7m, auth=(yvY1.username, yvY1.authkey), data={'description': JBZA}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, QoB4: str) -> None:\n YKHO.metadata.data['description'] = QoB4",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO._description = JBZA",
"... | [
"0.8178489",
"0.8166039",
"0.8151963",
"0.8110133",
"0.80903465",
"0.7966108",
"0.7958749",
"0.7958749",
"0.7958749",
"0.7958749",
"0.7929554",
"0.7929554",
"0.7929554",
"0.7929554",
"0.7929554",
"0.7929554",
"0.7929554",
"0.7929554",
"0.7929554",
"0.7929554",
"0.7929554",
... | 0.80518645 | 5 |
add a new transition to the buffer | def H2v5(YKHO, _Jrn, XeOP, vOGg, VRgd, _ins, U34r):
assert YKHO.replay_buffer is not None
YKHO.episode_transitions.append((_Jrn, XeOP, vOGg, VRgd, _ins, U34r))
if _ins:
YKHO._store_episode()
YKHO.episode_transitions = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OnZY(YKHO, OZkM):\n YKHO.buffer.append(OZkM)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.transition(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.buffer.append(tTpl)",
"def H2v5(YKHO, OZkM: Tuple[np.ndarray, ...]) -> AzJI[ImMB, ...]:\n YKHO.n_step_buffer.append(OZkM)\n if len(YKHO.... | [
"0.77596265",
"0.7419274",
"0.7304988",
"0.7234456",
"0.70836526",
"0.70348704",
"0.6973781",
"0.68939126",
"0.6768309",
"0.6743578",
"0.67420524",
"0.6680733",
"0.6604713",
"0.65684104",
"0.65420747",
"0.6486401",
"0.64780766",
"0.6453972",
"0.6435826",
"0.6421666",
"0.63925... | 0.6449315 | 18 |
Change billing_owner of this project. | def NpNj(YKHO, uJjO):
YKHO.conn = EMZs.request.db_conn
YKHO.conn.change_billing_owner(QePW.context, project_id=YKHO.project_id, user_id=uJjO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HK3E(YKHO, HK3E):\n YKHO._billing = HK3E",
"def KVVd(YKHO, qsJ6):\n YKHO.settings['owner'] = qsJ6",
"def laSw(YKHO, laSw):\n YKHO._billing_currency = laSw",
"def rGvt(YEnM, n10L):\n assert isinstance(n10L, jUrF)\n uUmF = YEnM.creators[0]\n if n10L == uUmF:\n return\n YEnM.loca... | [
"0.6588316",
"0.65589374",
"0.6230038",
"0.6171225",
"0.6164178",
"0.6123353",
"0.6012759",
"0.59617716",
"0.5894772",
"0.58250284",
"0.5816487",
"0.5742454",
"0.5721845",
"0.5639005",
"0.560879",
"0.55670285",
"0.554525",
"0.554525",
"0.554525",
"0.554525",
"0.5538901",
"0... | 0.77313393 | 0 |
String representation for this object. | def wHJl(YKHO):
return '<%s "%s" (%s)>' % (YKHO.__class__.__name__, YKHO.name, YKHO._id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO):\n return str(YKHO)",
"def Napc(YKHO):\n return str(YKHO)",
"def CZBi(YKHO):\n return YKHO.__repr__()",
"def zAg0(YKHO):\n return str(YKHO.serialize())",
"def Napc(YKHO) -> str:\n pass",
"def wHJl(YKHO) -> str:\n return str(YKHO.as_dict())",
"def gTzM(YKHO):\n return... | [
"0.8694663",
"0.8648277",
"0.84509367",
"0.84407336",
"0.839939",
"0.83971435",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
"0.83582443",
... | 0.0 | -1 |
Returns the kwargs required to recreate this node. Used by dictize() and dedictize(). Subclasses should add their properties to this dict. | def jwjR(YKHO):
dict = {'name': YKHO.name}
return dict | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2fa(YKHO):\n return jth9.deepcopy(YKHO._kwargs)",
"def qc2q(YKHO):\n return {}",
"def qc2q(Csk6):\n raise NotImplementedError('subclass must implement get_kwargs()')",
"def jwjR(YKHO):\n dict = wb8W._kwargs(YKHO)\n dict['inputpaths'] = YKHO.inputpaths\n dict['outputpath'] = YKHO.output... | [
"0.73872286",
"0.7375472",
"0.69844353",
"0.69556576",
"0.6803954",
"0.67796487",
"0.67796487",
"0.66286445",
"0.6624012",
"0.66016495",
"0.65897924",
"0.6584854",
"0.6562319",
"0.65020496",
"0.6439275",
"0.6419872",
"0.63900167",
"0.63759625",
"0.63625294",
"0.63021857",
"0.... | 0.69695336 | 3 |
True if this node is a source ie, has no parents | def VjZo(YKHO):
return len(YKHO.parents()) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jH6p(YKHO):\n XP5J = ZbWC.compile('.*\\\\(.*\\\\)')\n r8hN = XP5J.match(YKHO.title)\n if YKHO.title in ['Quotes', 'Sourced']:\n YKHO.is_source = False\n return\n if r8hN and r8hN.group() == YKHO.title:\n YKHO.is_source = True\n return\n CBR8 = False\n hevG = sum(ma... | [
"0.73631346",
"0.6805475",
"0.65184647",
"0.64943707",
"0.64128876",
"0.63231564",
"0.62935233",
"0.6247751",
"0.62443256",
"0.6207464",
"0.61116487",
"0.6097948",
"0.607261",
"0.6063049",
"0.60139054",
"0.5989732",
"0.5969904",
"0.59312105",
"0.5915522",
"0.58952165",
"0.589... | 0.8728649 | 0 |
Returns the set of all nodes that are in the DAG that contains this node. | def Ziit(YKHO, azXi=None):
if not azXi:
azXi = set()
if YKHO not in azXi:
azXi.update([YKHO])
for Q6kx in YKHO.parents():
azXi.update(Q6kx.nodes(visited=azXi))
for Q6kx in YKHO.children():
azXi.update(Q6kx.nodes(visited=azXi))
return azXi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gcH_(YKHO):\n return set(YKHO.nodeset)",
"def Ziit(YKHO):\n return list(set(YKHO._graph.keys() + [WKvO for WKvO in Hs6x.chain.from_iterable(YKHO._graph.values())]))",
"def Ziit(YKHO):\n return set(YKHO.values())",
"def Ziit(YKHO):\n Ziit = []\n for H5ew, wEf2 in YKHO._graph.items():\n ... | [
"0.77861667",
"0.7713756",
"0.7709591",
"0.7602142",
"0.7429195",
"0.7405948",
"0.735527",
"0.7344105",
"0.71931976",
"0.7167872",
"0.70455664",
"0.7042498",
"0.7008261",
"0.69583625",
"0.694999",
"0.69358736",
"0.6894921",
"0.6795894",
"0.67873716",
"0.67648995",
"0.67599815... | 0.7352129 | 7 |
Find the root node(s) of the DAG that this node is in. a list containing all the parent nodes | def c7pe(YKHO):
KCHu = [Q6kx for Q6kx in YKHO.nodes() if Q6kx.isSource()]
KCHu.sort(lambda WKvO, LVAh: eHkp(WKvO._id, LVAh._id))
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ld7x(hm3W: ast.AST, Q6kx: ast.AST):\n TK2h = []\n jvSB = Q6kx\n while jvSB is not None:\n jvSB = PAwq(hm3W, jvSB)\n if jvSB is not None:\n TK2h.append(jvSB)\n return TK2h",
"def Yi5p(Ziit):\n return {u0w6(Q6kx) for Q6kx in Ziit}",
"def HqGg(YKHO):\n return Ykgu(YK... | [
"0.71854806",
"0.7075197",
"0.67767656",
"0.66741854",
"0.6574405",
"0.646587",
"0.64403456",
"0.64376724",
"0.642618",
"0.6364652",
"0.63330305",
"0.6276277",
"0.6255423",
"0.6254909",
"0.62512904",
"0.6225578",
"0.62223744",
"0.6191263",
"0.61907524",
"0.6186046",
"0.617424... | 0.0 | -1 |
Returns the kwargs required to recreate a HappyJobNode, in conjunction with DAG.kwargs(). Used by dictize() and dedictize(). Subclasses should add their properties to this dict. | def jwjR(YKHO):
dict = wb8W._kwargs(YKHO)
if YKHO.job:
dict['inputpaths'] = YKHO.job.inputpaths
dict['outputpath'] = YKHO.job.outputpath
dict['job'] = '%s()' % YKHO.job.__class__.__name__
return dict | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jwjR(YKHO):\n dict = wb8W._kwargs(YKHO)\n dict['inputpaths'] = YKHO.inputpaths\n dict['outputpath'] = YKHO.outputpath\n dict['query'] = YKHO.query\n return dict",
"def qc2q(YKHO):\n return {}",
"def B2fa(YKHO):\n return jth9.deepcopy(YKHO._kwargs)",
"def tIUS(YKHO):\n return dict(... | [
"0.7458511",
"0.6939644",
"0.6714157",
"0.6676816",
"0.6574664",
"0.6562034",
"0.6460387",
"0.64150184",
"0.6139147",
"0.6097142",
"0.60685664",
"0.60685664",
"0.60280234",
"0.5999942",
"0.59596235",
"0.59475803",
"0.5899195",
"0.5896217",
"0.58945364",
"0.58577406",
"0.58564... | 0.780288 | 0 |
Get a train/test split for the given dataset | def OOGf(__n6: SentenceComplexityDataset, alBp: float) -> AzJI[g9it, g9it]:
NI2E = round(alBp * len(__n6))
zBu_ = len(__n6) - NI2E
EvQg, QOe9 = TLsW(__n6, [zBu_, NI2E], generator=ht2j.Generator().manual_seed(nBDR))
return (EvQg, QOe9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHtP(__n6, lpha):\n EvQg = list()\n zBu_ = lpha * len(__n6)\n jqB3 = list(__n6)\n while len(EvQg) < zBu_:\n d6pt = qukk(len(jqB3))\n EvQg.append(jqB3.pop(d6pt))\n return (EvQg, jqB3)",
"def hVw6(YKHO):\n EcVT, LVAh, bGrB, bGrB = YKHO.get_subsets()\n return bHtP(EcVT, LVAh, ... | [
"0.7786153",
"0.7645297",
"0.74507606",
"0.7438377",
"0.7402888",
"0.7395611",
"0.73915726",
"0.7362422",
"0.7358521",
"0.7358521",
"0.7344598",
"0.7342347",
"0.733859",
"0.73163193",
"0.7311915",
"0.72810626",
"0.727462",
"0.7274613",
"0.7257762",
"0.72359025",
"0.7225679",
... | 0.75907946 | 2 |
Get status enabled/disabled for tracking. | def xv20(YKHO):
if not YKHO.proxy:
YKHO.proxy = YKHO.session.service('ALExpressiveListening')
return YKHO.proxy.isTracking3DEnabled() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QtQ8(YKHO):\n return YKHO.enabled",
"def VLTN(YKHO):\n return super(rMwV, YKHO).get_status()",
"def VLTN():\n return ('off', 'off')",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n retur... | [
"0.75832987",
"0.72617185",
"0.7147112",
"0.69868785",
"0.69868785",
"0.69868785",
"0.6972502",
"0.69043845",
"0.68539554",
"0.6800334",
"0.67808807",
"0.67430705",
"0.6640635",
"0.662767",
"0.6622269",
"0.66099805",
"0.6608105",
"0.6594461",
"0.65896237",
"0.6518772",
"0.651... | 0.0 | -1 |
Deserialize floating point values. | def Z0xv(YKHO):
from petstore_api.model import banana
PAau = d4y1.OpenApiResponse(content={YKHO.json_content_type: d4y1.MediaType(schema=banana.Banana)})
nPrm = {'lengthCm': 3.1415}
geh0 = YKHO.__response(nPrm)
W1Ok = PAau.deserialize(geh0, YKHO.configuration)
TBsA = W1Ok.body
YKHO.assertTru... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d2Xj(YKHO):\n try:\n nPrm, exwG = YKHO._buf.pop(Tyvl)\n if exwG != Tyvl:\n raise LN1R('There is not enough data left.')\n return bOWE.unpack(nPrm)[0]\n except qxCL as e:\n raise LN1R('Data is not a valid float: {0}'.format(tTpl))",
"def WAaG(YKHO) -> float:\n r... | [
"0.67503417",
"0.66794133",
"0.65923357",
"0.6514714",
"0.6417108",
"0.6368431",
"0.6344429",
"0.6210224",
"0.612458",
"0.60783345",
"0.60493",
"0.60337645",
"0.5966486",
"0.59603405",
"0.59204286",
"0.59131175",
"0.59109503",
"0.58933157",
"0.5883673",
"0.58743757",
"0.58717... | 0.70606124 | 0 |
Euclidean distance between current pose and the goal. | def usGr(YKHO, finv):
return PZyS(pow(finv.x - YKHO.pose.x, 2) + pow(finv.y - YKHO.pose.y, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(YKHO, finv):\n return PZyS(pow(finv.x - YKHO.pose.x, 2) + pow(finv.y - YKHO.pose.y, 2))",
"def usGr(YKHO):\n return PZyS(pow(YKHO.goal_pose.x - YKHO.ground_truth_pose.x, 2) + pow(YKHO.goal_pose.y - YKHO.ground_truth_pose.y, 2))",
"def usGr(YKHO):\n return PZyS(pow(YKHO.pose1.x - YKHO.pose2.x,... | [
"0.8480881",
"0.82868296",
"0.7695317",
"0.7395312",
"0.71660006",
"0.69989324",
"0.69919956",
"0.6880315",
"0.67771876",
"0.67643046",
"0.67338336",
"0.67335546",
"0.67253697",
"0.67253697",
"0.67253697",
"0.67253697",
"0.67253697",
"0.67253697",
"0.67253697",
"0.6715758",
"... | 0.84970343 | 0 |
Generate a zero filled tensor with shape [batch_size, state_size]. | def bYrq(YKHO, g4y1, lynt, vVLY, yDqo):
if lynt is None or yDqo is None:
raise ValueError('batch_size and dtype cannot be None while constructing initial state: batch_size={}, dtype={}'.format(lynt, yDqo))
def p4Bj(OZCy, m6y8=0):
n5vc = qiip.TensorShape(OZCy).as_list()
qVGt = [lynt] + n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kktc(lynt, vVLY, yDqo):\n if lynt is None or yDqo is None:\n raise ValueError('batch_size and dtype cannot be None while constructing initial state: batch_size={}, dtype={}'.format(lynt, yDqo))\n\n def apf_(OZCy):\n n5vc = qiip.as_shape(OZCy).as_list()\n qVGt = [lynt] + n5vc\n ... | [
"0.82252717",
"0.79629415",
"0.77364993",
"0.76719123",
"0.76478356",
"0.759651",
"0.7548186",
"0.749872",
"0.74112505",
"0.7396597",
"0.7326455",
"0.72330326",
"0.70730436",
"0.70656234",
"0.7061129",
"0.70604426",
"0.70336837",
"0.70201236",
"0.69754076",
"0.6944437",
"0.68... | 0.64747244 | 37 |
Generate a zero filled tensor with shape [batch_size, state_size]. | def bYrq(YKHO, g4y1, lynt, vVLY, yDqo):
if lynt is None or yDqo is None:
raise ValueError('batch_size and dtype cannot be None while constructing initial state: batch_size={}, dtype={}'.format(lynt, yDqo))
def p4Bj(OZCy):
n5vc = qiip.TensorShape(OZCy).as_list()
qVGt = [lynt] + n5vc
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kktc(lynt, vVLY, yDqo):\n if lynt is None or yDqo is None:\n raise ValueError('batch_size and dtype cannot be None while constructing initial state: batch_size={}, dtype={}'.format(lynt, yDqo))\n\n def apf_(OZCy):\n n5vc = qiip.as_shape(OZCy).as_list()\n qVGt = [lynt] + n5vc\n ... | [
"0.8226394",
"0.7962468",
"0.77339524",
"0.767074",
"0.7648544",
"0.7595725",
"0.7547214",
"0.7499353",
"0.74099576",
"0.73946166",
"0.7326439",
"0.72346205",
"0.7071821",
"0.70660377",
"0.7060344",
"0.7060017",
"0.7034807",
"0.70209223",
"0.69753593",
"0.6942175",
"0.6887068... | 0.6471612 | 38 |
This is a simple function to find the peak position of each image in an event which will be used later in the Xmax calculation. Peak is found by taking the average position of the n hottest pixels in the image. | def nOro(YKHO, leoh=3):
YRO3 = oyIN.zeros([len(YKHO.pixel_x)])
iwEi = oyIN.zeros(YRO3.shape)
DMFL = oyIN.zeros(YRO3.shape)
r_wP = 0
for YANN in YKHO.image:
D_4q = YKHO.image[YANN].argsort()[-1 * leoh:][::-1]
print(D_4q, YKHO.pixel_x[YANN][D_4q], YKHO.image[YANN][D_4q])
upAO =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1YC(LNo8):\n H2v2, TVTK = LNo8.shape[:2]\n btcN = [sum(YRbF) / len(YRbF) for YRbF in LNo8]\n WKvO = [YRbF for YRbF in range(H2v2)]\n LVAh = [255 - YRbF for YRbF in btcN]\n LVAh = apUX(LVAh, sigma=20)\n I05E, bGrB = ATag(LVAh)\n I05E = I05E.tolist()\n return I05E",
"def OM49(LNo8, cX5... | [
"0.6750598",
"0.67249197",
"0.6453754",
"0.6390456",
"0.62944907",
"0.6264261",
"0.61970085",
"0.61826694",
"0.6156825",
"0.61242944",
"0.60953903",
"0.60948026",
"0.60780567",
"0.60753757",
"0.60318786",
"0.60183823",
"0.59937274",
"0.5988625",
"0.5986431",
"0.59855926",
"0.... | 0.57201284 | 41 |
Function to calculate the depth of shower maximum geometrically under the assumption that the shower maximum lies at the brightest point of the camera image. | def Eyqe(YKHO, GuzE, CpCN, X4jv, zVMN, BAzL):
o_qv = oyIN.sqrt(oyIN.power(YKHO.peak_x - GuzE, 2) + oyIN.power(YKHO.peak_y - CpCN, 2))
sAGa = oyIN.sqrt(oyIN.power(oyIN.array(list(YKHO.tel_pos_x.values())) - X4jv, 2) + oyIN.power(oyIN.array(list(YKHO.tel_pos_y.values())) - zVMN, 2))
H2v2 = sAGa / o_qv
upA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1to():\n nPrm = v_rS(True)\n return max([nPrm[0][YRbF][-1].flatten().item() for YRbF in range(len(nPrm))])",
"def XkHD(YKHO):\n Hqoa = oyIN.max(YKHO.get_well_depth_image())\n return Hqoa",
"def beaA(rb7a):\n return 2.5 * oyIN.log10(rb7a)",
"def qi10(YKHO) -> int:\n return qe4Y.get(YKHO... | [
"0.73425066",
"0.7101294",
"0.70019245",
"0.67223144",
"0.6652651",
"0.6513308",
"0.647637",
"0.63612825",
"0.63598853",
"0.63358736",
"0.6315489",
"0.6299625",
"0.6273884",
"0.6255971",
"0.6252053",
"0.6232153",
"0.6207453",
"0.6190515",
"0.617028",
"0.6162297",
"0.6138282",... | 0.59673893 | 30 |
Convert a 1d array of cluster assignments into a binary clustering matrix format. | def ObxL(cwhV, rb7a):
GFVk = 1 << rb7a
fpM6 = len(cwhV)
U4J6 = oyIN.cumsum(oyIN.bincount(cwhV + 1, minlength=GFVk + 1), dtype=oyIN.uint64)
_0VL = oyIN.argsort(cwhV * oyIN.float64(fpM6) + oyIN.arange(fpM6))
Nq1b = XY2F.csc_matrix((oyIN.ones_like(_0VL, dtype=oyIN.float32), _0VL, U4J6), shape=(fpM6, GF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LLlG(kL9b):\n WKvO = kL9b.copy()\n if len(WKvO.shape) == 1:\n WKvO = WKvO[:, oyIN.newaxis]\n if WKvO.min() <= 0:\n WKvO += -WKvO.min() + 1\n k0lF = oyIN.dot(WKvO ** (-1.0), WKvO.T) == 1\n return k0lF",
"def PSQ8(kdnt, j6zF=None, ywwl=None):\n if kdnt is None:\n raise Ex... | [
"0.5944641",
"0.58824354",
"0.5776835",
"0.5450348",
"0.53823674",
"0.5348318",
"0.53395844",
"0.53218985",
"0.53201497",
"0.531528",
"0.5293228",
"0.5291523",
"0.5237126",
"0.52305835",
"0.52202624",
"0.5193246",
"0.5193092",
"0.51650304",
"0.51632756",
"0.5118175",
"0.51015... | 0.0 | -1 |