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 |
|---|---|---|---|---|---|---|
Returns number of rows of pixels. Returns int | def usx6(YKHO):
return YKHO._rows | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kn9d(YKHO):\n return len(YKHO.pixels)",
"def x0UP(YKHO):\n return len(YKHO.pixels)",
"def Kn9d(LNo8):\n TVTK, H2v2 = LNo8.size\n return TVTK * H2v2",
"def NpzS(YKHO) -> int:\n return int(oyIN.sqrt(YKHO.n_tiles))",
"def c_Kg(ayN1, J_Tn):\n usx6 = int(ayN1 / J_Tn)\n return usx6",
"... | [
"0.8101129",
"0.7930808",
"0.7707126",
"0.76392543",
"0.7476343",
"0.7400999",
"0.7379208",
"0.7374082",
"0.7335762",
"0.7281371",
"0.72714883",
"0.72664714",
"0.7261359",
"0.72585684",
"0.724029",
"0.7238405",
"0.722732",
"0.7210382",
"0.7208525",
"0.7206924",
"0.7182261",
... | 0.0 | -1 |
Returns number of pixels in each row. Returns int | def WfCS(YKHO):
return YKHO._cols | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kn9d(YKHO):\n return len(YKHO.pixels)",
"def Kn9d(LNo8):\n TVTK, H2v2 = LNo8.size\n return TVTK * H2v2",
"def NpzS(YKHO) -> int:\n return int(oyIN.sqrt(YKHO.n_tiles))",
"def x0UP(YKHO):\n return len(YKHO.pixels)",
"def XNfK(vhpA):\n assert len(vhpA.shape) == 3\n return int(vhpA.sha... | [
"0.8014461",
"0.79023755",
"0.7796658",
"0.76673096",
"0.7517229",
"0.7480428",
"0.74790555",
"0.7416888",
"0.7363878",
"0.7297946",
"0.7240494",
"0.72247547",
"0.7213316",
"0.7198169",
"0.7192991",
"0.7190153",
"0.7159386",
"0.7154427",
"0.71506345",
"0.7119648",
"0.70794296... | 0.0 | -1 |
Parses a sample proto containing a training or validation example of an image. The output of the pascal_voc_dataset.py image preprocessing script is a dataset containing serialized sample protocol | def j8_j(YKHO, MRqo):
yJc9 = {'height': ZylS.io.FixedLenFeature([1], ZylS.int64), 'width': ZylS.io.FixedLenFeature([1], ZylS.int64), 'depth': ZylS.io.FixedLenFeature([1], ZylS.int64), 'image_raw': ZylS.io.FixedLenFeature([], ZylS.string), 'label_raw': ZylS.io.FixedLenFeature([], ZylS.string)}
U5Jc = ZylS.io.par... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AF4J(xKOQ):\n bySB = {'image/scene_id': ZylS.FixedLenFeature((), ZylS.int64, default_value=-1), 'image/im_id': ZylS.FixedLenFeature((), ZylS.int64, default_value=-1), 'image/path': ZylS.FixedLenFeature((), ZylS.string, default_value=''), 'image/encoded': ZylS.FixedLenFeature((), ZylS.string, default_value='... | [
"0.689546",
"0.6771578",
"0.66506326",
"0.6607679",
"0.6579244",
"0.657057",
"0.6481573",
"0.6471745",
"0.6366316",
"0.6342155",
"0.6340465",
"0.6336522",
"0.6238146",
"0.6229534",
"0.62009615",
"0.6095445",
"0.605619",
"0.604685",
"0.60236424",
"0.60153586",
"0.5995107",
"... | 0.0 | -1 |
Returns a TFRecordDataset for the requested dataset. | def AyYN(YKHO, mC1D, Ep8u, LT6S=False):
WJQX = 'segmentation_{}.tfrecords'.format('train' if LT6S else 'val')
i0XC = Hy7s.path.join(mC1D, 'TFRecords', WJQX)
__n6 = ZylS.data.TFRecordDataset(i0XC)
__n6 = __n6.prefetch(buffer_size=Ep8u)
__n6 = __n6.map(YKHO.parse_record)
__n6 = __n6.map(lambda Xn7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cgb9(W89N):\n return ZylS.data.TFRecordDataset([Hy7s.path.join(W89N, eHNT) for eHNT in Hy7s.listdir(W89N)], num_parallel_reads=ZylS.data.experimental.AUTOTUNE)",
"def ebDG(ho5k):\n __n6 = ZylS.data.TFRecordDataset(ho5k)\n __n6 = __n6.map(H6sw)\n return __n6",
"def dD7q(x101, ZM6q=512, Au0z=[]):... | [
"0.7701187",
"0.7025631",
"0.70233613",
"0.6985793",
"0.6915024",
"0.685159",
"0.6846987",
"0.67252105",
"0.670934",
"0.66984785",
"0.66826534",
"0.66591305",
"0.6643967",
"0.6629134",
"0.65823656",
"0.6534758",
"0.65101653",
"0.647205",
"0.64704937",
"0.646194",
"0.6459335",... | 0.58852 | 78 |
Find single int occurring odd number of times | def q6vt(Q6uT):
for YRbF in Q6uT:
if Q6uT.count(YRbF) % 2 != 0:
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lEzQ(Q6uT):\n for mLGw in Q6uT:\n if Q6uT.count(mLGw) % 2 != 0:\n return mLGw",
"def JIuQ(qw7D):\n for U6D_ in qw7D:\n if type(U6D_) is int and qw7D.count(U6D_) % 2 != 0:\n return U6D_\n return None",
"def KXw8(yv6U: list) -> int:\n return [G1Hx for G1Hx, Ty9... | [
"0.7705865",
"0.7511082",
"0.73377013",
"0.70541185",
"0.6950107",
"0.6904076",
"0.6789712",
"0.6770265",
"0.6669308",
"0.6607945",
"0.6602165",
"0.6572661",
"0.65448534",
"0.6479956",
"0.6468073",
"0.64164877",
"0.63880515",
"0.6367973",
"0.6345855",
"0.63221186",
"0.6314428... | 0.8273476 | 0 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj, qIxc):
tspZ = qIxc.lr * 0.1 ** (qtWj // 30)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.79915917",
"0.79401433",
"0.78890747",
"0.78277314",
"0.78225076",
"0.78165275",
"0.78091687",
"0.78022534",
"0.7790518",
"0.77877146",
"0.7781505",
"0.7764625",
"0.77641374",
"0.776121",
"0.774813",
"0.77370757",
"0.77297646",
"0.7723961",
"0.77119434",
"0.77079225",
"0.7... | 0.766444 | 30 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(... | [
"0.8317406",
"0.8285652",
"0.82828414",
"0.8281149",
"0.82362676",
"0.82337403",
"0.822514",
"0.82245225",
"0.82118344",
"0.81912935",
"0.81870127",
"0.818126",
"0.8180909",
"0.8179992",
"0.81788236",
"0.81788236",
"0.8178704",
"0.81778836",
"0.8177197",
"0.81756",
"0.8173057... | 0.0 | -1 |
Convert Model to a pretty String | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.pretty()",
"def r7XA(YKHO):\n return str(YKHO)",
"def zAg0(YKHO):\n return BfDw.pretty_print(YKHO, YKHO._kwargs)",
"def z6aD(WKvO):\n yvT9 = qQXR.loads(WKvO.model.to_json())\n print(qQXR.dumps(yvT9, indent=4, sort_keys=True))",
"def zAg0(YKHO):\n return BfDw.... | [
"0.7275059",
"0.71626264",
"0.6876038",
"0.68466973",
"0.6846462",
"0.6831201",
"0.6789888",
"0.6661213",
"0.661849",
"0.6592755",
"0.6557851",
"0.6547073",
"0.6524151",
"0.650636",
"0.6477911",
"0.6459581",
"0.64375013",
"0.63554895",
"0.63554895",
"0.6340559",
"0.63190216",... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Clears cached scores, so they can be recomputed with the new values | def XuYC(HjSO):
print('Clearing computed scores for {}'.format(HjSO))
S9_d = PSTY.objects.filter(name__contains=HjSO)
CU5x.objects.filter(function__in=S9_d).delete() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LCBH(YKHO):\n YKHO.record_keeper.clear()",
"def M0qU(YKHO):\n YKHO.pose.energies.clear()\n Jq25(YKHO.pose)\n u3UU(YKHO.pose)",
"def Y7Bk(YKHO):\n YKHO.highscores = {}",
"def NLKW(YKHO):\n YKHO.score = 0",
"def NLKW(YKHO):\n YKHO.score = 0",
"def jMKS(YKHO):\n YKHO._player1scor... | [
"0.81181115",
"0.8027547",
"0.7661376",
"0.7646279",
"0.7646279",
"0.7637881",
"0.76240474",
"0.7467511",
"0.74175566",
"0.7146287",
"0.7145105",
"0.71250486",
"0.71093345",
"0.7085351",
"0.7004351",
"0.6993942",
"0.6945531",
"0.6927103",
"0.6921107",
"0.688578",
"0.686367",
... | 0.68652725 | 20 |
Special process for dtype. Torch will transform dtype to an enum in cpp, so the value of dtype we get in jit is an int. This function is used to recover the int to torch.dtype in python. | def MiiZ(f4Xc: Union[int, torch.dtype]):
if f4Xc is None or isinstance(f4Xc, ht2j.dtype):
return f4Xc
elif isinstance(f4Xc, int):
if f4Xc in gi74:
return gi74[f4Xc]
raise TypeError('No torch.dtype corresponding to the value "%s"' % f4Xc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g78P(yDqo: trt.DataType) -> ht2j.dtype:\n if yDqo == jWq_.bool:\n return ht2j.bool\n elif yDqo == jWq_.int8:\n return ht2j.int8\n elif yDqo == jWq_.int32:\n return ht2j.int32\n elif yDqo == jWq_.float16:\n return ht2j.float16\n elif yDqo == jWq_.float32:\n retu... | [
"0.746436",
"0.73638743",
"0.73078936",
"0.72788143",
"0.71181625",
"0.71123004",
"0.70932263",
"0.7054421",
"0.70479256",
"0.68270665",
"0.67860377",
"0.6775599",
"0.6770834",
"0.6745624",
"0.6709384",
"0.67084974",
"0.6695028",
"0.6690773",
"0.66765803",
"0.6663435",
"0.659... | 0.763124 | 0 |
Given a (possibly nested) dictionary d, generate tuples giving the sequence of keys needed to reach each nondictionary value in d (and its nested subdictionaries, if any). | def FQ55(Csk6):
for G1Hx, Ty9i in Csk6.items():
if isinstance(Ty9i, dict):
for Q6uT in FQ55(Ty9i):
yield ((G1Hx,) + Q6uT)
else:
yield (G1Hx,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lGbz(Csk6):\n assert isinstance(Csk6, dict)\n for G1Hx, Ty9i in Csk6.iteritems():\n if not isinstance(Ty9i, dict):\n yield ([G1Hx], Ty9i)\n else:\n for a1PO in lGbz(Ty9i):\n ZT17 = [G1Hx]\n ZT17.extend(a1PO[0])\n yield (ZT17... | [
"0.6951404",
"0.68121356",
"0.66314155",
"0.6565482",
"0.6562415",
"0.6466793",
"0.64603126",
"0.64442825",
"0.64078647",
"0.6386058",
"0.6375637",
"0.6349287",
"0.6343989",
"0.6342815",
"0.6339527",
"0.63023126",
"0.62997794",
"0.62948173",
"0.6221828",
"0.6209708",
"0.61688... | 0.71965 | 0 |
Returns the xcoordinate of the end of the queue | def bHgn(YKHO):
return YKHO.frontX() - YKHO.getLen() * YKHO.cellWidth | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAgg(YKHO):\n return YKHO.widget.position[0]",
"def Kg_P(YKHO):\n return YKHO._x",
"def WKvO(YKHO):\n return YKHO.pos[0]",
"def WKvO(YKHO):\n return YKHO.__position.x",
"def WKvO(YKHO):\n return YKHO.position.x",
"def BeGc(YKHO):\n return YKHO.position[0]",
"def WKvO(YKHO):\n r... | [
"0.682981",
"0.6711235",
"0.67077047",
"0.66646194",
"0.66584486",
"0.66012913",
"0.66009206",
"0.6584823",
"0.6546081",
"0.65214217",
"0.65214217",
"0.6492199",
"0.64379334",
"0.6361869",
"0.63514984",
"0.63372386",
"0.6320178",
"0.6320178",
"0.6315082",
"0.6313394",
"0.6285... | 0.6321455 | 16 |
Removes a process from the front of the queue and returns it. Returns None if queue is empty | def he0F(YKHO, KnxT, kPgw=None):
try:
if kPgw == 'spn' or kPgw == 'srt':
D6NJ = YKHO.getShortestJob()
if D6NJ:
d6pt = YKHO.queue.index(D6NJ)
YKHO.queue.pop(d6pt)
for XP5J in YKHO.queue[d6pt:]:
XP5J.moveRight(YKHO.cel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def BEuN(YKHO):\n with YKHO._lock:\n try:\n return YKHO.queue.pop(r5F5)\n ... | [
"0.7545716",
"0.73633873",
"0.72610366",
"0.70259875",
"0.6964225",
"0.6912339",
"0.68775386",
"0.6860007",
"0.68508613",
"0.6834175",
"0.6831537",
"0.6828556",
"0.6792334",
"0.67852765",
"0.67794275",
"0.67794275",
"0.6750874",
"0.675044",
"0.67430836",
"0.67421347",
"0.6709... | 0.0 | -1 |
Type the longest word. The person to type the longest word that contains the given characters gets a point. Words cannot be reused. The first person to get `maxpoints` points wins. | async def long(YKHO, OaeV, O79q: int=5):
if OaeV.channel.id in YKHO.games:
await OaeV.send(bGrB('There is already a game running in this channel!'))
return
YKHO.games.append(OaeV.channel.id)
Bwa6 = await YKHO._get_players(OaeV)
if len(Bwa6) <= 1:
await OaeV.send(bGrB('Not enough ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JUi7(V22M):\n BcCR = len(V22M[0])\n for GIN8 in V22M:\n if BcCR < len(GIN8):\n BcCR = len(GIN8)\n return BcCR",
"def JUi7(d5ak):\n vC9B = sorted(d5ak, key=len, reverse=True)\n print(\"'{}' is the longest word with length {}\".format(vC9B[0], len(vC9B[0])))",
"def Vc7e(RZ8t,... | [
"0.6699349",
"0.665068",
"0.655838",
"0.6533425",
"0.64997125",
"0.64844924",
"0.6448928",
"0.6447129",
"0.63507676",
"0.6332046",
"0.6312285",
"0.6307561",
"0.6128973",
"0.61012024",
"0.6085463",
"0.6041676",
"0.60392565",
"0.60270035",
"0.6000588",
"0.5992119",
"0.5984955",... | 0.0 | -1 |
Test for the AddRiskType post endpoint | def n66n(YKHO):
NEJe.blend('base.State', name='Active')
QePW = b9AL().post('api/add_risk_type/', {'name': 'Robbery Cover', 'description': 'Cover against theft and robbery'})
geh0 = JjlT().post(QePW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v9lD(YKHO, XYLV, muwo):\n bD7m = gxEw('agile:agile-list')\n ndq3 = muwo['payload']\n ndq3.update({'type': Jnkx.TYPE_PRINCIPLE})\n _hkX = XYLV.post(bD7m, muwo['payload'])\n assert _hkX.status_code == jGRS.HTTP_201_CREATED\n assert ztHz(_hkX.json()['uuid'])\n P7KC = Jnkx.objects.get_or_none(... | [
"0.69632524",
"0.6816576",
"0.6602139",
"0.6579739",
"0.6443344",
"0.6418862",
"0.63464713",
"0.63126737",
"0.63126737",
"0.63126737",
"0.63126737",
"0.63126737",
"0.63126737",
"0.63126737",
"0.63126737",
"0.63126737",
"0.62860537",
"0.6158652",
"0.6106128",
"0.6097318",
"0.6... | 0.7909506 | 0 |
Checks whether member is authorized to access the callback | def vg5B(db6b: CallBack, Ol8d: Message) -> bool:
if hasattr(db6b, 'auth'):
Jpbe = getattr(db6b, 'auth')
if Jpbe:
if not INp8(Jpbe, Ol8d):
return False
if hasattr(db6b, 'has_roles'):
c0uS = getattr(db6b, 'has_roles')
if c0uS:
if not INp8(c0u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s9cb(YKHO, mS46, kFoQ=True):\n if mS46.has_permission('rer.groupware.notify: Manage notification settings', YKHO.context):\n return True\n if 'Active User' in mS46.getRolesInContext(YKHO.context):\n return True\n if kFoQ:\n raise BlEM('You are not part of the room')\n return Fa... | [
"0.69298923",
"0.6751711",
"0.67173845",
"0.6709311",
"0.66838676",
"0.66834855",
"0.6673421",
"0.6598928",
"0.65820426",
"0.65820426",
"0.65516585",
"0.6544122",
"0.6537895",
"0.6489189",
"0.6489189",
"0.64624995",
"0.64624995",
"0.64515954",
"0.6438896",
"0.64361596",
"0.64... | 0.70121384 | 0 |
Zero out the gradient for a group of parameters. | def yx57(uOe2, hiLq):
for xqoZ in uOe2:
if xqoZ.grad is not None:
if hiLq:
xqoZ.grad = None
else:
if xqoZ.grad.grad_fn is not None:
xqoZ.grad.detach_()
else:
xqoZ.grad.requires_grad_(False)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qw6L(YKHO):\n for XP5J in YKHO.parameters():\n if XP5J.grad_v is not None:\n XP5J.grad_v.zero_()",
"def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None",
"def frhb(YKHO):\n for PFzQ in YKHO.model.gradwrtparam():\n PFzQ.zero_()",
"def frhb(YKHO):\n for... | [
"0.78708655",
"0.7826415",
"0.77655256",
"0.77457654",
"0.77457654",
"0.77257043",
"0.76535475",
"0.7598192",
"0.74680805",
"0.7459066",
"0.74464506",
"0.7429183",
"0.74045646",
"0.7360827",
"0.7360827",
"0.7360827",
"0.7360827",
"0.73420006",
"0.7341482",
"0.7341482",
"0.732... | 0.72138846 | 24 |
Allreduce position_embeddings grad across first (encoder) and split (decoder) stages to ensure that position embeddings parameters stay in sync. This should only run for T5 models with pipeline parallelism. | def EnEq(YKHO, qIxc):
if YBs1.is_rank_in_position_embedding_group() and YBs1.get_pipeline_model_parallel_world_size() > 1 and (qIxc.pipeline_model_parallel_split_rank is not None):
lnnk = YKHO.models[0]
lnnk = Ag1m(lnnk, (Hajh, rZmp, k45C))
assert qIxc.DDP_impl == 'local', 'T5 model is only ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nRzO(mPxM, f8Bx=0, E1ho=1, prnt=3, F5H0=1, yxlr=1):\n gSnX = mPxM\n WKvO = X6a0(shape=(prnt, gSnX))\n if f8Bx == 0:\n LVAh = WKvO\n else:\n LVAh = l6ZH(f8Bx, activation=ZylS.nn.relu)(WKvO)\n phPn = l6ZH(F5H0, activation=ZylS.nn.tanh)(LVAh)\n mGVO = l6ZH(E1ho - F5H0, activation=Z... | [
"0.6153078",
"0.59999263",
"0.5987691",
"0.594368",
"0.58685464",
"0.5799887",
"0.57527983",
"0.57293874",
"0.5710651",
"0.57086664",
"0.5627489",
"0.56223226",
"0.561868",
"0.5611194",
"0.5606581",
"0.5602886",
"0.5578744",
"0.5563054",
"0.5561685",
"0.5527797",
"0.5527219",... | 0.7116901 | 0 |
We only need to zero the model related parameters, i.e., float16_groups & fp32_from_fp32_groups. We additionally zero fp32_from_float16_groups as a memory optimization to reduce fragmentation; in the case of set_to_none==True, the space used by this field can be safely deallocated at this point. | def frhb(YKHO, hiLq=True):
for uOe2 in YKHO.float16_groups:
yx57(uOe2, hiLq)
for uOe2 in YKHO.fp32_from_float16_groups:
yx57(uOe2, hiLq)
for uOe2 in YKHO.fp32_from_fp32_groups:
yx57(uOe2, hiLq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frhb(YKHO, hiLq=True):\n for uOe2 in YKHO.float16_groups:\n yx57(uOe2, hiLq)\n if YKHO._contiguous_grad_bucket:\n for YRbF in YKHO._main_grad_buffers:\n YKHO._main_grad_buffers[YRbF].zero()\n else:\n for uOe2 in YKHO.fp32_from_float16_groups:\n yx57(uOe2, hiL... | [
"0.7150871",
"0.69706386",
"0.67988634",
"0.6475435",
"0.6452762",
"0.6452762",
"0.6445075",
"0.6445075",
"0.64317966",
"0.64118564",
"0.639602",
"0.63893163",
"0.63619584",
"0.63619584",
"0.6245506",
"0.62450075",
"0.6241108",
"0.6212707",
"0.61740714",
"0.6132619",
"0.61119... | 0.70685315 | 1 |
Sets the seed for this env's random number generator(s). | def yokr(YKHO, yokr=None):
YKHO.np_random, yokr = Gt3g.np_random(yokr)
return [yokr] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BpNF(YKHO, yokr):\n YKHO.env.seed(yokr)\n oyIN.random.seed(yokr)\n tuKI.seed(yokr)",
"def e3of(YKHO, yokr):\n YKHO.seed = yokr\n YKHO._random = VDG3(seed=YKHO.seed)",
"def fwb1(YKHO, yokr: int):\n tuKI.seed(yokr)\n oyIN.random.seed(yokr)\n PVng(yokr)",
"def Z9de(YKHO, yokr):\n ... | [
"0.8409627",
"0.83903056",
"0.83816844",
"0.8266823",
"0.8212769",
"0.81903124",
"0.8146819",
"0.81282866",
"0.8088197",
"0.8086401",
"0.8084615",
"0.8074522",
"0.80538875",
"0.8043123",
"0.8042954",
"0.8025502",
"0.7945387",
"0.7945077",
"0.7936493",
"0.79219866",
"0.7915084... | 0.7601915 | 60 |
Resets the environment to an initial state and returns an initial observation. Note that this function should not reset the environment's random number generator(s); random variables in the environment's state should be sampled independently between multiple calls to `reset()`. In other words, each call of `reset()` sh... | def SiRx(YKHO):
if YKHO.s_num == 2:
YKHO.state = (YKHO.transKwInAch, YKHO.mpsAch)
if YKHO.s_num == 3:
YKHO.state = (YKHO.transKwInAch, YKHO.mpsAch, YKHO.soc)
YKHO.steps = 1
return oyIN.array(YKHO.state) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4Vx(YKHO):\n YKHO._actions = []\n if not YKHO._fixed_init_state:\n YKHO._init_state = YKHO.observation_space.sample()\n YKHO._done = False\n YKHO._reward = 0.0\n YKHO._cum_reward = 0.0\n YKHO._info = {'actions': []}\n YKHO._action = YKHO.simulator.get_first_action()\n YKHO._acti... | [
"0.76174045",
"0.75847405",
"0.75650376",
"0.7562442",
"0.74316406",
"0.7317045",
"0.70712495",
"0.70345473",
"0.7020352",
"0.69450945",
"0.6887727",
"0.6874235",
"0.6871502",
"0.6868967",
"0.68684113",
"0.6859328",
"0.68378556",
"0.68378556",
"0.6816752",
"0.68014985",
"0.67... | 0.0 | -1 |
Get the ModuleType of this model. | def Wk_h(YKHO) -> s_Mh:
if XTWc.is_temperature_module_model(YKHO):
return s_Mh.TEMPERATURE
elif XTWc.is_magnetic_module_model(YKHO):
return s_Mh.MAGNETIC
elif XTWc.is_thermocycler_module_model(YKHO):
return s_Mh.THERMOCYCLER
elif XTWc.is_heater_shaker_module_model(YKHO):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IVAT(Emd4):\n return Emd4._module_desc.arg_name",
"def DMw4(YKHO):\n return YKHO._model_type",
"def DMw4(YKHO):\n return YKHO._model_type",
"def TZh9(YKHO) -> str:\n return YKHO.model_type",
"def YwLH(YKHO):\n return 6",
"def TZh9(YKHO):\n if YKHO.model_type is None:\n raise ... | [
"0.7673689",
"0.75170374",
"0.75170374",
"0.75140274",
"0.72715217",
"0.7234193",
"0.714654",
"0.71262395",
"0.7104875",
"0.7032588",
"0.70078415",
"0.69568443",
"0.6955248",
"0.6955248",
"0.6955248",
"0.6919185",
"0.6919185",
"0.6919185",
"0.6919185",
"0.6919185",
"0.6919185... | 0.81095934 | 0 |
Whether a given model is a Thermocycler Module. | def JYYs(Emd4, C3ST: ModuleModel) -> OnHT[TBD9]:
return C3ST in [Emd4.THERMOCYCLER_MODULE_V1, Emd4.THERMOCYCLER_MODULE_V2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3Qq(Emd4, C3ST: ModuleModel) -> OnHT[UWGc]:\n return C3ST in [Emd4.TEMPERATURE_MODULE_V1, Emd4.TEMPERATURE_MODULE_V2]",
"def u_ur(YKHO, C3ST: Any) -> bool:\n return isinstance(C3ST, ht2j.nn.Module)",
"def E85Y(Emd4, C3ST: Any) -> bool:\n from torch.nn import Module\n return isinstance(C3ST, Mo... | [
"0.74674916",
"0.69932735",
"0.6991071",
"0.68200904",
"0.67605877",
"0.63089114",
"0.6130285",
"0.6112042",
"0.6097917",
"0.60945225",
"0.6050166",
"0.60088897",
"0.5995653",
"0.5959575",
"0.5910387",
"0.58663625",
"0.5859969",
"0.5833716",
"0.58184046",
"0.57718694",
"0.576... | 0.836553 | 0 |
Whether a given model is a Magnetic block. | def dGdQ(Emd4, C3ST: ModuleModel) -> OnHT[N6Yz]:
return C3ST == Emd4.MAGNETIC_BLOCK_V1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fjeJ(Emd4, C3ST: ModuleModel) -> OnHT[e7Pu]:\n return C3ST in [Emd4.MAGNETIC_MODULE_V1, Emd4.MAGNETIC_MODULE_V2]",
"def GTUj(YKHO):\n return any(map(abs, YKHO.structure.site_properties['magmom']))",
"def GTUj(FyXI: str) -> bool:\n if FyXI in CFPZ:\n return True\n return False",
"def Cb... | [
"0.8144107",
"0.77864546",
"0.68206394",
"0.6799956",
"0.62269485",
"0.59099627",
"0.5777067",
"0.5770008",
"0.5768546",
"0.5764457",
"0.57488537",
"0.5737424",
"0.57373583",
"0.56846595",
"0.5677876",
"0.56746745",
"0.5646587",
"0.5616901",
"0.5609668",
"0.5585653",
"0.55423... | 0.91314334 | 0 |
Adds two vectors together. | def FOdN(YKHO, Elif: Any) -> FwAL:
if not isinstance(Elif, FwAL):
return NotImplemented
return FwAL(x=YKHO.x + Elif.x, y=YKHO.y + Elif.y, z=YKHO.z + Elif.z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xXeU(jzdc, Fg_i):\n return (jzdc[0] + Fg_i[0], jzdc[1] + Fg_i[1])",
"def KfxW(hQHm, jlSq):\n return hQHm + jlSq",
"def JsGA(hQHm, jlSq):\n if ROpF(hQHm) != ROpF(jlSq):\n raise Rhzo('You cannot add two vectors that are not the same length!')\n yJOC = [hQHm[WKvO] + jlSq[WKvO] for WKvO in r... | [
"0.84982467",
"0.84549004",
"0.8352166",
"0.8292236",
"0.82777816",
"0.8257409",
"0.8162005",
"0.81098133",
"0.809012",
"0.8088664",
"0.8088664",
"0.8088664",
"0.8051557",
"0.8004734",
"0.7980658",
"0.79391414",
"0.79235023",
"0.78737915",
"0.7776846",
"0.7703068",
"0.7701134... | 0.0 | -1 |
Stops the current video. | def yPN4(YKHO):
if YKHO.currently_playing is not None:
print(f'Stopping video: {YKHO.currently_playing._title}')
YKHO.currently_playing = None
YKHO.pause = False
else:
print('Cannot stop video: No video is currently playing.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPN4(YKHO):\n if YKHO._current_video is None:\n print('Cannot stop video: No video is currently playing')\n return\n print(f'Stopping video: {YKHO._current_video.title}')\n YKHO._current_video = None\n return",
"def yPN4(YKHO):\n if YKHO.current == None:\n print('Cannot st... | [
"0.888218",
"0.88274866",
"0.8823462",
"0.8755373",
"0.8655501",
"0.85928404",
"0.8550172",
"0.85088044",
"0.8437159",
"0.84326243",
"0.8421711",
"0.83948064",
"0.83415765",
"0.83387095",
"0.82205945",
"0.7904002",
"0.7793583",
"0.75543165",
"0.7547233",
"0.75007373",
"0.7477... | 0.8629694 | 5 |
Displays video currently playing. | def AgpD(YKHO):
if YKHO.currently_playing is None:
print('No video is currently playing')
else:
print(f'Currently playing: {YKHO.currently_playing._title} ({YKHO.currently_playing._video_id}) [{' '.join(list(YKHO.currently_playing._tags))}]', end='')
if YKHO.pause is True:
pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AgpD(YKHO):\n if YKHO.current_video == None:\n print('No video is currently playing')\n else:\n YmUj = YKHO._video_library.get_video(YKHO.current_video.video_id)\n OvGC = YKHO.get_tag_string(YmUj)\n if YKHO.video_paused == False:\n print('Currently playing: ' + YmUj... | [
"0.7804789",
"0.77452356",
"0.7735895",
"0.7679617",
"0.763395",
"0.76144093",
"0.7605698",
"0.75713533",
"0.75332505",
"0.74989694",
"0.7432058",
"0.72621256",
"0.69161344",
"0.6833527",
"0.67801243",
"0.67571825",
"0.67431927",
"0.6726036",
"0.67214197",
"0.66643006",
"0.66... | 0.7669143 | 4 |
Adds a video to a playlist with a given name. | def duLI(YKHO, RJf3, DYeJ):
KCwn = RJf3.lower()
f6W2 = YKHO._video_library.get_video(DYeJ)
if YKHO.playlist_exists(KCwn):
if f6W2 != None:
if f6W2.flagged == None:
if f6W2 in YKHO.playlists[KCwn]:
print('Cannot add video to ' + RJf3 + ': Video already ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duLI(YKHO, RJf3, DYeJ):\n f6W2 = YKHO._video_library.get_video(DYeJ)\n NvAR = None\n for XP5J in YKHO.playlists:\n if XP5J.name.lower() == RJf3.lower():\n NvAR = XP5J\n if NvAR is None:\n print(f'Cannot add video to {RJf3}: Playlist does not exist')\n return\n if ... | [
"0.83555114",
"0.8271756",
"0.8209371",
"0.8168781",
"0.81374156",
"0.81151205",
"0.8081428",
"0.8074003",
"0.8033341",
"0.7938837",
"0.79373133",
"0.7936336",
"0.7905619",
"0.71152556",
"0.6914022",
"0.68555754",
"0.6845014",
"0.6811254",
"0.6769141",
"0.6742757",
"0.6734767... | 0.7922703 | 12 |
Display all videos in a playlist with a given name. | def Hvot(YKHO, RJf3):
print('show_playlist needs implementation') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hvot(YKHO, RJf3):\n O4gE = []\n if RJf3.upper() not in [WKvO.upper() for WKvO in YKHO._playlist.playlist_names]:\n print('Cannot show playlist ' + str(RJf3) + ': Playlist does not exist')\n elif YKHO._playlist.playlists.get(RJf3.upper()) == []:\n print('Showing playlist: ' + str(RJf3) + ... | [
"0.8333747",
"0.8062569",
"0.7972292",
"0.7859238",
"0.78428954",
"0.77664286",
"0.769593",
"0.76840246",
"0.7523833",
"0.74840295",
"0.73449385",
"0.7096636",
"0.703638",
"0.6998097",
"0.69121534",
"0.64623743",
"0.6266654",
"0.62586635",
"0.6247815",
"0.6246237",
"0.6138832... | 0.69003135 | 16 |
Return a flattened str of args to pass to the fiptool. | def zAg0(YKHO):
hlel = str()
for y7GR, BWXx in YKHO.data.items():
if BWXx is True:
hlel = '{output} --{opt}'.format(output=hlel, opt=y7GR)
elif BWXx.get('path', 0):
hlel = '{output} --{opt}={value}'.format(output=hlel, opt=y7GR, value=BWXx['path'])
return hlel.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l188(YKHO):\n return ' '.join(YKHO.args)",
"def KGPQ(YKHO) -> str:\n if not YKHO.params:\n return ''\n return '(' + ', '.join((str(xqoZ) for xqoZ in YKHO.params)) + ')'",
"def bZ5H(YKHO):\n arQG = []\n for wAVY in YKHO.arguments:\n jiuq = wAVY.deprel + '-' + wAVY.form\n ... | [
"0.7545027",
"0.75225365",
"0.73314685",
"0.7205044",
"0.71865654",
"0.71197456",
"0.71126354",
"0.7083436",
"0.70249784",
"0.69884235",
"0.69833654",
"0.697932",
"0.69004005",
"0.688529",
"0.68578565",
"0.67908597",
"0.67852783",
"0.67614955",
"0.672776",
"0.6670386",
"0.665... | 0.0 | -1 |
Return a flattened str of args to pass to the fiptool. | def zAg0(YKHO):
hlel = str()
for y7GR, BWXx in YKHO.data.items():
if BWXx is True:
hlel = '{output} --{opt}'.format(output=hlel, opt=y7GR)
elif BWXx:
hlel = '{output} --{opt}={value}'.format(output=hlel, opt=y7GR, value=BWXx)
return hlel.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l188(YKHO):\n return ' '.join(YKHO.args)",
"def KGPQ(YKHO) -> str:\n if not YKHO.params:\n return ''\n return '(' + ', '.join((str(xqoZ) for xqoZ in YKHO.params)) + ')'",
"def bZ5H(YKHO):\n arQG = []\n for wAVY in YKHO.arguments:\n jiuq = wAVY.deprel + '-' + wAVY.form\n ... | [
"0.7546451",
"0.752361",
"0.73318934",
"0.72058815",
"0.71868217",
"0.7121304",
"0.71126264",
"0.7083957",
"0.70256066",
"0.6988982",
"0.6984034",
"0.6979725",
"0.69014955",
"0.6887066",
"0.68584496",
"0.67918015",
"0.678526",
"0.67612004",
"0.67291415",
"0.66708267",
"0.6657... | 0.0 | -1 |
Initialise the exception with a custom msg. | def FIMM(YKHO, ySAX, xC3W):
tO9_ = '{attr} is not in the known valid options.\nKnown options are:\n {valid_opts}'.format(attr=xC3W, valid_opts='\n'.join(ySAX.valid_opts))
super().__init__(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d, *qIxc, **B2fa):\n Exception.__init__(YKHO, *qIxc, **B2fa)\n YKHO.msg = Ol8d",
"def FIMM(YKHO, AJ5d=None, Ol8d=''):\n if AJ5d:\n super().__init__(f'{YKHO.msg}: {str(AJ5d)}')\n elif Ol8d:\n super().__init__(f'{YKHO.msg}: {Ol8d}')\n else:\n super().__init__(f... | [
"0.8066033",
"0.7596569",
"0.72838295",
"0.72838295",
"0.72838295",
"0.72838295",
"0.72418046",
"0.72241527",
"0.71963656",
"0.71866053",
"0.71577936",
"0.7157468",
"0.71553886",
"0.71544415",
"0.71285677",
"0.7119003",
"0.71132654",
"0.70263034",
"0.69938064",
"0.698472",
"0... | 0.0 | -1 |
Expand `factors` and `factor_orders` to account for factor multiplity. For example, if there is a `global` factor with multiplicity 2, then this method expands that into `global.1` and `global.2` in both the `factors` and `factor_orders` dictionaries. | def CSkU(YKHO, Llmz, z7zo, TbqK):
Pz81 = {}
for vQD1, aLXh in Llmz.items():
x_AZ = []
for pDJj in aLXh:
exwG = TbqK.get(pDJj, 1)
if exwG > 1:
x_AZ += [f'{pDJj}.{YRbF + 1}' for YRbF in range(exwG)]
else:
x_AZ.append(pDJj)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bYoI(xC8x, Llmz):\n if xC8x is None:\n fAqV = Llmz\n elif isinstance(xC8x, str):\n fAqV = [xC8x]\n else:\n fAqV = xC8x\n return fAqV",
"def xWkx(Llmz):\n fEs6 = U8Lr({})\n for aM8h in Llmz:\n fEs6[aM8h] = fG3_[aM8h]\n return fEs6",
"def GeyA(YKHO):\n MlcK... | [
"0.6399143",
"0.56740475",
"0.5538265",
"0.5514549",
"0.54539734",
"0.5374717",
"0.5307165",
"0.52579874",
"0.52352047",
"0.5214487",
"0.5197931",
"0.51601285",
"0.5120418",
"0.5119142",
"0.51188326",
"0.504523",
"0.49832737",
"0.49832195",
"0.49809912",
"0.4966982",
"0.49669... | 0.76813203 | 0 |
Factors plus any lags, index shaped (5, k_factors). | def HqaI(YKHO):
p6S0 = oyIN.arange(YKHO.k_states_factors)
MXrG = []
for XkN1 in YKHO.factor_blocks:
MXrG.append(p6S0[XkN1.factors_L1_5].reshape(5, XkN1.k_factors))
return oyIN.concatenate(MXrG, axis=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QgIV(YKHO):\n z1Rg = YKHO.state_offset\n return oyIN.reshape(z1Rg + oyIN.arange(YKHO.k_factors * YKHO._factor_order), (YKHO._factor_order, YKHO.k_factors)).T",
"def u91R(YKHO):\n z1Rg = YKHO.state_offset\n return oyIN.s_[z1Rg:z1Rg + YKHO.k_factors * 5]",
"def N4Up(YKHO):\n z1Rg = YKHO.state_... | [
"0.6453058",
"0.6103683",
"0.5857332",
"0.5820464",
"0.5562297",
"0.55578786",
"0.5507404",
"0.53972995",
"0.5388582",
"0.53865093",
"0.53715116",
"0.53485143",
"0.53143483",
"0.52350134",
"0.52350134",
"0.5231814",
"0.5231814",
"0.5231814",
"0.5231814",
"0.5231814",
"0.52318... | 0.6172491 | 1 |
Recreate the results object with new data appended to original data. Creates a new result object applied to a dataset that is created by appending new data to the end of the model's original data. The new results can then be used for analysis or forecasting. | def SStx(YKHO, VvlV, qB7K=None, IMh2=False, uo8K=None, KScp=True, bMV5=True, **B2fa):
VvlV, E1iG = eiLe.construct_endog(VvlV, qB7K)
pUoa = VvlV.shape[1] if len(VvlV.shape) == 2 else 1
if E1iG != YKHO.model.k_endog_M or pUoa != YKHO.model.k_endog:
raise ValueError('Cannot append data of a different d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fWK9(YKHO, dixj):\n YKHO.data.update(dixj)",
"def YKPm(YKHO):\n raise NotImplementedError",
"def lOVY(YKHO):\n I4au = YKHO.nmet\n bASF = YKHO._block.nmmol\n l1Er = YKHO._block.nparam\n KdIh = YKHO._dataset.spectral_dims[0]\n if len(YKHO.data) != KdIh:\n YKHO.data = oyIN.zeros(Kd... | [
"0.6709202",
"0.6361437",
"0.6281196",
"0.6253744",
"0.6241515",
"0.62174404",
"0.62090576",
"0.61933637",
"0.6121874",
"0.61058056",
"0.606568",
"0.6050929",
"0.604706",
"0.6028025",
"0.6018877",
"0.60108066",
"0.59833884",
"0.5950644",
"0.5924054",
"0.5924054",
"0.5907495",... | 0.0 | -1 |
Detach this node from the tree. It becomes the root of another tree. | def eIRW(YKHO):
if YKHO._parent:
try:
YRbF = YKHO._parent.index(YKHO)
del YKHO._parent[YRbF]
except ValueError:
pass
YKHO._parent = None
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eIRW(YKHO):\n _AKB = YKHO.parent\n YKHO.__parent = None\n if _AKB:\n _AKB.__children.remove(YKHO)",
"def oQiR(YKHO) -> None:\n YKHO._parent = None",
"def pWzG(YKHO):\n Ty9i = YKHO\n Z9rn = Ty9i.c\n if Ty9i == Z9rn.rootPosition().v:\n assert Ty9i._next\n RPsv = dQgj... | [
"0.7395278",
"0.6989729",
"0.69273496",
"0.69057345",
"0.6790496",
"0.6764758",
"0.6720932",
"0.66221213",
"0.6556744",
"0.6478396",
"0.645382",
"0.6447815",
"0.6426479",
"0.6394929",
"0.63285416",
"0.63200074",
"0.63115275",
"0.6298684",
"0.626951",
"0.6213186",
"0.61767334"... | 0.6830154 | 4 |
Return the default value if attr is not found. | def NMoC(YKHO, hkS8, WmM4):
try:
return YKHO[hkS8]
except KeyError:
return WmM4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LO0Z(C3nE, hkS8):\n return AZ6c[hkS8.schema.type]",
"def fwbI(YKHO, hkS8, WmM4=None):\n try:\n return YKHO.get_attr(hkS8)\n except KeyError:\n return WmM4",
"def NMoC(YKHO, hkS8, WmM4=None):\n try:\n Ylbp = getattr(YKHO, hkS8)\n except AttributeError:\n return WmM... | [
"0.8100186",
"0.80413115",
"0.78257775",
"0.7822536",
"0.7781347",
"0.7770931",
"0.77673036",
"0.76641715",
"0.76018345",
"0.7511051",
"0.75103384",
"0.75008345",
"0.74041826",
"0.73934317",
"0.7373945",
"0.7294011",
"0.7273623",
"0.7215278",
"0.721046",
"0.7185994",
"0.71859... | 0.7944866 | 2 |
Number of unnamed enums. | def gZtT(YKHO):
return len(YKHO.unnamed_enums) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vP5s(YKHO):\n return len(YKHO.named_enums)",
"def iW4w(YKHO):\n return len(YKHO.empty_enums)",
"def Wzv_(YKHO):\n pass",
"def lim5(YKHO):\n return len(YKHO.enum_item_names)",
"def UEon(YKHO):\n return len(YKHO.unnamed_structs)",
"def yHP_(YKHO):\n return len(YKHO.unnamed_unions)",
... | [
"0.85832375",
"0.80333835",
"0.79827684",
"0.7472631",
"0.7142512",
"0.7130603",
"0.685598",
"0.6779418",
"0.67303663",
"0.67255396",
"0.6662091",
"0.66119623",
"0.659571",
"0.6476842",
"0.6444653",
"0.6332826",
"0.6328701",
"0.6314354",
"0.62126577",
"0.6178227",
"0.6098581"... | 0.90959334 | 0 |
Checks if the given node is a function. External functions or function declarations are not considered to be functions. | def eBZy(YKHO, Q6kx):
return YKHO._is_from_current_file(Q6kx) and Q6kx.kind == HYLZ.CursorKind.FUNCTION_DECL and Q6kx.is_definition() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rVKq(Q6kx):\n if isinstance(Q6kx, jZ4I.FunctionDef) or isinstance(Q6kx, jZ4I.AsyncFunctionDef):\n return True\n return False",
"def CKBl(object):\n return isinstance(object, SnBA.FunctionType)",
"def DgPd(YKHO):\n return J8uC.SBType_IsFunctionType(YKHO)",
"def rVKq(YEnM):\n return i... | [
"0.8501307",
"0.7370775",
"0.72625434",
"0.71050805",
"0.70701075",
"0.7066823",
"0.70291734",
"0.69774306",
"0.6911933",
"0.690466",
"0.6892727",
"0.6862074",
"0.68278694",
"0.674587",
"0.6491725",
"0.64893615",
"0.6488095",
"0.64489365",
"0.64393187",
"0.64265084",
"0.64156... | 0.8048937 | 1 |
Get nodes in the given tree object that correspond to the nodes in a given list of nodes from another tree object, and return as a list. | def Hirz(WotO, p_yK):
KEUb = list(WotO.traverse())[1]
gda1 = []
for YRbF in p_yK:
nuiV = set([WKvO.name for WKvO in YRbF.get_leaves()])
L7EE = None
for Q6kx in WotO.traverse():
DvH0 = [WKvO.name for WKvO in Q6kx.get_leaves()]
if DvH0 == nuiV:
L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDNe(J_Es):\n UvR2 = []\n if J_Es not in UvR2:\n UvR2.append(J_Es)\n for aUGN in xLeR(J_Es):\n if aUGN not in UvR2:\n UvR2.extend(CDNe(aUGN))\n return UvR2",
"def N5yv(J_Es, SGPK=None):\n if SGPK is None:\n SGPK = {}\n aAQH = []\n XIgt = [J_Es]\n while ... | [
"0.67140126",
"0.6509815",
"0.6480668",
"0.6208337",
"0.6160486",
"0.61099714",
"0.6101912",
"0.60424864",
"0.59660625",
"0.5936057",
"0.5914132",
"0.5892883",
"0.5799544",
"0.5780401",
"0.57559127",
"0.5723701",
"0.5712657",
"0.56935316",
"0.5692592",
"0.56794685",
"0.567393... | 0.5561243 | 32 |
Returns selected environment (DEV or PREPROD) | def I0_M(Emd4):
if Emd4.__environment is None:
Mr0z.__read_parameters()
return Emd4.__environment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I0_M(YKHO):\n GPtr = YKHO.get_config_data()\n return GPtr.get('environment', 'prod')",
"def kLRF():\n _63S = wk5E.config.get('POD_NAMESPACE').lower()\n if _63S.endswith('dev'):\n return 'DEV'\n if _63S.endswith('test'):\n return 'TEST'\n if _63S.endswith('tools'):\n ret... | [
"0.8168968",
"0.80798876",
"0.80798876",
"0.80798876",
"0.7925881",
"0.79136497",
"0.77550244",
"0.7694267",
"0.7633977",
"0.75670576",
"0.7548973",
"0.7415546",
"0.73199606",
"0.7314349",
"0.7305397",
"0.72704834",
"0.725056",
"0.72469825",
"0.7226322",
"0.72186613",
"0.7215... | 0.0 | -1 |
set the environement properties file name to be used on the server | def clzq(YKHO, X58P):
YKHO._envProp = X58P
' execute the command on the smd server '
YKHO._connection.marshall(RZs0.SET_METHOD, YKHO.METHOD_LOAD_ENV_PROP)
YKHO._connection.marshall(RZs0.DEF_STRING, YKHO.METHOD_PARAM_FILENAME)
YKHO._connection.marshall(RZs0.SET_VALUE, YKHO.METHOD_PARAM_FILENAME, X58P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zqXB(JaF6):\n m36K.config_file_name = JaF6",
"def i2I_(YKHO, BWXx: str):\n YKHO._env_name = BWXx",
"def Zefh(mWFP: str, BWXx: str) -> None:\n GxAL(str(KhJ3), mWFP, str(BWXx))",
"def E5aH(YKHO):\n Bi8z = False\n YKHO.config.hostname = ayrW = YKHO.get_current_hostname()\n YKHO.config.appi... | [
"0.69234806",
"0.67921925",
"0.66840315",
"0.652628",
"0.6515378",
"0.6460487",
"0.6384992",
"0.6366926",
"0.6365041",
"0.6339166",
"0.6293314",
"0.62169236",
"0.6211609",
"0.6201835",
"0.61897135",
"0.6132181",
"0.6126452",
"0.6105345",
"0.6091393",
"0.6083026",
"0.605647",
... | 0.5724183 | 59 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(qvql, YKHO).__init__(*qIxc, **c_sp)
if YKHO.cmd_mode is None:
YKHO.cmd_mode = 0
if YKHO.q_vec_start is None:
YKHO.q_vec_start = []
if YKHO.q_vec_end is None:
YKHO.q_vec_end = []
if YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.81654024",
"0.77194345",
"0.77194345",
"0.7651857",
"0.7573685",
"0.7543246",
"0.7485531",
"0.74698275",
"0.74578154",
"0.7445286",
"0.744427",
"0.74153763",
"0.7408385",
"0.7391744",
"0.7375611",
"0.73623824",
"0.7324168",
"0.7324035",
"0.7324035",
"0.7324035",
"0.7324035... | 0.74339193 | 11 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(y5Hk, YKHO).__init__(*qIxc, **c_sp)
if YKHO.bool_resp is None:
YKHO.bool_resp = False
if YKHO.rtn_code is None:
YKHO.rtn_code = 0
if YKHO.plan_id is None:
YKHO.plan_id = 0
if YKHO.q_vec_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8163331",
"0.7717334",
"0.7717334",
"0.7649744",
"0.7573215",
"0.75414646",
"0.7484271",
"0.74689704",
"0.74574524",
"0.7444216",
"0.7444215",
"0.74331963",
"0.74150974",
"0.74083173",
"0.7391518",
"0.73746645",
"0.7360718",
"0.7323206",
"0.7322305",
"0.7322305",
"0.732230... | 0.0 | -1 |
Return the end date. | def G7s0(YKHO, kepv, KhBf=None, Sm0u=None):
if KhBf is not None:
YKHO._ensure_date_order(kepv, KhBf, name='end_date')
return KhBf
if Sm0u is None:
return YKHO._last_date
return YKHO.date_change(kepv, days=Sm0u - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mjdP(YKHO):\n return YKHO.end_date",
"def mjdP(YKHO):\n return YKHO.end_date",
"def mjdP(YKHO):\n return YKHO.end_date",
"def mjdP(YKHO):\n return YKHO.end_date",
"def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')",
"def KhBf(YKHO):\n return YKHO._end_date",
"def KhBf(YKH... | [
"0.9081072",
"0.9081072",
"0.9081072",
"0.9081072",
"0.8881366",
"0.88137007",
"0.88137007",
"0.88137007",
"0.88137007",
"0.88137007",
"0.88137007",
"0.8775079",
"0.87103504",
"0.86976534",
"0.86888844",
"0.86288226",
"0.8524072",
"0.8515063",
"0.850132",
"0.850132",
"0.84725... | 0.70886123 | 79 |
Ensure that the list is a series of phases. | def nvNt(Emd4, rYO3):
VBbx = sorted(rYO3)
KCHu = ', '.join((str(PXGI) for PXGI in VBbx))
for YRbF, PXGI in enumerate(VBbx):
if YRbF in [0, len(VBbx) - 1]:
continue
BhHU = PXGI.start_date
M50S = PXGI.end_date
p34B = Emd4.tomorrow(VBbx[YRbF - 1].end_date)
Os... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SeAR(YKHO):\n if YKHO.phases is None:\n GO2g = YKHO.phase\n if GO2g and 'N/A' != GO2g:\n RnoT = set(GO2g.split('/'))\n else:\n RnoT = set(['N/A'])\n YKHO.phases = list(RnoT)",
"def PlQh(YKHO):\n assert len(YKHO.phases) >= 1\n y4fz = None\n for JT9... | [
"0.61273074",
"0.5725844",
"0.5540321",
"0.533975",
"0.5317816",
"0.528799",
"0.5270111",
"0.5248403",
"0.52230763",
"0.52031887",
"0.5170136",
"0.51490945",
"0.51031625",
"0.5086331",
"0.50629276",
"0.5050762",
"0.50165087",
"0.50130296",
"0.5006763",
"0.49672723",
"0.494455... | 0.67102486 | 0 |
Yield chunks from an iterable in chunks of size `size`. | def Ziq2(OxJJ: Iterable, zNig: int) -> iu5r:
WhY1 = iter(OxJJ)
while True:
yOAJ = tuple(Hs6x.islice(WhY1, zNig))
if not yOAJ:
break
yield yOAJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(OxJJ, zNig):\n for YRbF in range(0, len(OxJJ), zNig):\n yield OxJJ[YRbF:YRbF + zNig]",
"def ChZT(OxJJ, zNig):\n for YRbF in range(0, len(OxJJ), zNig):\n yield OxJJ[YRbF:YRbF + zNig]",
"def ChZT(OxJJ, zNig):\n for YRbF in range(0, len(OxJJ), zNig):\n yield OxJJ[YRbF:YRbF +... | [
"0.86231786",
"0.8530795",
"0.8530795",
"0.852999",
"0.85288876",
"0.843724",
"0.8355374",
"0.8342912",
"0.83293664",
"0.83110887",
"0.82745683",
"0.82667786",
"0.82078433",
"0.81958985",
"0.81724524",
"0.81074905",
"0.8037639",
"0.80328524",
"0.80116093",
"0.800965",
"0.8009... | 0.8043975 | 16 |
Returns random string of 'dlzka' | def TeUK(qHGO: int) -> str:
return ''.join(tuKI.choices(f'{vIwR.ascii_letters} 1234567890', k=qHGO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y70W() -> str:\n return ''.join((tuKI.choice(vIwR.ascii_letters) for bGrB in range(4)))",
"def BWvy():\n KoG3 = vIwR.ascii_lowercase\n return ''.join((tuKI.choice(KoG3) for YRbF in range(4)))",
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def TDq5():\n if tuKI.random() < 0.2:\n r... | [
"0.73398805",
"0.7327456",
"0.73274344",
"0.73172235",
"0.7316964",
"0.726545",
"0.72294647",
"0.7215213",
"0.7207067",
"0.7190369",
"0.71480477",
"0.7122626",
"0.711652",
"0.711652",
"0.711652",
"0.7103411",
"0.7094671",
"0.7073816",
"0.7032329",
"0.7021149",
"0.7009203",
... | 0.80412877 | 0 |
Parse data from tf.Example. All labels are decoded as float32 | def H6sw(xKOQ):
xTwk = {'image_bytes': ZylS.FixedLenFeature((), ZylS.string, default_value=''), 'mask_bytes': ZylS.FixedLenFeature((), ZylS.string, default_value='')}
MeyO = ZylS.parse_single_example(xKOQ, xTwk)
return MeyO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gs92(PU1l):\n yJc9 = {'image/filename': ZylS.io.FixedLenFeature([], ZylS.string), 'image/encoded': ZylS.io.FixedLenFeature([], ZylS.string), 'label/marks': ZylS.io.FixedLenFeature([136], ZylS.float32)}\n MeyO = ZylS.io.parse_single_example(PU1l, yJc9)\n LeC8 = ZylS.image.decode_image(MeyO['image/encod... | [
"0.8047271",
"0.8000171",
"0.7999122",
"0.794119",
"0.7929564",
"0.7921903",
"0.77269524",
"0.76800305",
"0.7660713",
"0.7647611",
"0.7571539",
"0.75678164",
"0.7543271",
"0.7538441",
"0.75097895",
"0.74798864",
"0.74308604",
"0.7424222",
"0.73939896",
"0.73921776",
"0.737044... | 0.691472 | 75 |
Returns a normalized 2D gauss kernel array for convolutions | def hvqX(zNig, DJmC=None):
zNig = int(zNig)
if not DJmC:
DJmC = zNig
else:
DJmC = int(DJmC)
WKvO, LVAh = Au3N[-zNig:zNig + 1, -DJmC:DJmC + 1]
Oa1e = kLQb(-(WKvO ** 2 / float(zNig) + LVAh ** 2 / float(DJmC)))
return Oa1e / Oa1e.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = nxWE.pad(VXjJ, (YSA3 // 2, RZju // 2, YSA3 // 2, RZju // 2), mode='replicate')\n return nxWE.conv2d(VXjJ, WZcn, groups=YDR7)",
"def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = vuvg.pad(VXjJ, (YSA3 // 2, RZju ... | [
"0.7596047",
"0.75747573",
"0.7421053",
"0.7213863",
"0.69841796",
"0.69288766",
"0.68288183",
"0.67901623",
"0.6616729",
"0.65997654",
"0.65978247",
"0.6509857",
"0.64542174",
"0.6414186",
"0.64098257",
"0.6342247",
"0.633456",
"0.63209677",
"0.63190424",
"0.6302332",
"0.629... | 0.0 | -1 |
This method performs elastic transformations on an image by convolving with a gaussian kernel. | def pM0u(LNo8, pNRf=65, WTkW=64, Cwt5=30, GKL8=False, hGvF=5):
if LNo8.ndim == 3:
LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY)
if not GKL8:
LNo8 = 255 - LNo8
if LNo8.shape[0] != LNo8.shape[1]:
raise ValueError('Image should be of sqaure form')
if pNRf % 2 == 0:
raise V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pM0u(LNo8, UXqs, Cwt5, WTkW):\n assert len(Cwt5) == len(WTkW), 'Dimensions of alpha and sigma are different'\n n_HT = LNo8.ndim - len(Cwt5)\n rsbq = UXqs.ndim - len(Cwt5)\n Kagf = oyIN.zeros((len(Cwt5) + n_HT,) + LNo8.shape)\n fpmC = oyIN.zeros((len(Cwt5) + rsbq,) + UXqs.shape)\n for gDyN in ... | [
"0.67551124",
"0.6636796",
"0.6504514",
"0.64771223",
"0.6468737",
"0.6468459",
"0.6444325",
"0.64408106",
"0.6396032",
"0.6395597",
"0.6386806",
"0.63567775",
"0.63556343",
"0.63549036",
"0.63207537",
"0.6316193",
"0.6255723",
"0.62528944",
"0.6223702",
"0.62025905",
"0.6173... | 0.7504221 | 0 |
| Add an atom to this residue | def XJUG(YKHO, WhQ6):
if YKHO.molecule is not None and len(WhQ6.in_conformer) > YKHO.molecule.conformer_count:
raise ValueError('Length of in_conformer must match the conformer count of the parent molecule.')
if YKHO.molecule is not None and len(WhQ6.positions) > YKHO.molecule.conformer_count:
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BOlH(YKHO, mWFP, U6D_, kUkU, id=None):\n if len(kUkU._atoms) > 0 and YKHO._numAtoms != kUkU._atoms[-1].index + 1:\n raise ValueError('All atoms within a residue must be contiguous')\n if id is None:\n id = str(YKHO._numAtoms + 1)\n WhQ6 = k3IH(mWFP, U6D_, YKHO._numAtoms, kUkU, id)\n Y... | [
"0.77174884",
"0.75297475",
"0.7356515",
"0.7236372",
"0.7172764",
"0.7154832",
"0.7147479",
"0.7134894",
"0.6973296",
"0.69427544",
"0.694272",
"0.6884122",
"0.6848343",
"0.68443793",
"0.68191385",
"0.67807764",
"0.6525305",
"0.6340259",
"0.63337135",
"0.63163257",
"0.623541... | 0.6816825 | 15 |
| The list of bonds within this complex | def T2Cp(YKHO):
for W0I0 in YKHO._bonds:
yield W0I0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T2Cp(YKHO):\n return iter(YKHO._bonds)",
"def _Oly(YKHO):\n return Y_Uk.get_bonds(YKHO)",
"def _Oly(YKHO):\n kNqL = YKHO.get_ligand_in_rdkit()\n T2Cp = x84j(kNqL)\n return T2Cp",
"def T2Cp(YKHO):\n return (W0I0 for W0I0 in YKHO.chain.topology.bonds() if W0I0[0] in YKHO._atoms or W0I0[1]... | [
"0.8120808",
"0.7784581",
"0.7532534",
"0.7332528",
"0.732952",
"0.72593164",
"0.72511417",
"0.7071323",
"0.70071185",
"0.6893246",
"0.67018604",
"0.67011046",
"0.64562917",
"0.6449224",
"0.6444662",
"0.64230865",
"0.63169444",
"0.62781006",
"0.6247842",
"0.61555314",
"0.6148... | 0.7511258 | 3 |
Initialization of the `Trapezoidal` class | def FIMM(YKHO, xAU6):
YKHO.options = xAU6
YKHO.states_col_coeff = oyIN.array([[39 * ZYEE.sqrt(21) + 231, 224, -39 * ZYEE.sqrt(21) + 231, 3 * ZYEE.sqrt(21) + 21, -16 * ZYEE.sqrt(21), 3 * ZYEE.sqrt(21) - 21], [-39 * ZYEE.sqrt(21) + 231, 224, 39 * ZYEE.sqrt(21) + 231, -3 * ZYEE.sqrt(21) + 21, 16 * ZYEE.sqrt(21), -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n Is4a.TrajectoryPoint_swiginit(YKHO, Is4a.new_TrajectoryPoint())",
"def FIMM(YKHO):\n YKHO.thetas = oyIN.zeros([3, 1])\n YKHO.thetadots = oyIN.zeros([3, 1])",
"def FIMM(YKHO):\n YKHO.theta = 0\n YKHO.phi = 0",
"def knvn(YKHO):\n YKHO.vg = YKHO.pg[:, 1:] - YKHO.pg[:, 0:-1]\n... | [
"0.6789492",
"0.67270875",
"0.66355526",
"0.6618318",
"0.65865076",
"0.6534375",
"0.65194523",
"0.6444556",
"0.6433862",
"0.6417086",
"0.6396275",
"0.63877183",
"0.6379806",
"0.63677907",
"0.63474995",
"0.63466156",
"0.63437897",
"0.6336895",
"0.6329575",
"0.6316746",
"0.6312... | 0.0 | -1 |
Calculates the simple moving average using a specific column. Columns are named SMA_X, where X is the number of days of the window size, or SMA_X(col_name) if more than one column is used. | def dBGK(IFJW, yBvT, w_5H):
jQ3Z = IFJW.copy()
yBvT = imO4(yBvT, str)
w_5H = imO4(w_5H, int)
for fvDH in yBvT:
for yzQ0 in w_5H:
AAHb = f'SMA_{str(yzQ0)}'
if len(yBvT) > 1:
AAHb += f'({fvDH})'
jQ3Z[AAHb] = jQ3Z[fvDH].rolling(window=yzQ0).mean()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGK(f4IJ: pd.DataFrame, z0q4: str='Adj Close', KnxT: int=14, unYO: bool='True') -> rLdf.Series:\n jQ3Z = f4IJ.copy()\n PXll = jQ3Z[z0q4].rolling(KnxT).mean()\n if unYO:\n Mab9 = 'SMA_' + str(KnxT)\n f4IJ[Mab9] = PXll\n else:\n return PXll",
"def ch6h(jQ3Z, KnxT, t7N8='weight... | [
"0.7847724",
"0.7381545",
"0.71802294",
"0.71431893",
"0.70710766",
"0.7021417",
"0.7001705",
"0.6965131",
"0.69419926",
"0.6846877",
"0.68022627",
"0.66236913",
"0.653461",
"0.6488866",
"0.6460765",
"0.6429187",
"0.6425056",
"0.64193183",
"0.6395214",
"0.6391384",
"0.633793"... | 0.68772256 | 9 |
Calculates the exponential moving average using a specific column. Columns are named SMA_X, where X is the number of days of the window size, or SMA_X(col_name) if more than one column is used. | def tVz4(IFJW, yBvT, w_5H):
jQ3Z = IFJW.copy()
yBvT = imO4(yBvT, str)
w_5H = imO4(w_5H, int)
for fvDH in yBvT:
for yzQ0 in w_5H:
AAHb = f'EMA_{str(yzQ0)}'
if len(yBvT) > 1:
AAHb += f'({fvDH})'
jQ3Z[AAHb] = jQ3Z[fvDH].ewm(span=yzQ0).mean()
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGK(f4IJ: pd.DataFrame, z0q4: str='Adj Close', KnxT: int=14, unYO: bool='True') -> rLdf.Series:\n jQ3Z = f4IJ.copy()\n PXll = jQ3Z[z0q4].rolling(KnxT).mean()\n if unYO:\n Mab9 = 'SMA_' + str(KnxT)\n f4IJ[Mab9] = PXll\n else:\n return PXll",
"def FwwX(jQ3Z, KnxT, t7N8='weight... | [
"0.72602844",
"0.7018797",
"0.6995211",
"0.6981549",
"0.69637674",
"0.6955758",
"0.68619514",
"0.68262726",
"0.67890126",
"0.67141443",
"0.6693769",
"0.66771144",
"0.6649832",
"0.6627079",
"0.66029066",
"0.65819216",
"0.6525623",
"0.6489521",
"0.6485652",
"0.6479351",
"0.6445... | 0.70280707 | 1 |
Compute cosine similarity between samples in X and Y. Cosine similarity, or the cosine kernel, computes similarity as the | def gKk5(EcVT, fuBA=None):
EcVT, fuBA = pCrh(EcVT, fuBA)
dmpY = NkkI(EcVT, copy=True)
if EcVT is fuBA:
LHgx = dmpY
else:
LHgx = NkkI(fuBA, copy=True)
nMvt = uZQ7(dmpY, LHgx)
return nMvt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKk5(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n return oyIN.dot(WKvO, LVAh) / (oyIN.linalg.norm(WKvO) * oyIN.linalg.norm(LVAh))",
"def gKk5(YKHO, WKvO, LVAh):\n M6pt = sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))\n UUZ1 = YKHO.square_rooted(WKvO) * YKHO.square_rooted(LVAh)\n return r... | [
"0.86496997",
"0.8499112",
"0.84631747",
"0.8300989",
"0.8295907",
"0.82842994",
"0.82304627",
"0.82072276",
"0.79283357",
"0.78332496",
"0.78137136",
"0.77957046",
"0.77644277",
"0.77182865",
"0.76508665",
"0.7635771",
"0.7625169",
"0.7602911",
"0.7569885",
"0.7564862",
"0.7... | 0.8527336 | 1 |
Returns a bytestring version of 's', encoded as specified in 'encoding'. If strings_only is True, don't convert (some) nonstringlike objects. | def Fb0K(KCHu, tZ2K='utf-8', K_0Y=False, UAju='strict'):
if isinstance(KCHu, bytes):
if tZ2K == 'utf-8':
return KCHu
else:
return KCHu.decode('utf-8', UAju).encode(tZ2K, UAju)
if K_0Y and (KCHu is None or isinstance(KCHu, int)):
return KCHu
if not isinstance(K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fb0K(KCHu, tZ2K='utf-8', K_0Y=False, UAju='strict'):\n if isinstance(KCHu, bytes):\n if tZ2K == 'utf-8':\n return KCHu\n else:\n return KCHu.decode('utf-8', UAju).encode(tZ2K, UAju)\n if K_0Y and ZuL8(KCHu):\n return KCHu\n if isinstance(KCHu, sD2T):\n ... | [
"0.7893356",
"0.7635966",
"0.75395334",
"0.74868953",
"0.74863124",
"0.7400775",
"0.734793",
"0.7344647",
"0.7344647",
"0.7247743",
"0.72181475",
"0.7139285",
"0.7131717",
"0.71202505",
"0.71184325",
"0.711299",
"0.7111703",
"0.7107452",
"0.70702356",
"0.7064822",
"0.7058345"... | 0.7948213 | 0 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew: int) -> int:
D9QR = YKHO.getHashCode(H5ew)
if YKHO.hashmap[D9QR] is None:
return -1
XP5J = YKHO.hashmap[D9QR]
while XP5J is not None:
if XP5J.key == H5ew:
return XP5J.value
XP5J = XP5J.next
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap:\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n return YKHO.hash_map.get(H5ew, -1)",
"def NMoC(YKHO, H5ew: int) -> int:\n or8S = YKHO.hashf(H5ew)\n DpUl = YKHO.map[or8S]\n while D... | [
"0.7847483",
"0.75725996",
"0.7530273",
"0.7467906",
"0.74587214",
"0.7427074",
"0.74002343",
"0.7394038",
"0.7340692",
"0.7306569",
"0.7251422",
"0.72417855",
"0.7224724",
"0.7184055",
"0.71707493",
"0.71683055",
"0.71408814",
"0.70862997",
"0.695845",
"0.6833919",
"0.675625... | 0.7036531 | 18 |
get the current user | def c5ow(YKHO):
CBIr = YKHO.REQUEST.AUTHENTICATED_USER
uJjO = CBIr.getUserName()
return uJjO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO):\n return DW23.get_current_user()",
"def W84Y():\n global user\n if CBIr is None:\n CBIr = N2qU.client.get_current_user()\n return CBIr",
"def NMoC(YKHO):\n return W84Y()",
"def W84Y(YKHO):\n return YKHO._current_user",
"def W84Y(YKHO):\n return YKHO.get_user(YKHO... | [
"0.8894818",
"0.8885112",
"0.8876625",
"0.88454723",
"0.8845244",
"0.8821604",
"0.8787931",
"0.8732431",
"0.87134063",
"0.8701045",
"0.8701045",
"0.8666905",
"0.8666905",
"0.8666905",
"0.8614798",
"0.8609235",
"0.85779107",
"0.8562818",
"0.85348016",
"0.852052",
"0.8503773",
... | 0.0 | -1 |
If the given assetstore has an effective user specified, this returns it. Otherwise returns the current user. | def f6Ec(PJJ3):
return PJJ3['hdfs'].get('user') or zN5h.getpwuid(Hy7s.getuid())[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTeK(YKHO):\n if YKHO._effective_user:\n return YKHO._effective_user\n CBIr = None\n if YKHO.message:\n CBIr = YKHO.message.from_user\n elif YKHO.edited_message:\n CBIr = YKHO.edited_message.from_user\n elif YKHO.inline_query:\n CBIr = YKHO.inline_query.from_user\n ... | [
"0.7022211",
"0.6759385",
"0.6666575",
"0.6653828",
"0.6627175",
"0.66225916",
"0.66025543",
"0.6574315",
"0.65485734",
"0.65405715",
"0.6463949",
"0.6463949",
"0.6447751",
"0.6447751",
"0.6447751",
"0.6445496",
"0.64330846",
"0.64130074",
"0.64105874",
"0.64093167",
"0.64060... | 0.6440849 | 16 |
Manually expire a session. | def pg_u(YKHO):
yxS0 = qcWV.now()
if YKHO.disconnect_delay:
yxS0 += fCoM(seconds=YKHO.disconnect_delay)
if not YKHO.expires or YKHO.expires > yxS0:
YKHO.expires = yxS0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pg_u():\n mWFP = CnSx.serving.request.config.get('tools.sessions.name', 'session_id')\n oB7v = 60 * 60 * 24 * 365\n tTpl = ITS7.time() - oB7v\n CnSx.serving.response.cookie[mWFP]['expires'] = LFOd.HTTPDate(tTpl)",
"def b42V(YKHO, cuiw=None):\n if cuiw is None:\n cuiw = YKHO.session\n ... | [
"0.78630084",
"0.76214373",
"0.749779",
"0.74050564",
"0.73279935",
"0.67676574",
"0.6640804",
"0.6598386",
"0.6584253",
"0.654662",
"0.65399486",
"0.6510056",
"0.65010214",
"0.64512604",
"0.6449209",
"0.64286417",
"0.6427728",
"0.6383542",
"0.6346966",
"0.63405055",
"0.63049... | 0.5967571 | 43 |
Manually expire all sessions in the pool. | async def clear(YKHO):
for cuiw in list(YKHO.sessions.values()):
if cuiw.state != TDN3.CLOSED:
cuiw.disconnect_delay = 0
await YKHO.remote_closed(cuiw)
YKHO.sessions.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zhlt(YKHO):\n YKHO.sync_session.expire_all()",
"def pg_u(YKHO):\n del YKHO.site.sessions[YKHO.uid]\n for Z9rn in YKHO.expireCallbacks:\n Z9rn.callback(YKHO)\n YKHO.expireCallbacks = []",
"def pg_u(YKHO):\n del YKHO.site.sessions[YKHO.uid]\n for Z9rn in YKHO.expireCallbacks:\n ... | [
"0.7823879",
"0.70688975",
"0.6983395",
"0.69473356",
"0.6803154",
"0.6751841",
"0.6534474",
"0.6522737",
"0.64045423",
"0.640339",
"0.6351212",
"0.6275304",
"0.626735",
"0.62662244",
"0.6257826",
"0.62046784",
"0.61882645",
"0.6144396",
"0.61389893",
"0.612853",
"0.60951734"... | 0.5639814 | 58 |
uniq_stable(elems) > list Return from an iterable, a list of all the unique elements in the input, but maintaining the order in which they first appear. | def oI0B(F6AI):
PwWw = set()
return [WKvO for WKvO in F6AI if WKvO not in PwWw and (not PwWw.add(WKvO))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oI0B(F6AI):\n PwWw = set()\n return [WKvO for WKvO in F6AI if WKvO not in PwWw and (not PwWw.add(WKvO))]",
"def oI0B(F6AI):\n PwWw = set()\n return [WKvO for WKvO in F6AI if WKvO not in PwWw and (not PwWw.add(WKvO))]",
"def PYMC(OxJJ):\n return list(UfHm(OxJJ))",
"def ZD05(DumB):\n from... | [
"0.8705889",
"0.8705889",
"0.8292423",
"0.7374944",
"0.7322734",
"0.7090105",
"0.70664597",
"0.7035624",
"0.7015487",
"0.6910504",
"0.6868104",
"0.68461156",
"0.68440235",
"0.67982566",
"0.6797841",
"0.6760785",
"0.67544013",
"0.6749214",
"0.67323667",
"0.6671483",
"0.6671483... | 0.8744177 | 0 |
Given a covariance matrix COV, returns the corresponding correlation matrix CORR. | def YsX8(LvQ0):
if (LvQ0 == 0).all():
return LvQ0
ycBG = oyIN.diag(oyIN.diag(LvQ0) ** (-0.5))
return ycBG @ LvQ0 @ ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BVZq(PFC2):\n XP5J = PFC2.shape[0]\n bSmD = oyIN.zeros((XP5J, XP5J))\n for YRbF in range(XP5J):\n for r845 in range(XP5J):\n bSmD[YRbF, r845] = PFC2[YRbF, r845] / oyIN.sqrt(PFC2[YRbF, YRbF] * PFC2[r845, r845])\n oyIN.fill_diagonal(bSmD, 1)\n return bSmD",
"def nBNA(E3D9):\n ... | [
"0.74385506",
"0.7422648",
"0.73949575",
"0.7289259",
"0.72290987",
"0.722829",
"0.72002393",
"0.715376",
"0.7115869",
"0.7050984",
"0.70438534",
"0.69963056",
"0.69698524",
"0.67813736",
"0.6700834",
"0.669432",
"0.66691697",
"0.661566",
"0.65673864",
"0.65059054",
"0.649167... | 0.79132086 | 0 |
Returns true if the message should be printed in the given timestamp, otherwise returns false. If this method returns false, the message will not be printed. The timestamp is in seconds granularity. | def IghM(YKHO, E3oo, Ol8d):
while len(YKHO.heap):
if YKHO.heap[0][0] <= E3oo:
ycBG = _eVy.heappop(YKHO.heap)
YKHO.cache.pop(ycBG[1])
else:
break
if E3oo < YKHO.cache.get(Ol8d, 0):
return False
YKHO.cache[Ol8d] = E3oo + 10
_eVy.heappush(YKHO.hea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IghM(YKHO, E3oo: int, Ol8d: str) -> bool:\n if YKHO.last_print_ts_dict.get(Ol8d) is None:\n YKHO.last_print_ts_dict[Ol8d] = E3oo\n return True\n if E3oo - YKHO.last_print_ts_dict.get(Ol8d) >= 10:\n YKHO.last_print_ts_dict[Ol8d] = E3oo\n return True\n return False",
"def I... | [
"0.8352539",
"0.8145563",
"0.79650104",
"0.7556362",
"0.71153104",
"0.70308447",
"0.6794517",
"0.6539211",
"0.65365404",
"0.64901906",
"0.64901906",
"0.6369389",
"0.63669884",
"0.6306373",
"0.62211305",
"0.621071",
"0.6177793",
"0.6038462",
"0.60233223",
"0.60037345",
"0.5987... | 0.6929852 | 6 |
Displays a question based on where user is in survey. | def NSJu(QIWb):
h2IT = cuiw.get('responses')
if h2IT is None:
return vKnz('/questions/0')
if len(h2IT) != QIWb:
Dwep('Invalid question: please complete all questions in order!')
return vKnz(f'/questions/{len(h2IT)}')
if len(h2IT) == len(_WCs.questions):
return vKnz('/than... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAls(JVBp):\n CBIr = W84Y()\n NCls = GGod()\n N1p7 = NCls.execute('select question, answer,\\n expert.name as expert, asker.name as asker\\n from question\\n join user as expert on expert.id = question.expert_id\\n ... | [
"0.72922033",
"0.72333074",
"0.6952447",
"0.69101936",
"0.6799917",
"0.67514855",
"0.6703911",
"0.6672512",
"0.6497548",
"0.64818805",
"0.6474484",
"0.6471729",
"0.6468645",
"0.64639914",
"0.64424884",
"0.64258814",
"0.63854",
"0.63590026",
"0.6353215",
"0.6349336",
"0.631278... | 0.66285706 | 8 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. Saves the plot to the provided directory | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', oBIF='', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
QrM1.imshow(Bcwd, interpolation='none', cmap=iMGt)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, KndY, rotation=4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(AGPF, Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):\n Bcwd = Wbxz.confusion_matrix(Y8eF, aMgO)\n TFPw = Bcwd.shape[0]\n if TFPw == 2:\n Hm8T = Bcwd[1, 1] / (Bcwd[1, 0] + Bcwd[1, 1])\n K2Mi = Bcwd[0, 1] / (Bcwd[0, 0] + Bcwd[0, 1])\n print('TPR: \\t\\t\\t{:.5f}'... | [
"0.75012475",
"0.74768776",
"0.74598706",
"0.7459801",
"0.74560565",
"0.7449655",
"0.7426687",
"0.7362197",
"0.73276806",
"0.7324233",
"0.7305177",
"0.7261801",
"0.72545785",
"0.7243512",
"0.7232123",
"0.72276145",
"0.72018254",
"0.7175756",
"0.71647143",
"0.7154328",
"0.7143... | 0.71929914 | 17 |
Initialize a new Message instance. | def FIMM(YKHO):
YKHO._handlers = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d):\n super(... | [
"0.76836365",
"0.7672216",
"0.7672216",
"0.7626548",
"0.75770265",
"0.75770265",
"0.75770265",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.7553268",
"0.75494283",
"0.7512901"... | 0.0 | -1 |
Getter of the task id attribute This method is used by monitor implementations for finding the related task for an event. | def id(YKHO):
return YKHO['id'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _TKD(YKHO):\n return YKHO._task_id",
"def _TKD(YKHO) -> str:\n return YKHO._task_id",
"def unpH(YKHO):\n return YKHO._task.id",
"def id(YKHO):\n return YKHO._task_json['task_id']",
"def id(YKHO):\n return YKHO._task_json['task_id']",
"def jBES(YKHO):\n mHy5 = sVD8(YKHO.class_object)... | [
"0.84776384",
"0.8292957",
"0.8213368",
"0.8192795",
"0.8192795",
"0.8055852",
"0.76576334",
"0.7654971",
"0.7499869",
"0.7461338",
"0.7355783",
"0.7349138",
"0.7322583",
"0.72499007",
"0.7105545",
"0.7019438",
"0.69775504",
"0.6965632",
"0.696164",
"0.68996865",
"0.68509907"... | 0.0 | -1 |
Setup the command line environment to define an aws cli profile with the given name and credentials. If an identically named profile exists, it will not be overwritten. | def pjXw():
wvEv = EpPs()
wvEv.add_argument('-n', '--name', help='Name for the profile to create')
wvEv.add_argument('-k', '--key-id', help='Key id for the profile')
wvEv.add_argument('-s', '--secret', help='Secret to set for the profile')
wvEv.add_argument('-r', '--region', help='Default region for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y1nQ():\n wvEv = j1Jz.ArgumentParser(description=Y1nQ.__doc__)\n wvEv.add_argument('-t', '--target-role', action='store_true', help='Output also azure_default_role_arn')\n wvEv.add_argument('-r', '--role-arn', help='Output also the role given here as the target role for the profile')\n if '_ARGCOMP... | [
"0.6769325",
"0.6728852",
"0.63636917",
"0.6342278",
"0.6265509",
"0.626255",
"0.6257173",
"0.6164803",
"0.6146024",
"0.6136665",
"0.61355925",
"0.61294496",
"0.60992676",
"0.6069505",
"0.6067144",
"0.6041352",
"0.6036915",
"0.6033268",
"0.5997956",
"0.58961165",
"0.5886853",... | 0.7289913 | 0 |
Resolve an azure location based on 'AZURE_LOCATION' enviroment variable, local project or az cli configuration. Defaults to 'northeurope' | def j8Ng():
wvEv = EpPs()
W9Z7.autocomplete(wvEv)
bGrB = wvEv.parse_args()
print(ZxN9()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8Ng(YKHO) -> qe4Y.Input[uLKX[str, 'AzureLocation']]:\n return qe4Y.get(YKHO, 'azure_location')",
"def yQKl(YKHO):\n bNKA = C9U5.VALUES.core.project.GetOrFail()\n Rci7 = YKHO._GetLocation(bNKA) or YKHO._CreateApp(bNKA)\n if Rci7 is not None:\n return Rci7\n raise CgcD('Could not determi... | [
"0.68821335",
"0.61212134",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5706888",
"0.5673883",
"0.5673883",
"0.5673883",
"0.5673883",
"0.5673883",
"0.5673883",
... | 0.7258001 | 0 |
Compute the difference between the workload at time t+1 and the workload at time t minus the drift and plus the idling process (w(t+1) (w(t) delta + I(t))). The result should be a martingale with zero mean. | def YN84(sEAN: crw.ControlledRandomWalk, lHD8: List[snc_types.ActionSpace], JCzM: List[snc_types.StateSpace]) -> BNNa.Matrix:
u5uP = mjMA.compute_load_workload_matrix(env=sEAN, num_wl_vec=None, load_threshold=None, feasible_tol=1e-10)
JCZe = u5uP.workload_mat
kTwQ = u5uP.nu
x82c = JCZe @ oyIN.array(JCzM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _eoL(lGE9):\n return m7L9 - lGE9",
"def yZUO(YKHO, WKvO: tf.Tensor, a1PO: tf.Tensor) -> ZylS.Tensor:\n assert WKvO.shape[-1] == YKHO.state_dim\n return 4.0 * WKvO * (1.0 - ZylS.square(WKvO))",
"def yZUO(YKHO, WKvO: tf.Tensor, a1PO: tf.Tensor) -> ZylS.Tensor:\n raise NotImplementedError",
"def... | [
"0.6309672",
"0.6190549",
"0.6110483",
"0.6016381",
"0.5983198",
"0.58340347",
"0.5828498",
"0.5814427",
"0.5790028",
"0.57664275",
"0.57506764",
"0.5743343",
"0.57112044",
"0.5710393",
"0.5677381",
"0.5677349",
"0.5658375",
"0.5656337",
"0.564861",
"0.56259966",
"0.56196237"... | 0.0 | -1 |
Test that values can be ser/de using our custom json loads/dumps. | def B2L2():
eJh7 = KG2U(name='foo', origin=W9y_.MEASURED)
jth9 = _1kr(PjZe(eJh7))
assert eJh7 == jth9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IyKG(YKHO):\n nPrm = dict(a=123, b='text')\n aUAl = qQXR.dumps(nPrm)\n nLhi = XBzO(aUAl)\n YKHO.assertEqual(nLhi, nPrm)\n nPrm = range(4)\n nLhi = XBzO(nPrm)\n assert nLhi is nPrm",
"def ephY(YKHO):\n nPrm = {'a': ['b', 'c'], 'd': 1, 'e': 'foo'}\n YKHO.assertEqual(nPrm, Napc(nPrm))... | [
"0.7083475",
"0.69966924",
"0.6991295",
"0.69766194",
"0.6966199",
"0.69440913",
"0.69334215",
"0.6908343",
"0.6893837",
"0.6731334",
"0.6695686",
"0.6695686",
"0.6689769",
"0.66761166",
"0.66664076",
"0.65901864",
"0.65874946",
"0.65760654",
"0.65760654",
"0.6572976",
"0.655... | 0.61359686 | 70 |
Generates upload path for FileField | def KqDG(KAOR, Ux0P):
return u'claims/images/%s/%s' % (KAOR.username, Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D260(KAOR, Ux0P):\n return u'uploads/temp/%s' % Ux0P",
"def aSzP(YKHO, Ux0P):\n raise NotImplementedError",
"def CpYb(KAOR, Ux0P):\n import posixpath\n return 'img/portfolio/%s/%s' % (KAOR.slug, Ux0P)",
"def Us_T(KAOR, Ux0P):\n L42E = getattr(KAOR, 'design', KAOR)\n jNha = 'plans' if gC... | [
"0.7674878",
"0.75413895",
"0.74345106",
"0.7327897",
"0.72481275",
"0.7223958",
"0.7209213",
"0.7155578",
"0.71281874",
"0.71125114",
"0.7074032",
"0.70693845",
"0.70581985",
"0.7052851",
"0.7034898",
"0.6971846",
"0.69610846",
"0.6870292",
"0.68167603",
"0.677504",
"0.67659... | 0.6563914 | 32 |
return the identifier of connected component to which vertex v belongs. | def id(YKHO, Ty9i):
return YKHO._id[Ty9i] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OVIA(YKHO, Ty9i):\n return YKHO._items[Ty9i]",
"def II9K(YKHO):\n return YKHO._versioned_component_id",
"def II9K(YKHO):\n return YKHO._versioned_component_id",
"def Gwav(YKHO):\n return YKHO.__v_id",
"def Gwav(YKHO):\n return YKHO.__v_id",
"def Gwav(YKHO):\n return YKHO.__v_id",
... | [
"0.68631643",
"0.6715319",
"0.6715319",
"0.6653277",
"0.6653277",
"0.6653277",
"0.65446454",
"0.6529954",
"0.65154153",
"0.65044916",
"0.64851946",
"0.6197491",
"0.59942615",
"0.5928207",
"0.5883712",
"0.58284545",
"0.5776421",
"0.57583064",
"0.5757557",
"0.57537615",
"0.5717... | 0.58080196 | 16 |
Find a stream and create it if it was not found. Note that the stream will be created as visible by default. | def uTra(YKHO, leAC, Jw93=None):
JJXN = jt5B(YKHO.safe_get(YKHO.urls.streams_path(), message=bGrB('Could not load organisation streams')))
for wOb_ in JJXN.iter('stream'):
if wOb_.find('title').text == leAC:
return wOb_.find('slug').text
NArs = {'title': leAC, 'visibility': YKHO.VISIBILI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9ZG(YKHO, MLMj, hcMT):\n try:\n return YKHO.streams[MLMj]\n except KeyError:\n return YKHO._begin_new_stream(MLMj, hcMT)",
"def uTra(YKHO, MLMj):\n try:\n return YKHO.streams[MLMj]\n except KeyError:\n return YKHO.begin_new_stream(MLMj)",
"def ioyt(YKHO):\n r0Ny ... | [
"0.73123497",
"0.70950055",
"0.6219332",
"0.60470116",
"0.59655106",
"0.5922508",
"0.5895691",
"0.5844065",
"0.58430016",
"0.58222246",
"0.58005816",
"0.58005816",
"0.58005095",
"0.57897663",
"0.5781172",
"0.5723866",
"0.5631091",
"0.55989313",
"0.5555785",
"0.5549943",
"0.55... | 0.6925986 | 2 |
Return the module name of the module path | def ivvY(MJH2):
return Om__.split(MJH2)[1].split('.')[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AItA(MJH2: str):\n LCet = MJH2.replace(Hy7s.sep, '.')\n return LCet.replace('.py', '')",
"def JcXq(pmON):\n U34r = k7X3(pmON)\n if U34r:\n return U34r[0]",
"def JEuV(YKHO) -> str:\n return YKHO.module",
"def ivvY(YKHO):\n return YKHO.module_name",
"def ivvY(mWFP):\n return m... | [
"0.8370488",
"0.8236787",
"0.8146203",
"0.80617386",
"0.80023944",
"0.80021787",
"0.7986508",
"0.79454786",
"0.7880118",
"0.7801254",
"0.7793023",
"0.7771232",
"0.7761114",
"0.7759657",
"0.7757605",
"0.76869196",
"0.7651571",
"0.7650019",
"0.76180536",
"0.75497013",
"0.754669... | 0.8652752 | 0 |
Internal helper called to tell the property its name. Intended to allow a similar name interface as provided by NDB properties. Used during class creation in EndpointsMetaModel. | def QvGq(YKHO, kmfd):
YKHO._code_name = kmfd
if YKHO._name is None:
YKHO._name = YKHO._code_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZgoD(YKHO):\n return YKHO.key_to_property(YKHO.key())",
"def ZgoD(YKHO) -> str:\n return YKHO._property_name",
"def ZgoD(YKHO):\n return YKHO.__property_name",
"def ZgoD(YKHO):\n return YKHO.key_to_property(YKHO.key)",
"def ZgoD(YKHO):\n return YKHO._property_name",
"def mWFP(YKHO) -> ... | [
"0.79887766",
"0.7936082",
"0.7904216",
"0.7837236",
"0.7768344",
"0.7690286",
"0.7690286",
"0.7690286",
"0.7690286",
"0.7690286",
"0.7690286",
"0.7690286",
"0.7690286",
"0.7690286",
"0.7690286",
"0.7623862",
"0.7623862",
"0.7623862",
"0.72731113",
"0.72335905",
"0.72197336",... | 0.0 | -1 |
Constructor for User property. | def FIMM(YKHO, *qIxc, **B2fa):
YKHO._raise_unauthorized = B2fa.pop('raise_unauthorized', False)
super(gUe3, YKHO).__init__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mv1M):\n mv1M().__init__()",
"def FIMM(YKHO, *qIxc, **B2fa):\n super(mv1M, YKHO).__init__(*qIxc, **B2fa)",
"def FIMM(YKHO, CBIr):\n YKHO._user = CBIr",
"def FIMM(YKHO, CBIr=None):\n if CBIr is None:\n CBIr = Nc2H.objects.only('id').get(username='admin')\n YKHO.user = CBIr... | [
"0.79145163",
"0.75076693",
"0.7410661",
"0.7341033",
"0.732345",
"0.7260024",
"0.72591364",
"0.72591364",
"0.72591364",
"0.7163504",
"0.7094932",
"0.70915616",
"0.7062725",
"0.70378995",
"0.7000368",
"0.6954162",
"0.6928082",
"0.69272906",
"0.6904836",
"0.68937504",
"0.68408... | 0.666764 | 34 |
Returns current date in string. Function get_current_date() retrieves a date string using strftime() and datetime.now() of datetime module. The string is then returned. | def m6Z7():
return qcWV.now().strftime(format='%d/%m/%Y') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m6Z7() -> str:\n pass",
"def m6Z7():\n return qcWV.now().strftime('%s')",
"def m6Z7(YKHO):\n yo7_ = JRYC.datetime.now()\n return yo7_.strftime('%m-%d-%y')",
"def m6Z7(YKHO):\n Yd9P = qcWV.datetime.now()\n return Yd9P.strftime('%m/%d/%Y')",
"def m6Z7():\n rg4j = qcWV.today()\n re... | [
"0.88608617",
"0.87076914",
"0.85613245",
"0.8416655",
"0.82795024",
"0.8159118",
"0.81579065",
"0.80564255",
"0.7945329",
"0.79015535",
"0.7893042",
"0.7886679",
"0.7872103",
"0.7848767",
"0.78165245",
"0.7796501",
"0.7796501",
"0.7775078",
"0.77467966",
"0.7742155",
"0.7720... | 0.8799488 | 1 |
Returns current time in string. Function get_current_time() retrieves a time string using strftime() and datetime.now() of datetime module. The string is then returned. | def ApjM():
return qcWV.now().strftime(format='%H:%M') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ApjM():\n return qcWV.now().strftime(gdo3)",
"def ApjM():\n print('get_current_time')\n vHj7 = ITS7.time()\n print(f'Current time (raw): {vHj7}')\n print(f'Current time (formatted): {ITS7.ctime(vHj7)}')",
"def ApjM():\n return ITS7.asctime(ITS7.localtime(ITS7.time()))",
"def vHj7():\n ... | [
"0.852592",
"0.8337617",
"0.8307824",
"0.82842535",
"0.8283116",
"0.82511616",
"0.8196843",
"0.8188376",
"0.8162299",
"0.8133826",
"0.80861557",
"0.8074806",
"0.8060598",
"0.8050247",
"0.800268",
"0.79034585",
"0.7874761",
"0.78662026",
"0.7790841",
"0.7776955",
"0.77698755",... | 0.8634065 | 0 |
Returns current time in seconds in string. Function get_current_time() retrieves a time string with seconds using strftime() and datetime.now() of datetime module. The string is then returned. | def aaIg():
return qcWV.now().strftime(format='%H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ApjM():\n return qcWV.now().strftime(format='%H:%M')",
"def ApjM():\n print('get_current_time')\n vHj7 = ITS7.time()\n print(f'Current time (raw): {vHj7}')\n print(f'Current time (formatted): {ITS7.ctime(vHj7)}')",
"def ApjM():\n return ITS7.asctime(ITS7.localtime(ITS7.time()))",
"def v... | [
"0.80648077",
"0.8037315",
"0.7974645",
"0.79124117",
"0.7845102",
"0.78437996",
"0.78437996",
"0.78097177",
"0.7801644",
"0.7781815",
"0.768143",
"0.7648158",
"0.760783",
"0.760491",
"0.7587931",
"0.75673884",
"0.7556026",
"0.7503695",
"0.74979323",
"0.7486552",
"0.7472156",... | 0.85548264 | 0 |
Returns whether 'user_time' is within 'time_range', given both in strings Function compare_time(user_time, time_range) takes in strings 'user_time' and 'time_range' (optional, uses current time and full time range otherwise). The strings are then converted to datetime.time format using strptime() and time() of datetime... | def h6wm(j2fv=ApjM(), iBFX='00:00-23:59'):
SWox, C7pn = iBFX.split(sep='-')
return qcWV.strptime(SWox, '%H:%M').time() <= qcWV.strptime(j2fv, '%H:%M').time() <= qcWV.strptime(C7pn, '%H:%M').time() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yE3y(YKHO, iBFX, BWXx=None):\n Mkmy = []\n KCol = YKHO._validate_time_range(iBFX)\n if KCol == gyxe:\n return any((YKHO._time_in_range(ZfUD, BWXx) for ZfUD in iBFX))\n Mkmy.append(hu3n(iBFX[0]))\n Mkmy.append(hu3n(iBFX[1]))\n if BWXx is None:\n BWXx = YKHO._time_now()\n BWXx ... | [
"0.71556187",
"0.6745433",
"0.66977185",
"0.6696771",
"0.6608816",
"0.6601806",
"0.6544697",
"0.63320047",
"0.6303576",
"0.6254439",
"0.61864996",
"0.6114536",
"0.6097304",
"0.608979",
"0.6061862",
"0.6036015",
"0.6029751",
"0.60262567",
"0.6020851",
"0.6020034",
"0.6007823",... | 0.9094046 | 0 |
Get an argument parser for a training script. | def elXI():
wvEv = j1Jz.ArgumentParser(formatter_class=j1Jz.ArgumentDefaultsHelpFormatter)
wvEv.add_argument('--omniglot-src', help='path to Omniglot dataset', default='', type=str)
wvEv.add_argument('--miniimagenet-src', help='path to Omniglot dataset', default='', type=str)
wvEv.add_argument('--pretra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eQO8() -> jFQi:\n wvEv = j1Jz.ArgumentParser(description='Fit and evaluate a model based on train-test datasets.')\n wvEv.add_argument('--outputs', help='the outputs directory', default='outputs')\n wvEv.add_argument('--model', help='the model file', default='model.pkl')\n return wvEv.parse_args()"... | [
"0.80105406",
"0.7712851",
"0.74096173",
"0.74053806",
"0.73245996",
"0.7311543",
"0.7210504",
"0.7156422",
"0.7148168",
"0.7132798",
"0.71089655",
"0.71038496",
"0.7100865",
"0.70948225",
"0.708375",
"0.70816094",
"0.7071617",
"0.70704025",
"0.7060768",
"0.7051623",
"0.70380... | 0.0 | -1 |
Remove the current object from the database. Raise `OperationFailure` if something goes wrong. | def kSdD(YKHO, mf9C=False):
Aofo = YKHO.__class__.query.remove({'_id': YKHO._id})
if not Aofo['ok'] and (not mf9C):
raise hJX5('Can not delete the document')
return Aofo['n'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD(YKHO, YEnM: Base) -> None:\n YKHO._session.delete(YEnM)\n YKHO._session.commit()",
"def kSdD(YKHO):\n NCls = YKHO._check_db()\n with NCls.transaction() as UShr:\n UShr.mutate(f'DELETE FROM {YKHO._table} WHERE id=?', (YKHO.id,))\n UShr.mutate(f'DELETE FROM {YKHO._flex_table} WHE... | [
"0.7367509",
"0.73554033",
"0.72409075",
"0.72072923",
"0.72072923",
"0.7205101",
"0.71913564",
"0.7029631",
"0.69966185",
"0.698714",
"0.6985293",
"0.69563615",
"0.6954014",
"0.69330126",
"0.69287497",
"0.69287497",
"0.69287497",
"0.69287497",
"0.6885353",
"0.6874791",
"0.68... | 0.0 | -1 |
Checks if str_value is printable string | def oFu_(Myez):
return set(Myez).issubset(vIwR.printable) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DNZI(vIwR: str | bytes, /) -> bool:\n vIwR = vIwR.strip()\n if not vIwR:\n return True\n try:\n return vIwR.isprintable()\n except Exception:\n pass\n try:\n return vIwR.decode().isprintable()\n except Exception:\n pass\n return False",
"def NQKT(BWXx):... | [
"0.75749934",
"0.6912564",
"0.6874578",
"0.684228",
"0.6708221",
"0.66439825",
"0.6643673",
"0.65762913",
"0.65762913",
"0.65567815",
"0.6551792",
"0.6528539",
"0.65038675",
"0.6498317",
"0.64488804",
"0.64371645",
"0.6427621",
"0.6405984",
"0.63943005",
"0.63877416",
"0.6376... | 0.81767255 | 0 |
find field if exist | def BuAk(Jyyj, mWFP, cuiw):
Pe9W = EfUA([Jyyj]).where(beMV.collection_name == mWFP)
Ylbp = cuiw.execute(Pe9W).fetchall()
return len(Ylbp) != 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jx7R(oToJ, vXX7):\n for YRbF, Jyyj in enumerate(oToJ):\n if Jyyj == vXX7:\n return YRbF\n print('No field called ' + vXX7)\n exit(1)",
"def vtfo(YKHO, Jyyj, **B2fa):\n pass",
"def QTMT(YKHO, H5ew):\n return YKHO.fields_by_human_id.get(H5ew) or YKHO.fields_by_id.get(H5ew) or... | [
"0.6948538",
"0.67529035",
"0.6644225",
"0.6605386",
"0.6588373",
"0.65361",
"0.65003544",
"0.64499104",
"0.6412326",
"0.6412326",
"0.6395997",
"0.6361218",
"0.63409805",
"0.63409805",
"0.63409805",
"0.6330811",
"0.63157785",
"0.6283989",
"0.623438",
"0.6221284",
"0.6208249",... | 0.5745577 | 64 |
Sets the artifact_uri of this Version. | def OxuM(YKHO, OxuM):
YKHO._artifact_uri = OxuM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8eK(YKHO, j8eK: Text):\n YKHO.artifact.uri = j8eK",
"def TgDU(YKHO, dIeA: metadata_store_pb2.Artifact):\n YKHO.artifact = dIeA",
"def cmQO(YKHO, cmQO):\n YKHO._download_uri = cmQO",
"def j8eK(YKHO, j8eK: str):\n YKHO._uri = j8eK",
"def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK",
"def j8eK(... | [
"0.69465077",
"0.6746471",
"0.6236442",
"0.60293907",
"0.6022359",
"0.6022359",
"0.60016656",
"0.60016656",
"0.5883666",
"0.5856939",
"0.58258885",
"0.5761254",
"0.56803226",
"0.55464673",
"0.55150086",
"0.5331962",
"0.53268355",
"0.5272796",
"0.5257128",
"0.5220579",
"0.5181... | 0.86191237 | 0 |
Sets the updated_at of this Version. | def zB0d(YKHO, zB0d):
YKHO._updated_at = zB0d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jh2W(YKHO, BWXx):\n setattr(YKHO, YKHO.UPDATED_AT, BWXx)",
"def zB0d(YKHO, zB0d: datetime):\n if zB0d is None:\n raise ValueError('Invalid value for `updated_at`, must not be `None`')\n YKHO._updated_at = zB0d",
"def zB0d(YKHO, zB0d):\n if zB0d is None:\n raise ValueError('Invalid... | [
"0.7840449",
"0.7664583",
"0.75171435",
"0.7368164",
"0.7368164",
"0.6829844",
"0.6775308",
"0.6753681",
"0.6753681",
"0.6609878",
"0.6604349",
"0.65802526",
"0.6355576",
"0.6355576",
"0.6355576",
"0.6355576",
"0.6355576",
"0.6325985",
"0.6309177",
"0.6309177",
"0.6309177",
... | 0.76331663 | 2 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, moxu):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Extract the value of a stop field described in the puzzle from its associated encoded string. | def c7Y3(Jyyj, VevX):
return getattr(lIoF, '_extract_' + Jyyj + '_value')(VevX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cutj(YKHO, S3Hk, uVZ5, F43P):\n uwse = 'Stops/{}/{}?format=json'.format(uVZ5, F43P)\n s1Am = YKHO.get_api_response(uwse)\n A_E_ = str(S3Hk).strip()\n XRZ1 = []\n for JCyR in s1Am:\n if A_E_ in JCyR['Text']:\n XRZ1.append(JCyR)\n elif A_E_ in JCyR['Value']:\n X... | [
"0.5800117",
"0.5512977",
"0.54125696",
"0.53966683",
"0.53887594",
"0.5333151",
"0.5218235",
"0.5214238",
"0.5213043",
"0.51995486",
"0.5187352",
"0.5175946",
"0.5167246",
"0.51430064",
"0.5122149",
"0.5097959",
"0.5089088",
"0.5089088",
"0.5089088",
"0.5053069",
"0.50467634... | 0.6744597 | 0 |
Cost function of SoftmaxReg,. Returns the value of J(Theta) by the given sample list, and gradient of J(Theta). | def V88D(YKHO, gYZ3):
nLCc = []
r8hN = len(YKHO.sample_list)
G1Hx = len(YKHO.label_set)
Oa10 = 0.0
Ro40 = oyIN.zeros(YKHO.Theta.shape)
P1dF = 0
for YRbF in Ni9Y(r8hN):
nLCc.append(YKHO.predict(YKHO.sample_list[YRbF]))
UXqs = YKHO.label_list[YRbF]
nvEb = nLCc[YRbF].ind... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PIBm(q7In, EcVT, LVAh, w4rS):\n r8hN = LVAh.size\n Oa10 = 0\n Ro40 = oyIN.zeros(q7In.shape)\n MKlR = m1Hg(q7In.dot(EcVT.T))\n ' \\n ## X : m row n feature(col). => matrix m * n dim. \\n ## theta: n feature(col) 1 row. theta*X.T remember multiple matrix\\n ## remember sigmoid(z) = 1 /... | [
"0.7237952",
"0.7207779",
"0.6981678",
"0.69388324",
"0.6938632",
"0.69315416",
"0.6808765",
"0.6798202",
"0.6750623",
"0.6749616",
"0.6742498",
"0.6741867",
"0.6733129",
"0.6698223",
"0.668831",
"0.6653377",
"0.6646511",
"0.66049474",
"0.6591421",
"0.65860194",
"0.6573218",
... | 0.60409284 | 88 |
Returns a row vector by 1(n+1). | def GaME(YKHO, mvm2):
DzFh = oyIN.zeros((1, YKHO.feat_dimension + 1))
for YRbF in mvm2.keys():
DzFh[0][YRbF] = mvm2[YRbF]
return DzFh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ratk(exwG):\n return oyIN.ones((exwG, 1))",
"def liUM(exwG):\n return oyIN.array([YRbF for YRbF in range(exwG)][::-1])",
"def nXnc(exwG, r8hN=None, vgXP=0, yDqo=auK0, k3Zu=None):\n if r8hN is None:\n r8hN = exwG\n Aofo = VNqG((exwG, r8hN), yDqo, k3Zu)\n fciZ = max(0, -vgXP)\n for f... | [
"0.6441761",
"0.6337805",
"0.62018675",
"0.6190715",
"0.61787426",
"0.6169084",
"0.6159678",
"0.614459",
"0.61414456",
"0.61187595",
"0.6102883",
"0.60757387",
"0.60661334",
"0.6061113",
"0.60370535",
"0.6034702",
"0.6030702",
"0.6013585",
"0.60131425",
"0.6010501",
"0.600016... | 0.0 | -1 |
Normalize the X, a list of float value. | def NkkI(EcVT):
JCoA = max(EcVT)
yvT9 = []
xuEw = 0.0
for H5ew in range(len(EcVT)):
yvT9.append(epAf.exp(EcVT[H5ew] - JCoA))
xuEw += yvT9[H5ew]
for H5ew in range(len(EcVT)):
yvT9[H5ew] /= xuEw
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, WKvO):\n kpLf = min(WKvO)\n JCoA = max(WKvO)\n if JCoA - kpLf == 0:\n return WKvO\n return oyIN.array([(kidU - kpLf) / (JCoA - kpLf) for kidU in WKvO])",
"def NkkI(YKHO, WKvO):\n EcVT = oyIN.asanyarray(WKvO)\n if EcVT.std() < YKHO.eps:\n return [0 for bTKY in EcVT]\... | [
"0.7530181",
"0.74621964",
"0.735805",
"0.7138219",
"0.7077723",
"0.7072939",
"0.7069359",
"0.702385",
"0.697266",
"0.693297",
"0.6893426",
"0.6891806",
"0.68875015",
"0.6881264",
"0.6879839",
"0.6860023",
"0.6843698",
"0.68417925",
"0.6838381",
"0.6764814",
"0.67509305",
"... | 0.6772148 | 19 |
Sets the visible of this AccountPermissions. | def oWb2(YKHO, oWb2):
YKHO._visible = oWb2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSOI(YKHO, oWb2):\n YKHO.__visible__ = oWb2\n return YKHO",
"def lSOI(YKHO, oWb2):\n YKHO.visible = oWb2",
"def lSOI(YKHO, oWb2):\n pass",
"def FEaV(YKHO, oWb2):\n pass",
"def jWUR(YKHO, oWb2):\n if YKHO._visible != oWb2:\n YKHO._visible = oWb2\n if YKHO._group_visible:\... | [
"0.7089648",
"0.7041998",
"0.6835432",
"0.6688131",
"0.66479427",
"0.658071",
"0.64106214",
"0.63846195",
"0.6362679",
"0.6295349",
"0.62418586",
"0.6231452",
"0.6184354",
"0.61749893",
"0.61745065",
"0.6148869",
"0.61195165",
"0.61195165",
"0.5974097",
"0.5966545",
"0.592518... | 0.6862742 | 2 |
Sets the system_payments of this AccountPermissions. | def xSuO(YKHO, xSuO):
YKHO._system_payments = xSuO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q97W(YKHO, q97W):\n YKHO._system_policy = q97W",
"def XwgY(YKHO, XwgY):\n YKHO._self_payments = XwgY",
"def ixgL(YKHO, ixgL):\n YKHO._user_payments = ixgL",
"def o5pq(YKHO, o5pq):\n if YKHO._configuration.client_side_validation and o5pq is not None and (o5pq < 0):\n raise ValueError('I... | [
"0.58851665",
"0.58681387",
"0.5833923",
"0.55707777",
"0.55206895",
"0.55174464",
"0.54439443",
"0.54439443",
"0.5359742",
"0.5356033",
"0.5324121",
"0.5324121",
"0.5269165",
"0.5108785",
"0.51013225",
"0.5083865",
"0.49789992",
"0.49789992",
"0.49789992",
"0.49789992",
"0.4... | 0.8626472 | 0 |
Sets the self_payments of this AccountPermissions. | def XwgY(YKHO, XwgY):
YKHO._self_payments = XwgY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VrMh(YKHO, VrMh):\n YKHO._self_registration = VrMh",
"def RVKK(j7HU=None, drNi=None):\n pass",
"def xSuO(YKHO, xSuO):\n YKHO._system_payments = xSuO",
"def ixgL(YKHO, ixgL):\n YKHO._user_payments = ixgL",
"def Wh0A(YKHO, Wh0A):\n if Wh0A is None:\n raise ValueError('Invalid value ... | [
"0.5277803",
"0.5263357",
"0.5183427",
"0.50102377",
"0.49998954",
"0.47288495",
"0.4679092",
"0.4679092",
"0.4586764",
"0.45382488",
"0.4476287",
"0.4436808",
"0.4436808",
"0.44182917",
"0.44046006",
"0.44046006",
"0.44046006",
"0.44046006",
"0.44046006",
"0.4388195",
"0.438... | 0.8408624 | 0 |