query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 70 |
Return a `str` version of this ReturnsModel object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.return_string()",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO) -> str:\n return YKHO.to_string()",
"def zAg0(YKHO):\n return YKHO.to_string(plain=True)",
"def zAg0(YKHO):\n return YKHO.as_string()",
"def zAg0(YKHO):\n return YKHO.as_string()",... | [
"0.8017762",
"0.79118365",
"0.7908145",
"0.7873143",
"0.78725886",
"0.78725886",
"0.786483",
"0.78558695",
"0.78558695",
"0.78558695",
"0.7836416",
"0.7821431",
"0.78134614",
"0.7806292",
"0.78051883",
"0.77932763",
"0.7789109",
"0.77479583",
"0.77367145",
"0.77337414",
"0.77... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 59 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 36 |
Initialize a SearchMatchesModel object. | def FIMM(YKHO, WhG7=None, yZn6=None, EJbZ=None, N83e=None, cGUQ=None, OfuA=None, i0gQ=None, leAC=None, qI9R=None, mtQ4=None, _ycw=None, qczK=None, E2wy=None, X41p=None, myX9=None, S0ev=None, BU8W=None, XgyP=None):
YKHO.external_id = WhG7
YKHO.document_id = yZn6
YKHO.parent_document_id = EJbZ
YKHO.public... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, kbWm=None, x6A0=None, **B2fa):\n YKHO.matches = []\n if kbWm and x6A0:\n YKHO.search(kbWm, x6A0, **B2fa)",
"def FIMM(YKHO, **B2fa):\n YKHO.featurematches = B2fa\n YKHO._fm = v4FW(**B2fa)",
"def FIMM(YKHO, XsVB: int, *, yht1: List[dict]=None) -> None:\n YKHO.matching_results... | [
"0.6520833",
"0.64262617",
"0.63262147",
"0.63262147",
"0.6133715",
"0.6085045",
"0.6049956",
"0.60260653",
"0.5987238",
"0.5987238",
"0.5979949",
"0.5970963",
"0.596685",
"0.5915407",
"0.5887901",
"0.5883272",
"0.58593005",
"0.5844822",
"0.58239275",
"0.581483",
"0.58027565"... | 0.0 | -1 |
Initialize a SearchMatchesModel object from a json dictionary. | def CCiu(Emd4, tbx9):
qIxc = {}
if 'externalId' in tbx9:
qIxc['external_id'] = tbx9.get('externalId')
if 'documentId' in tbx9:
qIxc['document_id'] = tbx9.get('documentId')
if 'parentDocumentId' in tbx9:
qIxc['parent_document_id'] = tbx9.get('parentDocumentId')
if 'publication... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(Emd4, tbx9):\n qIxc = {}\n if 'hrefSearchMatches' in tbx9:\n qIxc['href_search_matches'] = tbx9.get('hrefSearchMatches')\n if 'hrefCategories' in tbx9:\n qIxc['href_categories'] = tbx9.get('hrefCategories')\n return Emd4(**qIxc)",
"def CCiu(Emd4, tbx9):\n qIxc = {}\n if '... | [
"0.6942862",
"0.6647169",
"0.6612622",
"0.6592394",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
"0.65478903",
... | 0.0 | -1 |
Return a `str` version of this SearchMatchesModel object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str([(str(P6bq.name), str(Ty9i.name)) for P6bq, Ty9i in YKHO.matches.items()])",
"def zAg0(YKHO):\n return str(next(iter(YKHO.model_dict.values()))).split('(')[0]",
"def zAg0(YKHO):\n return YKHO.get_short_representation()",
"def zAg0(YKHO):\n return str(YKHO.model)",
"... | [
"0.74647",
"0.7263018",
"0.7054262",
"0.7020669",
"0.69976294",
"0.6962962",
"0.6946771",
"0.69011277",
"0.69011277",
"0.69011277",
"0.68929654",
"0.6888478",
"0.6888478",
"0.68818915",
"0.6881683",
"0.6869743",
"0.6846992",
"0.6845347",
"0.68426895",
"0.68175894",
"0.6816979... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 40 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 43 |
Initialize a SearchModel object from a json dictionary. | def CCiu(Emd4, tbx9):
qIxc = {}
if 'href' in tbx9:
qIxc['href'] = tbx9.get('href')
if 'pageNumber' in tbx9:
qIxc['page_number'] = tbx9.get('pageNumber')
if 'get_limit' in tbx9:
qIxc['get_limit'] = tbx9.get('get_limit')
if 'totalDocumentCount' in tbx9:
qIxc['total_docu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'KeywordSearch':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def pktP(YKHO, KCHu):\n for G1Hx, Ty9i in ccMY.read_json(KCHu).items():\n YKHO[G1Hx] = Ty9i\n return YKHO",
"def CCiu(Emd4, tbx9):\n qIxc = {}\n if 'ontology' in tbx9:\n qIxc['ontology'] = tbx9.... | [
"0.72564995",
"0.7012764",
"0.6931758",
"0.68633676",
"0.67976356",
"0.6778194",
"0.67487276",
"0.67286044",
"0.6692277",
"0.6669282",
"0.6662206",
"0.6637084",
"0.6636595",
"0.6636595",
"0.6636595",
"0.6636595",
"0.6636595",
"0.6636595",
"0.6636595",
"0.6636595",
"0.6636595"... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 42 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 39 |
Initialize a SentenceModel object from a json dictionary. | def CCiu(Emd4, tbx9):
qIxc = {}
if 'documentSection' in tbx9:
qIxc['document_section'] = tbx9.get('documentSection')
if 'text' in tbx9:
qIxc['text'] = tbx9.get('text')
if 'begin' in tbx9:
qIxc['begin'] = tbx9.get('begin')
if 'end' in tbx9:
qIxc['end'] = tbx9.get('end'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(Emd4, tbx9):\n qIxc = {}\n if 'id' in tbx9:\n qIxc['id'] = tbx9.get('id')\n if 'negated' in tbx9:\n qIxc['negated'] = tbx9.get('negated')\n if 'sentences' in tbx9:\n qIxc['sentences'] = [ZaYr._from_dict(WKvO) for WKvO in tbx9.get('sentences')]\n return Emd4(**qIxc)",
... | [
"0.77751654",
"0.7099439",
"0.7002699",
"0.6959204",
"0.691358",
"0.6884702",
"0.68488705",
"0.6834384",
"0.68302625",
"0.6744499",
"0.6744499",
"0.66562647",
"0.66492397",
"0.66369826",
"0.66353655",
"0.6604546",
"0.6566008",
"0.6552746",
"0.65508175",
"0.65456855",
"0.65432... | 0.6400159 | 32 |
Return a `str` version of this SentenceModel object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n KCHu = '\\nModel name: ' + str(YKHO.name) + '\\n'\n KCHu += ' n. of words: ' + str(len(YKHO.words)) + '\\n'\n KCHu += ' n. of word lengths: ' + str(len(YKHO.wordlengths)) + '\\n'\n KCHu += ' n. of sentence lengths: ' + str(len(YKHO.sentencelengths)) + '\\n'\n KCHu += ' ... | [
"0.78543866",
"0.75666016",
"0.75386035",
"0.74239326",
"0.739642",
"0.737772",
"0.73776996",
"0.7352663",
"0.7338955",
"0.7335871",
"0.73043954",
"0.73041147",
"0.729745",
"0.72956544",
"0.7271924",
"0.72712904",
"0.72684026",
"0.72684026",
"0.72684026",
"0.7239595",
"0.7233... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 43 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 45 |
Initialize a ServiceStatus object. | def FIMM(YKHO, qdxU=None, VMu0=None):
YKHO.service_state = qdxU
YKHO.state_details = VMu0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, liCf, jGRS=None, E3oo=None, ETA7=None, Mxk0=None, FHax=None, x7jU=None, _Y0l=None):\n if E3oo is not None:\n assert isinstance(E3oo, qcWV)\n assert isinstance(liCf, jUrF)\n if jGRS is not None:\n assert jGRS in YKHO.STATUSES\n if _Y0l is not None:\n raise Ass... | [
"0.7163671",
"0.6938294",
"0.6569536",
"0.65505964",
"0.64748716",
"0.6323349",
"0.6298717",
"0.62720954",
"0.6263604",
"0.62606704",
"0.62293416",
"0.62052274",
"0.6199749",
"0.61431605",
"0.61397105",
"0.6124001",
"0.60931355",
"0.6090941",
"0.6059728",
"0.60391766",
"0.603... | 0.61475056 | 13 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 41 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 41 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 47 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 90 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 53 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 91 |
Return a `str` version of this Title object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n Y_sP = YKHO._title\n return Y_sP",
"def zAg0(YKHO):\n return repr(YKHO.title)",
"def zAg0(YKHO) -> str:\n return str(YKHO.title)",
"def zAg0(YKHO) -> str:\n return str(YKHO.title)",
"def zAg0(YKHO) -> str:\n if YKHO._title is not None:\n TcPZ = str(YKHO._title)\n ... | [
"0.81067324",
"0.8097136",
"0.7967204",
"0.7967204",
"0.7935898",
"0.79294795",
"0.79294795",
"0.79294795",
"0.79294795",
"0.79294795",
"0.7909717",
"0.78426784",
"0.7817404",
"0.78051084",
"0.78051084",
"0.78051084",
"0.78051084",
"0.77982813",
"0.7792843",
"0.76716447",
"0.... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 51 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.840434 | 94 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 58 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Initialize a Typeahead object. | def FIMM(YKHO, FJRN=None, xDcj=None, SnBA=None, qoqK=None, KDpk=None):
YKHO.ontology = FJRN
YKHO.query = xDcj
YKHO.types = SnBA
YKHO.limit = qoqK
YKHO.no_duplicates = KDpk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, bGrB, *qIxc, **B2fa):\n super(SVFv, YKHO).__init__(*qIxc, **B2fa)\n YKHO.text_ = on8l.StringVar()\n YKHO.entry = on8l.Entry(YKHO, textvariable=YKHO.text_, width=Xe3g)\n YKHO.listbox = on8l.Listbox(YKHO, selectmode='browse', height=D6KG, width=X8AA)\n YKHO._case_sensitive = None\n Y... | [
"0.68716854",
"0.6509324",
"0.62866235",
"0.6127637",
"0.6005298",
"0.5926163",
"0.5921099",
"0.5909881",
"0.5901661",
"0.5882572",
"0.578786",
"0.5764659",
"0.57555175",
"0.57394135",
"0.56924444",
"0.568725",
"0.5671192",
"0.5665128",
"0.5651773",
"0.56381786",
"0.5624545",... | 0.5224465 | 96 |
Return a `str` version of this Typeahead object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.text_repr()",
"def zAg0(YKHO) -> str:\n return YKHO.short_text",
"def zAg0(YKHO):\n return '{}'.format(YKHO.text)",
"def zAg0(YKHO):\n return '{}, Typing: {}, Reflection: {}, in {}'.format(YKHO.name, YKHO.typing, YKHO.reflection, YKHO.year)",
"def zAg0(YKHO):\n ... | [
"0.6899394",
"0.6843688",
"0.68399346",
"0.6796035",
"0.6784552",
"0.6754129",
"0.6754129",
"0.67167556",
"0.6692364",
"0.6686672",
"0.668233",
"0.66615075",
"0.66501534",
"0.662898",
"0.6618299",
"0.659345",
"0.6589209",
"0.65860337",
"0.6568755",
"0.6556653",
"0.6542452",
... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 55 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Return a `str` version of this TypesModel object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return YKHO.type_to_string()",
"def RBKS(YKHO) -> str:\n raise NotImplementedError()",
"def RBKS(YKHO) -> str:\n raise NotImplementedError()",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '{} ({})'.format(YKHO.name, YKHO.data_t... | [
"0.8037295",
"0.78183645",
"0.78183645",
"0.7782854",
"0.777614",
"0.77735734",
"0.7702437",
"0.7699564",
"0.7666299",
"0.7666299",
"0.765721",
"0.7645992",
"0.7606822",
"0.7599523",
"0.7514787",
"0.7514787",
"0.7495032",
"0.7477596",
"0.7468995",
"0.7468995",
"0.7442304",
... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 79 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 80 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Initialize a YearAndHits object from a json dictionary. | def CCiu(Emd4, tbx9):
qIxc = {}
if 'date' in tbx9:
qIxc['date'] = tbx9.get('date')
if 'hits' in tbx9:
qIxc['hits'] = tbx9.get('hits')
return Emd4(**qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(YKHO):\n YKHO.year = YKHO._input['yr']\n YKHO.number = YKHO._input['no']\n YKHO.id = YKHO._input['id']",
"def CCiu(Emd4, tbx9):\n qIxc = {}\n if 'count' in tbx9:\n qIxc['count'] = tbx9.get('count')\n if 'hits' in tbx9:\n qIxc['hits'] = tbx9.get('hits')\n return Emd4(**... | [
"0.6750737",
"0.67256653",
"0.6651032",
"0.60415274",
"0.6020207",
"0.6002878",
"0.5836292",
"0.5827041",
"0.58134127",
"0.579534",
"0.5744665",
"0.5702623",
"0.57005966",
"0.56965244",
"0.56880605",
"0.56863767",
"0.56808424",
"0.5663945",
"0.5649564",
"0.5645493",
"0.563300... | 0.70151186 | 0 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 82 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Check an argument for an exclusive positive float type. | def h6Oy(d7pR):
VQPf = float(d7pR)
if VQPf <= 0.0:
raise j1Jz.ArgumentTypeError("invalid positive_float_type value: '{}', must be exclusive positive".format(d7pR))
return VQPf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lvAu(d7pR):\n VQPf = float(d7pR)\n if VQPf <= 0.0 or VQPf >= 1.0:\n raise j1Jz.ArgumentTypeError(\"invalid exclusive_unit_float_type value: '{}', must be exclusive between 0 and 1\".format(d7pR))\n return VQPf",
"def CjoC(*qIxc):\n return IOEi.is_type_float(*qIxc)",
"def FGAS(BWXx, UXqs)... | [
"0.8060079",
"0.7796487",
"0.7724997",
"0.755718",
"0.746809",
"0.74467254",
"0.73756427",
"0.7346761",
"0.7331931",
"0.73315257",
"0.73176235",
"0.7279159",
"0.72595936",
"0.72560024",
"0.7188954",
"0.7158808",
"0.7118653",
"0.7093739",
"0.70837605",
"0.70749974",
"0.7067657... | 0.823276 | 0 |
Check an argument for an exclusive unit float type. | def lvAu(d7pR):
VQPf = float(d7pR)
if VQPf <= 0.0 or VQPf >= 1.0:
raise j1Jz.ArgumentTypeError("invalid exclusive_unit_float_type value: '{}', must be exclusive between 0 and 1".format(d7pR))
return VQPf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6Oy(d7pR):\n VQPf = float(d7pR)\n if VQPf <= 0.0:\n raise j1Jz.ArgumentTypeError(\"invalid positive_float_type value: '{}', must be exclusive positive\".format(d7pR))\n return VQPf",
"def CjoC(*qIxc):\n return IOEi.is_type_float(*qIxc)",
"def SH_w(WC6y):\n try:\n float(WC6y)\n... | [
"0.7430337",
"0.72834533",
"0.71757966",
"0.71037614",
"0.7078762",
"0.7039459",
"0.69111043",
"0.6910704",
"0.6885455",
"0.6866672",
"0.68573827",
"0.68534774",
"0.6821626",
"0.6814449",
"0.6796606",
"0.6789016",
"0.6772683",
"0.675558",
"0.67256993",
"0.67104393",
"0.669758... | 0.8353405 | 0 |
converts dense tensor x to sparse format | def zXM_(WKvO):
zHeZ = ht2j.typename(WKvO).split('.')[-1]
UX5J = getattr(ht2j.sparse, zHeZ)
_0VL = ht2j.nonzero(WKvO)
if len(_0VL.shape) == 0:
return UX5J(*WKvO.shape)
_0VL = _0VL.t()
hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL.shape[0])))]
return UX5J(_0VL, hkxX, WKvO.size(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXM_(WKvO, du2w=1):\n zHeZ = ht2j.typename(WKvO).split('.')[-1]\n UX5J = getattr(ht2j.sparse, zHeZ)\n _0VL = ht2j.nonzero(WKvO)[:, :len(WKvO.shape) - du2w + 1]\n if len(_0VL.shape) == 0:\n return UX5J(*WKvO.shape)\n _0VL = _0VL.t()\n hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL... | [
"0.8400781",
"0.8283295",
"0.8147883",
"0.7843562",
"0.7773273",
"0.76879996",
"0.7597557",
"0.75487393",
"0.7533866",
"0.7494915",
"0.74796766",
"0.7464424",
"0.7452206",
"0.73172224",
"0.7302869",
"0.7302869",
"0.7302869",
"0.7302869",
"0.73001045",
"0.72931236",
"0.7293123... | 0.8255158 | 4 |
x > true iff x is a NaN. | def L_aS(WKvO):
if WKvO * 1.0 < WKvO:
return 1
return 1.0 == WKvO and WKvO == 2.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L6uT(YKHO, WKvO):\n pass",
"def L_aS(WKvO):\n return WKvO != WKvO",
"def L_aS(WKvO):\n return WKvO != WKvO",
"def L6uT(WKvO):\n return isinstance(WKvO, float) and epAf.isnan(WKvO)",
"def L6uT(BWXx):\n return BWXx != BWXx",
"def L_aS(WKvO):\n WKvO = o4sw(WKvO)\n return WKvO == JNi... | [
"0.8242484",
"0.8053174",
"0.8033219",
"0.80179775",
"0.79465973",
"0.7844953",
"0.76784617",
"0.75619376",
"0.7527046",
"0.75200665",
"0.7503301",
"0.74723274",
"0.74006915",
"0.73862463",
"0.73862463",
"0.7298458",
"0.7297466",
"0.7248241",
"0.7174634",
"0.71539706",
"0.710... | 0.782569 | 6 |
GIVEN a Flask application configured for testing WHEN the '/register' page is requested (GET) THEN check that the response is valid | def WwTP(QePW, udfG):
geh0 = udfG.get('/register')
assert geh0.status_code == 200
assert b'Register' in geh0.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vo9u(YKHO):\n I78j = P4t4.test_client(YKHO)\n geh0 = I78j.get('/register', content_type='html/text')\n YKHO.assertEqual(geh0.status_code, 200)\n print('test_register route -- PASS')",
"def Ez1q(udfG, zONa):\n geh0 = udfG.post('/register', data=dict(email='atticus@gmail.com', password='toKillaJ... | [
"0.77162343",
"0.7535377",
"0.73994124",
"0.7325468",
"0.7283076",
"0.72061443",
"0.7195476",
"0.7060871",
"0.7034925",
"0.7002198",
"0.7001302",
"0.69866556",
"0.69659996",
"0.6960624",
"0.6951877",
"0.69142115",
"0.68164843",
"0.67583275",
"0.67471725",
"0.67391074",
"0.673... | 0.7498037 | 2 |
GIVEN a Flask application configured for testing WHEN the '/register' form is submitted (POST) THEN check that the response is valid and the database is updated correctly | def vo9u(QePW, udfG, zONa):
geh0 = udfG.post('/register', data=dict(username='john', email='john@wsu.edu', password='bad-bad-password', password2='bad-bad-password', firstname='John', lastname='Yates', address='Pullman, WA'), follow_redirects=True)
assert geh0.status_code == 200
KCHu = NCls.session.query(G8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ez1q(udfG, zONa):\n geh0 = udfG.post('/register', data=dict(email='atticus@gmail.com', password='toKillaJayBird', confirm='toKillaJayBird'), follow_redirects=True)\n assert geh0.status_code == 200\n assert b'Thanks for registering, atticus@gmail.com!' in geh0.data\n assert b'Welcome atticus@gmail.c... | [
"0.78553873",
"0.7450583",
"0.73841566",
"0.7265961",
"0.7204588",
"0.7204579",
"0.719372",
"0.7184334",
"0.6983992",
"0.6951817",
"0.6910134",
"0.6877706",
"0.68637764",
"0.6851259",
"0.6848308",
"0.6832472",
"0.68242747",
"0.6818019",
"0.68079716",
"0.6801802",
"0.67573965"... | 0.69151556 | 10 |
GIVEN a Flask application configured for testing WHEN the '/login' form is submitted (POST) with wrong credentials THEN check that the response is valid and login is refused | def vysK(QePW, udfG, zONa):
geh0 = udfG.post('/login', data=dict(username='sakire', password='12345', remember_me=False), follow_redirects=True)
assert geh0.status_code == 200
assert b'Invalid username or password' in geh0.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RopN(YKHO):\n P4t4 = YKHO.create_app()\n P4t4.config['TESTING_LOGIN'] = False\n geh0 = P4t4.test_client().get('/testing-login/')\n YKHO.assert_404(geh0)",
"def jEgE(vY7J):\n geh0 = vY7J.post('/login', {'username': 'hbao', 'password': 'notmypassword'})\n assert 'Error: Username/Password does... | [
"0.71862406",
"0.7176896",
"0.71278775",
"0.7039228",
"0.70213187",
"0.68505037",
"0.6846535",
"0.6786349",
"0.67725015",
"0.6754458",
"0.6745085",
"0.6743275",
"0.67154104",
"0.6681731",
"0.6669782",
"0.66626555",
"0.66236126",
"0.66159016",
"0.6589246",
"0.65874195",
"0.657... | 0.6374899 | 42 |
GIVEN a Flask application configured for testing WHEN the '/login' form is submitted (POST) with correct credentials THEN check that the response is valid and login is succesfull | def La3D(QePW, udfG, zONa):
geh0 = udfG.post('/login', data=dict(username='sakire', password='1234', remember_me=False), follow_redirects=True)
assert geh0.status_code == 200
assert b'Hi, Sakire Arslan Ay!' in geh0.data
geh0 = udfG.get('/logout', follow_redirects=True)
assert geh0.status_code == 200... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MC83(vY7J):\n DXni = {'username': 'hbao', 'password': 'secret'}\n vY7J.post('/login', DXni)",
"def QL6A(YKHO):\n Aofo = YKHO.client.post('/login', data={'email': 'lady@flash.pow', 'password': 'PowerfulLady'}, follow_redirects=True)\n YKHO.assertEqual(Aofo.status_code, 200)\n YKHO.assertIn('Hi ... | [
"0.72201926",
"0.7189252",
"0.7144286",
"0.7095106",
"0.70820373",
"0.70147264",
"0.69398785",
"0.68968445",
"0.6887738",
"0.68841773",
"0.6883759",
"0.6845753",
"0.68321943",
"0.6804286",
"0.679018",
"0.67857546",
"0.6735718",
"0.6728628",
"0.67157507",
"0.66858065",
"0.6681... | 0.0 | -1 |
Creates minibatch tensors from the list of tuples (image, caption). We should build custom collate_fn rather than using default collate_fn, because merging caption (including padding) is not supported in default. | def QxcP(nPrm):
nPrm.sort(key=lambda WKvO: len(WKvO[1]), reverse=True)
Yw_3, UrTZ = zip(*nPrm)
Yw_3 = ht2j.stack(Yw_3, 0)
Fbjb = [len(Fd1k) for Fd1k in UrTZ]
x6A0 = ht2j.zeros(len(UrTZ), max(Fbjb)).long()
for YRbF, Fd1k in enumerate(UrTZ):
Os4s = Fbjb[YRbF]
x6A0[YRbF, :Os4s] = Fd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QxcP(nPrm: List[Tuple]) -> AzJI:\n nPrm.sort(key=lambda WKvO: len(WKvO[1]), reverse=True)\n Yw_3, UrTZ = zip(*nPrm)\n print(f'Image shape: {Yw_3.shape}')\n Yw_3 = ht2j.stack(Yw_3, 0)\n Fbjb = [len(Fd1k) for Fd1k in UrTZ]\n x6A0 = ht2j.zeros(len(UrTZ), max(Fbjb)).long()\n for YRbF, Fd1k in ... | [
"0.6695138",
"0.66113293",
"0.6536565",
"0.6510642",
"0.6348992",
"0.6348992",
"0.63411057",
"0.63203686",
"0.63203686",
"0.63203686",
"0.6306277",
"0.6297576",
"0.6292143",
"0.62830865",
"0.6260867",
"0.6255208",
"0.6221132",
"0.62210125",
"0.6207983",
"0.6207983",
"0.620798... | 0.6212083 | 18 |
Returns torch.utils.data.DataLoader for custom coco dataset. | def RuZU(tk5Y, qQXR, fK8P, SZFh, Ep8u, hXNa, I7Gy):
N8JC = Qon4(img_path=tk5Y, json=qQXR, dct=fK8P, transform=SZFh)
zQKy = ht2j.utils.data.DataLoader(dataset=N8JC, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, collate_fn=QxcP)
return zQKy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RuZU(tk5Y, qQXR, SZFh, Ep8u, hXNa, I7Gy):\n N8JC = Qon4(root=tk5Y, json=qQXR, transform=SZFh)\n zQKy = ht2j.utils.data.DataLoader(dataset=N8JC, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy)\n return (zQKy, N8JC)",
"def qFG4(i0XC: str, Ep8u: int) -> pVAc:\n rrl5 = i0XC + '/train2017'\n XOtI ... | [
"0.74904853",
"0.72587734",
"0.70325327",
"0.6757468",
"0.6757468",
"0.671094",
"0.65776044",
"0.65647876",
"0.64585733",
"0.6431798",
"0.6377102",
"0.6323418",
"0.630777",
"0.630777",
"0.630777",
"0.6304401",
"0.62798905",
"0.6253598",
"0.6237868",
"0.62244886",
"0.6221185",... | 0.628844 | 16 |
Yield all candidate text for a question >>> data = loaddata("BioASQtraining8b.json") >>> y = yield_candidate_snippets(data[0]) >>> next(y) 'Hirschsprung disease (HSCR) is a multifactorial, nonmendelian disorder in which rare highpenetrance coding sequence mutations in the receptor tyrosine kinase RET contribute to risk... | def Vpy4(klnk):
if 'snippets' not in klnk:
print('Warning: question without snippets:')
print(klnk['body'])
return
for gAeH in klnk['snippets']:
for KCHu in N3rN(gAeH['text']):
yield KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def otXQ(__n6):\n for Mkmy in __n6:\n yield Mkmy['body']\n if type(Mkmy['ideal_answer']) == list:\n HkdC = Mkmy['ideal_answer']\n else:\n HkdC = [Mkmy['ideal_answer']]\n for KCHu in HkdC:\n yield KCHu",
"def xu4J(MCku: str, U78l: str) -> AzJI[str, s... | [
"0.61629564",
"0.5773028",
"0.577172",
"0.5656947",
"0.5592587",
"0.55868167",
"0.5405889",
"0.53870416",
"0.53811914",
"0.53794533",
"0.5368597",
"0.5303796",
"0.52697",
"0.5226232",
"0.52053016",
"0.51956403",
"0.5188868",
"0.5158124",
"0.51556724",
"0.5151367",
"0.51188207... | 0.784318 | 0 |
Obtain a GitHub App's installation access token. Return a dictionary containing access token and expiration time. | async def get_installation_access_token(vlUL: GitHubAPI, *, rUgi: str, B7c0: str, x03U: str) -> cuzp[str, ImMB]:
JXJv = f'/app/installations/{rUgi}/access_tokens'
eOtH = iwDu(app_id=B7c0, private_key=x03U)
geh0 = await vlUL.post(JXJv, data=b'', jwt=eOtH)
return YWvJ(cuzp[str, ImMB], geh0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNsM(rUgi):\n global gh_integration\n return F8Y1.get_access_token(rUgi).token",
"async def access_token(YKHO):\n nPrm = await YKHO.login()\n return nPrm['accessToken']",
"def VgoY():\n return cuiw.get(Z5BK, [None] * 2)",
"def VgoY():\n pass",
"def to2L(YKHO) -> dict:\n pass",
"d... | [
"0.6936445",
"0.6627456",
"0.65132654",
"0.6474842",
"0.64207715",
"0.636821",
"0.62666273",
"0.621549",
"0.62125623",
"0.6201061",
"0.61897606",
"0.61790323",
"0.61790323",
"0.617562",
"0.6172176",
"0.6166784",
"0.61422175",
"0.6133129",
"0.6130877",
"0.6126334",
"0.6122689"... | 0.77567667 | 0 |
Returns a representation of this Schema as a feature spec. A feature spec (for a whole dataset) is a dictionary from logical feature names to one of `FixedLenFeature`, `SparseFeature` or `VarLenFeature`. | def eZlW(YKHO):
return {H5ew: q244.as_feature_spec() for H5ew, q244 in jKi7.iteritems(YKHO.column_schemas)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eZlW(YKHO):\n return YKHO.representation.as_feature_spec(YKHO)",
"def usiF(YKHO):\n if YKHO._element_shape.is_fully_defined():\n gMDe = ZylS.FixedLenFeature(YKHO._element_shape, YKHO._dtype)\n else:\n gMDe = ZylS.VarLenFeature(YKHO._dtype)\n return {YKHO.key(): gMDe}",
"def OVZx(K... | [
"0.7724391",
"0.77184",
"0.7093716",
"0.6997537",
"0.6953841",
"0.68513936",
"0.67601424",
"0.6716761",
"0.6608537",
"0.6273023",
"0.6197153",
"0.6159958",
"0.614021",
"0.6004997",
"0.59937406",
"0.59937406",
"0.59685105",
"0.59080595",
"0.5853617",
"0.5826797",
"0.5825246",
... | 0.7738047 | 0 |
Returns a representation of this ColumnSchema as a feature spec. A feature spec (for a specific column) is one of a FixedLenFeature, SparseFeature or VarLenFeature. | def eZlW(YKHO):
return YKHO.representation.as_feature_spec(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eZlW(YKHO, iVRZ):\n raise NotImplementedError()",
"def eZlW(YKHO):\n return {H5ew: q244.as_feature_spec() for H5ew, q244 in jKi7.iteritems(YKHO.column_schemas)}",
"def usiF(YKHO):\n if YKHO._element_shape.is_fully_defined():\n gMDe = ZylS.FixedLenFeature(YKHO._element_shape, YKHO._dtype)\n ... | [
"0.7354748",
"0.7226051",
"0.67385185",
"0.6437886",
"0.62336",
"0.6137737",
"0.58579004",
"0.5820208",
"0.5812014",
"0.5784562",
"0.5780036",
"0.5732247",
"0.57130605",
"0.57130605",
"0.57130605",
"0.57130605",
"0.5620711",
"0.5610927",
"0.5569088",
"0.5560301",
"0.55397594"... | 0.7247502 | 1 |
Create an appropriate Domain for the given dtype. | def JzXW(yDqo):
if yDqo.is_integer:
return CJbv(yDqo)
if yDqo.is_floating:
return V1fk(yDqo)
if yDqo == ZylS.string:
return IlSU(yDqo)
if yDqo == ZylS.bool:
return g_Wi(yDqo)
raise ValueError('Schema cannot accommodate dtype: {}'.format(yDqo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reQV():\n Crrw = oyIN.ones(ROpF)\n Mf7r = bVlf(Crrw, affine=None)\n return Mf7r",
"def C1XD(zrIJ):\n if zrIJ.get('ints') is not None:\n\n def E6DD(KCHu):\n return int(KCHu) if KCHu is not None else None\n return wVC4.IntDomain(ZylS.int64, E6DD(zrIJ['ints'].get('min')), E6... | [
"0.6667288",
"0.636509",
"0.63264716",
"0.62674916",
"0.61015445",
"0.60852283",
"0.6076686",
"0.5818105",
"0.58128995",
"0.5795316",
"0.5776767",
"0.574658",
"0.5720265",
"0.56465536",
"0.5589482",
"0.55534244",
"0.5532555",
"0.55240613",
"0.5514321",
"0.55037",
"0.5463137",... | 0.7865179 | 0 |
Add an edge between u and v, at t. The nodes u and v will be automatically added if they are not already in the impulse graph. Edge attributes can be specified with keywords or by directly accessing the edge's attribute dictionary. See examples below. | def rz7z(YKHO, P6bq, Ty9i, a1PO, **hkS8):
yGdP = YKHO.edgeid
YKHO.tree.setdefault(a1PO, set()).add((P6bq, Ty9i, yGdP))
YKHO._node.setdefault(P6bq, {})
YKHO._node.setdefault(Ty9i, {})
YKHO._adj.setdefault(P6bq, {})[P6bq, Ty9i, yGdP, a1PO] = hkS8
YKHO._adj.setdefault(Ty9i, {})[P6bq, Ty9i, yGdP, a1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, P6bq, Ty9i, honC=None, **hkS8):\n YKHO.graph.add_edge(P6bq, Ty9i, honC, **hkS8)",
"def rz7z(YKHO, P6bq, Ty9i, honC=None, **hkS8):\n if honC is None:\n honC = hkS8\n else:\n try:\n honC.update(hkS8)\n except AttributeError:\n raise ADAU('The attr_... | [
"0.78170973",
"0.73128223",
"0.7305663",
"0.7188577",
"0.71760195",
"0.71112776",
"0.70893896",
"0.70821124",
"0.7031845",
"0.69707626",
"0.69487184",
"0.69046223",
"0.6877621",
"0.6875693",
"0.6866364",
"0.6865068",
"0.68525743",
"0.6803551",
"0.67992216",
"0.6766113",
"0.67... | 0.8008823 | 0 |
Add all the edges in ebunch_to_add. | def j9M2(YKHO, qz8T, **hkS8):
for tTpl in qz8T:
if len(tTpl) != 3:
raise ADAU('Edge tuple {0} must be a 3-tuple.'.format(tTpl))
YKHO.add_edge(tTpl[0], tTpl[1], tTpl[2], **hkS8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j9M2(YKHO, qz8T, **hkS8):\n for tTpl in qz8T:\n d_5N = len(tTpl)\n if d_5N == 3:\n P6bq, Ty9i, I1iR = tTpl\n elif d_5N == 2:\n P6bq, Ty9i = tTpl\n I1iR = {}\n else:\n raise ADAU(f'Edge tuple {tTpl} must be a 2-tuple or 3-tuple.')\n ... | [
"0.7549648",
"0.75429225",
"0.75429225",
"0.75399595",
"0.7431682",
"0.7235497",
"0.72340786",
"0.7198638",
"0.71440977",
"0.71091175",
"0.7101884",
"0.7100797",
"0.701419",
"0.6984271",
"0.69738525",
"0.6941836",
"0.6941365",
"0.6871113",
"0.67976487",
"0.6783651",
"0.676133... | 0.79355663 | 0 |
Remove the edge between u and v in the impulse graph, during the given interval. Quiet if the specified edge is not present. | def iyca(YKHO, P6bq, Ty9i, _9an=None, Os4s=None, yYKB=(True, True)):
swSS = []
for D70y in YKHO.__search_tree(_9an, Os4s, inclusive=yYKB):
if P6bq == D70y[0] and Ty9i == D70y[1]:
swSS.append(D70y)
for D70y in swSS:
YKHO.__remove_iedge(D70y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iyca(YKHO, P6bq, Ty9i):\n YKHO.graph.remove_edge(P6bq, Ty9i)",
"def pJPr(P6bq, Ty9i):\n P6bq.remove_dart(Ty9i)\n Ty9i.remove_dart(P6bq)",
"def iyca(YKHO, P6bq, Ty9i):\n try:\n del YKHO._succ[P6bq][Ty9i]\n del YKHO._pred[Ty9i][P6bq]\n except KeyError as err:\n raise ADAU(... | [
"0.6998727",
"0.6915838",
"0.6709555",
"0.65718734",
"0.65354574",
"0.6443893",
"0.6419579",
"0.6389669",
"0.63575757",
"0.63171583",
"0.6222095",
"0.6190206",
"0.6158606",
"0.61555177",
"0.6151977",
"0.61407477",
"0.6095471",
"0.60427296",
"0.60387504",
"0.59560245",
"0.5894... | 0.6688889 | 3 |
Remove the interval edge from the impulse graph. Quiet if the specified edge is not present. | def r6tg(YKHO, u6BG):
P6bq = u6BG[0]
Ty9i = u6BG[1]
yGdP = u6BG[2]
a1PO = u6BG[3]
try:
YKHO.tree[a1PO].remove((P6bq, Ty9i, yGdP))
del YKHO._adj[P6bq][u6BG]
del YKHO._adj[Ty9i][u6BG]
except:
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iyca(YKHO, tTpl):\n pass",
"def iyca(YKHO, D70y):\n JYV8, mheE = D70y.nodes\n if JYV8 in YKHO.edges and mheE in YKHO.edges[JYV8]:\n YKHO.edges[JYV8].remove(mheE)\n YKHO.rev_edges[mheE].remove(JYV8)\n if JYV8 in YKHO.intra_edges and mheE in YKHO.intra_edges[JYV8]:\n YK... | [
"0.68801355",
"0.6492204",
"0.6361534",
"0.6359524",
"0.6338017",
"0.62857896",
"0.6281923",
"0.62593365",
"0.6235501",
"0.62155217",
"0.62067896",
"0.6172735",
"0.6138677",
"0.6116578",
"0.6104681",
"0.60398257",
"0.6023623",
"0.598778",
"0.5934496",
"0.59179324",
"0.5840068... | 0.587236 | 20 |
Strip html tags from html content (str) Useful for summary creation | def t5Yq(_R2e):
KCHu = zZ9b()
KCHu.feed(_R2e)
return KCHu.get_data() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(gmUX):\n OuqX = ''\n if gmUX:\n KCHu = o205()\n KCHu.feed(gmUX.decode('latin-1').encode('ascii', 'ignore'))\n OuqX = KCHu.get_data()\n return OuqX.strip()",
"def vDdR(YKHO, NPoT):\n d_Go = rKuS(NPoT).text\n return d_Go",
"def PKBK(_R2e):\n KCHu = ugbK()\n KCHu... | [
"0.8019166",
"0.79364616",
"0.7915684",
"0.79102623",
"0.78856593",
"0.7860979",
"0.78120744",
"0.77911246",
"0.77607507",
"0.77021134",
"0.7688571",
"0.76856905",
"0.7681005",
"0.7681005",
"0.7681005",
"0.7678602",
"0.7678368",
"0.7678158",
"0.7662735",
"0.76493794",
"0.7641... | 0.7695137 | 10 |
Tests the creation of people for a given order | def jDyS(YKHO):
T4Wy = YKHO.create_test_order('WILL')
bD7m = gxEw('persons:list-create-people', kwargs={'order_pk': T4Wy.id})
nPrm = {**YKHO.personal_details, 'entity_type': 'Person'}
Mkmy = YKHO.client.post(bD7m, data=qQXR.dumps(nPrm), content_type='application/json', AUTHORIZATION=f'Bearer {YKHO.user_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CW30(YKHO):\n YKHO.assertIsInstance(YKHO.order, KpX3)",
"def s9bL(YKHO):\n YKHO.change_user()\n ORy6 = YKHO.CREATE_CUSTOMER.copy()\n ORy6['partner_1_name'] = 'IMDUECE'\n YKHO.CREATE_CUSTOMER()\n ORy6 = YKHO.CREATE_CUSTOMER\n pvcB = qQXR.loads(YKHO.client.get('/api/v1/customers/').content... | [
"0.6849815",
"0.6761104",
"0.66918993",
"0.6676264",
"0.6639862",
"0.6635441",
"0.6621122",
"0.6531036",
"0.6530949",
"0.6530949",
"0.6490531",
"0.642711",
"0.63570654",
"0.6351265",
"0.6333644",
"0.632696",
"0.62939113",
"0.62431616",
"0.62352777",
"0.6234466",
"0.6233258",
... | 0.68094194 | 1 |
Tests the creation of people for a given order | def _bid(YKHO):
T4Wy = YKHO.create_test_order('WILL')
a70H = YKHO.create_test_person()
bD7m = gxEw('persons:update-appointment', kwargs={'order_pk': T4Wy.id})
nPrm = {'person': a70H.id, 'updated_type': 'EXECUTOR'}
Mkmy = YKHO.client.post(bD7m, data=qQXR.dumps(nPrm), content_type='application/json', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CW30(YKHO):\n YKHO.assertIsInstance(YKHO.order, KpX3)",
"def jDyS(YKHO):\n T4Wy = YKHO.create_test_order('WILL')\n bD7m = gxEw('persons:list-create-people', kwargs={'order_pk': T4Wy.id})\n nPrm = {**YKHO.personal_details, 'entity_type': 'Person'}\n Mkmy = YKHO.client.post(bD7m, data=qQXR.dumps... | [
"0.6849815",
"0.68094194",
"0.6761104",
"0.66918993",
"0.6676264",
"0.6639862",
"0.6635441",
"0.6621122",
"0.6531036",
"0.6530949",
"0.6530949",
"0.6490531",
"0.642711",
"0.63570654",
"0.6351265",
"0.6333644",
"0.62939113",
"0.62431616",
"0.62352777",
"0.6234466",
"0.6233258"... | 0.632696 | 16 |
Computes the mean average precision of an image for a k set of predictions | def QVoc(mKri, GyY3, G1Hx):
JeoW = cMaZ(GyY3, G1Hx)
JeoW = [G1Hx.db_im.image.image_name() for G1Hx in JeoW]
return Wbxz.mapk([mKri], [JeoW], G1Hx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YIrj(N6Z1, uSzd=40):\n exwG = int(len(N6Z1) / uSzd)\n SiB1 = oyIN.zeros(exwG)\n for YRbF in range(exwG):\n PEpp = N6Z1[YRbF * uSzd:(YRbF + 1) * uSzd]\n SiB1[YRbF] = int(oyIN.mean(PEpp) > 0.5)\n return SiB1",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)... | [
"0.72352546",
"0.7175788",
"0.7165129",
"0.71372324",
"0.71372324",
"0.71282154",
"0.71108603",
"0.70860374",
"0.70860374",
"0.7080904",
"0.705665",
"0.705665",
"0.705665",
"0.7023876",
"0.70206773",
"0.69684815",
"0.6947629",
"0.69432443",
"0.69229025",
"0.6881712",
"0.68787... | 0.0 | -1 |
Apply Gaussian to Centroid | def FIMM(YKHO, sjXb: KeysCollection, claH: str='signal', c_e4: bool=False):
super().__init__(sjXb, c_e4)
YKHO.signal_key = claH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(H2v2, JPqE, fXzF, bF5a, Fk0k):\n bF5a = float(bF5a)\n Fk0k = float(Fk0k)\n return lambda WKvO, LVAh: H2v2 * oyIN.exp(-(((JPqE - WKvO) / bF5a) ** 2 + ((fXzF - LVAh) / Fk0k) ** 2) / 2)",
"def IAWS(H2v2, JPqE, fXzF, bF5a, Fk0k):\n bF5a = float(bF5a)\n Fk0k = float(Fk0k)\n return lambda WK... | [
"0.71197236",
"0.7105234",
"0.70447636",
"0.70121384",
"0.7009144",
"0.70034325",
"0.7001259",
"0.69944984",
"0.69832146",
"0.69832146",
"0.69832146",
"0.69832146",
"0.69651055",
"0.69052374",
"0.6898149",
"0.6895061",
"0.68193525",
"0.6753445",
"0.6740095",
"0.6736695",
"0.6... | 0.0 | -1 |
Recursively construct tree by creating a nested dictionary based off of data from parents that gives a parent child relationship | def HLVg(YKHO, Ii1o, ACnF, tzzv, rb7a=0):
SfJq = []
for aUGN in ACnF.get(Ii1o, []):
_eu6 = aUGN.id
Q6kx = tzzv.get(_eu6)
J_Es = lzIp(Q6kx, children=YKHO._recursive_make_tree(_eu6, ACnF, tzzv, rb7a + 1), depth=rb7a)
SfJq.append(J_Es)
return SfJq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sks5(nPrm, _AKB=None):\n if not nPrm.exists():\n return dict()\n nPrm = dict(zip([YRbF.id for YRbF in nPrm], nPrm))\n for _sei, ZfUD in nPrm.items():\n if ZfUD.parent_id in nPrm:\n if not hasattr(nPrm[ZfUD.parent_id], 'children'):\n nPrm[ZfUD.parent_id].children... | [
"0.8155974",
"0.74576557",
"0.7123499",
"0.7005593",
"0.6971374",
"0.69164574",
"0.68758523",
"0.6771733",
"0.66373545",
"0.66330457",
"0.6608593",
"0.66041845",
"0.655922",
"0.6558725",
"0.6551876",
"0.64968854",
"0.64509207",
"0.63348085",
"0.6329089",
"0.6315262",
"0.63130... | 0.6616407 | 10 |
Given a str, return a new str with ==> replaced by |'==>'|, etc. >>> expr_handle_infix_ops('P ==> Q') "P |'==>'| Q" | def _v_4(WKvO):
for khtY in LyZl:
WKvO = WKvO.replace(khtY, '|' + repr(khtY) + '|')
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtMr(EP60):\n Maem = {'*': 3, '/': 3, '+': 2, '-': 2, '^': 4, '~': 4, '(': 1}\n L17J = P_Jc()\n P2xj = []\n Jwtf = EP60.split()\n for YRbF in Jwtf:\n if ye72(YRbF):\n P2xj.append(YRbF)\n elif YRbF == '(':\n L17J.push(YRbF)\n elif YRbF == ')':\n ... | [
"0.67398834",
"0.66945887",
"0.66864747",
"0.66755915",
"0.6656953",
"0.66316015",
"0.6626646",
"0.66248274",
"0.6621899",
"0.66034096",
"0.658478",
"0.6500637",
"0.6463053",
"0.6450678",
"0.6447995",
"0.64166075",
"0.63461936",
"0.6314004",
"0.6284462",
"0.6284148",
"0.62319... | 0.7819386 | 0 |
Return an empty list, suitable as a LastInFirstOut Queue. | def S9Ut():
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V5Bx():\n return []",
"def eejY(YKHO, gGq6):\n list = []\n while True:\n try:\n list.append(gGq6.get(block=False))\n except rWmY:\n break\n return list",
"def VwEg(vexM):\n U5bT = []\n while True:\n try:\n U5bT.append(vexM.get_nowait()... | [
"0.7427827",
"0.7064633",
"0.688975",
"0.6799883",
"0.67255694",
"0.67255694",
"0.6623809",
"0.65070844",
"0.6440035",
"0.6427693",
"0.638345",
"0.6379004",
"0.63757354",
"0.6347031",
"0.63205564",
"0.62773275",
"0.6259485",
"0.62358606",
"0.62000436",
"0.6193591",
"0.6188181... | 0.0 | -1 |
Returns a copy of `self` with `values` replaced by `new_values`. | def Z0M7(YKHO, Dbmo):
return tZj7(YKHO._indices, Dbmo, YKHO._dense_shape) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rqY8(YKHO, hkxX, PSle=True) -> None:\n if PSle is True:\n YKHO.__data__ = {}\n YKHO.__data__.update(_qLf(hkxX))",
"def T6S7(YKHO, JxIl):\n YKHO._vals = JxIl",
"def jth9(YKHO):\n Aofo = Fp_x()\n Aofo.values = [YRbF.copy() for YRbF in YKHO.values]\n return Aofo",
"def BdN0(Emd4, *h... | [
"0.6897634",
"0.6626945",
"0.6480739",
"0.638994",
"0.63809496",
"0.6314692",
"0.630089",
"0.62831247",
"0.6253482",
"0.61405796",
"0.61405796",
"0.61405796",
"0.6138113",
"0.59912246",
"0.5955712",
"0.59284127",
"0.58131814",
"0.5752841",
"0.57505935",
"0.5741496",
"0.572113... | 0.6201713 | 9 |
Access the WIT endpoint to obtain access token from the refresh token. | def DpaD(YKHO):
bD7m = YKHO.create_url('api/login/refresh')
print('URL: %s') % bD7m
pB3N = {'refresh_token': YKHO.offref_token_userid_primary}
Mkmy = G4JS.post(bD7m, headers={'Content-Type': 'application/json'}, data=qQXR.dumps(pB3N))
return YKHO.extract_value('token.access_token', Mkmy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VgoY(YKHO):\n Plm4.debug('Fetching access token from Workday API.')\n MOPg = {'Content-Type': 'application/x-www-form-urlencoded'}\n nPrm = {'grant_type': 'refresh_token', 'refresh_token': YKHO.refresh_token}\n EXHs = YKHO._http_request(method='POST', full_url=YKHO.token_url, headers=MOPg, data=nPr... | [
"0.6871475",
"0.6596042",
"0.6541496",
"0.6499999",
"0.640492",
"0.6391275",
"0.63770205",
"0.6362896",
"0.6332338",
"0.63123244",
"0.63019377",
"0.62773424",
"0.62630564",
"0.62372684",
"0.6211347",
"0.62043375",
"0.6199026",
"0.6185789",
"0.6185361",
"0.6155919",
"0.615319"... | 0.6074761 | 34 |
Return the request status. | def VLTN(YKHO):
if YKHO.response.status_code == 200:
jGRS = YKHO.response.json()
try:
if jGRS['data']['recordAttendanceTime']:
return True
except KeyError:
return False
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO):\n QoTp = YKHO.compile_url([ExWi])\n Aofo = YKHO.request(QoTp)\n return Aofo",
"def jGRS(YKHO):\n return YKHO._request_get('')",
"def lVvp(YKHO, OVSu):\n YKHO.log.debug(\"getRequestStatus: attempting to get status for '%s' request.\" % OVSu)\n return YKHO.requestManager().getRe... | [
"0.8350893",
"0.81493825",
"0.79988647",
"0.7968594",
"0.7854816",
"0.77470624",
"0.77470624",
"0.77380323",
"0.7648453",
"0.7645576",
"0.763826",
"0.76356184",
"0.76242155",
"0.7612416",
"0.7612289",
"0.76100403",
"0.75999516",
"0.7585779",
"0.7578176",
"0.75586665",
"0.7558... | 0.0 | -1 |
This function normalizes the color of an image and rescales it to the desired format. The color is rolled to axis 0. We make optional to normalize color by passing boolen variable. | def DTzO(VXjJ, sAQH, CkYf):
if CkYf:
Cd_s = qfpW.rgb2hsv(VXjJ)
Cd_s[:, :, 2] = ITaD.equalize_hist(Cd_s[:, :, 2])
VXjJ = qfpW.hsv2rgb(Cd_s)
QJ0o = min(VXjJ.shape[:-1])
A4Ls = (VXjJ.shape[0] // 2, VXjJ.shape[1] // 2)
VXjJ = VXjJ[A4Ls[0] - QJ0o // 2:A4Ls[0] + QJ0o // 2, A4Ls[1] - QJ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KF2g(LNo8):\n quCl = _qLf(LNo8)\n eZjj = oyIN.max(quCl) - oyIN.min(quCl)\n if eZjj <= 1.0 and eZjj >= 0.0:\n quCl = 255.0 * quCl\n elif eZjj <= 2.0 and eZjj > 1.0:\n quCl = 127.5 * (quCl + oyIN.ones(quCl.shape))\n quCl = oyIN.uint8(quCl)\n return quCl",
"def kwsU(YKHO):\n Y... | [
"0.70268434",
"0.6952965",
"0.68817085",
"0.67825276",
"0.6663758",
"0.66459894",
"0.6643125",
"0.6627731",
"0.66055655",
"0.6561903",
"0.65563077",
"0.655392",
"0.6549426",
"0.65092915",
"0.65092915",
"0.65066165",
"0.64931947",
"0.6475532",
"0.6470055",
"0.6462691",
"0.6459... | 0.6161385 | 44 |
Test for validating whether the area tag is constructed correctly or not. | def GsxC(azoT):
_i_Z = FnSF(**azoT)
assert _i_Z.construct() == f0tD.render(azoT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vNbF(YKHO):\n J1b4 = x7Ls(8, 7, 0, 0, 56)\n YKHO.assertEqual(J1b4.area(), 56)",
"def N4bE(azoT, AJ5d, tf1m):\n with trZe.raises(AJ5d) as BQDi:\n FnSF(**azoT)\n assert tf1m in str(BQDi)",
"def oGr_(azoT):\n _i_Z = FnSF(**azoT)\n if not isinstance(azoT['coords'], str):\n azoT[... | [
"0.72053915",
"0.7112056",
"0.70493674",
"0.6950493",
"0.6898507",
"0.68910813",
"0.68607515",
"0.67489004",
"0.67115104",
"0.6632652",
"0.6596428",
"0.65286124",
"0.6453508",
"0.644991",
"0.64139634",
"0.63901633",
"0.6352565",
"0.6350119",
"0.6319405",
"0.6274682",
"0.62476... | 0.7997937 | 0 |
Given a dataframe and a list, append the list as a new row to the dataframe. | def MX8Y(jQ3Z, Uqbu):
fIN5 = len(Uqbu)
O_6X = rLdf.DataFrame(oyIN.array(Uqbu).reshape(1, fIN5), columns=list(jQ3Z.columns))
jQ3Z = jQ3Z.append(O_6X, ignore_index=True)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MX8Y(jQ3Z, Uqbu):\n fIN5 = len(Uqbu)\n O_6X = rLdf.DataFrame(oyIN.array(Uqbu).reshape(1, fIN5), columns=list(jQ3Z.columns))\n jQ3Z = jQ3Z.append(O_6X, ignore_index=True)\n return jQ3Z",
"def jpol(jQ3Z: pd.DataFrame, lmpc: pd.DataFrame, Nyp2: list, lO87: str=''):\n NRu9 = jQ3Z.loc[jQ3Z['Name'].... | [
"0.7465796",
"0.68852454",
"0.67165977",
"0.65056926",
"0.6454961",
"0.6400289",
"0.6388438",
"0.63383013",
"0.6237616",
"0.621352",
"0.6163453",
"0.6146906",
"0.61354107",
"0.6111969",
"0.6056553",
"0.60311633",
"0.6015463",
"0.596862",
"0.59610325",
"0.594514",
"0.59303313"... | 0.75949866 | 0 |
Collate a list of data and return a batch for predicting crystal properties. | def _oqW(pU0Z):
PgGU = []
CGya = []
pdp2 = []
EYa4 = []
mhW1 = []
j61V = []
t2SW = []
UB0P = []
gKTx = 0
for YRbF, (g4y1, pan_, yCnv, BNV7) in enumerate(pU0Z):
NCwT, DVf2, T6Rf, sPr2 = g4y1
TD9s = DVf2.shape[0]
PgGU.append(NCwT)
CGya.append(DVf2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _oqW(pU0Z):\n PgGU = []\n CGya = []\n pdp2 = []\n EYa4 = []\n mhW1 = []\n j61V = []\n t2SW = []\n UB0P = []\n gKTx = 0\n for YRbF, ((NCwT, DVf2, T6Rf, sPr2), pan_, yCnv, BNV7) in enumerate(pU0Z):\n TD9s = DVf2.shape[0]\n PgGU.append(NCwT)\n CGya.append(DVf2)\n... | [
"0.7933562",
"0.7875951",
"0.7159096",
"0.69448525",
"0.6835722",
"0.6834272",
"0.67459077",
"0.6585426",
"0.6498739",
"0.64857095",
"0.6485707",
"0.6466486",
"0.64534724",
"0.64412785",
"0.64178693",
"0.6397701",
"0.6389895",
"0.63890487",
"0.63419527",
"0.63273966",
"0.6324... | 0.7882487 | 1 |
General heat map plot | def QOPE(jQ3Z, wytA=(18, 18), leAC='Heatmap', _a7g='white', iMGt='Oranges'):
kj9G.figure(figsize=wytA)
with gAeH.axes_style(_a7g):
pTep = gAeH.heatmap(jQ3Z, annot=True, cmap=iMGt, cbar=False, fmt='g', annot_kws={'size': 14})
pTep.set_yticklabels(pTep.get_yticklabels(), rotation=0)
pTep.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y4Ek(YKHO):\n Ud7_ = oyIN.array(YKHO.__data)\n cf3u.imshow(oyIN.flipud(Ud7_.T), extent=[YKHO.__tstart, YKHO.__tend, YKHO.__xstart, YKHO.__xend], aspect='auto', interpolation='none')\n cf3u.ylabel('x')\n cf3u.xlabel('t')\n cf3u.colorbar(label='U')\n cf3u.show()",
"def Y4Ek(nPrm, vXQH, aWdh, ... | [
"0.81007886",
"0.7403701",
"0.7377287",
"0.7326192",
"0.73058856",
"0.7286336",
"0.72640413",
"0.7253341",
"0.72521657",
"0.7215073",
"0.72111183",
"0.72040653",
"0.72037196",
"0.7183958",
"0.7155193",
"0.71541643",
"0.71494526",
"0.71377265",
"0.7136468",
"0.71358776",
"0.71... | 0.72829413 | 6 |
Returns id of token, or id for if token is unknown. | def NMoC(YKHO, eOtH):
return YKHO.word_to_id.get(eOtH, YKHO.word_to_id[yH2p.OUT_OF_VOCABULARY]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O8dF(YKHO, eOtH):\n if hasattr(eOtH, 'id') and eOtH.id == '(identifier)':\n return eOtH\n elif hasattr(eOtH, 'data') and len(eOtH.data) > 0:\n eOtH = YKHO.getIdentifier(eOtH.data[0])\n return eOtH\n else:\n return None",
"def oFhs(YKHO) -> h8nf[qe4Y.Input[str]]:\n retu... | [
"0.8070696",
"0.80502486",
"0.7882769",
"0.7882769",
"0.7882769",
"0.78544235",
"0.7764423",
"0.77328444",
"0.7727245",
"0.7727245",
"0.7723774",
"0.7723774",
"0.77118874",
"0.7536803",
"0.7534397",
"0.75200313",
"0.7485349",
"0.74231946",
"0.74133795",
"0.7331159",
"0.727606... | 0.6744401 | 40 |
Escape a URL including any /. | def IguF(KCHu):
return uRlK.quote(KCHu.encode('utf-8'), safe='~') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CYkN(bD7m):\n X4T_ = kLJC(bD7m)\n return X4T_._replace(netloc=X4T_.netloc.encode('idna').decode('ascii'), path=Sz4w(X4T_.path), params=Sz4w(X4T_.params), query=Sz4w(X4T_.query), fragment=Sz4w(X4T_.fragment)).geturl()",
"def A5Qt(bD7m, KXjL='/'):\n return ILZP(uRlK.quote(cJ_x(bD7m), cJ_x(KXjL)))",
... | [
"0.75820833",
"0.7284564",
"0.7246915",
"0.72054595",
"0.7123162",
"0.6962088",
"0.6916909",
"0.6916909",
"0.68669903",
"0.6846568",
"0.684164",
"0.6838139",
"0.6811676",
"0.67771345",
"0.67492026",
"0.67492026",
"0.6720022",
"0.67010546",
"0.6656133",
"0.6612842",
"0.6589439... | 0.65353316 | 23 |
v= array, comparing val= the value you want to compare the array to, operator_fx= function from the operator module options= all (returns the indices, nonzero elements, the first nonzero index and last nonzero index), indices (returns nonzero indices) nonzero_elements (returns the nonzero elements of the array), firsti... | def J4eS(Ty9i, y1DC=0, IvtA=khtY.gt, xAU6='all'):
xsM0 = oyIN.array([IvtA(Ty9i, y1DC).nonzero()])
aBuK = Ty9i[(Ty9i > y1DC).nonzero()]
cg5N = xsM0[0, 0]
x2uG = xsM0[0, -1]
if xAU6 == 'all':
return (xsM0, aBuK, cg5N, x2uG)
elif xAU6 == 'indices':
return xsM0
elif xAU6 == 'nonz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fWVK(ezWE):\n PToc = ezWE[..., 0]\n wv7i = ezWE[..., 1]\n D6wR = ezWE[..., 2]\n fSLI = ezWE[..., 3]\n nAw0 = Wf04(PToc, wv7i)\n fT2l = Wf04(PToc, D6wR)\n fzPp = Wf04(wv7i, fSLI)\n RuEh, IMKX = Am19(nAw0)\n rCNq, umXP = Am19(fT2l)\n kIt_, Exjn = Am19(fzPp)\n QyVM = oyIN.argwhere... | [
"0.6146302",
"0.58076495",
"0.57609606",
"0.5577112",
"0.5521186",
"0.5514434",
"0.5514292",
"0.55102223",
"0.55102223",
"0.55082315",
"0.55082315",
"0.54947144",
"0.5493449",
"0.548592",
"0.54672056",
"0.54672056",
"0.5466732",
"0.5466732",
"0.5466589",
"0.54586095",
"0.5453... | 0.74752814 | 0 |
Get an existing RealtimeLogConfig resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'RealtimeLogConfig':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = uSzq.__new__(uSzq)
r6DL.__dict__['arn'] = None
r6DL.__dict__['end_points'] = None
r6DL.__dict__['fields'] = None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'LoggingConfiguration':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = WH5m.__new__(WH5m)\n r6DL.__dict__['arn'] = None\n r6DL.__dict__['destination_configuration'] = None\n r6... | [
"0.6022191",
"0.5699889",
"0.5636826",
"0.5401077",
"0.5220178",
"0.52160275",
"0.51380086",
"0.5092705",
"0.50897485",
"0.5063269",
"0.50552297",
"0.50121754",
"0.5010123",
"0.49608123",
"0.4946302",
"0.48847264",
"0.48694095",
"0.4863411",
"0.48499012",
"0.48033372",
"0.479... | 0.6967641 | 0 |
Sets a new album for the current Song object | def J8nw(YKHO, wphz):
if not isinstance(wphz, str):
raise TypeError('Song.album must be a valid String!')
elif wphz == '':
raise ValueError('Song.album cannot be an empty String!')
else:
YKHO._album = wphz
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yWHF(YKHO, wphz):\n YKHO.albums.append(wphz)",
"def yWHF(YKHO, wphz):\n YKHO.albums.append(wphz)",
"def yWHF(YKHO, wphz):\n YKHO.albums.append(wphz)",
"def U1a6():\n Fg_i = jwfB.objects.get(title='Superstition')\n Fg_i.album_name = 'Belief'\n Fg_i.save()",
"def yWHF(YKHO, wphz):\n ... | [
"0.7077592",
"0.7077592",
"0.69801426",
"0.69771457",
"0.69719046",
"0.69082844",
"0.6895488",
"0.68480355",
"0.68076456",
"0.6789215",
"0.67112064",
"0.66382104",
"0.65987194",
"0.6555162",
"0.65181094",
"0.64502126",
"0.6441157",
"0.643802",
"0.6386717",
"0.63781947",
"0.62... | 0.7322634 | 0 |
Returns the player's last move (an instance of Move). If the player hasn't moved yet this method returns None. | def peIi(YKHO):
return YKHO._guess | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZN_(YKHO):\n if YKHO.last_player_move is None:\n return mVZ4.move(YKHO)\n return YKHO.last_player_move",
"def eMB3(YKHO):\n return YKHO.__last_move",
"def Dvpc(YKHO):\n if YKHO.state_stack_pointer <= 1:\n return None\n YKHO.undo(iBIi)\n BZN_ = YKHO.moves[YKHO.state_stack_po... | [
"0.8128102",
"0.7950124",
"0.73580515",
"0.73492163",
"0.7258025",
"0.7101636",
"0.70934945",
"0.70738935",
"0.693416",
"0.6866292",
"0.6718474",
"0.6717145",
"0.6680724",
"0.6657469",
"0.6626499",
"0.6579338",
"0.657691",
"0.65645653",
"0.64150476",
"0.6387547",
"0.63800555"... | 0.0 | -1 |
Check if is unauthorized. | def XgVz(_hkX):
return _hkX.status_code == 401 or '<ResponseCode>401</ResponseCode>' in _hkX.text | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_WW():\n jvSB.auth.permission.fail()",
"def DLYc(YKHO):\n pass",
"def lPiB(YKHO):\n return True if 'noaccess' in YKHO._message and YKHO._message['noaccess'] == 1 else False",
"def XuA2(YKHO):\n Ylbp = YKHO.client.get(XiK1)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_401_UNAUTHORIZED)",... | [
"0.73822135",
"0.7272658",
"0.709188",
"0.70867753",
"0.7084625",
"0.7041905",
"0.70325553",
"0.70325553",
"0.70325553",
"0.70325553",
"0.70325553",
"0.6986959",
"0.6937172",
"0.69140637",
"0.6859052",
"0.6848513",
"0.68204314",
"0.67827713",
"0.67827713",
"0.67808306",
"0.67... | 0.7703896 | 0 |
Convert value to 1 or 0 string. | def IHxk(KCHu):
if isinstance(KCHu, str):
if KCHu.lower() in ('true', 't', 'yes', 'y', '1'):
return '1'
if KCHu.lower() in ('false', 'f', 'no', 'n', '0'):
return '0'
if isinstance(KCHu, bool):
if KCHu:
return '1'
return '0'
raise ValueError... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYNl(YKHO, BWXx):\n U5bT = BWXx\n if type(BWXx) == bool:\n U5bT = int(BWXx)\n return str(U5bT)",
"def UCZC(YKHO, BWXx):\n if isinstance(BWXx, float):\n return str(BWXx.hex())\n if BWXx is True:\n return 'true'\n elif BWXx is False:\n return 'false'\n else:\n ... | [
"0.7804512",
"0.7533023",
"0.7319425",
"0.7155501",
"0.7152802",
"0.7104847",
"0.70413345",
"0.69771475",
"0.6952319",
"0.6939853",
"0.69308484",
"0.6928032",
"0.6922193",
"0.6917315",
"0.68640625",
"0.68448335",
"0.6806348",
"0.67923766",
"0.6734261",
"0.6715347",
"0.6696259... | 0.7320444 | 2 |
Test we get the authentication error for user flow. | async def test_auth_failure(ajET: HomeAssistant) -> None:
Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': kzTJ.SOURCE_USER})
with Po4F(g0xC, return_value=False):
Aofo = await ajET.config_entries.flow.async_configure(Aofo['flow_id'], HXx1)
await ajET.async_block_till_don... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y8AQ(YKHO):\n geh0 = YKHO.client.post('/api/v1/sign_in/', {}, format='json')\n YKHO.assertEqual('errors' in geh0.data, True)",
"async def test_authorization_error(ajET: HomeAssistant) -> None:\n Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': kzTJ.SOURCE_USER})\n assert ... | [
"0.799835",
"0.779739",
"0.7649354",
"0.7648561",
"0.76461965",
"0.7553522",
"0.7545579",
"0.7538168",
"0.7528597",
"0.7513209",
"0.74997604",
"0.7445575",
"0.74443156",
"0.7438973",
"0.7434846",
"0.74332696",
"0.74157923",
"0.74137336",
"0.73880976",
"0.7369534",
"0.73642564... | 0.7579922 | 5 |
Load Pretrained VGG Model into TensorFlow. | def LbAo(cb_Q, VyBP):
lFgm = 'vgg16'
kvAN = 'image_input:0'
jlSf = 'keep_prob:0'
XYEU = 'layer3_out:0'
Fq6D = 'layer4_out:0'
FI61 = 'layer7_out:0'
ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP)
pNZh = ZylS.get_default_graph()
d6hw = pNZh.get_tensor_by_name(kvAN)
sMyr = pNZh.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LbAo(cb_Q, VyBP):\n lFgm = 'vgg16'\n kvAN = 'image_input:0'\n jlSf = 'keep_prob:0'\n XYEU = 'layer3_out:0'\n Fq6D = 'layer4_out:0'\n FI61 = 'layer7_out:0'\n ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP)\n pNZh = ZylS.get_default_graph()\n input = pNZh.get_tensor_by_name(kvAN)\n ... | [
"0.79139525",
"0.78912765",
"0.7886453",
"0.7886453",
"0.78115135",
"0.77844846",
"0.7764394",
"0.7755438",
"0.7742855",
"0.773247",
"0.77111346",
"0.77089316",
"0.7696031",
"0.76932967",
"0.7681593",
"0.76731616",
"0.7656345",
"0.76261705",
"0.7620557",
"0.7619268",
"0.75994... | 0.7629141 | 17 |
This function calculates intersection over union (iou) given pred boxes and target boxes. | def rP5y(WUKb, sroE, s_HA='midpoint'):
if s_HA == 'midpoint':
M0fz = WUKb[..., 0:1] - WUKb[..., 2:3] / 2
GYTc = WUKb[..., 1:2] - WUKb[..., 3:4] / 2
dXRt = WUKb[..., 0:1] + WUKb[..., 2:3] / 2
ao8u = WUKb[..., 1:2] + WUKb[..., 3:4] / 2
Aazw = sroE[..., 0:1] - sroE[..., 2:3] / 2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rSA3(TdCN, QkTx, s_HA='corners'):\n if s_HA == 'corners':\n M0fz = TdCN[..., 0:1]\n GYTc = TdCN[..., 1:2]\n dXRt = TdCN[..., 2:3]\n ao8u = TdCN[..., 3:4]\n Aazw = QkTx[..., 0:1]\n fNza = QkTx[..., 1:2]\n eacF = QkTx[..., 2:3]\n Mgwz = QkTx[..., 3:4]\n ... | [
"0.7727306",
"0.7560907",
"0.7544283",
"0.7532595",
"0.7266499",
"0.7266499",
"0.725962",
"0.7171587",
"0.71426195",
"0.70032966",
"0.6964633",
"0.69018805",
"0.69018805",
"0.69018805",
"0.69018805",
"0.68867254",
"0.6862187",
"0.6779585",
"0.6778134",
"0.67569506",
"0.673958... | 0.7358694 | 4 |
Checks whether the user is marked active. | def Iw6c(YKHO):
return YKHO.request.user.is_active | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active"... | [
"0.8853091",
"0.8397551",
"0.8397551",
"0.8397551",
"0.8397551",
"0.8330574",
"0.8209756",
"0.8010577",
"0.79321706",
"0.78074425",
"0.7797106",
"0.7774206",
"0.7760958",
"0.7760958",
"0.77575874",
"0.76411504",
"0.7599023",
"0.7599023",
"0.7599023",
"0.75907207",
"0.75907207... | 0.0 | -1 |
Checks whether the user is marked active. | def Iw6c(YKHO):
return YKHO.request.user.is_active | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active"... | [
"0.8853074",
"0.8397651",
"0.8397651",
"0.8397651",
"0.8397651",
"0.83307153",
"0.82097054",
"0.8011039",
"0.7932148",
"0.78069776",
"0.7796656",
"0.7773827",
"0.77604353",
"0.77604353",
"0.77567804",
"0.7640243",
"0.7598364",
"0.7598364",
"0.7598364",
"0.7590212",
"0.7590212... | 0.0 | -1 |
Checks whether the user is marked active. | def Iw6c(YKHO):
return YKHO.request.user.is_active | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active"... | [
"0.8853074",
"0.8397651",
"0.8397651",
"0.8397651",
"0.8397651",
"0.83307153",
"0.82097054",
"0.8011039",
"0.7932148",
"0.78069776",
"0.7796656",
"0.7773827",
"0.77604353",
"0.77604353",
"0.77567804",
"0.7640243",
"0.7598364",
"0.7598364",
"0.7598364",
"0.7590212",
"0.7590212... | 0.0 | -1 |
Checks whether the user is marked active. | def Iw6c(YKHO):
return YKHO.request.user.is_active | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active"... | [
"0.8853091",
"0.8397551",
"0.8397551",
"0.8397551",
"0.8397551",
"0.8330574",
"0.8209756",
"0.8010577",
"0.79321706",
"0.78074425",
"0.7797106",
"0.7774206",
"0.7760958",
"0.7760958",
"0.77575874",
"0.76411504",
"0.7599023",
"0.7599023",
"0.7599023",
"0.75907207",
"0.75907207... | 0.0 | -1 |
Checks whether the user is marked active. | def Iw6c(YKHO):
return YKHO.request.user.is_active | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active"... | [
"0.8853074",
"0.8397651",
"0.8397651",
"0.8397651",
"0.8397651",
"0.83307153",
"0.82097054",
"0.8011039",
"0.7932148",
"0.78069776",
"0.7796656",
"0.7773827",
"0.77604353",
"0.77604353",
"0.77567804",
"0.7640243",
"0.7598364",
"0.7598364",
"0.7598364",
"0.7590212",
"0.7590212... | 0.0 | -1 |
Checks whether the user is marked active. | def Iw6c(YKHO):
return YKHO.request.user.is_active | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active"... | [
"0.8853074",
"0.8397651",
"0.8397651",
"0.8397651",
"0.8397651",
"0.83307153",
"0.82097054",
"0.8011039",
"0.7932148",
"0.78069776",
"0.7796656",
"0.7773827",
"0.77604353",
"0.77604353",
"0.77567804",
"0.7640243",
"0.7598364",
"0.7598364",
"0.7598364",
"0.7590212",
"0.7590212... | 0.0 | -1 |
A method that returns the start date from which models created can be filtered | def Jhv3(YKHO):
kepv = qcWV.date(year=int(YKHO.kwargs['start_year']), month=int(YKHO.kwargs['start_month']), day=int(YKHO.kwargs['start_day']))
return kepv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.__start_date",
"def kepv(YKHO) -> _c1T:\n return YKHO.__start_date",
"def IvRI(... | [
"0.70270765",
"0.70270765",
"0.70270765",
"0.70270765",
"0.6908123",
"0.68913",
"0.67935675",
"0.6695693",
"0.66849995",
"0.66751194",
"0.66751194",
"0.66751194",
"0.66751194",
"0.66751194",
"0.66751194",
"0.66751194",
"0.6650536",
"0.6637794",
"0.66340417",
"0.66258353",
"0.... | 0.5853158 | 75 |
Return a CoverState enum representing the state of the cover. | def ddvQ(YKHO) -> ovfH:
trRF = YKHO.gateway.const.SetReq
m5fb = YKHO._values.get(trRF.V_UP) == _rDc
IDdG = YKHO._values.get(trRF.V_DOWN) == _rDc
tUUi = YKHO._values.get(trRF.V_STOP) == _rDc
Z5kt = 100
if trRF.V_DIMMER in YKHO._values:
Z5kt = YKHO._values[trRF.V_DIMMER]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ddvQ(YKHO, WyWv: str) -> L2qS:\n if YKHO._state_by_endpoint is not None:\n return YKHO._state_by_endpoint[WyWv]\n raise xDmq('Unknown cover')",
"def QTBn(YKHO):\n return wzJH[YKHO._feature.state]",
"def QTBn(YKHO) -> str | None:\n if YKHO.is_opening:\n YKHO._cover_is_last_toggle_d... | [
"0.73764116",
"0.6911251",
"0.6645201",
"0.61895543",
"0.60904115",
"0.6061077",
"0.57809705",
"0.57608235",
"0.57116216",
"0.56675667",
"0.56316394",
"0.5629737",
"0.5561685",
"0.554193",
"0.55308247",
"0.5514351",
"0.55078757",
"0.5494705",
"0.54882544",
"0.5481543",
"0.547... | 0.83058155 | 0 |
Return True if the cover is closed. | def SEEh(YKHO) -> bool:
return YKHO.get_cover_state() == ovfH.CLOSED | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SEEh(YKHO):\n return YKHO.current_cover_position <= 0",
"def SEEh(YKHO):\n if YKHO.current_cover_position is None:\n return None\n if YKHO.current_cover_position > 0:\n return False\n return True",
"def SEEh(YKHO) -> bool | None:\n if YKHO.current_cover_position is None:\n ... | [
"0.8655681",
"0.8526225",
"0.84302115",
"0.82759935",
"0.81465554",
"0.7904331",
"0.76719236",
"0.76507044",
"0.7613981",
"0.75872505",
"0.74475557",
"0.7419236",
"0.73559296",
"0.72717863",
"0.7270229",
"0.72656196",
"0.7251041",
"0.7241857",
"0.7234544",
"0.72240806",
"0.72... | 0.8744027 | 0 |
Return True if the cover is closing. | def xUqi(YKHO) -> bool:
return YKHO.get_cover_state() == ovfH.CLOSING | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SEEh(YKHO) -> bool:\n return YKHO.get_cover_state() == ovfH.CLOSED",
"def SEEh(YKHO):\n return YKHO.current_cover_position <= 0",
"def SEEh(YKHO):\n if YKHO.current_cover_position is None:\n return None\n if YKHO.current_cover_position > 0:\n return False\n return True",
"def... | [
"0.83817667",
"0.82033247",
"0.8045562",
"0.7992589",
"0.7832058",
"0.7819147",
"0.7676296",
"0.76074356",
"0.75614357",
"0.75452113",
"0.75287145",
"0.75136495",
"0.7511568",
"0.74735963",
"0.7471879",
"0.7471879",
"0.74168134",
"0.740985",
"0.73619163",
"0.7352501",
"0.7352... | 0.88457805 | 0 |
Only keeps the region of the image defined by the polygon formed from 'vertices'. The rest of the image is set to black | def mWKt(VXjJ, iXlf):
ZHfW = oyIN.zeros_like(VXjJ)
if len(VXjJ.shape) > 2:
M9nc = VXjJ.shape[2]
K43N = (255,) * M9nc
else:
K43N = 255
XC5k.fillPoly(ZHfW, iXlf, K43N)
lVtf = XC5k.bitwise_and(VXjJ, ZHfW)
return lVtf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKt(VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n XC5k.fillPoly(ZHfW, iXlf, 255)\n lVtf = XC5k.bitwise_and(oyIN.copy(VXjJ), ZHfW)\n return lVtf",
"def mWKt(VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n ... | [
"0.75488234",
"0.7441318",
"0.7438922",
"0.7435651",
"0.7429792",
"0.7428571",
"0.74018645",
"0.7369207",
"0.7365337",
"0.7365337",
"0.7365337",
"0.7365337",
"0.7365337",
"0.7338141",
"0.7333397",
"0.7333397",
"0.7333397",
"0.7333397",
"0.7333397",
"0.7333397",
"0.7333397",
... | 0.7372936 | 7 |
Paint the screen with a background colour, buttons and messages. | def LGJQ(YKHO):
YKHO.screen.fill(sQ7i)
A6b2 = YKHO.device.get_current()
if A6b2:
leAC = YKHO.font20.render(A6b2['title'], True, eJVO)
wphz = YKHO.font12.render(A6b2['album'], True, eJVO)
h5p_ = YKHO.font12.render(A6b2['artist'], True, eJVO)
else:
leAC = YKHO.font20.render... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n YKHO.screen.fill(YKHO.button_color, YKHO.rect)\n YKHO.screen.blit(YKHO.msg_image, YKHO.msg_image_rect)",
"def JmFt(YKHO):\n qZ1a = 100\n Wp5J = YKHO.x + YKHO.width // 2 - qZ1a // 2\n YKHO.draw_background()\n YKHO.draw_timer()\n YKHO.button('Restart', Wp5J, YKHO.y + 50, qZ1a... | [
"0.76188475",
"0.7340675",
"0.7332054",
"0.72892135",
"0.72021896",
"0.71027935",
"0.70916617",
"0.7070206",
"0.70700365",
"0.70484596",
"0.70440584",
"0.7038497",
"0.7035297",
"0.70323396",
"0.7018565",
"0.70003",
"0.6992504",
"0.6974909",
"0.6955971",
"0.6950842",
"0.695078... | 0.0 | -1 |
Filter input image by convolving with a Gaussian kernel. | def apUX(nHI3, WTkW, PcZo=None):
from pathlib import Path
import nibabel as GPal
from scipy.ndimage import apUX
from nipype.utils.filemanip import fname_presuffix
if PcZo is None:
PcZo = fname_presuffix(Path(nHI3).name, suffix='_gauss')
PcZo = str(Path(PcZo).absolute())
VXjJ = GPal.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raZd(YKHO):\n V2fX.gaussian_filter(YKHO.im, sigma=oyIN.random.rand(), output=YKHO.im)",
"def KyYo(LNo8, WTkW=1.0):\n qEJV = int(3 * WTkW)\n qn2n = oyIN.tile(oyIN.arange(-qEJV, qEJV + 1), (2 * qEJV + 1, 1))\n WZcn = oyIN.exp(-(qn2n ** 2 + qn2n.T ** 2) / 2.0 / WTkW ** 2)\n WZcn /= oyIN.sum(WZcn)... | [
"0.75181174",
"0.751372",
"0.74793226",
"0.7415106",
"0.7335872",
"0.7307152",
"0.72845453",
"0.71792495",
"0.71143895",
"0.7084269",
"0.70782346",
"0.70588285",
"0.70431405",
"0.7033261",
"0.7006315",
"0.6991631",
"0.69909793",
"0.6987271",
"0.6973125",
"0.6967192",
"0.69521... | 0.0 | -1 |
Get token embeddings of inputs. | def pOv4(YKHO, Pha6=None, h6bD=None, blF9=None, ThNW=None, Tuqy='embedding', Y9ns=False):
if Tuqy == 'embedding':
return YKHO._embedding(Pha6, h6bD, blF9, ThNW, training=Y9ns)
elif Tuqy == 'linear':
return YKHO._linear(Pha6)
else:
raise ValueError('mode {} is not valid.'.format(Tuqy)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pOv4(YKHO, g4y1):\n hlel = ZylS.gather(YKHO.embeddings, g4y1)\n hlel = ZylS.expand_dims(hlel, axis=0)\n return hlel",
"def nmay(YKHO, eOtH):\n return [tTpl[eOtH] for tTpl in YKHO.embeds]",
"def twi8(YKHO, g4y1, Y9ns=False):\n Pha6, R6Bz = g4y1\n GhuM = ZylS.shape(Pha6)\n q4aw = GhuM[1]... | [
"0.73123044",
"0.7295702",
"0.72865593",
"0.7176885",
"0.7098302",
"0.7077961",
"0.7066751",
"0.70326257",
"0.67943394",
"0.67413896",
"0.67336047",
"0.67323387",
"0.67156655",
"0.663854",
"0.6596978",
"0.65526074",
"0.6550245",
"0.65031403",
"0.65031403",
"0.64785355",
"0.64... | 0.0 | -1 |