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 |
|---|---|---|---|---|---|---|
Sets the workflow_task_count of this WorkflowWorkflowInfoAllOf. | def EmWQ(YKHO, EmWQ):
YKHO._workflow_task_count = EmWQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOFl(YKHO, wOFl):\n YKHO._process_count = wOFl",
"def KKQq(YKHO, HlEO):\n YKHO._data_dict[YKHO.KEY_BI_WORKFLOWS] = HlEO",
"def Rodg(YKHO, Rodg):\n YKHO._processor_count = Rodg",
"def Ptf5(YKHO, Ptf5):\n YKHO._workflow_status = Ptf5",
"def UVJY(YKHO, JzhC=False):\n if JzhC:\n retur... | [
"0.5321464",
"0.53206366",
"0.52921915",
"0.5214196",
"0.5126126",
"0.5088125",
"0.50156325",
"0.50148696",
"0.49930224",
"0.49899358",
"0.49779657",
"0.4957459",
"0.49497092",
"0.4938707",
"0.48402986",
"0.48093107",
"0.48084217",
"0.4760027",
"0.4760027",
"0.4752337",
"0.47... | 0.8547748 | 0 |
Sets the account of this WorkflowWorkflowInfoAllOf. | def ZrNc(YKHO, ZrNc):
YKHO._account = ZrNc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AwQC(YKHO, ZrNc: str):\n U5bT = YKHO._call_txtrader_api('set_account', {'account': ZrNc})\n if U5bT:\n YKHO.account = ZrNc\n return U5bT",
"def ZrNc(YKHO, ZrNc: str):\n YKHO._account = ZrNc",
"def HmwW(YKHO, HmwW):\n YKHO._business_account = HmwW",
"def AwQC(YKHO):\n return YKHO.... | [
"0.6609705",
"0.64991796",
"0.62680054",
"0.6256864",
"0.6238076",
"0.6210242",
"0.6059383",
"0.603256",
"0.601816",
"0.59283566",
"0.5807356",
"0.5661204",
"0.56608367",
"0.5648552",
"0.5631902",
"0.5593608",
"0.5593608",
"0.5593608",
"0.5593608",
"0.5593608",
"0.5593608",
... | 0.6595424 | 3 |
Sets the organization of this WorkflowWorkflowInfoAllOf. | def wbiw(YKHO, wbiw):
YKHO._organization = wbiw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wbiw(YKHO, BWXx):\n wbiw = YKHO._tower.get_organization_by_name(BWXx)\n if not wbiw:\n raise XZDv(BWXx)\n YKHO._update_values('organization', wbiw.id)",
"def UKj1(YKHO, *qIxc):\n return _VfD.ModelCreator_setOrganization(YKHO, *qIxc)",
"def gZ75(YKHO, gZ75):\n YKHO._organization_id = g... | [
"0.64512193",
"0.6413507",
"0.6273569",
"0.6273569",
"0.59499544",
"0.57473254",
"0.5661312",
"0.5651027",
"0.5575408",
"0.55587095",
"0.5550213",
"0.55254066",
"0.55254066",
"0.55254066",
"0.54535234",
"0.5386825",
"0.5259958",
"0.52533203",
"0.5210195",
"0.52054965",
"0.520... | 0.7105023 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, xpKQ):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, xpKQ):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Sets the disk id. | def kNGL(YKHO, UTqa):
YKHO.__disk = UTqa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EeJM(YKHO, Yy4E):\n YKHO.__diskId = Yy4E",
"def kCd5(YKHO, kCd5):\n YKHO._disk_num = kCd5",
"def UTqa(YKHO, UTqa):\n YKHO._context['disk'] = UTqa",
"def mm_2(YKHO, UTqa):\n wgkp(YKHO, YKHO.name, old=getattr(YKHO.disk, 'name', None), new=getattr(UTqa, 'name', None))\n YKHO.parents = []\n ... | [
"0.855126",
"0.7090983",
"0.6793492",
"0.647074",
"0.6312028",
"0.6186076",
"0.6154758",
"0.61147004",
"0.6099951",
"0.6090852",
"0.5955262",
"0.59471774",
"0.5921482",
"0.5911233",
"0.5900415",
"0.58833015",
"0.58779275",
"0.58755255",
"0.5866125",
"0.5866125",
"0.5866125",
... | 0.7199222 | 1 |
Sets the disk id. | def EeJM(YKHO, Yy4E):
YKHO.__diskId = Yy4E | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kNGL(YKHO, UTqa):\n YKHO.__disk = UTqa",
"def kCd5(YKHO, kCd5):\n YKHO._disk_num = kCd5",
"def UTqa(YKHO, UTqa):\n YKHO._context['disk'] = UTqa",
"def mm_2(YKHO, UTqa):\n wgkp(YKHO, YKHO.name, old=getattr(YKHO.disk, 'name', None), new=getattr(UTqa, 'name', None))\n YKHO.parents = []\n i... | [
"0.7199222",
"0.7090983",
"0.6793492",
"0.647074",
"0.6312028",
"0.6186076",
"0.6154758",
"0.61147004",
"0.6099951",
"0.6090852",
"0.5955262",
"0.59471774",
"0.5921482",
"0.5911233",
"0.5900415",
"0.58833015",
"0.58779275",
"0.58755255",
"0.5866125",
"0.5866125",
"0.5866125",... | 0.855126 | 0 |
Distribution of the state at the first time step. | def W9gz(YKHO, SGPK=None):
if SGPK is not None:
_REF = SGPK.get('tbranch')
ZbDC = SGPK.get('fbranch')
else:
_REF = ZbDC = None
mcBe = YKHO._dynamics_tbranch.initial_state(_REF)
return mcBe.map(ZylS.identity).union(mcBe.prefixed_with('tbranch').union(YKHO._dynamics_fbranch.initial... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L7BV(YKHO, KCHu):\n return YKHO._starting_state_distribution.pdf(KCHu)",
"def IISS(YKHO, nY3C=None):\n if nY3C is None:\n YKHO.initial_state_distribution = YKHO.env.get_initial_state_distribution()\n else:\n YKHO.initial_state_distribution = nY3C",
"def NmEr(YKHO, QTBn, XeOP):\n r... | [
"0.70713156",
"0.6865461",
"0.6714622",
"0.6665688",
"0.6662402",
"0.6662402",
"0.6662402",
"0.6662402",
"0.6662402",
"0.6649384",
"0.6642803",
"0.66367215",
"0.66354716",
"0.66349643",
"0.66329455",
"0.6625328",
"0.66201437",
"0.6549524",
"0.65466243",
"0.6545233",
"0.651902... | 0.0 | -1 |
Constructs a FiniteStateMarkovModel entity. See tf.gather for shape conventions. | def FIMM(YKHO, SKeO=None, HTeT=None, Xng_=0, mWFP='FiniteStateMarkovModel'):
super().__init__(name=mWFP)
YKHO._maybe_set_static_parameters(transition_parameters=SKeO, initial_dist_logits=HTeT)
YKHO._batch_dims = Xng_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pPQk(xD0F, yokr):\n with pzlJ.SPA(seed=yokr) as C3ST:\n C3ST.state = pzlJ.State(dimensions=xD0F, feedback=1.0, feedback_synapse=0.01)\n xASv = pzlJ.Actions(*('dot(state, {}) --> state = {}'.format(WKvO, LVAh) for WKvO, LVAh in zip('ABCDE', 'BCDEA')))\n C3ST.bg = pzlJ.BasalGanglia(action... | [
"0.61582226",
"0.5743764",
"0.55372304",
"0.54695594",
"0.5467602",
"0.53655535",
"0.5364793",
"0.53570086",
"0.5355838",
"0.5248177",
"0.52112013",
"0.52104205",
"0.5190977",
"0.5183897",
"0.5157981",
"0.5144771",
"0.5141594",
"0.5128713",
"0.5102423",
"0.5068482",
"0.506217... | 0.60769093 | 1 |
Samples a state tensor for a batch of actors. | def W9gz(YKHO, SGPK=None):
if SGPK is None:
SGPK = YKHO._get_static_parameters_or_die()
return WnaT(state=ldJB.Categorical(logits=SGPK.get('initial_dist_logits'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GUnc(YKHO, QTBn):\n XeOP = YKHO.tf_sess.run(YKHO.sample, feed_dict={YKHO.X: QTBn.reshape(1, len(QTBn))})\n return XeOP",
"def UiM1(YKHO, H5ew, QTBn):\n AJEJ = ZylS.random.stateless_categorical(YKHO._logits[QTBn][None, :], 1, H5ew, dtype=ZylS.int32)\n return ZylS.reshape(AJEJ, ())",
"def mvm2(YK... | [
"0.6947551",
"0.68260443",
"0.6703842",
"0.6625459",
"0.65073866",
"0.64972085",
"0.64768577",
"0.6474318",
"0.6455162",
"0.6442241",
"0.63914365",
"0.6366968",
"0.6282856",
"0.62288976",
"0.62052554",
"0.6203083",
"0.62018615",
"0.61644995",
"0.61373484",
"0.6117139",
"0.607... | 0.0 | -1 |
Samples a state tensor for a batch of actors. | def W9gz(YKHO, SGPK=None):
if SGPK is None:
SGPK = YKHO._get_static_parameters_or_die()
pNTK = YKHO._initial_dist_scale_ctor(SGPK.get('initial_dist_scale'))
return WnaT(state=ldJB.MultivariateNormalLinearOperator(loc=0.0, scale=pNTK)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GUnc(YKHO, QTBn):\n XeOP = YKHO.tf_sess.run(YKHO.sample, feed_dict={YKHO.X: QTBn.reshape(1, len(QTBn))})\n return XeOP",
"def UiM1(YKHO, H5ew, QTBn):\n AJEJ = ZylS.random.stateless_categorical(YKHO._logits[QTBn][None, :], 1, H5ew, dtype=ZylS.int32)\n return ZylS.reshape(AJEJ, ())",
"def mvm2(YK... | [
"0.6947551",
"0.68260443",
"0.6703842",
"0.6625459",
"0.65073866",
"0.64972085",
"0.64768577",
"0.6474318",
"0.6455162",
"0.6442241",
"0.63914365",
"0.6366968",
"0.6282856",
"0.62288976",
"0.62052554",
"0.6203083",
"0.62018615",
"0.61644995",
"0.61373484",
"0.6117139",
"0.607... | 0.0 | -1 |
Constructs a LinearGaussianStateModel entity. | def FIMM(YKHO, B8c6, oENu, lOzR=None, EWPw=None, SKeO=None, fAjz=None, mWFP='LinearGaussianStateModel'):
BJnO = lambda bGrB: ZylS.linalg.LinearOperatorZeros(num_rows=1)
super().__init__(transition_op_ctor=B8c6, control_op_ctor=BJnO, transition_noise_scale_ctor=lOzR, initial_dist_scale_ctor=oENu, initial_dist_sc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8Ya(YKHO, lth4: randvars.Normal):\n Oa1e = YKHO.non_linear_model.state_trans_fun\n xkW5 = YKHO.non_linear_model.jacob_state_trans_fun\n nJ9F = lth4.mean\n\n def lsgx(a1PO):\n return Oa1e(a1PO, nJ9F) - xkW5(a1PO, nJ9F) @ nJ9F\n\n def qjiT(a1PO):\n return xkW5(a1PO, nJ9F)\n retur... | [
"0.60173315",
"0.586068",
"0.57481647",
"0.5734987",
"0.56783867",
"0.560434",
"0.5567105",
"0.55232114",
"0.54899967",
"0.54825956",
"0.5463306",
"0.5445745",
"0.54207027",
"0.5412358",
"0.5387524",
"0.53816247",
"0.53816247",
"0.5369552",
"0.5368224",
"0.53540725",
"0.53440... | 0.6650809 | 0 |
Samples a state tensor for a batch of actors. | def W9gz(YKHO, SGPK=None):
if SGPK is not None:
raise NotImplementedError('Dynamically specifying RNN weights is currently not supported.')
EyxZ = YKHO._rnn_cell.get_initial_state(batch_size=YKHO._batch_size, dtype=ZylS.float32)
jMDC, nnFI = YKHO._rnn_cell(ZylS.zeros((YKHO._batch_size, YKHO._input_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GUnc(YKHO, QTBn):\n XeOP = YKHO.tf_sess.run(YKHO.sample, feed_dict={YKHO.X: QTBn.reshape(1, len(QTBn))})\n return XeOP",
"def UiM1(YKHO, H5ew, QTBn):\n AJEJ = ZylS.random.stateless_categorical(YKHO._logits[QTBn][None, :], 1, H5ew, dtype=ZylS.int32)\n return ZylS.reshape(AJEJ, ())",
"def mvm2(YK... | [
"0.6947551",
"0.68260443",
"0.6703842",
"0.6625459",
"0.65073866",
"0.64972085",
"0.64768577",
"0.6474318",
"0.6455162",
"0.6442241",
"0.63914365",
"0.6366968",
"0.6282856",
"0.62288976",
"0.62052554",
"0.6203083",
"0.62018615",
"0.61644995",
"0.61373484",
"0.6117139",
"0.607... | 0.0 | -1 |
Get storage location for this S3 service. | def tUHy(YKHO):
return YKHO.s3_bucket | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qDzk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'default_s3_location')",
"def qDzk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'default_s3_location')",
"def qDzk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'default_s3_location')",
"def r7DA(YKHO) -> qe4Y.Output[str]:\n ... | [
"0.7371423",
"0.69910794",
"0.6987746",
"0.6937144",
"0.6866469",
"0.67450845",
"0.67162067",
"0.6645967",
"0.66115385",
"0.6583917",
"0.65399504",
"0.65077573",
"0.64811045",
"0.646269",
"0.64598596",
"0.6449051",
"0.64325005",
"0.63170296",
"0.6312064",
"0.630059",
"0.62827... | 0.9002589 | 0 |
Property to read and modify the lower left coordinate of this box in (x,y) form. | def ksua(YKHO) -> AzJI[SOnQ.Decimal, SOnQ.Decimal]:
return (YKHO.left, YKHO.bottom) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LFlW(YKHO):\n return YKHO.points['topLeft'].x",
"def LFlW(YKHO):\n return YKHO.points['topLeft'].x",
"def ShLW(YKHO):\n return PvyL(YKHO.left, YKHO.top)",
"def PqXs(YKHO):\n return min(YKHO.x, YKHO.x + YKHO.w)",
"def AMuk(YKHO):\n YKHO._updateExtents()\n return (YKHO._mMinX, YKHO._mMi... | [
"0.76286256",
"0.76286256",
"0.76087475",
"0.74515605",
"0.73134714",
"0.7204906",
"0.719683",
"0.7192302",
"0.7148248",
"0.70443517",
"0.699885",
"0.69492775",
"0.69086164",
"0.6881616",
"0.6857238",
"0.6813681",
"0.6756147",
"0.6722424",
"0.67214847",
"0.67118055",
"0.66944... | 0.6828447 | 15 |
Property to read and modify the lower right coordinate of this box in (x,y) form. | def Ol_L(YKHO) -> AzJI[SOnQ.Decimal, SOnQ.Decimal]:
return (YKHO.right, YKHO.bottom) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPsH(YKHO):\n return (YKHO.rect.x, YKHO.rect.y)",
"def CiQY(YKHO):\n return mb3R([YKHO.x + 1, YKHO.y - 1])",
"def Oe84(YKHO):\n YKHO._updateExtents()\n return (YKHO._mMaxX, YKHO._mMinY)",
"def PqXs(YKHO):\n return min(YKHO.x, YKHO.x + YKHO.w)",
"def aRqw(YKHO):\n return mb3R([YKHO.x +... | [
"0.70079947",
"0.69519484",
"0.6918452",
"0.6880475",
"0.6871949",
"0.68257385",
"0.6806675",
"0.68065995",
"0.6799814",
"0.6799814",
"0.67966425",
"0.67917544",
"0.66918015",
"0.66918015",
"0.66046894",
"0.65871626",
"0.6579464",
"0.6498612",
"0.6497025",
"0.63779926",
"0.62... | 0.6270754 | 25 |
Property to read and modify the upper left coordinate of this box in (x,y) form. | def K3QL(YKHO) -> AzJI[SOnQ.Decimal, SOnQ.Decimal]:
return (YKHO.left, YKHO.top) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPsH(YKHO):\n return (YKHO.rect.x, YKHO.rect.y)",
"def lxK0(YKHO):\n return mb3R([YKHO.x - 1, YKHO.y - 1])",
"def ShLW(YKHO):\n return PvyL(YKHO.left, YKHO.top)",
"def sE6M(YKHO):\n return IJJR(YKHO.box_begin, YKHO.box_end)",
"def jtTB(YKHO):\n return mb3R([YKHO.x - 1, YKHO.y + 1])",
"... | [
"0.7736969",
"0.7220757",
"0.70989484",
"0.7098229",
"0.7043",
"0.70254904",
"0.69526947",
"0.69526947",
"0.6874103",
"0.68080246",
"0.6794687",
"0.6791028",
"0.6763088",
"0.6756324",
"0.6678922",
"0.66400844",
"0.663078",
"0.66178113",
"0.6609622",
"0.65451723",
"0.6543797",... | 0.6424764 | 28 |
Property to read and modify the upper right coordinate of this box in (x,y) form. | def HPKV(YKHO) -> AzJI[SOnQ.Decimal, SOnQ.Decimal]:
return (YKHO.right, YKHO.top) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aRqw(YKHO):\n return mb3R([YKHO.x + 1, YKHO.y + 1])",
"def CiQY(YKHO):\n return mb3R([YKHO.x + 1, YKHO.y - 1])",
"def eqr8(YKHO):\n return max(YKHO.x, YKHO.x + YKHO.w)",
"def Oe84(YKHO):\n YKHO._updateExtents()\n return (YKHO._mMaxX, YKHO._mMinY)",
"def PgrI(YKHO):\n YKHO._updateExten... | [
"0.7234896",
"0.7208419",
"0.71646935",
"0.7128582",
"0.7082338",
"0.69099325",
"0.69099325",
"0.684273",
"0.67991143",
"0.6773436",
"0.6712202",
"0.6658549",
"0.6614157",
"0.6590005",
"0.65537214",
"0.6466284",
"0.64545816",
"0.64545816",
"0.6452278",
"0.6450566",
"0.6440077... | 0.6340971 | 26 |
Readonly property accessing the destination title. | def leAC(YKHO) -> h8nf[str]:
return YKHO.get('/Title') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO.title",
"def Upwb(YKHO):\n return YKHO.title",
"def Upwb(YKHO):\n return YKHO.title",
"def leAC(YKHO) -> str:\n raise NotImplementedError",
"def leAC(YKHO):\n return YKHO['title']",
"def leAC(YKHO) -> str:\n retu... | [
"0.6961038",
"0.68728906",
"0.68728906",
"0.68728906",
"0.68283546",
"0.6824291",
"0.6800047",
"0.6790193",
"0.6790193",
"0.6790193",
"0.6790193",
"0.6790193",
"0.6790193",
"0.6788795",
"0.6788795",
"0.6788795",
"0.67842835",
"0.67842835",
"0.67842835",
"0.6750037",
"0.674765... | 0.0 | -1 |
Readonly property accessing the left horizontal coordinate. | def LFlW(YKHO) -> h8nf[CYmz]:
return YKHO.get('/Left', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yX3E(YKHO):\n return YKHO.left",
"def LFlW(YKHO):\n return YKHO.points['topLeft'].x",
"def LFlW(YKHO):\n return YKHO.points['topLeft'].x",
"def LFlW(YKHO):\n WKvO, LVAh = (YKHO.loc[0] - 1, YKHO.loc[1])\n if WKvO < 0:\n return None\n return YKHO.garden.cells[LVAh][WKvO]",
"def P... | [
"0.74524087",
"0.7242441",
"0.7242441",
"0.7196843",
"0.7170824",
"0.71659166",
"0.7137411",
"0.71146894",
"0.7085377",
"0.7063215",
"0.7048031",
"0.7027578",
"0.7016096",
"0.6994973",
"0.6989465",
"0.6982879",
"0.6982879",
"0.6973955",
"0.6862453",
"0.6852263",
"0.68517905",... | 0.66317093 | 33 |
Readonly property accessing the right horizontal coordinate. | def _tIi(YKHO) -> h8nf[CYmz]:
return YKHO.get('/Right', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _tIi(YKHO):\n return YKHO.left + YKHO.width",
"def eqr8(YKHO):\n return max(YKHO.x, YKHO.x + YKHO.w)",
"def _tIi(YKHO):\n return YKHO.r",
"def xMr9(YKHO):\n return YKHO.right",
"def _tIi(YKHO):\n return YKHO.points['topRight'].x",
"def _tIi(YKHO):\n return YKHO.points['topRight'].x"... | [
"0.69031847",
"0.67124265",
"0.66826564",
"0.6573892",
"0.6562447",
"0.6562447",
"0.6537001",
"0.6501227",
"0.6486398",
"0.64790356",
"0.64750904",
"0.6429038",
"0.6419027",
"0.6419027",
"0.6395297",
"0.63746417",
"0.63521594",
"0.6334135",
"0.6255263",
"0.61487085",
"0.60816... | 0.5719672 | 55 |
Readonly property accessing the top vertical coordinate. | def tlxW(YKHO) -> h8nf[CYmz]:
return YKHO.get('/Top', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zojy(YKHO):\n return YKHO.position.y + YKHO.size.y + YKHO.bulk",
"def cp3Z(YKHO):\n return max(YKHO.y, YKHO.y + YKHO.h)",
"def tlxW(YKHO):\n return YKHO.points['topRight'].y",
"def tlxW(YKHO):\n return YKHO.points['topRight'].y",
"def wvNT(YKHO):\n raise NotImplementedError",
"def yDCK... | [
"0.710111",
"0.68731254",
"0.68259984",
"0.68259984",
"0.66603446",
"0.65493023",
"0.6546417",
"0.6418809",
"0.6361531",
"0.6349726",
"0.6321155",
"0.6274795",
"0.6274493",
"0.6264007",
"0.6201188",
"0.6142193",
"0.61386585",
"0.610809",
"0.61047274",
"0.60672003",
"0.6012361... | 0.0 | -1 |
Readonly property accessing the bottom vertical coordinate. | def es2x(YKHO) -> h8nf[CYmz]:
return YKHO.get('/Bottom', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kohr(YKHO):\n raise NotImplementedError",
"def es2x(YKHO):\n return YKHO.top + YKHO.height",
"def RBuK(YKHO):\n return YKHO.position.y - YKHO.size.y - YKHO.bulk",
"def es2x(YKHO):\n return YKHO.points['bottomRight'].y",
"def es2x(YKHO):\n return YKHO.points['bottomRight'].y",
"def es2x... | [
"0.7551743",
"0.7382025",
"0.7342788",
"0.72213024",
"0.72213024",
"0.7119624",
"0.71027684",
"0.7079467",
"0.6920968",
"0.6904349",
"0.6835028",
"0.6792669",
"0.6704462",
"0.6666149",
"0.6416772",
"0.6378363",
"0.63745844",
"0.6372734",
"0.6334849",
"0.6298355",
"0.6292787",... | 0.62286496 | 25 |
Initializes heap instance.Inputs are no of elements in heap and limit of restructuring of heap. | def FIMM(YKHO, mGqz, MOfs):
YKHO.heap = ['NaN'] * mGqz
YKHO.noOfElements = mGqz
YKHO.i = 1
YKHO.noOfRemovedElements = 0
YKHO.limitOfRestructuring = MOfs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.min_heap = []\n YKHO.max_heap = []\n YKHO.size_max, YKHO.size_min = (0, 0)",
"def FIMM(YKHO, gGCN=[]):\n _eVy.heapify(gGCN)\n YKHO.heap = gGCN\n YKHO.entry_finder = dict({YRbF[-1]: YRbF for YRbF in gGCN})\n YKHO.REMOVED = HwRy.maxsize",
"def FIMM(YKHO):\n YKHO.min... | [
"0.7872689",
"0.78718746",
"0.77746433",
"0.7703879",
"0.7700862",
"0.7640832",
"0.76038057",
"0.7587779",
"0.7543796",
"0.74869823",
"0.7466747",
"0.74636537",
"0.7434665",
"0.7433525",
"0.741593",
"0.741593",
"0.741593",
"0.74121726",
"0.7400985",
"0.7385111",
"0.7349339",
... | 0.8127257 | 0 |
Function to restructure heap to store elements in a continuous fashion in the list. | def hJSt(YKHO):
YKHO.i = 1
shUF = []
for T05w in YKHO.heap:
if T05w != 'NaN':
shUF.append(T05w)
YKHO.heap = ['NaN'] * YKHO.noOfElements
for U6D_ in shUF:
YKHO.insertElement(U6D_, YKHO.i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npt8(nPrm):\n zNig = len(nPrm)\n for YRbF in range(zNig // 2, -1, -1):\n kA99(nPrm, YRbF)",
"def ENpy(YKHO):\n yKcO = YKHO._parent(len(YKHO) - 1)\n for YRbF in range(yKcO, -1, -1):\n YKHO._down_heap(YRbF)",
"def GUTP(YKHO, ybN4):\n YRbF = len(ybN4) // 2\n YKHO.currentSize = ... | [
"0.75522405",
"0.7437871",
"0.72836965",
"0.7224376",
"0.71689165",
"0.71542585",
"0.7145125",
"0.7145125",
"0.7111045",
"0.6952901",
"0.69036293",
"0.6897025",
"0.689172",
"0.68875325",
"0.6880433",
"0.67749697",
"0.6733229",
"0.67183167",
"0.66768026",
"0.65680516",
"0.6539... | 0.8265854 | 0 |
Gets the number of the terminal of active PD element that is on the "from" side. This is set after the meter zone is determined. | def NHVF(YKHO) -> int:
return YKHO.dss_obj.PDElementsI(gk2W.c_int32(7), gk2W.c_int32(0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4Lq(YKHO):\n return YKHO.node.sdo[8732].phys",
"def BKVN(YKHO):\n xMOH = 'DELTAI' + YKHO.output + '?'\n return YKHO.scpi_comm(xMOH)",
"def hSYt(YKHO):\n return YKHO._get_active()",
"def V_ib(YKHO):\n XA6o = '?'\n nPrm = YKHO.sendRcv(XA6o)\n YKHO.state['plunger_pos'] = int(nPrm)\n ... | [
"0.60825145",
"0.5865261",
"0.5603476",
"0.55617607",
"0.5542426",
"0.55111235",
"0.5410498",
"0.540583",
"0.53970623",
"0.5295192",
"0.5291269",
"0.52739096",
"0.5265048",
"0.52591",
"0.5257556",
"0.5252305",
"0.524203",
"0.5230821",
"0.5213554",
"0.52052367",
"0.5203081",
... | 0.6026718 | 1 |
Gets the integer ID of the feeder section that this PDElement branch is part of. | def mC5q(YKHO) -> int:
return YKHO.dss_obj.PDElementsI(gk2W.c_int32(8), gk2W.c_int32(0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NHWH(YKHO) -> str:\n return YKHO['id']",
"def id(YKHO):\n return YKHO.get_data('id')",
"def id(YKHO) -> int:\n return YKHO._id",
"def id(YKHO) -> int:\n return YKHO._id",
"def id(YKHO) -> int:\n return YKHO._id",
"def id(YKHO) -> int:\n return YKHO._id",
"def id(YKHO) -> int:\n ... | [
"0.66867673",
"0.6119269",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.61072624",
"0.607847",
"0.607847",
"0.603825",
"0.6025901",
"0.6... | 0.60855085 | 16 |
Generate a random string of a given length. | def BWvy(u54L=8, gLiZ=vIwR.ascii_letters + vIwR.digits):
return ''.join([gLiZ[tuKI.randint(0, len(gLiZ) - 1)] for YRbF in range(u54L)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))",
"def e7Tf(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(u54L)))",
"def e7Tf(u54L=30):\n dLKT = C1SZ + BHGE\n return ''.join((Acvy(dLKT) for b... | [
"0.900645",
"0.8976036",
"0.8840446",
"0.8827785",
"0.8795691",
"0.8775185",
"0.8773582",
"0.8742192",
"0.8722319",
"0.8718203",
"0.86625445",
"0.8655195",
"0.86344033",
"0.8606815",
"0.85888666",
"0.8571902",
"0.85610783",
"0.8555113",
"0.8552302",
"0.85510385",
"0.8522412",... | 0.8397112 | 25 |
Given a sequence and the alternative sequence yield all mfes. | def mxaw(Q6uT, c1Mt):
for dQgj, bseI in enumerate(c1Mt):
vWUR = fXiu(Q6uT, dQgj, bseI)
yield YYi8(vWUR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def by6d(Q6uT, *Xtuq):\n yield from FzTF(None, Q6uT, *Xtuq)",
"def a6K_(yilf, qBwg=None, am_C=False, u2Zr=None):\n for ZfUD in yilf:\n yield ZfUD\n yield qBwg\n while am_C:\n yield am_C\n if u2Zr:\n u2Zr()",
"def DQAz():\n yield 2\n for exwG in UHFx(2, 2):\n yie... | [
"0.60232437",
"0.5683796",
"0.56831485",
"0.5667053",
"0.56568414",
"0.56452036",
"0.56023264",
"0.5602069",
"0.55491084",
"0.5485562",
"0.5450549",
"0.5342842",
"0.53096867",
"0.52991277",
"0.5290579",
"0.5288675",
"0.52817655",
"0.52763766",
"0.5240386",
"0.5233169",
"0.522... | 0.61841524 | 0 |
Create the application for the test case. | def Baw8(Emd4):
Emd4._app = x5x0.QApplication.instance()
if Emd4._app is None:
Emd4._app = x5x0.QApplication([])
Emd4._app.setQuitOnLastWindowClosed(False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FnE1():\n P4t4 = Z33s()\n P4t4.run()",
"def SCWY():\n yield T5Hc()",
"def LUif(YKHO):\n raise NotImplementedError",
"def LUif(YKHO):\n P4t4 = LUif()\n P4t4.config.from_object('project.config.TestingConfig')\n return P4t4",
"def eLpg():\n return Z33s()",
"def LUif(YKHO):\n v... | [
"0.7805628",
"0.7759366",
"0.775573",
"0.7681946",
"0.7660952",
"0.76274294",
"0.75921124",
"0.7564451",
"0.75274485",
"0.7525346",
"0.74477637",
"0.7445047",
"0.7437549",
"0.74240017",
"0.74143714",
"0.73403394",
"0.7319924",
"0.72962713",
"0.7266085",
"0.7263547",
"0.726016... | 0.0 | -1 |
Cast given locale to string. Supports also callbacks that return locales. | def SJ_z(YEnM, NCqB, hkS8):
if callable(NCqB):
qdlc = bmSz(NCqB)
if qdlc == 0:
NCqB = NCqB()
elif qdlc == 1:
NCqB = NCqB(YEnM)
elif qdlc == 2:
NCqB = NCqB(YEnM, hkS8.key)
if isinstance(NCqB, WpnG.Locale):
return str(NCqB)
return NCq... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mKFv(*qIxc, **B2fa):\n return nAU3.Locale_GetString(*qIxc, **B2fa)",
"def rDcu():\n return WpnG.Locale.parse(D9im())",
"def format(YKHO, FMLJ: str, NCqB: str | None=None) -> str:\n return YKHO._formatter.format(YKHO, FMLJ, NCqB)",
"def r8Wv(VIXL: str, NCqB: Locale | str | None=None) -> str | Non... | [
"0.6052177",
"0.55995685",
"0.5441465",
"0.5332568",
"0.532277",
"0.5252318",
"0.5250403",
"0.52497745",
"0.52403075",
"0.5237608",
"0.5225941",
"0.51631624",
"0.5054695",
"0.5050819",
"0.50413287",
"0.5040657",
"0.50388926",
"0.5031137",
"0.50128025",
"0.49931708",
"0.498255... | 0.7257748 | 0 |
add the given vertex to each cluster. | def SSo0(qC6E, SLBp):
for H5ew in qC6E:
qC6E[H5ew].append(SLBp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)\n YKHO.vertex_edge[SLBp] = []",
"def ohmD(YKHO, SLBp):\n raise NotImplementedError",
"def FOdN(YKHO, SLBp):\n if isinstance(SLBp, Yegm):\n u6eo = SLBp.name\n YKHO._vertices[u6eo] = SLBp",
"def wfin(YKHO, Ty9i):\n YKHO.adjacent.se... | [
"0.738936",
"0.7228798",
"0.7145615",
"0.7021899",
"0.69024456",
"0.6896663",
"0.68675625",
"0.68639535",
"0.68639535",
"0.68464905",
"0.68456185",
"0.6763881",
"0.6730218",
"0.67227286",
"0.6690994",
"0.6688325",
"0.66764355",
"0.6658186",
"0.66529715",
"0.6647528",
"0.66068... | 0.82492626 | 0 |
Gets base paths for the data directories If DATA_ROOT is set in the environment, use that as the root otherwise use "./data" individual paths can also be set in the environment | def Juo9():
_l0A = Hy7s.environ.get('DATA_ROOT', 'data')
muwo = {'TOKENIZE_DATA_DIR': _l0A + '/tokenize', 'MWT_DATA_DIR': _l0A + '/mwt', 'LEMMA_DATA_DIR': _l0A + '/lemma', 'POS_DATA_DIR': _l0A + '/pos', 'DEPPARSE_DATA_DIR': _l0A + '/depparse', 'ETE_DATA_DIR': _l0A + '/ete', 'NER_DATA_DIR': _l0A + '/ner', 'CHARL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep",
"def xe5l():\n return GkAb(wk5E.config['USER_DIR']) / 'data'",
"def s8df():\n return Hy7s.getcwd() + '/data/'",
"def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')",
"def s8df():\n return fHZh[m1h... | [
"0.7406677",
"0.7309114",
"0.71558106",
"0.7086502",
"0.7073203",
"0.7061377",
"0.7024207",
"0.70034885",
"0.7000793",
"0.6972889",
"0.6858991",
"0.68468535",
"0.6798503",
"0.6786804",
"0.6725322",
"0.67091423",
"0.6696609",
"0.66939914",
"0.66862553",
"0.6677648",
"0.6662981... | 0.7681709 | 0 |
Returns 'X' if the next play is player X, otherwise 'O'. | def Zia_(YKHO):
UHFx = mBkc(YKHO.board)
if UHFx.get('X', 0) > UHFx.get('O', 0):
return 'O'
return 'X' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NmvS(tRnr: Optional[str]) -> str:\n if tRnr == Z9rn.X:\n return Z9rn.O\n else:\n return Z9rn.X",
"def xzj7(YKHO):\n if YKHO.side == 'X':\n return 'O'\n else:\n return 'X'",
"def HyIT(YKHO, C2IQ, jQEF):\n Aofo = '0'\n while Aofo != ('X' or 'O' or 'Tie'):\n ... | [
"0.78836375",
"0.7374691",
"0.72335446",
"0.7131909",
"0.7131909",
"0.71021736",
"0.7066528",
"0.6987133",
"0.6833735",
"0.6827109",
"0.68047506",
"0.67475647",
"0.6744674",
"0.67023987",
"0.66803753",
"0.6667681",
"0.6654215",
"0.66286945",
"0.6595179",
"0.65725344",
"0.6539... | 0.8343033 | 0 |
Gets list of Clients | def list(YKHO) -> x1iM[D_tY]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gIeD(YKHO):\n return YKHO.clients_info",
"def NMoC(YKHO):\n return sxHU()",
"def xxxj(YKHO):\n N1p7 = YKHO.conn.cursor()\n N1p7.execute('SELECT * FROM CLIENT')\n return N1p7.fetchall()",
"def ik_9(YKHO):\n\n def JfyU(N5z6):\n return N5z6.server.client_list()\n YKHO.__run_redis... | [
"0.87844324",
"0.8421559",
"0.83372366",
"0.81655127",
"0.7901022",
"0.78443885",
"0.78232926",
"0.78232926",
"0.77966213",
"0.7763598",
"0.761962",
"0.7604354",
"0.7575518",
"0.7533317",
"0.75269645",
"0.7463681",
"0.7431685",
"0.73718387",
"0.7330837",
"0.72890383",
"0.7277... | 0.7461951 | 16 |
Determine the covariance coefficient between two columns. | def AgFc(iIDh, C0Wu):
eHpk = y2U9('postgresql+psycopg2://student:123456@132.249.238.27:5432/bookstore_dp')
w2B8 = eHpk.connect()
Pe9W = '\n select covar_samp(%s::int, %s::int)\n from orderlines o, products p\n where o.productid = p.productid\n ' % (iIDh, C0Wu)
ZlgM = l5Ny(Pe9W)
Aofo = w2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yb9z(nyR6: pd.Series, Cl9Q: pd.Series) -> oyIN.float64:\n PFC2 = nyR6.cov(Cl9Q)\n return PFC2",
"def _IBo(WKvO, LVAh):\n exwG = len(WKvO)\n return BJ1H(UCnk(WKvO), UCnk(LVAh)) / (exwG - 1)",
"def _IBo(WKvO, LVAh):\n exwG = len(WKvO)\n return BJ1H(UCnk(WKvO), UCnk(LVAh)) / (exwG - 1)",
"... | [
"0.8119774",
"0.7765279",
"0.7708766",
"0.76439565",
"0.7616887",
"0.7605421",
"0.7570684",
"0.7561088",
"0.7338393",
"0.73225045",
"0.7247511",
"0.71681315",
"0.70561486",
"0.6936636",
"0.6894876",
"0.68887097",
"0.6846041",
"0.6824522",
"0.6823994",
"0.6790698",
"0.6781073"... | 0.0 | -1 |
Return the distance between two points a and b | def Ayfi(jzdc, Fg_i):
return epAf.sqrt((jzdc[0] - Fg_i[0]) ** 2 + (jzdc[1] - Fg_i[1]) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(jzdc: Point, Fg_i: Point) -> float:\n return epAf.sqrt(epAf.pow(Fg_i.x - jzdc.x, 2) + epAf.pow(Fg_i.y - jzdc.y, 2))",
"def YyoZ(jzdc: Point, Fg_i: Point) -> float:\n return epAf.sqrt((jzdc.x - Fg_i.x) ** 2 + (jzdc.y - Fg_i.y) ** 2)",
"def Ayfi(jzdc, Fg_i):\n return epAf.sqrt((jzdc.x - Fg_i.x)... | [
"0.89458483",
"0.88991046",
"0.8818057",
"0.8759049",
"0.8685559",
"0.8668778",
"0.8660479",
"0.85789996",
"0.85548586",
"0.85233074",
"0.8518668",
"0.84739554",
"0.8447944",
"0.8442889",
"0.84407747",
"0.84218204",
"0.83840084",
"0.83079374",
"0.8275142",
"0.8254148",
"0.824... | 0.8503932 | 11 |
Return the dot product (scalar product) of a and b | def BJ1H(jzdc, Fg_i):
return sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range(2)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ1H(jzdc, Fg_i):\n return jzdc[0] * Fg_i[0] + jzdc[1] * Fg_i[1] + jzdc[2] * Fg_i[2]",
"def uYbU(jzdc, Fg_i):\n return sum(PN7I(jzdc, Fg_i))",
"def BJ1H(jzdc, Fg_i):\n return jzdc[0] * Fg_i[0] + jzdc[1] * Fg_i[1] + jzdc[2] * Fg_i[2]",
"def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n ... | [
"0.8812722",
"0.87875795",
"0.87565994",
"0.8732255",
"0.8577188",
"0.8527434",
"0.8359632",
"0.8315232",
"0.8193967",
"0.8135108",
"0.8117393",
"0.80646706",
"0.8049035",
"0.80445755",
"0.80405647",
"0.80045366",
"0.79888374",
"0.7919624",
"0.7898735",
"0.7886502",
"0.785136... | 0.857611 | 5 |
Blit surface2, centered, onto surface1 | def jQun(BvSM, vNxx):
mawX = vNxx.get_rect()
mawX = mawX.move((BvSM.get_width() - mawX.width) // 2, (BvSM.get_height() - mawX.height) // 2)
BvSM.blit(vNxx, mawX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bI3s(Vjhr, L892, cizC, Ydjp):\n Vjhr.blit(L892, (cizC - L892.get_width() / 2, Ydjp - L892.get_height() / 2))",
"def JmFt(YKHO, J20S):\n J20S.blit(YKHO.image, YKHO.rect.topleft)",
"def dM6E(YKHO, J20S):\n J20S.blit(YKHO.surface, YKHO.rect)",
"def Mb0H(J20S: pygame.Surface, oeNL: tuple, r8hN):\n ... | [
"0.6790366",
"0.62865055",
"0.6105203",
"0.60078996",
"0.5974837",
"0.58546734",
"0.57853323",
"0.57526255",
"0.5750747",
"0.57219654",
"0.56992954",
"0.5673495",
"0.5673495",
"0.5670575",
"0.56416076",
"0.5536424",
"0.55351275",
"0.5514574",
"0.55103725",
"0.5504038",
"0.547... | 0.8461208 | 0 |
Gets the color of the edge. | def PICn(D70y, VOdU):
rbYc, mvGN = ('C0', 'C1')
D70y = sorted(D70y)
if D70y[0] < VOdU:
if D70y[1] > VOdU:
DFav = 'gray'
ybfX = 10
else:
DFav = rbYc
ybfX = 5
else:
DFav = mvGN
ybfX = 5
return (DFav, ybfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def PICn(YKHO):\n return YKHO._color",
"def UVaM(rdlD):\n d7Eb = 0.5 * (KoYN[rdlD['source']] + KoYN[rdlD['target']])\n return MiUz(d7Eb)",
"def KGGj(YKHO):\n return... | [
"0.7583754",
"0.7583754",
"0.75743234",
"0.7542442",
"0.7529707",
"0.7523015",
"0.7515754",
"0.75036937",
"0.7497267",
"0.7253985",
"0.7253985",
"0.7253985",
"0.72099334",
"0.7183728",
"0.71804214",
"0.71746135",
"0.71435606",
"0.71435606",
"0.7123838",
"0.71092427",
"0.70886... | 0.71043044 | 20 |
Test if the Stc3xRelativeHumidityConditionPercent() type works as expected for different values. | def rSKY(BWXx):
Aofo = kBRF(BWXx.get('percent_rh'))
assert type(Aofo) is kBRF
assert type(Aofo.ticks) is int
assert Aofo.ticks == BWXx.get('ticks')
assert type(Aofo.percent_rh) is float
assert Aofo.percent_rh == BWXx.get('percent_rh') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dD6r():\n XP5J = 1013.25 * rYO3.mbar\n ovGo = 20.0 * rYO3.degC\n vexM = 0.012 * rYO3.dimensionless\n uL0C = AC3e(XP5J, ovGo, vexM)\n Xgmb(uL0C, 82.71759 * rYO3.percent, 3)",
"def YLUE(YKHO):\n uLVm = ZFAq()\n XtFw = XTqt(uLVm, 'TestSensor', group_address_state='1/2/3', value_type='percen... | [
"0.6108147",
"0.60558736",
"0.5909511",
"0.5753489",
"0.57529473",
"0.5706647",
"0.5646214",
"0.5584023",
"0.5577272",
"0.5554479",
"0.54770046",
"0.5465542",
"0.5416829",
"0.5343803",
"0.5296619",
"0.5161798",
"0.5155328",
"0.515257",
"0.51523316",
"0.51366204",
"0.51230216"... | 0.8242922 | 0 |
Create `dataset` object for training | def IfJq(YKHO, gFok, Crrw, Ylkb, Ep8u=4, hXNa=True):
YKHO.anchors = oyIN.array(YKHO.anchors).astype(oyIN.float32)[:, [1, 0]]
YKHO.output_shape = ZylS.TensorShape([Ylkb / YKHO.shrink_factor, Ylkb / YKHO.shrink_factor, len(YKHO.anchors), 5 + YKHO.num_classes])
__n6 = ZylS.data.Dataset.from_generator(lambda: H... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUGu():\n tEK1, tVly = jr2L()\n lFl6 = zYum(tEK1)\n isGE = tEK1.map(lambda l5Ny, UXqs: (lFl6(l5Ny), UXqs)).prefetch(ZylS.data.experimental.AUTOTUNE)\n i0eO = tVly.map(lambda l5Ny, UXqs: (lFl6(l5Ny), UXqs)).prefetch(ZylS.data.experimental.AUTOTUNE)\n return (isGE, i0eO, lFl6)",
"def oUGu(y7GR):... | [
"0.7625288",
"0.7596115",
"0.75756335",
"0.7554228",
"0.75159276",
"0.7451764",
"0.73979217",
"0.7391445",
"0.7356141",
"0.7314714",
"0.7312134",
"0.7295263",
"0.7294468",
"0.72930044",
"0.72680014",
"0.725782",
"0.7243638",
"0.7213914",
"0.7192052",
"0.7164235",
"0.7156028",... | 0.0 | -1 |
if load_weights is specified load the trained weights | def vB93(YKHO, SUd8=None):
if SUd8:
pass
else:
WKvO = YKHO.weights_shape[1]
LVAh = YKHO.weights_shape[0]
YKHO.weights = oyIN.random.randn(LVAh, WKvO) / oyIN.sqrt(WKvO)
YKHO.biases = oyIN.random.randn(LVAh, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H_1o(YKHO):\n YKHO.npz_weights = oyIN.load(YKHO._weight_file)\n YKHO._load_byte_embedding()\n YKHO._load_cnn_weights()\n YKHO._load_highway()\n YKHO._load_projection()",
"def SUd8(YKHO, BZEu):\n YKHO.model.load_weights(BZEu)",
"def TjQJ(YKHO):\n try:\n YKHO.keras_model.load_weig... | [
"0.7976475",
"0.7927563",
"0.7897525",
"0.7821175",
"0.7753297",
"0.7680208",
"0.76619196",
"0.7595748",
"0.7590294",
"0.75884205",
"0.75847566",
"0.7419845",
"0.73893887",
"0.73893887",
"0.7374679",
"0.7319079",
"0.7311311",
"0.7308689",
"0.72947955",
"0.72444606",
"0.723284... | 0.7777777 | 4 |
Invoked by lower layer Once inputs updated, start computing the weighted sum then activation outputs, then forward outputs to next layer | def Z_5Z(YKHO, QePW, QpfX):
YKHO.check_weights()
S0S4, XU8w, Crrw, qqqI = YKHO.parse_forward_msg(QePW)
print('Get inputs id: {0}, matrix shape: {1}, labels shape: {2}'.format(S0S4, XU8w.shape, Crrw.shape))
Sv4c = oyIN.dot(XU8w, YKHO.weights.transpose()) + YKHO.biases.transpose()
if qqqI:
g4y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BoEA(YKHO, g4y1):\n YZVl = 0\n for YRbF in range(len(g4y1)):\n YZVl = YZVl + g4y1[YRbF] * YKHO.weights[YRbF]\n return YKHO.activate(YZVl)",
"def KVH6(XcU5, EcVT):\n return v9B7(oyIN.dot(me_w(EcVT), XcU5))",
"def N7Jr(YKHO):\n if gEmA != 0:\n YKHO.outputValue = m1Hg(B7eQ)\n f... | [
"0.75379217",
"0.7400119",
"0.7375257",
"0.7350896",
"0.7341678",
"0.7301916",
"0.7251322",
"0.7242767",
"0.71842414",
"0.7090362",
"0.7083083",
"0.7040894",
"0.7027726",
"0.7002781",
"0.6990172",
"0.69694924",
"0.69687366",
"0.6957858",
"0.693263",
"0.6910701",
"0.69032997",... | 0.6574824 | 59 |
Translate unsafe characters to underscores. | def iLBu(mWFP=''):
h0cc = mWFP
for IMwm in '\\/?%#':
h0cc = h0cc.replace(IMwm, '_')
return h0cc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSeI(KCHu):\n KCHu = KCHu.replace('_', '\\\\_')\n return KCHu",
"def _Yzw(YKHO, GIN8):\n return ZbWC.sub('[^A-Za-z0-9\\\\-]', '_', GIN8)",
"def VEjC(Emd4, BWXx):\n return TCKz.sub('_', BWXx)",
"def _Yzw(GIN8):\n return ZbWC.sub('[^A-Za-z0-9\\\\-.]', '_', GIN8)",
"def uQTh(KCHu):\n for... | [
"0.7627837",
"0.7590289",
"0.74770486",
"0.7377017",
"0.7189159",
"0.7107609",
"0.7014927",
"0.6968675",
"0.6950781",
"0.6945946",
"0.6887855",
"0.68615603",
"0.6829315",
"0.6815827",
"0.6780851",
"0.67530257",
"0.67220837",
"0.6720404",
"0.67153865",
"0.6707374",
"0.6687556"... | 0.0 | -1 |
Convert pydantic object to pandas dataframe with 1 row. | def xpSY(YKHO):
return rLdf.DataFrame([dict(YKHO)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpSY(YKHO):\n return rLdf.DataFrame([dict(YKHO)])",
"def xpSY(YKHO):\n from ..df import DataFrame\n return DataFrame(YKHO)",
"def zqFD(YKHO):\n nPrm = {}\n for ZWCE in YKHO.data[0]:\n arKL = []\n if ZWCE in ei4T:\n for DumB in YKHO.data[0][ZWCE]:\n arK... | [
"0.75817996",
"0.7210344",
"0.7195528",
"0.7187567",
"0.71487796",
"0.7104129",
"0.71013093",
"0.7047505",
"0.69818395",
"0.6981776",
"0.6981776",
"0.69500226",
"0.6906501",
"0.68661636",
"0.68262136",
"0.681778",
"0.67798555",
"0.67733806",
"0.6754019",
"0.673979",
"0.672651... | 0.75378114 | 3 |
Parses input yaml file and substitutes {tokens} from context. Loads yaml into memory to do parsing, so be aware of big files. | def iGQg(QpfX):
bo34.debug('started')
QpfX.assert_keys_have_values(__name__, 'fileFormatYamlIn', 'fileFormatYamlOut')
jr0q = QpfX.get_formatted('fileFormatYamlIn')
V6eb = QpfX.get_formatted('fileFormatYamlOut')
bo34.debug(f'opening yaml source file: {jr0q}')
with open(jr0q) as apum:
pB3N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xRMc(ak10):\n try:\n KaIg = V_MX(ak10)\n E8SE = [WVEU(literal=Csk6['Lex'], category=Csk6['Type'], re='%s' % Csk6['Regex'], rule=Csk6['Direction'], comments=Csk6['Comments']) for Csk6 in eJb6.load_all(KaIg)]\n except FileNotFoundError:\n E8SE = []\n finally:\n KaIg.close()\n... | [
"0.58173066",
"0.564686",
"0.5559516",
"0.5474356",
"0.54730994",
"0.5451101",
"0.5435742",
"0.54168653",
"0.54006207",
"0.53755003",
"0.53265005",
"0.5319712",
"0.52482605",
"0.52397454",
"0.52121884",
"0.5190898",
"0.5177625",
"0.5175006",
"0.5173243",
"0.5164659",
"0.51057... | 0.65476483 | 0 |
Return specified app's main window instance. We need this in order for our Qt dialogs to be correctly parented as a subwindow. For apps that don't use Qt for their UI, various hacks may need to be deployed... | def IlQr(P4t4=EHMP):
if P4t4 in ['standalone', 'generic']:
return None
elif P4t4 == 'blender':
YEnM = x5x0.QApplication.instance().blender_widget
if YEnM:
return YEnM
elif P4t4 == 'houdini':
YEnM = _T1W.qt.mainWindow()
if YEnM:
return YEnM
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HC_s():\n if M7QU.find_loader('maya'):\n for YEnM in x5x0.QApplication.topLevelWidgets():\n if YEnM.objectName() == 'MayaWindow':\n return YEnM\n if M7QU.find_loader('hou'):\n yR_P = ANWz.import_module('hou')\n return getattr(yR_P.qt, 'mainWindow')()\n if... | [
"0.81392723",
"0.8023601",
"0.8005372",
"0.7900502",
"0.770894",
"0.7697409",
"0.7697409",
"0.7697409",
"0.7661753",
"0.7656008",
"0.76174015",
"0.761251",
"0.7562426",
"0.7562426",
"0.7538503",
"0.74310714",
"0.73967475",
"0.73899364",
"0.7374749",
"0.72272354",
"0.7142622",... | 0.8647699 | 0 |
Fully connected layer with Mout features. | def FBfN(yjPc, WKvO, cH7l, QZir=True):
ywwl, XgIN = WKvO.get_shape()
XcU5 = LCSv(yjPc, [int(XgIN), cH7l], regularization=True)
Fg_i = KMH9(yjPc, [cH7l], regularization=True)
WKvO = ZylS.matmul(WKvO, XcU5) + Fg_i
return ZylS.nn.relu(WKvO) if QZir else WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VoJx(YKHO, vHnr, I07O, YDYE=None):\n Sqw_ = vHnr.get_shape().as_list()[1]\n Ot1W = [Sqw_, I07O]\n with ZylS.variable_scope(YKHO._count_layer('fully_connected')):\n WZcn = YKHO._get_variable('weights', Ot1W, vHnr.dtype)\n WKvO = ZylS.matmul(vHnr, WZcn)\n WKvO = YKHO._bias(WKvO)\n ... | [
"0.63221115",
"0.6159888",
"0.6134218",
"0.60969806",
"0.60744804",
"0.60744804",
"0.605512",
"0.6054018",
"0.59806514",
"0.59806514",
"0.59576476",
"0.5929704",
"0.59036636",
"0.59036636",
"0.58249193",
"0.5731739",
"0.571907",
"0.57047457",
"0.5685404",
"0.56569755",
"0.562... | 0.0 | -1 |
repr, just use __str__ | def wHJl(YKHO) -> str:
return YKHO.__str__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO):\n return repr(YKHO)",
"def wHJl(YKHO):\n return YKHO.__str__()",
"def wHJl(YKHO):\n str(YKHO)",
"def wHJl(YKHO):\n return YKHO.to_str()",
"def wHJl(YKHO):\n return YKHO.to_str()",
"def wHJl(YKHO):\n return str(YKHO)",
"def wH... | [
"0.87488496",
"0.8683042",
"0.8472215",
"0.84714115",
"0.8412814",
"0.8412814",
"0.8405477",
"0.83845913",
"0.83845913",
"0.83845913",
"0.83845913",
"0.83845913",
"0.8377652",
"0.83684355",
"0.83684355",
"0.83684355",
"0.8332875",
"0.8332875",
"0.8332875",
"0.8332875",
"0.833... | 0.83737326 | 16 |
true if the data is 'old'. data returned by the daily limit endpoint is cached on their end for 5 minutes. | def qNNf(YKHO):
_qoM = qcWV.now() - fCoM(minutes=5)
if YKHO.fetch_status != YKHO.FetchStatus.NONE and YKHO.collected_at > _qoM:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K6HI(mWFP, uqEL):\n ZJe_ = TzSz(mWFP)\n if not ZJe_:\n return False\n return ZJe_ < uqEL",
"def giBw():\n xZei = qcWV.datetime.fromtimestamp(Hy7s.path.getmtime('s0000661_e.xml'))\n if str(qcWV.datetime.now()) > str(qcWV.datetime.fromtimestamp(Hy7s.path.getmtime('s0000661_e.xml')) + qcWV... | [
"0.6977411",
"0.6945097",
"0.6651861",
"0.64727867",
"0.6381727",
"0.63555676",
"0.63300383",
"0.62320715",
"0.6161348",
"0.6098978",
"0.5937407",
"0.5935756",
"0.591632",
"0.5900302",
"0.58821815",
"0.5867047",
"0.58640426",
"0.585731",
"0.5820837",
"0.58045506",
"0.5794672"... | 0.611311 | 9 |
returns a hubspot3 crm_association_labels client | def bZcT(YKHO):
from hubspot3.crm_association_labels import CRMAssociationLabelsClient
return CRMAssociationLabelsClient(**YKHO.auth, **YKHO.options) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qhmo(YKHO):\n from hubspot3.crm_associations import CRMAssociationsClient\n return CRMAssociationsClient(**YKHO.auth, **YKHO.options)",
"def uUPx(YKHO):\n geh0 = [{'key': 'instance_id', 'value': '9113659852587170607'}, {'key': 'project_id', 'value': 'YOUR_PROJECT_ID'}, {'key': 'zone', 'value': 'us-e... | [
"0.6071502",
"0.5322365",
"0.5304862",
"0.5284204",
"0.5188073",
"0.51244867",
"0.50488967",
"0.50180405",
"0.49787408",
"0.49610063",
"0.49515802",
"0.48883596",
"0.48674572",
"0.48561567",
"0.48498568",
"0.48187628",
"0.4791505",
"0.4775393",
"0.47647417",
"0.4753614",
"0.4... | 0.8701838 | 0 |
returns a hubspot3 owners client | def i07_(YKHO):
from hubspot3.owners import OwnersClient
return OwnersClient(**YKHO.auth, **YKHO.options) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bxbw():\n return i9zE(DbMD, authkey='strumamor')",
"def bxbw(YKHO):\n return YKHO.client",
"def ggQ3():\n from mpcontribs.client import Client\n MOPg = NQFU()\n if DISu():\n return Client(apikey=Urj_())\n else:\n return Client(headers=MOPg)",
"def ohD2():\n return yxBa(... | [
"0.642027",
"0.6321152",
"0.6277686",
"0.6234495",
"0.6125955",
"0.6105564",
"0.59868777",
"0.5915874",
"0.58269143",
"0.5819595",
"0.58133",
"0.58131087",
"0.58131087",
"0.5799837",
"0.5796643",
"0.5795796",
"0.5751736",
"0.574989",
"0.573055",
"0.57257473",
"0.57205164",
... | 0.750011 | 0 |
returns a hubspot3 products client | def Ldyl(YKHO):
from hubspot3.products import ProductsClient
return ProductsClient(**YKHO.auth, **YKHO.options) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_db(YKHO):\n from hubspot3.ecommerce_bridge import EcommerceBridgeClient\n return EcommerceBridgeClient(**YKHO.auth, **YKHO.options)",
"def Dum_():\n return 'http://api.tcgplayer.com/catalog/products'",
"def ryTF(YKHO):\n from hubspot3.base import BaseClient\n return BaseClient(**YKHO.auth,... | [
"0.6638602",
"0.6370649",
"0.6266043",
"0.6079702",
"0.5941544",
"0.59005827",
"0.5822369",
"0.58213204",
"0.5801335",
"0.579243",
"0.57651037",
"0.57154477",
"0.57102543",
"0.57102543",
"0.5709735",
"0.5686267",
"0.5634477",
"0.5612543",
"0.5566559",
"0.5561518",
"0.5549502"... | 0.7860981 | 0 |
returns a hubspot3 workflows client | def i4mH(YKHO):
from hubspot3.workflows import WorkflowsClient
return WorkflowsClient(**YKHO.auth, **YKHO.options) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKde(YKHO):\n return KYhq.internal.handler.rest_client",
"def IJBv(xCxh, gCuF, bo34, x0hE, eOtH, OiKl, wd5e):\n LCet = 'workflow.' + xCxh\n N6vu = ANWz.import_module(LCet)\n oytl = getattr(N6vu, xCxh)\n DTYz = oytl(gCuF, bo34, x0hE, eOtH, OiKl, wd5e)\n return DTYz",
"def bxbw():\n retu... | [
"0.64411646",
"0.6372315",
"0.61268055",
"0.57950073",
"0.5623727",
"0.5577613",
"0.5577192",
"0.55506825",
"0.5480159",
"0.5480159",
"0.54425",
"0.5391359",
"0.53900045",
"0.5352455",
"0.5352455",
"0.53495854",
"0.53254145",
"0.53099036",
"0.52997226",
"0.5293179",
"0.529108... | 0.7031461 | 0 |
fetches and returns a nice usage limitation object | def qcDh(YKHO):
if YKHO._usage_limits.need_update:
c5uu = YKHO._base._call('integrations/v1/limit/daily')[0]
YKHO._usage_limits = spTl(collected_at=qcWV.fromtimestamp(int(c5uu['collectedAt']) / 1000), current_usage=int(c5uu['currentUsage']), fetch_status=c5uu['fetchStatus'], resets_at=qcWV.fromtimes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c3Au(YKHO):\n raise NotImplementedError",
"def Qgxx(YKHO):\n return YKHO.__quota",
"def yy0o(Eorv):\n return hZ42[Eorv]",
"def CxeQ(YKHO):\n return YKHO.box_usage",
"def K3hO(YKHO):\n return YKHO.limit",
"def o4ij(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'usage_quota'... | [
"0.59923756",
"0.5986678",
"0.59698606",
"0.59264624",
"0.59192324",
"0.58701664",
"0.5824707",
"0.58099645",
"0.57230705",
"0.57044595",
"0.5687149",
"0.567746",
"0.5650054",
"0.5650054",
"0.56480384",
"0.5646718",
"0.5634448",
"0.56341136",
"0.5596024",
"0.55950665",
"0.559... | 0.5976128 | 2 |
Return a bytestring version of 's', encoded as UTF8. Similar to smart_bytes, except that lazy instances are resolved to strings, rather than kept as lazy objects. | def Pqze(KCHu):
if isinstance(KCHu, bytes) or isinstance(KCHu, j8hK):
return KCHu
if isinstance(KCHu, memoryview):
return bytes(KCHu)
return KCHu.encode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ck8V(KCHu):\n if isinstance(KCHu, bytes):\n return KCHu\n else:\n return KCHu.encode('utf-8')",
"def VZEj(KCHu):\n if isinstance(KCHu, bytes):\n return KCHu\n return bytes(KCHu, encoding='latin_1')",
"def ZqkC(KCHu, tZ2K='ascii'):\n return KCHu.encode(tZ2K)",
"def D6ho... | [
"0.77897245",
"0.767456",
"0.71833885",
"0.71764076",
"0.71764076",
"0.7164458",
"0.7074817",
"0.70611644",
"0.7031507",
"0.7017202",
"0.6989668",
"0.6954049",
"0.6935905",
"0.69111323",
"0.69088435",
"0.6870624",
"0.6802584",
"0.6802584",
"0.67773366",
"0.6661313",
"0.660484... | 0.74430394 | 2 |
Test that when hitting the homepage you get a 200 | def Ji7q(YKHO):
QePW = YKHO.factory.get(gxEw('homepage'))
geh0 = RNox.as_view()(QePW)
YKHO.assertEquals(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgM1(YKHO):\n Aofo = YKHO.app.get('/')\n YKHO.assertEqual(Aofo.status_code, 200)",
"def RS_x(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)",
"def GvGQ(x0hE):\n im04 = x0hE.get('/')\n assert 200 == im04.status_code",
"def GvGQ(YKHO):\n Aofo = YKHO.app.get('/')\n YKHO.asser... | [
"0.8288261",
"0.8273573",
"0.8228847",
"0.8136266",
"0.8134166",
"0.802451",
"0.80047846",
"0.7991961",
"0.7979805",
"0.79744756",
"0.7952105",
"0.7952105",
"0.79487306",
"0.79348266",
"0.79197043",
"0.78920543",
"0.78839463",
"0.7839149",
"0.7757307",
"0.7740891",
"0.7729057... | 0.7475377 | 73 |
Make a grayscale color table with the specified bit depth. | def XF7E(UOVU=8):
ya19 = 255.0 / (2 ** UOVU - 1)
return ''.join([3 * chr(int(ya19 * YRbF)) for YRbF in range(2 ** UOVU)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HKkD(bctv):\n assert len(bctv) == 3\n assert bctv[0] * bctv[1] * bctv[2] < 256\n x7vA = [255.0 / (vC9B - 1) for vC9B in bctv]\n W_tS = [(int(x7vA[0] * Mkmy), int(x7vA[1] * Oa1e), int(x7vA[2] * Fg_i)) for Mkmy in range(bctv[0]) for Oa1e in range(bctv[1]) for Fg_i in range(bctv[2])]\n W_tS = ''.jo... | [
"0.6044128",
"0.5823107",
"0.5635321",
"0.5456832",
"0.5453675",
"0.5450638",
"0.54488796",
"0.54407305",
"0.54268736",
"0.54213303",
"0.5420697",
"0.5403138",
"0.53998595",
"0.53905946",
"0.5381059",
"0.5355727",
"0.53536797",
"0.5327542",
"0.53266877",
"0.5317582",
"0.53129... | 0.7322485 | 0 |
Posterize RGB channels and convert to color table indices. | def OimS(xMux, bctv):
nPrm = (bctv[2] * bctv[1] * SFXw(xMux[0], bctv[0]) + bctv[2] * SFXw(xMux[1], bctv[1]) + SFXw(xMux[2], bctv[2])).astype(XTiz.uint8)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqZn(UiEM, V5Od):\n V3lC = XTiz.array([ord(Z9rn) for Z9rn in V5Od])\n QR6r = V3lC.size / 3\n V3lC = V3lC.reshape((QR6r, 3))\n xMux = [V3lC[UiEM, YRbF] for YRbF in range(3)]\n return xMux",
"def DeE9(Mkmy, Oa1e, Fg_i):\n return 256 ** 2 * Mkmy + 256 * Oa1e + Fg_i",
"def Vbhv():\n Mkmy =... | [
"0.6731661",
"0.6070348",
"0.59697247",
"0.5910127",
"0.58041584",
"0.57614917",
"0.5750122",
"0.56823623",
"0.56800586",
"0.5613734",
"0.559402",
"0.55814487",
"0.55715173",
"0.5552835",
"0.55455357",
"0.5478539",
"0.5478539",
"0.5478539",
"0.5478539",
"0.54701114",
"0.54552... | 0.60380995 | 2 |
Assigns _annotate attribute correctly based on the x_y coordinates of the square. The annotate property is helpful when printing the board, since we only want to print the square_id on select squares to minimize clutter. | def zPKT(YKHO) -> None:
YKHO.annotate = YKHO.x_y[0] == 0 or YKHO.x_y[1] == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QKjR(YKHO, y4m8, D70y=None, oyg0=None):\n YKHO.get_cmd('annotate_squares')\n YKHO.add_prev_parts(D70y)\n if oyg0 is None:\n oyg0 = YKHO.get_player()\n if not isinstance(y4m8, list):\n y4m8 = [y4m8]\n for Fyji in y4m8:\n Fyji.part_check(prefix='annotate_squares')\n for Fyj... | [
"0.6471406",
"0.60313916",
"0.5988379",
"0.5936191",
"0.58545285",
"0.5851613",
"0.58337355",
"0.5827301",
"0.5827301",
"0.58048487",
"0.572318",
"0.5679954",
"0.5632764",
"0.5618096",
"0.556691",
"0.5541786",
"0.55382276",
"0.54709345",
"0.5462119",
"0.54503626",
"0.54422015... | 0.5911904 | 4 |
Equality check, makes sure other object is of the right type. | def xa14(YKHO, Elif) -> bool:
if not isinstance(Elif, _UKz):
raise TypeError('Cannot compare Square object to object of different type')
return YKHO.x_y == Elif.x_y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l_QA(YKHO, Elif):\n return True",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n return isinstance(Elif, YKHO.__class__) and YKHO.type == Elif.type and (YKHO.data == Elif.data)"... | [
"0.8274309",
"0.8169762",
"0.7915901",
"0.7888663",
"0.7808983",
"0.7685614",
"0.7679093",
"0.7584715",
"0.7574893",
"0.7559064",
"0.7534429",
"0.751503",
"0.7510035",
"0.74932134",
"0.7479746",
"0.743907",
"0.74374664",
"0.74303126",
"0.74165505",
"0.73913157",
"0.73913157",... | 0.0 | -1 |
Returns true if a nonempty chess piece is on this square, false otherwise. | def UF9e(YKHO) -> bool:
return YKHO.piece == q8RS() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELQP(YKHO) -> bool:\n if YKHO.piece is not None:\n return True\n return False",
"def EOGM(YKHO, OfK8):\n from pieces import King, Queen, Bishop, Knight, Rook, Pawn\n KxHg = YKHO.white_king_coord if OfK8 is eJVO else YKHO.black_king_coord\n if KxHg is None:\n return False\n for... | [
"0.788473",
"0.7444026",
"0.7438741",
"0.7402445",
"0.72975266",
"0.72751504",
"0.7239823",
"0.7196185",
"0.70857406",
"0.7020203",
"0.6990272",
"0.6967573",
"0.69359",
"0.6875976",
"0.6848787",
"0.6824076",
"0.6779372",
"0.6763597",
"0.6727214",
"0.6726461",
"0.67221916",
... | 0.7194114 | 8 |
Initialize a new ConsoleController self. | def FIMM(YKHO, nPbU, gGbt):
YKHO.model = hDFH(gGbt)
YKHO.model.fill_first_stool(nPbU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BH3N):\n YKHO.game = BH3N\n XuVZ.__init__(YKHO, None)",
"def FCbF(YKHO):\n YKHO.console = PSdN()\n YKHO.text_edit = YKHO.console._control",
"def CZzI(YKHO):\n return",
"def FIMM(YKHO, qIxc):\n super().__init__()\n YKHO.args = qIxc\n YKHO.get_controller(qIxc)",
"def jw... | [
"0.6877711",
"0.6424866",
"0.64218956",
"0.6346592",
"0.63323087",
"0.622217",
"0.6177624",
"0.6140839",
"0.6123322",
"0.6034491",
"0.6029231",
"0.5926883",
"0.58533317",
"0.58454233",
"0.58082134",
"0.57866454",
"0.5783643",
"0.57251877",
"0.5723522",
"0.5698522",
"0.5649235... | 0.0 | -1 |
Evaluate the model for specified metric on validation dataset. | def b7La(YKHO, JnjE, JyoU, ZFtT=None, AcYW=None, dRue=None, dfHy=-1, Ahgi=False):
bo34.info('start to evaluate model....')
import tensorflow as ZylS
from .tf_utils.graph_rewriter.generic.pre_optimize import PreOptimization
pNZh = ZylS.Graph()
r8JX = PreOptimization(JnjE, YKHO.inputs, YKHO.outputs).g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBMQ(C3ST, cC56, KVDR, rfpI, kRXj):\n cCrA = C3ST.evaluate(cC56, KVDR, verbose=1)\n aAOk = C3ST.evaluate(rfpI, kRXj, verbose=1)\n print('for traininf set')\n print('%s: %.2f%%' % (C3ST.metrics_names[1], cCrA[1] * 100))\n print('%s: %.2f%%' % (C3ST.metrics_names[0], cCrA[0]))\n print('for vali... | [
"0.7344029",
"0.72330433",
"0.7220746",
"0.716061",
"0.7113558",
"0.70528936",
"0.70115954",
"0.6997464",
"0.6985259",
"0.6977626",
"0.6945585",
"0.69218165",
"0.6917834",
"0.690018",
"0.68787867",
"0.687311",
"0.6857455",
"0.6845746",
"0.6825499",
"0.68243575",
"0.67950034",... | 0.0 | -1 |
Returns the list of neighbour. | def z0Cu(YKHO):
return YKHO._edges_list | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIRx(YKHO):\n return []",
"def qIRx(YKHO):\n return YKHO.neighbours",
"def BTfj(YKHO):\n return YKHO.neighbours_names",
"def qIRx(YKHO):\n return YKHO._neighbours",
"def bdGm(YKHO):\n return [WKvO.node for WKvO in YKHO.edges]",
"def qIRx(YKHO):\n return YKHO.points_to.keys()",
"de... | [
"0.86329573",
"0.8253436",
"0.8170284",
"0.8107017",
"0.8021447",
"0.7877863",
"0.78689766",
"0.78689766",
"0.78689766",
"0.78689766",
"0.78027034",
"0.77699685",
"0.7642167",
"0.75673354",
"0.75286055",
"0.7523496",
"0.7513268",
"0.749388",
"0.7468462",
"0.74628246",
"0.7433... | 0.0 | -1 |
2 edges are equal iff same cordinates and same id | def xa14(YKHO, Elif):
tL2f = YKHO.linked[0].coordinates[0] == Elif.linked[0].coordinates[0] and YKHO.linked[0].coordinates[1] == Elif.linked[0].coordinates[1]
SzXQ = YKHO.linked[1].coordinates[0] == Elif.linked[1].coordinates[0] and YKHO.linked[1].coordinates[1] == Elif.linked[1].coordinates[1]
cuDx = YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: Vertex) -> bool:\n if isinstance(Elif, YKHO.__class__):\n return YKHO.id == Elif.id and YKHO.edges == Elif.edges\n return False",
"def FmTZ():\n for MSdy, Cw9r in Hs6x.product(['g1', 'g2', 'y7', 'z123'], repeat=2):\n WKvO = PBov.GraphId(MSdy)\n LVAh = PBov.Graph... | [
"0.7005593",
"0.6888093",
"0.68814456",
"0.67372805",
"0.669054",
"0.6679017",
"0.6603304",
"0.6564395",
"0.6532165",
"0.6501918",
"0.6495436",
"0.64894855",
"0.6471989",
"0.63639295",
"0.63564414",
"0.629231",
"0.6289114",
"0.6284407",
"0.62523353",
"0.62386227",
"0.62386227... | 0.69819385 | 1 |
Returns the pairs of connected vertices. Beware ! There might be nonconnected vertices in the graph. | def xCUk(YKHO):
xCUk = []
for GtKe in YKHO.list_of_vertices:
for D70y in GtKe.edges_list:
if uba9:
if (GtKe, D70y.linked[1]) and (D70y.linked[1], GtKe) not in xCUk:
xCUk.append((GtKe, D70y.linked[1]))
if not uba9:
if (GtKe, D70y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(YKHO):\n return YKHO.adjacent.keys()",
"def iXlf(YKHO):\n KCHu = set([WKvO for WKvO in YKHO.edges.keys()])\n a1PO = set([LVAh for Ty9i in YKHO.edges.values() for LVAh, Csk6 in Ty9i.items()])\n Ty9i = KCHu.union(a1PO)\n return list(Ty9i)",
"def iXlf(YKHO):\n return list(YKHO.__graph_d... | [
"0.75566196",
"0.6929476",
"0.69189465",
"0.68819237",
"0.6878861",
"0.6878861",
"0.6878861",
"0.6876629",
"0.6873968",
"0.6850235",
"0.68404484",
"0.6838328",
"0.68335825",
"0.6795832",
"0.6788172",
"0.6706184",
"0.6690003",
"0.66820353",
"0.66657573",
"0.6658202",
"0.658479... | 0.8280839 | 0 |
Get the URL address of the current page. | def hKhs(YKHO):
return YKHO.driver.current_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKhs(YKHO) -> str:\n return YKHO.__page_url",
"def GwPS(YKHO):\n return YKHO.browser.current_url",
"def bW0a():\n return GwPS",
"def hKhs(YKHO):\n bD7m = YKHO.driver.current_url\n return bD7m",
"def zk5M(YKHO):\n Aofo = YKHO.CORE.current_url\n YKHO.log_info(f'Browser.getUrl: Curren... | [
"0.78724766",
"0.7816947",
"0.75905514",
"0.75497556",
"0.75209177",
"0.73895264",
"0.71664745",
"0.7093864",
"0.7093456",
"0.70141834",
"0.6956512",
"0.6902963",
"0.68774617",
"0.6868716",
"0.6845411",
"0.6841052",
"0.68401",
"0.68181163",
"0.6793231",
"0.6751907",
"0.670328... | 0.7510771 | 5 |
Yield sublist of A of length N. | def eHxA(k0lF, ywwl):
for YRbF in range(0, len(k0lF)):
Mkmy = k0lF[YRbF:YRbF + ywwl]
if len(Mkmy) == ywwl:
yield Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(ybN4, exwG):\n for YRbF in range(0, len(ybN4), exwG):\n yield ybN4[YRbF:YRbF + exwG]",
"def Y8pi(aWuw: Sequence[T], exwG: int) -> x1iM[Kt_s]:\n for YRbF in range(len(aWuw) - (exwG - 1)):\n yield aWuw[YRbF:YRbF + exwG]",
"def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG... | [
"0.6799771",
"0.6774828",
"0.6718393",
"0.6640993",
"0.6631424",
"0.6631424",
"0.6621859",
"0.6621859",
"0.65864396",
"0.6580277",
"0.6580277",
"0.6549579",
"0.65188205",
"0.64952624",
"0.6450778",
"0.64263916",
"0.64197636",
"0.641796",
"0.6413278",
"0.6404067",
"0.63961005"... | 0.73276186 | 0 |
Evaluate this model with given metric. | def b7La(YKHO, WKvO: ndarray, UXqs: ndarray) -> cuzp[str, float]:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(YKHO, __n6, AcYW='auto', E8Z5='auto'):\n CPha(AcYW, ['auto', 'accuracy', 'confusion_matrix', 'roc_curve', 'auc', 'log_loss', 'precision', 'recall', 'f1_score'])\n return super(ltGT, YKHO).evaluate(__n6, missing_value_action=E8Z5, metric=AcYW)",
"def b7La(YKHO, __n6, AcYW='auto', PJWX=True, Ep8u=64... | [
"0.68113047",
"0.6704501",
"0.66534674",
"0.6555745",
"0.65372837",
"0.65051186",
"0.64653605",
"0.64548635",
"0.64461714",
"0.6385725",
"0.630229",
"0.6243725",
"0.62251294",
"0.61765313",
"0.61485004",
"0.61438173",
"0.61382234",
"0.6135658",
"0.61134636",
"0.61057013",
"0.... | 0.0 | -1 |
Clear and reset model parameters. | def Y7Bk(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.params.resetParams()",
"def Q0Ko(YKHO):\n YKHO.lin.reset_parameters()\n YKHO.att.reset_parameters()\n YKHO.gnn_score.reset_parameters()\n if YKHO.gnn_intra_cluster is not None:\n YKHO.gnn_intra_cluster.reset_parameters()\n YKHO.select.reset_parameters()",
"def Q0... | [
"0.78882766",
"0.75861067",
"0.755878",
"0.75307584",
"0.7482565",
"0.744242",
"0.74128294",
"0.74048585",
"0.7376325",
"0.73287445",
"0.72374463",
"0.71701854",
"0.71701854",
"0.71701854",
"0.7142993",
"0.7125873",
"0.71208763",
"0.71208763",
"0.71208763",
"0.7093835",
"0.70... | 0.0 | -1 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.reshape(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].reshape(-1).float().sum(0)
Ylbp.append(R2Dg.mul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Returns molecular weight of molecule. Where molecule is in standard chemical notation, e.g. 'CO2', 'HCO3' or B(OH)4 Returns | def H0lc(asBq):
zKV1 = UqER()
hxFJ = ZbWC.compile('\\(([A-z0-9]+)\\)([0-9]+)?')
baRz = ZbWC.compile('([A-Z][a-z]?)([0-9]+)?')
hnFq = hxFJ.findall(asBq)
wXAI = hxFJ.sub('', asBq)
r8hN = 0
if len(hnFq) > 0:
for finE, PCpl in hnFq:
NmYP = 0
for tTpl, exwG in baRz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upAO(YKHO) -> float:\n YKHO.sanitize(raise_exception=False)\n return BvBb.ExactMolWt(YKHO.rd_mol)",
"def cHrP(UqER):\n return oyIN.array([uodM[YRbF.upper()] for YRbF in UqER]).sum()",
"def cqYY(YKHO):\n return YKHO.get_empirical_formula().get_molecular_weight()",
"def cqYY(YKHO):\n return ... | [
"0.6943404",
"0.6663832",
"0.6620149",
"0.6620149",
"0.6609809",
"0.64106184",
"0.63421416",
"0.6240017",
"0.61388874",
"0.61150897",
"0.58703834",
"0.5817821",
"0.5682294",
"0.55956477",
"0.54666877",
"0.5465568",
"0.5441643",
"0.5404796",
"0.53925836",
"0.53835183",
"0.5364... | 0.62040937 | 8 |
Converts permass concentrations to molar elemental ratios. Be careful with units. | def IAKa(v6Bt, jdA_, YnB1, oT9x):
return v6Bt / YnB1 / (jdA_ / oT9x) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fihE(t79l, jdA_, YnB1, oT9x):\n return t79l * jdA_ * YnB1 / oT9x",
"def GHEQ(AWqv):\n CEj2 = AWqv.get_average_temperature()\n C6LG = AWqv.get_average_acceleration()\n GC8L = AWqv.get_ground_pressure()\n M6pt = 0\n UUZ1 = 0\n for n_Ej, CJ2p in AWqv.get_iter('altitude', 'pressure'):\n ... | [
"0.6570512",
"0.6387427",
"0.6225264",
"0.6197347",
"0.61699295",
"0.61401415",
"0.59813184",
"0.5977784",
"0.5962342",
"0.5911865",
"0.5904414",
"0.5866847",
"0.5850029",
"0.5839683",
"0.5834741",
"0.57970756",
"0.5790854",
"0.57902527",
"0.57459486",
"0.5739973",
"0.5671409... | 0.7075 | 0 |
Converts permass concentrations to molar elemental ratios. Be careful with units. | def fihE(t79l, jdA_, YnB1, oT9x):
return t79l * jdA_ * YnB1 / oT9x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAKa(v6Bt, jdA_, YnB1, oT9x):\n return v6Bt / YnB1 / (jdA_ / oT9x)",
"def GHEQ(AWqv):\n CEj2 = AWqv.get_average_temperature()\n C6LG = AWqv.get_average_acceleration()\n GC8L = AWqv.get_ground_pressure()\n M6pt = 0\n UUZ1 = 0\n for n_Ej, CJ2p in AWqv.get_iter('altitude', 'pressure'):\n ... | [
"0.70750344",
"0.63879806",
"0.6224704",
"0.6200152",
"0.6170182",
"0.61407906",
"0.5981897",
"0.5978215",
"0.5962941",
"0.59128755",
"0.5904845",
"0.5865875",
"0.5851286",
"0.5841126",
"0.58343244",
"0.5798284",
"0.5793204",
"0.579121",
"0.5745705",
"0.5740774",
"0.56701314"... | 0.65707004 | 1 |
Sets an image's anchor point to its center | def qm02(LNo8):
LNo8.anchor_x = LNo8.width / 2
LNo8.anchor_y = LNo8.height / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def se5S(VXjJ):\n VXjJ.anchor_x = int(VXjJ.width / 2)\n VXjJ.anchor_y = int(VXjJ.height / 2)",
"def qRCk(LNo8):\n LNo8.anchor_x = LNo8.height / 2\n LNo8.anchor_y = LNo8.height / 2",
"def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2",
"def qm02(LNo8):\n L... | [
"0.9029463",
"0.889027",
"0.84556025",
"0.84556025",
"0.7735181",
"0.6867212",
"0.6867212",
"0.6867212",
"0.6599067",
"0.6544991",
"0.6494122",
"0.6492903",
"0.6490786",
"0.6450402",
"0.6446988",
"0.63265955",
"0.628803",
"0.6261697",
"0.62337834",
"0.61823696",
"0.6159086",
... | 0.8374943 | 4 |
Converts a 2D list of sentences (list of list of words) to onehot encoded tokens of shape [n_sentences, n_words, len(token_mapping), 1]. | def w3GI(X9F1, PjBD, YWfp, Rhv4):
s2mk = [wr3U(X9F1, yAmx) for yAmx in Rhv4]
rb7a = len(X9F1)
_9Uj = []
for yAmx in s2mk:
IO9U = []
for YRbF, eOtH in enumerate(yAmx):
if eOtH != X9F1['#UNK#']:
IO9U.append(zGX0(eOtH, rb7a))
else:
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(YKHO, WKvO, CtWL, HyjZ) -> oyIN.ndarray:\n eeYG = oyIN.zeros((WKvO.__len__(), YKHO.max_length, CtWL.__len__()))\n for YRbF, ZfUD in enumerate(PRqg(WKvO, desc='One Hot Text Encoder')):\n DumB = So07.n_gram_split(ZfUD, HyjZ)\n for r845, eOtH in enumerate(DumB):\n if r845 >= YK... | [
"0.7612472",
"0.7453885",
"0.73896337",
"0.7338679",
"0.7274861",
"0.723236",
"0.71225893",
"0.7064828",
"0.7060053",
"0.7013442",
"0.70107055",
"0.69854766",
"0.6969808",
"0.6944609",
"0.6912902",
"0.6887957",
"0.6887957",
"0.6864752",
"0.68587154",
"0.6849206",
"0.6849206",... | 0.6864606 | 18 |
Convert each state from str to its corresponding int value. Convert the int to a onehot vector. | def eUkN(Wupo, jWe2):
WJBc = [[Wupo[QTBn] for QTBn in UXqs] for UXqs in jWe2]
rb7a = len(Wupo)
GQ7f = [[zGX0(UXqs, rb7a) for UXqs in aWuw] for aWuw in WJBc]
GQ7f = [oyIN.asarray(Uqbu) for Uqbu in GQ7f]
return GQ7f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ycPt(YKHO, MkP_):\n vOPP = list(MkP_)\n PVOR = YKHO.char_to_int(vOPP)\n KLLm = oyIN.zeros((len(YKHO.unique_chars), len(PVOR)))\n for YRbF, dSn2 in enumerate(PVOR):\n KLLm[dSn2, YRbF] = 1\n return KLLm",
"def GpPk(KCHu):\n all = []\n for Z9rn in KCHu:\n WKvO = oyIN.zeros(dVL... | [
"0.7652874",
"0.7154067",
"0.7031119",
"0.70227796",
"0.7006052",
"0.6976143",
"0.6918961",
"0.6917776",
"0.6915389",
"0.68740904",
"0.6830135",
"0.68282956",
"0.6800283",
"0.67805237",
"0.67596763",
"0.67363805",
"0.6711154",
"0.67109644",
"0.67079055",
"0.6679125",
"0.66779... | 0.0 | -1 |
If there's an error, the video's state should change to error. | def w_ae(YKHO):
with ng5E(YKHO.user) as f6W2:
f6W2 = YKHO._send(f6W2, None)
NaW5(f6W2.state, 'error') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sOLv(YKHO):\n return YKHO._videostart_failed",
"def xZqu(YKHO):\n f6W2 = Rqdq.VideoFactory(id='a1a21411-bf2f-4926-b97f-3c48a124d528', upload_state=ttMP, live_state=mzMN, live_type=A3I7)\n qssv = tuKI.choice([KCHu[0] for KCHu in lDcM if KCHu[0] not in [mzMN, pO9U, wHqZ]])\n nPrm = {'logGroupName':... | [
"0.6850327",
"0.6648256",
"0.6501016",
"0.6486651",
"0.64745677",
"0.6245674",
"0.6153345",
"0.6150683",
"0.6136198",
"0.6088421",
"0.6035782",
"0.60141194",
"0.59987426",
"0.59581625",
"0.59347904",
"0.5892585",
"0.5874808",
"0.586871",
"0.5861455",
"0.5848578",
"0.58309966"... | 0.8121518 | 0 |
Calling add_vote increases the vote count. | def fcai(YKHO):
with ng5E(YKHO.user, votes=0) as f6W2:
ne5b = f6W2.votes
Ikmm(f6W2)
f6W2 = YM9Z.objects.get(pk=f6W2.pk)
NaW5(f6W2.votes, ne5b + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ikmm(YKHO, JZXy, pan_):\n if YKHO.votes.get(JZXy, None) == pan_:\n return\n YKHO.votes[JZXy] = pan_\n Sgcx = YKHO.voted.get(pan_, 0)\n YKHO.voted[pan_] = Sgcx + 1\n pass",
"def Ikmm():\n pQGt = QePW.form.get('comment_id')\n S4R7 = QePW.form.get('voted_item')\n aM_I = jY1u.query... | [
"0.6996275",
"0.6280074",
"0.62158394",
"0.6165154",
"0.60829306",
"0.6061945",
"0.60602486",
"0.6038132",
"0.59813607",
"0.5896909",
"0.58887076",
"0.5873401",
"0.5832762",
"0.58298826",
"0.57890314",
"0.5752846",
"0.5719724",
"0.5706418",
"0.5696254",
"0.5661899",
"0.564551... | 0.53567404 | 40 |
SMPTE time format used in the following SMPTE Offset field. | def tXt5(YKHO) -> int:
return YKHO.__smpte_format | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7L9(YKHO):\n return '%02u:%02u:%02u (%d)' % YKHO.rtc.datetime()[4:8]",
"def Ebnu(YKHO):\n if YKHO.time:\n return YKHO.date.strftime('%b %d %Y') + ' ' + YKHO.time.strftime('%H:%M:%S') + ' GMT'\n else:\n return YKHO.date.strftime('%b %d %Y') + ' ' + '00:00:00' + ' GMT'",
"def fVAJ(YKH... | [
"0.6964342",
"0.65610915",
"0.6521764",
"0.6515311",
"0.6491577",
"0.64914745",
"0.64728427",
"0.6441333",
"0.64370936",
"0.63413614",
"0.6336355",
"0.6286966",
"0.62477726",
"0.62118185",
"0.6189835",
"0.618919",
"0.6186287",
"0.6150095",
"0.61360997",
"0.6108936",
"0.608921... | 0.6182555 | 17 |
SMPTE time offset to be used. | def a8uY(YKHO) -> int:
return YKHO.__smpte_offset | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZmq(VwNh):\n return VwNh + UJxm",
"def ITS7(YKHO, vgXP=None):\n if vgXP is None:\n vgXP = YKHO.offset\n if vgXP % YKHO.recordsize != 0:\n qmLP.warn('Offset for which time is requested is not integer multiple of record size.')\n return YKHO.time0 + YKHO.tell(vgXP, P6bq.day)",
"def... | [
"0.6602128",
"0.6592711",
"0.6570662",
"0.6536683",
"0.6529877",
"0.6436975",
"0.6301645",
"0.6265782",
"0.62313527",
"0.62207353",
"0.6192506",
"0.615404",
"0.61043936",
"0.59606695",
"0.59359276",
"0.59303015",
"0.59033734",
"0.58847",
"0.58832085",
"0.5850743",
"0.5845143"... | 0.6522687 | 5 |
If price is 4% below the Slow MA, return True | def r8FZ(jQ3Z, YRbF: int):
if not jQ3Z.__contains__('slow_sma'):
a9ow.AddIndicator(jQ3Z, indicator_name='sma', col_name='slow_sma', args=30)
J2Xb = 0.96 * jQ3Z['slow_sma'][YRbF]
if J2Xb >= jQ3Z['close'][YRbF]:
return min(J2Xb, jQ3Z['high'][YRbF])
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u3T3():\n global NUMBER_OF_TOTAL_COINS, BEVERAGE_PRICE\n if B89A == AcXa:\n return True\n elif B89A < AcXa:\n return False\n else:\n return 'FATAL'",
"def u3T3(YKHO, hjud):\n ZI3J = kLQb(hjud / YKHO.T)\n if hjud < 0 and (not ZI3J > tuKI()):\n return True\n ret... | [
"0.7092251",
"0.70886075",
"0.68338186",
"0.6721053",
"0.669013",
"0.6486905",
"0.64506775",
"0.640032",
"0.6352781",
"0.6351585",
"0.63333744",
"0.6312263",
"0.62225676",
"0.6177426",
"0.61377215",
"0.61357594",
"0.61335623",
"0.61264473",
"0.61101085",
"0.6108655",
"0.60844... | 0.59250563 | 31 |
If price is 2.5% below the Lower Bollinger Band, return True | def J7hr(jQ3Z, YRbF: int):
if not jQ3Z.__contains__('low_boll'):
a9ow.AddIndicator(jQ3Z, indicator_name='lbb', col_name='low_boll', args=14)
J2Xb = 0.975 * jQ3Z['low_boll'][YRbF]
if J2Xb >= jQ3Z['close'][YRbF]:
return min(J2Xb, jQ3Z['high'][YRbF])
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u3T3():\n global NUMBER_OF_TOTAL_COINS, BEVERAGE_PRICE\n if B89A == AcXa:\n return True\n elif B89A < AcXa:\n return False\n else:\n return 'FATAL'",
"def wAvE(YKHO):\n return YKHO.port_return(YKHO.data.last('2M')) >= 0.2",
"def DYP8(YKHO):\n CN9P, LSh8 = YKHO.bolling... | [
"0.69209397",
"0.6902486",
"0.67776644",
"0.67218643",
"0.6555132",
"0.65380377",
"0.6447067",
"0.64414006",
"0.6280859",
"0.61472887",
"0.6134311",
"0.6123086",
"0.60963",
"0.60828555",
"0.60571605",
"0.60542977",
"0.6030594",
"0.60294574",
"0.60290325",
"0.5990258",
"0.5984... | 0.6071898 | 14 |
If price is above the Cloud formed by the Senkou Span A and B, and it moves above Tenkansen (from below), that is a buy signal. | def qs6f(jQ3Z, YRbF: int):
if not jQ3Z.__contains__('tenkansen') or not jQ3Z.__contains__('kijunsen') or (not jQ3Z.__contains__('senkou_a')) or (not jQ3Z.__contains__('senkou_b')):
a9ow.AddIndicator(jQ3Z, indicator_name='ichimoku', col_name=None, args=None)
if YRbF - 1 > 0 and YRbF < len(jQ3Z):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def co4d(YKHO, gqRb, ODP9):\n Vz8X = [WKvO for WKvO in YKHO.orders if WKvO['side'] == 'buy']\n dA4w = [WKvO for WKvO in YKHO.orders if WKvO['side'] == 'sell']\n for s_lI in Vz8X:\n if s_lI['type'] == 'stop' and float(ODP9) >= float(s_lI['price']) or float(gqRb) <= float(s_lI['price']):\n ... | [
"0.6647733",
"0.64933574",
"0.64789736",
"0.635645",
"0.63562864",
"0.63130605",
"0.62567663",
"0.61974204",
"0.6164737",
"0.6123446",
"0.6110002",
"0.604022",
"0.598293",
"0.5980419",
"0.59796095",
"0.596539",
"0.59547496",
"0.59387416",
"0.59142363",
"0.5911559",
"0.5910275... | 0.0 | -1 |
Return the column addressed by column_name throws IndexError if the column doesn't exist. | def Osfr(YKHO, z0q4):
or8S = YKHO.colnames.index(z0q4)
return YKHO.getColByIdx(or8S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iYZ_(YKHO, z0q4):\n YKHO.check_for_column(z0q4)\n return YKHO.data[z0q4].dropna()",
"def iBd8(YKHO, mWFP):\n return YKHO.column(mWFP)",
"def iBd8(Emd4, mWFP):\n return Emd4._columns[mWFP]",
"def bAvW(YKHO, tcLV):\n return YKHO._columns[tcLV]",
"def f1pu(YKHO, z0q4: str) -> int:\n retu... | [
"0.7714685",
"0.7650503",
"0.76223123",
"0.76065403",
"0.7599028",
"0.75833434",
"0.75328934",
"0.7448818",
"0.7424424",
"0.738257",
"0.7336229",
"0.73362017",
"0.72618985",
"0.7194864",
"0.71373194",
"0.70307726",
"0.6987194",
"0.69389665",
"0.6921798",
"0.6916647",
"0.67962... | 0.79146 | 0 |
Function to generate random string. | def GLL2(YKHO, u54L):
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))",
"def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))",
"def tEgU():\n return kxTZ().hex[:6].upper()",
"def _yz_(gzVs=10):\n U5bT = ''\n for YRbF in range(gzVs):\n U5bT += tuK... | [
"0.8847078",
"0.8671955",
"0.8310088",
"0.8151735",
"0.8077759",
"0.8053863",
"0.7999233",
"0.7975691",
"0.79698485",
"0.7943272",
"0.7906384",
"0.7844923",
"0.78303105",
"0.78171843",
"0.77939504",
"0.7769523",
"0.7764892",
"0.77631474",
"0.7732048",
"0.77122647",
"0.7707292... | 0.75691295 | 44 |
Return a signature for the given message. To ensure that key rotation works automatically, always fetch the secret token from the secret store immediately before use and do not cache / save the token anywhere. The ``current`` version of the secret will be used to sign the token. | def exfI(DXni: VersionedSecret, Ol8d: str, uqEL: datetime.timedelta) -> bytes:
DpZH = 1
N850 = int(ITS7.time() + uqEL.total_seconds())
WBPg = vdgL.pack(DpZH, N850)
dKPB = Qpn9(DXni.current, WBPg, Ol8d)
return WR89.urlsafe_b64encode(WBPg + dKPB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zihr(YKHO, Ol8d):\n return GVbD(YKHO._sk.sign(Ol8d))",
"def whL4(YKHO, Ol8d):\n aadv = Kqnt(Ol8d, YKHO.negotiate_flags, YKHO.outgoing_signing_key, YKHO.outgoing_seq_num, YKHO.outgoing_handle)\n YKHO.outgoing_seq_num += 1\n return aadv.get_data()",
"def Zihr(YKHO, tO9_):\n epBp = int.from_byt... | [
"0.6959091",
"0.6849116",
"0.65762854",
"0.6491322",
"0.6461738",
"0.6426274",
"0.6386524",
"0.6348236",
"0.630369",
"0.6234957",
"0.612379",
"0.61205864",
"0.60925806",
"0.6039358",
"0.60156816",
"0.60063016",
"0.5997408",
"0.5981859",
"0.59768385",
"0.5956349",
"0.59515107"... | 0.68028414 | 2 |
Return a copy of the array collapsed into one dimension. | def PWgb(YKHO, T4Wy='C'):
Aofo = super(YKHO.__class__, YKHO).flatten(T4Wy)
Aofo.nsamples = None
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L2YL(gyIm):\n return oyIN.reshape(gyIm, (-1,), 'F')",
"def PWgb(YKHO, ezWE):\n ROpF = ezWE.shape\n return ezWE.reshape(ROpF[0] * ROpF[1], *ROpF[2:])",
"def wmvz(qw7D):\n return qw7D[oyIN.newaxis, oyIN.newaxis, ...]",
"def PWgb(YKHO) -> oyIN.ndarray:\n return YKHO.data.copy()",
"def Jmd6(... | [
"0.6731754",
"0.67048925",
"0.6468377",
"0.6466933",
"0.63290554",
"0.630381",
"0.62498814",
"0.6234112",
"0.6223042",
"0.62106687",
"0.61890495",
"0.61877614",
"0.61055",
"0.60689557",
"0.60284156",
"0.6006088",
"0.59936386",
"0.5950406",
"0.5930238",
"0.59251297",
"0.589467... | 0.0 | -1 |
Returns True is string is a number. | def g_qV(KCHu):
try:
float(KCHu)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except... | [
"0.88506556",
"0.8807221",
"0.87626666",
"0.8714686",
"0.86490434",
"0.8636379",
"0.8611055",
"0.86024445",
"0.85966146",
"0.85966146",
"0.85966146",
"0.85862595",
"0.8556225",
"0.853933",
"0.8464423",
"0.8389442",
"0.83497494",
"0.8290531",
"0.8215785",
"0.8160896",
"0.81168... | 0.73616105 | 78 |
Returns True is string is a number. | def Q_UF(KCHu):
if zvCg('^\\d+?\\.\\d+?$', KCHu) is None:
return KCHu.isdigit()
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except... | [
"0.8850884",
"0.8807396",
"0.87623763",
"0.87143797",
"0.86495125",
"0.86369324",
"0.8611852",
"0.8602863",
"0.8597067",
"0.8597067",
"0.8597067",
"0.85868895",
"0.8556723",
"0.8540039",
"0.846474",
"0.83899784",
"0.83504224",
"0.82912153",
"0.8217023",
"0.81620115",
"0.81181... | 0.76521534 | 44 |
Returns True is string is a number. | def Bbrh(KCHu):
if yCnv.match(KCHu) is None:
return KCHu.isdigit()
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except... | [
"0.8850884",
"0.8807396",
"0.87623763",
"0.87143797",
"0.86495125",
"0.86369324",
"0.8611852",
"0.8602863",
"0.8597067",
"0.8597067",
"0.8597067",
"0.85868895",
"0.8556723",
"0.8540039",
"0.846474",
"0.83899784",
"0.83504224",
"0.82912153",
"0.8217023",
"0.81620115",
"0.81181... | 0.0 | -1 |
Returns True is string is a number. | def vc6a(KCHu):
return KCHu.replace('.', '', 1).isdigit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except... | [
"0.8850884",
"0.8807396",
"0.87623763",
"0.87143797",
"0.86495125",
"0.86369324",
"0.8611852",
"0.8602863",
"0.8597067",
"0.8597067",
"0.8597067",
"0.85868895",
"0.8556723",
"0.8540039",
"0.846474",
"0.83899784",
"0.83504224",
"0.82912153",
"0.8217023",
"0.81620115",
"0.81181... | 0.7544545 | 60 |
Returns True is string is a number. | def CYYU(KCHu):
return KCHu.replace('.', '', 1).isnumeric() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except... | [
"0.88506556",
"0.8807221",
"0.87626666",
"0.8714686",
"0.86490434",
"0.8636379",
"0.8611055",
"0.86024445",
"0.85966146",
"0.85966146",
"0.85966146",
"0.85862595",
"0.8556225",
"0.853933",
"0.8464423",
"0.8389442",
"0.83497494",
"0.8290531",
"0.8215785",
"0.8160896",
"0.81168... | 0.8040065 | 21 |
Get the message data. | def Eair(YKHO):
return YKHO.message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eair(YKHO):\n nPrm = YKHO.socket.recv(1024)\n if not nPrm:\n G9jH.error('Failed to read data from socket')\n return\n return YKHO.decode_message(nPrm)",
"def BCcA(YKHO):\n Nqlg = []\n Nqlg.append(YKHO.request + ' ' + i5Ia)\n Nqlg.extend(['%s: %s' % (d7pR, YKHO.args[d7pR]) for ... | [
"0.74726737",
"0.7117985",
"0.71089983",
"0.7055785",
"0.7055785",
"0.7055785",
"0.7049448",
"0.70235014",
"0.70235014",
"0.70216936",
"0.70216936",
"0.70216936",
"0.70216936",
"0.7021647",
"0.7021647",
"0.7021571",
"0.7015116",
"0.6988721",
"0.69623476",
"0.6956262",
"0.6956... | 0.6846719 | 34 |
Get the XY position on the map of the node. | def pM9A(TTbv, TJ0Q):
RwuH = TJ0Q[TTbv]
if RwuH == None:
return None
ZRBI = int(TTbv[0])
zP7G = int(TTbv[1])
dZ98 = int(TTbv[2])
vCeL = int(TTbv[3])
WKvO = ZRBI * 10 + zP7G
LVAh = dZ98 * 10 + vCeL
WKvO = float(WKvO) + RwuH[0]
LVAh = float(LVAh) + RwuH[1]
return (WKvO,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M_DK(YKHO):\n return YKHO.coords.xy",
"def Iuzb(YKHO):\n return YKHO._find_gnx_node(YKHO.gnx)",
"def jNOo(YKHO):\n return jHsn.get_node_attributes(YKHO.network, 'coords')",
"def uDxK(YKHO):\n return YKHO.board.get_xy()",
"def oQwg(YKHO):\n return YKHO.coord",
"def JT4S(YKHO, KV9e):\n ... | [
"0.7250584",
"0.7159918",
"0.7108726",
"0.6967099",
"0.69583595",
"0.6904986",
"0.6873157",
"0.68647164",
"0.6741242",
"0.66012746",
"0.6586785",
"0.6573644",
"0.6560857",
"0.6553393",
"0.655308",
"0.65177476",
"0.6515806",
"0.6515806",
"0.6504982",
"0.64987385",
"0.6495844",... | 0.6433661 | 34 |
This function finds the 2 norm for a given vector. It does this by squaring each value in the list, summing them, and then finally finding the square root of the sum | def CkYf(iArr):
Aofo = 0
for epBp in range(len(iArr)):
Aofo += iArr[epBp] ** 2
Aofo = Aofo ** 0.5
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KtDG(Ty9i):\n Ylbp = 0\n for tTpl in Ty9i:\n Ylbp += tTpl * tTpl\n return epAf.sqrt(Ylbp)",
"def CkYf(he6J):\n exwG = 0.0\n for YRbF in he6J:\n exwG += epAf.pow(YRbF, 2)\n return epAf.sqrt(exwG)",
"def KNe7(Ty9i):\n return oyIN.sqrt((Ty9i ** 2).sum())",
"def CkYf(he6J):... | [
"0.81989217",
"0.8151633",
"0.81496537",
"0.81379104",
"0.7771093",
"0.7727026",
"0.7720259",
"0.7697699",
"0.7678383",
"0.7595459",
"0.7586427",
"0.7577254",
"0.7534515",
"0.74822927",
"0.7480247",
"0.738931",
"0.73876673",
"0.7382133",
"0.7350607",
"0.7265401",
"0.7262132",... | 0.8468561 | 0 |
This function finds the unit vector, also known as the normalization, of a given vector. It does this by using the the function above to find the 2norm and then dividing each unit in the list by the 2norm | def PXGI(iArr):
Aofo = [[0] for rdlD in range(len(iArr))]
for epBp in range(len(iArr)):
Aofo[epBp] = iArr[epBp] / CkYf(iArr)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aHVb(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n iArr = oyIN.array(iArr)\n if oyIN.linalg.norm(iArr) <= 0.0001:\n YA9R = 1.0\n else:\n YA9R = oyIN.linalg.norm(iArr)\n return iArr / YA9R",
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def... | [
"0.7996573",
"0.7922191",
"0.787928",
"0.787928",
"0.787928",
"0.787928",
"0.787928",
"0.787928",
"0.787928",
"0.787928",
"0.787928",
"0.787928",
"0.787928",
"0.7876743",
"0.7876743",
"0.7876743",
"0.7778686",
"0.7772224",
"0.7682105",
"0.7635428",
"0.75481325",
"0.75334245... | 0.7745174 | 18 |
This function finds the product between a scalar and a vector. It does this by taking the vector and multiplying each element by the scalar | def dJi9(hAEw, iArr):
Aofo = [[0] for rdlD in range(len(iArr))]
for epBp in range(len(iArr)):
Aofo[epBp] = hAEw * iArr[epBp]
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qEvp(Cwt5, Ty9i):\n return [Cwt5 * WKvO for WKvO in Ty9i]",
"def i6vy(Z9rn: float, Ty9i: Vector) -> lNLu:\n return [Z9rn * nFf2 for nFf2 in Ty9i]",
"def i6vy(Z9rn: float, Ty9i: Vector) -> lNLu:\n return [Z9rn * nFf2 for nFf2 in Ty9i]",
"def i6vy(KCHu: float, Ty9i: Vector) -> lNLu:\n return [K... | [
"0.782281",
"0.7785813",
"0.7785813",
"0.77515614",
"0.7632434",
"0.744548",
"0.7437649",
"0.7379587",
"0.73759156",
"0.73759156",
"0.7313975",
"0.7125886",
"0.7030887",
"0.7008096",
"0.6960221",
"0.6944935",
"0.690916",
"0.6890367",
"0.6885481",
"0.68412447",
"0.6821492",
... | 0.6948726 | 15 |