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 |
|---|---|---|---|---|---|---|
Integration test for the DiscussionTopicsAPI.get_single_topic_courses method. | def D9h8(YKHO):
S7Jr = None
pqAP = None
Mkmy = YKHO.client.get_single_topic_courses(pqAP, S7Jr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zh1K(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.get_full_topic_courses(pqAP, S7Jr)",
"def oWvc(YKHO):\n S7Jr = None\n Mkmy = YKHO.client.list_discussion_topics_courses(S7Jr, exclude_context_module_locked_topics=None, include=None, only_announcements=None, order_by=None, scope=None... | [
"0.81595004",
"0.7692519",
"0.7598984",
"0.73130697",
"0.7138145",
"0.70979893",
"0.70466477",
"0.69214684",
"0.67485386",
"0.6709567",
"0.67050236",
"0.6659273",
"0.65691006",
"0.654654",
"0.64776987",
"0.64760184",
"0.64063543",
"0.63685286",
"0.63633716",
"0.63421565",
"0.... | 0.9059608 | 0 |
Integration test for the DiscussionTopicsAPI.get_full_topic_courses method. | def Zh1K(YKHO):
S7Jr = None
pqAP = None
Mkmy = YKHO.client.get_full_topic_courses(pqAP, S7Jr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D9h8(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.get_single_topic_courses(pqAP, S7Jr)",
"def oWvc(YKHO):\n S7Jr = None\n Mkmy = YKHO.client.list_discussion_topics_courses(S7Jr, exclude_context_module_locked_topics=None, include=None, only_announcements=None, order_by=None, scope=No... | [
"0.849311",
"0.8047771",
"0.7659494",
"0.7187263",
"0.7168567",
"0.70057434",
"0.6860486",
"0.6717968",
"0.66604745",
"0.66028625",
"0.65819085",
"0.6570425",
"0.642783",
"0.63997245",
"0.6357234",
"0.6349419",
"0.63241094",
"0.6319242",
"0.63122284",
"0.6302673",
"0.6287685"... | 0.9097581 | 0 |
Integration test for the DiscussionTopicsAPI.list_topic_entries_courses method. | def LTUM(YKHO):
S7Jr = None
pqAP = None
Mkmy = YKHO.client.list_topic_entries_courses(pqAP, S7Jr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gD2C(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.list_entries_courses(pqAP, S7Jr, ids=None)",
"def oWvc(YKHO):\n S7Jr = None\n Mkmy = YKHO.client.list_discussion_topics_courses(S7Jr, exclude_context_module_locked_topics=None, include=None, only_announcements=None, order_by=None, sc... | [
"0.8711898",
"0.77148014",
"0.7492011",
"0.7149536",
"0.69947386",
"0.6984957",
"0.6556723",
"0.6468053",
"0.6445097",
"0.63955855",
"0.62576675",
"0.62175673",
"0.6210969",
"0.61720246",
"0.614337",
"0.60539615",
"0.6012576",
"0.60000706",
"0.5904092",
"0.58802265",
"0.58172... | 0.9037239 | 0 |
Integration test for the DiscussionTopicsAPI.list_entries_courses method. | def gD2C(YKHO):
S7Jr = None
pqAP = None
Mkmy = YKHO.client.list_entries_courses(pqAP, S7Jr, ids=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LTUM(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.list_topic_entries_courses(pqAP, S7Jr)",
"def bRDu(YKHO):\n S7Jr = None\n pqAP = None\n QWLk = None\n Mkmy = YKHO.client.list_entry_replies_courses(pqAP, QWLk, S7Jr)",
"def oWvc(YKHO):\n S7Jr = None\n Mkmy = YKHO.client... | [
"0.8688404",
"0.76053154",
"0.7460015",
"0.7127526",
"0.66331327",
"0.6537723",
"0.6466119",
"0.63106817",
"0.630265",
"0.6246864",
"0.6188591",
"0.6148257",
"0.6127998",
"0.6075057",
"0.60614413",
"0.60080343",
"0.5954046",
"0.59236485",
"0.58408",
"0.5834587",
"0.58322257",... | 0.8798643 | 0 |
Integration test for the DiscussionTopicsAPI.mark_topic_as_read_courses method. | def Kcfi(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8lP(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.mark_topic_as_unread_courses(pqAP, S7Jr)",
"def ZcDL(YKHO):\n pass",
"def _Uxr(YKHO):\n pass",
"def jZUm(YKHO):\n S7Jr = None\n pqAP = None\n QWLk = None\n Mkmy = YKHO.client.mark_entry_as_unread_courses(pqAP, QWLk, S... | [
"0.84797263",
"0.74792504",
"0.7370845",
"0.7319496",
"0.7217598",
"0.7170252",
"0.715108",
"0.7043204",
"0.70028114",
"0.6925516",
"0.66840994",
"0.66387165",
"0.66321677",
"0.6576418",
"0.64009094",
"0.63937414",
"0.63631177",
"0.62501085",
"0.6233803",
"0.613962",
"0.60898... | 0.8756173 | 0 |
Integration test for the DiscussionTopicsAPI.mark_topic_as_unread_courses method. | def g8lP(YKHO):
S7Jr = None
pqAP = None
Mkmy = YKHO.client.mark_topic_as_unread_courses(pqAP, S7Jr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jZUm(YKHO):\n S7Jr = None\n pqAP = None\n QWLk = None\n Mkmy = YKHO.client.mark_entry_as_unread_courses(pqAP, QWLk, S7Jr, forced_read_state=None)",
"def yEMd(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.mark_all_entries_as_unread_courses(pqAP, S7Jr, forced_read_state=None)",
... | [
"0.8028983",
"0.798482",
"0.77743226",
"0.7306841",
"0.6823321",
"0.681717",
"0.6652212",
"0.65939283",
"0.65537614",
"0.65511787",
"0.6514427",
"0.6509948",
"0.649078",
"0.6465742",
"0.63828945",
"0.6329785",
"0.6312071",
"0.6273402",
"0.62147015",
"0.6145552",
"0.60995615",... | 0.9242412 | 0 |
Integration test for the DiscussionTopicsAPI.mark_all_entries_as_read_courses method. | def y2CP(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yEMd(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.mark_all_entries_as_unread_courses(pqAP, S7Jr, forced_read_state=None)",
"def jZUm(YKHO):\n S7Jr = None\n pqAP = None\n QWLk = None\n Mkmy = YKHO.client.mark_entry_as_unread_courses(pqAP, QWLk, S7Jr, forced_read_state=None)",
... | [
"0.85600483",
"0.78248924",
"0.7588418",
"0.7548148",
"0.7500224",
"0.7235169",
"0.713777",
"0.6930601",
"0.6849349",
"0.6438172",
"0.6412609",
"0.62521917",
"0.61973155",
"0.61016065",
"0.6056508",
"0.5999073",
"0.59875137",
"0.5982887",
"0.59408444",
"0.59357023",
"0.581803... | 0.8506112 | 1 |
Integration test for the DiscussionTopicsAPI.mark_all_entries_as_unread_courses method. | def yEMd(YKHO):
S7Jr = None
pqAP = None
Mkmy = YKHO.client.mark_all_entries_as_unread_courses(pqAP, S7Jr, forced_read_state=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jZUm(YKHO):\n S7Jr = None\n pqAP = None\n QWLk = None\n Mkmy = YKHO.client.mark_entry_as_unread_courses(pqAP, QWLk, S7Jr, forced_read_state=None)",
"def g8lP(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.mark_topic_as_unread_courses(pqAP, S7Jr)",
"def y2CP(YKHO):\n pass",
... | [
"0.8256725",
"0.80525535",
"0.7584382",
"0.70678365",
"0.6765781",
"0.66685164",
"0.6636249",
"0.6601663",
"0.6549853",
"0.63825047",
"0.63225037",
"0.6306156",
"0.6274371",
"0.6108556",
"0.61019504",
"0.6087966",
"0.5968118",
"0.58681417",
"0.5855319",
"0.5838787",
"0.583203... | 0.9055184 | 0 |
Integration test for the DiscussionTopicsAPI.mark_entry_as_read_courses method. | def ZcDL(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jZUm(YKHO):\n S7Jr = None\n pqAP = None\n QWLk = None\n Mkmy = YKHO.client.mark_entry_as_unread_courses(pqAP, QWLk, S7Jr, forced_read_state=None)",
"def Kcfi(YKHO):\n pass",
"def y2CP(YKHO):\n pass",
"def g8lP(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.mark_topic_a... | [
"0.83578545",
"0.8254802",
"0.7952035",
"0.7842064",
"0.75980824",
"0.679684",
"0.6582543",
"0.6566872",
"0.6525765",
"0.64462495",
"0.64425147",
"0.64041007",
"0.63296753",
"0.6310714",
"0.6240177",
"0.6230842",
"0.6205487",
"0.6161535",
"0.6117921",
"0.6112708",
"0.5960941"... | 0.83545965 | 1 |
Integration test for the DiscussionTopicsAPI.mark_entry_as_unread_courses method. | def jZUm(YKHO):
S7Jr = None
pqAP = None
QWLk = None
Mkmy = YKHO.client.mark_entry_as_unread_courses(pqAP, QWLk, S7Jr, forced_read_state=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8lP(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.mark_topic_as_unread_courses(pqAP, S7Jr)",
"def yEMd(YKHO):\n S7Jr = None\n pqAP = None\n Mkmy = YKHO.client.mark_all_entries_as_unread_courses(pqAP, S7Jr, forced_read_state=None)",
"def Kcfi(YKHO):\n pass",
"def ZcDL(YKHO)... | [
"0.8542525",
"0.8294718",
"0.72794926",
"0.7241869",
"0.7055495",
"0.65690684",
"0.6485424",
"0.6372802",
"0.62973094",
"0.6222935",
"0.62037224",
"0.6199933",
"0.61768305",
"0.61308527",
"0.611844",
"0.61136174",
"0.610751",
"0.60747635",
"0.6014305",
"0.6014045",
"0.5989256... | 0.8960654 | 0 |
Computes the probability density function of the examples X under the multivariate gaussian distribution with parameters mu and Sigma2. If Sigma2 is a matrix, it is treated as the covariance matrix. If Sigma2 is a vector, it is treated as the \sigma^2 values of the variances in each dimension (a diagonal covariance mat... | def _YAk(EcVT, yGTL, UkX0):
G1Hx = len(yGTL)
if UkX0.ndim == 1:
UkX0 = oyIN.diag(UkX0)
EcVT = EcVT - yGTL
XP5J = (2 * oyIN.pi) ** (-G1Hx / 2.0) * oyIN.linalg.det(UkX0) ** (-0.5) * oyIN.exp(-0.5 * oyIN.sum(EcVT.dot(oyIN.linalg.pinv(UkX0)) * EcVT, axis=1))
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _YAk(EcVT, yGTL, tHOa):\n G1Hx = yGTL.shape[0]\n if tHOa.shape[1] == 1 or tHOa.shape[0] == 1:\n tHOa = oyIN.diag(tHOa[:, 0])\n EcVT = (EcVT - yGTL.T).copy()\n XP5J = (2 * oyIN.pi) ** (-G1Hx / 2) * oyIN.linalg.det(tHOa) ** (-0.5)\n XP5J = XP5J * oyIN.exp(-0.5 * (EcVT.dot(oyIN.linalg.pinv(t... | [
"0.82991713",
"0.710045",
"0.67407614",
"0.66310567",
"0.6471967",
"0.645041",
"0.6364048",
"0.63447404",
"0.6319687",
"0.6266993",
"0.6264822",
"0.62624025",
"0.62510884",
"0.62360764",
"0.6222403",
"0.62121284",
"0.61792594",
"0.6119142",
"0.61120737",
"0.6104805",
"0.60850... | 0.7970556 | 1 |
Hash a plaintext string using PBKDF2. This is good enough according to the NIST (National Institute of Standards and Technology). In other words while bcrypt might be superior in practice, if you use PBKDF2 properly (which we are), then your passwords are safe. | def TDEB(Emd4, uxvb):
if uxvb:
return vT87(uxvb)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sM10(jTXt):\n return hash(jTXt)",
"def qzFd(YKHO, jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n mNdd = HBct.pbkdf2_hmac('sha256', jTXt.encode('utf-8'), NTfD, 100000)\n mNdd = MRxC.hexlify(mNdd)\n return (NTfD + mNdd).decode('ascii')",
"def GPjS(YKHO, jTXt):\n ... | [
"0.70155036",
"0.69982934",
"0.68606645",
"0.6840191",
"0.6838096",
"0.6836684",
"0.6814522",
"0.6791693",
"0.67773384",
"0.67679286",
"0.6760161",
"0.6748342",
"0.67142636",
"0.6702792",
"0.6702792",
"0.6702792",
"0.6696023",
"0.66926724",
"0.6692187",
"0.66517323",
"0.66433... | 0.0 | -1 |
Obtiene el nombre del tipo de producto, de la lista de productos de la clase Product. | def v1hD() -> str:
return msfn.ListProducts.DRINK.label | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v1hD() -> str:\n return msfn.ListProducts.COMBO.label",
"def quJO(YKHO):\n return YKHO.__class__.__name__",
"def quJO(YKHO):\n return YKHO.__class__.__name__",
"def quJO(YKHO):\n pass",
"def quJO(YKHO) -> str:\n return i5PV(YKHO._get_property(TFPl, str), YKHO, TFPl)",
"def nxgV(YKHO):\... | [
"0.7703635",
"0.7259657",
"0.72455573",
"0.71520764",
"0.67347634",
"0.6275624",
"0.6246975",
"0.6060544",
"0.6046281",
"0.5990568",
"0.597309",
"0.59283996",
"0.58424395",
"0.5812135",
"0.5790578",
"0.57759064",
"0.5707198",
"0.5685941",
"0.56742114",
"0.56650776",
"0.563559... | 0.72087884 | 3 |
Obtiene el nombre del tipo de producto, de la lista de productos de la clase Product. | def v1hD() -> str:
return msfn.ListProducts.COMBO.label | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quJO(YKHO):\n return YKHO.__class__.__name__",
"def quJO(YKHO):\n return YKHO.__class__.__name__",
"def v1hD() -> str:\n return msfn.ListProducts.DRINK.label",
"def quJO(YKHO):\n pass",
"def quJO(YKHO) -> str:\n return i5PV(YKHO._get_property(TFPl, str), YKHO, TFPl)",
"def nxgV(YKHO):\... | [
"0.7259657",
"0.72455573",
"0.72087884",
"0.71520764",
"0.67347634",
"0.6275624",
"0.6246975",
"0.6060544",
"0.6046281",
"0.5990568",
"0.597309",
"0.59283996",
"0.58424395",
"0.5812135",
"0.5790578",
"0.57759064",
"0.5707198",
"0.5685941",
"0.56742114",
"0.56650776",
"0.56355... | 0.7703635 | 0 |
Test setup of climate entity. | async def test_climate_device(ajET: HomeAssistant, Qzs4):
wMDS = D4AW.async_get(ajET)
bTKY = wMDS.async_get('climate.nefit')
assert bTKY
heKV = ajET.states.get('climate.nefit')
assert heKV
assert heKV.state == gDI4
assert heKV.attributes[PVRp] == 'Clock'
assert heKV.attributes[fJ9T] == 2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.my_city = cKBo()",
"def FCbF(YKHO):\n YKHO.hass = WRq0()\n YKHO.key = 'foo'\n YKHO.lat = YKHO.hass.config.latitude = 37.8267\n YKHO.lon = YKHO.hass.config.longitude = -122.423\n YKHO.entities = []\n YKHO.addCleanup(YKHO.tear_down_cleanup)",
"def as4H(YKHO, XpzV):\n ... | [
"0.6801981",
"0.6722138",
"0.6624104",
"0.6445561",
"0.64424753",
"0.6382145",
"0.63657916",
"0.63597894",
"0.63581264",
"0.6344738",
"0.63288194",
"0.6327991",
"0.6327874",
"0.63244987",
"0.63174534",
"0.6313084",
"0.6304715",
"0.6304715",
"0.6304715",
"0.6304715",
"0.630471... | 0.0 | -1 |
Returns a list of legal moves for given player for this board state | def dgbU(YKHO, oyg0):
g5J1 = []
if YKHO._phase == EkrY.SETUP:
return YKHO._setup_legal_moves(oyg0)
elif YKHO._phase == EkrY.MOVE:
return YKHO._move_legal_moves(oyg0)
elif YKHO._phase == EkrY.BUILD:
return YKHO._build_legal_moves(oyg0)
return g5J1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HMeC(oyg0, iBIi):\n return [MuIv for MuIv in VlLD.squares() if VlLD.is_legal(MuIv, oyg0, iBIi)]",
"def r5wO(YKHO, iBIi, oyg0):\n Aofo = []\n for WcFg in range(8):\n for N5og in range(8):\n for wio1 in range(8):\n for OCh8 in range(8):\n if YKHO.is_... | [
"0.8106928",
"0.80186784",
"0.7726833",
"0.77174383",
"0.76549083",
"0.7651044",
"0.76078165",
"0.7506762",
"0.7479256",
"0.74748063",
"0.7456715",
"0.74477845",
"0.74129575",
"0.7395929",
"0.7357694",
"0.7300387",
"0.72360456",
"0.7165167",
"0.7134126",
"0.7074318",
"0.69609... | 0.8113886 | 0 |
Convert a dictionary description into a string description. | def P6G1(YKHO, znnC):
l9Ur = ''
for H5ew, BWXx in znnC:
l9Ur += '{}{}'.format(H5ew, BWXx)
return l9Ur | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_Cu(YKHO, cmPJ):\n aevO = ''\n for YRbF in range(len(cmPJ)):\n aevO = aevO + cmPJ[YRbF]\n return aevO",
"def oDPF(Csk6: dict) -> str:\n return str({str(P6bq): str(Ty9i) for P6bq, Ty9i in Csk6.items()})",
"def kjxD(Csk6):\n yxzR = xDSY.StringIO()\n KFPx(Csk6, output=yxzR)\n retu... | [
"0.72995955",
"0.71300334",
"0.6915584",
"0.68222785",
"0.65633756",
"0.65453",
"0.6486446",
"0.64831805",
"0.6467014",
"0.6361345",
"0.6260924",
"0.6232177",
"0.62230504",
"0.6210709",
"0.62034166",
"0.6191931",
"0.6183075",
"0.6173892",
"0.6167152",
"0.6162377",
"0.6123867"... | 0.0 | -1 |
Check that a field is valid for a root field. For operations, the fields arguments should be fields of root GraphQL types (Query, Mutation or Subscription) and correspond to the operation_type of this operation. | def vqcu(YKHO, Jyyj: 'DSLSelectable') -> bool:
assert isinstance(YKHO, AJ8s)
hTqE = YKHO.operation_type.name
if isinstance(Jyyj, bIfJ):
if Jyyj.name in ['__schema', '__type']:
return hTqE == 'QUERY'
if Jyyj.name == '__typename':
return hTqE != 'SUBSCRIPTION'
elif ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SSga(YKHO, J_Es):\n V_D6 = list(J_Es.keys())\n for G1Hx in YKHO.fields:\n assert G1Hx in V_D6",
"def vqcu(YKHO, Jyyj: DSLSelectable) -> bool:\n assert isinstance(YKHO, HDb4)\n if isinstance(Jyyj, (mNDB, byUg)):\n return True\n assert isinstance(Jyyj, HDb4)\n if isinstance(Jyyj... | [
"0.6356207",
"0.595336",
"0.58063596",
"0.5802096",
"0.5688165",
"0.5641144",
"0.5518633",
"0.547225",
"0.54365087",
"0.5412824",
"0.53349394",
"0.53085905",
"0.52445227",
"0.5230487",
"0.5203682",
"0.5185473",
"0.51495177",
"0.513861",
"0.5135999",
"0.5110452",
"0.51019615",... | 0.65455306 | 0 |
Initialize the DSLType with the GraphQL type. | def FIMM(YKHO, KS_S: Union[GraphQLObjectType, GraphQLInterfaceType], bzOu: DSLSchema):
YKHO._type: uLKX[CNXO, C3x2] = KS_S
YKHO._dsl_schema = bzOu
RKD7.debug(f'Creating {YKHO!r})') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, uPxI: GraphQLSchema):\n if not isinstance(uPxI, Shlj):\n raise TypeError(f'DSLSchema needs a schema as parameter. Received: {type(uPxI)}')\n YKHO._schema: Shlj = uPxI",
"def FIMM(YKHO, t6xq: Dict):\n YKHO.kind = t6xq.get('kind')\n YKHO.name = t6xq.get('name')\n YKHO.descripti... | [
"0.6431991",
"0.61159176",
"0.5808697",
"0.57958376",
"0.57958376",
"0.5740455",
"0.5583517",
"0.553028",
"0.5508032",
"0.5496482",
"0.54931897",
"0.5481096",
"0.5452243",
"0.53910226",
"0.5324876",
"0.5284298",
"0.5231655",
"0.52189404",
"0.5208012",
"0.5193446",
"0.5184315"... | 0.75354 | 0 |
Remove redundant whitespace from a string. | def ccMH(l5Ny):
l5Ny = l5Ny.replace('"', '').replace("'", '')
return ' '.join(l5Ny.split()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yczo(KCHu):\n return ZbWC.sub('\\\\s+', ' ', KCHu.strip())",
"def Yczo(YKHO, vIwR):\n return ZbWC.sub('\\\\s+', ' ', vIwR).strip()",
"def EQOQ(vIwR):\n return vIwR.replace(' ', '')",
"def QZsa(NPoT):\n return ZbWC.sub('\\\\s+', ' ', NPoT).strip()",
"def YF9t(vIwR):\n vIwR = ZbWC.sub('(?m... | [
"0.81597906",
"0.8144986",
"0.80256945",
"0.79367214",
"0.78921837",
"0.7813043",
"0.77286696",
"0.7663373",
"0.76455605",
"0.74935627",
"0.74935627",
"0.7441288",
"0.7405228",
"0.74015",
"0.7362462",
"0.7356386",
"0.7338979",
"0.7296107",
"0.7291078",
"0.72806317",
"0.724966... | 0.0 | -1 |
Returns a psudo random string of lenght n. | def ikbr(exwG):
import os
import math
from base64 import b64encode
return b64encode(os.urandom(int(math.ceil(0.75 * exwG))), '-_')[:exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j9F_(exwG):\n k6Di = vIwR.digits + vIwR.letters\n return ''.join((tuKI.choice(k6Di) for YRbF in Ni9Y(exwG)))",
"def e7Tf(ywwl):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(ywwl)))",
"def hcjz(exwG):\n return ''.join((tuKI.choice(vIwR.ascii_letters) for bG... | [
"0.8135958",
"0.81020355",
"0.8056466",
"0.79031897",
"0.78109026",
"0.77648187",
"0.7722502",
"0.76222193",
"0.7566458",
"0.75120693",
"0.7486509",
"0.74702466",
"0.7469825",
"0.74648756",
"0.74576503",
"0.743425",
"0.7428508",
"0.7426203",
"0.74185514",
"0.741022",
"0.73827... | 0.7602529 | 8 |
Initialise 'Ball' object as subclass of 'Turtle' object | def FIMM(YKHO, oeNL=(0, 0)):
super().__init__()
YKHO.penup()
YKHO.shapesize(stretch_wid=1, stretch_len=1)
YKHO.color('white')
YKHO.shape('circle')
YKHO.setpos(oeNL)
YKHO.x_dir = 1
YKHO.y_dir = 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n super(mEGe, YKHO).__init__(*qIxc, **B2fa)\n YKHO.speed = B2fa.get('speed', 5)\n YKHO.ball_image = _y2g.image.load(Hy7s.path.join(GPtr.ASSETS_DIR, 'ball.png'))\n YKHO.width = YKHO.ball_image.width\n YKHO.height = YKHO.ball_image.height\n YKHO.ball_sprite = _y2g.spr... | [
"0.69437927",
"0.68377686",
"0.68367285",
"0.68143",
"0.62883264",
"0.6229259",
"0.62049294",
"0.618896",
"0.617339",
"0.6171533",
"0.61532545",
"0.6134507",
"0.6048627",
"0.6006973",
"0.59645",
"0.5958097",
"0.5938208",
"0.5937411",
"0.59171826",
"0.58550733",
"0.5844965",
... | 0.7152998 | 0 |
Returns val of f(3, b, R) % (2 15) | def IxvY(Fg_i, A3Vt):
OpKk = pow(A3Vt + 1, Fg_i, aUS7) * (A3Vt * A3Vt + 3 * A3Vt + 1)
itg4 = 0
for bGrB in range(Fg_i):
itg4 = ((A3Vt + 1) * itg4 + 1) % aUS7
itg4 *= 2 * A3Vt + 1
return (OpKk + itg4) % aUS7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Apdp(A3Vt):\n return IxvY(IxvY(A3Vt, A3Vt), A3Vt) % aUS7",
"def ez0h(Z9rn):\n kc6Y = IzHd(*Z9rn)\n return kc6Y",
"def h6R_(eHNT, jzdc, Fg_i, exwG=20):\n A3Vt = [[0.5 * (Fg_i - jzdc) * (eHNT(jzdc) + eHNT(Fg_i))]]\n for exwG in range(1, exwG + 1):\n MKlR = float(Fg_i - jzdc) / 2 ** exwG... | [
"0.7662301",
"0.65716714",
"0.6403492",
"0.6383141",
"0.634109",
"0.62951726",
"0.6269045",
"0.62373114",
"0.6217888",
"0.61755997",
"0.6151459",
"0.6144782",
"0.6144782",
"0.6114495",
"0.6113371",
"0.6082682",
"0.60682577",
"0.60436654",
"0.6031693",
"0.5956826",
"0.59420836... | 0.806427 | 0 |
Get real path relative to project root dir. | def GHAV(YKHO, PdLT):
pmON = YKHO.fix_dir_separator(PdLT)
pmON = Hy7s.path.expanduser(pmON)
return Hy7s.path.join(YKHO.config['work_dir'], pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EL0N():\n qaEx = Hy7s.path.abspath(xAKo)\n jNha = Hy7s.path.join(Hy7s.path.dirname(qaEx), '..')\n return Hy7s.path.abspath(jNha)",
"def L59w() -> GkAb:\n return lkbE",
"def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent",
"def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent",
"de... | [
"0.8313039",
"0.8095335",
"0.8050155",
"0.8050155",
"0.8050155",
"0.8050155",
"0.8028386",
"0.8028386",
"0.80270785",
"0.79882187",
"0.7959134",
"0.79108584",
"0.79021835",
"0.78731334",
"0.78135735",
"0.77643764",
"0.7722912",
"0.7720147",
"0.76961726",
"0.76672226",
"0.7658... | 0.0 | -1 |
Get a random element from the set. | def UIrZ(YKHO) -> int:
from random import choice
return choice(YKHO.list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UIrZ(YKHO):\n return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]",
"def UIrZ(YKHO):\n exwG = len(YKHO.keys)\n while exwG > 0:\n d6pt = tuKI.randint(0, exwG - 1)\n Ufrw = YKHO.keys[d6pt]\n if Ufrw in YKHO.ds:\n return Ufrw\n else:\n YKHO.keys[d6pt]... | [
"0.7703242",
"0.73851275",
"0.72931343",
"0.7218611",
"0.6870737",
"0.68438596",
"0.6831954",
"0.6775109",
"0.67205936",
"0.6701239",
"0.66633993",
"0.6633367",
"0.66202724",
"0.66111916",
"0.6597498",
"0.6564292",
"0.64615905",
"0.64409477",
"0.64128685",
"0.63991153",
"0.63... | 0.6475166 | 16 |
Gets the planned of this DutyWhen. | def zicv(YKHO):
return YKHO._planned | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zicv(YKHO, zicv):\n YKHO._planned = zicv",
"def iKVz(YKHO):\n return YKHO._scheduled_plan",
"def cRQg(YKHO) -> h8nf[float]:\n for aj9W in YKHO.precipitation_from_now:\n return aj9W.value\n return None",
"def LTff(YKHO):\n return YKHO._planned_termination_date",
"def R0hV(YKHO):\n ... | [
"0.5889865",
"0.58095217",
"0.5580369",
"0.5358955",
"0.53575295",
"0.53575295",
"0.5218377",
"0.51932245",
"0.51553196",
"0.51298493",
"0.511351",
"0.5085398",
"0.5085398",
"0.50519526",
"0.5033431",
"0.5027954",
"0.50092185",
"0.49888262",
"0.49586284",
"0.49165368",
"0.491... | 0.7580546 | 0 |
Sets the planned of this DutyWhen. | def zicv(YKHO, zicv):
YKHO._planned = zicv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aTMH(YKHO, aTMH):\n YKHO._planned_purge_date = aTMH",
"def aTMH(YKHO, aTMH):\n YKHO._planned_purge_date = aTMH",
"def LTff(YKHO, LTff):\n YKHO._planned_termination_date = LTff",
"def zicv(YKHO):\n return YKHO._planned",
"def iKVz(YKHO, iKVz):\n YKHO._scheduled_plan = iKVz",
"def drdV(Y... | [
"0.5820681",
"0.5820681",
"0.5820304",
"0.5806155",
"0.5530222",
"0.5222441",
"0.5126386",
"0.49399158",
"0.4876175",
"0.48492387",
"0.48042274",
"0.47785053",
"0.47643608",
"0.47625494",
"0.47235534",
"0.47124302",
"0.4707486",
"0.4705979",
"0.46918368",
"0.46284556",
"0.458... | 0.7941171 | 0 |
Gets the actual of this DutyWhen. | def n5sN(YKHO):
return YKHO._actual | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l3Bh(YKHO):\n return YKHO.__actualValue",
"def NMoC(YKHO):\n wzkt = qcWV.datetime.utcnow()\n if wzkt > YKHO.time_of_next_update:\n YKHO._update_value()\n return YKHO.value",
"def ZpyY(YKHO):\n wzkt = qcWV.datetime.utcnow()\n return wzkt - YKHO.creation_time",
"def JRYC(YKHO):\n ... | [
"0.6535892",
"0.6232577",
"0.59493977",
"0.5922169",
"0.58857054",
"0.58587486",
"0.57750434",
"0.57476115",
"0.573744",
"0.56969386",
"0.5685835",
"0.5685353",
"0.56464565",
"0.5630309",
"0.5628153",
"0.56225216",
"0.559612",
"0.5590993",
"0.55838543",
"0.55783683",
"0.55709... | 0.68847036 | 0 |
Sets the actual of this DutyWhen. | def n5sN(YKHO, n5sN):
YKHO._actual = n5sN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UwNj(YKHO, UwNj):\n YKHO._actual_reported_desc = UwNj",
"async def set_duty(YKHO, zr_h: int, DHvX: bool=False) -> None:\n assert 0 <= zr_h <= 100\n if not DHvX and zr_h == YKHO._last_duty:\n bo34.debug('[%s] %sDuty is already at %d', YKHO.name, '(dry-run) ' if YKHO.dry_run else '', zr_h)\n ... | [
"0.5459379",
"0.5418262",
"0.538786",
"0.53128433",
"0.5309682",
"0.53036124",
"0.52766037",
"0.5232243",
"0.512582",
"0.50941354",
"0.5065637",
"0.5045214",
"0.5041858",
"0.50392294",
"0.49751788",
"0.49705547",
"0.4969758",
"0.4961411",
"0.49601275",
"0.49380302",
"0.489282... | 0.71314955 | 1 |
Gets the shift_type of this DutyWhen. Night, Day, etc | def gXeM(YKHO):
return YKHO._shift_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zwpN(YKHO):\n return YKHO._schedule_type",
"def gXeM(YKHO, gXeM):\n YKHO._shift_type = gXeM",
"def FRul(YKHO):\n return YKHO.event_type",
"def IYXO(YKHO):\n return YKHO._weather_type",
"def MyiI(YKHO) -> str:\n return YKHO.power_type",
"def D2UN(YKHO):\n return YKHO._CashierShift",
... | [
"0.6029102",
"0.5720019",
"0.57115793",
"0.56324524",
"0.5534602",
"0.54518294",
"0.5426972",
"0.53180003",
"0.525643",
"0.5256416",
"0.52439976",
"0.5235749",
"0.52118474",
"0.52056783",
"0.5097",
"0.5097",
"0.5092173",
"0.5089316",
"0.5089316",
"0.50772345",
"0.50545603",
... | 0.71291775 | 0 |
Returns the Path to the XMLResources folder. | def E0XI(YKHO):
return YKHO.__folder | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def qU5e(Emd4) -> str:\n return Hy7s.path.join(Hy7s.path.realpath(Hy7s.path.dirname(xAKo)), Hy7s.pardir, Hy7s.pardir, Hy7s.pardir, 'gem5', 'resources')",
"def pjeI(YKHO):\n return YKHO.__xml_path",
"def xtX7... | [
"0.7487251",
"0.7481995",
"0.73212004",
"0.714729",
"0.69379973",
"0.68889636",
"0.67238545",
"0.66834676",
"0.6566716",
"0.65666693",
"0.64880276",
"0.6471511",
"0.6465292",
"0.6425344",
"0.6405657",
"0.63518333",
"0.6334732",
"0.63217753",
"0.6304032",
"0.62696975",
"0.6269... | 0.6434908 | 13 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
XSj5 = getattr(HwRy, '_MEIPASS', Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.83703053",
"0.8280665",
"0.8248955",
"0.8139455",
"0.81142074",
"0.8098781",
"0.80942494",
"0.80799556",
"0.8067926",
"0.80675894",
"0.80627203",
"0.80627203",
"0.80627203",
"0.80627203",
"0.80627203",
"0.80627203",
"0.80627203",
"0.80571795",
"0.8054659",
"0.8045055",
"0.... | 0.7816395 | 52 |
Create a Flask app from the configured instance | def LUif(YKHO):
P4t4 = L2w0(__name__)
P4t4.config['auth_func'] = YKHO.auth_func
P4t4.config['hydrator_func'] = YKHO.hydrator_func
P4t4.config['request_hydrator_func'] = YKHO.request_hydrator_func
P4t4.config['database_uri'] = YKHO.database_uri
P4t4.config['hmac_secret'] = YKHO.hmac_secret
QZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4():\n P4t4 = LUif()\n return P4t4",
"def P4t4():\n return LUif()",
"def LUif():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object('app.configs.config')\n P4t4.config.from_object('app.configs.settings')\n return P4t4",
"def LUif(GPtr):\n P4t4 = L2w0(__name__)\n _fuv = dict([... | [
"0.84124756",
"0.8374379",
"0.8316893",
"0.8181684",
"0.8147052",
"0.8143248",
"0.81384313",
"0.81232053",
"0.80776966",
"0.8063406",
"0.8059791",
"0.80469334",
"0.80322665",
"0.80181986",
"0.80166453",
"0.8016637",
"0.80130905",
"0.8007616",
"0.797332",
"0.79724306",
"0.7968... | 0.7456587 | 93 |
Linearly transforms a worldframe vector into walker's egocentric frame. Note that this function does not perform an affine transformation of the vector. In other words, the input vector is assumed to be specified with respect to the same origin as this walker's egocentric frame. This function can also be applied to mat... | def bZgl(YKHO, gdyb, gvRj):
gvRj = oyIN.asarray(gvRj)
lOQ5 = oyIN.reshape(gdyb.bind(YKHO.root_body).xmat, (3, 3))
if gvRj.shape[-1] == 2:
return oyIN.dot(gvRj, lOQ5[:2, :2])
elif gvRj.shape[-1] == 3:
return oyIN.dot(gvRj, lOQ5)
else:
raise ValueError('`vec_in_world_frame` sho... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hBUG(YKHO, iArr):\n SppC = gcpQ.translationMatrix(*iArr)\n for Lej9 in YKHO.wireframes.values():\n Lej9.transform(SppC)",
"def a9yT(C3ap, iArr):\n iArr = oyIN.append(iArr, 0)\n Zg34 = OspE(C3ap)\n UDvL = xJNR(C3ap, xJNR(iArr, Zg34))\n return UDvL[:3]",
"def lMSi(YKHO, iArr):\n V... | [
"0.5760716",
"0.57301503",
"0.55941814",
"0.5522612",
"0.55047274",
"0.52455044",
"0.5173822",
"0.5170467",
"0.51543146",
"0.50848025",
"0.50778526",
"0.5053133",
"0.49891606",
"0.49164003",
"0.4906255",
"0.4901422",
"0.48983097",
"0.489521",
"0.48736635",
"0.48316976",
"0.48... | 0.7553541 | 0 |
The world's zvector in this Walker's torso frame. | def BigO(YKHO):
return uYWe.MJCFFeature('xmat', YKHO._entity.root_body)[6:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def epBp(YKHO):\n return YKHO.position.z",
"def Bfis(YKHO):\n return YKHO.posvel.getZ()",
"def A3HW(YKHO):\n return YKHO.coords[2]",
"def epBp(YKHO):\n return YKHO.coords[2]",
"def epBp(YKHO):\n return YKHO._coords[2]",
"def yujY(YKHO):\n return YKHO.coords.z",
"def atds(YKHO):\n r... | [
"0.7276288",
"0.72531605",
"0.72372526",
"0.7229726",
"0.7179669",
"0.7166061",
"0.7129036",
"0.69708365",
"0.6947133",
"0.6865385",
"0.6828666",
"0.6809708",
"0.6809708",
"0.6809708",
"0.6685378",
"0.6607886",
"0.65415907",
"0.6501922",
"0.6494525",
"0.64669776",
"0.6447056"... | 0.7173227 | 5 |
get the reference primal bound for this instance | def nzYL(YKHO, TMbz: str) -> float:
aC0l = YKHO.referencedict.get(TMbz, (None, None))
if YKHO.isUnkn(aC0l) or YKHO.isInf(aC0l) or YKHO.isFeas(aC0l):
return None
else:
return aC0l[YKHO.__primalidx__] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _SlG(YKHO):\n return YKHO._lower_bound",
"def _SlG(YKHO):\n return YKHO._lower_bound",
"def gLHL(YKHO):\n return YKHO._upper_bound",
"def IDsK(YKHO) -> float:\n ...",
"def Op4V(YKHO):\n if oyIN.all(oyIN.isnan(YKHO.par)):\n print('Run params() before')\n return\n if hasat... | [
"0.68506634",
"0.68506634",
"0.6626328",
"0.64435357",
"0.62474287",
"0.61056566",
"0.6103773",
"0.6017692",
"0.5874583",
"0.58675593",
"0.58498615",
"0.57486856",
"0.56695074",
"0.5652659",
"0.563817",
"0.5631898",
"0.5628739",
"0.56128496",
"0.5560667",
"0.55418456",
"0.553... | 0.5608498 | 18 |
get the reference primal bound for this instance | def Ssxz(YKHO, TMbz: str) -> float:
aC0l = YKHO.referencedict.get(TMbz, (None, None))
if YKHO.isUnkn(aC0l) or YKHO.isInf(aC0l) or YKHO.isFeas(aC0l):
return None
else:
return aC0l[YKHO.__dualidx__] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _SlG(YKHO):\n return YKHO._lower_bound",
"def _SlG(YKHO):\n return YKHO._lower_bound",
"def gLHL(YKHO):\n return YKHO._upper_bound",
"def IDsK(YKHO) -> float:\n ...",
"def Op4V(YKHO):\n if oyIN.all(oyIN.isnan(YKHO.par)):\n print('Run params() before')\n return\n if hasat... | [
"0.68506634",
"0.68506634",
"0.6626328",
"0.64435357",
"0.62474287",
"0.61056566",
"0.6103773",
"0.6017692",
"0.5874583",
"0.58675593",
"0.58498615",
"0.57486856",
"0.56695074",
"0.5652659",
"0.563817",
"0.5631898",
"0.5628739",
"0.56128496",
"0.5608498",
"0.5560667",
"0.5541... | 0.5217262 | 83 |
Return an opened file to read, or sys.stdin if filepath is None. Raises an OSError if filepath is nonNone but doesn't exist. | def fAai(VqRE):
if VqRE is None:
return HwRy.stdin
else:
if not Hy7s.path.exists(VqRE):
raise OSError('File does not exist: {}'.format(VqRE))
return open(VqRE, 'r') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MeOj(iwdW):\n if not iwdW or iwdW == '-':\n return HwRy.stdin\n else:\n return open(iwdW, 'r')",
"def Ki2L(Ux0P='default.txt', VqRE='default_path'):\n if VqRE == 'default_path':\n VqRE = ''\n try:\n ytgA = open(VqRE + Ux0P, 'r+')\n return ytgA\n except IOErro... | [
"0.7320987",
"0.6783902",
"0.6772613",
"0.6754688",
"0.6565494",
"0.64450634",
"0.6425217",
"0.6257662",
"0.6083197",
"0.6036446",
"0.59137225",
"0.5900512",
"0.589459",
"0.585727",
"0.5826796",
"0.5817996",
"0.57280827",
"0.5711713",
"0.5632567",
"0.5630372",
"0.5619179",
... | 0.834832 | 0 |
Returns mid (or p) coordinates of given two coordinates c1 and c2. | def UTG7(XP5J, dg7v, iYf1):
return Vqh_(pos=lKXT(XP5J, dg7v.worldpos(), iYf1.worldpos()), rot=FJOd(XP5J, dg7v.worldrot(), iYf1.worldrot())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UK8I(X3qZ, ZYCo):\n (nJ9F, nxyw), (o4D3, si3g) = (X3qZ, ZYCo)\n return (0.5 * (nJ9F + o4D3), 0.5 * (nxyw + si3g))",
"def bUz9(EBgd, HpuQ):\n WKvO = int((EBgd.x + HpuQ.x) / 2)\n LVAh = int((EBgd.y + HpuQ.y) / 2)\n return (WKvO, LVAh)",
"def yVCH(YKHO, gpRq, dg7v, E43s, iYf1):\n WKvO = (iYf... | [
"0.7823058",
"0.74225706",
"0.74220765",
"0.7374923",
"0.73042697",
"0.72671145",
"0.7263712",
"0.72246087",
"0.7097989",
"0.706812",
"0.7004969",
"0.6769184",
"0.6725844",
"0.6702754",
"0.6527052",
"0.64762515",
"0.64420694",
"0.6297795",
"0.6200092",
"0.6166417",
"0.6097244... | 0.859501 | 0 |
Orient axis to the direction Orient axis in target_coords to the direction specified by v. | def uN7T(AXTs, Ty9i, jDK_='z', SGf8=0.005):
Ty9i = oyIN.array(Ty9i, 'f')
if oyIN.linalg.norm(Ty9i) == 0.0:
Ty9i = oyIN.array([0, 0, 1], 'f')
rkoI = u1KP(Ty9i)
jDK_ = ROs3(jDK_)
aNZO = AXTs.rotate_vector(jDK_)
AvVN = oyIN.cross(aNZO, rkoI)
pwgO = oyIN.clip(oyIN.dot(rkoI, aNZO), -1.0, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mjgr(HMCV, pan_):\n Hn0v = pan_.translateX.get() < 0\n PPHi = {False: (1, 0, 0), True: (-1, 0, 0)}\n yGA_(HMCV, pan_.getTranslation(ws=True), aim_axis=PPHi[Hn0v], world_up=HMCV.getMatrix(ws=True)[1][:3])",
"def SADY(YKHO, vqrk):\n return SADY(YKHO.tonp(), vqrk.tonp())",
"def fWWE(Ty9i):\n re... | [
"0.6794328",
"0.5677264",
"0.5652536",
"0.56377286",
"0.55048573",
"0.5458771",
"0.540039",
"0.5387523",
"0.5377008",
"0.5367707",
"0.5323419",
"0.53034467",
"0.52786803",
"0.5269253",
"0.5230898",
"0.5228839",
"0.521811",
"0.52100116",
"0.51731056",
"0.51682615",
"0.5161305"... | 0.75997716 | 0 |
Simplified sum when all coefficients are 1. | def pAVt(vC9B, G1Hx):
o4sw = sum((rHGW(G1Hx, epBp) * (2 * epBp - G1Hx) ** vC9B for epBp in range(G1Hx + 1)))
return o4sw / 2 ** G1Hx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAig(YKHO):\n t0qN = LFq_(0.85)\n Aofo = t0qN.process(YKHO.cube, YKHO.coord_name)\n YKHO.assertAlmostEqual(Aofo.data.sum(), 1.0)",
"def sum(YKHO):\n return oyIN.dot(YKHO.data.T, YKHO.weights)",
"def T3W3(OxJJ):\n return 0.0",
"def jtyf(_mSQ):\n return oyIN.sum(oyIN.abs(_mSQ))",
"def s... | [
"0.6582552",
"0.6308019",
"0.6042821",
"0.6032452",
"0.59876615",
"0.59769136",
"0.5965029",
"0.596077",
"0.5951748",
"0.59369844",
"0.58897465",
"0.5862015",
"0.5859922",
"0.58584654",
"0.58034855",
"0.57936305",
"0.5792527",
"0.5770018",
"0.57686013",
"0.5746807",
"0.574166... | 0.0 | -1 |
Simplified sum when all coefficients are 1. | def pAVt(vC9B, G1Hx):
o4sw = sum((rHGW(G1Hx, epBp) * (2 * epBp - G1Hx) ** vC9B for epBp in range(G1Hx + 1)))
return o4sw / 2 ** G1Hx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAig(YKHO):\n t0qN = LFq_(0.85)\n Aofo = t0qN.process(YKHO.cube, YKHO.coord_name)\n YKHO.assertAlmostEqual(Aofo.data.sum(), 1.0)",
"def sum(YKHO):\n return oyIN.dot(YKHO.data.T, YKHO.weights)",
"def T3W3(OxJJ):\n return 0.0",
"def jtyf(_mSQ):\n return oyIN.sum(oyIN.abs(_mSQ))",
"def s... | [
"0.65828204",
"0.63081217",
"0.6042275",
"0.60315937",
"0.59871984",
"0.5976309",
"0.5965428",
"0.59609747",
"0.59508646",
"0.59363776",
"0.5888739",
"0.58617467",
"0.5860306",
"0.5857673",
"0.5802599",
"0.5792828",
"0.5792013",
"0.57691973",
"0.5768277",
"0.5744906",
"0.5741... | 0.0 | -1 |
Returns a new fraction in reduced form that results from adding this fraction with the m fraction | def H2v5(YKHO, r8hN):
PCDl = YKHO.num * r8hN.den + r8hN.num * YKHO.den
WH8J = YKHO.den * r8hN.den
eHNT = kteF(PCDl, WH8J)
return eHNT.reduce() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pusg(YKHO):\n import math\n Oa1e = math.gcd(YKHO.num, YKHO.den)\n return kteF(YKHO.num // Oa1e, YKHO.den // Oa1e)",
"def E_tF(YKHO, oXaw):\n M6pt = YKHO.numerator * oXaw.numerator\n UUZ1 = YKHO.denominator * oXaw.denominator\n ML2l = epAf.gcd(M6pt, UUZ1)\n return kteF(int(M6pt / ML2l), i... | [
"0.6905592",
"0.6379596",
"0.6354649",
"0.6292354",
"0.6280963",
"0.61754555",
"0.6083864",
"0.60582584",
"0.6035809",
"0.60337204",
"0.60013974",
"0.5990907",
"0.5974897",
"0.59611386",
"0.59048396",
"0.583647",
"0.5829053",
"0.5806098",
"0.5804881",
"0.58011913",
"0.5800554... | 0.7592518 | 0 |
Returns a new fraction in reduced form that results from subtracting this fraction with the m fraction | def wncN(YKHO, r8hN):
eHNT = r8hN.negate()
return YKHO.add(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjfR(YKHO, oXaw):\n M6pt = YKHO.numerator * oXaw.denominator - YKHO.denominator * oXaw.numerator\n UUZ1 = YKHO.denominator * oXaw.denominator\n return kteF(M6pt, UUZ1)",
"def qjfR(YKHO, Elif):\n if YKHO.debug:\n print(f'enter fraction.__sub__ with {Elif}')\n EmyI = wA3x(-1 * Elif.value[... | [
"0.6613027",
"0.6585863",
"0.6472576",
"0.63958466",
"0.63713145",
"0.62810725",
"0.619459",
"0.6163163",
"0.6145009",
"0.6118841",
"0.6108367",
"0.6103947",
"0.60570896",
"0.60516423",
"0.60435724",
"0.5941821",
"0.5940781",
"0.5922248",
"0.5916122",
"0.59106106",
"0.5882872... | 0.68500614 | 0 |
Post new data to categories table. Retrieve data from user input located in JSON, validate the data, then post the data to users tables. | def m8z6(YKHO):
wvEv = s9u5.RequestParser()
wvEv.add_argument('name', location='json', required=True)
wvEv.add_argument('details', location='json', required=False)
qIxc = wvEv.parse_args()
V3q3 = {'name': qIxc['name'], 'details': qIxc['details']}
Ghho = eorc(V3q3)
NCls.session.add(Ghho)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO):\n ao3P = eorc().get_all_categories()\n nPrm = QePW.get_json(force=True)\n VMw8 = len(ao3P) + 1\n ipek = nPrm['category_name']\n if QePW.json['category_name'] in [Ghho['category_name'] for Ghho in ao3P]:\n return Yxsy(pz3A({'Message': ' {} Category Exist'.format(QePW.json['cate... | [
"0.65297997",
"0.62781477",
"0.6252488",
"0.6211614",
"0.61919737",
"0.6171787",
"0.61483216",
"0.6061219",
"0.59647137",
"0.59392715",
"0.5893719",
"0.58674616",
"0.58262545",
"0.5818726",
"0.57982254",
"0.57482886",
"0.5736542",
"0.5713404",
"0.5684614",
"0.5674092",
"0.565... | 0.6142305 | 7 |
This funtion has two arguments, the coordinates of two atoms. It returns the distance between atoms. | def AUp_(UdKV, P38E):
qX8A = UdKV[0] - P38E[0]
ypTk = UdKV[1] - P38E[1]
NsSk = UdKV[2] - P38E[2]
Ayfi = XTiz.sqrt(qX8A ** 2 + ypTk ** 2 + NsSk ** 2)
return Ayfi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AUp_(hQUT, aixJ):\n Jssk = hQUT[0] - aixJ[0]\n q6fc = hQUT[1] - aixJ[1]\n XuHr = hQUT[2] - aixJ[2]\n Ayfi = XTiz.sqrt(Jssk ** 2 + q6fc ** 2 + XuHr ** 2)\n return Ayfi",
"def Ayfi(Emd4, fMAh, kZtE):\n return oyIN.linalg.norm((fMAh - kZtE).atom_loc)",
"def Ayfi(UdKV, P38E):\n Jw7X = UdKV... | [
"0.803143",
"0.78964996",
"0.78562033",
"0.77197564",
"0.76711273",
"0.76641166",
"0.76057345",
"0.7593217",
"0.7578832",
"0.7575637",
"0.7573873",
"0.7548038",
"0.75305426",
"0.75211143",
"0.7512857",
"0.74541515",
"0.74271315",
"0.7418634",
"0.7410189",
"0.74052733",
"0.739... | 0.75453234 | 12 |
This function prints and plots the confusion matrix. | def LwSz(Hw6B, KndY, FRtj, leAC=None, iMGt=QrM1.cm.Blues):
Bcwd = Hw6B
aNZO = FRtj
Xn71 = aNZO.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.grid(False)
aNZO.figure.colorbar(Xn71, ax=aNZO)
if KndY is not None:
aNZO.set(xticks=oyIN.arange(Bcwd.shape[1]), yticks=oyIN.arange(Bcwd.sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()",
"def zd4X(YKHO):\n gAeH.heatmap(YKHO.conf_matrix, annot=True)\n QrM1.plot(label='Accuracy')\n QrM1.plot(label='Error')\n QrM1.figtext(0, 0, 'Accuracy: {}\\nError: {}\\nRecall: {}\\nPrecision: {}'.format(YKHO... | [
"0.8091066",
"0.8078287",
"0.7998978",
"0.79478645",
"0.79230374",
"0.7846215",
"0.7833585",
"0.77821517",
"0.7777263",
"0.7758042",
"0.7707276",
"0.7703438",
"0.7693389",
"0.768003",
"0.76597446",
"0.7642738",
"0.762416",
"0.7612622",
"0.7612469",
"0.75994796",
"0.7588916",
... | 0.7514897 | 31 |
Recall is also known as Sensitivity and True Positive Rate | def AOzf(YKHO):
YKHO.overall_recall = Uw2c(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)
YKHO.classes_recall = Uw2c(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(Y8eF, aMgO):\n HRJ_ = wXuO(Y8eF, aMgO)\n FYKK = Rw7j(Y8eF, aMgO)\n AOzf = HRJ_ / (HRJ_ + FYKK)\n return AOzf",
"def AOzf(Y8eF, aMgO):\n COti = CdMZ.sum(CdMZ.round(CdMZ.clip(Y8eF * aMgO, 0, 1)))\n z5jX = CdMZ.sum(CdMZ.round(CdMZ.clip(Y8eF, 0, 1)))\n AOzf = COti / (z5jX + CdMZ.epsilon... | [
"0.7992816",
"0.7733845",
"0.7713985",
"0.76696116",
"0.7619021",
"0.75689435",
"0.75689435",
"0.75689435",
"0.75689435",
"0.75689435",
"0.75689435",
"0.754303",
"0.754303",
"0.754303",
"0.754303",
"0.754303",
"0.754303",
"0.754303",
"0.754303",
"0.754303",
"0.7519639",
"0.... | 0.7383333 | 44 |
Precision or Positive Predictive Value | def rhd_(YKHO):
YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)
YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(Y8eF, aMgO):\n HRJ_ = wXuO(Y8eF, aMgO)\n ytgA = uBv5(Y8eF, aMgO)\n rhd_ = HRJ_ / (HRJ_ + ytgA)\n return rhd_",
"def rhd_(Y8eF, aMgO):\n COti = CdMZ.sum(CdMZ.round(CdMZ.clip(Y8eF * aMgO, 0, 1)))\n ftZB = CdMZ.sum(CdMZ.round(CdMZ.clip(aMgO, 0, 1)))\n rhd_ = COti / (ftZB + CdMZ.epsilon... | [
"0.75551665",
"0.7410151",
"0.7328772",
"0.72977275",
"0.7292548",
"0.72893834",
"0.72500587",
"0.72344077",
"0.72344077",
"0.72344077",
"0.72344077",
"0.72344077",
"0.72344077",
"0.72170174",
"0.7208128",
"0.7208128",
"0.7208128",
"0.7208128",
"0.7208128",
"0.7208128",
"0.72... | 0.6737913 | 52 |
Get the training labels for the given window in the given scene. | def yv1Y(YKHO, KnxT: Box, F6jf: Scene) -> oyIN.ndarray:
XQLD = F6jf.ground_truth_label_source
return XQLD.get_labels(KnxT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yv1Y(YKHO, KnxT, F6jf):\n pass",
"def yv1Y(YKHO, KnxT: Box, F6jf: Scene) -> Oqgi:\n raise NotImplementedError()",
"def P05y(YKHO, KnxT):\n if not YKHO.summary_info:\n YKHO.get_summary_stats()\n Z9rn = 0\n Dmu2 = []\n for CbMw, Q6uT in YKHO.contigs.items():\n jdNf = YKHO._get... | [
"0.8270742",
"0.7911325",
"0.6626631",
"0.6384677",
"0.58935905",
"0.5731578",
"0.5731578",
"0.56759876",
"0.5642322",
"0.55750597",
"0.55562645",
"0.5517664",
"0.55125296",
"0.5480872",
"0.5461054",
"0.5382931",
"0.53742236",
"0.53631645",
"0.5344885",
"0.53376037",
"0.53322... | 0.8038811 | 1 |
Get windows overwhich predictions will be calculated. | def wiQO(YKHO, xx9t: Box) -> x1iM[rh6a]:
uGeH = YKHO.config.chip_size
return xx9t.get_windows(uGeH, uGeH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hqTV(Zxma, w_5H):\n o3Uj, g4y1 = ([], [])\n for input in w_5H:\n bGrB, nvEb = yKIT.max(Zxma(iQnE(yKIT.LongTensor(input))).data, 1)\n o3Uj.append(nvEb)\n g4y1.append(input[2])\n return (o3Uj, g4y1)",
"def wiQO(YKHO, xx9t):\n pass",
"def jzty(YKHO, cC56, VJv0):\n\n def Yb1... | [
"0.70999604",
"0.70232415",
"0.68000615",
"0.66920525",
"0.655708",
"0.6514384",
"0.6353548",
"0.6333093",
"0.625262",
"0.625046",
"0.6247006",
"0.62258714",
"0.62034065",
"0.6122067",
"0.608243",
"0.6060066",
"0.60524786",
"0.6003902",
"0.5959996",
"0.593741",
"0.59316635",
... | 0.62083095 | 12 |
Answers True if logins exists in system | def V7zm(YKHO, MC83):
if MC83 in YKHO.users_by_name and isinstance(YKHO.users_by_name[MC83], C1Mm):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def csK0():\n return 'user_id' in sGQh",
"def lVPM():\n if cuiw.login == 1:\n return True\n else:\n return False",
"def Y8Sy(YKHO):\n return YKHO.auth.get_user_by_session() is not None",
"def DgM1(YKHO):\n if YKHO.user == AOO4.getuser():\n return True\n else:\n r... | [
"0.72944564",
"0.7292205",
"0.72026753",
"0.72014725",
"0.71721643",
"0.7147398",
"0.7076088",
"0.7072131",
"0.7066283",
"0.7010786",
"0.6903183",
"0.6843802",
"0.6829616",
"0.6803901",
"0.67946684",
"0.6761969",
"0.6728989",
"0.67041194",
"0.66909474",
"0.66799563",
"0.66606... | 0.7260613 | 2 |
Answers True if logins exists in system | def v7Lr(YKHO, MC83):
return MC83 in YKHO.users_by_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def csK0():\n return 'user_id' in sGQh",
"def lVPM():\n if cuiw.login == 1:\n return True\n else:\n return False",
"def V7zm(YKHO, MC83):\n if MC83 in YKHO.users_by_name and isinstance(YKHO.users_by_name[MC83], C1Mm):\n return True\n return False",
"def Y8Sy(YKHO):\n re... | [
"0.7295532",
"0.72931576",
"0.72604144",
"0.7203268",
"0.7201924",
"0.7148659",
"0.7077942",
"0.707348",
"0.706723",
"0.70115465",
"0.6904852",
"0.6843363",
"0.68297595",
"0.6805096",
"0.6795955",
"0.6763974",
"0.6730125",
"0.6704522",
"0.669207",
"0.6681345",
"0.6661872",
... | 0.71723604 | 5 |
test that exception is raised for invalid passwords | def _ytH():
with trZe.raises(Exception):
assert cVXt('qqqqqqqq') == Exception('Password has to be longer than 8 characters')
assert cVXt('') == Exception('Password cannot be empty')
assert cVXt('QQQQQQQQQ') == Exception('Password has to contain lowercase')
assert cVXt('qqqqqqqqq') ==... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwat(YKHO):\n pass",
"def pwat():\n a5gr(email='harrypotter@gmail.com', password='qw3rtyAppl3s@99', name_first='Harry', name_last='Potter')\n J6xp = 'ffffffffF'\n with trZe.raises(DQrD) as tTpl:\n j0Mr(email='harrypotter@gmail.com', password=J6xp)\n assert f'Password {J6xp} is not c... | [
"0.88232267",
"0.831937",
"0.8280921",
"0.82121056",
"0.8041127",
"0.8019596",
"0.80050004",
"0.79710513",
"0.78048694",
"0.7669164",
"0.7652721",
"0.76468986",
"0.7587052",
"0.7511681",
"0.74918467",
"0.7471766",
"0.74646795",
"0.7413386",
"0.73923916",
"0.73650175",
"0.7354... | 0.8220501 | 3 |
test that exception is raised for invalid passwords | def yw58():
with trZe.raises(Exception):
assert _9fi('qqqqqqqq') == Exception('Password either has to contain a digit \n or password has to contain uppercase \n or password has to contain lowercase')
with trZe.raises(Exception):
assert _9fi('') == Exception('Password either has to contain a ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwat(YKHO):\n pass",
"def pwat():\n a5gr(email='harrypotter@gmail.com', password='qw3rtyAppl3s@99', name_first='Harry', name_last='Potter')\n J6xp = 'ffffffffF'\n with trZe.raises(DQrD) as tTpl:\n j0Mr(email='harrypotter@gmail.com', password=J6xp)\n assert f'Password {J6xp} is not c... | [
"0.88255596",
"0.8320438",
"0.82825905",
"0.8221355",
"0.8043196",
"0.80208987",
"0.8005949",
"0.7972175",
"0.78061515",
"0.76710176",
"0.76533204",
"0.7648111",
"0.75885373",
"0.7512765",
"0.74929255",
"0.7473432",
"0.7466634",
"0.7416775",
"0.7393666",
"0.7365146",
"0.73568... | 0.82131004 | 4 |
Returns True if file_name concatenated with file extension length is > 255. Returns False otherwise. | def WLTO(gIsw: str) -> bool:
return len(gIsw + h3Xr) > 255 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def blNe(aPr_):\n return len(aPr_) <= vWkZ",
"def ufXY(Ux0P):\n for tTpl in CBZq:\n if Ux0P.endswith(tTpl):\n return True\n return False",
"def D0hl(YKHO, gIsw: str) -> bool:\n try:\n zNig = Hy7s.path.getsize(gIsw)\n except Exception as e:\n print('Failed to get f... | [
"0.7472104",
"0.7006495",
"0.6888953",
"0.6828483",
"0.67831105",
"0.67661947",
"0.67036813",
"0.6685214",
"0.66694236",
"0.66443413",
"0.6635888",
"0.6604742",
"0.6592866",
"0.6567582",
"0.6567582",
"0.6567582",
"0.6567582",
"0.6567582",
"0.6567582",
"0.65126604",
"0.6511347... | 0.7950595 | 0 |
[summary] Given a list of coinbase dictionary candle data, converts to 4x1 array for input and a 1x1 array for output. | def _vyP(YKHO, nPrm: List[Dict[str, Any]]):
hlel = []
open = []
gqRb = []
ODP9 = []
akib = []
for BkYD in nPrm:
open.append(BkYD['open'])
gqRb.append(BkYD['low'])
ODP9.append(BkYD['high'])
akib.append(BkYD['volume'])
hlel.append(BkYD['close'])
input = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKEq(YKHO, WbAn):\n nQtb = []\n for YRbF, rdlD in enumerate(WbAn):\n if YRbF == 0:\n MOPg = rdlD\n else:\n RFZ4 = {}\n for r845, MKlR in enumerate(MOPg):\n if r845 < len(rdlD):\n RFZ4.update({MKlR: rdlD[r845]})\n ... | [
"0.58059704",
"0.57785",
"0.5694167",
"0.56354016",
"0.55750906",
"0.55199426",
"0.5497732",
"0.5488839",
"0.5465267",
"0.5434205",
"0.54116774",
"0.54018825",
"0.54008144",
"0.5378888",
"0.5370717",
"0.53697145",
"0.53674084",
"0.5354261",
"0.5333443",
"0.53277147",
"0.53268... | 0.55579764 | 5 |
Get element by index, relative to the current index | def OP2O(YKHO, H5ew):
if len(YKHO._data) == YKHO.size:
return YKHO._data[(H5ew + YKHO.index) % YKHO.size]
else:
return YKHO._data[H5ew] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e0s1(YKHO, oHE7, or8S):\n zNig = len(YKHO)\n or8S = seET.index(or8S)\n if not -zNig <= or8S < zNig:\n raise IndexError('index {} is out of range'.format(or8S))\n or8S %= zNig\n return next(Hs6x.islice(oHE7, or8S, None))",
"def NMoC(YKHO, d6pt):\n UHFx = 0\n WKvO = YKHO.begin\n ... | [
"0.77579355",
"0.77523184",
"0.77194536",
"0.76787007",
"0.76635027",
"0.7599006",
"0.7548684",
"0.74594766",
"0.74524945",
"0.74522036",
"0.7418386",
"0.7385101",
"0.7382353",
"0.7366277",
"0.7342239",
"0.732854",
"0.7314729",
"0.73143077",
"0.73143077",
"0.7313697",
"0.7308... | 0.0 | -1 |
Closes the websocket connection for this shard. | async def close(YKHO):
if YKHO.ws is not None and (not YKHO.ws.closed):
await YKHO.ws.close()
YKHO.connected.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO) -> None:\n if YKHO.websocket:\n YKHO.websocket.stop()",
"async def close(YKHO) -> None:\n await YKHO._ws.close()\n await YKHO._session.close()\n await N5MO(0.25)",
"async def close(YKHO):\n await YKHO._ws.close()\n print(Z9rn[3] + '\\nTokenAnalyst connection closed' + Z9... | [
"0.7552032",
"0.71232224",
"0.7086131",
"0.7018632",
"0.69014853",
"0.6846583",
"0.67982554",
"0.67979115",
"0.67849684",
"0.6765683",
"0.6708299",
"0.6700032",
"0.6700032",
"0.6700032",
"0.6700032",
"0.6700032",
"0.6700032",
"0.6685908",
"0.6650046",
"0.6640886",
"0.66303647... | 0.73543817 | 1 |
Extracts the short journal name from an article and tries to make it as short as possible, e.g. by removing periods as well as using some acronyms like "NMR". Returns A string with the shortest possible form. | def YREx(YKHO):
fhBj = {'Nucl Magn Reson': 'NMR'}
mWFP = YKHO.journal_short.replace('.', '')
for Swre, cll5 in fhBj.items():
mWFP = mWFP.replace(Swre, cll5)
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dsRp(YKHO):\n lpha = YKHO.name.split(' - ')\n return '{} ({}), {}'.format(lpha[0], lpha[1], ' '.join(lpha[2].split(' ')[:3]))",
"def t788(mWFP):\n KLtG = mWFP.split()\n if len(KLtG) <= 2:\n return mWFP\n return KLtG[0] + ' ' + KLtG[-1]",
"def bU1l(UXxT):\n return AvyM.JOURNAL_MAPPI... | [
"0.6859404",
"0.67450255",
"0.6420121",
"0.6292563",
"0.6213997",
"0.6177971",
"0.6154647",
"0.6140014",
"0.61316615",
"0.6029689",
"0.59775734",
"0.59212947",
"0.5920908",
"0.59196657",
"0.58914906",
"0.58914906",
"0.58914906",
"0.58914906",
"0.58914906",
"0.58914906",
"0.58... | 0.751069 | 0 |
Cross product of vectors x and y (x X y). | def WHx2(WKvO, LVAh):
WKvO = WKvO.reshape(3)
LVAh = LVAh.reshape(3)
epBp = oyIN.cross(WKvO, LVAh)
epBp = epBp.reshape((3, 1))
return epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dcUW(WKvO, LVAh):\n if len(WKvO) != len(LVAh):\n raise ValueError('vector lengths differ')\n elif len(WKvO) > 3:\n raise ValueError('vector is more than 3D')\n else:\n KCHu = [WKvO[1] * LVAh[2] - WKvO[2] * LVAh[1], WKvO[2] * LVAh[0] - WKvO[0] * LVAh[2], WKvO[0] * LVAh[1] - WKvO[1]... | [
"0.8253104",
"0.7644323",
"0.7577485",
"0.7486007",
"0.742213",
"0.74136347",
"0.7330385",
"0.72719",
"0.7266536",
"0.72530705",
"0.7178448",
"0.71754926",
"0.7161348",
"0.71606016",
"0.7155566",
"0.71348256",
"0.71159345",
"0.7083621",
"0.69807464",
"0.6967848",
"0.6873497",... | 0.77539825 | 1 |
This chomp cleans up all whitespace, not just at the ends | def bLX0(vIwR):
vIwR = str(vIwR)
geh0 = vIwR.replace('\n', ' ')
geh0 = ZbWC.sub(' [ ]*', ' ', geh0)
geh0 = ZbWC.sub('^[ ]*', '', geh0)
return ZbWC.sub('[ ]*$', '', geh0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bLX0(KCHu):\n if KCHu[-2:] == b'\\r\\n':\n return KCHu[:-2]\n if KCHu[-1:] == b'\\r' or KCHu[-1:] == b'\\n':\n return KCHu[:-1]\n return KCHu",
"def bLX0(l5Ny: str) -> str:\n return '\\n'.join([WKvO.rstrip() for WKvO in l5Ny.splitlines()])",
"def bLX0(vIwR):\n if vIwR.endswith(... | [
"0.75850135",
"0.7417964",
"0.72117174",
"0.7027501",
"0.6091694",
"0.5949969",
"0.5903258",
"0.58799934",
"0.58745813",
"0.58224577",
"0.5772715",
"0.57716656",
"0.5763179",
"0.5708482",
"0.5680492",
"0.56752133",
"0.56725",
"0.566395",
"0.5644338",
"0.56439286",
"0.564118",... | 0.6967529 | 4 |
Creates a new instance of ThreeCardPokerHand hand and initializes it with 3 cards from the deck. An optional name argument can be used to specify the name of the player. Returns the instance of ThreeCardPokerHand thus created | def pVKW(YKHO, mWFP=''):
RZ8t = W9I1(YKHO.pop_cards(3), mWFP)
return RZ8t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RZ8t():\n return BZiq()",
"def FIMM(YKHO, *ZWCE):\n nf_0 = QHsX.create(shuffle=True)\n YKHO.names = (list(ZWCE) + 'P1 P2 P3 P4 '.split())[:4]\n YKHO.hands = {exwG: mVZ4(exwG, MKlR) for exwG, MKlR in zip(YKHO.names, nf_0.deal(4))}",
"def mJ0s(YKHO):\n return vsdZ(YKHO, YKHO.living_bot_names()... | [
"0.62812114",
"0.6159548",
"0.5867741",
"0.585162",
"0.565696",
"0.56469536",
"0.55431014",
"0.539126",
"0.5367867",
"0.5353292",
"0.5316438",
"0.5298214",
"0.52830684",
"0.5240952",
"0.51910734",
"0.5190784",
"0.51556116",
"0.5137263",
"0.50671476",
"0.5057475",
"0.50037706"... | 0.76750696 | 0 |
self, this instance of ThreeCardPokerHand Returns a string representation of self. | def DeTJ(YKHO):
return W9I1.all_labels[YKHO.rank] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n vIwR = 'Hand contains '\n MKlR = YKHO.hand\n for YRbF in range(len(MKlR)):\n vIwR += str(MKlR[YRbF].get_suit()) + str(MKlR[YRbF].get_rank()) + ' '\n return vIwR",
"def zAg0(YKHO):\n return MsG1.__str__(YKHO) + '\\nHand Rank: ' + YKHO.get_full_label()",
"def wHJl(YKHO):\n... | [
"0.80102044",
"0.79516315",
"0.7828795",
"0.7692815",
"0.7673958",
"0.75138146",
"0.74803424",
"0.74427634",
"0.742884",
"0.73725396",
"0.7356676",
"0.7356676",
"0.73255235",
"0.729841",
"0.7232768",
"0.721787",
"0.7214845",
"0.71724916",
"0.7165149",
"0.7148201",
"0.7145725"... | 0.0 | -1 |
Frees any resources used by the environment. Implment this method for an environment backed by an external process. This method can be used directly ```python env = Env(...) Use env env.close() ``` or via a context manager ```python | def DDI8(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LPZs(YKHO):\n YKHO.env.close()",
"def DDI8(YKHO):\n YKHO.env.close()",
"def W4JM(YKHO):\n super(LiD6, YKHO).close()",
"def DDI8(YKHO):\n if YKHO.__env:\n YKHO.__env.close()\n YKHO.__env = None\n super(dCtp, YKHO).close()",
"def kcUV(YKHO):\n YKHO.destroy_env()\n YKHO.... | [
"0.77267617",
"0.71810836",
"0.71335083",
"0.7130488",
"0.6724193",
"0.6541249",
"0.64747053",
"0.6434013",
"0.63926244",
"0.6368741",
"0.63595897",
"0.6322921",
"0.6322921",
"0.6287656",
"0.6266001",
"0.61428523",
"0.6134034",
"0.60737187",
"0.6032879",
"0.5990569",
"0.59668... | 0.0 | -1 |
Gather LEAPP_DEVEL environment variables and respective mappings to provide them as messages to be available after reboot. | def ZnEa():
zKTY = []
g_K7 = {G1Hx: Ty9i for G1Hx, Ty9i in Hy7s.environ.items() if G1Hx.startswith('LEAPP_') and G1Hx not in nktn}
for G1Hx, Ty9i in g_K7.items():
if G1Hx in trHh:
zKTY.append(F47P(name=trHh.get(G1Hx), value=Ty9i))
continue
zKTY.append(F47P(name=G1Hx, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZqCk(QePW):\n sEAN = {'LOGIN_URL': POek.LOGIN_URL, 'REDIRECT_FIELD_NAME': getattr(POek, 'REDIRECT_FIELD_NAME', 'next'), 'LOGOUT_URL': POek.LOGOUT_URL}\n return sEAN",
"def t38H():\n QUTX = ['PATH', 'ORACLE_HOME', 'TNS_ADMIN', 'NLS_LANG']\n Aofo = {}\n for sEAN in QUTX:\n if sEAN in Hy7s... | [
"0.6153674",
"0.6125907",
"0.5958238",
"0.5866157",
"0.5827407",
"0.56990135",
"0.564663",
"0.55449957",
"0.54862857",
"0.5481874",
"0.54789394",
"0.54558414",
"0.53889513",
"0.5388586",
"0.5385009",
"0.5318291",
"0.5299448",
"0.52980053",
"0.5294099",
"0.5288364",
"0.5280595... | 0.633242 | 0 |
Get version and release of the currently used kernel in one string. | def GTt2():
try:
return iXC1(['/usr/bin/uname', '-r'])['stdout'].strip()
except JaPI as e:
raise otft(message='Unable to obtain release of the booted kernel.', details={'details': str(tTpl), 'stderr': tTpl.stderr}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZjY(cEzT, YYp2, w5up):\n return NrAt(cEzT, YYp2, w5up)['version']",
"def v4Bw():\n return 'Software Development Library for Linux 1.999.1'",
"def qU1N():\n return a9EH.uname().system",
"def ZB9Y():\n if a9EH.linux_distribution()[0]:\n return ' '.join(a9EH.linux_distribution())\n el... | [
"0.68217486",
"0.675402",
"0.67496544",
"0.6712842",
"0.6708168",
"0.6561247",
"0.65611356",
"0.65565073",
"0.65048045",
"0.65045476",
"0.6502208",
"0.64824873",
"0.6469865",
"0.6450935",
"0.63436705",
"0.6333805",
"0.63116515",
"0.6310959",
"0.62606496",
"0.6253956",
"0.6238... | 0.62603086 | 19 |
Returns the target version for the given `flavour` of upgrade. The default value for `flavour` is `default`. In case the environment variable `LEAPP_DEVEL_TARGET_RELEASE` is set, the value of it will be returned. | def vveO(joXH=pFFk):
NeNv = _93S
if joXH == Di0R:
NeNv = xIL7
return Hy7s.getenv('LEAPP_DEVEL_TARGET_RELEASE', None) or NeNv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xsjJ():\n if eNv_():\n return Di0R\n return pFFk",
"def xsjJ():\n if eNv_():\n return Di0R\n return pFFk",
"def hosf(joXH=xsjJ()):\n cLn3 = iG2X('/etc/os-release')\n ACCR = TuEj(cLn3, joXH)\n if not ACCR:\n QAZ2 = uifH(cLn3)\n ACCR = TuEj(QAZ2, joXH)\n re... | [
"0.65795887",
"0.65795887",
"0.61892074",
"0.5829777",
"0.54041076",
"0.5268127",
"0.51651967",
"0.514662",
"0.51346916",
"0.50944763",
"0.5078364",
"0.50449115",
"0.5015853",
"0.49779087",
"0.49453533",
"0.49376157",
"0.4934938",
"0.48960614",
"0.48958802",
"0.4847216",
"0.4... | 0.8691227 | 0 |
Returns True if work in (value, work) tuple subInfo1 is LESS than than work in (value, work) tuple in subInfo2 | def qjPV(cq_d, _hdL):
bEU9 = cq_d[E3ZL]
KJh8 = _hdL[E3ZL]
return bEU9 < KJh8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iOjC(cq_d, _hdL):\n wNuL = cq_d[LegL]\n Mlb1 = _hdL[LegL]\n return wNuL > Mlb1",
"def iOjC(cq_d, _hdL):\n wNuL = cq_d[LegL]\n Mlb1 = _hdL[LegL]\n return wNuL > Mlb1",
"def IxNB(cq_d, _hdL):\n wNuL = cq_d[LegL]\n Mlb1 = _hdL[LegL]\n bEU9 = cq_d[E3ZL]\n KJh8 = _hdL[E3ZL]\n re... | [
"0.6941326",
"0.6941326",
"0.6516656",
"0.6516656",
"0.59197474",
"0.5916753",
"0.5853075",
"0.5806229",
"0.5785417",
"0.575454",
"0.5725809",
"0.5662219",
"0.5658478",
"0.56561846",
"0.5650557",
"0.5640676",
"0.561755",
"0.5607638",
"0.5585275",
"0.5560231",
"0.5559235",
"... | 0.7840667 | 1 |
Returns True if value/work in (value, work) tuple subInfo1 is GREATER than value/work in (value, work) tuple in subInfo2 | def IxNB(cq_d, _hdL):
wNuL = cq_d[LegL]
Mlb1 = _hdL[LegL]
bEU9 = cq_d[E3ZL]
KJh8 = _hdL[E3ZL]
return float(wNuL) / bEU9 > float(Mlb1) / KJh8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjPV(cq_d, _hdL):\n bEU9 = cq_d[E3ZL]\n KJh8 = _hdL[E3ZL]\n return bEU9 < KJh8",
"def qjPV(cq_d, _hdL):\n bEU9 = cq_d[E3ZL]\n KJh8 = _hdL[E3ZL]\n return bEU9 < KJh8",
"def iOjC(cq_d, _hdL):\n wNuL = cq_d[LegL]\n Mlb1 = _hdL[LegL]\n return wNuL > Mlb1",
"def iOjC(cq_d, _hdL):\n ... | [
"0.7639086",
"0.7639086",
"0.7572213",
"0.7572213",
"0.62580526",
"0.60452",
"0.60010815",
"0.59631205",
"0.5930433",
"0.5889936",
"0.5856163",
"0.58300894",
"0.5827596",
"0.58262455",
"0.5824282",
"0.5822037",
"0.58161736",
"0.58103704",
"0.57853055",
"0.57611984",
"0.576002... | 0.6505479 | 5 |
Perform tile shift to the left. | def _un1(iBIi):
for YRbF in range(4):
xYvp, UHFx = ([], 0)
for r845 in range(4):
if iBIi[YRbF][r845] != 0:
xYvp.append(iBIi[YRbF][r845])
UHFx += 1
iBIi[YRbF] = xYvp
for WKvO in range(4 - UHFx):
iBIi[YRbF].append(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JR58(YKHO):\n YKHO.pointer = (YKHO.pointer - 1) % len(YKHO.data)",
"def eQUP(YKHO):\n gr_i = YKHO.return_middle_registers(YKHO.opcode)\n UOVU = YKHO.registers[gr_i[1]]\n YKHO.registers[15] = UOVU & 128\n YKHO.registers[gr_i[0]] = YKHO.registers[gr_i[1]] << 1\n bo34.info('Shifted register V{... | [
"0.7490282",
"0.71976835",
"0.70823294",
"0.6930971",
"0.6926509",
"0.67835623",
"0.67789805",
"0.6762947",
"0.6739872",
"0.67125225",
"0.6688423",
"0.6674855",
"0.6672681",
"0.6639136",
"0.6589616",
"0.654085",
"0.6517519",
"0.6503294",
"0.6499925",
"0.649521",
"0.64898837",... | 0.61685944 | 48 |
Perform tile shift to the right. | def KzHE(iBIi):
for YRbF in range(4):
xYvp, UHFx = ([], 0)
for r845 in range(4):
if iBIi[YRbF][r845] != 0:
xYvp.append(iBIi[YRbF][r845])
UHFx += 1
iBIi[YRbF] = [0] * (4 - UHFx)
for WKvO in range(4 - UHFx):
iBIi[YRbF] = [0] + iBI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G8po(YKHO):\n YKHO.pointer = (YKHO.pointer + 1) % len(YKHO.data)",
"def _tIi(YKHO):\n YKHO.move(1, 0)",
"def MHOc(YKHO):\n gr_i = YKHO.return_middle_registers(YKHO.opcode)\n UOVU = YKHO.registers[gr_i[1]]\n YKHO.registers[15] = UOVU & 1\n YKHO.registers[gr_i[0]] = YKHO.registers[gr_i[1]] ... | [
"0.75004125",
"0.70475173",
"0.70084214",
"0.68790865",
"0.681056",
"0.6781113",
"0.6772117",
"0.675851",
"0.67558837",
"0.6696607",
"0.66867423",
"0.6666849",
"0.664968",
"0.6629139",
"0.6627178",
"0.6624465",
"0.6612671",
"0.66085684",
"0.65902627",
"0.6574431",
"0.6572077"... | 0.6165581 | 47 |
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lowercase letters only. | def n8Ek(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'account_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Gx(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_account_name')",
"def lyVV(YKHO):\n try:\n ZrNc = YKHO.instance_metadata.get_tags()['bkp_storage_account']\n G9jH.debug('Using storage account name from instance metadata: %s', ZrNc)\n except Exception:\n iIih = YKHO.get_custom... | [
"0.76040643",
"0.70352215",
"0.6905831",
"0.65804124",
"0.65323865",
"0.65323865",
"0.64580536",
"0.6436745",
"0.6312828",
"0.6281443",
"0.62698007",
"0.62089103",
"0.62089103",
"0.62089103",
"0.62089103",
"0.62089103",
"0.62089103",
"0.62089103",
"0.62089103",
"0.62089103",
... | 0.59701735 | 67 |
The name of the resource group within the user's subscription. The name is case insensitive. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_grou... | [
"0.82611394",
"0.7919444",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78968805",
"0.78594595",
"0.7789009",
"0.7789009",
"0.7789009",
"0.7789009",
"0.7789009",
"0... | 0.77774495 | 55 |
The blob service properties for container soft delete. | def Ddc0(YKHO) -> h8nf[qe4Y.Input['DeleteRetentionPolicyArgs']]:
return qe4Y.get(YKHO, 'container_delete_retention_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UW31(YKHO) -> h8nf[qe4Y.Input['SoftDeleteSettingsArgs']]:\n return qe4Y.get(YKHO, 'soft_delete_settings')",
"def UW31(YKHO) -> h8nf['outputs.SoftDeleteSettingsResponse']:\n return qe4Y.get(YKHO, 'soft_delete_settings')",
"def MGNK(YKHO):\n C9U5 = OkUS.json_properties(YKHO)\n C9U5.remove('image_... | [
"0.58729863",
"0.5822713",
"0.5810114",
"0.5571163",
"0.5416586",
"0.53833646",
"0.5285164",
"0.51845956",
"0.51393545",
"0.5137164",
"0.51287633",
"0.5026035",
"0.4942347",
"0.49041036",
"0.48868552",
"0.48839828",
"0.48491764",
"0.48159507",
"0.47983056",
"0.4794265",
"0.47... | 0.0 | -1 |
The blob service properties for blob soft delete. | def R9XO(YKHO) -> h8nf[qe4Y.Input['DeleteRetentionPolicyArgs']]:
return qe4Y.get(YKHO, 'delete_retention_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGNK(YKHO):\n C9U5 = OkUS.json_properties(YKHO)\n C9U5.remove('image_blob_key')\n return C9U5",
"def PTpj(YKHO):\n if 'delete' in YKHO._prop_dict:\n return YKHO._prop_dict['delete']\n else:\n return None",
"def UW31(YKHO) -> h8nf['outputs.SoftDeleteSettingsResponse']:\n retu... | [
"0.58196825",
"0.57607853",
"0.5686614",
"0.5665609",
"0.5436184",
"0.5285105",
"0.51866484",
"0.5074914",
"0.50614053",
"0.5045784",
"0.50319624",
"0.5020171",
"0.5007856",
"0.50070876",
"0.5004452",
"0.4973736",
"0.4891429",
"0.48835954",
"0.48723358",
"0.4860802",
"0.48394... | 0.0 | -1 |
The blob service properties for container soft delete. | def Ddc0(YKHO) -> qe4Y.Output[h8nf['outputs.DeleteRetentionPolicyResponse']]:
return qe4Y.get(YKHO, 'container_delete_retention_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UW31(YKHO) -> h8nf[qe4Y.Input['SoftDeleteSettingsArgs']]:\n return qe4Y.get(YKHO, 'soft_delete_settings')",
"def UW31(YKHO) -> h8nf['outputs.SoftDeleteSettingsResponse']:\n return qe4Y.get(YKHO, 'soft_delete_settings')",
"def MGNK(YKHO):\n C9U5 = OkUS.json_properties(YKHO)\n C9U5.remove('image_... | [
"0.5871011",
"0.58212394",
"0.58114505",
"0.557274",
"0.5416567",
"0.53833884",
"0.52842855",
"0.518384",
"0.51390135",
"0.5136513",
"0.51291025",
"0.50259143",
"0.4942759",
"0.49040335",
"0.48885664",
"0.48851335",
"0.48477927",
"0.48152062",
"0.47982684",
"0.47930747",
"0.4... | 0.43915412 | 88 |
The blob service properties for blob soft delete. | def R9XO(YKHO) -> qe4Y.Output[h8nf['outputs.DeleteRetentionPolicyResponse']]:
return qe4Y.get(YKHO, 'delete_retention_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGNK(YKHO):\n C9U5 = OkUS.json_properties(YKHO)\n C9U5.remove('image_blob_key')\n return C9U5",
"def PTpj(YKHO):\n if 'delete' in YKHO._prop_dict:\n return YKHO._prop_dict['delete']\n else:\n return None",
"def UW31(YKHO) -> h8nf['outputs.SoftDeleteSettingsResponse']:\n retu... | [
"0.58196825",
"0.57607853",
"0.5686614",
"0.5665609",
"0.5436184",
"0.5285105",
"0.51866484",
"0.5074914",
"0.50614053",
"0.5045784",
"0.50319624",
"0.5020171",
"0.5007856",
"0.50070876",
"0.5004452",
"0.4973736",
"0.4891429",
"0.48835954",
"0.48723358",
"0.4860802",
"0.48394... | 0.0 | -1 |
Sku name and tier. | def PXIM(YKHO) -> qe4Y.Output['outputs.SkuResponse']:
return qe4Y.get(YKHO, 'sku') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')",
"def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')",
"def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')",
"def mWFP(YKHO) -> qe4Y.Input['SkuName']:\n return qe4Y.get(YKHO, 'name')",
"def FIMM(Ro_8, *, mWFP: pulumi.In... | [
"0.74665993",
"0.74665993",
"0.74665993",
"0.7337159",
"0.71235085",
"0.70850027",
"0.69840217",
"0.69840217",
"0.6977929",
"0.69692177",
"0.6931419",
"0.6931419",
"0.6878652",
"0.68505",
"0.6830299",
"0.67964286",
"0.67964286",
"0.6738833",
"0.66704595",
"0.66463995",
"0.664... | 0.6767385 | 17 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7919224",
"0.7919224",
"0.7866745",
"0.7866745",
"0.7866745",
"0.7866745",
"0.7866745",
"0.77080005",
"0.75534594",
"0.72829205",
"0.7059116",
"0.69795716",
"0.6921357",
"0.6870514",
"0.67292506",
"0.6704277",
"0.66535586",
"0.66464674",
"0.66392237",
"0.66392237",
"0.6639... | 0.0 | -1 |
Return a string representation of the given key, in the current namespace | def sdco(YKHO, H5ew):
return YKHO.serializer.dumpKey((YKHO.path, YKHO._internalNs, H5ew)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R5Zh(Emd4, H5ew):\n return '_'.join(map(str, H5ew))",
"def W5fH(H5ew):\n if H5ew not in Xw_B:\n raise KeyError('key:{0} does not exist'.format(H5ew))\n return Xw_B[H5ew]",
"def Z1d9(H5ew) -> str:\n if not isinstance(H5ew, str):\n H5ew = repr(H5ew)\n return H5ew",
"def _63S(YK... | [
"0.7482419",
"0.69254124",
"0.6781267",
"0.67623127",
"0.67007834",
"0.6659845",
"0.6607625",
"0.6604661",
"0.6589089",
"0.6528582",
"0.6495888",
"0.6462549",
"0.64370334",
"0.6391658",
"0.638791",
"0.6318776",
"0.6318776",
"0.6309116",
"0.63026375",
"0.6299322",
"0.6299322",... | 0.6442385 | 12 |
Delete the 'n' oldest items from the RingBuffer. This does not return the items first, this should be done with the iterators and other functions below. | def BEuN(YKHO, exwG):
try:
YKHO._load(False)
except KeyError:
return
H5ew = (YKHO.head - YKHO.count) % YKHO.size
while exwG > 0 and YKHO.count > 0:
del YKHO.db[H5ew]
H5ew += 1
if H5ew == YKHO.size:
H5ew = 0
exwG -= 1
YKHO.count -= 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ReNU(OxJJ, exwG, uOgj=uOgj):\n return uOgj(OxJJ, exwG, None)",
"def Z_iF(YKHO, exwG):\n for bGrB in range(exwG):\n YKHO._buffer.popleft()",
"def SJCK(YKHO):\n if YKHO.size_limit is not None:\n while len(YKHO) > YKHO.size_limit:\n YKHO.popitem(last=False)",
"def X4io(YKHO... | [
"0.69509923",
"0.67833996",
"0.6569394",
"0.6516168",
"0.6512111",
"0.6430666",
"0.63899845",
"0.6302182",
"0.62365097",
"0.6152814",
"0.61250967",
"0.6109891",
"0.5985351",
"0.5985351",
"0.59616077",
"0.59616077",
"0.5951178",
"0.5924924",
"0.5835084",
"0.58158106",
"0.58041... | 0.66903204 | 2 |
Compute the fitting residual. | def p2jq(WKvO: np.ndarray, LVAh: np.ndarray, JfyU, qIxc, Bsf7: float=None, zqwW: bool=False) -> oyIN.ndarray:
gjpc = JfyU(WKvO, *qIxc)
Ylbp = oyIN.subtract(LVAh, gjpc)
CkYf = oyIN.std(Ylbp)
if Bsf7 is not None:
Ylbp[oyIN.where(abs(Ylbp) < Bsf7)] = 0
if zqwW and CkYf != 0:
Ylbp /= CkY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UKy8(YKHO, NArs):\n nPrm = YKHO.F ** 2\n C3ST = oyIN.absolute(YKHO._model()) ** 2\n WTkW = YKHO.sigma\n return (nPrm[YKHO.mask] - C3ST[YKHO.mask]) / WTkW[YKHO.mask]",
"def ed_d(YKHO) -> eQHC.NDArray[oyIN.float64]:\n return YKHO.data - YKHO.theory",
"def O5cp(YKHO):\n if YKHO.model_fit is ... | [
"0.77149254",
"0.76598066",
"0.7580847",
"0.75157326",
"0.74911386",
"0.74642974",
"0.73828006",
"0.73809963",
"0.73585844",
"0.72532415",
"0.7250003",
"0.7231905",
"0.7171786",
"0.71519005",
"0.71165246",
"0.7074422",
"0.7045101",
"0.7018788",
"0.6997359",
"0.69888496",
"0.6... | 0.6364999 | 55 |
Returns True if and only if the other vector clock contains a single component for which the value is 1 more, with all other components being equal. | def kGa5(YKHO, Elif):
YKHO._mergeKeys(Elif)
YKHO._binaryOperationCheck(Elif)
hjMp = 0
gZFo = 0
for id in YKHO.clock.keys():
if YKHO.clock[id] + 1 == Elif.clock[id]:
hjMp += 1
elif YKHO.clock[id] == Elif.clock[id]:
gZFo += 1
if hjMp == 1 and gZFo == len(YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n KCHu = len(YKHO)\n Mkmy = len(Elif)\n if KCHu != Mkmy:\n raise (Kkcn, 'Vetor dimensions are not equal')\n for YRbF in range(KCHu):\n if not p0QT(YKHO[YRbF] - Elif[YRbF]):\n return False\n return True",
"def uRKn(WKvO):\n return oLG2.all(WKvO == W... | [
"0.686257",
"0.68200177",
"0.67759395",
"0.66619694",
"0.6591493",
"0.65701526",
"0.6543006",
"0.6517859",
"0.6505405",
"0.6493156",
"0.6490717",
"0.6475473",
"0.64457166",
"0.6434424",
"0.6417604",
"0.64114386",
"0.6408446",
"0.6378051",
"0.6377402",
"0.63550943",
"0.6353196... | 0.6106351 | 55 |
Returns True if and only if the other vector clock contains a single component for which the value is 1 more, another single component for which the value is 1 less and with all other components being equal. | def btZc(YKHO, Elif):
YKHO._mergeKeys(Elif)
YKHO._binaryOperationCheck(Elif)
yZMu = 0
FFMr = 0
gZFo = 0
for id in YKHO.clock.keys():
if YKHO.clock[id] + 1 == Elif.clock[id]:
yZMu += 1
if YKHO.clock[id] - 1 == Elif.clock[id]:
FFMr += 1
elif YKHO.clo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n KCHu = len(YKHO)\n Mkmy = len(Elif)\n if KCHu != Mkmy:\n raise (Kkcn, 'Vetor dimensions are not equal')\n for YRbF in range(KCHu):\n if not p0QT(YKHO[YRbF] - Elif[YRbF]):\n return False\n return True",
"def GrS6(hQHm, jlSq):\n if jlSq.x - 0.001 <... | [
"0.6749273",
"0.66650057",
"0.6543656",
"0.64863086",
"0.63923055",
"0.6372751",
"0.63635236",
"0.6329362",
"0.63267475",
"0.6288266",
"0.6283633",
"0.62700045",
"0.6269411",
"0.6268359",
"0.6265669",
"0.62650687",
"0.62427324",
"0.62272274",
"0.6222528",
"0.6222438",
"0.6216... | 0.6288044 | 10 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(lcUU, YKHO).__init__(*qIxc, **c_sp)
if YKHO.thumb is None:
YKHO.thumb = [0.0] * 3
if YKHO.index is None:
YKHO.index = [0.0] * 3
if YKHO.middle is None:
YKHO.middle = [0.0] * 3
if YKHO.ri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.77944714",
"0.77215654",
"0.77215654",
"0.76878554",
"0.762691",
"0.7565032",
"0.744052",
"0.7418174",
"0.73521847",
"0.7309203",
"0.72811013",
"0.7238687",
"0.7227824",
"0.7225277",
"0.7225277",
"0.7219933",
"0.72126967",
"0.72126967",
"0.72126967",
"0.72126967",
"0.72126... | 0.0 | -1 |
Get vocab for caption text encoder. | def xYxb():
if h_xa is not None and NCh4 is not None:
c_7d = Hy7s.path.join(h_xa, NCh4)
if ZylS.gfile.Exists(c_7d):
ZylS.logging.info('Found vocab file: %s', c_7d)
Jny3 = YAGL.SubwordTextEncoder(c_7d)
return Jny3
else:
raise ValueError('Vocab f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CtWL(YKHO) -> yH2p:\n return YKHO._model.vocab",
"def CtWL():\n rmc3 = nI3D + ['mouse', 'dog', 'tree']\n return yH2p(rmc3)",
"def CtWL(YKHO: TokenMatcher) -> zoYt:\n return YKHO._searcher.vocab",
"def qycu(UrTZ):\n print('Creating vocabulary.')\n bJnh = 4\n akQh = '/Users/lzg/Desktop... | [
"0.6867589",
"0.67518795",
"0.66784275",
"0.6568083",
"0.63018495",
"0.6248969",
"0.6220727",
"0.61795735",
"0.61184263",
"0.6021287",
"0.5983408",
"0.5925993",
"0.58869845",
"0.5864438",
"0.5803492",
"0.5800871",
"0.578662",
"0.57644427",
"0.5713604",
"0.5666052",
"0.5662668... | 0.6642546 | 3 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def Ji09(K0do, qtWj, qIxc, mpiO=False):
tspZ = qIxc.lr
if mpiO:
tspZ = qIxc.lrbl * 0.1 ** (qtWj // (qIxc.epochb * 0.5))
elif qIxc.cos:
tspZ *= (0.01 + epAf.cos(0.5 * (epAf.pi * qtWj / qIxc.epochs))) / 1.01
else:
if qtWj >= qIxc.epochs_decay[0]:
tspZ *= 0.1
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7665748",
"0.7665748",
"0.7665748",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585... | 0.0 | -1 |
Test if the Login views return a 200 response | def wJrs(x0hE, CBIr):
CBIr = CBIr
bD7m = gxEw('users:detail', kwargs={'username': CBIr.username})
assert bD7m == gxEw('users:detail', kwargs={'username': CBIr.username}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eFyD(YKHO):\n geh0 = YKHO.client.get('/login/')\n YKHO.assertTrue(geh0.status_code == 200)",
"def mSiS(x0hE):\n bD7m = gxEw('users:login')\n geh0 = x0hE.get(bD7m)\n assert geh0.status_code == 200",
"def ZUsg(YKHO):\n geh0 = YKHO.client.get(gxEw('cookbook:login'))\n YKHO.assertEqual(geh... | [
"0.79660004",
"0.775815",
"0.7656775",
"0.75793016",
"0.7578524",
"0.7562713",
"0.75212336",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
"0.7455541",
... | 0.0 | -1 |
Test if the Login views return a 200 response | def mSiS(x0hE):
bD7m = gxEw('users:login')
geh0 = x0hE.get(bD7m)
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eFyD(YKHO):\n geh0 = YKHO.client.get('/login/')\n YKHO.assertTrue(geh0.status_code == 200)",
"def ZUsg(YKHO):\n geh0 = YKHO.client.get(gxEw('cookbook:login'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def NMu1(YKHO):\n geh0 = YKHO.client.get(nKyW('login'))\n YKHO.assertEqual(geh0.statu... | [
"0.796571",
"0.76565546",
"0.75780493",
"0.7577545",
"0.7561448",
"0.75198495",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
"0.745522",
... | 0.7757447 | 1 |
Test if views related to an authenticated user return 200 response | def yUqa(x0hE, Qm4T, eVah, CBIr):
CBIr = hbZn
x0hE.force_login(CBIr)
bD7m = gxEw(eVah)
geh0 = x0hE.get(bD7m)
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def msh3(YKHO):\n geh0 = YKHO.client.get(gxEw('reservation'))\n YKHO.assertEquals(geh0.status_code, qed_.OK)",
"def szyq(YKHO):\n YKHO.assertEqual(jGRS.HTTP_200_OK, YKHO.response.status_code)",
"def uyRT(YKHO):\n from imager_profile.views import HomeView\n qv1X = YKHO.request.get('/')\n tTee ... | [
"0.68311995",
"0.6767263",
"0.67593616",
"0.6728728",
"0.67193824",
"0.669967",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
"0.6675807",
... | 0.6811474 | 1 |
Test if the home return a 200 response | def tacr(x0hE):
bD7m = gxEw('home')
geh0 = x0hE.get(bD7m)
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yOZO(geh0):\n if geh0.status_code == 200:\n return True",
"def WTjz(Mkmy) -> bool:\n if Mkmy.status_code == 200:\n return True",
"def RS_x(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)",
"def kgM1(YKHO):\n Aofo = YKHO.app.get('/')\n YKHO.assertEqual(Aofo.status_co... | [
"0.81846404",
"0.8149933",
"0.81347984",
"0.7962525",
"0.7960379",
"0.79017437",
"0.7895553",
"0.77496475",
"0.7724115",
"0.767836",
"0.7669173",
"0.75683975",
"0.7501012",
"0.74826205",
"0.7463279",
"0.74566317",
"0.7428604",
"0.7426436",
"0.7426436",
"0.7426436",
"0.7426436... | 0.70674056 | 67 |
returns the player object for the player who has the highest average poison value | def rwmv(YKHO, E_RR):
YWgj = YKHO.dict_of_players[0]
for IgZ6 in YKHO.dict_of_players.keys():
if YKHO.dict_of_players[IgZ6] in E_RR:
pass
elif YKHO.dict_of_players[IgZ6].deck.get_expected_poison_value() > YWgj.deck.get_expected_poison_value():
YWgj = YKHO.dict_of_players[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tCnt(YKHO, oyg0):\n return YKHO.get_highscores().filter(player=oyg0).first()",
"def bHVe(YKHO) -> mVZ4:\n return max(YKHO.players, key=lambda oyg0: oyg0.score)",
"def jB5X(YKHO):\n return YKHO.points",
"def mP9X(YKHO):\n Sk78 = -1\n or8S = -1\n for YRbF, KCHu in enumerate(YKHO.scores):\... | [
"0.743164",
"0.7237361",
"0.67165524",
"0.66547155",
"0.66533244",
"0.664595",
"0.6641614",
"0.66404027",
"0.6578087",
"0.6531178",
"0.64345986",
"0.6402244",
"0.6389983",
"0.6341968",
"0.6307974",
"0.62771",
"0.6272302",
"0.62068164",
"0.61850226",
"0.61714745",
"0.61700684"... | 0.0 | -1 |
Formats a date according to the current locale. Wraps around babel.dates.format_date. | def g7yF(OaeV, _c1T, format='long'):
DuqQ = rDcu(OaeV['LANG'])
if _c1T:
return pbww(_c1T, locale=DuqQ, format=format)
else:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbww(Csk6, FMLJ):\n return dOGp(Csk6, FMLJ, locale=c7FC(y_o0.get_language()))",
"def pbww(_c1T, iDZX=None):\n global date_format\n return qcWV.datetime.strptime(_c1T, '%Y-%m-%d').strftime(iDZX or x8us)",
"def pbww(Csk6):\n JRYC = GuLU(Csk6.year, Csk6.month, Csk6.day, 0, 0, 0)\n return V8MO.f... | [
"0.789891",
"0.698472",
"0.695882",
"0.65176207",
"0.64377284",
"0.64266753",
"0.6380313",
"0.63566047",
"0.63497263",
"0.6295721",
"0.6237961",
"0.6223037",
"0.61959803",
"0.6183764",
"0.6115179",
"0.609781",
"0.60962766",
"0.609245",
"0.6088271",
"0.6084785",
"0.6082809",
... | 0.7758324 | 1 |
Iterate sequences by pairs. | def Zu14(OxJJ: Iterable[Any]) -> iu5r[ImMB]:
jzdc, Fg_i = y54_(OxJJ)
next(Fg_i, None)
return zip(jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgDL(yv6U):\n for YRbF in range(1, len(yv6U), 2):\n yield (yv6U[YRbF - 1], yv6U[YRbF])",
"def kgDL(yv6U):\n YRbF = iter(yv6U)\n THkp = next(YRbF)\n for ZfUD in YRbF:\n yield (THkp, ZfUD)\n THkp = ZfUD",
"def gQA2(kgDL):\n if isinstance(kgDL, dict):\n return kgDL.i... | [
"0.7101228",
"0.6777809",
"0.66968924",
"0.6677832",
"0.66705245",
"0.6626198",
"0.6602611",
"0.659599",
"0.6417929",
"0.64155847",
"0.6389326",
"0.6385976",
"0.6333147",
"0.61668384",
"0.6162052",
"0.6101216",
"0.6063804",
"0.59910125",
"0.59837884",
"0.5979951",
"0.5965963"... | 0.57549036 | 40 |
On Unix we only have to "open url" dialog | def Fdbi(YKHO):
YKHO.open_callback() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def open(bD7m):\n HywK.open(bD7m)",
"def oTNk(bD7m):\n HywK.open(bD7m)",
"def GW_c(bD7m):\n jJYA = open(Hy7s.devnull, 'w')\n Yn3K.Popen([mBEn.browser, bD7m], stdout=jJYA, stderr=Yn3K.STDOUT)",
"def open(YKHO, tvqc=None, bD7m=None):\n bD7m = bD7m or YKHO.server.url\n try:\n import web... | [
"0.73839885",
"0.7136563",
"0.71100205",
"0.70496947",
"0.7008425",
"0.69019234",
"0.68413824",
"0.6820067",
"0.67915493",
"0.67227334",
"0.6708889",
"0.6701866",
"0.6680681",
"0.66749835",
"0.6673651",
"0.6611418",
"0.65915626",
"0.65760857",
"0.6561634",
"0.6537319",
"0.651... | 0.0 | -1 |
Gets `max_grains` input of GrainSin. | def djmd(YKHO):
d6pt = YKHO._ordered_input_names.index('max_grains')
return YKHO._inputs[d6pt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWs5(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'max_surge')",
"def W3n4(YKHO):\n return YKHO._max_in_gbps",
"def W3n4(YKHO, W3n4):\n YKHO._max_in_gbps = W3n4",
"def JWs5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'max_surge')",
"def I05E(YKHO):\n return YKHO.in... | [
"0.61167717",
"0.6091716",
"0.5798701",
"0.5790639",
"0.5752137",
"0.5733255",
"0.5707946",
"0.57055986",
"0.56940657",
"0.56934345",
"0.5688155",
"0.5688155",
"0.55956244",
"0.5591844",
"0.55832785",
"0.5568565",
"0.55685604",
"0.54790264",
"0.5476801",
"0.5456345",
"0.54497... | 0.80358887 | 0 |
Gets `pan` input of GrainSin. | def zvTx(YKHO):
d6pt = YKHO._ordered_input_names.index('pan')
return YKHO._inputs[d6pt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PGAS(YKHO):\n return YKHO.pan",
"def zvTx(YKHO):\n return YKHO._pan",
"def X0tF(YKHO):\n return YKHO.__partial_pan",
"def Iuzb(YKHO, nvG7=None):\n return YKHO._arm.get_position(is_radian=nvG7)",
"def q7i4(YKHO):\n return rBEA",
"def nYlf(WKvO):\n return oyIN.sin(WKvO)",
"def Fl5g(... | [
"0.66379076",
"0.62576336",
"0.5501979",
"0.51387596",
"0.5085432",
"0.5059569",
"0.4969411",
"0.49051702",
"0.49020115",
"0.48475397",
"0.48322684",
"0.48160127",
"0.4788551",
"0.47740322",
"0.47661543",
"0.47650158",
"0.47550225",
"0.47143513",
"0.4696721",
"0.4683401",
"0.... | 0.6967334 | 0 |
Creates a recurrent model with a partially reconstructed embedding layer. Constructs a recurrent model for next word prediction, with the embedding | def DlIM(jXxl: int=10000, zCRj: int=1, Zwn2: int=96, g6Yk: int=670, CLda: int=1, XNCD=None, W2w9: bool=False, mWFP: str='rnn_recon_embeddings') -> tgwG.ReconstructionModel:
if jXxl < 0:
raise ValueError('The vocab_size is expected to be greater than, or equal to 0. Got {}'.format(jXxl))
if zCRj <= 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8cN(jXxl, lhva, AKNV, Ep8u):\n C3ST = ZylS.keras.Sequential([ZylS.keras.layers.Embedding(jXxl, lhva, batch_input_shape=[Ep8u, None]), unC1(AKNV, return_sequences=True, recurrent_initializer='glorot_uniform', stateful=True), ZylS.keras.layers.Dense(jXxl)])\n return C3ST",
"def aJBW(YKHO):\n Ep8u = Z... | [
"0.6580897",
"0.6423092",
"0.6302507",
"0.62778175",
"0.6267168",
"0.62431806",
"0.6228994",
"0.6196669",
"0.61569715",
"0.6064202",
"0.60625964",
"0.6050542",
"0.60193497",
"0.59787875",
"0.59544855",
"0.5951478",
"0.5941502",
"0.5917446",
"0.5913576",
"0.5897047",
"0.589321... | 0.73125225 | 0 |
Generate and return a random string. | def Q_QB(u54L=32, DNHh=None):
if DNHh is None:
DNHh = set()
else:
DNHh = set(DNHh)
X2Fn = 'abcdefghijkmnopqrstuvwxyz'
oHMl = 'ABCDEFGHIJKLMNPQRSTUVWXYZ'
BHGE = '0123456789'
rmc3 = '!#$%&()*+,-./:;<=>?@[]_{}~^'
KzJa = set(X2Fn + oHMl + BHGE + rmc3).difference(DNHh)
def hH... | {
"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 C6M2():\n KCHu = RW31.random_bytes(100)\n return _3An(KCHu)",
"def r4k0(... | [
"0.8560595",
"0.83566606",
"0.81820285",
"0.8018693",
"0.78787684",
"0.7789106",
"0.77611697",
"0.77582854",
"0.7732269",
"0.7725998",
"0.7697216",
"0.7693858",
"0.7685521",
"0.765691",
"0.76533073",
"0.7641071",
"0.76245797",
"0.76145595",
"0.75938594",
"0.75917804",
"0.7585... | 0.0 | -1 |